mips: avoid calling memcpy() from memmove() for MIPS arch
commite94e6f4bd91c92c7e1cc21d82ed9320dd722add2
authorPetar Jovanovic <petar.jovanovic@rt-rk.com>
Fri, 28 Jun 2019 15:41:37 +0000 (28 15:41 +0000)
committerWaldemar Brodkorb <wbx@openadk.org>
Fri, 5 Jul 2019 12:48:35 +0000 (5 14:48 +0200)
treeee1fc8f9c673e0018433a336fab2682020056a25
parent028d28e6a9654c9addfc4fe1af9b6dd9bd464680
mips: avoid calling memcpy() from memmove() for MIPS arch

This is a follow up to an incorrect fix for memmove() problem in:

commit 785dee78552f9ad06819bf7eb1adc05b43110842
Author: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Date:   Mon May 6 13:29:02 2019 +0000

    mips: fix memmove() call when __ARCH_HAS_BWD_MEMCPY__ is not defined

Calling memcpy from memmove should be skipped in two cases:

a) if arch's memcpy uses a backward copying (e.g. SH4)
b) if arch's memcpy is not fully safe for overlapping regions (MIPS)

Signed-off-by: Petar Jovanovic <petar.jovanovic@rt-rk.com>
libc/string/generic/memmove.c