diff options
| author | Richard Brooksby | 2012-09-03 00:29:21 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-03 00:29:21 +0100 |
| commit | 369994f49f8955b0d4b5353e4ec92b49a46a02b9 (patch) | |
| tree | 00488366c7dd840c36d1ee2524f30d490656e152 /mps/code | |
| parent | ad6b08eecbde32eba1b15f7d832f671f8afe0b18 (diff) | |
| download | emacs-369994f49f8955b0d4b5353e4ec92b49a46a02b9.tar.gz emacs-369994f49f8955b0d4b5353e4ec92b49a46a02b9.zip | |
Fixing up warnings caused by higher levels of optimisation.
Copied from Perforce
Change: 179178
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/comm.gmk | 8 | ||||
| -rw-r--r-- | mps/code/dbgpool.c | 2 | ||||
| -rw-r--r-- | mps/code/fri3gc.gmk | 6 | ||||
| -rw-r--r-- | mps/code/poolams.c | 2 |
4 files changed, 6 insertions, 12 deletions
diff --git a/mps/code/comm.gmk b/mps/code/comm.gmk index 98f19aa0958..5e606fc09b9 100644 --- a/mps/code/comm.gmk +++ b/mps/code/comm.gmk | |||
| @@ -202,7 +202,7 @@ all: mpmss sacss amcss amcsshe amsss amssshe segsmss awlut awluthe \ | |||
| 202 | mpsicv lockcov poolncv locv qs apss \ | 202 | mpsicv lockcov poolncv locv qs apss \ |
| 203 | finalcv finaltest arenacv bttest teletest \ | 203 | finalcv finaltest arenacv bttest teletest \ |
| 204 | abqtest cbstest btcv mv2test messtest steptest \ | 204 | abqtest cbstest btcv mv2test messtest steptest \ |
| 205 | walkt0 libcbt zcoll zmess \ | 205 | walkt0 zcoll zmess \ |
| 206 | eventcnv \ | 206 | eventcnv \ |
| 207 | mps.a mpsplan.a | 207 | mps.a mpsplan.a |
| 208 | 208 | ||
| @@ -227,7 +227,6 @@ mpmss sacss amcss amcssth amcsshe amsss amssshe segsmss awlut awlutth \ | |||
| 227 | awluthe mpsicv lockcov poolncv locv qs apss \ | 227 | awluthe mpsicv lockcov poolncv locv qs apss \ |
| 228 | finalcv finaltest arenacv bttest teletest \ | 228 | finalcv finaltest arenacv bttest teletest \ |
| 229 | expt825 \ | 229 | expt825 \ |
| 230 | libcbt \ | ||
| 231 | abqtest cbstest btcv mv2test \ | 230 | abqtest cbstest btcv mv2test \ |
| 232 | messtest steptest \ | 231 | messtest steptest \ |
| 233 | walkt0 \ | 232 | walkt0 \ |
| @@ -291,11 +290,6 @@ $(PFM)/$(VARIETY)/finaltest: $(PFM)/$(VARIETY)/finaltest.o \ | |||
| 291 | $(PFM)/$(VARIETY)/expt825: $(PFM)/$(VARIETY)/expt825.o \ | 290 | $(PFM)/$(VARIETY)/expt825: $(PFM)/$(VARIETY)/expt825.o \ |
| 292 | $(FMTDYTSTOBJ) $(MPMOBJ) $(PLINTHOBJ) $(AMCOBJ) $(TESTLIBOBJ) | 291 | $(FMTDYTSTOBJ) $(MPMOBJ) $(PLINTHOBJ) $(AMCOBJ) $(TESTLIBOBJ) |
| 293 | 292 | ||
| 294 | $(PFM)/$(VARIETY)/libcbt: $(PFM)/$(VARIETY)/libcbt.o \ | ||
| 295 | $(PFM)/$(VARIETY)/mpslibcb.o \ | ||
| 296 | $(PFM)/$(VARIETY)/mpsioan.o \ | ||
| 297 | $(MPMOBJ) $(TESTLIBOBJ) | ||
| 298 | |||
| 299 | $(PFM)/$(VARIETY)/locv: $(PFM)/$(VARIETY)/locv.o \ | 293 | $(PFM)/$(VARIETY)/locv: $(PFM)/$(VARIETY)/locv.o \ |
| 300 | $(MPMOBJ) $(PLINTHOBJ) $(LOOBJ) $(TESTLIBOBJ) | 294 | $(MPMOBJ) $(PLINTHOBJ) $(LOOBJ) $(TESTLIBOBJ) |
| 301 | 295 | ||
diff --git a/mps/code/dbgpool.c b/mps/code/dbgpool.c index 765372fae64..c7978249596 100644 --- a/mps/code/dbgpool.c +++ b/mps/code/dbgpool.c | |||
| @@ -472,7 +472,7 @@ static Res DebugPoolAlloc(Addr *aReturn, | |||
| 472 | Pool pool, Size size, Bool withReservoir) | 472 | Pool pool, Size size, Bool withReservoir) |
| 473 | { | 473 | { |
| 474 | Res res; | 474 | Res res; |
| 475 | Addr new; | 475 | Addr new = NULL; /* suppress "may be used uninitialized" warning */ |
| 476 | PoolDebugMixin debug; | 476 | PoolDebugMixin debug; |
| 477 | 477 | ||
| 478 | AVER(aReturn != NULL); | 478 | AVER(aReturn != NULL); |
diff --git a/mps/code/fri3gc.gmk b/mps/code/fri3gc.gmk index 32f4496de6e..17ce26833a0 100644 --- a/mps/code/fri3gc.gmk +++ b/mps/code/fri3gc.gmk | |||
| @@ -15,9 +15,9 @@ LIBS = -lm -pthread | |||
| 15 | 15 | ||
| 16 | include gc.gmk | 16 | include gc.gmk |
| 17 | 17 | ||
| 18 | CFLAGSCOMPILER := $(subst -pedantic,,$(CFLAGSCOMPILER)) | 18 | # FIXME: We pun types through the MPS interface, setting off this warning. |
| 19 | CFLAGSDEBUG = -g3 | 19 | # Can we avoid this? The puns might indeed be dangerous. |
| 20 | CFLAGSOPT = -O -g3 | 20 | CFLAGSCOMPILER := $(CFLAGSCOMPILER) -Wno-strict-aliasing |
| 21 | 21 | ||
| 22 | CC = cc | 22 | CC = cc |
| 23 | 23 | ||
diff --git a/mps/code/poolams.c b/mps/code/poolams.c index 4fbaba79b7d..f1ae7478bc3 100644 --- a/mps/code/poolams.c +++ b/mps/code/poolams.c | |||
| @@ -885,7 +885,7 @@ static Res AMSBufferFill(Addr *baseReturn, Addr *limitReturn, | |||
| 885 | AMS ams; | 885 | AMS ams; |
| 886 | Seg seg; | 886 | Seg seg; |
| 887 | Ring node, ring, nextNode; /* for iterating over the segments */ | 887 | Ring node, ring, nextNode; /* for iterating over the segments */ |
| 888 | Index base, limit; | 888 | Index base = 0, limit = 0; /* suppress "may be used uninitialized" */ |
| 889 | Addr baseAddr, limitAddr; | 889 | Addr baseAddr, limitAddr; |
| 890 | RankSet rankSet; | 890 | RankSet rankSet; |
| 891 | Bool b; /* the return value of amsSegAlloc */ | 891 | Bool b; /* the return value of amsSegAlloc */ |