* Makefile.in (GCOV_OBJS): Add version.o.
commitf5fff740499fed48b9fb0dd18cf4d166b820073f
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Nov 2001 21:48:49 +0000 (1 21:48 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Nov 2001 21:48:49 +0000 (1 21:48 +0000)
tree0f3412160a85317c31f372424279c4043baafa25
parent1e51b8ec1e408cd568cffe8ca51138a21eb191b9
* Makefile.in (GCOV_OBJS): Add version.o.
* gcov.c: Include "version.h" and <getopt.h>.
(gcov_version_string): Remove.
(print_usage): Take a parameter to determine whether this is a
call from --help or an error message.  Give fuller output that
follows the GNU Coding Standards for --help.
(print_version): New function.
(options): New.
(process_args): Use getopt_long.  Support long options.  Follow
GNU Coding Standards for --help and --version.
* doc/gcov.texi: Document long options.
Addresses part of PR other/704.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46703 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/doc/gcov.texi
gcc/gcov.c