OSDN Git Service

PR tree-optimization/49161
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 May 2011 10:05:05 +0000 (10:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 May 2011 10:05:05 +0000 (10:05 +0000)
commit8b3183486328856ccf37574ca2f87ce8773d9e18
tree8bca149e3f780e52c9095bee5dec1c249b4481f0
parent0d036b6403c426aa98c01a9310d43ab5013524ea
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174270 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49161.c [new file with mode: 0644]
gcc/tree-vrp.c