[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Aug 16 17:37:00 GMT 2009
------- Comment #24 from hjl dot tools at gmail dot com 2009-08-16 17:37 -------
(In reply to comment #23)
> (In reply to comment #21)
>
> Unfortunatelly, that patch is wrong. It aligns when there is some vector type
> in the function but it doesn't align if the autovectorizer creates SSE
> instructions. Try that obstack example in comment #12 and you see that the
> function my_alloc uses 16-byte sse instructions on stack and it doesn't have
> aligned stack with the patch.
>
I got
my_alloc:
pushl %ebp
movl $.LC0, %edx
movl %esp, %ebp
andl $-16, %esp
pushl %ebx
It looks OK to me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838
More information about the Gcc-bugs
mailing list