_On 11-Mar-2005 02:48, James E Wilson san wrote_:
Is expression evaluation (expr.c, expand_expr_real) converting tree into RTL, the right place to extend GCC as required?
Basically, yes. However, variables declarations are typically handled separately from the expression, so if you want to retain info about variables, you need to do it elsewhere, when the variable's DECL_RTL is generated. Globals are handled differently than locals, but probably only globals matter, in which case you should see make_decl_rtl and encode_section_info.
Also, note, in current sources, this stuff is all different, because the tree to RTL expander has been replaced with tree to gimple to RTL expander. So what you are doing is probably of no long term use.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com