On Sat, Nov 21, 2015 at 07:34:02PM +0100, Tom de Vries wrote:
> Mark by_ref mem_ref in build_receiver_ref as non-trapping
> 
> 2015-11-21  Tom de Vries  <t...@codesourcery.com>
> 
>       * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.

This is ok.
> 
> ---
>  gcc/omp-low.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/omp-low.c b/gcc/omp-low.c
> index 830db75..78f2853 100644
> --- a/gcc/omp-low.c
> +++ b/gcc/omp-low.c
> @@ -1249,7 +1249,10 @@ build_receiver_ref (tree var, bool by_ref, omp_context 
> *ctx)
>    TREE_THIS_NOTRAP (x) = 1;
>    x = omp_build_component_ref (x, field);
>    if (by_ref)
> -    x = build_simple_mem_ref (x);
> +    {
> +      x = build_simple_mem_ref (x);
> +      TREE_THIS_NOTRAP (x) = 1;
> +    }
>  
>    return x;
>  }


        Jakub

Reply via email to