OSDN Git Service

PR c/42439
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Dec 2009 21:28:45 +0000 (21:28 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Dec 2009 21:28:45 +0000 (21:28 +0000)
commit59dc2654d4e16ababf4ef4a3f25ec24b65889d95
tree3a957a9cf0bc7ad075c1b21b01621d3751c9e85b
parente8332698dfb8e51e5fa800d37f50dd9386d90f47
PR c/42439
* c-decl.c (check_bitfield_type_and_width): Only pedwarn if
pedantic for bit-field width not an integer constant expression
but folding to one.

testsuite:
* gcc.dg/bitfld-19.c, gcc.dg/bitfld-20.c, gcc.dg/bitfld-21.c: New
tests.

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