ffi 1.15.4 → 1.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +90 -0
- data/Gemfile +1 -1
- data/README.md +3 -2
- data/Rakefile +28 -11
- data/ext/ffi_c/AbstractMemory.c +60 -36
- data/ext/ffi_c/AbstractMemory.h +3 -2
- data/ext/ffi_c/ArrayType.c +49 -13
- data/ext/ffi_c/ArrayType.h +1 -0
- data/ext/ffi_c/Buffer.c +86 -29
- data/ext/ffi_c/Call.c +18 -7
- data/ext/ffi_c/DynamicLibrary.c +89 -26
- data/ext/ffi_c/Function.c +244 -98
- data/ext/ffi_c/Function.h +1 -0
- data/ext/ffi_c/FunctionInfo.c +80 -24
- data/ext/ffi_c/LastError.c +25 -7
- data/ext/ffi_c/MappedType.c +66 -23
- data/ext/ffi_c/MappedType.h +0 -2
- data/ext/ffi_c/MemoryPointer.c +34 -7
- data/ext/ffi_c/MethodHandle.c +3 -1
- data/ext/ffi_c/Pointer.c +68 -29
- data/ext/ffi_c/Pointer.h +1 -0
- data/ext/ffi_c/Struct.c +155 -80
- data/ext/ffi_c/Struct.h +7 -4
- data/ext/ffi_c/StructByValue.c +48 -16
- data/ext/ffi_c/StructLayout.c +117 -48
- data/ext/ffi_c/Type.c +104 -36
- data/ext/ffi_c/Type.h +3 -1
- data/ext/ffi_c/Types.c +1 -1
- data/ext/ffi_c/Variadic.c +65 -23
- data/ext/ffi_c/compat.h +22 -22
- data/ext/ffi_c/extconf.rb +19 -2
- data/ext/ffi_c/ffi.c +4 -0
- data/ext/ffi_c/libffi/.appveyor/site.exp +16 -0
- data/ext/ffi_c/libffi/.appveyor/unix-noexec.exp +7 -0
- data/ext/ffi_c/libffi/.appveyor.yml +27 -9
- data/ext/ffi_c/libffi/.ci/build-cross-in-container.sh +18 -0
- data/ext/ffi_c/libffi/{.travis → .ci}/build-in-container.sh +4 -6
- data/ext/ffi_c/libffi/.ci/build.sh +124 -0
- data/ext/ffi_c/libffi/{.travis → .ci}/install.sh +14 -7
- data/ext/ffi_c/libffi/.ci/msvs-detect +1103 -0
- data/ext/ffi_c/libffi/{.travis → .ci}/site.exp +5 -3
- data/ext/ffi_c/libffi/.circleci/config.yml +156 -0
- data/ext/ffi_c/libffi/.github/workflows/build.yml +460 -0
- data/ext/ffi_c/libffi/.github/workflows/emscripten.yml +171 -0
- data/ext/ffi_c/libffi/.gitignore +10 -2
- data/ext/ffi_c/libffi/LICENSE +1 -1
- data/ext/ffi_c/libffi/Makefile.am +12 -5
- data/ext/ffi_c/libffi/Makefile.in +92 -34
- data/ext/ffi_c/libffi/README.md +144 -104
- data/ext/ffi_c/libffi/acinclude.m4 +10 -112
- data/ext/ffi_c/libffi/compile +348 -0
- data/ext/ffi_c/libffi/config.guess +623 -556
- data/ext/ffi_c/libffi/config.sub +75 -34
- data/ext/ffi_c/libffi/configure +4567 -3822
- data/ext/ffi_c/libffi/configure.ac +64 -28
- data/ext/ffi_c/libffi/configure.host +25 -6
- data/ext/ffi_c/libffi/doc/Makefile.in +9 -6
- data/ext/ffi_c/libffi/doc/libffi.texi +82 -33
- data/ext/ffi_c/libffi/doc/version.texi +4 -4
- data/ext/ffi_c/libffi/fficonfig.h.in +12 -47
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +163 -52
- data/ext/ffi_c/libffi/include/Makefile.am +1 -1
- data/ext/ffi_c/libffi/include/Makefile.in +10 -9
- data/ext/ffi_c/libffi/include/ffi.h.in +54 -50
- data/ext/ffi_c/libffi/include/ffi_cfi.h +21 -0
- data/ext/ffi_c/libffi/include/ffi_common.h +29 -0
- data/ext/ffi_c/libffi/include/tramp.h +45 -0
- data/ext/ffi_c/libffi/libtool-version +2 -2
- data/ext/ffi_c/libffi/ltmain.sh +512 -315
- data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +18 -14
- data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +108 -72
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +76 -45
- data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +51 -0
- data/ext/ffi_c/libffi/man/Makefile.in +9 -6
- data/ext/ffi_c/libffi/missing +1 -1
- data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +1 -1
- data/ext/ffi_c/libffi/msvcc.sh +1 -1
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +146 -42
- data/ext/ffi_c/libffi/src/aarch64/internal.h +32 -0
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +134 -42
- data/ext/ffi_c/libffi/src/arc/arcompact.S +169 -94
- data/ext/ffi_c/libffi/src/arc/ffi.c +325 -148
- data/ext/ffi_c/libffi/src/arc/ffitarget.h +14 -0
- data/ext/ffi_c/libffi/src/arm/ffi.c +62 -17
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +3 -3
- data/ext/ffi_c/libffi/src/arm/internal.h +10 -0
- data/ext/ffi_c/libffi/src/arm/sysv.S +113 -42
- data/ext/ffi_c/libffi/src/closures.c +133 -47
- data/ext/ffi_c/libffi/src/dlmalloc.c +5 -0
- data/ext/ffi_c/libffi/src/ia64/ffi.c +12 -0
- data/ext/ffi_c/libffi/src/ia64/unix.S +20 -2
- data/ext/ffi_c/libffi/src/loongarch64/ffi.c +621 -0
- data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +82 -0
- data/ext/ffi_c/libffi/src/loongarch64/sysv.S +327 -0
- data/ext/ffi_c/libffi/src/m32r/ffi.c +31 -14
- data/ext/ffi_c/libffi/src/mips/ffi.c +240 -65
- data/ext/ffi_c/libffi/src/mips/ffitarget.h +7 -0
- data/ext/ffi_c/libffi/src/mips/n32.S +137 -28
- data/ext/ffi_c/libffi/src/mips/o32.S +61 -4
- data/ext/ffi_c/libffi/src/moxie/ffi.c +47 -22
- data/ext/ffi_c/libffi/src/or1k/ffi.c +25 -12
- data/ext/ffi_c/libffi/src/pa/ffi.c +32 -33
- data/ext/ffi_c/libffi/src/pa/ffi64.c +614 -0
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +22 -8
- data/ext/ffi_c/libffi/src/pa/hpux32.S +83 -36
- data/ext/ffi_c/libffi/src/pa/hpux64.S +681 -0
- data/ext/ffi_c/libffi/src/pa/linux.S +82 -35
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +1 -1
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +2 -0
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +2 -0
- data/ext/ffi_c/libffi/src/powerpc/t-aix +5 -0
- data/ext/ffi_c/libffi/src/prep_cif.c +22 -2
- data/ext/ffi_c/libffi/src/riscv/ffi.c +37 -4
- data/ext/ffi_c/libffi/src/sparc/ffi64.c +16 -0
- data/ext/ffi_c/libffi/src/tramp.c +716 -0
- data/ext/ffi_c/libffi/src/wasm32/ffi.c +934 -0
- data/ext/ffi_c/libffi/src/wasm32/ffitarget.h +62 -0
- data/ext/ffi_c/libffi/src/x86/ffi.c +99 -37
- data/ext/ffi_c/libffi/src/x86/ffi64.c +67 -12
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +9 -5
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +43 -0
- data/ext/ffi_c/libffi/src/x86/internal.h +14 -0
- data/ext/ffi_c/libffi/src/x86/internal64.h +14 -0
- data/ext/ffi_c/libffi/src/x86/sysv.S +172 -38
- data/ext/ffi_c/libffi/src/x86/sysv_intel.S +91 -88
- data/ext/ffi_c/libffi/src/x86/unix64.S +96 -6
- data/ext/ffi_c/libffi/src/x86/win64.S +20 -7
- data/ext/ffi_c/libffi/src/xtensa/ffi.c +16 -8
- data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +4 -0
- data/ext/ffi_c/libffi/src/xtensa/sysv.S +26 -16
- data/ext/ffi_c/libffi/testsuite/Makefile.am +127 -114
- data/ext/ffi_c/libffi/testsuite/Makefile.in +136 -120
- data/ext/ffi_c/libffi/testsuite/emscripten/build-tests.sh +54 -0
- data/ext/ffi_c/libffi/testsuite/emscripten/build.sh +63 -0
- data/ext/ffi_c/libffi/testsuite/emscripten/conftest.py +80 -0
- data/ext/ffi_c/libffi/testsuite/emscripten/node-tests.sh +48 -0
- data/ext/ffi_c/libffi/testsuite/emscripten/test.html +7 -0
- data/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py +51 -0
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +43 -21
- data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +2 -2
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +1 -0
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +5 -1
- data/ext/ffi_c/libffi/testsuite/libffi.call/bpo_38748.c +41 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +28 -3
- data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +3 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +5 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/s55.c +60 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +8 -9
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +2 -2
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +2 -2
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +2 -2
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_2.c +63 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3.c +65 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3f.c +65 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4.c +67 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4f.c +67 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_big.c +93 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_small.c +61 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_2H.c +63 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_8H.c +90 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +1 -119
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_2.c +220 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_3.c +154 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +13 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +11 -0
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +15 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +3 -2
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +21 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +7 -6
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +6 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +18 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +22 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +24 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +29 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +21 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +35 -3
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +13 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +19 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +13 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +13 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +18 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +22 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +13 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +29 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +24 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +28 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +24 -2
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +39 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +25 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +14 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +14 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +14 -2
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +20 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +40 -25
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +40 -3
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +18 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +18 -3
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +18 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +18 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +19 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +3 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +9 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +11 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +22 -3
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +5 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +6 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +9 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +9 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +6 -2
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +9 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +5 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +10 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +3 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +3 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +11 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +3 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +4 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +2 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +3 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +1 -138
- data/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +21 -21
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +32 -9
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +12 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +21 -5
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct12.c +86 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct13.c +115 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +10 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +10 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +9 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +9 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +11 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +9 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +11 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +11 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs1.c +86 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs2.c +102 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs3.c +101 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +6 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +2 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +1 -0
- data/ext/ffi_c/libffi.bsd.mk +2 -2
- data/ext/ffi_c/libffi.gnu.mk +2 -2
- data/ext/ffi_c/rbffi.h +1 -1
- data/ffi.gemspec +3 -3
- data/lib/ffi/autopointer.rb +7 -22
- data/lib/ffi/compat.rb +43 -0
- data/lib/ffi/data_converter.rb +2 -2
- data/lib/ffi/dynamic_library.rb +89 -0
- data/lib/ffi/enum.rb +18 -11
- data/lib/ffi/ffi.rb +3 -0
- data/lib/ffi/function.rb +71 -0
- data/lib/ffi/library.rb +55 -71
- data/lib/ffi/library_path.rb +109 -0
- data/lib/ffi/managedstruct.rb +1 -1
- data/lib/ffi/platform/aarch64-windows/types.conf +52 -0
- data/lib/ffi/platform/hppa1.1-linux/types.conf +178 -0
- data/lib/ffi/platform/hppa2.0-linux/types.conf +178 -0
- data/lib/ffi/platform/loongarch64-linux/types.conf +141 -0
- data/lib/ffi/platform/sw_64-linux/types.conf +141 -0
- data/lib/ffi/platform.rb +15 -13
- data/lib/ffi/struct.rb +2 -1
- data/lib/ffi/struct_layout.rb +1 -1
- data/lib/ffi/struct_layout_builder.rb +1 -1
- data/lib/ffi/tools/const_generator.rb +5 -4
- data/lib/ffi/types.rb +32 -6
- data/lib/ffi/variadic.rb +19 -8
- data/lib/ffi/version.rb +1 -1
- data/rakelib/ffi_gem_helper.rb +1 -1
- data/samples/hello_ractor.rb +11 -0
- data/samples/qsort_ractor.rb +28 -0
- data.tar.gz.sig +0 -0
- metadata +103 -28
- metadata.gz.sig +0 -0
- data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +0 -14
- data/ext/ffi_c/libffi/.travis/build.sh +0 -142
- data/ext/ffi_c/libffi/.travis.yml +0 -83
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort_va.c +0 -44
- /data/ext/ffi_c/libffi/{.travis → .ci}/ar-lib +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/bfin-sim.exp +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/compile +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/m32r-sim.exp +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/moxie-sim.exp +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/or1k-sim.exp +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/powerpc-eabisim.exp +0 -0
- /data/ext/ffi_c/libffi/{.travis → .ci}/wine-sim.exp +0 -0
- /data/ext/ffi_c/libffi/testsuite/libffi.call/{pyobjc-tc.c → pyobjc_tc.c} +0 -0
- /data/lib/ffi/platform/{sparc64-linux → sparcv9-linux}/types.conf +0 -0
@@ -55,7 +55,7 @@
|
|
55
55
|
# modified version of the Autoconf Macro, you may extend this special
|
56
56
|
# exception to the GPL to apply to your modified version as well.
|
57
57
|
|
58
|
-
#serial
|
58
|
+
#serial 22
|
59
59
|
|
60
60
|
AC_DEFUN([AX_CC_MAXOPT],
|
61
61
|
[
|
@@ -67,20 +67,19 @@ AC_ARG_ENABLE(portable-binary, [AS_HELP_STRING([--enable-portable-binary], [disa
|
|
67
67
|
acx_maxopt_portable=$enableval, acx_maxopt_portable=no)
|
68
68
|
|
69
69
|
# Try to determine "good" native compiler flags if none specified via CFLAGS
|
70
|
-
if test "$ac_test_CFLAGS"
|
71
|
-
CFLAGS=""
|
70
|
+
if test "x$ac_test_CFLAGS" = "x"; then
|
72
71
|
case $ax_cv_c_compiler_vendor in
|
73
|
-
dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
|
72
|
+
dec) CFLAGS="$CFLAGS -newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
|
74
73
|
if test "x$acx_maxopt_portable" = xno; then
|
75
74
|
CFLAGS="$CFLAGS -arch host"
|
76
75
|
fi;;
|
77
76
|
|
78
|
-
sun) CFLAGS="-native -fast -xO5 -dalign"
|
77
|
+
sun) CFLAGS="$CFLAGS -native -fast -xO5 -dalign"
|
79
78
|
if test "x$acx_maxopt_portable" = xyes; then
|
80
79
|
CFLAGS="$CFLAGS -xarch=generic"
|
81
80
|
fi;;
|
82
81
|
|
83
|
-
hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
|
82
|
+
hp) CFLAGS="$CFLAGS +Oall +Optrs_ansi +DSnative"
|
84
83
|
if test "x$acx_maxopt_portable" = xyes; then
|
85
84
|
CFLAGS="$CFLAGS +DAportable"
|
86
85
|
fi;;
|
@@ -91,8 +90,8 @@ if test "$ac_test_CFLAGS" != "set"; then
|
|
91
90
|
xlc_opt="-qtune=auto"
|
92
91
|
fi
|
93
92
|
AX_CHECK_COMPILE_FLAG($xlc_opt,
|
94
|
-
CFLAGS="-O3 -qansialias -w $xlc_opt",
|
95
|
-
[CFLAGS="-O3 -qansialias -w"
|
93
|
+
CFLAGS="$CFLAGS -O3 -qansialias -w $xlc_opt",
|
94
|
+
[CFLAGS="$CFLAGS -O3 -qansialias -w"
|
96
95
|
echo "******************************************************"
|
97
96
|
echo "* You seem to have the IBM C compiler. It is *"
|
98
97
|
echo "* recommended for best performance that you use: *"
|
@@ -105,7 +104,7 @@ if test "$ac_test_CFLAGS" != "set"; then
|
|
105
104
|
echo "******************************************************"])
|
106
105
|
;;
|
107
106
|
|
108
|
-
intel) CFLAGS="-O3 -ansi_alias"
|
107
|
+
intel) CFLAGS="$CFLAGS -O3 -ansi_alias"
|
109
108
|
if test "x$acx_maxopt_portable" = xno; then
|
110
109
|
icc_archflag=unknown
|
111
110
|
icc_flags=""
|
@@ -144,12 +143,18 @@ if test "$ac_test_CFLAGS" != "set"; then
|
|
144
143
|
fi
|
145
144
|
;;
|
146
145
|
|
146
|
+
nvhpc)
|
147
|
+
# default optimization flags for nvhpc
|
148
|
+
CFLAGS="$CFLAGS -O3"
|
149
|
+
;;
|
150
|
+
|
147
151
|
gnu)
|
148
152
|
# default optimization flags for gcc on all systems
|
149
|
-
CFLAGS="-O3 -fomit-frame-pointer"
|
153
|
+
CFLAGS="$CFLAGS -O3 -fomit-frame-pointer"
|
150
154
|
|
151
155
|
# -malign-double for x86 systems
|
152
|
-
#
|
156
|
+
# LIBFFI_LOCAL: don't do this.
|
157
|
+
# The testsuite doesn't use these flags and we'll get test failures.
|
153
158
|
# AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
|
154
159
|
|
155
160
|
# -fstrict-aliasing for gcc-2.95+
|
@@ -164,7 +169,7 @@ if test "$ac_test_CFLAGS" != "set"; then
|
|
164
169
|
|
165
170
|
microsoft)
|
166
171
|
# default optimization flags for MSVC opt builds
|
167
|
-
CFLAGS="-O2"
|
172
|
+
CFLAGS="$CFLAGS -O2"
|
168
173
|
;;
|
169
174
|
esac
|
170
175
|
|
@@ -176,7 +181,7 @@ if test "$ac_test_CFLAGS" != "set"; then
|
|
176
181
|
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
|
177
182
|
echo "********************************************************"
|
178
183
|
echo ""
|
179
|
-
CFLAGS="-O3"
|
184
|
+
CFLAGS="$CFLAGS -O3"
|
180
185
|
fi
|
181
186
|
|
182
187
|
AX_CHECK_COMPILE_FLAG($CFLAGS, [], [
|
@@ -187,7 +192,6 @@ if test "$ac_test_CFLAGS" != "set"; then
|
|
187
192
|
echo "* Use ./configure CFLAGS=... to specify your own flags *"
|
188
193
|
echo "********************************************************"
|
189
194
|
echo ""
|
190
|
-
CFLAGS=""
|
191
195
|
])
|
192
196
|
|
193
197
|
fi
|
@@ -4,33 +4,54 @@
|
|
4
4
|
#
|
5
5
|
# SYNOPSIS
|
6
6
|
#
|
7
|
-
# AX_CFLAGS_WARN_ALL [(shellvar
|
8
|
-
# AX_CXXFLAGS_WARN_ALL [(shellvar
|
9
|
-
# AX_FCFLAGS_WARN_ALL [(shellvar
|
7
|
+
# AX_CFLAGS_WARN_ALL [(shellvar[, default[, action-if-found[, action-if-not-found]]])]
|
8
|
+
# AX_CXXFLAGS_WARN_ALL [(shellvar[, default[, action-if-found[, action-if-not-found]]])]
|
9
|
+
# AX_FCFLAGS_WARN_ALL [(shellvar[, default[, action-if-found[, action-if-not-found]]])]
|
10
10
|
#
|
11
11
|
# DESCRIPTION
|
12
12
|
#
|
13
|
-
#
|
13
|
+
# Specify compiler options that enable most reasonable warnings. For the
|
14
|
+
# GNU Compiler Collection (GCC), for example, it will be "-Wall". The
|
15
|
+
# result is added to shellvar, one of CFLAGS, CXXFLAGS or FCFLAGS if the
|
16
|
+
# first parameter is not specified.
|
14
17
|
#
|
15
|
-
#
|
16
|
-
# is added to the shellvar being CFLAGS, CXXFLAGS, or FCFLAGS by default.
|
18
|
+
# Each of these macros accepts the following optional arguments:
|
17
19
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
# experimental than their C equivalents.
|
20
|
+
# - $1 - shellvar
|
21
|
+
# shell variable to use (CFLAGS, CXXFLAGS or FCFLAGS if not
|
22
|
+
# specified, depending on macro)
|
22
23
|
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
# - $4 action-if-not-found : nothing
|
24
|
+
# - $2 - default
|
25
|
+
# value to use for flags if compiler vendor cannot be determined (by
|
26
|
+
# default, "")
|
27
27
|
#
|
28
|
-
#
|
28
|
+
# - $3 - action-if-found
|
29
|
+
# action to take if the compiler vendor has been successfully
|
30
|
+
# determined (by default, add the appropriate compiler flags to
|
31
|
+
# shellvar)
|
32
|
+
#
|
33
|
+
# - $4 - action-if-not-found
|
34
|
+
# action to take if the compiler vendor has not been determined or
|
35
|
+
# is unknown (by default, add the default flags, or "" if not
|
36
|
+
# specified, to shellvar)
|
37
|
+
#
|
38
|
+
# These macros use AX_COMPILER_VENDOR to determine which flags should be
|
39
|
+
# returned for a given compiler. Not all compilers currently have flags
|
40
|
+
# defined for them; patches are welcome. If need be, compiler flags may
|
41
|
+
# be made language-dependent: use a construct like the following:
|
42
|
+
#
|
43
|
+
# [vendor_name], [m4_if(_AC_LANG_PREFIX,[C], VAR="--relevant-c-flags",dnl
|
44
|
+
# m4_if(_AC_LANG_PREFIX,[CXX], VAR="--relevant-c++-flags",dnl
|
45
|
+
# m4_if(_AC_LANG_PREFIX,[FC], VAR="--relevant-fortran-flags",dnl
|
46
|
+
# VAR="$2"; FOUND="no")))],
|
47
|
+
#
|
48
|
+
# Note: These macros also depend on AX_PREPEND_FLAG.
|
29
49
|
#
|
30
50
|
# LICENSE
|
31
51
|
#
|
32
52
|
# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
|
33
53
|
# Copyright (c) 2010 Rhys Ulerich <rhys.ulerich@gmail.com>
|
54
|
+
# Copyright (c) 2018 John Zaitseff <J.Zaitseff@zap.org.au>
|
34
55
|
#
|
35
56
|
# This program is free software; you can redistribute it and/or modify it
|
36
57
|
# under the terms of the GNU General Public License as published by the
|
@@ -58,65 +79,80 @@
|
|
58
79
|
# modified version of the Autoconf Macro, you may extend this special
|
59
80
|
# exception to the GPL to apply to your modified version as well.
|
60
81
|
|
61
|
-
#serial
|
82
|
+
#serial 25
|
83
|
+
|
84
|
+
AC_DEFUN([AX_FLAGS_WARN_ALL], [
|
85
|
+
AX_REQUIRE_DEFINED([AX_PREPEND_FLAG])dnl
|
86
|
+
AC_REQUIRE([AX_COMPILER_VENDOR])dnl
|
87
|
+
|
88
|
+
AS_VAR_PUSHDEF([FLAGS], [m4_default($1,_AC_LANG_PREFIX[]FLAGS)])dnl
|
89
|
+
AS_VAR_PUSHDEF([VAR], [ac_cv_[]_AC_LANG_ABBREV[]flags_warn_all])dnl
|
90
|
+
AS_VAR_PUSHDEF([FOUND], [ac_save_[]_AC_LANG_ABBREV[]flags_warn_all_found])dnl
|
91
|
+
|
92
|
+
AC_CACHE_CHECK([FLAGS for most reasonable warnings], VAR, [
|
93
|
+
VAR=""
|
94
|
+
FOUND="yes"
|
95
|
+
dnl Cases are listed in the order found in ax_compiler_vendor.m4
|
96
|
+
AS_CASE("$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor",
|
97
|
+
[intel], [VAR="-w2"],
|
98
|
+
[ibm], [VAR="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"],
|
99
|
+
[pathscale], [],
|
100
|
+
[clang], [VAR="-Wall"],
|
101
|
+
[cray], [VAR="-h msglevel 2"],
|
102
|
+
[fujitsu], [],
|
103
|
+
[sdcc], [],
|
104
|
+
[sx], [VAR="-pvctl[,]fullmsg"],
|
105
|
+
[portland], [],
|
106
|
+
[gnu], [VAR="-Wall"],
|
107
|
+
[sun], [VAR="-v"],
|
108
|
+
[hp], [VAR="+w1"],
|
109
|
+
[dec], [VAR="-verbose -w0 -warnprotos"],
|
110
|
+
[borland], [],
|
111
|
+
[comeau], [],
|
112
|
+
[kai], [],
|
113
|
+
[lcc], [],
|
114
|
+
[sgi], [VAR="-fullwarn"],
|
115
|
+
[microsoft], [],
|
116
|
+
[metrowerks], [],
|
117
|
+
[watcom], [],
|
118
|
+
[tcc], [],
|
119
|
+
[unknown], [
|
120
|
+
VAR="$2"
|
121
|
+
FOUND="no"
|
122
|
+
],
|
123
|
+
[
|
124
|
+
AC_MSG_WARN([Unknown compiler vendor returned by [AX_COMPILER_VENDOR]])
|
125
|
+
VAR="$2"
|
126
|
+
FOUND="no"
|
127
|
+
]
|
128
|
+
)
|
129
|
+
|
130
|
+
AS_IF([test "x$FOUND" = "xyes"], [dnl
|
131
|
+
m4_default($3, [AS_IF([test "x$VAR" != "x"], [AX_PREPEND_FLAG([$VAR], [FLAGS])])])
|
132
|
+
], [dnl
|
133
|
+
m4_default($4, [m4_ifval($2, [AX_PREPEND_FLAG([$VAR], [FLAGS])], [true])])
|
134
|
+
])dnl
|
135
|
+
])dnl
|
62
136
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum warnings],
|
67
|
-
VAR,[VAR="no, unknown"
|
68
|
-
ac_save_[]FLAGS="$[]FLAGS"
|
69
|
-
for ac_arg dnl
|
70
|
-
in "-warn all % -warn all" dnl Intel
|
71
|
-
"-pedantic % -Wall" dnl GCC
|
72
|
-
"-xstrconst % -v" dnl Solaris C
|
73
|
-
"-std1 % -verbose -w0 -warnprotos" dnl Digital Unix
|
74
|
-
"-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" dnl AIX
|
75
|
-
"-ansi -ansiE % -fullwarn" dnl IRIX
|
76
|
-
"+ESlit % +w1" dnl HP-UX C
|
77
|
-
"-Xc % -pvctl[,]fullmsg" dnl NEC SX-5 (Super-UX 10)
|
78
|
-
"-h conform % -h msglevel 2" dnl Cray C (Unicos)
|
79
|
-
#
|
80
|
-
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
81
|
-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
|
82
|
-
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
83
|
-
done
|
84
|
-
FLAGS="$ac_save_[]FLAGS"
|
85
|
-
])
|
86
|
-
AS_VAR_POPDEF([FLAGS])dnl
|
87
|
-
AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
|
88
|
-
case ".$VAR" in
|
89
|
-
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
90
|
-
.|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;;
|
91
|
-
*) m4_default($3,[AX_APPEND_FLAG([$VAR], [$1])]) ;;
|
92
|
-
esac
|
93
|
-
AS_VAR_POPDEF([VAR])dnl
|
137
|
+
AS_VAR_POPDEF([FOUND])dnl
|
138
|
+
AS_VAR_POPDEF([VAR])dnl
|
139
|
+
AS_VAR_POPDEF([FLAGS])dnl
|
94
140
|
])dnl AX_FLAGS_WARN_ALL
|
95
|
-
dnl implementation tactics:
|
96
|
-
dnl the for-argument contains a list of options. The first part of
|
97
|
-
dnl these does only exist to detect the compiler - usually it is
|
98
|
-
dnl a global option to enable -ansi or -extrawarnings. All other
|
99
|
-
dnl compilers will fail about it. That was needed since a lot of
|
100
|
-
dnl compilers will give false positives for some option-syntax
|
101
|
-
dnl like -Woption or -Xoption as they think of it is a pass-through
|
102
|
-
dnl to later compile stages or something. The "%" is used as a
|
103
|
-
dnl delimiter. A non-option comment can be given after "%%" marks
|
104
|
-
dnl which will be shown but not added to the respective C/CXXFLAGS.
|
105
141
|
|
106
|
-
AC_DEFUN([AX_CFLAGS_WARN_ALL],[dnl
|
107
|
-
AC_LANG_PUSH([C])
|
108
|
-
AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
|
109
|
-
AC_LANG_POP([C])
|
110
|
-
])
|
142
|
+
AC_DEFUN([AX_CFLAGS_WARN_ALL], [dnl
|
143
|
+
AC_LANG_PUSH([C])
|
144
|
+
AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
|
145
|
+
AC_LANG_POP([C])
|
146
|
+
])dnl
|
111
147
|
|
112
|
-
AC_DEFUN([AX_CXXFLAGS_WARN_ALL],[dnl
|
113
|
-
AC_LANG_PUSH([C++])
|
114
|
-
AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
|
115
|
-
AC_LANG_POP([C++])
|
116
|
-
])
|
148
|
+
AC_DEFUN([AX_CXXFLAGS_WARN_ALL], [dnl
|
149
|
+
AC_LANG_PUSH([C++])
|
150
|
+
AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
|
151
|
+
AC_LANG_POP([C++])
|
152
|
+
])dnl
|
117
153
|
|
118
|
-
AC_DEFUN([AX_FCFLAGS_WARN_ALL],[dnl
|
119
|
-
AC_LANG_PUSH([Fortran])
|
120
|
-
AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
|
121
|
-
AC_LANG_POP([Fortran])
|
122
|
-
])
|
154
|
+
AC_DEFUN([AX_FCFLAGS_WARN_ALL], [dnl
|
155
|
+
AC_LANG_PUSH([Fortran])
|
156
|
+
AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
|
157
|
+
AC_LANG_POP([Fortran])
|
158
|
+
])dnl
|
@@ -8,15 +8,30 @@
|
|
8
8
|
#
|
9
9
|
# DESCRIPTION
|
10
10
|
#
|
11
|
-
# Determine the vendor of the C
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
11
|
+
# Determine the vendor of the C, C++ or Fortran compiler. The vendor is
|
12
|
+
# returned in the cache variable $ax_cv_c_compiler_vendor for C,
|
13
|
+
# $ax_cv_cxx_compiler_vendor for C++ or $ax_cv_fc_compiler_vendor for
|
14
|
+
# (modern) Fortran. The value is one of "intel", "ibm", "pathscale",
|
15
|
+
# "clang" (LLVM), "cray", "fujitsu", "sdcc", "sx", "nvhpc" (NVIDIA HPC
|
16
|
+
# Compiler), "portland" (PGI), "gnu" (GCC), "sun" (Oracle Developer
|
17
|
+
# Studio), "hp", "dec", "borland", "comeau", "kai", "lcc", "sgi",
|
18
|
+
# "microsoft", "metrowerks", "watcom", "tcc" (Tiny CC) or "unknown" (if
|
19
|
+
# the compiler cannot be determined).
|
20
|
+
#
|
21
|
+
# To check for a Fortran compiler, you must first call AC_FC_PP_SRCEXT
|
22
|
+
# with an appropriate preprocessor-enabled extension. For example:
|
23
|
+
#
|
24
|
+
# AC_LANG_PUSH([Fortran])
|
25
|
+
# AC_PROG_FC
|
26
|
+
# AC_FC_PP_SRCEXT([F])
|
27
|
+
# AX_COMPILER_VENDOR
|
28
|
+
# AC_LANG_POP([Fortran])
|
15
29
|
#
|
16
30
|
# LICENSE
|
17
31
|
#
|
18
32
|
# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
|
19
33
|
# Copyright (c) 2008 Matteo Frigo
|
34
|
+
# Copyright (c) 2018-19 John Zaitseff <J.Zaitseff@zap.org.au>
|
20
35
|
#
|
21
36
|
# This program is free software: you can redistribute it and/or modify it
|
22
37
|
# under the terms of the GNU General Public License as published by the
|
@@ -44,45 +59,61 @@
|
|
44
59
|
# modified version of the Autoconf Macro, you may extend this special
|
45
60
|
# exception to the GPL to apply to your modified version as well.
|
46
61
|
|
47
|
-
#serial
|
62
|
+
#serial 32
|
63
|
+
|
64
|
+
AC_DEFUN([AX_COMPILER_VENDOR], [dnl
|
65
|
+
AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, [dnl
|
66
|
+
dnl If you modify this list of vendors, please add similar support
|
67
|
+
dnl to ax_compiler_version.m4 if at all possible.
|
68
|
+
dnl
|
69
|
+
dnl Note: Do NOT check for GCC first since some other compilers
|
70
|
+
dnl define __GNUC__ to remain compatible with it. Compilers that
|
71
|
+
dnl are very slow to start (such as Intel) are listed first.
|
72
|
+
|
73
|
+
vendors="
|
74
|
+
intel: __ICC,__ECC,__INTEL_COMPILER
|
75
|
+
ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
|
76
|
+
pathscale: __PATHCC__,__PATHSCALE__
|
77
|
+
clang: __clang__
|
78
|
+
cray: _CRAYC
|
79
|
+
fujitsu: __FUJITSU
|
80
|
+
sdcc: SDCC,__SDCC
|
81
|
+
sx: _SX
|
82
|
+
nvhpc: __NVCOMPILER
|
83
|
+
portland: __PGI
|
84
|
+
gnu: __GNUC__
|
85
|
+
sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
|
86
|
+
hp: __HP_cc,__HP_aCC
|
87
|
+
dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
|
88
|
+
borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
|
89
|
+
comeau: __COMO__
|
90
|
+
kai: __KCC
|
91
|
+
lcc: __LCC__
|
92
|
+
sgi: __sgi,sgi
|
93
|
+
microsoft: _MSC_VER
|
94
|
+
metrowerks: __MWERKS__
|
95
|
+
watcom: __WATCOMC__
|
96
|
+
tcc: __TINYC__
|
97
|
+
unknown: UNKNOWN
|
98
|
+
"
|
99
|
+
for ventest in $vendors; do
|
100
|
+
case $ventest in
|
101
|
+
*:)
|
102
|
+
vendor=$ventest
|
103
|
+
continue
|
104
|
+
;;
|
105
|
+
*)
|
106
|
+
vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
|
107
|
+
;;
|
108
|
+
esac
|
109
|
+
|
110
|
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[
|
111
|
+
#if !($vencpp)
|
112
|
+
thisisanerror;
|
113
|
+
#endif
|
114
|
+
]])], [break])
|
115
|
+
done
|
48
116
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
[# note: don't check for gcc first since some other compilers define __GNUC__
|
53
|
-
vendors="intel: __ICC,__ECC,__INTEL_COMPILER
|
54
|
-
ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
|
55
|
-
pathscale: __PATHCC__,__PATHSCALE__
|
56
|
-
clang: __clang__
|
57
|
-
cray: _CRAYC
|
58
|
-
fujitsu: __FUJITSU
|
59
|
-
sdcc: SDCC, __SDCC
|
60
|
-
gnu: __GNUC__
|
61
|
-
sun: __SUNPRO_C,__SUNPRO_CC
|
62
|
-
hp: __HP_cc,__HP_aCC
|
63
|
-
dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
|
64
|
-
borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
|
65
|
-
comeau: __COMO__
|
66
|
-
kai: __KCC
|
67
|
-
lcc: __LCC__
|
68
|
-
sgi: __sgi,sgi
|
69
|
-
microsoft: _MSC_VER
|
70
|
-
metrowerks: __MWERKS__
|
71
|
-
watcom: __WATCOMC__
|
72
|
-
portland: __PGI
|
73
|
-
tcc: __TINYC__
|
74
|
-
unknown: UNKNOWN"
|
75
|
-
for ventest in $vendors; do
|
76
|
-
case $ventest in
|
77
|
-
*:) vendor=$ventest; continue ;;
|
78
|
-
*) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
|
79
|
-
esac
|
80
|
-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[
|
81
|
-
#if !($vencpp)
|
82
|
-
thisisanerror;
|
83
|
-
#endif
|
84
|
-
])], [break])
|
85
|
-
done
|
86
|
-
ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=`echo $vendor | cut -d: -f1`
|
87
|
-
])
|
88
|
-
])
|
117
|
+
ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=`echo $vendor | cut -d: -f1`
|
118
|
+
])
|
119
|
+
])dnl
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# ===========================================================================
|
2
|
+
# https://www.gnu.org/software/autoconf-archive/ax_prepend_flag.html
|
3
|
+
# ===========================================================================
|
4
|
+
#
|
5
|
+
# SYNOPSIS
|
6
|
+
#
|
7
|
+
# AX_PREPEND_FLAG(FLAG, [FLAGS-VARIABLE])
|
8
|
+
#
|
9
|
+
# DESCRIPTION
|
10
|
+
#
|
11
|
+
# FLAG is added to the front of the FLAGS-VARIABLE shell variable, with a
|
12
|
+
# space added in between.
|
13
|
+
#
|
14
|
+
# If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
|
15
|
+
# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains
|
16
|
+
# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly
|
17
|
+
# FLAG.
|
18
|
+
#
|
19
|
+
# NOTE: Implementation based on AX_APPEND_FLAG.
|
20
|
+
#
|
21
|
+
# LICENSE
|
22
|
+
#
|
23
|
+
# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
|
24
|
+
# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
|
25
|
+
# Copyright (c) 2018 John Zaitseff <J.Zaitseff@zap.org.au>
|
26
|
+
#
|
27
|
+
# Copying and distribution of this file, with or without modification, are
|
28
|
+
# permitted in any medium without royalty provided the copyright notice
|
29
|
+
# and this notice are preserved. This file is offered as-is, without any
|
30
|
+
# warranty.
|
31
|
+
|
32
|
+
#serial 2
|
33
|
+
|
34
|
+
AC_DEFUN([AX_PREPEND_FLAG],
|
35
|
+
[dnl
|
36
|
+
AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF
|
37
|
+
AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])
|
38
|
+
AS_VAR_SET_IF(FLAGS,[
|
39
|
+
AS_CASE([" AS_VAR_GET(FLAGS) "],
|
40
|
+
[*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])],
|
41
|
+
[
|
42
|
+
FLAGS="$1 $FLAGS"
|
43
|
+
AC_RUN_LOG([: FLAGS="$FLAGS"])
|
44
|
+
])
|
45
|
+
],
|
46
|
+
[
|
47
|
+
AS_VAR_SET(FLAGS,[$1])
|
48
|
+
AC_RUN_LOG([: FLAGS="$FLAGS"])
|
49
|
+
])
|
50
|
+
AS_VAR_POPDEF([FLAGS])dnl
|
51
|
+
])dnl AX_PREPEND_FLAG
|
@@ -1,7 +1,7 @@
|
|
1
|
-
# Makefile.in generated by automake 1.16.
|
1
|
+
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
2
2
|
# @configure_input@
|
3
3
|
|
4
|
-
# Copyright (C) 1994-
|
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,
|
@@ -91,7 +91,6 @@ target_triplet = @target@
|
|
91
91
|
subdir = man
|
92
92
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
93
93
|
am__aclocal_m4_deps = $(top_srcdir)/m4/asmcfi.m4 \
|
94
|
-
$(top_srcdir)/m4/ax_append_flag.m4 \
|
95
94
|
$(top_srcdir)/m4/ax_cc_maxopt.m4 \
|
96
95
|
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
|
97
96
|
$(top_srcdir)/m4/ax_check_compile_flag.m4 \
|
@@ -100,6 +99,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/asmcfi.m4 \
|
|
100
99
|
$(top_srcdir)/m4/ax_enable_builddir.m4 \
|
101
100
|
$(top_srcdir)/m4/ax_gcc_archflag.m4 \
|
102
101
|
$(top_srcdir)/m4/ax_gcc_x86_cpuid.m4 \
|
102
|
+
$(top_srcdir)/m4/ax_prepend_flag.m4 \
|
103
103
|
$(top_srcdir)/m4/ax_require_defined.m4 \
|
104
104
|
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
105
105
|
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
@@ -166,7 +166,6 @@ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
|
166
166
|
am__DIST_COMMON = $(srcdir)/Makefile.in
|
167
167
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
168
168
|
ACLOCAL = @ACLOCAL@
|
169
|
-
ALLOCA = @ALLOCA@
|
170
169
|
AMTAR = @AMTAR@
|
171
170
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
172
171
|
AM_LTLDFLAGS = @AM_LTLDFLAGS@
|
@@ -182,8 +181,9 @@ CCASDEPMODE = @CCASDEPMODE@
|
|
182
181
|
CCASFLAGS = @CCASFLAGS@
|
183
182
|
CCDEPMODE = @CCDEPMODE@
|
184
183
|
CFLAGS = @CFLAGS@
|
185
|
-
CPP = @CPP@
|
186
184
|
CPPFLAGS = @CPPFLAGS@
|
185
|
+
CSCOPE = @CSCOPE@
|
186
|
+
CTAGS = @CTAGS@
|
187
187
|
CXX = @CXX@
|
188
188
|
CXXCPP = @CXXCPP@
|
189
189
|
CXXDEPMODE = @CXXDEPMODE@
|
@@ -198,9 +198,11 @@ ECHO_C = @ECHO_C@
|
|
198
198
|
ECHO_N = @ECHO_N@
|
199
199
|
ECHO_T = @ECHO_T@
|
200
200
|
EGREP = @EGREP@
|
201
|
+
ETAGS = @ETAGS@
|
201
202
|
EXEEXT = @EXEEXT@
|
202
203
|
FFI_EXEC_TRAMPOLINE_TABLE = @FFI_EXEC_TRAMPOLINE_TABLE@
|
203
204
|
FGREP = @FGREP@
|
205
|
+
FILECMD = @FILECMD@
|
204
206
|
GREP = @GREP@
|
205
207
|
HAVE_LONG_DOUBLE = @HAVE_LONG_DOUBLE@
|
206
208
|
HAVE_LONG_DOUBLE_VARIANT = @HAVE_LONG_DOUBLE_VARIANT@
|
@@ -239,6 +241,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@
|
|
239
241
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
240
242
|
PRTDIAG = @PRTDIAG@
|
241
243
|
RANLIB = @RANLIB@
|
244
|
+
READELF = @READELF@
|
242
245
|
SECTION_LDFLAGS = @SECTION_LDFLAGS@
|
243
246
|
SED = @SED@
|
244
247
|
SET_MAKE = @SET_MAKE@
|
@@ -305,6 +308,7 @@ target_alias = @target_alias@
|
|
305
308
|
target_cpu = @target_cpu@
|
306
309
|
target_os = @target_os@
|
307
310
|
target_vendor = @target_vendor@
|
311
|
+
tmake_file = @tmake_file@
|
308
312
|
toolexecdir = @toolexecdir@
|
309
313
|
toolexeclibdir = @toolexeclibdir@
|
310
314
|
top_build_prefix = @top_build_prefix@
|
@@ -400,7 +404,6 @@ ctags CTAGS:
|
|
400
404
|
|
401
405
|
cscope cscopelist:
|
402
406
|
|
403
|
-
|
404
407
|
distdir: $(BUILT_SOURCES)
|
405
408
|
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
406
409
|
|
data/ext/ffi_c/libffi/missing
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
scriptversion=2018-03-07.03; # UTC
|
5
5
|
|
6
|
-
# Copyright (C) 1996-
|
6
|
+
# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
7
7
|
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
8
8
|
|
9
9
|
# This program is free software; you can redistribute it and/or modify
|
@@ -363,7 +363,7 @@ typedef struct {
|
|
363
363
|
|
364
364
|
/* If this is enabled, then a raw closure has the same layout
|
365
365
|
as a regular closure. We use this to install an intermediate
|
366
|
-
handler to do the
|
366
|
+
handler to do the translation, void** -> ffi_raw*. */
|
367
367
|
|
368
368
|
void (*translate_args)(ffi_cif*,void*,void**,void*);
|
369
369
|
void *this_closure;
|