This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/28305] GNAT bug when inlining instance of a generic subprogram



------- Comment #3 from sam at gcc dot gnu dot org  2008-04-09 14:22 -------
Subject: Bug 28305

Author: sam
Date: Wed Apr  9 14:21:18 2008
New Revision: 134142

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134142
Log:
    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.


Added:
    trunk/gcc/testsuite/gnat.dg/specs/fe_inlining.ads
    trunk/gcc/testsuite/gnat.dg/specs/fe_inlining_helper.adb
    trunk/gcc/testsuite/gnat.dg/specs/fe_inlining_helper.ads
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/sem_ch6.adb
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28305


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]