r180221 - in /branches/transactional-memory/gcc...

torvald@gcc.gnu.org torvald@gcc.gnu.org
Wed Oct 19 22:15:00 GMT 2011


Author: torvald
Date: Wed Oct 19 22:15:56 2011
New Revision: 180221

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180221
Log:
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.

Modified:
    branches/transactional-memory/gcc/ChangeLog.tm
    branches/transactional-memory/gcc/c-common.c
    branches/transactional-memory/gcc/c-common.h
    branches/transactional-memory/gcc/c-family/c-common.c
    branches/transactional-memory/gcc/c-family/c-common.h
    branches/transactional-memory/gcc/c-parser.c
    branches/transactional-memory/gcc/cp/cp-tree.h
    branches/transactional-memory/gcc/cp/parser.c
    branches/transactional-memory/gcc/cp/parser.h
    branches/transactional-memory/gcc/cp/pt.c
    branches/transactional-memory/gcc/cp/semantics.c
    branches/transactional-memory/gcc/gimple-pretty-print.c
    branches/transactional-memory/gcc/gimple.def
    branches/transactional-memory/gcc/gimple.h
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/20100127.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/abort-2.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/abort-3.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/atomic-1.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/atomic-2.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/inline-asm.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/ipa-1.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/malloc.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/omp.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/outer-1.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/safe-2.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/safe-3.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/trxn-expr.c
    branches/transactional-memory/gcc/testsuite/c-c++-common/tm/wrap-1.c
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/20100429.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/fatomic-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/nested-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/nested-2.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/nested-3.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/opt-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr45940-2.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr45940-3.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr45940-4.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr45940.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr46270.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr46300.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr46567.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr46653.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr47530.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/pr47554.C
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/20091013.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/20091221.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/20100125.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/20100609.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/20100615.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/20110216.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/alias-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/data-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/data-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/debug-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/indirect-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/ipa-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/ipa-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/irrevocable-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/irrevocable-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/irrevocable-3.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/irrevocable-4.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/irrevocable-5.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/irrevocable-6.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-10.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-11.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-12.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-13.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-15.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-3.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-4.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-5.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-6.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-7.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-8.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memopt-9.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memset-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/memset.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/nested-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/nested-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/opt-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/opt-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/pr45985.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/pr46654.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/pr47690.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/pr47905.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/props-1.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/props-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/props-3.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/unsafe.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/wrap-3.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/wrap-4.c
    branches/transactional-memory/gcc/tree-pretty-print.c



More information about the Gcc-cvs mailing list