aboutsummaryrefslogtreecommitdiff
path: root/gprof/basic_blocks.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-31 10:29:52 +1030
committerAlan Modra <amodra@gmail.com>2021-03-31 10:49:23 +1030
commitfaa7a26040c617a6d29f601998b99a1da882c672 (patch)
tree704031231af1213b66d56395a5edaa65a043dd0b /gprof/basic_blocks.c
parent9193bc4285c232400a26448ca75095c44c13f637 (diff)
downloadfsf-binutils-gdb-faa7a26040c617a6d29f601998b99a1da882c672.zip
fsf-binutils-gdb-faa7a26040c617a6d29f601998b99a1da882c672.tar.gz
fsf-binutils-gdb-faa7a26040c617a6d29f601998b99a1da882c672.tar.bz2
Use bool in gprof
* basic_blocks.c: Replace bfd_boolean with bool, FALSE with false, and TRUE with true throughout. * basic_blocks.h: Likewise. * cg_arcs.c: Likewise. * cg_dfn.c: Likewise. * cg_print.c: Likewise. * corefile.c: Likewise. * gmon_io.c: Likewise. * gprof.c: Likewise. * gprof.h: Likewise. * hist.c: Likewise. * mips.c: Likewise. * source.c: Likewise. * source.h: Likewise. * sym_ids.c: Likewise. * sym_ids.h: Likewise. * symtab.h: Likewise. * vax.c: Likewise.
Diffstat (limited to 'gprof/basic_blocks.c')
-rw-r--r--gprof/basic_blocks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c
index 0245fb5..5868338 100644
--- a/gprof/basic_blocks.c
+++ b/gprof/basic_blocks.c
@@ -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);
@@ -254,7 +254,7 @@ print_exec_counts (void)
unsigned int i, j, len;
if (first_output)
- first_output = FALSE;
+ first_output = false;
else
printf ("\f\n");