Re: Expression with 2 operations

2007-05-05 Thread antoine . eiche
Quoting Tom Tromey [EMAIL PROTECTED]: Antoine == Antoine Eiche [EMAIL PROTECTED] writes: Without more information I don't know how to answer your question. But I do have a question for you... Antoine I must calculate the address of an element's array. Antoine If the size of an element is one

Expression with 2 operations

2007-05-03 Thread Antoine Eiche
Dear all, I must calculate the address of an element's array. If the size of an element is one integer it's good. I do like that: new_rhs=fold_build2(PLUS_EXPR,TREE_TYPE(TREE_OPERAND(rhs,1)), build1(ADDR_EXPR, build_pointer_type (TREE_TYPE (array)),array),

Re: Creating parameters for functions calls

2007-03-30 Thread Antoine Eiche
Daniel Berlin wrote: On 3/27/07, Antoine Eiche [EMAIL PROTECTED] wrote: Dear all, I want to insert functions calls during a new pass. Which version of GCC? The problem is to create parameters. At this time, I successfully create a function call with two constante as parameter and insert

Re: Creating parameters for functions calls

2007-03-30 Thread Antoine Eiche
Daniel Berlin wrote: On 3/30/07, Antoine Eiche [EMAIL PROTECTED] wrote: Daniel Berlin wrote: On 3/27/07, Antoine Eiche [EMAIL PROTECTED] wrote: Dear all, I want to insert functions calls during a new pass. Which version of GCC? The problem is to create parameters. At this time, I

Re: Creating parameters for functions calls

2007-03-28 Thread Antoine Eiche
Thx for your answer, But I believe the problem is not the contruction of the parameters of the function, but the construction of the adress of an array and give it at a function call. Maybe, I don't say good my problem in my previous mail. Example: If I have an array A in a source code, I

Creating parameters for functions calls

2007-03-27 Thread Antoine Eiche
Dear all, I want to insert functions calls during a new pass. The problem is to create parameters. At this time, I successfully create a function call with two constante as parameter and insert it (I can see that in the asm's code). But, I want to give the address of an array and a constante