This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19011] check if float -> long store truncation happened fails with -O1
- From: "konstantin at mysql dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 15:06:48 -0000
- Subject: [Bug c/19011] check if float -> long store truncation happened fails with -O1
- References: <20041215132932.19011.konstantin@mysql.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From konstantin at mysql dot com 2004-12-15 15:06 -------
Could you elaborate how comes that you are certain that the bug is a duplicate
of #323?
The problem as I described is that the comparison (line 8) reports success,
while numbers
are actually different, not the other way - failed comparison for equal (or
expected-to-be-equal) numbers.
Note that the comparison is performed against integer numbers, not floating
point numbers.
I guess the reason of the success is that the cast in the comparison somehow
gets optimized away.
Thank you.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19011