[4.3 backport]: define nan as C99 builtin

Mark Mitchell mark@codesourcery.com
Fri Feb 29 18:57:00 GMT 2008


Jack Howarth wrote:
> Currently nanl in gcc 4.3.0 is defined as DEF_GCC_BUILTIN even
> though it is a also a C99 function. This prevents appending
> $LDBL128 to its symbol on darwin powerpc. This has been fixed on
> gcc trunk with r132617. Attached is a backport of this patch
> as well as the addition of BUILT_IN_NANL to config/darwin-ppc-ldouble-patch.def
> from r132723. This completes the changes made for powerpc-apple-darwin
> long double support. Tested without regression on gcc 4.3 branch.
> Okay for gcc 4.3 branch?
>                    Jack
> 
> 2008-02-29  Uros Bizjak  <ubizjak@gmail.com>
> 
> 	PR middle-end/19984
> 	* builtins.def (BUILT_IN_NAN): Define as c99 builtin
> 	using DEF_C99_BUILTIN.
> 	(BUILT_IN_NANF): Ditto.
> 	(BUILT_IN_NANL): Ditto.

...

OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list