This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r272559 - in /trunk/gcc: ChangeLog c-family/Cha...
- From: mbelivea at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 21 Jun 2019 17:50:29 -0000
- Subject: r272559 - in /trunk/gcc: ChangeLog c-family/Cha...
Author: mbelivea
Date: Fri Jun 21 17:50:29 2019
New Revision: 272559
URL: https://gcc.gnu.org/viewcvs?rev=272559&root=gcc&view=rev
Log:
PR c++/90875 - added -Wswitch-outside-range option
* doc/invoke.texi (Wswitch-outside-range): Document.
* c.opt (Wswitch-outside-range): Added new option.
* c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
* c-c++-common/Wswitch-outside-range-1.c: New test.
* c-c++-common/Wswitch-outside-range-2.c: New test.
* c-c++-common/Wswitch-outside-range-3.c: New test.
* c-c++-common/Wswitch-outside-range-4.c: New test.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-warn.c
trunk/gcc/c-family/c.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog