]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.c (validate_all_switches): Also handle `%W{...}'.
authorAndreas Schwab <schwab@suse.de>
Mon, 15 Apr 2002 19:50:26 +0000 (19:50 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 15 Apr 2002 19:50:26 +0000 (19:50 +0000)
From-SVN: r52326

gcc/ChangeLog
gcc/gcc.c

index 9b33d4e1480f20544da832ebd908daa375378eb9..beab070116c9513ea52355251d5988262c40caba 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-15  Andreas Schwab  <schwab@suse.de>
+
+       * gcc.c (validate_all_switches): Also handle `%W{...}'.
+
 2002-04-09  Alan Modra  <amodra@bigpond.net.au>
 
        * configure.in (auto-build.h): Use target_alias and build_alias
index 96cb8d617b8fd73c18f9d7e4cb785f27869709e7..f655eef7488f8957bcb56422dd4485cf1a827643 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6208,7 +6208,7 @@ validate_all_switches ()
     {
       p = comp->spec;
       while ((c = *p++))
-       if (c == '%' && *p == '{')
+       if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{')))
          /* We have a switch spec.  */
          validate_switches (p + 1);
     }
@@ -6218,14 +6218,14 @@ validate_all_switches ()
     {
       p = *(spec->ptr_spec);
       while ((c = *p++))
-       if (c == '%' && *p == '{')
+       if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{')))
          /* We have a switch spec.  */
          validate_switches (p + 1);
     }
 
   p = link_command_spec;
   while ((c = *p++))
-    if (c == '%' && *p == '{')
+    if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{')))
       /* We have a switch spec.  */
       validate_switches (p + 1);
 }