From: u-uy74@aetey.se
To: musl@lists.openwall.com
Subject: for information, gcc-4.2.3 miscompiles musl math
Date: Sat, 21 Nov 2015 18:24:18 +0100 [thread overview]
Message-ID: <20151121172417.GU26951@example.net> (raw)
Good to be aware of:
gcc-4.2.3 miscompiles musl math since at least 1.1.6,
tested while targeting i486,
1.0.x seems to have been alright.
The symptom is that sin(larger-than-2*pi) yields large values
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.
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).
Regards,
Rune
next reply other threads:[~2015-11-21 17:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-21 17:24 u-uy74 [this message]
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
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=20151121172417.GU26951@example.net \
--to=u-uy74@aetey.se \
--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).