From 7afff7cfb08e971723fee6a6b4ed508a3fdf9c26 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 20 Mar 2002 07:58:41 +0000 Subject: Makefile.in: Update. * Makefile.in: Update. * c-common.c: Include langhooks.h. (inline_forbidden_p): Use new hook. * diagnostic.c: Include langhooks.h. (format_with_decl, announce_function, default_print_error_function): Use new hook. * dwarf2out.c (dwarf2_name): Use new hook. * function.c: Include langhooks.h. (init_function_start): Use new hook. * langhooks-def.h (lhd_decl_printable_name): New. (LANGHOOKS_DECL_PRINTABLE_NAME): New. (LANGHOOKS_INITIALIZER): Update. * langhooks.c (lhd_decl_printable_name): New. * langhooks.h (struct lang_hooks): New hook. * toplev.c (decl_name, decl_printable_name): Remove. (open_dump_file): Use new hook. (process_options): Remove old hook. * tree.h (decl_printable_name): Remove. ada: * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. (gnat_init): Remove old hook. cp: * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. * cp-tree.h (lang_printable_name): Rename. * error.c (lang_decl_name): Use new hook. * lex.c (cxx_init): Remove old hook. * pt.c (tsubst_expr): Use new hook. * tree.c (lang_printable_name): Rename. f: * com.c (lang_printable_name): Rename. (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. (ffe_init): Don't use old hook. java: * decl.c (start_java_method): Use new hook. * lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. (java_init): Remove old hook. objc: * objc-act.c (objc_init): Remove old hook. (objc_printable_name): Export. * objc-act.h (objc_printable_name): New. * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. From-SVN: r51066 --- gcc/objc/objc-act.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gcc/objc/objc-act.c') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 0c9e9fd..2d689a2 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -165,7 +165,6 @@ static int check_methods_accessible PARAMS ((tree, tree, static void encode_aggregate_within PARAMS ((tree, int, int, int, int)); static const char *objc_demangle PARAMS ((const char *)); -static const char *objc_printable_name PARAMS ((tree, int)); static void objc_expand_function_end PARAMS ((void)); /* Hash tables to manage the global pool of method prototypes. */ @@ -477,8 +476,6 @@ objc_init (filename) { filename = c_objc_common_init (filename); - decl_printable_name = objc_printable_name; - /* Force the line number back to 0; check_newline will have raised it to 1, which will make the builtin functions appear not to be built in. */ @@ -8028,7 +8025,7 @@ objc_demangle (mangled) return mangled; /* not an objc mangled name */ } -static const char * +const char * objc_printable_name (decl, kind) tree decl; int kind ATTRIBUTE_UNUSED; -- cgit v1.1