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: unassig...@gcc.gnu.org
        ReportedBy: hjl.to...@gmail.com


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.

Reply via email to