Re: call_value problem: var = func() !?

2010-07-01 Thread M. -Eqbal Maraqa
Hello all, hello Richard and thank you for your help. On Wed, 30.06.2010 08:57, Richard Henderson wrote: > On 06/30/2010 05:06 AM, M. -Eqbal Maraqa wrote: > > f1.c:5:1: error: unrecognizable insn: > > (insn 12 11 13 3 f1.c:4 > >(set (mem/c/i:SI (reg/f:SI 23 [ D

call_value problem: var = func() !?

2010-06-30 Thread M. -Eqbal Maraqa
Hello, I'm working on a new gcc target and trying to implement call_value. When compiling (-O0 -S) the following c code : int f1(int a, int b) { int tmp = a + b; return tmp; } void main() { int a = 10; int b = 20; int c; c = f1(a,b); } I get the followi