aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-06-09 16:45:48 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-06-24 15:07:29 +0100
commit9704b8b4bc58f4f464961cca97d362fd33740ce8 (patch)
treec5ecc9e90a9e915a69bf5b209d13979fc6e349db /gdb/testsuite/gdb.cp
parentef7a6b977bf5e8499734a3b8df48ce2ca690cf57 (diff)
downloadfsf-binutils-gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.zip
fsf-binutils-gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.gz
fsf-binutils-gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.bz2
gdb/testsuite: remove unneeded calls to get_compiler_info
It is not necessary to call get_compiler_info before calling test_compiler_info, and, after recent commits that removed setting up the gcc_compiled, true, and false globals from get_compiler_info, there is now no longer any need for any test script to call get_compiler_info directly. As a result every call to get_compiler_info outside of lib/gdb.exp is redundant, and this commit removes them all. There should be no change in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r--gdb/testsuite/gdb.cp/ambiguous.exp5
-rw-r--r--gdb/testsuite/gdb.cp/breakpoint.exp4
-rw-r--r--gdb/testsuite/gdb.cp/bs15503.exp4
-rw-r--r--gdb/testsuite/gdb.cp/casts.exp4
-rw-r--r--gdb/testsuite/gdb.cp/class2.exp6
-rw-r--r--gdb/testsuite/gdb.cp/cpexprs.exp.tcl4
-rw-r--r--gdb/testsuite/gdb.cp/cplusfuncs.exp4
-rw-r--r--gdb/testsuite/gdb.cp/ctti.exp4
-rw-r--r--gdb/testsuite/gdb.cp/disasm-func-name.exp4
-rw-r--r--gdb/testsuite/gdb.cp/dispcxx.exp5
-rw-r--r--gdb/testsuite/gdb.cp/gdb1355.exp4
-rw-r--r--gdb/testsuite/gdb.cp/gdb2384.exp6
-rw-r--r--gdb/testsuite/gdb.cp/gdb2495.exp6
-rw-r--r--gdb/testsuite/gdb.cp/infcall-dlopen.exp4
-rw-r--r--gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp2
-rw-r--r--gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp2
-rw-r--r--gdb/testsuite/gdb.cp/local.exp4
-rw-r--r--gdb/testsuite/gdb.cp/m-data.exp4
-rw-r--r--gdb/testsuite/gdb.cp/m-static.exp4
-rw-r--r--gdb/testsuite/gdb.cp/mb-ctor.exp4
-rw-r--r--gdb/testsuite/gdb.cp/mb-inline.exp4
-rw-r--r--gdb/testsuite/gdb.cp/mb-templates.exp4
-rw-r--r--gdb/testsuite/gdb.cp/member-ptr.exp4
-rw-r--r--gdb/testsuite/gdb.cp/method.exp4
-rw-r--r--gdb/testsuite/gdb.cp/namespace.exp4
-rw-r--r--gdb/testsuite/gdb.cp/nextoverthrow.exp7
-rw-r--r--gdb/testsuite/gdb.cp/nsdecl.exp4
-rw-r--r--gdb/testsuite/gdb.cp/nsrecurs.exp4
-rw-r--r--gdb/testsuite/gdb.cp/nsstress.exp4
-rw-r--r--gdb/testsuite/gdb.cp/nsusing.exp4
-rw-r--r--gdb/testsuite/gdb.cp/pr-1023.exp4
-rw-r--r--gdb/testsuite/gdb.cp/pr-1210.exp4
-rw-r--r--gdb/testsuite/gdb.cp/pr-574.exp4
-rw-r--r--gdb/testsuite/gdb.cp/pr9631.exp4
-rw-r--r--gdb/testsuite/gdb.cp/printmethod.exp4
-rw-r--r--gdb/testsuite/gdb.cp/psmang.exp4
-rw-r--r--gdb/testsuite/gdb.cp/re-set-overloaded.exp6
-rw-r--r--gdb/testsuite/gdb.cp/rtti.exp4
-rw-r--r--gdb/testsuite/gdb.cp/rvalue-ref-casts.exp4
-rw-r--r--gdb/testsuite/gdb.cp/shadow.exp4
-rw-r--r--gdb/testsuite/gdb.cp/static-typedef-print.exp4
-rw-r--r--gdb/testsuite/gdb.cp/step-and-next-inline.exp5
-rw-r--r--gdb/testsuite/gdb.cp/temargs.exp2
-rw-r--r--gdb/testsuite/gdb.cp/templates.exp6
-rw-r--r--gdb/testsuite/gdb.cp/try_catch.exp4
-rw-r--r--gdb/testsuite/gdb.cp/typed-enum.exp4
-rw-r--r--gdb/testsuite/gdb.cp/typedef-base.exp4
47 files changed, 2 insertions, 196 deletions
diff --git a/gdb/testsuite/gdb.cp/ambiguous.exp b/gdb/testsuite/gdb.cp/ambiguous.exp
index 6387115..c6bc9a6 100644
--- a/gdb/testsuite/gdb.cp/ambiguous.exp
+++ b/gdb/testsuite/gdb.cp/ambiguous.exp
@@ -23,11 +23,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- unsupported "couldn't find a valid c++ compiler"
- return -1
-}
-
set additional_flags ""
if {[test_compiler_info {gcc-[0-9]-*}]} {
# GCCs prior to 10.1 do not support -Wno-inaccessible-base.
diff --git a/gdb/testsuite/gdb.cp/breakpoint.exp b/gdb/testsuite/gdb.cp/breakpoint.exp
index 49bb162..1a0f946 100644
--- a/gdb/testsuite/gdb.cp/breakpoint.exp
+++ b/gdb/testsuite/gdb.cp/breakpoint.exp
@@ -25,10 +25,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/bs15503.exp b/gdb/testsuite/gdb.cp/bs15503.exp
index 5eb3dc8..bf5e660 100644
--- a/gdb/testsuite/gdb.cp/bs15503.exp
+++ b/gdb/testsuite/gdb.cp/bs15503.exp
@@ -21,10 +21,6 @@ if { [skip_stl_tests] } { return }
standard_testfile .cc
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/casts.exp b/gdb/testsuite/gdb.cp/casts.exp
index 77ff603..0f6460b 100644
--- a/gdb/testsuite/gdb.cp/casts.exp
+++ b/gdb/testsuite/gdb.cp/casts.exp
@@ -29,10 +29,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc casts03.cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp
index 04f665b..32f9dfc 100644
--- a/gdb/testsuite/gdb.cp/class2.exp
+++ b/gdb/testsuite/gdb.cp/class2.exp
@@ -18,12 +18,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl
index b4ed3cd..55c3489 100644
--- a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl
+++ b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl
@@ -686,10 +686,6 @@ if {[skip_cplus_tests]} { continue }
standard_testfile cpexprs.cc
-if {[get_compiler_info "c++"]} {
- return -1
-}
-
# Include required flags.
set flags "$flags debug c++"
diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp
index a4da0de..4824c19 100644
--- a/gdb/testsuite/gdb.cp/cplusfuncs.exp
+++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp
@@ -20,10 +20,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile .cc
-if { [get_compiler_info "c++"] } {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp
index 1011a14..36b7d34 100644
--- a/gdb/testsuite/gdb.cp/ctti.exp
+++ b/gdb/testsuite/gdb.cp/ctti.exp
@@ -25,10 +25,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} {
return -1
diff --git a/gdb/testsuite/gdb.cp/disasm-func-name.exp b/gdb/testsuite/gdb.cp/disasm-func-name.exp
index d1a93f7..7d325fe 100644
--- a/gdb/testsuite/gdb.cp/disasm-func-name.exp
+++ b/gdb/testsuite/gdb.cp/disasm-func-name.exp
@@ -22,10 +22,6 @@ if {[skip_cplus_tests]} { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile \
$srcfile {debug c++}]} {
return -1
diff --git a/gdb/testsuite/gdb.cp/dispcxx.exp b/gdb/testsuite/gdb.cp/dispcxx.exp
index df931ae..f82e588 100644
--- a/gdb/testsuite/gdb.cp/dispcxx.exp
+++ b/gdb/testsuite/gdb.cp/dispcxx.exp
@@ -17,11 +17,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- untested "couldn't find a valid c++ compiler"
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/gdb1355.exp b/gdb/testsuite/gdb.cp/gdb1355.exp
index e558f73..ecbf88f 100644
--- a/gdb/testsuite/gdb.cp/gdb1355.exp
+++ b/gdb/testsuite/gdb.cp/gdb1355.exp
@@ -29,10 +29,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb2384.exp
index 34065b0..4181ab4 100644
--- a/gdb/testsuite/gdb.cp/gdb2384.exp
+++ b/gdb/testsuite/gdb.cp/gdb2384.exp
@@ -28,12 +28,6 @@ standard_testfile .cc gdb2384-base.cc
set sofile [standard_output_file gdb2384-base.so]
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info "c++"] {
- return -1
-}
-
if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} {
untested "failed to compile"
diff --git a/gdb/testsuite/gdb.cp/gdb2495.exp b/gdb/testsuite/gdb.cp/gdb2495.exp
index c0c9dfd..1babf5e 100644
--- a/gdb/testsuite/gdb.cp/gdb2495.exp
+++ b/gdb/testsuite/gdb.cp/gdb2495.exp
@@ -40,12 +40,6 @@ if [target_info exists gdb,nosignals] {
standard_testfile .cc
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info "c++"] {
- return -1
-}
-
# Some targets can't do function calls, so don't even bother with this
# test.
if [target_info exists gdb,cannot_call_functions] {
diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.exp b/gdb/testsuite/gdb.cp/infcall-dlopen.exp
index 1eebad8..0ca53ef 100644
--- a/gdb/testsuite/gdb.cp/infcall-dlopen.exp
+++ b/gdb/testsuite/gdb.cp/infcall-dlopen.exp
@@ -17,10 +17,6 @@ if {[skip_shlib_tests]} {
return 0
}
-if [get_compiler_info] {
- return -1
-}
-
standard_testfile .cc infcall-dlopen-lib.cc
set libfile [standard_output_file ${testfile}.so]
set lib_dlopen [shlib_target_file ${testfile}.so]
diff --git a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp b/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp
index 806acbe..2b5fc1e 100644
--- a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp
+++ b/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able. Always use C.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
return -1
}
set lang {c++}
diff --git a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp b/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp
index 5bd3dec..0914058 100644
--- a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp
+++ b/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able. Always use C.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
return -1
}
set lang {c++}
diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp
index cc78770..140147f 100644
--- a/gdb/testsuite/gdb.cp/local.exp
+++ b/gdb/testsuite/gdb.cp/local.exp
@@ -31,10 +31,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/m-data.exp b/gdb/testsuite/gdb.cp/m-data.exp
index 7dae01c..f86e5fd 100644
--- a/gdb/testsuite/gdb.cp/m-data.exp
+++ b/gdb/testsuite/gdb.cp/m-data.exp
@@ -26,10 +26,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp
index 6b347e2..979de23 100644
--- a/gdb/testsuite/gdb.cp/m-static.exp
+++ b/gdb/testsuite/gdb.cp/m-static.exp
@@ -27,10 +27,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc m-static1.cc
-if [get_compiler_info] {
- return -1
-}
-
set flags [list debug c++]
if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
# Work around PR gcc/101452.
diff --git a/gdb/testsuite/gdb.cp/mb-ctor.exp b/gdb/testsuite/gdb.cp/mb-ctor.exp
index cf22be9..f5f5d91 100644
--- a/gdb/testsuite/gdb.cp/mb-ctor.exp
+++ b/gdb/testsuite/gdb.cp/mb-ctor.exp
@@ -21,10 +21,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/mb-inline.exp b/gdb/testsuite/gdb.cp/mb-inline.exp
index 47a2a5d..bf74df4 100644
--- a/gdb/testsuite/gdb.cp/mb-inline.exp
+++ b/gdb/testsuite/gdb.cp/mb-inline.exp
@@ -23,10 +23,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile mb-inline1.cc mb-inline2.cc
set hdrfile "${testfile}.h"
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
return -1
diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/mb-templates.exp
index 6c988e7..5d4c886 100644
--- a/gdb/testsuite/gdb.cp/mb-templates.exp
+++ b/gdb/testsuite/gdb.cp/mb-templates.exp
@@ -21,10 +21,6 @@ if { [skip_stl_tests] } { continue }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/member-ptr.exp
index a01e622..110497b 100644
--- a/gdb/testsuite/gdb.cp/member-ptr.exp
+++ b/gdb/testsuite/gdb.cp/member-ptr.exp
@@ -26,10 +26,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/method.exp b/gdb/testsuite/gdb.cp/method.exp
index 615307f..9e7ee51 100644
--- a/gdb/testsuite/gdb.cp/method.exp
+++ b/gdb/testsuite/gdb.cp/method.exp
@@ -36,10 +36,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp
index a721ecd..95a15aa 100644
--- a/gdb/testsuite/gdb.cp/namespace.exp
+++ b/gdb/testsuite/gdb.cp/namespace.exp
@@ -29,10 +29,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc namespace1.cc
-if [get_compiler_info c++] {
- return -1
-}
-
set xfail_class_types 0
if {[test_compiler_info {gcc-[0-3]-*}]
|| [test_compiler_info {gcc-4-[0-4]-*}]} {
diff --git a/gdb/testsuite/gdb.cp/nextoverthrow.exp b/gdb/testsuite/gdb.cp/nextoverthrow.exp
index 2e6bf84..b74ef12 100644
--- a/gdb/testsuite/gdb.cp/nextoverthrow.exp
+++ b/gdb/testsuite/gdb.cp/nextoverthrow.exp
@@ -18,13 +18,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info "c++"] {
- untested "couldn't find a valid c++ compiler"
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/nsdecl.exp b/gdb/testsuite/gdb.cp/nsdecl.exp
index 8f61280..f35e38e 100644
--- a/gdb/testsuite/gdb.cp/nsdecl.exp
+++ b/gdb/testsuite/gdb.cp/nsdecl.exp
@@ -18,10 +18,6 @@
standard_testfile .cc
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/nsrecurs.exp b/gdb/testsuite/gdb.cp/nsrecurs.exp
index 94cb069..c658d36 100644
--- a/gdb/testsuite/gdb.cp/nsrecurs.exp
+++ b/gdb/testsuite/gdb.cp/nsrecurs.exp
@@ -16,10 +16,6 @@
standard_testfile .cc
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/nsstress.exp b/gdb/testsuite/gdb.cp/nsstress.exp
index 7ae3f51..c255a35 100644
--- a/gdb/testsuite/gdb.cp/nsstress.exp
+++ b/gdb/testsuite/gdb.cp/nsstress.exp
@@ -18,10 +18,6 @@
standard_testfile .cc
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/nsusing.exp b/gdb/testsuite/gdb.cp/nsusing.exp
index 87011e4..2835207 100644
--- a/gdb/testsuite/gdb.cp/nsusing.exp
+++ b/gdb/testsuite/gdb.cp/nsusing.exp
@@ -15,10 +15,6 @@
standard_testfile .cc
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/pr-1023.exp b/gdb/testsuite/gdb.cp/pr-1023.exp
index f25cdb8..1bb244f 100644
--- a/gdb/testsuite/gdb.cp/pr-1023.exp
+++ b/gdb/testsuite/gdb.cp/pr-1023.exp
@@ -26,10 +26,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/pr-1210.exp b/gdb/testsuite/gdb.cp/pr-1210.exp
index b660457..a5e13e3 100644
--- a/gdb/testsuite/gdb.cp/pr-1210.exp
+++ b/gdb/testsuite/gdb.cp/pr-1210.exp
@@ -25,10 +25,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/pr-574.exp b/gdb/testsuite/gdb.cp/pr-574.exp
index e13b642..a4d37f3 100644
--- a/gdb/testsuite/gdb.cp/pr-574.exp
+++ b/gdb/testsuite/gdb.cp/pr-574.exp
@@ -28,10 +28,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
set flags [list debug c++]
if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
# Work around PR gcc/101452.
diff --git a/gdb/testsuite/gdb.cp/pr9631.exp b/gdb/testsuite/gdb.cp/pr9631.exp
index 0bbc49a..6a010ed 100644
--- a/gdb/testsuite/gdb.cp/pr9631.exp
+++ b/gdb/testsuite/gdb.cp/pr9631.exp
@@ -19,10 +19,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/printmethod.exp
index be597f5..2a8a3bc 100644
--- a/gdb/testsuite/gdb.cp/printmethod.exp
+++ b/gdb/testsuite/gdb.cp/printmethod.exp
@@ -27,10 +27,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/psmang.exp b/gdb/testsuite/gdb.cp/psmang.exp
index 9a40d30..5751b6d 100644
--- a/gdb/testsuite/gdb.cp/psmang.exp
+++ b/gdb/testsuite/gdb.cp/psmang.exp
@@ -180,10 +180,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile psmang1.cc psmang2.cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
return -1
diff --git a/gdb/testsuite/gdb.cp/re-set-overloaded.exp b/gdb/testsuite/gdb.cp/re-set-overloaded.exp
index 9aa8f2d..c64ae2f 100644
--- a/gdb/testsuite/gdb.cp/re-set-overloaded.exp
+++ b/gdb/testsuite/gdb.cp/re-set-overloaded.exp
@@ -20,12 +20,6 @@ standard_testfile bool.cc .cc
set sofile [standard_output_file ${testfile}.so]
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info "c++"] {
- return -1
-}
-
if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} {
untested "failed to compile"
diff --git a/gdb/testsuite/gdb.cp/rtti.exp b/gdb/testsuite/gdb.cp/rtti.exp
index b71f44b..e69c0cf 100644
--- a/gdb/testsuite/gdb.cp/rtti.exp
+++ b/gdb/testsuite/gdb.cp/rtti.exp
@@ -34,10 +34,6 @@ if { [skip_cplus_tests] } { return }
standard_testfile rtti1.cc rtti2.cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
return -1
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
index 4351cff..e3b834a 100644
--- a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
+++ b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
@@ -21,10 +21,6 @@ if {[skip_cplus_tests]} { continue }
standard_testfile .cc
-if {[get_compiler_info "c++"]} {
- return -1
-}
-
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}]} {
return -1
diff --git a/gdb/testsuite/gdb.cp/shadow.exp b/gdb/testsuite/gdb.cp/shadow.exp
index 613aac3..f0bfb5b 100644
--- a/gdb/testsuite/gdb.cp/shadow.exp
+++ b/gdb/testsuite/gdb.cp/shadow.exp
@@ -19,10 +19,6 @@
standard_testfile .cc
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/static-typedef-print.exp b/gdb/testsuite/gdb.cp/static-typedef-print.exp
index bde467f..0af27dd 100644
--- a/gdb/testsuite/gdb.cp/static-typedef-print.exp
+++ b/gdb/testsuite/gdb.cp/static-typedef-print.exp
@@ -17,10 +17,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
index 82abff3..8b2ad27 100644
--- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp
+++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
@@ -15,11 +15,6 @@
standard_testfile .cc
-if [get_compiler_info "c++"] {
- unsupported "couldn't find a valid c++ compiler"
- return -1
-}
-
if {[test_compiler_info gcc*] && ![supports_statement_frontiers] } {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/temargs.exp b/gdb/testsuite/gdb.cp/temargs.exp
index 507068d..05fd902 100644
--- a/gdb/testsuite/gdb.cp/temargs.exp
+++ b/gdb/testsuite/gdb.cp/temargs.exp
@@ -32,8 +32,6 @@ if {![runto_main]} {
return -1
}
-# NOTE: prepare_for_testing calls get_compiler_info, which we need
-# for the test_compiler_info calls.
# gcc 4.4 and earlier don't emit enough info for some of our template tests.
set have_older_template_gcc 0
set have_pr_41736_fixed 1
diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp
index a798054..27c9bbc 100644
--- a/gdb/testsuite/gdb.cp/templates.exp
+++ b/gdb/testsuite/gdb.cp/templates.exp
@@ -21,12 +21,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile .cc
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info "c++"] {
- return -1
-}
-
set flags [list debug c++]
if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
# Work around PR gcc/101452.
diff --git a/gdb/testsuite/gdb.cp/try_catch.exp b/gdb/testsuite/gdb.cp/try_catch.exp
index 8e74c91..31fe298 100644
--- a/gdb/testsuite/gdb.cp/try_catch.exp
+++ b/gdb/testsuite/gdb.cp/try_catch.exp
@@ -26,10 +26,6 @@ if { [skip_stl_tests] } { return }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/typed-enum.exp b/gdb/testsuite/gdb.cp/typed-enum.exp
index 0408e6a..743a141 100644
--- a/gdb/testsuite/gdb.cp/typed-enum.exp
+++ b/gdb/testsuite/gdb.cp/typed-enum.exp
@@ -19,10 +19,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
diff --git a/gdb/testsuite/gdb.cp/typedef-base.exp b/gdb/testsuite/gdb.cp/typedef-base.exp
index f58c841..6dc937d 100644
--- a/gdb/testsuite/gdb.cp/typedef-base.exp
+++ b/gdb/testsuite/gdb.cp/typedef-base.exp
@@ -19,10 +19,6 @@ if { [skip_cplus_tests] } { continue }
standard_testfile .cc
-if [get_compiler_info "c++"] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}