* sparc.c (find_call): Align p_lowpc to avoid bus error.

This commit is contained in:
Ian Lance Taylor 1996-10-02 19:23:38 +00:00
parent 30e23a1c92
commit 1259da3e77
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Oct 2 15:23:16 1996 Ian Lance Taylor <ian@cygnus.com>
* sparc.c (find_call): Align p_lowpc to avoid bus error.
Tue Oct 1 15:58:10 1996 Ian Lance Taylor <ian@cygnus.com>
* gprof.c (usage): Print bug report address.

View File

@ -49,7 +49,7 @@ find_call (parent, p_lowpc, p_highpc)
}
DBG (CALLDEBUG, printf ("[find_call] %s: 0x%lx to 0x%lx\n",
parent->name, p_lowpc, p_highpc));
for (instr = (unsigned int *) (p_lowpc + delta);
for (instr = (unsigned int *) (((p_lowpc + delta) + 3) &~ 3);
instr < (unsigned int *) (p_highpc + delta);
++instr)
{