[Bug c/60170] No -Wtype-limits warning with -O1
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 27 13:42:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2014-02-19 00:00:00 |2017-7-27
CC| |egallager at gcc dot gnu.org
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
It's not just -O1 that misses the warning. I tested all optimization levels,
and gcc only warned with -O0. The warning disappeared with -O1, -O2, -O3, -Og,
-Os, and -Ofast.
More information about the Gcc-bugs
mailing list