Gcc 4.3.4 fails to call TARGET_FUNCTION_OK_FOR_SIBCALL

2010-01-07 Thread Paulo J. Matos
Hi all, With the code: - extern void display(unsigned int); void callee(int z) // Sibcall worth it { display(z); } void caller(int x, int y) // Sibcall not worth it { display(x); display(y); callee(x*y); } - I have put a

Re: Gcc 4.3.4 fails to call TARGET_FUNCTION_OK_FOR_SIBCALL

2010-01-07 Thread Paulo J. Matos
On Thu, Jan 7, 2010 at 11:46 AM, Paulo J. Matos pocma...@gmail.com wrote: Hi all, With the code: - extern void display(unsigned int); void callee(int z)  // Sibcall worth it {    display(z); } void caller(int x, int y) // Sibcall not worth it {    

Re: Gcc 4.3.4 fails to call TARGET_FUNCTION_OK_FOR_SIBCALL

2010-01-07 Thread Dave Korn
Paulo J. Matos wrote: This case is interesting because it seems that callee is being inlined into caller. Still intriguing is that the same happens with: -Os -fno-inline -fno-inline-small-functions -fno-inline-functions-called-once There are loads of other inline-related -f options apart