Miscellaneous code cleanup and extension.
commita6ef9a6d913b6a46872f6f9021d4071e26c6b79c
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2014 23:01:26 +0000 (17 23:01 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2014 23:01:26 +0000 (17 23:01 +0000)
treeb032f5330c57a8877012ae2f98e0c4c202fcd51d
parent8fbca6d4d703b08aed3e1c9ae7c227e6d123db24
Miscellaneous code cleanup and extension.

gcc/cp/
* parser.c (cp_parser_oacc_clause_vector_length)
(cp_parser_oacc_wait_list, cp_parser_omp_clause_num_gangs)
(cp_parser_omp_clause_num_workers): Revise parsing.

gcc/c-family/
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AUTO,
PRAGMA_OMP_CLAUSE_GANG, PRAGMA_OMP_CLAUSE_SEQ,
PRAGMA_OMP_CLAUSE_VECTOR, and PRAGMA_OMP_CLAUSE_WORKER.
gcc/c/
* c-parser.c (c_parser_omp_clause_name): Handle "auto", "gang",
"seq", "vector", and "worker".
(c_parser_oacc_all_clauses): Handle
PRAGMA_OMP_CLAUSE_FIRSTPRIVATE, and PRAGMA_OMP_CLAUSE_PRIVATE.
* c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_AUTO,
OMP_CLAUSE_GANG, OMP_CLAUSE_SEQ, OMP_CLAUSE_VECTOR, and
OMP_CLAUSE_WORKER.
gcc/
* tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AUTO, and
OMP_CLAUSE_SEQ.
* tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
Update accordingly.
* gimplify.c (gimplify_scan_omp_clauses)
(gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_AUTO,
OMP_CLAUSE_GANG, OMP_CLAUSE_SEQ, OMP_CLAUSE_VECTOR, and
OMP_CLAUSE_WORKER.
* tree-pretty-print.c (dump_omp_clause): Likewise.
* omp-low.c (scan_sharing_clauses): Likewise.
(struct omp_context): Add gwv_below, and gwv_this members.
(enclosing_target_ctx, oacc_loop_or_target_p): New functions.
(scan_omp_for, scan_omp_target): Use those.

gcc/
* tree-nested.c (convert_nonlocal_reference_stmt)
(convert_local_reference_stmt, convert_tramp_reference_stmt)
(convert_gimple_call) <GIMPLE_OMP_TARGET>: Use
is_gimple_omp_offloaded.

gcc/
* omp-low.c (lower_reduction_clauses): Simplify OpenACC handling.

gcc/
* gimple.h: Rename is_gimple_omp_oacc_specifically to
is_gimple_omp_oacc.  Update all users.

gcc/
* gimplify.c (enum omp_region_type): Restore ORT_TARGET_DATA and
ORT_TARGET.  Update all users.

gcc/
* doc/generic.texi (OpenMP): Move OpenACC stuff into...
(OpenACC): ... this new subsection.

gcc/
* oacc-builtins.def: Merge into omp-builtins.def.  Update all users.

gcc/
* builtin-types.def: Remove BT_FN_VOID_INT_PTR_INT.
gcc/fortran/
* types.def: Remove BT_FN_VOID_INT_PTR_INT.

Throughout, remove FIXME/TODO/XXX markers, reflect libgomp renaming, remove
lots of assertion checks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@218849 138bc75d-0d04-0410-961f-82ee72b054a4
34 files changed:
gcc/ChangeLog.gomp
gcc/Makefile.in
gcc/builtin-types.def
gcc/builtins.def
gcc/c-family/ChangeLog.gomp
gcc/c-family/c-omp.c
gcc/c-family/c-pragma.c
gcc/c-family/c-pragma.h
gcc/c/ChangeLog.gomp
gcc/c/c-parser.c
gcc/c/c-typeck.c
gcc/cp/ChangeLog.gomp
gcc/cp/parser.c
gcc/doc/generic.texi
gcc/fortran/ChangeLog.gomp
gcc/fortran/f95-lang.c
gcc/fortran/types.def
gcc/gimple.c
gcc/gimple.def
gcc/gimple.h
gcc/gimplify.c
gcc/oacc-builtins.def [deleted file]
gcc/omp-builtins.def
gcc/omp-low.c
gcc/testsuite/c-c++-common/goacc/nesting-fail-1.c
gcc/testsuite/gfortran.dg/goacc/loop-tree-1.f90
gcc/tree-core.h
gcc/tree-inline.c
gcc/tree-nested.c
gcc/tree-pretty-print.c
gcc/tree.c
gcc/tree.def
gcc/tree.h
libgcc/crtstuff.c