libstdc++: Prefer posix_memalign for aligned-new [PR113258]
[official-gcc.git] / libffi / ChangeLog.libffi
blob8de1ca75f1b921d73dcdda417c7c5e123d2365db
1 Libffi change logs used to be maintained in separate ChangeLog files.
2 These days we generate them directly from the git commit messages.
3 The old ChangeLog files are saved here in order to maintain the historical
4 record.
6 =============================================================================
7 From the old ChangeLog.libffi-3.1 file...
9 2014-03-16  Josh Triplett  <josh@joshtriplett.org>
11         * ChangeLog: Archive to ChangeLog.libffi-3.1 and delete.  Future
12         changelogs will come from git, with autogenerated snapshots shipped in
13         distributed tarballs.
15 2014-03-16  Josh Triplett  <josh@joshtriplett.org>
17         Add support for stdcall, thiscall, and fastcall on non-Windows
18         x86-32.
20         Linux supports the stdcall calling convention, either via
21         functions explicitly declared with the stdcall attribute, or via
22         code compiled with -mrtd which effectively makes stdcall the
23         default.
25         This introduces FFI_STDCALL, FFI_THISCALL, and FFI_FASTCALL on
26         non-Windows x86-32 platforms, as non-default calling conventions.
28         * Makefile.am: Compile in src/x86/win32.S on non-Windows x86-32.
29         * src/x86/ffitarget.h: Add FFI_STDCALL, FFI_THISCALL, and
30         FFI_FASTCALL on non-Windows x86-32.  Increase trampoline size to
31         accomodate these calling conventions, and unify some ifdeffery.
32         * src/x86/ffi.c: Add support for FFI_STDCALL, FFI_THISCALL, and
33         FFI_FASTCALL on non-Windows x86-32 platforms; update ifdeffery.
34         * src/x86/win32.S: Support compiling on non-Windows x86-32
35         platforms.  On those platforms, avoid redefining the SYSV symbols
36         already provided by src/x86/sysv.S.
37         * testsuite/libffi.call/closure_stdcall.c: Run on non-Windows.
38         #define __stdcall if needed.
39         * testsuite/libffi.call/closure_thiscall.c: Run on non-Windows.
40         #define __fastcall if needed.
41         * testsuite/libffi.call/fastthis1_win32.c: Run on non-Windows.
42         * testsuite/libffi.call/fastthis2_win32.c: Ditto.
43         * testsuite/libffi.call/fastthis3_win32.c: Ditto.
44         * testsuite/libffi.call/many2_win32.c: Ditto.
45         * testsuite/libffi.call/many_win32.c: Ditto.
46         * testsuite/libffi.call/strlen2_win32.c: Ditto.
47         * testsuite/libffi.call/strlen_win32.c: Ditto.
48         * testsuite/libffi.call/struct1_win32.c: Ditto.
49         * testsuite/libffi.call/struct2_win32.c: Ditto.
51 2014-03-16  Josh Triplett  <josh@joshtriplett.org>
53         * prep_cif.c: Remove unnecessary ifdef for X86_WIN32.
54         ffi_prep_cif_core had a special case for X86_WIN32, checking for
55         FFI_THISCALL in addition to the FFI_FIRST_ABI-to-FFI_LAST_ABI
56         range before returning FFI_BAD_ABI.  However, on X86_WIN32,
57         FFI_THISCALL already falls in that range, making the special case
58         unnecessary.  Remove it.
60 2014-03-16  Josh Triplett  <josh@joshtriplett.org>
62         * testsuite/libffi.call/closure_stdcall.c,
63         testsuite/libffi.call/closure_thiscall.c: Remove fragile stack
64         pointer checks.  These files included inline assembly to save the
65         stack pointer before and after the call, and compare the values.
66         However, compilers can and do leave the stack in different states
67         for these two pieces of inline assembly, such as by saving a
68         temporary value on the stack across the call; observed with gcc
69         -Os, and verified as spurious through careful inspection of
70         disassembly.
72 2014-03-16  Josh Triplett  <josh@joshtriplett.org>
74         * testsuite/libffi.call/many.c: Avoid spurious failure due to
75         excess floating-point precision.
76         * testsuite/libffi.call/many_win32.c: Ditto.
78 2014-03-16  Josh Triplett <josh@joshtriplett.org>
80         * libtool-ldflags: Re-add.
82 2014-03-16  Josh Triplett <josh@joshtriplett.org>
84         * Makefile.in, aclocal.m4, compile, config.guess, config.sub,
85         configure, depcomp, include/Makefile.in, install-sh,
86         libtool-ldflags, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4,
87         m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4,
88         man/Makefile.in, mdate-sh, missing, testsuite/Makefile.in: Delete
89         autogenerated files from version control.
90         * .gitignore: Add autogenerated files.
91         * autogen.sh: New script to generate the autogenerated files.
92         * README: Document requirement to run autogen.sh when building
93         directly from version control.
94         * .travis.yml: Run autogen.sh
96 2014-03-14  Anthony Green <green@moxielogic.com>
98         * configure, Makefile.in: Rebuilt.
100 2014-03-10  Mike Hommey <mh+mozilla@glandium.org>
102         * configure.ac: Allow building for mipsel with Android NDK r8.
103         * Makefile.am (AM_MAKEFLAGS): Replace double quotes with single
104         quotes.
106 2014-03-10  Landry Breuil <landry@openbsd.org>
108         * configure.ac: Ensure the linker supports @unwind sections in libffi.
110 2014-03-01  Anthony Green  <green@moxielogic.com>
112         * Makefile.am (EXTRA_DIST): Replace old scripts with
113         generate-darwin-source-and-headers.py.
114         * Makefile.in: Rebuilt.
116 2014-02-28  Anthony Green  <green@moxielogic.com>
118         * Makefile.am (AM_CFLAGS): Reintroduce missing -DFFI_DEBUG for
119         --enable-debug builds.
120         * Makefile.in: Rebuilt.
122 2014-02-28  Makoto Kato  <m_kato@ga2.so-net.ne.jp>
124         * src/closures.c: Fix build failure when using clang for Android.
126 2014-02-28  Marcin Wojdyr  <wojdyr@gmail.com>
128         * libffi.pc.in (toolexeclibdir): use -L${toolexeclibdir} instead
129         of -L${libdir}.
131 2014-02-28  Paulo Pizarro  <paulo.pizarro@gmail.com>
133         * src/bfin/sysv.S: Calling functions in shared libraries requires
134         considering the GOT.
136 2014-02-28  Josh Triplett  <josh@joshtriplett.org>
138         * src/x86/ffi64.c (classify_argument): Handle case where
139         FFI_TYPE_LONGDOUBLE == FFI_TYPE_DOUBLE.
141 2014-02-28  Anthony Green  <green@moxielogic.com>
143         * ltmain.sh: Generate with libtool-2.4.2.418.
144         * m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Ditto.
145         * configure: Rebuilt.
147 2014-02-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
149         * configure.ac (AC_ARG_ENABLE struct): Fix typo in help
150         message.
151         (AC_ARG_ENABLE raw_api): Ditto.
152         * configure, fficonfig.h.in: Rebuilt.
154 2014-02-28  Will Newton  <will.newton@linaro.org>
156         * src/arm/sysv.S: Initialize IP register with FP.
158 2014-02-28  Yufeng Zhang  <yufeng.zhang@arm.com>
160         * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
161         main CFA reg; update cfi_rel_offset.
163 2014-02-15  Marcus Comstedt  <marcus@mc.pp.se>
165         * src/powerpc/ffi_linux64.c, src/powerpc/linux64_closure.S: Remove
166         assumption on contents of r11 in closure.
168 2014-02-09  Heiher  <r@hev.cc>
170         * src/mips/n32.S: Fix call floating point va function.
172 2014-01-21  Zachary Waldowski  <zach@waldowski.me>
174         * src/aarch64/ffi.c: Fix missing semicolons on assertions under
175         debug mode.
177 2013-12-30  Zachary Waldowski  <zach@waldowski.me>
179         * .gitignore: Exclude darwin_* generated source and build_* trees.
180         * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
181         previous prototype warnings.
182         * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
183         * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
184         and the native use of size_t for malloc on platforms
185         * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
186         ARM_FUNC_START.
187         * generate-osx-source-and-headers.py: Remove.
188         * build-ios.sh: Remove.
189         * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
190         x86_64+aarch64 pieces in library.  Export headers properly.
191         * src/x86/ffi64.c: More Clang warning clean-ups.
192         * src/closures.c (open_temp_exec_file_dir): Use size_t.
193         * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
194         * src/aarch64/sysv.S: Use CNAME for global symbols.  Only use
195         .size for ELF targets.
196         * src/aarch64/ffi.c: Clean up for double == long double.  Clean up
197         from Clang warnings.  Use Clang cache invalidation builtin.  Use
198         size_t in place of unsigned in many places.  Accommodate for
199         differences in Apple AArch64 ABI.
201 2013-12-02  Daniel Rodríguez Troitiño  <drodrigueztroitino@yahoo.es>
203         * generate-darwin-source-and-headers.py: Clean up, modernize,
204         merged version of previous scripts.
206 2013-11-21  Anthony Green  <green@moxielogic.com>
208         * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
209         man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
211 2013-11-21  Alan Modra  <amodra@gmail.com>
213         * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
214         (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
215         * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
216         * include/ffi.h.in (ffi_prep_types): Declare.
217         * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
218         * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
219         HAVE_LONG_DOUBLE_VARIANT.
220         * src/powerpc/ffi_powerpc.h: New file.
221         * src/powerpc/ffi.c: Split into..
222         * src/powerpc/ffi_sysv.c: ..new file, and..
223         * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
224         * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
225         selection as bits controlling features.
226         * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
227         than __powerpc64__.
228         * src/powerpc/linux64_closure.S: Likewise.
229         * src/powerpc/ppc_closure.S: Likewise.  Move .note.FNU-stack
230         inside guard.
231         * src/powerpc/sysv.S: Likewise.
232         * configure: Regenerate.
233         * fficonfig.h.in: Regenerate.
234         * Makefile.in: Regenerate.
236 2013-11-20  Alan Modra  <amodra@gmail.com>
238         * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
239         NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
240         32-bit versions for 64-bit code.
241         * src/powerpc/linux64_closure.S: Don't use the return value area
242         as a parameter save area on ELFv2.
244 2013-11-18  Iain Sandoe  <iain@codesourcery.com>
246         * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
247         * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
248         labels.
250 2013-11-18  Anthony Green  <green@moxielogic.com>
252         * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
253         function.
254         * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
255         to appease compiler.
256         Thanks for Gregory P. Smith <greg@krypto.org>.
258 2013-11-18  Anthony Green  <green@moxielogic.com>
260         * README (tested): Mention PowerPC ELFv2.
262 2013-11-16  Alan Modra  <amodra@gmail.com>
264         * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
265         Don't bl .Luint128.
267 2013-11-16  Alan Modra  <amodra@gmail.com>
269         * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
270         test to select parameter save sizing for ELFv2 vs. ELFv1.
271         * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
272         FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
273         (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
274         * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
275         (discover_homogeneous_aggregate): New function.
276         (ffi_prep_args64): Adjust start of param save area for ELFv2.
277         Handle homogenous floating point struct parms.
278         (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
279         Handle ELFv2 return values.  Set FLAG_ARG_NEEDS_PSAVE.  Handle
280         homogenous floating point structs.
281         (ffi_call): Increase size of smst_buffer for ELFv2.  Handle ELFv2.
282         (flush_icache): Compile for ELFv2.
283         (ffi_prep_closure_loc): Set up ELFv2 trampoline.
284         (ffi_closure_helper_LINUX64): Don't return all structs directly
285         to caller.  Handle homogenous floating point structs.  Handle
286         ELFv2 struct return values.
287         * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
288         ELFv2.  Adjust toc save location.  Call function pointer using
289         r12.  Handle FLAG_RETURNS_SMST.  Don't predict branches.
290         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
291         for ELFv2.  Define ELFv2 versions of STACKFRAME, PARMSAVE, and
292         RETVAL.  Handle possibly missing parameter save area.  Handle
293         ELFv2 return values.
294         (.note.GNU-stack): Move inside outer #ifdef.
296 2013-11-16  Alan Modra  <amodra@gmail.com>
298         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
299         change.  Do not consume an int arg when returning a small struct
300         for FFI_SYSV ABI.
301         (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
302         Properly copy bounce buffer to destination.
303         * src/powerpc/sysv.S: Revert 2013-02-08 change.
304         * src/powerpc/ppc_closure.S: Remove stray '+'.
306 2013-11-16  Alan Modra  <amodra@gmail.com>
308         * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
309         according to __STRUCT_PARM_ALIGN__.
310         (ffi_prep_cif_machdep_core): Likewise.
311         (ffi_closure_helper_LINUX64): Likewise.
313 2013-11-16  Alan Modra  <amodra@gmail.com>
315         * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
316         (.note.GNU-stack): Move inside outer #ifdef.
317         * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
318         RETVAL): Define and use throughout.
319         (ffi_closure_LINUX64): Save fprs before buying stack.
320         (.note.GNU-stack): Move inside outer #ifdef.
322 2013-11-16  Alan Modra  <amodra@gmail.com>
324         * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
325         (FFI_EXTRA_CIF_FIELDS): Define.
326         * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
327         ABI, not to both fpr and param save area.
328         (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
329         Keep initial flags.  Formatting.  Remove dead FFI_LINUX_SOFT_FLOAT
330         code.
331         (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
332         (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
333         not to both fpr and parameter save areas.
335         * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
336         function cast and don't call ffi_prep_cif.
337         * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
339 2013-11-15  Andrew Haley  <aph@redhat.com>
341         * doc/libffi.texi (Closure Example): Fix the sample code.
342         * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
344 2013-11-15  Andrew Haley  <aph@redhat.com>
346         * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
347         * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
348         * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
349         * testsuite/libffi.call/va_1.c (main): Likewise.
351 2013-11-14  David Schneider  <david.schneider@bivab.de>
353         * src/arm/ffi.c: Fix register allocation for mixed float and
354         doubles.
355         * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
356         for many mixed float and double arguments.
358 2013-11-13  Alan Modra  <amodra@gmail.com>
360         * doc/libffi.texi (Simple Example): Correct example code.
361         * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
363 2013-11-13  Anthony Green  <green@moxielogic.com>
365         * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
366         based build. (Thanks to tmr111116 on github)
368 2013-11-09  Anthony Green  <green@moxielogic.com>
370         * m4/libtool.m4: Refresh.
371         * configure, Makefile.in: Rebuilt.
372         * README: Add more notes about next release.
374 2013-11-09  Shigeharu TAKENO  <shige@iee.niit.ac.jp>
376         * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
377         UltraSPARC-IIi as ultrasparc3.
379 2013-11-06  Mark Kettenis  <kettenis@gnu.org>
381         * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
382         16-bytes.
384 2013-11-06  Konstantin Belousov <kib@freebsd.org>
386         * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
387         source as not requiring executable stack.
389 2013-11-02  Anthony Green  <green@moxielogic.com>
391         * doc/libffi.texi (The Basics): Clarify return value buffer size
392         requirements.  Also, NULL result buffer pointers are no longer
393         supported.
394         * doc/libffi.info: Rebuilt.
396 2013-11-02  Mischa Jonker  <mjonker@synopsys.com>
398         * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
399         * Makefile.in: Rebuilt.
401 2013-11-02  David Schneider  <david.schneider@bivab.de>
403         * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
404         * testsuite/libffi.call/many_mixed.c: New file.
405         * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
407 2013-11-02  Vitaly Budovski
409         * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
411 2013-10-23  Mark H Weaver  <mhw@netris.org>
413         * src/mips/ffi.c: Fix handling of uint32_t arguments on the
414         MIPS N32 ABI.
416 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
418         * README: Add Nios II to table of supported platforms.
419         * Makefile.am (EXTRA_DIST): Add nios2 files.
420         (nodist_libffi_la_SOURCES): Likewise.
421         * Makefile.in: Regenerated.
422         * configure.ac (nios2*-linux*): New host.
423         (NIOS2): Add AM_CONDITIONAL.
424         * configure: Regenerated.
425         * src/nios2/ffi.c: New.
426         * src/nios2/ffitarget.h: New.
427         * src/nios2/sysv.S: New.
428         * src/prep_cif.c (initialize_aggregate): Handle extra structure
429         alignment via FFI_AGGREGATE_ALIGNMENT.
430         (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
432 2013-10-10  Sandra Loosemore  <sandra@codesourcery.com>
434         * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
435         Fix uninitialized variable.
437 2013-10-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
439         * testsuite/libffi.call/many.c (many): Replace * with +.
441 2013-10-08  OndÅ™ej Bílka  <neleai@seznam.cz>
443         * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
444         src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
445         src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
446         src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
447         src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
448         src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
449         spelling errors.
451 2013-10-08  Anthony Green  <green@moxielogic.com>
453         * aclocal.m4, compile, config.guess, config.sub, depcomp,
454         install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
455         * configure.ac: Update version to 3.0.14-rc0.
456         * Makefile.in, configure, Makefile.in, include/Makefile.in,
457         man/Makefile.in, testsuite/Makefile.in: Rebuilt.
458         * README: Mention M88K and VAX.
460 2013-07-15  Miod Vallat  <miod@openbsd.org>
462         * Makefile.am,
463         configure.ac,
464         src/m88k/ffi.c,
465         src/m88k/ffitarget.h,
466         src/m88k/obsd.S,
467         src/vax/elfbsd.S,
468         src/vax/ffi.c,
469         src/vax/ffitarget.h: Add m88k and vax support.
471 2013-06-24 Alan Modra  <amodra@gmail.com>
473         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
474         before statements.
475         (ffi_prep_args64): Support little-endian.
476         (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
477         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
478         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
480 2013-06-12  Mischa Jonker  <mjonker@synopsys.com>
482          * configure.ac: Add support for ARC.
483          * Makefile.am: Likewise.
484          * README: Add ARC details.
485          * src/arc/arcompact.S: New.
486          * src/arc/ffi.c: Likewise.
487          * src/arc/ffitarget.h: Likewise.
489 2013-03-28  David Schneider  <david.schneider@bivab.de>
491          * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
492          * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
493          * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
494          mixed arguments, many doubles.
495          * testsuite/libffi.call/many_double.c: testcase for calling a function using
496          more than 8 doubles.
497          * testcase/libffi.call/many.c: use absolute value to check result against an
498          epsilon
500 2013-03-17  Anthony Green  <green@moxielogic.com>
502         * README: Update for 3.0.13.
503         * configure.ac: Ditto.
504         * configure: Rebuilt.
505         * doc/*: Update version.
507 2013-03-17  Dave Korn  <dave.korn.cygwin@gmail.com>
509         * src/closures.c (is_emutramp_enabled
510         [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
511         enclosing #if scope.
513 2013-03-17  Anthony Green  <green@moxielogic.com>
515         * configure.ac: Only modify toolexecdir in certain cases.
516         * configure: Rebuilt.
518 2013-03-16  Gilles Talis  <gilles.talis@gmail.com>
520         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
521         fparg_count,etc on __NO_FPRS__ targets.
523 2013-03-16  Alan Hourihane  <alanh@fairlite.co.uk>
525         * src/m68k/sysv.S (epilogue): Don't use extb instruction on
526         m680000 machines.
528 2013-03-16  Alex Gaynor <alex.gaynor@gmail.com>
530         * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
532 2013-03-13  Markos Chandras <markos.chandras@imgtec.com>
534         * configure.ac: Add support for Imagination Technologies Meta.
535         * Makefile.am: Likewise.
536         * README: Add Imagination Technologies Meta details.
537         * src/metag/ffi.c: New.
538         * src/metag/ffitarget.h: Likewise.
539         * src/metag/sysv.S: Likewise.
541 2013-02-24  Andreas Schwab  <schwab@linux-m68k.org>
543         * doc/libffi.texi (Structures): Fix missing category argument of
544         @deftp.
546 2013-02-11  Anthony Green <green@moxielogic.com>
548         * configure.ac: Update release number to 3.0.12.
549         * configure: Rebuilt.
550         * README: Update release info.
552 2013-02-10  Anthony Green <green@moxielogic.com>
554         * README: Add Moxie.
555         * src/moxie/ffi.c: Created.
556         * src/moxie/eabi.S: Created.
557         * src/moxie/ffitarget.h: Created.
558         * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
559         * Makefile.in: Rebuilt.
560         * configure.ac: Add Moxie.
561         * configure: Rebuilt.
562         * testsuite/libffi.call/huge_struct.c: Disable format string
563         warnings for moxie*-*-elf tests.
565 2013-02-10  Anthony Green <green@moxielogic.com>
567         * Makefile.am (LTLDFLAGS): Fix reference.
568         * Makefile.in: Rebuilt.
570 2013-02-10  Anthony Green <green@moxielogic.com>
572         * README: Update supported platforms.  Update test results link.
574 2013-02-09  Anthony Green <green@moxielogic.com>
576         * testsuite/libffi.call/negint.c: Remove forced -O2.
577         * testsuite/libffi.call/many2.c (foo): Remove GCCism.
578         * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
580         * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
581         closure return type fix developed by Martin v. Löwis for cpython
582         fork.
584 2013-02-08  Andreas Tobler  <andreast@fgznet.ch>
586         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
587         support.
588         * src/powerpc/sysv.S: Ditto.
590 2013-02-08  Anthony Green <green@moxielogic.com>
592         * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
593         arm*-*-*.
595 2013-02-08  Anthony Green <green@moxielogic.com>
597         * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
599 2013-02-08  Matthias Klose  <doko@ubuntu.com>
601         * man/ffi_prep_cif.3: Clean up for debian linter.
603 2013-02-08  Peter Bergner  <bergner@vnet.ibm.com>
605         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
606         on the stack.
608 2013-02-08  Anthony Green <green@moxielogic.com>
610         * Makefile.am (EXTRA_DIST): Add missing files.
611         * testsuite/Makefile.am (EXTRA_DIST): Ditto.
612         * Makefile.in: Rebuilt.
614 2013-02-08  Anthony Green <green@moxielogic.com>
616         * configure.ac: Move sparc asm config checks to within functions
617         for compatibility with sun tools.
618         * configure: Rebuilt.
619         * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
620         systems.
621         * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
622         flusher.
624 2013-02-08  Nathan Rossi <nathan.rossi@xilinx.com>
626         * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
627         small big-endian structures.
628         (ffi_prep_args): Ditto.
630 2013-02-07  Anthony Green <green@moxielogic.com>
632         * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
633         (effectively hiding ffi_call_v8).
635 2013-02-07  Anthony Green <green@moxielogic.com>
637         * configure.ac: Update bug reporting address.
638         * configure.in: Rebuild.
640         * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
641         Sun compiler.
642         * src/sparc/ffi.c (ffi_call): Remove warning.
643         Call ffi_flush_icache for non-GCC builds.
644         (ffi_prep_closure_loc): Use ffi_flush_icache.
646         * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
647         * Makefile.in: Rebuilt.
648         * libtool-ldflags: New file.
650 2013-02-07  Daniel Schepler <dschepler@gmail.com>
652         * configure.ac: Correctly identify x32 systems as 64-bit.
653         * m4/libtool.m4: Remove libtool expr error.
654         * aclocal.m4, configure: Rebuilt.
656 2013-02-07  Anthony Green <green@moxielogic.com>
658         * configure.ac: Fix GCC usage test.
659         * configure: Rebuilt.
660         * README: Mention LLVM/GCC x86_64 issue.
661         * testsuite/Makefile.in: Rebuilt.
663 2013-02-07  Anthony Green <green@moxielogic.com>
665         * testsuite/libffi.call/cls_double_va.c (main): Replace // style
666         comments with /* */ for xlc compiler.
667         * testsuite/libffi.call/stret_large.c (main): Ditto.
668         * testsuite/libffi.call/stret_large2.c (main): Ditto.
669         * testsuite/libffi.call/nested_struct1.c (main): Ditto.
670         * testsuite/libffi.call/huge_struct.c (main): Ditto.
671         * testsuite/libffi.call/float_va.c (main): Ditto.
672         * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
673         * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
674         * testsuite/libffi.call/cls_pointer.c (main): Ditto.
675         * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
677 2013-02-06  Anthony Green <green@moxielogic.com>
679         * man/ffi_prep_cif.3: Clean up for debian lintian checker.
681 2013-02-06  Anthony Green <green@moxielogic.com>
683         * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
684         * Makefile.in: Rebuild.
686 2013-02-02  Mark H Weaver <mhw@netris.org>
688         * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
689         via general purpose registers.
691 2013-01-21  Nathan Rossi <nathan.rossi@xilinx.com>
693         * README: Add MicroBlaze details.
694         * Makefile.am: Add MicroBlaze support.
695         * configure.ac: Likewise.
696         * src/microblaze/ffi.c: New.
697         * src/microblaze/ffitarget.h: Likewise.
698         * src/microblaze/sysv.S: Likewise.
700 2013-01-21  Nathan Rossi <nathan.rossi@xilinx.com>
701         * testsuite/libffi.call/return_uc.c: Fixed issue.
703 2013-01-21  Chris Zankel   <chris@zankel.net>
705         * README: Add Xtensa support.
706         * Makefile.am: Likewise.
707         * configure.ac: Likewise.
708         * Makefile.in Regenerate.
709         * configure: Likewise.
710         * src/prep_cif.c: Handle Xtensa.
711         * src/xtensa: New directory.
712         * src/xtensa/ffi.c: New file.
713         * src/xtensa/ffitarget.h: Ditto.
714         * src/xtensa/sysv.S: Ditto.
716 2013-01-11  Anthony Green  <green@moxielogic.com>
718         * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
719         comments with /* */ for xlc compiler.
720         * src/powerpc/aix.S (ffi_call_AIX): Ditto.
721         * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
722         deprecated inline function.
723         * testsuite/libffi.special/ffitestcxx.h: Ditto.
724         * README: Add update for AIX support.
726 2013-01-11  Anthony Green  <green@moxielogic.com>
728         * configure.ac: Robustify pc relative reloc check.
729         * m4/ax_cc_maxopt.m4: Don't -malign-double.  This is an ABI
730         changing option for 32-bit x86.
731         * aclocal.m4, configure: Rebuilt.
732         * README: Update supported target list.
734 2013-01-10  Anthony Green  <green@moxielogic.com>
736         * README (tested): Add Compiler column to table.
738 2013-01-10  Anthony Green  <green@moxielogic.com>
740         * src/x86/ffi64.c (struct register_args): Make sse array and array
741         of unions for sunpro compiler compatibility.
743 2013-01-10  Anthony Green  <green@moxielogic.com>
745         * configure.ac: Test target platform size_t size.  Handle both 32
746         and 64-bit builds for x86_64-* and i?86-* targets (allowing for
747         CFLAG option to change default settings).
748         * configure, aclocal.m4: Rebuilt.
750 2013-01-10  Anthony Green  <green@moxielogic.com>
752         * testsuite/libffi.special/special.exp: Only run exception
753         handling tests when using GNU compiler.
755         * m4/ax_compiler_vendor.m4: New file.
756         * configure.ac: Test for compiler vendor and don't use
757         AX_CFLAGS_WARN_ALL with the sun compiler.
758         * aclocal.m4, configure: Rebuilt.
760 2013-01-10  Anthony Green  <green@moxielogic.com>
762         * include/ffi_common.h: Don't use GCCisms to define types when
763         building with the SUNPRO compiler.
765 2013-01-10  Anthony Green  <green@moxielogic.com>
767         * configure.ac: Put local.exp in the right place.
768         * configure: Rebuilt.
770         * src/x86/ffi.c: Update comment about regparm function attributes.
771         * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
772         that all function arguments be passed on the stack (no regparm
773         support).
775 2013-01-08  Anthony Green  <green@moxielogic.com>
777         * configure.ac: Generate local.exp.  This sets CC_FOR_TARGET
778         when we are using the vendor compiler.
779         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
780         ../local.exp.
781         * configure, testsuite/Makefile.in: Rebuilt.
783         * testsuite/libffi.call/call.exp: Run tests with different
784         options, depending on whether or not we are using gcc or the
785         vendor compiler.
786         * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
787         whether or not we are building/testing with gcc.
789 2013-01-08  Anthony Green  <green@moxielogic.com>
791         * configure.ac: Switch x86 solaris target to X86 by default.
792         * configure: Rebuilt.
794 2013-01-08  Anthony Green  <green@moxielogic.com>
796         * configure.ac: Fix test for read-only eh_frame.
797         * configure: Rebuilt.
799 2013-01-08  Anthony Green  <green@moxielogic.com>
801         * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
802         when building with the GNU toolchain.
803         * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
804         compiler.
806 2013-01-07  Thorsten Glaser <tg@mirbsd.org>
808         * testsuite/libffi.call/cls_uchar_va.c,
809         testsuite/libffi.call/cls_ushort_va.c,
810         testsuite/libffi.call/va_1.c: Testsuite fixes.
812 2013-01-07  Thorsten Glaser <tg@mirbsd.org>
814         * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
815         (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
816         * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
818 2013-01-04  Anthony Green  <green@moxielogic.com>
820         * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
821         and -Wall.  This is set in the configure script after testing for
822         GCC.
823         * Makefile.in: Rebuilt.
825 2013-01-02  rofl0r <https://github.com/rofl0r>
827         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
828         when long double == double.
830 2013-01-02  Reini Urban  <rurban@x-ray.at>
832         * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
833         (required for shared libs on cygwin/mingw).
834         * Makefile.in: Rebuilt.
836 2012-10-31  Alan Modra  <amodra@gmail.co>
838         * src/powerpc/linux64_closure.S: Add new ABI support.
839         * src/powerpc/linux64.S: Likewise.
841 2012-10-30  Magnus Granberg  <zorry@gentoo.org>
842             Pavel Labushev  <pavel.labushev@runbox.ru>
844         * configure.ac: New options pax_emutramp
845         * configure, fficonfig.h.in: Regenerated
846         * src/closures.c: New function emutramp_enabled_check() and
847         checks.
849 2012-10-30  Frederick Cheung  <frederick.cheung@gmail.com>
851         * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
852         lion) and future version.
853         * configure: Rebuild.
855 2012-10-30  James Greenhalgh  <james.greenhalgh at arm.com>
856             Marcus Shawcroft  <marcus.shawcroft at arm.com>
858         * README: Add details of aarch64 port.
859         * src/aarch64/ffi.c: New.
860         * src/aarch64/ffitarget.h: Likewise.
861         * src/aarch64/sysv.S: Likewise.
862         * Makefile.am: Support aarch64.
863         * configure.ac: Support aarch64.
864         * Makefile.in, configure: Rebuilt.
866 2012-10-30  James Greenhalgh  <james.greenhalgh at arm.com>
867             Marcus Shawcroft  <marcus.shawcroft at arm.com>
869         * testsuite/lib/libffi.exp: Add support for aarch64.
870         * testsuite/libffi.call/cls_struct_va1.c: New.
871         * testsuite/libffi.call/cls_uchar_va.c: Likewise.
872         * testsuite/libffi.call/cls_uint_va.c: Likewise.
873         * testsuite/libffi.call/cls_ulong_va.c: Likewise.
874         * testsuite/libffi.call/cls_ushort_va.c: Likewise.
875         * testsuite/libffi.call/nested_struct11.c: Likewise.
876         * testsuite/libffi.call/uninitialized.c: Likewise.
877         * testsuite/libffi.call/va_1.c: Likewise.
878         * testsuite/libffi.call/va_struct1.c: Likewise.
879         * testsuite/libffi.call/va_struct2.c: Likewise.
880         * testsuite/libffi.call/va_struct3.c: Likewise.
882 2012-10-12  Walter Lee  <walt@tilera.com>
884         * Makefile.am: Add TILE-Gx/TILEPro support.
885         * configure.ac: Likewise.
886         * Makefile.in: Regenerate.
887         * configure: Likewise.
888         * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
889         * src/tile: New directory.
890         * src/tile/ffi.c: New file.
891         * src/tile/ffitarget.h: Ditto.
892         * src/tile/tile.S: Ditto.
894 2012-10-12  Matthias Klose  <doko@ubuntu.com>
896         * generate-osx-source-and-headers.py: Normalize whitespace.
898 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
900         * configure: Regenerated.
902 2012-08-26  Andrew Pinski  <apinski@cavium.com>
904         PR libffi/53014
905         * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
906         soft-float.
908 2012-08-08  Uros Bizjak  <ubizjak@gmail.com>
910         * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
911         just return FFI_BAD_ABI when things are wrong.
913 2012-07-18  H.J. Lu  <hongjiu.lu@intel.com>
915         PR libffi/53982
916         PR libffi/53973
917         * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
918         (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
920 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
922         * configure: Regenerated.
924 2012-05-05  Nicolas Lelong
926         * libffi.xcodeproj/project.pbxproj: Fixes.
927         * README: Update for iOS builds.
929 2012-04-23  Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
931         * configure.ac: Add Blackfin/sysv support
932         * Makefile.am: Add Blackfin/sysv support
933         * src/bfin/ffi.c:  Add Blackfin/sysv support
934         * src/bfin/ffitarget.h: Add Blackfin/sysv support
936 2012-04-11  Anthony Green  <green@moxielogic.com>
938         * Makefile.am (EXTRA_DIST): Add new script.
939         * Makefile.in: Rebuilt.
941 2012-04-11  Zachary Waldowski  <zwaldowski@gmail.com>
943         * generate-ios-source-and-headers.py,
944         libffi.xcodeproj/project.pbxproj: Support a Mac static library via
945         Xcode. Set iOS compatibility to 4.0.  Move iOS trampoline
946         generation into an Xcode "run script" phase.  Include both as
947         Xcode build scripts. Don't always regenerate config files.
949 2012-04-10  Anthony Green  <green@moxielogic.com>
951         * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
953 2012-04-06  Anthony Green  <green@moxielogic.com>
955         * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
956         * Makefile.in: Rebuilt.
958 2012-04-06  Mike Lewis  <mikelikespie@gmail.com>
960         * generate-ios-source-and-headers.py: New file.
961         * libffi.xcodeproj/project.pbxproj: New file.
962         * README: Update instructions on building iOS binary.
963         * build-ios.sh: Delete.
965 2012-04-06  Anthony Green  <green@moxielogic.com>
967         * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
968         compilers, then use it.
970 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
972         * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
974 2012-04-06  Anthony Green  <green@moxielogic.com>
976         * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
977         * testsuite/Makefile.in: Rebuilt.
979 2012-04-05  Zachary Waldowski  <zwaldowski@gmail.com>
981         * include/ffi.h.in: Add missing trampoline table fields.
982         * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
983         in CNAME.
984         * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
986 2012-04-02  Peter Bergner  <bergner@vnet.ibm.com>
988         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
989         Silence casting pointer to integer of different size warning.
990         Delete goto to previously deleted label.
991         (ffi_call): Silence possibly undefined warning.
992         (ffi_closure_helper_SYSV): Declare variable type.
994 2012-04-02  Peter Rosin  <peda@lysator.liu.se>
996         * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
997         value in the Intel version as is already done for the AT&T version.
998         (ffi_closure_SYSV): Likewise.
999         (ffi_closure_raw_SYSV): Likewise.
1000         (ffi_closure_STDCALL): Likewise.
1002 2012-03-29  Peter Rosin  <peda@lysator.liu.se>
1004         * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
1005         generation, fix the ENDP label and remove the surplus third arg
1006         from the 'lea' insn.
1008 2012-03-29  Peter Rosin  <peda@lysator.liu.se>
1010         * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
1011         visible outside the PROC, so that ffi_closure_raw_THISCALL can see
1012         it.  Also instruct the assembler to add a frame to the function.
1014 2012-03-23  Peter Rosin  <peda@lysator.liu.se>
1016         * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
1017         * Makefile.in: Rebuilt.
1018         * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
1019         to all data exports, when compiling libffi clients using MSVC.
1021 2012-03-29  Peter Rosin  <peda@lysator.liu.se>
1023         * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
1024         make it the default for MSVC.
1025         (FFI_TYPE_MS_STRUCT): New structure return convention.
1026         * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
1027         return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
1028         instead of an ordinary FFI_TYPE_STRUCT.
1029         (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
1030         (ffi_call): Likewise.
1031         (ffi_prep_incoming_args_SYSV): Likewise.
1032         (ffi_raw_call): Likewise.
1033         (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
1034         * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
1035         return a pointer to the result structure in eax and don't pop
1036         that pointer from the stack, the caller takes care of it.
1037         (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
1038         (ffi_closure_raw_SYSV): Likewise.
1040 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
1042         * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
1043         assembly version with Intel syntax.
1044         * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
1046 2012-03-23  Peter Rosin  <peda@lysator.liu.se>
1048         * testsuite/libffi.call/ffitest.h: Provide abstration of
1049         __attribute__((fastcall)) in the form of a __FASTCALL__
1050         define.  Define it to __fastcall for MSVC.
1051         * testsuite/libffi.call/fastthis1_win32.c: Use the above.
1052         * testsuite/libffi.call/fastthis2_win32.c: Likewise.
1053         * testsuite/libffi.call/fastthis3_win32.c: Likewise.
1054         * testsuite/libffi.call/strlen2_win32.c: Likewise.
1055         * testsuite/libffi.call/struct1_win32.c: Likewise.
1056         * testsuite/libffi.call/struct2_win32.c: Likewise.
1058 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
1060         * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
1061         frame on function entry, MASM adds one automatically.
1063 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
1065         * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
1066         bits in the MSVC headers.
1068 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
1070         * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
1071         with no declarations after statements.
1072         * testsuite/libffi.call/cls_16byte.c: Likewise.
1073         * testsuite/libffi.call/cls_18byte.c: Likewise.
1074         * testsuite/libffi.call/cls_19byte.c: Likewise.
1075         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1076         * testsuite/libffi.call/cls_20byte.c: Likewise.
1077         * testsuite/libffi.call/cls_20byte1.c: Likewise.
1078         * testsuite/libffi.call/cls_24byte.c: Likewise.
1079         * testsuite/libffi.call/cls_2byte.c: Likewise.
1080         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1081         * testsuite/libffi.call/cls_3byte1.c: Likewise.
1082         * testsuite/libffi.call/cls_3byte2.c: Likewise.
1083         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1084         * testsuite/libffi.call/cls_4byte.c: Likewise.
1085         * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
1086         * testsuite/libffi.call/cls_5byte.c: Likewise.
1087         * testsuite/libffi.call/cls_64byte.c: Likewise.
1088         * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
1089         * testsuite/libffi.call/cls_6byte.c: Likewise.
1090         * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
1091         * testsuite/libffi.call/cls_7byte.c: Likewise.
1092         * testsuite/libffi.call/cls_8byte.c: Likewise.
1093         * testsuite/libffi.call/cls_9byte1.c: Likewise.
1094         * testsuite/libffi.call/cls_9byte2.c: Likewise.
1095         * testsuite/libffi.call/cls_align_double.c: Likewise.
1096         * testsuite/libffi.call/cls_align_float.c: Likewise.
1097         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1098         * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
1099         * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1100         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1101         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1102         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1103         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1104         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1105         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1106         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1107         * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
1108         * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
1109         * testsuite/libffi.call/err_bad_typedef.c: Likewise.
1110         * testsuite/libffi.call/huge_struct.c: Likewise.
1111         * testsuite/libffi.call/nested_struct.c: Likewise.
1112         * testsuite/libffi.call/nested_struct1.c: Likewise.
1113         * testsuite/libffi.call/nested_struct10.c: Likewise.
1114         * testsuite/libffi.call/nested_struct2.c: Likewise.
1115         * testsuite/libffi.call/nested_struct3.c: Likewise.
1116         * testsuite/libffi.call/nested_struct4.c: Likewise.
1117         * testsuite/libffi.call/nested_struct5.c: Likewise.
1118         * testsuite/libffi.call/nested_struct6.c: Likewise.
1119         * testsuite/libffi.call/nested_struct7.c: Likewise.
1120         * testsuite/libffi.call/nested_struct8.c: Likewise.
1121         * testsuite/libffi.call/nested_struct9.c: Likewise.
1122         * testsuite/libffi.call/stret_large.c: Likewise.
1123         * testsuite/libffi.call/stret_large2.c: Likewise.
1124         * testsuite/libffi.call/stret_medium.c: Likewise.
1125         * testsuite/libffi.call/stret_medium2.c: Likewise.
1126         * testsuite/libffi.call/struct1.c: Likewise.
1127         * testsuite/libffi.call/struct1_win32.c: Likewise.
1128         * testsuite/libffi.call/struct2.c: Likewise.
1129         * testsuite/libffi.call/struct2_win32.c: Likewise.
1130         * testsuite/libffi.call/struct3.c: Likewise.
1131         * testsuite/libffi.call/struct4.c: Likewise.
1132         * testsuite/libffi.call/struct5.c: Likewise.
1133         * testsuite/libffi.call/struct6.c: Likewise.
1134         * testsuite/libffi.call/struct7.c: Likewise.
1135         * testsuite/libffi.call/struct8.c: Likewise.
1136         * testsuite/libffi.call/struct9.c: Likewise.
1137         * testsuite/libffi.call/testclosure.c: Likewise.
1139 2012-03-21  Peter Rosin  <peda@lysator.liu.se>
1141         * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
1142         printing doubles (%lf is for long doubles).
1143         (main): Likewise.
1145 2012-03-21  Peter Rosin  <peda@lysator.liu.se>
1147         * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1148         (set_ld_library_path_env_vars): Add the library search dir to PATH
1149         (and save PATH for later).
1150         (restore_ld_library_path_env_vars): Restore PATH.
1152 2012-03-21  Peter Rosin  <peda@lysator.liu.se>
1154         * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1155         (set_ld_library_path_env_vars): Add the library search dir to PATH
1156         (and save PATH for later).
1157         (restore_ld_library_path_env_vars): Restore PATH.
1159 2012-03-20  Peter Rosin  <peda@lysator.liu.se>
1161         * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1162         * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1163         visible outside the PROC, so that ffi_closure_THISCALL can see it.
1165 2012-03-20  Peter Rosin  <peda@lysator.liu.se>
1167         * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1168         * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1169         visible outside the PROC, so that ffi_closure_THISCALL can see it.
1171 2012-03-19  Alan Hourihane  <alanh@fairlite.co.uk>
1173         * src/m68k/ffi.c: Add MINT support.
1174         * src/m68k/sysv.S: Ditto.
1176 2012-03-06  Chung-Lin Tang  <cltang@codesourcery.com>
1178         * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1179         ffi_call_VFP().
1180         (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1181         ffi_closure_VFP.
1182         * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1184 2012-03-19  chennam  <csit@axway.com>
1186         * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1187         support.
1189 2012-03-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1191         * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1192         just return FFI_BAD_ABI when things are wrong.
1193         * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1195 2012-03-09  David Edelsohn  <dje.gcc@gmail.com>
1197         * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1198         change to return value of ffi_closure_helper_DARWIN and load type
1199         from return type.
1201 2012-03-03  H.J. Lu  <hongjiu.lu@intel.com>
1203         * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1204         long.
1205         (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1206         (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1207         first.
1209         * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1210         (ffi_arg): Set to unsigned long long for x32.
1211         (ffi_sarg): Set to long long for x32.
1213 2012-03-03  H.J. Lu  <hongjiu.lu@intel.com>
1215         * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1217 2012-03-03  Andoni Morales Alastruey  <ylatuya@gmail.com>
1219         * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1220         windows-like hosts.
1221         * configure: Rebuilt.
1223 2012-02-27  Mikael Pettersson  <mikpe@it.uu.se>
1225         PR libffi/52223
1226         * Makefile.am (FLAGS_TO_PASS): Define.
1227         * Makefile.in: Regenerate.
1229 2012-02-23  Anthony Green  <green@moxielogic.com>
1231         * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1232         directly.
1234 2012-02-23  Kai Tietz  <ktietz@redhat.com>
1236         PR libffi/52221
1237         * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1238         prototype.
1239         (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1240         thiscall-convention.
1241         (ffi_raw_call): Use ffi_prep_args_raw.
1242         * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1243         implementation for stub.
1245 2012-02-10  Kai Tietz  <ktietz@redhat.com>
1247         * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1248         windows target.
1249         * configure: Regenerated.
1251 2012-02-08  Kai Tietz  <ktietz@redhat.com>
1253         * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1254         also FFI_THISCALL.
1255         * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1256         (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1257         (ffi_prep_closure_loc): Add FFI_THISCALL support.
1258         * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1259         * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1260         for thiscall-calling convention.
1261         * testsuite/libffi.call/closure_thiscall.c: New test.
1263 2012-01-28  Kai Tietz  <ktietz@redhat.com>
1265         * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1266         argument to prototype for specify calling-convention.
1267         (ffi_call): Add support for stdcall/thiscall convention.
1268         (ffi_prep_args): Likewise.
1269         (ffi_raw_call): Likewise.
1270         * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1271         FFI_FASTCALL.
1272         * src/x86/win32.S (_ffi_call_win32): Add support for
1273         fastcall/thiscall calling-convention calls.
1274         * testsuite/libffi.call/fastthis1_win32.c: New test.
1275         * testsuite/libffi.call/fastthis2_win32.c: New test.
1276         * testsuite/libffi.call/fastthis3_win32.c: New test.
1277         * testsuite/libffi.call/strlen2_win32.c: New test.
1278         * testsuite/libffi.call/many2_win32.c: New test.
1279         * testsuite/libffi.call/struct1_win32.c: New test.
1280         * testsuite/libffi.call/struct2_win32.c: New test.
1282 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1284         * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1286 2012-01-23  Anthony Green  <green@moxielogic.com>
1287             Chris Young  <cdyoung@ntlworld.com>
1289         * configure.ac: Add Amiga support.
1290         * configure: Rebuilt.
1292 2012-01-23  Dmitry Nadezhin  <dmitry.nadezhin@gmail.com>
1294         * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1296 2012-01-23  Andreas Schwab  <schwab@linux-m68k.org>
1298         * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1299         mc68000.  Test for __HAVE_68881__ in addition to __MC68881__.
1301 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
1303         PR rtl-optimization/48496
1304         * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1306 2012-01-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1308         * configure.ac (i?86-*-*): Set TARGET to X86_64.
1309         * configure: Regenerate.
1311 2011-12-07  Andrew Pinski  <apinski@cavium.com>
1313         PR libffi/50051
1314         * src/mips/n32.S: Add ".set mips4".
1316 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1318         * configure: Regenerate.
1320 2011-11-12  David Gilbert <david.gilbert@linaro.org>
1322         * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1323         man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1324         man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1325         src/cris/ffi.c, src/prep_cif.c,
1326         testsuite/libffi.call/cls_double_va.c,
1327         testsuite/libffi.call/cls_longdouble_va.c,
1328         testsuite/libffi.call/float_va.c: Many changes to support variadic
1329         function calls.
1331 2011-11-12  Kyle Moffett <Kyle.D.Moffett@boeing.com>
1333         * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1334         src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1335         softfloat powerpc variants.
1337 2011-11-12  Petr Salinger <Petr.Salinger@seznam.cz>
1339         * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1340         * configure: Rebuilt.
1342 2011-11-12  Timothy Wall  <twall@users.sf.net>
1344         * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1345         alignment of 4 for wince on ARM.
1347 2011-11-12  Kyle Moffett <Kyle.D.Moffett@boeing.com>
1348             Anthony Green <green@moxielogic.com>
1350         * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1351         instructions (not available on some cores, like the PPC440).
1353 2011-11-12  Kimura Wataru  <kimuraw@i.nifty.jp>
1355         * m4/ax_enable_builddir: Change from string comparison to numeric
1356         comparison for wc output.
1357         * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1358         X 10.7.
1359         * configure: Rebuilt.
1361 2011-11-12  Anthony Green  <green@moxielogic.com>
1363         * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1364         files with debug info.
1365         * Makefile.in: Rebuilt.
1367 2011-11-12  Jasper Lievisse Adriaanse <jasper@openbsd.org>
1369         * README: Update list of supported OpenBSD systems.
1371 2011-11-12  Anthony Green  <green@moxielogic.com>
1373         * libtool-version: Update.
1374         * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1375         FFI_DEBUG.
1376         (libffi_la_SOURCES): Remove src/debug.c
1377         (EXTRA_DIST): Add src/debug.c
1378         * Makefile.in: Rebuilt.
1379         * README: Update for 3.0.11.
1381 2011-11-10  Richard Henderson  <rth@redhat.com>
1383         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1384         * configure, aclocal.m4: Rebuild.
1386 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
1388         PR libffi/49594
1389         * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1390         helper reference track the architecture pointer size.
1392 2011-08-25  Andrew Haley  <aph@redhat.com>
1394         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1395         instructions.
1396         * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
1398 2011-07-11  Andrew Haley  <aph@redhat.com>
1400         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1402 2011-06-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1404         * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1405         * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1407 2011-06-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1409         PR libffi/46660
1410         * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1411         mips-sgi-irix6*.
1412         * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1414 2011-06-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1416         * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1417         PRId8 instead of %hhu, %hhd.
1418         * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1419         PRIu8): Define.
1420         [__sgi__] (PRId8, PRIu8): Define.
1422 2011-04-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1424         * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1425         Define.
1426         Use them to handle ELF vs. ECOFF differences.
1427         [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1429 2011-03-30  Timothy Wall  <twall@users.sf.net>
1431         * src/powerpc/darwin.S: Fix unknown FDE encoding.
1432         * src/powerpc/darwin_closure.S: ditto.
1434 2011-02-25  Anthony Green  <green@moxielogic.com>
1436         * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1437         32-bit ABIs.
1439 2011-02-15  Anthony Green  <green@moxielogic.com>
1441         * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1442         * configure: Rebuilt.
1444 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1446         * configure: Regenerate.
1448 2011-02-13  Anthony Green  <green@moxielogic.com>
1450         * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1451         * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1452         * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1454         * src/prep_cif.c (initialize_aggregate): Convert assertion into
1455         FFI_BAD_TYPEDEF return.  Initialize arg size and alignment to 0.
1457         * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1458         just return FFI_BAD_ABI when things are wrong.
1459         * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1460         * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1461         * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1462         * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1463         * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1465 2011-02-11  Anthony Green  <green@moxielogic.com>
1467         * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1468         just return FFI_BAD_ABI when things are wrong.
1470 2012-02-11  Eric Botcazou  <ebotcazou@adacore.com>
1472         * src/sparc/v9.S (STACKFRAME): Bump to 176.
1474 2011-02-09  Stuart Shelton  <srcshelton@gmail.com>
1476         http://bugs.gentoo.org/show_bug.cgi?id=286911
1477         * src/mips/ffitarget.h: Clean up error messages.
1478         * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1479         ffi_raw*.
1480         * include/ffi.h.in: Add pragma for SGI compiler.
1482 2011-02-09  Anthony Green  <green@moxielogic.com>
1484         * configure.ac: Add powerpc64-*-darwin* support.
1486 2011-02-09  Anthony Green <green@moxielogic.com>
1488         * README: Mention Interix.
1490 2011-02-09  Jonathan Callen  <abcd@gentoo.org>
1492         * configure.ac: Add Interix to win32/cygwin/mingw case.
1493         * configure: Ditto.
1494         * src/closures.c: Treat Interix like Cygwin, instead of as a
1495         generic win32.
1497 2011-02-09  Anthony Green <green@moxielogic.com>
1499         * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1500         * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1501         * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1502         (ffi_prep_closure_loc): Check for bad ABI.
1503         * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1504         (initialize_aggregate): Check for bad types.
1506 2011-02-09  Landon Fuller <landonf@plausible.coop>
1508         * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1509         src/arm/trampoline.S.
1510         (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1511         * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1512         * src/arm/ffi.c (ffi_trampoline_table)
1513         (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1514         (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1515         (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1516         (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1517         Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1518         (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1519         separately.
1520         * src/arm/sysv.S: Handle Apple iOS host.
1521         * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
1522         * build-ios.sh: New file.
1523         * fficonfig.h.in, configure, Makefile.in: Rebuilt.
1524         * README: Mention ARM iOS.
1526 2011-02-08  Oren Held  <orenhe@il.ibm.com>
1528         * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1529         redefinition of mallinfo on HP-UX.
1531 2011-02-08  Ginn Chen  <ginn.chen@oracle.com>
1533         * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
1534         aggregate return ABI.  Flush cache.
1535         (ffi_prep_closure_loc): Flush cache.
1537 2011-02-11  Anthony Green  <green@moxielogic.com>
1539         From Tom Honermann <tom.honermann@oracle.com>:
1540         * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1541         AIX.  Declare .ffi_prep_args.  Insert nops after branch
1542         instructions so that the AIX linker can insert TOC reload
1543         instructions.
1544         * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1546 2011-02-08  Ed  <ed@kdtc.net>
1548         * src/powerpc/asm.h: Fix grammar nit in comment.
1550 2011-02-08  Uli Link  <ul.mcamafia@linkitup.de>
1552         * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1554 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1556         PR libffi/46661
1557         * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1558         uintptr_t first.
1559         * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1561 2011-02-08  Rafael Avila de Espindola  <respindola@mozilla.com>
1563         * configure.ac: Fix x86 test for pc related relocs.
1564         * configure: Rebuilt.
1566 2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>
1568         * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1569         Handle case when CPU variant does not have long double support.
1570         * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1571         and cores with soft floating point.
1573 2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>
1575         * configure.ac: Add mips*-*-rtems* support.
1576         * configure: Regenerate.
1577         * src/mips/ffitarget.h: Ensure needed constants are available
1578         for targets which do not have sgidefs.h.
1580 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
1582         PR target/40125
1583         * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1584         * configure: Regenerate.
1586 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
1588         PR libffi/29152
1589         PR libffi/42378
1590         * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1591         update comments.
1592         * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1593         (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1594         * src/powerpc/darwin.S: Provide Darwin64 implementation,
1595         update comments.
1596         * src/powerpc/ffi_darwin.c: Likewise.
1598 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1600         * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1601         backslashes.
1602         (libffi_cv_as_string_pseudo_op): Likewise.
1603         * configure: Regenerate.
1605 2010-12-03  Chung-Lin Tang  <cltang@codesourcery.com>
1607         * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1608         (ffi_closure_VFP): Same.
1609         (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1610         directive.
1612 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1614         * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1615         (PRIuPTR): Define.
1617 2010-11-29  Richard Henderson  <rth@redhat.com>
1618             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1620         * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1621         (.eh_frame): Use FDE_ENCODING.
1622         (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1624 2010-11-22  Jacek Caban <jacek@codeweavers.com>
1626         * configure.ac: Check for symbol underscores on mingw-w64.
1627         * configure: Rebuilt.
1628         * src/x86/win64.S: Correctly access extern symbols in respect to
1629         underscores.
1631 2010-11-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1633         * testsuite/lib/libffi-dg.exp: Rename ...
1634         * testsuite/lib/libffi.exp: ... to this.
1635         * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1636         * libffi/testsuite/libffi.special/special.exp: Likewise.
1638 2010-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
1640         * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1641         code, new parameter, and return value. Update comments.
1642         (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1643         call to layout_vfp_args().
1644         (ffi_call_SYSV): Update declaration.
1645         (ffi_call_VFP): New declaration.
1646         (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1647         when ABI is FFI_VFP.
1648         (ffi_closure_VFP): New declaration.
1649         (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1650         ffi_prep_incoming_args_SYSV().
1651         (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1652         case handling.
1653         (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1654         construction under VFP hard-float.
1655         (rec_vfp_type_p): New function.
1656         (vfp_type_p): Same.
1657         (place_vfp_arg): Same.
1658         (layout_vfp_args): Same.
1659         * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1660         based on __ARM_PCS_VFP.
1661         (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1662         fields.
1663         (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1664         (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1665         * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1666         direct call. Move function pointer load upwards.
1667         (ffi_call_VFP): New function.
1668         (ffi_closure_VFP): Same.
1670         * testsuite/lib/libffi-dg.exp (check-flags): New function.
1671         (dg-skip-if): New function.
1672         * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1673         and compiler options include -mfloat-abi=hard.
1674         * testsuite/libffi.call/cls_longdouble_va.c: Same.
1676 2010-10-01  Jakub Jelinek  <jakub@redhat.com>
1678         PR libffi/45677
1679         * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1680         a multiple of 8.
1681         * testsuite/libffi.call/many2.c: New test.
1683 2010-08-20  Mark Wielaard  <mjw@redhat.com>
1685         * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1686         returns NULL.
1688 2010-08-09  Andreas Tobler  <andreast@fgznet.ch>
1690         * configure.ac: Add target powerpc64-*-freebsd*.
1691         * configure: Regenerate.
1692         * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1693         -mlong-double-128 only to linux targets.
1694         * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1695         * testsuite/libffi.call/cls_longdouble.c: Likewise.
1696         * testsuite/libffi.call/huge_struct.c: Likewise.
1698 2010-08-05  Dan Witte  <dwitte@mozilla.com>
1700         * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1701         debug CRT when --enable-debug is given.
1702         * configure.ac: Define it.
1703         * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1705 2010-08-04  Dan Witte  <dwitte@mozilla.com>
1707         * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1708         platforms.
1709         * src/x86/ffi.c: Remove redundant ifdef checks.
1710         * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1711         for X86_ANY so return value space doesn't get added twice.
1713 2010-08-03  Neil Rashbrooke <neil@parkwaycc.co.uk>
1715         * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1717 2010-07-22  Dan Witte  <dwitte@mozilla.com>
1719         * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1720         * src/prep_cif.c: Fix ABI assertion.
1721         * src/cris/ffi.c: Ditto.
1723 2010-07-10  Evan Phoenix  <evan@fallingsnow.net>
1725         * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1727 2010-07-07  Dan Horák <dan@danny.cz>
1729         * include/ffi.h.in: Protect #define with #ifndef.
1730         * src/powerpc/ffitarget.h: Ditto.
1731         * src/s390/ffitarget.h: Ditto.
1732         * src/sparc/ffitarget.h: Ditto.
1734 2010-07-07   Neil Roberts <neil@linux.intel.com>
1736         * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1737         16-bytes.
1739 2010-07-02  Jakub Jelinek  <jakub@redhat.com>
1741         * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1742         * Makefile.in: Regenerated.
1744 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1746         * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1747         output, too.
1748         (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1749         (libffi_cv_as_string_pseudo_op): Check for .string.
1750         * configure: Regenerate.
1751         * fficonfig.h.in: Regenerate.
1752         * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1754 2010-05-11  Dan Witte  <dwitte@mozilla.com>
1756         * doc/libffi.tex: Document previous change.
1758 2010-05-11  Makoto Kato <m_kato@ga2.so-net.ne.jp>
1760         * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1762 2010-05-05  Michael Kohler <michaelkohler@live.com>
1764         * src/dlmalloc.c (dlfree): Fix spelling.
1765         * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1766         * configure.ac: Ditto.
1767         * configure: Rebuilt.
1769 2010-04-13  Dan Witte  <dwitte@mozilla.com>
1771         * msvcc.sh: Build with -W3 instead of -Wall.
1772         * src/powerpc/ffi_darwin.c: Remove build warnings.
1773         * src/x86/ffi.c: Ditto.
1774         * src/x86/ffitarget.h: Ditto.
1776 2010-04-12  Dan Witte  <dwitte@mozilla.com>
1777             Walter Meinl <wuno@lsvw.de>
1779         * configure.ac: Add OS/2 support.
1780         * configure: Rebuilt.
1781         * src/closures.c: Ditto.
1782         * src/dlmalloc.c: Ditto.
1783         * src/x86/win32.S: Ditto.
1785 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
1787         * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
1789 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1791         * Makefile.in: Regenerate.
1792         * aclocal.m4: Regenerate.
1793         * include/Makefile.in: Regenerate.
1794         * man/Makefile.in: Regenerate.
1795         * testsuite/Makefile.in: Regenerate.
1797 2010-03-30  Dan Witte  <dwitte@mozilla.com>
1799         * msvcc.sh: Disable build warnings.
1800         * README (tested): Clarify windows build procedure.
1802 2010-03-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1804         * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1805         * configure: Regenerate.
1806         * fficonfig.h.in: Regenerate.
1807         * libffi/src/x86/unix64.S (.eh_frame)
1808         [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1810 2010-03-14  Matthias Klose  <doko@ubuntu.com>
1812         * src/x86/ffi64.c: Fix typo in comment.
1813         * src/x86/ffi.c: Use /* ... */ comment style.
1815 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1817         * doc/libffi.texi (The Closure API): Fix typo.
1818         * doc/libffi.info: Remove.
1820 2010-02-15  Matthias Klose  <doko@ubuntu.com>
1822         * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1823         __ARM_ARCH_7EM__.
1825 2010-01-15  Anthony Green  <green@redhat.com>
1827         * README: Add notes on building with Microsoft Visual C++.
1829 2010-01-15  Daniel Witte  <dwitte@mozilla.com>
1831         * msvcc.sh: New file.
1833         * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1834         * src/x86/ffi.c: Tweak function declaration and remove excess
1835         parens.
1836         * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1837         ffi_closure.
1839         * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1840         function ffi_call_win32 on X86_WIN32.
1841         * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1842         (ffi_call_STDCALL): Remove.
1844         * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1845         to ffi_prep_cif_machdep for x86.
1846         * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1848 2010-01-15  Oliver Kiddle  <okiddle@yahoo.co.uk>
1850         * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
1851         Sun Studio compiler compatibility.
1853 2010-01-12  Conrad Irwin <conrad.irwin@gmail.com>
1855         * doc/libffi.texi: Add closure example.
1857 2010-01-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1859         PR libffi/40701
1860         * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1861         PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1862         * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1863         alpha*-dec-osf*.
1864         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1865         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1866         * testsuite/libffi.call/return_ll1.c: Likewise.
1867         * testsuite/libffi.call/stret_medium2.c: Likewise.
1868         * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1869         MAP_FAILED to char *.
1871 2010-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1873         * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1875 2009-12-31  Anthony Green  <green@redhat.com>
1877         * README: Update for libffi 3.0.9.
1879 2009-12-27  Matthias Klose  <doko@ubuntu.com>
1881         * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1882         appropriate.
1883         * configure: Rebuilt.
1885 2009-12-26  Anthony Green  <green@redhat.com>
1887         * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1888         avr32*-*-*.
1889         * testsuite/libffi.call/cls_double_va.c: Ditto.
1891 2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
1893         * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1894         and inttypes.h.
1895         * testsuite/libffi.special/unwindtest.cc: Ditto.
1897 2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
1899         * configure.ac: Add amd64-*-openbsd*.
1900         * configure: Rebuilt.
1901         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1902         openbsd programs with -lpthread.
1904 2009-12-26  Anthony Green  <green@redhat.com>
1906         * testsuite/libffi.call/cls_double_va.c,
1907         testsuite/libffi.call/cls_longdouble.c,
1908         testsuite/libffi.call/cls_longdouble_va.c,
1909         testsuite/libffi.call/cls_pointer.c,
1910         testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1911         mips*-*-* and arm*-*-*.
1912         * testsuite/libffi.call/cls_align_longdouble_split.c,
1913         testsuite/libffi.call/cls_align_longdouble_split2.c,
1914         testsuite/libffi.call/stret_medium2.c,
1915         testsuite/libffi.call/stret_medium.c,
1916         testsuite/libffi.call/stret_large.c,
1917         testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1919 2009-12-31  Kay Tietz  <ktietz70@googlemail.com>
1921         * testsuite/libffi.call/ffitest.h,
1922         testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1923         definitions.
1925 2009-12-31  Carlo Bramini  <carlo.bramix@libero.it>
1927         * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1928         * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1929         * configure: Rebuilt.
1930         * Makefile.in: Rebuilt.
1932 2009-12-31  Anthony Green  <green@redhat.com>
1933             Blake Chaffin.
1935         * testsuite/libffi.call/huge_struct.c: New test case from Blake
1936         Chaffin @ Apple.
1938 2009-12-28  David Edelsohn  <edelsohn@gnu.org>
1940         * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1941         local variables.
1942         (aix_adjust_aggregate_sizes): New function.
1943         (ffi_prep_cif_machdep): Call it.
1945 2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
1947         * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1948         * configure: Regenerate.
1949         * fficonfig.h.in: Likewise.
1950         * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1951         Solaris/x86.
1953 2009-12-26  Andreas Schwab  <schwab@linux-m68k.org>
1955         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1956         when a float arguments is passed in memory.
1957         (ffi_closure_helper_SYSV): Mark general registers as used up when
1958         a 64bit or soft-float long double argument is passed in memory.
1960 2009-12-25  Matthias Klose  <doko@ubuntu.com>
1962         * man/ffi_call.3: Fix #include in examples.
1963         * doc/libffi.texi: Add dircategory.
1965 2009-12-25  Frank Everdij <f.p.x.everdij@tudelft.nl>
1967         * include/ffi.h.in: Placed '__GNUC__' ifdef around
1968         '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1969         IRIX MIPSPro c99.
1970         * include/ffi_common.h: Added '__sgi' define to non
1971         '__attribute__((__mode__()))' integer typedefs.
1972         * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
1973         ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1974         (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1975         FFI_LONGDOUBLE support and alignment(N32 only).
1976         * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1977         fixed non '__attribute__((__mode__()))' integer typedefs.
1978         * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1979         since they are Linux/GNU Assembler specific.
1981 2009-12-25  Bradley Smith  <brad@brad-smith.co.uk>
1983         * configure.ac, Makefile.am, src/avr32/ffi.c,
1984         src/avr32/ffitarget.h,
1985         src/avr32/sysv.S: Add AVR32 port.
1986         * configure, Makefile.in: Rebuilt.
1988 2009-12-21  Andreas Tobler  <a.tobler@schweiz.org>
1990         * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1991         * configure: Regenerate.
1993 2009-12-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1995         * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1997 2009-12-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1999         * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
2000         type on HP-UX.
2002 2012-02-13  Kai Tietz  <ktietz@redhat.com>
2004         PR libffi/52221
2005         * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
2006         support for X86_WIN32.
2007         (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
2009 2009-12-11  Eric Botcazou  <ebotcazou@adacore.com>
2011         * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
2012         double' arguments.
2014 2009-12-11  Eric Botcazou  <ebotcazou@adacore.com>
2016         * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
2018 2009-12-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2020         PR libffi/40700
2021         * src/closures.c [X86_64 && __sun__ && __svr4__]
2022         (FFI_MMAP_EXEC_WRIT): Define.
2024 2009-12-08  David Daney  <ddaney@caviumnetworks.com>
2026         * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
2027         * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
2028         * testsuite/libffi.call/stret_large.c: Same.
2029         * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
2030         * testsuite/libffi.call/stret_large2.c: Same.
2031         * testsuite/libffi.call/stret_medium2.c: Same.
2033 2009-12-07  David Edelsohn  <edelsohn@gnu.org>
2035         * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
2036         typo.
2038 2009-12-05  David Edelsohn  <edelsohn@gnu.org>
2040         * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
2041         code.
2042         * src/powerpc/aix_closure.S: Same.
2044 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2046         * Makefile.in: Regenerate.
2047         * configure: Regenerate.
2048         * include/Makefile.in: Regenerate.
2049         * man/Makefile.in: Regenerate.
2050         * testsuite/Makefile.in: Regenerate.
2052 2009-12-04  David Edelsohn  <edelsohn@gnu.org>
2054         * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
2055         linux64_closure.S.
2057 2009-12-04  Uros Bizjak  <ubizjak@gmail.com>
2059         PR libffi/41908
2060         * src/x86/ffi64.c (classify_argument): Update from
2061         gcc/config/i386/i386.c.
2062         (ffi_closure_unix64_inner): Do not use the address of two consecutive
2063         SSE registers directly.
2064         * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
2065         for x86_64 linux targets.
2067 2009-12-04  David Edelsohn  <edelsohn@gnu.org>
2069         * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
2070         pfr for long double split between fpr13 and stack.
2072 2009-12-03  David Edelsohn  <edelsohn@gnu.org>
2074         * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
2075         fparg_count twice for long double.
2077 2009-12-03  David Edelsohn  <edelsohn@gnu.org>
2079         PR libffi/42243
2080         * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
2082 2009-12-03  Uros Bizjak  <ubizjak@gmail.com>
2084         * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
2085         Remove xfails for x86 linux targets.
2087 2009-12-02  David Edelsohn  <edelsohn@gnu.org>
2089         * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
2090         case.
2092 2009-12-01  David Edelsohn  <edelsohn@gnu.org>
2094         * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
2095         register usage.  Call ffi_prep_args directly.  Add long double
2096         return value support.
2097         * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
2098         applies to FFI_TYPE_DOUBLE.  Correct fpr_base increment typo.
2099         Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
2100         (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
2101         mode.
2102         (ffi_closure_helper_DARWIN): Remove nf and ng counters.  Move temp
2103         into case.
2104         * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
2105         Allocate result area between params and FPRs.
2107 2009-11-30  David Edelsohn  <edelsohn@gnu.org>
2109         PR target/35484
2110         * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
2111         AIX64.
2112         * src/powerpc/aix.S: Implement AIX64 version.
2113         * src/powerpc/aix_closure.S: Implement AIX64 version.
2114         (ffi_closure_ASM): Use extsb, lha and displament addresses.
2115         * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
2116         support.
2117         (ffi_prep_cif_machdep): Same.
2118         (ffi_call): Same.
2119         (ffi_closure_helper_DARWIN): Same.
2121 2009-11-02  Andreas Tobler  <a.tobler@schweiz.org>
2123         PR libffi/41908
2124         * testsuite/libffi.call/testclosure.c: New test.
2126 2009-09-28  Kai Tietz  <kai.tietz@onevision.com>
2128         * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
2129         assembly version use of ___chkstk.
2131 2009-09-23  Matthias Klose  <doko@ubuntu.com>
2133         PR libffi/40242, PR libffi/41443
2134         * src/arm/sysv.S (__ARM_ARCH__): Define for processors
2135         __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
2136         __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
2137         Change the conditionals to __SOFTFP__ || __ARM_EABI__
2138         for -mfloat-abi=softfp to work.
2140 2009-09-17  Loren J. Rittle  <ljrittle@acm.org>
2142         PR testsuite/32843 (strikes again)
2143         * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
2144         enable proper extension on char and short.
2146 2009-09-15  David Daney  <ddaney@caviumnetworks.com>
2148         * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
2149         handling for FFI_TYPE_POINTER.
2150         * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
2151         FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
2152         FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
2153         FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
2154         (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
2155         (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
2156         * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
2157         structure and pointer returns.
2158         (ffi_closure_N32): Add handling for pointer returns.
2159         * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
2160         calc_n32_return_struct_flags): Handle soft-float.
2161         (ffi_prep_cif_machdep):  Handle soft-float, fix pointer handling.
2162         (ffi_call_N32): Declare proper argument types.
2163         (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
2164         soft-float.
2166 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2168         * configure.ac (AC_PREREQ): Bump to 2.64.
2170 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2172         * Makefile.am (install-html, install-pdf): Remove.
2173         * Makefile.in: Regenerate.
2175         * Makefile.in: Regenerate.
2176         * aclocal.m4: Regenerate.
2177         * configure: Regenerate.
2178         * fficonfig.h.in: Regenerate.
2179         * include/Makefile.in: Regenerate.
2180         * man/Makefile.in: Regenerate.
2181         * testsuite/Makefile.in: Regenerate.
2183 2011-08-22  Jasper Lievisse Adriaanse <jasper@openbsd.org>
2185         * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2186         * configure: Rebuilt.
2188 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2190         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2192 2009-07-24  Dave Korn  <dave.korn.cygwin@gmail.com>
2194         PR libffi/40807
2195         * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2196         return types for X86_WIN32.
2197         * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2198         (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2199         _ffi_closure_STDCALL): Likewise.
2201         * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2202         (dlmmap, dlmunmap): Also use these functions on Cygwin.
2204 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
2206         PR testsuite/40699
2207         PR testsuite/40707
2208         PR testsuite/40709
2209         * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2210         2009-06-30 commits.
2212 2009-07-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
2214         * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2215         to "" before adding paths.  (This reinstates an assignment that
2216         was removed by my 2009-06-30 commit, but changes the initial
2217         value from "." to "".)
2219 2009-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2221         PR testsuite/40601
2222         * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2223         gccdir.  Adjust ld_library_path for gcc only if gccdir isn't
2224         empty.
2226 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
2228         * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2229         to ld_library_path.  Use add_path.  Add just find_libgcc_s
2230         to ld_library_path, not every libgcc multilib directory.
2232 2009-06-16  Wim Lewis  <wiml@hhhh.org>
2234         * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2235         supposed to be callee-saved.
2236         * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2237         return buffer for odd-size structs.
2239 2009-06-16  Andreas Tobler  <a.tobler@schweiz.org>
2241         PR libffi/40444
2242         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2243         allow_stack_execute for Darwin.
2245 2009-06-16  Andrew Haley  <aph@redhat.com>
2247         * configure.ac (TARGETDIR): Add missing blank lines.
2248         * configure: Regenerate.
2250 2009-06-16  Andrew Haley  <aph@redhat.com>
2252         * testsuite/libffi.call/cls_align_sint64.c,
2253         testsuite/libffi.call/cls_align_uint64.c,
2254         testsuite/libffi.call/cls_longdouble_va.c,
2255         testsuite/libffi.call/cls_ulonglong.c,
2256         testsuite/libffi.call/return_ll1.c,
2257         testsuite/libffi.call/stret_medium2.c: Fix printf format
2258         specifiers.
2259         * testsuite/libffi.call/ffitest.h,
2260         testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2262 2009-06-15  Andrew Haley  <aph@redhat.com>
2264         * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2265         * testsuite/libffi.call/err_bad_abi.c: Likewise.
2267 2009-06-12  Andrew Haley  <aph@redhat.com>
2269         * Makefile.am: Remove info_TEXINFOS.
2271 2009-06-12  Andrew Haley  <aph@redhat.com>
2273         * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2274         testsuite/libffi.call/cls_align_uint64.c,
2275         testsuite/libffi.call/cls_ulonglong.c,
2276         testsuite/libffi.call/return_ll1.c,
2277         testsuite/libffi.call/stret_medium2.c: Fix printf format
2278         specifiers.
2279         testsuite/libffi.special/unwindtest.cc: include stdint.h.
2281 2009-06-11  Timothy Wall  <twall@users.sf.net>
2283         * Makefile.am,
2284         configure.ac,
2285         include/ffi.h.in,
2286         include/ffi_common.h,
2287         src/closures.c,
2288         src/dlmalloc.c,
2289         src/x86/ffi.c,
2290         src/x86/ffitarget.h,
2291         src/x86/win64.S (new),
2292         README: Added win64 support (mingw or MSVC)
2293         * Makefile.in,
2294         include/Makefile.in,
2295         man/Makefile.in,
2296         testsuite/Makefile.in,
2297         configure,
2298         aclocal.m4: Regenerated
2299         * ltcf-c.sh: properly escape cygwin/w32 path
2300         * man/ffi_call.3: Clarify size requirements for return value.
2301         * src/x86/ffi64.c: Fix filename in comment.
2302         * src/x86/win32.S: Remove unused extern.
2304         * testsuite/libffi.call/closure_fn0.c,
2305         testsuite/libffi.call/closure_fn1.c,
2306         testsuite/libffi.call/closure_fn2.c,
2307         testsuite/libffi.call/closure_fn3.c,
2308         testsuite/libffi.call/closure_fn4.c,
2309         testsuite/libffi.call/closure_fn5.c,
2310         testsuite/libffi.call/closure_fn6.c,
2311         testsuite/libffi.call/closure_stdcall.c,
2312         testsuite/libffi.call/cls_12byte.c,
2313         testsuite/libffi.call/cls_16byte.c,
2314         testsuite/libffi.call/cls_18byte.c,
2315         testsuite/libffi.call/cls_19byte.c,
2316         testsuite/libffi.call/cls_1_1byte.c,
2317         testsuite/libffi.call/cls_20byte.c,
2318         testsuite/libffi.call/cls_20byte1.c,
2319         testsuite/libffi.call/cls_24byte.c,
2320         testsuite/libffi.call/cls_2byte.c,
2321         testsuite/libffi.call/cls_3_1byte.c,
2322         testsuite/libffi.call/cls_3byte1.c,
2323         testsuite/libffi.call/cls_3byte2.c,
2324         testsuite/libffi.call/cls_4_1byte.c,
2325         testsuite/libffi.call/cls_4byte.c,
2326         testsuite/libffi.call/cls_5_1_byte.c,
2327         testsuite/libffi.call/cls_5byte.c,
2328         testsuite/libffi.call/cls_64byte.c,
2329         testsuite/libffi.call/cls_6_1_byte.c,
2330         testsuite/libffi.call/cls_6byte.c,
2331         testsuite/libffi.call/cls_7_1_byte.c,
2332         testsuite/libffi.call/cls_7byte.c,
2333         testsuite/libffi.call/cls_8byte.c,
2334         testsuite/libffi.call/cls_9byte1.c,
2335         testsuite/libffi.call/cls_9byte2.c,
2336         testsuite/libffi.call/cls_align_double.c,
2337         testsuite/libffi.call/cls_align_float.c,
2338         testsuite/libffi.call/cls_align_longdouble.c,
2339         testsuite/libffi.call/cls_align_longdouble_split.c,
2340         testsuite/libffi.call/cls_align_longdouble_split2.c,
2341         testsuite/libffi.call/cls_align_pointer.c,
2342         testsuite/libffi.call/cls_align_sint16.c,
2343         testsuite/libffi.call/cls_align_sint32.c,
2344         testsuite/libffi.call/cls_align_sint64.c,
2345         testsuite/libffi.call/cls_align_uint16.c,
2346         testsuite/libffi.call/cls_align_uint32.c,
2347         testsuite/libffi.call/cls_align_uint64.c,
2348         testsuite/libffi.call/cls_dbls_struct.c,
2349         testsuite/libffi.call/cls_double.c,
2350         testsuite/libffi.call/cls_double_va.c,
2351         testsuite/libffi.call/cls_float.c,
2352         testsuite/libffi.call/cls_longdouble.c,
2353         testsuite/libffi.call/cls_longdouble_va.c,
2354         testsuite/libffi.call/cls_multi_schar.c,
2355         testsuite/libffi.call/cls_multi_sshort.c,
2356         testsuite/libffi.call/cls_multi_sshortchar.c,
2357         testsuite/libffi.call/cls_multi_uchar.c,
2358         testsuite/libffi.call/cls_multi_ushort.c,
2359         testsuite/libffi.call/cls_multi_ushortchar.c,
2360         testsuite/libffi.call/cls_pointer.c,
2361         testsuite/libffi.call/cls_pointer_stack.c,
2362         testsuite/libffi.call/cls_schar.c,
2363         testsuite/libffi.call/cls_sint.c,
2364         testsuite/libffi.call/cls_sshort.c,
2365         testsuite/libffi.call/cls_uchar.c,
2366         testsuite/libffi.call/cls_uint.c,
2367         testsuite/libffi.call/cls_ulonglong.c,
2368         testsuite/libffi.call/cls_ushort.c,
2369         testsuite/libffi.call/err_bad_abi.c,
2370         testsuite/libffi.call/err_bad_typedef.c,
2371         testsuite/libffi.call/float2.c,
2372         testsuite/libffi.call/huge_struct.c,
2373         testsuite/libffi.call/nested_struct.c,
2374         testsuite/libffi.call/nested_struct1.c,
2375         testsuite/libffi.call/nested_struct10.c,
2376         testsuite/libffi.call/nested_struct2.c,
2377         testsuite/libffi.call/nested_struct3.c,
2378         testsuite/libffi.call/nested_struct4.c,
2379         testsuite/libffi.call/nested_struct5.c,
2380         testsuite/libffi.call/nested_struct6.c,
2381         testsuite/libffi.call/nested_struct7.c,
2382         testsuite/libffi.call/nested_struct8.c,
2383         testsuite/libffi.call/nested_struct9.c,
2384         testsuite/libffi.call/problem1.c,
2385         testsuite/libffi.call/return_ldl.c,
2386         testsuite/libffi.call/return_ll1.c,
2387         testsuite/libffi.call/stret_large.c,
2388         testsuite/libffi.call/stret_large2.c,
2389         testsuite/libffi.call/stret_medium.c,
2390         testsuite/libffi.call/stret_medium2.c,
2391         testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2392         of checking for MMAP.  Use intptr_t instead of long casts.
2394 2009-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2396         * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2397         * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2398         * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2400 2009-06-09  Andrew Haley  <aph@redhat.com>
2402         * src/x86/freebsd.S: Add missing file.
2404 2009-06-08  Andrew Haley  <aph@redhat.com>
2406         Import from libffi 3.0.8:
2408         * doc/libffi.texi: New file.
2409         * doc/libffi.info: Likewise.
2410         * doc/stamp-vti: Likewise.
2411         * man/Makefile.am: New file.
2412         * man/ffi_call.3: New file.
2414         * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2415         src/dlmalloc.c.
2416         (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2418         * configure.ac: Bump version to 3.0.8.
2419         parisc*-*-linux*: Add.
2420         i386-*-freebsd* | i386-*-openbsd*: Add.
2421         powerpc-*-beos*: Add.
2422         AM_CONDITIONAL X86_FREEBSD: Add.
2423         AC_CONFIG_FILES: Add man/Makefile.
2425         * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2427 2009-06-08  Andrew Haley  <aph@redhat.com>
2429         * README: Import from libffi 3.0.8.
2431 2009-06-08  Andrew Haley  <aph@redhat.com>
2433         * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2434         * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2435         * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2436         * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2438         * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2439         * testsuite/libffi.call/stret_medium.c: Likewise.
2440         * testsuite/libffi.call/stret_large2.c: Likewise.
2441         * testsuite/libffi.call/stret_large.c:  Likewise.
2443 2008-12-26  Timothy Wall  <twall@users.sf.net>
2445         * testsuite/libffi.call/cls_longdouble.c,
2446         testsuite/libffi.call/cls_longdouble_va.c,
2447         testsuite/libffi.call/cls_align_longdouble.c,
2448         testsuite/libffi.call/cls_align_longdouble_split.c,
2449         testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2450         failures on x86_64 cygwin/mingw.
2452 2008-12-22  Timothy Wall  <twall@users.sf.net>
2454         * testsuite/libffi.call/closure_fn0.c,
2455         testsuite/libffi.call/closure_fn1.c,
2456         testsuite/libffi.call/closure_fn2.c,
2457         testsuite/libffi.call/closure_fn3.c,
2458         testsuite/libffi.call/closure_fn4.c,
2459         testsuite/libffi.call/closure_fn5.c,
2460         testsuite/libffi.call/closure_fn6.c,
2461         testsuite/libffi.call/closure_loc_fn0.c,
2462         testsuite/libffi.call/closure_stdcall.c,
2463         testsuite/libffi.call/cls_align_pointer.c,
2464         testsuite/libffi.call/cls_pointer.c,
2465         testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2466         pointer to integer (intptr_t).
2467         * testsuite/libffi.call/cls_longdouble.c: disable for win64.
2469 2008-07-24  Anthony Green  <green@redhat.com>
2471         * testsuite/libffi.call/cls_dbls_struct.c,
2472         testsuite/libffi.call/cls_double_va.c,
2473         testsuite/libffi.call/cls_longdouble.c,
2474         testsuite/libffi.call/cls_longdouble_va.c,
2475         testsuite/libffi.call/cls_pointer.c,
2476         testsuite/libffi.call/cls_pointer_stack.c,
2477         testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2478         compiler warnings.
2480 2008-03-04  Anthony Green  <green@redhat.com>
2481             Blake Chaffin
2482             hos@tamanegi.org
2484         * testsuite/libffi.call/cls_align_longdouble_split2.c
2485           testsuite/libffi.call/cls_align_longdouble_split.c
2486           testsuite/libffi.call/cls_dbls_struct.c
2487           testsuite/libffi.call/cls_double_va.c
2488           testsuite/libffi.call/cls_longdouble.c
2489           testsuite/libffi.call/cls_longdouble_va.c
2490           testsuite/libffi.call/cls_pointer.c
2491           testsuite/libffi.call/cls_pointer_stack.c
2492           testsuite/libffi.call/err_bad_abi.c
2493           testsuite/libffi.call/err_bad_typedef.c
2494           testsuite/libffi.call/stret_large2.c
2495           testsuite/libffi.call/stret_large.c
2496           testsuite/libffi.call/stret_medium2.c
2497           testsuite/libffi.call/stret_medium.c: New tests from Apple.
2499 2009-06-05  Andrew Haley  <aph@redhat.com>
2501         * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2502         libffi.
2504 2009-06-04  Andrew Haley  <aph@redhat.com>
2506         * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2507         stdcall changes.
2509 2008-02-26  Anthony Green  <green@redhat.com>
2510             Thomas Heller  <theller@ctypes.org>
2512         * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2513         comment.
2515 2008-02-03  Timothy Wall  <twall@users.sf.net>
2517         * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2518           offset based on code pointer, not data pointer.
2520 2008-01-31  Timothy Wall <twall@users.sf.net>
2522         * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2523         closures.
2524         * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2525         closures.
2526         * src/x86/win32.S: Add assembly for stdcall closure.
2527         * src/x86/ffi.c: Initialize stdcall closure trampoline.
2529 2009-06-04  Andrew Haley  <aph@redhat.com>
2531         * include/ffi.h.in: Change void (*)() to void (*)(void).
2532         * src/x86/ffi.c: Likewise.
2534 2009-06-04  Andrew Haley  <aph@redhat.com>
2536         * src/powerpc/ppc_closure.S: Insert licence header.
2537         * src/powerpc/linux64_closure.S: Likewise.
2538         * src/m68k/sysv.S: Likewise.
2540         * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2541         * src/powerpc/ffi.c: Likewise.
2542         * src/powerpc/ffi_darwin.c: Likewise.
2543         * src/m32r/ffi.c: Likewise.
2544         * src/sh64/ffi.c: Likewise.
2545         * src/x86/ffi64.c: Likewise.
2546         * src/alpha/ffi.c: Likewise.
2547         * src/alpha/osf.S: Likewise.
2548         * src/frv/ffi.c: Likewise.
2549         * src/s390/ffi.c: Likewise.
2550         * src/pa/ffi.c: Likewise.
2551         * src/pa/hpux32.S: Likewise.
2552         * src/ia64/unix.S: Likewise.
2553         * src/ia64/ffi.c: Likewise.
2554         * src/sparc/ffi.c: Likewise.
2555         * src/mips/ffi.c: Likewise.
2556         * src/sh/ffi.c: Likewise.
2558 2008-02-15  David Daney  <ddaney@avtrex.com>
2560         * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2561         Define (conditionally), and use it to include cachectl.h.
2562         (ffi_prep_closure_loc): Fix cache flushing.
2563         * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
2565 2009-06-04  Andrew Haley  <aph@redhat.com>
2567         include/ffi.h.in,
2568         src/arm/ffitarget.h,
2569         src/arm/ffi.c,
2570         src/arm/sysv.S,
2571         src/powerpc/ffitarget.h,
2572         src/closures.c,
2573         src/sh64/ffitarget.h,
2574         src/sh64/ffi.c,
2575         src/sh64/sysv.S,
2576         src/types.c,
2577         src/x86/ffi64.c,
2578         src/x86/ffitarget.h,
2579         src/x86/win32.S,
2580         src/x86/darwin.S,
2581         src/x86/ffi.c,
2582         src/x86/sysv.S,
2583         src/x86/unix64.S,
2584         src/alpha/ffitarget.h,
2585         src/alpha/ffi.c,
2586         src/alpha/osf.S,
2587         src/m68k/ffitarget.h,
2588         src/frv/ffitarget.h,
2589         src/frv/ffi.c,
2590         src/s390/ffitarget.h,
2591         src/s390/sysv.S,
2592         src/cris/ffitarget.h,
2593         src/pa/linux.S,
2594         src/pa/ffitarget.h,
2595         src/pa/ffi.c,
2596         src/raw_api.c,
2597         src/ia64/ffitarget.h,
2598         src/ia64/unix.S,
2599         src/ia64/ffi.c,
2600         src/ia64/ia64_flags.h,
2601         src/java_raw_api.c,
2602         src/debug.c,
2603         src/sparc/v9.S,
2604         src/sparc/ffitarget.h,
2605         src/sparc/ffi.c,
2606         src/sparc/v8.S,
2607         src/mips/ffitarget.h,
2608         src/mips/n32.S,
2609         src/mips/o32.S,
2610         src/mips/ffi.c,
2611         src/prep_cif.c,
2612         src/sh/ffitarget.h,
2613         src/sh/ffi.c,
2614         src/sh/sysv.S: Update license text.
2616 2009-05-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2618         * src/x86/win32.S (_ffi_closure_STDCALL):  New function.
2619         (.eh_frame):  Add FDE for it.
2621 2009-05-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2623         * configure.ac:  Also check if assembler supports pc-relative
2624         relocs on X86_WIN32 targets.
2625         * configure:  Regenerate.
2626         * src/x86/win32.S (ffi_prep_args):  Declare extern, not global.
2627         (_ffi_call_SYSV):  Add missing function type symbol .def and
2628         add EH markup labels.
2629         (_ffi_call_STDCALL):  Likewise.
2630         (_ffi_closure_SYSV):  Likewise.
2631         (_ffi_closure_raw_SYSV):  Likewise.
2632         (.eh_frame):  Add hand-crafted EH data.
2634 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2636         * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2637         version 3 of the GNU General Public License and to point readers
2638         at the COPYING3 file and the FSF's license web page.
2639         * testsuite/libffi.call/call.exp: Likewise.
2640         * testsuite/libffi.special/special.exp: Likewise.
2642 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2644         * configure: Regenerate.
2646 2008-12-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2648         PR libffi/26048
2649         * configure.ac (HAVE_AS_X86_PCREL): New test.
2650         * configure: Regenerate.
2651         * fficonfig.h.in: Regenerate.
2652         * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2653         RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2654         RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2655         (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2656         * src/x86/unix64.S (.Lstore_table): Move to .text section.
2657         (.Lload_table): Likewise.
2658         (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2660 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2662         * configure: Regenerate.
2664 2008-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2666         * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2667         signed/unsigned int8/16 return values.
2668         * src/sparc/v8.S (ffi_call_v8): Likewise.
2669         (ffi_closure_v8): Likewise.
2671 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2672             Steve Ellcey  <sje@cup.hp.com>
2674         * configure: Regenerate for new libtool.
2675         * Makefile.in: Ditto.
2676         * include/Makefile.in: Ditto.
2677         * aclocal.m4: Ditto.
2679 2008-08-25  Andreas Tobler  <a.tobler@schweiz.org>
2681         * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2682         FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2683         Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2684         Adjust copyright notice.
2685         * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2686         register or two register to use for FFI_SYSV structs.
2687         (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2688         (ffi_closure_helper_SYSV): Fix the return type for
2689         FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2690         Adjust copyright notice.
2692 2008-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2694         * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2695         int.
2697 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2699         * configure: Regenerate.
2700         * include/Makefile.in: Regenerate.
2701         * testsuite/Makefile.in: Regenerate.
2703 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
2705         * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2706         powerpc-*-beos*): Remove.
2707         * configure: Regenerate.
2709 2008-05-09  Julian Brown  <julian@codesourcery.com>
2711         * Makefile.am (LTLDFLAGS): New.
2712         (libffi_la_LDFLAGS): Use above.
2713         * Makefile.in: Regenerate.
2715 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2717         PR bootstrap/35457
2718         * aclocal.m4: Regenerate.
2719         * configure: Regenerate.
2721 2008-03-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2723         * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2724         * src/sh64/sysv.S: Likewise.
2726 2008-03-26  Daniel Jacobowitz  <dan@debian.org>
2728         * src/arm/sysv.S: Fix ARM comment marker.
2730 2008-03-26  Jakub Jelinek  <jakub@redhat.com>
2732         * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2733         * src/s390/sysv.S: Likewise.
2734         * src/powerpc/ppc_closure.S: Likewise.
2735         * src/powerpc/sysv.S: Likewise.
2736         * src/x86/unix64.S: Likewise.
2737         * src/x86/sysv.S: Likewise.
2738         * src/sparc/v8.S: Likewise.
2739         * src/sparc/v9.S: Likewise.
2740         * src/m68k/sysv.S: Likewise.
2741         * src/arm/sysv.S: Likewise.
2743 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2745         * aclocal.m4: Regenerate.
2746         * configure: Likewise.
2747         * Makefile.in: Likewise.
2748         * include/Makefile.in: Likewise.
2749         * testsuite/Makefile.in: Likewise.
2751 2008-02-12  Bjoern Koenig  <bkoenig@alpha-tierchen.de>
2752             Andreas Tobler  <a.tobler@schweiz.org>
2754         * configure.ac: Add amd64-*-freebsd* target.
2755         * configure: Regenerate.
2757 2008-01-30  H.J. Lu  <hongjiu.lu@intel.com>
2759         PR libffi/34612
2760         * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2761         returning struct.
2763         * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2764         tests.
2766 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2768         * configure: Regenerate.
2770 2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>
2772         * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2774 2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>
2776         PR testsuite/32843
2777         * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2778         signed/unsigned int8/16 for X86_DARWIN.
2779         Updated copyright info.
2780         Handle one and two byte structs with special cif->flags.
2781         * src/x86/ffitarget.h: Add special types for one and two byte structs.
2782         Updated copyright info.
2783         * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2784         sysv.S
2785         Remove code to pop args from the stack after call.
2786         Special-case signed/unsigned for int8/16, one and two byte structs.
2787         (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2788         FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2789         FFI_TYPE_SINT32.
2790         Updated copyright info.
2792 2007-12-08  David Daney  <ddaney@avtrex.com>
2794         * src/mips/n32.S (ffi_call_N32):  Replace dadd with ADDU, dsub with
2795         SUBU, add with ADDU and use smaller code sequences.
2797 2007-12-07  David Daney  <ddaney@avtrex.com>
2799         * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2800         type.
2802 2007-12-06  David Daney  <ddaney@avtrex.com>
2804         * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2805         defined.
2806         (ffi_java_raw): New typedef.
2807         (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2808         ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2809         ffi_java_raw.
2810         (ffi_java_raw_closure) : Same.
2811         (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2812         parameter types.
2813         * src/java_raw_api.c (ffi_java_raw_size):  Replace FFI_SIZEOF_ARG with
2814         FFI_SIZEOF_JAVA_RAW.
2815         (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2816         Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2817         sizeof(ffi_java_raw) for alignment calculations.
2818         (ffi_java_ptrarray_to_raw): Same.
2819         (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
2820         if FFI_SIZEOF_JAVA_RAW == 4.
2821         (ffi_java_raw_to_rvalue): Same.
2822         (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2823         (ffi_java_translate_args): Same.
2824         (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2825         parameter types.
2826         * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2828 2007-12-06  David Daney  <ddaney@avtrex.com>
2830         * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
2831         pointer values.
2833 2007-12-01  Andreas Tobler  <a.tobler@schweiz.org>
2835         PR libffi/31937
2836         * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2837         Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2838         * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2839         set the NUM_FPR_ARG_REGISTERS according to.
2840         Add support for potential soft-float support under hard-float
2841         architecture.
2842         (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2843         FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2844         to the FFI_LINUX_SOFT_FLOAT ABI.
2845         (ffi_prep_cif_machdep): Likewise.
2846         (ffi_closure_helper_SYSV): Likewise.
2847         * src/powerpc/ppc_closure.S: Make sure not to store float/double
2848         on archs where __NO_FPRS__ is true.
2849         Add FFI_TYPE_UINT128 support.
2850         * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2851         Adjust copyright notice.
2853 2007-11-25  Andreas Tobler  <a.tobler@schweiz.org>
2855         * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2856         * include/ffi_common.h: ... here.
2857         Update copyright.
2859 2007-11-17  Andreas Tobler  <a.tobler@schweiz.org>
2861         * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2862         * src/powerpc/linux64.S: Likewise.
2863         * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2864         * testsuite/libffi.call/return_ldl.c: New test.
2866 2007-09-04    <aph@redhat.com>
2868         * src/arm/sysv.S (UNWIND): New.
2869         (Whole file): Conditionally compile unwinder directives.
2870         * src/arm/sysv.S: Add unwinder directives.
2872         * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2873         Only treat r0 as a struct address if we're actually returning a
2874         struct by address.
2875         Only copy the bytes that are actually within a struct.
2876         (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2877         is returned in r0, not passed by address.
2878         (ffi_call): Allocate a word-sized temporary for the case where
2879         a composite is returned in r0.
2880         (ffi_prep_incoming_args_SYSV): Align as necessary.
2882 2007-08-05  Steven Newbury  <s_j_newbury@yahoo.co.uk>
2884         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
2885         directly using the sys_cacheflush syscall.
2887 2007-07-27  Andrew Haley  <aph@redhat.com>
2889         * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2891 2007-09-03  Maciej W. Rozycki  <macro@linux-mips.org>
2893         * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2894         * configure.ac: Likewise.
2895         * Makefile.in: Regenerate.
2896         * include/Makefile.in: Likewise.
2897         * testsuite/Makefile.in: Likewise.
2898         * configure: Likewise.
2900 2007-08-24  David Daney  <ddaney@avtrex.com>
2902         * testsuite/libffi.call/return_sl.c: New test.
2904 2007-08-10  David Daney  <ddaney@avtrex.com>
2906         * testsuite/libffi.call/cls_multi_ushort.c,
2907         testsuite/libffi.call/cls_align_uint16.c,
2908         testsuite/libffi.call/nested_struct1.c,
2909         testsuite/libffi.call/nested_struct3.c,
2910         testsuite/libffi.call/cls_7_1_byte.c,
2911         testsuite/libffi.call/nested_struct5.c,
2912         testsuite/libffi.call/cls_double.c,
2913         testsuite/libffi.call/nested_struct7.c,
2914         testsuite/libffi.call/cls_sint.c,
2915         testsuite/libffi.call/nested_struct9.c,
2916         testsuite/libffi.call/cls_20byte1.c,
2917         testsuite/libffi.call/cls_multi_sshortchar.c,
2918         testsuite/libffi.call/cls_align_sint64.c,
2919         testsuite/libffi.call/cls_3byte2.c,
2920         testsuite/libffi.call/cls_multi_schar.c,
2921         testsuite/libffi.call/cls_multi_uchar.c,
2922         testsuite/libffi.call/cls_19byte.c,
2923         testsuite/libffi.call/cls_9byte1.c,
2924         testsuite/libffi.call/cls_align_float.c,
2925         testsuite/libffi.call/closure_fn1.c,
2926         testsuite/libffi.call/problem1.c,
2927         testsuite/libffi.call/closure_fn3.c,
2928         testsuite/libffi.call/cls_sshort.c,
2929         testsuite/libffi.call/closure_fn5.c,
2930         testsuite/libffi.call/cls_align_double.c,
2931         testsuite/libffi.call/nested_struct.c,
2932         testsuite/libffi.call/cls_2byte.c,
2933         testsuite/libffi.call/nested_struct10.c,
2934         testsuite/libffi.call/cls_4byte.c,
2935         testsuite/libffi.call/cls_6byte.c,
2936         testsuite/libffi.call/cls_8byte.c,
2937         testsuite/libffi.call/cls_multi_sshort.c,
2938         testsuite/libffi.call/cls_align_sint16.c,
2939         testsuite/libffi.call/cls_align_uint32.c,
2940         testsuite/libffi.call/cls_20byte.c,
2941         testsuite/libffi.call/cls_float.c,
2942         testsuite/libffi.call/nested_struct2.c,
2943         testsuite/libffi.call/cls_5_1_byte.c,
2944         testsuite/libffi.call/nested_struct4.c,
2945         testsuite/libffi.call/cls_24byte.c,
2946         testsuite/libffi.call/nested_struct6.c,
2947         testsuite/libffi.call/cls_64byte.c,
2948         testsuite/libffi.call/nested_struct8.c,
2949         testsuite/libffi.call/cls_uint.c,
2950         testsuite/libffi.call/cls_multi_ushortchar.c,
2951         testsuite/libffi.call/cls_schar.c,
2952         testsuite/libffi.call/cls_uchar.c,
2953         testsuite/libffi.call/cls_align_uint64.c,
2954         testsuite/libffi.call/cls_ulonglong.c,
2955         testsuite/libffi.call/cls_align_longdouble.c,
2956         testsuite/libffi.call/cls_1_1byte.c,
2957         testsuite/libffi.call/cls_12byte.c,
2958         testsuite/libffi.call/cls_3_1byte.c,
2959         testsuite/libffi.call/cls_3byte1.c,
2960         testsuite/libffi.call/cls_4_1byte.c,
2961         testsuite/libffi.call/cls_6_1_byte.c,
2962         testsuite/libffi.call/cls_16byte.c,
2963         testsuite/libffi.call/cls_18byte.c,
2964         testsuite/libffi.call/closure_fn0.c,
2965         testsuite/libffi.call/cls_9byte2.c,
2966         testsuite/libffi.call/closure_fn2.c,
2967         testsuite/libffi.call/closure_fn4.c,
2968         testsuite/libffi.call/cls_ushort.c,
2969         testsuite/libffi.call/closure_fn6.c,
2970         testsuite/libffi.call/cls_5byte.c,
2971         testsuite/libffi.call/cls_align_pointer.c,
2972         testsuite/libffi.call/cls_7byte.c,
2973         testsuite/libffi.call/cls_align_sint32.c,
2974         testsuite/libffi.special/unwindtest_ffi_call.cc,
2975         testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2977 2007-08-10  David Daney  <ddaney@avtrex.com>
2979         PR libffi/28313
2980         * configure.ac: Don't treat mips64 as a special case.
2981         * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2982         * configure: Regenerate
2983         * Makefile.in: Ditto.
2984         * fficonfig.h.in: Ditto.
2985         * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2986         (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2987         (FFI_DEFAULT_ABI): Set for n64 case.
2988         (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2989         * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2990         (ffi_closure_N32): New function.
2991         (.eh_frame): New section
2992         * src/mips/o32.S: Clean up comments.
2993         (ffi_closure_O32): Pass ffi_closure parameter in $12.
2994         * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2995         _MIPS_SIM == _ABIN32 throughout.
2996         (FFI_MIPS_STOP_HERE): New, use in place of
2997         ffi_stop_here.
2998         (ffi_prep_args): Use unsigned long to hold pointer values.  Rewrite
2999         to support n32/n64 ABIs.
3000         (calc_n32_struct_flags): Rewrite.
3001         (calc_n32_return_struct_flags): Remove unused variable.  Reverse
3002         position of flag bits.
3003         (ffi_prep_cif_machdep): Rewrite n32 portion.
3004         (ffi_call): Enable for n64.  Add special handling for small structure
3005         return values.
3006         (ffi_prep_closure_loc): Add n32 and n64 support.
3007         (ffi_closure_mips_inner_O32): Add cast to silence warning.
3008         (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
3010 2007-08-08  David Daney  <ddaney@avtrex.com>
3012         * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
3013         * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
3014         specifiers.
3015         * testsuite/libffi.call/nested_struct1.c (main): Ditto.
3016         * testsuite/libffi.call/cls_sint.c (main): Ditto.
3017         * testsuite/libffi.call/nested_struct9.c (main): Ditto.
3018         * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
3019         * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
3020         * testsuite/libffi.call/closure_fn1.c (main): Ditto.
3021         * testsuite/libffi.call/closure_fn3.c (main): Ditto.
3022         * testsuite/libffi.call/return_dbl2.c (main): Ditto.
3023         * testsuite/libffi.call/cls_sshort.c (main): Ditto.
3024         * testsuite/libffi.call/return_fl3.c (main): Ditto.
3025         * testsuite/libffi.call/closure_fn5.c (main): Ditto.
3026         * testsuite/libffi.call/nested_struct.c (main): Ditto.
3027         * testsuite/libffi.call/nested_struct10.c (main): Ditto.
3028         * testsuite/libffi.call/return_ll1.c (main): Ditto.
3029         * testsuite/libffi.call/cls_8byte.c (main): Ditto.
3030         * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
3031         * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
3032         * testsuite/libffi.call/cls_20byte.c (main): Ditto.
3033         * testsuite/libffi.call/nested_struct2.c (main): Ditto.
3034         * testsuite/libffi.call/cls_24byte.c (main): Ditto.
3035         * testsuite/libffi.call/nested_struct6.c (main): Ditto.
3036         * testsuite/libffi.call/cls_uint.c (main): Ditto.
3037         * testsuite/libffi.call/cls_12byte.c (main): Ditto.
3038         * testsuite/libffi.call/cls_16byte.c (main): Ditto.
3039         * testsuite/libffi.call/closure_fn0.c (main): Ditto.
3040         * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
3041         * testsuite/libffi.call/closure_fn2.c (main): Ditto.
3042         * testsuite/libffi.call/return_dbl1.c (main): Ditto.
3043         * testsuite/libffi.call/closure_fn4.c (main): Ditto.
3044         * testsuite/libffi.call/closure_fn6.c (main): Ditto.
3045         * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
3047 2007-08-07  Andrew Haley  <aph@redhat.com>
3049         * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
3050         checkin.
3052 2007-08-06  Andrew Haley  <aph@redhat.com>
3054         PR testsuite/32843
3055         * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
3056         FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
3057         FFI_TYPE_SINT32.
3059 2007-08-02  David Daney  <ddaney@avtrex.com>
3061         * testsuite/libffi.call/return_ul.c (main): Define return type as
3062         ffi_arg.  Use proper printf conversion specifier.
3064 2007-07-30  Andrew Haley  <aph@redhat.com>
3066         PR testsuite/32843
3067         * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
3068         signed/unsigned int8/16.
3069         * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
3070         Use a jump table.
3071         Remove code to pop args from the stack after call.
3072         Special-case signed/unsigned int8/16.
3073         * testsuite/libffi.call/return_sc.c (main): Revert.
3075 2007-07-26  Richard Guenther  <rguenther@suse.de>
3077         PR testsuite/32843
3078         * testsuite/libffi.call/return_sc.c (main): Verify call
3079         result as signed char, not ffi_arg.
3081 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3083         * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
3084         * configure: Regenerate.
3086 2007-07-11  David Daney  <ddaney@avtrex.com>
3088         * src/mips/ffi.c: Don't include sys/cachectl.h.
3089         (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
3090         cacheflush().
3092 2007-05-18  Aurelien Jarno  <aurelien@aurel32.net>
3094         * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
3095         from (ffi_prep_closure): ... this.
3096         (FFI_INIT_TRAMPOLINE): Adjust.
3098 2005-12-31  Phil Blundell  <pb@reciva.com>
3100         * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
3101         ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
3102         * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
3103         * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3104         (FFI_CLOSURES): Enable closure support.
3106 2007-07-03  Andrew Haley  <aph@hedges.billgatliff.com>
3108         * testsuite/libffi.call/cls_multi_ushort.c,
3109         testsuite/libffi.call/cls_align_uint16.c,
3110         testsuite/libffi.call/nested_struct1.c,
3111         testsuite/libffi.call/nested_struct3.c,
3112         testsuite/libffi.call/cls_7_1_byte.c,
3113         testsuite/libffi.call/cls_double.c,
3114         testsuite/libffi.call/nested_struct5.c,
3115         testsuite/libffi.call/nested_struct7.c,
3116         testsuite/libffi.call/cls_sint.c,
3117         testsuite/libffi.call/nested_struct9.c,
3118         testsuite/libffi.call/cls_20byte1.c,
3119         testsuite/libffi.call/cls_multi_sshortchar.c,
3120         testsuite/libffi.call/cls_align_sint64.c,
3121         testsuite/libffi.call/cls_3byte2.c,
3122         testsuite/libffi.call/cls_multi_schar.c,
3123         testsuite/libffi.call/cls_multi_uchar.c,
3124         testsuite/libffi.call/cls_19byte.c,
3125         testsuite/libffi.call/cls_9byte1.c,
3126         testsuite/libffi.call/cls_align_float.c,
3127         testsuite/libffi.call/closure_fn1.c,
3128         testsuite/libffi.call/problem1.c,
3129         testsuite/libffi.call/closure_fn3.c,
3130         testsuite/libffi.call/cls_sshort.c,
3131         testsuite/libffi.call/closure_fn5.c,
3132         testsuite/libffi.call/cls_align_double.c,
3133         testsuite/libffi.call/cls_2byte.c,
3134         testsuite/libffi.call/nested_struct.c,
3135         testsuite/libffi.call/nested_struct10.c,
3136         testsuite/libffi.call/cls_4byte.c,
3137         testsuite/libffi.call/cls_6byte.c,
3138         testsuite/libffi.call/cls_8byte.c,
3139         testsuite/libffi.call/cls_multi_sshort.c,
3140         testsuite/libffi.call/cls_align_uint32.c,
3141         testsuite/libffi.call/cls_align_sint16.c,
3142         testsuite/libffi.call/cls_float.c,
3143         testsuite/libffi.call/cls_20byte.c,
3144         testsuite/libffi.call/cls_5_1_byte.c,
3145         testsuite/libffi.call/nested_struct2.c,
3146         testsuite/libffi.call/cls_24byte.c,
3147         testsuite/libffi.call/nested_struct4.c,
3148         testsuite/libffi.call/nested_struct6.c,
3149         testsuite/libffi.call/cls_64byte.c,
3150         testsuite/libffi.call/nested_struct8.c,
3151         testsuite/libffi.call/cls_uint.c,
3152         testsuite/libffi.call/cls_multi_ushortchar.c,
3153         testsuite/libffi.call/cls_schar.c,
3154         testsuite/libffi.call/cls_uchar.c,
3155         testsuite/libffi.call/cls_align_uint64.c,
3156         testsuite/libffi.call/cls_ulonglong.c,
3157         testsuite/libffi.call/cls_align_longdouble.c,
3158         testsuite/libffi.call/cls_1_1byte.c,
3159         testsuite/libffi.call/cls_12byte.c,
3160         testsuite/libffi.call/cls_3_1byte.c,
3161         testsuite/libffi.call/cls_3byte1.c,
3162         testsuite/libffi.call/cls_4_1byte.c,
3163         testsuite/libffi.call/cls_6_1_byte.c,
3164         testsuite/libffi.call/cls_16byte.c,
3165         testsuite/libffi.call/cls_18byte.c,
3166         testsuite/libffi.call/closure_fn0.c,
3167         testsuite/libffi.call/cls_9byte2.c,
3168         testsuite/libffi.call/closure_fn2.c,
3169         testsuite/libffi.call/closure_fn4.c,
3170         testsuite/libffi.call/cls_ushort.c,
3171         testsuite/libffi.call/closure_fn6.c,
3172         testsuite/libffi.call/cls_5byte.c,
3173         testsuite/libffi.call/cls_align_pointer.c,
3174         testsuite/libffi.call/cls_7byte.c,
3175         testsuite/libffi.call/cls_align_sint32.c,
3176         testsuite/libffi.special/unwindtest_ffi_call.cc,
3177         testsuite/libffi.special/unwindtest.cc: Enable for ARM.
3179 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3181         * aclocal.m4: Regenerated.
3183 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
3185         * configure: Regenerate.
3187 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
3189         * Makefile.in: Regenerate.
3190         * configure: Regenerate.
3191         * aclocal.m4: Regenerate.
3192         * include/Makefile.in: Regenerate.
3193         * testsuite/Makefile.in: Regenerate.
3195 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
3197         * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3198         ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3199         * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3200         * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3201         (FFI_CLOSURES): Enable closure support.
3203 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
3205         * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3206         * configure: Regenerate.
3207         * fficonfig.h.in: Regenerate.
3208         * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3209         CFI_OFFSET,CFI_DEF_CFA): New macros.
3210         (ffi_call_SYSV): Add callframe annotation.
3212 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
3214         * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3215         numerous test suite failures.
3216         * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3218 2007-04-11  Paolo Bonzini  <bonzini@gnu.org>
3220         * Makefile.am (EXTRA_DIST): Bring up to date.
3221         * Makefile.in: Regenerate.
3222         * src/frv/eabi.S: Remove RCS keyword.
3224 2007-04-06  Richard Henderson  <rth@redhat.com>
3226         * configure.ac: Tidy target case.
3227         (HAVE_LONG_DOUBLE): Allow the target to override.
3228         * configure: Regenerate.
3229         * include/ffi.h.in: Don't define ffi_type_foo if
3230         LIBFFI_HIDE_BASIC_TYPES is defined.
3231         (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3232         to ffi_type_double.
3233         * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3234         (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3235         (ffi_type_longdouble): Special case for Alpha.  Don't define
3236         if long double == double.
3238         * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3239         (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3240         (ffi_call, ffi_closure_osf_inner): Likewise.
3241         (ffi_closure_osf_inner): Likewise.  Mark hidden.
3242         (ffi_call_osf, ffi_closure_osf): Mark hidden.
3243         * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3244         * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3245         (load_table): Handle 128-bit long double.
3247         * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3249 2007-04-06  Tom Tromey  <tromey@redhat.com>
3251         PR libffi/31491:
3252         * README: Fixed bug in example.
3254 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
3256         * src/closures.c: Include sys/statfs.h.
3257         (_GNU_SOURCE): Define on Linux.
3258         (FFI_MMAP_EXEC_SELINUX): Define.
3259         (selinux_enabled): New variable.
3260         (selinux_enabled_check): New function.
3261         (is_selinux_enabled): Define.
3262         (dlmmap): Use it.
3264 2007-03-24  Uros Bizjak  <ubizjak@gmail.com>
3266         * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3267         Use 'volatile float sum' to create sum of floats to avoid false
3268         negative due to excess precision on ix86 targets.
3269         (main): Ditto.
3271 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
3273         * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3274         patch.
3275         (ffi_prep_closure_loc): Remove unneeded casts.  Add needed ones.
3277 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
3279         * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3280         (ffi_prep_closure_loc): New.
3281         (ffi_prep_raw_closure_loc): New.
3282         (ffi_prep_java_raw_closure_loc): New.
3283         * src/closures.c: New file.
3284         * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3285         Replace sflags with exec_offset.
3286         [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3287         sub_segment_exec_offset): New macros.
3288         (get_segment_flags, set_segment_flags, check_segment_merge): New
3289         macros.
3290         (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3291         (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3292         destroy_mspace): Use new macros.
3293         (sys_alloc): Silence warning.
3294         * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3295         * Makefile.in: Rebuilt.
3296         * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3297         terms of ffi_prep_closure_loc.
3298         * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3299         from...
3300         (ffi_prep_raw_closure): ... this.  Re-implement in terms of the
3301         renamed version.
3302         * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3303         adjusted from...
3304         (ffi_prep_java_raw_closure): ... this.  Re-implement in terms of
3305         the renamed version.
3306         * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3307         (ffi_prep_closure): ... this.
3308         * src/pa/ffi.c: Likewise.
3309         * src/cris/ffi.c: Likewise.  Adjust.
3310         * src/frv/ffi.c: Likewise.
3311         * src/ia64/ffi.c: Likewise.
3312         * src/mips/ffi.c: Likewise.
3313         * src/powerpc/ffi_darwin.c: Likewise.
3314         * src/s390/ffi.c: Likewise.
3315         * src/sh/ffi.c: Likewise.
3316         * src/sh64/ffi.c: Likewise.
3317         * src/sparc/ffi.c: Likewise.
3318         * src/x86/ffi64.c: Likewise.
3319         * src/x86/ffi.c: Likewise.
3320         (FFI_INIT_TRAMPOLINE): Adjust.
3321         (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3322         (ffi_prep_raw_closure): ... this.
3323         * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3324         (ffi_prep_closure): ... this.
3325         (flush_icache): Adjust.
3327 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
3329         * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3330         Lea's malloc.
3332 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3334         * Makefile.am: Add dummy install-pdf target.
3335         * Makefile.in: Regenerate
3337 2007-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3339         * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3340         ffi_closure_helper_SYSV): Add long double handling.
3342 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3344         * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3345         immediately after bctrl instruction.
3347 2007-01-18  Alexandre Oliva  <aoliva@redhat.com>
3349         * Makefile.am (all-recursive, install-recursive,
3350         mostlyclean-recursive, clean-recursive, distclean-recursive,
3351         maintainer-clean-recursive): Add missing targets.
3352         * Makefile.in: Rebuilt.
3354 2006-12-14  Andreas Tobler  <a.tobler@schweiz.org>
3356         * configure.ac: Add TARGET for x86_64-*-darwin*.
3357         * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3358         for X86_DARWIN.
3359         * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3360         * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3361         * configure: Regenerate.
3362         * Makefile.in: Regenerate.
3363         * include/Makefile.in: Regenerate.
3364         * testsuite/Makefile.in: Regenerate.
3365         * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3366         ffi_call only.
3368 2006-12-13  Andreas Tobler <a.tobler@schweiz.org>
3370         * aclocal.m4: Regenerate with aclocal -I .. as written in the
3371         Makefile.am.
3373 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
3375         * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3376         (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3377         Darwin.
3378         * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3379         * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3381 2006-10-10  Paolo Bonzini  <bonzini@gnu.org>
3382             Sandro Tolaini  <tolaini@libero.it>
3384         * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
3385         conditional.
3386         * configure: Regenerated.
3387         * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3388         (EXTRA_DIST): Add src/x86/darwin.S.
3389         * Makefile.in: Regenerated.
3390         * include/Makefile.in: Regenerated.
3391         * testsuite/Makefile.in: Regenerated.
3393         * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3394         X86_WIN32, and additionally align stack to 16 bytes.
3395         * src/x86/darwin.S: New, based on sysv.S.
3396         * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3398 2006-09-12  David Daney  <ddaney@avtrex.com>
3400         PR libffi/23935
3401         * include/Makefile.am: Install both ffi.h and ffitarget.h in
3402         $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3403         * aclocal.m4: Regenerated for automake 1.9.6.
3404         * Makefile.in: Regenerated.
3405         * include/Makefile.in: Regenerated.
3406         * testsuite/Makefile.in: Regenerated.
3408 2006-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
3410         * include/ffi_common.h (struct): Revert accidental commit.
3412 2006-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
3414         * include/ffi_common.h: Remove lint directives.
3415         * include/ffi.h.in: Likewise.
3417 2006-07-25  Torsten Schoenfeld  <kaffeetisch@gmx.de>
3419         * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3420         for 32-bit architectures.
3421         * testsuite/libffi.call/return_ul.c: New test case.
3423 2006-07-19  David Daney  <ddaney@avtrex.com>
3425         * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3426         xfail remains for mips64.
3428 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3430         * Makefile.am: Add install-html target. Add install-html to .PHONY
3431         * Makefile.in: Regenerate.
3432         * aclocal.m4: Regenerate.
3433         * include/Makefile.in: Regenerate.
3434         * testsuite/Makefile.in: Regenerate.
3436 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3438         * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3439         stack slot.
3441 2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>
3443         * README: Remove notice about 'Crazy Comments'.
3444         * src/debug.c: Remove lint directives. Cleanup white spaces.
3445         * src/java_raw_api.c: Likewise.
3446         * src/prep_cif.c: Likewise.
3447         * src/raw_api.c: Likewise.
3448         * src/ffitest.c: Delete. No longer needed, all test cases migrated
3449         to the testsuite.
3450         * src/arm/ffi.c: Remove lint directives.
3451         * src/m32r/ffi.c: Likewise.
3452         * src/pa/ffi.c: Likewise.
3453         * src/powerpc/ffi.c: Likewise.
3454         * src/powerpc/ffi_darwin.c: Likewise.
3455         * src/sh/ffi.c: Likewise.
3456         * src/sh64/ffi.c: Likewise.
3457         * src/x86/ffi.c: Likewise.
3458         * testsuite/libffi.call/float2.c: Likewise.
3459         * testsuite/libffi.call/promotion.c: Likewise.
3460         * testsuite/libffi.call/struct1.c: Likewise.
3462 2006-04-13  Andreas Tobler  <a.tobler@schweiz.ch>
3464         * src/pa/hpux32.S: Correct unwind offset calculation for
3465         ffi_closure_pa32.
3466         * src/pa/linux.S: Likewise.
3468 2006-04-12  James E Wilson  <wilson@specifix.com>
3470         PR libgcj/26483
3471         * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3472         (hfa_type_load): Call stf_spill.
3473         (hfa_type_store): Call ldf_fill.
3474         (ffi_call): Adjust calls to above routines.  Add local temps for
3475         macro result.
3477 2006-04-10  Matthias Klose  <doko@debian.org>
3479         * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3480         directory names containing underscores.
3482 2006-04-07  James E Wilson  <wilson@specifix.com>
3484         * testsuite/libffi.call/float4.c: New testcase.
3486 2006-04-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3487             Andreas Tobler  <a.tobler@schweiz.ch>
3489         * Makefile.am: Add PA_HPUX port.
3490         * Makefile.in: Regenerate.
3491         * include/Makefile.in: Likewise.
3492         * testsuite/Makefile.in: Likewise.
3493         * configure.ac: Add PA_HPUX rules.
3494         * configure: Regenerate.
3495         * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3496         Add PA_HPUX and PA64_HPUX.
3497         Rename FFI_LINUX ABI to FFI_PA32 ABI.
3498         (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3499         (FFI_TYPE_SMALL_STRUCT2): Define.
3500         (FFI_TYPE_SMALL_STRUCT4): Likewise.
3501         (FFI_TYPE_SMALL_STRUCT8): Likewise.
3502         (FFI_TYPE_SMALL_STRUCT3): Redefine.
3503         (FFI_TYPE_SMALL_STRUCT5): Likewise.
3504         (FFI_TYPE_SMALL_STRUCT6): Likewise.
3505         (FFI_TYPE_SMALL_STRUCT7): Likewise.
3506         * src/pa/ffi.c (ROUND_DOWN): Delete.
3507         (fldw, fstw, fldd, fstd): Use '__asm__'.
3508         (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3509         FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3510         (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3511         Simplify incrementing of stack slot variable. Change type of local
3512         'n' to unsigned int.
3513         (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3514         double on PA_HPUX.
3515         (ffi_prep_cif_machdep): Likewise.
3516         (ffi_call): Likewise.
3517         (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3518         return type to ffi_status. Simplify incrementing of stack slot
3519         variable. Only copy floating point argument registers when PA_LINUX
3520         is true. Reformat debug statement.
3521         Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3522         FFI_TYPE_SMALL_STRUCT8.
3523         (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3524         declaration.
3525         (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3526         Add nops to cache flush.  Add trampoline for PA_HPUX.
3527         * src/pa/hpux32.S: New file.
3528         * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3529         ffi_prep_args_LINUX to ffi_prep_args_pa32.
3530         Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3531         unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3532         argument type checks so that common argument types appear first.
3533         (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3534         ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3536 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
3538         * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX.  Default
3539         for 32-bit using IBM extended double format.  Fix FFI_LAST_ABI.
3540         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3541         FFI_TYPE_LONGDOUBLE.
3542         (ffi_prep_args64): Assert using IBM extended double.
3543         (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3544         Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3545         (ffi_call): Handle FFI_LINUX.
3546         (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3547         gpr3 return pointer as for struct return.  Handle FFI_LINUX
3548         FFI_TYPE_LONGDOUBLE return and args.  Don't increment "nf"
3549         unnecessarily.
3550         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3551         for FFI_TYPE_LONGDOUBLE.  Move epilogue insns into case table.
3552         Don't use r6 as pointer to results, instead use sp offset.  Don't
3553         make a special call to load lr with case table address, instead
3554         use offset from previous call.
3555         * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3556         * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3557         return.
3559 2006-03-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3561         * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3562         passed with FP registers correctly.
3563         (ffi_closure_helper_SYSV): Likewise.
3564         * src/sh64/sysv.S: Likewise.
3566 2006-03-01  Andreas Tobler  <a.tobler@schweiz.ch>
3568         * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3569         args and userdata unused.
3570         (closure_test_fn1): Mark cif and userdata unused.
3571         (main): Remove unused res.
3573 2006-02-28  Andreas Tobler  <a.tobler@schweiz.ch>
3575         * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3576         -O2, -O3, -Os and the warning flags -W -Wall.
3577         * testsuite/libffi.special/special.exp: Likewise.
3578         * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3579         unused parameter unused for gcc or else do nothing.
3580         * testsuite/libffi.special/ffitestcxx.h: Likewise.
3581         * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3582         and userdata unused.
3583         * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3584         * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3585         * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3586         * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3587         * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3588         * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3589         * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3590         * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3591         * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3592         * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3593         * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3594         * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3595         * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3596         * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3597         * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3598         * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3599         * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3600         * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3601         * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3602         * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3603         * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3604         * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3605         * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3606         * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3607         Likewise.
3608         * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3609         Likewise.
3610         * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3611         Likewise.
3612         * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3613         void* to avoid compiler warning.
3614         (main): Likewise.
3615         (cls_struct_align_gn): Mark cif and userdata unused.
3616         * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3617         Likewise.
3618         * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3619         Likewise.
3620         * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3621         Likewise.
3622         * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3623         Likewise.
3624         * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3625         Likewise.
3626         * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3627         * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3628         * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3629         data unused.
3630         (main): Cast res_call to silence gcc.
3631         * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3632         data unused.
3633         (main): Cast res_call to silence gcc.
3634         * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3635         and data unused.
3636         (main): Cast res_call to silence gcc.
3637         * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3638         data unused.
3639         (main): Cast res_call to silence gcc.
3640         * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3641         data unused.
3642         (main): Cast res_call to silence gcc.
3643         * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3644         and data unused.
3645         (main): Cast res_call to silence gcc.
3646         * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3647         userdata unused.
3648         (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3649         * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3650         userdata unused.
3651         (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3652         * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3653         userdata unused.
3654         (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3655         * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn):  Mark cif and
3656         userdata unused.
3657         (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3658         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3659         userdata unused.
3660         (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3661         * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3662         and userdata unused.
3663         * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3664         userdata unused.
3665         (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3666         * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3667         * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3668         Cleanup white spaces.
3669         * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3670         * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3671         cif and userdata unused.
3672         * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3673         Likewise.
3674         * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3675         * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3676         formatters to silence gcc.
3677         (B_gn): Mark cif and userdata unused.
3678         * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3679         unused.
3680         * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3681         (B_gn): Mark cif and userdata unused.
3682         * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3683         unused.
3684         * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3685         (B_gn): Mark cif and userdata unused.
3686         * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3687         unused.
3688         * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3689         * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3690         * testsuite/libffi.call/problem1.c (stub): Likewise.
3691         * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3692         gcc.
3693         * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3694         in the last commit for this test case in the test case itself.
3695         * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3696         unused.
3697         * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3698         * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3699         * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3700         * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3701         * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3702         * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3704 2006-02-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3706         * src/sh/sysv.S: Fix register numbers in the FDE for
3707         ffi_closure_SYSV.
3709 2006-02-20  Andreas Tobler  <a.tobler@schweiz.ch>
3711         * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3712         declaration to avoid a false negative on ix86. See PR323.
3714 2006-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3716         * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3717         and cast integer to void * if needed.  Update the pointer to
3718         the FP register saved area correctly.
3720 2006-02-17  Andreas Tobler  <a.tobler@schweiz.ch>
3722         * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3723         is fixed.
3724         * testsuite/libffi.call/nested_struct4.c: Likewise.
3726 2006-02-16  Andreas Tobler  <a.tobler@schweiz.ch>
3728         * testsuite/libffi.call/return_dbl.c: New test case.
3729         * testsuite/libffi.call/return_dbl1.c: Likewise.
3730         * testsuite/libffi.call/return_dbl2.c: Likewise.
3731         * testsuite/libffi.call/return_fl.c: Likewise.
3732         * testsuite/libffi.call/return_fl1.c: Likewise.
3733         * testsuite/libffi.call/return_fl2.c: Likewise.
3734         * testsuite/libffi.call/return_fl3.c: Likewise.
3735         * testsuite/libffi.call/closure_fn6.c: Likewise.
3737         * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3738         definition.
3739         * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3740         here to be used by other test cases too.
3742         * testsuite/libffi.call/nested_struct10.c: New test case.
3743         * testsuite/libffi.call/nested_struct9.c: Likewise.
3744         * testsuite/libffi.call/nested_struct8.c: Likewise.
3745         * testsuite/libffi.call/nested_struct7.c: Likewise.
3746         * testsuite/libffi.call/nested_struct6.c: Likewise.
3747         * testsuite/libffi.call/nested_struct5.c: Likewise.
3748         * testsuite/libffi.call/nested_struct4.c: Likewise.
3750 2006-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
3752         * configure.ac: Enable libffi for sparc64-*-freebsd*.
3753         * configure: Rebuilt.
3755 2006-01-18  Jakub Jelinek  <jakub@redhat.com>
3757         * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3758         instead do the shifting inline.
3759         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3760         shift count unconditionally.  Simplify load sequences for 1, 2, 3, 4
3761         and 8 byte structs, for the remaining struct sizes don't call
3762         __lshrdi3, instead do the shifting inline.
3764 2005-12-07  Thiemo Seufer  <ths@networkno.de>
3766         * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3767         missing parentheses.
3768         * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3769         and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3770         (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3771         A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3772         V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3773         FA_0_0_OFF2.
3774         * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3775         endianness bugs.
3776         (ffi_prep_closure): Improve trampoline instruction scheduling.
3777         (ffi_closure_mips_inner_O32): Fix endianness bugs.
3779 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
3781         * src/powerpc/ffi.c: Formatting.
3782         (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3783         (ffi_prep_args64): Likewise.
3785 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
3787         * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3788         darwin, use -shared-libgcc not -lgcc_s, and explain why.
3790 2005-09-26  Tom Tromey  <tromey@redhat.com>
3792         * testsuite/libffi.call/float1.c (value_type): New typedef.
3793         (CANARY): New define.
3794         (main): Check for result buffer overflow.
3795         * src/powerpc/linux64.S: Handle linux64 long double returns.
3796         * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3797         (ffi_prep_cif_machdep): Handle linux64 long double returns.
3799 2005-08-25  Alan Modra  <amodra@bigpond.net.au>
3801         PR target/23404
3802         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3803         homed fp args.
3804         (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3806 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
3808         * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3809         (AH_BOTTOM): Add FFI_HIDDEN definition.
3810         * configure: Rebuilt.
3811         * fficonfig.h.in: Rebuilt.
3812         * src/powerpc/ffi.c (hidden): Remove.
3813         (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3814         ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3815         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3816         .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3817         * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3818         add FFI_HIDDEN to its prototype.
3819         (ffi_closure_SYSV_inner): New.
3820         * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3821         * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3823 2005-08-10  Alfred M. Szmidt  <ams@gnu.org>
3825         PR libffi/21819:
3826         * configure: Rebuilt.
3827         * configure.ac: Handle i*86-*-gnu*.
3829 2005-08-09  Jakub Jelinek  <jakub@redhat.com>
3831         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3832         DW_CFA_offset_extended_sf rather than
3833         DW_CFA_GNU_negative_offset_extended.
3834         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3836 2005-07-22  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3838         * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3839         on sh3.
3840         (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3841         * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3842         partially on register.
3843         (ffi_closure_helper_SYSV): Likewise.
3844         (ffi_prep_cif_machdep): Don't set too many cif->flags.
3846 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3848         * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3849         Remove empty line.
3850         * src/sh64/ffi.c (simple_type): Remove.
3851         (return_type): Handle small structures correctly.
3852         (ffi_prep_args): Likewise.
3853         (ffi_call): Likewise.
3854         (ffi_closure_helper_SYSV): Likewise.
3855         * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3856         Emit position independent code if PIC and remove wrong datalabel
3857         prefixes from EH data.
3859 2005-07-19  Andreas Tobler  <a.tobler@schweiz.ch>
3861         * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3862         * Makefile.in: Regenerate.
3863         * include/Makefile.in: Likewise.
3864         * testsuite/Makefile.in: Likewise.
3865         * configure.ac: Add POWERPC_FREEBSD rules.
3866         * configure: Regenerate.
3867         * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3868         (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3869         * src/powerpc/ffi.c: Add flags to handle small structure returns
3870         in ffi_call_SYSV.
3871         (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3872         Aka FFI_SYSV.
3873         (ffi_closure_helper_SYSV): Likewise.
3874         * src/powerpc/ppc_closure.S: Add return types for small structures.
3875         * src/powerpc/sysv.S: Add bits to handle small structures for
3876         final SYSV 4 ABI.
3878 2005-07-10  Andreas Tobler  <a.tobler@schweiz.ch>
3880         * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3881         * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3882         * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3884 2005-07-05  Randolph Chung  <tausq@debian.org>
3886         * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3887         as FFI_TYPE_SMALL_STRUCT3.  Break out handling for 5-7 byte
3888         structures.  Kill compilation warnings.
3889         (ffi_closure_inner_LINUX): Print return values as hex in debug
3890         message.  Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3891         Properly handle 5-7 byte structure returns.
3892         * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3893         (FFI_TYPE_SMALL_STRUCT2): Remove.
3894         (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3895         (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3896         * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3897         (checksmst1, checksmst2): Remove.
3898         (checksmst3): Optimize handling of 3-byte struct returns.
3899         (checksmst567): Properly handle 5-7 byte struct returns.
3901 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3903         PR libgcj/21943
3904         * src/mips/n32.S: Enforce PIC code.
3905         * src/mips/o32.S: Likewise.
3907 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3909         * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3910         * configure: Regenerate.
3912 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
3914         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3915         to call ffi_closure_helper_SYSV.  Append @local instead.
3916         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3918 2005-05-17  Kelley Cook  <kcook@gcc.gnu.org>
3920         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3921         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3922         * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3923         * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3924         include/Makefile.in, testsuite/Makefile.in: Regenerate.
3926 2005-05-09  Mike Stump  <mrs@apple.com>
3928         * configure: Regenerate.
3930 2005-05-08  Richard Henderson  <rth@redhat.com>
3932         PR libffi/21285
3933         * src/alpha/osf.S: Update unwind into to match code.
3935 2005-05-04  Andreas Degert <ad@papyrus-gmbh.de>
3936             Richard Henderson  <rth@redhat.com>
3938         * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3939         bit 11 of flags.
3940         (ffi_call): Mask return type field.  Pass ssecount to ffi_call_unix64.
3941         (ffi_prep_closure): Set carry bit if sse-used flag set.
3942         * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3943         Only load sse registers if ssecount non-zero.
3944         (ffi_closure_unix64): Only save sse registers if carry set on entry.
3946 2005-04-29  Ralf Corsepius  <ralf.corsepius@rtems.org>
3948         * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3949         powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3950         * configure: Regenerate.
3952 2005-04-20  Hans-Peter Nilsson  <hp@axis.com>
3954         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3955         have Tcl8.3-compatible intermediate variable.
3957 2005-04-18  Simon Posnjak <simon.posnjak@siol.net>
3958             Hans-Peter Nilsson  <hp@axis.com>
3960         * Makefile.am: Add CRIS support.
3961         * configure.ac: Likewise.
3962         * Makefile.in, configure, testsuite/Makefile.in,
3963         include/Makefile.in: Regenerate.
3964         * src/cris: New directory.
3965         * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3966         * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3968         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3969         \r?\n in output tests.
3971 2005-04-12  Mike Stump  <mrs@apple.com>
3973         * configure: Regenerate.
3975 2005-03-30  Hans Boehm  <Hans.Boehm@hp.com>
3977         * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
3979 2005-03-30  Steve Ellcey  <sje@cup.hp.com>
3981         * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3982         (ffi_sarg) Ditto.
3983         * src/ia64/unix.S (ffi_closure_unix): Extend gp
3984         to 64 bits in ILP32 mode.
3985         Load 64 bits even for short data.
3987 2005-03-23  Mike Stump  <mrs@apple.com>
3989         * src/powerpc/darwin.S: Update for -m64 multilib.
3990         * src/powerpc/darwin_closure.S: Likewise.
3992 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
3994         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3995         Do not set tool_include_dir.
3996         * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3997         Regenerate.
3998         * include/Makefile.am: Set gcc_version and toollibffidir.
3999         * include/Makefile.in: Regenerate.
4001 2005-02-22  Andrew Haley  <aph@redhat.com>
4003         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
4004         odd-numbered register pairs for 64-bit integer types.
4006 2005-02-23  Andreas Tobler  <a.tobler@schweiz.ch>
4008         PR libffi/20104
4009         * testsuite/libffi.call/return_ll1.c: New test case.
4011 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
4013         * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
4014         * testsuite/libffi.call/float.c: Ditto.
4015         * testsuite/libffi.call/float2.c: Ditto.
4016         * testsuite/libffi.call/float3.c: Ditto.
4018 2005-02-08  Andreas Tobler  <a.tobler@schweiz.ch>
4020         * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
4022 2005-01-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4024         * testsuite/libffi.special/special.exp (cxx_options): Add
4025         -shared-libgcc.
4027 2004-12-31  Richard Henderson  <rth@redhat.com>
4029         * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
4030         (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF.  Replace size and
4031         offset parameters with a type parameter; deduce size and structure
4032         alignment.  Update all users.
4034 2004-12-31  Richard Henderson  <rth@redhat.com>
4036         * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
4037         (FFI_TYPE_LONGDOUBLE): Fix for ia64.
4038         * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
4039         into ffi_prep_closure.
4040         * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
4041         from scratch.
4043 2004-12-27  Richard Henderson  <rth@redhat.com>
4045         * src/x86/unix64.S: Fix typo in unwind info.
4047 2004-12-25  Richard Henderson  <rth@redhat.com>
4049         * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
4050         (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
4051         (merge_classes): Check for it.
4052         (SSE_CLASS_P): New.
4053         (classify_argument): Pass byte_offset by value; perform all updates
4054         inside struct case.
4055         (examine_argument): Add classes argument; handle
4056         X86_64_COMPLEX_X87_CLASS.
4057         (ffi_prep_args): Merge into ...
4058         (ffi_call): ... here.  Share stack frame with ffi_call_unix64.
4059         (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
4060         (ffi_fill_return_value): Remove.
4061         (ffi_prep_closure): Remove dead assert.
4062         (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
4063         Rewrite to use struct register_args instead of va_list.  Create
4064         flags for handling structure returns.
4065         * src/x86/unix64.S: Remove dead strings.
4066         (ffi_call_unix64): Rename from ffi_call_UNIX64.  Rewrite to share
4067         stack frame with ffi_call.  Handle structure returns properly.
4068         (float2sse, floatfloat2sse, double2sse): Remove.
4069         (sse2float, sse2double, sse2floatfloat): Remove.
4070         (ffi_closure_unix64): Rename from ffi_closure_UNIX64.  Rewrite
4071         to handle structure returns properly.
4073 2004-12-08  David Edelsohn  <edelsohn@gnu.org>
4075         * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
4076         PICFLAG.
4077         * Makefile.in: Regenerated.
4079 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
4081         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
4082         * configure, aclocal.m4, Makefile.in: Regenerate.
4083         * include/Makefile.in, testsuite/Makefile.in: Regenerate.
4085 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
4087         * configure: Regenerate for libtool change.
4089 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
4091         * configure: Regenerate for libtool reversion.
4093 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
4095         * configure: Regenerate for libtool change.
4097 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4099         * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
4101 2004-11-23  Richard Sandiford  <rsandifo@redhat.com>
4103         * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
4104         of jal.  Use an absolute encoding for the frame information.
4106 2004-11-23  Kelley Cook  <kcook@gcc.gnu.org>
4108         * Makefile.am: Remove no-dependencies.  Add ACLOCAL_AMFLAGS.
4109         * acinclude.m4: Delete logic for sincludes.
4110         * aclocal.m4, Makefile.in, configure: Regenerate.
4111         * include/Makefile: Likewise.
4112         * testsuite/Makefile: Likewise.
4114 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4116         * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
4117         on a 8-byte boundary.
4118         * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
4120 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
4122         * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
4123         long long values.  Round stack allocation to a multiple of 8 bytes
4124         for ATPCS compatibility.
4125         * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
4126         names.  Handle returning long long types.  Add Thumb and interworking
4127         support.  Improve soft-float code.
4129 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
4131         * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
4132         (libffi_exit): New function.
4133         (libffi_init): Build the testglue wrapper if needed.
4135 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4137         PR other/18138
4138         * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
4140 2004-10-25  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4142         * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
4144 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4146         * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
4147         * testsuite/libffi.call/float3.c: New test case.
4149 2004-10-18  Kaz Kojima  <kkojima@gcc.gnu.org>
4151         * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
4152         the function returning a structure pointed with R2.
4153         * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
4154         the structure return value if T bit set.  Emit position
4155         independent code and EH data if PIC.
4157 2004-10-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4159         * Makefile.am: Add m32r support.
4160         * configure.ac: Likewise.
4161         * Makefile.in: Regenerate.
4162         * confiugre: Regenerate.
4163         * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
4164         (uint64, sint64, double, longdouble)
4165         * src/m32r: New directory.
4166         * src/m32r/ffi.c: New file.
4167         * src/m32r/sysv.S: Likewise.
4168         * src/m32r/ffitarget.h: Likewise.
4170 2004-10-02  Kaz Kojima  <kkojima@gcc.gnu.org>
4172         * testsuite/libffi.call/negint.c: New test case.
4174 2004-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4176         PR libgcj/17465
4177         * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4178         Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4179         LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4180         DYLD_LIBRARY_PATH.
4182 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
4184         * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4185         * testsuite/libffi.call/promotion.c: Likewise.
4186         * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4187         whitespaces.
4188         * testsuite/libffi.call/return_sc.c: Likewise.
4189         * testsuite/libffi.call/return_uc.c: Likewise.
4191 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
4193         * src/powerpc/darwin.S: Fix comments and identation.
4194         * src/powerpc/darwin_closure.S: Likewise.
4196 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
4198         * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4199         (ffi_prep_args): Handle longdouble arguments.
4200         (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4201         longdouble.
4202         (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4203         * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4204         values.
4205         * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4206         * src/types.c: Defined longdouble size and alignment for darwin.
4208 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
4210         * src/powerpc/aix.S: Remove whitespaces.
4211         * src/powerpc/aix_closure.S: Likewise.
4212         * src/powerpc/asm.h: Likewise.
4213         * src/powerpc/ffi.c: Likewise.
4214         * src/powerpc/ffitarget.h: Likewise.
4215         * src/powerpc/linux64.S: Likewise.
4216         * src/powerpc/linux64_closure.S: Likewise.
4217         * src/powerpc/ppc_closure.S: Likewise.
4218         * src/powerpc/sysv.S: Likewise.
4220 2004-08-30  Anthony Green  <green@redhat.com>
4222         * Makefile.am: Add frv support.
4223         * Makefile.in, testsuite/Makefile.in: Rebuilt.
4224         * configure.ac: Read configure.host.
4225         * configure.in: Read configure.host.
4226         * configure.host: New file.  frv-elf needs libgloss.
4227         * include/ffi.h.in: Force ffi_closure to have a nice big (8)
4228         alignment.  This is needed to frv and shouldn't harm the others.
4229         * include/ffi_common.h (ALIGN_DOWN): New macro.
4230         * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4232 2004-08-24  David Daney  <daney@avtrex.com>
4234         * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4235         * testsuite/libffi.call/closure_fn1.c: Likewise.
4236         * testsuite/libffi.call/closure_fn2.c  Likewise.
4237         * testsuite/libffi.call/closure_fn3.c: Likewise.
4238         * testsuite/libffi.call/closure_fn4.c: Likewise.
4239         * testsuite/libffi.call/closure_fn5.c: Likewise.
4240         * testsuite/libffi.call/cls_18byte.c: Likewise.
4241         * testsuite/libffi.call/cls_19byte.c: Likewise.
4242         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4243         * testsuite/libffi.call/cls_20byte.c: Likewise.
4244         * testsuite/libffi.call/cls_20byte1.c: Likewise.
4245         * testsuite/libffi.call/cls_24byte.c: Likewise.
4246         * testsuite/libffi.call/cls_2byte.c: Likewise.
4247         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4248         * testsuite/libffi.call/cls_3byte1.c: Likewise.
4249         * testsuite/libffi.call/cls_3byte2.c: Likewise.
4250         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4251         * testsuite/libffi.call/cls_4byte.c: Likewise.
4252         * testsuite/libffi.call/cls_64byte.c: Likewise.
4253         * testsuite/libffi.call/cls_6byte.c: Likewise.
4254         * testsuite/libffi.call/cls_7byte.c: Likewise.
4255         * testsuite/libffi.call/cls_8byte.c: Likewise.
4256         * testsuite/libffi.call/cls_9byte1.c: Likewise.
4257         * testsuite/libffi.call/cls_9byte2.c: Likewise.
4258         * testsuite/libffi.call/cls_align_double.c: Likewise.
4259         * testsuite/libffi.call/cls_align_float.c: Likewise.
4260         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4261         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4262         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4263         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4264         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4265         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4266         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4267         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4268         * testsuite/libffi.call/cls_double.c: Likewise.
4269         * testsuite/libffi.call/cls_float.c: Likewise.
4270         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4271         * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4272         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4273         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4274         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4275         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4276         * testsuite/libffi.call/cls_schar.c: Likewise.
4277         * testsuite/libffi.call/cls_sint.c: Likewise.
4278         * testsuite/libffi.call/cls_sshort.c: Likewise.
4279         * testsuite/libffi.call/cls_uchar.c: Likewise.
4280         * testsuite/libffi.call/cls_uint.c: Likewise.
4281         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4282         * testsuite/libffi.call/cls_ushort.c: Likewise.
4283         * testsuite/libffi.call/nested_struct.c: Likewise.
4284         * testsuite/libffi.call/nested_struct1.c: Likewise.
4285         * testsuite/libffi.call/nested_struct2.c: Likewise.
4286         * testsuite/libffi.call/nested_struct3.c: Likewise.
4287         * testsuite/libffi.call/problem1.c: Likewise.
4288         * testsuite/libffi.special/unwindtest.cc: Likewise.
4289         * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4290         to zero.
4291         * testsuite/libffi.call/cls_16byte.c: Likewise.
4292         * testsuite/libffi.call/cls_5byte.c: Likewise.
4294 2004-08-23  David Daney <daney@avtrex.com>
4296         PR libgcj/13141
4297         * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4298         * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4299         (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4300         parameters and return types.
4301         (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4302         (ffi_prep_closure): Ditto.
4303         (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4304         alignment calculations.
4305         * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4306         instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4308 2004-08-14  Casey Marshall <csm@gnu.org>
4310         * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4311         contain `FFI_TYPE_UINT64' as return type for any 64-bit
4312         integer (O32 ABI only).
4313         (ffi_prep_closure): new function.
4314         (ffi_closure_mips_inner_O32): new function.
4315         * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
4316         `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4317         * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4318         64 bit integers correctly.
4319         (ffi_closure_O32): new function.
4320         Added DWARF-2 unwind info for both functions.
4322 2004-08-10  Andrew Haley  <aph@redhat.com>
4324         * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4326 2004-08-01  Robert Millan  <robertmh@gnu.org>
4328         * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4329         * configure: Regenerate.
4331 2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>
4333         * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4334         and mmap() explicitly instead of relying on preset autoconf cache
4335         variables.
4336         * aclocal.m4: Regenerate.
4337         * configure: Regenerate.
4339 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
4341         * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4342         (ffi_check_float_struct): Remove unused prototype.
4344 2004-06-30  Geoffrey Keating  <geoffk@apple.com>
4346         * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4347         character on Darwin, use '\n\t' instead.
4349 2004-06-26  Matthias Klose  <doko@debian.org>
4351         * libtool-version: Fix typo in revision/age.
4353 2004-06-17  Matthias Klose  <doko@debian.org>
4355         * libtool-version: New.
4356         * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4357         * Makefile.in: Regenerate.
4359 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
4361         * Makefile.am: Remove useless multilib rules.
4362         * Makefile.in: Regenerate.
4363         * aclocal.m4: Regenerate with automake 1.8.5.
4364         * configure.ac: Remove useless multilib configury.
4365         * configure: Regenerate.
4367 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
4369         * .cvsignore: New file.
4371 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
4373         * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4374         fp_done.
4375         (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4376         changed from 8.
4378 2004-06-06  Sean McNeil  <sean@mcneil.com>
4380         * configure.ac: Add x86_64-*-freebsd* support.
4381         * configure: Regenerate.
4383 2004-04-26  Joe Buck <jbuck@welsh-buck.org>
4385         Bug 15093
4386         * configure.ac: Test for existence of mmap and sys/mman.h before
4387         checking blacklist.  Fix suggested by Jim Wilson.
4388         * configure: Regenerate.
4390 2004-04-26  Matt Austern  <austern@apple.com>
4392         * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4393         FDE location.
4394         * src/powerpc/darwin_closure.S: Likewise.
4396 2004-04-24  Andreas Tobler  <a.tobler@schweiz.ch>
4398         * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4399         error. Reported by Thomas Heller <theller@python.net>.
4400         * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4401         * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4403 2004-03-20  Matthias Klose  <doko@debian.org>
4405         * src/pa/linux.S: Fix typo.
4407 2004-03-19  Matthias Klose  <doko@debian.org>
4409         * Makefile.am: Update.
4410         * Makefile.in: Regenerate.
4411         * src/pa/ffi.h.in: Remove.
4412         * src/pa/ffitarget.h: New file.
4414 2004-02-10  Randolph Chung  <tausq@debian.org>
4416         * Makefile.am: Add PA support.
4417         * Makefile.in: Regenerate.
4418         * include/Makefile.in: Regenerate.
4419         * configure.ac: Add PA target.
4420         * configure: Regenerate.
4421         * src/pa/ffi.c: New file.
4422         * src/pa/ffi.h.in: Add PA support.
4423         * src/pa/linux.S: New file.
4424         * prep_cif.c: Add PA support.
4426 2004-03-16  Hosaka Yuji  <hos@tamanegi.org>
4428         * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4429         double.
4430         * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4431         with ecif->cif->flags.
4432         (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4433         with cif->flags.
4434         (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4435         (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4436         * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4437         sc_retstruct2b): Add for 1 or 2-bytes struct case.
4439 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4441         * configure.in: Rename file to ...
4442         * configure.ac: ... this.
4443         * fficonfig.h.in: Regenerate.
4444         * Makefile.in: Regenerate.
4445         * include/Makefile.in: Regenerate.
4446         * testsuite/Makefile.in: Regenerate.
4448 2004-03-12  Matt Austern  <austern@apple.com>
4450         * src/powerpc/darwin.S: Fix EH information so it corresponds to
4451         changes in EH format resulting from addition of linkonce support.
4452         * src/powerpc/darwin_closure.S: Likewise.
4454 2004-03-11  Andreas Tobler  <a.tobler@schweiz.ch>
4455             Paolo Bonzini  <bonzini@gnu.org>
4457         * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4458         Remove VPATH. Remove rules for object files. Remove multilib support.
4459         (AM_CCASFLAGS): Add.
4460         * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4461         (AC_PREREQ): Bump version to 2.59.
4462         (AC_INIT): Fill with version info and bug address.
4463         (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4464         (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4465         De-precious CC so that the right flags are passed down to multilibs.
4466         (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4467         (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4468         (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4469         * configure: Rebuilt.
4470         * aclocal.m4: Likewise.
4471         * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4472         * fficonfig.h.in: Likewise.
4474 2004-03-11  Andreas Schwab  <schwab@suse.de>
4476         * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4477         arguments from fp registers only for the first 8 parameter slots.
4478         Don't convert a float parameter when passed in memory.
4480 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
4482         * configure: Regenerate for config/accross.m4 correction.
4484 2004-02-25  Matt Kraai  <kraai@alumni.cmu.edu>
4486         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4487         ecif->cif->bytes to bytes.
4488         (ffi_prep_cif_machdep): Add braces around nested if statement.
4490 2004-02-09  Alan Modra  <amodra@bigpond.net.au>
4492         * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4494         * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4495         (ffi_closure_helper_LINUX64): Fix typo.
4496         * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4497         for powerpc64-*-*.
4498         * testsuite/libffi.call/float.c: Likewise.
4499         * testsuite/libffi.call/float2.c: Likewise.
4501 2004-02-08  Alan Modra  <amodra@bigpond.net.au>
4503         * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4504         long double function return and long double arg handling.
4505         (ffi_closure_helper_LINUX64): Formatting.  Delete unused "ng" var.
4506         Use "end_pfr" instead of "nf".  Correct long double handling.
4507         Localise "temp".
4508         * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4509         return value.
4510         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4511         space for long double return value.  Adjust stack frame and offsets.
4512         Load f2 long double return.
4514 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
4516         * src/types.c: Use 16 byte long double for POWERPC64.
4518 2004-01-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4520         * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4521         when the structure return address is passed in %o0.
4522         (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4523         (ffi_v9_layout_struct): Align the field following a nested structure
4524         on a word boundary.  Use memmove instead of memcpy.
4525         (ffi_call): Update call to ffi_V9_return_struct.
4526         (ffi_prep_closure): Define 'ctx' only for V8.
4527         (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4528         and ffi_closure_sparc_inner_v9.
4529         (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4530         Always skip the structure return address.  For structures and long
4531         doubles, copy the argument directly.
4532         (ffi_closure_sparc_inner_v9): Skip the structure return address only
4533         if required.  Shift the maximum floating-point slot accordingly.  For
4534         big structures, copy the argument directly; otherwise, left-justify the
4535         argument and call ffi_v9_layout_struct to lay out the structure on
4536         the stack.
4537         * src/sparc/v8.S: Undef STACKFRAME before defining it.
4538         (ffi_closure_v8): Pass the structure return address.  Update call to
4539         ffi_closure_sparc_inner_v8.  Short-circuit FFI_TYPE_INT handling.
4540         Skip the 'unimp' insn when returning long doubles and structures.
4541         * src/sparc/v9.S: Undef STACKFRAME before defining it.
4542         (ffi_closure_v9): Increase the frame size by 2 words.  Short-circuit
4543         FFI_TYPE_INT handling.  Load structures both in integers and
4544         floating-point registers on return.
4545         * README: Update status of the SPARC port.
4547 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
4549         * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4550         as of type ffi_arg.
4551         * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4553 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4555         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4556         value as of type ffi_arg, not unsigned int.
4558 2004-01-21  Michael Ritzert  <ritzert@t-online.de>
4560         * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4561         of the LHS.
4563 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4565         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4566         Solaris.
4568 2004-01-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4570         * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4571         to void *.
4573 2003-12-10  Richard Henderson  <rth@redhat.com>
4575         * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4576         size_t instead of int.
4578 2003-12-04  Hosaka Yuji  <hos@tamanegi.org>
4580         * testsuite/libffi.call/many_win32.c: Include <float.h>.
4581         * testsuite/libffi.call/many_win32.c (main): Replace variable
4582         int i with unsigned long ul.
4584         * testsuite/libffi.call/cls_align_uint64.c: New test case.
4585         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4586         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4587         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4588         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4589         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4590         * testsuite/libffi.call/cls_align_float.c: Likewise.
4591         * testsuite/libffi.call/cls_align_double.c: Likewise.
4592         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4593         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4595 2003-12-02  Hosaka Yuji  <hos@tamanegi.org>
4597         PR other/13221
4598         * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4599         Align arguments to 32 bits.
4601 2003-12-01  Andreas Tobler  <a.tobler@schweiz.ch>
4603         PR other/13221
4604         * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4605         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4606         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4607         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4608         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4609         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4611         * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4613 2003-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4615         * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4616         * testsuite/libffi.special/ffitestcxx.h: Likewise.
4618 2003-11-22  Andreas Tobler  <a.tobler@schweiz.ch>
4620         * Makefile.in: Rebuilt.
4621         * configure: Likewise.
4622         * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4623         the right type.
4625 2003-11-21  Andreas Jaeger  <aj@suse.de>
4626             Andreas Tobler  <a.tobler@schweiz.ch>
4628         * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4629         * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4630         * Makefile.in: Rebuilt.
4631         * aclocal.m4: Likewise.
4632         * configure: Likewise.
4633         * fficonfig.h.in: Likewise.
4634         * testsuite/lib/libffi-dg.exp: Add include dir.
4635         * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4636         * testsuite/libffi.special/ffitestcxx.h: Likewise.
4637         * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4638         for ffi_closure if available.
4639         * testsuite/libffi.call/closure_fn1.c: Likewise.
4640         * testsuite/libffi.call/closure_fn2.c: Likewise.
4641         * testsuite/libffi.call/closure_fn3.c: Likewise.
4642         * testsuite/libffi.call/closure_fn4.c: Likewise.
4643         * testsuite/libffi.call/closure_fn5.c: Likewise.
4644         * testsuite/libffi.call/cls_12byte.c: Likewise.
4645         * testsuite/libffi.call/cls_16byte.c: Likewise.
4646         * testsuite/libffi.call/cls_18byte.c: Likewise.
4647         * testsuite/libffi.call/cls_19byte.c: Likewise.
4648         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4649         * testsuite/libffi.call/cls_20byte.c: Likewise.
4650         * testsuite/libffi.call/cls_20byte1.c: Likewise.
4651         * testsuite/libffi.call/cls_24byte.c: Likewise.
4652         * testsuite/libffi.call/cls_2byte.c: Likewise.
4653         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4654         * testsuite/libffi.call/cls_3byte1.c: Likewise.
4655         * testsuite/libffi.call/cls_3byte2.c: Likewise.
4656         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4657         * testsuite/libffi.call/cls_4byte.c: Likewise.
4658         * testsuite/libffi.call/cls_5byte.c: Likewise.
4659         * testsuite/libffi.call/cls_64byte.c: Likewise.
4660         * testsuite/libffi.call/cls_6byte.c: Likewise.
4661         * testsuite/libffi.call/cls_7byte.c: Likewise.
4662         * testsuite/libffi.call/cls_8byte.c: Likewise.
4663         * testsuite/libffi.call/cls_9byte1.c: Likewise.
4664         * testsuite/libffi.call/cls_9byte2.c: Likewise.
4665         * testsuite/libffi.call/cls_double.c: Likewise.
4666         * testsuite/libffi.call/cls_float.c: Likewise.
4667         * testsuite/libffi.call/cls_schar.c: Likewise.
4668         * testsuite/libffi.call/cls_sint.c: Likewise.
4669         * testsuite/libffi.call/cls_sshort.c: Likewise.
4670         * testsuite/libffi.call/cls_uchar.c: Likewise.
4671         * testsuite/libffi.call/cls_uint.c: Likewise.
4672         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4673         * testsuite/libffi.call/cls_ushort.c: Likewise.
4674         * testsuite/libffi.call/nested_struct.c: Likewise.
4675         * testsuite/libffi.call/nested_struct1.c: Likewise.
4676         * testsuite/libffi.call/nested_struct2.c: Likewise.
4677         * testsuite/libffi.call/nested_struct3.c: Likewise.
4678         * testsuite/libffi.call/problem1.c: Likewise.
4679         * testsuite/libffi.special/unwindtest.cc: Likewise.
4681 2003-11-20  Andreas Tobler  <a.tobler@schweiz.ch>
4683         * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4685 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
4687         * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4688         Add -lgcc_s to additional flags.
4690 2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>
4692         * configure.in, include/Makefile.am: PR libgcj/11147, install
4693         the ffitarget.h header file in a gcc versioned and target
4694         dependent place.
4695         * configure: Regenerated.
4696         * Makefile.in, include/Makefile.in: Likewise.
4697         * testsuite/Makefile.in: Likewise.
4699 2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>
4701         * testsuite/libffi.call/closure_fn0.c: Print result and check
4702         with dg-output to make debugging easier.
4703         * testsuite/libffi.call/closure_fn1.c: Likewise.
4704         * testsuite/libffi.call/closure_fn2.c: Likewise.
4705         * testsuite/libffi.call/closure_fn3.c: Likewise.
4706         * testsuite/libffi.call/closure_fn4.c: Likewise.
4707         * testsuite/libffi.call/closure_fn5.c: Likewise.
4708         * testsuite/libffi.call/cls_12byte.c: Likewise.
4709         * testsuite/libffi.call/cls_16byte.c: Likewise.
4710         * testsuite/libffi.call/cls_18byte.c: Likewise.
4711         * testsuite/libffi.call/cls_19byte.c: Likewise.
4712         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4713         * testsuite/libffi.call/cls_20byte.c: Likewise.
4714         * testsuite/libffi.call/cls_20byte1.c: Likewise.
4715         * testsuite/libffi.call/cls_24byte.c: Likewise.
4716         * testsuite/libffi.call/cls_2byte.c: Likewise.
4717         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4718         * testsuite/libffi.call/cls_3byte1.c: Likewise.
4719         * testsuite/libffi.call/cls_3byte2.c: Likewise.
4720         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4721         * testsuite/libffi.call/cls_4byte.c: Likewise.
4722         * testsuite/libffi.call/cls_5byte.c: Likewise.
4723         * testsuite/libffi.call/cls_64byte.c: Likewise.
4724         * testsuite/libffi.call/cls_6byte.c: Likewise.
4725         * testsuite/libffi.call/cls_7byte.c: Likewise.
4726         * testsuite/libffi.call/cls_8byte.c: Likewise.
4727         * testsuite/libffi.call/cls_9byte1.c: Likewise.
4728         * testsuite/libffi.call/cls_9byte2.c: Likewise.
4729         * testsuite/libffi.call/cls_double.c: Likewise.
4730         * testsuite/libffi.call/cls_float.c: Likewise.
4731         * testsuite/libffi.call/cls_schar.c: Likewise.
4732         * testsuite/libffi.call/cls_sint.c: Likewise.
4733         * testsuite/libffi.call/cls_sshort.c: Likewise.
4734         * testsuite/libffi.call/cls_uchar.c: Likewise.
4735         * testsuite/libffi.call/cls_uint.c: Likewise.
4736         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4737         * testsuite/libffi.call/cls_ushort.c: Likewise.
4738         * testsuite/libffi.call/problem1.c: Likewise.
4740         * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4741         static.
4743 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
4745         * testsuite/libffi.call/cls_9byte2.c: New test case.
4746         * testsuite/libffi.call/cls_9byte1.c: Likewise.
4747         * testsuite/libffi.call/cls_64byte.c: Likewise.
4748         * testsuite/libffi.call/cls_20byte1.c: Likewise.
4749         * testsuite/libffi.call/cls_19byte.c: Likewise.
4750         * testsuite/libffi.call/cls_18byte.c: Likewise.
4751         * testsuite/libffi.call/closure_fn4.c: Likewise.
4752         * testsuite/libffi.call/closure_fn5.c: Likewise.
4753         * testsuite/libffi.call/cls_schar.c: Likewise.
4754         * testsuite/libffi.call/cls_sint.c: Likewise.
4755         * testsuite/libffi.call/cls_sshort.c: Likewise.
4756         * testsuite/libffi.call/nested_struct2.c: Likewise.
4757         * testsuite/libffi.call/nested_struct3.c: Likewise.
4759 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
4761         * testsuite/libffi.call/cls_double.c: Do a check on the result.
4762         * testsuite/libffi.call/cls_uchar.c: Likewise.
4763         * testsuite/libffi.call/cls_uint.c: Likewise.
4764         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4765         * testsuite/libffi.call/cls_ushort.c: Likewise.
4766         * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4768 2003-11-06  Andreas Tobler  <a.tobler@schweiz.ch>
4770         * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4771         the initialization.
4773 2003-10-23  Andreas Tobler  <a.tobler@schweiz.ch>
4775         * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
4776         FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4778 2003-10-22  David Daney  <ddaney@avtrex.com>
4780         * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4781         __attribute__((__mode__(__SI__))) and friends.
4783 2003-10-22  Andreas Schwab  <schwab@suse.de>
4785         * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4787 2003-10-21  Andreas Tobler  <a.tobler@schweiz.ch>
4789         * configure.in: AC_LINK_FILES(ffitarget.h).
4790         * configure: Regenerate.
4791         * Makefile.in: Likewise.
4792         * include/Makefile.in: Likewise.
4793         * testsuite/Makefile.in: Likewise.
4794         * fficonfig.h.in: Likewise.
4796 2003-10-21  Paolo Bonzini  <bonzini@gnu.org>
4797             Richard Henderson  <rth@redhat.com>
4799         Avoid that ffi.h includes fficonfig.h.
4801         * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4802         (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4803         (TARGET_SRC_MIPS_SGI): Removed.
4804         (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4805         (MIPS_SGI): Removed.
4806         (CLEANFILES): Removed.
4807         (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4808         targets.
4809         * acconfig.h: Removed.
4810         * configure.in: Compute sizeofs only for double and long double.
4811         Use them to define and subst HAVE_LONG_DOUBLE.  Include comments
4812         into AC_DEFINE instead of using acconfig.h.  Create
4813         include/ffitarget.h instead of include/fficonfig.h.  Rename
4814         MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4815         AC_DEFINE EH_FRAME_FLAGS.
4816         * include/Makefile.am (DISTCLEANFILES): New automake macro.
4817         (hack_DATA): Add ffitarget.h.
4818         * include/ffi.h.in: Remove all system specific definitions.
4819         Declare raw API even if it is not installed, why bother?
4820         Use limits.h instead of SIZEOF_* to define ffi_type_*.  Do
4821         not define EH_FRAME_FLAGS, it is in fficonfig.h now.  Include
4822         ffitarget.h instead of fficonfig.h.  Remove ALIGN macro.
4823         (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4824         * include/ffi_common.h (bool): Do not define.
4825         (ffi_assert): Accept failed assertion.
4826         (ffi_type_test): Return void and accept file/line.
4827         (FFI_ASSERT): Pass stringized failed assertion.
4828         (FFI_ASSERT_AT): New macro.
4829         (FFI_ASSERT_VALID_TYPE): New macro.
4830         (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4831         UINT64, SINT64): Define here with gcc's __attribute__ macro
4832         instead of in ffi.h
4833         (FLOAT32, ALIGN): Define here instead of in ffi.h
4834         * include/ffi-mips.h: Removed.  Its content moved to
4835         src/mips/ffitarget.h after separating assembly and C sections.
4836         * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4837         src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4838         src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4839         src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4840         SIZEOF_ARG -> FFI_SIZEOF_ARG.
4841         * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4842         * src/debug.c (ffi_assert): Accept stringized failed assertion.
4843         (ffi_type_test): Rewritten.
4844         * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4845         FFI_ASSERT_VALID_TYPE.
4846         * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4847         src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4848         src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4849         src/s390/ffitarget.h, src/sh/ffitarget.h,
4850         src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4851         src/x86/ffitarget.h: New files.
4852         * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4853         src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4854         src/powerpc/aix.S, src/powerpc/darwin.S,
4855         src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4856         src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4857         src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4858         src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4859         src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4860         include fficonfig.h
4862 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4864         * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4865         _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4867 2003-10-19  Andreas Tobler  <a.tobler@schweiz.ch>
4869         * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4870         Used when FFI_DEBUG = 1.
4872 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
4874         * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4875         and align.
4877 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4879         * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4880         FFI_MIPS_O32 for O32 ABI.
4882 2003-10-01  Andreas Tobler  <a.tobler@schweiz.ch>
4884         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4885         SPARC64. Cleanup whitespaces.
4887 2003-09-19  Andreas Tobler  <a.tobler@schweiz.ch>
4889         * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4890         strongarm, xscale. Cleanup whitespaces.
4891         * testsuite/libffi.call/closure_fn1.c: Likewise.
4892         * testsuite/libffi.call/closure_fn2.c: Likewise.
4893         * testsuite/libffi.call/closure_fn3.c: Likewise.
4894         * testsuite/libffi.call/cls_12byte.c: Likewise.
4895         * testsuite/libffi.call/cls_16byte.c: Likewise.
4896         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4897         * testsuite/libffi.call/cls_20byte.c: Likewise.
4898         * testsuite/libffi.call/cls_24byte.c: Likewise.
4899         * testsuite/libffi.call/cls_2byte.c: Likewise.
4900         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4901         * testsuite/libffi.call/cls_3byte1.c: Likewise.
4902         * testsuite/libffi.call/cls_3byte2.c: Likewise.
4903         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4904         * testsuite/libffi.call/cls_4byte.c: Likewise.
4905         * testsuite/libffi.call/cls_5byte.c: Likewise.
4906         * testsuite/libffi.call/cls_6byte.c: Likewise.
4907         * testsuite/libffi.call/cls_7byte.c: Likewise.
4908         * testsuite/libffi.call/cls_8byte.c: Likewise.
4909         * testsuite/libffi.call/cls_double.c: Likewise.
4910         * testsuite/libffi.call/cls_float.c: Likewise.
4911         * testsuite/libffi.call/cls_uchar.c: Likewise.
4912         * testsuite/libffi.call/cls_uint.c: Likewise.
4913         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4914         * testsuite/libffi.call/cls_ushort.c: Likewise.
4915         * testsuite/libffi.call/nested_struct.c: Likewise.
4916         * testsuite/libffi.call/nested_struct1.c: Likewise.
4917         * testsuite/libffi.call/problem1.c: Likewise.
4918         * testsuite/libffi.special/unwindtest.cc: Likewise.
4919         * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4921 2003-09-18  David Edelsohn  <edelsohn@gnu.org>
4923         * src/powerpc/aix.S: Cleanup whitespaces.
4924         * src/powerpc/aix_closure.S: Likewise.
4926 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
4928         * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4929         * src/powerpc/darwin_closure.S: Likewise.
4930         * src/powerpc/ffi_darwin.c: Likewise.
4932 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
4933             David Edelsohn  <edelsohn@gnu.org>
4935         * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4936         * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4937         parameter stack.
4938         * src/powerpc/darwin_closure.S: Likewise.
4939         * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4940         according to the Darwin/AIX ABI.
4941         (ffi_prep_cif_machdep): Likewise.
4942         (ffi_closure_helper_DARWIN): Likewise.
4943         Remove the outgoing parameter stack logic. Simplify the evaluation
4944         of the different CASE types.
4945         (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4946         statement in the trampoline code.
4948 2003-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
4950         * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4951         for the register size.
4952         (ffi_closure_helper_SYSV): Handle the structure return value
4953         address correctly.
4954         (ffi_closure_helper_SYSV): Return the appropriate type when
4955         the registers are used for the structure return value.
4956         * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4957         the 64-bit return value.  Update copyright years.
4959 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4961         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4962         srcdir for ffi_mips.h.
4964 2003-09-12  Alan Modra  <amodra@bigpond.net.au>
4966         * src/prep_cif.c (initialize_aggregate): Include tail padding in
4967         structure size.
4968         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4969         placement of float result.
4970         * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4971         cast of "resp" for big-endian 64 bit machines.
4973 2003-09-11  Alan Modra  <amodra@bigpond.net.au>
4975         * src/types.c (double, longdouble): Merge identical SH and ARM
4976         typedefs, and add POWERPC64.
4977         * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4978         struct split over gpr and rest.
4979         (ffi_prep_cif_machdep): Correct intarg_count for structures.
4980         * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4982 2003-09-09  Andreas Tobler  <a.tobler@schweiz.ch>
4984         * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4985         passing correctly.
4987 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
4989         * configure: Regenerate.
4991 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
4993         * Makefile.am: Remove build rules for ffitest.
4994         * Makefile.in: Rebuilt.
4996 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
4998         * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4999         about implicit declaration of abort().
5001 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
5003         * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
5004         * Makefile.in: Rebuilt.
5005         * configure.in: Add dejagnu test framework.
5006         * configure: Rebuilt.
5008         * testsuite/Makefile.am: New file.
5009         * testsuite/Makefile.in: Built
5010         * testsuite/lib/libffi-dg.exp: New file.
5011         * testsuite/config/default.exp: Likewise.
5012         * testsuite/libffi.call/call.exp: Likewise.
5013         * testsuite/libffi.call/ffitest.h: Likewise.
5014         * testsuite/libffi.call/closure_fn0.c: Likewise.
5015         * testsuite/libffi.call/closure_fn1.c: Likewise.
5016         * testsuite/libffi.call/closure_fn2.c: Likewise.
5017         * testsuite/libffi.call/closure_fn3.c: Likewise.
5018         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
5019         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
5020         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
5021         * testsuite/libffi.call/cls_2byte.c: Likewise.
5022         * testsuite/libffi.call/cls_3byte1.c: Likewise.
5023         * testsuite/libffi.call/cls_3byte2.c: Likewise.
5024         * testsuite/libffi.call/cls_4byte.c: Likewise.
5025         * testsuite/libffi.call/cls_5byte.c: Likewise.
5026         * testsuite/libffi.call/cls_6byte.c: Likewise.
5027         * testsuite/libffi.call/cls_7byte.c: Likewise.
5028         * testsuite/libffi.call/cls_8byte.c: Likewise.
5029         * testsuite/libffi.call/cls_12byte.c: Likewise.
5030         * testsuite/libffi.call/cls_16byte.c: Likewise.
5031         * testsuite/libffi.call/cls_20byte.c: Likewise.
5032         * testsuite/libffi.call/cls_24byte.c: Likewise.
5033         * testsuite/libffi.call/cls_double.c: Likewise.
5034         * testsuite/libffi.call/cls_float.c: Likewise.
5035         * testsuite/libffi.call/cls_uchar.c: Likewise.
5036         * testsuite/libffi.call/cls_uint.c: Likewise.
5037         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
5038         * testsuite/libffi.call/cls_ushort.c: Likewise.
5039         * testsuite/libffi.call/float.c: Likewise.
5040         * testsuite/libffi.call/float1.c: Likewise.
5041         * testsuite/libffi.call/float2.c: Likewise.
5042         * testsuite/libffi.call/many.c: Likewise.
5043         * testsuite/libffi.call/many_win32.c: Likewise.
5044         * testsuite/libffi.call/nested_struct.c: Likewise.
5045         * testsuite/libffi.call/nested_struct1.c: Likewise.
5046         * testsuite/libffi.call/pyobjc-tc.c: Likewise.
5047         * testsuite/libffi.call/problem1.c: Likewise.
5048         * testsuite/libffi.call/promotion.c: Likewise.
5049         * testsuite/libffi.call/return_ll.c: Likewise.
5050         * testsuite/libffi.call/return_sc.c: Likewise.
5051         * testsuite/libffi.call/return_uc.c: Likewise.
5052         * testsuite/libffi.call/strlen.c: Likewise.
5053         * testsuite/libffi.call/strlen_win32.c: Likewise.
5054         * testsuite/libffi.call/struct1.c: Likewise.
5055         * testsuite/libffi.call/struct2.c: Likewise.
5056         * testsuite/libffi.call/struct3.c: Likewise.
5057         * testsuite/libffi.call/struct4.c: Likewise.
5058         * testsuite/libffi.call/struct5.c: Likewise.
5059         * testsuite/libffi.call/struct6.c: Likewise.
5060         * testsuite/libffi.call/struct7.c: Likewise.
5061         * testsuite/libffi.call/struct8.c: Likewise.
5062         * testsuite/libffi.call/struct9.c: Likewise.
5063         * testsuite/libffi.special/special.exp: New file.
5064         * testsuite/libffi.special/ffitestcxx.h: Likewise.
5065         * testsuite/libffi.special/unwindtest.cc: Likewise.
5068 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5070         * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case.  Update
5071         copyright years.
5073 2003-08-02  Alan Modra  <amodra@bigpond.net.au>
5075         * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
5076         structure passing.
5077         (ffi_closure_helper_LINUX64): Likewise.
5078         * src/powerpc/linux64.S: Remove code writing to parm save area.
5079         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
5080         address in lr from ffi_closure_helper_LINUX64 call to calculate
5081         table address.  Optimize function tail.
5083 2003-07-28  Andreas Tobler  <a.tobler@schweiz.ch>
5085         * src/sparc/ffi.c: Handle all floating point registers.
5086         * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
5088 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5090         * README: Note that libffi is not part of GCC.  Update the project
5091         URL and status.
5093 2003-06-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5095         * src/powerpc/ppc_closure.S: Include ffi.h.
5097 2003-06-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5099         * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
5100         Use C style comments.
5102 2003-06-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5104         * Makefile.am: Add SHmedia support.  Fix a typo of SH support.
5105         * Makefile.in: Regenerate.
5106         * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
5107         * configure: Regenerate.
5108         * include/ffi.h.in: Add SHmedia support.
5109         * src/sh64/ffi.c: New file.
5110         * src/sh64/sysv.S: New file.
5112 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
5114         * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
5115         should be read-only.
5116         * configure: Rebuilt.
5117         * fficonfig.h.in: Rebuilt.
5118         * include/ffi.h.in (EH_FRAME_FLAGS): Define.
5119         * src/alpha/osf.S: Use EH_FRAME_FLAGS.
5120         * src/powerpc/linux64.S: Likewise.
5121         * src/powerpc/linux64_closure.S: Likewise.  Include ffi.h.
5122         * src/powerpc/sysv.S: Use EH_FRAME_FLAGS.  Use pcrel encoding
5123         if -fpic/-fPIC/-mrelocatable.
5124         * src/powerpc/powerpc_closure.S: Likewise.
5125         * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
5126         #write in .eh_frame flags.
5127         * src/sparc/v9.S: Likewise.
5128         * src/x86/unix64.S: Use EH_FRAME_FLAGS.
5129         * src/x86/sysv.S: Likewise.  Use pcrel encoding if -fpic/-fPIC.
5130         * src/s390/sysv.S: Use EH_FRAME_FLAGS.  Include ffi.h.
5132 2003-05-07  Jeff Sturm  <jsturm@one-point.com>
5134         Fixes PR bootstrap/10656
5135         * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
5136         support for .register pseudo-op.
5137         * src/sparc/v8.S: Use it.
5138         * fficonfig.h.in: Rebuilt.
5139         * configure: Rebuilt.
5141 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
5143         * include/ffi.h.in (POWERPC64): Define if 64-bit.
5144         (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
5145         Make it the default on POWERPC64.
5146         (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
5147         * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
5148         * configure: Rebuilt.
5149         * src/powerpc/ffi.c (hidden): Define.
5150         (ffi_prep_args_SYSV): Renamed from
5151         ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
5152         (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
5153         ASM_NEEDS_REGISTERS64): New.
5154         (ffi_prep_args64): New function.
5155         (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
5156         (ffi_call): Likewise.
5157         (ffi_prep_closure): Likewise.
5158         (flush_icache): Surround by #ifndef POWERPC64.
5159         (ffi_dblfl): New union type.
5160         (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
5161         (ffi_closure_helper_LINUX64): New function.
5162         * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
5163         __powerpc64__.
5164         * src/powerpc/sysv.S: Likewise.
5165         (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
5166         * src/powerpc/linux64.S: New file.
5167         * src/powerpc/linux64_closure.S: New file.
5168         * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
5169         src/powerpc/linux64_closure.S.
5170         (TARGET_SRC_POWERPC): Likewise.
5172         * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
5173         closure_test_fn3): Fix result printing on big-endian 64-bit
5174         machines.
5175         (main): Print tst2_arg instead of uninitialized tst2_result.
5177         * src/ffitest.c (main): Hide what closure pointer really points to
5178         from the compiler.
5180 2003-04-16  Richard Earnshaw  <rearnsha@arm.com>
5182         * configure.in (arm-*-netbsdelf*): Add configuration.
5183         (configure): Regenerated.
5185 2003-04-04  Loren J. Rittle  <ljrittle@acm.org>
5187         * include/Makefile.in: Regenerate.
5189 2003-03-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5191         * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5192         bit mode.
5193         * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5194         Receive closure pointer through parameter, read args using
5195         __builtin_dwarf_cfa.
5196         (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5198 2003-03-12  Andreas Schwab  <schwab@suse.de>
5200         * configure.in: Avoid trailing /. in toolexeclibdir.
5201         * configure: Rebuilt.
5203 2003-03-03  Andreas Tobler <a.tobler@schweiz.ch>
5205         * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
5207 2003-02-06  Andreas Tobler <a.tobler@schweiz.ch>
5209         * libffi/src/powerpc/darwin_closure.S:
5210         Fix alignement bug, allocate 8 bytes for the result.
5211         * libffi/src/powerpc/aix_closure.S:
5212         Likewise.
5213         * libffi/src/powerpc/ffi_darwin.c:
5214         Update stackframe description for aix/darwin_closure.S.
5216 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
5218         * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5219         attribute.
5221 2003-01-31  Christian Cornelssen  <ccorn@cs.tu-berlin.de>,
5222             Andreas Schwab  <schwab@suse.de>
5224         * configure.in: Adjust command to source config-ml.in to account
5225         for changes to the libffi_basedir definition.
5226         (libffi_basedir): Remove ${srcdir} from value and include trailing
5227         slash if nonempty.
5229         * configure: Regenerate.
5231 2003-01-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5233         * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5235 2003-01-28  Andrew Haley  <aph@redhat.com>
5237         * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5238         * src/x86/ffi64.c (ffi_prep_closure): New.
5239         (ffi_closure_UNIX64_inner): New.
5240         * src/x86/unix64.S (ffi_closure_UNIX64): New.
5242 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
5244         * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5245         Remove USE_LIBDIR conditional.
5246         * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5247         * Makefile.in, configure: Rebuilt.
5249 2003-01027  David Edelsohn  <edelsohn@gnu.org>
5251         * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5252         * Makefile.in: Regenerate.
5254 2003-01-22  Andrew Haley  <aph@redhat.com>
5256         * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5257         unwind info.
5259 2003-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
5261         * src/powerpc/darwin.S: Add unwind info.
5262         * src/powerpc/darwin_closure.S: Likewise.
5264 2003-01-14  Andrew Haley  <aph@redhat.com>
5266         * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5267         (ffi_prep_cif_machdep): Likewise.
5268         * src/x86/unix64.S: Add unwind info.
5270 2003-01-14  Andreas Jaeger  <aj@suse.de>
5272         * src/ffitest.c (main): Only use ffi_closures if those are
5273         supported.
5275 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
5277         * libffi/src/ffitest.c
5278          add closure testcases
5280 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
5282         * libffi/src/powerpc/ffi.c
5283          fix alignment bug for float (4 byte aligned iso 8 byte)
5285 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
5287         * src/powerpc/ffi_darwin.c: Remove RCS version string.
5288         * src/powerpc/darwin.S: Remove RCS version string.
5290 2003-01-03  Jeff Sturm  <jsturm@one-point.com>
5292         * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5293         * src/ffitest.c (main): Use static storage for closure.
5294         * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5295         * src/sparc/v8.S (ffi_closure_v8): New.
5296         * src/sparc/v9.S (ffi_closure_v9): New.
5298 2002-11-10  Ranjit Mathew <rmathew@hotmail.com>
5300         * include/ffi.h.in: Added FFI_STDCALL ffi_type
5301           enumeration for X86_WIN32.
5302         * src/x86/win32.S: Added ffi_call_STDCALL function
5303           definition.
5304         * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
5305           switch cases for recognising FFI_STDCALL and
5306           calling ffi_call_STDCALL if target is X86_WIN32.
5307         * src/ffitest.c (my_stdcall_strlen/stdcall_many):
5308           stdcall versions of the "my_strlen" and "many"
5309           test functions (for X86_WIN32).
5310           Added test cases to test stdcall invocation using
5311           these functions.
5313 2002-12-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5315         * src/sh/sysv.S: Add DWARF2 unwind info.
5317 2002-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
5319         * src/s390/sysv.S (.eh_frame section): Make section read-only.
5321 2002-11-26  Jim Wilson  <wilson@redhat.com>
5323         * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5325 2002-11-23  H.J. Lu <hjl@gnu.org>
5327         * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5328         Include ../config/accross.m4.
5329         * aclocal.m4; Rebuild.
5330         * configure: Likewise.
5332 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
5334         * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5336 2002-11-11  DJ Delorie  <dj@redhat.com>
5338         * configure.in: Look for common files in the right place.
5340 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
5342         * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5343         raw data as _Jv_word values, not ffi_raw.
5344         (ffi_java_ptrarray_to_raw): Likewise.
5345         (ffi_java_rvalue_to_raw): New function.
5346         (ffi_java_raw_call): Call it.
5347         (ffi_java_raw_to_rvalue): New function.
5348         (ffi_java_translate_args): Call it.
5349         * src/ffitest.c (closure_test_fn): Interpret return value
5350         as ffi_arg, not int.
5351         * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5352         FFI_TYPE_POINTER case.
5353         (ffi_closure_helper_SYSV): Likewise.  Also, assume return
5354         values extended to word size.
5356 2002-10-02  Andreas Jaeger  <aj@suse.de>
5358         * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5360 2002-10-01  Bo Thorsen  <bo@smetana.suse.de>
5362         * include/ffi.h.in: Fix i386 win32 compilation.
5364 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
5366         * configure.in: Add s390x-*-linux-* target.
5367         * configure: Regenerate.
5368         * include/ffi.h.in: Define S390X for s390x targets.
5369         (FFI_CLOSURES): Define for s390/s390x.
5370         (FFI_TRAMPOLINE_SIZE): Likewise.
5371         (FFI_NATIVE_RAW_API): Likewise.
5372         * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5373         * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
5374         * src/s390/ffi.c: Major rework of existing code.  Add support for
5375         s390x targets.  Add closure support.
5376         * src/s390/sysv.S: Likewise.
5378 2002-09-29  Richard Earnshaw  <rearnsha@arm.com>
5380         * src/arm/sysv.S: Fix typo.
5382 2002-09-28  Richard Earnshaw  <rearnsha@arm.com>
5384         * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5385         has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5386         (ffi_call_SYSV): Handle soft-float.
5388 2002-09-27  Bo Thorsen  <bo@suse.de>
5390         * include/ffi.h.in: Fix multilib x86-64 support.
5392 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5394         * Makefile.am (all-multi): Fix multilib parallel build.
5396 2002-07-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5398         * configure.in (sh[34]*-*-linux*): Add brackets.
5399         * configure: Regenerate.
5401 2002-07-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5403         * Makefile.am: Add SH support.
5404         * Makefile.in: Regenerate.
5405         * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5406         * configure: Regenerate.
5407         * include/ffi.h.in: Add SH support.
5408         * src/sh/ffi.c: New file.
5409         * src/sh/sysv.S: New file.
5410         * src/types.c: Add SH support.
5412 2002-07-16  Bo Thorsen  <bo@suse.de>
5414         * src/x86/ffi64.c: New file that adds x86-64 support.
5415         * src/x86/unix64.S: New file that handles argument setup for
5416         x86-64.
5417         * src/x86/sysv.S: Don't use this on x86-64.
5418         * src/x86/ffi.c: Don't use this on x86-64.
5419         Remove unused vars.
5420         * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5421         for x86-64.
5422         * src/ffitest.c (struct6): New test that tests a special case in
5423         the x86-64 ABI.
5424         (struct7): Likewise.
5425         (struct8): Likewise.
5426         (struct9): Likewise.
5427         (closure_test_fn): Silence warning about this when it's not used.
5428         (main): Add the new tests.
5429         (main): Fix a couple of wrong casts and silence some compiler warnings.
5430         * include/ffi.h.in: Add x86-64 ABI definition.
5431         * fficonfig.h.in: Regenerate.
5432         * Makefile.am: Add x86-64 support.
5433         * configure.in: Likewise.
5434         * Makefile.in: Regenerate.
5435         * configure: Likewise.
5437 2002-06-24  Bo Thorsen  <bo@suse.de>
5439         * src/types.c: Merge settings for similar architectures.
5440         Add x86-64 sizes and alignments.
5442 2002-06-23  Bo Thorsen  <bo@suse.de>
5444         * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5445         * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5446         * src/mips/ffi.c (ffi_prep_args): Likewise.
5447         * src/m68k/ffi.c (ffi_prep_args): Likewise.
5449 2002-07-18  H.J. Lu  (hjl@gnu.org)
5451         * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5452         (libffi_la_SOURCES): Support MIPS_LINUX.
5453         (libffi_convenience_la_SOURCES): Likewise.
5454         * Makefile.in: Regenerated.
5456         * configure.in (mips64*-*): Skip.
5457         (mips*-*-linux*): New.
5458         * configure: Regenerated.
5460         * src/mips/ffi.c: Include <sgidefs.h>.
5462 2002-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
5464         * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
5466 2002-05-27  Roger Sayle  <roger@eyesopen.com>
5468         * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5470 2002-05-27  Bo Thorsen  <bo@suse.de>
5472         * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5473         fix formatting.
5475 2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>
5477         * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5478         beginning of function (for older apple cc).
5480 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
5482         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5483         script entry, and set LD to it when configuring multilibs.
5484         * configure: Rebuilt.
5486 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
5488         * configure.in (sparc64-*-netbsd*): Add target.
5489         (sparc-*-netbsdelf*): Likewise.
5490         * configure: Regenerate.
5492 2002-04-28  David S. Miller  <davem@redhat.com>
5494         * configure.in, configure: Fix SPARC test in previous change.
5496 2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>
5498         * Makefile.am: Add Linux for S/390 support.
5499         * Makefile.in: Regenerate.
5500         * configure.in: Add Linux for S/390 support.
5501         * configure: Regenerate.
5502         * include/ffi.h.in: Add Linux for S/390 support.
5503         * src/s390/ffi.c: New file from libffi CVS tree.
5504         * src/s390/sysv.S: New file from libffi CVS tree.
5506 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5508         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5509         %r_disp32().
5510         * src/sparc/v8.S: Use it.
5511         * src/sparc/v9.S: Likewise.
5512         * fficonfig.h.in: Rebuilt.
5513         * configure: Rebuilt.
5515 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
5517         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5518         correctly.
5519         * src/ia64/unix.S: Add unwind information. Fix comments.
5520         Save sp in a way that's compatible with unwind info.
5521         (ffi_call_unix): Correctly restore sp in all cases.
5522         * src/ia64/ffi.c: Add, fix comments.
5524 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
5526         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5528 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
5530         * configure.in (alpha*-*-netbsd*): Add target.
5531         * configure: Regenerate.
5533 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
5535         * src/sparc/v8.S: Add unwind info.
5536         * src/sparc/v9.S: Likewise.
5538 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
5540         * configure.in: Enable i*86-*-netbsdelf*.
5541         * configure: Rebuilt.
5543 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
5545         PR other/2620
5546         * src/mips/n32.s: Delete
5547         * src/mips/o32.s: Delete
5549 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
5551         * configure.in: Enable alpha*-*-freebsd*.
5552         * configure: Rebuilt.
5554 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5556         * Makefile.am: libfficonvenience -> libffi_convenience.
5557         * Makefile.in: Rebuilt.
5559         * Makefile.am: Define ffitest_OBJECTS.
5560         * Makefile.in: Rebuilt.
5562 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
5563             David Edelsohn  <edelsohn@gnu.org>
5565         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5566         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5567         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5568         * Makefile.in: Regenerate.
5569         * include/ffi.h.in: Add AIX and Darwin closure definitions.
5570         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5571         (flush_icache, flush_range): New functions.
5572         (ffi_closure_helper_DARWIN): New function.
5573         * src/powerpc/aix_closure.S: New file.
5574         * src/powerpc/darwin_closure.S: New file.
5576 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
5578         * include/ffi.h.in: Add typedef for ffi_arg.
5579         * src/ffitest.c (main): Declare rint with ffi_arg.
5581 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
5583         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5584         number of GPRs for floating-point arguments.
5586 2002-01-31  Anthony Green  <green@redhat.com>
5588         * configure: Rebuilt.
5589         * configure.in: Replace CHECK_SIZEOF and endian tests with
5590         cross-compiler friendly macros.
5591         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5592         macros.
5594 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
5596         * src/powerpc/darwin.S (_ffi_call_AIX): New.
5597         * src/powerpc/aix.S (ffi_call_DARWIN): New.
5599 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
5601         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5602         (TARGET_SRC_POWERPC_AIX): New.
5603         (POWERPC_AIX): New stanza.
5604         * Makefile.in: Regenerate.
5605         * configure.in: Add AIX case.
5606         * configure: Regenerate.
5607         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5608         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5609         size.  Fix "long double" support.
5610         (ffi_call): Add FFI_AIX case.
5611         * src/powerpc/aix.S: New.
5613 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
5615         Implement Darwin PowerPC ABI.
5616         * configure.in: Handle powerpc-*-darwin*.
5617         * Makefile.am: Set source files for POWERPC_DARWIN.
5618         * configure: Rebuilt.
5619         * Makefile.in: Rebuilt.
5620         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5621         POWERPC_DARWIN.
5622         * src/powerpc/darwin.S: New file.
5623         * src/powerpc/ffi_darwin.c: New file.
5625 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5627         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5629 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5631         * src/x86/sysv.S: Avoid gas-only .balign directive.
5632         Use C style comments.
5634 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5636         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5637         Fixes PR bootstrap/3563.
5639 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5641         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5643 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5645         * configure.in: Recognize sparc*-sun-* host.
5646         * configure: Regenerate.
5648 2001-06-06  Andrew Haley  <aph@redhat.com>
5650         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
5652 2001-06-03  Andrew Haley  <aph@redhat.com>
5654         * src/alpha/osf.S: Add unwind info.
5655         * src/powerpc/sysv.S: Add unwind info.
5656         * src/powerpc/ppc_closure.S: Likewise.
5658 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
5660         * configure.in: Fix AC_ARG_ENABLE usage.
5661         * configure: Rebuilt.
5663 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5665         * configure.in: Remove warning about beta code.
5666         * configure: Rebuilt.
5668 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
5670         * src/ia64/unix.S: Restore stack pointer when returning from
5671         ffi_closure_UNIX.
5672         * src/ia64/ffi.c: Fix typo in comment.
5674 2001-04-18  Jim Wilson  <wilson@redhat.com>
5676         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5677         to eliminate RAW DV.
5679 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
5681         * Makefile.am: Make a libtool convenience library.
5682         * Makefile.in: Rebuilt.
5684 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
5686         * configure.in: Use different syntax for subdirectory creation.
5687         * configure: Rebuilt.
5689 2001-03-27  Jon Beniston  <jon@beniston.com>
5691         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5692         * configure: Rebuilt.
5693         * Makefile.am: Added X86_WIN32 target support.
5694         * Makefile.in: Rebuilt.
5696         * include/ffi.h.in: Added X86_WIN32 target support.
5698         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5699         * src/types.c: Added X86_WIN32 target support.
5701         * src/x86/win32.S: New file. Based on sysv.S, but with EH
5702         stuff removed and made to work with CygWin's gas.
5704 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
5706         * configure.in: Make target subdirectory in build dir.
5707         * Makefile.am: Override suffix based rules to specify correct output
5708         subdirectory.
5709         * Makefile.in: Rebuilt.
5710         * configure: Rebuilt.
5712 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
5714         * src/powerpc/ppc_closure.S: New file.
5715         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5716         involving long long and register pairs.
5717         (ffi_prep_closure): New function.
5718         (flush_icache): Likewise.
5719         (ffi_closure_helper_SYSV): Likewise.
5720         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5721         (FFI_TRAMPOLINE_SIZE): Likewise.
5722         (FFI_NATIVE_RAW_API): Likewise.
5723         * Makefile.in: Rebuilt.
5724         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5725         (TARGET_SRC_POWERPC): Likewise.
5727 2001-03-19  Tom Tromey  <tromey@redhat.com>
5729         * Makefile.in: Rebuilt.
5730         * Makefile.am (ffitest_LDFLAGS): New macro.
5732 2001-03-02  Nick Clifton  <nickc@redhat.com>
5734         * include/ffi.h.in: Remove RCS ident string.
5735         * include/ffi_mips.h: Remove RCS ident string.
5736         * src/debug.c: Remove RCS ident string.
5737         * src/ffitest.c: Remove RCS ident string.
5738         * src/prep_cif.c: Remove RCS ident string.
5739         * src/types.c: Remove RCS ident string.
5740         * src/alpha/ffi.c: Remove RCS ident string.
5741         * src/alpha/osf.S: Remove RCS ident string.
5742         * src/arm/ffi.c: Remove RCS ident string.
5743         * src/arm/sysv.S: Remove RCS ident string.
5744         * src/mips/ffi.c: Remove RCS ident string.
5745         * src/mips/n32.S: Remove RCS ident string.
5746         * src/mips/o32.S: Remove RCS ident string.
5747         * src/sparc/ffi.c: Remove RCS ident string.
5748         * src/sparc/v8.S: Remove RCS ident string.
5749         * src/sparc/v9.S: Remove RCS ident string.
5750         * src/x86/ffi.c: Remove RCS ident string.
5751         * src/x86/sysv.S: Remove RCS ident string.
5753 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5755         * include/ffi.h.in: Change sourceware.cygnus.com references to
5756         gcc.gnu.org.
5758 2000-12-09  Richard Henderson  <rth@redhat.com>
5760         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5761         (ffi_closure_osf_inner): Index rather than increment avalue
5762         and arg_types.  Give ffi_closure_osf the raw return value type.
5763         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5764         promotion.
5766 2000-12-07  Richard Henderson  <rth@redhat.com>
5768         * src/raw_api.c (ffi_translate_args): Fix typo.
5769         (ffi_prep_closure): Likewise.
5771         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5772         FFI_TRAMPOLINE_SIZE.
5773         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5774         cif->bytes for new ffi_call_osf implementation.
5775         (ffi_prep_args): Absorb into ...
5776         (ffi_call): ... here.  Do all stack allocation here and
5777         avoid a callback function.
5778         (ffi_prep_closure, ffi_closure_osf_inner): New.
5779         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5780         (ffi_closure_osf): New.
5782 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
5784         * config.guess, config.sub, install-sh: Removed.
5785         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5786         * Makefile.in: Rebuilt.
5788         * acinclude.m4: Include libtool macros from the top level.
5789         * aclocal.m4, configure: Rebuilt.
5791 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
5793         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5794         * configure: Rebuilt.
5796 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
5798         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5799         memory correctly.  Use conditional instructions, not branches where
5800         possible.
5802 2000-05-04  Tom Tromey  <tromey@cygnus.com>
5804         * configure: Rebuilt.
5805         * configure.in: Match `arm*-*-linux-*'.
5806         From Chris Dornan <cdornan@arm.com>.
5808 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
5810         * Makefile.am (SUBDIRS): Define.
5811         (AM_MAKEFLAGS): Likewise.
5812         (Multilib support.): Add section.
5813         * Makefile.in: Rebuilt.
5814         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
5815         New variables. Set for gcc using -print-multi-lib. Export them
5816         to libtool.
5817         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5818         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5819         for -shared links.
5820         (extra_compiler_flags_value, extra_compiler_flags): Check these
5821         for extra compiler options which need to be passed down in
5822         compiler_flags.
5824 2000-04-16  Anthony Green  <green@redhat.com>
5826         * configure: Rebuilt.
5827         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5829 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
5831         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
5832         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5833         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5834         Replace all void * sizeofs with sizeof(int).
5835         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5836         different than DOUBLE.
5837         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5838         (ffi_prep_args_v9): New function.
5839         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5840         (ffi_V9_return_struct): New function.
5841         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5842         32bit code (not yet cross-arch calls).
5843         * src/sparc/v8.S: Add struct return delay nop.
5844         Handle long long.
5845         * src/sparc/v9.S: New file.
5846         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5847         is used on sparc64 only for structures larger than 32 bytes.
5848         Pass by reference for structures is done for structure arguments
5849         larger than 16 bytes.
5850         * src/ffitest.c (main): Use 64bit rint on sparc64.
5851         Run long long tests on sparc.
5852         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5853         sparc64.
5854         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5855         on sparc64.
5856         * configure.in (sparc-*-linux*): New supported target.
5857         (sparc64-*-linux*): Likewise.
5858         * configure: Rebuilt.
5859         * Makefile.am: Add v9.S to SPARC files.
5860         * Makefile.in: Likewise.
5861         (LINK): Surround $(CCLD) into double quotes, so that multilib
5862         compiles work correctly.
5864 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5866         * configure: Rebuilt.
5867         * configure.in: (i*86-*-solaris*): New libffi target. Patch
5868         proposed by Bryce McKinlay.
5870 2000-03-20  Tom Tromey  <tromey@cygnus.com>
5872         * Makefile.in: Hand edit for java_raw_api.lo.
5874 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
5876         * config.guess, config.sub: Update from the gcc tree.
5877         Fix for PR libgcj/168.
5879 2000-03-03  Tom Tromey  <tromey@cygnus.com>
5881         * Makefile.in: Fixed ia64 by hand.
5883         * configure: Rebuilt.
5884         * configure.in (--enable-multilib): New option.
5885         (libffi_basedir): New subst.
5886         (AC_OUTPUT): Added multilib code.
5888 2000-03-02  Tom Tromey  <tromey@cygnus.com>
5890         * Makefile.in: Rebuilt.
5891         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5892         directory name.
5894 2000-02-25  Hans Boehm <boehm@acm.org>
5896         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5897         files.
5898         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5899         list.
5900         (ffi_prep_raw_closure): Use ffi_translate_args, not
5901         ffi_closure_translate.
5902         * src/java_raw_api.c: New file.
5903         * src/ffitest.c (closure_test_fn): New function.
5904         (main): Define `rint' as long long on IA64.  Added new test when
5905         FFI_CLOSURES is defined.
5906         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5907         (ffi_abi): Recognize IA64.
5908         (ffi_raw): Added `flt' field.
5909         Added "Java raw API" code.
5910         * configure.in: Recognize ia64.
5911         * Makefile.am (TARGET_SRC_IA64): New macro.
5912         (libffi_la_common_SOURCES): Added java_raw_api.c.
5913         (libffi_la_SOURCES): Define in IA64 case.
5915 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5917         * Makefile.in: Rebuilt with newer automake.
5919 1999-12-31  Tom Tromey  <tromey@cygnus.com>
5921         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5923 1999-09-01  Tom Tromey  <tromey@cygnus.com>
5925         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5926         undefs.
5927         * fficonfig.h.in: Rebuilt.
5928         * configure: Rebuilt.
5929         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5930         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5931         * acconfig.h: Don't #undef PACKAGE or VERSION.
5933 1999-08-09  Anthony Green  <green@cygnus.com>
5935         * include/ffi.h.in: Try to work around messy header problem
5936         with PACKAGE and VERSION.
5938         * configure: Rebuilt.
5939         * configure.in: Change version to 2.00-beta.
5941         * fficonfig.h.in: Rebuilt.
5942         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5944         * src/x86/ffi.c (ffi_raw_call): Rename.
5946 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
5948         * src/x86/ffi.c (ffi_closure_SYSV): New function.
5949         (ffi_prep_incoming_args_SYSV): Ditto.
5950         (ffi_prep_closure): Ditto.
5951         (ffi_closure_raw_SYSV): Ditto.
5952         (ffi_prep_raw_closure): More ditto.
5953         (ffi_call_raw): Final ditto.
5955         * include/ffi.h.in: Add definitions for closure and raw API.
5957         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
5958         FFI_TYPE_UINT64.
5960         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5962         * src/raw_api.c: New file.
5964         * include/ffi.h.in (ffi_raw): New type.
5965         (UINT_ARG, SINT_ARG): New defines.
5966         (ffi_closure, ffi_raw_closure): New types.
5967         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
5969         * configure.in: Add check for endianness and sizeof void*.
5971         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5972         instead of directly.
5974         * configure: Rebuilt.
5976 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
5978         * configure.in: Add x86 and powerpc BeOS configurations.
5979         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
5981 1999-05-09  Anthony Green  <green@cygnus.com>
5983         * configure.in: Add warning about this being beta code.
5984         Remove src/Makefile.am from the picture.
5985         * configure: Rebuilt.
5987         * Makefile.am: Move logic from src/Makefile.am.  Add changes
5988         to support libffi as a target library.
5989         * Makefile.in: Rebuilt.
5991         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5992         Upgraded to new autoconf, automake, libtool.
5994         * README: Tweaks.
5996         * LICENSE: Update copyright date.
5998         * src/Makefile.am, src/Makefile.in: Removed.
6000 1998-11-29  Anthony Green  <green@cygnus.com>
6002         * include/ChangeLog: Removed.
6003         * src/ChangeLog: Removed.
6004         * src/mips/ChangeLog: Removed.
6005         * src/sparc/ChangeLog: Remboved.
6006         * src/x86/ChangeLog: Removed.
6008         * ChangeLog.v1: Created.
6010 =============================================================================
6011 From the old ChangeLog.libffi file....
6013 2011-02-08  Andreas Tobler  <andreast@fgznet.ch>
6015         * testsuite/lib/libffi.exp: Tweak for stand-alone mode.
6017 2009-12-25  Samuli Suominen  <ssuominen@gentoo.org>
6019         * configure.ac: Undefine _AC_ARG_VAR_PRECIOUS for autoconf 2.64.
6020         * configure: Rebuilt.
6021         * fficonfig.h.in: Rebuilt.
6023 2009-06-16  Andrew Haley  <aph@redhat.com>
6025         * testsuite/libffi.call/cls_align_sint64.c,
6026         testsuite/libffi.call/cls_align_uint64.c,
6027         testsuite/libffi.call/cls_longdouble_va.c,
6028         testsuite/libffi.call/cls_ulonglong.c,
6029         testsuite/libffi.call/return_ll1.c,
6030         testsuite/libffi.call/stret_medium2.c: Fix printf format
6031         specifiers.
6032         * testsuite/libffi.call/huge_struct.c: Ad x86 XFAILs.
6033         * testsuite/libffi.call/float2.c: Fix dg-excess-errors.
6034         * testsuite/libffi.call/ffitest.h,
6035         testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
6037 2009-06-12  Andrew Haley  <aph@redhat.com>
6039         * testsuite/libffi.call/cls_align_sint64.c,
6040         testsuite/libffi.call/cls_align_uint64.c,
6041         testsuite/libffi.call/cls_ulonglong.c,
6042         testsuite/libffi.call/return_ll1.c,
6043         testsuite/libffi.call/stret_medium2.c: Fix printf format
6044         specifiers.
6045         testsuite/libffi.special/unwindtest.cc: include stdint.h.
6047 2009-06-11  Timothy Wall  <twall@users.sf.net>
6049         * Makefile.am,
6050         configure.ac,
6051         include/ffi.h.in,
6052         include/ffi_common.h,
6053         src/closures.c,
6054         src/dlmalloc.c,
6055         src/x86/ffi.c,
6056         src/x86/ffitarget.h,
6057         src/x86/win64.S (new),
6058         README: Added win64 support (mingw or MSVC)
6059         * Makefile.in,
6060         include/Makefile.in,
6061         man/Makefile.in,
6062         testsuite/Makefile.in,
6063         configure,
6064         aclocal.m4: Regenerated
6065         * ltcf-c.sh: properly escape cygwin/w32 path
6066         * man/ffi_call.3: Clarify size requirements for return value.
6067         * src/x86/ffi64.c: Fix filename in comment.
6068         * src/x86/win32.S: Remove unused extern.
6070         * testsuite/libffi.call/closure_fn0.c,
6071         testsuite/libffi.call/closure_fn1.c,
6072         testsuite/libffi.call/closure_fn2.c,
6073         testsuite/libffi.call/closure_fn3.c,
6074         testsuite/libffi.call/closure_fn4.c,
6075         testsuite/libffi.call/closure_fn5.c,
6076         testsuite/libffi.call/closure_fn6.c,
6077         testsuite/libffi.call/closure_stdcall.c,
6078         testsuite/libffi.call/cls_12byte.c,
6079         testsuite/libffi.call/cls_16byte.c,
6080         testsuite/libffi.call/cls_18byte.c,
6081         testsuite/libffi.call/cls_19byte.c,
6082         testsuite/libffi.call/cls_1_1byte.c,
6083         testsuite/libffi.call/cls_20byte.c,
6084         testsuite/libffi.call/cls_20byte1.c,
6085         testsuite/libffi.call/cls_24byte.c,
6086         testsuite/libffi.call/cls_2byte.c,
6087         testsuite/libffi.call/cls_3_1byte.c,
6088         testsuite/libffi.call/cls_3byte1.c,
6089         testsuite/libffi.call/cls_3byte2.c,
6090         testsuite/libffi.call/cls_4_1byte.c,
6091         testsuite/libffi.call/cls_4byte.c,
6092         testsuite/libffi.call/cls_5_1_byte.c,
6093         testsuite/libffi.call/cls_5byte.c,
6094         testsuite/libffi.call/cls_64byte.c,
6095         testsuite/libffi.call/cls_6_1_byte.c,
6096         testsuite/libffi.call/cls_6byte.c,
6097         testsuite/libffi.call/cls_7_1_byte.c,
6098         testsuite/libffi.call/cls_7byte.c,
6099         testsuite/libffi.call/cls_8byte.c,
6100         testsuite/libffi.call/cls_9byte1.c,
6101         testsuite/libffi.call/cls_9byte2.c,
6102         testsuite/libffi.call/cls_align_double.c,
6103         testsuite/libffi.call/cls_align_float.c,
6104         testsuite/libffi.call/cls_align_longdouble.c,
6105         testsuite/libffi.call/cls_align_longdouble_split.c,
6106         testsuite/libffi.call/cls_align_longdouble_split2.c,
6107         testsuite/libffi.call/cls_align_pointer.c,
6108         testsuite/libffi.call/cls_align_sint16.c,
6109         testsuite/libffi.call/cls_align_sint32.c,
6110         testsuite/libffi.call/cls_align_sint64.c,
6111         testsuite/libffi.call/cls_align_uint16.c,
6112         testsuite/libffi.call/cls_align_uint32.c,
6113         testsuite/libffi.call/cls_align_uint64.c,
6114         testsuite/libffi.call/cls_dbls_struct.c,
6115         testsuite/libffi.call/cls_double.c,
6116         testsuite/libffi.call/cls_double_va.c,
6117         testsuite/libffi.call/cls_float.c,
6118         testsuite/libffi.call/cls_longdouble.c,
6119         testsuite/libffi.call/cls_longdouble_va.c,
6120         testsuite/libffi.call/cls_multi_schar.c,
6121         testsuite/libffi.call/cls_multi_sshort.c,
6122         testsuite/libffi.call/cls_multi_sshortchar.c,
6123         testsuite/libffi.call/cls_multi_uchar.c,
6124         testsuite/libffi.call/cls_multi_ushort.c,
6125         testsuite/libffi.call/cls_multi_ushortchar.c,
6126         testsuite/libffi.call/cls_pointer.c,
6127         testsuite/libffi.call/cls_pointer_stack.c,
6128         testsuite/libffi.call/cls_schar.c,
6129         testsuite/libffi.call/cls_sint.c,
6130         testsuite/libffi.call/cls_sshort.c,
6131         testsuite/libffi.call/cls_uchar.c,
6132         testsuite/libffi.call/cls_uint.c,
6133         testsuite/libffi.call/cls_ulonglong.c,
6134         testsuite/libffi.call/cls_ushort.c,
6135         testsuite/libffi.call/err_bad_abi.c,
6136         testsuite/libffi.call/err_bad_typedef.c,
6137         testsuite/libffi.call/float2.c,
6138         testsuite/libffi.call/huge_struct.c,
6139         testsuite/libffi.call/nested_struct.c,
6140         testsuite/libffi.call/nested_struct1.c,
6141         testsuite/libffi.call/nested_struct10.c,
6142         testsuite/libffi.call/nested_struct2.c,
6143         testsuite/libffi.call/nested_struct3.c,
6144         testsuite/libffi.call/nested_struct4.c,
6145         testsuite/libffi.call/nested_struct5.c,
6146         testsuite/libffi.call/nested_struct6.c,
6147         testsuite/libffi.call/nested_struct7.c,
6148         testsuite/libffi.call/nested_struct8.c,
6149         testsuite/libffi.call/nested_struct9.c,
6150         testsuite/libffi.call/problem1.c,
6151         testsuite/libffi.call/return_ldl.c,
6152         testsuite/libffi.call/return_ll1.c,
6153         testsuite/libffi.call/stret_large.c,
6154         testsuite/libffi.call/stret_large2.c,
6155         testsuite/libffi.call/stret_medium.c,
6156         testsuite/libffi.call/stret_medium2.c,
6157         testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
6158         of checking for MMAP.  Use intptr_t instead of long casts.
6160 2009-06-04  Andrew Haley  <aph@redhat.com>
6162         * src/powerpc/ffitarget.h: Fix misapplied merge from gcc.
6164 2009-06-04  Andrew Haley  <aph@redhat.com>
6166         * src/mips/o32.S,
6167         src/mips/n32.S: Fix licence formatting.
6169 2009-06-04  Andrew Haley  <aph@redhat.com>
6171         * src/x86/darwin.S: Fix licence formatting.
6172         src/x86/win32.S: Likewise.
6173         src/sh64/sysv.S: Likewise.
6174         src/sh/sysv.S: Likewise.
6176 2009-06-04  Andrew Haley  <aph@redhat.com>
6178         * src/sh64/ffi.c: Remove lint directives.  Was missing from merge
6179         of Andreas Tobler's patch from 2006-04-22.
6180         
6181 2009-06-04  Andrew Haley  <aph@redhat.com>
6183         * src/sh/ffi.c: Apply missing hunk from Alexandre Oliva's patch of
6184         2007-03-07.
6186 2008-12-26  Timothy Wall  <twall@users.sf.net>
6188         * testsuite/libffi.call/cls_longdouble.c,
6189         testsuite/libffi.call/cls_longdouble_va.c,
6190         testsuite/libffi.call/cls_align_longdouble.c,
6191         testsuite/libffi.call/cls_align_longdouble_split.c,
6192         testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
6193         failures on x86_64 cygwin/mingw.
6195 2008-12-22  Timothy Wall  <twall@users.sf.net>
6197         * testsuite/libffi.call/closure_fn0.c,
6198         testsuite/libffi.call/closure_fn1.c,    
6199         testsuite/libffi.call/closure_fn2.c,    
6200         testsuite/libffi.call/closure_fn3.c,    
6201         testsuite/libffi.call/closure_fn4.c,    
6202         testsuite/libffi.call/closure_fn5.c,    
6203         testsuite/libffi.call/closure_fn6.c,    
6204         testsuite/libffi.call/closure_loc_fn0.c,    
6205         testsuite/libffi.call/closure_stdcall.c,    
6206         testsuite/libffi.call/cls_align_pointer.c,    
6207         testsuite/libffi.call/cls_pointer.c,    
6208         testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
6209         pointer to integer (intptr_t).
6210         * testsuite/libffi.call/cls_longdouble.c: disable for win64.
6211         
6212 2008-12-19  Anthony Green  <green@redhat.com>
6214         * configure.ac: Bump version to 3.0.8.
6215         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6216         * libtool-version: Increment revision.
6217         * README: Update for new release.
6219 2008-11-11  Anthony Green  <green@redhat.com>
6221         * configure.ac: Bump version to 3.0.7.
6222         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6223         * libtool-version: Increment revision.
6224         * README: Update for new release.
6226 2008-08-25  Andreas Tobler  <a.tobler@schweiz.org>
6228         * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
6229         FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
6230         Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
6231         Adjust copyright notice.
6232         * src/powerpc/ffi.c: Add two new flags to indicate if we have one
6233         register or two register to use for FFI_SYSV structs.
6234         (ffi_prep_cif_machdep): Pass the right register flag introduced above.
6235         (ffi_closure_helper_SYSV): Fix the return type for
6236         FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
6237         Adjust copyright notice.
6239 2008-07-24  Anthony Green  <green@redhat.com>
6241         * testsuite/libffi.call/cls_dbls_struct.c,
6242         testsuite/libffi.call/cls_double_va.c,
6243         testsuite/libffi.call/cls_longdouble.c,
6244         testsuite/libffi.call/cls_longdouble_va.c,
6245         testsuite/libffi.call/cls_pointer.c,
6246         testsuite/libffi.call/cls_pointer_stack.c,
6247         testsuite/libffi.call/err_bad_abi.c: Clean up failures from
6248         compiler warnings.
6250 2008-07-17  Anthony Green  <green@redhat.com>
6252         * configure.ac: Bump version to 3.0.6.
6253         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6254         * libtool-version: Increment revision.  Add documentation.
6255         * README: Update for new release.
6257 2008-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
6259         * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
6260         int.
6262 2008-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
6264         * src/sh/sysv.S: Add .note.GNU-stack on Linux.
6265         * src/sh64/sysv.S: Likewise.
6267 2008-04-03  Anthony Green  <green@redhat.com>
6269         * libffi.pc.in (Libs): Add -L${libdir}.
6270         * configure.ac: Bump version to 3.0.5.
6271         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6272         * libtool-version: Increment revision.
6273         * README: Update for new release.
6275 2008-04-03  Anthony Green  <green@redhat.com>
6276             Xerces Ranby  <xerxes@zafena.se>
6278         * include/ffi.h.in: Wrap definition of target architecture to
6279         protect from double definitions.
6281 2008-03-22  Moriyoshi Koizumi  <moriyoshi@gmail.com>
6283         * src/x86/ffi.c (ffi_prep_closure_loc): Fix for bug revealed in
6284         closure_loc_fn0.c.
6285         * testsuite/libffi.call/closure_loc_fn0.c (closure_loc_test_fn0):
6286         New test.
6288 2008-03-04  Anthony Green  <green@redhat.com>
6289             Blake Chaffin
6290             hos@tamanegi.org
6292         * testsuite/libffi.call/cls_align_longdouble_split2.c
6293           testsuite/libffi.call/cls_align_longdouble_split.c
6294           testsuite/libffi.call/cls_dbls_struct.c
6295           testsuite/libffi.call/cls_double_va.c
6296           testsuite/libffi.call/cls_longdouble.c
6297           testsuite/libffi.call/cls_longdouble_va.c
6298           testsuite/libffi.call/cls_pointer.c
6299           testsuite/libffi.call/cls_pointer_stack.c
6300           testsuite/libffi.call/err_bad_abi.c
6301           testsuite/libffi.call/err_bad_typedef.c
6302           testsuite/libffi.call/huge_struct.c
6303           testsuite/libffi.call/stret_large2.c
6304           testsuite/libffi.call/stret_large.c
6305           testsuite/libffi.call/stret_medium2.c
6306           testsuite/libffi.call/stret_medium.c: New tests from Apple.
6308 2008-02-26  Jakub Jelinek  <jakub@redhat.com>
6309             Anthony Green  <green@redhat.com>
6311         * src/alpha/osf.S: Add .note.GNU-stack on Linux.
6312         * src/s390/sysv.S: Likewise.
6313         * src/powerpc/linux64.S: Likewise.
6314         * src/powerpc/linux64_closure.S: Likewise.
6315         * src/powerpc/ppc_closure.S: Likewise.
6316         * src/powerpc/sysv.S: Likewise.
6317         * src/x86/unix64.S: Likewise.
6318         * src/x86/sysv.S: Likewise.
6319         * src/sparc/v8.S: Likewise.
6320         * src/sparc/v9.S: Likewise.
6321         * src/m68k/sysv.S: Likewise.
6322         * src/ia64/unix.S: Likewise.
6323         * src/arm/sysv.S: Likewise.
6325 2008-02-26  Anthony Green  <green@redhat.com>
6326             Thomas Heller  <theller@ctypes.org>
6328         * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
6329         comment.
6331 2008-02-26  Anthony Green  <green@redhat.org>
6332             Thomas Heller  <theller@ctypes.org>
6334         * include/ffi.h.in: Change void (*)() to void (*)(void).
6336 2008-02-26  Anthony Green  <green@redhat.org>
6337             Thomas Heller  <theller@ctypes.org>
6339         * src/alpha/ffi.c: Change void (*)() to void (*)(void).
6340         src/alpha/osf.S, src/arm/ffi.c, src/frv/ffi.c, src/ia64/ffi.c,
6341         src/ia64/unix.S, src/java_raw_api.c, src/m32r/ffi.c,
6342         src/mips/ffi.c, src/pa/ffi.c, src/pa/hpux32.S, src/pa/linux.S,
6343         src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/raw_api.c,
6344         src/s390/ffi.c, src/sh/ffi.c, src/sh64/ffi.c, src/sparc/ffi.c,
6345         src/x86/ffi.c, src/x86/unix64.S, src/x86/darwin64.S,
6346         src/x86/ffi64.c: Ditto.
6348 2008-02-24  Anthony Green  <green@redhat.org>
6350         * configure.ac: Accept openbsd*, not just openbsd.
6351         Bump version to 3.0.4.
6352         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6353         * libtool-version: Increment revision.
6354         * README: Update for new release.
6356 2008-02-22  Anthony Green  <green@redhat.com>
6358         * README: Clean up list of tested platforms.
6360 2008-02-22  Anthony Green  <green@redhat.com>
6362         * configure.ac: Bump version to 3.0.3.
6363         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6364         * libtool-version: Increment revision.
6365         * README: Update for new release.  Clean up test docs.
6367 2008-02-22  Bjoern Koenig  <bkoenig@alpha-tierchen.de>
6368             Andreas Tobler  <a.tobler@schweiz.org>
6370         * configure.ac: Add amd64-*-freebsd* target.
6371         * configure: Regenerate.
6373 2008-02-22  Thomas Heller <theller@ctypes.org>
6375         * configure.ac: Add x86 OpenBSD support.
6376         * configure: Rebuilt.
6378 2008-02-21  Thomas Heller <theller@ctypes.org>
6380         * README: Change "make test" to "make check".
6382 2008-02-21  Anthony Green  <green@redhat.com>
6384         * configure.ac: Bump version to 3.0.2.
6385         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6386         * libtool-version: Increment revision.
6387         * README: Update for new release.
6389 2008-02-21  Björn König <bkoenig@alpha-tierchen.de>
6391         * src/x86/freebsd.S: New file.
6392         * configure.ac: Add x86 FreeBSD support.
6393         * Makefile.am: Ditto.
6395 2008-02-15  Anthony Green  <green@redhat.com>
6397         * configure.ac: Bump version to 3.0.1.
6398         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6399         * libtool-version: Increment revision.
6400         * README: Update for new release.
6402 2008-02-15  David Daney  <ddaney@avtrex.com>
6404         * src/mips/ffi.c: Remove extra '>' from include directive.
6405         (ffi_prep_closure_loc): Use clear_location instead of tramp.
6407 2008-02-15  Anthony Green  <green@redhat.com>
6409         * configure.ac: Bump version to 3.0.0.
6410         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6412 2008-02-15  David Daney  <ddaney@avtrex.com>
6414         * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
6415         Define (conditionally), and use it to include cachectl.h.
6416         (ffi_prep_closure_loc): Fix cache flushing.
6417         * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
6419 2008-02-15  Anthony Green  <green@redhat.com>
6421         * man/ffi_call.3, man/ffi_prep_cif.3, man/ffi.3:
6422         Update dates and remove all references to ffi_prep_closure.
6423         * configure.ac: Bump version to 2.99.9.
6424         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6426 2008-02-15  Anthony Green  <green@redhat.com>
6428         * man/ffi_prep_closure.3: Delete.
6429         * man/Makefile.am (EXTRA_DIST): Remove ffi_prep_closure.3.
6430         (man_MANS): Ditto.
6431         * man/Makefile.in: Rebuilt.
6432         * configure.ac: Bump version to 2.99.8.
6433         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6435 2008-02-14  Anthony Green  <green@redhat.com>
6437         * configure.ac: Bump version to 2.99.7.
6438         * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
6439         * include/ffi.h.in LICENSE src/debug.c src/closures.c
6440           src/ffitest.c src/s390/sysv.S src/s390/ffitarget.h
6441           src/types.c src/m68k/ffitarget.h src/raw_api.c src/frv/ffi.c
6442           src/frv/ffitarget.h src/sh/ffi.c src/sh/sysv.S
6443           src/sh/ffitarget.h src/powerpc/ffitarget.h src/pa/ffi.c
6444           src/pa/ffitarget.h src/pa/linux.S src/java_raw_api.c
6445           src/cris/ffitarget.h src/x86/ffi.c src/x86/sysv.S
6446           src/x86/unix64.S src/x86/win32.S src/x86/ffitarget.h
6447           src/x86/ffi64.c src/x86/darwin.S src/ia64/ffi.c
6448           src/ia64/ffitarget.h src/ia64/ia64_flags.h src/ia64/unix.S
6449           src/sparc/ffi.c src/sparc/v9.S src/sparc/ffitarget.h
6450           src/sparc/v8.S src/alpha/ffi.c src/alpha/ffitarget.h
6451           src/alpha/osf.S src/sh64/ffi.c src/sh64/sysv.S
6452           src/sh64/ffitarget.h src/mips/ffi.c src/mips/ffitarget.h
6453           src/mips/n32.S src/mips/o32.S src/arm/ffi.c src/arm/sysv.S
6454           src/arm/ffitarget.h src/prep_cif.c: Update license text.
6456 2008-02-14  Anthony Green  <green@redhat.com>
6458         * README: Update tested platforms.
6459         * configure.ac: Bump version to 2.99.6.
6460         * configure: Rebuilt.
6462 2008-02-14  Anthony Green  <green@redhat.com>
6464         * configure.ac: Bump version to 2.99.5.
6465         * configure: Rebuilt.
6466         * Makefile.am (EXTRA_DIST): Add darwin64.S
6467         * Makefile.in: Rebuilt.
6468         * testsuite/lib/libffi-dg.exp: Remove libstdc++ bits from GCC tree.
6469         * LICENSE: Update WARRANTY.
6471 2008-02-14  Anthony Green  <green@redhat.com>
6473         * libffi.pc.in (libdir): Fix libdir definition.
6474         * configure.ac: Bump version to 2.99.4.
6475         * configure: Rebuilt.
6477 2008-02-14  Anthony Green  <green@redhat.com>
6479         * README: Update.
6480         * libffi.info: New file.
6481         * doc/stamp-vti: New file.
6482         * configure.ac: Bump version to 2.99.3.
6483         * configure: Rebuilt.
6485 2008-02-14  Anthony Green  <green@redhat.com>
6487         * Makefile.am (SUBDIRS): Add man dir.
6488         * Makefile.in: Rebuilt.
6489         * configure.ac: Create Makefile.
6490         * configure: Rebuilt.
6491         * man/ffi_call.3 man/ffi_prep_cif.3 man/ffi_prep_closure.3
6492           man/Makefile.am man/Makefile.in: New files.
6494 2008-02-14  Tom Tromey  <tromey@redhat.com>
6496         * aclocal.m4, Makefile.in, configure, fficonfig.h.in: Rebuilt.
6497         * mdate-sh, texinfo.tex: New files.
6498         * Makefile.am (info_TEXINFOS): New variable.
6499         * doc/libffi.texi: New file.
6500         * doc/version.texi: Likewise.
6502 2008-02-14  Anthony Green  <green@redhat.com>
6504         * Makefile.am (AM_CFLAGS): Don't compile with -D$(TARGET).
6505         (lib_LTLIBRARIES): Define.
6506         (toolexeclib_LIBRARIES): Undefine.
6507         * Makefile.in: Rebuilt.
6508         * configure.ac: Reset version to 2.99.1.
6509         * configure.in: Rebuilt.
6511 2008-02-14  Anthony Green  <green@redhat.com>
6513         * libffi.pc.in: Use @PACKAGE_NAME@ and @PACKAGE_VERSION@.
6514         * configure.ac: Reset version to 2.99.1.
6515         * configure.in: Rebuilt.
6516         * Makefile.am (EXTRA_DIST): Add ChangeLog.libffi.
6517         * Makefile.in: Rebuilt.
6518         * LICENSE: Update copyright notice.
6520 2008-02-14  Anthony Green  <green@redhat.com>
6522         * include/Makefile.am (nodist_includes_HEADERS): Define.  Don't
6523         distribute ffitarget.h or ffi.h from the build include dir.
6524         * Makefile.in: Rebuilt.
6526 2008-02-14  Anthony Green  <green@redhat.com>
6528         * include/Makefile.am (includesdir): Install headers under libdir.
6529         (pkgconfigdir): Define. Install libffi.pc.
6530         * include/Makefile.in: Rebuilt.
6531         * libffi.pc.in: Create.
6532         * libtool-version: Increment CURRENT
6533         * configure.ac: Add libffi.pc.in
6534         * configure: Rebuilt.
6536 2008-02-03  Anthony Green  <green@redhat.com>
6538         * include/Makefile.am (includesdir): Fix header install with
6539         DESTDIR.
6540         * include/Makefile.in: Rebuilt.
6542 2008-02-03  Timothy Wall  <twall@users.sf.net>
6544         * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
6545           offset based on code pointer, not data pointer.
6547 2008-02-01  Anthony Green  <green@redhat.com>
6549         * include/Makefile.am: Fix header installs.
6550         * Makefile.am: Ditto.
6551         * include/Makefile.in: Rebuilt.
6552         * Makefile.in: Ditto.
6554 2008-02-01  Anthony Green  <green@redhat.com>
6556         * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL,
6557         FFI_INIT_TRAMPOLINE): Revert my broken changes to twall's last
6558         patch.
6560 2008-01-31  Anthony Green  <green@redhat.com>
6562         * Makefile.am (EXTRA_DIST): Add missing files.
6563         * testsuite/Makefile.am: Ditto.
6564         * Makefile.in, testsuite/Makefile.in: Rebuilt.
6566 2008-01-31  Timothy Wall <twall@users.sf.net>
6568         * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
6569         closures.
6570         * src/x86/ffitarget.h: Increase size of trampoline for stdcall
6571         closures.
6572         * src/x86/win32.S: Add assembly for stdcall closure.
6573         * src/x86/ffi.c: Initialize stdcall closure trampoline.
6575 2008-01-30  H.J. Lu <hongjiu.lu@intel.com>
6577         PR libffi/34612
6578         * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
6579         returning struct.
6581         * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
6582         tests.
6584 2008-01-30  Anthony Green  <green@redhat.com>
6586         * Makefile.am, include/Makefile.am: Move headers to
6587         libffi_la_SOURCES for new automake.
6588         * Makefile.in, include/Makefile.in: Rebuilt.
6590         * testsuite/lib/wrapper.exp: Copied from gcc tree to allow for
6591         execution outside of gcc tree.
6592         * testsuite/lib/target-libpath.exp: Ditto.
6594         * testsuite/lib/libffi-dg.exp: Many changes to allow for execution
6595         outside of gcc tree.
6598 =============================================================================
6599 From the old ChangeLog.libgcj file....
6601 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
6603         * configure.in: Add in AC_PREREQ(2.13)
6605 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
6607         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6608         config.status.
6609         * configure: Rebuilt.
6611 2002-01-27  Alexandre Oliva  <aoliva@redhat.com>
6613         * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
6614         Remove USE_LIBDIR conditional.
6615         * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
6616         * Makefile.in, configure: Rebuilt.
6618 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6620         * include/Makefile.in: Rebuilt.
6621         * Makefile.in: Rebuilt
6622         * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
6623         builds.
6624         Use USE_LIBDIR.
6626         * configure: Rebuilt.
6627         * configure.in (USE_LIBDIR): Define for native builds.
6628         Use lowercase in configure --help explanations.
6630 1999-08-08  Anthony Green  <green@cygnus.com>
6632         * include/ffi.h.in (FFI_FN): Remove `...'.
6634 1999-08-08  Anthony Green  <green@cygnus.com>
6636         * Makefile.in: Rebuilt.
6637         * Makefile.am (AM_CFLAGS): Compile with -fexceptions.
6639         * src/x86/sysv.S: Add exception handling metadata.
6642 =============================================================================
6643         
6644 The libffi version 1 ChangeLog archive.
6646 Version 1 of libffi had per-directory ChangeLogs.  Current and future
6647 versions have a single ChangeLog file in the root directory.  The
6648 version 1 ChangeLogs have all been concatenated into this file for
6649 future reference only.
6651 --- libffi ----------------------------------------------------------------
6653 Mon Oct  5 02:17:50 1998  Anthony Green  <green@cygnus.com>
6655         * configure.in: Boosted rev.
6656         * configure, Makefile.in, aclocal.m4: Rebuilt.
6657         * README: Boosted rev and updated release notes.
6659 Mon Oct  5 01:03:03 1998  Anthony Green  <green@cygnus.com>
6661         * configure.in: Boosted rev.
6662         * configure, Makefile.in, aclocal.m4: Rebuilt.
6663         * README: Boosted rev and updated release notes.
6665 1998-07-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6667         * m68k/ffi.c (ffi_prep_cif_machdep): Use bitmask for cif->flags.
6668         Correctly handle small structures.
6669         (ffi_prep_args): Also handle small structures.
6670         (ffi_call): Pass size of return type to ffi_call_SYSV.
6671         * m68k/sysv.S: Adjust for above changes.  Correctly align small
6672         structures in the return value.
6674         * types.c (uint64, sint64) [M68K]: Change alignment to 4.
6676 Fri Apr 17 17:26:58 1998  Anthony Green  <green@hoser.cygnus.com>
6678         * configure.in: Boosted rev.
6679         * configure,Makefile.in,aclocal.m4: Rebuilt.
6680         * README: Boosted rev and added release notes.
6682 Sun Feb 22 00:50:41 1998  Geoff Keating  <geoffk@ozemail.com.au>
6684         * configure.in: Add PowerPC config bits.
6686 1998-02-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6688         * configure.in: Add m68k config bits.  Change AC_CANONICAL_SYSTEM
6689         to AC_CANONICAL_HOST, this is not a compiler.  Use $host instead
6690         of $target.  Remove AC_CHECK_SIZEOF(char), we already know the
6691         result.  Fix argument of AC_ARG_ENABLE.
6692         * configure, fficonfig.h.in: Rebuilt.
6694 Tue Feb 10 20:53:40 1998  Richard Henderson  <rth@cygnus.com>
6696         * configure.in: Add Alpha config bits.
6698 Tue May 13 13:39:20 1997  Anthony Green  <green@hoser.cygnus.com>
6700         * README: Updated dates and reworded Irix comments.
6702         * configure.in: Removed AC_PROG_RANLIB.
6704         * Makefile.in, aclocal.m4, config.guess, config.sub, configure,
6705         ltmain.sh, */Makefile.in: libtoolized again and rebuilt with 
6706         automake and autoconf.
6707         
6708 Sat May 10 18:44:50 1997  Tom Tromey  <tromey@cygnus.com>
6710         * configure, aclocal.m4: Rebuilt.
6711         * configure.in: Don't compute EXTRADIST; now handled in
6712         src/Makefile.in.  Removed macros implied by AM_INIT_AUTOMAKE.
6713         Don't run AM_MAINTAINER_MODE.
6715 Thu May  8 14:34:05 1997  Anthony Green  <green@hoser.cygnus.com>
6717         * missing, ltmain.sh, ltconfig.sh: Created. These are new files
6718         required by automake and libtool.
6720         * README: Boosted rev to 1.14. Added notes.
6722         * acconfig.h: Moved PACKAGE and VERSION for new automake.
6723         
6724         * configure.in: Changes for libtool.
6725         
6726         * Makefile.am (check): make test now make check. Uses libtool now.
6728         * Makefile.in, configure.in, aclocal.h, fficonfig.h.in: Rebuilt.
6730 Thu May  1 16:27:07 1997  Anthony Green  <green@hoser.cygnus.com>
6732         * missing: Added file required by new automake.
6734 Tue Nov 26 14:10:42 1996  Anthony Green  <green@csk3.cygnus.com>
6736         * acconfig.h: Added USING_PURIFY flag. This is defined when
6737         --enable-purify-safety was used at configure time.
6739         * configure.in (allsources): Added --enable-purify-safety switch.
6740         (VERSION): Boosted rev to 1.13.
6741         * configure: Rebuilt.
6743 Fri Nov 22 06:46:12 1996  Anthony Green  <green@rtl.cygnus.com>
6745         * configure.in (VERSION): Boosted rev to 1.12.
6746         Removed special CFLAGS hack for gcc.
6747         * configure: Rebuilt.
6749         * README: Boosted rev to 1.12. Added notes.
6751         * Many files: Cygnus Support changed to Cygnus Solutions.
6753 Wed Oct 30 11:15:25 1996  Anthony Green  <green@rtl.cygnus.com>
6755         * configure.in (VERSION): Boosted rev to 1.11.
6756         * configure: Rebuilt.
6758         * README: Boosted rev to 1.11. Added notes about GNU make.
6760 Tue Oct 29 12:25:12 1996  Anthony Green  <green@rtl.cygnus.com>
6762         * configure.in: Fixed -Wall trick.
6763         (VERSION): Boosted rev.
6764         * configure: Rebuilt
6766         * acconfig.h: Needed for --enable-debug configure switch.
6768         * README: Boosted rev to 1.09. Added more notes on building
6769         libffi, and LCLint.
6771         * configure.in: Added --enable-debug switch. Boosted rev to
6772         1.09.
6773         * configure: Rebuilt
6775 Tue Oct 15 13:11:28 1996  Anthony Green  <green@hoser.cygnus.com>
6777         * configure.in (VERSION): Boosted rev to 1.08
6778         * configure: Rebuilt.
6780         * README: Added n32 bug fix notes.
6782         * Makefile.am: Added "make lint" production. 
6783         * Makefile.in: Rebuilt.
6785 Mon Oct 14 10:54:46 1996  Anthony Green  <green@rtl.cygnus.com>
6787         * README: Added web page reference.
6789         * configure.in, README: Boosted rev to 1.05
6790         * configure: Rebuilt.
6792         * README: Fixed n32 sample code.
6794 Fri Oct 11 17:09:28 1996  Anthony Green  <green@rtl.cygnus.com>
6796         * README: Added sparc notes.
6798         * configure.in, README: Boosted rev to 1.04.
6799         * configure: Rebuilt.
6801 Thu Oct 10 10:31:03 1996  Anthony Green  <green@rtl.cygnus.com>
6803         * configure.in, README: Boosted rev to 1.03.
6804         * configure: Rebuilt.
6806         * README: Added struct notes. 
6808         * Makefile.am (EXTRA_DIST): Added LICENSE to distribution.
6809         * Makefile.in: Rebuilt.
6811         * README: Removed Linux section. No special notes now
6812         because aggregates arg/return types work.
6814 Wed Oct  9 16:16:42 1996  Anthony Green  <green@rtl.cygnus.com>
6816         * README, configure.in (VERSION): Boosted rev to 1.02
6817         * configure: Rebuilt.
6819 Tue Oct  8 11:56:33 1996  Anthony Green  <green@rtl.cygnus.com>
6821         * README (NOTE): Added n32 notes.
6823         * Makefile.am: Added test production.
6824         * Makefile: Rebuilt
6826         * README: spell checked!
6828         * configure.in (VERSION): Boosted rev to 1.01
6829         * configure: Rebuilt.
6831 Mon Oct  7 15:50:22 1996  Anthony Green  <green@rtl.cygnus.com>
6833         * configure.in: Added nasty bit to support SGI tools.
6834         * configure: Rebuilt.
6835         
6836         * README: Added SGI notes. Added note about automake bug.
6838 Mon Oct  7 11:00:28 1996  Anthony Green  <green@hoser.cygnus.com>
6840         * README: Rewrote intro, and fixed examples.
6842 Fri Oct  4 10:19:55 1996  Anthony Green  <green@hoser.cygnus.com>
6844         * configure.in: -D$TARGET is no longer used as a compiler switch.
6845         It is now inserted into ffi.h at configure time.
6846         * configure: Rebuilt.
6848         * FFI_ABI and FFI_STATUS are now ffi_abi and ffi_status.
6850 Thu Oct  3 13:47:34 1996  Anthony Green  <green@hoser.cygnus.com>
6852         * README, LICENSE: Created. Wrote some docs.
6854         * configure.in: Don't barf on i586-unknown-linuxaout.
6855         Added EXTRADIST code for "make dist".
6856         * configure: Rebuilt.
6858         * */Makefile.in: Rebuilt with patched automake. 
6860 Tue Oct  1 17:12:25 1996  Anthony Green  <green@rtl.cygnus.com>
6862         * Makefile.am, aclocal.m4, config.guess, config.sub,
6863         configure.in, fficonfig.h.in, install-sh, mkinstalldirs, 
6864         stamp-h.in: Created
6865         * Makefile.in, configure: Generated
6867 --- libffi/include --------------------------------------------------------
6869 Tue Feb 24 13:09:36 1998  Anthony Green  <green@gerbil.cygnus.com>
6871         * ffi_mips.h: Updated FFI_TYPE_STRUCT_* values based on
6872         ffi.h.in changes.  This is a work-around for SGI's "simple"
6873         assembler.
6875 Sun Feb 22 00:51:55 1998  Geoff Keating  <geoffk@ozemail.com.au>
6877         * ffi.h.in: PowerPC support.
6879 1998-02-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6881         * ffi.h.in: Add m68k support.
6882         (FFI_TYPE_LONGDOUBLE): Make it a separate value.
6884 Tue Feb 10 20:55:16 1998  Richard Henderson  <rth@cygnus.com>
6886         * ffi.h.in (SIZEOF_ARG): Use a pointer type by default.
6888         * ffi.h.in: Alpha support.
6890 Fri Nov 22 06:48:45 1996  Anthony Green  <green@rtl.cygnus.com>
6892         * ffi.h.in, ffi_common.h: Cygnus Support -> Cygnus Solutions.
6894 Wed Nov 20 22:31:01 1996  Anthony Green  <green@hoser.cygnus.com>
6896         * ffi.h.in: Added ffi_type_void definition.
6898 Tue Oct 29 12:22:40 1996  Anthony Green  <green@rtl.cygnus.com>
6900         * Makefile.am (hack_DATA): Always install ffi_mips.h.
6902         * ffi.h.in: Removed FFI_DEBUG. It's now in the correct
6903         place (acconfig.h).
6904         Added #include <stddef.h> for size_t definition.
6906 Tue Oct 15 17:23:35 1996  Anthony Green  <green@hoser.cygnus.com>
6908         * ffi.h.in, ffi_common.h, ffi_mips.h: More clean up.
6909         Commented out #define of FFI_DEBUG.
6911 Tue Oct 15 13:01:06 1996  Anthony Green  <green@rtl.cygnus.com>
6913         * ffi_common.h: Added bool definition.
6915         * ffi.h.in, ffi_common.h: Clean up based on LCLint output.
6916         Added funny /*@...@*/ comments to annotate source.
6918 Mon Oct 14 12:29:23 1996  Anthony Green  <green@rtl.cygnus.com>
6920         * ffi.h.in: Interface changes based on feedback from Jim
6921         Blandy.
6923 Fri Oct 11 16:49:35 1996  Anthony Green  <green@rtl.cygnus.com>
6925         * ffi.h.in: Small change for sparc support.
6927 Thu Oct 10 14:53:37 1996  Anthony Green  <green@rtl.cygnus.com>
6929         * ffi_mips.h: Added FFI_TYPE_STRUCT_* definitions for 
6930         special structure return types.
6932 Wed Oct  9 13:55:57 1996  Anthony Green  <green@rtl.cygnus.com>
6934         * ffi.h.in: Added SIZEOF_ARG definition for X86
6936 Tue Oct  8 11:40:36 1996  Anthony Green  <green@rtl.cygnus.com>
6938         * ffi.h.in (FFI_FN): Added macro for eliminating compiler warnings.
6939         Use it to case your function pointers to the proper type.
6941         * ffi_mips.h (SIZEOF_ARG): Added magic to fix type promotion bug.
6943         * Makefile.am (EXTRA_DIST): Added ffi_mips.h to EXTRA_DIST.
6944         * Makefile: Rebuilt.
6946         * ffi_mips.h: Created. Moved all common mips definitions here.
6948 Mon Oct  7 10:58:12 1996  Anthony Green  <green@hoser.cygnus.com>
6950         * ffi.h.in: The SGI assember is very picky about parens. Redefined
6951         some macros to avoid problems.
6953         * ffi.h.in: Added FFI_DEFAULT_ABI definitions. Also added
6954         externs for pointer, and 64bit integral ffi_types.
6956 Fri Oct  4 09:51:37 1996  Anthony Green  <green@hoser.cygnus.com>
6958         * ffi.h.in: Added FFI_ABI member to ffi_cif and changed
6959         function prototypes accordingly.
6960         Added #define @TARGET@. Now programs including ffi.h don't 
6961         have to specify this themselves.
6963 Thu Oct  3 15:36:44 1996  Anthony Green  <green@hoser.cygnus.com>
6965         * ffi.h.in: Changed ffi_prep_cif's values from void* to void**
6967         * Makefile.am (EXTRA_DIST): Added EXTRA_DIST for "make dist"
6968         to work.
6969         * Makefile.in: Regenerated.
6971 Wed Oct  2 10:16:59 1996  Anthony Green  <green@hoser.cygnus.com>
6973         * Makefile.am: Created
6974         * Makefile.in: Generated
6976         * ffi_common.h: Added rcsid comment
6978 Tue Oct  1 17:13:51 1996  Anthony Green  <green@rtl.cygnus.com>
6980         * ffi.h.in, ffi_common.h: Created
6982 --- libffi/src ------------------------------------------------------------
6984 Mon Oct  5 02:17:50 1998  Anthony Green  <green@cygnus.com>
6986         * arm/ffi.c, arm/sysv.S: Created.
6988         * Makefile.am: Added arm files.
6989         * Makefile.in: Rebuilt.
6991 Mon Oct  5 01:41:38 1998  Anthony Green  <green@rtl.cygnus.com>
6993         * Makefile.am (libffi_la_LDFLAGS): Incremented revision.
6995 Sun Oct  4 16:27:17 1998  Anthony Green  <green@cygnus.com>
6997         * alpha/osf.S (ffi_call_osf): Patch for DU assembler.
6999         * ffitest.c (main): long long and long double return values work
7000         for x86.
7002 Fri Apr 17 11:50:58 1998  Anthony Green  <green@hoser.cygnus.com>
7004         * Makefile.in: Rebuilt.
7006         * ffitest.c (main): Floating point tests not executed for systems
7007         with broken lond double (SunOS 4 w/ GCC).
7009         * types.c: Fixed x86 alignment info for long long types.
7011 Thu Apr 16 07:15:28 1998  Anthony Green  <green@ada.cygnus.com>
7013         * ffitest.c: Added more notes about GCC bugs under Irix 6.
7015 Wed Apr 15 08:42:22 1998  Anthony Green  <green@hoser.cygnus.com>
7017         * ffitest.c (struct5): New test function.
7018         (main): New test with struct5.
7020 Thu Mar  5 10:48:11 1998  Anthony Green  <green@tootie.to.cygnus.com>
7022         * prep_cif.c (initialize_aggregate): Fix assertion for
7023         nested structures.
7025 Tue Feb 24 16:33:41 1998  Anthony Green  <green@hoser.cygnus.com>
7027         * prep_cif.c (ffi_prep_cif): Added long double support for sparc.
7029 Sun Feb 22 00:52:18 1998  Geoff Keating  <geoffk@ozemail.com.au>
7031         * powerpc/asm.h: New file.
7032         * powerpc/ffi.c: New file.
7033         * powerpc/sysv.S: New file.
7034         * Makefile.am: PowerPC port.
7035         * ffitest.c (main): Allow all tests to run even in presence of gcc
7036         bug on PowerPC.
7038 1998-02-17  Anthony Green  <green@hoser.cygnus.com>
7040         * mips/ffi.c: Fixed comment typo.
7042         * x86/ffi.c (ffi_prep_cif_machdep), x86/sysv.S (retfloat): 
7043         Fixed x86 long double return handling.
7045         * types.c: Fixed x86 long double alignment info.
7047 1998-02-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7049         * types.c: Add m68k support.
7051         * ffitest.c (floating): Add long double parameter.
7052         (return_ll, ldblit): New functions to test long long and long
7053         double return value.
7054         (main): Fix type error in assignment of ts[1-4]_type.elements.
7055         Add tests for long long and long double arguments and return
7056         values.
7058         * prep_cif.c (ffi_prep_cif) [M68K]: Don't allocate argument for
7059         struct value pointer.
7061         * m68k/ffi.c, m68k/sysv.S: New files.
7062         * Makefile.am: Add bits for m68k port.  Add kludge to work around
7063         automake deficiency.
7064         (test): Don't require "." in $PATH.
7065         * Makefile.in: Rebuilt.
7067 Wed Feb 11 07:36:50 1998  Anthony Green  <green@hoser.cygnus.com>
7069         * Makefile.in: Rebuilt.
7071 Tue Feb 10 20:56:00 1998  Richard Henderson  <rth@cygnus.com>
7073         * alpha/ffi.c, alpha/osf.S: New files.
7074         * Makefile.am: Alpha port.
7076 Tue Nov 18 14:12:07 1997  Anthony Green  <green@hoser.cygnus.com>
7078         * mips/ffi.c (ffi_prep_cif_machdep): Initialize rstruct_flag
7079         for n32.
7081 Tue Jun  3 17:18:20 1997  Anthony Green  <green@hoser.cygnus.com>
7083         * ffitest.c (main): Added hack to get structure tests working
7084         correctly.
7086 Sat May 10 19:06:42 1997  Tom Tromey  <tromey@cygnus.com>
7088         * Makefile.in: Rebuilt.
7089         * Makefile.am (EXTRA_DIST): Explicitly list all distributable
7090         files in subdirs.
7091         (VERSION, CC): Removed.
7093 Thu May  8 17:19:01 1997  Anthony Green  <green@hoser.cygnus.com>
7095         * Makefile.am: Many changes for new automake and libtool.
7096         * Makefile.in: Rebuilt.
7098 Fri Nov 22 06:57:56 1996  Anthony Green  <green@rtl.cygnus.com>
7100         * ffitest.c (main): Fixed test case for non mips machines.
7102 Wed Nov 20 22:31:59 1996  Anthony Green  <green@hoser.cygnus.com>
7104         * types.c: Added ffi_type_void declaration.
7106 Tue Oct 29 13:07:19 1996  Anthony Green  <green@rtl.cygnus.com>
7108         * ffitest.c (main): Fixed character constants.
7109         (main): Emit warning for structure test 3 failure on Sun.
7111         * Makefile.am (VPATH): Fixed VPATH def'n so automake won't
7112         strip it out. 
7113         Moved distdir hack from libffi to automake. 
7114         (ffitest): Added missing -c for $(COMPILE) (change in automake).
7115         * Makefile.in: Rebuilt.
7116         
7117 Tue Oct 15 13:08:20 1996  Anthony Green  <green@hoser.cygnus.com>
7119         * Makefile.am: Added "make lint" production. 
7120         * Makefile.in: Rebuilt.
7122         * prep_cif.c (STACK_ARG_SIZE): Improved STACK_ARG_SIZE macro.
7123         Clean up based on LCLint output. Added funny /*@...@*/ comments to
7124         annotate source.
7126         * ffitest.c, debug.c: Cleaned up code.
7128 Mon Oct 14 12:26:56 1996  Anthony Green  <green@rtl.cygnus.com>
7130         * ffitest.c: Changes based on interface changes.
7132         * prep_cif.c (ffi_prep_cif): Cleaned up interface based on
7133         feedback from Jim Blandy.
7135 Fri Oct 11 15:53:18 1996  Anthony Green  <green@rtl.cygnus.com>
7137         * ffitest.c: Reordered tests while porting to sparc.
7138         Made changes to handle lame structure passing for sparc.
7139         Removed calls to fflush().
7141         * prep_cif.c (ffi_prep_cif): Added special case for sparc
7142         aggregate type arguments.
7144 Thu Oct 10 09:56:51 1996  Anthony Green  <green@rtl.cygnus.com>
7146         * ffitest.c (main): Added structure passing/returning tests.
7148         * prep_cif.c (ffi_prep_cif): Perform proper initialization
7149         of structure return types if needed.
7150         (initialize_aggregate): Bug fix
7152 Wed Oct  9 16:04:20 1996  Anthony Green  <green@rtl.cygnus.com>
7154         * types.c: Added special definitions for x86 (double doesn't
7155         need double word alignment).
7157         * ffitest.c: Added many tests
7159 Tue Oct  8 09:19:22 1996  Anthony Green  <green@rtl.cygnus.com>
7161         * prep_cif.c (ffi_prep_cif): Fixed assertion.
7163         * debug.c (ffi_assert): Must return a non void now.
7165         * Makefile.am: Added test production.
7166         * Makefile: Rebuilt.
7168         * ffitest.c (main): Created. 
7170         * types.c: Created. Stripped common code out of */ffi.c.
7172         * prep_cif.c: Added missing stdlib.h include.
7174         * debug.c (ffi_type_test): Used "a" to eliminate compiler
7175         warnings in non-debug builds. Included ffi_common.h.
7177 Mon Oct  7 15:36:42 1996  Anthony Green  <green@rtl.cygnus.com>
7179         * Makefile.am: Added a rule for .s -> .o
7180         This is required by the SGI compiler.
7181         * Makefile: Rebuilt.
7183 Fri Oct  4 09:51:08 1996  Anthony Green  <green@hoser.cygnus.com>
7185         * prep_cif.c (initialize_aggregate): Moved abi specification
7186         to ffi_prep_cif().
7188 Thu Oct  3 15:37:37 1996  Anthony Green  <green@hoser.cygnus.com>
7190         * prep_cif.c (ffi_prep_cif): Changed values from void* to void**.
7191         (initialize_aggregate): Fixed aggregate type initialization.
7193         * Makefile.am (EXTRA_DIST): Added support code for "make dist".
7194         * Makefile.in: Regenerated.
7196 Wed Oct  2 11:41:57 1996  Anthony Green  <green@hoser.cygnus.com>
7198         * debug.c, prep_cif: Created.
7200         * Makefile.am: Added debug.o and prep_cif.o to OBJ.
7201         * Makefile.in: Regenerated.
7203         * Makefile.am (INCLUDES): Added missing -I../include
7204         * Makefile.in: Regenerated.
7206 Tue Oct  1 17:11:51 1996  Anthony Green  <green@rtl.cygnus.com>
7208         * error.c, Makefile.am: Created.
7209         * Makefile.in: Generated.
7211 --- libffi/src/x86 --------------------------------------------------------
7213 Sun Oct  4 16:27:17 1998  Anthony Green  <green@cygnus.com>
7215         * sysv.S (retlongdouble): Fixed long long return value support.
7216         * ffi.c (ffi_prep_cif_machdep): Ditto.
7218 Wed May 13 04:30:33 1998  Anthony Green  <green@raft.ppp.tsoft.net>
7220         * ffi.c (ffi_prep_cif_machdep): Fixed long double return value
7221         support.
7223 Wed Apr 15 08:43:20 1998  Anthony Green  <green@hoser.cygnus.com>
7225         * ffi.c (ffi_prep_args): small struct support was missing.
7227 Thu May  8 16:53:58 1997  Anthony Green  <green@hoser.cygnus.com>
7229         * objects.mak: Removed.
7231 Mon Dec  2 15:12:58 1996  Tom Tromey  <tromey@cygnus.com>
7233         * sysv.S: Use .balign, for a.out Linux boxes.
7235 Tue Oct 15 13:06:50 1996  Anthony Green  <green@hoser.cygnus.com>
7237         * ffi.c: Clean up based on LCLint output.
7238         Added funny /*@...@*/ comments to annotate source.
7240 Fri Oct 11 16:43:38 1996  Anthony Green  <green@rtl.cygnus.com>
7242         * ffi.c (ffi_call): Added assertion for bad ABIs.
7244 Wed Oct  9 13:57:27 1996  Anthony Green  <green@rtl.cygnus.com>
7246         * sysv.S (retdouble): Fixed double return problems.
7248         * ffi.c (ffi_call): Corrected fn arg definition.
7249         (ffi_prep_cif_machdep): Fixed double return problems
7251 Tue Oct  8 12:12:49 1996  Anthony Green  <green@rtl.cygnus.com>
7253         * ffi.c: Moved ffi_type definitions to types.c.
7254         (ffi_prep_args): Fixed type promotion bug.
7256 Mon Oct  7 15:53:06 1996  Anthony Green  <green@rtl.cygnus.com>
7258         * ffi.c (FFI_*_TYPEDEF): Removed redundant ';'
7260 Fri Oct  4 09:54:53 1996  Anthony Green  <green@hoser.cygnus.com>
7262         * ffi.c (ffi_call): Removed FFI_ABI arg, and swapped
7263         remaining args.
7265 Wed Oct  2 10:07:05 1996  Anthony Green  <green@hoser.cygnus.com>
7267         * ffi.c, sysv.S, objects.mak: Created.
7268         (ffi_prep_cif): cif->rvalue no longer initialized to NULL.
7269         (ffi_prep_cif_machdep): Moved machine independent cif processing
7270         to src/prep_cif.c. Introduced ffi_prep_cif_machdep().
7272 --- libffi/src/mips -------------------------------------------------------
7274 Tue Feb 17 17:18:07 1998  Anthony Green  <green@hoser.cygnus.com>
7276         * o32.S: Fixed typo in comment.
7278         * ffi.c (ffi_prep_cif_machdep): Fixed argument processing.
7280 Thu May  8 16:53:58 1997  Anthony Green  <green@hoser.cygnus.com>
7282         * o32.s, n32.s: Wrappers for SGI tool support.
7284         * objects.mak: Removed.
7286 Tue Oct 29 14:37:45 1996  Anthony Green  <green@rtl.cygnus.com>
7288         * ffi.c (ffi_prep_args): Changed int z to size_t z.
7290 Tue Oct 15 13:17:25 1996  Anthony Green  <green@hoser.cygnus.com>
7292         * n32.S: Fixed bad stack munging. 
7294         * ffi.c: Moved prototypes for ffi_call_?32() to here from
7295         ffi_mips.h because extended_cif is not defined in ffi_mips.h.
7297 Mon Oct 14 12:42:02 1996  Anthony Green  <green@rtl.cygnus.com>
7299         * ffi.c: Interface changes based on feedback from Jim Blandy.
7301 Thu Oct 10 11:22:16 1996  Anthony Green  <green@rtl.cygnus.com>
7303         * n32.S, ffi.c: Lots of changes to support passing and 
7304         returning structures with the n32 calling convention.
7306         * n32.S: Fixed fn pointer bug.
7308         * ffi.c (ffi_prep_cif_machdep): Fix for o32 structure
7309         return values.
7310         (ffi_prep_args): Fixed n32 structure passing when structures
7311         partially fit in registers.
7313 Wed Oct  9 13:49:25 1996  Anthony Green  <green@rtl.cygnus.com>
7315         * objects.mak: Added n32.o.
7317         * n32.S: Created.
7319         * ffi.c (ffi_prep_args): Added magic to support proper
7320         n32 processing.
7322 Tue Oct  8 10:37:35 1996  Anthony Green  <green@rtl.cygnus.com>
7324         * ffi.c: Moved ffi_type definitions to types.c.
7325         (ffi_prep_args): Fixed type promotion bug.
7327         * o32.S: This code is only built for o32 compiles.
7328         A lot of the #define cruft has moved to ffi_mips.h.
7330         * ffi.c (ffi_prep_cif_machdep): Fixed arg flags. Second arg
7331         is only processed if the first is either a float or double.
7333 Mon Oct  7 15:33:59 1996  Anthony Green  <green@rtl.cygnus.com>
7335         * o32.S: Modified to compile under each of o32, n32 and n64.
7337         * ffi.c (FFI_*_TYPEDEF): Removed redundant ';'
7339 Fri Oct  4 09:53:25 1996  Anthony Green  <green@hoser.cygnus.com>
7341         * ffi.c (ffi_call): Removed FFI_ABI arg, and swapped
7342         remaining args.
7344 Wed Oct  2 17:41:22 1996  Anthony Green  <green@rtl.cygnus.com>
7346         * o32.S: Removed crufty definitions.
7348 Wed Oct  2 12:53:42 1996  Anthony Green  <green@hoser.cygnus.com>
7350         * ffi.c (ffi_prep_cif): cif->rvalue no longer initialized to NULL.
7351         (ffi_prep_cif_machdep): Moved all machine independent cif processing
7352         to src/prep_cif.c. Introduced ffi_prep_cif_machdep. Return types
7353         of FFI_TYPE_STRUCT are no different than FFI_TYPE_INT.
7355 Tue Oct  1 17:11:02 1996  Anthony Green  <green@rtl.cygnus.com>
7357         * ffi.c, o32.S, object.mak: Created
7358         
7359 --- libffi/src/sparc ------------------------------------------------------
7361 Tue Feb 24 16:33:18 1998  Anthony Green  <green@hoser.cygnus.com>
7363         * ffi.c (ffi_prep_args): Added long double support.
7365 Thu May  8 16:53:58 1997  Anthony Green  <green@hoser.cygnus.com>
7367         * objects.mak: Removed.
7369 Thu May  1 16:07:56 1997  Anthony Green  <green@hoser.cygnus.com>
7371         * v8.S: Fixed minor portability problem reported by 
7372         Russ McManus <mcmanr@eq.gs.com>.
7374 Tue Nov 26 14:12:43 1996  Anthony Green  <green@csk3.cygnus.com>
7376         * v8.S: Used STACKFRAME define elsewhere. 
7378         * ffi.c (ffi_prep_args): Zero out space when USING_PURIFY
7379         is set.
7380         (ffi_prep_cif_machdep): Allocate the correct stack frame 
7381         space for functions with < 6 args.
7383 Tue Oct 29 15:08:55 1996  Anthony Green  <green@rtl.cygnus.com>
7385         * ffi.c (ffi_prep_args): int z is now size_t z.
7387 Mon Oct 14 13:31:24 1996  Anthony Green  <green@rtl.cygnus.com>
7389         * v8.S (ffi_call_V8): Gordon rewrites this again. It looks
7390         great now.
7392         * ffi.c (ffi_call): The comment about hijacked registers
7393         is no longer valid after gordoni hacked v8.S.
7395         * v8.S (ffi_call_V8): Rewrote with gordoni. Much simpler.
7396         
7397         * v8.S, ffi.c: ffi_call() had changed to accept more than
7398         two args, so v8.S had to change (because it hijacks incoming
7399         arg registers).
7401         * ffi.c: Interface changes based on feedback from Jim Blandy.
7403 Thu Oct 10 17:48:16 1996  Anthony Green  <green@rtl.cygnus.com>
7405         * ffi.c, v8.S, objects.mak: Created.
7406