diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2024-11-25 15:15:36 -0300 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2024-11-27 15:49:40 -0300 |
commit | d77a5792b386ec0f02c3b636a91cfc2ce53c2498 (patch) | |
tree | 63a12b2cdab2007f4e13a684c1a6550c74958a8a | |
parent | 8b8a557119f391ee4c3544408d76950e229797dc (diff) | |
download | binutils-d77a5792b386ec0f02c3b636a91cfc2ce53c2498.zip binutils-d77a5792b386ec0f02c3b636a91cfc2ce53c2498.tar.gz binutils-d77a5792b386ec0f02c3b636a91cfc2ce53c2498.tar.bz2 |
gdb/testsuite: skip gdb.threads/omp-par-scope.exp with clang
Since 2020 it has been reported to clang[1] that the debug information
around OpenMP is insufficient. The OpenMP section is not declared
within the correct scope, and instead clang marks as if the section was
a function in the global scope. This causes several failures in the
test gdb.threads/omp-par-scope.exp when using clang to test GDB.
Since this isn't a true failure of GDB, and there is little expectation
that clang will be able to fix this soon, this commit disables the
aforementioned test when clang is being used.
[1] https://github.com/llvm/llvm-project/issues/44236
Approved-by: Kevin Buettner <kevinb@redhat.com>
-rw-r--r-- | gdb/testsuite/gdb.threads/omp-par-scope.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/omp-par-scope.exp b/gdb/testsuite/gdb.threads/omp-par-scope.exp index 38c462c..48f81d3 100644 --- a/gdb/testsuite/gdb.threads/omp-par-scope.exp +++ b/gdb/testsuite/gdb.threads/omp-par-scope.exp @@ -20,6 +20,14 @@ standard_testfile +if { [test_compiler_info "clang*"] } { + # Clang doesn't add OpenMP information in the correct scope, + # so all relevant tests here will fail. See here for more info: + # https://github.com/llvm/llvm-project/issues/44236 + unsupported "Clang doesn't provide required info for the test" + return +} + set have_nested_function_support 0 set opts {openmp debug} if [support_nested_function_tests] { |