]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: trans.c (Call_to_gnu): If this is a function call and there is no target...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 2 Jun 2018 09:58:46 +0000 (09:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 2 Jun 2018 09:58:46 +0000 (09:58 +0000)
commit93a0049f748e997db75d4a4f45bc40c021853bab
tree6361aee55c539ee53ff06ddba8b5cc36b7d8d119
parentcc92cf73b71d7f93fcc8a5a0dcf418602325e147
backport: trans.c (Call_to_gnu): If this is a function call and there is no target...

Backport from mainline
2018-05-31  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/trans.c (Call_to_gnu): If this is a function call and
there is no target, also create a temporary for the return value for
an allocator if the type is an unconstrained record type with default
discriminant.

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