diff options
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index 4ef35b861f8..ed76a8dab6f 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -1182,6 +1182,9 @@ comp_type_attributes (const_tree type1, const_tree type2) } if (lookup_attribute ("transaction_safe", CONST_CAST_TREE (a))) return 0; + if ((lookup_attribute ("nocf_check", TYPE_ATTRIBUTES (type1)) != NULL) + ^ (lookup_attribute ("nocf_check", TYPE_ATTRIBUTES (type2)) != NULL)) + 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); |