]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/44085 (OpenMP - untied task accesses threadprivate - non-conforming...
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 May 2010 12:11:00 +0000 (14:11 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 May 2010 12:11:00 +0000 (14:11 +0200)
commitf22f434020d20d8d12bf5171cbb7ba720808ac15
tree7303bd5cc39e81125c26e6d6f98ccc7eb2175c34
parent7c2db0d3628062fc4fc9227c2e3ac4922b10f059
re PR middle-end/44085 (OpenMP - untied task accesses threadprivate - non-conforming but no msg)

PR middle-end/44085
* gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
change value of ORT_TASK.
(new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
(omp_notice_threadprivate_variable): New function.
(omp_notice_variable): Call it for threadprivate variables.
If enclosing ctx is a task, print enclosing task rather than
enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
(gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
if task has untied clause.

* gcc.dg/gomp/pr44085.c: New test.
* gfortran.dg/gomp/pr44085.f90: New test.

From-SVN: r159316
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr44085.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr44085.f90 [new file with mode: 0644]