Skip to content

Commit

Permalink
[ASan][test] XFAIL global-overflow.cpp etc. on SPARC
Browse files Browse the repository at this point in the history
When enabling ASan testing on SPARC as per PR llvm#107405, two tests `FAIL` in
similar ways as detailed in Issue llvm#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`.
  • Loading branch information
rorth committed Sep 11, 2024
1 parent b35bb7b commit e3e83b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler-rt/test/asan/TestCases/global-overflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <string.h>
int main(int argc, char **argv) {
static char XXX[10];
Expand Down
3 changes: 3 additions & 0 deletions compiler-rt/test/asan/TestCases/large_func_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdlib.h>
__attribute__((noinline))
static void LargeFunction(int *x, int zero) {
Expand Down

0 comments on commit e3e83b1

Please sign in to comment.