blob: cec764712a88879e0a6ded4036a59b827d6b38d0 [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 Green5feacad2010-08-05 08:30:04 -0400112010-07-07 Dan HorĂ¡k <dan@danny.cz>
12
13 * include/ffi.h.in: Protect #define with #ifndef.
14 * src/powerpc/ffitarget.h: Ditto.
15 * src/s390/ffitarget.h: Ditto.
16 * src/sparc/ffitarget.h: Ditto.
17
Anthony Green10ea8482010-08-05 08:24:27 -0400182010-05-11 Dan Witte <dwitte@mozilla.com>
19
20 * doc/libffi.tex: Document previous change.
21
222010-05-11 Makoto Kato <m_kato@ga2.so-net.ne.jp>
23
24 * src/x86/ffi.c (ffi_call): Don't copy structs passed by value.
25
Anthony Green63097412010-05-05 20:14:56 -0400262010-05-05 Michael Kohler <michaelkohler@live.com>
27
28 * src/dlmalloc.c (dlfree): Fix spelling.
29 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
30 * configure.ac: Ditto.
31 * configure: Rebuilt.
32
Anthony Greenf2c2a4f2010-04-13 10:19:28 -0400332010-04-13 Dan Witte <dwitte@mozilla.com>
34
35 * msvcc.sh: Build with -W3 instead of -Wall.
36 * src/powerpc/ffi_darwin.c: Remove build warnings.
37 * src/x86/ffi.c: Ditto.
38 * src/x86/ffitarget.h: Ditto.
39
Anthony Greenc0b69e52010-03-30 08:30:22 -0400402010-03-30 Dan Witte <dwitte@mozilla.com>
41
42 * msvcc.sh: Disable build warnings.
43 * README (tested): Clarify windows build procedure.
44
Anthony Green3de1eb32010-03-15 05:57:24 -0400452010-03-14 Matthias Klose <doko@ubuntu.com>
46
47 * src/x86/ffi64.c: Fix typo in comment.
48 * src/x86/ffi.c: Use /* ... */ comment style.
49
Anthony Green3f5b1372010-07-12 14:39:18 -0400502010-07-07 Neil Roberts <neil@linux.intel.com>
51
52 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
53 16-bytes.
54
552010-07-02 Jakub Jelinek <jakub@redhat.com>
56
57 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
58 * Makefile.in: Regenerated.
59
602010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61
62 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
63 output, too.
64 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
65 (libffi_cv_as_string_pseudo_op): Check for .string.
66 * configure: Regenerate.
67 * fficonfig.h.in: Regenerate.
68 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
69
702010-04-07 Jakub Jelinek <jakub@redhat.com>
71
72 * regex.c (byte_re_match_2_internal): Avoid set but not used
73 warning.
74
752010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76
77 * Makefile.in: Regenerate.
78 * aclocal.m4: Regenerate.
79 * include/Makefile.in: Regenerate.
80 * man/Makefile.in: Regenerate.
81 * testsuite/Makefile.in: Regenerate.
82
832010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
84
85 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
86 * configure: Regenerate.
87 * fficonfig.h.in: Regenerate.
88 * libffi/src/x86/unix64.S (.eh_frame)
89 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
90
Anthony Green9dc9a292010-04-13 10:33:52 -0400912010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92
93 * doc/libffi.texi (The Closure API): Fix typo.
94 * doc/libffi.info: Remove.
95
962010-02-15 Matthias Klose <doko@ubuntu.com>
97
98 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
99 __ARM_ARCH_7EM__.
100
Anthony Green7b7a42f2010-01-12 09:14:14 -05001012010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102
103 PR libffi/40701
104 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
105 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
106 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
107 alpha*-dec-osf*.
108 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
109 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
110 * testsuite/libffi.call/return_ll1.c: Likewise.
111 * testsuite/libffi.call/stret_medium2.c: Likewise.
112 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
113 MAP_FAILED to char *.
114
1152010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116
117 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
118
Anthony Greenc3042af2010-01-01 08:08:02 -05001192009-12-31 Anthony Green <green@redhat.com>
120
121 * README: Update for libffi 3.0.9.
122
1232009-12-27 Matthias Klose <doko@ubuntu.com>
124
125 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
126 appropriate.
127 * configure: Rebuilt.
128
1292009-12-26 Anthony Green <green@redhat.com>
130
131 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
132 avr32*-*-*.
133 * testsuite/libffi.call/cls_double_va.c: Ditto.
134
1352009-12-26 Andreas Tobler <a.tobler@schweiz.org>
136
137 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
138 and inttypes.h.
139 * testsuite/libffi.special/unwindtest.cc: Ditto.
140
1412009-12-26 Andreas Tobler <a.tobler@schweiz.org>
142
143 * configure.ac: Add amd64-*-openbsd*.
144 * configure: Rebuilt.
145 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
146 openbsd programs with -lpthread.
147
1482009-12-26 Anthony Green <green@redhat.com>
149
150 * testsuite/libffi.call/cls_double_va.c,
151 testsuite/libffi.call/cls_longdouble.c,
152 testsuite/libffi.call/cls_longdouble_va.c,
153 testsuite/libffi.call/cls_pointer.c,
154 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
155 mips*-*-* and arm*-*-*.
156 * testsuite/libffi.call/cls_align_longdouble_split.c,
157 testsuite/libffi.call/cls_align_longdouble_split2.c,
158 testsuite/libffi.call/stret_medium2.c,
159 testsuite/libffi.call/stret_medium.c,
160 testsuite/libffi.call/stret_large.c,
161 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
162
1632009-12-31 Kay Tietz <ktietz70@googlemail.com>
164
165 * testsuite/libffi.call/ffitest.h,
166 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
167 definitions.
168
1692009-12-31 Carlo Bramini <carlo.bramix@libero.it>
170
171 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
172 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
173 * configure: Rebuilt.
174 * Makefile.in: Rebuilt.
175
1762009-12-31 Anthony Green <green@redhat.com>
177 Blake Chaffin.
178
179 * testsuite/libffi.call/huge_struct.c: New test case from Blake
180 Chaffin @ Apple.
181
Anthony Green0cfe60e2009-12-29 10:06:04 -05001822009-12-28 David Edelsohn <edelsohn@gnu.org>
183
184 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
185 local variables.
186 (aix_adjust_aggregate_sizes): New function.
187 (ffi_prep_cif_machdep): Call it.
188
1892009-12-26 Andreas Tobler <a.tobler@schweiz.org>
190
191 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
192 * configure: Regenerate.
193 * fficonfig.h.in: Likewise.
194 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
195 Solaris/x86.
196
1972009-12-26 Andreas Schwab <schwab@linux-m68k.org>
198
199 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
200 when a float arguments is passed in memory.
201 (ffi_closure_helper_SYSV): Mark general registers as used up when
202 a 64bit or soft-float long double argument is passed in memory.
203
Anthony Green9458d882009-12-26 07:02:27 -05002042009-12-25 Matthias Klose <doko@ubuntu.com>
205
206 * man/ffi_call.3: Fix #include in examples.
207 * doc/libffi.texi: Add dircategory.
208
2092009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
210
211 * include/ffi.h.in: Placed '__GNUC__' ifdef around
212 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
213 IRIX MIPSPro c99.
214 * include/ffi_common.h: Added '__sgi' define to non
215 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -0500216 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -0500217 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
218 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
219 FFI_LONGDOUBLE support and alignment(N32 only).
220 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
221 fixed non '__attribute__((__mode__()))' integer typedefs.
222 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
223 since they are Linux/GNU Assembler specific.
224
2252009-12-25 Bradley Smith <brad@brad-smith.co.uk>
226
227 * configure.ac, Makefile.am, src/avr32/ffi.c,
228 src/avr32/ffitarget.h,
229 src/avr32/sysv.S: Add AVR32 port.
230 * configure, Makefile.in: Rebuilt.
231
Anthony Green115ab362009-12-24 00:22:00 -05002322009-12-21 Andreas Tobler <a.tobler@schweiz.org>
233
234 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
235 * configure: Regenerate.
236
2372009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
238
239 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
240
2412009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
242
243 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
244 type on HP-UX.
245
2462009-12-11 Eric Botcazou <ebotcazou@adacore.com>
247
248 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
249 double' arguments.
250
2512009-12-11 Eric Botcazou <ebotcazou@adacore.com>
252
253 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
254
2552009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
256
257 PR libffi/40700
258 * src/closures.c [X86_64 && __sun__ && __svr4__]
259 (FFI_MMAP_EXEC_WRIT): Define.
260
2612009-12-08 David Daney <ddaney@caviumnetworks.com>
262
263 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
264 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
265 * testsuite/libffi.call/stret_large.c: Same.
266 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
267 * testsuite/libffi.call/stret_large2.c: Same.
268 * testsuite/libffi.call/stret_medium2.c: Same.
269
2702009-12-07 David Edelsohn <edelsohn@gnu.org>
271
272 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
273 typo.
274
2752009-12-05 David Edelsohn <edelsohn@gnu.org>
276
277 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
278 code.
279 * src/powerpc/aix_closure.S: Same.
280
2812009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
282
283 * Makefile.in: Regenerate.
284 * configure: Regenerate.
285 * include/Makefile.in: Regenerate.
286 * man/Makefile.in: Regenerate.
287 * testsuite/Makefile.in: Regenerate.
288
2892009-12-04 David Edelsohn <edelsohn@gnu.org>
290
291 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -0500292 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -0500293
2942009-12-04 Uros Bizjak <ubizjak@gmail.com>
295
296 PR libffi/41908
297 * src/x86/ffi64.c (classify_argument): Update from
298 gcc/config/i386/i386.c.
299 (ffi_closure_unix64_inner): Do not use the address of two consecutive
300 SSE registers directly.
301 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
302 for x86_64 linux targets.
303
3042009-12-04 David Edelsohn <edelsohn@gnu.org>
305
306 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
307 pfr for long double split between fpr13 and stack.
308
3092009-12-03 David Edelsohn <edelsohn@gnu.org>
310
311 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
312 fparg_count twice for long double.
313
3142009-12-03 David Edelsohn <edelsohn@gnu.org>
315
316 PR libffi/42243
317 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
318
3192009-12-03 Uros Bizjak <ubizjak@gmail.com>
320
321 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
322 Remove xfails for x86 linux targets.
323
3242009-12-02 David Edelsohn <edelsohn@gnu.org>
325
326 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
327 case.
328
3292009-12-01 David Edelsohn <edelsohn@gnu.org>
330
331 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
332 register usage. Call ffi_prep_args directly. Add long double
333 return value support.
334 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
335 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
336 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
337 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
338 mode.
339 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
340 into case.
341 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
342 Allocate result area between params and FPRs.
343
3442009-11-30 David Edelsohn <edelsohn@gnu.org>
345
346 PR target/35484
347 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
348 AIX64.
349 * src/powerpc/aix.S: Implement AIX64 version.
350 * src/powerpc/aix_closure.S: Implement AIX64 version.
351 (ffi_closure_ASM): Use extsb, lha and displament addresses.
352 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
353 support.
354 (ffi_prep_cif_machdep): Same.
355 (ffi_call): Same.
356 (ffi_closure_helper_DARWIN): Same.
357
3582009-11-02 Andreas Tobler <a.tobler@schweiz.org>
359
360 PR libffi/41908
361 * testsuite/libffi.call/testclosure.c: New test.
362
Anthony Greenc6dddbd2009-10-04 08:11:33 -04003632009-09-28 Kai Tietz <kai.tietz@onevision.com>
364
365 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
366 assembly version use of ___chkstk.
367
3682009-09-23 Matthias Klose <doko@ubuntu.com>
369
370 PR libffi/40242, PR libffi/41443
371 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
372 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
373 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
374 Change the conditionals to __SOFTFP__ || __ARM_EABI__
375 for -mfloat-abi=softfp to work.
376
3772009-09-17 Loren J. Rittle <ljrittle@acm.org>
378
379 PR testsuite/32843 (strikes again)
380 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
381 enable proper extension on char and short.
382
3832009-09-15 David Daney <ddaney@caviumnetworks.com>
384
385 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
386 handling for FFI_TYPE_POINTER.
387 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
388 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
389 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
390 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
391 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
392 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
393 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
394 structure and pointer returns.
395 (ffi_closure_N32): Add handling for pointer returns.
396 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
397 calc_n32_return_struct_flags): Handle soft-float.
398 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
399 (ffi_call_N32): Declare proper argument types.
400 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
401 soft-float.
402
4032009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
404
405 * configure.ac (AC_PREREQ): Bump to 2.64.
406
4072009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
408
409 * Makefile.am (install-html, install-pdf): Remove.
410 * Makefile.in: Regenerate.
411
412 * Makefile.in: Regenerate.
413 * aclocal.m4: Regenerate.
414 * configure: Regenerate.
415 * fficonfig.h.in: Regenerate.
416 * include/Makefile.in: Regenerate.
417 * man/Makefile.in: Regenerate.
418 * testsuite/Makefile.in: Regenerate.
419
4202009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
421
422 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
423
4242009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
425
426 PR libffi/40807
427 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
428 return types for X86_WIN32.
429 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
430 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
431 _ffi_closure_STDCALL): Likewise.
432
433 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
434 (dlmmap, dlmunmap): Also use these functions on Cygwin.
435
4362009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
437
438 PR testsuite/40699
439 PR testsuite/40707
440 PR testsuite/40709
441 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
442 2009-06-30 commits.
443
4442009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
445
446 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
447 to "" before adding paths. (This reinstates an assignment that
448 was removed by my 2009-06-30 commit, but changes the initial
449 value from "." to "".)
450
4512009-07-01 H.J. Lu <hongjiu.lu@intel.com>
452
453 PR testsuite/40601
454 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
455 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
456 empty.
457
4582009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
459
460 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
461 to ld_library_path. Use add_path. Add just find_libgcc_s
462 to ld_library_path, not every libgcc multilib directory.
463
4642009-06-16 Wim Lewis <wiml@hhhh.org>
465
466 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
467 supposed to be callee-saved.
468 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
469 return buffer for odd-size structs.
470
4712009-06-16 Andreas Tobler <a.tobler@schweiz.org>
472
473 PR libffi/40444
474 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
475 allow_stack_execute for Darwin.
476
4772009-06-16 Andrew Haley <aph@redhat.com>
478
479 * configure.ac (TARGETDIR): Add missing blank lines.
480 * configure: Regenerate.
481
4822009-06-16 Andrew Haley <aph@redhat.com>
483
484 * testsuite/libffi.call/cls_align_sint64.c,
485 testsuite/libffi.call/cls_align_uint64.c,
486 testsuite/libffi.call/cls_longdouble_va.c,
487 testsuite/libffi.call/cls_ulonglong.c,
488 testsuite/libffi.call/return_ll1.c,
489 testsuite/libffi.call/stret_medium2.c: Fix printf format
490 specifiers.
491 * testsuite/libffi.call/ffitest.h,
492 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
493
4942009-06-15 Andrew Haley <aph@redhat.com>
495
496 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
497 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -0500498
Anthony Greenc6dddbd2009-10-04 08:11:33 -04004992009-06-12 Andrew Haley <aph@redhat.com>
500
501 * Makefile.am: Remove info_TEXINFOS.
502
5032009-06-12 Andrew Haley <aph@redhat.com>
504
505 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
506 testsuite/libffi.call/cls_align_uint64.c,
507 testsuite/libffi.call/cls_ulonglong.c,
508 testsuite/libffi.call/return_ll1.c,
509 testsuite/libffi.call/stret_medium2.c: Fix printf format
510 specifiers.
511 testsuite/libffi.special/unwindtest.cc: include stdint.h.
512
5132009-06-11 Timothy Wall <twall@users.sf.net>
514
515 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -0500516 configure.ac,
517 include/ffi.h.in,
518 include/ffi_common.h,
519 src/closures.c,
520 src/dlmalloc.c,
521 src/x86/ffi.c,
522 src/x86/ffitarget.h,
523 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400524 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -0500525 * Makefile.in,
526 include/Makefile.in,
527 man/Makefile.in,
528 testsuite/Makefile.in,
529 configure,
530 aclocal.m4: Regenerated
531 * ltcf-c.sh: properly escape cygwin/w32 path
532 * man/ffi_call.3: Clarify size requirements for return value.
533 * src/x86/ffi64.c: Fix filename in comment.
534 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400535
Anthony Green0cfe60e2009-12-29 10:06:04 -0500536 * testsuite/libffi.call/closure_fn0.c,
537 testsuite/libffi.call/closure_fn1.c,
538 testsuite/libffi.call/closure_fn2.c,
539 testsuite/libffi.call/closure_fn3.c,
540 testsuite/libffi.call/closure_fn4.c,
541 testsuite/libffi.call/closure_fn5.c,
542 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400543 testsuite/libffi.call/closure_stdcall.c,
544 testsuite/libffi.call/cls_12byte.c,
545 testsuite/libffi.call/cls_16byte.c,
546 testsuite/libffi.call/cls_18byte.c,
547 testsuite/libffi.call/cls_19byte.c,
548 testsuite/libffi.call/cls_1_1byte.c,
549 testsuite/libffi.call/cls_20byte.c,
550 testsuite/libffi.call/cls_20byte1.c,
551 testsuite/libffi.call/cls_24byte.c,
552 testsuite/libffi.call/cls_2byte.c,
553 testsuite/libffi.call/cls_3_1byte.c,
554 testsuite/libffi.call/cls_3byte1.c,
555 testsuite/libffi.call/cls_3byte2.c,
556 testsuite/libffi.call/cls_4_1byte.c,
557 testsuite/libffi.call/cls_4byte.c,
558 testsuite/libffi.call/cls_5_1_byte.c,
559 testsuite/libffi.call/cls_5byte.c,
560 testsuite/libffi.call/cls_64byte.c,
561 testsuite/libffi.call/cls_6_1_byte.c,
562 testsuite/libffi.call/cls_6byte.c,
563 testsuite/libffi.call/cls_7_1_byte.c,
564 testsuite/libffi.call/cls_7byte.c,
565 testsuite/libffi.call/cls_8byte.c,
566 testsuite/libffi.call/cls_9byte1.c,
567 testsuite/libffi.call/cls_9byte2.c,
568 testsuite/libffi.call/cls_align_double.c,
569 testsuite/libffi.call/cls_align_float.c,
570 testsuite/libffi.call/cls_align_longdouble.c,
571 testsuite/libffi.call/cls_align_longdouble_split.c,
572 testsuite/libffi.call/cls_align_longdouble_split2.c,
573 testsuite/libffi.call/cls_align_pointer.c,
574 testsuite/libffi.call/cls_align_sint16.c,
575 testsuite/libffi.call/cls_align_sint32.c,
576 testsuite/libffi.call/cls_align_sint64.c,
577 testsuite/libffi.call/cls_align_uint16.c,
578 testsuite/libffi.call/cls_align_uint32.c,
579 testsuite/libffi.call/cls_align_uint64.c,
580 testsuite/libffi.call/cls_dbls_struct.c,
581 testsuite/libffi.call/cls_double.c,
582 testsuite/libffi.call/cls_double_va.c,
583 testsuite/libffi.call/cls_float.c,
584 testsuite/libffi.call/cls_longdouble.c,
585 testsuite/libffi.call/cls_longdouble_va.c,
586 testsuite/libffi.call/cls_multi_schar.c,
587 testsuite/libffi.call/cls_multi_sshort.c,
588 testsuite/libffi.call/cls_multi_sshortchar.c,
589 testsuite/libffi.call/cls_multi_uchar.c,
590 testsuite/libffi.call/cls_multi_ushort.c,
591 testsuite/libffi.call/cls_multi_ushortchar.c,
592 testsuite/libffi.call/cls_pointer.c,
593 testsuite/libffi.call/cls_pointer_stack.c,
594 testsuite/libffi.call/cls_schar.c,
595 testsuite/libffi.call/cls_sint.c,
596 testsuite/libffi.call/cls_sshort.c,
597 testsuite/libffi.call/cls_uchar.c,
598 testsuite/libffi.call/cls_uint.c,
599 testsuite/libffi.call/cls_ulonglong.c,
600 testsuite/libffi.call/cls_ushort.c,
601 testsuite/libffi.call/err_bad_abi.c,
602 testsuite/libffi.call/err_bad_typedef.c,
603 testsuite/libffi.call/float2.c,
604 testsuite/libffi.call/huge_struct.c,
605 testsuite/libffi.call/nested_struct.c,
606 testsuite/libffi.call/nested_struct1.c,
607 testsuite/libffi.call/nested_struct10.c,
608 testsuite/libffi.call/nested_struct2.c,
609 testsuite/libffi.call/nested_struct3.c,
610 testsuite/libffi.call/nested_struct4.c,
611 testsuite/libffi.call/nested_struct5.c,
612 testsuite/libffi.call/nested_struct6.c,
613 testsuite/libffi.call/nested_struct7.c,
614 testsuite/libffi.call/nested_struct8.c,
615 testsuite/libffi.call/nested_struct9.c,
616 testsuite/libffi.call/problem1.c,
617 testsuite/libffi.call/return_ldl.c,
618 testsuite/libffi.call/return_ll1.c,
619 testsuite/libffi.call/stret_large.c,
620 testsuite/libffi.call/stret_large2.c,
621 testsuite/libffi.call/stret_medium.c,
622 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -0500623 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
624 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400625
6262009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
627
628 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
629 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
630 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
631
6322009-06-09 Andrew Haley <aph@redhat.com>
633
634 * src/x86/freebsd.S: Add missing file.
635
6362009-06-08 Andrew Haley <aph@redhat.com>
637
638 Import from libffi 3.0.8:
639
640 * doc/libffi.texi: New file.
641 * doc/libffi.info: Likewise.
642 * doc/stamp-vti: Likewise.
643 * man/Makefile.am: New file.
644 * man/ffi_call.3: New file.
645
646 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
647 src/dlmalloc.c.
648 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
649
650 * configure.ac: Bump version to 3.0.8.
651 parisc*-*-linux*: Add.
652 i386-*-freebsd* | i386-*-openbsd*: Add.
653 powerpc-*-beos*: Add.
654 AM_CONDITIONAL X86_FREEBSD: Add.
655 AC_CONFIG_FILES: Add man/Makefile.
656
657 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
658
6592009-06-08 Andrew Haley <aph@redhat.com>
660
661 * README: Import from libffi 3.0.8.
662
6632009-06-08 Andrew Haley <aph@redhat.com>
664
665 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
666 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
667 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
668 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
669
670 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
671 * testsuite/libffi.call/stret_medium.c: Likewise.
672 * testsuite/libffi.call/stret_large2.c: Likewise.
673 * testsuite/libffi.call/stret_large.c: Likewise.
674
6752008-12-26 Timothy Wall <twall@users.sf.net>
676
Anthony Green0cfe60e2009-12-29 10:06:04 -0500677 * testsuite/libffi.call/cls_longdouble.c,
678 testsuite/libffi.call/cls_longdouble_va.c,
679 testsuite/libffi.call/cls_align_longdouble.c,
680 testsuite/libffi.call/cls_align_longdouble_split.c,
681 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
682 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400683
6842008-12-22 Timothy Wall <twall@users.sf.net>
685
Anthony Green0cfe60e2009-12-29 10:06:04 -0500686 * testsuite/libffi.call/closure_fn0.c,
687 testsuite/libffi.call/closure_fn1.c,
688 testsuite/libffi.call/closure_fn2.c,
689 testsuite/libffi.call/closure_fn3.c,
690 testsuite/libffi.call/closure_fn4.c,
691 testsuite/libffi.call/closure_fn5.c,
692 testsuite/libffi.call/closure_fn6.c,
693 testsuite/libffi.call/closure_loc_fn0.c,
694 testsuite/libffi.call/closure_stdcall.c,
695 testsuite/libffi.call/cls_align_pointer.c,
696 testsuite/libffi.call/cls_pointer.c,
697 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
698 pointer to integer (intptr_t).
699 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400700
7012008-07-24 Anthony Green <green@redhat.com>
702
Anthony Green0cfe60e2009-12-29 10:06:04 -0500703 * 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: Clean up failures from
710 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400711
7122008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500713 Blake Chaffin
714 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400715
Anthony Green0cfe60e2009-12-29 10:06:04 -0500716 * testsuite/libffi.call/cls_align_longdouble_split2.c
717 testsuite/libffi.call/cls_align_longdouble_split.c
718 testsuite/libffi.call/cls_dbls_struct.c
719 testsuite/libffi.call/cls_double_va.c
720 testsuite/libffi.call/cls_longdouble.c
721 testsuite/libffi.call/cls_longdouble_va.c
722 testsuite/libffi.call/cls_pointer.c
723 testsuite/libffi.call/cls_pointer_stack.c
724 testsuite/libffi.call/err_bad_abi.c
725 testsuite/libffi.call/err_bad_typedef.c
726 testsuite/libffi.call/stret_large2.c
727 testsuite/libffi.call/stret_large.c
728 testsuite/libffi.call/stret_medium2.c
729 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400730
7312009-06-05 Andrew Haley <aph@redhat.com>
732
733 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
734 libffi.
735
7362009-06-04 Andrew Haley <aph@redhat.com>
737
738 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
739 stdcall changes.
740
7412008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500742 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400743
Anthony Green0cfe60e2009-12-29 10:06:04 -0500744 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
745 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400746
7472008-02-03 Timothy Wall <twall@users.sf.net>
748
Anthony Green0cfe60e2009-12-29 10:06:04 -0500749 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
750 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400751
7522008-01-31 Timothy Wall <twall@users.sf.net>
753
Anthony Green0cfe60e2009-12-29 10:06:04 -0500754 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
755 closures.
756 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
757 closures.
758 * src/x86/win32.S: Add assembly for stdcall closure.
759 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400760
7612009-06-04 Andrew Haley <aph@redhat.com>
762
763 * include/ffi.h.in: Change void (*)() to void (*)(void).
764 * src/x86/ffi.c: Likewise.
765
7662009-06-04 Andrew Haley <aph@redhat.com>
767
768 * src/powerpc/ppc_closure.S: Insert licence header.
769 * src/powerpc/linux64_closure.S: Likewise.
770 * src/m68k/sysv.S: Likewise.
771
772 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
773 * src/powerpc/ffi.c: Likewise.
774 * src/powerpc/ffi_darwin.c: Likewise.
775 * src/m32r/ffi.c: Likewise.
776 * src/sh64/ffi.c: Likewise.
777 * src/x86/ffi64.c: Likewise.
778 * src/alpha/ffi.c: Likewise.
779 * src/alpha/osf.S: Likewise.
780 * src/frv/ffi.c: Likewise.
781 * src/s390/ffi.c: Likewise.
782 * src/pa/ffi.c: Likewise.
783 * src/pa/hpux32.S: Likewise.
784 * src/ia64/unix.S: Likewise.
785 * src/ia64/ffi.c: Likewise.
786 * src/sparc/ffi.c: Likewise.
787 * src/mips/ffi.c: Likewise.
788 * src/sh/ffi.c: Likewise.
789
7902008-02-15 David Daney <ddaney@avtrex.com>
791
Anthony Green0cfe60e2009-12-29 10:06:04 -0500792 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
793 Define (conditionally), and use it to include cachectl.h.
794 (ffi_prep_closure_loc): Fix cache flushing.
795 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400796
7972009-06-04 Andrew Haley <aph@redhat.com>
798
799 include/ffi.h.in,
800 src/arm/ffitarget.h,
801 src/arm/ffi.c,
802 src/arm/sysv.S,
803 src/powerpc/ffitarget.h,
804 src/closures.c,
805 src/sh64/ffitarget.h,
806 src/sh64/ffi.c,
807 src/sh64/sysv.S,
808 src/types.c,
809 src/x86/ffi64.c,
810 src/x86/ffitarget.h,
811 src/x86/win32.S,
812 src/x86/darwin.S,
813 src/x86/ffi.c,
814 src/x86/sysv.S,
815 src/x86/unix64.S,
816 src/alpha/ffitarget.h,
817 src/alpha/ffi.c,
818 src/alpha/osf.S,
819 src/m68k/ffitarget.h,
820 src/frv/ffitarget.h,
821 src/frv/ffi.c,
822 src/s390/ffitarget.h,
823 src/s390/sysv.S,
824 src/cris/ffitarget.h,
825 src/pa/linux.S,
826 src/pa/ffitarget.h,
827 src/pa/ffi.c,
828 src/raw_api.c,
829 src/ia64/ffitarget.h,
830 src/ia64/unix.S,
831 src/ia64/ffi.c,
832 src/ia64/ia64_flags.h,
833 src/java_raw_api.c,
834 src/debug.c,
835 src/sparc/v9.S,
836 src/sparc/ffitarget.h,
837 src/sparc/ffi.c,
838 src/sparc/v8.S,
839 src/mips/ffitarget.h,
840 src/mips/n32.S,
841 src/mips/o32.S,
842 src/mips/ffi.c,
843 src/prep_cif.c,
844 src/sh/ffitarget.h,
845 src/sh/ffi.c,
846 src/sh/sysv.S: Update license text.
847
8482009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
849
850 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
851 (.eh_frame): Add FDE for it.
852
8532009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
854
855 * configure.ac: Also check if assembler supports pc-relative
856 relocs on X86_WIN32 targets.
857 * configure: Regenerate.
858 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
859 (_ffi_call_SYSV): Add missing function type symbol .def and
860 add EH markup labels.
861 (_ffi_call_STDCALL): Likewise.
862 (_ffi_closure_SYSV): Likewise.
863 (_ffi_closure_raw_SYSV): Likewise.
864 (.eh_frame): Add hand-crafted EH data.
865
8662009-04-09 Jakub Jelinek <jakub@redhat.com>
867
868 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
869 version 3 of the GNU General Public License and to point readers
870 at the COPYING3 file and the FSF's license web page.
871 * testsuite/libffi.call/call.exp: Likewise.
872 * testsuite/libffi.special/special.exp: Likewise.
873
8742009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
875
876 * configure: Regenerate.
877
8782008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
879
880 PR libffi/26048
881 * configure.ac (HAVE_AS_X86_PCREL): New test.
882 * configure: Regenerate.
883 * fficonfig.h.in: Regenerate.
884 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
885 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
886 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
887 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
888 * src/x86/unix64.S (.Lstore_table): Move to .text section.
889 (.Lload_table): Likewise.
890 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
891
8922008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
893
894 * configure: Regenerate.
895
8962008-11-21 Eric Botcazou <ebotcazou@adacore.com>
897
898 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
899 signed/unsigned int8/16 return values.
900 * src/sparc/v8.S (ffi_call_v8): Likewise.
901 (ffi_closure_v8): Likewise.
902
9032008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500904 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400905
906 * configure: Regenerate for new libtool.
907 * Makefile.in: Ditto.
908 * include/Makefile.in: Ditto.
909 * aclocal.m4: Ditto.
910
9112008-08-25 Andreas Tobler <a.tobler@schweiz.org>
912
913 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
914 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
915 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
916 Adjust copyright notice.
917 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
918 register or two register to use for FFI_SYSV structs.
919 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
920 (ffi_closure_helper_SYSV): Fix the return type for
921 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
922 Adjust copyright notice.
923
9242008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
925
926 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
927 int.
928
9292008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
930
931 * configure: Regenerate.
932 * include/Makefile.in: Regenerate.
933 * testsuite/Makefile.in: Regenerate.
934
9352008-06-07 Joseph Myers <joseph@codesourcery.com>
936
937 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
938 powerpc-*-beos*): Remove.
939 * configure: Regenerate.
940
9412008-05-09 Julian Brown <julian@codesourcery.com>
942
943 * Makefile.am (LTLDFLAGS): New.
944 (libffi_la_LDFLAGS): Use above.
945 * Makefile.in: Regenerate.
946
9472008-04-18 Paolo Bonzini <bonzini@gnu.org>
948
949 PR bootstrap/35457
950 * aclocal.m4: Regenerate.
951 * configure: Regenerate.
952
9532008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
954
955 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
956 * src/sh64/sysv.S: Likewise.
957
9582008-03-26 Daniel Jacobowitz <dan@debian.org>
959
960 * src/arm/sysv.S: Fix ARM comment marker.
961
9622008-03-26 Jakub Jelinek <jakub@redhat.com>
963
964 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
965 * src/s390/sysv.S: Likewise.
966 * src/powerpc/ppc_closure.S: Likewise.
967 * src/powerpc/sysv.S: Likewise.
968 * src/x86/unix64.S: Likewise.
969 * src/x86/sysv.S: Likewise.
970 * src/sparc/v8.S: Likewise.
971 * src/sparc/v9.S: Likewise.
972 * src/m68k/sysv.S: Likewise.
973 * src/arm/sysv.S: Likewise.
974
9752008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
976
977 * aclocal.m4: Regenerate.
978 * configure: Likewise.
979 * Makefile.in: Likewise.
980 * include/Makefile.in: Likewise.
981 * testsuite/Makefile.in: Likewise.
982
9832008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
984 Andreas Tobler <a.tobler@schweiz.org>
985
986 * configure.ac: Add amd64-*-freebsd* target.
987 * configure: Regenerate.
988
9892008-01-30 H.J. Lu <hongjiu.lu@intel.com>
990
991 PR libffi/34612
992 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
993 returning struct.
994
995 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
996 tests.
997
9982008-01-24 David Edelsohn <edelsohn@gnu.org>
999
1000 * configure: Regenerate.
1001
10022008-01-06 Andreas Tobler <a.tobler@schweiz.org>
1003
1004 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
1005
10062008-01-05 Andreas Tobler <a.tobler@schweiz.org>
1007
1008 PR testsuite/32843
1009 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
1010 signed/unsigned int8/16 for X86_DARWIN.
1011 Updated copyright info.
1012 Handle one and two byte structs with special cif->flags.
1013 * src/x86/ffitarget.h: Add special types for one and two byte structs.
1014 Updated copyright info.
1015 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
1016 sysv.S
1017 Remove code to pop args from the stack after call.
1018 Special-case signed/unsigned for int8/16, one and two byte structs.
1019 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1020 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1021 FFI_TYPE_SINT32.
1022 Updated copyright info.
1023
10242007-12-08 David Daney <ddaney@avtrex.com>
1025
Anthony Green0cfe60e2009-12-29 10:06:04 -05001026 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001027 SUBU, add with ADDU and use smaller code sequences.
1028
10292007-12-07 David Daney <ddaney@avtrex.com>
1030
1031 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
1032 type.
1033
10342007-12-06 David Daney <ddaney@avtrex.com>
1035
1036 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
1037 defined.
1038 (ffi_java_raw): New typedef.
1039 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
1040 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
1041 ffi_java_raw.
1042 (ffi_java_raw_closure) : Same.
1043 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
1044 parameter types.
1045 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
1046 FFI_SIZEOF_JAVA_RAW.
1047 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
1048 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
1049 sizeof(ffi_java_raw) for alignment calculations.
1050 (ffi_java_ptrarray_to_raw): Same.
1051 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -05001052 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001053 (ffi_java_raw_to_rvalue): Same.
1054 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
1055 (ffi_java_translate_args): Same.
1056 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
1057 parameter types.
1058 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
1059
10602007-12-06 David Daney <ddaney@avtrex.com>
1061
Anthony Green0cfe60e2009-12-29 10:06:04 -05001062 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001063 pointer values.
1064
10652007-12-01 Andreas Tobler <a.tobler@schweiz.org>
1066
1067 PR libffi/31937
1068 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
1069 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
1070 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
1071 set the NUM_FPR_ARG_REGISTERS according to.
1072 Add support for potential soft-float support under hard-float
1073 architecture.
1074 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
1075 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
1076 to the FFI_LINUX_SOFT_FLOAT ABI.
1077 (ffi_prep_cif_machdep): Likewise.
1078 (ffi_closure_helper_SYSV): Likewise.
1079 * src/powerpc/ppc_closure.S: Make sure not to store float/double
1080 on archs where __NO_FPRS__ is true.
1081 Add FFI_TYPE_UINT128 support.
1082 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
1083 Adjust copyright notice.
1084
10852007-11-25 Andreas Tobler <a.tobler@schweiz.org>
1086
1087 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
1088 * include/ffi_common.h: ... here.
1089 Update copyright.
1090
10912007-11-17 Andreas Tobler <a.tobler@schweiz.org>
1092
1093 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
1094 * src/powerpc/linux64.S: Likewise.
1095 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
1096 * testsuite/libffi.call/return_ldl.c: New test.
1097
10982007-09-04 <aph@redhat.com>
1099
1100 * src/arm/sysv.S (UNWIND): New.
1101 (Whole file): Conditionally compile unwinder directives.
1102 * src/arm/sysv.S: Add unwinder directives.
1103
1104 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
1105 Only treat r0 as a struct address if we're actually returning a
1106 struct by address.
1107 Only copy the bytes that are actually within a struct.
1108 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
1109 is returned in r0, not passed by address.
1110 (ffi_call): Allocate a word-sized temporary for the case where
1111 a composite is returned in r0.
1112 (ffi_prep_incoming_args_SYSV): Align as necessary.
1113
11142007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
1115
Anthony Green0cfe60e2009-12-29 10:06:04 -05001116 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001117 directly using the sys_cacheflush syscall.
1118
11192007-07-27 Andrew Haley <aph@redhat.com>
1120
1121 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
1122
11232007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
1124
1125 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
1126 * configure.ac: Likewise.
1127 * Makefile.in: Regenerate.
1128 * include/Makefile.in: Likewise.
1129 * testsuite/Makefile.in: Likewise.
1130 * configure: Likewise.
1131
11322007-08-24 David Daney <ddaney@avtrex.com>
1133
1134 * testsuite/libffi.call/return_sl.c: New test.
1135
11362007-08-10 David Daney <ddaney@avtrex.com>
1137
1138 * testsuite/libffi.call/cls_multi_ushort.c,
1139 testsuite/libffi.call/cls_align_uint16.c,
1140 testsuite/libffi.call/nested_struct1.c,
1141 testsuite/libffi.call/nested_struct3.c,
1142 testsuite/libffi.call/cls_7_1_byte.c,
1143 testsuite/libffi.call/nested_struct5.c,
1144 testsuite/libffi.call/cls_double.c,
1145 testsuite/libffi.call/nested_struct7.c,
1146 testsuite/libffi.call/cls_sint.c,
1147 testsuite/libffi.call/nested_struct9.c,
1148 testsuite/libffi.call/cls_20byte1.c,
1149 testsuite/libffi.call/cls_multi_sshortchar.c,
1150 testsuite/libffi.call/cls_align_sint64.c,
1151 testsuite/libffi.call/cls_3byte2.c,
1152 testsuite/libffi.call/cls_multi_schar.c,
1153 testsuite/libffi.call/cls_multi_uchar.c,
1154 testsuite/libffi.call/cls_19byte.c,
1155 testsuite/libffi.call/cls_9byte1.c,
1156 testsuite/libffi.call/cls_align_float.c,
1157 testsuite/libffi.call/closure_fn1.c,
1158 testsuite/libffi.call/problem1.c,
1159 testsuite/libffi.call/closure_fn3.c,
1160 testsuite/libffi.call/cls_sshort.c,
1161 testsuite/libffi.call/closure_fn5.c,
1162 testsuite/libffi.call/cls_align_double.c,
1163 testsuite/libffi.call/nested_struct.c,
1164 testsuite/libffi.call/cls_2byte.c,
1165 testsuite/libffi.call/nested_struct10.c,
1166 testsuite/libffi.call/cls_4byte.c,
1167 testsuite/libffi.call/cls_6byte.c,
1168 testsuite/libffi.call/cls_8byte.c,
1169 testsuite/libffi.call/cls_multi_sshort.c,
1170 testsuite/libffi.call/cls_align_sint16.c,
1171 testsuite/libffi.call/cls_align_uint32.c,
1172 testsuite/libffi.call/cls_20byte.c,
1173 testsuite/libffi.call/cls_float.c,
1174 testsuite/libffi.call/nested_struct2.c,
1175 testsuite/libffi.call/cls_5_1_byte.c,
1176 testsuite/libffi.call/nested_struct4.c,
1177 testsuite/libffi.call/cls_24byte.c,
1178 testsuite/libffi.call/nested_struct6.c,
1179 testsuite/libffi.call/cls_64byte.c,
1180 testsuite/libffi.call/nested_struct8.c,
1181 testsuite/libffi.call/cls_uint.c,
1182 testsuite/libffi.call/cls_multi_ushortchar.c,
1183 testsuite/libffi.call/cls_schar.c,
1184 testsuite/libffi.call/cls_uchar.c,
1185 testsuite/libffi.call/cls_align_uint64.c,
1186 testsuite/libffi.call/cls_ulonglong.c,
1187 testsuite/libffi.call/cls_align_longdouble.c,
1188 testsuite/libffi.call/cls_1_1byte.c,
1189 testsuite/libffi.call/cls_12byte.c,
1190 testsuite/libffi.call/cls_3_1byte.c,
1191 testsuite/libffi.call/cls_3byte1.c,
1192 testsuite/libffi.call/cls_4_1byte.c,
1193 testsuite/libffi.call/cls_6_1_byte.c,
1194 testsuite/libffi.call/cls_16byte.c,
1195 testsuite/libffi.call/cls_18byte.c,
1196 testsuite/libffi.call/closure_fn0.c,
1197 testsuite/libffi.call/cls_9byte2.c,
1198 testsuite/libffi.call/closure_fn2.c,
1199 testsuite/libffi.call/closure_fn4.c,
1200 testsuite/libffi.call/cls_ushort.c,
1201 testsuite/libffi.call/closure_fn6.c,
1202 testsuite/libffi.call/cls_5byte.c,
1203 testsuite/libffi.call/cls_align_pointer.c,
1204 testsuite/libffi.call/cls_7byte.c,
1205 testsuite/libffi.call/cls_align_sint32.c,
1206 testsuite/libffi.special/unwindtest_ffi_call.cc,
1207 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
1208
12092007-08-10 David Daney <ddaney@avtrex.com>
1210
1211 PR libffi/28313
1212 * configure.ac: Don't treat mips64 as a special case.
1213 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
1214 * configure: Regenerate
1215 * Makefile.in: Ditto.
1216 * fficonfig.h.in: Ditto.
1217 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
1218 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
1219 (FFI_DEFAULT_ABI): Set for n64 case.
1220 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
1221 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
1222 (ffi_closure_N32): New function.
1223 (.eh_frame): New section
1224 * src/mips/o32.S: Clean up comments.
1225 (ffi_closure_O32): Pass ffi_closure parameter in $12.
1226 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
1227 _MIPS_SIM == _ABIN32 throughout.
1228 (FFI_MIPS_STOP_HERE): New, use in place of
1229 ffi_stop_here.
1230 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
1231 to support n32/n64 ABIs.
1232 (calc_n32_struct_flags): Rewrite.
1233 (calc_n32_return_struct_flags): Remove unused variable. Reverse
1234 position of flag bits.
1235 (ffi_prep_cif_machdep): Rewrite n32 portion.
1236 (ffi_call): Enable for n64. Add special handling for small structure
1237 return values.
1238 (ffi_prep_closure_loc): Add n32 and n64 support.
1239 (ffi_closure_mips_inner_O32): Add cast to silence warning.
1240 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
1241
12422007-08-08 David Daney <ddaney@avtrex.com>
1243
1244 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
1245 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
1246 specifiers.
1247 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
1248 * testsuite/libffi.call/cls_sint.c (main): Ditto.
1249 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
1250 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
1251 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
1252 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
1253 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
1254 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
1255 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
1256 * testsuite/libffi.call/return_fl3.c (main): Ditto.
1257 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
1258 * testsuite/libffi.call/nested_struct.c (main): Ditto.
1259 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
1260 * testsuite/libffi.call/return_ll1.c (main): Ditto.
1261 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
1262 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
1263 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
1264 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
1265 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
1266 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
1267 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
1268 * testsuite/libffi.call/cls_uint.c (main): Ditto.
1269 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
1270 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
1271 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
1272 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
1273 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
1274 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
1275 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
1276 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
1277 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
1278
12792007-08-07 Andrew Haley <aph@redhat.com>
1280
1281 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
1282 checkin.
1283
12842007-08-06 Andrew Haley <aph@redhat.com>
1285
1286 PR testsuite/32843
1287 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1288 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1289 FFI_TYPE_SINT32.
1290
12912007-08-02 David Daney <ddaney@avtrex.com>
1292
1293 * testsuite/libffi.call/return_ul.c (main): Define return type as
1294 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001295
Anthony Greenc6dddbd2009-10-04 08:11:33 -040012962007-07-30 Andrew Haley <aph@redhat.com>
1297
1298 PR testsuite/32843
1299 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
1300 signed/unsigned int8/16.
1301 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
1302 Use a jump table.
1303 Remove code to pop args from the stack after call.
1304 Special-case signed/unsigned int8/16.
1305 * testsuite/libffi.call/return_sc.c (main): Revert.
1306
13072007-07-26 Richard Guenther <rguenther@suse.de>
1308
1309 PR testsuite/32843
1310 * testsuite/libffi.call/return_sc.c (main): Verify call
1311 result as signed char, not ffi_arg.
1312
13132007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1314
1315 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
1316 * configure: Regenerate.
1317
13182007-07-11 David Daney <ddaney@avtrex.com>
1319
1320 * src/mips/ffi.c: Don't include sys/cachectl.h.
1321 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
1322 cacheflush().
1323
13242007-05-18 Aurelien Jarno <aurelien@aurel32.net>
1325
1326 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
1327 from (ffi_prep_closure): ... this.
1328 (FFI_INIT_TRAMPOLINE): Adjust.
1329
13302005-12-31 Phil Blundell <pb@reciva.com>
1331
Anthony Green0cfe60e2009-12-29 10:06:04 -05001332 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
1333 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001334 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
1335 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1336 (FFI_CLOSURES): Enable closure support.
1337
13382007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
1339
Anthony Green0cfe60e2009-12-29 10:06:04 -05001340 * testsuite/libffi.call/cls_multi_ushort.c,
1341 testsuite/libffi.call/cls_align_uint16.c,
1342 testsuite/libffi.call/nested_struct1.c,
1343 testsuite/libffi.call/nested_struct3.c,
1344 testsuite/libffi.call/cls_7_1_byte.c,
1345 testsuite/libffi.call/cls_double.c,
1346 testsuite/libffi.call/nested_struct5.c,
1347 testsuite/libffi.call/nested_struct7.c,
1348 testsuite/libffi.call/cls_sint.c,
1349 testsuite/libffi.call/nested_struct9.c,
1350 testsuite/libffi.call/cls_20byte1.c,
1351 testsuite/libffi.call/cls_multi_sshortchar.c,
1352 testsuite/libffi.call/cls_align_sint64.c,
1353 testsuite/libffi.call/cls_3byte2.c,
1354 testsuite/libffi.call/cls_multi_schar.c,
1355 testsuite/libffi.call/cls_multi_uchar.c,
1356 testsuite/libffi.call/cls_19byte.c,
1357 testsuite/libffi.call/cls_9byte1.c,
1358 testsuite/libffi.call/cls_align_float.c,
1359 testsuite/libffi.call/closure_fn1.c,
1360 testsuite/libffi.call/problem1.c,
1361 testsuite/libffi.call/closure_fn3.c,
1362 testsuite/libffi.call/cls_sshort.c,
1363 testsuite/libffi.call/closure_fn5.c,
1364 testsuite/libffi.call/cls_align_double.c,
1365 testsuite/libffi.call/cls_2byte.c,
1366 testsuite/libffi.call/nested_struct.c,
1367 testsuite/libffi.call/nested_struct10.c,
1368 testsuite/libffi.call/cls_4byte.c,
1369 testsuite/libffi.call/cls_6byte.c,
1370 testsuite/libffi.call/cls_8byte.c,
1371 testsuite/libffi.call/cls_multi_sshort.c,
1372 testsuite/libffi.call/cls_align_uint32.c,
1373 testsuite/libffi.call/cls_align_sint16.c,
1374 testsuite/libffi.call/cls_float.c,
1375 testsuite/libffi.call/cls_20byte.c,
1376 testsuite/libffi.call/cls_5_1_byte.c,
1377 testsuite/libffi.call/nested_struct2.c,
1378 testsuite/libffi.call/cls_24byte.c,
1379 testsuite/libffi.call/nested_struct4.c,
1380 testsuite/libffi.call/nested_struct6.c,
1381 testsuite/libffi.call/cls_64byte.c,
1382 testsuite/libffi.call/nested_struct8.c,
1383 testsuite/libffi.call/cls_uint.c,
1384 testsuite/libffi.call/cls_multi_ushortchar.c,
1385 testsuite/libffi.call/cls_schar.c,
1386 testsuite/libffi.call/cls_uchar.c,
1387 testsuite/libffi.call/cls_align_uint64.c,
1388 testsuite/libffi.call/cls_ulonglong.c,
1389 testsuite/libffi.call/cls_align_longdouble.c,
1390 testsuite/libffi.call/cls_1_1byte.c,
1391 testsuite/libffi.call/cls_12byte.c,
1392 testsuite/libffi.call/cls_3_1byte.c,
1393 testsuite/libffi.call/cls_3byte1.c,
1394 testsuite/libffi.call/cls_4_1byte.c,
1395 testsuite/libffi.call/cls_6_1_byte.c,
1396 testsuite/libffi.call/cls_16byte.c,
1397 testsuite/libffi.call/cls_18byte.c,
1398 testsuite/libffi.call/closure_fn0.c,
1399 testsuite/libffi.call/cls_9byte2.c,
1400 testsuite/libffi.call/closure_fn2.c,
1401 testsuite/libffi.call/closure_fn4.c,
1402 testsuite/libffi.call/cls_ushort.c,
1403 testsuite/libffi.call/closure_fn6.c,
1404 testsuite/libffi.call/cls_5byte.c,
1405 testsuite/libffi.call/cls_align_pointer.c,
1406 testsuite/libffi.call/cls_7byte.c,
1407 testsuite/libffi.call/cls_align_sint32.c,
1408 testsuite/libffi.special/unwindtest_ffi_call.cc,
1409 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001410
14112007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1412
1413 * aclocal.m4: Regenerated.
1414
14152007-06-02 Paolo Bonzini <bonzini@gnu.org>
1416
1417 * configure: Regenerate.
1418
14192007-05-23 Steve Ellcey <sje@cup.hp.com>
1420
1421 * Makefile.in: Regenerate.
1422 * configure: Regenerate.
1423 * aclocal.m4: Regenerate.
1424 * include/Makefile.in: Regenerate.
1425 * testsuite/Makefile.in: Regenerate.
1426
14272007-05-10 Roman Zippel <zippel@linux-m68k.org>
1428
1429 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
1430 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
1431 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
1432 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1433 (FFI_CLOSURES): Enable closure support.
1434
14352007-05-10 Roman Zippel <zippel@linux-m68k.org>
1436
1437 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
1438 * configure: Regenerate.
1439 * fficonfig.h.in: Regenerate.
1440 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
1441 CFI_OFFSET,CFI_DEF_CFA): New macros.
1442 (ffi_call_SYSV): Add callframe annotation.
1443
14442007-05-10 Roman Zippel <zippel@linux-m68k.org>
1445
1446 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
1447 numerous test suite failures.
1448 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
1449
14502007-04-11 Paolo Bonzini <bonzini@gnu.org>
1451
1452 * Makefile.am (EXTRA_DIST): Bring up to date.
1453 * Makefile.in: Regenerate.
1454 * src/frv/eabi.S: Remove RCS keyword.
1455
14562007-04-06 Richard Henderson <rth@redhat.com>
1457
1458 * configure.ac: Tidy target case.
1459 (HAVE_LONG_DOUBLE): Allow the target to override.
1460 * configure: Regenerate.
1461 * include/ffi.h.in: Don't define ffi_type_foo if
1462 LIBFFI_HIDE_BASIC_TYPES is defined.
1463 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
1464 to ffi_type_double.
1465 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
1466 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
1467 (ffi_type_longdouble): Special case for Alpha. Don't define
1468 if long double == double.
1469
1470 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
1471 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
1472 (ffi_call, ffi_closure_osf_inner): Likewise.
1473 (ffi_closure_osf_inner): Likewise. Mark hidden.
1474 (ffi_call_osf, ffi_closure_osf): Mark hidden.
1475 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
1476 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
1477 (load_table): Handle 128-bit long double.
1478
1479 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
1480
14812007-04-06 Tom Tromey <tromey@redhat.com>
1482
1483 PR libffi/31491:
1484 * README: Fixed bug in example.
1485
14862007-04-03 Jakub Jelinek <jakub@redhat.com>
1487
1488 * src/closures.c: Include sys/statfs.h.
1489 (_GNU_SOURCE): Define on Linux.
1490 (FFI_MMAP_EXEC_SELINUX): Define.
1491 (selinux_enabled): New variable.
1492 (selinux_enabled_check): New function.
1493 (is_selinux_enabled): Define.
1494 (dlmmap): Use it.
1495
14962007-03-24 Uros Bizjak <ubizjak@gmail.com>
1497
1498 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
1499 Use 'volatile float sum' to create sum of floats to avoid false
1500 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001501 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001502
15032007-03-08 Alexandre Oliva <aoliva@redhat.com>
1504
1505 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
1506 patch.
1507 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
1508
15092007-03-07 Alexandre Oliva <aoliva@redhat.com>
1510
1511 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
1512 (ffi_prep_closure_loc): New.
1513 (ffi_prep_raw_closure_loc): New.
1514 (ffi_prep_java_raw_closure_loc): New.
1515 * src/closures.c: New file.
1516 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
1517 Replace sflags with exec_offset.
1518 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
1519 sub_segment_exec_offset): New macros.
1520 (get_segment_flags, set_segment_flags, check_segment_merge): New
1521 macros.
1522 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
1523 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
1524 destroy_mspace): Use new macros.
1525 (sys_alloc): Silence warning.
1526 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
1527 * Makefile.in: Rebuilt.
1528 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
1529 terms of ffi_prep_closure_loc.
1530 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
1531 from...
1532 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
1533 renamed version.
1534 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
1535 adjusted from...
1536 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
1537 the renamed version.
1538 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
1539 (ffi_prep_closure): ... this.
1540 * src/pa/ffi.c: Likewise.
1541 * src/cris/ffi.c: Likewise. Adjust.
1542 * src/frv/ffi.c: Likewise.
1543 * src/ia64/ffi.c: Likewise.
1544 * src/mips/ffi.c: Likewise.
1545 * src/powerpc/ffi_darwin.c: Likewise.
1546 * src/s390/ffi.c: Likewise.
1547 * src/sh/ffi.c: Likewise.
1548 * src/sh64/ffi.c: Likewise.
1549 * src/sparc/ffi.c: Likewise.
1550 * src/x86/ffi64.c: Likewise.
1551 * src/x86/ffi.c: Likewise.
1552 (FFI_INIT_TRAMPOLINE): Adjust.
1553 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
1554 (ffi_prep_raw_closure): ... this.
1555 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
1556 (ffi_prep_closure): ... this.
1557 (flush_icache): Adjust.
1558
15592007-03-07 Alexandre Oliva <aoliva@redhat.com>
1560
1561 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
1562 Lea's malloc.
1563
15642007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1565
1566 * Makefile.am: Add dummy install-pdf target.
1567 * Makefile.in: Regenerate
1568
15692007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
1570
1571 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
1572 ffi_closure_helper_SYSV): Add long double handling.
1573
15742007-02-02 Jakub Jelinek <jakub@redhat.com>
1575
1576 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
1577 immediately after bctrl instruction.
1578
15792007-01-18 Alexandre Oliva <aoliva@redhat.com>
1580
1581 * Makefile.am (all-recursive, install-recursive,
1582 mostlyclean-recursive, clean-recursive, distclean-recursive,
1583 maintainer-clean-recursive): Add missing targets.
1584 * Makefile.in: Rebuilt.
1585
15862006-12-14 Andreas Tobler <a.tobler@schweiz.org>
1587
1588 * configure.ac: Add TARGET for x86_64-*-darwin*.
1589 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
1590 for X86_DARWIN.
1591 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
1592 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
1593 * configure: Regenerate.
1594 * Makefile.in: Regenerate.
1595 * include/Makefile.in: Regenerate.
1596 * testsuite/Makefile.in: Regenerate.
1597 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
1598 ffi_call only.
1599
16002006-12-13 Andreas Tobler <a.tobler@schweiz.org>
1601
1602 * aclocal.m4: Regenerate with aclocal -I .. as written in the
1603 Makefile.am.
1604
16052006-10-31 Geoffrey Keating <geoffk@apple.com>
1606
1607 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
1608 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
1609 Darwin.
1610 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
1611 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
1612
16132006-10-10 Paolo Bonzini <bonzini@gnu.org>
1614 Sandro Tolaini <tolaini@libero.it>
1615
Anthony Green0cfe60e2009-12-29 10:06:04 -05001616 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001617 conditional.
1618 * configure: Regenerated.
1619 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
1620 (EXTRA_DIST): Add src/x86/darwin.S.
1621 * Makefile.in: Regenerated.
1622 * include/Makefile.in: Regenerated.
1623 * testsuite/Makefile.in: Regenerated.
1624
1625 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
1626 X86_WIN32, and additionally align stack to 16 bytes.
1627 * src/x86/darwin.S: New, based on sysv.S.
1628 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
1629
16302006-09-12 David Daney <ddaney@avtrex.com>
1631
1632 PR libffi/23935
1633 * include/Makefile.am: Install both ffi.h and ffitarget.h in
1634 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
1635 * aclocal.m4: Regenerated for automake 1.9.6.
1636 * Makefile.in: Regenerated.
1637 * include/Makefile.in: Regenerated.
1638 * testsuite/Makefile.in: Regenerated.
1639
16402006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
1641
1642 * include/ffi_common.h (struct): Revert accidental commit.
1643
16442006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
1645
1646 * include/ffi_common.h: Remove lint directives.
1647 * include/ffi.h.in: Likewise.
1648
16492006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
1650
1651 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
1652 for 32-bit architectures.
1653 * testsuite/libffi.call/return_ul.c: New test case.
1654
16552006-07-19 David Daney <ddaney@avtrex.com>
1656
1657 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
1658 xfail remains for mips64.
1659
16602006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1661
1662 * Makefile.am: Add install-html target. Add install-html to .PHONY
1663 * Makefile.in: Regenerate.
1664 * aclocal.m4: Regenerate.
1665 * include/Makefile.in: Regenerate.
1666 * testsuite/Makefile.in: Regenerate.
1667
16682006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1669
1670 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
1671 stack slot.
1672
16732006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
1674
1675 * README: Remove notice about 'Crazy Comments'.
1676 * src/debug.c: Remove lint directives. Cleanup white spaces.
1677 * src/java_raw_api.c: Likewise.
1678 * src/prep_cif.c: Likewise.
1679 * src/raw_api.c: Likewise.
1680 * src/ffitest.c: Delete. No longer needed, all test cases migrated
1681 to the testsuite.
1682 * src/arm/ffi.c: Remove lint directives.
1683 * src/m32r/ffi.c: Likewise.
1684 * src/pa/ffi.c: Likewise.
1685 * src/powerpc/ffi.c: Likewise.
1686 * src/powerpc/ffi_darwin.c: Likewise.
1687 * src/sh/ffi.c: Likewise.
1688 * src/sh64/ffi.c: Likewise.
1689 * src/x86/ffi.c: Likewise.
1690 * testsuite/libffi.call/float2.c: Likewise.
1691 * testsuite/libffi.call/promotion.c: Likewise.
1692 * testsuite/libffi.call/struct1.c: Likewise.
1693
16942006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
1695
1696 * src/pa/hpux32.S: Correct unwind offset calculation for
1697 ffi_closure_pa32.
1698 * src/pa/linux.S: Likewise.
1699
17002006-04-12 James E Wilson <wilson@specifix.com>
1701
1702 PR libgcj/26483
1703 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
1704 (hfa_type_load): Call stf_spill.
1705 (hfa_type_store): Call ldf_fill.
1706 (ffi_call): Adjust calls to above routines. Add local temps for
1707 macro result.
1708
17092006-04-10 Matthias Klose <doko@debian.org>
1710
1711 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
1712 directory names containing underscores.
1713
17142006-04-07 James E Wilson <wilson@specifix.com>
1715
1716 * testsuite/libffi.call/float4.c: New testcase.
1717
17182006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1719 Andreas Tobler <a.tobler@schweiz.ch>
1720
1721 * Makefile.am: Add PA_HPUX port.
1722 * Makefile.in: Regenerate.
1723 * include/Makefile.in: Likewise.
1724 * testsuite/Makefile.in: Likewise.
1725 * configure.ac: Add PA_HPUX rules.
1726 * configure: Regenerate.
1727 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
1728 Add PA_HPUX and PA64_HPUX.
1729 Rename FFI_LINUX ABI to FFI_PA32 ABI.
1730 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
1731 (FFI_TYPE_SMALL_STRUCT2): Define.
1732 (FFI_TYPE_SMALL_STRUCT4): Likewise.
1733 (FFI_TYPE_SMALL_STRUCT8): Likewise.
1734 (FFI_TYPE_SMALL_STRUCT3): Redefine.
1735 (FFI_TYPE_SMALL_STRUCT5): Likewise.
1736 (FFI_TYPE_SMALL_STRUCT6): Likewise.
1737 (FFI_TYPE_SMALL_STRUCT7): Likewise.
1738 * src/pa/ffi.c (ROUND_DOWN): Delete.
1739 (fldw, fstw, fldd, fstd): Use '__asm__'.
1740 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
1741 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
1742 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
1743 Simplify incrementing of stack slot variable. Change type of local
1744 'n' to unsigned int.
1745 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
1746 double on PA_HPUX.
1747 (ffi_prep_cif_machdep): Likewise.
1748 (ffi_call): Likewise.
1749 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
1750 return type to ffi_status. Simplify incrementing of stack slot
1751 variable. Only copy floating point argument registers when PA_LINUX
1752 is true. Reformat debug statement.
1753 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
1754 FFI_TYPE_SMALL_STRUCT8.
1755 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
1756 declaration.
1757 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
1758 Add nops to cache flush. Add trampoline for PA_HPUX.
1759 * src/pa/hpux32.S: New file.
1760 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
1761 ffi_prep_args_LINUX to ffi_prep_args_pa32.
1762 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
1763 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
1764 argument type checks so that common argument types appear first.
1765 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
1766 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
1767
17682006-03-24 Alan Modra <amodra@bigpond.net.au>
1769
1770 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
1771 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
1772 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
1773 FFI_TYPE_LONGDOUBLE.
1774 (ffi_prep_args64): Assert using IBM extended double.
1775 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
1776 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
1777 (ffi_call): Handle FFI_LINUX.
1778 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
1779 gpr3 return pointer as for struct return. Handle FFI_LINUX
1780 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
1781 unnecessarily.
1782 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
1783 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
1784 Don't use r6 as pointer to results, instead use sp offset. Don't
1785 make a special call to load lr with case table address, instead
1786 use offset from previous call.
1787 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
1788 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
1789 return.
1790
17912006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
1792
1793 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
1794 passed with FP registers correctly.
1795 (ffi_closure_helper_SYSV): Likewise.
1796 * src/sh64/sysv.S: Likewise.
1797
17982006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
1799
1800 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
1801 args and userdata unused.
1802 (closure_test_fn1): Mark cif and userdata unused.
1803 (main): Remove unused res.
1804
18052006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
1806
1807 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
1808 -O2, -O3, -Os and the warning flags -W -Wall.
1809 * testsuite/libffi.special/special.exp: Likewise.
1810 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
1811 unused parameter unused for gcc or else do nothing.
1812 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1813 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
1814 and userdata unused.
1815 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
1816 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
1817 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
1818 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
1819 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
1820 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
1821 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
1822 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
1823 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
1824 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
1825 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
1826 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
1827 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
1828 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
1829 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
1830 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
1831 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
1832 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
1833 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
1834 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
1835 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
1836 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
1837 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
1838 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
1839 Likewise.
1840 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
1841 Likewise.
1842 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
1843 Likewise.
1844 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
1845 void* to avoid compiler warning.
1846 (main): Likewise.
1847 (cls_struct_align_gn): Mark cif and userdata unused.
1848 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
1849 Likewise.
1850 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
1851 Likewise.
1852 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
1853 Likewise.
1854 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
1855 Likewise.
1856 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
1857 Likewise.
1858 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
1859 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
1860 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
1861 data unused.
1862 (main): Cast res_call to silence gcc.
1863 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
1864 data unused.
1865 (main): Cast res_call to silence gcc.
1866 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
1867 and data unused.
1868 (main): Cast res_call to silence gcc.
1869 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
1870 data unused.
1871 (main): Cast res_call to silence gcc.
1872 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
1873 data unused.
1874 (main): Cast res_call to silence gcc.
1875 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
1876 and data unused.
1877 (main): Cast res_call to silence gcc.
1878 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
1879 userdata unused.
1880 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
1881 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
1882 userdata unused.
1883 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
1884 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
1885 userdata unused.
1886 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
1887 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
1888 userdata unused.
1889 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
1890 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
1891 userdata unused.
1892 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
1893 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
1894 and userdata unused.
1895 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
1896 userdata unused.
1897 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
1898 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
1899 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
1900 Cleanup white spaces.
1901 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
1902 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
1903 cif and userdata unused.
1904 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
1905 Likewise.
1906 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
1907 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
1908 formatters to silence gcc.
1909 (B_gn): Mark cif and userdata unused.
1910 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
1911 unused.
1912 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
1913 (B_gn): Mark cif and userdata unused.
1914 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
1915 unused.
1916 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
1917 (B_gn): Mark cif and userdata unused.
1918 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
1919 unused.
1920 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
1921 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
1922 * testsuite/libffi.call/problem1.c (stub): Likewise.
1923 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
1924 gcc.
1925 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
1926 in the last commit for this test case in the test case itself.
1927 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
1928 unused.
1929 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
1930 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
1931 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
1932 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
1933 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
1934 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
1935
19362006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
1937
1938 * src/sh/sysv.S: Fix register numbers in the FDE for
1939 ffi_closure_SYSV.
1940
19412006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
1942
1943 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
1944 declaration to avoid a false negative on ix86. See PR323.
1945
19462006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
1947
1948 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
1949 and cast integer to void * if needed. Update the pointer to
1950 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001951
Anthony Greenc6dddbd2009-10-04 08:11:33 -040019522006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
1953
1954 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
1955 is fixed.
1956 * testsuite/libffi.call/nested_struct4.c: Likewise.
1957
19582006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
1959
1960 * testsuite/libffi.call/return_dbl.c: New test case.
1961 * testsuite/libffi.call/return_dbl1.c: Likewise.
1962 * testsuite/libffi.call/return_dbl2.c: Likewise.
1963 * testsuite/libffi.call/return_fl.c: Likewise.
1964 * testsuite/libffi.call/return_fl1.c: Likewise.
1965 * testsuite/libffi.call/return_fl2.c: Likewise.
1966 * testsuite/libffi.call/return_fl3.c: Likewise.
1967 * testsuite/libffi.call/closure_fn6.c: Likewise.
1968
1969 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
1970 definition.
1971 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
1972 here to be used by other test cases too.
1973
1974 * testsuite/libffi.call/nested_struct10.c: New test case.
1975 * testsuite/libffi.call/nested_struct9.c: Likewise.
1976 * testsuite/libffi.call/nested_struct8.c: Likewise.
1977 * testsuite/libffi.call/nested_struct7.c: Likewise.
1978 * testsuite/libffi.call/nested_struct6.c: Likewise.
1979 * testsuite/libffi.call/nested_struct5.c: Likewise.
1980 * testsuite/libffi.call/nested_struct4.c: Likewise.
1981
19822006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1983
1984 * configure.ac: Enable libffi for sparc64-*-freebsd*.
1985 * configure: Rebuilt.
1986
19872006-01-18 Jakub Jelinek <jakub@redhat.com>
1988
1989 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
1990 instead do the shifting inline.
1991 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
1992 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
1993 and 8 byte structs, for the remaining struct sizes don't call
1994 __lshrdi3, instead do the shifting inline.
1995
19962005-12-07 Thiemo Seufer <ths@networkno.de>
1997
1998 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
1999 missing parentheses.
2000 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
2001 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
2002 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
2003 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
2004 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
2005 FA_0_0_OFF2.
2006 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
2007 endianness bugs.
2008 (ffi_prep_closure): Improve trampoline instruction scheduling.
2009 (ffi_closure_mips_inner_O32): Fix endianness bugs.
2010
20112005-12-03 Alan Modra <amodra@bigpond.net.au>
2012
2013 * src/powerpc/ffi.c: Formatting.
2014 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
2015 (ffi_prep_args64): Likewise.
2016
20172005-09-30 Geoffrey Keating <geoffk@apple.com>
2018
2019 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
2020 darwin, use -shared-libgcc not -lgcc_s, and explain why.
2021
20222005-09-26 Tom Tromey <tromey@redhat.com>
2023
2024 * testsuite/libffi.call/float1.c (value_type): New typedef.
2025 (CANARY): New define.
2026 (main): Check for result buffer overflow.
2027 * src/powerpc/linux64.S: Handle linux64 long double returns.
2028 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
2029 (ffi_prep_cif_machdep): Handle linux64 long double returns.
2030
20312005-08-25 Alan Modra <amodra@bigpond.net.au>
2032
2033 PR target/23404
2034 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
2035 homed fp args.
2036 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
2037
20382005-08-11 Jakub Jelinek <jakub@redhat.com>
2039
2040 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
2041 (AH_BOTTOM): Add FFI_HIDDEN definition.
2042 * configure: Rebuilt.
2043 * fficonfig.h.in: Rebuilt.
2044 * src/powerpc/ffi.c (hidden): Remove.
2045 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
2046 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
2047 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
2048 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
2049 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
2050 add FFI_HIDDEN to its prototype.
2051 (ffi_closure_SYSV_inner): New.
2052 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
2053 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
2054
20552005-08-10 Alfred M. Szmidt <ams@gnu.org>
2056
2057 PR libffi/21819:
2058 * configure: Rebuilt.
2059 * configure.ac: Handle i*86-*-gnu*.
2060
20612005-08-09 Jakub Jelinek <jakub@redhat.com>
2062
2063 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
2064 DW_CFA_offset_extended_sf rather than
2065 DW_CFA_GNU_negative_offset_extended.
2066 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
2067
20682005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2069
2070 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
2071 on sh3.
2072 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
2073 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
2074 partially on register.
2075 (ffi_closure_helper_SYSV): Likewise.
2076 (ffi_prep_cif_machdep): Don't set too many cif->flags.
2077
20782005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2079
2080 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
2081 Remove empty line.
2082 * src/sh64/ffi.c (simple_type): Remove.
2083 (return_type): Handle small structures correctly.
2084 (ffi_prep_args): Likewise.
2085 (ffi_call): Likewise.
2086 (ffi_closure_helper_SYSV): Likewise.
2087 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
2088 Emit position independent code if PIC and remove wrong datalabel
2089 prefixes from EH data.
2090
20912005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
2092
2093 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
2094 * Makefile.in: Regenerate.
2095 * include/Makefile.in: Likewise.
2096 * testsuite/Makefile.in: Likewise.
2097 * configure.ac: Add POWERPC_FREEBSD rules.
2098 * configure: Regenerate.
2099 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
2100 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
2101 * src/powerpc/ffi.c: Add flags to handle small structure returns
2102 in ffi_call_SYSV.
2103 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
2104 Aka FFI_SYSV.
2105 (ffi_closure_helper_SYSV): Likewise.
2106 * src/powerpc/ppc_closure.S: Add return types for small structures.
2107 * src/powerpc/sysv.S: Add bits to handle small structures for
2108 final SYSV 4 ABI.
2109
21102005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
2111
2112 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
2113 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
2114 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
2115
21162005-07-05 Randolph Chung <tausq@debian.org>
2117
2118 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
2119 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
2120 structures. Kill compilation warnings.
2121 (ffi_closure_inner_LINUX): Print return values as hex in debug
2122 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
2123 Properly handle 5-7 byte structure returns.
2124 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
2125 (FFI_TYPE_SMALL_STRUCT2): Remove.
2126 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
2127 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
2128 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
2129 (checksmst1, checksmst2): Remove.
2130 (checksmst3): Optimize handling of 3-byte struct returns.
2131 (checksmst567): Properly handle 5-7 byte struct returns.
2132
21332005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2134
2135 PR libgcj/21943
2136 * src/mips/n32.S: Enforce PIC code.
2137 * src/mips/o32.S: Likewise.
2138
21392005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2140
2141 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
2142 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002143
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021442005-06-01 Alan Modra <amodra@bigpond.net.au>
2145
2146 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
2147 to call ffi_closure_helper_SYSV. Append @local instead.
2148 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
2149
21502005-05-17 Kelley Cook <kcook@gcc.gnu.org>
2151
2152 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
2153 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
2154 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
2155 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
2156 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002157
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021582005-05-09 Mike Stump <mrs@apple.com>
2159
2160 * configure: Regenerate.
2161
21622005-05-08 Richard Henderson <rth@redhat.com>
2163
2164 PR libffi/21285
2165 * src/alpha/osf.S: Update unwind into to match code.
2166
21672005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
2168 Richard Henderson <rth@redhat.com>
2169
2170 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
2171 bit 11 of flags.
2172 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
2173 (ffi_prep_closure): Set carry bit if sse-used flag set.
2174 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
2175 Only load sse registers if ssecount non-zero.
2176 (ffi_closure_unix64): Only save sse registers if carry set on entry.
2177
21782005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
2179
2180 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
2181 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
2182 * configure: Regenerate.
2183
21842005-04-20 Hans-Peter Nilsson <hp@axis.com>
2185
2186 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
2187 have Tcl8.3-compatible intermediate variable.
2188
Anthony Green0cfe60e2009-12-29 10:06:04 -050021892005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002190 Hans-Peter Nilsson <hp@axis.com>
2191
2192 * Makefile.am: Add CRIS support.
2193 * configure.ac: Likewise.
2194 * Makefile.in, configure, testsuite/Makefile.in,
2195 include/Makefile.in: Regenerate.
2196 * src/cris: New directory.
2197 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
2198 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
2199
2200 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
2201 \r?\n in output tests.
2202
22032005-04-12 Mike Stump <mrs@apple.com>
2204
2205 * configure: Regenerate.
2206
22072005-03-30 Hans Boehm <Hans.Boehm@hp.com>
2208
2209 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002210
Anthony Greenc6dddbd2009-10-04 08:11:33 -040022112005-03-30 Steve Ellcey <sje@cup.hp.com>
2212
2213 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
2214 (ffi_sarg) Ditto.
2215 * src/ia64/unix.S (ffi_closure_unix): Extend gp
2216 to 64 bits in ILP32 mode.
2217 Load 64 bits even for short data.
2218
22192005-03-23 Mike Stump <mrs@apple.com>
2220
2221 * src/powerpc/darwin.S: Update for -m64 multilib.
2222 * src/powerpc/darwin_closure.S: Likewise.
2223
22242005-03-21 Zack Weinberg <zack@codesourcery.com>
2225
2226 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2227 Do not set tool_include_dir.
2228 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
2229 Regenerate.
2230 * include/Makefile.am: Set gcc_version and toollibffidir.
2231 * include/Makefile.in: Regenerate.
2232
22332005-02-22 Andrew Haley <aph@redhat.com>
2234
2235 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
2236 odd-numbered register pairs for 64-bit integer types.
2237
22382005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
2239
2240 PR libffi/20104
2241 * testsuite/libffi.call/return_ll1.c: New test case.
2242
22432005-02-11 Janis Johnson <janis187@us.ibm.com>
2244
2245 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
2246 * testsuite/libffi.call/float.c: Ditto.
2247 * testsuite/libffi.call/float2.c: Ditto.
2248 * testsuite/libffi.call/float3.c: Ditto.
2249
22502005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
2251
2252 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
2253
22542005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2255
2256 * testsuite/libffi.special/special.exp (cxx_options): Add
2257 -shared-libgcc.
2258
22592004-12-31 Richard Henderson <rth@redhat.com>
2260
2261 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
2262 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
2263 offset parameters with a type parameter; deduce size and structure
2264 alignment. Update all users.
2265
22662004-12-31 Richard Henderson <rth@redhat.com>
2267
2268 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
2269 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
2270 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
2271 into ffi_prep_closure.
2272 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
2273 from scratch.
2274
22752004-12-27 Richard Henderson <rth@redhat.com>
2276
2277 * src/x86/unix64.S: Fix typo in unwind info.
2278
22792004-12-25 Richard Henderson <rth@redhat.com>
2280
2281 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
2282 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
2283 (merge_classes): Check for it.
2284 (SSE_CLASS_P): New.
2285 (classify_argument): Pass byte_offset by value; perform all updates
2286 inside struct case.
2287 (examine_argument): Add classes argument; handle
2288 X86_64_COMPLEX_X87_CLASS.
2289 (ffi_prep_args): Merge into ...
2290 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
2291 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
2292 (ffi_fill_return_value): Remove.
2293 (ffi_prep_closure): Remove dead assert.
2294 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
2295 Rewrite to use struct register_args instead of va_list. Create
2296 flags for handling structure returns.
2297 * src/x86/unix64.S: Remove dead strings.
2298 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
2299 stack frame with ffi_call. Handle structure returns properly.
2300 (float2sse, floatfloat2sse, double2sse): Remove.
2301 (sse2float, sse2double, sse2floatfloat): Remove.
2302 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
2303 to handle structure returns properly.
2304
23052004-12-08 David Edelsohn <edelsohn@gnu.org>
2306
2307 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
2308 PICFLAG.
2309 * Makefile.in: Regenerated.
2310
23112004-12-02 Richard Sandiford <rsandifo@redhat.com>
2312
2313 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2314 * configure, aclocal.m4, Makefile.in: Regenerate.
2315 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
2316
23172004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2318
2319 * configure: Regenerate for libtool change.
2320
23212004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2322
2323 * configure: Regenerate for libtool reversion.
2324
23252004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2326
2327 * configure: Regenerate for libtool change.
2328
23292004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2330
2331 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
2332
23332004-11-23 Richard Sandiford <rsandifo@redhat.com>
2334
2335 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
2336 of jal. Use an absolute encoding for the frame information.
2337
23382004-11-23 Kelley Cook <kcook@gcc.gnu.org>
2339
2340 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
2341 * acinclude.m4: Delete logic for sincludes.
2342 * aclocal.m4, Makefile.in, configure: Regenerate.
2343 * include/Makefile: Likewise.
2344 * testsuite/Makefile: Likewise.
2345
23462004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2347
2348 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
2349 on a 8-byte boundary.
2350 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
2351
23522004-10-27 Richard Earnshaw <rearnsha@arm.com>
2353
2354 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
2355 long long values. Round stack allocation to a multiple of 8 bytes
2356 for ATPCS compatibility.
2357 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
2358 names. Handle returning long long types. Add Thumb and interworking
2359 support. Improve soft-float code.
2360
23612004-10-27 Richard Earnshaw <rearnsha@arm.com>
2362
2363 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
2364 (libffi_exit): New function.
2365 (libffi_init): Build the testglue wrapper if needed.
2366
23672004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2368
2369 PR other/18138
2370 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
2371
23722004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2373
2374 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
2375
23762004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
2377
2378 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
2379 * testsuite/libffi.call/float3.c: New test case.
2380
23812004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
2382
2383 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
2384 the function returning a structure pointed with R2.
2385 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
2386 the structure return value if T bit set. Emit position
2387 independent code and EH data if PIC.
2388
23892004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2390
2391 * Makefile.am: Add m32r support.
2392 * configure.ac: Likewise.
2393 * Makefile.in: Regenerate.
2394 * confiugre: Regenerate.
2395 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
2396 (uint64, sint64, double, longdouble)
2397 * src/m32r: New directory.
2398 * src/m32r/ffi.c: New file.
2399 * src/m32r/sysv.S: Likewise.
2400 * src/m32r/ffitarget.h: Likewise.
2401
24022004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
2403
2404 * testsuite/libffi.call/negint.c: New test case.
2405
24062004-09-14 H.J. Lu <hongjiu.lu@intel.com>
2407
2408 PR libgcj/17465
2409 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
2410 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
2411 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
2412 DYLD_LIBRARY_PATH.
2413
24142004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2415
2416 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
2417 * testsuite/libffi.call/promotion.c: Likewise.
2418 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
2419 whitespaces.
2420 * testsuite/libffi.call/return_sc.c: Likewise.
2421 * testsuite/libffi.call/return_uc.c: Likewise.
2422
24232004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2424
2425 * src/powerpc/darwin.S: Fix comments and identation.
2426 * src/powerpc/darwin_closure.S: Likewise.
2427
24282004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2429
2430 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
2431 (ffi_prep_args): Handle longdouble arguments.
2432 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
2433 longdouble.
2434 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
2435 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
2436 values.
2437 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
2438 * src/types.c: Defined longdouble size and alignment for darwin.
2439
24402004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2441
2442 * src/powerpc/aix.S: Remove whitespaces.
2443 * src/powerpc/aix_closure.S: Likewise.
2444 * src/powerpc/asm.h: Likewise.
2445 * src/powerpc/ffi.c: Likewise.
2446 * src/powerpc/ffitarget.h: Likewise.
2447 * src/powerpc/linux64.S: Likewise.
2448 * src/powerpc/linux64_closure.S: Likewise.
2449 * src/powerpc/ppc_closure.S: Likewise.
2450 * src/powerpc/sysv.S: Likewise.
2451
24522004-08-30 Anthony Green <green@redhat.com>
2453
2454 * Makefile.am: Add frv support.
2455 * Makefile.in, testsuite/Makefile.in: Rebuilt.
2456 * configure.ac: Read configure.host.
2457 * configure.in: Read configure.host.
2458 * configure.host: New file. frv-elf needs libgloss.
2459 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
2460 alignment. This is needed to frv and shouldn't harm the others.
2461 * include/ffi_common.h (ALIGN_DOWN): New macro.
2462 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
2463
24642004-08-24 David Daney <daney@avtrex.com>
2465
2466 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
2467 * testsuite/libffi.call/closure_fn1.c: Likewise.
2468 * testsuite/libffi.call/closure_fn2.c Likewise.
2469 * testsuite/libffi.call/closure_fn3.c: Likewise.
2470 * testsuite/libffi.call/closure_fn4.c: Likewise.
2471 * testsuite/libffi.call/closure_fn5.c: Likewise.
2472 * testsuite/libffi.call/cls_18byte.c: Likewise.
2473 * testsuite/libffi.call/cls_19byte.c: Likewise.
2474 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2475 * testsuite/libffi.call/cls_20byte.c: Likewise.
2476 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2477 * testsuite/libffi.call/cls_24byte.c: Likewise.
2478 * testsuite/libffi.call/cls_2byte.c: Likewise.
2479 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2480 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2481 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2482 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2483 * testsuite/libffi.call/cls_4byte.c: Likewise.
2484 * testsuite/libffi.call/cls_64byte.c: Likewise.
2485 * testsuite/libffi.call/cls_6byte.c: Likewise.
2486 * testsuite/libffi.call/cls_7byte.c: Likewise.
2487 * testsuite/libffi.call/cls_8byte.c: Likewise.
2488 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2489 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2490 * testsuite/libffi.call/cls_align_double.c: Likewise.
2491 * testsuite/libffi.call/cls_align_float.c: Likewise.
2492 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2493 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2494 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2495 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2496 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2497 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2498 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2499 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
2500 * testsuite/libffi.call/cls_double.c: Likewise.
2501 * testsuite/libffi.call/cls_float.c: Likewise.
2502 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2503 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
2504 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2505 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2506 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2507 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2508 * testsuite/libffi.call/cls_schar.c: Likewise.
2509 * testsuite/libffi.call/cls_sint.c: Likewise.
2510 * testsuite/libffi.call/cls_sshort.c: Likewise.
2511 * testsuite/libffi.call/cls_uchar.c: Likewise.
2512 * testsuite/libffi.call/cls_uint.c: Likewise.
2513 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2514 * testsuite/libffi.call/cls_ushort.c: Likewise.
2515 * testsuite/libffi.call/nested_struct.c: Likewise.
2516 * testsuite/libffi.call/nested_struct1.c: Likewise.
2517 * testsuite/libffi.call/nested_struct2.c: Likewise.
2518 * testsuite/libffi.call/nested_struct3.c: Likewise.
2519 * testsuite/libffi.call/problem1.c: Likewise.
2520 * testsuite/libffi.special/unwindtest.cc: Likewise.
2521 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
2522 to zero.
2523 * testsuite/libffi.call/cls_16byte.c: Likewise.
2524 * testsuite/libffi.call/cls_5byte.c: Likewise.
2525
25262004-08-23 David Daney <daney@avtrex.com>
2527
2528 PR libgcj/13141
2529 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
2530 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
2531 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
2532 parameters and return types.
2533 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
2534 (ffi_prep_closure): Ditto.
2535 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
2536 alignment calculations.
2537 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
2538 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
2539
25402004-08-14 Casey Marshall <csm@gnu.org>
2541
2542 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
2543 contain `FFI_TYPE_UINT64' as return type for any 64-bit
2544 integer (O32 ABI only).
2545 (ffi_prep_closure): new function.
2546 (ffi_closure_mips_inner_O32): new function.
2547 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
2548 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
2549 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
2550 64 bit integers correctly.
2551 (ffi_closure_O32): new function.
2552 Added DWARF-2 unwind info for both functions.
2553
25542004-08-10 Andrew Haley <aph@redhat.com>
2555
2556 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
2557
25582004-08-01 Robert Millan <robertmh@gnu.org>
2559
2560 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
2561 * configure: Regenerate.
2562
25632004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
2564
2565 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
2566 and mmap() explicitly instead of relying on preset autoconf cache
2567 variables.
2568 * aclocal.m4: Regenerate.
2569 * configure: Regenerate.
2570
25712004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
2572
2573 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
2574 (ffi_check_float_struct): Remove unused prototype.
2575
25762004-06-30 Geoffrey Keating <geoffk@apple.com>
2577
2578 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
2579 character on Darwin, use '\n\t' instead.
2580
25812004-06-26 Matthias Klose <doko@debian.org>
2582
2583 * libtool-version: Fix typo in revision/age.
2584
25852004-06-17 Matthias Klose <doko@debian.org>
2586
2587 * libtool-version: New.
2588 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
2589 * Makefile.in: Regenerate.
2590
25912004-06-15 Paolo Bonzini <bonzini@gnu.org>
2592
2593 * Makefile.am: Remove useless multilib rules.
2594 * Makefile.in: Regenerate.
2595 * aclocal.m4: Regenerate with automake 1.8.5.
2596 * configure.ac: Remove useless multilib configury.
2597 * configure: Regenerate.
2598
25992004-06-15 Paolo Bonzini <bonzini@gnu.org>
2600
2601 * .cvsignore: New file.
2602
26032004-06-10 Jakub Jelinek <jakub@redhat.com>
2604
2605 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
2606 fp_done.
2607 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
2608 changed from 8.
2609
26102004-06-06 Sean McNeil <sean@mcneil.com>
2611
2612 * configure.ac: Add x86_64-*-freebsd* support.
2613 * configure: Regenerate.
2614
26152004-04-26 Joe Buck <jbuck@welsh-buck.org>
2616
2617 Bug 15093
2618 * configure.ac: Test for existence of mmap and sys/mman.h before
2619 checking blacklist. Fix suggested by Jim Wilson.
2620 * configure: Regenerate.
2621
26222004-04-26 Matt Austern <austern@apple.com>
2623
2624 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
2625 FDE location.
2626 * src/powerpc/darwin_closure.S: Likewise.
2627
26282004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
2629
2630 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
2631 error. Reported by Thomas Heller <theller@python.net>.
2632 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
2633 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
2634
26352004-03-20 Matthias Klose <doko@debian.org>
2636
2637 * src/pa/linux.S: Fix typo.
2638
26392004-03-19 Matthias Klose <doko@debian.org>
2640
2641 * Makefile.am: Update.
2642 * Makefile.in: Regenerate.
2643 * src/pa/ffi.h.in: Remove.
2644 * src/pa/ffitarget.h: New file.
2645
26462004-02-10 Randolph Chung <tausq@debian.org>
2647
2648 * Makefile.am: Add PA support.
2649 * Makefile.in: Regenerate.
2650 * include/Makefile.in: Regenerate.
2651 * configure.ac: Add PA target.
2652 * configure: Regenerate.
2653 * src/pa/ffi.c: New file.
2654 * src/pa/ffi.h.in: Add PA support.
2655 * src/pa/linux.S: New file.
2656 * prep_cif.c: Add PA support.
2657
26582004-03-16 Hosaka Yuji <hos@tamanegi.org>
2659
2660 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
2661 double.
2662 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
2663 with ecif->cif->flags.
2664 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
2665 with cif->flags.
2666 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
2667 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
2668 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
2669 sc_retstruct2b): Add for 1 or 2-bytes struct case.
2670
26712004-03-15 Kelley Cook <kcook@gcc.gnu.org>
2672
2673 * configure.in: Rename file to ...
2674 * configure.ac: ... this.
2675 * fficonfig.h.in: Regenerate.
2676 * Makefile.in: Regenerate.
2677 * include/Makefile.in: Regenerate.
2678 * testsuite/Makefile.in: Regenerate.
2679
26802004-03-12 Matt Austern <austern@apple.com>
2681
2682 * src/powerpc/darwin.S: Fix EH information so it corresponds to
2683 changes in EH format resulting from addition of linkonce support.
2684 * src/powerpc/darwin_closure.S: Likewise.
2685
26862004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
2687 Paolo Bonzini <bonzini@gnu.org>
2688
2689 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
2690 Remove VPATH. Remove rules for object files. Remove multilib support.
2691 (AM_CCASFLAGS): Add.
2692 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
2693 (AC_PREREQ): Bump version to 2.59.
2694 (AC_INIT): Fill with version info and bug address.
2695 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
2696 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
2697 De-precious CC so that the right flags are passed down to multilibs.
2698 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
2699 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
2700 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
2701 * configure: Rebuilt.
2702 * aclocal.m4: Likewise.
2703 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
2704 * fficonfig.h.in: Likewise.
2705
27062004-03-11 Andreas Schwab <schwab@suse.de>
2707
2708 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
2709 arguments from fp registers only for the first 8 parameter slots.
2710 Don't convert a float parameter when passed in memory.
2711
27122004-03-09 Hans-Peter Nilsson <hp@axis.com>
2713
2714 * configure: Regenerate for config/accross.m4 correction.
2715
27162004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
2717
2718 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
2719 ecif->cif->bytes to bytes.
2720 (ffi_prep_cif_machdep): Add braces around nested if statement.
2721
27222004-02-09 Alan Modra <amodra@bigpond.net.au>
2723
2724 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
2725
2726 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
2727 (ffi_closure_helper_LINUX64): Fix typo.
2728 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
2729 for powerpc64-*-*.
2730 * testsuite/libffi.call/float.c: Likewise.
2731 * testsuite/libffi.call/float2.c: Likewise.
2732
27332004-02-08 Alan Modra <amodra@bigpond.net.au>
2734
2735 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
2736 long double function return and long double arg handling.
2737 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
2738 Use "end_pfr" instead of "nf". Correct long double handling.
2739 Localise "temp".
2740 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
2741 return value.
2742 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
2743 space for long double return value. Adjust stack frame and offsets.
2744 Load f2 long double return.
2745
27462004-02-07 Alan Modra <amodra@bigpond.net.au>
2747
2748 * src/types.c: Use 16 byte long double for POWERPC64.
2749
27502004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2751
2752 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
2753 when the structure return address is passed in %o0.
2754 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
2755 (ffi_v9_layout_struct): Align the field following a nested structure
2756 on a word boundary. Use memmove instead of memcpy.
2757 (ffi_call): Update call to ffi_V9_return_struct.
2758 (ffi_prep_closure): Define 'ctx' only for V8.
2759 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
2760 and ffi_closure_sparc_inner_v9.
2761 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
2762 Always skip the structure return address. For structures and long
2763 doubles, copy the argument directly.
2764 (ffi_closure_sparc_inner_v9): Skip the structure return address only
2765 if required. Shift the maximum floating-point slot accordingly. For
2766 big structures, copy the argument directly; otherwise, left-justify the
2767 argument and call ffi_v9_layout_struct to lay out the structure on
2768 the stack.
2769 * src/sparc/v8.S: Undef STACKFRAME before defining it.
2770 (ffi_closure_v8): Pass the structure return address. Update call to
2771 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
2772 Skip the 'unimp' insn when returning long doubles and structures.
2773 * src/sparc/v9.S: Undef STACKFRAME before defining it.
2774 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
2775 FFI_TYPE_INT handling. Load structures both in integers and
2776 floating-point registers on return.
2777 * README: Update status of the SPARC port.
2778
27792004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
2780
2781 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
2782 as of type ffi_arg.
2783 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
2784
27852004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
2786
2787 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
2788 value as of type ffi_arg, not unsigned int.
2789
27902004-01-21 Michael Ritzert <ritzert@t-online.de>
2791
2792 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
2793 of the LHS.
2794
27952004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2796
2797 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
2798 Solaris.
2799
28002004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2801
2802 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
2803 to void *.
2804
28052003-12-10 Richard Henderson <rth@redhat.com>
2806
2807 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
2808 size_t instead of int.
2809
28102003-12-04 Hosaka Yuji <hos@tamanegi.org>
2811
2812 * testsuite/libffi.call/many_win32.c: Include <float.h>.
2813 * testsuite/libffi.call/many_win32.c (main): Replace variable
2814 int i with unsigned long ul.
2815
2816 * testsuite/libffi.call/cls_align_uint64.c: New test case.
2817 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2818 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2819 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2820 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2821 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2822 * testsuite/libffi.call/cls_align_float.c: Likewise.
2823 * testsuite/libffi.call/cls_align_double.c: Likewise.
2824 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2825 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2826
28272003-12-02 Hosaka Yuji <hos@tamanegi.org>
2828
2829 PR other/13221
2830 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
2831 Align arguments to 32 bits.
2832
28332003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
2834
2835 PR other/13221
2836 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
2837 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2838 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2839 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2840 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2841 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2842
2843 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
2844
28452003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2846
2847 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
2848 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2849
28502003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
2851
2852 * Makefile.in: Rebuilt.
2853 * configure: Likewise.
2854 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
2855 the right type.
2856
28572003-11-21 Andreas Jaeger <aj@suse.de>
2858 Andreas Tobler <a.tobler@schweiz.ch>
2859
2860 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
2861 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
2862 * Makefile.in: Rebuilt.
2863 * aclocal.m4: Likewise.
2864 * configure: Likewise.
2865 * fficonfig.h.in: Likewise.
2866 * testsuite/lib/libffi-dg.exp: Add include dir.
2867 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
2868 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2869 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
2870 for ffi_closure if available.
2871 * testsuite/libffi.call/closure_fn1.c: Likewise.
2872 * testsuite/libffi.call/closure_fn2.c: Likewise.
2873 * testsuite/libffi.call/closure_fn3.c: Likewise.
2874 * testsuite/libffi.call/closure_fn4.c: Likewise.
2875 * testsuite/libffi.call/closure_fn5.c: Likewise.
2876 * testsuite/libffi.call/cls_12byte.c: Likewise.
2877 * testsuite/libffi.call/cls_16byte.c: Likewise.
2878 * testsuite/libffi.call/cls_18byte.c: Likewise.
2879 * testsuite/libffi.call/cls_19byte.c: Likewise.
2880 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2881 * testsuite/libffi.call/cls_20byte.c: Likewise.
2882 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2883 * testsuite/libffi.call/cls_24byte.c: Likewise.
2884 * testsuite/libffi.call/cls_2byte.c: Likewise.
2885 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2886 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2887 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2888 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2889 * testsuite/libffi.call/cls_4byte.c: Likewise.
2890 * testsuite/libffi.call/cls_5byte.c: Likewise.
2891 * testsuite/libffi.call/cls_64byte.c: Likewise.
2892 * testsuite/libffi.call/cls_6byte.c: Likewise.
2893 * testsuite/libffi.call/cls_7byte.c: Likewise.
2894 * testsuite/libffi.call/cls_8byte.c: Likewise.
2895 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2896 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2897 * testsuite/libffi.call/cls_double.c: Likewise.
2898 * testsuite/libffi.call/cls_float.c: Likewise.
2899 * testsuite/libffi.call/cls_schar.c: Likewise.
2900 * testsuite/libffi.call/cls_sint.c: Likewise.
2901 * testsuite/libffi.call/cls_sshort.c: Likewise.
2902 * testsuite/libffi.call/cls_uchar.c: Likewise.
2903 * testsuite/libffi.call/cls_uint.c: Likewise.
2904 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2905 * testsuite/libffi.call/cls_ushort.c: Likewise.
2906 * testsuite/libffi.call/nested_struct.c: Likewise.
2907 * testsuite/libffi.call/nested_struct1.c: Likewise.
2908 * testsuite/libffi.call/nested_struct2.c: Likewise.
2909 * testsuite/libffi.call/nested_struct3.c: Likewise.
2910 * testsuite/libffi.call/problem1.c: Likewise.
2911 * testsuite/libffi.special/unwindtest.cc: Likewise.
2912
29132003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
2914
2915 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2916
29172003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2918
2919 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2920 Add -lgcc_s to additional flags.
2921
29222003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
2923
2924 * configure.in, include/Makefile.am: PR libgcj/11147, install
2925 the ffitarget.h header file in a gcc versioned and target
2926 dependent place.
2927 * configure: Regenerated.
2928 * Makefile.in, include/Makefile.in: Likewise.
2929 * testsuite/Makefile.in: Likewise.
2930
29312003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
2932
2933 * testsuite/libffi.call/closure_fn0.c: Print result and check
2934 with dg-output to make debugging easier.
2935 * testsuite/libffi.call/closure_fn1.c: Likewise.
2936 * testsuite/libffi.call/closure_fn2.c: Likewise.
2937 * testsuite/libffi.call/closure_fn3.c: Likewise.
2938 * testsuite/libffi.call/closure_fn4.c: Likewise.
2939 * testsuite/libffi.call/closure_fn5.c: Likewise.
2940 * testsuite/libffi.call/cls_12byte.c: Likewise.
2941 * testsuite/libffi.call/cls_16byte.c: Likewise.
2942 * testsuite/libffi.call/cls_18byte.c: Likewise.
2943 * testsuite/libffi.call/cls_19byte.c: Likewise.
2944 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2945 * testsuite/libffi.call/cls_20byte.c: Likewise.
2946 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2947 * testsuite/libffi.call/cls_24byte.c: Likewise.
2948 * testsuite/libffi.call/cls_2byte.c: Likewise.
2949 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2950 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2951 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2952 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2953 * testsuite/libffi.call/cls_4byte.c: Likewise.
2954 * testsuite/libffi.call/cls_5byte.c: Likewise.
2955 * testsuite/libffi.call/cls_64byte.c: Likewise.
2956 * testsuite/libffi.call/cls_6byte.c: Likewise.
2957 * testsuite/libffi.call/cls_7byte.c: Likewise.
2958 * testsuite/libffi.call/cls_8byte.c: Likewise.
2959 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2960 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2961 * testsuite/libffi.call/cls_double.c: Likewise.
2962 * testsuite/libffi.call/cls_float.c: Likewise.
2963 * testsuite/libffi.call/cls_schar.c: Likewise.
2964 * testsuite/libffi.call/cls_sint.c: Likewise.
2965 * testsuite/libffi.call/cls_sshort.c: Likewise.
2966 * testsuite/libffi.call/cls_uchar.c: Likewise.
2967 * testsuite/libffi.call/cls_uint.c: Likewise.
2968 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2969 * testsuite/libffi.call/cls_ushort.c: Likewise.
2970 * testsuite/libffi.call/problem1.c: Likewise.
2971
2972 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2973 static.
2974
29752003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2976
2977 * testsuite/libffi.call/cls_9byte2.c: New test case.
2978 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2979 * testsuite/libffi.call/cls_64byte.c: Likewise.
2980 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2981 * testsuite/libffi.call/cls_19byte.c: Likewise.
2982 * testsuite/libffi.call/cls_18byte.c: Likewise.
2983 * testsuite/libffi.call/closure_fn4.c: Likewise.
2984 * testsuite/libffi.call/closure_fn5.c: Likewise.
2985 * testsuite/libffi.call/cls_schar.c: Likewise.
2986 * testsuite/libffi.call/cls_sint.c: Likewise.
2987 * testsuite/libffi.call/cls_sshort.c: Likewise.
2988 * testsuite/libffi.call/nested_struct2.c: Likewise.
2989 * testsuite/libffi.call/nested_struct3.c: Likewise.
2990
29912003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2992
2993 * testsuite/libffi.call/cls_double.c: Do a check on the result.
2994 * testsuite/libffi.call/cls_uchar.c: Likewise.
2995 * testsuite/libffi.call/cls_uint.c: Likewise.
2996 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2997 * testsuite/libffi.call/cls_ushort.c: Likewise.
2998 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
2999
30002003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
3001
3002 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
3003 the initialization.
3004
30052003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
3006
3007 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
3008 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
3009
30102003-10-22 David Daney <ddaney@avtrex.com>
3011
3012 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
3013 __attribute__((__mode__(__SI__))) and friends.
3014
30152003-10-22 Andreas Schwab <schwab@suse.de>
3016
3017 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
3018
30192003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
3020
3021 * configure.in: AC_LINK_FILES(ffitarget.h).
3022 * configure: Regenerate.
3023 * Makefile.in: Likewise.
3024 * include/Makefile.in: Likewise.
3025 * testsuite/Makefile.in: Likewise.
3026 * fficonfig.h.in: Likewise.
3027
30282003-10-21 Paolo Bonzini <bonzini@gnu.org>
3029 Richard Henderson <rth@redhat.com>
3030
3031 Avoid that ffi.h includes fficonfig.h.
3032
3033 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
3034 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
3035 (TARGET_SRC_MIPS_SGI): Removed.
3036 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
3037 (MIPS_SGI): Removed.
3038 (CLEANFILES): Removed.
3039 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
3040 targets.
3041 * acconfig.h: Removed.
3042 * configure.in: Compute sizeofs only for double and long double.
3043 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
3044 into AC_DEFINE instead of using acconfig.h. Create
3045 include/ffitarget.h instead of include/fficonfig.h. Rename
3046 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
3047 AC_DEFINE EH_FRAME_FLAGS.
3048 * include/Makefile.am (DISTCLEANFILES): New automake macro.
3049 (hack_DATA): Add ffitarget.h.
3050 * include/ffi.h.in: Remove all system specific definitions.
3051 Declare raw API even if it is not installed, why bother?
3052 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
3053 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
3054 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
3055 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
3056 * include/ffi_common.h (bool): Do not define.
3057 (ffi_assert): Accept failed assertion.
3058 (ffi_type_test): Return void and accept file/line.
3059 (FFI_ASSERT): Pass stringized failed assertion.
3060 (FFI_ASSERT_AT): New macro.
3061 (FFI_ASSERT_VALID_TYPE): New macro.
3062 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
3063 UINT64, SINT64): Define here with gcc's __attribute__ macro
3064 instead of in ffi.h
3065 (FLOAT32, ALIGN): Define here instead of in ffi.h
3066 * include/ffi-mips.h: Removed. Its content moved to
3067 src/mips/ffitarget.h after separating assembly and C sections.
3068 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
3069 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
3070 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
3071 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
3072 SIZEOF_ARG -> FFI_SIZEOF_ARG.
3073 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
3074 * src/debug.c (ffi_assert): Accept stringized failed assertion.
3075 (ffi_type_test): Rewritten.
3076 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
3077 FFI_ASSERT_VALID_TYPE.
3078 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
3079 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
3080 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
3081 src/s390/ffitarget.h, src/sh/ffitarget.h,
3082 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
3083 src/x86/ffitarget.h: New files.
3084 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
3085 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
3086 src/powerpc/aix.S, src/powerpc/darwin.S,
3087 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
3088 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
3089 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
3090 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
3091 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
3092 include fficonfig.h
3093
30942003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3095
3096 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
3097 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
3098
30992003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
3100
3101 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
3102 Used when FFI_DEBUG = 1.
3103
31042003-10-14 Alan Modra <amodra@bigpond.net.au>
3105
3106 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
3107 and align.
3108
31092003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3110
3111 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
3112 FFI_MIPS_O32 for O32 ABI.
3113
31142003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
3115
3116 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
3117 SPARC64. Cleanup whitespaces.
3118
31192003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
3120
3121 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
3122 strongarm, xscale. Cleanup whitespaces.
3123 * testsuite/libffi.call/closure_fn1.c: Likewise.
3124 * testsuite/libffi.call/closure_fn2.c: Likewise.
3125 * testsuite/libffi.call/closure_fn3.c: Likewise.
3126 * testsuite/libffi.call/cls_12byte.c: Likewise.
3127 * testsuite/libffi.call/cls_16byte.c: Likewise.
3128 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3129 * testsuite/libffi.call/cls_20byte.c: Likewise.
3130 * testsuite/libffi.call/cls_24byte.c: Likewise.
3131 * testsuite/libffi.call/cls_2byte.c: Likewise.
3132 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3133 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3134 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3135 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3136 * testsuite/libffi.call/cls_4byte.c: Likewise.
3137 * testsuite/libffi.call/cls_5byte.c: Likewise.
3138 * testsuite/libffi.call/cls_6byte.c: Likewise.
3139 * testsuite/libffi.call/cls_7byte.c: Likewise.
3140 * testsuite/libffi.call/cls_8byte.c: Likewise.
3141 * testsuite/libffi.call/cls_double.c: Likewise.
3142 * testsuite/libffi.call/cls_float.c: Likewise.
3143 * testsuite/libffi.call/cls_uchar.c: Likewise.
3144 * testsuite/libffi.call/cls_uint.c: Likewise.
3145 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3146 * testsuite/libffi.call/cls_ushort.c: Likewise.
3147 * testsuite/libffi.call/nested_struct.c: Likewise.
3148 * testsuite/libffi.call/nested_struct1.c: Likewise.
3149 * testsuite/libffi.call/problem1.c: Likewise.
3150 * testsuite/libffi.special/unwindtest.cc: Likewise.
3151 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
3152
31532003-09-18 David Edelsohn <edelsohn@gnu.org>
3154
3155 * src/powerpc/aix.S: Cleanup whitespaces.
3156 * src/powerpc/aix_closure.S: Likewise.
3157
31582003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3159
3160 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
3161 * src/powerpc/darwin_closure.S: Likewise.
3162 * src/powerpc/ffi_darwin.c: Likewise.
3163
31642003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3165 David Edelsohn <edelsohn@gnu.org>
3166
3167 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
3168 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
3169 parameter stack.
3170 * src/powerpc/darwin_closure.S: Likewise.
3171 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
3172 according to the Darwin/AIX ABI.
3173 (ffi_prep_cif_machdep): Likewise.
3174 (ffi_closure_helper_DARWIN): Likewise.
3175 Remove the outgoing parameter stack logic. Simplify the evaluation
3176 of the different CASE types.
3177 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
3178 statement in the trampoline code.
3179
31802003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
3181
3182 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
3183 for the register size.
3184 (ffi_closure_helper_SYSV): Handle the structure return value
3185 address correctly.
3186 (ffi_closure_helper_SYSV): Return the appropriate type when
3187 the registers are used for the structure return value.
3188 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
3189 the 64-bit return value. Update copyright years.
3190
31912003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3192
3193 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
3194 srcdir for ffi_mips.h.
3195
31962003-09-12 Alan Modra <amodra@bigpond.net.au>
3197
3198 * src/prep_cif.c (initialize_aggregate): Include tail padding in
3199 structure size.
3200 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
3201 placement of float result.
3202 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
3203 cast of "resp" for big-endian 64 bit machines.
3204
32052003-09-11 Alan Modra <amodra@bigpond.net.au>
3206
3207 * src/types.c (double, longdouble): Merge identical SH and ARM
3208 typedefs, and add POWERPC64.
3209 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
3210 struct split over gpr and rest.
3211 (ffi_prep_cif_machdep): Correct intarg_count for structures.
3212 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
3213
32142003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
3215
3216 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
3217 passing correctly.
3218
32192003-09-09 Alan Modra <amodra@bigpond.net.au>
3220
3221 * configure: Regenerate.
3222
32232003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3224
3225 * Makefile.am: Remove build rules for ffitest.
3226 * Makefile.in: Rebuilt.
3227
32282003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3229
3230 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
3231 about implicit declaration of abort().
3232
32332003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3234
3235 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
3236 * Makefile.in: Rebuilt.
3237 * configure.in: Add dejagnu test framework.
3238 * configure: Rebuilt.
3239
3240 * testsuite/Makefile.am: New file.
3241 * testsuite/Makefile.in: Built
3242 * testsuite/lib/libffi-dg.exp: New file.
3243 * testsuite/config/default.exp: Likewise.
3244 * testsuite/libffi.call/call.exp: Likewise.
3245 * testsuite/libffi.call/ffitest.h: Likewise.
3246 * testsuite/libffi.call/closure_fn0.c: Likewise.
3247 * testsuite/libffi.call/closure_fn1.c: Likewise.
3248 * testsuite/libffi.call/closure_fn2.c: Likewise.
3249 * testsuite/libffi.call/closure_fn3.c: Likewise.
3250 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3251 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3252 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3253 * testsuite/libffi.call/cls_2byte.c: Likewise.
3254 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3255 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3256 * testsuite/libffi.call/cls_4byte.c: Likewise.
3257 * testsuite/libffi.call/cls_5byte.c: Likewise.
3258 * testsuite/libffi.call/cls_6byte.c: Likewise.
3259 * testsuite/libffi.call/cls_7byte.c: Likewise.
3260 * testsuite/libffi.call/cls_8byte.c: Likewise.
3261 * testsuite/libffi.call/cls_12byte.c: Likewise.
3262 * testsuite/libffi.call/cls_16byte.c: Likewise.
3263 * testsuite/libffi.call/cls_20byte.c: Likewise.
3264 * testsuite/libffi.call/cls_24byte.c: Likewise.
3265 * testsuite/libffi.call/cls_double.c: Likewise.
3266 * testsuite/libffi.call/cls_float.c: Likewise.
3267 * testsuite/libffi.call/cls_uchar.c: Likewise.
3268 * testsuite/libffi.call/cls_uint.c: Likewise.
3269 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3270 * testsuite/libffi.call/cls_ushort.c: Likewise.
3271 * testsuite/libffi.call/float.c: Likewise.
3272 * testsuite/libffi.call/float1.c: Likewise.
3273 * testsuite/libffi.call/float2.c: Likewise.
3274 * testsuite/libffi.call/many.c: Likewise.
3275 * testsuite/libffi.call/many_win32.c: Likewise.
3276 * testsuite/libffi.call/nested_struct.c: Likewise.
3277 * testsuite/libffi.call/nested_struct1.c: Likewise.
3278 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
3279 * testsuite/libffi.call/problem1.c: Likewise.
3280 * testsuite/libffi.call/promotion.c: Likewise.
3281 * testsuite/libffi.call/return_ll.c: Likewise.
3282 * testsuite/libffi.call/return_sc.c: Likewise.
3283 * testsuite/libffi.call/return_uc.c: Likewise.
3284 * testsuite/libffi.call/strlen.c: Likewise.
3285 * testsuite/libffi.call/strlen_win32.c: Likewise.
3286 * testsuite/libffi.call/struct1.c: Likewise.
3287 * testsuite/libffi.call/struct2.c: Likewise.
3288 * testsuite/libffi.call/struct3.c: Likewise.
3289 * testsuite/libffi.call/struct4.c: Likewise.
3290 * testsuite/libffi.call/struct5.c: Likewise.
3291 * testsuite/libffi.call/struct6.c: Likewise.
3292 * testsuite/libffi.call/struct7.c: Likewise.
3293 * testsuite/libffi.call/struct8.c: Likewise.
3294 * testsuite/libffi.call/struct9.c: Likewise.
3295 * testsuite/libffi.special/special.exp: New file.
3296 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3297 * testsuite/libffi.special/unwindtest.cc: Likewise.
3298
3299
33002003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3301
3302 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
3303 copyright years.
3304
33052003-08-02 Alan Modra <amodra@bigpond.net.au>
3306
3307 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
3308 structure passing.
3309 (ffi_closure_helper_LINUX64): Likewise.
3310 * src/powerpc/linux64.S: Remove code writing to parm save area.
3311 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
3312 address in lr from ffi_closure_helper_LINUX64 call to calculate
3313 table address. Optimize function tail.
3314
33152003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
3316
3317 * src/sparc/ffi.c: Handle all floating point registers.
3318 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
3319
33202003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3321
3322 * README: Note that libffi is not part of GCC. Update the project
3323 URL and status.
3324
33252003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3326
3327 * src/powerpc/ppc_closure.S: Include ffi.h.
3328
33292003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3330
3331 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
3332 Use C style comments.
3333
33342003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3335
3336 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
3337 * Makefile.in: Regenerate.
3338 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
3339 * configure: Regenerate.
3340 * include/ffi.h.in: Add SHmedia support.
3341 * src/sh64/ffi.c: New file.
3342 * src/sh64/sysv.S: New file.
3343
33442003-05-16 Jakub Jelinek <jakub@redhat.com>
3345
3346 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
3347 should be read-only.
3348 * configure: Rebuilt.
3349 * fficonfig.h.in: Rebuilt.
3350 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
3351 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
3352 * src/powerpc/linux64.S: Likewise.
3353 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
3354 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
3355 if -fpic/-fPIC/-mrelocatable.
3356 * src/powerpc/powerpc_closure.S: Likewise.
3357 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
3358 #write in .eh_frame flags.
3359 * src/sparc/v9.S: Likewise.
3360 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
3361 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
3362 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
3363
33642003-05-07 Jeff Sturm <jsturm@one-point.com>
3365
3366 Fixes PR bootstrap/10656
3367 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
3368 support for .register pseudo-op.
3369 * src/sparc/v8.S: Use it.
3370 * fficonfig.h.in: Rebuilt.
3371 * configure: Rebuilt.
3372
33732003-04-18 Jakub Jelinek <jakub@redhat.com>
3374
3375 * include/ffi.h.in (POWERPC64): Define if 64-bit.
3376 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
3377 Make it the default on POWERPC64.
3378 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
3379 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
3380 * configure: Rebuilt.
3381 * src/powerpc/ffi.c (hidden): Define.
3382 (ffi_prep_args_SYSV): Renamed from
3383 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
3384 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
3385 ASM_NEEDS_REGISTERS64): New.
3386 (ffi_prep_args64): New function.
3387 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
3388 (ffi_call): Likewise.
3389 (ffi_prep_closure): Likewise.
3390 (flush_icache): Surround by #ifndef POWERPC64.
3391 (ffi_dblfl): New union type.
3392 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
3393 (ffi_closure_helper_LINUX64): New function.
3394 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
3395 __powerpc64__.
3396 * src/powerpc/sysv.S: Likewise.
3397 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
3398 * src/powerpc/linux64.S: New file.
3399 * src/powerpc/linux64_closure.S: New file.
3400 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
3401 src/powerpc/linux64_closure.S.
3402 (TARGET_SRC_POWERPC): Likewise.
3403
3404 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
3405 closure_test_fn3): Fix result printing on big-endian 64-bit
3406 machines.
3407 (main): Print tst2_arg instead of uninitialized tst2_result.
3408
3409 * src/ffitest.c (main): Hide what closure pointer really points to
3410 from the compiler.
3411
34122003-04-16 Richard Earnshaw <rearnsha@arm.com>
3413
3414 * configure.in (arm-*-netbsdelf*): Add configuration.
3415 (configure): Regenerated.
3416
34172003-04-04 Loren J. Rittle <ljrittle@acm.org>
3418
3419 * include/Makefile.in: Regenerate.
3420
34212003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3422
3423 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
3424 bit mode.
3425 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
3426 Receive closure pointer through parameter, read args using
3427 __builtin_dwarf_cfa.
3428 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
3429
34302003-03-12 Andreas Schwab <schwab@suse.de>
3431
3432 * configure.in: Avoid trailing /. in toolexeclibdir.
3433 * configure: Rebuilt.
3434
34352003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
3436
3437 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
3438
34392003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
3440
3441 * libffi/src/powerpc/darwin_closure.S:
3442 Fix alignement bug, allocate 8 bytes for the result.
3443 * libffi/src/powerpc/aix_closure.S:
3444 Likewise.
3445 * libffi/src/powerpc/ffi_darwin.c:
3446 Update stackframe description for aix/darwin_closure.S.
3447
34482003-02-06 Jakub Jelinek <jakub@redhat.com>
3449
3450 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
3451 attribute.
3452
34532003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
3454 Andreas Schwab <schwab@suse.de>
3455
3456 * configure.in: Adjust command to source config-ml.in to account
3457 for changes to the libffi_basedir definition.
3458 (libffi_basedir): Remove ${srcdir} from value and include trailing
3459 slash if nonempty.
3460
3461 * configure: Regenerate.
3462
34632003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3464
3465 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
3466
34672003-01-28 Andrew Haley <aph@redhat.com>
3468
3469 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
3470 * src/x86/ffi64.c (ffi_prep_closure): New.
3471 (ffi_closure_UNIX64_inner): New.
3472 * src/x86/unix64.S (ffi_closure_UNIX64): New.
3473
34742003-01-27 Alexandre Oliva <aoliva@redhat.com>
3475
3476 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
3477 Remove USE_LIBDIR conditional.
3478 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
3479 * Makefile.in, configure: Rebuilt.
3480
34812003-01027 David Edelsohn <edelsohn@gnu.org>
3482
3483 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
3484 * Makefile.in: Regenerate.
3485
34862003-01-22 Andrew Haley <aph@redhat.com>
3487
3488 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
3489 unwind info.
3490
34912003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3492
3493 * src/powerpc/darwin.S: Add unwind info.
3494 * src/powerpc/darwin_closure.S: Likewise.
3495
34962003-01-14 Andrew Haley <aph@redhat.com>
3497
3498 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
3499 (ffi_prep_cif_machdep): Likewise.
3500 * src/x86/unix64.S: Add unwind info.
3501
35022003-01-14 Andreas Jaeger <aj@suse.de>
3503
3504 * src/ffitest.c (main): Only use ffi_closures if those are
3505 supported.
3506
35072003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
3508
3509 * libffi/src/ffitest.c
3510 add closure testcases
3511
35122003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
3513
3514 * libffi/src/powerpc/ffi.c
3515 fix alignment bug for float (4 byte aligned iso 8 byte)
3516
35172003-01-09 Geoffrey Keating <geoffk@apple.com>
3518
3519 * src/powerpc/ffi_darwin.c: Remove RCS version string.
3520 * src/powerpc/darwin.S: Remove RCS version string.
3521
35222003-01-03 Jeff Sturm <jsturm@one-point.com>
3523
3524 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
3525 * src/ffitest.c (main): Use static storage for closure.
3526 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
3527 * src/sparc/v8.S (ffi_closure_v8): New.
3528 * src/sparc/v9.S (ffi_closure_v9): New.
3529
35302002-11-10 Ranjit Mathew <rmathew@hotmail.com>
3531
3532 * include/ffi.h.in: Added FFI_STDCALL ffi_type
3533 enumeration for X86_WIN32.
3534 * src/x86/win32.S: Added ffi_call_STDCALL function
3535 definition.
3536 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
3537 switch cases for recognising FFI_STDCALL and
3538 calling ffi_call_STDCALL if target is X86_WIN32.
3539 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
3540 stdcall versions of the "my_strlen" and "many"
3541 test functions (for X86_WIN32).
3542 Added test cases to test stdcall invocation using
3543 these functions.
3544
35452002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
3546
3547 * src/sh/sysv.S: Add DWARF2 unwind info.
3548
35492002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
3550
3551 * src/s390/sysv.S (.eh_frame section): Make section read-only.
3552
35532002-11-26 Jim Wilson <wilson@redhat.com>
3554
3555 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
3556
35572002-11-23 H.J. Lu <hjl@gnu.org>
3558
3559 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
3560 Include ../config/accross.m4.
3561 * aclocal.m4; Rebuild.
3562 * configure: Likewise.
3563
35642002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
3565
3566 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
3567
35682002-11-11 DJ Delorie <dj@redhat.com>
3569
3570 * configure.in: Look for common files in the right place.
3571
35722002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
3573
3574 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
3575 raw data as _Jv_word values, not ffi_raw.
3576 (ffi_java_ptrarray_to_raw): Likewise.
3577 (ffi_java_rvalue_to_raw): New function.
3578 (ffi_java_raw_call): Call it.
3579 (ffi_java_raw_to_rvalue): New function.
3580 (ffi_java_translate_args): Call it.
3581 * src/ffitest.c (closure_test_fn): Interpret return value
3582 as ffi_arg, not int.
3583 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
3584 FFI_TYPE_POINTER case.
3585 (ffi_closure_helper_SYSV): Likewise. Also, assume return
3586 values extended to word size.
3587
35882002-10-02 Andreas Jaeger <aj@suse.de>
3589
3590 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
3591
35922002-10-01 Bo Thorsen <bo@smetana.suse.de>
3593
3594 * include/ffi.h.in: Fix i386 win32 compilation.
3595
35962002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
3597
3598 * configure.in: Add s390x-*-linux-* target.
3599 * configure: Regenerate.
3600 * include/ffi.h.in: Define S390X for s390x targets.
3601 (FFI_CLOSURES): Define for s390/s390x.
3602 (FFI_TRAMPOLINE_SIZE): Likewise.
3603 (FFI_NATIVE_RAW_API): Likewise.
3604 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
3605 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
3606 * src/s390/ffi.c: Major rework of existing code. Add support for
3607 s390x targets. Add closure support.
3608 * src/s390/sysv.S: Likewise.
3609
36102002-09-29 Richard Earnshaw <rearnsha@arm.com>
3611
3612 * src/arm/sysv.S: Fix typo.
3613
36142002-09-28 Richard Earnshaw <rearnsha@arm.com>
3615
3616 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
3617 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
3618 (ffi_call_SYSV): Handle soft-float.
3619
36202002-09-27 Bo Thorsen <bo@suse.de>
3621
3622 * include/ffi.h.in: Fix multilib x86-64 support.
3623
36242002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3625
3626 * Makefile.am (all-multi): Fix multilib parallel build.
3627
36282002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
3629
3630 * configure.in (sh[34]*-*-linux*): Add brackets.
3631 * configure: Regenerate.
3632
36332002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
3634
3635 * Makefile.am: Add SH support.
3636 * Makefile.in: Regenerate.
3637 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
3638 * configure: Regenerate.
3639 * include/ffi.h.in: Add SH support.
3640 * src/sh/ffi.c: New file.
3641 * src/sh/sysv.S: New file.
3642 * src/types.c: Add SH support.
3643
36442002-07-16 Bo Thorsen <bo@suse.de>
3645
3646 * src/x86/ffi64.c: New file that adds x86-64 support.
3647 * src/x86/unix64.S: New file that handles argument setup for
3648 x86-64.
3649 * src/x86/sysv.S: Don't use this on x86-64.
3650 * src/x86/ffi.c: Don't use this on x86-64.
3651 Remove unused vars.
3652 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
3653 for x86-64.
3654 * src/ffitest.c (struct6): New test that tests a special case in
3655 the x86-64 ABI.
3656 (struct7): Likewise.
3657 (struct8): Likewise.
3658 (struct9): Likewise.
3659 (closure_test_fn): Silence warning about this when it's not used.
3660 (main): Add the new tests.
3661 (main): Fix a couple of wrong casts and silence some compiler warnings.
3662 * include/ffi.h.in: Add x86-64 ABI definition.
3663 * fficonfig.h.in: Regenerate.
3664 * Makefile.am: Add x86-64 support.
3665 * configure.in: Likewise.
3666 * Makefile.in: Regenerate.
3667 * configure: Likewise.
3668
36692002-06-24 Bo Thorsen <bo@suse.de>
3670
3671 * src/types.c: Merge settings for similar architectures.
3672 Add x86-64 sizes and alignments.
3673
36742002-06-23 Bo Thorsen <bo@suse.de>
3675
3676 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
3677 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
3678 * src/mips/ffi.c (ffi_prep_args): Likewise.
3679 * src/m68k/ffi.c (ffi_prep_args): Likewise.
3680
36812002-07-18 H.J. Lu (hjl@gnu.org)
3682
3683 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
3684 (libffi_la_SOURCES): Support MIPS_LINUX.
3685 (libffi_convenience_la_SOURCES): Likewise.
3686 * Makefile.in: Regenerated.
3687
3688 * configure.in (mips64*-*): Skip.
3689 (mips*-*-linux*): New.
3690 * configure: Regenerated.
3691
3692 * src/mips/ffi.c: Include <sgidefs.h>.
3693
36942002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3695
3696 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
3697
36982002-05-27 Roger Sayle <roger@eyesopen.com>
3699
3700 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
3701
37022002-05-27 Bo Thorsen <bo@suse.de>
3703
3704 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
3705 fix formatting.
3706
37072002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
3708
3709 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
3710 beginning of function (for older apple cc).
3711
37122002-05-08 Alexandre Oliva <aoliva@redhat.com>
3713
3714 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3715 script entry, and set LD to it when configuring multilibs.
3716 * configure: Rebuilt.
3717
37182002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3719
3720 * configure.in (sparc64-*-netbsd*): Add target.
3721 (sparc-*-netbsdelf*): Likewise.
3722 * configure: Regenerate.
3723
37242002-04-28 David S. Miller <davem@redhat.com>
3725
3726 * configure.in, configure: Fix SPARC test in previous change.
3727
37282002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
3729
3730 * Makefile.am: Add Linux for S/390 support.
3731 * Makefile.in: Regenerate.
3732 * configure.in: Add Linux for S/390 support.
3733 * configure: Regenerate.
3734 * include/ffi.h.in: Add Linux for S/390 support.
3735 * src/s390/ffi.c: New file from libffi CVS tree.
3736 * src/s390/sysv.S: New file from libffi CVS tree.
3737
37382002-04-28 Jakub Jelinek <jakub@redhat.com>
3739
3740 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
3741 %r_disp32().
3742 * src/sparc/v8.S: Use it.
3743 * src/sparc/v9.S: Likewise.
3744 * fficonfig.h.in: Rebuilt.
3745 * configure: Rebuilt.
3746
37472002-04-08 Hans Boehm <Hans_Boehm@hp.com>
3748
3749 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
3750 correctly.
3751 * src/ia64/unix.S: Add unwind information. Fix comments.
3752 Save sp in a way that's compatible with unwind info.
3753 (ffi_call_unix): Correctly restore sp in all cases.
3754 * src/ia64/ffi.c: Add, fix comments.
3755
37562002-04-08 Jakub Jelinek <jakub@redhat.com>
3757
3758 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
3759
37602002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3761
3762 * configure.in (alpha*-*-netbsd*): Add target.
3763 * configure: Regenerate.
3764
37652002-04-04 Jeff Sturm <jsturm@one-point.com>
3766
3767 * src/sparc/v8.S: Add unwind info.
3768 * src/sparc/v9.S: Likewise.
3769
37702002-03-30 Krister Walfridsson <cato@df.lth.se>
3771
3772 * configure.in: Enable i*86-*-netbsdelf*.
3773 * configure: Rebuilt.
3774
37752002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
3776
3777 PR other/2620
3778 * src/mips/n32.s: Delete
3779 * src/mips/o32.s: Delete
3780
37812002-03-21 Loren J. Rittle <ljrittle@acm.org>
3782
3783 * configure.in: Enable alpha*-*-freebsd*.
3784 * configure: Rebuilt.
3785
37862002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3787
3788 * Makefile.am: libfficonvenience -> libffi_convenience.
3789 * Makefile.in: Rebuilt.
3790
3791 * Makefile.am: Define ffitest_OBJECTS.
3792 * Makefile.in: Rebuilt.
3793
37942002-03-07 Andreas Tobler <toa@pop.agri.ch>
3795 David Edelsohn <edelsohn@gnu.org>
3796
3797 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
3798 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
3799 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
3800 * Makefile.in: Regenerate.
3801 * include/ffi.h.in: Add AIX and Darwin closure definitions.
3802 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
3803 (flush_icache, flush_range): New functions.
3804 (ffi_closure_helper_DARWIN): New function.
3805 * src/powerpc/aix_closure.S: New file.
3806 * src/powerpc/darwin_closure.S: New file.
3807
38082002-02-24 Jeff Sturm <jsturm@one-point.com>
3809
3810 * include/ffi.h.in: Add typedef for ffi_arg.
3811 * src/ffitest.c (main): Declare rint with ffi_arg.
3812
38132002-02-21 Andreas Tobler <toa@pop.agri.ch>
3814
3815 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
3816 number of GPRs for floating-point arguments.
3817
38182002-01-31 Anthony Green <green@redhat.com>
3819
3820 * configure: Rebuilt.
3821 * configure.in: Replace CHECK_SIZEOF and endian tests with
3822 cross-compiler friendly macros.
3823 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
3824 macros.
3825
38262002-01-18 David Edelsohn <edelsohn@gnu.org>
3827
3828 * src/powerpc/darwin.S (_ffi_call_AIX): New.
3829 * src/powerpc/aix.S (ffi_call_DARWIN): New.
3830
38312002-01-17 David Edelsohn <edelsohn@gnu.org>
3832
3833 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
3834 (TARGET_SRC_POWERPC_AIX): New.
3835 (POWERPC_AIX): New stanza.
3836 * Makefile.in: Regenerate.
3837 * configure.in: Add AIX case.
3838 * configure: Regenerate.
3839 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
3840 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
3841 size. Fix "long double" support.
3842 (ffi_call): Add FFI_AIX case.
3843 * src/powerpc/aix.S: New.
3844
38452001-10-09 John Hornkvist <john@toastedmarshmallow.com>
3846
3847 Implement Darwin PowerPC ABI.
3848 * configure.in: Handle powerpc-*-darwin*.
3849 * Makefile.am: Set source files for POWERPC_DARWIN.
3850 * configure: Rebuilt.
3851 * Makefile.in: Rebuilt.
3852 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
3853 POWERPC_DARWIN.
3854 * src/powerpc/darwin.S: New file.
3855 * src/powerpc/ffi_darwin.c: New file.
3856
38572001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3858
3859 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
3860
38612001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3862
3863 * src/x86/sysv.S: Avoid gas-only .balign directive.
3864 Use C style comments.
3865
38662001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3867
3868 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
3869 Fixes PR bootstrap/3563.
3870
38712001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3872
3873 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
3874
38752001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3876
3877 * configure.in: Recognize sparc*-sun-* host.
3878 * configure: Regenerate.
3879
38802001-06-06 Andrew Haley <aph@redhat.com>
3881
3882 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
3883
38842001-06-03 Andrew Haley <aph@redhat.com>
3885
3886 * src/alpha/osf.S: Add unwind info.
3887 * src/powerpc/sysv.S: Add unwind info.
3888 * src/powerpc/ppc_closure.S: Likewise.
3889
38902000-05-31 Jeff Sturm <jsturm@one-point.com>
3891
3892 * configure.in: Fix AC_ARG_ENABLE usage.
3893 * configure: Rebuilt.
3894
38952001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3896
3897 * configure.in: Remove warning about beta code.
3898 * configure: Rebuilt.
3899
39002001-04-25 Hans Boehm <Hans_Boehm@hp.com>
3901
3902 * src/ia64/unix.S: Restore stack pointer when returning from
3903 ffi_closure_UNIX.
3904 * src/ia64/ffi.c: Fix typo in comment.
3905
39062001-04-18 Jim Wilson <wilson@redhat.com>
3907
3908 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3909 to eliminate RAW DV.
3910
39112001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3912
3913 * Makefile.am: Make a libtool convenience library.
3914 * Makefile.in: Rebuilt.
3915
39162001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
3917
3918 * configure.in: Use different syntax for subdirectory creation.
3919 * configure: Rebuilt.
3920
39212001-03-27 Jon Beniston <jon@beniston.com>
3922
3923 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3924 * configure: Rebuilt.
3925 * Makefile.am: Added X86_WIN32 target support.
3926 * Makefile.in: Rebuilt.
3927
3928 * include/ffi.h.in: Added X86_WIN32 target support.
3929
3930 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3931 * src/types.c: Added X86_WIN32 target support.
3932
3933 * src/x86/win32.S: New file. Based on sysv.S, but with EH
3934 stuff removed and made to work with CygWin's gas.
3935
39362001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
3937
3938 * configure.in: Make target subdirectory in build dir.
3939 * Makefile.am: Override suffix based rules to specify correct output
3940 subdirectory.
3941 * Makefile.in: Rebuilt.
3942 * configure: Rebuilt.
3943
39442001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
3945
3946 * src/powerpc/ppc_closure.S: New file.
3947 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3948 involving long long and register pairs.
3949 (ffi_prep_closure): New function.
3950 (flush_icache): Likewise.
3951 (ffi_closure_helper_SYSV): Likewise.
3952 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3953 (FFI_TRAMPOLINE_SIZE): Likewise.
3954 (FFI_NATIVE_RAW_API): Likewise.
3955 * Makefile.in: Rebuilt.
3956 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3957 (TARGET_SRC_POWERPC): Likewise.
3958
39592001-03-19 Tom Tromey <tromey@redhat.com>
3960
3961 * Makefile.in: Rebuilt.
3962 * Makefile.am (ffitest_LDFLAGS): New macro.
3963
39642001-03-02 Nick Clifton <nickc@redhat.com>
3965
3966 * include/ffi.h.in: Remove RCS ident string.
3967 * include/ffi_mips.h: Remove RCS ident string.
3968 * src/debug.c: Remove RCS ident string.
3969 * src/ffitest.c: Remove RCS ident string.
3970 * src/prep_cif.c: Remove RCS ident string.
3971 * src/types.c: Remove RCS ident string.
3972 * src/alpha/ffi.c: Remove RCS ident string.
3973 * src/alpha/osf.S: Remove RCS ident string.
3974 * src/arm/ffi.c: Remove RCS ident string.
3975 * src/arm/sysv.S: Remove RCS ident string.
3976 * src/mips/ffi.c: Remove RCS ident string.
3977 * src/mips/n32.S: Remove RCS ident string.
3978 * src/mips/o32.S: Remove RCS ident string.
3979 * src/sparc/ffi.c: Remove RCS ident string.
3980 * src/sparc/v8.S: Remove RCS ident string.
3981 * src/sparc/v9.S: Remove RCS ident string.
3982 * src/x86/ffi.c: Remove RCS ident string.
3983 * src/x86/sysv.S: Remove RCS ident string.
3984
39852001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3986
3987 * include/ffi.h.in: Change sourceware.cygnus.com references to
3988 gcc.gnu.org.
3989
39902000-12-09 Richard Henderson <rth@redhat.com>
3991
3992 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
3993 (ffi_closure_osf_inner): Index rather than increment avalue
3994 and arg_types. Give ffi_closure_osf the raw return value type.
3995 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
3996 promotion.
3997
39982000-12-07 Richard Henderson <rth@redhat.com>
3999
4000 * src/raw_api.c (ffi_translate_args): Fix typo.
4001 (ffi_prep_closure): Likewise.
4002
4003 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
4004 FFI_TRAMPOLINE_SIZE.
4005 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
4006 cif->bytes for new ffi_call_osf implementation.
4007 (ffi_prep_args): Absorb into ...
4008 (ffi_call): ... here. Do all stack allocation here and
4009 avoid a callback function.
4010 (ffi_prep_closure, ffi_closure_osf_inner): New.
4011 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
4012 (ffi_closure_osf): New.
4013
40142000-09-10 Alexandre Oliva <aoliva@redhat.com>
4015
4016 * config.guess, config.sub, install-sh: Removed.
4017 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
4018 * Makefile.in: Rebuilt.
4019
4020 * acinclude.m4: Include libtool macros from the top level.
4021 * aclocal.m4, configure: Rebuilt.
4022
40232000-08-22 Alexandre Oliva <aoliva@redhat.com>
4024
4025 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
4026 * configure: Rebuilt.
4027
40282000-05-11 Scott Bambrough <scottb@netwinder.org>
4029
4030 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
4031 memory correctly. Use conditional instructions, not branches where
4032 possible.
4033
40342000-05-04 Tom Tromey <tromey@cygnus.com>
4035
4036 * configure: Rebuilt.
4037 * configure.in: Match `arm*-*-linux-*'.
4038 From Chris Dornan <cdornan@arm.com>.
4039
40402000-04-28 Jakub Jelinek <jakub@redhat.com>
4041
4042 * Makefile.am (SUBDIRS): Define.
4043 (AM_MAKEFLAGS): Likewise.
4044 (Multilib support.): Add section.
4045 * Makefile.in: Rebuilt.
4046 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
4047 New variables. Set for gcc using -print-multi-lib. Export them
4048 to libtool.
4049 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
4050 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
4051 for -shared links.
4052 (extra_compiler_flags_value, extra_compiler_flags): Check these
4053 for extra compiler options which need to be passed down in
4054 compiler_flags.
4055
40562000-04-16 Anthony Green <green@redhat.com>
4057
4058 * configure: Rebuilt.
4059 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
4060
40612000-04-14 Jakub Jelinek <jakub@redhat.com>
4062
4063 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
4064 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
4065 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
4066 Replace all void * sizeofs with sizeof(int).
4067 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
4068 different than DOUBLE.
4069 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
4070 (ffi_prep_args_v9): New function.
4071 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
4072 (ffi_V9_return_struct): New function.
4073 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
4074 32bit code (not yet cross-arch calls).
4075 * src/sparc/v8.S: Add struct return delay nop.
4076 Handle long long.
4077 * src/sparc/v9.S: New file.
4078 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
4079 is used on sparc64 only for structures larger than 32 bytes.
4080 Pass by reference for structures is done for structure arguments
4081 larger than 16 bytes.
4082 * src/ffitest.c (main): Use 64bit rint on sparc64.
4083 Run long long tests on sparc.
4084 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
4085 sparc64.
4086 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
4087 on sparc64.
4088 * configure.in (sparc-*-linux*): New supported target.
4089 (sparc64-*-linux*): Likewise.
4090 * configure: Rebuilt.
4091 * Makefile.am: Add v9.S to SPARC files.
4092 * Makefile.in: Likewise.
4093 (LINK): Surround $(CCLD) into double quotes, so that multilib
4094 compiles work correctly.
4095
40962000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
4097
4098 * configure: Rebuilt.
4099 * configure.in: (i*86-*-solaris*): New libffi target. Patch
4100 proposed by Bryce McKinlay.
4101
41022000-03-20 Tom Tromey <tromey@cygnus.com>
4103
4104 * Makefile.in: Hand edit for java_raw_api.lo.
4105
41062000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
4107
4108 * config.guess, config.sub: Update from the gcc tree.
4109 Fix for PR libgcj/168.
4110
41112000-03-03 Tom Tromey <tromey@cygnus.com>
4112
4113 * Makefile.in: Fixed ia64 by hand.
4114
4115 * configure: Rebuilt.
4116 * configure.in (--enable-multilib): New option.
4117 (libffi_basedir): New subst.
4118 (AC_OUTPUT): Added multilib code.
4119
41202000-03-02 Tom Tromey <tromey@cygnus.com>
4121
4122 * Makefile.in: Rebuilt.
4123 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
4124 directory name.
4125
41262000-02-25 Hans Boehm <boehm@acm.org>
4127
4128 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
4129 files.
4130 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
4131 list.
4132 (ffi_prep_raw_closure): Use ffi_translate_args, not
4133 ffi_closure_translate.
4134 * src/java_raw_api.c: New file.
4135 * src/ffitest.c (closure_test_fn): New function.
4136 (main): Define `rint' as long long on IA64. Added new test when
4137 FFI_CLOSURES is defined.
4138 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
4139 (ffi_abi): Recognize IA64.
4140 (ffi_raw): Added `flt' field.
4141 Added "Java raw API" code.
4142 * configure.in: Recognize ia64.
4143 * Makefile.am (TARGET_SRC_IA64): New macro.
4144 (libffi_la_common_SOURCES): Added java_raw_api.c.
4145 (libffi_la_SOURCES): Define in IA64 case.
4146
41472000-01-04 Tom Tromey <tromey@cygnus.com>
4148
4149 * Makefile.in: Rebuilt with newer automake.
4150
41511999-12-31 Tom Tromey <tromey@cygnus.com>
4152
4153 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
4154
41551999-09-01 Tom Tromey <tromey@cygnus.com>
4156
4157 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
4158 undefs.
4159 * fficonfig.h.in: Rebuilt.
4160 * configure: Rebuilt.
4161 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
4162 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
4163 * acconfig.h: Don't #undef PACKAGE or VERSION.
4164
41651999-08-09 Anthony Green <green@cygnus.com>
4166
4167 * include/ffi.h.in: Try to work around messy header problem
4168 with PACKAGE and VERSION.
4169
4170 * configure: Rebuilt.
4171 * configure.in: Change version to 2.00-beta.
4172
4173 * fficonfig.h.in: Rebuilt.
4174 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
4175
4176 * src/x86/ffi.c (ffi_raw_call): Rename.
4177
41781999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
4179
4180 * src/x86/ffi.c (ffi_closure_SYSV): New function.
4181 (ffi_prep_incoming_args_SYSV): Ditto.
4182 (ffi_prep_closure): Ditto.
4183 (ffi_closure_raw_SYSV): Ditto.
4184 (ffi_prep_raw_closure): More ditto.
4185 (ffi_call_raw): Final ditto.
4186
4187 * include/ffi.h.in: Add definitions for closure and raw API.
4188
4189 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4190 FFI_TYPE_UINT64.
4191
4192 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
4193
4194 * src/raw_api.c: New file.
4195
4196 * include/ffi.h.in (ffi_raw): New type.
4197 (UINT_ARG, SINT_ARG): New defines.
4198 (ffi_closure, ffi_raw_closure): New types.
4199 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4200
4201 * configure.in: Add check for endianness and sizeof void*.
4202
4203 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
4204 instead of directly.
4205
4206 * configure: Rebuilt.
4207
4208Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
4209
4210 * configure.in: Add x86 and powerpc BeOS configurations.
4211 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
4212
42131999-05-09 Anthony Green <green@cygnus.com>
4214
4215 * configure.in: Add warning about this being beta code.
4216 Remove src/Makefile.am from the picture.
4217 * configure: Rebuilt.
4218
4219 * Makefile.am: Move logic from src/Makefile.am. Add changes
4220 to support libffi as a target library.
4221 * Makefile.in: Rebuilt.
4222
4223 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
4224 Upgraded to new autoconf, automake, libtool.
4225
4226 * README: Tweaks.
4227
4228 * LICENSE: Update copyright date.
4229
4230 * src/Makefile.am, src/Makefile.in: Removed.
4231
42321998-11-29 Anthony Green <green@cygnus.com>
4233
4234 * include/ChangeLog: Removed.
4235 * src/ChangeLog: Removed.
4236 * src/mips/ChangeLog: Removed.
4237 * src/sparc/ChangeLog: Remboved.
4238 * src/x86/ChangeLog: Removed.
4239
4240 * ChangeLog.v1: Created.