[Ada] Make No_Inline pragma effective for protected subprograms
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 1 Jul 2019 13:36:04 +0000 (13:36 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 1 Jul 2019 13:36:04 +0000 (13:36 +0000)
2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

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

From-SVN: r272871

gcc/ada/ChangeLog
gcc/ada/exp_ch9.adb

index 25a9ef9..c60b957 100644 (file)
@@ -1,3 +1,7 @@
+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
index a3785d7..c431e86 100644 (file)
@@ -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;
 
       ---------------------------