Commit 2877e0ae by Andreas Schwab Committed by Andreas Schwab

* gcc.c (validate_all_switches): Also handle `%W{...}'.

From-SVN: r50505
parent ae53d63a
2002-03-09 Andreas Schwab <schwab@suse.de>
* gcc.c (validate_all_switches): Also handle `%W{...}'.
2002-03-09 Geoffrey Keating <geoffk@redhat.com> 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
* config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define. * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
......
...@@ -6373,7 +6373,7 @@ validate_all_switches () ...@@ -6373,7 +6373,7 @@ validate_all_switches ()
{ {
p = comp->spec; p = comp->spec;
while ((c = *p++)) while ((c = *p++))
if (c == '%' && *p == '{') if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{')))
/* We have a switch spec. */ /* We have a switch spec. */
validate_switches (p + 1); validate_switches (p + 1);
} }
...@@ -6383,14 +6383,14 @@ validate_all_switches () ...@@ -6383,14 +6383,14 @@ validate_all_switches ()
{ {
p = *(spec->ptr_spec); p = *(spec->ptr_spec);
while ((c = *p++)) while ((c = *p++))
if (c == '%' && *p == '{') if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{')))
/* We have a switch spec. */ /* We have a switch spec. */
validate_switches (p + 1); validate_switches (p + 1);
} }
p = link_command_spec; p = link_command_spec;
while ((c = *p++)) while ((c = *p++))
if (c == '%' && *p == '{') if (c == '%' && (*p == '{' || (*p == 'W' && *++p == '{')))
/* We have a switch spec. */ /* We have a switch spec. */
validate_switches (p + 1); validate_switches (p + 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment