1 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4 (ffi_check_float_struct): Remove unused prototype.
6 2004-06-30 Geoffrey Keating <geoffk@apple.com>
8 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
9 character on Darwin, use '\n\t' instead.
11 2004-06-26 Matthias Klose <doko@debian.org>
13 * libtool-version: Fix typo in revision/age.
15 2004-06-17 Matthias Klose <doko@debian.org>
17 * libtool-version: New.
18 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
19 * Makefile.in: Regenerate.
21 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
23 * Makefile.am: Remove useless multilib rules.
24 * Makefile.in: Regenerate.
25 * aclocal.m4: Regenerate with automake 1.8.5.
26 * configure.ac: Remove useless multilib configury.
27 * configure: Regenerate.
29 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
31 * .cvsignore: New file.
33 2004-06-10 Jakub Jelinek <jakub@redhat.com>
35 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
37 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
40 2004-06-06 Sean McNeil <sean@mcneil.com>
42 * configure.ac: Add x86_64-*-freebsd* support.
43 * configure: Regenerate.
45 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
48 * configure.ac: Test for existence of mmap and sys/mman.h before
49 checking blacklist. Fix suggested by Jim Wilson.
50 * configure: Regenerate.
52 2004-04-26 Matt Austern <austern@apple.com>
54 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
56 * src/powerpc/darwin_closure.S: Likewise.
58 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
60 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
61 error. Reported by Thomas Heller <theller@python.net>.
62 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
63 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
65 2004-03-20 Matthias Klose <doko@debian.org>
67 * src/pa/linux.S: Fix typo.
69 2004-03-19 Matthias Klose <doko@debian.org>
71 * Makefile.am: Update.
72 * Makefile.in: Regenerate.
73 * src/pa/ffi.h.in: Remove.
74 * src/pa/ffitarget.h: New file.
76 2004-02-10 Randolph Chung <tausq@debian.org>
78 * Makefile.am: Add PA support.
79 * Makefile.in: Regenerate.
80 * include/Makefile.in: Regenerate.
81 * configure.ac: Add PA target.
82 * configure: Regenerate.
83 * src/pa/ffi.c: New file.
84 * src/pa/ffi.h.in: Add PA support.
85 * src/pa/linux.S: New file.
86 * prep_cif.c: Add PA support.
88 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
90 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
92 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
93 with ecif->cif->flags.
94 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
96 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
97 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
98 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
99 sc_retstruct2b): Add for 1 or 2-bytes struct case.
101 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
103 * configure.in: Rename file to ...
104 * configure.ac: ... this.
105 * fficonfig.h.in: Regenerate.
106 * Makefile.in: Regenerate.
107 * include/Makefile.in: Regenerate.
108 * testsuite/Makefile.in: Regenerate.
110 2004-03-12 Matt Austern <austern@apple.com>
112 * src/powerpc/darwin.S: Fix EH information so it corresponds to
113 changes in EH format resulting from addition of linkonce support.
114 * src/powerpc/darwin_closure.S: Likewise.
116 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
117 Paolo Bonzini <bonzini@gnu.org>
119 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
120 Remove VPATH. Remove rules for object files. Remove multilib support.
122 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
123 (AC_PREREQ): Bump version to 2.59.
124 (AC_INIT): Fill with version info and bug address.
125 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
126 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
127 De-precious CC so that the right flags are passed down to multilibs.
128 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
129 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
130 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
131 * configure: Rebuilt.
132 * aclocal.m4: Likewise.
133 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
134 * fficonfig.h.in: Likewise.
136 2004-03-11 Andreas Schwab <schwab@suse.de>
138 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
139 arguments from fp registers only for the first 8 parameter slots.
140 Don't convert a float parameter when passed in memory.
142 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
144 * configure: Regenerate for config/accross.m4 correction.
146 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
148 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
149 ecif->cif->bytes to bytes.
150 (ffi_prep_cif_machdep): Add braces around nested if statement.
152 2004-02-09 Alan Modra <amodra@bigpond.net.au>
154 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
156 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
157 (ffi_closure_helper_LINUX64): Fix typo.
158 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
160 * testsuite/libffi.call/float.c: Likewise.
161 * testsuite/libffi.call/float2.c: Likewise.
163 2004-02-08 Alan Modra <amodra@bigpond.net.au>
165 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
166 long double function return and long double arg handling.
167 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
168 Use "end_pfr" instead of "nf". Correct long double handling.
170 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
172 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
173 space for long double return value. Adjust stack frame and offsets.
174 Load f2 long double return.
176 2004-02-07 Alan Modra <amodra@bigpond.net.au>
178 * src/types.c: Use 16 byte long double for POWERPC64.
180 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
182 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
183 when the structure return address is passed in %o0.
184 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
185 (ffi_v9_layout_struct): Align the field following a nested structure
186 on a word boundary. Use memmove instead of memcpy.
187 (ffi_call): Update call to ffi_V9_return_struct.
188 (ffi_prep_closure): Define 'ctx' only for V8.
189 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
190 and ffi_closure_sparc_inner_v9.
191 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
192 Always skip the structure return address. For structures and long
193 doubles, copy the argument directly.
194 (ffi_closure_sparc_inner_v9): Skip the structure return address only
195 if required. Shift the maximum floating-point slot accordingly. For
196 big structures, copy the argument directly; otherwise, left-justify the
197 argument and call ffi_v9_layout_struct to lay out the structure on
199 * src/sparc/v8.S: Undef STACKFRAME before defining it.
200 (ffi_closure_v8): Pass the structure return address. Update call to
201 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
202 Skip the 'unimp' insn when returning long doubles and structures.
203 * src/sparc/v9.S: Undef STACKFRAME before defining it.
204 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
205 FFI_TYPE_INT handling. Load structures both in integers and
206 floating-point registers on return.
207 * README: Update status of the SPARC port.
209 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
211 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
213 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
215 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
217 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
218 value as of type ffi_arg, not unsigned int.
220 2004-01-21 Michael Ritzert <ritzert@t-online.de>
222 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
225 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
227 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
230 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
232 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
235 2003-12-10 Richard Henderson <rth@redhat.com>
237 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
238 size_t instead of int.
240 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
242 * testsuite/libffi.call/many_win32.c: Include <float.h>.
243 * testsuite/libffi.call/many_win32.c (main): Replace variable
244 int i with unsigned long ul.
246 * testsuite/libffi.call/cls_align_uint64.c: New test case.
247 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
248 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
249 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
250 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
251 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
252 * testsuite/libffi.call/cls_align_float.c: Likewise.
253 * testsuite/libffi.call/cls_align_double.c: Likewise.
254 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
255 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
257 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
260 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
261 Align arguments to 32 bits.
263 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
266 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
267 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
268 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
269 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
270 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
271 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
273 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
275 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
277 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
278 * testsuite/libffi.special/ffitestcxx.h: Likewise.
280 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
282 * Makefile.in: Rebuilt.
283 * configure: Likewise.
284 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
287 2003-11-21 Andreas Jaeger <aj@suse.de>
288 Andreas Tobler <a.tobler@schweiz.ch>
290 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
291 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
292 * Makefile.in: Rebuilt.
293 * aclocal.m4: Likewise.
294 * configure: Likewise.
295 * fficonfig.h.in: Likewise.
296 * testsuite/lib/libffi-dg.exp: Add include dir.
297 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
298 * testsuite/libffi.special/ffitestcxx.h: Likewise.
299 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
300 for ffi_closure if available.
301 * testsuite/libffi.call/closure_fn1.c: Likewise.
302 * testsuite/libffi.call/closure_fn2.c: Likewise.
303 * testsuite/libffi.call/closure_fn3.c: Likewise.
304 * testsuite/libffi.call/closure_fn4.c: Likewise.
305 * testsuite/libffi.call/closure_fn5.c: Likewise.
306 * testsuite/libffi.call/cls_12byte.c: Likewise.
307 * testsuite/libffi.call/cls_16byte.c: Likewise.
308 * testsuite/libffi.call/cls_18byte.c: Likewise.
309 * testsuite/libffi.call/cls_19byte.c: Likewise.
310 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
311 * testsuite/libffi.call/cls_20byte.c: Likewise.
312 * testsuite/libffi.call/cls_20byte1.c: Likewise.
313 * testsuite/libffi.call/cls_24byte.c: Likewise.
314 * testsuite/libffi.call/cls_2byte.c: Likewise.
315 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
316 * testsuite/libffi.call/cls_3byte1.c: Likewise.
317 * testsuite/libffi.call/cls_3byte2.c: Likewise.
318 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
319 * testsuite/libffi.call/cls_4byte.c: Likewise.
320 * testsuite/libffi.call/cls_5byte.c: Likewise.
321 * testsuite/libffi.call/cls_64byte.c: Likewise.
322 * testsuite/libffi.call/cls_6byte.c: Likewise.
323 * testsuite/libffi.call/cls_7byte.c: Likewise.
324 * testsuite/libffi.call/cls_8byte.c: Likewise.
325 * testsuite/libffi.call/cls_9byte1.c: Likewise.
326 * testsuite/libffi.call/cls_9byte2.c: Likewise.
327 * testsuite/libffi.call/cls_double.c: Likewise.
328 * testsuite/libffi.call/cls_float.c: Likewise.
329 * testsuite/libffi.call/cls_schar.c: Likewise.
330 * testsuite/libffi.call/cls_sint.c: Likewise.
331 * testsuite/libffi.call/cls_sshort.c: Likewise.
332 * testsuite/libffi.call/cls_uchar.c: Likewise.
333 * testsuite/libffi.call/cls_uint.c: Likewise.
334 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
335 * testsuite/libffi.call/cls_ushort.c: Likewise.
336 * testsuite/libffi.call/nested_struct.c: Likewise.
337 * testsuite/libffi.call/nested_struct1.c: Likewise.
338 * testsuite/libffi.call/nested_struct2.c: Likewise.
339 * testsuite/libffi.call/nested_struct3.c: Likewise.
340 * testsuite/libffi.call/problem1.c: Likewise.
341 * testsuite/libffi.special/unwindtest.cc: Likewise.
343 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
345 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
347 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
349 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
350 Add -lgcc_s to additional flags.
352 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
354 * configure.in, include/Makefile.am: PR libgcj/11147, install
355 the ffitarget.h header file in a gcc versioned and target
357 * configure: Regenerated.
358 * Makefile.in, include/Makefile.in: Likewise.
359 * testsuite/Makefile.in: Likewise.
361 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
363 * testsuite/libffi.call/closure_fn0.c: Print result and check
364 with dg-output to make debugging easier.
365 * testsuite/libffi.call/closure_fn1.c: Likewise.
366 * testsuite/libffi.call/closure_fn2.c: Likewise.
367 * testsuite/libffi.call/closure_fn3.c: Likewise.
368 * testsuite/libffi.call/closure_fn4.c: Likewise.
369 * testsuite/libffi.call/closure_fn5.c: Likewise.
370 * testsuite/libffi.call/cls_12byte.c: Likewise.
371 * testsuite/libffi.call/cls_16byte.c: Likewise.
372 * testsuite/libffi.call/cls_18byte.c: Likewise.
373 * testsuite/libffi.call/cls_19byte.c: Likewise.
374 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
375 * testsuite/libffi.call/cls_20byte.c: Likewise.
376 * testsuite/libffi.call/cls_20byte1.c: Likewise.
377 * testsuite/libffi.call/cls_24byte.c: Likewise.
378 * testsuite/libffi.call/cls_2byte.c: Likewise.
379 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
380 * testsuite/libffi.call/cls_3byte1.c: Likewise.
381 * testsuite/libffi.call/cls_3byte2.c: Likewise.
382 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
383 * testsuite/libffi.call/cls_4byte.c: Likewise.
384 * testsuite/libffi.call/cls_5byte.c: Likewise.
385 * testsuite/libffi.call/cls_64byte.c: Likewise.
386 * testsuite/libffi.call/cls_6byte.c: Likewise.
387 * testsuite/libffi.call/cls_7byte.c: Likewise.
388 * testsuite/libffi.call/cls_8byte.c: Likewise.
389 * testsuite/libffi.call/cls_9byte1.c: Likewise.
390 * testsuite/libffi.call/cls_9byte2.c: Likewise.
391 * testsuite/libffi.call/cls_double.c: Likewise.
392 * testsuite/libffi.call/cls_float.c: Likewise.
393 * testsuite/libffi.call/cls_schar.c: Likewise.
394 * testsuite/libffi.call/cls_sint.c: Likewise.
395 * testsuite/libffi.call/cls_sshort.c: Likewise.
396 * testsuite/libffi.call/cls_uchar.c: Likewise.
397 * testsuite/libffi.call/cls_uint.c: Likewise.
398 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
399 * testsuite/libffi.call/cls_ushort.c: Likewise.
400 * testsuite/libffi.call/problem1.c: Likewise.
402 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
405 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
407 * testsuite/libffi.call/cls_9byte2.c: New test case.
408 * testsuite/libffi.call/cls_9byte1.c: Likewise.
409 * testsuite/libffi.call/cls_64byte.c: Likewise.
410 * testsuite/libffi.call/cls_20byte1.c: Likewise.
411 * testsuite/libffi.call/cls_19byte.c: Likewise.
412 * testsuite/libffi.call/cls_18byte.c: Likewise.
413 * testsuite/libffi.call/closure_fn4.c: Likewise.
414 * testsuite/libffi.call/closure_fn5.c: Likewise.
415 * testsuite/libffi.call/cls_schar.c: Likewise.
416 * testsuite/libffi.call/cls_sint.c: Likewise.
417 * testsuite/libffi.call/cls_sshort.c: Likewise.
418 * testsuite/libffi.call/nested_struct2.c: Likewise.
419 * testsuite/libffi.call/nested_struct3.c: Likewise.
421 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
423 * testsuite/libffi.call/cls_double.c: Do a check on the result.
424 * testsuite/libffi.call/cls_uchar.c: Likewise.
425 * testsuite/libffi.call/cls_uint.c: Likewise.
426 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
427 * testsuite/libffi.call/cls_ushort.c: Likewise.
428 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
430 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
432 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
435 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
437 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
438 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
440 2003-10-22 David Daney <ddaney@avtrex.com>
442 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
443 __attribute__((__mode__(__SI__))) and friends.
445 2003-10-22 Andreas Schwab <schwab@suse.de>
447 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
449 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
451 * configure.in: AC_LINK_FILES(ffitarget.h).
452 * configure: Regenerate.
453 * Makefile.in: Likewise.
454 * include/Makefile.in: Likewise.
455 * testsuite/Makefile.in: Likewise.
456 * fficonfig.h.in: Likewise.
458 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
459 Richard Henderson <rth@redhat.com>
461 Avoid that ffi.h includes fficonfig.h.
463 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
464 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
465 (TARGET_SRC_MIPS_SGI): Removed.
466 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
468 (CLEANFILES): Removed.
469 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
471 * acconfig.h: Removed.
472 * configure.in: Compute sizeofs only for double and long double.
473 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
474 into AC_DEFINE instead of using acconfig.h. Create
475 include/ffitarget.h instead of include/fficonfig.h. Rename
476 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
477 AC_DEFINE EH_FRAME_FLAGS.
478 * include/Makefile.am (DISTCLEANFILES): New automake macro.
479 (hack_DATA): Add ffitarget.h.
480 * include/ffi.h.in: Remove all system specific definitions.
481 Declare raw API even if it is not installed, why bother?
482 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
483 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
484 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
485 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
486 * include/ffi_common.h (bool): Do not define.
487 (ffi_assert): Accept failed assertion.
488 (ffi_type_test): Return void and accept file/line.
489 (FFI_ASSERT): Pass stringized failed assertion.
490 (FFI_ASSERT_AT): New macro.
491 (FFI_ASSERT_VALID_TYPE): New macro.
492 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
493 UINT64, SINT64): Define here with gcc's __attribute__ macro
495 (FLOAT32, ALIGN): Define here instead of in ffi.h
496 * include/ffi-mips.h: Removed. Its content moved to
497 src/mips/ffitarget.h after separating assembly and C sections.
498 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
499 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
500 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
501 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
502 SIZEOF_ARG -> FFI_SIZEOF_ARG.
503 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
504 * src/debug.c (ffi_assert): Accept stringized failed assertion.
505 (ffi_type_test): Rewritten.
506 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
507 FFI_ASSERT_VALID_TYPE.
508 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
509 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
510 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
511 src/s390/ffitarget.h, src/sh/ffitarget.h,
512 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
513 src/x86/ffitarget.h: New files.
514 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
515 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
516 src/powerpc/aix.S, src/powerpc/darwin.S,
517 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
518 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
519 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
520 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
521 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
524 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
526 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
527 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
529 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
531 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
532 Used when FFI_DEBUG = 1.
534 2003-10-14 Alan Modra <amodra@bigpond.net.au>
536 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
539 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
541 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
542 FFI_MIPS_O32 for O32 ABI.
544 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
546 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
547 SPARC64. Cleanup whitespaces.
549 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
551 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
552 strongarm, xscale. Cleanup whitespaces.
553 * testsuite/libffi.call/closure_fn1.c: Likewise.
554 * testsuite/libffi.call/closure_fn2.c: Likewise.
555 * testsuite/libffi.call/closure_fn3.c: Likewise.
556 * testsuite/libffi.call/cls_12byte.c: Likewise.
557 * testsuite/libffi.call/cls_16byte.c: Likewise.
558 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
559 * testsuite/libffi.call/cls_20byte.c: Likewise.
560 * testsuite/libffi.call/cls_24byte.c: Likewise.
561 * testsuite/libffi.call/cls_2byte.c: Likewise.
562 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
563 * testsuite/libffi.call/cls_3byte1.c: Likewise.
564 * testsuite/libffi.call/cls_3byte2.c: Likewise.
565 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
566 * testsuite/libffi.call/cls_4byte.c: Likewise.
567 * testsuite/libffi.call/cls_5byte.c: Likewise.
568 * testsuite/libffi.call/cls_6byte.c: Likewise.
569 * testsuite/libffi.call/cls_7byte.c: Likewise.
570 * testsuite/libffi.call/cls_8byte.c: Likewise.
571 * testsuite/libffi.call/cls_double.c: Likewise.
572 * testsuite/libffi.call/cls_float.c: Likewise.
573 * testsuite/libffi.call/cls_uchar.c: Likewise.
574 * testsuite/libffi.call/cls_uint.c: Likewise.
575 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
576 * testsuite/libffi.call/cls_ushort.c: Likewise.
577 * testsuite/libffi.call/nested_struct.c: Likewise.
578 * testsuite/libffi.call/nested_struct1.c: Likewise.
579 * testsuite/libffi.call/problem1.c: Likewise.
580 * testsuite/libffi.special/unwindtest.cc: Likewise.
581 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
583 2003-09-18 David Edelsohn <edelsohn@gnu.org>
585 * src/powerpc/aix.S: Cleanup whitespaces.
586 * src/powerpc/aix_closure.S: Likewise.
588 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
590 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
591 * src/powerpc/darwin_closure.S: Likewise.
592 * src/powerpc/ffi_darwin.c: Likewise.
594 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
595 David Edelsohn <edelsohn@gnu.org>
597 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
598 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
600 * src/powerpc/darwin_closure.S: Likewise.
601 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
602 according to the Darwin/AIX ABI.
603 (ffi_prep_cif_machdep): Likewise.
604 (ffi_closure_helper_DARWIN): Likewise.
605 Remove the outgoing parameter stack logic. Simplify the evaluation
606 of the different CASE types.
607 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
608 statement in the trampoline code.
610 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
612 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
613 for the register size.
614 (ffi_closure_helper_SYSV): Handle the structure return value
616 (ffi_closure_helper_SYSV): Return the appropriate type when
617 the registers are used for the structure return value.
618 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
619 the 64-bit return value. Update copyright years.
621 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
623 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
624 srcdir for ffi_mips.h.
626 2003-09-12 Alan Modra <amodra@bigpond.net.au>
628 * src/prep_cif.c (initialize_aggregate): Include tail padding in
630 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
631 placement of float result.
632 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
633 cast of "resp" for big-endian 64 bit machines.
635 2003-09-11 Alan Modra <amodra@bigpond.net.au>
637 * src/types.c (double, longdouble): Merge identical SH and ARM
638 typedefs, and add POWERPC64.
639 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
640 struct split over gpr and rest.
641 (ffi_prep_cif_machdep): Correct intarg_count for structures.
642 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
644 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
646 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
649 2003-09-09 Alan Modra <amodra@bigpond.net.au>
651 * configure: Regenerate.
653 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
655 * Makefile.am: Remove build rules for ffitest.
656 * Makefile.in: Rebuilt.
658 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
660 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
661 about implicit declaration of abort().
663 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
665 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
666 * Makefile.in: Rebuilt.
667 * configure.in: Add dejagnu test framework.
668 * configure: Rebuilt.
670 * testsuite/Makefile.am: New file.
671 * testsuite/Makefile.in: Built
672 * testsuite/lib/libffi-dg.exp: New file.
673 * testsuite/config/default.exp: Likewise.
674 * testsuite/libffi.call/call.exp: Likewise.
675 * testsuite/libffi.call/ffitest.h: Likewise.
676 * testsuite/libffi.call/closure_fn0.c: Likewise.
677 * testsuite/libffi.call/closure_fn1.c: Likewise.
678 * testsuite/libffi.call/closure_fn2.c: Likewise.
679 * testsuite/libffi.call/closure_fn3.c: Likewise.
680 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
681 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
682 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
683 * testsuite/libffi.call/cls_2byte.c: Likewise.
684 * testsuite/libffi.call/cls_3byte1.c: Likewise.
685 * testsuite/libffi.call/cls_3byte2.c: Likewise.
686 * testsuite/libffi.call/cls_4byte.c: Likewise.
687 * testsuite/libffi.call/cls_5byte.c: Likewise.
688 * testsuite/libffi.call/cls_6byte.c: Likewise.
689 * testsuite/libffi.call/cls_7byte.c: Likewise.
690 * testsuite/libffi.call/cls_8byte.c: Likewise.
691 * testsuite/libffi.call/cls_12byte.c: Likewise.
692 * testsuite/libffi.call/cls_16byte.c: Likewise.
693 * testsuite/libffi.call/cls_20byte.c: Likewise.
694 * testsuite/libffi.call/cls_24byte.c: Likewise.
695 * testsuite/libffi.call/cls_double.c: Likewise.
696 * testsuite/libffi.call/cls_float.c: Likewise.
697 * testsuite/libffi.call/cls_uchar.c: Likewise.
698 * testsuite/libffi.call/cls_uint.c: Likewise.
699 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
700 * testsuite/libffi.call/cls_ushort.c: Likewise.
701 * testsuite/libffi.call/float.c: Likewise.
702 * testsuite/libffi.call/float1.c: Likewise.
703 * testsuite/libffi.call/float2.c: Likewise.
704 * testsuite/libffi.call/many.c: Likewise.
705 * testsuite/libffi.call/many_win32.c: Likewise.
706 * testsuite/libffi.call/nested_struct.c: Likewise.
707 * testsuite/libffi.call/nested_struct1.c: Likewise.
708 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
709 * testsuite/libffi.call/problem1.c: Likewise.
710 * testsuite/libffi.call/promotion.c: Likewise.
711 * testsuite/libffi.call/return_ll.c: Likewise.
712 * testsuite/libffi.call/return_sc.c: Likewise.
713 * testsuite/libffi.call/return_uc.c: Likewise.
714 * testsuite/libffi.call/strlen.c: Likewise.
715 * testsuite/libffi.call/strlen_win32.c: Likewise.
716 * testsuite/libffi.call/struct1.c: Likewise.
717 * testsuite/libffi.call/struct2.c: Likewise.
718 * testsuite/libffi.call/struct3.c: Likewise.
719 * testsuite/libffi.call/struct4.c: Likewise.
720 * testsuite/libffi.call/struct5.c: Likewise.
721 * testsuite/libffi.call/struct6.c: Likewise.
722 * testsuite/libffi.call/struct7.c: Likewise.
723 * testsuite/libffi.call/struct8.c: Likewise.
724 * testsuite/libffi.call/struct9.c: Likewise.
725 * testsuite/libffi.special/special.exp: New file.
726 * testsuite/libffi.special/ffitestcxx.h: Likewise.
727 * testsuite/libffi.special/unwindtest.cc: Likewise.
730 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
732 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
735 2003-08-02 Alan Modra <amodra@bigpond.net.au>
737 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
739 (ffi_closure_helper_LINUX64): Likewise.
740 * src/powerpc/linux64.S: Remove code writing to parm save area.
741 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
742 address in lr from ffi_closure_helper_LINUX64 call to calculate
743 table address. Optimize function tail.
745 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
747 * src/sparc/ffi.c: Handle all floating point registers.
748 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
750 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
752 * README: Note that libffi is not part of GCC. Update the project
755 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
757 * src/powerpc/ppc_closure.S: Include ffi.h.
759 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
761 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
762 Use C style comments.
764 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
766 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
767 * Makefile.in: Regenerate.
768 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
769 * configure: Regenerate.
770 * include/ffi.h.in: Add SHmedia support.
771 * src/sh64/ffi.c: New file.
772 * src/sh64/sysv.S: New file.
774 2003-05-16 Jakub Jelinek <jakub@redhat.com>
776 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
778 * configure: Rebuilt.
779 * fficonfig.h.in: Rebuilt.
780 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
781 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
782 * src/powerpc/linux64.S: Likewise.
783 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
784 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
785 if -fpic/-fPIC/-mrelocatable.
786 * src/powerpc/powerpc_closure.S: Likewise.
787 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
788 #write in .eh_frame flags.
789 * src/sparc/v9.S: Likewise.
790 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
791 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
792 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
794 2003-05-07 Jeff Sturm <jsturm@one-point.com>
796 Fixes PR bootstrap/10656
797 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
798 support for .register pseudo-op.
799 * src/sparc/v8.S: Use it.
800 * fficonfig.h.in: Rebuilt.
801 * configure: Rebuilt.
803 2003-04-18 Jakub Jelinek <jakub@redhat.com>
805 * include/ffi.h.in (POWERPC64): Define if 64-bit.
806 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
807 Make it the default on POWERPC64.
808 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
809 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
810 * configure: Rebuilt.
811 * src/powerpc/ffi.c (hidden): Define.
812 (ffi_prep_args_SYSV): Renamed from
813 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
814 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
815 ASM_NEEDS_REGISTERS64): New.
816 (ffi_prep_args64): New function.
817 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
818 (ffi_call): Likewise.
819 (ffi_prep_closure): Likewise.
820 (flush_icache): Surround by #ifndef POWERPC64.
821 (ffi_dblfl): New union type.
822 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
823 (ffi_closure_helper_LINUX64): New function.
824 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
826 * src/powerpc/sysv.S: Likewise.
827 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
828 * src/powerpc/linux64.S: New file.
829 * src/powerpc/linux64_closure.S: New file.
830 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
831 src/powerpc/linux64_closure.S.
832 (TARGET_SRC_POWERPC): Likewise.
834 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
835 closure_test_fn3): Fix result printing on big-endian 64-bit
837 (main): Print tst2_arg instead of uninitialized tst2_result.
839 * src/ffitest.c (main): Hide what closure pointer really points to
842 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
844 * configure.in (arm-*-netbsdelf*): Add configuration.
845 (configure): Regenerated.
847 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
849 * include/Makefile.in: Regenerate.
851 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
853 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
855 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
856 Receive closure pointer through parameter, read args using
858 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
860 2003-03-12 Andreas Schwab <schwab@suse.de>
862 * configure.in: Avoid trailing /. in toolexeclibdir.
863 * configure: Rebuilt.
865 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
867 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
869 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
871 * libffi/src/powerpc/darwin_closure.S:
872 Fix alignement bug, allocate 8 bytes for the result.
873 * libffi/src/powerpc/aix_closure.S:
875 * libffi/src/powerpc/ffi_darwin.c:
876 Update stackframe description for aix/darwin_closure.S.
878 2003-02-06 Jakub Jelinek <jakub@redhat.com>
880 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
883 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
884 Andreas Schwab <schwab@suse.de>
886 * configure.in: Adjust command to source config-ml.in to account
887 for changes to the libffi_basedir definition.
888 (libffi_basedir): Remove ${srcdir} from value and include trailing
891 * configure: Regenerate.
893 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
895 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
897 2003-01-28 Andrew Haley <aph@redhat.com>
899 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
900 * src/x86/ffi64.c (ffi_prep_closure): New.
901 (ffi_closure_UNIX64_inner): New.
902 * src/x86/unix64.S (ffi_closure_UNIX64): New.
904 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
906 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
907 Remove USE_LIBDIR conditional.
908 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
909 * Makefile.in, configure: Rebuilt.
911 2003-01027 David Edelsohn <edelsohn@gnu.org>
913 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
914 * Makefile.in: Regenerate.
916 2003-01-22 Andrew Haley <aph@redhat.com>
918 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
921 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
923 * src/powerpc/darwin.S: Add unwind info.
924 * src/powerpc/darwin_closure.S: Likewise.
926 2003-01-14 Andrew Haley <aph@redhat.com>
928 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
929 (ffi_prep_cif_machdep): Likewise.
930 * src/x86/unix64.S: Add unwind info.
932 2003-01-14 Andreas Jaeger <aj@suse.de>
934 * src/ffitest.c (main): Only use ffi_closures if those are
937 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
939 * libffi/src/ffitest.c
940 add closure testcases
942 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
944 * libffi/src/powerpc/ffi.c
945 fix alignment bug for float (4 byte aligned iso 8 byte)
947 2003-01-09 Geoffrey Keating <geoffk@apple.com>
949 * src/powerpc/ffi_darwin.c: Remove RCS version string.
950 * src/powerpc/darwin.S: Remove RCS version string.
952 2003-01-03 Jeff Sturm <jsturm@one-point.com>
954 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
955 * src/ffitest.c (main): Use static storage for closure.
956 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
957 * src/sparc/v8.S (ffi_closure_v8): New.
958 * src/sparc/v9.S (ffi_closure_v9): New.
960 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
962 * include/ffi.h.in: Added FFI_STDCALL ffi_type
963 enumeration for X86_WIN32.
964 * src/x86/win32.S: Added ffi_call_STDCALL function
966 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
967 switch cases for recognising FFI_STDCALL and
968 calling ffi_call_STDCALL if target is X86_WIN32.
969 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
970 stdcall versions of the "my_strlen" and "many"
971 test functions (for X86_WIN32).
972 Added test cases to test stdcall invocation using
975 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
977 * src/sh/sysv.S: Add DWARF2 unwind info.
979 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
981 * src/s390/sysv.S (.eh_frame section): Make section read-only.
983 2002-11-26 Jim Wilson <wilson@redhat.com>
985 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
987 2002-11-23 H.J. Lu <hjl@gnu.org>
989 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
990 Include ../config/accross.m4.
991 * aclocal.m4; Rebuild.
992 * configure: Likewise.
994 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
996 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
998 2002-11-11 DJ Delorie <dj@redhat.com>
1000 * configure.in: Look for common files in the right place.
1002 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1004 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
1005 raw data as _Jv_word values, not ffi_raw.
1006 (ffi_java_ptrarray_to_raw): Likewise.
1007 (ffi_java_rvalue_to_raw): New function.
1008 (ffi_java_raw_call): Call it.
1009 (ffi_java_raw_to_rvalue): New function.
1010 (ffi_java_translate_args): Call it.
1011 * src/ffitest.c (closure_test_fn): Interpret return value
1012 as ffi_arg, not int.
1013 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
1014 FFI_TYPE_POINTER case.
1015 (ffi_closure_helper_SYSV): Likewise. Also, assume return
1016 values extended to word size.
1018 2002-10-02 Andreas Jaeger <aj@suse.de>
1020 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
1022 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
1024 * include/ffi.h.in: Fix i386 win32 compilation.
1026 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
1028 * configure.in: Add s390x-*-linux-* target.
1029 * configure: Regenerate.
1030 * include/ffi.h.in: Define S390X for s390x targets.
1031 (FFI_CLOSURES): Define for s390/s390x.
1032 (FFI_TRAMPOLINE_SIZE): Likewise.
1033 (FFI_NATIVE_RAW_API): Likewise.
1034 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
1035 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
1036 * src/s390/ffi.c: Major rework of existing code. Add support for
1037 s390x targets. Add closure support.
1038 * src/s390/sysv.S: Likewise.
1040 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
1042 * src/arm/sysv.S: Fix typo.
1044 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
1046 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
1047 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
1048 (ffi_call_SYSV): Handle soft-float.
1050 2002-09-27 Bo Thorsen <bo@suse.de>
1052 * include/ffi.h.in: Fix multilib x86-64 support.
1054 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1056 * Makefile.am (all-multi): Fix multilib parallel build.
1058 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
1060 * configure.in (sh[34]*-*-linux*): Add brackets.
1061 * configure: Regenerate.
1063 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
1065 * Makefile.am: Add SH support.
1066 * Makefile.in: Regenerate.
1067 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
1068 * configure: Regenerate.
1069 * include/ffi.h.in: Add SH support.
1070 * src/sh/ffi.c: New file.
1071 * src/sh/sysv.S: New file.
1072 * src/types.c: Add SH support.
1074 2002-07-16 Bo Thorsen <bo@suse.de>
1076 * src/x86/ffi64.c: New file that adds x86-64 support.
1077 * src/x86/unix64.S: New file that handles argument setup for
1079 * src/x86/sysv.S: Don't use this on x86-64.
1080 * src/x86/ffi.c: Don't use this on x86-64.
1082 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
1084 * src/ffitest.c (struct6): New test that tests a special case in
1086 (struct7): Likewise.
1087 (struct8): Likewise.
1088 (struct9): Likewise.
1089 (closure_test_fn): Silence warning about this when it's not used.
1090 (main): Add the new tests.
1091 (main): Fix a couple of wrong casts and silence some compiler warnings.
1092 * include/ffi.h.in: Add x86-64 ABI definition.
1093 * fficonfig.h.in: Regenerate.
1094 * Makefile.am: Add x86-64 support.
1095 * configure.in: Likewise.
1096 * Makefile.in: Regenerate.
1097 * configure: Likewise.
1099 2002-06-24 Bo Thorsen <bo@suse.de>
1101 * src/types.c: Merge settings for similar architectures.
1102 Add x86-64 sizes and alignments.
1104 2002-06-23 Bo Thorsen <bo@suse.de>
1106 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
1107 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
1108 * src/mips/ffi.c (ffi_prep_args): Likewise.
1109 * src/m68k/ffi.c (ffi_prep_args): Likewise.
1111 2002-07-18 H.J. Lu (hjl@gnu.org)
1113 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
1114 (libffi_la_SOURCES): Support MIPS_LINUX.
1115 (libffi_convenience_la_SOURCES): Likewise.
1116 * Makefile.in: Regenerated.
1118 * configure.in (mips64*-*): Skip.
1119 (mips*-*-linux*): New.
1120 * configure: Regenerated.
1122 * src/mips/ffi.c: Include <sgidefs.h>.
1124 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1126 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
1128 2002-05-27 Roger Sayle <roger@eyesopen.com>
1130 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
1132 2002-05-27 Bo Thorsen <bo@suse.de>
1134 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
1137 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
1139 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
1140 beginning of function (for older apple cc).
1142 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1144 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1145 script entry, and set LD to it when configuring multilibs.
1146 * configure: Rebuilt.
1148 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1150 * configure.in (sparc64-*-netbsd*): Add target.
1151 (sparc-*-netbsdelf*): Likewise.
1152 * configure: Regenerate.
1154 2002-04-28 David S. Miller <davem@redhat.com>
1156 * configure.in, configure: Fix SPARC test in previous change.
1158 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
1160 * Makefile.am: Add Linux for S/390 support.
1161 * Makefile.in: Regenerate.
1162 * configure.in: Add Linux for S/390 support.
1163 * configure: Regenerate.
1164 * include/ffi.h.in: Add Linux for S/390 support.
1165 * src/s390/ffi.c: New file from libffi CVS tree.
1166 * src/s390/sysv.S: New file from libffi CVS tree.
1168 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1170 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
1172 * src/sparc/v8.S: Use it.
1173 * src/sparc/v9.S: Likewise.
1174 * fficonfig.h.in: Rebuilt.
1175 * configure: Rebuilt.
1177 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
1179 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1181 * src/ia64/unix.S: Add unwind information. Fix comments.
1182 Save sp in a way that's compatible with unwind info.
1183 (ffi_call_unix): Correctly restore sp in all cases.
1184 * src/ia64/ffi.c: Add, fix comments.
1186 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1188 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1190 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1192 * configure.in (alpha*-*-netbsd*): Add target.
1193 * configure: Regenerate.
1195 2002-04-04 Jeff Sturm <jsturm@one-point.com>
1197 * src/sparc/v8.S: Add unwind info.
1198 * src/sparc/v9.S: Likewise.
1200 2002-03-30 Krister Walfridsson <cato@df.lth.se>
1202 * configure.in: Enable i*86-*-netbsdelf*.
1203 * configure: Rebuilt.
1205 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
1208 * src/mips/n32.s: Delete
1209 * src/mips/o32.s: Delete
1211 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
1213 * configure.in: Enable alpha*-*-freebsd*.
1214 * configure: Rebuilt.
1216 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1218 * Makefile.am: libfficonvenience -> libffi_convenience.
1219 * Makefile.in: Rebuilt.
1221 * Makefile.am: Define ffitest_OBJECTS.
1222 * Makefile.in: Rebuilt.
1224 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
1225 David Edelsohn <edelsohn@gnu.org>
1227 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1228 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1229 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1230 * Makefile.in: Regenerate.
1231 * include/ffi.h.in: Add AIX and Darwin closure definitions.
1232 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1233 (flush_icache, flush_range): New functions.
1234 (ffi_closure_helper_DARWIN): New function.
1235 * src/powerpc/aix_closure.S: New file.
1236 * src/powerpc/darwin_closure.S: New file.
1238 2002-02-24 Jeff Sturm <jsturm@one-point.com>
1240 * include/ffi.h.in: Add typedef for ffi_arg.
1241 * src/ffitest.c (main): Declare rint with ffi_arg.
1243 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
1245 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1246 number of GPRs for floating-point arguments.
1248 2002-01-31 Anthony Green <green@redhat.com>
1250 * configure: Rebuilt.
1251 * configure.in: Replace CHECK_SIZEOF and endian tests with
1252 cross-compiler friendly macros.
1253 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1256 2002-01-18 David Edelsohn <edelsohn@gnu.org>
1258 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1259 * src/powerpc/aix.S (ffi_call_DARWIN): New.
1261 2002-01-17 David Edelsohn <edelsohn@gnu.org>
1263 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1264 (TARGET_SRC_POWERPC_AIX): New.
1265 (POWERPC_AIX): New stanza.
1266 * Makefile.in: Regenerate.
1267 * configure.in: Add AIX case.
1268 * configure: Regenerate.
1269 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1270 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1271 size. Fix "long double" support.
1272 (ffi_call): Add FFI_AIX case.
1273 * src/powerpc/aix.S: New.
1275 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
1277 Implement Darwin PowerPC ABI.
1278 * configure.in: Handle powerpc-*-darwin*.
1279 * Makefile.am: Set source files for POWERPC_DARWIN.
1280 * configure: Rebuilt.
1281 * Makefile.in: Rebuilt.
1282 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1284 * src/powerpc/darwin.S: New file.
1285 * src/powerpc/ffi_darwin.c: New file.
1287 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1289 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1291 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1293 * src/x86/sysv.S: Avoid gas-only .balign directive.
1294 Use C style comments.
1296 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1298 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1299 Fixes PR bootstrap/3563.
1301 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1303 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1305 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1307 * configure.in: Recognize sparc*-sun-* host.
1308 * configure: Regenerate.
1310 2001-06-06 Andrew Haley <aph@redhat.com>
1312 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
1314 2001-06-03 Andrew Haley <aph@redhat.com>
1316 * src/alpha/osf.S: Add unwind info.
1317 * src/powerpc/sysv.S: Add unwind info.
1318 * src/powerpc/ppc_closure.S: Likewise.
1320 2000-05-31 Jeff Sturm <jsturm@one-point.com>
1322 * configure.in: Fix AC_ARG_ENABLE usage.
1323 * configure: Rebuilt.
1325 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1327 * configure.in: Remove warning about beta code.
1328 * configure: Rebuilt.
1330 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
1332 * src/ia64/unix.S: Restore stack pointer when returning from
1334 * src/ia64/ffi.c: Fix typo in comment.
1336 2001-04-18 Jim Wilson <wilson@redhat.com>
1338 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1339 to eliminate RAW DV.
1341 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1343 * Makefile.am: Make a libtool convenience library.
1344 * Makefile.in: Rebuilt.
1346 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
1348 * configure.in: Use different syntax for subdirectory creation.
1349 * configure: Rebuilt.
1351 2001-03-27 Jon Beniston <jon@beniston.com>
1353 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1354 * configure: Rebuilt.
1355 * Makefile.am: Added X86_WIN32 target support.
1356 * Makefile.in: Rebuilt.
1358 * include/ffi.h.in: Added X86_WIN32 target support.
1360 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1361 * src/types.c: Added X86_WIN32 target support.
1363 * src/x86/win32.S: New file. Based on sysv.S, but with EH
1364 stuff removed and made to work with CygWin's gas.
1366 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
1368 * configure.in: Make target subdirectory in build dir.
1369 * Makefile.am: Override suffix based rules to specify correct output
1371 * Makefile.in: Rebuilt.
1372 * configure: Rebuilt.
1374 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1376 * src/powerpc/ppc_closure.S: New file.
1377 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1378 involving long long and register pairs.
1379 (ffi_prep_closure): New function.
1380 (flush_icache): Likewise.
1381 (ffi_closure_helper_SYSV): Likewise.
1382 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1383 (FFI_TRAMPOLINE_SIZE): Likewise.
1384 (FFI_NATIVE_RAW_API): Likewise.
1385 * Makefile.in: Rebuilt.
1386 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1387 (TARGET_SRC_POWERPC): Likewise.
1389 2001-03-19 Tom Tromey <tromey@redhat.com>
1391 * Makefile.in: Rebuilt.
1392 * Makefile.am (ffitest_LDFLAGS): New macro.
1394 2001-03-02 Nick Clifton <nickc@redhat.com>
1396 * include/ffi.h.in: Remove RCS ident string.
1397 * include/ffi_mips.h: Remove RCS ident string.
1398 * src/debug.c: Remove RCS ident string.
1399 * src/ffitest.c: Remove RCS ident string.
1400 * src/prep_cif.c: Remove RCS ident string.
1401 * src/types.c: Remove RCS ident string.
1402 * src/alpha/ffi.c: Remove RCS ident string.
1403 * src/alpha/osf.S: Remove RCS ident string.
1404 * src/arm/ffi.c: Remove RCS ident string.
1405 * src/arm/sysv.S: Remove RCS ident string.
1406 * src/mips/ffi.c: Remove RCS ident string.
1407 * src/mips/n32.S: Remove RCS ident string.
1408 * src/mips/o32.S: Remove RCS ident string.
1409 * src/sparc/ffi.c: Remove RCS ident string.
1410 * src/sparc/v8.S: Remove RCS ident string.
1411 * src/sparc/v9.S: Remove RCS ident string.
1412 * src/x86/ffi.c: Remove RCS ident string.
1413 * src/x86/sysv.S: Remove RCS ident string.
1415 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1417 * include/ffi.h.in: Change sourceware.cygnus.com references to
1420 2000-12-09 Richard Henderson <rth@redhat.com>
1422 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1423 (ffi_closure_osf_inner): Index rather than increment avalue
1424 and arg_types. Give ffi_closure_osf the raw return value type.
1425 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1428 2000-12-07 Richard Henderson <rth@redhat.com>
1430 * src/raw_api.c (ffi_translate_args): Fix typo.
1431 (ffi_prep_closure): Likewise.
1433 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1434 FFI_TRAMPOLINE_SIZE.
1435 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1436 cif->bytes for new ffi_call_osf implementation.
1437 (ffi_prep_args): Absorb into ...
1438 (ffi_call): ... here. Do all stack allocation here and
1439 avoid a callback function.
1440 (ffi_prep_closure, ffi_closure_osf_inner): New.
1441 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1442 (ffi_closure_osf): New.
1444 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1446 * config.guess, config.sub, install-sh: Removed.
1447 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1448 * Makefile.in: Rebuilt.
1450 * acinclude.m4: Include libtool macros from the top level.
1451 * aclocal.m4, configure: Rebuilt.
1453 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1455 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1456 * configure: Rebuilt.
1458 2000-05-11 Scott Bambrough <scottb@netwinder.org>
1460 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1461 memory correctly. Use conditional instructions, not branches where
1464 2000-05-04 Tom Tromey <tromey@cygnus.com>
1466 * configure: Rebuilt.
1467 * configure.in: Match `arm*-*-linux-*'.
1468 From Chris Dornan <cdornan@arm.com>.
1470 2000-04-28 Jakub Jelinek <jakub@redhat.com>
1472 * Makefile.am (SUBDIRS): Define.
1473 (AM_MAKEFLAGS): Likewise.
1474 (Multilib support.): Add section.
1475 * Makefile.in: Rebuilt.
1476 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
1477 New variables. Set for gcc using -print-multi-lib. Export them
1479 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1480 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1482 (extra_compiler_flags_value, extra_compiler_flags): Check these
1483 for extra compiler options which need to be passed down in
1486 2000-04-16 Anthony Green <green@redhat.com>
1488 * configure: Rebuilt.
1489 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1491 2000-04-14 Jakub Jelinek <jakub@redhat.com>
1493 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
1494 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1495 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1496 Replace all void * sizeofs with sizeof(int).
1497 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1498 different than DOUBLE.
1499 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1500 (ffi_prep_args_v9): New function.
1501 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1502 (ffi_V9_return_struct): New function.
1503 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1504 32bit code (not yet cross-arch calls).
1505 * src/sparc/v8.S: Add struct return delay nop.
1507 * src/sparc/v9.S: New file.
1508 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1509 is used on sparc64 only for structures larger than 32 bytes.
1510 Pass by reference for structures is done for structure arguments
1511 larger than 16 bytes.
1512 * src/ffitest.c (main): Use 64bit rint on sparc64.
1513 Run long long tests on sparc.
1514 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1516 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1518 * configure.in (sparc-*-linux*): New supported target.
1519 (sparc64-*-linux*): Likewise.
1520 * configure: Rebuilt.
1521 * Makefile.am: Add v9.S to SPARC files.
1522 * Makefile.in: Likewise.
1523 (LINK): Surround $(CCLD) into double quotes, so that multilib
1524 compiles work correctly.
1526 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
1528 * configure: Rebuilt.
1529 * configure.in: (i*86-*-solaris*): New libffi target. Patch
1530 proposed by Bryce McKinlay.
1532 2000-03-20 Tom Tromey <tromey@cygnus.com>
1534 * Makefile.in: Hand edit for java_raw_api.lo.
1536 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
1538 * config.guess, config.sub: Update from the gcc tree.
1539 Fix for PR libgcj/168.
1541 2000-03-03 Tom Tromey <tromey@cygnus.com>
1543 * Makefile.in: Fixed ia64 by hand.
1545 * configure: Rebuilt.
1546 * configure.in (--enable-multilib): New option.
1547 (libffi_basedir): New subst.
1548 (AC_OUTPUT): Added multilib code.
1550 2000-03-02 Tom Tromey <tromey@cygnus.com>
1552 * Makefile.in: Rebuilt.
1553 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
1556 2000-02-25 Hans Boehm <boehm@acm.org>
1558 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
1560 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
1562 (ffi_prep_raw_closure): Use ffi_translate_args, not
1563 ffi_closure_translate.
1564 * src/java_raw_api.c: New file.
1565 * src/ffitest.c (closure_test_fn): New function.
1566 (main): Define `rint' as long long on IA64. Added new test when
1567 FFI_CLOSURES is defined.
1568 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
1569 (ffi_abi): Recognize IA64.
1570 (ffi_raw): Added `flt' field.
1571 Added "Java raw API" code.
1572 * configure.in: Recognize ia64.
1573 * Makefile.am (TARGET_SRC_IA64): New macro.
1574 (libffi_la_common_SOURCES): Added java_raw_api.c.
1575 (libffi_la_SOURCES): Define in IA64 case.
1577 2000-01-04 Tom Tromey <tromey@cygnus.com>
1579 * Makefile.in: Rebuilt with newer automake.
1581 1999-12-31 Tom Tromey <tromey@cygnus.com>
1583 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
1585 1999-09-01 Tom Tromey <tromey@cygnus.com>
1587 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
1589 * fficonfig.h.in: Rebuilt.
1590 * configure: Rebuilt.
1591 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
1592 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
1593 * acconfig.h: Don't #undef PACKAGE or VERSION.
1595 1999-08-09 Anthony Green <green@cygnus.com>
1597 * include/ffi.h.in: Try to work around messy header problem
1598 with PACKAGE and VERSION.
1600 * configure: Rebuilt.
1601 * configure.in: Change version to 2.00-beta.
1603 * fficonfig.h.in: Rebuilt.
1604 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
1606 * src/x86/ffi.c (ffi_raw_call): Rename.
1608 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
1610 * src/x86/ffi.c (ffi_closure_SYSV): New function.
1611 (ffi_prep_incoming_args_SYSV): Ditto.
1612 (ffi_prep_closure): Ditto.
1613 (ffi_closure_raw_SYSV): Ditto.
1614 (ffi_prep_raw_closure): More ditto.
1615 (ffi_call_raw): Final ditto.
1617 * include/ffi.h.in: Add definitions for closure and raw API.
1619 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
1622 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
1624 * src/raw_api.c: New file.
1626 * include/ffi.h.in (ffi_raw): New type.
1627 (UINT_ARG, SINT_ARG): New defines.
1628 (ffi_closure, ffi_raw_closure): New types.
1629 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
1631 * configure.in: Add check for endianness and sizeof void*.
1633 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
1634 instead of directly.
1636 * configure: Rebuilt.
1638 Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
1640 * configure.in: Add x86 and powerpc BeOS configurations.
1641 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
1643 1999-05-09 Anthony Green <green@cygnus.com>
1645 * configure.in: Add warning about this being beta code.
1646 Remove src/Makefile.am from the picture.
1647 * configure: Rebuilt.
1649 * Makefile.am: Move logic from src/Makefile.am. Add changes
1650 to support libffi as a target library.
1651 * Makefile.in: Rebuilt.
1653 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
1654 Upgraded to new autoconf, automake, libtool.
1658 * LICENSE: Update copyright date.
1660 * src/Makefile.am, src/Makefile.in: Removed.
1662 1998-11-29 Anthony Green <green@cygnus.com>
1664 * include/ChangeLog: Removed.
1665 * src/ChangeLog: Removed.
1666 * src/mips/ChangeLog: Removed.
1667 * src/sparc/ChangeLog: Remboved.
1668 * src/x86/ChangeLog: Removed.
1670 * ChangeLog.v1: Created.