+2005-07-01 Richard Henderson <rth@redhat.com>
+
+ * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
+ void * before struct sigcontext *.
+ (x86_fallback_frame_state): Likewise.
+
2005-07-01 James E. Wilson <wilson@specifixinc.com>
* doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
&& *(unsigned long *)(pc+1) == 0x050f0000000fc0c7)
{
struct ucontext *uc_ = context->cfa;
- sc = (struct sigcontext *) &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 *) &uc_->uc_mcontext;
}
else
return _URC_END_OF_STACK;
struct siginfo info;
struct ucontext uc;
} *rt_ = context->cfa;
- sc = (struct sigcontext *) &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
return _URC_END_OF_STACK;