/* Reset the alignment in case we have made it tighter, so we can benefit
from it in get_pointer_alignment. */
- DECL_ALIGN (decl) = align;
+ SET_DECL_ALIGN (decl, align);
}
/* Return DECL_ALIGN (decl), possibly increased for optimization purposes
&& asan_protect_global (decl))
{
asan_protected = true;
- DECL_ALIGN (decl) = MAX (DECL_ALIGN (decl),
- ASAN_RED_ZONE_SIZE * BITS_PER_UNIT);
+ SET_DECL_ALIGN (decl, MAX (DECL_ALIGN (decl),
+ ASAN_RED_ZONE_SIZE * BITS_PER_UNIT));
}
set_mem_align (decl_rtl, DECL_ALIGN (decl));
architectures so use DATA_ALIGNMENT as well, except for strings. */
if (TREE_CODE (exp) == STRING_CST)
{
- DECL_ALIGN (decl) = CONSTANT_ALIGNMENT (exp, DECL_ALIGN (decl));
+ SET_DECL_ALIGN (decl, CONSTANT_ALIGNMENT (exp, DECL_ALIGN (decl)));
}
else
align_variable (decl, 0);
&& asan_protect_global (exp))
{
asan_protected = true;
- DECL_ALIGN (decl) = MAX (DECL_ALIGN (decl),
- ASAN_RED_ZONE_SIZE * BITS_PER_UNIT);
+ SET_DECL_ALIGN (decl, MAX (DECL_ALIGN (decl),
+ ASAN_RED_ZONE_SIZE * BITS_PER_UNIT));
}
/* If the constant is part of an object block, make sure that the