diff options
author | Richard Henderson <rth@redhat.com> | 2004-09-30 01:21:27 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-09-30 01:21:27 -0700 |
commit | 282efe1c41e928262612d9c6291805a21f50906f (patch) | |
tree | b68f70cabfd53a484ae0dea743781e11afb3cfd7 /gcc/unwind-dw2.c | |
parent | de39930392eda3a8a298e70d07f997eba84c5afe (diff) | |
download | gcc-282efe1c41e928262612d9c6291805a21f50906f.tar.gz |
unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
* unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
* doc/tm.texi (DWARF_ZERO_REG): New.
* config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
* config/alpha/alpha.h (DWARF_ZERO_REG): New.
From-SVN: r88331
Diffstat (limited to 'gcc/unwind-dw2.c')
-rw-r--r-- | gcc/unwind-dw2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 67b8d1cd066..baa4481c747 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -125,6 +125,11 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index) int size; void *ptr; +#ifdef DWARF_ZERO_REG + if (index == DWARF_ZERO_REG) + return 0; +#endif + index = DWARF_REG_TO_UNWIND_COLUMN (index); if (index >= (int) sizeof(dwarf_reg_size_table)) abort (); |