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 middle-end/32680] fails to tailcall, useless stack adjustment



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-07-09 09:54 -------
So I just applied it and now we get

function1:
.LFB2:
        movl    $10, %eax
        ret

function2:
.LFB3:
        movq    pfunc(%rip), %r11
        jmp     *%r11

for the indirect call.  Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |RESOLVED
 GCC target triplet|                            |x86_64-*-*, i?86-*-*
           Keywords|                            |missed-optimization
         Resolution|                            |FIXED
            Summary|unneeded movsbl             |fails to tailcall, useless
                   |                            |stack adjustment
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32680


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