https://gcc.gnu.org/g:11b28b2ab964dfa1bf7ec8282b5ab06ca4f26f77

commit r17-2004-g11b28b2ab964dfa1bf7ec8282b5ab06ca4f26f77
Author: Richard Biener <[email protected]>
Date:   Tue Jun 30 10:19:27 2026 +0200

    tree-optimization/126032 - pasto in gimple-ssa-warn-access.cc
    
    The maybe case should also diagnose a may be.
    
            PR tree-optimization/126032
            * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Fixup
            diagnostic string.

Diff:
---
 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 9dc48da0499a..dd128802f9d9 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")),

Reply via email to