* gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
commit4ff7bd215d121cbec262600e2b4bcbff93b8affb
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2016 14:55:05 +0000 (31 14:55 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 May 2016 14:55:05 +0000 (31 14:55 +0000)
tree3f9f27e01869c122dc7dfd97c20e9ce1fe253901
parent7f94683337c5e5b645da98c044a38432899b9f5e
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236924 138bc75d-0d04-0410-961f-82ee72b054a4
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]