]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.3.2/glibc23-cmov.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.3.2 / glibc23-cmov.patch
1 --- libc/sysdeps/unix/sysv/linux/i386/dl-procinfo.h     2002-09-22 06:14:11.000000000 +0900
2 +++ libc/sysdeps/unix/sysv/linux/i386/dl-procinfo.h.new 2003-01-19 01:18:55.000000000 +0900
3 @@ -92,7 +92,7 @@
4    HWCAP_I386_AMD3D = 1 << 31,
5  
6    /* XXX Which others to add here?  */
7 -  HWCAP_IMPORTANT = (HWCAP_I386_MMX)
8 +  HWCAP_IMPORTANT = (HWCAP_I386_MMX | HWCAP_I386_CMOV)
9  
10  };
11  
12 --- libc/sysdeps/generic/dl-cache.c     2003-02-02 05:33:47.000000000 +0900
13 +++ libc/sysdeps/generic/dl-cache.c.new1        2003-02-21 09:18:19.000000000 +0900
14 @@ -260,6 +260,12 @@
15        if (platform != (uint64_t) -1)
16         platform = 1ULL << platform;
17  
18 +#ifdef USE_TLS
19 +# define TLS_BIT (1ULL << 63)
20 +#else
21 +# define TLS_BIT 0
22 +#endif
23 +
24        /* Only accept hwcap if it's for the right platform.  */
25  #define HWCAP_CHECK \
26        if (GL(dl_osversion)                                                   \
27 @@ -271,7 +277,8 @@
28           && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform)                   \
29         continue;                                                             \
30        if (hwcap                                                                      \
31 -         && ((lib->hwcap & *hwcap & ~_DL_HWCAP_PLATFORM) > *hwcap))          \
32 +         && ((lib->hwcap & ~_DL_HWCAP_PLATFORM & (*hwcap | TLS_BIT)) <               \
33 +             (lib->hwcap & ~_DL_HWCAP_PLATFORM)))                            \
34         continue
35        SEARCH_CACHE (cache_new);
36      }