diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-08 21:12:26 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-08 21:12:26 +0000 |
commit | 03bde6017ce5581fcb73761fa8c5210ee12631aa (patch) | |
tree | 6dbda9aef13aa04d7c15b46cb0bda16747482b8d /gcc/cp | |
parent | 0d409008b0302a0de479fbe32900561a70bd37d5 (diff) | |
download | ppe42-gcc-03bde6017ce5581fcb73761fa8c5210ee12631aa.tar.gz ppe42-gcc-03bde6017ce5581fcb73761fa8c5210ee12631aa.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64001 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 | ||||
-rw-r--r-- | gcc/cp/lex.c | 14 |
3 files changed, 12 insertions, 9 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 53e1b74c296..fda3b808f3b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-03-08 Neil Booth <neil@daikokuya.co.uk> + + * cp-tree.h (cxx_init): Update prototype. + * lex.c (cxx_init): Similarly. + 2003-03-08 Mark Mitchell <mark@codesourcery.com> PR c++/9823 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index b4eeb768ec4..69082912e14 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3964,7 +3964,7 @@ extern tree make_aggr_type (enum tree_code); extern void yyerror (const char *); extern void yyhook (int); extern int cp_type_qual_from_rid (tree); -extern const char *cxx_init (const char *); +extern bool cxx_init (void); extern void cxx_finish (void); extern void cxx_init_options (void); diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 774ed10ede1..6433f2b1e0b 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -406,9 +406,8 @@ init_cp_pragma () the exact order that things are done here. It would be nice if the initialization done by this routine were moved to its subroutines, and the ordering dependencies clarified and reduced. */ -const char * -cxx_init (filename) - const char *filename; +bool +cxx_init (void) { input_filename = "<internal>"; @@ -446,15 +445,14 @@ cxx_init (filename) interface_unknown = 1; - filename = c_common_init (filename); - if (filename == NULL) - return NULL; + if (c_common_init () == false) + return false; init_cp_pragma (); - init_repo (filename); + init_repo (main_input_filename); - return filename; + return true; } /* Helper function to load global variables with interface |