r193750 - in /trunk/gcc: ada/ChangeLog ada/gcc-...
ebotcazou@gcc.gnu.org
ebotcazou@gcc.gnu.org
Fri Nov 23 10:42:00 GMT 2012
Author: ebotcazou
Date: Fri Nov 23 10:42:50 2012
New Revision: 193750
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193750
Log:
* gcc-interface/decl.c (components_need_strict_alignment): New.
(components_to_record): Do not pack the variants if one of the fields
needs strict alignment. Likewise for the variant part as a whole.
Specify the position of the variants even if the size isn't specified,
but do not specify the size of the variant part in this case.
Added:
trunk/gcc/testsuite/gnat.dg/discr39.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gcc-interface/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list