Skip to content

Commit 2bf1593

Browse files
committed
Bump libffi
1 parent 0a0e44d commit 2bf1593

File tree

332 files changed

+32470
-28904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+32470
-28904
lines changed

native/libffi/.appveyor.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
shallow_clone: true
2+
3+
# We're currently only testing libffi built with Microsoft's
4+
# tools.
5+
# This matrix should be expanded to include at least:
6+
# 32- and 64-bit gcc/cygwin
7+
# 32- and 64-bit gcc/mingw
8+
# 32- and 64-bit clang/mingw
9+
# and perhaps more.
10+
11+
image: Visual Studio 2017
12+
platform:
13+
- x64
14+
- x86
15+
- arm
16+
- arm64
17+
18+
environment:
19+
global:
20+
CYG_ROOT: C:/cygwin
21+
CYG_CACHE: C:/cygwin/var/cache/setup
22+
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
23+
matrix:
24+
- VSVER: 15
25+
26+
install:
27+
- ps: >-
28+
If ($env:Platform -Match "x86") {
29+
$env:VCVARS_PLATFORM="x86"
30+
$env:BUILD="i686-pc-cygwin"
31+
$env:HOST="i686-pc-cygwin"
32+
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh"
33+
$env:SRC_ARCHITECTURE="x86"
34+
} ElseIf ($env:Platform -Match "arm64") {
35+
$env:VCVARS_PLATFORM="x86_arm64"
36+
$env:BUILD="i686-pc-cygwin"
37+
$env:HOST="aarch64-w64-cygwin"
38+
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -marm64"
39+
$env:SRC_ARCHITECTURE="aarch64"
40+
} ElseIf ($env:Platform -Match "arm") {
41+
$env:VCVARS_PLATFORM="x86_arm"
42+
$env:BUILD="i686-pc-cygwin"
43+
$env:HOST="arm-w32-cygwin"
44+
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -marm"
45+
$env:SRC_ARCHITECTURE="arm"
46+
} Else {
47+
$env:VCVARS_PLATFORM="amd64"
48+
$env:BUILD="x86_64-w64-cygwin"
49+
$env:HOST="x86_64-w64-cygwin"
50+
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -m64"
51+
$env:SRC_ARCHITECTURE="x86"
52+
}
53+
- 'appveyor DownloadFile https://cygwin.com/setup-x86.exe -FileName setup.exe'
54+
- 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P dejagnu >NUL'
55+
- '%CYG_ROOT%/bin/bash -lc "cygcheck -dc cygwin"'
56+
- echo call VsDevCmd to set VS150COMNTOOLS
57+
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
58+
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
59+
- echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
60+
- call "%VSCOMNTOOLS%..\..\vc\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
61+
62+
build_script:
63+
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; ./autogen.sh;)"
64+
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; ./configure CC='%MSVCC%' CXX='%MSVCC%' LD='link' CPP='cl -nologo -EP' CXXCPP='cl -nologo -EP' CPPFLAGS='-DFFI_BUILDING_DLL' AR='/cygdrive/c/projects/libffi/.travis/ar-lib lib' NM='dumpbin -symbols' STRIP=':' --build=$BUILD --host=$HOST;)"
65+
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; cp src/%SRC_ARCHITECTURE%/ffitarget.h include; make; find .;)"
66+
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; cp `find . -name 'libffi-?.dll'` $HOST/testsuite/; make check; cat `find ./ -name libffi.log`)"

native/libffi/.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto
2+
3+
*.sln text eol=crlf
4+
*.vcxproj* text eol=crlf
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## System Details
2+
3+
<!--- What platform are you working with? eg. the output of config.guess -->
4+
<!--- Provide any toolchain details here. eg. compiler version -->
5+
6+
## Problems Description
7+
8+
<!--- Provide a description of the problem here -->
9+
<!--- If this is a configure-time problem, attach config.log -->
10+
<!--- If this is a testsuite problem, attach the relevant log output -->

native/libffi/.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
.dirstamp
66
*.la
77
Makefile
8+
!testsuite/libffi.bhaible/Makefile
89
Makefile.in
910
aclocal.m4
1011
compile
11-
config.*
12+
!.travis/compile
1213
configure
1314
depcomp
1415
doc/libffi.info
@@ -33,3 +34,5 @@ libffi.xcodeproj/xcuserdata
3334
libffi.xcodeproj/project.xcworkspace
3435
build_*/
3536
darwin_*/
37+
src/arm/trampoline.S
38+
**/texinfo.tex

native/libffi/.travis.yml

+78-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,83 @@
1+
---
2+
sudo: required
3+
14
language: cpp
2-
compiler:
3-
- gcc
4-
- clang
5-
env:
6-
-
7-
- HOST=i386-pc-linux-gnu
5+
6+
# For qemu-powered targets, get the list of supported processors from
7+
# travis by setting QEMU_CPU=help, then set -mcpu= for the compilers
8+
# accordingly.
9+
810
matrix:
9-
exclude:
10-
- compiler: clang
11-
env: HOST=i386-pc-linux-gnu
11+
include:
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
23+
- os: osx
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"
27+
- os: linux
28+
env: HOST=sh4-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
29+
- os: linux
30+
env: HOST=alpha-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/alpha-linux-gnu
31+
- os: linux
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
33+
- os: linux
34+
arch: s390x
35+
env: HOST=s390x-linux-gnu
36+
- os: linux
37+
arch: ppc64le
38+
env: HOST=ppc64le-linux-gnu
39+
- os: linux
40+
arch: arm64
41+
env: HOST=aarch64-linux-gnu
42+
- os: linux
43+
arch: arm64
44+
env: HOST=aarch64-linux-gnu
45+
compiler: clang
46+
- os: linux
47+
env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O0"
48+
- os: linux
49+
env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2"
50+
- os: linux
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
58+
- os: linux
59+
compiler: gcc
60+
env: HOST=i386-pc-linux-gnu MEVAL='export CC="$CC -m32" && CXX="$CXX -m32"'
61+
- os: linux
62+
compiler: gcc
63+
- os: linux
64+
compiler: gcc
65+
env: CONFIGURE_OPTIONS=--disable-shared
66+
- os: linux
67+
compiler: clang
68+
- os: linux
69+
compiler: clang
70+
env: CONFIGURE_OPTIONS=--disable-shared
71+
- os: linux
72+
env: HOST=moxie-elf MEVAL='export PATH=/opt/moxielogic/bin:$PATH && CC=moxie-elf-gcc && CXX=moxie-elf-g++' LDFLAGS=-Tsim.ld RUNTESTFLAGS="--target_board moxie-sim" DEJAGNU="$TRAVIS_BUILD_DIR/.travis/site.exp"
73+
74+
before_install:
75+
- if test x"$MEVAL" != x; then eval ${MEVAL}; fi
1276

13-
before_script:
14-
- sudo apt-get install dejagnu texinfo
15-
- if [ "$HOST" = i386-pc-linux-gnu ] ; then sudo apt-get install gcc-multilib g++-multilib && CC="$CC -m32" && CXX="$CXX -m32" ; fi
77+
install:
78+
- travis_wait 30 ./.travis/install.sh
1679

1780
script:
18-
- ./autogen.sh
19-
- ./configure ${HOST+--host=$HOST}
20-
- make
21-
- make dist
22-
- make check
81+
- if ! test x"$MEVAL" = x; then eval ${MEVAL}; fi
82+
- travis_wait 115 sleep infinity &
83+
- ./.travis/build.sh

0 commit comments

Comments
 (0)