[Ada] Do not overly promote alignment of local variable
Eric Botcazou
ebotcazou@adacore.com
Sun Sep 25 17:06:00 GMT 2011
This limits the alignment promotion we do for local aggregate variables in Ada,
which doesn't play nice with the NRV optimization.
Tested on i586-suse-linux, applied on the mainline.
2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
the alignment if this doesn't prevent BLKmode access to the object.
2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/frame_overflow.ads: New.
* gnat.dg/frame_overflow.adb: Adjust.
* gnat.dg/specs/addr1.ads: Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 4113 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110925/00c8e861/attachment.bin>
More information about the Gcc-patches
mailing list