]> git.ipfire.org Git - thirdparty/glibc.git/commit
S390: Refactor strchr ifunc handling.
authorStefan Liebler <stli@linux.ibm.com>
Tue, 18 Dec 2018 12:57:14 +0000 (13:57 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Tue, 18 Dec 2018 12:57:14 +0000 (13:57 +0100)
commit32f12653d4ea2fbff409351bf8067f9a0b4a3963
treed35734238850cb4d53774f6656cef864c7ce34d5
parent316b88421993d540513a6b25b59ec16df267e9b4
S390: Refactor strchr ifunc handling.

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