[Bug target/6882] Useless stack adjustment code
ebotcazou at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 8 17:40:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list