This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31175] isinf incorrectly expanded
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2007 17:38:40 -0000
- Subject: [Bug target/31175] isinf incorrectly expanded
- References: <bug-31175-119@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ubizjak at gmail dot com 2007-03-14 17:38 -------
(In reply to comment #0)
> Examine the definition of isinf closely. It returns -1 for -inf.
But:
NOTE
Note that these functions are obsolete. C99 defines macros isfinite(),
isinf() and isnan() (for all types) replacing them. Further note that
the C99 isinf() has weaker guarantees on the return value.
However, it is possible to add &&TARGET_C99_FUNCTIONS to isinf<mode>2 expander
to expand only when we know that target has functions that conform to c99
standard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31175