]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Reset internal flags for -gnatD and -gnatG
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 28 Nov 2021 16:26:27 +0000 (17:26 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 2 Dec 2021 16:26:30 +0000 (16:26 +0000)
gcc/ada/

* sprint.adb (Source_Dump): Set both Print_Generated_Code and
Debug_Generated_Code to False at the end.

gcc/ada/sprint.adb

index c13be5d1b35a0d6483149b4c212242c1be97867f..ba2ab3a1e08d201b1a6e3dfc15ef9fd4249d1b7d 100644 (file)
@@ -673,6 +673,11 @@ package body Sprint is
             end if;
          end loop;
       end if;
+
+      --  See above for the rationale, but we cannot do it earlier for them
+
+      Print_Generated_Code := False;
+      Debug_Generated_Code := False;
    end Source_Dump;
 
    ---------------------