From: Kito Cheng Date: Sun, 19 Jan 2014 17:36:00 +0000 (+0000) Subject: builtins.c (expand_movstr): Check movstr expand done or fail. X-Git-Tag: releases/gcc-4.9.0~1578 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c5425fab70b1134c5a544ed5ce35693ea895eb7;p=thirdparty%2Fgcc.git builtins.c (expand_movstr): Check movstr expand done or fail. 2014-01-19 Kito Cheng * gcc/builtins.c (expand_movstr): Check movstr expand done or fail. From-SVN: r206777 --- diff --git a/ChangeLog b/ChangeLog index b210edc71443..99b9df5536f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-01-19 Kito Cheng + + * gcc/builtins.c (expand_movstr): Check movstr expand done or fail. + 2013-12-31 Chung-Lin Tang Sandra Loosemore diff --git a/gcc/builtins.c b/gcc/builtins.c index dc7c85ed184a..983cbc5b9e74 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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_fixed_operand (&ops[1], dest_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) {