[Openmp-commits] [openmp] [OpenMP][Archer] Do not check for column numbers in backtraces (PR #70075)

Ilya Leoshkevich via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 24 10:55:03 PDT 2023


https://github.com/iii-i created https://github.com/llvm/llvm-project/pull/70075

TSan can show only line numbers on some platforms, e.g., SystemZ. Skip checking the column numbers; line numbers should be enough to verify that race detection is working.

>From b6f5d52e18ee4c51b90a3e6e314e0795df1b2cb2 Mon Sep 17 00:00:00 2001
From: Ilya Leoshkevich <iii at linux.ibm.com>
Date: Tue, 17 Oct 2023 23:32:56 +0200
Subject: [PATCH] [OpenMP][Archer] Do not check for column numbers in
 backtraces

TSan can show only line numbers on some platforms, e.g., SystemZ.
Skip checking the column numbers; line numbers should be enough to
verify that race detection is working.
---
 openmp/tools/archer/tests/races/taskwait-depend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openmp/tools/archer/tests/races/taskwait-depend.c b/openmp/tools/archer/tests/races/taskwait-depend.c
index d44e61814bd922f..04e2298003a040b 100644
--- a/openmp/tools/archer/tests/races/taskwait-depend.c
+++ b/openmp/tools/archer/tests/races/taskwait-depend.c
@@ -53,7 +53,7 @@ int main() {
 
 // CHECK: WARNING: ThreadSanitizer: data race
 // CHECK-NEXT:   {{(Write|Read)}} of size 4
-// CHECK-NEXT: #0 {{.*}}taskwait-depend.c:42:20
+// CHECK-NEXT: #0 {{.*}}taskwait-depend.c:42
 // CHECK:   Previous write of size 4
-// CHECK-NEXT: #0 {{.*}}taskwait-depend.c:35:6
+// CHECK-NEXT: #0 {{.*}}taskwait-depend.c:35
 // CHECK: ThreadSanitizer: reported {{[0-9]+}} warnings



More information about the Openmp-commits mailing list