projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explicit locations: introduce explicit locations
[deliverable/binutils-gdb.git]
/
gprof
/
cg_dfn.c
diff --git
a/gprof/cg_dfn.c
b/gprof/cg_dfn.c
index 50be4be0b976dd4a90d276165bfd64b847db1eab..1da4c66b84f215b80774f5ed12ba5d5d289ab015 100644
(file)
--- a/
gprof/cg_dfn.c
+++ b/
gprof/cg_dfn.c
@@
-26,8
+26,8
@@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#include "libiberty.h"
#include "gprof.h"
#include "gprof.h"
+#include "libiberty.h"
#include "search_list.h"
#include "source.h"
#include "symtab.h"
#include "search_list.h"
#include "source.h"
#include "symtab.h"
@@
-92,7
+92,7
@@
find_cycle (Sym *child)
Sym *head = 0;
Sym *tail;
int cycle_top;
Sym *head = 0;
Sym *tail;
int cycle_top;
- int index;
+ int
cycle_
index;
for (cycle_top = dfn_depth; cycle_top > 0; --cycle_top)
{
for (cycle_top = dfn_depth; cycle_top > 0; --cycle_top)
{
@@
-169,9
+169,9
@@
find_cycle (Sym *child)
print_name (head);
printf ("\n"));
}
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)
{
/*
if (child->cg.cyc.head == child)
{
/*
@@
-217,7
+217,8
@@
pre_visit (Sym *parent)
if (dfn_depth >= dfn_maxdepth)
{
dfn_maxdepth += DFN_INCR_DEPTH;
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;
}
dfn_stack[dfn_depth].sym = parent;
This page took
0.023899 seconds
and
4
git commands to generate.