This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Commit: Avoid linker testsuite warnings about missing compilers
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 11 Aug 2016 10:27:02 +0100
- Subject: Commit: Avoid linker testsuite warnings about missing compilers
- Authentication-results: sourceware.org; auth=none
Hi Guys
A lot of errors like this:
LD ERROR: x86_64-solaris2-gcc does not exist
have just started showing up in the linker testsuite when a target is
tested on a host that does not have the appropriate compiler
installed. I am checking in the patch below as a simple fix for this
problem.
Cheers
Nick
2016-08-11 Nick Clifton <nickc@redhat.com>
PR ld/20436
* testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): When not
testing remotely, check to see if target compiler is installed
before trying to run it.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index b3cdb70..23055be 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1815,7 +1815,10 @@ proc check_gcc_plugin_enabled { } {
if { $CC == "" } {
return 0
}
+ if { ![is_remote host] && [which $CC] == 0 } then {
+ return 0
+ }
set state [remote_exec host $CC -v]