The maybe case should also diagnose a may be.
Bootstrapped/tested on x86_64-unknown-linux-gnu, pushed.
PR tree-optimization/126032
* gimple-ssa-warn-access.cc (maybe_warn_for_bound): Fixup
diagnostic string.
---
gcc/gimple-ssa-warn-access.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/gimple-ssa-warn-access.cc b/gcc/gimple-ssa-warn-access.cc
index 9dc48da0499..dd128802f9d 100644
--- a/gcc/gimple-ssa-warn-access.cc
+++ b/gcc/gimple-ssa-warn-access.cc
@@ -898,7 +898,7 @@ maybe_warn_for_bound (opt_code opt, location_t loc,
GimpleOrTree exp, tree func,
func, bndrng[0], bndrng[1], size)
: warning_at (&richloc, opt,
(maybe
- ? G_("specified bound [%E, %E] exceeds "
+ ? G_("specified bound [%E, %E] may exceed "
"destination size %E")
: G_("specified bound [%E, %E] exceeds "
"destination size %E")),
--
2.51.0