decl.c (gnat_to_gnu_entity): Simplify the condition under which a constant renaming...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 8 Sep 2007 10:30:06 +0000 (10:30 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 8 Sep 2007 10:30:06 +0000 (10:30 +0000)
commit79646678b52a9c63f19ce74a2471291aae1d59a4
treee298e197d6ac93776440288b70e8a3888ecd21df
parent3b9f15d25672cf8dcaf66cee2eb80108aa07ba57
decl.c (gnat_to_gnu_entity): Simplify the condition under which a constant renaming is treated as a normal...

* decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
which a constant renaming is treated as a normal object declaration.
* trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
the N_Indexed_Component case.
<N_Indexed_Component>: Fall through to above case.
<N_Object_Renaming_Declaration>: Return true for all composite types.

From-SVN: r128268
gcc/ada/ChangeLog
gcc/ada/decl.c
gcc/ada/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/renaming3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/renaming4.ads [new file with mode: 0644]