summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-19 02:09:52 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-19 02:09:52 +0000
commit1c0fd705a61e72e315c96bec639b34ecc1c33494 (patch)
treea3abc36c14f0d91e04254e8f028d7d68e3d3124c /toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch
parent1c3b2e75952b91d8397a87a473d11f18131a8c3c (diff)
add a gcc variant based on gcc 4.3.3 with codesourcery enhancements
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18059 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch')
-rw-r--r--toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch b/toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch
new file mode 100644
index 0000000000..24b3720726
--- /dev/null
+++ b/toolchain/gcc/patches/4.3.3+cs/420-fix_pr26515.patch
@@ -0,0 +1,13 @@
+--- a/gcc/config/cris/cris.md
++++ b/gcc/config/cris/cris.md
+@@ -4920,7 +4920,9 @@
+ "REGNO (operands[2]) == REGNO (operands[0])
+ && INTVAL (operands[3]) <= 65535 && INTVAL (operands[3]) >= 0
+ && !CONST_OK_FOR_LETTER_P (INTVAL (operands[3]), 'I')
+- && !side_effects_p (operands[1])"
++ && !side_effects_p (operands[1])
++ && (!REG_P (operands[1])
++ || REGNO (operands[1]) <= CRIS_LAST_GENERAL_REGISTER)"
+ ;; FIXME: CC0 valid except for M (i.e. CC_NOT_NEGATIVE).
+ [(set (match_dup 0) (match_dup 4))
+ (set (match_dup 5) (match_dup 6))]