re PR tree-optimization/84740 (ICE in build_constructors, at tree-switch-conversion...
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Mar 2018 07:29:42 +0000 (08:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Mar 2018 07:29:42 +0000 (08:29 +0100)
commitce8b1a1f132aff97d670bd326dd89ae318cd3c68
tree61dc23f5b9e429cfa27f5a1b470df71301004c45
parent686faaece353242d733dec4eb47647ef0ae1335f
re PR tree-optimization/84740 (ICE in build_constructors, at tree-switch-conversion.c:965)

PR tree-optimization/84740
* tree-switch-conversion.c (process_switch): Call build_constructors
only if info.phi_count is non-zero.

* gcc.dg/torture/pr84740.c: New test.

From-SVN: r258354
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr84740.c [new file with mode: 0644]
gcc/tree-switch-conversion.c