From 14ab9f52872cf06c3ba09759e7187a1cc50e77d1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 7 Oct 1998 14:41:42 +0000 Subject: [PATCH] Do not insert packing attributes unless #pragma pack(push,) is active. From-SVN: r22894 --- gcc/ChangeLog | 5 +++++ gcc/c-pragma.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ded56ee2e9..beb705e8a58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 7 14:40:43 1998 Nick Clifton + + * c-pragma.c (insert_pack_attributes): Do not insert + attributes unless #pragma pack(push,) is in effect. + Wed Oct 7 12:10:46 1998 Jim Wilson * expr.c (emit_group_store): Handle a PARALLEL destination. diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 90edeb744a1..a28679e6e06 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. */ -- 2.30.2