cpphash.h (struct cpp_reader): Add print_version field.
authorZack Weinberg <zackw@stanford.edu>
Fri, 2 Mar 2001 00:42:28 +0000 (00:42 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 2 Mar 2001 00:42:28 +0000 (00:42 +0000)
commitcb7738452f613d5f10acc3e816c48be679c67087
tree4ecc2785da359d98a20a15c593a6295bd53281e7
parent71b7be38c3f1d50ca004b3aa1c21e206d595c67f
cpphash.h (struct cpp_reader): Add print_version field.

* cpphash.h (struct cpp_reader): Add print_version field.
* cppinit.c (cpp_handle_option): For -v, -version, and --version,
just set print_version and other flags as appropriate.
(cpp_post_options): Print version here if print_version is set.

* toplev.c (exit_after_options): New flag.
(independent_decode_option): Don't exit here; just set
exit_after_options.
(main): Exit after calling lang_hooks.post_options if
exit_after_options is true.

* cppinit.c (append_include_chain): Drop never-used case QUOTE.
(merge_include_chains): Adjust comment to match code.

From-SVN: r40171
gcc/ChangeLog
gcc/cpphash.h
gcc/cppinit.c
gcc/toplev.c