diff options
| author | Richard Brooksby | 2012-07-05 14:38:21 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-07-05 14:38:21 +0100 |
| commit | c395667fd7816db3c2309b3ee683c0f3130fff5d (patch) | |
| tree | 29f6777b64427c06237d84aa01945b5f0d53d995 /mps/code/mpstd.h | |
| parent | a553fb00533d2ac3b932d7a94b8178d56cf678e9 (diff) | |
| parent | 1569e667705f93f06ba76cf473281514a1a5a3ee (diff) | |
| download | emacs-c395667fd7816db3c2309b3ee683c0f3130fff5d.tar.gz emacs-c395667fd7816db3c2309b3ee683c0f3130fff5d.zip | |
Merging branch/2012-05-21/build-xci6ll -- build support for 64-bit mac os x.
Copied from Perforce
Change: 178560
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/mpstd.h')
| -rw-r--r-- | mps/code/mpstd.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h index b71da925752..4a8a0875ca3 100644 --- a/mps/code/mpstd.h +++ b/mps/code/mpstd.h | |||
| @@ -285,10 +285,12 @@ | |||
| 285 | /* GCC 4.0.1 (As supplied by Apple on Mac OS X 10.4.8 on an Intel Mac), | 285 | /* GCC 4.0.1 (As supplied by Apple on Mac OS X 10.4.8 on an Intel Mac), |
| 286 | * gcc -E -dM | 286 | * gcc -E -dM |
| 287 | * And above for xcppgc. | 287 | * And above for xcppgc. |
| 288 | * Note that Clang also defines __GNUC__ since it's generally GCC compatible, | ||
| 289 | * but that doesn't fit our system so we exclude Clang here. | ||
| 288 | */ | 290 | */ |
| 289 | 291 | ||
| 290 | #elif defined(__APPLE__) && defined(__i386__) && defined(__MACH__) \ | 292 | #elif defined(__APPLE__) && defined(__i386__) && defined(__MACH__) \ |
| 291 | && defined(__GNUC__) | 293 | && defined(__GNUC__) && !defined(__clang__) |
| 292 | #if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_XCI3GC) | 294 | #if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_XCI3GC) |
| 293 | #error "specified CONFIG_PF_... inconsistent with detected xci3gc" | 295 | #error "specified CONFIG_PF_... inconsistent with detected xci3gc" |
| 294 | #endif | 296 | #endif |
| @@ -303,6 +305,42 @@ | |||
| 303 | #define MPS_WORD_SHIFT 5 | 305 | #define MPS_WORD_SHIFT 5 |
| 304 | #define MPS_PF_ALIGN 4 /* I'm just guessing. */ | 306 | #define MPS_PF_ALIGN 4 /* I'm just guessing. */ |
| 305 | 307 | ||
| 308 | /* Apple clang version 3.1, clang -E -dM */ | ||
| 309 | |||
| 310 | #elif defined(__APPLE__) && defined(__i386__) && defined(__MACH__) \ | ||
| 311 | && defined(__clang__) | ||
| 312 | #if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_XCI3LL) | ||
| 313 | #error "specified CONFIG_PF_... inconsistent with detected xci3ll" | ||
| 314 | #endif | ||
| 315 | #define MPS_PF_XCI3LL | ||
| 316 | #define MPS_PF_STRING "xci3ll" | ||
| 317 | #define MPS_OS_XC | ||
| 318 | #define MPS_ARCH_I3 | ||
| 319 | #define MPS_BUILD_LL | ||
| 320 | #define MPS_T_WORD unsigned long | ||
| 321 | #define MPS_T_ULONGEST unsigned long | ||
| 322 | #define MPS_WORD_WIDTH 32 | ||
| 323 | #define MPS_WORD_SHIFT 5 | ||
| 324 | #define MPS_PF_ALIGN 4 /* I'm just guessing. */ | ||
| 325 | |||
| 326 | /* Apple clang version 3.1, clang -E -dM */ | ||
| 327 | |||
| 328 | #elif defined(__APPLE__) && defined(__x86_64__) && defined(__MACH__) \ | ||
| 329 | && defined(__clang__) | ||
| 330 | #if defined(CONFIG_PF_STRING) && ! defined(CONFIG_PF_XCI6LL) | ||
| 331 | #error "specified CONFIG_PF_... inconsistent with detected xci6ll" | ||
| 332 | #endif | ||
| 333 | #define MPS_PF_XCI6LL | ||
| 334 | #define MPS_PF_STRING "xci6ll" | ||
| 335 | #define MPS_OS_XC | ||
| 336 | #define MPS_ARCH_I6 | ||
| 337 | #define MPS_BUILD_LL | ||
| 338 | #define MPS_T_WORD unsigned long | ||
| 339 | #define MPS_T_ULONGEST unsigned long | ||
| 340 | #define MPS_WORD_WIDTH 64 | ||
| 341 | #define MPS_WORD_SHIFT 6 | ||
| 342 | #define MPS_PF_ALIGN 8 | ||
| 343 | |||
| 306 | /* GCC 2.5.8, gcc -E -dM, (__SVR4 indicates Solaris) */ | 344 | /* GCC 2.5.8, gcc -E -dM, (__SVR4 indicates Solaris) */ |
| 307 | 345 | ||
| 308 | #elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \ | 346 | #elif defined(__sun__) && defined(__sparc__) && defined(__GNUC__) \ |