From 3459e23dd4ae4aa8999df7111d833a0bb9add7cd Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Tue, 18 Dec 2018 13:57:21 +0100 Subject: S390: Refactor wcscmp ifunc handling. The ifunc handling for wcscmp 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 wcscmp variants. * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp. * sysdeps/s390/multiarch/wcscmp-c.c: Move to ... * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling. * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ... * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling. * sysdeps/s390/multiarch/wcscmp.c: Move to ... * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling. * sysdeps/s390/ifunc-wcscmp.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 cb8dd2134f..00398ba6c2 100644 --- a/sysdeps/s390/Makefile +++ b/sysdeps/s390/Makefile @@ -90,5 +90,6 @@ sysdep_routines += wcslen wcslen-vx wcslen-c \ wcsncpy wcsncpy-vx wcsncpy-c \ wcpncpy wcpncpy-vx wcpncpy-c \ wcscat wcscat-vx wcscat-c \ - wcsncat wcsncat-vx wcsncat-c + wcsncat wcsncat-vx wcsncat-c \ + wcscmp wcscmp-vx wcscmp-c endif -- cgit 1.4.1