[Ada] Add a No_Return annotation to ease static analysis
authorHristian Kirtchev <kirtchev@adacore.com>
Wed, 26 Sep 2018 09:18:58 +0000 (09:18 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 26 Sep 2018 09:18:58 +0000 (09:18 +0000)
2018-09-26  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

* sem_ch5.adb (Wrap_Loop_Statement): Annotate as No_Return.

From-SVN: r264627

gcc/ada/ChangeLog
gcc/ada/sem_ch5.adb

index 9731513188fbf26817b10d32c75551df65cd2dce..d6ce7847c368014740baa5b5cc398e157d308a01 100644 (file)
@@ -1,3 +1,7 @@
+2018-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
+
+       * sem_ch5.adb (Wrap_Loop_Statement): Annotate as No_Return.
+
 2018-09-26  Ed Schonberg  <schonberg@adacore.com>
 
        * exp_util.adb (Make_Predicate_Call): Use OK_Convert_To when
index 8c1f94989dcdcf4aa6f1ba853d96c4a5853a103b..1e325ecade189a51b38931cf7cf4a5b2bf829676 100644 (file)
@@ -3429,7 +3429,8 @@ package body Sem_Ch5 is
          --  for transformation if needed.
 
          procedure Wrap_Loop_Statement (Manage_Sec_Stack : Boolean);
-         pragma Inline (Wrap_Loop_Statement);
+         pragma Inline    (Wrap_Loop_Statement);
+         pragma No_Return (Wrap_Loop_Statement);
          --  Wrap loop statement N within a block. Flag Manage_Sec_Stack must
          --  be set when the block must mark and release the secondary stack.