From 215ef086cb452dbeaea7d86abdd7c9fb237f6271 Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Wed, 8 Aug 2012 19:02:57 +0100 Subject: Removed support for old or dead platforms: osf/1, irix, mac system 7, sunos, windows nt on alpha, windows nt on powerpc. See for the origin of this change. Copied from Perforce Change: 178872 ServerID: perforce.ravenbrook.com --- mps/code/mpstd.h | 229 +------------------------------------------------------ 1 file changed, 1 insertion(+), 228 deletions(-) (limited to 'mps/code/mpstd.h') 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 @@ */ -/* Irix 5/6 man cc and man abi. We can't check for _ABIO32 (see - * os.i5), as we have to support Irix 5.2, which doesn't define it. We - * check the value of _MIPS_FPSET, as it is defined across all Irix 5 - * and 6 platforms, and on Irix 6 distinguishes O32 from the other two - * ABIs. When we support the other ABIs, we need a new OS name for - * them. Alignment from testing. - */ - -#if defined(__sgi) && defined(__unix) && defined(__mips) \ - && defined(_SYSTYPE_SVR4) && (_MIPS_FPSET == 16) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_I5M2CC) -#error "specified CONFIG_PF_... inconsistent with detected i5m2cc" -#endif -#define MPS_PF_I5M2CC -#define MPS_PF_STRING "i5m2cc" -#define MPS_OS_I5 -#define MPS_ARCH_M2 -#define MPS_BUILD_CC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 8 - -/* See above. Alignment from testing. */ - -#elif defined(__sgi) && defined(__unix) && defined(__mips) \ - && defined(_SYSTYPE_SVR4) && defined(_ABIN32) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_IAM4CC) -#error "specified CONFIG_PF_... inconsistent with detected iam4cc" -#endif -#define MPS_PF_IAM4CC -#define MPS_PF_STRING "iam4cc" -#define MPS_OS_IA -#define MPS_ARCH_M4 -#define MPS_BUILD_CC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 8 - -/* winnt.h from MS VC 2.0 */ - -#elif defined(_MSC_VER) && defined(_WIN32) && defined(_M_ALPHA) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3ALMV) -#error "specified CONFIG_PF_... inconsistent with detected w3almv" -#endif -#define MPS_PF_W3ALMV -#define MPS_PF_STRING "w3almv" -#define MPS_OS_W3 -#define MPS_ARCH_AL -#define MPS_BUILD_MV -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 4 - -/* winnt.h from MS VC 2.0 */ - -#elif defined(_MSC_VER) && defined(_WIN32) && defined(_M_PPC) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3PPMV) -#error "specified CONFIG_PF_... inconsistent with detected w3ppmv" -#endif -#define MPS_PF_W3PPMV -#define MPS_PF_STRING "w3ppmv" -#define MPS_OS_W3 -#define MPS_ARCH_PP -#define MPS_BUILD_MV -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 4 - - /* Visual C++ 2.0, Books Online, C/C++ Book, Preprocessor Reference, * Chapter 1: The Preprocessor, Macros, Predefined Macros. * Alignment of 4 would work, but the MS library uses 8 bytes for @@ -139,7 +62,7 @@ * VC malloc is 16! */ -#elif defined(_MSC_VER) && defined(_WIN32) && defined(_M_IX86) +#if defined(_MSC_VER) && defined(_WIN32) && defined(_M_IX86) #if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_W3I3MV) #error "specified CONFIG_PF_... inconsistent with detected w3i3mv" #endif @@ -181,86 +104,6 @@ #define MPS_PF_ALIGN 16 -/* MW C/C++/ASM Lang Ref (CW9), pp. 184-186. Metrowerks does not document - * a way to determine the OS -- we assume MacOS 7. - */ - -#elif (defined(__MWERKS__) && __MC68K__ == 1) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S760MW) -#error "specified CONFIG_PF_... inconsistent with detected s760mw" -#endif -#define MPS_PF_S760MW -#define MPS_PF_STRING "s760mw" -#define MPS_OS_S7 -#define MPS_ARCH_60 -#define MPS_BUILD_MW -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 1 - -/* MW C/C++/ASM Lang Ref (CW9), pp. 184-186. Metrowerks does not document - * a way to determine the OS -- we assume MacOS 7. - */ - -#elif defined(__MWERKS__) && __POWERPC__ == 1 -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S7PPMW) -#error "specified CONFIG_PF_... inconsistent with detected s7ppmw" -#endif -#define MPS_PF_S7PPMW -#define MPS_PF_STRING "s7ppmw" -#define MPS_OS_S7 -#define MPS_ARCH_PP -#define MPS_BUILD_MW -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 8 /* .macos.ppc.align */ - -/* 1. MPW 3.0 C Ref, p. 43. - * 2. MPW SC/SCpp C/C++ Compiler for 68k Macintosh, p 3-60. - * These are the two MPW 68k compilers. They do not define anything - * which lets us determine the system version. - */ - -#elif defined(m68k) && (defined (applec) || defined(__SC__)) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S760AC) -#error "specified CONFIG_PF_... inconsistent with detected s760ac" -#endif -#define MPS_PF_S760AC -#define MPS_PF_STRING "s760ac" -#define MPS_OS_S7 -#define MPS_ARCH_60 -#define MPS_BUILD_AC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 1 - -/* 1. C++/C Compiler for Macintosh with PowerPC, p 3-36. - * 2. MPW MrC/MrCpp C/C++ Compiler for Power Macintosh, p 3-57. - * These are the two MPW PowerPC compilers. They do not define anything - * which lets us determine the system version. - */ - -#elif defined(__PPCC__) || (defined(__MRC__) && defined(__POWERPC)) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_S7PPAC) -#error "specified CONFIG_PF_... inconsistent with detected s7ppac" -#endif -#define MPS_PF_S7PPAC -#define MPS_PF_STRING "s7ppac" -#define MPS_OS_S7 -#define MPS_ARCH_PP -#define MPS_BUILD_AC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 8 /* .macos.ppc.align */ - /* GCC 2.7.2.1, gcc -E -dM -traditional-cpp and @@ -341,42 +184,6 @@ #define MPS_WORD_SHIFT 6 #define MPS_PF_ALIGN 8 -/* GCC 2.5.8, gcc -E -dM, (__SVR4 indicates Solaris) */ - -#elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \ - && !defined(__svr4__) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_SUS8GC) -#error "specified CONFIG_PF_... inconsistent with detected sus8gc" -#endif -#define MPS_PF_SUS8GC -#define MPS_PF_STRING "sus8gc" -#define MPS_OS_SU -#define MPS_ARCH_S8 -#define MPS_BUILD_GC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 8 - -/* LCC 3.4 (ish), man page */ - -#elif defined(sun) && defined(sparc) && defined(__LCC__) \ - && !defined(__svr4__) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_SUS8LC) -#error "specified CONFIG_PF_... inconsistent with detected sus8lc" -#endif -#define MPS_PF_SUS8LC -#define MPS_PF_STRING "sus8lc" -#define MPS_OS_SU -#define MPS_ARCH_S8 -#define MPS_BUILD_LC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 32 -#define MPS_WORD_SHIFT 5 -#define MPS_PF_ALIGN 8 - /* GCC 2.5.8, gcc -E -dM */ #elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \ @@ -416,40 +223,6 @@ #define MPS_WORD_SHIFT 5 #define MPS_PF_ALIGN 8 -/* GCC 2.6.3, gcc -E -dM */ - -#elif defined(__osf__) && defined(__alpha__) && defined(__GNUC__) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_O1ALGC) -#error "specified CONFIG_PF_... inconsistent with detected o1algc" -#endif -#define MPS_PF_O1ALGC -#define MPS_PF_STRING "o1algc" -#define MPS_OS_O1 -#define MPS_ARCH_AL -#define MPS_BUILD_GC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 64 -#define MPS_WORD_SHIFT 6 -#define MPS_PF_ALIGN 8 - -/* From the cc(1) man page */ - -#elif defined(__osf__) && defined(__alpha) && defined(__DECC) -#if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_O1ALCC) -#error "specified CONFIG_PF_... inconsistent with detected o1alcc" -#endif -#define MPS_PF_O1ALCC -#define MPS_PF_STRING "o1alcc" -#define MPS_OS_O1 -#define MPS_ARCH_AL -#define MPS_BUILD_CC -#define MPS_T_WORD unsigned long -#define MPS_T_ULONGEST unsigned long -#define MPS_WORD_WIDTH 64 -#define MPS_WORD_SHIFT 6 -#define MPS_PF_ALIGN 8 - /* GCC 2.6.3, gcc -E -dM * The actual granularity of GNU malloc is 8, but field alignments are * all 4. -- cgit v1.2.1