re PR c/22421 (problems with -Wformat and bit-fields)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 16 Jul 2005 16:01:57 +0000 (17:01 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 16 Jul 2005 16:01:57 +0000 (17:01 +0100)
commit0b359b010308064ecce067200e66662b354d3b7d
tree5f32a34bba8e5b6ed4a7e93f9ba7f8ff1df01cd4
parent8fcef540f3a1600c26bc7dbebed9c6142f3da7e8
re PR c/22421 (problems with -Wformat and bit-fields)

PR c/22421
* c-decl.c (c_build_bitfield_integer_type): New function.
(finish_struct): Call it.
* c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.

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

From-SVN: r102091
gcc/ChangeLog
gcc/c-decl.c
gcc/c-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/bitfld-1.c [new file with mode: 0644]