[Bug middle-end/48608] New: Alignment adjust of local variables is lost

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 14 13:26:00 GMT 2011


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: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@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.



More information about the Gcc-bugs mailing list