summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 99061ea2e74..198c6ae9390 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -618,7 +618,8 @@ const struct c_common_resword c_common_reswords[] =
{ "__signed", RID_SIGNED, 0 },
{ "__signed__", RID_SIGNED, 0 },
{ "__thread", RID_THREAD, 0 },
- { "__transaction", RID_TRANSACTION, 0 },
+ { "__transaction_atomic", RID_TRANSACTION_ATOMIC, 0 },
+ { "__transaction_relaxed", RID_TRANSACTION_RELAXED, 0 },
{ "__transaction_cancel", RID_TRANSACTION_CANCEL, 0 },
{ "__typeof", RID_TYPEOF, 0 },
{ "__typeof__", RID_TYPEOF, 0 },
@@ -7222,10 +7223,6 @@ parse_tm_stmt_attr (tree attrs, int allowed)
if (is_attribute_p ("outer", a))
m = TM_STMT_ATTR_OUTER;
- else if (is_attribute_p ("atomic", a))
- m = TM_STMT_ATTR_ATOMIC;
- else if (is_attribute_p ("relaxed", a))
- m = TM_STMT_ATTR_RELAXED;
if ((m & allowed) == 0)
{