wok-current view gcc63/stuff/fix-build-with-gcc8-2.patch @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents
children
line source
1 From b685411208e0aaa79190d54faf945763514706b8 Mon Sep 17 00:00:00 2001
2 From: jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
3 Date: Tue, 4 Jul 2017 10:23:57 +0000
4 Subject: [PATCH] Use ucontext_t not struct ucontext in linux-unwind.h files.
6 Current glibc no longer gives the ucontext_t type the tag struct
7 ucontext, to conform with POSIX namespace rules. This requires
8 various linux-unwind.h files in libgcc, that were previously using
9 struct ucontext, to be fixed to use ucontext_t instead. This is
10 similar to the removal of the struct siginfo tag from siginfo_t some
11 years ago.
13 This patch changes those files to use ucontext_t instead. As the
14 standard name that should be unconditionally safe, so this is not
15 restricted to architectures supported by glibc, or conditioned on the
16 glibc version.
18 Tested compilation together with current glibc with glibc's
19 build-many-glibcs.py.
21 * config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),
22 config/alpha/linux-unwind.h (alpha_fallback_frame_state),
23 config/bfin/linux-unwind.h (bfin_fallback_frame_state),
24 config/i386/linux-unwind.h (x86_64_fallback_frame_state,
25 x86_fallback_frame_state), config/m68k/linux-unwind.h (struct
26 uw_ucontext), config/nios2/linux-unwind.h (struct nios2_ucontext),
27 config/pa/linux-unwind.h (pa32_fallback_frame_state),
28 config/sh/linux-unwind.h (sh_fallback_frame_state),
29 config/tilepro/linux-unwind.h (tile_fallback_frame_state),
30 config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use
31 ucontext_t instead of struct ucontext.
34 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@249957 138bc75d-0d04-0410-961f-82ee72b054a4
35 ---
36 libgcc/ChangeLog | 14 ++++++++++++++
37 libgcc/config/aarch64/linux-unwind.h | 2 +-
38 libgcc/config/alpha/linux-unwind.h | 2 +-
39 libgcc/config/bfin/linux-unwind.h | 2 +-
40 libgcc/config/i386/linux-unwind.h | 4 ++--
41 libgcc/config/m68k/linux-unwind.h | 2 +-
42 libgcc/config/nios2/linux-unwind.h | 2 +-
43 libgcc/config/pa/linux-unwind.h | 2 +-
44 libgcc/config/sh/linux-unwind.h | 2 +-
45 libgcc/config/tilepro/linux-unwind.h | 2 +-
46 libgcc/config/xtensa/linux-unwind.h | 2 +-
47 11 files changed, 25 insertions(+), 11 deletions(-)
49 diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
50 index d9ec5453045..fba23d22aff 100644
51 --- a/libgcc/ChangeLog
52 +++ b/libgcc/ChangeLog
53 @@ -1,3 +1,17 @@
54 +2017-07-04 Joseph Myers <joseph@codesourcery.com>
55 +
56 + * config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),
57 + config/alpha/linux-unwind.h (alpha_fallback_frame_state),
58 + config/bfin/linux-unwind.h (bfin_fallback_frame_state),
59 + config/i386/linux-unwind.h (x86_64_fallback_frame_state,
60 + x86_fallback_frame_state), config/m68k/linux-unwind.h (struct
61 + uw_ucontext), config/nios2/linux-unwind.h (struct nios2_ucontext),
62 + config/pa/linux-unwind.h (pa32_fallback_frame_state),
63 + config/sh/linux-unwind.h (sh_fallback_frame_state),
64 + config/tilepro/linux-unwind.h (tile_fallback_frame_state),
65 + config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use
66 + ucontext_t instead of struct ucontext.
67 +
68 2017-07-04 Release Manager
70 * GCC 6.4.0 released.
71 diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h
72 index 4512efbdcc8..06de45aa7ab 100644
73 --- a/libgcc/config/aarch64/linux-unwind.h
74 +++ b/libgcc/config/aarch64/linux-unwind.h
75 @@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,
76 struct rt_sigframe
77 {
78 siginfo_t info;
79 - struct ucontext uc;
80 + ucontext_t uc;
81 };
83 struct rt_sigframe *rt_;
84 diff --git a/libgcc/config/alpha/linux-unwind.h b/libgcc/config/alpha/linux-unwind.h
85 index bdbba4a3c5d..e84812e33fd 100644
86 --- a/libgcc/config/alpha/linux-unwind.h
87 +++ b/libgcc/config/alpha/linux-unwind.h
88 @@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
89 {
90 struct rt_sigframe {
91 siginfo_t info;
92 - struct ucontext uc;
93 + ucontext_t uc;
94 } *rt_ = context->cfa;
95 sc = &rt_->uc.uc_mcontext;
96 }
97 diff --git a/libgcc/config/bfin/linux-unwind.h b/libgcc/config/bfin/linux-unwind.h
98 index 77b7c23c708..8bf5e82c55e 100644
99 --- a/libgcc/config/bfin/linux-unwind.h
100 +++ b/libgcc/config/bfin/linux-unwind.h
101 @@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
102 void *puc;
103 char retcode[8];
104 siginfo_t info;
105 - struct ucontext uc;
106 + ucontext_t uc;
107 } *rt_ = context->cfa;
109 /* The void * cast is necessary to avoid an aliasing warning.
110 diff --git a/libgcc/config/i386/linux-unwind.h b/libgcc/config/i386/linux-unwind.h
111 index 540a0a25aca..29efbe31d61 100644
112 --- a/libgcc/config/i386/linux-unwind.h
113 +++ b/libgcc/config/i386/linux-unwind.h
114 @@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
115 if (*(unsigned char *)(pc+0) == 0x48
116 && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
117 {
118 - struct ucontext *uc_ = context->cfa;
119 + ucontext_t *uc_ = context->cfa;
120 /* The void * cast is necessary to avoid an aliasing warning.
121 The aliasing warning is correct, but should not be a problem
122 because it does not alias anything. */
123 @@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
124 siginfo_t *pinfo;
125 void *puc;
126 siginfo_t info;
127 - struct ucontext uc;
128 + ucontext_t uc;
129 } *rt_ = context->cfa;
130 /* The void * cast is necessary to avoid an aliasing warning.
131 The aliasing warning is correct, but should not be a problem
132 diff --git a/libgcc/config/m68k/linux-unwind.h b/libgcc/config/m68k/linux-unwind.h
133 index 75b7cf723a0..f964e24c4ee 100644
134 --- a/libgcc/config/m68k/linux-unwind.h
135 +++ b/libgcc/config/m68k/linux-unwind.h
136 @@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
137 /* <sys/ucontext.h> is unfortunately broken right now. */
138 struct uw_ucontext {
139 unsigned long uc_flags;
140 - struct ucontext *uc_link;
141 + ucontext_t *uc_link;
142 stack_t uc_stack;
143 mcontext_t uc_mcontext;
144 unsigned long uc_filler[80];
145 diff --git a/libgcc/config/nios2/linux-unwind.h b/libgcc/config/nios2/linux-unwind.h
146 index 23041420525..30f25ea379e 100644
147 --- a/libgcc/config/nios2/linux-unwind.h
148 +++ b/libgcc/config/nios2/linux-unwind.h
149 @@ -38,7 +38,7 @@ struct nios2_mcontext {
151 struct nios2_ucontext {
152 unsigned long uc_flags;
153 - struct ucontext *uc_link;
154 + ucontext_t *uc_link;
155 stack_t uc_stack;
156 struct nios2_mcontext uc_mcontext;
157 sigset_t uc_sigmask; /* mask last for extensibility */
158 diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h
159 index 9a2657f295d..e47493dde91 100644
160 --- a/libgcc/config/pa/linux-unwind.h
161 +++ b/libgcc/config/pa/linux-unwind.h
162 @@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
163 struct sigcontext *sc;
164 struct rt_sigframe {
165 siginfo_t info;
166 - struct ucontext uc;
167 + ucontext_t uc;
168 } *frame;
170 /* rt_sigreturn trampoline:
171 diff --git a/libgcc/config/sh/linux-unwind.h b/libgcc/config/sh/linux-unwind.h
172 index e389cacaab8..0bf43ba21c2 100644
173 --- a/libgcc/config/sh/linux-unwind.h
174 +++ b/libgcc/config/sh/linux-unwind.h
175 @@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
176 {
177 struct rt_sigframe {
178 siginfo_t info;
179 - struct ucontext uc;
180 + ucontext_t uc;
181 } *rt_ = context->cfa;
182 /* The void * cast is necessary to avoid an aliasing warning.
183 The aliasing warning is correct, but should not be a problem
184 diff --git a/libgcc/config/tilepro/linux-unwind.h b/libgcc/config/tilepro/linux-unwind.h
185 index 796e97620b8..75f8890ce07 100644
186 --- a/libgcc/config/tilepro/linux-unwind.h
187 +++ b/libgcc/config/tilepro/linux-unwind.h
188 @@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,
189 struct rt_sigframe {
190 unsigned char save_area[C_ABI_SAVE_AREA_SIZE];
191 siginfo_t info;
192 - struct ucontext uc;
193 + ucontext_t uc;
194 } *rt_;
196 /* Return if this is not a signal handler. */
197 diff --git a/libgcc/config/xtensa/linux-unwind.h b/libgcc/config/xtensa/linux-unwind.h
198 index 9872492acc2..586a9d49e9c 100644
199 --- a/libgcc/config/xtensa/linux-unwind.h
200 +++ b/libgcc/config/xtensa/linux-unwind.h
201 @@ -67,7 +67,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
203 struct rt_sigframe {
204 siginfo_t info;
205 - struct ucontext uc;
206 + ucontext_t uc;
207 } *rt_;
209 /* movi a2, __NR_rt_sigreturn; syscall */
210 --
211 2.39.3