aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/ia64/unwind-ia64.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fa7c16d..ed3165a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2004-06-10 Jakub Jelinek <jakub@redhat.com>
+ * 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 <jakub@redhat.com>
+
PR c++/14791
* tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
(fileptr_type_node): Define.
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;