summaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-19 17:43:31 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-19 17:43:31 +0000
commit9f9c06e49c25791a0b675fee3836ceb3430746da (patch)
treedcc5d67908bd12c9c55641cd2be0eb5b94dce453 /gcc/builtins.c
parentc7ad00ba0a974d85088e49e33d4f55b4350212e8 (diff)
downloadgcc-9f9c06e49c25791a0b675fee3836ceb3430746da.tar.gz
* builtins.c (expand_builtin_memmove): If fold_builtin_memmove
succeeds, only expand the result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89282 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c2
1 files changed, 1 insertions, 1 deletions
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)