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

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170

Martin Sebor  changed:

   What|Removed |Added

 CC||msebor at gcc dot gnu.org
  Known to fail||4.4.7, 4.8.5, 4.9.4, 5.4.0,
   ||6.4.0, 7.3.0, 8.2.0, 9.0

--- Comment #3 from Martin Sebor  ---
No change in GCC 9.  G++ has diagnosed the code since version 5 (at all -O
levels).  Clang since 3.2.

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

2018-07-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170

Eric Gallager  changed:

   What|Removed |Added

 CC||dmalcolm at redhat dot com,
   ||dodji at gcc dot gnu.org

--- Comment #2 from Eric Gallager  ---
cc-ing diagnostic messages maintainers

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

2017-07-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170

Eric Gallager  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  ---
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.

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

2014-02-19 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170

Marek Polacek mpolacek at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-02-19
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1