[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 4 Aug 2011 09:09:53 +0000 (11:09 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 4 Aug 2011 09:09:53 +0000 (11:09 +0200)
commitfc893455a5c2c9238f077412cf5a0bdc29abed34
tree2828113a0adb99fba99fd5be023a012fe6df3036
parentb37d5bc62b96ecbd96f409281f8741d40c4d3922
[multiple changes]

2011-08-04  Eric Botcazou  <ebotcazou@adacore.com>

* layout.adb (Layout_Type): For composite types, do not set Esize.
* freeze.adb (Set_Small_Size): Remove test on alignment and do not
set Esize.
(Size_Known): Look at the RM size of components instead of the Esize.
(Freeze_Record_Type): Look at the RM size instead of the Esize to
issue warning and activate Implicit_Packing.
(Freeze_Entity): Likewise.  Do not issue a warning for alias/atomic
if the Esize is not known.
* sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
for elementary types only.
(Analyze_Record_Representation_Clause): Look at the RM size instead
of the Esize to issue errors.
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
is not known.
<E_Record_Type>: Look at the RM size instead of the Esize.  Remove
obsolete block.
Look at the RM size instead of the Esize for types if the latter is
not known.
(gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.

2011-08-04  Ed Schonberg  <schonberg@adacore.com>

* sem_type.adb: proper handling of equality not involving anonymous
access types.

From-SVN: r177339
gcc/ada/ChangeLog
gcc/ada/freeze.adb
gcc/ada/gcc-interface/decl.c
gcc/ada/layout.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_type.adb