https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82482
Bug ID: 82482 Summary: ICE in qsort comparator non-negative on sorted output: 1 in fast_allocation at ira-color.c:4821 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code, ra Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- 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