@@ -1,211 +0,0 @@
1−Partly taken from:
2−http://gcc.gnu.org/git/?p=gcc.git;a=patch;h=5617a3db5d04630d0bfb71a3578894b4442f266d
3−
4−Adapted to gcc 4.6.3. Original commit text follows.
5−
6−From 5617a3db5d04630d0bfb71a3578894b4442f266d Mon Sep 17 00:00:00 2001
7−From: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
8−Date: Fri, 20 Apr 2012 07:44:50 +0000
9−Subject: [PATCH] struct siginfo vs. siginfo_t
10−
11−gcc/
12− * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use
13− siginfo_t instead of struct siginfo.
14− * config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise.
15− * config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise.
16− * config/ia64/linux-unwind.h (ia64_fallback_frame_state)
17− (ia64_handle_unwabi): Likewise.
18− * config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise.
19− * config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise.
20− * config/sh/linux-unwind.h (shmedia_fallback_frame_state)
21− (sh_fallback_frame_state): Likewise.
22− * config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise.
23−
24−git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186610 138bc75d-0d04-0410-961f-82ee72b054a4
25−
26−diff --git a/gcc/config/alpha/linux-unwind.h b/gcc/config/alpha/linux-unwind.h
27−index 4c811dc..8c04b3b 100644
28−--- a/gcc/config/alpha/linux-unwind.h
29−+++ b/gcc/config/alpha/linux-unwind.h
30−@@ -1,5 +1,5 @@
31− /* DWARF2 EH unwinding support for Alpha Linux.
32−- Copyright (C) 2004, 2005, 2009, 2011 Free Software Foundation, Inc.
33−+ Copyright (C) 2004, 2005, 2009, 2011, 2012 Free Software Foundation, Inc.
34−
35− This file is part of GCC.
36−
37−@@ -49,7 +49,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
38− else if (pc[1] == 0x201f015f) /* lda $0,NR_rt_sigreturn */
39− {
40− struct rt_sigframe {
41−- struct siginfo info;
42−+ siginfo_t info;
43− struct ucontext uc;
44− } *rt_ = context->cfa;
45− sc = &rt_->uc.uc_mcontext;
46−diff --git a/gcc/config/bfin/linux-unwind.h b/gcc/config/bfin/linux-unwind.h
47−index 88c8285..15bb2f1 100644
48−--- a/gcc/config/bfin/linux-unwind.h
49−+++ b/gcc/config/bfin/linux-unwind.h
50−@@ -1,5 +1,5 @@
51− /* DWARF2 EH unwinding support for Blackfin.
52−- Copyright (C) 2007, 2009 Free Software Foundation, Inc.
53−+ Copyright (C) 2007, 2009, 2012 Free Software Foundation, Inc.
54−
55− This file is part of GCC.
56−
57−@@ -48,10 +48,10 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
58− {
59− struct rt_sigframe {
60− int sig;
61−- struct siginfo *pinfo;
62−+ siginfo_t *pinfo;
63− void *puc;
64− char retcode[8];
65−- struct siginfo info;
66−+ siginfo_t info;
67− struct ucontext uc;
68− } *rt_ = context->cfa;
69−
70−diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h
71−index ad0ccfa..02b1897 100644
72−--- a/gcc/config/i386/linux-unwind.h
73−+++ b/gcc/config/i386/linux-unwind.h
74−@@ -136,9 +136,9 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
75− {
76− struct rt_sigframe {
77− int sig;
78−- struct siginfo *pinfo;
79−+ siginfo_t *pinfo;
80− void *puc;
81−- struct siginfo info;
82−+ siginfo_t info;
83− struct ucontext uc;
84− } *rt_ = context->cfa;
85− /* The void * cast is necessary to avoid an aliasing warning.
86−diff --git a/gcc/config/ia64/linux-unwind.h b/gcc/config/ia64/linux-unwind.h
87−index 93f762d..da31259 100644
88−--- a/gcc/config/ia64/linux-unwind.h
89−+++ b/gcc/config/ia64/linux-unwind.h
90−@@ -1,5 +1,5 @@
91− /* DWARF2 EH unwinding support for IA64 Linux.
92−- Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc.
93−+ Copyright (C) 2004, 2005, 2009, 2012 Free Software Foundation, Inc.
94−
95− This file is part of GCC.
96−
97−@@ -47,7 +47,7 @@ ia64_fallback_frame_state (struct _Unwind_Context *context,
98− struct sigframe {
99− char scratch[16];
100− unsigned long sig_number;
101−- struct siginfo *info;
102−+ siginfo_t *info;
103− struct sigcontext *sc;
104− } *frame_ = (struct sigframe *)context->psp;
105− struct sigcontext *sc = frame_->sc;
106−@@ -137,7 +137,7 @@ ia64_handle_unwabi (struct _Unwind_Context *context, _Unwind_FrameState *fs)
107− struct sigframe {
108− char scratch[16];
109− unsigned long sig_number;
110−- struct siginfo *info;
111−+ siginfo_t *info;
112− struct sigcontext *sc;
113− } *frame = (struct sigframe *)context->psp;
114− struct sigcontext *sc = frame->sc;
115−diff --git a/gcc/config/mips/linux-unwind.h b/gcc/config/mips/linux-unwind.h
116−index 02f7cd5..094ff58 100644
117−--- a/gcc/config/mips/linux-unwind.h
118−+++ b/gcc/config/mips/linux-unwind.h
119−@@ -1,5 +1,6 @@
120− /* DWARF2 EH unwinding support for MIPS Linux.
121−- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
122−+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2012 Free Software
123−+ Foundation, Inc.
124−
125− This file is part of GCC.
126−
127−@@ -75,7 +76,7 @@ mips_fallback_frame_state (struct _Unwind_Context *context,
128− struct rt_sigframe {
129− u_int32_t ass[4]; /* Argument save space for o32. */
130− u_int32_t trampoline[2];
131−- struct siginfo info;
132−+ siginfo_t info;
133− _sig_ucontext_t uc;
134− } *rt_ = context->cfa;
135− sc = &rt_->uc.uc_mcontext;
136−diff --git a/gcc/config/pa/linux-unwind.h b/gcc/config/pa/linux-unwind.h
137−index a0560e9..38b4eda 100644
138−--- a/gcc/config/pa/linux-unwind.h
139−+++ b/gcc/config/pa/linux-unwind.h
140−@@ -1,5 +1,5 @@
141− /* DWARF2 EH unwinding support for PA Linux.
142−- Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc.
143−+ Copyright (C) 2004, 2005, 2009, 2012 Free Software Foundation, Inc.
144−
145− This file is part of GCC.
146−
147−@@ -63,7 +63,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
148− int i;
149− struct sigcontext *sc;
150− struct rt_sigframe {
151−- struct siginfo info;
152−+ siginfo_t info;
153− struct ucontext uc;
154− } *frame;
155−
156−diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h
157−index 94ed95d..5a78e31 100644
158−--- a/gcc/config/sh/linux-unwind.h
159−+++ b/gcc/config/sh/linux-unwind.h
160−@@ -1,5 +1,6 @@
161− /* DWARF2 EH unwinding support for SH Linux.
162−- Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
163−+ Copyright (C) 2004, 2005, 2006, 2007, 2009, 2012 Free Software Foundation,
164−+ Inc.
165−
166− This file is part of GCC.
167−
168−@@ -80,9 +81,9 @@ shmedia_fallback_frame_state (struct _Unwind_Context *context,
169− && (*(unsigned long *) (pc+11) == 0x6ff0fff0))
170− {
171− struct rt_sigframe {
172−- struct siginfo *pinfo;
173−+ siginfo_t *pinfo;
174− void *puc;
175−- struct siginfo info;
176−+ siginfo_t info;
177− struct ucontext uc;
178− } *rt_ = context->cfa;
179− /* The void * cast is necessary to avoid an aliasing warning.
180−@@ -179,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
181− && (*(unsigned short *) (pc+14) == 0x00ad))))
182− {
183− struct rt_sigframe {
184−- struct siginfo info;
185−+ siginfo_t info;
186− struct ucontext uc;
187− } *rt_ = context->cfa;
188− /* The void * cast is necessary to avoid an aliasing warning.
189−diff --git a/gcc/config/xtensa/linux-unwind.h b/gcc/config/xtensa/linux-unwind.h
190−index 32e9349..2456497 100644
191−--- a/gcc/config/xtensa/linux-unwind.h
192−+++ b/gcc/config/xtensa/linux-unwind.h
193−@@ -1,5 +1,5 @@
194− /* DWARF2 EH unwinding support for Xtensa.
195−- Copyright (C) 2008, 2009 Free Software Foundation, Inc.
196−+ Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
197−
198− This file is part of GCC.
199−
200−@@ -62,7 +62,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
201− struct sigcontext *sc;
202−
203− struct rt_sigframe {
204−- struct siginfo info;
205−+ siginfo_t info;
206− struct ucontext uc;
207− } *rt_;
208−
209−--
210−1.7.3.4
211−