Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2021-03-24 13:06:58 +0300
committerCorinna Vinschen <corinna@vinschen.de>2021-04-13 13:55:34 +0300
commitcc19109af966331f76cc8b6fd7c92eec36dc2276 (patch)
treea5f4fb790620ea6546535e7e5914fafc3ee28549 /newlib/libm/machine
parent3b22d722555ab88ff4a9181220bbfc3fa59b94ee (diff)
Cygwin: don't export _feinitialise from newlib
Use the more official fesetenv(FE_DFL_ENV) from _dll_crt0, thus allowing to drop the _feinitialise declaration from fenv.h. Provide a no-op _feinitialise in Cygwin as exportable symbol for really old applications when _feinitialise was called from mainCRTStartup in crt0.o. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libm/machine')
-rw-r--r--newlib/libm/machine/shared_x86/fenv.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libm/machine/shared_x86/fenv.c b/newlib/libm/machine/shared_x86/fenv.c
index 8d1f1ad7f..ccc08e2d8 100644
--- a/newlib/libm/machine/shared_x86/fenv.c
+++ b/newlib/libm/machine/shared_x86/fenv.c
@@ -63,10 +63,8 @@ static inline bool use_sse(void)
return false;
}
-#ifndef __CYGWIN__
/* forward declaration */
static void _feinitialise (void);
-#endif
/* This function enables traps for each of the exceptions as indicated
by the parameter except. The individual exceptions are described in
@@ -451,10 +449,7 @@ fesetprec (int prec)
#endif
/* Set up the FPU and SSE environment at the start of execution. */
-#ifndef __CYGWIN__
-static
-#endif
-void
+static void
_feinitialise (void)
{
extern fenv_t __fe_dfl_env;