This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/60170] No -Wtype-limits warning with -O1


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]