mirror of git://gcc.gnu.org/git/gcc.git
linux-unwind.h (shmedia_fallback_frame_state): Disable aliasing warning with void * cast.
* config/sh/linux-unwind.h (shmedia_fallback_frame_state): Disable aliasing warning with void * cast. (sh_fallback_frame_state): Likewise. From-SVN: r101412
This commit is contained in:
parent
b48f503c98
commit
4f1eb6e36f
|
@ -1,3 +1,9 @@
|
||||||
|
2005-06-29 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||||
|
|
||||||
|
* config/sh/linux-unwind.h (shmedia_fallback_frame_state):
|
||||||
|
Disable aliasing warning with void * cast.
|
||||||
|
(sh_fallback_frame_state): Likewise.
|
||||||
|
|
||||||
2005-06-29 Kaz Kojima <kkojima@gcc.gnu.org>
|
2005-06-29 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||||
|
|
||||||
* target.h (gcc_target): New field allocate_initial_value.
|
* target.h (gcc_target): New field allocate_initial_value.
|
||||||
|
|
|
@ -85,7 +85,10 @@ shmedia_fallback_frame_state (struct _Unwind_Context *context,
|
||||||
struct siginfo info;
|
struct siginfo info;
|
||||||
struct ucontext uc;
|
struct ucontext uc;
|
||||||
} *rt_ = context->cfa;
|
} *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
|
else
|
||||||
return _URC_END_OF_STACK;
|
return _URC_END_OF_STACK;
|
||||||
|
@ -178,7 +181,10 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
|
||||||
struct siginfo info;
|
struct siginfo info;
|
||||||
struct ucontext uc;
|
struct ucontext uc;
|
||||||
} *rt_ = context->cfa;
|
} *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
|
else
|
||||||
return _URC_END_OF_STACK;
|
return _URC_END_OF_STACK;
|
||||||
|
|
Loading…
Reference in New Issue