Question about gimplify.c:gimplify_adjust_omp_clauses_1, GOVD_MAP_TO_ONLY

Thomas Schwinge thomas_schwinge@mentor.com
Thu Jan 9 22:21:00 GMT 2014


Hi!

On Thu, 9 Jan 2014 21:43:35 +0100, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, Jan 09, 2014 at 09:38:25PM +0100, Thomas Schwinge wrote:
> > In gimplify.c:gimplify_adjust_omp_clauses_1, does the case for
> > GOVD_MAP_TO_ONLY have a real current use case (I couldn't spot any), or
> > is it "just for completeness"?
> 
> It is typically for any artificial vars that are known not to need copying
> back, such as various artifical vars used for VLAs (say if you do sizeof
> on vla inside of target region, typesizes etc.).  The testsuite coverage is
> insufficient here, sure.  GOVD_MAP_TO_ONLY is kind of GOVD_FIRSTPRIVATE
> for the target regions, as opposed to GOVD_SHARED.

Thanks, that makes sense (and I put a TODO item up for adding such tests
to the testsuite), but I still can't manage to find one that actually
triggers the GOVD_MAP_TO_ONLY case in gimplify_adjust_omp_clauses_1.
Maybe it's just too late today.


Grüße,
 Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140109/a64d9ca2/attachment.sig>


More information about the Gcc-patches mailing list