From 4169c321d07546a66be69a0d4c448862c971d640 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sat, 9 Aug 2003 22:14:07 +0000 Subject: 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 --- gcc/c-opts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/c-opts.c') diff --git a/gcc/c-opts.c b/gcc/c-opts.c index e2a3043..462ca24 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1126,6 +1126,7 @@ c_common_post_options (const char **pfilename) } cpp_get_callbacks (parse_in)->file_change = cb_file_change; + cpp_post_options (parse_in); /* NOTE: we use in_fname here, not the one supplied. */ *pfilename = cpp_read_main_file (parse_in, in_fnames[0]); @@ -1196,7 +1197,7 @@ c_common_parse_file (int set_yydebug ATTRIBUTE_UNUSED) /* Reset cpplib's macros and start a new file. */ cpp_undef_all (parse_in); - cpp_stack_file (parse_in, in_fnames[file_index]); + cpp_read_main_file (parse_in, in_fnames[file_index]); } finish_options(in_fnames[file_index]); -- cgit v1.1