Commit 45456220 by Loren J. Rittle Committed by Loren J. Rittle

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

2009-09-01  Loren James Rittle  <ljrittle@acm.org>

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

From-SVN: r151279
parent f05816a5
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> 2009-08-31 Uros Bizjak <ubizjak@gmail.com>
Kaz Kojima <kkojima@gcc.gnu.org> Kaz Kojima <kkojima@gcc.gnu.org>
......
...@@ -385,7 +385,7 @@ proc check_gc_sections_available { } { ...@@ -385,7 +385,7 @@ proc check_gc_sections_available { } {
# Check if the ld used by gcc supports --gc-sections. # Check if the ld used by gcc supports --gc-sections.
set gcc_spec [${tool}_target_compile "-dumpspecs" "" "none" ""] 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 gcc_ld [lindex [${tool}_target_compile "-print-prog-name=$linker" "" "none" ""] 0]
set ld_output [remote_exec host "$gcc_ld" "--help"] set ld_output [remote_exec host "$gcc_ld" "--help"]
if { [ string first "--gc-sections" $ld_output ] >= 0 } { if { [ string first "--gc-sections" $ld_output ] >= 0 } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment