This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Fix reduction initialization
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Oct 2005 14:41:20 -0700
- Subject: Re: [gomp] Fix reduction initialization
- References: <20051011211057.GG22818@devserv.devel.redhat.com>
On Tue, Oct 11, 2005 at 05:10:57PM -0400, Jakub Jelinek wrote:
> * omp-low.c (expand_rec_input_clauses): Fix a typo.
> libgomp/
> * testsuite/libgomp.dg/reduction-1.c: New test.
> * testsuite/libgomp.dg/reduction-2.c: New test.
> * testsuite/libgomp.dg/reduction-3.c: New test.
Doh. Ok.
> + if (omp_get_thread_num () == 0)
> + {
> + i = 16;
> + k ^= (1 << 16);
> + d += 32.0;
> + }
> +#pragma omp barrier
Probably clearer as #pragma omp single
r~