re PR middle-end/85879 (ICE in expand_debug_locations, at cfgexpand.c:5405)
authorChung-Lin Tang <cltang@codesourcery.com>
Thu, 31 May 2018 14:10:10 +0000 (14:10 +0000)
committerCesar Philippidis <cesar@gcc.gnu.org>
Thu, 31 May 2018 14:10:10 +0000 (07:10 -0700)
commitbd1cab35c5eabf51d9392751036fa3a71758d263
treeb3173fd010fc1a205b8af74f166a3e091a389ad5
parent22f1f4c790759674d47b704e0faa140343e542d5
re PR middle-end/85879 (ICE in expand_debug_locations, at cfgexpand.c:5405)

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.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r261025
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]