]> gcc.gnu.org Git - gcc.git/commitdiff
ada: Remove wrong comment about expansion of exceptions for GNATprove
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 19 Apr 2023 09:37:59 +0000 (11:37 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 13 Jun 2023 07:31:43 +0000 (09:31 +0200)
Code cleanup related to handling exceptions in GNATprove.

gcc/ada/

* exp_ch11.adb (Expand_N_Raise_Statement): Expansion of raise statements
never happens in GNATprove mode.

gcc/ada/exp_ch11.adb

index db85c7efa6ec168f0778b254a2859ab8ea75722a..53f0753cdce90de72db12153cd0c32cecdf41066 100644 (file)
@@ -1592,10 +1592,8 @@ package body Exp_Ch11 is
 
       else
          --  Bypass expansion to a run-time call when back-end exception
-         --  handling is active, unless the target is CodePeer or GNATprove.
-         --  In CodePeer, raising an exception is treated as an error, while in
-         --  GNATprove all code with exceptions falls outside the subset of
-         --  code which can be formally analyzed.
+         --  handling is active, unless the target is CodePeer, where
+         --  raising an exception is treated as an error.
 
          if not CodePeer_Mode then
             return;
@@ -1604,7 +1602,7 @@ package body Exp_Ch11 is
          --  Find innermost enclosing exception handler (there must be one,
          --  since the semantics has already verified that this raise statement
          --  is valid, and a raise with no arguments is only permitted in the
-         --  context of an exception handler.
+         --  context of an exception handler).
 
          Ehand := Parent (N);
          while Nkind (Ehand) /= N_Exception_Handler loop
This page took 0.06515 seconds and 5 git commands to generate.