aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-03-20 16:46:18 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-03-20 08:46:18 -0800
commitb4e46cea24515316b941bfacae8417c078fc5701 (patch)
treecff696dfa377a0cf3e735f28e287645b12baeba7 /gcc/fix-header.c
parent8826ff0fcd12a506e2e91df9e4cae05747b88f13 (diff)
downloadgcc-b4e46cea24515316b941bfacae8417c078fc5701.zip
gcc-b4e46cea24515316b941bfacae8417c078fc5701.tar.gz
gcc-b4e46cea24515316b941bfacae8417c078fc5701.tar.bz2
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. From-SVN: r64617
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 8434cce..423cd57 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);