]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-optimization/126032 - pasto in gimple-ssa-warn-access.cc
authorRichard Biener <rguenther@suse.de>
Tue, 30 Jun 2026 08:19:27 +0000 (10:19 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Jun 2026 09:41:25 +0000 (11:41 +0200)
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.

gcc/gimple-ssa-warn-access.cc

index 9dc48da0499a265a09e94588cc2bf7378bea366a..dd128802f9d9de19c2daeeff3bca228771aa4b8e 100644 (file)
@@ -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")),