diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-29 13:41:27 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-29 13:41:27 +0000 |
commit | e8f5b3d93eaf6e7a1fb2d3eab5ca311017665b84 (patch) | |
tree | 2d0ceca8aebadb1de09e2050c12f4c467ddf026e /gcc/ada/sem_ch10.adb | |
parent | 711f56709d7649cf86bfc0d51be88ff1fbc5bdcd (diff) | |
download | gcc-e8f5b3d93eaf6e7a1fb2d3eab5ca311017665b84.tar.gz |
2014-07-29 Robert Dewar <dewar@adacore.com>
* sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
Minor reformatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213183 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_ch10.adb')
-rw-r--r-- | gcc/ada/sem_ch10.adb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ada/sem_ch10.adb b/gcc/ada/sem_ch10.adb index fac22c606e0..f0f0ba16947 100644 --- a/gcc/ada/sem_ch10.adb +++ b/gcc/ada/sem_ch10.adb @@ -1196,8 +1196,16 @@ package body Sem_Ch10 is Set_Analyzed (N); + -- Call Check_Package_Body so that a body containing subprograms with + -- Inline_Always can be made available for front end inlining. + if Nkind (Unit_Node) = N_Package_Declaration and then Get_Cunit_Unit_Number (N) /= Main_Unit + + -- We don't need to do this if the Expander is not active, since there + -- is no code to inline. However an exception is that we do the call + -- in GNATprove mode, since the resulting inlining eases proofs. + and then (Expander_Active or GNATprove_Mode) then declare @@ -1209,6 +1217,7 @@ package body Sem_Ch10 is Save_Style_Check_Options (Options); Reset_Style_Check_Options; Opt.Warning_Mode := Suppress; + Check_Package_Body_For_Inlining (N, Defining_Entity (Unit_Node)); Reset_Style_Check_Options; |