From: David Malcolm Date: Tue, 26 Nov 2024 15:39:18 +0000 (-0500) Subject: loop-prefetch: fix wording of warning [PR80760] X-Git-Tag: basepoints/gcc-16~3854 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67458ea13895bae3965274e7f03701fb14f8b1e6;p=thirdparty%2Fgcc.git loop-prefetch: fix wording of warning [PR80760] 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 --- diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79803.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79803.c index 3b475fa67494..102fb76e2737 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79803.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79803.c @@ -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; diff --git a/gcc/tree-ssa-loop-prefetch.cc b/gcc/tree-ssa-loop-prefetch.cc index 971bbae95815..a191eaf75f58 100644 --- a/gcc/tree-ssa-loop-prefetch.cc +++ b/gcc/tree-ssa-loop-prefetch.cc @@ -2103,7 +2103,7 @@ pass_loop_prefetch::execute (function *fun) if (!warned) { warning (OPT_Wdisabled_optimization, - "% parameter is not a power of two %d", + "% parameter is not a power of two: %d", PREFETCH_BLOCK); warned = true; }