ffi 1.11.3 → 1.15.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +184 -0
  3. data/Gemfile +3 -4
  4. data/README.md +24 -3
  5. data/Rakefile +64 -69
  6. data/ext/ffi_c/AbstractMemory.c +24 -25
  7. data/ext/ffi_c/Buffer.c +4 -9
  8. data/ext/ffi_c/Call.c +4 -16
  9. data/ext/ffi_c/ClosurePool.c +75 -25
  10. data/ext/ffi_c/ClosurePool.h +3 -1
  11. data/ext/ffi_c/DynamicLibrary.c +1 -6
  12. data/ext/ffi_c/Function.c +38 -38
  13. data/ext/ffi_c/Function.h +0 -4
  14. data/ext/ffi_c/FunctionInfo.c +3 -8
  15. data/ext/ffi_c/LastError.c +2 -6
  16. data/ext/ffi_c/LongDouble.c +5 -3
  17. data/ext/ffi_c/LongDouble.h +0 -4
  18. data/ext/ffi_c/MemoryPointer.c +3 -8
  19. data/ext/ffi_c/MemoryPointer.h +0 -4
  20. data/ext/ffi_c/MethodHandle.c +21 -31
  21. data/ext/ffi_c/MethodHandle.h +3 -2
  22. data/ext/ffi_c/Platform.c +5 -9
  23. data/ext/ffi_c/Pointer.c +25 -26
  24. data/ext/ffi_c/Pointer.h +0 -4
  25. data/ext/ffi_c/Struct.c +49 -56
  26. data/ext/ffi_c/Struct.h +12 -6
  27. data/ext/ffi_c/StructByValue.c +2 -7
  28. data/ext/ffi_c/StructLayout.c +22 -20
  29. data/ext/ffi_c/Thread.c +0 -8
  30. data/ext/ffi_c/Thread.h +1 -9
  31. data/ext/ffi_c/Type.c +1 -1
  32. data/ext/ffi_c/Types.c +6 -7
  33. data/ext/ffi_c/Types.h +3 -4
  34. data/ext/ffi_c/Variadic.c +14 -9
  35. data/ext/ffi_c/compat.h +4 -0
  36. data/ext/ffi_c/extconf.rb +36 -24
  37. data/ext/ffi_c/libffi/.travis/bfin-sim.exp +58 -0
  38. data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +14 -0
  39. data/ext/ffi_c/libffi/.travis/build-in-container.sh +2 -12
  40. data/ext/ffi_c/libffi/.travis/build.sh +62 -30
  41. data/ext/ffi_c/libffi/.travis/install.sh +65 -37
  42. data/ext/ffi_c/libffi/.travis/m32r-sim.exp +58 -0
  43. data/ext/ffi_c/libffi/.travis/moxie-sim.exp +1 -1
  44. data/ext/ffi_c/libffi/.travis/or1k-sim.exp +58 -0
  45. data/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +58 -0
  46. data/ext/ffi_c/libffi/.travis/site.exp +10 -1
  47. data/ext/ffi_c/libffi/.travis/wine-sim.exp +55 -0
  48. data/ext/ffi_c/libffi/.travis.yml +32 -12
  49. data/ext/ffi_c/libffi/{ChangeLog.libffi-3.1 → ChangeLog.old} +1407 -0
  50. data/ext/ffi_c/libffi/LICENSE +1 -1
  51. data/ext/ffi_c/libffi/Makefile.am +53 -61
  52. data/ext/ffi_c/libffi/Makefile.in +458 -207
  53. data/ext/ffi_c/libffi/README.md +22 -6
  54. data/ext/ffi_c/libffi/config.guess +552 -331
  55. data/ext/ffi_c/libffi/config.sub +1321 -1306
  56. data/ext/ffi_c/libffi/configure +414 -342
  57. data/ext/ffi_c/libffi/configure.ac +32 -11
  58. data/ext/ffi_c/libffi/configure.host +37 -22
  59. data/ext/ffi_c/libffi/doc/Makefile.in +9 -5
  60. data/ext/ffi_c/libffi/doc/libffi.texi +26 -14
  61. data/ext/ffi_c/libffi/doc/version.texi +4 -4
  62. data/ext/ffi_c/libffi/fficonfig.h.in +13 -0
  63. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +2 -4
  64. data/ext/ffi_c/libffi/include/Makefile.in +10 -6
  65. data/ext/ffi_c/libffi/include/ffi.h.in +15 -7
  66. data/ext/ffi_c/libffi/install-sh +23 -13
  67. data/ext/ffi_c/libffi/libffi.map.in +8 -12
  68. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +2 -48
  69. data/ext/ffi_c/libffi/libtool-version +1 -1
  70. data/ext/ffi_c/libffi/ltmain.sh +156 -61
  71. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +5 -26
  72. data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +5 -26
  73. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +2 -1
  74. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +5 -26
  75. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +7 -3
  76. data/ext/ffi_c/libffi/man/Makefile.in +9 -5
  77. data/ext/ffi_c/libffi/missing +8 -8
  78. data/ext/ffi_c/libffi/msvcc.sh +11 -11
  79. data/ext/ffi_c/libffi/src/aarch64/ffi.c +51 -35
  80. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +10 -5
  81. data/ext/ffi_c/libffi/src/aarch64/internal.h +1 -0
  82. data/ext/ffi_c/libffi/src/aarch64/sysv.S +14 -3
  83. data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +1 -1
  84. data/ext/ffi_c/libffi/src/arm/ffi.c +22 -0
  85. data/ext/ffi_c/libffi/src/arm/sysv.S +4 -4
  86. data/ext/ffi_c/libffi/src/closures.c +43 -12
  87. data/ext/ffi_c/libffi/src/csky/ffi.c +395 -0
  88. data/ext/ffi_c/libffi/src/csky/ffitarget.h +63 -0
  89. data/ext/ffi_c/libffi/src/csky/sysv.S +371 -0
  90. data/ext/ffi_c/libffi/src/dlmalloc.c +1 -1
  91. data/ext/ffi_c/libffi/src/kvx/asm.h +5 -0
  92. data/ext/ffi_c/libffi/src/kvx/ffi.c +273 -0
  93. data/ext/ffi_c/libffi/src/kvx/ffitarget.h +75 -0
  94. data/ext/ffi_c/libffi/src/kvx/sysv.S +127 -0
  95. data/ext/ffi_c/libffi/src/mips/ffi.c +5 -1
  96. data/ext/ffi_c/libffi/src/mips/ffitarget.h +1 -1
  97. data/ext/ffi_c/libffi/src/mips/o32.S +2 -0
  98. data/ext/ffi_c/libffi/src/pa/ffi.c +46 -91
  99. data/ext/ffi_c/libffi/src/pa/ffitarget.h +1 -6
  100. data/ext/ffi_c/libffi/src/pa/hpux32.S +4 -2
  101. data/ext/ffi_c/libffi/src/pa/linux.S +4 -2
  102. data/ext/ffi_c/libffi/src/powerpc/ffi.c +3 -2
  103. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +13 -1
  104. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +154 -8
  105. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +18 -7
  106. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +10 -4
  107. data/ext/ffi_c/libffi/src/powerpc/linux64.S +91 -28
  108. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +80 -4
  109. data/ext/ffi_c/libffi/src/powerpc/sysv.S +5 -7
  110. data/ext/ffi_c/libffi/src/prep_cif.c +1 -1
  111. data/ext/ffi_c/libffi/src/x86/ffi.c +15 -6
  112. data/ext/ffi_c/libffi/src/x86/ffi64.c +17 -8
  113. data/ext/ffi_c/libffi/src/x86/ffitarget.h +15 -2
  114. data/ext/ffi_c/libffi/src/x86/ffiw64.c +15 -8
  115. data/ext/ffi_c/libffi/src/x86/sysv.S +15 -6
  116. data/ext/ffi_c/libffi/src/x86/unix64.S +59 -4
  117. data/ext/ffi_c/libffi/src/x86/win64.S +7 -3
  118. data/ext/ffi_c/libffi/src/x86/win64_intel.S +3 -2
  119. data/ext/ffi_c/libffi/testsuite/Makefile.am +78 -75
  120. data/ext/ffi_c/libffi/testsuite/Makefile.in +124 -84
  121. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +7 -4
  122. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +7 -2
  123. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +4 -4
  124. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +2 -2
  125. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +12 -1
  126. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +67 -0
  127. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn0.c +0 -0
  128. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn1.c +0 -0
  129. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn2.c +0 -0
  130. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn3.c +0 -0
  131. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn4.c +0 -0
  132. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn5.c +0 -0
  133. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn6.c +0 -0
  134. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_loc_fn0.c +0 -0
  135. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_simple.c +0 -0
  136. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_12byte.c +0 -0
  137. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_16byte.c +0 -0
  138. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_18byte.c +0 -0
  139. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_19byte.c +0 -0
  140. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_1_1byte.c +0 -0
  141. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte.c +0 -0
  142. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte1.c +0 -0
  143. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_24byte.c +0 -0
  144. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_2byte.c +0 -0
  145. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3_1byte.c +0 -0
  146. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte1.c +0 -0
  147. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte2.c +0 -0
  148. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3float.c +0 -0
  149. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4_1byte.c +0 -0
  150. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4byte.c +0 -0
  151. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5_1_byte.c +0 -0
  152. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5byte.c +0 -0
  153. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_64byte.c +0 -0
  154. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6_1_byte.c +0 -0
  155. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6byte.c +0 -0
  156. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7_1_byte.c +0 -0
  157. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7byte.c +0 -0
  158. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_8byte.c +0 -0
  159. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte1.c +0 -0
  160. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte2.c +0 -0
  161. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_double.c +0 -0
  162. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_float.c +0 -0
  163. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble.c +0 -0
  164. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split.c +0 -0
  165. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split2.c +0 -0
  166. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_pointer.c +0 -0
  167. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint16.c +0 -0
  168. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint32.c +0 -0
  169. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint64.c +0 -0
  170. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint16.c +0 -0
  171. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint32.c +0 -0
  172. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint64.c +0 -0
  173. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_dbls_struct.c +0 -0
  174. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double.c +0 -0
  175. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double_va.c +0 -0
  176. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_float.c +0 -0
  177. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble.c +0 -0
  178. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble_va.c +0 -0
  179. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_args.c +0 -0
  180. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_float_double.c +0 -0
  181. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_schar.c +0 -0
  182. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshort.c +0 -0
  183. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshortchar.c +0 -0
  184. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_uchar.c +0 -0
  185. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushort.c +0 -0
  186. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushortchar.c +0 -0
  187. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer.c +0 -0
  188. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer_stack.c +0 -0
  189. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_schar.c +0 -0
  190. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sint.c +0 -0
  191. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sshort.c +0 -0
  192. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_struct_va1.c +0 -0
  193. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar.c +0 -0
  194. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar_va.c +0 -0
  195. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint.c +0 -0
  196. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint_va.c +0 -0
  197. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulong_va.c +0 -0
  198. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulonglong.c +0 -0
  199. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort.c +0 -0
  200. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort_va.c +0 -0
  201. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/err_bad_abi.c +0 -0
  202. data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +138 -0
  203. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/huge_struct.c +3 -1
  204. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct.c +0 -0
  205. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct1.c +0 -0
  206. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct10.c +0 -0
  207. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct11.c +0 -0
  208. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct2.c +0 -0
  209. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct3.c +0 -0
  210. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct4.c +0 -0
  211. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct5.c +0 -0
  212. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct6.c +0 -0
  213. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct7.c +0 -0
  214. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct8.c +0 -0
  215. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct9.c +0 -0
  216. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/problem1.c +0 -0
  217. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large.c +0 -0
  218. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large2.c +0 -0
  219. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium.c +0 -0
  220. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium2.c +0 -0
  221. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/testclosure.c +0 -0
  222. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest.cc +0 -0
  223. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest_ffi_call.cc +0 -0
  224. data/ffi.gemspec +4 -5
  225. data/lib/ffi/abstract_memory.rb +44 -0
  226. data/lib/ffi/autopointer.rb +1 -1
  227. data/lib/ffi/ffi.rb +2 -0
  228. data/lib/ffi/io.rb +3 -3
  229. data/lib/ffi/library.rb +8 -4
  230. data/lib/ffi/managedstruct.rb +2 -2
  231. data/lib/ffi/platform/aarch64-darwin/types.conf +130 -0
  232. data/lib/ffi/platform/aarch64-freebsd/types.conf +2 -2
  233. data/lib/ffi/platform/aarch64-freebsd12/types.conf +113 -60
  234. data/lib/ffi/platform/aarch64-openbsd/types.conf +134 -0
  235. data/lib/ffi/platform/arm-linux/types.conf +32 -4
  236. data/lib/ffi/platform/i386-windows/types.conf +26 -79
  237. data/lib/ffi/platform/powerpc-linux/types.conf +32 -2
  238. data/lib/ffi/platform/powerpc-openbsd/types.conf +156 -0
  239. data/lib/ffi/platform/powerpc64le-linux/types.conf +100 -0
  240. data/lib/ffi/platform/riscv64-linux/types.conf +104 -0
  241. data/lib/ffi/platform/sparcv9-openbsd/types.conf +156 -0
  242. data/lib/ffi/platform/x86_64-darwin/types.conf +4 -0
  243. data/lib/ffi/platform/x86_64-dragonflybsd/types.conf +4 -22
  244. data/lib/ffi/platform/x86_64-haiku/types.conf +117 -0
  245. data/lib/ffi/platform/x86_64-linux/types.conf +21 -0
  246. data/lib/ffi/platform/x86_64-msys/types.conf +119 -0
  247. data/lib/ffi/platform/x86_64-windows/types.conf +10 -78
  248. data/lib/ffi/platform.rb +18 -8
  249. data/lib/ffi/pointer.rb +21 -14
  250. data/lib/ffi/struct.rb +10 -5
  251. data/lib/ffi/tools/const_generator.rb +6 -4
  252. data/lib/ffi/tools/struct_generator.rb +2 -1
  253. data/lib/ffi/tools/types_generator.rb +2 -0
  254. data/lib/ffi/variadic.rb +1 -10
  255. data/lib/ffi/version.rb +1 -1
  256. data/lib/ffi.rb +10 -3
  257. data/rakelib/ffi_gem_helper.rb +65 -0
  258. data/samples/getlogin.rb +1 -1
  259. data/samples/getpid.rb +1 -1
  260. data/samples/gettimeofday.rb +8 -8
  261. data/samples/hello.rb +2 -1
  262. data/samples/inotify.rb +1 -1
  263. data/samples/pty.rb +1 -2
  264. data/samples/qsort.rb +0 -1
  265. metadata +133 -134
  266. data/.appveyor.yml +0 -27
  267. data/.gitignore +0 -25
  268. data/.gitmodules +0 -4
  269. data/.travis.yml +0 -42
  270. data/.yardopts +0 -5
  271. data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
  272. data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
  273. data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
  274. data/ext/ffi_c/win32/stdbool.h +0 -8
  275. data/ext/ffi_c/win32/stdint.h +0 -201
  276. data/samples/sample_helper.rb +0 -6
@@ -2,60 +2,75 @@
2
2
 
3
3
  set -x
4
4
 
5
+ # This is a policy bound API key. It can only be used with
6
+ # https://github.com/libffi/rlgl-policy.git.
7
+ RLGL_KEY=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI
8
+
5
9
  if [ -z ${QEMU_CPU+x} ]; then
6
10
  export SET_QEMU_CPU=
7
11
  else
8
12
  export SET_QEMU_CPU="-e QEMU_CPU=${QEMU_CPU}"
9
13
  fi
10
14
 
11
- # Default to podman where available, docker otherwise.
12
- # Override by setting the DOCKER environment variable.
13
- if test -z "$DOCKER"; then
14
- which podman > /dev/null 2>&1
15
- if [ $? != 0 ]; then
16
- export DOCKER=docker
17
- else
18
- export DOCKER=podman
19
- fi
20
- fi
15
+ export DOCKER=docker
21
16
 
22
17
  function build_cfarm()
23
18
  {
24
- curl -u ${CFARM_AUTH} https://cfarm-test-libffi-libffi.apps.home.labdroid.net/test?host=${HOST}\&commit=${TRAVIS_COMMIT}
19
+ curl -u ${CFARM_AUTH} https://cfarm-test-libffi-libffi.apps.home.labdroid.net/test?host=${HOST}\&commit=${TRAVIS_COMMIT} | tee build.log
20
+ echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
21
+ echo $(tail build.log | grep '^==LOGFILE==')
22
+ echo $(tail build.log | grep '^==LOGFILE==' | cut -b13-)
23
+ echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
24
+ curl -u ${CFARM_AUTH} "$(tail build.log | grep '^==LOGFILE==' | cut -b13-)" > libffi.log
25
+
26
+ ./rlgl l --key=${RLGL_KEY} https://rl.gl
27
+ ID=$(./rlgl start)
28
+ ./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git libffi.log
29
+ exit $?
25
30
  }
26
31
 
27
32
  function build_linux()
28
33
  {
29
34
  ./autogen.sh
30
- ./configure ${HOST+--host=$HOST} ${CONFIGURE_OPTIONS}
35
+ ./configure ${HOST+--host=$HOST} ${CONFIGURE_OPTIONS} || cat */config.log
31
36
  make
32
37
  make dist
33
38
  make check RUNTESTFLAGS="-a $RUNTESTFLAGS"
34
- EXITCODE=$?
35
-
36
- gzip -c -9 */testsuite/libffi.log > libffi.log.gz
37
- echo ================================================================
38
- echo The logs are too long for travis to handle, so we compress and
39
- echo uuencode them. Download, decode and uncompress if you need to
40
- echo read them. For example, if you select and save this text
41
- echo as libffi.uu, run: 'cat libffi.uu | uudecode | gzip -d | less'.
42
- echo ================================================================
43
- uuencode libffi.log.gz -
44
- echo ================================================================
45
- echo ================================================================
46
-
47
- exit $EXITCODE
39
+
40
+ ./rlgl l --key=${RLGL_KEY} https://rl.gl
41
+ ID=$(./rlgl start)
42
+ ./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
43
+ exit $?
48
44
  }
49
45
 
50
46
  function build_foreign_linux()
51
47
  {
52
- ${DOCKER} run --rm -t -i -v `pwd`:/opt ${SET_QEMU_CPU} -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" $2 bash -c /opt/.travis/build-in-container.sh
48
+ ${DOCKER} run --rm -t -i -v $(pwd):/opt ${SET_QEMU_CPU} -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" $2 bash -c /opt/.travis/build-in-container.sh
49
+
50
+ ./rlgl l --key=${RLGL_KEY} https://rl.gl
51
+ ID=$(./rlgl start)
52
+ ./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
53
53
  exit $?
54
54
  }
55
55
 
56
56
  function build_cross_linux()
57
57
  {
58
- ${DOCKER} run --rm -t -i -v `pwd`:/opt ${SET_QEMU_CPU} -e HOST="${HOST}" -e CC="${HOST}-gcc-8 ${GCC_OPTIONS}" -e CXX="${HOST}-g++-8 ${GCC_OPTIONS}" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" moxielogic/cross-ci-build-container:latest bash -c /opt/.travis/build-in-container.sh
58
+ ${DOCKER} run --rm -t -i -v $(pwd):/opt ${SET_QEMU_CPU} -e HOST="${HOST}" -e CC="${HOST}-gcc-8 ${GCC_OPTIONS}" -e CXX="${HOST}-g++-8 ${GCC_OPTIONS}" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" moxielogic/cross-ci-build-container:latest bash -c /opt/.travis/build-in-container.sh
59
+
60
+ ./rlgl l --key=${RLGL_KEY} https://rl.gl
61
+ ID=$(./rlgl start)
62
+ ./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
63
+ exit $?
64
+ }
65
+
66
+ function build_cross()
67
+ {
68
+ ${DOCKER} pull quay.io/moxielogic/libffi-ci-${HOST}
69
+ ${DOCKER} run --rm -t -i -v $(pwd):/opt -e HOST="${HOST}" -e CC="${HOST}-gcc ${GCC_OPTIONS}" -e CXX="${HOST}-g++ ${GCC_OPTIONS}" -e TRAVIS_BUILD_DIR=/opt -e DEJAGNU="${DEJAGNU}" -e RUNTESTFLAGS="${RUNTESTFLAGS}" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" quay.io/moxielogic/libffi-ci-${HOST} bash -c /opt/.travis/build-cross-in-container.sh
70
+
71
+ ./rlgl l --key=${RLGL_KEY} https://rl.gl
72
+ ID=$(./rlgl start)
73
+ ./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
59
74
  exit $?
60
75
  }
61
76
 
@@ -76,6 +91,7 @@ function build_macosx()
76
91
  ./generate-darwin-source-and-headers.py --only-osx
77
92
  xcodebuild -showsdks
78
93
  xcodebuild -project libffi.xcodeproj -target "libffi-Mac" -configuration Release -sdk macosx10.13
94
+ echo "Finished build"
79
95
  exit $?
80
96
  }
81
97
 
@@ -92,14 +108,30 @@ case "$HOST" in
92
108
  ./autogen.sh
93
109
  build_foreign_linux arm moxielogic/arm32v7-ci-build-container:latest
94
110
  ;;
95
- aarch64-linux-gnu| powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu)
111
+ mips64el-linux-gnu | sparc64-linux-gnu)
96
112
  build_cfarm
97
113
  ;;
114
+ bfin-elf )
115
+ ./autogen.sh
116
+ GCC_OPTIONS=-msim build_cross
117
+ ;;
118
+ m32r-elf )
119
+ ./autogen.sh
120
+ build_cross
121
+ ;;
122
+ or1k-elf )
123
+ ./autogen.sh
124
+ build_cross
125
+ ;;
126
+ powerpc-eabisim )
127
+ ./autogen.sh
128
+ build_cross
129
+ ;;
98
130
  m68k-linux-gnu )
99
131
  ./autogen.sh
100
132
  GCC_OPTIONS=-mcpu=547x build_cross_linux
101
133
  ;;
102
- alpha-linux-gnu | sh4-linux-gnu | s390x-linux-gnu )
134
+ alpha-linux-gnu | sh4-linux-gnu )
103
135
  ./autogen.sh
104
136
  build_cross_linux
105
137
  ;;
@@ -2,42 +2,70 @@
2
2
  set -x
3
3
 
4
4
  if [[ $TRAVIS_OS_NAME != 'linux' ]]; then
5
- brew update > brew-update.log 2>&1
6
- # fix an issue with libtool on travis by reinstalling it
7
- brew uninstall libtool;
8
- brew install libtool dejagnu;
5
+ brew update > brew-update.log 2>&1
6
+ # fix an issue with libtool on travis by reinstalling it
7
+ brew uninstall libtool;
8
+ brew install libtool dejagnu;
9
+
10
+ # Download and extract the rlgl client
11
+ wget -qO - https://rl.gl/cli/rlgl-darwin-amd64.tgz | \
12
+ tar --strip-components=2 -xvzf - ./rlgl/rlgl;
13
+
9
14
  else
10
- sudo apt-get clean # clear the cache
11
- sudo apt-get update
12
- case $HOST in
13
- aarch64-linux-gnu | powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu)
14
- ;;
15
- alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu | s390x-linux-gnu )
16
- sudo apt-get install qemu-user-static
17
- ;;
18
- hppa-linux-gnu )
19
- sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu
20
- ;;
21
- i386-pc-linux-gnu)
22
- sudo apt-get install gcc-multilib g++-multilib;
23
- ;;
24
- moxie-elf)
25
- echo 'deb https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list
26
- sudo apt-get clean # clear the cache
27
- sudo apt-get update ## -qq
28
- sudo apt-get update
29
- sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim
30
- ;;
31
- i686-w64-mingw32)
32
- sudo apt-get install gcc-mingw-w64-i686 binutils-mingw-w64-i686 wine;
33
- ;;
34
- esac
35
- case $HOST in
36
- arm32v7-linux-gnu | aarch64-linux-gnu | ppc64le-linux-gnu | s390x-linux-gnu)
37
- # don't install host tools
38
- ;;
39
- *)
40
- sudo apt-get install dejagnu texinfo sharutils
41
- ;;
42
- esac
15
+ # Download and extract the rlgl client
16
+ case $HOST in
17
+ aarch64-linux-gnu)
18
+ wget -qO - https://rl.gl/cli/rlgl-linux-arm.tgz | \
19
+ tar --strip-components=2 -xvzf - ./rlgl/rlgl;
20
+ ;;
21
+ ppc64le-linux-gnu)
22
+ wget -qO - https://rl.gl/cli/rlgl-linux-ppc64le.tgz | \
23
+ tar --strip-components=2 -xvzf - ./rlgl/rlgl;
24
+ ;;
25
+ s390x-linux-gnu)
26
+ wget -qO - https://rl.gl/cli/rlgl-linux-s390x.tgz | \
27
+ tar --strip-components=2 -xvzf - ./rlgl/rlgl;
28
+ ;;
29
+ *)
30
+ wget -qO - https://rl.gl/cli/rlgl-linux-amd64.tgz | \
31
+ tar --strip-components=2 -xvzf - ./rlgl/rlgl;
32
+ ;;
33
+ esac
34
+
35
+ sudo apt-get clean # clear the cache
36
+ sudo apt-get update
37
+ case $HOST in
38
+ mips64el-linux-gnu | sparc64-linux-gnu)
39
+ ;;
40
+ alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu)
41
+ sudo apt-get install qemu-user-static
42
+ ;;
43
+ hppa-linux-gnu )
44
+ sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu
45
+ ;;
46
+ i386-pc-linux-gnu)
47
+ sudo apt-get install gcc-multilib g++-multilib;
48
+ ;;
49
+ moxie-elf)
50
+ echo 'deb https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list
51
+ sudo apt-get clean # clear the cache
52
+ sudo apt-get update ## -qq
53
+ sudo apt-get update
54
+ sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim
55
+ ;;
56
+ x86_64-w64-mingw32)
57
+ sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine;
58
+ ;;
59
+ i686-w32-mingw32)
60
+ sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 wine;
61
+ ;;
62
+ esac
63
+ case $HOST in
64
+ arm32v7-linux-gnu)
65
+ # don't install host tools
66
+ ;;
67
+ *)
68
+ sudo apt-get install dejagnu texinfo sharutils
69
+ ;;
70
+ esac
43
71
  fi
@@ -0,0 +1,58 @@
1
+ # Copyright (C) 2010, 2019 Free Software Foundation, Inc.
2
+ #
3
+ # This file is part of DejaGnu.
4
+ #
5
+ # DejaGnu is free software; you can redistribute it and/or modify it
6
+ # under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # DejaGnu is distributed in the hope that it will be useful, but
11
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with DejaGnu; if not, write to the Free Software Foundation,
17
+ # Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
18
+
19
+ # This is a list of toolchains that are supported on this board.
20
+ set_board_info target_install {m32r-elf}
21
+
22
+ # Load the generic configuration for this board. This will define a basic set
23
+ # of routines needed by the tool to communicate with the board.
24
+ load_generic_config "sim"
25
+
26
+ # basic-sim.exp is a basic description for the standard Cygnus simulator.
27
+ load_base_board_description "basic-sim"
28
+
29
+ # "m32r" is the name of the sim subdir in devo/sim.
30
+ setup_sim m32r
31
+
32
+ # No multilib options needed by default.
33
+ process_multilib_options ""
34
+
35
+ # We only support newlib on this target. We assume that all multilib
36
+ # options have been specified before we get here.
37
+
38
+ set_board_info compiler "[find_gcc]"
39
+ set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
40
+ set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
41
+
42
+ # Configuration settings for testsuites
43
+ set_board_info noargs 1
44
+ set_board_info gdb,nosignals 1
45
+ set_board_info gdb,noresults 1
46
+ set_board_info gdb,cannot_call_functions 1
47
+ set_board_info gdb,skip_float_tests 1
48
+ set_board_info gdb,can_reverse 1
49
+ set_board_info gdb,use_precord 1
50
+
51
+ # More time is needed
52
+ set_board_info gcc,timeout 800
53
+ set_board_info gdb,timeout 60
54
+
55
+ # Used by a few gcc.c-torture testcases to delimit how large the stack can
56
+ # be.
57
+ set_board_info gcc,stack_size 5000
58
+
@@ -14,7 +14,7 @@
14
14
  #
15
15
  # You should have received a copy of the GNU General Public License
16
16
  # along with DejaGnu; if not, write to the Free Software Foundation,
17
- # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
+ # Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
18
18
 
19
19
  # This is a list of toolchains that are supported on this board.
20
20
  set_board_info target_install {moxie-elf}
@@ -0,0 +1,58 @@
1
+ # Copyright (C) 2010, 2019 Free Software Foundation, Inc.
2
+ #
3
+ # This file is part of DejaGnu.
4
+ #
5
+ # DejaGnu is free software; you can redistribute it and/or modify it
6
+ # under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # DejaGnu is distributed in the hope that it will be useful, but
11
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with DejaGnu; if not, write to the Free Software Foundation,
17
+ # Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
18
+
19
+ # This is a list of toolchains that are supported on this board.
20
+ set_board_info target_install {or1k-elf}
21
+
22
+ # Load the generic configuration for this board. This will define a basic set
23
+ # of routines needed by the tool to communicate with the board.
24
+ load_generic_config "sim"
25
+
26
+ # basic-sim.exp is a basic description for the standard Cygnus simulator.
27
+ load_base_board_description "basic-sim"
28
+
29
+ # "or1k" is the name of the sim subdir in devo/sim.
30
+ setup_sim or1k
31
+
32
+ # No multilib options needed by default.
33
+ process_multilib_options ""
34
+
35
+ # We only support newlib on this target. We assume that all multilib
36
+ # options have been specified before we get here.
37
+
38
+ set_board_info compiler "[find_gcc]"
39
+ set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
40
+ set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
41
+
42
+ # Configuration settings for testsuites
43
+ set_board_info noargs 1
44
+ set_board_info gdb,nosignals 1
45
+ set_board_info gdb,noresults 1
46
+ set_board_info gdb,cannot_call_functions 1
47
+ set_board_info gdb,skip_float_tests 1
48
+ set_board_info gdb,can_reverse 1
49
+ set_board_info gdb,use_precord 1
50
+
51
+ # More time is needed
52
+ set_board_info gcc,timeout 800
53
+ set_board_info gdb,timeout 60
54
+
55
+ # Used by a few gcc.c-torture testcases to delimit how large the stack can
56
+ # be.
57
+ set_board_info gcc,stack_size 5000
58
+
@@ -0,0 +1,58 @@
1
+ # Copyright (C) 2010, 2019 Free Software Foundation, Inc.
2
+ #
3
+ # This file is part of DejaGnu.
4
+ #
5
+ # DejaGnu is free software; you can redistribute it and/or modify it
6
+ # under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # DejaGnu is distributed in the hope that it will be useful, but
11
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with DejaGnu; if not, write to the Free Software Foundation,
17
+ # Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
18
+
19
+ # This is a list of toolchains that are supported on this board.
20
+ set_board_info target_install {powerpc-eabisim}
21
+
22
+ # Load the generic configuration for this board. This will define a basic set
23
+ # of routines needed by the tool to communicate with the board.
24
+ load_generic_config "sim"
25
+
26
+ # basic-sim.exp is a basic description for the standard Cygnus simulator.
27
+ load_base_board_description "basic-sim"
28
+
29
+ # "powerpc" is the name of the sim subdir in devo/sim.
30
+ setup_sim powerpc
31
+
32
+ # No multilib options needed by default.
33
+ process_multilib_options ""
34
+
35
+ # We only support newlib on this target. We assume that all multilib
36
+ # options have been specified before we get here.
37
+
38
+ set_board_info compiler "[find_gcc]"
39
+ set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
40
+ set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
41
+
42
+ # Configuration settings for testsuites
43
+ set_board_info noargs 1
44
+ set_board_info gdb,nosignals 1
45
+ set_board_info gdb,noresults 1
46
+ set_board_info gdb,cannot_call_functions 1
47
+ set_board_info gdb,skip_float_tests 1
48
+ set_board_info gdb,can_reverse 1
49
+ set_board_info gdb,use_precord 1
50
+
51
+ # More time is needed
52
+ set_board_info gcc,timeout 800
53
+ set_board_info gdb,timeout 60
54
+
55
+ # Used by a few gcc.c-torture testcases to delimit how large the stack can
56
+ # be.
57
+ set_board_info gcc,stack_size 5000
58
+
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2008, 2010, 2018 Anthony Green
1
+ # Copyright (C) 2008, 2010, 2018, 2019 Anthony Green
2
2
 
3
3
  # Make sure we look in the right place for the board description files.
4
4
  if ![info exists boards_dir] {
@@ -11,8 +11,17 @@ verbose "Global Config File: target_triplet is $target_triplet" 2
11
11
  global target_list
12
12
 
13
13
  case "$target_triplet" in {
14
+ { "bfin-elf" } {
15
+ set target_list "bfin-sim"
16
+ }
17
+ { "m32r-elf" } {
18
+ set target_list "m32r-sim"
19
+ }
14
20
  { "moxie-elf" } {
15
21
  set target_list "moxie-sim"
16
22
  }
23
+ { "or1k-elf" } {
24
+ set target_list "or1k-sim"
25
+ }
17
26
  }
18
27
 
@@ -0,0 +1,55 @@
1
+ # Copyright (C) 2010, 2019 Free Software Foundation, Inc.
2
+ #
3
+ # This file is part of DejaGnu.
4
+ #
5
+ # DejaGnu is free software; you can redistribute it and/or modify it
6
+ # under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # DejaGnu is distributed in the hope that it will be useful, but
11
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with DejaGnu; if not, write to the Free Software Foundation,
17
+ # Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
18
+
19
+ # This is a list of toolchains that are supported on this board.
20
+ set_board_info target_install {i686-w64-mingw32}
21
+
22
+ # Load the generic configuration for this board. This will define a basic set
23
+ # of routines needed by the tool to communicate with the board.
24
+ load_generic_config "sim"
25
+
26
+ set_board_info sim "wineconsole --backend=curses"
27
+ set_board_info is_simulator 1
28
+
29
+ # No multilib options needed by default.
30
+ process_multilib_options ""
31
+
32
+ # We only support newlib on this target. We assume that all multilib
33
+ # options have been specified before we get here.
34
+
35
+ set_board_info compiler "[find_gcc]"
36
+ set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
37
+ set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
38
+
39
+ # Configuration settings for testsuites
40
+ set_board_info noargs 1
41
+ set_board_info gdb,nosignals 1
42
+ set_board_info gdb,noresults 1
43
+ set_board_info gdb,cannot_call_functions 1
44
+ set_board_info gdb,skip_float_tests 1
45
+ set_board_info gdb,can_reverse 1
46
+ set_board_info gdb,use_precord 1
47
+
48
+ # More time is needed
49
+ set_board_info gcc,timeout 800
50
+ set_board_info gdb,timeout 60
51
+
52
+ # Used by a few gcc.c-torture testcases to delimit how large the stack can
53
+ # be.
54
+ set_board_info gcc,stack_size 5000
55
+
@@ -9,10 +9,21 @@ language: cpp
9
9
 
10
10
  matrix:
11
11
  include:
12
- - os: osx
13
- env: HOST=aarch64-apple-darwin13
12
+ - os: linux
13
+ env: HOST=powerpc-eabisim RUNTESTFLAGS="--target_board powerpc-eabisim" DEJAGNU="/opt/.travis/site.exp"
14
+ - os: linux
15
+ env: HOST=or1k-elf RUNTESTFLAGS="--target_board or1k-sim" DEJAGNU="/opt/.travis/site.exp"
16
+ - os: linux
17
+ env: HOST=m32r-elf RUNTESTFLAGS="--target_board m32r-sim" DEJAGNU="/opt/.travis/site.exp"
18
+ - os: linux
19
+ env: HOST=bfin-elf RUNTESTFLAGS="--target_board bfin-sim" DEJAGNU="/opt/.travis/site.exp"
20
+ # This configuration is still using the native x86 toolchain?
21
+ # - os: osx
22
+ # env: HOST=aarch64-apple-darwin13
14
23
  - os: osx
15
24
  env: HOST=x86_64-apple-darwin10
25
+ - os: linux
26
+ env: HOST=x86_64-w64-mingw32 MEVAL='export CC="x86_64-w64-mingw32-gcc" && CXX="x86_64-w64-mingw32-g++" RUNTESTFLAGS="--target_board wine-sim" DEJAGNU="$TRAVIS_BUILD_DIR/.travis/site.exp" CONFIGURE_OPTIONS=--disable-shared LIBFFI_TEST_OPTIMIZATION="-O2"
16
27
  - os: linux
17
28
  env: HOST=sh4-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
18
29
  - os: linux
@@ -20,21 +31,30 @@ matrix:
20
31
  - os: linux
21
32
  env: HOST=m68k-linux-gnu MEVAL='export CC="m68k-linux-gnu-gcc-8 -mcpu=547x" && CXX="m68k-linux-gnu-g++-8 -mcpu=547x"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/m68k-linux-gnu QEMU_CPU=cfv4e
22
33
  - os: linux
23
- env: HOST=s390x-linux-gnu MEVAL='export CC="s390x-linux-gnu-gcc-8" && CXX="s390x-linux-gnu-g++-8"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/s390x-linux-gnu QEMU_CPU=max
24
- - os: linux
25
- env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O0"
34
+ arch: s390x
35
+ env: HOST=s390x-linux-gnu
26
36
  - os: linux
27
- env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2"
37
+ arch: ppc64le
38
+ env: HOST=ppc64le-linux-gnu
28
39
  - os: linux
29
- env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2 -fomit-frame-pointer"
30
- - os: linux
31
- env: HOST=sparc64-linux-gnu
40
+ arch: arm64
41
+ env: HOST=aarch64-linux-gnu
32
42
  - os: linux
43
+ arch: arm64
33
44
  env: HOST=aarch64-linux-gnu
45
+ compiler: clang
34
46
  - os: linux
35
- env: HOST=powerpc64le-unknown-linux-gnu
47
+ env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O0"
48
+ - os: linux
49
+ env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2"
36
50
  - os: linux
37
- env: HOST=mips64el-linux-gnu
51
+ env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2 -fomit-frame-pointer"
52
+ # The sparc64 linux system in the GCC compile farm is non-responsive.
53
+ # - os: linux
54
+ # env: HOST=sparc64-linux-gnu
55
+ # The mips64 linux system in the GCC compile farm is not allowing logins
56
+ # - os: linux
57
+ # env: HOST=mips64el-linux-gnu
38
58
  - os: linux
39
59
  compiler: gcc
40
60
  env: HOST=i386-pc-linux-gnu MEVAL='export CC="$CC -m32" && CXX="$CXX -m32"'
@@ -59,5 +79,5 @@ install:
59
79
 
60
80
  script:
61
81
  - if ! test x"$MEVAL" = x; then eval ${MEVAL}; fi
62
- - travis_wait 45 sleep infinity &
82
+ - travis_wait 115 sleep infinity &
63
83
  - ./.travis/build.sh