mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: for information, gcc-4.2.3 miscompiles musl math
Date: Sat, 21 Nov 2015 15:18:54 -0500	[thread overview]
Message-ID: <20151121201854.GH3818@brightrain.aerifal.cx> (raw)
In-Reply-To: <20151121201122.GY26951@example.net>

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


  reply	other threads:[~2015-11-21 20:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-21 17:24 u-uy74
2015-11-21 19:25 ` Rich Felker
2015-11-21 19:41   ` Szabolcs Nagy
2015-11-21 19:49     ` Rich Felker
2015-11-21 19:56       ` Szabolcs Nagy
2015-11-21 19:51     ` Rich Felker
2015-11-21 20:03       ` Szabolcs Nagy
2015-11-21 20:15         ` Rich Felker
2015-11-21 21:54           ` Szabolcs Nagy
2015-11-21 20:32         ` u-uy74
2015-11-21 20:11   ` u-uy74
2015-11-21 20:18     ` Rich Felker [this message]
2015-11-21 20:30     ` Alexander Monakov
2015-11-21 21:08       ` u-uy74
2015-11-22  4:00     ` Isaac Dunham

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=20151121201854.GH3818@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).