]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit3d8d443c4ebb4de7e141d385d3b5fb6605c4da16
treec2d7bac21bc031cd6ea31f73bde7686b82a81a3e
parent14979dd31c887ba5ba573f2cdb0647b37e09641a
testsuite: Ignore warning for unsupported option

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