]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/decl.c
Merge from transactional-memory branch.
[thirdparty/gcc.git] / gcc / cp / decl.c
index 1c3377631106e9e5e9006b0c489f7c81d8b99b7a..1c46adf99a1d11652ebdc36eb1170c50614844d6 100644 (file)
@@ -4001,6 +4001,8 @@ push_cp_library_fn (enum tree_code operator_code, tree type)
                                 operator_code,
                                 type);
   pushdecl (fn);
+  if (flag_tm)
+    apply_tm_attr (fn, get_identifier ("transaction_safe"));
   return fn;
 }