aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-02-26 12:29:10 +0000
committerJoseph Myers <joseph@codesourcery.com>2008-02-26 12:29:10 +0000
commitb67ce46f15a163190b69484d638f9b3a242d99d9 (patch)
treeb0d056875e94e83960ecd166f8692c06a74e8076
parent3276085244458aabe070c7975b052af343d7f59c (diff)
downloadgdb-b67ce46f15a163190b69484d638f9b3a242d99d9.zip
gdb-b67ce46f15a163190b69484d638f9b3a242d99d9.tar.gz
gdb-b67ce46f15a163190b69484d638f9b3a242d99d9.tar.bz2
* config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define to
empty for testing an installed toolchain.
-rw-r--r--binutils/testsuite/ChangeLog5
-rw-r--r--binutils/testsuite/config/default.exp10
2 files changed, 13 insertions, 2 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index bc86f49..ac5be6d 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-26 Joseph Myers <joseph@codesourcery.com>
+
+ * config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define to
+ empty for testing an installed toolchain.
+
2008-02-04 Bob Wilson <bob.wilson@acm.org>
* binutils-all/objdump.exp (cpus_expected): Add xtensa.
diff --git a/binutils/testsuite/config/default.exp b/binutils/testsuite/config/default.exp
index 3c849b8..930979f 100644
--- a/binutils/testsuite/config/default.exp
+++ b/binutils/testsuite/config/default.exp
@@ -94,8 +94,14 @@ if {[file isfile ld/ld-new[exe_ext]]} then {
} else {
link_or_copy ld/ld-new ld[exe_ext]
}
-set gcc_gas_flag "-B[pwd]/tmpdir/gas/"
-set dlltool_gas_flag "-S [pwd]/tmpdir/gas/as[exe_ext]"
+if {[file isfile tmpdir/gas/as[exe_ext]]} then {
+ set gcc_gas_flag "-B[pwd]/tmpdir/gas/"
+ set dlltool_gas_flag "-S [pwd]/tmpdir/gas/as[exe_ext]"
+} else {
+ # Testing an installed toolchain.
+ set gcc_gas_flag ""
+ set dlltool_gas_flag ""
+}
#
# binutils_run