mirror of git://sourceware.org/git/glibc.git
Fix alpha sqrt fegetenv namespace (bug 20768).
On alpha, sqrt (a C90 function) brings in references to fegetenv (C99), resulting in linknamespace test failures: [initial] __sqrt -> [libm.a(w_sqrt.o)] __ieee754_sqrt -> [libm.a(e_sqrt.o)] __feholdexcept -> [libm.a(feholdexcpt.o)] fegetenv This patch fixes this by making __feholdexcept call __fegetenv instead of fegetenv. Tested for Alpha (compilation only). [BZ #20768] * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv instead of fegetenv.
This commit is contained in:
parent
799131036e
commit
860aacdad2
|
@ -1,5 +1,9 @@
|
||||||
2016-11-04 Joseph Myers <joseph@codesourcery.com>
|
2016-11-04 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
[BZ #20768]
|
||||||
|
* sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
|
||||||
|
__fegetenv instead of fegetenv.
|
||||||
|
|
||||||
[BZ #14139]
|
[BZ #14139]
|
||||||
* manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
|
* manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
|
||||||
(find_files): Obtain platform name from libm-test-ulps-name and
|
(find_files): Obtain platform name from libm-test-ulps-name and
|
||||||
|
|
|
@ -23,7 +23,7 @@ int
|
||||||
__feholdexcept (fenv_t *envp)
|
__feholdexcept (fenv_t *envp)
|
||||||
{
|
{
|
||||||
/* Save the current state. */
|
/* Save the current state. */
|
||||||
fegetenv(envp);
|
__fegetenv(envp);
|
||||||
|
|
||||||
/* Clear all exception status bits and exception enable bits. */
|
/* Clear all exception status bits and exception enable bits. */
|
||||||
__ieee_set_fp_control(*envp & SWCR_MAP_MASK);
|
__ieee_set_fp_control(*envp & SWCR_MAP_MASK);
|
||||||
|
|
Loading…
Reference in New Issue