Index: gcc/gcc/ChangeLog

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
This commit is contained in:
Geoffrey Keating 2001-05-04 02:58:46 +00:00 committed by Geoffrey Keating
parent 4def8930da
commit 4091fa5f1b
4 changed files with 16 additions and 2 deletions

View 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

View 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"

View 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.

View 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++]]]