On Mon, Jun 3, 2013 at 4:41 PM, Herbert Duerr <h...@apache.org> wrote:
> The __builtin_isfinite() is used for for GCC as GCC's bug 14608 [1] prevents
> the common isfinite() macro from working reliably. The builtin should work
> according to the gcc documentation [2]: "GCC provides fpclassify, isfinite,
> isinf_sign and isnormal built-ins used with __builtin_ prefixed."
>
> [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14608
> [2] http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
>
> Looking through gcc's sources the builtin was introduced in [3] from
> 2007-7-18 for gcc 4.3. I'm afraid we'll have to check for older gcc's there
> and add another case for the ifdef GCC part.
>
> [3] http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=126725
>
> Considering that isfinite() was in the C99, C++99, SUSv3, etc standards for
> almost fifteen years now it is amazing how much trouble such a two-bit
> function can still introduce.

This CentOS has

g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to