c-parser.c (c_parser_omp_clause_schedule): Warn if OMP_CLAUSE_SCHEDULE_CHUNK_EXPR...
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 May 2016 19:12:27 +0000 (21:12 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 May 2016 19:12:27 +0000 (21:12 +0200)
commit7211a0975c25b21baa8e31ebc2946f4d6d136fed
tree7776f4844e8b9eae6129a9d2d8616ce108d89a5b
parentcac177cfad2b48c29870caeb0af51d7cee645fae
c-parser.c (c_parser_omp_clause_schedule): Warn if OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.

* c-parser.c (c_parser_omp_clause_schedule): Warn if
OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.

* semantics.c (finish_omp_clauses) <case OMP_CLAUSE_SCHEDULE>: Warn
if OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.

* openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
be positive.

* c-c++-common/gomp/schedule-1.c: New test.
* gfortran.dg/gomp/schedule-1.f90: New test.

* testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
instead of invalid schedule(static, 0).
* testsuite/libgomp.c/doacross-2.c (main): Likewise.

From-SVN: r236793
12 files changed:
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/schedule-1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/schedule-1.f90 [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/doacross-1.c
libgomp/testsuite/libgomp.c/doacross-2.c