]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vrp: Fix up diagnostics wording
authorJakub Jelinek <jakub@redhat.com>
Thu, 5 Sep 2024 09:06:12 +0000 (11:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 5 Sep 2024 09:06:12 +0000 (11:06 +0200)
I've noticed non-standard wording of this diagnostics when looking at
a miscompilation with --param=vrp-block-limit=0.

Diagnostics generally shouldn't start with uppercase letter (unless
the upper case would appear also in the middle of a sentence) and shouldn't
be separate sentences with dot as separator, ; is IMHO more frequently used.

2024-09-05  Jakub Jelinek  <jakub@redhat.com>

* tree-vrp.cc (pass_vrp::execute): Start diagnostics with
lowercase u rather than capital U, use semicolon instead of dot.

gcc/tree-vrp.cc

index e184e9af51e1925f0d02b8fb891f5047744118ce..23946c57413734f789e403805ccfbb7589ea0cb4 100644 (file)
@@ -1337,7 +1337,7 @@ public:
        {
          use_fvrp = true;
          warning (OPT_Wdisabled_optimization,
-                  "Using fast VRP algorithm. %d basic blocks"
+                  "using fast VRP algorithm; %d basic blocks"
                   " exceeds %<--param=vrp-block-limit=%d%> limit",
                   n_basic_blocks_for_fn (fun),
                   param_vrp_block_limit);