diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-10-21 21:03:48 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-10-21 21:03:48 +0000 |
commit | 77b1a9217b8359f417c7e090e857c464d2e8778a (patch) | |
tree | 077954c4a4f3e25d4a7bfbc4efdc3428750adc5c /gcc/toplev.c | |
parent | 5297e08564adcb6d396d0870df9c1df1d2c6aab9 (diff) | |
download | gcc-77b1a9217b8359f417c7e090e857c464d2e8778a.zip gcc-77b1a9217b8359f417c7e090e857c464d2e8778a.tar.gz gcc-77b1a9217b8359f417c7e090e857c464d2e8778a.tar.bz2 |
langhooks.c (lang_hook_default_do_nothing, [...]): New defaults.
* langhooks.c (lang_hook_default_do_nothing,
lang_hook_default_decode_option): New defaults.
* langhooks.h: Make hooks unconditional and non-NULL.
* toplev.c (compile_file, toplev_main): Update.
* toplev.h: Update comments.
* objc/objc-act.c (lang_hooks): Update to new paradigm.
From-SVN: r46396
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 3bc9dac..b702a8f 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2227,8 +2227,7 @@ compile_file (name) /* Perform language-specific initialization. This may set main_input_filename. */ - if (lang_hooks.init) - (*lang_hooks.init) (); + (*lang_hooks.init) (); /* If the input doesn't start with a #line, use the input name as the official input file name. */ @@ -2428,8 +2427,7 @@ compile_file (name) /* Language-specific end of compilation actions. */ finish_syntax: - if (lang_hooks.finish) - (*lang_hooks.finish) (); + (*lang_hooks.finish) (); /* Close the dump files. */ @@ -4671,8 +4669,7 @@ toplev_main (argc, argv) add_params (lang_independent_params, LAST_PARAM); /* Perform language-specific options intialization. */ - if (lang_hooks.init_options) - (*lang_hooks.init_options) (); + (*lang_hooks.init_options) (); /* Scan to see what optimization level has been specified. That will determine the default value of many flags. */ @@ -4847,8 +4844,7 @@ toplev_main (argc, argv) } /* All command line options have been processed. */ - if (lang_hooks.post_options) - (*lang_hooks.post_options) (); + (*lang_hooks.post_options) (); if (exit_after_options) exit (0); |