This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Author: torvald
Date: Mon Nov  7 21:03:40 2011
New Revision: 181115

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181115
Log:
Fix instantiation of transaction expressions.

	* cp/pt.c (tsubst_expr) [TRANSACTION_EXPR]: If body is not a
	statement, create an expression instead.
	* cp/cp-tree.h (TRANSACTION_EXPR_IS_STMT, build_transaction_expr): New.
	* cp/parser.c (cp_parser_transaction_expression): Use
	build_transaction_expr.
	* cp/semantics.c (build_transaction_expr): New.
	(finish_transaction_stmt): Set TRANSACTION_EXPR_IS_STMT.
	* testsuite/g++.dg/tm/template-1.C: New.

Added:
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/template-1.C
Modified:
    branches/transactional-memory/gcc/cp/ChangeLog.tm-merge
    branches/transactional-memory/gcc/cp/cp-tree.h
    branches/transactional-memory/gcc/cp/parser.c
    branches/transactional-memory/gcc/cp/pt.c
    branches/transactional-memory/gcc/cp/semantics.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]