riscv: Fix -Wincompatible-pointer-types warning during libgcc build

libgcc/

	* config/riscv/linux-unwind.h (riscv_fallback_frame_state): Add
	missing cast.
This commit is contained in:
Florian Weimer 2023-10-13 09:34:36 +02:00
parent 6e5216ec17
commit fbd3923887

View File

@ -64,7 +64,7 @@ riscv_fallback_frame_state (struct _Unwind_Context *context,
return _URC_END_OF_STACK;
rt_ = context->cfa;
sc = &rt_->uc.uc_mcontext;
sc = (struct sigcontext *) &rt_->uc.uc_mcontext;
new_cfa = (_Unwind_Ptr) sc;
fs->regs.cfa_how = CFA_REG_OFFSET;