aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-11-12 09:20:58 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-11-12 09:20:58 -0800
commitf77dca5d23764eb70a1e68f3da89e67427f5e529 (patch)
treed2b8fa4dab24596ccd95e3352acf3959ca9e56b8
parent17fd74dde3a9a91265b751e5ab53846700e0060c (diff)
downloadgcc-f77dca5d23764eb70a1e68f3da89e67427f5e529.zip
gcc-f77dca5d23764eb70a1e68f3da89e67427f5e529.tar.gz
gcc-f77dca5d23764eb70a1e68f3da89e67427f5e529.tar.bz2
ppc-linux: Fix call to _Unwind_SetGRPtr
* config/rs6000/linux-unwind.h (frob_update_context): Properly cast the pointer argument to _Unwind_SetGRPtr. From-SVN: r181325
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/rs6000/linux-unwind.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index a40d459..6e6f79a 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-12 Richard Henderson <rth@redhat.com>
+
+ * config/rs6000/linux-unwind.h (frob_update_context): Properly
+ cast the pointer argument to _Unwind_SetGRPtr.
+
2011-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/spu/t-elf (LIB2ADD): Use LIB2FUNCS_EXCLUDE instead.
diff --git a/libgcc/config/rs6000/linux-unwind.h b/libgcc/config/rs6000/linux-unwind.h
index 20116326..13bf413 100644
--- a/libgcc/config/rs6000/linux-unwind.h
+++ b/libgcc/config/rs6000/linux-unwind.h
@@ -368,7 +368,7 @@ frob_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs ATT
before the bctrl so this is the first and only place
we need to use the stored R2. */
_Unwind_Word sp = _Unwind_GetGR (context, 1);
- _Unwind_SetGRPtr (context, 2, sp + 40);
+ _Unwind_SetGRPtr (context, 2, (void *)(sp + 40));
}
}
}