mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
PowerPC: Fix __fe_mask_env export
This patch does not export __fe_mask_env anymore, only providing a compatibility symbol. It fixes BZ#14143.
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
#include <sysdep.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <kernel-features.h>
|
||||
#include <shlib-compat.h>
|
||||
|
||||
const fenv_t *
|
||||
__fe_nomask_env (void)
|
||||
@ -32,4 +33,6 @@ __fe_nomask_env (void)
|
||||
|
||||
return FE_ENABLED_ENV;
|
||||
}
|
||||
libm_hidden_def (__fe_nomask_env)
|
||||
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_18)
|
||||
compat_symbol (libm, __fe_nomask_env, __fe_nomask_env, GLIBC_2_1);
|
||||
#endif
|
||||
|
@ -27,9 +27,8 @@ const fenv_t *
|
||||
__fe_mask_env (void)
|
||||
{
|
||||
#if defined PR_SET_FPEXC && defined PR_FP_EXC_DISABLED
|
||||
int result;
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
|
||||
INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
|
||||
#else
|
||||
__set_errno (ENOSYS);
|
||||
#endif
|
||||
|
@ -22,17 +22,19 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <kernel-features.h>
|
||||
#include <shlib-compat.h>
|
||||
|
||||
const fenv_t *
|
||||
__fe_nomask_env (void)
|
||||
{
|
||||
#if defined PR_SET_FPEXC && defined PR_FP_EXC_PRECISE
|
||||
int result;
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
|
||||
INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
|
||||
#else
|
||||
__set_errno (ENOSYS);
|
||||
#endif
|
||||
return FE_ENABLED_ENV;
|
||||
}
|
||||
libm_hidden_def (__fe_nomask_env)
|
||||
#if SHLIB_COMPAT (libm, GLIBC_2_3, GLIBC_2_18)
|
||||
compat_symbol (libm, __fe_nomask_env, __fe_nomask_env, GLIBC_2_3);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user