]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/86539 (OpenMP wrong-code with taskloop and references)
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Oct 2018 17:29:35 +0000 (19:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Oct 2018 17:29:35 +0000 (19:29 +0200)
commit13d7c032ddb77ba0623d27dcedfb7d55751a83cb
tree627c251fd38f3f267c08343219ad54dc47194be9
parent37bc00e7f05602ffbee267693a522b1fda7f5212
backport: re PR middle-end/86539 (OpenMP wrong-code with taskloop and references)

Backported from mainline
2018-07-17  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86539
* gimplify.c (gimplify_omp_for): Ensure taskloop firstprivatized init
and cond temporaries don't have reference type if iterator has
pointer type.  For init use &for_pre_body instead of pre_p if
for_pre_body is non-empty.

* testsuite/libgomp.c++/pr86539.C: New test.

From-SVN: r265117
gcc/ChangeLog
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr86539.C [new file with mode: 0644]