wok-current view qt4/stuff/gcc8_build_fix.patch @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | |
children |
line source
1 --- a/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp 2015-05-07 17:14:48.000000000 +0300
2 +++ b/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp 2019-05-04 13:10:49.491856288 +0300
3 @@ -114,11 +114,11 @@
4 COMPILE_ASSERT(offsetof(struct JITStackFrame, code) % 16 == 0x0, JITStackFrame_maintains_16byte_stack_alignment);
5 COMPILE_ASSERT(offsetof(struct JITStackFrame, savedEBX) == 0x3c, JITStackFrame_stub_argument_space_matches_ctiTrampoline);
6 COMPILE_ASSERT(offsetof(struct JITStackFrame, callFrame) == 0x58, JITStackFrame_callFrame_offset_matches_ctiTrampoline);
7 COMPILE_ASSERT(offsetof(struct JITStackFrame, code) == 0x50, JITStackFrame_code_offset_matches_ctiTrampoline);
9 -asm volatile (
10 +asm (
11 ".text\n"
12 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
13 HIDE_SYMBOL(ctiTrampoline) "\n"
14 SYMBOL_STRING(ctiTrampoline) ":" "\n"
15 "pushl %ebp" "\n"
16 @@ -136,11 +136,11 @@
17 "popl %esi" "\n"
18 "popl %ebp" "\n"
19 "ret" "\n"
20 );
22 -asm volatile (
23 +asm (
24 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
25 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
26 SYMBOL_STRING(ctiVMThrowTrampoline) ":" "\n"
27 #if !USE(JIT_STUB_ARGUMENT_VA_LIST)
28 "movl %esp, %ecx" "\n"
29 @@ -152,11 +152,11 @@
30 "popl %esi" "\n"
31 "popl %ebp" "\n"
32 "ret" "\n"
33 );
35 -asm volatile (
36 +asm (
37 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
38 HIDE_SYMBOL(ctiOpThrowNotCaught) "\n"
39 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"
40 "addl $0x3c, %esp" "\n"
41 "popl %ebx" "\n"
42 @@ -177,11 +177,11 @@
43 COMPILE_ASSERT(offsetof(struct JITStackFrame, code) % 32 == 0x0, JITStackFrame_maintains_32byte_stack_alignment);
44 COMPILE_ASSERT(offsetof(struct JITStackFrame, savedRBX) == 0x48, JITStackFrame_stub_argument_space_matches_ctiTrampoline);
45 COMPILE_ASSERT(offsetof(struct JITStackFrame, callFrame) == 0x90, JITStackFrame_callFrame_offset_matches_ctiTrampoline);
46 COMPILE_ASSERT(offsetof(struct JITStackFrame, code) == 0x80, JITStackFrame_code_offset_matches_ctiTrampoline);
48 -asm volatile (
49 +asm (
50 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
51 HIDE_SYMBOL(ctiTrampoline) "\n"
52 SYMBOL_STRING(ctiTrampoline) ":" "\n"
53 "pushq %rbp" "\n"
54 "movq %rsp, %rbp" "\n"
55 @@ -204,11 +204,11 @@
56 "popq %r12" "\n"
57 "popq %rbp" "\n"
58 "ret" "\n"
59 );
61 -asm volatile (
62 +asm (
63 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
64 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
65 SYMBOL_STRING(ctiVMThrowTrampoline) ":" "\n"
66 "movq %rsp, %rdi" "\n"
67 "call " SYMBOL_STRING_RELOCATION(cti_vm_throw) "\n"
68 @@ -220,11 +220,11 @@
69 "popq %r12" "\n"
70 "popq %rbp" "\n"
71 "ret" "\n"
72 );
74 -asm volatile (
75 +asm (
76 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
77 HIDE_SYMBOL(ctiOpThrowNotCaught) "\n"
78 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"
79 "addq $0x48, %rsp" "\n"
80 "popq %rbx" "\n"
81 @@ -240,11 +240,11 @@
83 #if USE(JIT_STUB_ARGUMENT_VA_LIST)
84 #error "JIT_STUB_ARGUMENT_VA_LIST not supported on ARMv7."
85 #endif
87 -asm volatile (
88 +asm (
89 ".text" "\n"
90 ".align 2" "\n"
91 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
92 HIDE_SYMBOL(ctiTrampoline) "\n"
93 ".thumb" "\n"
94 @@ -267,11 +267,11 @@
95 "ldr lr, [sp, #0x20]" "\n"
96 "add sp, sp, #0x3c" "\n"
97 "bx lr" "\n"
98 );
100 -asm volatile (
101 +asm (
102 ".text" "\n"
103 ".align 2" "\n"
104 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
105 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
106 ".thumb" "\n"
107 @@ -285,11 +285,11 @@
108 "ldr lr, [sp, #0x20]" "\n"
109 "add sp, sp, #0x3c" "\n"
110 "bx lr" "\n"
111 );
113 -asm volatile (
114 +asm (
115 ".text" "\n"
116 ".align 2" "\n"
117 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
118 HIDE_SYMBOL(ctiOpThrowNotCaught) "\n"
119 ".thumb" "\n"
120 @@ -303,11 +303,11 @@
121 "bx lr" "\n"
122 );
124 #elif COMPILER(GCC) && CPU(ARM_TRADITIONAL)
126 -asm volatile (
127 +asm (
128 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
129 HIDE_SYMBOL(ctiTrampoline) "\n"
130 SYMBOL_STRING(ctiTrampoline) ":" "\n"
131 "stmdb sp!, {r1-r3}" "\n"
132 "stmdb sp!, {r4-r8, lr}" "\n"
133 @@ -321,11 +321,11 @@
134 "ldmia sp!, {r4-r8, lr}" "\n"
135 "add sp, sp, #12" "\n"
136 "mov pc, lr" "\n"
137 );
139 -asm volatile (
140 +asm (
141 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
142 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
143 SYMBOL_STRING(ctiVMThrowTrampoline) ":" "\n"
144 "mov r0, sp" "\n"
145 "bl " SYMBOL_STRING(cti_vm_throw) "\n"
146 @@ -416,11 +416,11 @@
147 // need to change the assembly trampolines below to match.
148 COMPILE_ASSERT(offsetof(struct JITStackFrame, callFrame) == 0x38, JITStackFrame_callFrame_offset_matches_ctiTrampoline);
149 COMPILE_ASSERT(offsetof(struct JITStackFrame, code) == 0x30, JITStackFrame_code_offset_matches_ctiTrampoline);
150 COMPILE_ASSERT(offsetof(struct JITStackFrame, savedEBX) == 0x1c, JITStackFrame_stub_argument_space_matches_ctiTrampoline);
152 -asm volatile (
153 +asm (
154 ".text\n"
155 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
156 HIDE_SYMBOL(ctiTrampoline) "\n"
157 SYMBOL_STRING(ctiTrampoline) ":" "\n"
158 "pushl %ebp" "\n"
159 @@ -438,11 +438,11 @@
160 "popl %esi" "\n"
161 "popl %ebp" "\n"
162 "ret" "\n"
163 );
165 -asm volatile (
166 +asm (
167 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
168 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
169 SYMBOL_STRING(ctiVMThrowTrampoline) ":" "\n"
170 #if !USE(JIT_STUB_ARGUMENT_VA_LIST)
171 "movl %esp, %ecx" "\n"
172 @@ -454,11 +454,11 @@
173 "popl %esi" "\n"
174 "popl %ebp" "\n"
175 "ret" "\n"
176 );
178 -asm volatile (
179 +asm (
180 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
181 HIDE_SYMBOL(ctiOpThrowNotCaught) "\n"
182 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"
183 "addl $0x1c, %esp" "\n"
184 "popl %ebx" "\n"
185 @@ -478,11 +478,11 @@
186 // need to change the assembly trampolines below to match.
187 COMPILE_ASSERT(offsetof(struct JITStackFrame, callFrame) == 0x58, JITStackFrame_callFrame_offset_matches_ctiTrampoline);
188 COMPILE_ASSERT(offsetof(struct JITStackFrame, code) == 0x48, JITStackFrame_code_offset_matches_ctiTrampoline);
189 COMPILE_ASSERT(offsetof(struct JITStackFrame, savedRBX) == 0x78, JITStackFrame_stub_argument_space_matches_ctiTrampoline);
191 -asm volatile (
192 +asm (
193 ".text\n"
194 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
195 HIDE_SYMBOL(ctiTrampoline) "\n"
196 SYMBOL_STRING(ctiTrampoline) ":" "\n"
197 "pushq %rbp" "\n"
198 @@ -513,11 +513,11 @@
199 "popq %r12" "\n"
200 "popq %rbp" "\n"
201 "ret" "\n"
202 );
204 -asm volatile (
205 +asm (
206 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
207 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
208 SYMBOL_STRING(ctiVMThrowTrampoline) ":" "\n"
209 "movq %rsp, %rdi" "\n"
210 "call " SYMBOL_STRING_RELOCATION(cti_vm_throw) "\n"
211 @@ -529,11 +529,11 @@
212 "popq %r12" "\n"
213 "popq %rbp" "\n"
214 "ret" "\n"
215 );
217 -asm volatile (
218 +asm (
219 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
220 HIDE_SYMBOL(ctiOpThrowNotCaught) "\n"
221 SYMBOL_STRING(ctiOpThrowNotCaught) ":" "\n"
222 "addq $0x78, %rsp" "\n"
223 "popq %rbx" "\n"
224 @@ -549,11 +549,11 @@
226 #if USE(JIT_STUB_ARGUMENT_VA_LIST)
227 #error "JIT_STUB_ARGUMENT_VA_LIST not supported on ARMv7."
228 #endif
230 -asm volatile (
231 +asm (
232 ".text" "\n"
233 ".align 2" "\n"
234 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
235 HIDE_SYMBOL(ctiTrampoline) "\n"
236 ".thumb" "\n"
237 @@ -576,11 +576,11 @@
238 "ldr lr, [sp, #0x20]" "\n"
239 "add sp, sp, #0x40" "\n"
240 "bx lr" "\n"
241 );
243 -asm volatile (
244 +asm (
245 ".text" "\n"
246 ".align 2" "\n"
247 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
248 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
249 ".thumb" "\n"
250 @@ -594,11 +594,11 @@
251 "ldr lr, [sp, #0x20]" "\n"
252 "add sp, sp, #0x40" "\n"
253 "bx lr" "\n"
254 );
256 -asm volatile (
257 +asm (
258 ".text" "\n"
259 ".align 2" "\n"
260 ".globl " SYMBOL_STRING(ctiOpThrowNotCaught) "\n"
261 HIDE_SYMBOL(ctiOpThrowNotCaught) "\n"
262 ".thumb" "\n"
263 @@ -612,11 +612,11 @@
264 "bx lr" "\n"
265 );
267 #elif COMPILER(GCC) && CPU(ARM_TRADITIONAL)
269 -asm volatile (
270 +asm (
271 ".text\n"
272 ".globl " SYMBOL_STRING(ctiTrampoline) "\n"
273 HIDE_SYMBOL(ctiTrampoline) "\n"
274 SYMBOL_STRING(ctiTrampoline) ":" "\n"
275 "stmdb sp!, {r1-r3}" "\n"
276 @@ -630,11 +630,11 @@
277 "ldmia sp!, {r4-r8, lr}" "\n"
278 "add sp, sp, #12" "\n"
279 "mov pc, lr" "\n"
280 );
282 -asm volatile (
283 +asm (
284 ".globl " SYMBOL_STRING(ctiVMThrowTrampoline) "\n"
285 HIDE_SYMBOL(ctiVMThrowTrampoline) "\n"
286 SYMBOL_STRING(ctiVMThrowTrampoline) ":" "\n"
287 "mov r0, sp" "\n"
288 "bl " SYMBOL_STRING_RELOCATION(cti_vm_throw) "\n"
289 @@ -1022,11 +1022,11 @@
291 #define DEFINE_STUB_FUNCTION(rtype, op) \
292 extern "C" { \
293 rtype JITStubThunked_##op(STUB_ARGS_DECLARATION); \
294 }; \
295 - asm volatile ( \
296 + asm ( \
297 ".text" "\n" \
298 ".align 2" "\n" \
299 ".globl " SYMBOL_STRING(cti_##op) "\n" \
300 HIDE_SYMBOL(cti_##op) "\n" \
301 ".thumb" "\n" \
302 @@ -1051,11 +1051,11 @@
304 #define DEFINE_STUB_FUNCTION(rtype, op) \
305 extern "C" { \
306 rtype JITStubThunked_##op(STUB_ARGS_DECLARATION); \
307 }; \
308 - asm volatile ( \
309 + asm ( \
310 ".globl " SYMBOL_STRING(cti_##op) "\n" \
311 HIDE_SYMBOL(cti_##op) "\n" \
312 SYMBOL_STRING(cti_##op) ":" "\n" \
313 "str lr, [sp, #" STRINGIZE_VALUE_OF(THUNK_RETURN_ADDRESS_OFFSET) "]" "\n" \
314 "bl " SYMBOL_STRING(JITStubThunked_##op) "\n" \