#include "sym_ids.h"
Sym *cycle_header;
-int num_cycles;
+unsigned int num_cycles;
Arc **arcs;
-int numarcs;
+unsigned int numarcs;
/*
* Return TRUE iff PARENT has an arc to covers the address
DEFUN (arc_add, (parent, child, count),
Sym * parent AND Sym * child AND int count)
{
- static int maxarcs = 0;
+ static unsigned int maxarcs = 0;
Arc *arc, **newarcs;
DBG (TALLYDEBUG, printf ("[arc_add] %d arcs from %s to %s\n",
return;
}
arc = (Arc *) xmalloc (sizeof (*arc));
+ memset (arc, 0, sizeof (*arc));
arc->parent = parent;
arc->child = child;
arc->count = count;
newarcs = (Arc **)xmalloc(sizeof (Arc *) * maxarcs);
/* Copy the old array's contents into the new array. */
- bcopy (arcs, newarcs, numarcs * sizeof (Arc *));
+ memcpy (newarcs, arcs, numarcs * sizeof (Arc *));
/* Free up the old array. */
free (arcs);
DEFUN_VOID (cg_assemble)
{
Sym *parent, **time_sorted_syms, **top_sorted_syms;
- long index;
+ unsigned int index;
Arc *arc;
- extern void find_call PARAMS ((Sym * parent,
- bfd_vma p_lowpc, bfd_vma p_highpc));
+
/*
* initialize various things:
* zero out child times.