This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14625] tail call optimization missed
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2005 22:35:01 -0000
- Subject: [Bug target/14625] tail call optimization missed
- References: <20040318004529.14625.drepper@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-31 22:34 -------
The code produced by CVS HEAD from today for the test case of comment #0
doesn't exactly get one thrilled and excited either:
.file "t.c"
.text
.p2align 4,,15
.type foo, @function
foo:
addl %edx, %eax
addl %ecx, %eax
addl 4(%esp), %eax
addl 8(%esp), %eax
ret $8
.size foo, .-foo
.p2align 4,,15
.globl bar
.type bar, @function
bar:
subl $8, %esp
movl $1, %ecx
movl $3, 4(%esp)
movl $2, (%esp)
call foo
subl $8, %esp
addl $8, %esp
ret
.size bar, .-bar
.ident "GCC: (GNU) 4.0.0 20050131 (experimental)"
.section .note.GNU-stack,"",@progbits
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-01-29 13:35:11 |2005-01-31 22:34:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14625