]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RISC-V] Fix trivial bootstrap failure on RISC-V
authorJeff Law <jlaw@ventanamicro.com>
Wed, 19 Nov 2025 13:34:33 +0000 (06:34 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 19 Nov 2025 13:34:33 +0000 (06:34 -0700)
Trivial bootstrap fix for the RISC-V port where a recent change introduced a
signed vs unsigned warning.

gcc/
* config/riscv/riscv-string.cc (riscv_expand_block_move_scalar):
Fix signed vs unsigned warning.

gcc/config/riscv/riscv-string.cc

index 2d662b4ce495da6adaeb61f2375074af4d5a94f2..c5710e4c8962c4e988d2875bd499cfb784621623 100644 (file)
@@ -924,7 +924,7 @@ riscv_expand_block_move_scalar (rtx dest, rtx src, rtx length)
   unsigned HOST_WIDE_INT factor, align;
 
   if (riscv_memcpy_size_threshold >= 0
-      && hwi_length > riscv_memcpy_size_threshold)
+      && hwi_length > (unsigned HOST_WIDE_INT) riscv_memcpy_size_threshold)
     return false;
 
   if (riscv_slow_unaligned_access_p)