* config/default.exp (CC): Use find_gcc.
authorMark Mitchell <mark@codesourcery.com>
Fri, 27 May 2005 17:27:03 +0000 (17:27 +0000)
committerMark Mitchell <mark@codesourcery.com>
Fri, 27 May 2005 17:27:03 +0000 (17:27 +0000)
(CFLAGS): Define, if no definition is provided.
(CXX): Likewise.
(CXXFLAGS): Likewise.

ld/testsuite/ChangeLog
ld/testsuite/config/default.exp

index 0590ddf..00e4d27 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-27  Mark Mitchell  <mark@codesourcery.com>
+
+       * config/default.exp (CC): Use find_gcc.
+       (CFLAGS): Define, if no definition has been provided by the user.
+       (CXX): Likewise.
+       (CXXFLAGS): Likewise.
+       
 2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-mmix/bpo-6.d: Updated.
        * 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-24  Eric Christopher  <echristo@redhat.com>
 
index d99a4bd..d268fd9 100644 (file)
@@ -80,9 +80,18 @@ if {[file exists tmpdir/libpath.exp]} {
 
 # The "make check" target in the Makefile passes in
 # "CC=$(CC_FOR_TARGET)".  But, if the user invokes runtest directly
-# (as when testing an installed linker), CC may not be set.  
+# (as when testing an installed linker), these flags may not be set.  
 if {![info exists CC]} {
-    set CC [transform gcc]
+    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