mailing list of musl libc
 help / color / mirror / code / Atom feed
* for information, gcc-4.2.3 miscompiles musl math
@ 2015-11-21 17:24 u-uy74
  2015-11-21 19:25 ` Rich Felker
  0 siblings, 1 reply; 15+ messages in thread
From: u-uy74 @ 2015-11-21 17:24 UTC (permalink / raw)
  To: musl

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-11-22  4:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-21 17:24 for information, gcc-4.2.3 miscompiles musl math 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
2015-11-21 20:30     ` Alexander Monakov
2015-11-21 21:08       ` u-uy74
2015-11-22  4:00     ` Isaac Dunham

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).