summaryrefslogtreecommitdiff
path: root/gcc/unwind-dw2.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-09-30 01:21:27 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-09-30 01:21:27 -0700
commit282efe1c41e928262612d9c6291805a21f50906f (patch)
treeb68f70cabfd53a484ae0dea743781e11afb3cfd7 /gcc/unwind-dw2.c
parentde39930392eda3a8a298e70d07f997eba84c5afe (diff)
downloadgcc-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.c5
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 ();