This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] fix sharing in nested scopes
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Sep 2005 10:14:14 -0400
- Subject: Re: [gomp] fix sharing in nested scopes
- References: <20050929232512.GA16822@redhat.com>
> + /* ??? 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