summaryrefslogtreecommitdiffstats
path: root/recipes-core/llvm/llvm2.8/0019-issue6065.patch
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2011-12-21 16:54:41 +0100
committerHenning Heinold <heinold@inf.fu-berlin.de>2011-12-22 13:44:17 +0100
commit85b69446da92ad119ced3353787fe57391006969 (patch)
tree2826e3fbc9339948e445be1463471f39a0a22ea7 /recipes-core/llvm/llvm2.8/0019-issue6065.patch
parent3dfe9775bf13ee02b9f20fe61e7fabef0268a0e2 (diff)
downloadmeta-java-85b69446da92ad119ced3353787fe57391006969.tar.gz
llvm: add llvm 2.8, because it is the last know working version for arm
* we need static libs, because shared libs are not allowed with cmake * disable llvm-mc because it is no buildable with static libs and cmake Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Diffstat (limited to 'recipes-core/llvm/llvm2.8/0019-issue6065.patch')
-rw-r--r--recipes-core/llvm/llvm2.8/0019-issue6065.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-core/llvm/llvm2.8/0019-issue6065.patch b/recipes-core/llvm/llvm2.8/0019-issue6065.patch
new file mode 100644
index 0000000..a7f7bbe
--- /dev/null
+++ b/recipes-core/llvm/llvm2.8/0019-issue6065.patch
@@ -0,0 +1,20 @@
1---
2 ARMJITInfo.cpp | 6 ++++++
3 1 file changed, 6 insertions(+)
4
5--- a/lib/Target/ARM/ARMJITInfo.cpp
6+++ b/lib/Target/ARM/ARMJITInfo.cpp
7@@ -99,7 +99,13 @@
8 // The above twiddling of the saved return addresses allows us to
9 // deallocate everything, including the LR the stub saved, all in one
10 // pop instruction.
11+#ifndef __thumb__
12 "ldmia sp!, {r0, r1, r2, r3, lr, pc}\n"
13+#else
14+ // thumb dont allow lr and pc to be poped in the same instruction.
15+ "pop {r0, r1, r2, r3, lr}\n"
16+ "pop {pc}\n"
17+#endif
18 );
19 #else // Not an ARM host
20 void ARMCompilationCallback() {