bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strstr is linear test fails on my machine with glibc 2.13


From: Eric Blake
Subject: Re: strstr is linear test fails on my machine with glibc 2.13
Date: Tue, 19 Jul 2011 15:48:49 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11

On 07/19/2011 03:45 PM, Bruno Haible wrote:
Eric Blake wrote:
Known glibc bug when using glibc 2.11 or newer on an SSE4.2-enabled chip:
http://sourceware.org/bugzilla/show_bug.cgi?id=12100

Unless it is fixed, let's update the comments and cross-compilation guess.


@@ -93,13 +93,15 @@
      return result;
      ]])],
          [gl_cv_func_strstr_linear=yes], [gl_cv_func_strstr_linear=no],
-        [dnl Only glibc>  2.12 and cygwin>  1.7.7 are known to have a
-         dnl bug-free strstr that works in linear time.
+        [dnl Only glibc>  2.12 on processors without SSE 4.2 instructions and
+         dnl cygwin>  1.7.7 are known to have a bug-free strstr that works in
+         dnl linear time.

           AC_EGREP_CPP([Lucky user],
             [
  #include<features.h>
  #ifdef __GNU_LIBRARY__
   #if ((__GLIBC__ == 2&&  __GLIBC_MINOR__>  12) || (__GLIBC__>  2)) \
+&&  !(defined __i386__ || defined __x86_64__) \

Makes sense to me.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]