This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR82396 workaround for AArch64 bootstrap failure
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: nd <nd at arm dot com>
- Date: Thu, 5 Oct 2017 23:21:39 +0000
- Subject: [PATCH] PR82396 workaround for AArch64 bootstrap failure
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
r253236 broke AArch64 bootstrap. This is a temporary workaround that
disables qsort checking in the scheduler to enable continued development
and testing on AArch64. This will be removed once the autopref scheduling
code has been fixed.
AArch64 bootstrap completes, OK for commit?
ChangeLog:
2017-10-05 Wilco Dijkstra <wdijkstr@arm.com>
PR rtl-optimization/82396
* haifa-sched.c (ready_sort_real): Disable qsort checking.
--
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 549e8961411ecd0a04ac3b24ba78b5d53e63258a..e7014cbb8b378c998148189b4d871e93c3e81918 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -3084,7 +3084,8 @@ ready_sort_real (struct ready_list *ready)
if (n_ready_real == 2)
swap_sort (first, n_ready_real);
else if (n_ready_real > 2)
- qsort (first, n_ready_real, sizeof (rtx), rank_for_schedule);
+ /* HACK: Disable qsort checking for now (PR82396). */
+ (qsort) (first, n_ready_real, sizeof (rtx), rank_for_schedule);
if (sched_verbose >= 4)
{