1 2005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
4 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
5 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
7 2005-07-05 Randolph Chung <tausq@debian.org>
9 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
10 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
11 structures. Kill compilation warnings.
12 (ffi_closure_inner_LINUX): Print return values as hex in debug
13 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
14 Properly handle 5-7 byte structure returns.
15 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
16 (FFI_TYPE_SMALL_STRUCT2): Remove.
17 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
18 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
19 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
20 (checksmst1, checksmst2): Remove.
21 (checksmst3): Optimize handling of 3-byte struct returns.
22 (checksmst567): Properly handle 5-7 byte struct returns.
24 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27 * src/mips/n32.S: Enforce PIC code.
28 * src/mips/o32.S: Likewise.
30 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
33 * configure: Regenerate.
35 2005-06-01 Alan Modra <amodra@bigpond.net.au>
37 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
38 to call ffi_closure_helper_SYSV. Append @local instead.
39 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
41 2005-05-17 Kelley Cook <kcook@gcc.gnu.org>
43 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
44 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
45 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
46 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
47 include/Makefile.in, testsuite/Makefile.in: Regenerate.
49 2005-05-09 Mike Stump <mrs@apple.com>
51 * configure: Regenerate.
53 2005-05-08 Richard Henderson <rth@redhat.com>
56 * src/alpha/osf.S: Update unwind into to match code.
58 2005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
59 Richard Henderson <rth@redhat.com>
61 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
63 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
64 (ffi_prep_closure): Set carry bit if sse-used flag set.
65 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
66 Only load sse registers if ssecount non-zero.
67 (ffi_closure_unix64): Only save sse registers if carry set on entry.
69 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
71 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
72 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
73 * configure: Regenerate.
75 2005-04-20 Hans-Peter Nilsson <hp@axis.com>
77 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
78 have Tcl8.3-compatible intermediate variable.
80 2005-04-18 Simon Posnjak <simon.posnjak@siol.net>
81 Hans-Peter Nilsson <hp@axis.com>
83 * Makefile.am: Add CRIS support.
84 * configure.ac: Likewise.
85 * Makefile.in, configure, testsuite/Makefile.in,
86 include/Makefile.in: Regenerate.
87 * src/cris: New directory.
88 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
89 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
91 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
92 \r?\n in output tests.
94 2005-04-12 Mike Stump <mrs@apple.com>
96 * configure: Regenerate.
98 2005-03-30 Hans Boehm <Hans.Boehm@hp.com>
100 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
102 2005-03-30 Steve Ellcey <sje@cup.hp.com>
104 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
106 * src/ia64/unix.S (ffi_closure_unix): Extend gp
107 to 64 bits in ILP32 mode.
108 Load 64 bits even for short data.
110 2005-03-23 Mike Stump <mrs@apple.com>
112 * src/powerpc/darwin.S: Update for -m64 multilib.
113 * src/powerpc/darwin_closure.S: Likewise.
115 2005-03-21 Zack Weinberg <zack@codesourcery.com>
117 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
118 Do not set tool_include_dir.
119 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
121 * include/Makefile.am: Set gcc_version and toollibffidir.
122 * include/Makefile.in: Regenerate.
124 2005-02-22 Andrew Haley <aph@redhat.com>
126 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
127 odd-numbered register pairs for 64-bit integer types.
129 2005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
132 * testsuite/libffi.call/return_ll1.c: New test case.
134 2005-02-11 Janis Johnson <janis187@us.ibm.com>
136 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
137 * testsuite/libffi.call/float.c: Ditto.
138 * testsuite/libffi.call/float2.c: Ditto.
139 * testsuite/libffi.call/float3.c: Ditto.
141 2005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
143 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
145 2005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
147 * testsuite/libffi.special/special.exp (cxx_options): Add
150 2004-12-31 Richard Henderson <rth@redhat.com>
152 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
153 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
154 offset parameters with a type parameter; deduce size and structure
155 alignment. Update all users.
157 2004-12-31 Richard Henderson <rth@redhat.com>
159 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
160 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
161 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
162 into ffi_prep_closure.
163 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
166 2004-12-27 Richard Henderson <rth@redhat.com>
168 * src/x86/unix64.S: Fix typo in unwind info.
170 2004-12-25 Richard Henderson <rth@redhat.com>
172 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
173 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
174 (merge_classes): Check for it.
176 (classify_argument): Pass byte_offset by value; perform all updates
178 (examine_argument): Add classes argument; handle
179 X86_64_COMPLEX_X87_CLASS.
180 (ffi_prep_args): Merge into ...
181 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
182 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
183 (ffi_fill_return_value): Remove.
184 (ffi_prep_closure): Remove dead assert.
185 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
186 Rewrite to use struct register_args instead of va_list. Create
187 flags for handling structure returns.
188 * src/x86/unix64.S: Remove dead strings.
189 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
190 stack frame with ffi_call. Handle structure returns properly.
191 (float2sse, floatfloat2sse, double2sse): Remove.
192 (sse2float, sse2double, sse2floatfloat): Remove.
193 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
194 to handle structure returns properly.
196 2004-12-08 David Edelsohn <edelsohn@gnu.org>
198 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
200 * Makefile.in: Regenerated.
202 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
204 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
205 * configure, aclocal.m4, Makefile.in: Regenerate.
206 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
208 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
210 * configure: Regenerate for libtool change.
212 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
214 * configure: Regenerate for libtool reversion.
216 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
218 * configure: Regenerate for libtool change.
220 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
222 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
224 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
226 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
227 of jal. Use an absolute encoding for the frame information.
229 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
231 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
232 * acinclude.m4: Delete logic for sincludes.
233 * aclocal.m4, Makefile.in, configure: Regenerate.
234 * include/Makefile: Likewise.
235 * testsuite/Makefile: Likewise.
237 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
239 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
240 on a 8-byte boundary.
241 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
243 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
245 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
246 long long values. Round stack allocation to a multiple of 8 bytes
247 for ATPCS compatibility.
248 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
249 names. Handle returning long long types. Add Thumb and interworking
250 support. Improve soft-float code.
252 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
254 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
255 (libffi_exit): New function.
256 (libffi_init): Build the testglue wrapper if needed.
258 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
261 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
263 2004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
265 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
267 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
269 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
270 * testsuite/libffi.call/float3.c: New test case.
272 2004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
274 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
275 the function returning a structure pointed with R2.
276 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
277 the structure return value if T bit set. Emit position
278 independent code and EH data if PIC.
280 2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
282 * Makefile.am: Add m32r support.
283 * configure.ac: Likewise.
284 * Makefile.in: Regenerate.
285 * confiugre: Regenerate.
286 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
287 (uint64, sint64, double, longdouble)
288 * src/m32r: New directory.
289 * src/m32r/ffi.c: New file.
290 * src/m32r/sysv.S: Likewise.
291 * src/m32r/ffitarget.h: Likewise.
293 2004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
295 * testsuite/libffi.call/negint.c: New test case.
297 2004-09-14 H.J. Lu <hongjiu.lu@intel.com>
300 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
301 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
302 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
305 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
307 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
308 * testsuite/libffi.call/promotion.c: Likewise.
309 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
311 * testsuite/libffi.call/return_sc.c: Likewise.
312 * testsuite/libffi.call/return_uc.c: Likewise.
314 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
316 * src/powerpc/darwin.S: Fix comments and identation.
317 * src/powerpc/darwin_closure.S: Likewise.
319 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
321 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
322 (ffi_prep_args): Handle longdouble arguments.
323 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
325 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
326 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
328 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
329 * src/types.c: Defined longdouble size and alignment for darwin.
331 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
333 * src/powerpc/aix.S: Remove whitespaces.
334 * src/powerpc/aix_closure.S: Likewise.
335 * src/powerpc/asm.h: Likewise.
336 * src/powerpc/ffi.c: Likewise.
337 * src/powerpc/ffitarget.h: Likewise.
338 * src/powerpc/linux64.S: Likewise.
339 * src/powerpc/linux64_closure.S: Likewise.
340 * src/powerpc/ppc_closure.S: Likewise.
341 * src/powerpc/sysv.S: Likewise.
343 2004-08-30 Anthony Green <green@redhat.com>
345 * Makefile.am: Add frv support.
346 * Makefile.in, testsuite/Makefile.in: Rebuilt.
347 * configure.ac: Read configure.host.
348 * configure.in: Read configure.host.
349 * configure.host: New file. frv-elf needs libgloss.
350 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
351 alignment. This is needed to frv and shouldn't harm the others.
352 * include/ffi_common.h (ALIGN_DOWN): New macro.
353 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
355 2004-08-24 David Daney <daney@avtrex.com>
357 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
358 * testsuite/libffi.call/closure_fn1.c: Likewise.
359 * testsuite/libffi.call/closure_fn2.c Likewise.
360 * testsuite/libffi.call/closure_fn3.c: Likewise.
361 * testsuite/libffi.call/closure_fn4.c: Likewise.
362 * testsuite/libffi.call/closure_fn5.c: Likewise.
363 * testsuite/libffi.call/cls_18byte.c: Likewise.
364 * testsuite/libffi.call/cls_19byte.c: Likewise.
365 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
366 * testsuite/libffi.call/cls_20byte.c: Likewise.
367 * testsuite/libffi.call/cls_20byte1.c: Likewise.
368 * testsuite/libffi.call/cls_24byte.c: Likewise.
369 * testsuite/libffi.call/cls_2byte.c: Likewise.
370 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
371 * testsuite/libffi.call/cls_3byte1.c: Likewise.
372 * testsuite/libffi.call/cls_3byte2.c: Likewise.
373 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
374 * testsuite/libffi.call/cls_4byte.c: Likewise.
375 * testsuite/libffi.call/cls_64byte.c: Likewise.
376 * testsuite/libffi.call/cls_6byte.c: Likewise.
377 * testsuite/libffi.call/cls_7byte.c: Likewise.
378 * testsuite/libffi.call/cls_8byte.c: Likewise.
379 * testsuite/libffi.call/cls_9byte1.c: Likewise.
380 * testsuite/libffi.call/cls_9byte2.c: Likewise.
381 * testsuite/libffi.call/cls_align_double.c: Likewise.
382 * testsuite/libffi.call/cls_align_float.c: Likewise.
383 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
384 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
385 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
386 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
387 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
388 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
389 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
390 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
391 * testsuite/libffi.call/cls_double.c: Likewise.
392 * testsuite/libffi.call/cls_float.c: Likewise.
393 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
394 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
395 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
396 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
397 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
398 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
399 * testsuite/libffi.call/cls_schar.c: Likewise.
400 * testsuite/libffi.call/cls_sint.c: Likewise.
401 * testsuite/libffi.call/cls_sshort.c: Likewise.
402 * testsuite/libffi.call/cls_uchar.c: Likewise.
403 * testsuite/libffi.call/cls_uint.c: Likewise.
404 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
405 * testsuite/libffi.call/cls_ushort.c: Likewise.
406 * testsuite/libffi.call/nested_struct.c: Likewise.
407 * testsuite/libffi.call/nested_struct1.c: Likewise.
408 * testsuite/libffi.call/nested_struct2.c: Likewise.
409 * testsuite/libffi.call/nested_struct3.c: Likewise.
410 * testsuite/libffi.call/problem1.c: Likewise.
411 * testsuite/libffi.special/unwindtest.cc: Likewise.
412 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
414 * testsuite/libffi.call/cls_16byte.c: Likewise.
415 * testsuite/libffi.call/cls_5byte.c: Likewise.
417 2004-08-23 David Daney <daney@avtrex.com>
420 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
421 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
422 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
423 parameters and return types.
424 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
425 (ffi_prep_closure): Ditto.
426 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
427 alignment calculations.
428 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
429 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
431 2004-08-14 Casey Marshall <csm@gnu.org>
433 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
434 contain `FFI_TYPE_UINT64' as return type for any 64-bit
435 integer (O32 ABI only).
436 (ffi_prep_closure): new function.
437 (ffi_closure_mips_inner_O32): new function.
438 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
439 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
440 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
441 64 bit integers correctly.
442 (ffi_closure_O32): new function.
443 Added DWARF-2 unwind info for both functions.
445 2004-08-10 Andrew Haley <aph@redhat.com>
447 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
449 2004-08-01 Robert Millan <robertmh@gnu.org>
451 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
452 * configure: Regenerate.
454 2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
456 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
457 and mmap() explicitly instead of relying on preset autoconf cache
459 * aclocal.m4: Regenerate.
460 * configure: Regenerate.
462 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
464 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
465 (ffi_check_float_struct): Remove unused prototype.
467 2004-06-30 Geoffrey Keating <geoffk@apple.com>
469 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
470 character on Darwin, use '\n\t' instead.
472 2004-06-26 Matthias Klose <doko@debian.org>
474 * libtool-version: Fix typo in revision/age.
476 2004-06-17 Matthias Klose <doko@debian.org>
478 * libtool-version: New.
479 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
480 * Makefile.in: Regenerate.
482 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
484 * Makefile.am: Remove useless multilib rules.
485 * Makefile.in: Regenerate.
486 * aclocal.m4: Regenerate with automake 1.8.5.
487 * configure.ac: Remove useless multilib configury.
488 * configure: Regenerate.
490 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
492 * .cvsignore: New file.
494 2004-06-10 Jakub Jelinek <jakub@redhat.com>
496 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
498 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
501 2004-06-06 Sean McNeil <sean@mcneil.com>
503 * configure.ac: Add x86_64-*-freebsd* support.
504 * configure: Regenerate.
506 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
509 * configure.ac: Test for existence of mmap and sys/mman.h before
510 checking blacklist. Fix suggested by Jim Wilson.
511 * configure: Regenerate.
513 2004-04-26 Matt Austern <austern@apple.com>
515 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
517 * src/powerpc/darwin_closure.S: Likewise.
519 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
521 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
522 error. Reported by Thomas Heller <theller@python.net>.
523 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
524 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
526 2004-03-20 Matthias Klose <doko@debian.org>
528 * src/pa/linux.S: Fix typo.
530 2004-03-19 Matthias Klose <doko@debian.org>
532 * Makefile.am: Update.
533 * Makefile.in: Regenerate.
534 * src/pa/ffi.h.in: Remove.
535 * src/pa/ffitarget.h: New file.
537 2004-02-10 Randolph Chung <tausq@debian.org>
539 * Makefile.am: Add PA support.
540 * Makefile.in: Regenerate.
541 * include/Makefile.in: Regenerate.
542 * configure.ac: Add PA target.
543 * configure: Regenerate.
544 * src/pa/ffi.c: New file.
545 * src/pa/ffi.h.in: Add PA support.
546 * src/pa/linux.S: New file.
547 * prep_cif.c: Add PA support.
549 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
551 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
553 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
554 with ecif->cif->flags.
555 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
557 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
558 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
559 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
560 sc_retstruct2b): Add for 1 or 2-bytes struct case.
562 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
564 * configure.in: Rename file to ...
565 * configure.ac: ... this.
566 * fficonfig.h.in: Regenerate.
567 * Makefile.in: Regenerate.
568 * include/Makefile.in: Regenerate.
569 * testsuite/Makefile.in: Regenerate.
571 2004-03-12 Matt Austern <austern@apple.com>
573 * src/powerpc/darwin.S: Fix EH information so it corresponds to
574 changes in EH format resulting from addition of linkonce support.
575 * src/powerpc/darwin_closure.S: Likewise.
577 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
578 Paolo Bonzini <bonzini@gnu.org>
580 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
581 Remove VPATH. Remove rules for object files. Remove multilib support.
583 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
584 (AC_PREREQ): Bump version to 2.59.
585 (AC_INIT): Fill with version info and bug address.
586 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
587 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
588 De-precious CC so that the right flags are passed down to multilibs.
589 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
590 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
591 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
592 * configure: Rebuilt.
593 * aclocal.m4: Likewise.
594 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
595 * fficonfig.h.in: Likewise.
597 2004-03-11 Andreas Schwab <schwab@suse.de>
599 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
600 arguments from fp registers only for the first 8 parameter slots.
601 Don't convert a float parameter when passed in memory.
603 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
605 * configure: Regenerate for config/accross.m4 correction.
607 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
609 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
610 ecif->cif->bytes to bytes.
611 (ffi_prep_cif_machdep): Add braces around nested if statement.
613 2004-02-09 Alan Modra <amodra@bigpond.net.au>
615 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
617 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
618 (ffi_closure_helper_LINUX64): Fix typo.
619 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
621 * testsuite/libffi.call/float.c: Likewise.
622 * testsuite/libffi.call/float2.c: Likewise.
624 2004-02-08 Alan Modra <amodra@bigpond.net.au>
626 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
627 long double function return and long double arg handling.
628 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
629 Use "end_pfr" instead of "nf". Correct long double handling.
631 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
633 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
634 space for long double return value. Adjust stack frame and offsets.
635 Load f2 long double return.
637 2004-02-07 Alan Modra <amodra@bigpond.net.au>
639 * src/types.c: Use 16 byte long double for POWERPC64.
641 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
643 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
644 when the structure return address is passed in %o0.
645 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
646 (ffi_v9_layout_struct): Align the field following a nested structure
647 on a word boundary. Use memmove instead of memcpy.
648 (ffi_call): Update call to ffi_V9_return_struct.
649 (ffi_prep_closure): Define 'ctx' only for V8.
650 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
651 and ffi_closure_sparc_inner_v9.
652 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
653 Always skip the structure return address. For structures and long
654 doubles, copy the argument directly.
655 (ffi_closure_sparc_inner_v9): Skip the structure return address only
656 if required. Shift the maximum floating-point slot accordingly. For
657 big structures, copy the argument directly; otherwise, left-justify the
658 argument and call ffi_v9_layout_struct to lay out the structure on
660 * src/sparc/v8.S: Undef STACKFRAME before defining it.
661 (ffi_closure_v8): Pass the structure return address. Update call to
662 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
663 Skip the 'unimp' insn when returning long doubles and structures.
664 * src/sparc/v9.S: Undef STACKFRAME before defining it.
665 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
666 FFI_TYPE_INT handling. Load structures both in integers and
667 floating-point registers on return.
668 * README: Update status of the SPARC port.
670 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
672 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
674 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
676 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
678 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
679 value as of type ffi_arg, not unsigned int.
681 2004-01-21 Michael Ritzert <ritzert@t-online.de>
683 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
686 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
688 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
691 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
693 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
696 2003-12-10 Richard Henderson <rth@redhat.com>
698 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
699 size_t instead of int.
701 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
703 * testsuite/libffi.call/many_win32.c: Include <float.h>.
704 * testsuite/libffi.call/many_win32.c (main): Replace variable
705 int i with unsigned long ul.
707 * testsuite/libffi.call/cls_align_uint64.c: New test case.
708 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
709 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
710 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
711 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
712 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
713 * testsuite/libffi.call/cls_align_float.c: Likewise.
714 * testsuite/libffi.call/cls_align_double.c: Likewise.
715 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
716 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
718 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
721 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
722 Align arguments to 32 bits.
724 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
727 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
728 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
729 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
730 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
731 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
732 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
734 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
736 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
738 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
739 * testsuite/libffi.special/ffitestcxx.h: Likewise.
741 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
743 * Makefile.in: Rebuilt.
744 * configure: Likewise.
745 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
748 2003-11-21 Andreas Jaeger <aj@suse.de>
749 Andreas Tobler <a.tobler@schweiz.ch>
751 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
752 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
753 * Makefile.in: Rebuilt.
754 * aclocal.m4: Likewise.
755 * configure: Likewise.
756 * fficonfig.h.in: Likewise.
757 * testsuite/lib/libffi-dg.exp: Add include dir.
758 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
759 * testsuite/libffi.special/ffitestcxx.h: Likewise.
760 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
761 for ffi_closure if available.
762 * testsuite/libffi.call/closure_fn1.c: Likewise.
763 * testsuite/libffi.call/closure_fn2.c: Likewise.
764 * testsuite/libffi.call/closure_fn3.c: Likewise.
765 * testsuite/libffi.call/closure_fn4.c: Likewise.
766 * testsuite/libffi.call/closure_fn5.c: Likewise.
767 * testsuite/libffi.call/cls_12byte.c: Likewise.
768 * testsuite/libffi.call/cls_16byte.c: Likewise.
769 * testsuite/libffi.call/cls_18byte.c: Likewise.
770 * testsuite/libffi.call/cls_19byte.c: Likewise.
771 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
772 * testsuite/libffi.call/cls_20byte.c: Likewise.
773 * testsuite/libffi.call/cls_20byte1.c: Likewise.
774 * testsuite/libffi.call/cls_24byte.c: Likewise.
775 * testsuite/libffi.call/cls_2byte.c: Likewise.
776 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
777 * testsuite/libffi.call/cls_3byte1.c: Likewise.
778 * testsuite/libffi.call/cls_3byte2.c: Likewise.
779 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
780 * testsuite/libffi.call/cls_4byte.c: Likewise.
781 * testsuite/libffi.call/cls_5byte.c: Likewise.
782 * testsuite/libffi.call/cls_64byte.c: Likewise.
783 * testsuite/libffi.call/cls_6byte.c: Likewise.
784 * testsuite/libffi.call/cls_7byte.c: Likewise.
785 * testsuite/libffi.call/cls_8byte.c: Likewise.
786 * testsuite/libffi.call/cls_9byte1.c: Likewise.
787 * testsuite/libffi.call/cls_9byte2.c: Likewise.
788 * testsuite/libffi.call/cls_double.c: Likewise.
789 * testsuite/libffi.call/cls_float.c: Likewise.
790 * testsuite/libffi.call/cls_schar.c: Likewise.
791 * testsuite/libffi.call/cls_sint.c: Likewise.
792 * testsuite/libffi.call/cls_sshort.c: Likewise.
793 * testsuite/libffi.call/cls_uchar.c: Likewise.
794 * testsuite/libffi.call/cls_uint.c: Likewise.
795 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
796 * testsuite/libffi.call/cls_ushort.c: Likewise.
797 * testsuite/libffi.call/nested_struct.c: Likewise.
798 * testsuite/libffi.call/nested_struct1.c: Likewise.
799 * testsuite/libffi.call/nested_struct2.c: Likewise.
800 * testsuite/libffi.call/nested_struct3.c: Likewise.
801 * testsuite/libffi.call/problem1.c: Likewise.
802 * testsuite/libffi.special/unwindtest.cc: Likewise.
804 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
806 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
808 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
810 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
811 Add -lgcc_s to additional flags.
813 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
815 * configure.in, include/Makefile.am: PR libgcj/11147, install
816 the ffitarget.h header file in a gcc versioned and target
818 * configure: Regenerated.
819 * Makefile.in, include/Makefile.in: Likewise.
820 * testsuite/Makefile.in: Likewise.
822 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
824 * testsuite/libffi.call/closure_fn0.c: Print result and check
825 with dg-output to make debugging easier.
826 * testsuite/libffi.call/closure_fn1.c: Likewise.
827 * testsuite/libffi.call/closure_fn2.c: Likewise.
828 * testsuite/libffi.call/closure_fn3.c: Likewise.
829 * testsuite/libffi.call/closure_fn4.c: Likewise.
830 * testsuite/libffi.call/closure_fn5.c: Likewise.
831 * testsuite/libffi.call/cls_12byte.c: Likewise.
832 * testsuite/libffi.call/cls_16byte.c: Likewise.
833 * testsuite/libffi.call/cls_18byte.c: Likewise.
834 * testsuite/libffi.call/cls_19byte.c: Likewise.
835 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
836 * testsuite/libffi.call/cls_20byte.c: Likewise.
837 * testsuite/libffi.call/cls_20byte1.c: Likewise.
838 * testsuite/libffi.call/cls_24byte.c: Likewise.
839 * testsuite/libffi.call/cls_2byte.c: Likewise.
840 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
841 * testsuite/libffi.call/cls_3byte1.c: Likewise.
842 * testsuite/libffi.call/cls_3byte2.c: Likewise.
843 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
844 * testsuite/libffi.call/cls_4byte.c: Likewise.
845 * testsuite/libffi.call/cls_5byte.c: Likewise.
846 * testsuite/libffi.call/cls_64byte.c: Likewise.
847 * testsuite/libffi.call/cls_6byte.c: Likewise.
848 * testsuite/libffi.call/cls_7byte.c: Likewise.
849 * testsuite/libffi.call/cls_8byte.c: Likewise.
850 * testsuite/libffi.call/cls_9byte1.c: Likewise.
851 * testsuite/libffi.call/cls_9byte2.c: Likewise.
852 * testsuite/libffi.call/cls_double.c: Likewise.
853 * testsuite/libffi.call/cls_float.c: Likewise.
854 * testsuite/libffi.call/cls_schar.c: Likewise.
855 * testsuite/libffi.call/cls_sint.c: Likewise.
856 * testsuite/libffi.call/cls_sshort.c: Likewise.
857 * testsuite/libffi.call/cls_uchar.c: Likewise.
858 * testsuite/libffi.call/cls_uint.c: Likewise.
859 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
860 * testsuite/libffi.call/cls_ushort.c: Likewise.
861 * testsuite/libffi.call/problem1.c: Likewise.
863 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
866 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
868 * testsuite/libffi.call/cls_9byte2.c: New test case.
869 * testsuite/libffi.call/cls_9byte1.c: Likewise.
870 * testsuite/libffi.call/cls_64byte.c: Likewise.
871 * testsuite/libffi.call/cls_20byte1.c: Likewise.
872 * testsuite/libffi.call/cls_19byte.c: Likewise.
873 * testsuite/libffi.call/cls_18byte.c: Likewise.
874 * testsuite/libffi.call/closure_fn4.c: Likewise.
875 * testsuite/libffi.call/closure_fn5.c: Likewise.
876 * testsuite/libffi.call/cls_schar.c: Likewise.
877 * testsuite/libffi.call/cls_sint.c: Likewise.
878 * testsuite/libffi.call/cls_sshort.c: Likewise.
879 * testsuite/libffi.call/nested_struct2.c: Likewise.
880 * testsuite/libffi.call/nested_struct3.c: Likewise.
882 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
884 * testsuite/libffi.call/cls_double.c: Do a check on the result.
885 * testsuite/libffi.call/cls_uchar.c: Likewise.
886 * testsuite/libffi.call/cls_uint.c: Likewise.
887 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
888 * testsuite/libffi.call/cls_ushort.c: Likewise.
889 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
891 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
893 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
896 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
898 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
899 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
901 2003-10-22 David Daney <ddaney@avtrex.com>
903 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
904 __attribute__((__mode__(__SI__))) and friends.
906 2003-10-22 Andreas Schwab <schwab@suse.de>
908 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
910 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
912 * configure.in: AC_LINK_FILES(ffitarget.h).
913 * configure: Regenerate.
914 * Makefile.in: Likewise.
915 * include/Makefile.in: Likewise.
916 * testsuite/Makefile.in: Likewise.
917 * fficonfig.h.in: Likewise.
919 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
920 Richard Henderson <rth@redhat.com>
922 Avoid that ffi.h includes fficonfig.h.
924 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
925 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
926 (TARGET_SRC_MIPS_SGI): Removed.
927 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
929 (CLEANFILES): Removed.
930 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
932 * acconfig.h: Removed.
933 * configure.in: Compute sizeofs only for double and long double.
934 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
935 into AC_DEFINE instead of using acconfig.h. Create
936 include/ffitarget.h instead of include/fficonfig.h. Rename
937 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
938 AC_DEFINE EH_FRAME_FLAGS.
939 * include/Makefile.am (DISTCLEANFILES): New automake macro.
940 (hack_DATA): Add ffitarget.h.
941 * include/ffi.h.in: Remove all system specific definitions.
942 Declare raw API even if it is not installed, why bother?
943 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
944 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
945 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
946 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
947 * include/ffi_common.h (bool): Do not define.
948 (ffi_assert): Accept failed assertion.
949 (ffi_type_test): Return void and accept file/line.
950 (FFI_ASSERT): Pass stringized failed assertion.
951 (FFI_ASSERT_AT): New macro.
952 (FFI_ASSERT_VALID_TYPE): New macro.
953 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
954 UINT64, SINT64): Define here with gcc's __attribute__ macro
956 (FLOAT32, ALIGN): Define here instead of in ffi.h
957 * include/ffi-mips.h: Removed. Its content moved to
958 src/mips/ffitarget.h after separating assembly and C sections.
959 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
960 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
961 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
962 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
963 SIZEOF_ARG -> FFI_SIZEOF_ARG.
964 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
965 * src/debug.c (ffi_assert): Accept stringized failed assertion.
966 (ffi_type_test): Rewritten.
967 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
968 FFI_ASSERT_VALID_TYPE.
969 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
970 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
971 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
972 src/s390/ffitarget.h, src/sh/ffitarget.h,
973 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
974 src/x86/ffitarget.h: New files.
975 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
976 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
977 src/powerpc/aix.S, src/powerpc/darwin.S,
978 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
979 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
980 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
981 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
982 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
985 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
987 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
988 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
990 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
992 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
993 Used when FFI_DEBUG = 1.
995 2003-10-14 Alan Modra <amodra@bigpond.net.au>
997 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
1000 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1002 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
1003 FFI_MIPS_O32 for O32 ABI.
1005 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
1007 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
1008 SPARC64. Cleanup whitespaces.
1010 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
1012 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
1013 strongarm, xscale. Cleanup whitespaces.
1014 * testsuite/libffi.call/closure_fn1.c: Likewise.
1015 * testsuite/libffi.call/closure_fn2.c: Likewise.
1016 * testsuite/libffi.call/closure_fn3.c: Likewise.
1017 * testsuite/libffi.call/cls_12byte.c: Likewise.
1018 * testsuite/libffi.call/cls_16byte.c: Likewise.
1019 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1020 * testsuite/libffi.call/cls_20byte.c: Likewise.
1021 * testsuite/libffi.call/cls_24byte.c: Likewise.
1022 * testsuite/libffi.call/cls_2byte.c: Likewise.
1023 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1024 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1025 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1026 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1027 * testsuite/libffi.call/cls_4byte.c: Likewise.
1028 * testsuite/libffi.call/cls_5byte.c: Likewise.
1029 * testsuite/libffi.call/cls_6byte.c: Likewise.
1030 * testsuite/libffi.call/cls_7byte.c: Likewise.
1031 * testsuite/libffi.call/cls_8byte.c: Likewise.
1032 * testsuite/libffi.call/cls_double.c: Likewise.
1033 * testsuite/libffi.call/cls_float.c: Likewise.
1034 * testsuite/libffi.call/cls_uchar.c: Likewise.
1035 * testsuite/libffi.call/cls_uint.c: Likewise.
1036 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1037 * testsuite/libffi.call/cls_ushort.c: Likewise.
1038 * testsuite/libffi.call/nested_struct.c: Likewise.
1039 * testsuite/libffi.call/nested_struct1.c: Likewise.
1040 * testsuite/libffi.call/problem1.c: Likewise.
1041 * testsuite/libffi.special/unwindtest.cc: Likewise.
1042 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
1044 2003-09-18 David Edelsohn <edelsohn@gnu.org>
1046 * src/powerpc/aix.S: Cleanup whitespaces.
1047 * src/powerpc/aix_closure.S: Likewise.
1049 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
1051 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
1052 * src/powerpc/darwin_closure.S: Likewise.
1053 * src/powerpc/ffi_darwin.c: Likewise.
1055 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
1056 David Edelsohn <edelsohn@gnu.org>
1058 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
1059 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
1061 * src/powerpc/darwin_closure.S: Likewise.
1062 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
1063 according to the Darwin/AIX ABI.
1064 (ffi_prep_cif_machdep): Likewise.
1065 (ffi_closure_helper_DARWIN): Likewise.
1066 Remove the outgoing parameter stack logic. Simplify the evaluation
1067 of the different CASE types.
1068 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
1069 statement in the trampoline code.
1071 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
1073 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
1074 for the register size.
1075 (ffi_closure_helper_SYSV): Handle the structure return value
1077 (ffi_closure_helper_SYSV): Return the appropriate type when
1078 the registers are used for the structure return value.
1079 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
1080 the 64-bit return value. Update copyright years.
1082 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1084 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
1085 srcdir for ffi_mips.h.
1087 2003-09-12 Alan Modra <amodra@bigpond.net.au>
1089 * src/prep_cif.c (initialize_aggregate): Include tail padding in
1091 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
1092 placement of float result.
1093 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
1094 cast of "resp" for big-endian 64 bit machines.
1096 2003-09-11 Alan Modra <amodra@bigpond.net.au>
1098 * src/types.c (double, longdouble): Merge identical SH and ARM
1099 typedefs, and add POWERPC64.
1100 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
1101 struct split over gpr and rest.
1102 (ffi_prep_cif_machdep): Correct intarg_count for structures.
1103 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
1105 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
1107 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
1110 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1112 * configure: Regenerate.
1114 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
1116 * Makefile.am: Remove build rules for ffitest.
1117 * Makefile.in: Rebuilt.
1119 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
1121 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
1122 about implicit declaration of abort().
1124 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
1126 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
1127 * Makefile.in: Rebuilt.
1128 * configure.in: Add dejagnu test framework.
1129 * configure: Rebuilt.
1131 * testsuite/Makefile.am: New file.
1132 * testsuite/Makefile.in: Built
1133 * testsuite/lib/libffi-dg.exp: New file.
1134 * testsuite/config/default.exp: Likewise.
1135 * testsuite/libffi.call/call.exp: Likewise.
1136 * testsuite/libffi.call/ffitest.h: Likewise.
1137 * testsuite/libffi.call/closure_fn0.c: Likewise.
1138 * testsuite/libffi.call/closure_fn1.c: Likewise.
1139 * testsuite/libffi.call/closure_fn2.c: Likewise.
1140 * testsuite/libffi.call/closure_fn3.c: Likewise.
1141 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1142 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1143 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1144 * testsuite/libffi.call/cls_2byte.c: Likewise.
1145 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1146 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1147 * testsuite/libffi.call/cls_4byte.c: Likewise.
1148 * testsuite/libffi.call/cls_5byte.c: Likewise.
1149 * testsuite/libffi.call/cls_6byte.c: Likewise.
1150 * testsuite/libffi.call/cls_7byte.c: Likewise.
1151 * testsuite/libffi.call/cls_8byte.c: Likewise.
1152 * testsuite/libffi.call/cls_12byte.c: Likewise.
1153 * testsuite/libffi.call/cls_16byte.c: Likewise.
1154 * testsuite/libffi.call/cls_20byte.c: Likewise.
1155 * testsuite/libffi.call/cls_24byte.c: Likewise.
1156 * testsuite/libffi.call/cls_double.c: Likewise.
1157 * testsuite/libffi.call/cls_float.c: Likewise.
1158 * testsuite/libffi.call/cls_uchar.c: Likewise.
1159 * testsuite/libffi.call/cls_uint.c: Likewise.
1160 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1161 * testsuite/libffi.call/cls_ushort.c: Likewise.
1162 * testsuite/libffi.call/float.c: Likewise.
1163 * testsuite/libffi.call/float1.c: Likewise.
1164 * testsuite/libffi.call/float2.c: Likewise.
1165 * testsuite/libffi.call/many.c: Likewise.
1166 * testsuite/libffi.call/many_win32.c: Likewise.
1167 * testsuite/libffi.call/nested_struct.c: Likewise.
1168 * testsuite/libffi.call/nested_struct1.c: Likewise.
1169 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
1170 * testsuite/libffi.call/problem1.c: Likewise.
1171 * testsuite/libffi.call/promotion.c: Likewise.
1172 * testsuite/libffi.call/return_ll.c: Likewise.
1173 * testsuite/libffi.call/return_sc.c: Likewise.
1174 * testsuite/libffi.call/return_uc.c: Likewise.
1175 * testsuite/libffi.call/strlen.c: Likewise.
1176 * testsuite/libffi.call/strlen_win32.c: Likewise.
1177 * testsuite/libffi.call/struct1.c: Likewise.
1178 * testsuite/libffi.call/struct2.c: Likewise.
1179 * testsuite/libffi.call/struct3.c: Likewise.
1180 * testsuite/libffi.call/struct4.c: Likewise.
1181 * testsuite/libffi.call/struct5.c: Likewise.
1182 * testsuite/libffi.call/struct6.c: Likewise.
1183 * testsuite/libffi.call/struct7.c: Likewise.
1184 * testsuite/libffi.call/struct8.c: Likewise.
1185 * testsuite/libffi.call/struct9.c: Likewise.
1186 * testsuite/libffi.special/special.exp: New file.
1187 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1188 * testsuite/libffi.special/unwindtest.cc: Likewise.
1191 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
1193 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
1196 2003-08-02 Alan Modra <amodra@bigpond.net.au>
1198 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
1200 (ffi_closure_helper_LINUX64): Likewise.
1201 * src/powerpc/linux64.S: Remove code writing to parm save area.
1202 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
1203 address in lr from ffi_closure_helper_LINUX64 call to calculate
1204 table address. Optimize function tail.
1206 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
1208 * src/sparc/ffi.c: Handle all floating point registers.
1209 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
1211 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1213 * README: Note that libffi is not part of GCC. Update the project
1216 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1218 * src/powerpc/ppc_closure.S: Include ffi.h.
1220 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1222 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
1223 Use C style comments.
1225 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1227 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
1228 * Makefile.in: Regenerate.
1229 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
1230 * configure: Regenerate.
1231 * include/ffi.h.in: Add SHmedia support.
1232 * src/sh64/ffi.c: New file.
1233 * src/sh64/sysv.S: New file.
1235 2003-05-16 Jakub Jelinek <jakub@redhat.com>
1237 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
1238 should be read-only.
1239 * configure: Rebuilt.
1240 * fficonfig.h.in: Rebuilt.
1241 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
1242 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
1243 * src/powerpc/linux64.S: Likewise.
1244 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
1245 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
1246 if -fpic/-fPIC/-mrelocatable.
1247 * src/powerpc/powerpc_closure.S: Likewise.
1248 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
1249 #write in .eh_frame flags.
1250 * src/sparc/v9.S: Likewise.
1251 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
1252 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
1253 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
1255 2003-05-07 Jeff Sturm <jsturm@one-point.com>
1257 Fixes PR bootstrap/10656
1258 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
1259 support for .register pseudo-op.
1260 * src/sparc/v8.S: Use it.
1261 * fficonfig.h.in: Rebuilt.
1262 * configure: Rebuilt.
1264 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1266 * include/ffi.h.in (POWERPC64): Define if 64-bit.
1267 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
1268 Make it the default on POWERPC64.
1269 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
1270 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
1271 * configure: Rebuilt.
1272 * src/powerpc/ffi.c (hidden): Define.
1273 (ffi_prep_args_SYSV): Renamed from
1274 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
1275 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
1276 ASM_NEEDS_REGISTERS64): New.
1277 (ffi_prep_args64): New function.
1278 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
1279 (ffi_call): Likewise.
1280 (ffi_prep_closure): Likewise.
1281 (flush_icache): Surround by #ifndef POWERPC64.
1282 (ffi_dblfl): New union type.
1283 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
1284 (ffi_closure_helper_LINUX64): New function.
1285 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
1287 * src/powerpc/sysv.S: Likewise.
1288 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
1289 * src/powerpc/linux64.S: New file.
1290 * src/powerpc/linux64_closure.S: New file.
1291 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
1292 src/powerpc/linux64_closure.S.
1293 (TARGET_SRC_POWERPC): Likewise.
1295 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
1296 closure_test_fn3): Fix result printing on big-endian 64-bit
1298 (main): Print tst2_arg instead of uninitialized tst2_result.
1300 * src/ffitest.c (main): Hide what closure pointer really points to
1303 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
1305 * configure.in (arm-*-netbsdelf*): Add configuration.
1306 (configure): Regenerated.
1308 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
1310 * include/Makefile.in: Regenerate.
1312 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1314 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
1316 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
1317 Receive closure pointer through parameter, read args using
1318 __builtin_dwarf_cfa.
1319 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
1321 2003-03-12 Andreas Schwab <schwab@suse.de>
1323 * configure.in: Avoid trailing /. in toolexeclibdir.
1324 * configure: Rebuilt.
1326 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
1328 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
1330 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
1332 * libffi/src/powerpc/darwin_closure.S:
1333 Fix alignement bug, allocate 8 bytes for the result.
1334 * libffi/src/powerpc/aix_closure.S:
1336 * libffi/src/powerpc/ffi_darwin.c:
1337 Update stackframe description for aix/darwin_closure.S.
1339 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1341 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
1344 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
1345 Andreas Schwab <schwab@suse.de>
1347 * configure.in: Adjust command to source config-ml.in to account
1348 for changes to the libffi_basedir definition.
1349 (libffi_basedir): Remove ${srcdir} from value and include trailing
1352 * configure: Regenerate.
1354 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1356 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
1358 2003-01-28 Andrew Haley <aph@redhat.com>
1360 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
1361 * src/x86/ffi64.c (ffi_prep_closure): New.
1362 (ffi_closure_UNIX64_inner): New.
1363 * src/x86/unix64.S (ffi_closure_UNIX64): New.
1365 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1367 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
1368 Remove USE_LIBDIR conditional.
1369 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
1370 * Makefile.in, configure: Rebuilt.
1372 2003-01027 David Edelsohn <edelsohn@gnu.org>
1374 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
1375 * Makefile.in: Regenerate.
1377 2003-01-22 Andrew Haley <aph@redhat.com>
1379 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
1382 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1384 * src/powerpc/darwin.S: Add unwind info.
1385 * src/powerpc/darwin_closure.S: Likewise.
1387 2003-01-14 Andrew Haley <aph@redhat.com>
1389 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
1390 (ffi_prep_cif_machdep): Likewise.
1391 * src/x86/unix64.S: Add unwind info.
1393 2003-01-14 Andreas Jaeger <aj@suse.de>
1395 * src/ffitest.c (main): Only use ffi_closures if those are
1398 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
1400 * libffi/src/ffitest.c
1401 add closure testcases
1403 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
1405 * libffi/src/powerpc/ffi.c
1406 fix alignment bug for float (4 byte aligned iso 8 byte)
1408 2003-01-09 Geoffrey Keating <geoffk@apple.com>
1410 * src/powerpc/ffi_darwin.c: Remove RCS version string.
1411 * src/powerpc/darwin.S: Remove RCS version string.
1413 2003-01-03 Jeff Sturm <jsturm@one-point.com>
1415 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
1416 * src/ffitest.c (main): Use static storage for closure.
1417 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
1418 * src/sparc/v8.S (ffi_closure_v8): New.
1419 * src/sparc/v9.S (ffi_closure_v9): New.
1421 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
1423 * include/ffi.h.in: Added FFI_STDCALL ffi_type
1424 enumeration for X86_WIN32.
1425 * src/x86/win32.S: Added ffi_call_STDCALL function
1427 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
1428 switch cases for recognising FFI_STDCALL and
1429 calling ffi_call_STDCALL if target is X86_WIN32.
1430 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
1431 stdcall versions of the "my_strlen" and "many"
1432 test functions (for X86_WIN32).
1433 Added test cases to test stdcall invocation using
1436 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
1438 * src/sh/sysv.S: Add DWARF2 unwind info.
1440 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
1442 * src/s390/sysv.S (.eh_frame section): Make section read-only.
1444 2002-11-26 Jim Wilson <wilson@redhat.com>
1446 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
1448 2002-11-23 H.J. Lu <hjl@gnu.org>
1450 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
1451 Include ../config/accross.m4.
1452 * aclocal.m4; Rebuild.
1453 * configure: Likewise.
1455 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
1457 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
1459 2002-11-11 DJ Delorie <dj@redhat.com>
1461 * configure.in: Look for common files in the right place.
1463 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1465 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
1466 raw data as _Jv_word values, not ffi_raw.
1467 (ffi_java_ptrarray_to_raw): Likewise.
1468 (ffi_java_rvalue_to_raw): New function.
1469 (ffi_java_raw_call): Call it.
1470 (ffi_java_raw_to_rvalue): New function.
1471 (ffi_java_translate_args): Call it.
1472 * src/ffitest.c (closure_test_fn): Interpret return value
1473 as ffi_arg, not int.
1474 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
1475 FFI_TYPE_POINTER case.
1476 (ffi_closure_helper_SYSV): Likewise. Also, assume return
1477 values extended to word size.
1479 2002-10-02 Andreas Jaeger <aj@suse.de>
1481 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
1483 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
1485 * include/ffi.h.in: Fix i386 win32 compilation.
1487 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
1489 * configure.in: Add s390x-*-linux-* target.
1490 * configure: Regenerate.
1491 * include/ffi.h.in: Define S390X for s390x targets.
1492 (FFI_CLOSURES): Define for s390/s390x.
1493 (FFI_TRAMPOLINE_SIZE): Likewise.
1494 (FFI_NATIVE_RAW_API): Likewise.
1495 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
1496 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
1497 * src/s390/ffi.c: Major rework of existing code. Add support for
1498 s390x targets. Add closure support.
1499 * src/s390/sysv.S: Likewise.
1501 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
1503 * src/arm/sysv.S: Fix typo.
1505 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
1507 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
1508 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
1509 (ffi_call_SYSV): Handle soft-float.
1511 2002-09-27 Bo Thorsen <bo@suse.de>
1513 * include/ffi.h.in: Fix multilib x86-64 support.
1515 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1517 * Makefile.am (all-multi): Fix multilib parallel build.
1519 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
1521 * configure.in (sh[34]*-*-linux*): Add brackets.
1522 * configure: Regenerate.
1524 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
1526 * Makefile.am: Add SH support.
1527 * Makefile.in: Regenerate.
1528 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
1529 * configure: Regenerate.
1530 * include/ffi.h.in: Add SH support.
1531 * src/sh/ffi.c: New file.
1532 * src/sh/sysv.S: New file.
1533 * src/types.c: Add SH support.
1535 2002-07-16 Bo Thorsen <bo@suse.de>
1537 * src/x86/ffi64.c: New file that adds x86-64 support.
1538 * src/x86/unix64.S: New file that handles argument setup for
1540 * src/x86/sysv.S: Don't use this on x86-64.
1541 * src/x86/ffi.c: Don't use this on x86-64.
1543 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
1545 * src/ffitest.c (struct6): New test that tests a special case in
1547 (struct7): Likewise.
1548 (struct8): Likewise.
1549 (struct9): Likewise.
1550 (closure_test_fn): Silence warning about this when it's not used.
1551 (main): Add the new tests.
1552 (main): Fix a couple of wrong casts and silence some compiler warnings.
1553 * include/ffi.h.in: Add x86-64 ABI definition.
1554 * fficonfig.h.in: Regenerate.
1555 * Makefile.am: Add x86-64 support.
1556 * configure.in: Likewise.
1557 * Makefile.in: Regenerate.
1558 * configure: Likewise.
1560 2002-06-24 Bo Thorsen <bo@suse.de>
1562 * src/types.c: Merge settings for similar architectures.
1563 Add x86-64 sizes and alignments.
1565 2002-06-23 Bo Thorsen <bo@suse.de>
1567 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
1568 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
1569 * src/mips/ffi.c (ffi_prep_args): Likewise.
1570 * src/m68k/ffi.c (ffi_prep_args): Likewise.
1572 2002-07-18 H.J. Lu (hjl@gnu.org)
1574 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
1575 (libffi_la_SOURCES): Support MIPS_LINUX.
1576 (libffi_convenience_la_SOURCES): Likewise.
1577 * Makefile.in: Regenerated.
1579 * configure.in (mips64*-*): Skip.
1580 (mips*-*-linux*): New.
1581 * configure: Regenerated.
1583 * src/mips/ffi.c: Include <sgidefs.h>.
1585 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1587 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
1589 2002-05-27 Roger Sayle <roger@eyesopen.com>
1591 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
1593 2002-05-27 Bo Thorsen <bo@suse.de>
1595 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
1598 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
1600 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
1601 beginning of function (for older apple cc).
1603 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1605 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1606 script entry, and set LD to it when configuring multilibs.
1607 * configure: Rebuilt.
1609 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1611 * configure.in (sparc64-*-netbsd*): Add target.
1612 (sparc-*-netbsdelf*): Likewise.
1613 * configure: Regenerate.
1615 2002-04-28 David S. Miller <davem@redhat.com>
1617 * configure.in, configure: Fix SPARC test in previous change.
1619 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
1621 * Makefile.am: Add Linux for S/390 support.
1622 * Makefile.in: Regenerate.
1623 * configure.in: Add Linux for S/390 support.
1624 * configure: Regenerate.
1625 * include/ffi.h.in: Add Linux for S/390 support.
1626 * src/s390/ffi.c: New file from libffi CVS tree.
1627 * src/s390/sysv.S: New file from libffi CVS tree.
1629 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1631 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
1633 * src/sparc/v8.S: Use it.
1634 * src/sparc/v9.S: Likewise.
1635 * fficonfig.h.in: Rebuilt.
1636 * configure: Rebuilt.
1638 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
1640 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1642 * src/ia64/unix.S: Add unwind information. Fix comments.
1643 Save sp in a way that's compatible with unwind info.
1644 (ffi_call_unix): Correctly restore sp in all cases.
1645 * src/ia64/ffi.c: Add, fix comments.
1647 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1649 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1651 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1653 * configure.in (alpha*-*-netbsd*): Add target.
1654 * configure: Regenerate.
1656 2002-04-04 Jeff Sturm <jsturm@one-point.com>
1658 * src/sparc/v8.S: Add unwind info.
1659 * src/sparc/v9.S: Likewise.
1661 2002-03-30 Krister Walfridsson <cato@df.lth.se>
1663 * configure.in: Enable i*86-*-netbsdelf*.
1664 * configure: Rebuilt.
1666 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
1669 * src/mips/n32.s: Delete
1670 * src/mips/o32.s: Delete
1672 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
1674 * configure.in: Enable alpha*-*-freebsd*.
1675 * configure: Rebuilt.
1677 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1679 * Makefile.am: libfficonvenience -> libffi_convenience.
1680 * Makefile.in: Rebuilt.
1682 * Makefile.am: Define ffitest_OBJECTS.
1683 * Makefile.in: Rebuilt.
1685 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
1686 David Edelsohn <edelsohn@gnu.org>
1688 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1689 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1690 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1691 * Makefile.in: Regenerate.
1692 * include/ffi.h.in: Add AIX and Darwin closure definitions.
1693 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1694 (flush_icache, flush_range): New functions.
1695 (ffi_closure_helper_DARWIN): New function.
1696 * src/powerpc/aix_closure.S: New file.
1697 * src/powerpc/darwin_closure.S: New file.
1699 2002-02-24 Jeff Sturm <jsturm@one-point.com>
1701 * include/ffi.h.in: Add typedef for ffi_arg.
1702 * src/ffitest.c (main): Declare rint with ffi_arg.
1704 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
1706 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1707 number of GPRs for floating-point arguments.
1709 2002-01-31 Anthony Green <green@redhat.com>
1711 * configure: Rebuilt.
1712 * configure.in: Replace CHECK_SIZEOF and endian tests with
1713 cross-compiler friendly macros.
1714 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1717 2002-01-18 David Edelsohn <edelsohn@gnu.org>
1719 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1720 * src/powerpc/aix.S (ffi_call_DARWIN): New.
1722 2002-01-17 David Edelsohn <edelsohn@gnu.org>
1724 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1725 (TARGET_SRC_POWERPC_AIX): New.
1726 (POWERPC_AIX): New stanza.
1727 * Makefile.in: Regenerate.
1728 * configure.in: Add AIX case.
1729 * configure: Regenerate.
1730 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1731 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1732 size. Fix "long double" support.
1733 (ffi_call): Add FFI_AIX case.
1734 * src/powerpc/aix.S: New.
1736 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
1738 Implement Darwin PowerPC ABI.
1739 * configure.in: Handle powerpc-*-darwin*.
1740 * Makefile.am: Set source files for POWERPC_DARWIN.
1741 * configure: Rebuilt.
1742 * Makefile.in: Rebuilt.
1743 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1745 * src/powerpc/darwin.S: New file.
1746 * src/powerpc/ffi_darwin.c: New file.
1748 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1750 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1752 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1754 * src/x86/sysv.S: Avoid gas-only .balign directive.
1755 Use C style comments.
1757 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1759 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1760 Fixes PR bootstrap/3563.
1762 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1764 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1766 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1768 * configure.in: Recognize sparc*-sun-* host.
1769 * configure: Regenerate.
1771 2001-06-06 Andrew Haley <aph@redhat.com>
1773 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
1775 2001-06-03 Andrew Haley <aph@redhat.com>
1777 * src/alpha/osf.S: Add unwind info.
1778 * src/powerpc/sysv.S: Add unwind info.
1779 * src/powerpc/ppc_closure.S: Likewise.
1781 2000-05-31 Jeff Sturm <jsturm@one-point.com>
1783 * configure.in: Fix AC_ARG_ENABLE usage.
1784 * configure: Rebuilt.
1786 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1788 * configure.in: Remove warning about beta code.
1789 * configure: Rebuilt.
1791 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
1793 * src/ia64/unix.S: Restore stack pointer when returning from
1795 * src/ia64/ffi.c: Fix typo in comment.
1797 2001-04-18 Jim Wilson <wilson@redhat.com>
1799 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1800 to eliminate RAW DV.
1802 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1804 * Makefile.am: Make a libtool convenience library.
1805 * Makefile.in: Rebuilt.
1807 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
1809 * configure.in: Use different syntax for subdirectory creation.
1810 * configure: Rebuilt.
1812 2001-03-27 Jon Beniston <jon@beniston.com>
1814 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1815 * configure: Rebuilt.
1816 * Makefile.am: Added X86_WIN32 target support.
1817 * Makefile.in: Rebuilt.
1819 * include/ffi.h.in: Added X86_WIN32 target support.
1821 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1822 * src/types.c: Added X86_WIN32 target support.
1824 * src/x86/win32.S: New file. Based on sysv.S, but with EH
1825 stuff removed and made to work with CygWin's gas.
1827 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
1829 * configure.in: Make target subdirectory in build dir.
1830 * Makefile.am: Override suffix based rules to specify correct output
1832 * Makefile.in: Rebuilt.
1833 * configure: Rebuilt.
1835 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
1837 * src/powerpc/ppc_closure.S: New file.
1838 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1839 involving long long and register pairs.
1840 (ffi_prep_closure): New function.
1841 (flush_icache): Likewise.
1842 (ffi_closure_helper_SYSV): Likewise.
1843 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1844 (FFI_TRAMPOLINE_SIZE): Likewise.
1845 (FFI_NATIVE_RAW_API): Likewise.
1846 * Makefile.in: Rebuilt.
1847 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1848 (TARGET_SRC_POWERPC): Likewise.
1850 2001-03-19 Tom Tromey <tromey@redhat.com>
1852 * Makefile.in: Rebuilt.
1853 * Makefile.am (ffitest_LDFLAGS): New macro.
1855 2001-03-02 Nick Clifton <nickc@redhat.com>
1857 * include/ffi.h.in: Remove RCS ident string.
1858 * include/ffi_mips.h: Remove RCS ident string.
1859 * src/debug.c: Remove RCS ident string.
1860 * src/ffitest.c: Remove RCS ident string.
1861 * src/prep_cif.c: Remove RCS ident string.
1862 * src/types.c: Remove RCS ident string.
1863 * src/alpha/ffi.c: Remove RCS ident string.
1864 * src/alpha/osf.S: Remove RCS ident string.
1865 * src/arm/ffi.c: Remove RCS ident string.
1866 * src/arm/sysv.S: Remove RCS ident string.
1867 * src/mips/ffi.c: Remove RCS ident string.
1868 * src/mips/n32.S: Remove RCS ident string.
1869 * src/mips/o32.S: Remove RCS ident string.
1870 * src/sparc/ffi.c: Remove RCS ident string.
1871 * src/sparc/v8.S: Remove RCS ident string.
1872 * src/sparc/v9.S: Remove RCS ident string.
1873 * src/x86/ffi.c: Remove RCS ident string.
1874 * src/x86/sysv.S: Remove RCS ident string.
1876 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1878 * include/ffi.h.in: Change sourceware.cygnus.com references to
1881 2000-12-09 Richard Henderson <rth@redhat.com>
1883 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1884 (ffi_closure_osf_inner): Index rather than increment avalue
1885 and arg_types. Give ffi_closure_osf the raw return value type.
1886 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1889 2000-12-07 Richard Henderson <rth@redhat.com>
1891 * src/raw_api.c (ffi_translate_args): Fix typo.
1892 (ffi_prep_closure): Likewise.
1894 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1895 FFI_TRAMPOLINE_SIZE.
1896 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1897 cif->bytes for new ffi_call_osf implementation.
1898 (ffi_prep_args): Absorb into ...
1899 (ffi_call): ... here. Do all stack allocation here and
1900 avoid a callback function.
1901 (ffi_prep_closure, ffi_closure_osf_inner): New.
1902 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1903 (ffi_closure_osf): New.
1905 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1907 * config.guess, config.sub, install-sh: Removed.
1908 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1909 * Makefile.in: Rebuilt.
1911 * acinclude.m4: Include libtool macros from the top level.
1912 * aclocal.m4, configure: Rebuilt.
1914 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1916 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1917 * configure: Rebuilt.
1919 2000-05-11 Scott Bambrough <scottb@netwinder.org>
1921 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1922 memory correctly. Use conditional instructions, not branches where
1925 2000-05-04 Tom Tromey <tromey@cygnus.com>
1927 * configure: Rebuilt.
1928 * configure.in: Match `arm*-*-linux-*'.
1929 From Chris Dornan <cdornan@arm.com>.
1931 2000-04-28 Jakub Jelinek <jakub@redhat.com>
1933 * Makefile.am (SUBDIRS): Define.
1934 (AM_MAKEFLAGS): Likewise.
1935 (Multilib support.): Add section.
1936 * Makefile.in: Rebuilt.
1937 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
1938 New variables. Set for gcc using -print-multi-lib. Export them
1940 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1941 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1943 (extra_compiler_flags_value, extra_compiler_flags): Check these
1944 for extra compiler options which need to be passed down in
1947 2000-04-16 Anthony Green <green@redhat.com>
1949 * configure: Rebuilt.
1950 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1952 2000-04-14 Jakub Jelinek <jakub@redhat.com>
1954 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
1955 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1956 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1957 Replace all void * sizeofs with sizeof(int).
1958 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1959 different than DOUBLE.
1960 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1961 (ffi_prep_args_v9): New function.
1962 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1963 (ffi_V9_return_struct): New function.
1964 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1965 32bit code (not yet cross-arch calls).
1966 * src/sparc/v8.S: Add struct return delay nop.
1968 * src/sparc/v9.S: New file.
1969 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1970 is used on sparc64 only for structures larger than 32 bytes.
1971 Pass by reference for structures is done for structure arguments
1972 larger than 16 bytes.
1973 * src/ffitest.c (main): Use 64bit rint on sparc64.
1974 Run long long tests on sparc.
1975 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1977 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1979 * configure.in (sparc-*-linux*): New supported target.
1980 (sparc64-*-linux*): Likewise.
1981 * configure: Rebuilt.
1982 * Makefile.am: Add v9.S to SPARC files.
1983 * Makefile.in: Likewise.
1984 (LINK): Surround $(CCLD) into double quotes, so that multilib
1985 compiles work correctly.
1987 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
1989 * configure: Rebuilt.
1990 * configure.in: (i*86-*-solaris*): New libffi target. Patch
1991 proposed by Bryce McKinlay.
1993 2000-03-20 Tom Tromey <tromey@cygnus.com>
1995 * Makefile.in: Hand edit for java_raw_api.lo.
1997 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
1999 * config.guess, config.sub: Update from the gcc tree.
2000 Fix for PR libgcj/168.
2002 2000-03-03 Tom Tromey <tromey@cygnus.com>
2004 * Makefile.in: Fixed ia64 by hand.
2006 * configure: Rebuilt.
2007 * configure.in (--enable-multilib): New option.
2008 (libffi_basedir): New subst.
2009 (AC_OUTPUT): Added multilib code.
2011 2000-03-02 Tom Tromey <tromey@cygnus.com>
2013 * Makefile.in: Rebuilt.
2014 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
2017 2000-02-25 Hans Boehm <boehm@acm.org>
2019 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
2021 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
2023 (ffi_prep_raw_closure): Use ffi_translate_args, not
2024 ffi_closure_translate.
2025 * src/java_raw_api.c: New file.
2026 * src/ffitest.c (closure_test_fn): New function.
2027 (main): Define `rint' as long long on IA64. Added new test when
2028 FFI_CLOSURES is defined.
2029 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
2030 (ffi_abi): Recognize IA64.
2031 (ffi_raw): Added `flt' field.
2032 Added "Java raw API" code.
2033 * configure.in: Recognize ia64.
2034 * Makefile.am (TARGET_SRC_IA64): New macro.
2035 (libffi_la_common_SOURCES): Added java_raw_api.c.
2036 (libffi_la_SOURCES): Define in IA64 case.
2038 2000-01-04 Tom Tromey <tromey@cygnus.com>
2040 * Makefile.in: Rebuilt with newer automake.
2042 1999-12-31 Tom Tromey <tromey@cygnus.com>
2044 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
2046 1999-09-01 Tom Tromey <tromey@cygnus.com>
2048 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
2050 * fficonfig.h.in: Rebuilt.
2051 * configure: Rebuilt.
2052 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
2053 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
2054 * acconfig.h: Don't #undef PACKAGE or VERSION.
2056 1999-08-09 Anthony Green <green@cygnus.com>
2058 * include/ffi.h.in: Try to work around messy header problem
2059 with PACKAGE and VERSION.
2061 * configure: Rebuilt.
2062 * configure.in: Change version to 2.00-beta.
2064 * fficonfig.h.in: Rebuilt.
2065 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
2067 * src/x86/ffi.c (ffi_raw_call): Rename.
2069 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
2071 * src/x86/ffi.c (ffi_closure_SYSV): New function.
2072 (ffi_prep_incoming_args_SYSV): Ditto.
2073 (ffi_prep_closure): Ditto.
2074 (ffi_closure_raw_SYSV): Ditto.
2075 (ffi_prep_raw_closure): More ditto.
2076 (ffi_call_raw): Final ditto.
2078 * include/ffi.h.in: Add definitions for closure and raw API.
2080 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
2083 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
2085 * src/raw_api.c: New file.
2087 * include/ffi.h.in (ffi_raw): New type.
2088 (UINT_ARG, SINT_ARG): New defines.
2089 (ffi_closure, ffi_raw_closure): New types.
2090 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
2092 * configure.in: Add check for endianness and sizeof void*.
2094 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
2095 instead of directly.
2097 * configure: Rebuilt.
2099 Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
2101 * configure.in: Add x86 and powerpc BeOS configurations.
2102 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
2104 1999-05-09 Anthony Green <green@cygnus.com>
2106 * configure.in: Add warning about this being beta code.
2107 Remove src/Makefile.am from the picture.
2108 * configure: Rebuilt.
2110 * Makefile.am: Move logic from src/Makefile.am. Add changes
2111 to support libffi as a target library.
2112 * Makefile.in: Rebuilt.
2114 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
2115 Upgraded to new autoconf, automake, libtool.
2119 * LICENSE: Update copyright date.
2121 * src/Makefile.am, src/Makefile.in: Removed.
2123 1998-11-29 Anthony Green <green@cygnus.com>
2125 * include/ChangeLog: Removed.
2126 * src/ChangeLog: Removed.
2127 * src/mips/ChangeLog: Removed.
2128 * src/sparc/ChangeLog: Remboved.
2129 * src/x86/ChangeLog: Removed.
2131 * ChangeLog.v1: Created.