From owner-freebsd-hackers Fri Sep 19 07:49:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA16203 for hackers-outgoing; Fri, 19 Sep 1997 07:49:21 -0700 (PDT) Received: from usr07.primenet.com (tlambert@usr07.primenet.com [206.165.6.207]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA16198 for ; Fri, 19 Sep 1997 07:49:19 -0700 (PDT) Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id HAA06306; Fri, 19 Sep 1997 07:49:12 -0700 (MST) From: Terry Lambert Message-Id: <199709191449.HAA06306@usr07.primenet.com> Subject: Re: FPE problem To: kuku@gilberto.physik.RWTH-Aachen.DE (Christoph Kukulies) Date: Fri, 19 Sep 1997 14:49:12 +0000 (GMT) Cc: tlambert@primenet.com, kuku@gilberto.physik.RWTH-Aachen.DE, freebsd-hackers@freefall.FreeBSD.org In-Reply-To: <19970919114704.51622@gil.physik.rwth-aachen.de> from "Christoph Kukulies" at Sep 19, 97 11:47:04 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Now it's getting funny: > > The exception only occurs on certain machines. I have a dynamically linked > binary which I compiled on an around July -current 486 machine and it does > *not* do a FPE there. > > The machines where it occurs were built with > CFLAGS= -ffast-math -m486 -O2 > > That means that libm (or libmsun) were built with inline fpu instructions > and this is causing the trouble. > > I will rebuild the math libs with conservative switches now. Ugh. Clearly, there is something that needs to be corrected, and this will gloss it over. On the other hand, I understand not caring why it works, so long as it works. 8-). If you could isolate the functions where you get the errors to small source files, and provide the compiler generated assembly output for both cases, we might be able to make it work with the inlined code; the speed improvement may or may not be worth the effort involved, however. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.