diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-02-20 10:48:22 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-02-20 10:48:22 +0100 |
commit | 17ce1f52fe78bfdc63dfe941a272a1ffdea605a7 (patch) | |
tree | c48f5ec002d929397a7d3b385e81dff00a2940cc /gcc/ada/opt.ads | |
parent | cf27c5a2bcf21d320a6d82de255f01e43a17a473 (diff) | |
download | gcc-17ce1f52fe78bfdc63dfe941a272a1ffdea605a7.tar.gz |
[multiple changes]
2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
* sinfo.ads: Add comment.
2015-02-20 Olivier Hainque <hainque@adacore.com>
* opt.ads: Replace Opt.Suppress_All_Inlining by two separate
flags controlling the actual FE inlining out of pragma Inline
and pragma Inline_Always.
* adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
on -fno-inline, which disables all inlining in compilers with
an Ada back-end and without back-end inlining support.
* back_end.adb (Scan_Back_End_Switches): Set the Inline related
flag to True on -fno-inline and leave Inline_Always alone for
gcc back-ends.
* back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
names of the Opt flags it sets.
* gnat1drv.adb (Adjust_Global_Switches): Remove test on
Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
* sem_prag.adb (Make_Inline): Remove early return conditioned
on Opt.Suppress_All_Inlining.
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
disable the calls to Build_Body_To_Inline otherwise triggered
by pragma Inline or Inline_Always. This will prevent actual
front-end inlining of the subprogram on calls.
From-SVN: r220842
Diffstat (limited to 'gcc/ada/opt.ads')
-rw-r--r-- | gcc/ada/opt.ads | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads index 026878ed797..d144a5a8df8 100644 --- a/gcc/ada/opt.ads +++ b/gcc/ada/opt.ads @@ -1370,10 +1370,14 @@ package Opt is -- with'ed indirectly. It is set True by use of either the -gnatg or -- -gnaty switches, but not by use of the Style_Checks pragma. - Suppress_All_Inlining : Boolean := False; - -- GNAT - -- Set by -fno-inline. Suppresses all inlining, both front end and back end - -- regardless of any other switches that are set. + Disable_FE_Inline : Boolean := False; + Disable_FE_Inline_Always : Boolean := False; + -- GNAT + -- Request to disable front end inlining from pragma Inline or pragma + -- Inline_Always out of the presence of the -fno-inline back end flag + -- on the command line, regardless of any other switches that are set. + -- It remains the back end's reponsibility to honor -fno-inline at the + -- back end level. Suppress_Control_Flow_Optimizations : Boolean := False; -- GNAT |