public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Implement nanl in newlib only
@ 2018-10-10 16:04 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-10-10 16:04 UTC (permalink / raw)
To: cygwin-cvs, newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=682c4a9f1e77ced554e354bd2c1297b9afe2c6aa
commit 682c4a9f1e77ced554e354bd2c1297b9afe2c6aa
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Wed Oct 10 17:49:53 2018 +0200
Implement nanl in newlib only
Drop Cygwin-specific nanl in favor of a generic implementation
in newlib. Requires GCC 3.3 or later.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
newlib/libm/common/nanl.c | 6 ++++++
winsup/cygwin/Makefile.in | 1 -
winsup/cygwin/math/nanl.c | 5 -----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/newlib/libm/common/nanl.c b/newlib/libm/common/nanl.c
index 40f8981..b8ae63e 100644
--- a/newlib/libm/common/nanl.c
+++ b/newlib/libm/common/nanl.c
@@ -38,5 +38,11 @@ nanl (const char *tagp)
{
return nan(tagp);
}
+#elif __GNUC_PREREQ (3, 3)
+long double
+nanl (const char *tagp)
+{
+ return __builtin_nanl("");
+}
#endif
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index 966460d..a232836 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -218,7 +218,6 @@ MATH_OFILES:= \
lrintl.o \
lroundl.o \
modfl.o \
- nanl.o \
nearbyint.o \
nearbyintf.o \
nearbyintl.o \
diff --git a/winsup/cygwin/math/nanl.c b/winsup/cygwin/math/nanl.c
deleted file mode 100644
index f936b31..0000000
--- a/winsup/cygwin/math/nanl.c
+++ /dev/null
@@ -1,5 +0,0 @@
-long double
-nanl (const char *tagp)
-{
- return __builtin_nanl ("");
-}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-10 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-10 16:04 [newlib-cygwin] Implement nanl in newlib only Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).