From: Götz Lindenmaier Date: Thu, 30 Jan 2003 11:29:09 +0000 (+0000) Subject: removed warnings X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f57a7ef2f9c161fc1815dd10098d61bb4259eb5f;p=libfirm removed warnings [r674] --- diff --git a/ir/adt/eset.h b/ir/adt/eset.h index 831fb847f..8cc569646 100644 --- a/ir/adt/eset.h +++ b/ir/adt/eset.h @@ -44,7 +44,9 @@ bool eset_contains(eset *, void *); * keine weiteren Adressen in der Menge sind, geben die Funktionen * "NULL" zurück. Warnung: Man sollte deshalb "NULL" nicht in der * Menge speichern, weil man sonst nicht durch die Menge iterieren - * kann. */ + * kann. + * ACHTUNG: Waehrend dem iterieren darf man keine neuen Elemente + * einfuergen!! */ void * eset_first(eset *); void * eset_next(eset *); diff --git a/ir/ana/irbackedge.c b/ir/ana/irbackedge.c index dcd024b13..0b3bc8219 100644 --- a/ir/ana/irbackedge.c +++ b/ir/ana/irbackedge.c @@ -24,6 +24,7 @@ static INLINE int *mere_get_backarray(ir_node *n) { switch(get_irn_opcode(n)) { case iro_Block: + if (!get_Block_matured(n)) return NULL; if (interprocedural_view && n->attr.block.in_cg) { assert(n->attr.block.cg_backedge && "backedge array not allocated!"); return n->attr.block.cg_backedge; diff --git a/ir/ana/irscc.c b/ir/ana/irscc.c index 3080488c7..bf4da206a 100644 --- a/ir/ana/irscc.c +++ b/ir/ana/irscc.c @@ -241,7 +241,6 @@ static ir_loop *new_loop (void) { of current_ir_graph. */ static void mature_loop (ir_loop *loop) { ir_loop **new_sons; - ir_node **new_nods; new_sons = NEW_ARR_D (ir_loop *, current_ir_graph->obst, ARR_LEN(loop->sons)); memcpy (new_sons, loop->sons, sizeof (ir_loop *) * ARR_LEN(loop->sons)); @@ -309,7 +308,6 @@ ir_loop *get_irg_loop(ir_graph *irg) { static INLINE void init_node (ir_node *n, void *env) { - int i; set_irn_link (n, new_scc_info()); clear_backedges(n); #if 0 diff --git a/ir/ident/ident.c b/ir/ident/ident.c index cb3b0825a..cd15a3a58 100644 --- a/ir/ident/ident.c +++ b/ir/ident/ident.c @@ -29,13 +29,7 @@ /* Vormals Debugunterstuetzung, entfernt (debug.h). */ # define ID_VRFY(id) ((void)0) - -#ifdef NDEBUG # define IDS_VRFY(id) ((void)0) -#else -# define IDS_VRFY(id) ids_vrfy ((id)) -static void ids_vrfy (ident **id); -#endif #ifdef STATS # define id_stats() set_stats (id_set) @@ -65,7 +59,6 @@ new_id_derived (const char *pfx, ident *id) return ID_FROM_STR (str, pfx_len + ID_TO_STRLEN (id)); } - static ident * new_id_internal (void) { @@ -92,19 +85,6 @@ id_is_internal (ident *id) } #endif -#ifndef NDEBUG - -static void -ids_vrfy (ident **id) -{ - int i; - - for (i = 0; i < ARR_LEN (id); ++i) { - ID_VRFY (id[i]); - } -} - -#endif int ident_print (XP_PAR1, const xprintf_info *info ATTRIBUTE((unused)), XP_PARN)