]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/tsan.c
tsan: Don't instrument non-generic AS accesses [PR111736]
[gcc.git] / gcc / tsan.c
index 7db157e21e5a08881f14da778a688d9e90cb4624..e426f647cb0e9be0c49f8a856ba1ef6c0c877f54 100644 (file)
@@ -139,6 +139,9 @@ instrument_expr (gimple_stmt_iterator gsi, tree expr, bool is_write)
   if (TREE_READONLY (base) || (VAR_P (base) && DECL_HARD_REGISTER (base)))
     return false;
 
+  if (!ADDR_SPACE_GENERIC_P (TYPE_ADDR_SPACE (TREE_TYPE (base))))
+    return false;
+
   stmt = gsi_stmt (gsi);
   loc = gimple_location (stmt);
   rhs = is_vptr_store (stmt, expr, is_write);
This page took 0.026075 seconds and 5 git commands to generate.