aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-07-07 22:10:18 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-07-07 22:10:18 +0000
commit5351f1ca744b9d3e5285ff813839df3e43fe40b4 (patch)
tree3e569be0339cedb2fa3b07094857f01594bed4f5 /gcc/c-common.c
parentc8cc4417e4b05d1ca1ef51a9bf38c1af29c29c55 (diff)
downloadgcc-5351f1ca744b9d3e5285ff813839df3e43fe40b4.zip
gcc-5351f1ca744b9d3e5285ff813839df3e43fe40b4.tar.gz
gcc-5351f1ca744b9d3e5285ff813839df3e43fe40b4.tar.bz2
c-common.c (c_common_post_options): Update prototype; don't init backends if preprocessing only.
* 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. From-SVN: r55306
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 57c191a..a948959 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4244,7 +4244,7 @@ c_common_init_options (lang)
}
/* Post-switch processing. */
-void
+bool
c_common_post_options ()
{
cpp_post_options (parse_in);
@@ -4286,6 +4286,8 @@ c_common_post_options ()
/* If an error has occurred in cpplib, note it so we fail
immediately. */
errorcount += cpp_errors (parse_in);
+
+ return flag_preprocess_only;
}
/* Hook that registers front end and target-specific built-ins. */