http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57219
Bug #: 57219 Summary: __builtin_isinf_sign source comments more restrictive than documentation Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: jtaylor.deb...@gmail.com in glibc bug [0] it is discussed to use __builtin_isinf_sign for C99 isinf. The source code and the patch mail [1] for __builtin_isinf_sign document that it returns -1, 0 or 1 as glibc isinf does. The gcc documentation on the other hand only says it returns the sign of the infinity. To avoid confusion it would be good if the source code comment or the documentation could be matched up to say the exact same thing. Either that the value of the return is undefined (but keeps sign) or that it is strictly define. [0] http://sourceware.org/bugzilla/show_bug.cgi?id=15367 [1] http://gcc.gnu.org/ml/gcc-patches/2008-05/msg01067.html