utils.c (create_subprog_decl): Move code dealing with conflicting inlining status...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 5 Nov 2014 18:47:04 +0000 (18:47 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 5 Nov 2014 18:47:04 +0000 (18:47 +0000)
commit87411e95ef8727a9aea86bb86a0773da3a769815
tree63c4c878221e6e8a4f2f9ff3061075c87530d615
parent9c7a77fcc3d2895ec72639aa7a2067280a612268
utils.c (create_subprog_decl): Move code dealing with conflicting inlining status of nested subprograms to...

* gcc-interface/utils.c (create_subprog_decl): Move code dealing with
conflicting inlining status of nested subprograms to...
* gcc-interface/trans.c (check_inlining_for_nested_subprog): ...here.
(Attribute_to_gnu) <Attr_Access>: Call it.
(Call_to_gnu): Likewise.
(Subprogram_Body_to_gnu): Drop the body if it is an inlined external
function that has been marked uninlinable.

From-SVN: r217151
41 files changed:
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/inline1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline10.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline10_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline10_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline11.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline11_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline11_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline1_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline1_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline2_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline2_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline3_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline3_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline4.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline4_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline4_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline5.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline5_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline5_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline6.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline6_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline6_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline7.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline7_pkg1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline7_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline7_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline7_pkg2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline8.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline8_pkg1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline8_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline8_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline8_pkg2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline9.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline9_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline9_pkg.ads [new file with mode: 0644]