From 675b9d612cc59446e84e2c6d89b45500cb603a8d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 2 Aug 2023 09:23:36 +0100 Subject: 2.41 Release sources --- gprof/sparc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gprof/sparc.c') diff --git a/gprof/sparc.c b/gprof/sparc.c index 019e58b..44724c4 100644 --- a/gprof/sparc.c +++ b/gprof/sparc.c @@ -51,9 +51,7 @@ sparc_find_call (Sym *parent, bfd_vma p_lowpc, bfd_vma p_highpc) DBG (CALLDEBUG, printf ("[find_call] %s: 0x%lx to 0x%lx\n", parent->name, (unsigned long) p_lowpc, (unsigned long) p_highpc)); - p_lowpc = (p_lowpc + 3) & ~3; - p_highpc &= ~3; - for (pc = p_lowpc; 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)); -- cgit v1.1