]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libffi / ChangeLog
CommitLineData
d901bf8a
GA
12023-01-07 LIU Hao <lh_mouse@126.com>
2
3 PR middle-end/108300
4 * src/aarch64/ffi.c: Define `WIN32_LEAN_AND_MEAN` before
5 <windows.h>.
6
de282a20
GA
72022-12-21 Iain Sandoe <iain@sandoe.co.uk>
8
9 * LOCAL_PATCHES: Add patch to fix i686 darwin build.
10
112022-12-21 Iain Sandoe <iain@sandoe.co.uk>
12
13 * src/x86/sysv.S (COMDAT): Amend section use for Darwin, accounting
14 cases where coalesced is needed. (eh_frame): Rework to avoid relocs
15 that cause builf fails on earlier Darwin. Adjust register numbers
16 to account for X86 m32 Darwin differences between EH and debug.
17
781f477a
GA
182022-10-12 Martin Liska <mliska@suse.cz>
19
20 * configure: Regenerate.
21
ab332cd7
GA
222022-10-11 Olivier Hainque <hainque@adacore.com>
23 Olivier Hainque <hainque@adacore.com>
24
25 * configure: Regenerate.
26
e2b57363
GA
272021-11-15 H.J. Lu <hjl.tools@gmail.com>
28
29 * LOCAL_PATCHES: Add commit a91f844ef44.
30
312021-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32
33 PR libffi/102874
34 * src/x86/win64.S (epilogue): Use #define instead of .macro.
35
29a1af24
GA
362021-11-04 H.J. Lu <hjl.tools@gmail.com>
37
38 * Makefile.am (AM_CFLAGS): Add $(CET_FLAGS).
39 (AM_CCASFLAGS): Likewise.
40 * configure.ac (CET_FLAGS): Add GCC_CET_FLAGS and AC_SUBST.
41 * Makefile.in: Regenerate.
42 * aclocal.m4: Likewise.
43 * configure: Likewise.
44 * include/Makefile.in: Likewise.
45 * man/Makefile.in: Likewise.
46 * testsuite/Makefile.in: Likewise.
47
04a2cf3f
GA
482021-10-27 H.J. Lu <hjl.tools@gmail.com>
49
50 * LOCAL_PATCHES: Add commit 90454a90082.
51
b621508d
GA
522021-10-25 Segher Boessenkool <segher@kernel.crashing.org>
53
54 * src/powerpc/linux64.S: Enable AltiVec insns.
55 * src/powerpc/linux64_closure.S: Ditto.
56
674dda6b
GA
572021-10-20 H.J. Lu <hjl.tools@gmail.com>
58
59 * LOCAL_PATCHES: New file.
60
612021-10-20 H.J. Lu <hjl.tools@gmail.com>
62
63 * testsuite/lib/libffi.exp (load_gcc_lib): Load library from GCC
64 testsuite.
65 Load target-supports.exp and target-supports-dg.exp.
66 (libffi-init): Use libraries in GCC build tree.
67 (libffi_target_compile): Link with -shared-libgcc -lstdc++ for
68 C++ sources.
69
702021-10-20 H.J. Lu <hjl.tools@gmail.com>
71
72 * Makefile.am (AUTOMAKE_OPTIONS): Add info-in-builddir.
73 (ACLOCAL_AMFLAGS): Set to -I .. -I ../config.
74 (SUBDIRS): Don't add doc.
75 (TEXINFO_TEX): New.
76 (MAKEINFOFLAGS): Likewise.
77 (info_TEXINFOS): Likewise.
78 (STAMP_GENINSRC): Likewise.
79 (STAMP_BUILD_INFO): Likewise.
80 (all-local): Likewise.
81 (stamp-geninsrc): Likewise.
82 (doc/libffi.info): Likewise.
83 (stamp-build-info:): Likewise.
84 (CLEANFILES): Likewise.
85 (MAINTAINERCLEANFILES): Likewise.
86 (AM_MAKEFLAGS): Likewise.
87 (all-recursive): Likewise.
88 (install-recursive): Likewise.
89 (mostlyclean-recursive): Likewise.
90 (clean-recursive): Likewise.
91 (distclean-recursive): Likewise.
92 (maintainer-clean-recursive): Likewise.
93 (LTLDFLAGS): Replace libtool-ldflags with ../libtool-ldflags.
94 (AM_CFLAGS): Add -g -fexceptions.
95 (libffi.map-sun): Replace make_sunver.pl with
96 ../contrib/make_sunver.pl.
97 (dist-hook): Removed.
98 Include $(top_srcdir)/../multilib.am.
99 * configure.ac: Add AM_ENABLE_MULTILIB.
100 Remove the frv*-elf check.
101 (AX_ENABLE_BUILDDIR): Removed.
102 (AM_INIT_AUTOMAKE): Add [no-dist].
103 Add --enable-generated-files-in-srcdir.
104 (C_CONFIG_MACRO_DIR): Removed.
105 (AX_COMPILER_VENDOR): Likewise.
106 (AX_CC_MAXOPT): Likewise.
107 (AX_CFLAGS_WARN_ALL): Likewise.
108 Remove the GCC check.
109 (SYMBOL_UNDERSCORE): Removed.
110 (AX_CHECK_COMPILE_FLAG): Likewise.
111 Remove --disable-docs.
112 (ACX_CHECK_PROG_VER): Check makeinfo.
113 (BUILD_DOCS): Updated.
114 (exec-static-tramp): Don't enable use of static exec trampolines
115 by default.
116 Remove --disable-multi-os-directory.
117 (GCC_WITH_TOOLEXECLIBDIR): New.
118 Support cross host.
119 Support --enable-multilib.
120 * include/Makefile.am (nodist_include_HEADERS): Removed.
121 (gcc_version): New.
122 (toollibffidir): Likewise.
123 (toollibffi_HEADERS): Likewise.
124 * Makefile.in: Regenerate.
125 (GCC_BASE_VER): New.
126 (AC_CONFIG_FILES): Remove doc/Makefile.
127 (AC_CONFIG_LINKS): New.
128 * aclocal.m4: Likewise.
129 * configure: Likewise.
130 * fficonfig.h.in: Likewise.
131 * mdate-sh: Likewise.
132 * include/Makefile.in: Likewise.
133 * man/Makefile.in: Likewise.
134 * testsuite/Makefile.in: Likewise.
135
1362021-10-20 H.J. Lu <hjl.tools@gmail.com>
137
138 * HOWTO_MERGE: New file.
139 * autogen.sh: Likewise.
140 * merge.sh: Likewise.
141
1e2f030b
GA
1422021-08-30 YunQiang Su <yunqiang.su@cipunited.com>
143
144 PR libffi/83636
145 * src/mips/n32.S: disable .set mips4
146 * src/mips/ffi.c: use different JR encoding for r6.
147
ef2ace64
GA
1482021-07-09 H.J. Lu <hjl.tools@gmail.com>
149
150 PR libffi/101336
151 * configure.host: Always check __x86_64__ for x86 hosts.
152
9a61dfdb
GA
1532021-06-16 Jakub Jelinek <jakub@redhat.com>
154
155 * src/x86/ffi64.c (classify_argument): For FFI_TYPE_STRUCT set words
156 to number of words needed for type->size + byte_offset bytes rather
157 than just type->size bytes. Compute pos before the loop and check
158 total size of the structure.
159 * testsuite/libffi.call/nested_struct12.c: New test.
160
651b8a50
GA
1612021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
162
163 * configure: Re-generate.
164
6e1edf48
GA
1652020-12-05 Iain Sandoe <iain@sandoe.co.uk>
166
167 PR target/97865
168 * configure: Regenerate.
169
a9625c50
GA
1702020-11-29 John David Anglin <danglin@gcc.gnu.org>
171
172 * configure: Regenerate.
173
a2b7397b
GA
1742020-09-24 Alan Modra <amodra@gmail.com>
175
176 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
177 location of .Lret.
178
1792020-09-24 Alan Modra <amodra@gmail.com>
180
181 * src/powerpc/linux64.S (ffi_call_LINUX64): Don't emit global
182 entry when __PCREL__. Call using @notoc. Add nops.
183 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
184 (ffi_go_closure_linux64): Likewise.
185
a0b48358
MR
1862020-04-25 Maciej W. Rozycki <macro@wdc.com>
187
188 * Makefile.am (DISTCLEANFILES): New variable.
189 * configure.ac: Produce `local.exp'.
190 * Makefile.in: Regenerate.
191 * configure: Regenerate.
192 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
193 variable.
194 * testsuite/Makefile.in: Regenerate.
195
e8e66971
MR
1962020-01-24 Maciej W. Rozycki <macro@wdc.com>
197
198 * configure.ac: Handle `--with-toolexeclibdir='.
199 * Makefile.in: Regenerate.
200 * aclocal.m4: Regenerate.
201 * configure: Regenerate.
202 * include/Makefile.in: Regenerate.
203 * man/Makefile.in: Regenerate.
204 * testsuite/Makefile.in: Regenerate.
205
e9085da5
MR
2062019-09-27 Maciej W. Rozycki <macro@wdc.com>
207
208 * configure: Regenerate.
209
c6c2d1bc
CLT
2102019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
211
212 PR other/79543
213 * acinclude.m4 (LIBAT_CHECK_LINKER_FEATURES): Fix GNU ld --version
214 scanning to conform to the GNU Coding Standards.
215 * configure: Regenerate.
216
22e05272
JM
2172018-10-31 Joseph Myers <joseph@codesourcery.com>
218
219 PR bootstrap/82856
220 * Makefile.am: Include multilib.am.
221 (AUTOMAKE_OPTIONS): Add info-in-builddir.
222 (CLEANFILES): Remove doc/libffi.info.
223 * configure.ac: Remove AC_PREREQ.
224 * Makefile.in, aclocal.m4, configure, fficonfig.h.in,
225 include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
226 Regenerate.
227
68d23593
AS
2282018-08-15 Andreas Schwab <schwab@suse.de>
229
230 Backport of RISC-V support for libffi go closures
231 * src/riscv/ffi.c (ffi_call_go, ffi_prep_go_closure): New
232 functions.
233 (ffi_call_int): Renamed from ffi_call.
234 (ffi_call_asm, ffi_closure_inner): Adjust interface.
235 * src/riscv/ffitarget.h (FFI_GO_CLOSURES): Define.
236 * src/riscv/sysv.S (ffi_go_closure_asm): New function.
237 (ffi_closure_asm, ffi_call_asm): Update for adjusted interfaces.
238
93249dde
AS
2392018-05-08 Andreas Schwab <schwab@suse.de>
240
241 Backport of RISC-V support for libffi
242 * configure.host: Add RISC-V support.
243 * Makefile.am: Likewise.
244 * Makefile.in: Regenerate.
245 * src/riscv/ffi.c, src/riscv/ffitarget.h, src/riscv/sysv.S: New
246 files.
247
71d372eb
AM
2482018-05-04 Alan Modra <amodra@gmail.com>
249
250 Import from upstream
251 * src/powerpc/ffi_linux64.c (discover_homogeneous_aggregate):
252 Compile for ELFv1 too, handling single element aggregates.
253 (ffi_prep_cif_linux64_core): Call discover_homogeneous_aggregate
254 for ELFv1. Set FLAG_RETURNS_64BITS for FFI_TYPE_POINTER return.
255 (ffi_prep_args64): Call discover_homogeneous_aggregate for ELFv1,
256 and handle single element structs containing float or double
257 as if the element wasn't wrapped in a struct. Store floats in
258 second word of doubleword slot when big-endian.
259 (ffi_closure_helper_LINUX64): Similarly.
260
001ddaa8
DM
2612018-04-18 David Malcolm <dmalcolm@redhat.com>
262
263 PR jit/85384
264 * configure: Regenerate.
265
fbdc3780
TR
2662017-08-31 Tony Reix <tony.reix@atos.net>
267
268 * src/powerpc/aix.S (ffi_call_AIX): Add debugging pseudo-op and
269 labels for EH.
270 (ffi_call_go_AIX): New function.
271 (_GLOBAL__F_libffi_src_powerpc_aix): New EH frame.
272 * src/powerpc/aix_closure.S (ffi_closure_ASM): Add debugging
273 pseudo-op and labels for EH.
274 (ffi_go_closure_ASM): New function.
275 (_GLOBAL__F_libffi_src_powerpc_aix_closure): New EH frame.
276 * src/powrpc/ffi_darwin.c (ffi_call_go): New function.
277 (ffi_prep_go_closure): New function.
278 (ffi_closure_helper_common): Rename from ffi_closure_helper_DARWIN.
279 (ffi_closure_helper_DARWIN): Call ffi_closure_helper_common.
280 (ffi_go_closure_helper_DARWIN): Call ffi_closure_helper_common.
281 * src/powerpc/ffitarget.h (FFI_GO_CLOSURES): Define.
282
73aa401e
JJ
2832017-01-21 Jakub Jelinek <jakub@redhat.com>
284
285 PR other/79046
286 * configure.ac: Add GCC_BASE_VER.
287 * include/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
288 of cat to get version from BASE-VER file.
289 * configure: Regenerated.
290 * testsuite/Makefile.in: Regenerated.
291 * include/Makefile.in: Regenerated.
292 * Makefile.in: Regenerated.
293 * man/Makefile.in: Regenerated.
294
84c1b9d3
MK
2952016-11-15 Matthias Klose <doko@ubuntu.com>
296
297 * configure: Regenerate.
298
5961d13d
JDA
2992016-09-04 John David Anglin <danglin@gcc.gnu.org>
300
301 * src/pa/ffi.c (ffi_struct_type): Put type declaration on separate line.
302 (ffi_prep_args_pa32): Likewise.
303 (ffi_size_stack_pa32): Likewise.
304 (ffi_prep_cif_machdep): Likewise.
305 (ffi_call): Likewise. Rename to ffi_call_int. Add closure argument
306 and update call to ffi_call_pa32.
307 (ffi_call, ffi_call_go, ffi_prep_go_closure): New.
308 (ffi_closure_inner_pa32): Update to handle go closures.
309 * src/pa/ffitarget.h (FFI_GO_CLOSURES): Define.
310 * src/pa/hpux32.S (ffi_call_pa32): Pass go closure argument in static
311 chain register (%ret1).
312 (ffi_closure_pa32): Set closure type argument to zero.
313 (ffi_go_closure_pa32): New function. Add unwind data for it.
314 * src/pa/linux.S: Likewise. Use cfi directives for unwind data.
315 * testsuite/libffi.go/static-chain.h (STATIC_CHAIN_REG): Define for
316 hppa.
317
7e5a3c96
TS
3182016-05-23 Thomas Schwinge <thomas@codesourcery.com>
319
320 PR libffi/65567
321 * testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
322
a7ceba7d
AS
3232016-03-17 Andreas Schwab <schwab@suse.de>
324
325 * src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]:
326 Define.
327
1e00421c
RH
3282016-03-02 Richard Henderson <rth@redhat.com>
329
330 * libtool-version: Increase to 7:0:0.
331 * libffi.map.in: Increase version numbers to 7.0.
332
bc33dc51
RO
3332016-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
334
335 * Makefile.am (libffi.map-sun): Properly convert
336 $(libffi_la_OBJECTS) to object names.
337 * Makefile.in: Regenerate.
338
fd2298e3
RO
3392016-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
340
341 * Makefile.am (libffi.map-sun): Tabify:
342 * Makefile.in: Regenerate.
343
2c055256
RH
3442016-03-02 Richard Henderson <rth@redhat.com>
345
346 PR libffi/70024
347 * Makefile.am (libffi_version_script): New.
348 (libffi_version_dep): New.
349 (libffi_version_info): New.
350 (libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script.
351 (libffi_la_DEPENDENCIES): Include libffi_version_dep.
352 * acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New.
353 (LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New.
354 (LIBAT_BUILD_VERSIONED_SHLIB_GNU): New.
355 (LIBAT_BUILD_VERSIONED_SHLIB_SUN): New.
356 * configure.ac: Invoke LIBAT_ENABLE_SYMVERS.
357 * libffi.map: New file.
358 * libtool-version: Increase to 5.0.0.
359 * Makefile.in, configure: Rebuild.
360 * man/Makefile.in, testsuite/Makefile.in: Rebuild.
361
5147e0e8
RH
362 * Makefile.am (libffi_version_script): Look in cwd for libffi.map.
363 (libffi_version_dep, libffi.map-sun): Likewise.
364 (libffi.map): New target.
365 * libffi.map.in: Rename from libffi.map. Add required defines,
366 includes, and conditionals.
367
bda9c245
JDA
3682015-10-26 John David Anglin <danglin@gcc.gnu.org>
369
370 PR libffi/65441
371 * testsuite/lib/libffi.exp: Load target-supports-dg.exp.
372 * testsuite/libffi.call/float2.c: Don't run on hppa*-*-hpux*.
373
c57173b6
AM
3742015-10-01 Alan Modra <amodra@gmail.com>
375
376 * src/powerpc/ffi_sysv.c (ffi_prep_cif_sysv_core): Count fprs,
377 gprs, and stack words separately.
378 (ffi_prep_args_SYSV): Similarly.
379
11989ec2
MH
3802015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
381
382 * Makefile.in: Regenerated with automake-1.11.6.
383 * aclocal.m4: Likewise.
384 * configure: Likewise.
385 * fficonfig.h.in: Likewise.
386 * include/Makefile.in: Likewise.
387 * man/Makefile.in: Likewise.
388 * testsuite/Makefile.in: Likewise.
389
dc843250
JDA
3902015-03-29 John David Anglin <danglin@gcc.gnu.org>
391
392 PR libffi/65567
393 * testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
394 lindex is applied to a list.
395
97c32df4
AP
3962015-02-10 Andrew Pinski <apinski@cavium.com>
397
398 * src/aarch64/ffitarget.h (ffi_arg): Use unsigned long long for ILP32.
399 (FFI_SIZEOF_ARG): Define to 64 for ILP32.
400 (ffi_sarg): Use signed long long for ILP32.
401
402 * src/aarch64/sysv.S (PTR_REG): New macro.
403 (PTR_SIZE): New macro.
404 (ffi_closure_SYSV): Load cif, fn and user_data using PTR_REG.
405 (ffi_go_closure_SYSV): Load cif and fn using PTR_REG.
406
a96d75a4
JH
4072015-01-29 Jack Howarth <howarth.at.gcc@gmail.com>
408
409 PR libffi/64855
410 * testsuite/lib/libffi.exp: Don't set targetabis on darwin.
411
ed4bf691
RH
4122015-01-28 Richard Henderson <rth@redhat.com>
413
1dd63990
RH
414 PR libffi/64779
415 PR libffi/64799
ed4bf691
RH
416 * Merge to upstream commit db1b34b7e1f5e473d17557e454a29933dfecd1af.
417
d9c16466
RO
4182015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
419
420 * testsuite/lib/libffi.exp: Load target-supports.exp.
421 (run-many-tests): Only set targetabis for ia32.
422
039ad4c2
RH
4232015-01-19 Richard Henderson <rth@redhat.com>
424
425 PR libffi/64581
426 * testsuite/lib/libffi.exp (libffi_target_compile): Don't switch
427 to C++ mode when compiling C++ source code.
428
36035d79
RH
4292015-01-19 Richard Henderson <rth@redhat.com>
430
431 * Merge to upstream commit 3ac1610aa33c887ea9b14935208943925714a33e.
432
a9b8c959
RH
4332015-01-19 Richard Henderson <rth@redhat.com>
434
435 PR libffi/64607
436 * testsuite/lib/libffi.exp (libffi-init): Append -L for the
437 just built libstdc++.
438
109c4a7c
DH
4392015-01-15 Dominique d'Humieres <dominiq@lps.ens.fr>
440 Richard Henderson <rth@redhat.com>
441
442 PR libffi/64607
443 * Makefile.am (AM_MAKEFLAGS): Use double quotes on subvariables.
444 * Makefile.in: Rebuilt.
445
58b59d5e
RH
4462015-01-15 Richard Henderson <rth@redhat.com>
447
448 PR libffi/64572
449 * include/ffi.h.in (FFI_TYPE_LAST): Set to COMPLEX only if complex
450 numbers are supported by the backend.
451
b1479ae3
KK
4522015-01-13 Kaz Kojima <kkojima@gcc.gnu.org>
453
454 * configure.host: Remove extra brackets for sh.
455
ff8ebda1
L
4562015-01-13 H.J. Lu <hongjiu.lu@intel.com>
457
458 PR bootstrap/64575
459 * configure.host (TARGET): Set to X86_64 if __x86_64__ is defined.
460
be723d1e
RH
4612015-01-12 Richard Henderson <rth@redhat.com>
462
463 PR libffi/64572
464 * src/x86/ffitarget.h (FFI_GO_CLOSURES): Do not define for darwin.
465 (FFI_TARGET_HAS_COMPLEX_TYPE): Likewise.
466
ca46eab7
RH
4672015-01-12 Richard Henderson <rth@redhat.com>
468
469 * src/x86/ffi.c (ffi_raw_call): Fill in frame.
470
b1760f7f
RH
4712015-01-12 Richard Henderson <rth@redhat.com>
472
473 Merge to upstream commit c82cc159426d8d4402375fa1ae3f045b9cf82e16.
474
a699d672
L
4752014-11-21 H.J. Lu <hongjiu.lu@intel.com>
476
477 PR bootstrap/63784
478 * configure: Regenerated.
479
ebf6d33b
FXC
4802014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
481
482 PR target/63610
483 * configure: Regenerate.
484
bb8c2886
ILT
4852014-10-15 Ian Lance Taylor <iant@google.com>
486
487 * configure.ac: If the compiler supports -Qunused-arguments, use
488 it when running the compiler on .s files.
489 * configure: Regenerated.
490
1138382b
JJ
4912014-09-11 Jakub Jelinek <jakub@redhat.com>
492
493 * src/powerpc/linux64.S: Emit .note.GNU-stack even when
494 POWERPC64 is not defined.
495 * src/powerpc/linux64_closure.S: Likewise. Also test _CALL_ELF == 2.
496
f54860ea
UB
4972014-07-21 Uros Bizjak <ubizjak@gmail.com>
498
499 * src/alpha/ffi.c: Do not include stdlib.h.
500 (ffi_closure_osf_inner) <default>: Use FFI_ASSERT instead of abort.
501
a03bd005
TS
5022014-07-04 Thomas Schwinge <thomas@codesourcery.com>
503
504 * testsuite/lib/libffi.exp (libffi-dg-runtest): Change interface
505 match to dg-runtest's.
506
8ec7c36a
SH
5072014-05-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
508
509 * testsuite/lib/libffi.exp (load_gcc_lib): Register loaded libs.
510
54fde020
BE
5112014-05-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
512
513 Fix current cygwin-64 build problems.
514 * src/java_raw_api.c: Remove if !defined(FFI_NO_RAW_API).
515 * src/x86/ffi.c: Add if defined(__CYGWIN__).
516 * src/x86/win64.S (ffi_closure_win64, ffi_call_win64): Added
517 handling for FFI_TYPE_UINT64, FFI_TYPE_POINTER and FFI_TYPE_INT.
518 Added SEH information. Fixed formatting.
519
f7468577
JJ
5202014-04-22 Jakub Jelinek <jakub@redhat.com>
521
522 PR other/43620
523 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
524 * Makefile.in: Regenerated.
525 * include/Makefile.in: Regenerated.
526 * man/Makefile.in: Regenerated.
527 * testsuite/Makefile.in: Regenerated.
528
5309143d
YZ
5292014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
530
531 * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
532 main CFA reg; update cfi_rel_offset.
533
248d745a
EB
5342014-02-17 Eric Botcazou <ebotcazou@adacore.com>
535
536 PR libffi/60073
537 * src/sparc/v8.S: Assemble only if !SPARC64.
538 * src/sparc/v9.S: Remove obsolete comment.
539 * src/sparc/ffitarget.h (enum ffi_abi): Add FFI_COMPAT_V9.
540 (V8_ABI_P): New macro.
541 (V9_ABI_P): Likewise.
542 (FFI_EXTRA_CIF_FIELDS): Define only if SPARC64.
543 * src/sparc/ffi.c (ffi_prep_args_v8): Compile only if !SPARC64.
544 (ffi_prep_args_v9): Compile only if SPARC64.
545 (ffi_prep_cif_machdep_core): Use V9_ABI_P predicate.
546 (ffi_prep_cif_machdep): Guard access to nfixedargs field.
547 (ffi_prep_cif_machdep_var): Likewise.
548 (ffi_v9_layout_struct): Compile only if SPARC64.
549 (ffi_call): Deal with FFI_V8PLUS and FFI_COMPAT_V9 and fix warnings.
550 (ffi_prep_closure_loc): Use V9_ABI_P and V8_ABI_P predicates.
551 (ffi_closure_sparc_inner_v8): Compile only if !SPARC64.
552 (ffi_closure_sparc_inner_v9): Compile only if SPARC64. Guard access
553 to nfixedargs field.
554
30255340
EB
5552014-02-13 Eric Botcazou <ebotcazou@adacore.com>
556
557 PR libffi/60073
558 * src/sparc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
559 (FFI_EXTRA_CIF_FIELDS): Likewise.
560 (FFI_NATIVE_RAW_API): Move around.
561 * src/sparc/ffi.c (ffi_prep_cif_machdep_core): New function from...
562 (ffi_prep_cif_machdep): ...here. Call ffi_prep_cif_machdep_core.
563 (ffi_prep_cif_machdep_var): New function.
564 (ffi_closure_sparc_inner_v9): Do not pass anonymous FP arguments in
565 FP registers.
566 * doc/libffi.texi (Introduction): Fix inaccuracy.
567
e73d2479
AM
5682013-12-10 Alan Modra <amodra@gmail.com>
569
570 * src/powerpc/ffitarget.h: Import from upstream.
571 * src/powerpc/ffi_powerpc.h: Likewise.
572 * src/powerpc/ffi.c: Likewise.
573 * src/powerpc/ffi_sysv.c: Likewise.
574 * src/powerpc/ffi_linux64.c: Likewise.
575 * src/powerpc/sysv.S: Likewise.
576 * src/powerpc/ppc_closure.S: Likewise.
577 * src/powerpc/linux64.S: Likewise.
578 * src/powerpc/linux64_closure.S: Likewise.
579 * src/types.c: Likewise.
580 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
581 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
582 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
583 * include/ffi.h.in (ffi_prep_types): Declare.
584 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
585 * configure: Regenerate.
586 * fficonfig.h.in: Regenerate.
587 * Makefile.in: Regenerate.
588 * man/Makefile.in: Regenerate.
589 * include/Makefile.in: Regenerate.
590 * testsuite/Makefile.in: Regenerate.
591
3521ba8b
AM
5922013-11-18 Alan Modra <amodra@gmail.com>
593
fd4da58c
AM
594 * src/powerpc/ppc_closure.S: Don't bl .Luint128.
595
3521ba8b
AM
596 * src/powerpc/ffitarget.h: Import from upstream.
597 * src/powerpc/ffi.c: Likewise.
598 * src/powerpc/linux64.S: Likewise.
599 * src/powerpc/linux64_closure.S: Likewise.
600 * doc/libffi.texi: Likewise.
601 * testsuite/libffi.call/cls_double_va.c: Likewise.
602 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
603
3cbe17f7
AM
6042013-09-20 Alan Modra <amodra@gmail.com>
605
606 * configure: Regenerate.
607
40b45a6d
AM
6082013-06-25 Alan Modra <amodra@gmail.com>
609
610 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
611 before statements.
612 (ffi_prep_args64): Support little-endian.
613 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
614 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
615 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
616
1e1ba2d7
DH
6172013-05-22 Dominique d'Humieres <dominiq@lps.ens.fr>
618 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
619
620 PR libffi/56033
621 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Cast resp to
622 ffi_arg *.
623 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise.
624 * testsuite/libffi.call/va_1.c (main): Change res to ffi_arg.
625 * testsuite/libffi.call/va_struct1.c (main): Likewise.
626
8280eba0
KT
6272013-03-22 Kai Tietz <ktietz@redhat.com>
628
629 * src/x86/win64.S: Make use of ffi_closure_win64_inner
630 symbol pc-relative.
631
bb78d7c4
DK
6322013-03-07 Dave Korn <dave.korn.cygwin@gmail.com>
633
634 * src/closures.c (is_emutramp_enabled [!FFI_MMAP_EXEC_EMUTRAMP_PAX]):
635 Move default definition outside enclosing #if scope.
636
8f093ea0
AT
6372013-02-06 Andreas Tobler <andreast@fgznet.ch>
638
639 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
640 DOUBLE equal LONGDOUBLE.
641
7b045477
TG
6422013-01-07 Thorsten Glaser <tg@mirbsd.org>
643
644 * testsuite/libffi.call/cls_uchar_va.c,
645 testsuite/libffi.call/cls_ushort_va.c,
646 testsuite/libffi.call/va_1.c: Testsuite fixes.
647
4e70f25f
AS
6482012-12-29 Andreas Schwab <schwab@linux-m68k.org>
649
650 * Makefile.am (ACLOCAL_AMFLAGS, TEXINFO_TEX, MAKEINFOFLAGS)
651 (STAMP_GENINSRC, STAMP_BUILD_INFO, CLEANFILES)
652 (MAINTAINERCLEANFILES): Define.
653 (all-local, stamp-geninsrc, stamp-build-info): New targets.
654 (doc/libffi.info): Depend on $(STAMP_BUILD_INFO)
655 * configure.ac: Check for modern makeinfo. Add support for
656 --enable-generated-files-in-srcdir.
657 * libffi/mdate-sh: New file.
658 * testsuite/lib/libffi.exp (load_gcc_lib): Load from gcc testsuite
659 lib dir.
660 (libffi-init): Properly set library paths for multilibs and add
661 path to libstdc++.
662 * configure: Regenerate.
663 * aclocal.m4: Regenerate.
664 * Makefile.in: Regenerate.
665 * doc/stamp-vti: Regenerate.
666 * doc/version.texi: Regenerate.
667 * fficonfig.h.in: Regenerate.
668 * include/Makefile.in: Regenerate.
669 * man/Makefile.in: Regenerate.
670 * testsuite/Makefile.in: Regenerate.
671
7054d980
AM
6722012-10-31 Alan Modra <amodra@gmail.com>
673
674 * src/powerpc/linux64_closure.S: Add new ABI support.
675 * src/powerpc/linux64.S: Likewise.
676
b4b575ce
AG
6772012-10-30 Magnus Granberg <zorry@gentoo.org>
678 Pavel Labushev <pavel.labushev@runbox.ru>
679
680 * configure.ac: New options pax_emutramp
681 * configure, fficonfig.h.in: Regenerated
682 * src/closures.c: New function emutramp_enabled_check() and
683 checks.
684
6852012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
686
687 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
688 lion) and future version.
689 * configure: Rebuild.
690
6912012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
3d3b561f 692 Marcus Shawcroft <marcus.shawcroft at arm.com>
b4b575ce 693
3521ba8b
AM
694 * README: Add details of aarch64 port.
695 * src/aarch64/ffi.c: New.
696 * src/aarch64/ffitarget.h: Likewise.
697 * src/aarch64/sysv.S: Likewise.
b4b575ce
AG
698 * Makefile.am: Support aarch64.
699 * configure.ac: Support aarch64.
700 * Makefile.in, configure: Rebuilt.
701
7022012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
3d3b561f 703 Marcus Shawcroft <marcus.shawcroft at arm.com>
b4b575ce 704
3521ba8b
AM
705 * testsuite/lib/libffi.exp: Add support for aarch64.
706 * testsuite/libffi.call/cls_struct_va1.c: New.
707 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
708 * testsuite/libffi.call/cls_uint_va.c: Likewise.
709 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
710 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
711 * testsuite/libffi.call/nested_struct11.c: Likewise.
712 * testsuite/libffi.call/uninitialized.c: Likewise.
713 * testsuite/libffi.call/va_1.c: Likewise.
714 * testsuite/libffi.call/va_struct1.c: Likewise.
715 * testsuite/libffi.call/va_struct2.c: Likewise.
716 * testsuite/libffi.call/va_struct3.c: Likewise.
b4b575ce
AG
717
7182012-10-12 Walter Lee <walt@tilera.com>
719
3521ba8b
AM
720 * Makefile.am: Add TILE-Gx/TILEPro support.
721 * configure.ac: Likewise.
722 * Makefile.in: Regenerate.
723 * configure: Likewise.
724 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
725 * src/tile: New directory.
726 * src/tile/ffi.c: New file.
727 * src/tile/ffitarget.h: Ditto.
728 * src/tile/tile.S: Ditto.
b4b575ce
AG
729
7302012-10-12 Matthias Klose <doko@ubuntu.com>
731
732 * generate-osx-source-and-headers.py: Normalize whitespace.
733
cbbd536a
DE
7342012-09-14 David Edelsohn <dje.gcc@gmail.com>
735
736 * configure: Regenerated.
737
c5a3fffa
AP
7382012-08-26 Andrew Pinski <apinski@cavium.com>
739
740 PR libffi/53014
741 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
742 soft-float.
743
aa5d8db0
UB
7442012-08-08 Uros Bizjak <ubizjak@gmail.com>
745
746 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
747 just return FFI_BAD_ABI when things are wrong.
748
1ff8c79b
UB
7492012-07-18 H.J. Lu <hongjiu.lu@intel.com>
750
751 PR libffi/53982
752 PR libffi/53973
753 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
754 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
755
7562012-05-16 H.J. Lu <hongjiu.lu@intel.com>
757
758 * configure: Regenerated.
759
b4b575ce
AG
7602012-05-05 Nicolas Lelong
761
762 * libffi.xcodeproj/project.pbxproj: Fixes.
763 * README: Update for iOS builds.
764
7652012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
766
767 * configure.ac: Add Blackfin/sysv support
768 * Makefile.am: Add Blackfin/sysv support
769 * src/bfin/ffi.c: Add Blackfin/sysv support
770 * src/bfin/ffitarget.h: Add Blackfin/sysv support
771
7722012-04-11 Anthony Green <green@moxielogic.com>
773
774 * Makefile.am (EXTRA_DIST): Add new script.
775 * Makefile.in: Rebuilt.
776
7772012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
778
779 * generate-ios-source-and-headers.py,
780 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
781 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
782 generation into an Xcode "run script" phase. Include both as
783 Xcode build scripts. Don't always regenerate config files.
784
7852012-04-10 Anthony Green <green@moxielogic.com>
786
787 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
788
7892012-04-06 Anthony Green <green@moxielogic.com>
790
791 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
792 * Makefile.in: Rebuilt.
793
7942012-04-06 Mike Lewis <mikelikespie@gmail.com>
795
796 * generate-ios-source-and-headers.py: New file.
797 * libffi.xcodeproj/project.pbxproj: New file.
798 * README: Update instructions on building iOS binary.
799 * build-ios.sh: Delete.
800
8012012-04-06 Anthony Green <green@moxielogic.com>
802
803 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
804 compilers, then use it.
805
8062012-04-06 H.J. Lu <hongjiu.lu@intel.com>
807
808 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
809
8102012-04-06 Anthony Green <green@moxielogic.com>
811
812 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
813 * testsuite/Makefile.in: Rebuilt.
814
8152012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
816
817 * include/ffi.h.in: Add missing trampoline table fields.
818 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
819 in CNAME.
820 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
821
8222012-03-29 Peter Rosin <peda@lysator.liu.se>
823
824 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
825 generation, fix the ENDP label and remove the surplus third arg
826 from the 'lea' insn.
827
8282012-03-29 Peter Rosin <peda@lysator.liu.se>
829
830 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
831 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
832 it. Also instruct the assembler to add a frame to the function.
833
8342012-03-23 Peter Rosin <peda@lysator.liu.se>
835
836 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
837 * Makefile.in: Rebuilt.
838 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
839 to all data exports, when compiling libffi clients using MSVC.
840
8412012-03-29 Peter Rosin <peda@lysator.liu.se>
842
843 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
844 make it the default for MSVC.
845 (FFI_TYPE_MS_STRUCT): New structure return convention.
846 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
847 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
848 instead of an ordinary FFI_TYPE_STRUCT.
849 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
850 (ffi_call): Likewise.
851 (ffi_prep_incoming_args_SYSV): Likewise.
852 (ffi_raw_call): Likewise.
853 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
854 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
855 return a pointer to the result structure in eax and don't pop
856 that pointer from the stack, the caller takes care of it.
857 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
858 (ffi_closure_raw_SYSV): Likewise.
859
8602012-03-22 Peter Rosin <peda@lysator.liu.se>
861
862 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
863 assembly version with Intel syntax.
864 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
865
8662012-03-23 Peter Rosin <peda@lysator.liu.se>
867
868 * testsuite/libffi.call/ffitest.h: Provide abstration of
869 __attribute__((fastcall)) in the form of a __FASTCALL__
870 define. Define it to __fastcall for MSVC.
871 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
872 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
873 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
874 * testsuite/libffi.call/strlen2_win32.c: Likewise.
875 * testsuite/libffi.call/struct1_win32.c: Likewise.
876 * testsuite/libffi.call/struct2_win32.c: Likewise.
877
8782012-03-22 Peter Rosin <peda@lysator.liu.se>
879
880 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
881 frame on function entry, MASM adds one automatically.
882
8832012-03-22 Peter Rosin <peda@lysator.liu.se>
884
885 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
886 bits in the MSVC headers.
887
8882012-03-22 Peter Rosin <peda@lysator.liu.se>
889
890 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
891 with no declarations after statements.
892 * testsuite/libffi.call/cls_16byte.c: Likewise.
893 * testsuite/libffi.call/cls_18byte.c: Likewise.
894 * testsuite/libffi.call/cls_19byte.c: Likewise.
895 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
896 * testsuite/libffi.call/cls_20byte.c: Likewise.
897 * testsuite/libffi.call/cls_20byte1.c: Likewise.
898 * testsuite/libffi.call/cls_24byte.c: Likewise.
899 * testsuite/libffi.call/cls_2byte.c: Likewise.
900 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
901 * testsuite/libffi.call/cls_3byte1.c: Likewise.
902 * testsuite/libffi.call/cls_3byte2.c: Likewise.
903 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
904 * testsuite/libffi.call/cls_4byte.c: Likewise.
905 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
906 * testsuite/libffi.call/cls_5byte.c: Likewise.
907 * testsuite/libffi.call/cls_64byte.c: Likewise.
908 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
909 * testsuite/libffi.call/cls_6byte.c: Likewise.
910 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
911 * testsuite/libffi.call/cls_7byte.c: Likewise.
912 * testsuite/libffi.call/cls_8byte.c: Likewise.
913 * testsuite/libffi.call/cls_9byte1.c: Likewise.
914 * testsuite/libffi.call/cls_9byte2.c: Likewise.
915 * testsuite/libffi.call/cls_align_double.c: Likewise.
916 * testsuite/libffi.call/cls_align_float.c: Likewise.
917 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
918 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
919 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
920 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
921 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
922 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
923 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
924 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
925 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
926 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
927 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
928 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
929 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
930 * testsuite/libffi.call/huge_struct.c: Likewise.
931 * testsuite/libffi.call/nested_struct.c: Likewise.
932 * testsuite/libffi.call/nested_struct1.c: Likewise.
933 * testsuite/libffi.call/nested_struct10.c: Likewise.
934 * testsuite/libffi.call/nested_struct2.c: Likewise.
935 * testsuite/libffi.call/nested_struct3.c: Likewise.
936 * testsuite/libffi.call/nested_struct4.c: Likewise.
937 * testsuite/libffi.call/nested_struct5.c: Likewise.
938 * testsuite/libffi.call/nested_struct6.c: Likewise.
939 * testsuite/libffi.call/nested_struct7.c: Likewise.
940 * testsuite/libffi.call/nested_struct8.c: Likewise.
941 * testsuite/libffi.call/nested_struct9.c: Likewise.
942 * testsuite/libffi.call/stret_large.c: Likewise.
943 * testsuite/libffi.call/stret_large2.c: Likewise.
944 * testsuite/libffi.call/stret_medium.c: Likewise.
945 * testsuite/libffi.call/stret_medium2.c: Likewise.
946 * testsuite/libffi.call/struct1.c: Likewise.
947 * testsuite/libffi.call/struct1_win32.c: Likewise.
948 * testsuite/libffi.call/struct2.c: Likewise.
949 * testsuite/libffi.call/struct2_win32.c: Likewise.
950 * testsuite/libffi.call/struct3.c: Likewise.
951 * testsuite/libffi.call/struct4.c: Likewise.
952 * testsuite/libffi.call/struct5.c: Likewise.
953 * testsuite/libffi.call/struct6.c: Likewise.
954 * testsuite/libffi.call/struct7.c: Likewise.
955 * testsuite/libffi.call/struct8.c: Likewise.
956 * testsuite/libffi.call/struct9.c: Likewise.
957 * testsuite/libffi.call/testclosure.c: Likewise.
958
9592012-03-21 Peter Rosin <peda@lysator.liu.se>
960
961 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
962 printing doubles (%lf is for long doubles).
963 (main): Likewise.
964
9652012-03-21 Peter Rosin <peda@lysator.liu.se>
966
967 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
968 (set_ld_library_path_env_vars): Add the library search dir to PATH
969 (and save PATH for later).
970 (restore_ld_library_path_env_vars): Restore PATH.
971
9722012-03-20 Peter Rosin <peda@lysator.liu.se>
973
974 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
975 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
976 visible outside the PROC, so that ffi_closure_THISCALL can see it.
977
9782012-03-20 Peter Rosin <peda@lysator.liu.se>
979
980 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
981 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
982 visible outside the PROC, so that ffi_closure_THISCALL can see it.
983
9842012-03-19 Alan Hourihane <alanh@fairlite.co.uk>
985
986 * src/m68k/ffi.c: Add MINT support.
987 * src/m68k/sysv.S: Ditto.
988
9892012-03-19 chennam <csit@axway.com>
990
991 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
992 support.
993
9942012-03-06 Chung-Lin Tang <cltang@codesourcery.com>
995
996 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
997 ffi_call_VFP().
998 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
999 ffi_closure_VFP.
1000 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1001
efe2a4b7
PB
10022012-04-02 Peter Bergner <bergner@vnet.ibm.com>
1003
1004 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
1005 Silence casting pointer to integer of different size warning.
1006 Delete goto to previously deleted label.
1007 (ffi_call): Silence possibly undefined warning.
1008 (ffi_closure_helper_SYSV): Declare variable type.
1009
b4b575ce
AG
10102012-04-02 Peter Rosin <peda@lysator.liu.se>
1011
1012 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
1013 value in the Intel version as is already done for the AT&T version.
1014 (ffi_closure_SYSV): Likewise.
1015 (ffi_closure_raw_SYSV): Likewise.
1016 (ffi_closure_STDCALL): Likewise.
1017
60f9021b
KK
10182012-03-13 Kaz Kojima <kkojima@gcc.gnu.org>
1019
1020 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1021 just return FFI_BAD_ABI when things are wrong.
1022 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1023
e5552514
DE
10242012-03-09 David Edelsohn <dje.gcc@gmail.com>
1025
1026 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1027 change to return value of ffi_closure_helper_DARWIN and load type
1028 from return type.
1029
34fa7690 10302012-03-03 H.J. Lu <hongjiu.lu@intel.com>
2c2a780f 1031
34fa7690
AG
1032 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1033 long.
1034 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1035 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1036 first.
1037
1038 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1039 (ffi_arg): Set to unsigned long long for x32.
1040 (ffi_sarg): Set to long long for x32.
2c2a780f 1041
34fa7690 10422012-03-03 H.J. Lu <hongjiu.lu@intel.com>
ffc81ae2 1043
34fa7690 1044 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
ffc81ae2 1045
34fa7690 10462012-03-03 Andoni Morales Alastruey <ylatuya@gmail.com>
d86c2d94 1047
34fa7690
AG
1048 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1049 windows-like hosts.
1050 * configure: Rebuilt.
d86c2d94 1051
6adb7308
AG
10522012-02-27 Mikael Pettersson <mikpe@it.uu.se>
1053
1054 PR libffi/52223
1055 * Makefile.am (FLAGS_TO_PASS): Define.
1056 * Makefile.in: Regenerate.
1057
34fa7690 10582012-02-23 Anthony Green <green@moxielogic.com>
a0dfc1fe 1059
34fa7690
AG
1060 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1061 directly.
a0dfc1fe 1062
6adb7308
AG
10632012-02-23 Kai Tietz <ktietz@redhat.com>
1064
1065 PR libffi/52221
1066 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1067 prototype.
1068 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1069 thiscall-convention.
1070 (ffi_raw_call): Use ffi_prep_args_raw.
1071 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1072 implementation for stub.
1073
1e98f62d
KT
10742012-02-10 Kai Tietz <ktietz@redhat.com>
1075
1076 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1077 windows target.
1078 * configure: Regenerated.
34fa7690 1079
893f4301
KT
10802012-02-08 Kai Tietz <ktietz@redhat.com>
1081
1082 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1083 also FFI_THISCALL.
1084 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1085 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1086 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1087 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1088 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1089 for thiscall-calling convention.
1090 * testsuite/libffi.call/closure_thiscall.c: New test.
1091
9b850dd9
KT
10922012-01-28 Kai Tietz <ktietz@redhat.com>
1093
1094 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1095 argument to prototype for specify calling-convention.
1096 (ffi_call): Add support for stdcall/thiscall convention.
1097 (ffi_prep_args): Likewise.
1098 (ffi_raw_call): Likewise.
1099 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1100 FFI_FASTCALL.
1101 * src/x86/win32.S (_ffi_call_win32): Add support for
1102 fastcall/thiscall calling-convention calls.
1103 * testsuite/libffi.call/fastthis1_win32.c: New test.
1104 * testsuite/libffi.call/fastthis2_win32.c: New test.
1105 * testsuite/libffi.call/fastthis3_win32.c: New test.
1106 * testsuite/libffi.call/strlen2_win32.c: New test.
1107 * testsuite/libffi.call/many2_win32.c: New test.
1108 * testsuite/libffi.call/struct1_win32.c: New test.
1109 * testsuite/libffi.call/struct2_win32.c: New test.
1110
34fa7690
AG
11112012-01-23 Uros Bizjak <ubizjak@gmail.com>
1112
1113 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1114
11152012-01-23 Anthony Green <green@moxielogic.com>
1116 Chris Young <cdyoung@ntlworld.com>
1117
1118 * configure.ac: Add Amiga support.
1119 * configure: Rebuilt.
1120
11212012-01-23 Dmitry Nadezhin <dmitry.nadezhin@gmail.com>
1122
1123 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1124
c1d5e723
AS
11252012-01-23 Andreas Schwab <schwab@linux-m68k.org>
1126
1127 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1128 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1129
01ddefeb
JJ
11302012-01-19 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR rtl-optimization/48496
1133 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1134
51a9af17
RO
11352012-01-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1136
1137 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1138 * configure: Regenerate.
1139
3b21983d
AP
11402011-12-07 Andrew Pinski <apinski@cavium.com>
1141
69090788 1142 PR libffi/50051
3b21983d
AP
1143 * src/mips/n32.S: Add ".set mips4".
1144
c6084f68
AT
11452011-11-21 Andreas Tobler <andreast@fgznet.ch>
1146
1147 * configure: Regenerate.
1148
34fa7690
AG
11492011-11-12 David Gilbert <david.gilbert@linaro.org>
1150
1151 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1152 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1153 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1154 src/cris/ffi.c, src/prep_cif.c,
1155 testsuite/libffi.call/cls_double_va.c,
1156 testsuite/libffi.call/cls_longdouble_va.c,
1157 testsuite/libffi.call/float_va.c: Many changes to support variadic
1158 function calls.
1159
11602011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1161
1162 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1163 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1164 softfloat powerpc variants.
1165
11662011-11-12 Petr Salinger <Petr.Salinger@seznam.cz>
1167
1168 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1169 * configure: Rebuilt.
1170
11712011-11-12 Timothy Wall <twall@users.sf.net>
1172
1173 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1174 alignment of 4 for wince on ARM.
1175
11762011-11-12 Kyle Moffett <Kyle.D.Moffett@boeing.com>
1177 Anthony Green <green@moxielogic.com>
1178
1179 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1180 instructions (not available on some cores, like the PPC440).
1181
11822011-11-12 Kimura Wataru <kimuraw@i.nifty.jp>
1183
1184 * m4/ax_enable_builddir: Change from string comparison to numeric
1185 comparison for wc output.
1186 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1187 X 10.7.
1188 * configure: Rebuilt.
1189
11902011-11-12 Anthony Green <green@moxielogic.com>
1191
1192 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1193 files with debug info.
1194 * Makefile.in: Rebuilt.
1195
11962011-11-12 Jasper Lievisse Adriaanse <jasper@openbsd.org>
1197
1198 * README: Update list of supported OpenBSD systems.
1199
12002011-11-12 Anthony Green <green@moxielogic.com>
1201
1202 * libtool-version: Update.
1203 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1204 FFI_DEBUG.
1205 (libffi_la_SOURCES): Remove src/debug.c
1206 (EXTRA_DIST): Add src/debug.c
1207 * Makefile.in: Rebuilt.
1208 * README: Update for 3.0.11.
1209
8b01bdb0
RH
12102011-11-10 Richard Henderson <rth@redhat.com>
1211
1212 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1213 * configure, aclocal.m4: Rebuild.
1214
b90c2c4c
IS
12152011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1216
1217 PR libffi/49594
1218 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1219 helper reference track the architecture pointer size.
1220
4ac9cf2b
AH
12212011-08-25 Andrew Haley <aph@redhat.com>
1222
1223 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1224 instructions.
1225 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
1226
4d4a9b72
AH
12272011-07-11 Andrew Haley <aph@redhat.com>
1228
3521ba8b 1229 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
4d4a9b72 1230
902233e0
RO
12312011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232
1233 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1234 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1235
2ac88e57
RO
12362011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237
1238 PR libffi/46660
1239 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1240 mips-sgi-irix6*.
1241 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1242
652de9ff
RO
12432011-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1244
1245 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1246 PRId8 instead of %hhu, %hhd.
1247 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1248 PRIu8): Define.
1249 [__sgi__] (PRId8, PRIu8): Define.
1250
9d9305ea
RO
12512011-04-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1252
1253 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1254 Define.
1255 Use them to handle ELF vs. ECOFF differences.
1256 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1257
34fa7690
AG
12582011-03-30 Timothy Wall <twall@users.sf.net>
1259
1260 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1261 * src/powerpc/darwin_closure.S: ditto.
1262
12632011-02-25 Anthony Green <green@moxielogic.com>
1264
1265 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1266 32-bit ABIs.
1267
12682011-02-15 Anthony Green <green@moxielogic.com>
1269
1270 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1271 * configure: Rebuilt.
1272
029c8f3e
RW
12732011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1274
1275 * configure: Regenerate.
1276
34fa7690
AG
12772011-02-13 Anthony Green <green@moxielogic.com>
1278
1279 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1280 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1281 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1282
1283 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1284 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1285
1286 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1287 just return FFI_BAD_ABI when things are wrong.
1288 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1289 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1290 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1291 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1292 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1293
12942011-02-11 Anthony Green <green@moxielogic.com>
1295
1296 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1297 just return FFI_BAD_ABI when things are wrong.
1298
30255340 12992011-02-11 Eric Botcazou <ebotcazou@adacore.com>
6adb7308
AG
1300
1301 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1302
34fa7690
AG
13032011-02-09 Stuart Shelton <srcshelton@gmail.com>
1304
1305 http://bugs.gentoo.org/show_bug.cgi?id=286911
1306 * src/mips/ffitarget.h: Clean up error messages.
1307 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1308 ffi_raw*.
1309 * include/ffi.h.in: Add pragma for SGI compiler.
1310
13112011-02-09 Anthony Green <green@moxielogic.com>
1312
1313 * configure.ac: Add powerpc64-*-darwin* support.
1314
13152011-02-09 Anthony Green <green@moxielogic.com>
1316
1317 * README: Mention Interix.
1318
13192011-02-09 Jonathan Callen <abcd@gentoo.org>
1320
1321 * configure.ac: Add Interix to win32/cygwin/mingw case.
1322 * configure: Ditto.
1323 * src/closures.c: Treat Interix like Cygwin, instead of as a
1324 generic win32.
1325
13262011-02-09 Anthony Green <green@moxielogic.com>
1327
1328 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1329 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1330 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1331 (ffi_prep_closure_loc): Check for bad ABI.
1332 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1333 (initialize_aggregate): Check for bad types.
1334
13352011-02-09 Landon Fuller <landonf@plausible.coop>
1336
1337 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1338 src/arm/trampoline.S.
1339 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1340 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1341 * src/arm/ffi.c (ffi_trampoline_table)
1342 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1343 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1344 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1345 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1346 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1347 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1348 separately.
1349 * src/arm/sysv.S: Handle Apple iOS host.
1350 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
1351 * build-ios.sh: New file.
1352 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
1353 * README: Mention ARM iOS.
1354
13552011-02-08 Oren Held <orenhe@il.ibm.com>
1356
1357 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1358 redefinition of mallinfo on HP-UX.
1359
13602011-02-08 Ginn Chen <ginn.chen@oracle.com>
1361
1362 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
1363 aggregate return ABI. Flush cache.
1364 (ffi_prep_closure_loc): Flush cache.
1365
13662011-02-11 Anthony Green <green@moxielogic.com>
1367
1368 From Tom Honermann <tom.honermann@oracle.com>:
1369 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1370 AIX. Declare .ffi_prep_args. Insert nops after branch
1371 instructions so that the AIX linker can insert TOC reload
1372 instructions.
1373 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1374
13752011-02-08 Ed <ed@kdtc.net>
1376
1377 * src/powerpc/asm.h: Fix grammar nit in comment.
1378
13792011-02-08 Uli Link <ul.mcamafia@linkitup.de>
1380
1381 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1382
1bbb4741
RO
13832011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1384
1385 PR libffi/46661
1386 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1387 uintptr_t first.
1388 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1389
34fa7690
AG
13902011-02-08 Rafael Avila de Espindola <respindola@mozilla.com>
1391
1392 * configure.ac: Fix x86 test for pc related relocs.
1393 * configure: Rebuilt.
1394
899fb23d
JS
13952011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1396
1397 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1398 Handle case when CPU variant does not have long double support.
1399 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1400 and cores with soft floating point.
1401
38db4d09
JS
14022011-02-07 Joel Sherrill <joel.sherrill@oarcorp.com>
1403
1404 * configure.ac: Add mips*-*-rtems* support.
1405 * configure: Regenerate.
1406 * src/mips/ffitarget.h: Ensure needed constants are available
1407 for targets which do not have sgidefs.h.
1408
214dab66
DK
14092011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1410
1411 PR target/40125
1412 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1413 * configure: Regenerate.
1414
3a9f56e8
IS
14152010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1416
1417 PR libffi/29152
1418 PR libffi/42378
1419 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1420 update comments.
1421 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1422 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1423 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1424 update comments.
1425 * src/powerpc/ffi_darwin.c: Likewise.
38be4072 1426
b62305b0
RO
14272010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1428
1429 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1430 backslashes.
1431 (libffi_cv_as_string_pseudo_op): Likewise.
1432 * configure: Regenerate.
1433
fac68065
CLT
14342010-12-03 Chung-Lin Tang <cltang@codesourcery.com>
1435
1436 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1437 (ffi_closure_VFP): Same.
1438 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1439 directive.
1440
ce9315a9
RO
14412010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1442
1443 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1444 (PRIuPTR): Define.
1445
e12bcbf4
RH
14462010-11-29 Richard Henderson <rth@redhat.com>
1447 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1448
1449 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1450 (.eh_frame): Use FDE_ENCODING.
1451 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1452
34fa7690
AG
14532010-11-22 Jacek Caban <jacek@codeweavers.com>
1454
1455 * configure.ac: Check for symbol underscores on mingw-w64.
1456 * configure: Rebuilt.
1457 * src/x86/win64.S: Correctly access extern symbols in respect to
1458 underscores.
1459
ed2a97eb
RO
14602010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1461
1462 * testsuite/lib/libffi-dg.exp: Rename ...
1463 * testsuite/lib/libffi.exp: ... to this.
1464 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1465 * libffi/testsuite/libffi.special/special.exp: Likewise.
1466
46e0720d
CLT
14672010-10-28 Chung-Lin Tang <cltang@codesourcery.com>
1468
1469 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1470 code, new parameter, and return value. Update comments.
1471 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1472 call to layout_vfp_args().
1473 (ffi_call_SYSV): Update declaration.
1474 (ffi_call_VFP): New declaration.
1475 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1476 when ABI is FFI_VFP.
1477 (ffi_closure_VFP): New declaration.
1478 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1479 ffi_prep_incoming_args_SYSV().
1480 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1481 case handling.
1482 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1483 construction under VFP hard-float.
1484 (rec_vfp_type_p): New function.
1485 (vfp_type_p): Same.
1486 (place_vfp_arg): Same.
1487 (layout_vfp_args): Same.
1488 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1489 based on __ARM_PCS_VFP.
1490 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1491 fields.
1492 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1493 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1494 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1495 direct call. Move function pointer load upwards.
1496 (ffi_call_VFP): New function.
1497 (ffi_closure_VFP): Same.
1498
1499 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1500 (dg-skip-if): New function.
1501 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1502 and compiler options include -mfloat-abi=hard.
1503 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1504
731fc5f0
JJ
15052010-10-01 Jakub Jelinek <jakub@redhat.com>
1506
1507 PR libffi/45677
1508 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1509 a multiple of 8.
1510 * testsuite/libffi.call/many2.c: New test.
1511
2cd86866
MW
15122010-08-20 Mark Wielaard <mjw@redhat.com>
1513
1514 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1515 returns NULL.
1516
87d072e0
AT
15172010-08-09 Andreas Tobler <andreast@fgznet.ch>
1518
1519 * configure.ac: Add target powerpc64-*-freebsd*.
1520 * configure: Regenerate.
1521 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1522 -mlong-double-128 only to linux targets.
1523 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1524 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1525 * testsuite/libffi.call/huge_struct.c: Likewise.
1526
34fa7690
AG
15272010-08-05 Dan Witte <dwitte@mozilla.com>
1528
3521ba8b
AM
1529 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1530 debug CRT when --enable-debug is given.
1531 * configure.ac: Define it.
1532 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
34fa7690
AG
1533
15342010-08-04 Dan Witte <dwitte@mozilla.com>
1535
1536 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1537 platforms.
1538 * src/x86/ffi.c: Remove redundant ifdef checks.
1539 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1540 for X86_ANY so return value space doesn't get added twice.
1541
15422010-08-03 Neil Rashbrooke <neil@parkwaycc.co.uk>
1543
1544 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1545
15462010-07-22 Dan Witte <dwitte@mozilla.com>
1547
1548 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1549 * src/prep_cif.c: Fix ABI assertion.
3521ba8b 1550 * src/cris/ffi.c: Ditto.
34fa7690 1551
07b6d9ef
EP
15522010-07-10 Evan Phoenix <evan@fallingsnow.net>
1553
1554 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1555
3d420bdf
DH
15562010-07-07 Dan Horák <dan@danny.cz>
1557
1558 * include/ffi.h.in: Protect #define with #ifndef.
1559 * src/powerpc/ffitarget.h: Ditto.
1560 * src/s390/ffitarget.h: Ditto.
1561 * src/sparc/ffitarget.h: Ditto.
1562
4138b429
NR
15632010-07-07 Neil Roberts <neil@linux.intel.com>
1564
1565 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1566 16-bytes.
1567
f0ee5e3e
JJ
15682010-07-02 Jakub Jelinek <jakub@redhat.com>
1569
1570 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1571 * Makefile.in: Regenerated.
1572
d416abb4
RO
15732010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574
1575 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1576 output, too.
1577 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1578 (libffi_cv_as_string_pseudo_op): Check for .string.
1579 * configure: Regenerate.
1580 * fficonfig.h.in: Regenerate.
1581 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1582
34fa7690
AG
15832010-05-11 Dan Witte <dwitte@mozilla.com>
1584
1585 * doc/libffi.tex: Document previous change.
1586
15872010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
1588
1589 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1590
0af23729
MK
15912010-05-05 Michael Kohler <michaelkohler@live.com>
1592
1593 * src/dlmalloc.c (dlfree): Fix spelling.
1594 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1595 * configure.ac: Ditto.
1596 * configure: Rebuilt.
1597
7862d496
DW
15982010-04-13 Dan Witte <dwitte@mozilla.com>
1599
1600 * msvcc.sh: Build with -W3 instead of -Wall.
1601 * src/powerpc/ffi_darwin.c: Remove build warnings.
1602 * src/x86/ffi.c: Ditto.
1603 * src/x86/ffitarget.h: Ditto.
1604
49f6cd1f
DW
16052010-04-12 Dan Witte <dwitte@mozilla.com>
1606 Walter Meinl <wuno@lsvw.de>
1607
1608 * configure.ac: Add OS/2 support.
1609 * configure: Rebuilt.
1610 * src/closures.c: Ditto.
1611 * src/dlmalloc.c: Ditto.
1612 * src/x86/win32.S: Ditto.
1613
60d3aec4
JJ
16142010-04-07 Jakub Jelinek <jakub@redhat.com>
1615
be94d007 1616 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
60d3aec4 1617
4d9e8446
RW
16182010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1619
1620 * Makefile.in: Regenerate.
1621 * aclocal.m4: Regenerate.
1622 * include/Makefile.in: Regenerate.
1623 * man/Makefile.in: Regenerate.
1624 * testsuite/Makefile.in: Regenerate.
1625
34fa7690
AG
16262010-03-30 Dan Witte <dwitte@mozilla.com>
1627
1628 * msvcc.sh: Disable build warnings.
1629 * README (tested): Clarify windows build procedure.
1630
f4b130bb
RO
16312010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632
1633 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1634 * configure: Regenerate.
1635 * fficonfig.h.in: Regenerate.
1636 * libffi/src/x86/unix64.S (.eh_frame)
1637 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1638
4736718a
MK
16392010-03-14 Matthias Klose <doko@ubuntu.com>
1640
1641 * src/x86/ffi64.c: Fix typo in comment.
1642 * src/x86/ffi.c: Use /* ... */ comment style.
1643
22faf004
RO
16442010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1645
1646 * doc/libffi.texi (The Closure API): Fix typo.
1647 * doc/libffi.info: Remove.
1648
694d3cfd
MK
16492010-02-15 Matthias Klose <doko@ubuntu.com>
1650
1651 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1652 __ARM_ARCH_7EM__.
1653
3ac097a5
AG
16542010-01-15 Anthony Green <green@redhat.com>
1655
1656 * README: Add notes on building with Microsoft Visual C++.
1657
16582010-01-15 Daniel Witte <dwitte@mozilla.com>
1659
1660 * msvcc.sh: New file.
1661
1662 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1663 * src/x86/ffi.c: Tweak function declaration and remove excess
1664 parens.
1665 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1666 ffi_closure.
1667
1668 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1669 function ffi_call_win32 on X86_WIN32.
1670 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1671 (ffi_call_STDCALL): Remove.
1672
1673 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1674 to ffi_prep_cif_machdep for x86.
1675 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1676
fc28e435
OK
16772010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
1678
1679 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
38be4072 1680 Sun Studio compiler compatibility.
fc28e435 1681
f2e994f3
CI
16822010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
1683
1684 * doc/libffi.texi: Add closure example.
1685
ec168029
RO
16862010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1687
1688 PR libffi/40701
1689 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1690 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1691 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1692 alpha*-dec-osf*.
1693 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1694 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1695 * testsuite/libffi.call/return_ll1.c: Likewise.
1696 * testsuite/libffi.call/stret_medium2.c: Likewise.
1697 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1698 MAP_FAILED to char *.
1699
86d1b9d1
RO
17002010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1701
1702 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1703
78542dee
AG
17042009-12-31 Anthony Green <green@redhat.com>
1705
1706 * README: Update for libffi 3.0.9.
1707
50117ecb
MK
17082009-12-27 Matthias Klose <doko@ubuntu.com>
1709
1710 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1711 appropriate.
1712 * configure: Rebuilt.
1713
bc472c00
AG
17142009-12-26 Anthony Green <green@redhat.com>
1715
1716 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1717 avr32*-*-*.
1718 * testsuite/libffi.call/cls_double_va.c: Ditto.
1719
d7e9538e
AT
17202009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1721
1722 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1723 and inttypes.h.
1724 * testsuite/libffi.special/unwindtest.cc: Ditto.
1725
cb14fcb8
AT
17262009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1727
1728 * configure.ac: Add amd64-*-openbsd*.
1729 * configure: Rebuilt.
1730 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1731 openbsd programs with -lpthread.
1732
1098bcf8
AG
17332009-12-26 Anthony Green <green@redhat.com>
1734
1735 * testsuite/libffi.call/cls_double_va.c,
1736 testsuite/libffi.call/cls_longdouble.c,
1737 testsuite/libffi.call/cls_longdouble_va.c,
1738 testsuite/libffi.call/cls_pointer.c,
1739 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1740 mips*-*-* and arm*-*-*.
1741 * testsuite/libffi.call/cls_align_longdouble_split.c,
1742 testsuite/libffi.call/cls_align_longdouble_split2.c,
1743 testsuite/libffi.call/stret_medium2.c,
1744 testsuite/libffi.call/stret_medium.c,
1745 testsuite/libffi.call/stret_large.c,
1746 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1747
a761df3d
AG
17482009-12-31 Kay Tietz <ktietz70@googlemail.com>
1749
1750 * testsuite/libffi.call/ffitest.h,
1751 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1752 definitions.
1753
17542009-12-31 Carlo Bramini <carlo.bramix@libero.it>
1755
1756 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1757 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1758 * configure: Rebuilt.
1759 * Makefile.in: Rebuilt.
1760
493278be 17612009-12-31 Anthony Green <green@redhat.com>
3d3b561f 1762 Blake Chaffin.
493278be
AG
1763
1764 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1765 Chaffin @ Apple.
1766
72b79d39
DE
17672009-12-28 David Edelsohn <edelsohn@gnu.org>
1768
1769 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1770 local variables.
1771 (aix_adjust_aggregate_sizes): New function.
1772 (ffi_prep_cif_machdep): Call it.
1773
99fba2c4
AT
17742009-12-26 Andreas Tobler <a.tobler@schweiz.org>
1775
1776 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1777 * configure: Regenerate.
1778 * fficonfig.h.in: Likewise.
1779 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1780 Solaris/x86.
1781
302486f4
AS
17822009-12-26 Andreas Schwab <schwab@linux-m68k.org>
1783
1784 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1785 when a float arguments is passed in memory.
1786 (ffi_closure_helper_SYSV): Mark general registers as used up when
1787 a 64bit or soft-float long double argument is passed in memory.
1788
b8f38e89 17892009-12-25 Matthias Klose <doko@ubuntu.com>
2c57b161
MK
1790
1791 * man/ffi_call.3: Fix #include in examples.
1792 * doc/libffi.texi: Add dircategory.
1793
c4205f77
FE
17942009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
1795
1796 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1797 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1798 IRIX MIPSPro c99.
1799 * include/ffi_common.h: Added '__sgi' define to non
1800 '__attribute__((__mode__()))' integer typedefs.
302486f4 1801 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
c4205f77
FE
1802 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1803 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1804 FFI_LONGDOUBLE support and alignment(N32 only).
1805 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1806 fixed non '__attribute__((__mode__()))' integer typedefs.
1807 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1808 since they are Linux/GNU Assembler specific.
1809
124f60ab
BS
18102009-12-25 Bradley Smith <brad@brad-smith.co.uk>
1811
1812 * configure.ac, Makefile.am, src/avr32/ffi.c,
1813 src/avr32/ffitarget.h,
1814 src/avr32/sysv.S: Add AVR32 port.
1815 * configure, Makefile.in: Rebuilt.
1816
938a483f
AT
18172009-12-21 Andreas Tobler <a.tobler@schweiz.org>
1818
1819 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1820 * configure: Regenerate.
1821
2516c7cd
JDA
18222009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1823
1824 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1825
f93a40ea
JDA
18262009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1827
1828 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1829 type on HP-UX.
1830
6adb7308
AG
18312012-02-13 Kai Tietz <ktietz@redhat.com>
1832
1833 PR libffi/52221
1834 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1835 support for X86_WIN32.
1836 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1837
fb01d970
EB
18382009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1841 double' arguments.
1842
2ea54b81
EB
18432009-12-11 Eric Botcazou <ebotcazou@adacore.com>
1844
1845 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1846
dcb00f2e
RO
18472009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1848
1849 PR libffi/40700
1850 * src/closures.c [X86_64 && __sun__ && __svr4__]
1851 (FFI_MMAP_EXEC_WRIT): Define.
1852
6c6859a1
DD
18532009-12-08 David Daney <ddaney@caviumnetworks.com>
1854
1855 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1856 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1857 * testsuite/libffi.call/stret_large.c: Same.
1858 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1859 * testsuite/libffi.call/stret_large2.c: Same.
1860 * testsuite/libffi.call/stret_medium2.c: Same.
1861
9e7e65a0
DE
18622009-12-07 David Edelsohn <edelsohn@gnu.org>
1863
1864 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1865 typo.
1866
5d7fc941
DE
18672009-12-05 David Edelsohn <edelsohn@gnu.org>
1868
1869 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1870 code.
9e7e65a0 1871 * src/powerpc/aix_closure.S: Same.
6c6859a1 1872
43e02a8a
RW
18732009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1874
1875 * Makefile.in: Regenerate.
1876 * configure: Regenerate.
1877 * include/Makefile.in: Regenerate.
1878 * man/Makefile.in: Regenerate.
1879 * testsuite/Makefile.in: Regenerate.
1880
2f2d7386
DE
18812009-12-04 David Edelsohn <edelsohn@gnu.org>
1882
1883 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
302486f4 1884 linux64_closure.S.
6c6859a1 1885
6078f50a
UB
18862009-12-04 Uros Bizjak <ubizjak@gmail.com>
1887
1888 PR libffi/41908
1889 * src/x86/ffi64.c (classify_argument): Update from
1890 gcc/config/i386/i386.c.
1891 (ffi_closure_unix64_inner): Do not use the address of two consecutive
1892 SSE registers directly.
1893 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
1894 for x86_64 linux targets.
1895
0c552622
DE
18962009-12-04 David Edelsohn <edelsohn@gnu.org>
1897
1898 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
1899 pfr for long double split between fpr13 and stack.
1900
afb5e622
DE
19012009-12-03 David Edelsohn <edelsohn@gnu.org>
1902
1903 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
1904 fparg_count twice for long double.
1905
be311914
DE
19062009-12-03 David Edelsohn <edelsohn@gnu.org>
1907
1908 PR libffi/42243
1909 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
1910
a27c4040
UB
19112009-12-03 Uros Bizjak <ubizjak@gmail.com>
1912
1913 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
ddf6c187 1914 Remove xfails for x86 linux targets.
a27c4040 1915
7837c247
DE
19162009-12-02 David Edelsohn <edelsohn@gnu.org>
1917
1918 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
1919 case.
1920
19212009-12-01 David Edelsohn <edelsohn@gnu.org>
6d518d3b
DE
1922
1923 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
1924 register usage. Call ffi_prep_args directly. Add long double
1925 return value support.
1926 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
1927 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
1928 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
1929 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
1930 mode.
1931 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
1932 into case.
1933 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
1934 Allocate result area between params and FPRs.
1935
5751cf6f
DE
19362009-11-30 David Edelsohn <edelsohn@gnu.org>
1937
1938 PR target/35484
1939 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
1940 AIX64.
1941 * src/powerpc/aix.S: Implement AIX64 version.
1942 * src/powerpc/aix_closure.S: Implement AIX64 version.
1943 (ffi_closure_ASM): Use extsb, lha and displament addresses.
1944 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
1945 support.
1946 (ffi_prep_cif_machdep): Same.
1947 (ffi_call): Same.
1948 (ffi_closure_helper_DARWIN): Same.
1949
2265f646
AT
19502009-11-02 Andreas Tobler <a.tobler@schweiz.org>
1951
1952 PR libffi/41908
1953 * testsuite/libffi.call/testclosure.c: New test.
1954
ef6ed66d
KT
19552009-09-28 Kai Tietz <kai.tietz@onevision.com>
1956
1957 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
1958 assembly version use of ___chkstk.
1959
29d1370a
MK
19602009-09-23 Matthias Klose <doko@ubuntu.com>
1961
1962 PR libffi/40242, PR libffi/41443
1963 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
1964 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
1965 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
1966 Change the conditionals to __SOFTFP__ || __ARM_EABI__
1967 for -mfloat-abi=softfp to work.
1968
987ce557
LR
19692009-09-17 Loren J. Rittle <ljrittle@acm.org>
1970
1971 PR testsuite/32843 (strikes again)
1972 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
1973 enable proper extension on char and short.
1974
5cbf8c8d
DD
19752009-09-15 David Daney <ddaney@caviumnetworks.com>
1976
1977 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
1978 handling for FFI_TYPE_POINTER.
1979 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
1980 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
1981 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
1982 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
1983 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
1984 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
1985 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
1986 structure and pointer returns.
1987 (ffi_closure_N32): Add handling for pointer returns.
1988 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
1989 calc_n32_return_struct_flags): Handle soft-float.
1990 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
1991 (ffi_call_N32): Declare proper argument types.
1992 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
1993 soft-float.
1994
df58e648
RW
19952009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1996
1997 * configure.ac (AC_PREREQ): Bump to 2.64.
1998
5213506e
RW
19992009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2000
70fa0efa
RW
2001 * Makefile.am (install-html, install-pdf): Remove.
2002 * Makefile.in: Regenerate.
2003
5213506e
RW
2004 * Makefile.in: Regenerate.
2005 * aclocal.m4: Regenerate.
2006 * configure: Regenerate.
2007 * fficonfig.h.in: Regenerate.
2008 * include/Makefile.in: Regenerate.
2009 * man/Makefile.in: Regenerate.
2010 * testsuite/Makefile.in: Regenerate.
2011
34fa7690
AG
20122011-08-22 Jasper Lievisse Adriaanse <jasper@openbsd.org>
2013
2014 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2015 * configure: Rebuilt.
2016
1b3b24c2
RW
20172009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2018
2019 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2020
723512ba
DK
20212009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
2022
2023 PR libffi/40807
2024 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2025 return types for X86_WIN32.
2026 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2027 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2028 _ffi_closure_STDCALL): Likewise.
2029
2030 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2031 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2032
33cde516
RS
20332009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2034
2035 PR testsuite/40699
2036 PR testsuite/40707
2037 PR testsuite/40709
2038 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2039 2009-06-30 commits.
2040
edd3a61c
RS
20412009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
2042
2043 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2044 to "" before adding paths. (This reinstates an assignment that
2045 was removed by my 2009-06-30 commit, but changes the initial
2046 value from "." to "".)
2047
33d1a550
L
20482009-07-01 H.J. Lu <hongjiu.lu@intel.com>
2049
2050 PR testsuite/40601
2051 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2052 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2053 empty.
2054
b30bfd40
RS
20552009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2056
2057 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2058 to ld_library_path. Use add_path. Add just find_libgcc_s
2059 to ld_library_path, not every libgcc multilib directory.
2060
6975f17f
WL
20612009-06-16 Wim Lewis <wiml@hhhh.org>
2062
2063 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2064 supposed to be callee-saved.
2065 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2066 return buffer for odd-size structs.
2067
7bbcc286
AT
20682009-06-16 Andreas Tobler <a.tobler@schweiz.org>
2069
2070 PR libffi/40444
2071 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2072 allow_stack_execute for Darwin.
2073
fe673cc9
AH
20742009-06-16 Andrew Haley <aph@redhat.com>
2075
2076 * configure.ac (TARGETDIR): Add missing blank lines.
2077 * configure: Regenerate.
2078
3bc462c2
AH
20792009-06-16 Andrew Haley <aph@redhat.com>
2080
2081 * testsuite/libffi.call/cls_align_sint64.c,
2082 testsuite/libffi.call/cls_align_uint64.c,
2083 testsuite/libffi.call/cls_longdouble_va.c,
2084 testsuite/libffi.call/cls_ulonglong.c,
2085 testsuite/libffi.call/return_ll1.c,
2086 testsuite/libffi.call/stret_medium2.c: Fix printf format
2087 specifiers.
2088 * testsuite/libffi.call/ffitest.h,
2089 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2090
081b044b
AH
20912009-06-15 Andrew Haley <aph@redhat.com>
2092
2093 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2094 * testsuite/libffi.call/err_bad_abi.c: Likewise.
302486f4 2095
062b8279
AH
20962009-06-12 Andrew Haley <aph@redhat.com>
2097
2098 * Makefile.am: Remove info_TEXINFOS.
2099
21002009-06-12 Andrew Haley <aph@redhat.com>
2101
2102 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2103 testsuite/libffi.call/cls_align_uint64.c,
2104 testsuite/libffi.call/cls_ulonglong.c,
2105 testsuite/libffi.call/return_ll1.c,
2106 testsuite/libffi.call/stret_medium2.c: Fix printf format
2107 specifiers.
2108 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2109
21102009-06-11 Timothy Wall <twall@users.sf.net>
2111
2112 * Makefile.am,
302486f4
AS
2113 configure.ac,
2114 include/ffi.h.in,
2115 include/ffi_common.h,
2116 src/closures.c,
2117 src/dlmalloc.c,
2118 src/x86/ffi.c,
2119 src/x86/ffitarget.h,
2120 src/x86/win64.S (new),
062b8279 2121 README: Added win64 support (mingw or MSVC)
302486f4
AS
2122 * Makefile.in,
2123 include/Makefile.in,
2124 man/Makefile.in,
2125 testsuite/Makefile.in,
2126 configure,
2127 aclocal.m4: Regenerated
2128 * ltcf-c.sh: properly escape cygwin/w32 path
2129 * man/ffi_call.3: Clarify size requirements for return value.
2130 * src/x86/ffi64.c: Fix filename in comment.
2131 * src/x86/win32.S: Remove unused extern.
2132
2133 * testsuite/libffi.call/closure_fn0.c,
2134 testsuite/libffi.call/closure_fn1.c,
2135 testsuite/libffi.call/closure_fn2.c,
2136 testsuite/libffi.call/closure_fn3.c,
2137 testsuite/libffi.call/closure_fn4.c,
2138 testsuite/libffi.call/closure_fn5.c,
2139 testsuite/libffi.call/closure_fn6.c,
062b8279
AH
2140 testsuite/libffi.call/closure_stdcall.c,
2141 testsuite/libffi.call/cls_12byte.c,
2142 testsuite/libffi.call/cls_16byte.c,
2143 testsuite/libffi.call/cls_18byte.c,
2144 testsuite/libffi.call/cls_19byte.c,
2145 testsuite/libffi.call/cls_1_1byte.c,
2146 testsuite/libffi.call/cls_20byte.c,
2147 testsuite/libffi.call/cls_20byte1.c,
2148 testsuite/libffi.call/cls_24byte.c,
2149 testsuite/libffi.call/cls_2byte.c,
2150 testsuite/libffi.call/cls_3_1byte.c,
2151 testsuite/libffi.call/cls_3byte1.c,
3521ba8b
AM
2152 testsuite/libffi.call/cls_3byte2.c,
2153 testsuite/libffi.call/cls_4_1byte.c,
2154 testsuite/libffi.call/cls_4byte.c,
2155 testsuite/libffi.call/cls_5_1_byte.c,
2156 testsuite/libffi.call/cls_5byte.c,
2157 testsuite/libffi.call/cls_64byte.c,
2158 testsuite/libffi.call/cls_6_1_byte.c,
2159 testsuite/libffi.call/cls_6byte.c,
2160 testsuite/libffi.call/cls_7_1_byte.c,
2161 testsuite/libffi.call/cls_7byte.c,
2162 testsuite/libffi.call/cls_8byte.c,
2163 testsuite/libffi.call/cls_9byte1.c,
2164 testsuite/libffi.call/cls_9byte2.c,
2165 testsuite/libffi.call/cls_align_double.c,
2166 testsuite/libffi.call/cls_align_float.c,
2167 testsuite/libffi.call/cls_align_longdouble.c,
2168 testsuite/libffi.call/cls_align_longdouble_split.c,
2169 testsuite/libffi.call/cls_align_longdouble_split2.c,
2170 testsuite/libffi.call/cls_align_pointer.c,
2171 testsuite/libffi.call/cls_align_sint16.c,
2172 testsuite/libffi.call/cls_align_sint32.c,
2173 testsuite/libffi.call/cls_align_sint64.c,
2174 testsuite/libffi.call/cls_align_uint16.c,
2175 testsuite/libffi.call/cls_align_uint32.c,
2176 testsuite/libffi.call/cls_align_uint64.c,
2177 testsuite/libffi.call/cls_dbls_struct.c,
2178 testsuite/libffi.call/cls_double.c,
2179 testsuite/libffi.call/cls_double_va.c,
2180 testsuite/libffi.call/cls_float.c,
2181 testsuite/libffi.call/cls_longdouble.c,
2182 testsuite/libffi.call/cls_longdouble_va.c,
2183 testsuite/libffi.call/cls_multi_schar.c,
2184 testsuite/libffi.call/cls_multi_sshort.c,
2185 testsuite/libffi.call/cls_multi_sshortchar.c,
2186 testsuite/libffi.call/cls_multi_uchar.c,
2187 testsuite/libffi.call/cls_multi_ushort.c,
2188 testsuite/libffi.call/cls_multi_ushortchar.c,
2189 testsuite/libffi.call/cls_pointer.c,
2190 testsuite/libffi.call/cls_pointer_stack.c,
2191 testsuite/libffi.call/cls_schar.c,
2192 testsuite/libffi.call/cls_sint.c,
2193 testsuite/libffi.call/cls_sshort.c,
2194 testsuite/libffi.call/cls_uchar.c,
2195 testsuite/libffi.call/cls_uint.c,
2196 testsuite/libffi.call/cls_ulonglong.c,
2197 testsuite/libffi.call/cls_ushort.c,
2198 testsuite/libffi.call/err_bad_abi.c,
2199 testsuite/libffi.call/err_bad_typedef.c,
2200 testsuite/libffi.call/float2.c,
2201 testsuite/libffi.call/huge_struct.c,
2202 testsuite/libffi.call/nested_struct.c,
2203 testsuite/libffi.call/nested_struct1.c,
2204 testsuite/libffi.call/nested_struct10.c,
2205 testsuite/libffi.call/nested_struct2.c,
2206 testsuite/libffi.call/nested_struct3.c,
2207 testsuite/libffi.call/nested_struct4.c,
2208 testsuite/libffi.call/nested_struct5.c,
2209 testsuite/libffi.call/nested_struct6.c,
2210 testsuite/libffi.call/nested_struct7.c,
2211 testsuite/libffi.call/nested_struct8.c,
2212 testsuite/libffi.call/nested_struct9.c,
2213 testsuite/libffi.call/problem1.c,
2214 testsuite/libffi.call/return_ldl.c,
2215 testsuite/libffi.call/return_ll1.c,
2216 testsuite/libffi.call/stret_large.c,
2217 testsuite/libffi.call/stret_large2.c,
2218 testsuite/libffi.call/stret_medium.c,
2219 testsuite/libffi.call/stret_medium2.c,
302486f4
AS
2220 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2221 of checking for MMAP. Use intptr_t instead of long casts.
062b8279 2222
f43def61
KK
22232009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2224
2225 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2226 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2227 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2228
6aa0b218
AH
22292009-06-09 Andrew Haley <aph@redhat.com>
2230
2231 * src/x86/freebsd.S: Add missing file.
2232
b7b857bb
AH
22332009-06-08 Andrew Haley <aph@redhat.com>
2234
2235 Import from libffi 3.0.8:
2236
2237 * doc/libffi.texi: New file.
2238 * doc/libffi.info: Likewise.
2239 * doc/stamp-vti: Likewise.
2240 * man/Makefile.am: New file.
2241 * man/ffi_call.3: New file.
2242
2243 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2244 src/dlmalloc.c.
2245 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2246
2247 * configure.ac: Bump version to 3.0.8.
2248 parisc*-*-linux*: Add.
2249 i386-*-freebsd* | i386-*-openbsd*: Add.
2250 powerpc-*-beos*: Add.
2251 AM_CONDITIONAL X86_FREEBSD: Add.
2252 AC_CONFIG_FILES: Add man/Makefile.
2253
2254 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2255
491e6ad1
AH
22562009-06-08 Andrew Haley <aph@redhat.com>
2257
2258 * README: Import from libffi 3.0.8.
2259
3b5b1a73
AH
22602009-06-08 Andrew Haley <aph@redhat.com>
2261
2262 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2263 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2264 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2265 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2266
2267 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2268 * testsuite/libffi.call/stret_medium.c: Likewise.
2269 * testsuite/libffi.call/stret_large2.c: Likewise.
2270 * testsuite/libffi.call/stret_large.c: Likewise.
2271
22722008-12-26 Timothy Wall <twall@users.sf.net>
2273
302486f4
AS
2274 * testsuite/libffi.call/cls_longdouble.c,
2275 testsuite/libffi.call/cls_longdouble_va.c,
2276 testsuite/libffi.call/cls_align_longdouble.c,
2277 testsuite/libffi.call/cls_align_longdouble_split.c,
2278 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2279 failures on x86_64 cygwin/mingw.
3b5b1a73
AH
2280
22812008-12-22 Timothy Wall <twall@users.sf.net>
2282
302486f4
AS
2283 * testsuite/libffi.call/closure_fn0.c,
2284 testsuite/libffi.call/closure_fn1.c,
2285 testsuite/libffi.call/closure_fn2.c,
2286 testsuite/libffi.call/closure_fn3.c,
2287 testsuite/libffi.call/closure_fn4.c,
2288 testsuite/libffi.call/closure_fn5.c,
2289 testsuite/libffi.call/closure_fn6.c,
2290 testsuite/libffi.call/closure_loc_fn0.c,
2291 testsuite/libffi.call/closure_stdcall.c,
2292 testsuite/libffi.call/cls_align_pointer.c,
2293 testsuite/libffi.call/cls_pointer.c,
2294 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2295 pointer to integer (intptr_t).
2296 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
3b5b1a73
AH
2297
22982008-07-24 Anthony Green <green@redhat.com>
2299
302486f4
AS
2300 * testsuite/libffi.call/cls_dbls_struct.c,
2301 testsuite/libffi.call/cls_double_va.c,
2302 testsuite/libffi.call/cls_longdouble.c,
2303 testsuite/libffi.call/cls_longdouble_va.c,
2304 testsuite/libffi.call/cls_pointer.c,
2305 testsuite/libffi.call/cls_pointer_stack.c,
2306 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2307 compiler warnings.
3b5b1a73
AH
2308
23092008-03-04 Anthony Green <green@redhat.com>
3d3b561f 2310 Blake Chaffin
302486f4
AS
2311 hos@tamanegi.org
2312
2313 * testsuite/libffi.call/cls_align_longdouble_split2.c
3d3b561f
ML
2314 testsuite/libffi.call/cls_align_longdouble_split.c
2315 testsuite/libffi.call/cls_dbls_struct.c
2316 testsuite/libffi.call/cls_double_va.c
2317 testsuite/libffi.call/cls_longdouble.c
2318 testsuite/libffi.call/cls_longdouble_va.c
2319 testsuite/libffi.call/cls_pointer.c
2320 testsuite/libffi.call/cls_pointer_stack.c
2321 testsuite/libffi.call/err_bad_abi.c
2322 testsuite/libffi.call/err_bad_typedef.c
2323 testsuite/libffi.call/stret_large2.c
2324 testsuite/libffi.call/stret_large.c
2325 testsuite/libffi.call/stret_medium2.c
2326 testsuite/libffi.call/stret_medium.c: New tests from Apple.
3b5b1a73 2327
56faec5e
AH
23282009-06-05 Andrew Haley <aph@redhat.com>
2329
2330 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2331 libffi.
2332
90409e4c
AH
23332009-06-04 Andrew Haley <aph@redhat.com>
2334
2335 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2336 stdcall changes.
2337
b1393750 23382008-02-26 Anthony Green <green@redhat.com>
302486f4 2339 Thomas Heller <theller@ctypes.org>
b1393750 2340
302486f4
AS
2341 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2342 comment.
b1393750
AH
2343
23442008-02-03 Timothy Wall <twall@users.sf.net>
2345
302486f4 2346 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
3d3b561f 2347 offset based on code pointer, not data pointer.
b1393750
AH
2348
23492008-01-31 Timothy Wall <twall@users.sf.net>
2350
302486f4
AS
2351 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2352 closures.
2353 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2354 closures.
2355 * src/x86/win32.S: Add assembly for stdcall closure.
2356 * src/x86/ffi.c: Initialize stdcall closure trampoline.
b1393750 2357
96baa251
AH
23582009-06-04 Andrew Haley <aph@redhat.com>
2359
2360 * include/ffi.h.in: Change void (*)() to void (*)(void).
2361 * src/x86/ffi.c: Likewise.
2362
7446546a
AH
23632009-06-04 Andrew Haley <aph@redhat.com>
2364
2365 * src/powerpc/ppc_closure.S: Insert licence header.
2366 * src/powerpc/linux64_closure.S: Likewise.
2367 * src/m68k/sysv.S: Likewise.
2368
2369 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2370 * src/powerpc/ffi.c: Likewise.
2371 * src/powerpc/ffi_darwin.c: Likewise.
2372 * src/m32r/ffi.c: Likewise.
2373 * src/sh64/ffi.c: Likewise.
2374 * src/x86/ffi64.c: Likewise.
2375 * src/alpha/ffi.c: Likewise.
2376 * src/alpha/osf.S: Likewise.
2377 * src/frv/ffi.c: Likewise.
2378 * src/s390/ffi.c: Likewise.
2379 * src/pa/ffi.c: Likewise.
2380 * src/pa/hpux32.S: Likewise.
2381 * src/ia64/unix.S: Likewise.
2382 * src/ia64/ffi.c: Likewise.
2383 * src/sparc/ffi.c: Likewise.
2384 * src/mips/ffi.c: Likewise.
2385 * src/sh/ffi.c: Likewise.
2386
23872008-02-15 David Daney <ddaney@avtrex.com>
2388
302486f4
AS
2389 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2390 Define (conditionally), and use it to include cachectl.h.
2391 (ffi_prep_closure_loc): Fix cache flushing.
2392 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
7446546a 2393
5f933ef0
AH
23942009-06-04 Andrew Haley <aph@redhat.com>
2395
2396 include/ffi.h.in,
2397 src/arm/ffitarget.h,
2398 src/arm/ffi.c,
2399 src/arm/sysv.S,
2400 src/powerpc/ffitarget.h,
2401 src/closures.c,
2402 src/sh64/ffitarget.h,
2403 src/sh64/ffi.c,
2404 src/sh64/sysv.S,
2405 src/types.c,
2406 src/x86/ffi64.c,
2407 src/x86/ffitarget.h,
2408 src/x86/win32.S,
2409 src/x86/darwin.S,
2410 src/x86/ffi.c,
2411 src/x86/sysv.S,
2412 src/x86/unix64.S,
2413 src/alpha/ffitarget.h,
2414 src/alpha/ffi.c,
2415 src/alpha/osf.S,
2416 src/m68k/ffitarget.h,
2417 src/frv/ffitarget.h,
2418 src/frv/ffi.c,
2419 src/s390/ffitarget.h,
2420 src/s390/sysv.S,
2421 src/cris/ffitarget.h,
2422 src/pa/linux.S,
2423 src/pa/ffitarget.h,
2424 src/pa/ffi.c,
2425 src/raw_api.c,
2426 src/ia64/ffitarget.h,
2427 src/ia64/unix.S,
2428 src/ia64/ffi.c,
2429 src/ia64/ia64_flags.h,
2430 src/java_raw_api.c,
2431 src/debug.c,
2432 src/sparc/v9.S,
2433 src/sparc/ffitarget.h,
2434 src/sparc/ffi.c,
2435 src/sparc/v8.S,
2436 src/mips/ffitarget.h,
2437 src/mips/n32.S,
2438 src/mips/o32.S,
2439 src/mips/ffi.c,
2440 src/prep_cif.c,
2441 src/sh/ffitarget.h,
2442 src/sh/ffi.c,
2443 src/sh/sysv.S: Update license text.
2444
84c40c4a
DK
24452009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2446
2447 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2448 (.eh_frame): Add FDE for it.
2449
8353cd27
DK
24502009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
2451
2452 * configure.ac: Also check if assembler supports pc-relative
2453 relocs on X86_WIN32 targets.
2454 * configure: Regenerate.
2455 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2456 (_ffi_call_SYSV): Add missing function type symbol .def and
2457 add EH markup labels.
2458 (_ffi_call_STDCALL): Likewise.
2459 (_ffi_closure_SYSV): Likewise.
2460 (_ffi_closure_raw_SYSV): Likewise.
2461 (.eh_frame): Add hand-crafted EH data.
2462
748086b7
JJ
24632009-04-09 Jakub Jelinek <jakub@redhat.com>
2464
2465 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2466 version 3 of the GNU General Public License and to point readers
2467 at the COPYING3 file and the FSF's license web page.
2468 * testsuite/libffi.call/call.exp: Likewise.
2469 * testsuite/libffi.special/special.exp: Likewise.
2470
7a9d3fe8
RW
24712009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2472
2473 * configure: Regenerate.
2474
4d3d4078
RO
24752008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2476
2477 PR libffi/26048
2478 * configure.ac (HAVE_AS_X86_PCREL): New test.
2479 * configure: Regenerate.
2480 * fficonfig.h.in: Regenerate.
2481 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2482 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2483 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2484 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2485 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2486 (.Lload_table): Likewise.
2487 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2488
baafc534
RW
24892008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2490
2491 * configure: Regenerate.
2492
da17a98b
EB
24932008-11-21 Eric Botcazou <ebotcazou@adacore.com>
2494
2495 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2496 signed/unsigned int8/16 return values.
2497 * src/sparc/v8.S (ffi_call_v8): Likewise.
2498 (ffi_closure_v8): Likewise.
2499
80c6c2cb 25002008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
302486f4 2501 Steve Ellcey <sje@cup.hp.com>
80c6c2cb
PG
2502
2503 * configure: Regenerate for new libtool.
2504 * Makefile.in: Ditto.
2505 * include/Makefile.in: Ditto.
2506 * aclocal.m4: Ditto.
2507
d7f68a67
AT
25082008-08-25 Andreas Tobler <a.tobler@schweiz.org>
2509
2510 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2511 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2512 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2513 Adjust copyright notice.
2514 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2515 register or two register to use for FFI_SYSV structs.
2516 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2517 (ffi_closure_helper_SYSV): Fix the return type for
2518 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2519 Adjust copyright notice.
2520
130f4c50
KK
25212008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2522
2523 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2524 int.
2525
18c04407
RW
25262008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2527
2528 * configure: Regenerate.
2529 * include/Makefile.in: Regenerate.
2530 * testsuite/Makefile.in: Regenerate.
2531
cd985f66
JM
25322008-06-07 Joseph Myers <joseph@codesourcery.com>
2533
2534 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2535 powerpc-*-beos*): Remove.
2536 * configure: Regenerate.
2537
7afa92c5
JB
25382008-05-09 Julian Brown <julian@codesourcery.com>
2539
2540 * Makefile.am (LTLDFLAGS): New.
2541 (libffi_la_LDFLAGS): Use above.
2542 * Makefile.in: Regenerate.
2543
deb984e6
PB
25442008-04-18 Paolo Bonzini <bonzini@gnu.org>
2545
2546 PR bootstrap/35457
2547 * aclocal.m4: Regenerate.
2548 * configure: Regenerate.
2549
3e9608a5
KK
25502008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
2551
2552 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2553 * src/sh64/sysv.S: Likewise.
2554
feb51530
MK
25552008-03-26 Daniel Jacobowitz <dan@debian.org>
2556
2557 * src/arm/sysv.S: Fix ARM comment marker.
2558
25592008-03-26 Jakub Jelinek <jakub@redhat.com>
2560
2561 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2562 * src/s390/sysv.S: Likewise.
2563 * src/powerpc/ppc_closure.S: Likewise.
2564 * src/powerpc/sysv.S: Likewise.
2565 * src/x86/unix64.S: Likewise.
2566 * src/x86/sysv.S: Likewise.
2567 * src/sparc/v8.S: Likewise.
2568 * src/sparc/v9.S: Likewise.
2569 * src/m68k/sysv.S: Likewise.
2570 * src/arm/sysv.S: Likewise.
2571
38d24731
RW
25722008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2573
2574 * aclocal.m4: Regenerate.
2575 * configure: Likewise.
2576 * Makefile.in: Likewise.
2577 * include/Makefile.in: Likewise.
2578 * testsuite/Makefile.in: Likewise.
2579
2e250fa2
BK
25802008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
2581 Andreas Tobler <a.tobler@schweiz.org>
2582
2583 * configure.ac: Add amd64-*-freebsd* target.
2584 * configure: Regenerate.
2585
7f92e242
L
25862008-01-30 H.J. Lu <hongjiu.lu@intel.com>
2587
2588 PR libffi/34612
2589 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2590 returning struct.
2591
2592 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2593 tests.
2594
95d4f544
DE
25952008-01-24 David Edelsohn <edelsohn@gnu.org>
2596
2597 * configure: Regenerate.
2598
79ca8fc0
AT
25992008-01-06 Andreas Tobler <a.tobler@schweiz.org>
2600
2601 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2602
d7b07cc7
AT
26032008-01-05 Andreas Tobler <a.tobler@schweiz.org>
2604
2605 PR testsuite/32843
2606 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2607 signed/unsigned int8/16 for X86_DARWIN.
2608 Updated copyright info.
2609 Handle one and two byte structs with special cif->flags.
2610 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2611 Updated copyright info.
2612 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2613 sysv.S
2614 Remove code to pop args from the stack after call.
2615 Special-case signed/unsigned for int8/16, one and two byte structs.
2616 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2617 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2618 FFI_TYPE_SINT32.
2619 Updated copyright info.
2620
c94ae2e4
DD
26212007-12-08 David Daney <ddaney@avtrex.com>
2622
302486f4 2623 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
c94ae2e4
DD
2624 SUBU, add with ADDU and use smaller code sequences.
2625
3875b6d7 26262007-12-07 David Daney <ddaney@avtrex.com>
44be66a1 2627
3875b6d7
DD
2628 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2629 type.
2630
4c42b3d8
DD
26312007-12-06 David Daney <ddaney@avtrex.com>
2632
2633 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2634 defined.
2635 (ffi_java_raw): New typedef.
2636 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2637 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2638 ffi_java_raw.
2639 (ffi_java_raw_closure) : Same.
2640 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2641 parameter types.
2642 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2643 FFI_SIZEOF_JAVA_RAW.
2644 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2645 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2646 sizeof(ffi_java_raw) for alignment calculations.
2647 (ffi_java_ptrarray_to_raw): Same.
2648 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
302486f4 2649 if FFI_SIZEOF_JAVA_RAW == 4.
4c42b3d8
DD
2650 (ffi_java_raw_to_rvalue): Same.
2651 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2652 (ffi_java_translate_args): Same.
2653 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2654 parameter types.
2655 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2656
3ef50b62
DD
26572007-12-06 David Daney <ddaney@avtrex.com>
2658
302486f4 2659 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
3ef50b62
DD
2660 pointer values.
2661
16287148
AT
26622007-12-01 Andreas Tobler <a.tobler@schweiz.org>
2663
2664 PR libffi/31937
2665 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2666 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2667 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2668 set the NUM_FPR_ARG_REGISTERS according to.
2669 Add support for potential soft-float support under hard-float
2670 architecture.
2671 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2672 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2673 to the FFI_LINUX_SOFT_FLOAT ABI.
2674 (ffi_prep_cif_machdep): Likewise.
2675 (ffi_closure_helper_SYSV): Likewise.
2676 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2677 on archs where __NO_FPRS__ is true.
2678 Add FFI_TYPE_UINT128 support.
2679 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2680 Adjust copyright notice.
2681
a4b7c9cd
AT
26822007-11-25 Andreas Tobler <a.tobler@schweiz.org>
2683
2684 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2685 * include/ffi_common.h: ... here.
2686 Update copyright.
2687
e84296c6
AT
26882007-11-17 Andreas Tobler <a.tobler@schweiz.org>
2689
2690 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2691 * src/powerpc/linux64.S: Likewise.
2692 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2693 * testsuite/libffi.call/return_ldl.c: New test.
2694
cb642590
AH
26952007-09-04 <aph@redhat.com>
2696
2697 * src/arm/sysv.S (UNWIND): New.
2698 (Whole file): Conditionally compile unwinder directives.
2699 * src/arm/sysv.S: Add unwinder directives.
2700
2701 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2702 Only treat r0 as a struct address if we're actually returning a
2703 struct by address.
2704 Only copy the bytes that are actually within a struct.
2705 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2706 is returned in r0, not passed by address.
2707 (ffi_call): Allocate a word-sized temporary for the case where
2708 a composite is returned in r0.
2709 (ffi_prep_incoming_args_SYSV): Align as necessary.
2710
27112007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
2712
302486f4 2713 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
cb642590
AH
2714 directly using the sys_cacheflush syscall.
2715
27162007-07-27 Andrew Haley <aph@redhat.com>
2717
2718 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2719
8d5c5e35
MR
27202007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
2721
2722 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2723 * configure.ac: Likewise.
2724 * Makefile.in: Regenerate.
2725 * include/Makefile.in: Likewise.
2726 * testsuite/Makefile.in: Likewise.
2727 * configure: Likewise.
2728
787b0d19
DD
27292007-08-24 David Daney <ddaney@avtrex.com>
2730
2731 * testsuite/libffi.call/return_sl.c: New test.
2732
dfbb3e36
DD
27332007-08-10 David Daney <ddaney@avtrex.com>
2734
2735 * testsuite/libffi.call/cls_multi_ushort.c,
2736 testsuite/libffi.call/cls_align_uint16.c,
2737 testsuite/libffi.call/nested_struct1.c,
2738 testsuite/libffi.call/nested_struct3.c,
2739 testsuite/libffi.call/cls_7_1_byte.c,
2740 testsuite/libffi.call/nested_struct5.c,
2741 testsuite/libffi.call/cls_double.c,
2742 testsuite/libffi.call/nested_struct7.c,
2743 testsuite/libffi.call/cls_sint.c,
2744 testsuite/libffi.call/nested_struct9.c,
2745 testsuite/libffi.call/cls_20byte1.c,
2746 testsuite/libffi.call/cls_multi_sshortchar.c,
2747 testsuite/libffi.call/cls_align_sint64.c,
2748 testsuite/libffi.call/cls_3byte2.c,
2749 testsuite/libffi.call/cls_multi_schar.c,
2750 testsuite/libffi.call/cls_multi_uchar.c,
2751 testsuite/libffi.call/cls_19byte.c,
2752 testsuite/libffi.call/cls_9byte1.c,
2753 testsuite/libffi.call/cls_align_float.c,
2754 testsuite/libffi.call/closure_fn1.c,
2755 testsuite/libffi.call/problem1.c,
2756 testsuite/libffi.call/closure_fn3.c,
2757 testsuite/libffi.call/cls_sshort.c,
2758 testsuite/libffi.call/closure_fn5.c,
2759 testsuite/libffi.call/cls_align_double.c,
2760 testsuite/libffi.call/nested_struct.c,
2761 testsuite/libffi.call/cls_2byte.c,
2762 testsuite/libffi.call/nested_struct10.c,
2763 testsuite/libffi.call/cls_4byte.c,
2764 testsuite/libffi.call/cls_6byte.c,
2765 testsuite/libffi.call/cls_8byte.c,
2766 testsuite/libffi.call/cls_multi_sshort.c,
2767 testsuite/libffi.call/cls_align_sint16.c,
2768 testsuite/libffi.call/cls_align_uint32.c,
2769 testsuite/libffi.call/cls_20byte.c,
2770 testsuite/libffi.call/cls_float.c,
2771 testsuite/libffi.call/nested_struct2.c,
2772 testsuite/libffi.call/cls_5_1_byte.c,
2773 testsuite/libffi.call/nested_struct4.c,
2774 testsuite/libffi.call/cls_24byte.c,
2775 testsuite/libffi.call/nested_struct6.c,
2776 testsuite/libffi.call/cls_64byte.c,
2777 testsuite/libffi.call/nested_struct8.c,
2778 testsuite/libffi.call/cls_uint.c,
2779 testsuite/libffi.call/cls_multi_ushortchar.c,
2780 testsuite/libffi.call/cls_schar.c,
2781 testsuite/libffi.call/cls_uchar.c,
2782 testsuite/libffi.call/cls_align_uint64.c,
2783 testsuite/libffi.call/cls_ulonglong.c,
2784 testsuite/libffi.call/cls_align_longdouble.c,
2785 testsuite/libffi.call/cls_1_1byte.c,
2786 testsuite/libffi.call/cls_12byte.c,
2787 testsuite/libffi.call/cls_3_1byte.c,
2788 testsuite/libffi.call/cls_3byte1.c,
2789 testsuite/libffi.call/cls_4_1byte.c,
2790 testsuite/libffi.call/cls_6_1_byte.c,
2791 testsuite/libffi.call/cls_16byte.c,
2792 testsuite/libffi.call/cls_18byte.c,
2793 testsuite/libffi.call/closure_fn0.c,
2794 testsuite/libffi.call/cls_9byte2.c,
2795 testsuite/libffi.call/closure_fn2.c,
2796 testsuite/libffi.call/closure_fn4.c,
2797 testsuite/libffi.call/cls_ushort.c,
2798 testsuite/libffi.call/closure_fn6.c,
2799 testsuite/libffi.call/cls_5byte.c,
2800 testsuite/libffi.call/cls_align_pointer.c,
2801 testsuite/libffi.call/cls_7byte.c,
2802 testsuite/libffi.call/cls_align_sint32.c,
2803 testsuite/libffi.special/unwindtest_ffi_call.cc,
2804 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2805
89d9d98a
DD
28062007-08-10 David Daney <ddaney@avtrex.com>
2807
2808 PR libffi/28313
2809 * configure.ac: Don't treat mips64 as a special case.
2810 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2811 * configure: Regenerate
2812 * Makefile.in: Ditto.
2813 * fficonfig.h.in: Ditto.
2814 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2815 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2816 (FFI_DEFAULT_ABI): Set for n64 case.
2817 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2818 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2819 (ffi_closure_N32): New function.
2820 (.eh_frame): New section
2821 * src/mips/o32.S: Clean up comments.
2822 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2823 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2824 _MIPS_SIM == _ABIN32 throughout.
2825 (FFI_MIPS_STOP_HERE): New, use in place of
2826 ffi_stop_here.
2827 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2828 to support n32/n64 ABIs.
2829 (calc_n32_struct_flags): Rewrite.
2830 (calc_n32_return_struct_flags): Remove unused variable. Reverse
2831 position of flag bits.
2832 (ffi_prep_cif_machdep): Rewrite n32 portion.
2833 (ffi_call): Enable for n64. Add special handling for small structure
2834 return values.
2835 (ffi_prep_closure_loc): Add n32 and n64 support.
2836 (ffi_closure_mips_inner_O32): Add cast to silence warning.
2837 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2838
d23869d4
DD
28392007-08-08 David Daney <ddaney@avtrex.com>
2840
2841 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2842 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2843 specifiers.
2844 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2845 * testsuite/libffi.call/cls_sint.c (main): Ditto.
2846 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2847 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2848 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2849 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2850 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2851 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2852 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2853 * testsuite/libffi.call/return_fl3.c (main): Ditto.
2854 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2855 * testsuite/libffi.call/nested_struct.c (main): Ditto.
2856 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2857 * testsuite/libffi.call/return_ll1.c (main): Ditto.
2858 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2859 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2860 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2861 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2862 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2863 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2864 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2865 * testsuite/libffi.call/cls_uint.c (main): Ditto.
2866 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2867 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2868 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2869 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2870 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2871 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2872 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2873 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2874 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2875
536e0a8f
AH
28762007-08-07 Andrew Haley <aph@redhat.com>
2877
2878 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2879 checkin.
2880
7665c9be
AH
28812007-08-06 Andrew Haley <aph@redhat.com>
2882
2883 PR testsuite/32843
2884 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2885 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2886 FFI_TYPE_SINT32.
2887
58e11497
DD
28882007-08-02 David Daney <ddaney@avtrex.com>
2889
2890 * testsuite/libffi.call/return_ul.c (main): Define return type as
2891 ffi_arg. Use proper printf conversion specifier.
302486f4 2892
387cfbba
AH
28932007-07-30 Andrew Haley <aph@redhat.com>
2894
2895 PR testsuite/32843
2896 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
2897 signed/unsigned int8/16.
2898 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
2899 Use a jump table.
2900 Remove code to pop args from the stack after call.
2901 Special-case signed/unsigned int8/16.
2902 * testsuite/libffi.call/return_sc.c (main): Revert.
2903
0ee0208e
RG
29042007-07-26 Richard Guenther <rguenther@suse.de>
2905
2906 PR testsuite/32843
2907 * testsuite/libffi.call/return_sc.c (main): Verify call
2908 result as signed char, not ffi_arg.
2909
04a49983
RO
29102007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2911
2912 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
2913 * configure: Regenerate.
2914
433e6a8c
DD
29152007-07-11 David Daney <ddaney@avtrex.com>
2916
2917 * src/mips/ffi.c: Don't include sys/cachectl.h.
2918 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
2919 cacheflush().
2920
0959e2b8
AH
29212007-05-18 Aurelien Jarno <aurelien@aurel32.net>
2922
2923 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
2924 from (ffi_prep_closure): ... this.
2925 (FFI_INIT_TRAMPOLINE): Adjust.
2926
29272005-12-31 Phil Blundell <pb@reciva.com>
2928
302486f4
AS
2929 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
2930 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
0959e2b8
AH
2931 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
2932 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
2933 (FFI_CLOSURES): Enable closure support.
2934
29352007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
2936
302486f4
AS
2937 * testsuite/libffi.call/cls_multi_ushort.c,
2938 testsuite/libffi.call/cls_align_uint16.c,
2939 testsuite/libffi.call/nested_struct1.c,
2940 testsuite/libffi.call/nested_struct3.c,
2941 testsuite/libffi.call/cls_7_1_byte.c,
2942 testsuite/libffi.call/cls_double.c,
2943 testsuite/libffi.call/nested_struct5.c,
2944 testsuite/libffi.call/nested_struct7.c,
2945 testsuite/libffi.call/cls_sint.c,
2946 testsuite/libffi.call/nested_struct9.c,
2947 testsuite/libffi.call/cls_20byte1.c,
2948 testsuite/libffi.call/cls_multi_sshortchar.c,
2949 testsuite/libffi.call/cls_align_sint64.c,
2950 testsuite/libffi.call/cls_3byte2.c,
2951 testsuite/libffi.call/cls_multi_schar.c,
2952 testsuite/libffi.call/cls_multi_uchar.c,
2953 testsuite/libffi.call/cls_19byte.c,
2954 testsuite/libffi.call/cls_9byte1.c,
2955 testsuite/libffi.call/cls_align_float.c,
2956 testsuite/libffi.call/closure_fn1.c,
2957 testsuite/libffi.call/problem1.c,
2958 testsuite/libffi.call/closure_fn3.c,
2959 testsuite/libffi.call/cls_sshort.c,
2960 testsuite/libffi.call/closure_fn5.c,
2961 testsuite/libffi.call/cls_align_double.c,
2962 testsuite/libffi.call/cls_2byte.c,
2963 testsuite/libffi.call/nested_struct.c,
2964 testsuite/libffi.call/nested_struct10.c,
2965 testsuite/libffi.call/cls_4byte.c,
2966 testsuite/libffi.call/cls_6byte.c,
2967 testsuite/libffi.call/cls_8byte.c,
2968 testsuite/libffi.call/cls_multi_sshort.c,
2969 testsuite/libffi.call/cls_align_uint32.c,
2970 testsuite/libffi.call/cls_align_sint16.c,
2971 testsuite/libffi.call/cls_float.c,
2972 testsuite/libffi.call/cls_20byte.c,
2973 testsuite/libffi.call/cls_5_1_byte.c,
2974 testsuite/libffi.call/nested_struct2.c,
2975 testsuite/libffi.call/cls_24byte.c,
2976 testsuite/libffi.call/nested_struct4.c,
2977 testsuite/libffi.call/nested_struct6.c,
2978 testsuite/libffi.call/cls_64byte.c,
2979 testsuite/libffi.call/nested_struct8.c,
2980 testsuite/libffi.call/cls_uint.c,
2981 testsuite/libffi.call/cls_multi_ushortchar.c,
2982 testsuite/libffi.call/cls_schar.c,
2983 testsuite/libffi.call/cls_uchar.c,
2984 testsuite/libffi.call/cls_align_uint64.c,
2985 testsuite/libffi.call/cls_ulonglong.c,
2986 testsuite/libffi.call/cls_align_longdouble.c,
2987 testsuite/libffi.call/cls_1_1byte.c,
2988 testsuite/libffi.call/cls_12byte.c,
2989 testsuite/libffi.call/cls_3_1byte.c,
2990 testsuite/libffi.call/cls_3byte1.c,
2991 testsuite/libffi.call/cls_4_1byte.c,
2992 testsuite/libffi.call/cls_6_1_byte.c,
2993 testsuite/libffi.call/cls_16byte.c,
2994 testsuite/libffi.call/cls_18byte.c,
2995 testsuite/libffi.call/closure_fn0.c,
2996 testsuite/libffi.call/cls_9byte2.c,
2997 testsuite/libffi.call/closure_fn2.c,
2998 testsuite/libffi.call/closure_fn4.c,
2999 testsuite/libffi.call/cls_ushort.c,
3000 testsuite/libffi.call/closure_fn6.c,
3001 testsuite/libffi.call/cls_5byte.c,
3002 testsuite/libffi.call/cls_align_pointer.c,
3003 testsuite/libffi.call/cls_7byte.c,
3004 testsuite/libffi.call/cls_align_sint32.c,
3005 testsuite/libffi.special/unwindtest_ffi_call.cc,
3006 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
0959e2b8 3007
12a27363
L
30082007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3009
3010 * aclocal.m4: Regenerated.
3011
82a6cadf
PB
30122007-06-02 Paolo Bonzini <bonzini@gnu.org>
3013
3014 * configure: Regenerate.
3015
1cf3d07d
SE
30162007-05-23 Steve Ellcey <sje@cup.hp.com>
3017
3018 * Makefile.in: Regenerate.
3019 * configure: Regenerate.
3020 * aclocal.m4: Regenerate.
3021 * include/Makefile.in: Regenerate.
3022 * testsuite/Makefile.in: Regenerate.
3023
5635c26e
RZ
30242007-05-10 Roman Zippel <zippel@linux-m68k.org>
3025
3026 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3027 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3028 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3029 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3030 (FFI_CLOSURES): Enable closure support.
3031
e6fbf387
RZ
30322007-05-10 Roman Zippel <zippel@linux-m68k.org>
3033
3034 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3035 * configure: Regenerate.
3036 * fficonfig.h.in: Regenerate.
3037 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3038 CFI_OFFSET,CFI_DEF_CFA): New macros.
3039 (ffi_call_SYSV): Add callframe annotation.
3040
b5296e52
RZ
30412007-05-10 Roman Zippel <zippel@linux-m68k.org>
3042
3043 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3044 numerous test suite failures.
3045 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3046
bd61d708
PB
30472007-04-11 Paolo Bonzini <bonzini@gnu.org>
3048
3049 * Makefile.am (EXTRA_DIST): Bring up to date.
3050 * Makefile.in: Regenerate.
3051 * src/frv/eabi.S: Remove RCS keyword.
3052
bf8da5fc
RH
30532007-04-06 Richard Henderson <rth@redhat.com>
3054
3055 * configure.ac: Tidy target case.
3056 (HAVE_LONG_DOUBLE): Allow the target to override.
3057 * configure: Regenerate.
3058 * include/ffi.h.in: Don't define ffi_type_foo if
3059 LIBFFI_HIDE_BASIC_TYPES is defined.
3060 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3061 to ffi_type_double.
3062 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3063 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3064 (ffi_type_longdouble): Special case for Alpha. Don't define
3065 if long double == double.
3066
3067 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3068 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3069 (ffi_call, ffi_closure_osf_inner): Likewise.
3070 (ffi_closure_osf_inner): Likewise. Mark hidden.
3071 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3072 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3073 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3074 (load_table): Handle 128-bit long double.
3075
3076 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3077
8669fed1
TT
30782007-04-06 Tom Tromey <tromey@redhat.com>
3079
3080 PR libffi/31491:
3081 * README: Fixed bug in example.
3082
f0920e6c
JJ
30832007-04-03 Jakub Jelinek <jakub@redhat.com>
3084
3085 * src/closures.c: Include sys/statfs.h.
3086 (_GNU_SOURCE): Define on Linux.
3087 (FFI_MMAP_EXEC_SELINUX): Define.
3088 (selinux_enabled): New variable.
3089 (selinux_enabled_check): New function.
3090 (is_selinux_enabled): Define.
3091 (dlmmap): Use it.
3092
34a6ccda
UB
30932007-03-24 Uros Bizjak <ubizjak@gmail.com>
3094
3095 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3096 Use 'volatile float sum' to create sum of floats to avoid false
3097 negative due to excess precision on ix86 targets.
302486f4 3098 (main): Ditto.
34a6ccda 3099
8b9cf39e
AO
31002007-03-08 Alexandre Oliva <aoliva@redhat.com>
3101
3102 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3103 patch.
3104 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3105
18fa3240
AO
31062007-03-07 Alexandre Oliva <aoliva@redhat.com>
3107
3108 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3109 (ffi_prep_closure_loc): New.
3110 (ffi_prep_raw_closure_loc): New.
3111 (ffi_prep_java_raw_closure_loc): New.
3112 * src/closures.c: New file.
3113 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3114 Replace sflags with exec_offset.
3115 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3116 sub_segment_exec_offset): New macros.
3117 (get_segment_flags, set_segment_flags, check_segment_merge): New
3118 macros.
3119 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3120 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3121 destroy_mspace): Use new macros.
3122 (sys_alloc): Silence warning.
3123 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3124 * Makefile.in: Rebuilt.
3125 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3126 terms of ffi_prep_closure_loc.
3127 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3128 from...
3129 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3130 renamed version.
3131 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3132 adjusted from...
3133 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3134 the renamed version.
3135 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3136 (ffi_prep_closure): ... this.
3137 * src/pa/ffi.c: Likewise.
3138 * src/cris/ffi.c: Likewise. Adjust.
3139 * src/frv/ffi.c: Likewise.
3140 * src/ia64/ffi.c: Likewise.
3141 * src/mips/ffi.c: Likewise.
3142 * src/powerpc/ffi_darwin.c: Likewise.
3143 * src/s390/ffi.c: Likewise.
3144 * src/sh/ffi.c: Likewise.
3145 * src/sh64/ffi.c: Likewise.
3146 * src/sparc/ffi.c: Likewise.
3147 * src/x86/ffi64.c: Likewise.
3148 * src/x86/ffi.c: Likewise.
3149 (FFI_INIT_TRAMPOLINE): Adjust.
3150 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3151 (ffi_prep_raw_closure): ... this.
3152 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3153 (ffi_prep_closure): ... this.
3154 (flush_icache): Adjust.
3155
dd778331
AO
31562007-03-07 Alexandre Oliva <aoliva@redhat.com>
3157
3158 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3159 Lea's malloc.
3160
b5f8d49b
BM
31612007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3162
3163 * Makefile.am: Add dummy install-pdf target.
3164 * Makefile.in: Regenerate
3165
7a23933b
AK
31662007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
3167
3168 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3169 ffi_closure_helper_SYSV): Add long double handling.
3170
8aaf4681
JJ
31712007-02-02 Jakub Jelinek <jakub@redhat.com>
3172
3173 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3174 immediately after bctrl instruction.
3175
0eb5e2b9
AO
31762007-01-18 Alexandre Oliva <aoliva@redhat.com>
3177
3178 * Makefile.am (all-recursive, install-recursive,
3179 mostlyclean-recursive, clean-recursive, distclean-recursive,
3180 maintainer-clean-recursive): Add missing targets.
3181 * Makefile.in: Rebuilt.
3182
f4f7486b
AT
31832006-12-14 Andreas Tobler <a.tobler@schweiz.org>
3184
3185 * configure.ac: Add TARGET for x86_64-*-darwin*.
3186 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3187 for X86_DARWIN.
3188 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3189 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3190 * configure: Regenerate.
3191 * Makefile.in: Regenerate.
3192 * include/Makefile.in: Regenerate.
3193 * testsuite/Makefile.in: Regenerate.
3194 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3195 ffi_call only.
3196
3d5eafe2
AT
31972006-12-13 Andreas Tobler <a.tobler@schweiz.org>
3198
3199 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3200 Makefile.am.
3201
d5523ce1 32022006-10-31 Geoffrey Keating <geoffk@apple.com>
58182de3
GK
3203
3204 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3205 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3206 Darwin.
3207 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3208 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3209
a3bd50cc
PB
32102006-10-10 Paolo Bonzini <bonzini@gnu.org>
3211 Sandro Tolaini <tolaini@libero.it>
3212
302486f4 3213 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
a3bd50cc
PB
3214 conditional.
3215 * configure: Regenerated.
3216 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3217 (EXTRA_DIST): Add src/x86/darwin.S.
3218 * Makefile.in: Regenerated.
3219 * include/Makefile.in: Regenerated.
3220 * testsuite/Makefile.in: Regenerated.
3221
3222 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3223 X86_WIN32, and additionally align stack to 16 bytes.
3224 * src/x86/darwin.S: New, based on sysv.S.
3225 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3226
b095810f
DD
32272006-09-12 David Daney <ddaney@avtrex.com>
3228
3229 PR libffi/23935
3230 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3231 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3232 * aclocal.m4: Regenerated for automake 1.9.6.
3233 * Makefile.in: Regenerated.
3234 * include/Makefile.in: Regenerated.
3235 * testsuite/Makefile.in: Regenerated.
3236
110b2db4
AT
32372006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3238
3239 * include/ffi_common.h (struct): Revert accidental commit.
3240
8e5fde87
AT
32412006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3242
3243 * include/ffi_common.h: Remove lint directives.
3244 * include/ffi.h.in: Likewise.
3245
cb4132fe
TS
32462006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
3247
3248 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3249 for 32-bit architectures.
3250 * testsuite/libffi.call/return_ul.c: New test case.
3251
0d24c3fa
DD
32522006-07-19 David Daney <ddaney@avtrex.com>
3253
3254 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3255 xfail remains for mips64.
3256
8665824c
CD
32572006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3258
3259 * Makefile.am: Add install-html target. Add install-html to .PHONY
3260 * Makefile.in: Regenerate.
3261 * aclocal.m4: Regenerate.
3262 * include/Makefile.in: Regenerate.
3263 * testsuite/Makefile.in: Regenerate.
3264
84e2e370
JDA
32652006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3266
3267 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3268 stack slot.
3269
ac6ed182
AT
32702006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
3271
3272 * README: Remove notice about 'Crazy Comments'.
3273 * src/debug.c: Remove lint directives. Cleanup white spaces.
3274 * src/java_raw_api.c: Likewise.
3275 * src/prep_cif.c: Likewise.
3276 * src/raw_api.c: Likewise.
3277 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3278 to the testsuite.
3279 * src/arm/ffi.c: Remove lint directives.
3280 * src/m32r/ffi.c: Likewise.
3281 * src/pa/ffi.c: Likewise.
3282 * src/powerpc/ffi.c: Likewise.
3283 * src/powerpc/ffi_darwin.c: Likewise.
3284 * src/sh/ffi.c: Likewise.
3285 * src/sh64/ffi.c: Likewise.
3286 * src/x86/ffi.c: Likewise.
3287 * testsuite/libffi.call/float2.c: Likewise.
3288 * testsuite/libffi.call/promotion.c: Likewise.
3289 * testsuite/libffi.call/struct1.c: Likewise.
3290
b7211585
AT
32912006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
3292
3293 * src/pa/hpux32.S: Correct unwind offset calculation for
3294 ffi_closure_pa32.
3295 * src/pa/linux.S: Likewise.
3296
86066f9b
JW
32972006-04-12 James E Wilson <wilson@specifix.com>
3298
3299 PR libgcj/26483
3300 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3301 (hfa_type_load): Call stf_spill.
3302 (hfa_type_store): Call ldf_fill.
3303 (ffi_call): Adjust calls to above routines. Add local temps for
3304 macro result.
b7211585 3305
615baed7
MK
33062006-04-10 Matthias Klose <doko@debian.org>
3307
3308 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3309 directory names containing underscores.
3310
8e7a2b58
JW
33112006-04-07 James E Wilson <wilson@specifix.com>
3312
3313 * testsuite/libffi.call/float4.c: New testcase.
3314
e6c300ef
JDA
33152006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3316 Andreas Tobler <a.tobler@schweiz.ch>
3317
3318 * Makefile.am: Add PA_HPUX port.
3319 * Makefile.in: Regenerate.
3320 * include/Makefile.in: Likewise.
3321 * testsuite/Makefile.in: Likewise.
3322 * configure.ac: Add PA_HPUX rules.
3323 * configure: Regenerate.
3324 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3325 Add PA_HPUX and PA64_HPUX.
3326 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3327 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3328 (FFI_TYPE_SMALL_STRUCT2): Define.
3329 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3330 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3331 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3332 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3333 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3334 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3335 * src/pa/ffi.c (ROUND_DOWN): Delete.
3336 (fldw, fstw, fldd, fstd): Use '__asm__'.
3337 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3338 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3339 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3340 Simplify incrementing of stack slot variable. Change type of local
3341 'n' to unsigned int.
3342 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3343 double on PA_HPUX.
3344 (ffi_prep_cif_machdep): Likewise.
3345 (ffi_call): Likewise.
3346 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3347 return type to ffi_status. Simplify incrementing of stack slot
3348 variable. Only copy floating point argument registers when PA_LINUX
3349 is true. Reformat debug statement.
3350 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3351 FFI_TYPE_SMALL_STRUCT8.
3352 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3353 declaration.
3354 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3355 Add nops to cache flush. Add trampoline for PA_HPUX.
3356 * src/pa/hpux32.S: New file.
3357 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3358 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3359 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3360 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3361 argument type checks so that common argument types appear first.
3362 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3363 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3364
75b8b1be
AM
33652006-03-24 Alan Modra <amodra@bigpond.net.au>
3366
3367 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3368 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3369 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3370 FFI_TYPE_LONGDOUBLE.
3371 (ffi_prep_args64): Assert using IBM extended double.
3372 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3373 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3374 (ffi_call): Handle FFI_LINUX.
3375 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3376 gpr3 return pointer as for struct return. Handle FFI_LINUX
3377 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3378 unnecessarily.
3379 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3380 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3381 Don't use r6 as pointer to results, instead use sp offset. Don't
3382 make a special call to load lr with case table address, instead
3383 use offset from previous call.
3384 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3385 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3386 return.
3387
697701ad
KK
33882006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
3389
3390 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3391 passed with FP registers correctly.
3392 (ffi_closure_helper_SYSV): Likewise.
3393 * src/sh64/sysv.S: Likewise.
3394
b295c471
AT
33952006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
3396
3397 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3398 args and userdata unused.
3399 (closure_test_fn1): Mark cif and userdata unused.
3400 (main): Remove unused res.
3401
9fdeb13b
AT
34022006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
3403
3404 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3405 -O2, -O3, -Os and the warning flags -W -Wall.
3406 * testsuite/libffi.special/special.exp: Likewise.
3407 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3408 unused parameter unused for gcc or else do nothing.
3409 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3410 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3411 and userdata unused.
3412 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3413 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3414 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3415 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3416 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3417 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3418 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3419 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3420 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3421 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3422 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3423 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3424 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3425 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3426 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3427 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3428 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3429 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3430 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3431 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3432 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3433 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3434 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3435 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3436 Likewise.
3437 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3438 Likewise.
3439 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3440 Likewise.
3441 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3442 void* to avoid compiler warning.
3443 (main): Likewise.
3444 (cls_struct_align_gn): Mark cif and userdata unused.
3445 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3446 Likewise.
3447 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3448 Likewise.
3449 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3450 Likewise.
3451 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3452 Likewise.
3453 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3454 Likewise.
3455 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3456 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3457 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3458 data unused.
3459 (main): Cast res_call to silence gcc.
3460 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3461 data unused.
3462 (main): Cast res_call to silence gcc.
3463 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3464 and data unused.
3465 (main): Cast res_call to silence gcc.
3466 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3467 data unused.
3468 (main): Cast res_call to silence gcc.
3469 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3470 data unused.
3471 (main): Cast res_call to silence gcc.
3472 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3473 and data unused.
3474 (main): Cast res_call to silence gcc.
3475 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3476 userdata unused.
3477 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3478 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3479 userdata unused.
3480 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3481 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3482 userdata unused.
3483 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3484 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3485 userdata unused.
3486 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3487 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3488 userdata unused.
3489 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3490 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3491 and userdata unused.
3492 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3493 userdata unused.
3494 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3495 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3496 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3497 Cleanup white spaces.
3498 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3499 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3500 cif and userdata unused.
3501 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3502 Likewise.
3503 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3504 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3505 formatters to silence gcc.
3506 (B_gn): Mark cif and userdata unused.
3507 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3508 unused.
3509 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3510 (B_gn): Mark cif and userdata unused.
3511 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3512 unused.
3513 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3514 (B_gn): Mark cif and userdata unused.
3515 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3516 unused.
3517 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3518 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3519 * testsuite/libffi.call/problem1.c (stub): Likewise.
3520 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3521 gcc.
3522 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3523 in the last commit for this test case in the test case itself.
3524 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3525 unused.
3526 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3527 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3528 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3529 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3530 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3531 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3532
0a4e2bb5
KK
35332006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
3534
3535 * src/sh/sysv.S: Fix register numbers in the FDE for
3536 ffi_closure_SYSV.
3537
723e5d5a
AT
35382006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
3539
3540 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3541 declaration to avoid a false negative on ix86. See PR323.
3542
e097f887
KK
35432006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3544
3545 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3546 and cast integer to void * if needed. Update the pointer to
3547 the FP register saved area correctly.
302486f4 3548
1a4878f7
AT
35492006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
3550
3551 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3552 is fixed.
3553 * testsuite/libffi.call/nested_struct4.c: Likewise.
3554
b47b5e08
AT
35552006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
3556
6429d58f
AT
3557 * testsuite/libffi.call/return_dbl.c: New test case.
3558 * testsuite/libffi.call/return_dbl1.c: Likewise.
3559 * testsuite/libffi.call/return_dbl2.c: Likewise.
3560 * testsuite/libffi.call/return_fl.c: Likewise.
3561 * testsuite/libffi.call/return_fl1.c: Likewise.
3562 * testsuite/libffi.call/return_fl2.c: Likewise.
3563 * testsuite/libffi.call/return_fl3.c: Likewise.
3564 * testsuite/libffi.call/closure_fn6.c: Likewise.
3565
b47b5e08
AT
3566 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3567 definition.
3568 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3569 here to be used by other test cases too.
3570
3571 * testsuite/libffi.call/nested_struct10.c: New test case.
3572 * testsuite/libffi.call/nested_struct9.c: Likewise.
3573 * testsuite/libffi.call/nested_struct8.c: Likewise.
3574 * testsuite/libffi.call/nested_struct7.c: Likewise.
3575 * testsuite/libffi.call/nested_struct6.c: Likewise.
3576 * testsuite/libffi.call/nested_struct5.c: Likewise.
3577 * testsuite/libffi.call/nested_struct4.c: Likewise.
3578
9abe31d4
AT
35792006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3580
3581 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3582 * configure: Rebuilt.
3583
71aa1a70
JJ
35842006-01-18 Jakub Jelinek <jakub@redhat.com>
3585
3586 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3587 instead do the shifting inline.
3588 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3589 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3590 and 8 byte structs, for the remaining struct sizes don't call
3591 __lshrdi3, instead do the shifting inline.
3592
8a39029d
TS
35932005-12-07 Thiemo Seufer <ths@networkno.de>
3594
3595 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3596 missing parentheses.
3597 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3598 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3599 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3600 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3601 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3602 FA_0_0_OFF2.
3603 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3604 endianness bugs.
3605 (ffi_prep_closure): Improve trampoline instruction scheduling.
3606 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3607
cd4241aa
AM
36082005-12-03 Alan Modra <amodra@bigpond.net.au>
3609
3610 * src/powerpc/ffi.c: Formatting.
3611 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3612 (ffi_prep_args64): Likewise.
3613
0363db46
GK
36142005-09-30 Geoffrey Keating <geoffk@apple.com>
3615
3616 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3617 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3618
d674eb2f
TT
36192005-09-26 Tom Tromey <tromey@redhat.com>
3620
3621 * testsuite/libffi.call/float1.c (value_type): New typedef.
3622 (CANARY): New define.
3623 (main): Check for result buffer overflow.
3624 * src/powerpc/linux64.S: Handle linux64 long double returns.
3625 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3626 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3627
2d9c5743
AM
36282005-08-25 Alan Modra <amodra@bigpond.net.au>
3629
3630 PR target/23404
3631 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3632 homed fp args.
3633 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3634
8a42356f
JJ
36352005-08-11 Jakub Jelinek <jakub@redhat.com>
3636
3637 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3638 (AH_BOTTOM): Add FFI_HIDDEN definition.
3639 * configure: Rebuilt.
3640 * fficonfig.h.in: Rebuilt.
3641 * src/powerpc/ffi.c (hidden): Remove.
3642 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3643 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3644 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3645 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3646 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3647 add FFI_HIDDEN to its prototype.
3648 (ffi_closure_SYSV_inner): New.
3649 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3650 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3651
863c5508
AS
36522005-08-10 Alfred M. Szmidt <ams@gnu.org>
3653
3654 PR libffi/21819:
3655 * configure: Rebuilt.
3656 * configure.ac: Handle i*86-*-gnu*.
3657
6a26ea58
JJ
36582005-08-09 Jakub Jelinek <jakub@redhat.com>
3659
3660 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3661 DW_CFA_offset_extended_sf rather than
3662 DW_CFA_GNU_negative_offset_extended.
3663 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3664
583a92e8
ST
36652005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3666
3667 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3668 on sh3.
3669 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3670 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3671 partially on register.
3672 (ffi_closure_helper_SYSV): Likewise.
3673 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3674
5d0317fc
KK
36752005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3676
3677 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3678 Remove empty line.
3679 * src/sh64/ffi.c (simple_type): Remove.
3680 (return_type): Handle small structures correctly.
3681 (ffi_prep_args): Likewise.
3682 (ffi_call): Likewise.
3683 (ffi_closure_helper_SYSV): Likewise.
3684 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3685 Emit position independent code if PIC and remove wrong datalabel
3686 prefixes from EH data.
3687
8d9fd5f5
AT
36882005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
3689
3690 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3691 * Makefile.in: Regenerate.
3692 * include/Makefile.in: Likewise.
3693 * testsuite/Makefile.in: Likewise.
3694 * configure.ac: Add POWERPC_FREEBSD rules.
3695 * configure: Regenerate.
3696 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3697 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3698 * src/powerpc/ffi.c: Add flags to handle small structure returns
3699 in ffi_call_SYSV.
3700 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3701 Aka FFI_SYSV.
3702 (ffi_closure_helper_SYSV): Likewise.
3703 * src/powerpc/ppc_closure.S: Add return types for small structures.
3704 * src/powerpc/sysv.S: Add bits to handle small structures for
3705 final SYSV 4 ABI.
3706
93c76f81
AT
37072005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
3708
3709 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3710 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3711 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3712
b65da304
RC
37132005-07-05 Randolph Chung <tausq@debian.org>
3714
3715 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3716 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3717 structures. Kill compilation warnings.
3718 (ffi_closure_inner_LINUX): Print return values as hex in debug
3719 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3720 Properly handle 5-7 byte structure returns.
3721 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3722 (FFI_TYPE_SMALL_STRUCT2): Remove.
3723 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3724 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3725 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3726 (checksmst1, checksmst2): Remove.
3727 (checksmst3): Optimize handling of 3-byte struct returns.
3728 (checksmst567): Properly handle 5-7 byte struct returns.
3729
2572f1c6
RO
37302005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3731
3732 PR libgcj/21943
3733 * src/mips/n32.S: Enforce PIC code.
3734 * src/mips/o32.S: Likewise.
3735
cc786582
RO
37362005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3737
3738 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3739 * configure: Regenerate.
302486f4 3740
6d0d376c
AM
37412005-06-01 Alan Modra <amodra@bigpond.net.au>
3742
3743 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3744 to call ffi_closure_helper_SYSV. Append @local instead.
3745 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3746
a21946f5 37472005-05-17 Kelley Cook <kcook@gcc.gnu.org>
a097ef55
KC
3748
3749 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3750 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3751 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3752 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3753 include/Makefile.in, testsuite/Makefile.in: Regenerate.
302486f4 3754
f4c767fd
MS
37552005-05-09 Mike Stump <mrs@apple.com>
3756
3757 * configure: Regenerate.
3758
7e15b5fe
RH
37592005-05-08 Richard Henderson <rth@redhat.com>
3760
3761 PR libffi/21285
3762 * src/alpha/osf.S: Update unwind into to match code.
3763
d56ea8d9
RH
37642005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
3765 Richard Henderson <rth@redhat.com>
3766
3767 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3768 bit 11 of flags.
3769 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3770 (ffi_prep_closure): Set carry bit if sse-used flag set.
3771 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3772 Only load sse registers if ssecount non-zero.
3773 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3774
37752005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
d948c201
RC
3776
3777 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3778 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3779 * configure: Regenerate.
3780
fc0ad8d9
HPN
37812005-04-20 Hans-Peter Nilsson <hp@axis.com>
3782
3783 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3784 have Tcl8.3-compatible intermediate variable.
3785
302486f4 37862005-04-18 Simon Posnjak <simon.posnjak@siol.net>
614348bb
SP
3787 Hans-Peter Nilsson <hp@axis.com>
3788
3789 * Makefile.am: Add CRIS support.
3790 * configure.ac: Likewise.
29ede6db
HPN
3791 * Makefile.in, configure, testsuite/Makefile.in,
3792 include/Makefile.in: Regenerate.
614348bb
SP
3793 * src/cris: New directory.
3794 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3795 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
727e729b
HPN
3796
3797 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3798 \r?\n in output tests.
3799
6dab073b
MS
38002005-04-12 Mike Stump <mrs@apple.com>
3801
3802 * configure: Regenerate.
3803
51f55d7c
HB
38042005-03-30 Hans Boehm <Hans.Boehm@hp.com>
3805
3806 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
302486f4 3807
7efa52a3
SE
38082005-03-30 Steve Ellcey <sje@cup.hp.com>
3809
3810 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3811 (ffi_sarg) Ditto.
3812 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3813 to 64 bits in ILP32 mode.
3814 Load 64 bits even for short data.
3815
1488177a
MS
38162005-03-23 Mike Stump <mrs@apple.com>
3817
3818 * src/powerpc/darwin.S: Update for -m64 multilib.
3819 * src/powerpc/darwin_closure.S: Likewise.
3820
c6900272
ZW
38212005-03-21 Zack Weinberg <zack@codesourcery.com>
3822
3823 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3824 Do not set tool_include_dir.
3825 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3826 Regenerate.
3827 * include/Makefile.am: Set gcc_version and toollibffidir.
3828 * include/Makefile.in: Regenerate.
3829
962eea0a
AH
38302005-02-22 Andrew Haley <aph@redhat.com>
3831
3832 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3833 odd-numbered register pairs for 64-bit integer types.
3834
1b05e8bf
AT
38352005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
3836
3837 PR libffi/20104
3838 * testsuite/libffi.call/return_ll1.c: New test case.
3839
6027770b
JJ
38402005-02-11 Janis Johnson <janis187@us.ibm.com>
3841
3842 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3843 * testsuite/libffi.call/float.c: Ditto.
3844 * testsuite/libffi.call/float2.c: Ditto.
3845 * testsuite/libffi.call/float3.c: Ditto.
3846
ee31ea68
AT
38472005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
3848
3849 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3850
c16be7d5
EB
38512005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3852
3853 * testsuite/libffi.special/special.exp (cxx_options): Add
3854 -shared-libgcc.
3855
5df07255
RH
38562004-12-31 Richard Henderson <rth@redhat.com>
3857
3858 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3859 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
3860 offset parameters with a type parameter; deduce size and structure
3861 alignment. Update all users.
3862
81a69b13
RH
38632004-12-31 Richard Henderson <rth@redhat.com>
3864
3865 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3866 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
c6900272 3867 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
81a69b13
RH
3868 into ffi_prep_closure.
3869 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3870 from scratch.
3871
d833cfb0
RH
38722004-12-27 Richard Henderson <rth@redhat.com>
3873
3874 * src/x86/unix64.S: Fix typo in unwind info.
3875
1a0f488c
RH
38762004-12-25 Richard Henderson <rth@redhat.com>
3877
3878 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3879 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3880 (merge_classes): Check for it.
3881 (SSE_CLASS_P): New.
3882 (classify_argument): Pass byte_offset by value; perform all updates
3883 inside struct case.
3884 (examine_argument): Add classes argument; handle
3885 X86_64_COMPLEX_X87_CLASS.
3886 (ffi_prep_args): Merge into ...
3887 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
3888 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3889 (ffi_fill_return_value): Remove.
3890 (ffi_prep_closure): Remove dead assert.
3891 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
3892 Rewrite to use struct register_args instead of va_list. Create
3893 flags for handling structure returns.
3894 * src/x86/unix64.S: Remove dead strings.
3895 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
3896 stack frame with ffi_call. Handle structure returns properly.
3897 (float2sse, floatfloat2sse, double2sse): Remove.
3898 (sse2float, sse2double, sse2floatfloat): Remove.
3899 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
3900 to handle structure returns properly.
3901
7994d50c
DE
39022004-12-08 David Edelsohn <edelsohn@gnu.org>
3903
3904 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
3905 PICFLAG.
3906 * Makefile.in: Regenerated.
3907
afabd8e6
RS
39082004-12-02 Richard Sandiford <rsandifo@redhat.com>
3909
3910 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
3911 * configure, aclocal.m4, Makefile.in: Regenerate.
3912 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
3913
2539bffe
KC
39142004-11-29 Kelley Cook <kcook@gcc.gnu.org>
3915
3916 * configure: Regenerate for libtool change.
3917
767f726e
KC
39182004-11-25 Kelley Cook <kcook@gcc.gnu.org>
3919
3920 * configure: Regenerate for libtool reversion.
3921
2c92e90f
KC
39222004-11-24 Kelley Cook <kcook@gcc.gnu.org>
3923
3924 * configure: Regenerate for libtool change.
3925
1df8e834
JDA
39262004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3927
3928 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
3929
39302004-11-23 Richard Sandiford <rsandifo@redhat.com>
3931
3932 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
3933 of jal. Use an absolute encoding for the frame information.
3934
39352004-11-23 Kelley Cook <kcook@gcc.gnu.org>
3936
3937 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
3938 * acinclude.m4: Delete logic for sincludes.
3939 * aclocal.m4, Makefile.in, configure: Regenerate.
3940 * include/Makefile: Likewise.
3941 * testsuite/Makefile: Likewise.
3942
bf02e7fa
EB
39432004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3944
3945 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
3946 on a 8-byte boundary.
3947 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
3948
f20459f1
RE
39492004-10-27 Richard Earnshaw <rearnsha@arm.com>
3950
3951 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
3952 long long values. Round stack allocation to a multiple of 8 bytes
3953 for ATPCS compatibility.
3954 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
3955 names. Handle returning long long types. Add Thumb and interworking
3956 support. Improve soft-float code.
3957
fdc69597
RE
39582004-10-27 Richard Earnshaw <rearnsha@arm.com>
3959
3960 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
3961 (libffi_exit): New function.
3962 (libffi_init): Build the testglue wrapper if needed.
3963
1e02510f
EB
39642004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3965
3966 PR other/18138
3967 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
3968
d9a193b2
KI
39692004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3970
3971 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
3972
1fddb058
KK
39732004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
3974
3975 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
3976 * testsuite/libffi.call/float3.c: New test case.
3977
e0d3b452
KK
39782004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
3979
3980 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
3981 the function returning a structure pointed with R2.
3982 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
3983 the structure return value if T bit set. Emit position
3984 independent code and EH data if PIC.
3985
a472e9d4
KI
39862004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3987
3988 * Makefile.am: Add m32r support.
3989 * configure.ac: Likewise.
3990 * Makefile.in: Regenerate.
3991 * confiugre: Regenerate.
3992 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
3993 (uint64, sint64, double, longdouble)
3994 * src/m32r: New directory.
3995 * src/m32r/ffi.c: New file.
3996 * src/m32r/sysv.S: Likewise.
3997 * src/m32r/ffitarget.h: Likewise.
3998
3d47e9ca
KK
39992004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
4000
4001 * testsuite/libffi.call/negint.c: New test case.
4002
fc9051dd
L
40032004-09-14 H.J. Lu <hongjiu.lu@intel.com>
4004
4005 PR libgcj/17465
4006 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4007 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4008 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4009 DYLD_LIBRARY_PATH.
4010
2010caea
AT
40112004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4012
4013 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4014 * testsuite/libffi.call/promotion.c: Likewise.
4015 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4016 whitespaces.
4017 * testsuite/libffi.call/return_sc.c: Likewise.
4018 * testsuite/libffi.call/return_uc.c: Likewise.
4019
894be816
AT
40202004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
4021
4022 * src/powerpc/darwin.S: Fix comments and identation.
4023 * src/powerpc/darwin_closure.S: Likewise.
4024
2fe7404a
AT
40252004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4026
4027 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4028 (ffi_prep_args): Handle longdouble arguments.
4029 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4030 longdouble.
4031 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4032 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4033 values.
4034 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4035 * src/types.c: Defined longdouble size and alignment for darwin.
4036
16070e45
AT
40372004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
4038
4039 * src/powerpc/aix.S: Remove whitespaces.
4040 * src/powerpc/aix_closure.S: Likewise.
4041 * src/powerpc/asm.h: Likewise.
4042 * src/powerpc/ffi.c: Likewise.
4043 * src/powerpc/ffitarget.h: Likewise.
4044 * src/powerpc/linux64.S: Likewise.
4045 * src/powerpc/linux64_closure.S: Likewise.
4046 * src/powerpc/ppc_closure.S: Likewise.
4047 * src/powerpc/sysv.S: Likewise.
4048
88d8c771
AG
40492004-08-30 Anthony Green <green@redhat.com>
4050
4051 * Makefile.am: Add frv support.
4052 * Makefile.in, testsuite/Makefile.in: Rebuilt.
4053 * configure.ac: Read configure.host.
4054 * configure.in: Read configure.host.
4055 * configure.host: New file. frv-elf needs libgloss.
4056 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
a23adb4d 4057 alignment. This is needed to frv and shouldn't harm the others.
88d8c771
AG
4058 * include/ffi_common.h (ALIGN_DOWN): New macro.
4059 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4060
4c5f37d5
DD
40612004-08-24 David Daney <daney@avtrex.com>
4062
4063 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4064 * testsuite/libffi.call/closure_fn1.c: Likewise.
4065 * testsuite/libffi.call/closure_fn2.c Likewise.
4066 * testsuite/libffi.call/closure_fn3.c: Likewise.
4067 * testsuite/libffi.call/closure_fn4.c: Likewise.
4068 * testsuite/libffi.call/closure_fn5.c: Likewise.
4069 * testsuite/libffi.call/cls_18byte.c: Likewise.
4070 * testsuite/libffi.call/cls_19byte.c: Likewise.
4071 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4072 * testsuite/libffi.call/cls_20byte.c: Likewise.
4073 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4074 * testsuite/libffi.call/cls_24byte.c: Likewise.
4075 * testsuite/libffi.call/cls_2byte.c: Likewise.
4076 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4077 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4078 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4079 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4080 * testsuite/libffi.call/cls_4byte.c: Likewise.
4081 * testsuite/libffi.call/cls_64byte.c: Likewise.
4082 * testsuite/libffi.call/cls_6byte.c: Likewise.
4083 * testsuite/libffi.call/cls_7byte.c: Likewise.
4084 * testsuite/libffi.call/cls_8byte.c: Likewise.
4085 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4086 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4087 * testsuite/libffi.call/cls_align_double.c: Likewise.
4088 * testsuite/libffi.call/cls_align_float.c: Likewise.
4089 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4090 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4091 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4092 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4093 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4094 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4095 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4096 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4097 * testsuite/libffi.call/cls_double.c: Likewise.
4098 * testsuite/libffi.call/cls_float.c: Likewise.
4099 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4100 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4101 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4102 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4103 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4104 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4105 * testsuite/libffi.call/cls_schar.c: Likewise.
4106 * testsuite/libffi.call/cls_sint.c: Likewise.
4107 * testsuite/libffi.call/cls_sshort.c: Likewise.
4108 * testsuite/libffi.call/cls_uchar.c: Likewise.
4109 * testsuite/libffi.call/cls_uint.c: Likewise.
4110 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4111 * testsuite/libffi.call/cls_ushort.c: Likewise.
4112 * testsuite/libffi.call/nested_struct.c: Likewise.
4113 * testsuite/libffi.call/nested_struct1.c: Likewise.
4114 * testsuite/libffi.call/nested_struct2.c: Likewise.
4115 * testsuite/libffi.call/nested_struct3.c: Likewise.
4116 * testsuite/libffi.call/problem1.c: Likewise.
4117 * testsuite/libffi.special/unwindtest.cc: Likewise.
4118 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4119 to zero.
4120 * testsuite/libffi.call/cls_16byte.c: Likewise.
4121 * testsuite/libffi.call/cls_5byte.c: Likewise.
4122
39dca114
DD
41232004-08-23 David Daney <daney@avtrex.com>
4124
4125 PR libgcj/13141
4126 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4127 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4128 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4129 parameters and return types.
4130 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4131 (ffi_prep_closure): Ditto.
4132 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4133 alignment calculations.
4134 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4135 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4136
b790003a
CM
41372004-08-14 Casey Marshall <csm@gnu.org>
4138
4139 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4140 contain `FFI_TYPE_UINT64' as return type for any 64-bit
4141 integer (O32 ABI only).
4142 (ffi_prep_closure): new function.
4143 (ffi_closure_mips_inner_O32): new function.
c6900272 4144 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
b790003a
CM
4145 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4146 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4147 64 bit integers correctly.
4148 (ffi_closure_O32): new function.
4149 Added DWARF-2 unwind info for both functions.
4150
547d71a1
AH
41512004-08-10 Andrew Haley <aph@redhat.com>
4152
4153 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4154
98a5bb3b
RM
41552004-08-01 Robert Millan <robertmh@gnu.org>
4156
4157 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4158 * configure: Regenerate.
4159
4d447364
MR
41602004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
4161
4162 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4163 and mmap() explicitly instead of relying on preset autoconf cache
4164 variables.
4165 * aclocal.m4: Regenerate.
4166 * configure: Regenerate.
4167
e5dce82f
UW
41682004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
4169
4170 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4171 (ffi_check_float_struct): Remove unused prototype.
4172
e6a0022b
GK
41732004-06-30 Geoffrey Keating <geoffk@apple.com>
4174
4175 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4176 character on Darwin, use '\n\t' instead.
4177
5a2d52ca
MK
41782004-06-26 Matthias Klose <doko@debian.org>
4179
4180 * libtool-version: Fix typo in revision/age.
4181
401844ef
MK
41822004-06-17 Matthias Klose <doko@debian.org>
4183
4184 * libtool-version: New.
4185 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4186 * Makefile.in: Regenerate.
4187
94632047 41882004-06-15 Paolo Bonzini <bonzini@gnu.org>
076e5443
PB
4189
4190 * Makefile.am: Remove useless multilib rules.
4191 * Makefile.in: Regenerate.
4192 * aclocal.m4: Regenerate with automake 1.8.5.
4193 * configure.ac: Remove useless multilib configury.
4194 * configure: Regenerate.
4195
94632047 41962004-06-15 Paolo Bonzini <bonzini@gnu.org>
9ac926b1
PB
4197
4198 * .cvsignore: New file.
4199
37c849e4
JJ
42002004-06-10 Jakub Jelinek <jakub@redhat.com>
4201
4202 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4203 fp_done.
4204 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4205 changed from 8.
4206
cb623172
SM
42072004-06-06 Sean McNeil <sean@mcneil.com>
4208
4209 * configure.ac: Add x86_64-*-freebsd* support.
4210 * configure: Regenerate.
4211
c9b93377
JB
42122004-04-26 Joe Buck <jbuck@welsh-buck.org>
4213
4214 Bug 15093
4215 * configure.ac: Test for existence of mmap and sys/mman.h before
4216 checking blacklist. Fix suggested by Jim Wilson.
4217 * configure: Regenerate.
4218
cf90fd1b
MA
42192004-04-26 Matt Austern <austern@apple.com>
4220
4221 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4222 FDE location.
4223 * src/powerpc/darwin_closure.S: Likewise.
c6900272 4224
67781b44
AT
42252004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
4226
4227 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4228 error. Reported by Thomas Heller <theller@python.net>.
4229 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4230 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4231
14b078a8
MK
42322004-03-20 Matthias Klose <doko@debian.org>
4233
4234 * src/pa/linux.S: Fix typo.
4235
d65a810f
MK
42362004-03-19 Matthias Klose <doko@debian.org>
4237
67781b44 4238 * Makefile.am: Update.
d65a810f
MK
4239 * Makefile.in: Regenerate.
4240 * src/pa/ffi.h.in: Remove.
4241 * src/pa/ffitarget.h: New file.
4242
42432004-02-10 Randolph Chung <tausq@debian.org>
4244
4245 * Makefile.am: Add PA support.
4246 * Makefile.in: Regenerate.
4247 * include/Makefile.in: Regenerate.
4248 * configure.ac: Add PA target.
4249 * configure: Regenerate.
4250 * src/pa/ffi.c: New file.
4251 * src/pa/ffi.h.in: Add PA support.
4252 * src/pa/linux.S: New file.
4253 * prep_cif.c: Add PA support.
4254
09cababc
HY
42552004-03-16 Hosaka Yuji <hos@tamanegi.org>
4256
4257 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4258 double.
4259 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4260 with ecif->cif->flags.
4261 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4262 with cif->flags.
4263 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4264 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4265 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4266 sc_retstruct2b): Add for 1 or 2-bytes struct case.
4267
0e8d0c5f
KC
42682004-03-15 Kelley Cook <kcook@gcc.gnu.org>
4269
4270 * configure.in: Rename file to ...
4271 * configure.ac: ... this.
4272 * fficonfig.h.in: Regenerate.
4273 * Makefile.in: Regenerate.
4274 * include/Makefile.in: Regenerate.
4275 * testsuite/Makefile.in: Regenerate.
4276
b8d50739
MA
42772004-03-12 Matt Austern <austern@apple.com>
4278
4279 * src/powerpc/darwin.S: Fix EH information so it corresponds to
4280 changes in EH format resulting from addition of linkonce support.
4281 * src/powerpc/darwin_closure.S: Likewise.
09cababc 4282
3ed8e5b6
AT
42832004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
4284 Paolo Bonzini <bonzini@gnu.org>
4285
4286 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4287 Remove VPATH. Remove rules for object files. Remove multilib support.
4288 (AM_CCASFLAGS): Add.
4289 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4290 (AC_PREREQ): Bump version to 2.59.
4291 (AC_INIT): Fill with version info and bug address.
4292 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4293 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4294 De-precious CC so that the right flags are passed down to multilibs.
4295 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4296 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4297 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4298 * configure: Rebuilt.
4299 * aclocal.m4: Likewise.
4300 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4301 * fficonfig.h.in: Likewise.
4302
254ea477
AS
43032004-03-11 Andreas Schwab <schwab@suse.de>
4304
4305 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4306 arguments from fp registers only for the first 8 parameter slots.
4307 Don't convert a float parameter when passed in memory.
4308
3beb1315
HPN
43092004-03-09 Hans-Peter Nilsson <hp@axis.com>
4310
4311 * configure: Regenerate for config/accross.m4 correction.
4312
fecf735c
MK
43132004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
4314
4315 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4316 ecif->cif->bytes to bytes.
4317 (ffi_prep_cif_machdep): Add braces around nested if statement.
4318
4243752c
AM
43192004-02-09 Alan Modra <amodra@bigpond.net.au>
4320
12001e0f
AM
4321 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4322
4243752c
AM
4323 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4324 (ffi_closure_helper_LINUX64): Fix typo.
4325 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4326 for powerpc64-*-*.
4327 * testsuite/libffi.call/float.c: Likewise.
4328 * testsuite/libffi.call/float2.c: Likewise.
4329
bf310028
AM
43302004-02-08 Alan Modra <amodra@bigpond.net.au>
4331
4332 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4333 long double function return and long double arg handling.
4334 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
4335 Use "end_pfr" instead of "nf". Correct long double handling.
4336 Localise "temp".
4337 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4338 return value.
4339 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4340 space for long double return value. Adjust stack frame and offsets.
4341 Load f2 long double return.
4342
dd5f9ea2
AM
43432004-02-07 Alan Modra <amodra@bigpond.net.au>
4344
4345 * src/types.c: Use 16 byte long double for POWERPC64.
4346
0ce78f01
EB
43472004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4348
4349 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4350 when the structure return address is passed in %o0.
4351 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4352 (ffi_v9_layout_struct): Align the field following a nested structure
4353 on a word boundary. Use memmove instead of memcpy.
4354 (ffi_call): Update call to ffi_V9_return_struct.
4355 (ffi_prep_closure): Define 'ctx' only for V8.
4356 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4357 and ffi_closure_sparc_inner_v9.
4358 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4359 Always skip the structure return address. For structures and long
4360 doubles, copy the argument directly.
4361 (ffi_closure_sparc_inner_v9): Skip the structure return address only
4362 if required. Shift the maximum floating-point slot accordingly. For
4363 big structures, copy the argument directly; otherwise, left-justify the
4364 argument and call ffi_v9_layout_struct to lay out the structure on
4365 the stack.
4366 * src/sparc/v8.S: Undef STACKFRAME before defining it.
4367 (ffi_closure_v8): Pass the structure return address. Update call to
4368 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
4369 Skip the 'unimp' insn when returning long doubles and structures.
4370 * src/sparc/v9.S: Undef STACKFRAME before defining it.
4371 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
4372 FFI_TYPE_INT handling. Load structures both in integers and
4373 floating-point registers on return.
4374 * README: Update status of the SPARC port.
4375
7fcc1d9b
AT
43762004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
4377
4378 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4379 as of type ffi_arg.
4380 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4381
6ed0ecaf
UW
43822004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
4383
4384 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4385 value as of type ffi_arg, not unsigned int.
4386
c930d8a5
MR
43872004-01-21 Michael Ritzert <ritzert@t-online.de>
4388
4389 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4390 of the LHS.
4391
7b2e3e60
AT
43922004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4393
4394 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4395 Solaris.
4396
2e89756b
RO
43972004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4398
4399 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4400 to void *.
4401
628b26f8
RH
44022003-12-10 Richard Henderson <rth@redhat.com>
4403
4404 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4405 size_t instead of int.
4406
0ee646d6
HY
44072003-12-04 Hosaka Yuji <hos@tamanegi.org>
4408
4409 * testsuite/libffi.call/many_win32.c: Include <float.h>.
4410 * testsuite/libffi.call/many_win32.c (main): Replace variable
4411 int i with unsigned long ul.
4412
4413 * testsuite/libffi.call/cls_align_uint64.c: New test case.
4414 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4415 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4416 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4417 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4418 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4419 * testsuite/libffi.call/cls_align_float.c: Likewise.
4420 * testsuite/libffi.call/cls_align_double.c: Likewise.
4421 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4422 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4423
2c4ed456
HY
44242003-12-02 Hosaka Yuji <hos@tamanegi.org>
4425
4426 PR other/13221
4427 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4428 Align arguments to 32 bits.
4429
d18c3386
AT
44302003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
4431
4432 PR other/13221
4433 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4434 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4435 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4436 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4437 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4438 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4439
4440 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4441
88096b2a
KG
44422003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4443
4444 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4445 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4446
3eee102e
AT
44472003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
4448
4449 * Makefile.in: Rebuilt.
4450 * configure: Likewise.
4451 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4452 the right type.
4453
5196736e
AJ
44542003-11-21 Andreas Jaeger <aj@suse.de>
4455 Andreas Tobler <a.tobler@schweiz.ch>
4456
4457 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4458 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4459 * Makefile.in: Rebuilt.
4460 * aclocal.m4: Likewise.
4461 * configure: Likewise.
4462 * fficonfig.h.in: Likewise.
4463 * testsuite/lib/libffi-dg.exp: Add include dir.
4464 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4465 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4466 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4467 for ffi_closure if available.
4468 * testsuite/libffi.call/closure_fn1.c: Likewise.
4469 * testsuite/libffi.call/closure_fn2.c: Likewise.
4470 * testsuite/libffi.call/closure_fn3.c: Likewise.
4471 * testsuite/libffi.call/closure_fn4.c: Likewise.
4472 * testsuite/libffi.call/closure_fn5.c: Likewise.
4473 * testsuite/libffi.call/cls_12byte.c: Likewise.
4474 * testsuite/libffi.call/cls_16byte.c: Likewise.
4475 * testsuite/libffi.call/cls_18byte.c: Likewise.
4476 * testsuite/libffi.call/cls_19byte.c: Likewise.
4477 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4478 * testsuite/libffi.call/cls_20byte.c: Likewise.
4479 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4480 * testsuite/libffi.call/cls_24byte.c: Likewise.
4481 * testsuite/libffi.call/cls_2byte.c: Likewise.
4482 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4483 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4484 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4485 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4486 * testsuite/libffi.call/cls_4byte.c: Likewise.
4487 * testsuite/libffi.call/cls_5byte.c: Likewise.
4488 * testsuite/libffi.call/cls_64byte.c: Likewise.
4489 * testsuite/libffi.call/cls_6byte.c: Likewise.
4490 * testsuite/libffi.call/cls_7byte.c: Likewise.
4491 * testsuite/libffi.call/cls_8byte.c: Likewise.
4492 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4493 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4494 * testsuite/libffi.call/cls_double.c: Likewise.
4495 * testsuite/libffi.call/cls_float.c: Likewise.
4496 * testsuite/libffi.call/cls_schar.c: Likewise.
4497 * testsuite/libffi.call/cls_sint.c: Likewise.
4498 * testsuite/libffi.call/cls_sshort.c: Likewise.
4499 * testsuite/libffi.call/cls_uchar.c: Likewise.
4500 * testsuite/libffi.call/cls_uint.c: Likewise.
4501 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4502 * testsuite/libffi.call/cls_ushort.c: Likewise.
4503 * testsuite/libffi.call/nested_struct.c: Likewise.
4504 * testsuite/libffi.call/nested_struct1.c: Likewise.
4505 * testsuite/libffi.call/nested_struct2.c: Likewise.
4506 * testsuite/libffi.call/nested_struct3.c: Likewise.
4507 * testsuite/libffi.call/problem1.c: Likewise.
4508 * testsuite/libffi.special/unwindtest.cc: Likewise.
4509
9e6c3ecb
AT
45102003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
4511
4512 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4513
70d8f2a1
AT
45142003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
4515
4516 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4517 Add -lgcc_s to additional flags.
4518
ea81d2a3
AT
45192003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
4520
4521 * configure.in, include/Makefile.am: PR libgcj/11147, install
4522 the ffitarget.h header file in a gcc versioned and target
4523 dependent place.
4524 * configure: Regenerated.
4525 * Makefile.in, include/Makefile.in: Likewise.
4526 * testsuite/Makefile.in: Likewise.
4527
647af4a9
AT
45282003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
4529
4530 * testsuite/libffi.call/closure_fn0.c: Print result and check
4531 with dg-output to make debugging easier.
4532 * testsuite/libffi.call/closure_fn1.c: Likewise.
4533 * testsuite/libffi.call/closure_fn2.c: Likewise.
4534 * testsuite/libffi.call/closure_fn3.c: Likewise.
4535 * testsuite/libffi.call/closure_fn4.c: Likewise.
4536 * testsuite/libffi.call/closure_fn5.c: Likewise.
4537 * testsuite/libffi.call/cls_12byte.c: Likewise.
4538 * testsuite/libffi.call/cls_16byte.c: Likewise.
4539 * testsuite/libffi.call/cls_18byte.c: Likewise.
4540 * testsuite/libffi.call/cls_19byte.c: Likewise.
4541 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4542 * testsuite/libffi.call/cls_20byte.c: Likewise.
4543 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4544 * testsuite/libffi.call/cls_24byte.c: Likewise.
4545 * testsuite/libffi.call/cls_2byte.c: Likewise.
4546 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4547 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4548 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4549 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4550 * testsuite/libffi.call/cls_4byte.c: Likewise.
4551 * testsuite/libffi.call/cls_5byte.c: Likewise.
4552 * testsuite/libffi.call/cls_64byte.c: Likewise.
4553 * testsuite/libffi.call/cls_6byte.c: Likewise.
4554 * testsuite/libffi.call/cls_7byte.c: Likewise.
4555 * testsuite/libffi.call/cls_8byte.c: Likewise.
4556 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4557 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4558 * testsuite/libffi.call/cls_double.c: Likewise.
4559 * testsuite/libffi.call/cls_float.c: Likewise.
4560 * testsuite/libffi.call/cls_schar.c: Likewise.
4561 * testsuite/libffi.call/cls_sint.c: Likewise.
4562 * testsuite/libffi.call/cls_sshort.c: Likewise.
4563 * testsuite/libffi.call/cls_uchar.c: Likewise.
4564 * testsuite/libffi.call/cls_uint.c: Likewise.
4565 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4566 * testsuite/libffi.call/cls_ushort.c: Likewise.
4567 * testsuite/libffi.call/problem1.c: Likewise.
4568
4569 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4570 static.
4571
ac47cc13
AT
45722003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4573
4574 * testsuite/libffi.call/cls_9byte2.c: New test case.
4575 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4576 * testsuite/libffi.call/cls_64byte.c: Likewise.
4577 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4578 * testsuite/libffi.call/cls_19byte.c: Likewise.
4579 * testsuite/libffi.call/cls_18byte.c: Likewise.
4580 * testsuite/libffi.call/closure_fn4.c: Likewise.
4581 * testsuite/libffi.call/closure_fn5.c: Likewise.
4582 * testsuite/libffi.call/cls_schar.c: Likewise.
4583 * testsuite/libffi.call/cls_sint.c: Likewise.
4584 * testsuite/libffi.call/cls_sshort.c: Likewise.
4585 * testsuite/libffi.call/nested_struct2.c: Likewise.
4586 * testsuite/libffi.call/nested_struct3.c: Likewise.
4587
f145ed6b
AT
45882003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
4589
4590 * testsuite/libffi.call/cls_double.c: Do a check on the result.
4591 * testsuite/libffi.call/cls_uchar.c: Likewise.
4592 * testsuite/libffi.call/cls_uint.c: Likewise.
4593 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4594 * testsuite/libffi.call/cls_ushort.c: Likewise.
4595 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4596
2b04d015
AT
45972003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
4598
4599 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4600 the initialization.
4601
57f542b3
AT
46022003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
4603
2b04d015 4604 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
57f542b3
AT
4605 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4606
e61acf72
DD
46072003-10-22 David Daney <ddaney@avtrex.com>
4608
4609 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4610 __attribute__((__mode__(__SI__))) and friends.
4611
2461c08b
AS
46122003-10-22 Andreas Schwab <schwab@suse.de>
4613
4614 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4615
1450eb7a
AT
46162003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
4617
4618 * configure.in: AC_LINK_FILES(ffitarget.h).
4619 * configure: Regenerate.
4620 * Makefile.in: Likewise.
4621 * include/Makefile.in: Likewise.
4622 * testsuite/Makefile.in: Likewise.
4623 * fficonfig.h.in: Likewise.
4624
46252003-10-21 Paolo Bonzini <bonzini@gnu.org>
4626 Richard Henderson <rth@redhat.com>
4627
4628 Avoid that ffi.h includes fficonfig.h.
4629
4630 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4631 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4632 (TARGET_SRC_MIPS_SGI): Removed.
4633 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4634 (MIPS_SGI): Removed.
4635 (CLEANFILES): Removed.
4636 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4637 targets.
4638 * acconfig.h: Removed.
4639 * configure.in: Compute sizeofs only for double and long double.
4640 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
4641 into AC_DEFINE instead of using acconfig.h. Create
4642 include/ffitarget.h instead of include/fficonfig.h. Rename
4643 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4644 AC_DEFINE EH_FRAME_FLAGS.
4645 * include/Makefile.am (DISTCLEANFILES): New automake macro.
4646 (hack_DATA): Add ffitarget.h.
4647 * include/ffi.h.in: Remove all system specific definitions.
4648 Declare raw API even if it is not installed, why bother?
4649 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
4650 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
4651 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
4652 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4653 * include/ffi_common.h (bool): Do not define.
4654 (ffi_assert): Accept failed assertion.
4655 (ffi_type_test): Return void and accept file/line.
4656 (FFI_ASSERT): Pass stringized failed assertion.
4657 (FFI_ASSERT_AT): New macro.
4658 (FFI_ASSERT_VALID_TYPE): New macro.
4659 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4660 UINT64, SINT64): Define here with gcc's __attribute__ macro
4661 instead of in ffi.h
4662 (FLOAT32, ALIGN): Define here instead of in ffi.h
4663 * include/ffi-mips.h: Removed. Its content moved to
4664 src/mips/ffitarget.h after separating assembly and C sections.
4665 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4666 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4667 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4668 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4669 SIZEOF_ARG -> FFI_SIZEOF_ARG.
4670 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4671 * src/debug.c (ffi_assert): Accept stringized failed assertion.
4672 (ffi_type_test): Rewritten.
4673 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4674 FFI_ASSERT_VALID_TYPE.
4675 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4676 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4677 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4678 src/s390/ffitarget.h, src/sh/ffitarget.h,
4679 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4680 src/x86/ffitarget.h: New files.
4681 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4682 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4683 src/powerpc/aix.S, src/powerpc/darwin.S,
4684 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4685 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4686 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4687 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4688 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4689 include fficonfig.h
4690
27d54b2a
RO
46912003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4692
4693 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4694 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4695
0df6970d
AT
46962003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
4697
4698 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4699 Used when FFI_DEBUG = 1.
4700
2612ffce
AM
47012003-10-14 Alan Modra <amodra@bigpond.net.au>
4702
4703 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4704 and align.
4705
d54f7354
RO
47062003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4707
4708 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4709 FFI_MIPS_O32 for O32 ABI.
4710
7a54c850
AT
47112003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
4712
4713 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4714 SPARC64. Cleanup whitespaces.
4715
9e3bfa9b
AT
47162003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
4717
4718 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4719 strongarm, xscale. Cleanup whitespaces.
4720 * testsuite/libffi.call/closure_fn1.c: Likewise.
4721 * testsuite/libffi.call/closure_fn2.c: Likewise.
4722 * testsuite/libffi.call/closure_fn3.c: Likewise.
4723 * testsuite/libffi.call/cls_12byte.c: Likewise.
4724 * testsuite/libffi.call/cls_16byte.c: Likewise.
4725 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4726 * testsuite/libffi.call/cls_20byte.c: Likewise.
4727 * testsuite/libffi.call/cls_24byte.c: Likewise.
4728 * testsuite/libffi.call/cls_2byte.c: Likewise.
4729 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4730 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4731 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4732 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4733 * testsuite/libffi.call/cls_4byte.c: Likewise.
4734 * testsuite/libffi.call/cls_5byte.c: Likewise.
4735 * testsuite/libffi.call/cls_6byte.c: Likewise.
4736 * testsuite/libffi.call/cls_7byte.c: Likewise.
4737 * testsuite/libffi.call/cls_8byte.c: Likewise.
4738 * testsuite/libffi.call/cls_double.c: Likewise.
4739 * testsuite/libffi.call/cls_float.c: Likewise.
4740 * testsuite/libffi.call/cls_uchar.c: Likewise.
4741 * testsuite/libffi.call/cls_uint.c: Likewise.
4742 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4743 * testsuite/libffi.call/cls_ushort.c: Likewise.
4744 * testsuite/libffi.call/nested_struct.c: Likewise.
4745 * testsuite/libffi.call/nested_struct1.c: Likewise.
4746 * testsuite/libffi.call/problem1.c: Likewise.
4747 * testsuite/libffi.special/unwindtest.cc: Likewise.
4748 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4749
3e86b595
DE
47502003-09-18 David Edelsohn <edelsohn@gnu.org>
4751
4752 * src/powerpc/aix.S: Cleanup whitespaces.
4753 * src/powerpc/aix_closure.S: Likewise.
4754
8d8369f8
AT
47552003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4756
4757 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4758 * src/powerpc/darwin_closure.S: Likewise.
4759 * src/powerpc/ffi_darwin.c: Likewise.
4760
69b182fd
AT
47612003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
4762 David Edelsohn <edelsohn@gnu.org>
4763
4764 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4765 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4766 parameter stack.
4767 * src/powerpc/darwin_closure.S: Likewise.
4768 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4769 according to the Darwin/AIX ABI.
4770 (ffi_prep_cif_machdep): Likewise.
4771 (ffi_closure_helper_DARWIN): Likewise.
4772 Remove the outgoing parameter stack logic. Simplify the evaluation
4773 of the different CASE types.
4774 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4775 statement in the trampoline code.
4776
df805cdc
KK
47772003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
4778
4779 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4780 for the register size.
4781 (ffi_closure_helper_SYSV): Handle the structure return value
4782 address correctly.
4783 (ffi_closure_helper_SYSV): Return the appropriate type when
4784 the registers are used for the structure return value.
4785 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4786 the 64-bit return value. Update copyright years.
4787
eb26c76c
RO
47882003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4789
4790 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4791 srcdir for ffi_mips.h.
4792
6350c02c
AM
47932003-09-12 Alan Modra <amodra@bigpond.net.au>
4794
4795 * src/prep_cif.c (initialize_aggregate): Include tail padding in
4796 structure size.
4797 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4798 placement of float result.
4799 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4800 cast of "resp" for big-endian 64 bit machines.
4801
5af1c806
AM
48022003-09-11 Alan Modra <amodra@bigpond.net.au>
4803
4804 * src/types.c (double, longdouble): Merge identical SH and ARM
4805 typedefs, and add POWERPC64.
4806 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4807 struct split over gpr and rest.
4808 (ffi_prep_cif_machdep): Correct intarg_count for structures.
4809 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4810
086a4bd7
AT
48112003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
4812
4813 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4814 passing correctly.
c930d8a5 4815
e517f636
AM
48162003-09-09 Alan Modra <amodra@bigpond.net.au>
4817
4818 * configure: Regenerate.
4819
6f20d627
AT
48202003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4821
4822 * Makefile.am: Remove build rules for ffitest.
4823 * Makefile.in: Rebuilt.
c930d8a5 4824
6f20d627 48252003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
226660af
AT
4826
4827 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4828 about implicit declaration of abort().
4829
bbf3057b
AT
48302003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
4831
4832 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
4833 * Makefile.in: Rebuilt.
4834 * configure.in: Add dejagnu test framework.
4835 * configure: Rebuilt.
4836
4837 * testsuite/Makefile.am: New file.
4838 * testsuite/Makefile.in: Built
c930d8a5 4839 * testsuite/lib/libffi-dg.exp: New file.
bbf3057b
AT
4840 * testsuite/config/default.exp: Likewise.
4841 * testsuite/libffi.call/call.exp: Likewise.
4842 * testsuite/libffi.call/ffitest.h: Likewise.
4843 * testsuite/libffi.call/closure_fn0.c: Likewise.
4844 * testsuite/libffi.call/closure_fn1.c: Likewise.
4845 * testsuite/libffi.call/closure_fn2.c: Likewise.
4846 * testsuite/libffi.call/closure_fn3.c: Likewise.
4847 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4848 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4849 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4850 * testsuite/libffi.call/cls_2byte.c: Likewise.
4851 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4852 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4853 * testsuite/libffi.call/cls_4byte.c: Likewise.
4854 * testsuite/libffi.call/cls_5byte.c: Likewise.
4855 * testsuite/libffi.call/cls_6byte.c: Likewise.
4856 * testsuite/libffi.call/cls_7byte.c: Likewise.
4857 * testsuite/libffi.call/cls_8byte.c: Likewise.
4858 * testsuite/libffi.call/cls_12byte.c: Likewise.
4859 * testsuite/libffi.call/cls_16byte.c: Likewise.
4860 * testsuite/libffi.call/cls_20byte.c: Likewise.
4861 * testsuite/libffi.call/cls_24byte.c: Likewise.
4862 * testsuite/libffi.call/cls_double.c: Likewise.
4863 * testsuite/libffi.call/cls_float.c: Likewise.
4864 * testsuite/libffi.call/cls_uchar.c: Likewise.
4865 * testsuite/libffi.call/cls_uint.c: Likewise.
4866 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4867 * testsuite/libffi.call/cls_ushort.c: Likewise.
4868 * testsuite/libffi.call/float.c: Likewise.
4869 * testsuite/libffi.call/float1.c: Likewise.
4870 * testsuite/libffi.call/float2.c: Likewise.
4871 * testsuite/libffi.call/many.c: Likewise.
4872 * testsuite/libffi.call/many_win32.c: Likewise.
4873 * testsuite/libffi.call/nested_struct.c: Likewise.
4874 * testsuite/libffi.call/nested_struct1.c: Likewise.
4875 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
4876 * testsuite/libffi.call/problem1.c: Likewise.
4877 * testsuite/libffi.call/promotion.c: Likewise.
4878 * testsuite/libffi.call/return_ll.c: Likewise.
4879 * testsuite/libffi.call/return_sc.c: Likewise.
4880 * testsuite/libffi.call/return_uc.c: Likewise.
4881 * testsuite/libffi.call/strlen.c: Likewise.
4882 * testsuite/libffi.call/strlen_win32.c: Likewise.
4883 * testsuite/libffi.call/struct1.c: Likewise.
4884 * testsuite/libffi.call/struct2.c: Likewise.
4885 * testsuite/libffi.call/struct3.c: Likewise.
4886 * testsuite/libffi.call/struct4.c: Likewise.
4887 * testsuite/libffi.call/struct5.c: Likewise.
4888 * testsuite/libffi.call/struct6.c: Likewise.
4889 * testsuite/libffi.call/struct7.c: Likewise.
4890 * testsuite/libffi.call/struct8.c: Likewise.
c930d8a5 4891 * testsuite/libffi.call/struct9.c: Likewise.
bbf3057b
AT
4892 * testsuite/libffi.special/special.exp: New file.
4893 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4894 * testsuite/libffi.special/unwindtest.cc: Likewise.
4895
c930d8a5 4896
996b4f8f
KK
48972003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
4898
4899 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
4900 copyright years.
4901
b00badcd
AM
49022003-08-02 Alan Modra <amodra@bigpond.net.au>
4903
4904 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
4905 structure passing.
4906 (ffi_closure_helper_LINUX64): Likewise.
4907 * src/powerpc/linux64.S: Remove code writing to parm save area.
4908 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
4909 address in lr from ffi_closure_helper_LINUX64 call to calculate
4910 table address. Optimize function tail.
4911
c1516eae
AT
49122003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
4913
4914 * src/sparc/ffi.c: Handle all floating point registers.
4915 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
4916
fc0e6222
GP
49172003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4918
4919 * README: Note that libffi is not part of GCC. Update the project
4920 URL and status.
4921
a1569df8
FS
49222003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4923
4924 * src/powerpc/ppc_closure.S: Include ffi.h.
4925
12e816bf
RO
49262003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4927
4928 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
4929 Use C style comments.
4930
e860ed6d
KK
49312003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4932
4933 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
4934 * Makefile.in: Regenerate.
4935 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
4936 * configure: Regenerate.
4937 * include/ffi.h.in: Add SHmedia support.
4938 * src/sh64/ffi.c: New file.
4939 * src/sh64/sysv.S: New file.
4940
a733b15e
JJ
49412003-05-16 Jakub Jelinek <jakub@redhat.com>
4942
4943 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
4944 should be read-only.
4945 * configure: Rebuilt.
4946 * fficonfig.h.in: Rebuilt.
4947 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
4948 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
4949 * src/powerpc/linux64.S: Likewise.
4950 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
4951 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
4952 if -fpic/-fPIC/-mrelocatable.
4953 * src/powerpc/powerpc_closure.S: Likewise.
4954 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
4955 #write in .eh_frame flags.
4956 * src/sparc/v9.S: Likewise.
4957 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
4958 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
4959 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
4960
bd19c9f4
JS
49612003-05-07 Jeff Sturm <jsturm@one-point.com>
4962
4963 Fixes PR bootstrap/10656
4964 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
4965 support for .register pseudo-op.
4966 * src/sparc/v8.S: Use it.
4967 * fficonfig.h.in: Rebuilt.
4968 * configure: Rebuilt.
4969
e9b84181
JJ
49702003-04-18 Jakub Jelinek <jakub@redhat.com>
4971
4972 * include/ffi.h.in (POWERPC64): Define if 64-bit.
4973 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
4974 Make it the default on POWERPC64.
4975 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
4976 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
4977 * configure: Rebuilt.
4978 * src/powerpc/ffi.c (hidden): Define.
4979 (ffi_prep_args_SYSV): Renamed from
4980 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
4981 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
4982 ASM_NEEDS_REGISTERS64): New.
4983 (ffi_prep_args64): New function.
4984 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
4985 (ffi_call): Likewise.
4986 (ffi_prep_closure): Likewise.
4987 (flush_icache): Surround by #ifndef POWERPC64.
4988 (ffi_dblfl): New union type.
4989 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
4990 (ffi_closure_helper_LINUX64): New function.
4991 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
4992 __powerpc64__.
4993 * src/powerpc/sysv.S: Likewise.
4994 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
4995 * src/powerpc/linux64.S: New file.
4996 * src/powerpc/linux64_closure.S: New file.
4997 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
4998 src/powerpc/linux64_closure.S.
4999 (TARGET_SRC_POWERPC): Likewise.
5000
5001 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
5002 closure_test_fn3): Fix result printing on big-endian 64-bit
5003 machines.
5004 (main): Print tst2_arg instead of uninitialized tst2_result.
5005
5006 * src/ffitest.c (main): Hide what closure pointer really points to
5007 from the compiler.
5008
908a31e1
RE
50092003-04-16 Richard Earnshaw <rearnsha@arm.com>
5010
5011 * configure.in (arm-*-netbsdelf*): Add configuration.
5012 (configure): Regenerated.
5013
41a73c4c
LR
50142003-04-04 Loren J. Rittle <ljrittle@acm.org>
5015
5016 * include/Makefile.in: Regenerate.
5017
cd41c847
ZD
50182003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5019
5020 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5021 bit mode.
5022 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5023 Receive closure pointer through parameter, read args using
5024 __builtin_dwarf_cfa.
5025 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5026
6db450f9
AS
50272003-03-12 Andreas Schwab <schwab@suse.de>
5028
5029 * configure.in: Avoid trailing /. in toolexeclibdir.
5030 * configure: Rebuilt.
5031
70144e9c
AT
50322003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
5033
c6900272 5034 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
70144e9c 5035
79e43f89
AT
50362003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
5037
5038 * libffi/src/powerpc/darwin_closure.S:
5039 Fix alignement bug, allocate 8 bytes for the result.
c930d8a5 5040 * libffi/src/powerpc/aix_closure.S:
79e43f89
AT
5041 Likewise.
5042 * libffi/src/powerpc/ffi_darwin.c:
5043 Update stackframe description for aix/darwin_closure.S.
c930d8a5 5044
0fcc9e55
JJ
50452003-02-06 Jakub Jelinek <jakub@redhat.com>
5046
5047 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5048 attribute.
5049
63b87c2e
CC
50502003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
5051 Andreas Schwab <schwab@suse.de>
5052
c6900272 5053 * configure.in: Adjust command to source config-ml.in to account
63b87c2e
CC
5054 for changes to the libffi_basedir definition.
5055 (libffi_basedir): Remove ${srcdir} from value and include trailing
5056 slash if nonempty.
c930d8a5 5057
c6900272 5058 * configure: Regenerate.
63b87c2e 5059
c33402e2
FS
50602003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5061
5062 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5063
fd2e49b2
AH
50642003-01-28 Andrew Haley <aph@redhat.com>
5065
5066 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5067 * src/x86/ffi64.c (ffi_prep_closure): New.
5068 (ffi_closure_UNIX64_inner): New.
5069 * src/x86/unix64.S (ffi_closure_UNIX64): New.
5070
0e292c01
AO
50712003-01-27 Alexandre Oliva <aoliva@redhat.com>
5072
5073 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5074 Remove USE_LIBDIR conditional.
5075 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5076 * Makefile.in, configure: Rebuilt.
5077
acabc220
DE
50782003-01027 David Edelsohn <edelsohn@gnu.org>
5079
5080 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5081 * Makefile.in: Regenerate.
5082
be0acd42
AH
50832003-01-22 Andrew Haley <aph@redhat.com>
5084
5085 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5086 unwind info.
5087
ed695c8e
AT
50882003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
5089
5090 * src/powerpc/darwin.S: Add unwind info.
5091 * src/powerpc/darwin_closure.S: Likewise.
5092
45ba15f4
AH
50932003-01-14 Andrew Haley <aph@redhat.com>
5094
5095 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5096 (ffi_prep_cif_machdep): Likewise.
5097 * src/x86/unix64.S: Add unwind info.
5098
4b5f402e
AJ
50992003-01-14 Andreas Jaeger <aj@suse.de>
5100
5101 * src/ffitest.c (main): Only use ffi_closures if those are
5102 supported.
5103
7b5102af
TT
51042003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
5105
5106 * libffi/src/ffitest.c
3d3b561f 5107 add closure testcases
7b5102af
TT
5108
51092003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
5110
5111 * libffi/src/powerpc/ffi.c
3d3b561f 5112 fix alignment bug for float (4 byte aligned iso 8 byte)
7b5102af 5113
5f7c78d8
GK
51142003-01-09 Geoffrey Keating <geoffk@apple.com>
5115
5116 * src/powerpc/ffi_darwin.c: Remove RCS version string.
5117 * src/powerpc/darwin.S: Remove RCS version string.
5118
c75c7793
JS
51192003-01-03 Jeff Sturm <jsturm@one-point.com>
5120
5121 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5122 * src/ffitest.c (main): Use static storage for closure.
5123 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5124 * src/sparc/v8.S (ffi_closure_v8): New.
5125 * src/sparc/v9.S (ffi_closure_v9): New.
5126
eb3c46a1
RM
51272002-11-10 Ranjit Mathew <rmathew@hotmail.com>
5128
5129 * include/ffi.h.in: Added FFI_STDCALL ffi_type
3d3b561f 5130 enumeration for X86_WIN32.
eb3c46a1 5131 * src/x86/win32.S: Added ffi_call_STDCALL function
3d3b561f 5132 definition.
eb3c46a1 5133 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
3d3b561f
ML
5134 switch cases for recognising FFI_STDCALL and
5135 calling ffi_call_STDCALL if target is X86_WIN32.
eb3c46a1 5136 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
3d3b561f
ML
5137 stdcall versions of the "my_strlen" and "many"
5138 test functions (for X86_WIN32).
5139 Added test cases to test stdcall invocation using
5140 these functions.
eb3c46a1 5141
4977bab6
ZW
51422002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
5143
5144 * src/sh/sysv.S: Add DWARF2 unwind info.
5145
67333e84
UW
51462002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
5147
5148 * src/s390/sysv.S (.eh_frame section): Make section read-only.
5149
bc3cf760
JW
51502002-11-26 Jim Wilson <wilson@redhat.com>
5151
5152 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5153
4977bab6
ZW
51542002-11-23 H.J. Lu <hjl@gnu.org>
5155
5156 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5157 Include ../config/accross.m4.
5158 * aclocal.m4; Rebuild.
5159 * configure: Likewise.
5160
18789f4e
UW
51612002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
5162
5163 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5164
6bee5372
DD
51652002-11-11 DJ Delorie <dj@redhat.com>
5166
5167 * configure.in: Look for common files in the right place.
5168
8177895b
UW
51692002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
5170
5171 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5172 raw data as _Jv_word values, not ffi_raw.
5173 (ffi_java_ptrarray_to_raw): Likewise.
5174 (ffi_java_rvalue_to_raw): New function.
5175 (ffi_java_raw_call): Call it.
5176 (ffi_java_raw_to_rvalue): New function.
5177 (ffi_java_translate_args): Call it.
5178 * src/ffitest.c (closure_test_fn): Interpret return value
5179 as ffi_arg, not int.
5180 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5181 FFI_TYPE_POINTER case.
5182 (ffi_closure_helper_SYSV): Likewise. Also, assume return
5183 values extended to word size.
5184
af50f4c8
AJ
51852002-10-02 Andreas Jaeger <aj@suse.de>
5186
5187 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5188
5d297584
BT
51892002-10-01 Bo Thorsen <bo@smetana.suse.de>
5190
5191 * include/ffi.h.in: Fix i386 win32 compilation.
5192
c4f17c6f
UW
51932002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5194
5195 * configure.in: Add s390x-*-linux-* target.
5196 * configure: Regenerate.
5197 * include/ffi.h.in: Define S390X for s390x targets.
5198 (FFI_CLOSURES): Define for s390/s390x.
5199 (FFI_TRAMPOLINE_SIZE): Likewise.
5200 (FFI_NATIVE_RAW_API): Likewise.
5201 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5202 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
4977bab6 5203 * src/s390/ffi.c: Major rework of existing code. Add support for
c4f17c6f
UW
5204 s390x targets. Add closure support.
5205 * src/s390/sysv.S: Likewise.
5206
d7b52625
RE
52072002-09-29 Richard Earnshaw <rearnsha@arm.com>
5208
5209 * src/arm/sysv.S: Fix typo.
5210
28165e22
RE
52112002-09-28 Richard Earnshaw <rearnsha@arm.com>
5212
5213 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5214 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5215 (ffi_call_SYSV): Handle soft-float.
5216
0b0f4163
BT
52172002-09-27 Bo Thorsen <bo@suse.de>
5218
5219 * include/ffi.h.in: Fix multilib x86-64 support.
5220
6c5d742e
KG
52212002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5222
5223 * Makefile.am (all-multi): Fix multilib parallel build.
5224
f4b2b0d6
KK
52252002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
5226
5227 * configure.in (sh[34]*-*-linux*): Add brackets.
5228 * configure: Regenerate.
5229
ddebdfeb
KK
52302002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
5231
5232 * Makefile.am: Add SH support.
5233 * Makefile.in: Regenerate.
5234 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5235 * configure: Regenerate.
5236 * include/ffi.h.in: Add SH support.
5237 * src/sh/ffi.c: New file.
5238 * src/sh/sysv.S: New file.
5239 * src/types.c: Add SH support.
5240
c94974ca
BT
52412002-07-16 Bo Thorsen <bo@suse.de>
5242
5243 * src/x86/ffi64.c: New file that adds x86-64 support.
5244 * src/x86/unix64.S: New file that handles argument setup for
5245 x86-64.
5246 * src/x86/sysv.S: Don't use this on x86-64.
5247 * src/x86/ffi.c: Don't use this on x86-64.
5248 Remove unused vars.
5249 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5250 for x86-64.
5251 * src/ffitest.c (struct6): New test that tests a special case in
5252 the x86-64 ABI.
5253 (struct7): Likewise.
5254 (struct8): Likewise.
5255 (struct9): Likewise.
5256 (closure_test_fn): Silence warning about this when it's not used.
5257 (main): Add the new tests.
5258 (main): Fix a couple of wrong casts and silence some compiler warnings.
5259 * include/ffi.h.in: Add x86-64 ABI definition.
5260 * fficonfig.h.in: Regenerate.
5261 * Makefile.am: Add x86-64 support.
5262 * configure.in: Likewise.
5263 * Makefile.in: Regenerate.
5264 * configure: Likewise.
5265
52662002-06-24 Bo Thorsen <bo@suse.de>
5267
5268 * src/types.c: Merge settings for similar architectures.
5269 Add x86-64 sizes and alignments.
5270
52712002-06-23 Bo Thorsen <bo@suse.de>
5272
5273 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5274 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5275 * src/mips/ffi.c (ffi_prep_args): Likewise.
5276 * src/m68k/ffi.c (ffi_prep_args): Likewise.
5277
5be36a8f
L
52782002-07-18 H.J. Lu (hjl@gnu.org)
5279
5280 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5281 (libffi_la_SOURCES): Support MIPS_LINUX.
5282 (libffi_convenience_la_SOURCES): Likewise.
5283 * Makefile.in: Regenerated.
5284
5285 * configure.in (mips64*-*): Skip.
5286 (mips*-*-linux*): New.
5287 * configure: Regenerated.
5288
5289 * src/mips/ffi.c: Include <sgidefs.h>.
5290
ad5e163c
UW
52912002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5292
5293 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
5294
ee4586c5
RS
52952002-05-27 Roger Sayle <roger@eyesopen.com>
5296
5297 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5298
b86aa7b0
BT
52992002-05-27 Bo Thorsen <bo@suse.de>
5300
5301 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5302 fix formatting.
5303
859f7aaf
AT
53042002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
5305
5306 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5307 beginning of function (for older apple cc).
5308
6706f116
AO
53092002-05-08 Alexandre Oliva <aoliva@redhat.com>
5310
5311 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5312 script entry, and set LD to it when configuring multilibs.
5313 * configure: Rebuilt.
5314
fad655c8
JT
53152002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5316
5317 * configure.in (sparc64-*-netbsd*): Add target.
5318 (sparc-*-netbsdelf*): Likewise.
5319 * configure: Regenerate.
5320
189ab118
DM
53212002-04-28 David S. Miller <davem@redhat.com>
5322
5323 * configure.in, configure: Fix SPARC test in previous change.
5324
22bcf65c
GT
53252002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
5326
5327 * Makefile.am: Add Linux for S/390 support.
5328 * Makefile.in: Regenerate.
5329 * configure.in: Add Linux for S/390 support.
5330 * configure: Regenerate.
5331 * include/ffi.h.in: Add Linux for S/390 support.
5332 * src/s390/ffi.c: New file from libffi CVS tree.
5333 * src/s390/sysv.S: New file from libffi CVS tree.
5334
5d84cf0b
JJ
53352002-04-28 Jakub Jelinek <jakub@redhat.com>
5336
5337 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5338 %r_disp32().
5339 * src/sparc/v8.S: Use it.
5340 * src/sparc/v9.S: Likewise.
5341 * fficonfig.h.in: Rebuilt.
5342 * configure: Rebuilt.
5343
cc382e5c
HB
53442002-04-08 Hans Boehm <Hans_Boehm@hp.com>
5345
5346 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5347 correctly.
5348 * src/ia64/unix.S: Add unwind information. Fix comments.
5349 Save sp in a way that's compatible with unwind info.
5350 (ffi_call_unix): Correctly restore sp in all cases.
5351 * src/ia64/ffi.c: Add, fix comments.
5352
dc798645
JJ
53532002-04-08 Jakub Jelinek <jakub@redhat.com>
5354
5355 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5356
da00eaab
JT
53572002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5358
5359 * configure.in (alpha*-*-netbsd*): Add target.
5360 * configure: Regenerate.
5361
0c0b87ad
JS
53622002-04-04 Jeff Sturm <jsturm@one-point.com>
5363
5364 * src/sparc/v8.S: Add unwind info.
5365 * src/sparc/v9.S: Likewise.
5366
320d7e7a
KW
53672002-03-30 Krister Walfridsson <cato@df.lth.se>
5368
5369 * configure.in: Enable i*86-*-netbsdelf*.
5370 * configure: Rebuilt.
4977bab6 5371
c75e51ed
DB
53722002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
5373
5374 PR other/2620
5375 * src/mips/n32.s: Delete
5376 * src/mips/o32.s: Delete
5377
5bb366e0
LR
53782002-03-21 Loren J. Rittle <ljrittle@acm.org>
5379
5380 * configure.in: Enable alpha*-*-freebsd*.
5381 * configure: Rebuilt.
5382
ce3b24a7
BM
53832002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5384
5385 * Makefile.am: libfficonvenience -> libffi_convenience.
5386 * Makefile.in: Rebuilt.
4977bab6 5387
1eb7ba30
BM
5388 * Makefile.am: Define ffitest_OBJECTS.
5389 * Makefile.in: Rebuilt.
ce3b24a7 5390
073ae293
AT
53912002-03-07 Andreas Tobler <toa@pop.agri.ch>
5392 David Edelsohn <edelsohn@gnu.org>
5393
5394 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5395 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5396 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5397 * Makefile.in: Regenerate.
5398 * include/ffi.h.in: Add AIX and Darwin closure definitions.
5399 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5400 (flush_icache, flush_range): New functions.
5401 (ffi_closure_helper_DARWIN): New function.
5402 * src/powerpc/aix_closure.S: New file.
5403 * src/powerpc/darwin_closure.S: New file.
4977bab6 5404
02c521f4
JS
54052002-02-24 Jeff Sturm <jsturm@one-point.com>
5406
5407 * include/ffi.h.in: Add typedef for ffi_arg.
5408 * src/ffitest.c (main): Declare rint with ffi_arg.
4977bab6 5409
287dd527
AT
54102002-02-21 Andreas Tobler <toa@pop.agri.ch>
5411
5412 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5413 number of GPRs for floating-point arguments.
5414
e2f2e70a
AG
54152002-01-31 Anthony Green <green@redhat.com>
5416
5417 * configure: Rebuilt.
5418 * configure.in: Replace CHECK_SIZEOF and endian tests with
5419 cross-compiler friendly macros.
5420 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5421 macros.
5422
15b9b32f
DE
54232002-01-18 David Edelsohn <edelsohn@gnu.org>
5424
5425 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1f7d5413 5426 * src/powerpc/aix.S (ffi_call_DARWIN): New.
15b9b32f 5427
2f4006f8
DE
54282002-01-17 David Edelsohn <edelsohn@gnu.org>
5429
5430 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5431 (TARGET_SRC_POWERPC_AIX): New.
5432 (POWERPC_AIX): New stanza.
5433 * Makefile.in: Regenerate.
5434 * configure.in: Add AIX case.
5435 * configure: Regenerate.
5436 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5437 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5438 size. Fix "long double" support.
5439 (ffi_call): Add FFI_AIX case.
5440 * src/powerpc/aix.S: New.
5441
3c017635
JH
54422001-10-09 John Hornkvist <john@toastedmarshmallow.com>
5443
5444 Implement Darwin PowerPC ABI.
5445 * configure.in: Handle powerpc-*-darwin*.
5446 * Makefile.am: Set source files for POWERPC_DARWIN.
5447 * configure: Rebuilt.
5448 * Makefile.in: Rebuilt.
5449 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5450 POWERPC_DARWIN.
5451 * src/powerpc/darwin.S: New file.
5452 * src/powerpc/ffi_darwin.c: New file.
5453
cc712abf
JM
54542001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5455
5456 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5457
03a8de49
RO
54582001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5459
5460 * src/x86/sysv.S: Avoid gas-only .balign directive.
5461 Use C style comments.
5462
92a0e6c6
RO
54632001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5464
5465 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5466 Fixes PR bootstrap/3563.
5467
57482f58
RO
54682001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5469
5470 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5471
d7e2dd2f
RO
54722001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5473
5474 * configure.in: Recognize sparc*-sun-* host.
5475 * configure: Regenerate.
4977bab6 5476
be72207c
AH
54772001-06-06 Andrew Haley <aph@redhat.com>
5478
4075db8f 5479 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
be72207c 5480
552cb45a
AH
54812001-06-03 Andrew Haley <aph@redhat.com>
5482
4075db8f
BT
5483 * src/alpha/osf.S: Add unwind info.
5484 * src/powerpc/sysv.S: Add unwind info.
5485 * src/powerpc/ppc_closure.S: Likewise.
552cb45a 5486
7d45b968
JS
54872000-05-31 Jeff Sturm <jsturm@one-point.com>
5488
5489 * configure.in: Fix AC_ARG_ENABLE usage.
5490 * configure: Rebuilt.
5491
2a7f63c4
BM
54922001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5493
5494 * configure.in: Remove warning about beta code.
5495 * configure: Rebuilt.
5496
54972001-04-25 Hans Boehm <Hans_Boehm@hp.com>
5498
03a55252
HB
5499 * src/ia64/unix.S: Restore stack pointer when returning from
5500 ffi_closure_UNIX.
5501 * src/ia64/ffi.c: Fix typo in comment.
5502
df5da1c4
JW
55032001-04-18 Jim Wilson <wilson@redhat.com>
5504
5505 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5506 to eliminate RAW DV.
5507
52c28977
BM
55082001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
5509
5510 * Makefile.am: Make a libtool convenience library.
5511 * Makefile.in: Rebuilt.
5512
3b905056
BM
55132001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
5514
5515 * configure.in: Use different syntax for subdirectory creation.
5516 * configure: Rebuilt.
5517
d6c4152a
JB
55182001-03-27 Jon Beniston <jon@beniston.com>
5519
5520 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5521 * configure: Rebuilt.
5522 * Makefile.am: Added X86_WIN32 target support.
5523 * Makefile.in: Rebuilt.
5524
5525 * include/ffi.h.in: Added X86_WIN32 target support.
5526
5527 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5528 * src/types.c: Added X86_WIN32 target support.
5529
5530 * src/x86/win32.S: New file. Based on sysv.S, but with EH
5531 stuff removed and made to work with CygWin's gas.
5532
675cdab3
BM
55332001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
5534
5535 * configure.in: Make target subdirectory in build dir.
5536 * Makefile.am: Override suffix based rules to specify correct output
5537 subdirectory.
5538 * Makefile.in: Rebuilt.
5539 * configure: Rebuilt.
5540
e5f8858a 55412001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
cc4c8975
KH
5542
5543 * src/powerpc/ppc_closure.S: New file.
5544 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5545 involving long long and register pairs.
5546 (ffi_prep_closure): New function.
5547 (flush_icache): Likewise.
5548 (ffi_closure_helper_SYSV): Likewise.
5549 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5550 (FFI_TRAMPOLINE_SIZE): Likewise.
5551 (FFI_NATIVE_RAW_API): Likewise.
5552 * Makefile.in: Rebuilt.
5553 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5554 (TARGET_SRC_POWERPC): Likewise.
5555
9450a929
TT
55562001-03-19 Tom Tromey <tromey@redhat.com>
5557
5558 * Makefile.in: Rebuilt.
5559 * Makefile.am (ffitest_LDFLAGS): New macro.
5560
4d2cf715
NC
55612001-03-02 Nick Clifton <nickc@redhat.com>
5562
5563 * include/ffi.h.in: Remove RCS ident string.
5564 * include/ffi_mips.h: Remove RCS ident string.
5565 * src/debug.c: Remove RCS ident string.
5566 * src/ffitest.c: Remove RCS ident string.
5567 * src/prep_cif.c: Remove RCS ident string.
5568 * src/types.c: Remove RCS ident string.
5569 * src/alpha/ffi.c: Remove RCS ident string.
5570 * src/alpha/osf.S: Remove RCS ident string.
5571 * src/arm/ffi.c: Remove RCS ident string.
5572 * src/arm/sysv.S: Remove RCS ident string.
5573 * src/mips/ffi.c: Remove RCS ident string.
5574 * src/mips/n32.S: Remove RCS ident string.
5575 * src/mips/o32.S: Remove RCS ident string.
5576 * src/sparc/ffi.c: Remove RCS ident string.
5577 * src/sparc/v8.S: Remove RCS ident string.
5578 * src/sparc/v9.S: Remove RCS ident string.
5579 * src/x86/ffi.c: Remove RCS ident string.
5580 * src/x86/sysv.S: Remove RCS ident string.
5581
7e5fd99f
JM
55822001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
5583
5584 * include/ffi.h.in: Change sourceware.cygnus.com references to
5585 gcc.gnu.org.
5586
3f67ba6e
RH
55872000-12-09 Richard Henderson <rth@redhat.com>
5588
5589 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5590 (ffi_closure_osf_inner): Index rather than increment avalue
5591 and arg_types. Give ffi_closure_osf the raw return value type.
5592 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5593 promotion.
5594
55952000-12-07 Richard Henderson <rth@redhat.com>
29fe0479
RH
5596
5597 * src/raw_api.c (ffi_translate_args): Fix typo.
5598 (ffi_prep_closure): Likewise.
5599
5600 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5601 FFI_TRAMPOLINE_SIZE.
5602 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5603 cif->bytes for new ffi_call_osf implementation.
5604 (ffi_prep_args): Absorb into ...
5605 (ffi_call): ... here. Do all stack allocation here and
5606 avoid a callback function.
5607 (ffi_prep_closure, ffi_closure_osf_inner): New.
5608 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5609 (ffi_closure_osf): New.
5610
2f7bf5b7
AO
56112000-09-10 Alexandre Oliva <aoliva@redhat.com>
5612
ed1c1a1a
AO
5613 * config.guess, config.sub, install-sh: Removed.
5614 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5615 * Makefile.in: Rebuilt.
5616
2f7bf5b7
AO
5617 * acinclude.m4: Include libtool macros from the top level.
5618 * aclocal.m4, configure: Rebuilt.
5619
e15a68e7
AO
56202000-08-22 Alexandre Oliva <aoliva@redhat.com>
5621
5622 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5623 * configure: Rebuilt.
5624
7f8c11d5
SB
56252000-05-11 Scott Bambrough <scottb@netwinder.org>
5626
4977bab6
ZW
5627 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5628 memory correctly. Use conditional instructions, not branches where
7f8c11d5
SB
5629 possible.
5630
c5acf51f
TT
56312000-05-04 Tom Tromey <tromey@cygnus.com>
5632
5633 * configure: Rebuilt.
5634 * configure.in: Match `arm*-*-linux-*'.
5635 From Chris Dornan <cdornan@arm.com>.
5636
91bffbe9
JJ
56372000-04-28 Jakub Jelinek <jakub@redhat.com>
5638
5639 * Makefile.am (SUBDIRS): Define.
5640 (AM_MAKEFLAGS): Likewise.
5641 (Multilib support.): Add section.
5642 * Makefile.in: Rebuilt.
5643 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
4075db8f
BT
5644 New variables. Set for gcc using -print-multi-lib. Export them
5645 to libtool.
5646 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5647 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5648 for -shared links.
5649 (extra_compiler_flags_value, extra_compiler_flags): Check these
5650 for extra compiler options which need to be passed down in
5651 compiler_flags.
91bffbe9 5652
bd66587e
AG
56532000-04-16 Anthony Green <green@redhat.com>
5654
5655 * configure: Rebuilt.
5656 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5657
3791773c
JJ
56582000-04-14 Jakub Jelinek <jakub@redhat.com>
5659
4075db8f 5660 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3791773c
JJ
5661 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5662 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5663 Replace all void * sizeofs with sizeof(int).
5664 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5665 different than DOUBLE.
5666 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5667 (ffi_prep_args_v9): New function.
5668 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5669 (ffi_V9_return_struct): New function.
5670 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5671 32bit code (not yet cross-arch calls).
5672 * src/sparc/v8.S: Add struct return delay nop.
5673 Handle long long.
5674 * src/sparc/v9.S: New file.
5675 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5676 is used on sparc64 only for structures larger than 32 bytes.
5677 Pass by reference for structures is done for structure arguments
5678 larger than 16 bytes.
5679 * src/ffitest.c (main): Use 64bit rint on sparc64.
5680 Run long long tests on sparc.
5681 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5682 sparc64.
5683 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5684 on sparc64.
5685 * configure.in (sparc-*-linux*): New supported target.
5686 (sparc64-*-linux*): Likewise.
5687 * configure: Rebuilt.
5688 * Makefile.am: Add v9.S to SPARC files.
5689 * Makefile.in: Likewise.
5690 (LINK): Surround $(CCLD) into double quotes, so that multilib
5691 compiles work correctly.
5692
db459595
APB
56932000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
5694
5695 * configure: Rebuilt.
5696 * configure.in: (i*86-*-solaris*): New libffi target. Patch
5697 proposed by Bryce McKinlay.
5698
c1f63902
TT
56992000-03-20 Tom Tromey <tromey@cygnus.com>
5700
5701 * Makefile.in: Hand edit for java_raw_api.lo.
5702
0f72dc9e
BM
57032000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
5704
5705 * config.guess, config.sub: Update from the gcc tree.
5706 Fix for PR libgcj/168.
5707
3c18f2d1
TT
57082000-03-03 Tom Tromey <tromey@cygnus.com>
5709
323eee8a
TT
5710 * Makefile.in: Fixed ia64 by hand.
5711
3c18f2d1
TT
5712 * configure: Rebuilt.
5713 * configure.in (--enable-multilib): New option.
5714 (libffi_basedir): New subst.
5715 (AC_OUTPUT): Added multilib code.
5716
a2b10a92
TT
57172000-03-02 Tom Tromey <tromey@cygnus.com>
5718
5719 * Makefile.in: Rebuilt.
5720 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5721 directory name.
5722
dc5de370
HB
57232000-02-25 Hans Boehm <boehm@acm.org>
5724
5725 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5726 files.
5727 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5728 list.
5729 (ffi_prep_raw_closure): Use ffi_translate_args, not
5730 ffi_closure_translate.
5731 * src/java_raw_api.c: New file.
5732 * src/ffitest.c (closure_test_fn): New function.
5733 (main): Define `rint' as long long on IA64. Added new test when
5734 FFI_CLOSURES is defined.
5735 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5736 (ffi_abi): Recognize IA64.
5737 (ffi_raw): Added `flt' field.
5738 Added "Java raw API" code.
5739 * configure.in: Recognize ia64.
5740 * Makefile.am (TARGET_SRC_IA64): New macro.
5741 (libffi_la_common_SOURCES): Added java_raw_api.c.
5742 (libffi_la_SOURCES): Define in IA64 case.
5743
d79229bd
TT
57442000-01-04 Tom Tromey <tromey@cygnus.com>
5745
5746 * Makefile.in: Rebuilt with newer automake.
5747
2c33b220
TT
57481999-12-31 Tom Tromey <tromey@cygnus.com>
5749
5750 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5751
6ba9e3b0
TT
57521999-09-01 Tom Tromey <tromey@cygnus.com>
5753
5754 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5755 undefs.
5756 * fficonfig.h.in: Rebuilt.
5757 * configure: Rebuilt.
5758 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5759 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5760 * acconfig.h: Don't #undef PACKAGE or VERSION.
5761
63e5e3e0
AG
57621999-08-09 Anthony Green <green@cygnus.com>
5763
5764 * include/ffi.h.in: Try to work around messy header problem
5765 with PACKAGE and VERSION.
5766
5767 * configure: Rebuilt.
5768 * configure.in: Change version to 2.00-beta.
5769
4075db8f 5770 * fficonfig.h.in: Rebuilt.
63e5e3e0
AG
5771 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5772
5773 * src/x86/ffi.c (ffi_raw_call): Rename.
5774
57751999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
5776
5777 * src/x86/ffi.c (ffi_closure_SYSV): New function.
5778 (ffi_prep_incoming_args_SYSV): Ditto.
5779 (ffi_prep_closure): Ditto.
5780 (ffi_closure_raw_SYSV): Ditto.
5781 (ffi_prep_raw_closure): More ditto.
5782 (ffi_call_raw): Final ditto.
5783
5784 * include/ffi.h.in: Add definitions for closure and raw API.
5785
5786 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4977bab6 5787 FFI_TYPE_UINT64.
63e5e3e0
AG
5788
5789 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5790
5791 * src/raw_api.c: New file.
5792
5793 * include/ffi.h.in (ffi_raw): New type.
5794 (UINT_ARG, SINT_ARG): New defines.
5795 (ffi_closure, ffi_raw_closure): New types.
5796 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4977bab6 5797
63e5e3e0
AG
5798 * configure.in: Add check for endianness and sizeof void*.
5799
5800 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5801 instead of directly.
5802
5803 * configure: Rebuilt.
5804
5805Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
5806
5807 * configure.in: Add x86 and powerpc BeOS configurations.
5808 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
5809
58101999-05-09 Anthony Green <green@cygnus.com>
5811
5812 * configure.in: Add warning about this being beta code.
5813 Remove src/Makefile.am from the picture.
5814 * configure: Rebuilt.
5815
5816 * Makefile.am: Move logic from src/Makefile.am. Add changes
5817 to support libffi as a target library.
5818 * Makefile.in: Rebuilt.
5819
5820 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5821 Upgraded to new autoconf, automake, libtool.
5822
5823 * README: Tweaks.
5824
5825 * LICENSE: Update copyright date.
5826
5827 * src/Makefile.am, src/Makefile.in: Removed.
5828
58291998-11-29 Anthony Green <green@cygnus.com>
5830
5831 * include/ChangeLog: Removed.
5832 * src/ChangeLog: Removed.
5833 * src/mips/ChangeLog: Removed.
5834 * src/sparc/ChangeLog: Remboved.
5835 * src/x86/ChangeLog: Removed.
5836
5837 * ChangeLog.v1: Created.