]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR middle-end/85879
authorcesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 May 2018 14:10:10 +0000 (14:10 +0000)
committercesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 May 2018 14:10:10 +0000 (14:10 +0000)
commita209c8ccc0cd0e7d90db28dc81d87777f612fe27
treeb3173fd010fc1a205b8af74f166a3e091a389ad5
parent4767eb54d222cce81988ccf66105a245c58be79a
Fix PR middle-end/85879

gcc/
* gimplify.c (gimplify_adjust_omp_clauses): Add 'remove = true'
when emitting error on private/firstprivate reductions.
* omp-low.c (lower_omp_target): Avoid reference-type processing
on pointers for firstprivate clause.

gcc/testsuite/
* gfortran.dg/goacc/pr77371-1.f90: New test.
* gfortran.dg/goacc/pr77371-2.f90: New test.
* gfortran.dg/goacc/pr85879.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261025 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr77371-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr77371-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr85879.f90 [new file with mode: 0644]