decl.c (gnat_to_gnu_entity): Set TYPE_NONALIASED_COMPONENT on the array type only...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Feb 2009 18:34:20 +0000 (18:34 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Feb 2009 18:34:20 +0000 (18:34 +0000)
commitc37348963dba9dd4aeaf1b73391bce2f0fe83c89
treefc08b79c90528c307ced5763356f72e1de46b8a2
parent493905ba459ec8a2b779c9fed39d627887ed6787
decl.c (gnat_to_gnu_entity): Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
(copy_alias_set): Assert that arrays have the same aliasing settings.
(substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.

From-SVN: r144038
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c