[gomp] Fix a couple of global var handling bugs, add firstprivate+lastprivate barrier (PR c++/26943)
Richard Henderson
rth@redhat.com
Mon May 1 19:47:00 GMT 2006
On Mon, May 01, 2006 at 01:06:11PM -0400, Jakub Jelinek wrote:
> + /* Global variables don't need to be copied,
> + the receiver side will use them directly.
> + For nested contexts we unfortunately don't know
> + yet whether it will be a global variable or not. */
> + if (! ctx->is_nested && is_global_var (decl))
> + break;
> if (! TREE_READONLY (decl)
What's the test case for this? Just testing is_nested doesn't
seem quite right. I should think that we ought to be able to
tell, at some point whether it is or isn't. Perhaps a variant
of lookup_decl_in_outer_ctx?
r~
More information about the Gcc-patches
mailing list