diff options
author | Per Bothner <pbothner@apple.com> | 2003-08-09 22:14:07 +0000 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-08-09 15:14:07 -0700 |
commit | 4169c321d07546a66be69a0d4c448862c971d640 (patch) | |
tree | 128dea28dd9ac999f2887671bb6668d7a150269c /gcc/c-opts.c | |
parent | 3d93cdfa884d3308eabaafa46e7bfda27c2234b8 (diff) | |
download | gcc-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/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 3 |
1 files changed, 2 insertions, 1 deletions
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]); |