This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/6882] Useless stack adjustment code
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2004 17:40:02 -0000
- Subject: [Bug target/6882] Useless stack adjustment code
- References: <20020531004606.6882.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-07-08 17:40 -------
This is fixed on SPARC thanks to tree-ssa. With the original testcase at -O2:
.file "pr6882.cpp"
.section ".text"
.align 4
.align 4
.global _Z6foobarv
.type _Z6foobarv, #function
.proc 020
_Z6foobarv:
.LLFB9:
jmp %o7+8
nop
.LLFE9:
.size _Z6foobarv, .-_Z6foobarv
.ident "GCC: (GNU) 3.5.0 20040705 (experimental)"
Falk, the example you gave in comment #6 appears to be specific to Alpha: it
doesn't generate epilogue/prologue code on SPARC with 3.4.x or mainline. So I'd
suggest to open a specific PR to track the problem. I'm closing this one.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
GCC target triplet|sparc*-*-*,alpha*-*-* |sparc*-*-*
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6882