Designate the widest case label to be the default label
authorPatrick Palka <ppalka@gcc.gnu.org>
Thu, 4 Aug 2016 18:11:08 +0000 (18:11 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Thu, 4 Aug 2016 18:11:08 +0000 (18:11 +0000)
commit938da3a58b989f983233eceb8be320ea1b478081
tree8ee303ad04827e9a987b5e6b3b38386d5180a6c6
parent42183d034d47e05814c971b2911c847e2a700941
Designate the widest case label to be the default label

gcc/ChangeLog:

* gimple.c (preprocess_case_label_vec_for_gimple): When the case
labels are exhaustive, designate the label with the widest
range to be the default label.

gcc/testsuite/ChangeLog:

* gcc.dg/switch-10.c: New test.

From-SVN: r239146
gcc/ChangeLog
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/switch-10.c [new file with mode: 0644]