decl.c (gnat_to_gnu_entity): Make sure the size of a padding type built around the...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 19 Jun 2015 20:10:50 +0000 (20:10 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 19 Jun 2015 20:10:50 +0000 (20:10 +0000)
commitb24f7345365c9faea98acfb1e145f3efe943f8d1
tree57fbd1f7dca579febe84e8afbe2f72fa7d1e432f
parent1539357d45345b583fa613b79e9ccdc35de0527b
decl.c (gnat_to_gnu_entity): Make sure the size of a padding type built around the return type is positive.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Make sure
the size of a padding type built around the return type is positive.
* gcc-interface/trans.c (gnat_to_gnu) <N_Simple_Return_Statement>:
Use INIT_EXPR instead of MODIFY_EXPR to assign to the return object.

From-SVN: r224697
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c