From: Jakub Jelinek Date: Thu, 10 Jun 2004 08:23:00 +0000 (+0200) Subject: unwind-ia64.c (uw_frame_state_for): Don't assume a leaf function without unwind info... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=897105a14e2a6d66f472b57e98793798e459b5a9;p=gcc.git unwind-ia64.c (uw_frame_state_for): Don't assume a leaf function without unwind info at RP 0. * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a leaf function without unwind info at RP 0. From-SVN: r82906 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa7c16d3489..ed3165aa850 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-10 Jakub Jelinek + + * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a + leaf function without unwind info at RP 0. + 2004-06-10 Jakub Jelinek PR c++/14791 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;