1 2002-07-16 Bo Thorsen <bo@suse.de>
3 * src/x86/ffi64.c: New file that adds x86-64 support.
4 * src/x86/unix64.S: New file that handles argument setup for
6 * src/x86/sysv.S: Don't use this on x86-64.
7 * src/x86/ffi.c: Don't use this on x86-64.
9 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
11 * src/ffitest.c (struct6): New test that tests a special case in
16 (closure_test_fn): Silence warning about this when it's not used.
17 (main): Add the new tests.
18 (main): Fix a couple of wrong casts and silence some compiler warnings.
19 * include/ffi.h.in: Add x86-64 ABI definition.
20 * fficonfig.h.in: Regenerate.
21 * Makefile.am: Add x86-64 support.
22 * configure.in: Likewise.
23 * Makefile.in: Regenerate.
24 * configure: Likewise.
26 2002-06-24 Bo Thorsen <bo@suse.de>
28 * src/types.c: Merge settings for similar architectures.
29 Add x86-64 sizes and alignments.
31 2002-06-23 Bo Thorsen <bo@suse.de>
33 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
34 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
35 * src/mips/ffi.c (ffi_prep_args): Likewise.
36 * src/m68k/ffi.c (ffi_prep_args): Likewise.
38 2002-07-18 H.J. Lu (hjl@gnu.org)
40 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
41 (libffi_la_SOURCES): Support MIPS_LINUX.
42 (libffi_convenience_la_SOURCES): Likewise.
43 * Makefile.in: Regenerated.
45 * configure.in (mips64*-*): Skip.
46 (mips*-*-linux*): New.
47 * configure: Regenerated.
49 * src/mips/ffi.c: Include <sgidefs.h>.
51 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
53 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
55 2002-05-27 Roger Sayle <roger@eyesopen.com>
57 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
59 2002-05-27 Bo Thorsen <bo@suse.de>
61 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
64 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
66 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
67 beginning of function (for older apple cc).
69 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
71 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
72 script entry, and set LD to it when configuring multilibs.
75 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
77 * configure.in (sparc64-*-netbsd*): Add target.
78 (sparc-*-netbsdelf*): Likewise.
79 * configure: Regenerate.
81 2002-04-28 David S. Miller <davem@redhat.com>
83 * configure.in, configure: Fix SPARC test in previous change.
85 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
87 * Makefile.am: Add Linux for S/390 support.
88 * Makefile.in: Regenerate.
89 * configure.in: Add Linux for S/390 support.
90 * configure: Regenerate.
91 * include/ffi.h.in: Add Linux for S/390 support.
92 * src/s390/ffi.c: New file from libffi CVS tree.
93 * src/s390/sysv.S: New file from libffi CVS tree.
95 2002-04-28 Jakub Jelinek <jakub@redhat.com>
97 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
99 * src/sparc/v8.S: Use it.
100 * src/sparc/v9.S: Likewise.
101 * fficonfig.h.in: Rebuilt.
102 * configure: Rebuilt.
104 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
106 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
108 * src/ia64/unix.S: Add unwind information. Fix comments.
109 Save sp in a way that's compatible with unwind info.
110 (ffi_call_unix): Correctly restore sp in all cases.
111 * src/ia64/ffi.c: Add, fix comments.
113 2002-04-08 Jakub Jelinek <jakub@redhat.com>
115 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
117 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
119 * configure.in (alpha*-*-netbsd*): Add target.
120 * configure: Regenerate.
122 2002-04-04 Jeff Sturm <jsturm@one-point.com>
124 * src/sparc/v8.S: Add unwind info.
125 * src/sparc/v9.S: Likewise.
127 2002-03-30 Krister Walfridsson <cato@df.lth.se>
129 * configure.in: Enable i*86-*-netbsdelf*.
130 * configure: Rebuilt.
132 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
135 * src/mips/n32.s: Delete
136 * src/mips/o32.s: Delete
138 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
140 * configure.in: Enable alpha*-*-freebsd*.
141 * configure: Rebuilt.
143 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
145 * Makefile.am: libfficonvenience -> libffi_convenience.
146 * Makefile.in: Rebuilt.
148 * Makefile.am: Define ffitest_OBJECTS.
149 * Makefile.in: Rebuilt.
151 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
152 David Edelsohn <edelsohn@gnu.org>
154 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
155 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
156 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
157 * Makefile.in: Regenerate.
158 * include/ffi.h.in: Add AIX and Darwin closure definitions.
159 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
160 (flush_icache, flush_range): New functions.
161 (ffi_closure_helper_DARWIN): New function.
162 * src/powerpc/aix_closure.S: New file.
163 * src/powerpc/darwin_closure.S: New file.
165 2002-02-24 Jeff Sturm <jsturm@one-point.com>
167 * include/ffi.h.in: Add typedef for ffi_arg.
168 * src/ffitest.c (main): Declare rint with ffi_arg.
170 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
172 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
173 number of GPRs for floating-point arguments.
175 2002-01-31 Anthony Green <green@redhat.com>
177 * configure: Rebuilt.
178 * configure.in: Replace CHECK_SIZEOF and endian tests with
179 cross-compiler friendly macros.
180 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
183 2002-01-18 David Edelsohn <edelsohn@gnu.org>
185 * src/powerpc/darwin.S (_ffi_call_AIX): New.
186 * src/powerpc/aix.S (ffi_call_DARWIN): New.
188 2002-01-17 David Edelsohn <edelsohn@gnu.org>
190 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
191 (TARGET_SRC_POWERPC_AIX): New.
192 (POWERPC_AIX): New stanza.
193 * Makefile.in: Regenerate.
194 * configure.in: Add AIX case.
195 * configure: Regenerate.
196 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
197 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
198 size. Fix "long double" support.
199 (ffi_call): Add FFI_AIX case.
200 * src/powerpc/aix.S: New.
202 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
204 Implement Darwin PowerPC ABI.
205 * configure.in: Handle powerpc-*-darwin*.
206 * Makefile.am: Set source files for POWERPC_DARWIN.
207 * configure: Rebuilt.
208 * Makefile.in: Rebuilt.
209 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
211 * src/powerpc/darwin.S: New file.
212 * src/powerpc/ffi_darwin.c: New file.
214 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
216 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
218 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
220 * src/x86/sysv.S: Avoid gas-only .balign directive.
221 Use C style comments.
223 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
225 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
226 Fixes PR bootstrap/3563.
228 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
230 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
232 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
234 * configure.in: Recognize sparc*-sun-* host.
235 * configure: Regenerate.
237 2001-06-06 Andrew Haley <aph@redhat.com>
239 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
241 2001-06-03 Andrew Haley <aph@redhat.com>
243 * src/alpha/osf.S: Add unwind info.
244 * src/powerpc/sysv.S: Add unwind info.
245 * src/powerpc/ppc_closure.S: Likewise.
247 2000-05-31 Jeff Sturm <jsturm@one-point.com>
249 * configure.in: Fix AC_ARG_ENABLE usage.
250 * configure: Rebuilt.
252 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
254 * configure.in: Remove warning about beta code.
255 * configure: Rebuilt.
257 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
259 * src/ia64/unix.S: Restore stack pointer when returning from
261 * src/ia64/ffi.c: Fix typo in comment.
263 2001-04-18 Jim Wilson <wilson@redhat.com>
265 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
268 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
270 * Makefile.am: Make a libtool convenience library.
271 * Makefile.in: Rebuilt.
273 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
275 * configure.in: Use different syntax for subdirectory creation.
276 * configure: Rebuilt.
278 2001-03-27 Jon Beniston <jon@beniston.com>
280 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
281 * configure: Rebuilt.
282 * Makefile.am: Added X86_WIN32 target support.
283 * Makefile.in: Rebuilt.
285 * include/ffi.h.in: Added X86_WIN32 target support.
287 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
288 * src/types.c: Added X86_WIN32 target support.
290 * src/x86/win32.S: New file. Based on sysv.S, but with EH
291 stuff removed and made to work with CygWin's gas.
293 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
295 * configure.in: Make target subdirectory in build dir.
296 * Makefile.am: Override suffix based rules to specify correct output
298 * Makefile.in: Rebuilt.
299 * configure: Rebuilt.
301 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
303 * src/powerpc/ppc_closure.S: New file.
304 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
305 involving long long and register pairs.
306 (ffi_prep_closure): New function.
307 (flush_icache): Likewise.
308 (ffi_closure_helper_SYSV): Likewise.
309 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
310 (FFI_TRAMPOLINE_SIZE): Likewise.
311 (FFI_NATIVE_RAW_API): Likewise.
312 * Makefile.in: Rebuilt.
313 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
314 (TARGET_SRC_POWERPC): Likewise.
316 2001-03-19 Tom Tromey <tromey@redhat.com>
318 * Makefile.in: Rebuilt.
319 * Makefile.am (ffitest_LDFLAGS): New macro.
321 2001-03-02 Nick Clifton <nickc@redhat.com>
323 * include/ffi.h.in: Remove RCS ident string.
324 * include/ffi_mips.h: Remove RCS ident string.
325 * src/debug.c: Remove RCS ident string.
326 * src/ffitest.c: Remove RCS ident string.
327 * src/prep_cif.c: Remove RCS ident string.
328 * src/types.c: Remove RCS ident string.
329 * src/alpha/ffi.c: Remove RCS ident string.
330 * src/alpha/osf.S: Remove RCS ident string.
331 * src/arm/ffi.c: Remove RCS ident string.
332 * src/arm/sysv.S: Remove RCS ident string.
333 * src/mips/ffi.c: Remove RCS ident string.
334 * src/mips/n32.S: Remove RCS ident string.
335 * src/mips/o32.S: Remove RCS ident string.
336 * src/sparc/ffi.c: Remove RCS ident string.
337 * src/sparc/v8.S: Remove RCS ident string.
338 * src/sparc/v9.S: Remove RCS ident string.
339 * src/x86/ffi.c: Remove RCS ident string.
340 * src/x86/sysv.S: Remove RCS ident string.
342 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
344 * include/ffi.h.in: Change sourceware.cygnus.com references to
347 2000-12-09 Richard Henderson <rth@redhat.com>
349 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
350 (ffi_closure_osf_inner): Index rather than increment avalue
351 and arg_types. Give ffi_closure_osf the raw return value type.
352 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
355 2000-12-07 Richard Henderson <rth@redhat.com>
357 * src/raw_api.c (ffi_translate_args): Fix typo.
358 (ffi_prep_closure): Likewise.
360 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
362 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
363 cif->bytes for new ffi_call_osf implementation.
364 (ffi_prep_args): Absorb into ...
365 (ffi_call): ... here. Do all stack allocation here and
366 avoid a callback function.
367 (ffi_prep_closure, ffi_closure_osf_inner): New.
368 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
369 (ffi_closure_osf): New.
371 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
373 * config.guess, config.sub, install-sh: Removed.
374 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
375 * Makefile.in: Rebuilt.
377 * acinclude.m4: Include libtool macros from the top level.
378 * aclocal.m4, configure: Rebuilt.
380 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
382 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
383 * configure: Rebuilt.
385 2000-05-11 Scott Bambrough <scottb@netwinder.org>
387 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
388 memory correctly. Use conditional instructions, not branches where
391 2000-05-04 Tom Tromey <tromey@cygnus.com>
393 * configure: Rebuilt.
394 * configure.in: Match `arm*-*-linux-*'.
395 From Chris Dornan <cdornan@arm.com>.
397 2000-04-28 Jakub Jelinek <jakub@redhat.com>
399 * Makefile.am (SUBDIRS): Define.
400 (AM_MAKEFLAGS): Likewise.
401 (Multilib support.): Add section.
402 * Makefile.in: Rebuilt.
403 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
404 New variables. Set for gcc using -print-multi-lib. Export them
406 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
407 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
409 (extra_compiler_flags_value, extra_compiler_flags): Check these
410 for extra compiler options which need to be passed down in
413 2000-04-16 Anthony Green <green@redhat.com>
415 * configure: Rebuilt.
416 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
418 2000-04-14 Jakub Jelinek <jakub@redhat.com>
420 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
421 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
422 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
423 Replace all void * sizeofs with sizeof(int).
424 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
425 different than DOUBLE.
426 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
427 (ffi_prep_args_v9): New function.
428 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
429 (ffi_V9_return_struct): New function.
430 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
431 32bit code (not yet cross-arch calls).
432 * src/sparc/v8.S: Add struct return delay nop.
434 * src/sparc/v9.S: New file.
435 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
436 is used on sparc64 only for structures larger than 32 bytes.
437 Pass by reference for structures is done for structure arguments
438 larger than 16 bytes.
439 * src/ffitest.c (main): Use 64bit rint on sparc64.
440 Run long long tests on sparc.
441 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
443 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
445 * configure.in (sparc-*-linux*): New supported target.
446 (sparc64-*-linux*): Likewise.
447 * configure: Rebuilt.
448 * Makefile.am: Add v9.S to SPARC files.
449 * Makefile.in: Likewise.
450 (LINK): Surround $(CCLD) into double quotes, so that multilib
451 compiles work correctly.
453 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
455 * configure: Rebuilt.
456 * configure.in: (i*86-*-solaris*): New libffi target. Patch
457 proposed by Bryce McKinlay.
459 2000-03-20 Tom Tromey <tromey@cygnus.com>
461 * Makefile.in: Hand edit for java_raw_api.lo.
463 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
465 * config.guess, config.sub: Update from the gcc tree.
466 Fix for PR libgcj/168.
468 2000-03-03 Tom Tromey <tromey@cygnus.com>
470 * Makefile.in: Fixed ia64 by hand.
472 * configure: Rebuilt.
473 * configure.in (--enable-multilib): New option.
474 (libffi_basedir): New subst.
475 (AC_OUTPUT): Added multilib code.
477 2000-03-02 Tom Tromey <tromey@cygnus.com>
479 * Makefile.in: Rebuilt.
480 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
483 2000-02-25 Hans Boehm <boehm@acm.org>
485 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
487 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
489 (ffi_prep_raw_closure): Use ffi_translate_args, not
490 ffi_closure_translate.
491 * src/java_raw_api.c: New file.
492 * src/ffitest.c (closure_test_fn): New function.
493 (main): Define `rint' as long long on IA64. Added new test when
494 FFI_CLOSURES is defined.
495 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
496 (ffi_abi): Recognize IA64.
497 (ffi_raw): Added `flt' field.
498 Added "Java raw API" code.
499 * configure.in: Recognize ia64.
500 * Makefile.am (TARGET_SRC_IA64): New macro.
501 (libffi_la_common_SOURCES): Added java_raw_api.c.
502 (libffi_la_SOURCES): Define in IA64 case.
504 2000-01-04 Tom Tromey <tromey@cygnus.com>
506 * Makefile.in: Rebuilt with newer automake.
508 1999-12-31 Tom Tromey <tromey@cygnus.com>
510 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
512 1999-09-01 Tom Tromey <tromey@cygnus.com>
514 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
516 * fficonfig.h.in: Rebuilt.
517 * configure: Rebuilt.
518 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
519 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
520 * acconfig.h: Don't #undef PACKAGE or VERSION.
522 1999-08-09 Anthony Green <green@cygnus.com>
524 * include/ffi.h.in: Try to work around messy header problem
525 with PACKAGE and VERSION.
527 * configure: Rebuilt.
528 * configure.in: Change version to 2.00-beta.
530 * fficonfig.h.in: Rebuilt.
531 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
533 * src/x86/ffi.c (ffi_raw_call): Rename.
535 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
537 * src/x86/ffi.c (ffi_closure_SYSV): New function.
538 (ffi_prep_incoming_args_SYSV): Ditto.
539 (ffi_prep_closure): Ditto.
540 (ffi_closure_raw_SYSV): Ditto.
541 (ffi_prep_raw_closure): More ditto.
542 (ffi_call_raw): Final ditto.
544 * include/ffi.h.in: Add definitions for closure and raw API.
546 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
549 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
551 * src/raw_api.c: New file.
553 * include/ffi.h.in (ffi_raw): New type.
554 (UINT_ARG, SINT_ARG): New defines.
555 (ffi_closure, ffi_raw_closure): New types.
556 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
558 * configure.in: Add check for endianness and sizeof void*.
560 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
563 * configure: Rebuilt.
565 Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
567 * configure.in: Add x86 and powerpc BeOS configurations.
568 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
570 1999-05-09 Anthony Green <green@cygnus.com>
572 * configure.in: Add warning about this being beta code.
573 Remove src/Makefile.am from the picture.
574 * configure: Rebuilt.
576 * Makefile.am: Move logic from src/Makefile.am. Add changes
577 to support libffi as a target library.
578 * Makefile.in: Rebuilt.
580 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
581 Upgraded to new autoconf, automake, libtool.
585 * LICENSE: Update copyright date.
587 * src/Makefile.am, src/Makefile.in: Removed.
589 1998-11-29 Anthony Green <green@cygnus.com>
591 * include/ChangeLog: Removed.
592 * src/ChangeLog: Removed.
593 * src/mips/ChangeLog: Removed.
594 * src/sparc/ChangeLog: Remboved.
595 * src/x86/ChangeLog: Removed.
597 * ChangeLog.v1: Created.