2000-08-13 Geoff Keating <geoffk@cygnus.com>
+ * lib/c-torture.exp (c-torture): Make
+ compiler_conditional_xfail_data global.
+ * lib/f-torture.exp (f-torture): Add in torture_eval_before_compile,
+ compiler_conditional_xfail_data machinery.
+ (f-torture-execute): Likewise.
+ * g77.c-torture/compile/20000629-1.x: The test only fails on x86,
+ and only when unrolling loops.
+
* gcc.dg/c99-array-lval-1.c: The test on line 14 now passes.
2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# to more than 14 chars.
#
proc f-torture-execute { src } {
- global tmpdir tool srcdir output
+ global tmpdir tool srcdir output compiler_conditional_xfail_data
# Check for alternate driver.
if [file exists [file rootname $src].x] {
if [info exists torture_compile_xfail] {
setup_xfail $torture_compile_xfail
}
+
+ # torture_execute_before_{compile,execute} can be set by the .x script
+ # (if present)
+ if [info exists torture_eval_before_compile] {
+ set ignore_me [eval $torture_eval_before_compile]
+ }
+
remote_file build delete $executable
verbose "Testing $testcase, $option" 1
if [info exists torture_execute_xfail] {
setup_xfail $torture_execute_xfail
}
-
+
+ if [info exists torture_eval_before_execute] {
+ set ignore_me [eval $torture_eval_before_execute]
+ }
+
set result [g77_load "$executable" "" ""]
set status [lindex $result 0];
set output [lindex $result 1];
# to more than 14 chars.
#
proc f-torture { args } {
- global srcdir subdir
+ global srcdir subdir compiler_conditional_xfail_data
set src [lindex $args 0];
if { [llength $args] > 1 } {
setup_xfail $torture_compile_xfail
}
+ # torture_execute_before_compile is set by the .x script (if present)
+ if [info exists torture_eval_before_compile] {
+ set ignore_me [eval $torture_eval_before_compile]
+ }
+
f-torture-compile $src "$option $options"
}
}