patches/glibc/ports-2.13/470-alpha-feupdateenv.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
     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