elsif Switch_Chars (First .. Last) = "fno-inline" then
Lib.Store_Compilation_Switch (Switch_Chars);
Opt.Disable_FE_Inline := True;
- Opt.Disable_FE_Inline_Always := True;
return;
-- Similar processing for -fpreserve-control-flow
-- default for all of these in Opt is False).
--
-- Opt.Disable_FE_Inline
- -- Opt.Disable_FE_Inline_Always
-- Opt.Suppress_Control_Float_Optimizations
-- Opt.Generate_SCO
-- Opt.Generate_SCO_Instance_Table
-- Set to False with switch -f of gnatclean and gprclean
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.
+ -- Request to disable front end inlining from pragma Inline in 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.
-- Legacy implementation (relying on front-end inlining)
if not Back_End_Inlining then
- if (Has_Pragma_Inline_Always (Spec_Id)
- and then not Opt.Disable_FE_Inline_Always)
+ if Has_Pragma_Inline_Always (Spec_Id)
or else (Front_End_Inlining
and then not Opt.Disable_FE_Inline)
then