diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-18 11:04:53 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-18 11:04:53 +0000 |
commit | cdc9fa3e38cf8c6354a9fb2769d7e282994d0b77 (patch) | |
tree | 2092e937365d4aa4305ac9206c9b38c72a6f6d56 /gcc/langhooks.h | |
parent | 13d1072dd018d3eed6971a4da5408af398398dec (diff) | |
download | gcc-cdc9fa3e38cf8c6354a9fb2769d7e282994d0b77.tar.gz |
* 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
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r-- | gcc/langhooks.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h index 9823dc8797a..0402940a398 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -61,7 +61,10 @@ struct lang_hooks /* Called after options parsing, to initialize the front end. The main input filename is passed, which may be NULL; the front end - should return the original filename (e.g. foo.i -> foo.c). */ + should return the original filename (e.g. foo.i -> foo.c). + Return NULL to indicate a serious error of some sort; in that + case no compilation is performed, and the finish hook is called + immediately. */ const char * (*init) PARAMS ((const char *)); /* Called last, as a finalizer. */ |