]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix format-diag warning from improperly formatted url
authorPatrick O'Neill <patrick@rivosinc.com>
Tue, 6 Aug 2024 15:16:26 +0000 (08:16 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 6 Aug 2024 16:13:45 +0000 (09:13 -0700)
gcc/ChangeLog:

PR target/116152
* config/riscv/riscv.cc (riscv_option_override): Fix url
formatting.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/predef-9.c: Update testcase.

Co-authored-by: Jakub Jelinek <jakub@redhat.com>
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/config/riscv/riscv.cc
gcc/testsuite/gcc.target/riscv/predef-9.c

index b005af62e61fab326ceb33308c9e2a631cd74043..3f7eec8d69e191ab7ca9d47c3efdeff9c3e4bd16 100644 (file)
@@ -9826,8 +9826,8 @@ riscv_option_override (void)
   if (riscv_abi == ABI_LP64E)
     {
       if (warning (OPT_Wdeprecated, "LP64E ABI is marked for deprecation in GCC"))
-       inform (UNKNOWN_LOCATION, "If you need LP64E please notify the GCC "
-               "project via https://gcc.gnu.org/PR116152");
+       inform (UNKNOWN_LOCATION, "if you need LP64E please notify the GCC "
+               "project via %{PR116152%}", "https://gcc.gnu.org/PR116152");
     }
 
   /* Zfinx require abi ilp32, ilp32e, lp64 or lp64e.  */
index 0d9488529ea51bcd9460671f97d27d711b32b188..b173d5df57fcc2e2b85cd20599df8df88d135ca3 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-march=rv64em -mabi=lp64e -mno-div -mcmodel=medlow" } */
 /* { dg-warning "LP64E ABI is marked for deprecation in GCC" "" { target *-*-* } 0 } */
-/* { dg-note "If you need LP64E please notify the GCC project via https://gcc.gnu.org/PR116152" "" { target *-*-* } 0 } */
+/* { dg-note "if you need LP64E please notify the GCC project via PR116152" "" { target *-*-* } 0 } */
 
 int main () {
 #if !defined(__riscv)