* gcc.c (validate_all_switches): Also handle `%W{...}'.
authorAndreas Schwab <schwab@suse.de>
Sat, 9 Mar 2002 19:53:22 +0000 (19:53 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sat, 9 Mar 2002 19:53:22 +0000 (19:53 +0000)
From-SVN: r50505

gcc/ChangeLog
gcc/gcc.c

index 4e86ffc3b5647a251e5446c1f31fe1bd0693a1ce..f88b44df2b935f33c8493fca03084e8daa02a760 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-09  Andreas Schwab  <schwab@suse.de>
+
+       * gcc.c (validate_all_switches): Also handle `%W{...}'.
+
 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
 
        * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
index ead8ffa10a2b3f27ea2bc2712b8777315b7590a7..5f8ada04c0a99f51fb172a4456120644188104a5 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6373,7 +6373,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);
     }
@@ -6383,14 +6383,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);
 }