diff options
author | Andreas Schwab <schwab@suse.de> | 2002-03-09 19:53:22 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2002-03-09 19:53:22 +0000 |
commit | 2877e0aedebffa77a55167700f643d30ea499b3f (patch) | |
tree | dad8e214b453caac3864de5b42a72fb1ec98d9d8 /gcc | |
parent | ae53d63a9e0dbe59e0ab6a458df8f17d8dcfa0c6 (diff) | |
download | gcc-2877e0aedebffa77a55167700f643d30ea499b3f.zip gcc-2877e0aedebffa77a55167700f643d30ea499b3f.tar.gz gcc-2877e0aedebffa77a55167700f643d30ea499b3f.tar.bz2 |
* gcc.c (validate_all_switches): Also handle `%W{...}'.
From-SVN: r50505
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gcc.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e86ffc..f88b44d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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); } |