summaryrefslogtreecommitdiff
path: root/gcc/langhooks.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-07 22:10:18 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-07 22:10:18 +0000
commit77e1a5df62f18d8c32d767ea0f7de218b4622c74 (patch)
tree3e569be0339cedb2fa3b07094857f01594bed4f5 /gcc/langhooks.h
parent3c4bc54e3190f6a465fc51653e682d01e3bd17b3 (diff)
downloadgcc-77e1a5df62f18d8c32d767ea0f7de218b4622c74.tar.gz
* c-common.c (c_common_post_options): Update prototype;
don't init backends if preprocessing only. * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update. * langhooks.h (struct lang_hooks): Update post_options to return a boolean. * toplev.c (parse_options_and_default_flags, do_compile, lang_independent_init): Update prototypes. Allow the front end to specify that there is no need to initialize the back end. (general_init): Move call to hex_init here... (toplev_main): ...from here. Pass flag for back end init suppression. java: * lang.c (java_post_options): Update prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r--gcc/langhooks.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h
index 71ae251c4ab..0ec3c88c29d 100644
--- a/gcc/langhooks.h
+++ b/gcc/langhooks.h
@@ -198,9 +198,12 @@ struct lang_hooks
initialization should be left to the "init" callback, since GC
and the identifier hashes are set up between now and then.
+ Should return zero unless the compiler back-end does not need to
+ be initialized, such as with the -E option.
+
If errorcount is non-zero after this call the compiler exits
immediately and the finish hook is not called. */
- void (*post_options) PARAMS ((void));
+ bool (*post_options) PARAMS ((void));
/* Called after post_options, to initialize the front end. The main
input filename is passed, which may be NULL; the front end should