This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/47353] New: superfluous alignment after dynamic stack allocation
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jan 2011 21:25:38 +0000
- Subject: [Bug middle-end/47353] New: superfluous alignment after dynamic stack allocation
- Auto-submitted: auto-generated
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.