This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Invalid code in <limits>
Mark Mitchell <mark@codesourcery.com> writes:
> If we do that, things will work -- but then we might as well have
> builtin *values* -- rather than builtin *functions*.
>
> That's what I'm suggesting.
That's fine from a semantic point of view, but please don't change the syntax.
__builtin_{nan,huge_val,...} are used in C headers which aren't shipped
with the compiler.
In particular, NAN in <math.h> is a compile-time constant that is usually
implemented as __builtin_nan("") or so.
--
- Geoffrey Keating <geoffk@geoffk.org>