summaryrefslogtreecommitdiff
path: root/libffi
Commit message (Collapse)AuthorAgeFilesLines
* re PR libffi/56000 (FAIL: libffi.call/cls_uchar_va.c -O0 -W -Wall output ↵Thorsten Glaser2013-01-174-9/+15
| | | | | | | | | | | | | pattern test) 2013-01-07 Thorsten Glaser <tg@mirbsd.org> 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. From-SVN: r195277
* * Makefile.am (ACLOCAL_AMFLAGS, TEXINFO_TEX, MAKEINFOFLAGS)Andreas 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. From-SVN: r194752
* libffi mergeAnthony Green2012-12-26123-654/+6789
| | | | From-SVN: r194722
* linux64_closure.S: Add new ABI support.Alan Modra2012-10-313-4/+42
| | | | | | | * src/powerpc/linux64_closure.S: Add new ABI support. * src/powerpc/linux64.S: Likewise. From-SVN: r193015
* * configure: Regenerated.David Edelsohn2012-09-142-2/+7
| | | | From-SVN: r191320
* re PR libffi/53014 (libffi failures on mips64-linux-gnu with soft-float)Andrew Pinski2012-08-262-2/+15
| | | | | | | | | | 2012-08-26 Andrew Pinski <apinski@cavium.com> PR libffi/53014 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with soft-float. From-SVN: r190696
* ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, just return FFI_BAD_ABI ↵Uros Bizjak2012-08-082-1/+7
| | | | | | | | | when things are wrong. * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, just return FFI_BAD_ABI when things are wrong. From-SVN: r190230
* ChangeLog.libgcj: Move last two entries ...Uros Bizjak2012-07-182-12/+11
| | | | | | | * ChangeLog.libgcj: Move last two entries ... * ChangeLog: ... here. From-SVN: r189627
* Define FFI_SIZEOF_JAVA_RAW to 4 for x32H.J. Lu2012-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. From-SVN: r189626
* Regenerate configure files for libtool.m4 changeH.J. Lu2012-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. From-SVN: r187616
* ffi.c (ffi_prep_args_SYSV): Declare double_tmp.Peter Bergner2012-04-022-7/+14
| | | | | | | | | | * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp. 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. From-SVN: r186091
* Restore trampled commitsAnthony Green2012-03-294-7/+78
| | | | From-SVN: r185955
* Add missing ChangeLog entry from 2012-03-09 commit.David Edelsohn2012-03-171-0/+6
| | | | From-SVN: r185499
* ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, just return FFI_BAD_ABI ↵Kaz Kojima2012-03-133-4/+12
| | | | | | | | | | when things are wrong. * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, just return FFI_BAD_ABI when things are wrong. * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto. From-SVN: r185361
* aix_closure.S (ffi_closure_ASM): Adjust for Darwin64 change to return value ↵David Edelsohn2012-03-091-1/+3
| | | | | | | | | | of ffi_closure_helper_DARWIN and... * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64 change to return value of ffi_closure_helper_DARWIN and load type from return type. From-SVN: r185152
* Merge upstream libffiAnthony Green2012-03-0463-636/+6319
| | | | From-SVN: r184897
* re PR libffi/52223 (libffi's man page install breaks with multilibs and ↵Mikael Pettersson2012-02-273-0/+12
| | | | | | | | | | overridden mandir) PR libffi/52223 * Makefile.am (FLAGS_TO_PASS): Define. * Makefile.in: Regenerate. From-SVN: r184592
* Correct date in ChangeLogKai Tietz2012-02-231-1/+1
| | | | From-SVN: r184527
* re PR libffi/52221 ([libffi] r183675,r184021 needs to be fixed.)Kai Tietz2012-02-233-4/+45
| | | | | | | | | | | | | PR libffi/52221 * 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. From-SVN: r184526
* re PR libffi/52221 ([libffi] r183675,r184021 needs to be fixed.)Kai Tietz2012-02-132-3/+23
| | | | | | | | | PR libffi/52221 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall support for X86_WIN32. (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement. From-SVN: r184155
* * src/sparc/v9.S (STACKFRAME): Bump to 176.Eric Botcazou2012-02-112-1/+5
| | | | From-SVN: r184129
* configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64 windows target.Kai Tietz2012-02-103-0/+24
| | | | | | | | * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64 windows target. * configure: Regenerated. From-SVN: r184103
* prep_cif.c (ffi_prep_cif): Allow for X86_WIN32 also FFI_THISCALL.Kai Tietz2012-02-086-1/+143
| | | | | | | | | | | | | | * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32 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. From-SVN: r184021
* ffi.c (ffi_call_win32): Add new argument to prototype for specify ↵Kai Tietz2012-01-2911-19/+596
| | | | | | | | | | | | | | | | | | | | | | | calling-convention. * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new 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. From-SVN: r183676
* sysv.S (ffi_call_SYSV): Properly test for plain mc68000.Andreas Schwab2012-01-232-8/+13
| | | | | | | * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain mc68000. Test for __HAVE_68881__ in addition to __MC68881__. From-SVN: r183451
* re PR target/48496 ('asm' operand requires impossible reload)Jakub Jelinek2012-01-192-3/+12
| | | | | | | PR rtl-optimization/48496 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations. From-SVN: r183301
* Build 64-bit libffi multilib for i?86-linuxRainer Orth2012-01-093-2/+7
| | | | | | | * configure.ac (i?86-*-*): Set TARGET to X86_64. * configure: Regenerate. From-SVN: r183017
* re PR libffi/50051 (MIPS libffi does not compile for mips64octeon-linux-gnu)Andrew Pinski2011-12-071-0/+1
| | | | | | | | | 2011-12-07 Andrew Pinski <apinski@cavium.com> PR libffi/50051 * src/mips/n32.S: Add ".set mips4". From-SVN: r182092
* n32.S: Add ".set mips4".Andrew Pinski2011-12-072-0/+5
| | | | | | | | 2011-12-07 Andrew Pinski <apinski@cavium.com> * src/mips/n32.S: Add ".set mips4". From-SVN: r182091
* Additional fixes for FreeBSD-10 build:Andreas Tobler2011-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. From-SVN: r181593
* configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.Richard Henderson2011-11-104-19/+16
| | | | | | | * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check. * configure, aclocal.m4: Rebuild. From-SVN: r181266
* re PR libffi/49594 (bootstrap failure in libffi:darwin_closure for ↵Iain Sandoe2011-09-042-3/+10
| | | | | | | | | | powerpc-darwin8) PR libffi/49594 * src/powerpc/darwin_closure.S (stubs): Make the stub binding helper reference track the architecture pointer size. From-SVN: r178512
* ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly instructions.Andrew Haley2011-08-253-3/+14
| | | | | | | | | | 2011-08-25 Andrew Haley <aph@redhat.com> * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly instructions. * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead. From-SVN: r178060
* ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.Andrew Haley2011-07-112-1/+9
| | | | | | | | 2011-07-11 Andrew Haley <aph@redhat.com> * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache. From-SVN: r176172
* cls_double_va.c: Move PR number to comment.Rainer Orth2011-06-293-2/+7
| | | | | | | * testsuite/libffi.call/cls_double_va.c: Move PR number to comment. * testsuite/libffi.call/cls_longdouble_va.c: Likewise. From-SVN: r175632
* re PR libffi/46660 (cls_double_va.c, cls_longdouble_va.c FAIL on IRIX 6.5)Rainer Orth2011-06-293-0/+9
| | | | | | | | | PR libffi/46660 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on mips-sgi-irix6*. * testsuite/libffi.call/cls_longdouble_va.c: Likewise. From-SVN: r175618
* huge_struct.c (test_large_fn): Use PRIu8, PRId8 instead of %hhu, %hhd.Rainer Orth2011-06-143-16/+28
| | | | | | | | | | * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8, PRId8 instead of %hhu, %hhd. * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8, PRIu8): Define. [__sgi__] (PRId8, PRIu8): Define. From-SVN: r175032
* osf.S (UA_SI, [...]): Define.Rainer Orth2011-04-292-18/+46
| | | | | | | | | * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE): Define. Use them to handle ELF vs. ECOFF differences. [__osf__] (_GLOBAL__F_ffi_call_osf): Define. From-SVN: r173151
* Remove freebsd1 from libtool.m4 macros and config.rpath.Ralf Wildenhues2011-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. From-SVN: r170106
* re PR libffi/46661 (32-bit cls_pointer.c, cls_pointer_stack.c FAIL on IRIX 6.5)Rainer Orth2011-02-093-2/+9
| | | | | | | | | PR libffi/46661 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to uintptr_t first. * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise. From-SVN: r169963
* ffi.c: Add RTEMS support for cache flushing.Joel Sherrill2011-02-082-0/+46
| | | | | | | | | | | 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com> * 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. From-SVN: r169938
* ffi.c: Add RTEMS support for cache flushing.Joel Sherrill2011-02-081-0/+7
| | | | | | | | | | | 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com> * 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. From-SVN: r169937
* configure.ac: Add mips*-*-rtems* support.Joel Sherrill2011-02-084-2/+17
| | | | | | | | | | | 2011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com> * 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. From-SVN: r169936
* transpose_optimization_2.f90: Cleanup original dump.Uros Bizjak2011-02-071-2/+2
| | | | | | * gfortran.dg/transpose_optimization_2.f90: Cleanup original dump. From-SVN: r169876
* re PR target/40125 (libgcc_s DLL installed in wrong directory in cross ↵Dave Korn2011-01-263-4/+24
| | | | | | | | | | toolchain) PR target/40125 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs. * configure: Regenerate. From-SVN: r169272
* Update Copyright years for files modified in 2010.Jakub Jelinek2011-01-033-3/+3
| | | | From-SVN: r168438
* re PR libffi/29152 (64-bit darwin ppc port needed for libffi)Iain Sandoe2010-12-185-347/+1193
| | | | | | | | | | | | | | | libffi: PR libffi/29152 PR libffi/42378 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation, update comments. * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New, (FFI_TRAMPOLINE_SIZE): Update for Darwin64. * src/powerpc/darwin.S: Provide Darwin64 implementation, update comments. * src/powerpc/ffi_darwin.c: Likewise. From-SVN: r168016
* configure.ac (libffi_cv_as_ascii_pseudo_op): Use double backslashes.Rainer Orth2010-12-063-4/+11
| | | | | | | | | * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double backslashes. (libffi_cv_as_string_pseudo_op): Likewise. * configure: Regenerate. From-SVN: r167502
* sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.Chung-Lin Tang2010-12-032-74/+85
| | | | | | | | | | | 2010-12-03 Chung-Lin Tang <cltang@codesourcery.com> * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive. (ffi_closure_VFP): Same. (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp' directive. From-SVN: r167434
* ffitest.h [__sgi] (PRId64, PRIu64): Define.Rainer Orth2010-12-012-0/+25
| | | | | | | * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define. (PRIuPTR): Define. From-SVN: r167332