diff options
author | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-19 22:15:56 +0000 |
---|---|---|
committer | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-19 22:15:56 +0000 |
commit | dd549fa9bfd44e1e0385eaba338db8418361e01b (patch) | |
tree | 52777df4b7533d37c9d0b493bb890c57075c9342 /gcc/gimple-pretty-print.c | |
parent | 02635c61a31382db4455ea6ad16c5a28049023f4 (diff) | |
download | gcc-dd549fa9bfd44e1e0385eaba338db8418361e01b.tar.gz |
Rename/split __transaction into __transaction_atomic and __transaction_relaxed.
* c-common.h (RID_TRANSACTION): Split into RID_TRANSACTION_ATOMIC
and RID_TRANSACTION_RELAXED.
* c-common.c (RID_TRANSACTION): Same.
( parse_tm_stmt_attr): Do not accept "atomic" and "relaxed"
attributes anymore.
* c-family/common.h: Same.
* c-family/common.c: Same.
* c-parser.c (c_parser_transaction_expression, c_parser_transaction,
c_parser_statement_after_labels, c_parser_unary_expression):
Handle both RID_TRANSACTION_ATOMIC and RID_TRANSACTION_RELAXED.
(c_parser_attribute_any_word): Only RID_TRANSACTION_ATOMIC accepts
attributes.
(c_parser_transaction_cancel): Update error messages.
* tree-pretty-print.c: Adjust to new syntax.
* gimple-pretty-print.c: Same.
* cp/parser.c (cp_parser_transaction, cp_parser_function_transaction,
cp_parser_transaction_expression, cp_parser_unary_expression,
cp_parser_statement, cp_parser_function_definition_after_declarator,
cp_parser_token_starts_function_definition_p):
Handle both RID_TRANSACTION_ATOMIC and RID_TRANSACTION_RELAXED.
(RT_TRANSACTION): Split into RT_TRANSACTION_ATOMIC and
RT_TRANSACTION_RELAXED.
(cp_parser_required_error): Same.
(cp_parser_transaction_cancel): Update error messages.
* cp/parser.h (cp_parser): Update comment.
* gimple.h: Same.
* gimple.def: Same.
* cp/semantics.c (begin_transaction_stmt): Add flags parameter.
* cp/cp-tree.h: Same.
* cp/pt.c (tsubst_expr): Same.
* testsuite/c-c++-common/tm/*: Adjust for new syntax.
* testsuite/g++.dg/tm/*: Same.
* testsuite/gcc.dg/tm/*: Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/transactional-memory@180221 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r-- | gcc/gimple-pretty-print.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index 988dcdb1d53..e25178a3e6d 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -1353,11 +1353,12 @@ dump_gimple_transaction (pretty_printer *buffer, gimple gs, int spc, int flags) } else { - pp_string (buffer, "__transaction"); if (subcode & GTMA_IS_OUTER) - pp_string (buffer, " [[outer]]"); + pp_string (buffer, "__transaction_atomic [[outer]]"); else if (subcode & GTMA_IS_RELAXED) - pp_string (buffer, " [[relaxed]]"); + pp_string (buffer, "__transaction_relaxed"); + else + pp_string (buffer, "__transaction_atomic"); subcode &= ~GTMA_DECLARATION_MASK; if (subcode || gimple_transaction_label (gs)) |