summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-09 19:53:22 +0000
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-09 19:53:22 +0000
commitc2a9dd1ba48210a3973744ce2ddf940860229ac9 (patch)
treedad8e214b453caac3864de5b42a72fb1ec98d9d8
parentc70257c50cba8092912a7ea336b50e3465d89e21 (diff)
downloadgcc-c2a9dd1ba48210a3973744ce2ddf940860229ac9.tar.gz
* gcc.c (validate_all_switches): Also handle `%W{...}'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50505 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gcc.c6
2 files changed, 7 insertions, 3 deletions
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 <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.
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);
}