summaryrefslogtreecommitdiff
path: root/debian/patches/21_fix_ppc_build.diff
blob: 5f4a12b94e05270898ce263cf39c866ae5560907 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/corelib/arch/qatomic_powerpc.h
+++ b/src/corelib/arch/qatomic_powerpc.h
@@ -188,7 +188,7 @@ inline bool QBasicAtomicInt::testAndSetR
                  "lwarx  %[result]," _Q_VALUE "\n"
                  "xor.   %[result], %[result], %[expectedValue]\n"
                  "bne    $+12\n"
-                 "stwcx. %[newValue],0,%[_q_value]\n"
+                 "stwcx. %[newValue]," _Q_VALUE "\n"
                  "bne-   $-16\n"
                  : [result] "=&r" (result),
                    _Q_VALUE_MEMORY_OPERAND