re PR target/43742 (web.c/union_match_dups segfaults for a null *ref on sh-elf)

PR target/43742
	* config/sh/sh.md (doloop_end_split): Remove "+r" constraint
	in an input-only operand.

From-SVN: r158361
This commit is contained in:
Kaz Kojima 2010-04-14 23:58:10 +00:00
parent 2bd1333d62
commit fa66fc4052
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/43742
* config/sh/sh.md (doloop_end_split): Remove "+r" constraint
in an input-only operand.
2010-04-15 Anatoly Sokolov <aesok@post.ru>
* double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.

View File

@ -7050,7 +7050,7 @@ label:
(define_insn_and_split "doloop_end_split"
[(set (pc)
(if_then_else (ne:SI (match_operand:SI 0 "arith_reg_dest" "+r")
(if_then_else (ne:SI (match_operand:SI 0 "arith_reg_dest" "")
(const_int 1))
(label_ref (match_operand 1 "" ""))
(pc)))