1
- From dcbda6eaf27ea03dd09b0d7edf67351c07209f2f Mon Sep 17 00:00:00 2001
1
+ From fd913e2cce4901c12be4b6e0d88a1a719cc3a8fb Mon Sep 17 00:00:00 2001
2
2
From: Roland Schatz <roland.schatz@oracle.com>
3
- Date: Thu, 7 Apr 2022 18:09:05 +0200
3
+ Date: Mon, 8 Jul 2024 14: 18:28 +0200
4
4
Subject: [PATCH 1/2] Preconfigure sources for x64 Windows build
5
5
6
- The configuration was done using Git for Windows to run
7
- `configure` from Developer Command Prompt:
6
+ The configuration was done using the x64 Native Tools Command Prompt for
7
+ VS 2022, with Git for Windows on the PATH. To reproduce run this
8
+ command:
8
9
9
10
> sh configure --disable-builddir ^
10
11
--disable-dependency-tracking ^
@@ -16,33 +17,29 @@ The configuration was done using Git for Windows to run
16
17
CXXCPP="cl -nologo -EP" ^
17
18
--build=amd64-mingw64
18
19
---
19
- fficonfig.h.in => fficonfig.h | 125 ++++++++++++++++---------------
20
- include/{ffi.h.in => ffi.h} | 18 ++---
20
+ fficonfig.h.in => fficonfig.h | 103 ++++++++++++++++---------------
21
+ include/{ffi.h.in => ffi.h} | 14 ++---
21
22
{src/x86 => include}/ffitarget.h | 0
22
- 3 files changed, 72 insertions(+), 71 deletions(-)
23
- rename fficonfig.h.in => fficonfig.h (71 %)
23
+ 3 files changed, 59 insertions(+), 58 deletions(-)
24
+ rename fficonfig.h.in => fficonfig.h (70 %)
24
25
rename include/{ffi.h.in => ffi.h} (98%)
25
26
rename {src/x86 => include}/ffitarget.h (100%)
26
27
27
28
diff --git a/fficonfig.h.in b/fficonfig.h
28
- similarity index 71 %
29
+ similarity index 70 %
29
30
rename from fficonfig.h.in
30
31
rename to fficonfig.h
31
- index d38b781..6284190 100644
32
+ index 2e4aac6..59723f3 100644
32
33
--- a/fficonfig.h.in
33
34
+++ b/fficonfig.h
34
- @@ -1,171 +1,172 @@
35
+ @@ -1,159 +1,160 @@
35
36
+ /* fficonfig.h. Generated from fficonfig.h.in by configure. */
36
37
/* fficonfig.h.in. Generated from configure.ac by autoheader. */
37
38
38
39
/* Define if building universal (internal helper macro) */
39
40
- #undef AC_APPLE_UNIVERSAL_BUILD
40
41
+ /* #undef AC_APPLE_UNIVERSAL_BUILD */
41
42
42
- /* Define to 1 if using 'alloca.c'. */
43
- - #undef C_ALLOCA
44
- + /* #undef C_ALLOCA */
45
-
46
43
/* Define to the flags needed for the .section .eh_frame directive. */
47
44
- #undef EH_FRAME_FLAGS
48
45
+ /* #undef EH_FRAME_FLAGS */
@@ -76,11 +73,7 @@ index d38b781..6284190 100644
76
73
- #undef FFI_NO_STRUCTS
77
74
+ /* #undef FFI_NO_STRUCTS */
78
75
79
- /* Define to 1 if you have 'alloca', as a function or macro. */
80
- - #undef HAVE_ALLOCA
81
- + #define HAVE_ALLOCA 1
82
-
83
- /* Define to 1 if <alloca.h> works. */
76
+ /* Define to 1 if you have the <alloca.h> header file. */
84
77
- #undef HAVE_ALLOCA_H
85
78
+ /* #undef HAVE_ALLOCA_H */
86
79
@@ -137,30 +130,6 @@ index d38b781..6284190 100644
137
130
- #undef HAVE_MEMFD_CREATE
138
131
+ /* #undef HAVE_MEMFD_CREATE */
139
132
140
- /* Define to 1 if you have the `mkostemp' function. */
141
- - #undef HAVE_MKOSTEMP
142
- + /* #undef HAVE_MKOSTEMP */
143
-
144
- /* Define to 1 if you have the `mkstemp' function. */
145
- - #undef HAVE_MKSTEMP
146
- + /* #undef HAVE_MKSTEMP */
147
-
148
- /* Define to 1 if you have the `mmap' function. */
149
- - #undef HAVE_MMAP
150
- + /* #undef HAVE_MMAP */
151
-
152
- /* Define if mmap with MAP_ANON(YMOUS) works. */
153
- - #undef HAVE_MMAP_ANON
154
- + /* #undef HAVE_MMAP_ANON */
155
-
156
- /* Define if mmap of /dev/zero works. */
157
- - #undef HAVE_MMAP_DEV_ZERO
158
- + /* #undef HAVE_MMAP_DEV_ZERO */
159
-
160
- /* Define if read-only mmap of a plain file works. */
161
- - #undef HAVE_MMAP_FILE
162
- + /* #undef HAVE_MMAP_FILE */
163
-
164
133
/* Define if your compiler supports pointer authentication. */
165
134
- #undef HAVE_PTRAUTH
166
135
+ /* #undef HAVE_PTRAUTH */
@@ -193,10 +162,6 @@ index d38b781..6284190 100644
193
162
- #undef HAVE_SYS_MEMFD_H
194
163
+ /* #undef HAVE_SYS_MEMFD_H */
195
164
196
- /* Define to 1 if you have the <sys/mman.h> header file. */
197
- - #undef HAVE_SYS_MMAN_H
198
- + /* #undef HAVE_SYS_MMAN_H */
199
-
200
165
/* Define to 1 if you have the <sys/stat.h> header file. */
201
166
- #undef HAVE_SYS_STAT_H
202
167
+ #define HAVE_SYS_STAT_H 1
@@ -231,7 +196,7 @@ index d38b781..6284190 100644
231
196
232
197
/* Define to the full name and version of this package. */
233
198
- #undef PACKAGE_STRING
234
- + #define PACKAGE_STRING "libffi 3.4.4 "
199
+ + #define PACKAGE_STRING "libffi 3.4.6 "
235
200
236
201
/* Define to the one symbol short name of this package. */
237
202
- #undef PACKAGE_TARNAME
@@ -243,7 +208,7 @@ index d38b781..6284190 100644
243
208
244
209
/* Define to the version of this package. */
245
210
- #undef PACKAGE_VERSION
246
- + #define PACKAGE_VERSION "3.4.4 "
211
+ + #define PACKAGE_VERSION "3.4.6 "
247
212
248
213
/* The size of `double', as computed by sizeof. */
249
214
- #undef SIZEOF_DOUBLE
@@ -257,15 +222,6 @@ index d38b781..6284190 100644
257
222
- #undef SIZEOF_SIZE_T
258
223
+ #define SIZEOF_SIZE_T 8
259
224
260
- /* If using the C implementation of alloca, define if you know the
261
- direction of stack growth for your system; otherwise it will be
262
- @@ -173,22 +174,22 @@
263
- STACK_DIRECTION > 0 => grows toward higher addresses
264
- STACK_DIRECTION < 0 => grows toward lower addresses
265
- STACK_DIRECTION = 0 => direction of growth unknown */
266
- - #undef STACK_DIRECTION
267
- + /* #undef STACK_DIRECTION */
268
-
269
225
/* Define to 1 if all of the C90 standard headers exist (not just the ones
270
226
required in a freestanding environment). This macro is provided for
271
227
backward compatibility; new code need not use it. */
@@ -283,11 +239,11 @@ index d38b781..6284190 100644
283
239
284
240
/* Version number of package */
285
241
- #undef VERSION
286
- + #define VERSION "3.4.4 "
242
+ + #define VERSION "3.4.6 "
287
243
288
244
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
289
245
significant byte first (like Motorola and SPARC, unlike Intel). */
290
- @@ -198,12 +199,12 @@
246
+ @@ -163,7 +164,7 @@
291
247
# endif
292
248
#else
293
249
# ifndef WORDS_BIGENDIAN
@@ -296,24 +252,18 @@ index d38b781..6284190 100644
296
252
# endif
297
253
#endif
298
254
299
- /* Define to `unsigned int' if <sys/types.h> does not define. */
300
- - #undef size_t
301
- + /* #undef size_t */
302
-
303
-
304
- #ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
305
255
diff --git a/include/ffi.h.in b/include/ffi.h
306
256
similarity index 98%
307
257
rename from include/ffi.h.in
308
258
rename to include/ffi.h
309
- index 227ac79..6318a33 100644
259
+ index e5c1dae..ef012e2 100644
310
260
--- a/include/ffi.h.in
311
261
+++ b/include/ffi.h
312
262
@@ -1,5 +1,5 @@
313
263
/* -----------------------------------------------------------------*-C-*-
314
264
- libffi @VERSION@
315
- + libffi 3.4.4
316
- - Copyright (c) 2011, 2014, 2019, 2021, 2022 Anthony Green
265
+ + libffi 3.4.6
266
+ - Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024 Anthony Green
317
267
- Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
318
268
319
269
@@ -50,8 +50,8 @@ extern "C" {
@@ -336,25 +286,7 @@ index 227ac79..6318a33 100644
336
286
#define FFI_TYPE_LONGDOUBLE 4
337
287
#else
338
288
#define FFI_TYPE_LONGDOUBLE FFI_TYPE_DOUBLE
339
- @@ -223,7 +223,7 @@ FFI_EXTERN ffi_type ffi_type_float;
340
- FFI_EXTERN ffi_type ffi_type_double;
341
- FFI_EXTERN ffi_type ffi_type_pointer;
342
-
343
- - #if @HAVE_LONG_DOUBLE@
344
- + #if 0
345
- FFI_EXTERN ffi_type ffi_type_longdouble;
346
- #else
347
- #define ffi_type_longdouble ffi_type_double
348
- @@ -232,7 +232,7 @@ FFI_EXTERN ffi_type ffi_type_longdouble;
349
- #ifdef FFI_TARGET_HAS_COMPLEX_TYPE
350
- FFI_EXTERN ffi_type ffi_type_complex_float;
351
- FFI_EXTERN ffi_type ffi_type_complex_double;
352
- - #if @HAVE_LONG_DOUBLE@
353
- + #if 0
354
- FFI_EXTERN ffi_type ffi_type_complex_longdouble;
355
- #else
356
- #define ffi_type_complex_longdouble ffi_type_complex_double
357
- @@ -333,7 +333,7 @@ size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated));
289
+ @@ -322,7 +322,7 @@ size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated));
358
290
__declspec(align(8))
359
291
#endif
360
292
typedef struct {
@@ -363,7 +295,7 @@ index 227ac79..6318a33 100644
363
295
void *trampoline_table;
364
296
void *trampoline_table_entry;
365
297
#else
366
- @@ -394 ,7 +394 ,7 @@ ffi_prep_closure_loc (ffi_closure*,
298
+ @@ -375 ,7 +375 ,7 @@ ffi_prep_closure_loc (ffi_closure*,
367
299
# pragma pack 8
368
300
#endif
369
301
typedef struct {
@@ -372,7 +304,7 @@ index 227ac79..6318a33 100644
372
304
void *trampoline_table;
373
305
void *trampoline_table_entry;
374
306
#else
375
- @@ -419 ,7 +419 ,7 @@ typedef struct {
307
+ @@ -400 ,7 +400 ,7 @@ typedef struct {
376
308
} ffi_raw_closure;
377
309
378
310
typedef struct {
@@ -386,5 +318,5 @@ similarity index 100%
386
318
rename from src/x86/ffitarget.h
387
319
rename to include/ffitarget.h
388
320
- -
389
- 2.38.4
321
+ 2.44.1
390
322
0 commit comments