[patch] Better NAN definition for more recent GCC

Mike Frysinger vapier at gentoo.org
Thu Jan 5 03:25:49 UTC 2006


On Wednesday 04 January 2006 12:48, Joseph S. Myers wrote:
> The definition of NAN in libc/sysdeps/linux/common/bits/nan.h is not a
> constant expression (suitable for static initializers) as required by C99.
> More recent GCC versions provide __builtin_nanf which can be used for this
> purpose; this patch merges the relevant changes from glibc to use
> __builtin_nanf.  (There are similar built-in functions for INFINITY,
> HUGE_VAL etc.; though there the hex float constants presently used do
> work, albeit with warnings; again the relevant changes are in current
> glibc.)

thanks, ive synced with glibc
-mike



More information about the uClibc mailing list