Re: [PATCH, csky] add an earlyclobber for two patterns

2018-09-08 Thread 瞿仙淼
I forgot to say that I have submitted this patch. > 在 2018年9月9日,下午12:20,瞿仙淼 写道: > > Hello! > > Two patterns were missing an earlyclobber. > > > Index: gcc/ChangeLog > === > --- gcc/ChangeLog (revision 264177) > +++

[PATCH, csky] add an earlyclobber for two patterns

2018-09-08 Thread 瞿仙淼
Hello! Two patterns were missing an earlyclobber. Index: gcc/ChangeLog === --- gcc/ChangeLog (revision 264177) +++ gcc/ChangeLog (revision 264176) @@ -1,8 +1,3 @@ -2018-09-09 Xianmiao Qu - - *

Re: [PATCH 2/6] detect unterminated const arrays in strlen calls (PR 86552)

2018-09-08 Thread Jeff Law
On 9/8/18 3:47 PM, Bernd Edlinger wrote: > Hi, > > >> -fold_builtin_strlen (location_t loc, tree type, tree arg) >> +fold_builtin_strlen (location_t loc, tree fndecl, tree type, tree arg) >> { >>if (!validate_arg (arg, POINTER_TYPE)) >> return NULL_TREE; >>else >> { >> -

Re: [PATCH 2/6] detect unterminated const arrays in strlen calls (PR 86552)

2018-09-08 Thread Bernd Edlinger
Hi, > -fold_builtin_strlen (location_t loc, tree type, tree arg) > +fold_builtin_strlen (location_t loc, tree fndecl, tree type, tree arg) > { >if (!validate_arg (arg, POINTER_TYPE)) > return NULL_TREE; >else > { > - tree len = c_strlen (arg, 0); > - > + tree nonstr

[wwwdocs] Trim the navigation bar a bit more

2018-09-08 Thread Gerald Pfeifer
Working on the move to HTML 5 I noticed several opportunities beyond what I did in February 2016: https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00932.html The patch below - changes the "Mission Statement" link to just "Mission", - removes the link to the "Steering Committee" page, which

[wwwdocs] Use (more) CSS instead of direct formatting for our navigation bar

2018-09-08 Thread Gerald Pfeifer
In a lot of places I found guidance to use margin-left:auto;margin-right:auto; alas here really it is (only) text-align:center; that works, which class="center" provides. (For reference, https://css-tricks.com/centering-css-complete-guide/ is a good source of information on this.) This does

[C++ PATCH] PR c++/86678 - constexpr function with non-constant after return.

2018-09-08 Thread Jason Merrill
In this testcase, the call to f() can never be a constant expression, but that's not a problem because it isn't always reached by calls to g. We were wrongly rejecting this because potential_constant_expression_1 lacked the jump tracking that

Re: [PATCH] Add a dwarf unit type to represent 24 bit values.

2018-09-08 Thread John Darrington
Ping! Does anyone have any objections or comments? J'

Re: C++ PATCH to fix more FAILs in c++17/c++2a

2018-09-08 Thread Jason Merrill
On Fri, Sep 7, 2018 at 7:46 PM, Marek Polacek wrote: > +++ gcc/testsuite/c-c++-common/array-init.c > @@ -2,3 +2,4 @@ > /* { dg-prune-output "sorry, unimplemented: non-trivial designated > initializers not supported" } */ > > char x[] = { [-1] = 1, 2, 3 }; /* { dg-error "array index in

Re: C++ PATCH to add RANGE_FOR_INIT_STMT to cxx_pretty_printer

2018-09-08 Thread Jason Merrill
OK. On Fri, Sep 7, 2018 at 8:48 PM, Marek Polacek wrote: > Now that we have RANGE_FOR_INIT_STMT we should handle it in > cxx_pretty_printer. > I don't actually know how to trigger it but it seems straightforward to add. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > 2018-09-07

Prune TYPE_NEXT_VARIANT lists in free_lang_data

2018-09-08 Thread Jan Hubicka
Hi while working on path to replace type variant by first compatible one I run into issue that the first vairant was not seen by free_lang_data. I think this is a bug becuase nothing prevents middle-end from looking up a variant there and using it when it needs to do so. I tried to walk the

[wwwdocs] gcc-3.4/mips-abi.html -- convert to CSS / HTML 5

2018-09-08 Thread Gerald Pfeifer
Unfortunately for personal reasons I am not able to attend the Cauldron this year, but I still can do a bit from home. ;-) This was one of three reminaining (older) pages that did not fully pass validation as HTML 5, but of course displayed just fine. Committed. Gerald Convert to CSS / HTML