From b86f6cd9ab108f1fda89c4fb00b0b16931182041 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 2 Jul 2003 20:15:46 +0000 Subject: c-common.h (c_common_init_options): New prototype. * c-common.h (c_common_init_options): New prototype. * c-opts.c (deferred_size): Remove. (defer_opt): Array is now pre-allocated. (c_common_init_options): Pre-allocate deferred_opts. Make lang_flags unsigned. (push_command_line_options): Free deferred_opts. * hooks.c (hook_uint_uint_constcharptrptr_0): New. * hooks.h (hook_uint_uint_constcharptrptr_0): New. * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update. * langhooks.h (struct lang_hooks): New prototype for init_options. * main.c (main): Cast argv. * opts.c (handle_option, handle_options): Update prototypes. (decode_options): save_argc, save_argv are not global. Constify. * opts.h (decode_options): New prototype. * toplev.c (general_init): New protoype. (save_argv): Make static. (save_argc): Remove. (print_switch_values, general_init): Constify. (toplev_main): Save argv. * toplev.h (toplev_main): Update prototype. (save_argc, save_argv): Remove. ada: * misc.c (save_argc, save_argv): Make static. (gnat_init_options): New prototype. (gnat_init_options): Update. f: * top.c (ffe_init_options): Update prototype. * top.h (ffe_init_options): Update prototype. java: * lang.c (java_init_options): Update prototype. treelang: * tree1.c (treelang_init_options): Update prototype. * treelang.h (treelang_init_options): Update prototype. From-SVN: r68850 --- gcc/treelang/ChangeLog | 5 +++++ gcc/treelang/tree1.c | 5 +++-- gcc/treelang/treetree.h | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'gcc/treelang') diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index f7623db..5b0e3522 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,8 @@ +2003-07-02 Neil Booth + + * tree1.c (treelang_init_options): Update prototype. + * treelang.h (treelang_init_options): Update prototype. + 2003-07-01 Neil Booth * Make-lang.in: Update. diff --git a/gcc/treelang/tree1.c b/gcc/treelang/tree1.c index 3e85fac..54c41ee 100644 --- a/gcc/treelang/tree1.c +++ b/gcc/treelang/tree1.c @@ -92,8 +92,9 @@ static int version_done = 0; static unsigned int work_nesting_level = 0; /* Prepare to handle switches. */ -int -treelang_init_options (void) +unsigned int +treelang_init_options (unsigned int argc ATTRIBUTE_UNUSED, + const char **argv ATTRIBUTE_UNUSED) { return CL_Treelang; } diff --git a/gcc/treelang/treetree.h b/gcc/treelang/treetree.h index 2c7aec3..7200480 100644 --- a/gcc/treelang/treetree.h +++ b/gcc/treelang/treetree.h @@ -63,7 +63,7 @@ tree tree_code_get_type (int type_num); void treelang_init_decl_processing (void); void treelang_finish (void); bool treelang_init (void); -int treelang_init_options (void); +unsigned int treelang_init_options (unsigned int, const char **); int treelang_handle_option (size_t scode, const char *arg, int value); void treelang_parse_file (int debug_flag); void push_var_level (void); -- cgit v1.1