OSDN Git Service

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