aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r--gcc/c-pragma.c3
1 files changed, 2 insertions, 1 deletions
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. */