aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ia64
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-06-10 10:23:00 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2004-06-10 10:23:00 +0200
commit897105a14e2a6d66f472b57e98793798e459b5a9 (patch)
treec7cc2d712294071551458cb28290573a83821d93 /gcc/config/ia64
parent37c849e40ef7215ae2f78862a483781811b69bc7 (diff)
downloadgcc-897105a14e2a6d66f472b57e98793798e459b5a9.zip
gcc-897105a14e2a6d66f472b57e98793798e459b5a9.tar.gz
gcc-897105a14e2a6d66f472b57e98793798e459b5a9.tar.bz2
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
Diffstat (limited to 'gcc/config/ia64')
-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 b4fe9ac..1c88b72 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;