2003-12-17 Neil Booth <neil@daikokuya.co.uk>
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 00:25:24 +0000 (00:25 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 00:25:24 +0000 (00:25 +0000)
commit2d1a28406105ff718c0cf4394140f5eacfad700e
tree4fbf0e973113ecb7c320c16aca6d53d949bafa53
parent63cb16cdb2451bbf04356ead169c7d044f90854e
2003-12-17  Neil Booth  <neil@daikokuya.co.uk>
            Joseph S. Myers  <jsm@polyomino.org.uk>

PR c/3347
* c-decl.c (enum_decl_context): Remove BITFIELD.
(grokdeclarator): Take bit-field width as an input.
Perform bit-field width validation with
check_bitfield_type_and_width rather than waiting for
finish_struct.
(groktypename, groktypename_in_parm_context, start_decl,
push_parm_decl, grokfield, start_function): Update calls to
grokdeclarator.
(check_bitfield_type_and_width): New function.
(finish_struct): Move bit-field validation to grokdeclarator
and check_bitfield_type_and_width.

testsuite:
* gcc.dg/bitfld-8.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74725 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/bitfld-8.c [new file with mode: 0644]