Do not insert packing attributes unless #pragma pack(push,<n>) is active.

From-SVN: r22894
This commit is contained in:
Nick Clifton 1998-10-07 14:41:42 +00:00 committed by Nick Clifton
parent 10a9f2beac
commit 14ab9f5287
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Oct 7 14:40:43 1998 Nick Clifton <nickc@cygnus.com>
* c-pragma.c (insert_pack_attributes): Do not insert
attributes unless #pragma pack(push,<n>) is in effect.
Wed Oct 7 12:10:46 1998 Jim Wilson <wilson@cygnus.com>
* expr.c (emit_group_store): Handle a PARALLEL destination.

View file

@ -146,7 +146,8 @@ insert_pack_attributes (node, attributes, prefix)
tree a;
/* If we are not packing, then there is nothing to do. */
if (maximum_field_alignment == 0)
if (maximum_field_alignment == 0
|| alignment_stack == NULL)
return;
/* We are only interested in fields. */