This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/26005] Non-existent function/macro isinf() - correctly rejected by gcc - accepted by gcc -O



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]