summaryrefslogtreecommitdiff
path: root/configure.host
Commit message (Collapse)AuthorAgeFilesLines
* Add MSYS configuration files (#728)Hans2022-09-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Add MSYS configuration files MSYS behaves very similiar to Cygwin, e.g. also __CYGWIN__ is defined. Now 'make check' passes on MSYS without extra patches. * Fix warning extra tokens at end of #endif in closures.c Extra tokens converted into a comment. Also nearby indentations corrected. * Fix missing prototype warning mkostemp() on Cygwin Cygwin requires also _GNU_SOURCE to be defined to enable mkostemp() prototype. * Fix warning label ‘out’ defined but not used in ffi functions Define same preprocessor conditions for goto and label visibility. * Fix warning label ‘out’ defined but not used and related indentations. Define same preprocessor conditions for goto and label visibility. Correct also related indentations. Co-authored-by: Hannes Müller <>
* Makefile: enable target overridings. (#661)Clément Chigot2022-09-011-0/+2
| | | | | | | | | | This patch allows target to provide extra files enabling the override of Makefile rules. This patch is not needed for libffi itself but only for GCC on AIX. The t-aix file which is here empty will be replaced in GCC repository. We cannot include GCC version directly here because it has no sense for a standalone libffi. Co-authored-by: Clement <clement.chigot@atos.net>
* Support loongarch64 (#678)zhangwenlong2022-05-241-0/+5
| | | | | | | | | | | | | | | * update config.{guess,sub} * Support loongarch64 Co-Authored-By: Cheng Lulu <chenglulu@loongson.cn> Co-Authored-By: Xi Ruoyao <xry111@mengyan1223.wang> Co-Authored-By: Xu Hao Co-Authored-By: Zhang Wenlong <zhangwenlong@loongson.cn> Co-Authored-By: Pan Xuefeng <panxuefeng@loongson.cn> Co-authored-by: panxuefeng <panxuefeng@loongson.cn> Co-authored-by: Cheng Lulu <chenglulu@loongson.cn> Co-authored-by: Xi Ruoyao <xry111@mengyan1223.wang>
* Fix building for arm windows with mingw toolchains (#631)Martin Storsjö2021-04-061-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * arm: Check _WIN32 instead of _M_ARM or _MSC_VER for detecting windows This matches what was done for ARM64 in c06468fa6674d3783a0edb1d0fae9afc8bc28513. * arm: Only use armasm source when building with MSVC When building for windows/arm with clang, the normal gas style .S source works fine (if fixed up to support thumb and other windows specifics). This matches what was done for ARM64 in c06468fa6674d3783a0edb1d0fae9afc8bc28513. * arm: Fix sysv.S to work in thumb mode Align cases in jump tables (adding nop padding to make sure each case starts where expected). Rewrite instructions that add directly to the pc register. For ffi_closure_ret, factor out a call_epilogue subroutine that restores both sp and pc from the stack; the thumb version of ldm can't load into the sp register. To avoid excessive ifdeffing, keep using call_epilogue in arm mode, but keep the shorter "ldm sp, {sp, pc}" epilogue in that case. * arm: Add win32 version of trampoline to sysv.S This matches the version of it in sysv_msvc_arm32.S. The calling C code expects a specific form of the trampoline on windows; make sure these work the same on windows regardless of the form of assembly used. * arm: Avoid optimizing out clearing the thumb bit of ffi_arm_trampoline We clear the thumb bit of ffi_arm_trampoline with a bitmask before memcpying its instructions into closure->tramp. If the bit isn't cleared, the memcpy of the trampoline function copies the wrong instructions. If the ffi_arm_trampoline symbol is declared as an array of int, the compiler can assume that it is aligned to a 4 byte boundary and the bitmask operation is a no-op, and optimize it out. See https://godbolt.org/z/dE3jE1WTz; both Clang and GCC optimize out the bitmask as it is, while MSVC doesn't. By declaring the trampoline as an array of unsigned char, the bitmask works as intended.
* libffi/x86: Always check __x86_64__ for x32 hosts (#601) (#602)hjl-tools2020-12-021-16/+8
| | | | Since for x86_64-*x32 and x86_64-x32-* hosts, -m32 generates ia32 codes. We should always check __x86_64__ for x32 hosts.
* Add support for powerpc64le-*-freebsd*. (#581)Brandon Bergren2020-10-271-1/+1
| | | Tests pass with no additional changes needed, tested on hardware.
* Upstream local FreeBSD patches (#567)Niclas Zeising2020-08-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for FreeBSD mips Add support for FreeBSD mips, this has been a local patch in the FreeBSD ports tree for quite some time. Originally submitted by sson, and committed by sbruno AT FreeBSD DOT org See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191909 for background details. Signed-off-by: Niclas Zeising <zeising@daemonic.se> * Add support for FreeBSD powerpcspe Add support for powerpcspe on FreeBSD This has been in the FreeBSD ports tree for some time. Originally submitted by jhibbits AT FreeBSD DOT org. Signed-off-by: Niclas Zeising <zeising@daemonic.se> * Fix abort() on FreeBSD arm related to __clear_cache() This patch has been in the FreeBSD ports tree for a number of years. Original commit by koobs AT FreeBSD DOT org Original commit message: > devel/libffi: Fix abort() on ARM related to __clear_cache() > > The current FreeBSD/ARM __clear_cache() implementation does nothing #if > __i386__ || __x86_64__ #else abort(); > > cognet@ advises this is an issue for anything !Apple that is using the > libcompiler_rt provided by Clang on ARM, and requires upstreaming. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=149167 for some background details. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
* Add support for cskyMa Jun2020-06-291-0/+5
|
* Add support for Kalray KVX architecture (#559)Yann Sionneau2020-05-011-0/+5
|
* Fix building for aarch64 windows with mingw toolchains (#555)Martin Storsjö2020-04-251-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * aarch64: Check _WIN32 instead of _M_ARM64 for detecting windows This fixes building for aarch64 with mingw toolchains. _M_ARM64 is predefined by MSVC, while mingw compilers predefine __aarch64__. In aarch64 specific code, change checks for _M_ARM64 into checks for _WIN32. In arch independent code, check for (defined(_M_ARM64) || defined(__aarch64__)) && defined(_WIN32) instead of just _M_ARM64. In src/closures.c, coalesce checks like defined(X86_WIN32) || defined(X86_WIN64) || defined(_M_ARM64) into plain defined(_WIN32). Technically, this enables code for ARM32 windows where it wasn't, but as far as I can see it, those codepaths should be fine for that architecture variant as well. * aarch64: Only use armasm source when building with MSVC When building for windows/arm64 with clang, the normal gas style .S source works fine. sysv.S and win64_armasm.S seem to be functionally equivalent, with only differences being due to assembler syntax.
* Add powerpc-eabiAnthony Green2019-11-281-0/+3
|
* Capture x86-windows host like x86_64-windows (#529)Michael Haubenwallner2019-11-221-1/+1
|
* Capture more or1k hostsAnthony Green2019-11-181-1/+1
|
* fix mingw build and crashing bugs for Python Windows ARM64 (#496)Paul Monson2019-08-071-0/+8
| | | | | | * fix mingw build and crashing bugs for Python Windows ARM64 * Fix issues found in PR review
* add support for 32-bit ARM on Windows (#477)Paul Monson2019-04-261-0/+8
| | | | | | | | | | | | | | | | | | | | * add support for 32-bit ARM on Windows * fix mismatched brace in appveyor.yml * remove arm platform from appveyor.yml for now * fix arm build * fix typo * fix assembler names * try Visual Studio 2017 * add windows arm32 to .appveyor.yml * update README.md
* changes for win32 on windows (#468)Paul Monson2019-02-191-7/+5
|
* New RISC-V port (#281)Stef O'Rear2018-03-111-0/+5
| | | | | | | | | | | | | | | | | | | | | * Add RISC-V support This patch adds support for the RISC-V architecture (https://riscv.org). This patch has been tested using QEMU user-mode emulation and GCC 7.2.0 in the following configurations: * -march=rv32imac -mabi=ilp32 * -march=rv32g -mabi=ilp32d * -march=rv64imac -mabi=lp64 * -march=rv64g -mabi=lp64d The ABI currently can be found at https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md . * Add RISC-V to README * RISC-V: fix configure.host
* Don't include WIN64/EFI64 for x32H.J. Lu2017-10-251-2/+14
| | | | | Since x32 doesn't support WIN64/EFI64, don't include it for x32. Also x32 has sizeof size_t == 4. But TARGET should be X86_64.
* add i?86-*-ios -- the iOS simulator (32bit)Moritz Angermann2017-05-211-1/+1
|
* add x86_64-*-ios -- the iOS simulatorMoritz Angermann2017-05-211-1/+1
|
* We don't support 32-bit builds with the Microsoft toolchainAnthony Green2017-03-191-3/+9
|
* Merge pull request #291 from ramon-garcia/visual-studio-buildAnthony Green2017-03-171-2/+9
|\ | | | | Build with Visual C++ (64 bits)
| * Modify configure.host to detect compilation with Microsoft Visual C++ and ↵Ramón García Fernández2017-01-081-2/+9
| | | | | | | | use assembly with Intel syntax in that case
* | detect other x32 hostsMatija Skala2017-03-151-1/+1
|/ | | | primarily x86_64-pc-linux-muslx32 while at it, add x86_64-x32-pc-linux-{gnu,musl} as well
* Support the WIN64/EFI64 calling convention on all X86_64 platformsJosh Triplett2015-07-261-1/+1
| | | | | | | | | | | Add a new calling convention FFI_EFI64, alias FFI_WIN64, on all X86_64 platforms. This allows libffi compiled on a 64-bit x86 platform to call EFI functions. Compile in ffiw64.c and win64.S on all X86_64 platforms. When compiled for a platform other than X86_WIN64, ffiw64.c suffixes its functions with _efi64, to avoid conflict with the platform's actual implementations of those functions.
* Handle NetBSD/powerpc the same as FreeBSD and OpenBSD.Thomas Klausner2015-01-291-1/+1
| | | | Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
* Remove extra brackets in configure.hostRichard Henderson2015-01-131-1/+1
| | | | | This table is no longer in configure.ac, needing protection from m4.
* x86: Best guess at update for DarwinRichard Henderson2015-01-051-5/+7
|
* configure: Move target source selection into configure.hostRichard Henderson2014-11-141-0/+64
| | | | | | | | This eliminates the AM_CONDITIONAL ugliness, which eliminates just a bit of extra boilerplate for a new target. At the same time, properly categorize the EXTRA_DIST files into SOURCES and HEADERS, for the generation of ctags.
* configure: Split out configure.hostRichard Henderson2014-11-131-0/+193
| | | | | Split out the host case statement to a separate file, so that we don't have to regenerate configure.in for changes therein.
* Merge configure.host into configure.acJosh Triplett2014-03-161-11/+0
| | | | | configure.host only has a single entry, and shows no signs of needing more added.
* Initial commitAnthony Green2009-10-041-0/+11