[PATCH] Don't ignore packed on char bitfields (4.0 regression)

Ian Lance Taylor iant@google.com
Wed Jan 28 02:30:00 GMT 2009


Adam Nemet <anemet@caviumnetworks.com> writes:

> 	* c.opt (Wpacked-bitfield-compat): Change init value to -1.
> 	* c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
> 	was not supplied then set warn_packed_bitfield_compat to the
> 	default value of 1.
> 	* stor-layout.c (place_field): Check warn_packed_bitfield_compat
> 	against 1.

This is OK.

Thanks.

Ian



More information about the Gcc-patches mailing list