|
|
2b8e7b |
diff -up webkitgtk-2.0.4/GNUmakefile.in.libatomic webkitgtk-2.0.4/GNUmakefile.in
|
|
|
2b8e7b |
--- webkitgtk-2.0.4/GNUmakefile.in.libatomic 2013-07-19 14:12:04.000000000 +0200
|
|
|
2b8e7b |
+++ webkitgtk-2.0.4/GNUmakefile.in 2013-10-01 13:29:45.078869244 +0200
|
|
|
2b8e7b |
@@ -20865,6 +20865,7 @@ libWTF_la_CXXFLAGS = \
|
|
|
2b8e7b |
$(libWTF_la_CFLAGS)
|
|
|
2b8e7b |
|
|
|
2b8e7b |
libWTF_la_CFLAGS = \
|
|
|
2b8e7b |
+ -latomic \
|
|
|
2b8e7b |
-fstrict-aliasing \
|
|
|
2b8e7b |
-O3 \
|
|
|
2b8e7b |
$(global_cflags) \
|
|
|
2b8e7b |
@@ -22244,6 +22245,7 @@ Programs_WebKitPluginProcess_SOURCES = \
|
|
|
2b8e7b |
|
|
|
2b8e7b |
Programs_WebKitPluginProcess_LDADD = \
|
|
|
2b8e7b |
-lpthread \
|
|
|
2b8e7b |
+ -latomic \
|
|
|
2b8e7b |
libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
|
|
|
2b8e7b |
WebCoreLayerGtk2.a \
|
|
|
2b8e7b |
$(CAIRO_LIBS) \
|
|
|
2b8e7b |
diff -up webkitgtk-2.0.4/Source/WebKit2/GNUmakefile.am.libatomic webkitgtk-2.0.4/Source/WebKit2/GNUmakefile.am
|
|
|
2b8e7b |
diff -up webkitgtk-2.0.4/Source/WTF/GNUmakefile.am.libatomic webkitgtk-2.0.4/Source/WTF/GNUmakefile.am
|
|
|
2b8e7b |
--- webkitgtk-2.0.4/Source/WTF/GNUmakefile.am.libatomic 2012-07-19 12:02:14.000000000 +0200
|
|
|
2b8e7b |
+++ webkitgtk-2.0.4/Source/WTF/GNUmakefile.am 2013-10-01 13:26:50.971876621 +0200
|
|
|
2b8e7b |
@@ -25,6 +25,7 @@ libWTF_la_CXXFLAGS = \
|
|
|
2b8e7b |
$(libWTF_la_CFLAGS)
|
|
|
2b8e7b |
|
|
|
2b8e7b |
libWTF_la_CFLAGS = \
|
|
|
2b8e7b |
+ -latomic \
|
|
|
2b8e7b |
-fstrict-aliasing \
|
|
|
2b8e7b |
-O3 \
|
|
|
2b8e7b |
$(global_cflags) \
|
|
|
2b8e7b |
diff -up webkitgtk-2.0.4/Source/WTF/wtf/Atomics.h.libatomic webkitgtk-2.0.4/Source/WTF/wtf/Atomics.h
|
|
|
2b8e7b |
--- webkitgtk-2.0.4/Source/WTF/wtf/Atomics.h.libatomic 2013-07-19 09:03:53.000000000 +0200
|
|
|
2b8e7b |
+++ webkitgtk-2.0.4/Source/WTF/wtf/Atomics.h 2013-10-01 13:26:50.971876621 +0200
|
|
|
2b8e7b |
@@ -107,6 +107,17 @@ inline int atomicDecrement(int volatile*
|
|
|
2b8e7b |
inline int atomicIncrement(int volatile* addend) { return __atomic_inc(addend) + 1; }
|
|
|
2b8e7b |
inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend) - 1; }
|
|
|
2b8e7b |
|
|
|
2b8e7b |
+#elif COMPILER(GCC) && (__GNUC__ > 4 || (__GNUC__ == 4 \
|
|
|
2b8e7b |
+ && (__GNUC_MINOR__ > 8 || (__GNUC_MINOR__ == 8 \
|
|
|
2b8e7b |
+ && (__GNUC_PATCHLEVEL__ > 0 || (__GNUC_PATCHLEVEL__ == 0)))))) \
|
|
|
2b8e7b |
+ && CPU(PPC)
|
|
|
2b8e7b |
+#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1
|
|
|
2b8e7b |
+inline int atomicIncrement(int volatile* addend) { return __atomic_fetch_add(addend, 1, __ATOMIC_ACQ_REL); }
|
|
|
2b8e7b |
+inline int atomicDecrement(int volatile* addend) { return __atomic_fetch_sub(addend, 1, __ATOMIC_ACQ_REL); }
|
|
|
2b8e7b |
+
|
|
|
2b8e7b |
+inline int64_t atomicIncrement(int64_t volatile* addend) { return __atomic_fetch_add(addend, 1, __ATOMIC_ACQ_REL); }
|
|
|
2b8e7b |
+inline int64_t atomicDecrement(int64_t volatile* addend) { return __atomic_fetch_sub(addend, 1, __ATOMIC_ACQ_REL); }
|
|
|
2b8e7b |
+
|
|
|
2b8e7b |
#elif COMPILER(GCC) && !CPU(SPARC64) // sizeof(_Atomic_word) != sizeof(int) on sparc64 gcc
|
|
|
2b8e7b |
#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1
|
|
|
2b8e7b |
|