From 2877e0aedebffa77a55167700f643d30ea499b3f Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 9 Mar 2002 19:53:22 +0000 Subject: * gcc.c (validate_all_switches): Also handle `%W{...}'. From-SVN: r50505 --- gcc/gcc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/gcc.c') diff --git a/gcc/gcc.c b/gcc/gcc.c index ead8ffa..5f8ada0 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); } -- cgit v1.1