This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Pass TREE_ADDRESSABLE by reference to children threads
- From: Richard Henderson <rth at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Oct 2005 18:54:02 -0700
- Subject: Re: [gomp] Pass TREE_ADDRESSABLE by reference to children threads
- References: <200510181850.04305.dnovillo@redhat.com>
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~