From Mike Stump, via egcs:
* c-decl.c (start_struct): Ensure that structs with forward declarations are in fact packed when -fpack-struct is given.
This commit is contained in:
parent
9e82e84056
commit
b5a9af9fec
|
@ -5351,6 +5351,7 @@ start_struct (code, name)
|
|||
if (ref && TREE_CODE (ref) == code)
|
||||
{
|
||||
C_TYPE_BEING_DEFINED (ref) = 1;
|
||||
TYPE_PACKED (ref) = flag_pack_struct;
|
||||
if (TYPE_FIELDS (ref))
|
||||
error ((code == UNION_TYPE ? "redefinition of `union %s'"
|
||||
: "redefinition of `struct %s'"),
|
||||
|
|
Loading…
Reference in New Issue