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. Jakub