1 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
5 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
7 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
8 of jal. Use an absolute encoding for the frame information.
10 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
12 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
13 * acinclude.m4: Delete logic for sincludes.
14 * aclocal.m4, Makefile.in, configure: Regenerate.
15 * include/Makefile: Likewise.
16 * testsuite/Makefile: Likewise.
18 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
20 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
22 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
24 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
26 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
27 long long values. Round stack allocation to a multiple of 8 bytes
28 for ATPCS compatibility.
29 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
30 names. Handle returning long long types. Add Thumb and interworking
31 support. Improve soft-float code.
33 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
35 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
36 (libffi_exit): New function.
37 (libffi_init): Build the testglue wrapper if needed.
39 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
42 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
44 2004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
46 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
48 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
50 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
51 * testsuite/libffi.call/float3.c: New test case.
53 2004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
55 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
56 the function returning a structure pointed with R2.
57 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
58 the structure return value if T bit set. Emit position
59 independent code and EH data if PIC.
61 2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
63 * Makefile.am: Add m32r support.
64 * configure.ac: Likewise.
65 * Makefile.in: Regenerate.
66 * confiugre: Regenerate.
67 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
68 (uint64, sint64, double, longdouble)
69 * src/m32r: New directory.
70 * src/m32r/ffi.c: New file.
71 * src/m32r/sysv.S: Likewise.
72 * src/m32r/ffitarget.h: Likewise.
74 2004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
76 * testsuite/libffi.call/negint.c: New test case.
78 2004-09-14 H.J. Lu <hongjiu.lu@intel.com>
81 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
82 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
83 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
86 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
88 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
89 * testsuite/libffi.call/promotion.c: Likewise.
90 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
92 * testsuite/libffi.call/return_sc.c: Likewise.
93 * testsuite/libffi.call/return_uc.c: Likewise.
95 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
97 * src/powerpc/darwin.S: Fix comments and identation.
98 * src/powerpc/darwin_closure.S: Likewise.
100 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
102 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
103 (ffi_prep_args): Handle longdouble arguments.
104 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
106 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
107 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
109 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
110 * src/types.c: Defined longdouble size and alignment for darwin.
112 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
114 * src/powerpc/aix.S: Remove whitespaces.
115 * src/powerpc/aix_closure.S: Likewise.
116 * src/powerpc/asm.h: Likewise.
117 * src/powerpc/ffi.c: Likewise.
118 * src/powerpc/ffitarget.h: Likewise.
119 * src/powerpc/linux64.S: Likewise.
120 * src/powerpc/linux64_closure.S: Likewise.
121 * src/powerpc/ppc_closure.S: Likewise.
122 * src/powerpc/sysv.S: Likewise.
124 2004-08-30 Anthony Green <green@redhat.com>
126 * Makefile.am: Add frv support.
127 * Makefile.in, testsuite/Makefile.in: Rebuilt.
128 * configure.ac: Read configure.host.
129 * configure.in: Read configure.host.
130 * configure.host: New file. frv-elf needs libgloss.
131 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
132 alignment. This is needed to frv and shouldn't harm the others.
133 * include/ffi_common.h (ALIGN_DOWN): New macro.
134 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
136 2004-08-24 David Daney <daney@avtrex.com>
138 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
139 * testsuite/libffi.call/closure_fn1.c: Likewise.
140 * testsuite/libffi.call/closure_fn2.c Likewise.
141 * testsuite/libffi.call/closure_fn3.c: Likewise.
142 * testsuite/libffi.call/closure_fn4.c: Likewise.
143 * testsuite/libffi.call/closure_fn5.c: Likewise.
144 * testsuite/libffi.call/cls_18byte.c: Likewise.
145 * testsuite/libffi.call/cls_19byte.c: Likewise.
146 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
147 * testsuite/libffi.call/cls_20byte.c: Likewise.
148 * testsuite/libffi.call/cls_20byte1.c: Likewise.
149 * testsuite/libffi.call/cls_24byte.c: Likewise.
150 * testsuite/libffi.call/cls_2byte.c: Likewise.
151 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
152 * testsuite/libffi.call/cls_3byte1.c: Likewise.
153 * testsuite/libffi.call/cls_3byte2.c: Likewise.
154 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
155 * testsuite/libffi.call/cls_4byte.c: Likewise.
156 * testsuite/libffi.call/cls_64byte.c: Likewise.
157 * testsuite/libffi.call/cls_6byte.c: Likewise.
158 * testsuite/libffi.call/cls_7byte.c: Likewise.
159 * testsuite/libffi.call/cls_8byte.c: Likewise.
160 * testsuite/libffi.call/cls_9byte1.c: Likewise.
161 * testsuite/libffi.call/cls_9byte2.c: Likewise.
162 * testsuite/libffi.call/cls_align_double.c: Likewise.
163 * testsuite/libffi.call/cls_align_float.c: Likewise.
164 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
165 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
166 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
167 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
168 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
169 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
170 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
171 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
172 * testsuite/libffi.call/cls_double.c: Likewise.
173 * testsuite/libffi.call/cls_float.c: Likewise.
174 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
175 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
176 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
177 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
178 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
179 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
180 * testsuite/libffi.call/cls_schar.c: Likewise.
181 * testsuite/libffi.call/cls_sint.c: Likewise.
182 * testsuite/libffi.call/cls_sshort.c: Likewise.
183 * testsuite/libffi.call/cls_uchar.c: Likewise.
184 * testsuite/libffi.call/cls_uint.c: Likewise.
185 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
186 * testsuite/libffi.call/cls_ushort.c: Likewise.
187 * testsuite/libffi.call/nested_struct.c: Likewise.
188 * testsuite/libffi.call/nested_struct1.c: Likewise.
189 * testsuite/libffi.call/nested_struct2.c: Likewise.
190 * testsuite/libffi.call/nested_struct3.c: Likewise.
191 * testsuite/libffi.call/problem1.c: Likewise.
192 * testsuite/libffi.special/unwindtest.cc: Likewise.
193 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
195 * testsuite/libffi.call/cls_16byte.c: Likewise.
196 * testsuite/libffi.call/cls_5byte.c: Likewise.
198 2004-08-23 David Daney <daney@avtrex.com>
201 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
202 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
203 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
204 parameters and return types.
205 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
206 (ffi_prep_closure): Ditto.
207 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
208 alignment calculations.
209 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
210 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
212 2004-08-14 Casey Marshall <csm@gnu.org>
214 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
215 contain `FFI_TYPE_UINT64' as return type for any 64-bit
216 integer (O32 ABI only).
217 (ffi_prep_closure): new function.
218 (ffi_closure_mips_inner_O32): new function.
219 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
220 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
221 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
222 64 bit integers correctly.
223 (ffi_closure_O32): new function.
224 Added DWARF-2 unwind info for both functions.
226 2004-08-10 Andrew Haley <aph@redhat.com>
228 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
230 2004-08-01 Robert Millan <robertmh@gnu.org>
232 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
233 * configure: Regenerate.
235 2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
237 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
238 and mmap() explicitly instead of relying on preset autoconf cache
240 * aclocal.m4: Regenerate.
241 * configure: Regenerate.
243 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
245 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
246 (ffi_check_float_struct): Remove unused prototype.
248 2004-06-30 Geoffrey Keating <geoffk@apple.com>
250 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
251 character on Darwin, use '\n\t' instead.
253 2004-06-26 Matthias Klose <doko@debian.org>
255 * libtool-version: Fix typo in revision/age.
257 2004-06-17 Matthias Klose <doko@debian.org>
259 * libtool-version: New.
260 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
261 * Makefile.in: Regenerate.
263 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
265 * Makefile.am: Remove useless multilib rules.
266 * Makefile.in: Regenerate.
267 * aclocal.m4: Regenerate with automake 1.8.5.
268 * configure.ac: Remove useless multilib configury.
269 * configure: Regenerate.
271 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
273 * .cvsignore: New file.
275 2004-06-10 Jakub Jelinek <jakub@redhat.com>
277 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
279 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
282 2004-06-06 Sean McNeil <sean@mcneil.com>
284 * configure.ac: Add x86_64-*-freebsd* support.
285 * configure: Regenerate.
287 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
290 * configure.ac: Test for existence of mmap and sys/mman.h before
291 checking blacklist. Fix suggested by Jim Wilson.
292 * configure: Regenerate.
294 2004-04-26 Matt Austern <austern@apple.com>
296 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
298 * src/powerpc/darwin_closure.S: Likewise.
300 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
302 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
303 error. Reported by Thomas Heller <theller@python.net>.
304 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
305 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
307 2004-03-20 Matthias Klose <doko@debian.org>
309 * src/pa/linux.S: Fix typo.
311 2004-03-19 Matthias Klose <doko@debian.org>
313 * Makefile.am: Update.
314 * Makefile.in: Regenerate.
315 * src/pa/ffi.h.in: Remove.
316 * src/pa/ffitarget.h: New file.
318 2004-02-10 Randolph Chung <tausq@debian.org>
320 * Makefile.am: Add PA support.
321 * Makefile.in: Regenerate.
322 * include/Makefile.in: Regenerate.
323 * configure.ac: Add PA target.
324 * configure: Regenerate.
325 * src/pa/ffi.c: New file.
326 * src/pa/ffi.h.in: Add PA support.
327 * src/pa/linux.S: New file.
328 * prep_cif.c: Add PA support.
330 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
332 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
334 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
335 with ecif->cif->flags.
336 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
338 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
339 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
340 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
341 sc_retstruct2b): Add for 1 or 2-bytes struct case.
343 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
345 * configure.in: Rename file to ...
346 * configure.ac: ... this.
347 * fficonfig.h.in: Regenerate.
348 * Makefile.in: Regenerate.
349 * include/Makefile.in: Regenerate.
350 * testsuite/Makefile.in: Regenerate.
352 2004-03-12 Matt Austern <austern@apple.com>
354 * src/powerpc/darwin.S: Fix EH information so it corresponds to
355 changes in EH format resulting from addition of linkonce support.
356 * src/powerpc/darwin_closure.S: Likewise.
358 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
359 Paolo Bonzini <bonzini@gnu.org>
361 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
362 Remove VPATH. Remove rules for object files. Remove multilib support.
364 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
365 (AC_PREREQ): Bump version to 2.59.
366 (AC_INIT): Fill with version info and bug address.
367 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
368 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
369 De-precious CC so that the right flags are passed down to multilibs.
370 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
371 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
372 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
373 * configure: Rebuilt.
374 * aclocal.m4: Likewise.
375 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
376 * fficonfig.h.in: Likewise.
378 2004-03-11 Andreas Schwab <schwab@suse.de>
380 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
381 arguments from fp registers only for the first 8 parameter slots.
382 Don't convert a float parameter when passed in memory.
384 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
386 * configure: Regenerate for config/accross.m4 correction.
388 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
390 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
391 ecif->cif->bytes to bytes.
392 (ffi_prep_cif_machdep): Add braces around nested if statement.
394 2004-02-09 Alan Modra <amodra@bigpond.net.au>
396 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
398 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
399 (ffi_closure_helper_LINUX64): Fix typo.
400 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
402 * testsuite/libffi.call/float.c: Likewise.
403 * testsuite/libffi.call/float2.c: Likewise.
405 2004-02-08 Alan Modra <amodra@bigpond.net.au>
407 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
408 long double function return and long double arg handling.
409 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
410 Use "end_pfr" instead of "nf". Correct long double handling.
412 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
414 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
415 space for long double return value. Adjust stack frame and offsets.
416 Load f2 long double return.
418 2004-02-07 Alan Modra <amodra@bigpond.net.au>
420 * src/types.c: Use 16 byte long double for POWERPC64.
422 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
424 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
425 when the structure return address is passed in %o0.
426 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
427 (ffi_v9_layout_struct): Align the field following a nested structure
428 on a word boundary. Use memmove instead of memcpy.
429 (ffi_call): Update call to ffi_V9_return_struct.
430 (ffi_prep_closure): Define 'ctx' only for V8.
431 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
432 and ffi_closure_sparc_inner_v9.
433 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
434 Always skip the structure return address. For structures and long
435 doubles, copy the argument directly.
436 (ffi_closure_sparc_inner_v9): Skip the structure return address only
437 if required. Shift the maximum floating-point slot accordingly. For
438 big structures, copy the argument directly; otherwise, left-justify the
439 argument and call ffi_v9_layout_struct to lay out the structure on
441 * src/sparc/v8.S: Undef STACKFRAME before defining it.
442 (ffi_closure_v8): Pass the structure return address. Update call to
443 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
444 Skip the 'unimp' insn when returning long doubles and structures.
445 * src/sparc/v9.S: Undef STACKFRAME before defining it.
446 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
447 FFI_TYPE_INT handling. Load structures both in integers and
448 floating-point registers on return.
449 * README: Update status of the SPARC port.
451 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
453 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
455 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
457 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
459 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
460 value as of type ffi_arg, not unsigned int.
462 2004-01-21 Michael Ritzert <ritzert@t-online.de>
464 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
467 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
469 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
472 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
474 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
477 2003-12-10 Richard Henderson <rth@redhat.com>
479 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
480 size_t instead of int.
482 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
484 * testsuite/libffi.call/many_win32.c: Include <float.h>.
485 * testsuite/libffi.call/many_win32.c (main): Replace variable
486 int i with unsigned long ul.
488 * testsuite/libffi.call/cls_align_uint64.c: New test case.
489 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
490 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
491 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
492 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
493 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
494 * testsuite/libffi.call/cls_align_float.c: Likewise.
495 * testsuite/libffi.call/cls_align_double.c: Likewise.
496 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
497 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
499 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
502 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
503 Align arguments to 32 bits.
505 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
508 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
509 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
510 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
511 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
512 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
513 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
515 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
517 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
519 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
520 * testsuite/libffi.special/ffitestcxx.h: Likewise.
522 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
524 * Makefile.in: Rebuilt.
525 * configure: Likewise.
526 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
529 2003-11-21 Andreas Jaeger <aj@suse.de>
530 Andreas Tobler <a.tobler@schweiz.ch>
532 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
533 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
534 * Makefile.in: Rebuilt.
535 * aclocal.m4: Likewise.
536 * configure: Likewise.
537 * fficonfig.h.in: Likewise.
538 * testsuite/lib/libffi-dg.exp: Add include dir.
539 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
540 * testsuite/libffi.special/ffitestcxx.h: Likewise.
541 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
542 for ffi_closure if available.
543 * testsuite/libffi.call/closure_fn1.c: Likewise.
544 * testsuite/libffi.call/closure_fn2.c: Likewise.
545 * testsuite/libffi.call/closure_fn3.c: Likewise.
546 * testsuite/libffi.call/closure_fn4.c: Likewise.
547 * testsuite/libffi.call/closure_fn5.c: Likewise.
548 * testsuite/libffi.call/cls_12byte.c: Likewise.
549 * testsuite/libffi.call/cls_16byte.c: Likewise.
550 * testsuite/libffi.call/cls_18byte.c: Likewise.
551 * testsuite/libffi.call/cls_19byte.c: Likewise.
552 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
553 * testsuite/libffi.call/cls_20byte.c: Likewise.
554 * testsuite/libffi.call/cls_20byte1.c: Likewise.
555 * testsuite/libffi.call/cls_24byte.c: Likewise.
556 * testsuite/libffi.call/cls_2byte.c: Likewise.
557 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
558 * testsuite/libffi.call/cls_3byte1.c: Likewise.
559 * testsuite/libffi.call/cls_3byte2.c: Likewise.
560 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
561 * testsuite/libffi.call/cls_4byte.c: Likewise.
562 * testsuite/libffi.call/cls_5byte.c: Likewise.
563 * testsuite/libffi.call/cls_64byte.c: Likewise.
564 * testsuite/libffi.call/cls_6byte.c: Likewise.
565 * testsuite/libffi.call/cls_7byte.c: Likewise.
566 * testsuite/libffi.call/cls_8byte.c: Likewise.
567 * testsuite/libffi.call/cls_9byte1.c: Likewise.
568 * testsuite/libffi.call/cls_9byte2.c: Likewise.
569 * testsuite/libffi.call/cls_double.c: Likewise.
570 * testsuite/libffi.call/cls_float.c: Likewise.
571 * testsuite/libffi.call/cls_schar.c: Likewise.
572 * testsuite/libffi.call/cls_sint.c: Likewise.
573 * testsuite/libffi.call/cls_sshort.c: Likewise.
574 * testsuite/libffi.call/cls_uchar.c: Likewise.
575 * testsuite/libffi.call/cls_uint.c: Likewise.
576 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
577 * testsuite/libffi.call/cls_ushort.c: Likewise.
578 * testsuite/libffi.call/nested_struct.c: Likewise.
579 * testsuite/libffi.call/nested_struct1.c: Likewise.
580 * testsuite/libffi.call/nested_struct2.c: Likewise.
581 * testsuite/libffi.call/nested_struct3.c: Likewise.
582 * testsuite/libffi.call/problem1.c: Likewise.
583 * testsuite/libffi.special/unwindtest.cc: Likewise.
585 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
587 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
589 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
591 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
592 Add -lgcc_s to additional flags.
594 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
596 * configure.in, include/Makefile.am: PR libgcj/11147, install
597 the ffitarget.h header file in a gcc versioned and target
599 * configure: Regenerated.
600 * Makefile.in, include/Makefile.in: Likewise.
601 * testsuite/Makefile.in: Likewise.
603 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
605 * testsuite/libffi.call/closure_fn0.c: Print result and check
606 with dg-output to make debugging easier.
607 * testsuite/libffi.call/closure_fn1.c: Likewise.
608 * testsuite/libffi.call/closure_fn2.c: Likewise.
609 * testsuite/libffi.call/closure_fn3.c: Likewise.
610 * testsuite/libffi.call/closure_fn4.c: Likewise.
611 * testsuite/libffi.call/closure_fn5.c: Likewise.
612 * testsuite/libffi.call/cls_12byte.c: Likewise.
613 * testsuite/libffi.call/cls_16byte.c: Likewise.
614 * testsuite/libffi.call/cls_18byte.c: Likewise.
615 * testsuite/libffi.call/cls_19byte.c: Likewise.
616 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
617 * testsuite/libffi.call/cls_20byte.c: Likewise.
618 * testsuite/libffi.call/cls_20byte1.c: Likewise.
619 * testsuite/libffi.call/cls_24byte.c: Likewise.
620 * testsuite/libffi.call/cls_2byte.c: Likewise.
621 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
622 * testsuite/libffi.call/cls_3byte1.c: Likewise.
623 * testsuite/libffi.call/cls_3byte2.c: Likewise.
624 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
625 * testsuite/libffi.call/cls_4byte.c: Likewise.
626 * testsuite/libffi.call/cls_5byte.c: Likewise.
627 * testsuite/libffi.call/cls_64byte.c: Likewise.
628 * testsuite/libffi.call/cls_6byte.c: Likewise.
629 * testsuite/libffi.call/cls_7byte.c: Likewise.
630 * testsuite/libffi.call/cls_8byte.c: Likewise.
631 * testsuite/libffi.call/cls_9byte1.c: Likewise.
632 * testsuite/libffi.call/cls_9byte2.c: Likewise.
633 * testsuite/libffi.call/cls_double.c: Likewise.
634 * testsuite/libffi.call/cls_float.c: Likewise.
635 * testsuite/libffi.call/cls_schar.c: Likewise.
636 * testsuite/libffi.call/cls_sint.c: Likewise.
637 * testsuite/libffi.call/cls_sshort.c: Likewise.
638 * testsuite/libffi.call/cls_uchar.c: Likewise.
639 * testsuite/libffi.call/cls_uint.c: Likewise.
640 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
641 * testsuite/libffi.call/cls_ushort.c: Likewise.
642 * testsuite/libffi.call/problem1.c: Likewise.
644 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
647 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
649 * testsuite/libffi.call/cls_9byte2.c: New test case.
650 * testsuite/libffi.call/cls_9byte1.c: Likewise.
651 * testsuite/libffi.call/cls_64byte.c: Likewise.
652 * testsuite/libffi.call/cls_20byte1.c: Likewise.
653 * testsuite/libffi.call/cls_19byte.c: Likewise.
654 * testsuite/libffi.call/cls_18byte.c: Likewise.
655 * testsuite/libffi.call/closure_fn4.c: Likewise.
656 * testsuite/libffi.call/closure_fn5.c: Likewise.
657 * testsuite/libffi.call/cls_schar.c: Likewise.
658 * testsuite/libffi.call/cls_sint.c: Likewise.
659 * testsuite/libffi.call/cls_sshort.c: Likewise.
660 * testsuite/libffi.call/nested_struct2.c: Likewise.
661 * testsuite/libffi.call/nested_struct3.c: Likewise.
663 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
665 * testsuite/libffi.call/cls_double.c: Do a check on the result.
666 * testsuite/libffi.call/cls_uchar.c: Likewise.
667 * testsuite/libffi.call/cls_uint.c: Likewise.
668 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
669 * testsuite/libffi.call/cls_ushort.c: Likewise.
670 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
672 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
674 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
677 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
679 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
680 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
682 2003-10-22 David Daney <ddaney@avtrex.com>
684 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
685 __attribute__((__mode__(__SI__))) and friends.
687 2003-10-22 Andreas Schwab <schwab@suse.de>
689 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
691 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
693 * configure.in: AC_LINK_FILES(ffitarget.h).
694 * configure: Regenerate.
695 * Makefile.in: Likewise.
696 * include/Makefile.in: Likewise.
697 * testsuite/Makefile.in: Likewise.
698 * fficonfig.h.in: Likewise.
700 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
701 Richard Henderson <rth@redhat.com>
703 Avoid that ffi.h includes fficonfig.h.
705 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
706 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
707 (TARGET_SRC_MIPS_SGI): Removed.
708 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
710 (CLEANFILES): Removed.
711 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
713 * acconfig.h: Removed.
714 * configure.in: Compute sizeofs only for double and long double.
715 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
716 into AC_DEFINE instead of using acconfig.h. Create
717 include/ffitarget.h instead of include/fficonfig.h. Rename
718 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
719 AC_DEFINE EH_FRAME_FLAGS.
720 * include/Makefile.am (DISTCLEANFILES): New automake macro.
721 (hack_DATA): Add ffitarget.h.
722 * include/ffi.h.in: Remove all system specific definitions.
723 Declare raw API even if it is not installed, why bother?
724 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
725 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
726 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
727 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
728 * include/ffi_common.h (bool): Do not define.
729 (ffi_assert): Accept failed assertion.
730 (ffi_type_test): Return void and accept file/line.
731 (FFI_ASSERT): Pass stringized failed assertion.
732 (FFI_ASSERT_AT): New macro.
733 (FFI_ASSERT_VALID_TYPE): New macro.
734 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
735 UINT64, SINT64): Define here with gcc's __attribute__ macro
737 (FLOAT32, ALIGN): Define here instead of in ffi.h
738 * include/ffi-mips.h: Removed. Its content moved to
739 src/mips/ffitarget.h after separating assembly and C sections.
740 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
741 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
742 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
743 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
744 SIZEOF_ARG -> FFI_SIZEOF_ARG.
745 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
746 * src/debug.c (ffi_assert): Accept stringized failed assertion.
747 (ffi_type_test): Rewritten.
748 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
749 FFI_ASSERT_VALID_TYPE.
750 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
751 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
752 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
753 src/s390/ffitarget.h, src/sh/ffitarget.h,
754 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
755 src/x86/ffitarget.h: New files.
756 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
757 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
758 src/powerpc/aix.S, src/powerpc/darwin.S,
759 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
760 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
761 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
762 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
763 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
766 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
768 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
769 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
771 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
773 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
774 Used when FFI_DEBUG = 1.
776 2003-10-14 Alan Modra <amodra@bigpond.net.au>
778 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
781 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
783 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
784 FFI_MIPS_O32 for O32 ABI.
786 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
788 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
789 SPARC64. Cleanup whitespaces.
791 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
793 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
794 strongarm, xscale. Cleanup whitespaces.
795 * testsuite/libffi.call/closure_fn1.c: Likewise.
796 * testsuite/libffi.call/closure_fn2.c: Likewise.
797 * testsuite/libffi.call/closure_fn3.c: Likewise.
798 * testsuite/libffi.call/cls_12byte.c: Likewise.
799 * testsuite/libffi.call/cls_16byte.c: Likewise.
800 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
801 * testsuite/libffi.call/cls_20byte.c: Likewise.
802 * testsuite/libffi.call/cls_24byte.c: Likewise.
803 * testsuite/libffi.call/cls_2byte.c: Likewise.
804 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
805 * testsuite/libffi.call/cls_3byte1.c: Likewise.
806 * testsuite/libffi.call/cls_3byte2.c: Likewise.
807 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
808 * testsuite/libffi.call/cls_4byte.c: Likewise.
809 * testsuite/libffi.call/cls_5byte.c: Likewise.
810 * testsuite/libffi.call/cls_6byte.c: Likewise.
811 * testsuite/libffi.call/cls_7byte.c: Likewise.
812 * testsuite/libffi.call/cls_8byte.c: Likewise.
813 * testsuite/libffi.call/cls_double.c: Likewise.
814 * testsuite/libffi.call/cls_float.c: Likewise.
815 * testsuite/libffi.call/cls_uchar.c: Likewise.
816 * testsuite/libffi.call/cls_uint.c: Likewise.
817 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
818 * testsuite/libffi.call/cls_ushort.c: Likewise.
819 * testsuite/libffi.call/nested_struct.c: Likewise.
820 * testsuite/libffi.call/nested_struct1.c: Likewise.
821 * testsuite/libffi.call/problem1.c: Likewise.
822 * testsuite/libffi.special/unwindtest.cc: Likewise.
823 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
825 2003-09-18 David Edelsohn <edelsohn@gnu.org>
827 * src/powerpc/aix.S: Cleanup whitespaces.
828 * src/powerpc/aix_closure.S: Likewise.
830 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
832 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
833 * src/powerpc/darwin_closure.S: Likewise.
834 * src/powerpc/ffi_darwin.c: Likewise.
836 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
837 David Edelsohn <edelsohn@gnu.org>
839 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
840 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
842 * src/powerpc/darwin_closure.S: Likewise.
843 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
844 according to the Darwin/AIX ABI.
845 (ffi_prep_cif_machdep): Likewise.
846 (ffi_closure_helper_DARWIN): Likewise.
847 Remove the outgoing parameter stack logic. Simplify the evaluation
848 of the different CASE types.
849 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
850 statement in the trampoline code.
852 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
854 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
855 for the register size.
856 (ffi_closure_helper_SYSV): Handle the structure return value
858 (ffi_closure_helper_SYSV): Return the appropriate type when
859 the registers are used for the structure return value.
860 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
861 the 64-bit return value. Update copyright years.
863 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
865 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
866 srcdir for ffi_mips.h.
868 2003-09-12 Alan Modra <amodra@bigpond.net.au>
870 * src/prep_cif.c (initialize_aggregate): Include tail padding in
872 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
873 placement of float result.
874 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
875 cast of "resp" for big-endian 64 bit machines.
877 2003-09-11 Alan Modra <amodra@bigpond.net.au>
879 * src/types.c (double, longdouble): Merge identical SH and ARM
880 typedefs, and add POWERPC64.
881 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
882 struct split over gpr and rest.
883 (ffi_prep_cif_machdep): Correct intarg_count for structures.
884 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
886 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
888 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
891 2003-09-09 Alan Modra <amodra@bigpond.net.au>
893 * configure: Regenerate.
895 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
897 * Makefile.am: Remove build rules for ffitest.
898 * Makefile.in: Rebuilt.
900 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
902 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
903 about implicit declaration of abort().
905 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
907 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
908 * Makefile.in: Rebuilt.
909 * configure.in: Add dejagnu test framework.
910 * configure: Rebuilt.
912 * testsuite/Makefile.am: New file.
913 * testsuite/Makefile.in: Built
914 * testsuite/lib/libffi-dg.exp: New file.
915 * testsuite/config/default.exp: Likewise.
916 * testsuite/libffi.call/call.exp: Likewise.
917 * testsuite/libffi.call/ffitest.h: Likewise.
918 * testsuite/libffi.call/closure_fn0.c: Likewise.
919 * testsuite/libffi.call/closure_fn1.c: Likewise.
920 * testsuite/libffi.call/closure_fn2.c: Likewise.
921 * testsuite/libffi.call/closure_fn3.c: Likewise.
922 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
923 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
924 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
925 * testsuite/libffi.call/cls_2byte.c: Likewise.
926 * testsuite/libffi.call/cls_3byte1.c: Likewise.
927 * testsuite/libffi.call/cls_3byte2.c: Likewise.
928 * testsuite/libffi.call/cls_4byte.c: Likewise.
929 * testsuite/libffi.call/cls_5byte.c: Likewise.
930 * testsuite/libffi.call/cls_6byte.c: Likewise.
931 * testsuite/libffi.call/cls_7byte.c: Likewise.
932 * testsuite/libffi.call/cls_8byte.c: Likewise.
933 * testsuite/libffi.call/cls_12byte.c: Likewise.
934 * testsuite/libffi.call/cls_16byte.c: Likewise.
935 * testsuite/libffi.call/cls_20byte.c: Likewise.
936 * testsuite/libffi.call/cls_24byte.c: Likewise.
937 * testsuite/libffi.call/cls_double.c: Likewise.
938 * testsuite/libffi.call/cls_float.c: Likewise.
939 * testsuite/libffi.call/cls_uchar.c: Likewise.
940 * testsuite/libffi.call/cls_uint.c: Likewise.
941 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
942 * testsuite/libffi.call/cls_ushort.c: Likewise.
943 * testsuite/libffi.call/float.c: Likewise.
944 * testsuite/libffi.call/float1.c: Likewise.
945 * testsuite/libffi.call/float2.c: Likewise.
946 * testsuite/libffi.call/many.c: Likewise.
947 * testsuite/libffi.call/many_win32.c: Likewise.
948 * testsuite/libffi.call/nested_struct.c: Likewise.
949 * testsuite/libffi.call/nested_struct1.c: Likewise.
950 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
951 * testsuite/libffi.call/problem1.c: Likewise.
952 * testsuite/libffi.call/promotion.c: Likewise.
953 * testsuite/libffi.call/return_ll.c: Likewise.
954 * testsuite/libffi.call/return_sc.c: Likewise.
955 * testsuite/libffi.call/return_uc.c: Likewise.
956 * testsuite/libffi.call/strlen.c: Likewise.
957 * testsuite/libffi.call/strlen_win32.c: Likewise.
958 * testsuite/libffi.call/struct1.c: Likewise.
959 * testsuite/libffi.call/struct2.c: Likewise.
960 * testsuite/libffi.call/struct3.c: Likewise.
961 * testsuite/libffi.call/struct4.c: Likewise.
962 * testsuite/libffi.call/struct5.c: Likewise.
963 * testsuite/libffi.call/struct6.c: Likewise.
964 * testsuite/libffi.call/struct7.c: Likewise.
965 * testsuite/libffi.call/struct8.c: Likewise.
966 * testsuite/libffi.call/struct9.c: Likewise.
967 * testsuite/libffi.special/special.exp: New file.
968 * testsuite/libffi.special/ffitestcxx.h: Likewise.
969 * testsuite/libffi.special/unwindtest.cc: Likewise.
972 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
974 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
977 2003-08-02 Alan Modra <amodra@bigpond.net.au>
979 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
981 (ffi_closure_helper_LINUX64): Likewise.
982 * src/powerpc/linux64.S: Remove code writing to parm save area.
983 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
984 address in lr from ffi_closure_helper_LINUX64 call to calculate
985 table address. Optimize function tail.
987 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
989 * src/sparc/ffi.c: Handle all floating point registers.
990 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
992 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
994 * README: Note that libffi is not part of GCC. Update the project
997 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
999 * src/powerpc/ppc_closure.S: Include ffi.h.
1001 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1003 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
1004 Use C style comments.
1006 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1008 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
1009 * Makefile.in: Regenerate.
1010 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
1011 * configure: Regenerate.
1012 * include/ffi.h.in: Add SHmedia support.
1013 * src/sh64/ffi.c: New file.
1014 * src/sh64/sysv.S: New file.
1016 2003-05-16 Jakub Jelinek <jakub@redhat.com>
1018 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
1019 should be read-only.
1020 * configure: Rebuilt.
1021 * fficonfig.h.in: Rebuilt.
1022 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
1023 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
1024 * src/powerpc/linux64.S: Likewise.
1025 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
1026 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
1027 if -fpic/-fPIC/-mrelocatable.
1028 * src/powerpc/powerpc_closure.S: Likewise.
1029 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
1030 #write in .eh_frame flags.
1031 * src/sparc/v9.S: Likewise.
1032 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
1033 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
1034 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
1036 2003-05-07 Jeff Sturm <jsturm@one-point.com>
1038 Fixes PR bootstrap/10656
1039 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
1040 support for .register pseudo-op.
1041 * src/sparc/v8.S: Use it.
1042 * fficonfig.h.in: Rebuilt.
1043 * configure: Rebuilt.
1045 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1047 * include/ffi.h.in (POWERPC64): Define if 64-bit.
1048 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
1049 Make it the default on POWERPC64.
1050 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
1051 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
1052 * configure: Rebuilt.
1053 * src/powerpc/ffi.c (hidden): Define.
1054 (ffi_prep_args_SYSV): Renamed from
1055 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
1056 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
1057 ASM_NEEDS_REGISTERS64): New.
1058 (ffi_prep_args64): New function.
1059 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
1060 (ffi_call): Likewise.
1061 (ffi_prep_closure): Likewise.
1062 (flush_icache): Surround by #ifndef POWERPC64.
1063 (ffi_dblfl): New union type.
1064 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
1065 (ffi_closure_helper_LINUX64): New function.
1066 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
1068 * src/powerpc/sysv.S: Likewise.
1069 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
1070 * src/powerpc/linux64.S: New file.
1071 * src/powerpc/linux64_closure.S: New file.
1072 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
1073 src/powerpc/linux64_closure.S.
1074 (TARGET_SRC_POWERPC): Likewise.
1076 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
1077 closure_test_fn3): Fix result printing on big-endian 64-bit
1079 (main): Print tst2_arg instead of uninitialized tst2_result.
1081 * src/ffitest.c (main): Hide what closure pointer really points to
1084 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
1086 * configure.in (arm-*-netbsdelf*): Add configuration.
1087 (configure): Regenerated.
1089 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
1091 * include/Makefile.in: Regenerate.
1093 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1095 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
1097 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
1098 Receive closure pointer through parameter, read args using
1099 __builtin_dwarf_cfa.
1100 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
1102 2003-03-12 Andreas Schwab <schwab@suse.de>
1104 * configure.in: Avoid trailing /. in toolexeclibdir.
1105 * configure: Rebuilt.
1107 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
1109 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
1111 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
1113 * libffi/src/powerpc/darwin_closure.S:
1114 Fix alignement bug, allocate 8 bytes for the result.
1115 * libffi/src/powerpc/aix_closure.S:
1117 * libffi/src/powerpc/ffi_darwin.c:
1118 Update stackframe description for aix/darwin_closure.S.
1120 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1122 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
1125 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
1126 Andreas Schwab <schwab@suse.de>
1128 * configure.in: Adjust command to source config-ml.in to account
1129 for changes to the libffi_basedir definition.
1130 (libffi_basedir): Remove ${srcdir} from value and include trailing
1133 * configure: Regenerate.
1135 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1137 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
1139 2003-01-28 Andrew Haley <aph@redhat.com>
1141 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
1142 * src/x86/ffi64.c (ffi_prep_closure): New.
1143 (ffi_closure_UNIX64_inner): New.
1144 * src/x86/unix64.S (ffi_closure_UNIX64): New.
1146 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1148 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
1149 Remove USE_LIBDIR conditional.
1150 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
1151 * Makefile.in, configure: Rebuilt.
1153 2003-01027 David Edelsohn <edelsohn@gnu.org>
1155 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
1156 * Makefile.in: Regenerate.
1158 2003-01-22 Andrew Haley <aph@redhat.com>
1160 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
1163 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1165 * src/powerpc/darwin.S: Add unwind info.
1166 * src/powerpc/darwin_closure.S: Likewise.
1168 2003-01-14 Andrew Haley <aph@redhat.com>
1170 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
1171 (ffi_prep_cif_machdep): Likewise.
1172 * src/x86/unix64.S: Add unwind info.
1174 2003-01-14 Andreas Jaeger <aj@suse.de>
1176 * src/ffitest.c (main): Only use ffi_closures if those are
1179 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
1181 * libffi/src/ffitest.c
1182 add closure testcases
1184 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
1186 * libffi/src/powerpc/ffi.c
1187 fix alignment bug for float (4 byte aligned iso 8 byte)
1189 2003-01-09 Geoffrey Keating <geoffk@apple.com>
1191 * src/powerpc/ffi_darwin.c: Remove RCS version string.
1192 * src/powerpc/darwin.S: Remove RCS version string.
1194 2003-01-03 Jeff Sturm <jsturm@one-point.com>
1196 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
1197 * src/ffitest.c (main): Use static storage for closure.
1198 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
1199 * src/sparc/v8.S (ffi_closure_v8): New.
1200 * src/sparc/v9.S (ffi_closure_v9): New.
1202 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
1204 * include/ffi.h.in: Added FFI_STDCALL ffi_type
1205 enumeration for X86_WIN32.
1206 * src/x86/win32.S: Added ffi_call_STDCALL function
1208 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
1209 switch cases for recognising FFI_STDCALL and
1210 calling ffi_call_STDCALL if target is X86_WIN32.
1211 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
1212 stdcall versions of the "my_strlen" and "many"
1213 test functions (for X86_WIN32).
1214 Added test cases to test stdcall invocation using
1217 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
1219 * src/sh/sysv.S: Add DWARF2 unwind info.
1221 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
1223 * src/s390/sysv.S (.eh_frame section): Make section read-only.
1225 2002-11-26 Jim Wilson <wilson@redhat.com>
1227 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
1229 2002-11-23 H.J. Lu <hjl@gnu.org>
1231 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
1232 Include ../config/accross.m4.
1233 * aclocal.m4; Rebuild.
1234 * configure: Likewise.
1236 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
1238 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
1240 2002-11-11 DJ Delorie <dj@redhat.com>
1242 * configure.in: Look for common files in the right place.
1244 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1246 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
1247 raw data as _Jv_word values, not ffi_raw.
1248 (ffi_java_ptrarray_to_raw): Likewise.
1249 (ffi_java_rvalue_to_raw): New function.
1250 (ffi_java_raw_call): Call it.
1251 (ffi_java_raw_to_rvalue): New function.
1252 (ffi_java_translate_args): Call it.
1253 * src/ffitest.c (closure_test_fn): Interpret return value
1254 as ffi_arg, not int.
1255 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
1256 FFI_TYPE_POINTER case.
1257 (ffi_closure_helper_SYSV): Likewise. Also, assume return
1258 values extended to word size.
1260 2002-10-02 Andreas Jaeger <aj@suse.de>
1262 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
1264 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
1266 * include/ffi.h.in: Fix i386 win32 compilation.
1268 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
1270 * configure.in: Add s390x-*-linux-* target.
1271 * configure: Regenerate.
1272 * include/ffi.h.in: Define S390X for s390x targets.
1273 (FFI_CLOSURES): Define for s390/s390x.
1274 (FFI_TRAMPOLINE_SIZE): Likewise.
1275 (FFI_NATIVE_RAW_API): Likewise.
1276 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
1277 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
1278 * src/s390/ffi.c: Major rework of existing code. Add support for
1279 s390x targets. Add closure support.
1280 * src/s390/sysv.S: Likewise.
1282 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
1284 * src/arm/sysv.S: Fix typo.
1286 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
1288 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
1289 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
1290 (ffi_call_SYSV): Handle soft-float.
1292 2002-09-27 Bo Thorsen <bo@suse.de>
1294 * include/ffi.h.in: Fix multilib x86-64 support.
1296 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1298 * Makefile.am (all-multi): Fix multilib parallel build.
1300 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
1302 * configure.in (sh[34]*-*-linux*): Add brackets.
1303 * configure: Regenerate.
1305 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
1307 * Makefile.am: Add SH support.
1308 * Makefile.in: Regenerate.
1309 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
1310 * configure: Regenerate.
1311 * include/ffi.h.in: Add SH support.
1312 * src/sh/ffi.c: New file.
1313 * src/sh/sysv.S: New file.
1314 * src/types.c: Add SH support.
1316 2002-07-16 Bo Thorsen <bo@suse.de>
1318 * src/x86/ffi64.c: New file that adds x86-64 support.
1319 * src/x86/unix64.S: New file that handles argument setup for
1321 * src/x86/sysv.S: Don't use this on x86-64.
1322 * src/x86/ffi.c: Don't use this on x86-64.
1324 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
1326 * src/ffitest.c (struct6): New test that tests a special case in
1328 (struct7): Likewise.
1329 (struct8): Likewise.
1330 (struct9): Likewise.
1331 (closure_test_fn): Silence warning about this when it's not used.
1332 (main): Add the new tests.
1333 (main): Fix a couple of wrong casts and silence some compiler warnings.
1334 * include/ffi.h.in: Add x86-64 ABI definition.
1335 * fficonfig.h.in: Regenerate.
1336 * Makefile.am: Add x86-64 support.
1337 * configure.in: Likewise.
1338 * Makefile.in: Regenerate.
1339 * configure: Likewise.
1341 2002-06-24 Bo Thorsen <bo@suse.de>
1343 * src/types.c: Merge settings for similar architectures.
1344 Add x86-64 sizes and alignments.
1346 2002-06-23 Bo Thorsen <bo@suse.de>
1348 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
1349 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
1350 * src/mips/ffi.c (ffi_prep_args): Likewise.
1351 * src/m68k/ffi.c (ffi_prep_args): Likewise.
1353 2002-07-18 H.J. Lu (hjl@gnu.org)
1355 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
1356 (libffi_la_SOURCES): Support MIPS_LINUX.
1357 (libffi_convenience_la_SOURCES): Likewise.
1358 * Makefile.in: Regenerated.
1360 * configure.in (mips64*-*): Skip.
1361 (mips*-*-linux*): New.
1362 * configure: Regenerated.
1364 * src/mips/ffi.c: Include <sgidefs.h>.
1366 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1368 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
1370 2002-05-27 Roger Sayle <roger@eyesopen.com>
1372 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
1374 2002-05-27 Bo Thorsen <bo@suse.de>
1376 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
1379 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
1381 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
1382 beginning of function (for older apple cc).
1384 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1386 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1387 script entry, and set LD to it when configuring multilibs.
1388 * configure: Rebuilt.
1390 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1392 * configure.in (sparc64-*-netbsd*): Add target.
1393 (sparc-*-netbsdelf*): Likewise.
1394 * configure: Regenerate.
1396 2002-04-28 David S. Miller <davem@redhat.com>
1398 * configure.in, configure: Fix SPARC test in previous change.
1400 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
1402 * Makefile.am: Add Linux for S/390 support.
1403 * Makefile.in: Regenerate.
1404 * configure.in: Add Linux for S/390 support.
1405 * configure: Regenerate.
1406 * include/ffi.h.in: Add Linux for S/390 support.
1407 * src/s390/ffi.c: New file from libffi CVS tree.
1408 * src/s390/sysv.S: New file from libffi CVS tree.
1410 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1412 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
1414 * src/sparc/v8.S: Use it.
1415 * src/sparc/v9.S: Likewise.
1416 * fficonfig.h.in: Rebuilt.
1417 * configure: Rebuilt.
1419 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
1421 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1423 * src/ia64/unix.S: Add unwind information. Fix comments.
1424 Save sp in a way that's compatible with unwind info.
1425 (ffi_call_unix): Correctly restore sp in all cases.
1426 * src/ia64/ffi.c: Add, fix comments.
1428 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1430 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1432 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1434 * configure.in (alpha*-*-netbsd*): Add target.
1435 * configure: Regenerate.
1437 2002-04-04 Jeff Sturm <jsturm@one-point.com>
1439 * src/sparc/v8.S: Add unwind info.
1440 * src/sparc/v9.S: Likewise.
1442 2002-03-30 Krister Walfridsson <cato@df.lth.se>
1444 * configure.in: Enable i*86-*-netbsdelf*.
1445 * configure: Rebuilt.
1447 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
1450 * src/mips/n32.s: Delete
1451 * src/mips/o32.s: Delete
1453 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
1455 * configure.in: Enable alpha*-*-freebsd*.
1456 * configure: Rebuilt.
1458 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1460 * Makefile.am: libfficonvenience -> libffi_convenience.
1461 * Makefile.in: Rebuilt.
1463 * Makefile.am: Define ffitest_OBJECTS.
1464 * Makefile.in: Rebuilt.
1466 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
1467 David Edelsohn <edelsohn@gnu.org>
1469 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1470 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1471 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1472 * Makefile.in: Regenerate.
1473 * include/ffi.h.in: Add AIX and Darwin closure definitions.
1474 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1475 (flush_icache, flush_range): New functions.
1476 (ffi_closure_helper_DARWIN): New function.
1477 * src/powerpc/aix_closure.S: New file.
1478 * src/powerpc/darwin_closure.S: New file.
1480 2002-02-24 Jeff Sturm <jsturm@one-point.com>
1482 * include/ffi.h.in: Add typedef for ffi_arg.
1483 * src/ffitest.c (main): Declare rint with ffi_arg.
1485 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
1487 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1488 number of GPRs for floating-point arguments.
1490 2002-01-31 Anthony Green <green@redhat.com>
1492 * configure: Rebuilt.
1493 * configure.in: Replace CHECK_SIZEOF and endian tests with
1494 cross-compiler friendly macros.
1495 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1498 2002-01-18 David Edelsohn <edelsohn@gnu.org>
1500 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1501 * src/powerpc/aix.S (ffi_call_DARWIN): New.
1503 2002-01-17 David Edelsohn <edelsohn@gnu.org>
1505 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1506 (TARGET_SRC_POWERPC_AIX): New.
1507 (POWERPC_AIX): New stanza.
1508 * Makefile.in: Regenerate.
1509 * configure.in: Add AIX case.
1510 * configure: Regenerate.
1511 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1512 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1513 size. Fix "long double" support.
1514 (ffi_call): Add FFI_AIX case.
1515 * src/powerpc/aix.S: New.
1517 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
1519 Implement Darwin PowerPC ABI.
1520 * configure.in: Handle powerpc-*-darwin*.
1521 * Makefile.am: Set source files for POWERPC_DARWIN.
1522 * configure: Rebuilt.
1523 * Makefile.in: Rebuilt.
1524 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1526 * src/powerpc/darwin.S: New file.
1527 * src/powerpc/ffi_darwin.c: New file.
1529 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1531 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1533 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1535 * src/x86/sysv.S: Avoid gas-only .balign directive.
1536 Use C style comments.
1538 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1540 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1541 Fixes PR bootstrap/3563.
1543 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1545 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1547 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1549 * configure.in: Recognize sparc*-sun-* host.
1550 * configure: Regenerate.
1552 2001-06-06 Andrew Haley <aph@redhat.com>
1554 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
1556 2001-06-03 Andrew Haley <aph@redhat.com>
1558 * src/alpha/osf.S: Add unwind info.
1559 * src/powerpc/sysv.S: Add unwind info.
1560 * src/powerpc/ppc_closure.S: Likewise.
1562 2000-05-31 Jeff Sturm <jsturm@one-point.com>
1564 * configure.in: Fix AC_ARG_ENABLE usage.
1565 * configure: Rebuilt.
1567 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1569 * configure.in: Remove warning about beta code.
1570 * configure: Rebuilt.
1572 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
1574 * src/ia64/unix.S: Restore stack pointer when returning from
1576 * src/ia64/ffi.c: Fix typo in comment.
1578 2001-04-18 Jim Wilson <wilson@redhat.com>
1580 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1581 to eliminate RAW DV.
1583 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1585 * Makefile.am: Make a libtool convenience library.
1586 * Makefile.in: Rebuilt.
1588 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
1590 * configure.in: Use different syntax for subdirectory creation.
1591 * configure: Rebuilt.
1593 2001-03-27 Jon Beniston <jon@beniston.com>
1595 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1596 * configure: Rebuilt.
1597 * Makefile.am: Added X86_WIN32 target support.
1598 * Makefile.in: Rebuilt.
1600 * include/ffi.h.in: Added X86_WIN32 target support.
1602 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1603 * src/types.c: Added X86_WIN32 target support.
1605 * src/x86/win32.S: New file. Based on sysv.S, but with EH
1606 stuff removed and made to work with CygWin's gas.
1608 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
1610 * configure.in: Make target subdirectory in build dir.
1611 * Makefile.am: Override suffix based rules to specify correct output
1613 * Makefile.in: Rebuilt.
1614 * configure: Rebuilt.
1616 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1618 * src/powerpc/ppc_closure.S: New file.
1619 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1620 involving long long and register pairs.
1621 (ffi_prep_closure): New function.
1622 (flush_icache): Likewise.
1623 (ffi_closure_helper_SYSV): Likewise.
1624 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1625 (FFI_TRAMPOLINE_SIZE): Likewise.
1626 (FFI_NATIVE_RAW_API): Likewise.
1627 * Makefile.in: Rebuilt.
1628 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1629 (TARGET_SRC_POWERPC): Likewise.
1631 2001-03-19 Tom Tromey <tromey@redhat.com>
1633 * Makefile.in: Rebuilt.
1634 * Makefile.am (ffitest_LDFLAGS): New macro.
1636 2001-03-02 Nick Clifton <nickc@redhat.com>
1638 * include/ffi.h.in: Remove RCS ident string.
1639 * include/ffi_mips.h: Remove RCS ident string.
1640 * src/debug.c: Remove RCS ident string.
1641 * src/ffitest.c: Remove RCS ident string.
1642 * src/prep_cif.c: Remove RCS ident string.
1643 * src/types.c: Remove RCS ident string.
1644 * src/alpha/ffi.c: Remove RCS ident string.
1645 * src/alpha/osf.S: Remove RCS ident string.
1646 * src/arm/ffi.c: Remove RCS ident string.
1647 * src/arm/sysv.S: Remove RCS ident string.
1648 * src/mips/ffi.c: Remove RCS ident string.
1649 * src/mips/n32.S: Remove RCS ident string.
1650 * src/mips/o32.S: Remove RCS ident string.
1651 * src/sparc/ffi.c: Remove RCS ident string.
1652 * src/sparc/v8.S: Remove RCS ident string.
1653 * src/sparc/v9.S: Remove RCS ident string.
1654 * src/x86/ffi.c: Remove RCS ident string.
1655 * src/x86/sysv.S: Remove RCS ident string.
1657 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1659 * include/ffi.h.in: Change sourceware.cygnus.com references to
1662 2000-12-09 Richard Henderson <rth@redhat.com>
1664 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1665 (ffi_closure_osf_inner): Index rather than increment avalue
1666 and arg_types. Give ffi_closure_osf the raw return value type.
1667 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1670 2000-12-07 Richard Henderson <rth@redhat.com>
1672 * src/raw_api.c (ffi_translate_args): Fix typo.
1673 (ffi_prep_closure): Likewise.
1675 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1676 FFI_TRAMPOLINE_SIZE.
1677 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1678 cif->bytes for new ffi_call_osf implementation.
1679 (ffi_prep_args): Absorb into ...
1680 (ffi_call): ... here. Do all stack allocation here and
1681 avoid a callback function.
1682 (ffi_prep_closure, ffi_closure_osf_inner): New.
1683 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1684 (ffi_closure_osf): New.
1686 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1688 * config.guess, config.sub, install-sh: Removed.
1689 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1690 * Makefile.in: Rebuilt.
1692 * acinclude.m4: Include libtool macros from the top level.
1693 * aclocal.m4, configure: Rebuilt.
1695 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1697 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1698 * configure: Rebuilt.
1700 2000-05-11 Scott Bambrough <scottb@netwinder.org>
1702 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1703 memory correctly. Use conditional instructions, not branches where
1706 2000-05-04 Tom Tromey <tromey@cygnus.com>
1708 * configure: Rebuilt.
1709 * configure.in: Match `arm*-*-linux-*'.
1710 From Chris Dornan <cdornan@arm.com>.
1712 2000-04-28 Jakub Jelinek <jakub@redhat.com>
1714 * Makefile.am (SUBDIRS): Define.
1715 (AM_MAKEFLAGS): Likewise.
1716 (Multilib support.): Add section.
1717 * Makefile.in: Rebuilt.
1718 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
1719 New variables. Set for gcc using -print-multi-lib. Export them
1721 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1722 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1724 (extra_compiler_flags_value, extra_compiler_flags): Check these
1725 for extra compiler options which need to be passed down in
1728 2000-04-16 Anthony Green <green@redhat.com>
1730 * configure: Rebuilt.
1731 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1733 2000-04-14 Jakub Jelinek <jakub@redhat.com>
1735 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
1736 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1737 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1738 Replace all void * sizeofs with sizeof(int).
1739 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1740 different than DOUBLE.
1741 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1742 (ffi_prep_args_v9): New function.
1743 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1744 (ffi_V9_return_struct): New function.
1745 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1746 32bit code (not yet cross-arch calls).
1747 * src/sparc/v8.S: Add struct return delay nop.
1749 * src/sparc/v9.S: New file.
1750 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1751 is used on sparc64 only for structures larger than 32 bytes.
1752 Pass by reference for structures is done for structure arguments
1753 larger than 16 bytes.
1754 * src/ffitest.c (main): Use 64bit rint on sparc64.
1755 Run long long tests on sparc.
1756 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1758 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1760 * configure.in (sparc-*-linux*): New supported target.
1761 (sparc64-*-linux*): Likewise.
1762 * configure: Rebuilt.
1763 * Makefile.am: Add v9.S to SPARC files.
1764 * Makefile.in: Likewise.
1765 (LINK): Surround $(CCLD) into double quotes, so that multilib
1766 compiles work correctly.
1768 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
1770 * configure: Rebuilt.
1771 * configure.in: (i*86-*-solaris*): New libffi target. Patch
1772 proposed by Bryce McKinlay.
1774 2000-03-20 Tom Tromey <tromey@cygnus.com>
1776 * Makefile.in: Hand edit for java_raw_api.lo.
1778 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
1780 * config.guess, config.sub: Update from the gcc tree.
1781 Fix for PR libgcj/168.
1783 2000-03-03 Tom Tromey <tromey@cygnus.com>
1785 * Makefile.in: Fixed ia64 by hand.
1787 * configure: Rebuilt.
1788 * configure.in (--enable-multilib): New option.
1789 (libffi_basedir): New subst.
1790 (AC_OUTPUT): Added multilib code.
1792 2000-03-02 Tom Tromey <tromey@cygnus.com>
1794 * Makefile.in: Rebuilt.
1795 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
1798 2000-02-25 Hans Boehm <boehm@acm.org>
1800 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
1802 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
1804 (ffi_prep_raw_closure): Use ffi_translate_args, not
1805 ffi_closure_translate.
1806 * src/java_raw_api.c: New file.
1807 * src/ffitest.c (closure_test_fn): New function.
1808 (main): Define `rint' as long long on IA64. Added new test when
1809 FFI_CLOSURES is defined.
1810 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
1811 (ffi_abi): Recognize IA64.
1812 (ffi_raw): Added `flt' field.
1813 Added "Java raw API" code.
1814 * configure.in: Recognize ia64.
1815 * Makefile.am (TARGET_SRC_IA64): New macro.
1816 (libffi_la_common_SOURCES): Added java_raw_api.c.
1817 (libffi_la_SOURCES): Define in IA64 case.
1819 2000-01-04 Tom Tromey <tromey@cygnus.com>
1821 * Makefile.in: Rebuilt with newer automake.
1823 1999-12-31 Tom Tromey <tromey@cygnus.com>
1825 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
1827 1999-09-01 Tom Tromey <tromey@cygnus.com>
1829 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
1831 * fficonfig.h.in: Rebuilt.
1832 * configure: Rebuilt.
1833 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
1834 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
1835 * acconfig.h: Don't #undef PACKAGE or VERSION.
1837 1999-08-09 Anthony Green <green@cygnus.com>
1839 * include/ffi.h.in: Try to work around messy header problem
1840 with PACKAGE and VERSION.
1842 * configure: Rebuilt.
1843 * configure.in: Change version to 2.00-beta.
1845 * fficonfig.h.in: Rebuilt.
1846 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
1848 * src/x86/ffi.c (ffi_raw_call): Rename.
1850 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
1852 * src/x86/ffi.c (ffi_closure_SYSV): New function.
1853 (ffi_prep_incoming_args_SYSV): Ditto.
1854 (ffi_prep_closure): Ditto.
1855 (ffi_closure_raw_SYSV): Ditto.
1856 (ffi_prep_raw_closure): More ditto.
1857 (ffi_call_raw): Final ditto.
1859 * include/ffi.h.in: Add definitions for closure and raw API.
1861 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
1864 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
1866 * src/raw_api.c: New file.
1868 * include/ffi.h.in (ffi_raw): New type.
1869 (UINT_ARG, SINT_ARG): New defines.
1870 (ffi_closure, ffi_raw_closure): New types.
1871 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
1873 * configure.in: Add check for endianness and sizeof void*.
1875 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
1876 instead of directly.
1878 * configure: Rebuilt.
1880 Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
1882 * configure.in: Add x86 and powerpc BeOS configurations.
1883 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
1885 1999-05-09 Anthony Green <green@cygnus.com>
1887 * configure.in: Add warning about this being beta code.
1888 Remove src/Makefile.am from the picture.
1889 * configure: Rebuilt.
1891 * Makefile.am: Move logic from src/Makefile.am. Add changes
1892 to support libffi as a target library.
1893 * Makefile.in: Rebuilt.
1895 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
1896 Upgraded to new autoconf, automake, libtool.
1900 * LICENSE: Update copyright date.
1902 * src/Makefile.am, src/Makefile.in: Removed.
1904 1998-11-29 Anthony Green <green@cygnus.com>
1906 * include/ChangeLog: Removed.
1907 * src/ChangeLog: Removed.
1908 * src/mips/ChangeLog: Removed.
1909 * src/sparc/ChangeLog: Remboved.
1910 * src/x86/ChangeLog: Removed.
1912 * ChangeLog.v1: Created.
1913 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
1915 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
1916 of jal. Use an absolute encoding for the frame information.
1918 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
1920 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
1921 * acinclude.m4: Delete logic for sincludes.
1922 * aclocal.m4, Makefile.in, configure: Regenerate.
1923 * include/Makefile: Likewise.
1924 * testsuite/Makefile: Likewise.
1926 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1928 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
1929 on a 8-byte boundary.
1930 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
1932 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
1934 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
1935 long long values. Round stack allocation to a multiple of 8 bytes
1936 for ATPCS compatibility.
1937 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
1938 names. Handle returning long long types. Add Thumb and interworking
1939 support. Improve soft-float code.
1941 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
1943 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
1944 (libffi_exit): New function.
1945 (libffi_init): Build the testglue wrapper if needed.
1947 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
1950 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
1952 2004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1954 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
1956 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
1958 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
1959 * testsuite/libffi.call/float3.c: New test case.
1961 2004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
1963 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
1964 the function returning a structure pointed with R2.
1965 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
1966 the structure return value if T bit set. Emit position
1967 independent code and EH data if PIC.
1969 2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1971 * Makefile.am: Add m32r support.
1972 * configure.ac: Likewise.
1973 * Makefile.in: Regenerate.
1974 * confiugre: Regenerate.
1975 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
1976 (uint64, sint64, double, longdouble)
1977 * src/m32r: New directory.
1978 * src/m32r/ffi.c: New file.
1979 * src/m32r/sysv.S: Likewise.
1980 * src/m32r/ffitarget.h: Likewise.
1982 2004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
1984 * testsuite/libffi.call/negint.c: New test case.
1986 2004-09-14 H.J. Lu <hongjiu.lu@intel.com>
1989 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
1990 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
1991 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
1994 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
1996 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
1997 * testsuite/libffi.call/promotion.c: Likewise.
1998 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
2000 * testsuite/libffi.call/return_sc.c: Likewise.
2001 * testsuite/libffi.call/return_uc.c: Likewise.
2003 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2005 * src/powerpc/darwin.S: Fix comments and identation.
2006 * src/powerpc/darwin_closure.S: Likewise.
2008 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2010 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
2011 (ffi_prep_args): Handle longdouble arguments.
2012 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
2014 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
2015 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
2017 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
2018 * src/types.c: Defined longdouble size and alignment for darwin.
2020 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2022 * src/powerpc/aix.S: Remove whitespaces.
2023 * src/powerpc/aix_closure.S: Likewise.
2024 * src/powerpc/asm.h: Likewise.
2025 * src/powerpc/ffi.c: Likewise.
2026 * src/powerpc/ffitarget.h: Likewise.
2027 * src/powerpc/linux64.S: Likewise.
2028 * src/powerpc/linux64_closure.S: Likewise.
2029 * src/powerpc/ppc_closure.S: Likewise.
2030 * src/powerpc/sysv.S: Likewise.
2032 2004-08-30 Anthony Green <green@redhat.com>
2034 * Makefile.am: Add frv support.
2035 * Makefile.in, testsuite/Makefile.in: Rebuilt.
2036 * configure.ac: Read configure.host.
2037 * configure.in: Read configure.host.
2038 * configure.host: New file. frv-elf needs libgloss.
2039 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
2040 alignment. This is needed to frv and shouldn't harm the others.
2041 * include/ffi_common.h (ALIGN_DOWN): New macro.
2042 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
2044 2004-08-24 David Daney <daney@avtrex.com>
2046 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
2047 * testsuite/libffi.call/closure_fn1.c: Likewise.
2048 * testsuite/libffi.call/closure_fn2.c Likewise.
2049 * testsuite/libffi.call/closure_fn3.c: Likewise.
2050 * testsuite/libffi.call/closure_fn4.c: Likewise.
2051 * testsuite/libffi.call/closure_fn5.c: Likewise.
2052 * testsuite/libffi.call/cls_18byte.c: Likewise.
2053 * testsuite/libffi.call/cls_19byte.c: Likewise.
2054 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2055 * testsuite/libffi.call/cls_20byte.c: Likewise.
2056 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2057 * testsuite/libffi.call/cls_24byte.c: Likewise.
2058 * testsuite/libffi.call/cls_2byte.c: Likewise.
2059 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2060 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2061 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2062 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2063 * testsuite/libffi.call/cls_4byte.c: Likewise.
2064 * testsuite/libffi.call/cls_64byte.c: Likewise.
2065 * testsuite/libffi.call/cls_6byte.c: Likewise.
2066 * testsuite/libffi.call/cls_7byte.c: Likewise.
2067 * testsuite/libffi.call/cls_8byte.c: Likewise.
2068 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2069 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2070 * testsuite/libffi.call/cls_align_double.c: Likewise.
2071 * testsuite/libffi.call/cls_align_float.c: Likewise.
2072 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2073 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2074 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2075 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2076 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2077 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2078 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2079 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
2080 * testsuite/libffi.call/cls_double.c: Likewise.
2081 * testsuite/libffi.call/cls_float.c: Likewise.
2082 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2083 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
2084 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2085 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2086 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2087 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2088 * testsuite/libffi.call/cls_schar.c: Likewise.
2089 * testsuite/libffi.call/cls_sint.c: Likewise.
2090 * testsuite/libffi.call/cls_sshort.c: Likewise.
2091 * testsuite/libffi.call/cls_uchar.c: Likewise.
2092 * testsuite/libffi.call/cls_uint.c: Likewise.
2093 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2094 * testsuite/libffi.call/cls_ushort.c: Likewise.
2095 * testsuite/libffi.call/nested_struct.c: Likewise.
2096 * testsuite/libffi.call/nested_struct1.c: Likewise.
2097 * testsuite/libffi.call/nested_struct2.c: Likewise.
2098 * testsuite/libffi.call/nested_struct3.c: Likewise.
2099 * testsuite/libffi.call/problem1.c: Likewise.
2100 * testsuite/libffi.special/unwindtest.cc: Likewise.
2101 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
2103 * testsuite/libffi.call/cls_16byte.c: Likewise.
2104 * testsuite/libffi.call/cls_5byte.c: Likewise.
2106 2004-08-23 David Daney <daney@avtrex.com>
2109 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
2110 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
2111 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
2112 parameters and return types.
2113 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
2114 (ffi_prep_closure): Ditto.
2115 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
2116 alignment calculations.
2117 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
2118 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
2120 2004-08-14 Casey Marshall <csm@gnu.org>
2122 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
2123 contain `FFI_TYPE_UINT64' as return type for any 64-bit
2124 integer (O32 ABI only).
2125 (ffi_prep_closure): new function.
2126 (ffi_closure_mips_inner_O32): new function.
2127 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
2128 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
2129 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
2130 64 bit integers correctly.
2131 (ffi_closure_O32): new function.
2132 Added DWARF-2 unwind info for both functions.
2134 2004-08-10 Andrew Haley <aph@redhat.com>
2136 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
2138 2004-08-01 Robert Millan <robertmh@gnu.org>
2140 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
2141 * configure: Regenerate.
2143 2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
2145 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
2146 and mmap() explicitly instead of relying on preset autoconf cache
2148 * aclocal.m4: Regenerate.
2149 * configure: Regenerate.
2151 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
2153 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
2154 (ffi_check_float_struct): Remove unused prototype.
2156 2004-06-30 Geoffrey Keating <geoffk@apple.com>
2158 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
2159 character on Darwin, use '\n\t' instead.
2161 2004-06-26 Matthias Klose <doko@debian.org>
2163 * libtool-version: Fix typo in revision/age.
2165 2004-06-17 Matthias Klose <doko@debian.org>
2167 * libtool-version: New.
2168 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
2169 * Makefile.in: Regenerate.
2171 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2173 * Makefile.am: Remove useless multilib rules.
2174 * Makefile.in: Regenerate.
2175 * aclocal.m4: Regenerate with automake 1.8.5.
2176 * configure.ac: Remove useless multilib configury.
2177 * configure: Regenerate.
2179 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2181 * .cvsignore: New file.
2183 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2185 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
2187 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
2190 2004-06-06 Sean McNeil <sean@mcneil.com>
2192 * configure.ac: Add x86_64-*-freebsd* support.
2193 * configure: Regenerate.
2195 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
2198 * configure.ac: Test for existence of mmap and sys/mman.h before
2199 checking blacklist. Fix suggested by Jim Wilson.
2200 * configure: Regenerate.
2202 2004-04-26 Matt Austern <austern@apple.com>
2204 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
2206 * src/powerpc/darwin_closure.S: Likewise.
2208 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
2210 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
2211 error. Reported by Thomas Heller <theller@python.net>.
2212 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
2213 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
2215 2004-03-20 Matthias Klose <doko@debian.org>
2217 * src/pa/linux.S: Fix typo.
2219 2004-03-19 Matthias Klose <doko@debian.org>
2221 * Makefile.am: Update.
2222 * Makefile.in: Regenerate.
2223 * src/pa/ffi.h.in: Remove.
2224 * src/pa/ffitarget.h: New file.
2226 2004-02-10 Randolph Chung <tausq@debian.org>
2228 * Makefile.am: Add PA support.
2229 * Makefile.in: Regenerate.
2230 * include/Makefile.in: Regenerate.
2231 * configure.ac: Add PA target.
2232 * configure: Regenerate.
2233 * src/pa/ffi.c: New file.
2234 * src/pa/ffi.h.in: Add PA support.
2235 * src/pa/linux.S: New file.
2236 * prep_cif.c: Add PA support.
2238 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
2240 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
2242 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
2243 with ecif->cif->flags.
2244 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
2246 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
2247 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
2248 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
2249 sc_retstruct2b): Add for 1 or 2-bytes struct case.
2251 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
2253 * configure.in: Rename file to ...
2254 * configure.ac: ... this.
2255 * fficonfig.h.in: Regenerate.
2256 * Makefile.in: Regenerate.
2257 * include/Makefile.in: Regenerate.
2258 * testsuite/Makefile.in: Regenerate.
2260 2004-03-12 Matt Austern <austern@apple.com>
2262 * src/powerpc/darwin.S: Fix EH information so it corresponds to
2263 changes in EH format resulting from addition of linkonce support.
2264 * src/powerpc/darwin_closure.S: Likewise.
2266 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
2267 Paolo Bonzini <bonzini@gnu.org>
2269 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
2270 Remove VPATH. Remove rules for object files. Remove multilib support.
2271 (AM_CCASFLAGS): Add.
2272 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
2273 (AC_PREREQ): Bump version to 2.59.
2274 (AC_INIT): Fill with version info and bug address.
2275 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
2276 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
2277 De-precious CC so that the right flags are passed down to multilibs.
2278 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
2279 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
2280 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
2281 * configure: Rebuilt.
2282 * aclocal.m4: Likewise.
2283 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
2284 * fficonfig.h.in: Likewise.
2286 2004-03-11 Andreas Schwab <schwab@suse.de>
2288 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
2289 arguments from fp registers only for the first 8 parameter slots.
2290 Don't convert a float parameter when passed in memory.
2292 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
2294 * configure: Regenerate for config/accross.m4 correction.
2296 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
2298 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
2299 ecif->cif->bytes to bytes.
2300 (ffi_prep_cif_machdep): Add braces around nested if statement.
2302 2004-02-09 Alan Modra <amodra@bigpond.net.au>
2304 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
2306 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
2307 (ffi_closure_helper_LINUX64): Fix typo.
2308 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
2310 * testsuite/libffi.call/float.c: Likewise.
2311 * testsuite/libffi.call/float2.c: Likewise.
2313 2004-02-08 Alan Modra <amodra@bigpond.net.au>
2315 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
2316 long double function return and long double arg handling.
2317 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
2318 Use "end_pfr" instead of "nf". Correct long double handling.
2320 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
2322 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
2323 space for long double return value. Adjust stack frame and offsets.
2324 Load f2 long double return.
2326 2004-02-07 Alan Modra <amodra@bigpond.net.au>
2328 * src/types.c: Use 16 byte long double for POWERPC64.
2330 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2332 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
2333 when the structure return address is passed in %o0.
2334 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
2335 (ffi_v9_layout_struct): Align the field following a nested structure
2336 on a word boundary. Use memmove instead of memcpy.
2337 (ffi_call): Update call to ffi_V9_return_struct.
2338 (ffi_prep_closure): Define 'ctx' only for V8.
2339 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
2340 and ffi_closure_sparc_inner_v9.
2341 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
2342 Always skip the structure return address. For structures and long
2343 doubles, copy the argument directly.
2344 (ffi_closure_sparc_inner_v9): Skip the structure return address only
2345 if required. Shift the maximum floating-point slot accordingly. For
2346 big structures, copy the argument directly; otherwise, left-justify the
2347 argument and call ffi_v9_layout_struct to lay out the structure on
2349 * src/sparc/v8.S: Undef STACKFRAME before defining it.
2350 (ffi_closure_v8): Pass the structure return address. Update call to
2351 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
2352 Skip the 'unimp' insn when returning long doubles and structures.
2353 * src/sparc/v9.S: Undef STACKFRAME before defining it.
2354 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
2355 FFI_TYPE_INT handling. Load structures both in integers and
2356 floating-point registers on return.
2357 * README: Update status of the SPARC port.
2359 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
2361 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
2363 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
2365 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
2367 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
2368 value as of type ffi_arg, not unsigned int.
2370 2004-01-21 Michael Ritzert <ritzert@t-online.de>
2372 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
2375 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2377 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
2380 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2382 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
2385 2003-12-10 Richard Henderson <rth@redhat.com>
2387 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
2388 size_t instead of int.
2390 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
2392 * testsuite/libffi.call/many_win32.c: Include <float.h>.
2393 * testsuite/libffi.call/many_win32.c (main): Replace variable
2394 int i with unsigned long ul.
2396 * testsuite/libffi.call/cls_align_uint64.c: New test case.
2397 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2398 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2399 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2400 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2401 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2402 * testsuite/libffi.call/cls_align_float.c: Likewise.
2403 * testsuite/libffi.call/cls_align_double.c: Likewise.
2404 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2405 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2407 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
2410 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
2411 Align arguments to 32 bits.
2413 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
2416 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
2417 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2418 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2419 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2420 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2421 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2423 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
2425 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2427 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
2428 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2430 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
2432 * Makefile.in: Rebuilt.
2433 * configure: Likewise.
2434 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
2437 2003-11-21 Andreas Jaeger <aj@suse.de>
2438 Andreas Tobler <a.tobler@schweiz.ch>
2440 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
2441 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
2442 * Makefile.in: Rebuilt.
2443 * aclocal.m4: Likewise.
2444 * configure: Likewise.
2445 * fficonfig.h.in: Likewise.
2446 * testsuite/lib/libffi-dg.exp: Add include dir.
2447 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
2448 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2449 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
2450 for ffi_closure if available.
2451 * testsuite/libffi.call/closure_fn1.c: Likewise.
2452 * testsuite/libffi.call/closure_fn2.c: Likewise.
2453 * testsuite/libffi.call/closure_fn3.c: Likewise.
2454 * testsuite/libffi.call/closure_fn4.c: Likewise.
2455 * testsuite/libffi.call/closure_fn5.c: Likewise.
2456 * testsuite/libffi.call/cls_12byte.c: Likewise.
2457 * testsuite/libffi.call/cls_16byte.c: Likewise.
2458 * testsuite/libffi.call/cls_18byte.c: Likewise.
2459 * testsuite/libffi.call/cls_19byte.c: Likewise.
2460 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2461 * testsuite/libffi.call/cls_20byte.c: Likewise.
2462 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2463 * testsuite/libffi.call/cls_24byte.c: Likewise.
2464 * testsuite/libffi.call/cls_2byte.c: Likewise.
2465 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2466 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2467 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2468 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2469 * testsuite/libffi.call/cls_4byte.c: Likewise.
2470 * testsuite/libffi.call/cls_5byte.c: Likewise.
2471 * testsuite/libffi.call/cls_64byte.c: Likewise.
2472 * testsuite/libffi.call/cls_6byte.c: Likewise.
2473 * testsuite/libffi.call/cls_7byte.c: Likewise.
2474 * testsuite/libffi.call/cls_8byte.c: Likewise.
2475 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2476 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2477 * testsuite/libffi.call/cls_double.c: Likewise.
2478 * testsuite/libffi.call/cls_float.c: Likewise.
2479 * testsuite/libffi.call/cls_schar.c: Likewise.
2480 * testsuite/libffi.call/cls_sint.c: Likewise.
2481 * testsuite/libffi.call/cls_sshort.c: Likewise.
2482 * testsuite/libffi.call/cls_uchar.c: Likewise.
2483 * testsuite/libffi.call/cls_uint.c: Likewise.
2484 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2485 * testsuite/libffi.call/cls_ushort.c: Likewise.
2486 * testsuite/libffi.call/nested_struct.c: Likewise.
2487 * testsuite/libffi.call/nested_struct1.c: Likewise.
2488 * testsuite/libffi.call/nested_struct2.c: Likewise.
2489 * testsuite/libffi.call/nested_struct3.c: Likewise.
2490 * testsuite/libffi.call/problem1.c: Likewise.
2491 * testsuite/libffi.special/unwindtest.cc: Likewise.
2493 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
2495 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2497 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2499 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2500 Add -lgcc_s to additional flags.
2502 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
2504 * configure.in, include/Makefile.am: PR libgcj/11147, install
2505 the ffitarget.h header file in a gcc versioned and target
2507 * configure: Regenerated.
2508 * Makefile.in, include/Makefile.in: Likewise.
2509 * testsuite/Makefile.in: Likewise.
2511 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
2513 * testsuite/libffi.call/closure_fn0.c: Print result and check
2514 with dg-output to make debugging easier.
2515 * testsuite/libffi.call/closure_fn1.c: Likewise.
2516 * testsuite/libffi.call/closure_fn2.c: Likewise.
2517 * testsuite/libffi.call/closure_fn3.c: Likewise.
2518 * testsuite/libffi.call/closure_fn4.c: Likewise.
2519 * testsuite/libffi.call/closure_fn5.c: Likewise.
2520 * testsuite/libffi.call/cls_12byte.c: Likewise.
2521 * testsuite/libffi.call/cls_16byte.c: Likewise.
2522 * testsuite/libffi.call/cls_18byte.c: Likewise.
2523 * testsuite/libffi.call/cls_19byte.c: Likewise.
2524 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2525 * testsuite/libffi.call/cls_20byte.c: Likewise.
2526 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2527 * testsuite/libffi.call/cls_24byte.c: Likewise.
2528 * testsuite/libffi.call/cls_2byte.c: Likewise.
2529 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2530 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2531 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2532 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2533 * testsuite/libffi.call/cls_4byte.c: Likewise.
2534 * testsuite/libffi.call/cls_5byte.c: Likewise.
2535 * testsuite/libffi.call/cls_64byte.c: Likewise.
2536 * testsuite/libffi.call/cls_6byte.c: Likewise.
2537 * testsuite/libffi.call/cls_7byte.c: Likewise.
2538 * testsuite/libffi.call/cls_8byte.c: Likewise.
2539 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2540 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2541 * testsuite/libffi.call/cls_double.c: Likewise.
2542 * testsuite/libffi.call/cls_float.c: Likewise.
2543 * testsuite/libffi.call/cls_schar.c: Likewise.
2544 * testsuite/libffi.call/cls_sint.c: Likewise.
2545 * testsuite/libffi.call/cls_sshort.c: Likewise.
2546 * testsuite/libffi.call/cls_uchar.c: Likewise.
2547 * testsuite/libffi.call/cls_uint.c: Likewise.
2548 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2549 * testsuite/libffi.call/cls_ushort.c: Likewise.
2550 * testsuite/libffi.call/problem1.c: Likewise.
2552 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2555 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2557 * testsuite/libffi.call/cls_9byte2.c: New test case.
2558 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2559 * testsuite/libffi.call/cls_64byte.c: Likewise.
2560 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2561 * testsuite/libffi.call/cls_19byte.c: Likewise.
2562 * testsuite/libffi.call/cls_18byte.c: Likewise.
2563 * testsuite/libffi.call/closure_fn4.c: Likewise.
2564 * testsuite/libffi.call/closure_fn5.c: Likewise.
2565 * testsuite/libffi.call/cls_schar.c: Likewise.
2566 * testsuite/libffi.call/cls_sint.c: Likewise.
2567 * testsuite/libffi.call/cls_sshort.c: Likewise.
2568 * testsuite/libffi.call/nested_struct2.c: Likewise.
2569 * testsuite/libffi.call/nested_struct3.c: Likewise.
2571 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2573 * testsuite/libffi.call/cls_double.c: Do a check on the result.
2574 * testsuite/libffi.call/cls_uchar.c: Likewise.
2575 * testsuite/libffi.call/cls_uint.c: Likewise.
2576 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2577 * testsuite/libffi.call/cls_ushort.c: Likewise.
2578 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
2580 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
2582 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
2585 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
2587 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
2588 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
2590 2003-10-22 David Daney <ddaney@avtrex.com>
2592 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
2593 __attribute__((__mode__(__SI__))) and friends.
2595 2003-10-22 Andreas Schwab <schwab@suse.de>
2597 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
2599 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
2601 * configure.in: AC_LINK_FILES(ffitarget.h).
2602 * configure: Regenerate.
2603 * Makefile.in: Likewise.
2604 * include/Makefile.in: Likewise.
2605 * testsuite/Makefile.in: Likewise.
2606 * fficonfig.h.in: Likewise.
2608 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
2609 Richard Henderson <rth@redhat.com>
2611 Avoid that ffi.h includes fficonfig.h.
2613 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
2614 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2615 (TARGET_SRC_MIPS_SGI): Removed.
2616 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2617 (MIPS_SGI): Removed.
2618 (CLEANFILES): Removed.
2619 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
2621 * acconfig.h: Removed.
2622 * configure.in: Compute sizeofs only for double and long double.
2623 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
2624 into AC_DEFINE instead of using acconfig.h. Create
2625 include/ffitarget.h instead of include/fficonfig.h. Rename
2626 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
2627 AC_DEFINE EH_FRAME_FLAGS.
2628 * include/Makefile.am (DISTCLEANFILES): New automake macro.
2629 (hack_DATA): Add ffitarget.h.
2630 * include/ffi.h.in: Remove all system specific definitions.
2631 Declare raw API even if it is not installed, why bother?
2632 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
2633 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
2634 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
2635 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
2636 * include/ffi_common.h (bool): Do not define.
2637 (ffi_assert): Accept failed assertion.
2638 (ffi_type_test): Return void and accept file/line.
2639 (FFI_ASSERT): Pass stringized failed assertion.
2640 (FFI_ASSERT_AT): New macro.
2641 (FFI_ASSERT_VALID_TYPE): New macro.
2642 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
2643 UINT64, SINT64): Define here with gcc's __attribute__ macro
2645 (FLOAT32, ALIGN): Define here instead of in ffi.h
2646 * include/ffi-mips.h: Removed. Its content moved to
2647 src/mips/ffitarget.h after separating assembly and C sections.
2648 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
2649 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
2650 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
2651 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
2652 SIZEOF_ARG -> FFI_SIZEOF_ARG.
2653 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
2654 * src/debug.c (ffi_assert): Accept stringized failed assertion.
2655 (ffi_type_test): Rewritten.
2656 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
2657 FFI_ASSERT_VALID_TYPE.
2658 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
2659 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
2660 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
2661 src/s390/ffitarget.h, src/sh/ffitarget.h,
2662 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
2663 src/x86/ffitarget.h: New files.
2664 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
2665 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
2666 src/powerpc/aix.S, src/powerpc/darwin.S,
2667 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
2668 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
2669 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
2670 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
2671 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
2674 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2676 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
2677 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
2679 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
2681 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
2682 Used when FFI_DEBUG = 1.
2684 2003-10-14 Alan Modra <amodra@bigpond.net.au>
2686 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
2689 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2691 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
2692 FFI_MIPS_O32 for O32 ABI.
2694 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
2696 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
2697 SPARC64. Cleanup whitespaces.
2699 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
2701 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
2702 strongarm, xscale. Cleanup whitespaces.
2703 * testsuite/libffi.call/closure_fn1.c: Likewise.
2704 * testsuite/libffi.call/closure_fn2.c: Likewise.
2705 * testsuite/libffi.call/closure_fn3.c: Likewise.
2706 * testsuite/libffi.call/cls_12byte.c: Likewise.
2707 * testsuite/libffi.call/cls_16byte.c: Likewise.
2708 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2709 * testsuite/libffi.call/cls_20byte.c: Likewise.
2710 * testsuite/libffi.call/cls_24byte.c: Likewise.
2711 * testsuite/libffi.call/cls_2byte.c: Likewise.
2712 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2713 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2714 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2715 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2716 * testsuite/libffi.call/cls_4byte.c: Likewise.
2717 * testsuite/libffi.call/cls_5byte.c: Likewise.
2718 * testsuite/libffi.call/cls_6byte.c: Likewise.
2719 * testsuite/libffi.call/cls_7byte.c: Likewise.
2720 * testsuite/libffi.call/cls_8byte.c: Likewise.
2721 * testsuite/libffi.call/cls_double.c: Likewise.
2722 * testsuite/libffi.call/cls_float.c: Likewise.
2723 * testsuite/libffi.call/cls_uchar.c: Likewise.
2724 * testsuite/libffi.call/cls_uint.c: Likewise.
2725 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2726 * testsuite/libffi.call/cls_ushort.c: Likewise.
2727 * testsuite/libffi.call/nested_struct.c: Likewise.
2728 * testsuite/libffi.call/nested_struct1.c: Likewise.
2729 * testsuite/libffi.call/problem1.c: Likewise.
2730 * testsuite/libffi.special/unwindtest.cc: Likewise.
2731 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
2733 2003-09-18 David Edelsohn <edelsohn@gnu.org>
2735 * src/powerpc/aix.S: Cleanup whitespaces.
2736 * src/powerpc/aix_closure.S: Likewise.
2738 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
2740 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
2741 * src/powerpc/darwin_closure.S: Likewise.
2742 * src/powerpc/ffi_darwin.c: Likewise.
2744 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
2745 David Edelsohn <edelsohn@gnu.org>
2747 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
2748 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
2750 * src/powerpc/darwin_closure.S: Likewise.
2751 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
2752 according to the Darwin/AIX ABI.
2753 (ffi_prep_cif_machdep): Likewise.
2754 (ffi_closure_helper_DARWIN): Likewise.
2755 Remove the outgoing parameter stack logic. Simplify the evaluation
2756 of the different CASE types.
2757 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
2758 statement in the trampoline code.
2760 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
2762 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
2763 for the register size.
2764 (ffi_closure_helper_SYSV): Handle the structure return value
2766 (ffi_closure_helper_SYSV): Return the appropriate type when
2767 the registers are used for the structure return value.
2768 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
2769 the 64-bit return value. Update copyright years.
2771 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2773 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
2774 srcdir for ffi_mips.h.
2776 2003-09-12 Alan Modra <amodra@bigpond.net.au>
2778 * src/prep_cif.c (initialize_aggregate): Include tail padding in
2780 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
2781 placement of float result.
2782 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
2783 cast of "resp" for big-endian 64 bit machines.
2785 2003-09-11 Alan Modra <amodra@bigpond.net.au>
2787 * src/types.c (double, longdouble): Merge identical SH and ARM
2788 typedefs, and add POWERPC64.
2789 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
2790 struct split over gpr and rest.
2791 (ffi_prep_cif_machdep): Correct intarg_count for structures.
2792 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
2794 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
2796 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
2799 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2801 * configure: Regenerate.
2803 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
2805 * Makefile.am: Remove build rules for ffitest.
2806 * Makefile.in: Rebuilt.
2808 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
2810 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
2811 about implicit declaration of abort().
2813 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
2815 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
2816 * Makefile.in: Rebuilt.
2817 * configure.in: Add dejagnu test framework.
2818 * configure: Rebuilt.
2820 * testsuite/Makefile.am: New file.
2821 * testsuite/Makefile.in: Built
2822 * testsuite/lib/libffi-dg.exp: New file.
2823 * testsuite/config/default.exp: Likewise.
2824 * testsuite/libffi.call/call.exp: Likewise.
2825 * testsuite/libffi.call/ffitest.h: Likewise.
2826 * testsuite/libffi.call/closure_fn0.c: Likewise.
2827 * testsuite/libffi.call/closure_fn1.c: Likewise.
2828 * testsuite/libffi.call/closure_fn2.c: Likewise.
2829 * testsuite/libffi.call/closure_fn3.c: Likewise.
2830 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2831 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2832 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2833 * testsuite/libffi.call/cls_2byte.c: Likewise.
2834 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2835 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2836 * testsuite/libffi.call/cls_4byte.c: Likewise.
2837 * testsuite/libffi.call/cls_5byte.c: Likewise.
2838 * testsuite/libffi.call/cls_6byte.c: Likewise.
2839 * testsuite/libffi.call/cls_7byte.c: Likewise.
2840 * testsuite/libffi.call/cls_8byte.c: Likewise.
2841 * testsuite/libffi.call/cls_12byte.c: Likewise.
2842 * testsuite/libffi.call/cls_16byte.c: Likewise.
2843 * testsuite/libffi.call/cls_20byte.c: Likewise.
2844 * testsuite/libffi.call/cls_24byte.c: Likewise.
2845 * testsuite/libffi.call/cls_double.c: Likewise.
2846 * testsuite/libffi.call/cls_float.c: Likewise.
2847 * testsuite/libffi.call/cls_uchar.c: Likewise.
2848 * testsuite/libffi.call/cls_uint.c: Likewise.
2849 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2850 * testsuite/libffi.call/cls_ushort.c: Likewise.
2851 * testsuite/libffi.call/float.c: Likewise.
2852 * testsuite/libffi.call/float1.c: Likewise.
2853 * testsuite/libffi.call/float2.c: Likewise.
2854 * testsuite/libffi.call/many.c: Likewise.
2855 * testsuite/libffi.call/many_win32.c: Likewise.
2856 * testsuite/libffi.call/nested_struct.c: Likewise.
2857 * testsuite/libffi.call/nested_struct1.c: Likewise.
2858 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
2859 * testsuite/libffi.call/problem1.c: Likewise.
2860 * testsuite/libffi.call/promotion.c: Likewise.
2861 * testsuite/libffi.call/return_ll.c: Likewise.
2862 * testsuite/libffi.call/return_sc.c: Likewise.
2863 * testsuite/libffi.call/return_uc.c: Likewise.
2864 * testsuite/libffi.call/strlen.c: Likewise.
2865 * testsuite/libffi.call/strlen_win32.c: Likewise.
2866 * testsuite/libffi.call/struct1.c: Likewise.
2867 * testsuite/libffi.call/struct2.c: Likewise.
2868 * testsuite/libffi.call/struct3.c: Likewise.
2869 * testsuite/libffi.call/struct4.c: Likewise.
2870 * testsuite/libffi.call/struct5.c: Likewise.
2871 * testsuite/libffi.call/struct6.c: Likewise.
2872 * testsuite/libffi.call/struct7.c: Likewise.
2873 * testsuite/libffi.call/struct8.c: Likewise.
2874 * testsuite/libffi.call/struct9.c: Likewise.
2875 * testsuite/libffi.special/special.exp: New file.
2876 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2877 * testsuite/libffi.special/unwindtest.cc: Likewise.
2880 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
2882 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
2885 2003-08-02 Alan Modra <amodra@bigpond.net.au>
2887 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
2889 (ffi_closure_helper_LINUX64): Likewise.
2890 * src/powerpc/linux64.S: Remove code writing to parm save area.
2891 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
2892 address in lr from ffi_closure_helper_LINUX64 call to calculate
2893 table address. Optimize function tail.
2895 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
2897 * src/sparc/ffi.c: Handle all floating point registers.
2898 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
2900 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2902 * README: Note that libffi is not part of GCC. Update the project
2905 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2907 * src/powerpc/ppc_closure.S: Include ffi.h.
2909 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2911 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
2912 Use C style comments.
2914 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2916 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
2917 * Makefile.in: Regenerate.
2918 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
2919 * configure: Regenerate.
2920 * include/ffi.h.in: Add SHmedia support.
2921 * src/sh64/ffi.c: New file.
2922 * src/sh64/sysv.S: New file.
2924 2003-05-16 Jakub Jelinek <jakub@redhat.com>
2926 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
2927 should be read-only.
2928 * configure: Rebuilt.
2929 * fficonfig.h.in: Rebuilt.
2930 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
2931 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
2932 * src/powerpc/linux64.S: Likewise.
2933 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
2934 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
2935 if -fpic/-fPIC/-mrelocatable.
2936 * src/powerpc/powerpc_closure.S: Likewise.
2937 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
2938 #write in .eh_frame flags.
2939 * src/sparc/v9.S: Likewise.
2940 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
2941 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
2942 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
2944 2003-05-07 Jeff Sturm <jsturm@one-point.com>
2946 Fixes PR bootstrap/10656
2947 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
2948 support for .register pseudo-op.
2949 * src/sparc/v8.S: Use it.
2950 * fficonfig.h.in: Rebuilt.
2951 * configure: Rebuilt.
2953 2003-04-18 Jakub Jelinek <jakub@redhat.com>
2955 * include/ffi.h.in (POWERPC64): Define if 64-bit.
2956 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
2957 Make it the default on POWERPC64.
2958 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
2959 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
2960 * configure: Rebuilt.
2961 * src/powerpc/ffi.c (hidden): Define.
2962 (ffi_prep_args_SYSV): Renamed from
2963 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
2964 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
2965 ASM_NEEDS_REGISTERS64): New.
2966 (ffi_prep_args64): New function.
2967 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
2968 (ffi_call): Likewise.
2969 (ffi_prep_closure): Likewise.
2970 (flush_icache): Surround by #ifndef POWERPC64.
2971 (ffi_dblfl): New union type.
2972 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
2973 (ffi_closure_helper_LINUX64): New function.
2974 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
2976 * src/powerpc/sysv.S: Likewise.
2977 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
2978 * src/powerpc/linux64.S: New file.
2979 * src/powerpc/linux64_closure.S: New file.
2980 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
2981 src/powerpc/linux64_closure.S.
2982 (TARGET_SRC_POWERPC): Likewise.
2984 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
2985 closure_test_fn3): Fix result printing on big-endian 64-bit
2987 (main): Print tst2_arg instead of uninitialized tst2_result.
2989 * src/ffitest.c (main): Hide what closure pointer really points to
2992 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
2994 * configure.in (arm-*-netbsdelf*): Add configuration.
2995 (configure): Regenerated.
2997 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
2999 * include/Makefile.in: Regenerate.
3001 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3003 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
3005 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
3006 Receive closure pointer through parameter, read args using
3007 __builtin_dwarf_cfa.
3008 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
3010 2003-03-12 Andreas Schwab <schwab@suse.de>
3012 * configure.in: Avoid trailing /. in toolexeclibdir.
3013 * configure: Rebuilt.
3015 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
3017 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
3019 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
3021 * libffi/src/powerpc/darwin_closure.S:
3022 Fix alignement bug, allocate 8 bytes for the result.
3023 * libffi/src/powerpc/aix_closure.S:
3025 * libffi/src/powerpc/ffi_darwin.c:
3026 Update stackframe description for aix/darwin_closure.S.
3028 2003-02-06 Jakub Jelinek <jakub@redhat.com>
3030 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
3033 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
3034 Andreas Schwab <schwab@suse.de>
3036 * configure.in: Adjust command to source config-ml.in to account
3037 for changes to the libffi_basedir definition.
3038 (libffi_basedir): Remove ${srcdir} from value and include trailing
3041 * configure: Regenerate.
3043 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3045 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
3047 2003-01-28 Andrew Haley <aph@redhat.com>
3049 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
3050 * src/x86/ffi64.c (ffi_prep_closure): New.
3051 (ffi_closure_UNIX64_inner): New.
3052 * src/x86/unix64.S (ffi_closure_UNIX64): New.
3054 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
3056 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
3057 Remove USE_LIBDIR conditional.
3058 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
3059 * Makefile.in, configure: Rebuilt.
3061 2003-01027 David Edelsohn <edelsohn@gnu.org>
3063 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
3064 * Makefile.in: Regenerate.
3066 2003-01-22 Andrew Haley <aph@redhat.com>
3068 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
3071 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3073 * src/powerpc/darwin.S: Add unwind info.
3074 * src/powerpc/darwin_closure.S: Likewise.
3076 2003-01-14 Andrew Haley <aph@redhat.com>
3078 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
3079 (ffi_prep_cif_machdep): Likewise.
3080 * src/x86/unix64.S: Add unwind info.
3082 2003-01-14 Andreas Jaeger <aj@suse.de>
3084 * src/ffitest.c (main): Only use ffi_closures if those are
3087 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
3089 * libffi/src/ffitest.c
3090 add closure testcases
3092 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
3094 * libffi/src/powerpc/ffi.c
3095 fix alignment bug for float (4 byte aligned iso 8 byte)
3097 2003-01-09 Geoffrey Keating <geoffk@apple.com>
3099 * src/powerpc/ffi_darwin.c: Remove RCS version string.
3100 * src/powerpc/darwin.S: Remove RCS version string.
3102 2003-01-03 Jeff Sturm <jsturm@one-point.com>
3104 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
3105 * src/ffitest.c (main): Use static storage for closure.
3106 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
3107 * src/sparc/v8.S (ffi_closure_v8): New.
3108 * src/sparc/v9.S (ffi_closure_v9): New.
3110 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
3112 * include/ffi.h.in: Added FFI_STDCALL ffi_type
3113 enumeration for X86_WIN32.
3114 * src/x86/win32.S: Added ffi_call_STDCALL function
3116 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
3117 switch cases for recognising FFI_STDCALL and
3118 calling ffi_call_STDCALL if target is X86_WIN32.
3119 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
3120 stdcall versions of the "my_strlen" and "many"
3121 test functions (for X86_WIN32).
3122 Added test cases to test stdcall invocation using
3125 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
3127 * src/sh/sysv.S: Add DWARF2 unwind info.
3129 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
3131 * src/s390/sysv.S (.eh_frame section): Make section read-only.
3133 2002-11-26 Jim Wilson <wilson@redhat.com>
3135 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
3137 2002-11-23 H.J. Lu <hjl@gnu.org>
3139 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
3140 Include ../config/accross.m4.
3141 * aclocal.m4; Rebuild.
3142 * configure: Likewise.
3144 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
3146 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
3148 2002-11-11 DJ Delorie <dj@redhat.com>
3150 * configure.in: Look for common files in the right place.
3152 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
3154 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
3155 raw data as _Jv_word values, not ffi_raw.
3156 (ffi_java_ptrarray_to_raw): Likewise.
3157 (ffi_java_rvalue_to_raw): New function.
3158 (ffi_java_raw_call): Call it.
3159 (ffi_java_raw_to_rvalue): New function.
3160 (ffi_java_translate_args): Call it.
3161 * src/ffitest.c (closure_test_fn): Interpret return value
3162 as ffi_arg, not int.
3163 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
3164 FFI_TYPE_POINTER case.
3165 (ffi_closure_helper_SYSV): Likewise. Also, assume return
3166 values extended to word size.
3168 2002-10-02 Andreas Jaeger <aj@suse.de>
3170 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
3172 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
3174 * include/ffi.h.in: Fix i386 win32 compilation.
3176 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
3178 * configure.in: Add s390x-*-linux-* target.
3179 * configure: Regenerate.
3180 * include/ffi.h.in: Define S390X for s390x targets.
3181 (FFI_CLOSURES): Define for s390/s390x.
3182 (FFI_TRAMPOLINE_SIZE): Likewise.
3183 (FFI_NATIVE_RAW_API): Likewise.
3184 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
3185 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
3186 * src/s390/ffi.c: Major rework of existing code. Add support for
3187 s390x targets. Add closure support.
3188 * src/s390/sysv.S: Likewise.
3190 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
3192 * src/arm/sysv.S: Fix typo.
3194 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
3196 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
3197 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
3198 (ffi_call_SYSV): Handle soft-float.
3200 2002-09-27 Bo Thorsen <bo@suse.de>
3202 * include/ffi.h.in: Fix multilib x86-64 support.
3204 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3206 * Makefile.am (all-multi): Fix multilib parallel build.
3208 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
3210 * configure.in (sh[34]*-*-linux*): Add brackets.
3211 * configure: Regenerate.
3213 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
3215 * Makefile.am: Add SH support.
3216 * Makefile.in: Regenerate.
3217 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
3218 * configure: Regenerate.
3219 * include/ffi.h.in: Add SH support.
3220 * src/sh/ffi.c: New file.
3221 * src/sh/sysv.S: New file.
3222 * src/types.c: Add SH support.
3224 2002-07-16 Bo Thorsen <bo@suse.de>
3226 * src/x86/ffi64.c: New file that adds x86-64 support.
3227 * src/x86/unix64.S: New file that handles argument setup for
3229 * src/x86/sysv.S: Don't use this on x86-64.
3230 * src/x86/ffi.c: Don't use this on x86-64.
3232 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
3234 * src/ffitest.c (struct6): New test that tests a special case in
3236 (struct7): Likewise.
3237 (struct8): Likewise.
3238 (struct9): Likewise.
3239 (closure_test_fn): Silence warning about this when it's not used.
3240 (main): Add the new tests.
3241 (main): Fix a couple of wrong casts and silence some compiler warnings.
3242 * include/ffi.h.in: Add x86-64 ABI definition.
3243 * fficonfig.h.in: Regenerate.
3244 * Makefile.am: Add x86-64 support.
3245 * configure.in: Likewise.
3246 * Makefile.in: Regenerate.
3247 * configure: Likewise.
3249 2002-06-24 Bo Thorsen <bo@suse.de>
3251 * src/types.c: Merge settings for similar architectures.
3252 Add x86-64 sizes and alignments.
3254 2002-06-23 Bo Thorsen <bo@suse.de>
3256 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
3257 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
3258 * src/mips/ffi.c (ffi_prep_args): Likewise.
3259 * src/m68k/ffi.c (ffi_prep_args): Likewise.
3261 2002-07-18 H.J. Lu (hjl@gnu.org)
3263 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
3264 (libffi_la_SOURCES): Support MIPS_LINUX.
3265 (libffi_convenience_la_SOURCES): Likewise.
3266 * Makefile.in: Regenerated.
3268 * configure.in (mips64*-*): Skip.
3269 (mips*-*-linux*): New.
3270 * configure: Regenerated.
3272 * src/mips/ffi.c: Include <sgidefs.h>.
3274 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3276 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
3278 2002-05-27 Roger Sayle <roger@eyesopen.com>
3280 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
3282 2002-05-27 Bo Thorsen <bo@suse.de>
3284 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
3287 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
3289 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
3290 beginning of function (for older apple cc).
3292 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
3294 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3295 script entry, and set LD to it when configuring multilibs.
3296 * configure: Rebuilt.
3298 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3300 * configure.in (sparc64-*-netbsd*): Add target.
3301 (sparc-*-netbsdelf*): Likewise.
3302 * configure: Regenerate.
3304 2002-04-28 David S. Miller <davem@redhat.com>
3306 * configure.in, configure: Fix SPARC test in previous change.
3308 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
3310 * Makefile.am: Add Linux for S/390 support.
3311 * Makefile.in: Regenerate.
3312 * configure.in: Add Linux for S/390 support.
3313 * configure: Regenerate.
3314 * include/ffi.h.in: Add Linux for S/390 support.
3315 * src/s390/ffi.c: New file from libffi CVS tree.
3316 * src/s390/sysv.S: New file from libffi CVS tree.
3318 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3320 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
3322 * src/sparc/v8.S: Use it.
3323 * src/sparc/v9.S: Likewise.
3324 * fficonfig.h.in: Rebuilt.
3325 * configure: Rebuilt.
3327 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
3329 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
3331 * src/ia64/unix.S: Add unwind information. Fix comments.
3332 Save sp in a way that's compatible with unwind info.
3333 (ffi_call_unix): Correctly restore sp in all cases.
3334 * src/ia64/ffi.c: Add, fix comments.
3336 2002-04-08 Jakub Jelinek <jakub@redhat.com>
3338 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
3340 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3342 * configure.in (alpha*-*-netbsd*): Add target.
3343 * configure: Regenerate.
3345 2002-04-04 Jeff Sturm <jsturm@one-point.com>
3347 * src/sparc/v8.S: Add unwind info.
3348 * src/sparc/v9.S: Likewise.
3350 2002-03-30 Krister Walfridsson <cato@df.lth.se>
3352 * configure.in: Enable i*86-*-netbsdelf*.
3353 * configure: Rebuilt.
3355 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
3358 * src/mips/n32.s: Delete
3359 * src/mips/o32.s: Delete
3361 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
3363 * configure.in: Enable alpha*-*-freebsd*.
3364 * configure: Rebuilt.
3366 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3368 * Makefile.am: libfficonvenience -> libffi_convenience.
3369 * Makefile.in: Rebuilt.
3371 * Makefile.am: Define ffitest_OBJECTS.
3372 * Makefile.in: Rebuilt.
3374 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
3375 David Edelsohn <edelsohn@gnu.org>
3377 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
3378 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
3379 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
3380 * Makefile.in: Regenerate.
3381 * include/ffi.h.in: Add AIX and Darwin closure definitions.
3382 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
3383 (flush_icache, flush_range): New functions.
3384 (ffi_closure_helper_DARWIN): New function.
3385 * src/powerpc/aix_closure.S: New file.
3386 * src/powerpc/darwin_closure.S: New file.
3388 2002-02-24 Jeff Sturm <jsturm@one-point.com>
3390 * include/ffi.h.in: Add typedef for ffi_arg.
3391 * src/ffitest.c (main): Declare rint with ffi_arg.
3393 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
3395 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
3396 number of GPRs for floating-point arguments.
3398 2002-01-31 Anthony Green <green@redhat.com>
3400 * configure: Rebuilt.
3401 * configure.in: Replace CHECK_SIZEOF and endian tests with
3402 cross-compiler friendly macros.
3403 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
3406 2002-01-18 David Edelsohn <edelsohn@gnu.org>
3408 * src/powerpc/darwin.S (_ffi_call_AIX): New.
3409 * src/powerpc/aix.S (ffi_call_DARWIN): New.
3411 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3413 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
3414 (TARGET_SRC_POWERPC_AIX): New.
3415 (POWERPC_AIX): New stanza.
3416 * Makefile.in: Regenerate.
3417 * configure.in: Add AIX case.
3418 * configure: Regenerate.
3419 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
3420 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
3421 size. Fix "long double" support.
3422 (ffi_call): Add FFI_AIX case.
3423 * src/powerpc/aix.S: New.
3425 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
3427 Implement Darwin PowerPC ABI.
3428 * configure.in: Handle powerpc-*-darwin*.
3429 * Makefile.am: Set source files for POWERPC_DARWIN.
3430 * configure: Rebuilt.
3431 * Makefile.in: Rebuilt.
3432 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
3434 * src/powerpc/darwin.S: New file.
3435 * src/powerpc/ffi_darwin.c: New file.
3437 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3439 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
3441 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3443 * src/x86/sysv.S: Avoid gas-only .balign directive.
3444 Use C style comments.
3446 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3448 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
3449 Fixes PR bootstrap/3563.
3451 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3453 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
3455 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3457 * configure.in: Recognize sparc*-sun-* host.
3458 * configure: Regenerate.
3460 2001-06-06 Andrew Haley <aph@redhat.com>
3462 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
3464 2001-06-03 Andrew Haley <aph@redhat.com>
3466 * src/alpha/osf.S: Add unwind info.
3467 * src/powerpc/sysv.S: Add unwind info.
3468 * src/powerpc/ppc_closure.S: Likewise.
3470 2000-05-31 Jeff Sturm <jsturm@one-point.com>
3472 * configure.in: Fix AC_ARG_ENABLE usage.
3473 * configure: Rebuilt.
3475 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3477 * configure.in: Remove warning about beta code.
3478 * configure: Rebuilt.
3480 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
3482 * src/ia64/unix.S: Restore stack pointer when returning from
3484 * src/ia64/ffi.c: Fix typo in comment.
3486 2001-04-18 Jim Wilson <wilson@redhat.com>
3488 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3489 to eliminate RAW DV.
3491 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3493 * Makefile.am: Make a libtool convenience library.
3494 * Makefile.in: Rebuilt.
3496 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
3498 * configure.in: Use different syntax for subdirectory creation.
3499 * configure: Rebuilt.
3501 2001-03-27 Jon Beniston <jon@beniston.com>
3503 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3504 * configure: Rebuilt.
3505 * Makefile.am: Added X86_WIN32 target support.
3506 * Makefile.in: Rebuilt.
3508 * include/ffi.h.in: Added X86_WIN32 target support.
3510 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3511 * src/types.c: Added X86_WIN32 target support.
3513 * src/x86/win32.S: New file. Based on sysv.S, but with EH
3514 stuff removed and made to work with CygWin's gas.
3516 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
3518 * configure.in: Make target subdirectory in build dir.
3519 * Makefile.am: Override suffix based rules to specify correct output
3521 * Makefile.in: Rebuilt.
3522 * configure: Rebuilt.
3524 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
3526 * src/powerpc/ppc_closure.S: New file.
3527 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3528 involving long long and register pairs.
3529 (ffi_prep_closure): New function.
3530 (flush_icache): Likewise.
3531 (ffi_closure_helper_SYSV): Likewise.
3532 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3533 (FFI_TRAMPOLINE_SIZE): Likewise.
3534 (FFI_NATIVE_RAW_API): Likewise.
3535 * Makefile.in: Rebuilt.
3536 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3537 (TARGET_SRC_POWERPC): Likewise.
3539 2001-03-19 Tom Tromey <tromey@redhat.com>
3541 * Makefile.in: Rebuilt.
3542 * Makefile.am (ffitest_LDFLAGS): New macro.
3544 2001-03-02 Nick Clifton <nickc@redhat.com>
3546 * include/ffi.h.in: Remove RCS ident string.
3547 * include/ffi_mips.h: Remove RCS ident string.
3548 * src/debug.c: Remove RCS ident string.
3549 * src/ffitest.c: Remove RCS ident string.
3550 * src/prep_cif.c: Remove RCS ident string.
3551 * src/types.c: Remove RCS ident string.
3552 * src/alpha/ffi.c: Remove RCS ident string.
3553 * src/alpha/osf.S: Remove RCS ident string.
3554 * src/arm/ffi.c: Remove RCS ident string.
3555 * src/arm/sysv.S: Remove RCS ident string.
3556 * src/mips/ffi.c: Remove RCS ident string.
3557 * src/mips/n32.S: Remove RCS ident string.
3558 * src/mips/o32.S: Remove RCS ident string.
3559 * src/sparc/ffi.c: Remove RCS ident string.
3560 * src/sparc/v8.S: Remove RCS ident string.
3561 * src/sparc/v9.S: Remove RCS ident string.
3562 * src/x86/ffi.c: Remove RCS ident string.
3563 * src/x86/sysv.S: Remove RCS ident string.
3565 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3567 * include/ffi.h.in: Change sourceware.cygnus.com references to
3570 2000-12-09 Richard Henderson <rth@redhat.com>
3572 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
3573 (ffi_closure_osf_inner): Index rather than increment avalue
3574 and arg_types. Give ffi_closure_osf the raw return value type.
3575 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
3578 2000-12-07 Richard Henderson <rth@redhat.com>
3580 * src/raw_api.c (ffi_translate_args): Fix typo.
3581 (ffi_prep_closure): Likewise.
3583 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
3584 FFI_TRAMPOLINE_SIZE.
3585 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
3586 cif->bytes for new ffi_call_osf implementation.
3587 (ffi_prep_args): Absorb into ...
3588 (ffi_call): ... here. Do all stack allocation here and
3589 avoid a callback function.
3590 (ffi_prep_closure, ffi_closure_osf_inner): New.
3591 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
3592 (ffi_closure_osf): New.
3594 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3596 * config.guess, config.sub, install-sh: Removed.
3597 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
3598 * Makefile.in: Rebuilt.
3600 * acinclude.m4: Include libtool macros from the top level.
3601 * aclocal.m4, configure: Rebuilt.
3603 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3605 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
3606 * configure: Rebuilt.
3608 2000-05-11 Scott Bambrough <scottb@netwinder.org>
3610 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
3611 memory correctly. Use conditional instructions, not branches where
3614 2000-05-04 Tom Tromey <tromey@cygnus.com>
3616 * configure: Rebuilt.
3617 * configure.in: Match `arm*-*-linux-*'.
3618 From Chris Dornan <cdornan@arm.com>.
3620 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3622 * Makefile.am (SUBDIRS): Define.
3623 (AM_MAKEFLAGS): Likewise.
3624 (Multilib support.): Add section.
3625 * Makefile.in: Rebuilt.
3626 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
3627 New variables. Set for gcc using -print-multi-lib. Export them
3629 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
3630 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
3632 (extra_compiler_flags_value, extra_compiler_flags): Check these
3633 for extra compiler options which need to be passed down in
3636 2000-04-16 Anthony Green <green@redhat.com>
3638 * configure: Rebuilt.
3639 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
3641 2000-04-14 Jakub Jelinek <jakub@redhat.com>
3643 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3644 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
3645 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
3646 Replace all void * sizeofs with sizeof(int).
3647 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
3648 different than DOUBLE.
3649 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
3650 (ffi_prep_args_v9): New function.
3651 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
3652 (ffi_V9_return_struct): New function.
3653 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
3654 32bit code (not yet cross-arch calls).
3655 * src/sparc/v8.S: Add struct return delay nop.
3657 * src/sparc/v9.S: New file.
3658 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
3659 is used on sparc64 only for structures larger than 32 bytes.
3660 Pass by reference for structures is done for structure arguments
3661 larger than 16 bytes.
3662 * src/ffitest.c (main): Use 64bit rint on sparc64.
3663 Run long long tests on sparc.
3664 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
3666 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
3668 * configure.in (sparc-*-linux*): New supported target.
3669 (sparc64-*-linux*): Likewise.
3670 * configure: Rebuilt.
3671 * Makefile.am: Add v9.S to SPARC files.
3672 * Makefile.in: Likewise.
3673 (LINK): Surround $(CCLD) into double quotes, so that multilib
3674 compiles work correctly.
3676 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
3678 * configure: Rebuilt.
3679 * configure.in: (i*86-*-solaris*): New libffi target. Patch
3680 proposed by Bryce McKinlay.
3682 2000-03-20 Tom Tromey <tromey@cygnus.com>
3684 * Makefile.in: Hand edit for java_raw_api.lo.
3686 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
3688 * config.guess, config.sub: Update from the gcc tree.
3689 Fix for PR libgcj/168.
3691 2000-03-03 Tom Tromey <tromey@cygnus.com>
3693 * Makefile.in: Fixed ia64 by hand.
3695 * configure: Rebuilt.
3696 * configure.in (--enable-multilib): New option.
3697 (libffi_basedir): New subst.
3698 (AC_OUTPUT): Added multilib code.
3700 2000-03-02 Tom Tromey <tromey@cygnus.com>
3702 * Makefile.in: Rebuilt.
3703 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
3706 2000-02-25 Hans Boehm <boehm@acm.org>
3708 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
3710 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
3712 (ffi_prep_raw_closure): Use ffi_translate_args, not
3713 ffi_closure_translate.
3714 * src/java_raw_api.c: New file.
3715 * src/ffitest.c (closure_test_fn): New function.
3716 (main): Define `rint' as long long on IA64. Added new test when
3717 FFI_CLOSURES is defined.
3718 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
3719 (ffi_abi): Recognize IA64.
3720 (ffi_raw): Added `flt' field.
3721 Added "Java raw API" code.
3722 * configure.in: Recognize ia64.
3723 * Makefile.am (TARGET_SRC_IA64): New macro.
3724 (libffi_la_common_SOURCES): Added java_raw_api.c.
3725 (libffi_la_SOURCES): Define in IA64 case.
3727 2000-01-04 Tom Tromey <tromey@cygnus.com>
3729 * Makefile.in: Rebuilt with newer automake.
3731 1999-12-31 Tom Tromey <tromey@cygnus.com>
3733 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
3735 1999-09-01 Tom Tromey <tromey@cygnus.com>
3737 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
3739 * fficonfig.h.in: Rebuilt.
3740 * configure: Rebuilt.
3741 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
3742 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
3743 * acconfig.h: Don't #undef PACKAGE or VERSION.
3745 1999-08-09 Anthony Green <green@cygnus.com>
3747 * include/ffi.h.in: Try to work around messy header problem
3748 with PACKAGE and VERSION.
3750 * configure: Rebuilt.
3751 * configure.in: Change version to 2.00-beta.
3753 * fficonfig.h.in: Rebuilt.
3754 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
3756 * src/x86/ffi.c (ffi_raw_call): Rename.
3758 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
3760 * src/x86/ffi.c (ffi_closure_SYSV): New function.
3761 (ffi_prep_incoming_args_SYSV): Ditto.
3762 (ffi_prep_closure): Ditto.
3763 (ffi_closure_raw_SYSV): Ditto.
3764 (ffi_prep_raw_closure): More ditto.
3765 (ffi_call_raw): Final ditto.
3767 * include/ffi.h.in: Add definitions for closure and raw API.
3769 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
3772 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
3774 * src/raw_api.c: New file.
3776 * include/ffi.h.in (ffi_raw): New type.
3777 (UINT_ARG, SINT_ARG): New defines.
3778 (ffi_closure, ffi_raw_closure): New types.
3779 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
3781 * configure.in: Add check for endianness and sizeof void*.
3783 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
3784 instead of directly.
3786 * configure: Rebuilt.
3788 Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
3790 * configure.in: Add x86 and powerpc BeOS configurations.
3791 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
3793 1999-05-09 Anthony Green <green@cygnus.com>
3795 * configure.in: Add warning about this being beta code.
3796 Remove src/Makefile.am from the picture.
3797 * configure: Rebuilt.
3799 * Makefile.am: Move logic from src/Makefile.am. Add changes
3800 to support libffi as a target library.
3801 * Makefile.in: Rebuilt.
3803 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
3804 Upgraded to new autoconf, automake, libtool.
3808 * LICENSE: Update copyright date.
3810 * src/Makefile.am, src/Makefile.in: Removed.
3812 1998-11-29 Anthony Green <green@cygnus.com>
3814 * include/ChangeLog: Removed.
3815 * src/ChangeLog: Removed.
3816 * src/mips/ChangeLog: Removed.
3817 * src/sparc/ChangeLog: Remboved.
3818 * src/x86/ChangeLog: Removed.
3820 * ChangeLog.v1: Created.