diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2015-10-23 18:01:19 -0200 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2016-02-19 19:55:10 -0200 |
commit | 4d62df62789cc818c88084995cbf92aa482e76bf (patch) | |
tree | 7ea2b689036d3414499786391548aa69738ba6ee | |
parent | 497a978102fe126b505a746d1f3889c32d0b3eba (diff) | |
download | gcc-4d62df62789cc818c88084995cbf92aa482e76bf.tar.gz |
use address oracle for global namespace only
-rw-r--r-- | libcc1/libcp1plugin.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index d7b181dfda7..7c453a52ea4 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -284,7 +284,8 @@ address_rewriter (tree *in, int *walk_subtrees, void *arg) decl_addr_value *found_value = ctx->address_map.find (&value); if (found_value != NULL) ; - else if (DECL_IS_BUILTIN (*in)) + else if (DECL_IS_BUILTIN (*in) && DECL_NAMESPACE_SCOPE_P (*in) + && CP_DECL_CONTEXT (*in) == global_namespace) { gcc_address address; |