Patchwork [testsuite] : Remove .exe.???t.* and .exe.ltrans0.???t.* files from testsuite dir

login
register
mail settings
Submitter Uros Bizjak
Date July 31, 2011, 5:30 p.m.
Message ID <CAFULd4ZR8u_rwkHP3sk+Xpc-KBEK5YGY1GFPrx9kn1TosCwvzw@mail.gmail.com>
Download mbox | patch
Permalink /patch/107602/
State New
Headers show

Comments

Uros Bizjak - July 31, 2011, 5:30 p.m.
On Sun, Jul 31, 2011 at 11:39 AM, Richard Guenther
<richard.guenther@gmail.com> wrote:

>> 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
>>
>>        * lib/gcc-dg.exp (cleanup-dump): Also remove .exe. and .exe.ltrans0.
>>        dump files.
>>
>> Tested on x64-pc-linux-gnu. OK for mainline?
>
> I think you need to remove all .exe.ltrans[0-9]*. files instead.

Thanks, attached is what I have committed.

2011-07-31  Uros Bizjak  <ubizjak@gmail.com>

	* lib/gcc-dg.exp (cleanup-dump): Also remove .exe. and
	.exe.ltrans[0-9]*. dump files.

Uros.

Patch

Index: lib/gcc-dg.exp
===================================================================
--- lib/gcc-dg.exp	(revision 176960)
+++ lib/gcc-dg.exp	(working copy)
@@ -487,6 +487,8 @@ 
     # The name might include a list of options; extract the file name.
     set src [file tail [lindex $testcase 0]]
     remove-build-file "[file tail $src].$suffix"
+    remove-build-file "[file rootname [file tail $src]].exe.$suffix"
+    remove-build-file "[file rootname [file tail $src]].exe.ltrans\[0-9\]*.$suffix"
     # -fcompare-debug dumps
     remove-build-file "[file tail $src].gk.$suffix"
 
@@ -494,6 +496,8 @@ 
     if [info exists additional_sources] {
 	foreach srcfile $additional_sources {
 	    remove-build-file "[file tail $srcfile].$suffix"
+	    remove-build-file "[file rootname [file tail $srcfile]].exe.$suffix"
+	    remove-build-file "[file rootname [file tail $srcfile]].exe.ltrans\[0-9\]*.$suffix"
 	    # -fcompare-debug dumps
 	    remove-build-file "[file tail $srcfile].gk.$suffix"
 	}