c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
commit7bbd0aab4cbbb32562e015d10419d4c1616104bb
authorMike Stump <mrs@apple.com>
Fri, 18 Nov 2005 23:40:29 +0000 (18 23:40 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 18 Nov 2005 23:40:29 +0000 (18 23:40 +0000)
tree4485e94760f589adf0f27e512f1e74736da95b8d
parent186abafe49fabf3f0ee8a58c54c36e256846172e
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
12 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-decl.c
gcc/c-objc-common.h
gcc/c-tree.h
gcc/config/darwin-c.c
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.h
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/langhooks-def.h
gcc/langhooks.h