OSDN Git Service

* src/ffitest.c (main): Only use ffi_closures if those are
[pf3gnuchains/gcc-fork.git] / libffi / ChangeLog
1 2003-01-14  Andreas Jaeger  <aj@suse.de>
2
3         * src/ffitest.c (main): Only use ffi_closures if those are
4         supported.
5
6 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
7
8         * libffi/src/ffitest.c
9          add closure testcases
10
11 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
12
13         * libffi/src/powerpc/ffi.c
14          fix alignment bug for float (4 byte aligned iso 8 byte)
15
16 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
17
18         * src/powerpc/ffi_darwin.c: Remove RCS version string.
19         * src/powerpc/darwin.S: Remove RCS version string.
20
21 2003-01-03  Jeff Sturm  <jsturm@one-point.com>
22
23         * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
24         * src/ffitest.c (main): Use static storage for closure.
25         * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
26         * src/sparc/v8.S (ffi_closure_v8): New.
27         * src/sparc/v9.S (ffi_closure_v9): New.
28
29 2002-11-10  Ranjit Mathew <rmathew@hotmail.com>
30
31         * include/ffi.h.in: Added FFI_STDCALL ffi_type
32           enumeration for X86_WIN32.
33         * src/x86/win32.S: Added ffi_call_STDCALL function
34           definition.
35         * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
36           switch cases for recognising FFI_STDCALL and
37           calling ffi_call_STDCALL if target is X86_WIN32.
38         * src/ffitest.c (my_stdcall_strlen/stdcall_many):
39           stdcall versions of the "my_strlen" and "many"
40           test functions (for X86_WIN32).
41           Added test cases to test stdcall invocation using
42           these functions.
43
44 2002-12-02  Kaz Kojima  <kkojima@gcc.gnu.org>
45
46         * src/sh/sysv.S: Add DWARF2 unwind info.
47
48 2002-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
49
50         * src/s390/sysv.S (.eh_frame section): Make section read-only.
51
52 2002-11-26  Jim Wilson  <wilson@redhat.com>
53
54         * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
55
56 2002-11-23  H.J. Lu <hjl@gnu.org>
57
58         * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
59         Include ../config/accross.m4.
60         * aclocal.m4; Rebuild.
61         * configure: Likewise.
62
63 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
64
65         * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
66
67 2002-11-11  DJ Delorie  <dj@redhat.com>
68
69         * configure.in: Look for common files in the right place.
70
71 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
72
73         * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
74         raw data as _Jv_word values, not ffi_raw.
75         (ffi_java_ptrarray_to_raw): Likewise.
76         (ffi_java_rvalue_to_raw): New function.
77         (ffi_java_raw_call): Call it.
78         (ffi_java_raw_to_rvalue): New function.
79         (ffi_java_translate_args): Call it.
80         * src/ffitest.c (closure_test_fn): Interpret return value
81         as ffi_arg, not int.
82         * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
83         FFI_TYPE_POINTER case.
84         (ffi_closure_helper_SYSV): Likewise.  Also, assume return
85         values extended to word size.
86
87 2002-10-02  Andreas Jaeger  <aj@suse.de>
88
89         * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
90
91 2002-10-01  Bo Thorsen  <bo@smetana.suse.de>
92
93         * include/ffi.h.in: Fix i386 win32 compilation.
94
95 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
96
97         * configure.in: Add s390x-*-linux-* target.
98         * configure: Regenerate.
99         * include/ffi.h.in: Define S390X for s390x targets.
100         (FFI_CLOSURES): Define for s390/s390x.
101         (FFI_TRAMPOLINE_SIZE): Likewise.
102         (FFI_NATIVE_RAW_API): Likewise.
103         * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
104         * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
105         * src/s390/ffi.c: Major rework of existing code.  Add support for
106         s390x targets.  Add closure support.
107         * src/s390/sysv.S: Likewise.
108
109 2002-09-29  Richard Earnshaw  <rearnsha@arm.com>
110
111         * src/arm/sysv.S: Fix typo.
112
113 2002-09-28  Richard Earnshaw  <rearnsha@arm.com>
114
115         * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
116         has defined __USER_LABEL_PREFIX__, then use it in CNAME.
117         (ffi_call_SYSV): Handle soft-float.
118
119 2002-09-27  Bo Thorsen  <bo@suse.de>
120
121         * include/ffi.h.in: Fix multilib x86-64 support.
122
123 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
124
125         * Makefile.am (all-multi): Fix multilib parallel build.
126
127 2002-07-19  Kaz Kojima  <kkojima@gcc.gnu.org>
128
129         * configure.in (sh[34]*-*-linux*): Add brackets.
130         * configure: Regenerate.
131
132 2002-07-18  Kaz Kojima  <kkojima@gcc.gnu.org>
133
134         * Makefile.am: Add SH support.
135         * Makefile.in: Regenerate.
136         * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
137         * configure: Regenerate.
138         * include/ffi.h.in: Add SH support.
139         * src/sh/ffi.c: New file.
140         * src/sh/sysv.S: New file.
141         * src/types.c: Add SH support.
142
143 2002-07-16  Bo Thorsen  <bo@suse.de>
144
145         * src/x86/ffi64.c: New file that adds x86-64 support.
146         * src/x86/unix64.S: New file that handles argument setup for
147         x86-64.
148         * src/x86/sysv.S: Don't use this on x86-64.
149         * src/x86/ffi.c: Don't use this on x86-64.
150         Remove unused vars.
151         * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
152         for x86-64.
153         * src/ffitest.c (struct6): New test that tests a special case in
154         the x86-64 ABI.
155         (struct7): Likewise.
156         (struct8): Likewise.
157         (struct9): Likewise.
158         (closure_test_fn): Silence warning about this when it's not used.
159         (main): Add the new tests.
160         (main): Fix a couple of wrong casts and silence some compiler warnings.
161         * include/ffi.h.in: Add x86-64 ABI definition.
162         * fficonfig.h.in: Regenerate.
163         * Makefile.am: Add x86-64 support.
164         * configure.in: Likewise.
165         * Makefile.in: Regenerate.
166         * configure: Likewise.
167
168 2002-06-24  Bo Thorsen  <bo@suse.de>
169
170         * src/types.c: Merge settings for similar architectures.
171         Add x86-64 sizes and alignments.
172
173 2002-06-23  Bo Thorsen  <bo@suse.de>
174
175         * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
176         * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
177         * src/mips/ffi.c (ffi_prep_args): Likewise.
178         * src/m68k/ffi.c (ffi_prep_args): Likewise.
179
180 2002-07-18  H.J. Lu  (hjl@gnu.org)
181
182         * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
183         (libffi_la_SOURCES): Support MIPS_LINUX.
184         (libffi_convenience_la_SOURCES): Likewise.
185         * Makefile.in: Regenerated.
186
187         * configure.in (mips64*-*): Skip.
188         (mips*-*-linux*): New.
189         * configure: Regenerated.
190
191         * src/mips/ffi.c: Include <sgidefs.h>.
192
193 2002-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
194
195         * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
196
197 2002-05-27  Roger Sayle  <roger@eyesopen.com>
198
199         * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
200
201 2002-05-27  Bo Thorsen  <bo@suse.de>
202
203         * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
204         fix formatting.
205
206 2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>
207
208         * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
209         beginning of function (for older apple cc).
210
211 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
212
213         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
214         script entry, and set LD to it when configuring multilibs.
215         * configure: Rebuilt.
216
217 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
218
219         * configure.in (sparc64-*-netbsd*): Add target.
220         (sparc-*-netbsdelf*): Likewise.
221         * configure: Regenerate.
222
223 2002-04-28  David S. Miller  <davem@redhat.com>
224
225         * configure.in, configure: Fix SPARC test in previous change.
226
227 2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>
228
229         * Makefile.am: Add Linux for S/390 support.
230         * Makefile.in: Regenerate.
231         * configure.in: Add Linux for S/390 support.
232         * configure: Regenerate.
233         * include/ffi.h.in: Add Linux for S/390 support.
234         * src/s390/ffi.c: New file from libffi CVS tree.
235         * src/s390/sysv.S: New file from libffi CVS tree.
236
237 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
238
239         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
240         %r_disp32().
241         * src/sparc/v8.S: Use it.
242         * src/sparc/v9.S: Likewise.
243         * fficonfig.h.in: Rebuilt.
244         * configure: Rebuilt.
245
246 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
247
248         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
249         correctly.
250         * src/ia64/unix.S: Add unwind information. Fix comments.
251         Save sp in a way that's compatible with unwind info.
252         (ffi_call_unix): Correctly restore sp in all cases.
253         * src/ia64/ffi.c: Add, fix comments.
254
255 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
256
257         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
258
259 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
260
261         * configure.in (alpha*-*-netbsd*): Add target.
262         * configure: Regenerate.
263
264 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
265
266         * src/sparc/v8.S: Add unwind info.
267         * src/sparc/v9.S: Likewise.
268
269 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
270
271         * configure.in: Enable i*86-*-netbsdelf*.
272         * configure: Rebuilt.
273
274 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
275
276         PR other/2620
277         * src/mips/n32.s: Delete
278         * src/mips/o32.s: Delete
279
280 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
281
282         * configure.in: Enable alpha*-*-freebsd*.
283         * configure: Rebuilt.
284
285 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
286
287         * Makefile.am: libfficonvenience -> libffi_convenience.
288         * Makefile.in: Rebuilt.
289
290         * Makefile.am: Define ffitest_OBJECTS.
291         * Makefile.in: Rebuilt.
292
293 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
294             David Edelsohn  <edelsohn@gnu.org>
295
296         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
297         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
298         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
299         * Makefile.in: Regenerate.
300         * include/ffi.h.in: Add AIX and Darwin closure definitions.
301         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
302         (flush_icache, flush_range): New functions.
303         (ffi_closure_helper_DARWIN): New function.
304         * src/powerpc/aix_closure.S: New file.
305         * src/powerpc/darwin_closure.S: New file.
306
307 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
308
309         * include/ffi.h.in: Add typedef for ffi_arg.
310         * src/ffitest.c (main): Declare rint with ffi_arg.
311
312 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
313
314         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
315         number of GPRs for floating-point arguments.
316
317 2002-01-31  Anthony Green  <green@redhat.com>
318
319         * configure: Rebuilt.
320         * configure.in: Replace CHECK_SIZEOF and endian tests with
321         cross-compiler friendly macros.
322         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
323         macros.
324
325 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
326
327         * src/powerpc/darwin.S (_ffi_call_AIX): New.
328         * src/powerpc/aix.S (ffi_call_DARWIN): New.
329
330 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
331
332         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
333         (TARGET_SRC_POWERPC_AIX): New.
334         (POWERPC_AIX): New stanza.
335         * Makefile.in: Regenerate.
336         * configure.in: Add AIX case.
337         * configure: Regenerate.
338         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
339         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
340         size.  Fix "long double" support.
341         (ffi_call): Add FFI_AIX case.
342         * src/powerpc/aix.S: New.
343
344 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
345
346         Implement Darwin PowerPC ABI.
347         * configure.in: Handle powerpc-*-darwin*.
348         * Makefile.am: Set source files for POWERPC_DARWIN.
349         * configure: Rebuilt.
350         * Makefile.in: Rebuilt.
351         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
352         POWERPC_DARWIN.
353         * src/powerpc/darwin.S: New file.
354         * src/powerpc/ffi_darwin.c: New file.
355
356 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
357
358         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
359
360 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
361
362         * src/x86/sysv.S: Avoid gas-only .balign directive.
363         Use C style comments.
364
365 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
366
367         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
368         Fixes PR bootstrap/3563.
369
370 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
371
372         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
373
374 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
375
376         * configure.in: Recognize sparc*-sun-* host.
377         * configure: Regenerate.
378
379 2001-06-06  Andrew Haley  <aph@redhat.com>
380
381         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
382
383 2001-06-03  Andrew Haley  <aph@redhat.com>
384
385         * src/alpha/osf.S: Add unwind info.
386         * src/powerpc/sysv.S: Add unwind info.
387         * src/powerpc/ppc_closure.S: Likewise.
388
389 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
390
391         * configure.in: Fix AC_ARG_ENABLE usage.
392         * configure: Rebuilt.
393
394 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
395
396         * configure.in: Remove warning about beta code.
397         * configure: Rebuilt.
398
399 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
400
401         * src/ia64/unix.S: Restore stack pointer when returning from
402         ffi_closure_UNIX.
403         * src/ia64/ffi.c: Fix typo in comment.
404
405 2001-04-18  Jim Wilson  <wilson@redhat.com>
406
407         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
408         to eliminate RAW DV.
409
410 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
411
412         * Makefile.am: Make a libtool convenience library.
413         * Makefile.in: Rebuilt.
414
415 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
416
417         * configure.in: Use different syntax for subdirectory creation.
418         * configure: Rebuilt.
419
420 2001-03-27  Jon Beniston  <jon@beniston.com>
421
422         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
423         * configure: Rebuilt.
424         * Makefile.am: Added X86_WIN32 target support.
425         * Makefile.in: Rebuilt.
426
427         * include/ffi.h.in: Added X86_WIN32 target support.
428
429         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
430         * src/types.c: Added X86_WIN32 target support.
431
432         * src/x86/win32.S: New file. Based on sysv.S, but with EH
433         stuff removed and made to work with CygWin's gas.
434
435 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
436
437         * configure.in: Make target subdirectory in build dir.
438         * Makefile.am: Override suffix based rules to specify correct output
439         subdirectory.
440         * Makefile.in: Rebuilt.
441         * configure: Rebuilt.
442
443 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
444
445         * src/powerpc/ppc_closure.S: New file.
446         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
447         involving long long and register pairs.
448         (ffi_prep_closure): New function.
449         (flush_icache): Likewise.
450         (ffi_closure_helper_SYSV): Likewise.
451         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
452         (FFI_TRAMPOLINE_SIZE): Likewise.
453         (FFI_NATIVE_RAW_API): Likewise.
454         * Makefile.in: Rebuilt.
455         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
456         (TARGET_SRC_POWERPC): Likewise.
457
458 2001-03-19  Tom Tromey  <tromey@redhat.com>
459
460         * Makefile.in: Rebuilt.
461         * Makefile.am (ffitest_LDFLAGS): New macro.
462
463 2001-03-02  Nick Clifton  <nickc@redhat.com>
464
465         * include/ffi.h.in: Remove RCS ident string.
466         * include/ffi_mips.h: Remove RCS ident string.
467         * src/debug.c: Remove RCS ident string.
468         * src/ffitest.c: Remove RCS ident string.
469         * src/prep_cif.c: Remove RCS ident string.
470         * src/types.c: Remove RCS ident string.
471         * src/alpha/ffi.c: Remove RCS ident string.
472         * src/alpha/osf.S: Remove RCS ident string.
473         * src/arm/ffi.c: Remove RCS ident string.
474         * src/arm/sysv.S: Remove RCS ident string.
475         * src/mips/ffi.c: Remove RCS ident string.
476         * src/mips/n32.S: Remove RCS ident string.
477         * src/mips/o32.S: Remove RCS ident string.
478         * src/sparc/ffi.c: Remove RCS ident string.
479         * src/sparc/v8.S: Remove RCS ident string.
480         * src/sparc/v9.S: Remove RCS ident string.
481         * src/x86/ffi.c: Remove RCS ident string.
482         * src/x86/sysv.S: Remove RCS ident string.
483
484 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
485
486         * include/ffi.h.in: Change sourceware.cygnus.com references to
487         gcc.gnu.org.
488
489 2000-12-09  Richard Henderson  <rth@redhat.com>
490
491         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
492         (ffi_closure_osf_inner): Index rather than increment avalue
493         and arg_types.  Give ffi_closure_osf the raw return value type.
494         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
495         promotion.
496
497 2000-12-07  Richard Henderson  <rth@redhat.com>
498
499         * src/raw_api.c (ffi_translate_args): Fix typo.
500         (ffi_prep_closure): Likewise.
501
502         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
503         FFI_TRAMPOLINE_SIZE.
504         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
505         cif->bytes for new ffi_call_osf implementation.
506         (ffi_prep_args): Absorb into ...
507         (ffi_call): ... here.  Do all stack allocation here and
508         avoid a callback function.
509         (ffi_prep_closure, ffi_closure_osf_inner): New.
510         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
511         (ffi_closure_osf): New.
512
513 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
514
515         * config.guess, config.sub, install-sh: Removed.
516         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
517         * Makefile.in: Rebuilt.
518
519         * acinclude.m4: Include libtool macros from the top level.
520         * aclocal.m4, configure: Rebuilt.
521
522 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
523
524         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
525         * configure: Rebuilt.
526
527 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
528
529         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
530         memory correctly.  Use conditional instructions, not branches where
531         possible.
532
533 2000-05-04  Tom Tromey  <tromey@cygnus.com>
534
535         * configure: Rebuilt.
536         * configure.in: Match `arm*-*-linux-*'.
537         From Chris Dornan <cdornan@arm.com>.
538
539 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
540
541         * Makefile.am (SUBDIRS): Define.
542         (AM_MAKEFLAGS): Likewise.
543         (Multilib support.): Add section.
544         * Makefile.in: Rebuilt.
545         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
546         New variables. Set for gcc using -print-multi-lib. Export them
547         to libtool.
548         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
549         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
550         for -shared links.
551         (extra_compiler_flags_value, extra_compiler_flags): Check these
552         for extra compiler options which need to be passed down in
553         compiler_flags.
554
555 2000-04-16  Anthony Green  <green@redhat.com>
556
557         * configure: Rebuilt.
558         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
559
560 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
561
562         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
563         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
564         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
565         Replace all void * sizeofs with sizeof(int).
566         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
567         different than DOUBLE.
568         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
569         (ffi_prep_args_v9): New function.
570         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
571         (ffi_V9_return_struct): New function.
572         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
573         32bit code (not yet cross-arch calls).
574         * src/sparc/v8.S: Add struct return delay nop.
575         Handle long long.
576         * src/sparc/v9.S: New file.
577         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
578         is used on sparc64 only for structures larger than 32 bytes.
579         Pass by reference for structures is done for structure arguments
580         larger than 16 bytes.
581         * src/ffitest.c (main): Use 64bit rint on sparc64.
582         Run long long tests on sparc.
583         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
584         sparc64.
585         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
586         on sparc64.
587         * configure.in (sparc-*-linux*): New supported target.
588         (sparc64-*-linux*): Likewise.
589         * configure: Rebuilt.
590         * Makefile.am: Add v9.S to SPARC files.
591         * Makefile.in: Likewise.
592         (LINK): Surround $(CCLD) into double quotes, so that multilib
593         compiles work correctly.
594
595 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
596
597         * configure: Rebuilt.
598         * configure.in: (i*86-*-solaris*): New libffi target. Patch
599         proposed by Bryce McKinlay.
600
601 2000-03-20  Tom Tromey  <tromey@cygnus.com>
602
603         * Makefile.in: Hand edit for java_raw_api.lo.
604
605 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
606
607         * config.guess, config.sub: Update from the gcc tree.
608         Fix for PR libgcj/168.
609
610 2000-03-03  Tom Tromey  <tromey@cygnus.com>
611
612         * Makefile.in: Fixed ia64 by hand.
613
614         * configure: Rebuilt.
615         * configure.in (--enable-multilib): New option.
616         (libffi_basedir): New subst.
617         (AC_OUTPUT): Added multilib code.
618
619 2000-03-02  Tom Tromey  <tromey@cygnus.com>
620
621         * Makefile.in: Rebuilt.
622         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
623         directory name.
624
625 2000-02-25  Hans Boehm <boehm@acm.org>
626
627         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
628         files.
629         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
630         list.
631         (ffi_prep_raw_closure): Use ffi_translate_args, not
632         ffi_closure_translate.
633         * src/java_raw_api.c: New file.
634         * src/ffitest.c (closure_test_fn): New function.
635         (main): Define `rint' as long long on IA64.  Added new test when
636         FFI_CLOSURES is defined.
637         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
638         (ffi_abi): Recognize IA64.
639         (ffi_raw): Added `flt' field.
640         Added "Java raw API" code.
641         * configure.in: Recognize ia64.
642         * Makefile.am (TARGET_SRC_IA64): New macro.
643         (libffi_la_common_SOURCES): Added java_raw_api.c.
644         (libffi_la_SOURCES): Define in IA64 case.
645
646 2000-01-04  Tom Tromey  <tromey@cygnus.com>
647
648         * Makefile.in: Rebuilt with newer automake.
649
650 1999-12-31  Tom Tromey  <tromey@cygnus.com>
651
652         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
653
654 1999-09-01  Tom Tromey  <tromey@cygnus.com>
655
656         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
657         undefs.
658         * fficonfig.h.in: Rebuilt.
659         * configure: Rebuilt.
660         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
661         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
662         * acconfig.h: Don't #undef PACKAGE or VERSION.
663
664 1999-08-09  Anthony Green  <green@cygnus.com>
665
666         * include/ffi.h.in: Try to work around messy header problem
667         with PACKAGE and VERSION.
668
669         * configure: Rebuilt.
670         * configure.in: Change version to 2.00-beta.
671
672         * fficonfig.h.in: Rebuilt.
673         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
674
675         * src/x86/ffi.c (ffi_raw_call): Rename.
676
677 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
678
679         * src/x86/ffi.c (ffi_closure_SYSV): New function.
680         (ffi_prep_incoming_args_SYSV): Ditto.
681         (ffi_prep_closure): Ditto.
682         (ffi_closure_raw_SYSV): Ditto.
683         (ffi_prep_raw_closure): More ditto.
684         (ffi_call_raw): Final ditto.
685
686         * include/ffi.h.in: Add definitions for closure and raw API.
687
688         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
689         FFI_TYPE_UINT64.
690
691         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
692
693         * src/raw_api.c: New file.
694
695         * include/ffi.h.in (ffi_raw): New type.
696         (UINT_ARG, SINT_ARG): New defines.
697         (ffi_closure, ffi_raw_closure): New types.
698         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
699
700         * configure.in: Add check for endianness and sizeof void*.
701
702         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
703         instead of directly.
704
705         * configure: Rebuilt.
706
707 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
708
709         * configure.in: Add x86 and powerpc BeOS configurations.
710         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
711
712 1999-05-09  Anthony Green  <green@cygnus.com>
713
714         * configure.in: Add warning about this being beta code.
715         Remove src/Makefile.am from the picture.
716         * configure: Rebuilt.
717
718         * Makefile.am: Move logic from src/Makefile.am.  Add changes
719         to support libffi as a target library.
720         * Makefile.in: Rebuilt.
721
722         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
723         Upgraded to new autoconf, automake, libtool.
724
725         * README: Tweaks.
726
727         * LICENSE: Update copyright date.
728
729         * src/Makefile.am, src/Makefile.in: Removed.
730
731 1998-11-29  Anthony Green  <green@cygnus.com>
732
733         * include/ChangeLog: Removed.
734         * src/ChangeLog: Removed.
735         * src/mips/ChangeLog: Removed.
736         * src/sparc/ChangeLog: Remboved.
737         * src/x86/ChangeLog: Removed.
738
739         * ChangeLog.v1: Created.