]> gcc.gnu.org Git - gcc.git/commit
cpplib.h (struct cpp_reader): Add help_only field.
authorZack Weinberg <zack@wolery.stanford.edu>
Fri, 5 Jan 2001 23:41:00 +0000 (23:41 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 5 Jan 2001 23:41:00 +0000 (23:41 +0000)
commitf4cdc368349bc046cd0874408bad7fc6f2104a3a
treed4a4a93914e1c41a8f3f7e9b66d5a2e9ca0a0bac
parent3326b760b32854ee0f513b44d0be770fad8f49e6
cpplib.h (struct cpp_reader): Add help_only field.

* 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.

From-SVN: r38733
gcc/ChangeLog
gcc/cppinit.c
gcc/cpplib.h
gcc/cppmain.c
gcc/toplev.c
This page took 0.057326 seconds and 5 git commands to generate.