* gcc.c (validate_all_switches): Also handle `%W{...}'.
From-SVN: r50505
This commit is contained in:
parent
ae53d63a9e
commit
2877e0aede
2 changed files with 7 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue