From owner-freebsd-toolchain@FreeBSD.ORG Sun Feb 6 20:24:27 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DA9E106566B for ; Sun, 6 Feb 2011 20:24:27 +0000 (UTC) (envelope-from giffunip@tutopia.com) Received: from nm20.bullet.mail.sp2.yahoo.com (nm20.bullet.mail.sp2.yahoo.com [98.139.91.90]) by mx1.freebsd.org (Postfix) with SMTP id 35C438FC14 for ; Sun, 6 Feb 2011 20:24:27 +0000 (UTC) Received: from [98.139.91.67] by nm20.bullet.mail.sp2.yahoo.com with NNFMP; 06 Feb 2011 20:11:46 -0000 Received: from [98.139.91.59] by tm7.bullet.mail.sp2.yahoo.com with NNFMP; 06 Feb 2011 20:11:45 -0000 Received: from [127.0.0.1] by omp1059.mail.sp2.yahoo.com with NNFMP; 06 Feb 2011 20:11:45 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 961443.50562.bm@omp1059.mail.sp2.yahoo.com Received: (qmail 26052 invoked by uid 60001); 6 Feb 2011 20:11:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297023105; bh=P1w0JBZsiWZqrUSavMyaWvgFEw8B1jOrYmvJgS6tdqc=; h=Message-ID:X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=r6s0JMXOq0E2QWTsdV9n0tXJUDnjss0NGU+1j8vtXJIZ4H/gM0r6CZkl4n/vTdDLgF8knD1UmEEWrgXUo/aCTf/Xe/qW+/s+c43ksa7qpqf5cDzpGS0eer4Swg8dTgAbcEy7qrJFzOkeYMOQOjOrnKrMtTL968cOTOUsDbFpuWA= Message-ID: <537963.24371.qm@web113512.mail.gq1.yahoo.com> X-YMail-OSG: kaSogbkVM1kvCO3j9F7ZUo2x5HSx.yONht_cvUqGFRKmfUo SQRuTZAT71yrj3QjsWSFCIBeA2.XT5JomB35gY8jDpMU7gLqgD59FF8i.O6f wZ4h6n_7vJ83uzYN.otRuHFyFCsY6rI.dPuiykB0_5ge1hQCZPKSm5f1..B_ Q8M5o_a0Uh2fnOA1Puw2N5sufY_s9lcd1UIcqgF.ptNLTbt4xobxxXe2ohtg .iRUAuOSEQMEEBFVF8TaKGb4NfvHEJg44T2f_wboNhBcE0G9fIamjIdIHc5w mKT53fD7e4sikG5NamInv_dLheO14dVSY5ZiyypZXJS4DBrksRrFkkJZ0sB2 F2_bQt2jdE0qFDIA22chsO.nUnfBe6JPbBsH1luaq4rKfRCmyA_C5XJFRqcq 8rsl1fslqNbbnbQ-- Received: from [190.157.140.248] by web113512.mail.gq1.yahoo.com via HTTP; Sun, 06 Feb 2011 12:11:45 PST X-RocketYMMF: giffunip X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.108.291010 Date: Sun, 6 Feb 2011 12:11:45 -0800 (PST) From: "Pedro F. Giffuni" To: freebsd-toolchain@freebsd.org, David Schultz , Gerald Pfeifer In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: -fno-math-errno by default X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: giffunip@tutopia.com List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2011 20:24:27 -0000 =0A--- On Sun, 2/6/11, Gerald Pfeifer wrote:=0A...=0A>= =0A> =A0 http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D181= 538=0A> =0A> where David made -fno-math-errno the default for GCC with=0A..= .=0A> =0A> Do I understand correctly that libm on all versions of=0A> FreeB= SD and on all platforms does not set errno, so this=0A> should become the d= efault for FreeBSD also upstream?=0A> =0A=0AThat is my understanding of the= commit too, so I guess=0A"configure" should do a better job detecting this= .=0A=0AThat said, I don't know if setting errno is good or=0Abad: Apple's g= cc has this:=0A=0A----=0A; APPLE LOCAL begin optimization pragmas 3124235/3= 420242=0Afmath-errno=0ACommon Report Var(flag_errno_math) Init(1) PerFunc= =0ASet errno after built-in math functions=0A; APPLE LOCAL end optimization= pragmas 3124235/3420242=0A----=0A=0AI have no idea what the origin of thei= r math stuff is=0Abut apparently they saw a value of using the sysv approac= h.=0A=0A> It would have been nice to report this upstream (and=0A> apologie= s if you did and it got missed) and I'll try=0A> to raise it there, but wan= ted to get confirmation=0A> first.=0A>=0ANo, I didn't ... thanks for bringi= ng this up in=0Afreebsd-toolchain though, there may be a similar issue=0Awi= th clang.=0A =0Acheers,=0A=0APedro.=0A=0A=0A