diff options
author | Alan Modra <amodra@gmail.com> | 2002-02-01 08:24:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-02-01 08:24:16 +0000 |
commit | 1355568ab48a9dcfd079493f7deb5e1c5e88015b (patch) | |
tree | 9b1cc576a383708096f9c89c5800bd25f6126768 /gprof/alpha.c | |
parent | 48fa4a5def1116273c2c2a236939e96eb9b6231a (diff) | |
download | gdb-1355568ab48a9dcfd079493f7deb5e1c5e88015b.zip gdb-1355568ab48a9dcfd079493f7deb5e1c5e88015b.tar.gz gdb-1355568ab48a9dcfd079493f7deb5e1c5e88015b.tar.bz2 |
* alpha.c (alpha_find_call): Warning fixes.
* mips.c (mips_find_call): Likewise.
* sparc.c (sparc_find_call): Likewise.
* basic_blocks.c: Warning fixes. Eliminate DEFUN.
* call_graph.c: Likewise.
* cg_arcs.c: Likewise.
* cg_dfn.cp: Likewise.
* gprof.c: Likewise.
* gprof.h: Likewise.
* hist.c: Likewise.
* search_list.c: Likewise.
* source.c: Likewise.
* source.h: Likewise.
* sym_ids.c: Likewise.
* symtab.c: Likewise.
* symtab.h: Likewise.
* utils.c: Likewise.
* cg_print.c: Likewise.
(struct function_map, symbol_map, symbol_map_count): Move
declaration to..
* corefile: ..here.
* corefile.c: Warning fixes. Eliminate DEFUN.
(struct function_map): Remove declaration.
* gmon_io.c: Warning fixes. Eliminate DEFUN.
(gmon_io_read_64): Make static.
(gmon_io_write_64): Likewise.
(gmon_read_raw_arc): Likewise.
(gmon_write_raw_arc): Likewise.
(gmon_io_write_8): Don't pass char, pass int param.
* gmon_io.h (gmon_io_write_8): Likewise.
and a few copyright dates that should have been done previously.
Diffstat (limited to 'gprof/alpha.c')
-rw-r--r-- | gprof/alpha.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/alpha.c b/gprof/alpha.c index 978f2ab..bcb4d9d 100644 --- a/gprof/alpha.c +++ b/gprof/alpha.c @@ -84,7 +84,7 @@ alpha_find_call (parent, p_lowpc, p_highpc) bfd_vma p_highpc; { bfd_vma pc, dest_pc; - unsigned long insn; + unsigned int insn; Sym *child; if (indirect_child.name == NULL) @@ -110,7 +110,7 @@ alpha_find_call (parent, p_lowpc, p_highpc) DBG (CALLDEBUG, printf (_("[find_call] %s: 0x%lx to 0x%lx\n"), parent->name, (unsigned long) p_lowpc, (unsigned long) p_highpc)); - for (pc = (p_lowpc + 3) & ~3; pc < p_highpc; pc += 4) + for (pc = (p_lowpc + 3) & ~(bfd_vma) 3; pc < p_highpc; pc += 4) { insn = bfd_get_32 (core_bfd, ((unsigned char *) core_text_space + pc - core_text_sect->vma)); |