Floating point performance issue

Miles Bader miles@gnu.org
Wed Dec 21 01:19:00 GMT 2011


David Brown <david@westcontrol.com> writes:
> Making "-Wfloat-equal" a default flag would eliminate many of these
> mistakes.

It also results in false positives, so it shouldn't be on by default.

[E.g. "float x = 0;  .... y = x; ... if (y == 0) ..." should not result
in a warning.]

-Miles

-- 
Hers, pron. His.



More information about the Gcc-help mailing list