aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-10-19 10:43:31 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-10-19 10:43:31 -0700
commit953312a85a77cc8f9760625283b3e80da54541b6 (patch)
treedcc5d67908bd12c9c55641cd2be0eb5b94dce453 /gcc/builtins.c
parenta8afd3ac1468d88711b8ca0496744c459811d27d (diff)
downloadgcc-953312a85a77cc8f9760625283b3e80da54541b6.zip
gcc-953312a85a77cc8f9760625283b3e80da54541b6.tar.gz
gcc-953312a85a77cc8f9760625283b3e80da54541b6.tar.bz2
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
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 b097adf..57d871a 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)