aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-int.h
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2024-01-18 14:45:27 +0100
committerJakub Jelinek <jakub@redhat.com>2024-01-18 14:45:27 +0100
commita6bf09f65aed44d36acaa511e552783bfb0e9a62 (patch)
tree9664c5651038657d01d747ada626fc9e3e3d13f6 /gcc/sched-int.h
parent6764043e88a4208f7c69bf0ccd19ddc7a6016fb1 (diff)
downloadgcc-a6bf09f65aed44d36acaa511e552783bfb0e9a62.zip
gcc-a6bf09f65aed44d36acaa511e552783bfb0e9a62.tar.gz
gcc-a6bf09f65aed44d36acaa511e552783bfb0e9a62.tar.bz2
Fix compare-debug bootstrap failure [PR113445]
... caused by scheduler fix for PR96388 and PR111554. This patch adjusts decision sched-deps.cc:find_inc() to use length of dependency lists sans any DEBUG_INSN instructions. gcc/ChangeLog 2024-01-18 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> PR bootstrap/113445 * haifa-sched.cc (dep_list_size): Make global. * sched-deps.cc (find_inc): Use instead of sd_lists_size(). * sched-int.h (dep_list_size): Declare. gcc/testsuite/ChangeLog 2024-01-18 Jakub Jelinek <jakub@redhat.com> PR bootstrap/113445 * gcc.dg/pr113445.c: New test.
Diffstat (limited to 'gcc/sched-int.h')
-rw-r--r--gcc/sched-int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/sched-int.h b/gcc/sched-int.h
index ab784fe..4df0920 100644
--- a/gcc/sched-int.h
+++ b/gcc/sched-int.h
@@ -1677,6 +1677,8 @@ extern void sd_copy_back_deps (rtx_insn *, rtx_insn *, bool);
extern void sd_delete_dep (sd_iterator_def);
extern void sd_debug_lists (rtx, sd_list_types_def);
+extern int dep_list_size (rtx_insn *, sd_list_types_def);
+
/* Macros and declarations for scheduling fusion. */
#define FUSION_MAX_PRIORITY (INT_MAX)
extern bool sched_fusion;