r196815 - in /branches/gomp-4_0-branch: gcc/c-f...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Wed Mar 20 09:40:00 GMT 2013


Author: jakub
Date: Wed Mar 20 09:40:48 2013
New Revision: 196815

URL: http://gcc.gnu.org/viewcvs?rev=196815&root=gcc&view=rev
Log:
	* c-parser.c (c_parser_omp_atomic): Adjust comment.
	Add another argument to c_finish_omp_atomic.

	* parser.c (cp_parser_binary_expression): Handle no_toplevel_fold_p
	even for binary operations other than comparison.
	(cp_parser_omp_atomic): Handle parsing OpenMP 4.0 atomics.
	* pt.c (tsubst_expr) <case OMP_ATOMIC>: Handle atomic exchange.
	* semantics.c (finish_omp_atomic): Use cp_tree_equal to diagnose
	expression mismatches and to find out if c_finish_omp_atomic
	should be called with swapped set to true or false.

	* c-omp.c (c_finish_omp_atomic): Add swapped argument, if true,
	build the operation first with rhs, lhs arguments and use NOP_EXPR
	build_modify_expr.
	* c-common.h (c_finish_omp_atomic): Adjust prototype.

	* c-c++-common/gomp/atomic-15.c: Remove error test that is now
	valid in OpenMP 4.0.

	* testsuite/libgomp.c++/atomic-10.C: New test.
	* testsuite/libgomp.c++/atomic-11.C: New test.
	* testsuite/libgomp.c++/atomic-12.C: New test.
	* testsuite/libgomp.c++/atomic-13.C: New test.

Added:
    branches/gomp-4_0-branch/gcc/c-family/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/c/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c++/atomic-10.C
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c++/atomic-11.C
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c++/atomic-12.C
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c++/atomic-13.C
Modified:
    branches/gomp-4_0-branch/gcc/c-family/c-common.h
    branches/gomp-4_0-branch/gcc/c-family/c-omp.c
    branches/gomp-4_0-branch/gcc/c/c-parser.c
    branches/gomp-4_0-branch/gcc/cp/parser.c
    branches/gomp-4_0-branch/gcc/cp/pt.c
    branches/gomp-4_0-branch/gcc/cp/semantics.c
    branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/gomp/atomic-15.c



More information about the Gcc-cvs mailing list