Do not insert packing attributes unless #pragma pack(push,<n>) is active.
authorNick Clifton <nickc@cygnus.com>
Wed, 7 Oct 1998 14:41:42 +0000 (14:41 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 7 Oct 1998 14:41:42 +0000 (14:41 +0000)
From-SVN: r22894

gcc/ChangeLog
gcc/c-pragma.c

index 0ded56ee2e957b574c831d6d28c865e417ca6d62..beb705e8a58bf42e97d1d9aed73604a6596f04bd 100644 (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.
index 90edeb744a116593532bd0ffd0037f9f3d900d12..a28679e6e06edd752134015a24c084ad03d177e4 100644 (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.  */