aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>2000-01-18 00:01:06 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>2000-01-18 00:01:06 +0000
commit101e59f49237c5acbf25580d8f7f2f16b0e10f9c (patch)
tree9efb26d31ac8ff1aa8734ad2c269ff7117ddf3eb /gcc/c-common.c
parent18990de52b8166a8f5fb71271cf4c12d3c0f0a47 (diff)
downloadgcc-101e59f49237c5acbf25580d8f7f2f16b0e10f9c.zip
gcc-101e59f49237c5acbf25580d8f7f2f16b0e10f9c.tar.gz
gcc-101e59f49237c5acbf25580d8f7f2f16b0e10f9c.tar.bz2
c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
* c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST. (RESTORE_WARN_FLAGS): Unpack it. Change semantic type of extension to ttype. * c-common.c (split_specs_attrs): Expect an INTEGER_CST. * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c: Regenerate. From-SVN: r31478
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index b435350..0ce1ff1 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1079,6 +1079,15 @@ split_specs_attrs (specs_attrs, declspecs, prefix_attributes)
{
tree t, s, a, next, specs, attrs;
+ /* This can happen after an __extension__ in pedantic mode. */
+ if (specs_attrs != NULL_TREE
+ && TREE_CODE (specs_attrs) == INTEGER_CST)
+ {
+ *declspecs = NULL_TREE;
+ *prefix_attributes = NULL_TREE;
+ return;
+ }
+
/* This can happen in c++ (eg: decl: typespec initdecls ';'). */
if (specs_attrs != NULL_TREE
&& TREE_CODE (specs_attrs) != TREE_LIST)