]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Work around bare apostrophe in error string.
authorRobin Dapp <rdapp@ventanamicro.com>
Fri, 26 Jul 2024 10:58:38 +0000 (12:58 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:06:00 +0000 (19:06 +0200)
An unquoted apostrophe slipped through when testing the recent
V/M extension patch.  This, again, re-words the message to
"Currently the 'V' implementation requires the 'M' extension".

Going to commit as obvious after testing.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_override_options_internal):
Reword error string without apostrophe.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/pr116036.c: Adjust expected error
string.

gcc/config/riscv/riscv.cc
gcc/testsuite/gcc.target/riscv/rvv/base/pr116036.c

index 2bb7f2aace1b16fe7cab1eb19921bbb7d0774141..a490b9598b04d39caa558b9b69ac0938cb9f2d6e 100644 (file)
@@ -9694,7 +9694,7 @@ riscv_override_options_internal (struct gcc_options *opts)
   /* We might use a multiplication to calculate the scalable vector length at
      runtime.  Therefore, require the M extension.  */
   if (TARGET_VECTOR && !TARGET_MUL)
-    sorry ("GCC's current %<V%> implementation requires the %<M%> extension");
+    sorry ("Currently the %<V%> implementation requires the %<M%> extension");
 
   /* Likewise floating-point division and square root.  */
   if ((TARGET_HARD_FLOAT_OPTS_P (opts) || TARGET_ZFINX_OPTS_P (opts))
index a72209593f39e6a7cc432a708218f8466b8e00fc..7b39291a91ad125b097ab50a234e8a15523076b7 100644 (file)
@@ -8,4 +8,4 @@ void init() {
       a[i_0][i_1] = 1;
 }
 
-/* { dg-excess-errors "sorry, unimplemented: GCC's current 'V' implementation requires the 'M' extension" } */
+/* { dg-excess-errors "sorry, unimplemented: Currently the 'V' implementation requires the 'M' extension" } */