[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 22 00:13:00 GMT 2006
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-22 00:13 -------
...with emphasis on the last sentence. I can not do this until you are
actually C99 compliant *all the time*. I have to support well written legacy
applications that expect this macro to work *all the time*.
For if you read the docs for -ffinite-math-only, it specificially says finite
fp is only supported which means it is compliant to the C99 standard.
And for the fact -mno-ieee-fp says we don't support IEEE FP for compares which
means no NaNs when doing compares:
-mieee-fp
-mno-ieee-fp
Control whether or not the compiler uses IEEE floating point comparisons.
These handle correctly the case where the result of a comparison is unordered.
so this is invalid and/or a dup bug.
So closing as invalid.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28795
More information about the Gcc-bugs
mailing list