]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: gcc.dg/pr106397.c: Add -w to options
authorHans-Peter Nilsson <hp@axis.com>
Fri, 10 Mar 2023 16:04:43 +0000 (17:04 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 10 Mar 2023 22:46:45 +0000 (23:46 +0100)
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

index 2bc17f8cf8060fbf2505f909f94a35bb6e44badf..2dd04b870775a4d2c35af9776b39ae48bddcee29 100644 (file)
@@ -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