This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Invalid code in <limits>
Neil Booth <neil@daikokuya.co.uk> writes:
| Gabriel Dos Reis wrote:-
|
| > True. But, my recollection at the time when that work was done was
| > that __builtin_huge_valf() (and similirar "function") should be
| > treated as compile-time constants, i.e. the expression
| >
| > __builtin_huge_valf () / 2 == __builtin_huge_valf ()
| >
| > should be handled as an integral-constant by the compiler.
|
| This is the kind of thing we should document. Our extensions are
| underdocumented, which almost always leads to confusion somewhere
| down the line.
Agreed. I'll prepare a documentation patch.
-- Gaby