patches/glibc/ports-2.13/470-alpha-feupdateenv.patch
author "Bryan Hundven" <bryanhundven@gmail.com>
Thu Mar 01 15:23:49 2012 -0800 (2012-03-01)
changeset 2909 28ac8fbd9e6a
permissions -rw-r--r--
libg/eglibc: add updated eglibc 2.15

Includes a patch to remove __builtin_expect test:

In eglibc-2.15, the build breaks in configure while testing
for the existance of __builtin_expect. It fails with newer
versions of gcc.

This patch is a modification of an upstream change in glibc
mainline (to be 2.16) to fix the following error:

[CFG ] checking for __builtin_expect... no
[ERROR] configure: error: support for __builtin_expect needed

http://sourceware.org/git/?p=glibc.git;a=commit;h=3857022a761ea7251f8e5c0e45d382ebc3e34cf9

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: coalesce both patches into a single changeset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 2011-03-01  Aurelien Jarno  <aurelien@aurel32.net>
     2 
     3 	* sysdeps/alpha/fpu/feupdateenv.c (feupdateenv): Add
     4 	libm_hidden_def.
     5 	* sysdeps/alpha/fpu/ftestexcept.c (fetestexcept): Likewise.
     6 
     7 diff --git glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c
     8 index c798070..9abbf11 100644
     9 --- glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c
    10 +++ glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c
    11 @@ -46,4 +46,5 @@ strong_alias (__feupdateenv, __old_feupdateenv)
    12  compat_symbol (libm, __old_feupdateenv, feupdateenv, GLIBC_2_1);
    13  #endif
    14  
    15 +libm_hidden_ver (__feupdateenv, feupdateenv)
    16  versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);
    17 diff --git glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c
    18 index a4b3081..34d8113 100644
    19 --- glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c
    20 +++ glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c
    21 @@ -30,3 +30,4 @@ fetestexcept (int excepts)
    22  
    23    return tmp & excepts & SWCR_STATUS_MASK;
    24  }
    25 +libm_hidden_def (fetestexcept)
    26