]> 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:52:57 +0000 (09:52 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 2 Jun 2018 09:52:57 +0000 (09:52 +0000)
commit63cf89107c98171a1f84ea13fbab1023c4700c09
treef8c88c0c302e95ed67eef93a2613fa95b8184d64
parentf5c1953fa837310d2a2b253c2b83acd9747139c4
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: r261104
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]