* ld-srec/sr3.cc: Add definitions for terminate, __terminate, and
[deliverable/binutils-gdb.git] / gprof / cg_arcs.c
index c6431e4b2eda787e603714c5aecd953de694e2df..f341a8f799a76d9595dfb76828f6d00995d7bde6 100644 (file)
@@ -84,6 +84,7 @@ DEFUN (arc_add, (parent, child, count),
       return;
     }
   arc = (Arc *) xmalloc (sizeof (*arc));
+  memset (arc, 0, sizeof (*arc));
   arc->parent = parent;
   arc->child = child;
   arc->count = count;
@@ -106,7 +107,7 @@ DEFUN (arc_add, (parent, child, 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);
@@ -576,8 +577,7 @@ DEFUN_VOID (cg_assemble)
   Sym *parent, **time_sorted_syms, **top_sorted_syms;
   long 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.
This page took 0.024145 seconds and 4 git commands to generate.