From owner-freebsd-bugs@FreeBSD.ORG Mon May 12 11:10:10 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C33B37B401 for ; Mon, 12 May 2003 11:10:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C722643FA3 for ; Mon, 12 May 2003 11:10:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4CIA9Up040007 for ; Mon, 12 May 2003 11:10:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4CIA9gI040006; Mon, 12 May 2003 11:10:09 -0700 (PDT) Date: Mon, 12 May 2003 11:10:09 -0700 (PDT) Message-Id: <200305121810.h4CIA9gI040006@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Mikhail Teterin Subject: Re: bin/43299: march=pentium4 miscompiles msun/src/e_pow.c X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mikhail Teterin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 18:10:10 -0000 The following reply was made to PR bin/43299; it has been noted by GNATS. From: Mikhail Teterin To: freebsd-gnats-submit@FreeBSD.org, mi@aldan.algebra.com Cc: das@FreeBSD.org, ura@euro-bill.net, re@FreeBSD.org 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 ports/graphics/lcms. 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 problems. 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 being? -mi P.S. The i386/51210 appears to document the same bug: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=i386/51210