PR middle-end/71476 75/189275/2
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Jun 2016 08:57:02 +0000 (08:57 +0000)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 18 Oct 2018 13:20:06 +0000 (16:20 +0300)
commit5b32d4548a28e4783a5a965dee1241f41f27a952
treefc1c7eb993b38758e0f0160b3213ffed1a722d32
parente0a5d0ba0307111e5fc046412c24fe8e6f4baaed
PR middle-end/71476
* gimplify.c (maybe_warn_switch_unreachable): Factored out of
gimplify_switch_expr.
(warn_switch_unreachable_r): New function.

* c-c++-common/Wswitch-unreachable-4.c: New test.
* gcc.dg/Wswitch-unreachable-2.c: New test.
* g++.dg/tm/jump1.C: Move dg-warning.

upstream hash: 1a54d3bee5c40687c53b2680d0b110f23a193713
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237367 138bc75d-0d04-0410-961f-82ee72b054a4

Change-Id: Ie8bc6fb965fdb08c7e76ee02fe01eec4707336b0
gcc/gimplify.c
gcc/testsuite/c-c++-common/Wswitch-unreachable-4.c [new file with mode: 0644]
gcc/testsuite/g++.dg/tm/jump1.C
gcc/testsuite/gcc.dg/Wswitch-unreachable-2.c [new file with mode: 0644]