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] Fix a couple of global var handling bugs, add firstprivate+lastprivate barrier (PR c++/26943)


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~


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