diff options
author | Zack Weinberg <zackw@stanford.edu> | 2001-03-02 00:42:28 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-03-02 00:42:28 +0000 |
commit | cb7738452f613d5f10acc3e816c48be679c67087 (patch) | |
tree | 4ecc2785da359d98a20a15c593a6295bd53281e7 /gcc/cpphash.h | |
parent | 71b7be38c3f1d50ca004b3aa1c21e206d595c67f (diff) | |
download | gcc-cb7738452f613d5f10acc3e816c48be679c67087.zip gcc-cb7738452f613d5f10acc3e816c48be679c67087.tar.gz gcc-cb7738452f613d5f10acc3e816c48be679c67087.tar.bz2 |
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
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index ddeacac..14df2da 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -343,6 +343,10 @@ struct cpp_reader /* True if we are skipping a failed conditional group. */ unsigned char skipping; + + /* Whether to print our version number. Done this way so + we don't get it twice for -v -version. */ + unsigned char print_version; }; /* Character classes. Based on the more primitive macros in safe-ctype.h. |