This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp] Pass TREE_ADDRESSABLE by reference to children threads


On Tue, Oct 18, 2005 at 06:50:03PM -0400, Diego Novillo wrote:
> +  /* Do not use copy-in/copy-out for variables that have their address
> +     taken.  */
> +  if (TREE_ADDRESSABLE (decl))
> +    return true;
> +
>    /* We can only use copy-in/copy-out semantics for shared varibles
>       when we know the value is not accessible from an outer scope.  */
>    if (shared_p)

But you placed it incorrectly.  It should have gone under the
shared_p test.  We don't need to pass the address when dealing
with by-value clauses like firstprivate.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]