From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id E277E428BA for ; Wed, 9 Oct 2002 15:14:35 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g99JEZd18553 for axp-list@listman.redhat.com; Wed, 9 Oct 2002 15:14:35 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g99JEZf18549 for ; Wed, 9 Oct 2002 15:14:35 -0400 Received: from evrtwa1-ar5-4-65-006-229.evrtwa1.dsl-verizon.net (evrtwa1-ar5-4-65-006-229.evrtwa1.dsl-verizon.net [4.65.6.229]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g99IslX20441 for ; Wed, 9 Oct 2002 14:54:47 -0400 Received: (from rob@localhost) by evrtwa1-ar5-4-65-006-229.evrtwa1.dsl-verizon.net (8.11.6/8.11.6) id g99JESW01812 for axp-list@redhat.com; Wed, 9 Oct 2002 12:14:28 -0700 Date: Wed, 9 Oct 2002 12:14:28 -0700 From: "Robert M. Riches Jr." Message-Id: <200210091914.g99JESW01812@evrtwa1-ar5-4-65-006-229.evrtwa1.dsl-verizon.net> To: axp-list@redhat.com Subject: RE: Open Office. X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: > From: "Donsbach, Jeff" > Date: Wed, 9 Oct 2002 14:29:12 -0400 > > > Robert Riches wrote: > > Oh, the other useful thing when using gcc to compile with gcc > > is the "-mieee" switch. Somebody from Redhat once told me they > > use the "-mieee" switch when they compile anything, except for > > one older version of xlock (details in Redhat bugzilla). > > Another work around for lazy coding in 99.9% of the cases. Bugs like this that SEGV but magically disappear when "-mieee" is used are almost always a case of an uninitialized floating point variable that contains leftover stack garbage on first use. It may be that many of the blowups -mieee "solves" are of this type. However, I have seen cases in the rainbow text indexing and classification package and then in small test cases where perfectly legal and fully initialized operations give floating point exceptions if -mieee is not used and work correctly (within the limits of numeric precision and range) with it. If I remember correctly, the case involved taking effectively log(exp(-610)) or exp(log(1e-610)) or something like that. (No, it did not involve taking a log() of a negative number.) Without the -mieee switch, the first operation produced a NAN, and the second operation threw an exception. With the switch, the test case does what one would expect, with no exception. This would appear to be one of the 0.1% of the cases (by your estimation) where the switch is a workaround rather than necessary to get correct execution of a correct program. Robert Riches rm.riches@verizon.net