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]

r173032 - in /branches/gomp-3_1-branch: gcc/for...


Author: jakub
Date: Wed Apr 27 14:41:20 2011
New Revision: 173032

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173032
Log:
	* gfortran.h (gfc_statement): Add ST_OMP_END_ATOMIC.
	(gfc_omp_atomic_op): New enum typedef.
	(struct gfc_code): Add ext.omp_atomic.
	* parse.c (decode_omp_directive): Handle !$omp end atomic.
	(parse_omp_atomic): Return gfc_statement instead of void.
	For !$omp atomic capture parse two assignments instead of
	just one and require !$omp end atomic afterwards, for
	other !$omp atomic forms just allow !$omp end atomic at the
	end.
	(parse_omp_structured_block, parse_executable): Adjust
	parse_omp_atomic callers.
	* openmp.c (gfc_match_omp_atomic): Match optional
	read/write/update/capture keywords after !$omp atomic.
	(resolve_omp_atomic): Handle all OpenMP 3.1 atomic forms.
	* trans-openmp.c (gfc_trans_omp_atomic): Likewise.

	* gfortran.dg/gomp/omp_atomic2.f90: New test.

	* testsuite/libgomp.fortran/omp_atomic3.f90: New test.
	* testsuite/libgomp.fortran/omp_atomic4.f90: New test.

Added:
    branches/gomp-3_1-branch/gcc/testsuite/gfortran.dg/gomp/omp_atomic2.f90
    branches/gomp-3_1-branch/libgomp/testsuite/libgomp.fortran/omp_atomic3.f90
    branches/gomp-3_1-branch/libgomp/testsuite/libgomp.fortran/omp_atomic4.f90
Modified:
    branches/gomp-3_1-branch/gcc/fortran/ChangeLog
    branches/gomp-3_1-branch/gcc/fortran/gfortran.h
    branches/gomp-3_1-branch/gcc/fortran/openmp.c
    branches/gomp-3_1-branch/gcc/fortran/parse.c
    branches/gomp-3_1-branch/gcc/fortran/trans-openmp.c
    branches/gomp-3_1-branch/gcc/testsuite/ChangeLog
    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]