aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-08-09 22:14:07 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-08-09 15:14:07 -0700
commit4169c321d07546a66be69a0d4c448862c971d640 (patch)
tree128dea28dd9ac999f2887671bb6668d7a150269c /gcc/fix-header.c
parent3d93cdfa884d3308eabaafa46e7bfda27c2234b8 (diff)
downloadgcc-4169c321d07546a66be69a0d4c448862c971d640.zip
gcc-4169c321d07546a66be69a0d4c448862c971d640.tar.gz
gcc-4169c321d07546a66be69a0d4c448862c971d640.tar.bz2
cppinit.c (cpp_read_main_file): Split out source-independent initialization to separate function ...
* cppinit.c (cpp_read_main_file): Split out source-independent initialization to separate function ... (cpp_post_options): New function. * cppfiles.c (cpp_stack_file): Rename public name to ... (_cpp_stack_file): New internal function name. * cpplib.h: Update accordingly. * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here. (cpp_read_main_file): Don't initialize line here. * c-opts.c (c_common_post_options): Call cpp_post_options. (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file. * fix-header.c (read_scan_file): Call cpp_post_options. From-SVN: r70279
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 0c55481..0f5f8c0 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -602,6 +602,7 @@ read_scan_file (char *in_fname, int argc, char **argv)
options = cpp_get_options (scan_in);
options->inhibit_warnings = 1;
options->inhibit_errors = 1;
+ cpp_post_options (scan_in);
if (! cpp_read_main_file (scan_in, in_fname))
exit (FATAL_EXIT_CODE);