aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-25 02:21:44 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-25 02:21:44 +0000
commitef30d2dc82da44c2430010f847c4a4e0eb72bf7a (patch)
tree462b346fa75dd68fd831f57bd365d9245657efd3 /ld
parent8bbcb99122dfd616e131ca77021079ac2ec8db8e (diff)
downloadgdb-ef30d2dc82da44c2430010f847c4a4e0eb72bf7a.zip
gdb-ef30d2dc82da44c2430010f847c4a4e0eb72bf7a.tar.gz
gdb-ef30d2dc82da44c2430010f847c4a4e0eb72bf7a.tar.bz2
* config/default.exp: Do not load libpath.exp if it does notbinutils-csl-arm-2005q1-branchpoint
exist. (CC): Provide fallback definition. (CFLAGS): Likewise. (CXX): Likewise. (CXXFLAGS): Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog9
-rw-r--r--ld/testsuite/config/default.exp24
2 files changed, 30 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 04f2d45..5aa3a95 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2005-03-24 Mark Mitchell <mark@codesourcery.com>
+
+ * config/default.exp: Do not load libpath.exp if it does not
+ exist.
+ (CC): Provide fallback definition.
+ (CFLAGS): Likewise.
+ (CXX): Likewise.
+ (CXXFLAGS): Likewise.
+
2005-03-23 Alan Modra <amodra@bigpond.net.au>
* ld-elf/tbss.s: Don't start directives in first column.
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index b05ae0a..ad48cc7 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -70,10 +70,28 @@ if {![file isdirectory tmpdir/ld]} then {
set gcc_ld_flag "-B[pwd]/tmpdir/ld/"
# load the linker path
-load_lib tmpdir/libpath.exp
+if {[file exists tmpdir/libpath.exp]} {
+ load_lib tmpdir/libpath.exp
-foreach dir $libpath {
- set gcc_ld_flag "$gcc_ld_flag -L$dir"
+ foreach dir $libpath {
+ set gcc_ld_flag "$gcc_ld_flag -L$dir"
+ }
+}
+
+# "CC=$(CC_FOR_TARGET)", and other similar parameters. But, if the
+# user invokes runtest directly (as when testing an installed linker),
+# these flags may not be set.
+if {![info exists CC]} {
+ set CC [find_gcc]
+}
+if {![info exists CFLAGS]} {
+ set CFLAGS "-g -O2"
+}
+if {![info exists CXX]} {
+ set CXX [find_g++]
+}
+if {![info exists CXXFLAGS]} {
+ set CXXFLAGS ""
}
# The mips64-*-linux-gnu compiler defaults to the N32 ABI after