This is the mail archive of the
mailing list for the GCC project.
Re: sin/cos via SSE2, and an alignment bug (was Re: sqrt via SSE2)
> On Tue, Feb 19, 2002 at 03:33:04PM +0100, Jan Hubicka wrote:
> > Can you show me the testcase? Note that gcc does not align properly stack
> > frame of function main () in case your runtime don't.
> Yes it does.
It does not, unless something changed very recently. The patch doing trick
with alloca aligns the stack boundary, so all functions called from main are
aligned, but not main itself.
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl %ebp, %esp
leal -4(%ebp), %eax
esp gets aligned by and operation, but t is homed at stack and
computed off missaligned ebp.