Commit 1ed28eda by Uros Bizjak Committed by Uros Bizjak

linux-unwind.h (alpha_fallback_frame_state): Cast 'mcontext_t *'…

linux-unwind.h (alpha_fallback_frame_state): Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'.

	* config/alpha/linux-unwind.h (alpha_fallback_frame_state):
	Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'.

From-SVN: r269053
parent ed4ec9ce
2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
* config/alpha/linux-unwind.h (alpha_fallback_frame_state):
Cast 'mcontext_t *' &rt_->uc.uc_mcontext to 'struct sigcontext *'.
2019-02-19 Uroš Bizjak <ubizjak@gmail.com> 2019-02-19 Uroš Bizjak <ubizjak@gmail.com>
* unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare * unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare
......
...@@ -53,7 +53,10 @@ alpha_fallback_frame_state (struct _Unwind_Context *context, ...@@ -53,7 +53,10 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
siginfo_t info; siginfo_t info;
ucontext_t uc; ucontext_t uc;
} *rt_ = context->cfa; } *rt_ = context->cfa;
sc = &rt_->uc.uc_mcontext; /* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
because it does not alias anything. */
sc = (struct sigcontext *) (void *) &rt_->uc.uc_mcontext;
} }
else else
return _URC_END_OF_STACK; return _URC_END_OF_STACK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment