[PATCH] Don't ignore packed on char bitfields (4.0 regression)
Eric Botcazou
ebotcazou@adacore.com
Sat Jan 24 13:56:00 GMT 2009
> * c-decl.c (finish_struct): Move code to set DECL_PACKED after
> DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
> regardless of their type.
> * c-common.c (handle_packed_attribute): Don't ignore packed on
> bitfields.
> * c.opt (Wpacked-bitfield-compat): New warning option.
> * stor-layout.c (place_field): Warn if offset of a field changed.
> * doc/extend.texi (packed): Mention the ABI change.
> * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
> (Warning Options): Add it to the list.
Please make sure that the warning is only issued in the affected languages,
the patch is responsible for the following regression in Ada:
FAIL: gnat.dg/rep_clause2.adb (test for excess errors)
Thanks in advance.
--
Eric Botcazou
More information about the Gcc-patches
mailing list