diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-07 14:41:42 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-07 14:41:42 +0000 |
commit | 0d1d1815906e6ce976e7c855f3c0d61870de1c18 (patch) | |
tree | 053e43bd01d2426025904c1727fd4873c7fdd47a /gcc/c-pragma.c | |
parent | 723d3639ec71040563ccd8ebf1c307085ea15b9c (diff) | |
download | gcc-0d1d1815906e6ce976e7c855f3c0d61870de1c18.tar.gz |
Do not insert packing attributes unless #pragma pack(push,<n>) is active.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22894 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */ |