http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49161
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-26 10:20:37 UTC --- Author: jakub Date: Thu May 26 10:20:34 2011 New Revision: 174272 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174272 Log: 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. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr49161.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/tree-vrp.c