bin/43299: march=pentium4 miscompiles msun/src/e_pow.c

Mikhail Teterin mi+mx at
Mon May 12 11:10:10 PDT 2003

The following reply was made to PR bin/43299; it has been noted by GNATS.

From: Mikhail Teterin <mi+mx at>
To: freebsd-gnats-submit at, mi at
Cc: das at, ura at, re at
Subject: Re: bin/43299: march=pentium4 miscompiles msun/src/e_pow.c
Date: Mon, 12 May 2003 14:02:49 -0400

 My most recent encounter with this bug is the failure of the selftest of
 I recompiled the libm (lib/msun) with -march=pentium3 and reinstalled
 it. After that the lcms passed its own self-test. Note, that lcms did
 NOT require recompiling -- using the pentium3 version of libm it had no
 Linux, where most of the gcc's development is going on, does not appear
 to suffer. gallatin says, icc does not have this problem. Could it be,
 that our own i387 implementation of some of the functions fail on
 pentium4 and its SSE2?
 May be, the -march setting should be forced down to pentium3 in the
 lib/msun subdirectory in case CPUTYPE is set to p4 -- for the time
 P.S. The i386/51210 appears to document the same bug:

More information about the freebsd-bugs mailing list