diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-06-09 16:45:48 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-06-24 15:07:29 +0100 |
commit | 9704b8b4bc58f4f464961cca97d362fd33740ce8 (patch) | |
tree | c5ecc9e90a9e915a69bf5b209d13979fc6e349db /gdb/testsuite/gdb.arch | |
parent | ef7a6b977bf5e8499734a3b8df48ce2ca690cf57 (diff) | |
download | gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.zip gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.gz 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.arch')
-rw-r--r-- | gdb/testsuite/gdb.arch/altivec-abi.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/altivec-regs.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-byte.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-dword.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-word.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-avx.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-byte.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-sse.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-word.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/ppc-dfp.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/ppc-fp.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/s390-multiarch.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/vsx-regs.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/vsx-vsr-float28.exp | 5 |
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 b3dffbb..d46882a 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 d4c13af..42521a0 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 549b4e0..0859632 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 242c16e..0c29752 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 37784cf..c518dc9 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 c86bf05..950b411 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 30bb561..f29d54e 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 e941218..6565f15 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 3c3626c..5ad01eb 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 45194dc..ecaf249 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 a954273..bf1a1c5 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 ee7f228..f0e8554 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 56fea79..c288b2f 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 7e94d05..b5b2d58 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*] { |