+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
# 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"
+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.
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}"
}
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++]]]