head 1.6; access; symbols pkgsrc-2019Q4:1.5.0.30 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.26 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.24 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.22 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.20 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.18 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.16 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.14 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.12 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.10 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.6 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.4 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.2 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.4.0.6 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.4 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.2 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.3.0.28 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.26 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.24 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.22 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.20 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.18 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.16 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.14 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.12 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.10 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.6 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.4 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.2 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.2.0.20 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.18 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.16 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.14 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.12 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.10 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.8 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.6 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.4 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.2 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.1.0.8 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.6 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.4 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.2; locks; strict; comment @# @; 1.6 date 2020.02.26.19.15.44; author adam; state dead; branches; next 1.5; commitid rKgpRPUEjh8xAdYB; 1.5 date 2016.11.03.11.40.28; author maya; state Exp; branches; next 1.4; commitid Ln5Zv9qTBPAgWFsz; 1.4 date 2016.01.25.17.56.39; author jperkin; state Exp; branches; next 1.3; commitid sgrjfg5XtWl68lSy; 1.3 date 2012.09.14.23.45.27; author asau; state Exp; branches; next 1.2; 1.2 date 2010.03.30.09.21.30; author jmcneill; state Exp; branches; next 1.1; 1.1 date 2009.05.26.12.27.12; author he; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2009.05.26.12.27.12; author tron; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2009.05.30.21.02.35; author tron; state Exp; branches; next ; desc @@ 1.6 log @libffi: updated to 3.3 libffi v3.3 * Add RISC-V support. * New API in support of GO closures. * Add IEEE754 binary128 long double support for 64-bit Power * Default to Microsoft's 64-bit long double ABI with Visual C++. * GNU compiler uses 80 bits (128 in memory) FFI_GNUW64 ABI. * Add Windows on ARM64 (WOA) support. * Add Windows 32-bit ARM support. * Raw java (gcj) API deprecated. * Add pre-built PDF documentation to source distribution. * Many new test cases and bug fixes. @ text @$NetBSD: patch-af,v 1.5 2016/11/03 11:40:28 maya Exp $ Fixes to support the various NetBSD mips ports. --- src/mips/ffi.c.orig 2014-11-08 12:47:24.000000000 +0000 +++ src/mips/ffi.c @@@@ -472,6 +477,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif ((cif->arg_types)[index]->type << (arg_reg * FFI_FLAG_BITS)); arg_reg++; break; +#ifdef __mips64 case FFI_TYPE_LONGDOUBLE: /* Align it. */ arg_reg = ALIGN(arg_reg, 2); @@@@ -490,7 +496,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif arg_reg++; } break; - +#endif case FFI_TYPE_STRUCT: loc = arg_reg * FFI_SIZEOF_ARG; cif->flags += calc_n32_struct_flags(soft_float, @@@@ -552,6 +558,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 8); break; +#ifdef __mips64 case FFI_TYPE_LONGDOUBLE: /* Long double is returned as if it were a struct containing two doubles. */ @@@@ -568,6 +575,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif << (4 + (FFI_FLAG_BITS * 8)); } break; +#endif default: cif->flags += FFI_TYPE_INT << (FFI_FLAG_BITS * 8); break; @ 1.5 log @libffi: remove some netbsd/mips specific patches that are uneeded (and may be harmful). we don't need a definition to declare we're definitely totally o32, especially since the vast majority will be n32. this is potentially harmful, but I cannot confirm any resulting harm. don't try to avoid compiler builtins, we have them and I expect that they will work, however, only build tested (on netbsd 7.99.41 mips64eb), no tests run. bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.4 2016/01/25 17:56:39 jperkin Exp $ @ 1.4 log @Fix GNU triplet match for Solaris to indicate that writeable and executable heap is not supported. Fixes complete test failure on x86_64. Update patch offsets and comments while here. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.3 2012/09/14 23:45:27 asau Exp $ a6 20 @@@@ -33,12 +33,17 @@@@ #ifdef __GNUC__ # if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)) -# define USE__BUILTIN___CLEAR_CACHE 1 +# if !defined(__NetBSD__) +# define USE__BUILTIN___CLEAR_CACHE 1 +# endif # endif #endif #ifndef USE__BUILTIN___CLEAR_CACHE -# if defined(__OpenBSD__) +# if defined(__NetBSD__) +# include +# define cacheflush _cacheflush +# elif defined(__OpenBSD__) # include # else # include @ 1.3 log @Update to libffi 3.0.11 3.0.11 Apr-11-12 Add support for variadic functions (ffi_prep_cif_var). Add Linux/x32 support. Add thiscall, fastcall and MSVC cdecl support on Windows. Add Amiga and newer MacOS support. Add m68k FreeMiNT support. Integration with iOS' xcode build tools. Fix Octeon and MC68881 support. Fix code pessimizations. Lots of build fixes. 3.0.10 Aug-23-11 Add support for Apple's iOS. Add support for ARM VFP ABI. Add RTEMS support for MIPS and M68K. Fix instruction cache clearing problems on ARM and SPARC. Fix the N64 build on mips-sgi-irix6.5. Enable builds with Microsoft's compiler. Enable x86 builds with Oracle's Solaris compiler. Fix support for calling code compiled with Oracle's Sparc Solaris compiler. Testsuite fixes for Tru64 Unix. Additional platform support. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.2 2010/03/30 09:21:30 jmcneill Exp $ d5 2 a6 2 --- src/mips/ffi.c.orig 2011-08-23 18:28:08.000000000 +0400 +++ src/mips/ffi.c 2012-02-19 20:04:17.000000000 +0400 d27 1 a27 1 @@@@ -465,6 +470,7 @@@@ d35 1 a35 1 @@@@ -483,7 +489,7 @@@@ d44 1 a44 1 @@@@ -545,6 +551,7 @@@@ d52 1 a52 1 @@@@ -561,6 +568,7 @@@@ @ 1.2 log @pkg/42858: devel/libffi-3.0.9 fails to build on NetBSD/cobalt 5.02 Fix build for NetBSD/mips, tested on NetBSD/sgimips 5.0_STABLE @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 2009/05/26 12:27:12 he Exp $ d5 3 a7 3 --- src/mips/ffi.c.orig 2009-12-29 10:22:26.000000000 -0500 +++ src/mips/ffi.c 2010-03-30 04:57:29.000000000 -0400 @@@@ -32,12 +32,19 @@@@ d19 2 a20 4 -#include +# if !defined(__NetBSD__) +# include +# else d23 5 a27 5 +# endif #endif #ifdef FFI_DEBUG @@@@ -460,6 +467,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif d35 1 a35 1 @@@@ -478,7 +486,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif d44 1 a44 1 @@@@ -540,6 +548,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif d52 1 a52 1 @@@@ -556,6 +565,7 @@@@ ffi_status ffi_prep_cif_machdep(ffi_cif @ 1.1 log @Update from version 3.0.8nb1 to 3.0.8nb2. Pkgsrc changes: o Add portability to the various mips-based NetBSD ports. The self-tests even complete without any unexpected failures. @ text @d1 1 a1 1 $NetBSD$ d5 2 a6 2 --- src/mips/ffi.c.orig 2008-02-26 18:34:36.000000000 +0100 +++ src/mips/ffi.c d29 33 @ 1.1.2.1 log @file patch-af was added on branch pkgsrc-2009Q1 on 2009-05-30 21:02:35 +0000 @ text @d1 28 @ 1.1.2.2 log @Pullup ticket #2781 - requested by he libffi: portability fix Revisions pulled up: - devel/libffi/Makefile 1.11 via patch - devel/libffi/distinfo 1.12 - devel/libffi/patches/patch-aa 1.8 - devel/libffi/patches/patch-ae 1.1 - devel/libffi/patches/patch-af 1.1 - devel/libffi/patches/patch-ag 1.1 --- Module Name: pkgsrc Committed By: he Date: Tue May 26 12:27:12 UTC 2009 Modified Files: pkgsrc/devel/libffi: Makefile distinfo pkgsrc/devel/libffi/patches: patch-aa Added Files: pkgsrc/devel/libffi/patches: patch-ae patch-af patch-ag Log Message: Update from version 3.0.8nb1 to 3.0.8nb2. Pkgsrc changes: o Add portability to the various mips-based NetBSD ports. The self-tests even complete without any unexpected failures. @ text @a0 28 $NetBSD: patch-af,v 1.1 2009/05/26 12:27:12 he Exp $ Fixes to support the various NetBSD mips ports. --- src/mips/ffi.c.orig 2008-02-26 18:34:36.000000000 +0100 +++ src/mips/ffi.c @@@@ -32,12 +32,19 @@@@ #ifdef __GNUC__ # if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)) -# define USE__BUILTIN___CLEAR_CACHE 1 +# if !defined(__NetBSD__) +# define USE__BUILTIN___CLEAR_CACHE 1 +# endif # endif #endif #ifndef USE__BUILTIN___CLEAR_CACHE -#include +# if !defined(__NetBSD__) +# include +# else +# include +# define cacheflush _cacheflush +# endif #endif #ifdef FFI_DEBUG @