Commit 0c9c281d by Eric Botcazou Committed by Pierre-Marie de Rodat

[Ada] Make No_Inline pragma effective for protected subprograms

2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

	* exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline.

From-SVN: r272871
parent 97c0b990
2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
* exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline.
2019-07-01 Ed Schonberg <schonberg@adacore.com>
* exp_unst.adb (Visit_Node, Check_Static_Type): Improve the
......
......@@ -8950,6 +8950,9 @@ package body Exp_Ch9 is
Set_Is_Inlined (Protected_Body_Subprogram (Subp));
Set_Is_Inlined (Subp, False);
end if;
if Has_Pragma_No_Inline (Subp) then
Set_Has_Pragma_No_Inline (Protected_Body_Subprogram (Subp));
end if;
end Check_Inlining;
---------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment