This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Add missing cleanup in pch-init


Hi,

committed as obvious.

Thanks,
- Tom
2015-02-26  Tom de Vries  <tom@codesourcery.com>

	* lib/dg-pch.exp (pch-init): Add missing cleanup of pchtest<n>.o.

diff --git a/gcc/testsuite/lib/dg-pch.exp b/gcc/testsuite/lib/dg-pch.exp
index e250301..9b4f40b 100644
--- a/gcc/testsuite/lib/dg-pch.exp
+++ b/gcc/testsuite/lib/dg-pch.exp
@@ -30,15 +30,17 @@ proc pch-init { args } {
     set pch_unsupported_debug \
 	[regexp "debug format cannot be used with pre-compiled headers" \
 		[lindex $result 0]]
+    remote_file build delete [lindex $result 1]
 
     set pch_unsupported 0
     if { $pch_unsupported_debug } {
 	verbose -log "pch is unsupported with the debug info format"
 
 	set result [check_compile pchtest object "int i;" "-x c-header"]
-	    set pch_unsupported \
-		[regexp "debug format cannot be used with pre-compiled headers" \
-			[lindex $result 0]]
+	set pch_unsupported \
+	    [regexp "debug format cannot be used with pre-compiled headers" \
+		 [lindex $result 0]]
+	remote_file build delete [lindex $result 1]
     }
 }
 
-- 
1.9.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]