]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc: arm: fix build for FDPIC target
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 22 Mar 2024 20:03:46 +0000 (13:03 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 25 Mar 2024 18:19:34 +0000 (11:19 -0700)
libgcc/
* unwind-arm-common.inc (__gnu_personality_sigframe_fdpic): Cast
last argument of _Unwind_VRS_Set to void *.

libgcc/unwind-arm-common.inc

index 5453f38186b5f071f3e636b17727453afd28d578..576f7e93e8a8c044073aceed142b10fdf8f23eaa 100644 (file)
@@ -248,7 +248,7 @@ __gnu_personality_sigframe_fdpic (_Unwind_State state,
          + ARM_SIGCONTEXT_R0;
     /* Restore regs saved on stack by the kernel.  */
     for (i = 0; i < 16; i++)
-       _Unwind_VRS_Set (context, _UVRSC_CORE, i, _UVRSD_UINT32, sp + 4 * i);
+       _Unwind_VRS_Set (context, _UVRSC_CORE, i, _UVRSD_UINT32, (void *)(sp + 4 * i));
 
     return _URC_CONTINUE_UNWIND;
 }