aboutsummaryrefslogtreecommitdiff
path: root/gprof/basic_blocks.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-08-12 19:06:24 +0000
committerIan Lance Taylor <ian@airs.com>1998-08-12 19:06:24 +0000
commit8c73afb3537b7271772a31466ec614a4d0634436 (patch)
tree639323c1b8888bf5fe9abcccb505211b1d56383b /gprof/basic_blocks.h
parent15ec5eb33b983e2900205cffd919cca52f8e1394 (diff)
downloadgdb-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/basic_blocks.h')
-rw-r--r--gprof/basic_blocks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/basic_blocks.h b/gprof/basic_blocks.h
index daba408..923eca1 100644
--- a/gprof/basic_blocks.h
+++ b/gprof/basic_blocks.h
@@ -10,8 +10,8 @@
* Options:
*/
extern bool bb_annotate_all_lines; /* force annotation of all lines? */
-extern int bb_table_length; /* length of most-used bb table */
-extern int bb_min_calls; /* minimum execution count */
+extern int bb_table_length; /* length of most-used bb table */
+extern unsigned long bb_min_calls; /* minimum execution count */
extern void bb_read_rec PARAMS ((FILE * ifp, const char *filename));
extern void bb_write_blocks PARAMS ((FILE * ofp, const char *filename));