trans.c (lvalue_required_p): Take base node directly instead of its parent.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 5 Dec 2007 17:00:07 +0000 (17:00 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 5 Dec 2007 17:00:07 +0000 (17:00 +0000)
commit0ec479dcfbcfb765a367fb63d1bcb1be72b940b8
tree74d79ba8b79742cd36ee30061cfff616cf02c445
parente37ab97325aa1b4d5d3799d3bdf05fa157e8fa68
trans.c (lvalue_required_p): Take base node directly instead of its parent.

* trans.c (lvalue_required_p): Take base node directly instead
of its parent.  Rename second parameter to 'gnu_type'.
<N_Indexed_Component>: Return 0 if the node isn't the prefix.
<N_Slice>: Likewise.
(Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
Adjust calls to lvalue_required_p.

From-SVN: r130626
gcc/ada/ChangeLog
gcc/ada/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/elab1.ads [new file with mode: 0644]