From 25218822bdbfb49b8ea0f419e8a20d2b9bd47cd0 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Tue, 18 Dec 2018 13:57:11 +0100 Subject: S390: Refactor stpncpy ifunc handling. The ifunc handling for stpncpy is adjusted in order to omit ifunc variants if those will never be used as the minimum architecture level already supports newer CPUs by default. Glibc internal calls will then also use the "newer" ifunc variant. ChangeLog: * sysdeps/s390/multiarch/Makefile (sysdep_routines): Remove stpncpy variants. * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy. * sysdeps/s390/multiarch/stpncpy-c.c: Move to ... * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling. * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ... * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling. * sysdeps/s390/multiarch/stpncpy.c: Move to ... * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling. * sysdeps/s390/ifunc-stpncpy.h: New file. --- sysdeps/s390/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/s390/Makefile') diff --git a/sysdeps/s390/Makefile b/sysdeps/s390/Makefile index 7cadf7ceba..f02afd4d02 100644 --- a/sysdeps/s390/Makefile +++ b/sysdeps/s390/Makefile @@ -64,5 +64,6 @@ sysdep_routines += bzero memset memset-z900 \ strnlen strnlen-vx strnlen-c \ strcpy strcpy-vx strcpy-z900 \ stpcpy stpcpy-vx stpcpy-c \ - strncpy strncpy-vx strncpy-z900 + strncpy strncpy-vx strncpy-z900 \ + stpncpy stpncpy-vx stpncpy-c endif -- cgit 1.4.1