diff options
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 5460ae5..df4d73c 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -2129,7 +2129,7 @@ finish_struct_bits (tree t) || TYPE_HAS_NONTRIVIAL_DESTRUCTOR (t)) { tree variants; - DECL_MODE (TYPE_MAIN_DECL (t)) = BLKmode; + SET_DECL_MODE (TYPE_MAIN_DECL (t), BLKmode); for (variants = t; variants; variants = TYPE_NEXT_VARIANT (variants)) { SET_TYPE_MODE (variants, BLKmode); @@ -4525,7 +4525,7 @@ build_base_field_1 (tree t, tree basetype, tree *&next_field) DECL_SIZE_UNIT (decl) = CLASSTYPE_SIZE_UNIT (basetype); SET_DECL_ALIGN (decl, CLASSTYPE_ALIGN (basetype)); DECL_USER_ALIGN (decl) = CLASSTYPE_USER_ALIGN (basetype); - DECL_MODE (decl) = TYPE_MODE (basetype); + SET_DECL_MODE (decl, TYPE_MODE (basetype)); DECL_FIELD_IS_BASE (decl) = 1; /* Add the new FIELD_DECL to the list of fields for T. */ @@ -6502,7 +6502,7 @@ layout_class_type (tree t, tree *virtuals_p) field is effectively invisible. */ DECL_SIZE (field) = TYPE_SIZE (type); /* We must also reset the DECL_MODE of the field. */ - DECL_MODE (field) = TYPE_MODE (type); + SET_DECL_MODE (field, TYPE_MODE (type)); } else layout_nonempty_base_or_field (rli, field, NULL_TREE, @@ -7285,7 +7285,7 @@ finish_struct_1 (tree t) if (VAR_P (x) && TREE_STATIC (x) && TREE_TYPE (x) != error_mark_node && same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (x)), t)) - DECL_MODE (x) = TYPE_MODE (t); + SET_DECL_MODE (x, TYPE_MODE (t)); /* Done with FIELDS...now decide whether to sort these for faster lookups later. |