OSDN Git Service

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