From e3e83b180a4aec9eaac15a23071f46c872b55c5a Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 11 Sep 2024 14:01:38 +0200 Subject: [PATCH] [ASan][test] XFAIL global-overflow.cpp etc. on SPARC When enabling ASan testing on SPARC as per PR #107405, two tests `FAIL` in similar ways as detailed in Issue #108194: at `-O1` and above, one line of the stacktrace lacks the line number info, causing the tests to `FAIL`. I could trace this to `clang` generating incomplete line number info; `g++` gets this right. To avoid this, this patch `XFAIL`s the affected tests on SPARC. Tested on `sparcv9-sun-solaris2.11`. --- compiler-rt/test/asan/TestCases/global-overflow.cpp | 3 +++ compiler-rt/test/asan/TestCases/large_func_test.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/global-overflow.cpp b/compiler-rt/test/asan/TestCases/global-overflow.cpp index df44d67658572..ed276ca44aa26 100644 --- a/compiler-rt/test/asan/TestCases/global-overflow.cpp +++ b/compiler-rt/test/asan/TestCases/global-overflow.cpp @@ -3,6 +3,9 @@ // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s // RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s +// Issue #108194: Incomplete .debug_line at -O1 and above. +// XFAIL: target={{.*sparc.*}} + #include int main(int argc, char **argv) { static char XXX[10]; diff --git a/compiler-rt/test/asan/TestCases/large_func_test.cpp b/compiler-rt/test/asan/TestCases/large_func_test.cpp index 37fec8bef6ce8..c64fc7d3c7aa7 100644 --- a/compiler-rt/test/asan/TestCases/large_func_test.cpp +++ b/compiler-rt/test/asan/TestCases/large_func_test.cpp @@ -4,6 +4,9 @@ // RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK // REQUIRES: stable-runtime +// Issue #108194: Incomplete .debug_line at -O1 and above. +// XFAIL: target={{.*sparc.*}} + #include __attribute__((noinline)) static void LargeFunction(int *x, int zero) {