[committed] graphite: add missing dump_enabled_p checks (PR tree-optimization/88015)

2018-11-15 Thread David Malcolm
As of r266080, calls to dump_print* that aren't guarded by if (dump_enabled_p ()) lead to an assertion failure. This patch fixes a few calls that weren't guarded, avoiding a call to find_loop_location for the no-dumping case. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.

Re: [PATCH 01/25] Handle vectors that don't fit in an integer.

2018-11-15 Thread Andrew Stubbs
On 14/09/2018 16:37, Richard Sandiford wrote: diff --git a/gcc/combine.c b/gcc/combine.c index a2649b6..cbf9dae 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -8621,7 +8621,13 @@ gen_lowpart_or_truncate (machine_mode mode, rtx x) { /* Bit-cast X into an integer mode. */

[committed] doc/ux.texi: auto_diagnostic_group now does something

2018-11-15 Thread David Malcolm
As of r266186, auto_diagnostic_group is now user-visible (via -fdiagnostics-format=json), so update the diagnostic guidelines accordingly. Committed to trunk as r266187. gcc/ChangeLog: * doc/ux.texi (Group logically-related diagnostics): Move discussion of auto_diagnostic_group

Re: [PATCH] diagnose unsupported uses of hardware register variables (PR 88000)

2018-11-15 Thread Alexander Monakov
On Thu, 15 Nov 2018, Michael Matz wrote: > I disagree that there's something to fix. My mental model for local reg > vars has always been that such vars are actually an alias for that > register, not comparable to normal automatic variables (so, much like > global reg vars, except that they

Re: [C++ Patch] Fix ensure_literal_type_for_constexpr_object locations

2018-11-15 Thread Marek Polacek
On Thu, Nov 15, 2018 at 02:39:14PM +0100, Paolo Carlini wrote: > Hi, > > this one should be straightforward. Tested x86_64-linux. > > Thanks, Paolo. > > / > > /cp > 2018-11-15 Paolo Carlini > > * constexpr.c (ensure_literal_type_for_constexpr_object): Use >

Re: Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses

2018-11-15 Thread Marek Polacek
On Thu, Nov 15, 2018 at 10:56:15AM -0500, Marek Polacek wrote: > + if (current_class_type) > + inject_this_parameter (current_class_type, TYPE_UNQUALIFIED); > > I think you can remove the if here. Actually you probably need it after all. Marek

[PATCH] Fix PR88031

2018-11-15 Thread Richard Biener
With one of my last changes we regressed here so this goes all the way cleaning up things so we only have a single flag to vectorizable_condition whetehr we are called from reduction context. In theory the !multiple-types restriction could be easily lifted now (just remove the check).

Re: [C++ Patch] Fix ensure_literal_type_for_constexpr_object locations

2018-11-15 Thread Paolo Carlini
Hi, On 15/11/18 15:34, Marek Polacek wrote: How about using location_of instead of DECL_SOURCE_LOCATION? Well, we know that VAR_P is true of that DECL tree node, thus I don't see how location_of would be better. Certainly is more complex. Paolo.

Re: [PATCH 1/7][MSP430][TESTSUITE] Tweak dg-directives for msp430-elf

2018-11-15 Thread Paul Koning
> On Nov 14, 2018, at 5:19 PM, Jozef Lawrynowicz > wrote: > > On Wed, 14 Nov 2018 11:30:39 -0500 > Paul Koning wrote: > >>> On Nov 14, 2018, at 10:44 AM, Jozef Lawrynowicz >>> wrote: >>> >>> Patch 1 tweaks dg directives in tests specifically for msp430. Many of >>> these are extensions

Re: [PATCH] diagnose unsupported uses of hardware register variables (PR 88000)

2018-11-15 Thread Michael Matz
Hi, On Wed, 14 Nov 2018, Alexander Monakov wrote: > On Wed, 14 Nov 2018, Segher Boessenkool wrote: > > Yeah, using local register vars to access global registers only works > > by accident. It does work currently though, and people apparently use > > it, so we shouldn't break it :-/ > > In the

[C++ Patch] Fix ensure_literal_type_for_constexpr_object locations

2018-11-15 Thread Paolo Carlini
Hi, this one should be straightforward. Tested x86_64-linux. Thanks, Paolo. / /cp 2018-11-15 Paolo Carlini * constexpr.c (ensure_literal_type_for_constexpr_object): Use DECL_SOURCE_LOCATION in error_at calls. /testsuite 2018-11-15 Paolo Carlini

Re: Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses

2018-11-15 Thread Marek Polacek
On Thu, Nov 15, 2018 at 02:26:24PM +0530, Umesh Kalappa wrote: > Thank you Marek for the inputs . > >>In the future, if using diff, please also use the -p option. > We are using svn diif and other comments are addressed . Thanks, but it doesn't seem like the -p option was used. > please let us

Re: Don't use %z printf format length specified

2018-11-15 Thread Michael Matz
Hi, On Thu, 15 Nov 2018, Richard Biener wrote: > > Okay, probably. Then consider the same patch with sprinkling casts to > > long for all these arguments (the actual numbers will fit that type in > > reality). I could of course also use PRIu64 but that makes my eyes > > bleed. > > Hmm.

[committed] v2: Machine-readable diagnostic output (PR other/19165)

2018-11-15 Thread David Malcolm
Changed in v2: * added test coverage * improved docs * pass orig_diag_kind to the finalizer callback Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Committed to trunk as r266186. Blurb from v1: This patch implements a -fdiagnostics-format=json option which converts the

Re: Don't use %z printf format length specified

2018-11-15 Thread Richard Biener
On Thu, Nov 15, 2018 at 2:31 PM Michael Matz wrote: > > Hi, > > On Thu, 15 Nov 2018, Richard Biener wrote: > > > > Okay, probably. Then consider the same patch with sprinkling casts to > > > long for all these arguments (the actual numbers will fit that type in > > > reality). I could of course

Re: [PATCH, csky] Update dynamic linker'name

2018-11-15 Thread 瞿仙淼
Hi, GNU_USER_DYNAMIC_LINKER is defined in linux.h, it will expand to GLIBC_DYNAMIC_LINKER when configured with glibc > 在 2018年11月15日,下午6:30,Richard Biener 写道: > > On Thu, Nov 15, 2018 at 7:02 AM 瞿仙淼 wrote: >> >> Hi, >>I have submitted a patch to update dynamic linker'name

[C++ DR 2336] virtual dtors, exception specs & abstract classes

2018-11-15 Thread Nathan Sidwell
This patch implements dr2336, a fix to dr1658 dr1658 made virtual bases of abstract classes ignored for synthesize cdtors -- there are no complete objects of such type, so the vbases will never be cdtored by such cdtors. Except when virtual dtors are in play, such a dtor could override a

Re: [C++ Patch] Fix ensure_literal_type_for_constexpr_object locations

2018-11-15 Thread Jason Merrill
OK. On Thu, Nov 15, 2018 at 8:39 AM Paolo Carlini wrote: > > Hi, > > this one should be straightforward. Tested x86_64-linux. > > Thanks, Paolo. > > / >

[PATCH][libbacktrace] Factor out read_string

2018-11-15 Thread Tom de Vries
Hi, This patch factors out new function read_string in dwarf.c. Bootstrapped and reg-tested on x86_64. OK for trunk (or, for stage1)? Thanks, - Tom [libbacktrace] Factor out read_string 2018-11-15 Tom de Vries * dwarf.c (read_string): Factor out of ... (read_attribute,

Re: [PATCH] RFC: elide repeated source locations (PR other/84889)

2018-11-15 Thread Eric Gallager
On 11/15/18, Martin Sebor wrote: > On 11/14/2018 02:12 PM, David Malcolm wrote: >> On Mon, 2018-11-12 at 13:37 -0700, Martin Sebor wrote: >>> On 11/11/2018 07:43 PM, David Malcolm wrote: We often emit more than one diagnostic at the same source location. For example, the C++ frontend

Re: [PATCH 1/7][MSP430][TESTSUITE] Tweak dg-directives for msp430-elf

2018-11-15 Thread Jozef Lawrynowicz
On Thu, 15 Nov 2018 09:48:05 -0500 Paul Koning wrote: > > On Nov 14, 2018, at 5:19 PM, Jozef Lawrynowicz > > wrote: > > > > > > I'd be curious if the line I added the xfail to in c-c++-common/pr57371-2.c > > also fails for pdp11. > > > > The conversion to float might be getting optimized out

Re: [PATCH] RFC: elide repeated source locations (PR other/84889)

2018-11-15 Thread Martin Sebor
On 11/14/2018 02:12 PM, David Malcolm wrote: On Mon, 2018-11-12 at 13:37 -0700, Martin Sebor wrote: On 11/11/2018 07:43 PM, David Malcolm wrote: We often emit more than one diagnostic at the same source location. For example, the C++ frontend can emit many diagnostics at the same source

Re: [PATCH] diagnose unsupported uses of hardware register variables (PR 88000)

2018-11-15 Thread Martin Sebor
On 11/14/2018 02:47 AM, Jakub Jelinek wrote: On Tue, Nov 13, 2018 at 09:11:41PM -0700, Martin Sebor wrote: --- gcc/c-family/c-warn.c (revision 266086) +++ gcc/c-family/c-warn.c (working copy) @@ -2609,3 +2609,39 @@ warn_for_multistatement_macros (location_t body_lo inform

[PR c++/86246] ICE tsubst explicit operator call

2018-11-15 Thread Nathan Sidwell
We weren't noticing that 'expr.operator T()' is dependent if T is dependent. Therefore we looked up 'operator T' at template definition time and went down hill from there. 86246 and 87989 had different failure modes (one iced, one generated wrong code), so adding both. booted & tested on

Re: [PATCH] avoid -Wnonnull for printf format in dead code (PR 87041)

2018-11-15 Thread Martin Sebor
On 11/15/2018 02:39 AM, Matthew Malcomson wrote: On 02/11/18 09:54, Christophe Lyon wrote: Hi, I've noticed failure on targets using newlib (aarch64-elf and arm-eabi): FAIL: gcc.c-torture/execute/printf-2.c FAIL: gcc.c-torture/execute/user-printf.c my gcc.log contains:

Re: [PATCH] Support simd function declarations via a pre-include. (was: [PATCH][RFC]Overloading intrinsics)

2018-11-15 Thread Bernhard Reutner-Fischer
On 14 November 2018 12:35:27 CET, Jakub Jelinek wrote: >> --- a/gcc/config/gnu-user.h >> +++ b/gcc/config/gnu-user.h >> @@ -170,3 +170,6 @@ see the files COPYING3 and COPYING.RUNTIME >respectively. If not, see >>LD_STATIC_OPTION " --whole-archive -llsan --no-whole-archive " \ >>

Re: [PATCH][rs6000] inline expansion of memcmp using vsx

2018-11-15 Thread Aaron Sawdey
On 11/15/18 4:02 AM, Richard Biener wrote: > On Wed, Nov 14, 2018 at 5:43 PM Aaron Sawdey wrote: >> >> This patch generalizes some the functions added earlier to do vsx expansion >> of strncmp >> so that the can also generate the code needed for memcmp. I reorganized >> expand_block_compare() a

Re: [PATCH] Support simd function declarations via a pre-include. (was: [PATCH][RFC]Overloading intrinsics)

2018-11-15 Thread Jakub Jelinek
On Thu, Nov 15, 2018 at 08:40:13PM +0100, Bernhard Reutner-Fischer wrote: > On 14 November 2018 12:35:27 CET, Jakub Jelinek wrote: > > >> --- a/gcc/config/gnu-user.h > >> +++ b/gcc/config/gnu-user.h > >> @@ -170,3 +170,6 @@ see the files COPYING3 and COPYING.RUNTIME > >respectively. If not, see

Re: [PING^2] Re: [PATCH 1/3] Support instrumenting returns of instrumented functions

2018-11-15 Thread Andi Kleen
Andi Kleen writes: Ping!^2 > Andi Kleen writes: > > Ping! > >> From: Andi Kleen >> >> When instrumenting programs using __fentry__ it is often useful >> to instrument the function return too. Traditionally this >> has been done by patching the return address on the stack >> frame on entry.

Re: [PATCH] diagnose built-in declarations without prototype (PR 83656)

2018-11-15 Thread Martin Sebor
On 11/15/2018 03:10 AM, Richard Biener wrote: On Wed, Nov 14, 2018 at 7:08 PM Jeff Law wrote: On 11/6/18 4:56 PM, Martin Sebor wrote: In response to Joseph's comment I've removed the interaction with -Wpedantic from the updated patch. In addition, to help detect bugs like the one in the

Re: [PATCH] diagnose unsupported uses of hardware register variables (PR 88000)

2018-11-15 Thread Martin Sebor
On 11/14/2018 02:39 AM, Alexander Monakov wrote: On Tue, 13 Nov 2018, Martin Sebor wrote: In PR 88000 the reporter expects to be able to use an explicit register local variable in a context where it isn't supported i.e., for something other than an input or output of an asm statement: namely

[doc, committed] clarify that "packed" attribute can apply to C++ classes

2018-11-15 Thread Sandra Loosemore
I've checked in this patch for PR 25759, another minor documentation improvement. -Sandra 2018-11-15 Sandra Loosemore PR c++/25759 gcc/ * doc/extend.texi (Common Type Attributes): Make it explicit that attribute "packed" can apply to C++ classes. Index: gcc/doc/extend.texi

[PATCH] v2: C/C++: add fix-it hints for missing '&' and '*' (PR c++/87850)

2018-11-15 Thread David Malcolm
On Tue, 2018-11-13 at 16:34 -0500, Jason Merrill wrote: > On Mon, Nov 12, 2018 at 4:32 PM Martin Sebor > wrote: > > On 11/11/2018 02:02 PM, David Malcolm wrote: > > > On Sun, 2018-11-11 at 11:01 -0700, Martin Sebor wrote: > > > > On 11/10/2018 12:01 AM, Eric Gallager wrote: > > > > > On 11/9/18,

Re: [PATCH] RFC: C/C++: print help when a header can't be found

2018-11-15 Thread Eric Gallager
On 11/12/18, Martin Sebor wrote: > On 11/11/2018 04:33 PM, David Malcolm wrote: >> When gcc can't find a header file, it's a hard error that stops the >> build, >> typically requiring the user to mess around with compile flags, >> Makefiles, >> dependencies, and so forth. >> >> Often the exact

[PING #4][PATCH] avoid warning on constant strncpy until next statement is reachable (PR 87028)

2018-11-15 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01818.html Please let me know if there is something I need to change here to make the fix acceptable or if I should stop trying. On 10/31/2018 10:33 AM, Martin Sebor wrote: Ping: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01818.html On

[PATCH, csky] Update linux-unwind.h for kernel

2018-11-15 Thread 瞿仙淼
Hi, I have submitted a patch to update linux-unwind for kernel Index: libgcc/ChangeLog === --- libgcc/ChangeLog(revision 266199) +++ libgcc/ChangeLog(working copy) @@ -1,5 +1,11 @@ 2018-11-15 Xianmiao Qu +

[PING #4] [PATCH] look harder for MEM_REF operand equality to avoid -Wstringop-truncation (PR 84561)

2018-11-15 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01934.html Do I need to change something in this patch to make it acceptable or should I assume we will leave this bug in GCC unfixed? On 10/31/2018 10:35 AM, Martin Sebor wrote: Ping: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01934.html

[PATCH v2 2/3] Add a pass to automatically add ptwrite instrumentation

2018-11-15 Thread Andi Kleen
From: Andi Kleen Add a new pass to automatically instrument changes to variables with the new PTWRITE instruction on x86. PTWRITE writes a 4 or 8 byte field into an Processor Trace log, which allows low over head logging of information. Essentially it's a hardware accelerated printf. This

[PATCH v2 3/3] Add tests for the vartrace pass

2018-11-15 Thread Andi Kleen
From: Andi Kleen So far they are mostly i386 target specific. Later they could be moved up to architecture specific if some other architecture adds vartracing. gcc/testsuite/: 2018-11-15 Andi Kleen * g++.dg/vartrace-3.C: New test. * g++.dg/vartrace-ret.C: New test.

Updated version of vartrace pass

2018-11-15 Thread Andi Kleen
First patch is x86 specific for Uros, the rest is the updated generic middle end implementation. Support automatic data tracing using the PTWRITE instruction on Intel CPUs. This is an updated version addressing (nearly) all the excellent review comments. It ended up being large scale changes in

[PATCH v2 1/3] Allow memory operands for PTWRITE

2018-11-15 Thread Andi Kleen
From: Andi Kleen The earlier PTWRITE builtin definition was unnecessarily restrictive, only allowing register input to PTWRITE. The instruction actually supports memory operands too, so allow that too. gcc/: 2018-11-15 Andi Kleen * config/i386/i386.md: Allow memory operands to

PING [PATCH] add simple attribute introspection

2018-11-15 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01473.html (Still looking for an approval.) On 11/09/2018 04:43 PM, Martin Sebor wrote: On 11/09/2018 12:59 PM, Jeff Law wrote: On 10/31/18 10:27 AM, Martin Sebor wrote: Ping: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01473.html With

Re: [PATCH] minor FDO profile related fixes

2018-11-15 Thread Indu Bhagat
On 11/12/2018 01:48 AM, Martin Liška wrote: make check-gcc on x86_64 shows no new failures. (A related PR washttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=86957 where we added diagnostics for the NO PROFILE case.) Hi. Thanks for the patch. I'm not a maintainer, but the idea of the patch

Re: Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses

2018-11-15 Thread Umesh Kalappa
Thank you Marek,Appreciate your valuable feedback on the patch . Attached the latest ,please do let us know your thoughts. ~Umesh On Thu, Nov 15, 2018 at 9:26 PM Marek Polacek wrote: > > On Thu, Nov 15, 2018 at 02:26:24PM +0530, Umesh Kalappa wrote: > > Thank you Marek for the inputs . > >

Re: [PATCH v2 1/3] Allow memory operands for PTWRITE

2018-11-15 Thread Uros Bizjak
On Fri, Nov 16, 2018 at 4:57 AM Andi Kleen wrote: > > From: Andi Kleen > > The earlier PTWRITE builtin definition was unnecessarily restrictive, > only allowing register input to PTWRITE. The instruction actually > supports memory operands too, so allow that too. > > gcc/: > > 2018-11-15 Andi

[PATCH] Fix PR87917

2018-11-15 Thread Richard Biener
The following side-steps a possible issue with the evolution_function_is_affine_multivariate_p predicate by guarding the call to analyze_subscript_affine_affine in analyze_miv_subscript in the same way as the call from analyze_siv_subscript. Bootstrapped and tested on x86_64-unknown-linux-gnu,

Re: [PATCH][RFC] Introduce BIT_FIELD_INSERT

2018-11-15 Thread Richard Biener
On Wed, 14 Nov 2018, Andrew Pinski wrote: > On Fri, May 13, 2016 at 3:51 AM Richard Biener wrote: > > > > > > The following patch adds BIT_FIELD_INSERT, an operation to > > facilitate doing bitfield inserts on registers (as opposed > > to currently where we'd have a BIT_FIELD_REF store). > > > >

Re: [PATCH][RFC] Come up with -flive-patching master option.

2018-11-15 Thread Martin Liška
On 11/14/18 6:54 PM, Qing Zhao wrote: > Hi, > > >> On Nov 14, 2018, at 9:03 AM, Martin Liška wrote: >> >>> Yes, you are right. I added this into my patch. >>> >>> I am attaching the new patch here. >> >> Hello. >> >> Please use >> git diff HEAD~ > /tmp/patch &&

Re: [PATCH 1/7][MSP430][TESTSUITE] Tweak dg-directives for msp430-elf

2018-11-15 Thread Andreas Schwab
On Nov 14 2018, Jozef Lawrynowicz wrote: > The timeout as set in the dejagnu configuration for msp430 > ([dejagnu.git]/baseboards/msp430-sim.exp) is 30, which is rarely > hit. I don't think it makes sense for a board file to set a smaller timeout than the default. Andreas. -- Andreas Schwab,

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87626

2018-11-15 Thread Umesh Kalappa
Hi All, The attached patch (pr85667.patch) fixes the subjected issue . we tested on x86_64(linux and windows both) and no regress found . ok to commit ? Thank you ~Umesh pr85667.patch Description: Binary data

Re: [PATCH][RFC] Introduce BIT_FIELD_INSERT

2018-11-15 Thread Richard Biener
On Thu, 15 Nov 2018, Richard Biener wrote: > On Wed, 14 Nov 2018, Andrew Pinski wrote: > > > On Fri, May 13, 2016 at 3:51 AM Richard Biener wrote: > > > > > > > > > The following patch adds BIT_FIELD_INSERT, an operation to > > > facilitate doing bitfield inserts on registers (as opposed > > >

Re: [PATCH] Fix ICE in fixup_abnormal_edges (PR rtl-optimization/88018)

2018-11-15 Thread Richard Biener
On Thu, 15 Nov 2018, Jakub Jelinek wrote: > Hi! > > On the following testcase, we have a call (not marked noreturn), which can > throw, followed immediately by __builtin_unreachable (), so it effectively > is noreturn in this particular call site (i.e. if it returns, it is UB). > In RTL this is

Re: Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses

2018-11-15 Thread Umesh Kalappa
Thank you Marek for the inputs . >>In the future, if using diff, please also use the -p option. We are using svn diif and other comments are addressed . please let us know your take on the revised attached patch . Thank you ~Umesh On Thu, Nov 15, 2018 at 12:23 AM Marek Polacek wrote: > > On

Re: [PATCH] avoid -Wnonnull for printf format in dead code (PR 87041)

2018-11-15 Thread Matthew Malcomson
On 02/11/18 09:54, Christophe Lyon wrote: > Hi, > > I've noticed failure on targets using newlib (aarch64-elf and arm-eabi): > FAIL: gcc.c-torture/execute/printf-2.c > FAIL: gcc.c-torture/execute/user-printf.c > > my gcc.log contains: > gcc.c-torture/execute/user-printf.c -O0 execution test

Re: [PATCH 21/25] GCN Back-end (part 2/2).

2018-11-15 Thread Andrew Stubbs
On 14/11/2018 22:30, Jeff Law wrote: There's a particular case that has historically been problematical. If you have this kind of sequence in the epilogue restore register using FP move fp->sp (deallocates frame) return Under certain circumstances the scheduler can

Re: [PATCH][rs6000] inline expansion of memcmp using vsx

2018-11-15 Thread Richard Biener
On Wed, Nov 14, 2018 at 5:43 PM Aaron Sawdey wrote: > > This patch generalizes some the functions added earlier to do vsx expansion > of strncmp > so that the can also generate the code needed for memcmp. I reorganized > expand_block_compare() a little to be able to make use of this there. The

Re: [PATCH] diagnose built-in declarations without prototype (PR 83656)

2018-11-15 Thread Richard Biener
On Wed, Nov 14, 2018 at 7:08 PM Jeff Law wrote: > > On 11/6/18 4:56 PM, Martin Sebor wrote: > > In response to Joseph's comment I've removed the interaction > > with -Wpedantic from the updated patch. > > > > In addition, to help detect bugs like the one in the test case > > for pr87886, I have

Re: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667

2018-11-15 Thread Umesh Kalappa
Edited the subjected for the proper PR no. ~Umesh On Thu, Nov 15, 2018 at 2:32 PM Umesh Kalappa wrote: > > Hi All, > > The attached patch (pr85667.patch) fixes the subjected issue . > we tested on x86_64(linux and windows both) and no regress found . > > ok to commit ? > > Thank you > ~Umesh

Re: [PATCH, csky] Update dynamic linker'name

2018-11-15 Thread Richard Biener
On Thu, Nov 15, 2018 at 7:02 AM 瞿仙淼 wrote: > > Hi, > I have submitted a patch to update dynamic linker'name > > > Index: gcc/ChangeLog > === > --- gcc/ChangeLog (revision 266171) > +++ gcc/ChangeLog (working copy)

Re: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87626

2018-11-15 Thread Richard Biener
On Thu, Nov 15, 2018 at 10:02 AM Umesh Kalappa wrote: > > Hi All, > > The attached patch (pr85667.patch) fixes the subjected issue . > we tested on x86_64(linux and windows both) and no regress found . > > ok to commit ? I wonder if you can turn the testcase into a dg-run one, making the

[PATCH] Fix PR88030

2018-11-15 Thread Richard Biener
The following fixes PR88030. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2018-11-15 Richard Biener PR tree-optimization/88030 * tree-complex.c (need_eh_cleanup): New global. (update_complex_assignment): Mark blocks that need EH update.

Re: [PATCH] avoid -Wnonnull for printf format in dead code (PR 87041)

2018-11-15 Thread Christophe Lyon
On Thu, 15 Nov 2018 at 10:39, Matthew Malcomson wrote: > > On 02/11/18 09:54, Christophe Lyon wrote: > > Hi, > > > > I've noticed failure on targets using newlib (aarch64-elf and arm-eabi): > > FAIL: gcc.c-torture/execute/printf-2.c > > FAIL: gcc.c-torture/execute/user-printf.c > > > > my gcc.log

[PATCH] Fix PR88029, change how gimple_call_flags works

2018-11-15 Thread Richard Biener
The following makes sure we preserve a 'const' attribute that was in effect on an indirect call even after turning it into a direct call of a non-const (pure for the testcase) function. This mimics how we handle nothrow/noreturn. By unioning ECF_ flags from fntype and decl we get the best of

Re: Don't use %z printf format length specified

2018-11-15 Thread Richard Biener
On Wed, Nov 14, 2018 at 6:24 PM Michael Matz wrote: > > Hi, > > On Wed, 14 Nov 2018, Alexander Monakov wrote: > > > On Wed, 14 Nov 2018, Michael Matz wrote: > > > > > Hi, > > > > > > it's not c++98 conforming and I get 1 million warnings when compiling. > > > Initially I had also casts to long at

Re: RFC (branch prediction): PATCH to implement P0479R5, [[likely]] and [[unlikely]].

2018-11-15 Thread Martin Liška
On 11/13/18 8:42 PM, Jason Merrill wrote: > On Tue, Nov 13, 2018 at 9:20 AM Martin Liška wrote: >> >> On 11/13/18 5:43 AM, Jason Merrill wrote: >>> [[likely]] and [[unlikely]] are equivalent to the GNU hot/cold attributes, >>> except that they can be applied to arbitrary statements as well as

Re: [PATCH 2/6] ifcvt: Allow constants operands in noce_convert_multiple_sets.

2018-11-15 Thread Robin Dapp
> This may ultimately be too simplistic. There are targets where some > constants are OK, but others may not be. By checking the predicate > like this I think you can cause over-aggressive if-conversion if the > target allows a range of integers in the expander's operand predicate, > but allows

Re: [PATCH 5/6] ifcvt: Only created temporaries as needed.

2018-11-15 Thread Robin Dapp
> This looks pretty reasonable. ISTM it ought to be able to go forward if > it's tested independently. The test suite already passes, any other tests you have in mind? To be honest I suppose noce_convert_multiple_sets will currently never successfully return (due to the costing problems I

[v3 PATCH] PR libstdc++/87855

2018-11-15 Thread Ville Voutilainen
Tested on Linux-PPC64. Ok for trunk? Backports? 2018-11-15 Ville Voutilainen PR libstdc++/87855 Also implement P0602R4 (variant and optional should propagate copy/move triviality) for std::optional. * include/std/optional (_Optional_payload): Change the main constraints to

Re: [PATCH 1/7][MSP430][TESTSUITE] Tweak dg-directives for msp430-elf

2018-11-15 Thread Jozef Lawrynowicz
On Thu, 15 Nov 2018 10:36:57 +0100 Andreas Schwab wrote: > On Nov 14 2018, Jozef Lawrynowicz wrote: > > > The timeout as set in the dejagnu configuration for msp430 > > ([dejagnu.git]/baseboards/msp430-sim.exp) is 30, which is rarely > > hit. > > I don't think it makes sense for a board

Re: RFC (branch prediction): PATCH to implement P0479R5, [[likely]] and [[unlikely]].

2018-11-15 Thread Jan Hubicka
> > A warning seems appropriate. You think the front end is the right > > place for that? > > Probably yes. Note that middle-end can optimize about dead branches and so > that > theoretically one can end up with a branching where e.g. both branches are > [[likely]]. > I wouldn't bother users

Re: RFA: vectorizer patches 1/2 : WIDEN_MULT_PLUS support

2018-11-15 Thread Richard Biener
On Wed, Nov 14, 2018 at 4:21 PM Joern Wolfgang Rennecke wrote: > > > On 14/11/18 09:53, Richard Biener wrote: > >> WIDEN_MULT_PLUS is special on our target in that it creates double-sized > >> vectors. > > Are there really double-size vectors or does the target simply produce > > the output in

Re: [PATCH 8/9][GCC][Arm] Add autovectorization support for complex multiplication and addition

2018-11-15 Thread Richard Biener
On Wed, Nov 14, 2018 at 4:47 PM Tamar Christina wrote: > > Hi Richard, > > > > Ok for trunk? > > > > +;; The complex mla operations always need to expand to two instructions. > > +;; The first operation does half the computation and the second does > > +the ;; remainder. Because of this, expand

Re: [Committed][AArch64] Fix PR62178 testcase failures

2018-11-15 Thread Wilco Dijkstra
Hi Segher, > On Wed, Nov 14, 2018 at 12:37:05PM +, Wilco Dijkstra wrote: >> +/* { dg-final { scan-assembler-not { dup } } } */ >> +/* { dg-final { scan-assembler-not { fmov } } } */ > > { dup }   is the same as   " dup "  , that is, with spaces and all. > I don't think you want that (there

Re: [PATCH 8/9][GCC][Arm] Add autovectorization support for complex multiplication and addition

2018-11-15 Thread Richard Biener
On Thu, Nov 15, 2018 at 1:42 PM Richard Biener wrote: > > On Wed, Nov 14, 2018 at 4:47 PM Tamar Christina > wrote: > > > > Hi Richard, > > > > > > Ok for trunk? > > > > > > +;; The complex mla operations always need to expand to two instructions. > > > +;; The first operation does half the

RE: [PATCH 1/9][GCC][AArch64][middle-end] Implement SLP recognizer for Complex addition with rotate and complex MLA with rotation

2018-11-15 Thread Richard Biener
On Wed, 14 Nov 2018, Tamar Christina wrote: > Hi Richard, > > Thanks for the feedback, I've replied inline below. > I'll wait for your answers before making changes. I have commented on the other mail so will leave out redunant parts here. > > -Original Message- > > From: Richard

[C++ DR 2336] Clean up synth walkers first

2018-11-15 Thread Nathan Sidwell
This patch cleans up walk_field_subobs, synthesized_method_base_walk & synthesized_method_walk. They use a mixture of old-style partially-overlapping booleans /and/ new style special_function_kind enumeration. synthesized_method_walk was determining the booleans from sfk and then passing the