re PR ada/28305 (GNAT bug when inlining instance of a generic subprogram)
authorSamuel Tardieu <sam@rfc1149.net>
Wed, 9 Apr 2008 14:21:18 +0000 (14:21 +0000)
committerSamuel Tardieu <sam@gcc.gnu.org>
Wed, 9 Apr 2008 14:21:18 +0000 (14:21 +0000)
commitce4e59c46ba3989a420afca61ddcf9550e02ab7f
tree1df1a59c24593585213fab7e8e0190a93d6bb053
parent3a3a1fe1f8ed06d2ea69734c8f22a874eeb80b36
re PR ada/28305 (GNAT bug when inlining instance of a generic subprogram)

    gcc/ada/
PR ada/28305
* sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
environment if generic instance is a top-level one.

    gcc/testsuite/
PR ada/28305
* gnat.dg/specs/fe_inlining.ads, gnat.dg/specs/fe_inlining_helper.ads,
gnat.dg/specs/fe_inlining_helper.adb: New test.

From-SVN: r134142
gcc/ada/ChangeLog
gcc/ada/sem_ch6.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/fe_inlining.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/fe_inlining_helper.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/fe_inlining_helper.ads [new file with mode: 0644]