summaryrefslogtreecommitdiff
path: root/gcc/config/ia64/unwind-ia64.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-10 08:23:00 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-10 08:23:00 +0000
commit5b041af5b3b4ab2dc5392c139525fee6c5151a29 (patch)
treec7cc2d712294071551458cb28290573a83821d93 /gcc/config/ia64/unwind-ia64.c
parent6bc491fa1264e8d3dbcd8a8c3675436f158deed4 (diff)
downloadgcc-5b041af5b3b4ab2dc5392c139525fee6c5151a29.tar.gz
* config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
leaf function without unwind info at RP 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ia64/unwind-ia64.c')
-rw-r--r--gcc/config/ia64/unwind-ia64.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/ia64/unwind-ia64.c b/gcc/config/ia64/unwind-ia64.c
index b4fe9ac1c4c..1c88b729064 100644
--- a/gcc/config/ia64/unwind-ia64.c
+++ b/gcc/config/ia64/unwind-ia64.c
@@ -1783,8 +1783,10 @@ uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs)
an unwind table entry.
This can only happen in the frame after unwinding through a signal
- handler. Avoid infinite looping by requiring that B0 != RP. */
- if (context->br_loc[0] && *context->br_loc[0] != context->rp)
+ handler. Avoid infinite looping by requiring that B0 != RP.
+ RP == 0 terminates the chain. */
+ if (context->br_loc[0] && *context->br_loc[0] != context->rp
+ && context->rp != 0)
{
fs->curr.reg[UNW_REG_RP].where = UNW_WHERE_BR;
fs->curr.reg[UNW_REG_RP].when = -1;