diff options
author | Jason Merrill <jason@redhat.com> | 2002-01-07 17:41:42 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-01-07 17:41:42 -0500 |
commit | 7d8ac2930bce171807333f4d4aa6839e0120c16c (patch) | |
tree | e33eeef40fdd9893e09f089b42483a89dea6e375 /gcc | |
parent | 1b64d74774639ebc526df04e6cb620bac5635edd (diff) | |
download | gcc-7d8ac2930bce171807333f4d4aa6839e0120c16c.zip gcc-7d8ac2930bce171807333f4d4aa6839e0120c16c.tar.gz gcc-7d8ac2930bce171807333f4d4aa6839e0120c16c.tar.bz2 |
* unwind-dw2.c (execute_cfa_program): Use < again.
From-SVN: r48617
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/unwind-dw2.c | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f8967f..a13b5b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-01-07 Jason Merrill <jason@redhat.com> + + * unwind-dw2.c (execute_cfa_program): Use < again. + 2002-01-07 Jakub Jelinek <jakub@redhat.com> * predict.c (combine_predictions_for_insn): Avoid division by zero. diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index c2619bd..ef9b33b 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -705,7 +705,14 @@ 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) + /* The comparison with the return address uses < rather than <= because + we are only interested in the effects of code before the call; for a + noreturn function, the return address may point to unrelated code with + a different stack configuration that we are not interested in. We + assume that the call itself is unwind info-neutral; if not, or if + there are delay instructions that adjust the stack, these must be + reflected at the point immediately before the call insn. */ + while (insn_ptr < insn_end && fs->pc < context->ra) { unsigned char insn = *insn_ptr++; _Unwind_Word reg, utmp; |