libgomp.exp: Reorder lib loads into dependency order.
authorIain Sandoe <iain@codesourcery.com>
Thu, 20 Jun 2013 16:48:26 +0000 (16:48 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Thu, 20 Jun 2013 16:48:26 +0000 (16:48 +0000)
2013-06-20  Iain Sandoe  <iain@codesourcery.com>
        Cesar Philippidis  <cesar@codesourcery.com>

* testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
* testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
* testsuite/libgomp.fortran/fortran.exp: Likewise.
* testsuite/libgomp.graphite/graphite.exp: Likewise.
* testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
Use dg-runtest rather than gfortran-dg-runtest.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r200253

libgomp/ChangeLog
libgomp/testsuite/lib/libgomp.exp
libgomp/testsuite/libgomp.c++/c++.exp
libgomp/testsuite/libgomp.c/c.exp
libgomp/testsuite/libgomp.fortran/fortran.exp
libgomp/testsuite/libgomp.graphite/graphite.exp

index 1a0f13373348b7ed43ae0dbfbe65814c40537ab8..9a575739e7c8b0fbdb00a2e0342d91d4692fd730 100644 (file)
@@ -1,3 +1,14 @@
+2013-06-20  Iain Sandoe  <iain@codesourcery.com>
+           Cesar Philippidis  <cesar@codesourcery.com>
+
+       * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
+       Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
+       * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
+       * testsuite/libgomp.fortran/fortran.exp: Likewise.
+       * testsuite/libgomp.graphite/graphite.exp: Likewise.
+       * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
+       Use dg-runtest rather than gfortran-dg-runtest.
+
 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
 
        * testsuite/libgomp.c/icv-2.c: Extend current handling of
index cd561bf15766b9b121af1e4d8b4d732c47169bbc..72daa7e3a3e191f332511b3e9b1b73a4ebb1096c 100644 (file)
@@ -9,24 +9,27 @@ proc load_gcc_lib { filename } {
 }
 
 load_lib dg.exp
-load_gcc_lib file-format.exp
+
+# Required to use gcc-dg.exp - however, the latter should NOT be
+# loaded until ${tool}_target_compile is defined since it uses that
+# to determine default LTO options.
+
+load_gcc_lib prune.exp
+load_gcc_lib target-libpath.exp
+load_gcc_lib wrapper.exp
+load_gcc_lib gcc-defs.exp
+load_gcc_lib timeout.exp
 load_gcc_lib target-supports.exp
+load_gcc_lib file-format.exp
 load_gcc_lib target-supports-dg.exp
 load_gcc_lib scanasm.exp
 load_gcc_lib scandump.exp
 load_gcc_lib scanrtl.exp
 load_gcc_lib scantree.exp
 load_gcc_lib scanipa.exp
-load_gcc_lib prune.exp
-load_gcc_lib target-libpath.exp
-load_gcc_lib wrapper.exp
-load_gcc_lib gcc-defs.exp
-load_gcc_lib torture-options.exp
-load_gcc_lib timeout.exp
 load_gcc_lib timeout-dg.exp
+load_gcc_lib torture-options.exp
 load_gcc_lib fortran-modules.exp
-load_gcc_lib gcc-dg.exp
-load_gcc_lib gfortran-dg.exp
 
 set dg-do-what-default run
 
index decda3d1a122ebab2d2bc1dfa27dbb431418c056..b3363062ae89d3203bc664b1acb3979a6b72c45e 100644 (file)
@@ -1,4 +1,5 @@
 load_lib libgomp-dg.exp
+load_gcc_lib gcc-dg.exp
 
 global shlib_ext
 
@@ -53,7 +54,7 @@ if { $lang_test_file_found } {
     }
 
     # Main loop.
-    gfortran-dg-runtest $tests $libstdcxx_includes
+    dg-runtest $tests "" $libstdcxx_includes
 }
 
 # All done.
index 980bb526f3f75bcb0a20e8c1109c96bbb60df6f6..7dfdf8bde78bb9dcbce285b9fb5ea186222c42c4 100644 (file)
@@ -7,6 +7,7 @@ if [info exists lang_test_file] then {
 }
 
 load_lib libgomp-dg.exp
+load_gcc_lib gcc-dg.exp
 
 # If a testcase doesn't have special options, use these.
 if ![info exists DEFAULT_CFLAGS] then {
index 40ac840976236fe1b37755dc94c0123387c1b1ec..b7fef293a2239ff367c187ef32babf0d34f057a1 100644 (file)
@@ -1,4 +1,6 @@
 load_lib libgomp-dg.exp
+load_gcc_lib gcc-dg.exp
+load_gcc_lib gfortran-dg.exp
 
 global shlib_ext
 global ALWAYS_CFLAGS
index e676ad3c75b392ac897fc2f81e0c7902de0c4a1f..08aa5095cf95a318464a5275175700fc973325b2 100644 (file)
@@ -23,6 +23,7 @@ if [info exists lang_test_file] then {
 }
 
 load_lib libgomp-dg.exp
+load_gcc_lib gcc-dg.exp
 
 if ![check_effective_target_pthread] {
   return