Re: [patch] Default to --enable-libstdcxx-time=auto

2013-05-26 Thread Jakub Jelinek
On Sun, May 26, 2013 at 07:58:09AM +0200, Jakub Jelinek wrote: > On Sat, May 25, 2013 at 04:07:11PM -0700, Benjamin De Kosnik wrote: > > > > > Looks good to me. > > > > Great, trunk patch in. > > > > > Will you prepare corresponding patch for the 4.8 > > > branch too (I guess it should be pret

[Ada] Disable assertion in ASIS mode

2013-05-26 Thread Eric Botcazou
The assertion is too strong in ASIS mode, where all the types aren't laid out. Tested on x86_64-suse-linux, applied on the mainline. 2013-05-26 Eric Botcazou * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not check that access types have a set size. -- Eric

[Ada] Fix layout of variant record under partial rep clause

2013-05-26 Thread Eric Botcazou
Because of a recent change, adding a partial representation clause for one of the variants of a discriminated record type with variant part changes the layout of the other variants in an unexpected way. This patch is aimed at mitigating that, although this cannot be solved in all cases given th

[Ada] Fix 'Last_Bit attribute applied to zero-sized type

2013-05-26 Thread Eric Botcazou
The value of the attribute should be -1 if an object of such a type is placed on a storage unit boundary, but the compiler was generating Storage_Error. Tested on x86_64-suse-linux, applied on all active branches. 2013-05-26 Eric Botcazou * gcc-interface/trans.c (Attribute_to_gnu) :

[Ada] Fix handling of Machine_Attribute on types

2013-05-26 Thread Eric Botcazou
This fixes the handling of Machine_Attribute applied to types in gigi, which doesn't really work because the attribute is applied to the TYPE_DECL. Tested on x86_64-suse-linux, applied on the mainline. 2013-05-26 Eric Botcazou * gcc-interface/gigi.h (create_type_decl): Adjust protot

[Ada] Fix awkward stepping over CW var assignment in GDB

2013-05-26 Thread Eric Botcazou
On specific platforms, stepping over an assignment to a class-wide variable in GDB leads to an awkward behavior. Fixed thusly. Tested on x86_64-suse-linux, applied on the mainline. 2013-05-26 Eric Botcazou * gcc-interface/gigi.h (make_aligning_type): Adjust prototype. * gcc

[Ada] Fix ICE on type completed by private type in Ada 2012

2013-05-26 Thread Eric Botcazou
In Ada 2012, you can complete an incomplete type with a private type, so you can have 3 different views for a single type. As the attached testcase shows, this can lead to an ICE when the completion is a tagged private type because the full view is elaborated prematurely. Tested on x86_64-suse-

[Ada] Fix link failure for renamed aliased object with unconstrained type

2013-05-26 Thread Eric Botcazou
It's a rather obscure case and comes from the change of representation for aliased objects with unconstrained nominal type that we made last year. Tested on x86_64-suse-linux, applied on the mainline. 2013-05-26 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : Always buil