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