re PR testsuite/64605 (ERROR: (DejaGnu) proc "libatomic_target_compile lto1738.c...
authorIlya Verbin <ilya.verbin@intel.com>
Fri, 16 Jan 2015 11:29:54 +0000 (11:29 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Fri, 16 Jan 2015 11:29:54 +0000 (11:29 +0000)
PR testsuite/64605

libatomic/
* testsuite/lib/libatomic.exp: Do not load gcc-dg.exp.
* testsuite/libatomic.c/c.exp: Load gcc-dg.exp.

From-SVN: r219722

libatomic/ChangeLog
libatomic/testsuite/lib/libatomic.exp
libatomic/testsuite/libatomic.c/c.exp

index b0c72d3f9522817324f330ccf11c7eb0a3177937..ef5b6cdf0bf6ae4012e33abeaca0414a0686f044 100644 (file)
@@ -1,3 +1,9 @@
+2015-01-16  Ilya Verbin  <ilya.verbin@intel.com>
+
+       PR testsuite/64605
+       * testsuite/lib/libatomic.exp: Do not load gcc-dg.exp.
+       * testsuite/libatomic.c/c.exp: Load gcc-dg.exp.
+
 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
 
        * configure.tgt: Exclude arm*-*-freebsd* from try_ifunc.
index 28cbaa8e4147dfec824f1b0c7b1966fe8bf7b063..0491c188ad4076d8516c7231e6c68307d15579ab 100644 (file)
@@ -23,6 +23,11 @@ proc load_gcc_lib { filename } {
 }
 
 load_lib dg.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 file-format.exp
 load_gcc_lib target-supports.exp
 load_gcc_lib target-utils.exp
@@ -40,7 +45,6 @@ load_gcc_lib torture-options.exp
 load_gcc_lib timeout.exp
 load_gcc_lib timeout-dg.exp
 load_gcc_lib fortran-modules.exp
-load_gcc_lib gcc-dg.exp
 
 set dg-do-what-default run
 
index 1da3cb1e88675d10b8d4c1cdb554370250bf11da..dbdb5eb92fc77e7f94b51f1427788aa8a55dfa72 100644 (file)
@@ -21,6 +21,7 @@ if [info exists lang_test_file] then {
 }
 
 load_lib libatomic-dg.exp
+load_gcc_lib gcc-dg.exp
 
 # If a testcase doesn't have special options, use these.
 if ![info exists DEFAULT_CFLAGS] then {