From 4bfec48308a39e8ba1af2ebca9cbcddfac231b22 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 8 Mar 2003 21:12:26 +0000 Subject: c-common.h (c_common_init, [...]): Update. * c-common.h (c_common_init, c_common_post_options): Update. * c-objc-common.c (c_objc_common_init): Update for new prototype. * c-opts.c (saved_lineno): New. (c_common_post_options, c_common_init): Update prototypes, move call to cpp_read_main_file from latter to former. * c-tree.h (c_ojbc_common_init): Update. * langhooks-def.h (lhd_post_options): New. (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update. * langhooks.c (lhd_post_options): New. * langhooks.h (struct lang_hooks): Update post_options and init hooks. * toplev.c (no_backend): New. (process_options): Call post_options hook and set main_input_filename and input_filename here. (lang_dependent_init, do_compile): post_options hook moved to process_options. * objc/objc-act.c (objc_init): Update prototype. * objc/objc-act.h (objc_init): Update prototype. ada: * misc.c (gnat_init): Update for new prototype. cp: * cp-tree.h (cxx_init): Update prototype. * lex.c (cxx_init): Similarly. f: * com.c (ffe_init): Update prototype; move code to ffe_post_options. (ffe_post_options): New. java: * lang.c (java_init): Update prototype, move code to java_post_options. (java_post_options): Similarly. treelang: * tree1.c (in_fname): Fix type. (treelang_init): Update prototype and use of in_fname. * treelang.h (in_fname): Fix type. * treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_prototype, tree_code_create_function_initial, tree_code_create_funciton_wrapup, tree_code_create_variable, tree_code_output_expression_statement) : Fix prototypes and use of filenames. * treetree.h: Similarly. From-SVN: r64001 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/misc.c | 14 +++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'gcc/ada') diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 009cd6e..e57e493 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2003-03-08 Neil Booth + + * misc.c (gnat_init): Update for new prototype. + 2003-03-05 Olivier Hainque ada/9961 diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index a8293e7..1da50c3 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -79,7 +79,7 @@ extern FILE *asm_out_file; extern int save_argc; extern char **save_argv; -static const char *gnat_init PARAMS ((const char *)); +static bool gnat_init PARAMS ((void)); static void gnat_init_options PARAMS ((void)); static int gnat_decode_option PARAMS ((int, char **)); static HOST_WIDE_INT gnat_get_alias_set PARAMS ((tree)); @@ -337,9 +337,8 @@ internal_error_function (msgid, ap) /* Perform all the initialization steps that are language-specific. */ -static const char * -gnat_init (filename) - const char *filename; +static bool +gnat_init () { /* Performs whatever initialization steps needed by the language-dependent lexical analyzer. @@ -350,7 +349,7 @@ gnat_init (filename) gnat_init_decl_processing (); /* Add the input filename as the last argument. */ - gnat_argv[gnat_argc] = (char *) filename; + gnat_argv[gnat_argc] = (char *) main_input_filename; gnat_argc++; gnat_argv[gnat_argc] = 0; @@ -361,10 +360,7 @@ gnat_init (filename) set_lang_adjust_rli (gnat_adjust_rli); - if (filename == 0) - filename = ""; - - return filename; + return true; } /* If we are using the GCC mechanism for to process exception handling, we -- cgit v1.1