tilegx: remove implicit boolean conversion in strstr.
authorChris Metcalf <cmetcalf@ezchip.com>
Mon, 22 Dec 2014 19:50:26 +0000 (14:50 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 22 Dec 2014 19:50:26 +0000 (14:50 -0500)
commit0dacd7a3b9401f7eb7160cf79231a4573773c5da
tree892983bc4ed9757a26a8c0217671ef6dfea94c0c
parent929011700ce09f2bb4f6f650ae95b6eb68145deb
tilegx: remove implicit boolean conversion in strstr.

[BZ #17746]
The __builtin_expect() truncated a uint64_t to a 32-bit long
in ILP32 mode, discarding the high 32 bits, and potentially
missing the NUL terminator that we were searching for with SIMD
operations.  Explicitly compare to zero to fix the problem.
ChangeLog
NEWS
sysdeps/tile/tilegx/strstr.c