|
|
b12e81 |
2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
|
|
|
b12e81 |
|
|
|
b12e81 |
struct siginfo vs. siginfo_t
|
|
|
b12e81 |
|
|
|
b12e81 |
Backport from trunk (but apply to gcc/):
|
|
|
b12e81 |
|
|
|
b12e81 |
2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
|
|
|
b12e81 |
|
|
|
b12e81 |
* config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use
|
|
|
b12e81 |
siginfo_t instead of struct siginfo.
|
|
|
b12e81 |
* config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise.
|
|
|
b12e81 |
* config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise.
|
|
|
b12e81 |
* config/ia64/linux-unwind.h (ia64_fallback_frame_state)
|
|
|
b12e81 |
(ia64_handle_unwabi): Likewise.
|
|
|
b12e81 |
* config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise.
|
|
|
b12e81 |
* config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise.
|
|
|
b12e81 |
* config/sh/linux-unwind.h (shmedia_fallback_frame_state)
|
|
|
b12e81 |
(sh_fallback_frame_state): Likewise.
|
|
|
b12e81 |
* config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise.
|
|
|
b12e81 |
|
|
|
b12e81 |
--- gcc/config/alpha/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/alpha/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -49,7 +49,7 @@ alpha_fallback_frame_state (struct _Unwi
|
|
|
b12e81 |
else if (pc[1] == 0x201f015f) /* lda $0,NR_rt_sigreturn */
|
|
|
b12e81 |
{
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *rt_ = context->cfa;
|
|
|
b12e81 |
sc = &rt_->uc.uc_mcontext;
|
|
|
b12e81 |
--- gcc/config/i386/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/i386/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -133,9 +133,9 @@ x86_fallback_frame_state (struct _Unwind
|
|
|
b12e81 |
{
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
int sig;
|
|
|
b12e81 |
- struct siginfo *pinfo;
|
|
|
b12e81 |
+ siginfo_t *pinfo;
|
|
|
b12e81 |
void *puc;
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *rt_ = context->cfa;
|
|
|
b12e81 |
/* The void * cast is necessary to avoid an aliasing warning.
|
|
|
b12e81 |
--- gcc/config/sh/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/sh/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -80,9 +81,9 @@ shmedia_fallback_frame_state (struct _Un
|
|
|
b12e81 |
&& (*(unsigned long *) (pc+11) == 0x6ff0fff0))
|
|
|
b12e81 |
{
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
- struct siginfo *pinfo;
|
|
|
b12e81 |
+ siginfo_t *pinfo;
|
|
|
b12e81 |
void *puc;
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *rt_ = context->cfa;
|
|
|
b12e81 |
/* The void * cast is necessary to avoid an aliasing warning.
|
|
|
b12e81 |
@@ -179,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_
|
|
|
b12e81 |
&& (*(unsigned short *) (pc+14) == 0x00ad))))
|
|
|
b12e81 |
{
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *rt_ = context->cfa;
|
|
|
b12e81 |
/* The void * cast is necessary to avoid an aliasing warning.
|
|
|
b12e81 |
--- gcc/config/xtensa/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/xtensa/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -62,7 +62,7 @@ xtensa_fallback_frame_state (struct _Unw
|
|
|
b12e81 |
struct sigcontext *sc;
|
|
|
b12e81 |
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *rt_;
|
|
|
b12e81 |
|
|
|
b12e81 |
--- gcc/config/ia64/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/ia64/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -47,7 +47,7 @@ ia64_fallback_frame_state (struct _Unwin
|
|
|
b12e81 |
struct sigframe {
|
|
|
b12e81 |
char scratch[16];
|
|
|
b12e81 |
unsigned long sig_number;
|
|
|
b12e81 |
- struct siginfo *info;
|
|
|
b12e81 |
+ siginfo_t *info;
|
|
|
b12e81 |
struct sigcontext *sc;
|
|
|
b12e81 |
} *frame_ = (struct sigframe *)context->psp;
|
|
|
b12e81 |
struct sigcontext *sc = frame_->sc;
|
|
|
b12e81 |
@@ -137,7 +137,7 @@ ia64_handle_unwabi (struct _Unwind_Conte
|
|
|
b12e81 |
struct sigframe {
|
|
|
b12e81 |
char scratch[16];
|
|
|
b12e81 |
unsigned long sig_number;
|
|
|
b12e81 |
- struct siginfo *info;
|
|
|
b12e81 |
+ siginfo_t *info;
|
|
|
b12e81 |
struct sigcontext *sc;
|
|
|
b12e81 |
} *frame = (struct sigframe *)context->psp;
|
|
|
b12e81 |
struct sigcontext *sc = frame->sc;
|
|
|
b12e81 |
--- gcc/config/pa/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/pa/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -63,7 +63,7 @@ pa32_fallback_frame_state (struct _Unwin
|
|
|
b12e81 |
int i;
|
|
|
b12e81 |
struct sigcontext *sc;
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *frame;
|
|
|
b12e81 |
|
|
|
b12e81 |
--- gcc/config/mips/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/mips/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -75,7 +76,7 @@ mips_fallback_frame_state (struct _Unwin
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
u_int32_t ass[4]; /* Argument save space for o32. */
|
|
|
b12e81 |
u_int32_t trampoline[2];
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
_sig_ucontext_t uc;
|
|
|
b12e81 |
} *rt_ = context->cfa;
|
|
|
b12e81 |
sc = &rt_->uc.uc_mcontext;
|
|
|
b12e81 |
--- gcc/config/bfin/linux-unwind.h (revision 186612)
|
|
|
b12e81 |
+++ gcc/config/bfin/linux-unwind.h (revision 186613)
|
|
|
b12e81 |
@@ -48,10 +48,10 @@ bfin_fallback_frame_state (struct _Unwin
|
|
|
b12e81 |
{
|
|
|
b12e81 |
struct rt_sigframe {
|
|
|
b12e81 |
int sig;
|
|
|
b12e81 |
- struct siginfo *pinfo;
|
|
|
b12e81 |
+ siginfo_t *pinfo;
|
|
|
b12e81 |
void *puc;
|
|
|
b12e81 |
char retcode[8];
|
|
|
b12e81 |
- struct siginfo info;
|
|
|
b12e81 |
+ siginfo_t info;
|
|
|
b12e81 |
struct ucontext uc;
|
|
|
b12e81 |
} *rt_ = context->cfa;
|
|
|
b12e81 |
|