]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Unbreak bootstrap.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 21 Jan 2025 17:07:41 +0000 (18:07 +0100)
committerRobin Dapp <rdapp@ventanamicro.com>
Tue, 21 Jan 2025 18:30:55 +0000 (19:30 +0100)
This fixes a wrong format specifier and an unused variable which should
re-enable bootstrap.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_file_end): Fix format string.
(riscv_lshift_subword): Mark MODE as unused.

gcc/config/riscv/riscv.cc

index f5e672bb7f50885f5a19f2c3977be7950d05dcb4..5a3a05041773877b8c3161bc22ee3868e5cd50c1 100644 (file)
@@ -10375,7 +10375,7 @@ riscv_file_end ()
       fprintf (asm_out_file, "\t.long\t4f - 3f\n");
       fprintf (asm_out_file, "3:\n");
       /* zicfiss, zicfilp.  */
-      fprintf (asm_out_file, "\t.long\t%x\n", feature_1_and);
+      fprintf (asm_out_file, "\t.long\t%lx\n", feature_1_and);
       fprintf (asm_out_file, "4:\n");
       fprintf (asm_out_file, "\t.p2align\t%u\n", p2align);
       fprintf (asm_out_file, "5:\n");
@@ -11959,7 +11959,7 @@ riscv_subword_address (rtx mem, rtx *aligned_mem, rtx *shift, rtx *mask,
 /* Leftshift a subword within an SImode register.  */
 
 void
-riscv_lshift_subword (machine_mode mode, rtx value, rtx shift,
+riscv_lshift_subword (machine_mode mode ATTRIBUTE_UNUSED, rtx value, rtx shift,
                      rtx *shifted_value)
 {
   rtx value_reg = gen_reg_rtx (SImode);