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:
authorJeff Johnston <jjohnstn@redhat.com>2019-10-08 23:57:37 +0300
committerJeff Johnston <jjohnstn@redhat.com>2019-10-08 23:59:04 +0300
commitcfc4955234828881145a20987c8a0a3cd373585c (patch)
tree70355bcfcf3da7782a3598451a8c04750d46a1ed /newlib/libm/fenv
parentc561a625af9bdbcc475214036ebbedbcae1cb702 (diff)
Add patch from Joel Sherrill for i386 and x86_64 fenv support
Diffstat (limited to 'newlib/libm/fenv')
-rw-r--r--newlib/libm/fenv/fenv_stub.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/newlib/libm/fenv/fenv_stub.c b/newlib/libm/fenv/fenv_stub.c
new file mode 100644
index 000000000..a4eb652f3
--- /dev/null
+++ b/newlib/libm/fenv/fenv_stub.c
@@ -0,0 +1,23 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * (c) Copyright 2019 Joel Sherrill <joel@rtems.org
+ */
+
+/*
+ * This file is intentionally empty.
+ *
+ * Newlib's build infrastructure needs a machine specific fiel to override
+ * the generic implementation in the library. When a target
+ * implementation of the fenv.h methods puts all methods in a single file
+ * (e.g. fenv.c) or some as inline methods in its <sys/fenv.h>, it will need
+ * to override the default implementation found in a file in this directory.
+ *
+ * For each file that the target's machine directory needs to override,
+ * this file should be symbolically linked to that specific file name
+ * in the target directory. For example, the target may use fe_dfl_env.c
+ * from the default implementation but need to override all others.
+ */
+
+/* deliberately empty */
+