[Bug tree-optimization/53265] Warn when undefined behavior implies smaller iteration count

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 11 16:42:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53265

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #11 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-03-11 16:42:00 UTC ---
(In reply to comment #8)
> Untested patch.  Not sure about the warning wording, plus no idea how to call
> the warning option (-Wnum-loop-iterations, -Wundefined-behavior-in-loop,
> something else?), whether to enable it by default, or just for -Wall.

If the rate of false positives is expected to be low, then I would suggest
enabled by default, otherwise, I would say Wall.



More information about the Gcc-bugs mailing list