* omp-low.c (expand_reduction_clauses): Use PLUS_EXPR operation
commit1496c6229a328084a01912ef6805d19b483d049e
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Nov 2005 00:02:48 +0000 (18 00:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Nov 2005 00:02:48 +0000 (18 00:02 +0000)
treea6ea3e13c851d46d0b861ba25c700cae97fe79e6
parent8eb62d945316a8c5e056a7d29f0fe8acea7b2d8e
* omp-low.c (expand_reduction_clauses): Use PLUS_EXPR operation
for MINUS_EXPR OMP_CLAUSE_REDUCTION_CODE.
fortran/
* trans-openmp.c (gfc_trans_omp_array_reduction): Use gfc_add
for MINUS_EXPR OMP_CLAUSE_REDUCTION_CODE.
libgomp/
* testsuite/libgomp.fortran/reduction1.f90: Adjust for
reduction(-:var) behaving the same as reduction(+:var).
* testsuite/libgomp.c/reduction-4.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-20050608-branch@107144 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.gomp
gcc/fortran/ChangeLog.gomp
gcc/fortran/trans-openmp.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/reduction-4.c [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/reduction1.f90