This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32680] unneeded movsbl
- 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:50:32 -0000
- Subject: [Bug middle-end/32680] unneeded movsbl
- References: <bug-32680-14818@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-07-09 09:50 -------
It does:
function2:
.LFB3:
call function1
movsbl %al,%eax
ret
because this is what the C ABI specifies. Now, the stack adjustments are
indeed superfluous. And we fail to tailcall as well. The latter is
fixed with a patch of mine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32680