add a gcc variant based on gcc 4.3.3 with codesourcery enhancements
[openwrt/staging/chunkeey.git] / toolchain / gcc / patches / 4.3.3+cs / 420-fix_pr26515.patch
1 --- a/gcc/config/cris/cris.md
2 +++ b/gcc/config/cris/cris.md
3 @@ -4920,7 +4920,9 @@
4 "REGNO (operands[2]) == REGNO (operands[0])
5 && INTVAL (operands[3]) <= 65535 && INTVAL (operands[3]) >= 0
6 && !CONST_OK_FOR_LETTER_P (INTVAL (operands[3]), 'I')
7 - && !side_effects_p (operands[1])"
8 + && !side_effects_p (operands[1])
9 + && (!REG_P (operands[1])
10 + || REGNO (operands[1]) <= CRIS_LAST_GENERAL_REGISTER)"
11 ;; FIXME: CC0 valid except for M (i.e. CC_NOT_NEGATIVE).
12 [(set (match_dup 0) (match_dup 4))
13 (set (match_dup 5) (match_dup 6))]