decl.c (gnat_to_gnu_entity): Do not make a function returning an unconstrained type...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 8 Apr 2015 09:08:12 +0000 (09:08 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 8 Apr 2015 09:08:12 +0000 (09:08 +0000)
commit113c69ff2d41091359ec37789974cc47f1169e05
treebaa5f85fcaf8970ce98360f75251932428ea8095
parent43941fa55c5246c51a31c86df1006819ec67d8e0
decl.c (gnat_to_gnu_entity): Do not make a function returning an unconstrained type 'const' for the middle-end.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not make
a function returning an unconstrained type 'const' for the middle-end.

* gcc-interface/trans.c (Pragma_to_gnu) <case Pragma_Warning>: Use
exact condition to detect Reason => "..." pattern.

From-SVN: r221916
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt48.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt48_pkg1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt48_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt48_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt48_pkg2.ads [new file with mode: 0644]