re PR rtl-optimization/81308 (ICE in calc_dfs_tree, at dominance.c:458)
authorJeff Law <law@redhat.com>
Mon, 8 Jan 2018 18:20:21 +0000 (11:20 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 8 Jan 2018 18:20:21 +0000 (11:20 -0700)
commit5a2a87e1e2452eddae38e0ae1af4239f92d8c281
tree2a8ac5e5a5abf53775d597fed31ff4df51e1ff93
parentb9a4d2ba48c98fb0cc894489a26f1b16b01b1ecd
re PR rtl-optimization/81308 (ICE in calc_dfs_tree, at dominance.c:458)

PR rtl-optimizatin/81308
* tree-switch-conversion.c (cfg_altered): New file scoped static.
(process_switch): If group_case_labels makes a change, then set
cfg_altered.
(pass_convert_switch::execute): If a switch is converted, then
set cfg_altered.  Return TODO_cfg_cleanup if cfg_altered is true.

PR rtl-optimizatin/81308
* g++.dg/pr81308-1.C: New test.
* g++.dg/pr81308-2.C: New test.

From-SVN: r256349
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr81308-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pr81308-2.C [new file with mode: 0644]
gcc/tree-switch-conversion.c