blob: 970f31b506dc1819a0cd79ec0b1c2dc94e29e294 [file] [log] [blame]
Zachary Waldowskif466aad2014-01-21 16:38:31 -050012014-01-21 Zachary Waldowski <zach@waldowski.me>
2
3 * src/aarch64/ffi.c: Fix missing semicolons on assertions under
4 debug mode.
Zachary Waldowskibfc06b32013-12-30 17:36:39 -05005
62013-12-30 Zachary Waldowski <zach@waldowski.me>
7
8 * .gitignore: Exclude darwin_* generated source and build_* trees.
9 * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
10 previous prototype warnings.
11 * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
12 * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
13 and the native use of size_t for malloc on platforms
14 * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
15 ARM_FUNC_START.
16 * generate-osx-source-and-headers.py: Remove.
17 * build-ios.sh: Remove.
18 * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
19 x86_64+aarch64 pieces in library. Export headers properly.
20 * src/x86/ffi64.c: More Clang warning clean-ups.
21 * src/closures.c (open_temp_exec_file_dir): Use size_t.
22 * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
23 * src/aarch64/sysv.S: Use CNAME for global symbols. Only use
24 .size for ELF targets.
25 * src/aarch64/ffi.c: Clean up for double == long double. Clean up
Zachary Waldowskif466aad2014-01-21 16:38:31 -050026 from Clang warnings. Use Clang cache invalidation builtin. Use
Zachary Waldowskibfc06b32013-12-30 17:36:39 -050027 size_t in place of unsigned in many places. Accommodate for
28 differences in Apple AArch64 ABI.
29
302013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
31
32 * generate-darwin-source-and-headers.py: Clean up, modernize,
33 merged version of previous scripts.
34
Alan Modraab79d6e2013-11-21 06:12:35 -0500352013-11-21 Anthony Green <green@moxielogic.com>
36
37 * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
38 man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
39
402013-11-21 Alan Modra <amodra@gmail.com>
41
42 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
43 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
44 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
45 * include/ffi.h.in (ffi_prep_types): Declare.
46 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
47 * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
48 HAVE_LONG_DOUBLE_VARIANT.
49 * src/powerpc/ffi_powerpc.h: New file.
50 * src/powerpc/ffi.c: Split into..
51 * src/powerpc/ffi_sysv.c: ..new file, and..
52 * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
53 * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
54 selection as bits controlling features.
55 * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
56 than __powerpc64__.
57 * src/powerpc/linux64_closure.S: Likewise.
58 * src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
59 inside guard.
60 * src/powerpc/sysv.S: Likewise.
61 * configure: Regenerate.
62 * fficonfig.h.in: Regenerate.
63 * Makefile.in: Regenerate.
64
652013-11-20 Alan Modra <amodra@gmail.com>
66
67 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
68 NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
69 32-bit versions for 64-bit code.
70 * src/powerpc/linux64_closure.S: Don't use the return value area
71 as a parameter save area on ELFv2.
72
Iain Sandoeaa1f62c2013-11-18 13:11:56 +0000732013-11-18 Iain Sandoe <iain@codesourcery.com>
74
75 * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
76 * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
77 labels.
78
Anthony Green2f450822013-11-18 06:52:29 -0500792013-11-18 Anthony Green <green@moxielogic.com>
80
81 * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
82 function.
83 * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
84 to appease compiler.
85 Thanks for Gregory P. Smith <greg@krypto.org>.
86
872013-11-18 Anthony Green <green@moxielogic.com>
88
89 * README (tested): Mention PowerPC ELFv2.
90
Alan Modra164283f2013-11-16 06:38:55 -0500912013-11-16 Alan Modra <amodra@gmail.com>
92
Alan Modra16d56c52013-11-18 06:36:03 -050093 * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
94 Don't bl .Luint128.
95
962013-11-16 Alan Modra <amodra@gmail.com>
97
Alan Modra83f65b62013-11-16 06:53:50 -050098 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
99 test to select parameter save sizing for ELFv2 vs. ELFv1.
100 * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
101 FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
102 (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
103 * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
104 (discover_homogeneous_aggregate): New function.
105 (ffi_prep_args64): Adjust start of param save area for ELFv2.
106 Handle homogenous floating point struct parms.
107 (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
108 Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
109 homogenous floating point structs.
110 (ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
111 (flush_icache): Compile for ELFv2.
112 (ffi_prep_closure_loc): Set up ELFv2 trampoline.
113 (ffi_closure_helper_LINUX64): Don't return all structs directly
114 to caller. Handle homogenous floating point structs. Handle
115 ELFv2 struct return values.
116 * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
117 ELFv2. Adjust toc save location. Call function pointer using
118 r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
119 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
120 for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
121 RETVAL. Handle possibly missing parameter save area. Handle
122 ELFv2 return values.
123 (.note.GNU-stack): Move inside outer #ifdef.
124
1252013-11-16 Alan Modra <amodra@gmail.com>
126
Alan Modra36285132013-11-16 06:52:43 -0500127 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
128 change. Do not consume an int arg when returning a small struct
129 for FFI_SYSV ABI.
130 (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
131 Properly copy bounce buffer to destination.
132 * src/powerpc/sysv.S: Revert 2013-02-08 change.
133 * src/powerpc/ppc_closure.S: Remove stray '+'.
134
1352013-11-16 Alan Modra <amodra@gmail.com>
136
Alan Modra1c065152013-11-16 06:41:36 -0500137 * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
138 according to __STRUCT_PARM_ALIGN__.
139 (ffi_prep_cif_machdep_core): Likewise.
140 (ffi_closure_helper_LINUX64): Likewise.
141
1422013-11-16 Alan Modra <amodra@gmail.com>
143
Alan Modraa97cf1f2013-11-16 06:40:13 -0500144 * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
145 (.note.GNU-stack): Move inside outer #ifdef.
146 * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
147 RETVAL): Define and use throughout.
148 (ffi_closure_LINUX64): Save fprs before buying stack.
149 (.note.GNU-stack): Move inside outer #ifdef.
150
1512013-11-16 Alan Modra <amodra@gmail.com>
152
Alan Modra164283f2013-11-16 06:38:55 -0500153 * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
154 (FFI_EXTRA_CIF_FIELDS): Define.
155 * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
156 ABI, not to both fpr and param save area.
157 (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
158 Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
159 code.
160 (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
161 (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
162 not to both fpr and parameter save areas.
163
164 * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
165 function cast and don't call ffi_prep_cif.
166 * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
167
Andrew Haleydb0ace32013-11-16 06:29:25 -05001682013-11-15 Andrew Haley <aph@redhat.com>
169
Andrew Haley31257b32013-11-16 06:35:51 -0500170 * doc/libffi.texi (Closure Example): Fix the sample code.
171 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
172
1732013-11-15 Andrew Haley <aph@redhat.com>
174
Andrew Haleydb0ace32013-11-16 06:29:25 -0500175 * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
176 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
177 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
178 * testsuite/libffi.call/va_1.c (main): Likewise.
179
David Schneiderf3657da2013-11-14 13:02:16 +01001802013-11-14 David Schneider <david.schneider@bivab.de>
181
Anthony Greende10f502013-11-14 10:56:29 -0500182 * src/arm/ffi.c: Fix register allocation for mixed float and
183 doubles.
184 * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
185 for many mixed float and double arguments.
186
Alan Modra58c25772013-11-13 16:55:36 -05001872013-11-13 Alan Modra <amodra@gmail.com>
188
189 * doc/libffi.texi (Simple Example): Correct example code.
190 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
191
Anthony Green8af42f92013-11-13 16:40:28 -05001922013-11-13 Anthony Green <green@moxielogic.com>
193
194 * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
195 based build. (Thanks to tmr111116 on github)
196
Anthony Green2f5b7ce2013-11-09 06:16:32 -05001972013-11-09 Anthony Green <green@moxielogic.com>
198
199 * m4/libtool.m4: Refresh.
200 * configure, Makefile.in: Rebuilt.
201 * README: Add more notes about next release.
202
2032013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
204
205 * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
206 UltraSPARC-IIi as ultrasparc3.
207
Mark Kettenisbecd7542013-11-06 06:43:49 -05002082013-11-06 Mark Kettenis <kettenis@gnu.org>
209
210 * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
211 16-bytes.
212
Konstantin Belousov05c31092013-11-06 06:40:58 -05002132013-11-06 Konstantin Belousov <kib@freebsd.org>
214
215 * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
216 source as not requiring executable stack.
217
Anthony Greencf6bf982013-11-02 17:23:59 -04002182013-11-02 Anthony Green <green@moxielogic.com>
219
220 * doc/libffi.texi (The Basics): Clarify return value buffer size
221 requirements. Also, NULL result buffer pointers are no longer
222 supported.
223 * doc/libffi.info: Rebuilt.
224
Anthony Greenc2422172013-11-02 14:08:23 -07002252013-11-02 Mischa Jonker <mjonker@synopsys.com>
226
227 * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
228 * Makefile.in: Rebuilt.
229
2302013-11-02 David Schneider <david.schneider@bivab.de>
231
232 * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
233 * testsuite/libffi.call/many_mixed.c: New file.
234 * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
235
Anthony Greenf4b843f2013-11-02 17:01:15 -04002362013-11-02 Vitaly Budovski
237
238 * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
239
Mark H Weaverd3372c52013-10-26 08:30:06 -04002402013-10-23 Mark H Weaver <mhw@netris.org>
241
242 * src/mips/ffi.c: Fix handling of uint32_t arguments on the
243 MIPS N32 ABI.
244
Sandra Loosemore16b93a22013-10-15 15:33:59 -04002452013-10-13 Sandra Loosemore <sandra@codesourcery.com>
246
247 * README: Add Nios II to table of supported platforms.
248 * Makefile.am (EXTRA_DIST): Add nios2 files.
249 (nodist_libffi_la_SOURCES): Likewise.
250 * Makefile.in: Regenerated.
251 * configure.ac (nios2*-linux*): New host.
252 (NIOS2): Add AM_CONDITIONAL.
253 * configure: Regenerated.
254 * src/nios2/ffi.c: New.
255 * src/nios2/ffitarget.h: New.
256 * src/nios2/sysv.S: New.
257 * src/prep_cif.c (initialize_aggregate): Handle extra structure
258 alignment via FFI_AGGREGATE_ALIGNMENT.
259 (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
260
Sandra Loosemore2f5626c2013-10-15 15:32:16 -04002612013-10-10 Sandra Loosemore <sandra@codesourcery.com>
262
263 * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
264 Fix uninitialized variable.
265
Marcus Shawcroftf64e4a82013-10-15 15:20:14 -04002662013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
267
268 * testsuite/libffi.call/many.c (many): Replace * with +.
269
Anthony Green128cd1d2013-10-08 06:45:51 -04002702013-10-08 Ondřej Bílka <neleai@seznam.cz>
271
272 * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
273 src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
274 src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
275 src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
276 src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
277 src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
278 spelling errors.
279
Anthony Greend2fcbcd2013-10-08 06:27:46 -04002802013-10-08 Anthony Green <green@moxielogic.com>
281
282 * aclocal.m4, compile, config.guess, config.sub, depcomp,
283 install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
284 * configure.ac: Update version to 3.0.14-rc0.
285 * Makefile.in, configure, Makefile.in, include/Makefile.in,
286 man/Makefile.in, testsuite/Makefile.in: Rebuilt.
Anthony Green128cd1d2013-10-08 06:45:51 -0400287 * README: Mention M88K and VAX.
Anthony Greend2fcbcd2013-10-08 06:27:46 -0400288
2892013-07-15 Miod Vallat <miod@openbsd.org>
290
291 * Makefile.am,
292 configure.ac,
293 src/m88k/ffi.c,
294 src/m88k/ffitarget.h,
295 src/m88k/obsd.S,
296 src/vax/elfbsd.S,
297 src/vax/ffi.c,
298 src/vax/ffitarget.h: Add m88k and vax support.
299
Anthony Greend3d099b2013-07-02 16:11:38 -04003002013-06-24 Alan Modra <amodra@gmail.com>
301
302 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
303 before statements.
304 (ffi_prep_args64): Support little-endian.
305 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
306 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
307 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
308
Mischa Jonkerb082e152013-06-10 16:19:33 +02003092013-06-12 Mischa Jonker <mjonker@synopsys.com>
310
311 * configure.ac: Add support for ARC.
312 * Makefile.am: Likewise.
313 * README: Add ARC details.
314 * src/arc/arcompact.S: New.
315 * src/arc/ffi.c: Likewise.
316 * src/arc/ffitarget.h: Likewise.
317
David Schneider4750e3c2013-03-28 16:56:36 +01003182013-03-28 David Schneider <david.schneider@bivab.de>
319
320 * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
321 * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
322 * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
323 mixed arguments, many doubles.
324 * testsuite/libffi.call/many_double.c: testcase for calling a function using
325 more than 8 doubles.
326 * testcase/libffi.call/many.c: use absolute value to check result against an
327 epsilon
328
Anthony Greencb32c812013-03-17 09:27:55 -04003292013-03-17 Anthony Green <green@moxielogic.com>
330
Anthony Green12b18862013-03-17 18:32:12 -0400331 * README: Update for 3.0.13.
332 * configure.ac: Ditto.
333 * configure: Rebuilt.
334 * doc/*: Update version.
335
3362013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
337
338 * src/closures.c (is_emutramp_enabled
339 [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
340 enclosing #if scope.
341
3422013-03-17 Anthony Green <green@moxielogic.com>
343
Anthony Greencb32c812013-03-17 09:27:55 -0400344 * configure.ac: Only modify toolexecdir in certain cases.
345 * configure: Rebuilt.
346
Anthony Green4acf0052013-03-16 08:18:45 -04003472013-03-16 Gilles Talis <gilles.talis@gmail.com>
348
349 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
350 fparg_count,etc on __NO_FPRS__ targets.
351
Anthony Green8a286f52013-03-16 08:01:19 -04003522013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
353
Anthony Green4acf0052013-03-16 08:18:45 -0400354 * src/m68k/sysv.S (epilogue): Don't use extb instruction on
Anthony Green8a286f52013-03-16 08:01:19 -0400355 m680000 machines.
356
Anthony Green211a9eb2013-03-16 04:24:40 -07003572013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
358
359 * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
360
Anthony Green2fb527a2013-03-16 07:46:38 -04003612013-03-13 Markos Chandras <markos.chandras@imgtec.com>
362
363 * configure.ac: Add support for Imagination Technologies Meta.
364 * Makefile.am: Likewise.
365 * README: Add Imagination Technologies Meta details.
366 * src/metag/ffi.c: New.
367 * src/metag/ffitarget.h: Likewise.
368 * src/metag/sysv.S: Likewise.
369
Anthony Green675c9832013-03-16 08:12:38 -04003702013-02-24 Andreas Schwab <schwab@linux-m68k.org>
371
372 * doc/libffi.texi (Structures): Fix missing category argument of
373 @deftp.
374
Anthony Greenf308faf2013-02-11 14:25:13 -05003752013-02-11 Anthony Green <green@moxielogic.com>
376
377 * configure.ac: Update release number to 3.0.12.
378 * configure: Rebuilt.
379 * README: Update release info.
380
3812013-02-10 Anthony Green <green@moxielogic.com>
382
383 * README: Add Moxie.
384 * src/moxie/ffi.c: Created.
385 * src/moxie/eabi.S: Created.
386 * src/moxie/ffitarget.h: Created.
387 * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
388 * Makefile.in: Rebuilt.
389 * configure.ac: Add Moxie.
390 * configure: Rebuilt.
391 * testsuite/libffi.call/huge_struct.c: Disable format string
392 warnings for moxie*-*-elf tests.
393
3942013-02-10 Anthony Green <green@moxielogic.com>
395
396 * Makefile.am (LTLDFLAGS): Fix reference.
397 * Makefile.in: Rebuilt.
398
Anthony Green4ea22e52013-02-10 08:48:38 -05003992013-02-10 Anthony Green <green@moxielogic.com>
400
401 * README: Update supported platforms. Update test results link.
402
Anthony Green10e77222013-02-10 08:47:26 -05004032013-02-09 Anthony Green <green@moxielogic.com>
404
405 * testsuite/libffi.call/negint.c: Remove forced -O2.
406 * testsuite/libffi.call/many2.c (foo): Remove GCCism.
407 * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
408
409 * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
410 closure return type fix developed by Martin v. Löwis for cpython
411 fork.
412
Anthony Green70b11b42013-02-08 16:12:19 -05004132013-02-08 Andreas Tobler <andreast@fgznet.ch>
414
415 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
416 support.
417 * src/powerpc/sysv.S: Ditto.
418
Anthony Green63ba1fa2013-02-08 15:18:19 -05004192013-02-08 Anthony Green <green@moxielogic.com>
420
421 * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
422 arm*-*-*.
423
4242013-02-08 Anthony Green <green@moxielogic.com>
425
426 * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
427
Anthony Green24fbca42013-02-08 14:19:56 -05004282013-02-08 Matthias Klose <doko@ubuntu.com>
Anthony Greenb0fa11c2013-02-08 14:17:13 -0500429
430 * man/ffi_prep_cif.3: Clean up for debian linter.
431
Anthony Green24fbca42013-02-08 14:19:56 -05004322013-02-08 Peter Bergner <bergner@vnet.ibm.com>
Anthony Green8bd15d12013-02-08 13:56:37 -0500433
434 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
435 on the stack.
436
Anthony Greencb03ea82013-02-08 12:25:18 -05004372013-02-08 Anthony Green <green@moxielogic.com>
438
Anthony Green7aab8252013-02-08 13:26:21 -0500439 * Makefile.am (EXTRA_DIST): Add missing files.
440 * testsuite/Makefile.am (EXTRA_DIST): Ditto.
441 * Makefile.in: Rebuilt.
442
4432013-02-08 Anthony Green <green@moxielogic.com>
444
Anthony Greencb03ea82013-02-08 12:25:18 -0500445 * configure.ac: Move sparc asm config checks to within functions
446 for compatibility with sun tools.
447 * configure: Rebuilt.
448 * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
449 systems.
450 * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
451 flusher.
452
Anthony Green35ee8d42013-02-08 07:12:41 -05004532013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
454
455 * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
456 small big-endian structures.
457 (ffi_prep_args): Ditto.
458
Anthony Greened6ae952013-02-07 16:43:36 -05004592013-02-07 Anthony Green <green@moxielogic.com>
460
Anthony Green9db7e1a2013-02-07 21:06:08 -0500461 * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
462 (effectively hiding ffi_call_v8).
463
4642013-02-07 Anthony Green <green@moxielogic.com>
465
Anthony Greence0138e2013-02-07 18:04:01 -0500466 * configure.ac: Update bug reporting address.
467 * configure.in: Rebuild.
468
Anthony Greenfd07c9e2013-02-07 18:00:36 -0500469 * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
470 Sun compiler.
471 * src/sparc/ffi.c (ffi_call): Remove warning.
472 Call ffi_flush_icache for non-GCC builds.
473 (ffi_prep_closure_loc): Use ffi_flush_icache.
474
Anthony Greened6ae952013-02-07 16:43:36 -0500475 * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
476 * Makefile.in: Rebuilt.
477 * libtool-ldflags: New file.
478
Anthony Greenffef2e02013-02-07 15:47:01 -05004792013-02-07 Daniel Schepler <dschepler@gmail.com>
480
481 * configure.ac: Correctly identify x32 systems as 64-bit.
482 * m4/libtool.m4: Remove libtool expr error.
483 * aclocal.m4, configure: Rebuilt.
484
Anthony Greenf3a4f3f2013-02-07 09:57:20 -05004852013-02-07 Anthony Green <green@moxielogic.com>
486
Anthony Green176aa9d2013-02-07 15:29:22 -0500487 * configure.ac: Fix GCC usage test.
488 * configure: Rebuilt.
Anthony Green95eeceb2013-02-07 15:32:46 -0500489 * README: Mention LLVM/GCC x86_64 issue.
490 * testsuite/Makefile.in: Rebuilt.
Anthony Green176aa9d2013-02-07 15:29:22 -0500491
4922013-02-07 Anthony Green <green@moxielogic.com>
493
Anthony Greenf3a4f3f2013-02-07 09:57:20 -0500494 * testsuite/libffi.call/cls_double_va.c (main): Replace // style
495 comments with /* */ for xlc compiler.
496 * testsuite/libffi.call/stret_large.c (main): Ditto.
497 * testsuite/libffi.call/stret_large2.c (main): Ditto.
498 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
499 * testsuite/libffi.call/huge_struct.c (main): Ditto.
500 * testsuite/libffi.call/float_va.c (main): Ditto.
501 * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
502 * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
503 * testsuite/libffi.call/cls_pointer.c (main): Ditto.
504 * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
505
Anthony Greenf7cd61e2013-02-06 17:38:04 -05005062013-02-06 Anthony Green <green@moxielogic.com>
507
Anthony Green522f8fe2013-02-06 20:31:31 -0500508 * man/ffi_prep_cif.3: Clean up for debian lintian checker.
509
5102013-02-06 Anthony Green <green@moxielogic.com>
511
Anthony Greenf7cd61e2013-02-06 17:38:04 -0500512 * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
513 * Makefile.in: Rebuild.
514
Anthony Green6a790122013-02-06 17:37:15 -05005152013-02-02 Mark H Weaver <mhw@netris.org>
516
517 * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
518 via general purpose registers.
519
Anthony Greenaeb87192013-01-21 07:37:30 -05005202013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
521
522 * README: Add MicroBlaze details.
523 * Makefile.am: Add MicroBlaze support.
524 * configure.ac: Likewise.
525 * src/microblaze/ffi.c: New.
526 * src/microblaze/ffitarget.h: Likewise.
527 * src/microblaze/sysv.S: Likewise.
528
5292013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
530 * testsuite/libffi.call/return_uc.c: Fixed issue.
531
Anthony Green20cae322013-01-21 07:07:38 -05005322013-01-21 Chris Zankel <chris@zankel.net>
533
534 * README: Add Xtensa support.
535 * Makefile.am: Likewise.
536 * configure.ac: Likewise.
537 * Makefile.in Regenerate.
538 * configure: Likewise.
539 * src/prep_cif.c: Handle Xtensa.
540 * src/xtensa: New directory.
541 * src/xtensa/ffi.c: New file.
542 * src/xtensa/ffitarget.h: Ditto.
543 * src/xtensa/sysv.S: Ditto.
544
Anthony Greenbff052d2013-01-11 10:24:32 -05005452013-01-11 Anthony Green <green@moxielogic.com>
546
Anthony Green05fbe1f2013-01-11 16:54:40 -0500547 * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
548 comments with /* */ for xlc compiler.
549 * src/powerpc/aix.S (ffi_call_AIX): Ditto.
Anthony Greenf03eab02013-01-11 17:14:11 -0500550 * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
551 deprecated inline function.
552 * testsuite/libffi.special/ffitestcxx.h: Ditto.
Anthony Green05fbe1f2013-01-11 16:54:40 -0500553 * README: Add update for AIX support.
554
5552013-01-11 Anthony Green <green@moxielogic.com>
556
Anthony Greenbff052d2013-01-11 10:24:32 -0500557 * configure.ac: Robustify pc relative reloc check.
558 * m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
559 changing option for 32-bit x86.
560 * aclocal.m4, configure: Rebuilt.
561 * README: Update supported target list.
562
Anthony Green2d9b3932013-01-09 21:14:54 -05005632013-01-10 Anthony Green <green@moxielogic.com>
564
Anthony Greencd41aea2013-01-10 17:25:45 -0500565 * README (tested): Add Compiler column to table.
566
5672013-01-10 Anthony Green <green@moxielogic.com>
568
Anthony Green8bf987d2013-01-10 17:24:51 -0500569 * src/x86/ffi64.c (struct register_args): Make sse array and array
570 of unions for sunpro compiler compatibility.
571
5722013-01-10 Anthony Green <green@moxielogic.com>
573
Anthony Green13e2d7b2013-01-10 10:52:02 -0500574 * configure.ac: Test target platform size_t size. Handle both 32
575 and 64-bit builds for x86_64-* and i?86-* targets (allowing for
576 CFLAG option to change default settings).
577 * configure, aclocal.m4: Rebuilt.
578
5792013-01-10 Anthony Green <green@moxielogic.com>
580
Anthony Green51415432013-01-10 07:35:53 -0500581 * testsuite/libffi.special/special.exp: Only run exception
582 handling tests when using GNU compiler.
583
Anthony Green56ba8d82013-01-10 07:25:10 -0500584 * m4/ax_compiler_vendor.m4: New file.
585 * configure.ac: Test for compiler vendor and don't use
586 AX_CFLAGS_WARN_ALL with the sun compiler.
587 * aclocal.m4, configure: Rebuilt.
588
5892013-01-10 Anthony Green <green@moxielogic.com>
590
Anthony Green6a028ca2013-01-10 01:19:43 -0500591 * include/ffi_common.h: Don't use GCCisms to define types when
592 building with the SUNPRO compiler.
593
5942013-01-10 Anthony Green <green@moxielogic.com>
595
Anthony Green2d9b3932013-01-09 21:14:54 -0500596 * configure.ac: Put local.exp in the right place.
597 * configure: Rebuilt.
598
599 * src/x86/ffi.c: Update comment about regparm function attributes.
600 * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
601 that all function arguments be passed on the stack (no regparm
602 support).
603
Anthony Greenf7879bc2013-01-08 07:30:28 -05006042013-01-08 Anthony Green <green@moxielogic.com>
605
Anthony Green83089842013-01-08 15:14:21 -0500606 * configure.ac: Generate local.exp. This sets CC_FOR_TARGET
607 when we are using the vendor compiler.
608 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
609 ../local.exp.
610 * configure, testsuite/Makefile.in: Rebuilt.
611
Anthony Greenf26c7ca2013-01-08 14:47:05 -0500612 * testsuite/libffi.call/call.exp: Run tests with different
613 options, depending on whether or not we are using gcc or the
614 vendor compiler.
615 * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
616 whether or not we are building/testing with gcc.
617
6182013-01-08 Anthony Green <green@moxielogic.com>
619
Anthony Green74c776e2013-01-08 12:25:54 -0500620 * configure.ac: Switch x86 solaris target to X86 by default.
621 * configure: Rebuilt.
622
6232013-01-08 Anthony Green <green@moxielogic.com>
624
Anthony Green8962c8c2013-01-08 12:22:24 -0500625 * configure.ac: Fix test for read-only eh_frame.
626 * configure: Rebuilt.
627
6282013-01-08 Anthony Green <green@moxielogic.com>
629
Anthony Green35ddb692013-01-08 07:53:37 -0500630 * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
631 when building with the GNU toolchain.
Anthony Greenf7879bc2013-01-08 07:30:28 -0500632 * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
633 compiler.
634
Anthony Green8f4772f2013-01-07 06:14:53 -05006352013-01-07 Thorsten Glaser <tg@mirbsd.org>
636
Anthony Green67cea902013-01-07 06:30:24 -0500637 * testsuite/libffi.call/cls_uchar_va.c,
638 testsuite/libffi.call/cls_ushort_va.c,
639 testsuite/libffi.call/va_1.c: Testsuite fixes.
640
6412013-01-07 Thorsten Glaser <tg@mirbsd.org>
642
Anthony Green8f4772f2013-01-07 06:14:53 -0500643 * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
644 (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
645 * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
646
Anthony Greenea7f8442013-01-04 09:09:32 -05006472013-01-04 Anthony Green <green@moxielogic.com>
648
649 * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
650 and -Wall. This is set in the configure script after testing for
651 GCC.
652 * Makefile.in: Rebuilt.
653
Anthony Greenf06c0f12013-01-02 09:39:17 -05006542013-01-02 rofl0r <https://github.com/rofl0r>
655
656 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
657 when long double == double.
658
6592013-01-02 Reini Urban <rurban@x-ray.at>
660
661 * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
662 (required for shared libs on cygwin/mingw).
663 * Makefile.in: Rebuilt.
664
Anthony Greend3d099b2013-07-02 16:11:38 -04006652012-10-31 Alan Modra <amodra@gmail.co>
Anthony Greendfadfb12012-10-31 06:46:41 -0400666
667 * src/powerpc/linux64_closure.S: Add new ABI support.
668 * src/powerpc/linux64.S: Likewise.
669
Anthony Greene944b8c2012-10-30 14:06:09 -04006702012-10-30 Magnus Granberg <zorry@gentoo.org>
671 Pavel Labushev <pavel.labushev@runbox.ru>
672
673 * configure.ac: New options pax_emutramp
674 * configure, fficonfig.h.in: Regenerated
675 * src/closures.c: New function emutramp_enabled_check() and
676 checks.
677
Anthony Greenf3429962012-10-30 07:42:27 -04006782012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
679
680 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
681 lion) and future version.
682 * configure: Rebuild.
683
Anthony Green58e8b662012-10-30 07:07:19 -04006842012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
685 Marcus Shawcroft <marcus.shawcroft at arm.com>
686
687 * README: Add details of aarch64 port.
688 * src/aarch64/ffi.c: New.
689 * src/aarch64/ffitarget.h: Likewise.
690 * src/aarch64/sysv.S: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500691 * Makefile.am: Support aarch64.
692 * configure.ac: Support aarch64.
693 * Makefile.in, configure: Rebuilt.
Anthony Green58e8b662012-10-30 07:07:19 -0400694
6952012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
696 Marcus Shawcroft <marcus.shawcroft at arm.com>
697
698 * testsuite/lib/libffi.exp: Add support for aarch64.
699 * testsuite/libffi.call/cls_struct_va1.c: New.
700 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
701 * testsuite/libffi.call/cls_uint_va.c: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500702 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
Anthony Green58e8b662012-10-30 07:07:19 -0400703 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
704 * testsuite/libffi.call/nested_struct11.c: Likewise.
705 * testsuite/libffi.call/uninitialized.c: Likewise.
706 * testsuite/libffi.call/va_1.c: Likewise.
707 * testsuite/libffi.call/va_struct1.c: Likewise.
708 * testsuite/libffi.call/va_struct2.c: Likewise.
709 * testsuite/libffi.call/va_struct3.c: Likewise.
710
Anthony Green9c00a3f2012-10-12 16:46:06 -04007112012-10-12 Walter Lee <walt@tilera.com>
712
713 * Makefile.am: Add TILE-Gx/TILEPro support.
714 * configure.ac: Likewise.
715 * Makefile.in: Regenerate.
716 * configure: Likewise.
717 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
718 * src/tile: New directory.
719 * src/tile/ffi.c: New file.
720 * src/tile/ffitarget.h: Ditto.
721 * src/tile/tile.S: Ditto.
722
7232012-10-12 Matthias Klose <doko@ubuntu.com>
724
725 * generate-osx-source-and-headers.py: Normalize whitespace.
726
Anthony Green048d2f42012-10-11 10:55:25 -04007272012-09-14 David Edelsohn <dje.gcc@gmail.com>
728
729 * configure: Regenerated.
730
7312012-08-26 Andrew Pinski <apinski@cavium.com>
732
733 PR libffi/53014
734 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
735 soft-float.
736
7372012-08-08 Uros Bizjak <ubizjak@gmail.com>
738
739 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
740 just return FFI_BAD_ABI when things are wrong.
741
7422012-07-18 H.J. Lu <hongjiu.lu@intel.com>
743
744 PR libffi/53982
745 PR libffi/53973
746 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
747 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
748
7492012-05-16 H.J. Lu <hongjiu.lu@intel.com>
750
751 * configure: Regenerated.
752
Nicolas Lelongd330f192012-05-05 09:37:02 -04007532012-05-05 Nicolas Lelong
754
755 * libffi.xcodeproj/project.pbxproj: Fixes.
756 * README: Update for iOS builds.
757
Anthony Green213ed152012-04-27 01:34:15 -04007582012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
759
760 * configure.ac: Add Blackfin/sysv support
761 * Makefile.am: Add Blackfin/sysv support
762 * src/bfin/ffi.c: Add Blackfin/sysv support
763 * src/bfin/ffitarget.h: Add Blackfin/sysv support
Anthony Green213ed152012-04-27 01:34:15 -0400764
Anthony Green7e0a4122012-04-11 22:47:44 -04007652012-04-11 Anthony Green <green@moxielogic.com>
766
767 * Makefile.am (EXTRA_DIST): Add new script.
768 * Makefile.in: Rebuilt.
769
Zachary Waldowski39e6a582012-04-11 22:39:46 -04007702012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
771
772 * generate-ios-source-and-headers.py,
773 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
774 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
775 generation into an Xcode "run script" phase. Include both as
776 Xcode build scripts. Don't always regenerate config files.
777
Anthony Green853cc722012-04-10 06:33:33 -04007782012-04-10 Anthony Green <green@moxielogic.com>
779
780 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
781
Anthony Green3f502302012-04-06 20:34:51 -04007822012-04-06 Anthony Green <green@moxielogic.com>
783
784 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
785 * Makefile.in: Rebuilt.
786
Mike Lewisebb8e892012-04-06 20:02:08 -04007872012-04-06 Mike Lewis <mikelikespie@gmail.com>
788
789 * generate-ios-source-and-headers.py: New file.
790 * libffi.xcodeproj/project.pbxproj: New file.
791 * README: Update instructions on building iOS binary.
792 * build-ios.sh: Delete.
793
Anthony Greena044a562012-04-06 10:39:10 -04007942012-04-06 Anthony Green <green@moxielogic.com>
795
796 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
797 compilers, then use it.
798
Anthony Green048d2f42012-10-11 10:55:25 -04007992012-04-06 H.J. Lu <hongjiu.lu@intel.com>
800
801 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
802
Anthony Green59bb61a2012-04-06 08:26:14 -04008032012-04-06 Anthony Green <green@moxielogic.com>
804
805 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
806 * testsuite/Makefile.in: Rebuilt.
807
Zachary Waldowski39dccdd2012-04-05 12:32:41 -04008082012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
809
810 * include/ffi.h.in: Add missing trampoline table fields.
811 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
812 in CNAME.
813 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
814
Anthony Green089dbce2013-01-02 08:37:35 -05008152012-04-02 Peter Bergner <bergner@vnet.ibm.com>
816
817 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
818 Silence casting pointer to integer of different size warning.
819 Delete goto to previously deleted label.
820 (ffi_call): Silence possibly undefined warning.
821 (ffi_closure_helper_SYSV): Declare variable type.
822
8232012-04-02 Peter Rosin <peda@lysator.liu.se>
824
825 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
826 value in the Intel version as is already done for the AT&T version.
827 (ffi_closure_SYSV): Likewise.
828 (ffi_closure_raw_SYSV): Likewise.
829 (ffi_closure_STDCALL): Likewise.
830
Peter Rosin0a1ab122012-03-30 08:14:08 -04008312012-03-29 Peter Rosin <peda@lysator.liu.se>
832
833 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
834 generation, fix the ENDP label and remove the surplus third arg
835 from the 'lea' insn.
836
8372012-03-29 Peter Rosin <peda@lysator.liu.se>
838
839 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
840 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
841 it. Also instruct the assembler to add a frame to the function.
842
8432012-03-23 Peter Rosin <peda@lysator.liu.se>
844
845 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
846 * Makefile.in: Rebuilt.
847 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
848 to all data exports, when compiling libffi clients using MSVC.
849
8502012-03-29 Peter Rosin <peda@lysator.liu.se>
851
852 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
853 make it the default for MSVC.
854 (FFI_TYPE_MS_STRUCT): New structure return convention.
855 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
856 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
857 instead of an ordinary FFI_TYPE_STRUCT.
858 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
859 (ffi_call): Likewise.
860 (ffi_prep_incoming_args_SYSV): Likewise.
861 (ffi_raw_call): Likewise.
862 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
863 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
864 return a pointer to the result structure in eax and don't pop
865 that pointer from the stack, the caller takes care of it.
866 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
867 (ffi_closure_raw_SYSV): Likewise.
868
8692012-03-22 Peter Rosin <peda@lysator.liu.se>
870
871 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
872 assembly version with Intel syntax.
873 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
874
8752012-03-23 Peter Rosin <peda@lysator.liu.se>
876
877 * testsuite/libffi.call/ffitest.h: Provide abstration of
878 __attribute__((fastcall)) in the form of a __FASTCALL__
879 define. Define it to __fastcall for MSVC.
880 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
881 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
882 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
883 * testsuite/libffi.call/strlen2_win32.c: Likewise.
884 * testsuite/libffi.call/struct1_win32.c: Likewise.
885 * testsuite/libffi.call/struct2_win32.c: Likewise.
886
8872012-03-22 Peter Rosin <peda@lysator.liu.se>
888
889 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
890 frame on function entry, MASM adds one automatically.
891
8922012-03-22 Peter Rosin <peda@lysator.liu.se>
893
894 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
895 bits in the MSVC headers.
896
8972012-03-22 Peter Rosin <peda@lysator.liu.se>
898
899 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
900 with no declarations after statements.
901 * testsuite/libffi.call/cls_16byte.c: Likewise.
902 * testsuite/libffi.call/cls_18byte.c: Likewise.
903 * testsuite/libffi.call/cls_19byte.c: Likewise.
904 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
905 * testsuite/libffi.call/cls_20byte.c: Likewise.
906 * testsuite/libffi.call/cls_20byte1.c: Likewise.
907 * testsuite/libffi.call/cls_24byte.c: Likewise.
908 * testsuite/libffi.call/cls_2byte.c: Likewise.
909 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
910 * testsuite/libffi.call/cls_3byte1.c: Likewise.
911 * testsuite/libffi.call/cls_3byte2.c: Likewise.
912 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
913 * testsuite/libffi.call/cls_4byte.c: Likewise.
914 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
915 * testsuite/libffi.call/cls_5byte.c: Likewise.
916 * testsuite/libffi.call/cls_64byte.c: Likewise.
917 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
918 * testsuite/libffi.call/cls_6byte.c: Likewise.
919 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
920 * testsuite/libffi.call/cls_7byte.c: Likewise.
921 * testsuite/libffi.call/cls_8byte.c: Likewise.
922 * testsuite/libffi.call/cls_9byte1.c: Likewise.
923 * testsuite/libffi.call/cls_9byte2.c: Likewise.
924 * testsuite/libffi.call/cls_align_double.c: Likewise.
925 * testsuite/libffi.call/cls_align_float.c: Likewise.
926 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
927 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
928 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
929 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
930 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
931 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
932 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
933 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
934 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
935 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
936 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
937 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
938 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
939 * testsuite/libffi.call/huge_struct.c: Likewise.
940 * testsuite/libffi.call/nested_struct.c: Likewise.
941 * testsuite/libffi.call/nested_struct1.c: Likewise.
942 * testsuite/libffi.call/nested_struct10.c: Likewise.
943 * testsuite/libffi.call/nested_struct2.c: Likewise.
944 * testsuite/libffi.call/nested_struct3.c: Likewise.
945 * testsuite/libffi.call/nested_struct4.c: Likewise.
946 * testsuite/libffi.call/nested_struct5.c: Likewise.
947 * testsuite/libffi.call/nested_struct6.c: Likewise.
948 * testsuite/libffi.call/nested_struct7.c: Likewise.
949 * testsuite/libffi.call/nested_struct8.c: Likewise.
950 * testsuite/libffi.call/nested_struct9.c: Likewise.
951 * testsuite/libffi.call/stret_large.c: Likewise.
952 * testsuite/libffi.call/stret_large2.c: Likewise.
953 * testsuite/libffi.call/stret_medium.c: Likewise.
954 * testsuite/libffi.call/stret_medium2.c: Likewise.
955 * testsuite/libffi.call/struct1.c: Likewise.
956 * testsuite/libffi.call/struct1_win32.c: Likewise.
957 * testsuite/libffi.call/struct2.c: Likewise.
958 * testsuite/libffi.call/struct2_win32.c: Likewise.
959 * testsuite/libffi.call/struct3.c: Likewise.
960 * testsuite/libffi.call/struct4.c: Likewise.
961 * testsuite/libffi.call/struct5.c: Likewise.
962 * testsuite/libffi.call/struct6.c: Likewise.
963 * testsuite/libffi.call/struct7.c: Likewise.
964 * testsuite/libffi.call/struct8.c: Likewise.
965 * testsuite/libffi.call/struct9.c: Likewise.
966 * testsuite/libffi.call/testclosure.c: Likewise.
967
Anthony Greene72ed5e2012-03-21 09:52:28 -04009682012-03-21 Peter Rosin <peda@lysator.liu.se>
969
970 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
971 printing doubles (%lf is for long doubles).
972 (main): Likewise.
973
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009742012-03-21 Peter Rosin <peda@lysator.liu.se>
975
976 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
977 (set_ld_library_path_env_vars): Add the library search dir to PATH
978 (and save PATH for later).
979 (restore_ld_library_path_env_vars): Restore PATH.
980
Anthony Greenccee09a2013-01-02 08:41:55 -05009812012-03-21 Peter Rosin <peda@lysator.liu.se>
982
983 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
984 (set_ld_library_path_env_vars): Add the library search dir to PATH
985 (and save PATH for later).
986 (restore_ld_library_path_env_vars): Restore PATH.
987
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009882012-03-20 Peter Rosin <peda@lysator.liu.se>
989
990 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
991 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
992 visible outside the PROC, so that ffi_closure_THISCALL can see it.
993
Anthony Green048d2f42012-10-11 10:55:25 -04009942012-03-20 Peter Rosin <peda@lysator.liu.se>
995
996 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
997 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
998 visible outside the PROC, so that ffi_closure_THISCALL can see it.
999
Anthony Greenbd78c9c2012-03-21 08:09:30 -040010002012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
1001
1002 * src/m68k/ffi.c: Add MINT support.
1003 * src/m68k/sysv.S: Ditto.
1004
Anthony Green048d2f42012-10-11 10:55:25 -040010052012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
1006
1007 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1008 ffi_call_VFP().
1009 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1010 ffi_closure_VFP.
1011 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1012
Anthony Green089dbce2013-01-02 08:37:35 -050010132012-03-19 chennam <csit@axway.com>
Anthony Green65f40c32012-04-03 07:35:59 -04001014
Anthony Green089dbce2013-01-02 08:37:35 -05001015 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1016 support.
Anthony Green048d2f42012-10-11 10:55:25 -04001017
Anthony Green84d32532012-03-19 23:07:35 -040010182012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
1019
1020 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1021 just return FFI_BAD_ABI when things are wrong.
1022 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1023
10242012-03-09 David Edelsohn <dje.gcc@gmail.com>
1025
1026 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1027 change to return value of ffi_closure_helper_DARWIN and load type
1028 from return type.
1029
Anthony Green964c5b92012-03-03 14:46:20 -050010302012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1033 long.
1034 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1035 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1036 first.
1037
1038 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1039 (ffi_arg): Set to unsigned long long for x32.
1040 (ffi_sarg): Set to long long for x32.
1041
10422012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1043
1044 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1045
Anthony Green6c194232012-03-03 14:17:54 -050010462012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
1047
1048 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1049 windows-like hosts.
1050 * configure: Rebuilt.
1051
Anthony Green7c5e60b2012-03-29 08:48:22 -040010522012-02-27 Mikael Pettersson <mikpe@it.uu.se>
1053
1054 PR libffi/52223
1055 * Makefile.am (FLAGS_TO_PASS): Define.
1056 * Makefile.in: Regenerate.
1057
Anthony Green8360bf12012-02-23 07:01:13 -050010582012-02-23 Anthony Green <green@moxielogic.com>
1059
1060 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1061 directly.
1062
Anthony Green7c5e60b2012-03-29 08:48:22 -040010632012-02-23 Kai Tietz <ktietz@redhat.com>
1064
1065 PR libffi/52221
1066 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1067 prototype.
1068 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1069 thiscall-convention.
1070 (ffi_raw_call): Use ffi_prep_args_raw.
1071 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1072 implementation for stub.
1073
Anthony Greendee20f82012-02-10 13:06:46 -050010742012-02-10 Kai Tietz <ktietz@redhat.com>
1075
1076 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1077 windows target.
1078 * configure: Regenerated.
Anthony Green8360bf12012-02-23 07:01:13 -05001079
Anthony Greendee20f82012-02-10 13:06:46 -050010802012-02-08 Kai Tietz <ktietz@redhat.com>
1081
1082 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1083 also FFI_THISCALL.
1084 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1085 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1086 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1087 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1088 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1089 for thiscall-calling convention.
1090 * testsuite/libffi.call/closure_thiscall.c: New test.
1091
Anthony Green1ff9c602012-02-01 16:34:30 -060010922012-01-28 Kai Tietz <ktietz@redhat.com>
1093
1094 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1095 argument to prototype for specify calling-convention.
1096 (ffi_call): Add support for stdcall/thiscall convention.
1097 (ffi_prep_args): Likewise.
1098 (ffi_raw_call): Likewise.
1099 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1100 FFI_FASTCALL.
1101 * src/x86/win32.S (_ffi_call_win32): Add support for
1102 fastcall/thiscall calling-convention calls.
1103 * testsuite/libffi.call/fastthis1_win32.c: New test.
1104 * testsuite/libffi.call/fastthis2_win32.c: New test.
1105 * testsuite/libffi.call/fastthis3_win32.c: New test.
1106 * testsuite/libffi.call/strlen2_win32.c: New test.
1107 * testsuite/libffi.call/many2_win32.c: New test.
1108 * testsuite/libffi.call/struct1_win32.c: New test.
1109 * testsuite/libffi.call/struct2_win32.c: New test.
1110
Anthony Green211060e2012-01-23 14:24:01 -050011112012-01-23 Uros Bizjak <ubizjak@gmail.com>
1112
1113 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1114
Anthony Green1ff9c602012-02-01 16:34:30 -060011152012-01-23 Anthony Green <green@moxielogic.com>
1116 Chris Young <cdyoung@ntlworld.com>
Anthony Green9e9c4ae2012-01-23 14:11:23 -05001117
1118 * configure.ac: Add Amiga support.
1119 * configure: Rebuilt.
1120
11212012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
Anthony Green8efc0b12012-01-23 13:47:38 -05001122
1123 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1124
Anthony Green1ff9c602012-02-01 16:34:30 -060011252012-01-23 Andreas Schwab <schwab@linux-m68k.org>
Anthony Greencd2277c2012-01-23 13:43:38 -05001126
1127 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1128 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1129
Anthony Greenc365ee72012-01-23 11:13:18 -050011302012-01-19 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR rtl-optimization/48496
1133 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1134
11352012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1136
1137 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1138 * configure: Regenerate.
1139
11402011-12-07 Andrew Pinski <apinski@cavium.com>
1141
1142 PR libffi/50051
1143 * src/mips/n32.S: Add ".set mips4".
1144
11452011-11-21 Andreas Tobler <andreast@fgznet.ch>
1146
1147 * configure: Regenerate.
1148
Anthony Greenff9454d2011-11-12 17:18:51 -050011492011-11-12 David Gilbert <david.gilbert@linaro.org>
1150
1151 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1152 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1153 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1154 src/cris/ffi.c, src/prep_cif.c,
1155 testsuite/libffi.call/cls_double_va.c,
1156 testsuite/libffi.call/cls_longdouble_va.c,
1157 testsuite/libffi.call/float_va.c: Many changes to support variadic
1158 function calls.
1159
Anthony Green52891f82011-11-12 16:35:55 -050011602011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1161
1162 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1163 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1164 softfloat powerpc variants.
1165
Anthony Green6a6e7f82011-11-12 16:20:42 -050011662011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
1167
1168 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1169 * configure: Rebuilt.
1170
Anthony Greend52fbed2011-11-12 16:13:41 -050011712011-11-12 Timothy Wall <twall@users.sf.net>
1172
1173 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1174 alignment of 4 for wince on ARM.
1175
Anthony Greenaf18df22011-11-12 15:52:08 -050011762011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1177 Anthony Green <green@moxielogic.com>
1178
1179 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1180 instructions (not available on some cores, like the PPC440).
1181
Anthony Greenc411f142011-11-12 07:32:36 -050011822011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
Anthony Green8c019542011-09-06 14:26:32 -04001183
Anthony Greenc411f142011-11-12 07:32:36 -05001184 * m4/ax_enable_builddir: Change from string comparison to numeric
Anthony Green52891f82011-11-12 16:35:55 -05001185 comparison for wc output.
Anthony Green236c9392011-11-12 07:37:40 -05001186 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1187 X 10.7.
1188 * configure: Rebuilt.
Anthony Greenee6696f2011-08-23 12:30:29 -04001189
Anthony Green6a6e7f82011-11-12 16:20:42 -050011902011-11-12 Anthony Green <green@moxielogic.com>
1191
1192 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1193 files with debug info.
1194 * Makefile.in: Rebuilt.
1195
11962011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
1197
1198 * README: Update list of supported OpenBSD systems.
1199
12002011-11-12 Anthony Green <green@moxielogic.com>
1201
1202 * libtool-version: Update.
1203 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1204 FFI_DEBUG.
1205 (libffi_la_SOURCES): Remove src/debug.c
1206 (EXTRA_DIST): Add src/debug.c
1207 * Makefile.in: Rebuilt.
1208 * README: Update for 3.0.11.
1209
Anthony Green3d561062011-11-12 07:20:24 -050012102011-11-10 Richard Henderson <rth@redhat.com>
Anthony Green049d8382011-08-22 14:50:10 -04001211
Anthony Green3d561062011-11-12 07:20:24 -05001212 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1213 * configure, aclocal.m4: Rebuild.
1214
12152011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1216
1217 PR libffi/49594
1218 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1219 helper reference track the architecture pointer size.
1220
12212011-08-25 Andrew Haley <aph@redhat.com>
1222
1223 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1224 instructions.
1225 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
Anthony Green049d8382011-08-22 14:50:10 -04001226
Anthony Greend992ac52011-07-29 17:32:53 -040012272011-07-11 Andrew Haley <aph@redhat.com>
1228
1229 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1230
12312011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232
1233 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1234 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1235
12362011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237
1238 PR libffi/46660
1239 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1240 mips-sgi-irix6*.
1241 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1242
12432011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1244
1245 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1246 PRId8 instead of %hhu, %hhd.
1247 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1248 PRIu8): Define.
1249 [__sgi__] (PRId8, PRIu8): Define.
1250
12512011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1252
1253 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1254 Define.
1255 Use them to handle ELF vs. ECOFF differences.
1256 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1257
Anthony Green2d3fb362011-03-30 16:54:42 -040012582011-03-30 Timothy Wall <twall@users.sf.net>
1259
1260 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1261 * src/powerpc/darwin_closure.S: ditto.
1262
Anthony Green25416792011-02-25 15:09:13 -050012632011-02-25 Anthony Green <green@moxielogic.com>
1264
Anthony Green74ee6ea2011-02-25 15:52:14 -05001265 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1266 32-bit ABIs.
Anthony Green25416792011-02-25 15:09:13 -05001267
Anthony Green8cf88782011-02-15 15:19:49 -050012682011-02-15 Anthony Green <green@moxielogic.com>
1269
1270 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1271 * configure: Rebuilt.
1272
Anthony Greend992ac52011-07-29 17:32:53 -040012732011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1274
1275 * configure: Regenerate.
1276
Anthony Green1fbf9dc2011-02-13 08:06:39 -050012772011-02-13 Anthony Green <green@moxielogic.com>
1278
1279 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1280 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1281 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1282
1283 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1284 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1285
1286 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1287 just return FFI_BAD_ABI when things are wrong.
1288 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1289 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1290 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1291 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1292 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1293
Anthony Green1833aa02011-02-11 07:11:04 -050012942011-02-11 Anthony Green <green@moxielogic.com>
1295
1296 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1297 just return FFI_BAD_ABI when things are wrong.
1298
Anthony Green7c5e60b2012-03-29 08:48:22 -040012992012-02-11 Eric Botcazou <ebotcazou@adacore.com>
1300
1301 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1302
Anthony Green42695e72011-02-09 15:12:35 -050013032011-02-09 Stuart Shelton <srcshelton@gmail.com>
1304
1305 http://bugs.gentoo.org/show_bug.cgi?id=286911
1306 * src/mips/ffitarget.h: Clean up error messages.
1307 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1308 ffi_raw*.
1309 * include/ffi.h.in: Add pragma for SGI compiler.
1310
Anthony Greena6e56b92011-02-09 15:00:42 -050013112011-02-09 Anthony Green <green@moxielogic.com>
1312
1313 * configure.ac: Add powerpc64-*-darwin* support.
1314
Anthony Green0cad4382011-02-09 06:11:46 -050013152011-02-09 Anthony Green <green@moxielogic.com>
Anthony Green11062292011-02-08 19:20:09 -05001316
Anthony Green747d6c32011-02-09 14:56:23 -05001317 * README: Mention Interix.
1318
13192011-02-09 Jonathan Callen <abcd@gentoo.org>
1320
1321 * configure.ac: Add Interix to win32/cygwin/mingw case.
1322 * configure: Ditto.
1323 * src/closures.c: Treat Interix like Cygwin, instead of as a
1324 generic win32.
1325
13262011-02-09 Anthony Green <green@moxielogic.com>
1327
Anthony Green69dbe842011-02-09 07:38:43 -05001328 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1329 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1330 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1331 (ffi_prep_closure_loc): Check for bad ABI.
1332 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1333 (initialize_aggregate): Check for bad types.
Anthony Green0cad4382011-02-09 06:11:46 -05001334
Anthony Green90af15e2011-02-12 12:29:36 -050013352011-02-09 Landon Fuller <landonf@plausible.coop>
Anthony Green0cad4382011-02-09 06:11:46 -05001336
1337 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1338 src/arm/trampoline.S.
1339 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1340 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1341 * src/arm/ffi.c (ffi_trampoline_table)
1342 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1343 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1344 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1345 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1346 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1347 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1348 separately.
1349 * src/arm/sysv.S: Handle Apple iOS host.
1350 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
Anthony Greenf4983182011-02-09 06:26:46 -05001351 * build-ios.sh: New file.
Anthony Green0cad4382011-02-09 06:11:46 -05001352 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
Anthony Green69dbe842011-02-09 07:38:43 -05001353 * README: Mention ARM iOS.
Anthony Green11062292011-02-08 19:20:09 -05001354
Anthony Greendc411e82011-02-08 10:49:29 -050013552011-02-08 Oren Held <orenhe@il.ibm.com>
1356
1357 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1358 redefinition of mallinfo on HP-UX.
1359
Anthony Green404585d2011-02-08 10:44:36 -050013602011-02-08 Ginn Chen <ginn.chen@oracle.com>
1361
1362 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
Anthony Green049d8382011-08-22 14:50:10 -04001363 aggregate return ABI. Flush cache.
1364 (ffi_prep_closure_loc): Flush cache.
Anthony Green404585d2011-02-08 10:44:36 -05001365
Anthony Green6972a4f2011-02-11 07:32:51 -050013662011-02-11 Anthony Green <green@moxielogic.com>
1367
1368 From Tom Honermann <tom.honermann@oracle.com>:
1369 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1370 AIX. Declare .ffi_prep_args. Insert nops after branch
1371 instructions so that the AIX linker can insert TOC reload
1372 instructions.
1373 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1374
Anthony Greend992ac52011-07-29 17:32:53 -040013752011-02-08 Ed <ed@kdtc.net>
1376
1377 * src/powerpc/asm.h: Fix grammar nit in comment.
1378
Anthony Green89284fe2011-02-08 10:19:19 -050013792011-02-08 Uli Link <ul.mcamafia@linkitup.de>
1380
1381 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1382
Anthony Greend992ac52011-07-29 17:32:53 -040013832011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1384
1385 PR libffi/46661
1386 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1387 uintptr_t first.
1388 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1389
Anthony Greened2c5182011-02-08 10:10:07 -050013902011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
1391
1392 * configure.ac: Fix x86 test for pc related relocs.
Anthony Green09f8f312011-02-28 15:36:07 -05001393 * configure: Rebuilt.
Anthony Greened2c5182011-02-08 10:10:07 -05001394
Anthony Green3b836242011-02-08 14:28:59 -050013952011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1396
1397 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1398 Handle case when CPU variant does not have long double support.
1399 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1400 and cores with soft floating point.
1401
14022011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1403
1404 * configure.ac: Add mips*-*-rtems* support.
1405 * configure: Regenerate.
1406 * src/mips/ffitarget.h: Ensure needed constants are available
1407 for targets which do not have sgidefs.h.
1408
Anthony Green0e584392011-02-08 07:52:40 -050014092011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1410
1411 PR target/40125
1412 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1413 * configure: Regenerate.
1414
14152010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1416
1417 PR libffi/29152
1418 PR libffi/42378
1419 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1420 update comments.
1421 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1422 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1423 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1424 update comments.
1425 * src/powerpc/ffi_darwin.c: Likewise.
1426
14272010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1428
1429 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1430 backslashes.
1431 (libffi_cv_as_string_pseudo_op): Likewise.
1432 * configure: Regenerate.
1433
14342010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
1435
1436 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1437 (ffi_closure_VFP): Same.
1438 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1439 directive.
1440
14412010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1442
1443 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1444 (PRIuPTR): Define.
1445
14462010-11-29 Richard Henderson <rth@redhat.com>
1447 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1448
1449 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1450 (.eh_frame): Use FDE_ENCODING.
1451 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1452
Anthony Green5b9cd522010-11-22 15:19:57 -050014532010-11-22 Jacek Caban <jacek@codeweavers.com>
1454
1455 * configure.ac: Check for symbol underscores on mingw-w64.
1456 * configure: Rebuilt.
1457 * src/x86/win64.S: Correctly access extern symbols in respect to
1458 underscores.
1459
Anthony Green2db72612010-11-21 10:50:56 -050014602010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1461
1462 * testsuite/lib/libffi-dg.exp: Rename ...
1463 * testsuite/lib/libffi.exp: ... to this.
1464 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1465 * libffi/testsuite/libffi.special/special.exp: Likewise.
1466
14672010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1468
1469 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1470 code, new parameter, and return value. Update comments.
1471 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1472 call to layout_vfp_args().
1473 (ffi_call_SYSV): Update declaration.
1474 (ffi_call_VFP): New declaration.
1475 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1476 when ABI is FFI_VFP.
1477 (ffi_closure_VFP): New declaration.
1478 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1479 ffi_prep_incoming_args_SYSV().
1480 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1481 case handling.
1482 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1483 construction under VFP hard-float.
1484 (rec_vfp_type_p): New function.
1485 (vfp_type_p): Same.
1486 (place_vfp_arg): Same.
1487 (layout_vfp_args): Same.
1488 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1489 based on __ARM_PCS_VFP.
1490 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1491 fields.
1492 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1493 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1494 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1495 direct call. Move function pointer load upwards.
1496 (ffi_call_VFP): New function.
1497 (ffi_closure_VFP): Same.
1498
1499 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1500 (dg-skip-if): New function.
1501 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1502 and compiler options include -mfloat-abi=hard.
1503 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1504
15052010-10-01 Jakub Jelinek <jakub@redhat.com>
1506
1507 PR libffi/45677
1508 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1509 a multiple of 8.
1510 * testsuite/libffi.call/many2.c: New test.
1511
15122010-08-20 Mark Wielaard <mjw@redhat.com>
1513
1514 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1515 returns NULL.
1516
15172010-08-09 Andreas Tobler <andreast@fgznet.ch>
1518
1519 * configure.ac: Add target powerpc64-*-freebsd*.
1520 * configure: Regenerate.
1521 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1522 -mlong-double-128 only to linux targets.
1523 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1524 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1525 * testsuite/libffi.call/huge_struct.c: Likewise.
1526
Anthony Green00d0b592010-08-05 14:56:53 -040015272010-08-05 Dan Witte <dwitte@mozilla.com>
1528
1529 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1530 debug CRT when --enable-debug is given.
1531 * configure.ac: Define it.
1532 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1533
Anthony Greenc1d28ba2010-08-05 08:48:16 -040015342010-08-04 Dan Witte <dwitte@mozilla.com>
1535
1536 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1537 platforms.
1538 * src/x86/ffi.c: Remove redundant ifdef checks.
1539 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1540 for X86_ANY so return value space doesn't get added twice.
1541
Anthony Greenbda487e2010-08-05 09:02:41 -040015422010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
1543
1544 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1545
Anthony Greend14178b2010-07-23 09:14:00 -040015462010-07-22 Dan Witte <dwitte@mozilla.com>
1547
1548 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1549 * src/prep_cif.c: Fix ABI assertion.
1550 * src/cris/ffi.c: Ditto.
1551
Anthony Greeneaf444e2010-07-10 08:59:09 -040015522010-07-10 Evan Phoenix <evan@fallingsnow.net>
1553
1554 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1555
Anthony Green5feacad2010-08-05 08:30:04 -040015562010-07-07 Dan Horák <dan@danny.cz>
1557
1558 * include/ffi.h.in: Protect #define with #ifndef.
1559 * src/powerpc/ffitarget.h: Ditto.
1560 * src/s390/ffitarget.h: Ditto.
1561 * src/sparc/ffitarget.h: Ditto.
1562
Anthony Green2db72612010-11-21 10:50:56 -050015632010-07-07 Neil Roberts <neil@linux.intel.com>
1564
1565 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1566 16-bytes.
1567
15682010-07-02 Jakub Jelinek <jakub@redhat.com>
1569
1570 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1571 * Makefile.in: Regenerated.
1572
15732010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574
1575 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1576 output, too.
1577 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1578 (libffi_cv_as_string_pseudo_op): Check for .string.
1579 * configure: Regenerate.
1580 * fficonfig.h.in: Regenerate.
1581 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1582
Anthony Green10ea8482010-08-05 08:24:27 -040015832010-05-11 Dan Witte <dwitte@mozilla.com>
1584
1585 * doc/libffi.tex: Document previous change.
1586
15872010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
1588
1589 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1590
Anthony Green63097412010-05-05 20:14:56 -040015912010-05-05 Michael Kohler <michaelkohler@live.com>
1592
1593 * src/dlmalloc.c (dlfree): Fix spelling.
1594 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1595 * configure.ac: Ditto.
1596 * configure: Rebuilt.
1597
Anthony Greenf2c2a4f2010-04-13 10:19:28 -040015982010-04-13 Dan Witte <dwitte@mozilla.com>
1599
1600 * msvcc.sh: Build with -W3 instead of -Wall.
1601 * src/powerpc/ffi_darwin.c: Remove build warnings.
1602 * src/x86/ffi.c: Ditto.
1603 * src/x86/ffitarget.h: Ditto.
1604
Anthony Green2db72612010-11-21 10:50:56 -050016052010-04-12 Dan Witte <dwitte@mozilla.com>
1606 Walter Meinl <wuno@lsvw.de>
Anthony Greenc0b69e52010-03-30 08:30:22 -04001607
Anthony Green2db72612010-11-21 10:50:56 -05001608 * configure.ac: Add OS/2 support.
1609 * configure: Rebuilt.
1610 * src/closures.c: Ditto.
1611 * src/dlmalloc.c: Ditto.
1612 * src/x86/win32.S: Ditto.
Anthony Green3f5b1372010-07-12 14:39:18 -04001613
16142010-04-07 Jakub Jelinek <jakub@redhat.com>
1615
Anthony Green2db72612010-11-21 10:50:56 -05001616 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
Anthony Green3f5b1372010-07-12 14:39:18 -04001617
16182010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1619
1620 * Makefile.in: Regenerate.
1621 * aclocal.m4: Regenerate.
1622 * include/Makefile.in: Regenerate.
1623 * man/Makefile.in: Regenerate.
1624 * testsuite/Makefile.in: Regenerate.
1625
Anthony Green2db72612010-11-21 10:50:56 -050016262010-03-30 Dan Witte <dwitte@mozilla.com>
1627
1628 * msvcc.sh: Disable build warnings.
1629 * README (tested): Clarify windows build procedure.
1630
Anthony Green3f5b1372010-07-12 14:39:18 -040016312010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632
1633 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1634 * configure: Regenerate.
1635 * fficonfig.h.in: Regenerate.
1636 * libffi/src/x86/unix64.S (.eh_frame)
1637 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1638
Anthony Green2db72612010-11-21 10:50:56 -050016392010-03-14 Matthias Klose <doko@ubuntu.com>
1640
1641 * src/x86/ffi64.c: Fix typo in comment.
1642 * src/x86/ffi.c: Use /* ... */ comment style.
1643
Anthony Green9dc9a292010-04-13 10:33:52 -040016442010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1645
1646 * doc/libffi.texi (The Closure API): Fix typo.
1647 * doc/libffi.info: Remove.
1648
16492010-02-15 Matthias Klose <doko@ubuntu.com>
1650
1651 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1652 __ARM_ARCH_7EM__.
1653
Anthony Green2db72612010-11-21 10:50:56 -050016542010-01-15 Anthony Green <green@redhat.com>
1655
1656 * README: Add notes on building with Microsoft Visual C++.
1657
16582010-01-15 Daniel Witte <dwitte@mozilla.com>
1659
1660 * msvcc.sh: New file.
1661
1662 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1663 * src/x86/ffi.c: Tweak function declaration and remove excess
1664 parens.
1665 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1666 ffi_closure.
1667
1668 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1669 function ffi_call_win32 on X86_WIN32.
1670 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1671 (ffi_call_STDCALL): Remove.
1672
1673 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1674 to ffi_prep_cif_machdep for x86.
1675 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1676
16772010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
1678
1679 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
Anthony Green0e584392011-02-08 07:52:40 -05001680 Sun Studio compiler compatibility.
Anthony Green2db72612010-11-21 10:50:56 -05001681
16822010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
1683
1684 * doc/libffi.texi: Add closure example.
1685
Anthony Green7b7a42f2010-01-12 09:14:14 -050016862010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1687
1688 PR libffi/40701
1689 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1690 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1691 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1692 alpha*-dec-osf*.
1693 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1694 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1695 * testsuite/libffi.call/return_ll1.c: Likewise.
1696 * testsuite/libffi.call/stret_medium2.c: Likewise.
1697 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1698 MAP_FAILED to char *.
1699
17002010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1701
1702 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1703
Anthony Greenc3042af2010-01-01 08:08:02 -050017042009-12-31 Anthony Green <green@redhat.com>
1705
1706 * README: Update for libffi 3.0.9.
1707
17082009-12-27 Matthias Klose <doko@ubuntu.com>
1709
1710 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1711 appropriate.
1712 * configure: Rebuilt.
1713
17142009-12-26 Anthony Green <green@redhat.com>
1715
1716 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1717 avr32*-*-*.
1718 * testsuite/libffi.call/cls_double_va.c: Ditto.
1719
17202009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1721
1722 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1723 and inttypes.h.
1724 * testsuite/libffi.special/unwindtest.cc: Ditto.
1725
17262009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1727
1728 * configure.ac: Add amd64-*-openbsd*.
1729 * configure: Rebuilt.
1730 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1731 openbsd programs with -lpthread.
1732
17332009-12-26 Anthony Green <green@redhat.com>
1734
1735 * testsuite/libffi.call/cls_double_va.c,
1736 testsuite/libffi.call/cls_longdouble.c,
1737 testsuite/libffi.call/cls_longdouble_va.c,
1738 testsuite/libffi.call/cls_pointer.c,
1739 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1740 mips*-*-* and arm*-*-*.
1741 * testsuite/libffi.call/cls_align_longdouble_split.c,
1742 testsuite/libffi.call/cls_align_longdouble_split2.c,
1743 testsuite/libffi.call/stret_medium2.c,
1744 testsuite/libffi.call/stret_medium.c,
1745 testsuite/libffi.call/stret_large.c,
1746 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1747
17482009-12-31 Kay Tietz <ktietz70@googlemail.com>
1749
1750 * testsuite/libffi.call/ffitest.h,
1751 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1752 definitions.
1753
17542009-12-31 Carlo Bramini <carlo.bramix@libero.it>
1755
1756 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1757 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1758 * configure: Rebuilt.
1759 * Makefile.in: Rebuilt.
1760
17612009-12-31 Anthony Green <green@redhat.com>
1762 Blake Chaffin.
1763
1764 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1765 Chaffin @ Apple.
1766
Anthony Green0cfe60e2009-12-29 10:06:04 -050017672009-12-28 David Edelsohn <edelsohn@gnu.org>
1768
1769 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1770 local variables.
1771 (aix_adjust_aggregate_sizes): New function.
1772 (ffi_prep_cif_machdep): Call it.
1773
17742009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1775
1776 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1777 * configure: Regenerate.
1778 * fficonfig.h.in: Likewise.
1779 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1780 Solaris/x86.
1781
17822009-12-26 Andreas Schwab <schwab@linux-m68k.org>
1783
1784 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1785 when a float arguments is passed in memory.
1786 (ffi_closure_helper_SYSV): Mark general registers as used up when
1787 a 64bit or soft-float long double argument is passed in memory.
1788
Anthony Green9458d882009-12-26 07:02:27 -050017892009-12-25 Matthias Klose <doko@ubuntu.com>
1790
1791 * man/ffi_call.3: Fix #include in examples.
1792 * doc/libffi.texi: Add dircategory.
1793
17942009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
1795
1796 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1797 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1798 IRIX MIPSPro c99.
1799 * include/ffi_common.h: Added '__sgi' define to non
1800 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001801 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -05001802 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1803 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1804 FFI_LONGDOUBLE support and alignment(N32 only).
1805 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1806 fixed non '__attribute__((__mode__()))' integer typedefs.
1807 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1808 since they are Linux/GNU Assembler specific.
1809
18102009-12-25 Bradley Smith <brad@brad-smith.co.uk>
1811
1812 * configure.ac, Makefile.am, src/avr32/ffi.c,
1813 src/avr32/ffitarget.h,
1814 src/avr32/sysv.S: Add AVR32 port.
1815 * configure, Makefile.in: Rebuilt.
1816
Anthony Green115ab362009-12-24 00:22:00 -050018172009-12-21 Andreas Tobler <a.tobler@schweiz.org>
1818
1819 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1820 * configure: Regenerate.
1821
18222009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1823
1824 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1825
18262009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1827
1828 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1829 type on HP-UX.
1830
Anthony Green7c5e60b2012-03-29 08:48:22 -040018312012-02-13 Kai Tietz <ktietz@redhat.com>
1832
1833 PR libffi/52221
1834 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1835 support for X86_WIN32.
1836 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1837
Anthony Green115ab362009-12-24 00:22:00 -050018382009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1841 double' arguments.
1842
18432009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1844
1845 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1846
18472009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1848
1849 PR libffi/40700
1850 * src/closures.c [X86_64 && __sun__ && __svr4__]
1851 (FFI_MMAP_EXEC_WRIT): Define.
1852
18532009-12-08 David Daney <ddaney@caviumnetworks.com>
1854
1855 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1856 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1857 * testsuite/libffi.call/stret_large.c: Same.
1858 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1859 * testsuite/libffi.call/stret_large2.c: Same.
1860 * testsuite/libffi.call/stret_medium2.c: Same.
1861
18622009-12-07 David Edelsohn <edelsohn@gnu.org>
1863
1864 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1865 typo.
1866
18672009-12-05 David Edelsohn <edelsohn@gnu.org>
1868
1869 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1870 code.
1871 * src/powerpc/aix_closure.S: Same.
1872
18732009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1874
1875 * Makefile.in: Regenerate.
1876 * configure: Regenerate.
1877 * include/Makefile.in: Regenerate.
1878 * man/Makefile.in: Regenerate.
1879 * testsuite/Makefile.in: Regenerate.
1880
18812009-12-04 David Edelsohn <edelsohn@gnu.org>
1882
1883 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -05001884 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -05001885
18862009-12-04 Uros Bizjak <ubizjak@gmail.com>
1887
1888 PR libffi/41908
1889 * src/x86/ffi64.c (classify_argument): Update from
1890 gcc/config/i386/i386.c.
1891 (ffi_closure_unix64_inner): Do not use the address of two consecutive
1892 SSE registers directly.
1893 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
1894 for x86_64 linux targets.
1895
18962009-12-04 David Edelsohn <edelsohn@gnu.org>
1897
1898 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
1899 pfr for long double split between fpr13 and stack.
1900
19012009-12-03 David Edelsohn <edelsohn@gnu.org>
1902
1903 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
1904 fparg_count twice for long double.
1905
19062009-12-03 David Edelsohn <edelsohn@gnu.org>
1907
1908 PR libffi/42243
1909 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
1910
19112009-12-03 Uros Bizjak <ubizjak@gmail.com>
1912
1913 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
1914 Remove xfails for x86 linux targets.
1915
19162009-12-02 David Edelsohn <edelsohn@gnu.org>
1917
1918 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
1919 case.
1920
19212009-12-01 David Edelsohn <edelsohn@gnu.org>
1922
1923 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
1924 register usage. Call ffi_prep_args directly. Add long double
1925 return value support.
1926 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
1927 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
1928 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
1929 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
1930 mode.
1931 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
1932 into case.
1933 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
1934 Allocate result area between params and FPRs.
1935
19362009-11-30 David Edelsohn <edelsohn@gnu.org>
1937
1938 PR target/35484
1939 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
1940 AIX64.
1941 * src/powerpc/aix.S: Implement AIX64 version.
1942 * src/powerpc/aix_closure.S: Implement AIX64 version.
1943 (ffi_closure_ASM): Use extsb, lha and displament addresses.
1944 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
1945 support.
1946 (ffi_prep_cif_machdep): Same.
1947 (ffi_call): Same.
1948 (ffi_closure_helper_DARWIN): Same.
1949
19502009-11-02 Andreas Tobler <a.tobler@schweiz.org>
1951
1952 PR libffi/41908
1953 * testsuite/libffi.call/testclosure.c: New test.
1954
Anthony Greenc6dddbd2009-10-04 08:11:33 -040019552009-09-28 Kai Tietz <kai.tietz@onevision.com>
1956
1957 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
1958 assembly version use of ___chkstk.
1959
19602009-09-23 Matthias Klose <doko@ubuntu.com>
1961
1962 PR libffi/40242, PR libffi/41443
1963 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
1964 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
1965 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
1966 Change the conditionals to __SOFTFP__ || __ARM_EABI__
1967 for -mfloat-abi=softfp to work.
1968
19692009-09-17 Loren J. Rittle <ljrittle@acm.org>
1970
1971 PR testsuite/32843 (strikes again)
1972 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
1973 enable proper extension on char and short.
1974
19752009-09-15 David Daney <ddaney@caviumnetworks.com>
1976
1977 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
1978 handling for FFI_TYPE_POINTER.
1979 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
1980 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
1981 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
1982 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
1983 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
1984 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
1985 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
1986 structure and pointer returns.
1987 (ffi_closure_N32): Add handling for pointer returns.
1988 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
1989 calc_n32_return_struct_flags): Handle soft-float.
1990 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
1991 (ffi_call_N32): Declare proper argument types.
1992 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
1993 soft-float.
1994
19952009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1996
1997 * configure.ac (AC_PREREQ): Bump to 2.64.
1998
19992009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2000
2001 * Makefile.am (install-html, install-pdf): Remove.
2002 * Makefile.in: Regenerate.
2003
2004 * Makefile.in: Regenerate.
2005 * aclocal.m4: Regenerate.
2006 * configure: Regenerate.
2007 * fficonfig.h.in: Regenerate.
2008 * include/Makefile.in: Regenerate.
2009 * man/Makefile.in: Regenerate.
2010 * testsuite/Makefile.in: Regenerate.
2011
Anthony Green3d561062011-11-12 07:20:24 -050020122011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
2013
2014 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2015 * configure: Rebuilt.
2016
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020172009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2018
2019 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2020
20212009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
2022
2023 PR libffi/40807
2024 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2025 return types for X86_WIN32.
2026 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2027 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2028 _ffi_closure_STDCALL): Likewise.
2029
2030 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2031 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2032
20332009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2034
2035 PR testsuite/40699
2036 PR testsuite/40707
2037 PR testsuite/40709
2038 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2039 2009-06-30 commits.
2040
20412009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2042
2043 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2044 to "" before adding paths. (This reinstates an assignment that
2045 was removed by my 2009-06-30 commit, but changes the initial
2046 value from "." to "".)
2047
20482009-07-01 H.J. Lu <hongjiu.lu@intel.com>
2049
2050 PR testsuite/40601
2051 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2052 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2053 empty.
2054
20552009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2056
2057 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2058 to ld_library_path. Use add_path. Add just find_libgcc_s
2059 to ld_library_path, not every libgcc multilib directory.
2060
20612009-06-16 Wim Lewis <wiml@hhhh.org>
2062
2063 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2064 supposed to be callee-saved.
2065 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2066 return buffer for odd-size structs.
2067
20682009-06-16 Andreas Tobler <a.tobler@schweiz.org>
2069
2070 PR libffi/40444
2071 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2072 allow_stack_execute for Darwin.
2073
20742009-06-16 Andrew Haley <aph@redhat.com>
2075
2076 * configure.ac (TARGETDIR): Add missing blank lines.
2077 * configure: Regenerate.
2078
20792009-06-16 Andrew Haley <aph@redhat.com>
2080
2081 * testsuite/libffi.call/cls_align_sint64.c,
2082 testsuite/libffi.call/cls_align_uint64.c,
2083 testsuite/libffi.call/cls_longdouble_va.c,
2084 testsuite/libffi.call/cls_ulonglong.c,
2085 testsuite/libffi.call/return_ll1.c,
2086 testsuite/libffi.call/stret_medium2.c: Fix printf format
2087 specifiers.
2088 * testsuite/libffi.call/ffitest.h,
2089 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2090
20912009-06-15 Andrew Haley <aph@redhat.com>
2092
2093 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2094 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002095
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020962009-06-12 Andrew Haley <aph@redhat.com>
2097
2098 * Makefile.am: Remove info_TEXINFOS.
2099
21002009-06-12 Andrew Haley <aph@redhat.com>
2101
2102 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2103 testsuite/libffi.call/cls_align_uint64.c,
2104 testsuite/libffi.call/cls_ulonglong.c,
2105 testsuite/libffi.call/return_ll1.c,
2106 testsuite/libffi.call/stret_medium2.c: Fix printf format
2107 specifiers.
2108 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2109
21102009-06-11 Timothy Wall <twall@users.sf.net>
2111
2112 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002113 configure.ac,
2114 include/ffi.h.in,
2115 include/ffi_common.h,
2116 src/closures.c,
2117 src/dlmalloc.c,
2118 src/x86/ffi.c,
2119 src/x86/ffitarget.h,
2120 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002121 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -05002122 * Makefile.in,
2123 include/Makefile.in,
2124 man/Makefile.in,
2125 testsuite/Makefile.in,
2126 configure,
2127 aclocal.m4: Regenerated
2128 * ltcf-c.sh: properly escape cygwin/w32 path
2129 * man/ffi_call.3: Clarify size requirements for return value.
2130 * src/x86/ffi64.c: Fix filename in comment.
2131 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002132
Anthony Green0cfe60e2009-12-29 10:06:04 -05002133 * testsuite/libffi.call/closure_fn0.c,
2134 testsuite/libffi.call/closure_fn1.c,
2135 testsuite/libffi.call/closure_fn2.c,
2136 testsuite/libffi.call/closure_fn3.c,
2137 testsuite/libffi.call/closure_fn4.c,
2138 testsuite/libffi.call/closure_fn5.c,
2139 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002140 testsuite/libffi.call/closure_stdcall.c,
2141 testsuite/libffi.call/cls_12byte.c,
2142 testsuite/libffi.call/cls_16byte.c,
2143 testsuite/libffi.call/cls_18byte.c,
2144 testsuite/libffi.call/cls_19byte.c,
2145 testsuite/libffi.call/cls_1_1byte.c,
2146 testsuite/libffi.call/cls_20byte.c,
2147 testsuite/libffi.call/cls_20byte1.c,
2148 testsuite/libffi.call/cls_24byte.c,
2149 testsuite/libffi.call/cls_2byte.c,
2150 testsuite/libffi.call/cls_3_1byte.c,
2151 testsuite/libffi.call/cls_3byte1.c,
2152 testsuite/libffi.call/cls_3byte2.c,
2153 testsuite/libffi.call/cls_4_1byte.c,
2154 testsuite/libffi.call/cls_4byte.c,
2155 testsuite/libffi.call/cls_5_1_byte.c,
2156 testsuite/libffi.call/cls_5byte.c,
2157 testsuite/libffi.call/cls_64byte.c,
2158 testsuite/libffi.call/cls_6_1_byte.c,
2159 testsuite/libffi.call/cls_6byte.c,
2160 testsuite/libffi.call/cls_7_1_byte.c,
2161 testsuite/libffi.call/cls_7byte.c,
2162 testsuite/libffi.call/cls_8byte.c,
2163 testsuite/libffi.call/cls_9byte1.c,
2164 testsuite/libffi.call/cls_9byte2.c,
2165 testsuite/libffi.call/cls_align_double.c,
2166 testsuite/libffi.call/cls_align_float.c,
2167 testsuite/libffi.call/cls_align_longdouble.c,
2168 testsuite/libffi.call/cls_align_longdouble_split.c,
2169 testsuite/libffi.call/cls_align_longdouble_split2.c,
2170 testsuite/libffi.call/cls_align_pointer.c,
2171 testsuite/libffi.call/cls_align_sint16.c,
2172 testsuite/libffi.call/cls_align_sint32.c,
2173 testsuite/libffi.call/cls_align_sint64.c,
2174 testsuite/libffi.call/cls_align_uint16.c,
2175 testsuite/libffi.call/cls_align_uint32.c,
2176 testsuite/libffi.call/cls_align_uint64.c,
2177 testsuite/libffi.call/cls_dbls_struct.c,
2178 testsuite/libffi.call/cls_double.c,
2179 testsuite/libffi.call/cls_double_va.c,
2180 testsuite/libffi.call/cls_float.c,
2181 testsuite/libffi.call/cls_longdouble.c,
2182 testsuite/libffi.call/cls_longdouble_va.c,
2183 testsuite/libffi.call/cls_multi_schar.c,
2184 testsuite/libffi.call/cls_multi_sshort.c,
2185 testsuite/libffi.call/cls_multi_sshortchar.c,
2186 testsuite/libffi.call/cls_multi_uchar.c,
2187 testsuite/libffi.call/cls_multi_ushort.c,
2188 testsuite/libffi.call/cls_multi_ushortchar.c,
2189 testsuite/libffi.call/cls_pointer.c,
2190 testsuite/libffi.call/cls_pointer_stack.c,
2191 testsuite/libffi.call/cls_schar.c,
2192 testsuite/libffi.call/cls_sint.c,
2193 testsuite/libffi.call/cls_sshort.c,
2194 testsuite/libffi.call/cls_uchar.c,
2195 testsuite/libffi.call/cls_uint.c,
2196 testsuite/libffi.call/cls_ulonglong.c,
2197 testsuite/libffi.call/cls_ushort.c,
2198 testsuite/libffi.call/err_bad_abi.c,
2199 testsuite/libffi.call/err_bad_typedef.c,
2200 testsuite/libffi.call/float2.c,
2201 testsuite/libffi.call/huge_struct.c,
2202 testsuite/libffi.call/nested_struct.c,
2203 testsuite/libffi.call/nested_struct1.c,
2204 testsuite/libffi.call/nested_struct10.c,
2205 testsuite/libffi.call/nested_struct2.c,
2206 testsuite/libffi.call/nested_struct3.c,
2207 testsuite/libffi.call/nested_struct4.c,
2208 testsuite/libffi.call/nested_struct5.c,
2209 testsuite/libffi.call/nested_struct6.c,
2210 testsuite/libffi.call/nested_struct7.c,
2211 testsuite/libffi.call/nested_struct8.c,
2212 testsuite/libffi.call/nested_struct9.c,
2213 testsuite/libffi.call/problem1.c,
2214 testsuite/libffi.call/return_ldl.c,
2215 testsuite/libffi.call/return_ll1.c,
2216 testsuite/libffi.call/stret_large.c,
2217 testsuite/libffi.call/stret_large2.c,
2218 testsuite/libffi.call/stret_medium.c,
2219 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002220 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2221 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002222
22232009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2224
2225 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2226 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2227 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2228
22292009-06-09 Andrew Haley <aph@redhat.com>
2230
2231 * src/x86/freebsd.S: Add missing file.
2232
22332009-06-08 Andrew Haley <aph@redhat.com>
2234
2235 Import from libffi 3.0.8:
2236
2237 * doc/libffi.texi: New file.
2238 * doc/libffi.info: Likewise.
2239 * doc/stamp-vti: Likewise.
2240 * man/Makefile.am: New file.
2241 * man/ffi_call.3: New file.
2242
2243 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2244 src/dlmalloc.c.
2245 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2246
2247 * configure.ac: Bump version to 3.0.8.
2248 parisc*-*-linux*: Add.
2249 i386-*-freebsd* | i386-*-openbsd*: Add.
2250 powerpc-*-beos*: Add.
2251 AM_CONDITIONAL X86_FREEBSD: Add.
2252 AC_CONFIG_FILES: Add man/Makefile.
2253
2254 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2255
22562009-06-08 Andrew Haley <aph@redhat.com>
2257
2258 * README: Import from libffi 3.0.8.
2259
22602009-06-08 Andrew Haley <aph@redhat.com>
2261
2262 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2263 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2264 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2265 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2266
2267 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2268 * testsuite/libffi.call/stret_medium.c: Likewise.
2269 * testsuite/libffi.call/stret_large2.c: Likewise.
2270 * testsuite/libffi.call/stret_large.c: Likewise.
2271
22722008-12-26 Timothy Wall <twall@users.sf.net>
2273
Anthony Green0cfe60e2009-12-29 10:06:04 -05002274 * testsuite/libffi.call/cls_longdouble.c,
2275 testsuite/libffi.call/cls_longdouble_va.c,
2276 testsuite/libffi.call/cls_align_longdouble.c,
2277 testsuite/libffi.call/cls_align_longdouble_split.c,
2278 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2279 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002280
22812008-12-22 Timothy Wall <twall@users.sf.net>
2282
Anthony Green0cfe60e2009-12-29 10:06:04 -05002283 * testsuite/libffi.call/closure_fn0.c,
2284 testsuite/libffi.call/closure_fn1.c,
2285 testsuite/libffi.call/closure_fn2.c,
2286 testsuite/libffi.call/closure_fn3.c,
2287 testsuite/libffi.call/closure_fn4.c,
2288 testsuite/libffi.call/closure_fn5.c,
2289 testsuite/libffi.call/closure_fn6.c,
2290 testsuite/libffi.call/closure_loc_fn0.c,
2291 testsuite/libffi.call/closure_stdcall.c,
2292 testsuite/libffi.call/cls_align_pointer.c,
2293 testsuite/libffi.call/cls_pointer.c,
2294 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2295 pointer to integer (intptr_t).
2296 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002297
22982008-07-24 Anthony Green <green@redhat.com>
2299
Anthony Green0cfe60e2009-12-29 10:06:04 -05002300 * testsuite/libffi.call/cls_dbls_struct.c,
2301 testsuite/libffi.call/cls_double_va.c,
2302 testsuite/libffi.call/cls_longdouble.c,
2303 testsuite/libffi.call/cls_longdouble_va.c,
2304 testsuite/libffi.call/cls_pointer.c,
2305 testsuite/libffi.call/cls_pointer_stack.c,
2306 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2307 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002308
23092008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002310 Blake Chaffin
2311 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002312
Anthony Green0cfe60e2009-12-29 10:06:04 -05002313 * testsuite/libffi.call/cls_align_longdouble_split2.c
2314 testsuite/libffi.call/cls_align_longdouble_split.c
2315 testsuite/libffi.call/cls_dbls_struct.c
2316 testsuite/libffi.call/cls_double_va.c
2317 testsuite/libffi.call/cls_longdouble.c
2318 testsuite/libffi.call/cls_longdouble_va.c
2319 testsuite/libffi.call/cls_pointer.c
2320 testsuite/libffi.call/cls_pointer_stack.c
2321 testsuite/libffi.call/err_bad_abi.c
2322 testsuite/libffi.call/err_bad_typedef.c
2323 testsuite/libffi.call/stret_large2.c
2324 testsuite/libffi.call/stret_large.c
2325 testsuite/libffi.call/stret_medium2.c
2326 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002327
23282009-06-05 Andrew Haley <aph@redhat.com>
2329
2330 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2331 libffi.
2332
23332009-06-04 Andrew Haley <aph@redhat.com>
2334
2335 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2336 stdcall changes.
2337
23382008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002339 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002340
Anthony Green0cfe60e2009-12-29 10:06:04 -05002341 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2342 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002343
23442008-02-03 Timothy Wall <twall@users.sf.net>
2345
Anthony Green0cfe60e2009-12-29 10:06:04 -05002346 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2347 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002348
23492008-01-31 Timothy Wall <twall@users.sf.net>
2350
Anthony Green0cfe60e2009-12-29 10:06:04 -05002351 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2352 closures.
2353 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2354 closures.
2355 * src/x86/win32.S: Add assembly for stdcall closure.
2356 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002357
23582009-06-04 Andrew Haley <aph@redhat.com>
2359
2360 * include/ffi.h.in: Change void (*)() to void (*)(void).
2361 * src/x86/ffi.c: Likewise.
2362
23632009-06-04 Andrew Haley <aph@redhat.com>
2364
2365 * src/powerpc/ppc_closure.S: Insert licence header.
2366 * src/powerpc/linux64_closure.S: Likewise.
2367 * src/m68k/sysv.S: Likewise.
2368
2369 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2370 * src/powerpc/ffi.c: Likewise.
2371 * src/powerpc/ffi_darwin.c: Likewise.
2372 * src/m32r/ffi.c: Likewise.
2373 * src/sh64/ffi.c: Likewise.
2374 * src/x86/ffi64.c: Likewise.
2375 * src/alpha/ffi.c: Likewise.
2376 * src/alpha/osf.S: Likewise.
2377 * src/frv/ffi.c: Likewise.
2378 * src/s390/ffi.c: Likewise.
2379 * src/pa/ffi.c: Likewise.
2380 * src/pa/hpux32.S: Likewise.
2381 * src/ia64/unix.S: Likewise.
2382 * src/ia64/ffi.c: Likewise.
2383 * src/sparc/ffi.c: Likewise.
2384 * src/mips/ffi.c: Likewise.
2385 * src/sh/ffi.c: Likewise.
2386
23872008-02-15 David Daney <ddaney@avtrex.com>
2388
Anthony Green0cfe60e2009-12-29 10:06:04 -05002389 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2390 Define (conditionally), and use it to include cachectl.h.
2391 (ffi_prep_closure_loc): Fix cache flushing.
2392 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002393
23942009-06-04 Andrew Haley <aph@redhat.com>
2395
2396 include/ffi.h.in,
2397 src/arm/ffitarget.h,
2398 src/arm/ffi.c,
2399 src/arm/sysv.S,
2400 src/powerpc/ffitarget.h,
2401 src/closures.c,
2402 src/sh64/ffitarget.h,
2403 src/sh64/ffi.c,
2404 src/sh64/sysv.S,
2405 src/types.c,
2406 src/x86/ffi64.c,
2407 src/x86/ffitarget.h,
2408 src/x86/win32.S,
2409 src/x86/darwin.S,
2410 src/x86/ffi.c,
2411 src/x86/sysv.S,
2412 src/x86/unix64.S,
2413 src/alpha/ffitarget.h,
2414 src/alpha/ffi.c,
2415 src/alpha/osf.S,
2416 src/m68k/ffitarget.h,
2417 src/frv/ffitarget.h,
2418 src/frv/ffi.c,
2419 src/s390/ffitarget.h,
2420 src/s390/sysv.S,
2421 src/cris/ffitarget.h,
2422 src/pa/linux.S,
2423 src/pa/ffitarget.h,
2424 src/pa/ffi.c,
2425 src/raw_api.c,
2426 src/ia64/ffitarget.h,
2427 src/ia64/unix.S,
2428 src/ia64/ffi.c,
2429 src/ia64/ia64_flags.h,
2430 src/java_raw_api.c,
2431 src/debug.c,
2432 src/sparc/v9.S,
2433 src/sparc/ffitarget.h,
2434 src/sparc/ffi.c,
2435 src/sparc/v8.S,
2436 src/mips/ffitarget.h,
2437 src/mips/n32.S,
2438 src/mips/o32.S,
2439 src/mips/ffi.c,
2440 src/prep_cif.c,
2441 src/sh/ffitarget.h,
2442 src/sh/ffi.c,
2443 src/sh/sysv.S: Update license text.
2444
24452009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2446
2447 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2448 (.eh_frame): Add FDE for it.
2449
24502009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2451
2452 * configure.ac: Also check if assembler supports pc-relative
2453 relocs on X86_WIN32 targets.
2454 * configure: Regenerate.
2455 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2456 (_ffi_call_SYSV): Add missing function type symbol .def and
2457 add EH markup labels.
2458 (_ffi_call_STDCALL): Likewise.
2459 (_ffi_closure_SYSV): Likewise.
2460 (_ffi_closure_raw_SYSV): Likewise.
2461 (.eh_frame): Add hand-crafted EH data.
2462
24632009-04-09 Jakub Jelinek <jakub@redhat.com>
2464
2465 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2466 version 3 of the GNU General Public License and to point readers
2467 at the COPYING3 file and the FSF's license web page.
2468 * testsuite/libffi.call/call.exp: Likewise.
2469 * testsuite/libffi.special/special.exp: Likewise.
2470
24712009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2472
2473 * configure: Regenerate.
2474
24752008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2476
2477 PR libffi/26048
2478 * configure.ac (HAVE_AS_X86_PCREL): New test.
2479 * configure: Regenerate.
2480 * fficonfig.h.in: Regenerate.
2481 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2482 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2483 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2484 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2485 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2486 (.Lload_table): Likewise.
2487 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2488
24892008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2490
2491 * configure: Regenerate.
2492
24932008-11-21 Eric Botcazou <ebotcazou@adacore.com>
2494
2495 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2496 signed/unsigned int8/16 return values.
2497 * src/sparc/v8.S (ffi_call_v8): Likewise.
2498 (ffi_closure_v8): Likewise.
2499
25002008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002501 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002502
2503 * configure: Regenerate for new libtool.
2504 * Makefile.in: Ditto.
2505 * include/Makefile.in: Ditto.
2506 * aclocal.m4: Ditto.
2507
25082008-08-25 Andreas Tobler <a.tobler@schweiz.org>
2509
2510 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2511 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2512 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2513 Adjust copyright notice.
2514 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2515 register or two register to use for FFI_SYSV structs.
2516 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2517 (ffi_closure_helper_SYSV): Fix the return type for
2518 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2519 Adjust copyright notice.
2520
25212008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2522
2523 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2524 int.
2525
25262008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2527
2528 * configure: Regenerate.
2529 * include/Makefile.in: Regenerate.
2530 * testsuite/Makefile.in: Regenerate.
2531
25322008-06-07 Joseph Myers <joseph@codesourcery.com>
2533
2534 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2535 powerpc-*-beos*): Remove.
2536 * configure: Regenerate.
2537
25382008-05-09 Julian Brown <julian@codesourcery.com>
2539
2540 * Makefile.am (LTLDFLAGS): New.
2541 (libffi_la_LDFLAGS): Use above.
2542 * Makefile.in: Regenerate.
2543
25442008-04-18 Paolo Bonzini <bonzini@gnu.org>
2545
2546 PR bootstrap/35457
2547 * aclocal.m4: Regenerate.
2548 * configure: Regenerate.
2549
25502008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
2551
2552 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2553 * src/sh64/sysv.S: Likewise.
2554
25552008-03-26 Daniel Jacobowitz <dan@debian.org>
2556
2557 * src/arm/sysv.S: Fix ARM comment marker.
2558
25592008-03-26 Jakub Jelinek <jakub@redhat.com>
2560
2561 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2562 * src/s390/sysv.S: Likewise.
2563 * src/powerpc/ppc_closure.S: Likewise.
2564 * src/powerpc/sysv.S: Likewise.
2565 * src/x86/unix64.S: Likewise.
2566 * src/x86/sysv.S: Likewise.
2567 * src/sparc/v8.S: Likewise.
2568 * src/sparc/v9.S: Likewise.
2569 * src/m68k/sysv.S: Likewise.
2570 * src/arm/sysv.S: Likewise.
2571
25722008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2573
2574 * aclocal.m4: Regenerate.
2575 * configure: Likewise.
2576 * Makefile.in: Likewise.
2577 * include/Makefile.in: Likewise.
2578 * testsuite/Makefile.in: Likewise.
2579
25802008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
2581 Andreas Tobler <a.tobler@schweiz.org>
2582
2583 * configure.ac: Add amd64-*-freebsd* target.
2584 * configure: Regenerate.
2585
25862008-01-30 H.J. Lu <hongjiu.lu@intel.com>
2587
2588 PR libffi/34612
2589 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2590 returning struct.
2591
2592 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2593 tests.
2594
25952008-01-24 David Edelsohn <edelsohn@gnu.org>
2596
2597 * configure: Regenerate.
2598
25992008-01-06 Andreas Tobler <a.tobler@schweiz.org>
2600
2601 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2602
26032008-01-05 Andreas Tobler <a.tobler@schweiz.org>
2604
2605 PR testsuite/32843
2606 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2607 signed/unsigned int8/16 for X86_DARWIN.
2608 Updated copyright info.
2609 Handle one and two byte structs with special cif->flags.
2610 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2611 Updated copyright info.
2612 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2613 sysv.S
2614 Remove code to pop args from the stack after call.
2615 Special-case signed/unsigned for int8/16, one and two byte structs.
2616 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2617 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2618 FFI_TYPE_SINT32.
2619 Updated copyright info.
2620
26212007-12-08 David Daney <ddaney@avtrex.com>
2622
Anthony Green0cfe60e2009-12-29 10:06:04 -05002623 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002624 SUBU, add with ADDU and use smaller code sequences.
2625
26262007-12-07 David Daney <ddaney@avtrex.com>
2627
2628 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2629 type.
2630
26312007-12-06 David Daney <ddaney@avtrex.com>
2632
2633 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2634 defined.
2635 (ffi_java_raw): New typedef.
2636 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2637 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2638 ffi_java_raw.
2639 (ffi_java_raw_closure) : Same.
2640 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2641 parameter types.
2642 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2643 FFI_SIZEOF_JAVA_RAW.
2644 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2645 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2646 sizeof(ffi_java_raw) for alignment calculations.
2647 (ffi_java_ptrarray_to_raw): Same.
2648 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -05002649 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002650 (ffi_java_raw_to_rvalue): Same.
2651 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2652 (ffi_java_translate_args): Same.
2653 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2654 parameter types.
2655 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2656
26572007-12-06 David Daney <ddaney@avtrex.com>
2658
Anthony Green0cfe60e2009-12-29 10:06:04 -05002659 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002660 pointer values.
2661
26622007-12-01 Andreas Tobler <a.tobler@schweiz.org>
2663
2664 PR libffi/31937
2665 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2666 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2667 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2668 set the NUM_FPR_ARG_REGISTERS according to.
2669 Add support for potential soft-float support under hard-float
2670 architecture.
2671 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2672 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2673 to the FFI_LINUX_SOFT_FLOAT ABI.
2674 (ffi_prep_cif_machdep): Likewise.
2675 (ffi_closure_helper_SYSV): Likewise.
2676 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2677 on archs where __NO_FPRS__ is true.
2678 Add FFI_TYPE_UINT128 support.
2679 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2680 Adjust copyright notice.
2681
26822007-11-25 Andreas Tobler <a.tobler@schweiz.org>
2683
2684 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2685 * include/ffi_common.h: ... here.
2686 Update copyright.
2687
26882007-11-17 Andreas Tobler <a.tobler@schweiz.org>
2689
2690 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2691 * src/powerpc/linux64.S: Likewise.
2692 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2693 * testsuite/libffi.call/return_ldl.c: New test.
2694
26952007-09-04 <aph@redhat.com>
2696
2697 * src/arm/sysv.S (UNWIND): New.
2698 (Whole file): Conditionally compile unwinder directives.
2699 * src/arm/sysv.S: Add unwinder directives.
2700
2701 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2702 Only treat r0 as a struct address if we're actually returning a
2703 struct by address.
2704 Only copy the bytes that are actually within a struct.
2705 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2706 is returned in r0, not passed by address.
2707 (ffi_call): Allocate a word-sized temporary for the case where
2708 a composite is returned in r0.
2709 (ffi_prep_incoming_args_SYSV): Align as necessary.
2710
27112007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
2712
Anthony Green0cfe60e2009-12-29 10:06:04 -05002713 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002714 directly using the sys_cacheflush syscall.
2715
27162007-07-27 Andrew Haley <aph@redhat.com>
2717
2718 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2719
27202007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
2721
2722 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2723 * configure.ac: Likewise.
2724 * Makefile.in: Regenerate.
2725 * include/Makefile.in: Likewise.
2726 * testsuite/Makefile.in: Likewise.
2727 * configure: Likewise.
2728
27292007-08-24 David Daney <ddaney@avtrex.com>
2730
2731 * testsuite/libffi.call/return_sl.c: New test.
2732
27332007-08-10 David Daney <ddaney@avtrex.com>
2734
2735 * testsuite/libffi.call/cls_multi_ushort.c,
2736 testsuite/libffi.call/cls_align_uint16.c,
2737 testsuite/libffi.call/nested_struct1.c,
2738 testsuite/libffi.call/nested_struct3.c,
2739 testsuite/libffi.call/cls_7_1_byte.c,
2740 testsuite/libffi.call/nested_struct5.c,
2741 testsuite/libffi.call/cls_double.c,
2742 testsuite/libffi.call/nested_struct7.c,
2743 testsuite/libffi.call/cls_sint.c,
2744 testsuite/libffi.call/nested_struct9.c,
2745 testsuite/libffi.call/cls_20byte1.c,
2746 testsuite/libffi.call/cls_multi_sshortchar.c,
2747 testsuite/libffi.call/cls_align_sint64.c,
2748 testsuite/libffi.call/cls_3byte2.c,
2749 testsuite/libffi.call/cls_multi_schar.c,
2750 testsuite/libffi.call/cls_multi_uchar.c,
2751 testsuite/libffi.call/cls_19byte.c,
2752 testsuite/libffi.call/cls_9byte1.c,
2753 testsuite/libffi.call/cls_align_float.c,
2754 testsuite/libffi.call/closure_fn1.c,
2755 testsuite/libffi.call/problem1.c,
2756 testsuite/libffi.call/closure_fn3.c,
2757 testsuite/libffi.call/cls_sshort.c,
2758 testsuite/libffi.call/closure_fn5.c,
2759 testsuite/libffi.call/cls_align_double.c,
2760 testsuite/libffi.call/nested_struct.c,
2761 testsuite/libffi.call/cls_2byte.c,
2762 testsuite/libffi.call/nested_struct10.c,
2763 testsuite/libffi.call/cls_4byte.c,
2764 testsuite/libffi.call/cls_6byte.c,
2765 testsuite/libffi.call/cls_8byte.c,
2766 testsuite/libffi.call/cls_multi_sshort.c,
2767 testsuite/libffi.call/cls_align_sint16.c,
2768 testsuite/libffi.call/cls_align_uint32.c,
2769 testsuite/libffi.call/cls_20byte.c,
2770 testsuite/libffi.call/cls_float.c,
2771 testsuite/libffi.call/nested_struct2.c,
2772 testsuite/libffi.call/cls_5_1_byte.c,
2773 testsuite/libffi.call/nested_struct4.c,
2774 testsuite/libffi.call/cls_24byte.c,
2775 testsuite/libffi.call/nested_struct6.c,
2776 testsuite/libffi.call/cls_64byte.c,
2777 testsuite/libffi.call/nested_struct8.c,
2778 testsuite/libffi.call/cls_uint.c,
2779 testsuite/libffi.call/cls_multi_ushortchar.c,
2780 testsuite/libffi.call/cls_schar.c,
2781 testsuite/libffi.call/cls_uchar.c,
2782 testsuite/libffi.call/cls_align_uint64.c,
2783 testsuite/libffi.call/cls_ulonglong.c,
2784 testsuite/libffi.call/cls_align_longdouble.c,
2785 testsuite/libffi.call/cls_1_1byte.c,
2786 testsuite/libffi.call/cls_12byte.c,
2787 testsuite/libffi.call/cls_3_1byte.c,
2788 testsuite/libffi.call/cls_3byte1.c,
2789 testsuite/libffi.call/cls_4_1byte.c,
2790 testsuite/libffi.call/cls_6_1_byte.c,
2791 testsuite/libffi.call/cls_16byte.c,
2792 testsuite/libffi.call/cls_18byte.c,
2793 testsuite/libffi.call/closure_fn0.c,
2794 testsuite/libffi.call/cls_9byte2.c,
2795 testsuite/libffi.call/closure_fn2.c,
2796 testsuite/libffi.call/closure_fn4.c,
2797 testsuite/libffi.call/cls_ushort.c,
2798 testsuite/libffi.call/closure_fn6.c,
2799 testsuite/libffi.call/cls_5byte.c,
2800 testsuite/libffi.call/cls_align_pointer.c,
2801 testsuite/libffi.call/cls_7byte.c,
2802 testsuite/libffi.call/cls_align_sint32.c,
2803 testsuite/libffi.special/unwindtest_ffi_call.cc,
2804 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2805
28062007-08-10 David Daney <ddaney@avtrex.com>
2807
2808 PR libffi/28313
2809 * configure.ac: Don't treat mips64 as a special case.
2810 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2811 * configure: Regenerate
2812 * Makefile.in: Ditto.
2813 * fficonfig.h.in: Ditto.
2814 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2815 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2816 (FFI_DEFAULT_ABI): Set for n64 case.
2817 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2818 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2819 (ffi_closure_N32): New function.
2820 (.eh_frame): New section
2821 * src/mips/o32.S: Clean up comments.
2822 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2823 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2824 _MIPS_SIM == _ABIN32 throughout.
2825 (FFI_MIPS_STOP_HERE): New, use in place of
2826 ffi_stop_here.
2827 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2828 to support n32/n64 ABIs.
2829 (calc_n32_struct_flags): Rewrite.
2830 (calc_n32_return_struct_flags): Remove unused variable. Reverse
2831 position of flag bits.
2832 (ffi_prep_cif_machdep): Rewrite n32 portion.
2833 (ffi_call): Enable for n64. Add special handling for small structure
2834 return values.
2835 (ffi_prep_closure_loc): Add n32 and n64 support.
2836 (ffi_closure_mips_inner_O32): Add cast to silence warning.
2837 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2838
28392007-08-08 David Daney <ddaney@avtrex.com>
2840
2841 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2842 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2843 specifiers.
2844 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2845 * testsuite/libffi.call/cls_sint.c (main): Ditto.
2846 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2847 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2848 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2849 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2850 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2851 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2852 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2853 * testsuite/libffi.call/return_fl3.c (main): Ditto.
2854 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2855 * testsuite/libffi.call/nested_struct.c (main): Ditto.
2856 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2857 * testsuite/libffi.call/return_ll1.c (main): Ditto.
2858 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2859 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2860 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2861 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2862 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2863 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2864 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2865 * testsuite/libffi.call/cls_uint.c (main): Ditto.
2866 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2867 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2868 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2869 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2870 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2871 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2872 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2873 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2874 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2875
28762007-08-07 Andrew Haley <aph@redhat.com>
2877
2878 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2879 checkin.
2880
28812007-08-06 Andrew Haley <aph@redhat.com>
2882
2883 PR testsuite/32843
2884 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2885 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2886 FFI_TYPE_SINT32.
2887
28882007-08-02 David Daney <ddaney@avtrex.com>
2889
2890 * testsuite/libffi.call/return_ul.c (main): Define return type as
2891 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002892
Anthony Greenc6dddbd2009-10-04 08:11:33 -040028932007-07-30 Andrew Haley <aph@redhat.com>
2894
2895 PR testsuite/32843
2896 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
2897 signed/unsigned int8/16.
2898 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
2899 Use a jump table.
2900 Remove code to pop args from the stack after call.
2901 Special-case signed/unsigned int8/16.
2902 * testsuite/libffi.call/return_sc.c (main): Revert.
2903
29042007-07-26 Richard Guenther <rguenther@suse.de>
2905
2906 PR testsuite/32843
2907 * testsuite/libffi.call/return_sc.c (main): Verify call
2908 result as signed char, not ffi_arg.
2909
29102007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2911
2912 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
2913 * configure: Regenerate.
2914
29152007-07-11 David Daney <ddaney@avtrex.com>
2916
2917 * src/mips/ffi.c: Don't include sys/cachectl.h.
2918 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
2919 cacheflush().
2920
29212007-05-18 Aurelien Jarno <aurelien@aurel32.net>
2922
2923 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
2924 from (ffi_prep_closure): ... this.
2925 (FFI_INIT_TRAMPOLINE): Adjust.
2926
29272005-12-31 Phil Blundell <pb@reciva.com>
2928
Anthony Green0cfe60e2009-12-29 10:06:04 -05002929 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
2930 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002931 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
2932 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
2933 (FFI_CLOSURES): Enable closure support.
2934
29352007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
2936
Anthony Green0cfe60e2009-12-29 10:06:04 -05002937 * testsuite/libffi.call/cls_multi_ushort.c,
2938 testsuite/libffi.call/cls_align_uint16.c,
2939 testsuite/libffi.call/nested_struct1.c,
2940 testsuite/libffi.call/nested_struct3.c,
2941 testsuite/libffi.call/cls_7_1_byte.c,
2942 testsuite/libffi.call/cls_double.c,
2943 testsuite/libffi.call/nested_struct5.c,
2944 testsuite/libffi.call/nested_struct7.c,
2945 testsuite/libffi.call/cls_sint.c,
2946 testsuite/libffi.call/nested_struct9.c,
2947 testsuite/libffi.call/cls_20byte1.c,
2948 testsuite/libffi.call/cls_multi_sshortchar.c,
2949 testsuite/libffi.call/cls_align_sint64.c,
2950 testsuite/libffi.call/cls_3byte2.c,
2951 testsuite/libffi.call/cls_multi_schar.c,
2952 testsuite/libffi.call/cls_multi_uchar.c,
2953 testsuite/libffi.call/cls_19byte.c,
2954 testsuite/libffi.call/cls_9byte1.c,
2955 testsuite/libffi.call/cls_align_float.c,
2956 testsuite/libffi.call/closure_fn1.c,
2957 testsuite/libffi.call/problem1.c,
2958 testsuite/libffi.call/closure_fn3.c,
2959 testsuite/libffi.call/cls_sshort.c,
2960 testsuite/libffi.call/closure_fn5.c,
2961 testsuite/libffi.call/cls_align_double.c,
2962 testsuite/libffi.call/cls_2byte.c,
2963 testsuite/libffi.call/nested_struct.c,
2964 testsuite/libffi.call/nested_struct10.c,
2965 testsuite/libffi.call/cls_4byte.c,
2966 testsuite/libffi.call/cls_6byte.c,
2967 testsuite/libffi.call/cls_8byte.c,
2968 testsuite/libffi.call/cls_multi_sshort.c,
2969 testsuite/libffi.call/cls_align_uint32.c,
2970 testsuite/libffi.call/cls_align_sint16.c,
2971 testsuite/libffi.call/cls_float.c,
2972 testsuite/libffi.call/cls_20byte.c,
2973 testsuite/libffi.call/cls_5_1_byte.c,
2974 testsuite/libffi.call/nested_struct2.c,
2975 testsuite/libffi.call/cls_24byte.c,
2976 testsuite/libffi.call/nested_struct4.c,
2977 testsuite/libffi.call/nested_struct6.c,
2978 testsuite/libffi.call/cls_64byte.c,
2979 testsuite/libffi.call/nested_struct8.c,
2980 testsuite/libffi.call/cls_uint.c,
2981 testsuite/libffi.call/cls_multi_ushortchar.c,
2982 testsuite/libffi.call/cls_schar.c,
2983 testsuite/libffi.call/cls_uchar.c,
2984 testsuite/libffi.call/cls_align_uint64.c,
2985 testsuite/libffi.call/cls_ulonglong.c,
2986 testsuite/libffi.call/cls_align_longdouble.c,
2987 testsuite/libffi.call/cls_1_1byte.c,
2988 testsuite/libffi.call/cls_12byte.c,
2989 testsuite/libffi.call/cls_3_1byte.c,
2990 testsuite/libffi.call/cls_3byte1.c,
2991 testsuite/libffi.call/cls_4_1byte.c,
2992 testsuite/libffi.call/cls_6_1_byte.c,
2993 testsuite/libffi.call/cls_16byte.c,
2994 testsuite/libffi.call/cls_18byte.c,
2995 testsuite/libffi.call/closure_fn0.c,
2996 testsuite/libffi.call/cls_9byte2.c,
2997 testsuite/libffi.call/closure_fn2.c,
2998 testsuite/libffi.call/closure_fn4.c,
2999 testsuite/libffi.call/cls_ushort.c,
3000 testsuite/libffi.call/closure_fn6.c,
3001 testsuite/libffi.call/cls_5byte.c,
3002 testsuite/libffi.call/cls_align_pointer.c,
3003 testsuite/libffi.call/cls_7byte.c,
3004 testsuite/libffi.call/cls_align_sint32.c,
3005 testsuite/libffi.special/unwindtest_ffi_call.cc,
3006 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003007
30082007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3009
3010 * aclocal.m4: Regenerated.
3011
30122007-06-02 Paolo Bonzini <bonzini@gnu.org>
3013
3014 * configure: Regenerate.
3015
30162007-05-23 Steve Ellcey <sje@cup.hp.com>
3017
3018 * Makefile.in: Regenerate.
3019 * configure: Regenerate.
3020 * aclocal.m4: Regenerate.
3021 * include/Makefile.in: Regenerate.
3022 * testsuite/Makefile.in: Regenerate.
3023
30242007-05-10 Roman Zippel <zippel@linux-m68k.org>
3025
3026 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3027 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3028 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3029 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3030 (FFI_CLOSURES): Enable closure support.
3031
30322007-05-10 Roman Zippel <zippel@linux-m68k.org>
3033
3034 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3035 * configure: Regenerate.
3036 * fficonfig.h.in: Regenerate.
3037 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3038 CFI_OFFSET,CFI_DEF_CFA): New macros.
3039 (ffi_call_SYSV): Add callframe annotation.
3040
30412007-05-10 Roman Zippel <zippel@linux-m68k.org>
3042
3043 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3044 numerous test suite failures.
3045 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3046
30472007-04-11 Paolo Bonzini <bonzini@gnu.org>
3048
3049 * Makefile.am (EXTRA_DIST): Bring up to date.
3050 * Makefile.in: Regenerate.
3051 * src/frv/eabi.S: Remove RCS keyword.
3052
30532007-04-06 Richard Henderson <rth@redhat.com>
3054
3055 * configure.ac: Tidy target case.
3056 (HAVE_LONG_DOUBLE): Allow the target to override.
3057 * configure: Regenerate.
3058 * include/ffi.h.in: Don't define ffi_type_foo if
3059 LIBFFI_HIDE_BASIC_TYPES is defined.
3060 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3061 to ffi_type_double.
3062 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3063 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3064 (ffi_type_longdouble): Special case for Alpha. Don't define
3065 if long double == double.
3066
3067 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3068 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3069 (ffi_call, ffi_closure_osf_inner): Likewise.
3070 (ffi_closure_osf_inner): Likewise. Mark hidden.
3071 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3072 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3073 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3074 (load_table): Handle 128-bit long double.
3075
3076 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3077
30782007-04-06 Tom Tromey <tromey@redhat.com>
3079
3080 PR libffi/31491:
3081 * README: Fixed bug in example.
3082
30832007-04-03 Jakub Jelinek <jakub@redhat.com>
3084
3085 * src/closures.c: Include sys/statfs.h.
3086 (_GNU_SOURCE): Define on Linux.
3087 (FFI_MMAP_EXEC_SELINUX): Define.
3088 (selinux_enabled): New variable.
3089 (selinux_enabled_check): New function.
3090 (is_selinux_enabled): Define.
3091 (dlmmap): Use it.
3092
30932007-03-24 Uros Bizjak <ubizjak@gmail.com>
3094
3095 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3096 Use 'volatile float sum' to create sum of floats to avoid false
3097 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003098 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003099
31002007-03-08 Alexandre Oliva <aoliva@redhat.com>
3101
3102 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3103 patch.
3104 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3105
31062007-03-07 Alexandre Oliva <aoliva@redhat.com>
3107
3108 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3109 (ffi_prep_closure_loc): New.
3110 (ffi_prep_raw_closure_loc): New.
3111 (ffi_prep_java_raw_closure_loc): New.
3112 * src/closures.c: New file.
3113 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3114 Replace sflags with exec_offset.
3115 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3116 sub_segment_exec_offset): New macros.
3117 (get_segment_flags, set_segment_flags, check_segment_merge): New
3118 macros.
3119 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3120 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3121 destroy_mspace): Use new macros.
3122 (sys_alloc): Silence warning.
3123 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3124 * Makefile.in: Rebuilt.
3125 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3126 terms of ffi_prep_closure_loc.
3127 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3128 from...
3129 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3130 renamed version.
3131 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3132 adjusted from...
3133 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3134 the renamed version.
3135 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3136 (ffi_prep_closure): ... this.
3137 * src/pa/ffi.c: Likewise.
3138 * src/cris/ffi.c: Likewise. Adjust.
3139 * src/frv/ffi.c: Likewise.
3140 * src/ia64/ffi.c: Likewise.
3141 * src/mips/ffi.c: Likewise.
3142 * src/powerpc/ffi_darwin.c: Likewise.
3143 * src/s390/ffi.c: Likewise.
3144 * src/sh/ffi.c: Likewise.
3145 * src/sh64/ffi.c: Likewise.
3146 * src/sparc/ffi.c: Likewise.
3147 * src/x86/ffi64.c: Likewise.
3148 * src/x86/ffi.c: Likewise.
3149 (FFI_INIT_TRAMPOLINE): Adjust.
3150 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3151 (ffi_prep_raw_closure): ... this.
3152 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3153 (ffi_prep_closure): ... this.
3154 (flush_icache): Adjust.
3155
31562007-03-07 Alexandre Oliva <aoliva@redhat.com>
3157
3158 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3159 Lea's malloc.
3160
31612007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3162
3163 * Makefile.am: Add dummy install-pdf target.
3164 * Makefile.in: Regenerate
3165
31662007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
3167
3168 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3169 ffi_closure_helper_SYSV): Add long double handling.
3170
31712007-02-02 Jakub Jelinek <jakub@redhat.com>
3172
3173 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3174 immediately after bctrl instruction.
3175
31762007-01-18 Alexandre Oliva <aoliva@redhat.com>
3177
3178 * Makefile.am (all-recursive, install-recursive,
3179 mostlyclean-recursive, clean-recursive, distclean-recursive,
3180 maintainer-clean-recursive): Add missing targets.
3181 * Makefile.in: Rebuilt.
3182
31832006-12-14 Andreas Tobler <a.tobler@schweiz.org>
3184
3185 * configure.ac: Add TARGET for x86_64-*-darwin*.
3186 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3187 for X86_DARWIN.
3188 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3189 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3190 * configure: Regenerate.
3191 * Makefile.in: Regenerate.
3192 * include/Makefile.in: Regenerate.
3193 * testsuite/Makefile.in: Regenerate.
3194 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3195 ffi_call only.
3196
31972006-12-13 Andreas Tobler <a.tobler@schweiz.org>
3198
3199 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3200 Makefile.am.
3201
32022006-10-31 Geoffrey Keating <geoffk@apple.com>
3203
3204 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3205 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3206 Darwin.
3207 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3208 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3209
32102006-10-10 Paolo Bonzini <bonzini@gnu.org>
3211 Sandro Tolaini <tolaini@libero.it>
3212
Anthony Green0cfe60e2009-12-29 10:06:04 -05003213 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003214 conditional.
3215 * configure: Regenerated.
3216 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3217 (EXTRA_DIST): Add src/x86/darwin.S.
3218 * Makefile.in: Regenerated.
3219 * include/Makefile.in: Regenerated.
3220 * testsuite/Makefile.in: Regenerated.
3221
3222 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3223 X86_WIN32, and additionally align stack to 16 bytes.
3224 * src/x86/darwin.S: New, based on sysv.S.
3225 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3226
32272006-09-12 David Daney <ddaney@avtrex.com>
3228
3229 PR libffi/23935
3230 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3231 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3232 * aclocal.m4: Regenerated for automake 1.9.6.
3233 * Makefile.in: Regenerated.
3234 * include/Makefile.in: Regenerated.
3235 * testsuite/Makefile.in: Regenerated.
3236
32372006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3238
3239 * include/ffi_common.h (struct): Revert accidental commit.
3240
32412006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3242
3243 * include/ffi_common.h: Remove lint directives.
3244 * include/ffi.h.in: Likewise.
3245
32462006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
3247
3248 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3249 for 32-bit architectures.
3250 * testsuite/libffi.call/return_ul.c: New test case.
3251
32522006-07-19 David Daney <ddaney@avtrex.com>
3253
3254 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3255 xfail remains for mips64.
3256
32572006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3258
3259 * Makefile.am: Add install-html target. Add install-html to .PHONY
3260 * Makefile.in: Regenerate.
3261 * aclocal.m4: Regenerate.
3262 * include/Makefile.in: Regenerate.
3263 * testsuite/Makefile.in: Regenerate.
3264
32652006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3266
3267 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3268 stack slot.
3269
32702006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
3271
3272 * README: Remove notice about 'Crazy Comments'.
3273 * src/debug.c: Remove lint directives. Cleanup white spaces.
3274 * src/java_raw_api.c: Likewise.
3275 * src/prep_cif.c: Likewise.
3276 * src/raw_api.c: Likewise.
3277 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3278 to the testsuite.
3279 * src/arm/ffi.c: Remove lint directives.
3280 * src/m32r/ffi.c: Likewise.
3281 * src/pa/ffi.c: Likewise.
3282 * src/powerpc/ffi.c: Likewise.
3283 * src/powerpc/ffi_darwin.c: Likewise.
3284 * src/sh/ffi.c: Likewise.
3285 * src/sh64/ffi.c: Likewise.
3286 * src/x86/ffi.c: Likewise.
3287 * testsuite/libffi.call/float2.c: Likewise.
3288 * testsuite/libffi.call/promotion.c: Likewise.
3289 * testsuite/libffi.call/struct1.c: Likewise.
3290
32912006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
3292
3293 * src/pa/hpux32.S: Correct unwind offset calculation for
3294 ffi_closure_pa32.
3295 * src/pa/linux.S: Likewise.
3296
32972006-04-12 James E Wilson <wilson@specifix.com>
3298
3299 PR libgcj/26483
3300 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3301 (hfa_type_load): Call stf_spill.
3302 (hfa_type_store): Call ldf_fill.
3303 (ffi_call): Adjust calls to above routines. Add local temps for
3304 macro result.
3305
33062006-04-10 Matthias Klose <doko@debian.org>
3307
3308 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3309 directory names containing underscores.
3310
33112006-04-07 James E Wilson <wilson@specifix.com>
3312
3313 * testsuite/libffi.call/float4.c: New testcase.
3314
33152006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3316 Andreas Tobler <a.tobler@schweiz.ch>
3317
3318 * Makefile.am: Add PA_HPUX port.
3319 * Makefile.in: Regenerate.
3320 * include/Makefile.in: Likewise.
3321 * testsuite/Makefile.in: Likewise.
3322 * configure.ac: Add PA_HPUX rules.
3323 * configure: Regenerate.
3324 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3325 Add PA_HPUX and PA64_HPUX.
3326 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3327 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3328 (FFI_TYPE_SMALL_STRUCT2): Define.
3329 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3330 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3331 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3332 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3333 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3334 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3335 * src/pa/ffi.c (ROUND_DOWN): Delete.
3336 (fldw, fstw, fldd, fstd): Use '__asm__'.
3337 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3338 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3339 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3340 Simplify incrementing of stack slot variable. Change type of local
3341 'n' to unsigned int.
3342 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3343 double on PA_HPUX.
3344 (ffi_prep_cif_machdep): Likewise.
3345 (ffi_call): Likewise.
3346 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3347 return type to ffi_status. Simplify incrementing of stack slot
3348 variable. Only copy floating point argument registers when PA_LINUX
3349 is true. Reformat debug statement.
3350 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3351 FFI_TYPE_SMALL_STRUCT8.
3352 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3353 declaration.
3354 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3355 Add nops to cache flush. Add trampoline for PA_HPUX.
3356 * src/pa/hpux32.S: New file.
3357 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3358 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3359 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3360 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3361 argument type checks so that common argument types appear first.
3362 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3363 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3364
33652006-03-24 Alan Modra <amodra@bigpond.net.au>
3366
3367 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3368 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3369 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3370 FFI_TYPE_LONGDOUBLE.
3371 (ffi_prep_args64): Assert using IBM extended double.
3372 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3373 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3374 (ffi_call): Handle FFI_LINUX.
3375 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3376 gpr3 return pointer as for struct return. Handle FFI_LINUX
3377 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3378 unnecessarily.
3379 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3380 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3381 Don't use r6 as pointer to results, instead use sp offset. Don't
3382 make a special call to load lr with case table address, instead
3383 use offset from previous call.
3384 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3385 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3386 return.
3387
33882006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
3389
3390 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3391 passed with FP registers correctly.
3392 (ffi_closure_helper_SYSV): Likewise.
3393 * src/sh64/sysv.S: Likewise.
3394
33952006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
3396
3397 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3398 args and userdata unused.
3399 (closure_test_fn1): Mark cif and userdata unused.
3400 (main): Remove unused res.
3401
34022006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
3403
3404 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3405 -O2, -O3, -Os and the warning flags -W -Wall.
3406 * testsuite/libffi.special/special.exp: Likewise.
3407 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3408 unused parameter unused for gcc or else do nothing.
3409 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3410 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3411 and userdata unused.
3412 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3413 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3414 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3415 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3416 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3417 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3418 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3419 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3420 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3421 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3422 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3423 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3424 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3425 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3426 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3427 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3428 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3429 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3430 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3431 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3432 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3433 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3434 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3435 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3436 Likewise.
3437 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3438 Likewise.
3439 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3440 Likewise.
3441 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3442 void* to avoid compiler warning.
3443 (main): Likewise.
3444 (cls_struct_align_gn): Mark cif and userdata unused.
3445 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3446 Likewise.
3447 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3448 Likewise.
3449 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3450 Likewise.
3451 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3452 Likewise.
3453 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3454 Likewise.
3455 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3456 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3457 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3458 data unused.
3459 (main): Cast res_call to silence gcc.
3460 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3461 data unused.
3462 (main): Cast res_call to silence gcc.
3463 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3464 and data unused.
3465 (main): Cast res_call to silence gcc.
3466 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3467 data unused.
3468 (main): Cast res_call to silence gcc.
3469 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3470 data unused.
3471 (main): Cast res_call to silence gcc.
3472 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3473 and data unused.
3474 (main): Cast res_call to silence gcc.
3475 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3476 userdata unused.
3477 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3478 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3479 userdata unused.
3480 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3481 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3482 userdata unused.
3483 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3484 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3485 userdata unused.
3486 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3487 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3488 userdata unused.
3489 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3490 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3491 and userdata unused.
3492 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3493 userdata unused.
3494 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3495 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3496 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3497 Cleanup white spaces.
3498 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3499 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3500 cif and userdata unused.
3501 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3502 Likewise.
3503 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3504 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3505 formatters to silence gcc.
3506 (B_gn): Mark cif and userdata unused.
3507 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3508 unused.
3509 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3510 (B_gn): Mark cif and userdata unused.
3511 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3512 unused.
3513 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3514 (B_gn): Mark cif and userdata unused.
3515 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3516 unused.
3517 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3518 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3519 * testsuite/libffi.call/problem1.c (stub): Likewise.
3520 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3521 gcc.
3522 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3523 in the last commit for this test case in the test case itself.
3524 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3525 unused.
3526 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3527 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3528 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3529 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3530 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3531 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3532
35332006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
3534
3535 * src/sh/sysv.S: Fix register numbers in the FDE for
3536 ffi_closure_SYSV.
3537
35382006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
3539
3540 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3541 declaration to avoid a false negative on ix86. See PR323.
3542
35432006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3544
3545 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3546 and cast integer to void * if needed. Update the pointer to
3547 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003548
Anthony Greenc6dddbd2009-10-04 08:11:33 -040035492006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
3550
3551 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3552 is fixed.
3553 * testsuite/libffi.call/nested_struct4.c: Likewise.
3554
35552006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
3556
3557 * testsuite/libffi.call/return_dbl.c: New test case.
3558 * testsuite/libffi.call/return_dbl1.c: Likewise.
3559 * testsuite/libffi.call/return_dbl2.c: Likewise.
3560 * testsuite/libffi.call/return_fl.c: Likewise.
3561 * testsuite/libffi.call/return_fl1.c: Likewise.
3562 * testsuite/libffi.call/return_fl2.c: Likewise.
3563 * testsuite/libffi.call/return_fl3.c: Likewise.
3564 * testsuite/libffi.call/closure_fn6.c: Likewise.
3565
3566 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3567 definition.
3568 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3569 here to be used by other test cases too.
3570
3571 * testsuite/libffi.call/nested_struct10.c: New test case.
3572 * testsuite/libffi.call/nested_struct9.c: Likewise.
3573 * testsuite/libffi.call/nested_struct8.c: Likewise.
3574 * testsuite/libffi.call/nested_struct7.c: Likewise.
3575 * testsuite/libffi.call/nested_struct6.c: Likewise.
3576 * testsuite/libffi.call/nested_struct5.c: Likewise.
3577 * testsuite/libffi.call/nested_struct4.c: Likewise.
3578
35792006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3580
3581 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3582 * configure: Rebuilt.
3583
35842006-01-18 Jakub Jelinek <jakub@redhat.com>
3585
3586 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3587 instead do the shifting inline.
3588 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3589 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3590 and 8 byte structs, for the remaining struct sizes don't call
3591 __lshrdi3, instead do the shifting inline.
3592
35932005-12-07 Thiemo Seufer <ths@networkno.de>
3594
3595 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3596 missing parentheses.
3597 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3598 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3599 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3600 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3601 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3602 FA_0_0_OFF2.
3603 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3604 endianness bugs.
3605 (ffi_prep_closure): Improve trampoline instruction scheduling.
3606 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3607
36082005-12-03 Alan Modra <amodra@bigpond.net.au>
3609
3610 * src/powerpc/ffi.c: Formatting.
3611 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3612 (ffi_prep_args64): Likewise.
3613
36142005-09-30 Geoffrey Keating <geoffk@apple.com>
3615
3616 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3617 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3618
36192005-09-26 Tom Tromey <tromey@redhat.com>
3620
3621 * testsuite/libffi.call/float1.c (value_type): New typedef.
3622 (CANARY): New define.
3623 (main): Check for result buffer overflow.
3624 * src/powerpc/linux64.S: Handle linux64 long double returns.
3625 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3626 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3627
36282005-08-25 Alan Modra <amodra@bigpond.net.au>
3629
3630 PR target/23404
3631 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3632 homed fp args.
3633 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3634
36352005-08-11 Jakub Jelinek <jakub@redhat.com>
3636
3637 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3638 (AH_BOTTOM): Add FFI_HIDDEN definition.
3639 * configure: Rebuilt.
3640 * fficonfig.h.in: Rebuilt.
3641 * src/powerpc/ffi.c (hidden): Remove.
3642 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3643 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3644 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3645 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3646 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3647 add FFI_HIDDEN to its prototype.
3648 (ffi_closure_SYSV_inner): New.
3649 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3650 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3651
36522005-08-10 Alfred M. Szmidt <ams@gnu.org>
3653
3654 PR libffi/21819:
3655 * configure: Rebuilt.
3656 * configure.ac: Handle i*86-*-gnu*.
3657
36582005-08-09 Jakub Jelinek <jakub@redhat.com>
3659
3660 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3661 DW_CFA_offset_extended_sf rather than
3662 DW_CFA_GNU_negative_offset_extended.
3663 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3664
36652005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3666
3667 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3668 on sh3.
3669 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3670 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3671 partially on register.
3672 (ffi_closure_helper_SYSV): Likewise.
3673 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3674
36752005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3676
3677 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3678 Remove empty line.
3679 * src/sh64/ffi.c (simple_type): Remove.
3680 (return_type): Handle small structures correctly.
3681 (ffi_prep_args): Likewise.
3682 (ffi_call): Likewise.
3683 (ffi_closure_helper_SYSV): Likewise.
3684 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3685 Emit position independent code if PIC and remove wrong datalabel
3686 prefixes from EH data.
3687
36882005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
3689
3690 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3691 * Makefile.in: Regenerate.
3692 * include/Makefile.in: Likewise.
3693 * testsuite/Makefile.in: Likewise.
3694 * configure.ac: Add POWERPC_FREEBSD rules.
3695 * configure: Regenerate.
3696 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3697 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3698 * src/powerpc/ffi.c: Add flags to handle small structure returns
3699 in ffi_call_SYSV.
3700 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3701 Aka FFI_SYSV.
3702 (ffi_closure_helper_SYSV): Likewise.
3703 * src/powerpc/ppc_closure.S: Add return types for small structures.
3704 * src/powerpc/sysv.S: Add bits to handle small structures for
3705 final SYSV 4 ABI.
3706
37072005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3708
3709 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3710 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3711 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3712
37132005-07-05 Randolph Chung <tausq@debian.org>
3714
3715 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3716 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3717 structures. Kill compilation warnings.
3718 (ffi_closure_inner_LINUX): Print return values as hex in debug
3719 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3720 Properly handle 5-7 byte structure returns.
3721 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3722 (FFI_TYPE_SMALL_STRUCT2): Remove.
3723 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3724 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3725 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3726 (checksmst1, checksmst2): Remove.
3727 (checksmst3): Optimize handling of 3-byte struct returns.
3728 (checksmst567): Properly handle 5-7 byte struct returns.
3729
37302005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3731
3732 PR libgcj/21943
3733 * src/mips/n32.S: Enforce PIC code.
3734 * src/mips/o32.S: Likewise.
3735
37362005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3737
3738 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3739 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003740
Anthony Greenc6dddbd2009-10-04 08:11:33 -040037412005-06-01 Alan Modra <amodra@bigpond.net.au>
3742
3743 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3744 to call ffi_closure_helper_SYSV. Append @local instead.
3745 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3746
37472005-05-17 Kelley Cook <kcook@gcc.gnu.org>
3748
3749 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3750 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3751 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3752 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3753 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003754
Anthony Greenc6dddbd2009-10-04 08:11:33 -040037552005-05-09 Mike Stump <mrs@apple.com>
3756
3757 * configure: Regenerate.
3758
37592005-05-08 Richard Henderson <rth@redhat.com>
3760
3761 PR libffi/21285
3762 * src/alpha/osf.S: Update unwind into to match code.
3763
37642005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
3765 Richard Henderson <rth@redhat.com>
3766
3767 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3768 bit 11 of flags.
3769 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3770 (ffi_prep_closure): Set carry bit if sse-used flag set.
3771 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3772 Only load sse registers if ssecount non-zero.
3773 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3774
37752005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3776
3777 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3778 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3779 * configure: Regenerate.
3780
37812005-04-20 Hans-Peter Nilsson <hp@axis.com>
3782
3783 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3784 have Tcl8.3-compatible intermediate variable.
3785
Anthony Green0cfe60e2009-12-29 10:06:04 -050037862005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003787 Hans-Peter Nilsson <hp@axis.com>
3788
3789 * Makefile.am: Add CRIS support.
3790 * configure.ac: Likewise.
3791 * Makefile.in, configure, testsuite/Makefile.in,
3792 include/Makefile.in: Regenerate.
3793 * src/cris: New directory.
3794 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3795 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3796
3797 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3798 \r?\n in output tests.
3799
38002005-04-12 Mike Stump <mrs@apple.com>
3801
3802 * configure: Regenerate.
3803
38042005-03-30 Hans Boehm <Hans.Boehm@hp.com>
3805
3806 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003807
Anthony Greenc6dddbd2009-10-04 08:11:33 -040038082005-03-30 Steve Ellcey <sje@cup.hp.com>
3809
3810 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3811 (ffi_sarg) Ditto.
3812 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3813 to 64 bits in ILP32 mode.
3814 Load 64 bits even for short data.
3815
38162005-03-23 Mike Stump <mrs@apple.com>
3817
3818 * src/powerpc/darwin.S: Update for -m64 multilib.
3819 * src/powerpc/darwin_closure.S: Likewise.
3820
38212005-03-21 Zack Weinberg <zack@codesourcery.com>
3822
3823 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3824 Do not set tool_include_dir.
3825 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3826 Regenerate.
3827 * include/Makefile.am: Set gcc_version and toollibffidir.
3828 * include/Makefile.in: Regenerate.
3829
38302005-02-22 Andrew Haley <aph@redhat.com>
3831
3832 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3833 odd-numbered register pairs for 64-bit integer types.
3834
38352005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
3836
3837 PR libffi/20104
3838 * testsuite/libffi.call/return_ll1.c: New test case.
3839
38402005-02-11 Janis Johnson <janis187@us.ibm.com>
3841
3842 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3843 * testsuite/libffi.call/float.c: Ditto.
3844 * testsuite/libffi.call/float2.c: Ditto.
3845 * testsuite/libffi.call/float3.c: Ditto.
3846
38472005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
3848
3849 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3850
38512005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3852
3853 * testsuite/libffi.special/special.exp (cxx_options): Add
3854 -shared-libgcc.
3855
38562004-12-31 Richard Henderson <rth@redhat.com>
3857
3858 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3859 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
3860 offset parameters with a type parameter; deduce size and structure
3861 alignment. Update all users.
3862
38632004-12-31 Richard Henderson <rth@redhat.com>
3864
3865 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3866 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
3867 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
3868 into ffi_prep_closure.
3869 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3870 from scratch.
3871
38722004-12-27 Richard Henderson <rth@redhat.com>
3873
3874 * src/x86/unix64.S: Fix typo in unwind info.
3875
38762004-12-25 Richard Henderson <rth@redhat.com>
3877
3878 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3879 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3880 (merge_classes): Check for it.
3881 (SSE_CLASS_P): New.
3882 (classify_argument): Pass byte_offset by value; perform all updates
3883 inside struct case.
3884 (examine_argument): Add classes argument; handle
3885 X86_64_COMPLEX_X87_CLASS.
3886 (ffi_prep_args): Merge into ...
3887 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
3888 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3889 (ffi_fill_return_value): Remove.
3890 (ffi_prep_closure): Remove dead assert.
3891 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
3892 Rewrite to use struct register_args instead of va_list. Create
3893 flags for handling structure returns.
3894 * src/x86/unix64.S: Remove dead strings.
3895 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
3896 stack frame with ffi_call. Handle structure returns properly.
3897 (float2sse, floatfloat2sse, double2sse): Remove.
3898 (sse2float, sse2double, sse2floatfloat): Remove.
3899 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
3900 to handle structure returns properly.
3901
39022004-12-08 David Edelsohn <edelsohn@gnu.org>
3903
3904 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
3905 PICFLAG.
3906 * Makefile.in: Regenerated.
3907
39082004-12-02 Richard Sandiford <rsandifo@redhat.com>
3909
3910 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
3911 * configure, aclocal.m4, Makefile.in: Regenerate.
3912 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
3913
39142004-11-29 Kelley Cook <kcook@gcc.gnu.org>
3915
3916 * configure: Regenerate for libtool change.
3917
39182004-11-25 Kelley Cook <kcook@gcc.gnu.org>
3919
3920 * configure: Regenerate for libtool reversion.
3921
39222004-11-24 Kelley Cook <kcook@gcc.gnu.org>
3923
3924 * configure: Regenerate for libtool change.
3925
39262004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3927
3928 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
3929
39302004-11-23 Richard Sandiford <rsandifo@redhat.com>
3931
3932 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
3933 of jal. Use an absolute encoding for the frame information.
3934
39352004-11-23 Kelley Cook <kcook@gcc.gnu.org>
3936
3937 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
3938 * acinclude.m4: Delete logic for sincludes.
3939 * aclocal.m4, Makefile.in, configure: Regenerate.
3940 * include/Makefile: Likewise.
3941 * testsuite/Makefile: Likewise.
3942
39432004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3944
3945 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
3946 on a 8-byte boundary.
3947 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
3948
39492004-10-27 Richard Earnshaw <rearnsha@arm.com>
3950
3951 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
3952 long long values. Round stack allocation to a multiple of 8 bytes
3953 for ATPCS compatibility.
3954 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
3955 names. Handle returning long long types. Add Thumb and interworking
3956 support. Improve soft-float code.
3957
39582004-10-27 Richard Earnshaw <rearnsha@arm.com>
3959
3960 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
3961 (libffi_exit): New function.
3962 (libffi_init): Build the testglue wrapper if needed.
3963
39642004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3965
3966 PR other/18138
3967 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
3968
39692004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3970
3971 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
3972
39732004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3974
3975 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
3976 * testsuite/libffi.call/float3.c: New test case.
3977
39782004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
3979
3980 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
3981 the function returning a structure pointed with R2.
3982 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
3983 the structure return value if T bit set. Emit position
3984 independent code and EH data if PIC.
3985
39862004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3987
3988 * Makefile.am: Add m32r support.
3989 * configure.ac: Likewise.
3990 * Makefile.in: Regenerate.
3991 * confiugre: Regenerate.
3992 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
3993 (uint64, sint64, double, longdouble)
3994 * src/m32r: New directory.
3995 * src/m32r/ffi.c: New file.
3996 * src/m32r/sysv.S: Likewise.
3997 * src/m32r/ffitarget.h: Likewise.
3998
39992004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
4000
4001 * testsuite/libffi.call/negint.c: New test case.
4002
40032004-09-14 H.J. Lu <hongjiu.lu@intel.com>
4004
4005 PR libgcj/17465
4006 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4007 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4008 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4009 DYLD_LIBRARY_PATH.
4010
40112004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4012
4013 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4014 * testsuite/libffi.call/promotion.c: Likewise.
4015 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4016 whitespaces.
4017 * testsuite/libffi.call/return_sc.c: Likewise.
4018 * testsuite/libffi.call/return_uc.c: Likewise.
4019
40202004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4021
4022 * src/powerpc/darwin.S: Fix comments and identation.
4023 * src/powerpc/darwin_closure.S: Likewise.
4024
40252004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4026
4027 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4028 (ffi_prep_args): Handle longdouble arguments.
4029 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4030 longdouble.
4031 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4032 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4033 values.
4034 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4035 * src/types.c: Defined longdouble size and alignment for darwin.
4036
40372004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4038
4039 * src/powerpc/aix.S: Remove whitespaces.
4040 * src/powerpc/aix_closure.S: Likewise.
4041 * src/powerpc/asm.h: Likewise.
4042 * src/powerpc/ffi.c: Likewise.
4043 * src/powerpc/ffitarget.h: Likewise.
4044 * src/powerpc/linux64.S: Likewise.
4045 * src/powerpc/linux64_closure.S: Likewise.
4046 * src/powerpc/ppc_closure.S: Likewise.
4047 * src/powerpc/sysv.S: Likewise.
4048
40492004-08-30 Anthony Green <green@redhat.com>
4050
4051 * Makefile.am: Add frv support.
4052 * Makefile.in, testsuite/Makefile.in: Rebuilt.
4053 * configure.ac: Read configure.host.
4054 * configure.in: Read configure.host.
4055 * configure.host: New file. frv-elf needs libgloss.
4056 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
4057 alignment. This is needed to frv and shouldn't harm the others.
4058 * include/ffi_common.h (ALIGN_DOWN): New macro.
4059 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4060
40612004-08-24 David Daney <daney@avtrex.com>
4062
4063 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4064 * testsuite/libffi.call/closure_fn1.c: Likewise.
4065 * testsuite/libffi.call/closure_fn2.c Likewise.
4066 * testsuite/libffi.call/closure_fn3.c: Likewise.
4067 * testsuite/libffi.call/closure_fn4.c: Likewise.
4068 * testsuite/libffi.call/closure_fn5.c: Likewise.
4069 * testsuite/libffi.call/cls_18byte.c: Likewise.
4070 * testsuite/libffi.call/cls_19byte.c: Likewise.
4071 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4072 * testsuite/libffi.call/cls_20byte.c: Likewise.
4073 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4074 * testsuite/libffi.call/cls_24byte.c: Likewise.
4075 * testsuite/libffi.call/cls_2byte.c: Likewise.
4076 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4077 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4078 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4079 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4080 * testsuite/libffi.call/cls_4byte.c: Likewise.
4081 * testsuite/libffi.call/cls_64byte.c: Likewise.
4082 * testsuite/libffi.call/cls_6byte.c: Likewise.
4083 * testsuite/libffi.call/cls_7byte.c: Likewise.
4084 * testsuite/libffi.call/cls_8byte.c: Likewise.
4085 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4086 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4087 * testsuite/libffi.call/cls_align_double.c: Likewise.
4088 * testsuite/libffi.call/cls_align_float.c: Likewise.
4089 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4090 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4091 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4092 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4093 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4094 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4095 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4096 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4097 * testsuite/libffi.call/cls_double.c: Likewise.
4098 * testsuite/libffi.call/cls_float.c: Likewise.
4099 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4100 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4101 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4102 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4103 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4104 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4105 * testsuite/libffi.call/cls_schar.c: Likewise.
4106 * testsuite/libffi.call/cls_sint.c: Likewise.
4107 * testsuite/libffi.call/cls_sshort.c: Likewise.
4108 * testsuite/libffi.call/cls_uchar.c: Likewise.
4109 * testsuite/libffi.call/cls_uint.c: Likewise.
4110 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4111 * testsuite/libffi.call/cls_ushort.c: Likewise.
4112 * testsuite/libffi.call/nested_struct.c: Likewise.
4113 * testsuite/libffi.call/nested_struct1.c: Likewise.
4114 * testsuite/libffi.call/nested_struct2.c: Likewise.
4115 * testsuite/libffi.call/nested_struct3.c: Likewise.
4116 * testsuite/libffi.call/problem1.c: Likewise.
4117 * testsuite/libffi.special/unwindtest.cc: Likewise.
4118 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4119 to zero.
4120 * testsuite/libffi.call/cls_16byte.c: Likewise.
4121 * testsuite/libffi.call/cls_5byte.c: Likewise.
4122
41232004-08-23 David Daney <daney@avtrex.com>
4124
4125 PR libgcj/13141
4126 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4127 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4128 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4129 parameters and return types.
4130 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4131 (ffi_prep_closure): Ditto.
4132 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4133 alignment calculations.
4134 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4135 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4136
41372004-08-14 Casey Marshall <csm@gnu.org>
4138
4139 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4140 contain `FFI_TYPE_UINT64' as return type for any 64-bit
4141 integer (O32 ABI only).
4142 (ffi_prep_closure): new function.
4143 (ffi_closure_mips_inner_O32): new function.
4144 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
4145 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4146 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4147 64 bit integers correctly.
4148 (ffi_closure_O32): new function.
4149 Added DWARF-2 unwind info for both functions.
4150
41512004-08-10 Andrew Haley <aph@redhat.com>
4152
4153 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4154
41552004-08-01 Robert Millan <robertmh@gnu.org>
4156
4157 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4158 * configure: Regenerate.
4159
41602004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
4161
4162 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4163 and mmap() explicitly instead of relying on preset autoconf cache
4164 variables.
4165 * aclocal.m4: Regenerate.
4166 * configure: Regenerate.
4167
41682004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4169
4170 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4171 (ffi_check_float_struct): Remove unused prototype.
4172
41732004-06-30 Geoffrey Keating <geoffk@apple.com>
4174
4175 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4176 character on Darwin, use '\n\t' instead.
4177
41782004-06-26 Matthias Klose <doko@debian.org>
4179
4180 * libtool-version: Fix typo in revision/age.
4181
41822004-06-17 Matthias Klose <doko@debian.org>
4183
4184 * libtool-version: New.
4185 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4186 * Makefile.in: Regenerate.
4187
41882004-06-15 Paolo Bonzini <bonzini@gnu.org>
4189
4190 * Makefile.am: Remove useless multilib rules.
4191 * Makefile.in: Regenerate.
4192 * aclocal.m4: Regenerate with automake 1.8.5.
4193 * configure.ac: Remove useless multilib configury.
4194 * configure: Regenerate.
4195
41962004-06-15 Paolo Bonzini <bonzini@gnu.org>
4197
4198 * .cvsignore: New file.
4199
42002004-06-10 Jakub Jelinek <jakub@redhat.com>
4201
4202 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4203 fp_done.
4204 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4205 changed from 8.
4206
42072004-06-06 Sean McNeil <sean@mcneil.com>
4208
4209 * configure.ac: Add x86_64-*-freebsd* support.
4210 * configure: Regenerate.
4211
42122004-04-26 Joe Buck <jbuck@welsh-buck.org>
4213
4214 Bug 15093
4215 * configure.ac: Test for existence of mmap and sys/mman.h before
4216 checking blacklist. Fix suggested by Jim Wilson.
4217 * configure: Regenerate.
4218
42192004-04-26 Matt Austern <austern@apple.com>
4220
4221 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4222 FDE location.
4223 * src/powerpc/darwin_closure.S: Likewise.
4224
42252004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
4226
4227 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4228 error. Reported by Thomas Heller <theller@python.net>.
4229 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4230 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4231
42322004-03-20 Matthias Klose <doko@debian.org>
4233
4234 * src/pa/linux.S: Fix typo.
4235
42362004-03-19 Matthias Klose <doko@debian.org>
4237
4238 * Makefile.am: Update.
4239 * Makefile.in: Regenerate.
4240 * src/pa/ffi.h.in: Remove.
4241 * src/pa/ffitarget.h: New file.
4242
42432004-02-10 Randolph Chung <tausq@debian.org>
4244
4245 * Makefile.am: Add PA support.
4246 * Makefile.in: Regenerate.
4247 * include/Makefile.in: Regenerate.
4248 * configure.ac: Add PA target.
4249 * configure: Regenerate.
4250 * src/pa/ffi.c: New file.
4251 * src/pa/ffi.h.in: Add PA support.
4252 * src/pa/linux.S: New file.
4253 * prep_cif.c: Add PA support.
4254
42552004-03-16 Hosaka Yuji <hos@tamanegi.org>
4256
4257 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4258 double.
4259 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4260 with ecif->cif->flags.
4261 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4262 with cif->flags.
4263 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4264 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4265 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4266 sc_retstruct2b): Add for 1 or 2-bytes struct case.
4267
42682004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4269
4270 * configure.in: Rename file to ...
4271 * configure.ac: ... this.
4272 * fficonfig.h.in: Regenerate.
4273 * Makefile.in: Regenerate.
4274 * include/Makefile.in: Regenerate.
4275 * testsuite/Makefile.in: Regenerate.
4276
42772004-03-12 Matt Austern <austern@apple.com>
4278
4279 * src/powerpc/darwin.S: Fix EH information so it corresponds to
4280 changes in EH format resulting from addition of linkonce support.
4281 * src/powerpc/darwin_closure.S: Likewise.
4282
42832004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
4284 Paolo Bonzini <bonzini@gnu.org>
4285
4286 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4287 Remove VPATH. Remove rules for object files. Remove multilib support.
4288 (AM_CCASFLAGS): Add.
4289 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4290 (AC_PREREQ): Bump version to 2.59.
4291 (AC_INIT): Fill with version info and bug address.
4292 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4293 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4294 De-precious CC so that the right flags are passed down to multilibs.
4295 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4296 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4297 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4298 * configure: Rebuilt.
4299 * aclocal.m4: Likewise.
4300 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4301 * fficonfig.h.in: Likewise.
4302
43032004-03-11 Andreas Schwab <schwab@suse.de>
4304
4305 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4306 arguments from fp registers only for the first 8 parameter slots.
4307 Don't convert a float parameter when passed in memory.
4308
43092004-03-09 Hans-Peter Nilsson <hp@axis.com>
4310
4311 * configure: Regenerate for config/accross.m4 correction.
4312
43132004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
4314
4315 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4316 ecif->cif->bytes to bytes.
4317 (ffi_prep_cif_machdep): Add braces around nested if statement.
4318
43192004-02-09 Alan Modra <amodra@bigpond.net.au>
4320
4321 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4322
4323 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4324 (ffi_closure_helper_LINUX64): Fix typo.
4325 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4326 for powerpc64-*-*.
4327 * testsuite/libffi.call/float.c: Likewise.
4328 * testsuite/libffi.call/float2.c: Likewise.
4329
43302004-02-08 Alan Modra <amodra@bigpond.net.au>
4331
4332 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4333 long double function return and long double arg handling.
4334 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
4335 Use "end_pfr" instead of "nf". Correct long double handling.
4336 Localise "temp".
4337 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4338 return value.
4339 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4340 space for long double return value. Adjust stack frame and offsets.
4341 Load f2 long double return.
4342
43432004-02-07 Alan Modra <amodra@bigpond.net.au>
4344
4345 * src/types.c: Use 16 byte long double for POWERPC64.
4346
43472004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4348
4349 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4350 when the structure return address is passed in %o0.
4351 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4352 (ffi_v9_layout_struct): Align the field following a nested structure
4353 on a word boundary. Use memmove instead of memcpy.
4354 (ffi_call): Update call to ffi_V9_return_struct.
4355 (ffi_prep_closure): Define 'ctx' only for V8.
4356 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4357 and ffi_closure_sparc_inner_v9.
4358 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4359 Always skip the structure return address. For structures and long
4360 doubles, copy the argument directly.
4361 (ffi_closure_sparc_inner_v9): Skip the structure return address only
4362 if required. Shift the maximum floating-point slot accordingly. For
4363 big structures, copy the argument directly; otherwise, left-justify the
4364 argument and call ffi_v9_layout_struct to lay out the structure on
4365 the stack.
4366 * src/sparc/v8.S: Undef STACKFRAME before defining it.
4367 (ffi_closure_v8): Pass the structure return address. Update call to
4368 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
4369 Skip the 'unimp' insn when returning long doubles and structures.
4370 * src/sparc/v9.S: Undef STACKFRAME before defining it.
4371 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
4372 FFI_TYPE_INT handling. Load structures both in integers and
4373 floating-point registers on return.
4374 * README: Update status of the SPARC port.
4375
43762004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
4377
4378 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4379 as of type ffi_arg.
4380 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4381
43822004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
4383
4384 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4385 value as of type ffi_arg, not unsigned int.
4386
43872004-01-21 Michael Ritzert <ritzert@t-online.de>
4388
4389 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4390 of the LHS.
4391
43922004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4393
4394 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4395 Solaris.
4396
43972004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4398
4399 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4400 to void *.
4401
44022003-12-10 Richard Henderson <rth@redhat.com>
4403
4404 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4405 size_t instead of int.
4406
44072003-12-04 Hosaka Yuji <hos@tamanegi.org>
4408
4409 * testsuite/libffi.call/many_win32.c: Include <float.h>.
4410 * testsuite/libffi.call/many_win32.c (main): Replace variable
4411 int i with unsigned long ul.
4412
4413 * testsuite/libffi.call/cls_align_uint64.c: New test case.
4414 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4415 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4416 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4417 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4418 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4419 * testsuite/libffi.call/cls_align_float.c: Likewise.
4420 * testsuite/libffi.call/cls_align_double.c: Likewise.
4421 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4422 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4423
44242003-12-02 Hosaka Yuji <hos@tamanegi.org>
4425
4426 PR other/13221
4427 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4428 Align arguments to 32 bits.
4429
44302003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
4431
4432 PR other/13221
4433 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4434 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4435 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4436 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4437 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4438 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4439
4440 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4441
44422003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4443
4444 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4445 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4446
44472003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
4448
4449 * Makefile.in: Rebuilt.
4450 * configure: Likewise.
4451 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4452 the right type.
4453
44542003-11-21 Andreas Jaeger <aj@suse.de>
4455 Andreas Tobler <a.tobler@schweiz.ch>
4456
4457 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4458 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4459 * Makefile.in: Rebuilt.
4460 * aclocal.m4: Likewise.
4461 * configure: Likewise.
4462 * fficonfig.h.in: Likewise.
4463 * testsuite/lib/libffi-dg.exp: Add include dir.
4464 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4465 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4466 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4467 for ffi_closure if available.
4468 * testsuite/libffi.call/closure_fn1.c: Likewise.
4469 * testsuite/libffi.call/closure_fn2.c: Likewise.
4470 * testsuite/libffi.call/closure_fn3.c: Likewise.
4471 * testsuite/libffi.call/closure_fn4.c: Likewise.
4472 * testsuite/libffi.call/closure_fn5.c: Likewise.
4473 * testsuite/libffi.call/cls_12byte.c: Likewise.
4474 * testsuite/libffi.call/cls_16byte.c: Likewise.
4475 * testsuite/libffi.call/cls_18byte.c: Likewise.
4476 * testsuite/libffi.call/cls_19byte.c: Likewise.
4477 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4478 * testsuite/libffi.call/cls_20byte.c: Likewise.
4479 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4480 * testsuite/libffi.call/cls_24byte.c: Likewise.
4481 * testsuite/libffi.call/cls_2byte.c: Likewise.
4482 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4483 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4484 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4485 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4486 * testsuite/libffi.call/cls_4byte.c: Likewise.
4487 * testsuite/libffi.call/cls_5byte.c: Likewise.
4488 * testsuite/libffi.call/cls_64byte.c: Likewise.
4489 * testsuite/libffi.call/cls_6byte.c: Likewise.
4490 * testsuite/libffi.call/cls_7byte.c: Likewise.
4491 * testsuite/libffi.call/cls_8byte.c: Likewise.
4492 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4493 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4494 * testsuite/libffi.call/cls_double.c: Likewise.
4495 * testsuite/libffi.call/cls_float.c: Likewise.
4496 * testsuite/libffi.call/cls_schar.c: Likewise.
4497 * testsuite/libffi.call/cls_sint.c: Likewise.
4498 * testsuite/libffi.call/cls_sshort.c: Likewise.
4499 * testsuite/libffi.call/cls_uchar.c: Likewise.
4500 * testsuite/libffi.call/cls_uint.c: Likewise.
4501 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4502 * testsuite/libffi.call/cls_ushort.c: Likewise.
4503 * testsuite/libffi.call/nested_struct.c: Likewise.
4504 * testsuite/libffi.call/nested_struct1.c: Likewise.
4505 * testsuite/libffi.call/nested_struct2.c: Likewise.
4506 * testsuite/libffi.call/nested_struct3.c: Likewise.
4507 * testsuite/libffi.call/problem1.c: Likewise.
4508 * testsuite/libffi.special/unwindtest.cc: Likewise.
4509
45102003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
4511
4512 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4513
45142003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
4515
4516 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4517 Add -lgcc_s to additional flags.
4518
45192003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
4520
4521 * configure.in, include/Makefile.am: PR libgcj/11147, install
4522 the ffitarget.h header file in a gcc versioned and target
4523 dependent place.
4524 * configure: Regenerated.
4525 * Makefile.in, include/Makefile.in: Likewise.
4526 * testsuite/Makefile.in: Likewise.
4527
45282003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
4529
4530 * testsuite/libffi.call/closure_fn0.c: Print result and check
4531 with dg-output to make debugging easier.
4532 * testsuite/libffi.call/closure_fn1.c: Likewise.
4533 * testsuite/libffi.call/closure_fn2.c: Likewise.
4534 * testsuite/libffi.call/closure_fn3.c: Likewise.
4535 * testsuite/libffi.call/closure_fn4.c: Likewise.
4536 * testsuite/libffi.call/closure_fn5.c: Likewise.
4537 * testsuite/libffi.call/cls_12byte.c: Likewise.
4538 * testsuite/libffi.call/cls_16byte.c: Likewise.
4539 * testsuite/libffi.call/cls_18byte.c: Likewise.
4540 * testsuite/libffi.call/cls_19byte.c: Likewise.
4541 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4542 * testsuite/libffi.call/cls_20byte.c: Likewise.
4543 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4544 * testsuite/libffi.call/cls_24byte.c: Likewise.
4545 * testsuite/libffi.call/cls_2byte.c: Likewise.
4546 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4547 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4548 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4549 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4550 * testsuite/libffi.call/cls_4byte.c: Likewise.
4551 * testsuite/libffi.call/cls_5byte.c: Likewise.
4552 * testsuite/libffi.call/cls_64byte.c: Likewise.
4553 * testsuite/libffi.call/cls_6byte.c: Likewise.
4554 * testsuite/libffi.call/cls_7byte.c: Likewise.
4555 * testsuite/libffi.call/cls_8byte.c: Likewise.
4556 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4557 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4558 * testsuite/libffi.call/cls_double.c: Likewise.
4559 * testsuite/libffi.call/cls_float.c: Likewise.
4560 * testsuite/libffi.call/cls_schar.c: Likewise.
4561 * testsuite/libffi.call/cls_sint.c: Likewise.
4562 * testsuite/libffi.call/cls_sshort.c: Likewise.
4563 * testsuite/libffi.call/cls_uchar.c: Likewise.
4564 * testsuite/libffi.call/cls_uint.c: Likewise.
4565 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4566 * testsuite/libffi.call/cls_ushort.c: Likewise.
4567 * testsuite/libffi.call/problem1.c: Likewise.
4568
4569 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4570 static.
4571
45722003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4573
4574 * testsuite/libffi.call/cls_9byte2.c: New test case.
4575 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4576 * testsuite/libffi.call/cls_64byte.c: Likewise.
4577 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4578 * testsuite/libffi.call/cls_19byte.c: Likewise.
4579 * testsuite/libffi.call/cls_18byte.c: Likewise.
4580 * testsuite/libffi.call/closure_fn4.c: Likewise.
4581 * testsuite/libffi.call/closure_fn5.c: Likewise.
4582 * testsuite/libffi.call/cls_schar.c: Likewise.
4583 * testsuite/libffi.call/cls_sint.c: Likewise.
4584 * testsuite/libffi.call/cls_sshort.c: Likewise.
4585 * testsuite/libffi.call/nested_struct2.c: Likewise.
4586 * testsuite/libffi.call/nested_struct3.c: Likewise.
4587
45882003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4589
4590 * testsuite/libffi.call/cls_double.c: Do a check on the result.
4591 * testsuite/libffi.call/cls_uchar.c: Likewise.
4592 * testsuite/libffi.call/cls_uint.c: Likewise.
4593 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4594 * testsuite/libffi.call/cls_ushort.c: Likewise.
4595 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4596
45972003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
4598
4599 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4600 the initialization.
4601
46022003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
4603
4604 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
4605 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4606
46072003-10-22 David Daney <ddaney@avtrex.com>
4608
4609 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4610 __attribute__((__mode__(__SI__))) and friends.
4611
46122003-10-22 Andreas Schwab <schwab@suse.de>
4613
4614 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4615
46162003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
4617
4618 * configure.in: AC_LINK_FILES(ffitarget.h).
4619 * configure: Regenerate.
4620 * Makefile.in: Likewise.
4621 * include/Makefile.in: Likewise.
4622 * testsuite/Makefile.in: Likewise.
4623 * fficonfig.h.in: Likewise.
4624
46252003-10-21 Paolo Bonzini <bonzini@gnu.org>
4626 Richard Henderson <rth@redhat.com>
4627
4628 Avoid that ffi.h includes fficonfig.h.
4629
4630 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4631 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4632 (TARGET_SRC_MIPS_SGI): Removed.
4633 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4634 (MIPS_SGI): Removed.
4635 (CLEANFILES): Removed.
4636 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4637 targets.
4638 * acconfig.h: Removed.
4639 * configure.in: Compute sizeofs only for double and long double.
4640 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
4641 into AC_DEFINE instead of using acconfig.h. Create
4642 include/ffitarget.h instead of include/fficonfig.h. Rename
4643 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4644 AC_DEFINE EH_FRAME_FLAGS.
4645 * include/Makefile.am (DISTCLEANFILES): New automake macro.
4646 (hack_DATA): Add ffitarget.h.
4647 * include/ffi.h.in: Remove all system specific definitions.
4648 Declare raw API even if it is not installed, why bother?
4649 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
4650 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
4651 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
4652 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4653 * include/ffi_common.h (bool): Do not define.
4654 (ffi_assert): Accept failed assertion.
4655 (ffi_type_test): Return void and accept file/line.
4656 (FFI_ASSERT): Pass stringized failed assertion.
4657 (FFI_ASSERT_AT): New macro.
4658 (FFI_ASSERT_VALID_TYPE): New macro.
4659 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4660 UINT64, SINT64): Define here with gcc's __attribute__ macro
4661 instead of in ffi.h
4662 (FLOAT32, ALIGN): Define here instead of in ffi.h
4663 * include/ffi-mips.h: Removed. Its content moved to
4664 src/mips/ffitarget.h after separating assembly and C sections.
4665 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4666 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4667 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4668 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4669 SIZEOF_ARG -> FFI_SIZEOF_ARG.
4670 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4671 * src/debug.c (ffi_assert): Accept stringized failed assertion.
4672 (ffi_type_test): Rewritten.
4673 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4674 FFI_ASSERT_VALID_TYPE.
4675 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4676 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4677 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4678 src/s390/ffitarget.h, src/sh/ffitarget.h,
4679 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4680 src/x86/ffitarget.h: New files.
4681 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4682 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4683 src/powerpc/aix.S, src/powerpc/darwin.S,
4684 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4685 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4686 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4687 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4688 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4689 include fficonfig.h
4690
46912003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4692
4693 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4694 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4695
46962003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
4697
4698 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4699 Used when FFI_DEBUG = 1.
4700
47012003-10-14 Alan Modra <amodra@bigpond.net.au>
4702
4703 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4704 and align.
4705
47062003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4707
4708 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4709 FFI_MIPS_O32 for O32 ABI.
4710
47112003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
4712
4713 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4714 SPARC64. Cleanup whitespaces.
4715
47162003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
4717
4718 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4719 strongarm, xscale. Cleanup whitespaces.
4720 * testsuite/libffi.call/closure_fn1.c: Likewise.
4721 * testsuite/libffi.call/closure_fn2.c: Likewise.
4722 * testsuite/libffi.call/closure_fn3.c: Likewise.
4723 * testsuite/libffi.call/cls_12byte.c: Likewise.
4724 * testsuite/libffi.call/cls_16byte.c: Likewise.
4725 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4726 * testsuite/libffi.call/cls_20byte.c: Likewise.
4727 * testsuite/libffi.call/cls_24byte.c: Likewise.
4728 * testsuite/libffi.call/cls_2byte.c: Likewise.
4729 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4730 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4731 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4732 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4733 * testsuite/libffi.call/cls_4byte.c: Likewise.
4734 * testsuite/libffi.call/cls_5byte.c: Likewise.
4735 * testsuite/libffi.call/cls_6byte.c: Likewise.
4736 * testsuite/libffi.call/cls_7byte.c: Likewise.
4737 * testsuite/libffi.call/cls_8byte.c: Likewise.
4738 * testsuite/libffi.call/cls_double.c: Likewise.
4739 * testsuite/libffi.call/cls_float.c: Likewise.
4740 * testsuite/libffi.call/cls_uchar.c: Likewise.
4741 * testsuite/libffi.call/cls_uint.c: Likewise.
4742 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4743 * testsuite/libffi.call/cls_ushort.c: Likewise.
4744 * testsuite/libffi.call/nested_struct.c: Likewise.
4745 * testsuite/libffi.call/nested_struct1.c: Likewise.
4746 * testsuite/libffi.call/problem1.c: Likewise.
4747 * testsuite/libffi.special/unwindtest.cc: Likewise.
4748 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4749
47502003-09-18 David Edelsohn <edelsohn@gnu.org>
4751
4752 * src/powerpc/aix.S: Cleanup whitespaces.
4753 * src/powerpc/aix_closure.S: Likewise.
4754
47552003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4756
4757 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4758 * src/powerpc/darwin_closure.S: Likewise.
4759 * src/powerpc/ffi_darwin.c: Likewise.
4760
47612003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4762 David Edelsohn <edelsohn@gnu.org>
4763
4764 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4765 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4766 parameter stack.
4767 * src/powerpc/darwin_closure.S: Likewise.
4768 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4769 according to the Darwin/AIX ABI.
4770 (ffi_prep_cif_machdep): Likewise.
4771 (ffi_closure_helper_DARWIN): Likewise.
4772 Remove the outgoing parameter stack logic. Simplify the evaluation
4773 of the different CASE types.
4774 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4775 statement in the trampoline code.
4776
47772003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
4778
4779 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4780 for the register size.
4781 (ffi_closure_helper_SYSV): Handle the structure return value
4782 address correctly.
4783 (ffi_closure_helper_SYSV): Return the appropriate type when
4784 the registers are used for the structure return value.
4785 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4786 the 64-bit return value. Update copyright years.
4787
47882003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4789
4790 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4791 srcdir for ffi_mips.h.
4792
47932003-09-12 Alan Modra <amodra@bigpond.net.au>
4794
4795 * src/prep_cif.c (initialize_aggregate): Include tail padding in
4796 structure size.
4797 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4798 placement of float result.
4799 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4800 cast of "resp" for big-endian 64 bit machines.
4801
48022003-09-11 Alan Modra <amodra@bigpond.net.au>
4803
4804 * src/types.c (double, longdouble): Merge identical SH and ARM
4805 typedefs, and add POWERPC64.
4806 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4807 struct split over gpr and rest.
4808 (ffi_prep_cif_machdep): Correct intarg_count for structures.
4809 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4810
48112003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
4812
4813 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4814 passing correctly.
4815
48162003-09-09 Alan Modra <amodra@bigpond.net.au>
4817
4818 * configure: Regenerate.
4819
48202003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4821
4822 * Makefile.am: Remove build rules for ffitest.
4823 * Makefile.in: Rebuilt.
4824
48252003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4826
4827 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4828 about implicit declaration of abort().
4829
48302003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4831
4832 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
4833 * Makefile.in: Rebuilt.
4834 * configure.in: Add dejagnu test framework.
4835 * configure: Rebuilt.
4836
4837 * testsuite/Makefile.am: New file.
4838 * testsuite/Makefile.in: Built
4839 * testsuite/lib/libffi-dg.exp: New file.
4840 * testsuite/config/default.exp: Likewise.
4841 * testsuite/libffi.call/call.exp: Likewise.
4842 * testsuite/libffi.call/ffitest.h: Likewise.
4843 * testsuite/libffi.call/closure_fn0.c: Likewise.
4844 * testsuite/libffi.call/closure_fn1.c: Likewise.
4845 * testsuite/libffi.call/closure_fn2.c: Likewise.
4846 * testsuite/libffi.call/closure_fn3.c: Likewise.
4847 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4848 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4849 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4850 * testsuite/libffi.call/cls_2byte.c: Likewise.
4851 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4852 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4853 * testsuite/libffi.call/cls_4byte.c: Likewise.
4854 * testsuite/libffi.call/cls_5byte.c: Likewise.
4855 * testsuite/libffi.call/cls_6byte.c: Likewise.
4856 * testsuite/libffi.call/cls_7byte.c: Likewise.
4857 * testsuite/libffi.call/cls_8byte.c: Likewise.
4858 * testsuite/libffi.call/cls_12byte.c: Likewise.
4859 * testsuite/libffi.call/cls_16byte.c: Likewise.
4860 * testsuite/libffi.call/cls_20byte.c: Likewise.
4861 * testsuite/libffi.call/cls_24byte.c: Likewise.
4862 * testsuite/libffi.call/cls_double.c: Likewise.
4863 * testsuite/libffi.call/cls_float.c: Likewise.
4864 * testsuite/libffi.call/cls_uchar.c: Likewise.
4865 * testsuite/libffi.call/cls_uint.c: Likewise.
4866 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4867 * testsuite/libffi.call/cls_ushort.c: Likewise.
4868 * testsuite/libffi.call/float.c: Likewise.
4869 * testsuite/libffi.call/float1.c: Likewise.
4870 * testsuite/libffi.call/float2.c: Likewise.
4871 * testsuite/libffi.call/many.c: Likewise.
4872 * testsuite/libffi.call/many_win32.c: Likewise.
4873 * testsuite/libffi.call/nested_struct.c: Likewise.
4874 * testsuite/libffi.call/nested_struct1.c: Likewise.
4875 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
4876 * testsuite/libffi.call/problem1.c: Likewise.
4877 * testsuite/libffi.call/promotion.c: Likewise.
4878 * testsuite/libffi.call/return_ll.c: Likewise.
4879 * testsuite/libffi.call/return_sc.c: Likewise.
4880 * testsuite/libffi.call/return_uc.c: Likewise.
4881 * testsuite/libffi.call/strlen.c: Likewise.
4882 * testsuite/libffi.call/strlen_win32.c: Likewise.
4883 * testsuite/libffi.call/struct1.c: Likewise.
4884 * testsuite/libffi.call/struct2.c: Likewise.
4885 * testsuite/libffi.call/struct3.c: Likewise.
4886 * testsuite/libffi.call/struct4.c: Likewise.
4887 * testsuite/libffi.call/struct5.c: Likewise.
4888 * testsuite/libffi.call/struct6.c: Likewise.
4889 * testsuite/libffi.call/struct7.c: Likewise.
4890 * testsuite/libffi.call/struct8.c: Likewise.
4891 * testsuite/libffi.call/struct9.c: Likewise.
4892 * testsuite/libffi.special/special.exp: New file.
4893 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4894 * testsuite/libffi.special/unwindtest.cc: Likewise.
4895
4896
48972003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
4898
4899 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
4900 copyright years.
4901
49022003-08-02 Alan Modra <amodra@bigpond.net.au>
4903
4904 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
4905 structure passing.
4906 (ffi_closure_helper_LINUX64): Likewise.
4907 * src/powerpc/linux64.S: Remove code writing to parm save area.
4908 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
4909 address in lr from ffi_closure_helper_LINUX64 call to calculate
4910 table address. Optimize function tail.
4911
49122003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
4913
4914 * src/sparc/ffi.c: Handle all floating point registers.
4915 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
4916
49172003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4918
4919 * README: Note that libffi is not part of GCC. Update the project
4920 URL and status.
4921
49222003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4923
4924 * src/powerpc/ppc_closure.S: Include ffi.h.
4925
49262003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4927
4928 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
4929 Use C style comments.
4930
49312003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4932
4933 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
4934 * Makefile.in: Regenerate.
4935 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
4936 * configure: Regenerate.
4937 * include/ffi.h.in: Add SHmedia support.
4938 * src/sh64/ffi.c: New file.
4939 * src/sh64/sysv.S: New file.
4940
49412003-05-16 Jakub Jelinek <jakub@redhat.com>
4942
4943 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
4944 should be read-only.
4945 * configure: Rebuilt.
4946 * fficonfig.h.in: Rebuilt.
4947 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
4948 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
4949 * src/powerpc/linux64.S: Likewise.
4950 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
4951 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
4952 if -fpic/-fPIC/-mrelocatable.
4953 * src/powerpc/powerpc_closure.S: Likewise.
4954 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
4955 #write in .eh_frame flags.
4956 * src/sparc/v9.S: Likewise.
4957 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
4958 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
4959 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
4960
49612003-05-07 Jeff Sturm <jsturm@one-point.com>
4962
4963 Fixes PR bootstrap/10656
4964 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
4965 support for .register pseudo-op.
4966 * src/sparc/v8.S: Use it.
4967 * fficonfig.h.in: Rebuilt.
4968 * configure: Rebuilt.
4969
49702003-04-18 Jakub Jelinek <jakub@redhat.com>
4971
4972 * include/ffi.h.in (POWERPC64): Define if 64-bit.
4973 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
4974 Make it the default on POWERPC64.
4975 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
4976 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
4977 * configure: Rebuilt.
4978 * src/powerpc/ffi.c (hidden): Define.
4979 (ffi_prep_args_SYSV): Renamed from
4980 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
4981 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
4982 ASM_NEEDS_REGISTERS64): New.
4983 (ffi_prep_args64): New function.
4984 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
4985 (ffi_call): Likewise.
4986 (ffi_prep_closure): Likewise.
4987 (flush_icache): Surround by #ifndef POWERPC64.
4988 (ffi_dblfl): New union type.
4989 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
4990 (ffi_closure_helper_LINUX64): New function.
4991 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
4992 __powerpc64__.
4993 * src/powerpc/sysv.S: Likewise.
4994 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
4995 * src/powerpc/linux64.S: New file.
4996 * src/powerpc/linux64_closure.S: New file.
4997 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
4998 src/powerpc/linux64_closure.S.
4999 (TARGET_SRC_POWERPC): Likewise.
5000
5001 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
5002 closure_test_fn3): Fix result printing on big-endian 64-bit
5003 machines.
5004 (main): Print tst2_arg instead of uninitialized tst2_result.
5005
5006 * src/ffitest.c (main): Hide what closure pointer really points to
5007 from the compiler.
5008
50092003-04-16 Richard Earnshaw <rearnsha@arm.com>
5010
5011 * configure.in (arm-*-netbsdelf*): Add configuration.
5012 (configure): Regenerated.
5013
50142003-04-04 Loren J. Rittle <ljrittle@acm.org>
5015
5016 * include/Makefile.in: Regenerate.
5017
50182003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5019
5020 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5021 bit mode.
5022 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5023 Receive closure pointer through parameter, read args using
5024 __builtin_dwarf_cfa.
5025 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5026
50272003-03-12 Andreas Schwab <schwab@suse.de>
5028
5029 * configure.in: Avoid trailing /. in toolexeclibdir.
5030 * configure: Rebuilt.
5031
50322003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
5033
5034 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
5035
50362003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
5037
5038 * libffi/src/powerpc/darwin_closure.S:
5039 Fix alignement bug, allocate 8 bytes for the result.
5040 * libffi/src/powerpc/aix_closure.S:
5041 Likewise.
5042 * libffi/src/powerpc/ffi_darwin.c:
5043 Update stackframe description for aix/darwin_closure.S.
5044
50452003-02-06 Jakub Jelinek <jakub@redhat.com>
5046
5047 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5048 attribute.
5049
50502003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
5051 Andreas Schwab <schwab@suse.de>
5052
5053 * configure.in: Adjust command to source config-ml.in to account
5054 for changes to the libffi_basedir definition.
5055 (libffi_basedir): Remove ${srcdir} from value and include trailing
5056 slash if nonempty.
5057
5058 * configure: Regenerate.
5059
50602003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5061
5062 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5063
50642003-01-28 Andrew Haley <aph@redhat.com>
5065
5066 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5067 * src/x86/ffi64.c (ffi_prep_closure): New.
5068 (ffi_closure_UNIX64_inner): New.
5069 * src/x86/unix64.S (ffi_closure_UNIX64): New.
5070
50712003-01-27 Alexandre Oliva <aoliva@redhat.com>
5072
5073 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5074 Remove USE_LIBDIR conditional.
5075 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5076 * Makefile.in, configure: Rebuilt.
5077
50782003-01027 David Edelsohn <edelsohn@gnu.org>
5079
5080 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5081 * Makefile.in: Regenerate.
5082
50832003-01-22 Andrew Haley <aph@redhat.com>
5084
5085 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5086 unwind info.
5087
50882003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
5089
5090 * src/powerpc/darwin.S: Add unwind info.
5091 * src/powerpc/darwin_closure.S: Likewise.
5092
50932003-01-14 Andrew Haley <aph@redhat.com>
5094
5095 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5096 (ffi_prep_cif_machdep): Likewise.
5097 * src/x86/unix64.S: Add unwind info.
5098
50992003-01-14 Andreas Jaeger <aj@suse.de>
5100
5101 * src/ffitest.c (main): Only use ffi_closures if those are
5102 supported.
5103
51042003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
5105
5106 * libffi/src/ffitest.c
5107 add closure testcases
5108
51092003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
5110
5111 * libffi/src/powerpc/ffi.c
5112 fix alignment bug for float (4 byte aligned iso 8 byte)
5113
51142003-01-09 Geoffrey Keating <geoffk@apple.com>
5115
5116 * src/powerpc/ffi_darwin.c: Remove RCS version string.
5117 * src/powerpc/darwin.S: Remove RCS version string.
5118
51192003-01-03 Jeff Sturm <jsturm@one-point.com>
5120
5121 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5122 * src/ffitest.c (main): Use static storage for closure.
5123 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5124 * src/sparc/v8.S (ffi_closure_v8): New.
5125 * src/sparc/v9.S (ffi_closure_v9): New.
5126
51272002-11-10 Ranjit Mathew <rmathew@hotmail.com>
5128
5129 * include/ffi.h.in: Added FFI_STDCALL ffi_type
5130 enumeration for X86_WIN32.
5131 * src/x86/win32.S: Added ffi_call_STDCALL function
5132 definition.
5133 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
5134 switch cases for recognising FFI_STDCALL and
5135 calling ffi_call_STDCALL if target is X86_WIN32.
5136 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
5137 stdcall versions of the "my_strlen" and "many"
5138 test functions (for X86_WIN32).
5139 Added test cases to test stdcall invocation using
5140 these functions.
5141
51422002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
5143
5144 * src/sh/sysv.S: Add DWARF2 unwind info.
5145
51462002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
5147
5148 * src/s390/sysv.S (.eh_frame section): Make section read-only.
5149
51502002-11-26 Jim Wilson <wilson@redhat.com>
5151
5152 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5153
51542002-11-23 H.J. Lu <hjl@gnu.org>
5155
5156 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5157 Include ../config/accross.m4.
5158 * aclocal.m4; Rebuild.
5159 * configure: Likewise.
5160
51612002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
5162
5163 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5164
51652002-11-11 DJ Delorie <dj@redhat.com>
5166
5167 * configure.in: Look for common files in the right place.
5168
51692002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5170
5171 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5172 raw data as _Jv_word values, not ffi_raw.
5173 (ffi_java_ptrarray_to_raw): Likewise.
5174 (ffi_java_rvalue_to_raw): New function.
5175 (ffi_java_raw_call): Call it.
5176 (ffi_java_raw_to_rvalue): New function.
5177 (ffi_java_translate_args): Call it.
5178 * src/ffitest.c (closure_test_fn): Interpret return value
5179 as ffi_arg, not int.
5180 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5181 FFI_TYPE_POINTER case.
5182 (ffi_closure_helper_SYSV): Likewise. Also, assume return
5183 values extended to word size.
5184
51852002-10-02 Andreas Jaeger <aj@suse.de>
5186
5187 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5188
51892002-10-01 Bo Thorsen <bo@smetana.suse.de>
5190
5191 * include/ffi.h.in: Fix i386 win32 compilation.
5192
51932002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5194
5195 * configure.in: Add s390x-*-linux-* target.
5196 * configure: Regenerate.
5197 * include/ffi.h.in: Define S390X for s390x targets.
5198 (FFI_CLOSURES): Define for s390/s390x.
5199 (FFI_TRAMPOLINE_SIZE): Likewise.
5200 (FFI_NATIVE_RAW_API): Likewise.
5201 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5202 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
5203 * src/s390/ffi.c: Major rework of existing code. Add support for
5204 s390x targets. Add closure support.
5205 * src/s390/sysv.S: Likewise.
5206
52072002-09-29 Richard Earnshaw <rearnsha@arm.com>
5208
5209 * src/arm/sysv.S: Fix typo.
5210
52112002-09-28 Richard Earnshaw <rearnsha@arm.com>
5212
5213 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5214 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5215 (ffi_call_SYSV): Handle soft-float.
5216
52172002-09-27 Bo Thorsen <bo@suse.de>
5218
5219 * include/ffi.h.in: Fix multilib x86-64 support.
5220
52212002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5222
5223 * Makefile.am (all-multi): Fix multilib parallel build.
5224
52252002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
5226
5227 * configure.in (sh[34]*-*-linux*): Add brackets.
5228 * configure: Regenerate.
5229
52302002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
5231
5232 * Makefile.am: Add SH support.
5233 * Makefile.in: Regenerate.
5234 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5235 * configure: Regenerate.
5236 * include/ffi.h.in: Add SH support.
5237 * src/sh/ffi.c: New file.
5238 * src/sh/sysv.S: New file.
5239 * src/types.c: Add SH support.
5240
52412002-07-16 Bo Thorsen <bo@suse.de>
5242
5243 * src/x86/ffi64.c: New file that adds x86-64 support.
5244 * src/x86/unix64.S: New file that handles argument setup for
5245 x86-64.
5246 * src/x86/sysv.S: Don't use this on x86-64.
5247 * src/x86/ffi.c: Don't use this on x86-64.
5248 Remove unused vars.
5249 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5250 for x86-64.
5251 * src/ffitest.c (struct6): New test that tests a special case in
5252 the x86-64 ABI.
5253 (struct7): Likewise.
5254 (struct8): Likewise.
5255 (struct9): Likewise.
5256 (closure_test_fn): Silence warning about this when it's not used.
5257 (main): Add the new tests.
5258 (main): Fix a couple of wrong casts and silence some compiler warnings.
5259 * include/ffi.h.in: Add x86-64 ABI definition.
5260 * fficonfig.h.in: Regenerate.
5261 * Makefile.am: Add x86-64 support.
5262 * configure.in: Likewise.
5263 * Makefile.in: Regenerate.
5264 * configure: Likewise.
5265
52662002-06-24 Bo Thorsen <bo@suse.de>
5267
5268 * src/types.c: Merge settings for similar architectures.
5269 Add x86-64 sizes and alignments.
5270
52712002-06-23 Bo Thorsen <bo@suse.de>
5272
5273 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5274 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5275 * src/mips/ffi.c (ffi_prep_args): Likewise.
5276 * src/m68k/ffi.c (ffi_prep_args): Likewise.
5277
52782002-07-18 H.J. Lu (hjl@gnu.org)
5279
5280 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5281 (libffi_la_SOURCES): Support MIPS_LINUX.
5282 (libffi_convenience_la_SOURCES): Likewise.
5283 * Makefile.in: Regenerated.
5284
5285 * configure.in (mips64*-*): Skip.
5286 (mips*-*-linux*): New.
5287 * configure: Regenerated.
5288
5289 * src/mips/ffi.c: Include <sgidefs.h>.
5290
52912002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5292
5293 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
5294
52952002-05-27 Roger Sayle <roger@eyesopen.com>
5296
5297 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5298
52992002-05-27 Bo Thorsen <bo@suse.de>
5300
5301 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5302 fix formatting.
5303
53042002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
5305
5306 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5307 beginning of function (for older apple cc).
5308
53092002-05-08 Alexandre Oliva <aoliva@redhat.com>
5310
5311 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5312 script entry, and set LD to it when configuring multilibs.
5313 * configure: Rebuilt.
5314
53152002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5316
5317 * configure.in (sparc64-*-netbsd*): Add target.
5318 (sparc-*-netbsdelf*): Likewise.
5319 * configure: Regenerate.
5320
53212002-04-28 David S. Miller <davem@redhat.com>
5322
5323 * configure.in, configure: Fix SPARC test in previous change.
5324
53252002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
5326
5327 * Makefile.am: Add Linux for S/390 support.
5328 * Makefile.in: Regenerate.
5329 * configure.in: Add Linux for S/390 support.
5330 * configure: Regenerate.
5331 * include/ffi.h.in: Add Linux for S/390 support.
5332 * src/s390/ffi.c: New file from libffi CVS tree.
5333 * src/s390/sysv.S: New file from libffi CVS tree.
5334
53352002-04-28 Jakub Jelinek <jakub@redhat.com>
5336
5337 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5338 %r_disp32().
5339 * src/sparc/v8.S: Use it.
5340 * src/sparc/v9.S: Likewise.
5341 * fficonfig.h.in: Rebuilt.
5342 * configure: Rebuilt.
5343
53442002-04-08 Hans Boehm <Hans_Boehm@hp.com>
5345
5346 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5347 correctly.
5348 * src/ia64/unix.S: Add unwind information. Fix comments.
5349 Save sp in a way that's compatible with unwind info.
5350 (ffi_call_unix): Correctly restore sp in all cases.
5351 * src/ia64/ffi.c: Add, fix comments.
5352
53532002-04-08 Jakub Jelinek <jakub@redhat.com>
5354
5355 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5356
53572002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5358
5359 * configure.in (alpha*-*-netbsd*): Add target.
5360 * configure: Regenerate.
5361
53622002-04-04 Jeff Sturm <jsturm@one-point.com>
5363
5364 * src/sparc/v8.S: Add unwind info.
5365 * src/sparc/v9.S: Likewise.
5366
53672002-03-30 Krister Walfridsson <cato@df.lth.se>
5368
5369 * configure.in: Enable i*86-*-netbsdelf*.
5370 * configure: Rebuilt.
5371
53722002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
5373
5374 PR other/2620
5375 * src/mips/n32.s: Delete
5376 * src/mips/o32.s: Delete
5377
53782002-03-21 Loren J. Rittle <ljrittle@acm.org>
5379
5380 * configure.in: Enable alpha*-*-freebsd*.
5381 * configure: Rebuilt.
5382
53832002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5384
5385 * Makefile.am: libfficonvenience -> libffi_convenience.
5386 * Makefile.in: Rebuilt.
5387
5388 * Makefile.am: Define ffitest_OBJECTS.
5389 * Makefile.in: Rebuilt.
5390
53912002-03-07 Andreas Tobler <toa@pop.agri.ch>
5392 David Edelsohn <edelsohn@gnu.org>
5393
5394 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5395 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5396 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5397 * Makefile.in: Regenerate.
5398 * include/ffi.h.in: Add AIX and Darwin closure definitions.
5399 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5400 (flush_icache, flush_range): New functions.
5401 (ffi_closure_helper_DARWIN): New function.
5402 * src/powerpc/aix_closure.S: New file.
5403 * src/powerpc/darwin_closure.S: New file.
5404
54052002-02-24 Jeff Sturm <jsturm@one-point.com>
5406
5407 * include/ffi.h.in: Add typedef for ffi_arg.
5408 * src/ffitest.c (main): Declare rint with ffi_arg.
5409
54102002-02-21 Andreas Tobler <toa@pop.agri.ch>
5411
5412 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5413 number of GPRs for floating-point arguments.
5414
54152002-01-31 Anthony Green <green@redhat.com>
5416
5417 * configure: Rebuilt.
5418 * configure.in: Replace CHECK_SIZEOF and endian tests with
5419 cross-compiler friendly macros.
5420 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5421 macros.
5422
54232002-01-18 David Edelsohn <edelsohn@gnu.org>
5424
5425 * src/powerpc/darwin.S (_ffi_call_AIX): New.
5426 * src/powerpc/aix.S (ffi_call_DARWIN): New.
5427
54282002-01-17 David Edelsohn <edelsohn@gnu.org>
5429
5430 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5431 (TARGET_SRC_POWERPC_AIX): New.
5432 (POWERPC_AIX): New stanza.
5433 * Makefile.in: Regenerate.
5434 * configure.in: Add AIX case.
5435 * configure: Regenerate.
5436 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5437 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5438 size. Fix "long double" support.
5439 (ffi_call): Add FFI_AIX case.
5440 * src/powerpc/aix.S: New.
5441
54422001-10-09 John Hornkvist <john@toastedmarshmallow.com>
5443
5444 Implement Darwin PowerPC ABI.
5445 * configure.in: Handle powerpc-*-darwin*.
5446 * Makefile.am: Set source files for POWERPC_DARWIN.
5447 * configure: Rebuilt.
5448 * Makefile.in: Rebuilt.
5449 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5450 POWERPC_DARWIN.
5451 * src/powerpc/darwin.S: New file.
5452 * src/powerpc/ffi_darwin.c: New file.
5453
54542001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5455
5456 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5457
54582001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5459
5460 * src/x86/sysv.S: Avoid gas-only .balign directive.
5461 Use C style comments.
5462
54632001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5464
5465 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5466 Fixes PR bootstrap/3563.
5467
54682001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5469
5470 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5471
54722001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5473
5474 * configure.in: Recognize sparc*-sun-* host.
5475 * configure: Regenerate.
5476
54772001-06-06 Andrew Haley <aph@redhat.com>
5478
5479 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
5480
54812001-06-03 Andrew Haley <aph@redhat.com>
5482
5483 * src/alpha/osf.S: Add unwind info.
5484 * src/powerpc/sysv.S: Add unwind info.
5485 * src/powerpc/ppc_closure.S: Likewise.
5486
54872000-05-31 Jeff Sturm <jsturm@one-point.com>
5488
5489 * configure.in: Fix AC_ARG_ENABLE usage.
5490 * configure: Rebuilt.
5491
54922001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5493
5494 * configure.in: Remove warning about beta code.
5495 * configure: Rebuilt.
5496
54972001-04-25 Hans Boehm <Hans_Boehm@hp.com>
5498
5499 * src/ia64/unix.S: Restore stack pointer when returning from
5500 ffi_closure_UNIX.
5501 * src/ia64/ffi.c: Fix typo in comment.
5502
55032001-04-18 Jim Wilson <wilson@redhat.com>
5504
5505 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5506 to eliminate RAW DV.
5507
55082001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
5509
5510 * Makefile.am: Make a libtool convenience library.
5511 * Makefile.in: Rebuilt.
5512
55132001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
5514
5515 * configure.in: Use different syntax for subdirectory creation.
5516 * configure: Rebuilt.
5517
55182001-03-27 Jon Beniston <jon@beniston.com>
5519
5520 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5521 * configure: Rebuilt.
5522 * Makefile.am: Added X86_WIN32 target support.
5523 * Makefile.in: Rebuilt.
5524
5525 * include/ffi.h.in: Added X86_WIN32 target support.
5526
5527 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5528 * src/types.c: Added X86_WIN32 target support.
5529
5530 * src/x86/win32.S: New file. Based on sysv.S, but with EH
5531 stuff removed and made to work with CygWin's gas.
5532
55332001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
5534
5535 * configure.in: Make target subdirectory in build dir.
5536 * Makefile.am: Override suffix based rules to specify correct output
5537 subdirectory.
5538 * Makefile.in: Rebuilt.
5539 * configure: Rebuilt.
5540
55412001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
5542
5543 * src/powerpc/ppc_closure.S: New file.
5544 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5545 involving long long and register pairs.
5546 (ffi_prep_closure): New function.
5547 (flush_icache): Likewise.
5548 (ffi_closure_helper_SYSV): Likewise.
5549 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5550 (FFI_TRAMPOLINE_SIZE): Likewise.
5551 (FFI_NATIVE_RAW_API): Likewise.
5552 * Makefile.in: Rebuilt.
5553 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5554 (TARGET_SRC_POWERPC): Likewise.
5555
55562001-03-19 Tom Tromey <tromey@redhat.com>
5557
5558 * Makefile.in: Rebuilt.
5559 * Makefile.am (ffitest_LDFLAGS): New macro.
5560
55612001-03-02 Nick Clifton <nickc@redhat.com>
5562
5563 * include/ffi.h.in: Remove RCS ident string.
5564 * include/ffi_mips.h: Remove RCS ident string.
5565 * src/debug.c: Remove RCS ident string.
5566 * src/ffitest.c: Remove RCS ident string.
5567 * src/prep_cif.c: Remove RCS ident string.
5568 * src/types.c: Remove RCS ident string.
5569 * src/alpha/ffi.c: Remove RCS ident string.
5570 * src/alpha/osf.S: Remove RCS ident string.
5571 * src/arm/ffi.c: Remove RCS ident string.
5572 * src/arm/sysv.S: Remove RCS ident string.
5573 * src/mips/ffi.c: Remove RCS ident string.
5574 * src/mips/n32.S: Remove RCS ident string.
5575 * src/mips/o32.S: Remove RCS ident string.
5576 * src/sparc/ffi.c: Remove RCS ident string.
5577 * src/sparc/v8.S: Remove RCS ident string.
5578 * src/sparc/v9.S: Remove RCS ident string.
5579 * src/x86/ffi.c: Remove RCS ident string.
5580 * src/x86/sysv.S: Remove RCS ident string.
5581
55822001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
5583
5584 * include/ffi.h.in: Change sourceware.cygnus.com references to
5585 gcc.gnu.org.
5586
55872000-12-09 Richard Henderson <rth@redhat.com>
5588
5589 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5590 (ffi_closure_osf_inner): Index rather than increment avalue
5591 and arg_types. Give ffi_closure_osf the raw return value type.
5592 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5593 promotion.
5594
55952000-12-07 Richard Henderson <rth@redhat.com>
5596
5597 * src/raw_api.c (ffi_translate_args): Fix typo.
5598 (ffi_prep_closure): Likewise.
5599
5600 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5601 FFI_TRAMPOLINE_SIZE.
5602 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5603 cif->bytes for new ffi_call_osf implementation.
5604 (ffi_prep_args): Absorb into ...
5605 (ffi_call): ... here. Do all stack allocation here and
5606 avoid a callback function.
5607 (ffi_prep_closure, ffi_closure_osf_inner): New.
5608 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5609 (ffi_closure_osf): New.
5610
56112000-09-10 Alexandre Oliva <aoliva@redhat.com>
5612
5613 * config.guess, config.sub, install-sh: Removed.
5614 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5615 * Makefile.in: Rebuilt.
5616
5617 * acinclude.m4: Include libtool macros from the top level.
5618 * aclocal.m4, configure: Rebuilt.
5619
56202000-08-22 Alexandre Oliva <aoliva@redhat.com>
5621
5622 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5623 * configure: Rebuilt.
5624
56252000-05-11 Scott Bambrough <scottb@netwinder.org>
5626
5627 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5628 memory correctly. Use conditional instructions, not branches where
5629 possible.
5630
56312000-05-04 Tom Tromey <tromey@cygnus.com>
5632
5633 * configure: Rebuilt.
5634 * configure.in: Match `arm*-*-linux-*'.
5635 From Chris Dornan <cdornan@arm.com>.
5636
56372000-04-28 Jakub Jelinek <jakub@redhat.com>
5638
5639 * Makefile.am (SUBDIRS): Define.
5640 (AM_MAKEFLAGS): Likewise.
5641 (Multilib support.): Add section.
5642 * Makefile.in: Rebuilt.
5643 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
5644 New variables. Set for gcc using -print-multi-lib. Export them
5645 to libtool.
5646 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5647 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5648 for -shared links.
5649 (extra_compiler_flags_value, extra_compiler_flags): Check these
5650 for extra compiler options which need to be passed down in
5651 compiler_flags.
5652
56532000-04-16 Anthony Green <green@redhat.com>
5654
5655 * configure: Rebuilt.
5656 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5657
56582000-04-14 Jakub Jelinek <jakub@redhat.com>
5659
5660 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
5661 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5662 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5663 Replace all void * sizeofs with sizeof(int).
5664 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5665 different than DOUBLE.
5666 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5667 (ffi_prep_args_v9): New function.
5668 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5669 (ffi_V9_return_struct): New function.
5670 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5671 32bit code (not yet cross-arch calls).
5672 * src/sparc/v8.S: Add struct return delay nop.
5673 Handle long long.
5674 * src/sparc/v9.S: New file.
5675 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5676 is used on sparc64 only for structures larger than 32 bytes.
5677 Pass by reference for structures is done for structure arguments
5678 larger than 16 bytes.
5679 * src/ffitest.c (main): Use 64bit rint on sparc64.
5680 Run long long tests on sparc.
5681 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5682 sparc64.
5683 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5684 on sparc64.
5685 * configure.in (sparc-*-linux*): New supported target.
5686 (sparc64-*-linux*): Likewise.
5687 * configure: Rebuilt.
5688 * Makefile.am: Add v9.S to SPARC files.
5689 * Makefile.in: Likewise.
5690 (LINK): Surround $(CCLD) into double quotes, so that multilib
5691 compiles work correctly.
5692
56932000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
5694
5695 * configure: Rebuilt.
5696 * configure.in: (i*86-*-solaris*): New libffi target. Patch
5697 proposed by Bryce McKinlay.
5698
56992000-03-20 Tom Tromey <tromey@cygnus.com>
5700
5701 * Makefile.in: Hand edit for java_raw_api.lo.
5702
57032000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
5704
5705 * config.guess, config.sub: Update from the gcc tree.
5706 Fix for PR libgcj/168.
5707
57082000-03-03 Tom Tromey <tromey@cygnus.com>
5709
5710 * Makefile.in: Fixed ia64 by hand.
5711
5712 * configure: Rebuilt.
5713 * configure.in (--enable-multilib): New option.
5714 (libffi_basedir): New subst.
5715 (AC_OUTPUT): Added multilib code.
5716
57172000-03-02 Tom Tromey <tromey@cygnus.com>
5718
5719 * Makefile.in: Rebuilt.
5720 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5721 directory name.
5722
57232000-02-25 Hans Boehm <boehm@acm.org>
5724
5725 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5726 files.
5727 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5728 list.
5729 (ffi_prep_raw_closure): Use ffi_translate_args, not
5730 ffi_closure_translate.
5731 * src/java_raw_api.c: New file.
5732 * src/ffitest.c (closure_test_fn): New function.
5733 (main): Define `rint' as long long on IA64. Added new test when
5734 FFI_CLOSURES is defined.
5735 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5736 (ffi_abi): Recognize IA64.
5737 (ffi_raw): Added `flt' field.
5738 Added "Java raw API" code.
5739 * configure.in: Recognize ia64.
5740 * Makefile.am (TARGET_SRC_IA64): New macro.
5741 (libffi_la_common_SOURCES): Added java_raw_api.c.
5742 (libffi_la_SOURCES): Define in IA64 case.
5743
57442000-01-04 Tom Tromey <tromey@cygnus.com>
5745
5746 * Makefile.in: Rebuilt with newer automake.
5747
57481999-12-31 Tom Tromey <tromey@cygnus.com>
5749
5750 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5751
57521999-09-01 Tom Tromey <tromey@cygnus.com>
5753
5754 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5755 undefs.
5756 * fficonfig.h.in: Rebuilt.
5757 * configure: Rebuilt.
5758 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5759 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5760 * acconfig.h: Don't #undef PACKAGE or VERSION.
5761
57621999-08-09 Anthony Green <green@cygnus.com>
5763
5764 * include/ffi.h.in: Try to work around messy header problem
5765 with PACKAGE and VERSION.
5766
5767 * configure: Rebuilt.
5768 * configure.in: Change version to 2.00-beta.
5769
5770 * fficonfig.h.in: Rebuilt.
5771 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5772
5773 * src/x86/ffi.c (ffi_raw_call): Rename.
5774
57751999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
5776
5777 * src/x86/ffi.c (ffi_closure_SYSV): New function.
5778 (ffi_prep_incoming_args_SYSV): Ditto.
5779 (ffi_prep_closure): Ditto.
5780 (ffi_closure_raw_SYSV): Ditto.
5781 (ffi_prep_raw_closure): More ditto.
5782 (ffi_call_raw): Final ditto.
5783
5784 * include/ffi.h.in: Add definitions for closure and raw API.
5785
5786 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
5787 FFI_TYPE_UINT64.
5788
5789 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5790
5791 * src/raw_api.c: New file.
5792
5793 * include/ffi.h.in (ffi_raw): New type.
5794 (UINT_ARG, SINT_ARG): New defines.
5795 (ffi_closure, ffi_raw_closure): New types.
5796 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
5797
5798 * configure.in: Add check for endianness and sizeof void*.
5799
5800 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5801 instead of directly.
5802
5803 * configure: Rebuilt.
5804
5805Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
5806
5807 * configure.in: Add x86 and powerpc BeOS configurations.
5808 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
5809
58101999-05-09 Anthony Green <green@cygnus.com>
5811
5812 * configure.in: Add warning about this being beta code.
5813 Remove src/Makefile.am from the picture.
5814 * configure: Rebuilt.
5815
5816 * Makefile.am: Move logic from src/Makefile.am. Add changes
5817 to support libffi as a target library.
5818 * Makefile.in: Rebuilt.
5819
5820 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5821 Upgraded to new autoconf, automake, libtool.
5822
5823 * README: Tweaks.
5824
5825 * LICENSE: Update copyright date.
5826
5827 * src/Makefile.am, src/Makefile.in: Removed.
5828
58291998-11-29 Anthony Green <green@cygnus.com>
5830
5831 * include/ChangeLog: Removed.
5832 * src/ChangeLog: Removed.
5833 * src/mips/ChangeLog: Removed.
5834 * src/sparc/ChangeLog: Remboved.
5835 * src/x86/ChangeLog: Removed.
5836
5837 * ChangeLog.v1: Created.