Merge from trunk to gccgo branch

2016-04-12 Thread Ian Lance Taylor
I merged trunk revision 234923 to the gccgo branch. Ian

libgo patch committed: Fix Value.Call results to not be addressable

2016-04-12 Thread Ian Lance Taylor
The gccgo version of the reflect package was incorrectly marking the results of Value.Call as addressable. This generally didn't matter, but it turns out to break a use of the text/template package. This patch fixes the problem. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jason Merrill
On 04/12/2016 04:58 PM, Nathan Sidwell wrote: Well, I had a patch all ready, but when writing it up, I discovered the logic behind comment #26 is wrong. Specifically, Jason's proto-patch makes the fn_copy_table GCable, but keeps the constexpr_call_table GC-deletable. The logic is that if we

[SPARC] Fix PR target/70630

2016-04-12 Thread Eric Botcazou
This is the embarrassing dangling-else bug in sparc_compute_frame_size spotted by the -Wparentheses warning. It went unnoticed for 5 years because the block of code is actually a no-op (with or without the bug), it would do something only if someone wanted to give a try to a totally new ABI

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Nathan Sidwell
Well, I had a patch all ready, but when writing it up, I discovered the logic behind comment #26 is wrong. Specifically, Jason's proto-patch makes the fn_copy_table GCable, but keeps the constexpr_call_table GC-deletable. The logic is that if we need to recreate a particular constexpr call,

Re: [PATCH] Fix debug ICE on aarch64 due to bad rtl simplification (PR debug/70628)

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 10:14:17PM +0200, Bernd Schmidt wrote: > >So, would you be ok with the patch if I change it that way (to be tested > >tomorrow)? > > Yeah, I think so. So here is what I'll throw at testing: 2016-04-12 Jakub Jelinek PR debug/70628 *

RFC: C++ PATCH to adjust empty class parameter passing ABI

2016-04-12 Thread Jason Merrill
A revision of the patch previously posted at https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00841.html To recap quickly, the C++ compiler has used a different calling convention for passing empty classes, because C++ says they have size 1, while the GCC C extension gives them size 0. But

Re: [PATCH] Fix debug ICE on aarch64 due to bad rtl simplification (PR debug/70628)

2016-04-12 Thread Bernd Schmidt
On 04/12/2016 10:06 PM, Jakub Jelinek wrote: On Tue, Apr 12, 2016 at 10:02:18PM +0200, Bernd Schmidt wrote: On 04/12/2016 05:10 PM, Jakub Jelinek wrote: This patch arranges for a new argument to convert_memory_address_addr_space_1 and calls it with that new argument set to true, to make sure

Re: [PATCH] Fix debug ICE on aarch64 due to bad rtl simplification (PR debug/70628)

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 10:02:18PM +0200, Bernd Schmidt wrote: > On 04/12/2016 05:10 PM, Jakub Jelinek wrote: > >This patch arranges for a new argument to > >convert_memory_address_addr_space_1 and calls it with that new argument set > >to true, to make sure it never emits instructions or creates

Re: [PATCH] Fix debug ICE on aarch64 due to bad rtl simplification (PR debug/70628)

2016-04-12 Thread Bernd Schmidt
On 04/12/2016 05:10 PM, Jakub Jelinek wrote: This patch arranges for a new argument to convert_memory_address_addr_space_1 and calls it with that new argument set to true, to make sure it never emits instructions or creates pseudos. I think the approach looks sensible, but I don't know if you

[PATCH] Clear TREE_STATIC on vector ctors if needed (PR middle-end/70633)

2016-04-12 Thread Jakub Jelinek
Hi! As the testcase shows, gimplification of the VECTOR_TYPE CONSTRUCTOR elements can turn previously valid initializer_constant_valid_p into a temporary (thus no longer initializer_constant_valid_p). The following patch just clears TREE_STATIC on the ctor if that happens, so that we expand it

[committed] Add PR c++/70571 testcase

2016-04-12 Thread Jakub Jelinek
Hi! On Thu, Apr 07, 2016 at 08:18:28AM -0700, Nathan Sidwell wrote: > 2016-04-06 Nathan Sidwell > > PR c++/70501 > * constexpr.c (cxx_eval_bare_aggregate): Handle VECTOR_TYPE > similarly to PMF. This patch fixed also PR70571, so I've committed the testcase

[committed] One more OpenMP declare simd ABI tweak

2016-04-12 Thread Jakub Jelinek
Hi! After clarification from Intel folks, I've committed following ABI tweak - the boundary at which large simdlen values become unsupported is whether the return type (or characteristic type if the former is void) can be passed as a vector in the __regcall calling convention (thus, fits into 8

Re: [PATCH], PR target/70640, Fix thinkos in PowerPC IEEE 128-bit floating point emulation

2016-04-12 Thread David Edelsohn
On Tue, Apr 12, 2016 at 3:11 PM, Michael Meissner wrote: > After I moved the patches for the 70381 to my internal branch for GCC 7.0 > submissions, I noticed test float128-1.c was failing. I tracked it down to the > fact that the pre-gcc7 branch defaults to using LRA

Re: [PATCH] Fix debug ICE on aarch64 due to bad rtl simplification (PR debug/70628)

2016-04-12 Thread H.J. Lu
On Tue, Apr 12, 2016 at 8:10 AM, Jakub Jelinek wrote: > Hi! > > Most of simplify-rtx.c attempts hard not to generate any extra instructions, > just simplify the RTL to something equivalent and let the user try to > recognize it, or whatever else it wishes. > This is especially

[PATCH], PR target/70640, Fix thinkos in PowerPC IEEE 128-bit floating point emulation

2016-04-12 Thread Michael Meissner
After I moved the patches for the 70381 to my internal branch for GCC 7.0 submissions, I noticed test float128-1.c was failing. I tracked it down to the fact that the pre-gcc7 branch defaults to using LRA on by default instead of reload. I tracked this down to using a "=" constraint on an input

Re: [PATCH] Don't include DECL_UIDs in tree-sra fancy names for -fdump-final-insns= (PR c++/70594)

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 08:19:57PM +0200, Richard Biener wrote: > >So you mean add another hash table that maps DECL_UIDs to these SRA > >counters? Because if we dump there any number of say FIELD_DECL, it > >would > >be desirable to use the same number on any further fancy names with > >that >

Re: [AArch64] Emit square root using the Newton series

2016-04-12 Thread Evandro Menezes
On 04/05/16 17:30, Evandro Menezes wrote: On 04/05/16 13:37, Wilco Dijkstra wrote: I can't get any of these to work... Not only do I get a large number of collisions and duplicated code between these patches, when I try to resolve them, all I get is crashes whenever I try to use sqrt (even

Re: [PATCH] Don't include DECL_UIDs in tree-sra fancy names for -fdump-final-insns= (PR c++/70594)

2016-04-12 Thread Richard Biener
On April 12, 2016 5:55:16 PM GMT+02:00, Jakub Jelinek wrote: >On Tue, Apr 12, 2016 at 05:49:26PM +0200, Richard Biener wrote: >> On April 12, 2016 4:54:27 PM GMT+02:00, Jakub Jelinek > wrote: >> >Hi! >> > >> >Even without the C++ FE changes, I believe there are

Re: [PATCH] 69517 - [5/6 regression] SEGV on a VLA with excess initializer elements

2016-04-12 Thread Jason Merrill
On 04/10/2016 07:14 PM, Martin Sebor wrote: The call to build_vla_check() in check_initializer() is to check only explicitly initialized VLAs. The latter function may need to complete the VLA element type and reshape the initializer so the call cannot be made earlier. The function returns the

Re: [AArch64] Add more precision choices for the reciprocal square root approximation

2016-04-12 Thread Evandro Menezes
On 04/04/16 11:13, Evandro Menezes wrote: On 04/01/16 18:08, Wilco Dijkstra wrote: Evandro Menezes wrote: I hope that this gets in the ballpark of what's been discussed previously. Yes that's very close to what I had in mind. A minor issue is that the vector modes cannot work as they start

Re: [AArch64] Emit division using the Newton series

2016-04-12 Thread Evandro Menezes
On 04/04/16 14:06, Evandro Menezes wrote: On 04/01/16 17:52, Evandro Menezes wrote: On 04/01/16 17:45, Wilco Dijkstra wrote: Evandro Menezes wrote: However, I don't think that there's the need to handle any special case for division. The only case when the approximation differs from

Re: [PATCH] 69517 - [5/6 regression] SEGV on a VLA with excess initializer elements

2016-04-12 Thread Martin Sebor
On 04/12/2016 09:43 AM, Jason Merrill wrote: On 04/10/2016 07:14 PM, Martin Sebor wrote: + if (TREE_CODE (type) == ARRAY_TYPE + && variably_modified_type_p (type, NULL_TREE) + && !processing_template_decl) +{ + /* Statically check for overflow in VLA

Re: [PATCH] Revert r234572 (aka PR testsuite/70577)

2016-04-12 Thread Richard Biener
On April 12, 2016 2:12:14 PM GMT+02:00, Jan Hubicka wrote: >> Hello. >> >> As release managers agreed on IRC, following patch reverts r234572 >> which introduced new PR testsuite/70577. >> >> I've been running bootstrap & regression tests on x86_64-linux-gnu. >> Ready to be

Re: [PATCH] Don't remove, but just reset DEBUG_INSNS during lra-spill.c (PR rtl-optimization/70596)

2016-04-12 Thread Vladimir Makarov
On 04/12/2016 11:14 AM, Jakub Jelinek wrote: Hi! Removing DEBUG_INSNs (unless it is removed e.g. together with whole bb as unreachable code) is always wrong, instead it should be reset, which indicates we don't know where the var lives (removing it instead means that the previous DEBUG_INSN for

Re: [PATCH] Don't include DECL_UIDs in tree-sra fancy names for -fdump-final-insns= (PR c++/70594)

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 05:49:26PM +0200, Richard Biener wrote: > On April 12, 2016 4:54:27 PM GMT+02:00, Jakub Jelinek > wrote: > >Hi! > > > >Even without the C++ FE changes, I believe there are occassional > >DECL_UID > >differences (I believe the code just cares that the

Re: [PATCH] Don't include DECL_UIDs in tree-sra fancy names for -fdump-final-insns= (PR c++/70594)

2016-04-12 Thread Richard Biener
On April 12, 2016 4:54:27 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >Even without the C++ FE changes, I believe there are occassional >DECL_UID >differences (I believe the code just cares that the ordering of the >uids >is stable), and the fancy DEC_IGNORED names can leak into

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jason Merrill
On 04/12/2016 11:19 AM, Jakub Jelinek wrote: On Tue, Apr 12, 2016 at 10:53:22AM -0400, Jason Merrill wrote: It doesn't seem that dangerous to me. The decls are only used within constexpr evaluation, they never escape. The uids can be used in hashing, folding, for the various on the side

Re: [PATCH] 69517 - [5/6 regression] SEGV on a VLA with excess initializer elements

2016-04-12 Thread Jason Merrill
On 04/10/2016 07:14 PM, Martin Sebor wrote: + if (TREE_CODE (type) == ARRAY_TYPE + && variably_modified_type_p (type, NULL_TREE) + && !processing_template_decl) + { + /* Statically check for overflow in VLA bounds and build +

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Nathan Sidwell
On 04/12/16 11:19, Jakub Jelinek wrote: On Tue, Apr 12, 2016 at 10:53:22AM -0400, Jason Merrill wrote: It doesn't seem that dangerous to me. The decls are only used within constexpr evaluation, they never escape. The uids can be used in hashing, folding, for the various on the side tables

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 10:53:22AM -0400, Jason Merrill wrote: > It doesn't seem that dangerous to me. The decls are only used within > constexpr evaluation, they never escape. The uids can be used in hashing, folding, for the various on the side tables (value-expr, debug-expr, ...). > >Or

[PATCH] Don't remove, but just reset DEBUG_INSNS during lra-spill.c (PR rtl-optimization/70596)

2016-04-12 Thread Jakub Jelinek
Hi! Removing DEBUG_INSNs (unless it is removed e.g. together with whole bb as unreachable code) is always wrong, instead it should be reset, which indicates we don't know where the var lives (removing it instead means that the previous DEBUG_INSN for the corresponding var is live even in the

Re: [C++ PATCH] PR 70501, ICE in verify ctor sanity

2016-04-12 Thread Jason Merrill
On 04/07/2016 11:18 AM, Nathan Sidwell wrote: On 04/06/16 07:49, Jason Merrill wrote: Sure, but that also seems unnecessary; vector rvalues don't have object identity the way class and array rvalues do. I attach 2 patches. 70501-2.patch fixes the ICE by treating VECTOR_TYPEs thesame as PMFs

[PATCH] Fix debug ICE on aarch64 due to bad rtl simplification (PR debug/70628)

2016-04-12 Thread Jakub Jelinek
Hi! Most of simplify-rtx.c attempts hard not to generate any extra instructions, just simplify the RTL to something equivalent and let the user try to recognize it, or whatever else it wishes. This is especially important post-reload, when we can't create new pseudos, or e.g. when processing

[PATCH] Don't include DECL_UIDs in tree-sra fancy names for -fdump-final-insns= (PR c++/70594)

2016-04-12 Thread Jakub Jelinek
Hi! Even without the C++ FE changes, I believe there are occassional DECL_UID differences (I believe the code just cares that the ordering of the uids is stable), and the fancy DEC_IGNORED names can leak into the -fdump-final-insns= dumps (e.g. in MEM_EXPRs or REG_EXPRs. The following patch

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jason Merrill
On 04/12/2016 10:32 AM, Jakub Jelinek wrote: On Tue, Apr 12, 2016 at 10:28:39AM -0400, Jason Merrill wrote: 1) I think this approach is not globally best. We're inventing another memory-usage related heuristic, rather than relying on the already available GC machinery. That's why I've gone

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 10:28:39AM -0400, Jason Merrill wrote: > >>>1) I think this approach is not globally best. We're inventing another > >>>memory-usage related heuristic, rather than relying on the already > >>>available GC machinery. That's why I've gone with a hard coded value > >>>for

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jason Merrill
On 04/12/2016 09:55 AM, Nathan Sidwell wrote: Most of the conversation appears to be happening in bugzilla ... On 04/12/16 09:18, Jason Merrill wrote: I still think that -fcompare-debug being sensitive to exact DECL_UID is the real bug here. Plausible, IIUC Jakub's suggested patches for

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 09:55:47AM -0400, Nathan Sidwell wrote: > Most of the conversation appears to be happening in bugzilla ... > > On 04/12/16 09:18, Jason Merrill wrote: > > >I still think that -fcompare-debug being sensitive to exact DECL_UID is the > >real > >bug here. > > Plausible,

Re: [C++ Patch] PR 70635 ([4.9/5/6 Regression] ICE on (and rejects) valid code...)

2016-04-12 Thread Jason Merrill
On 04/12/2016 09:25 AM, Paolo Carlini wrote: in this regression we have an infinite recursion affecting the same_type_p call at parser.c:25125 which I added in the patch for c++/38313. The issue is that for, eg, the testcase at issue, we are passing a TYPENAME_TYPE to same_type_p. I think we can

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Nathan Sidwell
Most of the conversation appears to be happening in bugzilla ... On 04/12/16 09:18, Jason Merrill wrote: I still think that -fcompare-debug being sensitive to exact DECL_UID is the real bug here. Plausible, IIUC Jakub's suggested patches for that? If we go that way, I think most of the

[COMMITTED] Add myself as GCC maintainer

2016-04-12 Thread Andre Vieira (lists)
Hi, I have added myself to the "Write After Approval" maintainers list. Committed revision r234902. Cheers, Andre ChangeLog: 2016-04-12 Andre Vieira * MAINTAINERS (Write After Approval): Add myself. Index: ChangeLog

Re: [C++ Patch] PR 68722

2016-04-12 Thread Jason Merrill
Let's go with the first patch. Jason

[wwwdocs] Simplify gcc-4.3/cxx0x_status.html (and convert to global CSS)

2016-04-12 Thread Gerald Pfeifer
And this is the last one; happy to be through these :-) Jason, anything else you see (or don't, but want to) on the C++ side? Applied. Gerald Use global CSS instead of defining local styles. Simplify things by omitting all align= attributes, leaving that to CSS. Index:

[C++ Patch] PR 70635 ([4.9/5/6 Regression] ICE on (and rejects) valid code...)

2016-04-12 Thread Paolo Carlini
Hi, in this regression we have an infinite recursion affecting the same_type_p call at parser.c:25125 which I added in the patch for c++/38313. The issue is that for, eg, the testcase at issue, we are passing a TYPENAME_TYPE to same_type_p. I think we can simply handle the problem by

Re: [PATCH] Fix PR c++/70610 (wrong overload resolution during template processing)

2016-04-12 Thread Jason Merrill
OK. Jason

Re: [PATCH] Fix PR c++/70096 (wrong code for pointer-to-member-function copy)

2016-04-12 Thread Jason Merrill
On 04/12/2016 07:20 AM, Alan Modra wrote: On Tue, Apr 12, 2016 at 06:53:55AM -0400, Patrick Palka wrote: I would appreciate it if someone could backport it for me since I won't have time today. I'm happy to handle backporting and commit for you after approval. OK. Jason

Re: [PATCH] Fix ssa coalescing with inline asm (PR middle-end/70593)

2016-04-12 Thread Andrew MacLeod
On 04/12/2016 09:06 AM, Jakub Jelinek wrote: On Tue, Apr 12, 2016 at 09:01:58AM -0400, Andrew MacLeod wrote: I poked around for a while and found a patch from late 2012 where I was attempting to implement atomics as a gimple primitive (GIMPLE_ATOMIC). That work did indeed add the ability of

Re: [PATCH] c++/70594 debug info differences

2016-04-12 Thread Jason Merrill
On 04/11/2016 03:42 PM, Nathan Sidwell wrote: This proto patch addresses 70594, where the constexpr machinery causes differences in -fcompare-debug checking. I'm looking for initial comments about the approach this patch is taking. As described in the comments of

libgomp external ABI prototypes maintenance (was: Openacc launch API)

2016-04-12 Thread Thomas Schwinge
Hi! On Mon, 28 Sep 2015 15:38:57 -0400, Nathan Sidwell wrote: > --- libgomp/libgomp_g.h (revision 228086) > +++ libgomp/libgomp_g.h (working copy) > @@ -222,9 +222,8 @@ extern void GOACC_data_start (int, size_ > extern void GOACC_data_end (void); > extern void

Re: [PATCH] Fix ssa coalescing with inline asm (PR middle-end/70593)

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 09:01:58AM -0400, Andrew MacLeod wrote: > I poked around for a while and found a patch from late 2012 where I was > attempting to implement atomics as a gimple primitive (GIMPLE_ATOMIC). That > work did indeed add the ability of the CAS primitive to return 2 values to >

Re: [DOC Patch] Add sample for @cc constraint

2016-04-12 Thread Bernd Schmidt
On 04/12/2016 12:49 AM, David Wohlferd wrote: First draft is attached. It tests all 28 (14 conditions plus 14 inverted). I wasn't sure what to set for optimization (O2? O3? O0?), so I left the default. I've had it in a successful test run, and committed it with a minor tweak

Re: [PATCH] Fix ssa coalescing with inline asm (PR middle-end/70593)

2016-04-12 Thread Andrew MacLeod
On 04/12/2016 04:35 AM, Richard Biener wrote: On Mon, 11 Apr 2016, Jeff Law wrote: On 04/08/2016 10:10 AM, Jakub Jelinek wrote: On Fri, Apr 08, 2016 at 06:04:38PM +0200, Richard Biener wrote: Hmm, don't we simply want to do this for all stmts (OK, only asm have multiple defs...)? For all

Re: Document C++ Special Math Functions.

2016-04-12 Thread Jonathan Wakely
On 08/04/16 16:36 -0400, Ed Smith-Rowland wrote: I wanted to ship the TR29124 special math functions in libstdc++ with some documentation. More could be done but this covers the function definitions, argument ranges, template parms, and arguments. There is a little mainpage with some overview,

Re: [PATCH] Revert r234572 (aka PR testsuite/70577)

2016-04-12 Thread Jan Hubicka
> Hello. > > As release managers agreed on IRC, following patch reverts r234572 > which introduced new PR testsuite/70577. > > I've been running bootstrap & regression tests on x86_64-linux-gnu. > Ready to be installed after it finishes? OK, thanks for the revert. I looked into the prefetch

Re: Followup fix for PR69650

2016-04-12 Thread Jakub Jelinek
On Tue, Apr 12, 2016 at 01:50:19PM +0200, Bernd Schmidt wrote: > PR preprocessor/69650 > * directives.c (do_linemarker): Reread map after calling > cpp_get_token. Ok, thanks. > --- libcpp/directives.c (revision 234831) > +++ libcpp/directives.c (working copy) > @@

Fix some x86 peepholes vs. the red-zone

2016-04-12 Thread Bernd Schmidt
With some changes I was working on, I produced a situation where one of the x86 peepholes made an incorrect transformation. In the prologue expansion code, we have /* When using red zone we may start register saving before allocating the stack frame saving one cycle of the prologue.

Followup fix for PR69650

2016-04-12 Thread Bernd Schmidt
As shown by Roger Orr in the comments of this PR, cpp_get_token can cause a reallocation that invalidates some of the variables in do_linemarker. It seems to occur in this call to linemap_add: /* Allocate the new line_map. However, if the current map only has a single line we

[PR testsuite/68242] FAIL: libgomp.oacc-c-c++-common/reduction-2.c, and other OpenACC reduction test case "oddities" (was: [gomp4] OpenACC reduction tests)

2016-04-12 Thread Thomas Schwinge
Hi Cesar! (At least several of) the issues that I pointed out (see below) have never been fixed on gomp-4_0-branch, but the test cases have now been merged from gomp-4_0-branch into trunk, so the regression (PASS -> FAIL for libgomp.oacc-c-c++-common/reduction-2.c) as well as the other "oddities"

Re: [PATCH] Fix PR c++/70096 (wrong code for pointer-to-member-function copy)

2016-04-12 Thread Alan Modra
On Tue, Apr 12, 2016 at 06:53:55AM -0400, Patrick Palka wrote: > I would appreciate it if someone could backport it for me since I > won't have time today. I'm happy to handle backporting and commit for you after approval. -- Alan Modra Australia Development Lab, IBM

Merge libgomp.oacc-c-c++-common/loop-reduction-*.c into libgomp.oacc-c-c++-common/reduction-7.c (was: [gomp4] Update OpenACC test cases)

2016-04-12 Thread Thomas Schwinge
Hi! On Mon, 04 Apr 2016 12:39:37 +0200, I wrote: > [...] gomp-4_0-branch [...] additional (cleanup) changes [...] > libgomp/ > [...] > * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: > Merge this file, and... > *

Re: [PATCH] Fix PR c++/70096 (wrong code for pointer-to-member-function copy)

2016-04-12 Thread Patrick Palka
On Tue, Apr 12, 2016 at 6:38 AM, Alan Modra wrote: > On Mon, Mar 21, 2016 at 06:35:26PM -0400, Patrick Palka wrote: > https://gcc.gnu.org/ml/gcc-patches/2016-03/msg01221.html >> gcc/cp/ChangeLog: >> >> PR c++/70096 >> * pt.c (tsubst_decl): Clear the DECL_MODE of the

Improve libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c (was: [gomp4] Some additional OpenACC reduction tests)

2016-04-12 Thread Thomas Schwinge
Hi! Cesar didn't pick up my gomp-4_0-branch change in his recent trunk commit, so here goes: On Thu, 24 Mar 2016 17:57:55 +0100, I wrote: > On Wed, 29 Jul 2015 18:23:12 +0100, Julian Brown > wrote: > > This is a set of 19 new tests for OpenACC reductions, covering

Re: [PATCH] Fix PR c++/70096 (wrong code for pointer-to-member-function copy)

2016-04-12 Thread Alan Modra
On Mon, Mar 21, 2016 at 06:35:26PM -0400, Patrick Palka wrote: https://gcc.gnu.org/ml/gcc-patches/2016-03/msg01221.html > gcc/cp/ChangeLog: > > PR c++/70096 > * pt.c (tsubst_decl): Clear the DECL_MODE of the new decl. > > gcc/testsuite/ChangeLog: > > PR c++/70096 > *

[PATCH] Revert r234572 (aka PR testsuite/70577)

2016-04-12 Thread Martin Liška
Hello. As release managers agreed on IRC, following patch reverts r234572 which introduced new PR testsuite/70577. I've been running bootstrap & regression tests on x86_64-linux-gnu. Ready to be installed after it finishes? Thanks, Martin >From 978ddfeada20e5597767df120e5d65eef1115c1b Mon Sep

Re: [PATCH] Fix PR31096

2016-04-12 Thread Marc Glisse
On Tue, 12 Apr 2016, Hurugalawadi, Naveen wrote: +/* Fold A * 10 == B * 10 into A == B. */ +(for cmp (eq ne) + (simplify + (cmp (mult:c @0 @1) (mult:c @2 @1)) + (if (INTEGRAL_TYPE_P (TREE_TYPE (@1)) + && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (@0)) + && tree_expr_nonzero_p (@1)) +

Re: [PATCH][ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm Thumb2 peepholes

2016-04-12 Thread Richard Earnshaw (lists)
On 11/04/16 14:27, Kyrill Tkachov wrote: > > On 08/04/16 10:30, Richard Earnshaw (lists) wrote: >> On 07/04/16 15:51, Kyrill Tkachov wrote: >>> Hi all, >>> >>> In this wrong-code PR we have a Thumb2 peephole transforming: >>> tstr3, #2 >>> bne.L3 >>> beq.L6 >>> >>>

Re: [PING 6, PATCH] PR/68089: C++-11: Ingore "alignas(0)".

2016-04-12 Thread Dominik Vogt
On Mon, Jan 04, 2016 at 12:33:21PM +0100, Dominik Vogt wrote: > On Fri, Jan 01, 2016 at 05:53:08PM -0700, Martin Sebor wrote: > > On 12/31/2015 04:50 AM, Dominik Vogt wrote: > > >The attached patch fixes C++-11 handling of "alignas(0)" which > > >should be ignored but currently generates an error

Re: [PATCH] Fix ssa coalescing with inline asm (PR middle-end/70593)

2016-04-12 Thread Richard Biener
On Mon, 11 Apr 2016, Jeff Law wrote: > On 04/08/2016 10:10 AM, Jakub Jelinek wrote: > > On Fri, Apr 08, 2016 at 06:04:38PM +0200, Richard Biener wrote: > > > Hmm, don't we simply want to do this for all stmts (OK, only asm have > > > multiple defs...)? > > > > For all stmts that have multiple

Re: [PATCH] Fix PR31096

2016-04-12 Thread Hurugalawadi, Naveen
Hi, >> type is the return type of the comparison. The relevant type here is TREE_TYPE (@0). Done. >>Maybe add a testcase with unsigned, to check that it does not transform? Added the testcase >> you could probably use tree_expr_nonzero_p Done. I had !wi::eq_p (@1, 0) for INTEGER_CST, but when

Re: [PATCH, PR68756] Fix typo in copy_cond_phi_args

2016-04-12 Thread Richard Biener
On Tue, 12 Apr 2016, Tom de Vries wrote: > [adding cc gcc-patches ] > > On 12/04/16 09:25, Tom de Vries wrote: > > Hi, > > > > when compiling the test-case in the patch, we run into an ICE in > > sese_build_liveouts_use when evaluating 'TREE_CODE (use)' because use is > > NULL_TREE: > > ... > >

Re: [PATCH] Fix up SRA (PR tree-optimization/70602)

2016-04-12 Thread Richard Biener
On Tue, 12 Apr 2016, Jakub Jelinek wrote: > Hi! > > As mentioned in the PR, the recent change to handle constant_decl_p > stuff sometimes results in attempts to store the scalarized pieces again > into constant_decl_p fields, which of course can't work, those usually live > in read-only memory.

Re: Re: [PATCH IRA] save a call to init_reload

2016-04-12 Thread Zhouyi Zhou
Thanks Vladimir for reviewing my patch. > Thank you for the patch. The toplev.c part of the patch is ok for stage 1. > > As for reload1.c part, I don't see what you actually changed. > Please forgive my innocence, I have mistakenly thought the form-feed character "^L" in line 415 is a type

Re: [gomp4] backport parallel reduction changes

2016-04-12 Thread Thomas Schwinge
Hi Cesar! On Mon, 11 Apr 2016 16:23:40 -0700, Cesar Philippidis wrote: > This patch backports the reduction changes in trunk to gomp-4_0-branch. Thanks! > Prior to this patch, gomp-4_0-branch was having the gimplifier create a > temporary variable for reference-typed

Re: [PATCH, PR68756] Fix typo in copy_cond_phi_args

2016-04-12 Thread Tom de Vries
[adding cc gcc-patches ] On 12/04/16 09:25, Tom de Vries wrote: Hi, when compiling the test-case in the patch, we run into an ICE in sese_build_liveouts_use when evaluating 'TREE_CODE (use)' because use is NULL_TREE: ... static void sese_build_liveouts_use (sese_info_p region, bitmap liveouts,

[PATCH] Fix up SRA (PR tree-optimization/70602)

2016-04-12 Thread Jakub Jelinek
Hi! As mentioned in the PR, the recent change to handle constant_decl_p stuff sometimes results in attempts to store the scalarized pieces again into constant_decl_p fields, which of course can't work, those usually live in read-only memory. This happens usually when the aggregate has some

[committed] Fix up OpenMP target firstprivate handling

2016-04-12 Thread Jakub Jelinek
Hi! A recent discussion on omp lang reminded me that our firstprivate target implementation doesn't match the final spec - while I've initially thought that the vars are to be copied after waiting for the dependencies (that is where map is mapped), the final spec says they are copied when