]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: remove unneeded calls to get_compiler_info
authorAndrew Burgess <aburgess@redhat.com>
Thu, 9 Jun 2022 15:45:48 +0000 (16:45 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 24 Jun 2022 14:07:29 +0000 (15:07 +0100)
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.

174 files changed:
gdb/testsuite/gdb.ada/array_of_variant.exp
gdb/testsuite/gdb.ada/arrayidx.exp
gdb/testsuite/gdb.ada/big_packed_array.exp
gdb/testsuite/gdb.ada/null_array.exp
gdb/testsuite/gdb.arch/altivec-abi.exp
gdb/testsuite/gdb.arch/altivec-regs.exp
gdb/testsuite/gdb.arch/amd64-byte.exp
gdb/testsuite/gdb.arch/amd64-dword.exp
gdb/testsuite/gdb.arch/amd64-word.exp
gdb/testsuite/gdb.arch/i386-avx.exp
gdb/testsuite/gdb.arch/i386-byte.exp
gdb/testsuite/gdb.arch/i386-sse.exp
gdb/testsuite/gdb.arch/i386-word.exp
gdb/testsuite/gdb.arch/ppc-dfp.exp
gdb/testsuite/gdb.arch/ppc-fp.exp
gdb/testsuite/gdb.arch/s390-multiarch.exp
gdb/testsuite/gdb.arch/vsx-regs.exp
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
gdb/testsuite/gdb.base/align-c++.exp
gdb/testsuite/gdb.base/all-bin.exp
gdb/testsuite/gdb.base/annota1.exp
gdb/testsuite/gdb.base/attach.exp
gdb/testsuite/gdb.base/break-interp.exp
gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
gdb/testsuite/gdb.base/call-ar-st.exp
gdb/testsuite/gdb.base/call-rt-st.exp
gdb/testsuite/gdb.base/call-sc.exp
gdb/testsuite/gdb.base/catch-load.exp
gdb/testsuite/gdb.base/completion.exp
gdb/testsuite/gdb.base/complex.exp
gdb/testsuite/gdb.base/condbreak.exp
gdb/testsuite/gdb.base/consecutive.exp
gdb/testsuite/gdb.base/constvars.exp
gdb/testsuite/gdb.base/corefile.exp
gdb/testsuite/gdb.base/dprintf-pending.exp
gdb/testsuite/gdb.base/eval-skip.exp
gdb/testsuite/gdb.base/expand-psymtabs.exp
gdb/testsuite/gdb.base/exprs.exp
gdb/testsuite/gdb.base/fileio.exp
gdb/testsuite/gdb.base/fixsection.exp
gdb/testsuite/gdb.base/gdb11530.exp
gdb/testsuite/gdb.base/gnu-ifunc.exp
gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
gdb/testsuite/gdb.base/infcall-nested-structs-c++.exp
gdb/testsuite/gdb.base/info-fun.exp
gdb/testsuite/gdb.base/info-types-c++.exp
gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp
gdb/testsuite/gdb.base/jit-elf-fork.exp
gdb/testsuite/gdb.base/jit-elf-so.exp
gdb/testsuite/gdb.base/jit-elf.exp
gdb/testsuite/gdb.base/jit-reader.exp
gdb/testsuite/gdb.base/list.exp
gdb/testsuite/gdb.base/logical.exp
gdb/testsuite/gdb.base/long_long.exp
gdb/testsuite/gdb.base/longjmp.exp
gdb/testsuite/gdb.base/max-depth-c++.exp
gdb/testsuite/gdb.base/mips_pro.exp
gdb/testsuite/gdb.base/miscexprs.exp
gdb/testsuite/gdb.base/nodebug.exp
gdb/testsuite/gdb.base/pc-fp.exp
gdb/testsuite/gdb.base/pending.exp
gdb/testsuite/gdb.base/permissions.exp
gdb/testsuite/gdb.base/pointers.exp
gdb/testsuite/gdb.base/print-file-var.exp
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.base/psym-external-decl.exp
gdb/testsuite/gdb.base/psymtab.exp
gdb/testsuite/gdb.base/relational.exp
gdb/testsuite/gdb.base/scope.exp
gdb/testsuite/gdb.base/shlib-call.exp
gdb/testsuite/gdb.base/shreloc.exp
gdb/testsuite/gdb.base/signals.exp
gdb/testsuite/gdb.base/sizeof.exp
gdb/testsuite/gdb.base/so-impl-ld.exp
gdb/testsuite/gdb.base/solib-disc.exp
gdb/testsuite/gdb.base/solib-display.exp
gdb/testsuite/gdb.base/solib-nodir.exp
gdb/testsuite/gdb.base/solib-overlap.exp
gdb/testsuite/gdb.base/solib-search.exp
gdb/testsuite/gdb.base/solib-symbol.exp
gdb/testsuite/gdb.base/solib-weak.exp
gdb/testsuite/gdb.base/store.exp
gdb/testsuite/gdb.base/structs.exp
gdb/testsuite/gdb.base/structs2.exp
gdb/testsuite/gdb.base/sym-file.exp
gdb/testsuite/gdb.base/symtab-search-order.exp
gdb/testsuite/gdb.base/unload.exp
gdb/testsuite/gdb.base/varargs.exp
gdb/testsuite/gdb.base/volatile.exp
gdb/testsuite/gdb.base/watch_thread_num.exp
gdb/testsuite/gdb.base/watchpoint-solib.exp
gdb/testsuite/gdb.base/watchpoint.exp
gdb/testsuite/gdb.base/watchpoints.exp
gdb/testsuite/gdb.compile/compile-cplus-print.exp
gdb/testsuite/gdb.compile/compile-cplus.exp
gdb/testsuite/gdb.compile/compile-ifunc.exp
gdb/testsuite/gdb.compile/compile.exp
gdb/testsuite/gdb.cp/ambiguous.exp
gdb/testsuite/gdb.cp/breakpoint.exp
gdb/testsuite/gdb.cp/bs15503.exp
gdb/testsuite/gdb.cp/casts.exp
gdb/testsuite/gdb.cp/class2.exp
gdb/testsuite/gdb.cp/cpexprs.exp.tcl
gdb/testsuite/gdb.cp/cplusfuncs.exp
gdb/testsuite/gdb.cp/ctti.exp
gdb/testsuite/gdb.cp/disasm-func-name.exp
gdb/testsuite/gdb.cp/dispcxx.exp
gdb/testsuite/gdb.cp/gdb1355.exp
gdb/testsuite/gdb.cp/gdb2384.exp
gdb/testsuite/gdb.cp/gdb2495.exp
gdb/testsuite/gdb.cp/infcall-dlopen.exp
gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp
gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp
gdb/testsuite/gdb.cp/local.exp
gdb/testsuite/gdb.cp/m-data.exp
gdb/testsuite/gdb.cp/m-static.exp
gdb/testsuite/gdb.cp/mb-ctor.exp
gdb/testsuite/gdb.cp/mb-inline.exp
gdb/testsuite/gdb.cp/mb-templates.exp
gdb/testsuite/gdb.cp/member-ptr.exp
gdb/testsuite/gdb.cp/method.exp
gdb/testsuite/gdb.cp/namespace.exp
gdb/testsuite/gdb.cp/nextoverthrow.exp
gdb/testsuite/gdb.cp/nsdecl.exp
gdb/testsuite/gdb.cp/nsrecurs.exp
gdb/testsuite/gdb.cp/nsstress.exp
gdb/testsuite/gdb.cp/nsusing.exp
gdb/testsuite/gdb.cp/pr-1023.exp
gdb/testsuite/gdb.cp/pr-1210.exp
gdb/testsuite/gdb.cp/pr-574.exp
gdb/testsuite/gdb.cp/pr9631.exp
gdb/testsuite/gdb.cp/printmethod.exp
gdb/testsuite/gdb.cp/psmang.exp
gdb/testsuite/gdb.cp/re-set-overloaded.exp
gdb/testsuite/gdb.cp/rtti.exp
gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
gdb/testsuite/gdb.cp/shadow.exp
gdb/testsuite/gdb.cp/static-typedef-print.exp
gdb/testsuite/gdb.cp/step-and-next-inline.exp
gdb/testsuite/gdb.cp/temargs.exp
gdb/testsuite/gdb.cp/templates.exp
gdb/testsuite/gdb.cp/try_catch.exp
gdb/testsuite/gdb.cp/typed-enum.exp
gdb/testsuite/gdb.cp/typedef-base.exp
gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
gdb/testsuite/gdb.ctf/multi.exp
gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp
gdb/testsuite/gdb.fortran/library-module.exp
gdb/testsuite/gdb.guile/scm-type.exp
gdb/testsuite/gdb.mi/gdb792.exp
gdb/testsuite/gdb.mi/mi-catch-load.exp
gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
gdb/testsuite/gdb.mi/mi-pending.exp
gdb/testsuite/gdb.mi/mi-solib.exp
gdb/testsuite/gdb.mi/mi-var-cp.exp
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
gdb/testsuite/gdb.opt/inline-bt.exp
gdb/testsuite/gdb.opt/inline-cmds.exp
gdb/testsuite/gdb.opt/inline-locals.exp
gdb/testsuite/gdb.opt/solib-intra-step.exp
gdb/testsuite/gdb.python/py-events.exp
gdb/testsuite/gdb.python/py-finish-breakpoint.exp
gdb/testsuite/gdb.python/py-format-string.exp
gdb/testsuite/gdb.python/py-type.exp
gdb/testsuite/gdb.reverse/solib-precsave.exp
gdb/testsuite/gdb.reverse/solib-reverse.exp
gdb/testsuite/gdb.server/solib-list.exp
gdb/testsuite/gdb.stabs/weird.exp
gdb/testsuite/gdb.threads/attach-into-signal.exp
gdb/testsuite/gdb.threads/attach-stopped.exp
gdb/testsuite/gdb.threads/multiple-successive-infcall.exp
gdb/testsuite/gdb.trace/change-loc.exp
gdb/testsuite/gdb.trace/strace.exp

index 63c4263b8c73fa671d8aacd8f1e611457c65b5f9..606974ced8391bdddd1af994281208bbb85f2c66 100644 (file)
@@ -20,9 +20,6 @@ if { [skip_ada_tests] } { return -1 }
 
 standard_ada_testfile p
 
-if [get_compiler_info] {
-    return -1
-}
 set old_gcc [expr [test_compiler_info {gcc-[0-7]-*}]]
 
 proc gdb_test_with_xfail { cmd re re_xfail msg } {
index 218d51903dbe95f61d8bd42ded526cdf8d9aa7fe..43393e61d3c1d5cee4158b0522a201eef9eb308a 100644 (file)
@@ -23,9 +23,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
 set old_gcc [expr [test_compiler_info {gcc-[0-3]-*}] \
             || [test_compiler_info {gcc-4-[0-6]-*}]]
 
index 415c5c951406ba220cdad81ff22541d8055e8fb6..e82892a420c4ffed6cb52146dcb0ebdc82233768 100644 (file)
@@ -19,9 +19,6 @@ if { [skip_ada_tests] } { return -1 }
 
 standard_ada_testfile foo_ra24_010
 
-if [get_compiler_info] {
-    return -1
-}
 set old_gcc [expr [test_compiler_info {gcc-[0-8]-*}]]
 
 foreach_with_prefix scenario {all minimal} {
index 8b93976324e71b4454696a32bcdbfa1e656fdc77..e8b3b93446bc26b48104663f234ba4323f61a5d1 100644 (file)
@@ -28,10 +28,6 @@ clean_restart ${testfile}
 set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[test_compiler_info {gcc-[0-3]-*}]
     || [test_compiler_info {gcc-4-[0-4]-*}]} {
     # Ada array bounds are missing in older GCCs.
index b3dffbb70aa9fb922a35a0d4d04106b8e1c41601..d46882ad7ac6e7074c2ba75d6fd52e4e569e5777 100644 (file)
@@ -28,11 +28,6 @@ if {![istarget "powerpc*"] || [skip_altivec_tests]} then {
 
 standard_testfile
 
-if [get_compiler_info] {
-    warning "get_compiler failed"
-    return -1
-}
-
 proc altivec_abi_tests { extra_flags force_abi } {
     global testfile binfile srcfile srcdir subdir
     global gdb_prompt
index d4c13afa8a1340e125ccdffb0ed657ff881fcbf1..42521a0a9abcd40ebf32f58979f8e8fc42e8b00f 100644 (file)
@@ -30,11 +30,6 @@ if {![istarget "powerpc*"] || [skip_altivec_tests]} then {
 standard_testfile
 
 set compile_flags {debug nowarnings}
-if [get_compiler_info] {
-    warning "get_compiler failed"
-    return -1
-}
-
 if [test_compiler_info gcc*] {
     set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
 } elseif [test_compiler_info xlc*] {
index 549b4e0043551ca724c3392627658aa7703ae8bb..085963230cc71d652f4ce15fa3c4a95d4e32a84c 100644 (file)
@@ -26,10 +26,6 @@ if { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
 
 standard_testfile amd64-pseudo.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug]] != "" } {
     untested "failed to compile"
     return
index 242c16e1b156427068f2c20eba32160608b4742b..0c297529dc0380c0fdf609e672083973152e6d94 100644 (file)
@@ -26,10 +26,6 @@ if { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
 
 standard_testfile amd64-pseudo.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug]] != "" } {
     untested "failed to compile"
     return
index 37784cfee12653d802a58415afc9817dabb3d293..c518dc96c86dd6b8602673a430ad834f3e2712ea 100644 (file)
@@ -26,10 +26,6 @@ if { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
 
 standard_testfile amd64-pseudo.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug]] != "" } {
     untested "failed to compile"
     return
index c86bf05ad5a66edb72393e889b01dcbdf9ad41bc..950b411809e10332a2a74f22be95c45ebfa435c2 100644 (file)
@@ -31,10 +31,6 @@ if { ![have_avx] } {
 
 standard_testfile .c
 
-if [get_compiler_info] {
-    return -1
-}
-
 set flags { debug }
 
 # C11 for _Alignas, gnu for asm.
index 30bb561a33076df4c6e5bf991351ab4080eb9f6d..f29d54ec1bc5630170bcf52115c5d022b7685909 100644 (file)
@@ -26,10 +26,6 @@ if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"])} then {
 
 standard_testfile i386-pseudo.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug]] != "" } {
     untested "failed to compile"
     return
index e94121882c63cd02b317e74bf25faf4ee1ac75e1..6565f15aa760d9fa5ca2a8e3e4a50a959892a46f 100644 (file)
@@ -26,10 +26,6 @@ if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } {
 
 standard_testfile .c
 
-if [get_compiler_info] {
-    return -1
-}
-
 set flags { debug }
 
 # C11 for _Alignas, gnu for asm.
index 3c3626cf0af6d80cde44e1d24ec25b76a2b509d3..5ad01eb20f10be58d55cf7b4479d6ae3c7a46933 100644 (file)
@@ -26,10 +26,6 @@ if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"])} then {
 
 standard_testfile i386-pseudo.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug]] != "" } {
     untested "failed to compile"
     return
index 45194dc79d8459a85e75ac287fd3cc43e7fcd8cc..ecaf2499a0f623e90f03637aa156fd10da0fb005 100644 (file)
@@ -23,11 +23,6 @@ if ![istarget "powerpc*"] then {
 
 standard_testfile
 
-if [get_compiler_info] {
-    warning "get_compiler failed"
-    return -1
-}
-
 if ![test_compiler_info gcc*] {
     # We use GCC's extended asm syntax
     warning "unknown compiler"
index a95427323a47002bfe83a403db7d250c4d189fd5..bf1a1c59082b9bdf330e553a093c95ae50087c54 100644 (file)
@@ -23,11 +23,6 @@ if ![istarget "powerpc*"] then {
 
 standard_testfile
 
-if [get_compiler_info] {
-    warning "get_compiler failed"
-    return -1
-}
-
 if ![test_compiler_info gcc*] {
     # We use GCC's extended asm syntax
     warning "unknown compiler"
index ee7f2287e19bb07796a9c5079d51d94811bfffe9..f0e85544bd5726ca985585284e459e38454e4a6b 100644 (file)
@@ -33,10 +33,6 @@ set binprefix $binfile
 
 gdb_exit
 
-if { [get_compiler_info] } {
-    return -1
-}
-
 proc compile_and_dump {variant ccopts binfile} {
     global srcdir subdir srcfile
     set compile_flags {debug}
index 56fea796a9bf03866438a9feb09fdf447fdd7400..c288b2f7d6f2b7ccf259a05533460b132bb8aa89 100644 (file)
@@ -27,11 +27,6 @@ if {![istarget "powerpc*"] || [skip_vsx_tests]} then {
 standard_testfile
 
 set compile_flags {debug nowarnings quiet}
-if [get_compiler_info] {
-    warning "get_compiler failed"
-    return -1
-}
-
 if [test_compiler_info gcc*] {
     set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
 } elseif [test_compiler_info xlc*] {
index 7e94d05753f72ab53592b876be3f6e260bc144c7..b5b2d5844031a88325e83ed41f6becf14b0de9a1 100644 (file)
@@ -27,11 +27,6 @@ if {![istarget "powerpc*"] || [skip_vsx_tests]} then {
 standard_testfile
 
 set compile_flags {debug nowarnings quiet}
-if [get_compiler_info] {
-    warning "get_compiler failed"
-    return -1
-}
-
 if [test_compiler_info gcc*] {
     set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
 } elseif [test_compiler_info xlc*] {
index 4e62feebc2fb0318f7150a68d1b46932583878c4..bb72b1fe7ee136e20ec9e6ab375689b8dc9aab08 100644 (file)
@@ -19,7 +19,7 @@
 # compiler.
 
 # Only test C++ if we are able.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
     return -1
 }
 set lang c++
index 1f481210e19b7eba238fdae432a62bf834613edc..cf53cd7997e49887c9df3594564a7c60783c4811 100644 (file)
 
 standard_testfile all-types.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
     return -1
 }
index 42a261e56142d8b74d2c65823c8d61d4700cbb88..aed2a4e6468a3b012eda44e71fd21e915fe02598 100644 (file)
@@ -495,7 +495,7 @@ proc thread_test {} {
     set binfile [standard_output_file ${testfile}-watch_thread_num]
     set gdb_prompt $old_gdb_prompt
 
-    if { ![get_compiler_info] && [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] == "" } {
+    if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] == "" } {
 
        gdb_exit
        gdb_start
index 7b661e99a1c86ba779286d97173f8abe91705586..cfe806bb9dd05acd614295cf49b524485e9c9a05 100644 (file)
@@ -49,10 +49,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${binfile3}" executable {d
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 # This is a test of the error cases for gdb's ability to attach to a
 # running process.
 
index f6533e99ac8accac892ca70305cac7bc442094a6..99371f1f6a1bed9ec997f3f2c25d41765c9676e5 100644 (file)
@@ -30,10 +30,6 @@ set binfile_lib ${binprefix}.so
 set srcfile "${test}-main.c"
 set srcfile_lib "${test}-lib.c"
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Use -soname so that the new library gets copied by build_executable_own_libs.
 
 if {[gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} [list debug ldflags=-Wl,-soname,${test}.so]] != ""} {
index aa1e328cdab9766d8aa99982b33fe247ee4637d4..b1c93f61c8c5bb13b6813e75a00c9e1d989824c7 100644 (file)
@@ -27,10 +27,6 @@ if { [skip_cplus_tests] } { continue }
 
 standard_testfile .cc
 
-if [get_compiler_info "c++"] {
-    return -1
-}
-
 if {[build_executable_from_specs $testfile.exp $testfile \
        {c++ additional_flags=-Wl,--gc-sections} \
        $srcfile {debug c++ additional_flags=-ffunction-sections}]} {
index 239cfa4c518fa5034a09b1ed3a8112de0b37e315..7c80ec7c0b8e85baa4d11ca7bdc16e0ee83802ea 100644 (file)
@@ -29,10 +29,6 @@ if [target_info exists gdb,cannot_call_functions] {
 # Create and source the file that provides information about the compiler
 # used to compile the test case.
 
-if [get_compiler_info] {
-    return -1
-}
-
 set skip_float_test [gdb_skip_float_test]
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
index fee192d7d0275ae8fa6668d994612d2da5d51c41..00af32c13a18cd46d18f16a4ac3176b46e911a4b 100644 (file)
@@ -28,15 +28,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     return -1
 }
 
-
-
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-
-if [get_compiler_info] {
-    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] {
index af9495fe94f957e2e67bcf2bcf2e4a06a5f3b3e1..ddf2ceedf96e98d26639cce74ffef6550f685553 100644 (file)
@@ -29,12 +29,6 @@ if [target_info exists gdb,cannot_call_functions] {
 
 standard_testfile .c
 
-# Create and source the file that provides information about the
-# compiler used to compile the test case.
-
-if [get_compiler_info] {
-    return -1
-}
 set skip_float_test [gdb_skip_float_test]
 
 # Compile a variant of scalars.c using TYPE to specify the type of the
index 7f18f63806ac542e095a0f00f7af130c2fc81420..f8677b0a53d15e412a25449d5eae0debb4939db9 100644 (file)
@@ -18,12 +18,6 @@ if {[skip_shlib_tests]} {
     return -1
 }
 
-if {[get_compiler_info]} {
-    warning "Could not get compiler info"
-    untested "no compiler info"
-    return -1
-}
-
 standard_testfile .c
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
     untested "failed to compile"
index 0c58a1ab6b7e11f9b7e483e6150b649d20ad9bd7..e3803c9d2d584de030b9e4263b0b2fa3a539b432 100644 (file)
 
 standard_testfile break.c break1.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
     return -1
index dcade008814864b84226a9c5d3f5a8164dc4225a..e2c60029593997aa431e6c888bbe91a7cc74fa91 100644 (file)
 
 standard_testfile
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
     return -1
 }
index b8122d092b5505177605234a489b441ab3b7f689..aecee177adf343cdd3748650fb176183bd38fce9 100644 (file)
@@ -28,10 +28,6 @@ if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile $srcfile2]
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 set bp_location1  [gdb_get_line_number "set breakpoint 1 here"]
 set bp_location6  [gdb_get_line_number "set breakpoint 6 here"]
 set bp_location8  [gdb_get_line_number "set breakpoint 8 here" $srcfile2]
index cd5c6f321a0fc1ea89df651e5621e5f71a7e86ea..4b38de0c3bc77cc21b867a2a16244bcc07ea1669 100644 (file)
 
 standard_testfile
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
     return -1
 }
index fd15743c521b2b6f03009c5bbc3650db33711480..671baf62f016f39c430bde5c28274c071ce9ee4c 100644 (file)
 
 standard_testfile .c
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug ] != "" } {
     untested "failed to compile"
     return -1
index 4ed92a02955411ec614067b50a9164388f16910a..fa9d8243a5934626d6d3d2cf7b1fd6d639d0b68a 100644 (file)
@@ -23,12 +23,6 @@ if ![isnative] then {
 
 standard_testfile coremaker.c
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     untested "failed to compile"
     return -1
index c3e121241d7b2e3ea5595a8e71ea7ccbc42573c8..2ab8d52f14631487e71f0444def5b8fd69e68005 100644 (file)
@@ -26,10 +26,6 @@ set lib_sl [standard_output_file $libfile.sl]
 set lib_opts  debug
 set exec_opts [list debug shlib=$lib_sl]
 
-if { [get_compiler_info] } {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile shared library"
index 81b37d1a89163195615ce66d75213e2f16ea06ec..659a8b8a61ef6fa5c073a1aff3e163f24fa5a455 100644 (file)
@@ -39,10 +39,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
      return -1
     }
 
-if [get_compiler_info] {
-    return -1
-}
-
 clean_restart ${binfile}
 
 
index 6848272c816c7c03f6cecad8654232d7adbb84b3..e55dddd63fa4858a1a14b78fd9240e49b0525db3 100644 (file)
 
 standard_testfile
 
-# What compiler are we using?
-if [get_compiler_info] {
-    return -1
-}
-
 # We intentionally compile the source file in twice.
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug $srcfile {debug additional_flags=-DFIRST} \
index dfe0ec9373753f3bb9626f8fdc2e1fcd8a64da91..0605dd62480c7728f1ef36dfc2e14209ce2d1e06 100644 (file)
@@ -26,10 +26,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
      return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 clean_restart ${binfile}
 
 #
index 7d0d85fcccad37bf4578455ff887949ce299d9be..e00a1cefa0a577f16322ce59b47de5e589fb6d51 100644 (file)
@@ -36,13 +36,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
     return -1
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-
-if [get_compiler_info] {
-    return -1
-}
-
 set dir2 [standard_output_file dir2.fileio.test]
 if {[file exists $dir2] && ![file writable $dir2]} {
     system "chmod +w $dir2"
index 47174b043379d21a8934ed946d2eac61302f8a90..5734fcaae7448199045a087662e3dad63a433697 100644 (file)
@@ -27,10 +27,6 @@ set lib_sl [standard_output_file ${libfile}.sl]
 set lib_opts [list debug nowarnings]
 set exec_opts [list debug nowarnings shlib=$lib_sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile \
             executable $exec_opts] != ""} {
index bd8d0669a3a87f4f0935744ae546c48d4d570b7b..7f16965d11d6cc30c1ca66993043c335c61cc11e 100644 (file)
@@ -22,11 +22,6 @@ standard_testfile
 
 # Unnamed union is a GNU extension, thus we restrict the test
 # to gcc compiler.
-
-if [get_compiler_info] {
-    return -1
-}
-
 if { ![test_compiler_info gcc*] } {
     return 0
 }
index 713f3ffa56857c435d16204b3600f01f91699c39..672ae85a21834b833249de32688c8779f28501ad 100644 (file)
@@ -31,10 +31,6 @@ set libsrc ${libfile}.c
 set final_file "${testfile}-final"
 set final_src ${final_file}.c
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Return the binary suffix appended to program and library names to
 # make each testcase variant unique.
 proc make_binsuffix {resolver_attr resolver_debug final_debug} {
index 13c01de02e657f1271cebc2fc43c0aa85e508207..a521637e17e81bdb484dbcee0890237940ae0839 100644 (file)
@@ -30,10 +30,6 @@ set lib_so [standard_output_file ${lib_basename}]
 set lib_opts "debug"
 set exec_opts [list debug shlib=${lib_so}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib_src} ${lib_so} $lib_opts] != ""
      || [gdb_compile ${srcdir}/${subdir}/${main_src} ${binfile} executable $exec_opts] != ""} {
     untested "failed to compile"
index e05bb923ec91187bac365cc2a1fb96958467dba1..5415c7a7c10cafbd4ded7607b9e92490dd576698 100644 (file)
@@ -16,7 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Only test C++ if we are able.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
     return -1
 }
 set lang c++
index 175753a234b228bcf96f08043bc36f333e457c0d..e683bc3aa7077d7b47b9984531db1bf7eb159393 100644 (file)
@@ -26,10 +26,6 @@ standard_testfile .c
 set executable ${testfile}
 set bin_flags [list debug shlib=${binfile_lib}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 foreach_with_prefix n_flag { 0 1 } {
 
     # SEP must be last for the possible `unsupported' error path.
index 082879dce4a6ba31ed83619557ed81541415fcbb..2aca2e35004977cb3a937a487e1f1e34e7f15980 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Only test C++ if we are able.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
     return -1
 }
 set lang c++
index ef5fe8c24bc4ea79e1f3edc889723ce4c5cc15c1..31e753a0c1c263612e3151eb9e7ccc8b2cae5694 100644 (file)
 
 standard_testfile .c
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Build executable with stripped startup code and text section starting at zero
 
 set opts {debug "additional_flags=-nostdlib -emain -Wl,-Ttext=0x00 -Wl,-N"}
index 635248cd8e48b10f86c18cc0b09015887e06dacb..a8e85b30e1b209b1259dc29854c2b8e169d30b22 100644 (file)
@@ -20,11 +20,6 @@ if {[skip_shlib_tests]} {
     return -1
 }
 
-if {[get_compiler_info]} {
-    untested "could not get compiler info"
-    return 1
-}
-
 load_lib jit-elf-helpers.exp
 
 # The main code that loads and registers JIT objects.
index b6081b3ab5e79d8787112f1d4d674577cf3fb191..dcc9afc36b9b851d7090dd4a976316edc09c05dc 100644 (file)
@@ -21,11 +21,6 @@ if {[skip_shlib_tests]} {
     return -1
 }
 
-if {[get_compiler_info]} {
-    untested "could not get compiler info"
-    return 1
-}
-
 load_lib jit-elf-helpers.exp
 
 # Increase this to see more detail.
index 4b75188a00d7a0e92ccf75ed8e0870cc2a65b802..38d541f74b99481d206a75217e23807f61d79835 100644 (file)
@@ -18,11 +18,6 @@ if {[skip_shlib_tests]} {
     return -1
 }
 
-if {[get_compiler_info]} {
-    untested "could not get compiler info"
-    return 1
-}
-
 load_lib jit-elf-helpers.exp
 
 # Increase this to see more detail.
index d94360cd7d9e193aab8a142d92b46ba91edebbbe..e0b3ba421150317159b57b52db262acf0d9c3a94 100644 (file)
@@ -27,12 +27,6 @@ if { ![isnative] } {
     return -1
 }
 
-if {[get_compiler_info]} {
-    untested "could not get compiler info"
-    return 1
-}
-
-
 # Increase this to see more detail.
 set test_verbose 0
 
index d11d35e6697ea914f40ff0d59304bf82e3ccd274..fe894a0098e01851a6821d350ecc49026c63dd06 100644 (file)
@@ -26,12 +26,6 @@ if {[build_executable "failed to prepare" $testfile [list $srcfile $srcfile2] \
     return -1
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 # The last line in the file.
 set last_line [gdb_get_line_number "last line" "list0.c"]
 
index f594c3be110dd9791132c92d0b87e1256dc38488..b1d3c757768326732419fe3585570741f8891ee2 100644 (file)
@@ -32,10 +32,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 clean_restart ${binfile}
 
 
index 43e689f8ae45cbee7a20d95353dbf8123a98eeff..9c8dd16b7ebb091e001ab439b7cbbef8b7da104d 100644 (file)
@@ -24,12 +24,6 @@ if [target_info exists no_long_long] {
 
 standard_testfile .c
 
-# What compiler are we using?
-#
-if [get_compiler_info] {
-    return -1
-}
-
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [concat debug nowarnings]] != "" } {
      untested "failed to compile"
      return -1
index 6ab1474d9b4b8a9a0d08f691e08f5b0733a002ef..f301cac2897ca1f7227f7aa86c7f65e3befde887 100644 (file)
@@ -25,10 +25,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
      return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 clean_restart ${binfile}
 
 if ![runto_main] then {
index ea2538b64582a38ed44a1a610ba3750f708cde7b..9561176ba320f9397f08f78dfc71b245cb2d46c5 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Only test C++ if we are able.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
     return -1
 }
 set lang c++
index 1c8f3dc4eb4866d1da9702aca0a4c802df11d7d0..fe5eb94f0011b62c4ff3a781e3e68b900dc545bd 100644 (file)
 
 standard_testfile
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
-
 # This test must be compiled with -O2 if using gcc.
 
 set options debug
index f633d143b6f180352fbdf340cb9af6c93094246c..7d9542fbebae19e6f73a459980f4a7d4b6981938 100644 (file)
@@ -44,10 +44,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [lis
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 clean_restart ${binfile}
 
 
index 0dbd0ad153e2a0443f205cddfe9eab417126578f..68a21eb07dd94b1a306f712e3206c80e97b7c5af 100644 (file)
 
 standard_testfile .c
 
-if [get_compiler_info] {
-    return -1
-}
-
 if [test_compiler_info "xlc-*"] {
     # By default, IBM'x xlc compiler doesn't add static variables into the symtab.
     # Use "-qstatsym" to do so. 
index 6b61fc06a985e1cae54157d0f6235c8b01bd8fd4..b0e7ec9b3359e01ec792e8951ee273696a113fe5 100644 (file)
 
 standard_testfile
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
     return -1
 }
index c9178fc9d159ec6281cf8530c3554c3a773dc403..9b3fb0248874eb4d8c818b27781a5e6e32183615 100644 (file)
@@ -31,10 +31,6 @@ set lib_sl  [standard_output_file $libfile.sl]
 set lib_opts  debug
 set exec_opts [list debug shlib=$lib_sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
index 233b630f0ead9a5185de82439e14a2f23c72e1b0..f13e985e77ec8d39d291bd6af99113d0d69eafda 100644 (file)
@@ -26,10 +26,6 @@ if {[build_executable $testfile.exp $testfile \
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 gdb_exit
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
index 586f85a49472b88df0de7699c7f17265965e3ecc..41981ee66232bd454f59e8c94bcd85c77242ebdc 100644 (file)
@@ -32,10 +32,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
      return -1
     }
 
-if [get_compiler_info] {
-    return -1
-}
-
 clean_restart ${binfile}
 
 
index dca753e8bb3049ddbde4c9ba4edd93bbc6468232..9abe87d77589a6d24159ca6edde1aff965ce8056 100644 (file)
@@ -139,7 +139,7 @@ proc test {hidden dlopen version_id_main lang} {
 }
 
 # Only test C++ if we are able.  Always use C.
-if { [skip_cplus_tests] || [get_compiler_info "c++"] } {
+if { [skip_cplus_tests] } {
     set lang_list {c}
 } else {
     set lang_list {c c++}
index c0c59c5c50332f6e10bcaf3b84e1bf9b7e6c5943..0a99f3d6f27954118cbe957bca280de416f44211 100644 (file)
@@ -27,8 +27,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
      return -1
 }
 
-get_compiler_info
-
 proc test_integer_literals_accepted {} {
     global gdb_prompt
 
index 0148f261c97e41bc11ef98393c701a09dff95608..3d8f3aae5c577de6871797c1752c2e7f0b8958f1 100644 (file)
@@ -15,7 +15,6 @@
 
 standard_testfile .c psym-external-decl-2.c
 
-get_compiler_info
 if { [test_compiler_info "clang-*"] } {
     return -1
 }
index 863e0ec54eb9bd8ba15bf0a67a442d13b8cb90c6..e805218b076f0746f312cdfc84fafd3b8f22e876 100644 (file)
@@ -28,12 +28,6 @@ if { [skip_cplus_tests] } { continue }
 
 standard_testfile psymtab1.c psymtab2.c
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] debug]} {
     return -1
index 87ccb9f3fe7bf0b1101de2f64f814ce791081aea..80185052f205a1ff4110633675b0c704c98c2855 100644 (file)
@@ -29,10 +29,6 @@ if { [prepare_for_testing "failed to prepare" relational int-type.c {debug nowar
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 #
 # set it up at a breakpoint so we can play with the variable values
 #
index a8ddb61350ae2d66f9e514e712926980169af748..55f70a85687f8049913689705b4b53a424339cd2 100644 (file)
@@ -23,12 +23,6 @@ if {[build_executable "failed to build" ${testfile} \
     return -1
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 # Test locating various things when stopped just inside main, after
 # running init0().  To prevent cascading of errors, we report the
 # first one and quit.  If all pass, then we print the pass results.
index 6c766e148def5d2370a84bace9cd3c493a22ef12..ceef308380ee0a1afd430b41ca24c3f1850db5c6 100644 (file)
@@ -43,10 +43,6 @@ set lib2     [standard_output_file shr2.sl]
 set lib_opts "debug"
 set exec_opts [list debug shlib=${lib1} shlib=${lib2}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib ${lib1src} ${lib1} $lib_opts] != ""
      || [gdb_compile_shlib ${lib2src} ${lib2} $lib_opts] != ""
      || [gdb_compile ${srcfile} ${binfile} executable $exec_opts] != ""} {
index 6f23889c0b108c159eaeca95ba6d530595184839..25032400ee611d07c181f5b365150b20ba9751f1 100644 (file)
@@ -37,10 +37,6 @@ set binfile [standard_output_file $testfile]
 set lib1_sl [standard_output_file shreloc1.sl]
 set lib2_sl [standard_output_file shreloc2.sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 set lib_opts "debug"
 set exec_opts [list debug shlib=$lib1_sl shlib=$lib2_sl]
 
index 11fa9d859d8ef5af85cd057fe2dbc7eab3d9c1d4..2b3fc1c66629fe34f46f5ff1e32f0fba9fc65bc4 100644 (file)
@@ -26,12 +26,6 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     return -1
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 gdb_exit
 gdb_start
 
index 7e86b2ac3e8fcb1e0757ab4d62197a9369c0f99b..3237c212a0a7b24b217ae5671b5f25475221d1fe 100644 (file)
 
 standard_testfile
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
     return -1
 }
index 69c35d4c7acadbc720125c14e5d3d65e6099e3fe..372b18f391591c113ba4fb6f2c1756ea2e961dc2 100644 (file)
@@ -26,10 +26,6 @@ set lib_sl  [standard_output_file $libfile.sl]
 set lib_opts  debug
 set exec_opts [list debug shlib=$lib_sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile \
             executable $exec_opts] != ""} {
index c1c4ccf3074af27d5a227a0d0f29d275b7cb1e6b..8f686ce6e89fa149b84eed41a55f5a6657642764 100644 (file)
@@ -38,10 +38,6 @@ set lib_syms [shlib_symbol_file ${libname}]
 
 remote_exec build "rm -f ${binfile}"
 
-if [get_compiler_info] {
-    return -1
-}
-
 set exec_opts [list debug shlib_load additional_flags=-DSHLIB_NAME=\"${lib_dlopen}\"]
 
 if { [gdb_compile_shlib $libsrc $libobj {debug}] != ""
index d67541374a339dc5e259e084da63ee7933379f93..4c4da6aee9de53b0eb5a10e44a8e6443a7dcea24 100644 (file)
@@ -61,10 +61,6 @@ set executable ${testfile}
 set binfile [standard_output_file ${executable}]
 set bin_flags [list debug shlib=${binfile_lib}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 # SEP must be last for the possible `unsupported' error path.
 foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" {
 
index cd84091b95656fcfabdb7a9047e716c58065936b..c687b7eb5114ba5e74d4a58ba96c619aaeb93513 100644 (file)
@@ -42,8 +42,7 @@ set objfile [standard_output_file ${executable}.o]
 set binfile [standard_output_file ${executable}]
 
 # build the first test case
-if { [get_compiler_info]
-     || [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" "${binlibfile}" [list debug ldflags=-Wl,-soname,${binlibfilebase}]] != ""
+if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" "${binlibfile}" [list debug ldflags=-Wl,-soname,${binlibfilebase}]] != ""
      || [gdb_gnu_strip_debug $binlibfile]
      || [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != ""
      || [gdb_compile "${objfile} ${binlibfile}" "${binfile}" executable {}] != "" } {
index a7fa056464e46872de0918007792f7bca9d9340e..3d9110baf2c18cf42f11ea32d09a9094df95d1e7 100644 (file)
@@ -35,10 +35,6 @@ if {![can_spawn_for_attach]} {
     return 0
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Library file.
 set libname "solib-overlap-lib"
 set srcfile_lib ${srcdir}/${subdir}/${libname}.c
index 202e79d85deef5b02e3f5e562c058fa28644b767..ab4f2c450724e701067dd83d133534164e3a1225 100644 (file)
@@ -21,13 +21,6 @@ if {[is_remote target] || [skip_shlib_tests]} {
     return -1
 }
 
-# This is required by gdb_compile_shlib.
-if {[get_compiler_info]} {
-    warning "Could not get compiler info"
-    untested "no compiler info"
-    return 1
-}
-
 # Build "wrong" and "right" versions of the libraries in separate directories.
 set wrong_lib_subdir "solib-search-wrong"
 set right_lib_subdir "solib-search-right"
index f2735162d234224a7c10b9942339fcb70b47b3d3..02b2028ce9225f72225be526f1d1604ceb09951d 100644 (file)
@@ -30,10 +30,6 @@ set srcfile ${srcdir}/${subdir}/${testfile}.c
 set binfile [standard_output_file ${testfile}]
 set bin_flags [list debug shlib=${binfile_lib}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
      || [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
   untested "failed to compile"
index db7b7f1fa4b55692156eae9f2ada0bc0de6a893b..c82eee28e214116ebbd3ef132b9a23e4a81188df 100644 (file)
@@ -29,10 +29,6 @@ if {([istarget *-*-mingw*]
 }
 
 # This test uses GCC-specific syntax.
-if [get_compiler_info] {
-    return -1
-}
-
 if {![test_compiler_info "gcc-*"]} {
     return 0
 }
index cb0e3c206a56f5426d7f16c8fc7ed39cc93443be..65847c7fbd597e897af4c236adaf1daa40bda7eb 100644 (file)
@@ -22,10 +22,6 @@ if { [prepare_for_testing "failed to prepare" $executable $srcfile] } {
     return -1
 }
 
-if [get_compiler_info] {
-    return -1
-}
-
 #
 # set it up at a breakpoint so we can play with the variable values
 #
index e9326a6e4a51380b7cdee1b088b2b6a592022bd3..71c07ebe3680a9effb72382801a78b6918009623 100644 (file)
@@ -29,13 +29,6 @@ standard_testfile .c
 # Regex matching any value of `char' type like: a = 65 'A'
 set anychar_re {-?[0-9]{1,3} '(.|\\([0-7]{3}|[a-z]|\\|'))'}
 
-# Create and source the file that provides information about the
-# compiler used to compile the test case.
-
-if [get_compiler_info] {
-    return -1
-}
-
 set skip_float_test [gdb_skip_float_test]
 
 # Compile a variant of structs.c using TYPES to specify the type of
index 86d47ecbb9e9dccbaf2c10f073cd045f0f00cdb7..eecc19bba3e54133e173f12efc01ec93f00187a0 100644 (file)
 
 standard_testfile .c
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 if { [prepare_for_testing "failed to prepare" $binfile $srcfile {debug}] } {
     return -1
 }
index bd8159b306f2e617e90f8700d6d8fd2ab8cf59b9..66273f19e9c0f494b596bf338b14e340dafe3cb3 100644 (file)
@@ -60,10 +60,6 @@ set lib_dlopen [shlib_target_file ${lib_basename}.so]
 set exec_opts [list debug "additional_flags= -I$srcdir/../../include/ -D$target_size\
  -DSHLIB_NAME\\=\"$lib_dlopen\""]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[gdb_compile_shlib $libsrc $lib_so {debug}] != ""} {
     untested "failed to compile shared library"
     return
index 6b93ce1f66e25c0a60ccc36cea2881c38bc9773b..d811af3cdeccde7d46bd7b350967f929f32660ab 100644 (file)
@@ -26,10 +26,6 @@ set lib1     [standard_output_file symtab-search-order-1.sl]
 set lib_opts "debug"
 set exec_opts [list debug shlib=$lib1]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $lib1src $lib1 $lib_opts] != ""
      || [gdb_compile [list $srcfile $srcfile2] $binfile executable \
             $exec_opts] != ""} {
index 6033203bfb88501d34d7f65ddcdcd45823b7533e..0a66814ac3f293141b7dc6dee42dfb871b07d9ec 100644 (file)
@@ -42,10 +42,6 @@ set lib_dlopen2 [shlib_target_file ${libname2}]
 set lib_syms [shlib_symbol_file ${libname}]
 set lib_syms2 [shlib_symbol_file ${libname2}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 set lib_opts debug
 set exec_opts [list debug shlib_load additional_flags=-DSHLIB_NAME=\"${lib_dlopen}\" additional_flags=-DSHLIB_NAME2=\"${lib_dlopen2}\"]
 
index 7d49acc17d3a721309b9abf3b6b1d3b3cfe31990..7bd2cb0820796c64ab528b04615a9511717cb5fc 100644 (file)
 
 standard_testfile .c
 
-if [get_compiler_info] {
-    return -1
-}
-
 set skip_float_test [gdb_skip_float_test]
 
 set additional_flags {debug}
index ae5fa3f34c2adbf50685ac105c6af75ea72495f8..4c56eb40fe97cf6f6eb2baf05a4854d0085bd8b8 100644 (file)
@@ -39,12 +39,6 @@ if { [prepare_for_testing "failed to prepare" volatile constvars.c] } {
     return -1
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 #
 # set it up at a breakpoint so we can play with the variable values
 #
index 96bc9091080765c358ad60e986cfb3bef1cf7a25..7d4f19ddc0614b375a470920c6eb59f8d66b8d27 100644 (file)
@@ -29,12 +29,6 @@ if {[skip_hw_watchpoint_access_tests]} {
 
 standard_testfile .c
 
-# What compiler are we using?
-#
-if [get_compiler_info] {
-    return -1
-}
-
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     return -1
 }
index 005f4825d1eee4cae18bba6e3c4cfcab4a09ffae..aa4cf0d7adb61c2064cd41dbf459f78ad1ccdacc 100644 (file)
@@ -33,10 +33,6 @@ set lib_sl  [standard_output_file $libname]
 set lib_dlopen [shlib_target_file ${libname}]
 set lib_syms [shlib_symbol_file ${libname}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 set lib_opts debug
 set exec_opts [list debug shlib_load additional_flags=-DSHLIB_NAME=\"${lib_dlopen}\"]
 
index 97dee3a72b258ee11d35366891968a3bd4bf3651..01abff5336af58c33cd47c9fc13b79494736f446 100644 (file)
 
 standard_testfile
 
-if [get_compiler_info] {
-    return -1
-}
-
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
      untested "failed to compile"
      return -1
index d364edeb550acca063e0791bf0999be91ca5853c..767157ee59386f8c7a382697daf10a821bc70a77 100644 (file)
@@ -20,10 +20,6 @@ standard_testfile
 
 set wp_set 1
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
     return -1
 }
index fd6470b28f9f6c6e46579224c87e67e9919c67b4..67b39518b74f2da15797f3642ad735b4212fb298 100644 (file)
@@ -17,7 +17,6 @@ load_lib compile-support.exp
 
 standard_testfile
 
-get_compiler_info
 set options {}
 if [test_compiler_info gcc*] {
     lappend options additional_flags=-g3
index d700d3dd165261a329d40ff76b5653647bdb54df..dbdae5f8bf4b906a80f29e0f818a31b23b367ce9 100644 (file)
@@ -17,7 +17,6 @@ load_lib compile-support.exp
 
 standard_testfile .c compile-shlib.c compile-constvar.S compile-nodebug.c
 
-get_compiler_info
 set options {}
 if { [test_compiler_info gcc*] || [test_compiler_info clang*] } {
     lappend options additional_flags=-g3
index dc7b19aabcd22a3181d5fc2dd3546225ab89052b..4f671c6453ff18763993c1feffb49f9b4ad837b3 100644 (file)
@@ -19,7 +19,6 @@ if {[skip_ifunc_tests]} {
 
 standard_testfile
 
-get_compiler_info
 set flags ""
 if [test_compiler_info gcc*] {
     set flags additional_flags=-Wno-attribute-alias
index f8d6fb123a22dc41aa52ac49baf38bb5e500de18..f2515586c39f29e8adf1cd7b73f73fb9d533337f 100644 (file)
@@ -15,7 +15,6 @@
 
 standard_testfile .c compile-shlib.c compile-constvar.S compile-nodebug.c
 
-get_compiler_info
 set options {}
 if [test_compiler_info gcc*] {
     lappend options additional_flags=-g3
index 63871157ce15f871981d830afc9704908945c5b5..c6bc9a6df9f8900c8da5ed3bf16ff01ef9247261 100644 (file)
@@ -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.
index 49bb162c7a44ffd3a1459ee0108526c5a0d46a2d..1a0f946a48135c809679025b128028fe0e1ee530 100644 (file)
@@ -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
 }
index 5eb3dc83e6999c19641bc8a2b9bd79d271307f61..bf5e660a54d93937cc279042381c46221796185f 100644 (file)
@@ -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
 }
index 77ff6037fb28bcb7e5238f8609325dcad2a84fc6..0f6460bd25505a87fdddacbe0836234e4d67accc 100644 (file)
@@ -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
 }
index 04f665b22511caf78456ed7523f39ccb8a3614b5..32f9dfc18a5dade137c1992c0a3fb798f5502b7c 100644 (file)
@@ -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
 }
index b4ed3cda80e4823f3b040e3d11b320e9517a468a..55c34898daae8658c94aa3340c7484eac7dce1e5 100644 (file)
@@ -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++"
 
index a4da0de43e156fed8d43f4d6cec4a37b0632e330..4824c19e818be45fffdfdbcf8a68c42e2d4a6fc3 100644 (file)
@@ -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
 }
index 1011a1408d93f9490678e723bec9350ec7059fdb..36b7d34c48b266ed62e975077da1988953674778 100644 (file)
@@ -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
index d1a93f7d2e7e229719e5566197015b3c4bc411bc..7d325fe567fced474918289413141f1139e514a7 100644 (file)
@@ -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
index df931ae1b77578b07db140140262f98b80b43410..f82e58893215375d16aecd6fe1c5509c99dc2e1b 100644 (file)
@@ -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
 }
index e558f738aea07bf5fac51e24328a9ff2351e0ea3..ecbf88f4bb9d7b258a9b34f12b94ee87a0647de4 100644 (file)
@@ -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
 }
index 34065b041d26f4dd030727f0650845e5b8c79088..4181ab48119662996a8f919e0b35b954b83c8eb0 100644 (file)
@@ -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"
index c0c9dfd1065ea82a4f75020e487bcc26174ee61d..1babf5e3322e0149a2186f018102ea867a7839c5 100644 (file)
@@ -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] {
index 1eebad8857993135167581c270d172a1d9a02f05..0ca53ef872e0d070329da6e1117eedc7b6ab6c36 100644 (file)
@@ -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]
index 806acbe850d6f7998440b6b69970567cf527d5b2..2b5fc1ebdbf20a8d5680aa5073c2cd10a8e87849 100644 (file)
@@ -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++}
index 5bd3dec64cc34256f2d7de570e471da6803a7b0e..0914058a38dcd28b6878b8ffd68904dbcc90b386 100644 (file)
@@ -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++}
index cc78770d5358840d9489225360fb55022369f89d..140147ff72324cdbfa33c0a5d3b7fd1eb24e2068 100644 (file)
@@ -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
 }
index 7dae01c7ee12f3baafd56383f5bf77e4d856ada8..f86e5fd08678080ec9a389ddc0bd01baf240787c 100644 (file)
@@ -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
 }
index 6b347e259719eff3ab682d5c0a25b85b1a8ef632..979de23a44f9f7f61c4c024bd23ada1b9013d37a 100644 (file)
@@ -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.
index cf22be9caa8bd714c0504a34b0559f88dbd2743e..f5f5d9143d1a4a2a22bf5f00fc84d9791e80ab99 100644 (file)
@@ -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
 }
index 47a2a5dcb7cfd23263ebaf0cf37048a6c97f564f..bf74df4fee86784a22183d8753cbefc2b5a11a8d 100644 (file)
@@ -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
index 6c988e7335e5933accfbea88ecd58bfb90f0b102..5d4c886825efb661625b84fb94d97e4b6ea2f805 100644 (file)
@@ -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
 }
index a01e62284a037fad13018e1b03a586f7e2e4a5d6..110497b893bf495680fb757e9c865eede7528225 100644 (file)
@@ -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
 }
index 615307f1c68fa0129531d6f4b3db399c29dd6d3e..9e7ee51162e7d66f019e6473b751ad86c43786bc 100644 (file)
@@ -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
 }
index a721ecdb0b9637b052fd3dbbba89697026ae5a8e..95a15aa12b7187cd5743202e058b127f93fb395b 100644 (file)
@@ -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]-*}]} {
index 2e6bf84fcc17cec62a25320986cd8e7a663dd88a..b74ef1296ed038ea242c181bcb09ff48ae2f81a5 100644 (file)
@@ -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
 }
index 8f6128070497ddcded6903cac7e190e723ae7b99..f35e38ea48e449f2c3654516fd8de630fd0fc540 100644 (file)
 
 standard_testfile .cc
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
     return -1
 }
index 94cb069ee00eb25ba2e871b00be79e6967299733..c658d36fc25a222a4c5547ad1d0626df5bcfc52e 100644 (file)
 
 standard_testfile .cc
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
     return -1
 }
index 7ae3f514c0e7e0d68c58a936970bef4484cb9e7b..c255a3557f359821bb86c92e2f3078a648079d33 100644 (file)
 
 standard_testfile .cc
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
     return -1
 }
index 87011e4e41ab409c318113dd48fa44434d17b3f3..2835207a21ec9f87c692f51c1d17f2ca72e09534 100644 (file)
 
 standard_testfile .cc
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
     return -1
 }
index f25cdb80ef2deef0875f0da7718f5ab9eaccb628..1bb244f116b24dd19fd3d0bcbf0e0cc0c30e714f 100644 (file)
@@ -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
 }
index b6604575638d9d50ad54f30d6f0eb4ce5ee1eb97..a5e13e3dd0b969764d9d2ecf82b38b17865a4306 100644 (file)
@@ -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
 }
index e13b64269028e634b55cfd77acbf4b9f935a807b..a4d37f30fc04bf762a45481f3acc0f1a0419f865 100644 (file)
@@ -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.
index 0bbc49aaf41ad5b0e3e54406df2c0fa615ff1e45..6a010ed8179d2e521f179e47e20681e01c42079e 100644 (file)
@@ -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
 }
index be597f51a8654f8ec96e4dc523465e2f8c7c203d..2a8a3bc07a2b72777f219c8c950d4ecd4eef0df3 100644 (file)
@@ -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
 }
index 9a40d30704900ca2bfd01a27c6a153a9e6168868..5751b6dc3a5a603c051a5cb65a1f3a925602bac0 100644 (file)
@@ -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
index 9aa8f2dc428a07624367e8741d337d574f62712b..c64ae2f38ed45bd76122403a2851dd8a4e1ecc45 100644 (file)
@@ -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"
index b71f44bddf291b58b1a9bcf55cf86bd9e820b7bc..e69c0cf7611dd9bb37706671110e706124ed22b7 100644 (file)
@@ -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
index 4351cff224b5f8c91305f0eac4c5be0cf0508f4c..e3b834a250afe6a725bea50a3eeaa88af210a679 100644 (file)
@@ -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
index 613aac30129a8113ac46102ccba7bc56c9646290..f0bfb5b476d648e8de386555539f2c5ce1dcbf42 100644 (file)
 
 standard_testfile .cc
 
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
     return -1
 }
index bde467fb66b7dd41aa793899d37c4df456f029e6..0af27dd280e53e6a702cd253c70d7375be863a9e 100644 (file)
@@ -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
 }
index 82abff3f146a2ba04ef6e7e6b81f15215a6ef79b..8b2ad2766bc049b60cacebc831d996cff2138788 100644 (file)
 
 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
 }
index 507068d5a6892d2cdd8c7f696b4ba8fcfe103866..05fd902bb83db6dd1270f5246d973c5cf60a747c 100644 (file)
@@ -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
index a798054d19cee09b5b580b6c38acf377a6681f67..27c9bbc1c7e5342db9dd8475543f8755f86518a1 100644 (file)
@@ -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.
index 8e74c91760ebced7ddf5515199991a12073efd5f..31fe298b10fed6b211c9981b7186e7f250a7873a 100644 (file)
@@ -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
 }
index 0408e6a3cda9b072f0d885690afa0f7b1ad711e0..743a141f73cc77d19b6c3940d8a69c7e829d025e 100644 (file)
@@ -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
 }
index f58c8419aaba0c6ba6998ac2f95f302bbeb31acd..6dc937d59863c35f7c2c1054b10abe205c175680 100644 (file)
@@ -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
 }
index 72ee46869aa601baedecce317e70a1ae1be712e7..a43e36bbe689997e3704a5f20c06fd160253b9a6 100644 (file)
@@ -31,12 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
     return 0
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 # Same thing with struct and union.
 gdb_test "ptype struct A" "type = struct A \{\[\r\n\]+\[ \t\]+struct B \\*foo;\[\r\n\]+\}.*" "ptype structure A"
 gdb_test "ptype struct B" "type = struct B \{\[\r\n\]+\[ \t\]+struct B \\*next;\[\r\n\]+\}.*" "ptype structure B"
index 4ab2186d7528bc8949bd4da3946f9978189589d6..07fd10a884c2e1b59d6fce84f03502d2af2ca107 100644 (file)
@@ -30,12 +30,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
     return 0
 }
 
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
-    return -1
-}
-
 # Same thing with struct and union.
 gdb_test "ptype struct A" "type = struct A \{\[\r\n\]+\[ \t\]+struct B \\*b;\[\r\n\]+\[ \t\]+struct A \\*next;\[\r\n\]+\}.*" "ptype structure A"
 gdb_test "ptype struct B" "type = struct B \{\[\r\n\]+\[ \t\]+struct C \\*c;\[\r\n\]+\[ \t\]+int \\wombat;\[\r\n\]+\}.*" "ptype structure B"
index 7914961e89550fac4e8bce88ea0f783f8a5cf18a..f97455feac9e39649d09dbad1bb810637b3e4566 100644 (file)
@@ -24,7 +24,6 @@ if ![runto_main] {
     return -1
 }
 
-get_compiler_info
 get_debug_format
 if { [skip_inline_frame_tests] } {
     return -1
index a28dc3634cc994ddf28fb8ca2e456e0d36ae3bb2..1745360d80cf1f5357e14ec8eb4a00c50972ef6d 100644 (file)
@@ -21,12 +21,6 @@ standard_testfile library-module-main.f90
 set srclibfile ${testfile}-lib.f90
 set libfile [standard_output_file ${testfile}-lib.so]
 
-# Required for -fPIC by gdb_compile_shlib.
-if { [get_compiler_info f90] } {
-   warning "Could not get compiler info"
-   return -1
-}
-
 if  { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $libfile {debug f90}] != "" } {
     untested "failed to compile shared library"
     return -1
index 996184b64b2dcbbf5a71d74b51d4fad6ca9ad71b..9582fa8ba4daf7cc69b4e4a22e85508b951ab0b1 100644 (file)
@@ -20,10 +20,6 @@ load_lib gdb-guile.exp
 
 standard_testfile
 
-if [get_compiler_info c++] {
-    return -1
-}
-
 # Build inferior to language specification.
 
 proc build_inferior {exefile lang} {
index 92edb3addd60daecce63e77781d4b8fb6663dce0..bd6bacf61087914b290ee1021c37433ed5cbe4d3 100644 (file)
@@ -23,10 +23,6 @@ set MIFLAGS "-i=mi"
 
 standard_testfile .cc
 
-if [get_compiler_info "c++"] {
-    return -1
-}
-
 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
   untested "failed to compile"
   return -1
index ca2f586fae5c2f4f76de13a3497dde0607f6c99f..354168bd9752b16bb0b101e39de2bf912442f279 100644 (file)
@@ -18,12 +18,6 @@ if {[skip_shlib_tests]} {
     return -1
 }
 
-if {[get_compiler_info]} {
-    warning "Could not get compiler info"
-    untested "no compiler info"
-    return -1
-}
-
 standard_testfile mi-catch-load.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
index a293444d9e68ce3ed54736ce116cecbe824c7bed..0e77735f6823721f5b6ad3478b97f88d6cbd75a0 100644 (file)
@@ -31,10 +31,6 @@ set lib_sl1  [standard_output_file $libfile1.sl]
 set lib_opts debug
 set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 
-if {[get_compiler_info]} {
-    return -1
-}
-
 if {[gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""} {
     untested "failed to compile shared library"
     return -1
index f19c2c15c58287647720de0c22f303c1ce16d48d..e8f507f90d5e677d5b5818f37f27322a4398a090 100644 (file)
@@ -25,10 +25,6 @@ if [mi_gdb_start] {
 
 standard_testfile .cc
 
-if [get_compiler_info "c++"] {
-    return -1
-}
-
 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
   untested "failed to compile"
   return -1
index d71d60620fff52dacd67a83dfe09c37d2f30e72e..cfb4a3a99f2759f3545acf53a35184d207393fd3 100644 (file)
@@ -35,10 +35,6 @@ set lib_sl2  [standard_output_file $libfile2.sl]
 set lib_opts debug
 set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
      || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
     untested "failed to compile shared library"
index 88d030dde3aa101b74fd3e3a867f19e78e5870f0..37c203b04e0a3c859351000cd061353647813b6a 100644 (file)
@@ -36,10 +36,6 @@ set lib_flags [list debug]
 set srcfile_main ${srcdir}/${subdir}/$srcfile
 set bin_flags [list debug shlib=${binfile_lib}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
      || [gdb_compile ${srcfile_main} ${binfile} executable $bin_flags] != "" } {
   untested "failed to compile"
index 2258b30100c1e22661142d02fb70b125c4ed9005..cb85b771dc7bb213b5afbdce9fcff1f04e906972 100644 (file)
@@ -25,10 +25,6 @@ if [mi_gdb_start] {
 
 standard_testfile .cc
 
-if [get_compiler_info "c++"] {
-    return -1
-}
-
 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
   untested "failed to compile"
   return -1
index b38f36428401dc8eca8919b627ee8374aa11d827..66ec5c85d21b55b782ea93f36e7286cfd7fe4cfd 100644 (file)
 
 standard_testfile .c -2.c -3.c
 
-# What compiler are we using?
-#
-if [get_compiler_info] {
-    return -1
-}
-
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2 $srcfile3] \
         {debug optimize=-O2 nowarnings}]} {
index faa7686a9b7996f49764e9e6a21f5045854a362a..bfd93a85c08e53570b419d97e870db864734e5e9 100644 (file)
@@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $testfile \
 
 runto_main
 
-get_compiler_info
 get_debug_format
 if { [skip_inline_frame_tests] } {
     untested "skipping inline frame tests"
index 17ad83672d1b767227cc6a7bd02edd9685b4d5d5..1d434bc20f69d3cb47e35825fe4e3284dbf7d10e 100644 (file)
@@ -27,7 +27,6 @@ gdb_test_no_output "set listsize 1"
 
 runto_main
 
-get_compiler_info
 get_debug_format
 if { [skip_inline_frame_tests] } {
     untested "skipping inline frame tests"
index 68c45f0fe31c333fe9f028c4fbfcf01e9d8ab976..498ebb5085a9148c50811710687975c6c567fb29 100644 (file)
@@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile \
 
 runto_main
 
-get_compiler_info
 get_debug_format
 if { [skip_inline_var_tests] } {
     untested inline-bt.exp
index 1f82452155621649c3b70240fe5a2dd279a353fd..0acda6594c593fc4497502cef90dffb04a766d75 100644 (file)
@@ -30,10 +30,6 @@ set srcfile ${srcdir}/${subdir}/${testfile}.c
 set binfile [standard_output_file ${testfile}]
 set bin_flags [list debug shlib=${binfile_lib}]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
      || [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
   untested "failed to compile"
index 2fdd2160a44d97380b0b8e2cac84599322ac1ab9..a9ababbc40c20b60eeb1bda28a67bc95ada95358 100644 (file)
@@ -27,10 +27,6 @@ set lib_opts  debug
 standard_testfile
 set exec_opts [list debug shlib=$lib_sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
index 776549cb7ed477bd66ef66c29e451c888a192471..34e0a2b9855e8588d97d6395fb45e4dcf386e523 100644 (file)
@@ -31,10 +31,6 @@ set lib_opts ""
 standard_testfile
 set exec_opts [list debug shlib=$lib_sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
index 7705a245ee29eb4c3adbaa272d60da6a0d21583a..68a4a9c8472666b7e4c48724aea00e0c719139fe 100644 (file)
@@ -20,10 +20,6 @@ load_lib gdb-python.exp
 
 standard_testfile
 
-if [get_compiler_info c++] {
-    return -1
-}
-
 # Skip all tests if Python scripting is not enabled.
 gdb_exit
 gdb_start
index 5613bc024f6f6b8c45fd8312c4d6c9c4aeea54d2..20f5084c332d3fee2fe2fb891b307ee9c7d4b149 100644 (file)
@@ -20,10 +20,6 @@ load_lib gdb-python.exp
 
 standard_testfile
 
-if [get_compiler_info c++] {
-    return -1
-}
-
 # Build inferior to language specification.
 proc build_inferior {exefile lang} {
   global srcdir subdir srcfile testfile hex
index 096867d40a1eafeb1b098c540f60b60edda69ef4..18179a5b03fb0d13e275b650f0240d18254f8870 100644 (file)
@@ -33,10 +33,6 @@ set lib2file "shr2"
 set lib2src  ${lib2file}.c
 set library2 [standard_output_file ${lib2file}.sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Compile the first without debug info so that
 # stepping and reverse stepping doesn't end up inside them.
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1src} ${library1} ""] != "" } {
index 1ea5679527baf627f5188eefa6053779db5d669a..3bcf2dfcb248c9178d13218fc135bd1c5872f6c7 100644 (file)
@@ -31,10 +31,6 @@ set lib2file "shr2"
 set lib2src  ${lib2file}.c
 set library2 [standard_output_file ${lib2file}.sl]
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Compile the first without debug info so that
 # stepping and reverse stepping doesn't end up inside them.
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1src} ${library1} ""] != "" } {
index db549d1ce1574cb05e3a11585a0831c6d648d411..9c99107af4edb987c3b714d93dd299cb2c67602e 100644 (file)
@@ -31,8 +31,7 @@ standard_testfile solib-list-main.c
 set srclibfile ${testfile}-lib.c
 set binlibfile [standard_output_file ${testfile}.so]
 
-if { [get_compiler_info]
-     || [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" "${binlibfile}" {debug}] != ""
+if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" "${binlibfile}" {debug}] != ""
      || [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "shlib=${binlibfile}"] != "" } {
     untested "failed to compile"
     return -1
index 88c0d9abd48909b811052b8677085f943de5c01d..81aca82c9018a315db656cc894c413c59dd24f5b 100644 (file)
@@ -21,10 +21,6 @@ set testfile weird
 set srcfile [standard_output_file weird.s]
 set binfile [standard_output_file weirdx.o]
 
-if { [ get_compiler_info ] } {
-    return -1
-}
-
 proc do_tests {} {
        global binfile
        global gdb_prompt
index 11bfad4510ebcb80f0d998a98fce127330a8bf04..96878d5e6a0a0532cd6a0b7df168b60cce435199 100644 (file)
@@ -38,10 +38,6 @@ proc corefunc { threadtype executable } {
        set binfile [standard_output_file $executable]
        set escapedbinfile [string_to_regexp ${binfile}]
 
-       if [get_compiler_info] {
-           return -1
-       }
-
        gdb_test "handle SIGALRM stop print pass" "Yes.*Yes.*Yes.*"
 
        set test_spawn_id [spawn_wait_for_attach $binfile]
index 72a907728dbee9f5ef4865378eab48452da25c4e..ef3617cc57d57d5b1f93ab9e3d437982a1280d7e 100644 (file)
@@ -40,10 +40,6 @@ proc corefunc { threadtype } {
     global subdir
     global gdb_prompt
 
-    if [get_compiler_info] {
-       return -1
-    }
-
     set test_spawn_id [spawn_wait_for_attach $binfile]
     set testpid [spawn_id_get_pid $test_spawn_id]
 
index c76d366e7a250e93203ca4efb60ac5d8093e135f..b950107f3d07f780d4b60d66798b576c0cb4ded0 100644 (file)
 
 standard_testfile
 
-if [get_compiler_info] {
-  return -1
-}
-
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
   executable {debug additional_flags=-std=gnu99}] != "" } {
   return -1
index cbb4fa36070c6afa2ce4d548a3eed46189b3e1c3..5e31d0c77f6d3ce9294133e578a1d1a54461542b 100644 (file)
@@ -34,10 +34,6 @@ set lib_sl2 [standard_output_file $libfile2.sl]
 
 set lib_opts debug
 
-if [get_compiler_info] {
-    return -1
-}
-
 # Some targets have leading underscores on assembly symbols.
 set additional_flags [list debug shlib=$lib_sl1 shlib_load [gdb_target_symbol_prefix_flags]]
 
index fd6784eda38907fee4140d2876475e5b2db06943..d015381899bf44de404fb94c16f5f2c197e8d345 100644 (file)
@@ -25,10 +25,6 @@ set libipa [get_in_proc_agent]
 
 set lib_opts debug
 
-if [get_compiler_info] {
-    return -1
-}
-
 set additional_flags [list quiet debug shlib=$libipa shlib_load \
                          "additional_flags=-lust -lurcu-bp" ]