builtins.c (expand_builtin_memmove): If fold_builtin_memmove succeeds, only expand...
authorRichard Henderson <rth@redhat.com>
Tue, 19 Oct 2004 17:43:31 +0000 (10:43 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Oct 2004 17:43:31 +0000 (10:43 -0700)
        * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
        succeeds, only expand the result.

From-SVN: r89282

gcc/ChangeLog
gcc/builtins.c

index 6bf70ad6a96c3c33413f3e790c2e170deb59d3ce..e9587a73a23797bee05cd04a52b9ad602558394a 100644 (file)
@@ -1,3 +1,8 @@
+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
index b097adf70b8b23570bcbf3d79bafae8d1ee0e241..57d871aa606d788cb507ca350fb0bb84936c84f0 100644 (file)
@@ -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)