gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gprof / cg_dfn.c
index 6d19afcb587a32c4be2620ccbf848b9d50444afd..1da4c66b84f215b80774f5ed12ba5d5d289ab015 100644 (file)
@@ -92,7 +92,7 @@ find_cycle (Sym *child)
   Sym *head = 0;
   Sym *tail;
   int cycle_top;
-  int index;
+  int cycle_index;
 
   for (cycle_top = dfn_depth; cycle_top > 0; --cycle_top)
     {
@@ -169,9 +169,9 @@ find_cycle (Sym *child)
               print_name (head);
               printf ("\n"));
        }
-      for (index = cycle_top + 1; index <= dfn_depth; ++index)
+      for (cycle_index = cycle_top + 1; cycle_index <= dfn_depth; ++cycle_index)
        {
-         child = dfn_stack[index].sym;
+         child = dfn_stack[cycle_index].sym;
          if (child->cg.cyc.head == child)
            {
              /*
@@ -217,7 +217,8 @@ pre_visit (Sym *parent)
   if (dfn_depth >= dfn_maxdepth)
     {
       dfn_maxdepth += DFN_INCR_DEPTH;
-      dfn_stack = xrealloc (dfn_stack, dfn_maxdepth * sizeof *dfn_stack);
+      dfn_stack = (DFN_Stack *) xrealloc (dfn_stack,
+                                          dfn_maxdepth * sizeof *dfn_stack);
     }
 
   dfn_stack[dfn_depth].sym = parent;
This page took 0.024206 seconds and 4 git commands to generate.