From 7bbd0aab4cbbb32562e015d10419d4c1616104bb Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 18 Nov 2005 23:40:29 +0000 Subject: c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name. * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name. * config/darwin-c.c (darwin_pragma_unused): Likewise. * c-decl.c (lookup_name_two) Remove. * c-tree.h (lookup_name_two): Remove. * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add. * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add. (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME. * langhooks.h (lang_hooks_for_decls): Add lookup_name. cp: * cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add. * name-lookup.c (lookup_name_two): Remove. (lookup_name_one): Add. * name-lookup.h (lookup_name_two): Remove. (lookup_name_one): Add. From-SVN: r107196 --- gcc/c-objc-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/c-objc-common.h') diff --git a/gcc/c-objc-common.h b/gcc/c-objc-common.h index 6921259..706f120 100644 --- a/gcc/c-objc-common.h +++ b/gcc/c-objc-common.h @@ -127,6 +127,8 @@ extern void c_initialize_diagnostics (diagnostic_context *); #undef LANG_HOOKS_GETDECLS #define LANG_HOOKS_GETDECLS lhd_return_null_tree_v +#undef LANG_HOOKS_LOOKUP_NAME +#define LANG_HOOKS_LOOKUP_NAME lookup_name #undef LANG_HOOKS_WRITE_GLOBALS #define LANG_HOOKS_WRITE_GLOBALS c_write_global_declarations -- cgit v1.1