Patchwork [2/2] gcc: Add movt fix patch for gcc 1.13.2.

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date May 7, 2013, 11:37 a.m.
Message ID <65105204f67bed9674a967eaea6063ba45f7ec73.1367926493.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/242183/
State RFC
Delegated to: Esben Haabendal
Headers show

Comments

christian.braunersorensen@prevas.dk - May 7, 2013, 11:37 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

It is fixed in on branch 4.6. Taken from:
http://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/
arm/arm.md?r1=171000&r2=170999&pathrev=171000
---
 recipes/crosstool-ng/gcc-1.13/armv7-movt-fix.patch | 11 +++++++++++
 recipes/crosstool-ng/gcc_1.13.2.oe                 |  2 ++
 2 files changed, 13 insertions(+)
 create mode 100644 recipes/crosstool-ng/gcc-1.13/armv7-movt-fix.patch

Patch

diff --git a/recipes/crosstool-ng/gcc-1.13/armv7-movt-fix.patch b/recipes/crosstool-ng/gcc-1.13/armv7-movt-fix.patch
new file mode 100644
index 0000000..b214cd1
--- /dev/null
+++ b/recipes/crosstool-ng/gcc-1.13/armv7-movt-fix.patch
@@ -0,0 +1,11 @@ 
+--- gcc-4.5.3/gcc/config/arm/arm.md.orig	2013-05-07 09:16:06.978988829 +0000
++++ gcc-4.5.3/gcc/config/arm/arm.md	2013-05-07 09:18:35.701527538 +0000
+@@ -11192,7 +11192,7 @@
+                    (const_int 16))
+         (match_operand:SI 1 "const_int_operand" ""))]
+   "arm_arch_thumb2"
+-  "movt%?\t%0, %c1"
++  "movt%?\t%0, %L1"
+  [(set_attr "predicable" "yes")
+    (set_attr "length" "4")]
+ )
diff --git a/recipes/crosstool-ng/gcc_1.13.2.oe b/recipes/crosstool-ng/gcc_1.13.2.oe
index bd08151..59c228b 100644
--- a/recipes/crosstool-ng/gcc_1.13.2.oe
+++ b/recipes/crosstool-ng/gcc_1.13.2.oe
@@ -40,6 +40,7 @@  require gcc.inc
 SRC_URI += "file://glibc-rpc-export-again.patch;apply=0"
 SRC_URI += "file://glibc-2.14.1-cpuid-1.patch;apply=0"
 SRC_URI += "file://pandaboard-thumb.patch;apply=0"
+SRC_URI += "file://armv7-movt-fix.patch;apply=0"
 
 do_unpack[postfuncs] += "do_unpack_mvpatches"
 do_unpack_mvpatches () {
@@ -49,4 +50,5 @@  do_unpack_mvpatches () {
 
 	mkdir -p ${S}/gcc/4.5.3
 	mv ${SRCDIR}/pandaboard-thumb.patch ${S}/gcc/4.5.3
+	mv ${SRCDIR}/armv7-movt-fix.patch ${S}/gcc/4.5.3
 }