From: <dav...@in...> - 2010-06-09 08:22:05
|
Hi, This is my first post here, I am David Yuste and I am going to work on gcc4cli at Irisa's Alf group. I did a patch to get the CIL trees printed when compiling with -fdump-tree-all, and also to be able to print the tree when debugging. It introduces the properties PROP_cil, which is provided by the pass gimple2cil and, now, it is required by all the subsequent cil-passes. At debug time you can use the functions defined at gcc/gcc/config/cil32/cil-dump.c (I modified the names to make it cil specific, without introducing confusion): void dump_cil_function_to_file (tree fn, FILE *file, int flags); void dump_cil_stmt (FILE * file, const_cil_stmt stmt, cil_stack stack); void dump_cil_label_name (FILE *, const_tree); void dump_cil_decl_name (FILE *, const_tree); void dump_cil_valuetype_name (FILE *, const_tree); void dump_cil_fun_signature (FILE *, const_tree); void dump_cil_type (FILE *, const_tree type); The path modifies passes.c and tree-pass.h (in addition to some cil files) Regards David Yuste |