aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-11 15:21:56 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-18 11:21:36 +0000
commit6911239bbaa7b4365d3d0ff7b6cb296cfe43480c (patch)
treefa725903db20973fc68d429315318f2052d6c83f
parentc963bda81e255dbac7c1acd31121d282a4910308 (diff)
downloadgdb-6911239bbaa7b4365d3d0ff7b6cb296cfe43480c.zip
gdb-6911239bbaa7b4365d3d0ff7b6cb296cfe43480c.tar.gz
gdb-6911239bbaa7b4365d3d0ff7b6cb296cfe43480c.tar.bz2
gdb/testsuite: don't avoid DWARF assembler tests with Clang
Two tests make the claim that the DWARF assembler requires gcc, however, this isn't true. I think at one point, when the DWARF assembler was first added, we did use some techniques that were not portable (see the comments in lib/dwarf.exp on function_range for details), however, I think most DWARF assembler tests will now work fine with Clang. The two tests that I modify in this commit both work fine with Clang, at least, I've tested with Clang 9.0.1 and 15.0.2, and don't see any problems, so I'm removing the early return logic that stops these tests from running with Clang. Reviewed-By: Lancelot SIX <lancelot.six@amd.com>
-rw-r--r--gdb/testsuite/gdb.base/until-trailing-insns.exp6
-rw-r--r--gdb/testsuite/gdb.cp/incomplete-type-overload.exp5
2 files changed, 0 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/until-trailing-insns.exp b/gdb/testsuite/gdb.base/until-trailing-insns.exp
index 6396b66..56f6cf0 100644
--- a/gdb/testsuite/gdb.base/until-trailing-insns.exp
+++ b/gdb/testsuite/gdb.base/until-trailing-insns.exp
@@ -84,12 +84,6 @@ if {![dwarf2_support]} {
return 0
}
-# The DWARF assembler requires the gcc compiler.
-if {![is_c_compiler_gcc]} {
- unsupported "gcc is required for this test"
- return 0
-}
-
standard_testfile .c .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
diff --git a/gdb/testsuite/gdb.cp/incomplete-type-overload.exp b/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
index 96ed25d..024014d 100644
--- a/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
+++ b/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
@@ -31,11 +31,6 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] {
return
}
-if {[test_compiler_info clang-*-*]} {
- untested "gcc is required for dwarf assembler tests"
- return
-}
-
if ![runto_main] {
return
}