re PR middle-end/81194 (ICE during RTL pass: expand)
authorPeter Bergner <bergner@vnet.ibm.com>
Thu, 29 Jun 2017 12:58:32 +0000 (07:58 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Thu, 29 Jun 2017 12:58:32 +0000 (07:58 -0500)
commitf66459c1605ab66390ad5b5c54e425f96607d9eb
treefc3f329844a8125ad6b273d8b28aeb02e1aa8f15
parent3c7bb4891238d341dcd1404cf45b041fc1af0720
re PR middle-end/81194 (ICE during RTL pass: expand)

gcc/
PR middle-end/81194
* cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
with only one label.
* stmt.c (expand_case): Assert NCASES is greater than one.

gcc/testsuite/
PR middle-end/81194
* g++.dg/pr81194.C: New test.

From-SVN: r249783
gcc/ChangeLog
gcc/cfgexpand.c
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr81194.C [new file with mode: 0644]