aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-10 07:51:11 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-10 07:51:11 +0000
commitee811cfdfaa9b3dee676e33fcf5853864255a04a (patch)
tree9722a0d53a90eb7c3efcda64249217ac59a4b20b /gcc/c-lang.c
parent8541c24be9cdf2943f93bea51a3227647978556c (diff)
downloadgcc-ee811cfdfaa9b3dee676e33fcf5853864255a04a.zip
gcc-ee811cfdfaa9b3dee676e33fcf5853864255a04a.tar.gz
gcc-ee811cfdfaa9b3dee676e33fcf5853864255a04a.tar.bz2
c-lang.c (lang_hooks): Update.
* c-lang.c (lang_hooks): Update. (lang_decode_option): Remove. (lang_init_options): Rename c_init_options. * toplev.c (main): Use lang_hooks for lang_init_options and lang_decode_option. * toplev.h (lang_hooks): Add 2 new hooks. * tree.h: Remove lang_init_options and lang_decode_option. * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option. * cp/decl2.c: Similarly. * cp/lex.c (lang_init_options): Rename cxx_init_options. (lang_hooks): Update. * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish for consistency. (lang_init_options): Rename ffe_init_options. (lang_hooks): Update. (lang_decode_option): Remove. * java/lang.c (lang_init_options): Rename java_init_options. (lang_decode_option): Rename java_decode_option. (lang_hooks): Update. * objc/objc-act.c (lang_init_options): Rename objc_init_options. (lang_decode_option): Rename objc_decode_option. (lang_hooks): Update. From-SVN: r38856
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index f8cefb3..dfd772f 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -39,11 +39,14 @@ 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_init_options PARAMS ((void));
static void c_post_options PARAMS ((void));
/* Each front end provides its own. */
struct lang_hooks lang_hooks = {c_init,
NULL, /* c_finish */
+ c_init_options,
+ c_decode_option,
c_post_options};
/* Post-switch processing. */
@@ -53,18 +56,8 @@ c_post_options ()
cpp_post_options (parse_in);
}
-/* Each of the functions defined here
- is an alternative to a function in objc-actions.c. */
-int
-lang_decode_option (argc, argv)
- int argc;
- char **argv;
-{
- return c_decode_option (argc, argv);
-}
-
-void
-lang_init_options ()
+static void
+c_init_options ()
{
parse_in = cpp_create_reader (CLK_GNUC89);