diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9668d7393e4..30c1d35971f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-11-06 James Lemke + + * lib/gcc-defs.exp (dg-additional-files-options): Extend regsub for + dg-additional-files to also match BOL. + 2013-11-06 Joseph Myers * gcc.dg/torture/c99-contract-1.c: New test. diff --git a/gcc/testsuite/lib/gcc-defs.exp b/gcc/testsuite/lib/gcc-defs.exp index b2db164bc4b..0fe9cb28df2 100644 --- a/gcc/testsuite/lib/gcc-defs.exp +++ b/gcc/testsuite/lib/gcc-defs.exp @@ -245,7 +245,7 @@ proc dg-additional-files-options { options source } { 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 "" }