Title: [109478] trunk/Source/_javascript_Core
Revision
109478
Author
[email protected]
Date
2012-03-01 18:13:30 -0800 (Thu, 01 Mar 2012)

Log Message

Gcc build fix.

Rubber-stamped by Filip Pizlo.

* wtf/Atomics.h:
(WTF):
(WTF::weakCompareAndSwap):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (109477 => 109478)


--- trunk/Source/_javascript_Core/ChangeLog	2012-03-02 02:04:25 UTC (rev 109477)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-03-02 02:13:30 UTC (rev 109478)
@@ -1,3 +1,13 @@
+2012-03-01  Ryosuke Niwa  <[email protected]>
+
+        Gcc build fix.
+
+        Rubber-stamped by Filip Pizlo.
+
+        * wtf/Atomics.h:
+        (WTF):
+        (WTF::weakCompareAndSwap):
+
 2012-03-01  Gavin Barraclough  <[email protected]>
 
         ES5.1-15.3.5.4. prohibits Function.caller from [[Get]]ting a strict caller

Modified: trunk/Source/_javascript_Core/wtf/Atomics.h (109477 => 109478)


--- trunk/Source/_javascript_Core/wtf/Atomics.h	2012-03-02 02:04:25 UTC (rev 109477)
+++ trunk/Source/_javascript_Core/wtf/Atomics.h	2012-03-02 02:13:30 UTC (rev 109478)
@@ -118,7 +118,11 @@
 
 #endif
 
+#if COMPILER(GCC) && !COMPILER(CLANG) // Work around a gcc bug
+inline bool weakCompareAndSwap(volatile unsigned* location, unsigned expected, unsigned newValue)
+#else
 inline bool weakCompareAndSwap(unsigned* location, unsigned expected, unsigned newValue)
+#endif
 {
 #if ENABLE(COMPARE_AND_SWAP)
     bool result;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to