blob: 6ac6456fecae1af4b27c6b531b418e767f5fc313 [file] [log] [blame]
Zachary Waldowskibfc06b32013-12-30 17:36:39 -05001
22013-12-30 Zachary Waldowski <zach@waldowski.me>
3
4 * .gitignore: Exclude darwin_* generated source and build_* trees.
5 * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
6 previous prototype warnings.
7 * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
8 * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
9 and the native use of size_t for malloc on platforms
10 * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
11 ARM_FUNC_START.
12 * generate-osx-source-and-headers.py: Remove.
13 * build-ios.sh: Remove.
14 * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
15 x86_64+aarch64 pieces in library. Export headers properly.
16 * src/x86/ffi64.c: More Clang warning clean-ups.
17 * src/closures.c (open_temp_exec_file_dir): Use size_t.
18 * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
19 * src/aarch64/sysv.S: Use CNAME for global symbols. Only use
20 .size for ELF targets.
21 * src/aarch64/ffi.c: Clean up for double == long double. Clean up
22 for Xcode warnings. Use Clang cache invalidation builtin. Use
23 size_t in place of unsigned in many places. Accommodate for
24 differences in Apple AArch64 ABI.
25
262013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
27
28 * generate-darwin-source-and-headers.py: Clean up, modernize,
29 merged version of previous scripts.
30
Alan Modraab79d6e2013-11-21 06:12:35 -0500312013-11-21 Anthony Green <green@moxielogic.com>
32
33 * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
34 man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
35
362013-11-21 Alan Modra <amodra@gmail.com>
37
38 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
39 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
40 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
41 * include/ffi.h.in (ffi_prep_types): Declare.
42 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
43 * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
44 HAVE_LONG_DOUBLE_VARIANT.
45 * src/powerpc/ffi_powerpc.h: New file.
46 * src/powerpc/ffi.c: Split into..
47 * src/powerpc/ffi_sysv.c: ..new file, and..
48 * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
49 * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
50 selection as bits controlling features.
51 * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
52 than __powerpc64__.
53 * src/powerpc/linux64_closure.S: Likewise.
54 * src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
55 inside guard.
56 * src/powerpc/sysv.S: Likewise.
57 * configure: Regenerate.
58 * fficonfig.h.in: Regenerate.
59 * Makefile.in: Regenerate.
60
612013-11-20 Alan Modra <amodra@gmail.com>
62
63 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
64 NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
65 32-bit versions for 64-bit code.
66 * src/powerpc/linux64_closure.S: Don't use the return value area
67 as a parameter save area on ELFv2.
68
Iain Sandoeaa1f62c2013-11-18 13:11:56 +0000692013-11-18 Iain Sandoe <iain@codesourcery.com>
70
71 * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
72 * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
73 labels.
74
Anthony Green2f450822013-11-18 06:52:29 -0500752013-11-18 Anthony Green <green@moxielogic.com>
76
77 * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
78 function.
79 * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
80 to appease compiler.
81 Thanks for Gregory P. Smith <greg@krypto.org>.
82
832013-11-18 Anthony Green <green@moxielogic.com>
84
85 * README (tested): Mention PowerPC ELFv2.
86
Alan Modra164283f2013-11-16 06:38:55 -0500872013-11-16 Alan Modra <amodra@gmail.com>
88
Alan Modra16d56c52013-11-18 06:36:03 -050089 * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
90 Don't bl .Luint128.
91
922013-11-16 Alan Modra <amodra@gmail.com>
93
Alan Modra83f65b62013-11-16 06:53:50 -050094 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
95 test to select parameter save sizing for ELFv2 vs. ELFv1.
96 * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
97 FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
98 (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
99 * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
100 (discover_homogeneous_aggregate): New function.
101 (ffi_prep_args64): Adjust start of param save area for ELFv2.
102 Handle homogenous floating point struct parms.
103 (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
104 Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
105 homogenous floating point structs.
106 (ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
107 (flush_icache): Compile for ELFv2.
108 (ffi_prep_closure_loc): Set up ELFv2 trampoline.
109 (ffi_closure_helper_LINUX64): Don't return all structs directly
110 to caller. Handle homogenous floating point structs. Handle
111 ELFv2 struct return values.
112 * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
113 ELFv2. Adjust toc save location. Call function pointer using
114 r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
115 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
116 for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
117 RETVAL. Handle possibly missing parameter save area. Handle
118 ELFv2 return values.
119 (.note.GNU-stack): Move inside outer #ifdef.
120
1212013-11-16 Alan Modra <amodra@gmail.com>
122
Alan Modra36285132013-11-16 06:52:43 -0500123 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
124 change. Do not consume an int arg when returning a small struct
125 for FFI_SYSV ABI.
126 (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
127 Properly copy bounce buffer to destination.
128 * src/powerpc/sysv.S: Revert 2013-02-08 change.
129 * src/powerpc/ppc_closure.S: Remove stray '+'.
130
1312013-11-16 Alan Modra <amodra@gmail.com>
132
Alan Modra1c065152013-11-16 06:41:36 -0500133 * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
134 according to __STRUCT_PARM_ALIGN__.
135 (ffi_prep_cif_machdep_core): Likewise.
136 (ffi_closure_helper_LINUX64): Likewise.
137
1382013-11-16 Alan Modra <amodra@gmail.com>
139
Alan Modraa97cf1f2013-11-16 06:40:13 -0500140 * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
141 (.note.GNU-stack): Move inside outer #ifdef.
142 * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
143 RETVAL): Define and use throughout.
144 (ffi_closure_LINUX64): Save fprs before buying stack.
145 (.note.GNU-stack): Move inside outer #ifdef.
146
1472013-11-16 Alan Modra <amodra@gmail.com>
148
Alan Modra164283f2013-11-16 06:38:55 -0500149 * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
150 (FFI_EXTRA_CIF_FIELDS): Define.
151 * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
152 ABI, not to both fpr and param save area.
153 (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
154 Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
155 code.
156 (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
157 (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
158 not to both fpr and parameter save areas.
159
160 * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
161 function cast and don't call ffi_prep_cif.
162 * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
163
Andrew Haleydb0ace32013-11-16 06:29:25 -05001642013-11-15 Andrew Haley <aph@redhat.com>
165
Andrew Haley31257b32013-11-16 06:35:51 -0500166 * doc/libffi.texi (Closure Example): Fix the sample code.
167 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
168
1692013-11-15 Andrew Haley <aph@redhat.com>
170
Andrew Haleydb0ace32013-11-16 06:29:25 -0500171 * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
172 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
173 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
174 * testsuite/libffi.call/va_1.c (main): Likewise.
175
David Schneiderf3657da2013-11-14 13:02:16 +01001762013-11-14 David Schneider <david.schneider@bivab.de>
177
Anthony Greende10f502013-11-14 10:56:29 -0500178 * src/arm/ffi.c: Fix register allocation for mixed float and
179 doubles.
180 * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
181 for many mixed float and double arguments.
182
Alan Modra58c25772013-11-13 16:55:36 -05001832013-11-13 Alan Modra <amodra@gmail.com>
184
185 * doc/libffi.texi (Simple Example): Correct example code.
186 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
187
Anthony Green8af42f92013-11-13 16:40:28 -05001882013-11-13 Anthony Green <green@moxielogic.com>
189
190 * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
191 based build. (Thanks to tmr111116 on github)
192
Anthony Green2f5b7ce2013-11-09 06:16:32 -05001932013-11-09 Anthony Green <green@moxielogic.com>
194
195 * m4/libtool.m4: Refresh.
196 * configure, Makefile.in: Rebuilt.
197 * README: Add more notes about next release.
198
1992013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
200
201 * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
202 UltraSPARC-IIi as ultrasparc3.
203
Mark Kettenisbecd7542013-11-06 06:43:49 -05002042013-11-06 Mark Kettenis <kettenis@gnu.org>
205
206 * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
207 16-bytes.
208
Konstantin Belousov05c31092013-11-06 06:40:58 -05002092013-11-06 Konstantin Belousov <kib@freebsd.org>
210
211 * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
212 source as not requiring executable stack.
213
Anthony Greencf6bf982013-11-02 17:23:59 -04002142013-11-02 Anthony Green <green@moxielogic.com>
215
216 * doc/libffi.texi (The Basics): Clarify return value buffer size
217 requirements. Also, NULL result buffer pointers are no longer
218 supported.
219 * doc/libffi.info: Rebuilt.
220
Anthony Greenc2422172013-11-02 14:08:23 -07002212013-11-02 Mischa Jonker <mjonker@synopsys.com>
222
223 * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
224 * Makefile.in: Rebuilt.
225
2262013-11-02 David Schneider <david.schneider@bivab.de>
227
228 * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
229 * testsuite/libffi.call/many_mixed.c: New file.
230 * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
231
Anthony Greenf4b843f2013-11-02 17:01:15 -04002322013-11-02 Vitaly Budovski
233
234 * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
235
Mark H Weaverd3372c52013-10-26 08:30:06 -04002362013-10-23 Mark H Weaver <mhw@netris.org>
237
238 * src/mips/ffi.c: Fix handling of uint32_t arguments on the
239 MIPS N32 ABI.
240
Sandra Loosemore16b93a22013-10-15 15:33:59 -04002412013-10-13 Sandra Loosemore <sandra@codesourcery.com>
242
243 * README: Add Nios II to table of supported platforms.
244 * Makefile.am (EXTRA_DIST): Add nios2 files.
245 (nodist_libffi_la_SOURCES): Likewise.
246 * Makefile.in: Regenerated.
247 * configure.ac (nios2*-linux*): New host.
248 (NIOS2): Add AM_CONDITIONAL.
249 * configure: Regenerated.
250 * src/nios2/ffi.c: New.
251 * src/nios2/ffitarget.h: New.
252 * src/nios2/sysv.S: New.
253 * src/prep_cif.c (initialize_aggregate): Handle extra structure
254 alignment via FFI_AGGREGATE_ALIGNMENT.
255 (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
256
Sandra Loosemore2f5626c2013-10-15 15:32:16 -04002572013-10-10 Sandra Loosemore <sandra@codesourcery.com>
258
259 * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
260 Fix uninitialized variable.
261
Marcus Shawcroftf64e4a82013-10-15 15:20:14 -04002622013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
263
264 * testsuite/libffi.call/many.c (many): Replace * with +.
265
Anthony Green128cd1d2013-10-08 06:45:51 -04002662013-10-08 Ondřej Bílka <neleai@seznam.cz>
267
268 * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
269 src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
270 src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
271 src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
272 src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
273 src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
274 spelling errors.
275
Anthony Greend2fcbcd2013-10-08 06:27:46 -04002762013-10-08 Anthony Green <green@moxielogic.com>
277
278 * aclocal.m4, compile, config.guess, config.sub, depcomp,
279 install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
280 * configure.ac: Update version to 3.0.14-rc0.
281 * Makefile.in, configure, Makefile.in, include/Makefile.in,
282 man/Makefile.in, testsuite/Makefile.in: Rebuilt.
Anthony Green128cd1d2013-10-08 06:45:51 -0400283 * README: Mention M88K and VAX.
Anthony Greend2fcbcd2013-10-08 06:27:46 -0400284
2852013-07-15 Miod Vallat <miod@openbsd.org>
286
287 * Makefile.am,
288 configure.ac,
289 src/m88k/ffi.c,
290 src/m88k/ffitarget.h,
291 src/m88k/obsd.S,
292 src/vax/elfbsd.S,
293 src/vax/ffi.c,
294 src/vax/ffitarget.h: Add m88k and vax support.
295
Anthony Greend3d099b2013-07-02 16:11:38 -04002962013-06-24 Alan Modra <amodra@gmail.com>
297
298 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
299 before statements.
300 (ffi_prep_args64): Support little-endian.
301 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
302 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
303 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
304
Mischa Jonkerb082e152013-06-10 16:19:33 +02003052013-06-12 Mischa Jonker <mjonker@synopsys.com>
306
307 * configure.ac: Add support for ARC.
308 * Makefile.am: Likewise.
309 * README: Add ARC details.
310 * src/arc/arcompact.S: New.
311 * src/arc/ffi.c: Likewise.
312 * src/arc/ffitarget.h: Likewise.
313
David Schneider4750e3c2013-03-28 16:56:36 +01003142013-03-28 David Schneider <david.schneider@bivab.de>
315
316 * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
317 * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
318 * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
319 mixed arguments, many doubles.
320 * testsuite/libffi.call/many_double.c: testcase for calling a function using
321 more than 8 doubles.
322 * testcase/libffi.call/many.c: use absolute value to check result against an
323 epsilon
324
Anthony Greencb32c812013-03-17 09:27:55 -04003252013-03-17 Anthony Green <green@moxielogic.com>
326
Anthony Green12b18862013-03-17 18:32:12 -0400327 * README: Update for 3.0.13.
328 * configure.ac: Ditto.
329 * configure: Rebuilt.
330 * doc/*: Update version.
331
3322013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
333
334 * src/closures.c (is_emutramp_enabled
335 [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
336 enclosing #if scope.
337
3382013-03-17 Anthony Green <green@moxielogic.com>
339
Anthony Greencb32c812013-03-17 09:27:55 -0400340 * configure.ac: Only modify toolexecdir in certain cases.
341 * configure: Rebuilt.
342
Anthony Green4acf0052013-03-16 08:18:45 -04003432013-03-16 Gilles Talis <gilles.talis@gmail.com>
344
345 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
346 fparg_count,etc on __NO_FPRS__ targets.
347
Anthony Green8a286f52013-03-16 08:01:19 -04003482013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
349
Anthony Green4acf0052013-03-16 08:18:45 -0400350 * src/m68k/sysv.S (epilogue): Don't use extb instruction on
Anthony Green8a286f52013-03-16 08:01:19 -0400351 m680000 machines.
352
Anthony Green211a9eb2013-03-16 04:24:40 -07003532013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
354
355 * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
356
Anthony Green2fb527a2013-03-16 07:46:38 -04003572013-03-13 Markos Chandras <markos.chandras@imgtec.com>
358
359 * configure.ac: Add support for Imagination Technologies Meta.
360 * Makefile.am: Likewise.
361 * README: Add Imagination Technologies Meta details.
362 * src/metag/ffi.c: New.
363 * src/metag/ffitarget.h: Likewise.
364 * src/metag/sysv.S: Likewise.
365
Anthony Green675c9832013-03-16 08:12:38 -04003662013-02-24 Andreas Schwab <schwab@linux-m68k.org>
367
368 * doc/libffi.texi (Structures): Fix missing category argument of
369 @deftp.
370
Anthony Greenf308faf2013-02-11 14:25:13 -05003712013-02-11 Anthony Green <green@moxielogic.com>
372
373 * configure.ac: Update release number to 3.0.12.
374 * configure: Rebuilt.
375 * README: Update release info.
376
3772013-02-10 Anthony Green <green@moxielogic.com>
378
379 * README: Add Moxie.
380 * src/moxie/ffi.c: Created.
381 * src/moxie/eabi.S: Created.
382 * src/moxie/ffitarget.h: Created.
383 * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
384 * Makefile.in: Rebuilt.
385 * configure.ac: Add Moxie.
386 * configure: Rebuilt.
387 * testsuite/libffi.call/huge_struct.c: Disable format string
388 warnings for moxie*-*-elf tests.
389
3902013-02-10 Anthony Green <green@moxielogic.com>
391
392 * Makefile.am (LTLDFLAGS): Fix reference.
393 * Makefile.in: Rebuilt.
394
Anthony Green4ea22e52013-02-10 08:48:38 -05003952013-02-10 Anthony Green <green@moxielogic.com>
396
397 * README: Update supported platforms. Update test results link.
398
Anthony Green10e77222013-02-10 08:47:26 -05003992013-02-09 Anthony Green <green@moxielogic.com>
400
401 * testsuite/libffi.call/negint.c: Remove forced -O2.
402 * testsuite/libffi.call/many2.c (foo): Remove GCCism.
403 * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
404
405 * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
406 closure return type fix developed by Martin v. Löwis for cpython
407 fork.
408
Anthony Green70b11b42013-02-08 16:12:19 -05004092013-02-08 Andreas Tobler <andreast@fgznet.ch>
410
411 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
412 support.
413 * src/powerpc/sysv.S: Ditto.
414
Anthony Green63ba1fa2013-02-08 15:18:19 -05004152013-02-08 Anthony Green <green@moxielogic.com>
416
417 * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
418 arm*-*-*.
419
4202013-02-08 Anthony Green <green@moxielogic.com>
421
422 * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
423
Anthony Green24fbca42013-02-08 14:19:56 -05004242013-02-08 Matthias Klose <doko@ubuntu.com>
Anthony Greenb0fa11c2013-02-08 14:17:13 -0500425
426 * man/ffi_prep_cif.3: Clean up for debian linter.
427
Anthony Green24fbca42013-02-08 14:19:56 -05004282013-02-08 Peter Bergner <bergner@vnet.ibm.com>
Anthony Green8bd15d12013-02-08 13:56:37 -0500429
430 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
431 on the stack.
432
Anthony Greencb03ea82013-02-08 12:25:18 -05004332013-02-08 Anthony Green <green@moxielogic.com>
434
Anthony Green7aab8252013-02-08 13:26:21 -0500435 * Makefile.am (EXTRA_DIST): Add missing files.
436 * testsuite/Makefile.am (EXTRA_DIST): Ditto.
437 * Makefile.in: Rebuilt.
438
4392013-02-08 Anthony Green <green@moxielogic.com>
440
Anthony Greencb03ea82013-02-08 12:25:18 -0500441 * configure.ac: Move sparc asm config checks to within functions
442 for compatibility with sun tools.
443 * configure: Rebuilt.
444 * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
445 systems.
446 * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
447 flusher.
448
Anthony Green35ee8d42013-02-08 07:12:41 -05004492013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
450
451 * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
452 small big-endian structures.
453 (ffi_prep_args): Ditto.
454
Anthony Greened6ae952013-02-07 16:43:36 -05004552013-02-07 Anthony Green <green@moxielogic.com>
456
Anthony Green9db7e1a2013-02-07 21:06:08 -0500457 * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
458 (effectively hiding ffi_call_v8).
459
4602013-02-07 Anthony Green <green@moxielogic.com>
461
Anthony Greence0138e2013-02-07 18:04:01 -0500462 * configure.ac: Update bug reporting address.
463 * configure.in: Rebuild.
464
Anthony Greenfd07c9e2013-02-07 18:00:36 -0500465 * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
466 Sun compiler.
467 * src/sparc/ffi.c (ffi_call): Remove warning.
468 Call ffi_flush_icache for non-GCC builds.
469 (ffi_prep_closure_loc): Use ffi_flush_icache.
470
Anthony Greened6ae952013-02-07 16:43:36 -0500471 * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
472 * Makefile.in: Rebuilt.
473 * libtool-ldflags: New file.
474
Anthony Greenffef2e02013-02-07 15:47:01 -05004752013-02-07 Daniel Schepler <dschepler@gmail.com>
476
477 * configure.ac: Correctly identify x32 systems as 64-bit.
478 * m4/libtool.m4: Remove libtool expr error.
479 * aclocal.m4, configure: Rebuilt.
480
Anthony Greenf3a4f3f2013-02-07 09:57:20 -05004812013-02-07 Anthony Green <green@moxielogic.com>
482
Anthony Green176aa9d2013-02-07 15:29:22 -0500483 * configure.ac: Fix GCC usage test.
484 * configure: Rebuilt.
Anthony Green95eeceb2013-02-07 15:32:46 -0500485 * README: Mention LLVM/GCC x86_64 issue.
486 * testsuite/Makefile.in: Rebuilt.
Anthony Green176aa9d2013-02-07 15:29:22 -0500487
4882013-02-07 Anthony Green <green@moxielogic.com>
489
Anthony Greenf3a4f3f2013-02-07 09:57:20 -0500490 * testsuite/libffi.call/cls_double_va.c (main): Replace // style
491 comments with /* */ for xlc compiler.
492 * testsuite/libffi.call/stret_large.c (main): Ditto.
493 * testsuite/libffi.call/stret_large2.c (main): Ditto.
494 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
495 * testsuite/libffi.call/huge_struct.c (main): Ditto.
496 * testsuite/libffi.call/float_va.c (main): Ditto.
497 * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
498 * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
499 * testsuite/libffi.call/cls_pointer.c (main): Ditto.
500 * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
501
Anthony Greenf7cd61e2013-02-06 17:38:04 -05005022013-02-06 Anthony Green <green@moxielogic.com>
503
Anthony Green522f8fe2013-02-06 20:31:31 -0500504 * man/ffi_prep_cif.3: Clean up for debian lintian checker.
505
5062013-02-06 Anthony Green <green@moxielogic.com>
507
Anthony Greenf7cd61e2013-02-06 17:38:04 -0500508 * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
509 * Makefile.in: Rebuild.
510
Anthony Green6a790122013-02-06 17:37:15 -05005112013-02-02 Mark H Weaver <mhw@netris.org>
512
513 * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
514 via general purpose registers.
515
Anthony Greenaeb87192013-01-21 07:37:30 -05005162013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
517
518 * README: Add MicroBlaze details.
519 * Makefile.am: Add MicroBlaze support.
520 * configure.ac: Likewise.
521 * src/microblaze/ffi.c: New.
522 * src/microblaze/ffitarget.h: Likewise.
523 * src/microblaze/sysv.S: Likewise.
524
5252013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
526 * testsuite/libffi.call/return_uc.c: Fixed issue.
527
Anthony Green20cae322013-01-21 07:07:38 -05005282013-01-21 Chris Zankel <chris@zankel.net>
529
530 * README: Add Xtensa support.
531 * Makefile.am: Likewise.
532 * configure.ac: Likewise.
533 * Makefile.in Regenerate.
534 * configure: Likewise.
535 * src/prep_cif.c: Handle Xtensa.
536 * src/xtensa: New directory.
537 * src/xtensa/ffi.c: New file.
538 * src/xtensa/ffitarget.h: Ditto.
539 * src/xtensa/sysv.S: Ditto.
540
Anthony Greenbff052d2013-01-11 10:24:32 -05005412013-01-11 Anthony Green <green@moxielogic.com>
542
Anthony Green05fbe1f2013-01-11 16:54:40 -0500543 * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
544 comments with /* */ for xlc compiler.
545 * src/powerpc/aix.S (ffi_call_AIX): Ditto.
Anthony Greenf03eab02013-01-11 17:14:11 -0500546 * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
547 deprecated inline function.
548 * testsuite/libffi.special/ffitestcxx.h: Ditto.
Anthony Green05fbe1f2013-01-11 16:54:40 -0500549 * README: Add update for AIX support.
550
5512013-01-11 Anthony Green <green@moxielogic.com>
552
Anthony Greenbff052d2013-01-11 10:24:32 -0500553 * configure.ac: Robustify pc relative reloc check.
554 * m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
555 changing option for 32-bit x86.
556 * aclocal.m4, configure: Rebuilt.
557 * README: Update supported target list.
558
Anthony Green2d9b3932013-01-09 21:14:54 -05005592013-01-10 Anthony Green <green@moxielogic.com>
560
Anthony Greencd41aea2013-01-10 17:25:45 -0500561 * README (tested): Add Compiler column to table.
562
5632013-01-10 Anthony Green <green@moxielogic.com>
564
Anthony Green8bf987d2013-01-10 17:24:51 -0500565 * src/x86/ffi64.c (struct register_args): Make sse array and array
566 of unions for sunpro compiler compatibility.
567
5682013-01-10 Anthony Green <green@moxielogic.com>
569
Anthony Green13e2d7b2013-01-10 10:52:02 -0500570 * configure.ac: Test target platform size_t size. Handle both 32
571 and 64-bit builds for x86_64-* and i?86-* targets (allowing for
572 CFLAG option to change default settings).
573 * configure, aclocal.m4: Rebuilt.
574
5752013-01-10 Anthony Green <green@moxielogic.com>
576
Anthony Green51415432013-01-10 07:35:53 -0500577 * testsuite/libffi.special/special.exp: Only run exception
578 handling tests when using GNU compiler.
579
Anthony Green56ba8d82013-01-10 07:25:10 -0500580 * m4/ax_compiler_vendor.m4: New file.
581 * configure.ac: Test for compiler vendor and don't use
582 AX_CFLAGS_WARN_ALL with the sun compiler.
583 * aclocal.m4, configure: Rebuilt.
584
5852013-01-10 Anthony Green <green@moxielogic.com>
586
Anthony Green6a028ca2013-01-10 01:19:43 -0500587 * include/ffi_common.h: Don't use GCCisms to define types when
588 building with the SUNPRO compiler.
589
5902013-01-10 Anthony Green <green@moxielogic.com>
591
Anthony Green2d9b3932013-01-09 21:14:54 -0500592 * configure.ac: Put local.exp in the right place.
593 * configure: Rebuilt.
594
595 * src/x86/ffi.c: Update comment about regparm function attributes.
596 * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
597 that all function arguments be passed on the stack (no regparm
598 support).
599
Anthony Greenf7879bc2013-01-08 07:30:28 -05006002013-01-08 Anthony Green <green@moxielogic.com>
601
Anthony Green83089842013-01-08 15:14:21 -0500602 * configure.ac: Generate local.exp. This sets CC_FOR_TARGET
603 when we are using the vendor compiler.
604 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
605 ../local.exp.
606 * configure, testsuite/Makefile.in: Rebuilt.
607
Anthony Greenf26c7ca2013-01-08 14:47:05 -0500608 * testsuite/libffi.call/call.exp: Run tests with different
609 options, depending on whether or not we are using gcc or the
610 vendor compiler.
611 * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
612 whether or not we are building/testing with gcc.
613
6142013-01-08 Anthony Green <green@moxielogic.com>
615
Anthony Green74c776e2013-01-08 12:25:54 -0500616 * configure.ac: Switch x86 solaris target to X86 by default.
617 * configure: Rebuilt.
618
6192013-01-08 Anthony Green <green@moxielogic.com>
620
Anthony Green8962c8c2013-01-08 12:22:24 -0500621 * configure.ac: Fix test for read-only eh_frame.
622 * configure: Rebuilt.
623
6242013-01-08 Anthony Green <green@moxielogic.com>
625
Anthony Green35ddb692013-01-08 07:53:37 -0500626 * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
627 when building with the GNU toolchain.
Anthony Greenf7879bc2013-01-08 07:30:28 -0500628 * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
629 compiler.
630
Anthony Green8f4772f2013-01-07 06:14:53 -05006312013-01-07 Thorsten Glaser <tg@mirbsd.org>
632
Anthony Green67cea902013-01-07 06:30:24 -0500633 * testsuite/libffi.call/cls_uchar_va.c,
634 testsuite/libffi.call/cls_ushort_va.c,
635 testsuite/libffi.call/va_1.c: Testsuite fixes.
636
6372013-01-07 Thorsten Glaser <tg@mirbsd.org>
638
Anthony Green8f4772f2013-01-07 06:14:53 -0500639 * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
640 (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
641 * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
642
Anthony Greenea7f8442013-01-04 09:09:32 -05006432013-01-04 Anthony Green <green@moxielogic.com>
644
645 * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
646 and -Wall. This is set in the configure script after testing for
647 GCC.
648 * Makefile.in: Rebuilt.
649
Anthony Greenf06c0f12013-01-02 09:39:17 -05006502013-01-02 rofl0r <https://github.com/rofl0r>
651
652 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
653 when long double == double.
654
6552013-01-02 Reini Urban <rurban@x-ray.at>
656
657 * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
658 (required for shared libs on cygwin/mingw).
659 * Makefile.in: Rebuilt.
660
Anthony Greend3d099b2013-07-02 16:11:38 -04006612012-10-31 Alan Modra <amodra@gmail.co>
Anthony Greendfadfb12012-10-31 06:46:41 -0400662
663 * src/powerpc/linux64_closure.S: Add new ABI support.
664 * src/powerpc/linux64.S: Likewise.
665
Anthony Greene944b8c2012-10-30 14:06:09 -04006662012-10-30 Magnus Granberg <zorry@gentoo.org>
667 Pavel Labushev <pavel.labushev@runbox.ru>
668
669 * configure.ac: New options pax_emutramp
670 * configure, fficonfig.h.in: Regenerated
671 * src/closures.c: New function emutramp_enabled_check() and
672 checks.
673
Anthony Greenf3429962012-10-30 07:42:27 -04006742012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
675
676 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
677 lion) and future version.
678 * configure: Rebuild.
679
Anthony Green58e8b662012-10-30 07:07:19 -04006802012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
681 Marcus Shawcroft <marcus.shawcroft at arm.com>
682
683 * README: Add details of aarch64 port.
684 * src/aarch64/ffi.c: New.
685 * src/aarch64/ffitarget.h: Likewise.
686 * src/aarch64/sysv.S: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500687 * Makefile.am: Support aarch64.
688 * configure.ac: Support aarch64.
689 * Makefile.in, configure: Rebuilt.
Anthony Green58e8b662012-10-30 07:07:19 -0400690
6912012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
692 Marcus Shawcroft <marcus.shawcroft at arm.com>
693
694 * testsuite/lib/libffi.exp: Add support for aarch64.
695 * testsuite/libffi.call/cls_struct_va1.c: New.
696 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
697 * testsuite/libffi.call/cls_uint_va.c: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500698 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
Anthony Green58e8b662012-10-30 07:07:19 -0400699 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
700 * testsuite/libffi.call/nested_struct11.c: Likewise.
701 * testsuite/libffi.call/uninitialized.c: Likewise.
702 * testsuite/libffi.call/va_1.c: Likewise.
703 * testsuite/libffi.call/va_struct1.c: Likewise.
704 * testsuite/libffi.call/va_struct2.c: Likewise.
705 * testsuite/libffi.call/va_struct3.c: Likewise.
706
Anthony Green9c00a3f2012-10-12 16:46:06 -04007072012-10-12 Walter Lee <walt@tilera.com>
708
709 * Makefile.am: Add TILE-Gx/TILEPro support.
710 * configure.ac: Likewise.
711 * Makefile.in: Regenerate.
712 * configure: Likewise.
713 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
714 * src/tile: New directory.
715 * src/tile/ffi.c: New file.
716 * src/tile/ffitarget.h: Ditto.
717 * src/tile/tile.S: Ditto.
718
7192012-10-12 Matthias Klose <doko@ubuntu.com>
720
721 * generate-osx-source-and-headers.py: Normalize whitespace.
722
Anthony Green048d2f42012-10-11 10:55:25 -04007232012-09-14 David Edelsohn <dje.gcc@gmail.com>
724
725 * configure: Regenerated.
726
7272012-08-26 Andrew Pinski <apinski@cavium.com>
728
729 PR libffi/53014
730 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
731 soft-float.
732
7332012-08-08 Uros Bizjak <ubizjak@gmail.com>
734
735 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
736 just return FFI_BAD_ABI when things are wrong.
737
7382012-07-18 H.J. Lu <hongjiu.lu@intel.com>
739
740 PR libffi/53982
741 PR libffi/53973
742 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
743 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
744
7452012-05-16 H.J. Lu <hongjiu.lu@intel.com>
746
747 * configure: Regenerated.
748
Nicolas Lelongd330f192012-05-05 09:37:02 -04007492012-05-05 Nicolas Lelong
750
751 * libffi.xcodeproj/project.pbxproj: Fixes.
752 * README: Update for iOS builds.
753
Anthony Green213ed152012-04-27 01:34:15 -04007542012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
755
756 * configure.ac: Add Blackfin/sysv support
757 * Makefile.am: Add Blackfin/sysv support
758 * src/bfin/ffi.c: Add Blackfin/sysv support
759 * src/bfin/ffitarget.h: Add Blackfin/sysv support
Anthony Green213ed152012-04-27 01:34:15 -0400760
Anthony Green7e0a4122012-04-11 22:47:44 -04007612012-04-11 Anthony Green <green@moxielogic.com>
762
763 * Makefile.am (EXTRA_DIST): Add new script.
764 * Makefile.in: Rebuilt.
765
Zachary Waldowski39e6a582012-04-11 22:39:46 -04007662012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
767
768 * generate-ios-source-and-headers.py,
769 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
770 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
771 generation into an Xcode "run script" phase. Include both as
772 Xcode build scripts. Don't always regenerate config files.
773
Anthony Green853cc722012-04-10 06:33:33 -04007742012-04-10 Anthony Green <green@moxielogic.com>
775
776 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
777
Anthony Green3f502302012-04-06 20:34:51 -04007782012-04-06 Anthony Green <green@moxielogic.com>
779
780 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
781 * Makefile.in: Rebuilt.
782
Mike Lewisebb8e892012-04-06 20:02:08 -04007832012-04-06 Mike Lewis <mikelikespie@gmail.com>
784
785 * generate-ios-source-and-headers.py: New file.
786 * libffi.xcodeproj/project.pbxproj: New file.
787 * README: Update instructions on building iOS binary.
788 * build-ios.sh: Delete.
789
Anthony Greena044a562012-04-06 10:39:10 -04007902012-04-06 Anthony Green <green@moxielogic.com>
791
792 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
793 compilers, then use it.
794
Anthony Green048d2f42012-10-11 10:55:25 -04007952012-04-06 H.J. Lu <hongjiu.lu@intel.com>
796
797 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
798
Anthony Green59bb61a2012-04-06 08:26:14 -04007992012-04-06 Anthony Green <green@moxielogic.com>
800
801 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
802 * testsuite/Makefile.in: Rebuilt.
803
Zachary Waldowski39dccdd2012-04-05 12:32:41 -04008042012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
805
806 * include/ffi.h.in: Add missing trampoline table fields.
807 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
808 in CNAME.
809 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
810
Anthony Green089dbce2013-01-02 08:37:35 -05008112012-04-02 Peter Bergner <bergner@vnet.ibm.com>
812
813 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
814 Silence casting pointer to integer of different size warning.
815 Delete goto to previously deleted label.
816 (ffi_call): Silence possibly undefined warning.
817 (ffi_closure_helper_SYSV): Declare variable type.
818
8192012-04-02 Peter Rosin <peda@lysator.liu.se>
820
821 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
822 value in the Intel version as is already done for the AT&T version.
823 (ffi_closure_SYSV): Likewise.
824 (ffi_closure_raw_SYSV): Likewise.
825 (ffi_closure_STDCALL): Likewise.
826
Peter Rosin0a1ab122012-03-30 08:14:08 -04008272012-03-29 Peter Rosin <peda@lysator.liu.se>
828
829 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
830 generation, fix the ENDP label and remove the surplus third arg
831 from the 'lea' insn.
832
8332012-03-29 Peter Rosin <peda@lysator.liu.se>
834
835 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
836 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
837 it. Also instruct the assembler to add a frame to the function.
838
8392012-03-23 Peter Rosin <peda@lysator.liu.se>
840
841 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
842 * Makefile.in: Rebuilt.
843 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
844 to all data exports, when compiling libffi clients using MSVC.
845
8462012-03-29 Peter Rosin <peda@lysator.liu.se>
847
848 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
849 make it the default for MSVC.
850 (FFI_TYPE_MS_STRUCT): New structure return convention.
851 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
852 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
853 instead of an ordinary FFI_TYPE_STRUCT.
854 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
855 (ffi_call): Likewise.
856 (ffi_prep_incoming_args_SYSV): Likewise.
857 (ffi_raw_call): Likewise.
858 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
859 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
860 return a pointer to the result structure in eax and don't pop
861 that pointer from the stack, the caller takes care of it.
862 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
863 (ffi_closure_raw_SYSV): Likewise.
864
8652012-03-22 Peter Rosin <peda@lysator.liu.se>
866
867 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
868 assembly version with Intel syntax.
869 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
870
8712012-03-23 Peter Rosin <peda@lysator.liu.se>
872
873 * testsuite/libffi.call/ffitest.h: Provide abstration of
874 __attribute__((fastcall)) in the form of a __FASTCALL__
875 define. Define it to __fastcall for MSVC.
876 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
877 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
878 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
879 * testsuite/libffi.call/strlen2_win32.c: Likewise.
880 * testsuite/libffi.call/struct1_win32.c: Likewise.
881 * testsuite/libffi.call/struct2_win32.c: Likewise.
882
8832012-03-22 Peter Rosin <peda@lysator.liu.se>
884
885 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
886 frame on function entry, MASM adds one automatically.
887
8882012-03-22 Peter Rosin <peda@lysator.liu.se>
889
890 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
891 bits in the MSVC headers.
892
8932012-03-22 Peter Rosin <peda@lysator.liu.se>
894
895 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
896 with no declarations after statements.
897 * testsuite/libffi.call/cls_16byte.c: Likewise.
898 * testsuite/libffi.call/cls_18byte.c: Likewise.
899 * testsuite/libffi.call/cls_19byte.c: Likewise.
900 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
901 * testsuite/libffi.call/cls_20byte.c: Likewise.
902 * testsuite/libffi.call/cls_20byte1.c: Likewise.
903 * testsuite/libffi.call/cls_24byte.c: Likewise.
904 * testsuite/libffi.call/cls_2byte.c: Likewise.
905 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
906 * testsuite/libffi.call/cls_3byte1.c: Likewise.
907 * testsuite/libffi.call/cls_3byte2.c: Likewise.
908 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
909 * testsuite/libffi.call/cls_4byte.c: Likewise.
910 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
911 * testsuite/libffi.call/cls_5byte.c: Likewise.
912 * testsuite/libffi.call/cls_64byte.c: Likewise.
913 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
914 * testsuite/libffi.call/cls_6byte.c: Likewise.
915 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
916 * testsuite/libffi.call/cls_7byte.c: Likewise.
917 * testsuite/libffi.call/cls_8byte.c: Likewise.
918 * testsuite/libffi.call/cls_9byte1.c: Likewise.
919 * testsuite/libffi.call/cls_9byte2.c: Likewise.
920 * testsuite/libffi.call/cls_align_double.c: Likewise.
921 * testsuite/libffi.call/cls_align_float.c: Likewise.
922 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
923 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
924 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
925 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
926 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
927 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
928 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
929 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
930 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
931 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
932 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
933 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
934 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
935 * testsuite/libffi.call/huge_struct.c: Likewise.
936 * testsuite/libffi.call/nested_struct.c: Likewise.
937 * testsuite/libffi.call/nested_struct1.c: Likewise.
938 * testsuite/libffi.call/nested_struct10.c: Likewise.
939 * testsuite/libffi.call/nested_struct2.c: Likewise.
940 * testsuite/libffi.call/nested_struct3.c: Likewise.
941 * testsuite/libffi.call/nested_struct4.c: Likewise.
942 * testsuite/libffi.call/nested_struct5.c: Likewise.
943 * testsuite/libffi.call/nested_struct6.c: Likewise.
944 * testsuite/libffi.call/nested_struct7.c: Likewise.
945 * testsuite/libffi.call/nested_struct8.c: Likewise.
946 * testsuite/libffi.call/nested_struct9.c: Likewise.
947 * testsuite/libffi.call/stret_large.c: Likewise.
948 * testsuite/libffi.call/stret_large2.c: Likewise.
949 * testsuite/libffi.call/stret_medium.c: Likewise.
950 * testsuite/libffi.call/stret_medium2.c: Likewise.
951 * testsuite/libffi.call/struct1.c: Likewise.
952 * testsuite/libffi.call/struct1_win32.c: Likewise.
953 * testsuite/libffi.call/struct2.c: Likewise.
954 * testsuite/libffi.call/struct2_win32.c: Likewise.
955 * testsuite/libffi.call/struct3.c: Likewise.
956 * testsuite/libffi.call/struct4.c: Likewise.
957 * testsuite/libffi.call/struct5.c: Likewise.
958 * testsuite/libffi.call/struct6.c: Likewise.
959 * testsuite/libffi.call/struct7.c: Likewise.
960 * testsuite/libffi.call/struct8.c: Likewise.
961 * testsuite/libffi.call/struct9.c: Likewise.
962 * testsuite/libffi.call/testclosure.c: Likewise.
963
Anthony Greene72ed5e2012-03-21 09:52:28 -04009642012-03-21 Peter Rosin <peda@lysator.liu.se>
965
966 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
967 printing doubles (%lf is for long doubles).
968 (main): Likewise.
969
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009702012-03-21 Peter Rosin <peda@lysator.liu.se>
971
972 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
973 (set_ld_library_path_env_vars): Add the library search dir to PATH
974 (and save PATH for later).
975 (restore_ld_library_path_env_vars): Restore PATH.
976
Anthony Greenccee09a2013-01-02 08:41:55 -05009772012-03-21 Peter Rosin <peda@lysator.liu.se>
978
979 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
980 (set_ld_library_path_env_vars): Add the library search dir to PATH
981 (and save PATH for later).
982 (restore_ld_library_path_env_vars): Restore PATH.
983
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009842012-03-20 Peter Rosin <peda@lysator.liu.se>
985
986 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
987 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
988 visible outside the PROC, so that ffi_closure_THISCALL can see it.
989
Anthony Green048d2f42012-10-11 10:55:25 -04009902012-03-20 Peter Rosin <peda@lysator.liu.se>
991
992 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
993 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
994 visible outside the PROC, so that ffi_closure_THISCALL can see it.
995
Anthony Greenbd78c9c2012-03-21 08:09:30 -04009962012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
997
998 * src/m68k/ffi.c: Add MINT support.
999 * src/m68k/sysv.S: Ditto.
1000
Anthony Green048d2f42012-10-11 10:55:25 -040010012012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
1002
1003 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1004 ffi_call_VFP().
1005 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1006 ffi_closure_VFP.
1007 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1008
Anthony Green089dbce2013-01-02 08:37:35 -050010092012-03-19 chennam <csit@axway.com>
Anthony Green65f40c32012-04-03 07:35:59 -04001010
Anthony Green089dbce2013-01-02 08:37:35 -05001011 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1012 support.
Anthony Green048d2f42012-10-11 10:55:25 -04001013
Anthony Green84d32532012-03-19 23:07:35 -040010142012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
1015
1016 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1017 just return FFI_BAD_ABI when things are wrong.
1018 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1019
10202012-03-09 David Edelsohn <dje.gcc@gmail.com>
1021
1022 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1023 change to return value of ffi_closure_helper_DARWIN and load type
1024 from return type.
1025
Anthony Green964c5b92012-03-03 14:46:20 -050010262012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1027
1028 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1029 long.
1030 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1031 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1032 first.
1033
1034 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1035 (ffi_arg): Set to unsigned long long for x32.
1036 (ffi_sarg): Set to long long for x32.
1037
10382012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1039
1040 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1041
Anthony Green6c194232012-03-03 14:17:54 -050010422012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
1043
1044 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1045 windows-like hosts.
1046 * configure: Rebuilt.
1047
Anthony Green7c5e60b2012-03-29 08:48:22 -040010482012-02-27 Mikael Pettersson <mikpe@it.uu.se>
1049
1050 PR libffi/52223
1051 * Makefile.am (FLAGS_TO_PASS): Define.
1052 * Makefile.in: Regenerate.
1053
Anthony Green8360bf12012-02-23 07:01:13 -050010542012-02-23 Anthony Green <green@moxielogic.com>
1055
1056 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1057 directly.
1058
Anthony Green7c5e60b2012-03-29 08:48:22 -040010592012-02-23 Kai Tietz <ktietz@redhat.com>
1060
1061 PR libffi/52221
1062 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1063 prototype.
1064 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1065 thiscall-convention.
1066 (ffi_raw_call): Use ffi_prep_args_raw.
1067 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1068 implementation for stub.
1069
Anthony Greendee20f82012-02-10 13:06:46 -050010702012-02-10 Kai Tietz <ktietz@redhat.com>
1071
1072 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1073 windows target.
1074 * configure: Regenerated.
Anthony Green8360bf12012-02-23 07:01:13 -05001075
Anthony Greendee20f82012-02-10 13:06:46 -050010762012-02-08 Kai Tietz <ktietz@redhat.com>
1077
1078 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1079 also FFI_THISCALL.
1080 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1081 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1082 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1083 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1084 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1085 for thiscall-calling convention.
1086 * testsuite/libffi.call/closure_thiscall.c: New test.
1087
Anthony Green1ff9c602012-02-01 16:34:30 -060010882012-01-28 Kai Tietz <ktietz@redhat.com>
1089
1090 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1091 argument to prototype for specify calling-convention.
1092 (ffi_call): Add support for stdcall/thiscall convention.
1093 (ffi_prep_args): Likewise.
1094 (ffi_raw_call): Likewise.
1095 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1096 FFI_FASTCALL.
1097 * src/x86/win32.S (_ffi_call_win32): Add support for
1098 fastcall/thiscall calling-convention calls.
1099 * testsuite/libffi.call/fastthis1_win32.c: New test.
1100 * testsuite/libffi.call/fastthis2_win32.c: New test.
1101 * testsuite/libffi.call/fastthis3_win32.c: New test.
1102 * testsuite/libffi.call/strlen2_win32.c: New test.
1103 * testsuite/libffi.call/many2_win32.c: New test.
1104 * testsuite/libffi.call/struct1_win32.c: New test.
1105 * testsuite/libffi.call/struct2_win32.c: New test.
1106
Anthony Green211060e2012-01-23 14:24:01 -050011072012-01-23 Uros Bizjak <ubizjak@gmail.com>
1108
1109 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1110
Anthony Green1ff9c602012-02-01 16:34:30 -060011112012-01-23 Anthony Green <green@moxielogic.com>
1112 Chris Young <cdyoung@ntlworld.com>
Anthony Green9e9c4ae2012-01-23 14:11:23 -05001113
1114 * configure.ac: Add Amiga support.
1115 * configure: Rebuilt.
1116
11172012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
Anthony Green8efc0b12012-01-23 13:47:38 -05001118
1119 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1120
Anthony Green1ff9c602012-02-01 16:34:30 -060011212012-01-23 Andreas Schwab <schwab@linux-m68k.org>
Anthony Greencd2277c2012-01-23 13:43:38 -05001122
1123 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1124 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1125
Anthony Greenc365ee72012-01-23 11:13:18 -050011262012-01-19 Jakub Jelinek <jakub@redhat.com>
1127
1128 PR rtl-optimization/48496
1129 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1130
11312012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1132
1133 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1134 * configure: Regenerate.
1135
11362011-12-07 Andrew Pinski <apinski@cavium.com>
1137
1138 PR libffi/50051
1139 * src/mips/n32.S: Add ".set mips4".
1140
11412011-11-21 Andreas Tobler <andreast@fgznet.ch>
1142
1143 * configure: Regenerate.
1144
Anthony Greenff9454d2011-11-12 17:18:51 -050011452011-11-12 David Gilbert <david.gilbert@linaro.org>
1146
1147 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1148 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1149 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1150 src/cris/ffi.c, src/prep_cif.c,
1151 testsuite/libffi.call/cls_double_va.c,
1152 testsuite/libffi.call/cls_longdouble_va.c,
1153 testsuite/libffi.call/float_va.c: Many changes to support variadic
1154 function calls.
1155
Anthony Green52891f82011-11-12 16:35:55 -050011562011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1157
1158 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1159 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1160 softfloat powerpc variants.
1161
Anthony Green6a6e7f82011-11-12 16:20:42 -050011622011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
1163
1164 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1165 * configure: Rebuilt.
1166
Anthony Greend52fbed2011-11-12 16:13:41 -050011672011-11-12 Timothy Wall <twall@users.sf.net>
1168
1169 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1170 alignment of 4 for wince on ARM.
1171
Anthony Greenaf18df22011-11-12 15:52:08 -050011722011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1173 Anthony Green <green@moxielogic.com>
1174
1175 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1176 instructions (not available on some cores, like the PPC440).
1177
Anthony Greenc411f142011-11-12 07:32:36 -050011782011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
Anthony Green8c019542011-09-06 14:26:32 -04001179
Anthony Greenc411f142011-11-12 07:32:36 -05001180 * m4/ax_enable_builddir: Change from string comparison to numeric
Anthony Green52891f82011-11-12 16:35:55 -05001181 comparison for wc output.
Anthony Green236c9392011-11-12 07:37:40 -05001182 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1183 X 10.7.
1184 * configure: Rebuilt.
Anthony Greenee6696f2011-08-23 12:30:29 -04001185
Anthony Green6a6e7f82011-11-12 16:20:42 -050011862011-11-12 Anthony Green <green@moxielogic.com>
1187
1188 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1189 files with debug info.
1190 * Makefile.in: Rebuilt.
1191
11922011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
1193
1194 * README: Update list of supported OpenBSD systems.
1195
11962011-11-12 Anthony Green <green@moxielogic.com>
1197
1198 * libtool-version: Update.
1199 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1200 FFI_DEBUG.
1201 (libffi_la_SOURCES): Remove src/debug.c
1202 (EXTRA_DIST): Add src/debug.c
1203 * Makefile.in: Rebuilt.
1204 * README: Update for 3.0.11.
1205
Anthony Green3d561062011-11-12 07:20:24 -050012062011-11-10 Richard Henderson <rth@redhat.com>
Anthony Green049d8382011-08-22 14:50:10 -04001207
Anthony Green3d561062011-11-12 07:20:24 -05001208 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1209 * configure, aclocal.m4: Rebuild.
1210
12112011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1212
1213 PR libffi/49594
1214 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1215 helper reference track the architecture pointer size.
1216
12172011-08-25 Andrew Haley <aph@redhat.com>
1218
1219 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1220 instructions.
1221 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
Anthony Green049d8382011-08-22 14:50:10 -04001222
Anthony Greend992ac52011-07-29 17:32:53 -040012232011-07-11 Andrew Haley <aph@redhat.com>
1224
1225 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1226
12272011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1228
1229 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1230 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1231
12322011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1233
1234 PR libffi/46660
1235 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1236 mips-sgi-irix6*.
1237 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1238
12392011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1240
1241 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1242 PRId8 instead of %hhu, %hhd.
1243 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1244 PRIu8): Define.
1245 [__sgi__] (PRId8, PRIu8): Define.
1246
12472011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1248
1249 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1250 Define.
1251 Use them to handle ELF vs. ECOFF differences.
1252 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1253
Anthony Green2d3fb362011-03-30 16:54:42 -040012542011-03-30 Timothy Wall <twall@users.sf.net>
1255
1256 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1257 * src/powerpc/darwin_closure.S: ditto.
1258
Anthony Green25416792011-02-25 15:09:13 -050012592011-02-25 Anthony Green <green@moxielogic.com>
1260
Anthony Green74ee6ea2011-02-25 15:52:14 -05001261 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1262 32-bit ABIs.
Anthony Green25416792011-02-25 15:09:13 -05001263
Anthony Green8cf88782011-02-15 15:19:49 -050012642011-02-15 Anthony Green <green@moxielogic.com>
1265
1266 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1267 * configure: Rebuilt.
1268
Anthony Greend992ac52011-07-29 17:32:53 -040012692011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1270
1271 * configure: Regenerate.
1272
Anthony Green1fbf9dc2011-02-13 08:06:39 -050012732011-02-13 Anthony Green <green@moxielogic.com>
1274
1275 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1276 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1277 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1278
1279 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1280 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1281
1282 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1283 just return FFI_BAD_ABI when things are wrong.
1284 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1285 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1286 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1287 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1288 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1289
Anthony Green1833aa02011-02-11 07:11:04 -050012902011-02-11 Anthony Green <green@moxielogic.com>
1291
1292 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1293 just return FFI_BAD_ABI when things are wrong.
1294
Anthony Green7c5e60b2012-03-29 08:48:22 -040012952012-02-11 Eric Botcazou <ebotcazou@adacore.com>
1296
1297 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1298
Anthony Green42695e72011-02-09 15:12:35 -050012992011-02-09 Stuart Shelton <srcshelton@gmail.com>
1300
1301 http://bugs.gentoo.org/show_bug.cgi?id=286911
1302 * src/mips/ffitarget.h: Clean up error messages.
1303 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1304 ffi_raw*.
1305 * include/ffi.h.in: Add pragma for SGI compiler.
1306
Anthony Greena6e56b92011-02-09 15:00:42 -050013072011-02-09 Anthony Green <green@moxielogic.com>
1308
1309 * configure.ac: Add powerpc64-*-darwin* support.
1310
Anthony Green0cad4382011-02-09 06:11:46 -050013112011-02-09 Anthony Green <green@moxielogic.com>
Anthony Green11062292011-02-08 19:20:09 -05001312
Anthony Green747d6c32011-02-09 14:56:23 -05001313 * README: Mention Interix.
1314
13152011-02-09 Jonathan Callen <abcd@gentoo.org>
1316
1317 * configure.ac: Add Interix to win32/cygwin/mingw case.
1318 * configure: Ditto.
1319 * src/closures.c: Treat Interix like Cygwin, instead of as a
1320 generic win32.
1321
13222011-02-09 Anthony Green <green@moxielogic.com>
1323
Anthony Green69dbe842011-02-09 07:38:43 -05001324 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1325 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1326 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1327 (ffi_prep_closure_loc): Check for bad ABI.
1328 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1329 (initialize_aggregate): Check for bad types.
Anthony Green0cad4382011-02-09 06:11:46 -05001330
Anthony Green90af15e2011-02-12 12:29:36 -050013312011-02-09 Landon Fuller <landonf@plausible.coop>
Anthony Green0cad4382011-02-09 06:11:46 -05001332
1333 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1334 src/arm/trampoline.S.
1335 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1336 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1337 * src/arm/ffi.c (ffi_trampoline_table)
1338 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1339 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1340 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1341 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1342 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1343 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1344 separately.
1345 * src/arm/sysv.S: Handle Apple iOS host.
1346 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
Anthony Greenf4983182011-02-09 06:26:46 -05001347 * build-ios.sh: New file.
Anthony Green0cad4382011-02-09 06:11:46 -05001348 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
Anthony Green69dbe842011-02-09 07:38:43 -05001349 * README: Mention ARM iOS.
Anthony Green11062292011-02-08 19:20:09 -05001350
Anthony Greendc411e82011-02-08 10:49:29 -050013512011-02-08 Oren Held <orenhe@il.ibm.com>
1352
1353 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1354 redefinition of mallinfo on HP-UX.
1355
Anthony Green404585d2011-02-08 10:44:36 -050013562011-02-08 Ginn Chen <ginn.chen@oracle.com>
1357
1358 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
Anthony Green049d8382011-08-22 14:50:10 -04001359 aggregate return ABI. Flush cache.
1360 (ffi_prep_closure_loc): Flush cache.
Anthony Green404585d2011-02-08 10:44:36 -05001361
Anthony Green6972a4f2011-02-11 07:32:51 -050013622011-02-11 Anthony Green <green@moxielogic.com>
1363
1364 From Tom Honermann <tom.honermann@oracle.com>:
1365 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1366 AIX. Declare .ffi_prep_args. Insert nops after branch
1367 instructions so that the AIX linker can insert TOC reload
1368 instructions.
1369 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1370
Anthony Greend992ac52011-07-29 17:32:53 -040013712011-02-08 Ed <ed@kdtc.net>
1372
1373 * src/powerpc/asm.h: Fix grammar nit in comment.
1374
Anthony Green89284fe2011-02-08 10:19:19 -050013752011-02-08 Uli Link <ul.mcamafia@linkitup.de>
1376
1377 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1378
Anthony Greend992ac52011-07-29 17:32:53 -040013792011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1380
1381 PR libffi/46661
1382 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1383 uintptr_t first.
1384 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1385
Anthony Greened2c5182011-02-08 10:10:07 -050013862011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
1387
1388 * configure.ac: Fix x86 test for pc related relocs.
Anthony Green09f8f312011-02-28 15:36:07 -05001389 * configure: Rebuilt.
Anthony Greened2c5182011-02-08 10:10:07 -05001390
Anthony Green3b836242011-02-08 14:28:59 -050013912011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1392
1393 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1394 Handle case when CPU variant does not have long double support.
1395 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1396 and cores with soft floating point.
1397
13982011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1399
1400 * configure.ac: Add mips*-*-rtems* support.
1401 * configure: Regenerate.
1402 * src/mips/ffitarget.h: Ensure needed constants are available
1403 for targets which do not have sgidefs.h.
1404
Anthony Green0e584392011-02-08 07:52:40 -050014052011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1406
1407 PR target/40125
1408 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1409 * configure: Regenerate.
1410
14112010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1412
1413 PR libffi/29152
1414 PR libffi/42378
1415 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1416 update comments.
1417 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1418 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1419 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1420 update comments.
1421 * src/powerpc/ffi_darwin.c: Likewise.
1422
14232010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1424
1425 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1426 backslashes.
1427 (libffi_cv_as_string_pseudo_op): Likewise.
1428 * configure: Regenerate.
1429
14302010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
1431
1432 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1433 (ffi_closure_VFP): Same.
1434 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1435 directive.
1436
14372010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1438
1439 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1440 (PRIuPTR): Define.
1441
14422010-11-29 Richard Henderson <rth@redhat.com>
1443 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1444
1445 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1446 (.eh_frame): Use FDE_ENCODING.
1447 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1448
Anthony Green5b9cd522010-11-22 15:19:57 -050014492010-11-22 Jacek Caban <jacek@codeweavers.com>
1450
1451 * configure.ac: Check for symbol underscores on mingw-w64.
1452 * configure: Rebuilt.
1453 * src/x86/win64.S: Correctly access extern symbols in respect to
1454 underscores.
1455
Anthony Green2db72612010-11-21 10:50:56 -050014562010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1457
1458 * testsuite/lib/libffi-dg.exp: Rename ...
1459 * testsuite/lib/libffi.exp: ... to this.
1460 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1461 * libffi/testsuite/libffi.special/special.exp: Likewise.
1462
14632010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1464
1465 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1466 code, new parameter, and return value. Update comments.
1467 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1468 call to layout_vfp_args().
1469 (ffi_call_SYSV): Update declaration.
1470 (ffi_call_VFP): New declaration.
1471 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1472 when ABI is FFI_VFP.
1473 (ffi_closure_VFP): New declaration.
1474 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1475 ffi_prep_incoming_args_SYSV().
1476 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1477 case handling.
1478 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1479 construction under VFP hard-float.
1480 (rec_vfp_type_p): New function.
1481 (vfp_type_p): Same.
1482 (place_vfp_arg): Same.
1483 (layout_vfp_args): Same.
1484 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1485 based on __ARM_PCS_VFP.
1486 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1487 fields.
1488 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1489 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1490 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1491 direct call. Move function pointer load upwards.
1492 (ffi_call_VFP): New function.
1493 (ffi_closure_VFP): Same.
1494
1495 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1496 (dg-skip-if): New function.
1497 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1498 and compiler options include -mfloat-abi=hard.
1499 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1500
15012010-10-01 Jakub Jelinek <jakub@redhat.com>
1502
1503 PR libffi/45677
1504 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1505 a multiple of 8.
1506 * testsuite/libffi.call/many2.c: New test.
1507
15082010-08-20 Mark Wielaard <mjw@redhat.com>
1509
1510 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1511 returns NULL.
1512
15132010-08-09 Andreas Tobler <andreast@fgznet.ch>
1514
1515 * configure.ac: Add target powerpc64-*-freebsd*.
1516 * configure: Regenerate.
1517 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1518 -mlong-double-128 only to linux targets.
1519 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1520 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1521 * testsuite/libffi.call/huge_struct.c: Likewise.
1522
Anthony Green00d0b592010-08-05 14:56:53 -040015232010-08-05 Dan Witte <dwitte@mozilla.com>
1524
1525 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1526 debug CRT when --enable-debug is given.
1527 * configure.ac: Define it.
1528 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1529
Anthony Greenc1d28ba2010-08-05 08:48:16 -040015302010-08-04 Dan Witte <dwitte@mozilla.com>
1531
1532 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1533 platforms.
1534 * src/x86/ffi.c: Remove redundant ifdef checks.
1535 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1536 for X86_ANY so return value space doesn't get added twice.
1537
Anthony Greenbda487e2010-08-05 09:02:41 -040015382010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
1539
1540 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1541
Anthony Greend14178b2010-07-23 09:14:00 -040015422010-07-22 Dan Witte <dwitte@mozilla.com>
1543
1544 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1545 * src/prep_cif.c: Fix ABI assertion.
1546 * src/cris/ffi.c: Ditto.
1547
Anthony Greeneaf444e2010-07-10 08:59:09 -040015482010-07-10 Evan Phoenix <evan@fallingsnow.net>
1549
1550 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1551
Anthony Green5feacad2010-08-05 08:30:04 -040015522010-07-07 Dan Horák <dan@danny.cz>
1553
1554 * include/ffi.h.in: Protect #define with #ifndef.
1555 * src/powerpc/ffitarget.h: Ditto.
1556 * src/s390/ffitarget.h: Ditto.
1557 * src/sparc/ffitarget.h: Ditto.
1558
Anthony Green2db72612010-11-21 10:50:56 -050015592010-07-07 Neil Roberts <neil@linux.intel.com>
1560
1561 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1562 16-bytes.
1563
15642010-07-02 Jakub Jelinek <jakub@redhat.com>
1565
1566 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1567 * Makefile.in: Regenerated.
1568
15692010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1570
1571 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1572 output, too.
1573 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1574 (libffi_cv_as_string_pseudo_op): Check for .string.
1575 * configure: Regenerate.
1576 * fficonfig.h.in: Regenerate.
1577 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1578
Anthony Green10ea8482010-08-05 08:24:27 -040015792010-05-11 Dan Witte <dwitte@mozilla.com>
1580
1581 * doc/libffi.tex: Document previous change.
1582
15832010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
1584
1585 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1586
Anthony Green63097412010-05-05 20:14:56 -040015872010-05-05 Michael Kohler <michaelkohler@live.com>
1588
1589 * src/dlmalloc.c (dlfree): Fix spelling.
1590 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1591 * configure.ac: Ditto.
1592 * configure: Rebuilt.
1593
Anthony Greenf2c2a4f2010-04-13 10:19:28 -040015942010-04-13 Dan Witte <dwitte@mozilla.com>
1595
1596 * msvcc.sh: Build with -W3 instead of -Wall.
1597 * src/powerpc/ffi_darwin.c: Remove build warnings.
1598 * src/x86/ffi.c: Ditto.
1599 * src/x86/ffitarget.h: Ditto.
1600
Anthony Green2db72612010-11-21 10:50:56 -050016012010-04-12 Dan Witte <dwitte@mozilla.com>
1602 Walter Meinl <wuno@lsvw.de>
Anthony Greenc0b69e52010-03-30 08:30:22 -04001603
Anthony Green2db72612010-11-21 10:50:56 -05001604 * configure.ac: Add OS/2 support.
1605 * configure: Rebuilt.
1606 * src/closures.c: Ditto.
1607 * src/dlmalloc.c: Ditto.
1608 * src/x86/win32.S: Ditto.
Anthony Green3f5b1372010-07-12 14:39:18 -04001609
16102010-04-07 Jakub Jelinek <jakub@redhat.com>
1611
Anthony Green2db72612010-11-21 10:50:56 -05001612 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
Anthony Green3f5b1372010-07-12 14:39:18 -04001613
16142010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1615
1616 * Makefile.in: Regenerate.
1617 * aclocal.m4: Regenerate.
1618 * include/Makefile.in: Regenerate.
1619 * man/Makefile.in: Regenerate.
1620 * testsuite/Makefile.in: Regenerate.
1621
Anthony Green2db72612010-11-21 10:50:56 -050016222010-03-30 Dan Witte <dwitte@mozilla.com>
1623
1624 * msvcc.sh: Disable build warnings.
1625 * README (tested): Clarify windows build procedure.
1626
Anthony Green3f5b1372010-07-12 14:39:18 -040016272010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1628
1629 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1630 * configure: Regenerate.
1631 * fficonfig.h.in: Regenerate.
1632 * libffi/src/x86/unix64.S (.eh_frame)
1633 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1634
Anthony Green2db72612010-11-21 10:50:56 -050016352010-03-14 Matthias Klose <doko@ubuntu.com>
1636
1637 * src/x86/ffi64.c: Fix typo in comment.
1638 * src/x86/ffi.c: Use /* ... */ comment style.
1639
Anthony Green9dc9a292010-04-13 10:33:52 -040016402010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1641
1642 * doc/libffi.texi (The Closure API): Fix typo.
1643 * doc/libffi.info: Remove.
1644
16452010-02-15 Matthias Klose <doko@ubuntu.com>
1646
1647 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1648 __ARM_ARCH_7EM__.
1649
Anthony Green2db72612010-11-21 10:50:56 -050016502010-01-15 Anthony Green <green@redhat.com>
1651
1652 * README: Add notes on building with Microsoft Visual C++.
1653
16542010-01-15 Daniel Witte <dwitte@mozilla.com>
1655
1656 * msvcc.sh: New file.
1657
1658 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1659 * src/x86/ffi.c: Tweak function declaration and remove excess
1660 parens.
1661 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1662 ffi_closure.
1663
1664 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1665 function ffi_call_win32 on X86_WIN32.
1666 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1667 (ffi_call_STDCALL): Remove.
1668
1669 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1670 to ffi_prep_cif_machdep for x86.
1671 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1672
16732010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
1674
1675 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
Anthony Green0e584392011-02-08 07:52:40 -05001676 Sun Studio compiler compatibility.
Anthony Green2db72612010-11-21 10:50:56 -05001677
16782010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
1679
1680 * doc/libffi.texi: Add closure example.
1681
Anthony Green7b7a42f2010-01-12 09:14:14 -050016822010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1683
1684 PR libffi/40701
1685 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1686 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1687 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1688 alpha*-dec-osf*.
1689 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1690 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1691 * testsuite/libffi.call/return_ll1.c: Likewise.
1692 * testsuite/libffi.call/stret_medium2.c: Likewise.
1693 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1694 MAP_FAILED to char *.
1695
16962010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1697
1698 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1699
Anthony Greenc3042af2010-01-01 08:08:02 -050017002009-12-31 Anthony Green <green@redhat.com>
1701
1702 * README: Update for libffi 3.0.9.
1703
17042009-12-27 Matthias Klose <doko@ubuntu.com>
1705
1706 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1707 appropriate.
1708 * configure: Rebuilt.
1709
17102009-12-26 Anthony Green <green@redhat.com>
1711
1712 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1713 avr32*-*-*.
1714 * testsuite/libffi.call/cls_double_va.c: Ditto.
1715
17162009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1717
1718 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1719 and inttypes.h.
1720 * testsuite/libffi.special/unwindtest.cc: Ditto.
1721
17222009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1723
1724 * configure.ac: Add amd64-*-openbsd*.
1725 * configure: Rebuilt.
1726 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1727 openbsd programs with -lpthread.
1728
17292009-12-26 Anthony Green <green@redhat.com>
1730
1731 * testsuite/libffi.call/cls_double_va.c,
1732 testsuite/libffi.call/cls_longdouble.c,
1733 testsuite/libffi.call/cls_longdouble_va.c,
1734 testsuite/libffi.call/cls_pointer.c,
1735 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1736 mips*-*-* and arm*-*-*.
1737 * testsuite/libffi.call/cls_align_longdouble_split.c,
1738 testsuite/libffi.call/cls_align_longdouble_split2.c,
1739 testsuite/libffi.call/stret_medium2.c,
1740 testsuite/libffi.call/stret_medium.c,
1741 testsuite/libffi.call/stret_large.c,
1742 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1743
17442009-12-31 Kay Tietz <ktietz70@googlemail.com>
1745
1746 * testsuite/libffi.call/ffitest.h,
1747 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1748 definitions.
1749
17502009-12-31 Carlo Bramini <carlo.bramix@libero.it>
1751
1752 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1753 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1754 * configure: Rebuilt.
1755 * Makefile.in: Rebuilt.
1756
17572009-12-31 Anthony Green <green@redhat.com>
1758 Blake Chaffin.
1759
1760 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1761 Chaffin @ Apple.
1762
Anthony Green0cfe60e2009-12-29 10:06:04 -050017632009-12-28 David Edelsohn <edelsohn@gnu.org>
1764
1765 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1766 local variables.
1767 (aix_adjust_aggregate_sizes): New function.
1768 (ffi_prep_cif_machdep): Call it.
1769
17702009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1771
1772 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1773 * configure: Regenerate.
1774 * fficonfig.h.in: Likewise.
1775 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1776 Solaris/x86.
1777
17782009-12-26 Andreas Schwab <schwab@linux-m68k.org>
1779
1780 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1781 when a float arguments is passed in memory.
1782 (ffi_closure_helper_SYSV): Mark general registers as used up when
1783 a 64bit or soft-float long double argument is passed in memory.
1784
Anthony Green9458d882009-12-26 07:02:27 -050017852009-12-25 Matthias Klose <doko@ubuntu.com>
1786
1787 * man/ffi_call.3: Fix #include in examples.
1788 * doc/libffi.texi: Add dircategory.
1789
17902009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
1791
1792 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1793 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1794 IRIX MIPSPro c99.
1795 * include/ffi_common.h: Added '__sgi' define to non
1796 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001797 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -05001798 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1799 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1800 FFI_LONGDOUBLE support and alignment(N32 only).
1801 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1802 fixed non '__attribute__((__mode__()))' integer typedefs.
1803 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1804 since they are Linux/GNU Assembler specific.
1805
18062009-12-25 Bradley Smith <brad@brad-smith.co.uk>
1807
1808 * configure.ac, Makefile.am, src/avr32/ffi.c,
1809 src/avr32/ffitarget.h,
1810 src/avr32/sysv.S: Add AVR32 port.
1811 * configure, Makefile.in: Rebuilt.
1812
Anthony Green115ab362009-12-24 00:22:00 -050018132009-12-21 Andreas Tobler <a.tobler@schweiz.org>
1814
1815 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1816 * configure: Regenerate.
1817
18182009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1819
1820 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1821
18222009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1823
1824 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1825 type on HP-UX.
1826
Anthony Green7c5e60b2012-03-29 08:48:22 -040018272012-02-13 Kai Tietz <ktietz@redhat.com>
1828
1829 PR libffi/52221
1830 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1831 support for X86_WIN32.
1832 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1833
Anthony Green115ab362009-12-24 00:22:00 -050018342009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1835
1836 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1837 double' arguments.
1838
18392009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1840
1841 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1842
18432009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1844
1845 PR libffi/40700
1846 * src/closures.c [X86_64 && __sun__ && __svr4__]
1847 (FFI_MMAP_EXEC_WRIT): Define.
1848
18492009-12-08 David Daney <ddaney@caviumnetworks.com>
1850
1851 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1852 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1853 * testsuite/libffi.call/stret_large.c: Same.
1854 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1855 * testsuite/libffi.call/stret_large2.c: Same.
1856 * testsuite/libffi.call/stret_medium2.c: Same.
1857
18582009-12-07 David Edelsohn <edelsohn@gnu.org>
1859
1860 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1861 typo.
1862
18632009-12-05 David Edelsohn <edelsohn@gnu.org>
1864
1865 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1866 code.
1867 * src/powerpc/aix_closure.S: Same.
1868
18692009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1870
1871 * Makefile.in: Regenerate.
1872 * configure: Regenerate.
1873 * include/Makefile.in: Regenerate.
1874 * man/Makefile.in: Regenerate.
1875 * testsuite/Makefile.in: Regenerate.
1876
18772009-12-04 David Edelsohn <edelsohn@gnu.org>
1878
1879 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -05001880 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -05001881
18822009-12-04 Uros Bizjak <ubizjak@gmail.com>
1883
1884 PR libffi/41908
1885 * src/x86/ffi64.c (classify_argument): Update from
1886 gcc/config/i386/i386.c.
1887 (ffi_closure_unix64_inner): Do not use the address of two consecutive
1888 SSE registers directly.
1889 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
1890 for x86_64 linux targets.
1891
18922009-12-04 David Edelsohn <edelsohn@gnu.org>
1893
1894 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
1895 pfr for long double split between fpr13 and stack.
1896
18972009-12-03 David Edelsohn <edelsohn@gnu.org>
1898
1899 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
1900 fparg_count twice for long double.
1901
19022009-12-03 David Edelsohn <edelsohn@gnu.org>
1903
1904 PR libffi/42243
1905 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
1906
19072009-12-03 Uros Bizjak <ubizjak@gmail.com>
1908
1909 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
1910 Remove xfails for x86 linux targets.
1911
19122009-12-02 David Edelsohn <edelsohn@gnu.org>
1913
1914 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
1915 case.
1916
19172009-12-01 David Edelsohn <edelsohn@gnu.org>
1918
1919 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
1920 register usage. Call ffi_prep_args directly. Add long double
1921 return value support.
1922 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
1923 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
1924 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
1925 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
1926 mode.
1927 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
1928 into case.
1929 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
1930 Allocate result area between params and FPRs.
1931
19322009-11-30 David Edelsohn <edelsohn@gnu.org>
1933
1934 PR target/35484
1935 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
1936 AIX64.
1937 * src/powerpc/aix.S: Implement AIX64 version.
1938 * src/powerpc/aix_closure.S: Implement AIX64 version.
1939 (ffi_closure_ASM): Use extsb, lha and displament addresses.
1940 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
1941 support.
1942 (ffi_prep_cif_machdep): Same.
1943 (ffi_call): Same.
1944 (ffi_closure_helper_DARWIN): Same.
1945
19462009-11-02 Andreas Tobler <a.tobler@schweiz.org>
1947
1948 PR libffi/41908
1949 * testsuite/libffi.call/testclosure.c: New test.
1950
Anthony Greenc6dddbd2009-10-04 08:11:33 -040019512009-09-28 Kai Tietz <kai.tietz@onevision.com>
1952
1953 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
1954 assembly version use of ___chkstk.
1955
19562009-09-23 Matthias Klose <doko@ubuntu.com>
1957
1958 PR libffi/40242, PR libffi/41443
1959 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
1960 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
1961 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
1962 Change the conditionals to __SOFTFP__ || __ARM_EABI__
1963 for -mfloat-abi=softfp to work.
1964
19652009-09-17 Loren J. Rittle <ljrittle@acm.org>
1966
1967 PR testsuite/32843 (strikes again)
1968 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
1969 enable proper extension on char and short.
1970
19712009-09-15 David Daney <ddaney@caviumnetworks.com>
1972
1973 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
1974 handling for FFI_TYPE_POINTER.
1975 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
1976 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
1977 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
1978 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
1979 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
1980 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
1981 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
1982 structure and pointer returns.
1983 (ffi_closure_N32): Add handling for pointer returns.
1984 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
1985 calc_n32_return_struct_flags): Handle soft-float.
1986 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
1987 (ffi_call_N32): Declare proper argument types.
1988 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
1989 soft-float.
1990
19912009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1992
1993 * configure.ac (AC_PREREQ): Bump to 2.64.
1994
19952009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1996
1997 * Makefile.am (install-html, install-pdf): Remove.
1998 * Makefile.in: Regenerate.
1999
2000 * Makefile.in: Regenerate.
2001 * aclocal.m4: Regenerate.
2002 * configure: Regenerate.
2003 * fficonfig.h.in: Regenerate.
2004 * include/Makefile.in: Regenerate.
2005 * man/Makefile.in: Regenerate.
2006 * testsuite/Makefile.in: Regenerate.
2007
Anthony Green3d561062011-11-12 07:20:24 -050020082011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
2009
2010 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2011 * configure: Rebuilt.
2012
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020132009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2014
2015 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2016
20172009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
2018
2019 PR libffi/40807
2020 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2021 return types for X86_WIN32.
2022 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2023 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2024 _ffi_closure_STDCALL): Likewise.
2025
2026 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2027 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2028
20292009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2030
2031 PR testsuite/40699
2032 PR testsuite/40707
2033 PR testsuite/40709
2034 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2035 2009-06-30 commits.
2036
20372009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2038
2039 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2040 to "" before adding paths. (This reinstates an assignment that
2041 was removed by my 2009-06-30 commit, but changes the initial
2042 value from "." to "".)
2043
20442009-07-01 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 PR testsuite/40601
2047 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2048 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2049 empty.
2050
20512009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2052
2053 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2054 to ld_library_path. Use add_path. Add just find_libgcc_s
2055 to ld_library_path, not every libgcc multilib directory.
2056
20572009-06-16 Wim Lewis <wiml@hhhh.org>
2058
2059 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2060 supposed to be callee-saved.
2061 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2062 return buffer for odd-size structs.
2063
20642009-06-16 Andreas Tobler <a.tobler@schweiz.org>
2065
2066 PR libffi/40444
2067 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2068 allow_stack_execute for Darwin.
2069
20702009-06-16 Andrew Haley <aph@redhat.com>
2071
2072 * configure.ac (TARGETDIR): Add missing blank lines.
2073 * configure: Regenerate.
2074
20752009-06-16 Andrew Haley <aph@redhat.com>
2076
2077 * testsuite/libffi.call/cls_align_sint64.c,
2078 testsuite/libffi.call/cls_align_uint64.c,
2079 testsuite/libffi.call/cls_longdouble_va.c,
2080 testsuite/libffi.call/cls_ulonglong.c,
2081 testsuite/libffi.call/return_ll1.c,
2082 testsuite/libffi.call/stret_medium2.c: Fix printf format
2083 specifiers.
2084 * testsuite/libffi.call/ffitest.h,
2085 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2086
20872009-06-15 Andrew Haley <aph@redhat.com>
2088
2089 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2090 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002091
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020922009-06-12 Andrew Haley <aph@redhat.com>
2093
2094 * Makefile.am: Remove info_TEXINFOS.
2095
20962009-06-12 Andrew Haley <aph@redhat.com>
2097
2098 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2099 testsuite/libffi.call/cls_align_uint64.c,
2100 testsuite/libffi.call/cls_ulonglong.c,
2101 testsuite/libffi.call/return_ll1.c,
2102 testsuite/libffi.call/stret_medium2.c: Fix printf format
2103 specifiers.
2104 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2105
21062009-06-11 Timothy Wall <twall@users.sf.net>
2107
2108 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002109 configure.ac,
2110 include/ffi.h.in,
2111 include/ffi_common.h,
2112 src/closures.c,
2113 src/dlmalloc.c,
2114 src/x86/ffi.c,
2115 src/x86/ffitarget.h,
2116 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002117 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -05002118 * Makefile.in,
2119 include/Makefile.in,
2120 man/Makefile.in,
2121 testsuite/Makefile.in,
2122 configure,
2123 aclocal.m4: Regenerated
2124 * ltcf-c.sh: properly escape cygwin/w32 path
2125 * man/ffi_call.3: Clarify size requirements for return value.
2126 * src/x86/ffi64.c: Fix filename in comment.
2127 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002128
Anthony Green0cfe60e2009-12-29 10:06:04 -05002129 * testsuite/libffi.call/closure_fn0.c,
2130 testsuite/libffi.call/closure_fn1.c,
2131 testsuite/libffi.call/closure_fn2.c,
2132 testsuite/libffi.call/closure_fn3.c,
2133 testsuite/libffi.call/closure_fn4.c,
2134 testsuite/libffi.call/closure_fn5.c,
2135 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002136 testsuite/libffi.call/closure_stdcall.c,
2137 testsuite/libffi.call/cls_12byte.c,
2138 testsuite/libffi.call/cls_16byte.c,
2139 testsuite/libffi.call/cls_18byte.c,
2140 testsuite/libffi.call/cls_19byte.c,
2141 testsuite/libffi.call/cls_1_1byte.c,
2142 testsuite/libffi.call/cls_20byte.c,
2143 testsuite/libffi.call/cls_20byte1.c,
2144 testsuite/libffi.call/cls_24byte.c,
2145 testsuite/libffi.call/cls_2byte.c,
2146 testsuite/libffi.call/cls_3_1byte.c,
2147 testsuite/libffi.call/cls_3byte1.c,
2148 testsuite/libffi.call/cls_3byte2.c,
2149 testsuite/libffi.call/cls_4_1byte.c,
2150 testsuite/libffi.call/cls_4byte.c,
2151 testsuite/libffi.call/cls_5_1_byte.c,
2152 testsuite/libffi.call/cls_5byte.c,
2153 testsuite/libffi.call/cls_64byte.c,
2154 testsuite/libffi.call/cls_6_1_byte.c,
2155 testsuite/libffi.call/cls_6byte.c,
2156 testsuite/libffi.call/cls_7_1_byte.c,
2157 testsuite/libffi.call/cls_7byte.c,
2158 testsuite/libffi.call/cls_8byte.c,
2159 testsuite/libffi.call/cls_9byte1.c,
2160 testsuite/libffi.call/cls_9byte2.c,
2161 testsuite/libffi.call/cls_align_double.c,
2162 testsuite/libffi.call/cls_align_float.c,
2163 testsuite/libffi.call/cls_align_longdouble.c,
2164 testsuite/libffi.call/cls_align_longdouble_split.c,
2165 testsuite/libffi.call/cls_align_longdouble_split2.c,
2166 testsuite/libffi.call/cls_align_pointer.c,
2167 testsuite/libffi.call/cls_align_sint16.c,
2168 testsuite/libffi.call/cls_align_sint32.c,
2169 testsuite/libffi.call/cls_align_sint64.c,
2170 testsuite/libffi.call/cls_align_uint16.c,
2171 testsuite/libffi.call/cls_align_uint32.c,
2172 testsuite/libffi.call/cls_align_uint64.c,
2173 testsuite/libffi.call/cls_dbls_struct.c,
2174 testsuite/libffi.call/cls_double.c,
2175 testsuite/libffi.call/cls_double_va.c,
2176 testsuite/libffi.call/cls_float.c,
2177 testsuite/libffi.call/cls_longdouble.c,
2178 testsuite/libffi.call/cls_longdouble_va.c,
2179 testsuite/libffi.call/cls_multi_schar.c,
2180 testsuite/libffi.call/cls_multi_sshort.c,
2181 testsuite/libffi.call/cls_multi_sshortchar.c,
2182 testsuite/libffi.call/cls_multi_uchar.c,
2183 testsuite/libffi.call/cls_multi_ushort.c,
2184 testsuite/libffi.call/cls_multi_ushortchar.c,
2185 testsuite/libffi.call/cls_pointer.c,
2186 testsuite/libffi.call/cls_pointer_stack.c,
2187 testsuite/libffi.call/cls_schar.c,
2188 testsuite/libffi.call/cls_sint.c,
2189 testsuite/libffi.call/cls_sshort.c,
2190 testsuite/libffi.call/cls_uchar.c,
2191 testsuite/libffi.call/cls_uint.c,
2192 testsuite/libffi.call/cls_ulonglong.c,
2193 testsuite/libffi.call/cls_ushort.c,
2194 testsuite/libffi.call/err_bad_abi.c,
2195 testsuite/libffi.call/err_bad_typedef.c,
2196 testsuite/libffi.call/float2.c,
2197 testsuite/libffi.call/huge_struct.c,
2198 testsuite/libffi.call/nested_struct.c,
2199 testsuite/libffi.call/nested_struct1.c,
2200 testsuite/libffi.call/nested_struct10.c,
2201 testsuite/libffi.call/nested_struct2.c,
2202 testsuite/libffi.call/nested_struct3.c,
2203 testsuite/libffi.call/nested_struct4.c,
2204 testsuite/libffi.call/nested_struct5.c,
2205 testsuite/libffi.call/nested_struct6.c,
2206 testsuite/libffi.call/nested_struct7.c,
2207 testsuite/libffi.call/nested_struct8.c,
2208 testsuite/libffi.call/nested_struct9.c,
2209 testsuite/libffi.call/problem1.c,
2210 testsuite/libffi.call/return_ldl.c,
2211 testsuite/libffi.call/return_ll1.c,
2212 testsuite/libffi.call/stret_large.c,
2213 testsuite/libffi.call/stret_large2.c,
2214 testsuite/libffi.call/stret_medium.c,
2215 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002216 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2217 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002218
22192009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2220
2221 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2222 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2223 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2224
22252009-06-09 Andrew Haley <aph@redhat.com>
2226
2227 * src/x86/freebsd.S: Add missing file.
2228
22292009-06-08 Andrew Haley <aph@redhat.com>
2230
2231 Import from libffi 3.0.8:
2232
2233 * doc/libffi.texi: New file.
2234 * doc/libffi.info: Likewise.
2235 * doc/stamp-vti: Likewise.
2236 * man/Makefile.am: New file.
2237 * man/ffi_call.3: New file.
2238
2239 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2240 src/dlmalloc.c.
2241 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2242
2243 * configure.ac: Bump version to 3.0.8.
2244 parisc*-*-linux*: Add.
2245 i386-*-freebsd* | i386-*-openbsd*: Add.
2246 powerpc-*-beos*: Add.
2247 AM_CONDITIONAL X86_FREEBSD: Add.
2248 AC_CONFIG_FILES: Add man/Makefile.
2249
2250 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2251
22522009-06-08 Andrew Haley <aph@redhat.com>
2253
2254 * README: Import from libffi 3.0.8.
2255
22562009-06-08 Andrew Haley <aph@redhat.com>
2257
2258 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2259 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2260 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2261 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2262
2263 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2264 * testsuite/libffi.call/stret_medium.c: Likewise.
2265 * testsuite/libffi.call/stret_large2.c: Likewise.
2266 * testsuite/libffi.call/stret_large.c: Likewise.
2267
22682008-12-26 Timothy Wall <twall@users.sf.net>
2269
Anthony Green0cfe60e2009-12-29 10:06:04 -05002270 * testsuite/libffi.call/cls_longdouble.c,
2271 testsuite/libffi.call/cls_longdouble_va.c,
2272 testsuite/libffi.call/cls_align_longdouble.c,
2273 testsuite/libffi.call/cls_align_longdouble_split.c,
2274 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2275 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002276
22772008-12-22 Timothy Wall <twall@users.sf.net>
2278
Anthony Green0cfe60e2009-12-29 10:06:04 -05002279 * testsuite/libffi.call/closure_fn0.c,
2280 testsuite/libffi.call/closure_fn1.c,
2281 testsuite/libffi.call/closure_fn2.c,
2282 testsuite/libffi.call/closure_fn3.c,
2283 testsuite/libffi.call/closure_fn4.c,
2284 testsuite/libffi.call/closure_fn5.c,
2285 testsuite/libffi.call/closure_fn6.c,
2286 testsuite/libffi.call/closure_loc_fn0.c,
2287 testsuite/libffi.call/closure_stdcall.c,
2288 testsuite/libffi.call/cls_align_pointer.c,
2289 testsuite/libffi.call/cls_pointer.c,
2290 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2291 pointer to integer (intptr_t).
2292 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002293
22942008-07-24 Anthony Green <green@redhat.com>
2295
Anthony Green0cfe60e2009-12-29 10:06:04 -05002296 * testsuite/libffi.call/cls_dbls_struct.c,
2297 testsuite/libffi.call/cls_double_va.c,
2298 testsuite/libffi.call/cls_longdouble.c,
2299 testsuite/libffi.call/cls_longdouble_va.c,
2300 testsuite/libffi.call/cls_pointer.c,
2301 testsuite/libffi.call/cls_pointer_stack.c,
2302 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2303 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002304
23052008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002306 Blake Chaffin
2307 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002308
Anthony Green0cfe60e2009-12-29 10:06:04 -05002309 * testsuite/libffi.call/cls_align_longdouble_split2.c
2310 testsuite/libffi.call/cls_align_longdouble_split.c
2311 testsuite/libffi.call/cls_dbls_struct.c
2312 testsuite/libffi.call/cls_double_va.c
2313 testsuite/libffi.call/cls_longdouble.c
2314 testsuite/libffi.call/cls_longdouble_va.c
2315 testsuite/libffi.call/cls_pointer.c
2316 testsuite/libffi.call/cls_pointer_stack.c
2317 testsuite/libffi.call/err_bad_abi.c
2318 testsuite/libffi.call/err_bad_typedef.c
2319 testsuite/libffi.call/stret_large2.c
2320 testsuite/libffi.call/stret_large.c
2321 testsuite/libffi.call/stret_medium2.c
2322 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002323
23242009-06-05 Andrew Haley <aph@redhat.com>
2325
2326 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2327 libffi.
2328
23292009-06-04 Andrew Haley <aph@redhat.com>
2330
2331 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2332 stdcall changes.
2333
23342008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002335 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002336
Anthony Green0cfe60e2009-12-29 10:06:04 -05002337 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2338 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002339
23402008-02-03 Timothy Wall <twall@users.sf.net>
2341
Anthony Green0cfe60e2009-12-29 10:06:04 -05002342 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2343 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002344
23452008-01-31 Timothy Wall <twall@users.sf.net>
2346
Anthony Green0cfe60e2009-12-29 10:06:04 -05002347 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2348 closures.
2349 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2350 closures.
2351 * src/x86/win32.S: Add assembly for stdcall closure.
2352 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002353
23542009-06-04 Andrew Haley <aph@redhat.com>
2355
2356 * include/ffi.h.in: Change void (*)() to void (*)(void).
2357 * src/x86/ffi.c: Likewise.
2358
23592009-06-04 Andrew Haley <aph@redhat.com>
2360
2361 * src/powerpc/ppc_closure.S: Insert licence header.
2362 * src/powerpc/linux64_closure.S: Likewise.
2363 * src/m68k/sysv.S: Likewise.
2364
2365 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2366 * src/powerpc/ffi.c: Likewise.
2367 * src/powerpc/ffi_darwin.c: Likewise.
2368 * src/m32r/ffi.c: Likewise.
2369 * src/sh64/ffi.c: Likewise.
2370 * src/x86/ffi64.c: Likewise.
2371 * src/alpha/ffi.c: Likewise.
2372 * src/alpha/osf.S: Likewise.
2373 * src/frv/ffi.c: Likewise.
2374 * src/s390/ffi.c: Likewise.
2375 * src/pa/ffi.c: Likewise.
2376 * src/pa/hpux32.S: Likewise.
2377 * src/ia64/unix.S: Likewise.
2378 * src/ia64/ffi.c: Likewise.
2379 * src/sparc/ffi.c: Likewise.
2380 * src/mips/ffi.c: Likewise.
2381 * src/sh/ffi.c: Likewise.
2382
23832008-02-15 David Daney <ddaney@avtrex.com>
2384
Anthony Green0cfe60e2009-12-29 10:06:04 -05002385 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2386 Define (conditionally), and use it to include cachectl.h.
2387 (ffi_prep_closure_loc): Fix cache flushing.
2388 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002389
23902009-06-04 Andrew Haley <aph@redhat.com>
2391
2392 include/ffi.h.in,
2393 src/arm/ffitarget.h,
2394 src/arm/ffi.c,
2395 src/arm/sysv.S,
2396 src/powerpc/ffitarget.h,
2397 src/closures.c,
2398 src/sh64/ffitarget.h,
2399 src/sh64/ffi.c,
2400 src/sh64/sysv.S,
2401 src/types.c,
2402 src/x86/ffi64.c,
2403 src/x86/ffitarget.h,
2404 src/x86/win32.S,
2405 src/x86/darwin.S,
2406 src/x86/ffi.c,
2407 src/x86/sysv.S,
2408 src/x86/unix64.S,
2409 src/alpha/ffitarget.h,
2410 src/alpha/ffi.c,
2411 src/alpha/osf.S,
2412 src/m68k/ffitarget.h,
2413 src/frv/ffitarget.h,
2414 src/frv/ffi.c,
2415 src/s390/ffitarget.h,
2416 src/s390/sysv.S,
2417 src/cris/ffitarget.h,
2418 src/pa/linux.S,
2419 src/pa/ffitarget.h,
2420 src/pa/ffi.c,
2421 src/raw_api.c,
2422 src/ia64/ffitarget.h,
2423 src/ia64/unix.S,
2424 src/ia64/ffi.c,
2425 src/ia64/ia64_flags.h,
2426 src/java_raw_api.c,
2427 src/debug.c,
2428 src/sparc/v9.S,
2429 src/sparc/ffitarget.h,
2430 src/sparc/ffi.c,
2431 src/sparc/v8.S,
2432 src/mips/ffitarget.h,
2433 src/mips/n32.S,
2434 src/mips/o32.S,
2435 src/mips/ffi.c,
2436 src/prep_cif.c,
2437 src/sh/ffitarget.h,
2438 src/sh/ffi.c,
2439 src/sh/sysv.S: Update license text.
2440
24412009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2442
2443 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2444 (.eh_frame): Add FDE for it.
2445
24462009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2447
2448 * configure.ac: Also check if assembler supports pc-relative
2449 relocs on X86_WIN32 targets.
2450 * configure: Regenerate.
2451 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2452 (_ffi_call_SYSV): Add missing function type symbol .def and
2453 add EH markup labels.
2454 (_ffi_call_STDCALL): Likewise.
2455 (_ffi_closure_SYSV): Likewise.
2456 (_ffi_closure_raw_SYSV): Likewise.
2457 (.eh_frame): Add hand-crafted EH data.
2458
24592009-04-09 Jakub Jelinek <jakub@redhat.com>
2460
2461 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2462 version 3 of the GNU General Public License and to point readers
2463 at the COPYING3 file and the FSF's license web page.
2464 * testsuite/libffi.call/call.exp: Likewise.
2465 * testsuite/libffi.special/special.exp: Likewise.
2466
24672009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2468
2469 * configure: Regenerate.
2470
24712008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2472
2473 PR libffi/26048
2474 * configure.ac (HAVE_AS_X86_PCREL): New test.
2475 * configure: Regenerate.
2476 * fficonfig.h.in: Regenerate.
2477 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2478 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2479 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2480 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2481 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2482 (.Lload_table): Likewise.
2483 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2484
24852008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2486
2487 * configure: Regenerate.
2488
24892008-11-21 Eric Botcazou <ebotcazou@adacore.com>
2490
2491 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2492 signed/unsigned int8/16 return values.
2493 * src/sparc/v8.S (ffi_call_v8): Likewise.
2494 (ffi_closure_v8): Likewise.
2495
24962008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002497 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002498
2499 * configure: Regenerate for new libtool.
2500 * Makefile.in: Ditto.
2501 * include/Makefile.in: Ditto.
2502 * aclocal.m4: Ditto.
2503
25042008-08-25 Andreas Tobler <a.tobler@schweiz.org>
2505
2506 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2507 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2508 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2509 Adjust copyright notice.
2510 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2511 register or two register to use for FFI_SYSV structs.
2512 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2513 (ffi_closure_helper_SYSV): Fix the return type for
2514 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2515 Adjust copyright notice.
2516
25172008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2518
2519 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2520 int.
2521
25222008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2523
2524 * configure: Regenerate.
2525 * include/Makefile.in: Regenerate.
2526 * testsuite/Makefile.in: Regenerate.
2527
25282008-06-07 Joseph Myers <joseph@codesourcery.com>
2529
2530 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2531 powerpc-*-beos*): Remove.
2532 * configure: Regenerate.
2533
25342008-05-09 Julian Brown <julian@codesourcery.com>
2535
2536 * Makefile.am (LTLDFLAGS): New.
2537 (libffi_la_LDFLAGS): Use above.
2538 * Makefile.in: Regenerate.
2539
25402008-04-18 Paolo Bonzini <bonzini@gnu.org>
2541
2542 PR bootstrap/35457
2543 * aclocal.m4: Regenerate.
2544 * configure: Regenerate.
2545
25462008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
2547
2548 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2549 * src/sh64/sysv.S: Likewise.
2550
25512008-03-26 Daniel Jacobowitz <dan@debian.org>
2552
2553 * src/arm/sysv.S: Fix ARM comment marker.
2554
25552008-03-26 Jakub Jelinek <jakub@redhat.com>
2556
2557 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2558 * src/s390/sysv.S: Likewise.
2559 * src/powerpc/ppc_closure.S: Likewise.
2560 * src/powerpc/sysv.S: Likewise.
2561 * src/x86/unix64.S: Likewise.
2562 * src/x86/sysv.S: Likewise.
2563 * src/sparc/v8.S: Likewise.
2564 * src/sparc/v9.S: Likewise.
2565 * src/m68k/sysv.S: Likewise.
2566 * src/arm/sysv.S: Likewise.
2567
25682008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2569
2570 * aclocal.m4: Regenerate.
2571 * configure: Likewise.
2572 * Makefile.in: Likewise.
2573 * include/Makefile.in: Likewise.
2574 * testsuite/Makefile.in: Likewise.
2575
25762008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
2577 Andreas Tobler <a.tobler@schweiz.org>
2578
2579 * configure.ac: Add amd64-*-freebsd* target.
2580 * configure: Regenerate.
2581
25822008-01-30 H.J. Lu <hongjiu.lu@intel.com>
2583
2584 PR libffi/34612
2585 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2586 returning struct.
2587
2588 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2589 tests.
2590
25912008-01-24 David Edelsohn <edelsohn@gnu.org>
2592
2593 * configure: Regenerate.
2594
25952008-01-06 Andreas Tobler <a.tobler@schweiz.org>
2596
2597 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2598
25992008-01-05 Andreas Tobler <a.tobler@schweiz.org>
2600
2601 PR testsuite/32843
2602 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2603 signed/unsigned int8/16 for X86_DARWIN.
2604 Updated copyright info.
2605 Handle one and two byte structs with special cif->flags.
2606 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2607 Updated copyright info.
2608 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2609 sysv.S
2610 Remove code to pop args from the stack after call.
2611 Special-case signed/unsigned for int8/16, one and two byte structs.
2612 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2613 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2614 FFI_TYPE_SINT32.
2615 Updated copyright info.
2616
26172007-12-08 David Daney <ddaney@avtrex.com>
2618
Anthony Green0cfe60e2009-12-29 10:06:04 -05002619 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002620 SUBU, add with ADDU and use smaller code sequences.
2621
26222007-12-07 David Daney <ddaney@avtrex.com>
2623
2624 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2625 type.
2626
26272007-12-06 David Daney <ddaney@avtrex.com>
2628
2629 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2630 defined.
2631 (ffi_java_raw): New typedef.
2632 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2633 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2634 ffi_java_raw.
2635 (ffi_java_raw_closure) : Same.
2636 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2637 parameter types.
2638 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2639 FFI_SIZEOF_JAVA_RAW.
2640 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2641 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2642 sizeof(ffi_java_raw) for alignment calculations.
2643 (ffi_java_ptrarray_to_raw): Same.
2644 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -05002645 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002646 (ffi_java_raw_to_rvalue): Same.
2647 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2648 (ffi_java_translate_args): Same.
2649 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2650 parameter types.
2651 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2652
26532007-12-06 David Daney <ddaney@avtrex.com>
2654
Anthony Green0cfe60e2009-12-29 10:06:04 -05002655 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002656 pointer values.
2657
26582007-12-01 Andreas Tobler <a.tobler@schweiz.org>
2659
2660 PR libffi/31937
2661 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2662 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2663 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2664 set the NUM_FPR_ARG_REGISTERS according to.
2665 Add support for potential soft-float support under hard-float
2666 architecture.
2667 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2668 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2669 to the FFI_LINUX_SOFT_FLOAT ABI.
2670 (ffi_prep_cif_machdep): Likewise.
2671 (ffi_closure_helper_SYSV): Likewise.
2672 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2673 on archs where __NO_FPRS__ is true.
2674 Add FFI_TYPE_UINT128 support.
2675 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2676 Adjust copyright notice.
2677
26782007-11-25 Andreas Tobler <a.tobler@schweiz.org>
2679
2680 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2681 * include/ffi_common.h: ... here.
2682 Update copyright.
2683
26842007-11-17 Andreas Tobler <a.tobler@schweiz.org>
2685
2686 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2687 * src/powerpc/linux64.S: Likewise.
2688 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2689 * testsuite/libffi.call/return_ldl.c: New test.
2690
26912007-09-04 <aph@redhat.com>
2692
2693 * src/arm/sysv.S (UNWIND): New.
2694 (Whole file): Conditionally compile unwinder directives.
2695 * src/arm/sysv.S: Add unwinder directives.
2696
2697 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2698 Only treat r0 as a struct address if we're actually returning a
2699 struct by address.
2700 Only copy the bytes that are actually within a struct.
2701 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2702 is returned in r0, not passed by address.
2703 (ffi_call): Allocate a word-sized temporary for the case where
2704 a composite is returned in r0.
2705 (ffi_prep_incoming_args_SYSV): Align as necessary.
2706
27072007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
2708
Anthony Green0cfe60e2009-12-29 10:06:04 -05002709 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002710 directly using the sys_cacheflush syscall.
2711
27122007-07-27 Andrew Haley <aph@redhat.com>
2713
2714 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2715
27162007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
2717
2718 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2719 * configure.ac: Likewise.
2720 * Makefile.in: Regenerate.
2721 * include/Makefile.in: Likewise.
2722 * testsuite/Makefile.in: Likewise.
2723 * configure: Likewise.
2724
27252007-08-24 David Daney <ddaney@avtrex.com>
2726
2727 * testsuite/libffi.call/return_sl.c: New test.
2728
27292007-08-10 David Daney <ddaney@avtrex.com>
2730
2731 * testsuite/libffi.call/cls_multi_ushort.c,
2732 testsuite/libffi.call/cls_align_uint16.c,
2733 testsuite/libffi.call/nested_struct1.c,
2734 testsuite/libffi.call/nested_struct3.c,
2735 testsuite/libffi.call/cls_7_1_byte.c,
2736 testsuite/libffi.call/nested_struct5.c,
2737 testsuite/libffi.call/cls_double.c,
2738 testsuite/libffi.call/nested_struct7.c,
2739 testsuite/libffi.call/cls_sint.c,
2740 testsuite/libffi.call/nested_struct9.c,
2741 testsuite/libffi.call/cls_20byte1.c,
2742 testsuite/libffi.call/cls_multi_sshortchar.c,
2743 testsuite/libffi.call/cls_align_sint64.c,
2744 testsuite/libffi.call/cls_3byte2.c,
2745 testsuite/libffi.call/cls_multi_schar.c,
2746 testsuite/libffi.call/cls_multi_uchar.c,
2747 testsuite/libffi.call/cls_19byte.c,
2748 testsuite/libffi.call/cls_9byte1.c,
2749 testsuite/libffi.call/cls_align_float.c,
2750 testsuite/libffi.call/closure_fn1.c,
2751 testsuite/libffi.call/problem1.c,
2752 testsuite/libffi.call/closure_fn3.c,
2753 testsuite/libffi.call/cls_sshort.c,
2754 testsuite/libffi.call/closure_fn5.c,
2755 testsuite/libffi.call/cls_align_double.c,
2756 testsuite/libffi.call/nested_struct.c,
2757 testsuite/libffi.call/cls_2byte.c,
2758 testsuite/libffi.call/nested_struct10.c,
2759 testsuite/libffi.call/cls_4byte.c,
2760 testsuite/libffi.call/cls_6byte.c,
2761 testsuite/libffi.call/cls_8byte.c,
2762 testsuite/libffi.call/cls_multi_sshort.c,
2763 testsuite/libffi.call/cls_align_sint16.c,
2764 testsuite/libffi.call/cls_align_uint32.c,
2765 testsuite/libffi.call/cls_20byte.c,
2766 testsuite/libffi.call/cls_float.c,
2767 testsuite/libffi.call/nested_struct2.c,
2768 testsuite/libffi.call/cls_5_1_byte.c,
2769 testsuite/libffi.call/nested_struct4.c,
2770 testsuite/libffi.call/cls_24byte.c,
2771 testsuite/libffi.call/nested_struct6.c,
2772 testsuite/libffi.call/cls_64byte.c,
2773 testsuite/libffi.call/nested_struct8.c,
2774 testsuite/libffi.call/cls_uint.c,
2775 testsuite/libffi.call/cls_multi_ushortchar.c,
2776 testsuite/libffi.call/cls_schar.c,
2777 testsuite/libffi.call/cls_uchar.c,
2778 testsuite/libffi.call/cls_align_uint64.c,
2779 testsuite/libffi.call/cls_ulonglong.c,
2780 testsuite/libffi.call/cls_align_longdouble.c,
2781 testsuite/libffi.call/cls_1_1byte.c,
2782 testsuite/libffi.call/cls_12byte.c,
2783 testsuite/libffi.call/cls_3_1byte.c,
2784 testsuite/libffi.call/cls_3byte1.c,
2785 testsuite/libffi.call/cls_4_1byte.c,
2786 testsuite/libffi.call/cls_6_1_byte.c,
2787 testsuite/libffi.call/cls_16byte.c,
2788 testsuite/libffi.call/cls_18byte.c,
2789 testsuite/libffi.call/closure_fn0.c,
2790 testsuite/libffi.call/cls_9byte2.c,
2791 testsuite/libffi.call/closure_fn2.c,
2792 testsuite/libffi.call/closure_fn4.c,
2793 testsuite/libffi.call/cls_ushort.c,
2794 testsuite/libffi.call/closure_fn6.c,
2795 testsuite/libffi.call/cls_5byte.c,
2796 testsuite/libffi.call/cls_align_pointer.c,
2797 testsuite/libffi.call/cls_7byte.c,
2798 testsuite/libffi.call/cls_align_sint32.c,
2799 testsuite/libffi.special/unwindtest_ffi_call.cc,
2800 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2801
28022007-08-10 David Daney <ddaney@avtrex.com>
2803
2804 PR libffi/28313
2805 * configure.ac: Don't treat mips64 as a special case.
2806 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2807 * configure: Regenerate
2808 * Makefile.in: Ditto.
2809 * fficonfig.h.in: Ditto.
2810 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2811 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2812 (FFI_DEFAULT_ABI): Set for n64 case.
2813 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2814 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2815 (ffi_closure_N32): New function.
2816 (.eh_frame): New section
2817 * src/mips/o32.S: Clean up comments.
2818 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2819 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2820 _MIPS_SIM == _ABIN32 throughout.
2821 (FFI_MIPS_STOP_HERE): New, use in place of
2822 ffi_stop_here.
2823 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2824 to support n32/n64 ABIs.
2825 (calc_n32_struct_flags): Rewrite.
2826 (calc_n32_return_struct_flags): Remove unused variable. Reverse
2827 position of flag bits.
2828 (ffi_prep_cif_machdep): Rewrite n32 portion.
2829 (ffi_call): Enable for n64. Add special handling for small structure
2830 return values.
2831 (ffi_prep_closure_loc): Add n32 and n64 support.
2832 (ffi_closure_mips_inner_O32): Add cast to silence warning.
2833 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2834
28352007-08-08 David Daney <ddaney@avtrex.com>
2836
2837 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2838 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2839 specifiers.
2840 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2841 * testsuite/libffi.call/cls_sint.c (main): Ditto.
2842 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2843 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2844 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2845 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2846 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2847 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2848 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2849 * testsuite/libffi.call/return_fl3.c (main): Ditto.
2850 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2851 * testsuite/libffi.call/nested_struct.c (main): Ditto.
2852 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2853 * testsuite/libffi.call/return_ll1.c (main): Ditto.
2854 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2855 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2856 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2857 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2858 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2859 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2860 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2861 * testsuite/libffi.call/cls_uint.c (main): Ditto.
2862 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2863 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2864 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2865 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2866 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2867 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2868 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2869 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2870 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2871
28722007-08-07 Andrew Haley <aph@redhat.com>
2873
2874 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2875 checkin.
2876
28772007-08-06 Andrew Haley <aph@redhat.com>
2878
2879 PR testsuite/32843
2880 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2881 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2882 FFI_TYPE_SINT32.
2883
28842007-08-02 David Daney <ddaney@avtrex.com>
2885
2886 * testsuite/libffi.call/return_ul.c (main): Define return type as
2887 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002888
Anthony Greenc6dddbd2009-10-04 08:11:33 -040028892007-07-30 Andrew Haley <aph@redhat.com>
2890
2891 PR testsuite/32843
2892 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
2893 signed/unsigned int8/16.
2894 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
2895 Use a jump table.
2896 Remove code to pop args from the stack after call.
2897 Special-case signed/unsigned int8/16.
2898 * testsuite/libffi.call/return_sc.c (main): Revert.
2899
29002007-07-26 Richard Guenther <rguenther@suse.de>
2901
2902 PR testsuite/32843
2903 * testsuite/libffi.call/return_sc.c (main): Verify call
2904 result as signed char, not ffi_arg.
2905
29062007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2907
2908 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
2909 * configure: Regenerate.
2910
29112007-07-11 David Daney <ddaney@avtrex.com>
2912
2913 * src/mips/ffi.c: Don't include sys/cachectl.h.
2914 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
2915 cacheflush().
2916
29172007-05-18 Aurelien Jarno <aurelien@aurel32.net>
2918
2919 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
2920 from (ffi_prep_closure): ... this.
2921 (FFI_INIT_TRAMPOLINE): Adjust.
2922
29232005-12-31 Phil Blundell <pb@reciva.com>
2924
Anthony Green0cfe60e2009-12-29 10:06:04 -05002925 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
2926 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002927 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
2928 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
2929 (FFI_CLOSURES): Enable closure support.
2930
29312007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
2932
Anthony Green0cfe60e2009-12-29 10:06:04 -05002933 * testsuite/libffi.call/cls_multi_ushort.c,
2934 testsuite/libffi.call/cls_align_uint16.c,
2935 testsuite/libffi.call/nested_struct1.c,
2936 testsuite/libffi.call/nested_struct3.c,
2937 testsuite/libffi.call/cls_7_1_byte.c,
2938 testsuite/libffi.call/cls_double.c,
2939 testsuite/libffi.call/nested_struct5.c,
2940 testsuite/libffi.call/nested_struct7.c,
2941 testsuite/libffi.call/cls_sint.c,
2942 testsuite/libffi.call/nested_struct9.c,
2943 testsuite/libffi.call/cls_20byte1.c,
2944 testsuite/libffi.call/cls_multi_sshortchar.c,
2945 testsuite/libffi.call/cls_align_sint64.c,
2946 testsuite/libffi.call/cls_3byte2.c,
2947 testsuite/libffi.call/cls_multi_schar.c,
2948 testsuite/libffi.call/cls_multi_uchar.c,
2949 testsuite/libffi.call/cls_19byte.c,
2950 testsuite/libffi.call/cls_9byte1.c,
2951 testsuite/libffi.call/cls_align_float.c,
2952 testsuite/libffi.call/closure_fn1.c,
2953 testsuite/libffi.call/problem1.c,
2954 testsuite/libffi.call/closure_fn3.c,
2955 testsuite/libffi.call/cls_sshort.c,
2956 testsuite/libffi.call/closure_fn5.c,
2957 testsuite/libffi.call/cls_align_double.c,
2958 testsuite/libffi.call/cls_2byte.c,
2959 testsuite/libffi.call/nested_struct.c,
2960 testsuite/libffi.call/nested_struct10.c,
2961 testsuite/libffi.call/cls_4byte.c,
2962 testsuite/libffi.call/cls_6byte.c,
2963 testsuite/libffi.call/cls_8byte.c,
2964 testsuite/libffi.call/cls_multi_sshort.c,
2965 testsuite/libffi.call/cls_align_uint32.c,
2966 testsuite/libffi.call/cls_align_sint16.c,
2967 testsuite/libffi.call/cls_float.c,
2968 testsuite/libffi.call/cls_20byte.c,
2969 testsuite/libffi.call/cls_5_1_byte.c,
2970 testsuite/libffi.call/nested_struct2.c,
2971 testsuite/libffi.call/cls_24byte.c,
2972 testsuite/libffi.call/nested_struct4.c,
2973 testsuite/libffi.call/nested_struct6.c,
2974 testsuite/libffi.call/cls_64byte.c,
2975 testsuite/libffi.call/nested_struct8.c,
2976 testsuite/libffi.call/cls_uint.c,
2977 testsuite/libffi.call/cls_multi_ushortchar.c,
2978 testsuite/libffi.call/cls_schar.c,
2979 testsuite/libffi.call/cls_uchar.c,
2980 testsuite/libffi.call/cls_align_uint64.c,
2981 testsuite/libffi.call/cls_ulonglong.c,
2982 testsuite/libffi.call/cls_align_longdouble.c,
2983 testsuite/libffi.call/cls_1_1byte.c,
2984 testsuite/libffi.call/cls_12byte.c,
2985 testsuite/libffi.call/cls_3_1byte.c,
2986 testsuite/libffi.call/cls_3byte1.c,
2987 testsuite/libffi.call/cls_4_1byte.c,
2988 testsuite/libffi.call/cls_6_1_byte.c,
2989 testsuite/libffi.call/cls_16byte.c,
2990 testsuite/libffi.call/cls_18byte.c,
2991 testsuite/libffi.call/closure_fn0.c,
2992 testsuite/libffi.call/cls_9byte2.c,
2993 testsuite/libffi.call/closure_fn2.c,
2994 testsuite/libffi.call/closure_fn4.c,
2995 testsuite/libffi.call/cls_ushort.c,
2996 testsuite/libffi.call/closure_fn6.c,
2997 testsuite/libffi.call/cls_5byte.c,
2998 testsuite/libffi.call/cls_align_pointer.c,
2999 testsuite/libffi.call/cls_7byte.c,
3000 testsuite/libffi.call/cls_align_sint32.c,
3001 testsuite/libffi.special/unwindtest_ffi_call.cc,
3002 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003003
30042007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 * aclocal.m4: Regenerated.
3007
30082007-06-02 Paolo Bonzini <bonzini@gnu.org>
3009
3010 * configure: Regenerate.
3011
30122007-05-23 Steve Ellcey <sje@cup.hp.com>
3013
3014 * Makefile.in: Regenerate.
3015 * configure: Regenerate.
3016 * aclocal.m4: Regenerate.
3017 * include/Makefile.in: Regenerate.
3018 * testsuite/Makefile.in: Regenerate.
3019
30202007-05-10 Roman Zippel <zippel@linux-m68k.org>
3021
3022 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3023 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3024 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3025 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3026 (FFI_CLOSURES): Enable closure support.
3027
30282007-05-10 Roman Zippel <zippel@linux-m68k.org>
3029
3030 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3031 * configure: Regenerate.
3032 * fficonfig.h.in: Regenerate.
3033 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3034 CFI_OFFSET,CFI_DEF_CFA): New macros.
3035 (ffi_call_SYSV): Add callframe annotation.
3036
30372007-05-10 Roman Zippel <zippel@linux-m68k.org>
3038
3039 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3040 numerous test suite failures.
3041 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3042
30432007-04-11 Paolo Bonzini <bonzini@gnu.org>
3044
3045 * Makefile.am (EXTRA_DIST): Bring up to date.
3046 * Makefile.in: Regenerate.
3047 * src/frv/eabi.S: Remove RCS keyword.
3048
30492007-04-06 Richard Henderson <rth@redhat.com>
3050
3051 * configure.ac: Tidy target case.
3052 (HAVE_LONG_DOUBLE): Allow the target to override.
3053 * configure: Regenerate.
3054 * include/ffi.h.in: Don't define ffi_type_foo if
3055 LIBFFI_HIDE_BASIC_TYPES is defined.
3056 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3057 to ffi_type_double.
3058 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3059 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3060 (ffi_type_longdouble): Special case for Alpha. Don't define
3061 if long double == double.
3062
3063 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3064 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3065 (ffi_call, ffi_closure_osf_inner): Likewise.
3066 (ffi_closure_osf_inner): Likewise. Mark hidden.
3067 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3068 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3069 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3070 (load_table): Handle 128-bit long double.
3071
3072 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3073
30742007-04-06 Tom Tromey <tromey@redhat.com>
3075
3076 PR libffi/31491:
3077 * README: Fixed bug in example.
3078
30792007-04-03 Jakub Jelinek <jakub@redhat.com>
3080
3081 * src/closures.c: Include sys/statfs.h.
3082 (_GNU_SOURCE): Define on Linux.
3083 (FFI_MMAP_EXEC_SELINUX): Define.
3084 (selinux_enabled): New variable.
3085 (selinux_enabled_check): New function.
3086 (is_selinux_enabled): Define.
3087 (dlmmap): Use it.
3088
30892007-03-24 Uros Bizjak <ubizjak@gmail.com>
3090
3091 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3092 Use 'volatile float sum' to create sum of floats to avoid false
3093 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003094 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003095
30962007-03-08 Alexandre Oliva <aoliva@redhat.com>
3097
3098 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3099 patch.
3100 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3101
31022007-03-07 Alexandre Oliva <aoliva@redhat.com>
3103
3104 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3105 (ffi_prep_closure_loc): New.
3106 (ffi_prep_raw_closure_loc): New.
3107 (ffi_prep_java_raw_closure_loc): New.
3108 * src/closures.c: New file.
3109 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3110 Replace sflags with exec_offset.
3111 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3112 sub_segment_exec_offset): New macros.
3113 (get_segment_flags, set_segment_flags, check_segment_merge): New
3114 macros.
3115 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3116 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3117 destroy_mspace): Use new macros.
3118 (sys_alloc): Silence warning.
3119 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3120 * Makefile.in: Rebuilt.
3121 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3122 terms of ffi_prep_closure_loc.
3123 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3124 from...
3125 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3126 renamed version.
3127 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3128 adjusted from...
3129 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3130 the renamed version.
3131 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3132 (ffi_prep_closure): ... this.
3133 * src/pa/ffi.c: Likewise.
3134 * src/cris/ffi.c: Likewise. Adjust.
3135 * src/frv/ffi.c: Likewise.
3136 * src/ia64/ffi.c: Likewise.
3137 * src/mips/ffi.c: Likewise.
3138 * src/powerpc/ffi_darwin.c: Likewise.
3139 * src/s390/ffi.c: Likewise.
3140 * src/sh/ffi.c: Likewise.
3141 * src/sh64/ffi.c: Likewise.
3142 * src/sparc/ffi.c: Likewise.
3143 * src/x86/ffi64.c: Likewise.
3144 * src/x86/ffi.c: Likewise.
3145 (FFI_INIT_TRAMPOLINE): Adjust.
3146 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3147 (ffi_prep_raw_closure): ... this.
3148 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3149 (ffi_prep_closure): ... this.
3150 (flush_icache): Adjust.
3151
31522007-03-07 Alexandre Oliva <aoliva@redhat.com>
3153
3154 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3155 Lea's malloc.
3156
31572007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3158
3159 * Makefile.am: Add dummy install-pdf target.
3160 * Makefile.in: Regenerate
3161
31622007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
3163
3164 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3165 ffi_closure_helper_SYSV): Add long double handling.
3166
31672007-02-02 Jakub Jelinek <jakub@redhat.com>
3168
3169 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3170 immediately after bctrl instruction.
3171
31722007-01-18 Alexandre Oliva <aoliva@redhat.com>
3173
3174 * Makefile.am (all-recursive, install-recursive,
3175 mostlyclean-recursive, clean-recursive, distclean-recursive,
3176 maintainer-clean-recursive): Add missing targets.
3177 * Makefile.in: Rebuilt.
3178
31792006-12-14 Andreas Tobler <a.tobler@schweiz.org>
3180
3181 * configure.ac: Add TARGET for x86_64-*-darwin*.
3182 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3183 for X86_DARWIN.
3184 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3185 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3186 * configure: Regenerate.
3187 * Makefile.in: Regenerate.
3188 * include/Makefile.in: Regenerate.
3189 * testsuite/Makefile.in: Regenerate.
3190 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3191 ffi_call only.
3192
31932006-12-13 Andreas Tobler <a.tobler@schweiz.org>
3194
3195 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3196 Makefile.am.
3197
31982006-10-31 Geoffrey Keating <geoffk@apple.com>
3199
3200 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3201 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3202 Darwin.
3203 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3204 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3205
32062006-10-10 Paolo Bonzini <bonzini@gnu.org>
3207 Sandro Tolaini <tolaini@libero.it>
3208
Anthony Green0cfe60e2009-12-29 10:06:04 -05003209 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003210 conditional.
3211 * configure: Regenerated.
3212 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3213 (EXTRA_DIST): Add src/x86/darwin.S.
3214 * Makefile.in: Regenerated.
3215 * include/Makefile.in: Regenerated.
3216 * testsuite/Makefile.in: Regenerated.
3217
3218 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3219 X86_WIN32, and additionally align stack to 16 bytes.
3220 * src/x86/darwin.S: New, based on sysv.S.
3221 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3222
32232006-09-12 David Daney <ddaney@avtrex.com>
3224
3225 PR libffi/23935
3226 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3227 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3228 * aclocal.m4: Regenerated for automake 1.9.6.
3229 * Makefile.in: Regenerated.
3230 * include/Makefile.in: Regenerated.
3231 * testsuite/Makefile.in: Regenerated.
3232
32332006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3234
3235 * include/ffi_common.h (struct): Revert accidental commit.
3236
32372006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3238
3239 * include/ffi_common.h: Remove lint directives.
3240 * include/ffi.h.in: Likewise.
3241
32422006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
3243
3244 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3245 for 32-bit architectures.
3246 * testsuite/libffi.call/return_ul.c: New test case.
3247
32482006-07-19 David Daney <ddaney@avtrex.com>
3249
3250 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3251 xfail remains for mips64.
3252
32532006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3254
3255 * Makefile.am: Add install-html target. Add install-html to .PHONY
3256 * Makefile.in: Regenerate.
3257 * aclocal.m4: Regenerate.
3258 * include/Makefile.in: Regenerate.
3259 * testsuite/Makefile.in: Regenerate.
3260
32612006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3262
3263 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3264 stack slot.
3265
32662006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
3267
3268 * README: Remove notice about 'Crazy Comments'.
3269 * src/debug.c: Remove lint directives. Cleanup white spaces.
3270 * src/java_raw_api.c: Likewise.
3271 * src/prep_cif.c: Likewise.
3272 * src/raw_api.c: Likewise.
3273 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3274 to the testsuite.
3275 * src/arm/ffi.c: Remove lint directives.
3276 * src/m32r/ffi.c: Likewise.
3277 * src/pa/ffi.c: Likewise.
3278 * src/powerpc/ffi.c: Likewise.
3279 * src/powerpc/ffi_darwin.c: Likewise.
3280 * src/sh/ffi.c: Likewise.
3281 * src/sh64/ffi.c: Likewise.
3282 * src/x86/ffi.c: Likewise.
3283 * testsuite/libffi.call/float2.c: Likewise.
3284 * testsuite/libffi.call/promotion.c: Likewise.
3285 * testsuite/libffi.call/struct1.c: Likewise.
3286
32872006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
3288
3289 * src/pa/hpux32.S: Correct unwind offset calculation for
3290 ffi_closure_pa32.
3291 * src/pa/linux.S: Likewise.
3292
32932006-04-12 James E Wilson <wilson@specifix.com>
3294
3295 PR libgcj/26483
3296 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3297 (hfa_type_load): Call stf_spill.
3298 (hfa_type_store): Call ldf_fill.
3299 (ffi_call): Adjust calls to above routines. Add local temps for
3300 macro result.
3301
33022006-04-10 Matthias Klose <doko@debian.org>
3303
3304 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3305 directory names containing underscores.
3306
33072006-04-07 James E Wilson <wilson@specifix.com>
3308
3309 * testsuite/libffi.call/float4.c: New testcase.
3310
33112006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3312 Andreas Tobler <a.tobler@schweiz.ch>
3313
3314 * Makefile.am: Add PA_HPUX port.
3315 * Makefile.in: Regenerate.
3316 * include/Makefile.in: Likewise.
3317 * testsuite/Makefile.in: Likewise.
3318 * configure.ac: Add PA_HPUX rules.
3319 * configure: Regenerate.
3320 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3321 Add PA_HPUX and PA64_HPUX.
3322 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3323 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3324 (FFI_TYPE_SMALL_STRUCT2): Define.
3325 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3326 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3327 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3328 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3329 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3330 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3331 * src/pa/ffi.c (ROUND_DOWN): Delete.
3332 (fldw, fstw, fldd, fstd): Use '__asm__'.
3333 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3334 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3335 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3336 Simplify incrementing of stack slot variable. Change type of local
3337 'n' to unsigned int.
3338 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3339 double on PA_HPUX.
3340 (ffi_prep_cif_machdep): Likewise.
3341 (ffi_call): Likewise.
3342 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3343 return type to ffi_status. Simplify incrementing of stack slot
3344 variable. Only copy floating point argument registers when PA_LINUX
3345 is true. Reformat debug statement.
3346 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3347 FFI_TYPE_SMALL_STRUCT8.
3348 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3349 declaration.
3350 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3351 Add nops to cache flush. Add trampoline for PA_HPUX.
3352 * src/pa/hpux32.S: New file.
3353 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3354 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3355 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3356 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3357 argument type checks so that common argument types appear first.
3358 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3359 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3360
33612006-03-24 Alan Modra <amodra@bigpond.net.au>
3362
3363 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3364 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3365 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3366 FFI_TYPE_LONGDOUBLE.
3367 (ffi_prep_args64): Assert using IBM extended double.
3368 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3369 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3370 (ffi_call): Handle FFI_LINUX.
3371 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3372 gpr3 return pointer as for struct return. Handle FFI_LINUX
3373 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3374 unnecessarily.
3375 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3376 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3377 Don't use r6 as pointer to results, instead use sp offset. Don't
3378 make a special call to load lr with case table address, instead
3379 use offset from previous call.
3380 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3381 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3382 return.
3383
33842006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
3385
3386 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3387 passed with FP registers correctly.
3388 (ffi_closure_helper_SYSV): Likewise.
3389 * src/sh64/sysv.S: Likewise.
3390
33912006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
3392
3393 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3394 args and userdata unused.
3395 (closure_test_fn1): Mark cif and userdata unused.
3396 (main): Remove unused res.
3397
33982006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
3399
3400 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3401 -O2, -O3, -Os and the warning flags -W -Wall.
3402 * testsuite/libffi.special/special.exp: Likewise.
3403 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3404 unused parameter unused for gcc or else do nothing.
3405 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3406 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3407 and userdata unused.
3408 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3409 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3410 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3411 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3412 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3413 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3414 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3415 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3416 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3417 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3418 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3419 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3420 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3421 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3422 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3423 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3424 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3425 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3426 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3427 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3428 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3429 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3430 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3431 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3432 Likewise.
3433 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3434 Likewise.
3435 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3436 Likewise.
3437 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3438 void* to avoid compiler warning.
3439 (main): Likewise.
3440 (cls_struct_align_gn): Mark cif and userdata unused.
3441 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3442 Likewise.
3443 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3444 Likewise.
3445 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3446 Likewise.
3447 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3448 Likewise.
3449 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3450 Likewise.
3451 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3452 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3453 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3454 data unused.
3455 (main): Cast res_call to silence gcc.
3456 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3457 data unused.
3458 (main): Cast res_call to silence gcc.
3459 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3460 and data unused.
3461 (main): Cast res_call to silence gcc.
3462 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3463 data unused.
3464 (main): Cast res_call to silence gcc.
3465 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3466 data unused.
3467 (main): Cast res_call to silence gcc.
3468 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3469 and data unused.
3470 (main): Cast res_call to silence gcc.
3471 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3472 userdata unused.
3473 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3474 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3475 userdata unused.
3476 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3477 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3478 userdata unused.
3479 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3480 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3481 userdata unused.
3482 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3483 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3484 userdata unused.
3485 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3486 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3487 and userdata unused.
3488 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3489 userdata unused.
3490 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3491 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3492 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3493 Cleanup white spaces.
3494 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3495 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3496 cif and userdata unused.
3497 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3498 Likewise.
3499 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3500 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3501 formatters to silence gcc.
3502 (B_gn): Mark cif and userdata unused.
3503 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3504 unused.
3505 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3506 (B_gn): Mark cif and userdata unused.
3507 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3508 unused.
3509 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3510 (B_gn): Mark cif and userdata unused.
3511 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3512 unused.
3513 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3514 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3515 * testsuite/libffi.call/problem1.c (stub): Likewise.
3516 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3517 gcc.
3518 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3519 in the last commit for this test case in the test case itself.
3520 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3521 unused.
3522 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3523 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3524 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3525 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3526 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3527 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3528
35292006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
3530
3531 * src/sh/sysv.S: Fix register numbers in the FDE for
3532 ffi_closure_SYSV.
3533
35342006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
3535
3536 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3537 declaration to avoid a false negative on ix86. See PR323.
3538
35392006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3540
3541 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3542 and cast integer to void * if needed. Update the pointer to
3543 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003544
Anthony Greenc6dddbd2009-10-04 08:11:33 -040035452006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
3546
3547 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3548 is fixed.
3549 * testsuite/libffi.call/nested_struct4.c: Likewise.
3550
35512006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
3552
3553 * testsuite/libffi.call/return_dbl.c: New test case.
3554 * testsuite/libffi.call/return_dbl1.c: Likewise.
3555 * testsuite/libffi.call/return_dbl2.c: Likewise.
3556 * testsuite/libffi.call/return_fl.c: Likewise.
3557 * testsuite/libffi.call/return_fl1.c: Likewise.
3558 * testsuite/libffi.call/return_fl2.c: Likewise.
3559 * testsuite/libffi.call/return_fl3.c: Likewise.
3560 * testsuite/libffi.call/closure_fn6.c: Likewise.
3561
3562 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3563 definition.
3564 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3565 here to be used by other test cases too.
3566
3567 * testsuite/libffi.call/nested_struct10.c: New test case.
3568 * testsuite/libffi.call/nested_struct9.c: Likewise.
3569 * testsuite/libffi.call/nested_struct8.c: Likewise.
3570 * testsuite/libffi.call/nested_struct7.c: Likewise.
3571 * testsuite/libffi.call/nested_struct6.c: Likewise.
3572 * testsuite/libffi.call/nested_struct5.c: Likewise.
3573 * testsuite/libffi.call/nested_struct4.c: Likewise.
3574
35752006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3576
3577 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3578 * configure: Rebuilt.
3579
35802006-01-18 Jakub Jelinek <jakub@redhat.com>
3581
3582 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3583 instead do the shifting inline.
3584 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3585 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3586 and 8 byte structs, for the remaining struct sizes don't call
3587 __lshrdi3, instead do the shifting inline.
3588
35892005-12-07 Thiemo Seufer <ths@networkno.de>
3590
3591 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3592 missing parentheses.
3593 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3594 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3595 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3596 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3597 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3598 FA_0_0_OFF2.
3599 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3600 endianness bugs.
3601 (ffi_prep_closure): Improve trampoline instruction scheduling.
3602 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3603
36042005-12-03 Alan Modra <amodra@bigpond.net.au>
3605
3606 * src/powerpc/ffi.c: Formatting.
3607 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3608 (ffi_prep_args64): Likewise.
3609
36102005-09-30 Geoffrey Keating <geoffk@apple.com>
3611
3612 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3613 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3614
36152005-09-26 Tom Tromey <tromey@redhat.com>
3616
3617 * testsuite/libffi.call/float1.c (value_type): New typedef.
3618 (CANARY): New define.
3619 (main): Check for result buffer overflow.
3620 * src/powerpc/linux64.S: Handle linux64 long double returns.
3621 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3622 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3623
36242005-08-25 Alan Modra <amodra@bigpond.net.au>
3625
3626 PR target/23404
3627 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3628 homed fp args.
3629 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3630
36312005-08-11 Jakub Jelinek <jakub@redhat.com>
3632
3633 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3634 (AH_BOTTOM): Add FFI_HIDDEN definition.
3635 * configure: Rebuilt.
3636 * fficonfig.h.in: Rebuilt.
3637 * src/powerpc/ffi.c (hidden): Remove.
3638 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3639 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3640 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3641 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3642 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3643 add FFI_HIDDEN to its prototype.
3644 (ffi_closure_SYSV_inner): New.
3645 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3646 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3647
36482005-08-10 Alfred M. Szmidt <ams@gnu.org>
3649
3650 PR libffi/21819:
3651 * configure: Rebuilt.
3652 * configure.ac: Handle i*86-*-gnu*.
3653
36542005-08-09 Jakub Jelinek <jakub@redhat.com>
3655
3656 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3657 DW_CFA_offset_extended_sf rather than
3658 DW_CFA_GNU_negative_offset_extended.
3659 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3660
36612005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3662
3663 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3664 on sh3.
3665 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3666 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3667 partially on register.
3668 (ffi_closure_helper_SYSV): Likewise.
3669 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3670
36712005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3672
3673 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3674 Remove empty line.
3675 * src/sh64/ffi.c (simple_type): Remove.
3676 (return_type): Handle small structures correctly.
3677 (ffi_prep_args): Likewise.
3678 (ffi_call): Likewise.
3679 (ffi_closure_helper_SYSV): Likewise.
3680 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3681 Emit position independent code if PIC and remove wrong datalabel
3682 prefixes from EH data.
3683
36842005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
3685
3686 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3687 * Makefile.in: Regenerate.
3688 * include/Makefile.in: Likewise.
3689 * testsuite/Makefile.in: Likewise.
3690 * configure.ac: Add POWERPC_FREEBSD rules.
3691 * configure: Regenerate.
3692 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3693 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3694 * src/powerpc/ffi.c: Add flags to handle small structure returns
3695 in ffi_call_SYSV.
3696 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3697 Aka FFI_SYSV.
3698 (ffi_closure_helper_SYSV): Likewise.
3699 * src/powerpc/ppc_closure.S: Add return types for small structures.
3700 * src/powerpc/sysv.S: Add bits to handle small structures for
3701 final SYSV 4 ABI.
3702
37032005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3704
3705 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3706 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3707 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3708
37092005-07-05 Randolph Chung <tausq@debian.org>
3710
3711 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3712 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3713 structures. Kill compilation warnings.
3714 (ffi_closure_inner_LINUX): Print return values as hex in debug
3715 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3716 Properly handle 5-7 byte structure returns.
3717 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3718 (FFI_TYPE_SMALL_STRUCT2): Remove.
3719 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3720 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3721 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3722 (checksmst1, checksmst2): Remove.
3723 (checksmst3): Optimize handling of 3-byte struct returns.
3724 (checksmst567): Properly handle 5-7 byte struct returns.
3725
37262005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3727
3728 PR libgcj/21943
3729 * src/mips/n32.S: Enforce PIC code.
3730 * src/mips/o32.S: Likewise.
3731
37322005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3733
3734 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3735 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003736
Anthony Greenc6dddbd2009-10-04 08:11:33 -040037372005-06-01 Alan Modra <amodra@bigpond.net.au>
3738
3739 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3740 to call ffi_closure_helper_SYSV. Append @local instead.
3741 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3742
37432005-05-17 Kelley Cook <kcook@gcc.gnu.org>
3744
3745 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3746 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3747 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3748 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3749 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003750
Anthony Greenc6dddbd2009-10-04 08:11:33 -040037512005-05-09 Mike Stump <mrs@apple.com>
3752
3753 * configure: Regenerate.
3754
37552005-05-08 Richard Henderson <rth@redhat.com>
3756
3757 PR libffi/21285
3758 * src/alpha/osf.S: Update unwind into to match code.
3759
37602005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
3761 Richard Henderson <rth@redhat.com>
3762
3763 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3764 bit 11 of flags.
3765 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3766 (ffi_prep_closure): Set carry bit if sse-used flag set.
3767 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3768 Only load sse registers if ssecount non-zero.
3769 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3770
37712005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3772
3773 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3774 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3775 * configure: Regenerate.
3776
37772005-04-20 Hans-Peter Nilsson <hp@axis.com>
3778
3779 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3780 have Tcl8.3-compatible intermediate variable.
3781
Anthony Green0cfe60e2009-12-29 10:06:04 -050037822005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003783 Hans-Peter Nilsson <hp@axis.com>
3784
3785 * Makefile.am: Add CRIS support.
3786 * configure.ac: Likewise.
3787 * Makefile.in, configure, testsuite/Makefile.in,
3788 include/Makefile.in: Regenerate.
3789 * src/cris: New directory.
3790 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3791 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3792
3793 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3794 \r?\n in output tests.
3795
37962005-04-12 Mike Stump <mrs@apple.com>
3797
3798 * configure: Regenerate.
3799
38002005-03-30 Hans Boehm <Hans.Boehm@hp.com>
3801
3802 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003803
Anthony Greenc6dddbd2009-10-04 08:11:33 -040038042005-03-30 Steve Ellcey <sje@cup.hp.com>
3805
3806 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3807 (ffi_sarg) Ditto.
3808 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3809 to 64 bits in ILP32 mode.
3810 Load 64 bits even for short data.
3811
38122005-03-23 Mike Stump <mrs@apple.com>
3813
3814 * src/powerpc/darwin.S: Update for -m64 multilib.
3815 * src/powerpc/darwin_closure.S: Likewise.
3816
38172005-03-21 Zack Weinberg <zack@codesourcery.com>
3818
3819 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3820 Do not set tool_include_dir.
3821 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3822 Regenerate.
3823 * include/Makefile.am: Set gcc_version and toollibffidir.
3824 * include/Makefile.in: Regenerate.
3825
38262005-02-22 Andrew Haley <aph@redhat.com>
3827
3828 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3829 odd-numbered register pairs for 64-bit integer types.
3830
38312005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
3832
3833 PR libffi/20104
3834 * testsuite/libffi.call/return_ll1.c: New test case.
3835
38362005-02-11 Janis Johnson <janis187@us.ibm.com>
3837
3838 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3839 * testsuite/libffi.call/float.c: Ditto.
3840 * testsuite/libffi.call/float2.c: Ditto.
3841 * testsuite/libffi.call/float3.c: Ditto.
3842
38432005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
3844
3845 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3846
38472005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3848
3849 * testsuite/libffi.special/special.exp (cxx_options): Add
3850 -shared-libgcc.
3851
38522004-12-31 Richard Henderson <rth@redhat.com>
3853
3854 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3855 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
3856 offset parameters with a type parameter; deduce size and structure
3857 alignment. Update all users.
3858
38592004-12-31 Richard Henderson <rth@redhat.com>
3860
3861 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3862 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
3863 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
3864 into ffi_prep_closure.
3865 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3866 from scratch.
3867
38682004-12-27 Richard Henderson <rth@redhat.com>
3869
3870 * src/x86/unix64.S: Fix typo in unwind info.
3871
38722004-12-25 Richard Henderson <rth@redhat.com>
3873
3874 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3875 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3876 (merge_classes): Check for it.
3877 (SSE_CLASS_P): New.
3878 (classify_argument): Pass byte_offset by value; perform all updates
3879 inside struct case.
3880 (examine_argument): Add classes argument; handle
3881 X86_64_COMPLEX_X87_CLASS.
3882 (ffi_prep_args): Merge into ...
3883 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
3884 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3885 (ffi_fill_return_value): Remove.
3886 (ffi_prep_closure): Remove dead assert.
3887 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
3888 Rewrite to use struct register_args instead of va_list. Create
3889 flags for handling structure returns.
3890 * src/x86/unix64.S: Remove dead strings.
3891 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
3892 stack frame with ffi_call. Handle structure returns properly.
3893 (float2sse, floatfloat2sse, double2sse): Remove.
3894 (sse2float, sse2double, sse2floatfloat): Remove.
3895 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
3896 to handle structure returns properly.
3897
38982004-12-08 David Edelsohn <edelsohn@gnu.org>
3899
3900 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
3901 PICFLAG.
3902 * Makefile.in: Regenerated.
3903
39042004-12-02 Richard Sandiford <rsandifo@redhat.com>
3905
3906 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
3907 * configure, aclocal.m4, Makefile.in: Regenerate.
3908 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
3909
39102004-11-29 Kelley Cook <kcook@gcc.gnu.org>
3911
3912 * configure: Regenerate for libtool change.
3913
39142004-11-25 Kelley Cook <kcook@gcc.gnu.org>
3915
3916 * configure: Regenerate for libtool reversion.
3917
39182004-11-24 Kelley Cook <kcook@gcc.gnu.org>
3919
3920 * configure: Regenerate for libtool change.
3921
39222004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3923
3924 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
3925
39262004-11-23 Richard Sandiford <rsandifo@redhat.com>
3927
3928 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
3929 of jal. Use an absolute encoding for the frame information.
3930
39312004-11-23 Kelley Cook <kcook@gcc.gnu.org>
3932
3933 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
3934 * acinclude.m4: Delete logic for sincludes.
3935 * aclocal.m4, Makefile.in, configure: Regenerate.
3936 * include/Makefile: Likewise.
3937 * testsuite/Makefile: Likewise.
3938
39392004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3940
3941 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
3942 on a 8-byte boundary.
3943 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
3944
39452004-10-27 Richard Earnshaw <rearnsha@arm.com>
3946
3947 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
3948 long long values. Round stack allocation to a multiple of 8 bytes
3949 for ATPCS compatibility.
3950 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
3951 names. Handle returning long long types. Add Thumb and interworking
3952 support. Improve soft-float code.
3953
39542004-10-27 Richard Earnshaw <rearnsha@arm.com>
3955
3956 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
3957 (libffi_exit): New function.
3958 (libffi_init): Build the testglue wrapper if needed.
3959
39602004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3961
3962 PR other/18138
3963 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
3964
39652004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3966
3967 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
3968
39692004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3970
3971 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
3972 * testsuite/libffi.call/float3.c: New test case.
3973
39742004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
3975
3976 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
3977 the function returning a structure pointed with R2.
3978 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
3979 the structure return value if T bit set. Emit position
3980 independent code and EH data if PIC.
3981
39822004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3983
3984 * Makefile.am: Add m32r support.
3985 * configure.ac: Likewise.
3986 * Makefile.in: Regenerate.
3987 * confiugre: Regenerate.
3988 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
3989 (uint64, sint64, double, longdouble)
3990 * src/m32r: New directory.
3991 * src/m32r/ffi.c: New file.
3992 * src/m32r/sysv.S: Likewise.
3993 * src/m32r/ffitarget.h: Likewise.
3994
39952004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
3996
3997 * testsuite/libffi.call/negint.c: New test case.
3998
39992004-09-14 H.J. Lu <hongjiu.lu@intel.com>
4000
4001 PR libgcj/17465
4002 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4003 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4004 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4005 DYLD_LIBRARY_PATH.
4006
40072004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4008
4009 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4010 * testsuite/libffi.call/promotion.c: Likewise.
4011 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4012 whitespaces.
4013 * testsuite/libffi.call/return_sc.c: Likewise.
4014 * testsuite/libffi.call/return_uc.c: Likewise.
4015
40162004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4017
4018 * src/powerpc/darwin.S: Fix comments and identation.
4019 * src/powerpc/darwin_closure.S: Likewise.
4020
40212004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4022
4023 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4024 (ffi_prep_args): Handle longdouble arguments.
4025 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4026 longdouble.
4027 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4028 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4029 values.
4030 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4031 * src/types.c: Defined longdouble size and alignment for darwin.
4032
40332004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4034
4035 * src/powerpc/aix.S: Remove whitespaces.
4036 * src/powerpc/aix_closure.S: Likewise.
4037 * src/powerpc/asm.h: Likewise.
4038 * src/powerpc/ffi.c: Likewise.
4039 * src/powerpc/ffitarget.h: Likewise.
4040 * src/powerpc/linux64.S: Likewise.
4041 * src/powerpc/linux64_closure.S: Likewise.
4042 * src/powerpc/ppc_closure.S: Likewise.
4043 * src/powerpc/sysv.S: Likewise.
4044
40452004-08-30 Anthony Green <green@redhat.com>
4046
4047 * Makefile.am: Add frv support.
4048 * Makefile.in, testsuite/Makefile.in: Rebuilt.
4049 * configure.ac: Read configure.host.
4050 * configure.in: Read configure.host.
4051 * configure.host: New file. frv-elf needs libgloss.
4052 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
4053 alignment. This is needed to frv and shouldn't harm the others.
4054 * include/ffi_common.h (ALIGN_DOWN): New macro.
4055 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4056
40572004-08-24 David Daney <daney@avtrex.com>
4058
4059 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4060 * testsuite/libffi.call/closure_fn1.c: Likewise.
4061 * testsuite/libffi.call/closure_fn2.c Likewise.
4062 * testsuite/libffi.call/closure_fn3.c: Likewise.
4063 * testsuite/libffi.call/closure_fn4.c: Likewise.
4064 * testsuite/libffi.call/closure_fn5.c: Likewise.
4065 * testsuite/libffi.call/cls_18byte.c: Likewise.
4066 * testsuite/libffi.call/cls_19byte.c: Likewise.
4067 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4068 * testsuite/libffi.call/cls_20byte.c: Likewise.
4069 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4070 * testsuite/libffi.call/cls_24byte.c: Likewise.
4071 * testsuite/libffi.call/cls_2byte.c: Likewise.
4072 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4073 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4074 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4075 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4076 * testsuite/libffi.call/cls_4byte.c: Likewise.
4077 * testsuite/libffi.call/cls_64byte.c: Likewise.
4078 * testsuite/libffi.call/cls_6byte.c: Likewise.
4079 * testsuite/libffi.call/cls_7byte.c: Likewise.
4080 * testsuite/libffi.call/cls_8byte.c: Likewise.
4081 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4082 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4083 * testsuite/libffi.call/cls_align_double.c: Likewise.
4084 * testsuite/libffi.call/cls_align_float.c: Likewise.
4085 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4086 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4087 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4088 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4089 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4090 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4091 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4092 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4093 * testsuite/libffi.call/cls_double.c: Likewise.
4094 * testsuite/libffi.call/cls_float.c: Likewise.
4095 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4096 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4097 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4098 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4099 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4100 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4101 * testsuite/libffi.call/cls_schar.c: Likewise.
4102 * testsuite/libffi.call/cls_sint.c: Likewise.
4103 * testsuite/libffi.call/cls_sshort.c: Likewise.
4104 * testsuite/libffi.call/cls_uchar.c: Likewise.
4105 * testsuite/libffi.call/cls_uint.c: Likewise.
4106 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4107 * testsuite/libffi.call/cls_ushort.c: Likewise.
4108 * testsuite/libffi.call/nested_struct.c: Likewise.
4109 * testsuite/libffi.call/nested_struct1.c: Likewise.
4110 * testsuite/libffi.call/nested_struct2.c: Likewise.
4111 * testsuite/libffi.call/nested_struct3.c: Likewise.
4112 * testsuite/libffi.call/problem1.c: Likewise.
4113 * testsuite/libffi.special/unwindtest.cc: Likewise.
4114 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4115 to zero.
4116 * testsuite/libffi.call/cls_16byte.c: Likewise.
4117 * testsuite/libffi.call/cls_5byte.c: Likewise.
4118
41192004-08-23 David Daney <daney@avtrex.com>
4120
4121 PR libgcj/13141
4122 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4123 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4124 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4125 parameters and return types.
4126 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4127 (ffi_prep_closure): Ditto.
4128 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4129 alignment calculations.
4130 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4131 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4132
41332004-08-14 Casey Marshall <csm@gnu.org>
4134
4135 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4136 contain `FFI_TYPE_UINT64' as return type for any 64-bit
4137 integer (O32 ABI only).
4138 (ffi_prep_closure): new function.
4139 (ffi_closure_mips_inner_O32): new function.
4140 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
4141 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4142 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4143 64 bit integers correctly.
4144 (ffi_closure_O32): new function.
4145 Added DWARF-2 unwind info for both functions.
4146
41472004-08-10 Andrew Haley <aph@redhat.com>
4148
4149 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4150
41512004-08-01 Robert Millan <robertmh@gnu.org>
4152
4153 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4154 * configure: Regenerate.
4155
41562004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
4157
4158 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4159 and mmap() explicitly instead of relying on preset autoconf cache
4160 variables.
4161 * aclocal.m4: Regenerate.
4162 * configure: Regenerate.
4163
41642004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4165
4166 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4167 (ffi_check_float_struct): Remove unused prototype.
4168
41692004-06-30 Geoffrey Keating <geoffk@apple.com>
4170
4171 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4172 character on Darwin, use '\n\t' instead.
4173
41742004-06-26 Matthias Klose <doko@debian.org>
4175
4176 * libtool-version: Fix typo in revision/age.
4177
41782004-06-17 Matthias Klose <doko@debian.org>
4179
4180 * libtool-version: New.
4181 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4182 * Makefile.in: Regenerate.
4183
41842004-06-15 Paolo Bonzini <bonzini@gnu.org>
4185
4186 * Makefile.am: Remove useless multilib rules.
4187 * Makefile.in: Regenerate.
4188 * aclocal.m4: Regenerate with automake 1.8.5.
4189 * configure.ac: Remove useless multilib configury.
4190 * configure: Regenerate.
4191
41922004-06-15 Paolo Bonzini <bonzini@gnu.org>
4193
4194 * .cvsignore: New file.
4195
41962004-06-10 Jakub Jelinek <jakub@redhat.com>
4197
4198 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4199 fp_done.
4200 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4201 changed from 8.
4202
42032004-06-06 Sean McNeil <sean@mcneil.com>
4204
4205 * configure.ac: Add x86_64-*-freebsd* support.
4206 * configure: Regenerate.
4207
42082004-04-26 Joe Buck <jbuck@welsh-buck.org>
4209
4210 Bug 15093
4211 * configure.ac: Test for existence of mmap and sys/mman.h before
4212 checking blacklist. Fix suggested by Jim Wilson.
4213 * configure: Regenerate.
4214
42152004-04-26 Matt Austern <austern@apple.com>
4216
4217 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4218 FDE location.
4219 * src/powerpc/darwin_closure.S: Likewise.
4220
42212004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
4222
4223 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4224 error. Reported by Thomas Heller <theller@python.net>.
4225 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4226 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4227
42282004-03-20 Matthias Klose <doko@debian.org>
4229
4230 * src/pa/linux.S: Fix typo.
4231
42322004-03-19 Matthias Klose <doko@debian.org>
4233
4234 * Makefile.am: Update.
4235 * Makefile.in: Regenerate.
4236 * src/pa/ffi.h.in: Remove.
4237 * src/pa/ffitarget.h: New file.
4238
42392004-02-10 Randolph Chung <tausq@debian.org>
4240
4241 * Makefile.am: Add PA support.
4242 * Makefile.in: Regenerate.
4243 * include/Makefile.in: Regenerate.
4244 * configure.ac: Add PA target.
4245 * configure: Regenerate.
4246 * src/pa/ffi.c: New file.
4247 * src/pa/ffi.h.in: Add PA support.
4248 * src/pa/linux.S: New file.
4249 * prep_cif.c: Add PA support.
4250
42512004-03-16 Hosaka Yuji <hos@tamanegi.org>
4252
4253 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4254 double.
4255 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4256 with ecif->cif->flags.
4257 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4258 with cif->flags.
4259 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4260 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4261 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4262 sc_retstruct2b): Add for 1 or 2-bytes struct case.
4263
42642004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4265
4266 * configure.in: Rename file to ...
4267 * configure.ac: ... this.
4268 * fficonfig.h.in: Regenerate.
4269 * Makefile.in: Regenerate.
4270 * include/Makefile.in: Regenerate.
4271 * testsuite/Makefile.in: Regenerate.
4272
42732004-03-12 Matt Austern <austern@apple.com>
4274
4275 * src/powerpc/darwin.S: Fix EH information so it corresponds to
4276 changes in EH format resulting from addition of linkonce support.
4277 * src/powerpc/darwin_closure.S: Likewise.
4278
42792004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
4280 Paolo Bonzini <bonzini@gnu.org>
4281
4282 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4283 Remove VPATH. Remove rules for object files. Remove multilib support.
4284 (AM_CCASFLAGS): Add.
4285 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4286 (AC_PREREQ): Bump version to 2.59.
4287 (AC_INIT): Fill with version info and bug address.
4288 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4289 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4290 De-precious CC so that the right flags are passed down to multilibs.
4291 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4292 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4293 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4294 * configure: Rebuilt.
4295 * aclocal.m4: Likewise.
4296 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4297 * fficonfig.h.in: Likewise.
4298
42992004-03-11 Andreas Schwab <schwab@suse.de>
4300
4301 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4302 arguments from fp registers only for the first 8 parameter slots.
4303 Don't convert a float parameter when passed in memory.
4304
43052004-03-09 Hans-Peter Nilsson <hp@axis.com>
4306
4307 * configure: Regenerate for config/accross.m4 correction.
4308
43092004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
4310
4311 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4312 ecif->cif->bytes to bytes.
4313 (ffi_prep_cif_machdep): Add braces around nested if statement.
4314
43152004-02-09 Alan Modra <amodra@bigpond.net.au>
4316
4317 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4318
4319 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4320 (ffi_closure_helper_LINUX64): Fix typo.
4321 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4322 for powerpc64-*-*.
4323 * testsuite/libffi.call/float.c: Likewise.
4324 * testsuite/libffi.call/float2.c: Likewise.
4325
43262004-02-08 Alan Modra <amodra@bigpond.net.au>
4327
4328 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4329 long double function return and long double arg handling.
4330 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
4331 Use "end_pfr" instead of "nf". Correct long double handling.
4332 Localise "temp".
4333 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4334 return value.
4335 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4336 space for long double return value. Adjust stack frame and offsets.
4337 Load f2 long double return.
4338
43392004-02-07 Alan Modra <amodra@bigpond.net.au>
4340
4341 * src/types.c: Use 16 byte long double for POWERPC64.
4342
43432004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4344
4345 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4346 when the structure return address is passed in %o0.
4347 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4348 (ffi_v9_layout_struct): Align the field following a nested structure
4349 on a word boundary. Use memmove instead of memcpy.
4350 (ffi_call): Update call to ffi_V9_return_struct.
4351 (ffi_prep_closure): Define 'ctx' only for V8.
4352 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4353 and ffi_closure_sparc_inner_v9.
4354 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4355 Always skip the structure return address. For structures and long
4356 doubles, copy the argument directly.
4357 (ffi_closure_sparc_inner_v9): Skip the structure return address only
4358 if required. Shift the maximum floating-point slot accordingly. For
4359 big structures, copy the argument directly; otherwise, left-justify the
4360 argument and call ffi_v9_layout_struct to lay out the structure on
4361 the stack.
4362 * src/sparc/v8.S: Undef STACKFRAME before defining it.
4363 (ffi_closure_v8): Pass the structure return address. Update call to
4364 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
4365 Skip the 'unimp' insn when returning long doubles and structures.
4366 * src/sparc/v9.S: Undef STACKFRAME before defining it.
4367 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
4368 FFI_TYPE_INT handling. Load structures both in integers and
4369 floating-point registers on return.
4370 * README: Update status of the SPARC port.
4371
43722004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
4373
4374 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4375 as of type ffi_arg.
4376 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4377
43782004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
4379
4380 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4381 value as of type ffi_arg, not unsigned int.
4382
43832004-01-21 Michael Ritzert <ritzert@t-online.de>
4384
4385 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4386 of the LHS.
4387
43882004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4389
4390 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4391 Solaris.
4392
43932004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4394
4395 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4396 to void *.
4397
43982003-12-10 Richard Henderson <rth@redhat.com>
4399
4400 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4401 size_t instead of int.
4402
44032003-12-04 Hosaka Yuji <hos@tamanegi.org>
4404
4405 * testsuite/libffi.call/many_win32.c: Include <float.h>.
4406 * testsuite/libffi.call/many_win32.c (main): Replace variable
4407 int i with unsigned long ul.
4408
4409 * testsuite/libffi.call/cls_align_uint64.c: New test case.
4410 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4411 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4412 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4413 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4414 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4415 * testsuite/libffi.call/cls_align_float.c: Likewise.
4416 * testsuite/libffi.call/cls_align_double.c: Likewise.
4417 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4418 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4419
44202003-12-02 Hosaka Yuji <hos@tamanegi.org>
4421
4422 PR other/13221
4423 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4424 Align arguments to 32 bits.
4425
44262003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
4427
4428 PR other/13221
4429 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4430 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4431 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4432 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4433 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4434 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4435
4436 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4437
44382003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4439
4440 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4441 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4442
44432003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
4444
4445 * Makefile.in: Rebuilt.
4446 * configure: Likewise.
4447 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4448 the right type.
4449
44502003-11-21 Andreas Jaeger <aj@suse.de>
4451 Andreas Tobler <a.tobler@schweiz.ch>
4452
4453 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4454 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4455 * Makefile.in: Rebuilt.
4456 * aclocal.m4: Likewise.
4457 * configure: Likewise.
4458 * fficonfig.h.in: Likewise.
4459 * testsuite/lib/libffi-dg.exp: Add include dir.
4460 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4461 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4462 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4463 for ffi_closure if available.
4464 * testsuite/libffi.call/closure_fn1.c: Likewise.
4465 * testsuite/libffi.call/closure_fn2.c: Likewise.
4466 * testsuite/libffi.call/closure_fn3.c: Likewise.
4467 * testsuite/libffi.call/closure_fn4.c: Likewise.
4468 * testsuite/libffi.call/closure_fn5.c: Likewise.
4469 * testsuite/libffi.call/cls_12byte.c: Likewise.
4470 * testsuite/libffi.call/cls_16byte.c: Likewise.
4471 * testsuite/libffi.call/cls_18byte.c: Likewise.
4472 * testsuite/libffi.call/cls_19byte.c: Likewise.
4473 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4474 * testsuite/libffi.call/cls_20byte.c: Likewise.
4475 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4476 * testsuite/libffi.call/cls_24byte.c: Likewise.
4477 * testsuite/libffi.call/cls_2byte.c: Likewise.
4478 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4479 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4480 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4481 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4482 * testsuite/libffi.call/cls_4byte.c: Likewise.
4483 * testsuite/libffi.call/cls_5byte.c: Likewise.
4484 * testsuite/libffi.call/cls_64byte.c: Likewise.
4485 * testsuite/libffi.call/cls_6byte.c: Likewise.
4486 * testsuite/libffi.call/cls_7byte.c: Likewise.
4487 * testsuite/libffi.call/cls_8byte.c: Likewise.
4488 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4489 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4490 * testsuite/libffi.call/cls_double.c: Likewise.
4491 * testsuite/libffi.call/cls_float.c: Likewise.
4492 * testsuite/libffi.call/cls_schar.c: Likewise.
4493 * testsuite/libffi.call/cls_sint.c: Likewise.
4494 * testsuite/libffi.call/cls_sshort.c: Likewise.
4495 * testsuite/libffi.call/cls_uchar.c: Likewise.
4496 * testsuite/libffi.call/cls_uint.c: Likewise.
4497 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4498 * testsuite/libffi.call/cls_ushort.c: Likewise.
4499 * testsuite/libffi.call/nested_struct.c: Likewise.
4500 * testsuite/libffi.call/nested_struct1.c: Likewise.
4501 * testsuite/libffi.call/nested_struct2.c: Likewise.
4502 * testsuite/libffi.call/nested_struct3.c: Likewise.
4503 * testsuite/libffi.call/problem1.c: Likewise.
4504 * testsuite/libffi.special/unwindtest.cc: Likewise.
4505
45062003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
4507
4508 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4509
45102003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
4511
4512 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4513 Add -lgcc_s to additional flags.
4514
45152003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
4516
4517 * configure.in, include/Makefile.am: PR libgcj/11147, install
4518 the ffitarget.h header file in a gcc versioned and target
4519 dependent place.
4520 * configure: Regenerated.
4521 * Makefile.in, include/Makefile.in: Likewise.
4522 * testsuite/Makefile.in: Likewise.
4523
45242003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
4525
4526 * testsuite/libffi.call/closure_fn0.c: Print result and check
4527 with dg-output to make debugging easier.
4528 * testsuite/libffi.call/closure_fn1.c: Likewise.
4529 * testsuite/libffi.call/closure_fn2.c: Likewise.
4530 * testsuite/libffi.call/closure_fn3.c: Likewise.
4531 * testsuite/libffi.call/closure_fn4.c: Likewise.
4532 * testsuite/libffi.call/closure_fn5.c: Likewise.
4533 * testsuite/libffi.call/cls_12byte.c: Likewise.
4534 * testsuite/libffi.call/cls_16byte.c: Likewise.
4535 * testsuite/libffi.call/cls_18byte.c: Likewise.
4536 * testsuite/libffi.call/cls_19byte.c: Likewise.
4537 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4538 * testsuite/libffi.call/cls_20byte.c: Likewise.
4539 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4540 * testsuite/libffi.call/cls_24byte.c: Likewise.
4541 * testsuite/libffi.call/cls_2byte.c: Likewise.
4542 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4543 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4544 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4545 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4546 * testsuite/libffi.call/cls_4byte.c: Likewise.
4547 * testsuite/libffi.call/cls_5byte.c: Likewise.
4548 * testsuite/libffi.call/cls_64byte.c: Likewise.
4549 * testsuite/libffi.call/cls_6byte.c: Likewise.
4550 * testsuite/libffi.call/cls_7byte.c: Likewise.
4551 * testsuite/libffi.call/cls_8byte.c: Likewise.
4552 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4553 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4554 * testsuite/libffi.call/cls_double.c: Likewise.
4555 * testsuite/libffi.call/cls_float.c: Likewise.
4556 * testsuite/libffi.call/cls_schar.c: Likewise.
4557 * testsuite/libffi.call/cls_sint.c: Likewise.
4558 * testsuite/libffi.call/cls_sshort.c: Likewise.
4559 * testsuite/libffi.call/cls_uchar.c: Likewise.
4560 * testsuite/libffi.call/cls_uint.c: Likewise.
4561 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4562 * testsuite/libffi.call/cls_ushort.c: Likewise.
4563 * testsuite/libffi.call/problem1.c: Likewise.
4564
4565 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4566 static.
4567
45682003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4569
4570 * testsuite/libffi.call/cls_9byte2.c: New test case.
4571 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4572 * testsuite/libffi.call/cls_64byte.c: Likewise.
4573 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4574 * testsuite/libffi.call/cls_19byte.c: Likewise.
4575 * testsuite/libffi.call/cls_18byte.c: Likewise.
4576 * testsuite/libffi.call/closure_fn4.c: Likewise.
4577 * testsuite/libffi.call/closure_fn5.c: Likewise.
4578 * testsuite/libffi.call/cls_schar.c: Likewise.
4579 * testsuite/libffi.call/cls_sint.c: Likewise.
4580 * testsuite/libffi.call/cls_sshort.c: Likewise.
4581 * testsuite/libffi.call/nested_struct2.c: Likewise.
4582 * testsuite/libffi.call/nested_struct3.c: Likewise.
4583
45842003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4585
4586 * testsuite/libffi.call/cls_double.c: Do a check on the result.
4587 * testsuite/libffi.call/cls_uchar.c: Likewise.
4588 * testsuite/libffi.call/cls_uint.c: Likewise.
4589 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4590 * testsuite/libffi.call/cls_ushort.c: Likewise.
4591 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4592
45932003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
4594
4595 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4596 the initialization.
4597
45982003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
4599
4600 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
4601 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4602
46032003-10-22 David Daney <ddaney@avtrex.com>
4604
4605 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4606 __attribute__((__mode__(__SI__))) and friends.
4607
46082003-10-22 Andreas Schwab <schwab@suse.de>
4609
4610 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4611
46122003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
4613
4614 * configure.in: AC_LINK_FILES(ffitarget.h).
4615 * configure: Regenerate.
4616 * Makefile.in: Likewise.
4617 * include/Makefile.in: Likewise.
4618 * testsuite/Makefile.in: Likewise.
4619 * fficonfig.h.in: Likewise.
4620
46212003-10-21 Paolo Bonzini <bonzini@gnu.org>
4622 Richard Henderson <rth@redhat.com>
4623
4624 Avoid that ffi.h includes fficonfig.h.
4625
4626 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4627 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4628 (TARGET_SRC_MIPS_SGI): Removed.
4629 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4630 (MIPS_SGI): Removed.
4631 (CLEANFILES): Removed.
4632 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4633 targets.
4634 * acconfig.h: Removed.
4635 * configure.in: Compute sizeofs only for double and long double.
4636 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
4637 into AC_DEFINE instead of using acconfig.h. Create
4638 include/ffitarget.h instead of include/fficonfig.h. Rename
4639 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4640 AC_DEFINE EH_FRAME_FLAGS.
4641 * include/Makefile.am (DISTCLEANFILES): New automake macro.
4642 (hack_DATA): Add ffitarget.h.
4643 * include/ffi.h.in: Remove all system specific definitions.
4644 Declare raw API even if it is not installed, why bother?
4645 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
4646 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
4647 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
4648 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4649 * include/ffi_common.h (bool): Do not define.
4650 (ffi_assert): Accept failed assertion.
4651 (ffi_type_test): Return void and accept file/line.
4652 (FFI_ASSERT): Pass stringized failed assertion.
4653 (FFI_ASSERT_AT): New macro.
4654 (FFI_ASSERT_VALID_TYPE): New macro.
4655 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4656 UINT64, SINT64): Define here with gcc's __attribute__ macro
4657 instead of in ffi.h
4658 (FLOAT32, ALIGN): Define here instead of in ffi.h
4659 * include/ffi-mips.h: Removed. Its content moved to
4660 src/mips/ffitarget.h after separating assembly and C sections.
4661 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4662 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4663 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4664 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4665 SIZEOF_ARG -> FFI_SIZEOF_ARG.
4666 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4667 * src/debug.c (ffi_assert): Accept stringized failed assertion.
4668 (ffi_type_test): Rewritten.
4669 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4670 FFI_ASSERT_VALID_TYPE.
4671 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4672 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4673 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4674 src/s390/ffitarget.h, src/sh/ffitarget.h,
4675 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4676 src/x86/ffitarget.h: New files.
4677 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4678 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4679 src/powerpc/aix.S, src/powerpc/darwin.S,
4680 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4681 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4682 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4683 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4684 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4685 include fficonfig.h
4686
46872003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4688
4689 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4690 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4691
46922003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
4693
4694 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4695 Used when FFI_DEBUG = 1.
4696
46972003-10-14 Alan Modra <amodra@bigpond.net.au>
4698
4699 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4700 and align.
4701
47022003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4703
4704 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4705 FFI_MIPS_O32 for O32 ABI.
4706
47072003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
4708
4709 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4710 SPARC64. Cleanup whitespaces.
4711
47122003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
4713
4714 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4715 strongarm, xscale. Cleanup whitespaces.
4716 * testsuite/libffi.call/closure_fn1.c: Likewise.
4717 * testsuite/libffi.call/closure_fn2.c: Likewise.
4718 * testsuite/libffi.call/closure_fn3.c: Likewise.
4719 * testsuite/libffi.call/cls_12byte.c: Likewise.
4720 * testsuite/libffi.call/cls_16byte.c: Likewise.
4721 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4722 * testsuite/libffi.call/cls_20byte.c: Likewise.
4723 * testsuite/libffi.call/cls_24byte.c: Likewise.
4724 * testsuite/libffi.call/cls_2byte.c: Likewise.
4725 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4726 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4727 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4728 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4729 * testsuite/libffi.call/cls_4byte.c: Likewise.
4730 * testsuite/libffi.call/cls_5byte.c: Likewise.
4731 * testsuite/libffi.call/cls_6byte.c: Likewise.
4732 * testsuite/libffi.call/cls_7byte.c: Likewise.
4733 * testsuite/libffi.call/cls_8byte.c: Likewise.
4734 * testsuite/libffi.call/cls_double.c: Likewise.
4735 * testsuite/libffi.call/cls_float.c: Likewise.
4736 * testsuite/libffi.call/cls_uchar.c: Likewise.
4737 * testsuite/libffi.call/cls_uint.c: Likewise.
4738 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4739 * testsuite/libffi.call/cls_ushort.c: Likewise.
4740 * testsuite/libffi.call/nested_struct.c: Likewise.
4741 * testsuite/libffi.call/nested_struct1.c: Likewise.
4742 * testsuite/libffi.call/problem1.c: Likewise.
4743 * testsuite/libffi.special/unwindtest.cc: Likewise.
4744 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4745
47462003-09-18 David Edelsohn <edelsohn@gnu.org>
4747
4748 * src/powerpc/aix.S: Cleanup whitespaces.
4749 * src/powerpc/aix_closure.S: Likewise.
4750
47512003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4752
4753 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4754 * src/powerpc/darwin_closure.S: Likewise.
4755 * src/powerpc/ffi_darwin.c: Likewise.
4756
47572003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4758 David Edelsohn <edelsohn@gnu.org>
4759
4760 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4761 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4762 parameter stack.
4763 * src/powerpc/darwin_closure.S: Likewise.
4764 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4765 according to the Darwin/AIX ABI.
4766 (ffi_prep_cif_machdep): Likewise.
4767 (ffi_closure_helper_DARWIN): Likewise.
4768 Remove the outgoing parameter stack logic. Simplify the evaluation
4769 of the different CASE types.
4770 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4771 statement in the trampoline code.
4772
47732003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
4774
4775 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4776 for the register size.
4777 (ffi_closure_helper_SYSV): Handle the structure return value
4778 address correctly.
4779 (ffi_closure_helper_SYSV): Return the appropriate type when
4780 the registers are used for the structure return value.
4781 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4782 the 64-bit return value. Update copyright years.
4783
47842003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4785
4786 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4787 srcdir for ffi_mips.h.
4788
47892003-09-12 Alan Modra <amodra@bigpond.net.au>
4790
4791 * src/prep_cif.c (initialize_aggregate): Include tail padding in
4792 structure size.
4793 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4794 placement of float result.
4795 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4796 cast of "resp" for big-endian 64 bit machines.
4797
47982003-09-11 Alan Modra <amodra@bigpond.net.au>
4799
4800 * src/types.c (double, longdouble): Merge identical SH and ARM
4801 typedefs, and add POWERPC64.
4802 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4803 struct split over gpr and rest.
4804 (ffi_prep_cif_machdep): Correct intarg_count for structures.
4805 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4806
48072003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
4808
4809 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4810 passing correctly.
4811
48122003-09-09 Alan Modra <amodra@bigpond.net.au>
4813
4814 * configure: Regenerate.
4815
48162003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4817
4818 * Makefile.am: Remove build rules for ffitest.
4819 * Makefile.in: Rebuilt.
4820
48212003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4822
4823 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4824 about implicit declaration of abort().
4825
48262003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4827
4828 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
4829 * Makefile.in: Rebuilt.
4830 * configure.in: Add dejagnu test framework.
4831 * configure: Rebuilt.
4832
4833 * testsuite/Makefile.am: New file.
4834 * testsuite/Makefile.in: Built
4835 * testsuite/lib/libffi-dg.exp: New file.
4836 * testsuite/config/default.exp: Likewise.
4837 * testsuite/libffi.call/call.exp: Likewise.
4838 * testsuite/libffi.call/ffitest.h: Likewise.
4839 * testsuite/libffi.call/closure_fn0.c: Likewise.
4840 * testsuite/libffi.call/closure_fn1.c: Likewise.
4841 * testsuite/libffi.call/closure_fn2.c: Likewise.
4842 * testsuite/libffi.call/closure_fn3.c: Likewise.
4843 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4844 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4845 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4846 * testsuite/libffi.call/cls_2byte.c: Likewise.
4847 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4848 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4849 * testsuite/libffi.call/cls_4byte.c: Likewise.
4850 * testsuite/libffi.call/cls_5byte.c: Likewise.
4851 * testsuite/libffi.call/cls_6byte.c: Likewise.
4852 * testsuite/libffi.call/cls_7byte.c: Likewise.
4853 * testsuite/libffi.call/cls_8byte.c: Likewise.
4854 * testsuite/libffi.call/cls_12byte.c: Likewise.
4855 * testsuite/libffi.call/cls_16byte.c: Likewise.
4856 * testsuite/libffi.call/cls_20byte.c: Likewise.
4857 * testsuite/libffi.call/cls_24byte.c: Likewise.
4858 * testsuite/libffi.call/cls_double.c: Likewise.
4859 * testsuite/libffi.call/cls_float.c: Likewise.
4860 * testsuite/libffi.call/cls_uchar.c: Likewise.
4861 * testsuite/libffi.call/cls_uint.c: Likewise.
4862 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4863 * testsuite/libffi.call/cls_ushort.c: Likewise.
4864 * testsuite/libffi.call/float.c: Likewise.
4865 * testsuite/libffi.call/float1.c: Likewise.
4866 * testsuite/libffi.call/float2.c: Likewise.
4867 * testsuite/libffi.call/many.c: Likewise.
4868 * testsuite/libffi.call/many_win32.c: Likewise.
4869 * testsuite/libffi.call/nested_struct.c: Likewise.
4870 * testsuite/libffi.call/nested_struct1.c: Likewise.
4871 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
4872 * testsuite/libffi.call/problem1.c: Likewise.
4873 * testsuite/libffi.call/promotion.c: Likewise.
4874 * testsuite/libffi.call/return_ll.c: Likewise.
4875 * testsuite/libffi.call/return_sc.c: Likewise.
4876 * testsuite/libffi.call/return_uc.c: Likewise.
4877 * testsuite/libffi.call/strlen.c: Likewise.
4878 * testsuite/libffi.call/strlen_win32.c: Likewise.
4879 * testsuite/libffi.call/struct1.c: Likewise.
4880 * testsuite/libffi.call/struct2.c: Likewise.
4881 * testsuite/libffi.call/struct3.c: Likewise.
4882 * testsuite/libffi.call/struct4.c: Likewise.
4883 * testsuite/libffi.call/struct5.c: Likewise.
4884 * testsuite/libffi.call/struct6.c: Likewise.
4885 * testsuite/libffi.call/struct7.c: Likewise.
4886 * testsuite/libffi.call/struct8.c: Likewise.
4887 * testsuite/libffi.call/struct9.c: Likewise.
4888 * testsuite/libffi.special/special.exp: New file.
4889 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4890 * testsuite/libffi.special/unwindtest.cc: Likewise.
4891
4892
48932003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
4894
4895 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
4896 copyright years.
4897
48982003-08-02 Alan Modra <amodra@bigpond.net.au>
4899
4900 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
4901 structure passing.
4902 (ffi_closure_helper_LINUX64): Likewise.
4903 * src/powerpc/linux64.S: Remove code writing to parm save area.
4904 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
4905 address in lr from ffi_closure_helper_LINUX64 call to calculate
4906 table address. Optimize function tail.
4907
49082003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
4909
4910 * src/sparc/ffi.c: Handle all floating point registers.
4911 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
4912
49132003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4914
4915 * README: Note that libffi is not part of GCC. Update the project
4916 URL and status.
4917
49182003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4919
4920 * src/powerpc/ppc_closure.S: Include ffi.h.
4921
49222003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4923
4924 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
4925 Use C style comments.
4926
49272003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4928
4929 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
4930 * Makefile.in: Regenerate.
4931 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
4932 * configure: Regenerate.
4933 * include/ffi.h.in: Add SHmedia support.
4934 * src/sh64/ffi.c: New file.
4935 * src/sh64/sysv.S: New file.
4936
49372003-05-16 Jakub Jelinek <jakub@redhat.com>
4938
4939 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
4940 should be read-only.
4941 * configure: Rebuilt.
4942 * fficonfig.h.in: Rebuilt.
4943 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
4944 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
4945 * src/powerpc/linux64.S: Likewise.
4946 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
4947 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
4948 if -fpic/-fPIC/-mrelocatable.
4949 * src/powerpc/powerpc_closure.S: Likewise.
4950 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
4951 #write in .eh_frame flags.
4952 * src/sparc/v9.S: Likewise.
4953 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
4954 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
4955 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
4956
49572003-05-07 Jeff Sturm <jsturm@one-point.com>
4958
4959 Fixes PR bootstrap/10656
4960 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
4961 support for .register pseudo-op.
4962 * src/sparc/v8.S: Use it.
4963 * fficonfig.h.in: Rebuilt.
4964 * configure: Rebuilt.
4965
49662003-04-18 Jakub Jelinek <jakub@redhat.com>
4967
4968 * include/ffi.h.in (POWERPC64): Define if 64-bit.
4969 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
4970 Make it the default on POWERPC64.
4971 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
4972 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
4973 * configure: Rebuilt.
4974 * src/powerpc/ffi.c (hidden): Define.
4975 (ffi_prep_args_SYSV): Renamed from
4976 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
4977 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
4978 ASM_NEEDS_REGISTERS64): New.
4979 (ffi_prep_args64): New function.
4980 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
4981 (ffi_call): Likewise.
4982 (ffi_prep_closure): Likewise.
4983 (flush_icache): Surround by #ifndef POWERPC64.
4984 (ffi_dblfl): New union type.
4985 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
4986 (ffi_closure_helper_LINUX64): New function.
4987 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
4988 __powerpc64__.
4989 * src/powerpc/sysv.S: Likewise.
4990 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
4991 * src/powerpc/linux64.S: New file.
4992 * src/powerpc/linux64_closure.S: New file.
4993 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
4994 src/powerpc/linux64_closure.S.
4995 (TARGET_SRC_POWERPC): Likewise.
4996
4997 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
4998 closure_test_fn3): Fix result printing on big-endian 64-bit
4999 machines.
5000 (main): Print tst2_arg instead of uninitialized tst2_result.
5001
5002 * src/ffitest.c (main): Hide what closure pointer really points to
5003 from the compiler.
5004
50052003-04-16 Richard Earnshaw <rearnsha@arm.com>
5006
5007 * configure.in (arm-*-netbsdelf*): Add configuration.
5008 (configure): Regenerated.
5009
50102003-04-04 Loren J. Rittle <ljrittle@acm.org>
5011
5012 * include/Makefile.in: Regenerate.
5013
50142003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5015
5016 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5017 bit mode.
5018 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5019 Receive closure pointer through parameter, read args using
5020 __builtin_dwarf_cfa.
5021 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5022
50232003-03-12 Andreas Schwab <schwab@suse.de>
5024
5025 * configure.in: Avoid trailing /. in toolexeclibdir.
5026 * configure: Rebuilt.
5027
50282003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
5029
5030 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
5031
50322003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
5033
5034 * libffi/src/powerpc/darwin_closure.S:
5035 Fix alignement bug, allocate 8 bytes for the result.
5036 * libffi/src/powerpc/aix_closure.S:
5037 Likewise.
5038 * libffi/src/powerpc/ffi_darwin.c:
5039 Update stackframe description for aix/darwin_closure.S.
5040
50412003-02-06 Jakub Jelinek <jakub@redhat.com>
5042
5043 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5044 attribute.
5045
50462003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
5047 Andreas Schwab <schwab@suse.de>
5048
5049 * configure.in: Adjust command to source config-ml.in to account
5050 for changes to the libffi_basedir definition.
5051 (libffi_basedir): Remove ${srcdir} from value and include trailing
5052 slash if nonempty.
5053
5054 * configure: Regenerate.
5055
50562003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5057
5058 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5059
50602003-01-28 Andrew Haley <aph@redhat.com>
5061
5062 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5063 * src/x86/ffi64.c (ffi_prep_closure): New.
5064 (ffi_closure_UNIX64_inner): New.
5065 * src/x86/unix64.S (ffi_closure_UNIX64): New.
5066
50672003-01-27 Alexandre Oliva <aoliva@redhat.com>
5068
5069 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5070 Remove USE_LIBDIR conditional.
5071 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5072 * Makefile.in, configure: Rebuilt.
5073
50742003-01027 David Edelsohn <edelsohn@gnu.org>
5075
5076 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5077 * Makefile.in: Regenerate.
5078
50792003-01-22 Andrew Haley <aph@redhat.com>
5080
5081 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5082 unwind info.
5083
50842003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
5085
5086 * src/powerpc/darwin.S: Add unwind info.
5087 * src/powerpc/darwin_closure.S: Likewise.
5088
50892003-01-14 Andrew Haley <aph@redhat.com>
5090
5091 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5092 (ffi_prep_cif_machdep): Likewise.
5093 * src/x86/unix64.S: Add unwind info.
5094
50952003-01-14 Andreas Jaeger <aj@suse.de>
5096
5097 * src/ffitest.c (main): Only use ffi_closures if those are
5098 supported.
5099
51002003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
5101
5102 * libffi/src/ffitest.c
5103 add closure testcases
5104
51052003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
5106
5107 * libffi/src/powerpc/ffi.c
5108 fix alignment bug for float (4 byte aligned iso 8 byte)
5109
51102003-01-09 Geoffrey Keating <geoffk@apple.com>
5111
5112 * src/powerpc/ffi_darwin.c: Remove RCS version string.
5113 * src/powerpc/darwin.S: Remove RCS version string.
5114
51152003-01-03 Jeff Sturm <jsturm@one-point.com>
5116
5117 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5118 * src/ffitest.c (main): Use static storage for closure.
5119 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5120 * src/sparc/v8.S (ffi_closure_v8): New.
5121 * src/sparc/v9.S (ffi_closure_v9): New.
5122
51232002-11-10 Ranjit Mathew <rmathew@hotmail.com>
5124
5125 * include/ffi.h.in: Added FFI_STDCALL ffi_type
5126 enumeration for X86_WIN32.
5127 * src/x86/win32.S: Added ffi_call_STDCALL function
5128 definition.
5129 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
5130 switch cases for recognising FFI_STDCALL and
5131 calling ffi_call_STDCALL if target is X86_WIN32.
5132 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
5133 stdcall versions of the "my_strlen" and "many"
5134 test functions (for X86_WIN32).
5135 Added test cases to test stdcall invocation using
5136 these functions.
5137
51382002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
5139
5140 * src/sh/sysv.S: Add DWARF2 unwind info.
5141
51422002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
5143
5144 * src/s390/sysv.S (.eh_frame section): Make section read-only.
5145
51462002-11-26 Jim Wilson <wilson@redhat.com>
5147
5148 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5149
51502002-11-23 H.J. Lu <hjl@gnu.org>
5151
5152 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5153 Include ../config/accross.m4.
5154 * aclocal.m4; Rebuild.
5155 * configure: Likewise.
5156
51572002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
5158
5159 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5160
51612002-11-11 DJ Delorie <dj@redhat.com>
5162
5163 * configure.in: Look for common files in the right place.
5164
51652002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5166
5167 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5168 raw data as _Jv_word values, not ffi_raw.
5169 (ffi_java_ptrarray_to_raw): Likewise.
5170 (ffi_java_rvalue_to_raw): New function.
5171 (ffi_java_raw_call): Call it.
5172 (ffi_java_raw_to_rvalue): New function.
5173 (ffi_java_translate_args): Call it.
5174 * src/ffitest.c (closure_test_fn): Interpret return value
5175 as ffi_arg, not int.
5176 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5177 FFI_TYPE_POINTER case.
5178 (ffi_closure_helper_SYSV): Likewise. Also, assume return
5179 values extended to word size.
5180
51812002-10-02 Andreas Jaeger <aj@suse.de>
5182
5183 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5184
51852002-10-01 Bo Thorsen <bo@smetana.suse.de>
5186
5187 * include/ffi.h.in: Fix i386 win32 compilation.
5188
51892002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5190
5191 * configure.in: Add s390x-*-linux-* target.
5192 * configure: Regenerate.
5193 * include/ffi.h.in: Define S390X for s390x targets.
5194 (FFI_CLOSURES): Define for s390/s390x.
5195 (FFI_TRAMPOLINE_SIZE): Likewise.
5196 (FFI_NATIVE_RAW_API): Likewise.
5197 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5198 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
5199 * src/s390/ffi.c: Major rework of existing code. Add support for
5200 s390x targets. Add closure support.
5201 * src/s390/sysv.S: Likewise.
5202
52032002-09-29 Richard Earnshaw <rearnsha@arm.com>
5204
5205 * src/arm/sysv.S: Fix typo.
5206
52072002-09-28 Richard Earnshaw <rearnsha@arm.com>
5208
5209 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5210 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5211 (ffi_call_SYSV): Handle soft-float.
5212
52132002-09-27 Bo Thorsen <bo@suse.de>
5214
5215 * include/ffi.h.in: Fix multilib x86-64 support.
5216
52172002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5218
5219 * Makefile.am (all-multi): Fix multilib parallel build.
5220
52212002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
5222
5223 * configure.in (sh[34]*-*-linux*): Add brackets.
5224 * configure: Regenerate.
5225
52262002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
5227
5228 * Makefile.am: Add SH support.
5229 * Makefile.in: Regenerate.
5230 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5231 * configure: Regenerate.
5232 * include/ffi.h.in: Add SH support.
5233 * src/sh/ffi.c: New file.
5234 * src/sh/sysv.S: New file.
5235 * src/types.c: Add SH support.
5236
52372002-07-16 Bo Thorsen <bo@suse.de>
5238
5239 * src/x86/ffi64.c: New file that adds x86-64 support.
5240 * src/x86/unix64.S: New file that handles argument setup for
5241 x86-64.
5242 * src/x86/sysv.S: Don't use this on x86-64.
5243 * src/x86/ffi.c: Don't use this on x86-64.
5244 Remove unused vars.
5245 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5246 for x86-64.
5247 * src/ffitest.c (struct6): New test that tests a special case in
5248 the x86-64 ABI.
5249 (struct7): Likewise.
5250 (struct8): Likewise.
5251 (struct9): Likewise.
5252 (closure_test_fn): Silence warning about this when it's not used.
5253 (main): Add the new tests.
5254 (main): Fix a couple of wrong casts and silence some compiler warnings.
5255 * include/ffi.h.in: Add x86-64 ABI definition.
5256 * fficonfig.h.in: Regenerate.
5257 * Makefile.am: Add x86-64 support.
5258 * configure.in: Likewise.
5259 * Makefile.in: Regenerate.
5260 * configure: Likewise.
5261
52622002-06-24 Bo Thorsen <bo@suse.de>
5263
5264 * src/types.c: Merge settings for similar architectures.
5265 Add x86-64 sizes and alignments.
5266
52672002-06-23 Bo Thorsen <bo@suse.de>
5268
5269 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5270 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5271 * src/mips/ffi.c (ffi_prep_args): Likewise.
5272 * src/m68k/ffi.c (ffi_prep_args): Likewise.
5273
52742002-07-18 H.J. Lu (hjl@gnu.org)
5275
5276 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5277 (libffi_la_SOURCES): Support MIPS_LINUX.
5278 (libffi_convenience_la_SOURCES): Likewise.
5279 * Makefile.in: Regenerated.
5280
5281 * configure.in (mips64*-*): Skip.
5282 (mips*-*-linux*): New.
5283 * configure: Regenerated.
5284
5285 * src/mips/ffi.c: Include <sgidefs.h>.
5286
52872002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5288
5289 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
5290
52912002-05-27 Roger Sayle <roger@eyesopen.com>
5292
5293 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5294
52952002-05-27 Bo Thorsen <bo@suse.de>
5296
5297 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5298 fix formatting.
5299
53002002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
5301
5302 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5303 beginning of function (for older apple cc).
5304
53052002-05-08 Alexandre Oliva <aoliva@redhat.com>
5306
5307 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5308 script entry, and set LD to it when configuring multilibs.
5309 * configure: Rebuilt.
5310
53112002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5312
5313 * configure.in (sparc64-*-netbsd*): Add target.
5314 (sparc-*-netbsdelf*): Likewise.
5315 * configure: Regenerate.
5316
53172002-04-28 David S. Miller <davem@redhat.com>
5318
5319 * configure.in, configure: Fix SPARC test in previous change.
5320
53212002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
5322
5323 * Makefile.am: Add Linux for S/390 support.
5324 * Makefile.in: Regenerate.
5325 * configure.in: Add Linux for S/390 support.
5326 * configure: Regenerate.
5327 * include/ffi.h.in: Add Linux for S/390 support.
5328 * src/s390/ffi.c: New file from libffi CVS tree.
5329 * src/s390/sysv.S: New file from libffi CVS tree.
5330
53312002-04-28 Jakub Jelinek <jakub@redhat.com>
5332
5333 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5334 %r_disp32().
5335 * src/sparc/v8.S: Use it.
5336 * src/sparc/v9.S: Likewise.
5337 * fficonfig.h.in: Rebuilt.
5338 * configure: Rebuilt.
5339
53402002-04-08 Hans Boehm <Hans_Boehm@hp.com>
5341
5342 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5343 correctly.
5344 * src/ia64/unix.S: Add unwind information. Fix comments.
5345 Save sp in a way that's compatible with unwind info.
5346 (ffi_call_unix): Correctly restore sp in all cases.
5347 * src/ia64/ffi.c: Add, fix comments.
5348
53492002-04-08 Jakub Jelinek <jakub@redhat.com>
5350
5351 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5352
53532002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5354
5355 * configure.in (alpha*-*-netbsd*): Add target.
5356 * configure: Regenerate.
5357
53582002-04-04 Jeff Sturm <jsturm@one-point.com>
5359
5360 * src/sparc/v8.S: Add unwind info.
5361 * src/sparc/v9.S: Likewise.
5362
53632002-03-30 Krister Walfridsson <cato@df.lth.se>
5364
5365 * configure.in: Enable i*86-*-netbsdelf*.
5366 * configure: Rebuilt.
5367
53682002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
5369
5370 PR other/2620
5371 * src/mips/n32.s: Delete
5372 * src/mips/o32.s: Delete
5373
53742002-03-21 Loren J. Rittle <ljrittle@acm.org>
5375
5376 * configure.in: Enable alpha*-*-freebsd*.
5377 * configure: Rebuilt.
5378
53792002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5380
5381 * Makefile.am: libfficonvenience -> libffi_convenience.
5382 * Makefile.in: Rebuilt.
5383
5384 * Makefile.am: Define ffitest_OBJECTS.
5385 * Makefile.in: Rebuilt.
5386
53872002-03-07 Andreas Tobler <toa@pop.agri.ch>
5388 David Edelsohn <edelsohn@gnu.org>
5389
5390 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5391 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5392 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5393 * Makefile.in: Regenerate.
5394 * include/ffi.h.in: Add AIX and Darwin closure definitions.
5395 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5396 (flush_icache, flush_range): New functions.
5397 (ffi_closure_helper_DARWIN): New function.
5398 * src/powerpc/aix_closure.S: New file.
5399 * src/powerpc/darwin_closure.S: New file.
5400
54012002-02-24 Jeff Sturm <jsturm@one-point.com>
5402
5403 * include/ffi.h.in: Add typedef for ffi_arg.
5404 * src/ffitest.c (main): Declare rint with ffi_arg.
5405
54062002-02-21 Andreas Tobler <toa@pop.agri.ch>
5407
5408 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5409 number of GPRs for floating-point arguments.
5410
54112002-01-31 Anthony Green <green@redhat.com>
5412
5413 * configure: Rebuilt.
5414 * configure.in: Replace CHECK_SIZEOF and endian tests with
5415 cross-compiler friendly macros.
5416 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5417 macros.
5418
54192002-01-18 David Edelsohn <edelsohn@gnu.org>
5420
5421 * src/powerpc/darwin.S (_ffi_call_AIX): New.
5422 * src/powerpc/aix.S (ffi_call_DARWIN): New.
5423
54242002-01-17 David Edelsohn <edelsohn@gnu.org>
5425
5426 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5427 (TARGET_SRC_POWERPC_AIX): New.
5428 (POWERPC_AIX): New stanza.
5429 * Makefile.in: Regenerate.
5430 * configure.in: Add AIX case.
5431 * configure: Regenerate.
5432 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5433 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5434 size. Fix "long double" support.
5435 (ffi_call): Add FFI_AIX case.
5436 * src/powerpc/aix.S: New.
5437
54382001-10-09 John Hornkvist <john@toastedmarshmallow.com>
5439
5440 Implement Darwin PowerPC ABI.
5441 * configure.in: Handle powerpc-*-darwin*.
5442 * Makefile.am: Set source files for POWERPC_DARWIN.
5443 * configure: Rebuilt.
5444 * Makefile.in: Rebuilt.
5445 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5446 POWERPC_DARWIN.
5447 * src/powerpc/darwin.S: New file.
5448 * src/powerpc/ffi_darwin.c: New file.
5449
54502001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5451
5452 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5453
54542001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5455
5456 * src/x86/sysv.S: Avoid gas-only .balign directive.
5457 Use C style comments.
5458
54592001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5460
5461 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5462 Fixes PR bootstrap/3563.
5463
54642001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5465
5466 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5467
54682001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5469
5470 * configure.in: Recognize sparc*-sun-* host.
5471 * configure: Regenerate.
5472
54732001-06-06 Andrew Haley <aph@redhat.com>
5474
5475 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
5476
54772001-06-03 Andrew Haley <aph@redhat.com>
5478
5479 * src/alpha/osf.S: Add unwind info.
5480 * src/powerpc/sysv.S: Add unwind info.
5481 * src/powerpc/ppc_closure.S: Likewise.
5482
54832000-05-31 Jeff Sturm <jsturm@one-point.com>
5484
5485 * configure.in: Fix AC_ARG_ENABLE usage.
5486 * configure: Rebuilt.
5487
54882001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5489
5490 * configure.in: Remove warning about beta code.
5491 * configure: Rebuilt.
5492
54932001-04-25 Hans Boehm <Hans_Boehm@hp.com>
5494
5495 * src/ia64/unix.S: Restore stack pointer when returning from
5496 ffi_closure_UNIX.
5497 * src/ia64/ffi.c: Fix typo in comment.
5498
54992001-04-18 Jim Wilson <wilson@redhat.com>
5500
5501 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5502 to eliminate RAW DV.
5503
55042001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
5505
5506 * Makefile.am: Make a libtool convenience library.
5507 * Makefile.in: Rebuilt.
5508
55092001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
5510
5511 * configure.in: Use different syntax for subdirectory creation.
5512 * configure: Rebuilt.
5513
55142001-03-27 Jon Beniston <jon@beniston.com>
5515
5516 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5517 * configure: Rebuilt.
5518 * Makefile.am: Added X86_WIN32 target support.
5519 * Makefile.in: Rebuilt.
5520
5521 * include/ffi.h.in: Added X86_WIN32 target support.
5522
5523 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5524 * src/types.c: Added X86_WIN32 target support.
5525
5526 * src/x86/win32.S: New file. Based on sysv.S, but with EH
5527 stuff removed and made to work with CygWin's gas.
5528
55292001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
5530
5531 * configure.in: Make target subdirectory in build dir.
5532 * Makefile.am: Override suffix based rules to specify correct output
5533 subdirectory.
5534 * Makefile.in: Rebuilt.
5535 * configure: Rebuilt.
5536
55372001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
5538
5539 * src/powerpc/ppc_closure.S: New file.
5540 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5541 involving long long and register pairs.
5542 (ffi_prep_closure): New function.
5543 (flush_icache): Likewise.
5544 (ffi_closure_helper_SYSV): Likewise.
5545 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5546 (FFI_TRAMPOLINE_SIZE): Likewise.
5547 (FFI_NATIVE_RAW_API): Likewise.
5548 * Makefile.in: Rebuilt.
5549 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5550 (TARGET_SRC_POWERPC): Likewise.
5551
55522001-03-19 Tom Tromey <tromey@redhat.com>
5553
5554 * Makefile.in: Rebuilt.
5555 * Makefile.am (ffitest_LDFLAGS): New macro.
5556
55572001-03-02 Nick Clifton <nickc@redhat.com>
5558
5559 * include/ffi.h.in: Remove RCS ident string.
5560 * include/ffi_mips.h: Remove RCS ident string.
5561 * src/debug.c: Remove RCS ident string.
5562 * src/ffitest.c: Remove RCS ident string.
5563 * src/prep_cif.c: Remove RCS ident string.
5564 * src/types.c: Remove RCS ident string.
5565 * src/alpha/ffi.c: Remove RCS ident string.
5566 * src/alpha/osf.S: Remove RCS ident string.
5567 * src/arm/ffi.c: Remove RCS ident string.
5568 * src/arm/sysv.S: Remove RCS ident string.
5569 * src/mips/ffi.c: Remove RCS ident string.
5570 * src/mips/n32.S: Remove RCS ident string.
5571 * src/mips/o32.S: Remove RCS ident string.
5572 * src/sparc/ffi.c: Remove RCS ident string.
5573 * src/sparc/v8.S: Remove RCS ident string.
5574 * src/sparc/v9.S: Remove RCS ident string.
5575 * src/x86/ffi.c: Remove RCS ident string.
5576 * src/x86/sysv.S: Remove RCS ident string.
5577
55782001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
5579
5580 * include/ffi.h.in: Change sourceware.cygnus.com references to
5581 gcc.gnu.org.
5582
55832000-12-09 Richard Henderson <rth@redhat.com>
5584
5585 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5586 (ffi_closure_osf_inner): Index rather than increment avalue
5587 and arg_types. Give ffi_closure_osf the raw return value type.
5588 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5589 promotion.
5590
55912000-12-07 Richard Henderson <rth@redhat.com>
5592
5593 * src/raw_api.c (ffi_translate_args): Fix typo.
5594 (ffi_prep_closure): Likewise.
5595
5596 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5597 FFI_TRAMPOLINE_SIZE.
5598 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5599 cif->bytes for new ffi_call_osf implementation.
5600 (ffi_prep_args): Absorb into ...
5601 (ffi_call): ... here. Do all stack allocation here and
5602 avoid a callback function.
5603 (ffi_prep_closure, ffi_closure_osf_inner): New.
5604 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5605 (ffi_closure_osf): New.
5606
56072000-09-10 Alexandre Oliva <aoliva@redhat.com>
5608
5609 * config.guess, config.sub, install-sh: Removed.
5610 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5611 * Makefile.in: Rebuilt.
5612
5613 * acinclude.m4: Include libtool macros from the top level.
5614 * aclocal.m4, configure: Rebuilt.
5615
56162000-08-22 Alexandre Oliva <aoliva@redhat.com>
5617
5618 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5619 * configure: Rebuilt.
5620
56212000-05-11 Scott Bambrough <scottb@netwinder.org>
5622
5623 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5624 memory correctly. Use conditional instructions, not branches where
5625 possible.
5626
56272000-05-04 Tom Tromey <tromey@cygnus.com>
5628
5629 * configure: Rebuilt.
5630 * configure.in: Match `arm*-*-linux-*'.
5631 From Chris Dornan <cdornan@arm.com>.
5632
56332000-04-28 Jakub Jelinek <jakub@redhat.com>
5634
5635 * Makefile.am (SUBDIRS): Define.
5636 (AM_MAKEFLAGS): Likewise.
5637 (Multilib support.): Add section.
5638 * Makefile.in: Rebuilt.
5639 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
5640 New variables. Set for gcc using -print-multi-lib. Export them
5641 to libtool.
5642 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5643 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5644 for -shared links.
5645 (extra_compiler_flags_value, extra_compiler_flags): Check these
5646 for extra compiler options which need to be passed down in
5647 compiler_flags.
5648
56492000-04-16 Anthony Green <green@redhat.com>
5650
5651 * configure: Rebuilt.
5652 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5653
56542000-04-14 Jakub Jelinek <jakub@redhat.com>
5655
5656 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
5657 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5658 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5659 Replace all void * sizeofs with sizeof(int).
5660 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5661 different than DOUBLE.
5662 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5663 (ffi_prep_args_v9): New function.
5664 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5665 (ffi_V9_return_struct): New function.
5666 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5667 32bit code (not yet cross-arch calls).
5668 * src/sparc/v8.S: Add struct return delay nop.
5669 Handle long long.
5670 * src/sparc/v9.S: New file.
5671 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5672 is used on sparc64 only for structures larger than 32 bytes.
5673 Pass by reference for structures is done for structure arguments
5674 larger than 16 bytes.
5675 * src/ffitest.c (main): Use 64bit rint on sparc64.
5676 Run long long tests on sparc.
5677 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5678 sparc64.
5679 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5680 on sparc64.
5681 * configure.in (sparc-*-linux*): New supported target.
5682 (sparc64-*-linux*): Likewise.
5683 * configure: Rebuilt.
5684 * Makefile.am: Add v9.S to SPARC files.
5685 * Makefile.in: Likewise.
5686 (LINK): Surround $(CCLD) into double quotes, so that multilib
5687 compiles work correctly.
5688
56892000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
5690
5691 * configure: Rebuilt.
5692 * configure.in: (i*86-*-solaris*): New libffi target. Patch
5693 proposed by Bryce McKinlay.
5694
56952000-03-20 Tom Tromey <tromey@cygnus.com>
5696
5697 * Makefile.in: Hand edit for java_raw_api.lo.
5698
56992000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
5700
5701 * config.guess, config.sub: Update from the gcc tree.
5702 Fix for PR libgcj/168.
5703
57042000-03-03 Tom Tromey <tromey@cygnus.com>
5705
5706 * Makefile.in: Fixed ia64 by hand.
5707
5708 * configure: Rebuilt.
5709 * configure.in (--enable-multilib): New option.
5710 (libffi_basedir): New subst.
5711 (AC_OUTPUT): Added multilib code.
5712
57132000-03-02 Tom Tromey <tromey@cygnus.com>
5714
5715 * Makefile.in: Rebuilt.
5716 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5717 directory name.
5718
57192000-02-25 Hans Boehm <boehm@acm.org>
5720
5721 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5722 files.
5723 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5724 list.
5725 (ffi_prep_raw_closure): Use ffi_translate_args, not
5726 ffi_closure_translate.
5727 * src/java_raw_api.c: New file.
5728 * src/ffitest.c (closure_test_fn): New function.
5729 (main): Define `rint' as long long on IA64. Added new test when
5730 FFI_CLOSURES is defined.
5731 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5732 (ffi_abi): Recognize IA64.
5733 (ffi_raw): Added `flt' field.
5734 Added "Java raw API" code.
5735 * configure.in: Recognize ia64.
5736 * Makefile.am (TARGET_SRC_IA64): New macro.
5737 (libffi_la_common_SOURCES): Added java_raw_api.c.
5738 (libffi_la_SOURCES): Define in IA64 case.
5739
57402000-01-04 Tom Tromey <tromey@cygnus.com>
5741
5742 * Makefile.in: Rebuilt with newer automake.
5743
57441999-12-31 Tom Tromey <tromey@cygnus.com>
5745
5746 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5747
57481999-09-01 Tom Tromey <tromey@cygnus.com>
5749
5750 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5751 undefs.
5752 * fficonfig.h.in: Rebuilt.
5753 * configure: Rebuilt.
5754 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5755 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5756 * acconfig.h: Don't #undef PACKAGE or VERSION.
5757
57581999-08-09 Anthony Green <green@cygnus.com>
5759
5760 * include/ffi.h.in: Try to work around messy header problem
5761 with PACKAGE and VERSION.
5762
5763 * configure: Rebuilt.
5764 * configure.in: Change version to 2.00-beta.
5765
5766 * fficonfig.h.in: Rebuilt.
5767 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5768
5769 * src/x86/ffi.c (ffi_raw_call): Rename.
5770
57711999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
5772
5773 * src/x86/ffi.c (ffi_closure_SYSV): New function.
5774 (ffi_prep_incoming_args_SYSV): Ditto.
5775 (ffi_prep_closure): Ditto.
5776 (ffi_closure_raw_SYSV): Ditto.
5777 (ffi_prep_raw_closure): More ditto.
5778 (ffi_call_raw): Final ditto.
5779
5780 * include/ffi.h.in: Add definitions for closure and raw API.
5781
5782 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
5783 FFI_TYPE_UINT64.
5784
5785 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5786
5787 * src/raw_api.c: New file.
5788
5789 * include/ffi.h.in (ffi_raw): New type.
5790 (UINT_ARG, SINT_ARG): New defines.
5791 (ffi_closure, ffi_raw_closure): New types.
5792 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
5793
5794 * configure.in: Add check for endianness and sizeof void*.
5795
5796 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5797 instead of directly.
5798
5799 * configure: Rebuilt.
5800
5801Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
5802
5803 * configure.in: Add x86 and powerpc BeOS configurations.
5804 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
5805
58061999-05-09 Anthony Green <green@cygnus.com>
5807
5808 * configure.in: Add warning about this being beta code.
5809 Remove src/Makefile.am from the picture.
5810 * configure: Rebuilt.
5811
5812 * Makefile.am: Move logic from src/Makefile.am. Add changes
5813 to support libffi as a target library.
5814 * Makefile.in: Rebuilt.
5815
5816 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5817 Upgraded to new autoconf, automake, libtool.
5818
5819 * README: Tweaks.
5820
5821 * LICENSE: Update copyright date.
5822
5823 * src/Makefile.am, src/Makefile.in: Removed.
5824
58251998-11-29 Anthony Green <green@cygnus.com>
5826
5827 * include/ChangeLog: Removed.
5828 * src/ChangeLog: Removed.
5829 * src/mips/ChangeLog: Removed.
5830 * src/sparc/ChangeLog: Remboved.
5831 * src/x86/ChangeLog: Removed.
5832
5833 * ChangeLog.v1: Created.