From cdc9fa3e38cf8c6354a9fb2769d7e282994d0b77 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 18 Nov 2001 11:04:53 +0000 Subject: * Makefile.in (c-parse.o, c-common.o): Update dependencies. * c-common.c: Include diagnostic.h. (c_common_finish): New. * c-common.h (c_common_finish): New. * c-lang.c (LANG_HOOKS_FINISH): Override. * c-parse.in: Don't include diagnostic.h. (finish_parse): Remove. * langhooks.h: Update comments. * toplev.c (lang_dependent_init): New prototype. (finalize): New. (compile_file): Split cleanup code out to finalize. (lang_dependent_init): Stop if lang_hooks.init fails. (toplev_main): Update. * tree.h (finish_parse): Remove. ada: * misc.c (gnat_decode_option, gnat_init_options): Make definitions static too. (gnat_init): Don't return NULL. (finish_parse): Remove. cp: * lex.c (cxx_finish): Call c_common_finish. (finish_parse): Remove. f: * com.c (finish_parse): Remove. (ffe_finish): Move body of finish_parse. java: * lang.c (finish_parse): Rename to java_finish. (LANG_HOOKS_FINISH, java_finish): New. objc: * objc-act.c (LANG_HOOKS_FINISH): Override. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47141 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/lang.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc/java/lang.c') diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 977ed175ec4..979b261c30b 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -49,6 +49,7 @@ struct string_option }; static const char *java_init PARAMS ((const char *)); +static void java_finish PARAMS ((void)); static void java_init_options PARAMS ((void)); static int java_decode_option PARAMS ((int, char **)); static void put_decl_string PARAMS ((const char *, int)); @@ -199,6 +200,8 @@ static int dependency_tracking = 0; #define LANG_HOOKS_NAME "GNU Java" #undef LANG_HOOKS_INIT #define LANG_HOOKS_INIT java_init +#undef LANG_HOOKS_FINISH +#define LANG_HOOKS_FINISH java_finish #undef LANG_HOOKS_INIT_OPTIONS #define LANG_HOOKS_INIT_OPTIONS java_init_options #undef LANG_HOOKS_DECODE_OPTION @@ -508,8 +511,8 @@ java_init (filename) return filename; } -void -finish_parse () +static void +java_finish () { jcf_dependency_write (); } -- cgit v1.2.1