aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-23 21:46:07 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-03-23 21:46:07 +0000
commit0b6945553acdcd114a0a816389b0512075706f62 (patch)
tree14e91857b6d234ab67eba3cbe0384182378d60f4
parent2852cd64d82f0ec40c0a5a0d2a6b48841aa3d825 (diff)
downloadgcc-0b6945553acdcd114a0a816389b0512075706f62.zip
gcc-0b6945553acdcd114a0a816389b0512075706f62.tar.gz
gcc-0b6945553acdcd114a0a816389b0512075706f62.tar.bz2
libstdc++.exp (libstdc++_wchar_t): Rename to ...
* testsuite/lib/libstdc++.exp (libstdc++_wchar_t): Rename to ... (v3-wchar_t): ... this. (libstdc++_threads): Rename to ... (v3-threads): ... this. (libstdc++_test_objs): Rename to ... (v3-test_objs): ... this. (libstdc++_build_support): Rename to ... (v3-build_support): ... this. * testsuite/libstdc++-dg/normal.exp: Adjust to use new names. From-SVN: r96957
-rw-r--r--libstdc++-v3/ChangeLog10
-rw-r--r--libstdc++-v3/testsuite/lib/libstdc++.exp32
-rw-r--r--libstdc++-v3/testsuite/libstdc++-dg/normal.exp6
3 files changed, 29 insertions, 19 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index c62add6..33b9873 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,15 @@
2005-03-23 Mark Mitchell <mark@codesourcery.com>
+ * testsuite/lib/libstdc++.exp (libstdc++_wchar_t): Rename to ...
+ (v3-wchar_t): ... this.
+ (libstdc++_threads): Rename to ...
+ (v3-threads): ... this.
+ (libstdc++_test_objs): Rename to ...
+ (v3-test_objs): ... this.
+ (libstdc++_build_support): Rename to ...
+ (v3-build_support): ... this.
+ * testsuite/libstdc++-dg/normal.exp: Adjust to use new names.
+
* testsuite/lib/libstdc++.exp (libstdc++_init): Improve handling
of compilers not in the build directory.
(libstdc++_wchar_t): New variable.
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp
index 5d7b642..0b870a5 100644
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -248,13 +248,13 @@ proc libstdc++-dg-test { prog do_what extra_tool_flags } {
}
# True if the library supports wchar_t.
-set libstdc++_wchar_t 0
+set v3-wchar_t 0
# True if the library supports threads.
-set libstdc++_threads 0
+set v3-threads 0
# A string naming object files to be linked into all tests.
-set libstdc++_test_objs ""
+set v3-test_objs ""
# Called from libstdc++-dg-test above. Calls back into system's
# target_compile to actually do the work.
@@ -265,7 +265,7 @@ proc v3_target_compile { source dest type options } {
global cxxflags
global includes
global blddir
- global libstdc++_test_objs
+ global v3-test_objs
if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } {
lappend options "libs=${gluefile}"
@@ -279,7 +279,7 @@ proc v3_target_compile { source dest type options } {
set cxx_final [concat $cxx_final $includes]
# Link the support objects into executables.
if { $type == "executable" } {
- set cxx_final [concat $cxx_final ${libstdc++_test_objs}]
+ set cxx_final [concat $cxx_final ${v3-test_objs}]
}
lappend options "compiler=$cxx_final"
@@ -288,18 +288,18 @@ proc v3_target_compile { source dest type options } {
}
# Build the support objects linked in with the libstdc++ tests. In
-# addition, set libstdc++_wchar_t, libstdc++_threads, and libstdc++_test_objs
+# addition, set v3-wchar_t, v3-threads, and v3-test_objs
# appropriately.
-proc libstdc++_build_support {} {
+proc v3-build_support {} {
global srcdir
- global libstdc++_wchar_t
- global libstdc++_threads
- global libstdc++_test_objs
+ global v3-wchar_t
+ global v3-threads
+ global v3-test_objs
# Figure out whether or not the library supports certain features.
- set libstdc++_wchar_t 0
- set libstdc++_threads 0
- set libstdc++_test_objs ""
+ set v3-wchar_t 0
+ set v3-threads 0
+ set v3-test_objs ""
set config_src "config.cc"
set f [open $config_src "w"]
@@ -310,10 +310,10 @@ proc libstdc++_build_support {} {
foreach l $preprocessed {
if { [string first "_GLIBCXX_USE_WCHAR_T" $l] != -1 } {
verbose -log "wchar_t support detected"
- set libstdc++_wchar_t 1
+ set v3-wchar_t 1
} elseif { [string first "_GLIBCXX_HAVE_GTHR_DEFAULT" $l] != -1 } {
verbose -log "thread support detected"
- set libstdc++_threads 1
+ set v3-threads 1
}
}
@@ -327,6 +327,6 @@ proc libstdc++_build_support {} {
!= "" } {
error "could not compile $f"
}
- append libstdc++_test_objs "$object_file "
+ append v3-test_objs "$object_file "
}
}
diff --git a/libstdc++-v3/testsuite/libstdc++-dg/normal.exp b/libstdc++-v3/testsuite/libstdc++-dg/normal.exp
index 67f4920..29b16f2 100644
--- a/libstdc++-v3/testsuite/libstdc++-dg/normal.exp
+++ b/libstdc++-v3/testsuite/libstdc++-dg/normal.exp
@@ -22,7 +22,7 @@
dg-init
# Build the support objects.
-libstdc++_build_support
+v3-build_support
# Find directories that might have tests.
set subdirs [glob "$srcdir/\[0-9\]\[0-9\]*"]
@@ -51,8 +51,8 @@ foreach s $subdirs {
# 4. thread tests, if not supported.
if { [string first _xin $t] == -1
&& [string first performance $t] == -1
- && (${libstdc++_wchar_t} || [string first wchar_t $t] == -1)
- && (${libstdc++_threads} || [string first thread $t] == -1) } {
+ && (${v3-wchar_t} || [string first wchar_t $t] == -1)
+ && (${v3-threads} || [string first thread $t] == -1) } {
lappend tests $t
}
}