* sparc.c (find_call): Align p_lowpc to avoid bus error.
This commit is contained in:
parent
30e23a1c92
commit
1259da3e77
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue