re PR debug/64935 (compare debug failure during building of Linux kernel)
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Thu, 19 Feb 2015 08:31:14 +0000 (08:31 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Thu, 19 Feb 2015 08:31:14 +0000 (08:31 +0000)
commit696d5fa14225f7a2665f674c5e8b4f2609823cad
treecebf2f546866419dc7a0e7c8e533ddfc1174fb44
parent8a627e40a8c2809d6e2a87e3b6cfabeb2f10c7a7
re PR debug/64935 (compare debug failure during building of Linux kernel)

Fix PR64935

* haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
(rank_for_schedule_debug): Update.
(ready_sort): Make static.  Move sorting logic to ...
(ready_sort_debug, ready_sort_real): New static functions.
(schedule_block): Sort both debug insns and real insns in preparation
for ready list trimming.  Improve debug output.
* sched-int.h (ready_sort): Remove global declaration.

* gcc.dg/pr64935-1.c, gcc.dg/pr64935-2.c: New tests.

From-SVN: r220808
gcc/ChangeLog
gcc/haifa-sched.c
gcc/sched-int.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64935-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr64935-2.c [new file with mode: 0644]