This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14135] No sibcalling for some obvious places (happens in java's front-end)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2004 03:03:14 -0000
- Subject: [Bug optimization/14135] No sibcalling for some obvious places (happens in java's front-end)
- References: <20040213044237.14135.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-07 03:03 -------
With my two patches, GCC produces (on powerpc-apple-darwin without -mdynamic-no-
pic which is why the pic register is saved:( ):
_java_tree_inlining_walk_subtrees:
00000fc4 lwz r2,_java_handle_option(r3)
00000fc8 or r4,r5,r5
00000fcc stw r31,0xfffc(r1)
00000fd0 or r5,r6,r6
00000fd4 cmpwi cr7,r2,_java_handle_option
00000fd8 or r6,r7,r7
00000fdc li r3,_java_handle_option
00000fe0 beq cr7,0xffc
00000fe4 lbz r0,0xc(r2)
00000fe8 cmpwi cr7,r0,0x4
00000fec bne cr7,0xffc
00000ff0 lwz r31,0xfffc(r1)
00000ff4 addi r3,r2,0x18
00000ff8 b 0x32dc ; symbol stub for: _walk_tree
00000ffc lwz r31,0xfffc(r1)
00001000 blr
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-03-05 05:25:17 |2004-03-07 03:03:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14135