Changeset 199366 in webkit
- Timestamp:
- Apr 12, 2016 9:44:36 AM (8 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r199299 r199366 1 2016-04-12 Tomas Popela <tpopela@redhat.com> 2 3 S390X and PPC64 architectures detection is wrong 4 https://bugs.webkit.org/show_bug.cgi?id=156337 5 6 Reviewed by Carlos Garcia Campos. 7 8 After the http://trac.webkit.org/changeset/198919 was committed 9 it showed that the PPC64 detection is wrong as the CPU(PPC) path was 10 activated even for PPC64. The thing is that GCC defines __ppc__ 11 even on PPC64 and not just on PPC(32). The same applies for S390X. 12 13 * wtf/Platform.h: 14 1 15 2016-04-05 Oliver Hunt <oliver@apple.com> 2 16 -
trunk/Source/WTF/wtf/Platform.h
r199299 r199366 104 104 #endif /* MIPS */ 105 105 106 /* CPU(PPC64) - PowerPC 64-bit Big Endian */ 107 #if ( defined(__ppc64__) \ 108 || defined(__PPC64__)) \ 109 && defined(__BYTE_ORDER__) \ 110 && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) 111 #define WTF_CPU_PPC64 1 112 #define WTF_CPU_BIG_ENDIAN 1 113 #endif 114 115 /* CPU(PPC64) - PowerPC 64-bit Little Endian */ 116 #if ( defined(__ppc64__) \ 117 || defined(__PPC64__) \ 118 || defined(__ppc64le__) \ 119 || defined(__PPC64LE__)) \ 120 && defined(__BYTE_ORDER__) \ 121 && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) 122 #define WTF_CPU_PPC64LE 1 123 #endif 124 106 125 /* CPU(PPC) - PowerPC 32-bit */ 107 126 #if ( defined(__ppc__) \ … … 112 131 || defined(_M_PPC) \ 113 132 || defined(__PPC)) \ 133 && !CPU(PPC64) \ 114 134 && defined(__BYTE_ORDER__) \ 115 135 && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) … … 118 138 #endif 119 139 120 /* CPU(PPC64) - PowerPC 64-bit Big Endian */121 #if ( defined(__ppc64__) \122 || defined(__PPC64__)) \123 && defined(__BYTE_ORDER__) \124 && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)125 #define WTF_CPU_PPC64 1126 #define WTF_CPU_BIG_ENDIAN 1127 #endif128 129 /* CPU(PPC64) - PowerPC 64-bit Little Endian */130 #if ( defined(__ppc64__) \131 || defined(__PPC64__) \132 || defined(__ppc64le__) \133 || defined(__PPC64LE__)) \134 && defined(__BYTE_ORDER__) \135 && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)136 #define WTF_CPU_PPC64LE 1137 #endif138 139 140 /* CPU(SH4) - SuperH SH-4 */ 140 141 #if defined(__SH4__) … … 149 150 150 151 /* CPU(S390) - S390 32-bit */ 151 #if defined(__s390__) 152 #if ( defined(__s390__) \ 153 && !CPU(S390X)) 152 154 #define WTF_CPU_S390 1 153 155 #define WTF_CPU_BIG_ENDIAN 1
Note: See TracChangeset
for help on using the changeset viewer.