This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/6882] Useless stack adjustment code


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]