r225817 - in /branches/gomp-4_1-branch/gcc: Cha...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Wed Jul 15 11:18:00 GMT 2015


Author: jakub
Date: Wed Jul 15 11:18:34 2015
New Revision: 225817

URL: https://gcc.gnu.org/viewcvs?rev=225817&root=gcc&view=rev
Log:
	* tree-core.h (struct tree_omp_clause): Add subcode.if_modifier
	field.
	* tree.h (OMP_CLAUSE_IF_MODIFIER): Define.
	* gimplify.c (gimplify_scan_omp_clauses): Add CODE argument.
	For OMP_CLAUSE_IF complain if OMP_CLAUSE_IF_MODIFIER is present
	and does not match code.  Handle OMP_CLAUSE_GANG separately.
	(gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
	gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
	gimplify_expr): Adjust gimplify_scan_omp_clauses callers.
	* tree-pretty-print.c (dump_omp_clause): Print OMP_CLAUSE_IF_MODIFIER.
c-family/
	* c-omp.c (c_omp_split_clauses): Use OMP_CLAUSE_IF_MODIFIER to
	decide where to put OMP_CLAUSE_IF, without modifier duplicate to
	both target and parallel if combined.
c/
	* c-parser.c (c_parser_omp_clause_if): Add IS_OMP argument.  Parse
	and diagnose directive-name-modifier.
	(c_parser_oacc_all_clauses, c_parser_omp_all_clauses): Adjust
	callers.
cp/
	* parser.c (cp_parser_omp_clause_if): Add IS_OMP argument.  Parse
	and diagnose directive-name-modifier.
	(cp_parser_oacc_all_clauses, cp_parser_omp_all_clauses): Adjust
	callers.
fortran/
	* trans-openmp.c (gfc_trans_omp_clauses): Set OMP_CLAUSE_IF_MODIFIER
	to ERROR_MARK.
testsuite/
	* c-c++-common/gomp/if-1.c: New test.
	* c-c++-common/gomp/if-2.c: New test.

Added:
    branches/gomp-4_1-branch/gcc/testsuite/c-c++-common/gomp/if-1.c
    branches/gomp-4_1-branch/gcc/testsuite/c-c++-common/gomp/if-2.c
Modified:
    branches/gomp-4_1-branch/gcc/ChangeLog.gomp
    branches/gomp-4_1-branch/gcc/c-family/ChangeLog.gomp
    branches/gomp-4_1-branch/gcc/c-family/c-omp.c
    branches/gomp-4_1-branch/gcc/c/ChangeLog.gomp
    branches/gomp-4_1-branch/gcc/c/c-parser.c
    branches/gomp-4_1-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-4_1-branch/gcc/cp/parser.c
    branches/gomp-4_1-branch/gcc/fortran/ChangeLog.gomp
    branches/gomp-4_1-branch/gcc/fortran/trans-openmp.c
    branches/gomp-4_1-branch/gcc/gimplify.c
    branches/gomp-4_1-branch/gcc/testsuite/ChangeLog.gomp
    branches/gomp-4_1-branch/gcc/tree-core.h
    branches/gomp-4_1-branch/gcc/tree-pretty-print.c
    branches/gomp-4_1-branch/gcc/tree.h



More information about the Gcc-cvs mailing list