This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: Optimizer is putting result of a log into the wrong reg
- To: "Singh, Kirat" <Kirat dot Singh at gs dot com>
- Subject: RE: Optimizer is putting result of a log into the wrong reg
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Thu, 23 Sep 1999 18:00:06 -0400 (EDT)
- cc: Bernd Schmidt <bernds at cygnus dot co dot uk>, egcs-bugs at egcs dot cygnus dot com
- Reply-To: moshier at mediaone dot net
On Thu, 23 Sep 1999, Singh, Kirat wrote:
> Oops, sorry about that. I am now passing doubles where doubles are expected
> (I also simplified it a bit). But it *still* puts a NaN into the variable
> DiscRate whereas it clearly should be 0.
Yes, sorry, I tend to think of K&R C rules, where float would promote to
double but not int.