aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-4.5
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2011-02-08 01:25:38 +0000
committerKhem Raj <raj.khem@gmail.com>2011-02-23 18:55:20 -0800
commit95896c5c12d72cb4f1c8577e2910f326988778a6 (patch)
treece8be12e6921e001b520df19448440874363f413 /recipes/gcc/gcc-4.5
parent84f27c7901934ee8c18002a0fe8872e5a03946a2 (diff)
downloadopenembedded-95896c5c12d72cb4f1c8577e2910f326988778a6.tar.gz
gcc-4.5: added thumb2 build patch
Fix for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43999 and is required to build gcc for Thumb2 only architectures (e.g. Cortex-M3). Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc/gcc-4.5')
-rwxr-xr-xrecipes/gcc/gcc-4.5/arm-lib1funcs.as-fix-mismatch-between-conditions-of-an-IT-block.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-4.5/arm-lib1funcs.as-fix-mismatch-between-conditions-of-an-IT-block.patch b/recipes/gcc/gcc-4.5/arm-lib1funcs.as-fix-mismatch-between-conditions-of-an-IT-block.patch
new file mode 100755
index 0000000000..39c90e7e74
--- /dev/null
+++ b/recipes/gcc/gcc-4.5/arm-lib1funcs.as-fix-mismatch-between-conditions-of-an-IT-block.patch
@@ -0,0 +1,18 @@
+Fix for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43999
+
+http://patchwork.ozlabs.org/patch/72260/ is the patch that made into
+upstream gcc
+
+diff --git a/gcc/config/arm/lib1funcs.asm b/gcc/config/arm/lib1funcs.asm
+index 085e690..2e76c01 100644
+--- a/gcc/config/arm/lib1funcs.asm
++++ b/gcc/config/arm/lib1funcs.asm
+@@ -641,7 +641,7 @@ pc .req r15
+ subhs \dividend, \dividend, \divisor, lsr #3
+ orrhs \result, \result, \curbit, lsr #3
+ cmp \dividend, #0 @ Early termination?
+- do_it hs, t
++ do_it ne, t
+ movnes \curbit, \curbit, lsr #4 @ No, any more bits to do?
+ movne \divisor, \divisor, lsr #4
+ bne 1b