decl.c (elaborate_expression_1): Try harder to find out whether the expression is...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 17 Mar 2011 17:12:21 +0000 (17:12 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 17 Mar 2011 17:12:21 +0000 (17:12 +0000)
commitf230d7593b43b8439362d8889ad4fcf6a524b8d5
tree83cab8baf0af7122e9aee5a3b79bceaefe0eec0a
parentc1e41527443f54a454452b9b628ab215a73375b5
decl.c (elaborate_expression_1): Try harder to find out whether the expression is read-only.

* gcc-interface/decl.c (elaborate_expression_1): Try harder to find
out whether the expression is read-only.  Short-circuit placeholder
case and rename a couple of local variables.

From-SVN: r171106
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/elab2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/elab2_pkg.ads [new file with mode: 0644]