summaryrefslogtreecommitdiff
path: root/debian/patches/armv6_Include_explicitly_IT_instructions.patch
blob: 22ab9d2b43e5c6c8ea44a576bf56dbec0d3f83af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: include explicitly IT instructions to fix build failure without
implicit-it=thumb
Author: Michael Hope <michael.hope@linaro.org>
Bug-Ubuntu: https://launchpad.net/bugs/673085
---
 src/corelib/arch/qatomic_armv6.h |    2 ++
 1 file changed, 2 insertions(+)

--- a/src/corelib/arch/qatomic_armv6.h
+++ b/src/corelib/arch/qatomic_armv6.h
@@ -144,6 +144,7 @@ inline bool QBasicAtomicInt::testAndSetO
     asm volatile("0:\n"
                  "ldrex %[result], [%[_q_value]]\n"
                  "eors %[result], %[result], %[expectedValue]\n"
+                 "itt eq\n"
                  "strexeq %[result], %[newValue], [%[_q_value]]\n"
                  "teqeq %[result], #1\n"
                  "beq 0b\n"
@@ -202,6 +203,7 @@ Q_INLINE_TEMPLATE bool QBasicAtomicPoint
     asm volatile("0:\n"
                  "ldrex %[result], [%[_q_value]]\n"
                  "eors %[result], %[result], %[expectedValue]\n"
+                 "itt eq\n"
                  "strexeq %[result], %[newValue], [%[_q_value]]\n"
                  "teqeq %[result], #1\n"
                  "beq 0b\n"