This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Invalid code in <limits>
On Wed, Jan 29, 2003 at 07:06:40PM +0100, Gabriel Dos Reis wrote:
> | Using, say, CPP macros to implement limits would let us get there
> | easily. We already *do* use CPP macros in <limits> (like
> | __FLT_MIN_EXP__); adding a few more is no big deal.
>
> We have been through this before, it proved not to work very well.
> Until RTH kindly offered help.
It's indeed not hard to create builtin CPP macros for the
instances in libstdc++ right now.
That said, I do think it's important to be able to handle
__builtin_inf and __builtin_nan anywhere regular fp
constants are valid, *and* that the final generated code
considers them constants, as opposed to runtime initialization.
r~