diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-09 10:54:01 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-09 10:54:01 +0000 |
commit | ef3823c3d9f235e6a916386d6a1f60c96fdafced (patch) | |
tree | 5175214bd3273e1990f7d1c7e0d43f3853a1fc53 /gcc/c-lang.c | |
parent | 734d688b845643b0de7a15ad66daa813f9539408 (diff) | |
download | gcc-ef3823c3d9f235e6a916386d6a1f60c96fdafced.tar.gz |
* c-lang.c (lang_hooks): Update.
(lang_init): Rename c_init.
(lang_finish): Remove.
* toplev.c (compile_file): Use lang_hooks for lang_init ()
and lang_finish ().
* toplev.h (lang_hooks): Add init () and finish ().
* tree.h (lang_init, lang_finish): Remove.
* cp/tree.h (lang_init, lang_finish): Remove.
* cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
* cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
lang_hooks): New.
(lang_init, lang_finish): Remove.
* f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
(lang_hooks): Update.
* java/lang.c (lang_init): Rename java_init.
(lang_finish): Remove.
(lang_hooks): Update.
* objc/objc-act.c (lang_init): Rename objc_init.
(lang_finish): Remove.
(lang_hoooks): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r-- | gcc/c-lang.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 5b08679c5e1..f8cefb36490 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -38,10 +38,13 @@ Boston, MA 02111-1307, USA. */ static int c_tree_printer PARAMS ((output_buffer *)); static int c_missing_noreturn_ok_p PARAMS ((tree)); +static void c_init PARAMS ((void)); static void c_post_options PARAMS ((void)); /* Each front end provides its own. */ -struct lang_hooks lang_hooks = {c_post_options}; +struct lang_hooks lang_hooks = {c_init, + NULL, /* c_finish */ + c_post_options}; /* Post-switch processing. */ static void @@ -69,8 +72,8 @@ lang_init_options () flag_bounds_check = -1; } -void -lang_init () +static void +c_init () { c_common_lang_init (); @@ -95,11 +98,6 @@ lang_init () c_parse_init (); } -void -lang_finish () -{ -} - const char * lang_identify () { |