------- Comment #12 from paul dot richard dot thomas at gmail dot com  
2010-07-08 15:32 -------
Subject: Re:  [4.6 Regression] Unnecessary temporaries 
        increase the runtime for channel.f90 by ~70%

Tobias,

That is the context - apply it and see.

Paul

On Thu, Jul 8, 2010 at 3:33 PM, burnus at gcc dot gnu dot org
<gcc-bugzi...@gcc.gnu.org> wrote:
>
>
> ------- Comment #11 from burnus at gcc dot gnu dot org  2010-07-08 13:33 
> -------
> +      /* A temporary is not needed if the lhs has never been host
> +        associated and the procedure is contained.  */
> +      if (!sym->attr.host_assoc_in_contained
> +           && expr2->value.function.esym->attr.contained)
> +       return false;
> +
>       /* A temporary is not needed if the variable is local and not
>         a pointer, a target or a result.  */
>       if (sym->ns->parent
>
> I have not read the patch in context, but I fear that you might miss a
> TARGET/POINTER check. Otherwise, I like your patch.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44773
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44773

Reply via email to