[gomp] Fix COPYIN when copy is done by reference

Richard Henderson rth@redhat.com
Thu Oct 27 18:00:00 GMT 2005


On Thu, Oct 27, 2005 at 12:33:38PM -0400, Jakub Jelinek wrote:
> 	* omp-low.c (expand_rec_input_clauses): If any COPYIN copying is done
> 	by reference, emit GOMP_barrier () call at the end of the COPYIN
> 	sequence.

Ok, except,

> +  if (copyin_by_ref)
> +    {
> +      x = built_in_decls[BUILT_IN_GOMP_BARRIER];
> +      x = build_function_call_expr (x, NULL);
> +      gimplify_and_add (x, ilist);
> +    }

build_omp_barrier.  Move it up or add forward declaration as needed.



r~



More information about the Gcc-patches mailing list