S390: Refactor strlen ifunc handling.
commitff3ca3743a00af749258cc242457b648d65a1537
authorStefan Liebler <stli@linux.ibm.com>
Tue, 18 Dec 2018 12:57:10 +0000 (18 13:57 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Tue, 18 Dec 2018 12:57:10 +0000 (18 13:57 +0100)
treee5e66bbc86535d7cb8e0bccc64faf3240a611c3f
parentd2c4c403feddd6f0b9dbf31ca7541b37f90ee30a
S390: Refactor strlen ifunc handling.

The ifunc handling for strlen 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 strlen variants.
* sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
* sysdeps/s390/multiarch/ifunc-impl-list.c
(__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
* sysdeps/s390/multiarch/strlen-c.c: Move to ...
* sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
* sysdeps/s390/multiarch/strlen-vx.S: Move to ...
* sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
* sysdeps/s390/multiarch/strlen.c: Move to ...
* sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
* sysdeps/s390/ifunc-strlen.h: New file.
ChangeLog
sysdeps/s390/Makefile
sysdeps/s390/ifunc-strlen.h [new file with mode: 0644]
sysdeps/s390/multiarch/Makefile
sysdeps/s390/multiarch/ifunc-impl-list.c
sysdeps/s390/strlen-c.c [moved from sysdeps/s390/multiarch/strlen-c.c with 78% similarity]
sysdeps/s390/strlen-vx.S [moved from sysdeps/s390/multiarch/strlen-vx.S with 90% similarity]
sysdeps/s390/strlen.c [moved from sysdeps/s390/multiarch/strlen.c with 69% similarity]