diff options
author | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-01 18:45:02 +0000 |
---|---|---|
committer | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-01 18:45:02 +0000 |
commit | 4ff4195b4c462a90edb3d7b42a48295563fbdb61 (patch) | |
tree | 887461ad6e8fc2cd2cd0efd0e03dd3919bce69fb /gcc | |
parent | a52d03ef3b70078fd0100725b44b6713ab766b5b (diff) | |
download | gcc-4ff4195b4c462a90edb3d7b42a48295563fbdb61.tar.gz |
2009-09-01 Loren James Rittle <ljrittle@acm.org>
* lib/target-supports.exp (check_gc_sections_available):
Add proper pattern quote.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
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 } { |