summaryrefslogtreecommitdiff
path: root/gprof/cg_dfn.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/cg_dfn.c
parent9193bc4285c232400a26448ca75095c44c13f637 (diff)
downloadbinutils-gdb-faa7a26040c617a6d29f601998b99a1da882c672.tar.gz
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/cg_dfn.c')
-rw-r--r--gprof/cg_dfn.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gprof/cg_dfn.c b/gprof/cg_dfn.c
index 1da4c66b84f..426bf43f78e 100644
--- a/gprof/cg_dfn.c
+++ b/gprof/cg_dfn.c
@@ -44,8 +44,8 @@ typedef struct
}
DFN_Stack;
-static bfd_boolean is_numbered (Sym *);
-static bfd_boolean is_busy (Sym *);
+static bool is_numbered (Sym *);
+static bool is_busy (Sym *);
static void find_cycle (Sym *);
static void pre_visit (Sym *);
static void post_visit (Sym *);
@@ -59,7 +59,7 @@ int dfn_counter = DFN_NAN;
/*
* Is CHILD already numbered?
*/
-static bfd_boolean
+static bool
is_numbered (Sym *child)
{
return child->cg.top_order != DFN_NAN && child->cg.top_order != DFN_BUSY;
@@ -69,14 +69,14 @@ is_numbered (Sym *child)
/*
* Is CHILD already busy?
*/
-static bfd_boolean
+static bool
is_busy (Sym *child)
{
if (child->cg.top_order == DFN_NAN)
{
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}