aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2013-12-05 12:05:43 +0000
committerMarek Polacek <polacek@redhat.com>2013-12-05 12:05:43 +0000
commitd232cf245d1df71ac2c877f5124399dfe3ae157e (patch)
tree51aceae137bdc6763d01bb3eedc8227e9fce127d /gcc/c-family/c-common.c
parent2b5acad54407fcc042ee6e5d9a94718126a6f2a8 (diff)
2013-12-05 Marek Polacek <polacek@redhat.com>
c-family/ * c-common.c (c_sizeof_or_alignof_type): Move a declaration into [ADJUST_FIELD_ALIGN]. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@205705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r--gcc/c-family/c-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index a06dea8b7f3..a4f85645e51 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -5004,10 +5004,10 @@ c_sizeof_or_alignof_type (location_t loc,
#ifdef BIGGEST_FIELD_ALIGNMENT
align = MIN (align, BIGGEST_FIELD_ALIGNMENT);
#endif
- tree field = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE,
- type);
unsigned int field_align = align;
#ifdef ADJUST_FIELD_ALIGN
+ tree field = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE,
+ type);
field_align = ADJUST_FIELD_ALIGN (field, field_align);
#endif
align = MIN (align, field_align);