Re: Function Name from CALL_INSN RTX

2011-10-18 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: > Thanks for the help Ian. The function get_callee_fndecl takes in a tree and > returns a tree. I would like to get the function name from the RTX. Is there > a function for this purpose? Please don't top-post. Thanks. Sorry about that, I overlooked that you wanted

RE: Function Name from CALL_INSN RTX

2011-10-18 Thread Iyer, Balaji V
] Sent: Tuesday, October 18, 2011 12:47 AM To: Iyer, Balaji V Cc: 'gcc@gcc.gnu.org' Subject: Re: Function Name from CALL_INSN RTX "Iyer, Balaji V" writes: >Is it possible to extract the function name (as a tree or char *) > from a CALL_INSN RTX? Is there a #defi

Re: Function Name from CALL_INSN RTX

2011-10-17 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: >Is it possible to extract the function name (as a tree or char *) > from a CALL_INSN RTX? Is there a #define or a series of #defines that can > accomplish this? Not always, of course. A call through a function pointer has no name. The function get_callee_f

Function Name from CALL_INSN RTX

2011-10-17 Thread Iyer, Balaji V
Hello Everyone, Is it possible to extract the function name (as a tree or char *) from a CALL_INSN RTX? Is there a #define or a series of #defines that can accomplish this? The tried to find this information by stepping through the print_rtx function using gdb and the inf