This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60170] No -Wtype-limits warning with -O1
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jul 2017 13:42:45 +0000
- Subject: [Bug c/60170] No -Wtype-limits warning with -O1
- Auto-submitted: auto-generated
- References: <bug-60170-4@http.gcc.gnu.org/bugzilla/>
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.