diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-18 21:03:24 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-18 21:03:24 +0000 |
commit | 891e084d4fd9d591c0df9288a5bff67be61494e0 (patch) | |
tree | 9f486df3f0bb1ce1e6783a9fb57d4d7c914edbb4 /gcc/c-decl.c | |
parent | bd5970054af884251223b7f8d7034509dc44c0d1 (diff) | |
download | gcc-891e084d4fd9d591c0df9288a5bff67be61494e0.tar.gz |
* c-decl.c (check_bitfield_type_and_width): Remove enum special
case suppression of pedwarn.
* system.h (ENUM_BITFIELD): Use __extension__.
(CHAR_BITFIELD): Likewise.
cp/
* cp-tree.h (struct lang_type_header): Remove __extension__.
testsuite/
* gcc.dg/bitfld-1.c: Expect warnings for enum bitfields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74797 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index d07c8338354..4bf9727b2ad 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3268,10 +3268,7 @@ check_bitfield_type_and_width (tree *type, tree *width, const char *orig_name) if (pedantic && type_mv != integer_type_node && type_mv != unsigned_type_node - && type_mv != boolean_type_node - /* Accept an enum that's equivalent to int or unsigned int. */ - && (TREE_CODE (*type) != ENUMERAL_TYPE - || TYPE_PRECISION (*type) != TYPE_PRECISION (integer_type_node))) + && type_mv != boolean_type_node) pedwarn ("type of bit-field `%s' is a GCC extension", name); if (type_mv == boolean_type_node) |