* config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
[official-gcc.git] / libffi / ChangeLog
blobb609f1d6212fbcb39b00a909cfc532099e490148
1 2003-05-07  Jeff Sturm  <jsturm@one-point.com>
3         Fixes PR bootstrap/10656
4         * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
5         support for .register pseudo-op.
6         * src/sparc/v8.S: Use it.
7         * fficonfig.h.in: Rebuilt.
8         * configure: Rebuilt.
10 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
12         * include/ffi.h.in (POWERPC64): Define if 64-bit.
13         (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
14         Make it the default on POWERPC64.
15         (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
16         * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
17         * configure: Rebuilt.
18         * src/powerpc/ffi.c (hidden): Define.
19         (ffi_prep_args_SYSV): Renamed from
20         ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
21         (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
22         ASM_NEEDS_REGISTERS64): New.
23         (ffi_prep_args64): New function.
24         (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
25         (ffi_call): Likewise.
26         (ffi_prep_closure): Likewise.
27         (flush_icache): Surround by #ifndef POWERPC64.
28         (ffi_dblfl): New union type.
29         (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
30         (ffi_closure_helper_LINUX64): New function.
31         * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
32         __powerpc64__.
33         * src/powerpc/sysv.S: Likewise.
34         (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
35         * src/powerpc/linux64.S: New file.
36         * src/powerpc/linux64_closure.S: New file.
37         * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
38         src/powerpc/linux64_closure.S.
39         (TARGET_SRC_POWERPC): Likewise.
41         * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
42         closure_test_fn3): Fix result printing on big-endian 64-bit
43         machines.
44         (main): Print tst2_arg instead of uninitialized tst2_result.
46         * src/ffitest.c (main): Hide what closure pointer really points to
47         from the compiler.
49 2003-04-16  Richard Earnshaw  <rearnsha@arm.com>
51         * configure.in (arm-*-netbsdelf*): Add configuration.
52         (configure): Regenerated.
54 2003-04-04  Loren J. Rittle  <ljrittle@acm.org>
56         * include/Makefile.in: Regenerate.
58 2003-03-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
60         * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
61         bit mode.
62         * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
63         Receive closure pointer through parameter, read args using
64         __builtin_dwarf_cfa.
65         (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
67 2003-03-12  Andreas Schwab  <schwab@suse.de>
69         * configure.in: Avoid trailing /. in toolexeclibdir.
70         * configure: Rebuilt.
72 2003-03-03  Andreas Tobler <a.tobler@schweiz.ch>
74         * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
76 2003-02-06  Andreas Tobler <a.tobler@schweiz.ch>
78         * libffi/src/powerpc/darwin_closure.S:
79         Fix alignement bug, allocate 8 bytes for the result.
80         * libffi/src/powerpc/aix_closure.S: 
81         Likewise.
82         * libffi/src/powerpc/ffi_darwin.c:
83         Update stackframe description for aix/darwin_closure.S.
85 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
87         * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
88         attribute.
90 2003-01-31  Christian Cornelssen  <ccorn@cs.tu-berlin.de>,
91             Andreas Schwab  <schwab@suse.de>
93         * configure.in: Adjust command to source config-ml.in to account
94         for changes to the libffi_basedir definition.
95         (libffi_basedir): Remove ${srcdir} from value and include trailing
96         slash if nonempty.
97         
98         * configure: Regenerate.
100 2003-01-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
102         * src/powerpc/ppc_closure.S: Recode to fit shared libs.
104 2003-01-28  Andrew Haley  <aph@redhat.com>
106         * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
107         * src/x86/ffi64.c (ffi_prep_closure): New.
108         (ffi_closure_UNIX64_inner): New.
109         * src/x86/unix64.S (ffi_closure_UNIX64): New.
111 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
113         * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
114         Remove USE_LIBDIR conditional.
115         * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
116         * Makefile.in, configure: Rebuilt.
118 2003-01027  David Edelsohn  <edelsohn@gnu.org>
120         * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
121         * Makefile.in: Regenerate.
123 2003-01-22  Andrew Haley  <aph@redhat.com>
125         * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
126         unwind info.
128 2003-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
130         * src/powerpc/darwin.S: Add unwind info.
131         * src/powerpc/darwin_closure.S: Likewise.
133 2003-01-14  Andrew Haley  <aph@redhat.com>
135         * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
136         (ffi_prep_cif_machdep): Likewise.
137         * src/x86/unix64.S: Add unwind info.
139 2003-01-14  Andreas Jaeger  <aj@suse.de>
141         * src/ffitest.c (main): Only use ffi_closures if those are
142         supported.
144 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
146         * libffi/src/ffitest.c
147          add closure testcases
149 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
151         * libffi/src/powerpc/ffi.c
152          fix alignment bug for float (4 byte aligned iso 8 byte)
154 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
156         * src/powerpc/ffi_darwin.c: Remove RCS version string.
157         * src/powerpc/darwin.S: Remove RCS version string.
159 2003-01-03  Jeff Sturm  <jsturm@one-point.com>
161         * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
162         * src/ffitest.c (main): Use static storage for closure.
163         * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
164         * src/sparc/v8.S (ffi_closure_v8): New.
165         * src/sparc/v9.S (ffi_closure_v9): New.
167 2002-11-10  Ranjit Mathew <rmathew@hotmail.com>
169         * include/ffi.h.in: Added FFI_STDCALL ffi_type
170           enumeration for X86_WIN32.
171         * src/x86/win32.S: Added ffi_call_STDCALL function
172           definition.
173         * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
174           switch cases for recognising FFI_STDCALL and
175           calling ffi_call_STDCALL if target is X86_WIN32.
176         * src/ffitest.c (my_stdcall_strlen/stdcall_many):
177           stdcall versions of the "my_strlen" and "many"
178           test functions (for X86_WIN32).
179           Added test cases to test stdcall invocation using
180           these functions.
182 2002-12-02  Kaz Kojima  <kkojima@gcc.gnu.org>
184         * src/sh/sysv.S: Add DWARF2 unwind info.
186 2002-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
188         * src/s390/sysv.S (.eh_frame section): Make section read-only.
190 2002-11-26  Jim Wilson  <wilson@redhat.com>
192         * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
194 2002-11-23  H.J. Lu <hjl@gnu.org>
196         * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
197         Include ../config/accross.m4.
198         * aclocal.m4; Rebuild.
199         * configure: Likewise.
201 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
203         * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
205 2002-11-11  DJ Delorie  <dj@redhat.com>
207         * configure.in: Look for common files in the right place.
209 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
211         * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
212         raw data as _Jv_word values, not ffi_raw.
213         (ffi_java_ptrarray_to_raw): Likewise.
214         (ffi_java_rvalue_to_raw): New function.
215         (ffi_java_raw_call): Call it.
216         (ffi_java_raw_to_rvalue): New function.
217         (ffi_java_translate_args): Call it.
218         * src/ffitest.c (closure_test_fn): Interpret return value
219         as ffi_arg, not int.
220         * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
221         FFI_TYPE_POINTER case.
222         (ffi_closure_helper_SYSV): Likewise.  Also, assume return
223         values extended to word size.
225 2002-10-02  Andreas Jaeger  <aj@suse.de>
227         * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
229 2002-10-01  Bo Thorsen  <bo@smetana.suse.de>
231         * include/ffi.h.in: Fix i386 win32 compilation.
233 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
235         * configure.in: Add s390x-*-linux-* target.
236         * configure: Regenerate.
237         * include/ffi.h.in: Define S390X for s390x targets.
238         (FFI_CLOSURES): Define for s390/s390x.
239         (FFI_TRAMPOLINE_SIZE): Likewise.
240         (FFI_NATIVE_RAW_API): Likewise.
241         * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
242         * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
243         * src/s390/ffi.c: Major rework of existing code.  Add support for
244         s390x targets.  Add closure support.
245         * src/s390/sysv.S: Likewise.
247 2002-09-29  Richard Earnshaw  <rearnsha@arm.com>
249         * src/arm/sysv.S: Fix typo.
251 2002-09-28  Richard Earnshaw  <rearnsha@arm.com>
253         * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
254         has defined __USER_LABEL_PREFIX__, then use it in CNAME.
255         (ffi_call_SYSV): Handle soft-float.
257 2002-09-27  Bo Thorsen  <bo@suse.de>
259         * include/ffi.h.in: Fix multilib x86-64 support.
261 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
263         * Makefile.am (all-multi): Fix multilib parallel build.
265 2002-07-19  Kaz Kojima  <kkojima@gcc.gnu.org>
267         * configure.in (sh[34]*-*-linux*): Add brackets.
268         * configure: Regenerate.
270 2002-07-18  Kaz Kojima  <kkojima@gcc.gnu.org>
272         * Makefile.am: Add SH support.
273         * Makefile.in: Regenerate.
274         * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
275         * configure: Regenerate.
276         * include/ffi.h.in: Add SH support.
277         * src/sh/ffi.c: New file.
278         * src/sh/sysv.S: New file.
279         * src/types.c: Add SH support.
281 2002-07-16  Bo Thorsen  <bo@suse.de>
283         * src/x86/ffi64.c: New file that adds x86-64 support.
284         * src/x86/unix64.S: New file that handles argument setup for
285         x86-64.
286         * src/x86/sysv.S: Don't use this on x86-64.
287         * src/x86/ffi.c: Don't use this on x86-64.
288         Remove unused vars.
289         * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
290         for x86-64.
291         * src/ffitest.c (struct6): New test that tests a special case in
292         the x86-64 ABI.
293         (struct7): Likewise.
294         (struct8): Likewise.
295         (struct9): Likewise.
296         (closure_test_fn): Silence warning about this when it's not used.
297         (main): Add the new tests.
298         (main): Fix a couple of wrong casts and silence some compiler warnings.
299         * include/ffi.h.in: Add x86-64 ABI definition.
300         * fficonfig.h.in: Regenerate.
301         * Makefile.am: Add x86-64 support.
302         * configure.in: Likewise.
303         * Makefile.in: Regenerate.
304         * configure: Likewise.
306 2002-06-24  Bo Thorsen  <bo@suse.de>
308         * src/types.c: Merge settings for similar architectures.
309         Add x86-64 sizes and alignments.
311 2002-06-23  Bo Thorsen  <bo@suse.de>
313         * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
314         * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
315         * src/mips/ffi.c (ffi_prep_args): Likewise.
316         * src/m68k/ffi.c (ffi_prep_args): Likewise.
318 2002-07-18  H.J. Lu  (hjl@gnu.org)
320         * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
321         (libffi_la_SOURCES): Support MIPS_LINUX.
322         (libffi_convenience_la_SOURCES): Likewise.
323         * Makefile.in: Regenerated.
325         * configure.in (mips64*-*): Skip.
326         (mips*-*-linux*): New.
327         * configure: Regenerated.
329         * src/mips/ffi.c: Include <sgidefs.h>.
331 2002-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
333         * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
335 2002-05-27  Roger Sayle  <roger@eyesopen.com>
337         * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
339 2002-05-27  Bo Thorsen  <bo@suse.de>
341         * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
342         fix formatting.
344 2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>
346         * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
347         beginning of function (for older apple cc).
349 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
351         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
352         script entry, and set LD to it when configuring multilibs.
353         * configure: Rebuilt.
355 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
357         * configure.in (sparc64-*-netbsd*): Add target.
358         (sparc-*-netbsdelf*): Likewise.
359         * configure: Regenerate.
361 2002-04-28  David S. Miller  <davem@redhat.com>
363         * configure.in, configure: Fix SPARC test in previous change.
365 2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>
367         * Makefile.am: Add Linux for S/390 support.
368         * Makefile.in: Regenerate.
369         * configure.in: Add Linux for S/390 support.
370         * configure: Regenerate.
371         * include/ffi.h.in: Add Linux for S/390 support.
372         * src/s390/ffi.c: New file from libffi CVS tree.
373         * src/s390/sysv.S: New file from libffi CVS tree.
375 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
377         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
378         %r_disp32().
379         * src/sparc/v8.S: Use it.
380         * src/sparc/v9.S: Likewise.
381         * fficonfig.h.in: Rebuilt.
382         * configure: Rebuilt.
384 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
386         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
387         correctly.
388         * src/ia64/unix.S: Add unwind information. Fix comments.
389         Save sp in a way that's compatible with unwind info.
390         (ffi_call_unix): Correctly restore sp in all cases.
391         * src/ia64/ffi.c: Add, fix comments.
393 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
395         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
397 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
399         * configure.in (alpha*-*-netbsd*): Add target.
400         * configure: Regenerate.
402 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
404         * src/sparc/v8.S: Add unwind info.
405         * src/sparc/v9.S: Likewise.
407 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
409         * configure.in: Enable i*86-*-netbsdelf*.
410         * configure: Rebuilt.
412 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
414         PR other/2620
415         * src/mips/n32.s: Delete
416         * src/mips/o32.s: Delete
418 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
420         * configure.in: Enable alpha*-*-freebsd*.
421         * configure: Rebuilt.
423 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
425         * Makefile.am: libfficonvenience -> libffi_convenience.
426         * Makefile.in: Rebuilt.
428         * Makefile.am: Define ffitest_OBJECTS.
429         * Makefile.in: Rebuilt.
431 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
432             David Edelsohn  <edelsohn@gnu.org>
434         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
435         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
436         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
437         * Makefile.in: Regenerate.
438         * include/ffi.h.in: Add AIX and Darwin closure definitions.
439         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
440         (flush_icache, flush_range): New functions.
441         (ffi_closure_helper_DARWIN): New function.
442         * src/powerpc/aix_closure.S: New file.
443         * src/powerpc/darwin_closure.S: New file.
445 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
447         * include/ffi.h.in: Add typedef for ffi_arg.
448         * src/ffitest.c (main): Declare rint with ffi_arg.
450 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
452         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
453         number of GPRs for floating-point arguments.
455 2002-01-31  Anthony Green  <green@redhat.com>
457         * configure: Rebuilt.
458         * configure.in: Replace CHECK_SIZEOF and endian tests with
459         cross-compiler friendly macros.
460         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
461         macros.
463 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
465         * src/powerpc/darwin.S (_ffi_call_AIX): New.
466         * src/powerpc/aix.S (ffi_call_DARWIN): New.
468 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
470         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
471         (TARGET_SRC_POWERPC_AIX): New.
472         (POWERPC_AIX): New stanza.
473         * Makefile.in: Regenerate.
474         * configure.in: Add AIX case.
475         * configure: Regenerate.
476         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
477         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
478         size.  Fix "long double" support.
479         (ffi_call): Add FFI_AIX case.
480         * src/powerpc/aix.S: New.
482 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
484         Implement Darwin PowerPC ABI.
485         * configure.in: Handle powerpc-*-darwin*.
486         * Makefile.am: Set source files for POWERPC_DARWIN.
487         * configure: Rebuilt.
488         * Makefile.in: Rebuilt.
489         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
490         POWERPC_DARWIN.
491         * src/powerpc/darwin.S: New file.
492         * src/powerpc/ffi_darwin.c: New file.
494 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
496         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
498 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
500         * src/x86/sysv.S: Avoid gas-only .balign directive.
501         Use C style comments.
503 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
505         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
506         Fixes PR bootstrap/3563.
508 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
510         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
512 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
514         * configure.in: Recognize sparc*-sun-* host.
515         * configure: Regenerate.
517 2001-06-06  Andrew Haley  <aph@redhat.com>
519         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
521 2001-06-03  Andrew Haley  <aph@redhat.com>
523         * src/alpha/osf.S: Add unwind info.
524         * src/powerpc/sysv.S: Add unwind info.
525         * src/powerpc/ppc_closure.S: Likewise.
527 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
529         * configure.in: Fix AC_ARG_ENABLE usage.
530         * configure: Rebuilt.
532 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
534         * configure.in: Remove warning about beta code.
535         * configure: Rebuilt.
537 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
539         * src/ia64/unix.S: Restore stack pointer when returning from
540         ffi_closure_UNIX.
541         * src/ia64/ffi.c: Fix typo in comment.
543 2001-04-18  Jim Wilson  <wilson@redhat.com>
545         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
546         to eliminate RAW DV.
548 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
550         * Makefile.am: Make a libtool convenience library.
551         * Makefile.in: Rebuilt.
553 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
555         * configure.in: Use different syntax for subdirectory creation.
556         * configure: Rebuilt.
558 2001-03-27  Jon Beniston  <jon@beniston.com>
560         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
561         * configure: Rebuilt.
562         * Makefile.am: Added X86_WIN32 target support.
563         * Makefile.in: Rebuilt.
565         * include/ffi.h.in: Added X86_WIN32 target support.
567         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
568         * src/types.c: Added X86_WIN32 target support.
570         * src/x86/win32.S: New file. Based on sysv.S, but with EH
571         stuff removed and made to work with CygWin's gas.
573 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
575         * configure.in: Make target subdirectory in build dir.
576         * Makefile.am: Override suffix based rules to specify correct output
577         subdirectory.
578         * Makefile.in: Rebuilt.
579         * configure: Rebuilt.
581 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
583         * src/powerpc/ppc_closure.S: New file.
584         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
585         involving long long and register pairs.
586         (ffi_prep_closure): New function.
587         (flush_icache): Likewise.
588         (ffi_closure_helper_SYSV): Likewise.
589         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
590         (FFI_TRAMPOLINE_SIZE): Likewise.
591         (FFI_NATIVE_RAW_API): Likewise.
592         * Makefile.in: Rebuilt.
593         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
594         (TARGET_SRC_POWERPC): Likewise.
596 2001-03-19  Tom Tromey  <tromey@redhat.com>
598         * Makefile.in: Rebuilt.
599         * Makefile.am (ffitest_LDFLAGS): New macro.
601 2001-03-02  Nick Clifton  <nickc@redhat.com>
603         * include/ffi.h.in: Remove RCS ident string.
604         * include/ffi_mips.h: Remove RCS ident string.
605         * src/debug.c: Remove RCS ident string.
606         * src/ffitest.c: Remove RCS ident string.
607         * src/prep_cif.c: Remove RCS ident string.
608         * src/types.c: Remove RCS ident string.
609         * src/alpha/ffi.c: Remove RCS ident string.
610         * src/alpha/osf.S: Remove RCS ident string.
611         * src/arm/ffi.c: Remove RCS ident string.
612         * src/arm/sysv.S: Remove RCS ident string.
613         * src/mips/ffi.c: Remove RCS ident string.
614         * src/mips/n32.S: Remove RCS ident string.
615         * src/mips/o32.S: Remove RCS ident string.
616         * src/sparc/ffi.c: Remove RCS ident string.
617         * src/sparc/v8.S: Remove RCS ident string.
618         * src/sparc/v9.S: Remove RCS ident string.
619         * src/x86/ffi.c: Remove RCS ident string.
620         * src/x86/sysv.S: Remove RCS ident string.
622 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
624         * include/ffi.h.in: Change sourceware.cygnus.com references to
625         gcc.gnu.org.
627 2000-12-09  Richard Henderson  <rth@redhat.com>
629         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
630         (ffi_closure_osf_inner): Index rather than increment avalue
631         and arg_types.  Give ffi_closure_osf the raw return value type.
632         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
633         promotion.
635 2000-12-07  Richard Henderson  <rth@redhat.com>
637         * src/raw_api.c (ffi_translate_args): Fix typo.
638         (ffi_prep_closure): Likewise.
640         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
641         FFI_TRAMPOLINE_SIZE.
642         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
643         cif->bytes for new ffi_call_osf implementation.
644         (ffi_prep_args): Absorb into ...
645         (ffi_call): ... here.  Do all stack allocation here and
646         avoid a callback function.
647         (ffi_prep_closure, ffi_closure_osf_inner): New.
648         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
649         (ffi_closure_osf): New.
651 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
653         * config.guess, config.sub, install-sh: Removed.
654         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
655         * Makefile.in: Rebuilt.
657         * acinclude.m4: Include libtool macros from the top level.
658         * aclocal.m4, configure: Rebuilt.
660 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
662         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
663         * configure: Rebuilt.
665 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
667         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
668         memory correctly.  Use conditional instructions, not branches where
669         possible.
671 2000-05-04  Tom Tromey  <tromey@cygnus.com>
673         * configure: Rebuilt.
674         * configure.in: Match `arm*-*-linux-*'.
675         From Chris Dornan <cdornan@arm.com>.
677 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
679         * Makefile.am (SUBDIRS): Define.
680         (AM_MAKEFLAGS): Likewise.
681         (Multilib support.): Add section.
682         * Makefile.in: Rebuilt.
683         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
684         New variables. Set for gcc using -print-multi-lib. Export them
685         to libtool.
686         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
687         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
688         for -shared links.
689         (extra_compiler_flags_value, extra_compiler_flags): Check these
690         for extra compiler options which need to be passed down in
691         compiler_flags.
693 2000-04-16  Anthony Green  <green@redhat.com>
695         * configure: Rebuilt.
696         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
698 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
700         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
701         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
702         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
703         Replace all void * sizeofs with sizeof(int).
704         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
705         different than DOUBLE.
706         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
707         (ffi_prep_args_v9): New function.
708         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
709         (ffi_V9_return_struct): New function.
710         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
711         32bit code (not yet cross-arch calls).
712         * src/sparc/v8.S: Add struct return delay nop.
713         Handle long long.
714         * src/sparc/v9.S: New file.
715         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
716         is used on sparc64 only for structures larger than 32 bytes.
717         Pass by reference for structures is done for structure arguments
718         larger than 16 bytes.
719         * src/ffitest.c (main): Use 64bit rint on sparc64.
720         Run long long tests on sparc.
721         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
722         sparc64.
723         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
724         on sparc64.
725         * configure.in (sparc-*-linux*): New supported target.
726         (sparc64-*-linux*): Likewise.
727         * configure: Rebuilt.
728         * Makefile.am: Add v9.S to SPARC files.
729         * Makefile.in: Likewise.
730         (LINK): Surround $(CCLD) into double quotes, so that multilib
731         compiles work correctly.
733 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
735         * configure: Rebuilt.
736         * configure.in: (i*86-*-solaris*): New libffi target. Patch
737         proposed by Bryce McKinlay.
739 2000-03-20  Tom Tromey  <tromey@cygnus.com>
741         * Makefile.in: Hand edit for java_raw_api.lo.
743 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
745         * config.guess, config.sub: Update from the gcc tree.
746         Fix for PR libgcj/168.
748 2000-03-03  Tom Tromey  <tromey@cygnus.com>
750         * Makefile.in: Fixed ia64 by hand.
752         * configure: Rebuilt.
753         * configure.in (--enable-multilib): New option.
754         (libffi_basedir): New subst.
755         (AC_OUTPUT): Added multilib code.
757 2000-03-02  Tom Tromey  <tromey@cygnus.com>
759         * Makefile.in: Rebuilt.
760         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
761         directory name.
763 2000-02-25  Hans Boehm <boehm@acm.org>
765         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
766         files.
767         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
768         list.
769         (ffi_prep_raw_closure): Use ffi_translate_args, not
770         ffi_closure_translate.
771         * src/java_raw_api.c: New file.
772         * src/ffitest.c (closure_test_fn): New function.
773         (main): Define `rint' as long long on IA64.  Added new test when
774         FFI_CLOSURES is defined.
775         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
776         (ffi_abi): Recognize IA64.
777         (ffi_raw): Added `flt' field.
778         Added "Java raw API" code.
779         * configure.in: Recognize ia64.
780         * Makefile.am (TARGET_SRC_IA64): New macro.
781         (libffi_la_common_SOURCES): Added java_raw_api.c.
782         (libffi_la_SOURCES): Define in IA64 case.
784 2000-01-04  Tom Tromey  <tromey@cygnus.com>
786         * Makefile.in: Rebuilt with newer automake.
788 1999-12-31  Tom Tromey  <tromey@cygnus.com>
790         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
792 1999-09-01  Tom Tromey  <tromey@cygnus.com>
794         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
795         undefs.
796         * fficonfig.h.in: Rebuilt.
797         * configure: Rebuilt.
798         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
799         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
800         * acconfig.h: Don't #undef PACKAGE or VERSION.
802 1999-08-09  Anthony Green  <green@cygnus.com>
804         * include/ffi.h.in: Try to work around messy header problem
805         with PACKAGE and VERSION.
807         * configure: Rebuilt.
808         * configure.in: Change version to 2.00-beta.
810         * fficonfig.h.in: Rebuilt.
811         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
813         * src/x86/ffi.c (ffi_raw_call): Rename.
815 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
817         * src/x86/ffi.c (ffi_closure_SYSV): New function.
818         (ffi_prep_incoming_args_SYSV): Ditto.
819         (ffi_prep_closure): Ditto.
820         (ffi_closure_raw_SYSV): Ditto.
821         (ffi_prep_raw_closure): More ditto.
822         (ffi_call_raw): Final ditto.
824         * include/ffi.h.in: Add definitions for closure and raw API.
826         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
827         FFI_TYPE_UINT64.
829         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
831         * src/raw_api.c: New file.
833         * include/ffi.h.in (ffi_raw): New type.
834         (UINT_ARG, SINT_ARG): New defines.
835         (ffi_closure, ffi_raw_closure): New types.
836         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
838         * configure.in: Add check for endianness and sizeof void*.
840         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
841         instead of directly.
843         * configure: Rebuilt.
845 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
847         * configure.in: Add x86 and powerpc BeOS configurations.
848         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
850 1999-05-09  Anthony Green  <green@cygnus.com>
852         * configure.in: Add warning about this being beta code.
853         Remove src/Makefile.am from the picture.
854         * configure: Rebuilt.
856         * Makefile.am: Move logic from src/Makefile.am.  Add changes
857         to support libffi as a target library.
858         * Makefile.in: Rebuilt.
860         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
861         Upgraded to new autoconf, automake, libtool.
863         * README: Tweaks.
865         * LICENSE: Update copyright date.
867         * src/Makefile.am, src/Makefile.in: Removed.
869 1998-11-29  Anthony Green  <green@cygnus.com>
871         * include/ChangeLog: Removed.
872         * src/ChangeLog: Removed.
873         * src/mips/ChangeLog: Removed.
874         * src/sparc/ChangeLog: Remboved.
875         * src/x86/ChangeLog: Removed.
877         * ChangeLog.v1: Created.