-
diff --git build/build-clang/build-clang.py build/build-clang/build-clang.py
index 697bbb9b..26b3118e 100755
|
|
if __name__ == "__main__": |
368 | 368 | |
369 | 369 | if is_darwin(): |
370 | 370 | extra_cflags = [] |
371 | | extra_cxxflags = ["-stdlib=libc++"] |
372 | 371 | extra_cflags2 = [] |
373 | | extra_cxxflags2 = ["-stdlib=libc++"] |
374 | 372 | elif is_linux(): |
375 | 373 | extra_cflags = ["-static-libgcc"] |
376 | 374 | extra_cxxflags = ["-static-libgcc", "-static-libstdc++"] |
-
diff --git build/clang-plugin/moz.build build/clang-plugin/moz.build
index d9b20cd9..724089ae 100644
|
|
SOURCES += [ |
13 | 13 | DISABLE_STL_WRAPPING = True |
14 | 14 | NO_VISIBILITY_FLAGS = True |
15 | 15 | |
16 | | # libc++ is required to build plugins against clang on OS X. |
17 | | if CONFIG['HOST_OS_ARCH'] == 'Darwin': |
18 | | CXXFLAGS += ['-stdlib=libc++'] |
19 | | LDFLAGS += ['-lc++'] |
20 | | |
21 | 16 | DIRS += [ |
22 | 17 | 'tests', |
23 | 18 | ] |
-
diff --git js/src/ctypes/CTypes.cpp js/src/ctypes/CTypes.cpp
index 0facd000..e3011ae3 100644
|
|
struct ConvertImpl<uint64_t, double> { |
2538 | 2538 | // round-trip. In fact, on some platforms, including SPARC, there are pairs of |
2539 | 2539 | // values, a uint64_t and a double, such that neither value is exactly |
2540 | 2540 | // representable in the other type, but they cast to each other. |
2541 | | #if defined(SPARC) || defined(__powerpc__) |
| 2541 | #if defined(SPARC) || defined(__powerpc__) || defined(__POWERPC__) |
2542 | 2542 | // Simulate x86 overflow behavior |
2543 | 2543 | template<> |
2544 | 2544 | struct ConvertImpl<uint64_t, double> { |
-
diff --git js/src/ds/MemoryProtectionExceptionHandler.cpp js/src/ds/MemoryProtectionExceptionHandler.cpp
index 7c6646a9..93636f0d 100644
|
|
|
30 | 30 | #include "threading/Thread.h" |
31 | 31 | #include "vm/MutexIDs.h" |
32 | 32 | |
| 33 | |
| 34 | /* These aren't defined in the 10.4 SDK, so provide them here */ |
| 35 | #ifndef EXC_MASK_CRASH |
| 36 | #define EXC_MASK_CRASH 0x400 |
| 37 | #endif |
| 38 | #ifndef MACH_EXCEPTION_CODES |
| 39 | #define MACH_EXCEPTION_CODES 0x80000000 |
| 40 | #endif |
| 41 | |
33 | 42 | namespace js { |
34 | 43 | |
35 | 44 | /* |
-
diff --git js/src/jsgc.cpp js/src/jsgc.cpp
index 42d10283..1fd4ccd9 100644
|
|
js::GetCPUCount() |
3253 | 3253 | GetSystemInfo(&sysinfo); |
3254 | 3254 | ncpus = unsigned(sysinfo.dwNumberOfProcessors); |
3255 | 3255 | # else |
3256 | | long n = sysconf(_SC_NPROCESSORS_ONLN); |
3257 | | ncpus = (n > 0) ? unsigned(n) : 1; |
| 3256 | // long n = sysconf(_SC_NPROCESSORS_ONLN); |
| 3257 | // ncpus = (n > 0) ? unsigned(n) : 1; |
| 3258 | ncpus = 1; |
3258 | 3259 | # endif |
3259 | 3260 | } |
3260 | 3261 | return ncpus; |
-
diff --git js/src/old-configure js/src/old-configure
index de0f8779..961602c7 100644
|
|
case "$target" in |
4968 | 4968 | MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@' |
4969 | 4969 | MOZ_OPTIMIZE_FLAGS="-O3 -fno-stack-protector" |
4970 | 4970 | CFLAGS="$CFLAGS -fno-common" |
4971 | | CXXFLAGS="$CXXFLAGS -fno-common -stdlib=libc++" |
| 4971 | CXXFLAGS="$CXXFLAGS -fno-common" |
4972 | 4972 | DLL_SUFFIX=".dylib" |
4973 | 4973 | DSO_LDOPTS='' |
4974 | 4974 | STRIP="$STRIP -x -S" |
-
diff --git js/src/old-configure.in js/src/old-configure.in
index ff0617e3..ba19a6ef 100644
|
|
case "$target" in |
604 | 604 | MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@' |
605 | 605 | MOZ_OPTIMIZE_FLAGS="-O3 -fno-stack-protector" |
606 | 606 | CFLAGS="$CFLAGS -fno-common" |
607 | | CXXFLAGS="$CXXFLAGS -fno-common -stdlib=libc++" |
| 607 | CXXFLAGS="$CXXFLAGS -fno-common" |
608 | 608 | DLL_SUFFIX=".dylib" |
609 | 609 | DSO_LDOPTS='' |
610 | 610 | STRIP="$STRIP -x -S" |
-
diff --git js/src/threading/posix/Thread.cpp js/src/threading/posix/Thread.cpp
index 2572cc72..b9f57e7a 100644
|
|
void |
140 | 140 | js::ThisThread::SetName(const char* name) |
141 | 141 | { |
142 | 142 | MOZ_RELEASE_ASSERT(name); |
| 143 | #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060 |
143 | 144 | |
144 | 145 | #if (defined(__APPLE__) && defined(__MACH__)) || defined(__linux__) |
145 | 146 | // On linux and OS X the name may not be longer than 16 bytes, including |
… |
… |
js::ThisThread::SetName(const char* name) |
162 | 163 | #else |
163 | 164 | rv = pthread_setname_np(pthread_self(), name); |
164 | 165 | #endif |
| 166 | |
165 | 167 | MOZ_RELEASE_ASSERT(!rv); |
| 168 | #endif /* __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060 */ |
166 | 169 | } |
167 | 170 | |
168 | 171 | void |
169 | 172 | js::ThisThread::GetName(char* nameBuffer, size_t len) |
170 | 173 | { |
171 | 174 | MOZ_RELEASE_ASSERT(len >= 16); |
| 175 | #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060 |
172 | 176 | |
173 | 177 | int rv = -1; |
174 | 178 | #ifdef HAVE_PTHREAD_GETNAME_NP |
… |
… |
js::ThisThread::GetName(char* nameBuffer, size_t len) |
177 | 181 | rv = prctl(PR_GET_NAME, reinterpret_cast<unsigned long>(nameBuffer)); |
178 | 182 | #endif |
179 | 183 | |
| 184 | |
180 | 185 | if (rv) |
181 | 186 | nameBuffer[0] = '\0'; |
| 187 | #endif /* __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060 */ |
182 | 188 | } |
-
diff --git js/src/vm/TraceLogging.cpp js/src/vm/TraceLogging.cpp
index 3d6183b3..cb7d1e66 100644
|
|
uint64_t inline rdtsc() { |
38 | 38 | return ReadTimestampCounter(); |
39 | 39 | } |
40 | 40 | |
41 | | #elif defined(__powerpc__) |
| 41 | #elif defined(__powerpc__) || defined(__POWERPC__) |
42 | 42 | static __inline__ uint64_t |
43 | 43 | rdtsc(void) |
44 | 44 | { |
-
diff --git js/src/wasm/WasmSignalHandlers.cpp js/src/wasm/WasmSignalHandlers.cpp
index 78d21369..31cfdc5c 100644
|
|
extern "C" MFBT_API bool IsSignalHandlingBroken(); |
41 | 41 | # endif |
42 | 42 | #endif |
43 | 43 | |
| 44 | /* These aren't defined in the 10.4 SDK, so provide them here */ |
| 45 | #ifndef EXC_MASK_CRASH |
| 46 | #define EXC_MASK_CRASH 0x400 |
| 47 | #endif |
| 48 | #ifndef MACH_EXCEPTION_CODES |
| 49 | #define MACH_EXCEPTION_CODES 0x80000000 |
| 50 | #endif |
| 51 | |
| 52 | |
44 | 53 | // For platforms where the signal/exception handler runs on the same |
45 | 54 | // thread/stack as the victim (Unix and Windows), we can use TLS to find any |
46 | 55 | // currently executing wasm code. |
-
diff --git memory/jemalloc/src/include/jemalloc/internal/jemalloc_internal.h.in memory/jemalloc/src/include/jemalloc/internal/jemalloc_internal.h.in
index fdc8fef9..b880b830 100644
|
|
typedef unsigned szind_t; |
260 | 260 | # ifdef __or1k__ |
261 | 261 | # define LG_QUANTUM 3 |
262 | 262 | # endif |
263 | | # ifdef __powerpc__ |
| 263 | # ifdef __powerpc__ || defined(__POWERPC__) |
264 | 264 | # define LG_QUANTUM 4 |
265 | 265 | # endif |
266 | 266 | # ifdef __riscv__ |
-
diff --git memory/jemalloc/src/include/jemalloc/internal/mb.h memory/jemalloc/src/include/jemalloc/internal/mb.h
index 5384728f..c1081ae5 100644
|
|
mb_write(void) |
65 | 65 | : "memory" /* Clobbers. */ |
66 | 66 | ); |
67 | 67 | } |
68 | | #elif defined(__powerpc__) |
| 68 | #elif defined(__powerpc__) || defined(__POWERPC__) |
69 | 69 | JEMALLOC_INLINE void |
70 | 70 | mb_write(void) |
71 | 71 | { |
-
diff --git memory/mozjemalloc/jemalloc.c memory/mozjemalloc/jemalloc.c
index 5d4d83a2..03183e50 100644
|
|
static const bool isthreaded = true; |
511 | 511 | # define SIZEOF_PTR_2POW 2 |
512 | 512 | # define NO_TLS |
513 | 513 | #endif |
514 | | #ifdef __powerpc__ |
| 514 | #ifdef __powerpc__ || defined(__POWERPC__) |
515 | 515 | # define QUANTUM_2POW_MIN 4 |
516 | 516 | # define SIZEOF_PTR_2POW 2 |
517 | 517 | #endif |
… |
… |
static const bool config_recycle = false; |
1110 | 1110 | #if (defined(SOLARIS) || defined(__FreeBSD__)) && \ |
1111 | 1111 | (defined(__sparc) || defined(__sparcv9) || defined(__ia64)) |
1112 | 1112 | #define pagesize_2pow ((size_t) 13) |
1113 | | #elif defined(__powerpc64__) |
| 1113 | #elif defined(__powerpc64__) || defined(__POWERPC64__) |
1114 | 1114 | #define pagesize_2pow ((size_t) 16) |
1115 | 1115 | #else |
1116 | 1116 | #define pagesize_2pow ((size_t) 12) |
-
diff --git mfbt/EndianUtils.h mfbt/EndianUtils.h
index 00815580..a885a402 100644
|
|
|
94 | 94 | # else |
95 | 95 | # error "CPU type is unknown" |
96 | 96 | # endif |
97 | | #elif defined(__APPLE__) || defined(__powerpc__) || defined(__ppc__) |
| 97 | #elif defined(__APPLE__) || defined(__powerpc__) || defined(__POWERPC__) || defined(__ppc__) |
98 | 98 | # if __LITTLE_ENDIAN__ |
99 | 99 | # define MOZ_LITTLE_ENDIAN 1 |
100 | 100 | # elif __BIG_ENDIAN__ |
-
diff --git mfbt/double-conversion/utils.h mfbt/double-conversion/utils.h
index 15dd4bfb..82add5ec 100644
|
|
|
56 | 56 | defined(__ARMEL__) || defined(__avr32__) || \ |
57 | 57 | defined(__hppa__) || defined(__ia64__) || \ |
58 | 58 | defined(__mips__) || \ |
59 | | defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ |
| 59 | defined(__powerpc__) || defined(__POWERPC__) || defined(__ppc__) || defined(__ppc64__) || \ |
60 | 60 | defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ |
61 | 61 | defined(__SH4__) || defined(__alpha__) || \ |
62 | 62 | defined(_MIPS_ARCH_MIPS32R2) || \ |
-
diff --git mfbt/lz4.c mfbt/lz4.c
index c416fe81..440518f8 100644
|
|
|
47 | 47 | **************************************/ |
48 | 48 | /* 32 or 64 bits ? */ |
49 | 49 | #if (defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) \ |
50 | | || defined(__powerpc64__) || defined(__powerpc64le__) \ |
| 50 | || defined(__powerpc64__) || defined(__powerpc64le__) || defined(__POWERPC64__) \ |
51 | 51 | || defined(__ppc64__) || defined(__ppc64le__) \ |
52 | 52 | || defined(__PPC64__) || defined(__PPC64LE__) \ |
53 | 53 | || defined(__ia64) || defined(__itanium__) || defined(_M_IA64) \ |
… |
… |
|
70 | 70 | #elif (defined(__BIG_ENDIAN__) || defined(__BIG_ENDIAN) || defined(_BIG_ENDIAN)) && !(defined(__LITTLE_ENDIAN__) || defined(__LITTLE_ENDIAN) || defined(_LITTLE_ENDIAN)) |
71 | 71 | # define LZ4_BIG_ENDIAN 1 |
72 | 72 | #elif defined(__sparc) || defined(__sparc__) \ |
73 | | || defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) \ |
| 73 | || defined(__powerpc__) || defined(__POWERPC__) || defined(__ppc__) || defined(__PPC__) \ |
74 | 74 | || defined(__hpux) || defined(__hppa) \ |
75 | 75 | || defined(_MIPSEB) || defined(__s390__) |
76 | 76 | # define LZ4_BIG_ENDIAN 1 |
-
diff --git nsprpub/pr/include/md/_beos.cfg nsprpub/pr/include/md/_beos.cfg
index 5a3c5699..d7f19a6e 100644
|
|
|
17 | 17 | |
18 | 18 | #define PR_AF_INET6 5 /* same as AF_INET6 */ |
19 | 19 | |
20 | | #ifdef __powerpc__ |
| 20 | #ifdef __powerpc__ || defined(__POWERPC__) |
21 | 21 | #undef IS_LITTLE_ENDIAN |
22 | 22 | #define IS_BIG_ENDIAN 1 |
23 | 23 | #else |
-
diff --git nsprpub/pr/include/md/_beos.h nsprpub/pr/include/md/_beos.h
index 78469dde..4028aa62 100644
|
|
|
29 | 29 | |
30 | 30 | #define PR_LINKER_ARCH "beos" |
31 | 31 | #define _PR_SI_SYSNAME "BEOS" |
32 | | #ifdef __powerpc__ |
| 32 | #ifdef __powerpc__ || defined(__POWERPC__) |
33 | 33 | #define _PR_SI_ARCHITECTURE "ppc" |
34 | 34 | #else |
35 | 35 | #define _PR_SI_ARCHITECTURE "x86" |
-
diff --git nsprpub/pr/include/md/_freebsd.cfg nsprpub/pr/include/md/_freebsd.cfg
index 1d1039a5..1e410554 100644
|
|
|
251 | 251 | #define PR_ALIGN_OF_POINTER 8 |
252 | 252 | #define PR_ALIGN_OF_WORD 8 |
253 | 253 | |
254 | | #elif defined(__powerpc64__) |
| 254 | #elif defined(__powerpc64__) || defined(__POWERPC64__) |
255 | 255 | |
256 | 256 | #undef IS_LITTLE_ENDIAN |
257 | 257 | #define IS_BIG_ENDIAN 1 |
… |
… |
|
297 | 297 | #define PR_BYTES_PER_WORD_LOG2 3 |
298 | 298 | #define PR_BYTES_PER_DWORD_LOG2 3 |
299 | 299 | |
300 | | #elif defined(__powerpc__) |
| 300 | #elif defined(__powerpc__) || defined(__POWERPC__) |
301 | 301 | |
302 | 302 | #undef IS_LITTLE_ENDIAN |
303 | 303 | #define IS_BIG_ENDIAN 1 |
-
diff --git nsprpub/pr/include/md/_freebsd.h nsprpub/pr/include/md/_freebsd.h
index 9a179bcb..56177fe1 100644
|
|
|
25 | 25 | #define _PR_SI_ARCHITECTURE "ia64" |
26 | 26 | #elif defined(__amd64__) |
27 | 27 | #define _PR_SI_ARCHITECTURE "amd64" |
28 | | #elif defined(__powerpc64__) |
| 28 | #elif defined(__powerpc64__) || defined(__POWERPC64__) |
29 | 29 | #define _PR_SI_ARCHITECTURE "powerpc64" |
30 | | #elif defined(__powerpc__) |
| 30 | #elif defined(__powerpc__) || defined(__POWERPC__) |
31 | 31 | #define _PR_SI_ARCHITECTURE "powerpc" |
32 | 32 | #elif defined(__aarch64__) |
33 | 33 | #define _PR_SI_ARCHITECTURE "aarch64" |
-
diff --git nsprpub/pr/include/md/_linux.cfg nsprpub/pr/include/md/_linux.cfg
index 8cbf0cb9..665f1a95 100644
|
|
|
27 | 27 | #define PR_AF_INET6 10 /* same as AF_INET6 */ |
28 | 28 | #endif |
29 | 29 | |
30 | | #ifdef __powerpc64__ |
| 30 | #ifdef __powerpc64__ || defined(__POWERPC64__) |
31 | 31 | |
32 | 32 | #ifdef __LITTLE_ENDIAN__ |
33 | 33 | #define IS_LITTLE_ENDIAN 1 |
… |
… |
|
78 | 78 | #define PR_BYTES_PER_WORD_LOG2 3 |
79 | 79 | #define PR_BYTES_PER_DWORD_LOG2 3 |
80 | 80 | |
81 | | #elif defined(__powerpc__) |
| 81 | #elif defined(__powerpc__) || defined(__POWERPC__) |
82 | 82 | |
83 | 83 | #ifdef __LITTLE_ENDIAN__ |
84 | 84 | #define IS_LITTLE_ENDIAN 1 |
-
diff --git nsprpub/pr/include/md/_linux.h nsprpub/pr/include/md/_linux.h
index b4b298b7..5298075b 100644
|
|
|
19 | 19 | |
20 | 20 | #define PR_LINKER_ARCH "linux" |
21 | 21 | #define _PR_SI_SYSNAME "LINUX" |
22 | | #ifdef __powerpc64__ |
| 22 | #ifdef __powerpc64__ || defined(__POWERPC64__) |
23 | 23 | #define _PR_SI_ARCHITECTURE "ppc64" |
24 | | #elif defined(__powerpc__) |
| 24 | #elif defined(__powerpc__) || defined(__POWERPC__) |
25 | 25 | #define _PR_SI_ARCHITECTURE "ppc" |
26 | 26 | #elif defined(__alpha) |
27 | 27 | #define _PR_SI_ARCHITECTURE "alpha" |
… |
… |
extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval); |
137 | 137 | #endif |
138 | 138 | #endif |
139 | 139 | |
140 | | #if defined(__powerpc__) && !defined(__powerpc64__) |
| 140 | #if defined(__powerpc__) || defined(__POWERPC__) && !defined(__powerpc64__) |
141 | 141 | #define _PR_HAVE_ATOMIC_OPS |
142 | 142 | #define _MD_INIT_ATOMIC() |
143 | 143 | extern PRInt32 _PR_ppc_AtomicIncrement(PRInt32 *val); |
… |
… |
extern PRInt32 _PR_ppc_AtomicSet(PRInt32 *val, PRInt32 newval); |
150 | 150 | #define _MD_ATOMIC_SET _PR_ppc_AtomicSet |
151 | 151 | #endif |
152 | 152 | |
153 | | #if defined(__powerpc64__) |
| 153 | #if defined(__powerpc64__) || defined(__POWERPC64__) |
154 | 154 | #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) |
155 | 155 | /* Use GCC built-in functions */ |
156 | 156 | #define _PR_HAVE_ATOMIC_OPS |
… |
… |
extern void _MD_CleanupBeforeExit(void); |
329 | 329 | |
330 | 330 | #define CONTEXT(_th) ((_th)->md.context) |
331 | 331 | |
332 | | #ifdef __powerpc__ |
| 332 | #ifdef __powerpc__ || defined(__POWERPC__) |
333 | 333 | /* |
334 | 334 | * PowerPC based MkLinux |
335 | 335 | * |
… |
… |
extern void _MD_CleanupBeforeExit(void); |
505 | 505 | /* |
506 | 506 | ** Initialize a thread context to run "_main()" when started |
507 | 507 | */ |
508 | | #ifdef __powerpc__ |
| 508 | #ifdef __powerpc__ || defined(__POWERPC__) |
509 | 509 | |
510 | 510 | #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ |
511 | 511 | { \ |
-
diff --git nsprpub/pr/include/md/_netbsd.cfg nsprpub/pr/include/md/_netbsd.cfg
index 1326556e..a91213ed 100644
|
|
|
250 | 250 | #define PR_BYTES_PER_WORD_LOG2 3 |
251 | 251 | #define PR_BYTES_PER_DWORD_LOG2 3 |
252 | 252 | |
253 | | #elif defined(__powerpc__) || defined(__m68k__) |
| 253 | #elif defined(__powerpc__) || defined(__POWERPC__) || defined(__m68k__) |
254 | 254 | |
255 | 255 | #undef IS_LITTLE_ENDIAN |
256 | 256 | #define IS_BIG_ENDIAN 1 |
-
diff --git nsprpub/pr/include/md/_netbsd.h nsprpub/pr/include/md/_netbsd.h
index 945d94ff..16d383cf 100644
|
|
|
19 | 19 | #define _PR_SI_ARCHITECTURE "amd64" |
20 | 20 | #elif defined(__m68k__) |
21 | 21 | #define _PR_SI_ARCHITECTURE "m68k" |
22 | | #elif defined(__powerpc__) |
| 22 | #elif defined(__powerpc__) || defined(__POWERPC__) |
23 | 23 | #define _PR_SI_ARCHITECTURE "powerpc" |
24 | 24 | #elif defined(__sparc_v9__) |
25 | 25 | #define _PR_SI_ARCHITECTURE "sparc64" |
… |
… |
|
71 | 71 | |
72 | 72 | #define CONTEXT(_th) ((_th)->md.context) |
73 | 73 | |
74 | | #if defined(__i386__) || defined(__sparc__) || defined(__m68k__) || defined(__powerpc__) |
| 74 | #if defined(__i386__) || defined(__sparc__) || defined(__m68k__) || defined(__powerpc__) || defined(__POWERPC__) |
75 | 75 | #define JB_SP_INDEX 2 |
76 | 76 | #elif defined(__mips__) |
77 | 77 | #define JB_SP_INDEX 4 |
-
diff --git nsprpub/pr/include/md/_openbsd.cfg nsprpub/pr/include/md/_openbsd.cfg
index b68d6e9c..02f725ed 100644
|
|
|
252 | 252 | #define PR_BYTES_PER_WORD_LOG2 3 |
253 | 253 | #define PR_BYTES_PER_DWORD_LOG2 3 |
254 | 254 | |
255 | | #elif defined(__powerpc__) || defined(__m68k__) |
| 255 | #elif defined(__powerpc__) || defined(__POWERPC__) || defined(__m68k__) |
256 | 256 | |
257 | 257 | #undef IS_LITTLE_ENDIAN |
258 | 258 | #define IS_BIG_ENDIAN 1 |
-
diff --git nsprpub/pr/include/md/_openbsd.h nsprpub/pr/include/md/_openbsd.h
index 666c177e..3517f812 100644
|
|
|
18 | 18 | #define _PR_SI_ARCHITECTURE "amd64" |
19 | 19 | #elif defined(__m68k__) |
20 | 20 | #define _PR_SI_ARCHITECTURE "m68k" |
21 | | #elif defined(__powerpc__) |
| 21 | #elif defined(__powerpc__) || defined(__POWERPC__) |
22 | 22 | #define _PR_SI_ARCHITECTURE "powerpc" |
23 | 23 | #elif defined(__sparc__) |
24 | 24 | #define _PR_SI_ARCHITECTURE "sparc" |
… |
… |
|
61 | 61 | |
62 | 62 | #if defined(__i386__) || defined(__sparc__) || defined(__m68k__) |
63 | 63 | #define JB_SP_INDEX 2 |
64 | | #elif defined(__powerpc__) |
| 64 | #elif defined(__powerpc__) || defined(__POWERPC__) |
65 | 65 | #define JB_SP_INDEX 1 |
66 | 66 | #elif defined(__alpha__) |
67 | 67 | #define JB_SP_INDEX 34 |
-
diff --git nsprpub/pr/include/pratom.h nsprpub/pr/include/pratom.h
index dff9d6c0..6a10734b 100644
|
|
NSPR_API(PRInt32) PR_AtomicAdd(PRInt32 *ptr, PRInt32 val); |
99 | 99 | |
100 | 100 | #elif ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && \ |
101 | 101 | ((defined(__APPLE__) && \ |
102 | | (defined(__ppc__) || defined(__i386__) || defined(__x86_64__))) || \ |
| 102 | (defined(__ppc__) || defined(__POWERPC__) || defined(__POWERPC64__) || defined(__i386__) || defined(__x86_64__))) || \ |
103 | 103 | (defined(__linux__) && \ |
104 | 104 | ((defined(__i386__) && \ |
105 | 105 | defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \ |
106 | 106 | defined(__ia64__) || defined(__x86_64__) || \ |
107 | | defined(__powerpc__) || \ |
| 107 | defined(__powerpc__) || defined(__POWERPC__) || \ |
108 | 108 | (defined(__arm__) && \ |
109 | 109 | defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \ |
110 | 110 | defined(__aarch64__) || defined(__alpha) || \ |
-
diff --git python/mozbuild/mozbuild/configure/constants.py python/mozbuild/mozbuild/configure/constants.py
index dfc7cf8a..02f0f3bf 100644
|
|
CPU_preprocessor_checks = OrderedDict(( |
77 | 77 | ('ia64', '__ia64__'), |
78 | 78 | ('s390x', '__s390x__'), |
79 | 79 | ('s390', '__s390__'), |
80 | | ('ppc64', '__powerpc64__'), |
81 | | ('ppc', '__powerpc__'), |
| 80 | ('ppc64', '__powerpc64__ || __POWERPC64__'), |
| 81 | ('ppc', '__powerpc__ || __POWERPC__'), |
82 | 82 | ('Alpha', '__alpha__'), |
83 | 83 | ('hppa', '__hppa__'), |
84 | 84 | ('sparc64', '__sparc__ && __arch64__'), |