From 4d8acf1f63d684242bdc304c81609e52a03087c0 Mon Sep 17 00:00:00 2001 From: Boris Boesler Date: Wed, 12 Mar 2003 10:53:26 +0000 Subject: [PATCH] *** empty log message *** [r872] --- ir/ir/irmode.c | 2 +- ir/tv/Makefile.in | 3 ++- ir/tv/tv.c | 9 +++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ir/ir/irmode.c b/ir/ir/irmode.c index 05bebf6f5..844e38c01 100644 --- a/ir/ir/irmode.c +++ b/ir/ir/irmode.c @@ -12,7 +12,7 @@ #endif # include "irmode_t.h" -# include +# include # include # include # include "tv.h" diff --git a/ir/tv/Makefile.in b/ir/tv/Makefile.in index 788c50ee9..6815cd3fb 100644 --- a/ir/tv/Makefile.in +++ b/ir/tv/Makefile.in @@ -19,7 +19,8 @@ SOURCES += Makefile.in ieee754.h tv.c tv_t.h include $(topdir)/MakeRules CPPFLAGS += -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/adt \ - -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/debug + -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/debug \ + -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/ana include $(top_srcdir)/MakeTargets diff --git a/ir/tv/tv.c b/ir/tv/tv.c index 657efe4ff..bb1c94353 100644 --- a/ir/tv/tv.c +++ b/ir/tv/tv.c @@ -48,6 +48,7 @@ #include "entity_t.h" #include "ident_t.h" #include "irmode.h" +#include "irnode.h" static struct obstack tv_obst; /* obstack for all the target values */ static pset *tarvals; /* pset containing pointers to _all_ tarvals */ @@ -190,8 +191,9 @@ _tarval_vrfy (const tarval *val) case irm_U: break; case irm_P: - if (val->u.P.ent) + if (val->u.P.ent) { assert (val->u.P.ent->kind == k_entity); + } assert ( val->u.P.xname || val->u.P.ent || !tarval_P_void || (val == tarval_P_void)); break; @@ -199,6 +201,7 @@ _tarval_vrfy (const tarval *val) assert ((unsigned)val->u.b <= 1); break; default: assert (val->mode == mode_T); + break; } } #endif @@ -597,6 +600,7 @@ tarval_P_from_entity (entity *ent) tarval *tv; assert (!BUILDING); + //assert(ent && "no entity given"); tv = (tarval *)obstack_alloc (&tv_obst, sizeof (tarval)); @@ -1458,6 +1462,7 @@ free_tv_entity(entity *ent) { //} } // pset_break(tarvals); - if (found) + if (found) { pset_remove(tarvals, found, tarval_hash(found)); + } } -- 2.20.1