diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-30 22:38:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-30 22:38:30 +0000 |
commit | 72e13bb9e4ed7b8084103793630985fde2625eb1 (patch) | |
tree | 9a62a94cb9f22946201ec73cf6f19c3275301e97 /gprof/i386.c | |
parent | 40ccfaaf3baa70f9a5a2ddf250c277393c305cc3 (diff) | |
download | binutils-redhat-72e13bb9e4ed7b8084103793630985fde2625eb1.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/i386.c')
-rw-r--r-- | gprof/i386.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gprof/i386.c b/gprof/i386.c index 18aad1caee..2abf2dc8fa 100644 --- a/gprof/i386.c +++ b/gprof/i386.c @@ -55,7 +55,8 @@ i386_find_call (parent, p_lowpc, p_highpc) p_highpc = s_highpc; } DBG (CALLDEBUG, printf ("[findcall] %s: 0x%lx to 0x%lx\n", - parent->name, p_lowpc, p_highpc)); + parent->name, (unsigned long) p_lowpc, + (unsigned long) p_highpc)); delta = (bfd_vma) core_text_space - core_text_sect->vma; @@ -85,7 +86,8 @@ i386_find_call (parent, p_lowpc, p_highpc) * a hit */ DBG (CALLDEBUG, - printf ("\tdestpc 0x%lx (%s)\n", destpc, child->name)); + printf ("\tdestpc 0x%lx (%s)\n", + (unsigned long) destpc, child->name)); arc_add (parent, child, (unsigned long) 0); instructp += 4; /* call is a 5 byte instruction */ continue; |