aboutsummaryrefslogtreecommitdiff
path: root/gprof/cg_arcs.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_arcs.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/cg_arcs.c')
-rw-r--r--gprof/cg_arcs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gprof/cg_arcs.c b/gprof/cg_arcs.c
index fefe4b8..77534ae 100644
--- a/gprof/cg_arcs.c
+++ b/gprof/cg_arcs.c
@@ -308,7 +308,7 @@ cycle_link (void)
++num;
++cyc;
sym_init (cyc);
- cyc->cg.print_flag = TRUE; /* should this be printed? */
+ cyc->cg.print_flag = true; /* should this be printed? */
cyc->cg.top_order = DFN_NAN; /* graph call chain top-sort order */
cyc->cg.cyc.num = num; /* internal number of cycle on */
cyc->cg.cyc.head = cyc; /* pointer to head of cycle */
@@ -366,7 +366,7 @@ inherit_flags (Sym *child)
if (child == head)
{
/* just a regular child, check its parents: */
- child->cg.print_flag = FALSE;
+ child->cg.print_flag = false;
child->cg.prop.fract = 0.0;
for (arc = child->cg.parents; arc; arc = arc->next_parent)
{
@@ -394,7 +394,7 @@ inherit_flags (Sym *child)
* Its a member of a cycle, look at all parents from outside
* the cycle.
*/
- head->cg.print_flag = FALSE;
+ head->cg.print_flag = false;
head->cg.prop.fract = 0.0;
for (member = head->cg.cyc.next; member; member = member->cg.cyc.next)
{
@@ -471,7 +471,7 @@ propagate_flags (Sym **symbols)
|| (syms[INCL_GRAPH].len == 0
&& !sym_lookup (&syms[EXCL_GRAPH], child->addr)))
{
- child->cg.print_flag = TRUE;
+ child->cg.print_flag = true;
}
}
else
@@ -484,7 +484,7 @@ propagate_flags (Sym **symbols)
if (!sym_lookup (&syms[INCL_GRAPH], child->addr)
&& sym_lookup (&syms[EXCL_GRAPH], child->addr))
{
- child->cg.print_flag = FALSE;
+ child->cg.print_flag = false;
}
}
if (child->cg.prop.fract == 0.0)
@@ -617,7 +617,7 @@ cg_assemble (void)
parent->cg.prop.fract = 0.0;
parent->cg.prop.self = 0.0;
parent->cg.prop.child = 0.0;
- parent->cg.print_flag = FALSE;
+ parent->cg.print_flag = false;
parent->cg.top_order = DFN_NAN;
parent->cg.cyc.num = 0;
parent->cg.cyc.head = parent;