This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26005] Non-existent function/macro isinf() - correctly rejected by gcc - accepted by gcc -O
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2006 01:46:30 -0000
- Subject: [Bug c/26005] Non-existent function/macro isinf() - correctly rejected by gcc - accepted by gcc -O
- References: <bug-26005-12086@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-29 01:46 -------
Well first when using optimization, GCC finds that 1.0 is finite.
Your test should look more like:
float f = 1.0;
int main ()
{
if(isinf(f))
return 1 ;
return 0;
}
But watch out for real optimizing (IPO based ones) compilers for this case.
--
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=26005