OSDN Git Service

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