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]

r172823 - in /branches/gomp-3_1-branch: gcc/Cha...


Author: jakub
Date: Thu Apr 21 12:59:56 2011
New Revision: 172823

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172823
Log:
	* c-parser.c (c_parser_omp_atomic): Handle parsing
	OpenMP 3.1 atomics.  Adjust c_finish_omp_atomic caller.
	* tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
	OMP_ATOMIC_CAPTURE_NEW): New.
	* gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
	(gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
	New inlines.
	* gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
	OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
	* omp-low.c (expand_omp_atomic_load, expand_omp_atomic_store): New
	functions.
	(expand_omp_atomic_fetch_op): Handle cases where old or new
	value is needed afterwards.
	(expand_omp_atomic): Call expand_omp_atomic_load resp.
	expand_omp_atomic_store.
	* tree-pretty-print.c (dump_generic_node): Handle
	OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.

	* c-common.h (c_finish_omp_atomic): Adjust prototype.
	* c-omp.c (c_finish_omp_atomic): Add OPCODE, V and LHS1 arguments.
	Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
	OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.

	* semantics.c (finish_omp_atomic): Adjust c_finish_omp_atomic
	caller.

	* testsuite/libgomp.c/atomic-11.c: New test.
	* testsuite/libgomp.c/atomic-12.c: New test.

Added:
    branches/gomp-3_1-branch/libgomp/testsuite/libgomp.c/atomic-11.c
    branches/gomp-3_1-branch/libgomp/testsuite/libgomp.c/atomic-12.c
Modified:
    branches/gomp-3_1-branch/gcc/ChangeLog
    branches/gomp-3_1-branch/gcc/c-family/ChangeLog
    branches/gomp-3_1-branch/gcc/c-family/c-common.h
    branches/gomp-3_1-branch/gcc/c-family/c-omp.c
    branches/gomp-3_1-branch/gcc/c-parser.c
    branches/gomp-3_1-branch/gcc/cp/ChangeLog
    branches/gomp-3_1-branch/gcc/cp/semantics.c
    branches/gomp-3_1-branch/gcc/gimple.h
    branches/gomp-3_1-branch/gcc/gimplify.c
    branches/gomp-3_1-branch/gcc/omp-low.c
    branches/gomp-3_1-branch/gcc/tree-pretty-print.c
    branches/gomp-3_1-branch/gcc/tree.def
    branches/gomp-3_1-branch/libgomp/ChangeLog


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