Handle mix/max pointer reductions in parloops
authorTom de Vries <tom@codesourcery.com>
Sat, 29 Aug 2015 07:07:51 +0000 (07:07 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 29 Aug 2015 07:07:51 +0000 (07:07 +0000)
commit3ff2d74e9cfb4342f610b058eab400d3fde55f56
tree9bf08e641c221177e8d579382c0f807bde76c21f
parent40e1e8d7b9092973e769e92a559e764c74c71cac
Handle mix/max pointer reductions in parloops

2015-08-29  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/46193
* omp-low.c (omp_reduction_init): Handle pointer type for min or max
clause.

* gcc.dg/autopar/pr46193.c: New test.

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

From-SVN: r227315
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr46193.c [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr46193.c [new file with mode: 0644]