This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/47353] New: superfluous alignment after dynamic stack allocation


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47353

           Summary: superfluous alignment after dynamic stack allocation
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ebotcazou@gcc.gnu.org


Since

2003-10-07  Geoffrey Keating  <geoffk@apple.com>

        * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
        account when aligning arguments.
        * calls.c (STACK_POINTER_OFFSET): Move default from here ...
        * defaults.h (STACK_POINTER_OFFSET): ... to here.

was installed, STACK_POINTER_OFFSET has always been defined; as a consequence,
the code in allocate_dynamic_stack_space has unconditionally aligned the stack
pointer after the allocation.

See http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00842.html for an approach to
eliminating the superfluous alignment on most platforms.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]