Re: Fix lto-symtab ICE during Ada LTO bootstrap

2015-12-20 Thread Eric Botcazou
> I finally got around comitting the DCE patch so mainline lto bootstrap works > up to this point. Thanks! > It would be great if you could take a look so we can get it finally fixed. Let me commit a couple of Ada patches first and then I'll look into it. -- Eric Botcazou

[Ada] Fix spurious warning in ASIS mode

2015-12-20 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2015-12-20 Eric Botcazou * gcc-interface/utils.c (maybe_pad_type): In type_annotate_only mode, retrieve the component type if this is an array and do not issue the warning for concurrent types. -- Eric BotcazouInd

[Ada] Fix layout inconsistency in ASIS mode

2015-12-20 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2015-12-20 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : During layout in type_annotate_only mode, skip discriminants of derived tagged types renaming those of the parent type. In type_annotate

[Ada] Fix ICE on component of complex as Out parameter

2015-12-20 Thread Eric Botcazou
This is a regression present on the mainline only, a small oversight in the overhaul of the implementation of renaming. Tested on x86_64-suse-linux, applied on the mainline. 2015-12-20 Eric Botcazou * gcc-interface/utils2.c (gnat_rewrite_reference) : New case identical to FL

Re: [PATCH, i386] Introduce support for PKU instructions.

2015-12-20 Thread Uros Bizjak
On Fri, Dec 18, 2015 at 8:15 AM, Kirill Yukhin wrote: > Hello, > Patch in the bottom introduces support Intel PKRU instructions: > rdpkru and wrpkru. > It is pretty straight-forward, so I hope it is still suitable for v6. > > Names for new intrinsics will appear shortly in new revision of SDM. > >

Re: [Patch, fortran] [6 Regression] ICE: in gfc_get_descriptor_dimension, at fortran/trans-array.c:268

2015-12-20 Thread Dominique d'Humières
Dear Paul, > This is a rather trivial patch... going on 'obvious' in fact. However, > I must confess to not being entirely sure why the problem is > occurring. Deferred arrays are emanating from the finalizer that are > being presented as ARRAY_TYPES rather than descriptors. What ever is > the reas

Re: [PATCH] shrink-wrap: Once more PRs 67778, 68634, and now 68909

2015-12-20 Thread Segher Boessenkool
On Fri, Dec 18, 2015 at 02:19:37AM +0100, Bernd Schmidt wrote: > On 12/17/2015 10:07 PM, Segher Boessenkool wrote: > >It turns out v4 wasn't quite complete anyway; so here "v5". > > > >If a candidate PRE cannot get the prologue because a block BB is > >reachable from it, but PRE does not dominate B

2 C++ PATCHes for c++/67411 (const var in generic lambda)

2015-12-20 Thread Jason Merrill
Our treatment of references to outer const variables in lambdas has been to defer deciding whether or not to capture them until instantiation time, at which point their initializers will have been processed. But that doesn't work for generic lambdas, since by the time we instantiate the lambda

Re: 2 C++ PATCHes for c++/67411 (const var in generic lambda)

2015-12-20 Thread Jakub Jelinek
On Sun, Dec 20, 2015 at 01:34:51PM -0500, Jason Merrill wrote: > commit 6804dee422ff9a85298a24ae0912e82ed0d7e988 > Author: Jason Merrill > Date: Thu Dec 17 15:41:32 2015 -0500 > > PR c++/67411 > > * decl2.c (decl_maybe_constant_var_p): A proxy isn't constant. > > diff --git a/

[Committed/AARCH64] Fix a few failures with LSE enabled

2015-12-20 Thread Andrew Pinski
Hi, With LSE enabled by default a few failures in libgomp happen. The shortest testcase I came up with was: extern void abort (void); int x = 6; int f(void) __attribute__((noinline,noclone)); int f(void) { return 32; } int main () { int v, l = 2, s = 1; x = f(); #pragma omp atomic capture

Re: Fix lto-symtab ICE during Ada LTO bootstrap

2015-12-20 Thread Eric Botcazou
> BTW for the LTO type merging issues one could probably just drop those types > and all derivations to alias set 0. But indeed rewriting them to pointers > would be better, especially for ABI compatibility. > > The Ada ICE I get is: > Continuing. > +===GNAT BUG DETECTED===

Re: 2 C++ PATCHes for c++/67411 (const var in generic lambda)

2015-12-20 Thread Jason Merrill
On 12/20/2015 01:51 PM, Jakub Jelinek wrote: Shouldn't this be DECL_HAS_VALUE_EXPR_P (decl) instead? Good point. Fixed. Jason

Re: [RFA][PATCH][PR tree-optimization/64910] x86 backend improvement

2015-12-20 Thread Jeff Law
On 12/19/2015 11:06 AM, Uros Bizjak wrote: Hello! + 2015-12-19 Jeff Law + + PR tree-optimization/64910 + * config/i386/i386.md (testqi_ext_3): Allow HImode. OK for mainline and branch. Thanks. I double-checked and gcc-5 has not regressed, presumably there's an additional interaction that's