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.

--
Jim Lemke
Mentor Graphics / CodeSourcery
Orillia Ontario
2013-11-04  James Lemke  <jwle...@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 ""
     }

Reply via email to