* config.sub: Add cases for the Renesas m32c. (This patch has been
[official-gcc.git] / libffi / ChangeLog
blobfb1e67b39f595278f62c6407d19e201e3f2bf5b5
1 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
3         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
4         to call ffi_closure_helper_SYSV.  Append @local instead.
5         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
7 2005-05-17  Kelley Cook  <kcook@gcc.gnu.org>
9         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
10         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
11         * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
12         * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
13         include/Makefile.in, testsuite/Makefile.in: Regenerate.
14         
15 2005-05-09  Mike Stump  <mrs@apple.com>
17         * configure: Regenerate.
19 2005-05-08  Richard Henderson  <rth@redhat.com>
21         PR libffi/21285
22         * src/alpha/osf.S: Update unwind into to match code.
24 2005-05-04  Andreas Degert <ad@papyrus-gmbh.de>
25             Richard Henderson  <rth@redhat.com>
27         * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
28         bit 11 of flags.
29         (ffi_call): Mask return type field.  Pass ssecount to ffi_call_unix64.
30         (ffi_prep_closure): Set carry bit if sse-used flag set.
31         * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
32         Only load sse registers if ssecount non-zero.
33         (ffi_closure_unix64): Only save sse registers if carry set on entry.
35 2005-04-29  Ralf Corsepius  <ralf.corsepius@rtems.org>
37         * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
38         powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
39         * configure: Regenerate.
41 2005-04-20  Hans-Peter Nilsson  <hp@axis.com>
43         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
44         have Tcl8.3-compatible intermediate variable.
46 2005-04-18  Simon Posnjak <simon.posnjak@siol.net> 
47             Hans-Peter Nilsson  <hp@axis.com>
49         * Makefile.am: Add CRIS support.
50         * configure.ac: Likewise.
51         * Makefile.in, configure, testsuite/Makefile.in,
52         include/Makefile.in: Regenerate.
53         * src/cris: New directory.
54         * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
55         * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
57         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
58         \r?\n in output tests.
60 2005-04-12  Mike Stump  <mrs@apple.com>
62         * configure: Regenerate.
64 2005-03-30  Hans Boehm  <Hans.Boehm@hp.com>
66         * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
67         
68 2005-03-30  Steve Ellcey  <sje@cup.hp.com>
70         * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
71         (ffi_sarg) Ditto.
72         * src/ia64/unix.S (ffi_closure_unix): Extend gp
73         to 64 bits in ILP32 mode.
74         Load 64 bits even for short data.
76 2005-03-23  Mike Stump  <mrs@apple.com>
78         * src/powerpc/darwin.S: Update for -m64 multilib.
79         * src/powerpc/darwin_closure.S: Likewise.
81 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
83         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
84         Do not set tool_include_dir.
85         * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
86         Regenerate.
87         * include/Makefile.am: Set gcc_version and toollibffidir.
88         * include/Makefile.in: Regenerate.
90 2005-02-22  Andrew Haley  <aph@redhat.com>
92         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
93         odd-numbered register pairs for 64-bit integer types.
95 2005-02-23  Andreas Tobler  <a.tobler@schweiz.ch>
97         PR libffi/20104
98         * testsuite/libffi.call/return_ll1.c: New test case.
100 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
102         * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
103         * testsuite/libffi.call/float.c: Ditto.
104         * testsuite/libffi.call/float2.c: Ditto.
105         * testsuite/libffi.call/float3.c: Ditto.
107 2005-02-08  Andreas Tobler  <a.tobler@schweiz.ch>
109         * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
111 2005-01-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
113         * testsuite/libffi.special/special.exp (cxx_options): Add
114         -shared-libgcc.
116 2004-12-31  Richard Henderson  <rth@redhat.com>
118         * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
119         (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF.  Replace size and
120         offset parameters with a type parameter; deduce size and structure
121         alignment.  Update all users.
123 2004-12-31  Richard Henderson  <rth@redhat.com>
125         * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
126         (FFI_TYPE_LONGDOUBLE): Fix for ia64.
127         * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
128         into ffi_prep_closure.
129         * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
130         from scratch.
132 2004-12-27  Richard Henderson  <rth@redhat.com>
134         * src/x86/unix64.S: Fix typo in unwind info.
136 2004-12-25  Richard Henderson  <rth@redhat.com>
138         * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
139         (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
140         (merge_classes): Check for it.
141         (SSE_CLASS_P): New.
142         (classify_argument): Pass byte_offset by value; perform all updates
143         inside struct case.
144         (examine_argument): Add classes argument; handle
145         X86_64_COMPLEX_X87_CLASS.
146         (ffi_prep_args): Merge into ...
147         (ffi_call): ... here.  Share stack frame with ffi_call_unix64.
148         (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
149         (ffi_fill_return_value): Remove.
150         (ffi_prep_closure): Remove dead assert.
151         (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
152         Rewrite to use struct register_args instead of va_list.  Create
153         flags for handling structure returns.
154         * src/x86/unix64.S: Remove dead strings.
155         (ffi_call_unix64): Rename from ffi_call_UNIX64.  Rewrite to share
156         stack frame with ffi_call.  Handle structure returns properly.
157         (float2sse, floatfloat2sse, double2sse): Remove.
158         (sse2float, sse2double, sse2floatfloat): Remove.
159         (ffi_closure_unix64): Rename from ffi_closure_UNIX64.  Rewrite
160         to handle structure returns properly.
162 2004-12-08  David Edelsohn  <edelsohn@gnu.org>
164         * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
165         PICFLAG.
166         * Makefile.in: Regenerated.
168 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
170         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
171         * configure, aclocal.m4, Makefile.in: Regenerate.
172         * include/Makefile.in, testsuite/Makefile.in: Regenerate.
174 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
176         * configure: Regenerate for libtool change.
178 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
180         * configure: Regenerate for libtool reversion.
182 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
184         * configure: Regenerate for libtool change.
186 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
188         * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
190 2004-11-23  Richard Sandiford  <rsandifo@redhat.com>
192         * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
193         of jal.  Use an absolute encoding for the frame information.
195 2004-11-23  Kelley Cook  <kcook@gcc.gnu.org>
197         * Makefile.am: Remove no-dependencies.  Add ACLOCAL_AMFLAGS.
198         * acinclude.m4: Delete logic for sincludes.
199         * aclocal.m4, Makefile.in, configure: Regenerate.
200         * include/Makefile: Likewise.
201         * testsuite/Makefile: Likewise.
203 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
205         * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
206         on a 8-byte boundary.
207         * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
209 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
211         * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
212         long long values.  Round stack allocation to a multiple of 8 bytes
213         for ATPCS compatibility.
214         * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
215         names.  Handle returning long long types.  Add Thumb and interworking
216         support.  Improve soft-float code.
218 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
220         * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
221         (libffi_exit): New function.
222         (libffi_init): Build the testglue wrapper if needed.
224 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
226         PR other/18138
227         * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
229 2004-10-25  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
231         * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
233 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
235         * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
236         * testsuite/libffi.call/float3.c: New test case.
238 2004-10-18  Kaz Kojima  <kkojima@gcc.gnu.org>
240         * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
241         the function returning a structure pointed with R2.
242         * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
243         the structure return value if T bit set.  Emit position
244         independent code and EH data if PIC.
246 2004-10-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
248         * Makefile.am: Add m32r support.
249         * configure.ac: Likewise.
250         * Makefile.in: Regenerate.
251         * confiugre: Regenerate.
252         * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
253         (uint64, sint64, double, longdouble)
254         * src/m32r: New directory.
255         * src/m32r/ffi.c: New file.
256         * src/m32r/sysv.S: Likewise.
257         * src/m32r/ffitarget.h: Likewise.
259 2004-10-02  Kaz Kojima  <kkojima@gcc.gnu.org>
261         * testsuite/libffi.call/negint.c: New test case.
263 2004-09-14  H.J. Lu  <hongjiu.lu@intel.com>
265         PR libgcj/17465
266         * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
267         Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
268         LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
269         DYLD_LIBRARY_PATH.
271 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
273         * testsuite/libffi.call/many_win32.c: Remove whitespaces.
274         * testsuite/libffi.call/promotion.c: Likewise.
275         * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
276         whitespaces.
277         * testsuite/libffi.call/return_sc.c: Likewise.
278         * testsuite/libffi.call/return_uc.c: Likewise.
280 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
282         * src/powerpc/darwin.S: Fix comments and identation.
283         * src/powerpc/darwin_closure.S: Likewise.
285 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
287         * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
288         (ffi_prep_args): Handle longdouble arguments.
289         (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
290         longdouble.
291         (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
292         * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
293         values.
294         * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
295         * src/types.c: Defined longdouble size and alignment for darwin.
297 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
299         * src/powerpc/aix.S: Remove whitespaces.
300         * src/powerpc/aix_closure.S: Likewise.
301         * src/powerpc/asm.h: Likewise.
302         * src/powerpc/ffi.c: Likewise.
303         * src/powerpc/ffitarget.h: Likewise.
304         * src/powerpc/linux64.S: Likewise.
305         * src/powerpc/linux64_closure.S: Likewise.
306         * src/powerpc/ppc_closure.S: Likewise.
307         * src/powerpc/sysv.S: Likewise.
309 2004-08-30  Anthony Green  <green@redhat.com>
311         * Makefile.am: Add frv support.
312         * Makefile.in, testsuite/Makefile.in: Rebuilt.
313         * configure.ac: Read configure.host.
314         * configure.in: Read configure.host.
315         * configure.host: New file.  frv-elf needs libgloss.
316         * include/ffi.h.in: Force ffi_closure to have a nice big (8)
317         alignment.  This is needed to frv and shouldn't harm the others.
318         * include/ffi_common.h (ALIGN_DOWN): New macro.
319         * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
321 2004-08-24  David Daney  <daney@avtrex.com>
323         * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
324         * testsuite/libffi.call/closure_fn1.c: Likewise.
325         * testsuite/libffi.call/closure_fn2.c  Likewise.
326         * testsuite/libffi.call/closure_fn3.c: Likewise.
327         * testsuite/libffi.call/closure_fn4.c: Likewise.
328         * testsuite/libffi.call/closure_fn5.c: Likewise.
329         * testsuite/libffi.call/cls_18byte.c: Likewise.
330         * testsuite/libffi.call/cls_19byte.c: Likewise.
331         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
332         * testsuite/libffi.call/cls_20byte.c: Likewise.
333         * testsuite/libffi.call/cls_20byte1.c: Likewise.
334         * testsuite/libffi.call/cls_24byte.c: Likewise.
335         * testsuite/libffi.call/cls_2byte.c: Likewise.
336         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
337         * testsuite/libffi.call/cls_3byte1.c: Likewise.
338         * testsuite/libffi.call/cls_3byte2.c: Likewise.
339         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
340         * testsuite/libffi.call/cls_4byte.c: Likewise.
341         * testsuite/libffi.call/cls_64byte.c: Likewise.
342         * testsuite/libffi.call/cls_6byte.c: Likewise.
343         * testsuite/libffi.call/cls_7byte.c: Likewise.
344         * testsuite/libffi.call/cls_8byte.c: Likewise.
345         * testsuite/libffi.call/cls_9byte1.c: Likewise.
346         * testsuite/libffi.call/cls_9byte2.c: Likewise.
347         * testsuite/libffi.call/cls_align_double.c: Likewise.
348         * testsuite/libffi.call/cls_align_float.c: Likewise.
349         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
350         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
351         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
352         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
353         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
354         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
355         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
356         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
357         * testsuite/libffi.call/cls_double.c: Likewise.
358         * testsuite/libffi.call/cls_float.c: Likewise.
359         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
360         * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
361         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
362         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
363         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
364         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
365         * testsuite/libffi.call/cls_schar.c: Likewise.
366         * testsuite/libffi.call/cls_sint.c: Likewise.
367         * testsuite/libffi.call/cls_sshort.c: Likewise.
368         * testsuite/libffi.call/cls_uchar.c: Likewise.
369         * testsuite/libffi.call/cls_uint.c: Likewise.
370         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
371         * testsuite/libffi.call/cls_ushort.c: Likewise.
372         * testsuite/libffi.call/nested_struct.c: Likewise.
373         * testsuite/libffi.call/nested_struct1.c: Likewise.
374         * testsuite/libffi.call/nested_struct2.c: Likewise.
375         * testsuite/libffi.call/nested_struct3.c: Likewise.
376         * testsuite/libffi.call/problem1.c: Likewise.
377         * testsuite/libffi.special/unwindtest.cc: Likewise.
378         * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
379         to zero.
380         * testsuite/libffi.call/cls_16byte.c: Likewise.
381         * testsuite/libffi.call/cls_5byte.c: Likewise.
383 2004-08-23  David Daney <daney@avtrex.com>
385         PR libgcj/13141
386         * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
387         * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
388         (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
389         parameters and return types.
390         (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
391         (ffi_prep_closure): Ditto.
392         (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
393         alignment calculations.
394         * src/mips/o32.S (ffi_closure_O32): Don't use floating point
395         instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
397 2004-08-14  Casey Marshall <csm@gnu.org>
399         * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
400         contain `FFI_TYPE_UINT64' as return type for any 64-bit
401         integer (O32 ABI only).
402         (ffi_prep_closure): new function.
403         (ffi_closure_mips_inner_O32): new function.
404         * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
405         `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
406         * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
407         64 bit integers correctly.
408         (ffi_closure_O32): new function.
409         Added DWARF-2 unwind info for both functions.
411 2004-08-10  Andrew Haley  <aph@redhat.com>
413         * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
415 2004-08-01  Robert Millan  <robertmh@gnu.org>
417         * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
418         * configure: Regenerate.
420 2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>
422         * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
423         and mmap() explicitly instead of relying on preset autoconf cache
424         variables.
425         * aclocal.m4: Regenerate.
426         * configure: Regenerate.
428 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
430         * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
431         (ffi_check_float_struct): Remove unused prototype.
433 2004-06-30  Geoffrey Keating  <geoffk@apple.com>
435         * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
436         character on Darwin, use '\n\t' instead.
438 2004-06-26  Matthias Klose  <doko@debian.org>
440         * libtool-version: Fix typo in revision/age.
442 2004-06-17  Matthias Klose  <doko@debian.org>
444         * libtool-version: New.
445         * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
446         * Makefile.in: Regenerate.
448 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
450         * Makefile.am: Remove useless multilib rules.
451         * Makefile.in: Regenerate.
452         * aclocal.m4: Regenerate with automake 1.8.5.
453         * configure.ac: Remove useless multilib configury.
454         * configure: Regenerate.
456 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
458         * .cvsignore: New file.
460 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
462         * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
463         fp_done.
464         (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
465         changed from 8.
467 2004-06-06  Sean McNeil  <sean@mcneil.com>
469         * configure.ac: Add x86_64-*-freebsd* support.
470         * configure: Regenerate.
472 2004-04-26  Joe Buck <jbuck@welsh-buck.org>
474         Bug 15093
475         * configure.ac: Test for existence of mmap and sys/mman.h before
476         checking blacklist.  Fix suggested by Jim Wilson.
477         * configure: Regenerate.
479 2004-04-26  Matt Austern  <austern@apple.com>
481         * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
482         FDE location.
483         * src/powerpc/darwin_closure.S: Likewise.
485 2004-04-24  Andreas Tobler  <a.tobler@schweiz.ch>
487         * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
488         error. Reported by Thomas Heller <theller@python.net>.
489         * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
490         * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
492 2004-03-20  Matthias Klose  <doko@debian.org>
494         * src/pa/linux.S: Fix typo.
496 2004-03-19  Matthias Klose  <doko@debian.org>
498         * Makefile.am: Update.
499         * Makefile.in: Regenerate.
500         * src/pa/ffi.h.in: Remove.
501         * src/pa/ffitarget.h: New file.
503 2004-02-10  Randolph Chung  <tausq@debian.org>
505         * Makefile.am: Add PA support.
506         * Makefile.in: Regenerate.
507         * include/Makefile.in: Regenerate.
508         * configure.ac: Add PA target.
509         * configure: Regenerate.
510         * src/pa/ffi.c: New file.
511         * src/pa/ffi.h.in: Add PA support.
512         * src/pa/linux.S: New file.
513         * prep_cif.c: Add PA support.
515 2004-03-16  Hosaka Yuji  <hos@tamanegi.org>
517         * src/types.c: Fix alignment size of X86_WIN32 case int64 and
518         double.
519         * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
520         with ecif->cif->flags.
521         (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
522         with cif->flags.
523         (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
524         (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
525         * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
526         sc_retstruct2b): Add for 1 or 2-bytes struct case.
528 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
530         * configure.in: Rename file to ...
531         * configure.ac: ... this.
532         * fficonfig.h.in: Regenerate.
533         * Makefile.in: Regenerate.
534         * include/Makefile.in: Regenerate.
535         * testsuite/Makefile.in: Regenerate.
537 2004-03-12  Matt Austern  <austern@apple.com>
539         * src/powerpc/darwin.S: Fix EH information so it corresponds to
540         changes in EH format resulting from addition of linkonce support.
541         * src/powerpc/darwin_closure.S: Likewise.
543 2004-03-11  Andreas Tobler  <a.tobler@schweiz.ch>
544             Paolo Bonzini  <bonzini@gnu.org>
546         * Makefile.am (AUTOMAKE_OPTIONS): Set them.
547         Remove VPATH. Remove rules for object files. Remove multilib support.
548         (AM_CCASFLAGS): Add.
549         * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
550         (AC_PREREQ): Bump version to 2.59.
551         (AC_INIT): Fill with version info and bug address.
552         (ORIGINAL_LD_FOR_MULTILIBS): Remove.
553         (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
554         De-precious CC so that the right flags are passed down to multilibs.
555         (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
556         (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
557         (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
558         * configure: Rebuilt.
559         * aclocal.m4: Likewise.
560         * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
561         * fficonfig.h.in: Likewise.
563 2004-03-11  Andreas Schwab  <schwab@suse.de>
565         * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
566         arguments from fp registers only for the first 8 parameter slots.
567         Don't convert a float parameter when passed in memory.
569 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
571         * configure: Regenerate for config/accross.m4 correction.
573 2004-02-25  Matt Kraai  <kraai@alumni.cmu.edu>
575         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
576         ecif->cif->bytes to bytes.
577         (ffi_prep_cif_machdep): Add braces around nested if statement.
579 2004-02-09  Alan Modra  <amodra@bigpond.net.au>
581         * src/types.c (pointer): POWERPC64 has 8 byte pointers.
583         * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
584         (ffi_closure_helper_LINUX64): Fix typo.
585         * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
586         for powerpc64-*-*.
587         * testsuite/libffi.call/float.c: Likewise.
588         * testsuite/libffi.call/float2.c: Likewise.
590 2004-02-08  Alan Modra  <amodra@bigpond.net.au>
592         * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
593         long double function return and long double arg handling.
594         (ffi_closure_helper_LINUX64): Formatting.  Delete unused "ng" var.
595         Use "end_pfr" instead of "nf".  Correct long double handling.
596         Localise "temp".
597         * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
598         return value.
599         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
600         space for long double return value.  Adjust stack frame and offsets.
601         Load f2 long double return.
603 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
605         * src/types.c: Use 16 byte long double for POWERPC64.
607 2004-01-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
609         * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
610         when the structure return address is passed in %o0.
611         (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
612         (ffi_v9_layout_struct): Align the field following a nested structure
613         on a word boundary.  Use memmove instead of memcpy.
614         (ffi_call): Update call to ffi_V9_return_struct.
615         (ffi_prep_closure): Define 'ctx' only for V8.
616         (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
617         and ffi_closure_sparc_inner_v9.
618         (ffi_closure_sparc_inner_v8): Return long doubles by reference.
619         Always skip the structure return address.  For structures and long
620         doubles, copy the argument directly.
621         (ffi_closure_sparc_inner_v9): Skip the structure return address only
622         if required.  Shift the maximum floating-point slot accordingly.  For
623         big structures, copy the argument directly; otherwise, left-justify the
624         argument and call ffi_v9_layout_struct to lay out the structure on
625         the stack.
626         * src/sparc/v8.S: Undef STACKFRAME before defining it.
627         (ffi_closure_v8): Pass the structure return address.  Update call to
628         ffi_closure_sparc_inner_v8.  Short-circuit FFI_TYPE_INT handling.
629         Skip the 'unimp' insn when returning long doubles and structures.
630         * src/sparc/v9.S: Undef STACKFRAME before defining it.
631         (ffi_closure_v9): Increase the frame size by 2 words.  Short-circuit
632         FFI_TYPE_INT handling.  Load structures both in integers and
633         floating-point registers on return.
634         * README: Update status of the SPARC port.
636 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
638         * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
639         as of type ffi_arg.
640         * testsuite/libffi.call/struct3.c (main): Fix CHECK.
642 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
644         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
645         value as of type ffi_arg, not unsigned int.
647 2004-01-21  Michael Ritzert  <ritzert@t-online.de>
649         * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
650         of the LHS.
652 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
654         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
655         Solaris.
657 2004-01-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
659         * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
660         to void *.
662 2003-12-10  Richard Henderson  <rth@redhat.com>
664         * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
665         size_t instead of int.
667 2003-12-04  Hosaka Yuji  <hos@tamanegi.org>
669         * testsuite/libffi.call/many_win32.c: Include <float.h>.
670         * testsuite/libffi.call/many_win32.c (main): Replace variable
671         int i with unsigned long ul.
673         * testsuite/libffi.call/cls_align_uint64.c: New test case.
674         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
675         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
676         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
677         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
678         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
679         * testsuite/libffi.call/cls_align_float.c: Likewise.
680         * testsuite/libffi.call/cls_align_double.c: Likewise.
681         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
682         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
684 2003-12-02  Hosaka Yuji  <hos@tamanegi.org>
686         PR other/13221
687         * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
688         Align arguments to 32 bits.
690 2003-12-01  Andreas Tobler  <a.tobler@schweiz.ch>
692         PR other/13221
693         * testsuite/libffi.call/cls_multi_sshort.c: New test case.
694         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
695         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
696         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
697         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
698         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
700         * testsuite/libffi.special/unwindtest.cc: Cosmetics.
702 2003-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
704         * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
705         * testsuite/libffi.special/ffitestcxx.h: Likewise.
707 2003-11-22  Andreas Tobler  <a.tobler@schweiz.ch>
709         * Makefile.in: Rebuilt.
710         * configure: Likewise.
711         * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
712         the right type.
714 2003-11-21  Andreas Jaeger  <aj@suse.de>
715             Andreas Tobler  <a.tobler@schweiz.ch>
717         * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
718         * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
719         * Makefile.in: Rebuilt.
720         * aclocal.m4: Likewise.
721         * configure: Likewise.
722         * fficonfig.h.in: Likewise.
723         * testsuite/lib/libffi-dg.exp: Add include dir.
724         * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
725         * testsuite/libffi.special/ffitestcxx.h: Likewise.
726         * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
727         for ffi_closure if available.
728         * testsuite/libffi.call/closure_fn1.c: Likewise.
729         * testsuite/libffi.call/closure_fn2.c: Likewise.
730         * testsuite/libffi.call/closure_fn3.c: Likewise.
731         * testsuite/libffi.call/closure_fn4.c: Likewise.
732         * testsuite/libffi.call/closure_fn5.c: Likewise.
733         * testsuite/libffi.call/cls_12byte.c: Likewise.
734         * testsuite/libffi.call/cls_16byte.c: Likewise.
735         * testsuite/libffi.call/cls_18byte.c: Likewise.
736         * testsuite/libffi.call/cls_19byte.c: Likewise.
737         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
738         * testsuite/libffi.call/cls_20byte.c: Likewise.
739         * testsuite/libffi.call/cls_20byte1.c: Likewise.
740         * testsuite/libffi.call/cls_24byte.c: Likewise.
741         * testsuite/libffi.call/cls_2byte.c: Likewise.
742         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
743         * testsuite/libffi.call/cls_3byte1.c: Likewise.
744         * testsuite/libffi.call/cls_3byte2.c: Likewise.
745         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
746         * testsuite/libffi.call/cls_4byte.c: Likewise.
747         * testsuite/libffi.call/cls_5byte.c: Likewise.
748         * testsuite/libffi.call/cls_64byte.c: Likewise.
749         * testsuite/libffi.call/cls_6byte.c: Likewise.
750         * testsuite/libffi.call/cls_7byte.c: Likewise.
751         * testsuite/libffi.call/cls_8byte.c: Likewise.
752         * testsuite/libffi.call/cls_9byte1.c: Likewise.
753         * testsuite/libffi.call/cls_9byte2.c: Likewise.
754         * testsuite/libffi.call/cls_double.c: Likewise.
755         * testsuite/libffi.call/cls_float.c: Likewise.
756         * testsuite/libffi.call/cls_schar.c: Likewise.
757         * testsuite/libffi.call/cls_sint.c: Likewise.
758         * testsuite/libffi.call/cls_sshort.c: Likewise.
759         * testsuite/libffi.call/cls_uchar.c: Likewise.
760         * testsuite/libffi.call/cls_uint.c: Likewise.
761         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
762         * testsuite/libffi.call/cls_ushort.c: Likewise.
763         * testsuite/libffi.call/nested_struct.c: Likewise.
764         * testsuite/libffi.call/nested_struct1.c: Likewise.
765         * testsuite/libffi.call/nested_struct2.c: Likewise.
766         * testsuite/libffi.call/nested_struct3.c: Likewise.
767         * testsuite/libffi.call/problem1.c: Likewise.
768         * testsuite/libffi.special/unwindtest.cc: Likewise.
770 2003-11-20  Andreas Tobler  <a.tobler@schweiz.ch>
772         * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
774 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
776         * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
777         Add -lgcc_s to additional flags.
779 2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>
781         * configure.in, include/Makefile.am: PR libgcj/11147, install
782         the ffitarget.h header file in a gcc versioned and target
783         dependent place.
784         * configure: Regenerated.
785         * Makefile.in, include/Makefile.in: Likewise.
786         * testsuite/Makefile.in: Likewise.
788 2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>
790         * testsuite/libffi.call/closure_fn0.c: Print result and check
791         with dg-output to make debugging easier.
792         * testsuite/libffi.call/closure_fn1.c: Likewise.
793         * testsuite/libffi.call/closure_fn2.c: Likewise.
794         * testsuite/libffi.call/closure_fn3.c: Likewise.
795         * testsuite/libffi.call/closure_fn4.c: Likewise.
796         * testsuite/libffi.call/closure_fn5.c: Likewise.
797         * testsuite/libffi.call/cls_12byte.c: Likewise.
798         * testsuite/libffi.call/cls_16byte.c: Likewise.
799         * testsuite/libffi.call/cls_18byte.c: Likewise.
800         * testsuite/libffi.call/cls_19byte.c: Likewise.
801         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
802         * testsuite/libffi.call/cls_20byte.c: Likewise.
803         * testsuite/libffi.call/cls_20byte1.c: Likewise.
804         * testsuite/libffi.call/cls_24byte.c: Likewise.
805         * testsuite/libffi.call/cls_2byte.c: Likewise.
806         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
807         * testsuite/libffi.call/cls_3byte1.c: Likewise.
808         * testsuite/libffi.call/cls_3byte2.c: Likewise.
809         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
810         * testsuite/libffi.call/cls_4byte.c: Likewise.
811         * testsuite/libffi.call/cls_5byte.c: Likewise.
812         * testsuite/libffi.call/cls_64byte.c: Likewise.
813         * testsuite/libffi.call/cls_6byte.c: Likewise.
814         * testsuite/libffi.call/cls_7byte.c: Likewise.
815         * testsuite/libffi.call/cls_8byte.c: Likewise.
816         * testsuite/libffi.call/cls_9byte1.c: Likewise.
817         * testsuite/libffi.call/cls_9byte2.c: Likewise.
818         * testsuite/libffi.call/cls_double.c: Likewise.
819         * testsuite/libffi.call/cls_float.c: Likewise.
820         * testsuite/libffi.call/cls_schar.c: Likewise.
821         * testsuite/libffi.call/cls_sint.c: Likewise.
822         * testsuite/libffi.call/cls_sshort.c: Likewise.
823         * testsuite/libffi.call/cls_uchar.c: Likewise.
824         * testsuite/libffi.call/cls_uint.c: Likewise.
825         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
826         * testsuite/libffi.call/cls_ushort.c: Likewise.
827         * testsuite/libffi.call/problem1.c: Likewise.
829         * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
830         static.
832 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
834         * testsuite/libffi.call/cls_9byte2.c: New test case.
835         * testsuite/libffi.call/cls_9byte1.c: Likewise.
836         * testsuite/libffi.call/cls_64byte.c: Likewise.
837         * testsuite/libffi.call/cls_20byte1.c: Likewise.
838         * testsuite/libffi.call/cls_19byte.c: Likewise.
839         * testsuite/libffi.call/cls_18byte.c: Likewise.
840         * testsuite/libffi.call/closure_fn4.c: Likewise.
841         * testsuite/libffi.call/closure_fn5.c: Likewise.
842         * testsuite/libffi.call/cls_schar.c: Likewise.
843         * testsuite/libffi.call/cls_sint.c: Likewise.
844         * testsuite/libffi.call/cls_sshort.c: Likewise.
845         * testsuite/libffi.call/nested_struct2.c: Likewise.
846         * testsuite/libffi.call/nested_struct3.c: Likewise.
848 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
850         * testsuite/libffi.call/cls_double.c: Do a check on the result.
851         * testsuite/libffi.call/cls_uchar.c: Likewise.
852         * testsuite/libffi.call/cls_uint.c: Likewise.
853         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
854         * testsuite/libffi.call/cls_ushort.c: Likewise.
855         * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
857 2003-11-06  Andreas Tobler  <a.tobler@schweiz.ch>
859         * src/prep_cif.c (ffi_prep_cif): Move the validity check after
860         the initialization.
862 2003-10-23  Andreas Tobler  <a.tobler@schweiz.ch>
864         * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
865         FFI_ASSERT(FALSE) with FFI_ASSERT(0).
867 2003-10-22  David Daney  <ddaney@avtrex.com>
869         * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
870         __attribute__((__mode__(__SI__))) and friends.
872 2003-10-22  Andreas Schwab  <schwab@suse.de>
874         * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
876 2003-10-21  Andreas Tobler  <a.tobler@schweiz.ch>
878         * configure.in: AC_LINK_FILES(ffitarget.h).
879         * configure: Regenerate.
880         * Makefile.in: Likewise.
881         * include/Makefile.in: Likewise.
882         * testsuite/Makefile.in: Likewise.
883         * fficonfig.h.in: Likewise.
885 2003-10-21  Paolo Bonzini  <bonzini@gnu.org>
886             Richard Henderson  <rth@redhat.com>
888         Avoid that ffi.h includes fficonfig.h.
890         * Makefile.am (EXTRA_DIST): Include ffitarget.h files
891         (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
892         (TARGET_SRC_MIPS_SGI): Removed.
893         (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
894         (MIPS_SGI): Removed.
895         (CLEANFILES): Removed.
896         (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
897         targets.
898         * acconfig.h: Removed.
899         * configure.in: Compute sizeofs only for double and long double.
900         Use them to define and subst HAVE_LONG_DOUBLE.  Include comments
901         into AC_DEFINE instead of using acconfig.h.  Create
902         include/ffitarget.h instead of include/fficonfig.h.  Rename
903         MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
904         AC_DEFINE EH_FRAME_FLAGS.
905         * include/Makefile.am (DISTCLEANFILES): New automake macro.
906         (hack_DATA): Add ffitarget.h.
907         * include/ffi.h.in: Remove all system specific definitions.
908         Declare raw API even if it is not installed, why bother?
909         Use limits.h instead of SIZEOF_* to define ffi_type_*.  Do
910         not define EH_FRAME_FLAGS, it is in fficonfig.h now.  Include
911         ffitarget.h instead of fficonfig.h.  Remove ALIGN macro.
912         (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
913         * include/ffi_common.h (bool): Do not define.
914         (ffi_assert): Accept failed assertion.
915         (ffi_type_test): Return void and accept file/line.
916         (FFI_ASSERT): Pass stringized failed assertion.
917         (FFI_ASSERT_AT): New macro.
918         (FFI_ASSERT_VALID_TYPE): New macro.
919         (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
920         UINT64, SINT64): Define here with gcc's __attribute__ macro
921         instead of in ffi.h
922         (FLOAT32, ALIGN): Define here instead of in ffi.h
923         * include/ffi-mips.h: Removed.  Its content moved to
924         src/mips/ffitarget.h after separating assembly and C sections.
925         * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
926         src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
927         src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
928         src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
929         SIZEOF_ARG -> FFI_SIZEOF_ARG.
930         * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
931         * src/debug.c (ffi_assert): Accept stringized failed assertion.
932         (ffi_type_test): Rewritten.
933         * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
934         FFI_ASSERT_VALID_TYPE.
935         * src/alpha/ffitarget.h, src/arm/ffitarget.h,
936         src/ia64/ffitarget.h, src/m68k/ffitarget.h,
937         src/mips/ffitarget.h, src/powerpc/ffitarget.h,
938         src/s390/ffitarget.h, src/sh/ffitarget.h,
939         src/sh64/ffitarget.h, src/sparc/ffitarget.h,
940         src/x86/ffitarget.h: New files.
941         * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
942         src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
943         src/powerpc/aix.S, src/powerpc/darwin.S,
944         src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
945         src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
946         src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
947         src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
948         src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
949         include fficonfig.h
951 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
953         * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
954         _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
956 2003-10-19  Andreas Tobler  <a.tobler@schweiz.ch>
958         * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
959         Used when FFI_DEBUG = 1.
961 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
963         * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
964         and align.
966 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
968         * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
969         FFI_MIPS_O32 for O32 ABI.
971 2003-10-01  Andreas Tobler  <a.tobler@schweiz.ch>
973         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
974         SPARC64. Cleanup whitespaces.
976 2003-09-19  Andreas Tobler  <a.tobler@schweiz.ch>
978         * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
979         strongarm, xscale. Cleanup whitespaces.
980         * testsuite/libffi.call/closure_fn1.c: Likewise.
981         * testsuite/libffi.call/closure_fn2.c: Likewise.
982         * testsuite/libffi.call/closure_fn3.c: Likewise.
983         * testsuite/libffi.call/cls_12byte.c: Likewise.
984         * testsuite/libffi.call/cls_16byte.c: Likewise.
985         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
986         * testsuite/libffi.call/cls_20byte.c: Likewise.
987         * testsuite/libffi.call/cls_24byte.c: Likewise.
988         * testsuite/libffi.call/cls_2byte.c: Likewise.
989         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
990         * testsuite/libffi.call/cls_3byte1.c: Likewise.
991         * testsuite/libffi.call/cls_3byte2.c: Likewise.
992         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
993         * testsuite/libffi.call/cls_4byte.c: Likewise.
994         * testsuite/libffi.call/cls_5byte.c: Likewise.
995         * testsuite/libffi.call/cls_6byte.c: Likewise.
996         * testsuite/libffi.call/cls_7byte.c: Likewise.
997         * testsuite/libffi.call/cls_8byte.c: Likewise.
998         * testsuite/libffi.call/cls_double.c: Likewise.
999         * testsuite/libffi.call/cls_float.c: Likewise.
1000         * testsuite/libffi.call/cls_uchar.c: Likewise.
1001         * testsuite/libffi.call/cls_uint.c: Likewise.
1002         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1003         * testsuite/libffi.call/cls_ushort.c: Likewise.
1004         * testsuite/libffi.call/nested_struct.c: Likewise.
1005         * testsuite/libffi.call/nested_struct1.c: Likewise.
1006         * testsuite/libffi.call/problem1.c: Likewise.
1007         * testsuite/libffi.special/unwindtest.cc: Likewise.
1008         * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
1010 2003-09-18  David Edelsohn  <edelsohn@gnu.org>
1012         * src/powerpc/aix.S: Cleanup whitespaces.
1013         * src/powerpc/aix_closure.S: Likewise.
1015 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
1017         * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
1018         * src/powerpc/darwin_closure.S: Likewise.
1019         * src/powerpc/ffi_darwin.c: Likewise.
1021 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
1022             David Edelsohn  <edelsohn@gnu.org>
1024         * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
1025         * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
1026         parameter stack.
1027         * src/powerpc/darwin_closure.S: Likewise.
1028         * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
1029         according to the Darwin/AIX ABI.
1030         (ffi_prep_cif_machdep): Likewise.
1031         (ffi_closure_helper_DARWIN): Likewise.
1032         Remove the outgoing parameter stack logic. Simplify the evaluation
1033         of the different CASE types.
1034         (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
1035         statement in the trampoline code.
1037 2003-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1039         * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
1040         for the register size.
1041         (ffi_closure_helper_SYSV): Handle the structure return value
1042         address correctly.
1043         (ffi_closure_helper_SYSV): Return the appropriate type when
1044         the registers are used for the structure return value.
1045         * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
1046         the 64-bit return value.  Update copyright years.
1048 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1050         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
1051         srcdir for ffi_mips.h.
1053 2003-09-12  Alan Modra  <amodra@bigpond.net.au>
1055         * src/prep_cif.c (initialize_aggregate): Include tail padding in
1056         structure size.
1057         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
1058         placement of float result.
1059         * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
1060         cast of "resp" for big-endian 64 bit machines.
1062 2003-09-11  Alan Modra  <amodra@bigpond.net.au>
1064         * src/types.c (double, longdouble): Merge identical SH and ARM
1065         typedefs, and add POWERPC64.
1066         * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
1067         struct split over gpr and rest.
1068         (ffi_prep_cif_machdep): Correct intarg_count for structures.
1069         * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
1071 2003-09-09  Andreas Tobler  <a.tobler@schweiz.ch>
1073         * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
1074         passing correctly.
1076 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
1078         * configure: Regenerate.
1080 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
1082         * Makefile.am: Remove build rules for ffitest.
1083         * Makefile.in: Rebuilt.
1085 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
1087         * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
1088         about implicit declaration of abort().
1090 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
1092         * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
1093         * Makefile.in: Rebuilt.
1094         * configure.in: Add dejagnu test framework.
1095         * configure: Rebuilt.
1097         * testsuite/Makefile.am: New file.
1098         * testsuite/Makefile.in: Built
1099         * testsuite/lib/libffi-dg.exp: New file.
1100         * testsuite/config/default.exp: Likewise.
1101         * testsuite/libffi.call/call.exp: Likewise.
1102         * testsuite/libffi.call/ffitest.h: Likewise.
1103         * testsuite/libffi.call/closure_fn0.c: Likewise.
1104         * testsuite/libffi.call/closure_fn1.c: Likewise.
1105         * testsuite/libffi.call/closure_fn2.c: Likewise.
1106         * testsuite/libffi.call/closure_fn3.c: Likewise.
1107         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1108         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1109         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1110         * testsuite/libffi.call/cls_2byte.c: Likewise.
1111         * testsuite/libffi.call/cls_3byte1.c: Likewise.
1112         * testsuite/libffi.call/cls_3byte2.c: Likewise.
1113         * testsuite/libffi.call/cls_4byte.c: Likewise.
1114         * testsuite/libffi.call/cls_5byte.c: Likewise.
1115         * testsuite/libffi.call/cls_6byte.c: Likewise.
1116         * testsuite/libffi.call/cls_7byte.c: Likewise.
1117         * testsuite/libffi.call/cls_8byte.c: Likewise.
1118         * testsuite/libffi.call/cls_12byte.c: Likewise.
1119         * testsuite/libffi.call/cls_16byte.c: Likewise.
1120         * testsuite/libffi.call/cls_20byte.c: Likewise.
1121         * testsuite/libffi.call/cls_24byte.c: Likewise.
1122         * testsuite/libffi.call/cls_double.c: Likewise.
1123         * testsuite/libffi.call/cls_float.c: Likewise.
1124         * testsuite/libffi.call/cls_uchar.c: Likewise.
1125         * testsuite/libffi.call/cls_uint.c: Likewise.
1126         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1127         * testsuite/libffi.call/cls_ushort.c: Likewise.
1128         * testsuite/libffi.call/float.c: Likewise.
1129         * testsuite/libffi.call/float1.c: Likewise.
1130         * testsuite/libffi.call/float2.c: Likewise.
1131         * testsuite/libffi.call/many.c: Likewise.
1132         * testsuite/libffi.call/many_win32.c: Likewise.
1133         * testsuite/libffi.call/nested_struct.c: Likewise.
1134         * testsuite/libffi.call/nested_struct1.c: Likewise.
1135         * testsuite/libffi.call/pyobjc-tc.c: Likewise.
1136         * testsuite/libffi.call/problem1.c: Likewise.
1137         * testsuite/libffi.call/promotion.c: Likewise.
1138         * testsuite/libffi.call/return_ll.c: Likewise.
1139         * testsuite/libffi.call/return_sc.c: Likewise.
1140         * testsuite/libffi.call/return_uc.c: Likewise.
1141         * testsuite/libffi.call/strlen.c: Likewise.
1142         * testsuite/libffi.call/strlen_win32.c: Likewise.
1143         * testsuite/libffi.call/struct1.c: Likewise.
1144         * testsuite/libffi.call/struct2.c: Likewise.
1145         * testsuite/libffi.call/struct3.c: Likewise.
1146         * testsuite/libffi.call/struct4.c: Likewise.
1147         * testsuite/libffi.call/struct5.c: Likewise.
1148         * testsuite/libffi.call/struct6.c: Likewise.
1149         * testsuite/libffi.call/struct7.c: Likewise.
1150         * testsuite/libffi.call/struct8.c: Likewise.
1151         * testsuite/libffi.call/struct9.c: Likewise.
1152         * testsuite/libffi.special/special.exp: New file.
1153         * testsuite/libffi.special/ffitestcxx.h: Likewise.
1154         * testsuite/libffi.special/unwindtest.cc: Likewise.
1157 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1159         * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case.  Update
1160         copyright years.
1162 2003-08-02  Alan Modra  <amodra@bigpond.net.au>
1164         * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
1165         structure passing.
1166         (ffi_closure_helper_LINUX64): Likewise.
1167         * src/powerpc/linux64.S: Remove code writing to parm save area.
1168         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
1169         address in lr from ffi_closure_helper_LINUX64 call to calculate
1170         table address.  Optimize function tail.
1172 2003-07-28  Andreas Tobler  <a.tobler@schweiz.ch>
1174         * src/sparc/ffi.c: Handle all floating point registers.
1175         * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
1177 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1179         * README: Note that libffi is not part of GCC.  Update the project
1180         URL and status.
1182 2003-06-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1184         * src/powerpc/ppc_closure.S: Include ffi.h.
1186 2003-06-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1188         * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
1189         Use C style comments.
1191 2003-06-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1193         * Makefile.am: Add SHmedia support.  Fix a typo of SH support.
1194         * Makefile.in: Regenerate.
1195         * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
1196         * configure: Regenerate.
1197         * include/ffi.h.in: Add SHmedia support.
1198         * src/sh64/ffi.c: New file.
1199         * src/sh64/sysv.S: New file.
1201 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
1203         * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
1204         should be read-only.
1205         * configure: Rebuilt.
1206         * fficonfig.h.in: Rebuilt.
1207         * include/ffi.h.in (EH_FRAME_FLAGS): Define.
1208         * src/alpha/osf.S: Use EH_FRAME_FLAGS.
1209         * src/powerpc/linux64.S: Likewise.
1210         * src/powerpc/linux64_closure.S: Likewise.  Include ffi.h.
1211         * src/powerpc/sysv.S: Use EH_FRAME_FLAGS.  Use pcrel encoding
1212         if -fpic/-fPIC/-mrelocatable.
1213         * src/powerpc/powerpc_closure.S: Likewise.
1214         * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
1215         #write in .eh_frame flags.
1216         * src/sparc/v9.S: Likewise.
1217         * src/x86/unix64.S: Use EH_FRAME_FLAGS.
1218         * src/x86/sysv.S: Likewise.  Use pcrel encoding if -fpic/-fPIC.
1219         * src/s390/sysv.S: Use EH_FRAME_FLAGS.  Include ffi.h.
1221 2003-05-07  Jeff Sturm  <jsturm@one-point.com>
1223         Fixes PR bootstrap/10656
1224         * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
1225         support for .register pseudo-op.
1226         * src/sparc/v8.S: Use it.
1227         * fficonfig.h.in: Rebuilt.
1228         * configure: Rebuilt.
1230 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
1232         * include/ffi.h.in (POWERPC64): Define if 64-bit.
1233         (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
1234         Make it the default on POWERPC64.
1235         (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
1236         * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
1237         * configure: Rebuilt.
1238         * src/powerpc/ffi.c (hidden): Define.
1239         (ffi_prep_args_SYSV): Renamed from
1240         ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
1241         (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
1242         ASM_NEEDS_REGISTERS64): New.
1243         (ffi_prep_args64): New function.
1244         (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
1245         (ffi_call): Likewise.
1246         (ffi_prep_closure): Likewise.
1247         (flush_icache): Surround by #ifndef POWERPC64.
1248         (ffi_dblfl): New union type.
1249         (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
1250         (ffi_closure_helper_LINUX64): New function.
1251         * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
1252         __powerpc64__.
1253         * src/powerpc/sysv.S: Likewise.
1254         (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
1255         * src/powerpc/linux64.S: New file.
1256         * src/powerpc/linux64_closure.S: New file.
1257         * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
1258         src/powerpc/linux64_closure.S.
1259         (TARGET_SRC_POWERPC): Likewise.
1261         * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
1262         closure_test_fn3): Fix result printing on big-endian 64-bit
1263         machines.
1264         (main): Print tst2_arg instead of uninitialized tst2_result.
1266         * src/ffitest.c (main): Hide what closure pointer really points to
1267         from the compiler.
1269 2003-04-16  Richard Earnshaw  <rearnsha@arm.com>
1271         * configure.in (arm-*-netbsdelf*): Add configuration.
1272         (configure): Regenerated.
1274 2003-04-04  Loren J. Rittle  <ljrittle@acm.org>
1276         * include/Makefile.in: Regenerate.
1278 2003-03-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1280         * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
1281         bit mode.
1282         * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
1283         Receive closure pointer through parameter, read args using
1284         __builtin_dwarf_cfa.
1285         (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
1287 2003-03-12  Andreas Schwab  <schwab@suse.de>
1289         * configure.in: Avoid trailing /. in toolexeclibdir.
1290         * configure: Rebuilt.
1292 2003-03-03  Andreas Tobler <a.tobler@schweiz.ch>
1294         * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
1296 2003-02-06  Andreas Tobler <a.tobler@schweiz.ch>
1298         * libffi/src/powerpc/darwin_closure.S:
1299         Fix alignement bug, allocate 8 bytes for the result.
1300         * libffi/src/powerpc/aix_closure.S:
1301         Likewise.
1302         * libffi/src/powerpc/ffi_darwin.c:
1303         Update stackframe description for aix/darwin_closure.S.
1305 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
1307         * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
1308         attribute.
1310 2003-01-31  Christian Cornelssen  <ccorn@cs.tu-berlin.de>,
1311             Andreas Schwab  <schwab@suse.de>
1313         * configure.in: Adjust command to source config-ml.in to account
1314         for changes to the libffi_basedir definition.
1315         (libffi_basedir): Remove ${srcdir} from value and include trailing
1316         slash if nonempty.
1318         * configure: Regenerate.
1320 2003-01-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1322         * src/powerpc/ppc_closure.S: Recode to fit shared libs.
1324 2003-01-28  Andrew Haley  <aph@redhat.com>
1326         * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
1327         * src/x86/ffi64.c (ffi_prep_closure): New.
1328         (ffi_closure_UNIX64_inner): New.
1329         * src/x86/unix64.S (ffi_closure_UNIX64): New.
1331 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
1333         * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
1334         Remove USE_LIBDIR conditional.
1335         * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
1336         * Makefile.in, configure: Rebuilt.
1338 2003-01027  David Edelsohn  <edelsohn@gnu.org>
1340         * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
1341         * Makefile.in: Regenerate.
1343 2003-01-22  Andrew Haley  <aph@redhat.com>
1345         * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
1346         unwind info.
1348 2003-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
1350         * src/powerpc/darwin.S: Add unwind info.
1351         * src/powerpc/darwin_closure.S: Likewise.
1353 2003-01-14  Andrew Haley  <aph@redhat.com>
1355         * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
1356         (ffi_prep_cif_machdep): Likewise.
1357         * src/x86/unix64.S: Add unwind info.
1359 2003-01-14  Andreas Jaeger  <aj@suse.de>
1361         * src/ffitest.c (main): Only use ffi_closures if those are
1362         supported.
1364 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
1366         * libffi/src/ffitest.c
1367          add closure testcases
1369 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
1371         * libffi/src/powerpc/ffi.c
1372          fix alignment bug for float (4 byte aligned iso 8 byte)
1374 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
1376         * src/powerpc/ffi_darwin.c: Remove RCS version string.
1377         * src/powerpc/darwin.S: Remove RCS version string.
1379 2003-01-03  Jeff Sturm  <jsturm@one-point.com>
1381         * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
1382         * src/ffitest.c (main): Use static storage for closure.
1383         * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
1384         * src/sparc/v8.S (ffi_closure_v8): New.
1385         * src/sparc/v9.S (ffi_closure_v9): New.
1387 2002-11-10  Ranjit Mathew <rmathew@hotmail.com>
1389         * include/ffi.h.in: Added FFI_STDCALL ffi_type
1390           enumeration for X86_WIN32.
1391         * src/x86/win32.S: Added ffi_call_STDCALL function
1392           definition.
1393         * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
1394           switch cases for recognising FFI_STDCALL and
1395           calling ffi_call_STDCALL if target is X86_WIN32.
1396         * src/ffitest.c (my_stdcall_strlen/stdcall_many):
1397           stdcall versions of the "my_strlen" and "many"
1398           test functions (for X86_WIN32).
1399           Added test cases to test stdcall invocation using
1400           these functions.
1402 2002-12-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1404         * src/sh/sysv.S: Add DWARF2 unwind info.
1406 2002-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
1408         * src/s390/sysv.S (.eh_frame section): Make section read-only.
1410 2002-11-26  Jim Wilson  <wilson@redhat.com>
1412         * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
1414 2002-11-23  H.J. Lu <hjl@gnu.org>
1416         * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
1417         Include ../config/accross.m4.
1418         * aclocal.m4; Rebuild.
1419         * configure: Likewise.
1421 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
1423         * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
1425 2002-11-11  DJ Delorie  <dj@redhat.com>
1427         * configure.in: Look for common files in the right place.
1429 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1431         * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
1432         raw data as _Jv_word values, not ffi_raw.
1433         (ffi_java_ptrarray_to_raw): Likewise.
1434         (ffi_java_rvalue_to_raw): New function.
1435         (ffi_java_raw_call): Call it.
1436         (ffi_java_raw_to_rvalue): New function.
1437         (ffi_java_translate_args): Call it.
1438         * src/ffitest.c (closure_test_fn): Interpret return value
1439         as ffi_arg, not int.
1440         * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
1441         FFI_TYPE_POINTER case.
1442         (ffi_closure_helper_SYSV): Likewise.  Also, assume return
1443         values extended to word size.
1445 2002-10-02  Andreas Jaeger  <aj@suse.de>
1447         * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
1449 2002-10-01  Bo Thorsen  <bo@smetana.suse.de>
1451         * include/ffi.h.in: Fix i386 win32 compilation.
1453 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1455         * configure.in: Add s390x-*-linux-* target.
1456         * configure: Regenerate.
1457         * include/ffi.h.in: Define S390X for s390x targets.
1458         (FFI_CLOSURES): Define for s390/s390x.
1459         (FFI_TRAMPOLINE_SIZE): Likewise.
1460         (FFI_NATIVE_RAW_API): Likewise.
1461         * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
1462         * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
1463         * src/s390/ffi.c: Major rework of existing code.  Add support for
1464         s390x targets.  Add closure support.
1465         * src/s390/sysv.S: Likewise.
1467 2002-09-29  Richard Earnshaw  <rearnsha@arm.com>
1469         * src/arm/sysv.S: Fix typo.
1471 2002-09-28  Richard Earnshaw  <rearnsha@arm.com>
1473         * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
1474         has defined __USER_LABEL_PREFIX__, then use it in CNAME.
1475         (ffi_call_SYSV): Handle soft-float.
1477 2002-09-27  Bo Thorsen  <bo@suse.de>
1479         * include/ffi.h.in: Fix multilib x86-64 support.
1481 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1483         * Makefile.am (all-multi): Fix multilib parallel build.
1485 2002-07-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1487         * configure.in (sh[34]*-*-linux*): Add brackets.
1488         * configure: Regenerate.
1490 2002-07-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1492         * Makefile.am: Add SH support.
1493         * Makefile.in: Regenerate.
1494         * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
1495         * configure: Regenerate.
1496         * include/ffi.h.in: Add SH support.
1497         * src/sh/ffi.c: New file.
1498         * src/sh/sysv.S: New file.
1499         * src/types.c: Add SH support.
1501 2002-07-16  Bo Thorsen  <bo@suse.de>
1503         * src/x86/ffi64.c: New file that adds x86-64 support.
1504         * src/x86/unix64.S: New file that handles argument setup for
1505         x86-64.
1506         * src/x86/sysv.S: Don't use this on x86-64.
1507         * src/x86/ffi.c: Don't use this on x86-64.
1508         Remove unused vars.
1509         * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
1510         for x86-64.
1511         * src/ffitest.c (struct6): New test that tests a special case in
1512         the x86-64 ABI.
1513         (struct7): Likewise.
1514         (struct8): Likewise.
1515         (struct9): Likewise.
1516         (closure_test_fn): Silence warning about this when it's not used.
1517         (main): Add the new tests.
1518         (main): Fix a couple of wrong casts and silence some compiler warnings.
1519         * include/ffi.h.in: Add x86-64 ABI definition.
1520         * fficonfig.h.in: Regenerate.
1521         * Makefile.am: Add x86-64 support.
1522         * configure.in: Likewise.
1523         * Makefile.in: Regenerate.
1524         * configure: Likewise.
1526 2002-06-24  Bo Thorsen  <bo@suse.de>
1528         * src/types.c: Merge settings for similar architectures.
1529         Add x86-64 sizes and alignments.
1531 2002-06-23  Bo Thorsen  <bo@suse.de>
1533         * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
1534         * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
1535         * src/mips/ffi.c (ffi_prep_args): Likewise.
1536         * src/m68k/ffi.c (ffi_prep_args): Likewise.
1538 2002-07-18  H.J. Lu  (hjl@gnu.org)
1540         * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
1541         (libffi_la_SOURCES): Support MIPS_LINUX.
1542         (libffi_convenience_la_SOURCES): Likewise.
1543         * Makefile.in: Regenerated.
1545         * configure.in (mips64*-*): Skip.
1546         (mips*-*-linux*): New.
1547         * configure: Regenerated.
1549         * src/mips/ffi.c: Include <sgidefs.h>.
1551 2002-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
1553         * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
1555 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1557         * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
1559 2002-05-27  Bo Thorsen  <bo@suse.de>
1561         * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
1562         fix formatting.
1564 2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>
1566         * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
1567         beginning of function (for older apple cc).
1569 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
1571         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1572         script entry, and set LD to it when configuring multilibs.
1573         * configure: Rebuilt.
1575 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
1577         * configure.in (sparc64-*-netbsd*): Add target.
1578         (sparc-*-netbsdelf*): Likewise.
1579         * configure: Regenerate.
1581 2002-04-28  David S. Miller  <davem@redhat.com>
1583         * configure.in, configure: Fix SPARC test in previous change.
1585 2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>
1587         * Makefile.am: Add Linux for S/390 support.
1588         * Makefile.in: Regenerate.
1589         * configure.in: Add Linux for S/390 support.
1590         * configure: Regenerate.
1591         * include/ffi.h.in: Add Linux for S/390 support.
1592         * src/s390/ffi.c: New file from libffi CVS tree.
1593         * src/s390/sysv.S: New file from libffi CVS tree.
1595 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1597         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
1598         %r_disp32().
1599         * src/sparc/v8.S: Use it.
1600         * src/sparc/v9.S: Likewise.
1601         * fficonfig.h.in: Rebuilt.
1602         * configure: Rebuilt.
1604 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
1606         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1607         correctly.
1608         * src/ia64/unix.S: Add unwind information. Fix comments.
1609         Save sp in a way that's compatible with unwind info.
1610         (ffi_call_unix): Correctly restore sp in all cases.
1611         * src/ia64/ffi.c: Add, fix comments.
1613 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
1615         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1617 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1619         * configure.in (alpha*-*-netbsd*): Add target.
1620         * configure: Regenerate.
1622 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
1624         * src/sparc/v8.S: Add unwind info.
1625         * src/sparc/v9.S: Likewise.
1627 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
1629         * configure.in: Enable i*86-*-netbsdelf*.
1630         * configure: Rebuilt.
1632 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
1634         PR other/2620
1635         * src/mips/n32.s: Delete
1636         * src/mips/o32.s: Delete
1638 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
1640         * configure.in: Enable alpha*-*-freebsd*.
1641         * configure: Rebuilt.
1643 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1645         * Makefile.am: libfficonvenience -> libffi_convenience.
1646         * Makefile.in: Rebuilt.
1648         * Makefile.am: Define ffitest_OBJECTS.
1649         * Makefile.in: Rebuilt.
1651 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
1652             David Edelsohn  <edelsohn@gnu.org>
1654         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1655         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1656         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1657         * Makefile.in: Regenerate.
1658         * include/ffi.h.in: Add AIX and Darwin closure definitions.
1659         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1660         (flush_icache, flush_range): New functions.
1661         (ffi_closure_helper_DARWIN): New function.
1662         * src/powerpc/aix_closure.S: New file.
1663         * src/powerpc/darwin_closure.S: New file.
1665 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
1667         * include/ffi.h.in: Add typedef for ffi_arg.
1668         * src/ffitest.c (main): Declare rint with ffi_arg.
1670 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
1672         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1673         number of GPRs for floating-point arguments.
1675 2002-01-31  Anthony Green  <green@redhat.com>
1677         * configure: Rebuilt.
1678         * configure.in: Replace CHECK_SIZEOF and endian tests with
1679         cross-compiler friendly macros.
1680         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1681         macros.
1683 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
1685         * src/powerpc/darwin.S (_ffi_call_AIX): New.
1686         * src/powerpc/aix.S (ffi_call_DARWIN): New.
1688 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
1690         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1691         (TARGET_SRC_POWERPC_AIX): New.
1692         (POWERPC_AIX): New stanza.
1693         * Makefile.in: Regenerate.
1694         * configure.in: Add AIX case.
1695         * configure: Regenerate.
1696         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1697         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1698         size.  Fix "long double" support.
1699         (ffi_call): Add FFI_AIX case.
1700         * src/powerpc/aix.S: New.
1702 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
1704         Implement Darwin PowerPC ABI.
1705         * configure.in: Handle powerpc-*-darwin*.
1706         * Makefile.am: Set source files for POWERPC_DARWIN.
1707         * configure: Rebuilt.
1708         * Makefile.in: Rebuilt.
1709         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1710         POWERPC_DARWIN.
1711         * src/powerpc/darwin.S: New file.
1712         * src/powerpc/ffi_darwin.c: New file.
1714 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1716         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1718 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1720         * src/x86/sysv.S: Avoid gas-only .balign directive.
1721         Use C style comments.
1723 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1725         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1726         Fixes PR bootstrap/3563.
1728 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1730         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1732 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1734         * configure.in: Recognize sparc*-sun-* host.
1735         * configure: Regenerate.
1737 2001-06-06  Andrew Haley  <aph@redhat.com>
1739         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
1741 2001-06-03  Andrew Haley  <aph@redhat.com>
1743         * src/alpha/osf.S: Add unwind info.
1744         * src/powerpc/sysv.S: Add unwind info.
1745         * src/powerpc/ppc_closure.S: Likewise.
1747 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
1749         * configure.in: Fix AC_ARG_ENABLE usage.
1750         * configure: Rebuilt.
1752 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1754         * configure.in: Remove warning about beta code.
1755         * configure: Rebuilt.
1757 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
1759         * src/ia64/unix.S: Restore stack pointer when returning from
1760         ffi_closure_UNIX.
1761         * src/ia64/ffi.c: Fix typo in comment.
1763 2001-04-18  Jim Wilson  <wilson@redhat.com>
1765         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1766         to eliminate RAW DV.
1768 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
1770         * Makefile.am: Make a libtool convenience library.
1771         * Makefile.in: Rebuilt.
1773 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
1775         * configure.in: Use different syntax for subdirectory creation.
1776         * configure: Rebuilt.
1778 2001-03-27  Jon Beniston  <jon@beniston.com>
1780         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1781         * configure: Rebuilt.
1782         * Makefile.am: Added X86_WIN32 target support.
1783         * Makefile.in: Rebuilt.
1785         * include/ffi.h.in: Added X86_WIN32 target support.
1787         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1788         * src/types.c: Added X86_WIN32 target support.
1790         * src/x86/win32.S: New file. Based on sysv.S, but with EH
1791         stuff removed and made to work with CygWin's gas.
1793 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
1795         * configure.in: Make target subdirectory in build dir.
1796         * Makefile.am: Override suffix based rules to specify correct output
1797         subdirectory.
1798         * Makefile.in: Rebuilt.
1799         * configure: Rebuilt.
1801 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
1803         * src/powerpc/ppc_closure.S: New file.
1804         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1805         involving long long and register pairs.
1806         (ffi_prep_closure): New function.
1807         (flush_icache): Likewise.
1808         (ffi_closure_helper_SYSV): Likewise.
1809         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1810         (FFI_TRAMPOLINE_SIZE): Likewise.
1811         (FFI_NATIVE_RAW_API): Likewise.
1812         * Makefile.in: Rebuilt.
1813         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1814         (TARGET_SRC_POWERPC): Likewise.
1816 2001-03-19  Tom Tromey  <tromey@redhat.com>
1818         * Makefile.in: Rebuilt.
1819         * Makefile.am (ffitest_LDFLAGS): New macro.
1821 2001-03-02  Nick Clifton  <nickc@redhat.com>
1823         * include/ffi.h.in: Remove RCS ident string.
1824         * include/ffi_mips.h: Remove RCS ident string.
1825         * src/debug.c: Remove RCS ident string.
1826         * src/ffitest.c: Remove RCS ident string.
1827         * src/prep_cif.c: Remove RCS ident string.
1828         * src/types.c: Remove RCS ident string.
1829         * src/alpha/ffi.c: Remove RCS ident string.
1830         * src/alpha/osf.S: Remove RCS ident string.
1831         * src/arm/ffi.c: Remove RCS ident string.
1832         * src/arm/sysv.S: Remove RCS ident string.
1833         * src/mips/ffi.c: Remove RCS ident string.
1834         * src/mips/n32.S: Remove RCS ident string.
1835         * src/mips/o32.S: Remove RCS ident string.
1836         * src/sparc/ffi.c: Remove RCS ident string.
1837         * src/sparc/v8.S: Remove RCS ident string.
1838         * src/sparc/v9.S: Remove RCS ident string.
1839         * src/x86/ffi.c: Remove RCS ident string.
1840         * src/x86/sysv.S: Remove RCS ident string.
1842 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1844         * include/ffi.h.in: Change sourceware.cygnus.com references to
1845         gcc.gnu.org.
1847 2000-12-09  Richard Henderson  <rth@redhat.com>
1849         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1850         (ffi_closure_osf_inner): Index rather than increment avalue
1851         and arg_types.  Give ffi_closure_osf the raw return value type.
1852         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1853         promotion.
1855 2000-12-07  Richard Henderson  <rth@redhat.com>
1857         * src/raw_api.c (ffi_translate_args): Fix typo.
1858         (ffi_prep_closure): Likewise.
1860         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1861         FFI_TRAMPOLINE_SIZE.
1862         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1863         cif->bytes for new ffi_call_osf implementation.
1864         (ffi_prep_args): Absorb into ...
1865         (ffi_call): ... here.  Do all stack allocation here and
1866         avoid a callback function.
1867         (ffi_prep_closure, ffi_closure_osf_inner): New.
1868         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1869         (ffi_closure_osf): New.
1871 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
1873         * config.guess, config.sub, install-sh: Removed.
1874         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1875         * Makefile.in: Rebuilt.
1877         * acinclude.m4: Include libtool macros from the top level.
1878         * aclocal.m4, configure: Rebuilt.
1880 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
1882         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1883         * configure: Rebuilt.
1885 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
1887         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1888         memory correctly.  Use conditional instructions, not branches where
1889         possible.
1891 2000-05-04  Tom Tromey  <tromey@cygnus.com>
1893         * configure: Rebuilt.
1894         * configure.in: Match `arm*-*-linux-*'.
1895         From Chris Dornan <cdornan@arm.com>.
1897 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
1899         * Makefile.am (SUBDIRS): Define.
1900         (AM_MAKEFLAGS): Likewise.
1901         (Multilib support.): Add section.
1902         * Makefile.in: Rebuilt.
1903         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
1904         New variables. Set for gcc using -print-multi-lib. Export them
1905         to libtool.
1906         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1907         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1908         for -shared links.
1909         (extra_compiler_flags_value, extra_compiler_flags): Check these
1910         for extra compiler options which need to be passed down in
1911         compiler_flags.
1913 2000-04-16  Anthony Green  <green@redhat.com>
1915         * configure: Rebuilt.
1916         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1918 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
1920         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
1921         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1922         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1923         Replace all void * sizeofs with sizeof(int).
1924         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1925         different than DOUBLE.
1926         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1927         (ffi_prep_args_v9): New function.
1928         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1929         (ffi_V9_return_struct): New function.
1930         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1931         32bit code (not yet cross-arch calls).
1932         * src/sparc/v8.S: Add struct return delay nop.
1933         Handle long long.
1934         * src/sparc/v9.S: New file.
1935         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1936         is used on sparc64 only for structures larger than 32 bytes.
1937         Pass by reference for structures is done for structure arguments
1938         larger than 16 bytes.
1939         * src/ffitest.c (main): Use 64bit rint on sparc64.
1940         Run long long tests on sparc.
1941         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1942         sparc64.
1943         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1944         on sparc64.
1945         * configure.in (sparc-*-linux*): New supported target.
1946         (sparc64-*-linux*): Likewise.
1947         * configure: Rebuilt.
1948         * Makefile.am: Add v9.S to SPARC files.
1949         * Makefile.in: Likewise.
1950         (LINK): Surround $(CCLD) into double quotes, so that multilib
1951         compiles work correctly.
1953 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1955         * configure: Rebuilt.
1956         * configure.in: (i*86-*-solaris*): New libffi target. Patch
1957         proposed by Bryce McKinlay.
1959 2000-03-20  Tom Tromey  <tromey@cygnus.com>
1961         * Makefile.in: Hand edit for java_raw_api.lo.
1963 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
1965         * config.guess, config.sub: Update from the gcc tree.
1966         Fix for PR libgcj/168.
1968 2000-03-03  Tom Tromey  <tromey@cygnus.com>
1970         * Makefile.in: Fixed ia64 by hand.
1972         * configure: Rebuilt.
1973         * configure.in (--enable-multilib): New option.
1974         (libffi_basedir): New subst.
1975         (AC_OUTPUT): Added multilib code.
1977 2000-03-02  Tom Tromey  <tromey@cygnus.com>
1979         * Makefile.in: Rebuilt.
1980         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
1981         directory name.
1983 2000-02-25  Hans Boehm <boehm@acm.org>
1985         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
1986         files.
1987         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
1988         list.
1989         (ffi_prep_raw_closure): Use ffi_translate_args, not
1990         ffi_closure_translate.
1991         * src/java_raw_api.c: New file.
1992         * src/ffitest.c (closure_test_fn): New function.
1993         (main): Define `rint' as long long on IA64.  Added new test when
1994         FFI_CLOSURES is defined.
1995         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
1996         (ffi_abi): Recognize IA64.
1997         (ffi_raw): Added `flt' field.
1998         Added "Java raw API" code.
1999         * configure.in: Recognize ia64.
2000         * Makefile.am (TARGET_SRC_IA64): New macro.
2001         (libffi_la_common_SOURCES): Added java_raw_api.c.
2002         (libffi_la_SOURCES): Define in IA64 case.
2004 2000-01-04  Tom Tromey  <tromey@cygnus.com>
2006         * Makefile.in: Rebuilt with newer automake.
2008 1999-12-31  Tom Tromey  <tromey@cygnus.com>
2010         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
2012 1999-09-01  Tom Tromey  <tromey@cygnus.com>
2014         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
2015         undefs.
2016         * fficonfig.h.in: Rebuilt.
2017         * configure: Rebuilt.
2018         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
2019         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
2020         * acconfig.h: Don't #undef PACKAGE or VERSION.
2022 1999-08-09  Anthony Green  <green@cygnus.com>
2024         * include/ffi.h.in: Try to work around messy header problem
2025         with PACKAGE and VERSION.
2027         * configure: Rebuilt.
2028         * configure.in: Change version to 2.00-beta.
2030         * fficonfig.h.in: Rebuilt.
2031         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
2033         * src/x86/ffi.c (ffi_raw_call): Rename.
2035 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
2037         * src/x86/ffi.c (ffi_closure_SYSV): New function.
2038         (ffi_prep_incoming_args_SYSV): Ditto.
2039         (ffi_prep_closure): Ditto.
2040         (ffi_closure_raw_SYSV): Ditto.
2041         (ffi_prep_raw_closure): More ditto.
2042         (ffi_call_raw): Final ditto.
2044         * include/ffi.h.in: Add definitions for closure and raw API.
2046         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
2047         FFI_TYPE_UINT64.
2049         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
2051         * src/raw_api.c: New file.
2053         * include/ffi.h.in (ffi_raw): New type.
2054         (UINT_ARG, SINT_ARG): New defines.
2055         (ffi_closure, ffi_raw_closure): New types.
2056         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
2058         * configure.in: Add check for endianness and sizeof void*.
2060         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
2061         instead of directly.
2063         * configure: Rebuilt.
2065 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
2067         * configure.in: Add x86 and powerpc BeOS configurations.
2068         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
2070 1999-05-09  Anthony Green  <green@cygnus.com>
2072         * configure.in: Add warning about this being beta code.
2073         Remove src/Makefile.am from the picture.
2074         * configure: Rebuilt.
2076         * Makefile.am: Move logic from src/Makefile.am.  Add changes
2077         to support libffi as a target library.
2078         * Makefile.in: Rebuilt.
2080         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
2081         Upgraded to new autoconf, automake, libtool.
2083         * README: Tweaks.
2085         * LICENSE: Update copyright date.
2087         * src/Makefile.am, src/Makefile.in: Removed.
2089 1998-11-29  Anthony Green  <green@cygnus.com>
2091         * include/ChangeLog: Removed.
2092         * src/ChangeLog: Removed.
2093         * src/mips/ChangeLog: Removed.
2094         * src/sparc/ChangeLog: Remboved.
2095         * src/x86/ChangeLog: Removed.
2097         * ChangeLog.v1: Created.