1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

Remove remaining _HAVE_STRING_ARCH_* definitions (BZ #18858)

Since the removal of bits/string.h, _HAVE_STRING_ARCH_* are no
longer used.  This patch removes the unused macros from i686
and x86_64 sysdeps folder.

Checked on x86_64-linux-gnu and i686-linux-gnu.

	* sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
	Remove define.
	* sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
	Likewise.
	* sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
	Likewise.
	* sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
	Likewise.
	* sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
	Likewise.
	* sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
	Likewise.
	* sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
	Likewise.
This commit is contained in:
Adhemerval Zanella
2017-09-06 14:35:23 -03:00
parent ab5ac271e6
commit 65687ac76c
8 changed files with 17 additions and 7 deletions

View File

@@ -1,3 +1,20 @@
2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
Remove define.
* sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
Likewise.
* sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
Likewise.
* sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
Likewise.
* sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
Likewise.
* sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
Likewise.
* sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
Likewise.
2017-09-06 Florian Weimer <fweimer@redhat.com> 2017-09-06 Florian Weimer <fweimer@redhat.com>
* malloc/dynarray_emplace_enlarge.c * malloc/dynarray_emplace_enlarge.c

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_strncpy 1
# define strncpy __redirect_strncpy # define strncpy __redirect_strncpy
# include <string.h> # include <string.h>
# undef strncpy # undef strncpy

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_stpcpy 1
# define stpcpy __redirect_stpcpy # define stpcpy __redirect_stpcpy
# define __stpcpy __redirect___stpcpy # define __stpcpy __redirect___stpcpy
# define NO_MEMPCPY_STPCPY_REDIRECT # define NO_MEMPCPY_STPCPY_REDIRECT

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_strcspn 1
# define strcspn __redirect_strcspn # define strcspn __redirect_strcspn
# include <string.h> # include <string.h>
# undef strcspn # undef strcspn

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_strncat 1
# define strncat __redirect_strncat # define strncat __redirect_strncat
# include <string.h> # include <string.h>
# undef strncat # undef strncat

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_strncpy 1
# define strncpy __redirect_strncpy # define strncpy __redirect_strncpy
# include <string.h> # include <string.h>
# undef strncpy # undef strncpy

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_strpbrk 1
# define strpbrk __redirect_strpbrk # define strpbrk __redirect_strpbrk
# include <string.h> # include <string.h>
# undef strpbrk # undef strpbrk

View File

@@ -19,7 +19,6 @@
/* Define multiple versions only for the definition in libc. */ /* Define multiple versions only for the definition in libc. */
#if IS_IN (libc) #if IS_IN (libc)
# define _HAVE_STRING_ARCH_strspn 1
# define strspn __redirect_strspn # define strspn __redirect_strspn
# include <string.h> # include <string.h>
# undef strspn # undef strspn