inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without...
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 26 Mar 2011 09:34:40 +0000 (09:34 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 26 Mar 2011 09:34:40 +0000 (09:34 +0000)
commit5daed84a544a8e2bd3017ad77975abd9831953b7
tree26ba2a9b9f6a154eeaec3ba42d01da1e79061f7a
parent530f4f437a8d592e8203a40a860f246c7e1cdfca
inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without a previous spec declared in...

* inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
subprograms without a previous spec declared in the same unit.
* gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
subprograms at the end of the unit instead of at the beginning.
* gcc-interface/utils.c (create_subprog_decl): Check that the entity
isn't public for the special handling of non-inline functions nested
inside inline external functions.

From-SVN: r171551
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c
gcc/ada/inline.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt15.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt15_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt15_pkg.ads [new file with mode: 0644]