diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-10 23:10:05 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-10 23:10:05 +0000 |
commit | 490eec42c79a8ba479de077423c01637480bc80a (patch) | |
tree | ec0adb6f879751a79c5c8f898f00474f72486beb /gcc/c-tree.h | |
parent | 1a664318e9152ebd1ca4e99f53b715c4d3e28c04 (diff) | |
download | gcc-490eec42c79a8ba479de077423c01637480bc80a.tar.gz |
* c-tree.h (struct c_declspecs): Remove typedef_decl. Add
typedef_p and typedef_signed_p.
* c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
(grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
Check typedef_p and typedef_signed_p, not typedef_decl.
(grokfield): Check typedef_p, not typedef_decl.
(build_null_declspecs): Initialize typedef_p and typedef_signed_p,
not typedef_decl.
(declspecs_add_type): Set typedef_p and typedef_signed_p, not
typedef_decl.
testsuite:
* gcc.dg/bitfld-9.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87326 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 37075518b83..dde8dc3249d 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -136,8 +136,6 @@ struct c_declspecs { /* The type specified, not reflecting modifiers such as "short" and "unsigned", or NULL_TREE if none. */ tree type; - /* If the type was specified with a typedef, that typedef decl. */ - tree typedef_decl; /* The attributes from a typedef decl. */ tree decl_attr; /* When parsing, the attributes. Outside the parser, this will be @@ -153,6 +151,11 @@ struct c_declspecs { specifiers to be handled separately from storage class specifiers.) */ BOOL_BITFIELD non_sc_seen_p : 1; + /* Whether the type is specified by a typedef. */ + BOOL_BITFIELD typedef_p : 1; + /* Whether the type is specified by a typedef whose type is + explicitly "signed". */ + BOOL_BITFIELD typedef_signed_p : 1; /* Whether the specifiers include a deprecated typedef. */ BOOL_BITFIELD deprecated_p : 1; /* Whether "int" was explicitly specified. */ |