https://gcc.gnu.org/g:3b1e1342c32ed6fe417e1dd6e92758ce9d1a3657
commit r17-1911-g3b1e1342c32ed6fe417e1dd6e92758ce9d1a3657 Author: Jiahao Xu <[email protected]> Date: Fri Jun 26 15:16:58 2026 +0800 LoongArch: Fix parameter type for loongarch_sched_reassociation_width Follow up to r17-1827-g92d206fab98, which changed the reassociation_width target hook to use tree_code instead of unsigned int. This patch updates loongarch_sched_reassociation_width to use the correct tree_code parameter type to match the target hook definition. gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_sched_reassociation_width): Get a tree_code instead of unsigned int. Diff: --- gcc/config/loongarch/loongarch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/loongarch/loongarch.cc b/gcc/config/loongarch/loongarch.cc index 1192c85e0f1e..3f0666f360cd 100644 --- a/gcc/config/loongarch/loongarch.cc +++ b/gcc/config/loongarch/loongarch.cc @@ -10038,7 +10038,7 @@ loongarch_cpu_sched_reassociation_width (struct loongarch_target *target, /* Implement TARGET_SCHED_REASSOCIATION_WIDTH. */ static int -loongarch_sched_reassociation_width (unsigned int opc, machine_mode mode) +loongarch_sched_reassociation_width (tree_code opc, machine_mode mode) { return loongarch_cpu_sched_reassociation_width (&la_target, opc, mode); }
