help:how to get the Nth argument stmt from CALL_EXPR stmt tree

alert7 bugs@whitecell.org
Mon Jul 11 06:23:00 GMT 2005


Daniel Berlin,您好!

	
	given

int a1,a2,a3,a4;
	a1 = 1 ;
	a2 = 2 ;
	a3 = 3 ;
 	a4 = 4 ;
	foo(a1+a2,a3+a4);

	I want get foo function first argument stmt tree--(a1+a2). then look the argument stmt tree OPERAND to find a1 and a2 variable.

	kind enough to give me any suggestions  ,thanks

======= 2005-07-06 11:40:00 您在来信中写道:=======
>
>i'm not sure i understand.
>
>do you want to get, given
>
>a_5 = 69
>foo(a_5)
>
>the a_5 = 69 part?
>Or a pointer a_5 inside the call to foo(..)
>
>
>
>


= = = = = = = = = = = = = = = = = = = =
			


				
        alert7
        bugs@whitecell.org
          2005-07-11





More information about the Gcc mailing list