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 sharing in nested scopes


> +      /* ??? Trivially accessible from anywhere.  But why would we even
> +	 be passing an address in this case?  Should we simply assert
> +	 this to be false, or should we have a cleanup pass that removes
> +	 these from the list of mappings?  */
> +      if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
> +	return true;

Isn't this exactly equivalent to is_global_var in tree.c?


(I've always found is_global_var to be clearer in contexts like the
above, but i guess it's a style issue).

--Dan


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