https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105278
--- Comment #5 from Andrew Pinski ---
Note I think GCC's -Wfloat-equal is more reasonible than Clang's
-Wliteral-range really. The reason is because even if something can be
represented exactly in floating point (e.g. 3.0 or even 0.0), you could
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105278
--- Comment #4 from David Binderman ---
(In reply to Eric Gallager from comment #3)
> (In reply to David Binderman from comment #2)
> > (In reply to Eric Gallager from comment #1)
> > > -Wfloat-equal gets you a warning, as does -Wdouble-promotio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105278
--- Comment #3 from Eric Gallager ---
(In reply to David Binderman from comment #2)
> (In reply to Eric Gallager from comment #1)
> > -Wfloat-equal gets you a warning, as does -Wdouble-promotion:
>
> Thanks for that. This looks like another cas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105278
--- Comment #2 from David Binderman ---
(In reply to Eric Gallager from comment #1)
> -Wfloat-equal gets you a warning, as does -Wdouble-promotion:
Thanks for that. This looks like another case where an obscure flag
really ought to be in -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105278
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org