aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-05-07 15:01:37 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-05-07 15:01:37 -0700
commit9330e97701d6adfc6846c69e7225a7326dc6d53f (patch)
tree9f2beff71eb3b121f8fbc8f5316913e70820f7cf
parent796809754065abbe473fb9bb737aea1802d217d6 (diff)
downloadgcc-9330e97701d6adfc6846c69e7225a7326dc6d53f.zip
gcc-9330e97701d6adfc6846c69e7225a7326dc6d53f.tar.gz
gcc-9330e97701d6adfc6846c69e7225a7326dc6d53f.tar.bz2
unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr, not _Unwind_Word.
* unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr, not _Unwind_Word. From-SVN: r66581
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/unwind-dw2.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2dc768d..4b99681 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-07 Richard Henderson <rth@redhat.com>
+
+ * unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr,
+ not _Unwind_Word.
+
2003-05-07 Zack Weinberg <zack@codesourcery.com>
* stmt.c (force_label_rtx): New function, based on logic
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c
index 5a26d0b..f752ffe 100644
--- a/gcc/unwind-dw2.c
+++ b/gcc/unwind-dw2.c
@@ -178,7 +178,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index)
_Unwind_Word
_Unwind_GetCFA (struct _Unwind_Context *context)
{
- return (_Unwind_Word)context->cfa;
+ return (_Unwind_Ptr) context->cfa;
}
/* Overwrite the saved value for register REG in CONTEXT with VAL. */