summaryrefslogtreecommitdiffstats
path: root/libffi
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-10-20 05:46:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-10-20 05:51:33 -0700
commit90454a900824d96e6d4eae557a809c9d986198d9 (patch)
treeece075cc72fed0f6d595731629b5eb75b5fee25e /libffi
parentRevert "target: support spaces in target attribute." (diff)
downloadgcc-90454a900824d96e6d4eae557a809c9d986198d9.tar.gz
gcc-90454a900824d96e6d4eae557a809c9d986198d9.tar.bz2
gcc-90454a900824d96e6d4eae557a809c9d986198d9.tar.xz
libffi: Update ChangeLog.libffi for libffi 3.4.2
* ChangeLog.libffi: Copied from ChangeLog.old in libffi 3.4.2.
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog.libffi6827
1 files changed, 6825 insertions, 2 deletions
diff --git a/libffi/ChangeLog.libffi b/libffi/ChangeLog.libffi
index f3ee8b0040c..8de1ca75f1b 100644
--- a/libffi/ChangeLog.libffi
+++ b/libffi/ChangeLog.libffi
@@ -1,3 +1,6015 @@
1Libffi change logs used to be maintained in separate ChangeLog files.
2These days we generate them directly from the git commit messages.
3The old ChangeLog files are saved here in order to maintain the historical
4record.
5
6=============================================================================
7From the old ChangeLog.libffi-3.1 file...
8
92014-03-16 Josh Triplett <josh@joshtriplett.org>
10
11 * ChangeLog: Archive to ChangeLog.libffi-3.1 and delete. Future
12 changelogs will come from git, with autogenerated snapshots shipped in
13 distributed tarballs.
14
152014-03-16 Josh Triplett <josh@joshtriplett.org>
16
17 Add support for stdcall, thiscall, and fastcall on non-Windows
18 x86-32.
19
20 Linux supports the stdcall calling convention, either via
21 functions explicitly declared with the stdcall attribute, or via
22 code compiled with -mrtd which effectively makes stdcall the
23 default.
24
25 This introduces FFI_STDCALL, FFI_THISCALL, and FFI_FASTCALL on
26 non-Windows x86-32 platforms, as non-default calling conventions.
27
28 * Makefile.am: Compile in src/x86/win32.S on non-Windows x86-32.
29 * src/x86/ffitarget.h: Add FFI_STDCALL, FFI_THISCALL, and
30 FFI_FASTCALL on non-Windows x86-32. Increase trampoline size to
31 accomodate these calling conventions, and unify some ifdeffery.
32 * src/x86/ffi.c: Add support for FFI_STDCALL, FFI_THISCALL, and
33 FFI_FASTCALL on non-Windows x86-32 platforms; update ifdeffery.
34 * src/x86/win32.S: Support compiling on non-Windows x86-32
35 platforms. On those platforms, avoid redefining the SYSV symbols
36 already provided by src/x86/sysv.S.
37 * testsuite/libffi.call/closure_stdcall.c: Run on non-Windows.
38 #define __stdcall if needed.
39 * testsuite/libffi.call/closure_thiscall.c: Run on non-Windows.
40 #define __fastcall if needed.
41 * testsuite/libffi.call/fastthis1_win32.c: Run on non-Windows.
42 * testsuite/libffi.call/fastthis2_win32.c: Ditto.
43 * testsuite/libffi.call/fastthis3_win32.c: Ditto.
44 * testsuite/libffi.call/many2_win32.c: Ditto.
45 * testsuite/libffi.call/many_win32.c: Ditto.
46 * testsuite/libffi.call/strlen2_win32.c: Ditto.
47 * testsuite/libffi.call/strlen_win32.c: Ditto.
48 * testsuite/libffi.call/struct1_win32.c: Ditto.
49 * testsuite/libffi.call/struct2_win32.c: Ditto.
50
512014-03-16 Josh Triplett <josh@joshtriplett.org>
52
53 * prep_cif.c: Remove unnecessary ifdef for X86_WIN32.
54 ffi_prep_cif_core had a special case for X86_WIN32, checking for
55 FFI_THISCALL in addition to the FFI_FIRST_ABI-to-FFI_LAST_ABI
56 range before returning FFI_BAD_ABI. However, on X86_WIN32,
57 FFI_THISCALL already falls in that range, making the special case
58 unnecessary. Remove it.
59
602014-03-16 Josh Triplett <josh@joshtriplett.org>
61
62 * testsuite/libffi.call/closure_stdcall.c,
63 testsuite/libffi.call/closure_thiscall.c: Remove fragile stack
64 pointer checks. These files included inline assembly to save the
65 stack pointer before and after the call, and compare the values.
66 However, compilers can and do leave the stack in different states
67 for these two pieces of inline assembly, such as by saving a
68 temporary value on the stack across the call; observed with gcc
69 -Os, and verified as spurious through careful inspection of
70 disassembly.
71
722014-03-16 Josh Triplett <josh@joshtriplett.org>
73
74 * testsuite/libffi.call/many.c: Avoid spurious failure due to
75 excess floating-point precision.
76 * testsuite/libffi.call/many_win32.c: Ditto.
77
782014-03-16 Josh Triplett <josh@joshtriplett.org>
79
80 * libtool-ldflags: Re-add.
81
822014-03-16 Josh Triplett <josh@joshtriplett.org>
83
84 * Makefile.in, aclocal.m4, compile, config.guess, config.sub,
85 configure, depcomp, include/Makefile.in, install-sh,
86 libtool-ldflags, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4,
87 m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4,
88 man/Makefile.in, mdate-sh, missing, testsuite/Makefile.in: Delete
89 autogenerated files from version control.
90 * .gitignore: Add autogenerated files.
91 * autogen.sh: New script to generate the autogenerated files.
92 * README: Document requirement to run autogen.sh when building
93 directly from version control.
94 * .travis.yml: Run autogen.sh
95
962014-03-14 Anthony Green <green@moxielogic.com>
97
98 * configure, Makefile.in: Rebuilt.
99
1002014-03-10 Mike Hommey <mh+mozilla@glandium.org>
101
102 * configure.ac: Allow building for mipsel with Android NDK r8.
103 * Makefile.am (AM_MAKEFLAGS): Replace double quotes with single
104 quotes.
105
1062014-03-10 Landry Breuil <landry@openbsd.org>
107
108 * configure.ac: Ensure the linker supports @unwind sections in libffi.
109
1102014-03-01 Anthony Green <green@moxielogic.com>
111
112 * Makefile.am (EXTRA_DIST): Replace old scripts with
113 generate-darwin-source-and-headers.py.
114 * Makefile.in: Rebuilt.
115
1162014-02-28 Anthony Green <green@moxielogic.com>
117
118 * Makefile.am (AM_CFLAGS): Reintroduce missing -DFFI_DEBUG for
119 --enable-debug builds.
120 * Makefile.in: Rebuilt.
121
1222014-02-28 Makoto Kato <m_kato@ga2.so-net.ne.jp>
123
124 * src/closures.c: Fix build failure when using clang for Android.
125
1262014-02-28 Marcin Wojdyr <wojdyr@gmail.com>
127
128 * libffi.pc.in (toolexeclibdir): use -L${toolexeclibdir} instead
129 of -L${libdir}.
130
1312014-02-28 Paulo Pizarro <paulo.pizarro@gmail.com>
132
133 * src/bfin/sysv.S: Calling functions in shared libraries requires
134 considering the GOT.
135
1362014-02-28 Josh Triplett <josh@joshtriplett.org>
137
138 * src/x86/ffi64.c (classify_argument): Handle case where
139 FFI_TYPE_LONGDOUBLE == FFI_TYPE_DOUBLE.
140
1412014-02-28 Anthony Green <green@moxielogic.com>
142
143 * ltmain.sh: Generate with libtool-2.4.2.418.
144 * m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Ditto.
145 * configure: Rebuilt.
146
1472014-02-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
148
149 * configure.ac (AC_ARG_ENABLE struct): Fix typo in help
150 message.
151 (AC_ARG_ENABLE raw_api): Ditto.
152 * configure, fficonfig.h.in: Rebuilt.
153
1542014-02-28 Will Newton <will.newton@linaro.org>
155
156 * src/arm/sysv.S: Initialize IP register with FP.
157
1582014-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
159
160 * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
161 main CFA reg; update cfi_rel_offset.
162
1632014-02-15 Marcus Comstedt <marcus@mc.pp.se>
164
165 * src/powerpc/ffi_linux64.c, src/powerpc/linux64_closure.S: Remove
166 assumption on contents of r11 in closure.
167
1682014-02-09 Heiher <r@hev.cc>
169
170 * src/mips/n32.S: Fix call floating point va function.
171
1722014-01-21 Zachary Waldowski <zach@waldowski.me>
173
174 * src/aarch64/ffi.c: Fix missing semicolons on assertions under
175 debug mode.
176
1772013-12-30 Zachary Waldowski <zach@waldowski.me>
178
179 * .gitignore: Exclude darwin_* generated source and build_* trees.
180 * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
181 previous prototype warnings.
182 * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
183 * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
184 and the native use of size_t for malloc on platforms
185 * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
186 ARM_FUNC_START.
187 * generate-osx-source-and-headers.py: Remove.
188 * build-ios.sh: Remove.
189 * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
190 x86_64+aarch64 pieces in library. Export headers properly.
191 * src/x86/ffi64.c: More Clang warning clean-ups.
192 * src/closures.c (open_temp_exec_file_dir): Use size_t.
193 * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
194 * src/aarch64/sysv.S: Use CNAME for global symbols. Only use
195 .size for ELF targets.
196 * src/aarch64/ffi.c: Clean up for double == long double. Clean up
197 from Clang warnings. Use Clang cache invalidation builtin. Use
198 size_t in place of unsigned in many places. Accommodate for
199 differences in Apple AArch64 ABI.
200
2012013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
202
203 * generate-darwin-source-and-headers.py: Clean up, modernize,
204 merged version of previous scripts.
205
2062013-11-21 Anthony Green <green@moxielogic.com>
207
208 * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
209 man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
210
2112013-11-21 Alan Modra <amodra@gmail.com>
212
213 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
214 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
215 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
216 * include/ffi.h.in (ffi_prep_types): Declare.
217 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
218 * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
219 HAVE_LONG_DOUBLE_VARIANT.
220 * src/powerpc/ffi_powerpc.h: New file.
221 * src/powerpc/ffi.c: Split into..
222 * src/powerpc/ffi_sysv.c: ..new file, and..
223 * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
224 * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
225 selection as bits controlling features.
226 * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
227 than __powerpc64__.
228 * src/powerpc/linux64_closure.S: Likewise.
229 * src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
230 inside guard.
231 * src/powerpc/sysv.S: Likewise.
232 * configure: Regenerate.
233 * fficonfig.h.in: Regenerate.
234 * Makefile.in: Regenerate.
235
2362013-11-20 Alan Modra <amodra@gmail.com>
237
238 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
239 NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
240 32-bit versions for 64-bit code.
241 * src/powerpc/linux64_closure.S: Don't use the return value area
242 as a parameter save area on ELFv2.
243
2442013-11-18 Iain Sandoe <iain@codesourcery.com>
245
246 * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
247 * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
248 labels.
249
2502013-11-18 Anthony Green <green@moxielogic.com>
251
252 * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
253 function.
254 * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
255 to appease compiler.
256 Thanks for Gregory P. Smith <greg@krypto.org>.
257
2582013-11-18 Anthony Green <green@moxielogic.com>
259
260 * README (tested): Mention PowerPC ELFv2.
261
2622013-11-16 Alan Modra <amodra@gmail.com>
263
264 * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
265 Don't bl .Luint128.
266
2672013-11-16 Alan Modra <amodra@gmail.com>
268
269 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
270 test to select parameter save sizing for ELFv2 vs. ELFv1.
271 * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
272 FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
273 (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
274 * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
275 (discover_homogeneous_aggregate): New function.
276 (ffi_prep_args64): Adjust start of param save area for ELFv2.
277 Handle homogenous floating point struct parms.
278 (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
279 Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
280 homogenous floating point structs.
281 (ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
282 (flush_icache): Compile for ELFv2.
283 (ffi_prep_closure_loc): Set up ELFv2 trampoline.
284 (ffi_closure_helper_LINUX64): Don't return all structs directly
285 to caller. Handle homogenous floating point structs. Handle
286 ELFv2 struct return values.
287 * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
288 ELFv2. Adjust toc save location. Call function pointer using
289 r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
290 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
291 for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
292 RETVAL. Handle possibly missing parameter save area. Handle
293 ELFv2 return values.
294 (.note.GNU-stack): Move inside outer #ifdef.
295
2962013-11-16 Alan Modra <amodra@gmail.com>
297
298 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
299 change. Do not consume an int arg when returning a small struct
300 for FFI_SYSV ABI.
301 (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
302 Properly copy bounce buffer to destination.
303 * src/powerpc/sysv.S: Revert 2013-02-08 change.
304 * src/powerpc/ppc_closure.S: Remove stray '+'.
305
3062013-11-16 Alan Modra <amodra@gmail.com>
307
308 * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
309 according to __STRUCT_PARM_ALIGN__.
310 (ffi_prep_cif_machdep_core): Likewise.
311 (ffi_closure_helper_LINUX64): Likewise.
312
3132013-11-16 Alan Modra <amodra@gmail.com>
314
315 * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
316 (.note.GNU-stack): Move inside outer #ifdef.
317 * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
318 RETVAL): Define and use throughout.
319 (ffi_closure_LINUX64): Save fprs before buying stack.
320 (.note.GNU-stack): Move inside outer #ifdef.
321
3222013-11-16 Alan Modra <amodra@gmail.com>
323
324 * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
325 (FFI_EXTRA_CIF_FIELDS): Define.
326 * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
327 ABI, not to both fpr and param save area.
328 (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
329 Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
330 code.
331 (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
332 (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
333 not to both fpr and parameter save areas.
334
335 * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
336 function cast and don't call ffi_prep_cif.
337 * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
338
3392013-11-15 Andrew Haley <aph@redhat.com>
340
341 * doc/libffi.texi (Closure Example): Fix the sample code.
342 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
343
3442013-11-15 Andrew Haley <aph@redhat.com>
345
346 * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
347 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
348 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
349 * testsuite/libffi.call/va_1.c (main): Likewise.
350
3512013-11-14 David Schneider <david.schneider@bivab.de>
352
353 * src/arm/ffi.c: Fix register allocation for mixed float and
354 doubles.
355 * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
356 for many mixed float and double arguments.
357
3582013-11-13 Alan Modra <amodra@gmail.com>
359
360 * doc/libffi.texi (Simple Example): Correct example code.
361 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
362
3632013-11-13 Anthony Green <green@moxielogic.com>
364
365 * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
366 based build. (Thanks to tmr111116 on github)
367
3682013-11-09 Anthony Green <green@moxielogic.com>
369
370 * m4/libtool.m4: Refresh.
371 * configure, Makefile.in: Rebuilt.
372 * README: Add more notes about next release.
373
3742013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
375
376 * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
377 UltraSPARC-IIi as ultrasparc3.
378
3792013-11-06 Mark Kettenis <kettenis@gnu.org>
380
381 * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
382 16-bytes.
383
3842013-11-06 Konstantin Belousov <kib@freebsd.org>
385
386 * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
387 source as not requiring executable stack.
388
3892013-11-02 Anthony Green <green@moxielogic.com>
390
391 * doc/libffi.texi (The Basics): Clarify return value buffer size
392 requirements. Also, NULL result buffer pointers are no longer
393 supported.
394 * doc/libffi.info: Rebuilt.
395
3962013-11-02 Mischa Jonker <mjonker@synopsys.com>
397
398 * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
399 * Makefile.in: Rebuilt.
400
4012013-11-02 David Schneider <david.schneider@bivab.de>
402
403 * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
404 * testsuite/libffi.call/many_mixed.c: New file.
405 * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
406
4072013-11-02 Vitaly Budovski
408
409 * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
410
4112013-10-23 Mark H Weaver <mhw@netris.org>
412
413 * src/mips/ffi.c: Fix handling of uint32_t arguments on the
414 MIPS N32 ABI.
415
4162013-10-13 Sandra Loosemore <sandra@codesourcery.com>
417
418 * README: Add Nios II to table of supported platforms.
419 * Makefile.am (EXTRA_DIST): Add nios2 files.
420 (nodist_libffi_la_SOURCES): Likewise.
421 * Makefile.in: Regenerated.
422 * configure.ac (nios2*-linux*): New host.
423 (NIOS2): Add AM_CONDITIONAL.
424 * configure: Regenerated.
425 * src/nios2/ffi.c: New.
426 * src/nios2/ffitarget.h: New.
427 * src/nios2/sysv.S: New.
428 * src/prep_cif.c (initialize_aggregate): Handle extra structure
429 alignment via FFI_AGGREGATE_ALIGNMENT.
430 (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
431
4322013-10-10 Sandra Loosemore <sandra@codesourcery.com>
433
434 * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
435 Fix uninitialized variable.
436
4372013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
438
439 * testsuite/libffi.call/many.c (many): Replace * with +.
440
4412013-10-08 Ondřej Bílka <neleai@seznam.cz>
442
443 * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
444 src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
445 src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
446 src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
447 src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
448 src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
449 spelling errors.
450
4512013-10-08 Anthony Green <green@moxielogic.com>
452
453 * aclocal.m4, compile, config.guess, config.sub, depcomp,
454 install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
455 * configure.ac: Update version to 3.0.14-rc0.
456 * Makefile.in, configure, Makefile.in, include/Makefile.in,
457 man/Makefile.in, testsuite/Makefile.in: Rebuilt.
458 * README: Mention M88K and VAX.
459
4602013-07-15 Miod Vallat <miod@openbsd.org>
461
462 * Makefile.am,
463 configure.ac,
464 src/m88k/ffi.c,
465 src/m88k/ffitarget.h,
466 src/m88k/obsd.S,
467 src/vax/elfbsd.S,
468 src/vax/ffi.c,
469 src/vax/ffitarget.h: Add m88k and vax support.
470
4712013-06-24 Alan Modra <amodra@gmail.com>
472
473 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
474 before statements.
475 (ffi_prep_args64): Support little-endian.
476 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
477 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
478 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
479
4802013-06-12 Mischa Jonker <mjonker@synopsys.com>
481
482 * configure.ac: Add support for ARC.
483 * Makefile.am: Likewise.
484 * README: Add ARC details.
485 * src/arc/arcompact.S: New.
486 * src/arc/ffi.c: Likewise.
487 * src/arc/ffitarget.h: Likewise.
488
4892013-03-28 David Schneider <david.schneider@bivab.de>
490
491 * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
492 * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
493 * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
494 mixed arguments, many doubles.
495 * testsuite/libffi.call/many_double.c: testcase for calling a function using
496 more than 8 doubles.
497 * testcase/libffi.call/many.c: use absolute value to check result against an
498 epsilon
499
5002013-03-17 Anthony Green <green@moxielogic.com>
501
502 * README: Update for 3.0.13.
503 * configure.ac: Ditto.
504 * configure: Rebuilt.
505 * doc/*: Update version.
506
5072013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
508
509 * src/closures.c (is_emutramp_enabled
510 [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
511 enclosing #if scope.
512
5132013-03-17 Anthony Green <green@moxielogic.com>
514
515 * configure.ac: Only modify toolexecdir in certain cases.
516 * configure: Rebuilt.
517
5182013-03-16 Gilles Talis <gilles.talis@gmail.com>
519
520 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
521 fparg_count,etc on __NO_FPRS__ targets.
522
5232013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
524
525 * src/m68k/sysv.S (epilogue): Don't use extb instruction on
526 m680000 machines.
527
5282013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
529
530 * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
531
5322013-03-13 Markos Chandras <markos.chandras@imgtec.com>
533
534 * configure.ac: Add support for Imagination Technologies Meta.
535 * Makefile.am: Likewise.
536 * README: Add Imagination Technologies Meta details.
537 * src/metag/ffi.c: New.
538 * src/metag/ffitarget.h: Likewise.
539 * src/metag/sysv.S: Likewise.
540
5412013-02-24 Andreas Schwab <schwab@linux-m68k.org>
542
543 * doc/libffi.texi (Structures): Fix missing category argument of
544 @deftp.
545
5462013-02-11 Anthony Green <green@moxielogic.com>
547
548 * configure.ac: Update release number to 3.0.12.
549 * configure: Rebuilt.
550 * README: Update release info.
551
5522013-02-10 Anthony Green <green@moxielogic.com>
553
554 * README: Add Moxie.
555 * src/moxie/ffi.c: Created.
556 * src/moxie/eabi.S: Created.
557 * src/moxie/ffitarget.h: Created.
558 * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
559 * Makefile.in: Rebuilt.
560 * configure.ac: Add Moxie.
561 * configure: Rebuilt.
562 * testsuite/libffi.call/huge_struct.c: Disable format string
563 warnings for moxie*-*-elf tests.
564
5652013-02-10 Anthony Green <green@moxielogic.com>
566
567 * Makefile.am (LTLDFLAGS): Fix reference.
568 * Makefile.in: Rebuilt.
569
5702013-02-10 Anthony Green <green@moxielogic.com>
571
572 * README: Update supported platforms. Update test results link.
573
5742013-02-09 Anthony Green <green@moxielogic.com>
575
576 * testsuite/libffi.call/negint.c: Remove forced -O2.
577 * testsuite/libffi.call/many2.c (foo): Remove GCCism.
578 * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
579
580 * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
581 closure return type fix developed by Martin v. Löwis for cpython
582 fork.
583
5842013-02-08 Andreas Tobler <andreast@fgznet.ch>
585
586 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
587 support.
588 * src/powerpc/sysv.S: Ditto.
589
5902013-02-08 Anthony Green <green@moxielogic.com>
591
592 * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
593 arm*-*-*.
594
5952013-02-08 Anthony Green <green@moxielogic.com>
596
597 * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
598
5992013-02-08 Matthias Klose <doko@ubuntu.com>
600
601 * man/ffi_prep_cif.3: Clean up for debian linter.
602
6032013-02-08 Peter Bergner <bergner@vnet.ibm.com>
604
605 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
606 on the stack.
607
6082013-02-08 Anthony Green <green@moxielogic.com>
609
610 * Makefile.am (EXTRA_DIST): Add missing files.
611 * testsuite/Makefile.am (EXTRA_DIST): Ditto.
612 * Makefile.in: Rebuilt.
613
6142013-02-08 Anthony Green <green@moxielogic.com>
615
616 * configure.ac: Move sparc asm config checks to within functions
617 for compatibility with sun tools.
618 * configure: Rebuilt.
619 * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
620 systems.
621 * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
622 flusher.
623
6242013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
625
626 * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
627 small big-endian structures.
628 (ffi_prep_args): Ditto.
629
6302013-02-07 Anthony Green <green@moxielogic.com>
631
632 * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
633 (effectively hiding ffi_call_v8).
634
6352013-02-07 Anthony Green <green@moxielogic.com>
636
637 * configure.ac: Update bug reporting address.
638 * configure.in: Rebuild.
639
640 * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
641 Sun compiler.
642 * src/sparc/ffi.c (ffi_call): Remove warning.
643 Call ffi_flush_icache for non-GCC builds.
644 (ffi_prep_closure_loc): Use ffi_flush_icache.
645
646 * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
647 * Makefile.in: Rebuilt.
648 * libtool-ldflags: New file.
649
6502013-02-07 Daniel Schepler <dschepler@gmail.com>
651
652 * configure.ac: Correctly identify x32 systems as 64-bit.
653 * m4/libtool.m4: Remove libtool expr error.
654 * aclocal.m4, configure: Rebuilt.
655
6562013-02-07 Anthony Green <green@moxielogic.com>
657
658 * configure.ac: Fix GCC usage test.
659 * configure: Rebuilt.
660 * README: Mention LLVM/GCC x86_64 issue.
661 * testsuite/Makefile.in: Rebuilt.
662
6632013-02-07 Anthony Green <green@moxielogic.com>
664
665 * testsuite/libffi.call/cls_double_va.c (main): Replace // style
666 comments with /* */ for xlc compiler.
667 * testsuite/libffi.call/stret_large.c (main): Ditto.
668 * testsuite/libffi.call/stret_large2.c (main): Ditto.
669 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
670 * testsuite/libffi.call/huge_struct.c (main): Ditto.
671 * testsuite/libffi.call/float_va.c (main): Ditto.
672 * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
673 * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
674 * testsuite/libffi.call/cls_pointer.c (main): Ditto.
675 * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
676
6772013-02-06 Anthony Green <green@moxielogic.com>
678
679 * man/ffi_prep_cif.3: Clean up for debian lintian checker.
680
6812013-02-06 Anthony Green <green@moxielogic.com>
682
683 * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
684 * Makefile.in: Rebuild.
685
6862013-02-02 Mark H Weaver <mhw@netris.org>
687
688 * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
689 via general purpose registers.
690
6912013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
692
693 * README: Add MicroBlaze details.
694 * Makefile.am: Add MicroBlaze support.
695 * configure.ac: Likewise.
696 * src/microblaze/ffi.c: New.
697 * src/microblaze/ffitarget.h: Likewise.
698 * src/microblaze/sysv.S: Likewise.
699
7002013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
701 * testsuite/libffi.call/return_uc.c: Fixed issue.
702
7032013-01-21 Chris Zankel <chris@zankel.net>
704
705 * README: Add Xtensa support.
706 * Makefile.am: Likewise.
707 * configure.ac: Likewise.
708 * Makefile.in Regenerate.
709 * configure: Likewise.
710 * src/prep_cif.c: Handle Xtensa.
711 * src/xtensa: New directory.
712 * src/xtensa/ffi.c: New file.
713 * src/xtensa/ffitarget.h: Ditto.
714 * src/xtensa/sysv.S: Ditto.
715
7162013-01-11 Anthony Green <green@moxielogic.com>
717
718 * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
719 comments with /* */ for xlc compiler.
720 * src/powerpc/aix.S (ffi_call_AIX): Ditto.
721 * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
722 deprecated inline function.
723 * testsuite/libffi.special/ffitestcxx.h: Ditto.
724 * README: Add update for AIX support.
725
7262013-01-11 Anthony Green <green@moxielogic.com>
727
728 * configure.ac: Robustify pc relative reloc check.
729 * m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
730 changing option for 32-bit x86.
731 * aclocal.m4, configure: Rebuilt.
732 * README: Update supported target list.
733
7342013-01-10 Anthony Green <green@moxielogic.com>
735
736 * README (tested): Add Compiler column to table.
737
7382013-01-10 Anthony Green <green@moxielogic.com>
739
740 * src/x86/ffi64.c (struct register_args): Make sse array and array
741 of unions for sunpro compiler compatibility.
742
7432013-01-10 Anthony Green <green@moxielogic.com>
744
745 * configure.ac: Test target platform size_t size. Handle both 32
746 and 64-bit builds for x86_64-* and i?86-* targets (allowing for
747 CFLAG option to change default settings).
748 * configure, aclocal.m4: Rebuilt.
749
7502013-01-10 Anthony Green <green@moxielogic.com>
751
752 * testsuite/libffi.special/special.exp: Only run exception
753 handling tests when using GNU compiler.
754
755 * m4/ax_compiler_vendor.m4: New file.
756 * configure.ac: Test for compiler vendor and don't use
757 AX_CFLAGS_WARN_ALL with the sun compiler.
758 * aclocal.m4, configure: Rebuilt.
759
7602013-01-10 Anthony Green <green@moxielogic.com>
761
762 * include/ffi_common.h: Don't use GCCisms to define types when
763 building with the SUNPRO compiler.
764
7652013-01-10 Anthony Green <green@moxielogic.com>
766
767 * configure.ac: Put local.exp in the right place.
768 * configure: Rebuilt.
769
770 * src/x86/ffi.c: Update comment about regparm function attributes.
771 * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
772 that all function arguments be passed on the stack (no regparm
773 support).
774
7752013-01-08 Anthony Green <green@moxielogic.com>
776
777 * configure.ac: Generate local.exp. This sets CC_FOR_TARGET
778 when we are using the vendor compiler.
779 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
780 ../local.exp.
781 * configure, testsuite/Makefile.in: Rebuilt.
782
783 * testsuite/libffi.call/call.exp: Run tests with different
784 options, depending on whether or not we are using gcc or the
785 vendor compiler.
786 * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
787 whether or not we are building/testing with gcc.
788
7892013-01-08 Anthony Green <green@moxielogic.com>
790
791 * configure.ac: Switch x86 solaris target to X86 by default.
792 * configure: Rebuilt.
793
7942013-01-08 Anthony Green <green@moxielogic.com>
795
796 * configure.ac: Fix test for read-only eh_frame.
797 * configure: Rebuilt.
798
7992013-01-08 Anthony Green <green@moxielogic.com>
800
801 * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
802 when building with the GNU toolchain.
803 * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
804 compiler.
805
8062013-01-07 Thorsten Glaser <tg@mirbsd.org>
807
808 * testsuite/libffi.call/cls_uchar_va.c,
809 testsuite/libffi.call/cls_ushort_va.c,
810 testsuite/libffi.call/va_1.c: Testsuite fixes.
811
8122013-01-07 Thorsten Glaser <tg@mirbsd.org>
813
814 * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
815 (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
816 * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
817
8182013-01-04 Anthony Green <green@moxielogic.com>
819
820 * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
821 and -Wall. This is set in the configure script after testing for
822 GCC.
823 * Makefile.in: Rebuilt.
824
8252013-01-02 rofl0r <https://github.com/rofl0r>
826
827 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
828 when long double == double.
829
8302013-01-02 Reini Urban <rurban@x-ray.at>
831
832 * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
833 (required for shared libs on cygwin/mingw).
834 * Makefile.in: Rebuilt.
835
8362012-10-31 Alan Modra <amodra@gmail.co>
837
838 * src/powerpc/linux64_closure.S: Add new ABI support.
839 * src/powerpc/linux64.S: Likewise.
840
8412012-10-30 Magnus Granberg <zorry@gentoo.org>
842 Pavel Labushev <pavel.labushev@runbox.ru>
843
844 * configure.ac: New options pax_emutramp
845 * configure, fficonfig.h.in: Regenerated
846 * src/closures.c: New function emutramp_enabled_check() and
847 checks.
848
8492012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
850
851 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
852 lion) and future version.
853 * configure: Rebuild.
854
8552012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
856 Marcus Shawcroft <marcus.shawcroft at arm.com>
857
858 * README: Add details of aarch64 port.
859 * src/aarch64/ffi.c: New.
860 * src/aarch64/ffitarget.h: Likewise.
861 * src/aarch64/sysv.S: Likewise.
862 * Makefile.am: Support aarch64.
863 * configure.ac: Support aarch64.
864 * Makefile.in, configure: Rebuilt.
865
8662012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
867 Marcus Shawcroft <marcus.shawcroft at arm.com>
868
869 * testsuite/lib/libffi.exp: Add support for aarch64.
870 * testsuite/libffi.call/cls_struct_va1.c: New.
871 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
872 * testsuite/libffi.call/cls_uint_va.c: Likewise.
873 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
874 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
875 * testsuite/libffi.call/nested_struct11.c: Likewise.
876 * testsuite/libffi.call/uninitialized.c: Likewise.
877 * testsuite/libffi.call/va_1.c: Likewise.
878 * testsuite/libffi.call/va_struct1.c: Likewise.
879 * testsuite/libffi.call/va_struct2.c: Likewise.
880 * testsuite/libffi.call/va_struct3.c: Likewise.
881
8822012-10-12 Walter Lee <walt@tilera.com>
883
884 * Makefile.am: Add TILE-Gx/TILEPro support.
885 * configure.ac: Likewise.
886 * Makefile.in: Regenerate.
887 * configure: Likewise.
888 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
889 * src/tile: New directory.
890 * src/tile/ffi.c: New file.
891 * src/tile/ffitarget.h: Ditto.
892 * src/tile/tile.S: Ditto.
893
8942012-10-12 Matthias Klose <doko@ubuntu.com>
895
896 * generate-osx-source-and-headers.py: Normalize whitespace.
897
8982012-09-14 David Edelsohn <dje.gcc@gmail.com>
899
900 * configure: Regenerated.
901
9022012-08-26 Andrew Pinski <apinski@cavium.com>
903
904 PR libffi/53014
905 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
906 soft-float.
907
9082012-08-08 Uros Bizjak <ubizjak@gmail.com>
909
910 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
911 just return FFI_BAD_ABI when things are wrong.
912
9132012-07-18 H.J. Lu <hongjiu.lu@intel.com>
914
915 PR libffi/53982
916 PR libffi/53973
917 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
918 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
919
9202012-05-16 H.J. Lu <hongjiu.lu@intel.com>
921
922 * configure: Regenerated.
923
9242012-05-05 Nicolas Lelong
925
926 * libffi.xcodeproj/project.pbxproj: Fixes.
927 * README: Update for iOS builds.
928
9292012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
930
931 * configure.ac: Add Blackfin/sysv support
932 * Makefile.am: Add Blackfin/sysv support
933 * src/bfin/ffi.c: Add Blackfin/sysv support
934 * src/bfin/ffitarget.h: Add Blackfin/sysv support
935
9362012-04-11 Anthony Green <green@moxielogic.com>
937
938 * Makefile.am (EXTRA_DIST): Add new script.
939 * Makefile.in: Rebuilt.
940
9412012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
942
943 * generate-ios-source-and-headers.py,
944 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
945 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
946 generation into an Xcode "run script" phase. Include both as
947 Xcode build scripts. Don't always regenerate config files.
948
9492012-04-10 Anthony Green <green@moxielogic.com>
950
951 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
952
9532012-04-06 Anthony Green <green@moxielogic.com>
954
955 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
956 * Makefile.in: Rebuilt.
957
9582012-04-06 Mike Lewis <mikelikespie@gmail.com>
959
960 * generate-ios-source-and-headers.py: New file.
961 * libffi.xcodeproj/project.pbxproj: New file.
962 * README: Update instructions on building iOS binary.
963 * build-ios.sh: Delete.
964
9652012-04-06 Anthony Green <green@moxielogic.com>
966
967 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
968 compilers, then use it.
969
9702012-04-06 H.J. Lu <hongjiu.lu@intel.com>
971
972 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
973
9742012-04-06 Anthony Green <green@moxielogic.com>
975
976 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
977 * testsuite/Makefile.in: Rebuilt.
978
9792012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
980
981 * include/ffi.h.in: Add missing trampoline table fields.
982 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
983 in CNAME.
984 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
985
9862012-04-02 Peter Bergner <bergner@vnet.ibm.com>
987
988 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
989 Silence casting pointer to integer of different size warning.
990 Delete goto to previously deleted label.
991 (ffi_call): Silence possibly undefined warning.
992 (ffi_closure_helper_SYSV): Declare variable type.
993
9942012-04-02 Peter Rosin <peda@lysator.liu.se>
995
996 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
997 value in the Intel version as is already done for the AT&T version.
998 (ffi_closure_SYSV): Likewise.
999 (ffi_closure_raw_SYSV): Likewise.
1000 (ffi_closure_STDCALL): Likewise.
1001
10022012-03-29 Peter Rosin <peda@lysator.liu.se>
1003
1004 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
1005 generation, fix the ENDP label and remove the surplus third arg
1006 from the 'lea' insn.
1007
10082012-03-29 Peter Rosin <peda@lysator.liu.se>
1009
1010 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
1011 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
1012 it. Also instruct the assembler to add a frame to the function.
1013
10142012-03-23 Peter Rosin <peda@lysator.liu.se>
1015
1016 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
1017 * Makefile.in: Rebuilt.
1018 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
1019 to all data exports, when compiling libffi clients using MSVC.
1020
10212012-03-29 Peter Rosin <peda@lysator.liu.se>
1022
1023 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
1024 make it the default for MSVC.
1025 (FFI_TYPE_MS_STRUCT): New structure return convention.
1026 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
1027 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
1028 instead of an ordinary FFI_TYPE_STRUCT.
1029 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
1030 (ffi_call): Likewise.
1031 (ffi_prep_incoming_args_SYSV): Likewise.
1032 (ffi_raw_call): Likewise.
1033 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
1034 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
1035 return a pointer to the result structure in eax and don't pop
1036 that pointer from the stack, the caller takes care of it.
1037 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
1038 (ffi_closure_raw_SYSV): Likewise.
1039
10402012-03-22 Peter Rosin <peda@lysator.liu.se>
1041
1042 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
1043 assembly version with Intel syntax.
1044 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
1045
10462012-03-23 Peter Rosin <peda@lysator.liu.se>
1047
1048 * testsuite/libffi.call/ffitest.h: Provide abstration of
1049 __attribute__((fastcall)) in the form of a __FASTCALL__
1050 define. Define it to __fastcall for MSVC.
1051 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
1052 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
1053 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
1054 * testsuite/libffi.call/strlen2_win32.c: Likewise.
1055 * testsuite/libffi.call/struct1_win32.c: Likewise.
1056 * testsuite/libffi.call/struct2_win32.c: Likewise.
1057
10582012-03-22 Peter Rosin <peda@lysator.liu.se>
1059
1060 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
1061 frame on function entry, MASM adds one automatically.
1062
10632012-03-22 Peter Rosin <peda@lysator.liu.se>
1064
1065 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
1066 bits in the MSVC headers.
1067
10682012-03-22 Peter Rosin <peda@lysator.liu.se>
1069
1070 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
1071 with no declarations after statements.
1072 * testsuite/libffi.call/cls_16byte.c: Likewise.
1073 * testsuite/libffi.call/cls_18byte.c: Likewise.
1074 * testsuite/libffi.call/cls_19byte.c: Likewise.
1075 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1076 * testsuite/libffi.call/cls_20byte.c: Likewise.
1077 * testsuite/libffi.call/cls_20byte1.c: Likewise.
1078 * testsuite/libffi.call/cls_24byte.c: Likewise.
1079 * testsuite/libffi.call/cls_2byte.c: Likewise.
1080 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1081 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1082 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1083 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1084 * testsuite/libffi.call/cls_4byte.c: Likewise.
1085 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
1086 * testsuite/libffi.call/cls_5byte.c: Likewise.
1087 * testsuite/libffi.call/cls_64byte.c: Likewise.
1088 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
1089 * testsuite/libffi.call/cls_6byte.c: Likewise.
1090 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
1091 * testsuite/libffi.call/cls_7byte.c: Likewise.
1092 * testsuite/libffi.call/cls_8byte.c: Likewise.
1093 * testsuite/libffi.call/cls_9byte1.c: Likewise.
1094 * testsuite/libffi.call/cls_9byte2.c: Likewise.
1095 * testsuite/libffi.call/cls_align_double.c: Likewise.
1096 * testsuite/libffi.call/cls_align_float.c: Likewise.
1097 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1098 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
1099 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1100 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1101 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1102 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1103 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1104 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1105 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1106 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1107 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
1108 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
1109 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
1110 * testsuite/libffi.call/huge_struct.c: Likewise.
1111 * testsuite/libffi.call/nested_struct.c: Likewise.
1112 * testsuite/libffi.call/nested_struct1.c: Likewise.
1113 * testsuite/libffi.call/nested_struct10.c: Likewise.
1114 * testsuite/libffi.call/nested_struct2.c: Likewise.
1115 * testsuite/libffi.call/nested_struct3.c: Likewise.
1116 * testsuite/libffi.call/nested_struct4.c: Likewise.
1117 * testsuite/libffi.call/nested_struct5.c: Likewise.
1118 * testsuite/libffi.call/nested_struct6.c: Likewise.
1119 * testsuite/libffi.call/nested_struct7.c: Likewise.
1120 * testsuite/libffi.call/nested_struct8.c: Likewise.
1121 * testsuite/libffi.call/nested_struct9.c: Likewise.
1122 * testsuite/libffi.call/stret_large.c: Likewise.
1123 * testsuite/libffi.call/stret_large2.c: Likewise.
1124 * testsuite/libffi.call/stret_medium.c: Likewise.
1125 * testsuite/libffi.call/stret_medium2.c: Likewise.
1126 * testsuite/libffi.call/struct1.c: Likewise.
1127 * testsuite/libffi.call/struct1_win32.c: Likewise.
1128 * testsuite/libffi.call/struct2.c: Likewise.
1129 * testsuite/libffi.call/struct2_win32.c: Likewise.
1130 * testsuite/libffi.call/struct3.c: Likewise.
1131 * testsuite/libffi.call/struct4.c: Likewise.
1132 * testsuite/libffi.call/struct5.c: Likewise.
1133 * testsuite/libffi.call/struct6.c: Likewise.
1134 * testsuite/libffi.call/struct7.c: Likewise.
1135 * testsuite/libffi.call/struct8.c: Likewise.
1136 * testsuite/libffi.call/struct9.c: Likewise.
1137 * testsuite/libffi.call/testclosure.c: Likewise.
1138
11392012-03-21 Peter Rosin <peda@lysator.liu.se>
1140
1141 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
1142 printing doubles (%lf is for long doubles).
1143 (main): Likewise.
1144
11452012-03-21 Peter Rosin <peda@lysator.liu.se>
1146
1147 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1148 (set_ld_library_path_env_vars): Add the library search dir to PATH
1149 (and save PATH for later).
1150 (restore_ld_library_path_env_vars): Restore PATH.
1151
11522012-03-21 Peter Rosin <peda@lysator.liu.se>
1153
1154 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1155 (set_ld_library_path_env_vars): Add the library search dir to PATH
1156 (and save PATH for later).
1157 (restore_ld_library_path_env_vars): Restore PATH.
1158
11592012-03-20 Peter Rosin <peda@lysator.liu.se>
1160
1161 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1162 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1163 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1164
11652012-03-20 Peter Rosin <peda@lysator.liu.se>
1166
1167 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1168 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1169 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1170
11712012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
1172
1173 * src/m68k/ffi.c: Add MINT support.
1174 * src/m68k/sysv.S: Ditto.
1175
11762012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
1177
1178 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1179 ffi_call_VFP().
1180 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1181 ffi_closure_VFP.
1182 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1183
11842012-03-19 chennam <csit@axway.com>
1185
1186 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1187 support.
1188
11892012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
1190
1191 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1192 just return FFI_BAD_ABI when things are wrong.
1193 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1194
11952012-03-09 David Edelsohn <dje.gcc@gmail.com>
1196
1197 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1198 change to return value of ffi_closure_helper_DARWIN and load type
1199 from return type.
1200
12012012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1202
1203 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1204 long.
1205 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1206 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1207 first.
1208
1209 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1210 (ffi_arg): Set to unsigned long long for x32.
1211 (ffi_sarg): Set to long long for x32.
1212
12132012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1214
1215 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1216
12172012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
1218
1219 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1220 windows-like hosts.
1221 * configure: Rebuilt.
1222
12232012-02-27 Mikael Pettersson <mikpe@it.uu.se>
1224
1225 PR libffi/52223
1226 * Makefile.am (FLAGS_TO_PASS): Define.
1227 * Makefile.in: Regenerate.
1228
12292012-02-23 Anthony Green <green@moxielogic.com>
1230
1231 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1232 directly.
1233
12342012-02-23 Kai Tietz <ktietz@redhat.com>
1235
1236 PR libffi/52221
1237 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1238 prototype.
1239 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1240 thiscall-convention.
1241 (ffi_raw_call): Use ffi_prep_args_raw.
1242 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1243 implementation for stub.
1244
12452012-02-10 Kai Tietz <ktietz@redhat.com>
1246
1247 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1248 windows target.
1249 * configure: Regenerated.
1250
12512012-02-08 Kai Tietz <ktietz@redhat.com>
1252
1253 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1254 also FFI_THISCALL.
1255 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1256 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1257 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1258 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1259 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1260 for thiscall-calling convention.
1261 * testsuite/libffi.call/closure_thiscall.c: New test.
1262
12632012-01-28 Kai Tietz <ktietz@redhat.com>
1264
1265 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1266 argument to prototype for specify calling-convention.
1267 (ffi_call): Add support for stdcall/thiscall convention.
1268 (ffi_prep_args): Likewise.
1269 (ffi_raw_call): Likewise.
1270 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1271 FFI_FASTCALL.
1272 * src/x86/win32.S (_ffi_call_win32): Add support for
1273 fastcall/thiscall calling-convention calls.
1274 * testsuite/libffi.call/fastthis1_win32.c: New test.
1275 * testsuite/libffi.call/fastthis2_win32.c: New test.
1276 * testsuite/libffi.call/fastthis3_win32.c: New test.
1277 * testsuite/libffi.call/strlen2_win32.c: New test.
1278 * testsuite/libffi.call/many2_win32.c: New test.
1279 * testsuite/libffi.call/struct1_win32.c: New test.
1280 * testsuite/libffi.call/struct2_win32.c: New test.
1281
12822012-01-23 Uros Bizjak <ubizjak@gmail.com>
1283
1284 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1285
12862012-01-23 Anthony Green <green@moxielogic.com>
1287 Chris Young <cdyoung@ntlworld.com>
1288
1289 * configure.ac: Add Amiga support.
1290 * configure: Rebuilt.
1291
12922012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
1293
1294 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1295
12962012-01-23 Andreas Schwab <schwab@linux-m68k.org>
1297
1298 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1299 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1300
13012012-01-19 Jakub Jelinek <jakub@redhat.com>
1302
1303 PR rtl-optimization/48496
1304 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1305
13062012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1307
1308 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1309 * configure: Regenerate.
1310
13112011-12-07 Andrew Pinski <apinski@cavium.com>
1312
1313 PR libffi/50051
1314 * src/mips/n32.S: Add ".set mips4".
1315
13162011-11-21 Andreas Tobler <andreast@fgznet.ch>
1317
1318 * configure: Regenerate.
1319
13202011-11-12 David Gilbert <david.gilbert@linaro.org>
1321
1322 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1323 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1324 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1325 src/cris/ffi.c, src/prep_cif.c,
1326 testsuite/libffi.call/cls_double_va.c,
1327 testsuite/libffi.call/cls_longdouble_va.c,
1328 testsuite/libffi.call/float_va.c: Many changes to support variadic
1329 function calls.
1330
13312011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1332
1333 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1334 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1335 softfloat powerpc variants.
1336
13372011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
1338
1339 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1340 * configure: Rebuilt.
1341
13422011-11-12 Timothy Wall <twall@users.sf.net>
1343
1344 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1345 alignment of 4 for wince on ARM.
1346
13472011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1348 Anthony Green <green@moxielogic.com>
1349
1350 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1351 instructions (not available on some cores, like the PPC440).
1352
13532011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
1354
1355 * m4/ax_enable_builddir: Change from string comparison to numeric
1356 comparison for wc output.
1357 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1358 X 10.7.
1359 * configure: Rebuilt.
1360
13612011-11-12 Anthony Green <green@moxielogic.com>
1362
1363 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1364 files with debug info.
1365 * Makefile.in: Rebuilt.
1366
13672011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
1368
1369 * README: Update list of supported OpenBSD systems.
1370
13712011-11-12 Anthony Green <green@moxielogic.com>
1372
1373 * libtool-version: Update.
1374 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1375 FFI_DEBUG.
1376 (libffi_la_SOURCES): Remove src/debug.c
1377 (EXTRA_DIST): Add src/debug.c
1378 * Makefile.in: Rebuilt.
1379 * README: Update for 3.0.11.
1380
13812011-11-10 Richard Henderson <rth@redhat.com>
1382
1383 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1384 * configure, aclocal.m4: Rebuild.
1385
13862011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1387
1388 PR libffi/49594
1389 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1390 helper reference track the architecture pointer size.
1391
13922011-08-25 Andrew Haley <aph@redhat.com>
1393
1394 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1395 instructions.
1396 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
1397
13982011-07-11 Andrew Haley <aph@redhat.com>
1399
1400 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1401
14022011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1403
1404 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1405 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1406
14072011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1408
1409 PR libffi/46660
1410 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1411 mips-sgi-irix6*.
1412 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1413
14142011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1415
1416 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1417 PRId8 instead of %hhu, %hhd.
1418 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1419 PRIu8): Define.
1420 [__sgi__] (PRId8, PRIu8): Define.
1421
14222011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1423
1424 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1425 Define.
1426 Use them to handle ELF vs. ECOFF differences.
1427 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1428
14292011-03-30 Timothy Wall <twall@users.sf.net>
1430
1431 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1432 * src/powerpc/darwin_closure.S: ditto.
1433
14342011-02-25 Anthony Green <green@moxielogic.com>
1435
1436 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1437 32-bit ABIs.
1438
14392011-02-15 Anthony Green <green@moxielogic.com>
1440
1441 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1442 * configure: Rebuilt.
1443
14442011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1445
1446 * configure: Regenerate.
1447
14482011-02-13 Anthony Green <green@moxielogic.com>
1449
1450 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1451 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1452 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1453
1454 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1455 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1456
1457 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1458 just return FFI_BAD_ABI when things are wrong.
1459 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1460 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1461 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1462 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1463 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1464
14652011-02-11 Anthony Green <green@moxielogic.com>
1466
1467 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1468 just return FFI_BAD_ABI when things are wrong.
1469
14702012-02-11 Eric Botcazou <ebotcazou@adacore.com>
1471
1472 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1473
14742011-02-09 Stuart Shelton <srcshelton@gmail.com>
1475
1476 http://bugs.gentoo.org/show_bug.cgi?id=286911
1477 * src/mips/ffitarget.h: Clean up error messages.
1478 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1479 ffi_raw*.
1480 * include/ffi.h.in: Add pragma for SGI compiler.
1481
14822011-02-09 Anthony Green <green@moxielogic.com>
1483
1484 * configure.ac: Add powerpc64-*-darwin* support.
1485
14862011-02-09 Anthony Green <green@moxielogic.com>
1487
1488 * README: Mention Interix.
1489
14902011-02-09 Jonathan Callen <abcd@gentoo.org>
1491
1492 * configure.ac: Add Interix to win32/cygwin/mingw case.
1493 * configure: Ditto.
1494 * src/closures.c: Treat Interix like Cygwin, instead of as a
1495 generic win32.
1496
14972011-02-09 Anthony Green <green@moxielogic.com>
1498
1499 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1500 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1501 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1502 (ffi_prep_closure_loc): Check for bad ABI.
1503 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1504 (initialize_aggregate): Check for bad types.
1505
15062011-02-09 Landon Fuller <landonf@plausible.coop>
1507
1508 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1509 src/arm/trampoline.S.
1510 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1511 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1512 * src/arm/ffi.c (ffi_trampoline_table)
1513 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1514 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1515 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1516 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1517 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1518 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1519 separately.
1520 * src/arm/sysv.S: Handle Apple iOS host.
1521 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
1522 * build-ios.sh: New file.
1523 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
1524 * README: Mention ARM iOS.
1525
15262011-02-08 Oren Held <orenhe@il.ibm.com>
1527
1528 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1529 redefinition of mallinfo on HP-UX.
1530
15312011-02-08 Ginn Chen <ginn.chen@oracle.com>
1532
1533 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
1534 aggregate return ABI. Flush cache.
1535 (ffi_prep_closure_loc): Flush cache.
1536
15372011-02-11 Anthony Green <green@moxielogic.com>
1538
1539 From Tom Honermann <tom.honermann@oracle.com>:
1540 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1541 AIX. Declare .ffi_prep_args. Insert nops after branch
1542 instructions so that the AIX linker can insert TOC reload
1543 instructions.
1544 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1545
15462011-02-08 Ed <ed@kdtc.net>
1547
1548 * src/powerpc/asm.h: Fix grammar nit in comment.
1549
15502011-02-08 Uli Link <ul.mcamafia@linkitup.de>
1551
1552 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1553
15542011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1555
1556 PR libffi/46661
1557 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1558 uintptr_t first.
1559 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1560
15612011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
1562
1563 * configure.ac: Fix x86 test for pc related relocs.
1564 * configure: Rebuilt.
1565
15662011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1567
1568 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1569 Handle case when CPU variant does not have long double support.
1570 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1571 and cores with soft floating point.
1572
15732011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1574
1575 * configure.ac: Add mips*-*-rtems* support.
1576 * configure: Regenerate.
1577 * src/mips/ffitarget.h: Ensure needed constants are available
1578 for targets which do not have sgidefs.h.
1579
15802011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1581
1582 PR target/40125
1583 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1584 * configure: Regenerate.
1585
15862010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1587
1588 PR libffi/29152
1589 PR libffi/42378
1590 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1591 update comments.
1592 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1593 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1594 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1595 update comments.
1596 * src/powerpc/ffi_darwin.c: Likewise.
1597
15982010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1599
1600 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1601 backslashes.
1602 (libffi_cv_as_string_pseudo_op): Likewise.
1603 * configure: Regenerate.
1604
16052010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
1606
1607 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1608 (ffi_closure_VFP): Same.
1609 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1610 directive.
1611
16122010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1613
1614 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1615 (PRIuPTR): Define.
1616
16172010-11-29 Richard Henderson <rth@redhat.com>
1618 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1619
1620 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1621 (.eh_frame): Use FDE_ENCODING.
1622 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1623
16242010-11-22 Jacek Caban <jacek@codeweavers.com>
1625
1626 * configure.ac: Check for symbol underscores on mingw-w64.
1627 * configure: Rebuilt.
1628 * src/x86/win64.S: Correctly access extern symbols in respect to
1629 underscores.
1630
16312010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632
1633 * testsuite/lib/libffi-dg.exp: Rename ...
1634 * testsuite/lib/libffi.exp: ... to this.
1635 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1636 * libffi/testsuite/libffi.special/special.exp: Likewise.
1637
16382010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1639
1640 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1641 code, new parameter, and return value. Update comments.
1642 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1643 call to layout_vfp_args().
1644 (ffi_call_SYSV): Update declaration.
1645 (ffi_call_VFP): New declaration.
1646 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1647 when ABI is FFI_VFP.
1648 (ffi_closure_VFP): New declaration.
1649 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1650 ffi_prep_incoming_args_SYSV().
1651 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1652 case handling.
1653 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1654 construction under VFP hard-float.
1655 (rec_vfp_type_p): New function.
1656 (vfp_type_p): Same.
1657 (place_vfp_arg): Same.
1658 (layout_vfp_args): Same.
1659 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1660 based on __ARM_PCS_VFP.
1661 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1662 fields.
1663 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1664 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1665 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1666 direct call. Move function pointer load upwards.
1667 (ffi_call_VFP): New function.
1668 (ffi_closure_VFP): Same.
1669
1670 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1671 (dg-skip-if): New function.
1672 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1673 and compiler options include -mfloat-abi=hard.
1674 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1675
16762010-10-01 Jakub Jelinek <jakub@redhat.com>
1677
1678 PR libffi/45677
1679 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1680 a multiple of 8.
1681 * testsuite/libffi.call/many2.c: New test.
1682
16832010-08-20 Mark Wielaard <mjw@redhat.com>
1684
1685 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1686 returns NULL.
1687
16882010-08-09 Andreas Tobler <andreast@fgznet.ch>
1689
1690 * configure.ac: Add target powerpc64-*-freebsd*.
1691 * configure: Regenerate.
1692 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1693 -mlong-double-128 only to linux targets.
1694 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1695 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1696 * testsuite/libffi.call/huge_struct.c: Likewise.
1697
16982010-08-05 Dan Witte <dwitte@mozilla.com>
1699
1700 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1701 debug CRT when --enable-debug is given.
1702 * configure.ac: Define it.
1703 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1704
17052010-08-04 Dan Witte <dwitte@mozilla.com>
1706
1707 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1708 platforms.
1709 * src/x86/ffi.c: Remove redundant ifdef checks.
1710 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1711 for X86_ANY so return value space doesn't get added twice.
1712
17132010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
1714
1715 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1716
17172010-07-22 Dan Witte <dwitte@mozilla.com>
1718
1719 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1720 * src/prep_cif.c: Fix ABI assertion.
1721 * src/cris/ffi.c: Ditto.
1722
17232010-07-10 Evan Phoenix <evan@fallingsnow.net>
1724
1725 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1726
17272010-07-07 Dan Horák <dan@danny.cz>
1728
1729 * include/ffi.h.in: Protect #define with #ifndef.
1730 * src/powerpc/ffitarget.h: Ditto.
1731 * src/s390/ffitarget.h: Ditto.
1732 * src/sparc/ffitarget.h: Ditto.
1733
17342010-07-07 Neil Roberts <neil@linux.intel.com>
1735
1736 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1737 16-bytes.
1738
17392010-07-02 Jakub Jelinek <jakub@redhat.com>
1740
1741 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1742 * Makefile.in: Regenerated.
1743
17442010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1745
1746 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1747 output, too.
1748 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1749 (libffi_cv_as_string_pseudo_op): Check for .string.
1750 * configure: Regenerate.
1751 * fficonfig.h.in: Regenerate.
1752 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1753
17542010-05-11 Dan Witte <dwitte@mozilla.com>
1755
1756 * doc/libffi.tex: Document previous change.
1757
17582010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
1759
1760 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1761
17622010-05-05 Michael Kohler <michaelkohler@live.com>
1763
1764 * src/dlmalloc.c (dlfree): Fix spelling.
1765 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1766 * configure.ac: Ditto.
1767 * configure: Rebuilt.
1768
17692010-04-13 Dan Witte <dwitte@mozilla.com>
1770
1771 * msvcc.sh: Build with -W3 instead of -Wall.
1772 * src/powerpc/ffi_darwin.c: Remove build warnings.
1773 * src/x86/ffi.c: Ditto.
1774 * src/x86/ffitarget.h: Ditto.
1775
17762010-04-12 Dan Witte <dwitte@mozilla.com>
1777 Walter Meinl <wuno@lsvw.de>
1778
1779 * configure.ac: Add OS/2 support.
1780 * configure: Rebuilt.
1781 * src/closures.c: Ditto.
1782 * src/dlmalloc.c: Ditto.
1783 * src/x86/win32.S: Ditto.
1784
17852010-04-07 Jakub Jelinek <jakub@redhat.com>
1786
1787 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
1788
17892010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1790
1791 * Makefile.in: Regenerate.
1792 * aclocal.m4: Regenerate.
1793 * include/Makefile.in: Regenerate.
1794 * man/Makefile.in: Regenerate.
1795 * testsuite/Makefile.in: Regenerate.
1796
17972010-03-30 Dan Witte <dwitte@mozilla.com>
1798
1799 * msvcc.sh: Disable build warnings.
1800 * README (tested): Clarify windows build procedure.
1801
18022010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1803
1804 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1805 * configure: Regenerate.
1806 * fficonfig.h.in: Regenerate.
1807 * libffi/src/x86/unix64.S (.eh_frame)
1808 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1809
18102010-03-14 Matthias Klose <doko@ubuntu.com>
1811
1812 * src/x86/ffi64.c: Fix typo in comment.
1813 * src/x86/ffi.c: Use /* ... */ comment style.
1814
18152010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1816
1817 * doc/libffi.texi (The Closure API): Fix typo.
1818 * doc/libffi.info: Remove.
1819
18202010-02-15 Matthias Klose <doko@ubuntu.com>
1821
1822 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1823 __ARM_ARCH_7EM__.
1824
18252010-01-15 Anthony Green <green@redhat.com>
1826
1827 * README: Add notes on building with Microsoft Visual C++.
1828
18292010-01-15 Daniel Witte <dwitte@mozilla.com>
1830
1831 * msvcc.sh: New file.
1832
1833 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1834 * src/x86/ffi.c: Tweak function declaration and remove excess
1835 parens.
1836 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1837 ffi_closure.
1838
1839 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1840 function ffi_call_win32 on X86_WIN32.
1841 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1842 (ffi_call_STDCALL): Remove.
1843
1844 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1845 to ffi_prep_cif_machdep for x86.
1846 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1847
18482010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
1849
1850 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
1851 Sun Studio compiler compatibility.
1852
18532010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
1854
1855 * doc/libffi.texi: Add closure example.
1856
18572010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1858
1859 PR libffi/40701
1860 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1861 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1862 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1863 alpha*-dec-osf*.
1864 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1865 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1866 * testsuite/libffi.call/return_ll1.c: Likewise.
1867 * testsuite/libffi.call/stret_medium2.c: Likewise.
1868 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1869 MAP_FAILED to char *.
1870
18712010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1872
1873 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1874
18752009-12-31 Anthony Green <green@redhat.com>
1876
1877 * README: Update for libffi 3.0.9.
1878
18792009-12-27 Matthias Klose <doko@ubuntu.com>
1880
1881 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1882 appropriate.
1883 * configure: Rebuilt.
1884
18852009-12-26 Anthony Green <green@redhat.com>
1886
1887 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1888 avr32*-*-*.
1889 * testsuite/libffi.call/cls_double_va.c: Ditto.
1890
18912009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1892
1893 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1894 and inttypes.h.
1895 * testsuite/libffi.special/unwindtest.cc: Ditto.
1896
18972009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1898
1899 * configure.ac: Add amd64-*-openbsd*.
1900 * configure: Rebuilt.
1901 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1902 openbsd programs with -lpthread.
1903
19042009-12-26 Anthony Green <green@redhat.com>
1905
1906 * testsuite/libffi.call/cls_double_va.c,
1907 testsuite/libffi.call/cls_longdouble.c,
1908 testsuite/libffi.call/cls_longdouble_va.c,
1909 testsuite/libffi.call/cls_pointer.c,
1910 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1911 mips*-*-* and arm*-*-*.
1912 * testsuite/libffi.call/cls_align_longdouble_split.c,
1913 testsuite/libffi.call/cls_align_longdouble_split2.c,
1914 testsuite/libffi.call/stret_medium2.c,
1915 testsuite/libffi.call/stret_medium.c,
1916 testsuite/libffi.call/stret_large.c,
1917 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1918
19192009-12-31 Kay Tietz <ktietz70@googlemail.com>
1920
1921 * testsuite/libffi.call/ffitest.h,
1922 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1923 definitions.
1924
19252009-12-31 Carlo Bramini <carlo.bramix@libero.it>
1926
1927 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1928 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1929 * configure: Rebuilt.
1930 * Makefile.in: Rebuilt.
1931
19322009-12-31 Anthony Green <green@redhat.com>
1933 Blake Chaffin.
1934
1935 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1936 Chaffin @ Apple.
1937
19382009-12-28 David Edelsohn <edelsohn@gnu.org>
1939
1940 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1941 local variables.
1942 (aix_adjust_aggregate_sizes): New function.
1943 (ffi_prep_cif_machdep): Call it.
1944
19452009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1946
1947 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1948 * configure: Regenerate.
1949 * fficonfig.h.in: Likewise.
1950 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1951 Solaris/x86.
1952
19532009-12-26 Andreas Schwab <schwab@linux-m68k.org>
1954
1955 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1956 when a float arguments is passed in memory.
1957 (ffi_closure_helper_SYSV): Mark general registers as used up when
1958 a 64bit or soft-float long double argument is passed in memory.
1959
19602009-12-25 Matthias Klose <doko@ubuntu.com>
1961
1962 * man/ffi_call.3: Fix #include in examples.
1963 * doc/libffi.texi: Add dircategory.
1964
19652009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
1966
1967 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1968 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1969 IRIX MIPSPro c99.
1970 * include/ffi_common.h: Added '__sgi' define to non
1971 '__attribute__((__mode__()))' integer typedefs.
1972 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
1973 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1974 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1975 FFI_LONGDOUBLE support and alignment(N32 only).
1976 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1977 fixed non '__attribute__((__mode__()))' integer typedefs.
1978 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1979 since they are Linux/GNU Assembler specific.
1980
19812009-12-25 Bradley Smith <brad@brad-smith.co.uk>
1982
1983 * configure.ac, Makefile.am, src/avr32/ffi.c,
1984 src/avr32/ffitarget.h,
1985 src/avr32/sysv.S: Add AVR32 port.
1986 * configure, Makefile.in: Rebuilt.
1987
19882009-12-21 Andreas Tobler <a.tobler@schweiz.org>
1989
1990 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1991 * configure: Regenerate.
1992
19932009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1994
1995 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1996
19972009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1998
1999 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
2000 type on HP-UX.
2001
20022012-02-13 Kai Tietz <ktietz@redhat.com>
2003
2004 PR libffi/52221
2005 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
2006 support for X86_WIN32.
2007 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
2008
20092009-12-11 Eric Botcazou <ebotcazou@adacore.com>
2010
2011 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
2012 double' arguments.
2013
20142009-12-11 Eric Botcazou <ebotcazou@adacore.com>
2015
2016 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
2017
20182009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2019
2020 PR libffi/40700
2021 * src/closures.c [X86_64 && __sun__ && __svr4__]
2022 (FFI_MMAP_EXEC_WRIT): Define.
2023
20242009-12-08 David Daney <ddaney@caviumnetworks.com>
2025
2026 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
2027 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
2028 * testsuite/libffi.call/stret_large.c: Same.
2029 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
2030 * testsuite/libffi.call/stret_large2.c: Same.
2031 * testsuite/libffi.call/stret_medium2.c: Same.
2032
20332009-12-07 David Edelsohn <edelsohn@gnu.org>
2034
2035 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
2036 typo.
2037
20382009-12-05 David Edelsohn <edelsohn@gnu.org>
2039
2040 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
2041 code.
2042 * src/powerpc/aix_closure.S: Same.
2043
20442009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2045
2046 * Makefile.in: Regenerate.
2047 * configure: Regenerate.
2048 * include/Makefile.in: Regenerate.
2049 * man/Makefile.in: Regenerate.
2050 * testsuite/Makefile.in: Regenerate.
2051
20522009-12-04 David Edelsohn <edelsohn@gnu.org>
2053
2054 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
2055 linux64_closure.S.
2056
20572009-12-04 Uros Bizjak <ubizjak@gmail.com>
2058
2059 PR libffi/41908
2060 * src/x86/ffi64.c (classify_argument): Update from
2061 gcc/config/i386/i386.c.
2062 (ffi_closure_unix64_inner): Do not use the address of two consecutive
2063 SSE registers directly.
2064 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
2065 for x86_64 linux targets.
2066
20672009-12-04 David Edelsohn <edelsohn@gnu.org>
2068
2069 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
2070 pfr for long double split between fpr13 and stack.
2071
20722009-12-03 David Edelsohn <edelsohn@gnu.org>
2073
2074 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
2075 fparg_count twice for long double.
2076
20772009-12-03 David Edelsohn <edelsohn@gnu.org>
2078
2079 PR libffi/42243
2080 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
2081
20822009-12-03 Uros Bizjak <ubizjak@gmail.com>
2083
2084 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
2085 Remove xfails for x86 linux targets.
2086
20872009-12-02 David Edelsohn <edelsohn@gnu.org>
2088
2089 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
2090 case.
2091
20922009-12-01 David Edelsohn <edelsohn@gnu.org>
2093
2094 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
2095 register usage. Call ffi_prep_args directly. Add long double
2096 return value support.
2097 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
2098 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
2099 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
2100 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
2101 mode.
2102 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
2103 into case.
2104 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
2105 Allocate result area between params and FPRs.
2106
21072009-11-30 David Edelsohn <edelsohn@gnu.org>
2108
2109 PR target/35484
2110 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
2111 AIX64.
2112 * src/powerpc/aix.S: Implement AIX64 version.
2113 * src/powerpc/aix_closure.S: Implement AIX64 version.
2114 (ffi_closure_ASM): Use extsb, lha and displament addresses.
2115 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
2116 support.
2117 (ffi_prep_cif_machdep): Same.
2118 (ffi_call): Same.
2119 (ffi_closure_helper_DARWIN): Same.
2120
21212009-11-02 Andreas Tobler <a.tobler@schweiz.org>
2122
2123 PR libffi/41908
2124 * testsuite/libffi.call/testclosure.c: New test.
2125
21262009-09-28 Kai Tietz <kai.tietz@onevision.com>
2127
2128 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
2129 assembly version use of ___chkstk.
2130
21312009-09-23 Matthias Klose <doko@ubuntu.com>
2132
2133 PR libffi/40242, PR libffi/41443
2134 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
2135 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
2136 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
2137 Change the conditionals to __SOFTFP__ || __ARM_EABI__
2138 for -mfloat-abi=softfp to work.
2139
21402009-09-17 Loren J. Rittle <ljrittle@acm.org>
2141
2142 PR testsuite/32843 (strikes again)
2143 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
2144 enable proper extension on char and short.
2145
21462009-09-15 David Daney <ddaney@caviumnetworks.com>
2147
2148 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
2149 handling for FFI_TYPE_POINTER.
2150 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
2151 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
2152 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
2153 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
2154 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
2155 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
2156 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
2157 structure and pointer returns.
2158 (ffi_closure_N32): Add handling for pointer returns.
2159 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
2160 calc_n32_return_struct_flags): Handle soft-float.
2161 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
2162 (ffi_call_N32): Declare proper argument types.
2163 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
2164 soft-float.
2165
21662009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2167
2168 * configure.ac (AC_PREREQ): Bump to 2.64.
2169
21702009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2171
2172 * Makefile.am (install-html, install-pdf): Remove.
2173 * Makefile.in: Regenerate.
2174
2175 * Makefile.in: Regenerate.
2176 * aclocal.m4: Regenerate.
2177 * configure: Regenerate.
2178 * fficonfig.h.in: Regenerate.
2179 * include/Makefile.in: Regenerate.
2180 * man/Makefile.in: Regenerate.
2181 * testsuite/Makefile.in: Regenerate.
2182
21832011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
2184
2185 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2186 * configure: Rebuilt.
2187
21882009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2189
2190 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2191
21922009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
2193
2194 PR libffi/40807
2195 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2196 return types for X86_WIN32.
2197 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2198 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2199 _ffi_closure_STDCALL): Likewise.
2200
2201 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2202 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2203
22042009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2205
2206 PR testsuite/40699
2207 PR testsuite/40707
2208 PR testsuite/40709
2209 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2210 2009-06-30 commits.
2211
22122009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2213
2214 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2215 to "" before adding paths. (This reinstates an assignment that
2216 was removed by my 2009-06-30 commit, but changes the initial
2217 value from "." to "".)
2218
22192009-07-01 H.J. Lu <hongjiu.lu@intel.com>
2220
2221 PR testsuite/40601
2222 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2223 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2224 empty.
2225
22262009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2227
2228 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2229 to ld_library_path. Use add_path. Add just find_libgcc_s
2230 to ld_library_path, not every libgcc multilib directory.
2231
22322009-06-16 Wim Lewis <wiml@hhhh.org>
2233
2234 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2235 supposed to be callee-saved.
2236 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2237 return buffer for odd-size structs.
2238
22392009-06-16 Andreas Tobler <a.tobler@schweiz.org>
2240
2241 PR libffi/40444
2242 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2243 allow_stack_execute for Darwin.
2244
22452009-06-16 Andrew Haley <aph@redhat.com>
2246
2247 * configure.ac (TARGETDIR): Add missing blank lines.
2248 * configure: Regenerate.
2249
22502009-06-16 Andrew Haley <aph@redhat.com>
2251
2252 * testsuite/libffi.call/cls_align_sint64.c,
2253 testsuite/libffi.call/cls_align_uint64.c,
2254 testsuite/libffi.call/cls_longdouble_va.c,
2255 testsuite/libffi.call/cls_ulonglong.c,
2256 testsuite/libffi.call/return_ll1.c,
2257 testsuite/libffi.call/stret_medium2.c: Fix printf format
2258 specifiers.
2259 * testsuite/libffi.call/ffitest.h,
2260 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2261
22622009-06-15 Andrew Haley <aph@redhat.com>
2263
2264 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2265 * testsuite/libffi.call/err_bad_abi.c: Likewise.
2266
22672009-06-12 Andrew Haley <aph@redhat.com>
2268
2269 * Makefile.am: Remove info_TEXINFOS.
2270
22712009-06-12 Andrew Haley <aph@redhat.com>
2272
2273 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2274 testsuite/libffi.call/cls_align_uint64.c,
2275 testsuite/libffi.call/cls_ulonglong.c,
2276 testsuite/libffi.call/return_ll1.c,
2277 testsuite/libffi.call/stret_medium2.c: Fix printf format
2278 specifiers.
2279 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2280
22812009-06-11 Timothy Wall <twall@users.sf.net>
2282
2283 * Makefile.am,
2284 configure.ac,
2285 include/ffi.h.in,
2286 include/ffi_common.h,
2287 src/closures.c,
2288 src/dlmalloc.c,
2289 src/x86/ffi.c,
2290 src/x86/ffitarget.h,
2291 src/x86/win64.S (new),
2292 README: Added win64 support (mingw or MSVC)
2293 * Makefile.in,
2294 include/Makefile.in,
2295 man/Makefile.in,
2296 testsuite/Makefile.in,
2297 configure,
2298 aclocal.m4: Regenerated
2299 * ltcf-c.sh: properly escape cygwin/w32 path
2300 * man/ffi_call.3: Clarify size requirements for return value.
2301 * src/x86/ffi64.c: Fix filename in comment.
2302 * src/x86/win32.S: Remove unused extern.
2303
2304 * testsuite/libffi.call/closure_fn0.c,
2305 testsuite/libffi.call/closure_fn1.c,
2306 testsuite/libffi.call/closure_fn2.c,
2307 testsuite/libffi.call/closure_fn3.c,
2308 testsuite/libffi.call/closure_fn4.c,
2309 testsuite/libffi.call/closure_fn5.c,
2310 testsuite/libffi.call/closure_fn6.c,
2311 testsuite/libffi.call/closure_stdcall.c,
2312 testsuite/libffi.call/cls_12byte.c,
2313 testsuite/libffi.call/cls_16byte.c,
2314 testsuite/libffi.call/cls_18byte.c,
2315 testsuite/libffi.call/cls_19byte.c,
2316 testsuite/libffi.call/cls_1_1byte.c,
2317 testsuite/libffi.call/cls_20byte.c,
2318 testsuite/libffi.call/cls_20byte1.c,
2319 testsuite/libffi.call/cls_24byte.c,
2320 testsuite/libffi.call/cls_2byte.c,
2321 testsuite/libffi.call/cls_3_1byte.c,
2322 testsuite/libffi.call/cls_3byte1.c,
2323 testsuite/libffi.call/cls_3byte2.c,
2324 testsuite/libffi.call/cls_4_1byte.c,
2325 testsuite/libffi.call/cls_4byte.c,
2326 testsuite/libffi.call/cls_5_1_byte.c,
2327 testsuite/libffi.call/cls_5byte.c,
2328 testsuite/libffi.call/cls_64byte.c,
2329 testsuite/libffi.call/cls_6_1_byte.c,
2330 testsuite/libffi.call/cls_6byte.c,
2331 testsuite/libffi.call/cls_7_1_byte.c,
2332 testsuite/libffi.call/cls_7byte.c,
2333 testsuite/libffi.call/cls_8byte.c,
2334 testsuite/libffi.call/cls_9byte1.c,
2335 testsuite/libffi.call/cls_9byte2.c,
2336 testsuite/libffi.call/cls_align_double.c,
2337 testsuite/libffi.call/cls_align_float.c,
2338 testsuite/libffi.call/cls_align_longdouble.c,
2339 testsuite/libffi.call/cls_align_longdouble_split.c,
2340 testsuite/libffi.call/cls_align_longdouble_split2.c,
2341 testsuite/libffi.call/cls_align_pointer.c,
2342 testsuite/libffi.call/cls_align_sint16.c,
2343 testsuite/libffi.call/cls_align_sint32.c,
2344 testsuite/libffi.call/cls_align_sint64.c,
2345 testsuite/libffi.call/cls_align_uint16.c,
2346 testsuite/libffi.call/cls_align_uint32.c,
2347 testsuite/libffi.call/cls_align_uint64.c,
2348 testsuite/libffi.call/cls_dbls_struct.c,
2349 testsuite/libffi.call/cls_double.c,
2350 testsuite/libffi.call/cls_double_va.c,
2351 testsuite/libffi.call/cls_float.c,
2352 testsuite/libffi.call/cls_longdouble.c,
2353 testsuite/libffi.call/cls_longdouble_va.c,
2354 testsuite/libffi.call/cls_multi_schar.c,
2355 testsuite/libffi.call/cls_multi_sshort.c,
2356 testsuite/libffi.call/cls_multi_sshortchar.c,
2357 testsuite/libffi.call/cls_multi_uchar.c,
2358 testsuite/libffi.call/cls_multi_ushort.c,
2359 testsuite/libffi.call/cls_multi_ushortchar.c,
2360 testsuite/libffi.call/cls_pointer.c,
2361 testsuite/libffi.call/cls_pointer_stack.c,
2362 testsuite/libffi.call/cls_schar.c,
2363 testsuite/libffi.call/cls_sint.c,
2364 testsuite/libffi.call/cls_sshort.c,
2365 testsuite/libffi.call/cls_uchar.c,
2366 testsuite/libffi.call/cls_uint.c,
2367 testsuite/libffi.call/cls_ulonglong.c,
2368 testsuite/libffi.call/cls_ushort.c,
2369 testsuite/libffi.call/err_bad_abi.c,
2370 testsuite/libffi.call/err_bad_typedef.c,
2371 testsuite/libffi.call/float2.c,
2372 testsuite/libffi.call/huge_struct.c,
2373 testsuite/libffi.call/nested_struct.c,
2374 testsuite/libffi.call/nested_struct1.c,
2375 testsuite/libffi.call/nested_struct10.c,
2376 testsuite/libffi.call/nested_struct2.c,
2377 testsuite/libffi.call/nested_struct3.c,
2378 testsuite/libffi.call/nested_struct4.c,
2379 testsuite/libffi.call/nested_struct5.c,
2380 testsuite/libffi.call/nested_struct6.c,
2381 testsuite/libffi.call/nested_struct7.c,
2382 testsuite/libffi.call/nested_struct8.c,
2383 testsuite/libffi.call/nested_struct9.c,
2384 testsuite/libffi.call/problem1.c,
2385 testsuite/libffi.call/return_ldl.c,
2386 testsuite/libffi.call/return_ll1.c,
2387 testsuite/libffi.call/stret_large.c,
2388 testsuite/libffi.call/stret_large2.c,
2389 testsuite/libffi.call/stret_medium.c,
2390 testsuite/libffi.call/stret_medium2.c,
2391 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2392 of checking for MMAP. Use intptr_t instead of long casts.
2393
23942009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2395
2396 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2397 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2398 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2399
24002009-06-09 Andrew Haley <aph@redhat.com>
2401
2402 * src/x86/freebsd.S: Add missing file.
2403
24042009-06-08 Andrew Haley <aph@redhat.com>
2405
2406 Import from libffi 3.0.8:
2407
2408 * doc/libffi.texi: New file.
2409 * doc/libffi.info: Likewise.
2410 * doc/stamp-vti: Likewise.
2411 * man/Makefile.am: New file.
2412 * man/ffi_call.3: New file.
2413
2414 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2415 src/dlmalloc.c.
2416 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2417
2418 * configure.ac: Bump version to 3.0.8.
2419 parisc*-*-linux*: Add.
2420 i386-*-freebsd* | i386-*-openbsd*: Add.
2421 powerpc-*-beos*: Add.
2422 AM_CONDITIONAL X86_FREEBSD: Add.
2423 AC_CONFIG_FILES: Add man/Makefile.
2424
2425 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2426
24272009-06-08 Andrew Haley <aph@redhat.com>
2428
2429 * README: Import from libffi 3.0.8.
2430
24312009-06-08 Andrew Haley <aph@redhat.com>
2432
2433 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2434 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2435 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2436 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2437
2438 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2439 * testsuite/libffi.call/stret_medium.c: Likewise.
2440 * testsuite/libffi.call/stret_large2.c: Likewise.
2441 * testsuite/libffi.call/stret_large.c: Likewise.
2442
24432008-12-26 Timothy Wall <twall@users.sf.net>
2444
2445 * testsuite/libffi.call/cls_longdouble.c,
2446 testsuite/libffi.call/cls_longdouble_va.c,
2447 testsuite/libffi.call/cls_align_longdouble.c,
2448 testsuite/libffi.call/cls_align_longdouble_split.c,
2449 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2450 failures on x86_64 cygwin/mingw.
2451
24522008-12-22 Timothy Wall <twall@users.sf.net>
2453
2454 * testsuite/libffi.call/closure_fn0.c,
2455 testsuite/libffi.call/closure_fn1.c,
2456 testsuite/libffi.call/closure_fn2.c,
2457 testsuite/libffi.call/closure_fn3.c,
2458 testsuite/libffi.call/closure_fn4.c,
2459 testsuite/libffi.call/closure_fn5.c,
2460 testsuite/libffi.call/closure_fn6.c,
2461 testsuite/libffi.call/closure_loc_fn0.c,
2462 testsuite/libffi.call/closure_stdcall.c,
2463 testsuite/libffi.call/cls_align_pointer.c,
2464 testsuite/libffi.call/cls_pointer.c,
2465 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2466 pointer to integer (intptr_t).
2467 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
2468
24692008-07-24 Anthony Green <green@redhat.com>
2470
2471 * testsuite/libffi.call/cls_dbls_struct.c,
2472 testsuite/libffi.call/cls_double_va.c,
2473 testsuite/libffi.call/cls_longdouble.c,
2474 testsuite/libffi.call/cls_longdouble_va.c,
2475 testsuite/libffi.call/cls_pointer.c,
2476 testsuite/libffi.call/cls_pointer_stack.c,
2477 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2478 compiler warnings.
2479
24802008-03-04 Anthony Green <green@redhat.com>
2481 Blake Chaffin
2482 hos@tamanegi.org
2483
2484 * testsuite/libffi.call/cls_align_longdouble_split2.c
2485 testsuite/libffi.call/cls_align_longdouble_split.c
2486 testsuite/libffi.call/cls_dbls_struct.c
2487 testsuite/libffi.call/cls_double_va.c
2488 testsuite/libffi.call/cls_longdouble.c
2489 testsuite/libffi.call/cls_longdouble_va.c
2490 testsuite/libffi.call/cls_pointer.c
2491 testsuite/libffi.call/cls_pointer_stack.c
2492 testsuite/libffi.call/err_bad_abi.c
2493 testsuite/libffi.call/err_bad_typedef.c
2494 testsuite/libffi.call/stret_large2.c
2495 testsuite/libffi.call/stret_large.c
2496 testsuite/libffi.call/stret_medium2.c
2497 testsuite/libffi.call/stret_medium.c: New tests from Apple.
2498
24992009-06-05 Andrew Haley <aph@redhat.com>
2500
2501 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2502 libffi.
2503
25042009-06-04 Andrew Haley <aph@redhat.com>
2505
2506 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2507 stdcall changes.
2508
25092008-02-26 Anthony Green <green@redhat.com>
2510 Thomas Heller <theller@ctypes.org>
2511
2512 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2513 comment.
2514
25152008-02-03 Timothy Wall <twall@users.sf.net>
2516
2517 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2518 offset based on code pointer, not data pointer.
2519
25202008-01-31 Timothy Wall <twall@users.sf.net>
2521
2522 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2523 closures.
2524 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2525 closures.
2526 * src/x86/win32.S: Add assembly for stdcall closure.
2527 * src/x86/ffi.c: Initialize stdcall closure trampoline.
2528
25292009-06-04 Andrew Haley <aph@redhat.com>
2530
2531 * include/ffi.h.in: Change void (*)() to void (*)(void).
2532 * src/x86/ffi.c: Likewise.
2533
25342009-06-04 Andrew Haley <aph@redhat.com>
2535
2536 * src/powerpc/ppc_closure.S: Insert licence header.
2537 * src/powerpc/linux64_closure.S: Likewise.
2538 * src/m68k/sysv.S: Likewise.
2539
2540 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2541 * src/powerpc/ffi.c: Likewise.
2542 * src/powerpc/ffi_darwin.c: Likewise.
2543 * src/m32r/ffi.c: Likewise.
2544 * src/sh64/ffi.c: Likewise.
2545 * src/x86/ffi64.c: Likewise.
2546 * src/alpha/ffi.c: Likewise.
2547 * src/alpha/osf.S: Likewise.
2548 * src/frv/ffi.c: Likewise.
2549 * src/s390/ffi.c: Likewise.
2550 * src/pa/ffi.c: Likewise.
2551 * src/pa/hpux32.S: Likewise.
2552 * src/ia64/unix.S: Likewise.
2553 * src/ia64/ffi.c: Likewise.
2554 * src/sparc/ffi.c: Likewise.
2555 * src/mips/ffi.c: Likewise.
2556 * src/sh/ffi.c: Likewise.
2557
25582008-02-15 David Daney <ddaney@avtrex.com>
2559
2560 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2561 Define (conditionally), and use it to include cachectl.h.
2562 (ffi_prep_closure_loc): Fix cache flushing.
2563 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
2564
25652009-06-04 Andrew Haley <aph@redhat.com>
2566
2567 include/ffi.h.in,
2568 src/arm/ffitarget.h,
2569 src/arm/ffi.c,
2570 src/arm/sysv.S,
2571 src/powerpc/ffitarget.h,
2572 src/closures.c,
2573 src/sh64/ffitarget.h,
2574 src/sh64/ffi.c,
2575 src/sh64/sysv.S,
2576 src/types.c,
2577 src/x86/ffi64.c,
2578 src/x86/ffitarget.h,
2579 src/x86/win32.S,
2580 src/x86/darwin.S,
2581 src/x86/ffi.c,
2582 src/x86/sysv.S,
2583 src/x86/unix64.S,
2584 src/alpha/ffitarget.h,
2585 src/alpha/ffi.c,
2586 src/alpha/osf.S,
2587 src/m68k/ffitarget.h,
2588 src/frv/ffitarget.h,
2589 src/frv/ffi.c,
2590 src/s390/ffitarget.h,
2591 src/s390/sysv.S,
2592 src/cris/ffitarget.h,
2593 src/pa/linux.S,
2594 src/pa/ffitarget.h,
2595 src/pa/ffi.c,
2596 src/raw_api.c,
2597 src/ia64/ffitarget.h,
2598 src/ia64/unix.S,
2599 src/ia64/ffi.c,
2600 src/ia64/ia64_flags.h,
2601 src/java_raw_api.c,
2602 src/debug.c,
2603 src/sparc/v9.S,
2604 src/sparc/ffitarget.h,
2605 src/sparc/ffi.c,
2606 src/sparc/v8.S,
2607 src/mips/ffitarget.h,
2608 src/mips/n32.S,
2609 src/mips/o32.S,
2610 src/mips/ffi.c,
2611 src/prep_cif.c,
2612 src/sh/ffitarget.h,
2613 src/sh/ffi.c,
2614 src/sh/sysv.S: Update license text.
2615
26162009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2617
2618 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2619 (.eh_frame): Add FDE for it.
2620
26212009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2622
2623 * configure.ac: Also check if assembler supports pc-relative
2624 relocs on X86_WIN32 targets.
2625 * configure: Regenerate.
2626 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2627 (_ffi_call_SYSV): Add missing function type symbol .def and
2628 add EH markup labels.
2629 (_ffi_call_STDCALL): Likewise.
2630 (_ffi_closure_SYSV): Likewise.
2631 (_ffi_closure_raw_SYSV): Likewise.
2632 (.eh_frame): Add hand-crafted EH data.
2633
26342009-04-09 Jakub Jelinek <jakub@redhat.com>
2635
2636 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2637 version 3 of the GNU General Public License and to point readers
2638 at the COPYING3 file and the FSF's license web page.
2639 * testsuite/libffi.call/call.exp: Likewise.
2640 * testsuite/libffi.special/special.exp: Likewise.
2641
26422009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2643
2644 * configure: Regenerate.
2645
26462008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2647
2648 PR libffi/26048
2649 * configure.ac (HAVE_AS_X86_PCREL): New test.
2650 * configure: Regenerate.
2651 * fficonfig.h.in: Regenerate.
2652 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2653 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2654 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2655 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2656 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2657 (.Lload_table): Likewise.
2658 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2659
26602008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2661
2662 * configure: Regenerate.
2663
26642008-11-21 Eric Botcazou <ebotcazou@adacore.com>
2665
2666 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2667 signed/unsigned int8/16 return values.
2668 * src/sparc/v8.S (ffi_call_v8): Likewise.
2669 (ffi_closure_v8): Likewise.
2670
26712008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2672 Steve Ellcey <sje@cup.hp.com>
2673
2674 * configure: Regenerate for new libtool.
2675 * Makefile.in: Ditto.
2676 * include/Makefile.in: Ditto.
2677 * aclocal.m4: Ditto.
2678
26792008-08-25 Andreas Tobler <a.tobler@schweiz.org>
2680
2681 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2682 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2683 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2684 Adjust copyright notice.
2685 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2686 register or two register to use for FFI_SYSV structs.
2687 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2688 (ffi_closure_helper_SYSV): Fix the return type for
2689 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2690 Adjust copyright notice.
2691
26922008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2693
2694 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2695 int.
2696
26972008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2698
2699 * configure: Regenerate.
2700 * include/Makefile.in: Regenerate.
2701 * testsuite/Makefile.in: Regenerate.
2702
27032008-06-07 Joseph Myers <joseph@codesourcery.com>
2704
2705 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2706 powerpc-*-beos*): Remove.
2707 * configure: Regenerate.
2708
27092008-05-09 Julian Brown <julian@codesourcery.com>
2710
2711 * Makefile.am (LTLDFLAGS): New.
2712 (libffi_la_LDFLAGS): Use above.
2713 * Makefile.in: Regenerate.
2714
27152008-04-18 Paolo Bonzini <bonzini@gnu.org>
2716
2717 PR bootstrap/35457
2718 * aclocal.m4: Regenerate.
2719 * configure: Regenerate.
2720
27212008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
2722
2723 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2724 * src/sh64/sysv.S: Likewise.
2725
27262008-03-26 Daniel Jacobowitz <dan@debian.org>
2727
2728 * src/arm/sysv.S: Fix ARM comment marker.
2729
27302008-03-26 Jakub Jelinek <jakub@redhat.com>
2731
2732 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2733 * src/s390/sysv.S: Likewise.
2734 * src/powerpc/ppc_closure.S: Likewise.
2735 * src/powerpc/sysv.S: Likewise.
2736 * src/x86/unix64.S: Likewise.
2737 * src/x86/sysv.S: Likewise.
2738 * src/sparc/v8.S: Likewise.
2739 * src/sparc/v9.S: Likewise.
2740 * src/m68k/sysv.S: Likewise.
2741 * src/arm/sysv.S: Likewise.
2742
27432008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2744
2745 * aclocal.m4: Regenerate.
2746 * configure: Likewise.
2747 * Makefile.in: Likewise.
2748 * include/Makefile.in: Likewise.
2749 * testsuite/Makefile.in: Likewise.
2750
27512008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
2752 Andreas Tobler <a.tobler@schweiz.org>
2753
2754 * configure.ac: Add amd64-*-freebsd* target.
2755 * configure: Regenerate.
2756
27572008-01-30 H.J. Lu <hongjiu.lu@intel.com>
2758
2759 PR libffi/34612
2760 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2761 returning struct.
2762
2763 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2764 tests.
2765
27662008-01-24 David Edelsohn <edelsohn@gnu.org>
2767
2768 * configure: Regenerate.
2769
27702008-01-06 Andreas Tobler <a.tobler@schweiz.org>
2771
2772 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2773
27742008-01-05 Andreas Tobler <a.tobler@schweiz.org>
2775
2776 PR testsuite/32843
2777 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2778 signed/unsigned int8/16 for X86_DARWIN.
2779 Updated copyright info.
2780 Handle one and two byte structs with special cif->flags.
2781 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2782 Updated copyright info.
2783 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2784 sysv.S
2785 Remove code to pop args from the stack after call.
2786 Special-case signed/unsigned for int8/16, one and two byte structs.
2787 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2788 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2789 FFI_TYPE_SINT32.
2790 Updated copyright info.
2791
27922007-12-08 David Daney <ddaney@avtrex.com>
2793
2794 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
2795 SUBU, add with ADDU and use smaller code sequences.
2796
27972007-12-07 David Daney <ddaney@avtrex.com>
2798
2799 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2800 type.
2801
28022007-12-06 David Daney <ddaney@avtrex.com>
2803
2804 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2805 defined.
2806 (ffi_java_raw): New typedef.
2807 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2808 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2809 ffi_java_raw.
2810 (ffi_java_raw_closure) : Same.
2811 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2812 parameter types.
2813 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2814 FFI_SIZEOF_JAVA_RAW.
2815 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2816 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2817 sizeof(ffi_java_raw) for alignment calculations.
2818 (ffi_java_ptrarray_to_raw): Same.
2819 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
2820 if FFI_SIZEOF_JAVA_RAW == 4.
2821 (ffi_java_raw_to_rvalue): Same.
2822 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2823 (ffi_java_translate_args): Same.
2824 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2825 parameter types.
2826 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2827
28282007-12-06 David Daney <ddaney@avtrex.com>
2829
2830 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
2831 pointer values.
2832
28332007-12-01 Andreas Tobler <a.tobler@schweiz.org>
2834
2835 PR libffi/31937
2836 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2837 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2838 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2839 set the NUM_FPR_ARG_REGISTERS according to.
2840 Add support for potential soft-float support under hard-float
2841 architecture.
2842 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2843 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2844 to the FFI_LINUX_SOFT_FLOAT ABI.
2845 (ffi_prep_cif_machdep): Likewise.
2846 (ffi_closure_helper_SYSV): Likewise.
2847 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2848 on archs where __NO_FPRS__ is true.
2849 Add FFI_TYPE_UINT128 support.
2850 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2851 Adjust copyright notice.
2852
28532007-11-25 Andreas Tobler <a.tobler@schweiz.org>
2854
2855 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2856 * include/ffi_common.h: ... here.
2857 Update copyright.
2858
28592007-11-17 Andreas Tobler <a.tobler@schweiz.org>
2860
2861 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2862 * src/powerpc/linux64.S: Likewise.
2863 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2864 * testsuite/libffi.call/return_ldl.c: New test.
2865
28662007-09-04 <aph@redhat.com>
2867
2868 * src/arm/sysv.S (UNWIND): New.
2869 (Whole file): Conditionally compile unwinder directives.
2870 * src/arm/sysv.S: Add unwinder directives.
2871
2872 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2873 Only treat r0 as a struct address if we're actually returning a
2874 struct by address.
2875 Only copy the bytes that are actually within a struct.
2876 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2877 is returned in r0, not passed by address.
2878 (ffi_call): Allocate a word-sized temporary for the case where
2879 a composite is returned in r0.
2880 (ffi_prep_incoming_args_SYSV): Align as necessary.
2881
28822007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
2883
2884 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
2885 directly using the sys_cacheflush syscall.
2886
28872007-07-27 Andrew Haley <aph@redhat.com>
2888
2889 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2890
28912007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
2892
2893 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2894 * configure.ac: Likewise.
2895 * Makefile.in: Regenerate.
2896 * include/Makefile.in: Likewise.
2897 * testsuite/Makefile.in: Likewise.
2898 * configure: Likewise.
2899
29002007-08-24 David Daney <ddaney@avtrex.com>
2901
2902 * testsuite/libffi.call/return_sl.c: New test.
2903
29042007-08-10 David Daney <ddaney@avtrex.com>
2905
2906 * testsuite/libffi.call/cls_multi_ushort.c,
2907 testsuite/libffi.call/cls_align_uint16.c,
2908 testsuite/libffi.call/nested_struct1.c,
2909 testsuite/libffi.call/nested_struct3.c,
2910 testsuite/libffi.call/cls_7_1_byte.c,
2911 testsuite/libffi.call/nested_struct5.c,
2912 testsuite/libffi.call/cls_double.c,
2913 testsuite/libffi.call/nested_struct7.c,
2914 testsuite/libffi.call/cls_sint.c,
2915 testsuite/libffi.call/nested_struct9.c,
2916 testsuite/libffi.call/cls_20byte1.c,
2917 testsuite/libffi.call/cls_multi_sshortchar.c,
2918 testsuite/libffi.call/cls_align_sint64.c,
2919 testsuite/libffi.call/cls_3byte2.c,
2920 testsuite/libffi.call/cls_multi_schar.c,
2921 testsuite/libffi.call/cls_multi_uchar.c,
2922 testsuite/libffi.call/cls_19byte.c,
2923 testsuite/libffi.call/cls_9byte1.c,
2924 testsuite/libffi.call/cls_align_float.c,
2925 testsuite/libffi.call/closure_fn1.c,
2926 testsuite/libffi.call/problem1.c,
2927 testsuite/libffi.call/closure_fn3.c,
2928 testsuite/libffi.call/cls_sshort.c,
2929 testsuite/libffi.call/closure_fn5.c,
2930 testsuite/libffi.call/cls_align_double.c,
2931 testsuite/libffi.call/nested_struct.c,
2932 testsuite/libffi.call/cls_2byte.c,
2933 testsuite/libffi.call/nested_struct10.c,
2934 testsuite/libffi.call/cls_4byte.c,
2935 testsuite/libffi.call/cls_6byte.c,
2936 testsuite/libffi.call/cls_8byte.c,
2937 testsuite/libffi.call/cls_multi_sshort.c,
2938 testsuite/libffi.call/cls_align_sint16.c,
2939 testsuite/libffi.call/cls_align_uint32.c,
2940 testsuite/libffi.call/cls_20byte.c,
2941 testsuite/libffi.call/cls_float.c,
2942 testsuite/libffi.call/nested_struct2.c,
2943 testsuite/libffi.call/cls_5_1_byte.c,
2944 testsuite/libffi.call/nested_struct4.c,
2945 testsuite/libffi.call/cls_24byte.c,
2946 testsuite/libffi.call/nested_struct6.c,
2947 testsuite/libffi.call/cls_64byte.c,
2948 testsuite/libffi.call/nested_struct8.c,
2949 testsuite/libffi.call/cls_uint.c,
2950 testsuite/libffi.call/cls_multi_ushortchar.c,
2951 testsuite/libffi.call/cls_schar.c,
2952 testsuite/libffi.call/cls_uchar.c,
2953 testsuite/libffi.call/cls_align_uint64.c,
2954 testsuite/libffi.call/cls_ulonglong.c,
2955 testsuite/libffi.call/cls_align_longdouble.c,
2956 testsuite/libffi.call/cls_1_1byte.c,
2957 testsuite/libffi.call/cls_12byte.c,
2958 testsuite/libffi.call/cls_3_1byte.c,
2959 testsuite/libffi.call/cls_3byte1.c,
2960 testsuite/libffi.call/cls_4_1byte.c,
2961 testsuite/libffi.call/cls_6_1_byte.c,
2962 testsuite/libffi.call/cls_16byte.c,
2963 testsuite/libffi.call/cls_18byte.c,
2964 testsuite/libffi.call/closure_fn0.c,
2965 testsuite/libffi.call/cls_9byte2.c,
2966 testsuite/libffi.call/closure_fn2.c,
2967 testsuite/libffi.call/closure_fn4.c,
2968 testsuite/libffi.call/cls_ushort.c,
2969 testsuite/libffi.call/closure_fn6.c,
2970 testsuite/libffi.call/cls_5byte.c,
2971 testsuite/libffi.call/cls_align_pointer.c,
2972 testsuite/libffi.call/cls_7byte.c,
2973 testsuite/libffi.call/cls_align_sint32.c,
2974 testsuite/libffi.special/unwindtest_ffi_call.cc,
2975 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2976
29772007-08-10 David Daney <ddaney@avtrex.com>
2978
2979 PR libffi/28313
2980 * configure.ac: Don't treat mips64 as a special case.
2981 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2982 * configure: Regenerate
2983 * Makefile.in: Ditto.
2984 * fficonfig.h.in: Ditto.
2985 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2986 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2987 (FFI_DEFAULT_ABI): Set for n64 case.
2988 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2989 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2990 (ffi_closure_N32): New function.
2991 (.eh_frame): New section
2992 * src/mips/o32.S: Clean up comments.
2993 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2994 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2995 _MIPS_SIM == _ABIN32 throughout.
2996 (FFI_MIPS_STOP_HERE): New, use in place of
2997 ffi_stop_here.
2998 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2999 to support n32/n64 ABIs.
3000 (calc_n32_struct_flags): Rewrite.
3001 (calc_n32_return_struct_flags): Remove unused variable. Reverse
3002 position of flag bits.
3003 (ffi_prep_cif_machdep): Rewrite n32 portion.
3004 (ffi_call): Enable for n64. Add special handling for small structure
3005 return values.
3006 (ffi_prep_closure_loc): Add n32 and n64 support.
3007 (ffi_closure_mips_inner_O32): Add cast to silence warning.
3008 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
3009
30102007-08-08 David Daney <ddaney@avtrex.com>
3011
3012 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
3013 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
3014 specifiers.
3015 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
3016 * testsuite/libffi.call/cls_sint.c (main): Ditto.
3017 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
3018 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
3019 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
3020 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
3021 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
3022 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
3023 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
3024 * testsuite/libffi.call/return_fl3.c (main): Ditto.
3025 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
3026 * testsuite/libffi.call/nested_struct.c (main): Ditto.
3027 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
3028 * testsuite/libffi.call/return_ll1.c (main): Ditto.
3029 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
3030 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
3031 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
3032 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
3033 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
3034 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
3035 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
3036 * testsuite/libffi.call/cls_uint.c (main): Ditto.
3037 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
3038 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
3039 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
3040 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
3041 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
3042 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
3043 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
3044 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
3045 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
3046
30472007-08-07 Andrew Haley <aph@redhat.com>
3048
3049 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
3050 checkin.
3051
30522007-08-06 Andrew Haley <aph@redhat.com>
3053
3054 PR testsuite/32843
3055 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
3056 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
3057 FFI_TYPE_SINT32.
3058
30592007-08-02 David Daney <ddaney@avtrex.com>
3060
3061 * testsuite/libffi.call/return_ul.c (main): Define return type as
3062 ffi_arg. Use proper printf conversion specifier.
3063
30642007-07-30 Andrew Haley <aph@redhat.com>
3065
3066 PR testsuite/32843
3067 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
3068 signed/unsigned int8/16.
3069 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
3070 Use a jump table.
3071 Remove code to pop args from the stack after call.
3072 Special-case signed/unsigned int8/16.
3073 * testsuite/libffi.call/return_sc.c (main): Revert.
3074
30752007-07-26 Richard Guenther <rguenther@suse.de>
3076
3077 PR testsuite/32843
3078 * testsuite/libffi.call/return_sc.c (main): Verify call
3079 result as signed char, not ffi_arg.
3080
30812007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3082
3083 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
3084 * configure: Regenerate.
3085
30862007-07-11 David Daney <ddaney@avtrex.com>
3087
3088 * src/mips/ffi.c: Don't include sys/cachectl.h.
3089 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
3090 cacheflush().
3091
30922007-05-18 Aurelien Jarno <aurelien@aurel32.net>
3093
3094 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
3095 from (ffi_prep_closure): ... this.
3096 (FFI_INIT_TRAMPOLINE): Adjust.
3097
30982005-12-31 Phil Blundell <pb@reciva.com>
3099
3100 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
3101 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
3102 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
3103 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3104 (FFI_CLOSURES): Enable closure support.
3105
31062007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
3107
3108 * testsuite/libffi.call/cls_multi_ushort.c,
3109 testsuite/libffi.call/cls_align_uint16.c,
3110 testsuite/libffi.call/nested_struct1.c,
3111 testsuite/libffi.call/nested_struct3.c,
3112 testsuite/libffi.call/cls_7_1_byte.c,
3113 testsuite/libffi.call/cls_double.c,
3114 testsuite/libffi.call/nested_struct5.c,
3115 testsuite/libffi.call/nested_struct7.c,
3116 testsuite/libffi.call/cls_sint.c,
3117 testsuite/libffi.call/nested_struct9.c,
3118 testsuite/libffi.call/cls_20byte1.c,
3119 testsuite/libffi.call/cls_multi_sshortchar.c,
3120 testsuite/libffi.call/cls_align_sint64.c,
3121 testsuite/libffi.call/cls_3byte2.c,
3122 testsuite/libffi.call/cls_multi_schar.c,
3123 testsuite/libffi.call/cls_multi_uchar.c,
3124 testsuite/libffi.call/cls_19byte.c,
3125 testsuite/libffi.call/cls_9byte1.c,
3126 testsuite/libffi.call/cls_align_float.c,
3127 testsuite/libffi.call/closure_fn1.c,
3128 testsuite/libffi.call/problem1.c,
3129 testsuite/libffi.call/closure_fn3.c,
3130 testsuite/libffi.call/cls_sshort.c,
3131 testsuite/libffi.call/closure_fn5.c,
3132 testsuite/libffi.call/cls_align_double.c,
3133 testsuite/libffi.call/cls_2byte.c,
3134 testsuite/libffi.call/nested_struct.c,
3135 testsuite/libffi.call/nested_struct10.c,
3136 testsuite/libffi.call/cls_4byte.c,
3137 testsuite/libffi.call/cls_6byte.c,
3138 testsuite/libffi.call/cls_8byte.c,
3139 testsuite/libffi.call/cls_multi_sshort.c,
3140 testsuite/libffi.call/cls_align_uint32.c,
3141 testsuite/libffi.call/cls_align_sint16.c,
3142 testsuite/libffi.call/cls_float.c,
3143 testsuite/libffi.call/cls_20byte.c,
3144 testsuite/libffi.call/cls_5_1_byte.c,
3145 testsuite/libffi.call/nested_struct2.c,
3146 testsuite/libffi.call/cls_24byte.c,
3147 testsuite/libffi.call/nested_struct4.c,
3148 testsuite/libffi.call/nested_struct6.c,
3149 testsuite/libffi.call/cls_64byte.c,
3150 testsuite/libffi.call/nested_struct8.c,
3151 testsuite/libffi.call/cls_uint.c,
3152 testsuite/libffi.call/cls_multi_ushortchar.c,
3153 testsuite/libffi.call/cls_schar.c,
3154 testsuite/libffi.call/cls_uchar.c,
3155 testsuite/libffi.call/cls_align_uint64.c,
3156 testsuite/libffi.call/cls_ulonglong.c,
3157 testsuite/libffi.call/cls_align_longdouble.c,
3158 testsuite/libffi.call/cls_1_1byte.c,
3159 testsuite/libffi.call/cls_12byte.c,
3160 testsuite/libffi.call/cls_3_1byte.c,
3161 testsuite/libffi.call/cls_3byte1.c,
3162 testsuite/libffi.call/cls_4_1byte.c,
3163 testsuite/libffi.call/cls_6_1_byte.c,
3164 testsuite/libffi.call/cls_16byte.c,
3165 testsuite/libffi.call/cls_18byte.c,
3166 testsuite/libffi.call/closure_fn0.c,
3167 testsuite/libffi.call/cls_9byte2.c,
3168 testsuite/libffi.call/closure_fn2.c,
3169 testsuite/libffi.call/closure_fn4.c,
3170 testsuite/libffi.call/cls_ushort.c,
3171 testsuite/libffi.call/closure_fn6.c,
3172 testsuite/libffi.call/cls_5byte.c,
3173 testsuite/libffi.call/cls_align_pointer.c,
3174 testsuite/libffi.call/cls_7byte.c,
3175 testsuite/libffi.call/cls_align_sint32.c,
3176 testsuite/libffi.special/unwindtest_ffi_call.cc,
3177 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
3178
31792007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3180
3181 * aclocal.m4: Regenerated.
3182
31832007-06-02 Paolo Bonzini <bonzini@gnu.org>
3184
3185 * configure: Regenerate.
3186
31872007-05-23 Steve Ellcey <sje@cup.hp.com>
3188
3189 * Makefile.in: Regenerate.
3190 * configure: Regenerate.
3191 * aclocal.m4: Regenerate.
3192 * include/Makefile.in: Regenerate.
3193 * testsuite/Makefile.in: Regenerate.
3194
31952007-05-10 Roman Zippel <zippel@linux-m68k.org>
3196
3197 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3198 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3199 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3200 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3201 (FFI_CLOSURES): Enable closure support.
3202
32032007-05-10 Roman Zippel <zippel@linux-m68k.org>
3204
3205 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3206 * configure: Regenerate.
3207 * fficonfig.h.in: Regenerate.
3208 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3209 CFI_OFFSET,CFI_DEF_CFA): New macros.
3210 (ffi_call_SYSV): Add callframe annotation.
3211
32122007-05-10 Roman Zippel <zippel@linux-m68k.org>
3213
3214 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3215 numerous test suite failures.
3216 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3217
32182007-04-11 Paolo Bonzini <bonzini@gnu.org>
3219
3220 * Makefile.am (EXTRA_DIST): Bring up to date.
3221 * Makefile.in: Regenerate.
3222 * src/frv/eabi.S: Remove RCS keyword.
3223
32242007-04-06 Richard Henderson <rth@redhat.com>
3225
3226 * configure.ac: Tidy target case.
3227 (HAVE_LONG_DOUBLE): Allow the target to override.
3228 * configure: Regenerate.
3229 * include/ffi.h.in: Don't define ffi_type_foo if
3230 LIBFFI_HIDE_BASIC_TYPES is defined.
3231 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3232 to ffi_type_double.
3233 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3234 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3235 (ffi_type_longdouble): Special case for Alpha. Don't define
3236 if long double == double.
3237
3238 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3239 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3240 (ffi_call, ffi_closure_osf_inner): Likewise.
3241 (ffi_closure_osf_inner): Likewise. Mark hidden.
3242 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3243 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3244 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3245 (load_table): Handle 128-bit long double.
3246
3247 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3248
32492007-04-06 Tom Tromey <tromey@redhat.com>
3250
3251 PR libffi/31491:
3252 * README: Fixed bug in example.
3253
32542007-04-03 Jakub Jelinek <jakub@redhat.com>
3255
3256 * src/closures.c: Include sys/statfs.h.
3257 (_GNU_SOURCE): Define on Linux.
3258 (FFI_MMAP_EXEC_SELINUX): Define.
3259 (selinux_enabled): New variable.
3260 (selinux_enabled_check): New function.
3261 (is_selinux_enabled): Define.
3262 (dlmmap): Use it.
3263
32642007-03-24 Uros Bizjak <ubizjak@gmail.com>
3265
3266 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3267 Use 'volatile float sum' to create sum of floats to avoid false
3268 negative due to excess precision on ix86 targets.
3269 (main): Ditto.
3270
32712007-03-08 Alexandre Oliva <aoliva@redhat.com>
3272
3273 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3274 patch.
3275 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3276
32772007-03-07 Alexandre Oliva <aoliva@redhat.com>
3278
3279 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3280 (ffi_prep_closure_loc): New.
3281 (ffi_prep_raw_closure_loc): New.
3282 (ffi_prep_java_raw_closure_loc): New.
3283 * src/closures.c: New file.
3284 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3285 Replace sflags with exec_offset.
3286 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3287 sub_segment_exec_offset): New macros.
3288 (get_segment_flags, set_segment_flags, check_segment_merge): New
3289 macros.
3290 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3291 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3292 destroy_mspace): Use new macros.
3293 (sys_alloc): Silence warning.
3294 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3295 * Makefile.in: Rebuilt.
3296 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3297 terms of ffi_prep_closure_loc.
3298 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3299 from...
3300 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3301 renamed version.
3302 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3303 adjusted from...
3304 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3305 the renamed version.
3306 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3307 (ffi_prep_closure): ... this.
3308 * src/pa/ffi.c: Likewise.
3309 * src/cris/ffi.c: Likewise. Adjust.
3310 * src/frv/ffi.c: Likewise.
3311 * src/ia64/ffi.c: Likewise.
3312 * src/mips/ffi.c: Likewise.
3313 * src/powerpc/ffi_darwin.c: Likewise.
3314 * src/s390/ffi.c: Likewise.
3315 * src/sh/ffi.c: Likewise.
3316 * src/sh64/ffi.c: Likewise.
3317 * src/sparc/ffi.c: Likewise.
3318 * src/x86/ffi64.c: Likewise.
3319 * src/x86/ffi.c: Likewise.
3320 (FFI_INIT_TRAMPOLINE): Adjust.
3321 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3322 (ffi_prep_raw_closure): ... this.
3323 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3324 (ffi_prep_closure): ... this.
3325 (flush_icache): Adjust.
3326
33272007-03-07 Alexandre Oliva <aoliva@redhat.com>
3328
3329 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3330 Lea's malloc.
3331
33322007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3333
3334 * Makefile.am: Add dummy install-pdf target.
3335 * Makefile.in: Regenerate
3336
33372007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
3338
3339 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3340 ffi_closure_helper_SYSV): Add long double handling.
3341
33422007-02-02 Jakub Jelinek <jakub@redhat.com>
3343
3344 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3345 immediately after bctrl instruction.
3346
33472007-01-18 Alexandre Oliva <aoliva@redhat.com>
3348
3349 * Makefile.am (all-recursive, install-recursive,
3350 mostlyclean-recursive, clean-recursive, distclean-recursive,
3351 maintainer-clean-recursive): Add missing targets.
3352 * Makefile.in: Rebuilt.
3353
33542006-12-14 Andreas Tobler <a.tobler@schweiz.org>
3355
3356 * configure.ac: Add TARGET for x86_64-*-darwin*.
3357 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3358 for X86_DARWIN.
3359 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3360 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3361 * configure: Regenerate.
3362 * Makefile.in: Regenerate.
3363 * include/Makefile.in: Regenerate.
3364 * testsuite/Makefile.in: Regenerate.
3365 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3366 ffi_call only.
3367
33682006-12-13 Andreas Tobler <a.tobler@schweiz.org>
3369
3370 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3371 Makefile.am.
3372
33732006-10-31 Geoffrey Keating <geoffk@apple.com>
3374
3375 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3376 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3377 Darwin.
3378 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3379 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3380
33812006-10-10 Paolo Bonzini <bonzini@gnu.org>
3382 Sandro Tolaini <tolaini@libero.it>
3383
3384 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
3385 conditional.
3386 * configure: Regenerated.
3387 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3388 (EXTRA_DIST): Add src/x86/darwin.S.
3389 * Makefile.in: Regenerated.
3390 * include/Makefile.in: Regenerated.
3391 * testsuite/Makefile.in: Regenerated.
3392
3393 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3394 X86_WIN32, and additionally align stack to 16 bytes.
3395 * src/x86/darwin.S: New, based on sysv.S.
3396 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3397
33982006-09-12 David Daney <ddaney@avtrex.com>
3399
3400 PR libffi/23935
3401 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3402 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3403 * aclocal.m4: Regenerated for automake 1.9.6.
3404 * Makefile.in: Regenerated.
3405 * include/Makefile.in: Regenerated.
3406 * testsuite/Makefile.in: Regenerated.
3407
34082006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3409
3410 * include/ffi_common.h (struct): Revert accidental commit.
3411
34122006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3413
3414 * include/ffi_common.h: Remove lint directives.
3415 * include/ffi.h.in: Likewise.
3416
34172006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
3418
3419 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3420 for 32-bit architectures.
3421 * testsuite/libffi.call/return_ul.c: New test case.
3422
34232006-07-19 David Daney <ddaney@avtrex.com>
3424
3425 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3426 xfail remains for mips64.
3427
34282006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3429
3430 * Makefile.am: Add install-html target. Add install-html to .PHONY
3431 * Makefile.in: Regenerate.
3432 * aclocal.m4: Regenerate.
3433 * include/Makefile.in: Regenerate.
3434 * testsuite/Makefile.in: Regenerate.
3435
34362006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3437
3438 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3439 stack slot.
3440
34412006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
3442
3443 * README: Remove notice about 'Crazy Comments'.
3444 * src/debug.c: Remove lint directives. Cleanup white spaces.
3445 * src/java_raw_api.c: Likewise.
3446 * src/prep_cif.c: Likewise.
3447 * src/raw_api.c: Likewise.
3448 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3449 to the testsuite.
3450 * src/arm/ffi.c: Remove lint directives.
3451 * src/m32r/ffi.c: Likewise.
3452 * src/pa/ffi.c: Likewise.
3453 * src/powerpc/ffi.c: Likewise.
3454 * src/powerpc/ffi_darwin.c: Likewise.
3455 * src/sh/ffi.c: Likewise.
3456 * src/sh64/ffi.c: Likewise.
3457 * src/x86/ffi.c: Likewise.
3458 * testsuite/libffi.call/float2.c: Likewise.
3459 * testsuite/libffi.call/promotion.c: Likewise.
3460 * testsuite/libffi.call/struct1.c: Likewise.
3461
34622006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
3463
3464 * src/pa/hpux32.S: Correct unwind offset calculation for
3465 ffi_closure_pa32.
3466 * src/pa/linux.S: Likewise.
3467
34682006-04-12 James E Wilson <wilson@specifix.com>
3469
3470 PR libgcj/26483
3471 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3472 (hfa_type_load): Call stf_spill.
3473 (hfa_type_store): Call ldf_fill.
3474 (ffi_call): Adjust calls to above routines. Add local temps for
3475 macro result.
3476
34772006-04-10 Matthias Klose <doko@debian.org>
3478
3479 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3480 directory names containing underscores.
3481
34822006-04-07 James E Wilson <wilson@specifix.com>
3483
3484 * testsuite/libffi.call/float4.c: New testcase.
3485
34862006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3487 Andreas Tobler <a.tobler@schweiz.ch>
3488
3489 * Makefile.am: Add PA_HPUX port.
3490 * Makefile.in: Regenerate.
3491 * include/Makefile.in: Likewise.
3492 * testsuite/Makefile.in: Likewise.
3493 * configure.ac: Add PA_HPUX rules.
3494 * configure: Regenerate.
3495 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3496 Add PA_HPUX and PA64_HPUX.
3497 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3498 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3499 (FFI_TYPE_SMALL_STRUCT2): Define.
3500 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3501 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3502 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3503 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3504 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3505 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3506 * src/pa/ffi.c (ROUND_DOWN): Delete.
3507 (fldw, fstw, fldd, fstd): Use '__asm__'.
3508 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3509 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3510 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3511 Simplify incrementing of stack slot variable. Change type of local
3512 'n' to unsigned int.
3513 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3514 double on PA_HPUX.
3515 (ffi_prep_cif_machdep): Likewise.
3516 (ffi_call): Likewise.
3517 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3518 return type to ffi_status. Simplify incrementing of stack slot
3519 variable. Only copy floating point argument registers when PA_LINUX
3520 is true. Reformat debug statement.
3521 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3522 FFI_TYPE_SMALL_STRUCT8.
3523 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3524 declaration.
3525 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3526 Add nops to cache flush. Add trampoline for PA_HPUX.
3527 * src/pa/hpux32.S: New file.
3528 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3529 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3530 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3531 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3532 argument type checks so that common argument types appear first.
3533 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3534 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3535
35362006-03-24 Alan Modra <amodra@bigpond.net.au>
3537
3538 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3539 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3540 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3541 FFI_TYPE_LONGDOUBLE.
3542 (ffi_prep_args64): Assert using IBM extended double.
3543 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3544 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3545 (ffi_call): Handle FFI_LINUX.
3546 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3547 gpr3 return pointer as for struct return. Handle FFI_LINUX
3548 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3549 unnecessarily.
3550 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3551 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3552 Don't use r6 as pointer to results, instead use sp offset. Don't
3553 make a special call to load lr with case table address, instead
3554 use offset from previous call.
3555 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3556 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3557 return.
3558
35592006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
3560
3561 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3562 passed with FP registers correctly.
3563 (ffi_closure_helper_SYSV): Likewise.
3564 * src/sh64/sysv.S: Likewise.
3565
35662006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
3567
3568 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3569 args and userdata unused.
3570 (closure_test_fn1): Mark cif and userdata unused.
3571 (main): Remove unused res.
3572
35732006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
3574
3575 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3576 -O2, -O3, -Os and the warning flags -W -Wall.
3577 * testsuite/libffi.special/special.exp: Likewise.
3578 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3579 unused parameter unused for gcc or else do nothing.
3580 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3581 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3582 and userdata unused.
3583 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3584 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3585 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3586 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3587 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3588 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3589 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3590 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3591 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3592 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3593 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3594 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3595 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3596 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3597 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3598 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3599 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3600 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3601 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3602 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3603 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3604 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3605 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3606 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3607 Likewise.
3608 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3609 Likewise.
3610 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3611 Likewise.
3612 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3613 void* to avoid compiler warning.
3614 (main): Likewise.
3615 (cls_struct_align_gn): Mark cif and userdata unused.
3616 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3617 Likewise.
3618 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3619 Likewise.
3620 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3621 Likewise.
3622 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3623 Likewise.
3624 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3625 Likewise.
3626 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3627 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3628 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3629 data unused.
3630 (main): Cast res_call to silence gcc.
3631 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3632 data unused.
3633 (main): Cast res_call to silence gcc.
3634 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3635 and data unused.
3636 (main): Cast res_call to silence gcc.
3637 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3638 data unused.
3639 (main): Cast res_call to silence gcc.
3640 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3641 data unused.
3642 (main): Cast res_call to silence gcc.
3643 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3644 and data unused.
3645 (main): Cast res_call to silence gcc.
3646 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3647 userdata unused.
3648 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3649 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3650 userdata unused.
3651 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3652 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3653 userdata unused.
3654 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3655 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3656 userdata unused.
3657 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3658 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3659 userdata unused.
3660 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3661 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3662 and userdata unused.
3663 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3664 userdata unused.
3665 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3666 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3667 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3668 Cleanup white spaces.
3669 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3670 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3671 cif and userdata unused.
3672 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3673 Likewise.
3674 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3675 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3676 formatters to silence gcc.
3677 (B_gn): Mark cif and userdata unused.
3678 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3679 unused.
3680 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3681 (B_gn): Mark cif and userdata unused.
3682 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3683 unused.
3684 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3685 (B_gn): Mark cif and userdata unused.
3686 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3687 unused.
3688 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3689 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3690 * testsuite/libffi.call/problem1.c (stub): Likewise.
3691 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3692 gcc.
3693 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3694 in the last commit for this test case in the test case itself.
3695 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3696 unused.
3697 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3698 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3699 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3700 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3701 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3702 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3703
37042006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
3705
3706 * src/sh/sysv.S: Fix register numbers in the FDE for
3707 ffi_closure_SYSV.
3708
37092006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
3710
3711 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3712 declaration to avoid a false negative on ix86. See PR323.
3713
37142006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3715
3716 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3717 and cast integer to void * if needed. Update the pointer to
3718 the FP register saved area correctly.
3719
37202006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
3721
3722 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3723 is fixed.
3724 * testsuite/libffi.call/nested_struct4.c: Likewise.
3725
37262006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
3727
3728 * testsuite/libffi.call/return_dbl.c: New test case.
3729 * testsuite/libffi.call/return_dbl1.c: Likewise.
3730 * testsuite/libffi.call/return_dbl2.c: Likewise.
3731 * testsuite/libffi.call/return_fl.c: Likewise.
3732 * testsuite/libffi.call/return_fl1.c: Likewise.
3733 * testsuite/libffi.call/return_fl2.c: Likewise.
3734 * testsuite/libffi.call/return_fl3.c: Likewise.
3735 * testsuite/libffi.call/closure_fn6.c: Likewise.
3736
3737 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3738 definition.
3739 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3740 here to be used by other test cases too.
3741
3742 * testsuite/libffi.call/nested_struct10.c: New test case.
3743 * testsuite/libffi.call/nested_struct9.c: Likewise.
3744 * testsuite/libffi.call/nested_struct8.c: Likewise.
3745 * testsuite/libffi.call/nested_struct7.c: Likewise.
3746 * testsuite/libffi.call/nested_struct6.c: Likewise.
3747 * testsuite/libffi.call/nested_struct5.c: Likewise.
3748 * testsuite/libffi.call/nested_struct4.c: Likewise.
3749
37502006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3751
3752 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3753 * configure: Rebuilt.
3754
37552006-01-18 Jakub Jelinek <jakub@redhat.com>
3756
3757 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3758 instead do the shifting inline.
3759 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3760 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3761 and 8 byte structs, for the remaining struct sizes don't call
3762 __lshrdi3, instead do the shifting inline.
3763
37642005-12-07 Thiemo Seufer <ths@networkno.de>
3765
3766 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3767 missing parentheses.
3768 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3769 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3770 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3771 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3772 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3773 FA_0_0_OFF2.
3774 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3775 endianness bugs.
3776 (ffi_prep_closure): Improve trampoline instruction scheduling.
3777 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3778
37792005-12-03 Alan Modra <amodra@bigpond.net.au>
3780
3781 * src/powerpc/ffi.c: Formatting.
3782 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3783 (ffi_prep_args64): Likewise.
3784
37852005-09-30 Geoffrey Keating <geoffk@apple.com>
3786
3787 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3788 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3789
37902005-09-26 Tom Tromey <tromey@redhat.com>
3791
3792 * testsuite/libffi.call/float1.c (value_type): New typedef.
3793 (CANARY): New define.
3794 (main): Check for result buffer overflow.
3795 * src/powerpc/linux64.S: Handle linux64 long double returns.
3796 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3797 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3798
37992005-08-25 Alan Modra <amodra@bigpond.net.au>
3800
3801 PR target/23404
3802 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3803 homed fp args.
3804 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3805
38062005-08-11 Jakub Jelinek <jakub@redhat.com>
3807
3808 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3809 (AH_BOTTOM): Add FFI_HIDDEN definition.
3810 * configure: Rebuilt.
3811 * fficonfig.h.in: Rebuilt.
3812 * src/powerpc/ffi.c (hidden): Remove.
3813 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3814 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3815 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3816 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3817 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3818 add FFI_HIDDEN to its prototype.
3819 (ffi_closure_SYSV_inner): New.
3820 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3821 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3822
38232005-08-10 Alfred M. Szmidt <ams@gnu.org>
3824
3825 PR libffi/21819:
3826 * configure: Rebuilt.
3827 * configure.ac: Handle i*86-*-gnu*.
3828
38292005-08-09 Jakub Jelinek <jakub@redhat.com>
3830
3831 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3832 DW_CFA_offset_extended_sf rather than
3833 DW_CFA_GNU_negative_offset_extended.
3834 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3835
38362005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3837
3838 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3839 on sh3.
3840 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3841 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3842 partially on register.
3843 (ffi_closure_helper_SYSV): Likewise.
3844 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3845
38462005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3847
3848 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3849 Remove empty line.
3850 * src/sh64/ffi.c (simple_type): Remove.
3851 (return_type): Handle small structures correctly.
3852 (ffi_prep_args): Likewise.
3853 (ffi_call): Likewise.
3854 (ffi_closure_helper_SYSV): Likewise.
3855 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3856 Emit position independent code if PIC and remove wrong datalabel
3857 prefixes from EH data.
3858
38592005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
3860
3861 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3862 * Makefile.in: Regenerate.
3863 * include/Makefile.in: Likewise.
3864 * testsuite/Makefile.in: Likewise.
3865 * configure.ac: Add POWERPC_FREEBSD rules.
3866 * configure: Regenerate.
3867 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3868 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3869 * src/powerpc/ffi.c: Add flags to handle small structure returns
3870 in ffi_call_SYSV.
3871 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3872 Aka FFI_SYSV.
3873 (ffi_closure_helper_SYSV): Likewise.
3874 * src/powerpc/ppc_closure.S: Add return types for small structures.
3875 * src/powerpc/sysv.S: Add bits to handle small structures for
3876 final SYSV 4 ABI.
3877
38782005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3879
3880 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3881 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3882 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3883
38842005-07-05 Randolph Chung <tausq@debian.org>
3885
3886 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3887 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3888 structures. Kill compilation warnings.
3889 (ffi_closure_inner_LINUX): Print return values as hex in debug
3890 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3891 Properly handle 5-7 byte structure returns.
3892 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3893 (FFI_TYPE_SMALL_STRUCT2): Remove.
3894 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3895 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3896 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3897 (checksmst1, checksmst2): Remove.
3898 (checksmst3): Optimize handling of 3-byte struct returns.
3899 (checksmst567): Properly handle 5-7 byte struct returns.
3900
39012005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3902
3903 PR libgcj/21943
3904 * src/mips/n32.S: Enforce PIC code.
3905 * src/mips/o32.S: Likewise.
3906
39072005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3908
3909 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3910 * configure: Regenerate.
3911
39122005-06-01 Alan Modra <amodra@bigpond.net.au>
3913
3914 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3915 to call ffi_closure_helper_SYSV. Append @local instead.
3916 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3917
39182005-05-17 Kelley Cook <kcook@gcc.gnu.org>
3919
3920 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3921 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3922 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3923 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3924 include/Makefile.in, testsuite/Makefile.in: Regenerate.
3925
39262005-05-09 Mike Stump <mrs@apple.com>
3927
3928 * configure: Regenerate.
3929
39302005-05-08 Richard Henderson <rth@redhat.com>
3931
3932 PR libffi/21285
3933 * src/alpha/osf.S: Update unwind into to match code.
3934
39352005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
3936 Richard Henderson <rth@redhat.com>
3937
3938 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3939 bit 11 of flags.
3940 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3941 (ffi_prep_closure): Set carry bit if sse-used flag set.
3942 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3943 Only load sse registers if ssecount non-zero.
3944 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3945
39462005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3947
3948 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3949 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3950 * configure: Regenerate.
3951
39522005-04-20 Hans-Peter Nilsson <hp@axis.com>
3953
3954 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3955 have Tcl8.3-compatible intermediate variable.
3956
39572005-04-18 Simon Posnjak <simon.posnjak@siol.net>
3958 Hans-Peter Nilsson <hp@axis.com>
3959
3960 * Makefile.am: Add CRIS support.
3961 * configure.ac: Likewise.
3962 * Makefile.in, configure, testsuite/Makefile.in,
3963 include/Makefile.in: Regenerate.
3964 * src/cris: New directory.
3965 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3966 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3967
3968 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3969 \r?\n in output tests.
3970
39712005-04-12 Mike Stump <mrs@apple.com>
3972
3973 * configure: Regenerate.
3974
39752005-03-30 Hans Boehm <Hans.Boehm@hp.com>
3976
3977 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
3978
39792005-03-30 Steve Ellcey <sje@cup.hp.com>
3980
3981 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3982 (ffi_sarg) Ditto.
3983 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3984 to 64 bits in ILP32 mode.
3985 Load 64 bits even for short data.
3986
39872005-03-23 Mike Stump <mrs@apple.com>
3988
3989 * src/powerpc/darwin.S: Update for -m64 multilib.
3990 * src/powerpc/darwin_closure.S: Likewise.
3991
39922005-03-21 Zack Weinberg <zack@codesourcery.com>
3993
3994 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3995 Do not set tool_include_dir.
3996 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3997 Regenerate.
3998 * include/Makefile.am: Set gcc_version and toollibffidir.
3999 * include/Makefile.in: Regenerate.
4000
40012005-02-22 Andrew Haley <aph@redhat.com>
4002
4003 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
4004 odd-numbered register pairs for 64-bit integer types.
4005
40062005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
4007
4008 PR libffi/20104
4009 * testsuite/libffi.call/return_ll1.c: New test case.
4010
40112005-02-11 Janis Johnson <janis187@us.ibm.com>
4012
4013 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
4014 * testsuite/libffi.call/float.c: Ditto.
4015 * testsuite/libffi.call/float2.c: Ditto.
4016 * testsuite/libffi.call/float3.c: Ditto.
4017
40182005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
4019
4020 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
4021
40222005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
4023
4024 * testsuite/libffi.special/special.exp (cxx_options): Add
4025 -shared-libgcc.
4026