From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35460 invoked by alias); 10 Oct 2018 16:04:36 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 35391 invoked by uid 9078); 10 Oct 2018 16:04:35 -0000 Date: Wed, 10 Oct 2018 16:04:00 -0000 Message-ID: <20181010160435.35389.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] Implement nanl in newlib only X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 323b48b975e5b305a5aaa5046ef1dc655fb1deba X-Git-Newrev: 682c4a9f1e77ced554e354bd2c1297b9afe2c6aa X-SW-Source: 2018-q4/txt/msg00007.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=682c4a9f1e77ced554e354bd2c1297b9afe2c6aa commit 682c4a9f1e77ced554e354bd2c1297b9afe2c6aa Author: Corinna Vinschen 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 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 (""); -}