From: Richard Henderson Date: Tue, 19 Oct 2004 17:43:31 +0000 (-0700) Subject: builtins.c (expand_builtin_memmove): If fold_builtin_memmove succeeds, only expand... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=953312a85a77cc8f9760625283b3e80da54541b6;p=gcc.git builtins.c (expand_builtin_memmove): If fold_builtin_memmove succeeds, only expand the result. * builtins.c (expand_builtin_memmove): If fold_builtin_memmove succeeds, only expand the result. From-SVN: r89282 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6bf70ad6a96..e9587a73a23 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-19 Richard Hendeson + + * builtins.c (expand_builtin_memmove): If fold_builtin_memmove + succeeds, only expand the result. + 2004-10-19 Richard Hendeson PR middle-end/17885 diff --git a/gcc/builtins.c b/gcc/builtins.c index b097adf70b8..57d871aa606 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -2725,7 +2725,7 @@ expand_builtin_memmove (tree arglist, tree type, rtx target, tree result = fold_builtin_memmove (arglist, type); if (result) - expand_expr (result, target, mode, EXPAND_NORMAL); + return expand_expr (result, target, mode, EXPAND_NORMAL); /* If DEST is not a pointer type, call the normal function. */ if (dest_align == 0)