From: "Robert M. Riches Jr." <rm.riches@verizon.net>
To: axp-list@redhat.com
Subject: RE: Open Office.
Date: Wed, 9 Oct 2002 12:14:28 -0700 [thread overview]
Message-ID: <200210091914.g99JESW01812@evrtwa1-ar5-4-65-006-229.evrtwa1.dsl-verizon.net> (raw)
> From: "Donsbach, Jeff" <Jeff.Donsbach@hp.com>
> 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
next reply other threads:[~2002-10-09 19:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 19:14 Robert M. Riches Jr. [this message]
2002-10-09 20:51 ` Open Office Uncle George
-- strict thread matches above, loose matches on Subject: below --
2002-10-09 18:29 Donsbach, Jeff
2002-10-09 17:42 Robert M. Riches Jr.
2002-10-09 19:21 ` George France
2002-10-09 13:39 Hoover, Tony
2002-10-09 2:44 Robert M. Riches Jr.
2002-10-09 9:23 ` Joerg Bruehe
2002-10-09 15:07 ` Michal Jaegermann
2002-10-09 15:21 ` Falk Hueffner
2002-10-09 1:16 Alvin Starr
2002-10-10 2:25 ` Andrei A. Dergatchev
2002-10-10 21:07 ` alvin
2002-05-22 23:05 Robert M. Riches Jr.
2002-05-16 21:28 Apple snubs Alpha Processor Inc Kurt A. Ludwig
2002-05-16 22:27 ` Open Office Peter Watkinson
2002-05-22 22:46 ` Stephen Williams
2002-02-28 5:12 Robert M. Riches Jr.
2002-02-28 2:51 Collin Baillie
2002-02-28 14:34 ` James Fowler
2002-02-28 2:17 Collin Baillie
2002-02-28 2:17 ` Peter Petrakis
2002-02-28 9:09 ` Helge Kreutzmann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox