Merge "Fix mips build."

This commit is contained in:
Elliott Hughes 2015-01-27 19:39:37 +00:00 committed by Gerrit Code Review
commit 86d9896273
6 changed files with 8 additions and 18 deletions

View file

@ -23,12 +23,12 @@ libc_openbsd_src_files_mips += \
#
libc_bionic_src_files_mips += \
arch-mips/string/memcmp.c \
bionic/__memcpy_chk.cpp \
bionic/__memset_chk.cpp \
bionic/__strcpy_chk.cpp \
bionic/__strcat_chk.cpp \
bionic/memchr.c \
bionic/memcmp.c \
bionic/memrchr.c \
bionic/strchr.cpp \
bionic/strnlen.c \
@ -78,11 +78,9 @@ libc_bionic_src_files_mips += \
else
libc_bionic_src_files_mips += \
bionic/memset.c \
libc_openbsd_src_files_mips += \
upstream-openbsd/lib/libc/string/memcpy.c \
upstream-openbsd/lib/libc/string/strlen.c \
arch-mips/string/memcpy.c \
arch-mips/string/memset.c \
arch-mips/string/strlen.c \
endif

View file

@ -57,14 +57,6 @@ memcpy(void *dst0, const void *src0, size_t length)
if (length == 0 || dst == src) /* nothing to do */
goto done;
if ((dst < src && dst + length > src) ||
(src < dst && src + length > dst)) {
struct syslog_data sdata = SYSLOG_DATA_INIT;
syslog_r(LOG_CRIT, &sdata, "backwards memcpy");
abort();
}
/*
* Macros: loop-t-times; and loop-t-times, t>0
*/

View file

@ -10,12 +10,14 @@ libc_bionic_src_files_mips64 += \
bionic/__strcpy_chk.cpp \
bionic/__strcat_chk.cpp \
bionic/memchr.c \
bionic/memcmp.c \
bionic/memrchr.c \
bionic/memset.c \
bionic/strchr.cpp \
bionic/strnlen.c \
bionic/strrchr.cpp \
arch-mips/string/memcmp.c \
arch-mips/string/memcpy.c \
arch-mips/string/memset.c \
arch-mips/string/strlen.c \
libc_freebsd_src_files_mips64 += \
upstream-freebsd/lib/libc/string/wcscat.c \
@ -28,7 +30,6 @@ libc_freebsd_src_files_mips64 += \
upstream-freebsd/lib/libc/string/wmemmove.c \
libc_openbsd_src_files_mips64 += \
upstream-openbsd/lib/libc/string/memcpy.c \
upstream-openbsd/lib/libc/string/memmove.c \
upstream-openbsd/lib/libc/string/stpcpy.c \
upstream-openbsd/lib/libc/string/stpncpy.c \
@ -37,7 +38,6 @@ libc_openbsd_src_files_mips64 += \
upstream-openbsd/lib/libc/string/strcpy.c \
upstream-openbsd/lib/libc/string/strlcat.c \
upstream-openbsd/lib/libc/string/strlcpy.c \
upstream-openbsd/lib/libc/string/strlen.c \
upstream-openbsd/lib/libc/string/strncat.c \
upstream-openbsd/lib/libc/string/strncmp.c \
upstream-openbsd/lib/libc/string/strncpy.c \