]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix compare-debug bootstrap failure [PR113445]
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Thu, 18 Jan 2024 13:45:27 +0000 (14:45 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 13:45:27 +0000 (14:45 +0100)
commita6bf09f65aed44d36acaa511e552783bfb0e9a62
tree9664c5651038657d01d747ada626fc9e3e3d13f6
parent6764043e88a4208f7c69bf0ccd19ddc7a6016fb1
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.
gcc/haifa-sched.cc
gcc/sched-deps.cc
gcc/sched-int.h
gcc/testsuite/gcc.dg/pr113445.c [new file with mode: 0644]