2009-09-01 Loren James Rittle <ljrittle@acm.org>
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Sep 2009 18:45:02 +0000 (18:45 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Sep 2009 18:45:02 +0000 (18:45 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 2176699..f375908 100644 (file)
@@ -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>
 
index b3b0156..c826b86 100644 (file)
@@ -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 } {