This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32680] fails to tailcall, useless stack adjustment
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 09:54:44 -0000
- Subject: [Bug middle-end/32680] fails to tailcall, useless stack adjustment
- References: <bug-32680-14818@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2007-07-09 09:54 -------
So I just applied it and now we get
function1:
.LFB2:
movl $10, %eax
ret
function2:
.LFB3:
movq pfunc(%rip), %r11
jmp *%r11
for the indirect call. Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |RESOLVED
GCC target triplet| |x86_64-*-*, i?86-*-*
Keywords| |missed-optimization
Resolution| |FIXED
Summary|unneeded movsbl |fails to tailcall, useless
| |stack adjustment
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32680