diff options
| author | Richard Brooksby | 2012-09-03 13:32:11 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-03 13:32:11 +0100 |
| commit | 3ec3f57262fa3cb2ceed3b1be8dae787a8424075 (patch) | |
| tree | d817a2aae14caced4640830e6d5e7e89d35ad59b /mps/code | |
| parent | d3aacdebfc18450b32531dadf7d9c2d4091faba6 (diff) | |
| download | emacs-3ec3f57262fa3cb2ceed3b1be8dae787a8424075.tar.gz emacs-3ec3f57262fa3cb2ceed3b1be8dae787a8424075.zip | |
Renaming varieties we to rash and di to diag. leaving ti alone as it will be deleted shortly in merge with diagnostic-telemetry branch.
Copied from Perforce
Change: 179193
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/check.h | 2 | ||||
| -rw-r--r-- | mps/code/comm.gmk | 22 | ||||
| -rw-r--r-- | mps/code/commpost.nmk | 2 | ||||
| -rw-r--r-- | mps/code/commpre.nmk | 12 | ||||
| -rw-r--r-- | mps/code/config.h | 12 |
5 files changed, 25 insertions, 25 deletions
diff --git a/mps/code/check.h b/mps/code/check.h index d338fb0fa5a..d5209cf7945 100644 --- a/mps/code/check.h +++ b/mps/code/check.h | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | * without realising it. This has happened before. Eyeball the preprocessor | 23 | * without realising it. This has happened before. Eyeball the preprocessor |
| 24 | * output for each variety. For example: | 24 | * output for each variety. For example: |
| 25 | * | 25 | * |
| 26 | * cc -E -DCONFIG_VAR_WE trace.c | 26 | * cc -E -DCONFIG_VAR_RASH trace.c |
| 27 | * cc -E -DCONFIG_VAR_HOT trace.c | 27 | * cc -E -DCONFIG_VAR_HOT trace.c |
| 28 | * cc -E -DCONFIG_VAR_COOL trace.c | 28 | * cc -E -DCONFIG_VAR_COOL trace.c |
| 29 | * | 29 | * |
diff --git a/mps/code/comm.gmk b/mps/code/comm.gmk index 5d9d9c32ae8..bdb37556c9c 100644 --- a/mps/code/comm.gmk +++ b/mps/code/comm.gmk | |||
| @@ -97,22 +97,22 @@ CFLAGSCOMMON = $(PFMDEFS) $(CFLAGSCOMPILER) | |||
| 97 | # variety. | 97 | # variety. |
| 98 | 98 | ||
| 99 | # These flags are added to compilations for the indicated variety. | 99 | # These flags are added to compilations for the indicated variety. |
| 100 | CFWE = -DCONFIG_VAR_WE -DNDEBUG $(CFLAGSOPT) | 100 | CFRASH = -DCONFIG_VAR_RASH -DNDEBUG $(CFLAGSOPT) |
| 101 | CFHOT = -DCONFIG_VAR_HOT -DNDEBUG $(CFLAGSOPT) | 101 | CFHOT = -DCONFIG_VAR_HOT -DNDEBUG $(CFLAGSOPT) |
| 102 | CFDI = -DCONFIG_VAR_DI -DNDEBUG $(CFLAGSOPT) | 102 | CFDIAG = -DCONFIG_VAR_DIAG -DNDEBUG $(CFLAGSOPT) |
| 103 | CFCOOL = -DCONFIG_VAR_COOL $(CFLAGSDEBUG) | 103 | CFCOOL = -DCONFIG_VAR_COOL $(CFLAGSDEBUG) |
| 104 | CFTI = -DCONFIG_VAR_TI $(CFLAGSDEBUG) | 104 | CFTI = -DCONFIG_VAR_TI $(CFLAGSDEBUG) |
| 105 | 105 | ||
| 106 | # Bind CFLAGS to the appropriate set of flags for the variety. | 106 | # Bind CFLAGS to the appropriate set of flags for the variety. |
| 107 | # %%VARIETY: Add a test for the variety and set CFLAGS here. | 107 | # %%VARIETY: Add a test for the variety and set CFLAGS here. |
| 108 | ifeq ($(VARIETY),we) | 108 | ifeq ($(VARIETY),rash) |
| 109 | CFLAGS=$(CFLAGSCOMMON) $(CFWE) | 109 | CFLAGS=$(CFLAGSCOMMON) $(CFRASH) |
| 110 | else | 110 | else |
| 111 | ifeq ($(VARIETY),hot) | 111 | ifeq ($(VARIETY),hot) |
| 112 | CFLAGS=$(CFLAGSCOMMON) $(CFHOT) | 112 | CFLAGS=$(CFLAGSCOMMON) $(CFHOT) |
| 113 | else | 113 | else |
| 114 | ifeq ($(VARIETY),di) | 114 | ifeq ($(VARIETY),diag) |
| 115 | CFLAGS=$(CFLAGSCOMMON) $(CFDI) | 115 | CFLAGS=$(CFLAGSCOMMON) $(CFDIAG) |
| 116 | else | 116 | else |
| 117 | ifeq ($(VARIETY),cool) | 117 | ifeq ($(VARIETY),cool) |
| 118 | CFLAGS=$(CFLAGSCOMMON) $(CFCOOL) | 118 | CFLAGS=$(CFLAGSCOMMON) $(CFCOOL) |
| @@ -291,10 +291,10 @@ endif | |||
| 291 | # | 291 | # |
| 292 | # %%VARIETY: Add a rule for how to build the MPS library for the variety | 292 | # %%VARIETY: Add a rule for how to build the MPS library for the variety |
| 293 | 293 | ||
| 294 | $(PFM)/we/mps.a: $(PFM)/we/mps.o | 294 | $(PFM)/rash/mps.a: $(PFM)/rash/mps.o |
| 295 | $(PFM)/hot/mps.a: $(PFM)/hot/mps.o | 295 | $(PFM)/hot/mps.a: $(PFM)/hot/mps.o |
| 296 | 296 | ||
| 297 | $(PFM)/di/mps.a: \ | 297 | $(PFM)/diag/mps.a: \ |
| 298 | $(MPMOBJ) $(AMCOBJ) $(AMSOBJ) $(AWLOBJ) $(LOOBJ) $(SNCOBJ) \ | 298 | $(MPMOBJ) $(AMCOBJ) $(AMSOBJ) $(AWLOBJ) $(LOOBJ) $(SNCOBJ) \ |
| 299 | $(MVFFOBJ) $(PLINTHOBJ) $(POOLNOBJ) | 299 | $(MVFFOBJ) $(PLINTHOBJ) $(POOLNOBJ) |
| 300 | $(PFM)/cool/mps.a: \ | 300 | $(PFM)/cool/mps.a: \ |
diff --git a/mps/code/commpost.nmk b/mps/code/commpost.nmk index 0308ada12ab..568b914b8fe 100644 --- a/mps/code/commpost.nmk +++ b/mps/code/commpost.nmk | |||
| @@ -96,7 +96,7 @@ mpsicv.cov: | |||
| 96 | # | 96 | # |
| 97 | # %%VARIETY: Add a rule for how to build the MPS library for the variety | 97 | # %%VARIETY: Add a rule for how to build the MPS library for the variety |
| 98 | 98 | ||
| 99 | $(PFM)\we\mps.lib: $(PFM)\we\mps.obj | 99 | $(PFM)\rash\mps.lib: $(PFM)\rash\mps.obj |
| 100 | $(ECHO) $@ | 100 | $(ECHO) $@ |
| 101 | $(LIBMAN) $(LIBFLAGS) /OUT:$@ $** | 101 | $(LIBMAN) $(LIBFLAGS) /OUT:$@ $** |
| 102 | 102 | ||
diff --git a/mps/code/commpre.nmk b/mps/code/commpre.nmk index 16a10445ccc..08a3d02587d 100644 --- a/mps/code/commpre.nmk +++ b/mps/code/commpre.nmk | |||
| @@ -113,9 +113,9 @@ CFLAGSEXTERNAL = | |||
| 113 | 113 | ||
| 114 | # The combinations of variety | 114 | # The combinations of variety |
| 115 | # %%VARIETY: Define a macro containing the set of flags for the new variety. | 115 | # %%VARIETY: Define a macro containing the set of flags for the new variety. |
| 116 | CFWE = /DCONFIG_VAR_WE $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL) | 116 | CFRASH = /DCONFIG_VAR_RASH $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL) |
| 117 | CFHOT = /DCONFIG_VAR_HOT $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL) | 117 | CFHOT = /DCONFIG_VAR_HOT $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL) |
| 118 | CFDI = /DCONFIG_VAR_DI $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSINTERNAL) | 118 | CFDIAG = /DCONFIG_VAR_DIAG $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSINTERNAL) |
| 119 | CFCOOL = /DCONFIG_VAR_COOL $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL) | 119 | CFCOOL = /DCONFIG_VAR_COOL $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL) |
| 120 | CFTI = /DCONFIG_VAR_TI $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL) | 120 | CFTI = /DCONFIG_VAR_TI $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL) |
| 121 | 121 | ||
| @@ -130,9 +130,9 @@ LINKFLAGSINTERNAL = /DEBUG | |||
| 130 | # ( Internal flags used to be set to /DEBUG:full ) | 130 | # ( Internal flags used to be set to /DEBUG:full ) |
| 131 | LINKFLAGSEXTERNAL = /RELEASE | 131 | LINKFLAGSEXTERNAL = /RELEASE |
| 132 | 132 | ||
| 133 | LFWE = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL) | 133 | LFRASH = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL) |
| 134 | LFHOT = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL) | 134 | LFHOT = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL) |
| 135 | LFDI = $(LINKFLAGSHOT) $(LINKFLAGSINTERNAL) | 135 | LFDIAG = $(LINKFLAGSHOT) $(LINKFLAGSINTERNAL) |
| 136 | LFCOOL = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) | 136 | LFCOOL = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) |
| 137 | LFTI = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) | 137 | LFTI = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) |
| 138 | 138 | ||
| @@ -143,9 +143,9 @@ LFTI = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) | |||
| 143 | LIBMAN = lib # can't call this LIB - it screws the environment | 143 | LIBMAN = lib # can't call this LIB - it screws the environment |
| 144 | LIBFLAGSCOMMON = /nologo | 144 | LIBFLAGSCOMMON = /nologo |
| 145 | 145 | ||
| 146 | LIBFLAGSWE = | 146 | LIBFLAGSRASH = |
| 147 | LIBFLAGSHOT = | 147 | LIBFLAGSHOT = |
| 148 | LIBFLAGSDI = | 148 | LIBFLAGSDIAG = |
| 149 | LIBFLAGSCOOL = | 149 | LIBFLAGSCOOL = |
| 150 | LIBFLAGSTI = | 150 | LIBFLAGSTI = |
| 151 | 151 | ||
diff --git a/mps/code/config.h b/mps/code/config.h index 41c092fc070..8920274e83e 100644 --- a/mps/code/config.h +++ b/mps/code/config.h | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | the directives CONFIG_ASSERT, CONFIG_STATS, CONFIG_LOG, etc. which control | 25 | the directives CONFIG_ASSERT, CONFIG_STATS, CONFIG_LOG, etc. which control |
| 26 | actual compilation features. */ | 26 | actual compilation features. */ |
| 27 | 27 | ||
| 28 | /* CONFIG_VAR_WE -- the white-hot variety | 28 | /* CONFIG_VAR_RASH -- the rash and reckless variety |
| 29 | * | 29 | * |
| 30 | * This variety switches off as many features as possible for maximum | 30 | * This variety switches off as many features as possible for maximum |
| 31 | * performance, but is therefore unsafe and undebuggable. It is not intended | 31 | * performance, but is therefore unsafe and undebuggable. It is not intended |
| @@ -33,7 +33,7 @@ | |||
| 33 | * logging, etc. have negligible overhead. | 33 | * logging, etc. have negligible overhead. |
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | #if defined(CONFIG_VAR_WE) /* White-hot variety */ | 36 | #if defined(CONFIG_VAR_RASH) |
| 37 | /* no asserts */ | 37 | /* no asserts */ |
| 38 | /* no statistic meters */ | 38 | /* no statistic meters */ |
| 39 | /* no telemetry log events */ | 39 | /* no telemetry log events */ |
| @@ -46,7 +46,7 @@ | |||
| 46 | * consistency checking and allowing some debugging and telemetry features. | 46 | * consistency checking and allowing some debugging and telemetry features. |
| 47 | */ | 47 | */ |
| 48 | 48 | ||
| 49 | #elif defined(CONFIG_VAR_HOT) /* Hot variety */ | 49 | #elif defined(CONFIG_VAR_HOT) |
| 50 | #define CONFIG_ASSERT | 50 | #define CONFIG_ASSERT |
| 51 | #ifndef CHECKLEVEL | 51 | #ifndef CHECKLEVEL |
| 52 | #define CHECKLEVEL CheckLevelMINIMAL | 52 | #define CHECKLEVEL CheckLevelMINIMAL |
| @@ -55,14 +55,14 @@ | |||
| 55 | /* no telemetry log events */ | 55 | /* no telemetry log events */ |
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | /* CONFIG_VAR_DI -- diagnostic variety | 58 | /* CONFIG_VAR_DIAG -- diagnostic variety |
| 59 | * | 59 | * |
| 60 | * Deprecated. The diagnostic variety prints messages about the internals | 60 | * Deprecated. The diagnostic variety prints messages about the internals |
| 61 | * of the MPS to an output stream. This is being replaced by an extended | 61 | * of the MPS to an output stream. This is being replaced by an extended |
| 62 | * telemetry system. RB 2012-08-31 | 62 | * telemetry system. RB 2012-08-31 |
| 63 | */ | 63 | */ |
| 64 | 64 | ||
| 65 | #elif defined(CONFIG_VAR_DI) /* Diagnostic variety */ | 65 | #elif defined(CONFIG_VAR_DIAG) /* Diagnostic variety */ |
| 66 | #define CONFIG_ASSERT | 66 | #define CONFIG_ASSERT |
| 67 | #ifndef CHECKLEVEL | 67 | #ifndef CHECKLEVEL |
| 68 | #define CHECKLEVEL CheckLevelMINIMAL | 68 | #define CHECKLEVEL CheckLevelMINIMAL |
| @@ -85,7 +85,7 @@ | |||
| 85 | * and data collection and output, and full debugging information. | 85 | * and data collection and output, and full debugging information. |
| 86 | */ | 86 | */ |
| 87 | 87 | ||
| 88 | #elif defined(CONFIG_VAR_COOL) /* Cool variety */ | 88 | #elif defined(CONFIG_VAR_COOL) |
| 89 | #define CONFIG_ASSERT | 89 | #define CONFIG_ASSERT |
| 90 | #define CONFIG_ASSERT_ALL | 90 | #define CONFIG_ASSERT_ALL |
| 91 | #define CONFIG_STATS | 91 | #define CONFIG_STATS |