From a82569790588843b3ec330bd79c7057f7d8df4be Mon Sep 17 00:00:00 2001
From: geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 24 Jan 2000 20:56:33 +0000
Subject: [PATCH] * gcc.dg/special/ecos.exp (gcsec-1.c): Check the version of
 the ld on the host, not on the build machine. Also, don't crash if '--help'
 is not a supported option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31592 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/testsuite/ChangeLog               | 6 ++++++
 gcc/testsuite/gcc.dg/special/ecos.exp | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 20813131cc5b..4d1c305fdb84 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2000-01-24  Geoff Keating  <geoffk@cygnus.com>
+
+	* gcc.dg/special/ecos.exp (gcsec-1.c): Check the version
+	of the ld on the host, not on the build machine.
+	Also, don't crash if '--help' is not a supported option.
+
 2000-01-24  Richard Henderson  <rth@cygnus.com>
 
 	* gcc.c-torture/execute/ieee/fp-cmp-4.c: New.
diff --git a/gcc/testsuite/gcc.dg/special/ecos.exp b/gcc/testsuite/gcc.dg/special/ecos.exp
index f944de92c3f2..a02b2090fedc 100644
--- a/gcc/testsuite/gcc.dg/special/ecos.exp
+++ b/gcc/testsuite/gcc.dg/special/ecos.exp
@@ -1,4 +1,4 @@
-#   Copyright (C) 1999 Free Software Foundation, Inc.
+#   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -134,7 +134,7 @@ if { [ check_weak_available ] == 1 } {
 # gcsec-1.c
 ###########
 
-set ld_output [ exec [ find_ld ] --help ]
+set ld_output [ remote_exec host "[ find_ld ]" "--help" ]
 
 if { [ string first "--gc-sections" $ld_output ] >= 0 } {
 
-- 
GitLab