aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/c-torture.exp
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-09-02 00:21:09 +0000
committerRichard Henderson <rth@cygnus.com>1999-09-02 00:21:09 +0000
commit4e02fa2a76fc446fa5bb75838b0f758c2ad03faa (patch)
tree6c2f984ba25519a22524201e916e0034a0043d3a /gcc/testsuite/lib/c-torture.exp
parentb17a3f4d427135d643b2da1ca8c8dbe781543c17 (diff)
Final merge from mainlinenew_ia32_branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/new_ia32_branch@29040 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/c-torture.exp')
-rw-r--r--gcc/testsuite/lib/c-torture.exp16
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/c-torture.exp b/gcc/testsuite/lib/c-torture.exp
index 839c32caa80..0c8aeda6106 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;
}