diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 2000-01-18 00:01:06 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 2000-01-18 00:01:06 +0000 |
commit | 101e59f49237c5acbf25580d8f7f2f16b0e10f9c (patch) | |
tree | 9efb26d31ac8ff1aa8734ad2c269ff7117ddf3eb /gcc/c-common.c | |
parent | 18990de52b8166a8f5fb71271cf4c12d3c0f0a47 (diff) | |
download | gcc-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.c | 9 |
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) |