aboutsummaryrefslogtreecommitdiff
path: root/libcpp/files.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-29 13:59:08 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-29 13:59:08 +0000
commit725214ac5ecba8ec8c92dbc72d99579276d63a0d (patch)
tree2cbe7215d3413ac50b94430f2f38d095f618b315 /libcpp/files.c
parent085c1b4766696a735918705c56819cf4e71f4b15 (diff)
downloadgcc-725214ac5ecba8ec8c92dbc72d99579276d63a0d.zip
gcc-725214ac5ecba8ec8c92dbc72d99579276d63a0d.tar.gz
gcc-725214ac5ecba8ec8c92dbc72d99579276d63a0d.tar.bz2
tree.h (SCOPE_FILE_SCOPE_P): New macro.
2010-09-29 Richard Guenther <rguenther@suse.de> * tree.h (SCOPE_FILE_SCOPE_P): New macro. (DECL_FILE_SCOPE_P): Use it. (TYPE_FILE_SCOPE_P): New macro. cp/ * cp-tree.h (CP_DECL_CONTEXT): Check DECL_FILE_SCOPE_P. (CP_TYPE_CONTEXT): Similar. (FROB_CONTEXT): Frob global_namespace to the global TRANSLATION_UNIT_DECL. * decl.c (cxx_init_decl_processing): Build a TRANSLATION_UNIT_DECL, set DECL_CONTEXT of global_namespace to it. (start_decl): Use CP_DECL_CONTEXT and test TYPE_P instead of zeroing context. (cp_finish_decl): Use DECL_FILE_SCOPE_P. (grokfndecl): Likewise. (start_preparsed_function): Likewise. * name-lookup.c (maybe_push_decl): Use DECL_NAMESPACE_SCOPE_P. (namespace_binding): Use SCOPE_FILE_SCOPE_P. * pt.c (template_class_depth): Use CP_TYPE_CONTEXT. (is_specialization_of_friend): Use CP_DECL_CONTEXT. (push_template_decl_real): Likewise. (tsubst_friend_class): Likewise. Adjust context comparisons. (instantiate_class_template): Use CP_TYPE_CONTEXT. (tsubst): Do not substitute into TRANSLATION_UNIT_DECL. * cxx-pretty-print.c (pp_cxx_nested_name_specifier): Use SCOPE_FILE_SCOPE_P. From-SVN: r164719
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions