This test case had from the beginning both
 ! { dg-do run }
 ! { dg-options "-O2" }

However, 'dg-do run' implies torture, i.e. multiple optimization options,
while 'dg-options "-O2"' implies -O2, only.

This means that the test case is compiled 4 times with
"-O0", "-O1", "-O3 -f…" and "-Os" – followed by "-O2".
Hence, it is run 4 times with nearly identical options
(With "-O3" [followed by "-O2"], the "-fomit-frame-pointer -funroll-loops 
-fpeel-loops
-ftracer -finline-functions" options do get added.)

Hence, we can either remove "dg-do run" or "dg-options". I suggest to remove
the latter.

OK?

Tobias

2019-11-04  Tobias Burnus  <tob...@codesourcery.com>

	* testsuite/libgomp.fortran/pr66199-2.f90: Remove
	dg-options from torture test.

diff --git a/libgomp/testsuite/libgomp.fortran/pr66199-2.f90 b/libgomp/testsuite/libgomp.fortran/pr66199-2.f90
index 0cc0fa5097f..5ee74149089 100644
--- a/libgomp/testsuite/libgomp.fortran/pr66199-2.f90
+++ b/libgomp/testsuite/libgomp.fortran/pr66199-2.f90
@@ -1,6 +1,5 @@
 ! PR middle-end/66199
 ! { dg-do run }
-! { dg-options "-O2" }
 
   integer :: u(1024), v(1024), w(1024), a, b, c, d, e, a1, b1, a2, b2, d1, d2
   a = 1

Reply via email to