decl.c (gnat_to_gnu_entity): Declare the padded type built for the return type if...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 17 Apr 2011 10:22:40 +0000 (10:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 17 Apr 2011 10:22:40 +0000 (10:22 +0000)
commit51c5169c60be01c229b8637d11283d843bc6e126
tree5ab97c5d9cfe522c640e3afb90d15f8809fb181e
parent54333b7cda497346b2f56b79b76d52a8dab7a174
decl.c (gnat_to_gnu_entity): Declare the padded type built for the return type if it is unconstrained.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
padded type built for the return type if it is unconstrained.

From-SVN: r172608
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/discr27.adb
gcc/testsuite/gnat.dg/discr27.ads
gcc/testsuite/gnat.dg/discr28.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/discr28.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/discr28_pkg.ads [new file with mode: 0644]