aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-expand.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2020-11-06 09:51:16 +0100
committerThomas Schwinge <thomas@codesourcery.com>2020-11-24 10:28:55 +0100
commit54f72078fc05b865601645edafbc6b21701ea546 (patch)
tree3d75c8079635c0824385a64ae03fe09540bc7126 /gcc/omp-expand.c
parent24b553d0f73ffea2551a77c67859ad6fe44110a6 (diff)
downloadgcc-54f72078fc05b865601645edafbc6b21701ea546.zip
gcc-54f72078fc05b865601645edafbc6b21701ea546.tar.gz
gcc-54f72078fc05b865601645edafbc6b21701ea546.tar.bz2
[testsuite] Emit 'warning' instead of 'error' diagnostics for 'dg-optimized', 'dg-missed'
The diagnostics produced by 'dg-optimized', 'dg-missed' aren't error diagnostics (fatal, meaning: causes compilation to fail) but rather warning diagnostics (non-fatal, doesn't cause compilation to fail). Thus, same as 'dg-message', these should use 'saved-dg-warning' instead of 'saved-dg-error', which then prints: "(test for *warnings*, line [...]) instead of currently: "(test for *errors*, line [...])". This is a small bug-fix for commit ed2d9d3720adef3a260b8a55e17e744352a901fc "dumpfile.c: use prefixes other than 'note: ' for MSG_{OPTIMIZED_LOCATIONS|MISSED_OPTIMIZATION}", which added 'dg-optimized', 'dg-missed'. gcc/testsuite/ * lib/gcc-dg.exp (dg-optimized, dg-missed): Use 'saved-dg-warning' instead of 'saved-dg-error'.
Diffstat (limited to 'gcc/omp-expand.c')
0 files changed, 0 insertions, 0 deletions