]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_gc_sections_available): Add proper pattern quote.
authorLoren J. Rittle <ljrittle@acm.org>
Tue, 1 Sep 2009 18:45:02 +0000 (18:45 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Tue, 1 Sep 2009 18:45:02 +0000 (18:45 +0000)
2009-09-01  Loren James Rittle  <ljrittle@acm.org>

* lib/target-supports.exp (check_gc_sections_available):
Add proper pattern quote.

From-SVN: r151279

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

index 2176699ee204407cf7fe0fe156db16f6fcdbb2ec..f3759085e97127af86114013ee3121452e5c44bf 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 b3b0156ae8762560a92718b9a8073cbcdf19497b..c826b863a040dbae637a5ce45ec4871fd2186ee6 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 } {