trans.c (gnat_to_gnu): Really force evaluation of the expression...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 26 May 2015 20:37:29 +0000 (20:37 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 26 May 2015 20:37:29 +0000 (20:37 +0000)
commit545b492365b7ce6270d739c3ad88b05c51d4aeab
treef9df444e7d4df8c80c2430f4be31be937167651d
parentc68cdfac5b85560441d585d4151f65812180821b
trans.c (gnat_to_gnu): Really force evaluation of the expression...

* gcc-interface/trans.c (gnat_to_gnu) <N_Object_Declaration>: Really
force evaluation of the expression, if any, when the object has its
elaboration delayed.  Do not create a variable at global level.

From-SVN: r223716
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/atomic7_1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/atomic7_2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/atomic7_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/atomic7_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/atomic7_pkg2.ads [new file with mode: 0644]