aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>1998-10-07 14:41:42 +0000
committerNick Clifton <nickc@gcc.gnu.org>1998-10-07 14:41:42 +0000
commit14ab9f52872cf06c3ba09759e7187a1cc50e77d1 (patch)
tree053e43bd01d2426025904c1727fd4873c7fdd47a /gcc
parent10a9f2beac265deecca8b66b352b0162cd9713bf (diff)
downloadgcc-14ab9f52872cf06c3ba09759e7187a1cc50e77d1.zip
gcc-14ab9f52872cf06c3ba09759e7187a1cc50e77d1.tar.gz
gcc-14ab9f52872cf06c3ba09759e7187a1cc50e77d1.tar.bz2
Do not insert packing attributes unless #pragma pack(push,<n>) is active.
From-SVN: r22894
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-pragma.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ded56e..beb705e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c
index 90edeb7..a28679e 100644
--- a/gcc/c-pragma.c
+++ b/gcc/c-pragma.c
@@ -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. */