blob: 58508299d790a329db9d3cedd9c3fc240e85dea9 [file] [log] [blame]
Josh Triplett35634db2014-03-15 18:11:16 -070012014-03-16 Josh Triplett <josh@joshtriplett.org>
2
Josh Triplettf6dd1842014-03-16 04:49:36 -07003 * testsuite/libffi.call/closure_stdcall.c,
4 testsuite/libffi.call/closure_thiscall.c: Remove fragile stack pointer
5 checks. These files included inline assembly to save the stack
6 pointer before and after the call, and compare the values. However,
7 compilers can and do leave the stack in different states for these two
8 pieces of inline assembly, such as by saving a temporary value on the
9 stack across the call; observed with gcc -Os, and verified as spurious
10 through careful inspection of disassembly.
11
122014-03-16 Josh Triplett <josh@joshtriplett.org>
13
Josh Triplett82f8cb22014-03-16 04:27:32 -070014 * testsuite/libffi.call/many.c: Avoid spurious failure due to excess
15 floating-point precision.
16 * testsuite/libffi.call/many_win32.c: Ditto.
17
182014-03-16 Josh Triplett <josh@joshtriplett.org>
19
Josh Triplett2f449522014-03-16 04:35:12 -070020 * libtool-ldflags: Re-add.
21
222014-03-16 Josh Triplett <josh@joshtriplett.org>
23
Josh Triplett35634db2014-03-15 18:11:16 -070024 * Makefile.in, aclocal.m4, compile, config.guess, config.sub,
25 configure, depcomp, include/Makefile.in, install-sh, libtool-ldflags,
26 ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4,
27 m4/ltversion.m4, m4/lt~obsolete.m4, man/Makefile.in, mdate-sh,
28 missing, testsuite/Makefile.in: Delete autogenerated files from
29 version control.
30 * .gitignore: Add autogenerated files.
31 * autogen.sh: New script to generate the autogenerated files.
32 * README: Document requirement to run autogen.sh when building
33 directly from version control.
34 * .travis.yml: Run autogen.sh
35
Anthony Green76d19d02014-03-14 16:54:31 -0400362014-03-14 Anthony Green <green@moxielogic.com>
37
38 * configure, Makefile.in: Rebuilt.
39
Ryan VanderMeulen18eb81d2014-03-10 14:43:37 -0400402014-03-10 Mike Hommey <mh+mozilla@glandium.org>
41
42 * configure.ac: Allow building for mipsel with Android NDK r8.
Ryan VanderMeulenf8cdf112014-03-10 15:04:58 -040043 * Makefile.am (AM_MAKEFLAGS): Replace double quotes with single quotes.
Ryan VanderMeulen18eb81d2014-03-10 14:43:37 -040044
Ryan VanderMeulendfa37382014-03-10 14:53:48 -0400452014-03-10 Landry Breuil <landry@openbsd.org>
46
47 * configure.ac: Ensure the linker supports @unwind sections in libffi.
48
Anthony Green634a4752014-03-01 18:37:29 -0500492014-03-01 Anthony Green <green@moxielogic.com>
50
51 * Makefile.am (EXTRA_DIST): Replace old scripts with
52 generate-darwin-source-and-headers.py.
53 * Makefile.in: Rebuilt.
54
Anthony Greena04e30b2014-02-28 17:20:59 -0500552014-02-28 Anthony Green <green@moxielogic.com>
56
57 * Makefile.am (AM_CFLAGS): Reintroduce missing -DFFI_DEBUG for
58 --enable-debug builds.
59 * Makefile.in: Rebuilt.
60
612014-02-28 Makoto Kato <m_kato@ga2.so-net.ne.jp>
62
63 * src/closures.c: Fix build failure when using clang for Android.
64
Anthony Greenb40aeda2014-02-28 01:01:29 -0500652014-02-28 Marcin Wojdyr <wojdyr@gmail.com>
66
67 * libffi.pc.in (toolexeclibdir): use -L${toolexeclibdir} instead
68 of -L${libdir}.
69
Anthony Green20698ab2014-02-28 00:56:27 -0500702014-02-28 Paulo Pizarro <paulo.pizarro@gmail.com>
71
72 * src/bfin/sysv.S: Calling functions in shared libraries requires
73 considering the GOT.
74
Anthony Green64bd0692014-02-28 00:52:56 -0500752014-02-28 Josh Triplett <josh@joshtriplett.org>
76
77 * src/x86/ffi64.c (classify_argument): Handle case where
78 FFI_TYPE_LONGDOUBLE == FFI_TYPE_DOUBLE.
79
Anthony Green33c99542014-02-28 00:38:41 -0500802014-02-28 Anthony Green <green@moxielogic.com>
81
82 * ltmain.sh: Generate with libtool-2.4.2.418.
83 * m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Ditto.
84 * configure: Rebuilt.
85
Anthony Green5a88c852014-02-28 00:23:04 -0500862014-02-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
87
88 * configure.ac (AC_ARG_ENABLE struct): Fix typo in help
89 message.
90 (AC_ARG_ENABLE raw_api): Ditto.
91 * configure, fficonfig.h.in: Rebuilt.
92
Anthony Green001aaf42014-02-28 00:20:17 -0500932014-02-28 Will Newton <will.newton@linaro.org>
94
95 * src/arm/sysv.S: Initialize IP register with FP.
96
Anthony Green49f77292014-02-28 00:17:16 -0500972014-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
98
99 * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
100 main CFA reg; update cfi_rel_offset.
101
Heiher40927bd2014-01-21 23:18:27 +08001022014-02-09 Heiher <r@hev.cc>
103
104 * src/mips/n32.S: Fix call floating point va function.
105
Zachary Waldowskif466aad2014-01-21 16:38:31 -05001062014-01-21 Zachary Waldowski <zach@waldowski.me>
107
108 * src/aarch64/ffi.c: Fix missing semicolons on assertions under
109 debug mode.
Zachary Waldowskibfc06b32013-12-30 17:36:39 -0500110
1112013-12-30 Zachary Waldowski <zach@waldowski.me>
112
113 * .gitignore: Exclude darwin_* generated source and build_* trees.
114 * src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
115 previous prototype warnings.
116 * src/arm/ffi.c: Prevent NULL dereference, fix short type warning
117 * src/dlmalloc.c: Fix warnings from set_segment_flags return type,
118 and the native use of size_t for malloc on platforms
119 * src/arm/sysv.S: Use unified syntax. Clang clean-ups for
120 ARM_FUNC_START.
121 * generate-osx-source-and-headers.py: Remove.
122 * build-ios.sh: Remove.
123 * libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
124 x86_64+aarch64 pieces in library. Export headers properly.
125 * src/x86/ffi64.c: More Clang warning clean-ups.
126 * src/closures.c (open_temp_exec_file_dir): Use size_t.
127 * src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
128 * src/aarch64/sysv.S: Use CNAME for global symbols. Only use
129 .size for ELF targets.
130 * src/aarch64/ffi.c: Clean up for double == long double. Clean up
Zachary Waldowskif466aad2014-01-21 16:38:31 -0500131 from Clang warnings. Use Clang cache invalidation builtin. Use
Zachary Waldowskibfc06b32013-12-30 17:36:39 -0500132 size_t in place of unsigned in many places. Accommodate for
133 differences in Apple AArch64 ABI.
134
1352013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
136
137 * generate-darwin-source-and-headers.py: Clean up, modernize,
Anthony Green447483d2014-02-27 15:42:41 -0500138 merged version of previous scripts.
Zachary Waldowskibfc06b32013-12-30 17:36:39 -0500139
Alan Modraab79d6e2013-11-21 06:12:35 -05001402013-11-21 Anthony Green <green@moxielogic.com>
141
142 * configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
143 man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
144
1452013-11-21 Alan Modra <amodra@gmail.com>
146
147 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
148 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
149 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
150 * include/ffi.h.in (ffi_prep_types): Declare.
151 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
152 * src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
153 HAVE_LONG_DOUBLE_VARIANT.
154 * src/powerpc/ffi_powerpc.h: New file.
155 * src/powerpc/ffi.c: Split into..
156 * src/powerpc/ffi_sysv.c: ..new file, and..
157 * src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
158 * src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
159 selection as bits controlling features.
160 * src/powerpc/linux64.S: For consistency, use POWERPC64 rather
161 than __powerpc64__.
162 * src/powerpc/linux64_closure.S: Likewise.
163 * src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
164 inside guard.
165 * src/powerpc/sysv.S: Likewise.
166 * configure: Regenerate.
167 * fficonfig.h.in: Regenerate.
168 * Makefile.in: Regenerate.
169
1702013-11-20 Alan Modra <amodra@gmail.com>
171
172 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
173 NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
174 32-bit versions for 64-bit code.
175 * src/powerpc/linux64_closure.S: Don't use the return value area
176 as a parameter save area on ELFv2.
177
Iain Sandoeaa1f62c2013-11-18 13:11:56 +00001782013-11-18 Iain Sandoe <iain@codesourcery.com>
179
180 * src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
181 * src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
182 labels.
183
Anthony Green2f450822013-11-18 06:52:29 -05001842013-11-18 Anthony Green <green@moxielogic.com>
185
186 * src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
187 function.
188 * src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
189 to appease compiler.
190 Thanks for Gregory P. Smith <greg@krypto.org>.
191
1922013-11-18 Anthony Green <green@moxielogic.com>
193
194 * README (tested): Mention PowerPC ELFv2.
195
Alan Modra164283f2013-11-16 06:38:55 -05001962013-11-16 Alan Modra <amodra@gmail.com>
197
Alan Modra16d56c52013-11-18 06:36:03 -0500198 * src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
199 Don't bl .Luint128.
200
2012013-11-16 Alan Modra <amodra@gmail.com>
202
Alan Modra83f65b62013-11-16 06:53:50 -0500203 * src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
204 test to select parameter save sizing for ELFv2 vs. ELFv1.
205 * src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
206 FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
207 (FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
208 * src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
209 (discover_homogeneous_aggregate): New function.
210 (ffi_prep_args64): Adjust start of param save area for ELFv2.
211 Handle homogenous floating point struct parms.
212 (ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
213 Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
214 homogenous floating point structs.
215 (ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
216 (flush_icache): Compile for ELFv2.
217 (ffi_prep_closure_loc): Set up ELFv2 trampoline.
218 (ffi_closure_helper_LINUX64): Don't return all structs directly
219 to caller. Handle homogenous floating point structs. Handle
220 ELFv2 struct return values.
221 * src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
222 ELFv2. Adjust toc save location. Call function pointer using
223 r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
224 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
225 for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
226 RETVAL. Handle possibly missing parameter save area. Handle
227 ELFv2 return values.
228 (.note.GNU-stack): Move inside outer #ifdef.
229
2302013-11-16 Alan Modra <amodra@gmail.com>
231
Alan Modra36285132013-11-16 06:52:43 -0500232 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
233 change. Do not consume an int arg when returning a small struct
234 for FFI_SYSV ABI.
235 (ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
236 Properly copy bounce buffer to destination.
237 * src/powerpc/sysv.S: Revert 2013-02-08 change.
238 * src/powerpc/ppc_closure.S: Remove stray '+'.
239
2402013-11-16 Alan Modra <amodra@gmail.com>
241
Alan Modra1c065152013-11-16 06:41:36 -0500242 * src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
243 according to __STRUCT_PARM_ALIGN__.
244 (ffi_prep_cif_machdep_core): Likewise.
245 (ffi_closure_helper_LINUX64): Likewise.
246
2472013-11-16 Alan Modra <amodra@gmail.com>
248
Alan Modraa97cf1f2013-11-16 06:40:13 -0500249 * src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
250 (.note.GNU-stack): Move inside outer #ifdef.
251 * src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
252 RETVAL): Define and use throughout.
253 (ffi_closure_LINUX64): Save fprs before buying stack.
254 (.note.GNU-stack): Move inside outer #ifdef.
255
2562013-11-16 Alan Modra <amodra@gmail.com>
257
Alan Modra164283f2013-11-16 06:38:55 -0500258 * src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
259 (FFI_EXTRA_CIF_FIELDS): Define.
260 * src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
261 ABI, not to both fpr and param save area.
262 (ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
263 Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
264 code.
265 (ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
266 (ffi_closure_helper_LINUX64): Pass floating point as per ABI,
267 not to both fpr and parameter save areas.
268
269 * libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
270 function cast and don't call ffi_prep_cif.
271 * libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
272
Andrew Haleydb0ace32013-11-16 06:29:25 -05002732013-11-15 Andrew Haley <aph@redhat.com>
274
Andrew Haley31257b32013-11-16 06:35:51 -0500275 * doc/libffi.texi (Closure Example): Fix the sample code.
276 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
277
2782013-11-15 Andrew Haley <aph@redhat.com>
279
Andrew Haleydb0ace32013-11-16 06:29:25 -0500280 * testsuite/libffi.call/va_struct1.c (main): Fix broken test.
281 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
282 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
283 * testsuite/libffi.call/va_1.c (main): Likewise.
284
David Schneiderf3657da2013-11-14 13:02:16 +01002852013-11-14 David Schneider <david.schneider@bivab.de>
286
Anthony Greende10f502013-11-14 10:56:29 -0500287 * src/arm/ffi.c: Fix register allocation for mixed float and
288 doubles.
289 * testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
290 for many mixed float and double arguments.
291
Alan Modra58c25772013-11-13 16:55:36 -05002922013-11-13 Alan Modra <amodra@gmail.com>
293
294 * doc/libffi.texi (Simple Example): Correct example code.
295 * doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
296
Anthony Green8af42f92013-11-13 16:40:28 -05002972013-11-13 Anthony Green <green@moxielogic.com>
298
299 * include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
300 based build. (Thanks to tmr111116 on github)
301
Anthony Green2f5b7ce2013-11-09 06:16:32 -05003022013-11-09 Anthony Green <green@moxielogic.com>
303
304 * m4/libtool.m4: Refresh.
305 * configure, Makefile.in: Rebuilt.
306 * README: Add more notes about next release.
307
3082013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
309
310 * m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
311 UltraSPARC-IIi as ultrasparc3.
312
Mark Kettenisbecd7542013-11-06 06:43:49 -05003132013-11-06 Mark Kettenis <kettenis@gnu.org>
314
315 * src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
316 16-bytes.
317
Konstantin Belousov05c31092013-11-06 06:40:58 -05003182013-11-06 Konstantin Belousov <kib@freebsd.org>
319
320 * src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
321 source as not requiring executable stack.
322
Anthony Greencf6bf982013-11-02 17:23:59 -04003232013-11-02 Anthony Green <green@moxielogic.com>
324
325 * doc/libffi.texi (The Basics): Clarify return value buffer size
326 requirements. Also, NULL result buffer pointers are no longer
327 supported.
328 * doc/libffi.info: Rebuilt.
329
Anthony Greenc2422172013-11-02 14:08:23 -07003302013-11-02 Mischa Jonker <mjonker@synopsys.com>
331
332 * Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
333 * Makefile.in: Rebuilt.
334
3352013-11-02 David Schneider <david.schneider@bivab.de>
336
337 * src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
338 * testsuite/libffi.call/many_mixed.c: New file.
339 * testsuite/libffi.call/cls_many_mixed_args.c: More tests.
340
Anthony Greenf4b843f2013-11-02 17:01:15 -04003412013-11-02 Vitaly Budovski
342
343 * src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
344
Mark H Weaverd3372c52013-10-26 08:30:06 -04003452013-10-23 Mark H Weaver <mhw@netris.org>
346
347 * src/mips/ffi.c: Fix handling of uint32_t arguments on the
348 MIPS N32 ABI.
349
Sandra Loosemore16b93a22013-10-15 15:33:59 -04003502013-10-13 Sandra Loosemore <sandra@codesourcery.com>
351
352 * README: Add Nios II to table of supported platforms.
353 * Makefile.am (EXTRA_DIST): Add nios2 files.
354 (nodist_libffi_la_SOURCES): Likewise.
355 * Makefile.in: Regenerated.
356 * configure.ac (nios2*-linux*): New host.
357 (NIOS2): Add AM_CONDITIONAL.
358 * configure: Regenerated.
359 * src/nios2/ffi.c: New.
360 * src/nios2/ffitarget.h: New.
361 * src/nios2/sysv.S: New.
362 * src/prep_cif.c (initialize_aggregate): Handle extra structure
363 alignment via FFI_AGGREGATE_ALIGNMENT.
364 (ffi_prep_cif_core): Conditionalize structure return for NIOS2.
365
Sandra Loosemore2f5626c2013-10-15 15:32:16 -04003662013-10-10 Sandra Loosemore <sandra@codesourcery.com>
367
368 * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
369 Fix uninitialized variable.
370
Marcus Shawcroftf64e4a82013-10-15 15:20:14 -04003712013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
372
373 * testsuite/libffi.call/many.c (many): Replace * with +.
374
Anthony Green128cd1d2013-10-08 06:45:51 -04003752013-10-08 Ondřej Bílka <neleai@seznam.cz>
376
377 * src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
378 src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
379 src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
380 src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
381 src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
382 src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
383 spelling errors.
384
Anthony Greend2fcbcd2013-10-08 06:27:46 -04003852013-10-08 Anthony Green <green@moxielogic.com>
386
387 * aclocal.m4, compile, config.guess, config.sub, depcomp,
388 install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
389 * configure.ac: Update version to 3.0.14-rc0.
390 * Makefile.in, configure, Makefile.in, include/Makefile.in,
391 man/Makefile.in, testsuite/Makefile.in: Rebuilt.
Anthony Green128cd1d2013-10-08 06:45:51 -0400392 * README: Mention M88K and VAX.
Anthony Greend2fcbcd2013-10-08 06:27:46 -0400393
3942013-07-15 Miod Vallat <miod@openbsd.org>
395
396 * Makefile.am,
397 configure.ac,
398 src/m88k/ffi.c,
399 src/m88k/ffitarget.h,
400 src/m88k/obsd.S,
401 src/vax/elfbsd.S,
402 src/vax/ffi.c,
403 src/vax/ffitarget.h: Add m88k and vax support.
404
Anthony Greend3d099b2013-07-02 16:11:38 -04004052013-06-24 Alan Modra <amodra@gmail.com>
406
407 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
408 before statements.
409 (ffi_prep_args64): Support little-endian.
410 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
411 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
412 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
413
Mischa Jonkerb082e152013-06-10 16:19:33 +02004142013-06-12 Mischa Jonker <mjonker@synopsys.com>
415
416 * configure.ac: Add support for ARC.
417 * Makefile.am: Likewise.
418 * README: Add ARC details.
419 * src/arc/arcompact.S: New.
420 * src/arc/ffi.c: Likewise.
421 * src/arc/ffitarget.h: Likewise.
422
David Schneider4750e3c2013-03-28 16:56:36 +01004232013-03-28 David Schneider <david.schneider@bivab.de>
424
425 * src/arm/ffi.c: Fix support for ARM hard-float calling convention.
426 * src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
427 * testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
428 mixed arguments, many doubles.
429 * testsuite/libffi.call/many_double.c: testcase for calling a function using
430 more than 8 doubles.
431 * testcase/libffi.call/many.c: use absolute value to check result against an
432 epsilon
433
Anthony Greencb32c812013-03-17 09:27:55 -04004342013-03-17 Anthony Green <green@moxielogic.com>
435
Anthony Green12b18862013-03-17 18:32:12 -0400436 * README: Update for 3.0.13.
437 * configure.ac: Ditto.
438 * configure: Rebuilt.
439 * doc/*: Update version.
440
4412013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
442
443 * src/closures.c (is_emutramp_enabled
444 [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
445 enclosing #if scope.
446
4472013-03-17 Anthony Green <green@moxielogic.com>
448
Anthony Greencb32c812013-03-17 09:27:55 -0400449 * configure.ac: Only modify toolexecdir in certain cases.
450 * configure: Rebuilt.
451
Anthony Green4acf0052013-03-16 08:18:45 -04004522013-03-16 Gilles Talis <gilles.talis@gmail.com>
453
454 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
455 fparg_count,etc on __NO_FPRS__ targets.
456
Anthony Green8a286f52013-03-16 08:01:19 -04004572013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
458
Anthony Green4acf0052013-03-16 08:18:45 -0400459 * src/m68k/sysv.S (epilogue): Don't use extb instruction on
Anthony Green8a286f52013-03-16 08:01:19 -0400460 m680000 machines.
461
Anthony Green211a9eb2013-03-16 04:24:40 -07004622013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
463
464 * src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
465
Anthony Green2fb527a2013-03-16 07:46:38 -04004662013-03-13 Markos Chandras <markos.chandras@imgtec.com>
467
468 * configure.ac: Add support for Imagination Technologies Meta.
469 * Makefile.am: Likewise.
470 * README: Add Imagination Technologies Meta details.
471 * src/metag/ffi.c: New.
472 * src/metag/ffitarget.h: Likewise.
473 * src/metag/sysv.S: Likewise.
474
Anthony Green675c9832013-03-16 08:12:38 -04004752013-02-24 Andreas Schwab <schwab@linux-m68k.org>
476
477 * doc/libffi.texi (Structures): Fix missing category argument of
478 @deftp.
479
Anthony Greenf308faf2013-02-11 14:25:13 -05004802013-02-11 Anthony Green <green@moxielogic.com>
481
482 * configure.ac: Update release number to 3.0.12.
483 * configure: Rebuilt.
484 * README: Update release info.
485
4862013-02-10 Anthony Green <green@moxielogic.com>
487
488 * README: Add Moxie.
489 * src/moxie/ffi.c: Created.
490 * src/moxie/eabi.S: Created.
491 * src/moxie/ffitarget.h: Created.
492 * Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
493 * Makefile.in: Rebuilt.
494 * configure.ac: Add Moxie.
495 * configure: Rebuilt.
496 * testsuite/libffi.call/huge_struct.c: Disable format string
497 warnings for moxie*-*-elf tests.
498
4992013-02-10 Anthony Green <green@moxielogic.com>
500
501 * Makefile.am (LTLDFLAGS): Fix reference.
502 * Makefile.in: Rebuilt.
503
Anthony Green4ea22e52013-02-10 08:48:38 -05005042013-02-10 Anthony Green <green@moxielogic.com>
505
506 * README: Update supported platforms. Update test results link.
507
Anthony Green10e77222013-02-10 08:47:26 -05005082013-02-09 Anthony Green <green@moxielogic.com>
509
510 * testsuite/libffi.call/negint.c: Remove forced -O2.
511 * testsuite/libffi.call/many2.c (foo): Remove GCCism.
512 * testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
513
514 * src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
515 closure return type fix developed by Martin v. Löwis for cpython
516 fork.
517
Anthony Green70b11b42013-02-08 16:12:19 -05005182013-02-08 Andreas Tobler <andreast@fgznet.ch>
519
520 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
521 support.
522 * src/powerpc/sysv.S: Ditto.
523
Anthony Green63ba1fa2013-02-08 15:18:19 -05005242013-02-08 Anthony Green <green@moxielogic.com>
525
526 * testsuite/libffi.call/cls_longdouble.c: Remove xfail for
527 arm*-*-*.
528
5292013-02-08 Anthony Green <green@moxielogic.com>
530
531 * src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
532
Anthony Green24fbca42013-02-08 14:19:56 -05005332013-02-08 Matthias Klose <doko@ubuntu.com>
Anthony Greenb0fa11c2013-02-08 14:17:13 -0500534
535 * man/ffi_prep_cif.3: Clean up for debian linter.
536
Anthony Green24fbca42013-02-08 14:19:56 -05005372013-02-08 Peter Bergner <bergner@vnet.ibm.com>
Anthony Green8bd15d12013-02-08 13:56:37 -0500538
539 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
540 on the stack.
541
Anthony Greencb03ea82013-02-08 12:25:18 -05005422013-02-08 Anthony Green <green@moxielogic.com>
543
Anthony Green7aab8252013-02-08 13:26:21 -0500544 * Makefile.am (EXTRA_DIST): Add missing files.
545 * testsuite/Makefile.am (EXTRA_DIST): Ditto.
546 * Makefile.in: Rebuilt.
547
5482013-02-08 Anthony Green <green@moxielogic.com>
549
Anthony Greencb03ea82013-02-08 12:25:18 -0500550 * configure.ac: Move sparc asm config checks to within functions
551 for compatibility with sun tools.
552 * configure: Rebuilt.
553 * src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
554 systems.
555 * src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
556 flusher.
557
Anthony Green35ee8d42013-02-08 07:12:41 -05005582013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
559
560 * src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
561 small big-endian structures.
562 (ffi_prep_args): Ditto.
563
Anthony Greened6ae952013-02-07 16:43:36 -05005642013-02-07 Anthony Green <green@moxielogic.com>
565
Anthony Green9db7e1a2013-02-07 21:06:08 -0500566 * src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
567 (effectively hiding ffi_call_v8).
568
5692013-02-07 Anthony Green <green@moxielogic.com>
570
Anthony Greence0138e2013-02-07 18:04:01 -0500571 * configure.ac: Update bug reporting address.
572 * configure.in: Rebuild.
573
Anthony Greenfd07c9e2013-02-07 18:00:36 -0500574 * src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
575 Sun compiler.
576 * src/sparc/ffi.c (ffi_call): Remove warning.
577 Call ffi_flush_icache for non-GCC builds.
578 (ffi_prep_closure_loc): Use ffi_flush_icache.
579
Anthony Greened6ae952013-02-07 16:43:36 -0500580 * Makefile.am (EXTRA_DIST): Add libtool-ldflags.
581 * Makefile.in: Rebuilt.
582 * libtool-ldflags: New file.
583
Anthony Greenffef2e02013-02-07 15:47:01 -05005842013-02-07 Daniel Schepler <dschepler@gmail.com>
585
586 * configure.ac: Correctly identify x32 systems as 64-bit.
587 * m4/libtool.m4: Remove libtool expr error.
588 * aclocal.m4, configure: Rebuilt.
589
Anthony Greenf3a4f3f2013-02-07 09:57:20 -05005902013-02-07 Anthony Green <green@moxielogic.com>
591
Anthony Green176aa9d2013-02-07 15:29:22 -0500592 * configure.ac: Fix GCC usage test.
593 * configure: Rebuilt.
Anthony Green95eeceb2013-02-07 15:32:46 -0500594 * README: Mention LLVM/GCC x86_64 issue.
595 * testsuite/Makefile.in: Rebuilt.
Anthony Green176aa9d2013-02-07 15:29:22 -0500596
5972013-02-07 Anthony Green <green@moxielogic.com>
598
Anthony Greenf3a4f3f2013-02-07 09:57:20 -0500599 * testsuite/libffi.call/cls_double_va.c (main): Replace // style
600 comments with /* */ for xlc compiler.
601 * testsuite/libffi.call/stret_large.c (main): Ditto.
602 * testsuite/libffi.call/stret_large2.c (main): Ditto.
603 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
604 * testsuite/libffi.call/huge_struct.c (main): Ditto.
605 * testsuite/libffi.call/float_va.c (main): Ditto.
606 * testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
607 * testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
608 * testsuite/libffi.call/cls_pointer.c (main): Ditto.
609 * testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
610
Anthony Greenf7cd61e2013-02-06 17:38:04 -05006112013-02-06 Anthony Green <green@moxielogic.com>
612
Anthony Green522f8fe2013-02-06 20:31:31 -0500613 * man/ffi_prep_cif.3: Clean up for debian lintian checker.
614
6152013-02-06 Anthony Green <green@moxielogic.com>
616
Anthony Greenf7cd61e2013-02-06 17:38:04 -0500617 * Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
618 * Makefile.in: Rebuild.
619
Anthony Green6a790122013-02-06 17:37:15 -05006202013-02-02 Mark H Weaver <mhw@netris.org>
621
622 * src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
623 via general purpose registers.
624
Anthony Greenaeb87192013-01-21 07:37:30 -05006252013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
626
627 * README: Add MicroBlaze details.
628 * Makefile.am: Add MicroBlaze support.
629 * configure.ac: Likewise.
630 * src/microblaze/ffi.c: New.
631 * src/microblaze/ffitarget.h: Likewise.
632 * src/microblaze/sysv.S: Likewise.
633
6342013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
635 * testsuite/libffi.call/return_uc.c: Fixed issue.
636
Anthony Green20cae322013-01-21 07:07:38 -05006372013-01-21 Chris Zankel <chris@zankel.net>
638
639 * README: Add Xtensa support.
640 * Makefile.am: Likewise.
641 * configure.ac: Likewise.
642 * Makefile.in Regenerate.
643 * configure: Likewise.
644 * src/prep_cif.c: Handle Xtensa.
645 * src/xtensa: New directory.
646 * src/xtensa/ffi.c: New file.
647 * src/xtensa/ffitarget.h: Ditto.
648 * src/xtensa/sysv.S: Ditto.
649
Anthony Greenbff052d2013-01-11 10:24:32 -05006502013-01-11 Anthony Green <green@moxielogic.com>
651
Anthony Green05fbe1f2013-01-11 16:54:40 -0500652 * src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
653 comments with /* */ for xlc compiler.
654 * src/powerpc/aix.S (ffi_call_AIX): Ditto.
Anthony Greenf03eab02013-01-11 17:14:11 -0500655 * testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
656 deprecated inline function.
657 * testsuite/libffi.special/ffitestcxx.h: Ditto.
Anthony Green05fbe1f2013-01-11 16:54:40 -0500658 * README: Add update for AIX support.
659
6602013-01-11 Anthony Green <green@moxielogic.com>
661
Anthony Greenbff052d2013-01-11 10:24:32 -0500662 * configure.ac: Robustify pc relative reloc check.
663 * m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
664 changing option for 32-bit x86.
665 * aclocal.m4, configure: Rebuilt.
666 * README: Update supported target list.
667
Anthony Green2d9b3932013-01-09 21:14:54 -05006682013-01-10 Anthony Green <green@moxielogic.com>
669
Anthony Greencd41aea2013-01-10 17:25:45 -0500670 * README (tested): Add Compiler column to table.
671
6722013-01-10 Anthony Green <green@moxielogic.com>
673
Anthony Green8bf987d2013-01-10 17:24:51 -0500674 * src/x86/ffi64.c (struct register_args): Make sse array and array
675 of unions for sunpro compiler compatibility.
676
6772013-01-10 Anthony Green <green@moxielogic.com>
678
Anthony Green13e2d7b2013-01-10 10:52:02 -0500679 * configure.ac: Test target platform size_t size. Handle both 32
680 and 64-bit builds for x86_64-* and i?86-* targets (allowing for
681 CFLAG option to change default settings).
682 * configure, aclocal.m4: Rebuilt.
683
6842013-01-10 Anthony Green <green@moxielogic.com>
685
Anthony Green51415432013-01-10 07:35:53 -0500686 * testsuite/libffi.special/special.exp: Only run exception
687 handling tests when using GNU compiler.
688
Anthony Green56ba8d82013-01-10 07:25:10 -0500689 * m4/ax_compiler_vendor.m4: New file.
690 * configure.ac: Test for compiler vendor and don't use
691 AX_CFLAGS_WARN_ALL with the sun compiler.
692 * aclocal.m4, configure: Rebuilt.
693
6942013-01-10 Anthony Green <green@moxielogic.com>
695
Anthony Green6a028ca2013-01-10 01:19:43 -0500696 * include/ffi_common.h: Don't use GCCisms to define types when
697 building with the SUNPRO compiler.
698
6992013-01-10 Anthony Green <green@moxielogic.com>
700
Anthony Green2d9b3932013-01-09 21:14:54 -0500701 * configure.ac: Put local.exp in the right place.
702 * configure: Rebuilt.
703
704 * src/x86/ffi.c: Update comment about regparm function attributes.
705 * src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
706 that all function arguments be passed on the stack (no regparm
707 support).
708
Anthony Greenf7879bc2013-01-08 07:30:28 -05007092013-01-08 Anthony Green <green@moxielogic.com>
710
Anthony Green83089842013-01-08 15:14:21 -0500711 * configure.ac: Generate local.exp. This sets CC_FOR_TARGET
712 when we are using the vendor compiler.
713 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
714 ../local.exp.
715 * configure, testsuite/Makefile.in: Rebuilt.
716
Anthony Greenf26c7ca2013-01-08 14:47:05 -0500717 * testsuite/libffi.call/call.exp: Run tests with different
718 options, depending on whether or not we are using gcc or the
719 vendor compiler.
720 * testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
721 whether or not we are building/testing with gcc.
722
7232013-01-08 Anthony Green <green@moxielogic.com>
724
Anthony Green74c776e2013-01-08 12:25:54 -0500725 * configure.ac: Switch x86 solaris target to X86 by default.
726 * configure: Rebuilt.
727
7282013-01-08 Anthony Green <green@moxielogic.com>
729
Anthony Green8962c8c2013-01-08 12:22:24 -0500730 * configure.ac: Fix test for read-only eh_frame.
731 * configure: Rebuilt.
732
7332013-01-08 Anthony Green <green@moxielogic.com>
734
Anthony Green35ddb692013-01-08 07:53:37 -0500735 * src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
736 when building with the GNU toolchain.
Anthony Greenf7879bc2013-01-08 07:30:28 -0500737 * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
738 compiler.
739
Anthony Green8f4772f2013-01-07 06:14:53 -05007402013-01-07 Thorsten Glaser <tg@mirbsd.org>
741
Anthony Green67cea902013-01-07 06:30:24 -0500742 * testsuite/libffi.call/cls_uchar_va.c,
743 testsuite/libffi.call/cls_ushort_va.c,
744 testsuite/libffi.call/va_1.c: Testsuite fixes.
745
7462013-01-07 Thorsten Glaser <tg@mirbsd.org>
747
Anthony Green8f4772f2013-01-07 06:14:53 -0500748 * src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
749 (ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
750 * src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
751
Anthony Greenea7f8442013-01-04 09:09:32 -05007522013-01-04 Anthony Green <green@moxielogic.com>
753
754 * Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
755 and -Wall. This is set in the configure script after testing for
756 GCC.
757 * Makefile.in: Rebuilt.
758
Anthony Greenf06c0f12013-01-02 09:39:17 -05007592013-01-02 rofl0r <https://github.com/rofl0r>
760
761 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
762 when long double == double.
763
7642013-01-02 Reini Urban <rurban@x-ray.at>
765
766 * Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
767 (required for shared libs on cygwin/mingw).
768 * Makefile.in: Rebuilt.
769
Anthony Greend3d099b2013-07-02 16:11:38 -04007702012-10-31 Alan Modra <amodra@gmail.co>
Anthony Greendfadfb12012-10-31 06:46:41 -0400771
772 * src/powerpc/linux64_closure.S: Add new ABI support.
773 * src/powerpc/linux64.S: Likewise.
774
Anthony Greene944b8c2012-10-30 14:06:09 -04007752012-10-30 Magnus Granberg <zorry@gentoo.org>
776 Pavel Labushev <pavel.labushev@runbox.ru>
777
778 * configure.ac: New options pax_emutramp
779 * configure, fficonfig.h.in: Regenerated
780 * src/closures.c: New function emutramp_enabled_check() and
781 checks.
782
Anthony Greenf3429962012-10-30 07:42:27 -04007832012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
784
785 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
786 lion) and future version.
787 * configure: Rebuild.
788
Anthony Green58e8b662012-10-30 07:07:19 -04007892012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
790 Marcus Shawcroft <marcus.shawcroft at arm.com>
791
792 * README: Add details of aarch64 port.
793 * src/aarch64/ffi.c: New.
794 * src/aarch64/ffitarget.h: Likewise.
795 * src/aarch64/sysv.S: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500796 * Makefile.am: Support aarch64.
797 * configure.ac: Support aarch64.
798 * Makefile.in, configure: Rebuilt.
Anthony Green58e8b662012-10-30 07:07:19 -0400799
8002012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
801 Marcus Shawcroft <marcus.shawcroft at arm.com>
802
803 * testsuite/lib/libffi.exp: Add support for aarch64.
804 * testsuite/libffi.call/cls_struct_va1.c: New.
805 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
806 * testsuite/libffi.call/cls_uint_va.c: Likewise.
Anthony Greenf680b592012-11-06 16:00:40 -0500807 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
Anthony Green58e8b662012-10-30 07:07:19 -0400808 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
809 * testsuite/libffi.call/nested_struct11.c: Likewise.
810 * testsuite/libffi.call/uninitialized.c: Likewise.
811 * testsuite/libffi.call/va_1.c: Likewise.
812 * testsuite/libffi.call/va_struct1.c: Likewise.
813 * testsuite/libffi.call/va_struct2.c: Likewise.
814 * testsuite/libffi.call/va_struct3.c: Likewise.
815
Anthony Green9c00a3f2012-10-12 16:46:06 -04008162012-10-12 Walter Lee <walt@tilera.com>
817
818 * Makefile.am: Add TILE-Gx/TILEPro support.
819 * configure.ac: Likewise.
820 * Makefile.in: Regenerate.
821 * configure: Likewise.
822 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
823 * src/tile: New directory.
824 * src/tile/ffi.c: New file.
825 * src/tile/ffitarget.h: Ditto.
826 * src/tile/tile.S: Ditto.
827
8282012-10-12 Matthias Klose <doko@ubuntu.com>
829
830 * generate-osx-source-and-headers.py: Normalize whitespace.
831
Anthony Green048d2f42012-10-11 10:55:25 -04008322012-09-14 David Edelsohn <dje.gcc@gmail.com>
833
834 * configure: Regenerated.
835
8362012-08-26 Andrew Pinski <apinski@cavium.com>
837
838 PR libffi/53014
839 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
840 soft-float.
841
8422012-08-08 Uros Bizjak <ubizjak@gmail.com>
843
844 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
845 just return FFI_BAD_ABI when things are wrong.
846
8472012-07-18 H.J. Lu <hongjiu.lu@intel.com>
848
849 PR libffi/53982
850 PR libffi/53973
851 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
852 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
853
8542012-05-16 H.J. Lu <hongjiu.lu@intel.com>
855
856 * configure: Regenerated.
857
Nicolas Lelongd330f192012-05-05 09:37:02 -04008582012-05-05 Nicolas Lelong
859
860 * libffi.xcodeproj/project.pbxproj: Fixes.
861 * README: Update for iOS builds.
862
Anthony Green213ed152012-04-27 01:34:15 -04008632012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
864
865 * configure.ac: Add Blackfin/sysv support
866 * Makefile.am: Add Blackfin/sysv support
867 * src/bfin/ffi.c: Add Blackfin/sysv support
868 * src/bfin/ffitarget.h: Add Blackfin/sysv support
Anthony Green213ed152012-04-27 01:34:15 -0400869
Anthony Green7e0a4122012-04-11 22:47:44 -04008702012-04-11 Anthony Green <green@moxielogic.com>
871
872 * Makefile.am (EXTRA_DIST): Add new script.
873 * Makefile.in: Rebuilt.
874
Zachary Waldowski39e6a582012-04-11 22:39:46 -04008752012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
876
877 * generate-ios-source-and-headers.py,
878 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
879 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
880 generation into an Xcode "run script" phase. Include both as
881 Xcode build scripts. Don't always regenerate config files.
882
Anthony Green853cc722012-04-10 06:33:33 -04008832012-04-10 Anthony Green <green@moxielogic.com>
884
885 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
886
Anthony Green3f502302012-04-06 20:34:51 -04008872012-04-06 Anthony Green <green@moxielogic.com>
888
889 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
890 * Makefile.in: Rebuilt.
891
Mike Lewisebb8e892012-04-06 20:02:08 -04008922012-04-06 Mike Lewis <mikelikespie@gmail.com>
893
894 * generate-ios-source-and-headers.py: New file.
895 * libffi.xcodeproj/project.pbxproj: New file.
896 * README: Update instructions on building iOS binary.
897 * build-ios.sh: Delete.
898
Anthony Greena044a562012-04-06 10:39:10 -04008992012-04-06 Anthony Green <green@moxielogic.com>
900
901 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
902 compilers, then use it.
903
Anthony Green048d2f42012-10-11 10:55:25 -04009042012-04-06 H.J. Lu <hongjiu.lu@intel.com>
905
906 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
907
Anthony Green59bb61a2012-04-06 08:26:14 -04009082012-04-06 Anthony Green <green@moxielogic.com>
909
910 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
911 * testsuite/Makefile.in: Rebuilt.
912
Zachary Waldowski39dccdd2012-04-05 12:32:41 -04009132012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
914
915 * include/ffi.h.in: Add missing trampoline table fields.
916 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
917 in CNAME.
918 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
919
Anthony Green089dbce2013-01-02 08:37:35 -05009202012-04-02 Peter Bergner <bergner@vnet.ibm.com>
921
922 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
923 Silence casting pointer to integer of different size warning.
924 Delete goto to previously deleted label.
925 (ffi_call): Silence possibly undefined warning.
926 (ffi_closure_helper_SYSV): Declare variable type.
927
9282012-04-02 Peter Rosin <peda@lysator.liu.se>
929
930 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
931 value in the Intel version as is already done for the AT&T version.
932 (ffi_closure_SYSV): Likewise.
933 (ffi_closure_raw_SYSV): Likewise.
934 (ffi_closure_STDCALL): Likewise.
935
Peter Rosin0a1ab122012-03-30 08:14:08 -04009362012-03-29 Peter Rosin <peda@lysator.liu.se>
937
938 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
939 generation, fix the ENDP label and remove the surplus third arg
940 from the 'lea' insn.
941
9422012-03-29 Peter Rosin <peda@lysator.liu.se>
943
944 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
945 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
946 it. Also instruct the assembler to add a frame to the function.
947
9482012-03-23 Peter Rosin <peda@lysator.liu.se>
949
950 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
951 * Makefile.in: Rebuilt.
952 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
953 to all data exports, when compiling libffi clients using MSVC.
954
9552012-03-29 Peter Rosin <peda@lysator.liu.se>
956
957 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
958 make it the default for MSVC.
959 (FFI_TYPE_MS_STRUCT): New structure return convention.
960 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
961 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
962 instead of an ordinary FFI_TYPE_STRUCT.
963 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
964 (ffi_call): Likewise.
965 (ffi_prep_incoming_args_SYSV): Likewise.
966 (ffi_raw_call): Likewise.
967 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
968 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
969 return a pointer to the result structure in eax and don't pop
970 that pointer from the stack, the caller takes care of it.
971 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
972 (ffi_closure_raw_SYSV): Likewise.
973
9742012-03-22 Peter Rosin <peda@lysator.liu.se>
975
976 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
977 assembly version with Intel syntax.
978 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
979
9802012-03-23 Peter Rosin <peda@lysator.liu.se>
981
982 * testsuite/libffi.call/ffitest.h: Provide abstration of
983 __attribute__((fastcall)) in the form of a __FASTCALL__
984 define. Define it to __fastcall for MSVC.
985 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
986 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
987 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
988 * testsuite/libffi.call/strlen2_win32.c: Likewise.
989 * testsuite/libffi.call/struct1_win32.c: Likewise.
990 * testsuite/libffi.call/struct2_win32.c: Likewise.
991
9922012-03-22 Peter Rosin <peda@lysator.liu.se>
993
994 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
995 frame on function entry, MASM adds one automatically.
996
9972012-03-22 Peter Rosin <peda@lysator.liu.se>
998
999 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
1000 bits in the MSVC headers.
1001
10022012-03-22 Peter Rosin <peda@lysator.liu.se>
1003
1004 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
1005 with no declarations after statements.
1006 * testsuite/libffi.call/cls_16byte.c: Likewise.
1007 * testsuite/libffi.call/cls_18byte.c: Likewise.
1008 * testsuite/libffi.call/cls_19byte.c: Likewise.
1009 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1010 * testsuite/libffi.call/cls_20byte.c: Likewise.
1011 * testsuite/libffi.call/cls_20byte1.c: Likewise.
1012 * testsuite/libffi.call/cls_24byte.c: Likewise.
1013 * testsuite/libffi.call/cls_2byte.c: Likewise.
1014 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1015 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1016 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1017 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1018 * testsuite/libffi.call/cls_4byte.c: Likewise.
1019 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
1020 * testsuite/libffi.call/cls_5byte.c: Likewise.
1021 * testsuite/libffi.call/cls_64byte.c: Likewise.
1022 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
1023 * testsuite/libffi.call/cls_6byte.c: Likewise.
1024 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
1025 * testsuite/libffi.call/cls_7byte.c: Likewise.
1026 * testsuite/libffi.call/cls_8byte.c: Likewise.
1027 * testsuite/libffi.call/cls_9byte1.c: Likewise.
1028 * testsuite/libffi.call/cls_9byte2.c: Likewise.
1029 * testsuite/libffi.call/cls_align_double.c: Likewise.
1030 * testsuite/libffi.call/cls_align_float.c: Likewise.
1031 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1032 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
1033 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1034 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1035 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1036 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1037 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1038 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1039 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1040 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1041 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
1042 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
1043 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
1044 * testsuite/libffi.call/huge_struct.c: Likewise.
1045 * testsuite/libffi.call/nested_struct.c: Likewise.
1046 * testsuite/libffi.call/nested_struct1.c: Likewise.
1047 * testsuite/libffi.call/nested_struct10.c: Likewise.
1048 * testsuite/libffi.call/nested_struct2.c: Likewise.
1049 * testsuite/libffi.call/nested_struct3.c: Likewise.
1050 * testsuite/libffi.call/nested_struct4.c: Likewise.
1051 * testsuite/libffi.call/nested_struct5.c: Likewise.
1052 * testsuite/libffi.call/nested_struct6.c: Likewise.
1053 * testsuite/libffi.call/nested_struct7.c: Likewise.
1054 * testsuite/libffi.call/nested_struct8.c: Likewise.
1055 * testsuite/libffi.call/nested_struct9.c: Likewise.
1056 * testsuite/libffi.call/stret_large.c: Likewise.
1057 * testsuite/libffi.call/stret_large2.c: Likewise.
1058 * testsuite/libffi.call/stret_medium.c: Likewise.
1059 * testsuite/libffi.call/stret_medium2.c: Likewise.
1060 * testsuite/libffi.call/struct1.c: Likewise.
1061 * testsuite/libffi.call/struct1_win32.c: Likewise.
1062 * testsuite/libffi.call/struct2.c: Likewise.
1063 * testsuite/libffi.call/struct2_win32.c: Likewise.
1064 * testsuite/libffi.call/struct3.c: Likewise.
1065 * testsuite/libffi.call/struct4.c: Likewise.
1066 * testsuite/libffi.call/struct5.c: Likewise.
1067 * testsuite/libffi.call/struct6.c: Likewise.
1068 * testsuite/libffi.call/struct7.c: Likewise.
1069 * testsuite/libffi.call/struct8.c: Likewise.
1070 * testsuite/libffi.call/struct9.c: Likewise.
1071 * testsuite/libffi.call/testclosure.c: Likewise.
1072
Anthony Greene72ed5e2012-03-21 09:52:28 -040010732012-03-21 Peter Rosin <peda@lysator.liu.se>
1074
1075 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
1076 printing doubles (%lf is for long doubles).
1077 (main): Likewise.
1078
Anthony Greenbd78c9c2012-03-21 08:09:30 -040010792012-03-21 Peter Rosin <peda@lysator.liu.se>
1080
1081 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1082 (set_ld_library_path_env_vars): Add the library search dir to PATH
1083 (and save PATH for later).
1084 (restore_ld_library_path_env_vars): Restore PATH.
1085
Anthony Greenccee09a2013-01-02 08:41:55 -050010862012-03-21 Peter Rosin <peda@lysator.liu.se>
1087
1088 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1089 (set_ld_library_path_env_vars): Add the library search dir to PATH
1090 (and save PATH for later).
1091 (restore_ld_library_path_env_vars): Restore PATH.
1092
Anthony Greenbd78c9c2012-03-21 08:09:30 -040010932012-03-20 Peter Rosin <peda@lysator.liu.se>
1094
1095 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1096 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1097 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1098
Anthony Green048d2f42012-10-11 10:55:25 -040010992012-03-20 Peter Rosin <peda@lysator.liu.se>
1100
1101 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1102 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1103 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1104
Anthony Greenbd78c9c2012-03-21 08:09:30 -040011052012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
1106
1107 * src/m68k/ffi.c: Add MINT support.
1108 * src/m68k/sysv.S: Ditto.
1109
Anthony Green048d2f42012-10-11 10:55:25 -040011102012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
1111
1112 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1113 ffi_call_VFP().
1114 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1115 ffi_closure_VFP.
1116 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1117
Anthony Green089dbce2013-01-02 08:37:35 -050011182012-03-19 chennam <csit@axway.com>
Anthony Green65f40c32012-04-03 07:35:59 -04001119
Anthony Green089dbce2013-01-02 08:37:35 -05001120 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1121 support.
Anthony Green048d2f42012-10-11 10:55:25 -04001122
Anthony Green84d32532012-03-19 23:07:35 -040011232012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
1124
1125 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1126 just return FFI_BAD_ABI when things are wrong.
1127 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1128
11292012-03-09 David Edelsohn <dje.gcc@gmail.com>
1130
1131 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1132 change to return value of ffi_closure_helper_DARWIN and load type
1133 from return type.
1134
Anthony Green964c5b92012-03-03 14:46:20 -050011352012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1138 long.
1139 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1140 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1141 first.
1142
1143 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1144 (ffi_arg): Set to unsigned long long for x32.
1145 (ffi_sarg): Set to long long for x32.
1146
11472012-03-03 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1150
Anthony Green6c194232012-03-03 14:17:54 -050011512012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
1152
1153 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1154 windows-like hosts.
1155 * configure: Rebuilt.
1156
Anthony Green7c5e60b2012-03-29 08:48:22 -040011572012-02-27 Mikael Pettersson <mikpe@it.uu.se>
1158
1159 PR libffi/52223
1160 * Makefile.am (FLAGS_TO_PASS): Define.
1161 * Makefile.in: Regenerate.
1162
Anthony Green8360bf12012-02-23 07:01:13 -050011632012-02-23 Anthony Green <green@moxielogic.com>
1164
1165 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1166 directly.
1167
Anthony Green7c5e60b2012-03-29 08:48:22 -040011682012-02-23 Kai Tietz <ktietz@redhat.com>
1169
1170 PR libffi/52221
1171 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1172 prototype.
1173 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1174 thiscall-convention.
1175 (ffi_raw_call): Use ffi_prep_args_raw.
1176 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1177 implementation for stub.
1178
Anthony Greendee20f82012-02-10 13:06:46 -050011792012-02-10 Kai Tietz <ktietz@redhat.com>
1180
1181 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1182 windows target.
1183 * configure: Regenerated.
Anthony Green8360bf12012-02-23 07:01:13 -05001184
Anthony Greendee20f82012-02-10 13:06:46 -050011852012-02-08 Kai Tietz <ktietz@redhat.com>
1186
1187 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1188 also FFI_THISCALL.
1189 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1190 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1191 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1192 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1193 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1194 for thiscall-calling convention.
1195 * testsuite/libffi.call/closure_thiscall.c: New test.
1196
Anthony Green1ff9c602012-02-01 16:34:30 -060011972012-01-28 Kai Tietz <ktietz@redhat.com>
1198
1199 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1200 argument to prototype for specify calling-convention.
1201 (ffi_call): Add support for stdcall/thiscall convention.
1202 (ffi_prep_args): Likewise.
1203 (ffi_raw_call): Likewise.
1204 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1205 FFI_FASTCALL.
1206 * src/x86/win32.S (_ffi_call_win32): Add support for
1207 fastcall/thiscall calling-convention calls.
1208 * testsuite/libffi.call/fastthis1_win32.c: New test.
1209 * testsuite/libffi.call/fastthis2_win32.c: New test.
1210 * testsuite/libffi.call/fastthis3_win32.c: New test.
1211 * testsuite/libffi.call/strlen2_win32.c: New test.
1212 * testsuite/libffi.call/many2_win32.c: New test.
1213 * testsuite/libffi.call/struct1_win32.c: New test.
1214 * testsuite/libffi.call/struct2_win32.c: New test.
1215
Anthony Green211060e2012-01-23 14:24:01 -050012162012-01-23 Uros Bizjak <ubizjak@gmail.com>
1217
1218 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1219
Anthony Green1ff9c602012-02-01 16:34:30 -060012202012-01-23 Anthony Green <green@moxielogic.com>
1221 Chris Young <cdyoung@ntlworld.com>
Anthony Green9e9c4ae2012-01-23 14:11:23 -05001222
1223 * configure.ac: Add Amiga support.
1224 * configure: Rebuilt.
1225
12262012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
Anthony Green8efc0b12012-01-23 13:47:38 -05001227
1228 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1229
Anthony Green1ff9c602012-02-01 16:34:30 -060012302012-01-23 Andreas Schwab <schwab@linux-m68k.org>
Anthony Greencd2277c2012-01-23 13:43:38 -05001231
1232 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1233 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1234
Anthony Greenc365ee72012-01-23 11:13:18 -050012352012-01-19 Jakub Jelinek <jakub@redhat.com>
1236
1237 PR rtl-optimization/48496
1238 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1239
12402012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1241
1242 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1243 * configure: Regenerate.
1244
12452011-12-07 Andrew Pinski <apinski@cavium.com>
1246
1247 PR libffi/50051
1248 * src/mips/n32.S: Add ".set mips4".
1249
12502011-11-21 Andreas Tobler <andreast@fgznet.ch>
1251
1252 * configure: Regenerate.
1253
Anthony Greenff9454d2011-11-12 17:18:51 -050012542011-11-12 David Gilbert <david.gilbert@linaro.org>
1255
1256 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1257 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1258 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1259 src/cris/ffi.c, src/prep_cif.c,
1260 testsuite/libffi.call/cls_double_va.c,
1261 testsuite/libffi.call/cls_longdouble_va.c,
1262 testsuite/libffi.call/float_va.c: Many changes to support variadic
1263 function calls.
1264
Anthony Green52891f82011-11-12 16:35:55 -050012652011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1266
1267 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1268 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1269 softfloat powerpc variants.
1270
Anthony Green6a6e7f82011-11-12 16:20:42 -050012712011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
1272
1273 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1274 * configure: Rebuilt.
1275
Anthony Greend52fbed2011-11-12 16:13:41 -050012762011-11-12 Timothy Wall <twall@users.sf.net>
1277
1278 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1279 alignment of 4 for wince on ARM.
1280
Anthony Greenaf18df22011-11-12 15:52:08 -050012812011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1282 Anthony Green <green@moxielogic.com>
1283
1284 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1285 instructions (not available on some cores, like the PPC440).
1286
Anthony Greenc411f142011-11-12 07:32:36 -050012872011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
Anthony Green8c019542011-09-06 14:26:32 -04001288
Anthony Greenc411f142011-11-12 07:32:36 -05001289 * m4/ax_enable_builddir: Change from string comparison to numeric
Anthony Green52891f82011-11-12 16:35:55 -05001290 comparison for wc output.
Anthony Green236c9392011-11-12 07:37:40 -05001291 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1292 X 10.7.
1293 * configure: Rebuilt.
Anthony Greenee6696f2011-08-23 12:30:29 -04001294
Anthony Green6a6e7f82011-11-12 16:20:42 -050012952011-11-12 Anthony Green <green@moxielogic.com>
1296
1297 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1298 files with debug info.
1299 * Makefile.in: Rebuilt.
1300
13012011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
1302
1303 * README: Update list of supported OpenBSD systems.
1304
13052011-11-12 Anthony Green <green@moxielogic.com>
1306
1307 * libtool-version: Update.
1308 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1309 FFI_DEBUG.
1310 (libffi_la_SOURCES): Remove src/debug.c
1311 (EXTRA_DIST): Add src/debug.c
1312 * Makefile.in: Rebuilt.
1313 * README: Update for 3.0.11.
1314
Anthony Green3d561062011-11-12 07:20:24 -050013152011-11-10 Richard Henderson <rth@redhat.com>
Anthony Green049d8382011-08-22 14:50:10 -04001316
Anthony Green3d561062011-11-12 07:20:24 -05001317 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1318 * configure, aclocal.m4: Rebuild.
1319
13202011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1321
1322 PR libffi/49594
1323 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1324 helper reference track the architecture pointer size.
1325
13262011-08-25 Andrew Haley <aph@redhat.com>
1327
1328 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1329 instructions.
1330 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
Anthony Green049d8382011-08-22 14:50:10 -04001331
Anthony Greend992ac52011-07-29 17:32:53 -040013322011-07-11 Andrew Haley <aph@redhat.com>
1333
1334 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1335
13362011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1337
1338 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1339 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1340
13412011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1342
1343 PR libffi/46660
1344 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1345 mips-sgi-irix6*.
1346 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1347
13482011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1349
1350 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1351 PRId8 instead of %hhu, %hhd.
1352 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1353 PRIu8): Define.
1354 [__sgi__] (PRId8, PRIu8): Define.
1355
13562011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1357
1358 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1359 Define.
1360 Use them to handle ELF vs. ECOFF differences.
1361 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1362
Anthony Green2d3fb362011-03-30 16:54:42 -040013632011-03-30 Timothy Wall <twall@users.sf.net>
1364
1365 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1366 * src/powerpc/darwin_closure.S: ditto.
1367
Anthony Green25416792011-02-25 15:09:13 -050013682011-02-25 Anthony Green <green@moxielogic.com>
1369
Anthony Green74ee6ea2011-02-25 15:52:14 -05001370 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1371 32-bit ABIs.
Anthony Green25416792011-02-25 15:09:13 -05001372
Anthony Green8cf88782011-02-15 15:19:49 -050013732011-02-15 Anthony Green <green@moxielogic.com>
1374
1375 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1376 * configure: Rebuilt.
1377
Anthony Greend992ac52011-07-29 17:32:53 -040013782011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1379
1380 * configure: Regenerate.
1381
Anthony Green1fbf9dc2011-02-13 08:06:39 -050013822011-02-13 Anthony Green <green@moxielogic.com>
1383
1384 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1385 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1386 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1387
1388 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1389 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1390
1391 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1392 just return FFI_BAD_ABI when things are wrong.
1393 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1394 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1395 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1396 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1397 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1398
Anthony Green1833aa02011-02-11 07:11:04 -050013992011-02-11 Anthony Green <green@moxielogic.com>
1400
1401 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1402 just return FFI_BAD_ABI when things are wrong.
1403
Anthony Green7c5e60b2012-03-29 08:48:22 -040014042012-02-11 Eric Botcazou <ebotcazou@adacore.com>
1405
1406 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1407
Anthony Green42695e72011-02-09 15:12:35 -050014082011-02-09 Stuart Shelton <srcshelton@gmail.com>
1409
1410 http://bugs.gentoo.org/show_bug.cgi?id=286911
1411 * src/mips/ffitarget.h: Clean up error messages.
1412 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1413 ffi_raw*.
1414 * include/ffi.h.in: Add pragma for SGI compiler.
1415
Anthony Greena6e56b92011-02-09 15:00:42 -050014162011-02-09 Anthony Green <green@moxielogic.com>
1417
1418 * configure.ac: Add powerpc64-*-darwin* support.
1419
Anthony Green0cad4382011-02-09 06:11:46 -050014202011-02-09 Anthony Green <green@moxielogic.com>
Anthony Green11062292011-02-08 19:20:09 -05001421
Anthony Green747d6c32011-02-09 14:56:23 -05001422 * README: Mention Interix.
1423
14242011-02-09 Jonathan Callen <abcd@gentoo.org>
1425
1426 * configure.ac: Add Interix to win32/cygwin/mingw case.
1427 * configure: Ditto.
1428 * src/closures.c: Treat Interix like Cygwin, instead of as a
1429 generic win32.
1430
14312011-02-09 Anthony Green <green@moxielogic.com>
1432
Anthony Green69dbe842011-02-09 07:38:43 -05001433 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1434 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1435 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1436 (ffi_prep_closure_loc): Check for bad ABI.
1437 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1438 (initialize_aggregate): Check for bad types.
Anthony Green0cad4382011-02-09 06:11:46 -05001439
Anthony Green90af15e2011-02-12 12:29:36 -050014402011-02-09 Landon Fuller <landonf@plausible.coop>
Anthony Green0cad4382011-02-09 06:11:46 -05001441
1442 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1443 src/arm/trampoline.S.
1444 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1445 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1446 * src/arm/ffi.c (ffi_trampoline_table)
1447 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1448 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1449 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1450 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1451 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1452 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1453 separately.
1454 * src/arm/sysv.S: Handle Apple iOS host.
1455 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
Anthony Greenf4983182011-02-09 06:26:46 -05001456 * build-ios.sh: New file.
Anthony Green0cad4382011-02-09 06:11:46 -05001457 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
Anthony Green69dbe842011-02-09 07:38:43 -05001458 * README: Mention ARM iOS.
Anthony Green11062292011-02-08 19:20:09 -05001459
Anthony Greendc411e82011-02-08 10:49:29 -050014602011-02-08 Oren Held <orenhe@il.ibm.com>
1461
1462 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1463 redefinition of mallinfo on HP-UX.
1464
Anthony Green404585d2011-02-08 10:44:36 -050014652011-02-08 Ginn Chen <ginn.chen@oracle.com>
1466
1467 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
Anthony Green049d8382011-08-22 14:50:10 -04001468 aggregate return ABI. Flush cache.
1469 (ffi_prep_closure_loc): Flush cache.
Anthony Green404585d2011-02-08 10:44:36 -05001470
Anthony Green6972a4f2011-02-11 07:32:51 -050014712011-02-11 Anthony Green <green@moxielogic.com>
1472
1473 From Tom Honermann <tom.honermann@oracle.com>:
1474 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1475 AIX. Declare .ffi_prep_args. Insert nops after branch
1476 instructions so that the AIX linker can insert TOC reload
1477 instructions.
1478 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1479
Anthony Greend992ac52011-07-29 17:32:53 -040014802011-02-08 Ed <ed@kdtc.net>
1481
1482 * src/powerpc/asm.h: Fix grammar nit in comment.
1483
Anthony Green89284fe2011-02-08 10:19:19 -050014842011-02-08 Uli Link <ul.mcamafia@linkitup.de>
1485
1486 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1487
Anthony Greend992ac52011-07-29 17:32:53 -040014882011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1489
1490 PR libffi/46661
1491 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1492 uintptr_t first.
1493 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1494
Anthony Greened2c5182011-02-08 10:10:07 -050014952011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
1496
1497 * configure.ac: Fix x86 test for pc related relocs.
Anthony Green09f8f312011-02-28 15:36:07 -05001498 * configure: Rebuilt.
Anthony Greened2c5182011-02-08 10:10:07 -05001499
Anthony Green3b836242011-02-08 14:28:59 -050015002011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1501
1502 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1503 Handle case when CPU variant does not have long double support.
1504 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1505 and cores with soft floating point.
1506
15072011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1508
1509 * configure.ac: Add mips*-*-rtems* support.
1510 * configure: Regenerate.
1511 * src/mips/ffitarget.h: Ensure needed constants are available
1512 for targets which do not have sgidefs.h.
1513
Anthony Green0e584392011-02-08 07:52:40 -050015142011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1515
1516 PR target/40125
1517 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1518 * configure: Regenerate.
1519
15202010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1521
1522 PR libffi/29152
1523 PR libffi/42378
1524 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1525 update comments.
1526 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1527 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1528 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1529 update comments.
1530 * src/powerpc/ffi_darwin.c: Likewise.
1531
15322010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1533
1534 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1535 backslashes.
1536 (libffi_cv_as_string_pseudo_op): Likewise.
1537 * configure: Regenerate.
1538
15392010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
1540
1541 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1542 (ffi_closure_VFP): Same.
1543 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1544 directive.
1545
15462010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1547
1548 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1549 (PRIuPTR): Define.
1550
15512010-11-29 Richard Henderson <rth@redhat.com>
1552 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1553
1554 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1555 (.eh_frame): Use FDE_ENCODING.
1556 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1557
Anthony Green5b9cd522010-11-22 15:19:57 -050015582010-11-22 Jacek Caban <jacek@codeweavers.com>
1559
1560 * configure.ac: Check for symbol underscores on mingw-w64.
1561 * configure: Rebuilt.
1562 * src/x86/win64.S: Correctly access extern symbols in respect to
1563 underscores.
1564
Anthony Green2db72612010-11-21 10:50:56 -050015652010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1566
1567 * testsuite/lib/libffi-dg.exp: Rename ...
1568 * testsuite/lib/libffi.exp: ... to this.
1569 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1570 * libffi/testsuite/libffi.special/special.exp: Likewise.
1571
15722010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1573
1574 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1575 code, new parameter, and return value. Update comments.
1576 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1577 call to layout_vfp_args().
1578 (ffi_call_SYSV): Update declaration.
1579 (ffi_call_VFP): New declaration.
1580 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1581 when ABI is FFI_VFP.
1582 (ffi_closure_VFP): New declaration.
1583 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1584 ffi_prep_incoming_args_SYSV().
1585 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1586 case handling.
1587 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1588 construction under VFP hard-float.
1589 (rec_vfp_type_p): New function.
1590 (vfp_type_p): Same.
1591 (place_vfp_arg): Same.
1592 (layout_vfp_args): Same.
1593 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1594 based on __ARM_PCS_VFP.
1595 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1596 fields.
1597 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1598 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1599 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1600 direct call. Move function pointer load upwards.
1601 (ffi_call_VFP): New function.
1602 (ffi_closure_VFP): Same.
1603
1604 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1605 (dg-skip-if): New function.
1606 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1607 and compiler options include -mfloat-abi=hard.
1608 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1609
16102010-10-01 Jakub Jelinek <jakub@redhat.com>
1611
1612 PR libffi/45677
1613 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1614 a multiple of 8.
1615 * testsuite/libffi.call/many2.c: New test.
1616
16172010-08-20 Mark Wielaard <mjw@redhat.com>
1618
1619 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1620 returns NULL.
1621
16222010-08-09 Andreas Tobler <andreast@fgznet.ch>
1623
1624 * configure.ac: Add target powerpc64-*-freebsd*.
1625 * configure: Regenerate.
1626 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1627 -mlong-double-128 only to linux targets.
1628 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1629 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1630 * testsuite/libffi.call/huge_struct.c: Likewise.
1631
Anthony Green00d0b592010-08-05 14:56:53 -040016322010-08-05 Dan Witte <dwitte@mozilla.com>
1633
1634 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1635 debug CRT when --enable-debug is given.
1636 * configure.ac: Define it.
1637 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1638
Anthony Greenc1d28ba2010-08-05 08:48:16 -040016392010-08-04 Dan Witte <dwitte@mozilla.com>
1640
1641 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1642 platforms.
1643 * src/x86/ffi.c: Remove redundant ifdef checks.
1644 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1645 for X86_ANY so return value space doesn't get added twice.
1646
Anthony Greenbda487e2010-08-05 09:02:41 -040016472010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
1648
1649 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1650
Anthony Greend14178b2010-07-23 09:14:00 -040016512010-07-22 Dan Witte <dwitte@mozilla.com>
1652
1653 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1654 * src/prep_cif.c: Fix ABI assertion.
1655 * src/cris/ffi.c: Ditto.
1656
Anthony Greeneaf444e2010-07-10 08:59:09 -040016572010-07-10 Evan Phoenix <evan@fallingsnow.net>
1658
1659 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1660
Anthony Green5feacad2010-08-05 08:30:04 -040016612010-07-07 Dan Horák <dan@danny.cz>
1662
1663 * include/ffi.h.in: Protect #define with #ifndef.
1664 * src/powerpc/ffitarget.h: Ditto.
1665 * src/s390/ffitarget.h: Ditto.
1666 * src/sparc/ffitarget.h: Ditto.
1667
Anthony Green2db72612010-11-21 10:50:56 -050016682010-07-07 Neil Roberts <neil@linux.intel.com>
1669
1670 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1671 16-bytes.
1672
16732010-07-02 Jakub Jelinek <jakub@redhat.com>
1674
1675 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1676 * Makefile.in: Regenerated.
1677
16782010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1679
1680 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1681 output, too.
1682 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1683 (libffi_cv_as_string_pseudo_op): Check for .string.
1684 * configure: Regenerate.
1685 * fficonfig.h.in: Regenerate.
1686 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1687
Anthony Green10ea8482010-08-05 08:24:27 -040016882010-05-11 Dan Witte <dwitte@mozilla.com>
1689
1690 * doc/libffi.tex: Document previous change.
1691
16922010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
1693
1694 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1695
Anthony Green63097412010-05-05 20:14:56 -040016962010-05-05 Michael Kohler <michaelkohler@live.com>
1697
1698 * src/dlmalloc.c (dlfree): Fix spelling.
1699 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1700 * configure.ac: Ditto.
1701 * configure: Rebuilt.
1702
Anthony Greenf2c2a4f2010-04-13 10:19:28 -040017032010-04-13 Dan Witte <dwitte@mozilla.com>
1704
1705 * msvcc.sh: Build with -W3 instead of -Wall.
1706 * src/powerpc/ffi_darwin.c: Remove build warnings.
1707 * src/x86/ffi.c: Ditto.
1708 * src/x86/ffitarget.h: Ditto.
1709
Anthony Green2db72612010-11-21 10:50:56 -050017102010-04-12 Dan Witte <dwitte@mozilla.com>
1711 Walter Meinl <wuno@lsvw.de>
Anthony Greenc0b69e52010-03-30 08:30:22 -04001712
Anthony Green2db72612010-11-21 10:50:56 -05001713 * configure.ac: Add OS/2 support.
1714 * configure: Rebuilt.
1715 * src/closures.c: Ditto.
1716 * src/dlmalloc.c: Ditto.
1717 * src/x86/win32.S: Ditto.
Anthony Green3f5b1372010-07-12 14:39:18 -04001718
17192010-04-07 Jakub Jelinek <jakub@redhat.com>
1720
Anthony Green2db72612010-11-21 10:50:56 -05001721 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
Anthony Green3f5b1372010-07-12 14:39:18 -04001722
17232010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1724
1725 * Makefile.in: Regenerate.
1726 * aclocal.m4: Regenerate.
1727 * include/Makefile.in: Regenerate.
1728 * man/Makefile.in: Regenerate.
1729 * testsuite/Makefile.in: Regenerate.
1730
Anthony Green2db72612010-11-21 10:50:56 -050017312010-03-30 Dan Witte <dwitte@mozilla.com>
1732
1733 * msvcc.sh: Disable build warnings.
1734 * README (tested): Clarify windows build procedure.
1735
Anthony Green3f5b1372010-07-12 14:39:18 -040017362010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1737
1738 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1739 * configure: Regenerate.
1740 * fficonfig.h.in: Regenerate.
1741 * libffi/src/x86/unix64.S (.eh_frame)
1742 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1743
Anthony Green2db72612010-11-21 10:50:56 -050017442010-03-14 Matthias Klose <doko@ubuntu.com>
1745
1746 * src/x86/ffi64.c: Fix typo in comment.
1747 * src/x86/ffi.c: Use /* ... */ comment style.
1748
Anthony Green9dc9a292010-04-13 10:33:52 -040017492010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1750
1751 * doc/libffi.texi (The Closure API): Fix typo.
1752 * doc/libffi.info: Remove.
1753
17542010-02-15 Matthias Klose <doko@ubuntu.com>
1755
1756 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1757 __ARM_ARCH_7EM__.
1758
Anthony Green2db72612010-11-21 10:50:56 -050017592010-01-15 Anthony Green <green@redhat.com>
1760
1761 * README: Add notes on building with Microsoft Visual C++.
1762
17632010-01-15 Daniel Witte <dwitte@mozilla.com>
1764
1765 * msvcc.sh: New file.
1766
1767 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1768 * src/x86/ffi.c: Tweak function declaration and remove excess
1769 parens.
1770 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1771 ffi_closure.
1772
1773 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1774 function ffi_call_win32 on X86_WIN32.
1775 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1776 (ffi_call_STDCALL): Remove.
1777
1778 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1779 to ffi_prep_cif_machdep for x86.
1780 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1781
17822010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
1783
1784 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
Anthony Green0e584392011-02-08 07:52:40 -05001785 Sun Studio compiler compatibility.
Anthony Green2db72612010-11-21 10:50:56 -05001786
17872010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
1788
1789 * doc/libffi.texi: Add closure example.
1790
Anthony Green7b7a42f2010-01-12 09:14:14 -050017912010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1792
1793 PR libffi/40701
1794 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1795 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1796 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1797 alpha*-dec-osf*.
1798 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1799 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1800 * testsuite/libffi.call/return_ll1.c: Likewise.
1801 * testsuite/libffi.call/stret_medium2.c: Likewise.
1802 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1803 MAP_FAILED to char *.
1804
18052010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1806
1807 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1808
Anthony Greenc3042af2010-01-01 08:08:02 -050018092009-12-31 Anthony Green <green@redhat.com>
1810
1811 * README: Update for libffi 3.0.9.
1812
18132009-12-27 Matthias Klose <doko@ubuntu.com>
1814
1815 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1816 appropriate.
1817 * configure: Rebuilt.
1818
18192009-12-26 Anthony Green <green@redhat.com>
1820
1821 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1822 avr32*-*-*.
1823 * testsuite/libffi.call/cls_double_va.c: Ditto.
1824
18252009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1826
1827 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1828 and inttypes.h.
1829 * testsuite/libffi.special/unwindtest.cc: Ditto.
1830
18312009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1832
1833 * configure.ac: Add amd64-*-openbsd*.
1834 * configure: Rebuilt.
1835 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1836 openbsd programs with -lpthread.
1837
18382009-12-26 Anthony Green <green@redhat.com>
1839
1840 * testsuite/libffi.call/cls_double_va.c,
1841 testsuite/libffi.call/cls_longdouble.c,
1842 testsuite/libffi.call/cls_longdouble_va.c,
1843 testsuite/libffi.call/cls_pointer.c,
1844 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1845 mips*-*-* and arm*-*-*.
1846 * testsuite/libffi.call/cls_align_longdouble_split.c,
1847 testsuite/libffi.call/cls_align_longdouble_split2.c,
1848 testsuite/libffi.call/stret_medium2.c,
1849 testsuite/libffi.call/stret_medium.c,
1850 testsuite/libffi.call/stret_large.c,
1851 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1852
18532009-12-31 Kay Tietz <ktietz70@googlemail.com>
1854
1855 * testsuite/libffi.call/ffitest.h,
1856 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1857 definitions.
1858
18592009-12-31 Carlo Bramini <carlo.bramix@libero.it>
1860
1861 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1862 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1863 * configure: Rebuilt.
1864 * Makefile.in: Rebuilt.
1865
18662009-12-31 Anthony Green <green@redhat.com>
1867 Blake Chaffin.
1868
1869 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1870 Chaffin @ Apple.
1871
Anthony Green0cfe60e2009-12-29 10:06:04 -050018722009-12-28 David Edelsohn <edelsohn@gnu.org>
1873
1874 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1875 local variables.
1876 (aix_adjust_aggregate_sizes): New function.
1877 (ffi_prep_cif_machdep): Call it.
1878
18792009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1880
1881 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1882 * configure: Regenerate.
1883 * fficonfig.h.in: Likewise.
1884 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1885 Solaris/x86.
1886
18872009-12-26 Andreas Schwab <schwab@linux-m68k.org>
1888
1889 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1890 when a float arguments is passed in memory.
1891 (ffi_closure_helper_SYSV): Mark general registers as used up when
1892 a 64bit or soft-float long double argument is passed in memory.
1893
Anthony Green9458d882009-12-26 07:02:27 -050018942009-12-25 Matthias Klose <doko@ubuntu.com>
1895
1896 * man/ffi_call.3: Fix #include in examples.
1897 * doc/libffi.texi: Add dircategory.
1898
18992009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
1900
1901 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1902 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1903 IRIX MIPSPro c99.
1904 * include/ffi_common.h: Added '__sgi' define to non
1905 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001906 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -05001907 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1908 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1909 FFI_LONGDOUBLE support and alignment(N32 only).
1910 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1911 fixed non '__attribute__((__mode__()))' integer typedefs.
1912 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1913 since they are Linux/GNU Assembler specific.
1914
19152009-12-25 Bradley Smith <brad@brad-smith.co.uk>
1916
1917 * configure.ac, Makefile.am, src/avr32/ffi.c,
1918 src/avr32/ffitarget.h,
1919 src/avr32/sysv.S: Add AVR32 port.
1920 * configure, Makefile.in: Rebuilt.
1921
Anthony Green115ab362009-12-24 00:22:00 -050019222009-12-21 Andreas Tobler <a.tobler@schweiz.org>
1923
1924 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1925 * configure: Regenerate.
1926
19272009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1928
1929 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1930
19312009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1932
1933 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1934 type on HP-UX.
1935
Anthony Green7c5e60b2012-03-29 08:48:22 -040019362012-02-13 Kai Tietz <ktietz@redhat.com>
1937
1938 PR libffi/52221
1939 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1940 support for X86_WIN32.
1941 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1942
Anthony Green115ab362009-12-24 00:22:00 -050019432009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1944
1945 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1946 double' arguments.
1947
19482009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1949
1950 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1951
19522009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1953
1954 PR libffi/40700
1955 * src/closures.c [X86_64 && __sun__ && __svr4__]
1956 (FFI_MMAP_EXEC_WRIT): Define.
1957
19582009-12-08 David Daney <ddaney@caviumnetworks.com>
1959
1960 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1961 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1962 * testsuite/libffi.call/stret_large.c: Same.
1963 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1964 * testsuite/libffi.call/stret_large2.c: Same.
1965 * testsuite/libffi.call/stret_medium2.c: Same.
1966
19672009-12-07 David Edelsohn <edelsohn@gnu.org>
1968
1969 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1970 typo.
1971
19722009-12-05 David Edelsohn <edelsohn@gnu.org>
1973
1974 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1975 code.
1976 * src/powerpc/aix_closure.S: Same.
1977
19782009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1979
1980 * Makefile.in: Regenerate.
1981 * configure: Regenerate.
1982 * include/Makefile.in: Regenerate.
1983 * man/Makefile.in: Regenerate.
1984 * testsuite/Makefile.in: Regenerate.
1985
19862009-12-04 David Edelsohn <edelsohn@gnu.org>
1987
1988 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -05001989 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -05001990
19912009-12-04 Uros Bizjak <ubizjak@gmail.com>
1992
1993 PR libffi/41908
1994 * src/x86/ffi64.c (classify_argument): Update from
1995 gcc/config/i386/i386.c.
1996 (ffi_closure_unix64_inner): Do not use the address of two consecutive
1997 SSE registers directly.
1998 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
1999 for x86_64 linux targets.
2000
20012009-12-04 David Edelsohn <edelsohn@gnu.org>
2002
2003 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
2004 pfr for long double split between fpr13 and stack.
2005
20062009-12-03 David Edelsohn <edelsohn@gnu.org>
2007
2008 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
2009 fparg_count twice for long double.
2010
20112009-12-03 David Edelsohn <edelsohn@gnu.org>
2012
2013 PR libffi/42243
2014 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
2015
20162009-12-03 Uros Bizjak <ubizjak@gmail.com>
2017
2018 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
2019 Remove xfails for x86 linux targets.
2020
20212009-12-02 David Edelsohn <edelsohn@gnu.org>
2022
2023 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
2024 case.
2025
20262009-12-01 David Edelsohn <edelsohn@gnu.org>
2027
2028 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
2029 register usage. Call ffi_prep_args directly. Add long double
2030 return value support.
2031 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
2032 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
2033 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
2034 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
2035 mode.
2036 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
2037 into case.
2038 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
2039 Allocate result area between params and FPRs.
2040
20412009-11-30 David Edelsohn <edelsohn@gnu.org>
2042
2043 PR target/35484
2044 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
2045 AIX64.
2046 * src/powerpc/aix.S: Implement AIX64 version.
2047 * src/powerpc/aix_closure.S: Implement AIX64 version.
2048 (ffi_closure_ASM): Use extsb, lha and displament addresses.
2049 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
2050 support.
2051 (ffi_prep_cif_machdep): Same.
2052 (ffi_call): Same.
2053 (ffi_closure_helper_DARWIN): Same.
2054
20552009-11-02 Andreas Tobler <a.tobler@schweiz.org>
2056
2057 PR libffi/41908
2058 * testsuite/libffi.call/testclosure.c: New test.
2059
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020602009-09-28 Kai Tietz <kai.tietz@onevision.com>
2061
2062 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
2063 assembly version use of ___chkstk.
2064
20652009-09-23 Matthias Klose <doko@ubuntu.com>
2066
2067 PR libffi/40242, PR libffi/41443
2068 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
2069 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
2070 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
2071 Change the conditionals to __SOFTFP__ || __ARM_EABI__
2072 for -mfloat-abi=softfp to work.
2073
20742009-09-17 Loren J. Rittle <ljrittle@acm.org>
2075
2076 PR testsuite/32843 (strikes again)
2077 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
2078 enable proper extension on char and short.
2079
20802009-09-15 David Daney <ddaney@caviumnetworks.com>
2081
2082 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
2083 handling for FFI_TYPE_POINTER.
2084 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
2085 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
2086 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
2087 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
2088 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
2089 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
2090 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
2091 structure and pointer returns.
2092 (ffi_closure_N32): Add handling for pointer returns.
2093 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
2094 calc_n32_return_struct_flags): Handle soft-float.
2095 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
2096 (ffi_call_N32): Declare proper argument types.
2097 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
2098 soft-float.
2099
21002009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2101
2102 * configure.ac (AC_PREREQ): Bump to 2.64.
2103
21042009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2105
2106 * Makefile.am (install-html, install-pdf): Remove.
2107 * Makefile.in: Regenerate.
2108
2109 * Makefile.in: Regenerate.
2110 * aclocal.m4: Regenerate.
2111 * configure: Regenerate.
2112 * fficonfig.h.in: Regenerate.
2113 * include/Makefile.in: Regenerate.
2114 * man/Makefile.in: Regenerate.
2115 * testsuite/Makefile.in: Regenerate.
2116
Anthony Green3d561062011-11-12 07:20:24 -050021172011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
2118
2119 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2120 * configure: Rebuilt.
2121
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021222009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2123
2124 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2125
21262009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
2127
2128 PR libffi/40807
2129 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2130 return types for X86_WIN32.
2131 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2132 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2133 _ffi_closure_STDCALL): Likewise.
2134
2135 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2136 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2137
21382009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2139
2140 PR testsuite/40699
2141 PR testsuite/40707
2142 PR testsuite/40709
2143 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2144 2009-06-30 commits.
2145
21462009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2147
2148 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2149 to "" before adding paths. (This reinstates an assignment that
2150 was removed by my 2009-06-30 commit, but changes the initial
2151 value from "." to "".)
2152
21532009-07-01 H.J. Lu <hongjiu.lu@intel.com>
2154
2155 PR testsuite/40601
2156 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2157 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2158 empty.
2159
21602009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2161
2162 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2163 to ld_library_path. Use add_path. Add just find_libgcc_s
2164 to ld_library_path, not every libgcc multilib directory.
2165
21662009-06-16 Wim Lewis <wiml@hhhh.org>
2167
2168 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2169 supposed to be callee-saved.
2170 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2171 return buffer for odd-size structs.
2172
21732009-06-16 Andreas Tobler <a.tobler@schweiz.org>
2174
2175 PR libffi/40444
2176 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2177 allow_stack_execute for Darwin.
2178
21792009-06-16 Andrew Haley <aph@redhat.com>
2180
2181 * configure.ac (TARGETDIR): Add missing blank lines.
2182 * configure: Regenerate.
2183
21842009-06-16 Andrew Haley <aph@redhat.com>
2185
2186 * testsuite/libffi.call/cls_align_sint64.c,
2187 testsuite/libffi.call/cls_align_uint64.c,
2188 testsuite/libffi.call/cls_longdouble_va.c,
2189 testsuite/libffi.call/cls_ulonglong.c,
2190 testsuite/libffi.call/return_ll1.c,
2191 testsuite/libffi.call/stret_medium2.c: Fix printf format
2192 specifiers.
2193 * testsuite/libffi.call/ffitest.h,
2194 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2195
21962009-06-15 Andrew Haley <aph@redhat.com>
2197
2198 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2199 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002200
Anthony Greenc6dddbd2009-10-04 08:11:33 -040022012009-06-12 Andrew Haley <aph@redhat.com>
2202
2203 * Makefile.am: Remove info_TEXINFOS.
2204
22052009-06-12 Andrew Haley <aph@redhat.com>
2206
2207 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2208 testsuite/libffi.call/cls_align_uint64.c,
2209 testsuite/libffi.call/cls_ulonglong.c,
2210 testsuite/libffi.call/return_ll1.c,
2211 testsuite/libffi.call/stret_medium2.c: Fix printf format
2212 specifiers.
2213 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2214
22152009-06-11 Timothy Wall <twall@users.sf.net>
2216
2217 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002218 configure.ac,
2219 include/ffi.h.in,
2220 include/ffi_common.h,
2221 src/closures.c,
2222 src/dlmalloc.c,
2223 src/x86/ffi.c,
2224 src/x86/ffitarget.h,
2225 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002226 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -05002227 * Makefile.in,
2228 include/Makefile.in,
2229 man/Makefile.in,
2230 testsuite/Makefile.in,
2231 configure,
2232 aclocal.m4: Regenerated
2233 * ltcf-c.sh: properly escape cygwin/w32 path
2234 * man/ffi_call.3: Clarify size requirements for return value.
2235 * src/x86/ffi64.c: Fix filename in comment.
2236 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002237
Anthony Green0cfe60e2009-12-29 10:06:04 -05002238 * testsuite/libffi.call/closure_fn0.c,
2239 testsuite/libffi.call/closure_fn1.c,
2240 testsuite/libffi.call/closure_fn2.c,
2241 testsuite/libffi.call/closure_fn3.c,
2242 testsuite/libffi.call/closure_fn4.c,
2243 testsuite/libffi.call/closure_fn5.c,
2244 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002245 testsuite/libffi.call/closure_stdcall.c,
2246 testsuite/libffi.call/cls_12byte.c,
2247 testsuite/libffi.call/cls_16byte.c,
2248 testsuite/libffi.call/cls_18byte.c,
2249 testsuite/libffi.call/cls_19byte.c,
2250 testsuite/libffi.call/cls_1_1byte.c,
2251 testsuite/libffi.call/cls_20byte.c,
2252 testsuite/libffi.call/cls_20byte1.c,
2253 testsuite/libffi.call/cls_24byte.c,
2254 testsuite/libffi.call/cls_2byte.c,
2255 testsuite/libffi.call/cls_3_1byte.c,
2256 testsuite/libffi.call/cls_3byte1.c,
2257 testsuite/libffi.call/cls_3byte2.c,
2258 testsuite/libffi.call/cls_4_1byte.c,
2259 testsuite/libffi.call/cls_4byte.c,
2260 testsuite/libffi.call/cls_5_1_byte.c,
2261 testsuite/libffi.call/cls_5byte.c,
2262 testsuite/libffi.call/cls_64byte.c,
2263 testsuite/libffi.call/cls_6_1_byte.c,
2264 testsuite/libffi.call/cls_6byte.c,
2265 testsuite/libffi.call/cls_7_1_byte.c,
2266 testsuite/libffi.call/cls_7byte.c,
2267 testsuite/libffi.call/cls_8byte.c,
2268 testsuite/libffi.call/cls_9byte1.c,
2269 testsuite/libffi.call/cls_9byte2.c,
2270 testsuite/libffi.call/cls_align_double.c,
2271 testsuite/libffi.call/cls_align_float.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,
2275 testsuite/libffi.call/cls_align_pointer.c,
2276 testsuite/libffi.call/cls_align_sint16.c,
2277 testsuite/libffi.call/cls_align_sint32.c,
2278 testsuite/libffi.call/cls_align_sint64.c,
2279 testsuite/libffi.call/cls_align_uint16.c,
2280 testsuite/libffi.call/cls_align_uint32.c,
2281 testsuite/libffi.call/cls_align_uint64.c,
2282 testsuite/libffi.call/cls_dbls_struct.c,
2283 testsuite/libffi.call/cls_double.c,
2284 testsuite/libffi.call/cls_double_va.c,
2285 testsuite/libffi.call/cls_float.c,
2286 testsuite/libffi.call/cls_longdouble.c,
2287 testsuite/libffi.call/cls_longdouble_va.c,
2288 testsuite/libffi.call/cls_multi_schar.c,
2289 testsuite/libffi.call/cls_multi_sshort.c,
2290 testsuite/libffi.call/cls_multi_sshortchar.c,
2291 testsuite/libffi.call/cls_multi_uchar.c,
2292 testsuite/libffi.call/cls_multi_ushort.c,
2293 testsuite/libffi.call/cls_multi_ushortchar.c,
2294 testsuite/libffi.call/cls_pointer.c,
2295 testsuite/libffi.call/cls_pointer_stack.c,
2296 testsuite/libffi.call/cls_schar.c,
2297 testsuite/libffi.call/cls_sint.c,
2298 testsuite/libffi.call/cls_sshort.c,
2299 testsuite/libffi.call/cls_uchar.c,
2300 testsuite/libffi.call/cls_uint.c,
2301 testsuite/libffi.call/cls_ulonglong.c,
2302 testsuite/libffi.call/cls_ushort.c,
2303 testsuite/libffi.call/err_bad_abi.c,
2304 testsuite/libffi.call/err_bad_typedef.c,
2305 testsuite/libffi.call/float2.c,
2306 testsuite/libffi.call/huge_struct.c,
2307 testsuite/libffi.call/nested_struct.c,
2308 testsuite/libffi.call/nested_struct1.c,
2309 testsuite/libffi.call/nested_struct10.c,
2310 testsuite/libffi.call/nested_struct2.c,
2311 testsuite/libffi.call/nested_struct3.c,
2312 testsuite/libffi.call/nested_struct4.c,
2313 testsuite/libffi.call/nested_struct5.c,
2314 testsuite/libffi.call/nested_struct6.c,
2315 testsuite/libffi.call/nested_struct7.c,
2316 testsuite/libffi.call/nested_struct8.c,
2317 testsuite/libffi.call/nested_struct9.c,
2318 testsuite/libffi.call/problem1.c,
2319 testsuite/libffi.call/return_ldl.c,
2320 testsuite/libffi.call/return_ll1.c,
2321 testsuite/libffi.call/stret_large.c,
2322 testsuite/libffi.call/stret_large2.c,
2323 testsuite/libffi.call/stret_medium.c,
2324 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -05002325 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2326 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002327
23282009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2329
2330 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2331 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2332 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2333
23342009-06-09 Andrew Haley <aph@redhat.com>
2335
2336 * src/x86/freebsd.S: Add missing file.
2337
23382009-06-08 Andrew Haley <aph@redhat.com>
2339
2340 Import from libffi 3.0.8:
2341
2342 * doc/libffi.texi: New file.
2343 * doc/libffi.info: Likewise.
2344 * doc/stamp-vti: Likewise.
2345 * man/Makefile.am: New file.
2346 * man/ffi_call.3: New file.
2347
2348 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2349 src/dlmalloc.c.
2350 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2351
2352 * configure.ac: Bump version to 3.0.8.
2353 parisc*-*-linux*: Add.
2354 i386-*-freebsd* | i386-*-openbsd*: Add.
2355 powerpc-*-beos*: Add.
2356 AM_CONDITIONAL X86_FREEBSD: Add.
2357 AC_CONFIG_FILES: Add man/Makefile.
2358
2359 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2360
23612009-06-08 Andrew Haley <aph@redhat.com>
2362
2363 * README: Import from libffi 3.0.8.
2364
23652009-06-08 Andrew Haley <aph@redhat.com>
2366
2367 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2368 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2369 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2370 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2371
2372 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2373 * testsuite/libffi.call/stret_medium.c: Likewise.
2374 * testsuite/libffi.call/stret_large2.c: Likewise.
2375 * testsuite/libffi.call/stret_large.c: Likewise.
2376
23772008-12-26 Timothy Wall <twall@users.sf.net>
2378
Anthony Green0cfe60e2009-12-29 10:06:04 -05002379 * testsuite/libffi.call/cls_longdouble.c,
2380 testsuite/libffi.call/cls_longdouble_va.c,
2381 testsuite/libffi.call/cls_align_longdouble.c,
2382 testsuite/libffi.call/cls_align_longdouble_split.c,
2383 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2384 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002385
23862008-12-22 Timothy Wall <twall@users.sf.net>
2387
Anthony Green0cfe60e2009-12-29 10:06:04 -05002388 * testsuite/libffi.call/closure_fn0.c,
2389 testsuite/libffi.call/closure_fn1.c,
2390 testsuite/libffi.call/closure_fn2.c,
2391 testsuite/libffi.call/closure_fn3.c,
2392 testsuite/libffi.call/closure_fn4.c,
2393 testsuite/libffi.call/closure_fn5.c,
2394 testsuite/libffi.call/closure_fn6.c,
2395 testsuite/libffi.call/closure_loc_fn0.c,
2396 testsuite/libffi.call/closure_stdcall.c,
2397 testsuite/libffi.call/cls_align_pointer.c,
2398 testsuite/libffi.call/cls_pointer.c,
2399 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2400 pointer to integer (intptr_t).
2401 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002402
24032008-07-24 Anthony Green <green@redhat.com>
2404
Anthony Green0cfe60e2009-12-29 10:06:04 -05002405 * testsuite/libffi.call/cls_dbls_struct.c,
2406 testsuite/libffi.call/cls_double_va.c,
2407 testsuite/libffi.call/cls_longdouble.c,
2408 testsuite/libffi.call/cls_longdouble_va.c,
2409 testsuite/libffi.call/cls_pointer.c,
2410 testsuite/libffi.call/cls_pointer_stack.c,
2411 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2412 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002413
24142008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002415 Blake Chaffin
2416 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002417
Anthony Green0cfe60e2009-12-29 10:06:04 -05002418 * testsuite/libffi.call/cls_align_longdouble_split2.c
2419 testsuite/libffi.call/cls_align_longdouble_split.c
2420 testsuite/libffi.call/cls_dbls_struct.c
2421 testsuite/libffi.call/cls_double_va.c
2422 testsuite/libffi.call/cls_longdouble.c
2423 testsuite/libffi.call/cls_longdouble_va.c
2424 testsuite/libffi.call/cls_pointer.c
2425 testsuite/libffi.call/cls_pointer_stack.c
2426 testsuite/libffi.call/err_bad_abi.c
2427 testsuite/libffi.call/err_bad_typedef.c
2428 testsuite/libffi.call/stret_large2.c
2429 testsuite/libffi.call/stret_large.c
2430 testsuite/libffi.call/stret_medium2.c
2431 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002432
24332009-06-05 Andrew Haley <aph@redhat.com>
2434
2435 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2436 libffi.
2437
24382009-06-04 Andrew Haley <aph@redhat.com>
2439
2440 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2441 stdcall changes.
2442
24432008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002444 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002445
Anthony Green0cfe60e2009-12-29 10:06:04 -05002446 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2447 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002448
24492008-02-03 Timothy Wall <twall@users.sf.net>
2450
Anthony Green0cfe60e2009-12-29 10:06:04 -05002451 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2452 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002453
24542008-01-31 Timothy Wall <twall@users.sf.net>
2455
Anthony Green0cfe60e2009-12-29 10:06:04 -05002456 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2457 closures.
2458 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2459 closures.
2460 * src/x86/win32.S: Add assembly for stdcall closure.
2461 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002462
24632009-06-04 Andrew Haley <aph@redhat.com>
2464
2465 * include/ffi.h.in: Change void (*)() to void (*)(void).
2466 * src/x86/ffi.c: Likewise.
2467
24682009-06-04 Andrew Haley <aph@redhat.com>
2469
2470 * src/powerpc/ppc_closure.S: Insert licence header.
2471 * src/powerpc/linux64_closure.S: Likewise.
2472 * src/m68k/sysv.S: Likewise.
2473
2474 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2475 * src/powerpc/ffi.c: Likewise.
2476 * src/powerpc/ffi_darwin.c: Likewise.
2477 * src/m32r/ffi.c: Likewise.
2478 * src/sh64/ffi.c: Likewise.
2479 * src/x86/ffi64.c: Likewise.
2480 * src/alpha/ffi.c: Likewise.
2481 * src/alpha/osf.S: Likewise.
2482 * src/frv/ffi.c: Likewise.
2483 * src/s390/ffi.c: Likewise.
2484 * src/pa/ffi.c: Likewise.
2485 * src/pa/hpux32.S: Likewise.
2486 * src/ia64/unix.S: Likewise.
2487 * src/ia64/ffi.c: Likewise.
2488 * src/sparc/ffi.c: Likewise.
2489 * src/mips/ffi.c: Likewise.
2490 * src/sh/ffi.c: Likewise.
2491
24922008-02-15 David Daney <ddaney@avtrex.com>
2493
Anthony Green0cfe60e2009-12-29 10:06:04 -05002494 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2495 Define (conditionally), and use it to include cachectl.h.
2496 (ffi_prep_closure_loc): Fix cache flushing.
2497 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002498
24992009-06-04 Andrew Haley <aph@redhat.com>
2500
2501 include/ffi.h.in,
2502 src/arm/ffitarget.h,
2503 src/arm/ffi.c,
2504 src/arm/sysv.S,
2505 src/powerpc/ffitarget.h,
2506 src/closures.c,
2507 src/sh64/ffitarget.h,
2508 src/sh64/ffi.c,
2509 src/sh64/sysv.S,
2510 src/types.c,
2511 src/x86/ffi64.c,
2512 src/x86/ffitarget.h,
2513 src/x86/win32.S,
2514 src/x86/darwin.S,
2515 src/x86/ffi.c,
2516 src/x86/sysv.S,
2517 src/x86/unix64.S,
2518 src/alpha/ffitarget.h,
2519 src/alpha/ffi.c,
2520 src/alpha/osf.S,
2521 src/m68k/ffitarget.h,
2522 src/frv/ffitarget.h,
2523 src/frv/ffi.c,
2524 src/s390/ffitarget.h,
2525 src/s390/sysv.S,
2526 src/cris/ffitarget.h,
2527 src/pa/linux.S,
2528 src/pa/ffitarget.h,
2529 src/pa/ffi.c,
2530 src/raw_api.c,
2531 src/ia64/ffitarget.h,
2532 src/ia64/unix.S,
2533 src/ia64/ffi.c,
2534 src/ia64/ia64_flags.h,
2535 src/java_raw_api.c,
2536 src/debug.c,
2537 src/sparc/v9.S,
2538 src/sparc/ffitarget.h,
2539 src/sparc/ffi.c,
2540 src/sparc/v8.S,
2541 src/mips/ffitarget.h,
2542 src/mips/n32.S,
2543 src/mips/o32.S,
2544 src/mips/ffi.c,
2545 src/prep_cif.c,
2546 src/sh/ffitarget.h,
2547 src/sh/ffi.c,
2548 src/sh/sysv.S: Update license text.
2549
25502009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2551
2552 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2553 (.eh_frame): Add FDE for it.
2554
25552009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2556
2557 * configure.ac: Also check if assembler supports pc-relative
2558 relocs on X86_WIN32 targets.
2559 * configure: Regenerate.
2560 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2561 (_ffi_call_SYSV): Add missing function type symbol .def and
2562 add EH markup labels.
2563 (_ffi_call_STDCALL): Likewise.
2564 (_ffi_closure_SYSV): Likewise.
2565 (_ffi_closure_raw_SYSV): Likewise.
2566 (.eh_frame): Add hand-crafted EH data.
2567
25682009-04-09 Jakub Jelinek <jakub@redhat.com>
2569
2570 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2571 version 3 of the GNU General Public License and to point readers
2572 at the COPYING3 file and the FSF's license web page.
2573 * testsuite/libffi.call/call.exp: Likewise.
2574 * testsuite/libffi.special/special.exp: Likewise.
2575
25762009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2577
2578 * configure: Regenerate.
2579
25802008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2581
2582 PR libffi/26048
2583 * configure.ac (HAVE_AS_X86_PCREL): New test.
2584 * configure: Regenerate.
2585 * fficonfig.h.in: Regenerate.
2586 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2587 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2588 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2589 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2590 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2591 (.Lload_table): Likewise.
2592 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2593
25942008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2595
2596 * configure: Regenerate.
2597
25982008-11-21 Eric Botcazou <ebotcazou@adacore.com>
2599
2600 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2601 signed/unsigned int8/16 return values.
2602 * src/sparc/v8.S (ffi_call_v8): Likewise.
2603 (ffi_closure_v8): Likewise.
2604
26052008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -05002606 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002607
2608 * configure: Regenerate for new libtool.
2609 * Makefile.in: Ditto.
2610 * include/Makefile.in: Ditto.
2611 * aclocal.m4: Ditto.
2612
26132008-08-25 Andreas Tobler <a.tobler@schweiz.org>
2614
2615 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2616 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2617 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2618 Adjust copyright notice.
2619 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2620 register or two register to use for FFI_SYSV structs.
2621 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2622 (ffi_closure_helper_SYSV): Fix the return type for
2623 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2624 Adjust copyright notice.
2625
26262008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2627
2628 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2629 int.
2630
26312008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2632
2633 * configure: Regenerate.
2634 * include/Makefile.in: Regenerate.
2635 * testsuite/Makefile.in: Regenerate.
2636
26372008-06-07 Joseph Myers <joseph@codesourcery.com>
2638
2639 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2640 powerpc-*-beos*): Remove.
2641 * configure: Regenerate.
2642
26432008-05-09 Julian Brown <julian@codesourcery.com>
2644
2645 * Makefile.am (LTLDFLAGS): New.
2646 (libffi_la_LDFLAGS): Use above.
2647 * Makefile.in: Regenerate.
2648
26492008-04-18 Paolo Bonzini <bonzini@gnu.org>
2650
2651 PR bootstrap/35457
2652 * aclocal.m4: Regenerate.
2653 * configure: Regenerate.
2654
26552008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
2656
2657 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2658 * src/sh64/sysv.S: Likewise.
2659
26602008-03-26 Daniel Jacobowitz <dan@debian.org>
2661
2662 * src/arm/sysv.S: Fix ARM comment marker.
2663
26642008-03-26 Jakub Jelinek <jakub@redhat.com>
2665
2666 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2667 * src/s390/sysv.S: Likewise.
2668 * src/powerpc/ppc_closure.S: Likewise.
2669 * src/powerpc/sysv.S: Likewise.
2670 * src/x86/unix64.S: Likewise.
2671 * src/x86/sysv.S: Likewise.
2672 * src/sparc/v8.S: Likewise.
2673 * src/sparc/v9.S: Likewise.
2674 * src/m68k/sysv.S: Likewise.
2675 * src/arm/sysv.S: Likewise.
2676
26772008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2678
2679 * aclocal.m4: Regenerate.
2680 * configure: Likewise.
2681 * Makefile.in: Likewise.
2682 * include/Makefile.in: Likewise.
2683 * testsuite/Makefile.in: Likewise.
2684
26852008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
2686 Andreas Tobler <a.tobler@schweiz.org>
2687
2688 * configure.ac: Add amd64-*-freebsd* target.
2689 * configure: Regenerate.
2690
26912008-01-30 H.J. Lu <hongjiu.lu@intel.com>
2692
2693 PR libffi/34612
2694 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2695 returning struct.
2696
2697 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2698 tests.
2699
27002008-01-24 David Edelsohn <edelsohn@gnu.org>
2701
2702 * configure: Regenerate.
2703
27042008-01-06 Andreas Tobler <a.tobler@schweiz.org>
2705
2706 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2707
27082008-01-05 Andreas Tobler <a.tobler@schweiz.org>
2709
2710 PR testsuite/32843
2711 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2712 signed/unsigned int8/16 for X86_DARWIN.
2713 Updated copyright info.
2714 Handle one and two byte structs with special cif->flags.
2715 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2716 Updated copyright info.
2717 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2718 sysv.S
2719 Remove code to pop args from the stack after call.
2720 Special-case signed/unsigned for int8/16, one and two byte structs.
2721 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2722 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2723 FFI_TYPE_SINT32.
2724 Updated copyright info.
2725
27262007-12-08 David Daney <ddaney@avtrex.com>
2727
Anthony Green0cfe60e2009-12-29 10:06:04 -05002728 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002729 SUBU, add with ADDU and use smaller code sequences.
2730
27312007-12-07 David Daney <ddaney@avtrex.com>
2732
2733 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2734 type.
2735
27362007-12-06 David Daney <ddaney@avtrex.com>
2737
2738 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2739 defined.
2740 (ffi_java_raw): New typedef.
2741 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2742 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2743 ffi_java_raw.
2744 (ffi_java_raw_closure) : Same.
2745 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2746 parameter types.
2747 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2748 FFI_SIZEOF_JAVA_RAW.
2749 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2750 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2751 sizeof(ffi_java_raw) for alignment calculations.
2752 (ffi_java_ptrarray_to_raw): Same.
2753 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -05002754 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002755 (ffi_java_raw_to_rvalue): Same.
2756 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2757 (ffi_java_translate_args): Same.
2758 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2759 parameter types.
2760 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2761
27622007-12-06 David Daney <ddaney@avtrex.com>
2763
Anthony Green0cfe60e2009-12-29 10:06:04 -05002764 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002765 pointer values.
2766
27672007-12-01 Andreas Tobler <a.tobler@schweiz.org>
2768
2769 PR libffi/31937
2770 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2771 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2772 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2773 set the NUM_FPR_ARG_REGISTERS according to.
2774 Add support for potential soft-float support under hard-float
2775 architecture.
2776 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2777 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2778 to the FFI_LINUX_SOFT_FLOAT ABI.
2779 (ffi_prep_cif_machdep): Likewise.
2780 (ffi_closure_helper_SYSV): Likewise.
2781 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2782 on archs where __NO_FPRS__ is true.
2783 Add FFI_TYPE_UINT128 support.
2784 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2785 Adjust copyright notice.
2786
27872007-11-25 Andreas Tobler <a.tobler@schweiz.org>
2788
2789 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2790 * include/ffi_common.h: ... here.
2791 Update copyright.
2792
27932007-11-17 Andreas Tobler <a.tobler@schweiz.org>
2794
2795 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2796 * src/powerpc/linux64.S: Likewise.
2797 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2798 * testsuite/libffi.call/return_ldl.c: New test.
2799
28002007-09-04 <aph@redhat.com>
2801
2802 * src/arm/sysv.S (UNWIND): New.
2803 (Whole file): Conditionally compile unwinder directives.
2804 * src/arm/sysv.S: Add unwinder directives.
2805
2806 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2807 Only treat r0 as a struct address if we're actually returning a
2808 struct by address.
2809 Only copy the bytes that are actually within a struct.
2810 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2811 is returned in r0, not passed by address.
2812 (ffi_call): Allocate a word-sized temporary for the case where
2813 a composite is returned in r0.
2814 (ffi_prep_incoming_args_SYSV): Align as necessary.
2815
28162007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
2817
Anthony Green0cfe60e2009-12-29 10:06:04 -05002818 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002819 directly using the sys_cacheflush syscall.
2820
28212007-07-27 Andrew Haley <aph@redhat.com>
2822
2823 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2824
28252007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
2826
2827 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2828 * configure.ac: Likewise.
2829 * Makefile.in: Regenerate.
2830 * include/Makefile.in: Likewise.
2831 * testsuite/Makefile.in: Likewise.
2832 * configure: Likewise.
2833
28342007-08-24 David Daney <ddaney@avtrex.com>
2835
2836 * testsuite/libffi.call/return_sl.c: New test.
2837
28382007-08-10 David Daney <ddaney@avtrex.com>
2839
2840 * testsuite/libffi.call/cls_multi_ushort.c,
2841 testsuite/libffi.call/cls_align_uint16.c,
2842 testsuite/libffi.call/nested_struct1.c,
2843 testsuite/libffi.call/nested_struct3.c,
2844 testsuite/libffi.call/cls_7_1_byte.c,
2845 testsuite/libffi.call/nested_struct5.c,
2846 testsuite/libffi.call/cls_double.c,
2847 testsuite/libffi.call/nested_struct7.c,
2848 testsuite/libffi.call/cls_sint.c,
2849 testsuite/libffi.call/nested_struct9.c,
2850 testsuite/libffi.call/cls_20byte1.c,
2851 testsuite/libffi.call/cls_multi_sshortchar.c,
2852 testsuite/libffi.call/cls_align_sint64.c,
2853 testsuite/libffi.call/cls_3byte2.c,
2854 testsuite/libffi.call/cls_multi_schar.c,
2855 testsuite/libffi.call/cls_multi_uchar.c,
2856 testsuite/libffi.call/cls_19byte.c,
2857 testsuite/libffi.call/cls_9byte1.c,
2858 testsuite/libffi.call/cls_align_float.c,
2859 testsuite/libffi.call/closure_fn1.c,
2860 testsuite/libffi.call/problem1.c,
2861 testsuite/libffi.call/closure_fn3.c,
2862 testsuite/libffi.call/cls_sshort.c,
2863 testsuite/libffi.call/closure_fn5.c,
2864 testsuite/libffi.call/cls_align_double.c,
2865 testsuite/libffi.call/nested_struct.c,
2866 testsuite/libffi.call/cls_2byte.c,
2867 testsuite/libffi.call/nested_struct10.c,
2868 testsuite/libffi.call/cls_4byte.c,
2869 testsuite/libffi.call/cls_6byte.c,
2870 testsuite/libffi.call/cls_8byte.c,
2871 testsuite/libffi.call/cls_multi_sshort.c,
2872 testsuite/libffi.call/cls_align_sint16.c,
2873 testsuite/libffi.call/cls_align_uint32.c,
2874 testsuite/libffi.call/cls_20byte.c,
2875 testsuite/libffi.call/cls_float.c,
2876 testsuite/libffi.call/nested_struct2.c,
2877 testsuite/libffi.call/cls_5_1_byte.c,
2878 testsuite/libffi.call/nested_struct4.c,
2879 testsuite/libffi.call/cls_24byte.c,
2880 testsuite/libffi.call/nested_struct6.c,
2881 testsuite/libffi.call/cls_64byte.c,
2882 testsuite/libffi.call/nested_struct8.c,
2883 testsuite/libffi.call/cls_uint.c,
2884 testsuite/libffi.call/cls_multi_ushortchar.c,
2885 testsuite/libffi.call/cls_schar.c,
2886 testsuite/libffi.call/cls_uchar.c,
2887 testsuite/libffi.call/cls_align_uint64.c,
2888 testsuite/libffi.call/cls_ulonglong.c,
2889 testsuite/libffi.call/cls_align_longdouble.c,
2890 testsuite/libffi.call/cls_1_1byte.c,
2891 testsuite/libffi.call/cls_12byte.c,
2892 testsuite/libffi.call/cls_3_1byte.c,
2893 testsuite/libffi.call/cls_3byte1.c,
2894 testsuite/libffi.call/cls_4_1byte.c,
2895 testsuite/libffi.call/cls_6_1_byte.c,
2896 testsuite/libffi.call/cls_16byte.c,
2897 testsuite/libffi.call/cls_18byte.c,
2898 testsuite/libffi.call/closure_fn0.c,
2899 testsuite/libffi.call/cls_9byte2.c,
2900 testsuite/libffi.call/closure_fn2.c,
2901 testsuite/libffi.call/closure_fn4.c,
2902 testsuite/libffi.call/cls_ushort.c,
2903 testsuite/libffi.call/closure_fn6.c,
2904 testsuite/libffi.call/cls_5byte.c,
2905 testsuite/libffi.call/cls_align_pointer.c,
2906 testsuite/libffi.call/cls_7byte.c,
2907 testsuite/libffi.call/cls_align_sint32.c,
2908 testsuite/libffi.special/unwindtest_ffi_call.cc,
2909 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2910
29112007-08-10 David Daney <ddaney@avtrex.com>
2912
2913 PR libffi/28313
2914 * configure.ac: Don't treat mips64 as a special case.
2915 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2916 * configure: Regenerate
2917 * Makefile.in: Ditto.
2918 * fficonfig.h.in: Ditto.
2919 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2920 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2921 (FFI_DEFAULT_ABI): Set for n64 case.
2922 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2923 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2924 (ffi_closure_N32): New function.
2925 (.eh_frame): New section
2926 * src/mips/o32.S: Clean up comments.
2927 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2928 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2929 _MIPS_SIM == _ABIN32 throughout.
2930 (FFI_MIPS_STOP_HERE): New, use in place of
2931 ffi_stop_here.
2932 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2933 to support n32/n64 ABIs.
2934 (calc_n32_struct_flags): Rewrite.
2935 (calc_n32_return_struct_flags): Remove unused variable. Reverse
2936 position of flag bits.
2937 (ffi_prep_cif_machdep): Rewrite n32 portion.
2938 (ffi_call): Enable for n64. Add special handling for small structure
2939 return values.
2940 (ffi_prep_closure_loc): Add n32 and n64 support.
2941 (ffi_closure_mips_inner_O32): Add cast to silence warning.
2942 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2943
29442007-08-08 David Daney <ddaney@avtrex.com>
2945
2946 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2947 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2948 specifiers.
2949 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2950 * testsuite/libffi.call/cls_sint.c (main): Ditto.
2951 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2952 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2953 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2954 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2955 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2956 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2957 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2958 * testsuite/libffi.call/return_fl3.c (main): Ditto.
2959 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2960 * testsuite/libffi.call/nested_struct.c (main): Ditto.
2961 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2962 * testsuite/libffi.call/return_ll1.c (main): Ditto.
2963 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2964 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2965 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2966 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2967 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2968 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2969 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2970 * testsuite/libffi.call/cls_uint.c (main): Ditto.
2971 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2972 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2973 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2974 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2975 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2976 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2977 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2978 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2979 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2980
29812007-08-07 Andrew Haley <aph@redhat.com>
2982
2983 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2984 checkin.
2985
29862007-08-06 Andrew Haley <aph@redhat.com>
2987
2988 PR testsuite/32843
2989 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2990 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2991 FFI_TYPE_SINT32.
2992
29932007-08-02 David Daney <ddaney@avtrex.com>
2994
2995 * testsuite/libffi.call/return_ul.c (main): Define return type as
2996 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002997
Anthony Greenc6dddbd2009-10-04 08:11:33 -040029982007-07-30 Andrew Haley <aph@redhat.com>
2999
3000 PR testsuite/32843
3001 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
3002 signed/unsigned int8/16.
3003 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
3004 Use a jump table.
3005 Remove code to pop args from the stack after call.
3006 Special-case signed/unsigned int8/16.
3007 * testsuite/libffi.call/return_sc.c (main): Revert.
3008
30092007-07-26 Richard Guenther <rguenther@suse.de>
3010
3011 PR testsuite/32843
3012 * testsuite/libffi.call/return_sc.c (main): Verify call
3013 result as signed char, not ffi_arg.
3014
30152007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3016
3017 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
3018 * configure: Regenerate.
3019
30202007-07-11 David Daney <ddaney@avtrex.com>
3021
3022 * src/mips/ffi.c: Don't include sys/cachectl.h.
3023 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
3024 cacheflush().
3025
30262007-05-18 Aurelien Jarno <aurelien@aurel32.net>
3027
3028 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
3029 from (ffi_prep_closure): ... this.
3030 (FFI_INIT_TRAMPOLINE): Adjust.
3031
30322005-12-31 Phil Blundell <pb@reciva.com>
3033
Anthony Green0cfe60e2009-12-29 10:06:04 -05003034 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
3035 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003036 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
3037 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3038 (FFI_CLOSURES): Enable closure support.
3039
30402007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
3041
Anthony Green0cfe60e2009-12-29 10:06:04 -05003042 * testsuite/libffi.call/cls_multi_ushort.c,
3043 testsuite/libffi.call/cls_align_uint16.c,
3044 testsuite/libffi.call/nested_struct1.c,
3045 testsuite/libffi.call/nested_struct3.c,
3046 testsuite/libffi.call/cls_7_1_byte.c,
3047 testsuite/libffi.call/cls_double.c,
3048 testsuite/libffi.call/nested_struct5.c,
3049 testsuite/libffi.call/nested_struct7.c,
3050 testsuite/libffi.call/cls_sint.c,
3051 testsuite/libffi.call/nested_struct9.c,
3052 testsuite/libffi.call/cls_20byte1.c,
3053 testsuite/libffi.call/cls_multi_sshortchar.c,
3054 testsuite/libffi.call/cls_align_sint64.c,
3055 testsuite/libffi.call/cls_3byte2.c,
3056 testsuite/libffi.call/cls_multi_schar.c,
3057 testsuite/libffi.call/cls_multi_uchar.c,
3058 testsuite/libffi.call/cls_19byte.c,
3059 testsuite/libffi.call/cls_9byte1.c,
3060 testsuite/libffi.call/cls_align_float.c,
3061 testsuite/libffi.call/closure_fn1.c,
3062 testsuite/libffi.call/problem1.c,
3063 testsuite/libffi.call/closure_fn3.c,
3064 testsuite/libffi.call/cls_sshort.c,
3065 testsuite/libffi.call/closure_fn5.c,
3066 testsuite/libffi.call/cls_align_double.c,
3067 testsuite/libffi.call/cls_2byte.c,
3068 testsuite/libffi.call/nested_struct.c,
3069 testsuite/libffi.call/nested_struct10.c,
3070 testsuite/libffi.call/cls_4byte.c,
3071 testsuite/libffi.call/cls_6byte.c,
3072 testsuite/libffi.call/cls_8byte.c,
3073 testsuite/libffi.call/cls_multi_sshort.c,
3074 testsuite/libffi.call/cls_align_uint32.c,
3075 testsuite/libffi.call/cls_align_sint16.c,
3076 testsuite/libffi.call/cls_float.c,
3077 testsuite/libffi.call/cls_20byte.c,
3078 testsuite/libffi.call/cls_5_1_byte.c,
3079 testsuite/libffi.call/nested_struct2.c,
3080 testsuite/libffi.call/cls_24byte.c,
3081 testsuite/libffi.call/nested_struct4.c,
3082 testsuite/libffi.call/nested_struct6.c,
3083 testsuite/libffi.call/cls_64byte.c,
3084 testsuite/libffi.call/nested_struct8.c,
3085 testsuite/libffi.call/cls_uint.c,
3086 testsuite/libffi.call/cls_multi_ushortchar.c,
3087 testsuite/libffi.call/cls_schar.c,
3088 testsuite/libffi.call/cls_uchar.c,
3089 testsuite/libffi.call/cls_align_uint64.c,
3090 testsuite/libffi.call/cls_ulonglong.c,
3091 testsuite/libffi.call/cls_align_longdouble.c,
3092 testsuite/libffi.call/cls_1_1byte.c,
3093 testsuite/libffi.call/cls_12byte.c,
3094 testsuite/libffi.call/cls_3_1byte.c,
3095 testsuite/libffi.call/cls_3byte1.c,
3096 testsuite/libffi.call/cls_4_1byte.c,
3097 testsuite/libffi.call/cls_6_1_byte.c,
3098 testsuite/libffi.call/cls_16byte.c,
3099 testsuite/libffi.call/cls_18byte.c,
3100 testsuite/libffi.call/closure_fn0.c,
3101 testsuite/libffi.call/cls_9byte2.c,
3102 testsuite/libffi.call/closure_fn2.c,
3103 testsuite/libffi.call/closure_fn4.c,
3104 testsuite/libffi.call/cls_ushort.c,
3105 testsuite/libffi.call/closure_fn6.c,
3106 testsuite/libffi.call/cls_5byte.c,
3107 testsuite/libffi.call/cls_align_pointer.c,
3108 testsuite/libffi.call/cls_7byte.c,
3109 testsuite/libffi.call/cls_align_sint32.c,
3110 testsuite/libffi.special/unwindtest_ffi_call.cc,
3111 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003112
31132007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3114
3115 * aclocal.m4: Regenerated.
3116
31172007-06-02 Paolo Bonzini <bonzini@gnu.org>
3118
3119 * configure: Regenerate.
3120
31212007-05-23 Steve Ellcey <sje@cup.hp.com>
3122
3123 * Makefile.in: Regenerate.
3124 * configure: Regenerate.
3125 * aclocal.m4: Regenerate.
3126 * include/Makefile.in: Regenerate.
3127 * testsuite/Makefile.in: Regenerate.
3128
31292007-05-10 Roman Zippel <zippel@linux-m68k.org>
3130
3131 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3132 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3133 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3134 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3135 (FFI_CLOSURES): Enable closure support.
3136
31372007-05-10 Roman Zippel <zippel@linux-m68k.org>
3138
3139 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3140 * configure: Regenerate.
3141 * fficonfig.h.in: Regenerate.
3142 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3143 CFI_OFFSET,CFI_DEF_CFA): New macros.
3144 (ffi_call_SYSV): Add callframe annotation.
3145
31462007-05-10 Roman Zippel <zippel@linux-m68k.org>
3147
3148 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3149 numerous test suite failures.
3150 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3151
31522007-04-11 Paolo Bonzini <bonzini@gnu.org>
3153
3154 * Makefile.am (EXTRA_DIST): Bring up to date.
3155 * Makefile.in: Regenerate.
3156 * src/frv/eabi.S: Remove RCS keyword.
3157
31582007-04-06 Richard Henderson <rth@redhat.com>
3159
3160 * configure.ac: Tidy target case.
3161 (HAVE_LONG_DOUBLE): Allow the target to override.
3162 * configure: Regenerate.
3163 * include/ffi.h.in: Don't define ffi_type_foo if
3164 LIBFFI_HIDE_BASIC_TYPES is defined.
3165 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3166 to ffi_type_double.
3167 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3168 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3169 (ffi_type_longdouble): Special case for Alpha. Don't define
3170 if long double == double.
3171
3172 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3173 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3174 (ffi_call, ffi_closure_osf_inner): Likewise.
3175 (ffi_closure_osf_inner): Likewise. Mark hidden.
3176 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3177 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3178 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3179 (load_table): Handle 128-bit long double.
3180
3181 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3182
31832007-04-06 Tom Tromey <tromey@redhat.com>
3184
3185 PR libffi/31491:
3186 * README: Fixed bug in example.
3187
31882007-04-03 Jakub Jelinek <jakub@redhat.com>
3189
3190 * src/closures.c: Include sys/statfs.h.
3191 (_GNU_SOURCE): Define on Linux.
3192 (FFI_MMAP_EXEC_SELINUX): Define.
3193 (selinux_enabled): New variable.
3194 (selinux_enabled_check): New function.
3195 (is_selinux_enabled): Define.
3196 (dlmmap): Use it.
3197
31982007-03-24 Uros Bizjak <ubizjak@gmail.com>
3199
3200 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3201 Use 'volatile float sum' to create sum of floats to avoid false
3202 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003203 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003204
32052007-03-08 Alexandre Oliva <aoliva@redhat.com>
3206
3207 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3208 patch.
3209 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3210
32112007-03-07 Alexandre Oliva <aoliva@redhat.com>
3212
3213 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3214 (ffi_prep_closure_loc): New.
3215 (ffi_prep_raw_closure_loc): New.
3216 (ffi_prep_java_raw_closure_loc): New.
3217 * src/closures.c: New file.
3218 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3219 Replace sflags with exec_offset.
3220 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3221 sub_segment_exec_offset): New macros.
3222 (get_segment_flags, set_segment_flags, check_segment_merge): New
3223 macros.
3224 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3225 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3226 destroy_mspace): Use new macros.
3227 (sys_alloc): Silence warning.
3228 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3229 * Makefile.in: Rebuilt.
3230 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3231 terms of ffi_prep_closure_loc.
3232 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3233 from...
3234 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3235 renamed version.
3236 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3237 adjusted from...
3238 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3239 the renamed version.
3240 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3241 (ffi_prep_closure): ... this.
3242 * src/pa/ffi.c: Likewise.
3243 * src/cris/ffi.c: Likewise. Adjust.
3244 * src/frv/ffi.c: Likewise.
3245 * src/ia64/ffi.c: Likewise.
3246 * src/mips/ffi.c: Likewise.
3247 * src/powerpc/ffi_darwin.c: Likewise.
3248 * src/s390/ffi.c: Likewise.
3249 * src/sh/ffi.c: Likewise.
3250 * src/sh64/ffi.c: Likewise.
3251 * src/sparc/ffi.c: Likewise.
3252 * src/x86/ffi64.c: Likewise.
3253 * src/x86/ffi.c: Likewise.
3254 (FFI_INIT_TRAMPOLINE): Adjust.
3255 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3256 (ffi_prep_raw_closure): ... this.
3257 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3258 (ffi_prep_closure): ... this.
3259 (flush_icache): Adjust.
3260
32612007-03-07 Alexandre Oliva <aoliva@redhat.com>
3262
3263 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3264 Lea's malloc.
3265
32662007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3267
3268 * Makefile.am: Add dummy install-pdf target.
3269 * Makefile.in: Regenerate
3270
32712007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
3272
3273 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3274 ffi_closure_helper_SYSV): Add long double handling.
3275
32762007-02-02 Jakub Jelinek <jakub@redhat.com>
3277
3278 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3279 immediately after bctrl instruction.
3280
32812007-01-18 Alexandre Oliva <aoliva@redhat.com>
3282
3283 * Makefile.am (all-recursive, install-recursive,
3284 mostlyclean-recursive, clean-recursive, distclean-recursive,
3285 maintainer-clean-recursive): Add missing targets.
3286 * Makefile.in: Rebuilt.
3287
32882006-12-14 Andreas Tobler <a.tobler@schweiz.org>
3289
3290 * configure.ac: Add TARGET for x86_64-*-darwin*.
3291 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3292 for X86_DARWIN.
3293 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3294 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3295 * configure: Regenerate.
3296 * Makefile.in: Regenerate.
3297 * include/Makefile.in: Regenerate.
3298 * testsuite/Makefile.in: Regenerate.
3299 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3300 ffi_call only.
3301
33022006-12-13 Andreas Tobler <a.tobler@schweiz.org>
3303
3304 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3305 Makefile.am.
3306
33072006-10-31 Geoffrey Keating <geoffk@apple.com>
3308
3309 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3310 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3311 Darwin.
3312 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3313 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3314
33152006-10-10 Paolo Bonzini <bonzini@gnu.org>
3316 Sandro Tolaini <tolaini@libero.it>
3317
Anthony Green0cfe60e2009-12-29 10:06:04 -05003318 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003319 conditional.
3320 * configure: Regenerated.
3321 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3322 (EXTRA_DIST): Add src/x86/darwin.S.
3323 * Makefile.in: Regenerated.
3324 * include/Makefile.in: Regenerated.
3325 * testsuite/Makefile.in: Regenerated.
3326
3327 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3328 X86_WIN32, and additionally align stack to 16 bytes.
3329 * src/x86/darwin.S: New, based on sysv.S.
3330 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3331
33322006-09-12 David Daney <ddaney@avtrex.com>
3333
3334 PR libffi/23935
3335 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3336 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3337 * aclocal.m4: Regenerated for automake 1.9.6.
3338 * Makefile.in: Regenerated.
3339 * include/Makefile.in: Regenerated.
3340 * testsuite/Makefile.in: Regenerated.
3341
33422006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3343
3344 * include/ffi_common.h (struct): Revert accidental commit.
3345
33462006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3347
3348 * include/ffi_common.h: Remove lint directives.
3349 * include/ffi.h.in: Likewise.
3350
33512006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
3352
3353 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3354 for 32-bit architectures.
3355 * testsuite/libffi.call/return_ul.c: New test case.
3356
33572006-07-19 David Daney <ddaney@avtrex.com>
3358
3359 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3360 xfail remains for mips64.
3361
33622006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3363
3364 * Makefile.am: Add install-html target. Add install-html to .PHONY
3365 * Makefile.in: Regenerate.
3366 * aclocal.m4: Regenerate.
3367 * include/Makefile.in: Regenerate.
3368 * testsuite/Makefile.in: Regenerate.
3369
33702006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3371
3372 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3373 stack slot.
3374
33752006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
3376
3377 * README: Remove notice about 'Crazy Comments'.
3378 * src/debug.c: Remove lint directives. Cleanup white spaces.
3379 * src/java_raw_api.c: Likewise.
3380 * src/prep_cif.c: Likewise.
3381 * src/raw_api.c: Likewise.
3382 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3383 to the testsuite.
3384 * src/arm/ffi.c: Remove lint directives.
3385 * src/m32r/ffi.c: Likewise.
3386 * src/pa/ffi.c: Likewise.
3387 * src/powerpc/ffi.c: Likewise.
3388 * src/powerpc/ffi_darwin.c: Likewise.
3389 * src/sh/ffi.c: Likewise.
3390 * src/sh64/ffi.c: Likewise.
3391 * src/x86/ffi.c: Likewise.
3392 * testsuite/libffi.call/float2.c: Likewise.
3393 * testsuite/libffi.call/promotion.c: Likewise.
3394 * testsuite/libffi.call/struct1.c: Likewise.
3395
33962006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
3397
3398 * src/pa/hpux32.S: Correct unwind offset calculation for
3399 ffi_closure_pa32.
3400 * src/pa/linux.S: Likewise.
3401
34022006-04-12 James E Wilson <wilson@specifix.com>
3403
3404 PR libgcj/26483
3405 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3406 (hfa_type_load): Call stf_spill.
3407 (hfa_type_store): Call ldf_fill.
3408 (ffi_call): Adjust calls to above routines. Add local temps for
3409 macro result.
3410
34112006-04-10 Matthias Klose <doko@debian.org>
3412
3413 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3414 directory names containing underscores.
3415
34162006-04-07 James E Wilson <wilson@specifix.com>
3417
3418 * testsuite/libffi.call/float4.c: New testcase.
3419
34202006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3421 Andreas Tobler <a.tobler@schweiz.ch>
3422
3423 * Makefile.am: Add PA_HPUX port.
3424 * Makefile.in: Regenerate.
3425 * include/Makefile.in: Likewise.
3426 * testsuite/Makefile.in: Likewise.
3427 * configure.ac: Add PA_HPUX rules.
3428 * configure: Regenerate.
3429 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3430 Add PA_HPUX and PA64_HPUX.
3431 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3432 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3433 (FFI_TYPE_SMALL_STRUCT2): Define.
3434 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3435 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3436 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3437 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3438 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3439 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3440 * src/pa/ffi.c (ROUND_DOWN): Delete.
3441 (fldw, fstw, fldd, fstd): Use '__asm__'.
3442 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3443 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3444 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3445 Simplify incrementing of stack slot variable. Change type of local
3446 'n' to unsigned int.
3447 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3448 double on PA_HPUX.
3449 (ffi_prep_cif_machdep): Likewise.
3450 (ffi_call): Likewise.
3451 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3452 return type to ffi_status. Simplify incrementing of stack slot
3453 variable. Only copy floating point argument registers when PA_LINUX
3454 is true. Reformat debug statement.
3455 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3456 FFI_TYPE_SMALL_STRUCT8.
3457 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3458 declaration.
3459 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3460 Add nops to cache flush. Add trampoline for PA_HPUX.
3461 * src/pa/hpux32.S: New file.
3462 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3463 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3464 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3465 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3466 argument type checks so that common argument types appear first.
3467 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3468 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3469
34702006-03-24 Alan Modra <amodra@bigpond.net.au>
3471
3472 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3473 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3474 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3475 FFI_TYPE_LONGDOUBLE.
3476 (ffi_prep_args64): Assert using IBM extended double.
3477 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3478 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3479 (ffi_call): Handle FFI_LINUX.
3480 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3481 gpr3 return pointer as for struct return. Handle FFI_LINUX
3482 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3483 unnecessarily.
3484 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3485 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3486 Don't use r6 as pointer to results, instead use sp offset. Don't
3487 make a special call to load lr with case table address, instead
3488 use offset from previous call.
3489 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3490 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3491 return.
3492
34932006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
3494
3495 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3496 passed with FP registers correctly.
3497 (ffi_closure_helper_SYSV): Likewise.
3498 * src/sh64/sysv.S: Likewise.
3499
35002006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
3501
3502 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3503 args and userdata unused.
3504 (closure_test_fn1): Mark cif and userdata unused.
3505 (main): Remove unused res.
3506
35072006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
3508
3509 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3510 -O2, -O3, -Os and the warning flags -W -Wall.
3511 * testsuite/libffi.special/special.exp: Likewise.
3512 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3513 unused parameter unused for gcc or else do nothing.
3514 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3515 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3516 and userdata unused.
3517 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3518 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3519 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3520 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3521 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3522 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3523 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3524 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3525 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3526 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3527 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3528 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3529 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3530 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3531 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3532 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3533 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3534 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3535 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3536 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3537 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3538 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3539 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3540 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3541 Likewise.
3542 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3543 Likewise.
3544 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3545 Likewise.
3546 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3547 void* to avoid compiler warning.
3548 (main): Likewise.
3549 (cls_struct_align_gn): Mark cif and userdata unused.
3550 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3551 Likewise.
3552 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3553 Likewise.
3554 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3555 Likewise.
3556 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3557 Likewise.
3558 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3559 Likewise.
3560 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3561 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3562 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3563 data unused.
3564 (main): Cast res_call to silence gcc.
3565 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3566 data unused.
3567 (main): Cast res_call to silence gcc.
3568 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3569 and data unused.
3570 (main): Cast res_call to silence gcc.
3571 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3572 data unused.
3573 (main): Cast res_call to silence gcc.
3574 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3575 data unused.
3576 (main): Cast res_call to silence gcc.
3577 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3578 and data unused.
3579 (main): Cast res_call to silence gcc.
3580 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3581 userdata unused.
3582 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3583 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3584 userdata unused.
3585 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3586 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3587 userdata unused.
3588 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3589 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3590 userdata unused.
3591 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3592 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3593 userdata unused.
3594 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3595 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3596 and userdata unused.
3597 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3598 userdata unused.
3599 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3600 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3601 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3602 Cleanup white spaces.
3603 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3604 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3605 cif and userdata unused.
3606 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3607 Likewise.
3608 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3609 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3610 formatters to silence gcc.
3611 (B_gn): Mark cif and userdata unused.
3612 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3613 unused.
3614 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3615 (B_gn): Mark cif and userdata unused.
3616 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3617 unused.
3618 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3619 (B_gn): Mark cif and userdata unused.
3620 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3621 unused.
3622 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3623 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3624 * testsuite/libffi.call/problem1.c (stub): Likewise.
3625 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3626 gcc.
3627 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3628 in the last commit for this test case in the test case itself.
3629 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3630 unused.
3631 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3632 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3633 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3634 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3635 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3636 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3637
36382006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
3639
3640 * src/sh/sysv.S: Fix register numbers in the FDE for
3641 ffi_closure_SYSV.
3642
36432006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
3644
3645 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3646 declaration to avoid a false negative on ix86. See PR323.
3647
36482006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3649
3650 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3651 and cast integer to void * if needed. Update the pointer to
3652 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003653
Anthony Greenc6dddbd2009-10-04 08:11:33 -040036542006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
3655
3656 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3657 is fixed.
3658 * testsuite/libffi.call/nested_struct4.c: Likewise.
3659
36602006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
3661
3662 * testsuite/libffi.call/return_dbl.c: New test case.
3663 * testsuite/libffi.call/return_dbl1.c: Likewise.
3664 * testsuite/libffi.call/return_dbl2.c: Likewise.
3665 * testsuite/libffi.call/return_fl.c: Likewise.
3666 * testsuite/libffi.call/return_fl1.c: Likewise.
3667 * testsuite/libffi.call/return_fl2.c: Likewise.
3668 * testsuite/libffi.call/return_fl3.c: Likewise.
3669 * testsuite/libffi.call/closure_fn6.c: Likewise.
3670
3671 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3672 definition.
3673 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3674 here to be used by other test cases too.
3675
3676 * testsuite/libffi.call/nested_struct10.c: New test case.
3677 * testsuite/libffi.call/nested_struct9.c: Likewise.
3678 * testsuite/libffi.call/nested_struct8.c: Likewise.
3679 * testsuite/libffi.call/nested_struct7.c: Likewise.
3680 * testsuite/libffi.call/nested_struct6.c: Likewise.
3681 * testsuite/libffi.call/nested_struct5.c: Likewise.
3682 * testsuite/libffi.call/nested_struct4.c: Likewise.
3683
36842006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3685
3686 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3687 * configure: Rebuilt.
3688
36892006-01-18 Jakub Jelinek <jakub@redhat.com>
3690
3691 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3692 instead do the shifting inline.
3693 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3694 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3695 and 8 byte structs, for the remaining struct sizes don't call
3696 __lshrdi3, instead do the shifting inline.
3697
36982005-12-07 Thiemo Seufer <ths@networkno.de>
3699
3700 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3701 missing parentheses.
3702 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3703 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3704 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3705 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3706 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3707 FA_0_0_OFF2.
3708 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3709 endianness bugs.
3710 (ffi_prep_closure): Improve trampoline instruction scheduling.
3711 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3712
37132005-12-03 Alan Modra <amodra@bigpond.net.au>
3714
3715 * src/powerpc/ffi.c: Formatting.
3716 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3717 (ffi_prep_args64): Likewise.
3718
37192005-09-30 Geoffrey Keating <geoffk@apple.com>
3720
3721 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3722 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3723
37242005-09-26 Tom Tromey <tromey@redhat.com>
3725
3726 * testsuite/libffi.call/float1.c (value_type): New typedef.
3727 (CANARY): New define.
3728 (main): Check for result buffer overflow.
3729 * src/powerpc/linux64.S: Handle linux64 long double returns.
3730 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3731 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3732
37332005-08-25 Alan Modra <amodra@bigpond.net.au>
3734
3735 PR target/23404
3736 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3737 homed fp args.
3738 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3739
37402005-08-11 Jakub Jelinek <jakub@redhat.com>
3741
3742 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3743 (AH_BOTTOM): Add FFI_HIDDEN definition.
3744 * configure: Rebuilt.
3745 * fficonfig.h.in: Rebuilt.
3746 * src/powerpc/ffi.c (hidden): Remove.
3747 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3748 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3749 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3750 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3751 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3752 add FFI_HIDDEN to its prototype.
3753 (ffi_closure_SYSV_inner): New.
3754 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3755 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3756
37572005-08-10 Alfred M. Szmidt <ams@gnu.org>
3758
3759 PR libffi/21819:
3760 * configure: Rebuilt.
3761 * configure.ac: Handle i*86-*-gnu*.
3762
37632005-08-09 Jakub Jelinek <jakub@redhat.com>
3764
3765 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3766 DW_CFA_offset_extended_sf rather than
3767 DW_CFA_GNU_negative_offset_extended.
3768 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3769
37702005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3771
3772 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3773 on sh3.
3774 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3775 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3776 partially on register.
3777 (ffi_closure_helper_SYSV): Likewise.
3778 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3779
37802005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3781
3782 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3783 Remove empty line.
3784 * src/sh64/ffi.c (simple_type): Remove.
3785 (return_type): Handle small structures correctly.
3786 (ffi_prep_args): Likewise.
3787 (ffi_call): Likewise.
3788 (ffi_closure_helper_SYSV): Likewise.
3789 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3790 Emit position independent code if PIC and remove wrong datalabel
3791 prefixes from EH data.
3792
37932005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
3794
3795 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3796 * Makefile.in: Regenerate.
3797 * include/Makefile.in: Likewise.
3798 * testsuite/Makefile.in: Likewise.
3799 * configure.ac: Add POWERPC_FREEBSD rules.
3800 * configure: Regenerate.
3801 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3802 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3803 * src/powerpc/ffi.c: Add flags to handle small structure returns
3804 in ffi_call_SYSV.
3805 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3806 Aka FFI_SYSV.
3807 (ffi_closure_helper_SYSV): Likewise.
3808 * src/powerpc/ppc_closure.S: Add return types for small structures.
3809 * src/powerpc/sysv.S: Add bits to handle small structures for
3810 final SYSV 4 ABI.
3811
38122005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3813
3814 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3815 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3816 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3817
38182005-07-05 Randolph Chung <tausq@debian.org>
3819
3820 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3821 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3822 structures. Kill compilation warnings.
3823 (ffi_closure_inner_LINUX): Print return values as hex in debug
3824 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3825 Properly handle 5-7 byte structure returns.
3826 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3827 (FFI_TYPE_SMALL_STRUCT2): Remove.
3828 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3829 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3830 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3831 (checksmst1, checksmst2): Remove.
3832 (checksmst3): Optimize handling of 3-byte struct returns.
3833 (checksmst567): Properly handle 5-7 byte struct returns.
3834
38352005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3836
3837 PR libgcj/21943
3838 * src/mips/n32.S: Enforce PIC code.
3839 * src/mips/o32.S: Likewise.
3840
38412005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3842
3843 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3844 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003845
Anthony Greenc6dddbd2009-10-04 08:11:33 -040038462005-06-01 Alan Modra <amodra@bigpond.net.au>
3847
3848 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3849 to call ffi_closure_helper_SYSV. Append @local instead.
3850 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3851
38522005-05-17 Kelley Cook <kcook@gcc.gnu.org>
3853
3854 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3855 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3856 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3857 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3858 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003859
Anthony Greenc6dddbd2009-10-04 08:11:33 -040038602005-05-09 Mike Stump <mrs@apple.com>
3861
3862 * configure: Regenerate.
3863
38642005-05-08 Richard Henderson <rth@redhat.com>
3865
3866 PR libffi/21285
3867 * src/alpha/osf.S: Update unwind into to match code.
3868
38692005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
3870 Richard Henderson <rth@redhat.com>
3871
3872 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3873 bit 11 of flags.
3874 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3875 (ffi_prep_closure): Set carry bit if sse-used flag set.
3876 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3877 Only load sse registers if ssecount non-zero.
3878 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3879
38802005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3881
3882 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3883 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3884 * configure: Regenerate.
3885
38862005-04-20 Hans-Peter Nilsson <hp@axis.com>
3887
3888 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3889 have Tcl8.3-compatible intermediate variable.
3890
Anthony Green0cfe60e2009-12-29 10:06:04 -050038912005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003892 Hans-Peter Nilsson <hp@axis.com>
3893
3894 * Makefile.am: Add CRIS support.
3895 * configure.ac: Likewise.
3896 * Makefile.in, configure, testsuite/Makefile.in,
3897 include/Makefile.in: Regenerate.
3898 * src/cris: New directory.
3899 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3900 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3901
3902 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3903 \r?\n in output tests.
3904
39052005-04-12 Mike Stump <mrs@apple.com>
3906
3907 * configure: Regenerate.
3908
39092005-03-30 Hans Boehm <Hans.Boehm@hp.com>
3910
3911 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05003912
Anthony Greenc6dddbd2009-10-04 08:11:33 -040039132005-03-30 Steve Ellcey <sje@cup.hp.com>
3914
3915 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3916 (ffi_sarg) Ditto.
3917 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3918 to 64 bits in ILP32 mode.
3919 Load 64 bits even for short data.
3920
39212005-03-23 Mike Stump <mrs@apple.com>
3922
3923 * src/powerpc/darwin.S: Update for -m64 multilib.
3924 * src/powerpc/darwin_closure.S: Likewise.
3925
39262005-03-21 Zack Weinberg <zack@codesourcery.com>
3927
3928 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3929 Do not set tool_include_dir.
3930 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3931 Regenerate.
3932 * include/Makefile.am: Set gcc_version and toollibffidir.
3933 * include/Makefile.in: Regenerate.
3934
39352005-02-22 Andrew Haley <aph@redhat.com>
3936
3937 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3938 odd-numbered register pairs for 64-bit integer types.
3939
39402005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
3941
3942 PR libffi/20104
3943 * testsuite/libffi.call/return_ll1.c: New test case.
3944
39452005-02-11 Janis Johnson <janis187@us.ibm.com>
3946
3947 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3948 * testsuite/libffi.call/float.c: Ditto.
3949 * testsuite/libffi.call/float2.c: Ditto.
3950 * testsuite/libffi.call/float3.c: Ditto.
3951
39522005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
3953
3954 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3955
39562005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3957
3958 * testsuite/libffi.special/special.exp (cxx_options): Add
3959 -shared-libgcc.
3960
39612004-12-31 Richard Henderson <rth@redhat.com>
3962
3963 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3964 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
3965 offset parameters with a type parameter; deduce size and structure
3966 alignment. Update all users.
3967
39682004-12-31 Richard Henderson <rth@redhat.com>
3969
3970 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3971 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
3972 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
3973 into ffi_prep_closure.
3974 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3975 from scratch.
3976
39772004-12-27 Richard Henderson <rth@redhat.com>
3978
3979 * src/x86/unix64.S: Fix typo in unwind info.
3980
39812004-12-25 Richard Henderson <rth@redhat.com>
3982
3983 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3984 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3985 (merge_classes): Check for it.
3986 (SSE_CLASS_P): New.
3987 (classify_argument): Pass byte_offset by value; perform all updates
3988 inside struct case.
3989 (examine_argument): Add classes argument; handle
3990 X86_64_COMPLEX_X87_CLASS.
3991 (ffi_prep_args): Merge into ...
3992 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
3993 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3994 (ffi_fill_return_value): Remove.
3995 (ffi_prep_closure): Remove dead assert.
3996 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
3997 Rewrite to use struct register_args instead of va_list. Create
3998 flags for handling structure returns.
3999 * src/x86/unix64.S: Remove dead strings.
4000 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
4001 stack frame with ffi_call. Handle structure returns properly.
4002 (float2sse, floatfloat2sse, double2sse): Remove.
4003 (sse2float, sse2double, sse2floatfloat): Remove.
4004 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
4005 to handle structure returns properly.
4006
40072004-12-08 David Edelsohn <edelsohn@gnu.org>
4008
4009 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
4010 PICFLAG.
4011 * Makefile.in: Regenerated.
4012
40132004-12-02 Richard Sandiford <rsandifo@redhat.com>
4014
4015 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
4016 * configure, aclocal.m4, Makefile.in: Regenerate.
4017 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
4018
40192004-11-29 Kelley Cook <kcook@gcc.gnu.org>
4020
4021 * configure: Regenerate for libtool change.
4022
40232004-11-25 Kelley Cook <kcook@gcc.gnu.org>
4024
4025 * configure: Regenerate for libtool reversion.
4026
40272004-11-24 Kelley Cook <kcook@gcc.gnu.org>
4028
4029 * configure: Regenerate for libtool change.
4030
40312004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4032
4033 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
4034
40352004-11-23 Richard Sandiford <rsandifo@redhat.com>
4036
4037 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
4038 of jal. Use an absolute encoding for the frame information.
4039
40402004-11-23 Kelley Cook <kcook@gcc.gnu.org>
4041
4042 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
4043 * acinclude.m4: Delete logic for sincludes.
4044 * aclocal.m4, Makefile.in, configure: Regenerate.
4045 * include/Makefile: Likewise.
4046 * testsuite/Makefile: Likewise.
4047
40482004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
4049
4050 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
4051 on a 8-byte boundary.
4052 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
4053
40542004-10-27 Richard Earnshaw <rearnsha@arm.com>
4055
4056 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
4057 long long values. Round stack allocation to a multiple of 8 bytes
4058 for ATPCS compatibility.
4059 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
4060 names. Handle returning long long types. Add Thumb and interworking
4061 support. Improve soft-float code.
4062
40632004-10-27 Richard Earnshaw <rearnsha@arm.com>
4064
4065 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
4066 (libffi_exit): New function.
4067 (libffi_init): Build the testglue wrapper if needed.
4068
40692004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4070
4071 PR other/18138
4072 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
4073
40742004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4075
4076 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
4077
40782004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
4079
4080 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
4081 * testsuite/libffi.call/float3.c: New test case.
4082
40832004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
4084
4085 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
4086 the function returning a structure pointed with R2.
4087 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
4088 the structure return value if T bit set. Emit position
4089 independent code and EH data if PIC.
4090
40912004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4092
4093 * Makefile.am: Add m32r support.
4094 * configure.ac: Likewise.
4095 * Makefile.in: Regenerate.
4096 * confiugre: Regenerate.
4097 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
4098 (uint64, sint64, double, longdouble)
4099 * src/m32r: New directory.
4100 * src/m32r/ffi.c: New file.
4101 * src/m32r/sysv.S: Likewise.
4102 * src/m32r/ffitarget.h: Likewise.
4103
41042004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
4105
4106 * testsuite/libffi.call/negint.c: New test case.
4107
41082004-09-14 H.J. Lu <hongjiu.lu@intel.com>
4109
4110 PR libgcj/17465
4111 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4112 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4113 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4114 DYLD_LIBRARY_PATH.
4115
41162004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4117
4118 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4119 * testsuite/libffi.call/promotion.c: Likewise.
4120 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4121 whitespaces.
4122 * testsuite/libffi.call/return_sc.c: Likewise.
4123 * testsuite/libffi.call/return_uc.c: Likewise.
4124
41252004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4126
4127 * src/powerpc/darwin.S: Fix comments and identation.
4128 * src/powerpc/darwin_closure.S: Likewise.
4129
41302004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4131
4132 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4133 (ffi_prep_args): Handle longdouble arguments.
4134 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4135 longdouble.
4136 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4137 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4138 values.
4139 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4140 * src/types.c: Defined longdouble size and alignment for darwin.
4141
41422004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4143
4144 * src/powerpc/aix.S: Remove whitespaces.
4145 * src/powerpc/aix_closure.S: Likewise.
4146 * src/powerpc/asm.h: Likewise.
4147 * src/powerpc/ffi.c: Likewise.
4148 * src/powerpc/ffitarget.h: Likewise.
4149 * src/powerpc/linux64.S: Likewise.
4150 * src/powerpc/linux64_closure.S: Likewise.
4151 * src/powerpc/ppc_closure.S: Likewise.
4152 * src/powerpc/sysv.S: Likewise.
4153
41542004-08-30 Anthony Green <green@redhat.com>
4155
4156 * Makefile.am: Add frv support.
4157 * Makefile.in, testsuite/Makefile.in: Rebuilt.
4158 * configure.ac: Read configure.host.
4159 * configure.in: Read configure.host.
4160 * configure.host: New file. frv-elf needs libgloss.
4161 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
4162 alignment. This is needed to frv and shouldn't harm the others.
4163 * include/ffi_common.h (ALIGN_DOWN): New macro.
4164 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4165
41662004-08-24 David Daney <daney@avtrex.com>
4167
4168 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4169 * testsuite/libffi.call/closure_fn1.c: Likewise.
4170 * testsuite/libffi.call/closure_fn2.c Likewise.
4171 * testsuite/libffi.call/closure_fn3.c: Likewise.
4172 * testsuite/libffi.call/closure_fn4.c: Likewise.
4173 * testsuite/libffi.call/closure_fn5.c: Likewise.
4174 * testsuite/libffi.call/cls_18byte.c: Likewise.
4175 * testsuite/libffi.call/cls_19byte.c: Likewise.
4176 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4177 * testsuite/libffi.call/cls_20byte.c: Likewise.
4178 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4179 * testsuite/libffi.call/cls_24byte.c: Likewise.
4180 * testsuite/libffi.call/cls_2byte.c: Likewise.
4181 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4182 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4183 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4184 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4185 * testsuite/libffi.call/cls_4byte.c: Likewise.
4186 * testsuite/libffi.call/cls_64byte.c: Likewise.
4187 * testsuite/libffi.call/cls_6byte.c: Likewise.
4188 * testsuite/libffi.call/cls_7byte.c: Likewise.
4189 * testsuite/libffi.call/cls_8byte.c: Likewise.
4190 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4191 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4192 * testsuite/libffi.call/cls_align_double.c: Likewise.
4193 * testsuite/libffi.call/cls_align_float.c: Likewise.
4194 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4195 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4196 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4197 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4198 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4199 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4200 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4201 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4202 * testsuite/libffi.call/cls_double.c: Likewise.
4203 * testsuite/libffi.call/cls_float.c: Likewise.
4204 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4205 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4206 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4207 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4208 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4209 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4210 * testsuite/libffi.call/cls_schar.c: Likewise.
4211 * testsuite/libffi.call/cls_sint.c: Likewise.
4212 * testsuite/libffi.call/cls_sshort.c: Likewise.
4213 * testsuite/libffi.call/cls_uchar.c: Likewise.
4214 * testsuite/libffi.call/cls_uint.c: Likewise.
4215 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4216 * testsuite/libffi.call/cls_ushort.c: Likewise.
4217 * testsuite/libffi.call/nested_struct.c: Likewise.
4218 * testsuite/libffi.call/nested_struct1.c: Likewise.
4219 * testsuite/libffi.call/nested_struct2.c: Likewise.
4220 * testsuite/libffi.call/nested_struct3.c: Likewise.
4221 * testsuite/libffi.call/problem1.c: Likewise.
4222 * testsuite/libffi.special/unwindtest.cc: Likewise.
4223 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4224 to zero.
4225 * testsuite/libffi.call/cls_16byte.c: Likewise.
4226 * testsuite/libffi.call/cls_5byte.c: Likewise.
4227
42282004-08-23 David Daney <daney@avtrex.com>
4229
4230 PR libgcj/13141
4231 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4232 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4233 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4234 parameters and return types.
4235 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4236 (ffi_prep_closure): Ditto.
4237 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4238 alignment calculations.
4239 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4240 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4241
42422004-08-14 Casey Marshall <csm@gnu.org>
4243
4244 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4245 contain `FFI_TYPE_UINT64' as return type for any 64-bit
4246 integer (O32 ABI only).
4247 (ffi_prep_closure): new function.
4248 (ffi_closure_mips_inner_O32): new function.
4249 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
4250 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4251 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4252 64 bit integers correctly.
4253 (ffi_closure_O32): new function.
4254 Added DWARF-2 unwind info for both functions.
4255
42562004-08-10 Andrew Haley <aph@redhat.com>
4257
4258 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4259
42602004-08-01 Robert Millan <robertmh@gnu.org>
4261
4262 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4263 * configure: Regenerate.
4264
42652004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
4266
4267 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4268 and mmap() explicitly instead of relying on preset autoconf cache
4269 variables.
4270 * aclocal.m4: Regenerate.
4271 * configure: Regenerate.
4272
42732004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4274
4275 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4276 (ffi_check_float_struct): Remove unused prototype.
4277
42782004-06-30 Geoffrey Keating <geoffk@apple.com>
4279
4280 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4281 character on Darwin, use '\n\t' instead.
4282
42832004-06-26 Matthias Klose <doko@debian.org>
4284
4285 * libtool-version: Fix typo in revision/age.
4286
42872004-06-17 Matthias Klose <doko@debian.org>
4288
4289 * libtool-version: New.
4290 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4291 * Makefile.in: Regenerate.
4292
42932004-06-15 Paolo Bonzini <bonzini@gnu.org>
4294
4295 * Makefile.am: Remove useless multilib rules.
4296 * Makefile.in: Regenerate.
4297 * aclocal.m4: Regenerate with automake 1.8.5.
4298 * configure.ac: Remove useless multilib configury.
4299 * configure: Regenerate.
4300
43012004-06-15 Paolo Bonzini <bonzini@gnu.org>
4302
4303 * .cvsignore: New file.
4304
43052004-06-10 Jakub Jelinek <jakub@redhat.com>
4306
4307 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4308 fp_done.
4309 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4310 changed from 8.
4311
43122004-06-06 Sean McNeil <sean@mcneil.com>
4313
4314 * configure.ac: Add x86_64-*-freebsd* support.
4315 * configure: Regenerate.
4316
43172004-04-26 Joe Buck <jbuck@welsh-buck.org>
4318
4319 Bug 15093
4320 * configure.ac: Test for existence of mmap and sys/mman.h before
4321 checking blacklist. Fix suggested by Jim Wilson.
4322 * configure: Regenerate.
4323
43242004-04-26 Matt Austern <austern@apple.com>
4325
4326 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4327 FDE location.
4328 * src/powerpc/darwin_closure.S: Likewise.
4329
43302004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
4331
4332 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4333 error. Reported by Thomas Heller <theller@python.net>.
4334 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4335 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4336
43372004-03-20 Matthias Klose <doko@debian.org>
4338
4339 * src/pa/linux.S: Fix typo.
4340
43412004-03-19 Matthias Klose <doko@debian.org>
4342
4343 * Makefile.am: Update.
4344 * Makefile.in: Regenerate.
4345 * src/pa/ffi.h.in: Remove.
4346 * src/pa/ffitarget.h: New file.
4347
43482004-02-10 Randolph Chung <tausq@debian.org>
4349
4350 * Makefile.am: Add PA support.
4351 * Makefile.in: Regenerate.
4352 * include/Makefile.in: Regenerate.
4353 * configure.ac: Add PA target.
4354 * configure: Regenerate.
4355 * src/pa/ffi.c: New file.
4356 * src/pa/ffi.h.in: Add PA support.
4357 * src/pa/linux.S: New file.
4358 * prep_cif.c: Add PA support.
4359
43602004-03-16 Hosaka Yuji <hos@tamanegi.org>
4361
4362 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4363 double.
4364 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4365 with ecif->cif->flags.
4366 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4367 with cif->flags.
4368 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4369 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4370 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4371 sc_retstruct2b): Add for 1 or 2-bytes struct case.
4372
43732004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4374
4375 * configure.in: Rename file to ...
4376 * configure.ac: ... this.
4377 * fficonfig.h.in: Regenerate.
4378 * Makefile.in: Regenerate.
4379 * include/Makefile.in: Regenerate.
4380 * testsuite/Makefile.in: Regenerate.
4381
43822004-03-12 Matt Austern <austern@apple.com>
4383
4384 * src/powerpc/darwin.S: Fix EH information so it corresponds to
4385 changes in EH format resulting from addition of linkonce support.
4386 * src/powerpc/darwin_closure.S: Likewise.
4387
43882004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
4389 Paolo Bonzini <bonzini@gnu.org>
4390
4391 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4392 Remove VPATH. Remove rules for object files. Remove multilib support.
4393 (AM_CCASFLAGS): Add.
4394 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4395 (AC_PREREQ): Bump version to 2.59.
4396 (AC_INIT): Fill with version info and bug address.
4397 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4398 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4399 De-precious CC so that the right flags are passed down to multilibs.
4400 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4401 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4402 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4403 * configure: Rebuilt.
4404 * aclocal.m4: Likewise.
4405 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4406 * fficonfig.h.in: Likewise.
4407
44082004-03-11 Andreas Schwab <schwab@suse.de>
4409
4410 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4411 arguments from fp registers only for the first 8 parameter slots.
4412 Don't convert a float parameter when passed in memory.
4413
44142004-03-09 Hans-Peter Nilsson <hp@axis.com>
4415
4416 * configure: Regenerate for config/accross.m4 correction.
4417
44182004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
4419
4420 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4421 ecif->cif->bytes to bytes.
4422 (ffi_prep_cif_machdep): Add braces around nested if statement.
4423
44242004-02-09 Alan Modra <amodra@bigpond.net.au>
4425
4426 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4427
4428 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4429 (ffi_closure_helper_LINUX64): Fix typo.
4430 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4431 for powerpc64-*-*.
4432 * testsuite/libffi.call/float.c: Likewise.
4433 * testsuite/libffi.call/float2.c: Likewise.
4434
44352004-02-08 Alan Modra <amodra@bigpond.net.au>
4436
4437 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4438 long double function return and long double arg handling.
4439 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
4440 Use "end_pfr" instead of "nf". Correct long double handling.
4441 Localise "temp".
4442 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4443 return value.
4444 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4445 space for long double return value. Adjust stack frame and offsets.
4446 Load f2 long double return.
4447
44482004-02-07 Alan Modra <amodra@bigpond.net.au>
4449
4450 * src/types.c: Use 16 byte long double for POWERPC64.
4451
44522004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4453
4454 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4455 when the structure return address is passed in %o0.
4456 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4457 (ffi_v9_layout_struct): Align the field following a nested structure
4458 on a word boundary. Use memmove instead of memcpy.
4459 (ffi_call): Update call to ffi_V9_return_struct.
4460 (ffi_prep_closure): Define 'ctx' only for V8.
4461 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4462 and ffi_closure_sparc_inner_v9.
4463 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4464 Always skip the structure return address. For structures and long
4465 doubles, copy the argument directly.
4466 (ffi_closure_sparc_inner_v9): Skip the structure return address only
4467 if required. Shift the maximum floating-point slot accordingly. For
4468 big structures, copy the argument directly; otherwise, left-justify the
4469 argument and call ffi_v9_layout_struct to lay out the structure on
4470 the stack.
4471 * src/sparc/v8.S: Undef STACKFRAME before defining it.
4472 (ffi_closure_v8): Pass the structure return address. Update call to
4473 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
4474 Skip the 'unimp' insn when returning long doubles and structures.
4475 * src/sparc/v9.S: Undef STACKFRAME before defining it.
4476 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
4477 FFI_TYPE_INT handling. Load structures both in integers and
4478 floating-point registers on return.
4479 * README: Update status of the SPARC port.
4480
44812004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
4482
4483 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4484 as of type ffi_arg.
4485 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4486
44872004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
4488
4489 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4490 value as of type ffi_arg, not unsigned int.
4491
44922004-01-21 Michael Ritzert <ritzert@t-online.de>
4493
4494 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4495 of the LHS.
4496
44972004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4498
4499 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4500 Solaris.
4501
45022004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4503
4504 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4505 to void *.
4506
45072003-12-10 Richard Henderson <rth@redhat.com>
4508
4509 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4510 size_t instead of int.
4511
45122003-12-04 Hosaka Yuji <hos@tamanegi.org>
4513
4514 * testsuite/libffi.call/many_win32.c: Include <float.h>.
4515 * testsuite/libffi.call/many_win32.c (main): Replace variable
4516 int i with unsigned long ul.
4517
4518 * testsuite/libffi.call/cls_align_uint64.c: New test case.
4519 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4520 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4521 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4522 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4523 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4524 * testsuite/libffi.call/cls_align_float.c: Likewise.
4525 * testsuite/libffi.call/cls_align_double.c: Likewise.
4526 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4527 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4528
45292003-12-02 Hosaka Yuji <hos@tamanegi.org>
4530
4531 PR other/13221
4532 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4533 Align arguments to 32 bits.
4534
45352003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
4536
4537 PR other/13221
4538 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4539 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4540 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4541 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4542 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4543 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4544
4545 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4546
45472003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4548
4549 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4550 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4551
45522003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
4553
4554 * Makefile.in: Rebuilt.
4555 * configure: Likewise.
4556 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4557 the right type.
4558
45592003-11-21 Andreas Jaeger <aj@suse.de>
4560 Andreas Tobler <a.tobler@schweiz.ch>
4561
4562 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4563 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4564 * Makefile.in: Rebuilt.
4565 * aclocal.m4: Likewise.
4566 * configure: Likewise.
4567 * fficonfig.h.in: Likewise.
4568 * testsuite/lib/libffi-dg.exp: Add include dir.
4569 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4570 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4571 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4572 for ffi_closure if available.
4573 * testsuite/libffi.call/closure_fn1.c: Likewise.
4574 * testsuite/libffi.call/closure_fn2.c: Likewise.
4575 * testsuite/libffi.call/closure_fn3.c: Likewise.
4576 * testsuite/libffi.call/closure_fn4.c: Likewise.
4577 * testsuite/libffi.call/closure_fn5.c: Likewise.
4578 * testsuite/libffi.call/cls_12byte.c: Likewise.
4579 * testsuite/libffi.call/cls_16byte.c: Likewise.
4580 * testsuite/libffi.call/cls_18byte.c: Likewise.
4581 * testsuite/libffi.call/cls_19byte.c: Likewise.
4582 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4583 * testsuite/libffi.call/cls_20byte.c: Likewise.
4584 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4585 * testsuite/libffi.call/cls_24byte.c: Likewise.
4586 * testsuite/libffi.call/cls_2byte.c: Likewise.
4587 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4588 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4589 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4590 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4591 * testsuite/libffi.call/cls_4byte.c: Likewise.
4592 * testsuite/libffi.call/cls_5byte.c: Likewise.
4593 * testsuite/libffi.call/cls_64byte.c: Likewise.
4594 * testsuite/libffi.call/cls_6byte.c: Likewise.
4595 * testsuite/libffi.call/cls_7byte.c: Likewise.
4596 * testsuite/libffi.call/cls_8byte.c: Likewise.
4597 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4598 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4599 * testsuite/libffi.call/cls_double.c: Likewise.
4600 * testsuite/libffi.call/cls_float.c: Likewise.
4601 * testsuite/libffi.call/cls_schar.c: Likewise.
4602 * testsuite/libffi.call/cls_sint.c: Likewise.
4603 * testsuite/libffi.call/cls_sshort.c: Likewise.
4604 * testsuite/libffi.call/cls_uchar.c: Likewise.
4605 * testsuite/libffi.call/cls_uint.c: Likewise.
4606 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4607 * testsuite/libffi.call/cls_ushort.c: Likewise.
4608 * testsuite/libffi.call/nested_struct.c: Likewise.
4609 * testsuite/libffi.call/nested_struct1.c: Likewise.
4610 * testsuite/libffi.call/nested_struct2.c: Likewise.
4611 * testsuite/libffi.call/nested_struct3.c: Likewise.
4612 * testsuite/libffi.call/problem1.c: Likewise.
4613 * testsuite/libffi.special/unwindtest.cc: Likewise.
4614
46152003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
4616
4617 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4618
46192003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
4620
4621 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4622 Add -lgcc_s to additional flags.
4623
46242003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
4625
4626 * configure.in, include/Makefile.am: PR libgcj/11147, install
4627 the ffitarget.h header file in a gcc versioned and target
4628 dependent place.
4629 * configure: Regenerated.
4630 * Makefile.in, include/Makefile.in: Likewise.
4631 * testsuite/Makefile.in: Likewise.
4632
46332003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
4634
4635 * testsuite/libffi.call/closure_fn0.c: Print result and check
4636 with dg-output to make debugging easier.
4637 * testsuite/libffi.call/closure_fn1.c: Likewise.
4638 * testsuite/libffi.call/closure_fn2.c: Likewise.
4639 * testsuite/libffi.call/closure_fn3.c: Likewise.
4640 * testsuite/libffi.call/closure_fn4.c: Likewise.
4641 * testsuite/libffi.call/closure_fn5.c: Likewise.
4642 * testsuite/libffi.call/cls_12byte.c: Likewise.
4643 * testsuite/libffi.call/cls_16byte.c: Likewise.
4644 * testsuite/libffi.call/cls_18byte.c: Likewise.
4645 * testsuite/libffi.call/cls_19byte.c: Likewise.
4646 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4647 * testsuite/libffi.call/cls_20byte.c: Likewise.
4648 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4649 * testsuite/libffi.call/cls_24byte.c: Likewise.
4650 * testsuite/libffi.call/cls_2byte.c: Likewise.
4651 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4652 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4653 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4654 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4655 * testsuite/libffi.call/cls_4byte.c: Likewise.
4656 * testsuite/libffi.call/cls_5byte.c: Likewise.
4657 * testsuite/libffi.call/cls_64byte.c: Likewise.
4658 * testsuite/libffi.call/cls_6byte.c: Likewise.
4659 * testsuite/libffi.call/cls_7byte.c: Likewise.
4660 * testsuite/libffi.call/cls_8byte.c: Likewise.
4661 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4662 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4663 * testsuite/libffi.call/cls_double.c: Likewise.
4664 * testsuite/libffi.call/cls_float.c: Likewise.
4665 * testsuite/libffi.call/cls_schar.c: Likewise.
4666 * testsuite/libffi.call/cls_sint.c: Likewise.
4667 * testsuite/libffi.call/cls_sshort.c: Likewise.
4668 * testsuite/libffi.call/cls_uchar.c: Likewise.
4669 * testsuite/libffi.call/cls_uint.c: Likewise.
4670 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4671 * testsuite/libffi.call/cls_ushort.c: Likewise.
4672 * testsuite/libffi.call/problem1.c: Likewise.
4673
4674 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4675 static.
4676
46772003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4678
4679 * testsuite/libffi.call/cls_9byte2.c: New test case.
4680 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4681 * testsuite/libffi.call/cls_64byte.c: Likewise.
4682 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4683 * testsuite/libffi.call/cls_19byte.c: Likewise.
4684 * testsuite/libffi.call/cls_18byte.c: Likewise.
4685 * testsuite/libffi.call/closure_fn4.c: Likewise.
4686 * testsuite/libffi.call/closure_fn5.c: Likewise.
4687 * testsuite/libffi.call/cls_schar.c: Likewise.
4688 * testsuite/libffi.call/cls_sint.c: Likewise.
4689 * testsuite/libffi.call/cls_sshort.c: Likewise.
4690 * testsuite/libffi.call/nested_struct2.c: Likewise.
4691 * testsuite/libffi.call/nested_struct3.c: Likewise.
4692
46932003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4694
4695 * testsuite/libffi.call/cls_double.c: Do a check on the result.
4696 * testsuite/libffi.call/cls_uchar.c: Likewise.
4697 * testsuite/libffi.call/cls_uint.c: Likewise.
4698 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4699 * testsuite/libffi.call/cls_ushort.c: Likewise.
4700 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4701
47022003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
4703
4704 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4705 the initialization.
4706
47072003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
4708
4709 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
4710 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4711
47122003-10-22 David Daney <ddaney@avtrex.com>
4713
4714 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4715 __attribute__((__mode__(__SI__))) and friends.
4716
47172003-10-22 Andreas Schwab <schwab@suse.de>
4718
4719 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4720
47212003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
4722
4723 * configure.in: AC_LINK_FILES(ffitarget.h).
4724 * configure: Regenerate.
4725 * Makefile.in: Likewise.
4726 * include/Makefile.in: Likewise.
4727 * testsuite/Makefile.in: Likewise.
4728 * fficonfig.h.in: Likewise.
4729
47302003-10-21 Paolo Bonzini <bonzini@gnu.org>
4731 Richard Henderson <rth@redhat.com>
4732
4733 Avoid that ffi.h includes fficonfig.h.
4734
4735 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4736 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4737 (TARGET_SRC_MIPS_SGI): Removed.
4738 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4739 (MIPS_SGI): Removed.
4740 (CLEANFILES): Removed.
4741 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4742 targets.
4743 * acconfig.h: Removed.
4744 * configure.in: Compute sizeofs only for double and long double.
4745 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
4746 into AC_DEFINE instead of using acconfig.h. Create
4747 include/ffitarget.h instead of include/fficonfig.h. Rename
4748 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4749 AC_DEFINE EH_FRAME_FLAGS.
4750 * include/Makefile.am (DISTCLEANFILES): New automake macro.
4751 (hack_DATA): Add ffitarget.h.
4752 * include/ffi.h.in: Remove all system specific definitions.
4753 Declare raw API even if it is not installed, why bother?
4754 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
4755 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
4756 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
4757 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4758 * include/ffi_common.h (bool): Do not define.
4759 (ffi_assert): Accept failed assertion.
4760 (ffi_type_test): Return void and accept file/line.
4761 (FFI_ASSERT): Pass stringized failed assertion.
4762 (FFI_ASSERT_AT): New macro.
4763 (FFI_ASSERT_VALID_TYPE): New macro.
4764 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4765 UINT64, SINT64): Define here with gcc's __attribute__ macro
4766 instead of in ffi.h
4767 (FLOAT32, ALIGN): Define here instead of in ffi.h
4768 * include/ffi-mips.h: Removed. Its content moved to
4769 src/mips/ffitarget.h after separating assembly and C sections.
4770 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4771 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4772 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4773 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4774 SIZEOF_ARG -> FFI_SIZEOF_ARG.
4775 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4776 * src/debug.c (ffi_assert): Accept stringized failed assertion.
4777 (ffi_type_test): Rewritten.
4778 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4779 FFI_ASSERT_VALID_TYPE.
4780 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4781 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4782 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4783 src/s390/ffitarget.h, src/sh/ffitarget.h,
4784 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4785 src/x86/ffitarget.h: New files.
4786 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4787 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4788 src/powerpc/aix.S, src/powerpc/darwin.S,
4789 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4790 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4791 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4792 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4793 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4794 include fficonfig.h
4795
47962003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4797
4798 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4799 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4800
48012003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
4802
4803 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4804 Used when FFI_DEBUG = 1.
4805
48062003-10-14 Alan Modra <amodra@bigpond.net.au>
4807
4808 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4809 and align.
4810
48112003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4812
4813 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4814 FFI_MIPS_O32 for O32 ABI.
4815
48162003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
4817
4818 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4819 SPARC64. Cleanup whitespaces.
4820
48212003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
4822
4823 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4824 strongarm, xscale. Cleanup whitespaces.
4825 * testsuite/libffi.call/closure_fn1.c: Likewise.
4826 * testsuite/libffi.call/closure_fn2.c: Likewise.
4827 * testsuite/libffi.call/closure_fn3.c: Likewise.
4828 * testsuite/libffi.call/cls_12byte.c: Likewise.
4829 * testsuite/libffi.call/cls_16byte.c: Likewise.
4830 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4831 * testsuite/libffi.call/cls_20byte.c: Likewise.
4832 * testsuite/libffi.call/cls_24byte.c: Likewise.
4833 * testsuite/libffi.call/cls_2byte.c: Likewise.
4834 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4835 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4836 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4837 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4838 * testsuite/libffi.call/cls_4byte.c: Likewise.
4839 * testsuite/libffi.call/cls_5byte.c: Likewise.
4840 * testsuite/libffi.call/cls_6byte.c: Likewise.
4841 * testsuite/libffi.call/cls_7byte.c: Likewise.
4842 * testsuite/libffi.call/cls_8byte.c: Likewise.
4843 * testsuite/libffi.call/cls_double.c: Likewise.
4844 * testsuite/libffi.call/cls_float.c: Likewise.
4845 * testsuite/libffi.call/cls_uchar.c: Likewise.
4846 * testsuite/libffi.call/cls_uint.c: Likewise.
4847 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4848 * testsuite/libffi.call/cls_ushort.c: Likewise.
4849 * testsuite/libffi.call/nested_struct.c: Likewise.
4850 * testsuite/libffi.call/nested_struct1.c: Likewise.
4851 * testsuite/libffi.call/problem1.c: Likewise.
4852 * testsuite/libffi.special/unwindtest.cc: Likewise.
4853 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4854
48552003-09-18 David Edelsohn <edelsohn@gnu.org>
4856
4857 * src/powerpc/aix.S: Cleanup whitespaces.
4858 * src/powerpc/aix_closure.S: Likewise.
4859
48602003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4861
4862 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4863 * src/powerpc/darwin_closure.S: Likewise.
4864 * src/powerpc/ffi_darwin.c: Likewise.
4865
48662003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4867 David Edelsohn <edelsohn@gnu.org>
4868
4869 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4870 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4871 parameter stack.
4872 * src/powerpc/darwin_closure.S: Likewise.
4873 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4874 according to the Darwin/AIX ABI.
4875 (ffi_prep_cif_machdep): Likewise.
4876 (ffi_closure_helper_DARWIN): Likewise.
4877 Remove the outgoing parameter stack logic. Simplify the evaluation
4878 of the different CASE types.
4879 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4880 statement in the trampoline code.
4881
48822003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
4883
4884 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4885 for the register size.
4886 (ffi_closure_helper_SYSV): Handle the structure return value
4887 address correctly.
4888 (ffi_closure_helper_SYSV): Return the appropriate type when
4889 the registers are used for the structure return value.
4890 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4891 the 64-bit return value. Update copyright years.
4892
48932003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4894
4895 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4896 srcdir for ffi_mips.h.
4897
48982003-09-12 Alan Modra <amodra@bigpond.net.au>
4899
4900 * src/prep_cif.c (initialize_aggregate): Include tail padding in
4901 structure size.
4902 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4903 placement of float result.
4904 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4905 cast of "resp" for big-endian 64 bit machines.
4906
49072003-09-11 Alan Modra <amodra@bigpond.net.au>
4908
4909 * src/types.c (double, longdouble): Merge identical SH and ARM
4910 typedefs, and add POWERPC64.
4911 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4912 struct split over gpr and rest.
4913 (ffi_prep_cif_machdep): Correct intarg_count for structures.
4914 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4915
49162003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
4917
4918 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4919 passing correctly.
4920
49212003-09-09 Alan Modra <amodra@bigpond.net.au>
4922
4923 * configure: Regenerate.
4924
49252003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4926
4927 * Makefile.am: Remove build rules for ffitest.
4928 * Makefile.in: Rebuilt.
4929
49302003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4931
4932 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4933 about implicit declaration of abort().
4934
49352003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4936
4937 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
4938 * Makefile.in: Rebuilt.
4939 * configure.in: Add dejagnu test framework.
4940 * configure: Rebuilt.
4941
4942 * testsuite/Makefile.am: New file.
4943 * testsuite/Makefile.in: Built
4944 * testsuite/lib/libffi-dg.exp: New file.
4945 * testsuite/config/default.exp: Likewise.
4946 * testsuite/libffi.call/call.exp: Likewise.
4947 * testsuite/libffi.call/ffitest.h: Likewise.
4948 * testsuite/libffi.call/closure_fn0.c: Likewise.
4949 * testsuite/libffi.call/closure_fn1.c: Likewise.
4950 * testsuite/libffi.call/closure_fn2.c: Likewise.
4951 * testsuite/libffi.call/closure_fn3.c: Likewise.
4952 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4953 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4954 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4955 * testsuite/libffi.call/cls_2byte.c: Likewise.
4956 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4957 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4958 * testsuite/libffi.call/cls_4byte.c: Likewise.
4959 * testsuite/libffi.call/cls_5byte.c: Likewise.
4960 * testsuite/libffi.call/cls_6byte.c: Likewise.
4961 * testsuite/libffi.call/cls_7byte.c: Likewise.
4962 * testsuite/libffi.call/cls_8byte.c: Likewise.
4963 * testsuite/libffi.call/cls_12byte.c: Likewise.
4964 * testsuite/libffi.call/cls_16byte.c: Likewise.
4965 * testsuite/libffi.call/cls_20byte.c: Likewise.
4966 * testsuite/libffi.call/cls_24byte.c: Likewise.
4967 * testsuite/libffi.call/cls_double.c: Likewise.
4968 * testsuite/libffi.call/cls_float.c: Likewise.
4969 * testsuite/libffi.call/cls_uchar.c: Likewise.
4970 * testsuite/libffi.call/cls_uint.c: Likewise.
4971 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4972 * testsuite/libffi.call/cls_ushort.c: Likewise.
4973 * testsuite/libffi.call/float.c: Likewise.
4974 * testsuite/libffi.call/float1.c: Likewise.
4975 * testsuite/libffi.call/float2.c: Likewise.
4976 * testsuite/libffi.call/many.c: Likewise.
4977 * testsuite/libffi.call/many_win32.c: Likewise.
4978 * testsuite/libffi.call/nested_struct.c: Likewise.
4979 * testsuite/libffi.call/nested_struct1.c: Likewise.
4980 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
4981 * testsuite/libffi.call/problem1.c: Likewise.
4982 * testsuite/libffi.call/promotion.c: Likewise.
4983 * testsuite/libffi.call/return_ll.c: Likewise.
4984 * testsuite/libffi.call/return_sc.c: Likewise.
4985 * testsuite/libffi.call/return_uc.c: Likewise.
4986 * testsuite/libffi.call/strlen.c: Likewise.
4987 * testsuite/libffi.call/strlen_win32.c: Likewise.
4988 * testsuite/libffi.call/struct1.c: Likewise.
4989 * testsuite/libffi.call/struct2.c: Likewise.
4990 * testsuite/libffi.call/struct3.c: Likewise.
4991 * testsuite/libffi.call/struct4.c: Likewise.
4992 * testsuite/libffi.call/struct5.c: Likewise.
4993 * testsuite/libffi.call/struct6.c: Likewise.
4994 * testsuite/libffi.call/struct7.c: Likewise.
4995 * testsuite/libffi.call/struct8.c: Likewise.
4996 * testsuite/libffi.call/struct9.c: Likewise.
4997 * testsuite/libffi.special/special.exp: New file.
4998 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4999 * testsuite/libffi.special/unwindtest.cc: Likewise.
5000
5001
50022003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
5003
5004 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
5005 copyright years.
5006
50072003-08-02 Alan Modra <amodra@bigpond.net.au>
5008
5009 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
5010 structure passing.
5011 (ffi_closure_helper_LINUX64): Likewise.
5012 * src/powerpc/linux64.S: Remove code writing to parm save area.
5013 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
5014 address in lr from ffi_closure_helper_LINUX64 call to calculate
5015 table address. Optimize function tail.
5016
50172003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
5018
5019 * src/sparc/ffi.c: Handle all floating point registers.
5020 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
5021
50222003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5023
5024 * README: Note that libffi is not part of GCC. Update the project
5025 URL and status.
5026
50272003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5028
5029 * src/powerpc/ppc_closure.S: Include ffi.h.
5030
50312003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5032
5033 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
5034 Use C style comments.
5035
50362003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5037
5038 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
5039 * Makefile.in: Regenerate.
5040 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
5041 * configure: Regenerate.
5042 * include/ffi.h.in: Add SHmedia support.
5043 * src/sh64/ffi.c: New file.
5044 * src/sh64/sysv.S: New file.
5045
50462003-05-16 Jakub Jelinek <jakub@redhat.com>
5047
5048 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
5049 should be read-only.
5050 * configure: Rebuilt.
5051 * fficonfig.h.in: Rebuilt.
5052 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
5053 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
5054 * src/powerpc/linux64.S: Likewise.
5055 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
5056 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
5057 if -fpic/-fPIC/-mrelocatable.
5058 * src/powerpc/powerpc_closure.S: Likewise.
5059 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
5060 #write in .eh_frame flags.
5061 * src/sparc/v9.S: Likewise.
5062 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
5063 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
5064 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
5065
50662003-05-07 Jeff Sturm <jsturm@one-point.com>
5067
5068 Fixes PR bootstrap/10656
5069 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
5070 support for .register pseudo-op.
5071 * src/sparc/v8.S: Use it.
5072 * fficonfig.h.in: Rebuilt.
5073 * configure: Rebuilt.
5074
50752003-04-18 Jakub Jelinek <jakub@redhat.com>
5076
5077 * include/ffi.h.in (POWERPC64): Define if 64-bit.
5078 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
5079 Make it the default on POWERPC64.
5080 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
5081 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
5082 * configure: Rebuilt.
5083 * src/powerpc/ffi.c (hidden): Define.
5084 (ffi_prep_args_SYSV): Renamed from
5085 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
5086 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
5087 ASM_NEEDS_REGISTERS64): New.
5088 (ffi_prep_args64): New function.
5089 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
5090 (ffi_call): Likewise.
5091 (ffi_prep_closure): Likewise.
5092 (flush_icache): Surround by #ifndef POWERPC64.
5093 (ffi_dblfl): New union type.
5094 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
5095 (ffi_closure_helper_LINUX64): New function.
5096 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
5097 __powerpc64__.
5098 * src/powerpc/sysv.S: Likewise.
5099 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
5100 * src/powerpc/linux64.S: New file.
5101 * src/powerpc/linux64_closure.S: New file.
5102 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
5103 src/powerpc/linux64_closure.S.
5104 (TARGET_SRC_POWERPC): Likewise.
5105
5106 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
5107 closure_test_fn3): Fix result printing on big-endian 64-bit
5108 machines.
5109 (main): Print tst2_arg instead of uninitialized tst2_result.
5110
5111 * src/ffitest.c (main): Hide what closure pointer really points to
5112 from the compiler.
5113
51142003-04-16 Richard Earnshaw <rearnsha@arm.com>
5115
5116 * configure.in (arm-*-netbsdelf*): Add configuration.
5117 (configure): Regenerated.
5118
51192003-04-04 Loren J. Rittle <ljrittle@acm.org>
5120
5121 * include/Makefile.in: Regenerate.
5122
51232003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5124
5125 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5126 bit mode.
5127 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5128 Receive closure pointer through parameter, read args using
5129 __builtin_dwarf_cfa.
5130 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5131
51322003-03-12 Andreas Schwab <schwab@suse.de>
5133
5134 * configure.in: Avoid trailing /. in toolexeclibdir.
5135 * configure: Rebuilt.
5136
51372003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
5138
5139 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
5140
51412003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
5142
5143 * libffi/src/powerpc/darwin_closure.S:
5144 Fix alignement bug, allocate 8 bytes for the result.
5145 * libffi/src/powerpc/aix_closure.S:
5146 Likewise.
5147 * libffi/src/powerpc/ffi_darwin.c:
5148 Update stackframe description for aix/darwin_closure.S.
5149
51502003-02-06 Jakub Jelinek <jakub@redhat.com>
5151
5152 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5153 attribute.
5154
51552003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
5156 Andreas Schwab <schwab@suse.de>
5157
5158 * configure.in: Adjust command to source config-ml.in to account
5159 for changes to the libffi_basedir definition.
5160 (libffi_basedir): Remove ${srcdir} from value and include trailing
5161 slash if nonempty.
5162
5163 * configure: Regenerate.
5164
51652003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5166
5167 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5168
51692003-01-28 Andrew Haley <aph@redhat.com>
5170
5171 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5172 * src/x86/ffi64.c (ffi_prep_closure): New.
5173 (ffi_closure_UNIX64_inner): New.
5174 * src/x86/unix64.S (ffi_closure_UNIX64): New.
5175
51762003-01-27 Alexandre Oliva <aoliva@redhat.com>
5177
5178 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5179 Remove USE_LIBDIR conditional.
5180 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5181 * Makefile.in, configure: Rebuilt.
5182
51832003-01027 David Edelsohn <edelsohn@gnu.org>
5184
5185 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5186 * Makefile.in: Regenerate.
5187
51882003-01-22 Andrew Haley <aph@redhat.com>
5189
5190 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5191 unwind info.
5192
51932003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
5194
5195 * src/powerpc/darwin.S: Add unwind info.
5196 * src/powerpc/darwin_closure.S: Likewise.
5197
51982003-01-14 Andrew Haley <aph@redhat.com>
5199
5200 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5201 (ffi_prep_cif_machdep): Likewise.
5202 * src/x86/unix64.S: Add unwind info.
5203
52042003-01-14 Andreas Jaeger <aj@suse.de>
5205
5206 * src/ffitest.c (main): Only use ffi_closures if those are
5207 supported.
5208
52092003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
5210
5211 * libffi/src/ffitest.c
5212 add closure testcases
5213
52142003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
5215
5216 * libffi/src/powerpc/ffi.c
5217 fix alignment bug for float (4 byte aligned iso 8 byte)
5218
52192003-01-09 Geoffrey Keating <geoffk@apple.com>
5220
5221 * src/powerpc/ffi_darwin.c: Remove RCS version string.
5222 * src/powerpc/darwin.S: Remove RCS version string.
5223
52242003-01-03 Jeff Sturm <jsturm@one-point.com>
5225
5226 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5227 * src/ffitest.c (main): Use static storage for closure.
5228 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5229 * src/sparc/v8.S (ffi_closure_v8): New.
5230 * src/sparc/v9.S (ffi_closure_v9): New.
5231
52322002-11-10 Ranjit Mathew <rmathew@hotmail.com>
5233
5234 * include/ffi.h.in: Added FFI_STDCALL ffi_type
5235 enumeration for X86_WIN32.
5236 * src/x86/win32.S: Added ffi_call_STDCALL function
5237 definition.
5238 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
5239 switch cases for recognising FFI_STDCALL and
5240 calling ffi_call_STDCALL if target is X86_WIN32.
5241 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
5242 stdcall versions of the "my_strlen" and "many"
5243 test functions (for X86_WIN32).
5244 Added test cases to test stdcall invocation using
5245 these functions.
5246
52472002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
5248
5249 * src/sh/sysv.S: Add DWARF2 unwind info.
5250
52512002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
5252
5253 * src/s390/sysv.S (.eh_frame section): Make section read-only.
5254
52552002-11-26 Jim Wilson <wilson@redhat.com>
5256
5257 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5258
52592002-11-23 H.J. Lu <hjl@gnu.org>
5260
5261 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5262 Include ../config/accross.m4.
5263 * aclocal.m4; Rebuild.
5264 * configure: Likewise.
5265
52662002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
5267
5268 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5269
52702002-11-11 DJ Delorie <dj@redhat.com>
5271
5272 * configure.in: Look for common files in the right place.
5273
52742002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5275
5276 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5277 raw data as _Jv_word values, not ffi_raw.
5278 (ffi_java_ptrarray_to_raw): Likewise.
5279 (ffi_java_rvalue_to_raw): New function.
5280 (ffi_java_raw_call): Call it.
5281 (ffi_java_raw_to_rvalue): New function.
5282 (ffi_java_translate_args): Call it.
5283 * src/ffitest.c (closure_test_fn): Interpret return value
5284 as ffi_arg, not int.
5285 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5286 FFI_TYPE_POINTER case.
5287 (ffi_closure_helper_SYSV): Likewise. Also, assume return
5288 values extended to word size.
5289
52902002-10-02 Andreas Jaeger <aj@suse.de>
5291
5292 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5293
52942002-10-01 Bo Thorsen <bo@smetana.suse.de>
5295
5296 * include/ffi.h.in: Fix i386 win32 compilation.
5297
52982002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5299
5300 * configure.in: Add s390x-*-linux-* target.
5301 * configure: Regenerate.
5302 * include/ffi.h.in: Define S390X for s390x targets.
5303 (FFI_CLOSURES): Define for s390/s390x.
5304 (FFI_TRAMPOLINE_SIZE): Likewise.
5305 (FFI_NATIVE_RAW_API): Likewise.
5306 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5307 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
5308 * src/s390/ffi.c: Major rework of existing code. Add support for
5309 s390x targets. Add closure support.
5310 * src/s390/sysv.S: Likewise.
5311
53122002-09-29 Richard Earnshaw <rearnsha@arm.com>
5313
5314 * src/arm/sysv.S: Fix typo.
5315
53162002-09-28 Richard Earnshaw <rearnsha@arm.com>
5317
5318 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5319 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5320 (ffi_call_SYSV): Handle soft-float.
5321
53222002-09-27 Bo Thorsen <bo@suse.de>
5323
5324 * include/ffi.h.in: Fix multilib x86-64 support.
5325
53262002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5327
5328 * Makefile.am (all-multi): Fix multilib parallel build.
5329
53302002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
5331
5332 * configure.in (sh[34]*-*-linux*): Add brackets.
5333 * configure: Regenerate.
5334
53352002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
5336
5337 * Makefile.am: Add SH support.
5338 * Makefile.in: Regenerate.
5339 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5340 * configure: Regenerate.
5341 * include/ffi.h.in: Add SH support.
5342 * src/sh/ffi.c: New file.
5343 * src/sh/sysv.S: New file.
5344 * src/types.c: Add SH support.
5345
53462002-07-16 Bo Thorsen <bo@suse.de>
5347
5348 * src/x86/ffi64.c: New file that adds x86-64 support.
5349 * src/x86/unix64.S: New file that handles argument setup for
5350 x86-64.
5351 * src/x86/sysv.S: Don't use this on x86-64.
5352 * src/x86/ffi.c: Don't use this on x86-64.
5353 Remove unused vars.
5354 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5355 for x86-64.
5356 * src/ffitest.c (struct6): New test that tests a special case in
5357 the x86-64 ABI.
5358 (struct7): Likewise.
5359 (struct8): Likewise.
5360 (struct9): Likewise.
5361 (closure_test_fn): Silence warning about this when it's not used.
5362 (main): Add the new tests.
5363 (main): Fix a couple of wrong casts and silence some compiler warnings.
5364 * include/ffi.h.in: Add x86-64 ABI definition.
5365 * fficonfig.h.in: Regenerate.
5366 * Makefile.am: Add x86-64 support.
5367 * configure.in: Likewise.
5368 * Makefile.in: Regenerate.
5369 * configure: Likewise.
5370
53712002-06-24 Bo Thorsen <bo@suse.de>
5372
5373 * src/types.c: Merge settings for similar architectures.
5374 Add x86-64 sizes and alignments.
5375
53762002-06-23 Bo Thorsen <bo@suse.de>
5377
5378 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5379 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5380 * src/mips/ffi.c (ffi_prep_args): Likewise.
5381 * src/m68k/ffi.c (ffi_prep_args): Likewise.
5382
53832002-07-18 H.J. Lu (hjl@gnu.org)
5384
5385 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5386 (libffi_la_SOURCES): Support MIPS_LINUX.
5387 (libffi_convenience_la_SOURCES): Likewise.
5388 * Makefile.in: Regenerated.
5389
5390 * configure.in (mips64*-*): Skip.
5391 (mips*-*-linux*): New.
5392 * configure: Regenerated.
5393
5394 * src/mips/ffi.c: Include <sgidefs.h>.
5395
53962002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5397
5398 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
5399
54002002-05-27 Roger Sayle <roger@eyesopen.com>
5401
5402 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5403
54042002-05-27 Bo Thorsen <bo@suse.de>
5405
5406 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5407 fix formatting.
5408
54092002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
5410
5411 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5412 beginning of function (for older apple cc).
5413
54142002-05-08 Alexandre Oliva <aoliva@redhat.com>
5415
5416 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5417 script entry, and set LD to it when configuring multilibs.
5418 * configure: Rebuilt.
5419
54202002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5421
5422 * configure.in (sparc64-*-netbsd*): Add target.
5423 (sparc-*-netbsdelf*): Likewise.
5424 * configure: Regenerate.
5425
54262002-04-28 David S. Miller <davem@redhat.com>
5427
5428 * configure.in, configure: Fix SPARC test in previous change.
5429
54302002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
5431
5432 * Makefile.am: Add Linux for S/390 support.
5433 * Makefile.in: Regenerate.
5434 * configure.in: Add Linux for S/390 support.
5435 * configure: Regenerate.
5436 * include/ffi.h.in: Add Linux for S/390 support.
5437 * src/s390/ffi.c: New file from libffi CVS tree.
5438 * src/s390/sysv.S: New file from libffi CVS tree.
5439
54402002-04-28 Jakub Jelinek <jakub@redhat.com>
5441
5442 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5443 %r_disp32().
5444 * src/sparc/v8.S: Use it.
5445 * src/sparc/v9.S: Likewise.
5446 * fficonfig.h.in: Rebuilt.
5447 * configure: Rebuilt.
5448
54492002-04-08 Hans Boehm <Hans_Boehm@hp.com>
5450
5451 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5452 correctly.
5453 * src/ia64/unix.S: Add unwind information. Fix comments.
5454 Save sp in a way that's compatible with unwind info.
5455 (ffi_call_unix): Correctly restore sp in all cases.
5456 * src/ia64/ffi.c: Add, fix comments.
5457
54582002-04-08 Jakub Jelinek <jakub@redhat.com>
5459
5460 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5461
54622002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5463
5464 * configure.in (alpha*-*-netbsd*): Add target.
5465 * configure: Regenerate.
5466
54672002-04-04 Jeff Sturm <jsturm@one-point.com>
5468
5469 * src/sparc/v8.S: Add unwind info.
5470 * src/sparc/v9.S: Likewise.
5471
54722002-03-30 Krister Walfridsson <cato@df.lth.se>
5473
5474 * configure.in: Enable i*86-*-netbsdelf*.
5475 * configure: Rebuilt.
5476
54772002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
5478
5479 PR other/2620
5480 * src/mips/n32.s: Delete
5481 * src/mips/o32.s: Delete
5482
54832002-03-21 Loren J. Rittle <ljrittle@acm.org>
5484
5485 * configure.in: Enable alpha*-*-freebsd*.
5486 * configure: Rebuilt.
5487
54882002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5489
5490 * Makefile.am: libfficonvenience -> libffi_convenience.
5491 * Makefile.in: Rebuilt.
5492
5493 * Makefile.am: Define ffitest_OBJECTS.
5494 * Makefile.in: Rebuilt.
5495
54962002-03-07 Andreas Tobler <toa@pop.agri.ch>
5497 David Edelsohn <edelsohn@gnu.org>
5498
5499 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5500 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5501 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5502 * Makefile.in: Regenerate.
5503 * include/ffi.h.in: Add AIX and Darwin closure definitions.
5504 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5505 (flush_icache, flush_range): New functions.
5506 (ffi_closure_helper_DARWIN): New function.
5507 * src/powerpc/aix_closure.S: New file.
5508 * src/powerpc/darwin_closure.S: New file.
5509
55102002-02-24 Jeff Sturm <jsturm@one-point.com>
5511
5512 * include/ffi.h.in: Add typedef for ffi_arg.
5513 * src/ffitest.c (main): Declare rint with ffi_arg.
5514
55152002-02-21 Andreas Tobler <toa@pop.agri.ch>
5516
5517 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5518 number of GPRs for floating-point arguments.
5519
55202002-01-31 Anthony Green <green@redhat.com>
5521
5522 * configure: Rebuilt.
5523 * configure.in: Replace CHECK_SIZEOF and endian tests with
5524 cross-compiler friendly macros.
5525 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5526 macros.
5527
55282002-01-18 David Edelsohn <edelsohn@gnu.org>
5529
5530 * src/powerpc/darwin.S (_ffi_call_AIX): New.
5531 * src/powerpc/aix.S (ffi_call_DARWIN): New.
5532
55332002-01-17 David Edelsohn <edelsohn@gnu.org>
5534
5535 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5536 (TARGET_SRC_POWERPC_AIX): New.
5537 (POWERPC_AIX): New stanza.
5538 * Makefile.in: Regenerate.
5539 * configure.in: Add AIX case.
5540 * configure: Regenerate.
5541 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5542 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5543 size. Fix "long double" support.
5544 (ffi_call): Add FFI_AIX case.
5545 * src/powerpc/aix.S: New.
5546
55472001-10-09 John Hornkvist <john@toastedmarshmallow.com>
5548
5549 Implement Darwin PowerPC ABI.
5550 * configure.in: Handle powerpc-*-darwin*.
5551 * Makefile.am: Set source files for POWERPC_DARWIN.
5552 * configure: Rebuilt.
5553 * Makefile.in: Rebuilt.
5554 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5555 POWERPC_DARWIN.
5556 * src/powerpc/darwin.S: New file.
5557 * src/powerpc/ffi_darwin.c: New file.
5558
55592001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5560
5561 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5562
55632001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5564
5565 * src/x86/sysv.S: Avoid gas-only .balign directive.
5566 Use C style comments.
5567
55682001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5569
5570 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5571 Fixes PR bootstrap/3563.
5572
55732001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5574
5575 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5576
55772001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5578
5579 * configure.in: Recognize sparc*-sun-* host.
5580 * configure: Regenerate.
5581
55822001-06-06 Andrew Haley <aph@redhat.com>
5583
5584 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
5585
55862001-06-03 Andrew Haley <aph@redhat.com>
5587
5588 * src/alpha/osf.S: Add unwind info.
5589 * src/powerpc/sysv.S: Add unwind info.
5590 * src/powerpc/ppc_closure.S: Likewise.
5591
55922000-05-31 Jeff Sturm <jsturm@one-point.com>
5593
5594 * configure.in: Fix AC_ARG_ENABLE usage.
5595 * configure: Rebuilt.
5596
55972001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5598
5599 * configure.in: Remove warning about beta code.
5600 * configure: Rebuilt.
5601
56022001-04-25 Hans Boehm <Hans_Boehm@hp.com>
5603
5604 * src/ia64/unix.S: Restore stack pointer when returning from
5605 ffi_closure_UNIX.
5606 * src/ia64/ffi.c: Fix typo in comment.
5607
56082001-04-18 Jim Wilson <wilson@redhat.com>
5609
5610 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5611 to eliminate RAW DV.
5612
56132001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
5614
5615 * Makefile.am: Make a libtool convenience library.
5616 * Makefile.in: Rebuilt.
5617
56182001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
5619
5620 * configure.in: Use different syntax for subdirectory creation.
5621 * configure: Rebuilt.
5622
56232001-03-27 Jon Beniston <jon@beniston.com>
5624
5625 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5626 * configure: Rebuilt.
5627 * Makefile.am: Added X86_WIN32 target support.
5628 * Makefile.in: Rebuilt.
5629
5630 * include/ffi.h.in: Added X86_WIN32 target support.
5631
5632 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5633 * src/types.c: Added X86_WIN32 target support.
5634
5635 * src/x86/win32.S: New file. Based on sysv.S, but with EH
5636 stuff removed and made to work with CygWin's gas.
5637
56382001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
5639
5640 * configure.in: Make target subdirectory in build dir.
5641 * Makefile.am: Override suffix based rules to specify correct output
5642 subdirectory.
5643 * Makefile.in: Rebuilt.
5644 * configure: Rebuilt.
5645
56462001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
5647
5648 * src/powerpc/ppc_closure.S: New file.
5649 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5650 involving long long and register pairs.
5651 (ffi_prep_closure): New function.
5652 (flush_icache): Likewise.
5653 (ffi_closure_helper_SYSV): Likewise.
5654 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5655 (FFI_TRAMPOLINE_SIZE): Likewise.
5656 (FFI_NATIVE_RAW_API): Likewise.
5657 * Makefile.in: Rebuilt.
5658 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5659 (TARGET_SRC_POWERPC): Likewise.
5660
56612001-03-19 Tom Tromey <tromey@redhat.com>
5662
5663 * Makefile.in: Rebuilt.
5664 * Makefile.am (ffitest_LDFLAGS): New macro.
5665
56662001-03-02 Nick Clifton <nickc@redhat.com>
5667
5668 * include/ffi.h.in: Remove RCS ident string.
5669 * include/ffi_mips.h: Remove RCS ident string.
5670 * src/debug.c: Remove RCS ident string.
5671 * src/ffitest.c: Remove RCS ident string.
5672 * src/prep_cif.c: Remove RCS ident string.
5673 * src/types.c: Remove RCS ident string.
5674 * src/alpha/ffi.c: Remove RCS ident string.
5675 * src/alpha/osf.S: Remove RCS ident string.
5676 * src/arm/ffi.c: Remove RCS ident string.
5677 * src/arm/sysv.S: Remove RCS ident string.
5678 * src/mips/ffi.c: Remove RCS ident string.
5679 * src/mips/n32.S: Remove RCS ident string.
5680 * src/mips/o32.S: Remove RCS ident string.
5681 * src/sparc/ffi.c: Remove RCS ident string.
5682 * src/sparc/v8.S: Remove RCS ident string.
5683 * src/sparc/v9.S: Remove RCS ident string.
5684 * src/x86/ffi.c: Remove RCS ident string.
5685 * src/x86/sysv.S: Remove RCS ident string.
5686
56872001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
5688
5689 * include/ffi.h.in: Change sourceware.cygnus.com references to
5690 gcc.gnu.org.
5691
56922000-12-09 Richard Henderson <rth@redhat.com>
5693
5694 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5695 (ffi_closure_osf_inner): Index rather than increment avalue
5696 and arg_types. Give ffi_closure_osf the raw return value type.
5697 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5698 promotion.
5699
57002000-12-07 Richard Henderson <rth@redhat.com>
5701
5702 * src/raw_api.c (ffi_translate_args): Fix typo.
5703 (ffi_prep_closure): Likewise.
5704
5705 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5706 FFI_TRAMPOLINE_SIZE.
5707 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5708 cif->bytes for new ffi_call_osf implementation.
5709 (ffi_prep_args): Absorb into ...
5710 (ffi_call): ... here. Do all stack allocation here and
5711 avoid a callback function.
5712 (ffi_prep_closure, ffi_closure_osf_inner): New.
5713 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5714 (ffi_closure_osf): New.
5715
57162000-09-10 Alexandre Oliva <aoliva@redhat.com>
5717
5718 * config.guess, config.sub, install-sh: Removed.
5719 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5720 * Makefile.in: Rebuilt.
5721
5722 * acinclude.m4: Include libtool macros from the top level.
5723 * aclocal.m4, configure: Rebuilt.
5724
57252000-08-22 Alexandre Oliva <aoliva@redhat.com>
5726
5727 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5728 * configure: Rebuilt.
5729
57302000-05-11 Scott Bambrough <scottb@netwinder.org>
5731
5732 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5733 memory correctly. Use conditional instructions, not branches where
5734 possible.
5735
57362000-05-04 Tom Tromey <tromey@cygnus.com>
5737
5738 * configure: Rebuilt.
5739 * configure.in: Match `arm*-*-linux-*'.
5740 From Chris Dornan <cdornan@arm.com>.
5741
57422000-04-28 Jakub Jelinek <jakub@redhat.com>
5743
5744 * Makefile.am (SUBDIRS): Define.
5745 (AM_MAKEFLAGS): Likewise.
5746 (Multilib support.): Add section.
5747 * Makefile.in: Rebuilt.
5748 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
5749 New variables. Set for gcc using -print-multi-lib. Export them
5750 to libtool.
5751 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5752 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5753 for -shared links.
5754 (extra_compiler_flags_value, extra_compiler_flags): Check these
5755 for extra compiler options which need to be passed down in
5756 compiler_flags.
5757
57582000-04-16 Anthony Green <green@redhat.com>
5759
5760 * configure: Rebuilt.
5761 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5762
57632000-04-14 Jakub Jelinek <jakub@redhat.com>
5764
5765 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
5766 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5767 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5768 Replace all void * sizeofs with sizeof(int).
5769 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5770 different than DOUBLE.
5771 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5772 (ffi_prep_args_v9): New function.
5773 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5774 (ffi_V9_return_struct): New function.
5775 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5776 32bit code (not yet cross-arch calls).
5777 * src/sparc/v8.S: Add struct return delay nop.
5778 Handle long long.
5779 * src/sparc/v9.S: New file.
5780 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5781 is used on sparc64 only for structures larger than 32 bytes.
5782 Pass by reference for structures is done for structure arguments
5783 larger than 16 bytes.
5784 * src/ffitest.c (main): Use 64bit rint on sparc64.
5785 Run long long tests on sparc.
5786 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5787 sparc64.
5788 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5789 on sparc64.
5790 * configure.in (sparc-*-linux*): New supported target.
5791 (sparc64-*-linux*): Likewise.
5792 * configure: Rebuilt.
5793 * Makefile.am: Add v9.S to SPARC files.
5794 * Makefile.in: Likewise.
5795 (LINK): Surround $(CCLD) into double quotes, so that multilib
5796 compiles work correctly.
5797
57982000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
5799
5800 * configure: Rebuilt.
5801 * configure.in: (i*86-*-solaris*): New libffi target. Patch
5802 proposed by Bryce McKinlay.
5803
58042000-03-20 Tom Tromey <tromey@cygnus.com>
5805
5806 * Makefile.in: Hand edit for java_raw_api.lo.
5807
58082000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
5809
5810 * config.guess, config.sub: Update from the gcc tree.
5811 Fix for PR libgcj/168.
5812
58132000-03-03 Tom Tromey <tromey@cygnus.com>
5814
5815 * Makefile.in: Fixed ia64 by hand.
5816
5817 * configure: Rebuilt.
5818 * configure.in (--enable-multilib): New option.
5819 (libffi_basedir): New subst.
5820 (AC_OUTPUT): Added multilib code.
5821
58222000-03-02 Tom Tromey <tromey@cygnus.com>
5823
5824 * Makefile.in: Rebuilt.
5825 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5826 directory name.
5827
58282000-02-25 Hans Boehm <boehm@acm.org>
5829
5830 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5831 files.
5832 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5833 list.
5834 (ffi_prep_raw_closure): Use ffi_translate_args, not
5835 ffi_closure_translate.
5836 * src/java_raw_api.c: New file.
5837 * src/ffitest.c (closure_test_fn): New function.
5838 (main): Define `rint' as long long on IA64. Added new test when
5839 FFI_CLOSURES is defined.
5840 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5841 (ffi_abi): Recognize IA64.
5842 (ffi_raw): Added `flt' field.
5843 Added "Java raw API" code.
5844 * configure.in: Recognize ia64.
5845 * Makefile.am (TARGET_SRC_IA64): New macro.
5846 (libffi_la_common_SOURCES): Added java_raw_api.c.
5847 (libffi_la_SOURCES): Define in IA64 case.
5848
58492000-01-04 Tom Tromey <tromey@cygnus.com>
5850
5851 * Makefile.in: Rebuilt with newer automake.
5852
58531999-12-31 Tom Tromey <tromey@cygnus.com>
5854
5855 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5856
58571999-09-01 Tom Tromey <tromey@cygnus.com>
5858
5859 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5860 undefs.
5861 * fficonfig.h.in: Rebuilt.
5862 * configure: Rebuilt.
5863 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5864 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5865 * acconfig.h: Don't #undef PACKAGE or VERSION.
5866
58671999-08-09 Anthony Green <green@cygnus.com>
5868
5869 * include/ffi.h.in: Try to work around messy header problem
5870 with PACKAGE and VERSION.
5871
5872 * configure: Rebuilt.
5873 * configure.in: Change version to 2.00-beta.
5874
5875 * fficonfig.h.in: Rebuilt.
5876 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5877
5878 * src/x86/ffi.c (ffi_raw_call): Rename.
5879
58801999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
5881
5882 * src/x86/ffi.c (ffi_closure_SYSV): New function.
5883 (ffi_prep_incoming_args_SYSV): Ditto.
5884 (ffi_prep_closure): Ditto.
5885 (ffi_closure_raw_SYSV): Ditto.
5886 (ffi_prep_raw_closure): More ditto.
5887 (ffi_call_raw): Final ditto.
5888
5889 * include/ffi.h.in: Add definitions for closure and raw API.
5890
5891 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
5892 FFI_TYPE_UINT64.
5893
5894 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5895
5896 * src/raw_api.c: New file.
5897
5898 * include/ffi.h.in (ffi_raw): New type.
5899 (UINT_ARG, SINT_ARG): New defines.
5900 (ffi_closure, ffi_raw_closure): New types.
5901 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
5902
5903 * configure.in: Add check for endianness and sizeof void*.
5904
5905 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5906 instead of directly.
5907
5908 * configure: Rebuilt.
5909
5910Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
5911
5912 * configure.in: Add x86 and powerpc BeOS configurations.
5913 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
5914
59151999-05-09 Anthony Green <green@cygnus.com>
5916
5917 * configure.in: Add warning about this being beta code.
5918 Remove src/Makefile.am from the picture.
5919 * configure: Rebuilt.
5920
5921 * Makefile.am: Move logic from src/Makefile.am. Add changes
5922 to support libffi as a target library.
5923 * Makefile.in: Rebuilt.
5924
5925 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5926 Upgraded to new autoconf, automake, libtool.
5927
5928 * README: Tweaks.
5929
5930 * LICENSE: Update copyright date.
5931
5932 * src/Makefile.am, src/Makefile.in: Removed.
5933
59341998-11-29 Anthony Green <green@cygnus.com>
5935
5936 * include/ChangeLog: Removed.
5937 * src/ChangeLog: Removed.
5938 * src/mips/ChangeLog: Removed.
5939 * src/sparc/ChangeLog: Remboved.
5940 * src/x86/ChangeLog: Removed.
5941
5942 * ChangeLog.v1: Created.