summaryrefslogtreecommitdiff
path: root/gprof/sparc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-30 22:38:30 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-30 22:38:30 +0000
commitfdcf7d43287e77faef1282771bd95a56dd141d1f (patch)
tree46d423601e62ca0ed94ac84b0e72a67f60a0c5ec /gprof/sparc.c
parent106117aa9f2948a25030e85b9bcac81f43fdce3e (diff)
downloadbinutils-gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.gz
* Many files: Add casts in many print statements to cast bfd_vma
values to unsigned long when calling printf. * Makefile.am ($(OBJECTS)): Add gmon.h. * Makefile.in: Rebuild.
Diffstat (limited to 'gprof/sparc.c')
-rw-r--r--gprof/sparc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gprof/sparc.c b/gprof/sparc.c
index ad702b1fbad..03658276393 100644
--- a/gprof/sparc.c
+++ b/gprof/sparc.c
@@ -52,7 +52,8 @@ sparc_find_call (parent, p_lowpc, p_highpc)
p_highpc = s_highpc;
}
DBG (CALLDEBUG, printf ("[find_call] %s: 0x%lx to 0x%lx\n",
- parent->name, p_lowpc, p_highpc));
+ parent->name, (unsigned long) p_lowpc,
+ (unsigned long) p_highpc));
for (instr = (unsigned int *) (((p_lowpc + delta) + 3) &~ 3);
instr < (unsigned int *) (p_highpc + delta);
++instr)
@@ -60,7 +61,8 @@ sparc_find_call (parent, p_lowpc, p_highpc)
if ((*instr & CALL))
{
DBG (CALLDEBUG,
- printf ("[find_call] 0x%lx: callf", (bfd_vma) instr - delta));
+ printf ("[find_call] 0x%lx: callf",
+ (unsigned long) instr - delta));
/*
* Regular pc relative addressing check that this is the
* address of a function.
@@ -71,7 +73,8 @@ sparc_find_call (parent, p_lowpc, p_highpc)
child = sym_lookup (&symtab, dest_pc);
DBG (CALLDEBUG,
printf ("\tdest_pc=0x%lx, (name=%s, addr=0x%lx)\n",
- dest_pc, child->name, child->addr));
+ (unsigned long) dest_pc, child->name,
+ (unsigned long) child->addr));
if (child->addr == dest_pc)
{
/* a hit: */