trans.c (Identifier_to_gnu): Test Is_Elementary_Type instead of Is_Scalar_Type for...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 11 Jun 2012 08:54:32 +0000 (08:54 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 11 Jun 2012 08:54:32 +0000 (08:54 +0000)
commite4270465dd9aecb856b05a67ed5653b9e0f57c27
treefe8fe3f9c10e6ea4a87678bcba512d9a30ff6520
parent9083aacd090fc35f85659bdaa812384779ef73e2
trans.c (Identifier_to_gnu): Test Is_Elementary_Type instead of Is_Scalar_Type for a constant with an...

* gcc-interface/trans.c (Identifier_to_gnu): Test Is_Elementary_Type
instead of Is_Scalar_Type for a constant with an address clause.
Do not return the underlying constant for a constant used by reference
if it holds the address of a constant and an lvalue is required.

From-SVN: r188380
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c