]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] In CodePeer mode, use regular-exception handling
authorBoris Yakobowski <yakobowski@adacore.com>
Thu, 21 Jan 2021 17:43:27 +0000 (18:43 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 6 May 2021 07:51:41 +0000 (03:51 -0400)
gcc/ada/

* gnat1drv.adb (Adjust_Global_Switches): Simplify logic.

gcc/ada/gnat1drv.adb

index 448a64066689026a3be78b4bb89bab1ba9975009..cefc5c6a1c766128b6db58b485f216c7a404d884 100644 (file)
@@ -633,13 +633,9 @@ procedure Gnat1drv is
       end if;
 
       --  Set and check exception mechanism. This is only meaningful when
-      --  compiling, and in particular not meaningful for special modes used
-      --  for program analysis rather than compilation: CodePeer mode and
-      --  GNATprove mode.
+      --  generating code.
 
-      if Operating_Mode = Generate_Code
-        and then not (CodePeer_Mode or GNATprove_Mode)
-      then
+      if Operating_Mode = Generate_Code then
          case Targparm.Frontend_Exceptions_On_Target is
             when True =>
                case Targparm.ZCX_By_Default_On_Target is