add a gcc variant based on gcc 4.3.3 with codesourcery enhancements
[openwrt.git] / toolchain / gcc / patches / 4.3.3+cs / 420-fix_pr26515.patch
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 (file)
index 0000000..24b3720
--- /dev/null
@@ -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))]
This page took 0.042503 seconds and 4 git commands to generate.