public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] Implement nanl in newlib only Date: Wed, 10 Oct 2018 16:04:00 -0000 [thread overview] Message-ID: <20181010160435.35389.qmail@sourceware.org> (raw) 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 (""); -}
reply other threads:[~2018-10-10 16:04 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20181010160435.35389.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).