decl.c (gnat_to_gnu_entity): Also promote the alignment of constant objects, but...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 20 Apr 2008 10:32:55 +0000 (10:32 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 20 Apr 2008 10:32:55 +0000 (10:32 +0000)
commite871a8730ae8bd2a50a47a6c87691078e2e7fff6
treeea175801501f23572184c58df3fcd73cad6a8ea7
parentdef9bf340183a00cbc648eaddf24ed2d3baf32b4
decl.c (gnat_to_gnu_entity): Also promote the alignment of constant objects, but not exceptions.

* decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
constant objects, but not exceptions.
* trans.c (add_decl_expr): Use gnat_types_compatible_p for type
compatibility test.
* utils.c (create_var_decl_1): Likewise.
* utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
the type when copying to padded object and the source is a constructor.

From-SVN: r134483
gcc/ada/ChangeLog
gcc/ada/decl.c
gcc/ada/trans.c
gcc/ada/utils.c
gcc/ada/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/alignment6.adb [new file with mode: 0644]