This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r229369 - in /branches/gomp-4_5-branch: gcc/Cha...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 26 Oct 2015 14:42:14 -0000
- Subject: r229369 - in /branches/gomp-4_5-branch: gcc/Cha...
Author: jakub
Date: Mon Oct 26 14:42:14 2015
New Revision: 229369
URL: https://gcc.gnu.org/viewcvs?rev=229369&root=gcc&view=rev
Log:
gcc/
* gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
(gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
(find_omp_teams, computable_teams_clause, optimize_target_teams): New
functions.
(gimplify_omp_workshare): Call optimize_target_teams.
* omp-low.c (expand_omp_target): Pass num_teams and thread_limit
arguments to BUILT_IN_GOMP_TARGET.
* omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
to GOMP_target_ext. Add num_teams and thread_limit arguments.
(BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
to GOMP_target_data_ext.
(BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
to GOMP_target_update_ext.
* builtin-types.def
(BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
(BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
gcc/c/
* c-parser.c: Include gimple-expr.h.
(c_parser_omp_target): Evaluate num_teams and thread_limit
expressions on combined target teams before the target.
gcc/cp/
* parser.c (cp_parser_omp_target): Evaluate num_teams and
thread_limit expressions on combined target teams before the
target.
* pt.c (tsubst_find_omp_teams): New function.
(tsubst_expr): Evaluate num_teams and thread_limit expressions on
combined target teams before the target.
gcc/fortran/
* types.def (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
(BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
gcc/testsuite/
* c-c++-common/gomp/target-teams-1.c: New test.
* g++.dg/gomp/target-teams-1.C: New test.
include/
* gomp-constants.h (GOMP_TARGET_FLAG_NOWAIT): Adjust comment.
libgomp/
* target.c (GOMP_target_41): Renamed to ...
(GOMP_target_ext): ... this. Add num_teams and thread_limit
arguments.
(GOMP_target_data_41): Renamed to ...
(GOMP_target_data_ext): ... this.
(GOMP_target_update_41): Renamed to ...
(GOMP_target_update_ext): ... this.
* libgomp.map (GOMP_4.5): Export GOMP_target_ext,
GOMP_target_data_ext and GOMP_target_update_ext instead of
GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
* libgomp_g.h (GOMP_target_41): Renamed to ...
(GOMP_target_ext): ... this. Add num_teams and thread_limit
arguments.
(GOMP_target_data_41): Renamed to ...
(GOMP_target_data_ext): ... this.
(GOMP_target_update_41): Renamed to ...
(GOMP_target_update_ext): ... this.
* testsuite/libgomp.c/target-teams-1.c: New test.
Added:
branches/gomp-4_5-branch/gcc/testsuite/c-c++-common/gomp/target-teams-1.c
branches/gomp-4_5-branch/gcc/testsuite/g++.dg/gomp/target-teams-1.C
branches/gomp-4_5-branch/libgomp/testsuite/libgomp.c/target-teams-1.c
Modified:
branches/gomp-4_5-branch/gcc/ChangeLog.gomp
branches/gomp-4_5-branch/gcc/builtin-types.def
branches/gomp-4_5-branch/gcc/c/ChangeLog.gomp
branches/gomp-4_5-branch/gcc/c/c-parser.c
branches/gomp-4_5-branch/gcc/cp/ChangeLog.gomp
branches/gomp-4_5-branch/gcc/cp/parser.c
branches/gomp-4_5-branch/gcc/cp/pt.c
branches/gomp-4_5-branch/gcc/fortran/types.def
branches/gomp-4_5-branch/gcc/gimplify.c
branches/gomp-4_5-branch/gcc/omp-builtins.def
branches/gomp-4_5-branch/gcc/omp-low.c
branches/gomp-4_5-branch/gcc/testsuite/ChangeLog.gomp
branches/gomp-4_5-branch/include/ChangeLog.gomp
branches/gomp-4_5-branch/include/gomp-constants.h
branches/gomp-4_5-branch/libgomp/ChangeLog.gomp
branches/gomp-4_5-branch/libgomp/libgomp.map
branches/gomp-4_5-branch/libgomp/libgomp_g.h
branches/gomp-4_5-branch/libgomp/target.c