summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.3/arm-thumb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.3/arm-thumb.patch')
-rw-r--r--meta/packages/gcc/gcc-4.3.3/arm-thumb.patch43
1 files changed, 11 insertions, 32 deletions
diff --git a/meta/packages/gcc/gcc-4.3.3/arm-thumb.patch b/meta/packages/gcc/gcc-4.3.3/arm-thumb.patch
index 016a7a550b..7b0b8b2ddc 100644
--- a/meta/packages/gcc/gcc-4.3.3/arm-thumb.patch
+++ b/meta/packages/gcc/gcc-4.3.3/arm-thumb.patch
@@ -3,34 +3,11 @@
3# Patch managed by http://www.holgerschurig.de/patcher.html 3# Patch managed by http://www.holgerschurig.de/patcher.html
4# 4#
5 5
6--- gcc-4.1.1/gcc/config/arm/lib1funcs.asm~gcc 6Index: gcc-4.3.1/gcc/config/arm/lib1funcs.asm
7+++ gcc-4.1.1/gcc/config/arm/lib1funcs.asm 7===================================================================
8@@ -995,10 +995,24 @@ 8--- gcc-4.3.1.orig/gcc/config/arm/lib1funcs.asm 2007-05-30 12:04:09.000000000 -0700
9 .code 32 9+++ gcc-4.3.1/gcc/config/arm/lib1funcs.asm 2008-08-28 21:51:17.000000000 -0700
10 FUNC_START div0 10@@ -1225,11 +1225,12 @@
11
12+#if ! defined __thumb__
13 stmfd sp!, {r1, lr}
14 mov r0, #SIGFPE
15 bl SYM(raise) __PLT__
16 RETLDM r1
17+#else
18+ push {r1, lr}
19+ mov r0, #SIGFPE
20+ bl SYM(raise) __PLT__
21+#if __ARM_ARCH__ > 4
22+ pop {r1, pc}
23+#else
24+ @ on 4T that won't work
25+ pop {r1}
26+ pop {r3}
27+ bx r3
28+#endif
29+#endif
30
31 FUNC_END div0
32
33@@ -1141,11 +1155,12 @@
34 code here switches to the correct mode before executing the function. */ 11 code here switches to the correct mode before executing the function. */
35 12
36 .text 13 .text
@@ -44,7 +21,7 @@
44 21
45 bx \register 22 bx \register
46 nop 23 nop
47@@ -1242,6 +1257,7 @@ 24@@ -1330,6 +1331,7 @@
48 .code 16 25 .code 16
49 26
50 THUMB_FUNC_START _interwork_call_via_\register 27 THUMB_FUNC_START _interwork_call_via_\register
@@ -52,9 +29,11 @@
52 29
53 bx pc 30 bx pc
54 nop 31 nop
55--- gcc-4.1.1/gcc/config/arm/t-linux~gcc 32Index: gcc-4.3.1/gcc/config/arm/t-linux
56+++ gcc-4.1.1/gcc/config/arm/t-linux 33===================================================================
57@@ -7,6 +7,7 @@ 34--- gcc-4.3.1.orig/gcc/config/arm/t-linux 2008-08-28 21:25:24.000000000 -0700
35+++ gcc-4.3.1/gcc/config/arm/t-linux 2008-08-28 21:51:17.000000000 -0700
36@@ -6,6 +6,7 @@
58 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \ 37 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
59 _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \ 38 _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
60 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \ 39 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \