diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-20 16:46:18 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-20 16:46:18 +0000 |
commit | 568139e45314dddea8e1d218ea3d61b1235a5b8d (patch) | |
tree | cff696dfa377a0cf3e735f28e287645b12baeba7 /gcc/fix-header.c | |
parent | e9f0d687a15f6a1864fdf1a3773486e376417233 (diff) | |
download | gcc-568139e45314dddea8e1d218ea3d61b1235a5b8d.tar.gz |
Various cleanups to help compile server.
* cppinit.c (cpp_create_reader): Take extra hash_table* argument,
and pass that to _cpp_init_hashtable.
(cpp_read_main_file): Drop hash_table* argument; don't call
_cpp_init_hashtable.
* cpplib.h: Update declarations to match.
* c-opts.c (c_common_init_options): Pass ident_hash to
cpp_create_reader.
(c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
* fix-header.c (read_scan_file): Likewise pass NULL table to
cpp_create_reader rather than cpp_read_main_file.
* cppfiles.c (cpp_rename_file): Generalized and renamed
to cpp_change_file.
* cpplib.h: Update declaration to match.
* c-opts.c (push_command_line_line, finish_options): Change
cpp_rename_file calls to cpp_change_file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64617 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r-- | gcc/fix-header.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 8434ccee657..423cd57fb8f 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -622,7 +622,7 @@ read_scan_file (in_fname, argc, argv) obstack_init (&scan_file_obstack); - scan_in = cpp_create_reader (CLK_GNUC89); + scan_in = cpp_create_reader (CLK_GNUC89, NULL); cb = cpp_get_callbacks (scan_in); cb->file_change = cb_file_change; @@ -632,7 +632,7 @@ read_scan_file (in_fname, argc, argv) options->inhibit_warnings = 1; options->inhibit_errors = 1; - if (! cpp_read_main_file (scan_in, in_fname, NULL)) + if (! cpp_read_main_file (scan_in, in_fname)) exit (FATAL_EXIT_CODE); for (i = 0; i < argc; i += strings_processed) @@ -675,9 +675,9 @@ read_scan_file (in_fname, argc, argv) true /* stdinc */, false /* cxx_stdinc */, false /* verbose */); - cpp_rename_file (scan_in, "<built-in>"); + cpp_change_file (scan_in, LC_RENAME, "<built-in>"); cpp_init_builtins (scan_in); - cpp_rename_file (scan_in, in_fname); + cpp_change_file (scan_in, LC_RENAME, in_fname); /* We are scanning a system header, so mark it as such. */ cpp_make_system_header (scan_in, 1, 0); |