]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix small discrepancy between -gnatG and -gnatD[G] outputs
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 11 Nov 2021 11:36:10 +0000 (12:36 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Dec 2021 10:24:40 +0000 (10:24 +0000)
gcc/ada/

* sprint.ads (Source_Dump): Fix typo in comment.
* sprint.adb (Source_Dump): Set Dump_Freeze_Null for both -gnatG
and -gnatD.
* switch-c.adb (Scan_Front_End_Switches) <'D'>: Remove obsolete
kludge.

gcc/ada/sprint.adb
gcc/ada/sprint.ads
gcc/ada/switch-c.adb

index 611563a1f22632b7e7e09eebebcf654a82134179..c13be5d1b35a0d6483149b4c212242c1be97867f 100644 (file)
@@ -588,7 +588,7 @@ package body Sprint is
                              Print_Generated_Code or
                              Debug_Generated_Code;
       Dump_Original_Only  := Debug_Flag_O;
-      Dump_Freeze_Null    := Debug_Flag_S or Debug_Flag_G;
+      Dump_Freeze_Null    := Debug_Flag_S or Dump_Generated_Only;
 
       --  Note that we turn off the tree dump flags immediately, before
       --  starting the dump. This avoids generating two copies of the dump
index f05356e6237de62cff0b7f02fc92e4c0ba9640d0..e3fd58266c6c504d42dbfc414a87e6ff20da09c7 100644 (file)
@@ -97,7 +97,7 @@ package Sprint is
    --    -dg  print source from tree, including only the generated code
    --    -do  print source from tree, including only the original code
    --    -df  modify the above to include all units, not just the main unit
-   --    -sz  print source from tree for package Standard
+   --    -dz  print source from tree for package Standard
 
    procedure Sprint_Comma_List (List : List_Id);
    --  Prints the nodes in a list, with separating commas. If the list is empty
index 020be63540169224226c001316edc24acf17035b..40727384a788cf2f61da35d317063970de74ec20 100644 (file)
@@ -451,7 +451,6 @@ package body Switch.C is
 
                Debug_Generated_Code := True;
                Xref_Active := False;
-               Set_Debug_Flag ('g');
 
             --  -gnate? (extended switches)