On Fri, Oct 11, 2013 at 9:20 AM, Nagaraju Mekala <gnuuser....@gmail.com> wrote: > > I observed that in rs6000 port longcall is implemented by using > CALL_LONG define. > #define CALL_LONG 0x00000008 /* always call indirect */ > In the md file they are checking the operand with CALL_LONG > if (INTVAL (operands[3]) & CALL_LONG) > operands[1] = rs6000_longcall_ref (operands[1]); > In my port I dont have suchthing to compare. Can we somehow parse the > tree chain and check the attributes of the functions..
Look at init_cumulative_args in rs6000.c to see how CALL_LONG is set based on the function attribute. Ian