X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fana2%2Firmemwalk.c;h=6720d3028602c9e118b1fb3f285516e328c9b8b4;hb=f75c9d04c9b10670c0456bb61727f25ee7c2aac0;hp=d767ddeab2954b7e21b5556455f6eb3f0bec155e;hpb=ce5d9dc73c63ad316e53a2b7d4b943be3c5ac8df;p=libfirm diff --git a/ir/ana2/irmemwalk.c b/ir/ana2/irmemwalk.c index d767ddeab..6720d3028 100644 --- a/ir/ana2/irmemwalk.c +++ b/ir/ana2/irmemwalk.c @@ -41,7 +41,8 @@ /** environment for a single memory walker */ typedef struct walk_mem_env_str { ir_graph *graph; /**< the graph we're visiting */ - unsigned long visited; /**< 'visited' marker */ + unsigned long visited; /**< 'visited' marker + (unsigned long in case we walk more than 2^32 graphs) */ irg_walk_func *pre; /**< pre action */ irg_walk_func *post; /**< post action */ void *env; /**< user-defined environment */ @@ -177,7 +178,8 @@ static void irg_walk_mem_node (ir_node *node, } } break; default: { - fprintf (stderr, "irg_walk_mem_node(): not handled: node[%li].op = %s\n", + fprintf (stderr, "%s: not handled: node[%li].op = %s\n", + __FUNCTION__, get_irn_node_nr (node), get_op_name (get_irn_op (node))); @@ -261,6 +263,12 @@ void irg_walk_mem (ir_graph *graph, /* $Log$ + Revision 1.9 2005/01/10 17:26:34 liekweg + fixup printfs, don't put environments on the stack + + Revision 1.8 2004/12/22 14:43:14 beck + made allocations C-like + Revision 1.7 2004/12/21 14:25:35 beck removed C99 constructs make visit counter of same type as irn visit counter