-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathktsan.gcc.patch
More file actions
29 lines (26 loc) · 897 Bytes
/
ktsan.gcc.patch
File metadata and controls
29 lines (26 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Index: gcc/tsan.c
===================================================================
--- gcc/tsan.c (revision 218318)
+++ gcc/tsan.c (working copy)
@@ -606,6 +606,10 @@
bool instrumented = false;
stmt = gsi_stmt (*gsi);
+
+ if (gimple_has_volatile_ops (stmt))
+ return false;
+
if (is_gimple_call (stmt)
&& (gimple_call_fndecl (stmt)
!= builtin_decl_implicit (BUILT_IN_TSAN_INIT)))
@@ -724,11 +728,11 @@
tree ctor_statements = NULL_TREE;
initialize_sanitizer_builtins ();
- tree init_decl = builtin_decl_implicit (BUILT_IN_TSAN_INIT);
+ /*tree init_decl = builtin_decl_implicit (BUILT_IN_TSAN_INIT);
append_to_statement_list (build_call_expr (init_decl, 0),
&ctor_statements);
cgraph_build_static_cdtor ('I', ctor_statements,
- MAX_RESERVED_INIT_PRIORITY - 1);
+ MAX_RESERVED_INIT_PRIORITY - 1);*/
}
/* The pass descriptor. */