http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48608
Summary: Alignment adjust of local variables is lost
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: [email protected]
ReportedBy: [email protected]
We have
static unsigned int
get_decl_align_unit (tree decl)
{
unsigned int align = LOCAL_DECL_ALIGNMENT (decl);
return align / BITS_PER_UNIT;
}
LOCAL_DECL_ALIGNMENT may increase alignment for local
variable. But it is never saved. DECL_ALIGN (decl)
returns the old alignment.