Re: How to get attribute of callee

2010-10-04 Thread Georg Lay
Phung Nguyen schrieb: > Dear Georg, > > Thank you for your help. > > I have a problem after I follow your way. When I compile newlib with > the modified (in the way you did in blackfin) way, I got the error > message: > In function "fopencookie":newlib/libc/stdio/fopencookie.c: 261: error, > insn

Re: How to get attribute of callee

2010-09-03 Thread Georg Lay
Phung Nguyen schrieb: > Thank you for your reply, > > As I know, operand 0 of call is the address of called function; > operand 1 is the number of arguments; operand 2 is the number of args > as registers. Therefore, where is the info passed to call ??? As I > would like to change the target instr

Re: How to get attribute of callee

2010-09-02 Thread Phung Nguyen
Thank you for your reply, As I know, operand 0 of call is the address of called function; operand 1 is the number of arguments; operand 2 is the number of args as registers. Therefore, where is the info passed to call ??? As I would like to change the target instruction of call based on the attrib

Re: How to get attribute of callee

2010-09-02 Thread Phung Nguyen
Hi Jakub, Thank you for your help. For direct call, I solved the problem based on your suggestion. For indirect call, I don't understand much your idea. Could you please clarify it? Phung On Thu, Sep 2, 2010 at 7:59 PM, Jakub Jelinek wrote: > On Thu, Sep 02, 2010 at 07:18:29PM +0700, Phung Ngu

Re: How to get attribute of callee

2010-09-02 Thread Jakub Jelinek
On Thu, Sep 02, 2010 at 07:18:29PM +0700, Phung Nguyen wrote: > I am porting GCC to a new target. I don't know how to get attribute of > callee of a call. > > I defined a new attribute to assign to a function but when writing for > pattern name "call" or "call_value", I don't know how to know if t

Re: How to get attribute of callee

2010-09-02 Thread Georg Lay
Phung Nguyen schrieb: > Dear all, > > I am porting GCC to a new target. I don't know how to get attribute of > callee of a call. > > I defined a new attribute to assign to a function but when writing for > pattern name "call" or "call_value", I don't know how to know if the > callee is assigned t