]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
make.adb (Process_Multilib, [...]): Refine previous change and ignore -mieee switch...
authorArnaud Charlet <charlet@gcc.gnu.org>
Mon, 17 Aug 2009 09:50:19 +0000 (11:50 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 17 Aug 2009 09:50:19 +0000 (11:50 +0200)
2009-08-17  Arnaud Charlet  <charlet@adacore.com>

* make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
and ignore -mieee switch to avoid spawning an extra gcc in this case.

From-SVN: r150829

gcc/ada/make.adb

index 69e00f31ecec3e3f4272dbe9bbffb2026dbc820b..60235328b44822af49a343a68ab4b004187a4a0d 100644 (file)
@@ -7326,6 +7326,7 @@ package body Make is
               and then Argv (1) = '-'
               and then Argv (2) = 'm'
               and then Argv /= "-margs"
+              and then Argv /= "-mieee"
             then
                Arg_Index := Arg_Index + 1;
                Args (Arg_Index) := new String'(Argv);
@@ -7860,7 +7861,9 @@ package body Make is
             Add_Switch (Argv, Compiler, And_Save => And_Save);
             Add_Switch (Argv, Linker, And_Save => And_Save);
 
-            if Argv (2) = 'm' then
+            if Argv (2) = 'm'
+              and then Argv /= "-mieee"
+            then
                N_M_Switch := N_M_Switch + 1;
             end if;