From b6e168f33a07cd23b7e760bab8e22aa0b907e8aa Mon Sep 17 00:00:00 2001 From: James Lemke Date: Wed, 6 Nov 2013 18:10:34 +0000 Subject: [PATCH] gcc-defs.exp (dg-additional-files-options): Extend regsub for dg-additional-files to also match BOL. 2013-11-06 James Lemke * lib/gcc-defs.exp (dg-additional-files-options): Extend regsub for dg-additional-files to also match BOL. From-SVN: r204462 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/gcc-defs.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 "" }