This change accepts the new -dumpbase-ext and the preexisting -dumpdir
options as internal GCC options.

It also marks the obsolete -auxbase and -auxbase-strip options for
future removal.

Tested on x86_64-pc-linux-gnu, committed on trunk

2020-06-04  Alexandre Oliva  <ol...@adacore.com>

gcc/ada/

        * switch.adb (Is_Internal_GCC_Switch): Recognize dumpdir and
        dumpbase-ext.  Mark auxbase and auxbase-strip for removal.
--- gcc/ada/switch.adb
+++ gcc/ada/switch.adb
@@ -165,7 +165,10 @@ package body Switch is
           (Switch_Chars (First .. Last) = "-param"        or else
            Switch_Chars (First .. Last) = "dumpdir"       or else
            Switch_Chars (First .. Last) = "dumpbase"      or else
-           Switch_Chars (First .. Last) = "dumpbase-ext");
+           Switch_Chars (First .. Last) = "dumpbase-ext"  or else
+           -- Can we remove auxbase-strip and auxbase already?
+           Switch_Chars (First .. Last) = "auxbase-strip" or else
+           Switch_Chars (First .. Last) = "auxbase");
    end Is_Internal_GCC_Switch;
 
    ---------------

Reply via email to