From 90f4c415efc65ccd45f21f4a13f276e7f0332398 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Wed, 7 Nov 2001 07:33:57 +0100 Subject: [PATCH] unwind-dw2.c (execute_cfa_program): Evaluate call frame instructions up to the target pc inclusive. * unwind-dw2.c (execute_cfa_program): Evaluate call frame instructions up to the target pc inclusive. From-SVN: r46818 --- gcc/ChangeLog | 5 +++++ gcc/unwind-dw2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab7b2fad794..dab2e25d8d5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-06 Olivier Hainque + + * unwind-dw2.c (execute_cfa_program): Evaluate call frame + instructions up to the target pc inclusive. + 2001-11-06 Steve Christiansen * loop.c (loop_regs_scan): Don't invalidate PIC register. diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index e013ce67317..5d335c6cc64 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -700,7 +700,7 @@ execute_cfa_program (const unsigned char *insn_ptr, /* Don't allow remember/restore between CIE and FDE programs. */ fs->regs.prev = NULL; - while (insn_ptr < insn_end && fs->pc < context->ra) + while (insn_ptr < insn_end && fs->pc <= context->ra) { unsigned char insn = *insn_ptr++; _Unwind_Word reg, utmp; -- 2.30.2