blob: 9dcebbd3f1d38ea7bc5323c845537217f63d4617 [file] [log] [blame]
Heiher40927bd2014-01-21 23:18:27 +080012014-02-09 Heiher <r@hev.cc>
2
3 * src/mips/n32.S: Fix call floating point va function.
4
Zachary Waldowskif466aad2014-01-21 16:38:31 -050052014-01-21 Zachary Waldowski <zach@waldowski.me>
6
7 * src/aarch64/ffi.c: Fix missing semicolons on assertions under
8 debug mode.
Zachary Waldowskibfc06b32013-12-30 17:36:39 -05009
102013-12-30 Zachary Waldowski <zach@waldowski.me>
11
12 * .gitignore: Exclude darwin_* generated source and build_* trees.
13 * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
14 previous prototype warnings.
15 * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
16 * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
17 and the native use of size_t for malloc on platforms
18 * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
19 ARM_FUNC_START.
20 * generate-osx-source-and-headers.py: Remove.
21 * build-ios.sh: Remove.
22 * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
23 x86_64+aarch64 pieces in library. Export headers properly.
24 * src/x86/ffi64.c: More Clang warning clean-ups.
25 * src/closures.c (open_temp_exec_file_dir): Use size_t.
26 * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
27 * src/aarch64/sysv.S: Use CNAME for global symbols. Only use
28 .size for ELF targets.
29 * src/aarch64/ffi.c: Clean up for double == long double. Clean up
Zachary Waldowskif466aad2014-01-21 16:38:31 -050030 from Clang warnings. Use Clang cache invalidation builtin. Use
Zachary Waldowskibfc06b32013-12-30 17:36:39 -050031 size_t in place of unsigned in many places. Accommodate for
32 differences in Apple AArch64 ABI.
33
342013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
35
36 * generate-darwin-source-and-headers.py: Clean up, modernize,
Anthony Green447483d2014-02-27 15:42:41 -050037 merged version of previous scripts.
Zachary Waldowskibfc06b32013-12-30 17:36:39 -050038
Alan Modraab79d6e2013-11-21 06:12:35 -0500392013-11-21 Anthony Green <green@moxielogic.com>
40
41 * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
42 man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
43
442013-11-21 Alan Modra <amodra@gmail.com>
45
46 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
47 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
48 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
49 * include/ffi.h.in (ffi_prep_types): Declare.
50 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
51 * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
52 HAVE_LONG_DOUBLE_VARIANT.
53 * src/powerpc/ffi_powerpc.h: New file.
54 * src/powerpc/ffi.c: Split into..
55 * src/powerpc/ffi_sysv.c: ..new file, and..
56 * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
57 * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
58 selection as bits controlling features.
59 * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
60 than __powerpc64__.
61 * src/powerpc/linux64_closure.S: Likewise.
62 * src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
63 inside guard.
64 * src/powerpc/sysv.S: Likewise.
65 * configure: Regenerate.
66 * fficonfig.h.in: Regenerate.
67 * Makefile.in: Regenerate.
68
692013-11-20 Alan Modra <amodra@gmail.com>
70
71 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
72 NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
73 32-bit versions for 64-bit code.
74 * src/powerpc/linux64_closure.S: Don't use the return value area
75 as a parameter save area on ELFv2.
76
Iain Sandoeaa1f62c2013-11-18 13:11:56 +0000772013-11-18 Iain Sandoe <iain@codesourcery.com>
78
79 * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
80 * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
81 labels.
82
Anthony Green2f450822013-11-18 06:52:29 -0500832013-11-18 Anthony Green <green@moxielogic.com>
84
85 * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
86 function.
87 * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
88 to appease compiler.
89 Thanks for Gregory P. Smith <greg@krypto.org>.
90
912013-11-18 Anthony Green <green@moxielogic.com>
92
93 * README (tested): Mention PowerPC ELFv2.
94
Alan Modra164283f2013-11-16 06:38:55 -0500952013-11-16 Alan Modra <amodra@gmail.com>
96
Alan Modra16d56c52013-11-18 06:36:03 -050097 * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
98 Don't bl .Luint128.
99
1002013-11-16 Alan Modra <amodra@gmail.com>
101
Alan Modra83f65b62013-11-16 06:53:50 -0500102 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
103 test to select parameter save sizing for ELFv2 vs. ELFv1.
104 * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
105 FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
106 (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
107 * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
108 (discover_homogeneous_aggregate): New function.
109 (ffi_prep_args64): Adjust start of param save area for ELFv2.
110 Handle homogenous floating point struct parms.
111 (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
112 Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
113 homogenous floating point structs.
114 (ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
115 (flush_icache): Compile for ELFv2.
116 (ffi_prep_closure_loc): Set up ELFv2 trampoline.
117 (ffi_closure_helper_LINUX64): Don't return all structs directly
118 to caller. Handle homogenous floating point structs. Handle
119 ELFv2 struct return values.
120 * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
121 ELFv2. Adjust toc save location. Call function pointer using
122 r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
123 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
124 for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
125 RETVAL. Handle possibly missing parameter save area. Handle
126 ELFv2 return values.
127 (.note.GNU-stack): Move inside outer #ifdef.
128
1292013-11-16 Alan Modra <amodra@gmail.com>
130
Alan Modra36285132013-11-16 06:52:43 -0500131 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
132 change. Do not consume an int arg when returning a small struct
133 for FFI_SYSV ABI.
134 (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
135 Properly copy bounce buffer to destination.
136 * src/powerpc/sysv.S: Revert 2013-02-08 change.
137 * src/powerpc/ppc_closure.S: Remove stray '+'.
138
1392013-11-16 Alan Modra <amodra@gmail.com>
140
Alan Modra1c065152013-11-16 06:41:36 -0500141 * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
142 according to __STRUCT_PARM_ALIGN__.
143 (ffi_prep_cif_machdep_core): Likewise.
144 (ffi_closure_helper_LINUX64): Likewise.
145
1462013-11-16 Alan Modra <amodra@gmail.com>
147
Alan Modraa97cf1f2013-11-16 06:40:13 -0500148 * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
149 (.note.GNU-stack): Move inside outer #ifdef.
150 * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
151 RETVAL): Define and use throughout.
152 (ffi_closure_LINUX64): Save fprs before buying stack.
153 (.note.GNU-stack): Move inside outer #ifdef.
154
1552013-11-16 Alan Modra <amodra@gmail.com>
156
Alan Modra164283f2013-11-16 06:38:55 -0500157 * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
158 (FFI_EXTRA_CIF_FIELDS): Define.
159 * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
160 ABI, not to both fpr and param save area.
161 (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
162 Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
163 code.
164 (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
165 (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
166 not to both fpr and parameter save areas.
167
168 * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
169 function cast and don't call ffi_prep_cif.
170 * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
171
Andrew Haleydb0ace32013-11-16 06:29:25 -05001722013-11-15 Andrew Haley <aph@redhat.com>
173
Andrew Haley31257b32013-11-16 06:35:51 -0500174 * doc/libffi.texi (Closure Example): Fix the sample code.
175 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
176
1772013-11-15 Andrew Haley <aph@redhat.com>
178
Andrew Haleydb0ace32013-11-16 06:29:25 -0500179 * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
180 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
181 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
182 * testsuite/libffi.call/va_1.c (main): Likewise.
183
David Schneiderf3657da2013-11-14 13:02:16 +01001842013-11-14 David Schneider <david.schneider@bivab.de>
185
Anthony Greende10f502013-11-14 10:56:29 -0500186 * src/arm/ffi.c: Fix register allocation for mixed float and
187 doubles.
188 * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
189 for many mixed float and double arguments.
190
Alan Modra58c25772013-11-13 16:55:36 -05001912013-11-13 Alan Modra <amodra@gmail.com>
192
193 * doc/libffi.texi (Simple Example): Correct example code.
194 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
195
Anthony Green8af42f92013-11-13 16:40:28 -05001962013-11-13 Anthony Green <green@moxielogic.com>
197
198 * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
199 based build. (Thanks to tmr111116 on github)
200
Anthony Green2f5b7ce2013-11-09 06:16:32 -05002012013-11-09 Anthony Green <green@moxielogic.com>
202
203 * m4/libtool.m4: Refresh.
204 * configure, Makefile.in: Rebuilt.
205 * README: Add more notes about next release.
206
2072013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
208
209 * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
210 UltraSPARC-IIi as ultrasparc3.
211
Mark Kettenisbecd7542013-11-06 06:43:49 -05002122013-11-06 Mark Kettenis <kettenis@gnu.org>
213
214 * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
215 16-bytes.
216
Konstantin Belousov05c31092013-11-06 06:40:58 -05002172013-11-06 Konstantin Belousov <kib@freebsd.org>
218
219 * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
220 source as not requiring executable stack.
221
Anthony Greencf6bf982013-11-02 17:23:59 -04002222013-11-02 Anthony Green <green@moxielogic.com>
223
224 * doc/libffi.texi (The Basics): Clarify return value buffer size
225 requirements. Also, NULL result buffer pointers are no longer
226 supported.
227 * doc/libffi.info: Rebuilt.
228
Anthony Greenc2422172013-11-02 14:08:23 -07002292013-11-02 Mischa Jonker <mjonker@synopsys.com>
230
231 * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
232 * Makefile.in: Rebuilt.
233
2342013-11-02 David Schneider <david.schneider@bivab.de>
235
236 * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
237 * testsuite/libffi.call/many_mixed.c: New file.
238 * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
239
Anthony Greenf4b843f2013-11-02 17:01:15 -04002402013-11-02 Vitaly Budovski
241
242 * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
243
Mark H Weaverd3372c52013-10-26 08:30:06 -04002442013-10-23 Mark H Weaver <mhw@netris.org>
245
246 * src/mips/ffi.c: Fix handling of uint32_t arguments on the
247 MIPS N32 ABI.
248
Sandra Loosemore16b93a22013-10-15 15:33:59 -04002492013-10-13 Sandra Loosemore <sandra@codesourcery.com>
250
251 * README: Add Nios II to table of supported platforms.
252 * Makefile.am (EXTRA_DIST): Add nios2 files.
253 (nodist_libffi_la_SOURCES): Likewise.
254 * Makefile.in: Regenerated.
255 * configure.ac (nios2*-linux*): New host.
256 (NIOS2): Add AM_CONDITIONAL.
257 * configure: Regenerated.
258 * src/nios2/ffi.c: New.
259 * src/nios2/ffitarget.h: New.
260 * src/nios2/sysv.S: New.
261 * src/prep_cif.c (initialize_aggregate): Handle extra structure
262 alignment via FFI_AGGREGATE_ALIGNMENT.
263 (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
264
Sandra Loosemore2f5626c2013-10-15 15:32:16 -04002652013-10-10 Sandra Loosemore <sandra@codesourcery.com>
266
267 * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
268 Fix uninitialized variable.
269
Marcus Shawcroftf64e4a82013-10-15 15:20:14 -04002702013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
271
272 * testsuite/libffi.call/many.c (many): Replace * with +.
273
Anthony Green128cd1d2013-10-08 06:45:51 -04002742013-10-08 Ondřej Bílka <neleai@seznam.cz>
275
276 * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
277 src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
278 src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
279 src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
280 src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
281 src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
282 spelling errors.
283
Anthony Greend2fcbcd2013-10-08 06:27:46 -04002842013-10-08 Anthony Green <green@moxielogic.com>
285
286 * aclocal.m4, compile, config.guess, config.sub, depcomp,
287 install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
288 * configure.ac: Update version to 3.0.14-rc0.
289 * Makefile.in, configure, Makefile.in, include/Makefile.in,
290 man/Makefile.in, testsuite/Makefile.in: Rebuilt.
Anthony Green128cd1d2013-10-08 06:45:51 -0400291 * README: Mention M88K and VAX.
Anthony Greend2fcbcd2013-10-08 06:27:46 -0400292
2932013-07-15 Miod Vallat <miod@openbsd.org>
294
295 * Makefile.am,
296 configure.ac,
297 src/m88k/ffi.c,
298 src/m88k/ffitarget.h,
299 src/m88k/obsd.S,
300 src/vax/elfbsd.S,
301 src/vax/ffi.c,
302 src/vax/ffitarget.h: Add m88k and vax support.
303
Anthony Greend3d099b2013-07-02 16:11:38 -04003042013-06-24 Alan Modra <amodra@gmail.com>
305
306 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
307 before statements.
308 (ffi_prep_args64): Support little-endian.
309 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
310 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
311 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
312
Mischa Jonkerb082e152013-06-10 16:19:33 +02003132013-06-12 Mischa Jonker <mjonker@synopsys.com>
314
315 * configure.ac: Add support for ARC.
316 * Makefile.am: Likewise.
317 * README: Add ARC details.
318 * src/arc/arcompact.S: New.
319 * src/arc/ffi.c: Likewise.
320 * src/arc/ffitarget.h: Likewise.
321
David Schneider4750e3c2013-03-28 16:56:36 +01003222013-03-28 David Schneider <david.schneider@bivab.de>
323
324 * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
325 * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
326 * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
327 mixed arguments, many doubles.
328 * testsuite/libffi.call/many_double.c: testcase for calling a function using
329 more than 8 doubles.
330 * testcase/libffi.call/many.c: use absolute value to check result against an
331 epsilon
332
Anthony Greencb32c812013-03-17 09:27:55 -04003332013-03-17 Anthony Green <green@moxielogic.com>
334
Anthony Green12b18862013-03-17 18:32:12 -0400335 * README: Update for 3.0.13.
336 * configure.ac: Ditto.
337 * configure: Rebuilt.
338 * doc/*: Update version.
339
3402013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
341
342 * src/closures.c (is_emutramp_enabled
343 [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
344 enclosing #if scope.
345
3462013-03-17 Anthony Green <green@moxielogic.com>
347
Anthony Greencb32c812013-03-17 09:27:55 -0400348 * configure.ac: Only modify toolexecdir in certain cases.
349 * configure: Rebuilt.
350
Anthony Green4acf0052013-03-16 08:18:45 -04003512013-03-16 Gilles Talis <gilles.talis@gmail.com>
352
353 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
354 fparg_count,etc on __NO_FPRS__ targets.
355
Anthony Green8a286f52013-03-16 08:01:19 -04003562013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
357
Anthony Green4acf0052013-03-16 08:18:45 -0400358 * src/m68k/sysv.S (epilogue): Don't use extb instruction on
Anthony Green8a286f52013-03-16 08:01:19 -0400359 m680000 machines.
360
Anthony Green211a9eb2013-03-16 04:24:40 -07003612013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
362
363 * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
364
Anthony Green2fb527a2013-03-16 07:46:38 -04003652013-03-13 Markos Chandras <markos.chandras@imgtec.com>
366
367 * configure.ac: Add support for Imagination Technologies Meta.
368 * Makefile.am: Likewise.
369 * README: Add Imagination Technologies Meta details.
370 * src/metag/ffi.c: New.
371 * src/metag/ffitarget.h: Likewise.
372 * src/metag/sysv.S: Likewise.
373
Anthony Green675c9832013-03-16 08:12:38 -04003742013-02-24 Andreas Schwab <schwab@linux-m68k.org>
375
376 * doc/libffi.texi (Structures): Fix missing category argument of
377 @deftp.
378
Anthony Greenf308faf2013-02-11 14:25:13 -05003792013-02-11 Anthony Green <green@moxielogic.com>
380
381 * configure.ac: Update release number to 3.0.12.
382 * configure: Rebuilt.
383 * README: Update release info.
384
3852013-02-10 Anthony Green <green@moxielogic.com>
386
387 * README: Add Moxie.
388 * src/moxie/ffi.c: Created.
389 * src/moxie/eabi.S: Created.
390 * src/moxie/ffitarget.h: Created.
391 * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
392 * Makefile.in: Rebuilt.
393 * configure.ac: Add Moxie.
394 * configure: Rebuilt.
395 * testsuite/libffi.call/huge_struct.c: Disable format string
396 warnings for moxie*-*-elf tests.
397
3982013-02-10 Anthony Green <green@moxielogic.com>
399
400 * Makefile.am (LTLDFLAGS): Fix reference.
401 * Makefile.in: Rebuilt.
402
Anthony Green4ea22e52013-02-10 08:48:38 -05004032013-02-10 Anthony Green <green@moxielogic.com>
404
405 * README: Update supported platforms. Update test results link.
406
Anthony Green10e77222013-02-10 08:47:26 -05004072013-02-09 Anthony Green <green@moxielogic.com>
408
409 * testsuite/libffi.call/negint.c: Remove forced -O2.
410 * testsuite/libffi.call/many2.c (foo): Remove GCCism.
411 * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
412
413 * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
414 closure return type fix developed by Martin v. Löwis for cpython
415 fork.
416
Anthony Green70b11b42013-02-08 16:12:19 -05004172013-02-08 Andreas Tobler <andreast@fgznet.ch>
418
419 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
420 support.
421 * src/powerpc/sysv.S: Ditto.
422
Anthony Green63ba1fa2013-02-08 15:18:19 -05004232013-02-08 Anthony Green <green@moxielogic.com>
424
425 * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
426 arm*-*-*.
427
4282013-02-08 Anthony Green <green@moxielogic.com>
429
430 * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
431
Anthony Green24fbca42013-02-08 14:19:56 -05004322013-02-08 Matthias Klose <doko@ubuntu.com>
Anthony Greenb0fa11c2013-02-08 14:17:13 -0500433
434 * man/ffi_prep_cif.3: Clean up for debian linter.
435
Anthony Green24fbca42013-02-08 14:19:56 -05004362013-02-08 Peter Bergner <bergner@vnet.ibm.com>
Anthony Green8bd15d12013-02-08 13:56:37 -0500437
438 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
439 on the stack.
440
Anthony Greencb03ea82013-02-08 12:25:18 -05004412013-02-08 Anthony Green <green@moxielogic.com>
442
Anthony Green7aab8252013-02-08 13:26:21 -0500443 * Makefile.am (EXTRA_DIST): Add missing files.
444 * testsuite/Makefile.am (EXTRA_DIST): Ditto.
445 * Makefile.in: Rebuilt.
446
4472013-02-08 Anthony Green <green@moxielogic.com>
448
Anthony Greencb03ea82013-02-08 12:25:18 -0500449 * configure.ac: Move sparc asm config checks to within functions
450 for compatibility with sun tools.
451 * configure: Rebuilt.
452 * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
453 systems.
454 * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
455 flusher.
456
Anthony Green35ee8d42013-02-08 07:12:41 -05004572013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
458
459 * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
460 small big-endian structures.
461 (ffi_prep_args): Ditto.
462
Anthony Greened6ae952013-02-07 16:43:36 -05004632013-02-07 Anthony Green <green@moxielogic.com>
464
Anthony Green9db7e1a2013-02-07 21:06:08 -0500465 * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
466 (effectively hiding ffi_call_v8).
467
4682013-02-07 Anthony Green <green@moxielogic.com>
469
Anthony Greence0138e2013-02-07 18:04:01 -0500470 * configure.ac: Update bug reporting address.
471 * configure.in: Rebuild.
472
Anthony Greenfd07c9e2013-02-07 18:00:36 -0500473 * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
474 Sun compiler.
475 * src/sparc/ffi.c (ffi_call): Remove warning.
476 Call ffi_flush_icache for non-GCC builds.
477 (ffi_prep_closure_loc): Use ffi_flush_icache.
478
Anthony Greened6ae952013-02-07 16:43:36 -0500479 * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
480 * Makefile.in: Rebuilt.
481 * libtool-ldflags: New file.
482
Anthony Greenffef2e02013-02-07 15:47:01 -05004832013-02-07 Daniel Schepler <dschepler@gmail.com>
484
485 * configure.ac: Correctly identify x32 systems as 64-bit.
486 * m4/libtool.m4: Remove libtool expr error.
487 * aclocal.m4, configure: Rebuilt.
488
Anthony Greenf3a4f3f2013-02-07 09:57:20 -05004892013-02-07 Anthony Green <green@moxielogic.com>
490
Anthony Green176aa9d2013-02-07 15:29:22 -0500491 * configure.ac: Fix GCC usage test.
492 * configure: Rebuilt.
Anthony Green95eeceb2013-02-07 15:32:46 -0500493 * README: Mention LLVM/GCC x86_64 issue.
494 * testsuite/Makefile.in: Rebuilt.
Anthony Green176aa9d2013-02-07 15:29:22 -0500495
4962013-02-07 Anthony Green <green@moxielogic.com>
497
Anthony Greenf3a4f3f2013-02-07 09:57:20 -0500498 * testsuite/libffi.call/cls_double_va.c (main): Replace // style
499 comments with /* */ for xlc compiler.
500 * testsuite/libffi.call/stret_large.c (main): Ditto.
501 * testsuite/libffi.call/stret_large2.c (main): Ditto.
502 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
503 * testsuite/libffi.call/huge_struct.c (main): Ditto.
504 * testsuite/libffi.call/float_va.c (main): Ditto.
505 * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
506 * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
507 * testsuite/libffi.call/cls_pointer.c (main): Ditto.
508 * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
509
Anthony Greenf7cd61e2013-02-06 17:38:04 -05005102013-02-06 Anthony Green <green@moxielogic.com>
511
Anthony Green522f8fe2013-02-06 20:31:31 -0500512 * man/ffi_prep_cif.3: Clean up for debian lintian checker.
513
5142013-02-06 Anthony Green <green@moxielogic.com>
515
Anthony Greenf7cd61e2013-02-06 17:38:04 -0500516 * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
517 * Makefile.in: Rebuild.
518
Anthony Green6a790122013-02-06 17:37:15 -05005192013-02-02 Mark H Weaver <mhw@netris.org>
520
521 * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
522 via general purpose registers.
523
Anthony Greenaeb87192013-01-21 07:37:30 -05005242013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
525
526 * README: Add MicroBlaze details.
527 * Makefile.am: Add MicroBlaze support.
528 * configure.ac: Likewise.
529 * src/microblaze/ffi.c: New.
530 * src/microblaze/ffitarget.h: Likewise.
531 * src/microblaze/sysv.S: Likewise.
532
5332013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
534 * testsuite/libffi.call/return_uc.c: Fixed issue.
535
Anthony Green20cae322013-01-21 07:07:38 -05005362013-01-21 Chris Zankel <chris@zankel.net>
537
538 * README: Add Xtensa support.
539 * Makefile.am: Likewise.
540 * configure.ac: Likewise.
541 * Makefile.in Regenerate.
542 * configure: Likewise.
543 * src/prep_cif.c: Handle Xtensa.
544 * src/xtensa: New directory.
545 * src/xtensa/ffi.c: New file.
546 * src/xtensa/ffitarget.h: Ditto.
547 * src/xtensa/sysv.S: Ditto.
548
Anthony Greenbff052d2013-01-11 10:24:32 -05005492013-01-11 Anthony Green <green@moxielogic.com>
550
Anthony Green05fbe1f2013-01-11 16:54:40 -0500551 * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
552 comments with /* */ for xlc compiler.
553 * src/powerpc/aix.S (ffi_call_AIX): Ditto.
Anthony Greenf03eab02013-01-11 17:14:11 -0500554 * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
555 deprecated inline function.
556 * testsuite/libffi.special/ffitestcxx.h: Ditto.
Anthony Green05fbe1f2013-01-11 16:54:40 -0500557 * README: Add update for AIX support.
558
5592013-01-11 Anthony Green <green@moxielogic.com>
560
Anthony Greenbff052d2013-01-11 10:24:32 -0500561 * configure.ac: Robustify pc relative reloc check.
562 * m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
563 changing option for 32-bit x86.
564 * aclocal.m4, configure: Rebuilt.
565 * README: Update supported target list.
566
Anthony Green2d9b3932013-01-09 21:14:54 -05005672013-01-10 Anthony Green <green@moxielogic.com>
568
Anthony Greencd41aea2013-01-10 17:25:45 -0500569 * README (tested): Add Compiler column to table.
570
5712013-01-10 Anthony Green <green@moxielogic.com>
572
Anthony Green8bf987d2013-01-10 17:24:51 -0500573 * src/x86/ffi64.c (struct register_args): Make sse array and array
574 of unions for sunpro compiler compatibility.
575
5762013-01-10 Anthony Green <green@moxielogic.com>
577
Anthony Green13e2d7b2013-01-10 10:52:02 -0500578 * configure.ac: Test target platform size_t size. Handle both 32
579 and 64-bit builds for x86_64-* and i?86-* targets (allowing for
580 CFLAG option to change default settings).
581 * configure, aclocal.m4: Rebuilt.
582
5832013-01-10 Anthony Green <green@moxielogic.com>
584
Anthony Green51415432013-01-10 07:35:53 -0500585 * testsuite/libffi.special/special.exp: Only run exception
586 handling tests when using GNU compiler.
587
Anthony Green56ba8d82013-01-10 07:25:10 -0500588 * m4/ax_compiler_vendor.m4: New file.
589 * configure.ac: Test for compiler vendor and don't use
590 AX_CFLAGS_WARN_ALL with the sun compiler.
591 * aclocal.m4, configure: Rebuilt.
592
5932013-01-10 Anthony Green <green@moxielogic.com>
594
Anthony Green6a028ca2013-01-10 01:19:43 -0500595 * include/ffi_common.h: Don't use GCCisms to define types when
596 building with the SUNPRO compiler.
597
5982013-01-10 Anthony Green <green@moxielogic.com>
599
Anthony Green2d9b3932013-01-09 21:14:54 -0500600 * configure.ac: Put local.exp in the right place.
601 * configure: Rebuilt.
602
603 * src/x86/ffi.c: Update comment about regparm function attributes.
604 * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
605 that all function arguments be passed on the stack (no regparm
606 support).
607
Anthony Greenf7879bc2013-01-08 07:30:28 -05006082013-01-08 Anthony Green <green@moxielogic.com>
609
Anthony Green83089842013-01-08 15:14:21 -0500610 * configure.ac: Generate local.exp. This sets CC_FOR_TARGET
611 when we are using the vendor compiler.
612 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
613 ../local.exp.
614 * configure, testsuite/Makefile.in: Rebuilt.
615
Anthony Greenf26c7ca2013-01-08 14:47:05 -0500616 * testsuite/libffi.call/call.exp: Run tests with different
617 options, depending on whether or not we are using gcc or the
618 vendor compiler.
619 * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
620 whether or not we are building/testing with gcc.
621
6222013-01-08 Anthony Green <green@moxielogic.com>
623
Anthony Green74c776e2013-01-08 12:25:54 -0500624 * configure.ac: Switch x86 solaris target to X86 by default.
625 * configure: Rebuilt.
626
6272013-01-08 Anthony Green <green@moxielogic.com>
628
Anthony Green8962c8c2013-01-08 12:22:24 -0500629 * configure.ac: Fix test for read-only eh_frame.
630 * configure: Rebuilt.
631
6322013-01-08 Anthony Green <green@moxielogic.com>
633
Anthony Green35ddb692013-01-08 07:53:37 -0500634 * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
635 when building with the GNU toolchain.
Anthony Greenf7879bc2013-01-08 07:30:28 -0500636 * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
637 compiler.
638
Anthony Green8f4772f2013-01-07 06:14:53 -05006392013-01-07 Thorsten Glaser <tg@mirbsd.org>
640
Anthony Green67cea902013-01-07 06:30:24 -0500641 * testsuite/libffi.call/cls_uchar_va.c,
642 testsuite/libffi.call/cls_ushort_va.c,
643 testsuite/libffi.call/va_1.c: Testsuite fixes.
644
6452013-01-07 Thorsten Glaser <tg@mirbsd.org>
646
Anthony Green8f4772f2013-01-07 06:14:53 -0500647 * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
648 (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
649 * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
650
Anthony Greenea7f8442013-01-04 09:09:32 -05006512013-01-04 Anthony Green <green@moxielogic.com>
652
653 * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
654 and -Wall. This is set in the configure script after testing for
655 GCC.
656 * Makefile.in: Rebuilt.
657
Anthony Greenf06c0f12013-01-02 09:39:17 -05006582013-01-02 rofl0r <https://github.com/rofl0r>
659
660 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
661 when long double == double.
662
6632013-01-02 Reini Urban <rurban@x-ray.at>
664
665 * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
666 (required for shared libs on cygwin/mingw).
667 * Makefile.in: Rebuilt.
668
Anthony Greend3d099b2013-07-02 16:11:38 -04006692012-10-31 Alan Modra <amodra@gmail.co>
Anthony Greendfadfb12012-10-31 06:46:41 -0400670
671 * src/powerpc/linux64_closure.S: Add new ABI support.
672 * src/powerpc/linux64.S: Likewise.
673
Anthony Greene944b8c2012-10-30 14:06:09 -04006742012-10-30 Magnus Granberg <zorry@gentoo.org>
675 Pavel Labushev <pavel.labushev@runbox.ru>
676
677 * configure.ac: New options pax_emutramp
678 * configure, fficonfig.h.in: Regenerated
679 * src/closures.c: New function emutramp_enabled_check() and
680 checks.
681
Anthony Greenf3429962012-10-30 07:42:27 -04006822012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
683
684 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
685 lion) and future version.
686 * configure: Rebuild.
687
Anthony Green58e8b662012-10-30 07:07:19 -04006882012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
689 Marcus Shawcroft <marcus.shawcroft at arm.com>
690
691 * README: Add details of aarch64 port.
692 * src/aarch64/ffi.c: New.
693 * src/aarch64/ffitarget.h: Likewise.
694 * src/aarch64/sysv.S: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500695 * Makefile.am: Support aarch64.
696 * configure.ac: Support aarch64.
697 * Makefile.in, configure: Rebuilt.
Anthony Green58e8b662012-10-30 07:07:19 -0400698
6992012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
700 Marcus Shawcroft <marcus.shawcroft at arm.com>
701
702 * testsuite/lib/libffi.exp: Add support for aarch64.
703 * testsuite/libffi.call/cls_struct_va1.c: New.
704 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
705 * testsuite/libffi.call/cls_uint_va.c: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500706 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
Anthony Green58e8b662012-10-30 07:07:19 -0400707 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
708 * testsuite/libffi.call/nested_struct11.c: Likewise.
709 * testsuite/libffi.call/uninitialized.c: Likewise.
710 * testsuite/libffi.call/va_1.c: Likewise.
711 * testsuite/libffi.call/va_struct1.c: Likewise.
712 * testsuite/libffi.call/va_struct2.c: Likewise.
713 * testsuite/libffi.call/va_struct3.c: Likewise.
714
Anthony Green9c00a3f2012-10-12 16:46:06 -04007152012-10-12 Walter Lee <walt@tilera.com>
716
717 * Makefile.am: Add TILE-Gx/TILEPro support.
718 * configure.ac: Likewise.
719 * Makefile.in: Regenerate.
720 * configure: Likewise.
721 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
722 * src/tile: New directory.
723 * src/tile/ffi.c: New file.
724 * src/tile/ffitarget.h: Ditto.
725 * src/tile/tile.S: Ditto.
726
7272012-10-12 Matthias Klose <doko@ubuntu.com>
728
729 * generate-osx-source-and-headers.py: Normalize whitespace.
730
Anthony Green048d2f42012-10-11 10:55:25 -04007312012-09-14 David Edelsohn <dje.gcc@gmail.com>
732
733 * configure: Regenerated.
734
7352012-08-26 Andrew Pinski <apinski@cavium.com>
736
737 PR libffi/53014
738 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
739 soft-float.
740
7412012-08-08 Uros Bizjak <ubizjak@gmail.com>
742
743 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
744 just return FFI_BAD_ABI when things are wrong.
745
7462012-07-18 H.J. Lu <hongjiu.lu@intel.com>
747
748 PR libffi/53982
749 PR libffi/53973
750 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
751 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
752
7532012-05-16 H.J. Lu <hongjiu.lu@intel.com>
754
755 * configure: Regenerated.
756
Nicolas Lelongd330f192012-05-05 09:37:02 -04007572012-05-05 Nicolas Lelong
758
759 * libffi.xcodeproj/project.pbxproj: Fixes.
760 * README: Update for iOS builds.
761
Anthony Green213ed152012-04-27 01:34:15 -04007622012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
763
764 * configure.ac: Add Blackfin/sysv support
765 * Makefile.am: Add Blackfin/sysv support
766 * src/bfin/ffi.c: Add Blackfin/sysv support
767 * src/bfin/ffitarget.h: Add Blackfin/sysv support
Anthony Green213ed152012-04-27 01:34:15 -0400768
Anthony Green7e0a4122012-04-11 22:47:44 -04007692012-04-11 Anthony Green <green@moxielogic.com>
770
771 * Makefile.am (EXTRA_DIST): Add new script.
772 * Makefile.in: Rebuilt.
773
Zachary Waldowski39e6a582012-04-11 22:39:46 -04007742012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
775
776 * generate-ios-source-and-headers.py,
777 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
778 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
779 generation into an Xcode "run script" phase. Include both as
780 Xcode build scripts. Don't always regenerate config files.
781
Anthony Green853cc722012-04-10 06:33:33 -04007822012-04-10 Anthony Green <green@moxielogic.com>
783
784 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
785
Anthony Green3f502302012-04-06 20:34:51 -04007862012-04-06 Anthony Green <green@moxielogic.com>
787
788 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
789 * Makefile.in: Rebuilt.
790
Mike Lewisebb8e892012-04-06 20:02:08 -04007912012-04-06 Mike Lewis <mikelikespie@gmail.com>
792
793 * generate-ios-source-and-headers.py: New file.
794 * libffi.xcodeproj/project.pbxproj: New file.
795 * README: Update instructions on building iOS binary.
796 * build-ios.sh: Delete.
797
Anthony Greena044a562012-04-06 10:39:10 -04007982012-04-06 Anthony Green <green@moxielogic.com>
799
800 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
801 compilers, then use it.
802
Anthony Green048d2f42012-10-11 10:55:25 -04008032012-04-06 H.J. Lu <hongjiu.lu@intel.com>
804
805 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
806
Anthony Green59bb61a2012-04-06 08:26:14 -04008072012-04-06 Anthony Green <green@moxielogic.com>
808
809 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
810 * testsuite/Makefile.in: Rebuilt.
811
Zachary Waldowski39dccdd2012-04-05 12:32:41 -04008122012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
813
814 * include/ffi.h.in: Add missing trampoline table fields.
815 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
816 in CNAME.
817 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
818
Anthony Green089dbce2013-01-02 08:37:35 -05008192012-04-02 Peter Bergner <bergner@vnet.ibm.com>
820
821 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
822 Silence casting pointer to integer of different size warning.
823 Delete goto to previously deleted label.
824 (ffi_call): Silence possibly undefined warning.
825 (ffi_closure_helper_SYSV): Declare variable type.
826
8272012-04-02 Peter Rosin <peda@lysator.liu.se>
828
829 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
830 value in the Intel version as is already done for the AT&T version.
831 (ffi_closure_SYSV): Likewise.
832 (ffi_closure_raw_SYSV): Likewise.
833 (ffi_closure_STDCALL): Likewise.
834
Peter Rosin0a1ab122012-03-30 08:14:08 -04008352012-03-29 Peter Rosin <peda@lysator.liu.se>
836
837 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
838 generation, fix the ENDP label and remove the surplus third arg
839 from the 'lea' insn.
840
8412012-03-29 Peter Rosin <peda@lysator.liu.se>
842
843 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
844 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
845 it. Also instruct the assembler to add a frame to the function.
846
8472012-03-23 Peter Rosin <peda@lysator.liu.se>
848
849 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
850 * Makefile.in: Rebuilt.
851 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
852 to all data exports, when compiling libffi clients using MSVC.
853
8542012-03-29 Peter Rosin <peda@lysator.liu.se>
855
856 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
857 make it the default for MSVC.
858 (FFI_TYPE_MS_STRUCT): New structure return convention.
859 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
860 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
861 instead of an ordinary FFI_TYPE_STRUCT.
862 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
863 (ffi_call): Likewise.
864 (ffi_prep_incoming_args_SYSV): Likewise.
865 (ffi_raw_call): Likewise.
866 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
867 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
868 return a pointer to the result structure in eax and don't pop
869 that pointer from the stack, the caller takes care of it.
870 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
871 (ffi_closure_raw_SYSV): Likewise.
872
8732012-03-22 Peter Rosin <peda@lysator.liu.se>
874
875 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
876 assembly version with Intel syntax.
877 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
878
8792012-03-23 Peter Rosin <peda@lysator.liu.se>
880
881 * testsuite/libffi.call/ffitest.h: Provide abstration of
882 __attribute__((fastcall)) in the form of a __FASTCALL__
883 define. Define it to __fastcall for MSVC.
884 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
885 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
886 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
887 * testsuite/libffi.call/strlen2_win32.c: Likewise.
888 * testsuite/libffi.call/struct1_win32.c: Likewise.
889 * testsuite/libffi.call/struct2_win32.c: Likewise.
890
8912012-03-22 Peter Rosin <peda@lysator.liu.se>
892
893 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
894 frame on function entry, MASM adds one automatically.
895
8962012-03-22 Peter Rosin <peda@lysator.liu.se>
897
898 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
899 bits in the MSVC headers.
900
9012012-03-22 Peter Rosin <peda@lysator.liu.se>
902
903 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
904 with no declarations after statements.
905 * testsuite/libffi.call/cls_16byte.c: Likewise.
906 * testsuite/libffi.call/cls_18byte.c: Likewise.
907 * testsuite/libffi.call/cls_19byte.c: Likewise.
908 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
909 * testsuite/libffi.call/cls_20byte.c: Likewise.
910 * testsuite/libffi.call/cls_20byte1.c: Likewise.
911 * testsuite/libffi.call/cls_24byte.c: Likewise.
912 * testsuite/libffi.call/cls_2byte.c: Likewise.
913 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
914 * testsuite/libffi.call/cls_3byte1.c: Likewise.
915 * testsuite/libffi.call/cls_3byte2.c: Likewise.
916 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
917 * testsuite/libffi.call/cls_4byte.c: Likewise.
918 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
919 * testsuite/libffi.call/cls_5byte.c: Likewise.
920 * testsuite/libffi.call/cls_64byte.c: Likewise.
921 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
922 * testsuite/libffi.call/cls_6byte.c: Likewise.
923 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
924 * testsuite/libffi.call/cls_7byte.c: Likewise.
925 * testsuite/libffi.call/cls_8byte.c: Likewise.
926 * testsuite/libffi.call/cls_9byte1.c: Likewise.
927 * testsuite/libffi.call/cls_9byte2.c: Likewise.
928 * testsuite/libffi.call/cls_align_double.c: Likewise.
929 * testsuite/libffi.call/cls_align_float.c: Likewise.
930 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
931 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
932 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
933 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
934 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
935 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
936 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
937 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
938 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
939 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
940 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
941 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
942 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
943 * testsuite/libffi.call/huge_struct.c: Likewise.
944 * testsuite/libffi.call/nested_struct.c: Likewise.
945 * testsuite/libffi.call/nested_struct1.c: Likewise.
946 * testsuite/libffi.call/nested_struct10.c: Likewise.
947 * testsuite/libffi.call/nested_struct2.c: Likewise.
948 * testsuite/libffi.call/nested_struct3.c: Likewise.
949 * testsuite/libffi.call/nested_struct4.c: Likewise.
950 * testsuite/libffi.call/nested_struct5.c: Likewise.
951 * testsuite/libffi.call/nested_struct6.c: Likewise.
952 * testsuite/libffi.call/nested_struct7.c: Likewise.
953 * testsuite/libffi.call/nested_struct8.c: Likewise.
954 * testsuite/libffi.call/nested_struct9.c: Likewise.
955 * testsuite/libffi.call/stret_large.c: Likewise.
956 * testsuite/libffi.call/stret_large2.c: Likewise.
957 * testsuite/libffi.call/stret_medium.c: Likewise.
958 * testsuite/libffi.call/stret_medium2.c: Likewise.
959 * testsuite/libffi.call/struct1.c: Likewise.
960 * testsuite/libffi.call/struct1_win32.c: Likewise.
961 * testsuite/libffi.call/struct2.c: Likewise.
962 * testsuite/libffi.call/struct2_win32.c: Likewise.
963 * testsuite/libffi.call/struct3.c: Likewise.
964 * testsuite/libffi.call/struct4.c: Likewise.
965 * testsuite/libffi.call/struct5.c: Likewise.
966 * testsuite/libffi.call/struct6.c: Likewise.
967 * testsuite/libffi.call/struct7.c: Likewise.
968 * testsuite/libffi.call/struct8.c: Likewise.
969 * testsuite/libffi.call/struct9.c: Likewise.
970 * testsuite/libffi.call/testclosure.c: Likewise.
971
Anthony Greene72ed5e2012-03-21 09:52:28 -04009722012-03-21 Peter Rosin <peda@lysator.liu.se>
973
974 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
975 printing doubles (%lf is for long doubles).
976 (main): Likewise.
977
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009782012-03-21 Peter Rosin <peda@lysator.liu.se>
979
980 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
981 (set_ld_library_path_env_vars): Add the library search dir to PATH
982 (and save PATH for later).
983 (restore_ld_library_path_env_vars): Restore PATH.
984
Anthony Greenccee09a2013-01-02 08:41:55 -05009852012-03-21 Peter Rosin <peda@lysator.liu.se>
986
987 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
988 (set_ld_library_path_env_vars): Add the library search dir to PATH
989 (and save PATH for later).
990 (restore_ld_library_path_env_vars): Restore PATH.
991
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009922012-03-20 Peter Rosin <peda@lysator.liu.se>
993
994 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
995 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
996 visible outside the PROC, so that ffi_closure_THISCALL can see it.
997
Anthony Green048d2f42012-10-11 10:55:25 -04009982012-03-20 Peter Rosin <peda@lysator.liu.se>
999
1000 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1001 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1002 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1003
Anthony Greenbd78c9c2012-03-21 08:09:30 -040010042012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
1005
1006 * src/m68k/ffi.c: Add MINT support.
1007 * src/m68k/sysv.S: Ditto.
1008
Anthony Green048d2f42012-10-11 10:55:25 -040010092012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
1010
1011 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1012 ffi_call_VFP().
1013 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1014 ffi_closure_VFP.
1015 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1016
Anthony Green089dbce2013-01-02 08:37:35 -050010172012-03-19 chennam <csit@axway.com>
Anthony Green65f40c32012-04-03 07:35:59 -04001018
Anthony Green089dbce2013-01-02 08:37:35 -05001019 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1020 support.
Anthony Green048d2f42012-10-11 10:55:25 -04001021
Anthony Green84d32532012-03-19 23:07:35 -040010222012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
1023
1024 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1025 just return FFI_BAD_ABI when things are wrong.
1026 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1027
10282012-03-09 David Edelsohn <dje.gcc@gmail.com>
1029
1030 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1031 change to return value of ffi_closure_helper_DARWIN and load type
1032 from return type.
1033
Anthony Green964c5b92012-03-03 14:46:20 -050010342012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1035
1036 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1037 long.
1038 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1039 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1040 first.
1041
1042 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1043 (ffi_arg): Set to unsigned long long for x32.
1044 (ffi_sarg): Set to long long for x32.
1045
10462012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1049
Anthony Green6c194232012-03-03 14:17:54 -050010502012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
1051
1052 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1053 windows-like hosts.
1054 * configure: Rebuilt.
1055
Anthony Green7c5e60b2012-03-29 08:48:22 -040010562012-02-27 Mikael Pettersson <mikpe@it.uu.se>
1057
1058 PR libffi/52223
1059 * Makefile.am (FLAGS_TO_PASS): Define.
1060 * Makefile.in: Regenerate.
1061
Anthony Green8360bf12012-02-23 07:01:13 -050010622012-02-23 Anthony Green <green@moxielogic.com>
1063
1064 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1065 directly.
1066
Anthony Green7c5e60b2012-03-29 08:48:22 -040010672012-02-23 Kai Tietz <ktietz@redhat.com>
1068
1069 PR libffi/52221
1070 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1071 prototype.
1072 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1073 thiscall-convention.
1074 (ffi_raw_call): Use ffi_prep_args_raw.
1075 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1076 implementation for stub.
1077
Anthony Greendee20f82012-02-10 13:06:46 -050010782012-02-10 Kai Tietz <ktietz@redhat.com>
1079
1080 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1081 windows target.
1082 * configure: Regenerated.
Anthony Green8360bf12012-02-23 07:01:13 -05001083
Anthony Greendee20f82012-02-10 13:06:46 -050010842012-02-08 Kai Tietz <ktietz@redhat.com>
1085
1086 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1087 also FFI_THISCALL.
1088 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1089 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1090 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1091 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1092 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1093 for thiscall-calling convention.
1094 * testsuite/libffi.call/closure_thiscall.c: New test.
1095
Anthony Green1ff9c602012-02-01 16:34:30 -060010962012-01-28 Kai Tietz <ktietz@redhat.com>
1097
1098 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1099 argument to prototype for specify calling-convention.
1100 (ffi_call): Add support for stdcall/thiscall convention.
1101 (ffi_prep_args): Likewise.
1102 (ffi_raw_call): Likewise.
1103 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1104 FFI_FASTCALL.
1105 * src/x86/win32.S (_ffi_call_win32): Add support for
1106 fastcall/thiscall calling-convention calls.
1107 * testsuite/libffi.call/fastthis1_win32.c: New test.
1108 * testsuite/libffi.call/fastthis2_win32.c: New test.
1109 * testsuite/libffi.call/fastthis3_win32.c: New test.
1110 * testsuite/libffi.call/strlen2_win32.c: New test.
1111 * testsuite/libffi.call/many2_win32.c: New test.
1112 * testsuite/libffi.call/struct1_win32.c: New test.
1113 * testsuite/libffi.call/struct2_win32.c: New test.
1114
Anthony Green211060e2012-01-23 14:24:01 -050011152012-01-23 Uros Bizjak <ubizjak@gmail.com>
1116
1117 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1118
Anthony Green1ff9c602012-02-01 16:34:30 -060011192012-01-23 Anthony Green <green@moxielogic.com>
1120 Chris Young <cdyoung@ntlworld.com>
Anthony Green9e9c4ae2012-01-23 14:11:23 -05001121
1122 * configure.ac: Add Amiga support.
1123 * configure: Rebuilt.
1124
11252012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
Anthony Green8efc0b12012-01-23 13:47:38 -05001126
1127 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1128
Anthony Green1ff9c602012-02-01 16:34:30 -060011292012-01-23 Andreas Schwab <schwab@linux-m68k.org>
Anthony Greencd2277c2012-01-23 13:43:38 -05001130
1131 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1132 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1133
Anthony Greenc365ee72012-01-23 11:13:18 -050011342012-01-19 Jakub Jelinek <jakub@redhat.com>
1135
1136 PR rtl-optimization/48496
1137 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1138
11392012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1140
1141 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1142 * configure: Regenerate.
1143
11442011-12-07 Andrew Pinski <apinski@cavium.com>
1145
1146 PR libffi/50051
1147 * src/mips/n32.S: Add ".set mips4".
1148
11492011-11-21 Andreas Tobler <andreast@fgznet.ch>
1150
1151 * configure: Regenerate.
1152
Anthony Greenff9454d2011-11-12 17:18:51 -050011532011-11-12 David Gilbert <david.gilbert@linaro.org>
1154
1155 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1156 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1157 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1158 src/cris/ffi.c, src/prep_cif.c,
1159 testsuite/libffi.call/cls_double_va.c,
1160 testsuite/libffi.call/cls_longdouble_va.c,
1161 testsuite/libffi.call/float_va.c: Many changes to support variadic
1162 function calls.
1163
Anthony Green52891f82011-11-12 16:35:55 -050011642011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1165
1166 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1167 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1168 softfloat powerpc variants.
1169
Anthony Green6a6e7f82011-11-12 16:20:42 -050011702011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
1171
1172 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1173 * configure: Rebuilt.
1174
Anthony Greend52fbed2011-11-12 16:13:41 -050011752011-11-12 Timothy Wall <twall@users.sf.net>
1176
1177 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1178 alignment of 4 for wince on ARM.
1179
Anthony Greenaf18df22011-11-12 15:52:08 -050011802011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1181 Anthony Green <green@moxielogic.com>
1182
1183 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1184 instructions (not available on some cores, like the PPC440).
1185
Anthony Greenc411f142011-11-12 07:32:36 -050011862011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
Anthony Green8c019542011-09-06 14:26:32 -04001187
Anthony Greenc411f142011-11-12 07:32:36 -05001188 * m4/ax_enable_builddir: Change from string comparison to numeric
Anthony Green52891f82011-11-12 16:35:55 -05001189 comparison for wc output.
Anthony Green236c9392011-11-12 07:37:40 -05001190 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1191 X 10.7.
1192 * configure: Rebuilt.
Anthony Greenee6696f2011-08-23 12:30:29 -04001193
Anthony Green6a6e7f82011-11-12 16:20:42 -050011942011-11-12 Anthony Green <green@moxielogic.com>
1195
1196 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1197 files with debug info.
1198 * Makefile.in: Rebuilt.
1199
12002011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
1201
1202 * README: Update list of supported OpenBSD systems.
1203
12042011-11-12 Anthony Green <green@moxielogic.com>
1205
1206 * libtool-version: Update.
1207 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1208 FFI_DEBUG.
1209 (libffi_la_SOURCES): Remove src/debug.c
1210 (EXTRA_DIST): Add src/debug.c
1211 * Makefile.in: Rebuilt.
1212 * README: Update for 3.0.11.
1213
Anthony Green3d561062011-11-12 07:20:24 -050012142011-11-10 Richard Henderson <rth@redhat.com>
Anthony Green049d8382011-08-22 14:50:10 -04001215
Anthony Green3d561062011-11-12 07:20:24 -05001216 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1217 * configure, aclocal.m4: Rebuild.
1218
12192011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1220
1221 PR libffi/49594
1222 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1223 helper reference track the architecture pointer size.
1224
12252011-08-25 Andrew Haley <aph@redhat.com>
1226
1227 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1228 instructions.
1229 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
Anthony Green049d8382011-08-22 14:50:10 -04001230
Anthony Greend992ac52011-07-29 17:32:53 -040012312011-07-11 Andrew Haley <aph@redhat.com>
1232
1233 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1234
12352011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1236
1237 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1238 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1239
12402011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1241
1242 PR libffi/46660
1243 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1244 mips-sgi-irix6*.
1245 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1246
12472011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1248
1249 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1250 PRId8 instead of %hhu, %hhd.
1251 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1252 PRIu8): Define.
1253 [__sgi__] (PRId8, PRIu8): Define.
1254
12552011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1256
1257 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1258 Define.
1259 Use them to handle ELF vs. ECOFF differences.
1260 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1261
Anthony Green2d3fb362011-03-30 16:54:42 -040012622011-03-30 Timothy Wall <twall@users.sf.net>
1263
1264 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1265 * src/powerpc/darwin_closure.S: ditto.
1266
Anthony Green25416792011-02-25 15:09:13 -050012672011-02-25 Anthony Green <green@moxielogic.com>
1268
Anthony Green74ee6ea2011-02-25 15:52:14 -05001269 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1270 32-bit ABIs.
Anthony Green25416792011-02-25 15:09:13 -05001271
Anthony Green8cf88782011-02-15 15:19:49 -050012722011-02-15 Anthony Green <green@moxielogic.com>
1273
1274 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1275 * configure: Rebuilt.
1276
Anthony Greend992ac52011-07-29 17:32:53 -040012772011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1278
1279 * configure: Regenerate.
1280
Anthony Green1fbf9dc2011-02-13 08:06:39 -050012812011-02-13 Anthony Green <green@moxielogic.com>
1282
1283 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1284 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1285 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1286
1287 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1288 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1289
1290 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1291 just return FFI_BAD_ABI when things are wrong.
1292 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1293 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1294 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1295 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1296 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1297
Anthony Green1833aa02011-02-11 07:11:04 -050012982011-02-11 Anthony Green <green@moxielogic.com>
1299
1300 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1301 just return FFI_BAD_ABI when things are wrong.
1302
Anthony Green7c5e60b2012-03-29 08:48:22 -040013032012-02-11 Eric Botcazou <ebotcazou@adacore.com>
1304
1305 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1306
Anthony Green42695e72011-02-09 15:12:35 -050013072011-02-09 Stuart Shelton <srcshelton@gmail.com>
1308
1309 http://bugs.gentoo.org/show_bug.cgi?id=286911
1310 * src/mips/ffitarget.h: Clean up error messages.
1311 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1312 ffi_raw*.
1313 * include/ffi.h.in: Add pragma for SGI compiler.
1314
Anthony Greena6e56b92011-02-09 15:00:42 -050013152011-02-09 Anthony Green <green@moxielogic.com>
1316
1317 * configure.ac: Add powerpc64-*-darwin* support.
1318
Anthony Green0cad4382011-02-09 06:11:46 -050013192011-02-09 Anthony Green <green@moxielogic.com>
Anthony Green11062292011-02-08 19:20:09 -05001320
Anthony Green747d6c32011-02-09 14:56:23 -05001321 * README: Mention Interix.
1322
13232011-02-09 Jonathan Callen <abcd@gentoo.org>
1324
1325 * configure.ac: Add Interix to win32/cygwin/mingw case.
1326 * configure: Ditto.
1327 * src/closures.c: Treat Interix like Cygwin, instead of as a
1328 generic win32.
1329
13302011-02-09 Anthony Green <green@moxielogic.com>
1331
Anthony Green69dbe842011-02-09 07:38:43 -05001332 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1333 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1334 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1335 (ffi_prep_closure_loc): Check for bad ABI.
1336 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1337 (initialize_aggregate): Check for bad types.
Anthony Green0cad4382011-02-09 06:11:46 -05001338
Anthony Green90af15e2011-02-12 12:29:36 -050013392011-02-09 Landon Fuller <landonf@plausible.coop>
Anthony Green0cad4382011-02-09 06:11:46 -05001340
1341 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1342 src/arm/trampoline.S.
1343 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1344 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1345 * src/arm/ffi.c (ffi_trampoline_table)
1346 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1347 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1348 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1349 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1350 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1351 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1352 separately.
1353 * src/arm/sysv.S: Handle Apple iOS host.
1354 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
Anthony Greenf4983182011-02-09 06:26:46 -05001355 * build-ios.sh: New file.
Anthony Green0cad4382011-02-09 06:11:46 -05001356 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
Anthony Green69dbe842011-02-09 07:38:43 -05001357 * README: Mention ARM iOS.
Anthony Green11062292011-02-08 19:20:09 -05001358
Anthony Greendc411e82011-02-08 10:49:29 -050013592011-02-08 Oren Held <orenhe@il.ibm.com>
1360
1361 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1362 redefinition of mallinfo on HP-UX.
1363
Anthony Green404585d2011-02-08 10:44:36 -050013642011-02-08 Ginn Chen <ginn.chen@oracle.com>
1365
1366 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
Anthony Green049d8382011-08-22 14:50:10 -04001367 aggregate return ABI. Flush cache.
1368 (ffi_prep_closure_loc): Flush cache.
Anthony Green404585d2011-02-08 10:44:36 -05001369
Anthony Green6972a4f2011-02-11 07:32:51 -050013702011-02-11 Anthony Green <green@moxielogic.com>
1371
1372 From Tom Honermann <tom.honermann@oracle.com>:
1373 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1374 AIX. Declare .ffi_prep_args. Insert nops after branch
1375 instructions so that the AIX linker can insert TOC reload
1376 instructions.
1377 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1378
Anthony Greend992ac52011-07-29 17:32:53 -040013792011-02-08 Ed <ed@kdtc.net>
1380
1381 * src/powerpc/asm.h: Fix grammar nit in comment.
1382
Anthony Green89284fe2011-02-08 10:19:19 -050013832011-02-08 Uli Link <ul.mcamafia@linkitup.de>
1384
1385 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1386
Anthony Greend992ac52011-07-29 17:32:53 -040013872011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1388
1389 PR libffi/46661
1390 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1391 uintptr_t first.
1392 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1393
Anthony Greened2c5182011-02-08 10:10:07 -050013942011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
1395
1396 * configure.ac: Fix x86 test for pc related relocs.
Anthony Green09f8f312011-02-28 15:36:07 -05001397 * configure: Rebuilt.
Anthony Greened2c5182011-02-08 10:10:07 -05001398
Anthony Green3b836242011-02-08 14:28:59 -050013992011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1400
1401 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1402 Handle case when CPU variant does not have long double support.
1403 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1404 and cores with soft floating point.
1405
14062011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1407
1408 * configure.ac: Add mips*-*-rtems* support.
1409 * configure: Regenerate.
1410 * src/mips/ffitarget.h: Ensure needed constants are available
1411 for targets which do not have sgidefs.h.
1412
Anthony Green0e584392011-02-08 07:52:40 -050014132011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1414
1415 PR target/40125
1416 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1417 * configure: Regenerate.
1418
14192010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1420
1421 PR libffi/29152
1422 PR libffi/42378
1423 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1424 update comments.
1425 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1426 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1427 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1428 update comments.
1429 * src/powerpc/ffi_darwin.c: Likewise.
1430
14312010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1432
1433 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1434 backslashes.
1435 (libffi_cv_as_string_pseudo_op): Likewise.
1436 * configure: Regenerate.
1437
14382010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
1439
1440 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1441 (ffi_closure_VFP): Same.
1442 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1443 directive.
1444
14452010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1446
1447 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1448 (PRIuPTR): Define.
1449
14502010-11-29 Richard Henderson <rth@redhat.com>
1451 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1452
1453 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1454 (.eh_frame): Use FDE_ENCODING.
1455 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1456
Anthony Green5b9cd522010-11-22 15:19:57 -050014572010-11-22 Jacek Caban <jacek@codeweavers.com>
1458
1459 * configure.ac: Check for symbol underscores on mingw-w64.
1460 * configure: Rebuilt.
1461 * src/x86/win64.S: Correctly access extern symbols in respect to
1462 underscores.
1463
Anthony Green2db72612010-11-21 10:50:56 -050014642010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1465
1466 * testsuite/lib/libffi-dg.exp: Rename ...
1467 * testsuite/lib/libffi.exp: ... to this.
1468 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1469 * libffi/testsuite/libffi.special/special.exp: Likewise.
1470
14712010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1472
1473 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1474 code, new parameter, and return value. Update comments.
1475 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1476 call to layout_vfp_args().
1477 (ffi_call_SYSV): Update declaration.
1478 (ffi_call_VFP): New declaration.
1479 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1480 when ABI is FFI_VFP.
1481 (ffi_closure_VFP): New declaration.
1482 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1483 ffi_prep_incoming_args_SYSV().
1484 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1485 case handling.
1486 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1487 construction under VFP hard-float.
1488 (rec_vfp_type_p): New function.
1489 (vfp_type_p): Same.
1490 (place_vfp_arg): Same.
1491 (layout_vfp_args): Same.
1492 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1493 based on __ARM_PCS_VFP.
1494 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1495 fields.
1496 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1497 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1498 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1499 direct call. Move function pointer load upwards.
1500 (ffi_call_VFP): New function.
1501 (ffi_closure_VFP): Same.
1502
1503 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1504 (dg-skip-if): New function.
1505 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1506 and compiler options include -mfloat-abi=hard.
1507 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1508
15092010-10-01 Jakub Jelinek <jakub@redhat.com>
1510
1511 PR libffi/45677
1512 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1513 a multiple of 8.
1514 * testsuite/libffi.call/many2.c: New test.
1515
15162010-08-20 Mark Wielaard <mjw@redhat.com>
1517
1518 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1519 returns NULL.
1520
15212010-08-09 Andreas Tobler <andreast@fgznet.ch>
1522
1523 * configure.ac: Add target powerpc64-*-freebsd*.
1524 * configure: Regenerate.
1525 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1526 -mlong-double-128 only to linux targets.
1527 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1528 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1529 * testsuite/libffi.call/huge_struct.c: Likewise.
1530
Anthony Green00d0b592010-08-05 14:56:53 -040015312010-08-05 Dan Witte <dwitte@mozilla.com>
1532
1533 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1534 debug CRT when --enable-debug is given.
1535 * configure.ac: Define it.
1536 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1537
Anthony Greenc1d28ba2010-08-05 08:48:16 -040015382010-08-04 Dan Witte <dwitte@mozilla.com>
1539
1540 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1541 platforms.
1542 * src/x86/ffi.c: Remove redundant ifdef checks.
1543 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1544 for X86_ANY so return value space doesn't get added twice.
1545
Anthony Greenbda487e2010-08-05 09:02:41 -040015462010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
1547
1548 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1549
Anthony Greend14178b2010-07-23 09:14:00 -040015502010-07-22 Dan Witte <dwitte@mozilla.com>
1551
1552 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1553 * src/prep_cif.c: Fix ABI assertion.
1554 * src/cris/ffi.c: Ditto.
1555
Anthony Greeneaf444e2010-07-10 08:59:09 -040015562010-07-10 Evan Phoenix <evan@fallingsnow.net>
1557
1558 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1559
Anthony Green5feacad2010-08-05 08:30:04 -040015602010-07-07 Dan Horák <dan@danny.cz>
1561
1562 * include/ffi.h.in: Protect #define with #ifndef.
1563 * src/powerpc/ffitarget.h: Ditto.
1564 * src/s390/ffitarget.h: Ditto.
1565 * src/sparc/ffitarget.h: Ditto.
1566
Anthony Green2db72612010-11-21 10:50:56 -050015672010-07-07 Neil Roberts <neil@linux.intel.com>
1568
1569 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1570 16-bytes.
1571
15722010-07-02 Jakub Jelinek <jakub@redhat.com>
1573
1574 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1575 * Makefile.in: Regenerated.
1576
15772010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1578
1579 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1580 output, too.
1581 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1582 (libffi_cv_as_string_pseudo_op): Check for .string.
1583 * configure: Regenerate.
1584 * fficonfig.h.in: Regenerate.
1585 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1586
Anthony Green10ea8482010-08-05 08:24:27 -040015872010-05-11 Dan Witte <dwitte@mozilla.com>
1588
1589 * doc/libffi.tex: Document previous change.
1590
15912010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
1592
1593 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1594
Anthony Green63097412010-05-05 20:14:56 -040015952010-05-05 Michael Kohler <michaelkohler@live.com>
1596
1597 * src/dlmalloc.c (dlfree): Fix spelling.
1598 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1599 * configure.ac: Ditto.
1600 * configure: Rebuilt.
1601
Anthony Greenf2c2a4f2010-04-13 10:19:28 -040016022010-04-13 Dan Witte <dwitte@mozilla.com>
1603
1604 * msvcc.sh: Build with -W3 instead of -Wall.
1605 * src/powerpc/ffi_darwin.c: Remove build warnings.
1606 * src/x86/ffi.c: Ditto.
1607 * src/x86/ffitarget.h: Ditto.
1608
Anthony Green2db72612010-11-21 10:50:56 -050016092010-04-12 Dan Witte <dwitte@mozilla.com>
1610 Walter Meinl <wuno@lsvw.de>
Anthony Greenc0b69e52010-03-30 08:30:22 -04001611
Anthony Green2db72612010-11-21 10:50:56 -05001612 * configure.ac: Add OS/2 support.
1613 * configure: Rebuilt.
1614 * src/closures.c: Ditto.
1615 * src/dlmalloc.c: Ditto.
1616 * src/x86/win32.S: Ditto.
Anthony Green3f5b1372010-07-12 14:39:18 -04001617
16182010-04-07 Jakub Jelinek <jakub@redhat.com>
1619
Anthony Green2db72612010-11-21 10:50:56 -05001620 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
Anthony Green3f5b1372010-07-12 14:39:18 -04001621
16222010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1623
1624 * Makefile.in: Regenerate.
1625 * aclocal.m4: Regenerate.
1626 * include/Makefile.in: Regenerate.
1627 * man/Makefile.in: Regenerate.
1628 * testsuite/Makefile.in: Regenerate.
1629
Anthony Green2db72612010-11-21 10:50:56 -050016302010-03-30 Dan Witte <dwitte@mozilla.com>
1631
1632 * msvcc.sh: Disable build warnings.
1633 * README (tested): Clarify windows build procedure.
1634
Anthony Green3f5b1372010-07-12 14:39:18 -040016352010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1636
1637 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1638 * configure: Regenerate.
1639 * fficonfig.h.in: Regenerate.
1640 * libffi/src/x86/unix64.S (.eh_frame)
1641 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1642
Anthony Green2db72612010-11-21 10:50:56 -050016432010-03-14 Matthias Klose <doko@ubuntu.com>
1644
1645 * src/x86/ffi64.c: Fix typo in comment.
1646 * src/x86/ffi.c: Use /* ... */ comment style.
1647
Anthony Green9dc9a292010-04-13 10:33:52 -040016482010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1649
1650 * doc/libffi.texi (The Closure API): Fix typo.
1651 * doc/libffi.info: Remove.
1652
16532010-02-15 Matthias Klose <doko@ubuntu.com>
1654
1655 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1656 __ARM_ARCH_7EM__.
1657
Anthony Green2db72612010-11-21 10:50:56 -050016582010-01-15 Anthony Green <green@redhat.com>
1659
1660 * README: Add notes on building with Microsoft Visual C++.
1661
16622010-01-15 Daniel Witte <dwitte@mozilla.com>
1663
1664 * msvcc.sh: New file.
1665
1666 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1667 * src/x86/ffi.c: Tweak function declaration and remove excess
1668 parens.
1669 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1670 ffi_closure.
1671
1672 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1673 function ffi_call_win32 on X86_WIN32.
1674 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1675 (ffi_call_STDCALL): Remove.
1676
1677 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1678 to ffi_prep_cif_machdep for x86.
1679 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1680
16812010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
1682
1683 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
Anthony Green0e584392011-02-08 07:52:40 -05001684 Sun Studio compiler compatibility.
Anthony Green2db72612010-11-21 10:50:56 -05001685
16862010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
1687
1688 * doc/libffi.texi: Add closure example.
1689
Anthony Green7b7a42f2010-01-12 09:14:14 -050016902010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1691
1692 PR libffi/40701
1693 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1694 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1695 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1696 alpha*-dec-osf*.
1697 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1698 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1699 * testsuite/libffi.call/return_ll1.c: Likewise.
1700 * testsuite/libffi.call/stret_medium2.c: Likewise.
1701 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1702 MAP_FAILED to char *.
1703
17042010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1705
1706 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1707
Anthony Greenc3042af2010-01-01 08:08:02 -050017082009-12-31 Anthony Green <green@redhat.com>
1709
1710 * README: Update for libffi 3.0.9.
1711
17122009-12-27 Matthias Klose <doko@ubuntu.com>
1713
1714 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1715 appropriate.
1716 * configure: Rebuilt.
1717
17182009-12-26 Anthony Green <green@redhat.com>
1719
1720 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1721 avr32*-*-*.
1722 * testsuite/libffi.call/cls_double_va.c: Ditto.
1723
17242009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1725
1726 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1727 and inttypes.h.
1728 * testsuite/libffi.special/unwindtest.cc: Ditto.
1729
17302009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1731
1732 * configure.ac: Add amd64-*-openbsd*.
1733 * configure: Rebuilt.
1734 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1735 openbsd programs with -lpthread.
1736
17372009-12-26 Anthony Green <green@redhat.com>
1738
1739 * testsuite/libffi.call/cls_double_va.c,
1740 testsuite/libffi.call/cls_longdouble.c,
1741 testsuite/libffi.call/cls_longdouble_va.c,
1742 testsuite/libffi.call/cls_pointer.c,
1743 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1744 mips*-*-* and arm*-*-*.
1745 * testsuite/libffi.call/cls_align_longdouble_split.c,
1746 testsuite/libffi.call/cls_align_longdouble_split2.c,
1747 testsuite/libffi.call/stret_medium2.c,
1748 testsuite/libffi.call/stret_medium.c,
1749 testsuite/libffi.call/stret_large.c,
1750 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1751
17522009-12-31 Kay Tietz <ktietz70@googlemail.com>
1753
1754 * testsuite/libffi.call/ffitest.h,
1755 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1756 definitions.
1757
17582009-12-31 Carlo Bramini <carlo.bramix@libero.it>
1759
1760 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1761 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1762 * configure: Rebuilt.
1763 * Makefile.in: Rebuilt.
1764
17652009-12-31 Anthony Green <green@redhat.com>
1766 Blake Chaffin.
1767
1768 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1769 Chaffin @ Apple.
1770
Anthony Green0cfe60e2009-12-29 10:06:04 -050017712009-12-28 David Edelsohn <edelsohn@gnu.org>
1772
1773 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1774 local variables.
1775 (aix_adjust_aggregate_sizes): New function.
1776 (ffi_prep_cif_machdep): Call it.
1777
17782009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1779
1780 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1781 * configure: Regenerate.
1782 * fficonfig.h.in: Likewise.
1783 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1784 Solaris/x86.
1785
17862009-12-26 Andreas Schwab <schwab@linux-m68k.org>
1787
1788 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1789 when a float arguments is passed in memory.
1790 (ffi_closure_helper_SYSV): Mark general registers as used up when
1791 a 64bit or soft-float long double argument is passed in memory.
1792
Anthony Green9458d882009-12-26 07:02:27 -050017932009-12-25 Matthias Klose <doko@ubuntu.com>
1794
1795 * man/ffi_call.3: Fix #include in examples.
1796 * doc/libffi.texi: Add dircategory.
1797
17982009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
1799
1800 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1801 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1802 IRIX MIPSPro c99.
1803 * include/ffi_common.h: Added '__sgi' define to non
1804 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001805 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -05001806 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1807 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1808 FFI_LONGDOUBLE support and alignment(N32 only).
1809 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1810 fixed non '__attribute__((__mode__()))' integer typedefs.
1811 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1812 since they are Linux/GNU Assembler specific.
1813
18142009-12-25 Bradley Smith <brad@brad-smith.co.uk>
1815
1816 * configure.ac, Makefile.am, src/avr32/ffi.c,
1817 src/avr32/ffitarget.h,
1818 src/avr32/sysv.S: Add AVR32 port.
1819 * configure, Makefile.in: Rebuilt.
1820
Anthony Green115ab362009-12-24 00:22:00 -050018212009-12-21 Andreas Tobler <a.tobler@schweiz.org>
1822
1823 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1824 * configure: Regenerate.
1825
18262009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1827
1828 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1829
18302009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1831
1832 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1833 type on HP-UX.
1834
Anthony Green7c5e60b2012-03-29 08:48:22 -040018352012-02-13 Kai Tietz <ktietz@redhat.com>
1836
1837 PR libffi/52221
1838 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1839 support for X86_WIN32.
1840 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1841
Anthony Green115ab362009-12-24 00:22:00 -050018422009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1843
1844 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1845 double' arguments.
1846
18472009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1848
1849 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1850
18512009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1852
1853 PR libffi/40700
1854 * src/closures.c [X86_64 && __sun__ && __svr4__]
1855 (FFI_MMAP_EXEC_WRIT): Define.
1856
18572009-12-08 David Daney <ddaney@caviumnetworks.com>
1858
1859 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1860 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1861 * testsuite/libffi.call/stret_large.c: Same.
1862 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1863 * testsuite/libffi.call/stret_large2.c: Same.
1864 * testsuite/libffi.call/stret_medium2.c: Same.
1865
18662009-12-07 David Edelsohn <edelsohn@gnu.org>
1867
1868 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1869 typo.
1870
18712009-12-05 David Edelsohn <edelsohn@gnu.org>
1872
1873 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1874 code.
1875 * src/powerpc/aix_closure.S: Same.
1876
18772009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1878
1879 * Makefile.in: Regenerate.
1880 * configure: Regenerate.
1881 * include/Makefile.in: Regenerate.
1882 * man/Makefile.in: Regenerate.
1883 * testsuite/Makefile.in: Regenerate.
1884
18852009-12-04 David Edelsohn <edelsohn@gnu.org>
1886
1887 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -05001888 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -05001889
18902009-12-04 Uros Bizjak <ubizjak@gmail.com>
1891
1892 PR libffi/41908
1893 * src/x86/ffi64.c (classify_argument): Update from
1894 gcc/config/i386/i386.c.
1895 (ffi_closure_unix64_inner): Do not use the address of two consecutive
1896 SSE registers directly.
1897 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
1898 for x86_64 linux targets.
1899
19002009-12-04 David Edelsohn <edelsohn@gnu.org>
1901
1902 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
1903 pfr for long double split between fpr13 and stack.
1904
19052009-12-03 David Edelsohn <edelsohn@gnu.org>
1906
1907 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
1908 fparg_count twice for long double.
1909
19102009-12-03 David Edelsohn <edelsohn@gnu.org>
1911
1912 PR libffi/42243
1913 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
1914
19152009-12-03 Uros Bizjak <ubizjak@gmail.com>
1916
1917 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
1918 Remove xfails for x86 linux targets.
1919
19202009-12-02 David Edelsohn <edelsohn@gnu.org>
1921
1922 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
1923 case.
1924
19252009-12-01 David Edelsohn <edelsohn@gnu.org>
1926
1927 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
1928 register usage. Call ffi_prep_args directly. Add long double
1929 return value support.
1930 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
1931 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
1932 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
1933 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
1934 mode.
1935 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
1936 into case.
1937 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
1938 Allocate result area between params and FPRs.
1939
19402009-11-30 David Edelsohn <edelsohn@gnu.org>
1941
1942 PR target/35484
1943 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
1944 AIX64.
1945 * src/powerpc/aix.S: Implement AIX64 version.
1946 * src/powerpc/aix_closure.S: Implement AIX64 version.
1947 (ffi_closure_ASM): Use extsb, lha and displament addresses.
1948 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
1949 support.
1950 (ffi_prep_cif_machdep): Same.
1951 (ffi_call): Same.
1952 (ffi_closure_helper_DARWIN): Same.
1953
19542009-11-02 Andreas Tobler <a.tobler@schweiz.org>
1955
1956 PR libffi/41908
1957 * testsuite/libffi.call/testclosure.c: New test.
1958
Anthony Greenc6dddbd2009-10-04 08:11:33 -040019592009-09-28 Kai Tietz <kai.tietz@onevision.com>
1960
1961 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
1962 assembly version use of ___chkstk.
1963
19642009-09-23 Matthias Klose <doko@ubuntu.com>
1965
1966 PR libffi/40242, PR libffi/41443
1967 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
1968 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
1969 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
1970 Change the conditionals to __SOFTFP__ || __ARM_EABI__
1971 for -mfloat-abi=softfp to work.
1972
19732009-09-17 Loren J. Rittle <ljrittle@acm.org>
1974
1975 PR testsuite/32843 (strikes again)
1976 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
1977 enable proper extension on char and short.
1978
19792009-09-15 David Daney <ddaney@caviumnetworks.com>
1980
1981 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
1982 handling for FFI_TYPE_POINTER.
1983 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
1984 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
1985 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
1986 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
1987 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
1988 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
1989 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
1990 structure and pointer returns.
1991 (ffi_closure_N32): Add handling for pointer returns.
1992 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
1993 calc_n32_return_struct_flags): Handle soft-float.
1994 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
1995 (ffi_call_N32): Declare proper argument types.
1996 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
1997 soft-float.
1998
19992009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2000
2001 * configure.ac (AC_PREREQ): Bump to 2.64.
2002
20032009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2004
2005 * Makefile.am (install-html, install-pdf): Remove.
2006 * Makefile.in: Regenerate.
2007
2008 * Makefile.in: Regenerate.
2009 * aclocal.m4: Regenerate.
2010 * configure: Regenerate.
2011 * fficonfig.h.in: Regenerate.
2012 * include/Makefile.in: Regenerate.
2013 * man/Makefile.in: Regenerate.
2014 * testsuite/Makefile.in: Regenerate.
2015
Anthony Green3d561062011-11-12 07:20:24 -050020162011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
2017
2018 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2019 * configure: Rebuilt.
2020
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020212009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2022
2023 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2024
20252009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
2026
2027 PR libffi/40807
2028 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2029 return types for X86_WIN32.
2030 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2031 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2032 _ffi_closure_STDCALL): Likewise.
2033
2034 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2035 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2036
20372009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2038
2039 PR testsuite/40699
2040 PR testsuite/40707
2041 PR testsuite/40709
2042 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2043 2009-06-30 commits.
2044
20452009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2046
2047 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2048 to "" before adding paths. (This reinstates an assignment that
2049 was removed by my 2009-06-30 commit, but changes the initial
2050 value from "." to "".)
2051
20522009-07-01 H.J. Lu <hongjiu.lu@intel.com>
2053
2054 PR testsuite/40601
2055 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2056 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2057 empty.
2058
20592009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2060
2061 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2062 to ld_library_path. Use add_path. Add just find_libgcc_s
2063 to ld_library_path, not every libgcc multilib directory.
2064
20652009-06-16 Wim Lewis <wiml@hhhh.org>
2066
2067 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2068 supposed to be callee-saved.
2069 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2070 return buffer for odd-size structs.
2071
20722009-06-16 Andreas Tobler <a.tobler@schweiz.org>
2073
2074 PR libffi/40444
2075 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2076 allow_stack_execute for Darwin.
2077
20782009-06-16 Andrew Haley <aph@redhat.com>
2079
2080 * configure.ac (TARGETDIR): Add missing blank lines.
2081 * configure: Regenerate.
2082
20832009-06-16 Andrew Haley <aph@redhat.com>
2084
2085 * testsuite/libffi.call/cls_align_sint64.c,
2086 testsuite/libffi.call/cls_align_uint64.c,
2087 testsuite/libffi.call/cls_longdouble_va.c,
2088 testsuite/libffi.call/cls_ulonglong.c,
2089 testsuite/libffi.call/return_ll1.c,
2090 testsuite/libffi.call/stret_medium2.c: Fix printf format
2091 specifiers.
2092 * testsuite/libffi.call/ffitest.h,
2093 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2094
20952009-06-15 Andrew Haley <aph@redhat.com>
2096
2097 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2098 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002099
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021002009-06-12 Andrew Haley <aph@redhat.com>
2101
2102 * Makefile.am: Remove info_TEXINFOS.
2103
21042009-06-12 Andrew Haley <aph@redhat.com>
2105
2106 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2107 testsuite/libffi.call/cls_align_uint64.c,
2108 testsuite/libffi.call/cls_ulonglong.c,
2109 testsuite/libffi.call/return_ll1.c,
2110 testsuite/libffi.call/stret_medium2.c: Fix printf format
2111 specifiers.
2112 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2113
21142009-06-11 Timothy Wall <twall@users.sf.net>
2115
2116 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002117 configure.ac,
2118 include/ffi.h.in,
2119 include/ffi_common.h,
2120 src/closures.c,
2121 src/dlmalloc.c,
2122 src/x86/ffi.c,
2123 src/x86/ffitarget.h,
2124 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002125 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -05002126 * Makefile.in,
2127 include/Makefile.in,
2128 man/Makefile.in,
2129 testsuite/Makefile.in,
2130 configure,
2131 aclocal.m4: Regenerated
2132 * ltcf-c.sh: properly escape cygwin/w32 path
2133 * man/ffi_call.3: Clarify size requirements for return value.
2134 * src/x86/ffi64.c: Fix filename in comment.
2135 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002136
Anthony Green0cfe60e2009-12-29 10:06:04 -05002137 * testsuite/libffi.call/closure_fn0.c,
2138 testsuite/libffi.call/closure_fn1.c,
2139 testsuite/libffi.call/closure_fn2.c,
2140 testsuite/libffi.call/closure_fn3.c,
2141 testsuite/libffi.call/closure_fn4.c,
2142 testsuite/libffi.call/closure_fn5.c,
2143 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002144 testsuite/libffi.call/closure_stdcall.c,
2145 testsuite/libffi.call/cls_12byte.c,
2146 testsuite/libffi.call/cls_16byte.c,
2147 testsuite/libffi.call/cls_18byte.c,
2148 testsuite/libffi.call/cls_19byte.c,
2149 testsuite/libffi.call/cls_1_1byte.c,
2150 testsuite/libffi.call/cls_20byte.c,
2151 testsuite/libffi.call/cls_20byte1.c,
2152 testsuite/libffi.call/cls_24byte.c,
2153 testsuite/libffi.call/cls_2byte.c,
2154 testsuite/libffi.call/cls_3_1byte.c,
2155 testsuite/libffi.call/cls_3byte1.c,
2156 testsuite/libffi.call/cls_3byte2.c,
2157 testsuite/libffi.call/cls_4_1byte.c,
2158 testsuite/libffi.call/cls_4byte.c,
2159 testsuite/libffi.call/cls_5_1_byte.c,
2160 testsuite/libffi.call/cls_5byte.c,
2161 testsuite/libffi.call/cls_64byte.c,
2162 testsuite/libffi.call/cls_6_1_byte.c,
2163 testsuite/libffi.call/cls_6byte.c,
2164 testsuite/libffi.call/cls_7_1_byte.c,
2165 testsuite/libffi.call/cls_7byte.c,
2166 testsuite/libffi.call/cls_8byte.c,
2167 testsuite/libffi.call/cls_9byte1.c,
2168 testsuite/libffi.call/cls_9byte2.c,
2169 testsuite/libffi.call/cls_align_double.c,
2170 testsuite/libffi.call/cls_align_float.c,
2171 testsuite/libffi.call/cls_align_longdouble.c,
2172 testsuite/libffi.call/cls_align_longdouble_split.c,
2173 testsuite/libffi.call/cls_align_longdouble_split2.c,
2174 testsuite/libffi.call/cls_align_pointer.c,
2175 testsuite/libffi.call/cls_align_sint16.c,
2176 testsuite/libffi.call/cls_align_sint32.c,
2177 testsuite/libffi.call/cls_align_sint64.c,
2178 testsuite/libffi.call/cls_align_uint16.c,
2179 testsuite/libffi.call/cls_align_uint32.c,
2180 testsuite/libffi.call/cls_align_uint64.c,
2181 testsuite/libffi.call/cls_dbls_struct.c,
2182 testsuite/libffi.call/cls_double.c,
2183 testsuite/libffi.call/cls_double_va.c,
2184 testsuite/libffi.call/cls_float.c,
2185 testsuite/libffi.call/cls_longdouble.c,
2186 testsuite/libffi.call/cls_longdouble_va.c,
2187 testsuite/libffi.call/cls_multi_schar.c,
2188 testsuite/libffi.call/cls_multi_sshort.c,
2189 testsuite/libffi.call/cls_multi_sshortchar.c,
2190 testsuite/libffi.call/cls_multi_uchar.c,
2191 testsuite/libffi.call/cls_multi_ushort.c,
2192 testsuite/libffi.call/cls_multi_ushortchar.c,
2193 testsuite/libffi.call/cls_pointer.c,
2194 testsuite/libffi.call/cls_pointer_stack.c,
2195 testsuite/libffi.call/cls_schar.c,
2196 testsuite/libffi.call/cls_sint.c,
2197 testsuite/libffi.call/cls_sshort.c,
2198 testsuite/libffi.call/cls_uchar.c,
2199 testsuite/libffi.call/cls_uint.c,
2200 testsuite/libffi.call/cls_ulonglong.c,
2201 testsuite/libffi.call/cls_ushort.c,
2202 testsuite/libffi.call/err_bad_abi.c,
2203 testsuite/libffi.call/err_bad_typedef.c,
2204 testsuite/libffi.call/float2.c,
2205 testsuite/libffi.call/huge_struct.c,
2206 testsuite/libffi.call/nested_struct.c,
2207 testsuite/libffi.call/nested_struct1.c,
2208 testsuite/libffi.call/nested_struct10.c,
2209 testsuite/libffi.call/nested_struct2.c,
2210 testsuite/libffi.call/nested_struct3.c,
2211 testsuite/libffi.call/nested_struct4.c,
2212 testsuite/libffi.call/nested_struct5.c,
2213 testsuite/libffi.call/nested_struct6.c,
2214 testsuite/libffi.call/nested_struct7.c,
2215 testsuite/libffi.call/nested_struct8.c,
2216 testsuite/libffi.call/nested_struct9.c,
2217 testsuite/libffi.call/problem1.c,
2218 testsuite/libffi.call/return_ldl.c,
2219 testsuite/libffi.call/return_ll1.c,
2220 testsuite/libffi.call/stret_large.c,
2221 testsuite/libffi.call/stret_large2.c,
2222 testsuite/libffi.call/stret_medium.c,
2223 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002224 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2225 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002226
22272009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2228
2229 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2230 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2231 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2232
22332009-06-09 Andrew Haley <aph@redhat.com>
2234
2235 * src/x86/freebsd.S: Add missing file.
2236
22372009-06-08 Andrew Haley <aph@redhat.com>
2238
2239 Import from libffi 3.0.8:
2240
2241 * doc/libffi.texi: New file.
2242 * doc/libffi.info: Likewise.
2243 * doc/stamp-vti: Likewise.
2244 * man/Makefile.am: New file.
2245 * man/ffi_call.3: New file.
2246
2247 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2248 src/dlmalloc.c.
2249 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2250
2251 * configure.ac: Bump version to 3.0.8.
2252 parisc*-*-linux*: Add.
2253 i386-*-freebsd* | i386-*-openbsd*: Add.
2254 powerpc-*-beos*: Add.
2255 AM_CONDITIONAL X86_FREEBSD: Add.
2256 AC_CONFIG_FILES: Add man/Makefile.
2257
2258 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2259
22602009-06-08 Andrew Haley <aph@redhat.com>
2261
2262 * README: Import from libffi 3.0.8.
2263
22642009-06-08 Andrew Haley <aph@redhat.com>
2265
2266 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2267 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2268 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2269 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2270
2271 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2272 * testsuite/libffi.call/stret_medium.c: Likewise.
2273 * testsuite/libffi.call/stret_large2.c: Likewise.
2274 * testsuite/libffi.call/stret_large.c: Likewise.
2275
22762008-12-26 Timothy Wall <twall@users.sf.net>
2277
Anthony Green0cfe60e2009-12-29 10:06:04 -05002278 * testsuite/libffi.call/cls_longdouble.c,
2279 testsuite/libffi.call/cls_longdouble_va.c,
2280 testsuite/libffi.call/cls_align_longdouble.c,
2281 testsuite/libffi.call/cls_align_longdouble_split.c,
2282 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2283 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002284
22852008-12-22 Timothy Wall <twall@users.sf.net>
2286
Anthony Green0cfe60e2009-12-29 10:06:04 -05002287 * testsuite/libffi.call/closure_fn0.c,
2288 testsuite/libffi.call/closure_fn1.c,
2289 testsuite/libffi.call/closure_fn2.c,
2290 testsuite/libffi.call/closure_fn3.c,
2291 testsuite/libffi.call/closure_fn4.c,
2292 testsuite/libffi.call/closure_fn5.c,
2293 testsuite/libffi.call/closure_fn6.c,
2294 testsuite/libffi.call/closure_loc_fn0.c,
2295 testsuite/libffi.call/closure_stdcall.c,
2296 testsuite/libffi.call/cls_align_pointer.c,
2297 testsuite/libffi.call/cls_pointer.c,
2298 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2299 pointer to integer (intptr_t).
2300 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002301
23022008-07-24 Anthony Green <green@redhat.com>
2303
Anthony Green0cfe60e2009-12-29 10:06:04 -05002304 * testsuite/libffi.call/cls_dbls_struct.c,
2305 testsuite/libffi.call/cls_double_va.c,
2306 testsuite/libffi.call/cls_longdouble.c,
2307 testsuite/libffi.call/cls_longdouble_va.c,
2308 testsuite/libffi.call/cls_pointer.c,
2309 testsuite/libffi.call/cls_pointer_stack.c,
2310 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2311 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002312
23132008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002314 Blake Chaffin
2315 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002316
Anthony Green0cfe60e2009-12-29 10:06:04 -05002317 * testsuite/libffi.call/cls_align_longdouble_split2.c
2318 testsuite/libffi.call/cls_align_longdouble_split.c
2319 testsuite/libffi.call/cls_dbls_struct.c
2320 testsuite/libffi.call/cls_double_va.c
2321 testsuite/libffi.call/cls_longdouble.c
2322 testsuite/libffi.call/cls_longdouble_va.c
2323 testsuite/libffi.call/cls_pointer.c
2324 testsuite/libffi.call/cls_pointer_stack.c
2325 testsuite/libffi.call/err_bad_abi.c
2326 testsuite/libffi.call/err_bad_typedef.c
2327 testsuite/libffi.call/stret_large2.c
2328 testsuite/libffi.call/stret_large.c
2329 testsuite/libffi.call/stret_medium2.c
2330 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002331
23322009-06-05 Andrew Haley <aph@redhat.com>
2333
2334 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2335 libffi.
2336
23372009-06-04 Andrew Haley <aph@redhat.com>
2338
2339 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2340 stdcall changes.
2341
23422008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002343 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002344
Anthony Green0cfe60e2009-12-29 10:06:04 -05002345 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2346 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002347
23482008-02-03 Timothy Wall <twall@users.sf.net>
2349
Anthony Green0cfe60e2009-12-29 10:06:04 -05002350 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2351 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002352
23532008-01-31 Timothy Wall <twall@users.sf.net>
2354
Anthony Green0cfe60e2009-12-29 10:06:04 -05002355 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2356 closures.
2357 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2358 closures.
2359 * src/x86/win32.S: Add assembly for stdcall closure.
2360 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002361
23622009-06-04 Andrew Haley <aph@redhat.com>
2363
2364 * include/ffi.h.in: Change void (*)() to void (*)(void).
2365 * src/x86/ffi.c: Likewise.
2366
23672009-06-04 Andrew Haley <aph@redhat.com>
2368
2369 * src/powerpc/ppc_closure.S: Insert licence header.
2370 * src/powerpc/linux64_closure.S: Likewise.
2371 * src/m68k/sysv.S: Likewise.
2372
2373 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2374 * src/powerpc/ffi.c: Likewise.
2375 * src/powerpc/ffi_darwin.c: Likewise.
2376 * src/m32r/ffi.c: Likewise.
2377 * src/sh64/ffi.c: Likewise.
2378 * src/x86/ffi64.c: Likewise.
2379 * src/alpha/ffi.c: Likewise.
2380 * src/alpha/osf.S: Likewise.
2381 * src/frv/ffi.c: Likewise.
2382 * src/s390/ffi.c: Likewise.
2383 * src/pa/ffi.c: Likewise.
2384 * src/pa/hpux32.S: Likewise.
2385 * src/ia64/unix.S: Likewise.
2386 * src/ia64/ffi.c: Likewise.
2387 * src/sparc/ffi.c: Likewise.
2388 * src/mips/ffi.c: Likewise.
2389 * src/sh/ffi.c: Likewise.
2390
23912008-02-15 David Daney <ddaney@avtrex.com>
2392
Anthony Green0cfe60e2009-12-29 10:06:04 -05002393 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2394 Define (conditionally), and use it to include cachectl.h.
2395 (ffi_prep_closure_loc): Fix cache flushing.
2396 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002397
23982009-06-04 Andrew Haley <aph@redhat.com>
2399
2400 include/ffi.h.in,
2401 src/arm/ffitarget.h,
2402 src/arm/ffi.c,
2403 src/arm/sysv.S,
2404 src/powerpc/ffitarget.h,
2405 src/closures.c,
2406 src/sh64/ffitarget.h,
2407 src/sh64/ffi.c,
2408 src/sh64/sysv.S,
2409 src/types.c,
2410 src/x86/ffi64.c,
2411 src/x86/ffitarget.h,
2412 src/x86/win32.S,
2413 src/x86/darwin.S,
2414 src/x86/ffi.c,
2415 src/x86/sysv.S,
2416 src/x86/unix64.S,
2417 src/alpha/ffitarget.h,
2418 src/alpha/ffi.c,
2419 src/alpha/osf.S,
2420 src/m68k/ffitarget.h,
2421 src/frv/ffitarget.h,
2422 src/frv/ffi.c,
2423 src/s390/ffitarget.h,
2424 src/s390/sysv.S,
2425 src/cris/ffitarget.h,
2426 src/pa/linux.S,
2427 src/pa/ffitarget.h,
2428 src/pa/ffi.c,
2429 src/raw_api.c,
2430 src/ia64/ffitarget.h,
2431 src/ia64/unix.S,
2432 src/ia64/ffi.c,
2433 src/ia64/ia64_flags.h,
2434 src/java_raw_api.c,
2435 src/debug.c,
2436 src/sparc/v9.S,
2437 src/sparc/ffitarget.h,
2438 src/sparc/ffi.c,
2439 src/sparc/v8.S,
2440 src/mips/ffitarget.h,
2441 src/mips/n32.S,
2442 src/mips/o32.S,
2443 src/mips/ffi.c,
2444 src/prep_cif.c,
2445 src/sh/ffitarget.h,
2446 src/sh/ffi.c,
2447 src/sh/sysv.S: Update license text.
2448
24492009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2450
2451 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2452 (.eh_frame): Add FDE for it.
2453
24542009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2455
2456 * configure.ac: Also check if assembler supports pc-relative
2457 relocs on X86_WIN32 targets.
2458 * configure: Regenerate.
2459 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2460 (_ffi_call_SYSV): Add missing function type symbol .def and
2461 add EH markup labels.
2462 (_ffi_call_STDCALL): Likewise.
2463 (_ffi_closure_SYSV): Likewise.
2464 (_ffi_closure_raw_SYSV): Likewise.
2465 (.eh_frame): Add hand-crafted EH data.
2466
24672009-04-09 Jakub Jelinek <jakub@redhat.com>
2468
2469 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2470 version 3 of the GNU General Public License and to point readers
2471 at the COPYING3 file and the FSF's license web page.
2472 * testsuite/libffi.call/call.exp: Likewise.
2473 * testsuite/libffi.special/special.exp: Likewise.
2474
24752009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2476
2477 * configure: Regenerate.
2478
24792008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2480
2481 PR libffi/26048
2482 * configure.ac (HAVE_AS_X86_PCREL): New test.
2483 * configure: Regenerate.
2484 * fficonfig.h.in: Regenerate.
2485 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2486 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2487 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2488 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2489 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2490 (.Lload_table): Likewise.
2491 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2492
24932008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2494
2495 * configure: Regenerate.
2496
24972008-11-21 Eric Botcazou <ebotcazou@adacore.com>
2498
2499 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2500 signed/unsigned int8/16 return values.
2501 * src/sparc/v8.S (ffi_call_v8): Likewise.
2502 (ffi_closure_v8): Likewise.
2503
25042008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002505 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002506
2507 * configure: Regenerate for new libtool.
2508 * Makefile.in: Ditto.
2509 * include/Makefile.in: Ditto.
2510 * aclocal.m4: Ditto.
2511
25122008-08-25 Andreas Tobler <a.tobler@schweiz.org>
2513
2514 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2515 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2516 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2517 Adjust copyright notice.
2518 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2519 register or two register to use for FFI_SYSV structs.
2520 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2521 (ffi_closure_helper_SYSV): Fix the return type for
2522 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2523 Adjust copyright notice.
2524
25252008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2526
2527 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2528 int.
2529
25302008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2531
2532 * configure: Regenerate.
2533 * include/Makefile.in: Regenerate.
2534 * testsuite/Makefile.in: Regenerate.
2535
25362008-06-07 Joseph Myers <joseph@codesourcery.com>
2537
2538 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2539 powerpc-*-beos*): Remove.
2540 * configure: Regenerate.
2541
25422008-05-09 Julian Brown <julian@codesourcery.com>
2543
2544 * Makefile.am (LTLDFLAGS): New.
2545 (libffi_la_LDFLAGS): Use above.
2546 * Makefile.in: Regenerate.
2547
25482008-04-18 Paolo Bonzini <bonzini@gnu.org>
2549
2550 PR bootstrap/35457
2551 * aclocal.m4: Regenerate.
2552 * configure: Regenerate.
2553
25542008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
2555
2556 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2557 * src/sh64/sysv.S: Likewise.
2558
25592008-03-26 Daniel Jacobowitz <dan@debian.org>
2560
2561 * src/arm/sysv.S: Fix ARM comment marker.
2562
25632008-03-26 Jakub Jelinek <jakub@redhat.com>
2564
2565 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2566 * src/s390/sysv.S: Likewise.
2567 * src/powerpc/ppc_closure.S: Likewise.
2568 * src/powerpc/sysv.S: Likewise.
2569 * src/x86/unix64.S: Likewise.
2570 * src/x86/sysv.S: Likewise.
2571 * src/sparc/v8.S: Likewise.
2572 * src/sparc/v9.S: Likewise.
2573 * src/m68k/sysv.S: Likewise.
2574 * src/arm/sysv.S: Likewise.
2575
25762008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2577
2578 * aclocal.m4: Regenerate.
2579 * configure: Likewise.
2580 * Makefile.in: Likewise.
2581 * include/Makefile.in: Likewise.
2582 * testsuite/Makefile.in: Likewise.
2583
25842008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
2585 Andreas Tobler <a.tobler@schweiz.org>
2586
2587 * configure.ac: Add amd64-*-freebsd* target.
2588 * configure: Regenerate.
2589
25902008-01-30 H.J. Lu <hongjiu.lu@intel.com>
2591
2592 PR libffi/34612
2593 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2594 returning struct.
2595
2596 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2597 tests.
2598
25992008-01-24 David Edelsohn <edelsohn@gnu.org>
2600
2601 * configure: Regenerate.
2602
26032008-01-06 Andreas Tobler <a.tobler@schweiz.org>
2604
2605 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2606
26072008-01-05 Andreas Tobler <a.tobler@schweiz.org>
2608
2609 PR testsuite/32843
2610 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2611 signed/unsigned int8/16 for X86_DARWIN.
2612 Updated copyright info.
2613 Handle one and two byte structs with special cif->flags.
2614 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2615 Updated copyright info.
2616 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2617 sysv.S
2618 Remove code to pop args from the stack after call.
2619 Special-case signed/unsigned for int8/16, one and two byte structs.
2620 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2621 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2622 FFI_TYPE_SINT32.
2623 Updated copyright info.
2624
26252007-12-08 David Daney <ddaney@avtrex.com>
2626
Anthony Green0cfe60e2009-12-29 10:06:04 -05002627 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002628 SUBU, add with ADDU and use smaller code sequences.
2629
26302007-12-07 David Daney <ddaney@avtrex.com>
2631
2632 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2633 type.
2634
26352007-12-06 David Daney <ddaney@avtrex.com>
2636
2637 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2638 defined.
2639 (ffi_java_raw): New typedef.
2640 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2641 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2642 ffi_java_raw.
2643 (ffi_java_raw_closure) : Same.
2644 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2645 parameter types.
2646 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2647 FFI_SIZEOF_JAVA_RAW.
2648 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2649 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2650 sizeof(ffi_java_raw) for alignment calculations.
2651 (ffi_java_ptrarray_to_raw): Same.
2652 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -05002653 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002654 (ffi_java_raw_to_rvalue): Same.
2655 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2656 (ffi_java_translate_args): Same.
2657 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2658 parameter types.
2659 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2660
26612007-12-06 David Daney <ddaney@avtrex.com>
2662
Anthony Green0cfe60e2009-12-29 10:06:04 -05002663 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002664 pointer values.
2665
26662007-12-01 Andreas Tobler <a.tobler@schweiz.org>
2667
2668 PR libffi/31937
2669 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2670 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2671 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2672 set the NUM_FPR_ARG_REGISTERS according to.
2673 Add support for potential soft-float support under hard-float
2674 architecture.
2675 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2676 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2677 to the FFI_LINUX_SOFT_FLOAT ABI.
2678 (ffi_prep_cif_machdep): Likewise.
2679 (ffi_closure_helper_SYSV): Likewise.
2680 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2681 on archs where __NO_FPRS__ is true.
2682 Add FFI_TYPE_UINT128 support.
2683 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2684 Adjust copyright notice.
2685
26862007-11-25 Andreas Tobler <a.tobler@schweiz.org>
2687
2688 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2689 * include/ffi_common.h: ... here.
2690 Update copyright.
2691
26922007-11-17 Andreas Tobler <a.tobler@schweiz.org>
2693
2694 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2695 * src/powerpc/linux64.S: Likewise.
2696 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2697 * testsuite/libffi.call/return_ldl.c: New test.
2698
26992007-09-04 <aph@redhat.com>
2700
2701 * src/arm/sysv.S (UNWIND): New.
2702 (Whole file): Conditionally compile unwinder directives.
2703 * src/arm/sysv.S: Add unwinder directives.
2704
2705 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2706 Only treat r0 as a struct address if we're actually returning a
2707 struct by address.
2708 Only copy the bytes that are actually within a struct.
2709 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2710 is returned in r0, not passed by address.
2711 (ffi_call): Allocate a word-sized temporary for the case where
2712 a composite is returned in r0.
2713 (ffi_prep_incoming_args_SYSV): Align as necessary.
2714
27152007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
2716
Anthony Green0cfe60e2009-12-29 10:06:04 -05002717 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002718 directly using the sys_cacheflush syscall.
2719
27202007-07-27 Andrew Haley <aph@redhat.com>
2721
2722 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2723
27242007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
2725
2726 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2727 * configure.ac: Likewise.
2728 * Makefile.in: Regenerate.
2729 * include/Makefile.in: Likewise.
2730 * testsuite/Makefile.in: Likewise.
2731 * configure: Likewise.
2732
27332007-08-24 David Daney <ddaney@avtrex.com>
2734
2735 * testsuite/libffi.call/return_sl.c: New test.
2736
27372007-08-10 David Daney <ddaney@avtrex.com>
2738
2739 * testsuite/libffi.call/cls_multi_ushort.c,
2740 testsuite/libffi.call/cls_align_uint16.c,
2741 testsuite/libffi.call/nested_struct1.c,
2742 testsuite/libffi.call/nested_struct3.c,
2743 testsuite/libffi.call/cls_7_1_byte.c,
2744 testsuite/libffi.call/nested_struct5.c,
2745 testsuite/libffi.call/cls_double.c,
2746 testsuite/libffi.call/nested_struct7.c,
2747 testsuite/libffi.call/cls_sint.c,
2748 testsuite/libffi.call/nested_struct9.c,
2749 testsuite/libffi.call/cls_20byte1.c,
2750 testsuite/libffi.call/cls_multi_sshortchar.c,
2751 testsuite/libffi.call/cls_align_sint64.c,
2752 testsuite/libffi.call/cls_3byte2.c,
2753 testsuite/libffi.call/cls_multi_schar.c,
2754 testsuite/libffi.call/cls_multi_uchar.c,
2755 testsuite/libffi.call/cls_19byte.c,
2756 testsuite/libffi.call/cls_9byte1.c,
2757 testsuite/libffi.call/cls_align_float.c,
2758 testsuite/libffi.call/closure_fn1.c,
2759 testsuite/libffi.call/problem1.c,
2760 testsuite/libffi.call/closure_fn3.c,
2761 testsuite/libffi.call/cls_sshort.c,
2762 testsuite/libffi.call/closure_fn5.c,
2763 testsuite/libffi.call/cls_align_double.c,
2764 testsuite/libffi.call/nested_struct.c,
2765 testsuite/libffi.call/cls_2byte.c,
2766 testsuite/libffi.call/nested_struct10.c,
2767 testsuite/libffi.call/cls_4byte.c,
2768 testsuite/libffi.call/cls_6byte.c,
2769 testsuite/libffi.call/cls_8byte.c,
2770 testsuite/libffi.call/cls_multi_sshort.c,
2771 testsuite/libffi.call/cls_align_sint16.c,
2772 testsuite/libffi.call/cls_align_uint32.c,
2773 testsuite/libffi.call/cls_20byte.c,
2774 testsuite/libffi.call/cls_float.c,
2775 testsuite/libffi.call/nested_struct2.c,
2776 testsuite/libffi.call/cls_5_1_byte.c,
2777 testsuite/libffi.call/nested_struct4.c,
2778 testsuite/libffi.call/cls_24byte.c,
2779 testsuite/libffi.call/nested_struct6.c,
2780 testsuite/libffi.call/cls_64byte.c,
2781 testsuite/libffi.call/nested_struct8.c,
2782 testsuite/libffi.call/cls_uint.c,
2783 testsuite/libffi.call/cls_multi_ushortchar.c,
2784 testsuite/libffi.call/cls_schar.c,
2785 testsuite/libffi.call/cls_uchar.c,
2786 testsuite/libffi.call/cls_align_uint64.c,
2787 testsuite/libffi.call/cls_ulonglong.c,
2788 testsuite/libffi.call/cls_align_longdouble.c,
2789 testsuite/libffi.call/cls_1_1byte.c,
2790 testsuite/libffi.call/cls_12byte.c,
2791 testsuite/libffi.call/cls_3_1byte.c,
2792 testsuite/libffi.call/cls_3byte1.c,
2793 testsuite/libffi.call/cls_4_1byte.c,
2794 testsuite/libffi.call/cls_6_1_byte.c,
2795 testsuite/libffi.call/cls_16byte.c,
2796 testsuite/libffi.call/cls_18byte.c,
2797 testsuite/libffi.call/closure_fn0.c,
2798 testsuite/libffi.call/cls_9byte2.c,
2799 testsuite/libffi.call/closure_fn2.c,
2800 testsuite/libffi.call/closure_fn4.c,
2801 testsuite/libffi.call/cls_ushort.c,
2802 testsuite/libffi.call/closure_fn6.c,
2803 testsuite/libffi.call/cls_5byte.c,
2804 testsuite/libffi.call/cls_align_pointer.c,
2805 testsuite/libffi.call/cls_7byte.c,
2806 testsuite/libffi.call/cls_align_sint32.c,
2807 testsuite/libffi.special/unwindtest_ffi_call.cc,
2808 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2809
28102007-08-10 David Daney <ddaney@avtrex.com>
2811
2812 PR libffi/28313
2813 * configure.ac: Don't treat mips64 as a special case.
2814 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2815 * configure: Regenerate
2816 * Makefile.in: Ditto.
2817 * fficonfig.h.in: Ditto.
2818 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2819 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2820 (FFI_DEFAULT_ABI): Set for n64 case.
2821 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2822 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2823 (ffi_closure_N32): New function.
2824 (.eh_frame): New section
2825 * src/mips/o32.S: Clean up comments.
2826 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2827 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2828 _MIPS_SIM == _ABIN32 throughout.
2829 (FFI_MIPS_STOP_HERE): New, use in place of
2830 ffi_stop_here.
2831 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2832 to support n32/n64 ABIs.
2833 (calc_n32_struct_flags): Rewrite.
2834 (calc_n32_return_struct_flags): Remove unused variable. Reverse
2835 position of flag bits.
2836 (ffi_prep_cif_machdep): Rewrite n32 portion.
2837 (ffi_call): Enable for n64. Add special handling for small structure
2838 return values.
2839 (ffi_prep_closure_loc): Add n32 and n64 support.
2840 (ffi_closure_mips_inner_O32): Add cast to silence warning.
2841 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2842
28432007-08-08 David Daney <ddaney@avtrex.com>
2844
2845 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2846 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2847 specifiers.
2848 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2849 * testsuite/libffi.call/cls_sint.c (main): Ditto.
2850 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2851 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2852 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2853 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2854 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2855 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2856 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2857 * testsuite/libffi.call/return_fl3.c (main): Ditto.
2858 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2859 * testsuite/libffi.call/nested_struct.c (main): Ditto.
2860 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2861 * testsuite/libffi.call/return_ll1.c (main): Ditto.
2862 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2863 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2864 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2865 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2866 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2867 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2868 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2869 * testsuite/libffi.call/cls_uint.c (main): Ditto.
2870 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2871 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2872 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2873 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2874 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2875 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2876 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2877 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2878 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2879
28802007-08-07 Andrew Haley <aph@redhat.com>
2881
2882 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2883 checkin.
2884
28852007-08-06 Andrew Haley <aph@redhat.com>
2886
2887 PR testsuite/32843
2888 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2889 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2890 FFI_TYPE_SINT32.
2891
28922007-08-02 David Daney <ddaney@avtrex.com>
2893
2894 * testsuite/libffi.call/return_ul.c (main): Define return type as
2895 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002896
Anthony Greenc6dddbd2009-10-04 08:11:33 -040028972007-07-30 Andrew Haley <aph@redhat.com>
2898
2899 PR testsuite/32843
2900 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
2901 signed/unsigned int8/16.
2902 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
2903 Use a jump table.
2904 Remove code to pop args from the stack after call.
2905 Special-case signed/unsigned int8/16.
2906 * testsuite/libffi.call/return_sc.c (main): Revert.
2907
29082007-07-26 Richard Guenther <rguenther@suse.de>
2909
2910 PR testsuite/32843
2911 * testsuite/libffi.call/return_sc.c (main): Verify call
2912 result as signed char, not ffi_arg.
2913
29142007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2915
2916 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
2917 * configure: Regenerate.
2918
29192007-07-11 David Daney <ddaney@avtrex.com>
2920
2921 * src/mips/ffi.c: Don't include sys/cachectl.h.
2922 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
2923 cacheflush().
2924
29252007-05-18 Aurelien Jarno <aurelien@aurel32.net>
2926
2927 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
2928 from (ffi_prep_closure): ... this.
2929 (FFI_INIT_TRAMPOLINE): Adjust.
2930
29312005-12-31 Phil Blundell <pb@reciva.com>
2932
Anthony Green0cfe60e2009-12-29 10:06:04 -05002933 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
2934 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002935 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
2936 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
2937 (FFI_CLOSURES): Enable closure support.
2938
29392007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
2940
Anthony Green0cfe60e2009-12-29 10:06:04 -05002941 * testsuite/libffi.call/cls_multi_ushort.c,
2942 testsuite/libffi.call/cls_align_uint16.c,
2943 testsuite/libffi.call/nested_struct1.c,
2944 testsuite/libffi.call/nested_struct3.c,
2945 testsuite/libffi.call/cls_7_1_byte.c,
2946 testsuite/libffi.call/cls_double.c,
2947 testsuite/libffi.call/nested_struct5.c,
2948 testsuite/libffi.call/nested_struct7.c,
2949 testsuite/libffi.call/cls_sint.c,
2950 testsuite/libffi.call/nested_struct9.c,
2951 testsuite/libffi.call/cls_20byte1.c,
2952 testsuite/libffi.call/cls_multi_sshortchar.c,
2953 testsuite/libffi.call/cls_align_sint64.c,
2954 testsuite/libffi.call/cls_3byte2.c,
2955 testsuite/libffi.call/cls_multi_schar.c,
2956 testsuite/libffi.call/cls_multi_uchar.c,
2957 testsuite/libffi.call/cls_19byte.c,
2958 testsuite/libffi.call/cls_9byte1.c,
2959 testsuite/libffi.call/cls_align_float.c,
2960 testsuite/libffi.call/closure_fn1.c,
2961 testsuite/libffi.call/problem1.c,
2962 testsuite/libffi.call/closure_fn3.c,
2963 testsuite/libffi.call/cls_sshort.c,
2964 testsuite/libffi.call/closure_fn5.c,
2965 testsuite/libffi.call/cls_align_double.c,
2966 testsuite/libffi.call/cls_2byte.c,
2967 testsuite/libffi.call/nested_struct.c,
2968 testsuite/libffi.call/nested_struct10.c,
2969 testsuite/libffi.call/cls_4byte.c,
2970 testsuite/libffi.call/cls_6byte.c,
2971 testsuite/libffi.call/cls_8byte.c,
2972 testsuite/libffi.call/cls_multi_sshort.c,
2973 testsuite/libffi.call/cls_align_uint32.c,
2974 testsuite/libffi.call/cls_align_sint16.c,
2975 testsuite/libffi.call/cls_float.c,
2976 testsuite/libffi.call/cls_20byte.c,
2977 testsuite/libffi.call/cls_5_1_byte.c,
2978 testsuite/libffi.call/nested_struct2.c,
2979 testsuite/libffi.call/cls_24byte.c,
2980 testsuite/libffi.call/nested_struct4.c,
2981 testsuite/libffi.call/nested_struct6.c,
2982 testsuite/libffi.call/cls_64byte.c,
2983 testsuite/libffi.call/nested_struct8.c,
2984 testsuite/libffi.call/cls_uint.c,
2985 testsuite/libffi.call/cls_multi_ushortchar.c,
2986 testsuite/libffi.call/cls_schar.c,
2987 testsuite/libffi.call/cls_uchar.c,
2988 testsuite/libffi.call/cls_align_uint64.c,
2989 testsuite/libffi.call/cls_ulonglong.c,
2990 testsuite/libffi.call/cls_align_longdouble.c,
2991 testsuite/libffi.call/cls_1_1byte.c,
2992 testsuite/libffi.call/cls_12byte.c,
2993 testsuite/libffi.call/cls_3_1byte.c,
2994 testsuite/libffi.call/cls_3byte1.c,
2995 testsuite/libffi.call/cls_4_1byte.c,
2996 testsuite/libffi.call/cls_6_1_byte.c,
2997 testsuite/libffi.call/cls_16byte.c,
2998 testsuite/libffi.call/cls_18byte.c,
2999 testsuite/libffi.call/closure_fn0.c,
3000 testsuite/libffi.call/cls_9byte2.c,
3001 testsuite/libffi.call/closure_fn2.c,
3002 testsuite/libffi.call/closure_fn4.c,
3003 testsuite/libffi.call/cls_ushort.c,
3004 testsuite/libffi.call/closure_fn6.c,
3005 testsuite/libffi.call/cls_5byte.c,
3006 testsuite/libffi.call/cls_align_pointer.c,
3007 testsuite/libffi.call/cls_7byte.c,
3008 testsuite/libffi.call/cls_align_sint32.c,
3009 testsuite/libffi.special/unwindtest_ffi_call.cc,
3010 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003011
30122007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3013
3014 * aclocal.m4: Regenerated.
3015
30162007-06-02 Paolo Bonzini <bonzini@gnu.org>
3017
3018 * configure: Regenerate.
3019
30202007-05-23 Steve Ellcey <sje@cup.hp.com>
3021
3022 * Makefile.in: Regenerate.
3023 * configure: Regenerate.
3024 * aclocal.m4: Regenerate.
3025 * include/Makefile.in: Regenerate.
3026 * testsuite/Makefile.in: Regenerate.
3027
30282007-05-10 Roman Zippel <zippel@linux-m68k.org>
3029
3030 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3031 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3032 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3033 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3034 (FFI_CLOSURES): Enable closure support.
3035
30362007-05-10 Roman Zippel <zippel@linux-m68k.org>
3037
3038 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3039 * configure: Regenerate.
3040 * fficonfig.h.in: Regenerate.
3041 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3042 CFI_OFFSET,CFI_DEF_CFA): New macros.
3043 (ffi_call_SYSV): Add callframe annotation.
3044
30452007-05-10 Roman Zippel <zippel@linux-m68k.org>
3046
3047 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3048 numerous test suite failures.
3049 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3050
30512007-04-11 Paolo Bonzini <bonzini@gnu.org>
3052
3053 * Makefile.am (EXTRA_DIST): Bring up to date.
3054 * Makefile.in: Regenerate.
3055 * src/frv/eabi.S: Remove RCS keyword.
3056
30572007-04-06 Richard Henderson <rth@redhat.com>
3058
3059 * configure.ac: Tidy target case.
3060 (HAVE_LONG_DOUBLE): Allow the target to override.
3061 * configure: Regenerate.
3062 * include/ffi.h.in: Don't define ffi_type_foo if
3063 LIBFFI_HIDE_BASIC_TYPES is defined.
3064 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3065 to ffi_type_double.
3066 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3067 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3068 (ffi_type_longdouble): Special case for Alpha. Don't define
3069 if long double == double.
3070
3071 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3072 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3073 (ffi_call, ffi_closure_osf_inner): Likewise.
3074 (ffi_closure_osf_inner): Likewise. Mark hidden.
3075 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3076 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3077 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3078 (load_table): Handle 128-bit long double.
3079
3080 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3081
30822007-04-06 Tom Tromey <tromey@redhat.com>
3083
3084 PR libffi/31491:
3085 * README: Fixed bug in example.
3086
30872007-04-03 Jakub Jelinek <jakub@redhat.com>
3088
3089 * src/closures.c: Include sys/statfs.h.
3090 (_GNU_SOURCE): Define on Linux.
3091 (FFI_MMAP_EXEC_SELINUX): Define.
3092 (selinux_enabled): New variable.
3093 (selinux_enabled_check): New function.
3094 (is_selinux_enabled): Define.
3095 (dlmmap): Use it.
3096
30972007-03-24 Uros Bizjak <ubizjak@gmail.com>
3098
3099 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3100 Use 'volatile float sum' to create sum of floats to avoid false
3101 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003102 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003103
31042007-03-08 Alexandre Oliva <aoliva@redhat.com>
3105
3106 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3107 patch.
3108 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3109
31102007-03-07 Alexandre Oliva <aoliva@redhat.com>
3111
3112 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3113 (ffi_prep_closure_loc): New.
3114 (ffi_prep_raw_closure_loc): New.
3115 (ffi_prep_java_raw_closure_loc): New.
3116 * src/closures.c: New file.
3117 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3118 Replace sflags with exec_offset.
3119 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3120 sub_segment_exec_offset): New macros.
3121 (get_segment_flags, set_segment_flags, check_segment_merge): New
3122 macros.
3123 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3124 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3125 destroy_mspace): Use new macros.
3126 (sys_alloc): Silence warning.
3127 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3128 * Makefile.in: Rebuilt.
3129 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3130 terms of ffi_prep_closure_loc.
3131 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3132 from...
3133 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3134 renamed version.
3135 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3136 adjusted from...
3137 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3138 the renamed version.
3139 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3140 (ffi_prep_closure): ... this.
3141 * src/pa/ffi.c: Likewise.
3142 * src/cris/ffi.c: Likewise. Adjust.
3143 * src/frv/ffi.c: Likewise.
3144 * src/ia64/ffi.c: Likewise.
3145 * src/mips/ffi.c: Likewise.
3146 * src/powerpc/ffi_darwin.c: Likewise.
3147 * src/s390/ffi.c: Likewise.
3148 * src/sh/ffi.c: Likewise.
3149 * src/sh64/ffi.c: Likewise.
3150 * src/sparc/ffi.c: Likewise.
3151 * src/x86/ffi64.c: Likewise.
3152 * src/x86/ffi.c: Likewise.
3153 (FFI_INIT_TRAMPOLINE): Adjust.
3154 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3155 (ffi_prep_raw_closure): ... this.
3156 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3157 (ffi_prep_closure): ... this.
3158 (flush_icache): Adjust.
3159
31602007-03-07 Alexandre Oliva <aoliva@redhat.com>
3161
3162 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3163 Lea's malloc.
3164
31652007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3166
3167 * Makefile.am: Add dummy install-pdf target.
3168 * Makefile.in: Regenerate
3169
31702007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
3171
3172 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3173 ffi_closure_helper_SYSV): Add long double handling.
3174
31752007-02-02 Jakub Jelinek <jakub@redhat.com>
3176
3177 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3178 immediately after bctrl instruction.
3179
31802007-01-18 Alexandre Oliva <aoliva@redhat.com>
3181
3182 * Makefile.am (all-recursive, install-recursive,
3183 mostlyclean-recursive, clean-recursive, distclean-recursive,
3184 maintainer-clean-recursive): Add missing targets.
3185 * Makefile.in: Rebuilt.
3186
31872006-12-14 Andreas Tobler <a.tobler@schweiz.org>
3188
3189 * configure.ac: Add TARGET for x86_64-*-darwin*.
3190 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3191 for X86_DARWIN.
3192 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3193 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3194 * configure: Regenerate.
3195 * Makefile.in: Regenerate.
3196 * include/Makefile.in: Regenerate.
3197 * testsuite/Makefile.in: Regenerate.
3198 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3199 ffi_call only.
3200
32012006-12-13 Andreas Tobler <a.tobler@schweiz.org>
3202
3203 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3204 Makefile.am.
3205
32062006-10-31 Geoffrey Keating <geoffk@apple.com>
3207
3208 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3209 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3210 Darwin.
3211 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3212 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3213
32142006-10-10 Paolo Bonzini <bonzini@gnu.org>
3215 Sandro Tolaini <tolaini@libero.it>
3216
Anthony Green0cfe60e2009-12-29 10:06:04 -05003217 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003218 conditional.
3219 * configure: Regenerated.
3220 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3221 (EXTRA_DIST): Add src/x86/darwin.S.
3222 * Makefile.in: Regenerated.
3223 * include/Makefile.in: Regenerated.
3224 * testsuite/Makefile.in: Regenerated.
3225
3226 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3227 X86_WIN32, and additionally align stack to 16 bytes.
3228 * src/x86/darwin.S: New, based on sysv.S.
3229 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3230
32312006-09-12 David Daney <ddaney@avtrex.com>
3232
3233 PR libffi/23935
3234 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3235 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3236 * aclocal.m4: Regenerated for automake 1.9.6.
3237 * Makefile.in: Regenerated.
3238 * include/Makefile.in: Regenerated.
3239 * testsuite/Makefile.in: Regenerated.
3240
32412006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3242
3243 * include/ffi_common.h (struct): Revert accidental commit.
3244
32452006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3246
3247 * include/ffi_common.h: Remove lint directives.
3248 * include/ffi.h.in: Likewise.
3249
32502006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
3251
3252 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3253 for 32-bit architectures.
3254 * testsuite/libffi.call/return_ul.c: New test case.
3255
32562006-07-19 David Daney <ddaney@avtrex.com>
3257
3258 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3259 xfail remains for mips64.
3260
32612006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3262
3263 * Makefile.am: Add install-html target. Add install-html to .PHONY
3264 * Makefile.in: Regenerate.
3265 * aclocal.m4: Regenerate.
3266 * include/Makefile.in: Regenerate.
3267 * testsuite/Makefile.in: Regenerate.
3268
32692006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3270
3271 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3272 stack slot.
3273
32742006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
3275
3276 * README: Remove notice about 'Crazy Comments'.
3277 * src/debug.c: Remove lint directives. Cleanup white spaces.
3278 * src/java_raw_api.c: Likewise.
3279 * src/prep_cif.c: Likewise.
3280 * src/raw_api.c: Likewise.
3281 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3282 to the testsuite.
3283 * src/arm/ffi.c: Remove lint directives.
3284 * src/m32r/ffi.c: Likewise.
3285 * src/pa/ffi.c: Likewise.
3286 * src/powerpc/ffi.c: Likewise.
3287 * src/powerpc/ffi_darwin.c: Likewise.
3288 * src/sh/ffi.c: Likewise.
3289 * src/sh64/ffi.c: Likewise.
3290 * src/x86/ffi.c: Likewise.
3291 * testsuite/libffi.call/float2.c: Likewise.
3292 * testsuite/libffi.call/promotion.c: Likewise.
3293 * testsuite/libffi.call/struct1.c: Likewise.
3294
32952006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
3296
3297 * src/pa/hpux32.S: Correct unwind offset calculation for
3298 ffi_closure_pa32.
3299 * src/pa/linux.S: Likewise.
3300
33012006-04-12 James E Wilson <wilson@specifix.com>
3302
3303 PR libgcj/26483
3304 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3305 (hfa_type_load): Call stf_spill.
3306 (hfa_type_store): Call ldf_fill.
3307 (ffi_call): Adjust calls to above routines. Add local temps for
3308 macro result.
3309
33102006-04-10 Matthias Klose <doko@debian.org>
3311
3312 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3313 directory names containing underscores.
3314
33152006-04-07 James E Wilson <wilson@specifix.com>
3316
3317 * testsuite/libffi.call/float4.c: New testcase.
3318
33192006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3320 Andreas Tobler <a.tobler@schweiz.ch>
3321
3322 * Makefile.am: Add PA_HPUX port.
3323 * Makefile.in: Regenerate.
3324 * include/Makefile.in: Likewise.
3325 * testsuite/Makefile.in: Likewise.
3326 * configure.ac: Add PA_HPUX rules.
3327 * configure: Regenerate.
3328 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3329 Add PA_HPUX and PA64_HPUX.
3330 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3331 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3332 (FFI_TYPE_SMALL_STRUCT2): Define.
3333 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3334 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3335 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3336 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3337 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3338 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3339 * src/pa/ffi.c (ROUND_DOWN): Delete.
3340 (fldw, fstw, fldd, fstd): Use '__asm__'.
3341 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3342 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3343 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3344 Simplify incrementing of stack slot variable. Change type of local
3345 'n' to unsigned int.
3346 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3347 double on PA_HPUX.
3348 (ffi_prep_cif_machdep): Likewise.
3349 (ffi_call): Likewise.
3350 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3351 return type to ffi_status. Simplify incrementing of stack slot
3352 variable. Only copy floating point argument registers when PA_LINUX
3353 is true. Reformat debug statement.
3354 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3355 FFI_TYPE_SMALL_STRUCT8.
3356 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3357 declaration.
3358 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3359 Add nops to cache flush. Add trampoline for PA_HPUX.
3360 * src/pa/hpux32.S: New file.
3361 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3362 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3363 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3364 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3365 argument type checks so that common argument types appear first.
3366 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3367 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3368
33692006-03-24 Alan Modra <amodra@bigpond.net.au>
3370
3371 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3372 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3373 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3374 FFI_TYPE_LONGDOUBLE.
3375 (ffi_prep_args64): Assert using IBM extended double.
3376 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3377 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3378 (ffi_call): Handle FFI_LINUX.
3379 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3380 gpr3 return pointer as for struct return. Handle FFI_LINUX
3381 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3382 unnecessarily.
3383 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3384 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3385 Don't use r6 as pointer to results, instead use sp offset. Don't
3386 make a special call to load lr with case table address, instead
3387 use offset from previous call.
3388 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3389 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3390 return.
3391
33922006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
3393
3394 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3395 passed with FP registers correctly.
3396 (ffi_closure_helper_SYSV): Likewise.
3397 * src/sh64/sysv.S: Likewise.
3398
33992006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
3400
3401 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3402 args and userdata unused.
3403 (closure_test_fn1): Mark cif and userdata unused.
3404 (main): Remove unused res.
3405
34062006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
3407
3408 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3409 -O2, -O3, -Os and the warning flags -W -Wall.
3410 * testsuite/libffi.special/special.exp: Likewise.
3411 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3412 unused parameter unused for gcc or else do nothing.
3413 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3414 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3415 and userdata unused.
3416 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3417 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3418 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3419 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3420 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3421 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3422 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3423 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3424 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3425 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3426 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3427 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3428 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3429 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3430 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3431 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3432 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3433 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3434 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3435 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3436 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3437 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3438 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3439 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3440 Likewise.
3441 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3442 Likewise.
3443 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3444 Likewise.
3445 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3446 void* to avoid compiler warning.
3447 (main): Likewise.
3448 (cls_struct_align_gn): Mark cif and userdata unused.
3449 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3450 Likewise.
3451 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3452 Likewise.
3453 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3454 Likewise.
3455 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3456 Likewise.
3457 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3458 Likewise.
3459 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3460 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3461 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3462 data unused.
3463 (main): Cast res_call to silence gcc.
3464 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3465 data unused.
3466 (main): Cast res_call to silence gcc.
3467 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3468 and data unused.
3469 (main): Cast res_call to silence gcc.
3470 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3471 data unused.
3472 (main): Cast res_call to silence gcc.
3473 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3474 data unused.
3475 (main): Cast res_call to silence gcc.
3476 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3477 and data unused.
3478 (main): Cast res_call to silence gcc.
3479 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3480 userdata unused.
3481 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3482 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3483 userdata unused.
3484 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3485 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3486 userdata unused.
3487 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3488 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3489 userdata unused.
3490 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3491 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3492 userdata unused.
3493 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3494 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3495 and userdata unused.
3496 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3497 userdata unused.
3498 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3499 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3500 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3501 Cleanup white spaces.
3502 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3503 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3504 cif and userdata unused.
3505 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3506 Likewise.
3507 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3508 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3509 formatters to silence gcc.
3510 (B_gn): Mark cif and userdata unused.
3511 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3512 unused.
3513 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3514 (B_gn): Mark cif and userdata unused.
3515 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3516 unused.
3517 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3518 (B_gn): Mark cif and userdata unused.
3519 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3520 unused.
3521 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3522 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3523 * testsuite/libffi.call/problem1.c (stub): Likewise.
3524 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3525 gcc.
3526 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3527 in the last commit for this test case in the test case itself.
3528 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3529 unused.
3530 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3531 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3532 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3533 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3534 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3535 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3536
35372006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
3538
3539 * src/sh/sysv.S: Fix register numbers in the FDE for
3540 ffi_closure_SYSV.
3541
35422006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
3543
3544 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3545 declaration to avoid a false negative on ix86. See PR323.
3546
35472006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3548
3549 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3550 and cast integer to void * if needed. Update the pointer to
3551 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003552
Anthony Greenc6dddbd2009-10-04 08:11:33 -040035532006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
3554
3555 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3556 is fixed.
3557 * testsuite/libffi.call/nested_struct4.c: Likewise.
3558
35592006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
3560
3561 * testsuite/libffi.call/return_dbl.c: New test case.
3562 * testsuite/libffi.call/return_dbl1.c: Likewise.
3563 * testsuite/libffi.call/return_dbl2.c: Likewise.
3564 * testsuite/libffi.call/return_fl.c: Likewise.
3565 * testsuite/libffi.call/return_fl1.c: Likewise.
3566 * testsuite/libffi.call/return_fl2.c: Likewise.
3567 * testsuite/libffi.call/return_fl3.c: Likewise.
3568 * testsuite/libffi.call/closure_fn6.c: Likewise.
3569
3570 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3571 definition.
3572 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3573 here to be used by other test cases too.
3574
3575 * testsuite/libffi.call/nested_struct10.c: New test case.
3576 * testsuite/libffi.call/nested_struct9.c: Likewise.
3577 * testsuite/libffi.call/nested_struct8.c: Likewise.
3578 * testsuite/libffi.call/nested_struct7.c: Likewise.
3579 * testsuite/libffi.call/nested_struct6.c: Likewise.
3580 * testsuite/libffi.call/nested_struct5.c: Likewise.
3581 * testsuite/libffi.call/nested_struct4.c: Likewise.
3582
35832006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3584
3585 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3586 * configure: Rebuilt.
3587
35882006-01-18 Jakub Jelinek <jakub@redhat.com>
3589
3590 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3591 instead do the shifting inline.
3592 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3593 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3594 and 8 byte structs, for the remaining struct sizes don't call
3595 __lshrdi3, instead do the shifting inline.
3596
35972005-12-07 Thiemo Seufer <ths@networkno.de>
3598
3599 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3600 missing parentheses.
3601 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3602 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3603 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3604 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3605 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3606 FA_0_0_OFF2.
3607 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3608 endianness bugs.
3609 (ffi_prep_closure): Improve trampoline instruction scheduling.
3610 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3611
36122005-12-03 Alan Modra <amodra@bigpond.net.au>
3613
3614 * src/powerpc/ffi.c: Formatting.
3615 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3616 (ffi_prep_args64): Likewise.
3617
36182005-09-30 Geoffrey Keating <geoffk@apple.com>
3619
3620 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3621 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3622
36232005-09-26 Tom Tromey <tromey@redhat.com>
3624
3625 * testsuite/libffi.call/float1.c (value_type): New typedef.
3626 (CANARY): New define.
3627 (main): Check for result buffer overflow.
3628 * src/powerpc/linux64.S: Handle linux64 long double returns.
3629 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3630 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3631
36322005-08-25 Alan Modra <amodra@bigpond.net.au>
3633
3634 PR target/23404
3635 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3636 homed fp args.
3637 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3638
36392005-08-11 Jakub Jelinek <jakub@redhat.com>
3640
3641 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3642 (AH_BOTTOM): Add FFI_HIDDEN definition.
3643 * configure: Rebuilt.
3644 * fficonfig.h.in: Rebuilt.
3645 * src/powerpc/ffi.c (hidden): Remove.
3646 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3647 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3648 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3649 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3650 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3651 add FFI_HIDDEN to its prototype.
3652 (ffi_closure_SYSV_inner): New.
3653 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3654 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3655
36562005-08-10 Alfred M. Szmidt <ams@gnu.org>
3657
3658 PR libffi/21819:
3659 * configure: Rebuilt.
3660 * configure.ac: Handle i*86-*-gnu*.
3661
36622005-08-09 Jakub Jelinek <jakub@redhat.com>
3663
3664 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3665 DW_CFA_offset_extended_sf rather than
3666 DW_CFA_GNU_negative_offset_extended.
3667 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3668
36692005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3670
3671 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3672 on sh3.
3673 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3674 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3675 partially on register.
3676 (ffi_closure_helper_SYSV): Likewise.
3677 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3678
36792005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3680
3681 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3682 Remove empty line.
3683 * src/sh64/ffi.c (simple_type): Remove.
3684 (return_type): Handle small structures correctly.
3685 (ffi_prep_args): Likewise.
3686 (ffi_call): Likewise.
3687 (ffi_closure_helper_SYSV): Likewise.
3688 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3689 Emit position independent code if PIC and remove wrong datalabel
3690 prefixes from EH data.
3691
36922005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
3693
3694 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3695 * Makefile.in: Regenerate.
3696 * include/Makefile.in: Likewise.
3697 * testsuite/Makefile.in: Likewise.
3698 * configure.ac: Add POWERPC_FREEBSD rules.
3699 * configure: Regenerate.
3700 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3701 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3702 * src/powerpc/ffi.c: Add flags to handle small structure returns
3703 in ffi_call_SYSV.
3704 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3705 Aka FFI_SYSV.
3706 (ffi_closure_helper_SYSV): Likewise.
3707 * src/powerpc/ppc_closure.S: Add return types for small structures.
3708 * src/powerpc/sysv.S: Add bits to handle small structures for
3709 final SYSV 4 ABI.
3710
37112005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3712
3713 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3714 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3715 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3716
37172005-07-05 Randolph Chung <tausq@debian.org>
3718
3719 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3720 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3721 structures. Kill compilation warnings.
3722 (ffi_closure_inner_LINUX): Print return values as hex in debug
3723 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3724 Properly handle 5-7 byte structure returns.
3725 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3726 (FFI_TYPE_SMALL_STRUCT2): Remove.
3727 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3728 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3729 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3730 (checksmst1, checksmst2): Remove.
3731 (checksmst3): Optimize handling of 3-byte struct returns.
3732 (checksmst567): Properly handle 5-7 byte struct returns.
3733
37342005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3735
3736 PR libgcj/21943
3737 * src/mips/n32.S: Enforce PIC code.
3738 * src/mips/o32.S: Likewise.
3739
37402005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3741
3742 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3743 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003744
Anthony Greenc6dddbd2009-10-04 08:11:33 -040037452005-06-01 Alan Modra <amodra@bigpond.net.au>
3746
3747 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3748 to call ffi_closure_helper_SYSV. Append @local instead.
3749 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3750
37512005-05-17 Kelley Cook <kcook@gcc.gnu.org>
3752
3753 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3754 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3755 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3756 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3757 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003758
Anthony Greenc6dddbd2009-10-04 08:11:33 -040037592005-05-09 Mike Stump <mrs@apple.com>
3760
3761 * configure: Regenerate.
3762
37632005-05-08 Richard Henderson <rth@redhat.com>
3764
3765 PR libffi/21285
3766 * src/alpha/osf.S: Update unwind into to match code.
3767
37682005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
3769 Richard Henderson <rth@redhat.com>
3770
3771 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3772 bit 11 of flags.
3773 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3774 (ffi_prep_closure): Set carry bit if sse-used flag set.
3775 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3776 Only load sse registers if ssecount non-zero.
3777 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3778
37792005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3780
3781 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3782 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3783 * configure: Regenerate.
3784
37852005-04-20 Hans-Peter Nilsson <hp@axis.com>
3786
3787 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3788 have Tcl8.3-compatible intermediate variable.
3789
Anthony Green0cfe60e2009-12-29 10:06:04 -050037902005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003791 Hans-Peter Nilsson <hp@axis.com>
3792
3793 * Makefile.am: Add CRIS support.
3794 * configure.ac: Likewise.
3795 * Makefile.in, configure, testsuite/Makefile.in,
3796 include/Makefile.in: Regenerate.
3797 * src/cris: New directory.
3798 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3799 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3800
3801 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3802 \r?\n in output tests.
3803
38042005-04-12 Mike Stump <mrs@apple.com>
3805
3806 * configure: Regenerate.
3807
38082005-03-30 Hans Boehm <Hans.Boehm@hp.com>
3809
3810 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003811
Anthony Greenc6dddbd2009-10-04 08:11:33 -040038122005-03-30 Steve Ellcey <sje@cup.hp.com>
3813
3814 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3815 (ffi_sarg) Ditto.
3816 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3817 to 64 bits in ILP32 mode.
3818 Load 64 bits even for short data.
3819
38202005-03-23 Mike Stump <mrs@apple.com>
3821
3822 * src/powerpc/darwin.S: Update for -m64 multilib.
3823 * src/powerpc/darwin_closure.S: Likewise.
3824
38252005-03-21 Zack Weinberg <zack@codesourcery.com>
3826
3827 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3828 Do not set tool_include_dir.
3829 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3830 Regenerate.
3831 * include/Makefile.am: Set gcc_version and toollibffidir.
3832 * include/Makefile.in: Regenerate.
3833
38342005-02-22 Andrew Haley <aph@redhat.com>
3835
3836 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3837 odd-numbered register pairs for 64-bit integer types.
3838
38392005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
3840
3841 PR libffi/20104
3842 * testsuite/libffi.call/return_ll1.c: New test case.
3843
38442005-02-11 Janis Johnson <janis187@us.ibm.com>
3845
3846 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3847 * testsuite/libffi.call/float.c: Ditto.
3848 * testsuite/libffi.call/float2.c: Ditto.
3849 * testsuite/libffi.call/float3.c: Ditto.
3850
38512005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
3852
3853 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3854
38552005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3856
3857 * testsuite/libffi.special/special.exp (cxx_options): Add
3858 -shared-libgcc.
3859
38602004-12-31 Richard Henderson <rth@redhat.com>
3861
3862 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3863 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
3864 offset parameters with a type parameter; deduce size and structure
3865 alignment. Update all users.
3866
38672004-12-31 Richard Henderson <rth@redhat.com>
3868
3869 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3870 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
3871 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
3872 into ffi_prep_closure.
3873 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3874 from scratch.
3875
38762004-12-27 Richard Henderson <rth@redhat.com>
3877
3878 * src/x86/unix64.S: Fix typo in unwind info.
3879
38802004-12-25 Richard Henderson <rth@redhat.com>
3881
3882 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3883 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3884 (merge_classes): Check for it.
3885 (SSE_CLASS_P): New.
3886 (classify_argument): Pass byte_offset by value; perform all updates
3887 inside struct case.
3888 (examine_argument): Add classes argument; handle
3889 X86_64_COMPLEX_X87_CLASS.
3890 (ffi_prep_args): Merge into ...
3891 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
3892 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3893 (ffi_fill_return_value): Remove.
3894 (ffi_prep_closure): Remove dead assert.
3895 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
3896 Rewrite to use struct register_args instead of va_list. Create
3897 flags for handling structure returns.
3898 * src/x86/unix64.S: Remove dead strings.
3899 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
3900 stack frame with ffi_call. Handle structure returns properly.
3901 (float2sse, floatfloat2sse, double2sse): Remove.
3902 (sse2float, sse2double, sse2floatfloat): Remove.
3903 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
3904 to handle structure returns properly.
3905
39062004-12-08 David Edelsohn <edelsohn@gnu.org>
3907
3908 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
3909 PICFLAG.
3910 * Makefile.in: Regenerated.
3911
39122004-12-02 Richard Sandiford <rsandifo@redhat.com>
3913
3914 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
3915 * configure, aclocal.m4, Makefile.in: Regenerate.
3916 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
3917
39182004-11-29 Kelley Cook <kcook@gcc.gnu.org>
3919
3920 * configure: Regenerate for libtool change.
3921
39222004-11-25 Kelley Cook <kcook@gcc.gnu.org>
3923
3924 * configure: Regenerate for libtool reversion.
3925
39262004-11-24 Kelley Cook <kcook@gcc.gnu.org>
3927
3928 * configure: Regenerate for libtool change.
3929
39302004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3931
3932 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
3933
39342004-11-23 Richard Sandiford <rsandifo@redhat.com>
3935
3936 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
3937 of jal. Use an absolute encoding for the frame information.
3938
39392004-11-23 Kelley Cook <kcook@gcc.gnu.org>
3940
3941 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
3942 * acinclude.m4: Delete logic for sincludes.
3943 * aclocal.m4, Makefile.in, configure: Regenerate.
3944 * include/Makefile: Likewise.
3945 * testsuite/Makefile: Likewise.
3946
39472004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3948
3949 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
3950 on a 8-byte boundary.
3951 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
3952
39532004-10-27 Richard Earnshaw <rearnsha@arm.com>
3954
3955 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
3956 long long values. Round stack allocation to a multiple of 8 bytes
3957 for ATPCS compatibility.
3958 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
3959 names. Handle returning long long types. Add Thumb and interworking
3960 support. Improve soft-float code.
3961
39622004-10-27 Richard Earnshaw <rearnsha@arm.com>
3963
3964 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
3965 (libffi_exit): New function.
3966 (libffi_init): Build the testglue wrapper if needed.
3967
39682004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3969
3970 PR other/18138
3971 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
3972
39732004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3974
3975 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
3976
39772004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3978
3979 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
3980 * testsuite/libffi.call/float3.c: New test case.
3981
39822004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
3983
3984 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
3985 the function returning a structure pointed with R2.
3986 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
3987 the structure return value if T bit set. Emit position
3988 independent code and EH data if PIC.
3989
39902004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3991
3992 * Makefile.am: Add m32r support.
3993 * configure.ac: Likewise.
3994 * Makefile.in: Regenerate.
3995 * confiugre: Regenerate.
3996 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
3997 (uint64, sint64, double, longdouble)
3998 * src/m32r: New directory.
3999 * src/m32r/ffi.c: New file.
4000 * src/m32r/sysv.S: Likewise.
4001 * src/m32r/ffitarget.h: Likewise.
4002
40032004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
4004
4005 * testsuite/libffi.call/negint.c: New test case.
4006
40072004-09-14 H.J. Lu <hongjiu.lu@intel.com>
4008
4009 PR libgcj/17465
4010 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4011 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4012 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4013 DYLD_LIBRARY_PATH.
4014
40152004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4016
4017 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4018 * testsuite/libffi.call/promotion.c: Likewise.
4019 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4020 whitespaces.
4021 * testsuite/libffi.call/return_sc.c: Likewise.
4022 * testsuite/libffi.call/return_uc.c: Likewise.
4023
40242004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4025
4026 * src/powerpc/darwin.S: Fix comments and identation.
4027 * src/powerpc/darwin_closure.S: Likewise.
4028
40292004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4030
4031 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4032 (ffi_prep_args): Handle longdouble arguments.
4033 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4034 longdouble.
4035 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4036 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4037 values.
4038 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4039 * src/types.c: Defined longdouble size and alignment for darwin.
4040
40412004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4042
4043 * src/powerpc/aix.S: Remove whitespaces.
4044 * src/powerpc/aix_closure.S: Likewise.
4045 * src/powerpc/asm.h: Likewise.
4046 * src/powerpc/ffi.c: Likewise.
4047 * src/powerpc/ffitarget.h: Likewise.
4048 * src/powerpc/linux64.S: Likewise.
4049 * src/powerpc/linux64_closure.S: Likewise.
4050 * src/powerpc/ppc_closure.S: Likewise.
4051 * src/powerpc/sysv.S: Likewise.
4052
40532004-08-30 Anthony Green <green@redhat.com>
4054
4055 * Makefile.am: Add frv support.
4056 * Makefile.in, testsuite/Makefile.in: Rebuilt.
4057 * configure.ac: Read configure.host.
4058 * configure.in: Read configure.host.
4059 * configure.host: New file. frv-elf needs libgloss.
4060 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
4061 alignment. This is needed to frv and shouldn't harm the others.
4062 * include/ffi_common.h (ALIGN_DOWN): New macro.
4063 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4064
40652004-08-24 David Daney <daney@avtrex.com>
4066
4067 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4068 * testsuite/libffi.call/closure_fn1.c: Likewise.
4069 * testsuite/libffi.call/closure_fn2.c Likewise.
4070 * testsuite/libffi.call/closure_fn3.c: Likewise.
4071 * testsuite/libffi.call/closure_fn4.c: Likewise.
4072 * testsuite/libffi.call/closure_fn5.c: Likewise.
4073 * testsuite/libffi.call/cls_18byte.c: Likewise.
4074 * testsuite/libffi.call/cls_19byte.c: Likewise.
4075 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4076 * testsuite/libffi.call/cls_20byte.c: Likewise.
4077 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4078 * testsuite/libffi.call/cls_24byte.c: Likewise.
4079 * testsuite/libffi.call/cls_2byte.c: Likewise.
4080 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4081 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4082 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4083 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4084 * testsuite/libffi.call/cls_4byte.c: Likewise.
4085 * testsuite/libffi.call/cls_64byte.c: Likewise.
4086 * testsuite/libffi.call/cls_6byte.c: Likewise.
4087 * testsuite/libffi.call/cls_7byte.c: Likewise.
4088 * testsuite/libffi.call/cls_8byte.c: Likewise.
4089 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4090 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4091 * testsuite/libffi.call/cls_align_double.c: Likewise.
4092 * testsuite/libffi.call/cls_align_float.c: Likewise.
4093 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4094 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4095 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4096 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4097 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4098 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4099 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4100 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4101 * testsuite/libffi.call/cls_double.c: Likewise.
4102 * testsuite/libffi.call/cls_float.c: Likewise.
4103 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4104 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4105 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4106 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4107 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4108 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4109 * testsuite/libffi.call/cls_schar.c: Likewise.
4110 * testsuite/libffi.call/cls_sint.c: Likewise.
4111 * testsuite/libffi.call/cls_sshort.c: Likewise.
4112 * testsuite/libffi.call/cls_uchar.c: Likewise.
4113 * testsuite/libffi.call/cls_uint.c: Likewise.
4114 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4115 * testsuite/libffi.call/cls_ushort.c: Likewise.
4116 * testsuite/libffi.call/nested_struct.c: Likewise.
4117 * testsuite/libffi.call/nested_struct1.c: Likewise.
4118 * testsuite/libffi.call/nested_struct2.c: Likewise.
4119 * testsuite/libffi.call/nested_struct3.c: Likewise.
4120 * testsuite/libffi.call/problem1.c: Likewise.
4121 * testsuite/libffi.special/unwindtest.cc: Likewise.
4122 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4123 to zero.
4124 * testsuite/libffi.call/cls_16byte.c: Likewise.
4125 * testsuite/libffi.call/cls_5byte.c: Likewise.
4126
41272004-08-23 David Daney <daney@avtrex.com>
4128
4129 PR libgcj/13141
4130 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4131 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4132 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4133 parameters and return types.
4134 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4135 (ffi_prep_closure): Ditto.
4136 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4137 alignment calculations.
4138 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4139 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4140
41412004-08-14 Casey Marshall <csm@gnu.org>
4142
4143 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4144 contain `FFI_TYPE_UINT64' as return type for any 64-bit
4145 integer (O32 ABI only).
4146 (ffi_prep_closure): new function.
4147 (ffi_closure_mips_inner_O32): new function.
4148 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
4149 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4150 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4151 64 bit integers correctly.
4152 (ffi_closure_O32): new function.
4153 Added DWARF-2 unwind info for both functions.
4154
41552004-08-10 Andrew Haley <aph@redhat.com>
4156
4157 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4158
41592004-08-01 Robert Millan <robertmh@gnu.org>
4160
4161 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4162 * configure: Regenerate.
4163
41642004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
4165
4166 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4167 and mmap() explicitly instead of relying on preset autoconf cache
4168 variables.
4169 * aclocal.m4: Regenerate.
4170 * configure: Regenerate.
4171
41722004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4173
4174 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4175 (ffi_check_float_struct): Remove unused prototype.
4176
41772004-06-30 Geoffrey Keating <geoffk@apple.com>
4178
4179 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4180 character on Darwin, use '\n\t' instead.
4181
41822004-06-26 Matthias Klose <doko@debian.org>
4183
4184 * libtool-version: Fix typo in revision/age.
4185
41862004-06-17 Matthias Klose <doko@debian.org>
4187
4188 * libtool-version: New.
4189 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4190 * Makefile.in: Regenerate.
4191
41922004-06-15 Paolo Bonzini <bonzini@gnu.org>
4193
4194 * Makefile.am: Remove useless multilib rules.
4195 * Makefile.in: Regenerate.
4196 * aclocal.m4: Regenerate with automake 1.8.5.
4197 * configure.ac: Remove useless multilib configury.
4198 * configure: Regenerate.
4199
42002004-06-15 Paolo Bonzini <bonzini@gnu.org>
4201
4202 * .cvsignore: New file.
4203
42042004-06-10 Jakub Jelinek <jakub@redhat.com>
4205
4206 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4207 fp_done.
4208 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4209 changed from 8.
4210
42112004-06-06 Sean McNeil <sean@mcneil.com>
4212
4213 * configure.ac: Add x86_64-*-freebsd* support.
4214 * configure: Regenerate.
4215
42162004-04-26 Joe Buck <jbuck@welsh-buck.org>
4217
4218 Bug 15093
4219 * configure.ac: Test for existence of mmap and sys/mman.h before
4220 checking blacklist. Fix suggested by Jim Wilson.
4221 * configure: Regenerate.
4222
42232004-04-26 Matt Austern <austern@apple.com>
4224
4225 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4226 FDE location.
4227 * src/powerpc/darwin_closure.S: Likewise.
4228
42292004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
4230
4231 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4232 error. Reported by Thomas Heller <theller@python.net>.
4233 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4234 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4235
42362004-03-20 Matthias Klose <doko@debian.org>
4237
4238 * src/pa/linux.S: Fix typo.
4239
42402004-03-19 Matthias Klose <doko@debian.org>
4241
4242 * Makefile.am: Update.
4243 * Makefile.in: Regenerate.
4244 * src/pa/ffi.h.in: Remove.
4245 * src/pa/ffitarget.h: New file.
4246
42472004-02-10 Randolph Chung <tausq@debian.org>
4248
4249 * Makefile.am: Add PA support.
4250 * Makefile.in: Regenerate.
4251 * include/Makefile.in: Regenerate.
4252 * configure.ac: Add PA target.
4253 * configure: Regenerate.
4254 * src/pa/ffi.c: New file.
4255 * src/pa/ffi.h.in: Add PA support.
4256 * src/pa/linux.S: New file.
4257 * prep_cif.c: Add PA support.
4258
42592004-03-16 Hosaka Yuji <hos@tamanegi.org>
4260
4261 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4262 double.
4263 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4264 with ecif->cif->flags.
4265 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4266 with cif->flags.
4267 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4268 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4269 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4270 sc_retstruct2b): Add for 1 or 2-bytes struct case.
4271
42722004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4273
4274 * configure.in: Rename file to ...
4275 * configure.ac: ... this.
4276 * fficonfig.h.in: Regenerate.
4277 * Makefile.in: Regenerate.
4278 * include/Makefile.in: Regenerate.
4279 * testsuite/Makefile.in: Regenerate.
4280
42812004-03-12 Matt Austern <austern@apple.com>
4282
4283 * src/powerpc/darwin.S: Fix EH information so it corresponds to
4284 changes in EH format resulting from addition of linkonce support.
4285 * src/powerpc/darwin_closure.S: Likewise.
4286
42872004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
4288 Paolo Bonzini <bonzini@gnu.org>
4289
4290 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4291 Remove VPATH. Remove rules for object files. Remove multilib support.
4292 (AM_CCASFLAGS): Add.
4293 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4294 (AC_PREREQ): Bump version to 2.59.
4295 (AC_INIT): Fill with version info and bug address.
4296 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4297 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4298 De-precious CC so that the right flags are passed down to multilibs.
4299 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4300 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4301 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4302 * configure: Rebuilt.
4303 * aclocal.m4: Likewise.
4304 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4305 * fficonfig.h.in: Likewise.
4306
43072004-03-11 Andreas Schwab <schwab@suse.de>
4308
4309 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4310 arguments from fp registers only for the first 8 parameter slots.
4311 Don't convert a float parameter when passed in memory.
4312
43132004-03-09 Hans-Peter Nilsson <hp@axis.com>
4314
4315 * configure: Regenerate for config/accross.m4 correction.
4316
43172004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
4318
4319 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4320 ecif->cif->bytes to bytes.
4321 (ffi_prep_cif_machdep): Add braces around nested if statement.
4322
43232004-02-09 Alan Modra <amodra@bigpond.net.au>
4324
4325 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4326
4327 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4328 (ffi_closure_helper_LINUX64): Fix typo.
4329 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4330 for powerpc64-*-*.
4331 * testsuite/libffi.call/float.c: Likewise.
4332 * testsuite/libffi.call/float2.c: Likewise.
4333
43342004-02-08 Alan Modra <amodra@bigpond.net.au>
4335
4336 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4337 long double function return and long double arg handling.
4338 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
4339 Use "end_pfr" instead of "nf". Correct long double handling.
4340 Localise "temp".
4341 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4342 return value.
4343 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4344 space for long double return value. Adjust stack frame and offsets.
4345 Load f2 long double return.
4346
43472004-02-07 Alan Modra <amodra@bigpond.net.au>
4348
4349 * src/types.c: Use 16 byte long double for POWERPC64.
4350
43512004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4352
4353 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4354 when the structure return address is passed in %o0.
4355 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4356 (ffi_v9_layout_struct): Align the field following a nested structure
4357 on a word boundary. Use memmove instead of memcpy.
4358 (ffi_call): Update call to ffi_V9_return_struct.
4359 (ffi_prep_closure): Define 'ctx' only for V8.
4360 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4361 and ffi_closure_sparc_inner_v9.
4362 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4363 Always skip the structure return address. For structures and long
4364 doubles, copy the argument directly.
4365 (ffi_closure_sparc_inner_v9): Skip the structure return address only
4366 if required. Shift the maximum floating-point slot accordingly. For
4367 big structures, copy the argument directly; otherwise, left-justify the
4368 argument and call ffi_v9_layout_struct to lay out the structure on
4369 the stack.
4370 * src/sparc/v8.S: Undef STACKFRAME before defining it.
4371 (ffi_closure_v8): Pass the structure return address. Update call to
4372 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
4373 Skip the 'unimp' insn when returning long doubles and structures.
4374 * src/sparc/v9.S: Undef STACKFRAME before defining it.
4375 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
4376 FFI_TYPE_INT handling. Load structures both in integers and
4377 floating-point registers on return.
4378 * README: Update status of the SPARC port.
4379
43802004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
4381
4382 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4383 as of type ffi_arg.
4384 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4385
43862004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
4387
4388 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4389 value as of type ffi_arg, not unsigned int.
4390
43912004-01-21 Michael Ritzert <ritzert@t-online.de>
4392
4393 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4394 of the LHS.
4395
43962004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4397
4398 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4399 Solaris.
4400
44012004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4402
4403 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4404 to void *.
4405
44062003-12-10 Richard Henderson <rth@redhat.com>
4407
4408 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4409 size_t instead of int.
4410
44112003-12-04 Hosaka Yuji <hos@tamanegi.org>
4412
4413 * testsuite/libffi.call/many_win32.c: Include <float.h>.
4414 * testsuite/libffi.call/many_win32.c (main): Replace variable
4415 int i with unsigned long ul.
4416
4417 * testsuite/libffi.call/cls_align_uint64.c: New test case.
4418 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4419 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4420 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4421 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4422 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4423 * testsuite/libffi.call/cls_align_float.c: Likewise.
4424 * testsuite/libffi.call/cls_align_double.c: Likewise.
4425 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4426 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4427
44282003-12-02 Hosaka Yuji <hos@tamanegi.org>
4429
4430 PR other/13221
4431 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4432 Align arguments to 32 bits.
4433
44342003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
4435
4436 PR other/13221
4437 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4438 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4439 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4440 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4441 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4442 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4443
4444 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4445
44462003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4447
4448 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4449 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4450
44512003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
4452
4453 * Makefile.in: Rebuilt.
4454 * configure: Likewise.
4455 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4456 the right type.
4457
44582003-11-21 Andreas Jaeger <aj@suse.de>
4459 Andreas Tobler <a.tobler@schweiz.ch>
4460
4461 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4462 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4463 * Makefile.in: Rebuilt.
4464 * aclocal.m4: Likewise.
4465 * configure: Likewise.
4466 * fficonfig.h.in: Likewise.
4467 * testsuite/lib/libffi-dg.exp: Add include dir.
4468 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4469 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4470 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4471 for ffi_closure if available.
4472 * testsuite/libffi.call/closure_fn1.c: Likewise.
4473 * testsuite/libffi.call/closure_fn2.c: Likewise.
4474 * testsuite/libffi.call/closure_fn3.c: Likewise.
4475 * testsuite/libffi.call/closure_fn4.c: Likewise.
4476 * testsuite/libffi.call/closure_fn5.c: Likewise.
4477 * testsuite/libffi.call/cls_12byte.c: Likewise.
4478 * testsuite/libffi.call/cls_16byte.c: Likewise.
4479 * testsuite/libffi.call/cls_18byte.c: Likewise.
4480 * testsuite/libffi.call/cls_19byte.c: Likewise.
4481 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4482 * testsuite/libffi.call/cls_20byte.c: Likewise.
4483 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4484 * testsuite/libffi.call/cls_24byte.c: Likewise.
4485 * testsuite/libffi.call/cls_2byte.c: Likewise.
4486 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4487 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4488 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4489 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4490 * testsuite/libffi.call/cls_4byte.c: Likewise.
4491 * testsuite/libffi.call/cls_5byte.c: Likewise.
4492 * testsuite/libffi.call/cls_64byte.c: Likewise.
4493 * testsuite/libffi.call/cls_6byte.c: Likewise.
4494 * testsuite/libffi.call/cls_7byte.c: Likewise.
4495 * testsuite/libffi.call/cls_8byte.c: Likewise.
4496 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4497 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4498 * testsuite/libffi.call/cls_double.c: Likewise.
4499 * testsuite/libffi.call/cls_float.c: Likewise.
4500 * testsuite/libffi.call/cls_schar.c: Likewise.
4501 * testsuite/libffi.call/cls_sint.c: Likewise.
4502 * testsuite/libffi.call/cls_sshort.c: Likewise.
4503 * testsuite/libffi.call/cls_uchar.c: Likewise.
4504 * testsuite/libffi.call/cls_uint.c: Likewise.
4505 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4506 * testsuite/libffi.call/cls_ushort.c: Likewise.
4507 * testsuite/libffi.call/nested_struct.c: Likewise.
4508 * testsuite/libffi.call/nested_struct1.c: Likewise.
4509 * testsuite/libffi.call/nested_struct2.c: Likewise.
4510 * testsuite/libffi.call/nested_struct3.c: Likewise.
4511 * testsuite/libffi.call/problem1.c: Likewise.
4512 * testsuite/libffi.special/unwindtest.cc: Likewise.
4513
45142003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
4515
4516 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4517
45182003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
4519
4520 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4521 Add -lgcc_s to additional flags.
4522
45232003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
4524
4525 * configure.in, include/Makefile.am: PR libgcj/11147, install
4526 the ffitarget.h header file in a gcc versioned and target
4527 dependent place.
4528 * configure: Regenerated.
4529 * Makefile.in, include/Makefile.in: Likewise.
4530 * testsuite/Makefile.in: Likewise.
4531
45322003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
4533
4534 * testsuite/libffi.call/closure_fn0.c: Print result and check
4535 with dg-output to make debugging easier.
4536 * testsuite/libffi.call/closure_fn1.c: Likewise.
4537 * testsuite/libffi.call/closure_fn2.c: Likewise.
4538 * testsuite/libffi.call/closure_fn3.c: Likewise.
4539 * testsuite/libffi.call/closure_fn4.c: Likewise.
4540 * testsuite/libffi.call/closure_fn5.c: Likewise.
4541 * testsuite/libffi.call/cls_12byte.c: Likewise.
4542 * testsuite/libffi.call/cls_16byte.c: Likewise.
4543 * testsuite/libffi.call/cls_18byte.c: Likewise.
4544 * testsuite/libffi.call/cls_19byte.c: Likewise.
4545 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4546 * testsuite/libffi.call/cls_20byte.c: Likewise.
4547 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4548 * testsuite/libffi.call/cls_24byte.c: Likewise.
4549 * testsuite/libffi.call/cls_2byte.c: Likewise.
4550 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4551 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4552 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4553 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4554 * testsuite/libffi.call/cls_4byte.c: Likewise.
4555 * testsuite/libffi.call/cls_5byte.c: Likewise.
4556 * testsuite/libffi.call/cls_64byte.c: Likewise.
4557 * testsuite/libffi.call/cls_6byte.c: Likewise.
4558 * testsuite/libffi.call/cls_7byte.c: Likewise.
4559 * testsuite/libffi.call/cls_8byte.c: Likewise.
4560 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4561 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4562 * testsuite/libffi.call/cls_double.c: Likewise.
4563 * testsuite/libffi.call/cls_float.c: Likewise.
4564 * testsuite/libffi.call/cls_schar.c: Likewise.
4565 * testsuite/libffi.call/cls_sint.c: Likewise.
4566 * testsuite/libffi.call/cls_sshort.c: Likewise.
4567 * testsuite/libffi.call/cls_uchar.c: Likewise.
4568 * testsuite/libffi.call/cls_uint.c: Likewise.
4569 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4570 * testsuite/libffi.call/cls_ushort.c: Likewise.
4571 * testsuite/libffi.call/problem1.c: Likewise.
4572
4573 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4574 static.
4575
45762003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4577
4578 * testsuite/libffi.call/cls_9byte2.c: New test case.
4579 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4580 * testsuite/libffi.call/cls_64byte.c: Likewise.
4581 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4582 * testsuite/libffi.call/cls_19byte.c: Likewise.
4583 * testsuite/libffi.call/cls_18byte.c: Likewise.
4584 * testsuite/libffi.call/closure_fn4.c: Likewise.
4585 * testsuite/libffi.call/closure_fn5.c: Likewise.
4586 * testsuite/libffi.call/cls_schar.c: Likewise.
4587 * testsuite/libffi.call/cls_sint.c: Likewise.
4588 * testsuite/libffi.call/cls_sshort.c: Likewise.
4589 * testsuite/libffi.call/nested_struct2.c: Likewise.
4590 * testsuite/libffi.call/nested_struct3.c: Likewise.
4591
45922003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4593
4594 * testsuite/libffi.call/cls_double.c: Do a check on the result.
4595 * testsuite/libffi.call/cls_uchar.c: Likewise.
4596 * testsuite/libffi.call/cls_uint.c: Likewise.
4597 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4598 * testsuite/libffi.call/cls_ushort.c: Likewise.
4599 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4600
46012003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
4602
4603 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4604 the initialization.
4605
46062003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
4607
4608 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
4609 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4610
46112003-10-22 David Daney <ddaney@avtrex.com>
4612
4613 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4614 __attribute__((__mode__(__SI__))) and friends.
4615
46162003-10-22 Andreas Schwab <schwab@suse.de>
4617
4618 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4619
46202003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
4621
4622 * configure.in: AC_LINK_FILES(ffitarget.h).
4623 * configure: Regenerate.
4624 * Makefile.in: Likewise.
4625 * include/Makefile.in: Likewise.
4626 * testsuite/Makefile.in: Likewise.
4627 * fficonfig.h.in: Likewise.
4628
46292003-10-21 Paolo Bonzini <bonzini@gnu.org>
4630 Richard Henderson <rth@redhat.com>
4631
4632 Avoid that ffi.h includes fficonfig.h.
4633
4634 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4635 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4636 (TARGET_SRC_MIPS_SGI): Removed.
4637 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4638 (MIPS_SGI): Removed.
4639 (CLEANFILES): Removed.
4640 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4641 targets.
4642 * acconfig.h: Removed.
4643 * configure.in: Compute sizeofs only for double and long double.
4644 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
4645 into AC_DEFINE instead of using acconfig.h. Create
4646 include/ffitarget.h instead of include/fficonfig.h. Rename
4647 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4648 AC_DEFINE EH_FRAME_FLAGS.
4649 * include/Makefile.am (DISTCLEANFILES): New automake macro.
4650 (hack_DATA): Add ffitarget.h.
4651 * include/ffi.h.in: Remove all system specific definitions.
4652 Declare raw API even if it is not installed, why bother?
4653 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
4654 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
4655 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
4656 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4657 * include/ffi_common.h (bool): Do not define.
4658 (ffi_assert): Accept failed assertion.
4659 (ffi_type_test): Return void and accept file/line.
4660 (FFI_ASSERT): Pass stringized failed assertion.
4661 (FFI_ASSERT_AT): New macro.
4662 (FFI_ASSERT_VALID_TYPE): New macro.
4663 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4664 UINT64, SINT64): Define here with gcc's __attribute__ macro
4665 instead of in ffi.h
4666 (FLOAT32, ALIGN): Define here instead of in ffi.h
4667 * include/ffi-mips.h: Removed. Its content moved to
4668 src/mips/ffitarget.h after separating assembly and C sections.
4669 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4670 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4671 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4672 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4673 SIZEOF_ARG -> FFI_SIZEOF_ARG.
4674 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4675 * src/debug.c (ffi_assert): Accept stringized failed assertion.
4676 (ffi_type_test): Rewritten.
4677 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4678 FFI_ASSERT_VALID_TYPE.
4679 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4680 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4681 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4682 src/s390/ffitarget.h, src/sh/ffitarget.h,
4683 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4684 src/x86/ffitarget.h: New files.
4685 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4686 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4687 src/powerpc/aix.S, src/powerpc/darwin.S,
4688 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4689 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4690 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4691 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4692 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4693 include fficonfig.h
4694
46952003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4696
4697 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4698 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4699
47002003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
4701
4702 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4703 Used when FFI_DEBUG = 1.
4704
47052003-10-14 Alan Modra <amodra@bigpond.net.au>
4706
4707 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4708 and align.
4709
47102003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4711
4712 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4713 FFI_MIPS_O32 for O32 ABI.
4714
47152003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
4716
4717 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4718 SPARC64. Cleanup whitespaces.
4719
47202003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
4721
4722 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4723 strongarm, xscale. Cleanup whitespaces.
4724 * testsuite/libffi.call/closure_fn1.c: Likewise.
4725 * testsuite/libffi.call/closure_fn2.c: Likewise.
4726 * testsuite/libffi.call/closure_fn3.c: Likewise.
4727 * testsuite/libffi.call/cls_12byte.c: Likewise.
4728 * testsuite/libffi.call/cls_16byte.c: Likewise.
4729 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4730 * testsuite/libffi.call/cls_20byte.c: Likewise.
4731 * testsuite/libffi.call/cls_24byte.c: Likewise.
4732 * testsuite/libffi.call/cls_2byte.c: Likewise.
4733 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4734 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4735 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4736 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4737 * testsuite/libffi.call/cls_4byte.c: Likewise.
4738 * testsuite/libffi.call/cls_5byte.c: Likewise.
4739 * testsuite/libffi.call/cls_6byte.c: Likewise.
4740 * testsuite/libffi.call/cls_7byte.c: Likewise.
4741 * testsuite/libffi.call/cls_8byte.c: Likewise.
4742 * testsuite/libffi.call/cls_double.c: Likewise.
4743 * testsuite/libffi.call/cls_float.c: Likewise.
4744 * testsuite/libffi.call/cls_uchar.c: Likewise.
4745 * testsuite/libffi.call/cls_uint.c: Likewise.
4746 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4747 * testsuite/libffi.call/cls_ushort.c: Likewise.
4748 * testsuite/libffi.call/nested_struct.c: Likewise.
4749 * testsuite/libffi.call/nested_struct1.c: Likewise.
4750 * testsuite/libffi.call/problem1.c: Likewise.
4751 * testsuite/libffi.special/unwindtest.cc: Likewise.
4752 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4753
47542003-09-18 David Edelsohn <edelsohn@gnu.org>
4755
4756 * src/powerpc/aix.S: Cleanup whitespaces.
4757 * src/powerpc/aix_closure.S: Likewise.
4758
47592003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4760
4761 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4762 * src/powerpc/darwin_closure.S: Likewise.
4763 * src/powerpc/ffi_darwin.c: Likewise.
4764
47652003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4766 David Edelsohn <edelsohn@gnu.org>
4767
4768 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4769 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4770 parameter stack.
4771 * src/powerpc/darwin_closure.S: Likewise.
4772 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4773 according to the Darwin/AIX ABI.
4774 (ffi_prep_cif_machdep): Likewise.
4775 (ffi_closure_helper_DARWIN): Likewise.
4776 Remove the outgoing parameter stack logic. Simplify the evaluation
4777 of the different CASE types.
4778 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4779 statement in the trampoline code.
4780
47812003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
4782
4783 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4784 for the register size.
4785 (ffi_closure_helper_SYSV): Handle the structure return value
4786 address correctly.
4787 (ffi_closure_helper_SYSV): Return the appropriate type when
4788 the registers are used for the structure return value.
4789 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4790 the 64-bit return value. Update copyright years.
4791
47922003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4793
4794 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4795 srcdir for ffi_mips.h.
4796
47972003-09-12 Alan Modra <amodra@bigpond.net.au>
4798
4799 * src/prep_cif.c (initialize_aggregate): Include tail padding in
4800 structure size.
4801 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4802 placement of float result.
4803 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4804 cast of "resp" for big-endian 64 bit machines.
4805
48062003-09-11 Alan Modra <amodra@bigpond.net.au>
4807
4808 * src/types.c (double, longdouble): Merge identical SH and ARM
4809 typedefs, and add POWERPC64.
4810 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4811 struct split over gpr and rest.
4812 (ffi_prep_cif_machdep): Correct intarg_count for structures.
4813 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4814
48152003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
4816
4817 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4818 passing correctly.
4819
48202003-09-09 Alan Modra <amodra@bigpond.net.au>
4821
4822 * configure: Regenerate.
4823
48242003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4825
4826 * Makefile.am: Remove build rules for ffitest.
4827 * Makefile.in: Rebuilt.
4828
48292003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4830
4831 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4832 about implicit declaration of abort().
4833
48342003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4835
4836 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
4837 * Makefile.in: Rebuilt.
4838 * configure.in: Add dejagnu test framework.
4839 * configure: Rebuilt.
4840
4841 * testsuite/Makefile.am: New file.
4842 * testsuite/Makefile.in: Built
4843 * testsuite/lib/libffi-dg.exp: New file.
4844 * testsuite/config/default.exp: Likewise.
4845 * testsuite/libffi.call/call.exp: Likewise.
4846 * testsuite/libffi.call/ffitest.h: Likewise.
4847 * testsuite/libffi.call/closure_fn0.c: Likewise.
4848 * testsuite/libffi.call/closure_fn1.c: Likewise.
4849 * testsuite/libffi.call/closure_fn2.c: Likewise.
4850 * testsuite/libffi.call/closure_fn3.c: Likewise.
4851 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4852 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4853 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4854 * testsuite/libffi.call/cls_2byte.c: Likewise.
4855 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4856 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4857 * testsuite/libffi.call/cls_4byte.c: Likewise.
4858 * testsuite/libffi.call/cls_5byte.c: Likewise.
4859 * testsuite/libffi.call/cls_6byte.c: Likewise.
4860 * testsuite/libffi.call/cls_7byte.c: Likewise.
4861 * testsuite/libffi.call/cls_8byte.c: Likewise.
4862 * testsuite/libffi.call/cls_12byte.c: Likewise.
4863 * testsuite/libffi.call/cls_16byte.c: Likewise.
4864 * testsuite/libffi.call/cls_20byte.c: Likewise.
4865 * testsuite/libffi.call/cls_24byte.c: Likewise.
4866 * testsuite/libffi.call/cls_double.c: Likewise.
4867 * testsuite/libffi.call/cls_float.c: Likewise.
4868 * testsuite/libffi.call/cls_uchar.c: Likewise.
4869 * testsuite/libffi.call/cls_uint.c: Likewise.
4870 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4871 * testsuite/libffi.call/cls_ushort.c: Likewise.
4872 * testsuite/libffi.call/float.c: Likewise.
4873 * testsuite/libffi.call/float1.c: Likewise.
4874 * testsuite/libffi.call/float2.c: Likewise.
4875 * testsuite/libffi.call/many.c: Likewise.
4876 * testsuite/libffi.call/many_win32.c: Likewise.
4877 * testsuite/libffi.call/nested_struct.c: Likewise.
4878 * testsuite/libffi.call/nested_struct1.c: Likewise.
4879 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
4880 * testsuite/libffi.call/problem1.c: Likewise.
4881 * testsuite/libffi.call/promotion.c: Likewise.
4882 * testsuite/libffi.call/return_ll.c: Likewise.
4883 * testsuite/libffi.call/return_sc.c: Likewise.
4884 * testsuite/libffi.call/return_uc.c: Likewise.
4885 * testsuite/libffi.call/strlen.c: Likewise.
4886 * testsuite/libffi.call/strlen_win32.c: Likewise.
4887 * testsuite/libffi.call/struct1.c: Likewise.
4888 * testsuite/libffi.call/struct2.c: Likewise.
4889 * testsuite/libffi.call/struct3.c: Likewise.
4890 * testsuite/libffi.call/struct4.c: Likewise.
4891 * testsuite/libffi.call/struct5.c: Likewise.
4892 * testsuite/libffi.call/struct6.c: Likewise.
4893 * testsuite/libffi.call/struct7.c: Likewise.
4894 * testsuite/libffi.call/struct8.c: Likewise.
4895 * testsuite/libffi.call/struct9.c: Likewise.
4896 * testsuite/libffi.special/special.exp: New file.
4897 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4898 * testsuite/libffi.special/unwindtest.cc: Likewise.
4899
4900
49012003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
4902
4903 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
4904 copyright years.
4905
49062003-08-02 Alan Modra <amodra@bigpond.net.au>
4907
4908 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
4909 structure passing.
4910 (ffi_closure_helper_LINUX64): Likewise.
4911 * src/powerpc/linux64.S: Remove code writing to parm save area.
4912 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
4913 address in lr from ffi_closure_helper_LINUX64 call to calculate
4914 table address. Optimize function tail.
4915
49162003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
4917
4918 * src/sparc/ffi.c: Handle all floating point registers.
4919 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
4920
49212003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4922
4923 * README: Note that libffi is not part of GCC. Update the project
4924 URL and status.
4925
49262003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4927
4928 * src/powerpc/ppc_closure.S: Include ffi.h.
4929
49302003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4931
4932 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
4933 Use C style comments.
4934
49352003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4936
4937 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
4938 * Makefile.in: Regenerate.
4939 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
4940 * configure: Regenerate.
4941 * include/ffi.h.in: Add SHmedia support.
4942 * src/sh64/ffi.c: New file.
4943 * src/sh64/sysv.S: New file.
4944
49452003-05-16 Jakub Jelinek <jakub@redhat.com>
4946
4947 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
4948 should be read-only.
4949 * configure: Rebuilt.
4950 * fficonfig.h.in: Rebuilt.
4951 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
4952 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
4953 * src/powerpc/linux64.S: Likewise.
4954 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
4955 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
4956 if -fpic/-fPIC/-mrelocatable.
4957 * src/powerpc/powerpc_closure.S: Likewise.
4958 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
4959 #write in .eh_frame flags.
4960 * src/sparc/v9.S: Likewise.
4961 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
4962 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
4963 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
4964
49652003-05-07 Jeff Sturm <jsturm@one-point.com>
4966
4967 Fixes PR bootstrap/10656
4968 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
4969 support for .register pseudo-op.
4970 * src/sparc/v8.S: Use it.
4971 * fficonfig.h.in: Rebuilt.
4972 * configure: Rebuilt.
4973
49742003-04-18 Jakub Jelinek <jakub@redhat.com>
4975
4976 * include/ffi.h.in (POWERPC64): Define if 64-bit.
4977 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
4978 Make it the default on POWERPC64.
4979 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
4980 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
4981 * configure: Rebuilt.
4982 * src/powerpc/ffi.c (hidden): Define.
4983 (ffi_prep_args_SYSV): Renamed from
4984 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
4985 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
4986 ASM_NEEDS_REGISTERS64): New.
4987 (ffi_prep_args64): New function.
4988 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
4989 (ffi_call): Likewise.
4990 (ffi_prep_closure): Likewise.
4991 (flush_icache): Surround by #ifndef POWERPC64.
4992 (ffi_dblfl): New union type.
4993 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
4994 (ffi_closure_helper_LINUX64): New function.
4995 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
4996 __powerpc64__.
4997 * src/powerpc/sysv.S: Likewise.
4998 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
4999 * src/powerpc/linux64.S: New file.
5000 * src/powerpc/linux64_closure.S: New file.
5001 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
5002 src/powerpc/linux64_closure.S.
5003 (TARGET_SRC_POWERPC): Likewise.
5004
5005 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
5006 closure_test_fn3): Fix result printing on big-endian 64-bit
5007 machines.
5008 (main): Print tst2_arg instead of uninitialized tst2_result.
5009
5010 * src/ffitest.c (main): Hide what closure pointer really points to
5011 from the compiler.
5012
50132003-04-16 Richard Earnshaw <rearnsha@arm.com>
5014
5015 * configure.in (arm-*-netbsdelf*): Add configuration.
5016 (configure): Regenerated.
5017
50182003-04-04 Loren J. Rittle <ljrittle@acm.org>
5019
5020 * include/Makefile.in: Regenerate.
5021
50222003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5023
5024 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5025 bit mode.
5026 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5027 Receive closure pointer through parameter, read args using
5028 __builtin_dwarf_cfa.
5029 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5030
50312003-03-12 Andreas Schwab <schwab@suse.de>
5032
5033 * configure.in: Avoid trailing /. in toolexeclibdir.
5034 * configure: Rebuilt.
5035
50362003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
5037
5038 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
5039
50402003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
5041
5042 * libffi/src/powerpc/darwin_closure.S:
5043 Fix alignement bug, allocate 8 bytes for the result.
5044 * libffi/src/powerpc/aix_closure.S:
5045 Likewise.
5046 * libffi/src/powerpc/ffi_darwin.c:
5047 Update stackframe description for aix/darwin_closure.S.
5048
50492003-02-06 Jakub Jelinek <jakub@redhat.com>
5050
5051 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5052 attribute.
5053
50542003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
5055 Andreas Schwab <schwab@suse.de>
5056
5057 * configure.in: Adjust command to source config-ml.in to account
5058 for changes to the libffi_basedir definition.
5059 (libffi_basedir): Remove ${srcdir} from value and include trailing
5060 slash if nonempty.
5061
5062 * configure: Regenerate.
5063
50642003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5065
5066 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5067
50682003-01-28 Andrew Haley <aph@redhat.com>
5069
5070 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5071 * src/x86/ffi64.c (ffi_prep_closure): New.
5072 (ffi_closure_UNIX64_inner): New.
5073 * src/x86/unix64.S (ffi_closure_UNIX64): New.
5074
50752003-01-27 Alexandre Oliva <aoliva@redhat.com>
5076
5077 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5078 Remove USE_LIBDIR conditional.
5079 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5080 * Makefile.in, configure: Rebuilt.
5081
50822003-01027 David Edelsohn <edelsohn@gnu.org>
5083
5084 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5085 * Makefile.in: Regenerate.
5086
50872003-01-22 Andrew Haley <aph@redhat.com>
5088
5089 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5090 unwind info.
5091
50922003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
5093
5094 * src/powerpc/darwin.S: Add unwind info.
5095 * src/powerpc/darwin_closure.S: Likewise.
5096
50972003-01-14 Andrew Haley <aph@redhat.com>
5098
5099 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5100 (ffi_prep_cif_machdep): Likewise.
5101 * src/x86/unix64.S: Add unwind info.
5102
51032003-01-14 Andreas Jaeger <aj@suse.de>
5104
5105 * src/ffitest.c (main): Only use ffi_closures if those are
5106 supported.
5107
51082003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
5109
5110 * libffi/src/ffitest.c
5111 add closure testcases
5112
51132003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
5114
5115 * libffi/src/powerpc/ffi.c
5116 fix alignment bug for float (4 byte aligned iso 8 byte)
5117
51182003-01-09 Geoffrey Keating <geoffk@apple.com>
5119
5120 * src/powerpc/ffi_darwin.c: Remove RCS version string.
5121 * src/powerpc/darwin.S: Remove RCS version string.
5122
51232003-01-03 Jeff Sturm <jsturm@one-point.com>
5124
5125 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5126 * src/ffitest.c (main): Use static storage for closure.
5127 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5128 * src/sparc/v8.S (ffi_closure_v8): New.
5129 * src/sparc/v9.S (ffi_closure_v9): New.
5130
51312002-11-10 Ranjit Mathew <rmathew@hotmail.com>
5132
5133 * include/ffi.h.in: Added FFI_STDCALL ffi_type
5134 enumeration for X86_WIN32.
5135 * src/x86/win32.S: Added ffi_call_STDCALL function
5136 definition.
5137 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
5138 switch cases for recognising FFI_STDCALL and
5139 calling ffi_call_STDCALL if target is X86_WIN32.
5140 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
5141 stdcall versions of the "my_strlen" and "many"
5142 test functions (for X86_WIN32).
5143 Added test cases to test stdcall invocation using
5144 these functions.
5145
51462002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
5147
5148 * src/sh/sysv.S: Add DWARF2 unwind info.
5149
51502002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
5151
5152 * src/s390/sysv.S (.eh_frame section): Make section read-only.
5153
51542002-11-26 Jim Wilson <wilson@redhat.com>
5155
5156 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5157
51582002-11-23 H.J. Lu <hjl@gnu.org>
5159
5160 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5161 Include ../config/accross.m4.
5162 * aclocal.m4; Rebuild.
5163 * configure: Likewise.
5164
51652002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
5166
5167 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5168
51692002-11-11 DJ Delorie <dj@redhat.com>
5170
5171 * configure.in: Look for common files in the right place.
5172
51732002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5174
5175 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5176 raw data as _Jv_word values, not ffi_raw.
5177 (ffi_java_ptrarray_to_raw): Likewise.
5178 (ffi_java_rvalue_to_raw): New function.
5179 (ffi_java_raw_call): Call it.
5180 (ffi_java_raw_to_rvalue): New function.
5181 (ffi_java_translate_args): Call it.
5182 * src/ffitest.c (closure_test_fn): Interpret return value
5183 as ffi_arg, not int.
5184 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5185 FFI_TYPE_POINTER case.
5186 (ffi_closure_helper_SYSV): Likewise. Also, assume return
5187 values extended to word size.
5188
51892002-10-02 Andreas Jaeger <aj@suse.de>
5190
5191 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5192
51932002-10-01 Bo Thorsen <bo@smetana.suse.de>
5194
5195 * include/ffi.h.in: Fix i386 win32 compilation.
5196
51972002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5198
5199 * configure.in: Add s390x-*-linux-* target.
5200 * configure: Regenerate.
5201 * include/ffi.h.in: Define S390X for s390x targets.
5202 (FFI_CLOSURES): Define for s390/s390x.
5203 (FFI_TRAMPOLINE_SIZE): Likewise.
5204 (FFI_NATIVE_RAW_API): Likewise.
5205 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5206 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
5207 * src/s390/ffi.c: Major rework of existing code. Add support for
5208 s390x targets. Add closure support.
5209 * src/s390/sysv.S: Likewise.
5210
52112002-09-29 Richard Earnshaw <rearnsha@arm.com>
5212
5213 * src/arm/sysv.S: Fix typo.
5214
52152002-09-28 Richard Earnshaw <rearnsha@arm.com>
5216
5217 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5218 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5219 (ffi_call_SYSV): Handle soft-float.
5220
52212002-09-27 Bo Thorsen <bo@suse.de>
5222
5223 * include/ffi.h.in: Fix multilib x86-64 support.
5224
52252002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5226
5227 * Makefile.am (all-multi): Fix multilib parallel build.
5228
52292002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
5230
5231 * configure.in (sh[34]*-*-linux*): Add brackets.
5232 * configure: Regenerate.
5233
52342002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
5235
5236 * Makefile.am: Add SH support.
5237 * Makefile.in: Regenerate.
5238 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5239 * configure: Regenerate.
5240 * include/ffi.h.in: Add SH support.
5241 * src/sh/ffi.c: New file.
5242 * src/sh/sysv.S: New file.
5243 * src/types.c: Add SH support.
5244
52452002-07-16 Bo Thorsen <bo@suse.de>
5246
5247 * src/x86/ffi64.c: New file that adds x86-64 support.
5248 * src/x86/unix64.S: New file that handles argument setup for
5249 x86-64.
5250 * src/x86/sysv.S: Don't use this on x86-64.
5251 * src/x86/ffi.c: Don't use this on x86-64.
5252 Remove unused vars.
5253 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5254 for x86-64.
5255 * src/ffitest.c (struct6): New test that tests a special case in
5256 the x86-64 ABI.
5257 (struct7): Likewise.
5258 (struct8): Likewise.
5259 (struct9): Likewise.
5260 (closure_test_fn): Silence warning about this when it's not used.
5261 (main): Add the new tests.
5262 (main): Fix a couple of wrong casts and silence some compiler warnings.
5263 * include/ffi.h.in: Add x86-64 ABI definition.
5264 * fficonfig.h.in: Regenerate.
5265 * Makefile.am: Add x86-64 support.
5266 * configure.in: Likewise.
5267 * Makefile.in: Regenerate.
5268 * configure: Likewise.
5269
52702002-06-24 Bo Thorsen <bo@suse.de>
5271
5272 * src/types.c: Merge settings for similar architectures.
5273 Add x86-64 sizes and alignments.
5274
52752002-06-23 Bo Thorsen <bo@suse.de>
5276
5277 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5278 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5279 * src/mips/ffi.c (ffi_prep_args): Likewise.
5280 * src/m68k/ffi.c (ffi_prep_args): Likewise.
5281
52822002-07-18 H.J. Lu (hjl@gnu.org)
5283
5284 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5285 (libffi_la_SOURCES): Support MIPS_LINUX.
5286 (libffi_convenience_la_SOURCES): Likewise.
5287 * Makefile.in: Regenerated.
5288
5289 * configure.in (mips64*-*): Skip.
5290 (mips*-*-linux*): New.
5291 * configure: Regenerated.
5292
5293 * src/mips/ffi.c: Include <sgidefs.h>.
5294
52952002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5296
5297 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
5298
52992002-05-27 Roger Sayle <roger@eyesopen.com>
5300
5301 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5302
53032002-05-27 Bo Thorsen <bo@suse.de>
5304
5305 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5306 fix formatting.
5307
53082002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
5309
5310 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5311 beginning of function (for older apple cc).
5312
53132002-05-08 Alexandre Oliva <aoliva@redhat.com>
5314
5315 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5316 script entry, and set LD to it when configuring multilibs.
5317 * configure: Rebuilt.
5318
53192002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5320
5321 * configure.in (sparc64-*-netbsd*): Add target.
5322 (sparc-*-netbsdelf*): Likewise.
5323 * configure: Regenerate.
5324
53252002-04-28 David S. Miller <davem@redhat.com>
5326
5327 * configure.in, configure: Fix SPARC test in previous change.
5328
53292002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
5330
5331 * Makefile.am: Add Linux for S/390 support.
5332 * Makefile.in: Regenerate.
5333 * configure.in: Add Linux for S/390 support.
5334 * configure: Regenerate.
5335 * include/ffi.h.in: Add Linux for S/390 support.
5336 * src/s390/ffi.c: New file from libffi CVS tree.
5337 * src/s390/sysv.S: New file from libffi CVS tree.
5338
53392002-04-28 Jakub Jelinek <jakub@redhat.com>
5340
5341 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5342 %r_disp32().
5343 * src/sparc/v8.S: Use it.
5344 * src/sparc/v9.S: Likewise.
5345 * fficonfig.h.in: Rebuilt.
5346 * configure: Rebuilt.
5347
53482002-04-08 Hans Boehm <Hans_Boehm@hp.com>
5349
5350 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5351 correctly.
5352 * src/ia64/unix.S: Add unwind information. Fix comments.
5353 Save sp in a way that's compatible with unwind info.
5354 (ffi_call_unix): Correctly restore sp in all cases.
5355 * src/ia64/ffi.c: Add, fix comments.
5356
53572002-04-08 Jakub Jelinek <jakub@redhat.com>
5358
5359 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5360
53612002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5362
5363 * configure.in (alpha*-*-netbsd*): Add target.
5364 * configure: Regenerate.
5365
53662002-04-04 Jeff Sturm <jsturm@one-point.com>
5367
5368 * src/sparc/v8.S: Add unwind info.
5369 * src/sparc/v9.S: Likewise.
5370
53712002-03-30 Krister Walfridsson <cato@df.lth.se>
5372
5373 * configure.in: Enable i*86-*-netbsdelf*.
5374 * configure: Rebuilt.
5375
53762002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
5377
5378 PR other/2620
5379 * src/mips/n32.s: Delete
5380 * src/mips/o32.s: Delete
5381
53822002-03-21 Loren J. Rittle <ljrittle@acm.org>
5383
5384 * configure.in: Enable alpha*-*-freebsd*.
5385 * configure: Rebuilt.
5386
53872002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5388
5389 * Makefile.am: libfficonvenience -> libffi_convenience.
5390 * Makefile.in: Rebuilt.
5391
5392 * Makefile.am: Define ffitest_OBJECTS.
5393 * Makefile.in: Rebuilt.
5394
53952002-03-07 Andreas Tobler <toa@pop.agri.ch>
5396 David Edelsohn <edelsohn@gnu.org>
5397
5398 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5399 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5400 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5401 * Makefile.in: Regenerate.
5402 * include/ffi.h.in: Add AIX and Darwin closure definitions.
5403 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5404 (flush_icache, flush_range): New functions.
5405 (ffi_closure_helper_DARWIN): New function.
5406 * src/powerpc/aix_closure.S: New file.
5407 * src/powerpc/darwin_closure.S: New file.
5408
54092002-02-24 Jeff Sturm <jsturm@one-point.com>
5410
5411 * include/ffi.h.in: Add typedef for ffi_arg.
5412 * src/ffitest.c (main): Declare rint with ffi_arg.
5413
54142002-02-21 Andreas Tobler <toa@pop.agri.ch>
5415
5416 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5417 number of GPRs for floating-point arguments.
5418
54192002-01-31 Anthony Green <green@redhat.com>
5420
5421 * configure: Rebuilt.
5422 * configure.in: Replace CHECK_SIZEOF and endian tests with
5423 cross-compiler friendly macros.
5424 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5425 macros.
5426
54272002-01-18 David Edelsohn <edelsohn@gnu.org>
5428
5429 * src/powerpc/darwin.S (_ffi_call_AIX): New.
5430 * src/powerpc/aix.S (ffi_call_DARWIN): New.
5431
54322002-01-17 David Edelsohn <edelsohn@gnu.org>
5433
5434 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5435 (TARGET_SRC_POWERPC_AIX): New.
5436 (POWERPC_AIX): New stanza.
5437 * Makefile.in: Regenerate.
5438 * configure.in: Add AIX case.
5439 * configure: Regenerate.
5440 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5441 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5442 size. Fix "long double" support.
5443 (ffi_call): Add FFI_AIX case.
5444 * src/powerpc/aix.S: New.
5445
54462001-10-09 John Hornkvist <john@toastedmarshmallow.com>
5447
5448 Implement Darwin PowerPC ABI.
5449 * configure.in: Handle powerpc-*-darwin*.
5450 * Makefile.am: Set source files for POWERPC_DARWIN.
5451 * configure: Rebuilt.
5452 * Makefile.in: Rebuilt.
5453 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5454 POWERPC_DARWIN.
5455 * src/powerpc/darwin.S: New file.
5456 * src/powerpc/ffi_darwin.c: New file.
5457
54582001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5459
5460 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5461
54622001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5463
5464 * src/x86/sysv.S: Avoid gas-only .balign directive.
5465 Use C style comments.
5466
54672001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5468
5469 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5470 Fixes PR bootstrap/3563.
5471
54722001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5473
5474 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5475
54762001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5477
5478 * configure.in: Recognize sparc*-sun-* host.
5479 * configure: Regenerate.
5480
54812001-06-06 Andrew Haley <aph@redhat.com>
5482
5483 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
5484
54852001-06-03 Andrew Haley <aph@redhat.com>
5486
5487 * src/alpha/osf.S: Add unwind info.
5488 * src/powerpc/sysv.S: Add unwind info.
5489 * src/powerpc/ppc_closure.S: Likewise.
5490
54912000-05-31 Jeff Sturm <jsturm@one-point.com>
5492
5493 * configure.in: Fix AC_ARG_ENABLE usage.
5494 * configure: Rebuilt.
5495
54962001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5497
5498 * configure.in: Remove warning about beta code.
5499 * configure: Rebuilt.
5500
55012001-04-25 Hans Boehm <Hans_Boehm@hp.com>
5502
5503 * src/ia64/unix.S: Restore stack pointer when returning from
5504 ffi_closure_UNIX.
5505 * src/ia64/ffi.c: Fix typo in comment.
5506
55072001-04-18 Jim Wilson <wilson@redhat.com>
5508
5509 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5510 to eliminate RAW DV.
5511
55122001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
5513
5514 * Makefile.am: Make a libtool convenience library.
5515 * Makefile.in: Rebuilt.
5516
55172001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
5518
5519 * configure.in: Use different syntax for subdirectory creation.
5520 * configure: Rebuilt.
5521
55222001-03-27 Jon Beniston <jon@beniston.com>
5523
5524 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5525 * configure: Rebuilt.
5526 * Makefile.am: Added X86_WIN32 target support.
5527 * Makefile.in: Rebuilt.
5528
5529 * include/ffi.h.in: Added X86_WIN32 target support.
5530
5531 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5532 * src/types.c: Added X86_WIN32 target support.
5533
5534 * src/x86/win32.S: New file. Based on sysv.S, but with EH
5535 stuff removed and made to work with CygWin's gas.
5536
55372001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
5538
5539 * configure.in: Make target subdirectory in build dir.
5540 * Makefile.am: Override suffix based rules to specify correct output
5541 subdirectory.
5542 * Makefile.in: Rebuilt.
5543 * configure: Rebuilt.
5544
55452001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
5546
5547 * src/powerpc/ppc_closure.S: New file.
5548 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5549 involving long long and register pairs.
5550 (ffi_prep_closure): New function.
5551 (flush_icache): Likewise.
5552 (ffi_closure_helper_SYSV): Likewise.
5553 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5554 (FFI_TRAMPOLINE_SIZE): Likewise.
5555 (FFI_NATIVE_RAW_API): Likewise.
5556 * Makefile.in: Rebuilt.
5557 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5558 (TARGET_SRC_POWERPC): Likewise.
5559
55602001-03-19 Tom Tromey <tromey@redhat.com>
5561
5562 * Makefile.in: Rebuilt.
5563 * Makefile.am (ffitest_LDFLAGS): New macro.
5564
55652001-03-02 Nick Clifton <nickc@redhat.com>
5566
5567 * include/ffi.h.in: Remove RCS ident string.
5568 * include/ffi_mips.h: Remove RCS ident string.
5569 * src/debug.c: Remove RCS ident string.
5570 * src/ffitest.c: Remove RCS ident string.
5571 * src/prep_cif.c: Remove RCS ident string.
5572 * src/types.c: Remove RCS ident string.
5573 * src/alpha/ffi.c: Remove RCS ident string.
5574 * src/alpha/osf.S: Remove RCS ident string.
5575 * src/arm/ffi.c: Remove RCS ident string.
5576 * src/arm/sysv.S: Remove RCS ident string.
5577 * src/mips/ffi.c: Remove RCS ident string.
5578 * src/mips/n32.S: Remove RCS ident string.
5579 * src/mips/o32.S: Remove RCS ident string.
5580 * src/sparc/ffi.c: Remove RCS ident string.
5581 * src/sparc/v8.S: Remove RCS ident string.
5582 * src/sparc/v9.S: Remove RCS ident string.
5583 * src/x86/ffi.c: Remove RCS ident string.
5584 * src/x86/sysv.S: Remove RCS ident string.
5585
55862001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
5587
5588 * include/ffi.h.in: Change sourceware.cygnus.com references to
5589 gcc.gnu.org.
5590
55912000-12-09 Richard Henderson <rth@redhat.com>
5592
5593 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5594 (ffi_closure_osf_inner): Index rather than increment avalue
5595 and arg_types. Give ffi_closure_osf the raw return value type.
5596 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5597 promotion.
5598
55992000-12-07 Richard Henderson <rth@redhat.com>
5600
5601 * src/raw_api.c (ffi_translate_args): Fix typo.
5602 (ffi_prep_closure): Likewise.
5603
5604 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5605 FFI_TRAMPOLINE_SIZE.
5606 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5607 cif->bytes for new ffi_call_osf implementation.
5608 (ffi_prep_args): Absorb into ...
5609 (ffi_call): ... here. Do all stack allocation here and
5610 avoid a callback function.
5611 (ffi_prep_closure, ffi_closure_osf_inner): New.
5612 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5613 (ffi_closure_osf): New.
5614
56152000-09-10 Alexandre Oliva <aoliva@redhat.com>
5616
5617 * config.guess, config.sub, install-sh: Removed.
5618 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5619 * Makefile.in: Rebuilt.
5620
5621 * acinclude.m4: Include libtool macros from the top level.
5622 * aclocal.m4, configure: Rebuilt.
5623
56242000-08-22 Alexandre Oliva <aoliva@redhat.com>
5625
5626 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5627 * configure: Rebuilt.
5628
56292000-05-11 Scott Bambrough <scottb@netwinder.org>
5630
5631 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5632 memory correctly. Use conditional instructions, not branches where
5633 possible.
5634
56352000-05-04 Tom Tromey <tromey@cygnus.com>
5636
5637 * configure: Rebuilt.
5638 * configure.in: Match `arm*-*-linux-*'.
5639 From Chris Dornan <cdornan@arm.com>.
5640
56412000-04-28 Jakub Jelinek <jakub@redhat.com>
5642
5643 * Makefile.am (SUBDIRS): Define.
5644 (AM_MAKEFLAGS): Likewise.
5645 (Multilib support.): Add section.
5646 * Makefile.in: Rebuilt.
5647 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
5648 New variables. Set for gcc using -print-multi-lib. Export them
5649 to libtool.
5650 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5651 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5652 for -shared links.
5653 (extra_compiler_flags_value, extra_compiler_flags): Check these
5654 for extra compiler options which need to be passed down in
5655 compiler_flags.
5656
56572000-04-16 Anthony Green <green@redhat.com>
5658
5659 * configure: Rebuilt.
5660 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5661
56622000-04-14 Jakub Jelinek <jakub@redhat.com>
5663
5664 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
5665 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5666 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5667 Replace all void * sizeofs with sizeof(int).
5668 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5669 different than DOUBLE.
5670 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5671 (ffi_prep_args_v9): New function.
5672 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5673 (ffi_V9_return_struct): New function.
5674 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5675 32bit code (not yet cross-arch calls).
5676 * src/sparc/v8.S: Add struct return delay nop.
5677 Handle long long.
5678 * src/sparc/v9.S: New file.
5679 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5680 is used on sparc64 only for structures larger than 32 bytes.
5681 Pass by reference for structures is done for structure arguments
5682 larger than 16 bytes.
5683 * src/ffitest.c (main): Use 64bit rint on sparc64.
5684 Run long long tests on sparc.
5685 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5686 sparc64.
5687 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5688 on sparc64.
5689 * configure.in (sparc-*-linux*): New supported target.
5690 (sparc64-*-linux*): Likewise.
5691 * configure: Rebuilt.
5692 * Makefile.am: Add v9.S to SPARC files.
5693 * Makefile.in: Likewise.
5694 (LINK): Surround $(CCLD) into double quotes, so that multilib
5695 compiles work correctly.
5696
56972000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
5698
5699 * configure: Rebuilt.
5700 * configure.in: (i*86-*-solaris*): New libffi target. Patch
5701 proposed by Bryce McKinlay.
5702
57032000-03-20 Tom Tromey <tromey@cygnus.com>
5704
5705 * Makefile.in: Hand edit for java_raw_api.lo.
5706
57072000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
5708
5709 * config.guess, config.sub: Update from the gcc tree.
5710 Fix for PR libgcj/168.
5711
57122000-03-03 Tom Tromey <tromey@cygnus.com>
5713
5714 * Makefile.in: Fixed ia64 by hand.
5715
5716 * configure: Rebuilt.
5717 * configure.in (--enable-multilib): New option.
5718 (libffi_basedir): New subst.
5719 (AC_OUTPUT): Added multilib code.
5720
57212000-03-02 Tom Tromey <tromey@cygnus.com>
5722
5723 * Makefile.in: Rebuilt.
5724 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5725 directory name.
5726
57272000-02-25 Hans Boehm <boehm@acm.org>
5728
5729 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5730 files.
5731 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5732 list.
5733 (ffi_prep_raw_closure): Use ffi_translate_args, not
5734 ffi_closure_translate.
5735 * src/java_raw_api.c: New file.
5736 * src/ffitest.c (closure_test_fn): New function.
5737 (main): Define `rint' as long long on IA64. Added new test when
5738 FFI_CLOSURES is defined.
5739 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5740 (ffi_abi): Recognize IA64.
5741 (ffi_raw): Added `flt' field.
5742 Added "Java raw API" code.
5743 * configure.in: Recognize ia64.
5744 * Makefile.am (TARGET_SRC_IA64): New macro.
5745 (libffi_la_common_SOURCES): Added java_raw_api.c.
5746 (libffi_la_SOURCES): Define in IA64 case.
5747
57482000-01-04 Tom Tromey <tromey@cygnus.com>
5749
5750 * Makefile.in: Rebuilt with newer automake.
5751
57521999-12-31 Tom Tromey <tromey@cygnus.com>
5753
5754 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5755
57561999-09-01 Tom Tromey <tromey@cygnus.com>
5757
5758 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5759 undefs.
5760 * fficonfig.h.in: Rebuilt.
5761 * configure: Rebuilt.
5762 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5763 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5764 * acconfig.h: Don't #undef PACKAGE or VERSION.
5765
57661999-08-09 Anthony Green <green@cygnus.com>
5767
5768 * include/ffi.h.in: Try to work around messy header problem
5769 with PACKAGE and VERSION.
5770
5771 * configure: Rebuilt.
5772 * configure.in: Change version to 2.00-beta.
5773
5774 * fficonfig.h.in: Rebuilt.
5775 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5776
5777 * src/x86/ffi.c (ffi_raw_call): Rename.
5778
57791999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
5780
5781 * src/x86/ffi.c (ffi_closure_SYSV): New function.
5782 (ffi_prep_incoming_args_SYSV): Ditto.
5783 (ffi_prep_closure): Ditto.
5784 (ffi_closure_raw_SYSV): Ditto.
5785 (ffi_prep_raw_closure): More ditto.
5786 (ffi_call_raw): Final ditto.
5787
5788 * include/ffi.h.in: Add definitions for closure and raw API.
5789
5790 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
5791 FFI_TYPE_UINT64.
5792
5793 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5794
5795 * src/raw_api.c: New file.
5796
5797 * include/ffi.h.in (ffi_raw): New type.
5798 (UINT_ARG, SINT_ARG): New defines.
5799 (ffi_closure, ffi_raw_closure): New types.
5800 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
5801
5802 * configure.in: Add check for endianness and sizeof void*.
5803
5804 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5805 instead of directly.
5806
5807 * configure: Rebuilt.
5808
5809Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
5810
5811 * configure.in: Add x86 and powerpc BeOS configurations.
5812 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
5813
58141999-05-09 Anthony Green <green@cygnus.com>
5815
5816 * configure.in: Add warning about this being beta code.
5817 Remove src/Makefile.am from the picture.
5818 * configure: Rebuilt.
5819
5820 * Makefile.am: Move logic from src/Makefile.am. Add changes
5821 to support libffi as a target library.
5822 * Makefile.in: Rebuilt.
5823
5824 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5825 Upgraded to new autoconf, automake, libtool.
5826
5827 * README: Tweaks.
5828
5829 * LICENSE: Update copyright date.
5830
5831 * src/Makefile.am, src/Makefile.in: Removed.
5832
58331998-11-29 Anthony Green <green@cygnus.com>
5834
5835 * include/ChangeLog: Removed.
5836 * src/ChangeLog: Removed.
5837 * src/mips/ChangeLog: Removed.
5838 * src/sparc/ChangeLog: Remboved.
5839 * src/x86/ChangeLog: Removed.
5840
5841 * ChangeLog.v1: Created.