aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljrittle <>2009-09-01 17:45:02 +0000
committerljrittle <>2009-09-01 17:45:02 +0000
commit4f3052e3cad1efcd9a3f6d07d45549ea487e2a2f (patch)
tree887461ad6e8fc2cd2cd0efd0e03dd3919bce69fb
parent76a28a1a53f00b6dc3e9f93382234c5b087e74ac (diff)
2009-09-01 Loren James Rittle <ljrittle@acm.org>var-tracking-assignments-merge-151281-trunk-before-vta-merge
* lib/target-supports.exp (check_gc_sections_available): Add proper pattern quote.
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2176699ee20..f3759085e97 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-01 Loren J. Rittle <ljrittle@acm.org>
+
+ * lib/target-supports.exp (check_gc_sections_available):
+ Add proper pattern quote.
+
2009-08-31 Uros Bizjak <ubizjak@gmail.com>
Kaz Kojima <kkojima@gcc.gnu.org>
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index b3b0156ae87..c826b863a04 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -385,7 +385,7 @@ proc check_gc_sections_available { } {
# Check if the ld used by gcc supports --gc-sections.
set gcc_spec [${tool}_target_compile "-dumpspecs" "" "none" ""]
- regsub ".*\n\*linker:\[ \t\]*\n(\[^ \t\n\]*).*" "$gcc_spec" {\1} linker
+ regsub ".*\n\\*linker:\[ \t\]*\n(\[^ \t\n\]*).*" "$gcc_spec" {\1} linker
set gcc_ld [lindex [${tool}_target_compile "-print-prog-name=$linker" "" "none" ""] 0]
set ld_output [remote_exec host "$gcc_ld" "--help"]
if { [ string first "--gc-sections" $ld_output ] >= 0 } {