2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
[libffi.git] / libffi / ChangeLog
1 2009-05-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2
3        * src/x86/win32.S (_ffi_closure_STDCALL):  New function.
4        (.eh_frame):  Add FDE for it.
5
6 2009-05-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7
8        * configure.ac:  Also check if assembler supports pc-relative
9        relocs on X86_WIN32 targets.
10        * configure:  Regenerate.
11        * src/x86/win32.S (ffi_prep_args):  Declare extern, not global.
12        (_ffi_call_SYSV):  Add missing function type symbol .def and
13        add EH markup labels.
14        (_ffi_call_STDCALL):  Likewise.
15        (_ffi_closure_SYSV):  Likewise.
16        (_ffi_closure_raw_SYSV):  Likewise.
17        (.eh_frame):  Add hand-crafted EH data.
18
19 2008-12-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20
21         PR libffi/26048
22         * configure.ac (HAVE_AS_X86_PCREL): New test.
23         * configure: Regenerate.
24         * fficonfig.h.in: Regenerate.
25         * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
26         RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
27         RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
28         (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
29         * src/x86/unix64.S (.Lstore_table): Move to .text section.
30         (.Lload_table): Likewise.
31         (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
32
33 2008-11-21  Eric Botcazou  <ebotcazou@adacore.com>
34
35        * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
36        signed/unsigned int8/16 return values.
37        * src/sparc/v8.S (ffi_call_v8): Likewise.
38        (ffi_closure_v8): Likewise.
39
40 2008-08-25  Andreas Tobler  <a.tobler@schweiz.org>
41
42        * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
43        FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
44        Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
45        Adjust copyright notice.
46        * src/powerpc/ffi.c: Add two new flags to indicate if we have one
47        register or two register to use for FFI_SYSV structs.
48        (ffi_prep_cif_machdep): Pass the right register flag introduced above.
49        (ffi_closure_helper_SYSV): Fix the return type for
50        FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
51        Adjust copyright notice.
52
53 2008-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
54
55        * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
56        int.
57
58 2008-03-26  Kaz Kojima  <kkojima@gcc.gnu.org>
59
60        * src/sh/sysv.S: Add .note.GNU-stack on Linux.
61        * src/sh64/sysv.S: Likewise.
62
63 2008-03-26  Daniel Jacobowitz  <dan@debian.org>
64
65        * src/arm/sysv.S: Fix ARM comment marker.
66
67 2008-03-26  Jakub Jelinek  <jakub@redhat.com>
68
69        * src/alpha/osf.S: Add .note.GNU-stack on Linux.
70        * src/s390/sysv.S: Likewise.
71        * src/powerpc/ppc_closure.S: Likewise.
72        * src/powerpc/sysv.S: Likewise.
73        * src/x86/unix64.S: Likewise.
74        * src/x86/sysv.S: Likewise.
75        * src/sparc/v8.S: Likewise.
76        * src/sparc/v9.S: Likewise.
77        * src/m68k/sysv.S: Likewise.
78        * src/arm/sysv.S: Likewise.
79
80 2008-02-12  Bjoern Koenig  <bkoenig@alpha-tierchen.de>
81            Andreas Tobler  <a.tobler@schweiz.org>
82
83        * configure.ac: Add amd64-*-freebsd* target.
84        * configure: Regenerate.
85
86 2008-01-30  H.J. Lu  <hongjiu.lu@intel.com>
87
88        PR libffi/34612
89        * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
90        returning struct.
91
92         * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
93        tests.
94
95 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
96
97         * configure: Regenerate.
98
99 2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>
100
101         * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
102
103 2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>
104
105         PR testsuite/32843
106         * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
107         signed/unsigned int8/16 for X86_DARWIN.
108         Updated copyright info.
109         Handle one and two byte structs with special cif->flags.
110         * src/x86/ffitarget.h: Add special types for one and two byte structs.
111         Updated copyright info.
112         * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
113         sysv.S
114         Remove code to pop args from the stack after call.
115         Special-case signed/unsigned for int8/16, one and two byte structs.
116         (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
117         FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
118         FFI_TYPE_SINT32.
119         Updated copyright info.
120
121 2007-12-08  David Daney  <ddaney@avtrex.com>
122
123         * src/mips/n32.S (ffi_call_N32):  Replace dadd with ADDU, dsub with 
124         SUBU, add with ADDU and use smaller code sequences.
125
126 2007-12-07  David Daney  <ddaney@avtrex.com>
127
128         * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
129         type.
130
131 2007-12-06  David Daney  <ddaney@avtrex.com>
132
133         * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
134         defined.
135         (ffi_java_raw): New typedef.
136         (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
137         ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
138         ffi_java_raw.
139         (ffi_java_raw_closure) : Same.
140         (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
141         parameter types.
142         * src/java_raw_api.c (ffi_java_raw_size):  Replace FFI_SIZEOF_ARG with
143         FFI_SIZEOF_JAVA_RAW.
144         (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
145         Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
146         sizeof(ffi_java_raw) for alignment calculations.
147         (ffi_java_ptrarray_to_raw): Same.
148         (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
149         if FFI_SIZEOF_JAVA_RAW == 4.
150         (ffi_java_raw_to_rvalue): Same.
151         (ffi_java_raw_call): Change type of raw to ffi_java_raw.
152         (ffi_java_translate_args): Same.
153         (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
154         parameter types.
155         * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
156
157 2007-12-06  David Daney  <ddaney@avtrex.com>
158
159         * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on 
160         pointer values.
161
162 2007-12-01  Andreas Tobler  <a.tobler@schweiz.org>
163
164         PR libffi/31937
165         * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
166         Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
167         * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
168         set the NUM_FPR_ARG_REGISTERS according to.
169         Add support for potential soft-float support under hard-float
170         architecture.
171         (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
172         FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
173         to the FFI_LINUX_SOFT_FLOAT ABI.
174         (ffi_prep_cif_machdep): Likewise.
175         (ffi_closure_helper_SYSV): Likewise.
176         * src/powerpc/ppc_closure.S: Make sure not to store float/double
177         on archs where __NO_FPRS__ is true.
178         Add FFI_TYPE_UINT128 support.
179         * src/powerpc/sysv.S: Add support for soft-float long-double-128.
180         Adjust copyright notice.
181
182 2007-11-25  Andreas Tobler  <a.tobler@schweiz.org>
183
184         * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
185         * include/ffi_common.h: ... here.
186         Update copyright.
187
188 2007-11-17  Andreas Tobler  <a.tobler@schweiz.org>
189
190         * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
191         * src/powerpc/linux64.S: Likewise.
192         * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
193         * testsuite/libffi.call/return_ldl.c: New test.
194
195 2007-09-04    <aph@redhat.com>
196
197         * src/arm/sysv.S (UNWIND): New.
198         (Whole file): Conditionally compile unwinder directives.
199         * src/arm/sysv.S: Add unwinder directives.
200
201         * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
202         Only treat r0 as a struct address if we're actually returning a
203         struct by address.
204         Only copy the bytes that are actually within a struct.
205         (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
206         is returned in r0, not passed by address.
207         (ffi_call): Allocate a word-sized temporary for the case where
208         a composite is returned in r0.
209         (ffi_prep_incoming_args_SYSV): Align as necessary.
210
211 2007-08-05  Steven Newbury  <s_j_newbury@yahoo.co.uk>
212
213         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of 
214         directly using the sys_cacheflush syscall.
215
216 2007-07-27  Andrew Haley  <aph@redhat.com>
217
218         * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
219
220 2007-09-03  Maciej W. Rozycki  <macro@linux-mips.org>
221
222         * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
223         * configure.ac: Likewise.
224         * Makefile.in: Regenerate.
225         * include/Makefile.in: Likewise.
226         * testsuite/Makefile.in: Likewise.
227         * configure: Likewise.
228
229 2007-08-24  David Daney  <ddaney@avtrex.com>
230
231         * testsuite/libffi.call/return_sl.c: New test.
232
233 2007-08-10  David Daney  <ddaney@avtrex.com>
234
235         * testsuite/libffi.call/cls_multi_ushort.c,
236         testsuite/libffi.call/cls_align_uint16.c,
237         testsuite/libffi.call/nested_struct1.c,
238         testsuite/libffi.call/nested_struct3.c,
239         testsuite/libffi.call/cls_7_1_byte.c,
240         testsuite/libffi.call/nested_struct5.c,
241         testsuite/libffi.call/cls_double.c,
242         testsuite/libffi.call/nested_struct7.c,
243         testsuite/libffi.call/cls_sint.c,
244         testsuite/libffi.call/nested_struct9.c,
245         testsuite/libffi.call/cls_20byte1.c,
246         testsuite/libffi.call/cls_multi_sshortchar.c,
247         testsuite/libffi.call/cls_align_sint64.c,
248         testsuite/libffi.call/cls_3byte2.c,
249         testsuite/libffi.call/cls_multi_schar.c,
250         testsuite/libffi.call/cls_multi_uchar.c,
251         testsuite/libffi.call/cls_19byte.c,
252         testsuite/libffi.call/cls_9byte1.c,
253         testsuite/libffi.call/cls_align_float.c,
254         testsuite/libffi.call/closure_fn1.c,
255         testsuite/libffi.call/problem1.c,
256         testsuite/libffi.call/closure_fn3.c,
257         testsuite/libffi.call/cls_sshort.c,
258         testsuite/libffi.call/closure_fn5.c,
259         testsuite/libffi.call/cls_align_double.c,
260         testsuite/libffi.call/nested_struct.c,
261         testsuite/libffi.call/cls_2byte.c,
262         testsuite/libffi.call/nested_struct10.c,
263         testsuite/libffi.call/cls_4byte.c,
264         testsuite/libffi.call/cls_6byte.c,
265         testsuite/libffi.call/cls_8byte.c,
266         testsuite/libffi.call/cls_multi_sshort.c,
267         testsuite/libffi.call/cls_align_sint16.c,
268         testsuite/libffi.call/cls_align_uint32.c,
269         testsuite/libffi.call/cls_20byte.c,
270         testsuite/libffi.call/cls_float.c,
271         testsuite/libffi.call/nested_struct2.c,
272         testsuite/libffi.call/cls_5_1_byte.c,
273         testsuite/libffi.call/nested_struct4.c,
274         testsuite/libffi.call/cls_24byte.c,
275         testsuite/libffi.call/nested_struct6.c,
276         testsuite/libffi.call/cls_64byte.c,
277         testsuite/libffi.call/nested_struct8.c,
278         testsuite/libffi.call/cls_uint.c,
279         testsuite/libffi.call/cls_multi_ushortchar.c,
280         testsuite/libffi.call/cls_schar.c,
281         testsuite/libffi.call/cls_uchar.c,
282         testsuite/libffi.call/cls_align_uint64.c,
283         testsuite/libffi.call/cls_ulonglong.c,
284         testsuite/libffi.call/cls_align_longdouble.c,
285         testsuite/libffi.call/cls_1_1byte.c,
286         testsuite/libffi.call/cls_12byte.c,
287         testsuite/libffi.call/cls_3_1byte.c,
288         testsuite/libffi.call/cls_3byte1.c,
289         testsuite/libffi.call/cls_4_1byte.c,
290         testsuite/libffi.call/cls_6_1_byte.c,
291         testsuite/libffi.call/cls_16byte.c,
292         testsuite/libffi.call/cls_18byte.c,
293         testsuite/libffi.call/closure_fn0.c,
294         testsuite/libffi.call/cls_9byte2.c,
295         testsuite/libffi.call/closure_fn2.c,
296         testsuite/libffi.call/closure_fn4.c,
297         testsuite/libffi.call/cls_ushort.c,
298         testsuite/libffi.call/closure_fn6.c,
299         testsuite/libffi.call/cls_5byte.c,
300         testsuite/libffi.call/cls_align_pointer.c,
301         testsuite/libffi.call/cls_7byte.c,
302         testsuite/libffi.call/cls_align_sint32.c,
303         testsuite/libffi.special/unwindtest_ffi_call.cc,
304         testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
305
306 2007-08-10  David Daney  <ddaney@avtrex.com>
307
308         PR libffi/28313
309         * configure.ac: Don't treat mips64 as a special case.
310         * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
311         * configure: Regenerate
312         * Makefile.in: Ditto.
313         * fficonfig.h.in: Ditto.
314         * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
315         (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
316         (FFI_DEFAULT_ABI): Set for n64 case.
317         (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
318         * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
319         (ffi_closure_N32): New function.
320         (.eh_frame): New section
321         * src/mips/o32.S: Clean up comments.
322         (ffi_closure_O32): Pass ffi_closure parameter in $12.
323         * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
324         _MIPS_SIM == _ABIN32 throughout.
325         (FFI_MIPS_STOP_HERE): New, use in place of
326         ffi_stop_here.
327         (ffi_prep_args): Use unsigned long to hold pointer values.  Rewrite
328         to support n32/n64 ABIs.
329         (calc_n32_struct_flags): Rewrite.
330         (calc_n32_return_struct_flags): Remove unused variable.  Reverse
331         position of flag bits.
332         (ffi_prep_cif_machdep): Rewrite n32 portion.
333         (ffi_call): Enable for n64.  Add special handling for small structure
334         return values.
335         (ffi_prep_closure_loc): Add n32 and n64 support.
336         (ffi_closure_mips_inner_O32): Add cast to silence warning.
337         (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
338
339 2007-08-08  David Daney  <ddaney@avtrex.com>
340
341         * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
342         * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
343         specifiers.
344         * testsuite/libffi.call/nested_struct1.c (main): Ditto.
345         * testsuite/libffi.call/cls_sint.c (main): Ditto.
346         * testsuite/libffi.call/nested_struct9.c (main): Ditto.
347         * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
348         * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
349         * testsuite/libffi.call/closure_fn1.c (main): Ditto.
350         * testsuite/libffi.call/closure_fn3.c (main): Ditto.
351         * testsuite/libffi.call/return_dbl2.c (main): Ditto.
352         * testsuite/libffi.call/cls_sshort.c (main): Ditto.
353         * testsuite/libffi.call/return_fl3.c (main): Ditto.
354         * testsuite/libffi.call/closure_fn5.c (main): Ditto.
355         * testsuite/libffi.call/nested_struct.c (main): Ditto.
356         * testsuite/libffi.call/nested_struct10.c (main): Ditto.
357         * testsuite/libffi.call/return_ll1.c (main): Ditto.
358         * testsuite/libffi.call/cls_8byte.c (main): Ditto.
359         * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
360         * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
361         * testsuite/libffi.call/cls_20byte.c (main): Ditto.
362         * testsuite/libffi.call/nested_struct2.c (main): Ditto.
363         * testsuite/libffi.call/cls_24byte.c (main): Ditto.
364         * testsuite/libffi.call/nested_struct6.c (main): Ditto.
365         * testsuite/libffi.call/cls_uint.c (main): Ditto.
366         * testsuite/libffi.call/cls_12byte.c (main): Ditto.
367         * testsuite/libffi.call/cls_16byte.c (main): Ditto.
368         * testsuite/libffi.call/closure_fn0.c (main): Ditto.
369         * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
370         * testsuite/libffi.call/closure_fn2.c (main): Ditto.
371         * testsuite/libffi.call/return_dbl1.c (main): Ditto.
372         * testsuite/libffi.call/closure_fn4.c (main): Ditto.
373         * testsuite/libffi.call/closure_fn6.c (main): Ditto.
374         * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
375
376 2007-08-07  Andrew Haley  <aph@redhat.com>
377
378         * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
379         checkin.
380
381 2007-08-06  Andrew Haley  <aph@redhat.com>
382
383         PR testsuite/32843
384         * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
385         FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
386         FFI_TYPE_SINT32.
387
388 2007-08-02  David Daney  <ddaney@avtrex.com>
389
390         * testsuite/libffi.call/return_ul.c (main): Define return type as
391         ffi_arg.  Use proper printf conversion specifier.
392         
393 2007-07-30  Andrew Haley  <aph@redhat.com>
394
395         PR testsuite/32843
396         * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
397         signed/unsigned int8/16.
398         * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
399         Use a jump table.
400         Remove code to pop args from the stack after call.
401         Special-case signed/unsigned int8/16.
402         * testsuite/libffi.call/return_sc.c (main): Revert.
403
404 2007-07-26  Richard Guenther  <rguenther@suse.de>
405
406         PR testsuite/32843
407         * testsuite/libffi.call/return_sc.c (main): Verify call
408         result as signed char, not ffi_arg.
409
410 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
411
412         * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
413         * configure: Regenerate.
414
415 2007-07-11  David Daney  <ddaney@avtrex.com>
416
417         * src/mips/ffi.c: Don't include sys/cachectl.h.
418         (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
419         cacheflush().
420
421 2007-05-18  Aurelien Jarno  <aurelien@aurel32.net>
422
423         * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
424         from (ffi_prep_closure): ... this.
425         (FFI_INIT_TRAMPOLINE): Adjust.
426
427 2005-12-31  Phil Blundell  <pb@reciva.com>
428
429         * src/arm/ffi.c (ffi_prep_incoming_args_SYSV, 
430         ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
431         * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
432         * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
433         (FFI_CLOSURES): Enable closure support.
434
435 2007-07-03  Andrew Haley  <aph@hedges.billgatliff.com>
436
437         * testsuite/libffi.call/cls_multi_ushort.c,
438         testsuite/libffi.call/cls_align_uint16.c,
439         testsuite/libffi.call/nested_struct1.c,
440         testsuite/libffi.call/nested_struct3.c,
441         testsuite/libffi.call/cls_7_1_byte.c,
442         testsuite/libffi.call/cls_double.c,
443         testsuite/libffi.call/nested_struct5.c,
444         testsuite/libffi.call/nested_struct7.c,
445         testsuite/libffi.call/cls_sint.c,
446         testsuite/libffi.call/nested_struct9.c,
447         testsuite/libffi.call/cls_20byte1.c,
448         testsuite/libffi.call/cls_multi_sshortchar.c,
449         testsuite/libffi.call/cls_align_sint64.c,
450         testsuite/libffi.call/cls_3byte2.c,
451         testsuite/libffi.call/cls_multi_schar.c,
452         testsuite/libffi.call/cls_multi_uchar.c,
453         testsuite/libffi.call/cls_19byte.c,
454         testsuite/libffi.call/cls_9byte1.c,
455         testsuite/libffi.call/cls_align_float.c,
456         testsuite/libffi.call/closure_fn1.c,
457         testsuite/libffi.call/problem1.c,
458         testsuite/libffi.call/closure_fn3.c,
459         testsuite/libffi.call/cls_sshort.c,
460         testsuite/libffi.call/closure_fn5.c,
461         testsuite/libffi.call/cls_align_double.c,
462         testsuite/libffi.call/cls_2byte.c,
463         testsuite/libffi.call/nested_struct.c,
464         testsuite/libffi.call/nested_struct10.c,
465         testsuite/libffi.call/cls_4byte.c,
466         testsuite/libffi.call/cls_6byte.c,
467         testsuite/libffi.call/cls_8byte.c,
468         testsuite/libffi.call/cls_multi_sshort.c,
469         testsuite/libffi.call/cls_align_uint32.c,
470         testsuite/libffi.call/cls_align_sint16.c,
471         testsuite/libffi.call/cls_float.c,
472         testsuite/libffi.call/cls_20byte.c,
473         testsuite/libffi.call/cls_5_1_byte.c,
474         testsuite/libffi.call/nested_struct2.c,
475         testsuite/libffi.call/cls_24byte.c,
476         testsuite/libffi.call/nested_struct4.c,
477         testsuite/libffi.call/nested_struct6.c,
478         testsuite/libffi.call/cls_64byte.c,
479         testsuite/libffi.call/nested_struct8.c,
480         testsuite/libffi.call/cls_uint.c,
481         testsuite/libffi.call/cls_multi_ushortchar.c,
482         testsuite/libffi.call/cls_schar.c,
483         testsuite/libffi.call/cls_uchar.c,
484         testsuite/libffi.call/cls_align_uint64.c,
485         testsuite/libffi.call/cls_ulonglong.c,
486         testsuite/libffi.call/cls_align_longdouble.c,
487         testsuite/libffi.call/cls_1_1byte.c,
488         testsuite/libffi.call/cls_12byte.c,
489         testsuite/libffi.call/cls_3_1byte.c,
490         testsuite/libffi.call/cls_3byte1.c,
491         testsuite/libffi.call/cls_4_1byte.c,
492         testsuite/libffi.call/cls_6_1_byte.c,
493         testsuite/libffi.call/cls_16byte.c,
494         testsuite/libffi.call/cls_18byte.c,
495         testsuite/libffi.call/closure_fn0.c,
496         testsuite/libffi.call/cls_9byte2.c,
497         testsuite/libffi.call/closure_fn2.c,
498         testsuite/libffi.call/closure_fn4.c,
499         testsuite/libffi.call/cls_ushort.c,
500         testsuite/libffi.call/closure_fn6.c,
501         testsuite/libffi.call/cls_5byte.c,
502         testsuite/libffi.call/cls_align_pointer.c,
503         testsuite/libffi.call/cls_7byte.c,
504         testsuite/libffi.call/cls_align_sint32.c,
505         testsuite/libffi.special/unwindtest_ffi_call.cc,
506         testsuite/libffi.special/unwindtest.cc: Enable for ARM.
507
508 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
509
510         * aclocal.m4: Regenerated.
511
512 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
513
514         * configure: Regenerate.
515
516 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
517
518         * Makefile.in: Regenerate.
519         * configure: Regenerate.
520         * aclocal.m4: Regenerate.
521         * include/Makefile.in: Regenerate.
522         * testsuite/Makefile.in: Regenerate.
523
524 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
525
526         * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
527         ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
528         * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
529         * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
530         (FFI_CLOSURES): Enable closure support.
531
532 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
533
534         * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
535         * configure: Regenerate.
536         * fficonfig.h.in: Regenerate.
537         * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
538         CFI_OFFSET,CFI_DEF_CFA): New macros.
539         (ffi_call_SYSV): Add callframe annotation.
540
541 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
542
543         * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
544         numerous test suite failures.
545         * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
546
547 2007-04-11  Paolo Bonzini  <bonzini@gnu.org>
548
549         * Makefile.am (EXTRA_DIST): Bring up to date.
550         * Makefile.in: Regenerate.
551         * src/frv/eabi.S: Remove RCS keyword.
552
553 2007-04-06  Richard Henderson  <rth@redhat.com>
554
555         * configure.ac: Tidy target case.
556         (HAVE_LONG_DOUBLE): Allow the target to override.
557         * configure: Regenerate.
558         * include/ffi.h.in: Don't define ffi_type_foo if
559         LIBFFI_HIDE_BASIC_TYPES is defined.
560         (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
561         to ffi_type_double.
562         * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
563         (FFI_TYPEDEF, ffi_type_void): Mark the data const.
564         (ffi_type_longdouble): Special case for Alpha.  Don't define
565         if long double == double.
566
567         * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
568         (ffi_prep_cif_machdep): Handle it as the 128-bit type.
569         (ffi_call, ffi_closure_osf_inner): Likewise.
570         (ffi_closure_osf_inner): Likewise.  Mark hidden.
571         (ffi_call_osf, ffi_closure_osf): Mark hidden.
572         * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
573         * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
574         (load_table): Handle 128-bit long double.
575
576         * testsuite/libffi.call/float4.c: Add -mieee for alpha.
577
578 2007-04-06  Tom Tromey  <tromey@redhat.com>
579
580         PR libffi/31491:
581         * README: Fixed bug in example.
582
583 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
584
585         * src/closures.c: Include sys/statfs.h.
586         (_GNU_SOURCE): Define on Linux.
587         (FFI_MMAP_EXEC_SELINUX): Define.
588         (selinux_enabled): New variable.
589         (selinux_enabled_check): New function.
590         (is_selinux_enabled): Define.
591         (dlmmap): Use it.
592
593 2007-03-24  Uros Bizjak  <ubizjak@gmail.com>
594
595         * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
596         Use 'volatile float sum' to create sum of floats to avoid false
597         negative due to excess precision on ix86 targets.
598         (main): Ditto. 
599
600 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
601
602         * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
603         patch.
604         (ffi_prep_closure_loc): Remove unneeded casts.  Add needed ones.
605
606 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
607
608         * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
609         (ffi_prep_closure_loc): New.
610         (ffi_prep_raw_closure_loc): New.
611         (ffi_prep_java_raw_closure_loc): New.
612         * src/closures.c: New file.
613         * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
614         Replace sflags with exec_offset.
615         [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
616         sub_segment_exec_offset): New macros.
617         (get_segment_flags, set_segment_flags, check_segment_merge): New
618         macros.
619         (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
620         (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
621         destroy_mspace): Use new macros.
622         (sys_alloc): Silence warning.
623         * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
624         * Makefile.in: Rebuilt.
625         * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
626         terms of ffi_prep_closure_loc.
627         * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
628         from...
629         (ffi_prep_raw_closure): ... this.  Re-implement in terms of the
630         renamed version.
631         * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
632         adjusted from...
633         (ffi_prep_java_raw_closure): ... this.  Re-implement in terms of
634         the renamed version.
635         * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
636         (ffi_prep_closure): ... this.
637         * src/pa/ffi.c: Likewise.
638         * src/cris/ffi.c: Likewise.  Adjust.
639         * src/frv/ffi.c: Likewise.
640         * src/ia64/ffi.c: Likewise.
641         * src/mips/ffi.c: Likewise.
642         * src/powerpc/ffi_darwin.c: Likewise.
643         * src/s390/ffi.c: Likewise.
644         * src/sh/ffi.c: Likewise.
645         * src/sh64/ffi.c: Likewise.
646         * src/sparc/ffi.c: Likewise.
647         * src/x86/ffi64.c: Likewise.
648         * src/x86/ffi.c: Likewise.
649         (FFI_INIT_TRAMPOLINE): Adjust.
650         (ffi_prep_raw_closure_loc): Renamed and adjusted from...
651         (ffi_prep_raw_closure): ... this.
652         * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
653         (ffi_prep_closure): ... this.
654         (flush_icache): Adjust.
655
656 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
657
658         * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
659         Lea's malloc.
660
661 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
662
663         * Makefile.am: Add dummy install-pdf target.
664         * Makefile.in: Regenerate
665
666 2007-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
667
668         * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
669         ffi_closure_helper_SYSV): Add long double handling.
670
671 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
672
673         * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
674         immediately after bctrl instruction.
675
676 2007-01-18  Alexandre Oliva  <aoliva@redhat.com>
677
678         * Makefile.am (all-recursive, install-recursive,
679         mostlyclean-recursive, clean-recursive, distclean-recursive,
680         maintainer-clean-recursive): Add missing targets.
681         * Makefile.in: Rebuilt.
682
683 2006-12-14  Andreas Tobler  <a.tobler@schweiz.org>
684
685         * configure.ac: Add TARGET for x86_64-*-darwin*.
686         * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
687         for X86_DARWIN.
688         * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
689         * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
690         * configure: Regenerate.
691         * Makefile.in: Regenerate.
692         * include/Makefile.in: Regenerate.
693         * testsuite/Makefile.in: Regenerate.
694         * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
695         ffi_call only.
696
697 2006-12-13  Andreas Tobler <a.tobler@schweiz.org>
698
699         * aclocal.m4: Regenerate with aclocal -I .. as written in the
700         Makefile.am.
701
702 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
703
704         * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
705         (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
706         Darwin.
707         * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
708         * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
709
710 2006-10-10  Paolo Bonzini  <bonzini@gnu.org>
711             Sandro Tolaini  <tolaini@libero.it>
712
713         * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and 
714         conditional.
715         * configure: Regenerated.
716         * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
717         (EXTRA_DIST): Add src/x86/darwin.S.
718         * Makefile.in: Regenerated.
719         * include/Makefile.in: Regenerated.
720         * testsuite/Makefile.in: Regenerated.
721
722         * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
723         X86_WIN32, and additionally align stack to 16 bytes.
724         * src/x86/darwin.S: New, based on sysv.S.
725         * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
726
727 2006-09-12  David Daney  <ddaney@avtrex.com>
728
729         PR libffi/23935
730         * include/Makefile.am: Install both ffi.h and ffitarget.h in
731         $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
732         * aclocal.m4: Regenerated for automake 1.9.6.
733         * Makefile.in: Regenerated.
734         * include/Makefile.in: Regenerated.
735         * testsuite/Makefile.in: Regenerated.
736
737 2006-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
738
739         * include/ffi_common.h (struct): Revert accidental commit.
740
741 2006-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
742
743         * include/ffi_common.h: Remove lint directives.
744         * include/ffi.h.in: Likewise.
745
746 2006-07-25  Torsten Schoenfeld  <kaffeetisch@gmx.de>
747
748         * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
749         for 32-bit architectures.
750         * testsuite/libffi.call/return_ul.c: New test case.
751
752 2006-07-19  David Daney  <ddaney@avtrex.com>
753
754         * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
755         xfail remains for mips64.
756
757 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
758
759         * Makefile.am: Add install-html target. Add install-html to .PHONY
760         * Makefile.in: Regenerate.
761         * aclocal.m4: Regenerate.
762         * include/Makefile.in: Regenerate.
763         * testsuite/Makefile.in: Regenerate.
764
765 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
766
767         * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
768         stack slot.
769
770 2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>
771
772         * README: Remove notice about 'Crazy Comments'.
773         * src/debug.c: Remove lint directives. Cleanup white spaces.
774         * src/java_raw_api.c: Likewise.
775         * src/prep_cif.c: Likewise.
776         * src/raw_api.c: Likewise.
777         * src/ffitest.c: Delete. No longer needed, all test cases migrated
778         to the testsuite.
779         * src/arm/ffi.c: Remove lint directives.
780         * src/m32r/ffi.c: Likewise.
781         * src/pa/ffi.c: Likewise.
782         * src/powerpc/ffi.c: Likewise.
783         * src/powerpc/ffi_darwin.c: Likewise.
784         * src/sh/ffi.c: Likewise.
785         * src/sh64/ffi.c: Likewise.
786         * src/x86/ffi.c: Likewise.
787         * testsuite/libffi.call/float2.c: Likewise.
788         * testsuite/libffi.call/promotion.c: Likewise.
789         * testsuite/libffi.call/struct1.c: Likewise.
790
791 2006-04-13  Andreas Tobler  <a.tobler@schweiz.ch>
792
793         * src/pa/hpux32.S: Correct unwind offset calculation for
794         ffi_closure_pa32.
795         * src/pa/linux.S: Likewise.
796
797 2006-04-12  James E Wilson  <wilson@specifix.com>
798
799         PR libgcj/26483
800         * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
801         (hfa_type_load): Call stf_spill.
802         (hfa_type_store): Call ldf_fill.
803         (ffi_call): Adjust calls to above routines.  Add local temps for
804         macro result.
805
806 2006-04-10  Matthias Klose  <doko@debian.org>
807
808         * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
809         directory names containing underscores.
810
811 2006-04-07  James E Wilson  <wilson@specifix.com>
812
813         * testsuite/libffi.call/float4.c: New testcase.
814
815 2006-04-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
816             Andreas Tobler  <a.tobler@schweiz.ch>
817
818         * Makefile.am: Add PA_HPUX port.
819         * Makefile.in: Regenerate.
820         * include/Makefile.in: Likewise.
821         * testsuite/Makefile.in: Likewise.
822         * configure.ac: Add PA_HPUX rules.
823         * configure: Regenerate.
824         * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
825         Add PA_HPUX and PA64_HPUX.
826         Rename FFI_LINUX ABI to FFI_PA32 ABI.
827         (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
828         (FFI_TYPE_SMALL_STRUCT2): Define.
829         (FFI_TYPE_SMALL_STRUCT4): Likewise.
830         (FFI_TYPE_SMALL_STRUCT8): Likewise.
831         (FFI_TYPE_SMALL_STRUCT3): Redefine.
832         (FFI_TYPE_SMALL_STRUCT5): Likewise.
833         (FFI_TYPE_SMALL_STRUCT6): Likewise.
834         (FFI_TYPE_SMALL_STRUCT7): Likewise.
835         * src/pa/ffi.c (ROUND_DOWN): Delete.
836         (fldw, fstw, fldd, fstd): Use '__asm__'.
837         (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
838         FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
839         (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
840         Simplify incrementing of stack slot variable. Change type of local
841         'n' to unsigned int.
842         (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
843         double on PA_HPUX.
844         (ffi_prep_cif_machdep): Likewise.
845         (ffi_call): Likewise.
846         (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
847         return type to ffi_status. Simplify incrementing of stack slot
848         variable. Only copy floating point argument registers when PA_LINUX
849         is true. Reformat debug statement.
850         Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
851         FFI_TYPE_SMALL_STRUCT8.
852         (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
853         declaration.
854         (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
855         Add nops to cache flush.  Add trampoline for PA_HPUX.
856         * src/pa/hpux32.S: New file.
857         * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
858         ffi_prep_args_LINUX to ffi_prep_args_pa32.
859         Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
860         unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
861         argument type checks so that common argument types appear first.
862         (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
863         ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
864
865 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
866
867         * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX.  Default
868         for 32-bit using IBM extended double format.  Fix FFI_LAST_ABI.
869         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
870         FFI_TYPE_LONGDOUBLE.
871         (ffi_prep_args64): Assert using IBM extended double.
872         (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
873         Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
874         (ffi_call): Handle FFI_LINUX.
875         (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
876         gpr3 return pointer as for struct return.  Handle FFI_LINUX
877         FFI_TYPE_LONGDOUBLE return and args.  Don't increment "nf"
878         unnecessarily.
879         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
880         for FFI_TYPE_LONGDOUBLE.  Move epilogue insns into case table.
881         Don't use r6 as pointer to results, instead use sp offset.  Don't
882         make a special call to load lr with case table address, instead
883         use offset from previous call.
884         * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
885         * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
886         return.
887
888 2006-03-15  Kaz Kojima  <kkojima@gcc.gnu.org>
889
890         * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
891         passed with FP registers correctly.
892         (ffi_closure_helper_SYSV): Likewise.
893         * src/sh64/sysv.S: Likewise.
894
895 2006-03-01  Andreas Tobler  <a.tobler@schweiz.ch>
896
897         * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
898         args and userdata unused.
899         (closure_test_fn1): Mark cif and userdata unused.
900         (main): Remove unused res.
901
902 2006-02-28  Andreas Tobler  <a.tobler@schweiz.ch>
903
904         * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
905         -O2, -O3, -Os and the warning flags -W -Wall.
906         * testsuite/libffi.special/special.exp: Likewise.
907         * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
908         unused parameter unused for gcc or else do nothing.
909         * testsuite/libffi.special/ffitestcxx.h: Likewise.
910         * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
911         and userdata unused.
912         * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
913         * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
914         * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
915         * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
916         * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
917         * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
918         * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
919         * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
920         * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
921         * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
922         * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
923         * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
924         * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
925         * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
926         * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
927         * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
928         * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
929         * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
930         * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
931         * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
932         * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
933         * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
934         * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
935         * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
936         Likewise.
937         * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
938         Likewise.
939         * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
940         Likewise.
941         * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
942         void* to avoid compiler warning.
943         (main): Likewise.
944         (cls_struct_align_gn): Mark cif and userdata unused.
945         * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
946         Likewise.
947         * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
948         Likewise.
949         * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
950         Likewise.
951         * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
952         Likewise.
953         * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
954         Likewise.
955         * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
956         * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
957         * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
958         data unused.
959         (main): Cast res_call to silence gcc.
960         * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
961         data unused.
962         (main): Cast res_call to silence gcc.
963         * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
964         and data unused.
965         (main): Cast res_call to silence gcc.
966         * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
967         data unused.
968         (main): Cast res_call to silence gcc.
969         * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
970         data unused.
971         (main): Cast res_call to silence gcc.
972         * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
973         and data unused.
974         (main): Cast res_call to silence gcc.
975         * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
976         userdata unused.
977         (cls_ret_schar_fn): Cast printf parameter to silence gcc.
978         * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
979         userdata unused.
980         (cls_ret_sint_fn): Cast printf parameter to silence gcc.
981         * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
982         userdata unused.
983         (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
984         * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn):  Mark cif and
985         userdata unused.
986         (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
987         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
988         userdata unused.
989         (cls_ret_uint_fn): Cast printf parameter to silence gcc.
990         * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
991         and userdata unused.
992         * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
993         userdata unused.
994         (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
995         * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
996         * testsuite/libffi.call/float1.c (main): Remove unused variable i.
997         Cleanup white spaces.
998         * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
999         * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
1000         cif and userdata unused.
1001         * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
1002         Likewise.
1003         * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
1004         * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
1005         formatters to silence gcc.
1006         (B_gn): Mark cif and userdata unused.
1007         * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
1008         unused.
1009         * testsuite/libffi.call/nested_struct4.c: Mention related PR.
1010         (B_gn): Mark cif and userdata unused.
1011         * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
1012         unused.
1013         * testsuite/libffi.call/nested_struct6.c: Mention related PR.
1014         (B_gn): Mark cif and userdata unused.
1015         * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
1016         unused.
1017         * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
1018         * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
1019         * testsuite/libffi.call/problem1.c (stub): Likewise.
1020         * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
1021         gcc.
1022         * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
1023         in the last commit for this test case in the test case itself.
1024         * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
1025         unused.
1026         * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
1027         * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
1028         * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
1029         * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
1030         * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
1031         * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
1032
1033 2006-02-22  Kaz Kojima  <kkojima@gcc.gnu.org>
1034
1035         * src/sh/sysv.S: Fix register numbers in the FDE for
1036         ffi_closure_SYSV.
1037
1038 2006-02-20  Andreas Tobler  <a.tobler@schweiz.ch>
1039
1040         * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
1041         declaration to avoid a false negative on ix86. See PR323.
1042
1043 2006-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1044
1045         * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
1046         and cast integer to void * if needed.  Update the pointer to
1047         the FP register saved area correctly.
1048         
1049 2006-02-17  Andreas Tobler  <a.tobler@schweiz.ch>
1050
1051         * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
1052         is fixed.
1053         * testsuite/libffi.call/nested_struct4.c: Likewise.
1054
1055 2006-02-16  Andreas Tobler  <a.tobler@schweiz.ch>
1056
1057         * testsuite/libffi.call/return_dbl.c: New test case.
1058         * testsuite/libffi.call/return_dbl1.c: Likewise.
1059         * testsuite/libffi.call/return_dbl2.c: Likewise.
1060         * testsuite/libffi.call/return_fl.c: Likewise.
1061         * testsuite/libffi.call/return_fl1.c: Likewise.
1062         * testsuite/libffi.call/return_fl2.c: Likewise.
1063         * testsuite/libffi.call/return_fl3.c: Likewise.
1064         * testsuite/libffi.call/closure_fn6.c: Likewise.
1065
1066         * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
1067         definition.
1068         * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
1069         here to be used by other test cases too.
1070
1071         * testsuite/libffi.call/nested_struct10.c: New test case.
1072         * testsuite/libffi.call/nested_struct9.c: Likewise.
1073         * testsuite/libffi.call/nested_struct8.c: Likewise.
1074         * testsuite/libffi.call/nested_struct7.c: Likewise.
1075         * testsuite/libffi.call/nested_struct6.c: Likewise.
1076         * testsuite/libffi.call/nested_struct5.c: Likewise.
1077         * testsuite/libffi.call/nested_struct4.c: Likewise.
1078
1079 2006-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
1080
1081         * configure.ac: Enable libffi for sparc64-*-freebsd*.
1082         * configure: Rebuilt.
1083
1084 2006-01-18  Jakub Jelinek  <jakub@redhat.com>
1085
1086         * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
1087         instead do the shifting inline.
1088         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
1089         shift count unconditionally.  Simplify load sequences for 1, 2, 3, 4
1090         and 8 byte structs, for the remaining struct sizes don't call
1091         __lshrdi3, instead do the shifting inline.
1092
1093 2005-12-07  Thiemo Seufer  <ths@networkno.de>
1094
1095         * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
1096         missing parentheses.
1097         * src/mips/o32.S (ffi_call_O32): Code formatting. Define
1098         and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
1099         (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
1100         A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
1101         V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
1102         FA_0_0_OFF2.
1103         * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
1104         endianness bugs.
1105         (ffi_prep_closure): Improve trampoline instruction scheduling.
1106         (ffi_closure_mips_inner_O32): Fix endianness bugs.
1107
1108 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1109
1110         * src/powerpc/ffi.c: Formatting.
1111         (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
1112         (ffi_prep_args64): Likewise.
1113
1114 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
1115
1116         * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
1117         darwin, use -shared-libgcc not -lgcc_s, and explain why.
1118
1119 2005-09-26  Tom Tromey  <tromey@redhat.com>
1120
1121         * testsuite/libffi.call/float1.c (value_type): New typedef.
1122         (CANARY): New define.
1123         (main): Check for result buffer overflow.
1124         * src/powerpc/linux64.S: Handle linux64 long double returns.
1125         * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
1126         (ffi_prep_cif_machdep): Handle linux64 long double returns.
1127
1128 2005-08-25  Alan Modra  <amodra@bigpond.net.au>
1129
1130         PR target/23404
1131         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
1132         homed fp args.
1133         (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
1134
1135 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
1136
1137         * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
1138         (AH_BOTTOM): Add FFI_HIDDEN definition.
1139         * configure: Rebuilt.
1140         * fficonfig.h.in: Rebuilt.
1141         * src/powerpc/ffi.c (hidden): Remove.
1142         (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
1143         ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
1144         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
1145         .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
1146         * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
1147         add FFI_HIDDEN to its prototype.
1148         (ffi_closure_SYSV_inner): New.
1149         * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
1150         * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
1151
1152 2005-08-10  Alfred M. Szmidt  <ams@gnu.org>
1153
1154         PR libffi/21819:
1155         * configure: Rebuilt.
1156         * configure.ac: Handle i*86-*-gnu*.
1157
1158 2005-08-09  Jakub Jelinek  <jakub@redhat.com>
1159
1160         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
1161         DW_CFA_offset_extended_sf rather than
1162         DW_CFA_GNU_negative_offset_extended.
1163         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
1164
1165 2005-07-22  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1166
1167         * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
1168         on sh3.
1169         (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
1170         * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
1171         partially on register.
1172         (ffi_closure_helper_SYSV): Likewise.
1173         (ffi_prep_cif_machdep): Don't set too many cif->flags.
1174
1175 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1176
1177         * src/sh/ffi.c (ffi_call): Handle small structures correctly.
1178         Remove empty line.
1179         * src/sh64/ffi.c (simple_type): Remove.
1180         (return_type): Handle small structures correctly.
1181         (ffi_prep_args): Likewise.
1182         (ffi_call): Likewise.
1183         (ffi_closure_helper_SYSV): Likewise.
1184         * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
1185         Emit position independent code if PIC and remove wrong datalabel
1186         prefixes from EH data.
1187
1188 2005-07-19  Andreas Tobler  <a.tobler@schweiz.ch>
1189
1190         * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
1191         * Makefile.in: Regenerate.
1192         * include/Makefile.in: Likewise.
1193         * testsuite/Makefile.in: Likewise.
1194         * configure.ac: Add POWERPC_FREEBSD rules.
1195         * configure: Regenerate.
1196         * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
1197         (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
1198         * src/powerpc/ffi.c: Add flags to handle small structure returns
1199         in ffi_call_SYSV.
1200         (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
1201         Aka FFI_SYSV.
1202         (ffi_closure_helper_SYSV): Likewise.
1203         * src/powerpc/ppc_closure.S: Add return types for small structures.
1204         * src/powerpc/sysv.S: Add bits to handle small structures for
1205         final SYSV 4 ABI.
1206
1207 2005-07-10  Andreas Tobler  <a.tobler@schweiz.ch>
1208
1209         * testsuite/libffi.call/cls_5_1_byte.c: New test file.
1210         * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
1211         * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
1212
1213 2005-07-05  Randolph Chung  <tausq@debian.org>
1214
1215         * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
1216         as FFI_TYPE_SMALL_STRUCT3.  Break out handling for 5-7 byte
1217         structures.  Kill compilation warnings.
1218         (ffi_closure_inner_LINUX): Print return values as hex in debug
1219         message.  Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
1220         Properly handle 5-7 byte structure returns.
1221         * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
1222         (FFI_TYPE_SMALL_STRUCT2): Remove.
1223         (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
1224         (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
1225         * src/pa/linux.S: Mark source file as using PA1.1 assembly.
1226         (checksmst1, checksmst2): Remove.
1227         (checksmst3): Optimize handling of 3-byte struct returns.
1228         (checksmst567): Properly handle 5-7 byte struct returns.
1229
1230 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1231
1232         PR libgcj/21943
1233         * src/mips/n32.S: Enforce PIC code.
1234         * src/mips/o32.S: Likewise.
1235
1236 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1237
1238         * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
1239         * configure: Regenerate.
1240         
1241 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
1242
1243         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
1244         to call ffi_closure_helper_SYSV.  Append @local instead.
1245         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
1246
1247 2005-05-17  Kelley Cook  <kcook@gcc.gnu.org>
1248
1249         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
1250         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
1251         * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
1252         * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
1253         include/Makefile.in, testsuite/Makefile.in: Regenerate.
1254         
1255 2005-05-09  Mike Stump  <mrs@apple.com>
1256
1257         * configure: Regenerate.
1258
1259 2005-05-08  Richard Henderson  <rth@redhat.com>
1260
1261         PR libffi/21285
1262         * src/alpha/osf.S: Update unwind into to match code.
1263
1264 2005-05-04  Andreas Degert <ad@papyrus-gmbh.de>
1265             Richard Henderson  <rth@redhat.com>
1266
1267         * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
1268         bit 11 of flags.
1269         (ffi_call): Mask return type field.  Pass ssecount to ffi_call_unix64.
1270         (ffi_prep_closure): Set carry bit if sse-used flag set.
1271         * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
1272         Only load sse registers if ssecount non-zero.
1273         (ffi_closure_unix64): Only save sse registers if carry set on entry.
1274
1275 2005-04-29  Ralf Corsepius  <ralf.corsepius@rtems.org>
1276
1277         * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
1278         powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
1279         * configure: Regenerate.
1280
1281 2005-04-20  Hans-Peter Nilsson  <hp@axis.com>
1282
1283         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
1284         have Tcl8.3-compatible intermediate variable.
1285
1286 2005-04-18  Simon Posnjak <simon.posnjak@siol.net> 
1287             Hans-Peter Nilsson  <hp@axis.com>
1288
1289         * Makefile.am: Add CRIS support.
1290         * configure.ac: Likewise.
1291         * Makefile.in, configure, testsuite/Makefile.in,
1292         include/Makefile.in: Regenerate.
1293         * src/cris: New directory.
1294         * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
1295         * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
1296
1297         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
1298         \r?\n in output tests.
1299
1300 2005-04-12  Mike Stump  <mrs@apple.com>
1301
1302         * configure: Regenerate.
1303
1304 2005-03-30  Hans Boehm  <Hans.Boehm@hp.com>
1305
1306         * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
1307         
1308 2005-03-30  Steve Ellcey  <sje@cup.hp.com>
1309
1310         * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
1311         (ffi_sarg) Ditto.
1312         * src/ia64/unix.S (ffi_closure_unix): Extend gp
1313         to 64 bits in ILP32 mode.
1314         Load 64 bits even for short data.
1315
1316 2005-03-23  Mike Stump  <mrs@apple.com>
1317
1318         * src/powerpc/darwin.S: Update for -m64 multilib.
1319         * src/powerpc/darwin_closure.S: Likewise.
1320
1321 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
1322
1323         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
1324         Do not set tool_include_dir.
1325         * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
1326         Regenerate.
1327         * include/Makefile.am: Set gcc_version and toollibffidir.
1328         * include/Makefile.in: Regenerate.
1329
1330 2005-02-22  Andrew Haley  <aph@redhat.com>
1331
1332         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
1333         odd-numbered register pairs for 64-bit integer types.
1334
1335 2005-02-23  Andreas Tobler  <a.tobler@schweiz.ch>
1336
1337         PR libffi/20104
1338         * testsuite/libffi.call/return_ll1.c: New test case.
1339
1340 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
1341
1342         * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
1343         * testsuite/libffi.call/float.c: Ditto.
1344         * testsuite/libffi.call/float2.c: Ditto.
1345         * testsuite/libffi.call/float3.c: Ditto.
1346
1347 2005-02-08  Andreas Tobler  <a.tobler@schweiz.ch>
1348
1349         * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
1350
1351 2005-01-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1352
1353         * testsuite/libffi.special/special.exp (cxx_options): Add
1354         -shared-libgcc.
1355
1356 2004-12-31  Richard Henderson  <rth@redhat.com>
1357
1358         * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
1359         (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF.  Replace size and
1360         offset parameters with a type parameter; deduce size and structure
1361         alignment.  Update all users.
1362
1363 2004-12-31  Richard Henderson  <rth@redhat.com>
1364
1365         * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
1366         (FFI_TYPE_LONGDOUBLE): Fix for ia64.
1367         * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
1368         into ffi_prep_closure.
1369         * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
1370         from scratch.
1371
1372 2004-12-27  Richard Henderson  <rth@redhat.com>
1373
1374         * src/x86/unix64.S: Fix typo in unwind info.
1375
1376 2004-12-25  Richard Henderson  <rth@redhat.com>
1377
1378         * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
1379         (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
1380         (merge_classes): Check for it.
1381         (SSE_CLASS_P): New.
1382         (classify_argument): Pass byte_offset by value; perform all updates
1383         inside struct case.
1384         (examine_argument): Add classes argument; handle
1385         X86_64_COMPLEX_X87_CLASS.
1386         (ffi_prep_args): Merge into ...
1387         (ffi_call): ... here.  Share stack frame with ffi_call_unix64.
1388         (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
1389         (ffi_fill_return_value): Remove.
1390         (ffi_prep_closure): Remove dead assert.
1391         (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
1392         Rewrite to use struct register_args instead of va_list.  Create
1393         flags for handling structure returns.
1394         * src/x86/unix64.S: Remove dead strings.
1395         (ffi_call_unix64): Rename from ffi_call_UNIX64.  Rewrite to share
1396         stack frame with ffi_call.  Handle structure returns properly.
1397         (float2sse, floatfloat2sse, double2sse): Remove.
1398         (sse2float, sse2double, sse2floatfloat): Remove.
1399         (ffi_closure_unix64): Rename from ffi_closure_UNIX64.  Rewrite
1400         to handle structure returns properly.
1401
1402 2004-12-08  David Edelsohn  <edelsohn@gnu.org>
1403
1404         * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
1405         PICFLAG.
1406         * Makefile.in: Regenerated.
1407
1408 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
1409
1410         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1411         * configure, aclocal.m4, Makefile.in: Regenerate.
1412         * include/Makefile.in, testsuite/Makefile.in: Regenerate.
1413
1414 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
1415
1416         * configure: Regenerate for libtool change.
1417
1418 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
1419
1420         * configure: Regenerate for libtool reversion.
1421
1422 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
1423
1424         * configure: Regenerate for libtool change.
1425
1426 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1427
1428         * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
1429
1430 2004-11-23  Richard Sandiford  <rsandifo@redhat.com>
1431
1432         * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
1433         of jal.  Use an absolute encoding for the frame information.
1434
1435 2004-11-23  Kelley Cook  <kcook@gcc.gnu.org>
1436
1437         * Makefile.am: Remove no-dependencies.  Add ACLOCAL_AMFLAGS.
1438         * acinclude.m4: Delete logic for sincludes.
1439         * aclocal.m4, Makefile.in, configure: Regenerate.
1440         * include/Makefile: Likewise.
1441         * testsuite/Makefile: Likewise.
1442
1443 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1444
1445         * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
1446         on a 8-byte boundary.
1447         * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
1448
1449 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
1450
1451         * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
1452         long long values.  Round stack allocation to a multiple of 8 bytes
1453         for ATPCS compatibility.
1454         * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
1455         names.  Handle returning long long types.  Add Thumb and interworking
1456         support.  Improve soft-float code.
1457
1458 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
1459
1460         * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
1461         (libffi_exit): New function.
1462         (libffi_init): Build the testglue wrapper if needed.
1463
1464 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1465
1466         PR other/18138
1467         * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
1468
1469 2004-10-25  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1470
1471         * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
1472
1473 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1474
1475         * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
1476         * testsuite/libffi.call/float3.c: New test case.
1477
1478 2004-10-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1479
1480         * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
1481         the function returning a structure pointed with R2.
1482         * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
1483         the structure return value if T bit set.  Emit position
1484         independent code and EH data if PIC.
1485
1486 2004-10-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1487
1488         * Makefile.am: Add m32r support.
1489         * configure.ac: Likewise.
1490         * Makefile.in: Regenerate.
1491         * confiugre: Regenerate.
1492         * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
1493         (uint64, sint64, double, longdouble)
1494         * src/m32r: New directory.
1495         * src/m32r/ffi.c: New file.
1496         * src/m32r/sysv.S: Likewise.
1497         * src/m32r/ffitarget.h: Likewise.
1498
1499 2004-10-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1500
1501         * testsuite/libffi.call/negint.c: New test case.
1502
1503 2004-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1504
1505         PR libgcj/17465
1506         * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
1507         Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
1508         LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
1509         DYLD_LIBRARY_PATH.
1510
1511 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
1512
1513         * testsuite/libffi.call/many_win32.c: Remove whitespaces.
1514         * testsuite/libffi.call/promotion.c: Likewise.
1515         * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
1516         whitespaces.
1517         * testsuite/libffi.call/return_sc.c: Likewise.
1518         * testsuite/libffi.call/return_uc.c: Likewise.
1519
1520 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
1521
1522         * src/powerpc/darwin.S: Fix comments and identation.
1523         * src/powerpc/darwin_closure.S: Likewise.
1524
1525 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
1526
1527         * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
1528         (ffi_prep_args): Handle longdouble arguments.
1529         (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
1530         longdouble.
1531         (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
1532         * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
1533         values.
1534         * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
1535         * src/types.c: Defined longdouble size and alignment for darwin.
1536
1537 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
1538
1539         * src/powerpc/aix.S: Remove whitespaces.
1540         * src/powerpc/aix_closure.S: Likewise.
1541         * src/powerpc/asm.h: Likewise.
1542         * src/powerpc/ffi.c: Likewise.
1543         * src/powerpc/ffitarget.h: Likewise.
1544         * src/powerpc/linux64.S: Likewise.
1545         * src/powerpc/linux64_closure.S: Likewise.
1546         * src/powerpc/ppc_closure.S: Likewise.
1547         * src/powerpc/sysv.S: Likewise.
1548
1549 2004-08-30  Anthony Green  <green@redhat.com>
1550
1551         * Makefile.am: Add frv support.
1552         * Makefile.in, testsuite/Makefile.in: Rebuilt.
1553         * configure.ac: Read configure.host.
1554         * configure.in: Read configure.host.
1555         * configure.host: New file.  frv-elf needs libgloss.
1556         * include/ffi.h.in: Force ffi_closure to have a nice big (8)
1557         alignment.  This is needed to frv and shouldn't harm the others.
1558         * include/ffi_common.h (ALIGN_DOWN): New macro.
1559         * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
1560
1561 2004-08-24  David Daney  <daney@avtrex.com>
1562
1563         * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
1564         * testsuite/libffi.call/closure_fn1.c: Likewise.
1565         * testsuite/libffi.call/closure_fn2.c  Likewise.
1566         * testsuite/libffi.call/closure_fn3.c: Likewise.
1567         * testsuite/libffi.call/closure_fn4.c: Likewise.
1568         * testsuite/libffi.call/closure_fn5.c: Likewise.
1569         * testsuite/libffi.call/cls_18byte.c: Likewise.
1570         * testsuite/libffi.call/cls_19byte.c: Likewise.
1571         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1572         * testsuite/libffi.call/cls_20byte.c: Likewise.
1573         * testsuite/libffi.call/cls_20byte1.c: Likewise.
1574         * testsuite/libffi.call/cls_24byte.c: Likewise.
1575         * testsuite/libffi.call/cls_2byte.c: Likewise.
1576         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1577         * testsuite/libffi.call/cls_3byte1.c: Likewise.
1578         * testsuite/libffi.call/cls_3byte2.c: Likewise.
1579         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1580         * testsuite/libffi.call/cls_4byte.c: Likewise.
1581         * testsuite/libffi.call/cls_64byte.c: Likewise.
1582         * testsuite/libffi.call/cls_6byte.c: Likewise.
1583         * testsuite/libffi.call/cls_7byte.c: Likewise.
1584         * testsuite/libffi.call/cls_8byte.c: Likewise.
1585         * testsuite/libffi.call/cls_9byte1.c: Likewise.
1586         * testsuite/libffi.call/cls_9byte2.c: Likewise.
1587         * testsuite/libffi.call/cls_align_double.c: Likewise.
1588         * testsuite/libffi.call/cls_align_float.c: Likewise.
1589         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1590         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1591         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1592         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1593         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1594         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1595         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1596         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1597         * testsuite/libffi.call/cls_double.c: Likewise.
1598         * testsuite/libffi.call/cls_float.c: Likewise.
1599         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
1600         * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
1601         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
1602         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
1603         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
1604         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
1605         * testsuite/libffi.call/cls_schar.c: Likewise.
1606         * testsuite/libffi.call/cls_sint.c: Likewise.
1607         * testsuite/libffi.call/cls_sshort.c: Likewise.
1608         * testsuite/libffi.call/cls_uchar.c: Likewise.
1609         * testsuite/libffi.call/cls_uint.c: Likewise.
1610         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1611         * testsuite/libffi.call/cls_ushort.c: Likewise.
1612         * testsuite/libffi.call/nested_struct.c: Likewise.
1613         * testsuite/libffi.call/nested_struct1.c: Likewise.
1614         * testsuite/libffi.call/nested_struct2.c: Likewise.
1615         * testsuite/libffi.call/nested_struct3.c: Likewise.
1616         * testsuite/libffi.call/problem1.c: Likewise.
1617         * testsuite/libffi.special/unwindtest.cc: Likewise.
1618         * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
1619         to zero.
1620         * testsuite/libffi.call/cls_16byte.c: Likewise.
1621         * testsuite/libffi.call/cls_5byte.c: Likewise.
1622
1623 2004-08-23  David Daney <daney@avtrex.com>
1624
1625         PR libgcj/13141
1626         * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
1627         * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
1628         (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
1629         parameters and return types.
1630         (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
1631         (ffi_prep_closure): Ditto.
1632         (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
1633         alignment calculations.
1634         * src/mips/o32.S (ffi_closure_O32): Don't use floating point
1635         instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
1636
1637 2004-08-14  Casey Marshall <csm@gnu.org>
1638
1639         * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
1640         contain `FFI_TYPE_UINT64' as return type for any 64-bit
1641         integer (O32 ABI only).
1642         (ffi_prep_closure): new function.
1643         (ffi_closure_mips_inner_O32): new function.
1644         * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
1645         `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
1646         * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
1647         64 bit integers correctly.
1648         (ffi_closure_O32): new function.
1649         Added DWARF-2 unwind info for both functions.
1650
1651 2004-08-10  Andrew Haley  <aph@redhat.com>
1652
1653         * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
1654
1655 2004-08-01  Robert Millan  <robertmh@gnu.org>
1656
1657         * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
1658         * configure: Regenerate.
1659
1660 2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>
1661
1662         * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
1663         and mmap() explicitly instead of relying on preset autoconf cache
1664         variables.
1665         * aclocal.m4: Regenerate.
1666         * configure: Regenerate.
1667
1668 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
1669
1670         * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
1671         (ffi_check_float_struct): Remove unused prototype.
1672
1673 2004-06-30  Geoffrey Keating  <geoffk@apple.com>
1674
1675         * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
1676         character on Darwin, use '\n\t' instead.
1677
1678 2004-06-26  Matthias Klose  <doko@debian.org>
1679
1680         * libtool-version: Fix typo in revision/age.
1681
1682 2004-06-17  Matthias Klose  <doko@debian.org>
1683
1684         * libtool-version: New.
1685         * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
1686         * Makefile.in: Regenerate.
1687
1688 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1689
1690         * Makefile.am: Remove useless multilib rules.
1691         * Makefile.in: Regenerate.
1692         * aclocal.m4: Regenerate with automake 1.8.5.
1693         * configure.ac: Remove useless multilib configury.
1694         * configure: Regenerate.
1695
1696 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1697
1698         * .cvsignore: New file.
1699
1700 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
1701
1702         * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
1703         fp_done.
1704         (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
1705         changed from 8.
1706
1707 2004-06-06  Sean McNeil  <sean@mcneil.com>
1708
1709         * configure.ac: Add x86_64-*-freebsd* support.
1710         * configure: Regenerate.
1711
1712 2004-04-26  Joe Buck <jbuck@welsh-buck.org>
1713
1714         Bug 15093
1715         * configure.ac: Test for existence of mmap and sys/mman.h before
1716         checking blacklist.  Fix suggested by Jim Wilson.
1717         * configure: Regenerate.
1718
1719 2004-04-26  Matt Austern  <austern@apple.com>
1720
1721         * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
1722         FDE location.
1723         * src/powerpc/darwin_closure.S: Likewise.
1724
1725 2004-04-24  Andreas Tobler  <a.tobler@schweiz.ch>
1726
1727         * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
1728         error. Reported by Thomas Heller <theller@python.net>.
1729         * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
1730         * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
1731
1732 2004-03-20  Matthias Klose  <doko@debian.org>
1733
1734         * src/pa/linux.S: Fix typo.
1735
1736 2004-03-19  Matthias Klose  <doko@debian.org>
1737
1738         * Makefile.am: Update.
1739         * Makefile.in: Regenerate.
1740         * src/pa/ffi.h.in: Remove.
1741         * src/pa/ffitarget.h: New file.
1742
1743 2004-02-10  Randolph Chung  <tausq@debian.org>
1744
1745         * Makefile.am: Add PA support.
1746         * Makefile.in: Regenerate.
1747         * include/Makefile.in: Regenerate.
1748         * configure.ac: Add PA target.
1749         * configure: Regenerate.
1750         * src/pa/ffi.c: New file.
1751         * src/pa/ffi.h.in: Add PA support.
1752         * src/pa/linux.S: New file.
1753         * prep_cif.c: Add PA support.
1754
1755 2004-03-16  Hosaka Yuji  <hos@tamanegi.org>
1756
1757         * src/types.c: Fix alignment size of X86_WIN32 case int64 and
1758         double.
1759         * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
1760         with ecif->cif->flags.
1761         (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
1762         with cif->flags.
1763         (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
1764         (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
1765         * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
1766         sc_retstruct2b): Add for 1 or 2-bytes struct case.
1767
1768 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
1769
1770         * configure.in: Rename file to ...
1771         * configure.ac: ... this.
1772         * fficonfig.h.in: Regenerate.
1773         * Makefile.in: Regenerate.
1774         * include/Makefile.in: Regenerate.
1775         * testsuite/Makefile.in: Regenerate.
1776
1777 2004-03-12  Matt Austern  <austern@apple.com>
1778
1779         * src/powerpc/darwin.S: Fix EH information so it corresponds to
1780         changes in EH format resulting from addition of linkonce support.
1781         * src/powerpc/darwin_closure.S: Likewise.
1782
1783 2004-03-11  Andreas Tobler  <a.tobler@schweiz.ch>
1784             Paolo Bonzini  <bonzini@gnu.org>
1785
1786         * Makefile.am (AUTOMAKE_OPTIONS): Set them.
1787         Remove VPATH. Remove rules for object files. Remove multilib support.
1788         (AM_CCASFLAGS): Add.
1789         * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
1790         (AC_PREREQ): Bump version to 2.59.
1791         (AC_INIT): Fill with version info and bug address.
1792         (ORIGINAL_LD_FOR_MULTILIBS): Remove.
1793         (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
1794         De-precious CC so that the right flags are passed down to multilibs.
1795         (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
1796         (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
1797         (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
1798         * configure: Rebuilt.
1799         * aclocal.m4: Likewise.
1800         * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
1801         * fficonfig.h.in: Likewise.
1802
1803 2004-03-11  Andreas Schwab  <schwab@suse.de>
1804
1805         * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
1806         arguments from fp registers only for the first 8 parameter slots.
1807         Don't convert a float parameter when passed in memory.
1808
1809 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
1810
1811         * configure: Regenerate for config/accross.m4 correction.
1812
1813 2004-02-25  Matt Kraai  <kraai@alumni.cmu.edu>
1814
1815         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
1816         ecif->cif->bytes to bytes.
1817         (ffi_prep_cif_machdep): Add braces around nested if statement.
1818
1819 2004-02-09  Alan Modra  <amodra@bigpond.net.au>
1820
1821         * src/types.c (pointer): POWERPC64 has 8 byte pointers.
1822
1823         * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
1824         (ffi_closure_helper_LINUX64): Fix typo.
1825         * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
1826         for powerpc64-*-*.
1827         * testsuite/libffi.call/float.c: Likewise.
1828         * testsuite/libffi.call/float2.c: Likewise.
1829
1830 2004-02-08  Alan Modra  <amodra@bigpond.net.au>
1831
1832         * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
1833         long double function return and long double arg handling.
1834         (ffi_closure_helper_LINUX64): Formatting.  Delete unused "ng" var.
1835         Use "end_pfr" instead of "nf".  Correct long double handling.
1836         Localise "temp".
1837         * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
1838         return value.
1839         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
1840         space for long double return value.  Adjust stack frame and offsets.
1841         Load f2 long double return.
1842
1843 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
1844
1845         * src/types.c: Use 16 byte long double for POWERPC64.
1846
1847 2004-01-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1848
1849         * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
1850         when the structure return address is passed in %o0.
1851         (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
1852         (ffi_v9_layout_struct): Align the field following a nested structure
1853         on a word boundary.  Use memmove instead of memcpy.
1854         (ffi_call): Update call to ffi_V9_return_struct.
1855         (ffi_prep_closure): Define 'ctx' only for V8.
1856         (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
1857         and ffi_closure_sparc_inner_v9.
1858         (ffi_closure_sparc_inner_v8): Return long doubles by reference.
1859         Always skip the structure return address.  For structures and long
1860         doubles, copy the argument directly.
1861         (ffi_closure_sparc_inner_v9): Skip the structure return address only
1862         if required.  Shift the maximum floating-point slot accordingly.  For
1863         big structures, copy the argument directly; otherwise, left-justify the
1864         argument and call ffi_v9_layout_struct to lay out the structure on
1865         the stack.
1866         * src/sparc/v8.S: Undef STACKFRAME before defining it.
1867         (ffi_closure_v8): Pass the structure return address.  Update call to
1868         ffi_closure_sparc_inner_v8.  Short-circuit FFI_TYPE_INT handling.
1869         Skip the 'unimp' insn when returning long doubles and structures.
1870         * src/sparc/v9.S: Undef STACKFRAME before defining it.
1871         (ffi_closure_v9): Increase the frame size by 2 words.  Short-circuit
1872         FFI_TYPE_INT handling.  Load structures both in integers and
1873         floating-point registers on return.
1874         * README: Update status of the SPARC port.
1875
1876 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
1877
1878         * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
1879         as of type ffi_arg.
1880         * testsuite/libffi.call/struct3.c (main): Fix CHECK.
1881
1882 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
1883
1884         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
1885         value as of type ffi_arg, not unsigned int.
1886
1887 2004-01-21  Michael Ritzert  <ritzert@t-online.de>
1888
1889         * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
1890         of the LHS.
1891
1892 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
1893
1894         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
1895         Solaris.
1896
1897 2004-01-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1898
1899         * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
1900         to void *.
1901
1902 2003-12-10  Richard Henderson  <rth@redhat.com>
1903
1904         * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
1905         size_t instead of int.
1906
1907 2003-12-04  Hosaka Yuji  <hos@tamanegi.org>
1908
1909         * testsuite/libffi.call/many_win32.c: Include <float.h>.
1910         * testsuite/libffi.call/many_win32.c (main): Replace variable
1911         int i with unsigned long ul.
1912
1913         * testsuite/libffi.call/cls_align_uint64.c: New test case.
1914         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1915         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1916         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1917         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1918         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1919         * testsuite/libffi.call/cls_align_float.c: Likewise.
1920         * testsuite/libffi.call/cls_align_double.c: Likewise.
1921         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1922         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1923
1924 2003-12-02  Hosaka Yuji  <hos@tamanegi.org>
1925
1926         PR other/13221
1927         * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
1928         Align arguments to 32 bits.
1929
1930 2003-12-01  Andreas Tobler  <a.tobler@schweiz.ch>
1931
1932         PR other/13221
1933         * testsuite/libffi.call/cls_multi_sshort.c: New test case.
1934         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
1935         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
1936         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
1937         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
1938         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
1939
1940         * testsuite/libffi.special/unwindtest.cc: Cosmetics.
1941
1942 2003-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1943
1944         * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
1945         * testsuite/libffi.special/ffitestcxx.h: Likewise.
1946
1947 2003-11-22  Andreas Tobler  <a.tobler@schweiz.ch>
1948
1949         * Makefile.in: Rebuilt.
1950         * configure: Likewise.
1951         * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
1952         the right type.
1953
1954 2003-11-21  Andreas Jaeger  <aj@suse.de>
1955             Andreas Tobler  <a.tobler@schweiz.ch>
1956
1957         * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
1958         * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
1959         * Makefile.in: Rebuilt.
1960         * aclocal.m4: Likewise.
1961         * configure: Likewise.
1962         * fficonfig.h.in: Likewise.
1963         * testsuite/lib/libffi-dg.exp: Add include dir.
1964         * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
1965         * testsuite/libffi.special/ffitestcxx.h: Likewise.
1966         * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
1967         for ffi_closure if available.
1968         * testsuite/libffi.call/closure_fn1.c: Likewise.
1969         * testsuite/libffi.call/closure_fn2.c: Likewise.
1970         * testsuite/libffi.call/closure_fn3.c: Likewise.
1971         * testsuite/libffi.call/closure_fn4.c: Likewise.
1972         * testsuite/libffi.call/closure_fn5.c: Likewise.
1973         * testsuite/libffi.call/cls_12byte.c: Likewise.
1974         * testsuite/libffi.call/cls_16byte.c: Likewise.
1975         * testsuite/libffi.call/cls_18byte.c: Likewise.
1976         * testsuite/libffi.call/cls_19byte.c: Likewise.
1977         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1978         * testsuite/libffi.call/cls_20byte.c: Likewise.
1979         * testsuite/libffi.call/cls_20byte1.c: Likewise.
1980         * testsuite/libffi.call/cls_24byte.c: Likewise.
1981         * testsuite/libffi.call/cls_2byte.c: Likewise.
1982         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1983         * testsuite/libffi.call/cls_3byte1.c: Likewise.
1984         * testsuite/libffi.call/cls_3byte2.c: Likewise.
1985         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1986         * testsuite/libffi.call/cls_4byte.c: Likewise.
1987         * testsuite/libffi.call/cls_5byte.c: Likewise.
1988         * testsuite/libffi.call/cls_64byte.c: Likewise.
1989         * testsuite/libffi.call/cls_6byte.c: Likewise.
1990         * testsuite/libffi.call/cls_7byte.c: Likewise.
1991         * testsuite/libffi.call/cls_8byte.c: Likewise.
1992         * testsuite/libffi.call/cls_9byte1.c: Likewise.
1993         * testsuite/libffi.call/cls_9byte2.c: Likewise.
1994         * testsuite/libffi.call/cls_double.c: Likewise.
1995         * testsuite/libffi.call/cls_float.c: Likewise.
1996         * testsuite/libffi.call/cls_schar.c: Likewise.
1997         * testsuite/libffi.call/cls_sint.c: Likewise.
1998         * testsuite/libffi.call/cls_sshort.c: Likewise.
1999         * testsuite/libffi.call/cls_uchar.c: Likewise.
2000         * testsuite/libffi.call/cls_uint.c: Likewise.
2001         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2002         * testsuite/libffi.call/cls_ushort.c: Likewise.
2003         * testsuite/libffi.call/nested_struct.c: Likewise.
2004         * testsuite/libffi.call/nested_struct1.c: Likewise.
2005         * testsuite/libffi.call/nested_struct2.c: Likewise.
2006         * testsuite/libffi.call/nested_struct3.c: Likewise.
2007         * testsuite/libffi.call/problem1.c: Likewise.
2008         * testsuite/libffi.special/unwindtest.cc: Likewise.
2009
2010 2003-11-20  Andreas Tobler  <a.tobler@schweiz.ch>
2011
2012         * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2013
2014 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
2015
2016         * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2017         Add -lgcc_s to additional flags.
2018
2019 2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>
2020
2021         * configure.in, include/Makefile.am: PR libgcj/11147, install
2022         the ffitarget.h header file in a gcc versioned and target
2023         dependent place.
2024         * configure: Regenerated.
2025         * Makefile.in, include/Makefile.in: Likewise.
2026         * testsuite/Makefile.in: Likewise.
2027
2028 2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>
2029
2030         * testsuite/libffi.call/closure_fn0.c: Print result and check
2031         with dg-output to make debugging easier.
2032         * testsuite/libffi.call/closure_fn1.c: Likewise.
2033         * testsuite/libffi.call/closure_fn2.c: Likewise.
2034         * testsuite/libffi.call/closure_fn3.c: Likewise.
2035         * testsuite/libffi.call/closure_fn4.c: Likewise.
2036         * testsuite/libffi.call/closure_fn5.c: Likewise.
2037         * testsuite/libffi.call/cls_12byte.c: Likewise.
2038         * testsuite/libffi.call/cls_16byte.c: Likewise.
2039         * testsuite/libffi.call/cls_18byte.c: Likewise.
2040         * testsuite/libffi.call/cls_19byte.c: Likewise.
2041         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2042         * testsuite/libffi.call/cls_20byte.c: Likewise.
2043         * testsuite/libffi.call/cls_20byte1.c: Likewise.
2044         * testsuite/libffi.call/cls_24byte.c: Likewise.
2045         * testsuite/libffi.call/cls_2byte.c: Likewise.
2046         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2047         * testsuite/libffi.call/cls_3byte1.c: Likewise.
2048         * testsuite/libffi.call/cls_3byte2.c: Likewise.
2049         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2050         * testsuite/libffi.call/cls_4byte.c: Likewise.
2051         * testsuite/libffi.call/cls_5byte.c: Likewise.
2052         * testsuite/libffi.call/cls_64byte.c: Likewise.
2053         * testsuite/libffi.call/cls_6byte.c: Likewise.
2054         * testsuite/libffi.call/cls_7byte.c: Likewise.
2055         * testsuite/libffi.call/cls_8byte.c: Likewise.
2056         * testsuite/libffi.call/cls_9byte1.c: Likewise.
2057         * testsuite/libffi.call/cls_9byte2.c: Likewise.
2058         * testsuite/libffi.call/cls_double.c: Likewise.
2059         * testsuite/libffi.call/cls_float.c: Likewise.
2060         * testsuite/libffi.call/cls_schar.c: Likewise.
2061         * testsuite/libffi.call/cls_sint.c: Likewise.
2062         * testsuite/libffi.call/cls_sshort.c: Likewise.
2063         * testsuite/libffi.call/cls_uchar.c: Likewise.
2064         * testsuite/libffi.call/cls_uint.c: Likewise.
2065         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2066         * testsuite/libffi.call/cls_ushort.c: Likewise.
2067         * testsuite/libffi.call/problem1.c: Likewise.
2068
2069         * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2070         static.
2071
2072 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
2073
2074         * testsuite/libffi.call/cls_9byte2.c: New test case.
2075         * testsuite/libffi.call/cls_9byte1.c: Likewise.
2076         * testsuite/libffi.call/cls_64byte.c: Likewise.
2077         * testsuite/libffi.call/cls_20byte1.c: Likewise.
2078         * testsuite/libffi.call/cls_19byte.c: Likewise.
2079         * testsuite/libffi.call/cls_18byte.c: Likewise.
2080         * testsuite/libffi.call/closure_fn4.c: Likewise.
2081         * testsuite/libffi.call/closure_fn5.c: Likewise.
2082         * testsuite/libffi.call/cls_schar.c: Likewise.
2083         * testsuite/libffi.call/cls_sint.c: Likewise.
2084         * testsuite/libffi.call/cls_sshort.c: Likewise.
2085         * testsuite/libffi.call/nested_struct2.c: Likewise.
2086         * testsuite/libffi.call/nested_struct3.c: Likewise.
2087
2088 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
2089
2090         * testsuite/libffi.call/cls_double.c: Do a check on the result.
2091         * testsuite/libffi.call/cls_uchar.c: Likewise.
2092         * testsuite/libffi.call/cls_uint.c: Likewise.
2093         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2094         * testsuite/libffi.call/cls_ushort.c: Likewise.
2095         * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
2096
2097 2003-11-06  Andreas Tobler  <a.tobler@schweiz.ch>
2098
2099         * src/prep_cif.c (ffi_prep_cif): Move the validity check after
2100         the initialization.
2101
2102 2003-10-23  Andreas Tobler  <a.tobler@schweiz.ch>
2103
2104         * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
2105         FFI_ASSERT(FALSE) with FFI_ASSERT(0).
2106
2107 2003-10-22  David Daney  <ddaney@avtrex.com>
2108
2109         * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
2110         __attribute__((__mode__(__SI__))) and friends.
2111
2112 2003-10-22  Andreas Schwab  <schwab@suse.de>
2113
2114         * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
2115
2116 2003-10-21  Andreas Tobler  <a.tobler@schweiz.ch>
2117
2118         * configure.in: AC_LINK_FILES(ffitarget.h).
2119         * configure: Regenerate.
2120         * Makefile.in: Likewise.
2121         * include/Makefile.in: Likewise.
2122         * testsuite/Makefile.in: Likewise.
2123         * fficonfig.h.in: Likewise.
2124
2125 2003-10-21  Paolo Bonzini  <bonzini@gnu.org>
2126             Richard Henderson  <rth@redhat.com>
2127
2128         Avoid that ffi.h includes fficonfig.h.
2129
2130         * Makefile.am (EXTRA_DIST): Include ffitarget.h files
2131         (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2132         (TARGET_SRC_MIPS_SGI): Removed.
2133         (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2134         (MIPS_SGI): Removed.
2135         (CLEANFILES): Removed.
2136         (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
2137         targets.
2138         * acconfig.h: Removed.
2139         * configure.in: Compute sizeofs only for double and long double.
2140         Use them to define and subst HAVE_LONG_DOUBLE.  Include comments
2141         into AC_DEFINE instead of using acconfig.h.  Create
2142         include/ffitarget.h instead of include/fficonfig.h.  Rename
2143         MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
2144         AC_DEFINE EH_FRAME_FLAGS.
2145         * include/Makefile.am (DISTCLEANFILES): New automake macro.
2146         (hack_DATA): Add ffitarget.h.
2147         * include/ffi.h.in: Remove all system specific definitions.
2148         Declare raw API even if it is not installed, why bother?
2149         Use limits.h instead of SIZEOF_* to define ffi_type_*.  Do
2150         not define EH_FRAME_FLAGS, it is in fficonfig.h now.  Include
2151         ffitarget.h instead of fficonfig.h.  Remove ALIGN macro.
2152         (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
2153         * include/ffi_common.h (bool): Do not define.
2154         (ffi_assert): Accept failed assertion.
2155         (ffi_type_test): Return void and accept file/line.
2156         (FFI_ASSERT): Pass stringized failed assertion.
2157         (FFI_ASSERT_AT): New macro.
2158         (FFI_ASSERT_VALID_TYPE): New macro.
2159         (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
2160         UINT64, SINT64): Define here with gcc's __attribute__ macro
2161         instead of in ffi.h
2162         (FLOAT32, ALIGN): Define here instead of in ffi.h
2163         * include/ffi-mips.h: Removed.  Its content moved to
2164         src/mips/ffitarget.h after separating assembly and C sections.
2165         * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
2166         src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
2167         src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
2168         src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
2169         SIZEOF_ARG -> FFI_SIZEOF_ARG.
2170         * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
2171         * src/debug.c (ffi_assert): Accept stringized failed assertion.
2172         (ffi_type_test): Rewritten.
2173         * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
2174         FFI_ASSERT_VALID_TYPE.
2175         * src/alpha/ffitarget.h, src/arm/ffitarget.h,
2176         src/ia64/ffitarget.h, src/m68k/ffitarget.h,
2177         src/mips/ffitarget.h, src/powerpc/ffitarget.h,
2178         src/s390/ffitarget.h, src/sh/ffitarget.h,
2179         src/sh64/ffitarget.h, src/sparc/ffitarget.h,
2180         src/x86/ffitarget.h: New files.
2181         * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
2182         src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
2183         src/powerpc/aix.S, src/powerpc/darwin.S,
2184         src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
2185         src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
2186         src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
2187         src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
2188         src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
2189         include fficonfig.h
2190
2191 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2192
2193         * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
2194         _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
2195
2196 2003-10-19  Andreas Tobler  <a.tobler@schweiz.ch>
2197
2198         * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
2199         Used when FFI_DEBUG = 1.
2200
2201 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
2202
2203         * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
2204         and align.
2205
2206 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2207
2208         * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
2209         FFI_MIPS_O32 for O32 ABI.
2210
2211 2003-10-01  Andreas Tobler  <a.tobler@schweiz.ch>
2212
2213         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
2214         SPARC64. Cleanup whitespaces.
2215
2216 2003-09-19  Andreas Tobler  <a.tobler@schweiz.ch>
2217
2218         * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
2219         strongarm, xscale. Cleanup whitespaces.
2220         * testsuite/libffi.call/closure_fn1.c: Likewise.
2221         * testsuite/libffi.call/closure_fn2.c: Likewise.
2222         * testsuite/libffi.call/closure_fn3.c: Likewise.
2223         * testsuite/libffi.call/cls_12byte.c: Likewise.
2224         * testsuite/libffi.call/cls_16byte.c: Likewise.
2225         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2226         * testsuite/libffi.call/cls_20byte.c: Likewise.
2227         * testsuite/libffi.call/cls_24byte.c: Likewise.
2228         * testsuite/libffi.call/cls_2byte.c: Likewise.
2229         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2230         * testsuite/libffi.call/cls_3byte1.c: Likewise.
2231         * testsuite/libffi.call/cls_3byte2.c: Likewise.
2232         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2233         * testsuite/libffi.call/cls_4byte.c: Likewise.
2234         * testsuite/libffi.call/cls_5byte.c: Likewise.
2235         * testsuite/libffi.call/cls_6byte.c: Likewise.
2236         * testsuite/libffi.call/cls_7byte.c: Likewise.
2237         * testsuite/libffi.call/cls_8byte.c: Likewise.
2238         * testsuite/libffi.call/cls_double.c: Likewise.
2239         * testsuite/libffi.call/cls_float.c: Likewise.
2240         * testsuite/libffi.call/cls_uchar.c: Likewise.
2241         * testsuite/libffi.call/cls_uint.c: Likewise.
2242         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2243         * testsuite/libffi.call/cls_ushort.c: Likewise.
2244         * testsuite/libffi.call/nested_struct.c: Likewise.
2245         * testsuite/libffi.call/nested_struct1.c: Likewise.
2246         * testsuite/libffi.call/problem1.c: Likewise.
2247         * testsuite/libffi.special/unwindtest.cc: Likewise.
2248         * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
2249
2250 2003-09-18  David Edelsohn  <edelsohn@gnu.org>
2251
2252         * src/powerpc/aix.S: Cleanup whitespaces.
2253         * src/powerpc/aix_closure.S: Likewise.
2254
2255 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
2256
2257         * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
2258         * src/powerpc/darwin_closure.S: Likewise.
2259         * src/powerpc/ffi_darwin.c: Likewise.
2260
2261 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
2262             David Edelsohn  <edelsohn@gnu.org>
2263
2264         * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
2265         * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
2266         parameter stack.
2267         * src/powerpc/darwin_closure.S: Likewise.
2268         * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
2269         according to the Darwin/AIX ABI.
2270         (ffi_prep_cif_machdep): Likewise.
2271         (ffi_closure_helper_DARWIN): Likewise.
2272         Remove the outgoing parameter stack logic. Simplify the evaluation
2273         of the different CASE types.
2274         (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
2275         statement in the trampoline code.
2276
2277 2003-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2278
2279         * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
2280         for the register size.
2281         (ffi_closure_helper_SYSV): Handle the structure return value
2282         address correctly.
2283         (ffi_closure_helper_SYSV): Return the appropriate type when
2284         the registers are used for the structure return value.
2285         * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
2286         the 64-bit return value.  Update copyright years.
2287
2288 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2289
2290         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
2291         srcdir for ffi_mips.h.
2292
2293 2003-09-12  Alan Modra  <amodra@bigpond.net.au>
2294
2295         * src/prep_cif.c (initialize_aggregate): Include tail padding in
2296         structure size.
2297         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
2298         placement of float result.
2299         * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
2300         cast of "resp" for big-endian 64 bit machines.
2301
2302 2003-09-11  Alan Modra  <amodra@bigpond.net.au>
2303
2304         * src/types.c (double, longdouble): Merge identical SH and ARM
2305         typedefs, and add POWERPC64.
2306         * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
2307         struct split over gpr and rest.
2308         (ffi_prep_cif_machdep): Correct intarg_count for structures.
2309         * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
2310
2311 2003-09-09  Andreas Tobler  <a.tobler@schweiz.ch>
2312
2313         * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
2314         passing correctly.
2315
2316 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2317
2318         * configure: Regenerate.
2319
2320 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
2321
2322         * Makefile.am: Remove build rules for ffitest.
2323         * Makefile.in: Rebuilt.
2324
2325 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
2326
2327         * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
2328         about implicit declaration of abort().
2329
2330 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
2331
2332         * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
2333         * Makefile.in: Rebuilt.
2334         * configure.in: Add dejagnu test framework.
2335         * configure: Rebuilt.
2336
2337         * testsuite/Makefile.am: New file.
2338         * testsuite/Makefile.in: Built
2339         * testsuite/lib/libffi-dg.exp: New file.
2340         * testsuite/config/default.exp: Likewise.
2341         * testsuite/libffi.call/call.exp: Likewise.
2342         * testsuite/libffi.call/ffitest.h: Likewise.
2343         * testsuite/libffi.call/closure_fn0.c: Likewise.
2344         * testsuite/libffi.call/closure_fn1.c: Likewise.
2345         * testsuite/libffi.call/closure_fn2.c: Likewise.
2346         * testsuite/libffi.call/closure_fn3.c: Likewise.
2347         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2348         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2349         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2350         * testsuite/libffi.call/cls_2byte.c: Likewise.
2351         * testsuite/libffi.call/cls_3byte1.c: Likewise.
2352         * testsuite/libffi.call/cls_3byte2.c: Likewise.
2353         * testsuite/libffi.call/cls_4byte.c: Likewise.
2354         * testsuite/libffi.call/cls_5byte.c: Likewise.
2355         * testsuite/libffi.call/cls_6byte.c: Likewise.
2356         * testsuite/libffi.call/cls_7byte.c: Likewise.
2357         * testsuite/libffi.call/cls_8byte.c: Likewise.
2358         * testsuite/libffi.call/cls_12byte.c: Likewise.
2359         * testsuite/libffi.call/cls_16byte.c: Likewise.
2360         * testsuite/libffi.call/cls_20byte.c: Likewise.
2361         * testsuite/libffi.call/cls_24byte.c: Likewise.
2362         * testsuite/libffi.call/cls_double.c: Likewise.
2363         * testsuite/libffi.call/cls_float.c: Likewise.
2364         * testsuite/libffi.call/cls_uchar.c: Likewise.
2365         * testsuite/libffi.call/cls_uint.c: Likewise.
2366         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2367         * testsuite/libffi.call/cls_ushort.c: Likewise.
2368         * testsuite/libffi.call/float.c: Likewise.
2369         * testsuite/libffi.call/float1.c: Likewise.
2370         * testsuite/libffi.call/float2.c: Likewise.
2371         * testsuite/libffi.call/many.c: Likewise.
2372         * testsuite/libffi.call/many_win32.c: Likewise.
2373         * testsuite/libffi.call/nested_struct.c: Likewise.
2374         * testsuite/libffi.call/nested_struct1.c: Likewise.
2375         * testsuite/libffi.call/pyobjc-tc.c: Likewise.
2376         * testsuite/libffi.call/problem1.c: Likewise.
2377         * testsuite/libffi.call/promotion.c: Likewise.
2378         * testsuite/libffi.call/return_ll.c: Likewise.
2379         * testsuite/libffi.call/return_sc.c: Likewise.
2380         * testsuite/libffi.call/return_uc.c: Likewise.
2381         * testsuite/libffi.call/strlen.c: Likewise.
2382         * testsuite/libffi.call/strlen_win32.c: Likewise.
2383         * testsuite/libffi.call/struct1.c: Likewise.
2384         * testsuite/libffi.call/struct2.c: Likewise.
2385         * testsuite/libffi.call/struct3.c: Likewise.
2386         * testsuite/libffi.call/struct4.c: Likewise.
2387         * testsuite/libffi.call/struct5.c: Likewise.
2388         * testsuite/libffi.call/struct6.c: Likewise.
2389         * testsuite/libffi.call/struct7.c: Likewise.
2390         * testsuite/libffi.call/struct8.c: Likewise.
2391         * testsuite/libffi.call/struct9.c: Likewise.
2392         * testsuite/libffi.special/special.exp: New file.
2393         * testsuite/libffi.special/ffitestcxx.h: Likewise.
2394         * testsuite/libffi.special/unwindtest.cc: Likewise.
2395
2396
2397 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2398
2399         * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case.  Update
2400         copyright years.
2401
2402 2003-08-02  Alan Modra  <amodra@bigpond.net.au>
2403
2404         * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
2405         structure passing.
2406         (ffi_closure_helper_LINUX64): Likewise.
2407         * src/powerpc/linux64.S: Remove code writing to parm save area.
2408         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
2409         address in lr from ffi_closure_helper_LINUX64 call to calculate
2410         table address.  Optimize function tail.
2411
2412 2003-07-28  Andreas Tobler  <a.tobler@schweiz.ch>
2413
2414         * src/sparc/ffi.c: Handle all floating point registers.
2415         * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
2416
2417 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2418
2419         * README: Note that libffi is not part of GCC.  Update the project
2420         URL and status.
2421
2422 2003-06-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2423
2424         * src/powerpc/ppc_closure.S: Include ffi.h.
2425
2426 2003-06-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2427
2428         * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
2429         Use C style comments.
2430
2431 2003-06-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2432
2433         * Makefile.am: Add SHmedia support.  Fix a typo of SH support.
2434         * Makefile.in: Regenerate.
2435         * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
2436         * configure: Regenerate.
2437         * include/ffi.h.in: Add SHmedia support.
2438         * src/sh64/ffi.c: New file.
2439         * src/sh64/sysv.S: New file.
2440
2441 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
2442
2443         * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
2444         should be read-only.
2445         * configure: Rebuilt.
2446         * fficonfig.h.in: Rebuilt.
2447         * include/ffi.h.in (EH_FRAME_FLAGS): Define.
2448         * src/alpha/osf.S: Use EH_FRAME_FLAGS.
2449         * src/powerpc/linux64.S: Likewise.
2450         * src/powerpc/linux64_closure.S: Likewise.  Include ffi.h.
2451         * src/powerpc/sysv.S: Use EH_FRAME_FLAGS.  Use pcrel encoding
2452         if -fpic/-fPIC/-mrelocatable.
2453         * src/powerpc/powerpc_closure.S: Likewise.
2454         * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
2455         #write in .eh_frame flags.
2456         * src/sparc/v9.S: Likewise.
2457         * src/x86/unix64.S: Use EH_FRAME_FLAGS.
2458         * src/x86/sysv.S: Likewise.  Use pcrel encoding if -fpic/-fPIC.
2459         * src/s390/sysv.S: Use EH_FRAME_FLAGS.  Include ffi.h.
2460
2461 2003-05-07  Jeff Sturm  <jsturm@one-point.com>
2462
2463         Fixes PR bootstrap/10656
2464         * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
2465         support for .register pseudo-op.
2466         * src/sparc/v8.S: Use it.
2467         * fficonfig.h.in: Rebuilt.
2468         * configure: Rebuilt.
2469
2470 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
2471
2472         * include/ffi.h.in (POWERPC64): Define if 64-bit.
2473         (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
2474         Make it the default on POWERPC64.
2475         (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
2476         * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
2477         * configure: Rebuilt.
2478         * src/powerpc/ffi.c (hidden): Define.
2479         (ffi_prep_args_SYSV): Renamed from
2480         ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
2481         (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
2482         ASM_NEEDS_REGISTERS64): New.
2483         (ffi_prep_args64): New function.
2484         (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
2485         (ffi_call): Likewise.
2486         (ffi_prep_closure): Likewise.
2487         (flush_icache): Surround by #ifndef POWERPC64.
2488         (ffi_dblfl): New union type.
2489         (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
2490         (ffi_closure_helper_LINUX64): New function.
2491         * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
2492         __powerpc64__.
2493         * src/powerpc/sysv.S: Likewise.
2494         (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
2495         * src/powerpc/linux64.S: New file.
2496         * src/powerpc/linux64_closure.S: New file.
2497         * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
2498         src/powerpc/linux64_closure.S.
2499         (TARGET_SRC_POWERPC): Likewise.
2500
2501         * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
2502         closure_test_fn3): Fix result printing on big-endian 64-bit
2503         machines.
2504         (main): Print tst2_arg instead of uninitialized tst2_result.
2505
2506         * src/ffitest.c (main): Hide what closure pointer really points to
2507         from the compiler.
2508
2509 2003-04-16  Richard Earnshaw  <rearnsha@arm.com>
2510
2511         * configure.in (arm-*-netbsdelf*): Add configuration.
2512         (configure): Regenerated.
2513
2514 2003-04-04  Loren J. Rittle  <ljrittle@acm.org>
2515
2516         * include/Makefile.in: Regenerate.
2517
2518 2003-03-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2519
2520         * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
2521         bit mode.
2522         * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
2523         Receive closure pointer through parameter, read args using
2524         __builtin_dwarf_cfa.
2525         (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
2526
2527 2003-03-12  Andreas Schwab  <schwab@suse.de>
2528
2529         * configure.in: Avoid trailing /. in toolexeclibdir.
2530         * configure: Rebuilt.
2531
2532 2003-03-03  Andreas Tobler <a.tobler@schweiz.ch>
2533
2534         * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
2535
2536 2003-02-06  Andreas Tobler <a.tobler@schweiz.ch>
2537
2538         * libffi/src/powerpc/darwin_closure.S:
2539         Fix alignement bug, allocate 8 bytes for the result.
2540         * libffi/src/powerpc/aix_closure.S:
2541         Likewise.
2542         * libffi/src/powerpc/ffi_darwin.c:
2543         Update stackframe description for aix/darwin_closure.S.
2544
2545 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
2546
2547         * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
2548         attribute.
2549
2550 2003-01-31  Christian Cornelssen  <ccorn@cs.tu-berlin.de>,
2551             Andreas Schwab  <schwab@suse.de>
2552
2553         * configure.in: Adjust command to source config-ml.in to account
2554         for changes to the libffi_basedir definition.
2555         (libffi_basedir): Remove ${srcdir} from value and include trailing
2556         slash if nonempty.
2557
2558         * configure: Regenerate.
2559
2560 2003-01-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2561
2562         * src/powerpc/ppc_closure.S: Recode to fit shared libs.
2563
2564 2003-01-28  Andrew Haley  <aph@redhat.com>
2565
2566         * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
2567         * src/x86/ffi64.c (ffi_prep_closure): New.
2568         (ffi_closure_UNIX64_inner): New.
2569         * src/x86/unix64.S (ffi_closure_UNIX64): New.
2570
2571 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2572
2573         * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
2574         Remove USE_LIBDIR conditional.
2575         * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
2576         * Makefile.in, configure: Rebuilt.
2577
2578 2003-01027  David Edelsohn  <edelsohn@gnu.org>
2579
2580         * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
2581         * Makefile.in: Regenerate.
2582
2583 2003-01-22  Andrew Haley  <aph@redhat.com>
2584
2585         * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
2586         unwind info.
2587
2588 2003-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
2589
2590         * src/powerpc/darwin.S: Add unwind info.
2591         * src/powerpc/darwin_closure.S: Likewise.
2592
2593 2003-01-14  Andrew Haley  <aph@redhat.com>
2594
2595         * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
2596         (ffi_prep_cif_machdep): Likewise.
2597         * src/x86/unix64.S: Add unwind info.
2598
2599 2003-01-14  Andreas Jaeger  <aj@suse.de>
2600
2601         * src/ffitest.c (main): Only use ffi_closures if those are
2602         supported.
2603
2604 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
2605
2606         * libffi/src/ffitest.c
2607          add closure testcases
2608
2609 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
2610
2611         * libffi/src/powerpc/ffi.c
2612          fix alignment bug for float (4 byte aligned iso 8 byte)
2613
2614 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
2615
2616         * src/powerpc/ffi_darwin.c: Remove RCS version string.
2617         * src/powerpc/darwin.S: Remove RCS version string.
2618
2619 2003-01-03  Jeff Sturm  <jsturm@one-point.com>
2620
2621         * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
2622         * src/ffitest.c (main): Use static storage for closure.
2623         * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
2624         * src/sparc/v8.S (ffi_closure_v8): New.
2625         * src/sparc/v9.S (ffi_closure_v9): New.
2626
2627 2002-11-10  Ranjit Mathew <rmathew@hotmail.com>
2628
2629         * include/ffi.h.in: Added FFI_STDCALL ffi_type
2630           enumeration for X86_WIN32.
2631         * src/x86/win32.S: Added ffi_call_STDCALL function
2632           definition.
2633         * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
2634           switch cases for recognising FFI_STDCALL and
2635           calling ffi_call_STDCALL if target is X86_WIN32.
2636         * src/ffitest.c (my_stdcall_strlen/stdcall_many):
2637           stdcall versions of the "my_strlen" and "many"
2638           test functions (for X86_WIN32).
2639           Added test cases to test stdcall invocation using
2640           these functions.
2641
2642 2002-12-02  Kaz Kojima  <kkojima@gcc.gnu.org>
2643
2644         * src/sh/sysv.S: Add DWARF2 unwind info.
2645
2646 2002-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
2647
2648         * src/s390/sysv.S (.eh_frame section): Make section read-only.
2649
2650 2002-11-26  Jim Wilson  <wilson@redhat.com>
2651
2652         * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
2653
2654 2002-11-23  H.J. Lu <hjl@gnu.org>
2655
2656         * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
2657         Include ../config/accross.m4.
2658         * aclocal.m4; Rebuild.
2659         * configure: Likewise.
2660
2661 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
2662
2663         * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
2664
2665 2002-11-11  DJ Delorie  <dj@redhat.com>
2666
2667         * configure.in: Look for common files in the right place.
2668
2669 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
2670
2671         * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
2672         raw data as _Jv_word values, not ffi_raw.
2673         (ffi_java_ptrarray_to_raw): Likewise.
2674         (ffi_java_rvalue_to_raw): New function.
2675         (ffi_java_raw_call): Call it.
2676         (ffi_java_raw_to_rvalue): New function.
2677         (ffi_java_translate_args): Call it.
2678         * src/ffitest.c (closure_test_fn): Interpret return value
2679         as ffi_arg, not int.
2680         * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
2681         FFI_TYPE_POINTER case.
2682         (ffi_closure_helper_SYSV): Likewise.  Also, assume return
2683         values extended to word size.
2684
2685 2002-10-02  Andreas Jaeger  <aj@suse.de>
2686
2687         * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
2688
2689 2002-10-01  Bo Thorsen  <bo@smetana.suse.de>
2690
2691         * include/ffi.h.in: Fix i386 win32 compilation.
2692
2693 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
2694
2695         * configure.in: Add s390x-*-linux-* target.
2696         * configure: Regenerate.
2697         * include/ffi.h.in: Define S390X for s390x targets.
2698         (FFI_CLOSURES): Define for s390/s390x.
2699         (FFI_TRAMPOLINE_SIZE): Likewise.
2700         (FFI_NATIVE_RAW_API): Likewise.
2701         * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
2702         * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
2703         * src/s390/ffi.c: Major rework of existing code.  Add support for
2704         s390x targets.  Add closure support.
2705         * src/s390/sysv.S: Likewise.
2706
2707 2002-09-29  Richard Earnshaw  <rearnsha@arm.com>
2708
2709         * src/arm/sysv.S: Fix typo.
2710
2711 2002-09-28  Richard Earnshaw  <rearnsha@arm.com>
2712
2713         * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
2714         has defined __USER_LABEL_PREFIX__, then use it in CNAME.
2715         (ffi_call_SYSV): Handle soft-float.
2716
2717 2002-09-27  Bo Thorsen  <bo@suse.de>
2718
2719         * include/ffi.h.in: Fix multilib x86-64 support.
2720
2721 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2722
2723         * Makefile.am (all-multi): Fix multilib parallel build.
2724
2725 2002-07-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2726
2727         * configure.in (sh[34]*-*-linux*): Add brackets.
2728         * configure: Regenerate.
2729
2730 2002-07-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2731
2732         * Makefile.am: Add SH support.
2733         * Makefile.in: Regenerate.
2734         * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
2735         * configure: Regenerate.
2736         * include/ffi.h.in: Add SH support.
2737         * src/sh/ffi.c: New file.
2738         * src/sh/sysv.S: New file.
2739         * src/types.c: Add SH support.
2740
2741 2002-07-16  Bo Thorsen  <bo@suse.de>
2742
2743         * src/x86/ffi64.c: New file that adds x86-64 support.
2744         * src/x86/unix64.S: New file that handles argument setup for
2745         x86-64.
2746         * src/x86/sysv.S: Don't use this on x86-64.
2747         * src/x86/ffi.c: Don't use this on x86-64.
2748         Remove unused vars.
2749         * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
2750         for x86-64.
2751         * src/ffitest.c (struct6): New test that tests a special case in
2752         the x86-64 ABI.
2753         (struct7): Likewise.
2754         (struct8): Likewise.
2755         (struct9): Likewise.
2756         (closure_test_fn): Silence warning about this when it's not used.
2757         (main): Add the new tests.
2758         (main): Fix a couple of wrong casts and silence some compiler warnings.
2759         * include/ffi.h.in: Add x86-64 ABI definition.
2760         * fficonfig.h.in: Regenerate.
2761         * Makefile.am: Add x86-64 support.
2762         * configure.in: Likewise.
2763         * Makefile.in: Regenerate.
2764         * configure: Likewise.
2765
2766 2002-06-24  Bo Thorsen  <bo@suse.de>
2767
2768         * src/types.c: Merge settings for similar architectures.
2769         Add x86-64 sizes and alignments.
2770
2771 2002-06-23  Bo Thorsen  <bo@suse.de>
2772
2773         * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
2774         * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
2775         * src/mips/ffi.c (ffi_prep_args): Likewise.
2776         * src/m68k/ffi.c (ffi_prep_args): Likewise.
2777
2778 2002-07-18  H.J. Lu  (hjl@gnu.org)
2779
2780         * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
2781         (libffi_la_SOURCES): Support MIPS_LINUX.
2782         (libffi_convenience_la_SOURCES): Likewise.
2783         * Makefile.in: Regenerated.
2784
2785         * configure.in (mips64*-*): Skip.
2786         (mips*-*-linux*): New.
2787         * configure: Regenerated.
2788
2789         * src/mips/ffi.c: Include <sgidefs.h>.
2790
2791 2002-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
2792
2793         * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
2794
2795 2002-05-27  Roger Sayle  <roger@eyesopen.com>
2796
2797         * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
2798
2799 2002-05-27  Bo Thorsen  <bo@suse.de>
2800
2801         * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
2802         fix formatting.
2803
2804 2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>
2805
2806         * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
2807         beginning of function (for older apple cc).
2808
2809 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
2810
2811         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2812         script entry, and set LD to it when configuring multilibs.
2813         * configure: Rebuilt.
2814
2815 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
2816
2817         * configure.in (sparc64-*-netbsd*): Add target.
2818         (sparc-*-netbsdelf*): Likewise.
2819         * configure: Regenerate.
2820
2821 2002-04-28  David S. Miller  <davem@redhat.com>
2822
2823         * configure.in, configure: Fix SPARC test in previous change.
2824
2825 2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>
2826
2827         * Makefile.am: Add Linux for S/390 support.
2828         * Makefile.in: Regenerate.
2829         * configure.in: Add Linux for S/390 support.
2830         * configure: Regenerate.
2831         * include/ffi.h.in: Add Linux for S/390 support.
2832         * src/s390/ffi.c: New file from libffi CVS tree.
2833         * src/s390/sysv.S: New file from libffi CVS tree.
2834
2835 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2836
2837         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
2838         %r_disp32().
2839         * src/sparc/v8.S: Use it.
2840         * src/sparc/v9.S: Likewise.
2841         * fficonfig.h.in: Rebuilt.
2842         * configure: Rebuilt.
2843
2844 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
2845
2846         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
2847         correctly.
2848         * src/ia64/unix.S: Add unwind information. Fix comments.
2849         Save sp in a way that's compatible with unwind info.
2850         (ffi_call_unix): Correctly restore sp in all cases.
2851         * src/ia64/ffi.c: Add, fix comments.
2852
2853 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
2854
2855         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
2856
2857 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2858
2859         * configure.in (alpha*-*-netbsd*): Add target.
2860         * configure: Regenerate.
2861
2862 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
2863
2864         * src/sparc/v8.S: Add unwind info.
2865         * src/sparc/v9.S: Likewise.
2866
2867 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
2868
2869         * configure.in: Enable i*86-*-netbsdelf*.
2870         * configure: Rebuilt.
2871
2872 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
2873
2874         PR other/2620
2875         * src/mips/n32.s: Delete
2876         * src/mips/o32.s: Delete
2877
2878 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
2879
2880         * configure.in: Enable alpha*-*-freebsd*.
2881         * configure: Rebuilt.
2882
2883 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2884
2885         * Makefile.am: libfficonvenience -> libffi_convenience.
2886         * Makefile.in: Rebuilt.
2887
2888         * Makefile.am: Define ffitest_OBJECTS.
2889         * Makefile.in: Rebuilt.
2890
2891 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
2892             David Edelsohn  <edelsohn@gnu.org>
2893
2894         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
2895         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
2896         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
2897         * Makefile.in: Regenerate.
2898         * include/ffi.h.in: Add AIX and Darwin closure definitions.
2899         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
2900         (flush_icache, flush_range): New functions.
2901         (ffi_closure_helper_DARWIN): New function.
2902         * src/powerpc/aix_closure.S: New file.
2903         * src/powerpc/darwin_closure.S: New file.
2904
2905 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
2906
2907         * include/ffi.h.in: Add typedef for ffi_arg.
2908         * src/ffitest.c (main): Declare rint with ffi_arg.
2909
2910 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
2911
2912         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
2913         number of GPRs for floating-point arguments.
2914
2915 2002-01-31  Anthony Green  <green@redhat.com>
2916
2917         * configure: Rebuilt.
2918         * configure.in: Replace CHECK_SIZEOF and endian tests with
2919         cross-compiler friendly macros.
2920         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
2921         macros.
2922
2923 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
2924
2925         * src/powerpc/darwin.S (_ffi_call_AIX): New.
2926         * src/powerpc/aix.S (ffi_call_DARWIN): New.
2927
2928 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
2929
2930         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
2931         (TARGET_SRC_POWERPC_AIX): New.
2932         (POWERPC_AIX): New stanza.
2933         * Makefile.in: Regenerate.
2934         * configure.in: Add AIX case.
2935         * configure: Regenerate.
2936         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
2937         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
2938         size.  Fix "long double" support.
2939         (ffi_call): Add FFI_AIX case.
2940         * src/powerpc/aix.S: New.
2941
2942 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
2943
2944         Implement Darwin PowerPC ABI.
2945         * configure.in: Handle powerpc-*-darwin*.
2946         * Makefile.am: Set source files for POWERPC_DARWIN.
2947         * configure: Rebuilt.
2948         * Makefile.in: Rebuilt.
2949         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
2950         POWERPC_DARWIN.
2951         * src/powerpc/darwin.S: New file.
2952         * src/powerpc/ffi_darwin.c: New file.
2953
2954 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2955
2956         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
2957
2958 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2959
2960         * src/x86/sysv.S: Avoid gas-only .balign directive.
2961         Use C style comments.
2962
2963 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2964
2965         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
2966         Fixes PR bootstrap/3563.
2967
2968 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2969
2970         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
2971
2972 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2973
2974         * configure.in: Recognize sparc*-sun-* host.
2975         * configure: Regenerate.
2976
2977 2001-06-06  Andrew Haley  <aph@redhat.com>
2978
2979         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
2980
2981 2001-06-03  Andrew Haley  <aph@redhat.com>
2982
2983         * src/alpha/osf.S: Add unwind info.
2984         * src/powerpc/sysv.S: Add unwind info.
2985         * src/powerpc/ppc_closure.S: Likewise.
2986
2987 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
2988
2989         * configure.in: Fix AC_ARG_ENABLE usage.
2990         * configure: Rebuilt.
2991
2992 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2993
2994         * configure.in: Remove warning about beta code.
2995         * configure: Rebuilt.
2996
2997 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
2998
2999         * src/ia64/unix.S: Restore stack pointer when returning from
3000         ffi_closure_UNIX.
3001         * src/ia64/ffi.c: Fix typo in comment.
3002
3003 2001-04-18  Jim Wilson  <wilson@redhat.com>
3004
3005         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3006         to eliminate RAW DV.
3007
3008 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
3009
3010         * Makefile.am: Make a libtool convenience library.
3011         * Makefile.in: Rebuilt.
3012
3013 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
3014
3015         * configure.in: Use different syntax for subdirectory creation.
3016         * configure: Rebuilt.
3017
3018 2001-03-27  Jon Beniston  <jon@beniston.com>
3019
3020         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3021         * configure: Rebuilt.
3022         * Makefile.am: Added X86_WIN32 target support.
3023         * Makefile.in: Rebuilt.
3024
3025         * include/ffi.h.in: Added X86_WIN32 target support.
3026
3027         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3028         * src/types.c: Added X86_WIN32 target support.
3029
3030         * src/x86/win32.S: New file. Based on sysv.S, but with EH
3031         stuff removed and made to work with CygWin's gas.
3032
3033 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
3034
3035         * configure.in: Make target subdirectory in build dir.
3036         * Makefile.am: Override suffix based rules to specify correct output
3037         subdirectory.
3038         * Makefile.in: Rebuilt.
3039         * configure: Rebuilt.
3040
3041 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
3042
3043         * src/powerpc/ppc_closure.S: New file.
3044         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3045         involving long long and register pairs.
3046         (ffi_prep_closure): New function.
3047         (flush_icache): Likewise.
3048         (ffi_closure_helper_SYSV): Likewise.
3049         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3050         (FFI_TRAMPOLINE_SIZE): Likewise.
3051         (FFI_NATIVE_RAW_API): Likewise.
3052         * Makefile.in: Rebuilt.
3053         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3054         (TARGET_SRC_POWERPC): Likewise.
3055
3056 2001-03-19  Tom Tromey  <tromey@redhat.com>
3057
3058         * Makefile.in: Rebuilt.
3059         * Makefile.am (ffitest_LDFLAGS): New macro.
3060
3061 2001-03-02  Nick Clifton  <nickc@redhat.com>
3062
3063         * include/ffi.h.in: Remove RCS ident string.
3064         * include/ffi_mips.h: Remove RCS ident string.
3065         * src/debug.c: Remove RCS ident string.
3066         * src/ffitest.c: Remove RCS ident string.
3067         * src/prep_cif.c: Remove RCS ident string.
3068         * src/types.c: Remove RCS ident string.
3069         * src/alpha/ffi.c: Remove RCS ident string.
3070         * src/alpha/osf.S: Remove RCS ident string.
3071         * src/arm/ffi.c: Remove RCS ident string.
3072         * src/arm/sysv.S: Remove RCS ident string.
3073         * src/mips/ffi.c: Remove RCS ident string.
3074         * src/mips/n32.S: Remove RCS ident string.
3075         * src/mips/o32.S: Remove RCS ident string.
3076         * src/sparc/ffi.c: Remove RCS ident string.
3077         * src/sparc/v8.S: Remove RCS ident string.
3078         * src/sparc/v9.S: Remove RCS ident string.
3079         * src/x86/ffi.c: Remove RCS ident string.
3080         * src/x86/sysv.S: Remove RCS ident string.
3081
3082 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3083
3084         * include/ffi.h.in: Change sourceware.cygnus.com references to
3085         gcc.gnu.org.
3086
3087 2000-12-09  Richard Henderson  <rth@redhat.com>
3088
3089         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
3090         (ffi_closure_osf_inner): Index rather than increment avalue
3091         and arg_types.  Give ffi_closure_osf the raw return value type.
3092         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
3093         promotion.
3094
3095 2000-12-07  Richard Henderson  <rth@redhat.com>
3096
3097         * src/raw_api.c (ffi_translate_args): Fix typo.
3098         (ffi_prep_closure): Likewise.
3099
3100         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
3101         FFI_TRAMPOLINE_SIZE.
3102         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
3103         cif->bytes for new ffi_call_osf implementation.
3104         (ffi_prep_args): Absorb into ...
3105         (ffi_call): ... here.  Do all stack allocation here and
3106         avoid a callback function.
3107         (ffi_prep_closure, ffi_closure_osf_inner): New.
3108         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
3109         (ffi_closure_osf): New.
3110
3111 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
3112
3113         * config.guess, config.sub, install-sh: Removed.
3114         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
3115         * Makefile.in: Rebuilt.
3116
3117         * acinclude.m4: Include libtool macros from the top level.
3118         * aclocal.m4, configure: Rebuilt.
3119
3120 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
3121
3122         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
3123         * configure: Rebuilt.
3124
3125 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
3126
3127         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
3128         memory correctly.  Use conditional instructions, not branches where
3129         possible.
3130
3131 2000-05-04  Tom Tromey  <tromey@cygnus.com>
3132
3133         * configure: Rebuilt.
3134         * configure.in: Match `arm*-*-linux-*'.
3135         From Chris Dornan <cdornan@arm.com>.
3136
3137 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
3138
3139         * Makefile.am (SUBDIRS): Define.
3140         (AM_MAKEFLAGS): Likewise.
3141         (Multilib support.): Add section.
3142         * Makefile.in: Rebuilt.
3143         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
3144         New variables. Set for gcc using -print-multi-lib. Export them
3145         to libtool.
3146         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
3147         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
3148         for -shared links.
3149         (extra_compiler_flags_value, extra_compiler_flags): Check these
3150         for extra compiler options which need to be passed down in
3151         compiler_flags.
3152
3153 2000-04-16  Anthony Green  <green@redhat.com>
3154
3155         * configure: Rebuilt.
3156         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
3157
3158 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
3159
3160         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3161         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
3162         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
3163         Replace all void * sizeofs with sizeof(int).
3164         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
3165         different than DOUBLE.
3166         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
3167         (ffi_prep_args_v9): New function.
3168         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
3169         (ffi_V9_return_struct): New function.
3170         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
3171         32bit code (not yet cross-arch calls).
3172         * src/sparc/v8.S: Add struct return delay nop.
3173         Handle long long.
3174         * src/sparc/v9.S: New file.
3175         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
3176         is used on sparc64 only for structures larger than 32 bytes.
3177         Pass by reference for structures is done for structure arguments
3178         larger than 16 bytes.
3179         * src/ffitest.c (main): Use 64bit rint on sparc64.
3180         Run long long tests on sparc.
3181         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
3182         sparc64.
3183         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
3184         on sparc64.
3185         * configure.in (sparc-*-linux*): New supported target.
3186         (sparc64-*-linux*): Likewise.
3187         * configure: Rebuilt.
3188         * Makefile.am: Add v9.S to SPARC files.
3189         * Makefile.in: Likewise.
3190         (LINK): Surround $(CCLD) into double quotes, so that multilib
3191         compiles work correctly.
3192
3193 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3194
3195         * configure: Rebuilt.
3196         * configure.in: (i*86-*-solaris*): New libffi target. Patch
3197         proposed by Bryce McKinlay.
3198
3199 2000-03-20  Tom Tromey  <tromey@cygnus.com>
3200
3201         * Makefile.in: Hand edit for java_raw_api.lo.
3202
3203 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
3204
3205         * config.guess, config.sub: Update from the gcc tree.
3206         Fix for PR libgcj/168.
3207
3208 2000-03-03  Tom Tromey  <tromey@cygnus.com>
3209
3210         * Makefile.in: Fixed ia64 by hand.
3211
3212         * configure: Rebuilt.
3213         * configure.in (--enable-multilib): New option.
3214         (libffi_basedir): New subst.
3215         (AC_OUTPUT): Added multilib code.
3216
3217 2000-03-02  Tom Tromey  <tromey@cygnus.com>
3218
3219         * Makefile.in: Rebuilt.
3220         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
3221         directory name.
3222
3223 2000-02-25  Hans Boehm <boehm@acm.org>
3224
3225         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
3226         files.
3227         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
3228         list.
3229         (ffi_prep_raw_closure): Use ffi_translate_args, not
3230         ffi_closure_translate.
3231         * src/java_raw_api.c: New file.
3232         * src/ffitest.c (closure_test_fn): New function.
3233         (main): Define `rint' as long long on IA64.  Added new test when
3234         FFI_CLOSURES is defined.
3235         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
3236         (ffi_abi): Recognize IA64.
3237         (ffi_raw): Added `flt' field.
3238         Added "Java raw API" code.
3239         * configure.in: Recognize ia64.
3240         * Makefile.am (TARGET_SRC_IA64): New macro.
3241         (libffi_la_common_SOURCES): Added java_raw_api.c.
3242         (libffi_la_SOURCES): Define in IA64 case.
3243
3244 2000-01-04  Tom Tromey  <tromey@cygnus.com>
3245
3246         * Makefile.in: Rebuilt with newer automake.
3247
3248 1999-12-31  Tom Tromey  <tromey@cygnus.com>
3249
3250         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
3251
3252 1999-09-01  Tom Tromey  <tromey@cygnus.com>
3253
3254         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
3255         undefs.
3256         * fficonfig.h.in: Rebuilt.
3257         * configure: Rebuilt.
3258         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
3259         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
3260         * acconfig.h: Don't #undef PACKAGE or VERSION.
3261
3262 1999-08-09  Anthony Green  <green@cygnus.com>
3263
3264         * include/ffi.h.in: Try to work around messy header problem
3265         with PACKAGE and VERSION.
3266
3267         * configure: Rebuilt.
3268         * configure.in: Change version to 2.00-beta.
3269
3270         * fficonfig.h.in: Rebuilt.
3271         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
3272
3273         * src/x86/ffi.c (ffi_raw_call): Rename.
3274
3275 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
3276
3277         * src/x86/ffi.c (ffi_closure_SYSV): New function.
3278         (ffi_prep_incoming_args_SYSV): Ditto.
3279         (ffi_prep_closure): Ditto.
3280         (ffi_closure_raw_SYSV): Ditto.
3281         (ffi_prep_raw_closure): More ditto.
3282         (ffi_call_raw): Final ditto.
3283
3284         * include/ffi.h.in: Add definitions for closure and raw API.
3285
3286         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
3287         FFI_TYPE_UINT64.
3288
3289         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
3290
3291         * src/raw_api.c: New file.
3292
3293         * include/ffi.h.in (ffi_raw): New type.
3294         (UINT_ARG, SINT_ARG): New defines.
3295         (ffi_closure, ffi_raw_closure): New types.
3296         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
3297
3298         * configure.in: Add check for endianness and sizeof void*.
3299
3300         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
3301         instead of directly.
3302
3303         * configure: Rebuilt.
3304
3305 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
3306
3307         * configure.in: Add x86 and powerpc BeOS configurations.
3308         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
3309
3310 1999-05-09  Anthony Green  <green@cygnus.com>
3311
3312         * configure.in: Add warning about this being beta code.
3313         Remove src/Makefile.am from the picture.
3314         * configure: Rebuilt.
3315
3316         * Makefile.am: Move logic from src/Makefile.am.  Add changes
3317         to support libffi as a target library.
3318         * Makefile.in: Rebuilt.
3319
3320         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
3321         Upgraded to new autoconf, automake, libtool.
3322
3323         * README: Tweaks.
3324
3325         * LICENSE: Update copyright date.
3326
3327         * src/Makefile.am, src/Makefile.in: Removed.
3328
3329 1998-11-29  Anthony Green  <green@cygnus.com>
3330
3331         * include/ChangeLog: Removed.
3332         * src/ChangeLog: Removed.
3333         * src/mips/ChangeLog: Removed.
3334         * src/sparc/ChangeLog: Remboved.
3335         * src/x86/ChangeLog: Removed.
3336
3337         * ChangeLog.v1: Created.