ffi 1.15.4 → 1.16.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +90 -0
  4. data/Gemfile +1 -1
  5. data/README.md +3 -2
  6. data/Rakefile +28 -11
  7. data/ext/ffi_c/AbstractMemory.c +60 -36
  8. data/ext/ffi_c/AbstractMemory.h +3 -2
  9. data/ext/ffi_c/ArrayType.c +49 -13
  10. data/ext/ffi_c/ArrayType.h +1 -0
  11. data/ext/ffi_c/Buffer.c +86 -29
  12. data/ext/ffi_c/Call.c +18 -7
  13. data/ext/ffi_c/DynamicLibrary.c +89 -26
  14. data/ext/ffi_c/Function.c +244 -98
  15. data/ext/ffi_c/Function.h +1 -0
  16. data/ext/ffi_c/FunctionInfo.c +80 -24
  17. data/ext/ffi_c/LastError.c +25 -7
  18. data/ext/ffi_c/MappedType.c +66 -23
  19. data/ext/ffi_c/MappedType.h +0 -2
  20. data/ext/ffi_c/MemoryPointer.c +34 -7
  21. data/ext/ffi_c/MethodHandle.c +3 -1
  22. data/ext/ffi_c/Pointer.c +68 -29
  23. data/ext/ffi_c/Pointer.h +1 -0
  24. data/ext/ffi_c/Struct.c +155 -80
  25. data/ext/ffi_c/Struct.h +7 -4
  26. data/ext/ffi_c/StructByValue.c +48 -16
  27. data/ext/ffi_c/StructLayout.c +117 -48
  28. data/ext/ffi_c/Type.c +104 -36
  29. data/ext/ffi_c/Type.h +3 -1
  30. data/ext/ffi_c/Types.c +1 -1
  31. data/ext/ffi_c/Variadic.c +65 -23
  32. data/ext/ffi_c/compat.h +22 -22
  33. data/ext/ffi_c/extconf.rb +19 -2
  34. data/ext/ffi_c/ffi.c +4 -0
  35. data/ext/ffi_c/libffi/.appveyor/site.exp +16 -0
  36. data/ext/ffi_c/libffi/.appveyor/unix-noexec.exp +7 -0
  37. data/ext/ffi_c/libffi/.appveyor.yml +27 -9
  38. data/ext/ffi_c/libffi/.ci/build-cross-in-container.sh +18 -0
  39. data/ext/ffi_c/libffi/{.travis → .ci}/build-in-container.sh +4 -6
  40. data/ext/ffi_c/libffi/.ci/build.sh +124 -0
  41. data/ext/ffi_c/libffi/{.travis → .ci}/install.sh +14 -7
  42. data/ext/ffi_c/libffi/.ci/msvs-detect +1103 -0
  43. data/ext/ffi_c/libffi/{.travis → .ci}/site.exp +5 -3
  44. data/ext/ffi_c/libffi/.circleci/config.yml +156 -0
  45. data/ext/ffi_c/libffi/.github/workflows/build.yml +460 -0
  46. data/ext/ffi_c/libffi/.github/workflows/emscripten.yml +171 -0
  47. data/ext/ffi_c/libffi/.gitignore +10 -2
  48. data/ext/ffi_c/libffi/LICENSE +1 -1
  49. data/ext/ffi_c/libffi/Makefile.am +12 -5
  50. data/ext/ffi_c/libffi/Makefile.in +92 -34
  51. data/ext/ffi_c/libffi/README.md +144 -104
  52. data/ext/ffi_c/libffi/acinclude.m4 +10 -112
  53. data/ext/ffi_c/libffi/compile +348 -0
  54. data/ext/ffi_c/libffi/config.guess +623 -556
  55. data/ext/ffi_c/libffi/config.sub +75 -34
  56. data/ext/ffi_c/libffi/configure +4567 -3822
  57. data/ext/ffi_c/libffi/configure.ac +64 -28
  58. data/ext/ffi_c/libffi/configure.host +25 -6
  59. data/ext/ffi_c/libffi/doc/Makefile.in +9 -6
  60. data/ext/ffi_c/libffi/doc/libffi.texi +82 -33
  61. data/ext/ffi_c/libffi/doc/version.texi +4 -4
  62. data/ext/ffi_c/libffi/fficonfig.h.in +12 -47
  63. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +163 -52
  64. data/ext/ffi_c/libffi/include/Makefile.am +1 -1
  65. data/ext/ffi_c/libffi/include/Makefile.in +10 -9
  66. data/ext/ffi_c/libffi/include/ffi.h.in +54 -50
  67. data/ext/ffi_c/libffi/include/ffi_cfi.h +21 -0
  68. data/ext/ffi_c/libffi/include/ffi_common.h +29 -0
  69. data/ext/ffi_c/libffi/include/tramp.h +45 -0
  70. data/ext/ffi_c/libffi/libtool-version +2 -2
  71. data/ext/ffi_c/libffi/ltmain.sh +512 -315
  72. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +18 -14
  73. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +108 -72
  74. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +76 -45
  75. data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +51 -0
  76. data/ext/ffi_c/libffi/man/Makefile.in +9 -6
  77. data/ext/ffi_c/libffi/missing +1 -1
  78. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +1 -1
  79. data/ext/ffi_c/libffi/msvcc.sh +1 -1
  80. data/ext/ffi_c/libffi/src/aarch64/ffi.c +146 -42
  81. data/ext/ffi_c/libffi/src/aarch64/internal.h +32 -0
  82. data/ext/ffi_c/libffi/src/aarch64/sysv.S +134 -42
  83. data/ext/ffi_c/libffi/src/arc/arcompact.S +169 -94
  84. data/ext/ffi_c/libffi/src/arc/ffi.c +325 -148
  85. data/ext/ffi_c/libffi/src/arc/ffitarget.h +14 -0
  86. data/ext/ffi_c/libffi/src/arm/ffi.c +62 -17
  87. data/ext/ffi_c/libffi/src/arm/ffitarget.h +3 -3
  88. data/ext/ffi_c/libffi/src/arm/internal.h +10 -0
  89. data/ext/ffi_c/libffi/src/arm/sysv.S +113 -42
  90. data/ext/ffi_c/libffi/src/closures.c +133 -47
  91. data/ext/ffi_c/libffi/src/dlmalloc.c +5 -0
  92. data/ext/ffi_c/libffi/src/ia64/ffi.c +12 -0
  93. data/ext/ffi_c/libffi/src/ia64/unix.S +20 -2
  94. data/ext/ffi_c/libffi/src/loongarch64/ffi.c +621 -0
  95. data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +82 -0
  96. data/ext/ffi_c/libffi/src/loongarch64/sysv.S +327 -0
  97. data/ext/ffi_c/libffi/src/m32r/ffi.c +31 -14
  98. data/ext/ffi_c/libffi/src/mips/ffi.c +240 -65
  99. data/ext/ffi_c/libffi/src/mips/ffitarget.h +7 -0
  100. data/ext/ffi_c/libffi/src/mips/n32.S +137 -28
  101. data/ext/ffi_c/libffi/src/mips/o32.S +61 -4
  102. data/ext/ffi_c/libffi/src/moxie/ffi.c +47 -22
  103. data/ext/ffi_c/libffi/src/or1k/ffi.c +25 -12
  104. data/ext/ffi_c/libffi/src/pa/ffi.c +32 -33
  105. data/ext/ffi_c/libffi/src/pa/ffi64.c +614 -0
  106. data/ext/ffi_c/libffi/src/pa/ffitarget.h +22 -8
  107. data/ext/ffi_c/libffi/src/pa/hpux32.S +83 -36
  108. data/ext/ffi_c/libffi/src/pa/hpux64.S +681 -0
  109. data/ext/ffi_c/libffi/src/pa/linux.S +82 -35
  110. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +1 -1
  111. data/ext/ffi_c/libffi/src/powerpc/linux64.S +2 -0
  112. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +2 -0
  113. data/ext/ffi_c/libffi/src/powerpc/t-aix +5 -0
  114. data/ext/ffi_c/libffi/src/prep_cif.c +22 -2
  115. data/ext/ffi_c/libffi/src/riscv/ffi.c +37 -4
  116. data/ext/ffi_c/libffi/src/sparc/ffi64.c +16 -0
  117. data/ext/ffi_c/libffi/src/tramp.c +716 -0
  118. data/ext/ffi_c/libffi/src/wasm32/ffi.c +934 -0
  119. data/ext/ffi_c/libffi/src/wasm32/ffitarget.h +62 -0
  120. data/ext/ffi_c/libffi/src/x86/ffi.c +99 -37
  121. data/ext/ffi_c/libffi/src/x86/ffi64.c +67 -12
  122. data/ext/ffi_c/libffi/src/x86/ffitarget.h +9 -5
  123. data/ext/ffi_c/libffi/src/x86/ffiw64.c +43 -0
  124. data/ext/ffi_c/libffi/src/x86/internal.h +14 -0
  125. data/ext/ffi_c/libffi/src/x86/internal64.h +14 -0
  126. data/ext/ffi_c/libffi/src/x86/sysv.S +172 -38
  127. data/ext/ffi_c/libffi/src/x86/sysv_intel.S +91 -88
  128. data/ext/ffi_c/libffi/src/x86/unix64.S +96 -6
  129. data/ext/ffi_c/libffi/src/x86/win64.S +20 -7
  130. data/ext/ffi_c/libffi/src/xtensa/ffi.c +16 -8
  131. data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +4 -0
  132. data/ext/ffi_c/libffi/src/xtensa/sysv.S +26 -16
  133. data/ext/ffi_c/libffi/testsuite/Makefile.am +127 -114
  134. data/ext/ffi_c/libffi/testsuite/Makefile.in +136 -120
  135. data/ext/ffi_c/libffi/testsuite/emscripten/build-tests.sh +54 -0
  136. data/ext/ffi_c/libffi/testsuite/emscripten/build.sh +63 -0
  137. data/ext/ffi_c/libffi/testsuite/emscripten/conftest.py +80 -0
  138. data/ext/ffi_c/libffi/testsuite/emscripten/node-tests.sh +48 -0
  139. data/ext/ffi_c/libffi/testsuite/emscripten/test.html +7 -0
  140. data/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py +51 -0
  141. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +43 -21
  142. data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +2 -2
  143. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +1 -0
  144. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +5 -1
  145. data/ext/ffi_c/libffi/testsuite/libffi.call/bpo_38748.c +41 -0
  146. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +28 -3
  147. data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +3 -0
  148. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +5 -0
  149. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +4 -0
  150. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +4 -0
  151. data/ext/ffi_c/libffi/testsuite/libffi.call/s55.c +60 -0
  152. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +8 -9
  153. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +2 -2
  154. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +2 -2
  155. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +2 -2
  156. data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +1 -1
  157. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_2.c +63 -0
  158. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3.c +65 -0
  159. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3f.c +65 -0
  160. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4.c +67 -0
  161. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4f.c +67 -0
  162. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_big.c +93 -0
  163. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_small.c +61 -0
  164. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_2H.c +63 -0
  165. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_8H.c +90 -0
  166. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +1 -119
  167. data/ext/ffi_c/libffi/testsuite/libffi.call/va_2.c +220 -0
  168. data/ext/ffi_c/libffi/testsuite/libffi.call/va_3.c +154 -0
  169. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +13 -0
  170. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +11 -0
  171. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +15 -0
  172. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +3 -2
  173. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +2 -0
  174. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +2 -0
  175. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +21 -1
  176. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +2 -0
  177. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +2 -0
  178. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +2 -0
  179. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +7 -6
  180. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +6 -0
  181. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +18 -0
  182. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +22 -0
  183. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +24 -0
  184. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +29 -0
  185. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +4 -0
  186. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +19 -1
  187. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +21 -1
  188. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +35 -3
  189. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +13 -0
  190. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +19 -0
  191. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +13 -0
  192. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +13 -0
  193. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +18 -0
  194. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +22 -0
  195. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +13 -0
  196. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +29 -1
  197. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +19 -1
  198. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +24 -0
  199. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +28 -1
  200. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +24 -2
  201. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +39 -1
  202. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +25 -1
  203. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +14 -0
  204. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +14 -1
  205. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +14 -2
  206. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +19 -1
  207. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +19 -1
  208. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +20 -1
  209. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +40 -25
  210. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +40 -3
  211. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +19 -1
  212. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +18 -1
  213. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +18 -3
  214. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +18 -1
  215. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +18 -1
  216. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +19 -1
  217. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +19 -1
  218. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +3 -1
  219. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +9 -1
  220. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +4 -0
  221. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +11 -1
  222. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +22 -3
  223. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +5 -1
  224. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +6 -1
  225. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +9 -1
  226. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +9 -1
  227. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +6 -2
  228. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +9 -1
  229. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +5 -0
  230. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +10 -0
  231. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +3 -0
  232. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +2 -0
  233. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +3 -0
  234. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +11 -0
  235. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +3 -0
  236. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +4 -0
  237. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +4 -0
  238. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +4 -0
  239. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +2 -0
  240. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +3 -0
  241. data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +1 -138
  242. data/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +21 -21
  243. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +32 -9
  244. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +1 -1
  245. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +12 -0
  246. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +21 -5
  247. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct12.c +86 -0
  248. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct13.c +115 -0
  249. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +10 -1
  250. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +10 -1
  251. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +9 -0
  252. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +9 -0
  253. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +11 -0
  254. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +9 -0
  255. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +11 -0
  256. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +11 -0
  257. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs1.c +86 -0
  258. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs2.c +102 -0
  259. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs3.c +101 -0
  260. data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +1 -1
  261. data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +1 -1
  262. data/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +6 -1
  263. data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +2 -1
  264. data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +1 -0
  265. data/ext/ffi_c/libffi.bsd.mk +2 -2
  266. data/ext/ffi_c/libffi.gnu.mk +2 -2
  267. data/ext/ffi_c/rbffi.h +1 -1
  268. data/ffi.gemspec +3 -3
  269. data/lib/ffi/autopointer.rb +7 -22
  270. data/lib/ffi/compat.rb +43 -0
  271. data/lib/ffi/data_converter.rb +2 -2
  272. data/lib/ffi/dynamic_library.rb +89 -0
  273. data/lib/ffi/enum.rb +18 -11
  274. data/lib/ffi/ffi.rb +3 -0
  275. data/lib/ffi/function.rb +71 -0
  276. data/lib/ffi/library.rb +55 -71
  277. data/lib/ffi/library_path.rb +109 -0
  278. data/lib/ffi/managedstruct.rb +1 -1
  279. data/lib/ffi/platform/aarch64-windows/types.conf +52 -0
  280. data/lib/ffi/platform/hppa1.1-linux/types.conf +178 -0
  281. data/lib/ffi/platform/hppa2.0-linux/types.conf +178 -0
  282. data/lib/ffi/platform/loongarch64-linux/types.conf +141 -0
  283. data/lib/ffi/platform/sw_64-linux/types.conf +141 -0
  284. data/lib/ffi/platform.rb +15 -13
  285. data/lib/ffi/struct.rb +2 -1
  286. data/lib/ffi/struct_layout.rb +1 -1
  287. data/lib/ffi/struct_layout_builder.rb +1 -1
  288. data/lib/ffi/tools/const_generator.rb +5 -4
  289. data/lib/ffi/types.rb +32 -6
  290. data/lib/ffi/variadic.rb +19 -8
  291. data/lib/ffi/version.rb +1 -1
  292. data/rakelib/ffi_gem_helper.rb +1 -1
  293. data/samples/hello_ractor.rb +11 -0
  294. data/samples/qsort_ractor.rb +28 -0
  295. data.tar.gz.sig +0 -0
  296. metadata +103 -28
  297. metadata.gz.sig +0 -0
  298. data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +0 -14
  299. data/ext/ffi_c/libffi/.travis/build.sh +0 -142
  300. data/ext/ffi_c/libffi/.travis.yml +0 -83
  301. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar_va.c +0 -44
  302. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort_va.c +0 -44
  303. /data/ext/ffi_c/libffi/{.travis → .ci}/ar-lib +0 -0
  304. /data/ext/ffi_c/libffi/{.travis → .ci}/bfin-sim.exp +0 -0
  305. /data/ext/ffi_c/libffi/{.travis → .ci}/compile +0 -0
  306. /data/ext/ffi_c/libffi/{.travis → .ci}/m32r-sim.exp +0 -0
  307. /data/ext/ffi_c/libffi/{.travis → .ci}/moxie-sim.exp +0 -0
  308. /data/ext/ffi_c/libffi/{.travis → .ci}/or1k-sim.exp +0 -0
  309. /data/ext/ffi_c/libffi/{.travis → .ci}/powerpc-eabisim.exp +0 -0
  310. /data/ext/ffi_c/libffi/{.travis → .ci}/wine-sim.exp +0 -0
  311. /data/ext/ffi_c/libffi/testsuite/libffi.call/{pyobjc-tc.c → pyobjc_tc.c} +0 -0
  312. /data/lib/ffi/platform/{sparc64-linux → sparcv9-linux}/types.conf +0 -0
@@ -1,7 +1,7 @@
1
- # Makefile.in generated by automake 1.16.3 from Makefile.am.
1
+ # Makefile.in generated by automake 1.16.5 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
+ # Copyright (C) 1994-2021 Free Software Foundation, Inc.
5
5
 
6
6
  # This Makefile.in is free software; the Free Software Foundation
7
7
  # gives unlimited permission to copy and/or distribute it,
@@ -99,7 +99,6 @@ target_triplet = @target@
99
99
  subdir = .
100
100
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
101
101
  am__aclocal_m4_deps = $(top_srcdir)/m4/asmcfi.m4 \
102
- $(top_srcdir)/m4/ax_append_flag.m4 \
103
102
  $(top_srcdir)/m4/ax_cc_maxopt.m4 \
104
103
  $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
105
104
  $(top_srcdir)/m4/ax_check_compile_flag.m4 \
@@ -108,6 +107,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/asmcfi.m4 \
108
107
  $(top_srcdir)/m4/ax_enable_builddir.m4 \
109
108
  $(top_srcdir)/m4/ax_gcc_archflag.m4 \
110
109
  $(top_srcdir)/m4/ax_gcc_x86_cpuid.m4 \
110
+ $(top_srcdir)/m4/ax_prepend_flag.m4 \
111
111
  $(top_srcdir)/m4/ax_require_defined.m4 \
112
112
  $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
113
113
  $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
@@ -155,11 +155,12 @@ am__installdirs = "$(DESTDIR)$(toolexeclibdir)" \
155
155
  LTLIBRARIES = $(noinst_LTLIBRARIES) $(toolexeclib_LTLIBRARIES)
156
156
  am__DEPENDENCIES_1 =
157
157
  am__libffi_la_SOURCES_DIST = src/prep_cif.c src/types.c src/raw_api.c \
158
- src/java_raw_api.c src/closures.c src/debug.c
158
+ src/java_raw_api.c src/closures.c src/tramp.c src/debug.c
159
159
  am__dirstamp = $(am__leading_dot)dirstamp
160
160
  @FFI_DEBUG_TRUE@am__objects_1 = src/debug.lo
161
161
  am_libffi_la_OBJECTS = src/prep_cif.lo src/types.lo src/raw_api.lo \
162
- src/java_raw_api.lo src/closures.lo $(am__objects_1)
162
+ src/java_raw_api.lo src/closures.lo src/tramp.lo \
163
+ $(am__objects_1)
163
164
  libffi_la_OBJECTS = $(am_libffi_la_OBJECTS)
164
165
  AM_V_lt = $(am__v_lt_@AM_V@)
165
166
  am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
@@ -170,9 +171,11 @@ libffi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
170
171
  $(libffi_la_LDFLAGS) $(LDFLAGS) -o $@
171
172
  am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
172
173
  am__libffi_convenience_la_SOURCES_DIST = src/prep_cif.c src/types.c \
173
- src/raw_api.c src/java_raw_api.c src/closures.c src/debug.c
174
+ src/raw_api.c src/java_raw_api.c src/closures.c src/tramp.c \
175
+ src/debug.c
174
176
  am__objects_2 = src/prep_cif.lo src/types.lo src/raw_api.lo \
175
- src/java_raw_api.lo src/closures.lo $(am__objects_1)
177
+ src/java_raw_api.lo src/closures.lo src/tramp.lo \
178
+ $(am__objects_1)
176
179
  am_libffi_convenience_la_OBJECTS = $(am__objects_2)
177
180
  nodist_libffi_convenience_la_OBJECTS =
178
181
  libffi_convenience_la_OBJECTS = $(am_libffi_convenience_la_OBJECTS) \
@@ -195,8 +198,8 @@ am__maybe_remake_depfiles = depfiles
195
198
  am__depfiles_remade = src/$(DEPDIR)/closures.Plo \
196
199
  src/$(DEPDIR)/debug.Plo src/$(DEPDIR)/java_raw_api.Plo \
197
200
  src/$(DEPDIR)/prep_cif.Plo src/$(DEPDIR)/raw_api.Plo \
198
- src/$(DEPDIR)/types.Plo src/aarch64/$(DEPDIR)/ffi.Plo \
199
- src/aarch64/$(DEPDIR)/sysv.Plo \
201
+ src/$(DEPDIR)/tramp.Plo src/$(DEPDIR)/types.Plo \
202
+ src/aarch64/$(DEPDIR)/ffi.Plo src/aarch64/$(DEPDIR)/sysv.Plo \
200
203
  src/aarch64/$(DEPDIR)/win64_armasm.Plo \
201
204
  src/alpha/$(DEPDIR)/ffi.Plo src/alpha/$(DEPDIR)/osf.Plo \
202
205
  src/arc/$(DEPDIR)/arcompact.Plo src/arc/$(DEPDIR)/ffi.Plo \
@@ -209,18 +212,20 @@ am__depfiles_remade = src/$(DEPDIR)/closures.Plo \
209
212
  src/frv/$(DEPDIR)/eabi.Plo src/frv/$(DEPDIR)/ffi.Plo \
210
213
  src/ia64/$(DEPDIR)/ffi.Plo src/ia64/$(DEPDIR)/unix.Plo \
211
214
  src/kvx/$(DEPDIR)/ffi.Plo src/kvx/$(DEPDIR)/sysv.Plo \
212
- src/m32r/$(DEPDIR)/ffi.Plo src/m32r/$(DEPDIR)/sysv.Plo \
213
- src/m68k/$(DEPDIR)/ffi.Plo src/m68k/$(DEPDIR)/sysv.Plo \
214
- src/m88k/$(DEPDIR)/ffi.Plo src/m88k/$(DEPDIR)/obsd.Plo \
215
- src/metag/$(DEPDIR)/ffi.Plo src/metag/$(DEPDIR)/sysv.Plo \
216
- src/microblaze/$(DEPDIR)/ffi.Plo \
215
+ src/loongarch64/$(DEPDIR)/ffi.Plo \
216
+ src/loongarch64/$(DEPDIR)/sysv.Plo src/m32r/$(DEPDIR)/ffi.Plo \
217
+ src/m32r/$(DEPDIR)/sysv.Plo src/m68k/$(DEPDIR)/ffi.Plo \
218
+ src/m68k/$(DEPDIR)/sysv.Plo src/m88k/$(DEPDIR)/ffi.Plo \
219
+ src/m88k/$(DEPDIR)/obsd.Plo src/metag/$(DEPDIR)/ffi.Plo \
220
+ src/metag/$(DEPDIR)/sysv.Plo src/microblaze/$(DEPDIR)/ffi.Plo \
217
221
  src/microblaze/$(DEPDIR)/sysv.Plo src/mips/$(DEPDIR)/ffi.Plo \
218
222
  src/mips/$(DEPDIR)/n32.Plo src/mips/$(DEPDIR)/o32.Plo \
219
223
  src/moxie/$(DEPDIR)/eabi.Plo src/moxie/$(DEPDIR)/ffi.Plo \
220
224
  src/nios2/$(DEPDIR)/ffi.Plo src/nios2/$(DEPDIR)/sysv.Plo \
221
225
  src/or1k/$(DEPDIR)/ffi.Plo src/or1k/$(DEPDIR)/sysv.Plo \
222
226
  src/pa/$(DEPDIR)/ffi.Plo src/pa/$(DEPDIR)/hpux32.Plo \
223
- src/pa/$(DEPDIR)/linux.Plo src/powerpc/$(DEPDIR)/aix.Plo \
227
+ src/pa/$(DEPDIR)/hpux64.Plo src/pa/$(DEPDIR)/linux.Plo \
228
+ src/powerpc/$(DEPDIR)/aix.Plo \
224
229
  src/powerpc/$(DEPDIR)/aix_closure.Plo \
225
230
  src/powerpc/$(DEPDIR)/darwin.Plo \
226
231
  src/powerpc/$(DEPDIR)/darwin_closure.Plo \
@@ -239,12 +244,12 @@ am__depfiles_remade = src/$(DEPDIR)/closures.Plo \
239
244
  src/sparc/$(DEPDIR)/ffi64.Plo src/sparc/$(DEPDIR)/v8.Plo \
240
245
  src/sparc/$(DEPDIR)/v9.Plo src/tile/$(DEPDIR)/ffi.Plo \
241
246
  src/tile/$(DEPDIR)/tile.Plo src/vax/$(DEPDIR)/elfbsd.Plo \
242
- src/vax/$(DEPDIR)/ffi.Plo src/x86/$(DEPDIR)/ffi.Plo \
243
- src/x86/$(DEPDIR)/ffi64.Plo src/x86/$(DEPDIR)/ffiw64.Plo \
244
- src/x86/$(DEPDIR)/sysv.Plo src/x86/$(DEPDIR)/sysv_intel.Plo \
245
- src/x86/$(DEPDIR)/unix64.Plo src/x86/$(DEPDIR)/win64.Plo \
246
- src/x86/$(DEPDIR)/win64_intel.Plo src/xtensa/$(DEPDIR)/ffi.Plo \
247
- src/xtensa/$(DEPDIR)/sysv.Plo
247
+ src/vax/$(DEPDIR)/ffi.Plo src/wasm32/$(DEPDIR)/ffi.Plo \
248
+ src/x86/$(DEPDIR)/ffi.Plo src/x86/$(DEPDIR)/ffi64.Plo \
249
+ src/x86/$(DEPDIR)/ffiw64.Plo src/x86/$(DEPDIR)/sysv.Plo \
250
+ src/x86/$(DEPDIR)/sysv_intel.Plo src/x86/$(DEPDIR)/unix64.Plo \
251
+ src/x86/$(DEPDIR)/win64.Plo src/x86/$(DEPDIR)/win64_intel.Plo \
252
+ src/xtensa/$(DEPDIR)/ffi.Plo src/xtensa/$(DEPDIR)/sysv.Plo
248
253
  am__mv = mv -f
249
254
  CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
250
255
  $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
@@ -323,13 +328,10 @@ am__define_uniq_tagged_files = \
323
328
  unique=`for i in $$list; do \
324
329
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325
330
  done | $(am__uniquify_input)`
326
- ETAGS = etags
327
- CTAGS = ctags
328
- CSCOPE = cscope
329
331
  DIST_SUBDIRS = include testsuite man doc
330
332
  am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/fficonfig.h.in \
331
- $(srcdir)/libffi.pc.in compile config.guess config.sub depcomp \
332
- install-sh ltmain.sh missing
333
+ $(srcdir)/libffi.pc.in README.md compile config.guess \
334
+ config.sub depcomp install-sh ltmain.sh missing
333
335
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
334
336
  distdir = $(PACKAGE)-$(VERSION)
335
337
  top_distdir = $(distdir)
@@ -375,7 +377,6 @@ am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
375
377
  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
376
378
  distcleancheck_listfiles = find . -type f -print
377
379
  ACLOCAL = @ACLOCAL@
378
- ALLOCA = @ALLOCA@
379
380
  AMTAR = @AMTAR@
380
381
  AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
381
382
  AM_LTLDFLAGS = @AM_LTLDFLAGS@
@@ -391,8 +392,9 @@ CCASDEPMODE = @CCASDEPMODE@
391
392
  CCASFLAGS = @CCASFLAGS@
392
393
  CCDEPMODE = @CCDEPMODE@
393
394
  CFLAGS = @CFLAGS@
394
- CPP = @CPP@
395
395
  CPPFLAGS = @CPPFLAGS@
396
+ CSCOPE = @CSCOPE@
397
+ CTAGS = @CTAGS@
396
398
  CXX = @CXX@
397
399
  CXXCPP = @CXXCPP@
398
400
  CXXDEPMODE = @CXXDEPMODE@
@@ -407,9 +409,11 @@ ECHO_C = @ECHO_C@
407
409
  ECHO_N = @ECHO_N@
408
410
  ECHO_T = @ECHO_T@
409
411
  EGREP = @EGREP@
412
+ ETAGS = @ETAGS@
410
413
  EXEEXT = @EXEEXT@
411
414
  FFI_EXEC_TRAMPOLINE_TABLE = @FFI_EXEC_TRAMPOLINE_TABLE@
412
415
  FGREP = @FGREP@
416
+ FILECMD = @FILECMD@
413
417
  GREP = @GREP@
414
418
  HAVE_LONG_DOUBLE = @HAVE_LONG_DOUBLE@
415
419
  HAVE_LONG_DOUBLE_VARIANT = @HAVE_LONG_DOUBLE_VARIANT@
@@ -448,6 +452,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@
448
452
  PATH_SEPARATOR = @PATH_SEPARATOR@
449
453
  PRTDIAG = @PRTDIAG@
450
454
  RANLIB = @RANLIB@
455
+ READELF = @READELF@
451
456
  SECTION_LDFLAGS = @SECTION_LDFLAGS@
452
457
  SED = @SED@
453
458
  SET_MAKE = @SET_MAKE@
@@ -514,6 +519,7 @@ target_alias = @target_alias@
514
519
  target_cpu = @target_cpu@
515
520
  target_os = @target_os@
516
521
  target_vendor = @target_vendor@
522
+ tmake_file = @tmake_file@
517
523
  toolexecdir = @toolexecdir@
518
524
  toolexeclibdir = @toolexeclibdir@
519
525
  top_build_prefix = @top_build_prefix@
@@ -528,8 +534,9 @@ EXTRA_DIST = LICENSE ChangeLog.old \
528
534
  m4/ltversion.m4 src/debug.c msvcc.sh \
529
535
  generate-darwin-source-and-headers.py \
530
536
  libffi.xcodeproj/project.pbxproj \
537
+ src/powerpc/t-aix \
531
538
  libtool-ldflags libtool-version configure.host README.md \
532
- libffi.map.in LICENSE-BUILDTOOLS msvc_build make_sunver.pl
539
+ libffi.map.in LICENSE-BUILDTOOLS msvc_build make_sunver.pl
533
540
 
534
541
 
535
542
  # local.exp is generated by configure
@@ -543,7 +550,7 @@ pkgconfig_DATA = libffi.pc
543
550
  toolexeclib_LTLIBRARIES = libffi.la
544
551
  noinst_LTLIBRARIES = libffi_convenience.la
545
552
  libffi_la_SOURCES = src/prep_cif.c src/types.c src/raw_api.c \
546
- src/java_raw_api.c src/closures.c $(am__append_2)
553
+ src/java_raw_api.c src/closures.c src/tramp.c $(am__append_2)
547
554
  noinst_HEADERS = src/aarch64/ffitarget.h src/aarch64/internal.h \
548
555
  src/alpha/ffitarget.h src/alpha/internal.h \
549
556
  src/arc/ffitarget.h src/arm/ffitarget.h src/arm/internal.h \
@@ -560,9 +567,11 @@ noinst_HEADERS = src/aarch64/ffitarget.h src/aarch64/internal.h \
560
567
  src/s390/ffitarget.h src/s390/internal.h src/sh/ffitarget.h \
561
568
  src/sh64/ffitarget.h src/sparc/ffitarget.h \
562
569
  src/sparc/internal.h src/tile/ffitarget.h src/vax/ffitarget.h \
570
+ src/wasm32/ffitarget.h \
563
571
  src/x86/ffitarget.h src/x86/internal.h src/x86/internal64.h \
564
572
  src/x86/asmnames.h src/xtensa/ffitarget.h src/dlmalloc.c \
565
- src/kvx/ffitarget.h
573
+ src/kvx/ffitarget.h src/kvx/asm.h \
574
+ src/loongarch64/ffitarget.h
566
575
 
567
576
  EXTRA_libffi_la_SOURCES = src/aarch64/ffi.c src/aarch64/sysv.S \
568
577
  src/aarch64/win64_armasm.S src/alpha/ffi.c src/alpha/osf.S \
@@ -578,7 +587,7 @@ EXTRA_libffi_la_SOURCES = src/aarch64/ffi.c src/aarch64/sysv.S \
578
587
  src/mips/n32.S src/moxie/ffi.c src/moxie/eabi.S \
579
588
  src/nios2/ffi.c src/nios2/sysv.S src/or1k/ffi.c \
580
589
  src/or1k/sysv.S src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
581
- src/powerpc/ffi.c src/powerpc/ffi_sysv.c \
590
+ src/pa/hpux64.S src/powerpc/ffi.c src/powerpc/ffi_sysv.c \
582
591
  src/powerpc/ffi_linux64.c src/powerpc/sysv.S \
583
592
  src/powerpc/linux64.S src/powerpc/linux64_closure.S \
584
593
  src/powerpc/ppc_closure.S src/powerpc/aix.S \
@@ -589,10 +598,11 @@ EXTRA_libffi_la_SOURCES = src/aarch64/ffi.c src/aarch64/sysv.S \
589
598
  src/sh64/sysv.S src/sparc/ffi.c src/sparc/ffi64.c \
590
599
  src/sparc/v8.S src/sparc/v9.S src/tile/ffi.c src/tile/tile.S \
591
600
  src/vax/ffi.c src/vax/elfbsd.S src/x86/ffi.c src/x86/sysv.S \
601
+ src/wasm32/ffi.c \
592
602
  src/x86/ffiw64.c src/x86/win64.S src/x86/ffi64.c \
593
603
  src/x86/unix64.S src/x86/sysv_intel.S src/x86/win64_intel.S \
594
604
  src/xtensa/ffi.c src/xtensa/sysv.S src/kvx/ffi.c \
595
- src/kvx/sysv.S
605
+ src/kvx/sysv.S src/loongarch64/ffi.c src/loongarch64/sysv.S
596
606
 
597
607
  libffi_la_LIBADD = $(TARGET_OBJ)
598
608
  libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
@@ -725,6 +735,7 @@ src/types.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
725
735
  src/raw_api.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
726
736
  src/java_raw_api.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
727
737
  src/closures.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
738
+ src/tramp.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
728
739
  src/debug.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
729
740
  src/aarch64/$(am__dirstamp):
730
741
  @$(MKDIR_P) src/aarch64
@@ -933,6 +944,8 @@ src/pa/linux.lo: src/pa/$(am__dirstamp) \
933
944
  src/pa/$(DEPDIR)/$(am__dirstamp)
934
945
  src/pa/hpux32.lo: src/pa/$(am__dirstamp) \
935
946
  src/pa/$(DEPDIR)/$(am__dirstamp)
947
+ src/pa/hpux64.lo: src/pa/$(am__dirstamp) \
948
+ src/pa/$(DEPDIR)/$(am__dirstamp)
936
949
  src/powerpc/$(am__dirstamp):
937
950
  @$(MKDIR_P) src/powerpc
938
951
  @: > src/powerpc/$(am__dirstamp)
@@ -1046,6 +1059,14 @@ src/x86/ffi.lo: src/x86/$(am__dirstamp) \
1046
1059
  src/x86/$(DEPDIR)/$(am__dirstamp)
1047
1060
  src/x86/sysv.lo: src/x86/$(am__dirstamp) \
1048
1061
  src/x86/$(DEPDIR)/$(am__dirstamp)
1062
+ src/wasm32/$(am__dirstamp):
1063
+ @$(MKDIR_P) src/wasm32
1064
+ @: > src/wasm32/$(am__dirstamp)
1065
+ src/wasm32/$(DEPDIR)/$(am__dirstamp):
1066
+ @$(MKDIR_P) src/wasm32/$(DEPDIR)
1067
+ @: > src/wasm32/$(DEPDIR)/$(am__dirstamp)
1068
+ src/wasm32/ffi.lo: src/wasm32/$(am__dirstamp) \
1069
+ src/wasm32/$(DEPDIR)/$(am__dirstamp)
1049
1070
  src/x86/ffiw64.lo: src/x86/$(am__dirstamp) \
1050
1071
  src/x86/$(DEPDIR)/$(am__dirstamp)
1051
1072
  src/x86/win64.lo: src/x86/$(am__dirstamp) \
@@ -1078,6 +1099,16 @@ src/kvx/ffi.lo: src/kvx/$(am__dirstamp) \
1078
1099
  src/kvx/$(DEPDIR)/$(am__dirstamp)
1079
1100
  src/kvx/sysv.lo: src/kvx/$(am__dirstamp) \
1080
1101
  src/kvx/$(DEPDIR)/$(am__dirstamp)
1102
+ src/loongarch64/$(am__dirstamp):
1103
+ @$(MKDIR_P) src/loongarch64
1104
+ @: > src/loongarch64/$(am__dirstamp)
1105
+ src/loongarch64/$(DEPDIR)/$(am__dirstamp):
1106
+ @$(MKDIR_P) src/loongarch64/$(DEPDIR)
1107
+ @: > src/loongarch64/$(DEPDIR)/$(am__dirstamp)
1108
+ src/loongarch64/ffi.lo: src/loongarch64/$(am__dirstamp) \
1109
+ src/loongarch64/$(DEPDIR)/$(am__dirstamp)
1110
+ src/loongarch64/sysv.lo: src/loongarch64/$(am__dirstamp) \
1111
+ src/loongarch64/$(DEPDIR)/$(am__dirstamp)
1081
1112
 
1082
1113
  libffi.la: $(libffi_la_OBJECTS) $(libffi_la_DEPENDENCIES) $(EXTRA_libffi_la_DEPENDENCIES)
1083
1114
  $(AM_V_CCLD)$(libffi_la_LINK) -rpath $(toolexeclibdir) $(libffi_la_OBJECTS) $(libffi_la_LIBADD) $(LIBS)
@@ -1111,6 +1142,8 @@ mostlyclean-compile:
1111
1142
  -rm -f src/ia64/*.lo
1112
1143
  -rm -f src/kvx/*.$(OBJEXT)
1113
1144
  -rm -f src/kvx/*.lo
1145
+ -rm -f src/loongarch64/*.$(OBJEXT)
1146
+ -rm -f src/loongarch64/*.lo
1114
1147
  -rm -f src/m32r/*.$(OBJEXT)
1115
1148
  -rm -f src/m32r/*.lo
1116
1149
  -rm -f src/m68k/*.$(OBJEXT)
@@ -1147,6 +1180,8 @@ mostlyclean-compile:
1147
1180
  -rm -f src/tile/*.lo
1148
1181
  -rm -f src/vax/*.$(OBJEXT)
1149
1182
  -rm -f src/vax/*.lo
1183
+ -rm -f src/wasm32/*.$(OBJEXT)
1184
+ -rm -f src/wasm32/*.lo
1150
1185
  -rm -f src/x86/*.$(OBJEXT)
1151
1186
  -rm -f src/x86/*.lo
1152
1187
  -rm -f src/xtensa/*.$(OBJEXT)
@@ -1160,6 +1195,7 @@ distclean-compile:
1160
1195
  @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/java_raw_api.Plo@am__quote@ # am--include-marker
1161
1196
  @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/prep_cif.Plo@am__quote@ # am--include-marker
1162
1197
  @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/raw_api.Plo@am__quote@ # am--include-marker
1198
+ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/tramp.Plo@am__quote@ # am--include-marker
1163
1199
  @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/types.Plo@am__quote@ # am--include-marker
1164
1200
  @AMDEP_TRUE@@am__include@ @am__quote@src/aarch64/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1165
1201
  @AMDEP_TRUE@@am__include@ @am__quote@src/aarch64/$(DEPDIR)/sysv.Plo@am__quote@ # am--include-marker
@@ -1185,6 +1221,8 @@ distclean-compile:
1185
1221
  @AMDEP_TRUE@@am__include@ @am__quote@src/ia64/$(DEPDIR)/unix.Plo@am__quote@ # am--include-marker
1186
1222
  @AMDEP_TRUE@@am__include@ @am__quote@src/kvx/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1187
1223
  @AMDEP_TRUE@@am__include@ @am__quote@src/kvx/$(DEPDIR)/sysv.Plo@am__quote@ # am--include-marker
1224
+ @AMDEP_TRUE@@am__include@ @am__quote@src/loongarch64/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1225
+ @AMDEP_TRUE@@am__include@ @am__quote@src/loongarch64/$(DEPDIR)/sysv.Plo@am__quote@ # am--include-marker
1188
1226
  @AMDEP_TRUE@@am__include@ @am__quote@src/m32r/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1189
1227
  @AMDEP_TRUE@@am__include@ @am__quote@src/m32r/$(DEPDIR)/sysv.Plo@am__quote@ # am--include-marker
1190
1228
  @AMDEP_TRUE@@am__include@ @am__quote@src/m68k/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
@@ -1206,6 +1244,7 @@ distclean-compile:
1206
1244
  @AMDEP_TRUE@@am__include@ @am__quote@src/or1k/$(DEPDIR)/sysv.Plo@am__quote@ # am--include-marker
1207
1245
  @AMDEP_TRUE@@am__include@ @am__quote@src/pa/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1208
1246
  @AMDEP_TRUE@@am__include@ @am__quote@src/pa/$(DEPDIR)/hpux32.Plo@am__quote@ # am--include-marker
1247
+ @AMDEP_TRUE@@am__include@ @am__quote@src/pa/$(DEPDIR)/hpux64.Plo@am__quote@ # am--include-marker
1209
1248
  @AMDEP_TRUE@@am__include@ @am__quote@src/pa/$(DEPDIR)/linux.Plo@am__quote@ # am--include-marker
1210
1249
  @AMDEP_TRUE@@am__include@ @am__quote@src/powerpc/$(DEPDIR)/aix.Plo@am__quote@ # am--include-marker
1211
1250
  @AMDEP_TRUE@@am__include@ @am__quote@src/powerpc/$(DEPDIR)/aix_closure.Plo@am__quote@ # am--include-marker
@@ -1235,6 +1274,7 @@ distclean-compile:
1235
1274
  @AMDEP_TRUE@@am__include@ @am__quote@src/tile/$(DEPDIR)/tile.Plo@am__quote@ # am--include-marker
1236
1275
  @AMDEP_TRUE@@am__include@ @am__quote@src/vax/$(DEPDIR)/elfbsd.Plo@am__quote@ # am--include-marker
1237
1276
  @AMDEP_TRUE@@am__include@ @am__quote@src/vax/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1277
+ @AMDEP_TRUE@@am__include@ @am__quote@src/wasm32/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1238
1278
  @AMDEP_TRUE@@am__include@ @am__quote@src/x86/$(DEPDIR)/ffi.Plo@am__quote@ # am--include-marker
1239
1279
  @AMDEP_TRUE@@am__include@ @am__quote@src/x86/$(DEPDIR)/ffi64.Plo@am__quote@ # am--include-marker
1240
1280
  @AMDEP_TRUE@@am__include@ @am__quote@src/x86/$(DEPDIR)/ffiw64.Plo@am__quote@ # am--include-marker
@@ -1317,6 +1357,7 @@ clean-libtool:
1317
1357
  -rm -rf src/frv/.libs src/frv/_libs
1318
1358
  -rm -rf src/ia64/.libs src/ia64/_libs
1319
1359
  -rm -rf src/kvx/.libs src/kvx/_libs
1360
+ -rm -rf src/loongarch64/.libs src/loongarch64/_libs
1320
1361
  -rm -rf src/m32r/.libs src/m32r/_libs
1321
1362
  -rm -rf src/m68k/.libs src/m68k/_libs
1322
1363
  -rm -rf src/m88k/.libs src/m88k/_libs
@@ -1335,6 +1376,7 @@ clean-libtool:
1335
1376
  -rm -rf src/sparc/.libs src/sparc/_libs
1336
1377
  -rm -rf src/tile/.libs src/tile/_libs
1337
1378
  -rm -rf src/vax/.libs src/vax/_libs
1379
+ -rm -rf src/wasm32/.libs src/wasm32/_libs
1338
1380
  -rm -rf src/x86/.libs src/x86/_libs
1339
1381
  -rm -rf src/xtensa/.libs src/xtensa/_libs
1340
1382
 
@@ -1467,7 +1509,6 @@ cscopelist-am: $(am__tagged_files)
1467
1509
  distclean-tags:
1468
1510
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1469
1511
  -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
1470
-
1471
1512
  distdir: $(BUILT_SOURCES)
1472
1513
  $(MAKE) $(AM_MAKEFLAGS) distdir-am
1473
1514
 
@@ -1726,6 +1767,8 @@ distclean-generic:
1726
1767
  -rm -f src/ia64/$(am__dirstamp)
1727
1768
  -rm -f src/kvx/$(DEPDIR)/$(am__dirstamp)
1728
1769
  -rm -f src/kvx/$(am__dirstamp)
1770
+ -rm -f src/loongarch64/$(DEPDIR)/$(am__dirstamp)
1771
+ -rm -f src/loongarch64/$(am__dirstamp)
1729
1772
  -rm -f src/m32r/$(DEPDIR)/$(am__dirstamp)
1730
1773
  -rm -f src/m32r/$(am__dirstamp)
1731
1774
  -rm -f src/m68k/$(DEPDIR)/$(am__dirstamp)
@@ -1762,6 +1805,8 @@ distclean-generic:
1762
1805
  -rm -f src/tile/$(am__dirstamp)
1763
1806
  -rm -f src/vax/$(DEPDIR)/$(am__dirstamp)
1764
1807
  -rm -f src/vax/$(am__dirstamp)
1808
+ -rm -f src/wasm32/$(DEPDIR)/$(am__dirstamp)
1809
+ -rm -f src/wasm32/$(am__dirstamp)
1765
1810
  -rm -f src/x86/$(DEPDIR)/$(am__dirstamp)
1766
1811
  -rm -f src/x86/$(am__dirstamp)
1767
1812
  -rm -f src/xtensa/$(DEPDIR)/$(am__dirstamp)
@@ -1783,6 +1828,7 @@ distclean: distclean-recursive
1783
1828
  -rm -f src/$(DEPDIR)/java_raw_api.Plo
1784
1829
  -rm -f src/$(DEPDIR)/prep_cif.Plo
1785
1830
  -rm -f src/$(DEPDIR)/raw_api.Plo
1831
+ -rm -f src/$(DEPDIR)/tramp.Plo
1786
1832
  -rm -f src/$(DEPDIR)/types.Plo
1787
1833
  -rm -f src/aarch64/$(DEPDIR)/ffi.Plo
1788
1834
  -rm -f src/aarch64/$(DEPDIR)/sysv.Plo
@@ -1808,6 +1854,8 @@ distclean: distclean-recursive
1808
1854
  -rm -f src/ia64/$(DEPDIR)/unix.Plo
1809
1855
  -rm -f src/kvx/$(DEPDIR)/ffi.Plo
1810
1856
  -rm -f src/kvx/$(DEPDIR)/sysv.Plo
1857
+ -rm -f src/loongarch64/$(DEPDIR)/ffi.Plo
1858
+ -rm -f src/loongarch64/$(DEPDIR)/sysv.Plo
1811
1859
  -rm -f src/m32r/$(DEPDIR)/ffi.Plo
1812
1860
  -rm -f src/m32r/$(DEPDIR)/sysv.Plo
1813
1861
  -rm -f src/m68k/$(DEPDIR)/ffi.Plo
@@ -1829,6 +1877,7 @@ distclean: distclean-recursive
1829
1877
  -rm -f src/or1k/$(DEPDIR)/sysv.Plo
1830
1878
  -rm -f src/pa/$(DEPDIR)/ffi.Plo
1831
1879
  -rm -f src/pa/$(DEPDIR)/hpux32.Plo
1880
+ -rm -f src/pa/$(DEPDIR)/hpux64.Plo
1832
1881
  -rm -f src/pa/$(DEPDIR)/linux.Plo
1833
1882
  -rm -f src/powerpc/$(DEPDIR)/aix.Plo
1834
1883
  -rm -f src/powerpc/$(DEPDIR)/aix_closure.Plo
@@ -1858,6 +1907,7 @@ distclean: distclean-recursive
1858
1907
  -rm -f src/tile/$(DEPDIR)/tile.Plo
1859
1908
  -rm -f src/vax/$(DEPDIR)/elfbsd.Plo
1860
1909
  -rm -f src/vax/$(DEPDIR)/ffi.Plo
1910
+ -rm -f src/wasm32/$(DEPDIR)/ffi.Plo
1861
1911
  -rm -f src/x86/$(DEPDIR)/ffi.Plo
1862
1912
  -rm -f src/x86/$(DEPDIR)/ffi64.Plo
1863
1913
  -rm -f src/x86/$(DEPDIR)/ffiw64.Plo
@@ -1920,6 +1970,7 @@ maintainer-clean: maintainer-clean-recursive
1920
1970
  -rm -f src/$(DEPDIR)/java_raw_api.Plo
1921
1971
  -rm -f src/$(DEPDIR)/prep_cif.Plo
1922
1972
  -rm -f src/$(DEPDIR)/raw_api.Plo
1973
+ -rm -f src/$(DEPDIR)/tramp.Plo
1923
1974
  -rm -f src/$(DEPDIR)/types.Plo
1924
1975
  -rm -f src/aarch64/$(DEPDIR)/ffi.Plo
1925
1976
  -rm -f src/aarch64/$(DEPDIR)/sysv.Plo
@@ -1945,6 +1996,8 @@ maintainer-clean: maintainer-clean-recursive
1945
1996
  -rm -f src/ia64/$(DEPDIR)/unix.Plo
1946
1997
  -rm -f src/kvx/$(DEPDIR)/ffi.Plo
1947
1998
  -rm -f src/kvx/$(DEPDIR)/sysv.Plo
1999
+ -rm -f src/loongarch64/$(DEPDIR)/ffi.Plo
2000
+ -rm -f src/loongarch64/$(DEPDIR)/sysv.Plo
1948
2001
  -rm -f src/m32r/$(DEPDIR)/ffi.Plo
1949
2002
  -rm -f src/m32r/$(DEPDIR)/sysv.Plo
1950
2003
  -rm -f src/m68k/$(DEPDIR)/ffi.Plo
@@ -1966,6 +2019,7 @@ maintainer-clean: maintainer-clean-recursive
1966
2019
  -rm -f src/or1k/$(DEPDIR)/sysv.Plo
1967
2020
  -rm -f src/pa/$(DEPDIR)/ffi.Plo
1968
2021
  -rm -f src/pa/$(DEPDIR)/hpux32.Plo
2022
+ -rm -f src/pa/$(DEPDIR)/hpux64.Plo
1969
2023
  -rm -f src/pa/$(DEPDIR)/linux.Plo
1970
2024
  -rm -f src/powerpc/$(DEPDIR)/aix.Plo
1971
2025
  -rm -f src/powerpc/$(DEPDIR)/aix_closure.Plo
@@ -1995,6 +2049,7 @@ maintainer-clean: maintainer-clean-recursive
1995
2049
  -rm -f src/tile/$(DEPDIR)/tile.Plo
1996
2050
  -rm -f src/vax/$(DEPDIR)/elfbsd.Plo
1997
2051
  -rm -f src/vax/$(DEPDIR)/ffi.Plo
2052
+ -rm -f src/wasm32/$(DEPDIR)/ffi.Plo
1998
2053
  -rm -f src/x86/$(DEPDIR)/ffi.Plo
1999
2054
  -rm -f src/x86/$(DEPDIR)/ffi64.Plo
2000
2055
  -rm -f src/x86/$(DEPDIR)/ffiw64.Plo
@@ -2064,6 +2119,9 @@ dist-hook:
2064
2119
  if [ -d $(top_srcdir)/.git ] ; then (cd $(top_srcdir); git log --no-decorate) ; else echo 'See git log for history.' ; fi > $(distdir)/ChangeLog
2065
2120
  s=`awk '/was released on/{ print NR; exit}' $(top_srcdir)/README.md`; tail -n +$$(($$s-1)) $(top_srcdir)/README.md > $(distdir)/README.md
2066
2121
 
2122
+ # target overrides
2123
+ -include $(tmake_file)
2124
+
2067
2125
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
2068
2126
  # Otherwise a system limit (for SysV at least) may be exceeded.
2069
2127
  .NOEXPORT: