[go: nahoru, domu]

Bug 82482 - ICE in qsort comparator non-negative on sorted output: 1 in fast_allocation at ira-color.c:4821
Summary: ICE in qsort comparator non-negative on sorted output: 1 in fast_allocation a...
Status: RESOLVED DUPLICATE of bug 82395
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, ra
Depends on:
Blocks: qsort_chk
  Show dependency treegraph
 
Reported: 2017-10-09 06:50 UTC by Martin Liška
Modified: 2017-10-09 08:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2017-10-09 06:50:02 UTC
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
Comment 1 Alexander Monakov 2017-10-09 08:53:24 UTC
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 ***