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