aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/mpstd.h
diff options
context:
space:
mode:
authorRichard Brooksby2012-08-08 19:02:57 +0100
committerRichard Brooksby2012-08-08 19:02:57 +0100
commit215ef086cb452dbeaea7d86abdd7c9fb237f6271 (patch)
tree089521c3e105c03a5652fb725fafc66fc900531f /mps/code/mpstd.h
parente4d51297717dd6cf4326989507409df5005feef4 (diff)
downloademacs-215ef086cb452dbeaea7d86abdd7c9fb237f6271.tar.gz
emacs-215ef086cb452dbeaea7d86abdd7c9fb237f6271.zip
Removed support for old or dead platforms: osf/1, irix, mac system 7, sunos, windows nt on alpha, windows nt on powerpc.
See <https://github.com/datafueled/memory-pool-system/pull/3> for the origin of this change. Copied from Perforce Change: 178872 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/mpstd.h')
-rw-r--r--mps/code/mpstd.h229
1 files changed, 1 insertions, 228 deletions
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h
index 4a8a0875ca3..58de5a832da 100644
--- a/mps/code/mpstd.h
+++ b/mps/code/mpstd.h
@@ -55,83 +55,6 @@
55 */ 55 */
56 56
57 57
58/* Irix 5/6 man cc and man abi. We can't check for _ABIO32 (see
59 * os.i5), as we have to support Irix 5.2, which doesn't define it. We
60 * check the value of _MIPS_FPSET, as it is defined across all Irix 5
61 * and 6 platforms, and on Irix 6 distinguishes O32 from the other two
62 * ABIs. When we support the other ABIs, we need a new OS name for
63 * them. Alignment from testing.
64 */
65
66#if defined(__sgi) && defined(__unix) && defined(__mips) \
67 && defined(_SYSTYPE_SVR4) && (_MIPS_FPSET == 16)
68#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_I5M2CC)
69#error "specified CONFIG_PF_... inconsistent with detected i5m2cc"
70#endif
71#define MPS_PF_I5M2CC
72#define MPS_PF_STRING "i5m2cc"
73#define MPS_OS_I5
74#define MPS_ARCH_M2
75#define MPS_BUILD_CC
76#define MPS_T_WORD unsigned long
77#define MPS_T_ULONGEST unsigned long
78#define MPS_WORD_WIDTH 32
79#define MPS_WORD_SHIFT 5
80#define MPS_PF_ALIGN 8
81
82/* See above. Alignment from testing. */
83
84#elif defined(__sgi) && defined(__unix) && defined(__mips) \
85 && defined(_SYSTYPE_SVR4) && defined(_ABIN32)
86#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_IAM4CC)
87#error "specified CONFIG_PF_... inconsistent with detected iam4cc"
88#endif
89#define MPS_PF_IAM4CC
90#define MPS_PF_STRING "iam4cc"
91#define MPS_OS_IA
92#define MPS_ARCH_M4
93#define MPS_BUILD_CC
94#define MPS_T_WORD unsigned long
95#define MPS_T_ULONGEST unsigned long
96#define MPS_WORD_WIDTH 32
97#define MPS_WORD_SHIFT 5
98#define MPS_PF_ALIGN 8
99
100/* winnt.h from MS VC 2.0 */
101
102#elif defined(_MSC_VER) && defined(_WIN32) && defined(_M_ALPHA)
103#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3ALMV)
104#error "specified CONFIG_PF_... inconsistent with detected w3almv"
105#endif
106#define MPS_PF_W3ALMV
107#define MPS_PF_STRING "w3almv"
108#define MPS_OS_W3
109#define MPS_ARCH_AL
110#define MPS_BUILD_MV
111#define MPS_T_WORD unsigned long
112#define MPS_T_ULONGEST unsigned long
113#define MPS_WORD_WIDTH 32
114#define MPS_WORD_SHIFT 5
115#define MPS_PF_ALIGN 4
116
117/* winnt.h from MS VC 2.0 */
118
119#elif defined(_MSC_VER) && defined(_WIN32) && defined(_M_PPC)
120#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3PPMV)
121#error "specified CONFIG_PF_... inconsistent with detected w3ppmv"
122#endif
123#define MPS_PF_W3PPMV
124#define MPS_PF_STRING "w3ppmv"
125#define MPS_OS_W3
126#define MPS_ARCH_PP
127#define MPS_BUILD_MV
128#define MPS_T_WORD unsigned long
129#define MPS_T_ULONGEST unsigned long
130#define MPS_WORD_WIDTH 32
131#define MPS_WORD_SHIFT 5
132#define MPS_PF_ALIGN 4
133
134
135/* Visual C++ 2.0, Books Online, C/C++ Book, Preprocessor Reference, 58/* Visual C++ 2.0, Books Online, C/C++ Book, Preprocessor Reference,
136 * Chapter 1: The Preprocessor, Macros, Predefined Macros. 59 * Chapter 1: The Preprocessor, Macros, Predefined Macros.
137 * Alignment of 4 would work, but the MS library uses 8 bytes for 60 * Alignment of 4 would work, but the MS library uses 8 bytes for
@@ -139,7 +62,7 @@
139 * VC malloc is 16! 62 * VC malloc is 16!
140 */ 63 */
141 64
142#elif defined(_MSC_VER) && defined(_WIN32) && defined(_M_IX86) 65#if defined(_MSC_VER) && defined(_WIN32) && defined(_M_IX86)
143#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3I3MV) 66#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3I3MV)
144#error "specified CONFIG_PF_... inconsistent with detected w3i3mv" 67#error "specified CONFIG_PF_... inconsistent with detected w3i3mv"
145#endif 68#endif
@@ -181,86 +104,6 @@
181#define MPS_PF_ALIGN 16 104#define MPS_PF_ALIGN 16
182 105
183 106
184/* MW C/C++/ASM Lang Ref (CW9), pp. 184-186. Metrowerks does not document
185 * a way to determine the OS -- we assume MacOS 7.
186 */
187
188#elif (defined(__MWERKS__) && __MC68K__ == 1)
189#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S760MW)
190#error "specified CONFIG_PF_... inconsistent with detected s760mw"
191#endif
192#define MPS_PF_S760MW
193#define MPS_PF_STRING "s760mw"
194#define MPS_OS_S7
195#define MPS_ARCH_60
196#define MPS_BUILD_MW
197#define MPS_T_WORD unsigned long
198#define MPS_T_ULONGEST unsigned long
199#define MPS_WORD_WIDTH 32
200#define MPS_WORD_SHIFT 5
201#define MPS_PF_ALIGN 1
202
203/* MW C/C++/ASM Lang Ref (CW9), pp. 184-186. Metrowerks does not document
204 * a way to determine the OS -- we assume MacOS 7.
205 */
206
207#elif defined(__MWERKS__) && __POWERPC__ == 1
208#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S7PPMW)
209#error "specified CONFIG_PF_... inconsistent with detected s7ppmw"
210#endif
211#define MPS_PF_S7PPMW
212#define MPS_PF_STRING "s7ppmw"
213#define MPS_OS_S7
214#define MPS_ARCH_PP
215#define MPS_BUILD_MW
216#define MPS_T_WORD unsigned long
217#define MPS_T_ULONGEST unsigned long
218#define MPS_WORD_WIDTH 32
219#define MPS_WORD_SHIFT 5
220#define MPS_PF_ALIGN 8 /* .macos.ppc.align */
221
222/* 1. MPW 3.0 C Ref, p. 43.
223 * 2. MPW SC/SCpp C/C++ Compiler for 68k Macintosh, p 3-60.
224 * These are the two MPW 68k compilers. They do not define anything
225 * which lets us determine the system version.
226 */
227
228#elif defined(m68k) && (defined (applec) || defined(__SC__))
229#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S760AC)
230#error "specified CONFIG_PF_... inconsistent with detected s760ac"
231#endif
232#define MPS_PF_S760AC
233#define MPS_PF_STRING "s760ac"
234#define MPS_OS_S7
235#define MPS_ARCH_60
236#define MPS_BUILD_AC
237#define MPS_T_WORD unsigned long
238#define MPS_T_ULONGEST unsigned long
239#define MPS_WORD_WIDTH 32
240#define MPS_WORD_SHIFT 5
241#define MPS_PF_ALIGN 1
242
243/* 1. C++/C Compiler for Macintosh with PowerPC, p 3-36.
244 * 2. MPW MrC/MrCpp C/C++ Compiler for Power Macintosh, p 3-57.
245 * These are the two MPW PowerPC compilers. They do not define anything
246 * which lets us determine the system version.
247 */
248
249#elif defined(__PPCC__) || (defined(__MRC__) && defined(__POWERPC))
250#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S7PPAC)
251#error "specified CONFIG_PF_... inconsistent with detected s7ppac"
252#endif
253#define MPS_PF_S7PPAC
254#define MPS_PF_STRING "s7ppac"
255#define MPS_OS_S7
256#define MPS_ARCH_PP
257#define MPS_BUILD_AC
258#define MPS_T_WORD unsigned long
259#define MPS_T_ULONGEST unsigned long
260#define MPS_WORD_WIDTH 32
261#define MPS_WORD_SHIFT 5
262#define MPS_PF_ALIGN 8 /* .macos.ppc.align */
263
264/* GCC 2.7.2.1, gcc -E -dM -traditional-cpp and <URL:http://developer.apple.c 107/* GCC 2.7.2.1, gcc -E -dM -traditional-cpp and <URL:http://developer.apple.c
265 * om/techpubs/macosx/System/Documentation/Developer/YellowBox/Reference/DevT 108 * om/techpubs/macosx/System/Documentation/Developer/YellowBox/Reference/DevT
266 * ools/Preprocessor/Preprocessor.[ef].html> 109 * ools/Preprocessor/Preprocessor.[ef].html>
@@ -341,42 +184,6 @@
341#define MPS_WORD_SHIFT 6 184#define MPS_WORD_SHIFT 6
342#define MPS_PF_ALIGN 8 185#define MPS_PF_ALIGN 8
343 186
344/* GCC 2.5.8, gcc -E -dM, (__SVR4 indicates Solaris) */
345
346#elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \
347 && !defined(__svr4__)
348#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_SUS8GC)
349#error "specified CONFIG_PF_... inconsistent with detected sus8gc"
350#endif
351#define MPS_PF_SUS8GC
352#define MPS_PF_STRING "sus8gc"
353#define MPS_OS_SU
354#define MPS_ARCH_S8
355#define MPS_BUILD_GC
356#define MPS_T_WORD unsigned long
357#define MPS_T_ULONGEST unsigned long
358#define MPS_WORD_WIDTH 32
359#define MPS_WORD_SHIFT 5
360#define MPS_PF_ALIGN 8
361
362/* LCC 3.4 (ish), man page */
363
364#elif defined(sun) && defined(sparc) && defined(__LCC__) \
365 && !defined(__svr4__)
366#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_SUS8LC)
367#error "specified CONFIG_PF_... inconsistent with detected sus8lc"
368#endif
369#define MPS_PF_SUS8LC
370#define MPS_PF_STRING "sus8lc"
371#define MPS_OS_SU
372#define MPS_ARCH_S8
373#define MPS_BUILD_LC
374#define MPS_T_WORD unsigned long
375#define MPS_T_ULONGEST unsigned long
376#define MPS_WORD_WIDTH 32
377#define MPS_WORD_SHIFT 5
378#define MPS_PF_ALIGN 8
379
380/* GCC 2.5.8, gcc -E -dM */ 187/* GCC 2.5.8, gcc -E -dM */
381 188
382#elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \ 189#elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \
@@ -416,40 +223,6 @@
416#define MPS_WORD_SHIFT 5 223#define MPS_WORD_SHIFT 5
417#define MPS_PF_ALIGN 8 224#define MPS_PF_ALIGN 8
418 225
419/* GCC 2.6.3, gcc -E -dM */
420
421#elif defined(__osf__) && defined(__alpha__) && defined(__GNUC__)
422#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_O1ALGC)
423#error "specified CONFIG_PF_... inconsistent with detected o1algc"
424#endif
425#define MPS_PF_O1ALGC
426#define MPS_PF_STRING "o1algc"
427#define MPS_OS_O1
428#define MPS_ARCH_AL
429#define MPS_BUILD_GC
430#define MPS_T_WORD unsigned long
431#define MPS_T_ULONGEST unsigned long
432#define MPS_WORD_WIDTH 64
433#define MPS_WORD_SHIFT 6
434#define MPS_PF_ALIGN 8
435
436/* From the cc(1) man page */
437
438#elif defined(__osf__) && defined(__alpha) && defined(__DECC)
439#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_O1ALCC)
440#error "specified CONFIG_PF_... inconsistent with detected o1alcc"
441#endif
442#define MPS_PF_O1ALCC
443#define MPS_PF_STRING "o1alcc"
444#define MPS_OS_O1
445#define MPS_ARCH_AL
446#define MPS_BUILD_CC
447#define MPS_T_WORD unsigned long
448#define MPS_T_ULONGEST unsigned long
449#define MPS_WORD_WIDTH 64
450#define MPS_WORD_SHIFT 6
451#define MPS_PF_ALIGN 8
452
453/* GCC 2.6.3, gcc -E -dM 226/* GCC 2.6.3, gcc -E -dM
454 * The actual granularity of GNU malloc is 8, but field alignments are 227 * The actual granularity of GNU malloc is 8, but field alignments are
455 * all 4. 228 * all 4.