of basic-block info to/from gmon.out; computing and formatting of
basic-block related statistics.
- Copyright (C) 1999-2015 Free Software Foundation, Inc.
+ Copyright (C) 1999-2021 Free Software Foundation, Inc.
This file is part of GNU Binutils.
static void annotate_with_count (char *, unsigned int, int, PTR);
/* Default option values: */
-bfd_boolean bb_annotate_all_lines = FALSE;
+bool bb_annotate_all_lines = false;
unsigned long bb_min_calls = 1;
int bb_table_length = 10;
care about anymore. */
if ((fread (&ncalls, sizeof (ncalls), 1, ifp) != 1)
|| (fread (&addr, sizeof (addr), 1, ifp) != 1)
- || (fskip_string (ifp), FALSE)
- || (fskip_string (ifp), FALSE)
+ || (fskip_string (ifp), false)
+ || (fskip_string (ifp), false)
|| (fread (&line_num, sizeof (line_num), 1, ifp) != 1))
{
perror (filename);
}
else
{
- static bfd_boolean user_warned = FALSE;
+ static bool user_warned = false;
if (!user_warned)
{
- user_warned = TRUE;
+ user_warned = true;
fprintf (stderr,
_("%s: warning: ignoring basic-block exec counts (use -l or --line)\n"),
whoami);
<filename>:<line-number>: (<function-name>:<bb-addr): <ncalls> */
void
-print_exec_counts ()
+print_exec_counts (void)
{
Sym **sorted_bbs, *sym;
unsigned int i, j, len;
if (first_output)
- first_output = FALSE;
+ first_output = false;
else
printf ("\f\n");
line of a file in sequential order.
Global variable bb_annotate_all_lines enables execution count
- compression (counts are supressed if identical to the last one)
+ compression (counts are suppressed if identical to the last one)
and prints counts on all executed lines. Otherwise, print
all basic-block execution counts exactly once on the line
that starts the basic-block. */
regarding that source file are printed. */
void
-print_annotated_source ()
+print_annotated_source (void)
{
Sym *sym, *line_stats, *new_line;
Source_File *sf;