[Bug c/19011] check if float -> long store truncation happened fails with -O1
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 15 15:10:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-15 15:10 -------
(In reply to comment #3)
> Could you elaborate how comes that you are certain that the bug is a duplicate
> of #323?
Easily the use of execusive precission is causing the problem which is what 323 is about.
>
> 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.
No the cast is not being optimizated away, just it is being rounded differently.
*** This bug has been marked as a duplicate of 323 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19011
More information about the Gcc-bugs
mailing list