summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
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.arch
parentef7a6b977bf5e8499734a3b8df48ce2ca690cf57 (diff)
downloadbinutils-gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.gz
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.arch')
-rw-r--r--gdb/testsuite/gdb.arch/altivec-abi.exp5
-rw-r--r--gdb/testsuite/gdb.arch/altivec-regs.exp5
-rw-r--r--gdb/testsuite/gdb.arch/amd64-byte.exp4
-rw-r--r--gdb/testsuite/gdb.arch/amd64-dword.exp4
-rw-r--r--gdb/testsuite/gdb.arch/amd64-word.exp4
-rw-r--r--gdb/testsuite/gdb.arch/i386-avx.exp4
-rw-r--r--gdb/testsuite/gdb.arch/i386-byte.exp4
-rw-r--r--gdb/testsuite/gdb.arch/i386-sse.exp4
-rw-r--r--gdb/testsuite/gdb.arch/i386-word.exp4
-rw-r--r--gdb/testsuite/gdb.arch/ppc-dfp.exp5
-rw-r--r--gdb/testsuite/gdb.arch/ppc-fp.exp5
-rw-r--r--gdb/testsuite/gdb.arch/s390-multiarch.exp4
-rw-r--r--gdb/testsuite/gdb.arch/vsx-regs.exp5
-rw-r--r--gdb/testsuite/gdb.arch/vsx-vsr-float28.exp5
14 files changed, 0 insertions, 62 deletions
diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp
index b3dffbb70aa..d46882ad7ac 100644
--- a/gdb/testsuite/gdb.arch/altivec-abi.exp
+++ b/gdb/testsuite/gdb.arch/altivec-abi.exp
@@ -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
diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp
index d4c13afa8a1..42521a0a9ab 100644
--- a/gdb/testsuite/gdb.arch/altivec-regs.exp
+++ b/gdb/testsuite/gdb.arch/altivec-regs.exp
@@ -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*] {
diff --git a/gdb/testsuite/gdb.arch/amd64-byte.exp b/gdb/testsuite/gdb.arch/amd64-byte.exp
index 549b4e00435..085963230cc 100644
--- a/gdb/testsuite/gdb.arch/amd64-byte.exp
+++ b/gdb/testsuite/gdb.arch/amd64-byte.exp
@@ -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
diff --git a/gdb/testsuite/gdb.arch/amd64-dword.exp b/gdb/testsuite/gdb.arch/amd64-dword.exp
index 242c16e1b15..0c297529dc0 100644
--- a/gdb/testsuite/gdb.arch/amd64-dword.exp
+++ b/gdb/testsuite/gdb.arch/amd64-dword.exp
@@ -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
diff --git a/gdb/testsuite/gdb.arch/amd64-word.exp b/gdb/testsuite/gdb.arch/amd64-word.exp
index 37784cfee12..c518dc96c86 100644
--- a/gdb/testsuite/gdb.arch/amd64-word.exp
+++ b/gdb/testsuite/gdb.arch/amd64-word.exp
@@ -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
diff --git a/gdb/testsuite/gdb.arch/i386-avx.exp b/gdb/testsuite/gdb.arch/i386-avx.exp
index c86bf05ad5a..950b411809e 100644
--- a/gdb/testsuite/gdb.arch/i386-avx.exp
+++ b/gdb/testsuite/gdb.arch/i386-avx.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.arch/i386-byte.exp b/gdb/testsuite/gdb.arch/i386-byte.exp
index 30bb561a330..f29d54ec1bc 100644
--- a/gdb/testsuite/gdb.arch/i386-byte.exp
+++ b/gdb/testsuite/gdb.arch/i386-byte.exp
@@ -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
diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp
index e94121882c6..6565f15aa76 100644
--- a/gdb/testsuite/gdb.arch/i386-sse.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.arch/i386-word.exp b/gdb/testsuite/gdb.arch/i386-word.exp
index 3c3626cf0af..5ad01eb20f1 100644
--- a/gdb/testsuite/gdb.arch/i386-word.exp
+++ b/gdb/testsuite/gdb.arch/i386-word.exp
@@ -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
diff --git a/gdb/testsuite/gdb.arch/ppc-dfp.exp b/gdb/testsuite/gdb.arch/ppc-dfp.exp
index 45194dc79d8..ecaf2499a0f 100644
--- a/gdb/testsuite/gdb.arch/ppc-dfp.exp
+++ b/gdb/testsuite/gdb.arch/ppc-dfp.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.arch/ppc-fp.exp b/gdb/testsuite/gdb.arch/ppc-fp.exp
index a95427323a4..bf1a1c59082 100644
--- a/gdb/testsuite/gdb.arch/ppc-fp.exp
+++ b/gdb/testsuite/gdb.arch/ppc-fp.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.arch/s390-multiarch.exp b/gdb/testsuite/gdb.arch/s390-multiarch.exp
index ee7f2287e19..f0e85544bd5 100644
--- a/gdb/testsuite/gdb.arch/s390-multiarch.exp
+++ b/gdb/testsuite/gdb.arch/s390-multiarch.exp
@@ -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}
diff --git a/gdb/testsuite/gdb.arch/vsx-regs.exp b/gdb/testsuite/gdb.arch/vsx-regs.exp
index 56fea796a9b..c288b2f7d6f 100644
--- a/gdb/testsuite/gdb.arch/vsx-regs.exp
+++ b/gdb/testsuite/gdb.arch/vsx-regs.exp
@@ -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*] {
diff --git a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
index 7e94d05753f..b5b2d584403 100644
--- a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
+++ b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
@@ -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*] {