aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <jlaw@ventanamicro.com>2023-07-24 07:56:36 -0600
committerJeff Law <jlaw@ventanamicro.com>2023-07-24 07:56:36 -0600
commitaa1e2d543869a07580f9b2112f2d7367f83a6753 (patch)
treedcaec3eabcdb61fd2857a94d25944ff39141ecca /gcc
parent2b074dc7bdf4402c1e3e44f247e27f3ef51bd8e4 (diff)
downloadgcc-aa1e2d543869a07580f9b2112f2d7367f83a6753.zip
gcc-aa1e2d543869a07580f9b2112f2d7367f83a6753.tar.gz
gcc-aa1e2d543869a07580f9b2112f2d7367f83a6753.tar.bz2
[committed][RISC-V] Fix minor issues in diagnostic message
This fixes two minor issues with the recently adding warning about too large VLEN in the RISC-V backend. These prevent the RISC-V port from bootstrapping as both Andreas and I have found. Specifically we'll get warnings for the use of '>' in the recently added message as well as using "can not" vs "cannot". While these warnings may seem annoying, they're in place to make it easier for the translators. This patch fixes the message in the fairly obvious way. Spells out the greater than and uses cannot. There's a similar issue in another recently added diagnostic that I'll push momentarily. gcc/ * config/riscv/riscv.cc (riscv_option_override): Spell out greater than and use cannot in diagnostic string.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/riscv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 332fa72..941ea25 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -6713,7 +6713,7 @@ riscv_option_override (void)
We can only allow TARGET_MIN_VLEN * 8 (LMUL) < 65535. */
if (TARGET_MIN_VLEN > 4096)
sorry (
- "Current RISC-V GCC can not support VLEN > 4096bit for 'V' Extension");
+ "Current RISC-V GCC cannot support VLEN greater than 4096bit for 'V' Extension");
/* Convert -march to a chunks count. */
riscv_vector_chunks = riscv_convert_vector_bits ();