decl.c (gnat_to_gnu_entity): Use the return by target pointer mechanism as soon as...
commit9a089d8b0620133f2111a2fd2fc5064166ed02a6
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 18 Apr 2008 10:10:15 +0000 (18 10:10 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 18 Apr 2008 10:10:15 +0000 (18 10:10 +0000)
tree4b6d57388b539f7e98896fb9a76334f75b1cfae3
parentc6b196de6c8b35acca8309f9e7fec67932c4e9d7
decl.c (gnat_to_gnu_entity): Use the return by target pointer mechanism as soon as the size is not constant.

* decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
target pointer mechanism as soon as the size is not constant.

From-SVN: r134433
gcc/ada/ChangeLog
gcc/ada/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/varsize_return.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/varsize_return_pkg1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/varsize_return_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/varsize_return_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/varsize_return_pkg2.ads [new file with mode: 0644]