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:
mycroft 1997-11-03 12:21:51 +00:00
parent 9e82e84056
commit b5a9af9fec
1 changed files with 1 additions and 0 deletions

View File

@ -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'"),