+2009-11-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR testsuite/42001
+ * gcc.dg/lto/lto.exp: Pass no-mathlib to lto_init. Call
+ lto_finish at the end.
+
+ * lib/lto.exp (lto_init): Set mathlib to " " for no-mathlib.
+ (lto_finish): New. Restore mathlib.
+
2009-11-11 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/torture/pushpop_macro.C: New testcase.
2009-11-11 Jon Beniston <jon@beniston.com>
- * lib/target-supports.exp (check_profiling_available): lm32 target
- doesn't support profiling.
- * gcc.dg/20020312-2.c: Add lm32 support.
- * g++.dg/other/packed1.C: Expect to fail on lm32.
- * g++.old-deja/g++.jason/thunk3.C: Likewise.
+ * lib/target-supports.exp (check_profiling_available): lm32 target
+ doesn't support profiling.
+ * gcc.dg/20020312-2.c: Add lm32 support.
+ * g++.dg/other/packed1.C: Expect to fail on lm32.
+ * g++.old-deja/g++.jason/thunk3.C: Likewise.
2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
# Contributed by Diego Novillo <dnovillo@google.com>
-# lto_init -- called at the start of eac subdir of tests
+# lto_init -- called at the start of each subdir of tests
proc lto_init { args } {
global LTO_OPTIONS
+ if {[info exists args] && $args == "no-mathlib"} {
+ global board_info
+ global saved_mathlib
+
+ set dest [target_info name]
+ if [board_info $dest exists mathlib] {
+ set saved_mathlib [board_info $dest mathlib]
+ }
+ set board_info($dest,mathlib) " "
+ }
+
# Each test is run with the compiler options from this list.
# The default option lists can be overridden by LTO_OPTIONS="[list
# {opts_1} {opts_2}... {opts_n}]" where opts_i are lists of options.
}
}
+#
+# lto_finish -- called at the end of each subdir of tests if mathlib is
+# changed.
+#
+
+proc lto_finish { } {
+ global board_info
+ global saved_mathlib
+
+ set dest [target_info name]
+ if [info exists saved_mathlib] {
+ set board_info($dest,mathlib) $saved_mathlib
+ } elseif [board_info $dest exists mathlib] {
+ unset board_info($dest,mathlib)
+ }
+}
# Subsets of tests can be selectively disabled by members of this list:
# - ATTRIBUTE: disable all tests using the __attribute__ extension,