trans.c (call_to_gnu): Create the temporary for the return value in the variable...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Jan 2012 21:08:53 +0000 (21:08 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Jan 2012 21:08:53 +0000 (21:08 +0000)
commit24e7a4a06e13c9e1d72ccdc26b26852a423f053e
tree251ea15fe6dc8ace11d106256923db2dff8acb39
parentefd2e969f2571ba3e1bf9a04b88da7ee2144e1d9
trans.c (call_to_gnu): Create the temporary for the return value in the variable-sized return type...

* gcc-interface/trans.c (call_to_gnu): Create the temporary for the
return value in the variable-sized return type case if the target is
an array with fixed size.  However, do not create it if this is the
expression of an object declaration.

From-SVN: r183033
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array18.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/array18_pkg.ads [new file with mode: 0644]