This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
expand_expr question
- From: Roman Bruggisser <roman dot bruggisser at gmx dot net>
- To: gcc-help at gnu dot org
- Date: Tue, 11 Jun 2002 18:08:45 +0200 (MEST)
- Subject: 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