Re: [PATCH] valgrind: ignore SSE-based strlen invalid reads
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Mar 16, 2011, 22:43 UTC
- Message-ID
- <m2ei66ofes.fsf@igel.home>
- In-Reply-To
- <1300273819.7214.12.camel@bee.lab.cmartin.tk>
Carlos Martín Nieto <cmn@elego.de> writes:
Show 6 quoted lines
> Looking at that header, strlen is one of the few functions not being > replaced by its __builtin version, and I only see __builtin_strlen in > the C++ patches. I'll rephrase to something like "Some versions of > strlen use SSE which then get inlined" to avoid blaming anyone in > particular, though thinking about it, it does seem logical that it's > GCC's builtin strlen.
All processor optimized versions of strlen in glibc are out-of-line, so any use of SSE can only come from __builtin_strlen.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."