re PR tree-optimization/72810 (error: type mismatch for case label in switch statement)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 5 Aug 2016 17:21:00 +0000 (17:21 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 5 Aug 2016 17:21:00 +0000 (17:21 +0000)
commit1addb9e62b8970734343074e4a2b38f924954850
tree3bdef0765785dff4bd123426fdbb1fc37f9af477
parent1b62ed4f2638c59f30ff9480789b4cdeb740ddbe
re PR tree-optimization/72810 (error: type mismatch for case label in switch statement)

Fix PR tree-optimization/72810

gcc/ChangeLog:

PR tree-optimization/72810
* tree-vrp.c (simplify_switch_using_ranges): Avoid changing
the type of the case labels when truncating.

gcc/testsuite/ChangeLog:

PR tree-optimization/72810
* gcc.dg/tree-ssa/vrp110.c: New test.

From-SVN: r239174
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/vrp110.c [new file with mode: 0644]
gcc/tree-vrp.c