Following test-case ICEs: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c -O1 --param ira-max-conflict-table-size=0 /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c: In function ‘y’: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c:31:5: error: qsort comparator non-negative on sorted output: 1 } ^ during RTL pass: ira /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-prof/pr44777.c:31:5: internal compiler error: qsort checking failed 0x1458639 qsort_chk_error ../../gcc/vec.c:222 0x1458a01 qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*, void const*)) ../../gcc/vec.c:274 0xa19f60 fast_allocation ../../gcc/ira-color.c:4821 0xa19f60 ira_color() ../../gcc/ira-color.c:4899 0x9ffcea ira ../../gcc/ira.c:5283 0x9ffcea execute ../../gcc/ira.c:5581
Thanks, but this is due to the same allocator as in PR 82395, allocno_priority_compare_func (and I've confirmed it works with my patch). *** This bug has been marked as a duplicate of bug 82395 ***