]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Ignore warning for unsupported option
authorDimitar Dimitrov <dimitar@dinux.eu>
Tue, 14 Nov 2023 19:06:52 +0000 (21:06 +0200)
committerDimitar Dimitrov <dimitar@dinux.eu>
Tue, 14 Nov 2023 19:55:38 +0000 (21:55 +0200)
The -w option was used in gcc.dg/20020206-1.c to ignore warnings if the
'-fprefetch-loop-arrays' option is not supported by target.

When commit r14-5380-g5c432b0efab54e removed the -w option, some targets
(arm-none-eabi, pru and possibly others) started failing the test:

  cc1: warning: '-fprefetch-loop-arrays' not supported for this target
  FAIL: gcc.dg/20020206-1.c (test for excess errors)

Fix by instructing DejaGnu to prune the '-fprefetch-loop-arrays'
warning.

gcc/testsuite/ChangeLog:

* gcc.dg/20020206-1.c: Prune warning that
-fprefetch-loop-arrays is not supported.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/20020206-1.c

index c8d8b61937a21d421c8203d14639c61b864e406a..a5a9cb038e7a6d3359abebecb94ad89e2baf2033 100644 (file)
@@ -5,6 +5,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -fprefetch-loop-arrays" } */
 /* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-prune-output  ".-fprefetch-loop-arrays. not supported for this target" } */
 
 
 struct reload