From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8921 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: for information, gcc-4.2.3 miscompiles musl math Date: Sat, 21 Nov 2015 15:18:54 -0500 Message-ID: <20151121201854.GH3818@brightrain.aerifal.cx> References: <20151121172417.GU26951@example.net> <20151121192548.GD3818@brightrain.aerifal.cx> <20151121201122.GY26951@example.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1448137150 19221 80.91.229.3 (21 Nov 2015 20:19:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Nov 2015 20:19:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8934-gllmg-musl=m.gmane.org@lists.openwall.com Sat Nov 21 21:19:10 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1a0Ecn-0003uP-5w for gllmg-musl@m.gmane.org; Sat, 21 Nov 2015 21:19:09 +0100 Original-Received: (qmail 1729 invoked by uid 550); 21 Nov 2015 20:19:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 1711 invoked from network); 21 Nov 2015 20:19:07 -0000 Content-Disposition: inline In-Reply-To: <20151121201122.GY26951@example.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8921 Archived-At: On Sat, Nov 21, 2015 at 09:11:22PM +0100, u-uy74@aetey.se wrote: > On Sat, Nov 21, 2015 at 02:25:48PM -0500, Rich Felker wrote: > > > like "sin(8.000000) = 21.709544". > > > Looks like the argument reduction logic has changed in a way > > > which is not compatible with gcc-4.2.3. > > > > Are you using configure or a hand-written config.mak? configure sets > > up a big hammer, -ffloat-store, when -fexcess-precision=standard is > > not supported (i.e. on old gcc), which hopefully suffices to make this > > code work, but it's possible it doesn't always do the job. > > I was using configure. > > Here are the compilation flags which were used while building with 4.2.3: > (the command line has been run through "fmt" here) OK. It looks like we've tracked down the problem anyway and have a viable fix already, anyway. > > > I do not notice any problems while compiling musl with gcc-5.2, nor > > > have a compelling reason to insist on using gcc-4.2.3 (somebody else > > > might have though, gcc-4.2.3 is the last one under gpl 2). > > > > I thought 4.2.1 was the last. > > I think Wikipedia says so as well but The Source is the truth. It is > 4.2.3 and nothing else. It is also in fact remarkably better than 4.2.1 > and I could build with it mostly everything I needed, modulo features > newer than the compiler. This sounds interesting. Do you have any details beyond "remarkably better"? If you're right and the benefits are significant maybe Rob could update Aboriginal to this version. Rich