builtins.c (expand_movstr): Check movstr expand done or fail.

2014-01-19  Kito Cheng  <kito@0xlab.org>

	* gcc/builtins.c (expand_movstr): Check movstr expand done or fail.

From-SVN: r206777
This commit is contained in:
Kito Cheng 2014-01-19 17:36:00 +00:00 committed by Richard Sandiford
parent 167492b920
commit 7c5425fab7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-01-19 Kito Cheng <kito@0xlab.org>
* gcc/builtins.c (expand_movstr): Check movstr expand done or fail.
2013-12-31 Chung-Lin Tang <cltang@codesourcery.com> 2013-12-31 Chung-Lin Tang <cltang@codesourcery.com>
Sandra Loosemore <sandra@codesourcery.com> Sandra Loosemore <sandra@codesourcery.com>

View File

@ -3392,7 +3392,8 @@ expand_movstr (tree dest, tree src, rtx target, int endp)
create_output_operand (&ops[0], endp ? target : NULL_RTX, Pmode); create_output_operand (&ops[0], endp ? target : NULL_RTX, Pmode);
create_fixed_operand (&ops[1], dest_mem); create_fixed_operand (&ops[1], dest_mem);
create_fixed_operand (&ops[2], src_mem); create_fixed_operand (&ops[2], src_mem);
expand_insn (CODE_FOR_movstr, 3, ops); if (!maybe_expand_insn (CODE_FOR_movstr, 3, ops))
return NULL_RTX;
if (endp && target != const0_rtx) if (endp && target != const0_rtx)
{ {