PR middle-end/80853
commitd96999c66faa6198385f5bdfd24cd6579cc38e25
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 May 2017 18:51:54 +0000 (22 18:51 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 May 2017 18:51:54 +0000 (22 18:51 +0000)
treeac190183444200175ba69ab2d6aaf216d6806398
parent6c9208959c3c02852c720dd73ec539f60e596b3f
PR middle-end/80853
* omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
as last argument to build_outer_var_ref for pointer bases of array
section reductions.

* testsuite/libgomp.c/pr80853.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248344 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr80853.c [new file with mode: 0644]