Ping this patch set.

Thanks,
Chung-Lin

On 2020/9/1 9:16 PM, Chung-Lin Tang wrote:
Hi Jakub,
this patch set implements parts of the target mapping changes introduced
in OpenMP 5.0, mainly the attachment requirements for pointer-based
list items, and the clause ordering.

The first patch here are the C/C++ front-end changes.

The entire set of changes has been tested for without regressions for
the compiler and libgomp. Hope this is ready to commit to master.

Thanks,
Chung-Lin

         gcc/c-family/
         * c-common.h (c_omp_adjust_clauses): New declaration.
         * c-omp.c (c_omp_adjust_clauses): New function.

         gcc/c/
         * c-parser.c (c_parser_omp_target_data): Add use of
         new c_omp_adjust_clauses function. Add GOMP_MAP_ATTACH_DETACH as
     handled map clause kind.
         (c_parser_omp_target_enter_data): Likewise.
         (c_parser_omp_target_exit_data): Likewise.
         (c_parser_omp_target): Likewise.
         * c-typeck.c (handle_omp_array_sections): Adjust COMPONENT_REF case to
         use GOMP_MAP_ATTACH_DETACH map kind for C_ORT_OMP region type.
         (c_finish_omp_clauses): Adjust bitmap checks to allow struct decl and
         same struct field access to co-exist on OpenMP construct.

         gcc/cp/
         * parser.c (cp_parser_omp_target_data): Add use of
         new c_omp_adjust_clauses function. Add GOMP_MAP_ATTACH_DETACH as
         handled map clause kind.
         (cp_parser_omp_target_enter_data): Likewise.
     (cp_parser_omp_target_exit_data): Likewise.
     (cp_parser_omp_target): Likewise.
     * semantics.c (handle_omp_array_sections): Adjust COMPONENT_REF case to
     use GOMP_MAP_ATTACH_DETACH map kind for C_ORT_OMP region type. Fix
     interaction between reference case and attach/detach.
     (finish_omp_clauses): Adjust bitmap checks to allow struct decl and
     same struct field access to co-exist on OpenMP construct.

Reply via email to