This is the mail archive of the
mailing list for the glibc project.
Proposal to handle __strstr_sse42 and friends issue on x86
- From: Allan McRae <allan at archlinux dot org>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 11 Dec 2013 10:55:01 +1000
- Subject: Proposal to handle __strstr_sse42 and friends issue on x86
- Authentication-results: sourceware.org; auth=none
For those who need some background, see . In short, there is an
issue with __strstr_sse42 on x86 which has a variety of workarounds.
Some distributions re-add the inline statement, which is clearly fragile
and not a fix. Others remove the sse42 string functions - see .
I am going to propose we adopt the removal of the SSE42 routines. We
can not ensure that binaries are built with a new enough compiler (gcc
after 2000) and keep backwards compatibility. Also, ensuring the stack
is aligned when entering these functions would be a performance hit that
would likely remove any advantage of the sse42 routine (not tested...),
and there are proposals to remove the sse42 routines for both x86 and
x86_64 due to quadratic complexity anyway [3,4].
So applying the patch in  seems the best approach to me? Any