summaryrefslogtreecommitdiff
path: root/gcc/unwind-dw2.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-30 08:21:27 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-30 08:21:27 +0000
commit223e8e29888f72b85b73b9c059f07d0f16f0b795 (patch)
treeb68f70cabfd53a484ae0dea743781e11afb3cfd7 /gcc/unwind-dw2.c
parent784bf0a0896463245b1887df6ce4292048cca452 (diff)
downloadgcc-223e8e29888f72b85b73b9c059f07d0f16f0b795.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88331 138bc75d-0d04-0410-961f-82ee72b054a4
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 ();