* 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.
From-SVN: r41345
+Fri Apr 13 21:40:28 2001 Loren J. Rittle <ljrittle@acm.org>
+
+ * 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.
+
2001-04-13 Alan Modra <alan@linuxcare.com.au>
* pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM
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),
LTI_trunctfdf2,
LTI_memcpy,
+ LTI_memmove,
LTI_bcopy,
LTI_memcmp,
LTI_bcmp,
#define trunctfdf2_libfunc (libfunc_table[LTI_trunctfdf2])
#define memcpy_libfunc (libfunc_table[LTI_memcpy])
+#define memmove_libfunc (libfunc_table[LTI_memmove])
#define bcopy_libfunc (libfunc_table[LTI_bcopy])
#define memcmp_libfunc (libfunc_table[LTI_memcmp])
#define bcmp_libfunc (libfunc_table[LTI_bcmp])
trunctfdf2_libfunc = init_one_libfunc ("__trunctfdf2");
memcpy_libfunc = init_one_libfunc ("memcpy");
+ memmove_libfunc = init_one_libfunc ("memmove");
bcopy_libfunc = init_one_libfunc ("bcopy");
memcmp_libfunc = init_one_libfunc ("memcmp");
bcmp_libfunc = init_one_libfunc ("__gcc_bcmp");