gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
authorMarek Polacek <polacek@redhat.com>
Tue, 31 May 2016 14:55:05 +0000 (14:55 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 31 May 2016 14:55:05 +0000 (14:55 +0000)
commit780b9dd44006c2f021dc1e2eb2509e0fa6005a6f
tree3f9f27e01869c122dc7dfd97c20e9ce1fe253901
parentd7b03373d619b3ce715c760d2b21dbe4869a1c8f
gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.

* gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.

* c-c++-common/Wswitch-unreachable-3.c: New test.
* g++.dg/warn/Wswitch-unreachable-1.C: New test.

From-SVN: r236924
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wswitch-unreachable-3.c [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wswitch-unreachable-1.C [new file with mode: 0644]