]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree.c
Implement N4514, C++ Extensions for Transactional Memory.
[thirdparty/gcc.git] / gcc / tree.c
index 84fd34deb7ac19cf86086daebd1bcedbb9fc360e..af318495f0f1f091d45c06dfef218dfbd98343f8 100644 (file)
@@ -5017,6 +5017,8 @@ comp_type_attributes (const_tree type1, const_tree type2)
       if (!a)
         return 1;
     }
+  if (lookup_attribute ("transaction_safe", CONST_CAST_TREE (a)))
+    return 0;
   /* As some type combinations - like default calling-convention - might
      be compatible, we have to call the target hook to get the final result.  */
   return targetm.comp_type_attributes (type1, type2);