This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

expand_expr question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]