expand_expr question
Roman Bruggisser
roman.bruggisser@gmx.net
Tue Jun 11 09:09:00 GMT 2002
Hi there
I added an attribute to the i386 target with two function pointers as
arguments. Now I have to expand and output the assembly code for the functions. I
get this arguments with the following code:
tree attrs;
tree arg1;
tree arg2;
attr = lookup_attribute ("myAttr", DECL_ATTRIBUTES (current_function_decl));
arg1 = TREE_VALUE (TREE_VALUE (attr)); // returns an IDENTIFIER_NODE
arg2 = TREE_VALUE (TREE_CHAIN (TREE_VALUE (attr))); // returns a
FUNCTION_DECL
How I have to expand and output the assembly code for this functions? A
direct call to expand_expr with the IDENTIFIER_NODE or the FUNCTION_DECL fails.
Thanks for help
Roman
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
More information about the Gcc-help
mailing list