float.h: Do not define INFINITY for C2x when infinities not supported

2022-09-14 Thread Joseph Myers
C2x has changed the rules for defining INFINITY in so it is no longer defined when float does not support infinities, instead of being defined to an expression that overflows at translation time. Thus, make the definition conditional on __FLT_HAS_INFINITY__ (this is already inside a C2x-conditiona

Re: float.h: Do not define INFINITY for C2x when infinities not supported

2022-09-14 Thread Richard Biener via Gcc-patches
On Thu, Sep 15, 2022 at 1:02 AM Joseph Myers wrote: > > C2x has changed the rules for defining INFINITY in so it is > no longer defined when float does not support infinities, instead of > being defined to an expression that overflows at translation time. > Thus, make the definition conditional o