Debian Codegraph @

libffi/ChangeLog

raw
1 2026-06-12 Release Manager
2
3 * GCC 15.3.0 released.
4
5 2025-08-08 Release Manager
6
7 * GCC 15.2.0 released.
8
9 2025-04-25 Release Manager
10
11 * GCC 15.1.0 released.
12
13 2024-10-24 Yang Yujie <[email protected]>
14
15 * src/loongarch64/ffi.c: Avoid defining floats
16 in struct call_context if the ABI is soft-float.
17
18 2024-10-16 Joseph Myers <[email protected]>
19
20 * testsuite/libffi.call/va_struct2.c (test_fn): Cast n to void.
21 * testsuite/libffi.call/va_struct3.c (test_fn): Likewise.
22 Backported from <https://github.com/libffi/libffi/pull/861>.
23
24 2024-09-23 Matthieu Longo <[email protected]>
25
26 * include/ffi_cfi.h (cfi_negate_ra_state): Declare AArch64 cfi
27 directive.
28
29 2024-07-01 Rainer Orth <[email protected]>
30
31 PR libffi/115681
32 * src/sparc/ffi.c (ffi_call_int): Copy structure arguments to
33 maintain call-by-value semantics.
34
35 2024-05-07 Rainer Orth <[email protected]>
36
37 * Makefile.am [LIBFFI_BUILD_VERSIONED_SHLIB_SUN] (libffi.map-sun):
38 Pass $(libffi_la_OBJECTS), $(libffi_la_LIBADD) to make_sunver.pl
39 unmodified.
40 * Makefile.in: Regenerate.
41
42 2023-10-26 Thomas Schwinge <[email protected]>
43
44 PR testsuite/109951
45 * configure.ac: 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
46 <local.exp>: Don't set 'CC_FOR_TARGET', 'CXX_FOR_TARGET', instead
47 set 'SYSROOT_CFLAGS_FOR_TARGET'.
48 * Makefile.in: Regenerate.
49 * configure: Likewise.
50 * include/Makefile.in: Likewise.
51 * man/Makefile.in: Likewise.
52 * testsuite/Makefile.in: Likewise.
53 * testsuite/lib/libffi.exp (libffi_target_compile): If
54 '--with-build-sysroot=[...]' was specified, use it for build-tree
55 testing.
56
57 2023-10-22 Iain Sandoe <[email protected]>
58
59 * testsuite/lib/libffi.exp: Likewise.
60
61 2023-10-22 Iain Sandoe <[email protected]>
62
63 * Makefile.am: Handle Darwin rpaths.
64 * Makefile.in: Regenerate.
65 * configure: Regenerate.
66
67 2023-08-23 Lulu Cheng <[email protected]>
68
69 PR libffi/108682
70 * configure.host: Add LoongArch support.
71 * Makefile.am: Likewise.
72 * Makefile.in: Regenerate.
73 * src/loongarch64/ffi.c: New file.
74 * src/loongarch64/ffitarget.h: New file.
75 * src/loongarch64/sysv.S: New file.
76
77 2023-08-07 Nick Alcock <[email protected]>
78
79 * configure: Regenerate.
80
81 2023-08-07 Alexander von Gluck IV <[email protected]>
82
83 * configure: Regenerate.
84
85 2023-08-07 Nick Alcock <[email protected]>
86
87 * configure: Regenerate.
88
89 2023-08-07 Nick Alcock <[email protected]>
90
91 * configure: Regenerate.
92
93 2023-08-07 H.J. Lu <[email protected]>
94
95 * configure: Regenerate.
96
97 2023-08-07 H.J. Lu <[email protected]>
98
99 * configure: Regenerate.
100
101 2023-05-06 Dan HorĂ¡k <[email protected]>
102
103 PR libffi/109447
104 * src/powerpc/ffi_linux64.c (ffi_prep_args64): Update arg.f128 pointer.
105
106 2023-01-22 Iain Sandoe <[email protected]>
107
108 * testsuite/lib/libffi.exp: Search for both shared and archive
109 in each path in turn.
110
111 2023-01-07 LIU Hao <[email protected]>
112
113 PR middle-end/108300
114 * src/aarch64/ffi.c: Define `WIN32_LEAN_AND_MEAN` before
115 <windows.h>.
116
117 2022-12-21 Iain Sandoe <[email protected]>
118
119 * LOCAL_PATCHES: Add patch to fix i686 darwin build.
120
121 2022-12-21 Iain Sandoe <[email protected]>
122
123 * src/x86/sysv.S (COMDAT): Amend section use for Darwin, accounting
124 cases where coalesced is needed. (eh_frame): Rework to avoid relocs
125 that cause builf fails on earlier Darwin. Adjust register numbers
126 to account for X86 m32 Darwin differences between EH and debug.
127
128 2022-10-12 Martin Liska <[email protected]>
129
130 * configure: Regenerate.
131
132 2022-10-11 Olivier Hainque <[email protected]>
133 Olivier Hainque <[email protected]>
134
135 * configure: Regenerate.
136
137 2021-11-15 H.J. Lu <[email protected]>
138
139 * LOCAL_PATCHES: Add commit a91f844ef44.
140
141 2021-11-15 Rainer Orth <[email protected]>
142
143 PR libffi/102874
144 * src/x86/win64.S (epilogue): Use #define instead of .macro.
145
146 2021-11-04 H.J. Lu <[email protected]>
147
148 * Makefile.am (AM_CFLAGS): Add $(CET_FLAGS).
149 (AM_CCASFLAGS): Likewise.
150 * configure.ac (CET_FLAGS): Add GCC_CET_FLAGS and AC_SUBST.
151 * Makefile.in: Regenerate.
152 * aclocal.m4: Likewise.
153 * configure: Likewise.
154 * include/Makefile.in: Likewise.
155 * man/Makefile.in: Likewise.
156 * testsuite/Makefile.in: Likewise.
157
158 2021-10-27 H.J. Lu <[email protected]>
159
160 * LOCAL_PATCHES: Add commit 90454a90082.
161
162 2021-10-25 Segher Boessenkool <[email protected]>
163
164 * src/powerpc/linux64.S: Enable AltiVec insns.
165 * src/powerpc/linux64_closure.S: Ditto.
166
167 2021-10-20 H.J. Lu <[email protected]>
168
169 * LOCAL_PATCHES: New file.
170
171 2021-10-20 H.J. Lu <[email protected]>
172
173 * testsuite/lib/libffi.exp (load_gcc_lib): Load library from GCC
174 testsuite.
175 Load target-supports.exp and target-supports-dg.exp.
176 (libffi-init): Use libraries in GCC build tree.
177 (libffi_target_compile): Link with -shared-libgcc -lstdc++ for
178 C++ sources.
179
180 2021-10-20 H.J. Lu <[email protected]>
181
182 * Makefile.am (AUTOMAKE_OPTIONS): Add info-in-builddir.
183 (ACLOCAL_AMFLAGS): Set to -I .. -I ../config.
184 (SUBDIRS): Don't add doc.
185 (TEXINFO_TEX): New.
186 (MAKEINFOFLAGS): Likewise.
187 (info_TEXINFOS): Likewise.
188 (STAMP_GENINSRC): Likewise.
189 (STAMP_BUILD_INFO): Likewise.
190 (all-local): Likewise.
191 (stamp-geninsrc): Likewise.
192 (doc/libffi.info): Likewise.
193 (stamp-build-info:): Likewise.
194 (CLEANFILES): Likewise.
195 (MAINTAINERCLEANFILES): Likewise.
196 (AM_MAKEFLAGS): Likewise.
197 (all-recursive): Likewise.
198 (install-recursive): Likewise.
199 (mostlyclean-recursive): Likewise.
200 (clean-recursive): Likewise.
201 (distclean-recursive): Likewise.
202 (maintainer-clean-recursive): Likewise.
203 (LTLDFLAGS): Replace libtool-ldflags with ../libtool-ldflags.
204 (AM_CFLAGS): Add -g -fexceptions.
205 (libffi.map-sun): Replace make_sunver.pl with
206 ../contrib/make_sunver.pl.
207 (dist-hook): Removed.
208 Include $(top_srcdir)/../multilib.am.
209 * configure.ac: Add AM_ENABLE_MULTILIB.
210 Remove the frv*-elf check.
211 (AX_ENABLE_BUILDDIR): Removed.
212 (AM_INIT_AUTOMAKE): Add [no-dist].
213 Add --enable-generated-files-in-srcdir.
214 (C_CONFIG_MACRO_DIR): Removed.
215 (AX_COMPILER_VENDOR): Likewise.
216 (AX_CC_MAXOPT): Likewise.
217 (AX_CFLAGS_WARN_ALL): Likewise.
218 Remove the GCC check.
219 (SYMBOL_UNDERSCORE): Removed.
220 (AX_CHECK_COMPILE_FLAG): Likewise.
221 Remove --disable-docs.
222 (ACX_CHECK_PROG_VER): Check makeinfo.
223 (BUILD_DOCS): Updated.
224 (exec-static-tramp): Don't enable use of static exec trampolines
225 by default.
226 Remove --disable-multi-os-directory.
227 (GCC_WITH_TOOLEXECLIBDIR): New.
228 Support cross host.
229 Support --enable-multilib.
230 * include/Makefile.am (nodist_include_HEADERS): Removed.
231 (gcc_version): New.
232 (toollibffidir): Likewise.
233 (toollibffi_HEADERS): Likewise.
234 * Makefile.in: Regenerate.
235 (GCC_BASE_VER): New.
236 (AC_CONFIG_FILES): Remove doc/Makefile.
237 (AC_CONFIG_LINKS): New.
238 * aclocal.m4: Likewise.
239 * configure: Likewise.
240 * fficonfig.h.in: Likewise.
241 * mdate-sh: Likewise.
242 * include/Makefile.in: Likewise.
243 * man/Makefile.in: Likewise.
244 * testsuite/Makefile.in: Likewise.
245
246 2021-10-20 H.J. Lu <[email protected]>
247
248 * HOWTO_MERGE: New file.
249 * autogen.sh: Likewise.
250 * merge.sh: Likewise.
251
252 2021-08-30 YunQiang Su <[email protected]>
253
254 PR libffi/83636
255 * src/mips/n32.S: disable .set mips4
256 * src/mips/ffi.c: use different JR encoding for r6.
257
258 2021-07-09 H.J. Lu <[email protected]>
259
260 PR libffi/101336
261 * configure.host: Always check __x86_64__ for x86 hosts.
262
263 2021-06-16 Jakub Jelinek <[email protected]>
264
265 * src/x86/ffi64.c (classify_argument): For FFI_TYPE_STRUCT set words
266 to number of words needed for type->size + byte_offset bytes rather
267 than just type->size bytes. Compute pos before the loop and check
268 total size of the structure.
269 * testsuite/libffi.call/nested_struct12.c: New test.
270
271 2021-01-05 Samuel Thibault <[email protected]>
272
273 * configure: Re-generate.
274
275 2020-12-05 Iain Sandoe <[email protected]>
276
277 PR target/97865
278 * configure: Regenerate.
279
280 2020-11-29 John David Anglin <[email protected]>
281
282 * configure: Regenerate.
283
284 2020-09-24 Alan Modra <[email protected]>
285
286 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
287 location of .Lret.
288
289 2020-09-24 Alan Modra <[email protected]>
290
291 * src/powerpc/linux64.S (ffi_call_LINUX64): Don't emit global
292 entry when __PCREL__. Call using @notoc. Add nops.
293 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
294 (ffi_go_closure_linux64): Likewise.
295
296 2020-04-25 Maciej W. Rozycki <[email protected]>
297
298 * Makefile.am (DISTCLEANFILES): New variable.
299 * configure.ac: Produce `local.exp'.
300 * Makefile.in: Regenerate.
301 * configure: Regenerate.
302 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
303 variable.
304 * testsuite/Makefile.in: Regenerate.
305
306 2020-01-24 Maciej W. Rozycki <[email protected]>
307
308 * configure.ac: Handle `--with-toolexeclibdir='.
309 * Makefile.in: Regenerate.
310 * aclocal.m4: Regenerate.
311 * configure: Regenerate.
312 * include/Makefile.in: Regenerate.
313 * man/Makefile.in: Regenerate.
314 * testsuite/Makefile.in: Regenerate.
315
316 2019-09-27 Maciej W. Rozycki <[email protected]>
317
318 * configure: Regenerate.
319
320 2019-09-03 Chung-Lin Tang <[email protected]>
321
322 PR other/79543
323 * acinclude.m4 (LIBAT_CHECK_LINKER_FEATURES): Fix GNU ld --version
324 scanning to conform to the GNU Coding Standards.
325 * configure: Regenerate.
326
327 2018-10-31 Joseph Myers <[email protected]>
328
329 PR bootstrap/82856
330 * Makefile.am: Include multilib.am.
331 (AUTOMAKE_OPTIONS): Add info-in-builddir.
332 (CLEANFILES): Remove doc/libffi.info.
333 * configure.ac: Remove AC_PREREQ.
334 * Makefile.in, aclocal.m4, configure, fficonfig.h.in,
335 include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
336 Regenerate.
337
338 2018-08-15 Andreas Schwab <[email protected]>
339
340 Backport of RISC-V support for libffi go closures
341 * src/riscv/ffi.c (ffi_call_go, ffi_prep_go_closure): New
342 functions.
343 (ffi_call_int): Renamed from ffi_call.
344 (ffi_call_asm, ffi_closure_inner): Adjust interface.
345 * src/riscv/ffitarget.h (FFI_GO_CLOSURES): Define.
346 * src/riscv/sysv.S (ffi_go_closure_asm): New function.
347 (ffi_closure_asm, ffi_call_asm): Update for adjusted interfaces.
348
349 2018-05-08 Andreas Schwab <[email protected]>
350
351 Backport of RISC-V support for libffi
352 * configure.host: Add RISC-V support.
353 * Makefile.am: Likewise.
354 * Makefile.in: Regenerate.
355 * src/riscv/ffi.c, src/riscv/ffitarget.h, src/riscv/sysv.S: New
356 files.
357
358 2018-05-04 Alan Modra <[email protected]>
359
360 Import from upstream
361 * src/powerpc/ffi_linux64.c (discover_homogeneous_aggregate):
362 Compile for ELFv1 too, handling single element aggregates.
363 (ffi_prep_cif_linux64_core): Call discover_homogeneous_aggregate
364 for ELFv1. Set FLAG_RETURNS_64BITS for FFI_TYPE_POINTER return.
365 (ffi_prep_args64): Call discover_homogeneous_aggregate for ELFv1,
366 and handle single element structs containing float or double
367 as if the element wasn't wrapped in a struct. Store floats in
368 second word of doubleword slot when big-endian.
369 (ffi_closure_helper_LINUX64): Similarly.
370
371 2018-04-18 David Malcolm <[email protected]>
372
373 PR jit/85384
374 * configure: Regenerate.
375
376 2017-08-31 Tony Reix <[email protected]>
377
378 * src/powerpc/aix.S (ffi_call_AIX): Add debugging pseudo-op and
379 labels for EH.
380 (ffi_call_go_AIX): New function.
381 (_GLOBAL__F_libffi_src_powerpc_aix): New EH frame.
382 * src/powerpc/aix_closure.S (ffi_closure_ASM): Add debugging
383 pseudo-op and labels for EH.
384 (ffi_go_closure_ASM): New function.
385 (_GLOBAL__F_libffi_src_powerpc_aix_closure): New EH frame.
386 * src/powrpc/ffi_darwin.c (ffi_call_go): New function.
387 (ffi_prep_go_closure): New function.
388 (ffi_closure_helper_common): Rename from ffi_closure_helper_DARWIN.
389 (ffi_closure_helper_DARWIN): Call ffi_closure_helper_common.
390 (ffi_go_closure_helper_DARWIN): Call ffi_closure_helper_common.
391 * src/powerpc/ffitarget.h (FFI_GO_CLOSURES): Define.
392
393 2017-01-21 Jakub Jelinek <[email protected]>
394
395 PR other/79046
396 * configure.ac: Add GCC_BASE_VER.
397 * include/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
398 of cat to get version from BASE-VER file.
399 * configure: Regenerated.
400 * testsuite/Makefile.in: Regenerated.
401 * include/Makefile.in: Regenerated.
402 * Makefile.in: Regenerated.
403 * man/Makefile.in: Regenerated.
404
405 2016-11-15 Matthias Klose <[email protected]>
406
407 * configure: Regenerate.
408
409 2016-09-04 John David Anglin <[email protected]>
410
411 * src/pa/ffi.c (ffi_struct_type): Put type declaration on separate line.
412 (ffi_prep_args_pa32): Likewise.
413 (ffi_size_stack_pa32): Likewise.
414 (ffi_prep_cif_machdep): Likewise.
415 (ffi_call): Likewise. Rename to ffi_call_int. Add closure argument
416 and update call to ffi_call_pa32.
417 (ffi_call, ffi_call_go, ffi_prep_go_closure): New.
418 (ffi_closure_inner_pa32): Update to handle go closures.
419 * src/pa/ffitarget.h (FFI_GO_CLOSURES): Define.
420 * src/pa/hpux32.S (ffi_call_pa32): Pass go closure argument in static
421 chain register (%ret1).
422 (ffi_closure_pa32): Set closure type argument to zero.
423 (ffi_go_closure_pa32): New function. Add unwind data for it.
424 * src/pa/linux.S: Likewise. Use cfi directives for unwind data.
425 * testsuite/libffi.go/static-chain.h (STATIC_CHAIN_REG): Define for
426 hppa.
427
428 2016-05-23 Thomas Schwinge <[email protected]>
429
430 PR libffi/65567
431 * testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
432
433 2016-03-17 Andreas Schwab <[email protected]>
434
435 * src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]:
436 Define.
437
438 2016-03-02 Richard Henderson <[email protected]>
439
440 * libtool-version: Increase to 7:0:0.
441 * libffi.map.in: Increase version numbers to 7.0.
442
443 2016-03-03 Rainer Orth <[email protected]>
444
445 * Makefile.am (libffi.map-sun): Properly convert
446 $(libffi_la_OBJECTS) to object names.
447 * Makefile.in: Regenerate.
448
449 2016-03-03 Rainer Orth <[email protected]>
450
451 * Makefile.am (libffi.map-sun): Tabify:
452 * Makefile.in: Regenerate.
453
454 2016-03-02 Richard Henderson <[email protected]>
455
456 PR libffi/70024
457 * Makefile.am (libffi_version_script): New.
458 (libffi_version_dep): New.
459 (libffi_version_info): New.
460 (libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script.
461 (libffi_la_DEPENDENCIES): Include libffi_version_dep.
462 * acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New.
463 (LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New.
464 (LIBAT_BUILD_VERSIONED_SHLIB_GNU): New.
465 (LIBAT_BUILD_VERSIONED_SHLIB_SUN): New.
466 * configure.ac: Invoke LIBAT_ENABLE_SYMVERS.
467 * libffi.map: New file.
468 * libtool-version: Increase to 5.0.0.
469 * Makefile.in, configure: Rebuild.
470 * man/Makefile.in, testsuite/Makefile.in: Rebuild.
471
472 * Makefile.am (libffi_version_script): Look in cwd for libffi.map.
473 (libffi_version_dep, libffi.map-sun): Likewise.
474 (libffi.map): New target.
475 * libffi.map.in: Rename from libffi.map. Add required defines,
476 includes, and conditionals.
477
478 2015-10-26 John David Anglin <[email protected]>
479
480 PR libffi/65441
481 * testsuite/lib/libffi.exp: Load target-supports-dg.exp.
482 * testsuite/libffi.call/float2.c: Don't run on hppa*-*-hpux*.
483
484 2015-10-01 Alan Modra <[email protected]>
485
486 * src/powerpc/ffi_sysv.c (ffi_prep_cif_sysv_core): Count fprs,
487 gprs, and stack words separately.
488 (ffi_prep_args_SYSV): Similarly.
489
490 2015-05-13 Michael Haubenwallner <[email protected]>
491
492 * Makefile.in: Regenerated with automake-1.11.6.
493 * aclocal.m4: Likewise.
494 * configure: Likewise.
495 * fficonfig.h.in: Likewise.
496 * include/Makefile.in: Likewise.
497 * man/Makefile.in: Likewise.
498 * testsuite/Makefile.in: Likewise.
499
500 2015-03-29 John David Anglin <[email protected]>
501
502 PR libffi/65567
503 * testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
504 lindex is applied to a list.
505
506 2015-02-10 Andrew Pinski <[email protected]>
507
508 * src/aarch64/ffitarget.h (ffi_arg): Use unsigned long long for ILP32.
509 (FFI_SIZEOF_ARG): Define to 64 for ILP32.
510 (ffi_sarg): Use signed long long for ILP32.
511
512 * src/aarch64/sysv.S (PTR_REG): New macro.
513 (PTR_SIZE): New macro.
514 (ffi_closure_SYSV): Load cif, fn and user_data using PTR_REG.
515 (ffi_go_closure_SYSV): Load cif and fn using PTR_REG.
516
517 2015-01-29 Jack Howarth <[email protected]>
518
519 PR libffi/64855
520 * testsuite/lib/libffi.exp: Don't set targetabis on darwin.
521
522 2015-01-28 Richard Henderson <[email protected]>
523
524 PR libffi/64779
525 PR libffi/64799
526 * Merge to upstream commit db1b34b7e1f5e473d17557e454a29933dfecd1af.
527
528 2015-01-27 Rainer Orth <[email protected]>
529
530 * testsuite/lib/libffi.exp: Load target-supports.exp.
531 (run-many-tests): Only set targetabis for ia32.
532
533 2015-01-19 Richard Henderson <[email protected]>
534
535 PR libffi/64581
536 * testsuite/lib/libffi.exp (libffi_target_compile): Don't switch
537 to C++ mode when compiling C++ source code.
538
539 2015-01-19 Richard Henderson <[email protected]>
540
541 * Merge to upstream commit 3ac1610aa33c887ea9b14935208943925714a33e.
542
543 2015-01-19 Richard Henderson <[email protected]>
544
545 PR libffi/64607
546 * testsuite/lib/libffi.exp (libffi-init): Append -L for the
547 just built libstdc++.
548
549 2015-01-15 Dominique d'Humieres <[email protected]>
550 Richard Henderson <[email protected]>
551
552 PR libffi/64607
553 * Makefile.am (AM_MAKEFLAGS): Use double quotes on subvariables.
554 * Makefile.in: Rebuilt.
555
556 2015-01-15 Richard Henderson <[email protected]>
557
558 PR libffi/64572
559 * include/ffi.h.in (FFI_TYPE_LAST): Set to COMPLEX only if complex
560 numbers are supported by the backend.
561
562 2015-01-13 Kaz Kojima <[email protected]>
563
564 * configure.host: Remove extra brackets for sh.
565
566 2015-01-13 H.J. Lu <[email protected]>
567
568 PR bootstrap/64575
569 * configure.host (TARGET): Set to X86_64 if __x86_64__ is defined.
570
571 2015-01-12 Richard Henderson <[email protected]>
572
573 PR libffi/64572
574 * src/x86/ffitarget.h (FFI_GO_CLOSURES): Do not define for darwin.
575 (FFI_TARGET_HAS_COMPLEX_TYPE): Likewise.
576
577 2015-01-12 Richard Henderson <[email protected]>
578
579 * src/x86/ffi.c (ffi_raw_call): Fill in frame.
580
581 2015-01-12 Richard Henderson <[email protected]>
582
583 Merge to upstream commit c82cc159426d8d4402375fa1ae3f045b9cf82e16.
584
585 2014-11-21 H.J. Lu <[email protected]>
586
587 PR bootstrap/63784
588 * configure: Regenerated.
589
590 2014-11-11 Francois-Xavier Coudert <[email protected]>
591
592 PR target/63610
593 * configure: Regenerate.
594
595 2014-10-15 Ian Lance Taylor <[email protected]>
596
597 * configure.ac: If the compiler supports -Qunused-arguments, use
598 it when running the compiler on .s files.
599 * configure: Regenerated.
600
601 2014-09-11 Jakub Jelinek <[email protected]>
602
603 * src/powerpc/linux64.S: Emit .note.GNU-stack even when
604 POWERPC64 is not defined.
605 * src/powerpc/linux64_closure.S: Likewise. Also test _CALL_ELF == 2.
606
607 2014-07-21 Uros Bizjak <[email protected]>
608
609 * src/alpha/ffi.c: Do not include stdlib.h.
610 (ffi_closure_osf_inner) <default>: Use FFI_ASSERT instead of abort.
611
612 2014-07-04 Thomas Schwinge <[email protected]>
613
614 * testsuite/lib/libffi.exp (libffi-dg-runtest): Change interface
615 match to dg-runtest's.
616
617 2014-05-20 Sebastian Huber <[email protected]>
618
619 * testsuite/lib/libffi.exp (load_gcc_lib): Register loaded libs.
620
621 2014-05-13 Bernd Edlinger <[email protected]>
622
623 Fix current cygwin-64 build problems.
624 * src/java_raw_api.c: Remove if !defined(FFI_NO_RAW_API).
625 * src/x86/ffi.c: Add if defined(__CYGWIN__).
626 * src/x86/win64.S (ffi_closure_win64, ffi_call_win64): Added
627 handling for FFI_TYPE_UINT64, FFI_TYPE_POINTER and FFI_TYPE_INT.
628 Added SEH information. Fixed formatting.
629
630 2014-04-22 Jakub Jelinek <[email protected]>
631
632 PR other/43620
633 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
634 * Makefile.in: Regenerated.
635 * include/Makefile.in: Regenerated.
636 * man/Makefile.in: Regenerated.
637 * testsuite/Makefile.in: Regenerated.
638
639 2014-03-12 Yufeng Zhang <[email protected]>
640
641 * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
642 main CFA reg; update cfi_rel_offset.
643
644 2014-02-17 Eric Botcazou <[email protected]>
645
646 PR libffi/60073
647 * src/sparc/v8.S: Assemble only if !SPARC64.
648 * src/sparc/v9.S: Remove obsolete comment.
649 * src/sparc/ffitarget.h (enum ffi_abi): Add FFI_COMPAT_V9.
650 (V8_ABI_P): New macro.
651 (V9_ABI_P): Likewise.
652 (FFI_EXTRA_CIF_FIELDS): Define only if SPARC64.
653 * src/sparc/ffi.c (ffi_prep_args_v8): Compile only if !SPARC64.
654 (ffi_prep_args_v9): Compile only if SPARC64.
655 (ffi_prep_cif_machdep_core): Use V9_ABI_P predicate.
656 (ffi_prep_cif_machdep): Guard access to nfixedargs field.
657 (ffi_prep_cif_machdep_var): Likewise.
658 (ffi_v9_layout_struct): Compile only if SPARC64.
659 (ffi_call): Deal with FFI_V8PLUS and FFI_COMPAT_V9 and fix warnings.
660 (ffi_prep_closure_loc): Use V9_ABI_P and V8_ABI_P predicates.
661 (ffi_closure_sparc_inner_v8): Compile only if !SPARC64.
662 (ffi_closure_sparc_inner_v9): Compile only if SPARC64. Guard access
663 to nfixedargs field.
664
665 2014-02-13 Eric Botcazou <[email protected]>
666
667 PR libffi/60073
668 * src/sparc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
669 (FFI_EXTRA_CIF_FIELDS): Likewise.
670 (FFI_NATIVE_RAW_API): Move around.
671 * src/sparc/ffi.c (ffi_prep_cif_machdep_core): New function from...
672 (ffi_prep_cif_machdep): ...here. Call ffi_prep_cif_machdep_core.
673 (ffi_prep_cif_machdep_var): New function.
674 (ffi_closure_sparc_inner_v9): Do not pass anonymous FP arguments in
675 FP registers.
676 * doc/libffi.texi (Introduction): Fix inaccuracy.
677
678 2013-12-10 Alan Modra <[email protected]>
679
680 * src/powerpc/ffitarget.h: Import from upstream.
681 * src/powerpc/ffi_powerpc.h: Likewise.
682 * src/powerpc/ffi.c: Likewise.
683 * src/powerpc/ffi_sysv.c: Likewise.
684 * src/powerpc/ffi_linux64.c: Likewise.
685 * src/powerpc/sysv.S: Likewise.
686 * src/powerpc/ppc_closure.S: Likewise.
687 * src/powerpc/linux64.S: Likewise.
688 * src/powerpc/linux64_closure.S: Likewise.
689 * src/types.c: Likewise.
690 * Makefile.am (EXTRA_DIST): Add new src/powerpc files.
691 (nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
692 * configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
693 * include/ffi.h.in (ffi_prep_types): Declare.
694 * src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
695 * configure: Regenerate.
696 * fficonfig.h.in: Regenerate.
697 * Makefile.in: Regenerate.
698 * man/Makefile.in: Regenerate.
699 * include/Makefile.in: Regenerate.
700 * testsuite/Makefile.in: Regenerate.
701
702 2013-11-18 Alan Modra <[email protected]>
703
704 * src/powerpc/ppc_closure.S: Don't bl .Luint128.
705
706 * src/powerpc/ffitarget.h: Import from upstream.
707 * src/powerpc/ffi.c: Likewise.
708 * src/powerpc/linux64.S: Likewise.
709 * src/powerpc/linux64_closure.S: Likewise.
710 * doc/libffi.texi: Likewise.
711 * testsuite/libffi.call/cls_double_va.c: Likewise.
712 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
713
714 2013-09-20 Alan Modra <[email protected]>
715
716 * configure: Regenerate.
717
718 2013-06-25 Alan Modra <[email protected]>
719
720 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
721 before statements.
722 (ffi_prep_args64): Support little-endian.
723 (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
724 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
725 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
726
727 2013-05-22 Dominique d'Humieres <[email protected]>
728 Rainer Orth <[email protected]>
729
730 PR libffi/56033
731 * testsuite/libffi.call/cls_struct_va1.c (test_fn): Cast resp to
732 ffi_arg *.
733 * testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise.
734 * testsuite/libffi.call/va_1.c (main): Change res to ffi_arg.
735 * testsuite/libffi.call/va_struct1.c (main): Likewise.
736
737 2013-03-22 Kai Tietz <[email protected]>
738
739 * src/x86/win64.S: Make use of ffi_closure_win64_inner
740 symbol pc-relative.
741
742 2013-03-07 Dave Korn <[email protected]>
743
744 * src/closures.c (is_emutramp_enabled [!FFI_MMAP_EXEC_EMUTRAMP_PAX]):
745 Move default definition outside enclosing #if scope.
746
747 2013-02-06 Andreas Tobler <[email protected]>
748
749 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
750 DOUBLE equal LONGDOUBLE.
751
752 2013-01-07 Thorsten Glaser <[email protected]>
753
754 * testsuite/libffi.call/cls_uchar_va.c,
755 testsuite/libffi.call/cls_ushort_va.c,
756 testsuite/libffi.call/va_1.c: Testsuite fixes.
757
758 2012-12-29 Andreas Schwab <[email protected]>
759
760 * Makefile.am (ACLOCAL_AMFLAGS, TEXINFO_TEX, MAKEINFOFLAGS)
761 (STAMP_GENINSRC, STAMP_BUILD_INFO, CLEANFILES)
762 (MAINTAINERCLEANFILES): Define.
763 (all-local, stamp-geninsrc, stamp-build-info): New targets.
764 (doc/libffi.info): Depend on $(STAMP_BUILD_INFO)
765 * configure.ac: Check for modern makeinfo. Add support for
766 --enable-generated-files-in-srcdir.
767 * libffi/mdate-sh: New file.
768 * testsuite/lib/libffi.exp (load_gcc_lib): Load from gcc testsuite
769 lib dir.
770 (libffi-init): Properly set library paths for multilibs and add
771 path to libstdc++.
772 * configure: Regenerate.
773 * aclocal.m4: Regenerate.
774 * Makefile.in: Regenerate.
775 * doc/stamp-vti: Regenerate.
776 * doc/version.texi: Regenerate.
777 * fficonfig.h.in: Regenerate.
778 * include/Makefile.in: Regenerate.
779 * man/Makefile.in: Regenerate.
780 * testsuite/Makefile.in: Regenerate.
781
782 2012-10-31 Alan Modra <[email protected]>
783
784 * src/powerpc/linux64_closure.S: Add new ABI support.
785 * src/powerpc/linux64.S: Likewise.
786
787 2012-10-30 Magnus Granberg <[email protected]>
788 Pavel Labushev <[email protected]>
789
790 * configure.ac: New options pax_emutramp
791 * configure, fficonfig.h.in: Regenerated
792 * src/closures.c: New function emutramp_enabled_check() and
793 checks.
794
795 2012-10-30 Frederick Cheung <[email protected]>
796
797 * configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
798 lion) and future version.
799 * configure: Rebuild.
800
801 2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
802 Marcus Shawcroft <marcus.shawcroft at arm.com>
803
804 * README: Add details of aarch64 port.
805 * src/aarch64/ffi.c: New.
806 * src/aarch64/ffitarget.h: Likewise.
807 * src/aarch64/sysv.S: Likewise.
808 * Makefile.am: Support aarch64.
809 * configure.ac: Support aarch64.
810 * Makefile.in, configure: Rebuilt.
811
812 2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
813 Marcus Shawcroft <marcus.shawcroft at arm.com>
814
815 * testsuite/lib/libffi.exp: Add support for aarch64.
816 * testsuite/libffi.call/cls_struct_va1.c: New.
817 * testsuite/libffi.call/cls_uchar_va.c: Likewise.
818 * testsuite/libffi.call/cls_uint_va.c: Likewise.
819 * testsuite/libffi.call/cls_ulong_va.c: Likewise.
820 * testsuite/libffi.call/cls_ushort_va.c: Likewise.
821 * testsuite/libffi.call/nested_struct11.c: Likewise.
822 * testsuite/libffi.call/uninitialized.c: Likewise.
823 * testsuite/libffi.call/va_1.c: Likewise.
824 * testsuite/libffi.call/va_struct1.c: Likewise.
825 * testsuite/libffi.call/va_struct2.c: Likewise.
826 * testsuite/libffi.call/va_struct3.c: Likewise.
827
828 2012-10-12 Walter Lee <[email protected]>
829
830 * Makefile.am: Add TILE-Gx/TILEPro support.
831 * configure.ac: Likewise.
832 * Makefile.in: Regenerate.
833 * configure: Likewise.
834 * src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
835 * src/tile: New directory.
836 * src/tile/ffi.c: New file.
837 * src/tile/ffitarget.h: Ditto.
838 * src/tile/tile.S: Ditto.
839
840 2012-10-12 Matthias Klose <[email protected]>
841
842 * generate-osx-source-and-headers.py: Normalize whitespace.
843
844 2012-09-14 David Edelsohn <[email protected]>
845
846 * configure: Regenerated.
847
848 2012-08-26 Andrew Pinski <[email protected]>
849
850 PR libffi/53014
851 * src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
852 soft-float.
853
854 2012-08-08 Uros Bizjak <[email protected]>
855
856 * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
857 just return FFI_BAD_ABI when things are wrong.
858
859 2012-07-18 H.J. Lu <[email protected]>
860
861 PR libffi/53982
862 PR libffi/53973
863 * src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
864 (FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
865
866 2012-05-16 H.J. Lu <[email protected]>
867
868 * configure: Regenerated.
869
870 2012-05-05 Nicolas Lelong
871
872 * libffi.xcodeproj/project.pbxproj: Fixes.
873 * README: Update for iOS builds.
874
875 2012-04-23 Alexandre Keunecke I. de Mendonca <[email protected]>
876
877 * configure.ac: Add Blackfin/sysv support
878 * Makefile.am: Add Blackfin/sysv support
879 * src/bfin/ffi.c: Add Blackfin/sysv support
880 * src/bfin/ffitarget.h: Add Blackfin/sysv support
881
882 2012-04-11 Anthony Green <[email protected]>
883
884 * Makefile.am (EXTRA_DIST): Add new script.
885 * Makefile.in: Rebuilt.
886
887 2012-04-11 Zachary Waldowski <[email protected]>
888
889 * generate-ios-source-and-headers.py,
890 libffi.xcodeproj/project.pbxproj: Support a Mac static library via
891 Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
892 generation into an Xcode "run script" phase. Include both as
893 Xcode build scripts. Don't always regenerate config files.
894
895 2012-04-10 Anthony Green <[email protected]>
896
897 * src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
898
899 2012-04-06 Anthony Green <[email protected]>
900
901 * Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
902 * Makefile.in: Rebuilt.
903
904 2012-04-06 Mike Lewis <[email protected]>
905
906 * generate-ios-source-and-headers.py: New file.
907 * libffi.xcodeproj/project.pbxproj: New file.
908 * README: Update instructions on building iOS binary.
909 * build-ios.sh: Delete.
910
911 2012-04-06 Anthony Green <[email protected]>
912
913 * src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
914 compilers, then use it.
915
916 2012-04-06 H.J. Lu <[email protected]>
917
918 * m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
919
920 2012-04-06 Anthony Green <[email protected]>
921
922 * testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
923 * testsuite/Makefile.in: Rebuilt.
924
925 2012-04-05 Zachary Waldowski <[email protected]>
926
927 * include/ffi.h.in: Add missing trampoline table fields.
928 * src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
929 in CNAME.
930 * src/x86/ffi.c: Wrap Windows specific code in ifdefs.
931
932 2012-03-29 Peter Rosin <[email protected]>
933
934 * src/x86/win32.S (ffi_closure_raw_THISCALL): Unify the frame
935 generation, fix the ENDP label and remove the surplus third arg
936 from the 'lea' insn.
937
938 2012-03-29 Peter Rosin <[email protected]>
939
940 * src/x86/win32.S (ffi_closure_raw_SYSV): Make the 'stubraw' label
941 visible outside the PROC, so that ffi_closure_raw_THISCALL can see
942 it. Also instruct the assembler to add a frame to the function.
943
944 2012-03-23 Peter Rosin <[email protected]>
945
946 * Makefile.am (AM_CPPFLAGS): Add -DFFI_BUILDING.
947 * Makefile.in: Rebuilt.
948 * include/ffi.h.in [MSVC]: Add __declspec(dllimport) decorations
949 to all data exports, when compiling libffi clients using MSVC.
950
951 2012-03-29 Peter Rosin <[email protected]>
952
953 * src/x86/ffitarget.h (ffi_abi): Add new ABI FFI_MS_CDECL and
954 make it the default for MSVC.
955 (FFI_TYPE_MS_STRUCT): New structure return convention.
956 * src/x86/ffi.c (ffi_prep_cif_machdep): Tweak the structure
957 return convention for FFI_MS_CDECL to be FFI_TYPE_MS_STRUCT
958 instead of an ordinary FFI_TYPE_STRUCT.
959 (ffi_prep_args): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
960 (ffi_call): Likewise.
961 (ffi_prep_incoming_args_SYSV): Likewise.
962 (ffi_raw_call): Likewise.
963 (ffi_prep_closure_loc): Treat FFI_MS_CDECL as FFI_SYSV.
964 * src/x86/win32.S (ffi_closure_SYSV): For FFI_TYPE_MS_STRUCT,
965 return a pointer to the result structure in eax and don't pop
966 that pointer from the stack, the caller takes care of it.
967 (ffi_call_win32): Treat FFI_TYPE_MS_STRUCT as FFI_TYPE_STRUCT.
968 (ffi_closure_raw_SYSV): Likewise.
969
970 2012-03-22 Peter Rosin <[email protected]>
971
972 * testsuite/libffi.call/closure_stdcall.c [MSVC]: Add inline
973 assembly version with Intel syntax.
974 * testsuite/libffi.call/closure_thiscall.c [MSVC]: Likewise.
975
976 2012-03-23 Peter Rosin <[email protected]>
977
978 * testsuite/libffi.call/ffitest.h: Provide abstration of
979 __attribute__((fastcall)) in the form of a __FASTCALL__
980 define. Define it to __fastcall for MSVC.
981 * testsuite/libffi.call/fastthis1_win32.c: Use the above.
982 * testsuite/libffi.call/fastthis2_win32.c: Likewise.
983 * testsuite/libffi.call/fastthis3_win32.c: Likewise.
984 * testsuite/libffi.call/strlen2_win32.c: Likewise.
985 * testsuite/libffi.call/struct1_win32.c: Likewise.
986 * testsuite/libffi.call/struct2_win32.c: Likewise.
987
988 2012-03-22 Peter Rosin <[email protected]>
989
990 * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
991 frame on function entry, MASM adds one automatically.
992
993 2012-03-22 Peter Rosin <[email protected]>
994
995 * testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
996 bits in the MSVC headers.
997
998 2012-03-22 Peter Rosin <[email protected]>
999
1000 * testsuite/libffi.call/cls_12byte.c: Adjust to the C89 style
1001 with no declarations after statements.
1002 * testsuite/libffi.call/cls_16byte.c: Likewise.
1003 * testsuite/libffi.call/cls_18byte.c: Likewise.
1004 * testsuite/libffi.call/cls_19byte.c: Likewise.
1005 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1006 * testsuite/libffi.call/cls_20byte.c: Likewise.
1007 * testsuite/libffi.call/cls_20byte1.c: Likewise.
1008 * testsuite/libffi.call/cls_24byte.c: Likewise.
1009 * testsuite/libffi.call/cls_2byte.c: Likewise.
1010 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1011 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1012 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1013 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1014 * testsuite/libffi.call/cls_4byte.c: Likewise.
1015 * testsuite/libffi.call/cls_5_1_byte.c: Likewise.
1016 * testsuite/libffi.call/cls_5byte.c: Likewise.
1017 * testsuite/libffi.call/cls_64byte.c: Likewise.
1018 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
1019 * testsuite/libffi.call/cls_6byte.c: Likewise.
1020 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
1021 * testsuite/libffi.call/cls_7byte.c: Likewise.
1022 * testsuite/libffi.call/cls_8byte.c: Likewise.
1023 * testsuite/libffi.call/cls_9byte1.c: Likewise.
1024 * testsuite/libffi.call/cls_9byte2.c: Likewise.
1025 * testsuite/libffi.call/cls_align_double.c: Likewise.
1026 * testsuite/libffi.call/cls_align_float.c: Likewise.
1027 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1028 * testsuite/libffi.call/cls_align_longdouble_split.c: Likewise.
1029 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1030 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1031 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1032 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1033 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1034 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1035 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1036 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1037 * testsuite/libffi.call/cls_dbls_struct.c: Likewise.
1038 * testsuite/libffi.call/cls_pointer_stack.c: Likewise.
1039 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
1040 * testsuite/libffi.call/huge_struct.c: Likewise.
1041 * testsuite/libffi.call/nested_struct.c: Likewise.
1042 * testsuite/libffi.call/nested_struct1.c: Likewise.
1043 * testsuite/libffi.call/nested_struct10.c: Likewise.
1044 * testsuite/libffi.call/nested_struct2.c: Likewise.
1045 * testsuite/libffi.call/nested_struct3.c: Likewise.
1046 * testsuite/libffi.call/nested_struct4.c: Likewise.
1047 * testsuite/libffi.call/nested_struct5.c: Likewise.
1048 * testsuite/libffi.call/nested_struct6.c: Likewise.
1049 * testsuite/libffi.call/nested_struct7.c: Likewise.
1050 * testsuite/libffi.call/nested_struct8.c: Likewise.
1051 * testsuite/libffi.call/nested_struct9.c: Likewise.
1052 * testsuite/libffi.call/stret_large.c: Likewise.
1053 * testsuite/libffi.call/stret_large2.c: Likewise.
1054 * testsuite/libffi.call/stret_medium.c: Likewise.
1055 * testsuite/libffi.call/stret_medium2.c: Likewise.
1056 * testsuite/libffi.call/struct1.c: Likewise.
1057 * testsuite/libffi.call/struct1_win32.c: Likewise.
1058 * testsuite/libffi.call/struct2.c: Likewise.
1059 * testsuite/libffi.call/struct2_win32.c: Likewise.
1060 * testsuite/libffi.call/struct3.c: Likewise.
1061 * testsuite/libffi.call/struct4.c: Likewise.
1062 * testsuite/libffi.call/struct5.c: Likewise.
1063 * testsuite/libffi.call/struct6.c: Likewise.
1064 * testsuite/libffi.call/struct7.c: Likewise.
1065 * testsuite/libffi.call/struct8.c: Likewise.
1066 * testsuite/libffi.call/struct9.c: Likewise.
1067 * testsuite/libffi.call/testclosure.c: Likewise.
1068
1069 2012-03-21 Peter Rosin <[email protected]>
1070
1071 * testsuite/libffi.call/float_va.c (float_va_fn): Use %f when
1072 printing doubles (%lf is for long doubles).
1073 (main): Likewise.
1074
1075 2012-03-21 Peter Rosin <[email protected]>
1076
1077 * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
1078 (set_ld_library_path_env_vars): Add the library search dir to PATH
1079 (and save PATH for later).
1080 (restore_ld_library_path_env_vars): Restore PATH.
1081
1082 2012-03-20 Peter Rosin <[email protected]>
1083
1084 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1085 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1086 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1087
1088 2012-03-20 Peter Rosin <[email protected]>
1089
1090 * testsuite/libffi.call/strlen2_win32.c (main): Remove bug.
1091 * src/x86/win32.S [MSVC] (ffi_closure_SYSV): Make the 'stub' label
1092 visible outside the PROC, so that ffi_closure_THISCALL can see it.
1093
1094 2012-03-19 Alan Hourihane <[email protected]>
1095
1096 * src/m68k/ffi.c: Add MINT support.
1097 * src/m68k/sysv.S: Ditto.
1098
1099 2012-03-19 chennam <[email protected]>
1100
1101 * src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
1102 support.
1103
1104 2012-03-06 Chung-Lin Tang <[email protected]>
1105
1106 * src/arm/ffi.c (ffi_call): Add __ARM_EABI__ guard around call to
1107 ffi_call_VFP().
1108 (ffi_prep_closure_loc): Add __ARM_EABI__ guard around use of
1109 ffi_closure_VFP.
1110 * src/arm/sysv.S: Add __ARM_EABI__ guard around VFP code.
1111
1112 2012-04-02 Peter Bergner <[email protected]>
1113
1114 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
1115 Silence casting pointer to integer of different size warning.
1116 Delete goto to previously deleted label.
1117 (ffi_call): Silence possibly undefined warning.
1118 (ffi_closure_helper_SYSV): Declare variable type.
1119
1120 2012-04-02 Peter Rosin <[email protected]>
1121
1122 * src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
1123 value in the Intel version as is already done for the AT&T version.
1124 (ffi_closure_SYSV): Likewise.
1125 (ffi_closure_raw_SYSV): Likewise.
1126 (ffi_closure_STDCALL): Likewise.
1127
1128 2012-03-13 Kaz Kojima <[email protected]>
1129
1130 * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1131 just return FFI_BAD_ABI when things are wrong.
1132 * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto.
1133
1134 2012-03-09 David Edelsohn <[email protected]>
1135
1136 * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
1137 change to return value of ffi_closure_helper_DARWIN and load type
1138 from return type.
1139
1140 2012-03-03 H.J. Lu <[email protected]>
1141
1142 * src/x86/ffi64.c (ffi_call): Cast the return value to unsigned
1143 long.
1144 (ffi_prep_closure_loc): Cast to 64bit address in trampoline.
1145 (ffi_closure_unix64_inner): Cast return pointer to unsigned long
1146 first.
1147
1148 * src/x86/ffitarget.h (FFI_SIZEOF_ARG): Defined to 8 for x32.
1149 (ffi_arg): Set to unsigned long long for x32.
1150 (ffi_sarg): Set to long long for x32.
1151
1152 2012-03-03 H.J. Lu <[email protected]>
1153
1154 * src/prep_cif.c (ffi_prep_cif_core): Properly check bad ABI.
1155
1156 2012-03-03 Andoni Morales Alastruey <[email protected]>
1157
1158 * configure.ac: Add -no-undefined for both 32- and 64-bit x86
1159 windows-like hosts.
1160 * configure: Rebuilt.
1161
1162 2012-02-27 Mikael Pettersson <[email protected]>
1163
1164 PR libffi/52223
1165 * Makefile.am (FLAGS_TO_PASS): Define.
1166 * Makefile.in: Regenerate.
1167
1168 2012-02-23 Anthony Green <[email protected]>
1169
1170 * src/*/ffitarget.h: Ensure that users never include ffitarget.h
1171 directly.
1172
1173 2012-02-23 Kai Tietz <[email protected]>
1174
1175 PR libffi/52221
1176 * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
1177 prototype.
1178 (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
1179 thiscall-convention.
1180 (ffi_raw_call): Use ffi_prep_args_raw.
1181 * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
1182 implementation for stub.
1183
1184 2012-02-10 Kai Tietz <[email protected]>
1185
1186 * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
1187 windows target.
1188 * configure: Regenerated.
1189
1190 2012-02-08 Kai Tietz <[email protected]>
1191
1192 * src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
1193 also FFI_THISCALL.
1194 * src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
1195 (FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
1196 (ffi_prep_closure_loc): Add FFI_THISCALL support.
1197 * src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
1198 * src/x86/win32.S (ffi_closure_THISCALL): New closure code
1199 for thiscall-calling convention.
1200 * testsuite/libffi.call/closure_thiscall.c: New test.
1201
1202 2012-01-28 Kai Tietz <[email protected]>
1203
1204 * src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
1205 argument to prototype for specify calling-convention.
1206 (ffi_call): Add support for stdcall/thiscall convention.
1207 (ffi_prep_args): Likewise.
1208 (ffi_raw_call): Likewise.
1209 * src/x86/ffitarget.h (ffi_abi): Add FFI_THISCALL and
1210 FFI_FASTCALL.
1211 * src/x86/win32.S (_ffi_call_win32): Add support for
1212 fastcall/thiscall calling-convention calls.
1213 * testsuite/libffi.call/fastthis1_win32.c: New test.
1214 * testsuite/libffi.call/fastthis2_win32.c: New test.
1215 * testsuite/libffi.call/fastthis3_win32.c: New test.
1216 * testsuite/libffi.call/strlen2_win32.c: New test.
1217 * testsuite/libffi.call/many2_win32.c: New test.
1218 * testsuite/libffi.call/struct1_win32.c: New test.
1219 * testsuite/libffi.call/struct2_win32.c: New test.
1220
1221 2012-01-23 Uros Bizjak <[email protected]>
1222
1223 * src/alpha/ffi.c (ffi_prep_closure_loc): Check for bad ABI.
1224
1225 2012-01-23 Anthony Green <[email protected]>
1226 Chris Young <[email protected]>
1227
1228 * configure.ac: Add Amiga support.
1229 * configure: Rebuilt.
1230
1231 2012-01-23 Dmitry Nadezhin <[email protected]>
1232
1233 * include/ffi_common.h (LIKELY, UNLIKELY): Fix definitions.
1234
1235 2012-01-23 Andreas Schwab <[email protected]>
1236
1237 * src/m68k/sysv.S (ffi_call_SYSV): Properly test for plain
1238 mc68000. Test for __HAVE_68881__ in addition to __MC68881__.
1239
1240 2012-01-19 Jakub Jelinek <[email protected]>
1241
1242 PR rtl-optimization/48496
1243 * src/ia64/ffi.c (ffi_call): Fix up aliasing violations.
1244
1245 2012-01-09 Rainer Orth <[email protected]>
1246
1247 * configure.ac (i?86-*-*): Set TARGET to X86_64.
1248 * configure: Regenerate.
1249
1250 2011-12-07 Andrew Pinski <[email protected]>
1251
1252 PR libffi/50051
1253 * src/mips/n32.S: Add ".set mips4".
1254
1255 2011-11-21 Andreas Tobler <[email protected]>
1256
1257 * configure: Regenerate.
1258
1259 2011-11-12 David Gilbert <[email protected]>
1260
1261 * doc/libffi.texi, include/ffi.h.in, include/ffi_common.h,
1262 man/Makefile.am, man/ffi.3, man/ffi_prep_cif.3,
1263 man/ffi_prep_cif_var.3, src/arm/ffi.c, src/arm/ffitarget.h,
1264 src/cris/ffi.c, src/prep_cif.c,
1265 testsuite/libffi.call/cls_double_va.c,
1266 testsuite/libffi.call/cls_longdouble_va.c,
1267 testsuite/libffi.call/float_va.c: Many changes to support variadic
1268 function calls.
1269
1270 2011-11-12 Kyle Moffett <[email protected]>
1271
1272 * src/powerpc/ffi.c, src/powerpc/ffitarget.h,
1273 src/powerpc/ppc_closure.S, src/powerpc/sysv.S: Many changes for
1274 softfloat powerpc variants.
1275
1276 2011-11-12 Petr Salinger <[email protected]>
1277
1278 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Fix kfreebsd support.
1279 * configure: Rebuilt.
1280
1281 2011-11-12 Timothy Wall <[email protected]>
1282
1283 * src/arm/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV): Max
1284 alignment of 4 for wince on ARM.
1285
1286 2011-11-12 Kyle Moffett <[email protected]>
1287 Anthony Green <[email protected]>
1288
1289 * src/ppc/sysv.S, src/ppc/ffi.c: Remove use of ppc string
1290 instructions (not available on some cores, like the PPC440).
1291
1292 2011-11-12 Kimura Wataru <[email protected]>
1293
1294 * m4/ax_enable_builddir: Change from string comparison to numeric
1295 comparison for wc output.
1296 * configure.ac: Enable FFI_MMAP_EXEC_WRIT for darwin11 aka Mac OS
1297 X 10.7.
1298 * configure: Rebuilt.
1299
1300 2011-11-12 Anthony Green <[email protected]>
1301
1302 * Makefile.am (AM_CCASFLAGS): Add -g option to build assembly
1303 files with debug info.
1304 * Makefile.in: Rebuilt.
1305
1306 2011-11-12 Jasper Lievisse Adriaanse <[email protected]>
1307
1308 * README: Update list of supported OpenBSD systems.
1309
1310 2011-11-12 Anthony Green <[email protected]>
1311
1312 * libtool-version: Update.
1313 * Makefile.am (nodist_libffi_la_SOURCES): Add src/debug.c if
1314 FFI_DEBUG.
1315 (libffi_la_SOURCES): Remove src/debug.c
1316 (EXTRA_DIST): Add src/debug.c
1317 * Makefile.in: Rebuilt.
1318 * README: Update for 3.0.11.
1319
1320 2011-11-10 Richard Henderson <[email protected]>
1321
1322 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Use it instead of inline check.
1323 * configure, aclocal.m4: Rebuild.
1324
1325 2011-09-04 Iain Sandoe <[email protected]>
1326
1327 PR libffi/49594
1328 * src/powerpc/darwin_closure.S (stubs): Make the stub binding
1329 helper reference track the architecture pointer size.
1330
1331 2011-08-25 Andrew Haley <[email protected]>
1332
1333 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Remove hard-coded assembly
1334 instructions.
1335 * src/arm/sysv.S (ffi_arm_trampoline): Put them here instead.
1336
1337 2011-07-11 Andrew Haley <[email protected]>
1338
1339 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Clear icache.
1340
1341 2011-06-29 Rainer Orth <[email protected]>
1342
1343 * testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
1344 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1345
1346 2011-06-29 Rainer Orth <[email protected]>
1347
1348 PR libffi/46660
1349 * testsuite/libffi.call/cls_double_va.c: xfail dg-output on
1350 mips-sgi-irix6*.
1351 * testsuite/libffi.call/cls_longdouble_va.c: Likewise.
1352
1353 2011-06-14 Rainer Orth <[email protected]>
1354
1355 * testsuite/libffi.call/huge_struct.c (test_large_fn): Use PRIu8,
1356 PRId8 instead of %hhu, %hhd.
1357 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRId8,
1358 PRIu8): Define.
1359 [__sgi__] (PRId8, PRIu8): Define.
1360
1361 2011-04-29 Rainer Orth <[email protected]>
1362
1363 * src/alpha/osf.S (UA_SI, FDE_ENCODING, FDE_ENCODE, FDE_ARANGE):
1364 Define.
1365 Use them to handle ELF vs. ECOFF differences.
1366 [__osf__] (_GLOBAL__F_ffi_call_osf): Define.
1367
1368 2011-03-30 Timothy Wall <[email protected]>
1369
1370 * src/powerpc/darwin.S: Fix unknown FDE encoding.
1371 * src/powerpc/darwin_closure.S: ditto.
1372
1373 2011-02-25 Anthony Green <[email protected]>
1374
1375 * src/powerpc/ffi.c (ffi_prep_closure_loc): Allow for more
1376 32-bit ABIs.
1377
1378 2011-02-15 Anthony Green <[email protected]>
1379
1380 * m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.
1381 * configure: Rebuilt.
1382
1383 2011-02-13 Ralf Wildenhues <[email protected]>
1384
1385 * configure: Regenerate.
1386
1387 2011-02-13 Anthony Green <[email protected]>
1388
1389 * include/ffi_common.h (UNLIKELY, LIKELY): Define.
1390 * src/x86/ffi64.c (UNLIKELY, LIKELY): Remove definition.
1391 * src/prep_cif.c (UNLIKELY, LIKELY): Remove definition.
1392
1393 * src/prep_cif.c (initialize_aggregate): Convert assertion into
1394 FFI_BAD_TYPEDEF return. Initialize arg size and alignment to 0.
1395
1396 * src/pa/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1397 just return FFI_BAD_ABI when things are wrong.
1398 * src/arm/ffi.c (ffi_prep_closure_loc): Ditto.
1399 * src/powerpc/ffi.c (ffi_prep_closure_loc): Ditto.
1400 * src/mips/ffi.c (ffi_prep_closure_loc): Ditto.
1401 * src/ia64/ffi.c (ffi_prep_closure_loc): Ditto.
1402 * src/avr32/ffi.c (ffi_prep_closure_loc): Ditto.
1403
1404 2011-02-11 Anthony Green <[email protected]>
1405
1406 * src/sparc/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
1407 just return FFI_BAD_ABI when things are wrong.
1408
1409 2011-02-11 Eric Botcazou <[email protected]>
1410
1411 * src/sparc/v9.S (STACKFRAME): Bump to 176.
1412
1413 2011-02-09 Stuart Shelton <[email protected]>
1414
1415 http://bugs.gentoo.org/show_bug.cgi?id=286911
1416 * src/mips/ffitarget.h: Clean up error messages.
1417 * src/java_raw_api.c (ffi_java_translate_args): Cast raw arg to
1418 ffi_raw*.
1419 * include/ffi.h.in: Add pragma for SGI compiler.
1420
1421 2011-02-09 Anthony Green <[email protected]>
1422
1423 * configure.ac: Add powerpc64-*-darwin* support.
1424
1425 2011-02-09 Anthony Green <[email protected]>
1426
1427 * README: Mention Interix.
1428
1429 2011-02-09 Jonathan Callen <[email protected]>
1430
1431 * configure.ac: Add Interix to win32/cygwin/mingw case.
1432 * configure: Ditto.
1433 * src/closures.c: Treat Interix like Cygwin, instead of as a
1434 generic win32.
1435
1436 2011-02-09 Anthony Green <[email protected]>
1437
1438 * testsuite/libffi.call/err_bad_typedef.c: Remove xfail.
1439 * testsuite/libffi.call/err_bad_abi.c: Remove xfail.
1440 * src/x86/ffi64.c (UNLIKELY, LIKELY): Define.
1441 (ffi_prep_closure_loc): Check for bad ABI.
1442 * src/prep_cif.c (UNLIKELY, LIKELY): Define.
1443 (initialize_aggregate): Check for bad types.
1444
1445 2011-02-09 Landon Fuller <[email protected]>
1446
1447 * Makefile.am (EXTRA_DIST): Add build-ios.sh, src/arm/gentramp.sh,
1448 src/arm/trampoline.S.
1449 (nodist_libffi_la_SOURCES): Add src/arc/trampoline.S.
1450 * configure.ac (FFI_EXEC_TRAMPOLINE_TABLE): Define.
1451 * src/arm/ffi.c (ffi_trampoline_table)
1452 (ffi_closure_trampoline_table_page, ffi_trampoline_table_entry)
1453 (FFI_TRAMPOLINE_CODELOC_CONFIG, FFI_TRAMPOLINE_CONFIG_PAGE_OFFSET)
1454 (FFI_TRAMPOLINE_COUNT, ffi_trampoline_lock, ffi_trampoline_tables)
1455 (ffi_trampoline_table_alloc, ffi_closure_alloc, ffi_closure_free):
1456 Define for FFI_EXEC_TRAMPOLINE_TABLE case (iOS).
1457 (ffi_prep_closure_loc): Handl FFI_EXEC_TRAMPOLINE_TABLE case
1458 separately.
1459 * src/arm/sysv.S: Handle Apple iOS host.
1460 * src/closures.c: Handle FFI_EXEC_TRAMPOLINE_TABLE case.
1461 * build-ios.sh: New file.
1462 * fficonfig.h.in, configure, Makefile.in: Rebuilt.
1463 * README: Mention ARM iOS.
1464
1465 2011-02-08 Oren Held <[email protected]>
1466
1467 * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
1468 redefinition of mallinfo on HP-UX.
1469
1470 2011-02-08 Ginn Chen <[email protected]>
1471
1472 * src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
1473 aggregate return ABI. Flush cache.
1474 (ffi_prep_closure_loc): Flush cache.
1475
1476 2011-02-11 Anthony Green <[email protected]>
1477
1478 From Tom Honermann <[email protected]>:
1479 * src/powerpc/aix.S (ffi_call_AIX): Support for xlc toolchain on
1480 AIX. Declare .ffi_prep_args. Insert nops after branch
1481 instructions so that the AIX linker can insert TOC reload
1482 instructions.
1483 * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.
1484
1485 2011-02-08 Ed <[email protected]>
1486
1487 * src/powerpc/asm.h: Fix grammar nit in comment.
1488
1489 2011-02-08 Uli Link <[email protected]>
1490
1491 * include/ffi.h.in (FFI_64_BIT_MAX): Define and use.
1492
1493 2011-02-09 Rainer Orth <[email protected]>
1494
1495 PR libffi/46661
1496 * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
1497 uintptr_t first.
1498 * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
1499
1500 2011-02-08 Rafael Avila de Espindola <[email protected]>
1501
1502 * configure.ac: Fix x86 test for pc related relocs.
1503 * configure: Rebuilt.
1504
1505 2011-02-07 Joel Sherrill <[email protected]>
1506
1507 * libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
1508 Handle case when CPU variant does not have long double support.
1509 * libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
1510 and cores with soft floating point.
1511
1512 2011-02-07 Joel Sherrill <[email protected]>
1513
1514 * configure.ac: Add mips*-*-rtems* support.
1515 * configure: Regenerate.
1516 * src/mips/ffitarget.h: Ensure needed constants are available
1517 for targets which do not have sgidefs.h.
1518
1519 2011-01-26 Dave Korn <[email protected]>
1520
1521 PR target/40125
1522 * configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
1523 * configure: Regenerate.
1524
1525 2010-12-18 Iain Sandoe <[email protected]>
1526
1527 PR libffi/29152
1528 PR libffi/42378
1529 * src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
1530 update comments.
1531 * src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
1532 (FFI_TRAMPOLINE_SIZE): Update for Darwin64.
1533 * src/powerpc/darwin.S: Provide Darwin64 implementation,
1534 update comments.
1535 * src/powerpc/ffi_darwin.c: Likewise.
1536
1537 2010-12-06 Rainer Orth <[email protected]>
1538
1539 * configure.ac (libffi_cv_as_ascii_pseudo_op): Use double
1540 backslashes.
1541 (libffi_cv_as_string_pseudo_op): Likewise.
1542 * configure: Regenerate.
1543
1544 2010-12-03 Chung-Lin Tang <[email protected]>
1545
1546 * src/arm/sysv.S (ffi_closure_SYSV): Add UNWIND to .pad directive.
1547 (ffi_closure_VFP): Same.
1548 (ffi_call_VFP): Move down to before ffi_closure_VFP. Add '.fpu vfp'
1549 directive.
1550
1551 2010-12-01 Rainer Orth <[email protected]>
1552
1553 * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
1554 (PRIuPTR): Define.
1555
1556 2010-11-29 Richard Henderson <[email protected]>
1557 Rainer Orth <[email protected]>
1558
1559 * src/x86/sysv.S (FDE_ENCODING, FDE_ENCODE): Define.
1560 (.eh_frame): Use FDE_ENCODING.
1561 (.LASFDE1, .LASFDE2, LASFDE3): Simplify with FDE_ENCODE.
1562
1563 2010-11-22 Jacek Caban <[email protected]>
1564
1565 * configure.ac: Check for symbol underscores on mingw-w64.
1566 * configure: Rebuilt.
1567 * src/x86/win64.S: Correctly access extern symbols in respect to
1568 underscores.
1569
1570 2010-11-15 Rainer Orth <[email protected]>
1571
1572 * testsuite/lib/libffi-dg.exp: Rename ...
1573 * testsuite/lib/libffi.exp: ... to this.
1574 * libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
1575 * libffi/testsuite/libffi.special/special.exp: Likewise.
1576
1577 2010-10-28 Chung-Lin Tang <[email protected]>
1578
1579 * src/arm/ffi.c (ffi_prep_args): Add VFP register argument handling
1580 code, new parameter, and return value. Update comments.
1581 (ffi_prep_cif_machdep): Add case for VFP struct return values. Add
1582 call to layout_vfp_args().
1583 (ffi_call_SYSV): Update declaration.
1584 (ffi_call_VFP): New declaration.
1585 (ffi_call): Add VFP struct return conditions. Call ffi_call_VFP()
1586 when ABI is FFI_VFP.
1587 (ffi_closure_VFP): New declaration.
1588 (ffi_closure_SYSV_inner): Add new vfp_args parameter, update call to
1589 ffi_prep_incoming_args_SYSV().
1590 (ffi_prep_incoming_args_SYSV): Update parameters. Add VFP argument
1591 case handling.
1592 (ffi_prep_closure_loc): Pass ffi_closure_VFP to trampoline
1593 construction under VFP hard-float.
1594 (rec_vfp_type_p): New function.
1595 (vfp_type_p): Same.
1596 (place_vfp_arg): Same.
1597 (layout_vfp_args): Same.
1598 * src/arm/ffitarget.h (ffi_abi): Add FFI_VFP. Define FFI_DEFAULT_ABI
1599 based on __ARM_PCS_VFP.
1600 (FFI_EXTRA_CIF_FIELDS): Define for adding VFP hard-float specific
1601 fields.
1602 (FFI_TYPE_STRUCT_VFP_FLOAT): Define internally used type code.
1603 (FFI_TYPE_STRUCT_VFP_DOUBLE): Same.
1604 * src/arm/sysv.S (ffi_call_SYSV): Change call of ffi_prep_args() to
1605 direct call. Move function pointer load upwards.
1606 (ffi_call_VFP): New function.
1607 (ffi_closure_VFP): Same.
1608
1609 * testsuite/lib/libffi-dg.exp (check-flags): New function.
1610 (dg-skip-if): New function.
1611 * testsuite/libffi.call/cls_double_va.c: Skip if target is arm*-*-*
1612 and compiler options include -mfloat-abi=hard.
1613 * testsuite/libffi.call/cls_longdouble_va.c: Same.
1614
1615 2010-10-01 Jakub Jelinek <[email protected]>
1616
1617 PR libffi/45677
1618 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is
1619 a multiple of 8.
1620 * testsuite/libffi.call/many2.c: New test.
1621
1622 2010-08-20 Mark Wielaard <[email protected]>
1623
1624 * src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
1625 returns NULL.
1626
1627 2010-08-09 Andreas Tobler <[email protected]>
1628
1629 * configure.ac: Add target powerpc64-*-freebsd*.
1630 * configure: Regenerate.
1631 * testsuite/libffi.call/cls_align_longdouble_split.c: Pass
1632 -mlong-double-128 only to linux targets.
1633 * testsuite/libffi.call/cls_align_longdouble_split2.c: Likewise.
1634 * testsuite/libffi.call/cls_longdouble.c: Likewise.
1635 * testsuite/libffi.call/huge_struct.c: Likewise.
1636
1637 2010-08-05 Dan Witte <[email protected]>
1638
1639 * Makefile.am: Pass FFI_DEBUG define to msvcc.sh for linking to the
1640 debug CRT when --enable-debug is given.
1641 * configure.ac: Define it.
1642 * msvcc.sh: Translate -g and -DFFI_DEBUG appropriately.
1643
1644 2010-08-04 Dan Witte <[email protected]>
1645
1646 * src/x86/ffitarget.h: Add X86_ANY define for all x86/x86_64
1647 platforms.
1648 * src/x86/ffi.c: Remove redundant ifdef checks.
1649 * src/prep_cif.c: Push stack space computation into src/x86/ffi.c
1650 for X86_ANY so return value space doesn't get added twice.
1651
1652 2010-08-03 Neil Rashbrooke <[email protected]>
1653
1654 * msvcc.sh: Don't pass -safeseh to ml64 because behavior is buggy.
1655
1656 2010-07-22 Dan Witte <[email protected]>
1657
1658 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
1659 * src/prep_cif.c: Fix ABI assertion.
1660 * src/cris/ffi.c: Ditto.
1661
1662 2010-07-10 Evan Phoenix <[email protected]>
1663
1664 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
1665
1666 2010-07-07 Dan HorĂ¡k <[email protected]>
1667
1668 * include/ffi.h.in: Protect #define with #ifndef.
1669 * src/powerpc/ffitarget.h: Ditto.
1670 * src/s390/ffitarget.h: Ditto.
1671 * src/sparc/ffitarget.h: Ditto.
1672
1673 2010-07-07 Neil Roberts <[email protected]>
1674
1675 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
1676 16-bytes.
1677
1678 2010-07-02 Jakub Jelinek <[email protected]>
1679
1680 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
1681 * Makefile.in: Regenerated.
1682
1683 2010-05-19 Rainer Orth <[email protected]>
1684
1685 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
1686 output, too.
1687 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
1688 (libffi_cv_as_string_pseudo_op): Check for .string.
1689 * configure: Regenerate.
1690 * fficonfig.h.in: Regenerate.
1691 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
1692
1693 2010-05-11 Dan Witte <[email protected]>
1694
1695 * doc/libffi.tex: Document previous change.
1696
1697 2010-05-11 Makoto Kato <[email protected]>
1698
1699 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
1700
1701 2010-05-05 Michael Kohler <[email protected]>
1702
1703 * src/dlmalloc.c (dlfree): Fix spelling.
1704 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
1705 * configure.ac: Ditto.
1706 * configure: Rebuilt.
1707
1708 2010-04-13 Dan Witte <[email protected]>
1709
1710 * msvcc.sh: Build with -W3 instead of -Wall.
1711 * src/powerpc/ffi_darwin.c: Remove build warnings.
1712 * src/x86/ffi.c: Ditto.
1713 * src/x86/ffitarget.h: Ditto.
1714
1715 2010-04-12 Dan Witte <[email protected]>
1716 Walter Meinl <[email protected]>
1717
1718 * configure.ac: Add OS/2 support.
1719 * configure: Rebuilt.
1720 * src/closures.c: Ditto.
1721 * src/dlmalloc.c: Ditto.
1722 * src/x86/win32.S: Ditto.
1723
1724 2010-04-07 Jakub Jelinek <[email protected]>
1725
1726 * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.
1727
1728 2010-04-02 Ralf Wildenhues <[email protected]>
1729
1730 * Makefile.in: Regenerate.
1731 * aclocal.m4: Regenerate.
1732 * include/Makefile.in: Regenerate.
1733 * man/Makefile.in: Regenerate.
1734 * testsuite/Makefile.in: Regenerate.
1735
1736 2010-03-30 Dan Witte <[email protected]>
1737
1738 * msvcc.sh: Disable build warnings.
1739 * README (tested): Clarify windows build procedure.
1740
1741 2010-03-15 Rainer Orth <[email protected]>
1742
1743 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
1744 * configure: Regenerate.
1745 * fficonfig.h.in: Regenerate.
1746 * libffi/src/x86/unix64.S (.eh_frame)
1747 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
1748
1749 2010-03-14 Matthias Klose <[email protected]>
1750
1751 * src/x86/ffi64.c: Fix typo in comment.
1752 * src/x86/ffi.c: Use /* ... */ comment style.
1753
1754 2010-02-24 Rainer Orth <[email protected]>
1755
1756 * doc/libffi.texi (The Closure API): Fix typo.
1757 * doc/libffi.info: Remove.
1758
1759 2010-02-15 Matthias Klose <[email protected]>
1760
1761 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
1762 __ARM_ARCH_7EM__.
1763
1764 2010-01-15 Anthony Green <[email protected]>
1765
1766 * README: Add notes on building with Microsoft Visual C++.
1767
1768 2010-01-15 Daniel Witte <[email protected]>
1769
1770 * msvcc.sh: New file.
1771
1772 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
1773 * src/x86/ffi.c: Tweak function declaration and remove excess
1774 parens.
1775 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
1776 ffi_closure.
1777
1778 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
1779 function ffi_call_win32 on X86_WIN32.
1780 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
1781 (ffi_call_STDCALL): Remove.
1782
1783 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
1784 to ffi_prep_cif_machdep for x86.
1785 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
1786
1787 2010-01-15 Oliver Kiddle <[email protected]>
1788
1789 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
1790 Sun Studio compiler compatibility.
1791
1792 2010-01-12 Conrad Irwin <[email protected]>
1793
1794 * doc/libffi.texi: Add closure example.
1795
1796 2010-01-07 Rainer Orth <[email protected]>
1797
1798 PR libffi/40701
1799 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
1800 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
1801 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
1802 alpha*-dec-osf*.
1803 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1804 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1805 * testsuite/libffi.call/return_ll1.c: Likewise.
1806 * testsuite/libffi.call/stret_medium2.c: Likewise.
1807 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
1808 MAP_FAILED to char *.
1809
1810 2010-01-06 Rainer Orth <[email protected]>
1811
1812 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
1813
1814 2009-12-31 Anthony Green <[email protected]>
1815
1816 * README: Update for libffi 3.0.9.
1817
1818 2009-12-27 Matthias Klose <[email protected]>
1819
1820 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
1821 appropriate.
1822 * configure: Rebuilt.
1823
1824 2009-12-26 Anthony Green <[email protected]>
1825
1826 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
1827 avr32*-*-*.
1828 * testsuite/libffi.call/cls_double_va.c: Ditto.
1829
1830 2009-12-26 Andreas Tobler <[email protected]>
1831
1832 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
1833 and inttypes.h.
1834 * testsuite/libffi.special/unwindtest.cc: Ditto.
1835
1836 2009-12-26 Andreas Tobler <[email protected]>
1837
1838 * configure.ac: Add amd64-*-openbsd*.
1839 * configure: Rebuilt.
1840 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
1841 openbsd programs with -lpthread.
1842
1843 2009-12-26 Anthony Green <[email protected]>
1844
1845 * testsuite/libffi.call/cls_double_va.c,
1846 testsuite/libffi.call/cls_longdouble.c,
1847 testsuite/libffi.call/cls_longdouble_va.c,
1848 testsuite/libffi.call/cls_pointer.c,
1849 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
1850 mips*-*-* and arm*-*-*.
1851 * testsuite/libffi.call/cls_align_longdouble_split.c,
1852 testsuite/libffi.call/cls_align_longdouble_split2.c,
1853 testsuite/libffi.call/stret_medium2.c,
1854 testsuite/libffi.call/stret_medium.c,
1855 testsuite/libffi.call/stret_large.c,
1856 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
1857
1858 2009-12-31 Kay Tietz <[email protected]>
1859
1860 * testsuite/libffi.call/ffitest.h,
1861 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
1862 definitions.
1863
1864 2009-12-31 Carlo Bramini <[email protected]>
1865
1866 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
1867 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
1868 * configure: Rebuilt.
1869 * Makefile.in: Rebuilt.
1870
1871 2009-12-31 Anthony Green <[email protected]>
1872 Blake Chaffin.
1873
1874 * testsuite/libffi.call/huge_struct.c: New test case from Blake
1875 Chaffin @ Apple.
1876
1877 2009-12-28 David Edelsohn <[email protected]>
1878
1879 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
1880 local variables.
1881 (aix_adjust_aggregate_sizes): New function.
1882 (ffi_prep_cif_machdep): Call it.
1883
1884 2009-12-26 Andreas Tobler <[email protected]>
1885
1886 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
1887 * configure: Regenerate.
1888 * fficonfig.h.in: Likewise.
1889 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
1890 Solaris/x86.
1891
1892 2009-12-26 Andreas Schwab <[email protected]>
1893
1894 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
1895 when a float arguments is passed in memory.
1896 (ffi_closure_helper_SYSV): Mark general registers as used up when
1897 a 64bit or soft-float long double argument is passed in memory.
1898
1899 2009-12-25 Matthias Klose <[email protected]>
1900
1901 * man/ffi_call.3: Fix #include in examples.
1902 * doc/libffi.texi: Add dircategory.
1903
1904 2009-12-25 Frank Everdij <[email protected]>
1905
1906 * include/ffi.h.in: Placed '__GNUC__' ifdef around
1907 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
1908 IRIX MIPSPro c99.
1909 * include/ffi_common.h: Added '__sgi' define to non
1910 '__attribute__((__mode__()))' integer typedefs.
1911 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
1912 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
1913 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
1914 FFI_LONGDOUBLE support and alignment(N32 only).
1915 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
1916 fixed non '__attribute__((__mode__()))' integer typedefs.
1917 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
1918 since they are Linux/GNU Assembler specific.
1919
1920 2009-12-25 Bradley Smith <[email protected]>
1921
1922 * configure.ac, Makefile.am, src/avr32/ffi.c,
1923 src/avr32/ffitarget.h,
1924 src/avr32/sysv.S: Add AVR32 port.
1925 * configure, Makefile.in: Rebuilt.
1926
1927 2009-12-21 Andreas Tobler <[email protected]>
1928
1929 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
1930 * configure: Regenerate.
1931
1932 2009-12-15 John David Anglin <[email protected]>
1933
1934 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
1935
1936 2009-12-13 John David Anglin <[email protected]>
1937
1938 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
1939 type on HP-UX.
1940
1941 2012-02-13 Kai Tietz <[email protected]>
1942
1943 PR libffi/52221
1944 * src/x86/ffi.c (ffi_prep_raw_closure_loc): Add thiscall
1945 support for X86_WIN32.
1946 (FFI_INIT_TRAMPOLINE_THISCALL): Fix displacement.
1947
1948 2009-12-11 Eric Botcazou <[email protected]>
1949
1950 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
1951 double' arguments.
1952
1953 2009-12-11 Eric Botcazou <[email protected]>
1954
1955 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
1956
1957 2009-12-10 Rainer Orth <[email protected]>
1958
1959 PR libffi/40700
1960 * src/closures.c [X86_64 && __sun__ && __svr4__]
1961 (FFI_MMAP_EXEC_WRIT): Define.
1962
1963 2009-12-08 David Daney <[email protected]>
1964
1965 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
1966 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
1967 * testsuite/libffi.call/stret_large.c: Same.
1968 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
1969 * testsuite/libffi.call/stret_large2.c: Same.
1970 * testsuite/libffi.call/stret_medium2.c: Same.
1971
1972 2009-12-07 David Edelsohn <[email protected]>
1973
1974 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
1975 typo.
1976
1977 2009-12-05 David Edelsohn <[email protected]>
1978
1979 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
1980 code.
1981 * src/powerpc/aix_closure.S: Same.
1982
1983 2009-12-05 Ralf Wildenhues <[email protected]>
1984
1985 * Makefile.in: Regenerate.
1986 * configure: Regenerate.
1987 * include/Makefile.in: Regenerate.
1988 * man/Makefile.in: Regenerate.
1989 * testsuite/Makefile.in: Regenerate.
1990
1991 2009-12-04 David Edelsohn <[email protected]>
1992
1993 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
1994 linux64_closure.S.
1995
1996 2009-12-04 Uros Bizjak <[email protected]>
1997
1998 PR libffi/41908
1999 * src/x86/ffi64.c (classify_argument): Update from
2000 gcc/config/i386/i386.c.
2001 (ffi_closure_unix64_inner): Do not use the address of two consecutive
2002 SSE registers directly.
2003 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
2004 for x86_64 linux targets.
2005
2006 2009-12-04 David Edelsohn <[email protected]>
2007
2008 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
2009 pfr for long double split between fpr13 and stack.
2010
2011 2009-12-03 David Edelsohn <[email protected]>
2012
2013 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
2014 fparg_count twice for long double.
2015
2016 2009-12-03 David Edelsohn <[email protected]>
2017
2018 PR libffi/42243
2019 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
2020
2021 2009-12-03 Uros Bizjak <[email protected]>
2022
2023 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
2024 Remove xfails for x86 linux targets.
2025
2026 2009-12-02 David Edelsohn <[email protected]>
2027
2028 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
2029 case.
2030
2031 2009-12-01 David Edelsohn <[email protected]>
2032
2033 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
2034 register usage. Call ffi_prep_args directly. Add long double
2035 return value support.
2036 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
2037 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
2038 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
2039 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
2040 mode.
2041 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
2042 into case.
2043 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
2044 Allocate result area between params and FPRs.
2045
2046 2009-11-30 David Edelsohn <[email protected]>
2047
2048 PR target/35484
2049 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
2050 AIX64.
2051 * src/powerpc/aix.S: Implement AIX64 version.
2052 * src/powerpc/aix_closure.S: Implement AIX64 version.
2053 (ffi_closure_ASM): Use extsb, lha and displament addresses.
2054 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
2055 support.
2056 (ffi_prep_cif_machdep): Same.
2057 (ffi_call): Same.
2058 (ffi_closure_helper_DARWIN): Same.
2059
2060 2009-11-02 Andreas Tobler <[email protected]>
2061
2062 PR libffi/41908
2063 * testsuite/libffi.call/testclosure.c: New test.
2064
2065 2009-09-28 Kai Tietz <[email protected]>
2066
2067 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
2068 assembly version use of ___chkstk.
2069
2070 2009-09-23 Matthias Klose <[email protected]>
2071
2072 PR libffi/40242, PR libffi/41443
2073 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
2074 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
2075 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
2076 Change the conditionals to __SOFTFP__ || __ARM_EABI__
2077 for -mfloat-abi=softfp to work.
2078
2079 2009-09-17 Loren J. Rittle <[email protected]>
2080
2081 PR testsuite/32843 (strikes again)
2082 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
2083 enable proper extension on char and short.
2084
2085 2009-09-15 David Daney <[email protected]>
2086
2087 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
2088 handling for FFI_TYPE_POINTER.
2089 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
2090 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
2091 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
2092 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
2093 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
2094 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
2095 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
2096 structure and pointer returns.
2097 (ffi_closure_N32): Add handling for pointer returns.
2098 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
2099 calc_n32_return_struct_flags): Handle soft-float.
2100 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
2101 (ffi_call_N32): Declare proper argument types.
2102 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
2103 soft-float.
2104
2105 2009-08-24 Ralf Wildenhues <[email protected]>
2106
2107 * configure.ac (AC_PREREQ): Bump to 2.64.
2108
2109 2009-08-22 Ralf Wildenhues <[email protected]>
2110
2111 * Makefile.am (install-html, install-pdf): Remove.
2112 * Makefile.in: Regenerate.
2113
2114 * Makefile.in: Regenerate.
2115 * aclocal.m4: Regenerate.
2116 * configure: Regenerate.
2117 * fficonfig.h.in: Regenerate.
2118 * include/Makefile.in: Regenerate.
2119 * man/Makefile.in: Regenerate.
2120 * testsuite/Makefile.in: Regenerate.
2121
2122 2011-08-22 Jasper Lievisse Adriaanse <[email protected]>
2123
2124 * configure.ac: Add OpenBSD/hppa and OpenBSD/powerpc support.
2125 * configure: Rebuilt.
2126
2127 2009-07-30 Ralf Wildenhues <[email protected]>
2128
2129 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2130
2131 2009-07-24 Dave Korn <[email protected]>
2132
2133 PR libffi/40807
2134 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
2135 return types for X86_WIN32.
2136 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
2137 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
2138 _ffi_closure_STDCALL): Likewise.
2139
2140 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
2141 (dlmmap, dlmunmap): Also use these functions on Cygwin.
2142
2143 2009-07-11 Richard Sandiford <[email protected]>
2144
2145 PR testsuite/40699
2146 PR testsuite/40707
2147 PR testsuite/40709
2148 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
2149 2009-06-30 commits.
2150
2151 2009-07-01 Richard Sandiford <[email protected]>
2152
2153 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
2154 to "" before adding paths. (This reinstates an assignment that
2155 was removed by my 2009-06-30 commit, but changes the initial
2156 value from "." to "".)
2157
2158 2009-07-01 H.J. Lu <[email protected]>
2159
2160 PR testsuite/40601
2161 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
2162 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
2163 empty.
2164
2165 2009-06-30 Richard Sandiford <[email protected]>
2166
2167 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
2168 to ld_library_path. Use add_path. Add just find_libgcc_s
2169 to ld_library_path, not every libgcc multilib directory.
2170
2171 2009-06-16 Wim Lewis <[email protected]>
2172
2173 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
2174 supposed to be callee-saved.
2175 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
2176 return buffer for odd-size structs.
2177
2178 2009-06-16 Andreas Tobler <[email protected]>
2179
2180 PR libffi/40444
2181 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
2182 allow_stack_execute for Darwin.
2183
2184 2009-06-16 Andrew Haley <[email protected]>
2185
2186 * configure.ac (TARGETDIR): Add missing blank lines.
2187 * configure: Regenerate.
2188
2189 2009-06-16 Andrew Haley <[email protected]>
2190
2191 * testsuite/libffi.call/cls_align_sint64.c,
2192 testsuite/libffi.call/cls_align_uint64.c,
2193 testsuite/libffi.call/cls_longdouble_va.c,
2194 testsuite/libffi.call/cls_ulonglong.c,
2195 testsuite/libffi.call/return_ll1.c,
2196 testsuite/libffi.call/stret_medium2.c: Fix printf format
2197 specifiers.
2198 * testsuite/libffi.call/ffitest.h,
2199 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
2200
2201 2009-06-15 Andrew Haley <[email protected]>
2202
2203 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
2204 * testsuite/libffi.call/err_bad_abi.c: Likewise.
2205
2206 2009-06-12 Andrew Haley <[email protected]>
2207
2208 * Makefile.am: Remove info_TEXINFOS.
2209
2210 2009-06-12 Andrew Haley <[email protected]>
2211
2212 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
2213 testsuite/libffi.call/cls_align_uint64.c,
2214 testsuite/libffi.call/cls_ulonglong.c,
2215 testsuite/libffi.call/return_ll1.c,
2216 testsuite/libffi.call/stret_medium2.c: Fix printf format
2217 specifiers.
2218 testsuite/libffi.special/unwindtest.cc: include stdint.h.
2219
2220 2009-06-11 Timothy Wall <[email protected]>
2221
2222 * Makefile.am,
2223 configure.ac,
2224 include/ffi.h.in,
2225 include/ffi_common.h,
2226 src/closures.c,
2227 src/dlmalloc.c,
2228 src/x86/ffi.c,
2229 src/x86/ffitarget.h,
2230 src/x86/win64.S (new),
2231 README: Added win64 support (mingw or MSVC)
2232 * Makefile.in,
2233 include/Makefile.in,
2234 man/Makefile.in,
2235 testsuite/Makefile.in,
2236 configure,
2237 aclocal.m4: Regenerated
2238 * ltcf-c.sh: properly escape cygwin/w32 path
2239 * man/ffi_call.3: Clarify size requirements for return value.
2240 * src/x86/ffi64.c: Fix filename in comment.
2241 * src/x86/win32.S: Remove unused extern.
2242
2243 * testsuite/libffi.call/closure_fn0.c,
2244 testsuite/libffi.call/closure_fn1.c,
2245 testsuite/libffi.call/closure_fn2.c,
2246 testsuite/libffi.call/closure_fn3.c,
2247 testsuite/libffi.call/closure_fn4.c,
2248 testsuite/libffi.call/closure_fn5.c,
2249 testsuite/libffi.call/closure_fn6.c,
2250 testsuite/libffi.call/closure_stdcall.c,
2251 testsuite/libffi.call/cls_12byte.c,
2252 testsuite/libffi.call/cls_16byte.c,
2253 testsuite/libffi.call/cls_18byte.c,
2254 testsuite/libffi.call/cls_19byte.c,
2255 testsuite/libffi.call/cls_1_1byte.c,
2256 testsuite/libffi.call/cls_20byte.c,
2257 testsuite/libffi.call/cls_20byte1.c,
2258 testsuite/libffi.call/cls_24byte.c,
2259 testsuite/libffi.call/cls_2byte.c,
2260 testsuite/libffi.call/cls_3_1byte.c,
2261 testsuite/libffi.call/cls_3byte1.c,
2262 testsuite/libffi.call/cls_3byte2.c,
2263 testsuite/libffi.call/cls_4_1byte.c,
2264 testsuite/libffi.call/cls_4byte.c,
2265 testsuite/libffi.call/cls_5_1_byte.c,
2266 testsuite/libffi.call/cls_5byte.c,
2267 testsuite/libffi.call/cls_64byte.c,
2268 testsuite/libffi.call/cls_6_1_byte.c,
2269 testsuite/libffi.call/cls_6byte.c,
2270 testsuite/libffi.call/cls_7_1_byte.c,
2271 testsuite/libffi.call/cls_7byte.c,
2272 testsuite/libffi.call/cls_8byte.c,
2273 testsuite/libffi.call/cls_9byte1.c,
2274 testsuite/libffi.call/cls_9byte2.c,
2275 testsuite/libffi.call/cls_align_double.c,
2276 testsuite/libffi.call/cls_align_float.c,
2277 testsuite/libffi.call/cls_align_longdouble.c,
2278 testsuite/libffi.call/cls_align_longdouble_split.c,
2279 testsuite/libffi.call/cls_align_longdouble_split2.c,
2280 testsuite/libffi.call/cls_align_pointer.c,
2281 testsuite/libffi.call/cls_align_sint16.c,
2282 testsuite/libffi.call/cls_align_sint32.c,
2283 testsuite/libffi.call/cls_align_sint64.c,
2284 testsuite/libffi.call/cls_align_uint16.c,
2285 testsuite/libffi.call/cls_align_uint32.c,
2286 testsuite/libffi.call/cls_align_uint64.c,
2287 testsuite/libffi.call/cls_dbls_struct.c,
2288 testsuite/libffi.call/cls_double.c,
2289 testsuite/libffi.call/cls_double_va.c,
2290 testsuite/libffi.call/cls_float.c,
2291 testsuite/libffi.call/cls_longdouble.c,
2292 testsuite/libffi.call/cls_longdouble_va.c,
2293 testsuite/libffi.call/cls_multi_schar.c,
2294 testsuite/libffi.call/cls_multi_sshort.c,
2295 testsuite/libffi.call/cls_multi_sshortchar.c,
2296 testsuite/libffi.call/cls_multi_uchar.c,
2297 testsuite/libffi.call/cls_multi_ushort.c,
2298 testsuite/libffi.call/cls_multi_ushortchar.c,
2299 testsuite/libffi.call/cls_pointer.c,
2300 testsuite/libffi.call/cls_pointer_stack.c,
2301 testsuite/libffi.call/cls_schar.c,
2302 testsuite/libffi.call/cls_sint.c,
2303 testsuite/libffi.call/cls_sshort.c,
2304 testsuite/libffi.call/cls_uchar.c,
2305 testsuite/libffi.call/cls_uint.c,
2306 testsuite/libffi.call/cls_ulonglong.c,
2307 testsuite/libffi.call/cls_ushort.c,
2308 testsuite/libffi.call/err_bad_abi.c,
2309 testsuite/libffi.call/err_bad_typedef.c,
2310 testsuite/libffi.call/float2.c,
2311 testsuite/libffi.call/huge_struct.c,
2312 testsuite/libffi.call/nested_struct.c,
2313 testsuite/libffi.call/nested_struct1.c,
2314 testsuite/libffi.call/nested_struct10.c,
2315 testsuite/libffi.call/nested_struct2.c,
2316 testsuite/libffi.call/nested_struct3.c,
2317 testsuite/libffi.call/nested_struct4.c,
2318 testsuite/libffi.call/nested_struct5.c,
2319 testsuite/libffi.call/nested_struct6.c,
2320 testsuite/libffi.call/nested_struct7.c,
2321 testsuite/libffi.call/nested_struct8.c,
2322 testsuite/libffi.call/nested_struct9.c,
2323 testsuite/libffi.call/problem1.c,
2324 testsuite/libffi.call/return_ldl.c,
2325 testsuite/libffi.call/return_ll1.c,
2326 testsuite/libffi.call/stret_large.c,
2327 testsuite/libffi.call/stret_large2.c,
2328 testsuite/libffi.call/stret_medium.c,
2329 testsuite/libffi.call/stret_medium2.c,
2330 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
2331 of checking for MMAP. Use intptr_t instead of long casts.
2332
2333 2009-06-11 Kaz Kojima <[email protected]>
2334
2335 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
2336 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
2337 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
2338
2339 2009-06-09 Andrew Haley <[email protected]>
2340
2341 * src/x86/freebsd.S: Add missing file.
2342
2343 2009-06-08 Andrew Haley <[email protected]>
2344
2345 Import from libffi 3.0.8:
2346
2347 * doc/libffi.texi: New file.
2348 * doc/libffi.info: Likewise.
2349 * doc/stamp-vti: Likewise.
2350 * man/Makefile.am: New file.
2351 * man/ffi_call.3: New file.
2352
2353 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
2354 src/dlmalloc.c.
2355 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
2356
2357 * configure.ac: Bump version to 3.0.8.
2358 parisc*-*-linux*: Add.
2359 i386-*-freebsd* | i386-*-openbsd*: Add.
2360 powerpc-*-beos*: Add.
2361 AM_CONDITIONAL X86_FREEBSD: Add.
2362 AC_CONFIG_FILES: Add man/Makefile.
2363
2364 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
2365
2366 2009-06-08 Andrew Haley <[email protected]>
2367
2368 * README: Import from libffi 3.0.8.
2369
2370 2009-06-08 Andrew Haley <[email protected]>
2371
2372 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
2373 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
2374 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
2375 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
2376
2377 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
2378 * testsuite/libffi.call/stret_medium.c: Likewise.
2379 * testsuite/libffi.call/stret_large2.c: Likewise.
2380 * testsuite/libffi.call/stret_large.c: Likewise.
2381
2382 2008-12-26 Timothy Wall <[email protected]>
2383
2384 * testsuite/libffi.call/cls_longdouble.c,
2385 testsuite/libffi.call/cls_longdouble_va.c,
2386 testsuite/libffi.call/cls_align_longdouble.c,
2387 testsuite/libffi.call/cls_align_longdouble_split.c,
2388 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
2389 failures on x86_64 cygwin/mingw.
2390
2391 2008-12-22 Timothy Wall <[email protected]>
2392
2393 * testsuite/libffi.call/closure_fn0.c,
2394 testsuite/libffi.call/closure_fn1.c,
2395 testsuite/libffi.call/closure_fn2.c,
2396 testsuite/libffi.call/closure_fn3.c,
2397 testsuite/libffi.call/closure_fn4.c,
2398 testsuite/libffi.call/closure_fn5.c,
2399 testsuite/libffi.call/closure_fn6.c,
2400 testsuite/libffi.call/closure_loc_fn0.c,
2401 testsuite/libffi.call/closure_stdcall.c,
2402 testsuite/libffi.call/cls_align_pointer.c,
2403 testsuite/libffi.call/cls_pointer.c,
2404 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
2405 pointer to integer (intptr_t).
2406 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
2407
2408 2008-07-24 Anthony Green <[email protected]>
2409
2410 * testsuite/libffi.call/cls_dbls_struct.c,
2411 testsuite/libffi.call/cls_double_va.c,
2412 testsuite/libffi.call/cls_longdouble.c,
2413 testsuite/libffi.call/cls_longdouble_va.c,
2414 testsuite/libffi.call/cls_pointer.c,
2415 testsuite/libffi.call/cls_pointer_stack.c,
2416 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
2417 compiler warnings.
2418
2419 2008-03-04 Anthony Green <[email protected]>
2420 Blake Chaffin
2421 [email protected]
2422
2423 * testsuite/libffi.call/cls_align_longdouble_split2.c
2424 testsuite/libffi.call/cls_align_longdouble_split.c
2425 testsuite/libffi.call/cls_dbls_struct.c
2426 testsuite/libffi.call/cls_double_va.c
2427 testsuite/libffi.call/cls_longdouble.c
2428 testsuite/libffi.call/cls_longdouble_va.c
2429 testsuite/libffi.call/cls_pointer.c
2430 testsuite/libffi.call/cls_pointer_stack.c
2431 testsuite/libffi.call/err_bad_abi.c
2432 testsuite/libffi.call/err_bad_typedef.c
2433 testsuite/libffi.call/stret_large2.c
2434 testsuite/libffi.call/stret_large.c
2435 testsuite/libffi.call/stret_medium2.c
2436 testsuite/libffi.call/stret_medium.c: New tests from Apple.
2437
2438 2009-06-05 Andrew Haley <[email protected]>
2439
2440 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
2441 libffi.
2442
2443 2009-06-04 Andrew Haley <[email protected]>
2444
2445 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
2446 stdcall changes.
2447
2448 2008-02-26 Anthony Green <[email protected]>
2449 Thomas Heller <[email protected]>
2450
2451 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
2452 comment.
2453
2454 2008-02-03 Timothy Wall <[email protected]>
2455
2456 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
2457 offset based on code pointer, not data pointer.
2458
2459 2008-01-31 Timothy Wall <[email protected]>
2460
2461 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
2462 closures.
2463 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
2464 closures.
2465 * src/x86/win32.S: Add assembly for stdcall closure.
2466 * src/x86/ffi.c: Initialize stdcall closure trampoline.
2467
2468 2009-06-04 Andrew Haley <[email protected]>
2469
2470 * include/ffi.h.in: Change void (*)() to void (*)(void).
2471 * src/x86/ffi.c: Likewise.
2472
2473 2009-06-04 Andrew Haley <[email protected]>
2474
2475 * src/powerpc/ppc_closure.S: Insert licence header.
2476 * src/powerpc/linux64_closure.S: Likewise.
2477 * src/m68k/sysv.S: Likewise.
2478
2479 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
2480 * src/powerpc/ffi.c: Likewise.
2481 * src/powerpc/ffi_darwin.c: Likewise.
2482 * src/m32r/ffi.c: Likewise.
2483 * src/sh64/ffi.c: Likewise.
2484 * src/x86/ffi64.c: Likewise.
2485 * src/alpha/ffi.c: Likewise.
2486 * src/alpha/osf.S: Likewise.
2487 * src/frv/ffi.c: Likewise.
2488 * src/s390/ffi.c: Likewise.
2489 * src/pa/ffi.c: Likewise.
2490 * src/pa/hpux32.S: Likewise.
2491 * src/ia64/unix.S: Likewise.
2492 * src/ia64/ffi.c: Likewise.
2493 * src/sparc/ffi.c: Likewise.
2494 * src/mips/ffi.c: Likewise.
2495 * src/sh/ffi.c: Likewise.
2496
2497 2008-02-15 David Daney <[email protected]>
2498
2499 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
2500 Define (conditionally), and use it to include cachectl.h.
2501 (ffi_prep_closure_loc): Fix cache flushing.
2502 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
2503
2504 2009-06-04 Andrew Haley <[email protected]>
2505
2506 include/ffi.h.in,
2507 src/arm/ffitarget.h,
2508 src/arm/ffi.c,
2509 src/arm/sysv.S,
2510 src/powerpc/ffitarget.h,
2511 src/closures.c,
2512 src/sh64/ffitarget.h,
2513 src/sh64/ffi.c,
2514 src/sh64/sysv.S,
2515 src/types.c,
2516 src/x86/ffi64.c,
2517 src/x86/ffitarget.h,
2518 src/x86/win32.S,
2519 src/x86/darwin.S,
2520 src/x86/ffi.c,
2521 src/x86/sysv.S,
2522 src/x86/unix64.S,
2523 src/alpha/ffitarget.h,
2524 src/alpha/ffi.c,
2525 src/alpha/osf.S,
2526 src/m68k/ffitarget.h,
2527 src/frv/ffitarget.h,
2528 src/frv/ffi.c,
2529 src/s390/ffitarget.h,
2530 src/s390/sysv.S,
2531 src/cris/ffitarget.h,
2532 src/pa/linux.S,
2533 src/pa/ffitarget.h,
2534 src/pa/ffi.c,
2535 src/raw_api.c,
2536 src/ia64/ffitarget.h,
2537 src/ia64/unix.S,
2538 src/ia64/ffi.c,
2539 src/ia64/ia64_flags.h,
2540 src/java_raw_api.c,
2541 src/debug.c,
2542 src/sparc/v9.S,
2543 src/sparc/ffitarget.h,
2544 src/sparc/ffi.c,
2545 src/sparc/v8.S,
2546 src/mips/ffitarget.h,
2547 src/mips/n32.S,
2548 src/mips/o32.S,
2549 src/mips/ffi.c,
2550 src/prep_cif.c,
2551 src/sh/ffitarget.h,
2552 src/sh/ffi.c,
2553 src/sh/sysv.S: Update license text.
2554
2555 2009-05-22 Dave Korn <[email protected]>
2556
2557 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
2558 (.eh_frame): Add FDE for it.
2559
2560 2009-05-22 Dave Korn <[email protected]>
2561
2562 * configure.ac: Also check if assembler supports pc-relative
2563 relocs on X86_WIN32 targets.
2564 * configure: Regenerate.
2565 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
2566 (_ffi_call_SYSV): Add missing function type symbol .def and
2567 add EH markup labels.
2568 (_ffi_call_STDCALL): Likewise.
2569 (_ffi_closure_SYSV): Likewise.
2570 (_ffi_closure_raw_SYSV): Likewise.
2571 (.eh_frame): Add hand-crafted EH data.
2572
2573 2009-04-09 Jakub Jelinek <[email protected]>
2574
2575 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
2576 version 3 of the GNU General Public License and to point readers
2577 at the COPYING3 file and the FSF's license web page.
2578 * testsuite/libffi.call/call.exp: Likewise.
2579 * testsuite/libffi.special/special.exp: Likewise.
2580
2581 2009-03-01 Ralf Wildenhues <[email protected]>
2582
2583 * configure: Regenerate.
2584
2585 2008-12-18 Rainer Orth <[email protected]>
2586
2587 PR libffi/26048
2588 * configure.ac (HAVE_AS_X86_PCREL): New test.
2589 * configure: Regenerate.
2590 * fficonfig.h.in: Regenerate.
2591 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
2592 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
2593 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
2594 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2595 * src/x86/unix64.S (.Lstore_table): Move to .text section.
2596 (.Lload_table): Likewise.
2597 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
2598
2599 2008-12-18 Ralf Wildenhues <[email protected]>
2600
2601 * configure: Regenerate.
2602
2603 2008-11-21 Eric Botcazou <[email protected]>
2604
2605 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
2606 signed/unsigned int8/16 return values.
2607 * src/sparc/v8.S (ffi_call_v8): Likewise.
2608 (ffi_closure_v8): Likewise.
2609
2610 2008-09-26 Peter O'Gorman <[email protected]>
2611 Steve Ellcey <[email protected]>
2612
2613 * configure: Regenerate for new libtool.
2614 * Makefile.in: Ditto.
2615 * include/Makefile.in: Ditto.
2616 * aclocal.m4: Ditto.
2617
2618 2008-08-25 Andreas Tobler <[email protected]>
2619
2620 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
2621 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
2622 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
2623 Adjust copyright notice.
2624 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
2625 register or two register to use for FFI_SYSV structs.
2626 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
2627 (ffi_closure_helper_SYSV): Fix the return type for
2628 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
2629 Adjust copyright notice.
2630
2631 2008-07-16 Kaz Kojima <[email protected]>
2632
2633 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
2634 int.
2635
2636 2008-06-17 Ralf Wildenhues <[email protected]>
2637
2638 * configure: Regenerate.
2639 * include/Makefile.in: Regenerate.
2640 * testsuite/Makefile.in: Regenerate.
2641
2642 2008-06-07 Joseph Myers <[email protected]>
2643
2644 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
2645 powerpc-*-beos*): Remove.
2646 * configure: Regenerate.
2647
2648 2008-05-09 Julian Brown <[email protected]>
2649
2650 * Makefile.am (LTLDFLAGS): New.
2651 (libffi_la_LDFLAGS): Use above.
2652 * Makefile.in: Regenerate.
2653
2654 2008-04-18 Paolo Bonzini <[email protected]>
2655
2656 PR bootstrap/35457
2657 * aclocal.m4: Regenerate.
2658 * configure: Regenerate.
2659
2660 2008-03-26 Kaz Kojima <[email protected]>
2661
2662 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
2663 * src/sh64/sysv.S: Likewise.
2664
2665 2008-03-26 Daniel Jacobowitz <[email protected]>
2666
2667 * src/arm/sysv.S: Fix ARM comment marker.
2668
2669 2008-03-26 Jakub Jelinek <[email protected]>
2670
2671 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
2672 * src/s390/sysv.S: Likewise.
2673 * src/powerpc/ppc_closure.S: Likewise.
2674 * src/powerpc/sysv.S: Likewise.
2675 * src/x86/unix64.S: Likewise.
2676 * src/x86/sysv.S: Likewise.
2677 * src/sparc/v8.S: Likewise.
2678 * src/sparc/v9.S: Likewise.
2679 * src/m68k/sysv.S: Likewise.
2680 * src/arm/sysv.S: Likewise.
2681
2682 2008-03-16 Ralf Wildenhues <[email protected]>
2683
2684 * aclocal.m4: Regenerate.
2685 * configure: Likewise.
2686 * Makefile.in: Likewise.
2687 * include/Makefile.in: Likewise.
2688 * testsuite/Makefile.in: Likewise.
2689
2690 2008-02-12 Bjoern Koenig <[email protected]>
2691 Andreas Tobler <[email protected]>
2692
2693 * configure.ac: Add amd64-*-freebsd* target.
2694 * configure: Regenerate.
2695
2696 2008-01-30 H.J. Lu <[email protected]>
2697
2698 PR libffi/34612
2699 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
2700 returning struct.
2701
2702 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
2703 tests.
2704
2705 2008-01-24 David Edelsohn <[email protected]>
2706
2707 * configure: Regenerate.
2708
2709 2008-01-06 Andreas Tobler <[email protected]>
2710
2711 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
2712
2713 2008-01-05 Andreas Tobler <[email protected]>
2714
2715 PR testsuite/32843
2716 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
2717 signed/unsigned int8/16 for X86_DARWIN.
2718 Updated copyright info.
2719 Handle one and two byte structs with special cif->flags.
2720 * src/x86/ffitarget.h: Add special types for one and two byte structs.
2721 Updated copyright info.
2722 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
2723 sysv.S
2724 Remove code to pop args from the stack after call.
2725 Special-case signed/unsigned for int8/16, one and two byte structs.
2726 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2727 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2728 FFI_TYPE_SINT32.
2729 Updated copyright info.
2730
2731 2007-12-08 David Daney <[email protected]>
2732
2733 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
2734 SUBU, add with ADDU and use smaller code sequences.
2735
2736 2007-12-07 David Daney <[email protected]>
2737
2738 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
2739 type.
2740
2741 2007-12-06 David Daney <[email protected]>
2742
2743 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
2744 defined.
2745 (ffi_java_raw): New typedef.
2746 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
2747 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
2748 ffi_java_raw.
2749 (ffi_java_raw_closure) : Same.
2750 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
2751 parameter types.
2752 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
2753 FFI_SIZEOF_JAVA_RAW.
2754 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
2755 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
2756 sizeof(ffi_java_raw) for alignment calculations.
2757 (ffi_java_ptrarray_to_raw): Same.
2758 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
2759 if FFI_SIZEOF_JAVA_RAW == 4.
2760 (ffi_java_raw_to_rvalue): Same.
2761 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
2762 (ffi_java_translate_args): Same.
2763 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
2764 parameter types.
2765 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
2766
2767 2007-12-06 David Daney <[email protected]>
2768
2769 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
2770 pointer values.
2771
2772 2007-12-01 Andreas Tobler <[email protected]>
2773
2774 PR libffi/31937
2775 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
2776 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
2777 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
2778 set the NUM_FPR_ARG_REGISTERS according to.
2779 Add support for potential soft-float support under hard-float
2780 architecture.
2781 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
2782 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
2783 to the FFI_LINUX_SOFT_FLOAT ABI.
2784 (ffi_prep_cif_machdep): Likewise.
2785 (ffi_closure_helper_SYSV): Likewise.
2786 * src/powerpc/ppc_closure.S: Make sure not to store float/double
2787 on archs where __NO_FPRS__ is true.
2788 Add FFI_TYPE_UINT128 support.
2789 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
2790 Adjust copyright notice.
2791
2792 2007-11-25 Andreas Tobler <[email protected]>
2793
2794 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
2795 * include/ffi_common.h: ... here.
2796 Update copyright.
2797
2798 2007-11-17 Andreas Tobler <[email protected]>
2799
2800 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
2801 * src/powerpc/linux64.S: Likewise.
2802 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
2803 * testsuite/libffi.call/return_ldl.c: New test.
2804
2805 2007-09-04 <[email protected]>
2806
2807 * src/arm/sysv.S (UNWIND): New.
2808 (Whole file): Conditionally compile unwinder directives.
2809 * src/arm/sysv.S: Add unwinder directives.
2810
2811 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
2812 Only treat r0 as a struct address if we're actually returning a
2813 struct by address.
2814 Only copy the bytes that are actually within a struct.
2815 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
2816 is returned in r0, not passed by address.
2817 (ffi_call): Allocate a word-sized temporary for the case where
2818 a composite is returned in r0.
2819 (ffi_prep_incoming_args_SYSV): Align as necessary.
2820
2821 2007-08-05 Steven Newbury <[email protected]>
2822
2823 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
2824 directly using the sys_cacheflush syscall.
2825
2826 2007-07-27 Andrew Haley <[email protected]>
2827
2828 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
2829
2830 2007-09-03 Maciej W. Rozycki <[email protected]>
2831
2832 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
2833 * configure.ac: Likewise.
2834 * Makefile.in: Regenerate.
2835 * include/Makefile.in: Likewise.
2836 * testsuite/Makefile.in: Likewise.
2837 * configure: Likewise.
2838
2839 2007-08-24 David Daney <[email protected]>
2840
2841 * testsuite/libffi.call/return_sl.c: New test.
2842
2843 2007-08-10 David Daney <[email protected]>
2844
2845 * testsuite/libffi.call/cls_multi_ushort.c,
2846 testsuite/libffi.call/cls_align_uint16.c,
2847 testsuite/libffi.call/nested_struct1.c,
2848 testsuite/libffi.call/nested_struct3.c,
2849 testsuite/libffi.call/cls_7_1_byte.c,
2850 testsuite/libffi.call/nested_struct5.c,
2851 testsuite/libffi.call/cls_double.c,
2852 testsuite/libffi.call/nested_struct7.c,
2853 testsuite/libffi.call/cls_sint.c,
2854 testsuite/libffi.call/nested_struct9.c,
2855 testsuite/libffi.call/cls_20byte1.c,
2856 testsuite/libffi.call/cls_multi_sshortchar.c,
2857 testsuite/libffi.call/cls_align_sint64.c,
2858 testsuite/libffi.call/cls_3byte2.c,
2859 testsuite/libffi.call/cls_multi_schar.c,
2860 testsuite/libffi.call/cls_multi_uchar.c,
2861 testsuite/libffi.call/cls_19byte.c,
2862 testsuite/libffi.call/cls_9byte1.c,
2863 testsuite/libffi.call/cls_align_float.c,
2864 testsuite/libffi.call/closure_fn1.c,
2865 testsuite/libffi.call/problem1.c,
2866 testsuite/libffi.call/closure_fn3.c,
2867 testsuite/libffi.call/cls_sshort.c,
2868 testsuite/libffi.call/closure_fn5.c,
2869 testsuite/libffi.call/cls_align_double.c,
2870 testsuite/libffi.call/nested_struct.c,
2871 testsuite/libffi.call/cls_2byte.c,
2872 testsuite/libffi.call/nested_struct10.c,
2873 testsuite/libffi.call/cls_4byte.c,
2874 testsuite/libffi.call/cls_6byte.c,
2875 testsuite/libffi.call/cls_8byte.c,
2876 testsuite/libffi.call/cls_multi_sshort.c,
2877 testsuite/libffi.call/cls_align_sint16.c,
2878 testsuite/libffi.call/cls_align_uint32.c,
2879 testsuite/libffi.call/cls_20byte.c,
2880 testsuite/libffi.call/cls_float.c,
2881 testsuite/libffi.call/nested_struct2.c,
2882 testsuite/libffi.call/cls_5_1_byte.c,
2883 testsuite/libffi.call/nested_struct4.c,
2884 testsuite/libffi.call/cls_24byte.c,
2885 testsuite/libffi.call/nested_struct6.c,
2886 testsuite/libffi.call/cls_64byte.c,
2887 testsuite/libffi.call/nested_struct8.c,
2888 testsuite/libffi.call/cls_uint.c,
2889 testsuite/libffi.call/cls_multi_ushortchar.c,
2890 testsuite/libffi.call/cls_schar.c,
2891 testsuite/libffi.call/cls_uchar.c,
2892 testsuite/libffi.call/cls_align_uint64.c,
2893 testsuite/libffi.call/cls_ulonglong.c,
2894 testsuite/libffi.call/cls_align_longdouble.c,
2895 testsuite/libffi.call/cls_1_1byte.c,
2896 testsuite/libffi.call/cls_12byte.c,
2897 testsuite/libffi.call/cls_3_1byte.c,
2898 testsuite/libffi.call/cls_3byte1.c,
2899 testsuite/libffi.call/cls_4_1byte.c,
2900 testsuite/libffi.call/cls_6_1_byte.c,
2901 testsuite/libffi.call/cls_16byte.c,
2902 testsuite/libffi.call/cls_18byte.c,
2903 testsuite/libffi.call/closure_fn0.c,
2904 testsuite/libffi.call/cls_9byte2.c,
2905 testsuite/libffi.call/closure_fn2.c,
2906 testsuite/libffi.call/closure_fn4.c,
2907 testsuite/libffi.call/cls_ushort.c,
2908 testsuite/libffi.call/closure_fn6.c,
2909 testsuite/libffi.call/cls_5byte.c,
2910 testsuite/libffi.call/cls_align_pointer.c,
2911 testsuite/libffi.call/cls_7byte.c,
2912 testsuite/libffi.call/cls_align_sint32.c,
2913 testsuite/libffi.special/unwindtest_ffi_call.cc,
2914 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
2915
2916 2007-08-10 David Daney <[email protected]>
2917
2918 PR libffi/28313
2919 * configure.ac: Don't treat mips64 as a special case.
2920 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
2921 * configure: Regenerate
2922 * Makefile.in: Ditto.
2923 * fficonfig.h.in: Ditto.
2924 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
2925 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
2926 (FFI_DEFAULT_ABI): Set for n64 case.
2927 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
2928 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
2929 (ffi_closure_N32): New function.
2930 (.eh_frame): New section
2931 * src/mips/o32.S: Clean up comments.
2932 (ffi_closure_O32): Pass ffi_closure parameter in $12.
2933 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
2934 _MIPS_SIM == _ABIN32 throughout.
2935 (FFI_MIPS_STOP_HERE): New, use in place of
2936 ffi_stop_here.
2937 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
2938 to support n32/n64 ABIs.
2939 (calc_n32_struct_flags): Rewrite.
2940 (calc_n32_return_struct_flags): Remove unused variable. Reverse
2941 position of flag bits.
2942 (ffi_prep_cif_machdep): Rewrite n32 portion.
2943 (ffi_call): Enable for n64. Add special handling for small structure
2944 return values.
2945 (ffi_prep_closure_loc): Add n32 and n64 support.
2946 (ffi_closure_mips_inner_O32): Add cast to silence warning.
2947 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
2948
2949 2007-08-08 David Daney <[email protected]>
2950
2951 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
2952 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
2953 specifiers.
2954 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
2955 * testsuite/libffi.call/cls_sint.c (main): Ditto.
2956 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
2957 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
2958 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
2959 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
2960 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
2961 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
2962 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
2963 * testsuite/libffi.call/return_fl3.c (main): Ditto.
2964 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
2965 * testsuite/libffi.call/nested_struct.c (main): Ditto.
2966 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
2967 * testsuite/libffi.call/return_ll1.c (main): Ditto.
2968 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
2969 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
2970 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
2971 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
2972 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
2973 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
2974 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
2975 * testsuite/libffi.call/cls_uint.c (main): Ditto.
2976 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
2977 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
2978 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
2979 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
2980 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
2981 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
2982 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
2983 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
2984 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
2985
2986 2007-08-07 Andrew Haley <[email protected]>
2987
2988 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
2989 checkin.
2990
2991 2007-08-06 Andrew Haley <[email protected]>
2992
2993 PR testsuite/32843
2994 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
2995 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
2996 FFI_TYPE_SINT32.
2997
2998 2007-08-02 David Daney <[email protected]>
2999
3000 * testsuite/libffi.call/return_ul.c (main): Define return type as
3001 ffi_arg. Use proper printf conversion specifier.
3002
3003 2007-07-30 Andrew Haley <[email protected]>
3004
3005 PR testsuite/32843
3006 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
3007 signed/unsigned int8/16.
3008 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
3009 Use a jump table.
3010 Remove code to pop args from the stack after call.
3011 Special-case signed/unsigned int8/16.
3012 * testsuite/libffi.call/return_sc.c (main): Revert.
3013
3014 2007-07-26 Richard Guenther <[email protected]>
3015
3016 PR testsuite/32843
3017 * testsuite/libffi.call/return_sc.c (main): Verify call
3018 result as signed char, not ffi_arg.
3019
3020 2007-07-16 Rainer Orth <[email protected]>
3021
3022 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
3023 * configure: Regenerate.
3024
3025 2007-07-11 David Daney <[email protected]>
3026
3027 * src/mips/ffi.c: Don't include sys/cachectl.h.
3028 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
3029 cacheflush().
3030
3031 2007-05-18 Aurelien Jarno <[email protected]>
3032
3033 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
3034 from (ffi_prep_closure): ... this.
3035 (FFI_INIT_TRAMPOLINE): Adjust.
3036
3037 2005-12-31 Phil Blundell <[email protected]>
3038
3039 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
3040 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
3041 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
3042 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3043 (FFI_CLOSURES): Enable closure support.
3044
3045 2007-07-03 Andrew Haley <[email protected]>
3046
3047 * testsuite/libffi.call/cls_multi_ushort.c,
3048 testsuite/libffi.call/cls_align_uint16.c,
3049 testsuite/libffi.call/nested_struct1.c,
3050 testsuite/libffi.call/nested_struct3.c,
3051 testsuite/libffi.call/cls_7_1_byte.c,
3052 testsuite/libffi.call/cls_double.c,
3053 testsuite/libffi.call/nested_struct5.c,
3054 testsuite/libffi.call/nested_struct7.c,
3055 testsuite/libffi.call/cls_sint.c,
3056 testsuite/libffi.call/nested_struct9.c,
3057 testsuite/libffi.call/cls_20byte1.c,
3058 testsuite/libffi.call/cls_multi_sshortchar.c,
3059 testsuite/libffi.call/cls_align_sint64.c,
3060 testsuite/libffi.call/cls_3byte2.c,
3061 testsuite/libffi.call/cls_multi_schar.c,
3062 testsuite/libffi.call/cls_multi_uchar.c,
3063 testsuite/libffi.call/cls_19byte.c,
3064 testsuite/libffi.call/cls_9byte1.c,
3065 testsuite/libffi.call/cls_align_float.c,
3066 testsuite/libffi.call/closure_fn1.c,
3067 testsuite/libffi.call/problem1.c,
3068 testsuite/libffi.call/closure_fn3.c,
3069 testsuite/libffi.call/cls_sshort.c,
3070 testsuite/libffi.call/closure_fn5.c,
3071 testsuite/libffi.call/cls_align_double.c,
3072 testsuite/libffi.call/cls_2byte.c,
3073 testsuite/libffi.call/nested_struct.c,
3074 testsuite/libffi.call/nested_struct10.c,
3075 testsuite/libffi.call/cls_4byte.c,
3076 testsuite/libffi.call/cls_6byte.c,
3077 testsuite/libffi.call/cls_8byte.c,
3078 testsuite/libffi.call/cls_multi_sshort.c,
3079 testsuite/libffi.call/cls_align_uint32.c,
3080 testsuite/libffi.call/cls_align_sint16.c,
3081 testsuite/libffi.call/cls_float.c,
3082 testsuite/libffi.call/cls_20byte.c,
3083 testsuite/libffi.call/cls_5_1_byte.c,
3084 testsuite/libffi.call/nested_struct2.c,
3085 testsuite/libffi.call/cls_24byte.c,
3086 testsuite/libffi.call/nested_struct4.c,
3087 testsuite/libffi.call/nested_struct6.c,
3088 testsuite/libffi.call/cls_64byte.c,
3089 testsuite/libffi.call/nested_struct8.c,
3090 testsuite/libffi.call/cls_uint.c,
3091 testsuite/libffi.call/cls_multi_ushortchar.c,
3092 testsuite/libffi.call/cls_schar.c,
3093 testsuite/libffi.call/cls_uchar.c,
3094 testsuite/libffi.call/cls_align_uint64.c,
3095 testsuite/libffi.call/cls_ulonglong.c,
3096 testsuite/libffi.call/cls_align_longdouble.c,
3097 testsuite/libffi.call/cls_1_1byte.c,
3098 testsuite/libffi.call/cls_12byte.c,
3099 testsuite/libffi.call/cls_3_1byte.c,
3100 testsuite/libffi.call/cls_3byte1.c,
3101 testsuite/libffi.call/cls_4_1byte.c,
3102 testsuite/libffi.call/cls_6_1_byte.c,
3103 testsuite/libffi.call/cls_16byte.c,
3104 testsuite/libffi.call/cls_18byte.c,
3105 testsuite/libffi.call/closure_fn0.c,
3106 testsuite/libffi.call/cls_9byte2.c,
3107 testsuite/libffi.call/closure_fn2.c,
3108 testsuite/libffi.call/closure_fn4.c,
3109 testsuite/libffi.call/cls_ushort.c,
3110 testsuite/libffi.call/closure_fn6.c,
3111 testsuite/libffi.call/cls_5byte.c,
3112 testsuite/libffi.call/cls_align_pointer.c,
3113 testsuite/libffi.call/cls_7byte.c,
3114 testsuite/libffi.call/cls_align_sint32.c,
3115 testsuite/libffi.special/unwindtest_ffi_call.cc,
3116 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
3117
3118 2007-07-05 H.J. Lu <[email protected]>
3119
3120 * aclocal.m4: Regenerated.
3121
3122 2007-06-02 Paolo Bonzini <[email protected]>
3123
3124 * configure: Regenerate.
3125
3126 2007-05-23 Steve Ellcey <[email protected]>
3127
3128 * Makefile.in: Regenerate.
3129 * configure: Regenerate.
3130 * aclocal.m4: Regenerate.
3131 * include/Makefile.in: Regenerate.
3132 * testsuite/Makefile.in: Regenerate.
3133
3134 2007-05-10 Roman Zippel <[email protected]>
3135
3136 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
3137 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
3138 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
3139 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
3140 (FFI_CLOSURES): Enable closure support.
3141
3142 2007-05-10 Roman Zippel <[email protected]>
3143
3144 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
3145 * configure: Regenerate.
3146 * fficonfig.h.in: Regenerate.
3147 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
3148 CFI_OFFSET,CFI_DEF_CFA): New macros.
3149 (ffi_call_SYSV): Add callframe annotation.
3150
3151 2007-05-10 Roman Zippel <[email protected]>
3152
3153 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
3154 numerous test suite failures.
3155 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
3156
3157 2007-04-11 Paolo Bonzini <[email protected]>
3158
3159 * Makefile.am (EXTRA_DIST): Bring up to date.
3160 * Makefile.in: Regenerate.
3161 * src/frv/eabi.S: Remove RCS keyword.
3162
3163 2007-04-06 Richard Henderson <[email protected]>
3164
3165 * configure.ac: Tidy target case.
3166 (HAVE_LONG_DOUBLE): Allow the target to override.
3167 * configure: Regenerate.
3168 * include/ffi.h.in: Don't define ffi_type_foo if
3169 LIBFFI_HIDE_BASIC_TYPES is defined.
3170 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
3171 to ffi_type_double.
3172 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
3173 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
3174 (ffi_type_longdouble): Special case for Alpha. Don't define
3175 if long double == double.
3176
3177 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
3178 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
3179 (ffi_call, ffi_closure_osf_inner): Likewise.
3180 (ffi_closure_osf_inner): Likewise. Mark hidden.
3181 (ffi_call_osf, ffi_closure_osf): Mark hidden.
3182 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
3183 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
3184 (load_table): Handle 128-bit long double.
3185
3186 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
3187
3188 2007-04-06 Tom Tromey <[email protected]>
3189
3190 PR libffi/31491:
3191 * README: Fixed bug in example.
3192
3193 2007-04-03 Jakub Jelinek <[email protected]>
3194
3195 * src/closures.c: Include sys/statfs.h.
3196 (_GNU_SOURCE): Define on Linux.
3197 (FFI_MMAP_EXEC_SELINUX): Define.
3198 (selinux_enabled): New variable.
3199 (selinux_enabled_check): New function.
3200 (is_selinux_enabled): Define.
3201 (dlmmap): Use it.
3202
3203 2007-03-24 Uros Bizjak <[email protected]>
3204
3205 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
3206 Use 'volatile float sum' to create sum of floats to avoid false
3207 negative due to excess precision on ix86 targets.
3208 (main): Ditto.
3209
3210 2007-03-08 Alexandre Oliva <[email protected]>
3211
3212 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
3213 patch.
3214 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
3215
3216 2007-03-07 Alexandre Oliva <[email protected]>
3217
3218 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
3219 (ffi_prep_closure_loc): New.
3220 (ffi_prep_raw_closure_loc): New.
3221 (ffi_prep_java_raw_closure_loc): New.
3222 * src/closures.c: New file.
3223 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
3224 Replace sflags with exec_offset.
3225 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
3226 sub_segment_exec_offset): New macros.
3227 (get_segment_flags, set_segment_flags, check_segment_merge): New
3228 macros.
3229 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
3230 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
3231 destroy_mspace): Use new macros.
3232 (sys_alloc): Silence warning.
3233 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
3234 * Makefile.in: Rebuilt.
3235 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
3236 terms of ffi_prep_closure_loc.
3237 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
3238 from...
3239 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
3240 renamed version.
3241 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
3242 adjusted from...
3243 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
3244 the renamed version.
3245 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
3246 (ffi_prep_closure): ... this.
3247 * src/pa/ffi.c: Likewise.
3248 * src/cris/ffi.c: Likewise. Adjust.
3249 * src/frv/ffi.c: Likewise.
3250 * src/ia64/ffi.c: Likewise.
3251 * src/mips/ffi.c: Likewise.
3252 * src/powerpc/ffi_darwin.c: Likewise.
3253 * src/s390/ffi.c: Likewise.
3254 * src/sh/ffi.c: Likewise.
3255 * src/sh64/ffi.c: Likewise.
3256 * src/sparc/ffi.c: Likewise.
3257 * src/x86/ffi64.c: Likewise.
3258 * src/x86/ffi.c: Likewise.
3259 (FFI_INIT_TRAMPOLINE): Adjust.
3260 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
3261 (ffi_prep_raw_closure): ... this.
3262 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
3263 (ffi_prep_closure): ... this.
3264 (flush_icache): Adjust.
3265
3266 2007-03-07 Alexandre Oliva <[email protected]>
3267
3268 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
3269 Lea's malloc.
3270
3271 2007-03-01 Brooks Moses <[email protected]>
3272
3273 * Makefile.am: Add dummy install-pdf target.
3274 * Makefile.in: Regenerate
3275
3276 2007-02-13 Andreas Krebbel <[email protected]>
3277
3278 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
3279 ffi_closure_helper_SYSV): Add long double handling.
3280
3281 2007-02-02 Jakub Jelinek <[email protected]>
3282
3283 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
3284 immediately after bctrl instruction.
3285
3286 2007-01-18 Alexandre Oliva <[email protected]>
3287
3288 * Makefile.am (all-recursive, install-recursive,
3289 mostlyclean-recursive, clean-recursive, distclean-recursive,
3290 maintainer-clean-recursive): Add missing targets.
3291 * Makefile.in: Rebuilt.
3292
3293 2006-12-14 Andreas Tobler <[email protected]>
3294
3295 * configure.ac: Add TARGET for x86_64-*-darwin*.
3296 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
3297 for X86_DARWIN.
3298 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
3299 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
3300 * configure: Regenerate.
3301 * Makefile.in: Regenerate.
3302 * include/Makefile.in: Regenerate.
3303 * testsuite/Makefile.in: Regenerate.
3304 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
3305 ffi_call only.
3306
3307 2006-12-13 Andreas Tobler <[email protected]>
3308
3309 * aclocal.m4: Regenerate with aclocal -I .. as written in the
3310 Makefile.am.
3311
3312 2006-10-31 Geoffrey Keating <[email protected]>
3313
3314 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
3315 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
3316 Darwin.
3317 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
3318 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
3319
3320 2006-10-10 Paolo Bonzini <[email protected]>
3321 Sandro Tolaini <[email protected]>
3322
3323 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
3324 conditional.
3325 * configure: Regenerated.
3326 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
3327 (EXTRA_DIST): Add src/x86/darwin.S.
3328 * Makefile.in: Regenerated.
3329 * include/Makefile.in: Regenerated.
3330 * testsuite/Makefile.in: Regenerated.
3331
3332 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
3333 X86_WIN32, and additionally align stack to 16 bytes.
3334 * src/x86/darwin.S: New, based on sysv.S.
3335 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
3336
3337 2006-09-12 David Daney <[email protected]>
3338
3339 PR libffi/23935
3340 * include/Makefile.am: Install both ffi.h and ffitarget.h in
3341 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
3342 * aclocal.m4: Regenerated for automake 1.9.6.
3343 * Makefile.in: Regenerated.
3344 * include/Makefile.in: Regenerated.
3345 * testsuite/Makefile.in: Regenerated.
3346
3347 2006-08-17 Andreas Tobler <[email protected]>
3348
3349 * include/ffi_common.h (struct): Revert accidental commit.
3350
3351 2006-08-15 Andreas Tobler <[email protected]>
3352
3353 * include/ffi_common.h: Remove lint directives.
3354 * include/ffi.h.in: Likewise.
3355
3356 2006-07-25 Torsten Schoenfeld <[email protected]>
3357
3358 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
3359 for 32-bit architectures.
3360 * testsuite/libffi.call/return_ul.c: New test case.
3361
3362 2006-07-19 David Daney <[email protected]>
3363
3364 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
3365 xfail remains for mips64.
3366
3367 2006-05-23 Carlos O'Donell <[email protected]>
3368
3369 * Makefile.am: Add install-html target. Add install-html to .PHONY
3370 * Makefile.in: Regenerate.
3371 * aclocal.m4: Regenerate.
3372 * include/Makefile.in: Regenerate.
3373 * testsuite/Makefile.in: Regenerate.
3374
3375 2006-05-18 John David Anglin <[email protected]>
3376
3377 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
3378 stack slot.
3379
3380 2006-04-22 Andreas Tobler <[email protected]>
3381
3382 * README: Remove notice about 'Crazy Comments'.
3383 * src/debug.c: Remove lint directives. Cleanup white spaces.
3384 * src/java_raw_api.c: Likewise.
3385 * src/prep_cif.c: Likewise.
3386 * src/raw_api.c: Likewise.
3387 * src/ffitest.c: Delete. No longer needed, all test cases migrated
3388 to the testsuite.
3389 * src/arm/ffi.c: Remove lint directives.
3390 * src/m32r/ffi.c: Likewise.
3391 * src/pa/ffi.c: Likewise.
3392 * src/powerpc/ffi.c: Likewise.
3393 * src/powerpc/ffi_darwin.c: Likewise.
3394 * src/sh/ffi.c: Likewise.
3395 * src/sh64/ffi.c: Likewise.
3396 * src/x86/ffi.c: Likewise.
3397 * testsuite/libffi.call/float2.c: Likewise.
3398 * testsuite/libffi.call/promotion.c: Likewise.
3399 * testsuite/libffi.call/struct1.c: Likewise.
3400
3401 2006-04-13 Andreas Tobler <[email protected]>
3402
3403 * src/pa/hpux32.S: Correct unwind offset calculation for
3404 ffi_closure_pa32.
3405 * src/pa/linux.S: Likewise.
3406
3407 2006-04-12 James E Wilson <[email protected]>
3408
3409 PR libgcj/26483
3410 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
3411 (hfa_type_load): Call stf_spill.
3412 (hfa_type_store): Call ldf_fill.
3413 (ffi_call): Adjust calls to above routines. Add local temps for
3414 macro result.
3415
3416 2006-04-10 Matthias Klose <[email protected]>
3417
3418 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
3419 directory names containing underscores.
3420
3421 2006-04-07 James E Wilson <[email protected]>
3422
3423 * testsuite/libffi.call/float4.c: New testcase.
3424
3425 2006-04-05 John David Anglin <[email protected]>
3426 Andreas Tobler <[email protected]>
3427
3428 * Makefile.am: Add PA_HPUX port.
3429 * Makefile.in: Regenerate.
3430 * include/Makefile.in: Likewise.
3431 * testsuite/Makefile.in: Likewise.
3432 * configure.ac: Add PA_HPUX rules.
3433 * configure: Regenerate.
3434 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
3435 Add PA_HPUX and PA64_HPUX.
3436 Rename FFI_LINUX ABI to FFI_PA32 ABI.
3437 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
3438 (FFI_TYPE_SMALL_STRUCT2): Define.
3439 (FFI_TYPE_SMALL_STRUCT4): Likewise.
3440 (FFI_TYPE_SMALL_STRUCT8): Likewise.
3441 (FFI_TYPE_SMALL_STRUCT3): Redefine.
3442 (FFI_TYPE_SMALL_STRUCT5): Likewise.
3443 (FFI_TYPE_SMALL_STRUCT6): Likewise.
3444 (FFI_TYPE_SMALL_STRUCT7): Likewise.
3445 * src/pa/ffi.c (ROUND_DOWN): Delete.
3446 (fldw, fstw, fldd, fstd): Use '__asm__'.
3447 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
3448 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
3449 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
3450 Simplify incrementing of stack slot variable. Change type of local
3451 'n' to unsigned int.
3452 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
3453 double on PA_HPUX.
3454 (ffi_prep_cif_machdep): Likewise.
3455 (ffi_call): Likewise.
3456 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
3457 return type to ffi_status. Simplify incrementing of stack slot
3458 variable. Only copy floating point argument registers when PA_LINUX
3459 is true. Reformat debug statement.
3460 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
3461 FFI_TYPE_SMALL_STRUCT8.
3462 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
3463 declaration.
3464 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
3465 Add nops to cache flush. Add trampoline for PA_HPUX.
3466 * src/pa/hpux32.S: New file.
3467 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
3468 ffi_prep_args_LINUX to ffi_prep_args_pa32.
3469 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
3470 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
3471 argument type checks so that common argument types appear first.
3472 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
3473 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
3474
3475 2006-03-24 Alan Modra <[email protected]>
3476
3477 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
3478 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
3479 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
3480 FFI_TYPE_LONGDOUBLE.
3481 (ffi_prep_args64): Assert using IBM extended double.
3482 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
3483 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
3484 (ffi_call): Handle FFI_LINUX.
3485 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
3486 gpr3 return pointer as for struct return. Handle FFI_LINUX
3487 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
3488 unnecessarily.
3489 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
3490 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
3491 Don't use r6 as pointer to results, instead use sp offset. Don't
3492 make a special call to load lr with case table address, instead
3493 use offset from previous call.
3494 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
3495 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
3496 return.
3497
3498 2006-03-15 Kaz Kojima <[email protected]>
3499
3500 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
3501 passed with FP registers correctly.
3502 (ffi_closure_helper_SYSV): Likewise.
3503 * src/sh64/sysv.S: Likewise.
3504
3505 2006-03-01 Andreas Tobler <[email protected]>
3506
3507 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
3508 args and userdata unused.
3509 (closure_test_fn1): Mark cif and userdata unused.
3510 (main): Remove unused res.
3511
3512 2006-02-28 Andreas Tobler <[email protected]>
3513
3514 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
3515 -O2, -O3, -Os and the warning flags -W -Wall.
3516 * testsuite/libffi.special/special.exp: Likewise.
3517 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
3518 unused parameter unused for gcc or else do nothing.
3519 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3520 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
3521 and userdata unused.
3522 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
3523 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
3524 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
3525 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
3526 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
3527 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
3528 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
3529 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
3530 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
3531 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
3532 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
3533 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
3534 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
3535 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
3536 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
3537 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
3538 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
3539 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
3540 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
3541 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
3542 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
3543 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
3544 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
3545 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
3546 Likewise.
3547 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
3548 Likewise.
3549 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
3550 Likewise.
3551 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
3552 void* to avoid compiler warning.
3553 (main): Likewise.
3554 (cls_struct_align_gn): Mark cif and userdata unused.
3555 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
3556 Likewise.
3557 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
3558 Likewise.
3559 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
3560 Likewise.
3561 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
3562 Likewise.
3563 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
3564 Likewise.
3565 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
3566 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
3567 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
3568 data unused.
3569 (main): Cast res_call to silence gcc.
3570 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
3571 data unused.
3572 (main): Cast res_call to silence gcc.
3573 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
3574 and data unused.
3575 (main): Cast res_call to silence gcc.
3576 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
3577 data unused.
3578 (main): Cast res_call to silence gcc.
3579 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
3580 data unused.
3581 (main): Cast res_call to silence gcc.
3582 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
3583 and data unused.
3584 (main): Cast res_call to silence gcc.
3585 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
3586 userdata unused.
3587 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
3588 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
3589 userdata unused.
3590 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
3591 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
3592 userdata unused.
3593 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
3594 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
3595 userdata unused.
3596 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
3597 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
3598 userdata unused.
3599 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
3600 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
3601 and userdata unused.
3602 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
3603 userdata unused.
3604 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
3605 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
3606 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
3607 Cleanup white spaces.
3608 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
3609 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
3610 cif and userdata unused.
3611 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
3612 Likewise.
3613 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
3614 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
3615 formatters to silence gcc.
3616 (B_gn): Mark cif and userdata unused.
3617 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
3618 unused.
3619 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
3620 (B_gn): Mark cif and userdata unused.
3621 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
3622 unused.
3623 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
3624 (B_gn): Mark cif and userdata unused.
3625 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
3626 unused.
3627 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
3628 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
3629 * testsuite/libffi.call/problem1.c (stub): Likewise.
3630 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
3631 gcc.
3632 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
3633 in the last commit for this test case in the test case itself.
3634 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
3635 unused.
3636 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
3637 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
3638 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
3639 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
3640 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
3641 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
3642
3643 2006-02-22 Kaz Kojima <[email protected]>
3644
3645 * src/sh/sysv.S: Fix register numbers in the FDE for
3646 ffi_closure_SYSV.
3647
3648 2006-02-20 Andreas Tobler <[email protected]>
3649
3650 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
3651 declaration to avoid a false negative on ix86. See PR323.
3652
3653 2006-02-18 Kaz Kojima <[email protected]>
3654
3655 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
3656 and cast integer to void * if needed. Update the pointer to
3657 the FP register saved area correctly.
3658
3659 2006-02-17 Andreas Tobler <[email protected]>
3660
3661 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
3662 is fixed.
3663 * testsuite/libffi.call/nested_struct4.c: Likewise.
3664
3665 2006-02-16 Andreas Tobler <[email protected]>
3666
3667 * testsuite/libffi.call/return_dbl.c: New test case.
3668 * testsuite/libffi.call/return_dbl1.c: Likewise.
3669 * testsuite/libffi.call/return_dbl2.c: Likewise.
3670 * testsuite/libffi.call/return_fl.c: Likewise.
3671 * testsuite/libffi.call/return_fl1.c: Likewise.
3672 * testsuite/libffi.call/return_fl2.c: Likewise.
3673 * testsuite/libffi.call/return_fl3.c: Likewise.
3674 * testsuite/libffi.call/closure_fn6.c: Likewise.
3675
3676 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
3677 definition.
3678 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
3679 here to be used by other test cases too.
3680
3681 * testsuite/libffi.call/nested_struct10.c: New test case.
3682 * testsuite/libffi.call/nested_struct9.c: Likewise.
3683 * testsuite/libffi.call/nested_struct8.c: Likewise.
3684 * testsuite/libffi.call/nested_struct7.c: Likewise.
3685 * testsuite/libffi.call/nested_struct6.c: Likewise.
3686 * testsuite/libffi.call/nested_struct5.c: Likewise.
3687 * testsuite/libffi.call/nested_struct4.c: Likewise.
3688
3689 2006-01-21 Andreas Tobler <[email protected]>
3690
3691 * configure.ac: Enable libffi for sparc64-*-freebsd*.
3692 * configure: Rebuilt.
3693
3694 2006-01-18 Jakub Jelinek <[email protected]>
3695
3696 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
3697 instead do the shifting inline.
3698 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
3699 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
3700 and 8 byte structs, for the remaining struct sizes don't call
3701 __lshrdi3, instead do the shifting inline.
3702
3703 2005-12-07 Thiemo Seufer <[email protected]>
3704
3705 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
3706 missing parentheses.
3707 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
3708 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
3709 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
3710 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
3711 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
3712 FA_0_0_OFF2.
3713 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
3714 endianness bugs.
3715 (ffi_prep_closure): Improve trampoline instruction scheduling.
3716 (ffi_closure_mips_inner_O32): Fix endianness bugs.
3717
3718 2005-12-03 Alan Modra <[email protected]>
3719
3720 * src/powerpc/ffi.c: Formatting.
3721 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
3722 (ffi_prep_args64): Likewise.
3723
3724 2005-09-30 Geoffrey Keating <[email protected]>
3725
3726 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
3727 darwin, use -shared-libgcc not -lgcc_s, and explain why.
3728
3729 2005-09-26 Tom Tromey <[email protected]>
3730
3731 * testsuite/libffi.call/float1.c (value_type): New typedef.
3732 (CANARY): New define.
3733 (main): Check for result buffer overflow.
3734 * src/powerpc/linux64.S: Handle linux64 long double returns.
3735 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
3736 (ffi_prep_cif_machdep): Handle linux64 long double returns.
3737
3738 2005-08-25 Alan Modra <[email protected]>
3739
3740 PR target/23404
3741 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
3742 homed fp args.
3743 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
3744
3745 2005-08-11 Jakub Jelinek <[email protected]>
3746
3747 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
3748 (AH_BOTTOM): Add FFI_HIDDEN definition.
3749 * configure: Rebuilt.
3750 * fficonfig.h.in: Rebuilt.
3751 * src/powerpc/ffi.c (hidden): Remove.
3752 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
3753 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
3754 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
3755 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
3756 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
3757 add FFI_HIDDEN to its prototype.
3758 (ffi_closure_SYSV_inner): New.
3759 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3760 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
3761
3762 2005-08-10 Alfred M. Szmidt <[email protected]>
3763
3764 PR libffi/21819:
3765 * configure: Rebuilt.
3766 * configure.ac: Handle i*86-*-gnu*.
3767
3768 2005-08-09 Jakub Jelinek <[email protected]>
3769
3770 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
3771 DW_CFA_offset_extended_sf rather than
3772 DW_CFA_GNU_negative_offset_extended.
3773 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
3774
3775 2005-07-22 SUGIOKA Toshinobu <[email protected]>
3776
3777 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
3778 on sh3.
3779 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
3780 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
3781 partially on register.
3782 (ffi_closure_helper_SYSV): Likewise.
3783 (ffi_prep_cif_machdep): Don't set too many cif->flags.
3784
3785 2005-07-20 Kaz Kojima <[email protected]>
3786
3787 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
3788 Remove empty line.
3789 * src/sh64/ffi.c (simple_type): Remove.
3790 (return_type): Handle small structures correctly.
3791 (ffi_prep_args): Likewise.
3792 (ffi_call): Likewise.
3793 (ffi_closure_helper_SYSV): Likewise.
3794 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
3795 Emit position independent code if PIC and remove wrong datalabel
3796 prefixes from EH data.
3797
3798 2005-07-19 Andreas Tobler <[email protected]>
3799
3800 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
3801 * Makefile.in: Regenerate.
3802 * include/Makefile.in: Likewise.
3803 * testsuite/Makefile.in: Likewise.
3804 * configure.ac: Add POWERPC_FREEBSD rules.
3805 * configure: Regenerate.
3806 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
3807 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
3808 * src/powerpc/ffi.c: Add flags to handle small structure returns
3809 in ffi_call_SYSV.
3810 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
3811 Aka FFI_SYSV.
3812 (ffi_closure_helper_SYSV): Likewise.
3813 * src/powerpc/ppc_closure.S: Add return types for small structures.
3814 * src/powerpc/sysv.S: Add bits to handle small structures for
3815 final SYSV 4 ABI.
3816
3817 2005-07-10 Andreas Tobler <[email protected]>
3818
3819 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
3820 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
3821 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
3822
3823 2005-07-05 Randolph Chung <[email protected]>
3824
3825 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
3826 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
3827 structures. Kill compilation warnings.
3828 (ffi_closure_inner_LINUX): Print return values as hex in debug
3829 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
3830 Properly handle 5-7 byte structure returns.
3831 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
3832 (FFI_TYPE_SMALL_STRUCT2): Remove.
3833 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
3834 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
3835 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
3836 (checksmst1, checksmst2): Remove.
3837 (checksmst3): Optimize handling of 3-byte struct returns.
3838 (checksmst567): Properly handle 5-7 byte struct returns.
3839
3840 2005-06-15 Rainer Orth <[email protected]>
3841
3842 PR libgcj/21943
3843 * src/mips/n32.S: Enforce PIC code.
3844 * src/mips/o32.S: Likewise.
3845
3846 2005-06-15 Rainer Orth <[email protected]>
3847
3848 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
3849 * configure: Regenerate.
3850
3851 2005-06-01 Alan Modra <[email protected]>
3852
3853 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
3854 to call ffi_closure_helper_SYSV. Append @local instead.
3855 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
3856
3857 2005-05-17 Kelley Cook <[email protected]>
3858
3859 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3860 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3861 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
3862 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
3863 include/Makefile.in, testsuite/Makefile.in: Regenerate.
3864
3865 2005-05-09 Mike Stump <[email protected]>
3866
3867 * configure: Regenerate.
3868
3869 2005-05-08 Richard Henderson <[email protected]>
3870
3871 PR libffi/21285
3872 * src/alpha/osf.S: Update unwind into to match code.
3873
3874 2005-05-04 Andreas Degert <[email protected]>
3875 Richard Henderson <[email protected]>
3876
3877 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
3878 bit 11 of flags.
3879 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
3880 (ffi_prep_closure): Set carry bit if sse-used flag set.
3881 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
3882 Only load sse registers if ssecount non-zero.
3883 (ffi_closure_unix64): Only save sse registers if carry set on entry.
3884
3885 2005-04-29 Ralf Corsepius <[email protected]>
3886
3887 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
3888 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
3889 * configure: Regenerate.
3890
3891 2005-04-20 Hans-Peter Nilsson <[email protected]>
3892
3893 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
3894 have Tcl8.3-compatible intermediate variable.
3895
3896 2005-04-18 Simon Posnjak <[email protected]>
3897 Hans-Peter Nilsson <[email protected]>
3898
3899 * Makefile.am: Add CRIS support.
3900 * configure.ac: Likewise.
3901 * Makefile.in, configure, testsuite/Makefile.in,
3902 include/Makefile.in: Regenerate.
3903 * src/cris: New directory.
3904 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
3905 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
3906
3907 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
3908 \r?\n in output tests.
3909
3910 2005-04-12 Mike Stump <[email protected]>
3911
3912 * configure: Regenerate.
3913
3914 2005-03-30 Hans Boehm <[email protected]>
3915
3916 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
3917
3918 2005-03-30 Steve Ellcey <[email protected]>
3919
3920 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
3921 (ffi_sarg) Ditto.
3922 * src/ia64/unix.S (ffi_closure_unix): Extend gp
3923 to 64 bits in ILP32 mode.
3924 Load 64 bits even for short data.
3925
3926 2005-03-23 Mike Stump <[email protected]>
3927
3928 * src/powerpc/darwin.S: Update for -m64 multilib.
3929 * src/powerpc/darwin_closure.S: Likewise.
3930
3931 2005-03-21 Zack Weinberg <[email protected]>
3932
3933 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3934 Do not set tool_include_dir.
3935 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
3936 Regenerate.
3937 * include/Makefile.am: Set gcc_version and toollibffidir.
3938 * include/Makefile.in: Regenerate.
3939
3940 2005-02-22 Andrew Haley <[email protected]>
3941
3942 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
3943 odd-numbered register pairs for 64-bit integer types.
3944
3945 2005-02-23 Andreas Tobler <[email protected]>
3946
3947 PR libffi/20104
3948 * testsuite/libffi.call/return_ll1.c: New test case.
3949
3950 2005-02-11 Janis Johnson <[email protected]>
3951
3952 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
3953 * testsuite/libffi.call/float.c: Ditto.
3954 * testsuite/libffi.call/float2.c: Ditto.
3955 * testsuite/libffi.call/float3.c: Ditto.
3956
3957 2005-02-08 Andreas Tobler <[email protected]>
3958
3959 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
3960
3961 2005-01-12 Eric Botcazou <[email protected]>
3962
3963 * testsuite/libffi.special/special.exp (cxx_options): Add
3964 -shared-libgcc.
3965
3966 2004-12-31 Richard Henderson <[email protected]>
3967
3968 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
3969 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
3970 offset parameters with a type parameter; deduce size and structure
3971 alignment. Update all users.
3972
3973 2004-12-31 Richard Henderson <[email protected]>
3974
3975 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
3976 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
3977 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
3978 into ffi_prep_closure.
3979 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
3980 from scratch.
3981
3982 2004-12-27 Richard Henderson <[email protected]>
3983
3984 * src/x86/unix64.S: Fix typo in unwind info.
3985
3986 2004-12-25 Richard Henderson <[email protected]>
3987
3988 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
3989 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
3990 (merge_classes): Check for it.
3991 (SSE_CLASS_P): New.
3992 (classify_argument): Pass byte_offset by value; perform all updates
3993 inside struct case.
3994 (examine_argument): Add classes argument; handle
3995 X86_64_COMPLEX_X87_CLASS.
3996 (ffi_prep_args): Merge into ...
3997 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
3998 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
3999 (ffi_fill_return_value): Remove.
4000 (ffi_prep_closure): Remove dead assert.
4001 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
4002 Rewrite to use struct register_args instead of va_list. Create
4003 flags for handling structure returns.
4004 * src/x86/unix64.S: Remove dead strings.
4005 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
4006 stack frame with ffi_call. Handle structure returns properly.
4007 (float2sse, floatfloat2sse, double2sse): Remove.
4008 (sse2float, sse2double, sse2floatfloat): Remove.
4009 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
4010 to handle structure returns properly.
4011
4012 2004-12-08 David Edelsohn <[email protected]>
4013
4014 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
4015 PICFLAG.
4016 * Makefile.in: Regenerated.
4017
4018 2004-12-02 Richard Sandiford <[email protected]>
4019
4020 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
4021 * configure, aclocal.m4, Makefile.in: Regenerate.
4022 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
4023
4024 2004-11-29 Kelley Cook <[email protected]>
4025
4026 * configure: Regenerate for libtool change.
4027
4028 2004-11-25 Kelley Cook <[email protected]>
4029
4030 * configure: Regenerate for libtool reversion.
4031
4032 2004-11-24 Kelley Cook <[email protected]>
4033
4034 * configure: Regenerate for libtool change.
4035
4036 2004-11-23 John David Anglin <[email protected]>
4037
4038 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
4039
4040 2004-11-23 Richard Sandiford <[email protected]>
4041
4042 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
4043 of jal. Use an absolute encoding for the frame information.
4044
4045 2004-11-23 Kelley Cook <[email protected]>
4046
4047 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
4048 * acinclude.m4: Delete logic for sincludes.
4049 * aclocal.m4, Makefile.in, configure: Regenerate.
4050 * include/Makefile: Likewise.
4051 * testsuite/Makefile: Likewise.
4052
4053 2004-11-22 Eric Botcazou <[email protected]>
4054
4055 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
4056 on a 8-byte boundary.
4057 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
4058
4059 2004-10-27 Richard Earnshaw <[email protected]>
4060
4061 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
4062 long long values. Round stack allocation to a multiple of 8 bytes
4063 for ATPCS compatibility.
4064 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
4065 names. Handle returning long long types. Add Thumb and interworking
4066 support. Improve soft-float code.
4067
4068 2004-10-27 Richard Earnshaw <[email protected]>
4069
4070 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
4071 (libffi_exit): New function.
4072 (libffi_init): Build the testglue wrapper if needed.
4073
4074 2004-10-25 Eric Botcazou <[email protected]>
4075
4076 PR other/18138
4077 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
4078
4079 2004-10-25 Kazuhiro Inaoka <[email protected]>
4080
4081 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
4082
4083 2004-10-20 Kaz Kojima <[email protected]>
4084
4085 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
4086 * testsuite/libffi.call/float3.c: New test case.
4087
4088 2004-10-18 Kaz Kojima <[email protected]>
4089
4090 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
4091 the function returning a structure pointed with R2.
4092 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
4093 the structure return value if T bit set. Emit position
4094 independent code and EH data if PIC.
4095
4096 2004-10-13 Kazuhiro Inaoka <[email protected]>
4097
4098 * Makefile.am: Add m32r support.
4099 * configure.ac: Likewise.
4100 * Makefile.in: Regenerate.
4101 * confiugre: Regenerate.
4102 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
4103 (uint64, sint64, double, longdouble)
4104 * src/m32r: New directory.
4105 * src/m32r/ffi.c: New file.
4106 * src/m32r/sysv.S: Likewise.
4107 * src/m32r/ffitarget.h: Likewise.
4108
4109 2004-10-02 Kaz Kojima <[email protected]>
4110
4111 * testsuite/libffi.call/negint.c: New test case.
4112
4113 2004-09-14 H.J. Lu <[email protected]>
4114
4115 PR libgcj/17465
4116 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
4117 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
4118 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
4119 DYLD_LIBRARY_PATH.
4120
4121 2004-09-05 Andreas Tobler <[email protected]>
4122
4123 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
4124 * testsuite/libffi.call/promotion.c: Likewise.
4125 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
4126 whitespaces.
4127 * testsuite/libffi.call/return_sc.c: Likewise.
4128 * testsuite/libffi.call/return_uc.c: Likewise.
4129
4130 2004-09-05 Andreas Tobler <[email protected]>
4131
4132 * src/powerpc/darwin.S: Fix comments and identation.
4133 * src/powerpc/darwin_closure.S: Likewise.
4134
4135 2004-09-02 Andreas Tobler <[email protected]>
4136
4137 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
4138 (ffi_prep_args): Handle longdouble arguments.
4139 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
4140 longdouble.
4141 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
4142 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
4143 values.
4144 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
4145 * src/types.c: Defined longdouble size and alignment for darwin.
4146
4147 2004-09-02 Andreas Tobler <[email protected]>
4148
4149 * src/powerpc/aix.S: Remove whitespaces.
4150 * src/powerpc/aix_closure.S: Likewise.
4151 * src/powerpc/asm.h: Likewise.
4152 * src/powerpc/ffi.c: Likewise.
4153 * src/powerpc/ffitarget.h: Likewise.
4154 * src/powerpc/linux64.S: Likewise.
4155 * src/powerpc/linux64_closure.S: Likewise.
4156 * src/powerpc/ppc_closure.S: Likewise.
4157 * src/powerpc/sysv.S: Likewise.
4158
4159 2004-08-30 Anthony Green <[email protected]>
4160
4161 * Makefile.am: Add frv support.
4162 * Makefile.in, testsuite/Makefile.in: Rebuilt.
4163 * configure.ac: Read configure.host.
4164 * configure.in: Read configure.host.
4165 * configure.host: New file. frv-elf needs libgloss.
4166 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
4167 alignment. This is needed to frv and shouldn't harm the others.
4168 * include/ffi_common.h (ALIGN_DOWN): New macro.
4169 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
4170
4171 2004-08-24 David Daney <[email protected]>
4172
4173 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
4174 * testsuite/libffi.call/closure_fn1.c: Likewise.
4175 * testsuite/libffi.call/closure_fn2.c Likewise.
4176 * testsuite/libffi.call/closure_fn3.c: Likewise.
4177 * testsuite/libffi.call/closure_fn4.c: Likewise.
4178 * testsuite/libffi.call/closure_fn5.c: Likewise.
4179 * testsuite/libffi.call/cls_18byte.c: Likewise.
4180 * testsuite/libffi.call/cls_19byte.c: Likewise.
4181 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4182 * testsuite/libffi.call/cls_20byte.c: Likewise.
4183 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4184 * testsuite/libffi.call/cls_24byte.c: Likewise.
4185 * testsuite/libffi.call/cls_2byte.c: Likewise.
4186 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4187 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4188 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4189 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4190 * testsuite/libffi.call/cls_4byte.c: Likewise.
4191 * testsuite/libffi.call/cls_64byte.c: Likewise.
4192 * testsuite/libffi.call/cls_6byte.c: Likewise.
4193 * testsuite/libffi.call/cls_7byte.c: Likewise.
4194 * testsuite/libffi.call/cls_8byte.c: Likewise.
4195 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4196 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4197 * testsuite/libffi.call/cls_align_double.c: Likewise.
4198 * testsuite/libffi.call/cls_align_float.c: Likewise.
4199 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4200 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4201 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4202 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4203 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4204 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4205 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4206 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
4207 * testsuite/libffi.call/cls_double.c: Likewise.
4208 * testsuite/libffi.call/cls_float.c: Likewise.
4209 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4210 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
4211 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4212 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4213 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4214 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4215 * testsuite/libffi.call/cls_schar.c: Likewise.
4216 * testsuite/libffi.call/cls_sint.c: Likewise.
4217 * testsuite/libffi.call/cls_sshort.c: Likewise.
4218 * testsuite/libffi.call/cls_uchar.c: Likewise.
4219 * testsuite/libffi.call/cls_uint.c: Likewise.
4220 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4221 * testsuite/libffi.call/cls_ushort.c: Likewise.
4222 * testsuite/libffi.call/nested_struct.c: Likewise.
4223 * testsuite/libffi.call/nested_struct1.c: Likewise.
4224 * testsuite/libffi.call/nested_struct2.c: Likewise.
4225 * testsuite/libffi.call/nested_struct3.c: Likewise.
4226 * testsuite/libffi.call/problem1.c: Likewise.
4227 * testsuite/libffi.special/unwindtest.cc: Likewise.
4228 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
4229 to zero.
4230 * testsuite/libffi.call/cls_16byte.c: Likewise.
4231 * testsuite/libffi.call/cls_5byte.c: Likewise.
4232
4233 2004-08-23 David Daney <[email protected]>
4234
4235 PR libgcj/13141
4236 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
4237 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
4238 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
4239 parameters and return types.
4240 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
4241 (ffi_prep_closure): Ditto.
4242 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
4243 alignment calculations.
4244 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
4245 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
4246
4247 2004-08-14 Casey Marshall <[email protected]>
4248
4249 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
4250 contain `FFI_TYPE_UINT64' as return type for any 64-bit
4251 integer (O32 ABI only).
4252 (ffi_prep_closure): new function.
4253 (ffi_closure_mips_inner_O32): new function.
4254 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
4255 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
4256 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
4257 64 bit integers correctly.
4258 (ffi_closure_O32): new function.
4259 Added DWARF-2 unwind info for both functions.
4260
4261 2004-08-10 Andrew Haley <[email protected]>
4262
4263 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
4264
4265 2004-08-01 Robert Millan <[email protected]>
4266
4267 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
4268 * configure: Regenerate.
4269
4270 2004-07-30 Maciej W. Rozycki <[email protected]>
4271
4272 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4273 and mmap() explicitly instead of relying on preset autoconf cache
4274 variables.
4275 * aclocal.m4: Regenerate.
4276 * configure: Regenerate.
4277
4278 2004-07-11 Ulrich Weigand <[email protected]>
4279
4280 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
4281 (ffi_check_float_struct): Remove unused prototype.
4282
4283 2004-06-30 Geoffrey Keating <[email protected]>
4284
4285 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
4286 character on Darwin, use '\n\t' instead.
4287
4288 2004-06-26 Matthias Klose <[email protected]>
4289
4290 * libtool-version: Fix typo in revision/age.
4291
4292 2004-06-17 Matthias Klose <[email protected]>
4293
4294 * libtool-version: New.
4295 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
4296 * Makefile.in: Regenerate.
4297
4298 2004-06-15 Paolo Bonzini <[email protected]>
4299
4300 * Makefile.am: Remove useless multilib rules.
4301 * Makefile.in: Regenerate.
4302 * aclocal.m4: Regenerate with automake 1.8.5.
4303 * configure.ac: Remove useless multilib configury.
4304 * configure: Regenerate.
4305
4306 2004-06-15 Paolo Bonzini <[email protected]>
4307
4308 * .cvsignore: New file.
4309
4310 2004-06-10 Jakub Jelinek <[email protected]>
4311
4312 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4313 fp_done.
4314 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
4315 changed from 8.
4316
4317 2004-06-06 Sean McNeil <[email protected]>
4318
4319 * configure.ac: Add x86_64-*-freebsd* support.
4320 * configure: Regenerate.
4321
4322 2004-04-26 Joe Buck <[email protected]>
4323
4324 Bug 15093
4325 * configure.ac: Test for existence of mmap and sys/mman.h before
4326 checking blacklist. Fix suggested by Jim Wilson.
4327 * configure: Regenerate.
4328
4329 2004-04-26 Matt Austern <[email protected]>
4330
4331 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
4332 FDE location.
4333 * src/powerpc/darwin_closure.S: Likewise.
4334
4335 2004-04-24 Andreas Tobler <[email protected]>
4336
4337 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
4338 error. Reported by Thomas Heller <[email protected]>.
4339 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
4340 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
4341
4342 2004-03-20 Matthias Klose <[email protected]>
4343
4344 * src/pa/linux.S: Fix typo.
4345
4346 2004-03-19 Matthias Klose <[email protected]>
4347
4348 * Makefile.am: Update.
4349 * Makefile.in: Regenerate.
4350 * src/pa/ffi.h.in: Remove.
4351 * src/pa/ffitarget.h: New file.
4352
4353 2004-02-10 Randolph Chung <[email protected]>
4354
4355 * Makefile.am: Add PA support.
4356 * Makefile.in: Regenerate.
4357 * include/Makefile.in: Regenerate.
4358 * configure.ac: Add PA target.
4359 * configure: Regenerate.
4360 * src/pa/ffi.c: New file.
4361 * src/pa/ffi.h.in: Add PA support.
4362 * src/pa/linux.S: New file.
4363 * prep_cif.c: Add PA support.
4364
4365 2004-03-16 Hosaka Yuji <[email protected]>
4366
4367 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
4368 double.
4369 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
4370 with ecif->cif->flags.
4371 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
4372 with cif->flags.
4373 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
4374 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
4375 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
4376 sc_retstruct2b): Add for 1 or 2-bytes struct case.
4377
4378 2004-03-15 Kelley Cook <[email protected]>
4379
4380 * configure.in: Rename file to ...
4381 * configure.ac: ... this.
4382 * fficonfig.h.in: Regenerate.
4383 * Makefile.in: Regenerate.
4384 * include/Makefile.in: Regenerate.
4385 * testsuite/Makefile.in: Regenerate.
4386
4387 2004-03-12 Matt Austern <[email protected]>
4388
4389 * src/powerpc/darwin.S: Fix EH information so it corresponds to
4390 changes in EH format resulting from addition of linkonce support.
4391 * src/powerpc/darwin_closure.S: Likewise.
4392
4393 2004-03-11 Andreas Tobler <[email protected]>
4394 Paolo Bonzini <[email protected]>
4395
4396 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
4397 Remove VPATH. Remove rules for object files. Remove multilib support.
4398 (AM_CCASFLAGS): Add.
4399 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
4400 (AC_PREREQ): Bump version to 2.59.
4401 (AC_INIT): Fill with version info and bug address.
4402 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
4403 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
4404 De-precious CC so that the right flags are passed down to multilibs.
4405 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
4406 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
4407 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
4408 * configure: Rebuilt.
4409 * aclocal.m4: Likewise.
4410 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
4411 * fficonfig.h.in: Likewise.
4412
4413 2004-03-11 Andreas Schwab <[email protected]>
4414
4415 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
4416 arguments from fp registers only for the first 8 parameter slots.
4417 Don't convert a float parameter when passed in memory.
4418
4419 2004-03-09 Hans-Peter Nilsson <[email protected]>
4420
4421 * configure: Regenerate for config/accross.m4 correction.
4422
4423 2004-02-25 Matt Kraai <[email protected]>
4424
4425 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
4426 ecif->cif->bytes to bytes.
4427 (ffi_prep_cif_machdep): Add braces around nested if statement.
4428
4429 2004-02-09 Alan Modra <[email protected]>
4430
4431 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
4432
4433 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
4434 (ffi_closure_helper_LINUX64): Fix typo.
4435 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
4436 for powerpc64-*-*.
4437 * testsuite/libffi.call/float.c: Likewise.
4438 * testsuite/libffi.call/float2.c: Likewise.
4439
4440 2004-02-08 Alan Modra <[email protected]>
4441
4442 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
4443 long double function return and long double arg handling.
4444 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
4445 Use "end_pfr" instead of "nf". Correct long double handling.
4446 Localise "temp".
4447 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
4448 return value.
4449 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
4450 space for long double return value. Adjust stack frame and offsets.
4451 Load f2 long double return.
4452
4453 2004-02-07 Alan Modra <[email protected]>
4454
4455 * src/types.c: Use 16 byte long double for POWERPC64.
4456
4457 2004-01-25 Eric Botcazou <[email protected]>
4458
4459 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4460 when the structure return address is passed in %o0.
4461 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
4462 (ffi_v9_layout_struct): Align the field following a nested structure
4463 on a word boundary. Use memmove instead of memcpy.
4464 (ffi_call): Update call to ffi_V9_return_struct.
4465 (ffi_prep_closure): Define 'ctx' only for V8.
4466 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
4467 and ffi_closure_sparc_inner_v9.
4468 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
4469 Always skip the structure return address. For structures and long
4470 doubles, copy the argument directly.
4471 (ffi_closure_sparc_inner_v9): Skip the structure return address only
4472 if required. Shift the maximum floating-point slot accordingly. For
4473 big structures, copy the argument directly; otherwise, left-justify the
4474 argument and call ffi_v9_layout_struct to lay out the structure on
4475 the stack.
4476 * src/sparc/v8.S: Undef STACKFRAME before defining it.
4477 (ffi_closure_v8): Pass the structure return address. Update call to
4478 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
4479 Skip the 'unimp' insn when returning long doubles and structures.
4480 * src/sparc/v9.S: Undef STACKFRAME before defining it.
4481 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
4482 FFI_TYPE_INT handling. Load structures both in integers and
4483 floating-point registers on return.
4484 * README: Update status of the SPARC port.
4485
4486 2004-01-24 Andreas Tobler <[email protected]>
4487
4488 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
4489 as of type ffi_arg.
4490 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
4491
4492 2004-01-22 Ulrich Weigand <[email protected]>
4493
4494 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
4495 value as of type ffi_arg, not unsigned int.
4496
4497 2004-01-21 Michael Ritzert <[email protected]>
4498
4499 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
4500 of the LHS.
4501
4502 2004-01-12 Andreas Tobler <[email protected]>
4503
4504 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
4505 Solaris.
4506
4507 2004-01-08 Rainer Orth <[email protected]>
4508
4509 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
4510 to void *.
4511
4512 2003-12-10 Richard Henderson <[email protected]>
4513
4514 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
4515 size_t instead of int.
4516
4517 2003-12-04 Hosaka Yuji <[email protected]>
4518
4519 * testsuite/libffi.call/many_win32.c: Include <float.h>.
4520 * testsuite/libffi.call/many_win32.c (main): Replace variable
4521 int i with unsigned long ul.
4522
4523 * testsuite/libffi.call/cls_align_uint64.c: New test case.
4524 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
4525 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
4526 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
4527 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
4528 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
4529 * testsuite/libffi.call/cls_align_float.c: Likewise.
4530 * testsuite/libffi.call/cls_align_double.c: Likewise.
4531 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
4532 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
4533
4534 2003-12-02 Hosaka Yuji <[email protected]>
4535
4536 PR other/13221
4537 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
4538 Align arguments to 32 bits.
4539
4540 2003-12-01 Andreas Tobler <[email protected]>
4541
4542 PR other/13221
4543 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
4544 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
4545 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
4546 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
4547 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
4548 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
4549
4550 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
4551
4552 2003-11-26 Kaveh R. Ghazi <[email protected]>
4553
4554 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
4555 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4556
4557 2003-11-22 Andreas Tobler <[email protected]>
4558
4559 * Makefile.in: Rebuilt.
4560 * configure: Likewise.
4561 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
4562 the right type.
4563
4564 2003-11-21 Andreas Jaeger <[email protected]>
4565 Andreas Tobler <[email protected]>
4566
4567 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
4568 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
4569 * Makefile.in: Rebuilt.
4570 * aclocal.m4: Likewise.
4571 * configure: Likewise.
4572 * fficonfig.h.in: Likewise.
4573 * testsuite/lib/libffi-dg.exp: Add include dir.
4574 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
4575 * testsuite/libffi.special/ffitestcxx.h: Likewise.
4576 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
4577 for ffi_closure if available.
4578 * testsuite/libffi.call/closure_fn1.c: Likewise.
4579 * testsuite/libffi.call/closure_fn2.c: Likewise.
4580 * testsuite/libffi.call/closure_fn3.c: Likewise.
4581 * testsuite/libffi.call/closure_fn4.c: Likewise.
4582 * testsuite/libffi.call/closure_fn5.c: Likewise.
4583 * testsuite/libffi.call/cls_12byte.c: Likewise.
4584 * testsuite/libffi.call/cls_16byte.c: Likewise.
4585 * testsuite/libffi.call/cls_18byte.c: Likewise.
4586 * testsuite/libffi.call/cls_19byte.c: Likewise.
4587 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4588 * testsuite/libffi.call/cls_20byte.c: Likewise.
4589 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4590 * testsuite/libffi.call/cls_24byte.c: Likewise.
4591 * testsuite/libffi.call/cls_2byte.c: Likewise.
4592 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4593 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4594 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4595 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4596 * testsuite/libffi.call/cls_4byte.c: Likewise.
4597 * testsuite/libffi.call/cls_5byte.c: Likewise.
4598 * testsuite/libffi.call/cls_64byte.c: Likewise.
4599 * testsuite/libffi.call/cls_6byte.c: Likewise.
4600 * testsuite/libffi.call/cls_7byte.c: Likewise.
4601 * testsuite/libffi.call/cls_8byte.c: Likewise.
4602 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4603 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4604 * testsuite/libffi.call/cls_double.c: Likewise.
4605 * testsuite/libffi.call/cls_float.c: Likewise.
4606 * testsuite/libffi.call/cls_schar.c: Likewise.
4607 * testsuite/libffi.call/cls_sint.c: Likewise.
4608 * testsuite/libffi.call/cls_sshort.c: Likewise.
4609 * testsuite/libffi.call/cls_uchar.c: Likewise.
4610 * testsuite/libffi.call/cls_uint.c: Likewise.
4611 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4612 * testsuite/libffi.call/cls_ushort.c: Likewise.
4613 * testsuite/libffi.call/nested_struct.c: Likewise.
4614 * testsuite/libffi.call/nested_struct1.c: Likewise.
4615 * testsuite/libffi.call/nested_struct2.c: Likewise.
4616 * testsuite/libffi.call/nested_struct3.c: Likewise.
4617 * testsuite/libffi.call/problem1.c: Likewise.
4618 * testsuite/libffi.special/unwindtest.cc: Likewise.
4619
4620 2003-11-20 Andreas Tobler <[email protected]>
4621
4622 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
4623
4624 2003-11-19 Andreas Tobler <[email protected]>
4625
4626 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
4627 Add -lgcc_s to additional flags.
4628
4629 2003-11-12 Andreas Tobler <[email protected]>
4630
4631 * configure.in, include/Makefile.am: PR libgcj/11147, install
4632 the ffitarget.h header file in a gcc versioned and target
4633 dependent place.
4634 * configure: Regenerated.
4635 * Makefile.in, include/Makefile.in: Likewise.
4636 * testsuite/Makefile.in: Likewise.
4637
4638 2003-11-09 Andreas Tobler <[email protected]>
4639
4640 * testsuite/libffi.call/closure_fn0.c: Print result and check
4641 with dg-output to make debugging easier.
4642 * testsuite/libffi.call/closure_fn1.c: Likewise.
4643 * testsuite/libffi.call/closure_fn2.c: Likewise.
4644 * testsuite/libffi.call/closure_fn3.c: Likewise.
4645 * testsuite/libffi.call/closure_fn4.c: Likewise.
4646 * testsuite/libffi.call/closure_fn5.c: Likewise.
4647 * testsuite/libffi.call/cls_12byte.c: Likewise.
4648 * testsuite/libffi.call/cls_16byte.c: Likewise.
4649 * testsuite/libffi.call/cls_18byte.c: Likewise.
4650 * testsuite/libffi.call/cls_19byte.c: Likewise.
4651 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4652 * testsuite/libffi.call/cls_20byte.c: Likewise.
4653 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4654 * testsuite/libffi.call/cls_24byte.c: Likewise.
4655 * testsuite/libffi.call/cls_2byte.c: Likewise.
4656 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4657 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4658 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4659 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4660 * testsuite/libffi.call/cls_4byte.c: Likewise.
4661 * testsuite/libffi.call/cls_5byte.c: Likewise.
4662 * testsuite/libffi.call/cls_64byte.c: Likewise.
4663 * testsuite/libffi.call/cls_6byte.c: Likewise.
4664 * testsuite/libffi.call/cls_7byte.c: Likewise.
4665 * testsuite/libffi.call/cls_8byte.c: Likewise.
4666 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4667 * testsuite/libffi.call/cls_9byte2.c: Likewise.
4668 * testsuite/libffi.call/cls_double.c: Likewise.
4669 * testsuite/libffi.call/cls_float.c: Likewise.
4670 * testsuite/libffi.call/cls_schar.c: Likewise.
4671 * testsuite/libffi.call/cls_sint.c: Likewise.
4672 * testsuite/libffi.call/cls_sshort.c: Likewise.
4673 * testsuite/libffi.call/cls_uchar.c: Likewise.
4674 * testsuite/libffi.call/cls_uint.c: Likewise.
4675 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4676 * testsuite/libffi.call/cls_ushort.c: Likewise.
4677 * testsuite/libffi.call/problem1.c: Likewise.
4678
4679 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
4680 static.
4681
4682 2003-11-08 Andreas Tobler <[email protected]>
4683
4684 * testsuite/libffi.call/cls_9byte2.c: New test case.
4685 * testsuite/libffi.call/cls_9byte1.c: Likewise.
4686 * testsuite/libffi.call/cls_64byte.c: Likewise.
4687 * testsuite/libffi.call/cls_20byte1.c: Likewise.
4688 * testsuite/libffi.call/cls_19byte.c: Likewise.
4689 * testsuite/libffi.call/cls_18byte.c: Likewise.
4690 * testsuite/libffi.call/closure_fn4.c: Likewise.
4691 * testsuite/libffi.call/closure_fn5.c: Likewise.
4692 * testsuite/libffi.call/cls_schar.c: Likewise.
4693 * testsuite/libffi.call/cls_sint.c: Likewise.
4694 * testsuite/libffi.call/cls_sshort.c: Likewise.
4695 * testsuite/libffi.call/nested_struct2.c: Likewise.
4696 * testsuite/libffi.call/nested_struct3.c: Likewise.
4697
4698 2003-11-08 Andreas Tobler <[email protected]>
4699
4700 * testsuite/libffi.call/cls_double.c: Do a check on the result.
4701 * testsuite/libffi.call/cls_uchar.c: Likewise.
4702 * testsuite/libffi.call/cls_uint.c: Likewise.
4703 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4704 * testsuite/libffi.call/cls_ushort.c: Likewise.
4705 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
4706
4707 2003-11-06 Andreas Tobler <[email protected]>
4708
4709 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
4710 the initialization.
4711
4712 2003-10-23 Andreas Tobler <[email protected]>
4713
4714 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
4715 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
4716
4717 2003-10-22 David Daney <[email protected]>
4718
4719 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
4720 __attribute__((__mode__(__SI__))) and friends.
4721
4722 2003-10-22 Andreas Schwab <[email protected]>
4723
4724 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
4725
4726 2003-10-21 Andreas Tobler <[email protected]>
4727
4728 * configure.in: AC_LINK_FILES(ffitarget.h).
4729 * configure: Regenerate.
4730 * Makefile.in: Likewise.
4731 * include/Makefile.in: Likewise.
4732 * testsuite/Makefile.in: Likewise.
4733 * fficonfig.h.in: Likewise.
4734
4735 2003-10-21 Paolo Bonzini <[email protected]>
4736 Richard Henderson <[email protected]>
4737
4738 Avoid that ffi.h includes fficonfig.h.
4739
4740 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
4741 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4742 (TARGET_SRC_MIPS_SGI): Removed.
4743 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
4744 (MIPS_SGI): Removed.
4745 (CLEANFILES): Removed.
4746 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
4747 targets.
4748 * acconfig.h: Removed.
4749 * configure.in: Compute sizeofs only for double and long double.
4750 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
4751 into AC_DEFINE instead of using acconfig.h. Create
4752 include/ffitarget.h instead of include/fficonfig.h. Rename
4753 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
4754 AC_DEFINE EH_FRAME_FLAGS.
4755 * include/Makefile.am (DISTCLEANFILES): New automake macro.
4756 (hack_DATA): Add ffitarget.h.
4757 * include/ffi.h.in: Remove all system specific definitions.
4758 Declare raw API even if it is not installed, why bother?
4759 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
4760 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
4761 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
4762 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
4763 * include/ffi_common.h (bool): Do not define.
4764 (ffi_assert): Accept failed assertion.
4765 (ffi_type_test): Return void and accept file/line.
4766 (FFI_ASSERT): Pass stringized failed assertion.
4767 (FFI_ASSERT_AT): New macro.
4768 (FFI_ASSERT_VALID_TYPE): New macro.
4769 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
4770 UINT64, SINT64): Define here with gcc's __attribute__ macro
4771 instead of in ffi.h
4772 (FLOAT32, ALIGN): Define here instead of in ffi.h
4773 * include/ffi-mips.h: Removed. Its content moved to
4774 src/mips/ffitarget.h after separating assembly and C sections.
4775 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
4776 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
4777 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
4778 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
4779 SIZEOF_ARG -> FFI_SIZEOF_ARG.
4780 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
4781 * src/debug.c (ffi_assert): Accept stringized failed assertion.
4782 (ffi_type_test): Rewritten.
4783 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
4784 FFI_ASSERT_VALID_TYPE.
4785 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
4786 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
4787 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
4788 src/s390/ffitarget.h, src/sh/ffitarget.h,
4789 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
4790 src/x86/ffitarget.h: New files.
4791 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
4792 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
4793 src/powerpc/aix.S, src/powerpc/darwin.S,
4794 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
4795 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
4796 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
4797 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
4798 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
4799 include fficonfig.h
4800
4801 2003-10-20 Rainer Orth <[email protected]>
4802
4803 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
4804 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
4805
4806 2003-10-19 Andreas Tobler <[email protected]>
4807
4808 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
4809 Used when FFI_DEBUG = 1.
4810
4811 2003-10-14 Alan Modra <[email protected]>
4812
4813 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
4814 and align.
4815
4816 2003-10-06 Rainer Orth <[email protected]>
4817
4818 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
4819 FFI_MIPS_O32 for O32 ABI.
4820
4821 2003-10-01 Andreas Tobler <[email protected]>
4822
4823 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
4824 SPARC64. Cleanup whitespaces.
4825
4826 2003-09-19 Andreas Tobler <[email protected]>
4827
4828 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
4829 strongarm, xscale. Cleanup whitespaces.
4830 * testsuite/libffi.call/closure_fn1.c: Likewise.
4831 * testsuite/libffi.call/closure_fn2.c: Likewise.
4832 * testsuite/libffi.call/closure_fn3.c: Likewise.
4833 * testsuite/libffi.call/cls_12byte.c: Likewise.
4834 * testsuite/libffi.call/cls_16byte.c: Likewise.
4835 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4836 * testsuite/libffi.call/cls_20byte.c: Likewise.
4837 * testsuite/libffi.call/cls_24byte.c: Likewise.
4838 * testsuite/libffi.call/cls_2byte.c: Likewise.
4839 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4840 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4841 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4842 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4843 * testsuite/libffi.call/cls_4byte.c: Likewise.
4844 * testsuite/libffi.call/cls_5byte.c: Likewise.
4845 * testsuite/libffi.call/cls_6byte.c: Likewise.
4846 * testsuite/libffi.call/cls_7byte.c: Likewise.
4847 * testsuite/libffi.call/cls_8byte.c: Likewise.
4848 * testsuite/libffi.call/cls_double.c: Likewise.
4849 * testsuite/libffi.call/cls_float.c: Likewise.
4850 * testsuite/libffi.call/cls_uchar.c: Likewise.
4851 * testsuite/libffi.call/cls_uint.c: Likewise.
4852 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4853 * testsuite/libffi.call/cls_ushort.c: Likewise.
4854 * testsuite/libffi.call/nested_struct.c: Likewise.
4855 * testsuite/libffi.call/nested_struct1.c: Likewise.
4856 * testsuite/libffi.call/problem1.c: Likewise.
4857 * testsuite/libffi.special/unwindtest.cc: Likewise.
4858 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
4859
4860 2003-09-18 David Edelsohn <[email protected]>
4861
4862 * src/powerpc/aix.S: Cleanup whitespaces.
4863 * src/powerpc/aix_closure.S: Likewise.
4864
4865 2003-09-18 Andreas Tobler <[email protected]>
4866
4867 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
4868 * src/powerpc/darwin_closure.S: Likewise.
4869 * src/powerpc/ffi_darwin.c: Likewise.
4870
4871 2003-09-18 Andreas Tobler <[email protected]>
4872 David Edelsohn <[email protected]>
4873
4874 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
4875 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
4876 parameter stack.
4877 * src/powerpc/darwin_closure.S: Likewise.
4878 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
4879 according to the Darwin/AIX ABI.
4880 (ffi_prep_cif_machdep): Likewise.
4881 (ffi_closure_helper_DARWIN): Likewise.
4882 Remove the outgoing parameter stack logic. Simplify the evaluation
4883 of the different CASE types.
4884 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
4885 statement in the trampoline code.
4886
4887 2003-09-18 Kaz Kojima <[email protected]>
4888
4889 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
4890 for the register size.
4891 (ffi_closure_helper_SYSV): Handle the structure return value
4892 address correctly.
4893 (ffi_closure_helper_SYSV): Return the appropriate type when
4894 the registers are used for the structure return value.
4895 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
4896 the 64-bit return value. Update copyright years.
4897
4898 2003-09-17 Rainer Orth <[email protected]>
4899
4900 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
4901 srcdir for ffi_mips.h.
4902
4903 2003-09-12 Alan Modra <[email protected]>
4904
4905 * src/prep_cif.c (initialize_aggregate): Include tail padding in
4906 structure size.
4907 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
4908 placement of float result.
4909 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
4910 cast of "resp" for big-endian 64 bit machines.
4911
4912 2003-09-11 Alan Modra <[email protected]>
4913
4914 * src/types.c (double, longdouble): Merge identical SH and ARM
4915 typedefs, and add POWERPC64.
4916 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
4917 struct split over gpr and rest.
4918 (ffi_prep_cif_machdep): Correct intarg_count for structures.
4919 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
4920
4921 2003-09-09 Andreas Tobler <[email protected]>
4922
4923 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
4924 passing correctly.
4925
4926 2003-09-09 Alan Modra <[email protected]>
4927
4928 * configure: Regenerate.
4929
4930 2003-09-04 Andreas Tobler <[email protected]>
4931
4932 * Makefile.am: Remove build rules for ffitest.
4933 * Makefile.in: Rebuilt.
4934
4935 2003-09-04 Andreas Tobler <[email protected]>
4936
4937 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
4938 about implicit declaration of abort().
4939
4940 2003-09-04 Andreas Tobler <[email protected]>
4941
4942 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
4943 * Makefile.in: Rebuilt.
4944 * configure.in: Add dejagnu test framework.
4945 * configure: Rebuilt.
4946
4947 * testsuite/Makefile.am: New file.
4948 * testsuite/Makefile.in: Built
4949 * testsuite/lib/libffi-dg.exp: New file.
4950 * testsuite/config/default.exp: Likewise.
4951 * testsuite/libffi.call/call.exp: Likewise.
4952 * testsuite/libffi.call/ffitest.h: Likewise.
4953 * testsuite/libffi.call/closure_fn0.c: Likewise.
4954 * testsuite/libffi.call/closure_fn1.c: Likewise.
4955 * testsuite/libffi.call/closure_fn2.c: Likewise.
4956 * testsuite/libffi.call/closure_fn3.c: Likewise.
4957 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
4958 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
4959 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
4960 * testsuite/libffi.call/cls_2byte.c: Likewise.
4961 * testsuite/libffi.call/cls_3byte1.c: Likewise.
4962 * testsuite/libffi.call/cls_3byte2.c: Likewise.
4963 * testsuite/libffi.call/cls_4byte.c: Likewise.
4964 * testsuite/libffi.call/cls_5byte.c: Likewise.
4965 * testsuite/libffi.call/cls_6byte.c: Likewise.
4966 * testsuite/libffi.call/cls_7byte.c: Likewise.
4967 * testsuite/libffi.call/cls_8byte.c: Likewise.
4968 * testsuite/libffi.call/cls_12byte.c: Likewise.
4969 * testsuite/libffi.call/cls_16byte.c: Likewise.
4970 * testsuite/libffi.call/cls_20byte.c: Likewise.
4971 * testsuite/libffi.call/cls_24byte.c: Likewise.
4972 * testsuite/libffi.call/cls_double.c: Likewise.
4973 * testsuite/libffi.call/cls_float.c: Likewise.
4974 * testsuite/libffi.call/cls_uchar.c: Likewise.
4975 * testsuite/libffi.call/cls_uint.c: Likewise.
4976 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
4977 * testsuite/libffi.call/cls_ushort.c: Likewise.
4978 * testsuite/libffi.call/float.c: Likewise.
4979 * testsuite/libffi.call/float1.c: Likewise.
4980 * testsuite/libffi.call/float2.c: Likewise.
4981 * testsuite/libffi.call/many.c: Likewise.
4982 * testsuite/libffi.call/many_win32.c: Likewise.
4983 * testsuite/libffi.call/nested_struct.c: Likewise.
4984 * testsuite/libffi.call/nested_struct1.c: Likewise.
4985 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
4986 * testsuite/libffi.call/problem1.c: Likewise.
4987 * testsuite/libffi.call/promotion.c: Likewise.
4988 * testsuite/libffi.call/return_ll.c: Likewise.
4989 * testsuite/libffi.call/return_sc.c: Likewise.
4990 * testsuite/libffi.call/return_uc.c: Likewise.
4991 * testsuite/libffi.call/strlen.c: Likewise.
4992 * testsuite/libffi.call/strlen_win32.c: Likewise.
4993 * testsuite/libffi.call/struct1.c: Likewise.
4994 * testsuite/libffi.call/struct2.c: Likewise.
4995 * testsuite/libffi.call/struct3.c: Likewise.
4996 * testsuite/libffi.call/struct4.c: Likewise.
4997 * testsuite/libffi.call/struct5.c: Likewise.
4998 * testsuite/libffi.call/struct6.c: Likewise.
4999 * testsuite/libffi.call/struct7.c: Likewise.
5000 * testsuite/libffi.call/struct8.c: Likewise.
5001 * testsuite/libffi.call/struct9.c: Likewise.
5002 * testsuite/libffi.special/special.exp: New file.
5003 * testsuite/libffi.special/ffitestcxx.h: Likewise.
5004 * testsuite/libffi.special/unwindtest.cc: Likewise.
5005
5006
5007 2003-08-13 Kaz Kojima <[email protected]>
5008
5009 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
5010 copyright years.
5011
5012 2003-08-02 Alan Modra <[email protected]>
5013
5014 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
5015 structure passing.
5016 (ffi_closure_helper_LINUX64): Likewise.
5017 * src/powerpc/linux64.S: Remove code writing to parm save area.
5018 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
5019 address in lr from ffi_closure_helper_LINUX64 call to calculate
5020 table address. Optimize function tail.
5021
5022 2003-07-28 Andreas Tobler <[email protected]>
5023
5024 * src/sparc/ffi.c: Handle all floating point registers.
5025 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
5026
5027 2003-07-11 Gerald Pfeifer <[email protected]>
5028
5029 * README: Note that libffi is not part of GCC. Update the project
5030 URL and status.
5031
5032 2003-06-19 Franz Sirl <[email protected]>
5033
5034 * src/powerpc/ppc_closure.S: Include ffi.h.
5035
5036 2003-06-13 Rainer Orth <[email protected]>
5037
5038 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
5039 Use C style comments.
5040
5041 2003-06-13 Kaz Kojima <[email protected]>
5042
5043 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
5044 * Makefile.in: Regenerate.
5045 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
5046 * configure: Regenerate.
5047 * include/ffi.h.in: Add SHmedia support.
5048 * src/sh64/ffi.c: New file.
5049 * src/sh64/sysv.S: New file.
5050
5051 2003-05-16 Jakub Jelinek <[email protected]>
5052
5053 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
5054 should be read-only.
5055 * configure: Rebuilt.
5056 * fficonfig.h.in: Rebuilt.
5057 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
5058 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
5059 * src/powerpc/linux64.S: Likewise.
5060 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
5061 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
5062 if -fpic/-fPIC/-mrelocatable.
5063 * src/powerpc/powerpc_closure.S: Likewise.
5064 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
5065 #write in .eh_frame flags.
5066 * src/sparc/v9.S: Likewise.
5067 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
5068 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
5069 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
5070
5071 2003-05-07 Jeff Sturm <[email protected]>
5072
5073 Fixes PR bootstrap/10656
5074 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
5075 support for .register pseudo-op.
5076 * src/sparc/v8.S: Use it.
5077 * fficonfig.h.in: Rebuilt.
5078 * configure: Rebuilt.
5079
5080 2003-04-18 Jakub Jelinek <[email protected]>
5081
5082 * include/ffi.h.in (POWERPC64): Define if 64-bit.
5083 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
5084 Make it the default on POWERPC64.
5085 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
5086 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
5087 * configure: Rebuilt.
5088 * src/powerpc/ffi.c (hidden): Define.
5089 (ffi_prep_args_SYSV): Renamed from
5090 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
5091 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
5092 ASM_NEEDS_REGISTERS64): New.
5093 (ffi_prep_args64): New function.
5094 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
5095 (ffi_call): Likewise.
5096 (ffi_prep_closure): Likewise.
5097 (flush_icache): Surround by #ifndef POWERPC64.
5098 (ffi_dblfl): New union type.
5099 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
5100 (ffi_closure_helper_LINUX64): New function.
5101 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
5102 __powerpc64__.
5103 * src/powerpc/sysv.S: Likewise.
5104 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
5105 * src/powerpc/linux64.S: New file.
5106 * src/powerpc/linux64_closure.S: New file.
5107 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
5108 src/powerpc/linux64_closure.S.
5109 (TARGET_SRC_POWERPC): Likewise.
5110
5111 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
5112 closure_test_fn3): Fix result printing on big-endian 64-bit
5113 machines.
5114 (main): Print tst2_arg instead of uninitialized tst2_result.
5115
5116 * src/ffitest.c (main): Hide what closure pointer really points to
5117 from the compiler.
5118
5119 2003-04-16 Richard Earnshaw <[email protected]>
5120
5121 * configure.in (arm-*-netbsdelf*): Add configuration.
5122 (configure): Regenerated.
5123
5124 2003-04-04 Loren J. Rittle <[email protected]>
5125
5126 * include/Makefile.in: Regenerate.
5127
5128 2003-03-21 Zdenek Dvorak <[email protected]>
5129
5130 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
5131 bit mode.
5132 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
5133 Receive closure pointer through parameter, read args using
5134 __builtin_dwarf_cfa.
5135 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
5136
5137 2003-03-12 Andreas Schwab <[email protected]>
5138
5139 * configure.in: Avoid trailing /. in toolexeclibdir.
5140 * configure: Rebuilt.
5141
5142 2003-03-03 Andreas Tobler <[email protected]>
5143
5144 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
5145
5146 2003-02-06 Andreas Tobler <[email protected]>
5147
5148 * libffi/src/powerpc/darwin_closure.S:
5149 Fix alignement bug, allocate 8 bytes for the result.
5150 * libffi/src/powerpc/aix_closure.S:
5151 Likewise.
5152 * libffi/src/powerpc/ffi_darwin.c:
5153 Update stackframe description for aix/darwin_closure.S.
5154
5155 2003-02-06 Jakub Jelinek <[email protected]>
5156
5157 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
5158 attribute.
5159
5160 2003-01-31 Christian Cornelssen <[email protected]>,
5161 Andreas Schwab <[email protected]>
5162
5163 * configure.in: Adjust command to source config-ml.in to account
5164 for changes to the libffi_basedir definition.
5165 (libffi_basedir): Remove ${srcdir} from value and include trailing
5166 slash if nonempty.
5167
5168 * configure: Regenerate.
5169
5170 2003-01-29 Franz Sirl <[email protected]>
5171
5172 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
5173
5174 2003-01-28 Andrew Haley <[email protected]>
5175
5176 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
5177 * src/x86/ffi64.c (ffi_prep_closure): New.
5178 (ffi_closure_UNIX64_inner): New.
5179 * src/x86/unix64.S (ffi_closure_UNIX64): New.
5180
5181 2003-01-27 Alexandre Oliva <[email protected]>
5182
5183 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
5184 Remove USE_LIBDIR conditional.
5185 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
5186 * Makefile.in, configure: Rebuilt.
5187
5188 2003-01027 David Edelsohn <[email protected]>
5189
5190 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
5191 * Makefile.in: Regenerate.
5192
5193 2003-01-22 Andrew Haley <[email protected]>
5194
5195 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
5196 unwind info.
5197
5198 2003-01-21 Andreas Tobler <[email protected]>
5199
5200 * src/powerpc/darwin.S: Add unwind info.
5201 * src/powerpc/darwin_closure.S: Likewise.
5202
5203 2003-01-14 Andrew Haley <[email protected]>
5204
5205 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
5206 (ffi_prep_cif_machdep): Likewise.
5207 * src/x86/unix64.S: Add unwind info.
5208
5209 2003-01-14 Andreas Jaeger <[email protected]>
5210
5211 * src/ffitest.c (main): Only use ffi_closures if those are
5212 supported.
5213
5214 2003-01-13 Andreas Tobler <[email protected]>
5215
5216 * libffi/src/ffitest.c
5217 add closure testcases
5218
5219 2003-01-13 Kevin B. Hendricks <[email protected]>
5220
5221 * libffi/src/powerpc/ffi.c
5222 fix alignment bug for float (4 byte aligned iso 8 byte)
5223
5224 2003-01-09 Geoffrey Keating <[email protected]>
5225
5226 * src/powerpc/ffi_darwin.c: Remove RCS version string.
5227 * src/powerpc/darwin.S: Remove RCS version string.
5228
5229 2003-01-03 Jeff Sturm <[email protected]>
5230
5231 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
5232 * src/ffitest.c (main): Use static storage for closure.
5233 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
5234 * src/sparc/v8.S (ffi_closure_v8): New.
5235 * src/sparc/v9.S (ffi_closure_v9): New.
5236
5237 2002-11-10 Ranjit Mathew <[email protected]>
5238
5239 * include/ffi.h.in: Added FFI_STDCALL ffi_type
5240 enumeration for X86_WIN32.
5241 * src/x86/win32.S: Added ffi_call_STDCALL function
5242 definition.
5243 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
5244 switch cases for recognising FFI_STDCALL and
5245 calling ffi_call_STDCALL if target is X86_WIN32.
5246 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
5247 stdcall versions of the "my_strlen" and "many"
5248 test functions (for X86_WIN32).
5249 Added test cases to test stdcall invocation using
5250 these functions.
5251
5252 2002-12-02 Kaz Kojima <[email protected]>
5253
5254 * src/sh/sysv.S: Add DWARF2 unwind info.
5255
5256 2002-11-27 Ulrich Weigand <[email protected]>
5257
5258 * src/s390/sysv.S (.eh_frame section): Make section read-only.
5259
5260 2002-11-26 Jim Wilson <[email protected]>
5261
5262 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
5263
5264 2002-11-23 H.J. Lu <[email protected]>
5265
5266 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
5267 Include ../config/accross.m4.
5268 * aclocal.m4; Rebuild.
5269 * configure: Likewise.
5270
5271 2002-11-15 Ulrich Weigand <[email protected]>
5272
5273 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
5274
5275 2002-11-11 DJ Delorie <[email protected]>
5276
5277 * configure.in: Look for common files in the right place.
5278
5279 2002-10-08 Ulrich Weigand <[email protected]>
5280
5281 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
5282 raw data as _Jv_word values, not ffi_raw.
5283 (ffi_java_ptrarray_to_raw): Likewise.
5284 (ffi_java_rvalue_to_raw): New function.
5285 (ffi_java_raw_call): Call it.
5286 (ffi_java_raw_to_rvalue): New function.
5287 (ffi_java_translate_args): Call it.
5288 * src/ffitest.c (closure_test_fn): Interpret return value
5289 as ffi_arg, not int.
5290 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
5291 FFI_TYPE_POINTER case.
5292 (ffi_closure_helper_SYSV): Likewise. Also, assume return
5293 values extended to word size.
5294
5295 2002-10-02 Andreas Jaeger <[email protected]>
5296
5297 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
5298
5299 2002-10-01 Bo Thorsen <[email protected]>
5300
5301 * include/ffi.h.in: Fix i386 win32 compilation.
5302
5303 2002-09-30 Ulrich Weigand <[email protected]>
5304
5305 * configure.in: Add s390x-*-linux-* target.
5306 * configure: Regenerate.
5307 * include/ffi.h.in: Define S390X for s390x targets.
5308 (FFI_CLOSURES): Define for s390/s390x.
5309 (FFI_TRAMPOLINE_SIZE): Likewise.
5310 (FFI_NATIVE_RAW_API): Likewise.
5311 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
5312 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
5313 * src/s390/ffi.c: Major rework of existing code. Add support for
5314 s390x targets. Add closure support.
5315 * src/s390/sysv.S: Likewise.
5316
5317 2002-09-29 Richard Earnshaw <[email protected]>
5318
5319 * src/arm/sysv.S: Fix typo.
5320
5321 2002-09-28 Richard Earnshaw <[email protected]>
5322
5323 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
5324 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
5325 (ffi_call_SYSV): Handle soft-float.
5326
5327 2002-09-27 Bo Thorsen <[email protected]>
5328
5329 * include/ffi.h.in: Fix multilib x86-64 support.
5330
5331 2002-09-22 Kaveh R. Ghazi <[email protected]>
5332
5333 * Makefile.am (all-multi): Fix multilib parallel build.
5334
5335 2002-07-19 Kaz Kojima <[email protected]>
5336
5337 * configure.in (sh[34]*-*-linux*): Add brackets.
5338 * configure: Regenerate.
5339
5340 2002-07-18 Kaz Kojima <[email protected]>
5341
5342 * Makefile.am: Add SH support.
5343 * Makefile.in: Regenerate.
5344 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
5345 * configure: Regenerate.
5346 * include/ffi.h.in: Add SH support.
5347 * src/sh/ffi.c: New file.
5348 * src/sh/sysv.S: New file.
5349 * src/types.c: Add SH support.
5350
5351 2002-07-16 Bo Thorsen <[email protected]>
5352
5353 * src/x86/ffi64.c: New file that adds x86-64 support.
5354 * src/x86/unix64.S: New file that handles argument setup for
5355 x86-64.
5356 * src/x86/sysv.S: Don't use this on x86-64.
5357 * src/x86/ffi.c: Don't use this on x86-64.
5358 Remove unused vars.
5359 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
5360 for x86-64.
5361 * src/ffitest.c (struct6): New test that tests a special case in
5362 the x86-64 ABI.
5363 (struct7): Likewise.
5364 (struct8): Likewise.
5365 (struct9): Likewise.
5366 (closure_test_fn): Silence warning about this when it's not used.
5367 (main): Add the new tests.
5368 (main): Fix a couple of wrong casts and silence some compiler warnings.
5369 * include/ffi.h.in: Add x86-64 ABI definition.
5370 * fficonfig.h.in: Regenerate.
5371 * Makefile.am: Add x86-64 support.
5372 * configure.in: Likewise.
5373 * Makefile.in: Regenerate.
5374 * configure: Likewise.
5375
5376 2002-06-24 Bo Thorsen <[email protected]>
5377
5378 * src/types.c: Merge settings for similar architectures.
5379 Add x86-64 sizes and alignments.
5380
5381 2002-06-23 Bo Thorsen <[email protected]>
5382
5383 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
5384 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
5385 * src/mips/ffi.c (ffi_prep_args): Likewise.
5386 * src/m68k/ffi.c (ffi_prep_args): Likewise.
5387
5388 2002-07-18 H.J. Lu ([email protected])
5389
5390 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
5391 (libffi_la_SOURCES): Support MIPS_LINUX.
5392 (libffi_convenience_la_SOURCES): Likewise.
5393 * Makefile.in: Regenerated.
5394
5395 * configure.in (mips64*-*): Skip.
5396 (mips*-*-linux*): New.
5397 * configure: Regenerated.
5398
5399 * src/mips/ffi.c: Include <sgidefs.h>.
5400
5401 2002-06-06 Ulrich Weigand <[email protected]>
5402
5403 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
5404
5405 2002-05-27 Roger Sayle <[email protected]>
5406
5407 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
5408
5409 2002-05-27 Bo Thorsen <[email protected]>
5410
5411 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
5412 fix formatting.
5413
5414 2002-05-13 Andreas Tobler <[email protected]>
5415
5416 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
5417 beginning of function (for older apple cc).
5418
5419 2002-05-08 Alexandre Oliva <[email protected]>
5420
5421 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5422 script entry, and set LD to it when configuring multilibs.
5423 * configure: Rebuilt.
5424
5425 2002-05-05 Jason Thorpe <[email protected]>
5426
5427 * configure.in (sparc64-*-netbsd*): Add target.
5428 (sparc-*-netbsdelf*): Likewise.
5429 * configure: Regenerate.
5430
5431 2002-04-28 David S. Miller <[email protected]>
5432
5433 * configure.in, configure: Fix SPARC test in previous change.
5434
5435 2002-04-29 Gerhard Tonn <[email protected]>
5436
5437 * Makefile.am: Add Linux for S/390 support.
5438 * Makefile.in: Regenerate.
5439 * configure.in: Add Linux for S/390 support.
5440 * configure: Regenerate.
5441 * include/ffi.h.in: Add Linux for S/390 support.
5442 * src/s390/ffi.c: New file from libffi CVS tree.
5443 * src/s390/sysv.S: New file from libffi CVS tree.
5444
5445 2002-04-28 Jakub Jelinek <[email protected]>
5446
5447 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
5448 %r_disp32().
5449 * src/sparc/v8.S: Use it.
5450 * src/sparc/v9.S: Likewise.
5451 * fficonfig.h.in: Rebuilt.
5452 * configure: Rebuilt.
5453
5454 2002-04-08 Hans Boehm <[email protected]>
5455
5456 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
5457 correctly.
5458 * src/ia64/unix.S: Add unwind information. Fix comments.
5459 Save sp in a way that's compatible with unwind info.
5460 (ffi_call_unix): Correctly restore sp in all cases.
5461 * src/ia64/ffi.c: Add, fix comments.
5462
5463 2002-04-08 Jakub Jelinek <[email protected]>
5464
5465 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
5466
5467 2002-04-06 Jason Thorpe <[email protected]>
5468
5469 * configure.in (alpha*-*-netbsd*): Add target.
5470 * configure: Regenerate.
5471
5472 2002-04-04 Jeff Sturm <[email protected]>
5473
5474 * src/sparc/v8.S: Add unwind info.
5475 * src/sparc/v9.S: Likewise.
5476
5477 2002-03-30 Krister Walfridsson <[email protected]>
5478
5479 * configure.in: Enable i*86-*-netbsdelf*.
5480 * configure: Rebuilt.
5481
5482 2002-03-29 David Billinghurst <[email protected]>
5483
5484 PR other/2620
5485 * src/mips/n32.s: Delete
5486 * src/mips/o32.s: Delete
5487
5488 2002-03-21 Loren J. Rittle <[email protected]>
5489
5490 * configure.in: Enable alpha*-*-freebsd*.
5491 * configure: Rebuilt.
5492
5493 2002-03-17 Bryce McKinlay <[email protected]>
5494
5495 * Makefile.am: libfficonvenience -> libffi_convenience.
5496 * Makefile.in: Rebuilt.
5497
5498 * Makefile.am: Define ffitest_OBJECTS.
5499 * Makefile.in: Rebuilt.
5500
5501 2002-03-07 Andreas Tobler <[email protected]>
5502 David Edelsohn <[email protected]>
5503
5504 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
5505 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
5506 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
5507 * Makefile.in: Regenerate.
5508 * include/ffi.h.in: Add AIX and Darwin closure definitions.
5509 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
5510 (flush_icache, flush_range): New functions.
5511 (ffi_closure_helper_DARWIN): New function.
5512 * src/powerpc/aix_closure.S: New file.
5513 * src/powerpc/darwin_closure.S: New file.
5514
5515 2002-02-24 Jeff Sturm <[email protected]>
5516
5517 * include/ffi.h.in: Add typedef for ffi_arg.
5518 * src/ffitest.c (main): Declare rint with ffi_arg.
5519
5520 2002-02-21 Andreas Tobler <[email protected]>
5521
5522 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
5523 number of GPRs for floating-point arguments.
5524
5525 2002-01-31 Anthony Green <[email protected]>
5526
5527 * configure: Rebuilt.
5528 * configure.in: Replace CHECK_SIZEOF and endian tests with
5529 cross-compiler friendly macros.
5530 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
5531 macros.
5532
5533 2002-01-18 David Edelsohn <[email protected]>
5534
5535 * src/powerpc/darwin.S (_ffi_call_AIX): New.
5536 * src/powerpc/aix.S (ffi_call_DARWIN): New.
5537
5538 2002-01-17 David Edelsohn <[email protected]>
5539
5540 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
5541 (TARGET_SRC_POWERPC_AIX): New.
5542 (POWERPC_AIX): New stanza.
5543 * Makefile.in: Regenerate.
5544 * configure.in: Add AIX case.
5545 * configure: Regenerate.
5546 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
5547 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
5548 size. Fix "long double" support.
5549 (ffi_call): Add FFI_AIX case.
5550 * src/powerpc/aix.S: New.
5551
5552 2001-10-09 John Hornkvist <[email protected]>
5553
5554 Implement Darwin PowerPC ABI.
5555 * configure.in: Handle powerpc-*-darwin*.
5556 * Makefile.am: Set source files for POWERPC_DARWIN.
5557 * configure: Rebuilt.
5558 * Makefile.in: Rebuilt.
5559 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
5560 POWERPC_DARWIN.
5561 * src/powerpc/darwin.S: New file.
5562 * src/powerpc/ffi_darwin.c: New file.
5563
5564 2001-10-07 Joseph S. Myers <[email protected]>
5565
5566 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
5567
5568 2001-07-16 Rainer Orth <[email protected]>
5569
5570 * src/x86/sysv.S: Avoid gas-only .balign directive.
5571 Use C style comments.
5572
5573 2001-07-16 Rainer Orth <[email protected]>
5574
5575 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
5576 Fixes PR bootstrap/3563.
5577
5578 2001-06-26 Rainer Orth <[email protected]>
5579
5580 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
5581
5582 2001-06-25 Rainer Orth <[email protected]>
5583
5584 * configure.in: Recognize sparc*-sun-* host.
5585 * configure: Regenerate.
5586
5587 2001-06-06 Andrew Haley <[email protected]>
5588
5589 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
5590
5591 2001-06-03 Andrew Haley <[email protected]>
5592
5593 * src/alpha/osf.S: Add unwind info.
5594 * src/powerpc/sysv.S: Add unwind info.
5595 * src/powerpc/ppc_closure.S: Likewise.
5596
5597 2000-05-31 Jeff Sturm <[email protected]>
5598
5599 * configure.in: Fix AC_ARG_ENABLE usage.
5600 * configure: Rebuilt.
5601
5602 2001-05-06 Bryce McKinlay <[email protected]>
5603
5604 * configure.in: Remove warning about beta code.
5605 * configure: Rebuilt.
5606
5607 2001-04-25 Hans Boehm <[email protected]>
5608
5609 * src/ia64/unix.S: Restore stack pointer when returning from
5610 ffi_closure_UNIX.
5611 * src/ia64/ffi.c: Fix typo in comment.
5612
5613 2001-04-18 Jim Wilson <[email protected]>
5614
5615 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
5616 to eliminate RAW DV.
5617
5618 2001-04-12 Bryce McKinlay <[email protected]>
5619
5620 * Makefile.am: Make a libtool convenience library.
5621 * Makefile.in: Rebuilt.
5622
5623 2001-03-29 Bryce McKinlay <[email protected]>
5624
5625 * configure.in: Use different syntax for subdirectory creation.
5626 * configure: Rebuilt.
5627
5628 2001-03-27 Jon Beniston <[email protected]>
5629
5630 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
5631 * configure: Rebuilt.
5632 * Makefile.am: Added X86_WIN32 target support.
5633 * Makefile.in: Rebuilt.
5634
5635 * include/ffi.h.in: Added X86_WIN32 target support.
5636
5637 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
5638 * src/types.c: Added X86_WIN32 target support.
5639
5640 * src/x86/win32.S: New file. Based on sysv.S, but with EH
5641 stuff removed and made to work with CygWin's gas.
5642
5643 2001-03-26 Bryce McKinlay <[email protected]>
5644
5645 * configure.in: Make target subdirectory in build dir.
5646 * Makefile.am: Override suffix based rules to specify correct output
5647 subdirectory.
5648 * Makefile.in: Rebuilt.
5649 * configure: Rebuilt.
5650
5651 2001-03-23 Kevin B Hendricks <[email protected]>
5652
5653 * src/powerpc/ppc_closure.S: New file.
5654 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
5655 involving long long and register pairs.
5656 (ffi_prep_closure): New function.
5657 (flush_icache): Likewise.
5658 (ffi_closure_helper_SYSV): Likewise.
5659 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
5660 (FFI_TRAMPOLINE_SIZE): Likewise.
5661 (FFI_NATIVE_RAW_API): Likewise.
5662 * Makefile.in: Rebuilt.
5663 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
5664 (TARGET_SRC_POWERPC): Likewise.
5665
5666 2001-03-19 Tom Tromey <[email protected]>
5667
5668 * Makefile.in: Rebuilt.
5669 * Makefile.am (ffitest_LDFLAGS): New macro.
5670
5671 2001-03-02 Nick Clifton <[email protected]>
5672
5673 * include/ffi.h.in: Remove RCS ident string.
5674 * include/ffi_mips.h: Remove RCS ident string.
5675 * src/debug.c: Remove RCS ident string.
5676 * src/ffitest.c: Remove RCS ident string.
5677 * src/prep_cif.c: Remove RCS ident string.
5678 * src/types.c: Remove RCS ident string.
5679 * src/alpha/ffi.c: Remove RCS ident string.
5680 * src/alpha/osf.S: Remove RCS ident string.
5681 * src/arm/ffi.c: Remove RCS ident string.
5682 * src/arm/sysv.S: Remove RCS ident string.
5683 * src/mips/ffi.c: Remove RCS ident string.
5684 * src/mips/n32.S: Remove RCS ident string.
5685 * src/mips/o32.S: Remove RCS ident string.
5686 * src/sparc/ffi.c: Remove RCS ident string.
5687 * src/sparc/v8.S: Remove RCS ident string.
5688 * src/sparc/v9.S: Remove RCS ident string.
5689 * src/x86/ffi.c: Remove RCS ident string.
5690 * src/x86/sysv.S: Remove RCS ident string.
5691
5692 2001-02-08 Joseph S. Myers <[email protected]>
5693
5694 * include/ffi.h.in: Change sourceware.cygnus.com references to
5695 gcc.gnu.org.
5696
5697 2000-12-09 Richard Henderson <[email protected]>
5698
5699 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
5700 (ffi_closure_osf_inner): Index rather than increment avalue
5701 and arg_types. Give ffi_closure_osf the raw return value type.
5702 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
5703 promotion.
5704
5705 2000-12-07 Richard Henderson <[email protected]>
5706
5707 * src/raw_api.c (ffi_translate_args): Fix typo.
5708 (ffi_prep_closure): Likewise.
5709
5710 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
5711 FFI_TRAMPOLINE_SIZE.
5712 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
5713 cif->bytes for new ffi_call_osf implementation.
5714 (ffi_prep_args): Absorb into ...
5715 (ffi_call): ... here. Do all stack allocation here and
5716 avoid a callback function.
5717 (ffi_prep_closure, ffi_closure_osf_inner): New.
5718 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
5719 (ffi_closure_osf): New.
5720
5721 2000-09-10 Alexandre Oliva <[email protected]>
5722
5723 * config.guess, config.sub, install-sh: Removed.
5724 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
5725 * Makefile.in: Rebuilt.
5726
5727 * acinclude.m4: Include libtool macros from the top level.
5728 * aclocal.m4, configure: Rebuilt.
5729
5730 2000-08-22 Alexandre Oliva <[email protected]>
5731
5732 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
5733 * configure: Rebuilt.
5734
5735 2000-05-11 Scott Bambrough <[email protected]>
5736
5737 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
5738 memory correctly. Use conditional instructions, not branches where
5739 possible.
5740
5741 2000-05-04 Tom Tromey <[email protected]>
5742
5743 * configure: Rebuilt.
5744 * configure.in: Match `arm*-*-linux-*'.
5745 From Chris Dornan <[email protected]>.
5746
5747 2000-04-28 Jakub Jelinek <[email protected]>
5748
5749 * Makefile.am (SUBDIRS): Define.
5750 (AM_MAKEFLAGS): Likewise.
5751 (Multilib support.): Add section.
5752 * Makefile.in: Rebuilt.
5753 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
5754 New variables. Set for gcc using -print-multi-lib. Export them
5755 to libtool.
5756 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
5757 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
5758 for -shared links.
5759 (extra_compiler_flags_value, extra_compiler_flags): Check these
5760 for extra compiler options which need to be passed down in
5761 compiler_flags.
5762
5763 2000-04-16 Anthony Green <[email protected]>
5764
5765 * configure: Rebuilt.
5766 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
5767
5768 2000-04-14 Jakub Jelinek <[email protected]>
5769
5770 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
5771 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
5772 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
5773 Replace all void * sizeofs with sizeof(int).
5774 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
5775 different than DOUBLE.
5776 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
5777 (ffi_prep_args_v9): New function.
5778 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
5779 (ffi_V9_return_struct): New function.
5780 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
5781 32bit code (not yet cross-arch calls).
5782 * src/sparc/v8.S: Add struct return delay nop.
5783 Handle long long.
5784 * src/sparc/v9.S: New file.
5785 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
5786 is used on sparc64 only for structures larger than 32 bytes.
5787 Pass by reference for structures is done for structure arguments
5788 larger than 16 bytes.
5789 * src/ffitest.c (main): Use 64bit rint on sparc64.
5790 Run long long tests on sparc.
5791 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
5792 sparc64.
5793 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
5794 on sparc64.
5795 * configure.in (sparc-*-linux*): New supported target.
5796 (sparc64-*-linux*): Likewise.
5797 * configure: Rebuilt.
5798 * Makefile.am: Add v9.S to SPARC files.
5799 * Makefile.in: Likewise.
5800 (LINK): Surround $(CCLD) into double quotes, so that multilib
5801 compiles work correctly.
5802
5803 2000-04-04 Alexandre Petit-Bianco <[email protected]>
5804
5805 * configure: Rebuilt.
5806 * configure.in: (i*86-*-solaris*): New libffi target. Patch
5807 proposed by Bryce McKinlay.
5808
5809 2000-03-20 Tom Tromey <[email protected]>
5810
5811 * Makefile.in: Hand edit for java_raw_api.lo.
5812
5813 2000-03-08 Bryce McKinlay <[email protected]>
5814
5815 * config.guess, config.sub: Update from the gcc tree.
5816 Fix for PR libgcj/168.
5817
5818 2000-03-03 Tom Tromey <[email protected]>
5819
5820 * Makefile.in: Fixed ia64 by hand.
5821
5822 * configure: Rebuilt.
5823 * configure.in (--enable-multilib): New option.
5824 (libffi_basedir): New subst.
5825 (AC_OUTPUT): Added multilib code.
5826
5827 2000-03-02 Tom Tromey <[email protected]>
5828
5829 * Makefile.in: Rebuilt.
5830 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
5831 directory name.
5832
5833 2000-02-25 Hans Boehm <[email protected]>
5834
5835 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
5836 files.
5837 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
5838 list.
5839 (ffi_prep_raw_closure): Use ffi_translate_args, not
5840 ffi_closure_translate.
5841 * src/java_raw_api.c: New file.
5842 * src/ffitest.c (closure_test_fn): New function.
5843 (main): Define `rint' as long long on IA64. Added new test when
5844 FFI_CLOSURES is defined.
5845 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
5846 (ffi_abi): Recognize IA64.
5847 (ffi_raw): Added `flt' field.
5848 Added "Java raw API" code.
5849 * configure.in: Recognize ia64.
5850 * Makefile.am (TARGET_SRC_IA64): New macro.
5851 (libffi_la_common_SOURCES): Added java_raw_api.c.
5852 (libffi_la_SOURCES): Define in IA64 case.
5853
5854 2000-01-04 Tom Tromey <[email protected]>
5855
5856 * Makefile.in: Rebuilt with newer automake.
5857
5858 1999-12-31 Tom Tromey <[email protected]>
5859
5860 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
5861
5862 1999-09-01 Tom Tromey <[email protected]>
5863
5864 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
5865 undefs.
5866 * fficonfig.h.in: Rebuilt.
5867 * configure: Rebuilt.
5868 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
5869 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
5870 * acconfig.h: Don't #undef PACKAGE or VERSION.
5871
5872 1999-08-09 Anthony Green <[email protected]>
5873
5874 * include/ffi.h.in: Try to work around messy header problem
5875 with PACKAGE and VERSION.
5876
5877 * configure: Rebuilt.
5878 * configure.in: Change version to 2.00-beta.
5879
5880 * fficonfig.h.in: Rebuilt.
5881 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
5882
5883 * src/x86/ffi.c (ffi_raw_call): Rename.
5884
5885 1999-08-02 Kresten Krab Thorup <[email protected]>
5886
5887 * src/x86/ffi.c (ffi_closure_SYSV): New function.
5888 (ffi_prep_incoming_args_SYSV): Ditto.
5889 (ffi_prep_closure): Ditto.
5890 (ffi_closure_raw_SYSV): Ditto.
5891 (ffi_prep_raw_closure): More ditto.
5892 (ffi_call_raw): Final ditto.
5893
5894 * include/ffi.h.in: Add definitions for closure and raw API.
5895
5896 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
5897 FFI_TYPE_UINT64.
5898
5899 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
5900
5901 * src/raw_api.c: New file.
5902
5903 * include/ffi.h.in (ffi_raw): New type.
5904 (UINT_ARG, SINT_ARG): New defines.
5905 (ffi_closure, ffi_raw_closure): New types.
5906 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
5907
5908 * configure.in: Add check for endianness and sizeof void*.
5909
5910 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
5911 instead of directly.
5912
5913 * configure: Rebuilt.
5914
5915 Thu Jul 8 14:28:42 1999 Anthony Green <[email protected]>
5916
5917 * configure.in: Add x86 and powerpc BeOS configurations.
5918 From Makoto Kato <[email protected]>.
5919
5920 1999-05-09 Anthony Green <[email protected]>
5921
5922 * configure.in: Add warning about this being beta code.
5923 Remove src/Makefile.am from the picture.
5924 * configure: Rebuilt.
5925
5926 * Makefile.am: Move logic from src/Makefile.am. Add changes
5927 to support libffi as a target library.
5928 * Makefile.in: Rebuilt.
5929
5930 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
5931 Upgraded to new autoconf, automake, libtool.
5932
5933 * README: Tweaks.
5934
5935 * LICENSE: Update copyright date.
5936
5937 * src/Makefile.am, src/Makefile.in: Removed.
5938
5939 1998-11-29 Anthony Green <[email protected]>
5940
5941 * include/ChangeLog: Removed.
5942 * src/ChangeLog: Removed.
5943 * src/mips/ChangeLog: Removed.
5944 * src/sparc/ChangeLog: Remboved.
5945 * src/x86/ChangeLog: Removed.
5946
5947 * ChangeLog.v1: Created.