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/14625] tail call optimization missed


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


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