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
This commit is contained in:
parent
8582650466
commit
9e36c9ed20
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user