summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-14 03:39:22 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-14 03:39:22 +0000
commitd5ff563efb040e733b8d0aa88ef4a8b1058cde02 (patch)
tree5b638748d0c466ab143b2c127c2433c3c4b20c1e /gcc/expr.c
parent38bcb5f98be5143c2a1df7880413d3346e02659e (diff)
downloadgcc-d5ff563efb040e733b8d0aa88ef4a8b1058cde02.tar.gz
* expr.h (enum libfunc_index): Add LTI_memmove.
(memmove_libfunc): Define macro. * optabs.c (init_optabs): Initialize memmove_libfunc. * expr.c (expand_assignment): Use memmove_libfunc instead of memcpy_libfunc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41345 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 970c275cde5..61309ae4c7e 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -3935,7 +3935,7 @@ expand_assignment (to, from, want_value, suggest_reg)
TYPE_MODE (sizetype));
#ifdef TARGET_MEM_FUNCTIONS
- emit_library_call (memcpy_libfunc, LCT_NORMAL,
+ emit_library_call (memmove_libfunc, LCT_NORMAL,
VOIDmode, 3, XEXP (to_rtx, 0), Pmode,
XEXP (from_rtx, 0), Pmode,
convert_to_mode (TYPE_MODE (sizetype),