aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-02-18 18:24:05 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-02-18 18:24:05 +0000
commite17aafd170768308bb0ac5fa2d35795b68887c0a (patch)
treeb39757c8156dfbffc70bbf39a9c0a731e26c82f7 /gcc
parent04b03085740b48a3419346b7f52c2b799fc1b086 (diff)
downloadgcc-e17aafd170768308bb0ac5fa2d35795b68887c0a.zip
gcc-e17aafd170768308bb0ac5fa2d35795b68887c0a.tar.gz
gcc-e17aafd170768308bb0ac5fa2d35795b68887c0a.tar.bz2
* gcc.c (validate_switches): Don't scan past closing '}'.
From-SVN: r63046
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/cp-tree.h4
-rw-r--r--gcc/gcc.c3
4 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5500f28..fd9b2d1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-18 Geoffrey Keating <geoffk@apple.com>
+
+ * gcc.c (validate_switches): Don't scan past closing '}'.
+
2003-02-18 Ben Elliston <bje@redhat.com>
PR c++/1607
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 069c009..61ed974 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-18 Geoffrey Keating <geoffk@apple.com>
+
+ * cp-tree.h (rid_to_yy): Delete.
+ (C_RID_YYCODE): Delete.
+ (finish_file): Delete redundant declaration.
+
2003-02-18 Jason Merrill <jason@redhat.com>
PR c++/9623
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index a0c4134..02a724d 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -240,9 +240,6 @@ struct lang_identifier GTY(())
#define C_IS_RESERVED_WORD(ID) TREE_LANG_FLAG_5 (ID)
-extern const short rid_to_yy[RID_MAX];
-#define C_RID_YYCODE(ID) rid_to_yy[C_RID_CODE (ID)]
-
#define LANG_IDENTIFIER_CAST(NODE) \
((struct lang_identifier*)IDENTIFIER_NODE_CHECK (NODE))
@@ -3886,7 +3883,6 @@ extern tree build_cleanup (tree);
extern void finish_file (void);
extern tree build_expr_from_tree (tree);
extern tree build_cleanup (tree);
-extern void finish_file (void);
extern tree build_expr_from_tree (tree);
extern tree build_offset_ref_call_from_tree (tree, tree);
extern tree build_call_from_tree (tree, tree, bool);
diff --git a/gcc/gcc.c b/gcc/gcc.c
index b7aac2d..52ca424 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6871,7 +6871,8 @@ next_member:
else if (p[0] == 'W' && p[1] == '{')
p = validate_switches (p+2);
}
- if (*p) p++;
+ else
+ p++;
}
if (*p) p++;