diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-30 12:05:54 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-30 12:05:54 +0000 |
commit | 1486870d76c8ec5ab28664fa7dcadd8ccc5e9723 (patch) | |
tree | 89dd65e70bf50b33a26d779913cd79c789b77b0b /gcc/gcov.c | |
parent | 70f75771561269ae78629d30ec70f44afc67d5b0 (diff) | |
download | gcc-1486870d76c8ec5ab28664fa7dcadd8ccc5e9723.tar.gz |
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o,
cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o,
gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on
system.h.
* cpphash.c: Include config.h.
* cppalloc.c: Include system.h. Add parameters to various
function prototypes.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* fix-header.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gengenrtl.c: Likewise.
* halfpic.c: Likewise.
* hash.c: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18911 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c index 69f0f56d706..c546bdce7b7 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -42,29 +42,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ only get execution counts for one or the other of the including files. */ #include "config.h" -#include <stdio.h> -#include "gansidecl.h" -#include <sys/types.h> +#include "system.h" #include <sys/stat.h> - -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif - -#ifdef HAVE_STRING_H -#include <string.h> -#else -#ifdef HAVE_STRINGS_H -#include <strings.h> -#endif -#endif +#include "gansidecl.h" #include "gcov-io.h" -#ifdef NEED_DECLARATION_RINDEX -extern char *rindex (); -#endif - /* The .bb file format consists of several lists of 4-byte integers which are the line numbers of each basic block in the file. Each list is terminated by a zero. These lists correspond to the basic @@ -230,11 +213,11 @@ static int output_function_summary = 0; static char *object_directory = 0; /* Forward declarations. */ -static void process_args (); -static void open_files (); -static void read_files (); -static void scan_for_source_files (); -static void output_data (); +static void process_args PROTO ((int, char **)); +static void open_files PROTO ((void)); +static void read_files PROTO ((void)); +static void scan_for_source_files PROTO ((void)); +static void output_data PROTO ((void)); char * xmalloc (); int |