[gomp4] 3 minor OpenMP parsing tweaks

Richard Henderson rth@redhat.com
Wed Jul 3 17:51:00 GMT 2013


On 07/03/2013 10:30 AM, Jakub Jelinek wrote:
> 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* omp-low.c (expand_omp_single): Don't force barrier for
> 	copyprivate.
> gcc/c/
> 	* c-parser.c (c_parser_omp_atomic): Disallow seq_cst before
> 	atomic-clause, disallow comma in between atomic-clause and
> 	seq_cst.
> 	(c_parser_omp_sections_scope): If section-sequence doesn't
> 	start with #pragma omp section, require exactly one structured-block
> 	instead of sequence of statements.
> 	* c-typeck.c (c_finish_omp_clauses): Diagnose copyprivate clause
> 	appearing together with nowait clause.
> gcc/cp/
> 	* parser.c (cp_parser_omp_atomic): Disallow seq_cst before
> 	atomic-clause, disallow comma in between atomic-clause and
> 	seq_cst.
> 	(cp_parser_omp_sections_scope): If section-sequence doesn't
> 	start with #pragma omp section, require exactly one structured-block
> 	instead of sequence of statements.
> 	* semantics.c (finish_omp_clauses): Diagnose copyprivate clause
> 	appearing together with nowait clause.
> gcc/testsuite/
> 	* g++.dg/gomp/block-0.C: Adjust for stricter #pragma omp sections
> 	parser.
> 	* g++.dg/gomp/block-3.C: Likewise.
> 	* gcc.dg/gomp/block-3.c: Likewise.
> 	* gcc.dg/gomp/nesting-1.c: Likewise.  Add further #pragma omp sections
> 	nesting tests.
> 	* c-c++-common/gomp/sections1.c: New test.
> 	* c-c++-common/gomp/single1.c: New test.
> 	* c-c++-common/gomp/atomic-16.c: New test.
> libgomp/
> 	* testsuite/libgomp.c++/atomic-14.C: Adjust for stricter atomic
> 	seq_cst parser.
> 	* testsuite/libgomp.c++/atomic-15.C: Likewise.
> 	* testsuite/libgomp.c/atomic-17.c: Likewise.

Ok.


r~



More information about the Gcc-patches mailing list