Yes, agree.  For now using the !(TREE_ADDRESSABLE (decl)  ||
is_global_var (decl)) can be used to skip instrumentation if the
points-to interface is not available for use.

David

On Fri, Nov 2, 2012 at 8:58 AM, Jakub Jelinek <ja...@redhat.com> wrote:
> On Fri, Nov 02, 2012 at 08:54:42AM -0700, Xinliang David Li wrote:
>> Thanks, good to know that.
>
> But note that such vars, even when accessed only partially, don't
> need to be tracked by tsan just because of that.
> TREE_ADDRESSABLE (decl) || is_global_var (decl) is really a conservative
> check for what needs to be tracked, and perhaps less conservative one using
> points-to.
>
>         Jakub

Reply via email to