]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
loop-prefetch: fix wording of warning [PR80760]
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 26 Nov 2024 15:39:18 +0000 (10:39 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 26 Nov 2024 15:39:18 +0000 (10:39 -0500)
gcc/ChangeLog:
PR translation/80760
* tree-ssa-loop-prefetch.cc (pass_loop_prefetch::execute): Add
missing colon to not-a-power-of-two param warning.

gcc/testsuite/ChangeLog:
PR translation/80760
* gcc.dg/tree-ssa/pr79803.c: Add ':' to expected warning.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/gcc.dg/tree-ssa/pr79803.c
gcc/tree-ssa-loop-prefetch.cc

index 3b475fa674945637ec56fd25c7a76de95414d6c0..102fb76e2737b24be6c6a38a4edb412fd58e0705 100644 (file)
@@ -13,7 +13,7 @@ void raise0(void)
   __builtin_longjmp (buf, 1);
 }
 
-int execute(int cmd) /* { dg-warning "'l1-cache-size' parameter is not a power of two 3" } */
+int execute(int cmd) /* { dg-warning "'l1-cache-size' parameter is not a power of two: 3" } */
 {
   int last = 0;
 
index 971bbae9581503259f00eca8ee63bbdda4c29e37..a191eaf75f583745b2a597779ee9dde1b81b495d 100644 (file)
@@ -2103,7 +2103,7 @@ pass_loop_prefetch::execute (function *fun)
       if (!warned)
        {
          warning (OPT_Wdisabled_optimization,
-                  "%<l1-cache-size%> parameter is not a power of two %d",
+                  "%<l1-cache-size%> parameter is not a power of two: %d",
                   PREFETCH_BLOCK);
          warned = true;
        }