From 953312a85a77cc8f9760625283b3e80da54541b6 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 19 Oct 2004 10:43:31 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.30.2