From: Ulrich Drepper Date: Mon, 27 Apr 2009 04:01:16 +0000 (+0000) Subject: * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in X-Git-Tag: upstream/2.30~13636 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49768bb93e4960a814563ee30213eaf36e6dcb48;p=external%2Fglibc.git * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in atanh should set ERANGE. --- diff --git a/ChangeLog b/ChangeLog index 6109ec7..10a28da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-04-26 Ulrich Drepper + * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in + atanh should set ERANGE. + [BZ #10087] * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access result of lookup to make call to implement STT_GNU_IFUNC. diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c index c13d11f..ede5157 100644 --- a/sysdeps/ieee754/k_standard.c +++ b/sysdeps/ieee754/k_standard.c @@ -692,7 +692,7 @@ static double zero = 0.0; /* used as const */ ? "atanhf" : "atanhl"); exc.retval = x/zero; /* sign(x)*inf */ if (_LIB_VERSION == _POSIX_) - __set_errno (EDOM); + __set_errno (ERANGE); else if (!matherr(&exc)) { if (_LIB_VERSION == _SVID_) { (void) WRITE2("atanh: SING error\n", 18);