diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2024-07-26 12:58:38 +0200 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2024-07-26 14:17:08 +0200 |
commit | 3f2bf415b447a0f6bc424c688b06e1f5946688a0 (patch) | |
tree | a7d9b27459720cb26c2996b2ca77e6f35157014e | |
parent | 29e4e4bdb674118b898d50ce7751c183aa0a44ee (diff) | |
download | gcc-3f2bf415b447a0f6bc424c688b06e1f5946688a0.zip gcc-3f2bf415b447a0f6bc424c688b06e1f5946688a0.tar.gz gcc-3f2bf415b447a0f6bc424c688b06e1f5946688a0.tar.bz2 |
RISC-V: Work around bare apostrophe in error string.
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.
-rw-r--r-- | gcc/config/riscv/riscv.cc | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/rvv/base/pr116036.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 2bb7f2a..a490b95 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -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)) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pr116036.c b/gcc/testsuite/gcc.target/riscv/rvv/base/pr116036.c index a722095..7b39291 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pr116036.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pr116036.c @@ -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" } */ |