public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Tobias Burnus <tobias@codesourcery.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>, fortran <fortran@gcc.gnu.org>
Subject: Re: [Patch ]Fortran/OpenMP: Extend defaultmap clause for OpenMP 5 [PR92568]
Date: Tue, 15 Jun 2021 16:01:10 +0200	[thread overview]
Message-ID: <20210615140110.GO7746@tucnak> (raw)
In-Reply-To: <a3e52fa9-7302-2749-dcfc-8de01a61a0e5@codesourcery.com>

On Tue, Jun 15, 2021 at 03:45:15PM +0200, Tobias Burnus wrote:
> 	PR fortran/92568
> 
> gcc/fortran/ChangeLog:
> 
> 	* dump-parse-tree.c (show_omp_clauses): Update for defaultmap.
> 	* f95-lang.c (LANG_HOOKS_OMP_ALLOCATABLE_P,
> 	LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
> 	* gfortran.h (enum gfc_omp_defaultmap,
> 	enum gfc_omp_defaultmap_category): New.
> 	* openmp.c (gfc_match_omp_clauses): Update defaultmap matching.
> 	* trans-decl.c (gfc_finish_decl_attrs): Set GFC_DECL_SCALAR_TARGET.
> 	* trans-openmp.c (gfc_omp_allocatable_p, gfc_omp_scalar_target_p): New.
> 	(gfc_omp_scalar_p): Take 'ptr_alloc_ok' argument.
> 	(gfc_trans_omp_clauses, gfc_split_omp_clauses): Update for
> 	defaultmap changes.
> 	* trans.h (gfc_omp_scalar_p): Update prototype.
> 	(gfc_omp_allocatable_p, gfc_omp_scalar_target_p): New.
> 	(struct lang_decl): Add scalar_target.
> 	(GFC_DECL_SCALAR_TARGET, GFC_DECL_GET_SCALAR_TARGET): New.
> 
> gcc/ChangeLog:
> 
> 	* gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
> 	(struct gimplify_omp_ctx): Extend defaultmap array by one.
> 	(new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
> 	(omp_notice_variable): Update type classification for Fortran.
> 	(gimplify_scan_omp_clauses): Update calls for new argument; handle
> 	GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
> 	* langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
> 	* langhooks.c (lhd_omp_scalar_p): Likewise.
> 	(LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
> 	(LANG_HOOKS_DECLS): Add them.
> 	* langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
> 	omp_scalar_p pointer type to include the new bool argument.
> 
> libgomp/ChangeLog:
> 
> 	* testsuite/libgomp.fortran/defaultmap-8.f90: New test.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gfortran.dg/gomp/pr99928-1.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/pr99928-2.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/pr99928-3.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/pr99928-4.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/pr99928-5.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/pr99928-6.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/pr99928-8.f90: Uncomment 'defaultmap(none)'.
> 	* gfortran.dg/gomp/defaultmap-1.f90: New test.
> 	* gfortran.dg/gomp/defaultmap-2.f90: New test.
> 	* gfortran.dg/gomp/defaultmap-3.f90: New test.
> 	* gfortran.dg/gomp/defaultmap-4.f90: New test.
> 	* gfortran.dg/gomp/defaultmap-5.f90: New test.
> 	* gfortran.dg/gomp/defaultmap-6.f90: New test.
> 	* gfortran.dg/gomp/defaultmap-7.f90: New test.

LGTM, thanks.

	Jakub


  reply	other threads:[~2021-06-15 14:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 12:18 Tobias Burnus
2021-06-14 16:18 ` Jakub Jelinek
2021-06-15 13:45   ` Tobias Burnus
2021-06-15 14:01     ` Jakub Jelinek [this message]
2021-06-23 14:13     ` Martin Liška
2021-06-23 20:15       ` [committed] fortran/dump-parse-tree.c: Use proper enum type (was: Re: [Patch ]Fortran/OpenMP: Extend defaultmap clause for OpenMP 5 [PR92568]) Tobias Burnus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210615140110.GO7746@tucnak \
    --to=jakub@redhat.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tobias@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).