diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-05 23:41:00 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-05 23:41:00 +0000 |
commit | 1353d9f74da1d0abfcb3c790352dde5cf5f31a01 (patch) | |
tree | d4a4a93914e1c41a8f3f7e9b66d5a2e9ca0a0bac /gcc/cpplib.h | |
parent | c677d652f0a03564b77399d84deb558a3c519656 (diff) | |
download | ppe42-gcc-1353d9f74da1d0abfcb3c790352dde5cf5f31a01.tar.gz ppe42-gcc-1353d9f74da1d0abfcb3c790352dde5cf5f31a01.zip |
* cpplib.h (struct cpp_reader): Add help_only field.
* cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version.
(cpp_handle_option): Set pfile->help_only if we see -h,
--help, -target-help, or --version. Print version string but
do not set help_only if we see -v or -version. Make text
printed by -v match that printed by (-)-version.
* cppmain.c (main): Exit after option parsing if
pfile->help_only is true.
* toplev.c (independent_decode_option): Call print_version,
then exit, if we see --version (but not -version).
(print_version): Split lengthy message into two lines.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index c2049d787ab..7b53d0959c7 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -616,6 +616,10 @@ struct cpp_reader /* True if we are skipping a failed conditional group. */ unsigned char skipping; + + /* True if --help appeared in the options. Caller should then bail + out after option parsing and printing its own help. See cppmain.c. */ + unsigned char help_only; }; #define CPP_FATAL_LIMIT 1000 |