xref: /OK3568_Linux_fs/yocto/meta-qt5/recipes-qt/qt5/qtwebkit/mips-atomic.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1fix build on mips
2
3Fixes
4Source/WTF/wtf/Atomics.cpp:63:9: error: definition of builtin function '__sync_add_and_fetch_8'
5int64_t __sync_add_and_fetch_8(int64_t volatile* addend, int64_t value)
6Source/WTF/wtf/Atomics.cpp:68:9: error: definition of builtin function '__sync_sub_and_fetch_8'
7int64_t __sync_sub_and_fetch_8(int64_t volatile* addend, int64_t value)
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12--- a/Source/WTF/wtf/Platform.h
13+++ b/Source/WTF/wtf/Platform.h
14@@ -88,6 +88,7 @@
15 #else
16 #define WTF_CPU_MIPS 1
17 #define WTF_MIPS_ARCH __mips
18+#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
19 #endif
20 #if defined(__MIPSEB__)
21 #define WTF_CPU_BIG_ENDIAN 1
22