This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ARM: Invalid Stack Alignment BUG
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: ARM: Invalid Stack Alignment BUG
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 15 Mar 2000 10:46:21 -0800
- Cc: rearnsha at arm dot com, Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>, Craig Newell <CraigN at cheque dot uq dot edu dot au>, gcc-patches at gcc dot gnu dot org, hubicka at freesoft dot cz
- References: <200003151343.NAA08727@cam-mail2.cambridge.arm.com> <12417.953138568@upchuck>
On Wed, Mar 15, 2000 at 09:42:48AM -0700, Jeffrey A Law wrote:
> > IMO this must be handled in a
> > machine independent manner, based on the information already supplied.
> Agreed, if we are losing space due to inconvenient rounding, then we should
> find a describe when rounding should occur so that we can write the code
> once in the generic parts of the compiler rather than over and over again
> in every backend.
"Over and over"? One line for an alignment?
The only way to do the rounding correctly not in the back end
is to do the entire frame layout not in the back end. Rounding
just the size of the local variable store is _always_ not the
right thing to do. Ideally you want to round the size of the
entire frame -- locals, save regs, outgoing args, varargs spill
and everything.
r~