This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
To-be-committed: logic error in last compat.exp:compat-executechange.
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Oct 2002 19:34:06 -0500 (EST)
- Subject: To-be-committed: logic error in last compat.exp:compat-executechange.
Doh. The second I committed the previous change, I realized the
error in the condition logic. I'll commit this as obvious (after
testing, no less; the error just results in no cleanup for
non-gluefile targets).
* lib/compat.exp (compat-execute): Fix logic error in last
change.
Index: compat.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/compat.exp,v
retrieving revision 1.3
diff -p -c -r1.3 compat.exp
*** compat.exp 30 Oct 2002 00:27:34 -0000 1.3
--- compat.exp 30 Oct 2002 00:28:53 -0000
*************** proc compat-execute { src1 use_alt } {
*** 231,237 ****
set files [glob -nocomplain *.o]
if { $files != "" } {
foreach objfile $files {
! if { [info exists gluefile] && $objfile != $gluefile } {
eval "remote_file build delete $objfile"
}
}
--- 231,237 ----
set files [glob -nocomplain *.o]
if { $files != "" } {
foreach objfile $files {
! if { ![info exists gluefile] || $objfile != $gluefile } {
eval "remote_file build delete $objfile"
}
}
brgds, H-P