diff options
author | Ian Lance Taylor <ian@airs.com> | 1998-08-12 19:06:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1998-08-12 19:06:24 +0000 |
commit | 8c73afb3537b7271772a31466ec614a4d0634436 (patch) | |
tree | 639323c1b8888bf5fe9abcccb505211b1d56383b /gprof/cg_arcs.h | |
parent | 15ec5eb33b983e2900205cffd919cca52f8e1394 (diff) | |
download | gdb-8c73afb3537b7271772a31466ec614a4d0634436.zip gdb-8c73afb3537b7271772a31466ec614a4d0634436.tar.gz gdb-8c73afb3537b7271772a31466ec614a4d0634436.tar.bz2 |
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.
Diffstat (limited to 'gprof/cg_arcs.h')
-rw-r--r-- | gprof/cg_arcs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/cg_arcs.h b/gprof/cg_arcs.h index b9c3a36..caa0197 100644 --- a/gprof/cg_arcs.h +++ b/gprof/cg_arcs.h @@ -15,7 +15,7 @@ typedef struct arc { Sym *parent; /* source vertice of arc */ Sym *child; /* dest vertice of arc */ - int count; /* # of calls from parent to child */ + unsigned long count; /* # of calls from parent to child */ double time; /* time inherited along arc */ double child_time; /* child-time inherited along arc */ struct arc *next_parent; /* next parent of CHILD */ @@ -27,7 +27,7 @@ Arc; extern unsigned int num_cycles; /* number of cycles discovered */ extern Sym *cycle_header; /* cycle headers */ -extern void arc_add PARAMS ((Sym * parent, Sym * child, int count)); +extern void arc_add PARAMS ((Sym * parent, Sym * child, unsigned long count)); extern Arc *arc_lookup PARAMS ((Sym * parent, Sym * child)); extern Sym **cg_assemble PARAMS ((void)); extern Arc **arcs; |