Avoid some overflow cases:

* basic_blocks.h (bb_min_calls): Change to unsigned long.
	* call_graph.h (cg_tally): Change count parameter to unsigned
	long.
	* cg_arcs.h (Arc): Change count field to unsigned long.
	(arc_add): Change count parameter to unsigned long.
	* source.h (Source_File): Change ncalls field to unsigned long.
	* symtab.h (Sym): Change fields ncalls, bb_calls, and
	cg.self_calls to unsigned long.
	* Many files: Update accordingly.
This commit is contained in:
Ian Lance Taylor
1998-08-12 19:06:24 +00:00
parent 15ec5eb33b
commit 8c73afb353
19 changed files with 110 additions and 86 deletions

View File

@ -9,7 +9,7 @@ typedef struct source_file
{
struct source_file *next;
const char *name; /* name of source file */
int ncalls; /* # of "calls" to this file */
unsigned long ncalls; /* # of "calls" to this file */
int num_lines; /* # of lines in file */
int nalloced; /* number of lines allocated */
void **line; /* usage-dependent per-line data */