This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: assignment problem with doubles: getting -NaN unexpectedly
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: assignment problem with doubles: getting -NaN unexpectedly
- From: stevenj at hunsmac dot mit dot edu (Steven G. Johnson)
- Date: Tue, 12 Oct 1999 13:54:26 -0400
- Cc: grib at cs dot utexas dot edu
Bill Gribble wrote:
> This problem has hit me, too, with gcc-2.95.2 and very recent libc and
> linux kernel. With -O3, simple double math (no division) results in
> NaN sporadically, but inserting debugging print statements seems to
> make this not happen.
See my post ("gcc 2.95.1 bug") earlier this month to gcc-bugs for a
similar case, including a test program that reliably produces the
mysterious NaNs (confirmed by at least one other person).
I wish I knew how to better bring this to the attention of a gcc hacker;
this is a real obstacle for me right now.
Cordially,
Steven G. Johnson