Align the stack pointer to 16-bytes.
[libffi.git] / ChangeLog
1 2013-11-06  Mark Kettenis  <kettenis@gnu.org>
2
3         * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
4         16-bytes.
5
6 2013-11-06  Konstantin Belousov <kib@freebsd.org>
7
8         * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
9         source as not requiring executable stack.
10
11 2013-11-02  Anthony Green  <green@moxielogic.com>
12
13         * doc/libffi.texi (The Basics): Clarify return value buffer size
14         requirements.  Also, NULL result buffer pointers are no longer
15         supported.
16         * doc/libffi.info: Rebuilt.
17
18 2013-11-02  Mischa Jonker  <mjonker@synopsys.com>
19
20         * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
21         * Makefile.in: Rebuilt.
22
23 2013-11-02  David Schneider  <david.schneider@bivab.de>
24
25         * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
26         * testsuite/libffi.call/many_mixed.c: New file.
27         * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
28
29 2013-11-02  Vitaly Budovski
30
31         * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
32
33 2013-10-23  Mark H Weaver  <mhw@netris.org>
34
35         * src/mips/ffi.c: Fix handling of uint32_t arguments on the
36         MIPS N32 ABI.
37
38 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
39
40         * README: Add Nios II to table of supported platforms.
41         * Makefile.am (EXTRA_DIST): Add nios2 files.
42         (nodist_libffi_la_SOURCES): Likewise.
43         * Makefile.in: Regenerated.
44         * configure.ac (nios2*-linux*): New host.
45         (NIOS2): Add AM_CONDITIONAL.
46         * configure: Regenerated.
47         * src/nios2/ffi.c: New.
48         * src/nios2/ffitarget.h: New.
49         * src/nios2/sysv.S: New.
50         * src/prep_cif.c (initialize_aggregate): Handle extra structure
51         alignment via FFI_AGGREGATE_ALIGNMENT.
52         (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
53
54 2013-10-10  Sandra Loosemore  <sandra@codesourcery.com>
55
56         * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
57         Fix uninitialized variable.
58
59 2013-10-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
60
61         * testsuite/libffi.call/many.c (many): Replace * with +.
62
63 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
64
65         * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
66         src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
67         src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
68         src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
69         src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
70         src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
71         spelling errors.
72
73 2013-10-08  Anthony Green  <green@moxielogic.com>
74
75         * aclocal.m4, compile, config.guess, config.sub, depcomp,
76         install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
77         * configure.ac: Update version to 3.0.14-rc0.
78         * Makefile.in, configure, Makefile.in, include/Makefile.in,
79         man/Makefile.in, testsuite/Makefile.in: Rebuilt.
80         * README: Mention M88K and VAX.
81
82 2013-07-15  Miod Vallat  <miod@openbsd.org>
83
84         * Makefile.am,
85         configure.ac,
86         src/m88k/ffi.c,
87         src/m88k/ffitarget.h,
88         src/m88k/obsd.S,
89         src/vax/elfbsd.S,
90         src/vax/ffi.c,
91         src/vax/ffitarget.h: Add m88k and vax support.
92
93 2013-06-24 Alan Modra  <amodra@gmail.com>
94
95         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
96         before statements.
97         (ffi_prep_args64): Support little-endian.
98         (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
99         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
100         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
101
102 2013-06-12  Mischa Jonker  <mjonker@synopsys.com>
103
104          * configure.ac: Add support for ARC.
105          * Makefile.am: Likewise.
106          * README: Add ARC details.
107          * src/arc/arcompact.S: New.
108          * src/arc/ffi.c: Likewise.
109          * src/arc/ffitarget.h: Likewise.
110
111 2013-03-28  David Schneider  <david.schneider@bivab.de>
112
113          * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
114          * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
115          * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
116          mixed arguments, many doubles.
117          * testsuite/libffi.call/many_double.c: testcase for calling a function using
118          more than 8 doubles.
119          * testcase/libffi.call/many.c: use absolute value to check result against an
120          epsilon
121
122 2013-03-17  Anthony Green  <green@moxielogic.com>
123
124         * README: Update for 3.0.13.
125         * configure.ac: Ditto.
126         * configure: Rebuilt.
127         * doc/*: Update version.
128
129 2013-03-17  Dave Korn  <dave.korn.cygwin@gmail.com>
130
131         * src/closures.c (is_emutramp_enabled
132         [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
133         enclosing #if scope.
134
135 2013-03-17  Anthony Green  <green@moxielogic.com>
136
137         * configure.ac: Only modify toolexecdir in certain cases.
138         * configure: Rebuilt.
139
140 2013-03-16  Gilles Talis  <gilles.talis@gmail.com>
141
142         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
143         fparg_count,etc on __NO_FPRS__ targets.
144
145 2013-03-16  Alan Hourihane  <alanh@fairlite.co.uk>
146
147         * src/m68k/sysv.S (epilogue): Don't use extb instruction on
148         m680000 machines.
149
150 2013-03-16  Alex Gaynor <alex.gaynor@gmail.com>
151
152         * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
153
154 2013-03-13  Markos Chandras <markos.chandras@imgtec.com>
155
156         * configure.ac: Add support for Imagination Technologies Meta.
157         * Makefile.am: Likewise.
158         * README: Add Imagination Technologies Meta details.
159         * src/metag/ffi.c: New.
160         * src/metag/ffitarget.h: Likewise.
161         * src/metag/sysv.S: Likewise.
162
163 2013-02-24  Andreas Schwab  <schwab@linux-m68k.org>
164
165         * doc/libffi.texi (Structures): Fix missing category argument of
166         @deftp.
167
168 2013-02-11  Anthony Green <green@moxielogic.com>
169
170         * configure.ac: Update release number to 3.0.12.
171         * configure: Rebuilt.
172         * README: Update release info.
173
174 2013-02-10  Anthony Green <green@moxielogic.com>
175
176         * README: Add Moxie.
177         * src/moxie/ffi.c: Created.
178         * src/moxie/eabi.S: Created.
179         * src/moxie/ffitarget.h: Created.
180         * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
181         * Makefile.in: Rebuilt.
182         * configure.ac: Add Moxie.
183         * configure: Rebuilt.
184         * testsuite/libffi.call/huge_struct.c: Disable format string
185         warnings for moxie*-*-elf tests.
186
187 2013-02-10  Anthony Green <green@moxielogic.com>
188
189         * Makefile.am (LTLDFLAGS): Fix reference.
190         * Makefile.in: Rebuilt.
191
192 2013-02-10  Anthony Green <green@moxielogic.com>
193
194         * README: Update supported platforms.  Update test results link.
195
196 2013-02-09  Anthony Green <green@moxielogic.com>
197
198         * testsuite/libffi.call/negint.c: Remove forced -O2.
199         * testsuite/libffi.call/many2.c (foo): Remove GCCism.
200         * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
201
202         * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
203         closure return type fix developed by Martin v. Löwis for cpython
204         fork.
205
206 2013-02-08  Andreas Tobler  <andreast@fgznet.ch>
207
208         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
209         support.
210         * src/powerpc/sysv.S: Ditto.
211
212 2013-02-08  Anthony Green <green@moxielogic.com>
213
214         * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
215         arm*-*-*.
216
217 2013-02-08  Anthony Green <green@moxielogic.com>
218
219         * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
220
221 2013-02-08  Matthias Klose  <doko@ubuntu.com>
222
223         * man/ffi_prep_cif.3: Clean up for debian linter.
224
225 2013-02-08  Peter Bergner  <bergner@vnet.ibm.com>
226
227         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
228         on the stack.
229
230 2013-02-08  Anthony Green <green@moxielogic.com>
231
232         * Makefile.am (EXTRA_DIST): Add missing files.
233         * testsuite/Makefile.am (EXTRA_DIST): Ditto.
234         * Makefile.in: Rebuilt.
235
236 2013-02-08  Anthony Green <green@moxielogic.com>
237
238         * configure.ac: Move sparc asm config checks to within functions
239         for compatibility with sun tools.
240         * configure: Rebuilt.
241         * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
242         systems.
243         * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
244         flusher.
245
246 2013-02-08  Nathan Rossi <nathan.rossi@xilinx.com>
247
248         * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
249         small big-endian structures.
250         (ffi_prep_args): Ditto.
251
252 2013-02-07  Anthony Green <green@moxielogic.com>
253
254         * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
255         (effectively hiding ffi_call_v8).
256
257 2013-02-07  Anthony Green <green@moxielogic.com>
258
259         * configure.ac: Update bug reporting address.
260         * configure.in: Rebuild.
261
262         * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
263         Sun compiler.
264         * src/sparc/ffi.c (ffi_call): Remove warning.
265         Call ffi_flush_icache for non-GCC builds.
266         (ffi_prep_closure_loc): Use ffi_flush_icache.
267
268         * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
269         * Makefile.in: Rebuilt.
270         * libtool-ldflags: New file.
271
272 2013-02-07  Daniel Schepler <dschepler@gmail.com>
273
274         * configure.ac: Correctly identify x32 systems as 64-bit.
275         * m4/libtool.m4: Remove libtool expr error.
276         * aclocal.m4, configure: Rebuilt.
277
278 2013-02-07  Anthony Green <green@moxielogic.com>
279
280         * configure.ac: Fix GCC usage test.
281         * configure: Rebuilt.
282         * README: Mention LLVM/GCC x86_64 issue.
283         * testsuite/Makefile.in: Rebuilt.
284
285 2013-02-07  Anthony Green <green@moxielogic.com>
286
287         * testsuite/libffi.call/cls_double_va.c (main): Replace // style
288         comments with /* */ for xlc compiler.
289         * testsuite/libffi.call/stret_large.c (main): Ditto.
290         * testsuite/libffi.call/stret_large2.c (main): Ditto.
291         * testsuite/libffi.call/nested_struct1.c (main): Ditto.
292         * testsuite/libffi.call/huge_struct.c (main): Ditto.
293         * testsuite/libffi.call/float_va.c (main): Ditto.
294         * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
295         * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
296         * testsuite/libffi.call/cls_pointer.c (main): Ditto.
297         * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
298
299 2013-02-06  Anthony Green <green@moxielogic.com>
300
301         * man/ffi_prep_cif.3: Clean up for debian lintian checker.
302
303 2013-02-06  Anthony Green <green@moxielogic.com>
304
305         * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
306         * Makefile.in: Rebuild.
307
308 2013-02-02  Mark H Weaver <mhw@netris.org>
309
310         * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
311         via general purpose registers.
312
313 2013-01-21  Nathan Rossi <nathan.rossi@xilinx.com>
314
315         * README: Add MicroBlaze details.
316         * Makefile.am: Add MicroBlaze support.
317         * configure.ac: Likewise.
318         * src/microblaze/ffi.c: New.
319         * src/microblaze/ffitarget.h: Likewise.
320         * src/microblaze/sysv.S: Likewise.
321
322 2013-01-21  Nathan Rossi <nathan.rossi@xilinx.com>
323         * testsuite/libffi.call/return_uc.c: Fixed issue.
324
325 2013-01-21  Chris Zankel   <chris@zankel.net>
326
327         * README: Add Xtensa support.
328         * Makefile.am: Likewise.
329         * configure.ac: Likewise.
330         * Makefile.in Regenerate.
331         * configure: Likewise.
332         * src/prep_cif.c: Handle Xtensa.
333         * src/xtensa: New directory.
334         * src/xtensa/ffi.c: New file.
335         * src/xtensa/ffitarget.h: Ditto.
336         * src/xtensa/sysv.S: Ditto.
337
338 2013-01-11  Anthony Green  <green@moxielogic.com>
339
340         * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
341         comments with /* */ for xlc compiler.
342         * src/powerpc/aix.S (ffi_call_AIX): Ditto.
343         * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
344         deprecated inline function.
345         * testsuite/libffi.special/ffitestcxx.h: Ditto.
346         * README: Add update for AIX support.
347
348 2013-01-11  Anthony Green  <green@moxielogic.com>
349
350         * configure.ac: Robustify pc relative reloc check.
351         * m4/ax_cc_maxopt.m4: Don't -malign-double.  This is an ABI
352         changing option for 32-bit x86.
353         * aclocal.m4, configure: Rebuilt.
354         * README: Update supported target list.
355
356 2013-01-10  Anthony Green  <green@moxielogic.com>
357
358         * README (tested): Add Compiler column to table.
359
360 2013-01-10  Anthony Green  <green@moxielogic.com>
361
362         * src/x86/ffi64.c (struct register_args): Make sse array and array
363         of unions for sunpro compiler compatibility.
364
365 2013-01-10  Anthony Green  <green@moxielogic.com>
366
367         * configure.ac: Test target platform size_t size.  Handle both 32
368         and 64-bit builds for x86_64-* and i?86-* targets (allowing for
369         CFLAG option to change default settings).
370         * configure, aclocal.m4: Rebuilt.
371
372 2013-01-10  Anthony Green  <green@moxielogic.com>
373
374         * testsuite/libffi.special/special.exp: Only run exception
375         handling tests when using GNU compiler.
376
377         * m4/ax_compiler_vendor.m4: New file.
378         * configure.ac: Test for compiler vendor and don't use
379         AX_CFLAGS_WARN_ALL with the sun compiler.
380         * aclocal.m4, configure: Rebuilt.
381
382 2013-01-10  Anthony Green  <green@moxielogic.com>
383
384         * include/ffi_common.h: Don't use GCCisms to define types when
385         building with the SUNPRO compiler.
386
387 2013-01-10  Anthony Green  <green@moxielogic.com>
388
389         * configure.ac: Put local.exp in the right place.
390         * configure: Rebuilt.
391
392         * src/x86/ffi.c: Update comment about regparm function attributes.
393         * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
394         that all function arguments be passed on the stack (no regparm
395         support).
396
397 2013-01-08  Anthony Green  <green@moxielogic.com>
398
399         * configure.ac: Generate local.exp.  This sets CC_FOR_TARGET
400         when we are using the vendor compiler.
401         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
402         ../local.exp.
403         * configure, testsuite/Makefile.in: Rebuilt.
404
405         * testsuite/libffi.call/call.exp: Run tests with different
406         options, depending on whether or not we are using gcc or the
407         vendor compiler.
408         * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
409         whether or not we are building/testing with gcc.
410
411 2013-01-08  Anthony Green  <green@moxielogic.com>
412
413         * configure.ac: Switch x86 solaris target to X86 by default.
414         * configure: Rebuilt.
415
416 2013-01-08  Anthony Green  <green@moxielogic.com>
417
418         * configure.ac: Fix test for read-only eh_frame.
419         * configure: Rebuilt.
420
421 2013-01-08  Anthony Green  <green@moxielogic.com>
422
423         * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
424         when building with the GNU toolchain.
425         * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
426         compiler.
427
428 2013-01-07  Thorsten Glaser <tg@mirbsd.org>
429
430         * testsuite/libffi.call/cls_uchar_va.c,
431         testsuite/libffi.call/cls_ushort_va.c,
432         testsuite/libffi.call/va_1.c: Testsuite fixes.
433
434 2013-01-07  Thorsten Glaser <tg@mirbsd.org>
435
436         * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
437         (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
438         * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
439
440 2013-01-04  Anthony Green  <green@moxielogic.com>
441
442         * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
443         and -Wall.  This is set in the configure script after testing for
444         GCC.
445         * Makefile.in: Rebuilt.
446
447 2013-01-02  rofl0r <https://github.com/rofl0r>
448
449         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
450         when long double == double.
451
452 2013-01-02  Reini Urban  <rurban@x-ray.at>
453
454         * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
455         (required for shared libs on cygwin/mingw).
456         * Makefile.in: Rebuilt.
457
458 2012-10-31  Alan Modra  <amodra@gmail.co>
459
460         * src/powerpc/linux64_closure.S: Add new ABI support.
461         * src/powerpc/linux64.S: Likewise.
462
463 2012-10-30  Magnus Granberg  <zorry@gentoo.org>
464             Pavel Labushev  <pavel.labushev@runbox.ru>
465
466         * configure.ac: New options pax_emutramp
467         * configure, fficonfig.h.in: Regenerated
468         * src/closures.c: New function emutramp_enabled_check() and
469         checks.
470
471 2012-10-30  Frederick Cheung  <frederick.cheung@gmail.com>
472
473         * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
474         lion) and future version.
475         * configure: Rebuild.
476
477 2012-10-30  James Greenhalgh  <james.greenhalgh at arm.com>
478             Marcus Shawcroft  <marcus.shawcroft at arm.com>
479
480         * README: Add details of aarch64 port.
481         * src/aarch64/ffi.c: New.
482         * src/aarch64/ffitarget.h: Likewise.
483         * src/aarch64/sysv.S: Likewise.
484         * Makefile.am: Support aarch64.
485         * configure.ac: Support aarch64.
486         * Makefile.in, configure: Rebuilt.
487
488 2012-10-30  James Greenhalgh  <james.greenhalgh at arm.com>
489             Marcus Shawcroft  <marcus.shawcroft at arm.com>
490
491         * testsuite/lib/libffi.exp: Add support for aarch64.
492         * testsuite/libffi.call/cls_struct_va1.c: New.
493         * testsuite/libffi.call/cls_uchar_va.c: Likewise.
494         * testsuite/libffi.call/cls_uint_va.c: Likewise.
495         * testsuite/libffi.call/cls_ulong_va.c: Likewise.
496         * testsuite/libffi.call/cls_ushort_va.c: Likewise.
497         * testsuite/libffi.call/nested_struct11.c: Likewise.
498         * testsuite/libffi.call/uninitialized.c: Likewise.
499         * testsuite/libffi.call/va_1.c: Likewise.
500         * testsuite/libffi.call/va_struct1.c: Likewise.
501         * testsuite/libffi.call/va_struct2.c: Likewise.
502         * testsuite/libffi.call/va_struct3.c: Likewise.
503
504 2012-10-12  Walter Lee  <walt@tilera.com>
505
506         * Makefile.am: Add TILE-Gx/TILEPro support.
507         * configure.ac: Likewise.
508         * Makefile.in: Regenerate.
509         * configure: Likewise.
510         * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
511         * src/tile: New directory.
512         * src/tile/ffi.c: New file.
513         * src/tile/ffitarget.h: Ditto.
514         * src/tile/tile.S: Ditto.
515
516 2012-10-12  Matthias Klose  <doko@ubuntu.com>
517
518         * generate-osx-source-and-headers.py: Normalize whitespace.
519
520 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
521
522         * configure: Regenerated.
523
524 2012-08-26  Andrew Pinski  <apinski@cavium.com>
525
526         PR libffi/53014
527         * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
528         soft-float.
529
530 2012-08-08  Uros Bizjak  <ubizjak@gmail.com>
531
532         * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
533         just return FFI_BAD_ABI when things are wrong.
534
535 2012-07-18  H.J. Lu  <hongjiu.lu@intel.com>
536
537         PR libffi/53982
538         PR libffi/53973
539         * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
540         (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
541
542 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
543
544         * configure: Regenerated.
545
546 2012-05-05  Nicolas Lelong
547
548         * libffi.xcodeproj/project.pbxproj: Fixes.
549         * README: Update for iOS builds.
550
551 2012-04-23  Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
552
553         * configure.ac: Add Blackfin/sysv support
554         * Makefile.am: Add Blackfin/sysv support
555         * src/bfin/ffi.c:  Add Blackfin/sysv support
556         * src/bfin/ffitarget.h: Add Blackfin/sysv support
557
558 2012-04-11  Anthony Green  <green@moxielogic.com>
559
560         * Makefile.am (EXTRA_DIST): Add new script.
561         * Makefile.in: Rebuilt.
562
563 2012-04-11  Zachary Waldowski  <zwaldowski@gmail.com>
564
565         * generate-ios-source-and-headers.py,
566         libffi.xcodeproj/project.pbxproj: Support a Mac static library via
567         Xcode. Set iOS compatibility to 4.0.  Move iOS trampoline
568         generation into an Xcode "run script" phase.  Include both as
569         Xcode build scripts. Don't always regenerate config files.
570
571 2012-04-10  Anthony Green  <green@moxielogic.com>
572
573         * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
574
575 2012-04-06  Anthony Green  <green@moxielogic.com>
576
577         * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
578         * Makefile.in: Rebuilt.
579
580 2012-04-06  Mike Lewis  <mikelikespie@gmail.com>
581
582         * generate-ios-source-and-headers.py: New file.
583         * libffi.xcodeproj/project.pbxproj: New file.
584         * README: Update instructions on building iOS binary.
585         * build-ios.sh: Delete.
586
587 2012-04-06  Anthony Green  <green@moxielogic.com>
588
589         * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
590         compilers, then use it.
591
592 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
593
594         * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
595
596 2012-04-06  Anthony Green  <green@moxielogic.com>
597
598         * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
599         * testsuite/Makefile.in: Rebuilt.
600
601 2012-04-05  Zachary Waldowski  <zwaldowski@gmail.com>
602
603         * include/ffi.h.in: Add missing trampoline table fields.
604         * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
605         in CNAME.
606         * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
607
608 2012-04-02  Peter Bergner  <bergner@vnet.ibm.com>
609
610         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
611         Silence casting pointer to integer of different size warning.
612         Delete goto to previously deleted label.
613         (ffi_call): Silence possibly undefined warning.
614         (ffi_closure_helper_SYSV): Declare variable type.
615
616 2012-04-02  Peter Rosin  <peda@lysator.liu.se>
617
618         * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
619         value in the Intel version as is already done for the AT&T version.
620         (ffi_closure_SYSV): Likewise.
621         (ffi_closure_raw_SYSV): Likewise.
622         (ffi_closure_STDCALL): Likewise.
623
624 2012-03-29  Peter Rosin  <peda@lysator.liu.se>
625
626         * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
627         generation, fix the ENDP label and remove the surplus third arg
628         from the 'lea' insn.
629
630 2012-03-29  Peter Rosin  <peda@lysator.liu.se>
631
632         * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
633         visible outside the PROC, so that ffi_closure_raw_THISCALL can see
634         it.  Also instruct the assembler to add a frame to the function.
635
636 2012-03-23  Peter Rosin  <peda@lysator.liu.se>
637
638         * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
639         * Makefile.in: Rebuilt.
640         * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
641         to all data exports, when compiling libffi clients using MSVC.
642
643 2012-03-29  Peter Rosin  <peda@lysator.liu.se>
644
645         * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
646         make it the default for MSVC.
647         (FFI_TYPE_MS_STRUCT): New structure return convention.
648         * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
649         return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
650         instead of an ordinary FFI_TYPE_STRUCT.
651         (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
652         (ffi_call): Likewise.
653         (ffi_prep_incoming_args_SYSV): Likewise.
654         (ffi_raw_call): Likewise.
655         (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
656         * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
657         return a pointer to the result structure in eax and don't pop
658         that pointer from the stack, the caller takes care of it.
659         (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
660         (ffi_closure_raw_SYSV): Likewise.
661
662 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
663
664         * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
665         assembly version with Intel syntax.
666         * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
667
668 2012-03-23  Peter Rosin  <peda@lysator.liu.se>
669
670         * testsuite/libffi.call/ffitest.h: Provide abstration of
671         __attribute__((fastcall)) in the form of a __FASTCALL__
672         define.  Define it to __fastcall for MSVC.
673         * testsuite/libffi.call/fastthis1_win32.c: Use the above.
674         * testsuite/libffi.call/fastthis2_win32.c: Likewise.
675         * testsuite/libffi.call/fastthis3_win32.c: Likewise.
676         * testsuite/libffi.call/strlen2_win32.c: Likewise.
677         * testsuite/libffi.call/struct1_win32.c: Likewise.
678         * testsuite/libffi.call/struct2_win32.c: Likewise.
679
680 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
681
682         * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
683         frame on function entry, MASM adds one automatically.
684
685 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
686
687         * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
688         bits in the MSVC headers.
689
690 2012-03-22  Peter Rosin  <peda@lysator.liu.se>
691
692         * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
693         with no declarations after statements.
694         * testsuite/libffi.call/cls_16byte.c: Likewise.
695         * testsuite/libffi.call/cls_18byte.c: Likewise.
696         * testsuite/libffi.call/cls_19byte.c: Likewise.
697         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
698         * testsuite/libffi.call/cls_20byte.c: Likewise.
699         * testsuite/libffi.call/cls_20byte1.c: Likewise.
700         * testsuite/libffi.call/cls_24byte.c: Likewise.
701         * testsuite/libffi.call/cls_2byte.c: Likewise.
702         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
703         * testsuite/libffi.call/cls_3byte1.c: Likewise.
704         * testsuite/libffi.call/cls_3byte2.c: Likewise.
705         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
706         * testsuite/libffi.call/cls_4byte.c: Likewise.
707         * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
708         * testsuite/libffi.call/cls_5byte.c: Likewise.
709         * testsuite/libffi.call/cls_64byte.c: Likewise.
710         * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
711         * testsuite/libffi.call/cls_6byte.c: Likewise.
712         * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
713         * testsuite/libffi.call/cls_7byte.c: Likewise.
714         * testsuite/libffi.call/cls_8byte.c: Likewise.
715         * testsuite/libffi.call/cls_9byte1.c: Likewise.
716         * testsuite/libffi.call/cls_9byte2.c: Likewise.
717         * testsuite/libffi.call/cls_align_double.c: Likewise.
718         * testsuite/libffi.call/cls_align_float.c: Likewise.
719         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
720         * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
721         * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
722         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
723         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
724         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
725         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
726         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
727         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
728         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
729         * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
730         * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
731         * testsuite/libffi.call/err_bad_typedef.c: Likewise.
732         * testsuite/libffi.call/huge_struct.c: Likewise.
733         * testsuite/libffi.call/nested_struct.c: Likewise.
734         * testsuite/libffi.call/nested_struct1.c: Likewise.
735         * testsuite/libffi.call/nested_struct10.c: Likewise.
736         * testsuite/libffi.call/nested_struct2.c: Likewise.
737         * testsuite/libffi.call/nested_struct3.c: Likewise.
738         * testsuite/libffi.call/nested_struct4.c: Likewise.
739         * testsuite/libffi.call/nested_struct5.c: Likewise.
740         * testsuite/libffi.call/nested_struct6.c: Likewise.
741         * testsuite/libffi.call/nested_struct7.c: Likewise.
742         * testsuite/libffi.call/nested_struct8.c: Likewise.
743         * testsuite/libffi.call/nested_struct9.c: Likewise.
744         * testsuite/libffi.call/stret_large.c: Likewise.
745         * testsuite/libffi.call/stret_large2.c: Likewise.
746         * testsuite/libffi.call/stret_medium.c: Likewise.
747         * testsuite/libffi.call/stret_medium2.c: Likewise.
748         * testsuite/libffi.call/struct1.c: Likewise.
749         * testsuite/libffi.call/struct1_win32.c: Likewise.
750         * testsuite/libffi.call/struct2.c: Likewise.
751         * testsuite/libffi.call/struct2_win32.c: Likewise.
752         * testsuite/libffi.call/struct3.c: Likewise.
753         * testsuite/libffi.call/struct4.c: Likewise.
754         * testsuite/libffi.call/struct5.c: Likewise.
755         * testsuite/libffi.call/struct6.c: Likewise.
756         * testsuite/libffi.call/struct7.c: Likewise.
757         * testsuite/libffi.call/struct8.c: Likewise.
758         * testsuite/libffi.call/struct9.c: Likewise.
759         * testsuite/libffi.call/testclosure.c: Likewise.
760
761 2012-03-21  Peter Rosin  <peda@lysator.liu.se>
762
763         * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
764         printing doubles (%lf is for long doubles).
765         (main): Likewise.
766
767 2012-03-21  Peter Rosin  <peda@lysator.liu.se>
768
769         * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
770         (set_ld_library_path_env_vars): Add the library search dir to PATH
771         (and save PATH for later).
772         (restore_ld_library_path_env_vars): Restore PATH.
773
774 2012-03-21  Peter Rosin  <peda@lysator.liu.se>
775
776         * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
777         (set_ld_library_path_env_vars): Add the library search dir to PATH
778         (and save PATH for later).
779         (restore_ld_library_path_env_vars): Restore PATH.
780
781 2012-03-20  Peter Rosin  <peda@lysator.liu.se>
782
783         * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
784         * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
785         visible outside the PROC, so that ffi_closure_THISCALL can see it.
786
787 2012-03-20  Peter Rosin  <peda@lysator.liu.se>
788
789         * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
790         * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
791         visible outside the PROC, so that ffi_closure_THISCALL can see it.
792
793 2012-03-19  Alan Hourihane  <alanh@fairlite.co.uk>
794
795         * src/m68k/ffi.c: Add MINT support.
796         * src/m68k/sysv.S: Ditto.
797
798 2012-03-06  Chung-Lin Tang  <cltang@codesourcery.com>
799
800         * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
801         ffi_call_VFP().
802         (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
803         ffi_closure_VFP.
804         * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
805
806 2012-03-19  chennam  <csit@axway.com>
807
808         * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
809         support.
810
811 2012-03-13  Kaz Kojima  <kkojima@gcc.gnu.org>
812
813         * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
814         just return FFI_BAD_ABI when things are wrong.
815         * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
816
817 2012-03-09  David Edelsohn  <dje.gcc@gmail.com>
818
819         * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
820         change to return value of ffi_closure_helper_DARWIN and load type
821         from return type.
822
823 2012-03-03  H.J. Lu  <hongjiu.lu@intel.com>
824
825         * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
826         long.
827         (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
828         (ffi_closure_unix64_inner): Cast return pointer to unsigned long
829         first.
830
831         * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
832         (ffi_arg): Set to unsigned long long for x32.
833         (ffi_sarg): Set to long long for x32.
834
835 2012-03-03  H.J. Lu  <hongjiu.lu@intel.com>
836
837         * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
838
839 2012-03-03  Andoni Morales Alastruey  <ylatuya@gmail.com>
840
841         * configure.ac: Add -no-undefined for both 32- and 64-bit x86
842         windows-like hosts.
843         * configure: Rebuilt.
844
845 2012-02-27  Mikael Pettersson  <mikpe@it.uu.se>
846
847         PR libffi/52223
848         * Makefile.am (FLAGS_TO_PASS): Define.
849         * Makefile.in: Regenerate.
850
851 2012-02-23  Anthony Green  <green@moxielogic.com>
852
853         * src/*/ffitarget.h: Ensure that users never include ffitarget.h
854         directly.
855
856 2012-02-23  Kai Tietz  <ktietz@redhat.com>
857
858         PR libffi/52221
859         * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
860         prototype.
861         (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
862         thiscall-convention.
863         (ffi_raw_call): Use ffi_prep_args_raw.
864         * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
865         implementation for stub.
866
867 2012-02-10  Kai Tietz  <ktietz@redhat.com>
868
869         * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
870         windows target.
871         * configure: Regenerated.
872
873 2012-02-08  Kai Tietz  <ktietz@redhat.com>
874
875         * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
876         also FFI_THISCALL.
877         * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
878         (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
879         (ffi_prep_closure_loc): Add FFI_THISCALL support.
880         * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
881         * src/x86/win32.S (ffi_closure_THISCALL): New closure code
882         for thiscall-calling convention.
883         * testsuite/libffi.call/closure_thiscall.c: New test.
884
885 2012-01-28  Kai Tietz  <ktietz@redhat.com>
886
887         * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
888         argument to prototype for specify calling-convention.
889         (ffi_call): Add support for stdcall/thiscall convention.
890         (ffi_prep_args): Likewise.
891         (ffi_raw_call): Likewise.
892         * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
893         FFI_FASTCALL.
894         * src/x86/win32.S (_ffi_call_win32): Add support for
895         fastcall/thiscall calling-convention calls.
896         * testsuite/libffi.call/fastthis1_win32.c: New test.
897         * testsuite/libffi.call/fastthis2_win32.c: New test.
898         * testsuite/libffi.call/fastthis3_win32.c: New test.
899         * testsuite/libffi.call/strlen2_win32.c: New test.
900         * testsuite/libffi.call/many2_win32.c: New test.
901         * testsuite/libffi.call/struct1_win32.c: New test.
902         * testsuite/libffi.call/struct2_win32.c: New test.
903
904 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
905
906         * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
907
908 2012-01-23  Anthony Green  <green@moxielogic.com>
909             Chris Young  <cdyoung@ntlworld.com>
910
911         * configure.ac: Add Amiga support.
912         * configure: Rebuilt.
913
914 2012-01-23  Dmitry Nadezhin  <dmitry.nadezhin@gmail.com>
915
916         * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
917
918 2012-01-23  Andreas Schwab  <schwab@linux-m68k.org>
919
920         * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
921         mc68000.  Test for __HAVE_68881__ in addition to __MC68881__.
922
923 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
924
925         PR rtl-optimization/48496
926         * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
927
928 2012-01-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
929
930         * configure.ac (i?86-*-*): Set TARGET to X86_64.
931         * configure: Regenerate.
932
933 2011-12-07  Andrew Pinski  <apinski@cavium.com>
934
935         PR libffi/50051
936         * src/mips/n32.S: Add ".set mips4".
937
938 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
939
940         * configure: Regenerate.
941
942 2011-11-12  David Gilbert <david.gilbert@linaro.org>
943
944         * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
945         man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
946         man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
947         src/cris/ffi.c, src/prep_cif.c,
948         testsuite/libffi.call/cls_double_va.c,
949         testsuite/libffi.call/cls_longdouble_va.c,
950         testsuite/libffi.call/float_va.c: Many changes to support variadic
951         function calls.
952
953 2011-11-12  Kyle Moffett <Kyle.D.Moffett@boeing.com>
954
955         * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
956         src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
957         softfloat powerpc variants.
958
959 2011-11-12  Petr Salinger <Petr.Salinger@seznam.cz>
960
961         * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
962         * configure: Rebuilt.
963
964 2011-11-12  Timothy Wall  <twall@users.sf.net>
965
966         * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
967         alignment of 4 for wince on ARM.
968
969 2011-11-12  Kyle Moffett <Kyle.D.Moffett@boeing.com>
970             Anthony Green <green@moxielogic.com>
971
972         * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
973         instructions (not available on some cores, like the PPC440).
974
975 2011-11-12  Kimura Wataru  <kimuraw@i.nifty.jp>
976
977         * m4/ax_enable_builddir: Change from string comparison to numeric
978         comparison for wc output.
979         * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
980         X 10.7.
981         * configure: Rebuilt.
982
983 2011-11-12  Anthony Green  <green@moxielogic.com>
984
985         * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
986         files with debug info.
987         * Makefile.in: Rebuilt.
988
989 2011-11-12  Jasper Lievisse Adriaanse <jasper@openbsd.org>
990
991         * README: Update list of supported OpenBSD systems.
992
993 2011-11-12  Anthony Green  <green@moxielogic.com>
994
995         * libtool-version: Update.
996         * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
997         FFI_DEBUG.
998         (libffi_la_SOURCES): Remove src/debug.c
999         (EXTRA_DIST): Add src/debug.c
1000         * Makefile.in: Rebuilt.
1001         * README: Update for 3.0.11.
1002
1003 2011-11-10  Richard Henderson  <rth@redhat.com>
1004
1005         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1006         * configure, aclocal.m4: Rebuild.
1007
1008 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
1009
1010         PR libffi/49594
1011         * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1012         helper reference track the architecture pointer size.
1013
1014 2011-08-25  Andrew Haley  <aph@redhat.com>
1015
1016         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1017         instructions.
1018         * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
1019
1020 2011-07-11  Andrew Haley  <aph@redhat.com>
1021
1022         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1023
1024 2011-06-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1025
1026         * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1027         * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1028
1029 2011-06-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1030
1031         PR libffi/46660
1032         * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1033         mips-sgi-irix6*.
1034         * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1035
1036 2011-06-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1037
1038         * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1039         PRId8 instead of %hhu, %hhd.
1040         * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1041         PRIu8): Define.
1042         [__sgi__] (PRId8, PRIu8): Define.
1043
1044 2011-04-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1045
1046         * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1047         Define.
1048         Use them to handle ELF vs. ECOFF differences.
1049         [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1050
1051 2011-03-30  Timothy Wall  <twall@users.sf.net>
1052
1053         * src/powerpc/darwin.S: Fix unknown FDE encoding.
1054         * src/powerpc/darwin_closure.S: ditto.
1055
1056 2011-02-25  Anthony Green  <green@moxielogic.com>
1057
1058         * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1059         32-bit ABIs.
1060
1061 2011-02-15  Anthony Green  <green@moxielogic.com>
1062
1063         * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1064         * configure: Rebuilt.
1065
1066 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067
1068         * configure: Regenerate.
1069
1070 2011-02-13  Anthony Green  <green@moxielogic.com>
1071
1072         * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1073         * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1074         * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1075
1076         * src/prep_cif.c (initialize_aggregate): Convert assertion into
1077         FFI_BAD_TYPEDEF return.  Initialize arg size and alignment to 0.
1078
1079         * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1080         just return FFI_BAD_ABI when things are wrong.
1081         * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1082         * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1083         * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1084         * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1085         * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1086
1087 2011-02-11  Anthony Green  <green@moxielogic.com>
1088
1089         * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1090         just return FFI_BAD_ABI when things are wrong.
1091
1092 2012-02-11  Eric Botcazou  <ebotcazou@adacore.com>
1093
1094         * src/sparc/v9.S (STACKFRAME): Bump to 176.
1095
1096 2011-02-09  Stuart Shelton  <srcshelton@gmail.com>
1097
1098         http://bugs.gentoo.org/show_bug.cgi?id=286911
1099         * src/mips/ffitarget.h: Clean up error messages.
1100         * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1101         ffi_raw*.
1102         * include/ffi.h.in: Add pragma for SGI compiler.
1103
1104 2011-02-09  Anthony Green  <green@moxielogic.com>
1105
1106         * configure.ac: Add powerpc64-*-darwin* support.
1107
1108 2011-02-09  Anthony Green <green@moxielogic.com>
1109
1110         * README: Mention Interix.
1111
1112 2011-02-09  Jonathan Callen  <abcd@gentoo.org>
1113
1114         * configure.ac: Add Interix to win32/cygwin/mingw case.
1115         * configure: Ditto.
1116         * src/closures.c: Treat Interix like Cygwin, instead of as a
1117         generic win32.
1118
1119 2011-02-09  Anthony Green <green@moxielogic.com>
1120
1121         * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1122         * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1123         * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1124         (ffi_prep_closure_loc): Check for bad ABI.
1125         * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1126         (initialize_aggregate): Check for bad types.
1127
1128 2011-02-09  Landon Fuller <landonf@plausible.coop>
1129
1130         * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1131         src/arm/trampoline.S.
1132         (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1133         * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1134         * src/arm/ffi.c (ffi_trampoline_table)
1135         (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1136         (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1137         (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1138         (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1139         Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1140         (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1141         separately.
1142         * src/arm/sysv.S: Handle Apple iOS host.
1143         * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
1144         * build-ios.sh: New file.
1145         * fficonfig.h.in, configure, Makefile.in: Rebuilt.
1146         * README: Mention ARM iOS.
1147
1148 2011-02-08  Oren Held  <orenhe@il.ibm.com>
1149
1150         * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1151         redefinition of mallinfo on HP-UX.
1152
1153 2011-02-08  Ginn Chen  <ginn.chen@oracle.com>
1154
1155         * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
1156         aggregate return ABI.  Flush cache.
1157         (ffi_prep_closure_loc): Flush cache.
1158
1159 2011-02-11  Anthony Green  <green@moxielogic.com>
1160
1161         From Tom Honermann <tom.honermann@oracle.com>:
1162         * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1163         AIX.  Declare .ffi_prep_args.  Insert nops after branch
1164         instructions so that the AIX linker can insert TOC reload
1165         instructions.
1166         * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1167
1168 2011-02-08  Ed  <ed@kdtc.net>
1169
1170         * src/powerpc/asm.h: Fix grammar nit in comment.
1171
1172 2011-02-08  Uli Link  <ul.mcamafia@linkitup.de>
1173
1174         * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1175
1176 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1177
1178         PR libffi/46661
1179         * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1180         uintptr_t first.
1181         * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1182
1183 2011-02-08  Rafael Avila de Espindola  <respindola@mozilla.com>
1184
1185         * configure.ac: Fix x86 test for pc related relocs.
1186         * configure: Rebuilt.
1187
1188 2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>
1189
1190         * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1191         Handle case when CPU variant does not have long double support.
1192         * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1193         and cores with soft floating point.
1194
1195 2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>
1196
1197         * configure.ac: Add mips*-*-rtems* support.
1198         * configure: Regenerate.
1199         * src/mips/ffitarget.h: Ensure needed constants are available
1200         for targets which do not have sgidefs.h.
1201
1202 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
1203
1204         PR target/40125
1205         * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1206         * configure: Regenerate.
1207
1208 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
1209
1210         PR libffi/29152
1211         PR libffi/42378
1212         * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1213         update comments.
1214         * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1215         (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1216         * src/powerpc/darwin.S: Provide Darwin64 implementation,
1217         update comments.
1218         * src/powerpc/ffi_darwin.c: Likewise.
1219
1220 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1221
1222         * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1223         backslashes.
1224         (libffi_cv_as_string_pseudo_op): Likewise.
1225         * configure: Regenerate.
1226
1227 2010-12-03  Chung-Lin Tang  <cltang@codesourcery.com>
1228
1229         * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1230         (ffi_closure_VFP): Same.
1231         (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1232         directive.
1233
1234 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1235
1236         * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1237         (PRIuPTR): Define.
1238
1239 2010-11-29  Richard Henderson  <rth@redhat.com>
1240             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1241
1242         * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1243         (.eh_frame): Use FDE_ENCODING.
1244         (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1245
1246 2010-11-22  Jacek Caban <jacek@codeweavers.com>
1247
1248         * configure.ac: Check for symbol underscores on mingw-w64.
1249         * configure: Rebuilt.
1250         * src/x86/win64.S: Correctly access extern symbols in respect to
1251         underscores.
1252
1253 2010-11-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1254
1255         * testsuite/lib/libffi-dg.exp: Rename ...
1256         * testsuite/lib/libffi.exp: ... to this.
1257         * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1258         * libffi/testsuite/libffi.special/special.exp: Likewise.
1259
1260 2010-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
1261
1262         * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1263         code, new parameter, and return value. Update comments.
1264         (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1265         call to layout_vfp_args().
1266         (ffi_call_SYSV): Update declaration.
1267         (ffi_call_VFP): New declaration.
1268         (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1269         when ABI is FFI_VFP.
1270         (ffi_closure_VFP): New declaration.
1271         (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1272         ffi_prep_incoming_args_SYSV().
1273         (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1274         case handling.
1275         (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1276         construction under VFP hard-float.
1277         (rec_vfp_type_p): New function.
1278         (vfp_type_p): Same.
1279         (place_vfp_arg): Same.
1280         (layout_vfp_args): Same.
1281         * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1282         based on __ARM_PCS_VFP.
1283         (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1284         fields.
1285         (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1286         (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1287         * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1288         direct call. Move function pointer load upwards.
1289         (ffi_call_VFP): New function.
1290         (ffi_closure_VFP): Same.
1291
1292         * testsuite/lib/libffi-dg.exp (check-flags): New function.
1293         (dg-skip-if): New function.
1294         * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1295         and compiler options include -mfloat-abi=hard.
1296         * testsuite/libffi.call/cls_longdouble_va.c: Same.
1297
1298 2010-10-01  Jakub Jelinek  <jakub@redhat.com>
1299
1300         PR libffi/45677
1301         * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1302         a multiple of 8.
1303         * testsuite/libffi.call/many2.c: New test.
1304
1305 2010-08-20  Mark Wielaard  <mjw@redhat.com>
1306
1307         * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1308         returns NULL.
1309
1310 2010-08-09  Andreas Tobler  <andreast@fgznet.ch>
1311
1312         * configure.ac: Add target powerpc64-*-freebsd*.
1313         * configure: Regenerate.
1314         * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1315         -mlong-double-128 only to linux targets.
1316         * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1317         * testsuite/libffi.call/cls_longdouble.c: Likewise.
1318         * testsuite/libffi.call/huge_struct.c: Likewise.
1319
1320 2010-08-05  Dan Witte  <dwitte@mozilla.com>
1321
1322         * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1323         debug CRT when --enable-debug is given.
1324         * configure.ac: Define it.
1325         * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1326
1327 2010-08-04  Dan Witte  <dwitte@mozilla.com>
1328
1329         * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1330         platforms.
1331         * src/x86/ffi.c: Remove redundant ifdef checks.
1332         * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1333         for X86_ANY so return value space doesn't get added twice.
1334
1335 2010-08-03  Neil Rashbrooke <neil@parkwaycc.co.uk>
1336
1337         * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1338
1339 2010-07-22  Dan Witte  <dwitte@mozilla.com>
1340
1341         * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1342         * src/prep_cif.c: Fix ABI assertion.
1343         * src/cris/ffi.c: Ditto.
1344
1345 2010-07-10  Evan Phoenix  <evan@fallingsnow.net>
1346
1347         * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1348
1349 2010-07-07  Dan Horák <dan@danny.cz>
1350
1351         * include/ffi.h.in: Protect #define with #ifndef.
1352         * src/powerpc/ffitarget.h: Ditto.
1353         * src/s390/ffitarget.h: Ditto.
1354         * src/sparc/ffitarget.h: Ditto.
1355
1356 2010-07-07   Neil Roberts <neil@linux.intel.com>
1357
1358         * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1359         16-bytes.
1360
1361 2010-07-02  Jakub Jelinek  <jakub@redhat.com>
1362
1363         * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1364         * Makefile.in: Regenerated.
1365
1366 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1367
1368         * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1369         output, too.
1370         (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1371         (libffi_cv_as_string_pseudo_op): Check for .string.
1372         * configure: Regenerate.
1373         * fficonfig.h.in: Regenerate.
1374         * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1375
1376 2010-05-11  Dan Witte  <dwitte@mozilla.com>
1377
1378         * doc/libffi.tex: Document previous change.
1379
1380 2010-05-11  Makoto Kato <m_kato@ga2.so-net.ne.jp>
1381
1382         * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1383
1384 2010-05-05  Michael Kohler <michaelkohler@live.com>
1385
1386         * src/dlmalloc.c (dlfree): Fix spelling.
1387         * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1388         * configure.ac: Ditto.
1389         * configure: Rebuilt.
1390
1391 2010-04-13  Dan Witte  <dwitte@mozilla.com>
1392
1393         * msvcc.sh: Build with -W3 instead of -Wall.
1394         * src/powerpc/ffi_darwin.c: Remove build warnings.
1395         * src/x86/ffi.c: Ditto.
1396         * src/x86/ffitarget.h: Ditto.
1397
1398 2010-04-12  Dan Witte  <dwitte@mozilla.com>
1399             Walter Meinl <wuno@lsvw.de>
1400
1401         * configure.ac: Add OS/2 support.
1402         * configure: Rebuilt.
1403         * src/closures.c: Ditto.
1404         * src/dlmalloc.c: Ditto.
1405         * src/x86/win32.S: Ditto.
1406
1407 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
1408
1409         * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
1410
1411 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1412
1413         * Makefile.in: Regenerate.
1414         * aclocal.m4: Regenerate.
1415         * include/Makefile.in: Regenerate.
1416         * man/Makefile.in: Regenerate.
1417         * testsuite/Makefile.in: Regenerate.
1418
1419 2010-03-30  Dan Witte  <dwitte@mozilla.com>
1420
1421         * msvcc.sh: Disable build warnings.
1422         * README (tested): Clarify windows build procedure.
1423
1424 2010-03-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1425
1426         * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1427         * configure: Regenerate.
1428         * fficonfig.h.in: Regenerate.
1429         * libffi/src/x86/unix64.S (.eh_frame)
1430         [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1431
1432 2010-03-14  Matthias Klose  <doko@ubuntu.com>
1433
1434         * src/x86/ffi64.c: Fix typo in comment.
1435         * src/x86/ffi.c: Use /* ... */ comment style.
1436
1437 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1438
1439         * doc/libffi.texi (The Closure API): Fix typo.
1440         * doc/libffi.info: Remove.
1441
1442 2010-02-15  Matthias Klose  <doko@ubuntu.com>
1443
1444         * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1445         __ARM_ARCH_7EM__.
1446
1447 2010-01-15  Anthony Green  <green@redhat.com>
1448
1449         * README: Add notes on building with Microsoft Visual C++.
1450
1451 2010-01-15  Daniel Witte  <dwitte@mozilla.com>
1452
1453         * msvcc.sh: New file.
1454
1455         * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1456         * src/x86/ffi.c: Tweak function declaration and remove excess
1457         parens.
1458         * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1459         ffi_closure.
1460
1461         * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1462         function ffi_call_win32 on X86_WIN32.
1463         * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1464         (ffi_call_STDCALL): Remove.
1465
1466         * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1467         to ffi_prep_cif_machdep for x86.
1468         * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1469
1470 2010-01-15  Oliver Kiddle  <okiddle@yahoo.co.uk>
1471
1472         * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
1473         Sun Studio compiler compatibility.
1474
1475 2010-01-12  Conrad Irwin <conrad.irwin@gmail.com>
1476
1477         * doc/libffi.texi: Add closure example.
1478
1479 2010-01-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1480
1481         PR libffi/40701
1482         * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1483         PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1484         * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1485         alpha*-dec-osf*.
1486         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1487         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1488         * testsuite/libffi.call/return_ll1.c: Likewise.
1489         * testsuite/libffi.call/stret_medium2.c: Likewise.
1490         * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1491         MAP_FAILED to char *.
1492
1493 2010-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1494
1495         * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1496
1497 2009-12-31  Anthony Green  <green@redhat.com>
1498
1499         * README: Update for libffi 3.0.9.
1500
1501 2009-12-27  Matthias Klose  <doko@ubuntu.com>
1502
1503         * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1504         appropriate.
1505         * configure: Rebuilt.
1506
1507 2009-12-26  Anthony Green  <green@redhat.com>
1508
1509         * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1510         avr32*-*-*.
1511         * testsuite/libffi.call/cls_double_va.c: Ditto.
1512
1513 2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
1514
1515         * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1516         and inttypes.h.
1517         * testsuite/libffi.special/unwindtest.cc: Ditto.
1518
1519 2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
1520
1521         * configure.ac: Add amd64-*-openbsd*.
1522         * configure: Rebuilt.
1523         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1524         openbsd programs with -lpthread.
1525
1526 2009-12-26  Anthony Green  <green@redhat.com>
1527
1528         * testsuite/libffi.call/cls_double_va.c,
1529         testsuite/libffi.call/cls_longdouble.c,
1530         testsuite/libffi.call/cls_longdouble_va.c,
1531         testsuite/libffi.call/cls_pointer.c,
1532         testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1533         mips*-*-* and arm*-*-*.
1534         * testsuite/libffi.call/cls_align_longdouble_split.c,
1535         testsuite/libffi.call/cls_align_longdouble_split2.c,
1536         testsuite/libffi.call/stret_medium2.c,
1537         testsuite/libffi.call/stret_medium.c,
1538         testsuite/libffi.call/stret_large.c,
1539         testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1540
1541 2009-12-31  Kay Tietz  <ktietz70@googlemail.com>
1542
1543         * testsuite/libffi.call/ffitest.h,
1544         testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1545         definitions.
1546
1547 2009-12-31  Carlo Bramini  <carlo.bramix@libero.it>
1548
1549         * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1550         * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1551         * configure: Rebuilt.
1552         * Makefile.in: Rebuilt.
1553
1554 2009-12-31  Anthony Green  <green@redhat.com>
1555             Blake Chaffin.
1556
1557         * testsuite/libffi.call/huge_struct.c: New test case from Blake
1558         Chaffin @ Apple.
1559
1560 2009-12-28  David Edelsohn  <edelsohn@gnu.org>
1561
1562         * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1563         local variables.
1564         (aix_adjust_aggregate_sizes): New function.
1565         (ffi_prep_cif_machdep): Call it.
1566
1567 2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>
1568
1569         * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1570         * configure: Regenerate.
1571         * fficonfig.h.in: Likewise.
1572         * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1573         Solaris/x86.
1574
1575 2009-12-26  Andreas Schwab  <schwab@linux-m68k.org>
1576
1577         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1578         when a float arguments is passed in memory.
1579         (ffi_closure_helper_SYSV): Mark general registers as used up when
1580         a 64bit or soft-float long double argument is passed in memory.
1581
1582 2009-12-25  Matthias Klose  <doko@ubuntu.com>
1583
1584         * man/ffi_call.3: Fix #include in examples.
1585         * doc/libffi.texi: Add dircategory.
1586
1587 2009-12-25  Frank Everdij <f.p.x.everdij@tudelft.nl>
1588
1589         * include/ffi.h.in: Placed '__GNUC__' ifdef around
1590         '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1591         IRIX MIPSPro c99.
1592         * include/ffi_common.h: Added '__sgi' define to non
1593         '__attribute__((__mode__()))' integer typedefs.
1594         * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
1595         ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1596         (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1597         FFI_LONGDOUBLE support and alignment(N32 only).
1598         * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1599         fixed non '__attribute__((__mode__()))' integer typedefs.
1600         * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1601         since they are Linux/GNU Assembler specific.
1602
1603 2009-12-25  Bradley Smith  <brad@brad-smith.co.uk>
1604
1605         * configure.ac, Makefile.am, src/avr32/ffi.c,
1606         src/avr32/ffitarget.h,
1607         src/avr32/sysv.S: Add AVR32 port.
1608         * configure, Makefile.in: Rebuilt.
1609
1610 2009-12-21  Andreas Tobler  <a.tobler@schweiz.org>
1611
1612         * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1613         * configure: Regenerate.
1614
1615 2009-12-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1616
1617         * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1618
1619 2009-12-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1620
1621         * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1622         type on HP-UX.
1623
1624 2012-02-13  Kai Tietz  <ktietz@redhat.com>
1625
1626         PR libffi/52221
1627         * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1628         support for X86_WIN32.
1629         (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1630
1631 2009-12-11  Eric Botcazou  <ebotcazou@adacore.com>
1632
1633         * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1634         double' arguments.
1635
1636 2009-12-11  Eric Botcazou  <ebotcazou@adacore.com>
1637
1638         * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1639
1640 2009-12-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1641
1642         PR libffi/40700
1643         * src/closures.c [X86_64 && __sun__ && __svr4__]
1644         (FFI_MMAP_EXEC_WRIT): Define.
1645
1646 2009-12-08  David Daney  <ddaney@caviumnetworks.com>
1647
1648         * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1649         * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1650         * testsuite/libffi.call/stret_large.c: Same.
1651         * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1652         * testsuite/libffi.call/stret_large2.c: Same.
1653         * testsuite/libffi.call/stret_medium2.c: Same.
1654
1655 2009-12-07  David Edelsohn  <edelsohn@gnu.org>
1656
1657         * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1658         typo.
1659
1660 2009-12-05  David Edelsohn  <edelsohn@gnu.org>
1661
1662         * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1663         code.
1664         * src/powerpc/aix_closure.S: Same.
1665
1666 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1667
1668         * Makefile.in: Regenerate.
1669         * configure: Regenerate.
1670         * include/Makefile.in: Regenerate.
1671         * man/Makefile.in: Regenerate.
1672         * testsuite/Makefile.in: Regenerate.
1673
1674 2009-12-04  David Edelsohn  <edelsohn@gnu.org>
1675
1676         * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
1677         linux64_closure.S.
1678
1679 2009-12-04  Uros Bizjak  <ubizjak@gmail.com>
1680
1681         PR libffi/41908
1682         * src/x86/ffi64.c (classify_argument): Update from
1683         gcc/config/i386/i386.c.
1684         (ffi_closure_unix64_inner): Do not use the address of two consecutive
1685         SSE registers directly.
1686         * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
1687         for x86_64 linux targets.
1688
1689 2009-12-04  David Edelsohn  <edelsohn@gnu.org>
1690
1691         * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
1692         pfr for long double split between fpr13 and stack.
1693
1694 2009-12-03  David Edelsohn  <edelsohn@gnu.org>
1695
1696         * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
1697         fparg_count twice for long double.
1698
1699 2009-12-03  David Edelsohn  <edelsohn@gnu.org>
1700
1701         PR libffi/42243
1702         * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
1703
1704 2009-12-03  Uros Bizjak  <ubizjak@gmail.com>
1705
1706         * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
1707         Remove xfails for x86 linux targets.
1708
1709 2009-12-02  David Edelsohn  <edelsohn@gnu.org>
1710
1711         * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
1712         case.
1713
1714 2009-12-01  David Edelsohn  <edelsohn@gnu.org>
1715
1716         * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
1717         register usage.  Call ffi_prep_args directly.  Add long double
1718         return value support.
1719         * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
1720         applies to FFI_TYPE_DOUBLE.  Correct fpr_base increment typo.
1721         Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
1722         (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
1723         mode.
1724         (ffi_closure_helper_DARWIN): Remove nf and ng counters.  Move temp
1725         into case.
1726         * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
1727         Allocate result area between params and FPRs.
1728
1729 2009-11-30  David Edelsohn  <edelsohn@gnu.org>
1730
1731         PR target/35484
1732         * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
1733         AIX64.
1734         * src/powerpc/aix.S: Implement AIX64 version.
1735         * src/powerpc/aix_closure.S: Implement AIX64 version.
1736         (ffi_closure_ASM): Use extsb, lha and displament addresses.
1737         * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
1738         support.
1739         (ffi_prep_cif_machdep): Same.
1740         (ffi_call): Same.
1741         (ffi_closure_helper_DARWIN): Same.
1742
1743 2009-11-02  Andreas Tobler  <a.tobler@schweiz.org>
1744
1745         PR libffi/41908
1746         * testsuite/libffi.call/testclosure.c: New test.
1747
1748 2009-09-28  Kai Tietz  <kai.tietz@onevision.com>
1749
1750         * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
1751         assembly version use of ___chkstk.
1752
1753 2009-09-23  Matthias Klose  <doko@ubuntu.com>
1754
1755         PR libffi/40242, PR libffi/41443
1756         * src/arm/sysv.S (__ARM_ARCH__): Define for processors
1757         __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
1758         __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
1759         Change the conditionals to __SOFTFP__ || __ARM_EABI__
1760         for -mfloat-abi=softfp to work.
1761
1762 2009-09-17  Loren J. Rittle  <ljrittle@acm.org>
1763
1764         PR testsuite/32843 (strikes again)
1765         * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
1766         enable proper extension on char and short.
1767
1768 2009-09-15  David Daney  <ddaney@caviumnetworks.com>
1769
1770         * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
1771         handling for FFI_TYPE_POINTER.
1772         * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
1773         FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
1774         FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
1775         FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
1776         (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
1777         (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
1778         * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
1779         structure and pointer returns.
1780         (ffi_closure_N32): Add handling for pointer returns.
1781         * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
1782         calc_n32_return_struct_flags): Handle soft-float.
1783         (ffi_prep_cif_machdep):  Handle soft-float, fix pointer handling.
1784         (ffi_call_N32): Declare proper argument types.
1785         (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
1786         soft-float.
1787
1788 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1789
1790         * configure.ac (AC_PREREQ): Bump to 2.64.
1791
1792 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1793
1794         * Makefile.am (install-html, install-pdf): Remove.
1795         * Makefile.in: Regenerate.
1796
1797         * Makefile.in: Regenerate.
1798         * aclocal.m4: Regenerate.
1799         * configure: Regenerate.
1800         * fficonfig.h.in: Regenerate.
1801         * include/Makefile.in: Regenerate.
1802         * man/Makefile.in: Regenerate.
1803         * testsuite/Makefile.in: Regenerate.
1804
1805 2011-08-22  Jasper Lievisse Adriaanse <jasper@openbsd.org>
1806
1807         * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
1808         * configure: Rebuilt.
1809
1810 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1811
1812         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1813
1814 2009-07-24  Dave Korn  <dave.korn.cygwin@gmail.com>
1815
1816         PR libffi/40807
1817         * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
1818         return types for X86_WIN32.
1819         * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
1820         (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
1821         _ffi_closure_STDCALL): Likewise.
1822
1823         * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
1824         (dlmmap, dlmunmap): Also use these functions on Cygwin.
1825
1826 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1827
1828         PR testsuite/40699
1829         PR testsuite/40707
1830         PR testsuite/40709
1831         * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
1832         2009-06-30 commits.
1833
1834 2009-07-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
1835
1836         * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
1837         to "" before adding paths.  (This reinstates an assignment that
1838         was removed by my 2009-06-30 commit, but changes the initial
1839         value from "." to "".)
1840
1841 2009-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1842
1843         PR testsuite/40601
1844         * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
1845         gccdir.  Adjust ld_library_path for gcc only if gccdir isn't
1846         empty.
1847
1848 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1849
1850         * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
1851         to ld_library_path.  Use add_path.  Add just find_libgcc_s
1852         to ld_library_path, not every libgcc multilib directory.
1853
1854 2009-06-16  Wim Lewis  <wiml@hhhh.org>
1855
1856         * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
1857         supposed to be callee-saved.
1858         * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
1859         return buffer for odd-size structs.
1860
1861 2009-06-16  Andreas Tobler  <a.tobler@schweiz.org>
1862
1863         PR libffi/40444
1864         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
1865         allow_stack_execute for Darwin.
1866
1867 2009-06-16  Andrew Haley  <aph@redhat.com>
1868
1869         * configure.ac (TARGETDIR): Add missing blank lines.
1870         * configure: Regenerate.
1871
1872 2009-06-16  Andrew Haley  <aph@redhat.com>
1873
1874         * testsuite/libffi.call/cls_align_sint64.c,
1875         testsuite/libffi.call/cls_align_uint64.c,
1876         testsuite/libffi.call/cls_longdouble_va.c,
1877         testsuite/libffi.call/cls_ulonglong.c,
1878         testsuite/libffi.call/return_ll1.c,
1879         testsuite/libffi.call/stret_medium2.c: Fix printf format
1880         specifiers.
1881         * testsuite/libffi.call/ffitest.h,
1882         testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
1883
1884 2009-06-15  Andrew Haley  <aph@redhat.com>
1885
1886         * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
1887         * testsuite/libffi.call/err_bad_abi.c: Likewise.
1888
1889 2009-06-12  Andrew Haley  <aph@redhat.com>
1890
1891         * Makefile.am: Remove info_TEXINFOS.
1892
1893 2009-06-12  Andrew Haley  <aph@redhat.com>
1894
1895         * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
1896         testsuite/libffi.call/cls_align_uint64.c,
1897         testsuite/libffi.call/cls_ulonglong.c,
1898         testsuite/libffi.call/return_ll1.c,
1899         testsuite/libffi.call/stret_medium2.c: Fix printf format
1900         specifiers.
1901         testsuite/libffi.special/unwindtest.cc: include stdint.h.
1902
1903 2009-06-11  Timothy Wall  <twall@users.sf.net>
1904
1905         * Makefile.am,
1906         configure.ac,
1907         include/ffi.h.in,
1908         include/ffi_common.h,
1909         src/closures.c,
1910         src/dlmalloc.c,
1911         src/x86/ffi.c,
1912         src/x86/ffitarget.h,
1913         src/x86/win64.S (new),
1914         README: Added win64 support (mingw or MSVC)
1915         * Makefile.in,
1916         include/Makefile.in,
1917         man/Makefile.in,
1918         testsuite/Makefile.in,
1919         configure,
1920         aclocal.m4: Regenerated
1921         * ltcf-c.sh: properly escape cygwin/w32 path
1922         * man/ffi_call.3: Clarify size requirements for return value.
1923         * src/x86/ffi64.c: Fix filename in comment.
1924         * src/x86/win32.S: Remove unused extern.
1925
1926         * testsuite/libffi.call/closure_fn0.c,
1927         testsuite/libffi.call/closure_fn1.c,
1928         testsuite/libffi.call/closure_fn2.c,
1929         testsuite/libffi.call/closure_fn3.c,
1930         testsuite/libffi.call/closure_fn4.c,
1931         testsuite/libffi.call/closure_fn5.c,
1932         testsuite/libffi.call/closure_fn6.c,
1933         testsuite/libffi.call/closure_stdcall.c,
1934         testsuite/libffi.call/cls_12byte.c,
1935         testsuite/libffi.call/cls_16byte.c,
1936         testsuite/libffi.call/cls_18byte.c,
1937         testsuite/libffi.call/cls_19byte.c,
1938         testsuite/libffi.call/cls_1_1byte.c,
1939         testsuite/libffi.call/cls_20byte.c,
1940         testsuite/libffi.call/cls_20byte1.c,
1941         testsuite/libffi.call/cls_24byte.c,
1942         testsuite/libffi.call/cls_2byte.c,
1943         testsuite/libffi.call/cls_3_1byte.c,
1944         testsuite/libffi.call/cls_3byte1.c,
1945         testsuite/libffi.call/cls_3byte2.c,
1946         testsuite/libffi.call/cls_4_1byte.c,
1947         testsuite/libffi.call/cls_4byte.c,
1948         testsuite/libffi.call/cls_5_1_byte.c,
1949         testsuite/libffi.call/cls_5byte.c,
1950         testsuite/libffi.call/cls_64byte.c,
1951         testsuite/libffi.call/cls_6_1_byte.c,
1952         testsuite/libffi.call/cls_6byte.c,
1953         testsuite/libffi.call/cls_7_1_byte.c,
1954         testsuite/libffi.call/cls_7byte.c,
1955         testsuite/libffi.call/cls_8byte.c,
1956         testsuite/libffi.call/cls_9byte1.c,
1957         testsuite/libffi.call/cls_9byte2.c,
1958         testsuite/libffi.call/cls_align_double.c,
1959         testsuite/libffi.call/cls_align_float.c,
1960         testsuite/libffi.call/cls_align_longdouble.c,
1961         testsuite/libffi.call/cls_align_longdouble_split.c,
1962         testsuite/libffi.call/cls_align_longdouble_split2.c,
1963         testsuite/libffi.call/cls_align_pointer.c,
1964         testsuite/libffi.call/cls_align_sint16.c,
1965         testsuite/libffi.call/cls_align_sint32.c,
1966         testsuite/libffi.call/cls_align_sint64.c,
1967         testsuite/libffi.call/cls_align_uint16.c,
1968         testsuite/libffi.call/cls_align_uint32.c,
1969         testsuite/libffi.call/cls_align_uint64.c,
1970         testsuite/libffi.call/cls_dbls_struct.c,
1971         testsuite/libffi.call/cls_double.c,
1972         testsuite/libffi.call/cls_double_va.c,
1973         testsuite/libffi.call/cls_float.c,
1974         testsuite/libffi.call/cls_longdouble.c,
1975         testsuite/libffi.call/cls_longdouble_va.c,
1976         testsuite/libffi.call/cls_multi_schar.c,
1977         testsuite/libffi.call/cls_multi_sshort.c,
1978         testsuite/libffi.call/cls_multi_sshortchar.c,
1979         testsuite/libffi.call/cls_multi_uchar.c,
1980         testsuite/libffi.call/cls_multi_ushort.c,
1981         testsuite/libffi.call/cls_multi_ushortchar.c,
1982         testsuite/libffi.call/cls_pointer.c,
1983         testsuite/libffi.call/cls_pointer_stack.c,
1984         testsuite/libffi.call/cls_schar.c,
1985         testsuite/libffi.call/cls_sint.c,
1986         testsuite/libffi.call/cls_sshort.c,
1987         testsuite/libffi.call/cls_uchar.c,
1988         testsuite/libffi.call/cls_uint.c,
1989         testsuite/libffi.call/cls_ulonglong.c,
1990         testsuite/libffi.call/cls_ushort.c,
1991         testsuite/libffi.call/err_bad_abi.c,
1992         testsuite/libffi.call/err_bad_typedef.c,
1993         testsuite/libffi.call/float2.c,
1994         testsuite/libffi.call/huge_struct.c,
1995         testsuite/libffi.call/nested_struct.c,
1996         testsuite/libffi.call/nested_struct1.c,
1997         testsuite/libffi.call/nested_struct10.c,
1998         testsuite/libffi.call/nested_struct2.c,
1999         testsuite/libffi.call/nested_struct3.c,
2000         testsuite/libffi.call/nested_struct4.c,
2001         testsuite/libffi.call/nested_struct5.c,
2002         testsuite/libffi.call/nested_struct6.c,
2003         testsuite/libffi.call/nested_struct7.c,
2004         testsuite/libffi.call/nested_struct8.c,
2005         testsuite/libffi.call/nested_struct9.c,
2006         testsuite/libffi.call/problem1.c,
2007         testsuite/libffi.call/return_ldl.c,
2008         testsuite/libffi.call/return_ll1.c,
2009         testsuite/libffi.call/stret_large.c,
2010         testsuite/libffi.call/stret_large2.c,
2011         testsuite/libffi.call/stret_medium.c,
2012         testsuite/libffi.call/stret_medium2.c,
2013         testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2014         of checking for MMAP.  Use intptr_t instead of long casts.
2015
2016 2009-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2017
2018         * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2019         * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2020         * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2021
2022 2009-06-09  Andrew Haley  <aph@redhat.com>
2023
2024         * src/x86/freebsd.S: Add missing file.
2025
2026 2009-06-08  Andrew Haley  <aph@redhat.com>
2027
2028         Import from libffi 3.0.8:
2029
2030         * doc/libffi.texi: New file.
2031         * doc/libffi.info: Likewise.
2032         * doc/stamp-vti: Likewise.
2033         * man/Makefile.am: New file.
2034         * man/ffi_call.3: New file.
2035
2036         * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2037         src/dlmalloc.c.
2038         (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2039
2040         * configure.ac: Bump version to 3.0.8.
2041         parisc*-*-linux*: Add.
2042         i386-*-freebsd* | i386-*-openbsd*: Add.
2043         powerpc-*-beos*: Add.
2044         AM_CONDITIONAL X86_FREEBSD: Add.
2045         AC_CONFIG_FILES: Add man/Makefile.
2046
2047         * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2048
2049 2009-06-08  Andrew Haley  <aph@redhat.com>
2050
2051         * README: Import from libffi 3.0.8.
2052
2053 2009-06-08  Andrew Haley  <aph@redhat.com>
2054
2055         * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2056         * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2057         * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2058         * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2059
2060         * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2061         * testsuite/libffi.call/stret_medium.c: Likewise.
2062         * testsuite/libffi.call/stret_large2.c: Likewise.
2063         * testsuite/libffi.call/stret_large.c:  Likewise.
2064
2065 2008-12-26  Timothy Wall  <twall@users.sf.net>
2066
2067         * testsuite/libffi.call/cls_longdouble.c,
2068         testsuite/libffi.call/cls_longdouble_va.c,
2069         testsuite/libffi.call/cls_align_longdouble.c,
2070         testsuite/libffi.call/cls_align_longdouble_split.c,
2071         testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2072         failures on x86_64 cygwin/mingw.
2073
2074 2008-12-22  Timothy Wall  <twall@users.sf.net>
2075
2076         * testsuite/libffi.call/closure_fn0.c,
2077         testsuite/libffi.call/closure_fn1.c,
2078         testsuite/libffi.call/closure_fn2.c,
2079         testsuite/libffi.call/closure_fn3.c,
2080         testsuite/libffi.call/closure_fn4.c,
2081         testsuite/libffi.call/closure_fn5.c,
2082         testsuite/libffi.call/closure_fn6.c,
2083         testsuite/libffi.call/closure_loc_fn0.c,
2084         testsuite/libffi.call/closure_stdcall.c,
2085         testsuite/libffi.call/cls_align_pointer.c,
2086         testsuite/libffi.call/cls_pointer.c,
2087         testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2088         pointer to integer (intptr_t).
2089         * testsuite/libffi.call/cls_longdouble.c: disable for win64.
2090
2091 2008-07-24  Anthony Green  <green@redhat.com>
2092
2093         * testsuite/libffi.call/cls_dbls_struct.c,
2094         testsuite/libffi.call/cls_double_va.c,
2095         testsuite/libffi.call/cls_longdouble.c,
2096         testsuite/libffi.call/cls_longdouble_va.c,
2097         testsuite/libffi.call/cls_pointer.c,
2098         testsuite/libffi.call/cls_pointer_stack.c,
2099         testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2100         compiler warnings.
2101
2102 2008-03-04  Anthony Green  <green@redhat.com>
2103             Blake Chaffin
2104             hos@tamanegi.org
2105
2106         * testsuite/libffi.call/cls_align_longdouble_split2.c
2107           testsuite/libffi.call/cls_align_longdouble_split.c
2108           testsuite/libffi.call/cls_dbls_struct.c
2109           testsuite/libffi.call/cls_double_va.c
2110           testsuite/libffi.call/cls_longdouble.c
2111           testsuite/libffi.call/cls_longdouble_va.c
2112           testsuite/libffi.call/cls_pointer.c
2113           testsuite/libffi.call/cls_pointer_stack.c
2114           testsuite/libffi.call/err_bad_abi.c
2115           testsuite/libffi.call/err_bad_typedef.c
2116           testsuite/libffi.call/stret_large2.c
2117           testsuite/libffi.call/stret_large.c
2118           testsuite/libffi.call/stret_medium2.c
2119           testsuite/libffi.call/stret_medium.c: New tests from Apple.
2120
2121 2009-06-05  Andrew Haley  <aph@redhat.com>
2122
2123         * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2124         libffi.
2125
2126 2009-06-04  Andrew Haley  <aph@redhat.com>
2127
2128         * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2129         stdcall changes.
2130
2131 2008-02-26  Anthony Green  <green@redhat.com>
2132             Thomas Heller  <theller@ctypes.org>
2133
2134         * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2135         comment.
2136
2137 2008-02-03  Timothy Wall  <twall@users.sf.net>
2138
2139         * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2140           offset based on code pointer, not data pointer.
2141
2142 2008-01-31  Timothy Wall <twall@users.sf.net>
2143
2144         * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2145         closures.
2146         * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2147         closures.
2148         * src/x86/win32.S: Add assembly for stdcall closure.
2149         * src/x86/ffi.c: Initialize stdcall closure trampoline.
2150
2151 2009-06-04  Andrew Haley  <aph@redhat.com>
2152
2153         * include/ffi.h.in: Change void (*)() to void (*)(void).
2154         * src/x86/ffi.c: Likewise.
2155
2156 2009-06-04  Andrew Haley  <aph@redhat.com>
2157
2158         * src/powerpc/ppc_closure.S: Insert licence header.
2159         * src/powerpc/linux64_closure.S: Likewise.
2160         * src/m68k/sysv.S: Likewise.
2161
2162         * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2163         * src/powerpc/ffi.c: Likewise.
2164         * src/powerpc/ffi_darwin.c: Likewise.
2165         * src/m32r/ffi.c: Likewise.
2166         * src/sh64/ffi.c: Likewise.
2167         * src/x86/ffi64.c: Likewise.
2168         * src/alpha/ffi.c: Likewise.
2169         * src/alpha/osf.S: Likewise.
2170         * src/frv/ffi.c: Likewise.
2171         * src/s390/ffi.c: Likewise.
2172         * src/pa/ffi.c: Likewise.
2173         * src/pa/hpux32.S: Likewise.
2174         * src/ia64/unix.S: Likewise.
2175         * src/ia64/ffi.c: Likewise.
2176         * src/sparc/ffi.c: Likewise.
2177         * src/mips/ffi.c: Likewise.
2178         * src/sh/ffi.c: Likewise.
2179
2180 2008-02-15  David Daney  <ddaney@avtrex.com>
2181
2182         * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2183         Define (conditionally), and use it to include cachectl.h.
2184         (ffi_prep_closure_loc): Fix cache flushing.
2185         * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
2186
2187 2009-06-04  Andrew Haley  <aph@redhat.com>
2188
2189         include/ffi.h.in,
2190         src/arm/ffitarget.h,
2191         src/arm/ffi.c,
2192         src/arm/sysv.S,
2193         src/powerpc/ffitarget.h,
2194         src/closures.c,
2195         src/sh64/ffitarget.h,
2196         src/sh64/ffi.c,
2197         src/sh64/sysv.S,
2198         src/types.c,
2199         src/x86/ffi64.c,
2200         src/x86/ffitarget.h,
2201         src/x86/win32.S,
2202         src/x86/darwin.S,
2203         src/x86/ffi.c,
2204         src/x86/sysv.S,
2205         src/x86/unix64.S,
2206         src/alpha/ffitarget.h,
2207         src/alpha/ffi.c,
2208         src/alpha/osf.S,
2209         src/m68k/ffitarget.h,
2210         src/frv/ffitarget.h,
2211         src/frv/ffi.c,
2212         src/s390/ffitarget.h,
2213         src/s390/sysv.S,
2214         src/cris/ffitarget.h,
2215         src/pa/linux.S,
2216         src/pa/ffitarget.h,
2217         src/pa/ffi.c,
2218         src/raw_api.c,
2219         src/ia64/ffitarget.h,
2220         src/ia64/unix.S,
2221         src/ia64/ffi.c,
2222         src/ia64/ia64_flags.h,
2223         src/java_raw_api.c,
2224         src/debug.c,
2225         src/sparc/v9.S,
2226         src/sparc/ffitarget.h,
2227         src/sparc/ffi.c,
2228         src/sparc/v8.S,
2229         src/mips/ffitarget.h,
2230         src/mips/n32.S,
2231         src/mips/o32.S,
2232         src/mips/ffi.c,
2233         src/prep_cif.c,
2234         src/sh/ffitarget.h,
2235         src/sh/ffi.c,
2236         src/sh/sysv.S: Update license text.
2237
2238 2009-05-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2239
2240         * src/x86/win32.S (_ffi_closure_STDCALL):  New function.
2241         (.eh_frame):  Add FDE for it.
2242
2243 2009-05-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2244
2245         * configure.ac:  Also check if assembler supports pc-relative
2246         relocs on X86_WIN32 targets.
2247         * configure:  Regenerate.
2248         * src/x86/win32.S (ffi_prep_args):  Declare extern, not global.
2249         (_ffi_call_SYSV):  Add missing function type symbol .def and
2250         add EH markup labels.
2251         (_ffi_call_STDCALL):  Likewise.
2252         (_ffi_closure_SYSV):  Likewise.
2253         (_ffi_closure_raw_SYSV):  Likewise.
2254         (.eh_frame):  Add hand-crafted EH data.
2255
2256 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2257
2258         * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2259         version 3 of the GNU General Public License and to point readers
2260         at the COPYING3 file and the FSF's license web page.
2261         * testsuite/libffi.call/call.exp: Likewise.
2262         * testsuite/libffi.special/special.exp: Likewise.
2263
2264 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2265
2266         * configure: Regenerate.
2267
2268 2008-12-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2269
2270         PR libffi/26048
2271         * configure.ac (HAVE_AS_X86_PCREL): New test.
2272         * configure: Regenerate.
2273         * fficonfig.h.in: Regenerate.
2274         * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2275         RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2276         RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2277         (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2278         * src/x86/unix64.S (.Lstore_table): Move to .text section.
2279         (.Lload_table): Likewise.
2280         (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2281
2282 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2283
2284         * configure: Regenerate.
2285
2286 2008-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2287
2288         * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2289         signed/unsigned int8/16 return values.
2290         * src/sparc/v8.S (ffi_call_v8): Likewise.
2291         (ffi_closure_v8): Likewise.
2292
2293 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2294             Steve Ellcey  <sje@cup.hp.com>
2295
2296         * configure: Regenerate for new libtool.
2297         * Makefile.in: Ditto.
2298         * include/Makefile.in: Ditto.
2299         * aclocal.m4: Ditto.
2300
2301 2008-08-25  Andreas Tobler  <a.tobler@schweiz.org>
2302
2303         * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2304         FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2305         Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2306         Adjust copyright notice.
2307         * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2308         register or two register to use for FFI_SYSV structs.
2309         (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2310         (ffi_closure_helper_SYSV): Fix the return type for
2311         FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2312         Adjust copyright notice.
2313
2314 2008-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2315
2316         * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2317         int.
2318
2319 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2320
2321         * configure: Regenerate.
2322         * include/Makefile.in: Regenerate.
2323         * testsuite/Makefile.in: Regenerate.
2324
2325 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
2326
2327         * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2328         powerpc-*-beos*): Remove.
2329         * configure: Regenerate.
2330
2331 2008-05-09  Julian Brown  <julian@codesourcery.com>
2332
2333         * Makefile.am (LTLDFLAGS): New.
2334         (libffi_la_LDFLAGS): Use above.
2335         * Makefile.in: Regenerate.
2336
2337 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2338
2339         PR bootstrap/35457
2340         * aclocal.m4: Regenerate.
2341         * configure: Regenerate.
2342
2343 2008-03-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2344
2345         * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2346         * src/sh64/sysv.S: Likewise.
2347
2348 2008-03-26  Daniel Jacobowitz  <dan@debian.org>
2349
2350         * src/arm/sysv.S: Fix ARM comment marker.
2351
2352 2008-03-26  Jakub Jelinek  <jakub@redhat.com>
2353
2354         * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2355         * src/s390/sysv.S: Likewise.
2356         * src/powerpc/ppc_closure.S: Likewise.
2357         * src/powerpc/sysv.S: Likewise.
2358         * src/x86/unix64.S: Likewise.
2359         * src/x86/sysv.S: Likewise.
2360         * src/sparc/v8.S: Likewise.
2361         * src/sparc/v9.S: Likewise.
2362         * src/m68k/sysv.S: Likewise.
2363         * src/arm/sysv.S: Likewise.
2364
2365 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2366
2367         * aclocal.m4: Regenerate.
2368         * configure: Likewise.
2369         * Makefile.in: Likewise.
2370         * include/Makefile.in: Likewise.
2371         * testsuite/Makefile.in: Likewise.
2372
2373 2008-02-12  Bjoern Koenig  <bkoenig@alpha-tierchen.de>
2374             Andreas Tobler  <a.tobler@schweiz.org>
2375
2376         * configure.ac: Add amd64-*-freebsd* target.
2377         * configure: Regenerate.
2378
2379 2008-01-30  H.J. Lu  <hongjiu.lu@intel.com>
2380
2381         PR libffi/34612
2382         * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2383         returning struct.
2384
2385         * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2386         tests.
2387
2388 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2389
2390         * configure: Regenerate.
2391
2392 2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>
2393
2394         * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2395
2396 2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>
2397
2398         PR testsuite/32843
2399         * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2400         signed/unsigned int8/16 for X86_DARWIN.
2401         Updated copyright info.
2402         Handle one and two byte structs with special cif->flags.
2403         * src/x86/ffitarget.h: Add special types for one and two byte structs.
2404         Updated copyright info.
2405         * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2406         sysv.S
2407         Remove code to pop args from the stack after call.
2408         Special-case signed/unsigned for int8/16, one and two byte structs.
2409         (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2410         FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2411         FFI_TYPE_SINT32.
2412         Updated copyright info.
2413
2414 2007-12-08  David Daney  <ddaney@avtrex.com>
2415
2416         * src/mips/n32.S (ffi_call_N32):  Replace dadd with ADDU, dsub with
2417         SUBU, add with ADDU and use smaller code sequences.
2418
2419 2007-12-07  David Daney  <ddaney@avtrex.com>
2420
2421         * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2422         type.
2423
2424 2007-12-06  David Daney  <ddaney@avtrex.com>
2425
2426         * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2427         defined.
2428         (ffi_java_raw): New typedef.
2429         (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2430         ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2431         ffi_java_raw.
2432         (ffi_java_raw_closure) : Same.
2433         (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2434         parameter types.
2435         * src/java_raw_api.c (ffi_java_raw_size):  Replace FFI_SIZEOF_ARG with
2436         FFI_SIZEOF_JAVA_RAW.
2437         (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2438         Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2439         sizeof(ffi_java_raw) for alignment calculations.
2440         (ffi_java_ptrarray_to_raw): Same.
2441         (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
2442         if FFI_SIZEOF_JAVA_RAW == 4.
2443         (ffi_java_raw_to_rvalue): Same.
2444         (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2445         (ffi_java_translate_args): Same.
2446         (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2447         parameter types.
2448         * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2449
2450 2007-12-06  David Daney  <ddaney@avtrex.com>
2451
2452         * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
2453         pointer values.
2454
2455 2007-12-01  Andreas Tobler  <a.tobler@schweiz.org>
2456
2457         PR libffi/31937
2458         * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2459         Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2460         * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2461         set the NUM_FPR_ARG_REGISTERS according to.
2462         Add support for potential soft-float support under hard-float
2463         architecture.
2464         (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2465         FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2466         to the FFI_LINUX_SOFT_FLOAT ABI.
2467         (ffi_prep_cif_machdep): Likewise.
2468         (ffi_closure_helper_SYSV): Likewise.
2469         * src/powerpc/ppc_closure.S: Make sure not to store float/double
2470         on archs where __NO_FPRS__ is true.
2471         Add FFI_TYPE_UINT128 support.
2472         * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2473         Adjust copyright notice.
2474
2475 2007-11-25  Andreas Tobler  <a.tobler@schweiz.org>
2476
2477         * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2478         * include/ffi_common.h: ... here.
2479         Update copyright.
2480
2481 2007-11-17  Andreas Tobler  <a.tobler@schweiz.org>
2482
2483         * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2484         * src/powerpc/linux64.S: Likewise.
2485         * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2486         * testsuite/libffi.call/return_ldl.c: New test.
2487
2488 2007-09-04    <aph@redhat.com>
2489
2490         * src/arm/sysv.S (UNWIND): New.
2491         (Whole file): Conditionally compile unwinder directives.
2492         * src/arm/sysv.S: Add unwinder directives.
2493
2494         * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2495         Only treat r0 as a struct address if we're actually returning a
2496         struct by address.
2497         Only copy the bytes that are actually within a struct.
2498         (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2499         is returned in r0, not passed by address.
2500         (ffi_call): Allocate a word-sized temporary for the case where
2501         a composite is returned in r0.
2502         (ffi_prep_incoming_args_SYSV): Align as necessary.
2503
2504 2007-08-05  Steven Newbury  <s_j_newbury@yahoo.co.uk>
2505
2506         * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
2507         directly using the sys_cacheflush syscall.
2508
2509 2007-07-27  Andrew Haley  <aph@redhat.com>
2510
2511         * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2512
2513 2007-09-03  Maciej W. Rozycki  <macro@linux-mips.org>
2514
2515         * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2516         * configure.ac: Likewise.
2517         * Makefile.in: Regenerate.
2518         * include/Makefile.in: Likewise.
2519         * testsuite/Makefile.in: Likewise.
2520         * configure: Likewise.
2521
2522 2007-08-24  David Daney  <ddaney@avtrex.com>
2523
2524         * testsuite/libffi.call/return_sl.c: New test.
2525
2526 2007-08-10  David Daney  <ddaney@avtrex.com>
2527
2528         * testsuite/libffi.call/cls_multi_ushort.c,
2529         testsuite/libffi.call/cls_align_uint16.c,
2530         testsuite/libffi.call/nested_struct1.c,
2531         testsuite/libffi.call/nested_struct3.c,
2532         testsuite/libffi.call/cls_7_1_byte.c,
2533         testsuite/libffi.call/nested_struct5.c,
2534         testsuite/libffi.call/cls_double.c,
2535         testsuite/libffi.call/nested_struct7.c,
2536         testsuite/libffi.call/cls_sint.c,
2537         testsuite/libffi.call/nested_struct9.c,
2538         testsuite/libffi.call/cls_20byte1.c,
2539         testsuite/libffi.call/cls_multi_sshortchar.c,
2540         testsuite/libffi.call/cls_align_sint64.c,
2541         testsuite/libffi.call/cls_3byte2.c,
2542         testsuite/libffi.call/cls_multi_schar.c,
2543         testsuite/libffi.call/cls_multi_uchar.c,
2544         testsuite/libffi.call/cls_19byte.c,
2545         testsuite/libffi.call/cls_9byte1.c,
2546         testsuite/libffi.call/cls_align_float.c,
2547         testsuite/libffi.call/closure_fn1.c,
2548         testsuite/libffi.call/problem1.c,
2549         testsuite/libffi.call/closure_fn3.c,
2550         testsuite/libffi.call/cls_sshort.c,
2551         testsuite/libffi.call/closure_fn5.c,
2552         testsuite/libffi.call/cls_align_double.c,
2553         testsuite/libffi.call/nested_struct.c,
2554         testsuite/libffi.call/cls_2byte.c,
2555         testsuite/libffi.call/nested_struct10.c,
2556         testsuite/libffi.call/cls_4byte.c,
2557         testsuite/libffi.call/cls_6byte.c,
2558         testsuite/libffi.call/cls_8byte.c,
2559         testsuite/libffi.call/cls_multi_sshort.c,
2560         testsuite/libffi.call/cls_align_sint16.c,
2561         testsuite/libffi.call/cls_align_uint32.c,
2562         testsuite/libffi.call/cls_20byte.c,
2563         testsuite/libffi.call/cls_float.c,
2564         testsuite/libffi.call/nested_struct2.c,
2565         testsuite/libffi.call/cls_5_1_byte.c,
2566         testsuite/libffi.call/nested_struct4.c,
2567         testsuite/libffi.call/cls_24byte.c,
2568         testsuite/libffi.call/nested_struct6.c,
2569         testsuite/libffi.call/cls_64byte.c,
2570         testsuite/libffi.call/nested_struct8.c,
2571         testsuite/libffi.call/cls_uint.c,
2572         testsuite/libffi.call/cls_multi_ushortchar.c,
2573         testsuite/libffi.call/cls_schar.c,
2574         testsuite/libffi.call/cls_uchar.c,
2575         testsuite/libffi.call/cls_align_uint64.c,
2576         testsuite/libffi.call/cls_ulonglong.c,
2577         testsuite/libffi.call/cls_align_longdouble.c,
2578         testsuite/libffi.call/cls_1_1byte.c,
2579         testsuite/libffi.call/cls_12byte.c,
2580         testsuite/libffi.call/cls_3_1byte.c,
2581         testsuite/libffi.call/cls_3byte1.c,
2582         testsuite/libffi.call/cls_4_1byte.c,
2583         testsuite/libffi.call/cls_6_1_byte.c,
2584         testsuite/libffi.call/cls_16byte.c,
2585         testsuite/libffi.call/cls_18byte.c,
2586         testsuite/libffi.call/closure_fn0.c,
2587         testsuite/libffi.call/cls_9byte2.c,
2588         testsuite/libffi.call/closure_fn2.c,
2589         testsuite/libffi.call/closure_fn4.c,
2590         testsuite/libffi.call/cls_ushort.c,
2591         testsuite/libffi.call/closure_fn6.c,
2592         testsuite/libffi.call/cls_5byte.c,
2593         testsuite/libffi.call/cls_align_pointer.c,
2594         testsuite/libffi.call/cls_7byte.c,
2595         testsuite/libffi.call/cls_align_sint32.c,
2596         testsuite/libffi.special/unwindtest_ffi_call.cc,
2597         testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2598
2599 2007-08-10  David Daney  <ddaney@avtrex.com>
2600
2601         PR libffi/28313
2602         * configure.ac: Don't treat mips64 as a special case.
2603         * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2604         * configure: Regenerate
2605         * Makefile.in: Ditto.
2606         * fficonfig.h.in: Ditto.
2607         * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2608         (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2609         (FFI_DEFAULT_ABI): Set for n64 case.
2610         (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2611         * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2612         (ffi_closure_N32): New function.
2613         (.eh_frame): New section
2614         * src/mips/o32.S: Clean up comments.
2615         (ffi_closure_O32): Pass ffi_closure parameter in $12.
2616         * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2617         _MIPS_SIM == _ABIN32 throughout.
2618         (FFI_MIPS_STOP_HERE): New, use in place of
2619         ffi_stop_here.
2620         (ffi_prep_args): Use unsigned long to hold pointer values.  Rewrite
2621         to support n32/n64 ABIs.
2622         (calc_n32_struct_flags): Rewrite.
2623         (calc_n32_return_struct_flags): Remove unused variable.  Reverse
2624         position of flag bits.
2625         (ffi_prep_cif_machdep): Rewrite n32 portion.
2626         (ffi_call): Enable for n64.  Add special handling for small structure
2627         return values.
2628         (ffi_prep_closure_loc): Add n32 and n64 support.
2629         (ffi_closure_mips_inner_O32): Add cast to silence warning.
2630         (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2631
2632 2007-08-08  David Daney  <ddaney@avtrex.com>
2633
2634         * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2635         * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2636         specifiers.
2637         * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2638         * testsuite/libffi.call/cls_sint.c (main): Ditto.
2639         * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2640         * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2641         * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2642         * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2643         * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2644         * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2645         * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2646         * testsuite/libffi.call/return_fl3.c (main): Ditto.
2647         * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2648         * testsuite/libffi.call/nested_struct.c (main): Ditto.
2649         * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2650         * testsuite/libffi.call/return_ll1.c (main): Ditto.
2651         * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2652         * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2653         * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2654         * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2655         * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2656         * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2657         * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2658         * testsuite/libffi.call/cls_uint.c (main): Ditto.
2659         * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2660         * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2661         * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2662         * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2663         * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2664         * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2665         * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2666         * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2667         * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2668
2669 2007-08-07  Andrew Haley  <aph@redhat.com>
2670
2671         * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2672         checkin.
2673
2674 2007-08-06  Andrew Haley  <aph@redhat.com>
2675
2676         PR testsuite/32843
2677         * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2678         FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2679         FFI_TYPE_SINT32.
2680
2681 2007-08-02  David Daney  <ddaney@avtrex.com>
2682
2683         * testsuite/libffi.call/return_ul.c (main): Define return type as
2684         ffi_arg.  Use proper printf conversion specifier.
2685
2686 2007-07-30  Andrew Haley  <aph@redhat.com>
2687
2688         PR testsuite/32843
2689         * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
2690         signed/unsigned int8/16.
2691         * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
2692         Use a jump table.
2693         Remove code to pop args from the stack after call.
2694         Special-case signed/unsigned int8/16.
2695         * testsuite/libffi.call/return_sc.c (main): Revert.
2696
2697 2007-07-26  Richard Guenther  <rguenther@suse.de>
2698
2699         PR testsuite/32843
2700         * testsuite/libffi.call/return_sc.c (main): Verify call
2701         result as signed char, not ffi_arg.
2702
2703 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2704
2705         * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
2706         * configure: Regenerate.
2707
2708 2007-07-11  David Daney  <ddaney@avtrex.com>
2709
2710         * src/mips/ffi.c: Don't include sys/cachectl.h.
2711         (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
2712         cacheflush().
2713
2714 2007-05-18  Aurelien Jarno  <aurelien@aurel32.net>
2715
2716         * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
2717         from (ffi_prep_closure): ... this.
2718         (FFI_INIT_TRAMPOLINE): Adjust.
2719
2720 2005-12-31  Phil Blundell  <pb@reciva.com>
2721
2722         * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
2723         ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
2724         * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
2725         * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
2726         (FFI_CLOSURES): Enable closure support.
2727
2728 2007-07-03  Andrew Haley  <aph@hedges.billgatliff.com>
2729
2730         * testsuite/libffi.call/cls_multi_ushort.c,
2731         testsuite/libffi.call/cls_align_uint16.c,
2732         testsuite/libffi.call/nested_struct1.c,
2733         testsuite/libffi.call/nested_struct3.c,
2734         testsuite/libffi.call/cls_7_1_byte.c,
2735         testsuite/libffi.call/cls_double.c,
2736         testsuite/libffi.call/nested_struct5.c,
2737         testsuite/libffi.call/nested_struct7.c,
2738         testsuite/libffi.call/cls_sint.c,
2739         testsuite/libffi.call/nested_struct9.c,
2740         testsuite/libffi.call/cls_20byte1.c,
2741         testsuite/libffi.call/cls_multi_sshortchar.c,
2742         testsuite/libffi.call/cls_align_sint64.c,
2743         testsuite/libffi.call/cls_3byte2.c,
2744         testsuite/libffi.call/cls_multi_schar.c,
2745         testsuite/libffi.call/cls_multi_uchar.c,
2746         testsuite/libffi.call/cls_19byte.c,
2747         testsuite/libffi.call/cls_9byte1.c,
2748         testsuite/libffi.call/cls_align_float.c,
2749         testsuite/libffi.call/closure_fn1.c,
2750         testsuite/libffi.call/problem1.c,
2751         testsuite/libffi.call/closure_fn3.c,
2752         testsuite/libffi.call/cls_sshort.c,
2753         testsuite/libffi.call/closure_fn5.c,
2754         testsuite/libffi.call/cls_align_double.c,
2755         testsuite/libffi.call/cls_2byte.c,
2756         testsuite/libffi.call/nested_struct.c,
2757         testsuite/libffi.call/nested_struct10.c,
2758         testsuite/libffi.call/cls_4byte.c,
2759         testsuite/libffi.call/cls_6byte.c,
2760         testsuite/libffi.call/cls_8byte.c,
2761         testsuite/libffi.call/cls_multi_sshort.c,
2762         testsuite/libffi.call/cls_align_uint32.c,
2763         testsuite/libffi.call/cls_align_sint16.c,
2764         testsuite/libffi.call/cls_float.c,
2765         testsuite/libffi.call/cls_20byte.c,
2766         testsuite/libffi.call/cls_5_1_byte.c,
2767         testsuite/libffi.call/nested_struct2.c,
2768         testsuite/libffi.call/cls_24byte.c,
2769         testsuite/libffi.call/nested_struct4.c,
2770         testsuite/libffi.call/nested_struct6.c,
2771         testsuite/libffi.call/cls_64byte.c,
2772         testsuite/libffi.call/nested_struct8.c,
2773         testsuite/libffi.call/cls_uint.c,
2774         testsuite/libffi.call/cls_multi_ushortchar.c,
2775         testsuite/libffi.call/cls_schar.c,
2776         testsuite/libffi.call/cls_uchar.c,
2777         testsuite/libffi.call/cls_align_uint64.c,
2778         testsuite/libffi.call/cls_ulonglong.c,
2779         testsuite/libffi.call/cls_align_longdouble.c,
2780         testsuite/libffi.call/cls_1_1byte.c,
2781         testsuite/libffi.call/cls_12byte.c,
2782         testsuite/libffi.call/cls_3_1byte.c,
2783         testsuite/libffi.call/cls_3byte1.c,
2784         testsuite/libffi.call/cls_4_1byte.c,
2785         testsuite/libffi.call/cls_6_1_byte.c,
2786         testsuite/libffi.call/cls_16byte.c,
2787         testsuite/libffi.call/cls_18byte.c,
2788         testsuite/libffi.call/closure_fn0.c,
2789         testsuite/libffi.call/cls_9byte2.c,
2790         testsuite/libffi.call/closure_fn2.c,
2791         testsuite/libffi.call/closure_fn4.c,
2792         testsuite/libffi.call/cls_ushort.c,
2793         testsuite/libffi.call/closure_fn6.c,
2794         testsuite/libffi.call/cls_5byte.c,
2795         testsuite/libffi.call/cls_align_pointer.c,
2796         testsuite/libffi.call/cls_7byte.c,
2797         testsuite/libffi.call/cls_align_sint32.c,
2798         testsuite/libffi.special/unwindtest_ffi_call.cc,
2799         testsuite/libffi.special/unwindtest.cc: Enable for ARM.
2800
2801 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2802
2803         * aclocal.m4: Regenerated.
2804
2805 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2806
2807         * configure: Regenerate.
2808
2809 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2810
2811         * Makefile.in: Regenerate.
2812         * configure: Regenerate.
2813         * aclocal.m4: Regenerate.
2814         * include/Makefile.in: Regenerate.
2815         * testsuite/Makefile.in: Regenerate.
2816
2817 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
2818
2819         * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
2820         ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
2821         * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
2822         * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
2823         (FFI_CLOSURES): Enable closure support.
2824
2825 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
2826
2827         * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
2828         * configure: Regenerate.
2829         * fficonfig.h.in: Regenerate.
2830         * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
2831         CFI_OFFSET,CFI_DEF_CFA): New macros.
2832         (ffi_call_SYSV): Add callframe annotation.
2833
2834 2007-05-10  Roman Zippel <zippel@linux-m68k.org>
2835
2836         * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
2837         numerous test suite failures.
2838         * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
2839
2840 2007-04-11  Paolo Bonzini  <bonzini@gnu.org>
2841
2842         * Makefile.am (EXTRA_DIST): Bring up to date.
2843         * Makefile.in: Regenerate.
2844         * src/frv/eabi.S: Remove RCS keyword.
2845
2846 2007-04-06  Richard Henderson  <rth@redhat.com>
2847
2848         * configure.ac: Tidy target case.
2849         (HAVE_LONG_DOUBLE): Allow the target to override.
2850         * configure: Regenerate.
2851         * include/ffi.h.in: Don't define ffi_type_foo if
2852         LIBFFI_HIDE_BASIC_TYPES is defined.
2853         (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
2854         to ffi_type_double.
2855         * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
2856         (FFI_TYPEDEF, ffi_type_void): Mark the data const.
2857         (ffi_type_longdouble): Special case for Alpha.  Don't define
2858         if long double == double.
2859
2860         * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
2861         (ffi_prep_cif_machdep): Handle it as the 128-bit type.
2862         (ffi_call, ffi_closure_osf_inner): Likewise.
2863         (ffi_closure_osf_inner): Likewise.  Mark hidden.
2864         (ffi_call_osf, ffi_closure_osf): Mark hidden.
2865         * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
2866         * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
2867         (load_table): Handle 128-bit long double.
2868
2869         * testsuite/libffi.call/float4.c: Add -mieee for alpha.
2870
2871 2007-04-06  Tom Tromey  <tromey@redhat.com>
2872
2873         PR libffi/31491:
2874         * README: Fixed bug in example.
2875
2876 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
2877
2878         * src/closures.c: Include sys/statfs.h.
2879         (_GNU_SOURCE): Define on Linux.
2880         (FFI_MMAP_EXEC_SELINUX): Define.
2881         (selinux_enabled): New variable.
2882         (selinux_enabled_check): New function.
2883         (is_selinux_enabled): Define.
2884         (dlmmap): Use it.
2885
2886 2007-03-24  Uros Bizjak  <ubizjak@gmail.com>
2887
2888         * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
2889         Use 'volatile float sum' to create sum of floats to avoid false
2890         negative due to excess precision on ix86 targets.
2891         (main): Ditto.
2892
2893 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
2894
2895         * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
2896         patch.
2897         (ffi_prep_closure_loc): Remove unneeded casts.  Add needed ones.
2898
2899 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
2900
2901         * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
2902         (ffi_prep_closure_loc): New.
2903         (ffi_prep_raw_closure_loc): New.
2904         (ffi_prep_java_raw_closure_loc): New.
2905         * src/closures.c: New file.
2906         * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
2907         Replace sflags with exec_offset.
2908         [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
2909         sub_segment_exec_offset): New macros.
2910         (get_segment_flags, set_segment_flags, check_segment_merge): New
2911         macros.
2912         (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
2913         (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
2914         destroy_mspace): Use new macros.
2915         (sys_alloc): Silence warning.
2916         * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
2917         * Makefile.in: Rebuilt.
2918         * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
2919         terms of ffi_prep_closure_loc.
2920         * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
2921         from...
2922         (ffi_prep_raw_closure): ... this.  Re-implement in terms of the
2923         renamed version.
2924         * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
2925         adjusted from...
2926         (ffi_prep_java_raw_closure): ... this.  Re-implement in terms of
2927         the renamed version.
2928         * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
2929         (ffi_prep_closure): ... this.
2930         * src/pa/ffi.c: Likewise.
2931         * src/cris/ffi.c: Likewise.  Adjust.
2932         * src/frv/ffi.c: Likewise.
2933         * src/ia64/ffi.c: Likewise.
2934         * src/mips/ffi.c: Likewise.
2935         * src/powerpc/ffi_darwin.c: Likewise.
2936         * src/s390/ffi.c: Likewise.
2937         * src/sh/ffi.c: Likewise.
2938         * src/sh64/ffi.c: Likewise.
2939         * src/sparc/ffi.c: Likewise.
2940         * src/x86/ffi64.c: Likewise.
2941         * src/x86/ffi.c: Likewise.
2942         (FFI_INIT_TRAMPOLINE): Adjust.
2943         (ffi_prep_raw_closure_loc): Renamed and adjusted from...
2944         (ffi_prep_raw_closure): ... this.
2945         * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
2946         (ffi_prep_closure): ... this.
2947         (flush_icache): Adjust.
2948
2949 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
2950
2951         * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
2952         Lea's malloc.
2953
2954 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2955
2956         * Makefile.am: Add dummy install-pdf target.
2957         * Makefile.in: Regenerate
2958
2959 2007-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
2960
2961         * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
2962         ffi_closure_helper_SYSV): Add long double handling.
2963
2964 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
2967         immediately after bctrl instruction.
2968
2969 2007-01-18  Alexandre Oliva  <aoliva@redhat.com>
2970
2971         * Makefile.am (all-recursive, install-recursive,
2972         mostlyclean-recursive, clean-recursive, distclean-recursive,
2973         maintainer-clean-recursive): Add missing targets.
2974         * Makefile.in: Rebuilt.
2975
2976 2006-12-14  Andreas Tobler  <a.tobler@schweiz.org>
2977
2978         * configure.ac: Add TARGET for x86_64-*-darwin*.
2979         * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
2980         for X86_DARWIN.
2981         * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
2982         * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
2983         * configure: Regenerate.
2984         * Makefile.in: Regenerate.
2985         * include/Makefile.in: Regenerate.
2986         * testsuite/Makefile.in: Regenerate.
2987         * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
2988         ffi_call only.
2989
2990 2006-12-13  Andreas Tobler <a.tobler@schweiz.org>
2991
2992         * aclocal.m4: Regenerate with aclocal -I .. as written in the
2993         Makefile.am.
2994
2995 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
2996
2997         * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
2998         (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
2999         Darwin.
3000         * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3001         * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3002
3003 2006-10-10  Paolo Bonzini  <bonzini@gnu.org>
3004             Sandro Tolaini  <tolaini@libero.it>
3005
3006         * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
3007         conditional.
3008         * configure: Regenerated.
3009         * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3010         (EXTRA_DIST): Add src/x86/darwin.S.
3011         * Makefile.in: Regenerated.
3012         * include/Makefile.in: Regenerated.
3013         * testsuite/Makefile.in: Regenerated.
3014
3015         * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3016         X86_WIN32, and additionally align stack to 16 bytes.
3017         * src/x86/darwin.S: New, based on sysv.S.
3018         * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3019
3020 2006-09-12  David Daney  <ddaney@avtrex.com>
3021
3022         PR libffi/23935
3023         * include/Makefile.am: Install both ffi.h and ffitarget.h in
3024         $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3025         * aclocal.m4: Regenerated for automake 1.9.6.
3026         * Makefile.in: Regenerated.
3027         * include/Makefile.in: Regenerated.
3028         * testsuite/Makefile.in: Regenerated.
3029
3030 2006-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
3031
3032         * include/ffi_common.h (struct): Revert accidental commit.
3033
3034 2006-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
3035
3036         * include/ffi_common.h: Remove lint directives.
3037         * include/ffi.h.in: Likewise.
3038
3039 2006-07-25  Torsten Schoenfeld  <kaffeetisch@gmx.de>
3040
3041         * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3042         for 32-bit architectures.
3043         * testsuite/libffi.call/return_ul.c: New test case.
3044
3045 2006-07-19  David Daney  <ddaney@avtrex.com>
3046
3047         * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3048         xfail remains for mips64.
3049
3050 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3051
3052         * Makefile.am: Add install-html target. Add install-html to .PHONY
3053         * Makefile.in: Regenerate.
3054         * aclocal.m4: Regenerate.
3055         * include/Makefile.in: Regenerate.
3056         * testsuite/Makefile.in: Regenerate.
3057
3058 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3059
3060         * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3061         stack slot.
3062
3063 2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>
3064
3065         * README: Remove notice about 'Crazy Comments'.
3066         * src/debug.c: Remove lint directives. Cleanup white spaces.
3067         * src/java_raw_api.c: Likewise.
3068         * src/prep_cif.c: Likewise.
3069         * src/raw_api.c: Likewise.
3070         * src/ffitest.c: Delete. No longer needed, all test cases migrated
3071         to the testsuite.
3072         * src/arm/ffi.c: Remove lint directives.
3073         * src/m32r/ffi.c: Likewise.
3074         * src/pa/ffi.c: Likewise.
3075         * src/powerpc/ffi.c: Likewise.
3076         * src/powerpc/ffi_darwin.c: Likewise.
3077         * src/sh/ffi.c: Likewise.
3078         * src/sh64/ffi.c: Likewise.
3079         * src/x86/ffi.c: Likewise.
3080         * testsuite/libffi.call/float2.c: Likewise.
3081         * testsuite/libffi.call/promotion.c: Likewise.
3082         * testsuite/libffi.call/struct1.c: Likewise.
3083
3084 2006-04-13  Andreas Tobler  <a.tobler@schweiz.ch>
3085
3086         * src/pa/hpux32.S: Correct unwind offset calculation for
3087         ffi_closure_pa32.
3088         * src/pa/linux.S: Likewise.
3089
3090 2006-04-12  James E Wilson  <wilson@specifix.com>
3091
3092         PR libgcj/26483
3093         * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3094         (hfa_type_load): Call stf_spill.
3095         (hfa_type_store): Call ldf_fill.
3096         (ffi_call): Adjust calls to above routines.  Add local temps for
3097         macro result.
3098
3099 2006-04-10  Matthias Klose  <doko@debian.org>
3100
3101         * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3102         directory names containing underscores.
3103
3104 2006-04-07  James E Wilson  <wilson@specifix.com>
3105
3106         * testsuite/libffi.call/float4.c: New testcase.
3107
3108 2006-04-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3109             Andreas Tobler  <a.tobler@schweiz.ch>
3110
3111         * Makefile.am: Add PA_HPUX port.
3112         * Makefile.in: Regenerate.
3113         * include/Makefile.in: Likewise.
3114         * testsuite/Makefile.in: Likewise.
3115         * configure.ac: Add PA_HPUX rules.
3116         * configure: Regenerate.
3117         * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3118         Add PA_HPUX and PA64_HPUX.
3119         Rename FFI_LINUX ABI to FFI_PA32 ABI.
3120         (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3121         (FFI_TYPE_SMALL_STRUCT2): Define.
3122         (FFI_TYPE_SMALL_STRUCT4): Likewise.
3123         (FFI_TYPE_SMALL_STRUCT8): Likewise.
3124         (FFI_TYPE_SMALL_STRUCT3): Redefine.
3125         (FFI_TYPE_SMALL_STRUCT5): Likewise.
3126         (FFI_TYPE_SMALL_STRUCT6): Likewise.
3127         (FFI_TYPE_SMALL_STRUCT7): Likewise.
3128         * src/pa/ffi.c (ROUND_DOWN): Delete.
3129         (fldw, fstw, fldd, fstd): Use '__asm__'.
3130         (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3131         FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3132         (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3133         Simplify incrementing of stack slot variable. Change type of local
3134         'n' to unsigned int.
3135         (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3136         double on PA_HPUX.
3137         (ffi_prep_cif_machdep): Likewise.
3138         (ffi_call): Likewise.
3139         (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3140         return type to ffi_status. Simplify incrementing of stack slot
3141         variable. Only copy floating point argument registers when PA_LINUX
3142         is true. Reformat debug statement.
3143         Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3144         FFI_TYPE_SMALL_STRUCT8.
3145         (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3146         declaration.
3147         (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3148         Add nops to cache flush.  Add trampoline for PA_HPUX.
3149         * src/pa/hpux32.S: New file.
3150         * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3151         ffi_prep_args_LINUX to ffi_prep_args_pa32.
3152         Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3153         unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3154         argument type checks so that common argument types appear first.
3155         (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3156         ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3157
3158 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
3159
3160         * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX.  Default
3161         for 32-bit using IBM extended double format.  Fix FFI_LAST_ABI.
3162         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3163         FFI_TYPE_LONGDOUBLE.
3164         (ffi_prep_args64): Assert using IBM extended double.
3165         (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3166         Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3167         (ffi_call): Handle FFI_LINUX.
3168         (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3169         gpr3 return pointer as for struct return.  Handle FFI_LINUX
3170         FFI_TYPE_LONGDOUBLE return and args.  Don't increment "nf"
3171         unnecessarily.
3172         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3173         for FFI_TYPE_LONGDOUBLE.  Move epilogue insns into case table.
3174         Don't use r6 as pointer to results, instead use sp offset.  Don't
3175         make a special call to load lr with case table address, instead
3176         use offset from previous call.
3177         * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3178         * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3179         return.
3180
3181 2006-03-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3182
3183         * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3184         passed with FP registers correctly.
3185         (ffi_closure_helper_SYSV): Likewise.
3186         * src/sh64/sysv.S: Likewise.
3187
3188 2006-03-01  Andreas Tobler  <a.tobler@schweiz.ch>
3189
3190         * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3191         args and userdata unused.
3192         (closure_test_fn1): Mark cif and userdata unused.
3193         (main): Remove unused res.
3194
3195 2006-02-28  Andreas Tobler  <a.tobler@schweiz.ch>
3196
3197         * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3198         -O2, -O3, -Os and the warning flags -W -Wall.
3199         * testsuite/libffi.special/special.exp: Likewise.
3200         * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3201         unused parameter unused for gcc or else do nothing.
3202         * testsuite/libffi.special/ffitestcxx.h: Likewise.
3203         * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3204         and userdata unused.
3205         * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3206         * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3207         * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3208         * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3209         * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3210         * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3211         * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3212         * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3213         * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3214         * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3215         * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3216         * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3217         * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3218         * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3219         * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3220         * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3221         * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3222         * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3223         * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3224         * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3225         * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3226         * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3227         * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3228         * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3229         Likewise.
3230         * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3231         Likewise.
3232         * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3233         Likewise.
3234         * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3235         void* to avoid compiler warning.
3236         (main): Likewise.
3237         (cls_struct_align_gn): Mark cif and userdata unused.
3238         * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3239         Likewise.
3240         * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3241         Likewise.
3242         * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3243         Likewise.
3244         * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3245         Likewise.
3246         * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3247         Likewise.
3248         * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3249         * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3250         * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3251         data unused.
3252         (main): Cast res_call to silence gcc.
3253         * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3254         data unused.
3255         (main): Cast res_call to silence gcc.
3256         * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3257         and data unused.
3258         (main): Cast res_call to silence gcc.
3259         * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3260         data unused.
3261         (main): Cast res_call to silence gcc.
3262         * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3263         data unused.
3264         (main): Cast res_call to silence gcc.
3265         * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3266         and data unused.
3267         (main): Cast res_call to silence gcc.
3268         * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3269         userdata unused.
3270         (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3271         * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3272         userdata unused.
3273         (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3274         * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3275         userdata unused.
3276         (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3277         * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn):  Mark cif and
3278         userdata unused.
3279         (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3280         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3281         userdata unused.
3282         (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3283         * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3284         and userdata unused.
3285         * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3286         userdata unused.
3287         (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3288         * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3289         * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3290         Cleanup white spaces.
3291         * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3292         * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3293         cif and userdata unused.
3294         * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3295         Likewise.
3296         * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3297         * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3298         formatters to silence gcc.
3299         (B_gn): Mark cif and userdata unused.
3300         * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3301         unused.
3302         * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3303         (B_gn): Mark cif and userdata unused.
3304         * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3305         unused.
3306         * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3307         (B_gn): Mark cif and userdata unused.
3308         * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3309         unused.
3310         * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3311         * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3312         * testsuite/libffi.call/problem1.c (stub): Likewise.
3313         * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3314         gcc.
3315         * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3316         in the last commit for this test case in the test case itself.
3317         * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3318         unused.
3319         * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3320         * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3321         * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3322         * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3323         * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3324         * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3325
3326 2006-02-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3327
3328         * src/sh/sysv.S: Fix register numbers in the FDE for
3329         ffi_closure_SYSV.
3330
3331 2006-02-20  Andreas Tobler  <a.tobler@schweiz.ch>
3332
3333         * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3334         declaration to avoid a false negative on ix86. See PR323.
3335
3336 2006-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3337
3338         * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3339         and cast integer to void * if needed.  Update the pointer to
3340         the FP register saved area correctly.
3341
3342 2006-02-17  Andreas Tobler  <a.tobler@schweiz.ch>
3343
3344         * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3345         is fixed.
3346         * testsuite/libffi.call/nested_struct4.c: Likewise.
3347
3348 2006-02-16  Andreas Tobler  <a.tobler@schweiz.ch>
3349
3350         * testsuite/libffi.call/return_dbl.c: New test case.
3351         * testsuite/libffi.call/return_dbl1.c: Likewise.
3352         * testsuite/libffi.call/return_dbl2.c: Likewise.
3353         * testsuite/libffi.call/return_fl.c: Likewise.
3354         * testsuite/libffi.call/return_fl1.c: Likewise.
3355         * testsuite/libffi.call/return_fl2.c: Likewise.
3356         * testsuite/libffi.call/return_fl3.c: Likewise.
3357         * testsuite/libffi.call/closure_fn6.c: Likewise.
3358
3359         * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3360         definition.
3361         * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3362         here to be used by other test cases too.
3363
3364         * testsuite/libffi.call/nested_struct10.c: New test case.
3365         * testsuite/libffi.call/nested_struct9.c: Likewise.
3366         * testsuite/libffi.call/nested_struct8.c: Likewise.
3367         * testsuite/libffi.call/nested_struct7.c: Likewise.
3368         * testsuite/libffi.call/nested_struct6.c: Likewise.
3369         * testsuite/libffi.call/nested_struct5.c: Likewise.
3370         * testsuite/libffi.call/nested_struct4.c: Likewise.
3371
3372 2006-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
3373
3374         * configure.ac: Enable libffi for sparc64-*-freebsd*.
3375         * configure: Rebuilt.
3376
3377 2006-01-18  Jakub Jelinek  <jakub@redhat.com>
3378
3379         * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3380         instead do the shifting inline.
3381         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3382         shift count unconditionally.  Simplify load sequences for 1, 2, 3, 4
3383         and 8 byte structs, for the remaining struct sizes don't call
3384         __lshrdi3, instead do the shifting inline.
3385
3386 2005-12-07  Thiemo Seufer  <ths@networkno.de>
3387
3388         * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3389         missing parentheses.
3390         * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3391         and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3392         (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3393         A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3394         V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3395         FA_0_0_OFF2.
3396         * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3397         endianness bugs.
3398         (ffi_prep_closure): Improve trampoline instruction scheduling.
3399         (ffi_closure_mips_inner_O32): Fix endianness bugs.
3400
3401 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
3402
3403         * src/powerpc/ffi.c: Formatting.
3404         (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3405         (ffi_prep_args64): Likewise.
3406
3407 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
3408
3409         * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3410         darwin, use -shared-libgcc not -lgcc_s, and explain why.
3411
3412 2005-09-26  Tom Tromey  <tromey@redhat.com>
3413
3414         * testsuite/libffi.call/float1.c (value_type): New typedef.
3415         (CANARY): New define.
3416         (main): Check for result buffer overflow.
3417         * src/powerpc/linux64.S: Handle linux64 long double returns.
3418         * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3419         (ffi_prep_cif_machdep): Handle linux64 long double returns.
3420
3421 2005-08-25  Alan Modra  <amodra@bigpond.net.au>
3422
3423         PR target/23404
3424         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3425         homed fp args.
3426         (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3427
3428 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
3429
3430         * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3431         (AH_BOTTOM): Add FFI_HIDDEN definition.
3432         * configure: Rebuilt.
3433         * fficonfig.h.in: Rebuilt.
3434         * src/powerpc/ffi.c (hidden): Remove.
3435         (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3436         ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3437         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3438         .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3439         * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3440         add FFI_HIDDEN to its prototype.
3441         (ffi_closure_SYSV_inner): New.
3442         * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3443         * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3444
3445 2005-08-10  Alfred M. Szmidt  <ams@gnu.org>
3446
3447         PR libffi/21819:
3448         * configure: Rebuilt.
3449         * configure.ac: Handle i*86-*-gnu*.
3450
3451 2005-08-09  Jakub Jelinek  <jakub@redhat.com>
3452
3453         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3454         DW_CFA_offset_extended_sf rather than
3455         DW_CFA_GNU_negative_offset_extended.
3456         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3457
3458 2005-07-22  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3459
3460         * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3461         on sh3.
3462         (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3463         * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3464         partially on register.
3465         (ffi_closure_helper_SYSV): Likewise.
3466         (ffi_prep_cif_machdep): Don't set too many cif->flags.
3467
3468 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3469
3470         * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3471         Remove empty line.
3472         * src/sh64/ffi.c (simple_type): Remove.
3473         (return_type): Handle small structures correctly.
3474         (ffi_prep_args): Likewise.
3475         (ffi_call): Likewise.
3476         (ffi_closure_helper_SYSV): Likewise.
3477         * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3478         Emit position independent code if PIC and remove wrong datalabel
3479         prefixes from EH data.
3480
3481 2005-07-19  Andreas Tobler  <a.tobler@schweiz.ch>
3482
3483         * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3484         * Makefile.in: Regenerate.
3485         * include/Makefile.in: Likewise.
3486         * testsuite/Makefile.in: Likewise.
3487         * configure.ac: Add POWERPC_FREEBSD rules.
3488         * configure: Regenerate.
3489         * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3490         (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3491         * src/powerpc/ffi.c: Add flags to handle small structure returns
3492         in ffi_call_SYSV.
3493         (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3494         Aka FFI_SYSV.
3495         (ffi_closure_helper_SYSV): Likewise.
3496         * src/powerpc/ppc_closure.S: Add return types for small structures.
3497         * src/powerpc/sysv.S: Add bits to handle small structures for
3498         final SYSV 4 ABI.
3499
3500 2005-07-10  Andreas Tobler  <a.tobler@schweiz.ch>
3501
3502         * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3503         * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3504         * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3505
3506 2005-07-05  Randolph Chung  <tausq@debian.org>
3507
3508         * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3509         as FFI_TYPE_SMALL_STRUCT3.  Break out handling for 5-7 byte
3510         structures.  Kill compilation warnings.
3511         (ffi_closure_inner_LINUX): Print return values as hex in debug
3512         message.  Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3513         Properly handle 5-7 byte structure returns.
3514         * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3515         (FFI_TYPE_SMALL_STRUCT2): Remove.
3516         (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3517         (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3518         * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3519         (checksmst1, checksmst2): Remove.
3520         (checksmst3): Optimize handling of 3-byte struct returns.
3521         (checksmst567): Properly handle 5-7 byte struct returns.
3522
3523 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3524
3525         PR libgcj/21943
3526         * src/mips/n32.S: Enforce PIC code.
3527         * src/mips/o32.S: Likewise.
3528
3529 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3530
3531         * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3532         * configure: Regenerate.
3533
3534 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
3535
3536         * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3537         to call ffi_closure_helper_SYSV.  Append @local instead.
3538         * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3539
3540 2005-05-17  Kelley Cook  <kcook@gcc.gnu.org>
3541
3542         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3543         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3544         * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3545         * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3546         include/Makefile.in, testsuite/Makefile.in: Regenerate.
3547
3548 2005-05-09  Mike Stump  <mrs@apple.com>
3549
3550         * configure: Regenerate.
3551
3552 2005-05-08  Richard Henderson  <rth@redhat.com>
3553
3554         PR libffi/21285
3555         * src/alpha/osf.S: Update unwind into to match code.
3556
3557 2005-05-04  Andreas Degert <ad@papyrus-gmbh.de>
3558             Richard Henderson  <rth@redhat.com>
3559
3560         * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3561         bit 11 of flags.
3562         (ffi_call): Mask return type field.  Pass ssecount to ffi_call_unix64.
3563         (ffi_prep_closure): Set carry bit if sse-used flag set.
3564         * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3565         Only load sse registers if ssecount non-zero.
3566         (ffi_closure_unix64): Only save sse registers if carry set on entry.
3567
3568 2005-04-29  Ralf Corsepius  <ralf.corsepius@rtems.org>
3569
3570         * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3571         powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3572         * configure: Regenerate.
3573
3574 2005-04-20  Hans-Peter Nilsson  <hp@axis.com>
3575
3576         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3577         have Tcl8.3-compatible intermediate variable.
3578
3579 2005-04-18  Simon Posnjak <simon.posnjak@siol.net>
3580             Hans-Peter Nilsson  <hp@axis.com>
3581
3582         * Makefile.am: Add CRIS support.
3583         * configure.ac: Likewise.
3584         * Makefile.in, configure, testsuite/Makefile.in,
3585         include/Makefile.in: Regenerate.
3586         * src/cris: New directory.
3587         * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3588         * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3589
3590         * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3591         \r?\n in output tests.
3592
3593 2005-04-12  Mike Stump  <mrs@apple.com>
3594
3595         * configure: Regenerate.
3596
3597 2005-03-30  Hans Boehm  <Hans.Boehm@hp.com>
3598
3599         * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
3600
3601 2005-03-30  Steve Ellcey  <sje@cup.hp.com>
3602
3603         * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3604         (ffi_sarg) Ditto.
3605         * src/ia64/unix.S (ffi_closure_unix): Extend gp
3606         to 64 bits in ILP32 mode.
3607         Load 64 bits even for short data.
3608
3609 2005-03-23  Mike Stump  <mrs@apple.com>
3610
3611         * src/powerpc/darwin.S: Update for -m64 multilib.
3612         * src/powerpc/darwin_closure.S: Likewise.
3613
3614 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
3615
3616         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3617         Do not set tool_include_dir.
3618         * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3619         Regenerate.
3620         * include/Makefile.am: Set gcc_version and toollibffidir.
3621         * include/Makefile.in: Regenerate.
3622
3623 2005-02-22  Andrew Haley  <aph@redhat.com>
3624
3625         * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3626         odd-numbered register pairs for 64-bit integer types.
3627
3628 2005-02-23  Andreas Tobler  <a.tobler@schweiz.ch>
3629
3630         PR libffi/20104
3631         * testsuite/libffi.call/return_ll1.c: New test case.
3632
3633 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
3634
3635         * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3636         * testsuite/libffi.call/float.c: Ditto.
3637         * testsuite/libffi.call/float2.c: Ditto.
3638         * testsuite/libffi.call/float3.c: Ditto.
3639
3640 2005-02-08  Andreas Tobler  <a.tobler@schweiz.ch>
3641
3642         * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3643
3644 2005-01-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3645
3646         * testsuite/libffi.special/special.exp (cxx_options): Add
3647         -shared-libgcc.
3648
3649 2004-12-31  Richard Henderson  <rth@redhat.com>
3650
3651         * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3652         (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF.  Replace size and
3653         offset parameters with a type parameter; deduce size and structure
3654         alignment.  Update all users.
3655
3656 2004-12-31  Richard Henderson  <rth@redhat.com>
3657
3658         * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3659         (FFI_TYPE_LONGDOUBLE): Fix for ia64.
3660         * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
3661         into ffi_prep_closure.
3662         * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3663         from scratch.
3664
3665 2004-12-27  Richard Henderson  <rth@redhat.com>
3666
3667         * src/x86/unix64.S: Fix typo in unwind info.
3668
3669 2004-12-25  Richard Henderson  <rth@redhat.com>
3670
3671         * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3672         (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3673         (merge_classes): Check for it.
3674         (SSE_CLASS_P): New.
3675         (classify_argument): Pass byte_offset by value; perform all updates
3676         inside struct case.
3677         (examine_argument): Add classes argument; handle
3678         X86_64_COMPLEX_X87_CLASS.
3679         (ffi_prep_args): Merge into ...
3680         (ffi_call): ... here.  Share stack frame with ffi_call_unix64.
3681         (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3682         (ffi_fill_return_value): Remove.
3683         (ffi_prep_closure): Remove dead assert.
3684         (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
3685         Rewrite to use struct register_args instead of va_list.  Create
3686         flags for handling structure returns.
3687         * src/x86/unix64.S: Remove dead strings.
3688         (ffi_call_unix64): Rename from ffi_call_UNIX64.  Rewrite to share
3689         stack frame with ffi_call.  Handle structure returns properly.
3690         (float2sse, floatfloat2sse, double2sse): Remove.
3691         (sse2float, sse2double, sse2floatfloat): Remove.
3692         (ffi_closure_unix64): Rename from ffi_closure_UNIX64.  Rewrite
3693         to handle structure returns properly.
3694
3695 2004-12-08  David Edelsohn  <edelsohn@gnu.org>
3696
3697         * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
3698         PICFLAG.
3699         * Makefile.in: Regenerated.
3700
3701 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
3702
3703         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
3704         * configure, aclocal.m4, Makefile.in: Regenerate.
3705         * include/Makefile.in, testsuite/Makefile.in: Regenerate.
3706
3707 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
3708
3709         * configure: Regenerate for libtool change.
3710
3711 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
3712
3713         * configure: Regenerate for libtool reversion.
3714
3715 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
3716
3717         * configure: Regenerate for libtool change.
3718
3719 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3720
3721         * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
3722
3723 2004-11-23  Richard Sandiford  <rsandifo@redhat.com>
3724
3725         * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
3726         of jal.  Use an absolute encoding for the frame information.
3727
3728 2004-11-23  Kelley Cook  <kcook@gcc.gnu.org>
3729
3730         * Makefile.am: Remove no-dependencies.  Add ACLOCAL_AMFLAGS.
3731         * acinclude.m4: Delete logic for sincludes.
3732         * aclocal.m4, Makefile.in, configure: Regenerate.
3733         * include/Makefile: Likewise.
3734         * testsuite/Makefile: Likewise.
3735
3736 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3737
3738         * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
3739         on a 8-byte boundary.
3740         * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
3741
3742 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
3743
3744         * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
3745         long long values.  Round stack allocation to a multiple of 8 bytes
3746         for ATPCS compatibility.
3747         * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
3748         names.  Handle returning long long types.  Add Thumb and interworking
3749         support.  Improve soft-float code.
3750
3751 2004-10-27  Richard Earnshaw  <rearnsha@arm.com>
3752
3753         * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
3754         (libffi_exit): New function.
3755         (libffi_init): Build the testglue wrapper if needed.
3756
3757 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3758
3759         PR other/18138
3760         * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
3761
3762 2004-10-25  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3763
3764         * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
3765
3766 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3767
3768         * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
3769         * testsuite/libffi.call/float3.c: New test case.
3770
3771 2004-10-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3772
3773         * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
3774         the function returning a structure pointed with R2.
3775         * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
3776         the structure return value if T bit set.  Emit position
3777         independent code and EH data if PIC.
3778
3779 2004-10-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3780
3781         * Makefile.am: Add m32r support.
3782         * configure.ac: Likewise.
3783         * Makefile.in: Regenerate.
3784         * confiugre: Regenerate.
3785         * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
3786         (uint64, sint64, double, longdouble)
3787         * src/m32r: New directory.
3788         * src/m32r/ffi.c: New file.
3789         * src/m32r/sysv.S: Likewise.
3790         * src/m32r/ffitarget.h: Likewise.
3791
3792 2004-10-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3793
3794         * testsuite/libffi.call/negint.c: New test case.
3795
3796 2004-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3797
3798         PR libgcj/17465
3799         * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
3800         Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
3801         LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
3802         DYLD_LIBRARY_PATH.
3803
3804 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
3805
3806         * testsuite/libffi.call/many_win32.c: Remove whitespaces.
3807         * testsuite/libffi.call/promotion.c: Likewise.
3808         * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
3809         whitespaces.
3810         * testsuite/libffi.call/return_sc.c: Likewise.
3811         * testsuite/libffi.call/return_uc.c: Likewise.
3812
3813 2004-09-05  Andreas Tobler  <a.tobler@schweiz.ch>
3814
3815         * src/powerpc/darwin.S: Fix comments and identation.
3816         * src/powerpc/darwin_closure.S: Likewise.
3817
3818 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
3819
3820         * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
3821         (ffi_prep_args): Handle longdouble arguments.
3822         (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
3823         longdouble.
3824         (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
3825         * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
3826         values.
3827         * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
3828         * src/types.c: Defined longdouble size and alignment for darwin.
3829
3830 2004-09-02  Andreas Tobler  <a.tobler@schweiz.ch>
3831
3832         * src/powerpc/aix.S: Remove whitespaces.
3833         * src/powerpc/aix_closure.S: Likewise.
3834         * src/powerpc/asm.h: Likewise.
3835         * src/powerpc/ffi.c: Likewise.
3836         * src/powerpc/ffitarget.h: Likewise.
3837         * src/powerpc/linux64.S: Likewise.
3838         * src/powerpc/linux64_closure.S: Likewise.
3839         * src/powerpc/ppc_closure.S: Likewise.
3840         * src/powerpc/sysv.S: Likewise.
3841
3842 2004-08-30  Anthony Green  <green@redhat.com>
3843
3844         * Makefile.am: Add frv support.
3845         * Makefile.in, testsuite/Makefile.in: Rebuilt.
3846         * configure.ac: Read configure.host.
3847         * configure.in: Read configure.host.
3848         * configure.host: New file.  frv-elf needs libgloss.
3849         * include/ffi.h.in: Force ffi_closure to have a nice big (8)
3850         alignment.  This is needed to frv and shouldn't harm the others.
3851         * include/ffi_common.h (ALIGN_DOWN): New macro.
3852         * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
3853
3854 2004-08-24  David Daney  <daney@avtrex.com>
3855
3856         * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
3857         * testsuite/libffi.call/closure_fn1.c: Likewise.
3858         * testsuite/libffi.call/closure_fn2.c  Likewise.
3859         * testsuite/libffi.call/closure_fn3.c: Likewise.
3860         * testsuite/libffi.call/closure_fn4.c: Likewise.
3861         * testsuite/libffi.call/closure_fn5.c: Likewise.
3862         * testsuite/libffi.call/cls_18byte.c: Likewise.
3863         * testsuite/libffi.call/cls_19byte.c: Likewise.
3864         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3865         * testsuite/libffi.call/cls_20byte.c: Likewise.
3866         * testsuite/libffi.call/cls_20byte1.c: Likewise.
3867         * testsuite/libffi.call/cls_24byte.c: Likewise.
3868         * testsuite/libffi.call/cls_2byte.c: Likewise.
3869         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3870         * testsuite/libffi.call/cls_3byte1.c: Likewise.
3871         * testsuite/libffi.call/cls_3byte2.c: Likewise.
3872         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3873         * testsuite/libffi.call/cls_4byte.c: Likewise.
3874         * testsuite/libffi.call/cls_64byte.c: Likewise.
3875         * testsuite/libffi.call/cls_6byte.c: Likewise.
3876         * testsuite/libffi.call/cls_7byte.c: Likewise.
3877         * testsuite/libffi.call/cls_8byte.c: Likewise.
3878         * testsuite/libffi.call/cls_9byte1.c: Likewise.
3879         * testsuite/libffi.call/cls_9byte2.c: Likewise.
3880         * testsuite/libffi.call/cls_align_double.c: Likewise.
3881         * testsuite/libffi.call/cls_align_float.c: Likewise.
3882         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
3883         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
3884         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
3885         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
3886         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
3887         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
3888         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
3889         * testsuite/libffi.call/cls_align_uint64.c: Likewise.
3890         * testsuite/libffi.call/cls_double.c: Likewise.
3891         * testsuite/libffi.call/cls_float.c: Likewise.
3892         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
3893         * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
3894         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
3895         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
3896         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
3897         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
3898         * testsuite/libffi.call/cls_schar.c: Likewise.
3899         * testsuite/libffi.call/cls_sint.c: Likewise.
3900         * testsuite/libffi.call/cls_sshort.c: Likewise.
3901         * testsuite/libffi.call/cls_uchar.c: Likewise.
3902         * testsuite/libffi.call/cls_uint.c: Likewise.
3903         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3904         * testsuite/libffi.call/cls_ushort.c: Likewise.
3905         * testsuite/libffi.call/nested_struct.c: Likewise.
3906         * testsuite/libffi.call/nested_struct1.c: Likewise.
3907         * testsuite/libffi.call/nested_struct2.c: Likewise.
3908         * testsuite/libffi.call/nested_struct3.c: Likewise.
3909         * testsuite/libffi.call/problem1.c: Likewise.
3910         * testsuite/libffi.special/unwindtest.cc: Likewise.
3911         * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
3912         to zero.
3913         * testsuite/libffi.call/cls_16byte.c: Likewise.
3914         * testsuite/libffi.call/cls_5byte.c: Likewise.
3915
3916 2004-08-23  David Daney <daney@avtrex.com>
3917
3918         PR libgcj/13141
3919         * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
3920         * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
3921         (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
3922         parameters and return types.
3923         (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
3924         (ffi_prep_closure): Ditto.
3925         (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
3926         alignment calculations.
3927         * src/mips/o32.S (ffi_closure_O32): Don't use floating point
3928         instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
3929
3930 2004-08-14  Casey Marshall <csm@gnu.org>
3931
3932         * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
3933         contain `FFI_TYPE_UINT64' as return type for any 64-bit
3934         integer (O32 ABI only).
3935         (ffi_prep_closure): new function.
3936         (ffi_closure_mips_inner_O32): new function.
3937         * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
3938         `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
3939         * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
3940         64 bit integers correctly.
3941         (ffi_closure_O32): new function.
3942         Added DWARF-2 unwind info for both functions.
3943
3944 2004-08-10  Andrew Haley  <aph@redhat.com>
3945
3946         * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
3947
3948 2004-08-01  Robert Millan  <robertmh@gnu.org>
3949
3950         * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
3951         * configure: Regenerate.
3952
3953 2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>
3954
3955         * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
3956         and mmap() explicitly instead of relying on preset autoconf cache
3957         variables.
3958         * aclocal.m4: Regenerate.
3959         * configure: Regenerate.
3960
3961 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
3962
3963         * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
3964         (ffi_check_float_struct): Remove unused prototype.
3965
3966 2004-06-30  Geoffrey Keating  <geoffk@apple.com>
3967
3968         * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
3969         character on Darwin, use '\n\t' instead.
3970
3971 2004-06-26  Matthias Klose  <doko@debian.org>
3972
3973         * libtool-version: Fix typo in revision/age.
3974
3975 2004-06-17  Matthias Klose  <doko@debian.org>
3976
3977         * libtool-version: New.
3978         * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
3979         * Makefile.in: Regenerate.
3980
3981 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
3982
3983         * Makefile.am: Remove useless multilib rules.
3984         * Makefile.in: Regenerate.
3985         * aclocal.m4: Regenerate with automake 1.8.5.
3986         * configure.ac: Remove useless multilib configury.
3987         * configure: Regenerate.
3988
3989 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
3990
3991         * .cvsignore: New file.
3992
3993 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
3994
3995         * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
3996         fp_done.
3997         (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
3998         changed from 8.
3999
4000 2004-06-06  Sean McNeil  <sean@mcneil.com>
4001
4002         * configure.ac: Add x86_64-*-freebsd* support.
4003         * configure: Regenerate.
4004
4005 2004-04-26  Joe Buck <jbuck@welsh-buck.org>
4006
4007         Bug 15093
4008         * configure.ac: Test for existence of mmap and sys/mman.h before
4009         checking blacklist.  Fix suggested by Jim Wilson.
4010         * configure: Regenerate.
4011
4012 2004-04-26  Matt Austern  <austern@apple.com>
4013
4014         * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4015         FDE location.
4016         * src/powerpc/darwin_closure.S: Likewise.
4017
4018 2004-04-24  Andreas Tobler  <a.tobler@schweiz.ch>
4019
4020         * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4021         error. Reported by Thomas Heller <theller@python.net>.
4022         * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4023         * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4024
4025 2004-03-20  Matthias Klose  <doko@debian.org>
4026
4027         * src/pa/linux.S: Fix typo.
4028
4029 2004-03-19  Matthias Klose  <doko@debian.org>
4030
4031         * Makefile.am: Update.
4032         * Makefile.in: Regenerate.
4033         * src/pa/ffi.h.in: Remove.
4034         * src/pa/ffitarget.h: New file.
4035
4036 2004-02-10  Randolph Chung  <tausq@debian.org>
4037
4038         * Makefile.am: Add PA support.
4039         * Makefile.in: Regenerate.
4040         * include/Makefile.in: Regenerate.
4041         * configure.ac: Add PA target.
4042         * configure: Regenerate.
4043         * src/pa/ffi.c: New file.
4044         * src/pa/ffi.h.in: Add PA support.
4045         * src/pa/linux.S: New file.
4046         * prep_cif.c: Add PA support.
4047
4048 2004-03-16  Hosaka Yuji  <hos@tamanegi.org>
4049
4050         * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4051         double.
4052         * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4053         with ecif->cif->flags.
4054         (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4055         with cif->flags.
4056         (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4057         (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4058         * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4059         sc_retstruct2b): Add for 1 or 2-bytes struct case.
4060
4061 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4062
4063         * configure.in: Rename file to ...
4064         * configure.ac: ... this.
4065         * fficonfig.h.in: Regenerate.
4066         * Makefile.in: Regenerate.
4067         * include/Makefile.in: Regenerate.
4068         * testsuite/Makefile.in: Regenerate.
4069
4070 2004-03-12  Matt Austern  <austern@apple.com>
4071
4072         * src/powerpc/darwin.S: Fix EH information so it corresponds to
4073         changes in EH format resulting from addition of linkonce support.
4074         * src/powerpc/darwin_closure.S: Likewise.
4075
4076 2004-03-11  Andreas Tobler  <a.tobler@schweiz.ch>
4077             Paolo Bonzini  <bonzini@gnu.org>
4078
4079         * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4080         Remove VPATH. Remove rules for object files. Remove multilib support.
4081         (AM_CCASFLAGS): Add.
4082         * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4083         (AC_PREREQ): Bump version to 2.59.
4084         (AC_INIT): Fill with version info and bug address.
4085         (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4086         (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4087         De-precious CC so that the right flags are passed down to multilibs.
4088         (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4089         (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4090         (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4091         * configure: Rebuilt.
4092         * aclocal.m4: Likewise.
4093         * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4094         * fficonfig.h.in: Likewise.
4095
4096 2004-03-11  Andreas Schwab  <schwab@suse.de>
4097
4098         * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4099         arguments from fp registers only for the first 8 parameter slots.
4100         Don't convert a float parameter when passed in memory.
4101
4102 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
4103
4104         * configure: Regenerate for config/accross.m4 correction.
4105
4106 2004-02-25  Matt Kraai  <kraai@alumni.cmu.edu>
4107
4108         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4109         ecif->cif->bytes to bytes.
4110         (ffi_prep_cif_machdep): Add braces around nested if statement.
4111
4112 2004-02-09  Alan Modra  <amodra@bigpond.net.au>
4113
4114         * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4115
4116         * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4117         (ffi_closure_helper_LINUX64): Fix typo.
4118         * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4119         for powerpc64-*-*.
4120         * testsuite/libffi.call/float.c: Likewise.
4121         * testsuite/libffi.call/float2.c: Likewise.
4122
4123 2004-02-08  Alan Modra  <amodra@bigpond.net.au>
4124
4125         * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4126         long double function return and long double arg handling.
4127         (ffi_closure_helper_LINUX64): Formatting.  Delete unused "ng" var.
4128         Use "end_pfr" instead of "nf".  Correct long double handling.
4129         Localise "temp".
4130         * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4131         return value.
4132         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4133         space for long double return value.  Adjust stack frame and offsets.
4134         Load f2 long double return.
4135
4136 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
4137
4138         * src/types.c: Use 16 byte long double for POWERPC64.
4139
4140 2004-01-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4141
4142         * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4143         when the structure return address is passed in %o0.
4144         (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4145         (ffi_v9_layout_struct): Align the field following a nested structure
4146         on a word boundary.  Use memmove instead of memcpy.
4147         (ffi_call): Update call to ffi_V9_return_struct.
4148         (ffi_prep_closure): Define 'ctx' only for V8.
4149         (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4150         and ffi_closure_sparc_inner_v9.
4151         (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4152         Always skip the structure return address.  For structures and long
4153         doubles, copy the argument directly.
4154         (ffi_closure_sparc_inner_v9): Skip the structure return address only
4155         if required.  Shift the maximum floating-point slot accordingly.  For
4156         big structures, copy the argument directly; otherwise, left-justify the
4157         argument and call ffi_v9_layout_struct to lay out the structure on
4158         the stack.
4159         * src/sparc/v8.S: Undef STACKFRAME before defining it.
4160         (ffi_closure_v8): Pass the structure return address.  Update call to
4161         ffi_closure_sparc_inner_v8.  Short-circuit FFI_TYPE_INT handling.
4162         Skip the 'unimp' insn when returning long doubles and structures.
4163         * src/sparc/v9.S: Undef STACKFRAME before defining it.
4164         (ffi_closure_v9): Increase the frame size by 2 words.  Short-circuit
4165         FFI_TYPE_INT handling.  Load structures both in integers and
4166         floating-point registers on return.
4167         * README: Update status of the SPARC port.
4168
4169 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
4170
4171         * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4172         as of type ffi_arg.
4173         * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4174
4175 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4176
4177         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4178         value as of type ffi_arg, not unsigned int.
4179
4180 2004-01-21  Michael Ritzert  <ritzert@t-online.de>
4181
4182         * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4183         of the LHS.
4184
4185 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4186
4187         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4188         Solaris.
4189
4190 2004-01-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4191
4192         * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4193         to void *.
4194
4195 2003-12-10  Richard Henderson  <rth@redhat.com>
4196
4197         * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4198         size_t instead of int.
4199
4200 2003-12-04  Hosaka Yuji  <hos@tamanegi.org>
4201
4202         * testsuite/libffi.call/many_win32.c: Include <float.h>.
4203         * testsuite/libffi.call/many_win32.c (main): Replace variable
4204         int i with unsigned long ul.
4205
4206         * testsuite/libffi.call/cls_align_uint64.c: New test case.
4207         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4208         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4209         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4210         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4211         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4212         * testsuite/libffi.call/cls_align_float.c: Likewise.
4213         * testsuite/libffi.call/cls_align_double.c: Likewise.
4214         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4215         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4216
4217 2003-12-02  Hosaka Yuji  <hos@tamanegi.org>
4218
4219         PR other/13221
4220         * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4221         Align arguments to 32 bits.
4222
4223 2003-12-01  Andreas Tobler  <a.tobler@schweiz.ch>
4224
4225         PR other/13221
4226         * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4227         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4228         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4229         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4230         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4231         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4232
4233         * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4234
4235 2003-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4236
4237         * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4238         * testsuite/libffi.special/ffitestcxx.h: Likewise.
4239
4240 2003-11-22  Andreas Tobler  <a.tobler@schweiz.ch>
4241
4242         * Makefile.in: Rebuilt.
4243         * configure: Likewise.
4244         * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4245         the right type.
4246
4247 2003-11-21  Andreas Jaeger  <aj@suse.de>
4248             Andreas Tobler  <a.tobler@schweiz.ch>
4249
4250         * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4251         * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4252         * Makefile.in: Rebuilt.
4253         * aclocal.m4: Likewise.
4254         * configure: Likewise.
4255         * fficonfig.h.in: Likewise.
4256         * testsuite/lib/libffi-dg.exp: Add include dir.
4257         * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4258         * testsuite/libffi.special/ffitestcxx.h: Likewise.
4259         * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4260         for ffi_closure if available.
4261         * testsuite/libffi.call/closure_fn1.c: Likewise.
4262         * testsuite/libffi.call/closure_fn2.c: Likewise.
4263         * testsuite/libffi.call/closure_fn3.c: Likewise.
4264         * testsuite/libffi.call/closure_fn4.c: Likewise.
4265         * testsuite/libffi.call/closure_fn5.c: Likewise.
4266         * testsuite/libffi.call/cls_12byte.c: Likewise.
4267         * testsuite/libffi.call/cls_16byte.c: Likewise.
4268         * testsuite/libffi.call/cls_18byte.c: Likewise.
4269         * testsuite/libffi.call/cls_19byte.c: Likewise.
4270         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4271         * testsuite/libffi.call/cls_20byte.c: Likewise.
4272         * testsuite/libffi.call/cls_20byte1.c: Likewise.
4273         * testsuite/libffi.call/cls_24byte.c: Likewise.
4274         * testsuite/libffi.call/cls_2byte.c: Likewise.
4275         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4276         * testsuite/libffi.call/cls_3byte1.c: Likewise.
4277         * testsuite/libffi.call/cls_3byte2.c: Likewise.
4278         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4279         * testsuite/libffi.call/cls_4byte.c: Likewise.
4280         * testsuite/libffi.call/cls_5byte.c: Likewise.
4281         * testsuite/libffi.call/cls_64byte.c: Likewise.
4282         * testsuite/libffi.call/cls_6byte.c: Likewise.
4283         * testsuite/libffi.call/cls_7byte.c: Likewise.
4284         * testsuite/libffi.call/cls_8byte.c: Likewise.
4285         * testsuite/libffi.call/cls_9byte1.c: Likewise.
4286         * testsuite/libffi.call/cls_9byte2.c: Likewise.
4287         * testsuite/libffi.call/cls_double.c: Likewise.
4288         * testsuite/libffi.call/cls_float.c: Likewise.
4289         * testsuite/libffi.call/cls_schar.c: Likewise.
4290         * testsuite/libffi.call/cls_sint.c: Likewise.
4291         * testsuite/libffi.call/cls_sshort.c: Likewise.
4292         * testsuite/libffi.call/cls_uchar.c: Likewise.
4293         * testsuite/libffi.call/cls_uint.c: Likewise.
4294         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4295         * testsuite/libffi.call/cls_ushort.c: Likewise.
4296         * testsuite/libffi.call/nested_struct.c: Likewise.
4297         * testsuite/libffi.call/nested_struct1.c: Likewise.
4298         * testsuite/libffi.call/nested_struct2.c: Likewise.
4299         * testsuite/libffi.call/nested_struct3.c: Likewise.
4300         * testsuite/libffi.call/problem1.c: Likewise.
4301         * testsuite/libffi.special/unwindtest.cc: Likewise.
4302
4303 2003-11-20  Andreas Tobler  <a.tobler@schweiz.ch>
4304
4305         * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4306
4307 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
4308
4309         * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4310         Add -lgcc_s to additional flags.
4311
4312 2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>
4313
4314         * configure.in, include/Makefile.am: PR libgcj/11147, install
4315         the ffitarget.h header file in a gcc versioned and target
4316         dependent place.
4317         * configure: Regenerated.
4318         * Makefile.in, include/Makefile.in: Likewise.
4319         * testsuite/Makefile.in: Likewise.
4320
4321 2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>
4322
4323         * testsuite/libffi.call/closure_fn0.c: Print result and check
4324         with dg-output to make debugging easier.
4325         * testsuite/libffi.call/closure_fn1.c: Likewise.
4326         * testsuite/libffi.call/closure_fn2.c: Likewise.
4327         * testsuite/libffi.call/closure_fn3.c: Likewise.
4328         * testsuite/libffi.call/closure_fn4.c: Likewise.
4329         * testsuite/libffi.call/closure_fn5.c: Likewise.
4330         * testsuite/libffi.call/cls_12byte.c: Likewise.
4331         * testsuite/libffi.call/cls_16byte.c: Likewise.
4332         * testsuite/libffi.call/cls_18byte.c: Likewise.
4333         * testsuite/libffi.call/cls_19byte.c: Likewise.
4334         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4335         * testsuite/libffi.call/cls_20byte.c: Likewise.
4336         * testsuite/libffi.call/cls_20byte1.c: Likewise.
4337         * testsuite/libffi.call/cls_24byte.c: Likewise.
4338         * testsuite/libffi.call/cls_2byte.c: Likewise.
4339         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4340         * testsuite/libffi.call/cls_3byte1.c: Likewise.
4341         * testsuite/libffi.call/cls_3byte2.c: Likewise.
4342         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4343         * testsuite/libffi.call/cls_4byte.c: Likewise.
4344         * testsuite/libffi.call/cls_5byte.c: Likewise.
4345         * testsuite/libffi.call/cls_64byte.c: Likewise.
4346         * testsuite/libffi.call/cls_6byte.c: Likewise.
4347         * testsuite/libffi.call/cls_7byte.c: Likewise.
4348         * testsuite/libffi.call/cls_8byte.c: Likewise.
4349         * testsuite/libffi.call/cls_9byte1.c: Likewise.
4350         * testsuite/libffi.call/cls_9byte2.c: Likewise.
4351         * testsuite/libffi.call/cls_double.c: Likewise.
4352         * testsuite/libffi.call/cls_float.c: Likewise.
4353         * testsuite/libffi.call/cls_schar.c: Likewise.
4354         * testsuite/libffi.call/cls_sint.c: Likewise.