Automatic date update in version.in
[deliverable/binutils-gdb.git] / gprof / basic_blocks.c
index d50886746168968b85c17223cb519bf7d734923f..586833879a22669ca8c8aaec149dae7eada79315 100644 (file)
@@ -2,7 +2,7 @@
    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.
 
@@ -39,7 +39,7 @@ static void fskip_string (FILE *);
 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;
 
@@ -144,8 +144,8 @@ bb_read_rec (FILE *ifp, const char *filename)
             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);
@@ -187,11 +187,11 @@ bb_read_rec (FILE *ifp, const char *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);
@@ -248,13 +248,13 @@ bb_write_blocks (FILE *ofp, const char *filename)
        <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");
 
@@ -311,7 +311,7 @@ print_exec_counts ()
    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.  */
@@ -459,7 +459,7 @@ annotate_with_count (char *buf, unsigned int width, int line_num, PTR arg)
    regarding that source file are printed.  */
 
 void
-print_annotated_source ()
+print_annotated_source (void)
 {
   Sym *sym, *line_stats, *new_line;
   Source_File *sf;
This page took 0.026266 seconds and 4 git commands to generate.