diff mbox

[committed] Add missing cleanup in pch-init

Message ID 54EF2A98.6010604@mentor.com
State New
Headers show

Commit Message

Tom de Vries Feb. 26, 2015, 2:15 p.m. UTC
Hi,

committed as obvious.

Thanks,
- Tom

Comments

Bernhard Reutner-Fischer Feb. 26, 2015, 8:11 p.m. UTC | #1
On February 26, 2015 3:15:52 PM GMT+01:00, Tom de Vries <Tom_deVries@mentor.com> wrote:
>Hi,
>
>committed as obvious.

Seems like i never pushed http://marc.info/?l=gcc-patches&m=138400411017920&w=1

Thanks!
diff mbox

Patch

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