]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ppc-linux: Fix call to _Unwind_SetGRPtr
authorRichard Henderson <rth@redhat.com>
Sat, 12 Nov 2011 17:20:58 +0000 (09:20 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 12 Nov 2011 17:20:58 +0000 (09:20 -0800)
        * config/rs6000/linux-unwind.h (frob_update_context): Properly
        cast the pointer argument to _Unwind_SetGRPtr.

From-SVN: r181325

libgcc/ChangeLog
libgcc/config/rs6000/linux-unwind.h

index a40d4594b95a5fc47847d3a26ea0256603e26d66..6e6f79a046c24b851cb049d3e7ddd6b43dd50c96 100644 (file)
@@ -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.
index 20116326c3c863dc8e129e73f98df7dc3b0ac606..13bf413c7c9d530f5c9cdab83eb11742f2ec4b55 100644 (file)
@@ -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));
            }
        }
     }