re PR tree-optimization/49161 (Fix VRP on switch stmts)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 May 2011 10:05:05 +0000 (12:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 May 2011 10:05:05 +0000 (12:05 +0200)
commit1aa9438fdb536c081195b462c7d7be9f82004a73
tree8bca149e3f780e52c9095bee5dec1c249b4481f0
parent0dd5327a4608ea3db17ed4af83d6b31d792c2768
re PR tree-optimization/49161 (Fix VRP on switch stmts)

PR tree-optimization/49161
* tree-vrp.c (struct case_info): New type.
(compare_case_labels): Sort case_info structs instead of
trees, and not primarily by CASE_LABEL uids but by
label_for_block indexes.
(find_switch_asserts): Put case labels into struct case_info
array instead of TREE_VEC, adjust sorting, compare label_for_block
values instead of CASE_LABELs.

* gcc.c-torture/execute/pr49161.c: New test.

From-SVN: r174270
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49161.c [new file with mode: 0644]
gcc/tree-vrp.c