OSDN Git Service

Do not insert packing attributes unless #pragma pack(push,<n>) is active.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Oct 1998 14:41:42 +0000 (14:41 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Oct 1998 14:41:42 +0000 (14:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22894 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-pragma.c

index 0ded56e..beb705e 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 90edeb7..a28679e 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.  */