]> sourceware.org Git - newlib-cygwin.git/commitdiff
newlib: mips: delete glibc-specific logic
authorMike Frysinger <vapier@gentoo.org>
Tue, 9 Nov 2021 03:18:43 +0000 (22:18 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 10 Nov 2021 00:21:13 +0000 (19:21 -0500)
This code looks like it's written to be copied & pasted between diff
C libraries and relies on _LIBC only being used with glibc.  This will
break when newlib changes from _COMPILING_NEWLIB to _LIBC, so delete
the glibc-specific logic ahead of time.

newlib/libc/machine/mips/memcpy.S
newlib/libc/machine/mips/memset.S
newlib/libc/machine/mips/strcmp.S

index 21bd3b4f439b136c5603e813c30b0d5b982e83cd..cbf06e367a28ff3e8797ce8dca994c45fbe35932 100644 (file)
 # define USE_MEMMOVE_FOR_OVERLAP
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
-#elif _LIBC
-# include <sysdep.h>
-# include <regdef.h>
-# include <sys/asm.h>
-# define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
-# define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #elif _COMPILING_NEWLIB
 # include "machine/asm.h"
 # include "machine/regdef.h"
@@ -877,8 +871,3 @@ L(r6_unaligned7):
        .set    at
        .set    reorder
 END(MEMCPY_NAME)
-#ifndef ANDROID_CHANGES
-# ifdef _LIBC
-libc_hidden_builtin_def (MEMCPY_NAME)
-# endif
-#endif
index 565fc7e308e5ecb6bb4a66cf8cea2c5c3750e2ed..3f1c8be0ead1da218fcffb497afb3d86b498422c 100644 (file)
 # include "machine/asm.h"
 # include "machine/regdef.h"
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
-#elif _LIBC
-# include <sysdep.h>
-# include <regdef.h>
-# include <sys/asm.h>
-# define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #elif _COMPILING_NEWLIB
 # include "machine/asm.h"
 # include "machine/regdef.h"
@@ -430,8 +425,3 @@ L(leave):
        .set    at
        .set    reorder
 END(MEMSET_NAME)
-#ifndef ANDROID_CHANGES
-# ifdef _LIBC
-libc_hidden_builtin_def (MEMSET_NAME)
-# endif
-#endif
index b1d757ee3ee0b8d99f0f4d8efef8d732c043d80f..efc41614899d8ff420601ddca61fa96dd8639897 100644 (file)
 #ifdef ANDROID_CHANGES
 # include "machine/asm.h"
 # include "machine/regdef.h"
-#elif _LIBC
-# include <sysdep.h>
-# include <regdef.h>
-# include <sys/asm.h>
 #elif _COMPILING_NEWLIB
 # include "machine/asm.h"
 # include "machine/regdef.h"
@@ -254,8 +250,3 @@ L(bexit89):
        .set    reorder
 
 END(STRCMP_NAME)
-#ifndef ANDROID_CHANGES
-# ifdef _LIBC
-libc_hidden_builtin_def (STRCMP_NAME)
-# endif
-#endif
This page took 0.037409 seconds and 5 git commands to generate.