diff mbox

testsuite/lib/gcc-defs.exp (dg-additional-files-options)

Message ID 5277F9BA.1050209@codesourcery.com
State New
Headers show

Commit Message

James Lemke Nov. 4, 2013, 7:47 p.m. UTC
Change dg-additional-files to match the behaviour of dg-additional-sources.

This fix has been in the CS trunk for 2 months without problem.
It's fairly obvious so I'll commit in the next day or two unless there are 
objections.
diff mbox

Patch

2013-11-04  James Lemke  <jwlemke@codesourcery.com>

	* lib/gcc-defs.exp (dg-additional-files-options): Extend regsub for
	dg-additional-files to also match BOL.

Index: lib/gcc-defs.exp
===================================================================
--- lib/gcc-defs.exp	(revision 204355)
+++ lib/gcc-defs.exp	(working copy)
@@ -245,7 +245,7 @@ 
 	set additional_sources ""
     }
     if { $additional_files != "" } then { 
-	regsub -all " " $additional_files " [file dirname $source]/" additional_files
+	regsub -all "^| " $additional_files " [file dirname $source]/" additional_files
 	set to_download [concat $to_download $additional_files]
 	set additional_files ""
     }