From: Loren J. Rittle Date: Sat, 14 Apr 2001 03:39:22 +0000 (+0000) Subject: expr.h (enum libfunc_index): Add LTI_memmove. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b215b52e59a5fe300f5327a4fd886c9e1673a4c0;p=gcc.git expr.h (enum libfunc_index): Add LTI_memmove. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e5a1cbf1aa9..aadb2017b6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +Fri Apr 13 21:40:28 2001 Loren J. Rittle + + * 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 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM 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), diff --git a/gcc/expr.h b/gcc/expr.h index a68682ecc56..786bcae130e 100644 --- a/gcc/expr.h +++ b/gcc/expr.h @@ -480,6 +480,7 @@ enum libfunc_index LTI_trunctfdf2, LTI_memcpy, + LTI_memmove, LTI_bcopy, LTI_memcmp, LTI_bcmp, @@ -611,6 +612,7 @@ extern rtx libfunc_table[LTI_MAX]; #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]) diff --git a/gcc/optabs.c b/gcc/optabs.c index 4f30779ec43..4068fa863db 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -4763,6 +4763,7 @@ init_optabs () 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");