Invalid code in <limits>

Richard Henderson rth@redhat.com
Wed Jan 29 19:45:00 GMT 2003


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~



More information about the Gcc mailing list