aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/builtins.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6bf70ad..e9587a7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2004-10-19 Richard Hendeson <rth@redhat.com>
+ * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
+ succeeds, only expand the result.
+
+2004-10-19 Richard Hendeson <rth@redhat.com>
+
PR middle-end/17885
* tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
of INDIRECT_REF.
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)