[Bug libgomp/93515] OpenMP target teams distribute parallel for with defaultmap not mapping correctly
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 13 22:33:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93515
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:d3266b1311723841ec553277f1fb6bfddef8809d
commit r9-8220-gd3266b1311723841ec553277f1fb6bfddef8809d
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Feb 6 09:15:13 2020 +0100
openmp: Notice reduction decl in outer contexts after adding it to shared
[PR93515]
If we call omp_add_variable, following omp_notice_variable will already
find it
on that construct and not go through outer constructs, the following patch
fixes that.
Note, this still doesn't follow OpenMP 5.0 semantics on target combined
with other
constructs with reduction/lastprivate/linear clauses, will handle that for
GCC11.
2020-02-06 Jakub Jelinek <jakub@redhat.com>
PR libgomp/93515
* gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
shared clause, call omp_notice_variable on outer context if any.
More information about the Gcc-bugs
mailing list