blob: 2547ad38576f128f60a2efc66d55d84852144784 [file] [log] [blame]
Anthony Greend14178b2010-07-23 09:14:00 -040012010-07-22 Dan Witte <dwitte@mozilla.com>
2
3 * src/*/ffitarget.h: Make FFI_LAST_ABI one past the last valid ABI.
4 * src/prep_cif.c: Fix ABI assertion.
5 * src/cris/ffi.c: Ditto.
6
Anthony Greeneaf444e2010-07-10 08:59:09 -040072010-07-10 Evan Phoenix <evan@fallingsnow.net>
8
9 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
10
Anthony Green63097412010-05-05 20:14:56 -0400112010-05-05 Michael Kohler <michaelkohler@live.com>
12
13 * src/dlmalloc.c (dlfree): Fix spelling.
14 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
15 * configure.ac: Ditto.
16 * configure: Rebuilt.
17
Anthony Greenf2c2a4f2010-04-13 10:19:28 -0400182010-04-13 Dan Witte <dwitte@mozilla.com>
19
20 * msvcc.sh: Build with -W3 instead of -Wall.
21 * src/powerpc/ffi_darwin.c: Remove build warnings.
22 * src/x86/ffi.c: Ditto.
23 * src/x86/ffitarget.h: Ditto.
24
Anthony Greenc0b69e52010-03-30 08:30:22 -0400252010-03-30 Dan Witte <dwitte@mozilla.com>
26
27 * msvcc.sh: Disable build warnings.
28 * README (tested): Clarify windows build procedure.
29
Anthony Green3de1eb32010-03-15 05:57:24 -0400302010-03-14 Matthias Klose <doko@ubuntu.com>
31
32 * src/x86/ffi64.c: Fix typo in comment.
33 * src/x86/ffi.c: Use /* ... */ comment style.
34
Anthony Green3f5b1372010-07-12 14:39:18 -0400352010-07-07 Neil Roberts <neil@linux.intel.com>
36
37 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
38 16-bytes.
39
402010-07-02 Jakub Jelinek <jakub@redhat.com>
41
42 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
43 * Makefile.in: Regenerated.
44
452010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46
47 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
48 output, too.
49 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
50 (libffi_cv_as_string_pseudo_op): Check for .string.
51 * configure: Regenerate.
52 * fficonfig.h.in: Regenerate.
53 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
54
552010-04-07 Jakub Jelinek <jakub@redhat.com>
56
57 * regex.c (byte_re_match_2_internal): Avoid set but not used
58 warning.
59
602010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61
62 * Makefile.in: Regenerate.
63 * aclocal.m4: Regenerate.
64 * include/Makefile.in: Regenerate.
65 * man/Makefile.in: Regenerate.
66 * testsuite/Makefile.in: Regenerate.
67
682010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
69
70 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
71 * configure: Regenerate.
72 * fficonfig.h.in: Regenerate.
73 * libffi/src/x86/unix64.S (.eh_frame)
74 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
75
Anthony Green9dc9a292010-04-13 10:33:52 -0400762010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
77
78 * doc/libffi.texi (The Closure API): Fix typo.
79 * doc/libffi.info: Remove.
80
812010-02-15 Matthias Klose <doko@ubuntu.com>
82
83 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
84 __ARM_ARCH_7EM__.
85
Anthony Green7b7a42f2010-01-12 09:14:14 -0500862010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
87
88 PR libffi/40701
89 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
90 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
91 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
92 alpha*-dec-osf*.
93 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
94 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
95 * testsuite/libffi.call/return_ll1.c: Likewise.
96 * testsuite/libffi.call/stret_medium2.c: Likewise.
97 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
98 MAP_FAILED to char *.
99
1002010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101
102 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
103
Anthony Greenc3042af2010-01-01 08:08:02 -05001042009-12-31 Anthony Green <green@redhat.com>
105
106 * README: Update for libffi 3.0.9.
107
1082009-12-27 Matthias Klose <doko@ubuntu.com>
109
110 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
111 appropriate.
112 * configure: Rebuilt.
113
1142009-12-26 Anthony Green <green@redhat.com>
115
116 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
117 avr32*-*-*.
118 * testsuite/libffi.call/cls_double_va.c: Ditto.
119
1202009-12-26 Andreas Tobler <a.tobler@schweiz.org>
121
122 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
123 and inttypes.h.
124 * testsuite/libffi.special/unwindtest.cc: Ditto.
125
1262009-12-26 Andreas Tobler <a.tobler@schweiz.org>
127
128 * configure.ac: Add amd64-*-openbsd*.
129 * configure: Rebuilt.
130 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
131 openbsd programs with -lpthread.
132
1332009-12-26 Anthony Green <green@redhat.com>
134
135 * testsuite/libffi.call/cls_double_va.c,
136 testsuite/libffi.call/cls_longdouble.c,
137 testsuite/libffi.call/cls_longdouble_va.c,
138 testsuite/libffi.call/cls_pointer.c,
139 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
140 mips*-*-* and arm*-*-*.
141 * testsuite/libffi.call/cls_align_longdouble_split.c,
142 testsuite/libffi.call/cls_align_longdouble_split2.c,
143 testsuite/libffi.call/stret_medium2.c,
144 testsuite/libffi.call/stret_medium.c,
145 testsuite/libffi.call/stret_large.c,
146 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
147
1482009-12-31 Kay Tietz <ktietz70@googlemail.com>
149
150 * testsuite/libffi.call/ffitest.h,
151 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
152 definitions.
153
1542009-12-31 Carlo Bramini <carlo.bramix@libero.it>
155
156 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
157 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
158 * configure: Rebuilt.
159 * Makefile.in: Rebuilt.
160
1612009-12-31 Anthony Green <green@redhat.com>
162 Blake Chaffin.
163
164 * testsuite/libffi.call/huge_struct.c: New test case from Blake
165 Chaffin @ Apple.
166
Anthony Green0cfe60e2009-12-29 10:06:04 -05001672009-12-28 David Edelsohn <edelsohn@gnu.org>
168
169 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
170 local variables.
171 (aix_adjust_aggregate_sizes): New function.
172 (ffi_prep_cif_machdep): Call it.
173
1742009-12-26 Andreas Tobler <a.tobler@schweiz.org>
175
176 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
177 * configure: Regenerate.
178 * fficonfig.h.in: Likewise.
179 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
180 Solaris/x86.
181
1822009-12-26 Andreas Schwab <schwab@linux-m68k.org>
183
184 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
185 when a float arguments is passed in memory.
186 (ffi_closure_helper_SYSV): Mark general registers as used up when
187 a 64bit or soft-float long double argument is passed in memory.
188
Anthony Green9458d882009-12-26 07:02:27 -05001892009-12-25 Matthias Klose <doko@ubuntu.com>
190
191 * man/ffi_call.3: Fix #include in examples.
192 * doc/libffi.texi: Add dircategory.
193
1942009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
195
196 * include/ffi.h.in: Placed '__GNUC__' ifdef around
197 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
198 IRIX MIPSPro c99.
199 * include/ffi_common.h: Added '__sgi' define to non
200 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -0500201 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -0500202 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
203 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
204 FFI_LONGDOUBLE support and alignment(N32 only).
205 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
206 fixed non '__attribute__((__mode__()))' integer typedefs.
207 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
208 since they are Linux/GNU Assembler specific.
209
2102009-12-25 Bradley Smith <brad@brad-smith.co.uk>
211
212 * configure.ac, Makefile.am, src/avr32/ffi.c,
213 src/avr32/ffitarget.h,
214 src/avr32/sysv.S: Add AVR32 port.
215 * configure, Makefile.in: Rebuilt.
216
Anthony Green115ab362009-12-24 00:22:00 -05002172009-12-21 Andreas Tobler <a.tobler@schweiz.org>
218
219 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
220 * configure: Regenerate.
221
2222009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
223
224 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
225
2262009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
227
228 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
229 type on HP-UX.
230
2312009-12-11 Eric Botcazou <ebotcazou@adacore.com>
232
233 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
234 double' arguments.
235
2362009-12-11 Eric Botcazou <ebotcazou@adacore.com>
237
238 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
239
2402009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241
242 PR libffi/40700
243 * src/closures.c [X86_64 && __sun__ && __svr4__]
244 (FFI_MMAP_EXEC_WRIT): Define.
245
2462009-12-08 David Daney <ddaney@caviumnetworks.com>
247
248 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
249 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
250 * testsuite/libffi.call/stret_large.c: Same.
251 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
252 * testsuite/libffi.call/stret_large2.c: Same.
253 * testsuite/libffi.call/stret_medium2.c: Same.
254
2552009-12-07 David Edelsohn <edelsohn@gnu.org>
256
257 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
258 typo.
259
2602009-12-05 David Edelsohn <edelsohn@gnu.org>
261
262 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
263 code.
264 * src/powerpc/aix_closure.S: Same.
265
2662009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
267
268 * Makefile.in: Regenerate.
269 * configure: Regenerate.
270 * include/Makefile.in: Regenerate.
271 * man/Makefile.in: Regenerate.
272 * testsuite/Makefile.in: Regenerate.
273
2742009-12-04 David Edelsohn <edelsohn@gnu.org>
275
276 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -0500277 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -0500278
2792009-12-04 Uros Bizjak <ubizjak@gmail.com>
280
281 PR libffi/41908
282 * src/x86/ffi64.c (classify_argument): Update from
283 gcc/config/i386/i386.c.
284 (ffi_closure_unix64_inner): Do not use the address of two consecutive
285 SSE registers directly.
286 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
287 for x86_64 linux targets.
288
2892009-12-04 David Edelsohn <edelsohn@gnu.org>
290
291 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
292 pfr for long double split between fpr13 and stack.
293
2942009-12-03 David Edelsohn <edelsohn@gnu.org>
295
296 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
297 fparg_count twice for long double.
298
2992009-12-03 David Edelsohn <edelsohn@gnu.org>
300
301 PR libffi/42243
302 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
303
3042009-12-03 Uros Bizjak <ubizjak@gmail.com>
305
306 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
307 Remove xfails for x86 linux targets.
308
3092009-12-02 David Edelsohn <edelsohn@gnu.org>
310
311 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
312 case.
313
3142009-12-01 David Edelsohn <edelsohn@gnu.org>
315
316 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
317 register usage. Call ffi_prep_args directly. Add long double
318 return value support.
319 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
320 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
321 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
322 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
323 mode.
324 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
325 into case.
326 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
327 Allocate result area between params and FPRs.
328
3292009-11-30 David Edelsohn <edelsohn@gnu.org>
330
331 PR target/35484
332 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
333 AIX64.
334 * src/powerpc/aix.S: Implement AIX64 version.
335 * src/powerpc/aix_closure.S: Implement AIX64 version.
336 (ffi_closure_ASM): Use extsb, lha and displament addresses.
337 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
338 support.
339 (ffi_prep_cif_machdep): Same.
340 (ffi_call): Same.
341 (ffi_closure_helper_DARWIN): Same.
342
3432009-11-02 Andreas Tobler <a.tobler@schweiz.org>
344
345 PR libffi/41908
346 * testsuite/libffi.call/testclosure.c: New test.
347
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003482009-09-28 Kai Tietz <kai.tietz@onevision.com>
349
350 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
351 assembly version use of ___chkstk.
352
3532009-09-23 Matthias Klose <doko@ubuntu.com>
354
355 PR libffi/40242, PR libffi/41443
356 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
357 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
358 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
359 Change the conditionals to __SOFTFP__ || __ARM_EABI__
360 for -mfloat-abi=softfp to work.
361
3622009-09-17 Loren J. Rittle <ljrittle@acm.org>
363
364 PR testsuite/32843 (strikes again)
365 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
366 enable proper extension on char and short.
367
3682009-09-15 David Daney <ddaney@caviumnetworks.com>
369
370 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
371 handling for FFI_TYPE_POINTER.
372 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
373 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
374 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
375 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
376 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
377 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
378 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
379 structure and pointer returns.
380 (ffi_closure_N32): Add handling for pointer returns.
381 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
382 calc_n32_return_struct_flags): Handle soft-float.
383 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
384 (ffi_call_N32): Declare proper argument types.
385 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
386 soft-float.
387
3882009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
389
390 * configure.ac (AC_PREREQ): Bump to 2.64.
391
3922009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
393
394 * Makefile.am (install-html, install-pdf): Remove.
395 * Makefile.in: Regenerate.
396
397 * Makefile.in: Regenerate.
398 * aclocal.m4: Regenerate.
399 * configure: Regenerate.
400 * fficonfig.h.in: Regenerate.
401 * include/Makefile.in: Regenerate.
402 * man/Makefile.in: Regenerate.
403 * testsuite/Makefile.in: Regenerate.
404
4052009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
406
407 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
408
4092009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
410
411 PR libffi/40807
412 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
413 return types for X86_WIN32.
414 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
415 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
416 _ffi_closure_STDCALL): Likewise.
417
418 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
419 (dlmmap, dlmunmap): Also use these functions on Cygwin.
420
4212009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
422
423 PR testsuite/40699
424 PR testsuite/40707
425 PR testsuite/40709
426 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
427 2009-06-30 commits.
428
4292009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
430
431 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
432 to "" before adding paths. (This reinstates an assignment that
433 was removed by my 2009-06-30 commit, but changes the initial
434 value from "." to "".)
435
4362009-07-01 H.J. Lu <hongjiu.lu@intel.com>
437
438 PR testsuite/40601
439 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
440 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
441 empty.
442
4432009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
444
445 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
446 to ld_library_path. Use add_path. Add just find_libgcc_s
447 to ld_library_path, not every libgcc multilib directory.
448
4492009-06-16 Wim Lewis <wiml@hhhh.org>
450
451 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
452 supposed to be callee-saved.
453 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
454 return buffer for odd-size structs.
455
4562009-06-16 Andreas Tobler <a.tobler@schweiz.org>
457
458 PR libffi/40444
459 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
460 allow_stack_execute for Darwin.
461
4622009-06-16 Andrew Haley <aph@redhat.com>
463
464 * configure.ac (TARGETDIR): Add missing blank lines.
465 * configure: Regenerate.
466
4672009-06-16 Andrew Haley <aph@redhat.com>
468
469 * testsuite/libffi.call/cls_align_sint64.c,
470 testsuite/libffi.call/cls_align_uint64.c,
471 testsuite/libffi.call/cls_longdouble_va.c,
472 testsuite/libffi.call/cls_ulonglong.c,
473 testsuite/libffi.call/return_ll1.c,
474 testsuite/libffi.call/stret_medium2.c: Fix printf format
475 specifiers.
476 * testsuite/libffi.call/ffitest.h,
477 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
478
4792009-06-15 Andrew Haley <aph@redhat.com>
480
481 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
482 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -0500483
Anthony Greenc6dddbd2009-10-04 08:11:33 -04004842009-06-12 Andrew Haley <aph@redhat.com>
485
486 * Makefile.am: Remove info_TEXINFOS.
487
4882009-06-12 Andrew Haley <aph@redhat.com>
489
490 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
491 testsuite/libffi.call/cls_align_uint64.c,
492 testsuite/libffi.call/cls_ulonglong.c,
493 testsuite/libffi.call/return_ll1.c,
494 testsuite/libffi.call/stret_medium2.c: Fix printf format
495 specifiers.
496 testsuite/libffi.special/unwindtest.cc: include stdint.h.
497
4982009-06-11 Timothy Wall <twall@users.sf.net>
499
500 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -0500501 configure.ac,
502 include/ffi.h.in,
503 include/ffi_common.h,
504 src/closures.c,
505 src/dlmalloc.c,
506 src/x86/ffi.c,
507 src/x86/ffitarget.h,
508 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400509 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -0500510 * Makefile.in,
511 include/Makefile.in,
512 man/Makefile.in,
513 testsuite/Makefile.in,
514 configure,
515 aclocal.m4: Regenerated
516 * ltcf-c.sh: properly escape cygwin/w32 path
517 * man/ffi_call.3: Clarify size requirements for return value.
518 * src/x86/ffi64.c: Fix filename in comment.
519 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400520
Anthony Green0cfe60e2009-12-29 10:06:04 -0500521 * testsuite/libffi.call/closure_fn0.c,
522 testsuite/libffi.call/closure_fn1.c,
523 testsuite/libffi.call/closure_fn2.c,
524 testsuite/libffi.call/closure_fn3.c,
525 testsuite/libffi.call/closure_fn4.c,
526 testsuite/libffi.call/closure_fn5.c,
527 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400528 testsuite/libffi.call/closure_stdcall.c,
529 testsuite/libffi.call/cls_12byte.c,
530 testsuite/libffi.call/cls_16byte.c,
531 testsuite/libffi.call/cls_18byte.c,
532 testsuite/libffi.call/cls_19byte.c,
533 testsuite/libffi.call/cls_1_1byte.c,
534 testsuite/libffi.call/cls_20byte.c,
535 testsuite/libffi.call/cls_20byte1.c,
536 testsuite/libffi.call/cls_24byte.c,
537 testsuite/libffi.call/cls_2byte.c,
538 testsuite/libffi.call/cls_3_1byte.c,
539 testsuite/libffi.call/cls_3byte1.c,
540 testsuite/libffi.call/cls_3byte2.c,
541 testsuite/libffi.call/cls_4_1byte.c,
542 testsuite/libffi.call/cls_4byte.c,
543 testsuite/libffi.call/cls_5_1_byte.c,
544 testsuite/libffi.call/cls_5byte.c,
545 testsuite/libffi.call/cls_64byte.c,
546 testsuite/libffi.call/cls_6_1_byte.c,
547 testsuite/libffi.call/cls_6byte.c,
548 testsuite/libffi.call/cls_7_1_byte.c,
549 testsuite/libffi.call/cls_7byte.c,
550 testsuite/libffi.call/cls_8byte.c,
551 testsuite/libffi.call/cls_9byte1.c,
552 testsuite/libffi.call/cls_9byte2.c,
553 testsuite/libffi.call/cls_align_double.c,
554 testsuite/libffi.call/cls_align_float.c,
555 testsuite/libffi.call/cls_align_longdouble.c,
556 testsuite/libffi.call/cls_align_longdouble_split.c,
557 testsuite/libffi.call/cls_align_longdouble_split2.c,
558 testsuite/libffi.call/cls_align_pointer.c,
559 testsuite/libffi.call/cls_align_sint16.c,
560 testsuite/libffi.call/cls_align_sint32.c,
561 testsuite/libffi.call/cls_align_sint64.c,
562 testsuite/libffi.call/cls_align_uint16.c,
563 testsuite/libffi.call/cls_align_uint32.c,
564 testsuite/libffi.call/cls_align_uint64.c,
565 testsuite/libffi.call/cls_dbls_struct.c,
566 testsuite/libffi.call/cls_double.c,
567 testsuite/libffi.call/cls_double_va.c,
568 testsuite/libffi.call/cls_float.c,
569 testsuite/libffi.call/cls_longdouble.c,
570 testsuite/libffi.call/cls_longdouble_va.c,
571 testsuite/libffi.call/cls_multi_schar.c,
572 testsuite/libffi.call/cls_multi_sshort.c,
573 testsuite/libffi.call/cls_multi_sshortchar.c,
574 testsuite/libffi.call/cls_multi_uchar.c,
575 testsuite/libffi.call/cls_multi_ushort.c,
576 testsuite/libffi.call/cls_multi_ushortchar.c,
577 testsuite/libffi.call/cls_pointer.c,
578 testsuite/libffi.call/cls_pointer_stack.c,
579 testsuite/libffi.call/cls_schar.c,
580 testsuite/libffi.call/cls_sint.c,
581 testsuite/libffi.call/cls_sshort.c,
582 testsuite/libffi.call/cls_uchar.c,
583 testsuite/libffi.call/cls_uint.c,
584 testsuite/libffi.call/cls_ulonglong.c,
585 testsuite/libffi.call/cls_ushort.c,
586 testsuite/libffi.call/err_bad_abi.c,
587 testsuite/libffi.call/err_bad_typedef.c,
588 testsuite/libffi.call/float2.c,
589 testsuite/libffi.call/huge_struct.c,
590 testsuite/libffi.call/nested_struct.c,
591 testsuite/libffi.call/nested_struct1.c,
592 testsuite/libffi.call/nested_struct10.c,
593 testsuite/libffi.call/nested_struct2.c,
594 testsuite/libffi.call/nested_struct3.c,
595 testsuite/libffi.call/nested_struct4.c,
596 testsuite/libffi.call/nested_struct5.c,
597 testsuite/libffi.call/nested_struct6.c,
598 testsuite/libffi.call/nested_struct7.c,
599 testsuite/libffi.call/nested_struct8.c,
600 testsuite/libffi.call/nested_struct9.c,
601 testsuite/libffi.call/problem1.c,
602 testsuite/libffi.call/return_ldl.c,
603 testsuite/libffi.call/return_ll1.c,
604 testsuite/libffi.call/stret_large.c,
605 testsuite/libffi.call/stret_large2.c,
606 testsuite/libffi.call/stret_medium.c,
607 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -0500608 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
609 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400610
6112009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
612
613 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
614 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
615 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
616
6172009-06-09 Andrew Haley <aph@redhat.com>
618
619 * src/x86/freebsd.S: Add missing file.
620
6212009-06-08 Andrew Haley <aph@redhat.com>
622
623 Import from libffi 3.0.8:
624
625 * doc/libffi.texi: New file.
626 * doc/libffi.info: Likewise.
627 * doc/stamp-vti: Likewise.
628 * man/Makefile.am: New file.
629 * man/ffi_call.3: New file.
630
631 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
632 src/dlmalloc.c.
633 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
634
635 * configure.ac: Bump version to 3.0.8.
636 parisc*-*-linux*: Add.
637 i386-*-freebsd* | i386-*-openbsd*: Add.
638 powerpc-*-beos*: Add.
639 AM_CONDITIONAL X86_FREEBSD: Add.
640 AC_CONFIG_FILES: Add man/Makefile.
641
642 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
643
6442009-06-08 Andrew Haley <aph@redhat.com>
645
646 * README: Import from libffi 3.0.8.
647
6482009-06-08 Andrew Haley <aph@redhat.com>
649
650 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
651 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
652 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
653 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
654
655 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
656 * testsuite/libffi.call/stret_medium.c: Likewise.
657 * testsuite/libffi.call/stret_large2.c: Likewise.
658 * testsuite/libffi.call/stret_large.c: Likewise.
659
6602008-12-26 Timothy Wall <twall@users.sf.net>
661
Anthony Green0cfe60e2009-12-29 10:06:04 -0500662 * testsuite/libffi.call/cls_longdouble.c,
663 testsuite/libffi.call/cls_longdouble_va.c,
664 testsuite/libffi.call/cls_align_longdouble.c,
665 testsuite/libffi.call/cls_align_longdouble_split.c,
666 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
667 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400668
6692008-12-22 Timothy Wall <twall@users.sf.net>
670
Anthony Green0cfe60e2009-12-29 10:06:04 -0500671 * testsuite/libffi.call/closure_fn0.c,
672 testsuite/libffi.call/closure_fn1.c,
673 testsuite/libffi.call/closure_fn2.c,
674 testsuite/libffi.call/closure_fn3.c,
675 testsuite/libffi.call/closure_fn4.c,
676 testsuite/libffi.call/closure_fn5.c,
677 testsuite/libffi.call/closure_fn6.c,
678 testsuite/libffi.call/closure_loc_fn0.c,
679 testsuite/libffi.call/closure_stdcall.c,
680 testsuite/libffi.call/cls_align_pointer.c,
681 testsuite/libffi.call/cls_pointer.c,
682 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
683 pointer to integer (intptr_t).
684 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400685
6862008-07-24 Anthony Green <green@redhat.com>
687
Anthony Green0cfe60e2009-12-29 10:06:04 -0500688 * testsuite/libffi.call/cls_dbls_struct.c,
689 testsuite/libffi.call/cls_double_va.c,
690 testsuite/libffi.call/cls_longdouble.c,
691 testsuite/libffi.call/cls_longdouble_va.c,
692 testsuite/libffi.call/cls_pointer.c,
693 testsuite/libffi.call/cls_pointer_stack.c,
694 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
695 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400696
6972008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500698 Blake Chaffin
699 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400700
Anthony Green0cfe60e2009-12-29 10:06:04 -0500701 * testsuite/libffi.call/cls_align_longdouble_split2.c
702 testsuite/libffi.call/cls_align_longdouble_split.c
703 testsuite/libffi.call/cls_dbls_struct.c
704 testsuite/libffi.call/cls_double_va.c
705 testsuite/libffi.call/cls_longdouble.c
706 testsuite/libffi.call/cls_longdouble_va.c
707 testsuite/libffi.call/cls_pointer.c
708 testsuite/libffi.call/cls_pointer_stack.c
709 testsuite/libffi.call/err_bad_abi.c
710 testsuite/libffi.call/err_bad_typedef.c
711 testsuite/libffi.call/stret_large2.c
712 testsuite/libffi.call/stret_large.c
713 testsuite/libffi.call/stret_medium2.c
714 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400715
7162009-06-05 Andrew Haley <aph@redhat.com>
717
718 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
719 libffi.
720
7212009-06-04 Andrew Haley <aph@redhat.com>
722
723 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
724 stdcall changes.
725
7262008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500727 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400728
Anthony Green0cfe60e2009-12-29 10:06:04 -0500729 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
730 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400731
7322008-02-03 Timothy Wall <twall@users.sf.net>
733
Anthony Green0cfe60e2009-12-29 10:06:04 -0500734 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
735 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400736
7372008-01-31 Timothy Wall <twall@users.sf.net>
738
Anthony Green0cfe60e2009-12-29 10:06:04 -0500739 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
740 closures.
741 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
742 closures.
743 * src/x86/win32.S: Add assembly for stdcall closure.
744 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400745
7462009-06-04 Andrew Haley <aph@redhat.com>
747
748 * include/ffi.h.in: Change void (*)() to void (*)(void).
749 * src/x86/ffi.c: Likewise.
750
7512009-06-04 Andrew Haley <aph@redhat.com>
752
753 * src/powerpc/ppc_closure.S: Insert licence header.
754 * src/powerpc/linux64_closure.S: Likewise.
755 * src/m68k/sysv.S: Likewise.
756
757 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
758 * src/powerpc/ffi.c: Likewise.
759 * src/powerpc/ffi_darwin.c: Likewise.
760 * src/m32r/ffi.c: Likewise.
761 * src/sh64/ffi.c: Likewise.
762 * src/x86/ffi64.c: Likewise.
763 * src/alpha/ffi.c: Likewise.
764 * src/alpha/osf.S: Likewise.
765 * src/frv/ffi.c: Likewise.
766 * src/s390/ffi.c: Likewise.
767 * src/pa/ffi.c: Likewise.
768 * src/pa/hpux32.S: Likewise.
769 * src/ia64/unix.S: Likewise.
770 * src/ia64/ffi.c: Likewise.
771 * src/sparc/ffi.c: Likewise.
772 * src/mips/ffi.c: Likewise.
773 * src/sh/ffi.c: Likewise.
774
7752008-02-15 David Daney <ddaney@avtrex.com>
776
Anthony Green0cfe60e2009-12-29 10:06:04 -0500777 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
778 Define (conditionally), and use it to include cachectl.h.
779 (ffi_prep_closure_loc): Fix cache flushing.
780 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400781
7822009-06-04 Andrew Haley <aph@redhat.com>
783
784 include/ffi.h.in,
785 src/arm/ffitarget.h,
786 src/arm/ffi.c,
787 src/arm/sysv.S,
788 src/powerpc/ffitarget.h,
789 src/closures.c,
790 src/sh64/ffitarget.h,
791 src/sh64/ffi.c,
792 src/sh64/sysv.S,
793 src/types.c,
794 src/x86/ffi64.c,
795 src/x86/ffitarget.h,
796 src/x86/win32.S,
797 src/x86/darwin.S,
798 src/x86/ffi.c,
799 src/x86/sysv.S,
800 src/x86/unix64.S,
801 src/alpha/ffitarget.h,
802 src/alpha/ffi.c,
803 src/alpha/osf.S,
804 src/m68k/ffitarget.h,
805 src/frv/ffitarget.h,
806 src/frv/ffi.c,
807 src/s390/ffitarget.h,
808 src/s390/sysv.S,
809 src/cris/ffitarget.h,
810 src/pa/linux.S,
811 src/pa/ffitarget.h,
812 src/pa/ffi.c,
813 src/raw_api.c,
814 src/ia64/ffitarget.h,
815 src/ia64/unix.S,
816 src/ia64/ffi.c,
817 src/ia64/ia64_flags.h,
818 src/java_raw_api.c,
819 src/debug.c,
820 src/sparc/v9.S,
821 src/sparc/ffitarget.h,
822 src/sparc/ffi.c,
823 src/sparc/v8.S,
824 src/mips/ffitarget.h,
825 src/mips/n32.S,
826 src/mips/o32.S,
827 src/mips/ffi.c,
828 src/prep_cif.c,
829 src/sh/ffitarget.h,
830 src/sh/ffi.c,
831 src/sh/sysv.S: Update license text.
832
8332009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
834
835 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
836 (.eh_frame): Add FDE for it.
837
8382009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
839
840 * configure.ac: Also check if assembler supports pc-relative
841 relocs on X86_WIN32 targets.
842 * configure: Regenerate.
843 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
844 (_ffi_call_SYSV): Add missing function type symbol .def and
845 add EH markup labels.
846 (_ffi_call_STDCALL): Likewise.
847 (_ffi_closure_SYSV): Likewise.
848 (_ffi_closure_raw_SYSV): Likewise.
849 (.eh_frame): Add hand-crafted EH data.
850
8512009-04-09 Jakub Jelinek <jakub@redhat.com>
852
853 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
854 version 3 of the GNU General Public License and to point readers
855 at the COPYING3 file and the FSF's license web page.
856 * testsuite/libffi.call/call.exp: Likewise.
857 * testsuite/libffi.special/special.exp: Likewise.
858
8592009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
860
861 * configure: Regenerate.
862
8632008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
864
865 PR libffi/26048
866 * configure.ac (HAVE_AS_X86_PCREL): New test.
867 * configure: Regenerate.
868 * fficonfig.h.in: Regenerate.
869 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
870 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
871 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
872 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
873 * src/x86/unix64.S (.Lstore_table): Move to .text section.
874 (.Lload_table): Likewise.
875 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
876
8772008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
878
879 * configure: Regenerate.
880
8812008-11-21 Eric Botcazou <ebotcazou@adacore.com>
882
883 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
884 signed/unsigned int8/16 return values.
885 * src/sparc/v8.S (ffi_call_v8): Likewise.
886 (ffi_closure_v8): Likewise.
887
8882008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500889 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400890
891 * configure: Regenerate for new libtool.
892 * Makefile.in: Ditto.
893 * include/Makefile.in: Ditto.
894 * aclocal.m4: Ditto.
895
8962008-08-25 Andreas Tobler <a.tobler@schweiz.org>
897
898 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
899 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
900 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
901 Adjust copyright notice.
902 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
903 register or two register to use for FFI_SYSV structs.
904 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
905 (ffi_closure_helper_SYSV): Fix the return type for
906 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
907 Adjust copyright notice.
908
9092008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
910
911 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
912 int.
913
9142008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
915
916 * configure: Regenerate.
917 * include/Makefile.in: Regenerate.
918 * testsuite/Makefile.in: Regenerate.
919
9202008-06-07 Joseph Myers <joseph@codesourcery.com>
921
922 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
923 powerpc-*-beos*): Remove.
924 * configure: Regenerate.
925
9262008-05-09 Julian Brown <julian@codesourcery.com>
927
928 * Makefile.am (LTLDFLAGS): New.
929 (libffi_la_LDFLAGS): Use above.
930 * Makefile.in: Regenerate.
931
9322008-04-18 Paolo Bonzini <bonzini@gnu.org>
933
934 PR bootstrap/35457
935 * aclocal.m4: Regenerate.
936 * configure: Regenerate.
937
9382008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
939
940 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
941 * src/sh64/sysv.S: Likewise.
942
9432008-03-26 Daniel Jacobowitz <dan@debian.org>
944
945 * src/arm/sysv.S: Fix ARM comment marker.
946
9472008-03-26 Jakub Jelinek <jakub@redhat.com>
948
949 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
950 * src/s390/sysv.S: Likewise.
951 * src/powerpc/ppc_closure.S: Likewise.
952 * src/powerpc/sysv.S: Likewise.
953 * src/x86/unix64.S: Likewise.
954 * src/x86/sysv.S: Likewise.
955 * src/sparc/v8.S: Likewise.
956 * src/sparc/v9.S: Likewise.
957 * src/m68k/sysv.S: Likewise.
958 * src/arm/sysv.S: Likewise.
959
9602008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
961
962 * aclocal.m4: Regenerate.
963 * configure: Likewise.
964 * Makefile.in: Likewise.
965 * include/Makefile.in: Likewise.
966 * testsuite/Makefile.in: Likewise.
967
9682008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
969 Andreas Tobler <a.tobler@schweiz.org>
970
971 * configure.ac: Add amd64-*-freebsd* target.
972 * configure: Regenerate.
973
9742008-01-30 H.J. Lu <hongjiu.lu@intel.com>
975
976 PR libffi/34612
977 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
978 returning struct.
979
980 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
981 tests.
982
9832008-01-24 David Edelsohn <edelsohn@gnu.org>
984
985 * configure: Regenerate.
986
9872008-01-06 Andreas Tobler <a.tobler@schweiz.org>
988
989 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
990
9912008-01-05 Andreas Tobler <a.tobler@schweiz.org>
992
993 PR testsuite/32843
994 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
995 signed/unsigned int8/16 for X86_DARWIN.
996 Updated copyright info.
997 Handle one and two byte structs with special cif->flags.
998 * src/x86/ffitarget.h: Add special types for one and two byte structs.
999 Updated copyright info.
1000 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
1001 sysv.S
1002 Remove code to pop args from the stack after call.
1003 Special-case signed/unsigned for int8/16, one and two byte structs.
1004 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1005 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1006 FFI_TYPE_SINT32.
1007 Updated copyright info.
1008
10092007-12-08 David Daney <ddaney@avtrex.com>
1010
Anthony Green0cfe60e2009-12-29 10:06:04 -05001011 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001012 SUBU, add with ADDU and use smaller code sequences.
1013
10142007-12-07 David Daney <ddaney@avtrex.com>
1015
1016 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
1017 type.
1018
10192007-12-06 David Daney <ddaney@avtrex.com>
1020
1021 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
1022 defined.
1023 (ffi_java_raw): New typedef.
1024 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
1025 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
1026 ffi_java_raw.
1027 (ffi_java_raw_closure) : Same.
1028 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
1029 parameter types.
1030 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
1031 FFI_SIZEOF_JAVA_RAW.
1032 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
1033 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
1034 sizeof(ffi_java_raw) for alignment calculations.
1035 (ffi_java_ptrarray_to_raw): Same.
1036 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -05001037 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001038 (ffi_java_raw_to_rvalue): Same.
1039 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
1040 (ffi_java_translate_args): Same.
1041 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
1042 parameter types.
1043 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
1044
10452007-12-06 David Daney <ddaney@avtrex.com>
1046
Anthony Green0cfe60e2009-12-29 10:06:04 -05001047 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001048 pointer values.
1049
10502007-12-01 Andreas Tobler <a.tobler@schweiz.org>
1051
1052 PR libffi/31937
1053 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
1054 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
1055 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
1056 set the NUM_FPR_ARG_REGISTERS according to.
1057 Add support for potential soft-float support under hard-float
1058 architecture.
1059 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
1060 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
1061 to the FFI_LINUX_SOFT_FLOAT ABI.
1062 (ffi_prep_cif_machdep): Likewise.
1063 (ffi_closure_helper_SYSV): Likewise.
1064 * src/powerpc/ppc_closure.S: Make sure not to store float/double
1065 on archs where __NO_FPRS__ is true.
1066 Add FFI_TYPE_UINT128 support.
1067 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
1068 Adjust copyright notice.
1069
10702007-11-25 Andreas Tobler <a.tobler@schweiz.org>
1071
1072 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
1073 * include/ffi_common.h: ... here.
1074 Update copyright.
1075
10762007-11-17 Andreas Tobler <a.tobler@schweiz.org>
1077
1078 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
1079 * src/powerpc/linux64.S: Likewise.
1080 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
1081 * testsuite/libffi.call/return_ldl.c: New test.
1082
10832007-09-04 <aph@redhat.com>
1084
1085 * src/arm/sysv.S (UNWIND): New.
1086 (Whole file): Conditionally compile unwinder directives.
1087 * src/arm/sysv.S: Add unwinder directives.
1088
1089 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
1090 Only treat r0 as a struct address if we're actually returning a
1091 struct by address.
1092 Only copy the bytes that are actually within a struct.
1093 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
1094 is returned in r0, not passed by address.
1095 (ffi_call): Allocate a word-sized temporary for the case where
1096 a composite is returned in r0.
1097 (ffi_prep_incoming_args_SYSV): Align as necessary.
1098
10992007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
1100
Anthony Green0cfe60e2009-12-29 10:06:04 -05001101 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001102 directly using the sys_cacheflush syscall.
1103
11042007-07-27 Andrew Haley <aph@redhat.com>
1105
1106 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
1107
11082007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
1109
1110 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
1111 * configure.ac: Likewise.
1112 * Makefile.in: Regenerate.
1113 * include/Makefile.in: Likewise.
1114 * testsuite/Makefile.in: Likewise.
1115 * configure: Likewise.
1116
11172007-08-24 David Daney <ddaney@avtrex.com>
1118
1119 * testsuite/libffi.call/return_sl.c: New test.
1120
11212007-08-10 David Daney <ddaney@avtrex.com>
1122
1123 * testsuite/libffi.call/cls_multi_ushort.c,
1124 testsuite/libffi.call/cls_align_uint16.c,
1125 testsuite/libffi.call/nested_struct1.c,
1126 testsuite/libffi.call/nested_struct3.c,
1127 testsuite/libffi.call/cls_7_1_byte.c,
1128 testsuite/libffi.call/nested_struct5.c,
1129 testsuite/libffi.call/cls_double.c,
1130 testsuite/libffi.call/nested_struct7.c,
1131 testsuite/libffi.call/cls_sint.c,
1132 testsuite/libffi.call/nested_struct9.c,
1133 testsuite/libffi.call/cls_20byte1.c,
1134 testsuite/libffi.call/cls_multi_sshortchar.c,
1135 testsuite/libffi.call/cls_align_sint64.c,
1136 testsuite/libffi.call/cls_3byte2.c,
1137 testsuite/libffi.call/cls_multi_schar.c,
1138 testsuite/libffi.call/cls_multi_uchar.c,
1139 testsuite/libffi.call/cls_19byte.c,
1140 testsuite/libffi.call/cls_9byte1.c,
1141 testsuite/libffi.call/cls_align_float.c,
1142 testsuite/libffi.call/closure_fn1.c,
1143 testsuite/libffi.call/problem1.c,
1144 testsuite/libffi.call/closure_fn3.c,
1145 testsuite/libffi.call/cls_sshort.c,
1146 testsuite/libffi.call/closure_fn5.c,
1147 testsuite/libffi.call/cls_align_double.c,
1148 testsuite/libffi.call/nested_struct.c,
1149 testsuite/libffi.call/cls_2byte.c,
1150 testsuite/libffi.call/nested_struct10.c,
1151 testsuite/libffi.call/cls_4byte.c,
1152 testsuite/libffi.call/cls_6byte.c,
1153 testsuite/libffi.call/cls_8byte.c,
1154 testsuite/libffi.call/cls_multi_sshort.c,
1155 testsuite/libffi.call/cls_align_sint16.c,
1156 testsuite/libffi.call/cls_align_uint32.c,
1157 testsuite/libffi.call/cls_20byte.c,
1158 testsuite/libffi.call/cls_float.c,
1159 testsuite/libffi.call/nested_struct2.c,
1160 testsuite/libffi.call/cls_5_1_byte.c,
1161 testsuite/libffi.call/nested_struct4.c,
1162 testsuite/libffi.call/cls_24byte.c,
1163 testsuite/libffi.call/nested_struct6.c,
1164 testsuite/libffi.call/cls_64byte.c,
1165 testsuite/libffi.call/nested_struct8.c,
1166 testsuite/libffi.call/cls_uint.c,
1167 testsuite/libffi.call/cls_multi_ushortchar.c,
1168 testsuite/libffi.call/cls_schar.c,
1169 testsuite/libffi.call/cls_uchar.c,
1170 testsuite/libffi.call/cls_align_uint64.c,
1171 testsuite/libffi.call/cls_ulonglong.c,
1172 testsuite/libffi.call/cls_align_longdouble.c,
1173 testsuite/libffi.call/cls_1_1byte.c,
1174 testsuite/libffi.call/cls_12byte.c,
1175 testsuite/libffi.call/cls_3_1byte.c,
1176 testsuite/libffi.call/cls_3byte1.c,
1177 testsuite/libffi.call/cls_4_1byte.c,
1178 testsuite/libffi.call/cls_6_1_byte.c,
1179 testsuite/libffi.call/cls_16byte.c,
1180 testsuite/libffi.call/cls_18byte.c,
1181 testsuite/libffi.call/closure_fn0.c,
1182 testsuite/libffi.call/cls_9byte2.c,
1183 testsuite/libffi.call/closure_fn2.c,
1184 testsuite/libffi.call/closure_fn4.c,
1185 testsuite/libffi.call/cls_ushort.c,
1186 testsuite/libffi.call/closure_fn6.c,
1187 testsuite/libffi.call/cls_5byte.c,
1188 testsuite/libffi.call/cls_align_pointer.c,
1189 testsuite/libffi.call/cls_7byte.c,
1190 testsuite/libffi.call/cls_align_sint32.c,
1191 testsuite/libffi.special/unwindtest_ffi_call.cc,
1192 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
1193
11942007-08-10 David Daney <ddaney@avtrex.com>
1195
1196 PR libffi/28313
1197 * configure.ac: Don't treat mips64 as a special case.
1198 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
1199 * configure: Regenerate
1200 * Makefile.in: Ditto.
1201 * fficonfig.h.in: Ditto.
1202 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
1203 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
1204 (FFI_DEFAULT_ABI): Set for n64 case.
1205 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
1206 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
1207 (ffi_closure_N32): New function.
1208 (.eh_frame): New section
1209 * src/mips/o32.S: Clean up comments.
1210 (ffi_closure_O32): Pass ffi_closure parameter in $12.
1211 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
1212 _MIPS_SIM == _ABIN32 throughout.
1213 (FFI_MIPS_STOP_HERE): New, use in place of
1214 ffi_stop_here.
1215 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
1216 to support n32/n64 ABIs.
1217 (calc_n32_struct_flags): Rewrite.
1218 (calc_n32_return_struct_flags): Remove unused variable. Reverse
1219 position of flag bits.
1220 (ffi_prep_cif_machdep): Rewrite n32 portion.
1221 (ffi_call): Enable for n64. Add special handling for small structure
1222 return values.
1223 (ffi_prep_closure_loc): Add n32 and n64 support.
1224 (ffi_closure_mips_inner_O32): Add cast to silence warning.
1225 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
1226
12272007-08-08 David Daney <ddaney@avtrex.com>
1228
1229 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
1230 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
1231 specifiers.
1232 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
1233 * testsuite/libffi.call/cls_sint.c (main): Ditto.
1234 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
1235 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
1236 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
1237 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
1238 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
1239 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
1240 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
1241 * testsuite/libffi.call/return_fl3.c (main): Ditto.
1242 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
1243 * testsuite/libffi.call/nested_struct.c (main): Ditto.
1244 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
1245 * testsuite/libffi.call/return_ll1.c (main): Ditto.
1246 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
1247 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
1248 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
1249 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
1250 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
1251 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
1252 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
1253 * testsuite/libffi.call/cls_uint.c (main): Ditto.
1254 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
1255 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
1256 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
1257 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
1258 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
1259 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
1260 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
1261 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
1262 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
1263
12642007-08-07 Andrew Haley <aph@redhat.com>
1265
1266 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
1267 checkin.
1268
12692007-08-06 Andrew Haley <aph@redhat.com>
1270
1271 PR testsuite/32843
1272 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1273 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1274 FFI_TYPE_SINT32.
1275
12762007-08-02 David Daney <ddaney@avtrex.com>
1277
1278 * testsuite/libffi.call/return_ul.c (main): Define return type as
1279 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001280
Anthony Greenc6dddbd2009-10-04 08:11:33 -040012812007-07-30 Andrew Haley <aph@redhat.com>
1282
1283 PR testsuite/32843
1284 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
1285 signed/unsigned int8/16.
1286 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
1287 Use a jump table.
1288 Remove code to pop args from the stack after call.
1289 Special-case signed/unsigned int8/16.
1290 * testsuite/libffi.call/return_sc.c (main): Revert.
1291
12922007-07-26 Richard Guenther <rguenther@suse.de>
1293
1294 PR testsuite/32843
1295 * testsuite/libffi.call/return_sc.c (main): Verify call
1296 result as signed char, not ffi_arg.
1297
12982007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1299
1300 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
1301 * configure: Regenerate.
1302
13032007-07-11 David Daney <ddaney@avtrex.com>
1304
1305 * src/mips/ffi.c: Don't include sys/cachectl.h.
1306 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
1307 cacheflush().
1308
13092007-05-18 Aurelien Jarno <aurelien@aurel32.net>
1310
1311 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
1312 from (ffi_prep_closure): ... this.
1313 (FFI_INIT_TRAMPOLINE): Adjust.
1314
13152005-12-31 Phil Blundell <pb@reciva.com>
1316
Anthony Green0cfe60e2009-12-29 10:06:04 -05001317 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
1318 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001319 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
1320 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1321 (FFI_CLOSURES): Enable closure support.
1322
13232007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
1324
Anthony Green0cfe60e2009-12-29 10:06:04 -05001325 * testsuite/libffi.call/cls_multi_ushort.c,
1326 testsuite/libffi.call/cls_align_uint16.c,
1327 testsuite/libffi.call/nested_struct1.c,
1328 testsuite/libffi.call/nested_struct3.c,
1329 testsuite/libffi.call/cls_7_1_byte.c,
1330 testsuite/libffi.call/cls_double.c,
1331 testsuite/libffi.call/nested_struct5.c,
1332 testsuite/libffi.call/nested_struct7.c,
1333 testsuite/libffi.call/cls_sint.c,
1334 testsuite/libffi.call/nested_struct9.c,
1335 testsuite/libffi.call/cls_20byte1.c,
1336 testsuite/libffi.call/cls_multi_sshortchar.c,
1337 testsuite/libffi.call/cls_align_sint64.c,
1338 testsuite/libffi.call/cls_3byte2.c,
1339 testsuite/libffi.call/cls_multi_schar.c,
1340 testsuite/libffi.call/cls_multi_uchar.c,
1341 testsuite/libffi.call/cls_19byte.c,
1342 testsuite/libffi.call/cls_9byte1.c,
1343 testsuite/libffi.call/cls_align_float.c,
1344 testsuite/libffi.call/closure_fn1.c,
1345 testsuite/libffi.call/problem1.c,
1346 testsuite/libffi.call/closure_fn3.c,
1347 testsuite/libffi.call/cls_sshort.c,
1348 testsuite/libffi.call/closure_fn5.c,
1349 testsuite/libffi.call/cls_align_double.c,
1350 testsuite/libffi.call/cls_2byte.c,
1351 testsuite/libffi.call/nested_struct.c,
1352 testsuite/libffi.call/nested_struct10.c,
1353 testsuite/libffi.call/cls_4byte.c,
1354 testsuite/libffi.call/cls_6byte.c,
1355 testsuite/libffi.call/cls_8byte.c,
1356 testsuite/libffi.call/cls_multi_sshort.c,
1357 testsuite/libffi.call/cls_align_uint32.c,
1358 testsuite/libffi.call/cls_align_sint16.c,
1359 testsuite/libffi.call/cls_float.c,
1360 testsuite/libffi.call/cls_20byte.c,
1361 testsuite/libffi.call/cls_5_1_byte.c,
1362 testsuite/libffi.call/nested_struct2.c,
1363 testsuite/libffi.call/cls_24byte.c,
1364 testsuite/libffi.call/nested_struct4.c,
1365 testsuite/libffi.call/nested_struct6.c,
1366 testsuite/libffi.call/cls_64byte.c,
1367 testsuite/libffi.call/nested_struct8.c,
1368 testsuite/libffi.call/cls_uint.c,
1369 testsuite/libffi.call/cls_multi_ushortchar.c,
1370 testsuite/libffi.call/cls_schar.c,
1371 testsuite/libffi.call/cls_uchar.c,
1372 testsuite/libffi.call/cls_align_uint64.c,
1373 testsuite/libffi.call/cls_ulonglong.c,
1374 testsuite/libffi.call/cls_align_longdouble.c,
1375 testsuite/libffi.call/cls_1_1byte.c,
1376 testsuite/libffi.call/cls_12byte.c,
1377 testsuite/libffi.call/cls_3_1byte.c,
1378 testsuite/libffi.call/cls_3byte1.c,
1379 testsuite/libffi.call/cls_4_1byte.c,
1380 testsuite/libffi.call/cls_6_1_byte.c,
1381 testsuite/libffi.call/cls_16byte.c,
1382 testsuite/libffi.call/cls_18byte.c,
1383 testsuite/libffi.call/closure_fn0.c,
1384 testsuite/libffi.call/cls_9byte2.c,
1385 testsuite/libffi.call/closure_fn2.c,
1386 testsuite/libffi.call/closure_fn4.c,
1387 testsuite/libffi.call/cls_ushort.c,
1388 testsuite/libffi.call/closure_fn6.c,
1389 testsuite/libffi.call/cls_5byte.c,
1390 testsuite/libffi.call/cls_align_pointer.c,
1391 testsuite/libffi.call/cls_7byte.c,
1392 testsuite/libffi.call/cls_align_sint32.c,
1393 testsuite/libffi.special/unwindtest_ffi_call.cc,
1394 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001395
13962007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1397
1398 * aclocal.m4: Regenerated.
1399
14002007-06-02 Paolo Bonzini <bonzini@gnu.org>
1401
1402 * configure: Regenerate.
1403
14042007-05-23 Steve Ellcey <sje@cup.hp.com>
1405
1406 * Makefile.in: Regenerate.
1407 * configure: Regenerate.
1408 * aclocal.m4: Regenerate.
1409 * include/Makefile.in: Regenerate.
1410 * testsuite/Makefile.in: Regenerate.
1411
14122007-05-10 Roman Zippel <zippel@linux-m68k.org>
1413
1414 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
1415 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
1416 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
1417 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1418 (FFI_CLOSURES): Enable closure support.
1419
14202007-05-10 Roman Zippel <zippel@linux-m68k.org>
1421
1422 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
1423 * configure: Regenerate.
1424 * fficonfig.h.in: Regenerate.
1425 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
1426 CFI_OFFSET,CFI_DEF_CFA): New macros.
1427 (ffi_call_SYSV): Add callframe annotation.
1428
14292007-05-10 Roman Zippel <zippel@linux-m68k.org>
1430
1431 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
1432 numerous test suite failures.
1433 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
1434
14352007-04-11 Paolo Bonzini <bonzini@gnu.org>
1436
1437 * Makefile.am (EXTRA_DIST): Bring up to date.
1438 * Makefile.in: Regenerate.
1439 * src/frv/eabi.S: Remove RCS keyword.
1440
14412007-04-06 Richard Henderson <rth@redhat.com>
1442
1443 * configure.ac: Tidy target case.
1444 (HAVE_LONG_DOUBLE): Allow the target to override.
1445 * configure: Regenerate.
1446 * include/ffi.h.in: Don't define ffi_type_foo if
1447 LIBFFI_HIDE_BASIC_TYPES is defined.
1448 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
1449 to ffi_type_double.
1450 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
1451 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
1452 (ffi_type_longdouble): Special case for Alpha. Don't define
1453 if long double == double.
1454
1455 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
1456 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
1457 (ffi_call, ffi_closure_osf_inner): Likewise.
1458 (ffi_closure_osf_inner): Likewise. Mark hidden.
1459 (ffi_call_osf, ffi_closure_osf): Mark hidden.
1460 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
1461 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
1462 (load_table): Handle 128-bit long double.
1463
1464 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
1465
14662007-04-06 Tom Tromey <tromey@redhat.com>
1467
1468 PR libffi/31491:
1469 * README: Fixed bug in example.
1470
14712007-04-03 Jakub Jelinek <jakub@redhat.com>
1472
1473 * src/closures.c: Include sys/statfs.h.
1474 (_GNU_SOURCE): Define on Linux.
1475 (FFI_MMAP_EXEC_SELINUX): Define.
1476 (selinux_enabled): New variable.
1477 (selinux_enabled_check): New function.
1478 (is_selinux_enabled): Define.
1479 (dlmmap): Use it.
1480
14812007-03-24 Uros Bizjak <ubizjak@gmail.com>
1482
1483 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
1484 Use 'volatile float sum' to create sum of floats to avoid false
1485 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001486 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001487
14882007-03-08 Alexandre Oliva <aoliva@redhat.com>
1489
1490 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
1491 patch.
1492 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
1493
14942007-03-07 Alexandre Oliva <aoliva@redhat.com>
1495
1496 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
1497 (ffi_prep_closure_loc): New.
1498 (ffi_prep_raw_closure_loc): New.
1499 (ffi_prep_java_raw_closure_loc): New.
1500 * src/closures.c: New file.
1501 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
1502 Replace sflags with exec_offset.
1503 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
1504 sub_segment_exec_offset): New macros.
1505 (get_segment_flags, set_segment_flags, check_segment_merge): New
1506 macros.
1507 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
1508 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
1509 destroy_mspace): Use new macros.
1510 (sys_alloc): Silence warning.
1511 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
1512 * Makefile.in: Rebuilt.
1513 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
1514 terms of ffi_prep_closure_loc.
1515 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
1516 from...
1517 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
1518 renamed version.
1519 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
1520 adjusted from...
1521 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
1522 the renamed version.
1523 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
1524 (ffi_prep_closure): ... this.
1525 * src/pa/ffi.c: Likewise.
1526 * src/cris/ffi.c: Likewise. Adjust.
1527 * src/frv/ffi.c: Likewise.
1528 * src/ia64/ffi.c: Likewise.
1529 * src/mips/ffi.c: Likewise.
1530 * src/powerpc/ffi_darwin.c: Likewise.
1531 * src/s390/ffi.c: Likewise.
1532 * src/sh/ffi.c: Likewise.
1533 * src/sh64/ffi.c: Likewise.
1534 * src/sparc/ffi.c: Likewise.
1535 * src/x86/ffi64.c: Likewise.
1536 * src/x86/ffi.c: Likewise.
1537 (FFI_INIT_TRAMPOLINE): Adjust.
1538 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
1539 (ffi_prep_raw_closure): ... this.
1540 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
1541 (ffi_prep_closure): ... this.
1542 (flush_icache): Adjust.
1543
15442007-03-07 Alexandre Oliva <aoliva@redhat.com>
1545
1546 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
1547 Lea's malloc.
1548
15492007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1550
1551 * Makefile.am: Add dummy install-pdf target.
1552 * Makefile.in: Regenerate
1553
15542007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
1555
1556 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
1557 ffi_closure_helper_SYSV): Add long double handling.
1558
15592007-02-02 Jakub Jelinek <jakub@redhat.com>
1560
1561 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
1562 immediately after bctrl instruction.
1563
15642007-01-18 Alexandre Oliva <aoliva@redhat.com>
1565
1566 * Makefile.am (all-recursive, install-recursive,
1567 mostlyclean-recursive, clean-recursive, distclean-recursive,
1568 maintainer-clean-recursive): Add missing targets.
1569 * Makefile.in: Rebuilt.
1570
15712006-12-14 Andreas Tobler <a.tobler@schweiz.org>
1572
1573 * configure.ac: Add TARGET for x86_64-*-darwin*.
1574 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
1575 for X86_DARWIN.
1576 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
1577 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
1578 * configure: Regenerate.
1579 * Makefile.in: Regenerate.
1580 * include/Makefile.in: Regenerate.
1581 * testsuite/Makefile.in: Regenerate.
1582 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
1583 ffi_call only.
1584
15852006-12-13 Andreas Tobler <a.tobler@schweiz.org>
1586
1587 * aclocal.m4: Regenerate with aclocal -I .. as written in the
1588 Makefile.am.
1589
15902006-10-31 Geoffrey Keating <geoffk@apple.com>
1591
1592 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
1593 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
1594 Darwin.
1595 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
1596 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
1597
15982006-10-10 Paolo Bonzini <bonzini@gnu.org>
1599 Sandro Tolaini <tolaini@libero.it>
1600
Anthony Green0cfe60e2009-12-29 10:06:04 -05001601 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001602 conditional.
1603 * configure: Regenerated.
1604 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
1605 (EXTRA_DIST): Add src/x86/darwin.S.
1606 * Makefile.in: Regenerated.
1607 * include/Makefile.in: Regenerated.
1608 * testsuite/Makefile.in: Regenerated.
1609
1610 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
1611 X86_WIN32, and additionally align stack to 16 bytes.
1612 * src/x86/darwin.S: New, based on sysv.S.
1613 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
1614
16152006-09-12 David Daney <ddaney@avtrex.com>
1616
1617 PR libffi/23935
1618 * include/Makefile.am: Install both ffi.h and ffitarget.h in
1619 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
1620 * aclocal.m4: Regenerated for automake 1.9.6.
1621 * Makefile.in: Regenerated.
1622 * include/Makefile.in: Regenerated.
1623 * testsuite/Makefile.in: Regenerated.
1624
16252006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
1626
1627 * include/ffi_common.h (struct): Revert accidental commit.
1628
16292006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
1630
1631 * include/ffi_common.h: Remove lint directives.
1632 * include/ffi.h.in: Likewise.
1633
16342006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
1635
1636 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
1637 for 32-bit architectures.
1638 * testsuite/libffi.call/return_ul.c: New test case.
1639
16402006-07-19 David Daney <ddaney@avtrex.com>
1641
1642 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
1643 xfail remains for mips64.
1644
16452006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1646
1647 * Makefile.am: Add install-html target. Add install-html to .PHONY
1648 * Makefile.in: Regenerate.
1649 * aclocal.m4: Regenerate.
1650 * include/Makefile.in: Regenerate.
1651 * testsuite/Makefile.in: Regenerate.
1652
16532006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1654
1655 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
1656 stack slot.
1657
16582006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
1659
1660 * README: Remove notice about 'Crazy Comments'.
1661 * src/debug.c: Remove lint directives. Cleanup white spaces.
1662 * src/java_raw_api.c: Likewise.
1663 * src/prep_cif.c: Likewise.
1664 * src/raw_api.c: Likewise.
1665 * src/ffitest.c: Delete. No longer needed, all test cases migrated
1666 to the testsuite.
1667 * src/arm/ffi.c: Remove lint directives.
1668 * src/m32r/ffi.c: Likewise.
1669 * src/pa/ffi.c: Likewise.
1670 * src/powerpc/ffi.c: Likewise.
1671 * src/powerpc/ffi_darwin.c: Likewise.
1672 * src/sh/ffi.c: Likewise.
1673 * src/sh64/ffi.c: Likewise.
1674 * src/x86/ffi.c: Likewise.
1675 * testsuite/libffi.call/float2.c: Likewise.
1676 * testsuite/libffi.call/promotion.c: Likewise.
1677 * testsuite/libffi.call/struct1.c: Likewise.
1678
16792006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
1680
1681 * src/pa/hpux32.S: Correct unwind offset calculation for
1682 ffi_closure_pa32.
1683 * src/pa/linux.S: Likewise.
1684
16852006-04-12 James E Wilson <wilson@specifix.com>
1686
1687 PR libgcj/26483
1688 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
1689 (hfa_type_load): Call stf_spill.
1690 (hfa_type_store): Call ldf_fill.
1691 (ffi_call): Adjust calls to above routines. Add local temps for
1692 macro result.
1693
16942006-04-10 Matthias Klose <doko@debian.org>
1695
1696 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
1697 directory names containing underscores.
1698
16992006-04-07 James E Wilson <wilson@specifix.com>
1700
1701 * testsuite/libffi.call/float4.c: New testcase.
1702
17032006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1704 Andreas Tobler <a.tobler@schweiz.ch>
1705
1706 * Makefile.am: Add PA_HPUX port.
1707 * Makefile.in: Regenerate.
1708 * include/Makefile.in: Likewise.
1709 * testsuite/Makefile.in: Likewise.
1710 * configure.ac: Add PA_HPUX rules.
1711 * configure: Regenerate.
1712 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
1713 Add PA_HPUX and PA64_HPUX.
1714 Rename FFI_LINUX ABI to FFI_PA32 ABI.
1715 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
1716 (FFI_TYPE_SMALL_STRUCT2): Define.
1717 (FFI_TYPE_SMALL_STRUCT4): Likewise.
1718 (FFI_TYPE_SMALL_STRUCT8): Likewise.
1719 (FFI_TYPE_SMALL_STRUCT3): Redefine.
1720 (FFI_TYPE_SMALL_STRUCT5): Likewise.
1721 (FFI_TYPE_SMALL_STRUCT6): Likewise.
1722 (FFI_TYPE_SMALL_STRUCT7): Likewise.
1723 * src/pa/ffi.c (ROUND_DOWN): Delete.
1724 (fldw, fstw, fldd, fstd): Use '__asm__'.
1725 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
1726 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
1727 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
1728 Simplify incrementing of stack slot variable. Change type of local
1729 'n' to unsigned int.
1730 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
1731 double on PA_HPUX.
1732 (ffi_prep_cif_machdep): Likewise.
1733 (ffi_call): Likewise.
1734 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
1735 return type to ffi_status. Simplify incrementing of stack slot
1736 variable. Only copy floating point argument registers when PA_LINUX
1737 is true. Reformat debug statement.
1738 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
1739 FFI_TYPE_SMALL_STRUCT8.
1740 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
1741 declaration.
1742 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
1743 Add nops to cache flush. Add trampoline for PA_HPUX.
1744 * src/pa/hpux32.S: New file.
1745 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
1746 ffi_prep_args_LINUX to ffi_prep_args_pa32.
1747 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
1748 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
1749 argument type checks so that common argument types appear first.
1750 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
1751 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
1752
17532006-03-24 Alan Modra <amodra@bigpond.net.au>
1754
1755 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
1756 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
1757 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
1758 FFI_TYPE_LONGDOUBLE.
1759 (ffi_prep_args64): Assert using IBM extended double.
1760 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
1761 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
1762 (ffi_call): Handle FFI_LINUX.
1763 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
1764 gpr3 return pointer as for struct return. Handle FFI_LINUX
1765 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
1766 unnecessarily.
1767 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
1768 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
1769 Don't use r6 as pointer to results, instead use sp offset. Don't
1770 make a special call to load lr with case table address, instead
1771 use offset from previous call.
1772 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
1773 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
1774 return.
1775
17762006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
1777
1778 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
1779 passed with FP registers correctly.
1780 (ffi_closure_helper_SYSV): Likewise.
1781 * src/sh64/sysv.S: Likewise.
1782
17832006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
1784
1785 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
1786 args and userdata unused.
1787 (closure_test_fn1): Mark cif and userdata unused.
1788 (main): Remove unused res.
1789
17902006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
1791
1792 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
1793 -O2, -O3, -Os and the warning flags -W -Wall.
1794 * testsuite/libffi.special/special.exp: Likewise.
1795 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
1796 unused parameter unused for gcc or else do nothing.
1797 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1798 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
1799 and userdata unused.
1800 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
1801 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
1802 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
1803 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
1804 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
1805 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
1806 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
1807 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
1808 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
1809 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
1810 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
1811 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
1812 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
1813 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
1814 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
1815 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
1816 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
1817 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
1818 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
1819 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
1820 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
1821 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
1822 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
1823 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
1824 Likewise.
1825 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
1826 Likewise.
1827 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
1828 Likewise.
1829 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
1830 void* to avoid compiler warning.
1831 (main): Likewise.
1832 (cls_struct_align_gn): Mark cif and userdata unused.
1833 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
1834 Likewise.
1835 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
1836 Likewise.
1837 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
1838 Likewise.
1839 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
1840 Likewise.
1841 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
1842 Likewise.
1843 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
1844 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
1845 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
1846 data unused.
1847 (main): Cast res_call to silence gcc.
1848 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
1849 data unused.
1850 (main): Cast res_call to silence gcc.
1851 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
1852 and data unused.
1853 (main): Cast res_call to silence gcc.
1854 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
1855 data unused.
1856 (main): Cast res_call to silence gcc.
1857 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
1858 data unused.
1859 (main): Cast res_call to silence gcc.
1860 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
1861 and data unused.
1862 (main): Cast res_call to silence gcc.
1863 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
1864 userdata unused.
1865 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
1866 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
1867 userdata unused.
1868 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
1869 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
1870 userdata unused.
1871 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
1872 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
1873 userdata unused.
1874 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
1875 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
1876 userdata unused.
1877 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
1878 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
1879 and userdata unused.
1880 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
1881 userdata unused.
1882 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
1883 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
1884 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
1885 Cleanup white spaces.
1886 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
1887 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
1888 cif and userdata unused.
1889 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
1890 Likewise.
1891 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
1892 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
1893 formatters to silence gcc.
1894 (B_gn): Mark cif and userdata unused.
1895 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
1896 unused.
1897 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
1898 (B_gn): Mark cif and userdata unused.
1899 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
1900 unused.
1901 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
1902 (B_gn): Mark cif and userdata unused.
1903 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
1904 unused.
1905 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
1906 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
1907 * testsuite/libffi.call/problem1.c (stub): Likewise.
1908 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
1909 gcc.
1910 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
1911 in the last commit for this test case in the test case itself.
1912 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
1913 unused.
1914 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
1915 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
1916 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
1917 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
1918 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
1919 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
1920
19212006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
1922
1923 * src/sh/sysv.S: Fix register numbers in the FDE for
1924 ffi_closure_SYSV.
1925
19262006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
1927
1928 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
1929 declaration to avoid a false negative on ix86. See PR323.
1930
19312006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
1932
1933 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
1934 and cast integer to void * if needed. Update the pointer to
1935 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001936
Anthony Greenc6dddbd2009-10-04 08:11:33 -040019372006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
1938
1939 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
1940 is fixed.
1941 * testsuite/libffi.call/nested_struct4.c: Likewise.
1942
19432006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
1944
1945 * testsuite/libffi.call/return_dbl.c: New test case.
1946 * testsuite/libffi.call/return_dbl1.c: Likewise.
1947 * testsuite/libffi.call/return_dbl2.c: Likewise.
1948 * testsuite/libffi.call/return_fl.c: Likewise.
1949 * testsuite/libffi.call/return_fl1.c: Likewise.
1950 * testsuite/libffi.call/return_fl2.c: Likewise.
1951 * testsuite/libffi.call/return_fl3.c: Likewise.
1952 * testsuite/libffi.call/closure_fn6.c: Likewise.
1953
1954 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
1955 definition.
1956 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
1957 here to be used by other test cases too.
1958
1959 * testsuite/libffi.call/nested_struct10.c: New test case.
1960 * testsuite/libffi.call/nested_struct9.c: Likewise.
1961 * testsuite/libffi.call/nested_struct8.c: Likewise.
1962 * testsuite/libffi.call/nested_struct7.c: Likewise.
1963 * testsuite/libffi.call/nested_struct6.c: Likewise.
1964 * testsuite/libffi.call/nested_struct5.c: Likewise.
1965 * testsuite/libffi.call/nested_struct4.c: Likewise.
1966
19672006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1968
1969 * configure.ac: Enable libffi for sparc64-*-freebsd*.
1970 * configure: Rebuilt.
1971
19722006-01-18 Jakub Jelinek <jakub@redhat.com>
1973
1974 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
1975 instead do the shifting inline.
1976 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
1977 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
1978 and 8 byte structs, for the remaining struct sizes don't call
1979 __lshrdi3, instead do the shifting inline.
1980
19812005-12-07 Thiemo Seufer <ths@networkno.de>
1982
1983 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
1984 missing parentheses.
1985 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
1986 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
1987 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
1988 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
1989 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
1990 FA_0_0_OFF2.
1991 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
1992 endianness bugs.
1993 (ffi_prep_closure): Improve trampoline instruction scheduling.
1994 (ffi_closure_mips_inner_O32): Fix endianness bugs.
1995
19962005-12-03 Alan Modra <amodra@bigpond.net.au>
1997
1998 * src/powerpc/ffi.c: Formatting.
1999 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
2000 (ffi_prep_args64): Likewise.
2001
20022005-09-30 Geoffrey Keating <geoffk@apple.com>
2003
2004 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
2005 darwin, use -shared-libgcc not -lgcc_s, and explain why.
2006
20072005-09-26 Tom Tromey <tromey@redhat.com>
2008
2009 * testsuite/libffi.call/float1.c (value_type): New typedef.
2010 (CANARY): New define.
2011 (main): Check for result buffer overflow.
2012 * src/powerpc/linux64.S: Handle linux64 long double returns.
2013 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
2014 (ffi_prep_cif_machdep): Handle linux64 long double returns.
2015
20162005-08-25 Alan Modra <amodra@bigpond.net.au>
2017
2018 PR target/23404
2019 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
2020 homed fp args.
2021 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
2022
20232005-08-11 Jakub Jelinek <jakub@redhat.com>
2024
2025 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
2026 (AH_BOTTOM): Add FFI_HIDDEN definition.
2027 * configure: Rebuilt.
2028 * fficonfig.h.in: Rebuilt.
2029 * src/powerpc/ffi.c (hidden): Remove.
2030 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
2031 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
2032 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
2033 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
2034 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
2035 add FFI_HIDDEN to its prototype.
2036 (ffi_closure_SYSV_inner): New.
2037 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
2038 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
2039
20402005-08-10 Alfred M. Szmidt <ams@gnu.org>
2041
2042 PR libffi/21819:
2043 * configure: Rebuilt.
2044 * configure.ac: Handle i*86-*-gnu*.
2045
20462005-08-09 Jakub Jelinek <jakub@redhat.com>
2047
2048 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
2049 DW_CFA_offset_extended_sf rather than
2050 DW_CFA_GNU_negative_offset_extended.
2051 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
2052
20532005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2054
2055 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
2056 on sh3.
2057 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
2058 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
2059 partially on register.
2060 (ffi_closure_helper_SYSV): Likewise.
2061 (ffi_prep_cif_machdep): Don't set too many cif->flags.
2062
20632005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2064
2065 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
2066 Remove empty line.
2067 * src/sh64/ffi.c (simple_type): Remove.
2068 (return_type): Handle small structures correctly.
2069 (ffi_prep_args): Likewise.
2070 (ffi_call): Likewise.
2071 (ffi_closure_helper_SYSV): Likewise.
2072 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
2073 Emit position independent code if PIC and remove wrong datalabel
2074 prefixes from EH data.
2075
20762005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
2077
2078 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
2079 * Makefile.in: Regenerate.
2080 * include/Makefile.in: Likewise.
2081 * testsuite/Makefile.in: Likewise.
2082 * configure.ac: Add POWERPC_FREEBSD rules.
2083 * configure: Regenerate.
2084 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
2085 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
2086 * src/powerpc/ffi.c: Add flags to handle small structure returns
2087 in ffi_call_SYSV.
2088 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
2089 Aka FFI_SYSV.
2090 (ffi_closure_helper_SYSV): Likewise.
2091 * src/powerpc/ppc_closure.S: Add return types for small structures.
2092 * src/powerpc/sysv.S: Add bits to handle small structures for
2093 final SYSV 4 ABI.
2094
20952005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
2096
2097 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
2098 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
2099 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
2100
21012005-07-05 Randolph Chung <tausq@debian.org>
2102
2103 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
2104 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
2105 structures. Kill compilation warnings.
2106 (ffi_closure_inner_LINUX): Print return values as hex in debug
2107 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
2108 Properly handle 5-7 byte structure returns.
2109 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
2110 (FFI_TYPE_SMALL_STRUCT2): Remove.
2111 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
2112 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
2113 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
2114 (checksmst1, checksmst2): Remove.
2115 (checksmst3): Optimize handling of 3-byte struct returns.
2116 (checksmst567): Properly handle 5-7 byte struct returns.
2117
21182005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2119
2120 PR libgcj/21943
2121 * src/mips/n32.S: Enforce PIC code.
2122 * src/mips/o32.S: Likewise.
2123
21242005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2125
2126 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
2127 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002128
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021292005-06-01 Alan Modra <amodra@bigpond.net.au>
2130
2131 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
2132 to call ffi_closure_helper_SYSV. Append @local instead.
2133 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
2134
21352005-05-17 Kelley Cook <kcook@gcc.gnu.org>
2136
2137 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
2138 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
2139 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
2140 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
2141 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002142
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021432005-05-09 Mike Stump <mrs@apple.com>
2144
2145 * configure: Regenerate.
2146
21472005-05-08 Richard Henderson <rth@redhat.com>
2148
2149 PR libffi/21285
2150 * src/alpha/osf.S: Update unwind into to match code.
2151
21522005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
2153 Richard Henderson <rth@redhat.com>
2154
2155 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
2156 bit 11 of flags.
2157 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
2158 (ffi_prep_closure): Set carry bit if sse-used flag set.
2159 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
2160 Only load sse registers if ssecount non-zero.
2161 (ffi_closure_unix64): Only save sse registers if carry set on entry.
2162
21632005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
2164
2165 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
2166 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
2167 * configure: Regenerate.
2168
21692005-04-20 Hans-Peter Nilsson <hp@axis.com>
2170
2171 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
2172 have Tcl8.3-compatible intermediate variable.
2173
Anthony Green0cfe60e2009-12-29 10:06:04 -050021742005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002175 Hans-Peter Nilsson <hp@axis.com>
2176
2177 * Makefile.am: Add CRIS support.
2178 * configure.ac: Likewise.
2179 * Makefile.in, configure, testsuite/Makefile.in,
2180 include/Makefile.in: Regenerate.
2181 * src/cris: New directory.
2182 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
2183 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
2184
2185 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
2186 \r?\n in output tests.
2187
21882005-04-12 Mike Stump <mrs@apple.com>
2189
2190 * configure: Regenerate.
2191
21922005-03-30 Hans Boehm <Hans.Boehm@hp.com>
2193
2194 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002195
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021962005-03-30 Steve Ellcey <sje@cup.hp.com>
2197
2198 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
2199 (ffi_sarg) Ditto.
2200 * src/ia64/unix.S (ffi_closure_unix): Extend gp
2201 to 64 bits in ILP32 mode.
2202 Load 64 bits even for short data.
2203
22042005-03-23 Mike Stump <mrs@apple.com>
2205
2206 * src/powerpc/darwin.S: Update for -m64 multilib.
2207 * src/powerpc/darwin_closure.S: Likewise.
2208
22092005-03-21 Zack Weinberg <zack@codesourcery.com>
2210
2211 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2212 Do not set tool_include_dir.
2213 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
2214 Regenerate.
2215 * include/Makefile.am: Set gcc_version and toollibffidir.
2216 * include/Makefile.in: Regenerate.
2217
22182005-02-22 Andrew Haley <aph@redhat.com>
2219
2220 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
2221 odd-numbered register pairs for 64-bit integer types.
2222
22232005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
2224
2225 PR libffi/20104
2226 * testsuite/libffi.call/return_ll1.c: New test case.
2227
22282005-02-11 Janis Johnson <janis187@us.ibm.com>
2229
2230 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
2231 * testsuite/libffi.call/float.c: Ditto.
2232 * testsuite/libffi.call/float2.c: Ditto.
2233 * testsuite/libffi.call/float3.c: Ditto.
2234
22352005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
2236
2237 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
2238
22392005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2240
2241 * testsuite/libffi.special/special.exp (cxx_options): Add
2242 -shared-libgcc.
2243
22442004-12-31 Richard Henderson <rth@redhat.com>
2245
2246 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
2247 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
2248 offset parameters with a type parameter; deduce size and structure
2249 alignment. Update all users.
2250
22512004-12-31 Richard Henderson <rth@redhat.com>
2252
2253 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
2254 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
2255 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
2256 into ffi_prep_closure.
2257 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
2258 from scratch.
2259
22602004-12-27 Richard Henderson <rth@redhat.com>
2261
2262 * src/x86/unix64.S: Fix typo in unwind info.
2263
22642004-12-25 Richard Henderson <rth@redhat.com>
2265
2266 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
2267 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
2268 (merge_classes): Check for it.
2269 (SSE_CLASS_P): New.
2270 (classify_argument): Pass byte_offset by value; perform all updates
2271 inside struct case.
2272 (examine_argument): Add classes argument; handle
2273 X86_64_COMPLEX_X87_CLASS.
2274 (ffi_prep_args): Merge into ...
2275 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
2276 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
2277 (ffi_fill_return_value): Remove.
2278 (ffi_prep_closure): Remove dead assert.
2279 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
2280 Rewrite to use struct register_args instead of va_list. Create
2281 flags for handling structure returns.
2282 * src/x86/unix64.S: Remove dead strings.
2283 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
2284 stack frame with ffi_call. Handle structure returns properly.
2285 (float2sse, floatfloat2sse, double2sse): Remove.
2286 (sse2float, sse2double, sse2floatfloat): Remove.
2287 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
2288 to handle structure returns properly.
2289
22902004-12-08 David Edelsohn <edelsohn@gnu.org>
2291
2292 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
2293 PICFLAG.
2294 * Makefile.in: Regenerated.
2295
22962004-12-02 Richard Sandiford <rsandifo@redhat.com>
2297
2298 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2299 * configure, aclocal.m4, Makefile.in: Regenerate.
2300 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
2301
23022004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2303
2304 * configure: Regenerate for libtool change.
2305
23062004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2307
2308 * configure: Regenerate for libtool reversion.
2309
23102004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2311
2312 * configure: Regenerate for libtool change.
2313
23142004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2315
2316 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
2317
23182004-11-23 Richard Sandiford <rsandifo@redhat.com>
2319
2320 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
2321 of jal. Use an absolute encoding for the frame information.
2322
23232004-11-23 Kelley Cook <kcook@gcc.gnu.org>
2324
2325 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
2326 * acinclude.m4: Delete logic for sincludes.
2327 * aclocal.m4, Makefile.in, configure: Regenerate.
2328 * include/Makefile: Likewise.
2329 * testsuite/Makefile: Likewise.
2330
23312004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2332
2333 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
2334 on a 8-byte boundary.
2335 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
2336
23372004-10-27 Richard Earnshaw <rearnsha@arm.com>
2338
2339 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
2340 long long values. Round stack allocation to a multiple of 8 bytes
2341 for ATPCS compatibility.
2342 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
2343 names. Handle returning long long types. Add Thumb and interworking
2344 support. Improve soft-float code.
2345
23462004-10-27 Richard Earnshaw <rearnsha@arm.com>
2347
2348 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
2349 (libffi_exit): New function.
2350 (libffi_init): Build the testglue wrapper if needed.
2351
23522004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2353
2354 PR other/18138
2355 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
2356
23572004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2358
2359 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
2360
23612004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
2362
2363 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
2364 * testsuite/libffi.call/float3.c: New test case.
2365
23662004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
2367
2368 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
2369 the function returning a structure pointed with R2.
2370 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
2371 the structure return value if T bit set. Emit position
2372 independent code and EH data if PIC.
2373
23742004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2375
2376 * Makefile.am: Add m32r support.
2377 * configure.ac: Likewise.
2378 * Makefile.in: Regenerate.
2379 * confiugre: Regenerate.
2380 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
2381 (uint64, sint64, double, longdouble)
2382 * src/m32r: New directory.
2383 * src/m32r/ffi.c: New file.
2384 * src/m32r/sysv.S: Likewise.
2385 * src/m32r/ffitarget.h: Likewise.
2386
23872004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
2388
2389 * testsuite/libffi.call/negint.c: New test case.
2390
23912004-09-14 H.J. Lu <hongjiu.lu@intel.com>
2392
2393 PR libgcj/17465
2394 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
2395 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
2396 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
2397 DYLD_LIBRARY_PATH.
2398
23992004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2400
2401 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
2402 * testsuite/libffi.call/promotion.c: Likewise.
2403 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
2404 whitespaces.
2405 * testsuite/libffi.call/return_sc.c: Likewise.
2406 * testsuite/libffi.call/return_uc.c: Likewise.
2407
24082004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2409
2410 * src/powerpc/darwin.S: Fix comments and identation.
2411 * src/powerpc/darwin_closure.S: Likewise.
2412
24132004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2414
2415 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
2416 (ffi_prep_args): Handle longdouble arguments.
2417 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
2418 longdouble.
2419 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
2420 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
2421 values.
2422 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
2423 * src/types.c: Defined longdouble size and alignment for darwin.
2424
24252004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2426
2427 * src/powerpc/aix.S: Remove whitespaces.
2428 * src/powerpc/aix_closure.S: Likewise.
2429 * src/powerpc/asm.h: Likewise.
2430 * src/powerpc/ffi.c: Likewise.
2431 * src/powerpc/ffitarget.h: Likewise.
2432 * src/powerpc/linux64.S: Likewise.
2433 * src/powerpc/linux64_closure.S: Likewise.
2434 * src/powerpc/ppc_closure.S: Likewise.
2435 * src/powerpc/sysv.S: Likewise.
2436
24372004-08-30 Anthony Green <green@redhat.com>
2438
2439 * Makefile.am: Add frv support.
2440 * Makefile.in, testsuite/Makefile.in: Rebuilt.
2441 * configure.ac: Read configure.host.
2442 * configure.in: Read configure.host.
2443 * configure.host: New file. frv-elf needs libgloss.
2444 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
2445 alignment. This is needed to frv and shouldn't harm the others.
2446 * include/ffi_common.h (ALIGN_DOWN): New macro.
2447 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
2448
24492004-08-24 David Daney <daney@avtrex.com>
2450
2451 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
2452 * testsuite/libffi.call/closure_fn1.c: Likewise.
2453 * testsuite/libffi.call/closure_fn2.c Likewise.
2454 * testsuite/libffi.call/closure_fn3.c: Likewise.
2455 * testsuite/libffi.call/closure_fn4.c: Likewise.
2456 * testsuite/libffi.call/closure_fn5.c: Likewise.
2457 * testsuite/libffi.call/cls_18byte.c: Likewise.
2458 * testsuite/libffi.call/cls_19byte.c: Likewise.
2459 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2460 * testsuite/libffi.call/cls_20byte.c: Likewise.
2461 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2462 * testsuite/libffi.call/cls_24byte.c: Likewise.
2463 * testsuite/libffi.call/cls_2byte.c: Likewise.
2464 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2465 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2466 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2467 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2468 * testsuite/libffi.call/cls_4byte.c: Likewise.
2469 * testsuite/libffi.call/cls_64byte.c: Likewise.
2470 * testsuite/libffi.call/cls_6byte.c: Likewise.
2471 * testsuite/libffi.call/cls_7byte.c: Likewise.
2472 * testsuite/libffi.call/cls_8byte.c: Likewise.
2473 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2474 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2475 * testsuite/libffi.call/cls_align_double.c: Likewise.
2476 * testsuite/libffi.call/cls_align_float.c: Likewise.
2477 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2478 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2479 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2480 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2481 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2482 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2483 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2484 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
2485 * testsuite/libffi.call/cls_double.c: Likewise.
2486 * testsuite/libffi.call/cls_float.c: Likewise.
2487 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2488 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
2489 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2490 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2491 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2492 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2493 * testsuite/libffi.call/cls_schar.c: Likewise.
2494 * testsuite/libffi.call/cls_sint.c: Likewise.
2495 * testsuite/libffi.call/cls_sshort.c: Likewise.
2496 * testsuite/libffi.call/cls_uchar.c: Likewise.
2497 * testsuite/libffi.call/cls_uint.c: Likewise.
2498 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2499 * testsuite/libffi.call/cls_ushort.c: Likewise.
2500 * testsuite/libffi.call/nested_struct.c: Likewise.
2501 * testsuite/libffi.call/nested_struct1.c: Likewise.
2502 * testsuite/libffi.call/nested_struct2.c: Likewise.
2503 * testsuite/libffi.call/nested_struct3.c: Likewise.
2504 * testsuite/libffi.call/problem1.c: Likewise.
2505 * testsuite/libffi.special/unwindtest.cc: Likewise.
2506 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
2507 to zero.
2508 * testsuite/libffi.call/cls_16byte.c: Likewise.
2509 * testsuite/libffi.call/cls_5byte.c: Likewise.
2510
25112004-08-23 David Daney <daney@avtrex.com>
2512
2513 PR libgcj/13141
2514 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
2515 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
2516 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
2517 parameters and return types.
2518 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
2519 (ffi_prep_closure): Ditto.
2520 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
2521 alignment calculations.
2522 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
2523 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
2524
25252004-08-14 Casey Marshall <csm@gnu.org>
2526
2527 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
2528 contain `FFI_TYPE_UINT64' as return type for any 64-bit
2529 integer (O32 ABI only).
2530 (ffi_prep_closure): new function.
2531 (ffi_closure_mips_inner_O32): new function.
2532 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
2533 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
2534 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
2535 64 bit integers correctly.
2536 (ffi_closure_O32): new function.
2537 Added DWARF-2 unwind info for both functions.
2538
25392004-08-10 Andrew Haley <aph@redhat.com>
2540
2541 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
2542
25432004-08-01 Robert Millan <robertmh@gnu.org>
2544
2545 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
2546 * configure: Regenerate.
2547
25482004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
2549
2550 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
2551 and mmap() explicitly instead of relying on preset autoconf cache
2552 variables.
2553 * aclocal.m4: Regenerate.
2554 * configure: Regenerate.
2555
25562004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
2557
2558 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
2559 (ffi_check_float_struct): Remove unused prototype.
2560
25612004-06-30 Geoffrey Keating <geoffk@apple.com>
2562
2563 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
2564 character on Darwin, use '\n\t' instead.
2565
25662004-06-26 Matthias Klose <doko@debian.org>
2567
2568 * libtool-version: Fix typo in revision/age.
2569
25702004-06-17 Matthias Klose <doko@debian.org>
2571
2572 * libtool-version: New.
2573 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
2574 * Makefile.in: Regenerate.
2575
25762004-06-15 Paolo Bonzini <bonzini@gnu.org>
2577
2578 * Makefile.am: Remove useless multilib rules.
2579 * Makefile.in: Regenerate.
2580 * aclocal.m4: Regenerate with automake 1.8.5.
2581 * configure.ac: Remove useless multilib configury.
2582 * configure: Regenerate.
2583
25842004-06-15 Paolo Bonzini <bonzini@gnu.org>
2585
2586 * .cvsignore: New file.
2587
25882004-06-10 Jakub Jelinek <jakub@redhat.com>
2589
2590 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
2591 fp_done.
2592 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
2593 changed from 8.
2594
25952004-06-06 Sean McNeil <sean@mcneil.com>
2596
2597 * configure.ac: Add x86_64-*-freebsd* support.
2598 * configure: Regenerate.
2599
26002004-04-26 Joe Buck <jbuck@welsh-buck.org>
2601
2602 Bug 15093
2603 * configure.ac: Test for existence of mmap and sys/mman.h before
2604 checking blacklist. Fix suggested by Jim Wilson.
2605 * configure: Regenerate.
2606
26072004-04-26 Matt Austern <austern@apple.com>
2608
2609 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
2610 FDE location.
2611 * src/powerpc/darwin_closure.S: Likewise.
2612
26132004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
2614
2615 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
2616 error. Reported by Thomas Heller <theller@python.net>.
2617 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
2618 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
2619
26202004-03-20 Matthias Klose <doko@debian.org>
2621
2622 * src/pa/linux.S: Fix typo.
2623
26242004-03-19 Matthias Klose <doko@debian.org>
2625
2626 * Makefile.am: Update.
2627 * Makefile.in: Regenerate.
2628 * src/pa/ffi.h.in: Remove.
2629 * src/pa/ffitarget.h: New file.
2630
26312004-02-10 Randolph Chung <tausq@debian.org>
2632
2633 * Makefile.am: Add PA support.
2634 * Makefile.in: Regenerate.
2635 * include/Makefile.in: Regenerate.
2636 * configure.ac: Add PA target.
2637 * configure: Regenerate.
2638 * src/pa/ffi.c: New file.
2639 * src/pa/ffi.h.in: Add PA support.
2640 * src/pa/linux.S: New file.
2641 * prep_cif.c: Add PA support.
2642
26432004-03-16 Hosaka Yuji <hos@tamanegi.org>
2644
2645 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
2646 double.
2647 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
2648 with ecif->cif->flags.
2649 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
2650 with cif->flags.
2651 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
2652 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
2653 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
2654 sc_retstruct2b): Add for 1 or 2-bytes struct case.
2655
26562004-03-15 Kelley Cook <kcook@gcc.gnu.org>
2657
2658 * configure.in: Rename file to ...
2659 * configure.ac: ... this.
2660 * fficonfig.h.in: Regenerate.
2661 * Makefile.in: Regenerate.
2662 * include/Makefile.in: Regenerate.
2663 * testsuite/Makefile.in: Regenerate.
2664
26652004-03-12 Matt Austern <austern@apple.com>
2666
2667 * src/powerpc/darwin.S: Fix EH information so it corresponds to
2668 changes in EH format resulting from addition of linkonce support.
2669 * src/powerpc/darwin_closure.S: Likewise.
2670
26712004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
2672 Paolo Bonzini <bonzini@gnu.org>
2673
2674 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
2675 Remove VPATH. Remove rules for object files. Remove multilib support.
2676 (AM_CCASFLAGS): Add.
2677 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
2678 (AC_PREREQ): Bump version to 2.59.
2679 (AC_INIT): Fill with version info and bug address.
2680 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
2681 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
2682 De-precious CC so that the right flags are passed down to multilibs.
2683 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
2684 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
2685 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
2686 * configure: Rebuilt.
2687 * aclocal.m4: Likewise.
2688 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
2689 * fficonfig.h.in: Likewise.
2690
26912004-03-11 Andreas Schwab <schwab@suse.de>
2692
2693 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
2694 arguments from fp registers only for the first 8 parameter slots.
2695 Don't convert a float parameter when passed in memory.
2696
26972004-03-09 Hans-Peter Nilsson <hp@axis.com>
2698
2699 * configure: Regenerate for config/accross.m4 correction.
2700
27012004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
2702
2703 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
2704 ecif->cif->bytes to bytes.
2705 (ffi_prep_cif_machdep): Add braces around nested if statement.
2706
27072004-02-09 Alan Modra <amodra@bigpond.net.au>
2708
2709 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
2710
2711 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
2712 (ffi_closure_helper_LINUX64): Fix typo.
2713 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
2714 for powerpc64-*-*.
2715 * testsuite/libffi.call/float.c: Likewise.
2716 * testsuite/libffi.call/float2.c: Likewise.
2717
27182004-02-08 Alan Modra <amodra@bigpond.net.au>
2719
2720 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
2721 long double function return and long double arg handling.
2722 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
2723 Use "end_pfr" instead of "nf". Correct long double handling.
2724 Localise "temp".
2725 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
2726 return value.
2727 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
2728 space for long double return value. Adjust stack frame and offsets.
2729 Load f2 long double return.
2730
27312004-02-07 Alan Modra <amodra@bigpond.net.au>
2732
2733 * src/types.c: Use 16 byte long double for POWERPC64.
2734
27352004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2736
2737 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
2738 when the structure return address is passed in %o0.
2739 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
2740 (ffi_v9_layout_struct): Align the field following a nested structure
2741 on a word boundary. Use memmove instead of memcpy.
2742 (ffi_call): Update call to ffi_V9_return_struct.
2743 (ffi_prep_closure): Define 'ctx' only for V8.
2744 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
2745 and ffi_closure_sparc_inner_v9.
2746 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
2747 Always skip the structure return address. For structures and long
2748 doubles, copy the argument directly.
2749 (ffi_closure_sparc_inner_v9): Skip the structure return address only
2750 if required. Shift the maximum floating-point slot accordingly. For
2751 big structures, copy the argument directly; otherwise, left-justify the
2752 argument and call ffi_v9_layout_struct to lay out the structure on
2753 the stack.
2754 * src/sparc/v8.S: Undef STACKFRAME before defining it.
2755 (ffi_closure_v8): Pass the structure return address. Update call to
2756 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
2757 Skip the 'unimp' insn when returning long doubles and structures.
2758 * src/sparc/v9.S: Undef STACKFRAME before defining it.
2759 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
2760 FFI_TYPE_INT handling. Load structures both in integers and
2761 floating-point registers on return.
2762 * README: Update status of the SPARC port.
2763
27642004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
2765
2766 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
2767 as of type ffi_arg.
2768 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
2769
27702004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
2771
2772 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
2773 value as of type ffi_arg, not unsigned int.
2774
27752004-01-21 Michael Ritzert <ritzert@t-online.de>
2776
2777 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
2778 of the LHS.
2779
27802004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2781
2782 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
2783 Solaris.
2784
27852004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2786
2787 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
2788 to void *.
2789
27902003-12-10 Richard Henderson <rth@redhat.com>
2791
2792 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
2793 size_t instead of int.
2794
27952003-12-04 Hosaka Yuji <hos@tamanegi.org>
2796
2797 * testsuite/libffi.call/many_win32.c: Include <float.h>.
2798 * testsuite/libffi.call/many_win32.c (main): Replace variable
2799 int i with unsigned long ul.
2800
2801 * testsuite/libffi.call/cls_align_uint64.c: New test case.
2802 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2803 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2804 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2805 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2806 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2807 * testsuite/libffi.call/cls_align_float.c: Likewise.
2808 * testsuite/libffi.call/cls_align_double.c: Likewise.
2809 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2810 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2811
28122003-12-02 Hosaka Yuji <hos@tamanegi.org>
2813
2814 PR other/13221
2815 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
2816 Align arguments to 32 bits.
2817
28182003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
2819
2820 PR other/13221
2821 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
2822 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2823 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2824 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2825 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2826 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2827
2828 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
2829
28302003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2831
2832 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
2833 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2834
28352003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
2836
2837 * Makefile.in: Rebuilt.
2838 * configure: Likewise.
2839 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
2840 the right type.
2841
28422003-11-21 Andreas Jaeger <aj@suse.de>
2843 Andreas Tobler <a.tobler@schweiz.ch>
2844
2845 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
2846 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
2847 * Makefile.in: Rebuilt.
2848 * aclocal.m4: Likewise.
2849 * configure: Likewise.
2850 * fficonfig.h.in: Likewise.
2851 * testsuite/lib/libffi-dg.exp: Add include dir.
2852 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
2853 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2854 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
2855 for ffi_closure if available.
2856 * testsuite/libffi.call/closure_fn1.c: Likewise.
2857 * testsuite/libffi.call/closure_fn2.c: Likewise.
2858 * testsuite/libffi.call/closure_fn3.c: Likewise.
2859 * testsuite/libffi.call/closure_fn4.c: Likewise.
2860 * testsuite/libffi.call/closure_fn5.c: Likewise.
2861 * testsuite/libffi.call/cls_12byte.c: Likewise.
2862 * testsuite/libffi.call/cls_16byte.c: Likewise.
2863 * testsuite/libffi.call/cls_18byte.c: Likewise.
2864 * testsuite/libffi.call/cls_19byte.c: Likewise.
2865 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2866 * testsuite/libffi.call/cls_20byte.c: Likewise.
2867 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2868 * testsuite/libffi.call/cls_24byte.c: Likewise.
2869 * testsuite/libffi.call/cls_2byte.c: Likewise.
2870 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2871 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2872 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2873 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2874 * testsuite/libffi.call/cls_4byte.c: Likewise.
2875 * testsuite/libffi.call/cls_5byte.c: Likewise.
2876 * testsuite/libffi.call/cls_64byte.c: Likewise.
2877 * testsuite/libffi.call/cls_6byte.c: Likewise.
2878 * testsuite/libffi.call/cls_7byte.c: Likewise.
2879 * testsuite/libffi.call/cls_8byte.c: Likewise.
2880 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2881 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2882 * testsuite/libffi.call/cls_double.c: Likewise.
2883 * testsuite/libffi.call/cls_float.c: Likewise.
2884 * testsuite/libffi.call/cls_schar.c: Likewise.
2885 * testsuite/libffi.call/cls_sint.c: Likewise.
2886 * testsuite/libffi.call/cls_sshort.c: Likewise.
2887 * testsuite/libffi.call/cls_uchar.c: Likewise.
2888 * testsuite/libffi.call/cls_uint.c: Likewise.
2889 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2890 * testsuite/libffi.call/cls_ushort.c: Likewise.
2891 * testsuite/libffi.call/nested_struct.c: Likewise.
2892 * testsuite/libffi.call/nested_struct1.c: Likewise.
2893 * testsuite/libffi.call/nested_struct2.c: Likewise.
2894 * testsuite/libffi.call/nested_struct3.c: Likewise.
2895 * testsuite/libffi.call/problem1.c: Likewise.
2896 * testsuite/libffi.special/unwindtest.cc: Likewise.
2897
28982003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
2899
2900 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2901
29022003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2903
2904 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2905 Add -lgcc_s to additional flags.
2906
29072003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
2908
2909 * configure.in, include/Makefile.am: PR libgcj/11147, install
2910 the ffitarget.h header file in a gcc versioned and target
2911 dependent place.
2912 * configure: Regenerated.
2913 * Makefile.in, include/Makefile.in: Likewise.
2914 * testsuite/Makefile.in: Likewise.
2915
29162003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
2917
2918 * testsuite/libffi.call/closure_fn0.c: Print result and check
2919 with dg-output to make debugging easier.
2920 * testsuite/libffi.call/closure_fn1.c: Likewise.
2921 * testsuite/libffi.call/closure_fn2.c: Likewise.
2922 * testsuite/libffi.call/closure_fn3.c: Likewise.
2923 * testsuite/libffi.call/closure_fn4.c: Likewise.
2924 * testsuite/libffi.call/closure_fn5.c: Likewise.
2925 * testsuite/libffi.call/cls_12byte.c: Likewise.
2926 * testsuite/libffi.call/cls_16byte.c: Likewise.
2927 * testsuite/libffi.call/cls_18byte.c: Likewise.
2928 * testsuite/libffi.call/cls_19byte.c: Likewise.
2929 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2930 * testsuite/libffi.call/cls_20byte.c: Likewise.
2931 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2932 * testsuite/libffi.call/cls_24byte.c: Likewise.
2933 * testsuite/libffi.call/cls_2byte.c: Likewise.
2934 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2935 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2936 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2937 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2938 * testsuite/libffi.call/cls_4byte.c: Likewise.
2939 * testsuite/libffi.call/cls_5byte.c: Likewise.
2940 * testsuite/libffi.call/cls_64byte.c: Likewise.
2941 * testsuite/libffi.call/cls_6byte.c: Likewise.
2942 * testsuite/libffi.call/cls_7byte.c: Likewise.
2943 * testsuite/libffi.call/cls_8byte.c: Likewise.
2944 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2945 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2946 * testsuite/libffi.call/cls_double.c: Likewise.
2947 * testsuite/libffi.call/cls_float.c: Likewise.
2948 * testsuite/libffi.call/cls_schar.c: Likewise.
2949 * testsuite/libffi.call/cls_sint.c: Likewise.
2950 * testsuite/libffi.call/cls_sshort.c: Likewise.
2951 * testsuite/libffi.call/cls_uchar.c: Likewise.
2952 * testsuite/libffi.call/cls_uint.c: Likewise.
2953 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2954 * testsuite/libffi.call/cls_ushort.c: Likewise.
2955 * testsuite/libffi.call/problem1.c: Likewise.
2956
2957 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2958 static.
2959
29602003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2961
2962 * testsuite/libffi.call/cls_9byte2.c: New test case.
2963 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2964 * testsuite/libffi.call/cls_64byte.c: Likewise.
2965 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2966 * testsuite/libffi.call/cls_19byte.c: Likewise.
2967 * testsuite/libffi.call/cls_18byte.c: Likewise.
2968 * testsuite/libffi.call/closure_fn4.c: Likewise.
2969 * testsuite/libffi.call/closure_fn5.c: Likewise.
2970 * testsuite/libffi.call/cls_schar.c: Likewise.
2971 * testsuite/libffi.call/cls_sint.c: Likewise.
2972 * testsuite/libffi.call/cls_sshort.c: Likewise.
2973 * testsuite/libffi.call/nested_struct2.c: Likewise.
2974 * testsuite/libffi.call/nested_struct3.c: Likewise.
2975
29762003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2977
2978 * testsuite/libffi.call/cls_double.c: Do a check on the result.
2979 * testsuite/libffi.call/cls_uchar.c: Likewise.
2980 * testsuite/libffi.call/cls_uint.c: Likewise.
2981 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2982 * testsuite/libffi.call/cls_ushort.c: Likewise.
2983 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
2984
29852003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
2986
2987 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
2988 the initialization.
2989
29902003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
2991
2992 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
2993 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
2994
29952003-10-22 David Daney <ddaney@avtrex.com>
2996
2997 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
2998 __attribute__((__mode__(__SI__))) and friends.
2999
30002003-10-22 Andreas Schwab <schwab@suse.de>
3001
3002 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
3003
30042003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
3005
3006 * configure.in: AC_LINK_FILES(ffitarget.h).
3007 * configure: Regenerate.
3008 * Makefile.in: Likewise.
3009 * include/Makefile.in: Likewise.
3010 * testsuite/Makefile.in: Likewise.
3011 * fficonfig.h.in: Likewise.
3012
30132003-10-21 Paolo Bonzini <bonzini@gnu.org>
3014 Richard Henderson <rth@redhat.com>
3015
3016 Avoid that ffi.h includes fficonfig.h.
3017
3018 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
3019 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
3020 (TARGET_SRC_MIPS_SGI): Removed.
3021 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
3022 (MIPS_SGI): Removed.
3023 (CLEANFILES): Removed.
3024 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
3025 targets.
3026 * acconfig.h: Removed.
3027 * configure.in: Compute sizeofs only for double and long double.
3028 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
3029 into AC_DEFINE instead of using acconfig.h. Create
3030 include/ffitarget.h instead of include/fficonfig.h. Rename
3031 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
3032 AC_DEFINE EH_FRAME_FLAGS.
3033 * include/Makefile.am (DISTCLEANFILES): New automake macro.
3034 (hack_DATA): Add ffitarget.h.
3035 * include/ffi.h.in: Remove all system specific definitions.
3036 Declare raw API even if it is not installed, why bother?
3037 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
3038 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
3039 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
3040 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
3041 * include/ffi_common.h (bool): Do not define.
3042 (ffi_assert): Accept failed assertion.
3043 (ffi_type_test): Return void and accept file/line.
3044 (FFI_ASSERT): Pass stringized failed assertion.
3045 (FFI_ASSERT_AT): New macro.
3046 (FFI_ASSERT_VALID_TYPE): New macro.
3047 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
3048 UINT64, SINT64): Define here with gcc's __attribute__ macro
3049 instead of in ffi.h
3050 (FLOAT32, ALIGN): Define here instead of in ffi.h
3051 * include/ffi-mips.h: Removed. Its content moved to
3052 src/mips/ffitarget.h after separating assembly and C sections.
3053 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
3054 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
3055 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
3056 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
3057 SIZEOF_ARG -> FFI_SIZEOF_ARG.
3058 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
3059 * src/debug.c (ffi_assert): Accept stringized failed assertion.
3060 (ffi_type_test): Rewritten.
3061 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
3062 FFI_ASSERT_VALID_TYPE.
3063 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
3064 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
3065 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
3066 src/s390/ffitarget.h, src/sh/ffitarget.h,
3067 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
3068 src/x86/ffitarget.h: New files.
3069 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
3070 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
3071 src/powerpc/aix.S, src/powerpc/darwin.S,
3072 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
3073 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
3074 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
3075 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
3076 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
3077 include fficonfig.h
3078
30792003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3080
3081 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
3082 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
3083
30842003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
3085
3086 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
3087 Used when FFI_DEBUG = 1.
3088
30892003-10-14 Alan Modra <amodra@bigpond.net.au>
3090
3091 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
3092 and align.
3093
30942003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3095
3096 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
3097 FFI_MIPS_O32 for O32 ABI.
3098
30992003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
3100
3101 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
3102 SPARC64. Cleanup whitespaces.
3103
31042003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
3105
3106 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
3107 strongarm, xscale. Cleanup whitespaces.
3108 * testsuite/libffi.call/closure_fn1.c: Likewise.
3109 * testsuite/libffi.call/closure_fn2.c: Likewise.
3110 * testsuite/libffi.call/closure_fn3.c: Likewise.
3111 * testsuite/libffi.call/cls_12byte.c: Likewise.
3112 * testsuite/libffi.call/cls_16byte.c: Likewise.
3113 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3114 * testsuite/libffi.call/cls_20byte.c: Likewise.
3115 * testsuite/libffi.call/cls_24byte.c: Likewise.
3116 * testsuite/libffi.call/cls_2byte.c: Likewise.
3117 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3118 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3119 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3120 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3121 * testsuite/libffi.call/cls_4byte.c: Likewise.
3122 * testsuite/libffi.call/cls_5byte.c: Likewise.
3123 * testsuite/libffi.call/cls_6byte.c: Likewise.
3124 * testsuite/libffi.call/cls_7byte.c: Likewise.
3125 * testsuite/libffi.call/cls_8byte.c: Likewise.
3126 * testsuite/libffi.call/cls_double.c: Likewise.
3127 * testsuite/libffi.call/cls_float.c: Likewise.
3128 * testsuite/libffi.call/cls_uchar.c: Likewise.
3129 * testsuite/libffi.call/cls_uint.c: Likewise.
3130 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3131 * testsuite/libffi.call/cls_ushort.c: Likewise.
3132 * testsuite/libffi.call/nested_struct.c: Likewise.
3133 * testsuite/libffi.call/nested_struct1.c: Likewise.
3134 * testsuite/libffi.call/problem1.c: Likewise.
3135 * testsuite/libffi.special/unwindtest.cc: Likewise.
3136 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
3137
31382003-09-18 David Edelsohn <edelsohn@gnu.org>
3139
3140 * src/powerpc/aix.S: Cleanup whitespaces.
3141 * src/powerpc/aix_closure.S: Likewise.
3142
31432003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3144
3145 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
3146 * src/powerpc/darwin_closure.S: Likewise.
3147 * src/powerpc/ffi_darwin.c: Likewise.
3148
31492003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3150 David Edelsohn <edelsohn@gnu.org>
3151
3152 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
3153 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
3154 parameter stack.
3155 * src/powerpc/darwin_closure.S: Likewise.
3156 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
3157 according to the Darwin/AIX ABI.
3158 (ffi_prep_cif_machdep): Likewise.
3159 (ffi_closure_helper_DARWIN): Likewise.
3160 Remove the outgoing parameter stack logic. Simplify the evaluation
3161 of the different CASE types.
3162 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
3163 statement in the trampoline code.
3164
31652003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
3166
3167 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
3168 for the register size.
3169 (ffi_closure_helper_SYSV): Handle the structure return value
3170 address correctly.
3171 (ffi_closure_helper_SYSV): Return the appropriate type when
3172 the registers are used for the structure return value.
3173 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
3174 the 64-bit return value. Update copyright years.
3175
31762003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3177
3178 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
3179 srcdir for ffi_mips.h.
3180
31812003-09-12 Alan Modra <amodra@bigpond.net.au>
3182
3183 * src/prep_cif.c (initialize_aggregate): Include tail padding in
3184 structure size.
3185 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
3186 placement of float result.
3187 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
3188 cast of "resp" for big-endian 64 bit machines.
3189
31902003-09-11 Alan Modra <amodra@bigpond.net.au>
3191
3192 * src/types.c (double, longdouble): Merge identical SH and ARM
3193 typedefs, and add POWERPC64.
3194 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
3195 struct split over gpr and rest.
3196 (ffi_prep_cif_machdep): Correct intarg_count for structures.
3197 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
3198
31992003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
3200
3201 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
3202 passing correctly.
3203
32042003-09-09 Alan Modra <amodra@bigpond.net.au>
3205
3206 * configure: Regenerate.
3207
32082003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3209
3210 * Makefile.am: Remove build rules for ffitest.
3211 * Makefile.in: Rebuilt.
3212
32132003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3214
3215 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
3216 about implicit declaration of abort().
3217
32182003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3219
3220 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
3221 * Makefile.in: Rebuilt.
3222 * configure.in: Add dejagnu test framework.
3223 * configure: Rebuilt.
3224
3225 * testsuite/Makefile.am: New file.
3226 * testsuite/Makefile.in: Built
3227 * testsuite/lib/libffi-dg.exp: New file.
3228 * testsuite/config/default.exp: Likewise.
3229 * testsuite/libffi.call/call.exp: Likewise.
3230 * testsuite/libffi.call/ffitest.h: Likewise.
3231 * testsuite/libffi.call/closure_fn0.c: Likewise.
3232 * testsuite/libffi.call/closure_fn1.c: Likewise.
3233 * testsuite/libffi.call/closure_fn2.c: Likewise.
3234 * testsuite/libffi.call/closure_fn3.c: Likewise.
3235 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3236 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3237 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3238 * testsuite/libffi.call/cls_2byte.c: Likewise.
3239 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3240 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3241 * testsuite/libffi.call/cls_4byte.c: Likewise.
3242 * testsuite/libffi.call/cls_5byte.c: Likewise.
3243 * testsuite/libffi.call/cls_6byte.c: Likewise.
3244 * testsuite/libffi.call/cls_7byte.c: Likewise.
3245 * testsuite/libffi.call/cls_8byte.c: Likewise.
3246 * testsuite/libffi.call/cls_12byte.c: Likewise.
3247 * testsuite/libffi.call/cls_16byte.c: Likewise.
3248 * testsuite/libffi.call/cls_20byte.c: Likewise.
3249 * testsuite/libffi.call/cls_24byte.c: Likewise.
3250 * testsuite/libffi.call/cls_double.c: Likewise.
3251 * testsuite/libffi.call/cls_float.c: Likewise.
3252 * testsuite/libffi.call/cls_uchar.c: Likewise.
3253 * testsuite/libffi.call/cls_uint.c: Likewise.
3254 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3255 * testsuite/libffi.call/cls_ushort.c: Likewise.
3256 * testsuite/libffi.call/float.c: Likewise.
3257 * testsuite/libffi.call/float1.c: Likewise.
3258 * testsuite/libffi.call/float2.c: Likewise.
3259 * testsuite/libffi.call/many.c: Likewise.
3260 * testsuite/libffi.call/many_win32.c: Likewise.
3261 * testsuite/libffi.call/nested_struct.c: Likewise.
3262 * testsuite/libffi.call/nested_struct1.c: Likewise.
3263 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
3264 * testsuite/libffi.call/problem1.c: Likewise.
3265 * testsuite/libffi.call/promotion.c: Likewise.
3266 * testsuite/libffi.call/return_ll.c: Likewise.
3267 * testsuite/libffi.call/return_sc.c: Likewise.
3268 * testsuite/libffi.call/return_uc.c: Likewise.
3269 * testsuite/libffi.call/strlen.c: Likewise.
3270 * testsuite/libffi.call/strlen_win32.c: Likewise.
3271 * testsuite/libffi.call/struct1.c: Likewise.
3272 * testsuite/libffi.call/struct2.c: Likewise.
3273 * testsuite/libffi.call/struct3.c: Likewise.
3274 * testsuite/libffi.call/struct4.c: Likewise.
3275 * testsuite/libffi.call/struct5.c: Likewise.
3276 * testsuite/libffi.call/struct6.c: Likewise.
3277 * testsuite/libffi.call/struct7.c: Likewise.
3278 * testsuite/libffi.call/struct8.c: Likewise.
3279 * testsuite/libffi.call/struct9.c: Likewise.
3280 * testsuite/libffi.special/special.exp: New file.
3281 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3282 * testsuite/libffi.special/unwindtest.cc: Likewise.
3283
3284
32852003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3286
3287 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
3288 copyright years.
3289
32902003-08-02 Alan Modra <amodra@bigpond.net.au>
3291
3292 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
3293 structure passing.
3294 (ffi_closure_helper_LINUX64): Likewise.
3295 * src/powerpc/linux64.S: Remove code writing to parm save area.
3296 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
3297 address in lr from ffi_closure_helper_LINUX64 call to calculate
3298 table address. Optimize function tail.
3299
33002003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
3301
3302 * src/sparc/ffi.c: Handle all floating point registers.
3303 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
3304
33052003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3306
3307 * README: Note that libffi is not part of GCC. Update the project
3308 URL and status.
3309
33102003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3311
3312 * src/powerpc/ppc_closure.S: Include ffi.h.
3313
33142003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3315
3316 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
3317 Use C style comments.
3318
33192003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3320
3321 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
3322 * Makefile.in: Regenerate.
3323 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
3324 * configure: Regenerate.
3325 * include/ffi.h.in: Add SHmedia support.
3326 * src/sh64/ffi.c: New file.
3327 * src/sh64/sysv.S: New file.
3328
33292003-05-16 Jakub Jelinek <jakub@redhat.com>
3330
3331 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
3332 should be read-only.
3333 * configure: Rebuilt.
3334 * fficonfig.h.in: Rebuilt.
3335 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
3336 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
3337 * src/powerpc/linux64.S: Likewise.
3338 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
3339 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
3340 if -fpic/-fPIC/-mrelocatable.
3341 * src/powerpc/powerpc_closure.S: Likewise.
3342 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
3343 #write in .eh_frame flags.
3344 * src/sparc/v9.S: Likewise.
3345 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
3346 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
3347 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
3348
33492003-05-07 Jeff Sturm <jsturm@one-point.com>
3350
3351 Fixes PR bootstrap/10656
3352 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
3353 support for .register pseudo-op.
3354 * src/sparc/v8.S: Use it.
3355 * fficonfig.h.in: Rebuilt.
3356 * configure: Rebuilt.
3357
33582003-04-18 Jakub Jelinek <jakub@redhat.com>
3359
3360 * include/ffi.h.in (POWERPC64): Define if 64-bit.
3361 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
3362 Make it the default on POWERPC64.
3363 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
3364 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
3365 * configure: Rebuilt.
3366 * src/powerpc/ffi.c (hidden): Define.
3367 (ffi_prep_args_SYSV): Renamed from
3368 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
3369 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
3370 ASM_NEEDS_REGISTERS64): New.
3371 (ffi_prep_args64): New function.
3372 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
3373 (ffi_call): Likewise.
3374 (ffi_prep_closure): Likewise.
3375 (flush_icache): Surround by #ifndef POWERPC64.
3376 (ffi_dblfl): New union type.
3377 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
3378 (ffi_closure_helper_LINUX64): New function.
3379 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
3380 __powerpc64__.
3381 * src/powerpc/sysv.S: Likewise.
3382 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
3383 * src/powerpc/linux64.S: New file.
3384 * src/powerpc/linux64_closure.S: New file.
3385 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
3386 src/powerpc/linux64_closure.S.
3387 (TARGET_SRC_POWERPC): Likewise.
3388
3389 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
3390 closure_test_fn3): Fix result printing on big-endian 64-bit
3391 machines.
3392 (main): Print tst2_arg instead of uninitialized tst2_result.
3393
3394 * src/ffitest.c (main): Hide what closure pointer really points to
3395 from the compiler.
3396
33972003-04-16 Richard Earnshaw <rearnsha@arm.com>
3398
3399 * configure.in (arm-*-netbsdelf*): Add configuration.
3400 (configure): Regenerated.
3401
34022003-04-04 Loren J. Rittle <ljrittle@acm.org>
3403
3404 * include/Makefile.in: Regenerate.
3405
34062003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3407
3408 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
3409 bit mode.
3410 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
3411 Receive closure pointer through parameter, read args using
3412 __builtin_dwarf_cfa.
3413 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
3414
34152003-03-12 Andreas Schwab <schwab@suse.de>
3416
3417 * configure.in: Avoid trailing /. in toolexeclibdir.
3418 * configure: Rebuilt.
3419
34202003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
3421
3422 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
3423
34242003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
3425
3426 * libffi/src/powerpc/darwin_closure.S:
3427 Fix alignement bug, allocate 8 bytes for the result.
3428 * libffi/src/powerpc/aix_closure.S:
3429 Likewise.
3430 * libffi/src/powerpc/ffi_darwin.c:
3431 Update stackframe description for aix/darwin_closure.S.
3432
34332003-02-06 Jakub Jelinek <jakub@redhat.com>
3434
3435 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
3436 attribute.
3437
34382003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
3439 Andreas Schwab <schwab@suse.de>
3440
3441 * configure.in: Adjust command to source config-ml.in to account
3442 for changes to the libffi_basedir definition.
3443 (libffi_basedir): Remove ${srcdir} from value and include trailing
3444 slash if nonempty.
3445
3446 * configure: Regenerate.
3447
34482003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3449
3450 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
3451
34522003-01-28 Andrew Haley <aph@redhat.com>
3453
3454 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
3455 * src/x86/ffi64.c (ffi_prep_closure): New.
3456 (ffi_closure_UNIX64_inner): New.
3457 * src/x86/unix64.S (ffi_closure_UNIX64): New.
3458
34592003-01-27 Alexandre Oliva <aoliva@redhat.com>
3460
3461 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
3462 Remove USE_LIBDIR conditional.
3463 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
3464 * Makefile.in, configure: Rebuilt.
3465
34662003-01027 David Edelsohn <edelsohn@gnu.org>
3467
3468 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
3469 * Makefile.in: Regenerate.
3470
34712003-01-22 Andrew Haley <aph@redhat.com>
3472
3473 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
3474 unwind info.
3475
34762003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3477
3478 * src/powerpc/darwin.S: Add unwind info.
3479 * src/powerpc/darwin_closure.S: Likewise.
3480
34812003-01-14 Andrew Haley <aph@redhat.com>
3482
3483 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
3484 (ffi_prep_cif_machdep): Likewise.
3485 * src/x86/unix64.S: Add unwind info.
3486
34872003-01-14 Andreas Jaeger <aj@suse.de>
3488
3489 * src/ffitest.c (main): Only use ffi_closures if those are
3490 supported.
3491
34922003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
3493
3494 * libffi/src/ffitest.c
3495 add closure testcases
3496
34972003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
3498
3499 * libffi/src/powerpc/ffi.c
3500 fix alignment bug for float (4 byte aligned iso 8 byte)
3501
35022003-01-09 Geoffrey Keating <geoffk@apple.com>
3503
3504 * src/powerpc/ffi_darwin.c: Remove RCS version string.
3505 * src/powerpc/darwin.S: Remove RCS version string.
3506
35072003-01-03 Jeff Sturm <jsturm@one-point.com>
3508
3509 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
3510 * src/ffitest.c (main): Use static storage for closure.
3511 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
3512 * src/sparc/v8.S (ffi_closure_v8): New.
3513 * src/sparc/v9.S (ffi_closure_v9): New.
3514
35152002-11-10 Ranjit Mathew <rmathew@hotmail.com>
3516
3517 * include/ffi.h.in: Added FFI_STDCALL ffi_type
3518 enumeration for X86_WIN32.
3519 * src/x86/win32.S: Added ffi_call_STDCALL function
3520 definition.
3521 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
3522 switch cases for recognising FFI_STDCALL and
3523 calling ffi_call_STDCALL if target is X86_WIN32.
3524 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
3525 stdcall versions of the "my_strlen" and "many"
3526 test functions (for X86_WIN32).
3527 Added test cases to test stdcall invocation using
3528 these functions.
3529
35302002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
3531
3532 * src/sh/sysv.S: Add DWARF2 unwind info.
3533
35342002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
3535
3536 * src/s390/sysv.S (.eh_frame section): Make section read-only.
3537
35382002-11-26 Jim Wilson <wilson@redhat.com>
3539
3540 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
3541
35422002-11-23 H.J. Lu <hjl@gnu.org>
3543
3544 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
3545 Include ../config/accross.m4.
3546 * aclocal.m4; Rebuild.
3547 * configure: Likewise.
3548
35492002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
3550
3551 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
3552
35532002-11-11 DJ Delorie <dj@redhat.com>
3554
3555 * configure.in: Look for common files in the right place.
3556
35572002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
3558
3559 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
3560 raw data as _Jv_word values, not ffi_raw.
3561 (ffi_java_ptrarray_to_raw): Likewise.
3562 (ffi_java_rvalue_to_raw): New function.
3563 (ffi_java_raw_call): Call it.
3564 (ffi_java_raw_to_rvalue): New function.
3565 (ffi_java_translate_args): Call it.
3566 * src/ffitest.c (closure_test_fn): Interpret return value
3567 as ffi_arg, not int.
3568 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
3569 FFI_TYPE_POINTER case.
3570 (ffi_closure_helper_SYSV): Likewise. Also, assume return
3571 values extended to word size.
3572
35732002-10-02 Andreas Jaeger <aj@suse.de>
3574
3575 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
3576
35772002-10-01 Bo Thorsen <bo@smetana.suse.de>
3578
3579 * include/ffi.h.in: Fix i386 win32 compilation.
3580
35812002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
3582
3583 * configure.in: Add s390x-*-linux-* target.
3584 * configure: Regenerate.
3585 * include/ffi.h.in: Define S390X for s390x targets.
3586 (FFI_CLOSURES): Define for s390/s390x.
3587 (FFI_TRAMPOLINE_SIZE): Likewise.
3588 (FFI_NATIVE_RAW_API): Likewise.
3589 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
3590 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
3591 * src/s390/ffi.c: Major rework of existing code. Add support for
3592 s390x targets. Add closure support.
3593 * src/s390/sysv.S: Likewise.
3594
35952002-09-29 Richard Earnshaw <rearnsha@arm.com>
3596
3597 * src/arm/sysv.S: Fix typo.
3598
35992002-09-28 Richard Earnshaw <rearnsha@arm.com>
3600
3601 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
3602 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
3603 (ffi_call_SYSV): Handle soft-float.
3604
36052002-09-27 Bo Thorsen <bo@suse.de>
3606
3607 * include/ffi.h.in: Fix multilib x86-64 support.
3608
36092002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3610
3611 * Makefile.am (all-multi): Fix multilib parallel build.
3612
36132002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
3614
3615 * configure.in (sh[34]*-*-linux*): Add brackets.
3616 * configure: Regenerate.
3617
36182002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
3619
3620 * Makefile.am: Add SH support.
3621 * Makefile.in: Regenerate.
3622 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
3623 * configure: Regenerate.
3624 * include/ffi.h.in: Add SH support.
3625 * src/sh/ffi.c: New file.
3626 * src/sh/sysv.S: New file.
3627 * src/types.c: Add SH support.
3628
36292002-07-16 Bo Thorsen <bo@suse.de>
3630
3631 * src/x86/ffi64.c: New file that adds x86-64 support.
3632 * src/x86/unix64.S: New file that handles argument setup for
3633 x86-64.
3634 * src/x86/sysv.S: Don't use this on x86-64.
3635 * src/x86/ffi.c: Don't use this on x86-64.
3636 Remove unused vars.
3637 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
3638 for x86-64.
3639 * src/ffitest.c (struct6): New test that tests a special case in
3640 the x86-64 ABI.
3641 (struct7): Likewise.
3642 (struct8): Likewise.
3643 (struct9): Likewise.
3644 (closure_test_fn): Silence warning about this when it's not used.
3645 (main): Add the new tests.
3646 (main): Fix a couple of wrong casts and silence some compiler warnings.
3647 * include/ffi.h.in: Add x86-64 ABI definition.
3648 * fficonfig.h.in: Regenerate.
3649 * Makefile.am: Add x86-64 support.
3650 * configure.in: Likewise.
3651 * Makefile.in: Regenerate.
3652 * configure: Likewise.
3653
36542002-06-24 Bo Thorsen <bo@suse.de>
3655
3656 * src/types.c: Merge settings for similar architectures.
3657 Add x86-64 sizes and alignments.
3658
36592002-06-23 Bo Thorsen <bo@suse.de>
3660
3661 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
3662 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
3663 * src/mips/ffi.c (ffi_prep_args): Likewise.
3664 * src/m68k/ffi.c (ffi_prep_args): Likewise.
3665
36662002-07-18 H.J. Lu (hjl@gnu.org)
3667
3668 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
3669 (libffi_la_SOURCES): Support MIPS_LINUX.
3670 (libffi_convenience_la_SOURCES): Likewise.
3671 * Makefile.in: Regenerated.
3672
3673 * configure.in (mips64*-*): Skip.
3674 (mips*-*-linux*): New.
3675 * configure: Regenerated.
3676
3677 * src/mips/ffi.c: Include <sgidefs.h>.
3678
36792002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3680
3681 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
3682
36832002-05-27 Roger Sayle <roger@eyesopen.com>
3684
3685 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
3686
36872002-05-27 Bo Thorsen <bo@suse.de>
3688
3689 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
3690 fix formatting.
3691
36922002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
3693
3694 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
3695 beginning of function (for older apple cc).
3696
36972002-05-08 Alexandre Oliva <aoliva@redhat.com>
3698
3699 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3700 script entry, and set LD to it when configuring multilibs.
3701 * configure: Rebuilt.
3702
37032002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3704
3705 * configure.in (sparc64-*-netbsd*): Add target.
3706 (sparc-*-netbsdelf*): Likewise.
3707 * configure: Regenerate.
3708
37092002-04-28 David S. Miller <davem@redhat.com>
3710
3711 * configure.in, configure: Fix SPARC test in previous change.
3712
37132002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
3714
3715 * Makefile.am: Add Linux for S/390 support.
3716 * Makefile.in: Regenerate.
3717 * configure.in: Add Linux for S/390 support.
3718 * configure: Regenerate.
3719 * include/ffi.h.in: Add Linux for S/390 support.
3720 * src/s390/ffi.c: New file from libffi CVS tree.
3721 * src/s390/sysv.S: New file from libffi CVS tree.
3722
37232002-04-28 Jakub Jelinek <jakub@redhat.com>
3724
3725 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
3726 %r_disp32().
3727 * src/sparc/v8.S: Use it.
3728 * src/sparc/v9.S: Likewise.
3729 * fficonfig.h.in: Rebuilt.
3730 * configure: Rebuilt.
3731
37322002-04-08 Hans Boehm <Hans_Boehm@hp.com>
3733
3734 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
3735 correctly.
3736 * src/ia64/unix.S: Add unwind information. Fix comments.
3737 Save sp in a way that's compatible with unwind info.
3738 (ffi_call_unix): Correctly restore sp in all cases.
3739 * src/ia64/ffi.c: Add, fix comments.
3740
37412002-04-08 Jakub Jelinek <jakub@redhat.com>
3742
3743 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
3744
37452002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3746
3747 * configure.in (alpha*-*-netbsd*): Add target.
3748 * configure: Regenerate.
3749
37502002-04-04 Jeff Sturm <jsturm@one-point.com>
3751
3752 * src/sparc/v8.S: Add unwind info.
3753 * src/sparc/v9.S: Likewise.
3754
37552002-03-30 Krister Walfridsson <cato@df.lth.se>
3756
3757 * configure.in: Enable i*86-*-netbsdelf*.
3758 * configure: Rebuilt.
3759
37602002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
3761
3762 PR other/2620
3763 * src/mips/n32.s: Delete
3764 * src/mips/o32.s: Delete
3765
37662002-03-21 Loren J. Rittle <ljrittle@acm.org>
3767
3768 * configure.in: Enable alpha*-*-freebsd*.
3769 * configure: Rebuilt.
3770
37712002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3772
3773 * Makefile.am: libfficonvenience -> libffi_convenience.
3774 * Makefile.in: Rebuilt.
3775
3776 * Makefile.am: Define ffitest_OBJECTS.
3777 * Makefile.in: Rebuilt.
3778
37792002-03-07 Andreas Tobler <toa@pop.agri.ch>
3780 David Edelsohn <edelsohn@gnu.org>
3781
3782 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
3783 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
3784 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
3785 * Makefile.in: Regenerate.
3786 * include/ffi.h.in: Add AIX and Darwin closure definitions.
3787 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
3788 (flush_icache, flush_range): New functions.
3789 (ffi_closure_helper_DARWIN): New function.
3790 * src/powerpc/aix_closure.S: New file.
3791 * src/powerpc/darwin_closure.S: New file.
3792
37932002-02-24 Jeff Sturm <jsturm@one-point.com>
3794
3795 * include/ffi.h.in: Add typedef for ffi_arg.
3796 * src/ffitest.c (main): Declare rint with ffi_arg.
3797
37982002-02-21 Andreas Tobler <toa@pop.agri.ch>
3799
3800 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
3801 number of GPRs for floating-point arguments.
3802
38032002-01-31 Anthony Green <green@redhat.com>
3804
3805 * configure: Rebuilt.
3806 * configure.in: Replace CHECK_SIZEOF and endian tests with
3807 cross-compiler friendly macros.
3808 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
3809 macros.
3810
38112002-01-18 David Edelsohn <edelsohn@gnu.org>
3812
3813 * src/powerpc/darwin.S (_ffi_call_AIX): New.
3814 * src/powerpc/aix.S (ffi_call_DARWIN): New.
3815
38162002-01-17 David Edelsohn <edelsohn@gnu.org>
3817
3818 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
3819 (TARGET_SRC_POWERPC_AIX): New.
3820 (POWERPC_AIX): New stanza.
3821 * Makefile.in: Regenerate.
3822 * configure.in: Add AIX case.
3823 * configure: Regenerate.
3824 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
3825 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
3826 size. Fix "long double" support.
3827 (ffi_call): Add FFI_AIX case.
3828 * src/powerpc/aix.S: New.
3829
38302001-10-09 John Hornkvist <john@toastedmarshmallow.com>
3831
3832 Implement Darwin PowerPC ABI.
3833 * configure.in: Handle powerpc-*-darwin*.
3834 * Makefile.am: Set source files for POWERPC_DARWIN.
3835 * configure: Rebuilt.
3836 * Makefile.in: Rebuilt.
3837 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
3838 POWERPC_DARWIN.
3839 * src/powerpc/darwin.S: New file.
3840 * src/powerpc/ffi_darwin.c: New file.
3841
38422001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3843
3844 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
3845
38462001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3847
3848 * src/x86/sysv.S: Avoid gas-only .balign directive.
3849 Use C style comments.
3850
38512001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3852
3853 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
3854 Fixes PR bootstrap/3563.
3855
38562001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3857
3858 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
3859
38602001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3861
3862 * configure.in: Recognize sparc*-sun-* host.
3863 * configure: Regenerate.
3864
38652001-06-06 Andrew Haley <aph@redhat.com>
3866
3867 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
3868
38692001-06-03 Andrew Haley <aph@redhat.com>
3870
3871 * src/alpha/osf.S: Add unwind info.
3872 * src/powerpc/sysv.S: Add unwind info.
3873 * src/powerpc/ppc_closure.S: Likewise.
3874
38752000-05-31 Jeff Sturm <jsturm@one-point.com>
3876
3877 * configure.in: Fix AC_ARG_ENABLE usage.
3878 * configure: Rebuilt.
3879
38802001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3881
3882 * configure.in: Remove warning about beta code.
3883 * configure: Rebuilt.
3884
38852001-04-25 Hans Boehm <Hans_Boehm@hp.com>
3886
3887 * src/ia64/unix.S: Restore stack pointer when returning from
3888 ffi_closure_UNIX.
3889 * src/ia64/ffi.c: Fix typo in comment.
3890
38912001-04-18 Jim Wilson <wilson@redhat.com>
3892
3893 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3894 to eliminate RAW DV.
3895
38962001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3897
3898 * Makefile.am: Make a libtool convenience library.
3899 * Makefile.in: Rebuilt.
3900
39012001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
3902
3903 * configure.in: Use different syntax for subdirectory creation.
3904 * configure: Rebuilt.
3905
39062001-03-27 Jon Beniston <jon@beniston.com>
3907
3908 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3909 * configure: Rebuilt.
3910 * Makefile.am: Added X86_WIN32 target support.
3911 * Makefile.in: Rebuilt.
3912
3913 * include/ffi.h.in: Added X86_WIN32 target support.
3914
3915 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3916 * src/types.c: Added X86_WIN32 target support.
3917
3918 * src/x86/win32.S: New file. Based on sysv.S, but with EH
3919 stuff removed and made to work with CygWin's gas.
3920
39212001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
3922
3923 * configure.in: Make target subdirectory in build dir.
3924 * Makefile.am: Override suffix based rules to specify correct output
3925 subdirectory.
3926 * Makefile.in: Rebuilt.
3927 * configure: Rebuilt.
3928
39292001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
3930
3931 * src/powerpc/ppc_closure.S: New file.
3932 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3933 involving long long and register pairs.
3934 (ffi_prep_closure): New function.
3935 (flush_icache): Likewise.
3936 (ffi_closure_helper_SYSV): Likewise.
3937 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3938 (FFI_TRAMPOLINE_SIZE): Likewise.
3939 (FFI_NATIVE_RAW_API): Likewise.
3940 * Makefile.in: Rebuilt.
3941 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3942 (TARGET_SRC_POWERPC): Likewise.
3943
39442001-03-19 Tom Tromey <tromey@redhat.com>
3945
3946 * Makefile.in: Rebuilt.
3947 * Makefile.am (ffitest_LDFLAGS): New macro.
3948
39492001-03-02 Nick Clifton <nickc@redhat.com>
3950
3951 * include/ffi.h.in: Remove RCS ident string.
3952 * include/ffi_mips.h: Remove RCS ident string.
3953 * src/debug.c: Remove RCS ident string.
3954 * src/ffitest.c: Remove RCS ident string.
3955 * src/prep_cif.c: Remove RCS ident string.
3956 * src/types.c: Remove RCS ident string.
3957 * src/alpha/ffi.c: Remove RCS ident string.
3958 * src/alpha/osf.S: Remove RCS ident string.
3959 * src/arm/ffi.c: Remove RCS ident string.
3960 * src/arm/sysv.S: Remove RCS ident string.
3961 * src/mips/ffi.c: Remove RCS ident string.
3962 * src/mips/n32.S: Remove RCS ident string.
3963 * src/mips/o32.S: Remove RCS ident string.
3964 * src/sparc/ffi.c: Remove RCS ident string.
3965 * src/sparc/v8.S: Remove RCS ident string.
3966 * src/sparc/v9.S: Remove RCS ident string.
3967 * src/x86/ffi.c: Remove RCS ident string.
3968 * src/x86/sysv.S: Remove RCS ident string.
3969
39702001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3971
3972 * include/ffi.h.in: Change sourceware.cygnus.com references to
3973 gcc.gnu.org.
3974
39752000-12-09 Richard Henderson <rth@redhat.com>
3976
3977 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
3978 (ffi_closure_osf_inner): Index rather than increment avalue
3979 and arg_types. Give ffi_closure_osf the raw return value type.
3980 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
3981 promotion.
3982
39832000-12-07 Richard Henderson <rth@redhat.com>
3984
3985 * src/raw_api.c (ffi_translate_args): Fix typo.
3986 (ffi_prep_closure): Likewise.
3987
3988 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
3989 FFI_TRAMPOLINE_SIZE.
3990 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
3991 cif->bytes for new ffi_call_osf implementation.
3992 (ffi_prep_args): Absorb into ...
3993 (ffi_call): ... here. Do all stack allocation here and
3994 avoid a callback function.
3995 (ffi_prep_closure, ffi_closure_osf_inner): New.
3996 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
3997 (ffi_closure_osf): New.
3998
39992000-09-10 Alexandre Oliva <aoliva@redhat.com>
4000
4001 * config.guess, config.sub, install-sh: Removed.
4002 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
4003 * Makefile.in: Rebuilt.
4004
4005 * acinclude.m4: Include libtool macros from the top level.
4006 * aclocal.m4, configure: Rebuilt.
4007
40082000-08-22 Alexandre Oliva <aoliva@redhat.com>
4009
4010 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
4011 * configure: Rebuilt.
4012
40132000-05-11 Scott Bambrough <scottb@netwinder.org>
4014
4015 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
4016 memory correctly. Use conditional instructions, not branches where
4017 possible.
4018
40192000-05-04 Tom Tromey <tromey@cygnus.com>
4020
4021 * configure: Rebuilt.
4022 * configure.in: Match `arm*-*-linux-*'.
4023 From Chris Dornan <cdornan@arm.com>.
4024
40252000-04-28 Jakub Jelinek <jakub@redhat.com>
4026
4027 * Makefile.am (SUBDIRS): Define.
4028 (AM_MAKEFLAGS): Likewise.
4029 (Multilib support.): Add section.
4030 * Makefile.in: Rebuilt.
4031 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
4032 New variables. Set for gcc using -print-multi-lib. Export them
4033 to libtool.
4034 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
4035 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
4036 for -shared links.
4037 (extra_compiler_flags_value, extra_compiler_flags): Check these
4038 for extra compiler options which need to be passed down in
4039 compiler_flags.
4040
40412000-04-16 Anthony Green <green@redhat.com>
4042
4043 * configure: Rebuilt.
4044 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
4045
40462000-04-14 Jakub Jelinek <jakub@redhat.com>
4047
4048 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
4049 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
4050 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
4051 Replace all void * sizeofs with sizeof(int).
4052 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
4053 different than DOUBLE.
4054 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
4055 (ffi_prep_args_v9): New function.
4056 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
4057 (ffi_V9_return_struct): New function.
4058 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
4059 32bit code (not yet cross-arch calls).
4060 * src/sparc/v8.S: Add struct return delay nop.
4061 Handle long long.
4062 * src/sparc/v9.S: New file.
4063 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
4064 is used on sparc64 only for structures larger than 32 bytes.
4065 Pass by reference for structures is done for structure arguments
4066 larger than 16 bytes.
4067 * src/ffitest.c (main): Use 64bit rint on sparc64.
4068 Run long long tests on sparc.
4069 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
4070 sparc64.
4071 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
4072 on sparc64.
4073 * configure.in (sparc-*-linux*): New supported target.
4074 (sparc64-*-linux*): Likewise.
4075 * configure: Rebuilt.
4076 * Makefile.am: Add v9.S to SPARC files.
4077 * Makefile.in: Likewise.
4078 (LINK): Surround $(CCLD) into double quotes, so that multilib
4079 compiles work correctly.
4080
40812000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
4082
4083 * configure: Rebuilt.
4084 * configure.in: (i*86-*-solaris*): New libffi target. Patch
4085 proposed by Bryce McKinlay.
4086
40872000-03-20 Tom Tromey <tromey@cygnus.com>
4088
4089 * Makefile.in: Hand edit for java_raw_api.lo.
4090
40912000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
4092
4093 * config.guess, config.sub: Update from the gcc tree.
4094 Fix for PR libgcj/168.
4095
40962000-03-03 Tom Tromey <tromey@cygnus.com>
4097
4098 * Makefile.in: Fixed ia64 by hand.
4099
4100 * configure: Rebuilt.
4101 * configure.in (--enable-multilib): New option.
4102 (libffi_basedir): New subst.
4103 (AC_OUTPUT): Added multilib code.
4104
41052000-03-02 Tom Tromey <tromey@cygnus.com>
4106
4107 * Makefile.in: Rebuilt.
4108 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
4109 directory name.
4110
41112000-02-25 Hans Boehm <boehm@acm.org>
4112
4113 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
4114 files.
4115 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
4116 list.
4117 (ffi_prep_raw_closure): Use ffi_translate_args, not
4118 ffi_closure_translate.
4119 * src/java_raw_api.c: New file.
4120 * src/ffitest.c (closure_test_fn): New function.
4121 (main): Define `rint' as long long on IA64. Added new test when
4122 FFI_CLOSURES is defined.
4123 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
4124 (ffi_abi): Recognize IA64.
4125 (ffi_raw): Added `flt' field.
4126 Added "Java raw API" code.
4127 * configure.in: Recognize ia64.
4128 * Makefile.am (TARGET_SRC_IA64): New macro.
4129 (libffi_la_common_SOURCES): Added java_raw_api.c.
4130 (libffi_la_SOURCES): Define in IA64 case.
4131
41322000-01-04 Tom Tromey <tromey@cygnus.com>
4133
4134 * Makefile.in: Rebuilt with newer automake.
4135
41361999-12-31 Tom Tromey <tromey@cygnus.com>
4137
4138 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
4139
41401999-09-01 Tom Tromey <tromey@cygnus.com>
4141
4142 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
4143 undefs.
4144 * fficonfig.h.in: Rebuilt.
4145 * configure: Rebuilt.
4146 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
4147 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
4148 * acconfig.h: Don't #undef PACKAGE or VERSION.
4149
41501999-08-09 Anthony Green <green@cygnus.com>
4151
4152 * include/ffi.h.in: Try to work around messy header problem
4153 with PACKAGE and VERSION.
4154
4155 * configure: Rebuilt.
4156 * configure.in: Change version to 2.00-beta.
4157
4158 * fficonfig.h.in: Rebuilt.
4159 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
4160
4161 * src/x86/ffi.c (ffi_raw_call): Rename.
4162
41631999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
4164
4165 * src/x86/ffi.c (ffi_closure_SYSV): New function.
4166 (ffi_prep_incoming_args_SYSV): Ditto.
4167 (ffi_prep_closure): Ditto.
4168 (ffi_closure_raw_SYSV): Ditto.
4169 (ffi_prep_raw_closure): More ditto.
4170 (ffi_call_raw): Final ditto.
4171
4172 * include/ffi.h.in: Add definitions for closure and raw API.
4173
4174 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4175 FFI_TYPE_UINT64.
4176
4177 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
4178
4179 * src/raw_api.c: New file.
4180
4181 * include/ffi.h.in (ffi_raw): New type.
4182 (UINT_ARG, SINT_ARG): New defines.
4183 (ffi_closure, ffi_raw_closure): New types.
4184 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4185
4186 * configure.in: Add check for endianness and sizeof void*.
4187
4188 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
4189 instead of directly.
4190
4191 * configure: Rebuilt.
4192
4193Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
4194
4195 * configure.in: Add x86 and powerpc BeOS configurations.
4196 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
4197
41981999-05-09 Anthony Green <green@cygnus.com>
4199
4200 * configure.in: Add warning about this being beta code.
4201 Remove src/Makefile.am from the picture.
4202 * configure: Rebuilt.
4203
4204 * Makefile.am: Move logic from src/Makefile.am. Add changes
4205 to support libffi as a target library.
4206 * Makefile.in: Rebuilt.
4207
4208 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
4209 Upgraded to new autoconf, automake, libtool.
4210
4211 * README: Tweaks.
4212
4213 * LICENSE: Update copyright date.
4214
4215 * src/Makefile.am, src/Makefile.in: Removed.
4216
42171998-11-29 Anthony Green <green@cygnus.com>
4218
4219 * include/ChangeLog: Removed.
4220 * src/ChangeLog: Removed.
4221 * src/mips/ChangeLog: Removed.
4222 * src/sparc/ChangeLog: Remboved.
4223 * src/x86/ChangeLog: Removed.
4224
4225 * ChangeLog.v1: Created.