+2016-08-11 Alan Modra <amodra@gmail.com>
+
+ PR ld/20436
+ * testsuite/lib/ld-lib.exp (at_least_gcc_version): Don't ignore
+ remote_exec status.
+ (check_gcc_plugin_enabled): Likewise. Revert previous patch.
+
2016-08-11 Nick Clifton <nickc@redhat.com>
PR ld/20436
set CC [find_gcc]
}
if { $CC == "" } {
- return 0
+ return 0
}
set state [remote_exec host $CC --version]
+ if { [lindex $state 0] != 0 } {
+ return 0;
+ }
set tmp "[lindex $state 1]\n"
# Look for (eg) 4.6.1 in the version output.
set ver_re "\[^\\.0-9\]+(\[1-9\]\[0-9\]*)\\.(\[0-9\]+)(?:\\.\[0-9\]+)?"
set CC [find_gcc]
}
if { $CC == ""} {
- return 0
- }
- if { ![is_remote host] && [which $CC] == 0 } then {
- return 0
+ return 0
}
set state [remote_exec host $CC -v]
- for { set i 0 } { $i < [llength $state] } { incr i } {
+ if { [lindex $state 0] != 0 } {
+ return 0;
+ }
+ for { set i 1 } { $i < [llength $state] } { incr i } {
set v [lindex $state $i]
if { [ string match "*--disable-plugin*" $v ] } {
verbose "plugin is disabled by $v"