diff --git a/mps/code/comm.gmk b/mps/code/comm.gmk index e8590cb1f38..abc9c5a3025 100644 --- a/mps/code/comm.gmk +++ b/mps/code/comm.gmk @@ -401,7 +401,7 @@ $(PFM)/$(VARIETY)/fotest: $(PFM)/$(VARIETY)/fotest.o \ $(TESTLIBOBJ) $(PFM)/$(VARIETY)/mps.a $(PFM)/$(VARIETY)/gcbench: $(PFM)/$(VARIETY)/gcbench.o \ - $(TESTLIBOBJ) $(PFM)/$(VARIETY)/mps.a + $(FMTDYTSTOBJ) $(TESTLIBOBJ) $(PFM)/$(VARIETY)/mps.a $(PFM)/$(VARIETY)/locbwcss: $(PFM)/$(VARIETY)/locbwcss.o \ $(TESTLIBOBJ) $(PFM)/$(VARIETY)/mps.a diff --git a/mps/code/djbench.c b/mps/code/djbench.c index d81832500ff..a4fb093a7f6 100644 --- a/mps/code/djbench.c +++ b/mps/code/djbench.c @@ -123,8 +123,8 @@ DJRUN(dj_alloc, MPS_ALLOC, MPS_FREE) #define RESERVE_ALLOC(p, s) \ do { \ size_t _s = ALIGN_UP(s, (size_t)MPS_PF_ALIGN); \ - mps_reserve(&p, ap, _s); \ - mps_commit(ap, p, _s); \ + (void)mps_reserve(&p, ap, _s); \ + (void)mps_commit(ap, p, _s); \ } while(0) #define RESERVE_FREE(p, s) do { mps_free(pool, p, s); } while(0) diff --git a/mps/code/gcbench.c b/mps/code/gcbench.c index 7e0ccbfb323..5c01ba5d986 100644 --- a/mps/code/gcbench.c +++ b/mps/code/gcbench.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include "getopt.h" #include "testlib.h" @@ -219,16 +218,16 @@ static void weave1(gcthread_fn_t fn) static void watch(gcthread_fn_t fn, const char *name) { - clock_t start, finish; + clock_t begin, end; - start = clock(); + begin = clock(); if (nthreads == 1) weave1(fn); else weave(fn); - finish = clock(); + end = clock(); - printf("%s: %g\n", name, (double)(finish - start) / CLOCKS_PER_SEC); + printf("%s: %g\n", name, (double)(end - begin) / CLOCKS_PER_SEC); }