diff options
author | Marek Polacek <polacek@redhat.com> | 2013-12-05 12:05:43 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2013-12-05 12:05:43 +0000 |
commit | 9e36c9ed207d4ce83c8b24d698040973e485acdb (patch) | |
tree | 51aceae137bdc6763d01bb3eedc8227e9fce127d | |
parent | 858265046669eb2a04cf619dba241188020565c4 (diff) | |
download | gcc-9e36c9ed207d4ce83c8b24d698040973e485acdb.zip gcc-9e36c9ed207d4ce83c8b24d698040973e485acdb.tar.gz gcc-9e36c9ed207d4ce83c8b24d698040973e485acdb.tar.bz2 |
c-common.c (c_sizeof_or_alignof_type): Move a declaration into [ADJUST_FIELD_ALIGN].
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].
From-SVN: r205705
-rw-r--r-- | gcc/c-family/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 875b08d..cbefac7 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2013-12-05 Marek Polacek <polacek@redhat.com> + + PR c/52023 + * c-common.c (c_sizeof_or_alignof_type): Move a declaration into + [ADJUST_FIELD_ALIGN]. + 2013-12-04 Joseph Myers <joseph@codesourcery.com> PR c/52023 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index a06dea8..a4f8564 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); |