This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39146] Unnecessary stack alignment
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2009 02:33:25 -0000
- Subject: [Bug target/39146] Unnecessary stack alignment
- References: <bug-39146-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from hjl dot tools at gmail dot com 2009-02-12 02:33 -------
(In reply to comment #7)
> Created an attachment (id=17283)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17283&action=view) [edit]
> A patch to fix this problem
>
> Impact to other test unknown. Test undergoing.
>
> HJ, can you also help to verify and test this patch?
>
With your patch, I got
.globl bar
.type bar, @function
bar:
pushq %rbp
movq %rsp, %rbp
leave
ret
We still have push and mov. I guess it may be the best we can do.
But please run full 32 and 64bit testsuite with your patch as well
as under emx-avx-sim.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39146