OSDN Git Service

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