From 904dc50ef1cef7436fdb97d28d0403f99b11b7d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Mon, 14 Jun 2004 13:02:03 +0000 Subject: [PATCH] bugfixesbug [r3073] --- ir/ana/irouts.c | 5 +++-- ir/ana/rta.c | 13 ++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ir/ana/irouts.c b/ir/ana/irouts.c index a16fbb31a..d202175d9 100644 --- a/ir/ana/irouts.c +++ b/ir/ana/irouts.c @@ -33,6 +33,7 @@ without public access routine */ #include "irprog_t.h" #include "irgwalk.h" +#include "string.h" /**********************************************************************/ /** Accessing the out datastructures **/ @@ -465,7 +466,7 @@ void free_ip_outs(void) void free_outs(ir_graph *irg) { -/* current_ir_graph->outs_state = no_outs; */ + /* current_ir_graph->outs_state = no_outs; */ irg->outs_state = no_outs; if (irg->outs) { @@ -475,5 +476,5 @@ void free_outs(ir_graph *irg) { irg->n_outs = 0; } - irg_walk (get_irg_end_block (irg), reset_outs, NULL, NULL); + //irg_walk_graph (irg, reset_outs, NULL, NULL); } diff --git a/ir/ana/rta.c b/ir/ana/rta.c index fc721be0c..373ddf6c6 100644 --- a/ir/ana/rta.c +++ b/ir/ana/rta.c @@ -54,7 +54,7 @@ static eset *_dead_graphs = NULL; /* now the meat */ -static void init_tables () +static void init_tables (void) { _live_classes = eset_create (); _live_fields = eset_create (); @@ -70,7 +70,6 @@ static void init_tables () if (get_glob_type ()) { eset_insert (_live_classes, get_glob_type ()); } - } /** @@ -129,8 +128,9 @@ Traverse the given graph to collect method and field accesses and object allocat static void rta_fill_graph (ir_graph* graph) { if (NULL != graph) { - if (NULL != get_irg_end_block (graph)) { - irg_walk (get_irg_end_block (graph), rta_act, NULL, NULL); + if (NULL != get_irg_end (graph)) { + current_ir_graph = graph; + irg_walk (get_irg_end (graph), rta_act, NULL, NULL); } } } @@ -348,7 +348,7 @@ static int has_live_class (entity *method, ir_graph *graph) return (has_class); } -static int stats () +static int stats (void) { int i; int n_live_graphs = 0; @@ -458,6 +458,9 @@ int rta_is_alive_field (entity *field) /* * $Log$ + * Revision 1.6 2004/06/14 13:02:03 goetz + * bugfixesbug + * * Revision 1.5 2004/06/13 15:03:45 liekweg * RTA auf Iterative RTA aufgebohrt --flo * -- 2.20.1