Bug 47353 - superfluous alignment after dynamic stack allocation
Summary: superfluous alignment after dynamic stack allocation
Status: RESOLVED DUPLICATE of bug 34548
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.6.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 21:25 UTC by Eric Botcazou
Modified: 2012-07-30 09:33 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Botcazou 2011-01-18 21:25:29 UTC
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.
Comment 1 Eric Botcazou 2012-07-30 09:33:36 UTC
.

*** This bug has been marked as a duplicate of bug 34548 ***