From: Andreas Schwab Date: Sat, 9 Mar 2002 19:53:22 +0000 (+0000) Subject: * gcc.c (validate_all_switches): Also handle `%W{...}'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2877e0aedebffa77a55167700f643d30ea499b3f;p=gcc.git * gcc.c (validate_all_switches): Also handle `%W{...}'. From-SVN: r50505 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e86ffc3b56..f88b44df2b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-03-09 Andreas Schwab + + * gcc.c (validate_all_switches): Also handle `%W{...}'. + 2002-03-09 Geoffrey Keating * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define. diff --git a/gcc/gcc.c b/gcc/gcc.c index ead8ffa10a2..5f8ada04c0a 100644 --- 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); }