From: hwloidl Date: Fri, 14 Jan 2000 13:17:16 +0000 (+0000) Subject: [project @ 2000-01-14 13:17:15 by hwloidl] X-Git-Tag: Approximately_9120_patches~5292 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=80e3fcf33425c5bc9164694df2dec7c79730f076;p=ghc-hetmet.git [project @ 2000-01-14 13:17:15 by hwloidl] Minor cleanup to get rid of warnings. --- diff --git a/ghc/rts/GC.c b/ghc/rts/GC.c index 3665034..22e3a9c 100644 --- a/ghc/rts/GC.c +++ b/ghc/rts/GC.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: GC.c,v 1.69 2000/01/13 14:34:02 hwloidl Exp $ + * $Id: GC.c,v 1.70 2000/01/14 13:17:15 hwloidl Exp $ * * (c) The GHC Team 1998-1999 * @@ -937,15 +937,6 @@ MarkRoot(StgClosure *root) return evacuate(root); } -//@cindex MarkRootHWL -StgClosure * -MarkRootHWL(StgClosure *root) -{ - StgClosure *new = evacuate(root); - upd_evacuee(root, new); - return new; -} - //@cindex addBlock static void addBlock(step *step) { @@ -1189,9 +1180,6 @@ evacuate(StgClosure *q) step *step; const StgInfoTable *info; - nat size, ptrs, nonptrs, vhs; - char str[80]; - loop: if (HEAP_ALLOCED(q)) { bd = Bdescr((P_)q); @@ -2724,17 +2712,15 @@ scavenge_stack(StgPtr p, StgPtr stack_end) case CATCH_FRAME: case SEQ_FRAME: { - StgPtr old_p = p; // debugging only -- HWL + // StgPtr old_p = p; // debugging only -- HWL /* stack frames like these are ordinary closures and therefore may contain setup-specific fixed-header words (as in GranSim!); therefore, these cases should not use p++ but &(p->payload) -- HWL */ - IF_DEBUG(gran, IF_DEBUG(sanity, printObj(p))); + // IF_DEBUG(gran, IF_DEBUG(sanity, printObj(p))); bitmap = info->layout.bitmap; p = (StgPtr)&(((StgClosure *)p)->payload); - IF_DEBUG(sanity, - belch("HWL: scavenge_stack: (STOP|CATCH|SEQ)_FRAME adjusting p from %p to %p (instead of %p)", - old_p, p, old_p+1)); + // IF_DEBUG(sanity, belch("HWL: scavenge_stack: (STOP|CATCH|SEQ)_FRAME adjusting p from %p to %p (instead of %p)", old_p, p, old_p+1)); goto small_bitmap; } case RET_BCO: @@ -3148,7 +3134,7 @@ threadSqueezeStack(StgTSO *tso) frame = prev_frame; #if DEBUG IF_DEBUG(sanity, - if (!(frame>=top_frame && frame<=bottom)) { + if (!(frame>=top_frame && frame<=(StgUpdateFrame *)bottom)) { printObj((StgClosure *)prev_frame); barf("threadSqueezeStack: current frame is rubbish %p; previous was %p\n", frame, prev_frame); @@ -3356,7 +3342,6 @@ threadPaused(StgTSO *tso) void printMutOnceList(generation *gen) { - const StgInfoTable *info; StgMutClosure *p, *next, *new_list; p = gen->mut_once_list; @@ -3378,7 +3363,6 @@ printMutOnceList(generation *gen) void printMutableList(generation *gen) { - const StgInfoTable *info; StgMutClosure *p, *next; p = gen->saved_mut_list; diff --git a/ghc/rts/Main.c b/ghc/rts/Main.c index 1c721b7..8dc044a 100644 --- a/ghc/rts/Main.c +++ b/ghc/rts/Main.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Main.c,v 1.14 2000/01/13 14:34:03 hwloidl Exp $ + * $Id: Main.c,v 1.15 2000/01/14 13:17:16 hwloidl Exp $ * * (c) The GHC Team 1998-1999 * @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) { /* a wait loop to allow attachment of gdb to UNIX threads */ nat i, j, s; - for (i=0, s=0; ilink) { ASSERT(tso!=(StgTSO*)NULL && tso!=END_TSO_QUEUE); // sanity check ASSERT(get_itbl(tso)->type == TSO); // guess what, sanity check - fprintf(stderr," TSO %d (%x),", tso->id, tso); + fprintf(stderr," TSO %d (%p),", tso->id, tso); } fputc('\n', stderr); } @@ -2807,17 +2808,6 @@ print_bq (StgClosure *node) /* A debugging function used all over the place in GranSim and GUM. Dummy function in other setups. */ -# if !defined(GRAN) && !defined(PAR) -char * -info_type(StgClosure *closure){ - return "petaQ"; -} - -char * -info_type_by_ip(StgInfoTable *ip){ - return "petaQ"; -} -#endif static void sched_belch(char *s, ...)