[committed] testsuite: gcc.dg/pr106397.c: Add -w to options

Message ID 20230310225124.CF2BD20417@pchp3.se.axis.com
State Committed
Commit b6503c707cb846035902a4b7a58d78360d2a6488
Headers
Series [committed] testsuite: gcc.dg/pr106397.c: Add -w to options |

Commit Message

Hans-Peter Nilsson March 10, 2023, 10:51 p.m. UTC
  Committed as obvious.
-- >8 --
Targets that don't support prefetching get a warning:
cc1: warning: '-fprefetch-loop-arrays' not supported for this target

Align with other tests passing -fprefetch-loop-arrays for
all targets: add "-w" to options.

	* gcc.dg/pr106397.c: Add -w to options.
---
 gcc/testsuite/gcc.dg/pr106397.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/pr106397.c b/gcc/testsuite/gcc.dg/pr106397.c
index 2bc17f8cf806..2dd04b870775 100644
--- a/gcc/testsuite/gcc.dg/pr106397.c
+++ b/gcc/testsuite/gcc.dg/pr106397.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O3 -fprefetch-loop-arrays --param l2-cache-size=0 --param prefetch-latency=3 -fprefetch-loop-arrays" } */
+/* { dg-options "-O3 -fprefetch-loop-arrays -w --param l2-cache-size=0 --param prefetch-latency=3 -fprefetch-loop-arrays" } */
 /* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 int