summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2015-02-28 14:38:02 +0300
committerLisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>2015-03-02 15:11:29 +0000
commit9c37660832d74ac696b5238640193646485664f8 (patch)
tree5f72c40f61aaa62af3735b428d3b7a393ca24616
parented5d6c93f7cf902e58aaf3f0abd54b3b258172ed (diff)
Fix build on x32 systems
On Linux x32 ABI, pointer size is different than on classic x86_64 systems, so the current assembly is wrong. To fix this, drop the quad qualifier and let the compiler infer the argument size. This way it will work on both x86_64 and x32. Done-with: Adam Borowski <kilobyte@angband.pl> Change-Id: I7a5f9edbba08705397ce7e771b1567f2a140fb1b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
-rw-r--r--Source/WTF/wtf/Atomics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WTF/wtf/Atomics.h b/Source/WTF/wtf/Atomics.h
index 4b3eb4b88..8f950c718 100644
--- a/Source/WTF/wtf/Atomics.h
+++ b/Source/WTF/wtf/Atomics.h
@@ -188,7 +188,7 @@ inline bool weakCompareAndSwap(void*volatile* location, void* expected, void* ne
#if CPU(X86_64)
bool result;
asm volatile(
- "lock; cmpxchgq %3, %2\n\t"
+ "lock; cmpxchg %3, %2\n\t"
"sete %1"
: "+a"(expected), "=q"(result), "+m"(*location)
: "r"(newValue)