r259899 - in /branches/gomp-5_0-branch/gcc: Cha...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Thu May 3 17:04:00 GMT 2018


Author: jakub
Date: Thu May  3 17:04:04 2018
New Revision: 259899

URL: https://gcc.gnu.org/viewcvs?rev=259899&root=gcc&view=rev
Log:
	* tree-core.h (enum omp_clause_defaultmap_kind): New.
	(struct tree_omp_clause): Add subcode.defaultmap_kind.
	* tree.h (OMP_CLAUSE_DEFAULTMAP_KIND, OMP_CLAUSE_DEFAULTMAP_CATEGORY,
	OMP_CLAUSE_DEFAULTMAP_BEHAVIOR, OMP_CLAUSE_DEFAULTMAP_SET_KIND):
	Define.
	* tree-pretty-print.c (dump_omp_clause): Handle new kinds of
	OMP_CLAUSE_DEFAULTMAP.
	* gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALLOC_ONLY
	and GOVD_MAP_FROM_ONLY.
	(enum gimplify_defaultmap_kind): New.
	(struct gimplify_omp_ctx): Remove target_map_scalars_firstprivate and
	target_map_pointers_as_0len_arrays members, add defaultmap.
	(new_omp_context): Initialize defaultmap member.
	(omp_firstprivatize_variable): Test ctx->defaultmap[GDMK_SCALAR]
	instead of ctx->omp_firstprivatize_variable.
	(computable_teams_clause): Likewise.
	(omp_notice_variable): Handle new defaultmap clause kinds.
	(gimplify_scan_omp_clauses): Likewise.
	(gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_ALLOC_ONLY
	and GOVD_MAP_FROM_ONLY.
c/
	* c-parser.c (c_parser_omp_clause_defaultmap): Parse new kinds of
	defaultmap clause.
cp/
	* parser.c (cp_parser_omp_clause_defaultmap): Parse new kinds of
	defaultmap clause.
fortran/
	* trans-openmp.c (gfc_trans_omp_clauses): Use
	OMP_CLAUSE_DEFAULTMAP_SET_KIND.
testsuite/
	* c-c++-common/gomp/defaultmap-1.c: New test.
	* c-c++-common/gomp/defaultmap-2.c: New test.
	* c-c++-common/gomp/defaultmap-3.c: New test.

Added:
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/defaultmap-1.c
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/defaultmap-2.c
    branches/gomp-5_0-branch/gcc/testsuite/c-c++-common/gomp/defaultmap-3.c
Modified:
    branches/gomp-5_0-branch/gcc/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c/c-parser.c
    branches/gomp-5_0-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/cp/parser.c
    branches/gomp-5_0-branch/gcc/fortran/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/fortran/trans-openmp.c
    branches/gomp-5_0-branch/gcc/gimplify.c
    branches/gomp-5_0-branch/gcc/testsuite/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/tree-core.h
    branches/gomp-5_0-branch/gcc/tree-pretty-print.c
    branches/gomp-5_0-branch/gcc/tree.h



More information about the Gcc-cvs mailing list