aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-08-31 23:59:40 +0000
committerJeff Law <law@gcc.gnu.org>1999-08-31 17:59:40 -0600
commita12e24fcb900d582ff328a00aa925a7a12bb1426 (patch)
tree1f0c7849d47371cf2d052f3321e70270ca74d688
parent61c48fbf260c7b77da7905c7de56b52c255d4da8 (diff)
downloadgcc-a12e24fcb900d582ff328a00aa925a7a12bb1426.zip
gcc-a12e24fcb900d582ff328a00aa925a7a12bb1426.tar.gz
gcc-a12e24fcb900d582ff328a00aa925a7a12bb1426.tar.bz2
c-torture.exp: Avoid the "compare executables" optimization when testing native.
* lib/c-torture.exp: Avoid the "compare executables" optimization when testing native. From-SVN: r29018
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/c-torture.exp16
2 files changed, 20 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e4163b4..86d45e8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 31 17:57:49 1999 Jeffrey A Law (law@cygnus.com)
+
+ * lib/c-torture.exp: Avoid the "compare executables" optimization
+ when testing native.
+
Sun Aug 29 14:35:41 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990829-1.c: New test.
diff --git a/gcc/testsuite/lib/c-torture.exp b/gcc/testsuite/lib/c-torture.exp
index 839c32c..0c8aeda 100644
--- a/gcc/testsuite/lib/c-torture.exp
+++ b/gcc/testsuite/lib/c-torture.exp
@@ -189,8 +189,22 @@ proc c-torture-execute { src args } {
set ignore_me [eval $torture_eval_before_execute]
}
+
+ # Sometimes we end up creating identical executables for two
+ # consecutive sets of different of compiler options.
+ #
+ # In such cases we know the result of this test will be identical
+ # to the result of the last test.
+ #
+ # So in cases where the time to load and run/simulate the test
+ # is relatively high, compare the two binaries and avoid rerunning
+ # tests if the executables are identical.
+ #
+ # Do not do this for native testing since the cost to load/execute
+ # the test is fairly small and the comparison step actually slows
+ # the entire process down because it usually does not "hit".
set skip 0;
- if [info exists oldexec] {
+ if { ![isnative] && [info exists oldexec] } {
if { [remote_file build cmp $oldexec $execname] == 0 } {
set skip 1;
}