Index: gcc/gcc/ChangeLog
authorGeoffrey Keating <geoffk@redhat.com>
Fri, 4 May 2001 02:58:46 +0000 (02:58 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 4 May 2001 02:58:46 +0000 (02:58 +0000)
2001-05-03  Geoffrey Keating  <geoffk@redhat.com>

* Makefile.in (site.exp): Set TESTING_IN_BUILD_TREE.

Index: gcc/gcc/testsuite/ChangeLog
2001-05-03  Geoffrey Keating  <geoffk@redhat.com>

* lib/g++.exp (g++_include_flags): Don't use any special flags
if TESTING_IN_BUILD_TREE is not defined.
(g++_init): Use a plain 'c++' as the compiler if
TESTING_IN_BUILD_TREEE is not defined.

From-SVN: r41820

gcc/ChangeLog
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/lib/g++.exp

index 9c9e4ca724c33f02a2bac9912c0d76c81ed9b24d..7703fbf4bf971caaab423a52389077873c309d49 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-03  Geoffrey Keating  <geoffk@redhat.com>
+
+       * Makefile.in (site.exp): Set TESTING_IN_BUILD_TREE.
+
 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
 
        * config/m68hc11/m68hc11.md ("bitcmpqi"): New pattern for bitb
index 7b9508ea2170f1750b4a9ee1f3418c7bbbe67d12..eed46d42af5fc9930ccc9e79822540d2ba3e2908 100644 (file)
@@ -2800,6 +2800,7 @@ site.exp: ./config.status Makefile
 # CFLAGS is set even though it's empty to show we reserve the right to set it.
        @echo "set CFLAGS \"\"" >> ./tmp0
        @echo "set CXXFLAGS \"-I$(objdir)/../$(target_subdir)libio -I\$$srcdir/../libg++/src -I\$$srcdir/../libio -I\$$srcdir/../libstdc++ -I\$$srcdir/../libstdc++/stl -L$(objdir)/../$(target_subdir)libg++ -L$(objdir)/../$(target_subdir)libstdc++\"" >> ./tmp0
+       @echo "set TESTING_IN_BUILD_TREE 1" >> ./tmp0
        @echo "set HAVE_LIBSTDCXX_V3 1" >> ./tmp0
 # If newlib has been configured, we need to pass -B to gcc so it can find
 # newlib's crt0.o if it exists.  This will cause a "path prefix not used"
index efe80370147557ed4585413af9a08fec7ced45df..a26fd2bb864e4717adfb8c27feabcdf7421f8511 100644 (file)
@@ -1,3 +1,10 @@
+2001-05-03  Geoffrey Keating  <geoffk@redhat.com>
+
+       * lib/g++.exp (g++_include_flags): Don't use any special flags
+       if TESTING_IN_BUILD_TREE is not defined.
+       (g++_init): Use a plain 'c++' as the compiler if 
+       TESTING_IN_BUILD_TREEE is not defined.
+
 2001-05-02  Jakub Jelinek  <jakub@redhat.com>
 
        * g++.old-deja/g++.eh/catch13.C: New test.
index 650b49c40a72deea1d468cc27b049c007ae5aec9..02e2f6c89ac2ef7bcf2c8319ada7415121f31fc5 100644 (file)
@@ -66,10 +66,11 @@ proc g++_version { } {
 proc g++_include_flags { args } {
     global srcdir
     global HAVE_LIBSTDCXX_V3
+    global TESTING_IN_BUILD_TREE
 
     set flags ""
 
-    if [is_remote host] {
+    if { [is_remote host] || ! [info exists TESTING_IN_BUILD_TREE] } {
       return "${flags}"
     }
 
@@ -166,12 +167,13 @@ proc g++_init { args } {
     global ALWAYS_CXXFLAGS
     global TOOL_EXECUTABLE TOOL_OPTIONS
     global GXX_UNDER_TEST
+    global TESTING_IN_BUILD_TREE
 
     if ![info exists GXX_UNDER_TEST] then {
        if [info exists TOOL_EXECUTABLE] {
            set GXX_UNDER_TEST $TOOL_EXECUTABLE;
        } else {
-           if [is_remote host] {
+           if { [is_remote host] || ! [info exists TESTING_IN_BUILD_TREE] } {
                set GXX_UNDER_TEST [transform c++]
            } else {
                set GXX_UNDER_TEST [findfile $base_dir/../g++ "$base_dir/../g++ -B$base_dir/../" [findfile $base_dir/g++ "$base_dir/g++ -B$base_dir/" [transform c++]]]