From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11948 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] better long double check Date: Sun, 17 Sep 2017 17:38:55 +0200 Message-ID: <20170917153855.GE15263@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Bu8it7iiRSEf40bY" X-Trace: blaine.gmane.org 1505662750 18733 195.159.176.226 (17 Sep 2017 15:39:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Sep 2017 15:39:10 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11961-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 17 17:39:04 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtbey-0004an-1f for gllmg-musl@m.gmane.org; Sun, 17 Sep 2017 17:39:04 +0200 Original-Received: (qmail 1663 invoked by uid 550); 17 Sep 2017 15:39:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 1626 invoked from network); 17 Sep 2017 15:39:07 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:11948 Archived-At: --Bu8it7iiRSEf40bY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline s390x gcc default long double (64bit) does not match the expected one in musl (128bit) but this was not caught by the current configure check. --Bu8it7iiRSEf40bY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-better-configure-check-for-long-double-support.patch" >From 94666565318b7ed966d77811e5d880f69bdecccf Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 17 Sep 2017 15:35:55 +0000 Subject: [PATCH] better configure check for long double support --- configure | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 02b736ce..501a7219 100755 --- a/configure +++ b/configure @@ -706,9 +706,8 @@ esac # printf "checking whether compiler's long double definition matches float.h... " echo '#include ' > "$tmpc" -echo '#if LDBL_MANT_DIG == 53' >> "$tmpc" -echo 'typedef char ldcheck[9-(int)sizeof(long double)];' >> "$tmpc" -echo '#endif' >> "$tmpc" +echo '#define C(m,s) (m==LDBL_MANT_DIG && s==sizeof(long double))' >> "$tmpc" +echo 'typedef char ldcheck[(C(53,8)||C(64,12)||C(64,16)||C(113,16))*2-1];' >> "$tmpc" if $CC $CFLAGS_C99FSE \ -I$srcdir/arch/$ARCH -I$srcdir/arch/generic -I$srcdir/include \ $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then -- 2.14.1 --Bu8it7iiRSEf40bY--