aboutsummaryrefslogtreecommitdiff
path: root/libffi
AgeCommit message (Collapse)AuthorFilesLines
2002-12-16Merge basic-improvements-branch to trunkZack Weinberg5-274/+287
From-SVN: r60174
2002-12-06ffi.h.in: Added FFI_STDCALL ffi_type enumeration for X86_WIN32.Ranjit Mathew5-5/+250
2002-11-10 Ranjit Mathew <rmathew@hotmail.com> * include/ffi.h.in: Added FFI_STDCALL ffi_type enumeration for X86_WIN32. * src/x86/win32.S: Added ffi_call_STDCALL function definition. * src/x86/ffi.c (ffi_call/ffi_raw_call): Added switch cases for recognising FFI_STDCALL and calling ffi_call_STDCALL if target is X86_WIN32. * src/ffitest.c (my_stdcall_strlen/stdcall_many): stdcall versions of the "my_strlen" and "many" test functions (for X86_WIN32). Added test cases to test stdcall invocation using these functions. From-SVN: r59878
2002-11-27* src/s390/sysv.S (.eh_frame section): Make section read-only.Ulrich Weigand2-2/+6
From-SVN: r59574
2002-11-26Fix Portable .NET bug with IA-64 pointer size.Jim Wilson2-1/+6
* src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64. From-SVN: r59541
2002-11-15s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.Ulrich Weigand2-8/+20
gcc/ChangeLog: * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. libffi/ChangeLog: * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding. From-SVN: r59134
2002-11-11* configure.in: Look for common files in the right place.DJ Delorie3-3/+8
From-SVN: r59039
2002-10-08java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret raw data as _Jv_word ↵Ulrich Weigand4-29/+102
values, not ffi_raw. * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret raw data as _Jv_word values, not ffi_raw. (ffi_java_ptrarray_to_raw): Likewise. (ffi_java_rvalue_to_raw): New function. (ffi_java_raw_call): Call it. (ffi_java_raw_to_rvalue): New function. (ffi_java_translate_args): Call it. * src/ffitest.c (closure_test_fn): Interpret return value as ffi_arg, not int. * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing FFI_TYPE_POINTER case. (ffi_closure_helper_SYSV): Likewise. Also, assume return values extended to word size. From-SVN: r57926
2002-10-02* src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.Andreas Jaeger2-2/+4
From-SVN: r57726
2002-10-01* include/ffi.h.in: Fix i386 win32 compilation.Bo Thorsen2-1/+5
From-SVN: r57691
2002-09-30configure.in: Add s390x-*-linux-* target.Ulrich Weigand8-636/+1030
* configure.in: Add s390x-*-linux-* target. * configure: Regenerate. * include/ffi.h.in: Define S390X for s390x targets. (FFI_CLOSURES): Define for s390/s390x. (FFI_TRAMPOLINE_SIZE): Likewise. (FFI_NATIVE_RAW_API): Likewise. * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390. * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x. * src/s390/ffi.c: Major rework of existing code. Add support for s390x targets. Add closure support. * src/s390/sysv.S: Likewise. From-SVN: r57646
2002-09-29* src/arm/sysv.S: Fix typo.Richard Earnshaw2-1/+5
From-SVN: r57627
2002-09-28sysv.S: If we don't have machine/asm.h and the pre-processor has defined...Richard Earnshaw2-0/+21
* src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor has defined __USER_LABEL_PREFIX__, then use it in CNAME. (ffi_call_SYSV): Handle soft-float. From-SVN: r57609
2002-09-27ffi.h.in: Fix multilib x86-64 support.Bo Thorsen2-15/+13
2002-09-27 Bo Thorsen <bo@suse.de> * include/ffi.h.in: Fix multilib x86-64 support. From-SVN: r57589
2002-09-23Makefile.am (all-multi): Fix multilib parallel build.Kaveh R. Ghazi3-2/+6
boehm-gc: * Makefile.am (all-multi): Fix multilib parallel build. libf2c: * Makefile.in (all): Fix multilib parallel build. libffi: * Makefile.am (all-multi): Fix multilib parallel build. libiberty: * Makefile.in (all): Fix multilib parallel build. libjava: * Makefile.am (all-multi): Fix multilib parallel build. libobjc: * Makefile.in (all): Fix multilib parallel build. libstdc++-v3: * Makefile.am (all-multi): Fix multilib parallel build. zlib: * Makefile.am (all-multi): Fix multilib parallel build. From-SVN: r57423
2002-08-14configure, configure: Rebuilt.Alexandre Oliva1-138/+174
* boehm-gc/configure, libf2c/configure: Rebuilt. * libffi/configure, libiberty/configure: Ditto. * libjava/configure, libobjc/configure: Ditto. * libstdc++-v3/configure, zlib/configure: Ditto. Merged from binutils: 2002-01-27 Daniel Jacobowitz <drow@mvista.com> From Steve Ellcey <sje@cup.hp.com>: * libtool.m4 (HPUX_IA64_MODE): Set to 32 or 64 based on ABI. (lt_cv_deplibs_check_method, lt_cv_file_magic_cmd, lt_cv_file_magic_test_file): Set to appropriate values for HP-UX IA64. * ltcf-c.sh (archive_cmds, hardcode_*): Ditto. * ltconfig (shlibpath_*, dynamic_linker, library_names_spec, soname_spec, sys_lib_search_path_spec): Ditto. From-SVN: r56270
2002-07-19configure.in (sh[34]*-*-linux*): Add brackets.Kaz Kojima3-2/+7
* configure.in (sh[34]*-*-linux*): Add brackets. * configure: Regenerate. From-SVN: r55589
2002-07-19Makefile.am: Add SH support.Kaz Kojima9-68/+1526
* Makefile.am: Add SH support. * Makefile.in: Regenerate. * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target. * configure: Regenerate. * include/ffi.h.in: Add SH support. * src/sh/ffi.c: New file. * src/sh/sysv.S: New file. * src/types.c: Add SH support. From-SVN: r55574
2002-07-19Forgot this file.Bo Thorsen1-4/+0
From-SVN: r55573
2002-07-19[multiple changes]Bo Thorsen17-160/+1174
2002-07-16 Bo Thorsen <bo@suse.de> * src/x86/ffi64.c: New file that adds x86-64 support. * src/x86/unix64.S: New file that handles argument setup for x86-64. * src/x86/sysv.S: Don't use this on x86-64. * src/x86/ffi.c: Don't use this on x86-64. Remove unused vars. * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation for x86-64. * src/ffitest.c (struct6): New test that tests a special case in the x86-64 ABI. (struct7): Likewise. (struct8): Likewise. (struct9): Likewise. (closure_test_fn): Silence warning about this when it's not used. (main): Add the new tests. (main): Fix a couple of wrong casts and silence some compiler warnings. * include/ffi.h.in: Add x86-64 ABI definition. * fficonfig.h.in: Regenerate. * Makefile.am: Add x86-64 support. * configure.in: Likewise. * Makefile.in: Regenerate. * configure: Likewise. 2002-06-24 Bo Thorsen <bo@suse.de> * src/types.c: Merge settings for similar architectures. Add x86-64 sizes and alignments. 2002-06-23 Bo Thorsen <bo@suse.de> * src/arm/ffi.c (ffi_prep_args): Remove unused vars. * src/sparc/ffi.c (ffi_prep_args_v8): Likewise. * src/mips/ffi.c (ffi_prep_args): Likewise. * src/m68k/ffi.c (ffi_prep_args): Likewise. From-SVN: r55571
2002-07-18Makefile.am (TARGET_SRC_MIPS_LINUX): New.H.J. Lu6-156/+197
2002-07-18 H.J. Lu (hjl@gnu.org) * Makefile.am (TARGET_SRC_MIPS_LINUX): New. (libffi_la_SOURCES): Support MIPS_LINUX. (libffi_convenience_la_SOURCES): Likewise. * Makefile.in: Regenerated. * configure.in (mips64*-*): Skip. (mips*-*-linux*): New. * configure: Regenerated. * src/mips/ffi.c: Include <sgidefs.h>. From-SVN: r55561
2002-06-06* src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.Ulrich Weigand2-3/+69
From-SVN: r54317
2002-05-28Fix last commit. Sorry about that.Bo Thorsen2-29/+25
From-SVN: r53946
2002-05-28* src/x86/ffi.c (ffi_prep_args): Remove reference to avn.Roger Sayle2-1/+5
From-SVN: r53942
2002-05-27ffi.c (ffi_prep_args): Remove unused variable and fix formatting.Bo Thorsen2-52/+51
2002-05-27 Bo Thorsen <bo@suse.de> * src/x86/ffi.c (ffi_prep_args): Remove unused variable and fix formatting. From-SVN: r53926
2002-05-13ffi_darwin.c (ffi_prep_closure): Declare fd at beginning of function (for ↵Andreas Tobler2-2/+8
older apple cc). 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch> * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at beginning of function (for older apple cc). From-SVN: r53430
2002-05-08configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at script entry, and ↵Alexandre Oliva3-135/+166
set LD to it when configuring multilibs. * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at script entry, and set LD to it when configuring multilibs. * configure: Rebuilt. From-SVN: r53278
2002-05-05configure.in (sparc64-*-netbsd*): Add target.Jason Thorpe3-4/+10
* configure.in (sparc64-*-netbsd*): Add target. (sparc-*-netbsdelf*): Likewise. * configure: Regenerate. From-SVN: r53171
2002-04-28configure.in, configure: Fix SPARC test in previous change.David S. Miller3-2/+6
2002-04-28 David S. Miller <davem@redhat.com> * configure.in, configure: Fix SPARC test in previous change. From-SVN: r52878
2002-04-29Makefile.am: Add Linux for S/390 support.Gerhard Tonn9-71/+867
2002-04-29 Gerhard Tonn <GerhardTonn@swol.de> * Makefile.am: Add Linux for S/390 support. * Makefile.in: Regenerate. * configure.in: Add Linux for S/390 support. * configure: Regenerate. * include/ffi.h.in: Add Linux for S/390 support. * src/s390/ffi.c: New file from libffi CVS tree. * src/s390/sysv.S: New file from libffi CVS tree. From-SVN: r52873
2002-04-28configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working %r_disp32().Jakub Jelinek6-0/+90
* configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working %r_disp32(). * src/sparc/v8.S: Use it. * src/sparc/v9.S: Likewise. * fficonfig.h.in: Rebuilt. * configure: Rebuilt. From-SVN: r52858
2002-04-08java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE correctly.Hans Boehm4-10/+44
* src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE correctly. * src/ia64/unix.S: Add unwind information. Fix comments. Save sp in a way that's compatible with unwind info. (ffi_call_unix): Correctly restore sp in all cases. * src/ia64/ffi.c: Add, fix comments. From-SVN: r52048
2002-04-08* src/sparc/v8.S: Make .eh_frame dependent on target word size.Jakub Jelinek2-6/+20
From-SVN: r52041
2002-04-07configure.in (alpha*-*-netbsd*): Add target.Jason Thorpe3-2/+7
* configure.in (alpha*-*-netbsd*): Add target. * configure: Regenerate. From-SVN: r51976
2002-04-04v8.S: Add unwind info.Jeff Sturm3-3/+85
* src/sparc/v8.S: Add unwind info. * src/sparc/v9.S: Likewise. From-SVN: r51873
2002-03-31configure.in (i*86-*-netbsdelf*): Don't disable libgcj.Krister Walfridsson3-63/+70
2002-03-30 Krister Walfridsson <cato@df.lth.se> * configure.in (i*86-*-netbsdelf*): Don't disable libgcj. libffi: 2002-03-30 Krister Walfridsson <cato@df.lth.se> * configure.in: Enable i*86-*-netbsdelf*. * configure: Rebuilt. From-SVN: r51620
2002-03-29re PR other/2620 (Filenames differ only in case)David Billinghurst3-16/+6
2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com> PR other/2620 * src/mips/n32.s: Delete * src/mips/o32.s: Delete From-SVN: r51537
2002-03-21configure.in: Enable alpha*-*-freebsd*.Loren J. Rittle3-2/+7
* configure.in: Enable alpha*-*-freebsd*. * configure: Rebuilt. From-SVN: r51143
2002-03-17Makefile.am: Define ffitest_OBJECTS.Bryce McKinlay3-5/+7
* Makefile.am: Define ffitest_OBJECTS. * Makefile.in: Rebuilt. From-SVN: r50904
2002-03-17Makefile.am: Make target library a convenience library.Bryce McKinlay3-90/+97
zlib: * Makefile.am: Make target library a convenience library. * Makefile.in: Rebuilt. libffi: * Makefile.am: libfficonvenience -> libffi_convenience. * Makefile.in: Rebuilt. boehm-gc: * Makefile.am: Make a convenience library. * Makefile.in: Rebuilt. libjava: Build a single libgcj.so, without separate gc and zlib libraries. * configure.in: Use convenience libraries for boehm-gc and zlib. Set SYS_ZLIBS if system zlib is used. * configure: Rebuilt. * Makefile.am: Use boehm-gc and zlib convenience libraries. * Makefile.in: Rebuilt. * libtool-version: Increment .so version number. From-SVN: r50900
2002-03-07- Add Darwin and AIX to supported platforms.David Edelsohn1-2/+2
From-SVN: r50414
2002-03-07Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.Andreas Tobler7-9/+816
2002-03-07 Andreas Tobler <toa@pop.agri.ch> David Edelsohn <edelsohn@gnu.org> * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files. (TARGET_SRC_POWERPC_AIX): Add aix_closure.S. (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S. * Makefile.in: Regenerate. * include/ffi.h.in: Add AIX and Darwin closure definitions. * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function. (flush_icache, flush_range): New functions. (ffi_closure_helper_DARWIN): New function. * src/powerpc/aix_closure.S: New file. * src/powerpc/darwin_closure.S: New file. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r50408
2002-02-24ffi.h.in: Add typedef for ffi_arg.Jeff Sturm3-5/+16
* include/ffi.h.in: Add typedef for ffi_arg. * src/ffitest.c (main): Declare rint with ffi_arg. From-SVN: r50006
2002-02-21ffi_darwin.c (ffi_prep_args): Skip appropriate number of GPRs for ↵Andreas Tobler2-6/+19
floating-point arguments. 2002-02-21 Andreas Tobler <toa@pop.agri.ch> * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate number of GPRs for floating-point arguments. From-SVN: r49934
2002-01-31Configure changes to enable cross compiling.Anthony Green4-155/+301
From-SVN: r49378
2002-01-18- Symmetrically define ffi_call_DARWIN for AIX.David Edelsohn2-0/+16
From-SVN: r48993
2002-01-18- Provide a null definition of _ffi_call_AIX so that Darwin link won't fail.David Edelsohn2-4/+14
From-SVN: r48989
2002-01-17Makefile.am (EXTRA_DIST): Add Darwin and AIX files.David Edelsohn8-80/+359
* Makefile.am (EXTRA_DIST): Add Darwin and AIX files. (TARGET_SRC_POWERPC_AIX): New. (POWERPC_AIX): New stanza. * Makefile.in: Regenerate. * configure.in: Add AIX case. * configure: Regenerate. * include/ffi.h.in (ffi_abi): Add FFI_AIX. * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame size. Fix "long double" support. (ffi_call): Add FFI_AIX case. * src/powerpc/aix.S: New. From-SVN: r48956
2001-10-09Implement Darwin PowerPC ABI.John Hornkvist9-123/+695
2001-10-09 John Hornkvist <john@toastedmarshmallow.com> Implement Darwin PowerPC ABI. * configure.in: Handle powerpc-*-darwin*. * Makefile.am: Set source files for POWERPC_DARWIN. * configure: Rebuilt. * Makefile.in: Rebuilt. * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for POWERPC_DARWIN. * src/powerpc/darwin.S: New file. * src/powerpc/ffi_darwin.c: New file. From-SVN: r46112
2001-10-07acinclude.m4: Fix spelling error of "separate" as "seperate".Joseph Myers2-1/+5
config: * acinclude.m4: Fix spelling error of "separate" as "seperate". gcc: * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c, genmultilib, toplev.c: Fix spelling errors of "separate" as "seperate", and corresponding spelling errors of related words. gcc/ada: * 5oosinte.adb: Fix spelling error of "separate" as "seperate". gcc/testsuite: * gcc.c-torture/unsorted/unsorted.exp, lib/file-format.exp: Fix spelling errors of "separate" as "seperate". libffi: * src/x86/ffi.c: Fix spelling error of "separate" as "seperate". libjava: * defineclass.cc, java/awt/image/ColorModel.java, java/awt/image/SampleModel.java, java/lang/Package.java, java/security/cert/X509Extension.java: Fix spelling errors of "separate" as "seperate", and corresponding spelling errors of related words. libstdc++-v3: * docs/html/22_locale/locale.html, docs/html/faq/index.html: Fix spelling errors of "separate" as "seperate", and corresponding spelling errors of related words. * docs/html/faq/index.txt: Regenerate. From-SVN: r46063
2001-07-16sysv.S: Avoid gas-only .balign directive.Rainer Orth2-17/+21
* src/x86/sysv.S: Avoid gas-only .balign directive. Use C style comments. From-SVN: r44046