trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for a call to a function that returns...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 27 Jan 2012 09:44:27 +0000 (09:44 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 27 Jan 2012 09:44:27 +0000 (09:44 +0000)
commit16934bbf731f4cd735b9d93d6695f181c7ec59ef
tree8b72c024f549eb65189d83149eef0e1725f5c97c
parent5f2e59d44bc4aa1dd5e2fd9d2b412b85519fb39d
trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for a call to a function that returns an unconstrained...

* gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
a call to a function that returns an unconstrained type with default
discriminant.  Similarly, avoid doing the conversion to the nominal

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