[compiler-rt] 3c83aee - [test][tsan] Attempt to fix darwing after D147337
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 12:24:24 PDT 2023
Author: Vitaly Buka
Date: 2023-04-12T12:24:13-07:00
New Revision: 3c83aeee6b7d5e9ac5de1e29605ee57c2b800ca1
URL: https://github.com/llvm/llvm-project/commit/3c83aeee6b7d5e9ac5de1e29605ee57c2b800ca1
DIFF: https://github.com/llvm/llvm-project/commit/3c83aeee6b7d5e9ac5de1e29605ee57c2b800ca1.diff
LOG: [test][tsan] Attempt to fix darwing after D147337
Added:
Modified:
compiler-rt/test/tsan/Darwin/debug_external.cpp
compiler-rt/test/tsan/debugging.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/tsan/Darwin/debug_external.cpp b/compiler-rt/test/tsan/Darwin/debug_external.cpp
index 6539a18f576e4..59efb781dc561 100644
--- a/compiler-rt/test/tsan/Darwin/debug_external.cpp
+++ b/compiler-rt/test/tsan/Darwin/debug_external.cpp
@@ -8,17 +8,6 @@
#include "../test.h"
-extern "C" {
-void __tsan_on_report(void *report);
-int __tsan_get_report_loc(void *report, unsigned long idx, const char **type,
- void **addr, void **start,
- unsigned long *size, int *tid, int *fd,
- int *suppressable, void **trace,
- unsigned long trace_size);
-int __tsan_get_report_loc_object_type(void *report, unsigned long idx,
- const char **object_type);
-}
-
void *Thread(void *arg) {
barrier_wait(&barrier);
*((long *)arg) = 42;
diff --git a/compiler-rt/test/tsan/debugging.cpp b/compiler-rt/test/tsan/debugging.cpp
index 9d247a25c8206..7b1e821629777 100644
--- a/compiler-rt/test/tsan/debugging.cpp
+++ b/compiler-rt/test/tsan/debugging.cpp
@@ -9,23 +9,6 @@
#include "test.h"
-extern "C" {
-void __tsan_on_report(void *report);
-void *__tsan_get_current_report();
-int __tsan_get_report_data(void *report, const char **description, int *count,
- int *stack_count, int *mop_count, int *loc_count,
- int *mutex_count, int *thread_count,
- int *unique_tid_count, void **sleep_trace,
- unsigned long trace_size);
-int __tsan_get_report_mop(void *report, unsigned long idx, int *tid,
- void **addr, int *size, int *write, int *atomic,
- void **trace, unsigned long trace_size);
-int __tsan_get_report_thread(void *report, unsigned long idx, int *tid,
- uint64_t *os_id, int *running,
- const char **name, int *parent_tid, void **trace,
- unsigned long trace_size);
-}
-
long my_global;
void *Thread(void *a) {
More information about the llvm-commits
mailing list