summaryrefslogtreecommitdiffstats
path: root/libffi
Commit message (Collapse)AuthorAgeFilesLines
* * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declarationamodra2013-06-254-7/+93
| | | | | | | | | | | | before statements. (ffi_prep_args64): Support little-endian. (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200383 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix several libffi testsuite failures on 64-bit SPARC and PowerPC (PR ↵ro2013-05-225-5/+15
| | | | | | | | | | | | | libffi/56033) PR libffi/56033 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Cast resp to ffi_arg *. * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise. * testsuite/libffi.call/va_1.c (main): Change res to ffi_arg. * testsuite/libffi.call/va_struct1.c (main): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199194 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/x86/win64.S: Make use of ffi_closure_win64_innerktietz2013-03-222-1/+6
| | | | | | | | symbol pc-relative. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196900 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/closures.c (is_emutramp_enabled [!FFI_MMAP_EXEC_EMUTRAMP_PAX]):davek2013-03-072-2/+9
| | | | | | | | Move default definition outside enclosing #if scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196527 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-06 Andreas Tobler <andreast@fgznet.ch>andreast2013-02-062-0/+7
| | | | | | | | * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where DOUBLE equal LONGDOUBLE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195812 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-01-07 Thorsten Glaser <tg@mirbsd.org>jakub2013-01-174-9/+15
| | | | | | | | | | PR middle-end/56000 * testsuite/libffi.call/cls_uchar_va.c, testsuite/libffi.call/cls_ushort_va.c, testsuite/libffi.call/va_1.c: Testsuite fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195277 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am (ACLOCAL_AMFLAGS, TEXINFO_TEX, MAKEINFOFLAGS)schwab2012-12-2914-280/+988
| | | | | | | | | | | | | | | | | | | | | | | | | | (STAMP_GENINSRC, STAMP_BUILD_INFO, CLEANFILES) (MAINTAINERCLEANFILES): Define. (all-local, stamp-geninsrc, stamp-build-info): New targets. (doc/libffi.info): Depend on $(STAMP_BUILD_INFO) * configure.ac: Check for modern makeinfo. Add support for --enable-generated-files-in-srcdir. * libffi/mdate-sh: New file. * testsuite/lib/libffi.exp (load_gcc_lib): Load from gcc testsuite lib dir. (libffi-init): Properly set library paths for multilibs and add path to libstdc++. * configure: Regenerate. * aclocal.m4: Regenerate. * Makefile.in: Regenerate. * doc/stamp-vti: Regenerate. * doc/version.texi: Regenerate. * fficonfig.h.in: Regenerate. * include/Makefile.in: Regenerate. * man/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194752 138bc75d-0d04-0410-961f-82ee72b054a4
* libffi mergegreen2012-12-26123-654/+6789
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194722 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/powerpc/linux64_closure.S: Add new ABI support.amodra2012-10-313-4/+42
| | | | | | | | * src/powerpc/linux64.S: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193015 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Regenerated.dje2012-09-142-2/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191320 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-08-26 Andrew Pinski <apinski@cavium.com>pinskia2012-08-262-2/+15
| | | | | | | | | | PR libffi/53014 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with soft-float. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190696 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,uros2012-08-082-1/+7
| | | | | | | | just return FFI_BAD_ABI when things are wrong. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190230 138bc75d-0d04-0410-961f-82ee72b054a4
* * ChangeLog.libgcj: Move last two entries ...uros2012-07-182-12/+11
| | | | | | | * ChangeLog: ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189627 138bc75d-0d04-0410-961f-82ee72b054a4
* Define FFI_SIZEOF_JAVA_RAW to 4 for x32hjl2012-07-182-1/+10
| | | | | | | | | | | PR libffi/53982 PR libffi/53973 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32. (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189626 138bc75d-0d04-0410-961f-82ee72b054a4
* Regenerate configure files for libtool.m4 changehjl2012-05-162-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boehm-gc/ * configure: Regenerated. gcc/ * configure: Regenerated. libatomic/ * configure: Regenerated. libffi/ * configure: Regenerated. libgfortran/ * configure: Regenerated. libgomp/ * configure: Regenerated. libitm/ * configure: Regenerated. libjava/classpath/ * configure: Regenerated. libjava/ * configure: Regenerated. libmudflap/ * configure: Regenerated. libobjc/ * configure: Regenerated. libquadmath/ * configure: Regenerated. libssp/ * configure: Regenerated. libstdc++-v3/ * configure: Regenerated. lto-plugin/ * configure: Regenerated. zlib/ * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187616 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.bergner2012-04-022-7/+14
| | | | | | | | | | Silence casting pointer to integer of different size warning. Delete goto to previously deleted label. (ffi_call): Silence possibly undefined warning. (ffi_closure_helper_SYSV): Declare variable type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186091 138bc75d-0d04-0410-961f-82ee72b054a4
* Restore trampled commitsgreen2012-03-294-7/+78
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185955 138bc75d-0d04-0410-961f-82ee72b054a4
* Add missing ChangeLog entry from 2012-03-09 commit.dje2012-03-181-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185499 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,kkojima2012-03-133-4/+12
| | | | | | | | | just return FFI_BAD_ABI when things are wrong. * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185361 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64dje2012-03-091-1/+3
| | | | | | | | change to return value of ffi_closure_helper_DARWIN and load type from return type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185152 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge upstream libffigreen2012-03-0463-636/+6319
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184897 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libffi/52223jakub2012-02-273-0/+12
| | | | | | | | * Makefile.am (FLAGS_TO_PASS): Define. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184592 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct date in ChangeLogktietz2012-02-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184527 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libffi/52221ktietz2012-02-233-4/+45
| | | | | | | | | | | | | | * src/x86/ffi.c (ffi_closure_raw_THISCALL): New prototype. (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for thiscall-convention. (ffi_raw_call): Use ffi_prep_args_raw. * src/x86/win32.S (ffi_closure_raw_THISCALL): Add implementation for stub. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184526 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libffi/52221ktietz2012-02-132-3/+23
| | | | | | | | | * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall support for X86_WIN32. (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184155 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/sparc/v9.S (STACKFRAME): Bump to 176.ebotcazou2012-02-112-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184129 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64ktietz2012-02-103-0/+24
| | | | | | | | windows target. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184103 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32ktietz2012-02-086-1/+143
| | | | | | | | | | | | | | also FFI_THISCALL. * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype. (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code. (ffi_prep_closure_loc): Add FFI_THISCALL support. * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size. * src/x86/win32.S (ffi_closure_THISCALL): New closure code for thiscall-calling convention. * testsuite/libffi.call/closure_thiscall.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184021 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/libffi/src/x86/ffi.c (ffi_call_win32): Add newktietz2012-01-2911-19/+596
| | | | | | | | | | | | | | | | | | | | | | argument to prototype for specify calling-convention. (ffi_call): Add support for stdcall/thiscall convention. (ffi_prep_args): Likewise. (ffi_raw_call): Likewise. * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and FFI_FASTCALL. * src/x86/win32.S (_ffi_call_win32): Add support for fastcall/thiscall calling-convention calls. * testsuite/libffi.call/fastthis1_win32.c: New test. * testsuite/libffi.call/fastthis2_win32.c: New test. * testsuite/libffi.call/fastthis3_win32.c: New test. * testsuite/libffi.call/strlen2_win32.c: New test. * testsuite/libffi.call/many2_win32.c: New test. * testsuite/libffi.call/struct1_win32.c: New test. * testsuite/libffi.call/struct2_win32.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183676 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plainschwab2012-01-232-8/+13
| | | | | | | mc68000. Test for __HAVE_68881__ in addition to __MC68881__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183451 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/48496jakub2012-01-192-3/+12
| | | | | | | * src/ia64/ffi.c (ffi_call): Fix up aliasing violations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183301 138bc75d-0d04-0410-961f-82ee72b054a4
* Build 64-bit libffi multilib for i?86-linuxro2012-01-093-2/+7
| | | | | | | * configure.ac (i?86-*-*): Set TARGET to X86_64. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183017 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-12-07 Andrew Pinski <apinski@cavium.com>pinskia2011-12-071-0/+1
| | | | | | | | | PR libffi/50051 * src/mips/n32.S: Add ".set mips4". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182092 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-12-07 Andrew Pinski <apinski@cavium.com>pinskia2011-12-072-0/+5
| | | | | | | | * src/mips/n32.S: Add ".set mips4". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182091 138bc75d-0d04-0410-961f-82ee72b054a4
* Additional fixes for FreeBSD-10 build:andreast2011-11-212-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | /: * libtool.m4: Additional FreeBSD 10 fixes. boehm-gc/: * configure: Regenerate. gcc/: * configure: Regenerate. libffi/: * configure: Regenerate. libgfortran/: * configure: Regenerate. libgomp/: * configure: Regenerate. libitm/: * configure: Regenerate. libjava/: * configure.ac: Fix some more FreeBSD 10 issues.. * configure: Regenerate. libjava/libltdl/: * acinclude.m4: Additional FreeBSD 10 fixes. * configure: Regenerate. libmudflap/: * configure: Regenerate. libobjc/: * configure: Regenerate. libquadmath/: * configure: Regenerate. libssp/: * configure: Regenerate. libstdc++-v3/: * configure: Regenerate. lto-plugin/: * configure: Regenerate. zlib/: * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181593 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.rth2011-11-104-19/+16
| | | | | | * configure, aclocal.m4: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181266 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libffi/49594iains2011-09-042-3/+10
| | | | | | | | | * src/powerpc/darwin_closure.S (stubs): Make the stub binding helper reference track the architecture pointer size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178512 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-25 Andrew Haley <aph@redhat.com>aph2011-08-253-3/+14
| | | | | | | | | | * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly instructions. * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178060 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-11 Andrew Haley <aph@redhat.com>aph2011-07-112-1/+9
| | | | | | | | * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176172 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.ro2011-06-293-2/+7
| | | | | | | * testsuite/libffi.call/cls_longdouble_va.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175632 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libffi/46660ro2011-06-293-0/+9
| | | | | | | | | * testsuite/libffi.call/cls_double_va.c: xfail dg-output on mips-sgi-irix6*. * testsuite/libffi.call/cls_longdouble_va.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175618 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,ro2011-06-143-16/+28
| | | | | | | | | | PRId8 instead of %hhu, %hhd. * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8, PRIu8): Define. [__sgi__] (PRId8, PRIu8): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175032 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):ro2011-04-292-18/+46
| | | | | | | | | Define. Use them to handle ELF vs. ECOFF differences. [__osf__] (_GLOBAL__F_ffi_call_osf): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173151 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove freebsd1 from libtool.m4 macros and config.rpath.rwild2011-02-132-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /: Import from Libtool and gnulib: 2011-01-27 Gerald Pfeifer <gerald@pfeifer.com> Prepare for supporting FreeBSD 10. * config.rpath: Remove handling of freebsd1* which soon would match FreeBSD 10.0. 2011-01-20 Gerald Pfeifer <gerald@pfeifer.com> (tiny change) Remove support for FreeBSD 1.x. * libtool.m4 (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. boehm-gc/: * configure: Regenerate. gcc/: * configure: Regenerate. libffi/: * configure: Regenerate. libgfortran/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libgo/: * config/libtool.m4: (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. * configure: Regenerate. libgomp/: * configure: Regenerate. libjava/: * configure: Regenerate. * shlibpath.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. libjava/classpath/: * config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove handling of freebsd1* which soon would match FreeBSD 10.0. * configure: Regenerate. libjava/libltdl/: * acinclude.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. * configure: Regenerate. libmudflap/: * configure: Regenerate. libobjc/: * configure: Regenerate. libquadmath/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libssp/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libstdc++-v3/: * configure: Regenerate. lto-plugin/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. zlib/: * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170106 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libffi/46661ro2011-02-093-2/+9
| | | | | | | | | * testsuite/libffi.call/cls_pointer.c (main): Cast void * to uintptr_t first. * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169963 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>joel2011-02-082-0/+46
| | | | | | | | | | | * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing. Handle case when CPU variant does not have long double support. * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire, and cores with soft floating point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169938 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>joel2011-02-081-0/+7
| | | | | | | | | | | * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing. Handle case when CPU variant does not have long double support. * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire, and cores with soft floating point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169937 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>joel2011-02-084-2/+17
| | | | | | | | | | | * configure.ac: Add mips*-*-rtems* support. * configure: Regenerate. * src/mips/ffitarget.h: Ensure needed constants are available for targets which do not have sgidefs.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169936 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.dg/transpose_optimization_2.f90: Cleanup original dump.uros2011-02-071-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169876 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/40125davek2011-01-263-4/+24
| | | | | | | | | * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169272 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud