blob: 93b3f5e01eb18198db461009c4e891fb573fb059 [file] [log] [blame]
Anthony Greenf2c2a4f2010-04-13 10:19:28 -040012010-04-13 Dan Witte <dwitte@mozilla.com>
2
3 * msvcc.sh: Build with -W3 instead of -Wall.
4 * src/powerpc/ffi_darwin.c: Remove build warnings.
5 * src/x86/ffi.c: Ditto.
6 * src/x86/ffitarget.h: Ditto.
7
Anthony Greenc0b69e52010-03-30 08:30:22 -040082010-03-30 Dan Witte <dwitte@mozilla.com>
9
10 * msvcc.sh: Disable build warnings.
11 * README (tested): Clarify windows build procedure.
12
Anthony Green3de1eb32010-03-15 05:57:24 -0400132010-03-14 Matthias Klose <doko@ubuntu.com>
14
15 * src/x86/ffi64.c: Fix typo in comment.
16 * src/x86/ffi.c: Use /* ... */ comment style.
17
Anthony Green9dc9a292010-04-13 10:33:52 -0400182010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19
20 * doc/libffi.texi (The Closure API): Fix typo.
21 * doc/libffi.info: Remove.
22
232010-02-15 Matthias Klose <doko@ubuntu.com>
24
25 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
26 __ARM_ARCH_7EM__.
27
Anthony Green7b7a42f2010-01-12 09:14:14 -0500282010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29
30 PR libffi/40701
31 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
32 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
33 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
34 alpha*-dec-osf*.
35 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
36 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
37 * testsuite/libffi.call/return_ll1.c: Likewise.
38 * testsuite/libffi.call/stret_medium2.c: Likewise.
39 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
40 MAP_FAILED to char *.
41
422010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43
44 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
45
Anthony Greenc3042af2010-01-01 08:08:02 -0500462009-12-31 Anthony Green <green@redhat.com>
47
48 * README: Update for libffi 3.0.9.
49
502009-12-27 Matthias Klose <doko@ubuntu.com>
51
52 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
53 appropriate.
54 * configure: Rebuilt.
55
562009-12-26 Anthony Green <green@redhat.com>
57
58 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
59 avr32*-*-*.
60 * testsuite/libffi.call/cls_double_va.c: Ditto.
61
622009-12-26 Andreas Tobler <a.tobler@schweiz.org>
63
64 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
65 and inttypes.h.
66 * testsuite/libffi.special/unwindtest.cc: Ditto.
67
682009-12-26 Andreas Tobler <a.tobler@schweiz.org>
69
70 * configure.ac: Add amd64-*-openbsd*.
71 * configure: Rebuilt.
72 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
73 openbsd programs with -lpthread.
74
752009-12-26 Anthony Green <green@redhat.com>
76
77 * testsuite/libffi.call/cls_double_va.c,
78 testsuite/libffi.call/cls_longdouble.c,
79 testsuite/libffi.call/cls_longdouble_va.c,
80 testsuite/libffi.call/cls_pointer.c,
81 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
82 mips*-*-* and arm*-*-*.
83 * testsuite/libffi.call/cls_align_longdouble_split.c,
84 testsuite/libffi.call/cls_align_longdouble_split2.c,
85 testsuite/libffi.call/stret_medium2.c,
86 testsuite/libffi.call/stret_medium.c,
87 testsuite/libffi.call/stret_large.c,
88 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
89
902009-12-31 Kay Tietz <ktietz70@googlemail.com>
91
92 * testsuite/libffi.call/ffitest.h,
93 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
94 definitions.
95
962009-12-31 Carlo Bramini <carlo.bramix@libero.it>
97
98 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
99 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
100 * configure: Rebuilt.
101 * Makefile.in: Rebuilt.
102
1032009-12-31 Anthony Green <green@redhat.com>
104 Blake Chaffin.
105
106 * testsuite/libffi.call/huge_struct.c: New test case from Blake
107 Chaffin @ Apple.
108
Anthony Green0cfe60e2009-12-29 10:06:04 -05001092009-12-28 David Edelsohn <edelsohn@gnu.org>
110
111 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
112 local variables.
113 (aix_adjust_aggregate_sizes): New function.
114 (ffi_prep_cif_machdep): Call it.
115
1162009-12-26 Andreas Tobler <a.tobler@schweiz.org>
117
118 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
119 * configure: Regenerate.
120 * fficonfig.h.in: Likewise.
121 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
122 Solaris/x86.
123
1242009-12-26 Andreas Schwab <schwab@linux-m68k.org>
125
126 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
127 when a float arguments is passed in memory.
128 (ffi_closure_helper_SYSV): Mark general registers as used up when
129 a 64bit or soft-float long double argument is passed in memory.
130
Anthony Green9458d882009-12-26 07:02:27 -05001312009-12-25 Matthias Klose <doko@ubuntu.com>
132
133 * man/ffi_call.3: Fix #include in examples.
134 * doc/libffi.texi: Add dircategory.
135
1362009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
137
138 * include/ffi.h.in: Placed '__GNUC__' ifdef around
139 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
140 IRIX MIPSPro c99.
141 * include/ffi_common.h: Added '__sgi' define to non
142 '__attribute__((__mode__()))' integer typedefs.
Anthony Green0cfe60e2009-12-29 10:06:04 -0500143 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
Anthony Green9458d882009-12-26 07:02:27 -0500144 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
145 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
146 FFI_LONGDOUBLE support and alignment(N32 only).
147 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
148 fixed non '__attribute__((__mode__()))' integer typedefs.
149 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
150 since they are Linux/GNU Assembler specific.
151
1522009-12-25 Bradley Smith <brad@brad-smith.co.uk>
153
154 * configure.ac, Makefile.am, src/avr32/ffi.c,
155 src/avr32/ffitarget.h,
156 src/avr32/sysv.S: Add AVR32 port.
157 * configure, Makefile.in: Rebuilt.
158
Anthony Green115ab362009-12-24 00:22:00 -05001592009-12-21 Andreas Tobler <a.tobler@schweiz.org>
160
161 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
162 * configure: Regenerate.
163
1642009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
165
166 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
167
1682009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
169
170 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
171 type on HP-UX.
172
1732009-12-11 Eric Botcazou <ebotcazou@adacore.com>
174
175 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
176 double' arguments.
177
1782009-12-11 Eric Botcazou <ebotcazou@adacore.com>
179
180 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
181
1822009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
183
184 PR libffi/40700
185 * src/closures.c [X86_64 && __sun__ && __svr4__]
186 (FFI_MMAP_EXEC_WRIT): Define.
187
1882009-12-08 David Daney <ddaney@caviumnetworks.com>
189
190 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
191 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
192 * testsuite/libffi.call/stret_large.c: Same.
193 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
194 * testsuite/libffi.call/stret_large2.c: Same.
195 * testsuite/libffi.call/stret_medium2.c: Same.
196
1972009-12-07 David Edelsohn <edelsohn@gnu.org>
198
199 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
200 typo.
201
2022009-12-05 David Edelsohn <edelsohn@gnu.org>
203
204 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
205 code.
206 * src/powerpc/aix_closure.S: Same.
207
2082009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
209
210 * Makefile.in: Regenerate.
211 * configure: Regenerate.
212 * include/Makefile.in: Regenerate.
213 * man/Makefile.in: Regenerate.
214 * testsuite/Makefile.in: Regenerate.
215
2162009-12-04 David Edelsohn <edelsohn@gnu.org>
217
218 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
Anthony Green0cfe60e2009-12-29 10:06:04 -0500219 linux64_closure.S.
Anthony Green115ab362009-12-24 00:22:00 -0500220
2212009-12-04 Uros Bizjak <ubizjak@gmail.com>
222
223 PR libffi/41908
224 * src/x86/ffi64.c (classify_argument): Update from
225 gcc/config/i386/i386.c.
226 (ffi_closure_unix64_inner): Do not use the address of two consecutive
227 SSE registers directly.
228 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
229 for x86_64 linux targets.
230
2312009-12-04 David Edelsohn <edelsohn@gnu.org>
232
233 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
234 pfr for long double split between fpr13 and stack.
235
2362009-12-03 David Edelsohn <edelsohn@gnu.org>
237
238 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
239 fparg_count twice for long double.
240
2412009-12-03 David Edelsohn <edelsohn@gnu.org>
242
243 PR libffi/42243
244 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
245
2462009-12-03 Uros Bizjak <ubizjak@gmail.com>
247
248 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
249 Remove xfails for x86 linux targets.
250
2512009-12-02 David Edelsohn <edelsohn@gnu.org>
252
253 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
254 case.
255
2562009-12-01 David Edelsohn <edelsohn@gnu.org>
257
258 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
259 register usage. Call ffi_prep_args directly. Add long double
260 return value support.
261 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
262 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
263 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
264 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
265 mode.
266 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
267 into case.
268 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
269 Allocate result area between params and FPRs.
270
2712009-11-30 David Edelsohn <edelsohn@gnu.org>
272
273 PR target/35484
274 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
275 AIX64.
276 * src/powerpc/aix.S: Implement AIX64 version.
277 * src/powerpc/aix_closure.S: Implement AIX64 version.
278 (ffi_closure_ASM): Use extsb, lha and displament addresses.
279 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
280 support.
281 (ffi_prep_cif_machdep): Same.
282 (ffi_call): Same.
283 (ffi_closure_helper_DARWIN): Same.
284
2852009-11-02 Andreas Tobler <a.tobler@schweiz.org>
286
287 PR libffi/41908
288 * testsuite/libffi.call/testclosure.c: New test.
289
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002902009-09-28 Kai Tietz <kai.tietz@onevision.com>
291
292 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
293 assembly version use of ___chkstk.
294
2952009-09-23 Matthias Klose <doko@ubuntu.com>
296
297 PR libffi/40242, PR libffi/41443
298 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
299 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
300 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
301 Change the conditionals to __SOFTFP__ || __ARM_EABI__
302 for -mfloat-abi=softfp to work.
303
3042009-09-17 Loren J. Rittle <ljrittle@acm.org>
305
306 PR testsuite/32843 (strikes again)
307 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
308 enable proper extension on char and short.
309
3102009-09-15 David Daney <ddaney@caviumnetworks.com>
311
312 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
313 handling for FFI_TYPE_POINTER.
314 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
315 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
316 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
317 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
318 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
319 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
320 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
321 structure and pointer returns.
322 (ffi_closure_N32): Add handling for pointer returns.
323 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
324 calc_n32_return_struct_flags): Handle soft-float.
325 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
326 (ffi_call_N32): Declare proper argument types.
327 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
328 soft-float.
329
3302009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
331
332 * configure.ac (AC_PREREQ): Bump to 2.64.
333
3342009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
335
336 * Makefile.am (install-html, install-pdf): Remove.
337 * Makefile.in: Regenerate.
338
339 * Makefile.in: Regenerate.
340 * aclocal.m4: Regenerate.
341 * configure: Regenerate.
342 * fficonfig.h.in: Regenerate.
343 * include/Makefile.in: Regenerate.
344 * man/Makefile.in: Regenerate.
345 * testsuite/Makefile.in: Regenerate.
346
3472009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
348
349 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
350
3512009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
352
353 PR libffi/40807
354 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
355 return types for X86_WIN32.
356 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
357 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
358 _ffi_closure_STDCALL): Likewise.
359
360 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
361 (dlmmap, dlmunmap): Also use these functions on Cygwin.
362
3632009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
364
365 PR testsuite/40699
366 PR testsuite/40707
367 PR testsuite/40709
368 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
369 2009-06-30 commits.
370
3712009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
372
373 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
374 to "" before adding paths. (This reinstates an assignment that
375 was removed by my 2009-06-30 commit, but changes the initial
376 value from "." to "".)
377
3782009-07-01 H.J. Lu <hongjiu.lu@intel.com>
379
380 PR testsuite/40601
381 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
382 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
383 empty.
384
3852009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
386
387 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
388 to ld_library_path. Use add_path. Add just find_libgcc_s
389 to ld_library_path, not every libgcc multilib directory.
390
3912009-06-16 Wim Lewis <wiml@hhhh.org>
392
393 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
394 supposed to be callee-saved.
395 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
396 return buffer for odd-size structs.
397
3982009-06-16 Andreas Tobler <a.tobler@schweiz.org>
399
400 PR libffi/40444
401 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
402 allow_stack_execute for Darwin.
403
4042009-06-16 Andrew Haley <aph@redhat.com>
405
406 * configure.ac (TARGETDIR): Add missing blank lines.
407 * configure: Regenerate.
408
4092009-06-16 Andrew Haley <aph@redhat.com>
410
411 * testsuite/libffi.call/cls_align_sint64.c,
412 testsuite/libffi.call/cls_align_uint64.c,
413 testsuite/libffi.call/cls_longdouble_va.c,
414 testsuite/libffi.call/cls_ulonglong.c,
415 testsuite/libffi.call/return_ll1.c,
416 testsuite/libffi.call/stret_medium2.c: Fix printf format
417 specifiers.
418 * testsuite/libffi.call/ffitest.h,
419 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
420
4212009-06-15 Andrew Haley <aph@redhat.com>
422
423 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
424 * testsuite/libffi.call/err_bad_abi.c: Likewise.
Anthony Green0cfe60e2009-12-29 10:06:04 -0500425
Anthony Greenc6dddbd2009-10-04 08:11:33 -04004262009-06-12 Andrew Haley <aph@redhat.com>
427
428 * Makefile.am: Remove info_TEXINFOS.
429
4302009-06-12 Andrew Haley <aph@redhat.com>
431
432 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
433 testsuite/libffi.call/cls_align_uint64.c,
434 testsuite/libffi.call/cls_ulonglong.c,
435 testsuite/libffi.call/return_ll1.c,
436 testsuite/libffi.call/stret_medium2.c: Fix printf format
437 specifiers.
438 testsuite/libffi.special/unwindtest.cc: include stdint.h.
439
4402009-06-11 Timothy Wall <twall@users.sf.net>
441
442 * Makefile.am,
Anthony Green0cfe60e2009-12-29 10:06:04 -0500443 configure.ac,
444 include/ffi.h.in,
445 include/ffi_common.h,
446 src/closures.c,
447 src/dlmalloc.c,
448 src/x86/ffi.c,
449 src/x86/ffitarget.h,
450 src/x86/win64.S (new),
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400451 README: Added win64 support (mingw or MSVC)
Anthony Green0cfe60e2009-12-29 10:06:04 -0500452 * Makefile.in,
453 include/Makefile.in,
454 man/Makefile.in,
455 testsuite/Makefile.in,
456 configure,
457 aclocal.m4: Regenerated
458 * ltcf-c.sh: properly escape cygwin/w32 path
459 * man/ffi_call.3: Clarify size requirements for return value.
460 * src/x86/ffi64.c: Fix filename in comment.
461 * src/x86/win32.S: Remove unused extern.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400462
Anthony Green0cfe60e2009-12-29 10:06:04 -0500463 * testsuite/libffi.call/closure_fn0.c,
464 testsuite/libffi.call/closure_fn1.c,
465 testsuite/libffi.call/closure_fn2.c,
466 testsuite/libffi.call/closure_fn3.c,
467 testsuite/libffi.call/closure_fn4.c,
468 testsuite/libffi.call/closure_fn5.c,
469 testsuite/libffi.call/closure_fn6.c,
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400470 testsuite/libffi.call/closure_stdcall.c,
471 testsuite/libffi.call/cls_12byte.c,
472 testsuite/libffi.call/cls_16byte.c,
473 testsuite/libffi.call/cls_18byte.c,
474 testsuite/libffi.call/cls_19byte.c,
475 testsuite/libffi.call/cls_1_1byte.c,
476 testsuite/libffi.call/cls_20byte.c,
477 testsuite/libffi.call/cls_20byte1.c,
478 testsuite/libffi.call/cls_24byte.c,
479 testsuite/libffi.call/cls_2byte.c,
480 testsuite/libffi.call/cls_3_1byte.c,
481 testsuite/libffi.call/cls_3byte1.c,
482 testsuite/libffi.call/cls_3byte2.c,
483 testsuite/libffi.call/cls_4_1byte.c,
484 testsuite/libffi.call/cls_4byte.c,
485 testsuite/libffi.call/cls_5_1_byte.c,
486 testsuite/libffi.call/cls_5byte.c,
487 testsuite/libffi.call/cls_64byte.c,
488 testsuite/libffi.call/cls_6_1_byte.c,
489 testsuite/libffi.call/cls_6byte.c,
490 testsuite/libffi.call/cls_7_1_byte.c,
491 testsuite/libffi.call/cls_7byte.c,
492 testsuite/libffi.call/cls_8byte.c,
493 testsuite/libffi.call/cls_9byte1.c,
494 testsuite/libffi.call/cls_9byte2.c,
495 testsuite/libffi.call/cls_align_double.c,
496 testsuite/libffi.call/cls_align_float.c,
497 testsuite/libffi.call/cls_align_longdouble.c,
498 testsuite/libffi.call/cls_align_longdouble_split.c,
499 testsuite/libffi.call/cls_align_longdouble_split2.c,
500 testsuite/libffi.call/cls_align_pointer.c,
501 testsuite/libffi.call/cls_align_sint16.c,
502 testsuite/libffi.call/cls_align_sint32.c,
503 testsuite/libffi.call/cls_align_sint64.c,
504 testsuite/libffi.call/cls_align_uint16.c,
505 testsuite/libffi.call/cls_align_uint32.c,
506 testsuite/libffi.call/cls_align_uint64.c,
507 testsuite/libffi.call/cls_dbls_struct.c,
508 testsuite/libffi.call/cls_double.c,
509 testsuite/libffi.call/cls_double_va.c,
510 testsuite/libffi.call/cls_float.c,
511 testsuite/libffi.call/cls_longdouble.c,
512 testsuite/libffi.call/cls_longdouble_va.c,
513 testsuite/libffi.call/cls_multi_schar.c,
514 testsuite/libffi.call/cls_multi_sshort.c,
515 testsuite/libffi.call/cls_multi_sshortchar.c,
516 testsuite/libffi.call/cls_multi_uchar.c,
517 testsuite/libffi.call/cls_multi_ushort.c,
518 testsuite/libffi.call/cls_multi_ushortchar.c,
519 testsuite/libffi.call/cls_pointer.c,
520 testsuite/libffi.call/cls_pointer_stack.c,
521 testsuite/libffi.call/cls_schar.c,
522 testsuite/libffi.call/cls_sint.c,
523 testsuite/libffi.call/cls_sshort.c,
524 testsuite/libffi.call/cls_uchar.c,
525 testsuite/libffi.call/cls_uint.c,
526 testsuite/libffi.call/cls_ulonglong.c,
527 testsuite/libffi.call/cls_ushort.c,
528 testsuite/libffi.call/err_bad_abi.c,
529 testsuite/libffi.call/err_bad_typedef.c,
530 testsuite/libffi.call/float2.c,
531 testsuite/libffi.call/huge_struct.c,
532 testsuite/libffi.call/nested_struct.c,
533 testsuite/libffi.call/nested_struct1.c,
534 testsuite/libffi.call/nested_struct10.c,
535 testsuite/libffi.call/nested_struct2.c,
536 testsuite/libffi.call/nested_struct3.c,
537 testsuite/libffi.call/nested_struct4.c,
538 testsuite/libffi.call/nested_struct5.c,
539 testsuite/libffi.call/nested_struct6.c,
540 testsuite/libffi.call/nested_struct7.c,
541 testsuite/libffi.call/nested_struct8.c,
542 testsuite/libffi.call/nested_struct9.c,
543 testsuite/libffi.call/problem1.c,
544 testsuite/libffi.call/return_ldl.c,
545 testsuite/libffi.call/return_ll1.c,
546 testsuite/libffi.call/stret_large.c,
547 testsuite/libffi.call/stret_large2.c,
548 testsuite/libffi.call/stret_medium.c,
549 testsuite/libffi.call/stret_medium2.c,
Anthony Green0cfe60e2009-12-29 10:06:04 -0500550 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
551 of checking for MMAP. Use intptr_t instead of long casts.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400552
5532009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
554
555 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
556 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
557 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
558
5592009-06-09 Andrew Haley <aph@redhat.com>
560
561 * src/x86/freebsd.S: Add missing file.
562
5632009-06-08 Andrew Haley <aph@redhat.com>
564
565 Import from libffi 3.0.8:
566
567 * doc/libffi.texi: New file.
568 * doc/libffi.info: Likewise.
569 * doc/stamp-vti: Likewise.
570 * man/Makefile.am: New file.
571 * man/ffi_call.3: New file.
572
573 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
574 src/dlmalloc.c.
575 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
576
577 * configure.ac: Bump version to 3.0.8.
578 parisc*-*-linux*: Add.
579 i386-*-freebsd* | i386-*-openbsd*: Add.
580 powerpc-*-beos*: Add.
581 AM_CONDITIONAL X86_FREEBSD: Add.
582 AC_CONFIG_FILES: Add man/Makefile.
583
584 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
585
5862009-06-08 Andrew Haley <aph@redhat.com>
587
588 * README: Import from libffi 3.0.8.
589
5902009-06-08 Andrew Haley <aph@redhat.com>
591
592 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
593 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
594 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
595 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
596
597 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
598 * testsuite/libffi.call/stret_medium.c: Likewise.
599 * testsuite/libffi.call/stret_large2.c: Likewise.
600 * testsuite/libffi.call/stret_large.c: Likewise.
601
6022008-12-26 Timothy Wall <twall@users.sf.net>
603
Anthony Green0cfe60e2009-12-29 10:06:04 -0500604 * testsuite/libffi.call/cls_longdouble.c,
605 testsuite/libffi.call/cls_longdouble_va.c,
606 testsuite/libffi.call/cls_align_longdouble.c,
607 testsuite/libffi.call/cls_align_longdouble_split.c,
608 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
609 failures on x86_64 cygwin/mingw.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400610
6112008-12-22 Timothy Wall <twall@users.sf.net>
612
Anthony Green0cfe60e2009-12-29 10:06:04 -0500613 * testsuite/libffi.call/closure_fn0.c,
614 testsuite/libffi.call/closure_fn1.c,
615 testsuite/libffi.call/closure_fn2.c,
616 testsuite/libffi.call/closure_fn3.c,
617 testsuite/libffi.call/closure_fn4.c,
618 testsuite/libffi.call/closure_fn5.c,
619 testsuite/libffi.call/closure_fn6.c,
620 testsuite/libffi.call/closure_loc_fn0.c,
621 testsuite/libffi.call/closure_stdcall.c,
622 testsuite/libffi.call/cls_align_pointer.c,
623 testsuite/libffi.call/cls_pointer.c,
624 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
625 pointer to integer (intptr_t).
626 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400627
6282008-07-24 Anthony Green <green@redhat.com>
629
Anthony Green0cfe60e2009-12-29 10:06:04 -0500630 * testsuite/libffi.call/cls_dbls_struct.c,
631 testsuite/libffi.call/cls_double_va.c,
632 testsuite/libffi.call/cls_longdouble.c,
633 testsuite/libffi.call/cls_longdouble_va.c,
634 testsuite/libffi.call/cls_pointer.c,
635 testsuite/libffi.call/cls_pointer_stack.c,
636 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
637 compiler warnings.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400638
6392008-03-04 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500640 Blake Chaffin
641 hos@tamanegi.org
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400642
Anthony Green0cfe60e2009-12-29 10:06:04 -0500643 * testsuite/libffi.call/cls_align_longdouble_split2.c
644 testsuite/libffi.call/cls_align_longdouble_split.c
645 testsuite/libffi.call/cls_dbls_struct.c
646 testsuite/libffi.call/cls_double_va.c
647 testsuite/libffi.call/cls_longdouble.c
648 testsuite/libffi.call/cls_longdouble_va.c
649 testsuite/libffi.call/cls_pointer.c
650 testsuite/libffi.call/cls_pointer_stack.c
651 testsuite/libffi.call/err_bad_abi.c
652 testsuite/libffi.call/err_bad_typedef.c
653 testsuite/libffi.call/stret_large2.c
654 testsuite/libffi.call/stret_large.c
655 testsuite/libffi.call/stret_medium2.c
656 testsuite/libffi.call/stret_medium.c: New tests from Apple.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400657
6582009-06-05 Andrew Haley <aph@redhat.com>
659
660 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
661 libffi.
662
6632009-06-04 Andrew Haley <aph@redhat.com>
664
665 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
666 stdcall changes.
667
6682008-02-26 Anthony Green <green@redhat.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500669 Thomas Heller <theller@ctypes.org>
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400670
Anthony Green0cfe60e2009-12-29 10:06:04 -0500671 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
672 comment.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400673
6742008-02-03 Timothy Wall <twall@users.sf.net>
675
Anthony Green0cfe60e2009-12-29 10:06:04 -0500676 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
677 offset based on code pointer, not data pointer.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400678
6792008-01-31 Timothy Wall <twall@users.sf.net>
680
Anthony Green0cfe60e2009-12-29 10:06:04 -0500681 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
682 closures.
683 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
684 closures.
685 * src/x86/win32.S: Add assembly for stdcall closure.
686 * src/x86/ffi.c: Initialize stdcall closure trampoline.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400687
6882009-06-04 Andrew Haley <aph@redhat.com>
689
690 * include/ffi.h.in: Change void (*)() to void (*)(void).
691 * src/x86/ffi.c: Likewise.
692
6932009-06-04 Andrew Haley <aph@redhat.com>
694
695 * src/powerpc/ppc_closure.S: Insert licence header.
696 * src/powerpc/linux64_closure.S: Likewise.
697 * src/m68k/sysv.S: Likewise.
698
699 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
700 * src/powerpc/ffi.c: Likewise.
701 * src/powerpc/ffi_darwin.c: Likewise.
702 * src/m32r/ffi.c: Likewise.
703 * src/sh64/ffi.c: Likewise.
704 * src/x86/ffi64.c: Likewise.
705 * src/alpha/ffi.c: Likewise.
706 * src/alpha/osf.S: Likewise.
707 * src/frv/ffi.c: Likewise.
708 * src/s390/ffi.c: Likewise.
709 * src/pa/ffi.c: Likewise.
710 * src/pa/hpux32.S: Likewise.
711 * src/ia64/unix.S: Likewise.
712 * src/ia64/ffi.c: Likewise.
713 * src/sparc/ffi.c: Likewise.
714 * src/mips/ffi.c: Likewise.
715 * src/sh/ffi.c: Likewise.
716
7172008-02-15 David Daney <ddaney@avtrex.com>
718
Anthony Green0cfe60e2009-12-29 10:06:04 -0500719 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
720 Define (conditionally), and use it to include cachectl.h.
721 (ffi_prep_closure_loc): Fix cache flushing.
722 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400723
7242009-06-04 Andrew Haley <aph@redhat.com>
725
726 include/ffi.h.in,
727 src/arm/ffitarget.h,
728 src/arm/ffi.c,
729 src/arm/sysv.S,
730 src/powerpc/ffitarget.h,
731 src/closures.c,
732 src/sh64/ffitarget.h,
733 src/sh64/ffi.c,
734 src/sh64/sysv.S,
735 src/types.c,
736 src/x86/ffi64.c,
737 src/x86/ffitarget.h,
738 src/x86/win32.S,
739 src/x86/darwin.S,
740 src/x86/ffi.c,
741 src/x86/sysv.S,
742 src/x86/unix64.S,
743 src/alpha/ffitarget.h,
744 src/alpha/ffi.c,
745 src/alpha/osf.S,
746 src/m68k/ffitarget.h,
747 src/frv/ffitarget.h,
748 src/frv/ffi.c,
749 src/s390/ffitarget.h,
750 src/s390/sysv.S,
751 src/cris/ffitarget.h,
752 src/pa/linux.S,
753 src/pa/ffitarget.h,
754 src/pa/ffi.c,
755 src/raw_api.c,
756 src/ia64/ffitarget.h,
757 src/ia64/unix.S,
758 src/ia64/ffi.c,
759 src/ia64/ia64_flags.h,
760 src/java_raw_api.c,
761 src/debug.c,
762 src/sparc/v9.S,
763 src/sparc/ffitarget.h,
764 src/sparc/ffi.c,
765 src/sparc/v8.S,
766 src/mips/ffitarget.h,
767 src/mips/n32.S,
768 src/mips/o32.S,
769 src/mips/ffi.c,
770 src/prep_cif.c,
771 src/sh/ffitarget.h,
772 src/sh/ffi.c,
773 src/sh/sysv.S: Update license text.
774
7752009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
776
777 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
778 (.eh_frame): Add FDE for it.
779
7802009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
781
782 * configure.ac: Also check if assembler supports pc-relative
783 relocs on X86_WIN32 targets.
784 * configure: Regenerate.
785 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
786 (_ffi_call_SYSV): Add missing function type symbol .def and
787 add EH markup labels.
788 (_ffi_call_STDCALL): Likewise.
789 (_ffi_closure_SYSV): Likewise.
790 (_ffi_closure_raw_SYSV): Likewise.
791 (.eh_frame): Add hand-crafted EH data.
792
7932009-04-09 Jakub Jelinek <jakub@redhat.com>
794
795 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
796 version 3 of the GNU General Public License and to point readers
797 at the COPYING3 file and the FSF's license web page.
798 * testsuite/libffi.call/call.exp: Likewise.
799 * testsuite/libffi.special/special.exp: Likewise.
800
8012009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
802
803 * configure: Regenerate.
804
8052008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
806
807 PR libffi/26048
808 * configure.ac (HAVE_AS_X86_PCREL): New test.
809 * configure: Regenerate.
810 * fficonfig.h.in: Regenerate.
811 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
812 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
813 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
814 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
815 * src/x86/unix64.S (.Lstore_table): Move to .text section.
816 (.Lload_table): Likewise.
817 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
818
8192008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
820
821 * configure: Regenerate.
822
8232008-11-21 Eric Botcazou <ebotcazou@adacore.com>
824
825 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
826 signed/unsigned int8/16 return values.
827 * src/sparc/v8.S (ffi_call_v8): Likewise.
828 (ffi_closure_v8): Likewise.
829
8302008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
Anthony Green0cfe60e2009-12-29 10:06:04 -0500831 Steve Ellcey <sje@cup.hp.com>
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400832
833 * configure: Regenerate for new libtool.
834 * Makefile.in: Ditto.
835 * include/Makefile.in: Ditto.
836 * aclocal.m4: Ditto.
837
8382008-08-25 Andreas Tobler <a.tobler@schweiz.org>
839
840 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
841 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
842 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
843 Adjust copyright notice.
844 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
845 register or two register to use for FFI_SYSV structs.
846 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
847 (ffi_closure_helper_SYSV): Fix the return type for
848 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
849 Adjust copyright notice.
850
8512008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
852
853 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
854 int.
855
8562008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
857
858 * configure: Regenerate.
859 * include/Makefile.in: Regenerate.
860 * testsuite/Makefile.in: Regenerate.
861
8622008-06-07 Joseph Myers <joseph@codesourcery.com>
863
864 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
865 powerpc-*-beos*): Remove.
866 * configure: Regenerate.
867
8682008-05-09 Julian Brown <julian@codesourcery.com>
869
870 * Makefile.am (LTLDFLAGS): New.
871 (libffi_la_LDFLAGS): Use above.
872 * Makefile.in: Regenerate.
873
8742008-04-18 Paolo Bonzini <bonzini@gnu.org>
875
876 PR bootstrap/35457
877 * aclocal.m4: Regenerate.
878 * configure: Regenerate.
879
8802008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
881
882 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
883 * src/sh64/sysv.S: Likewise.
884
8852008-03-26 Daniel Jacobowitz <dan@debian.org>
886
887 * src/arm/sysv.S: Fix ARM comment marker.
888
8892008-03-26 Jakub Jelinek <jakub@redhat.com>
890
891 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
892 * src/s390/sysv.S: Likewise.
893 * src/powerpc/ppc_closure.S: Likewise.
894 * src/powerpc/sysv.S: Likewise.
895 * src/x86/unix64.S: Likewise.
896 * src/x86/sysv.S: Likewise.
897 * src/sparc/v8.S: Likewise.
898 * src/sparc/v9.S: Likewise.
899 * src/m68k/sysv.S: Likewise.
900 * src/arm/sysv.S: Likewise.
901
9022008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
903
904 * aclocal.m4: Regenerate.
905 * configure: Likewise.
906 * Makefile.in: Likewise.
907 * include/Makefile.in: Likewise.
908 * testsuite/Makefile.in: Likewise.
909
9102008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
911 Andreas Tobler <a.tobler@schweiz.org>
912
913 * configure.ac: Add amd64-*-freebsd* target.
914 * configure: Regenerate.
915
9162008-01-30 H.J. Lu <hongjiu.lu@intel.com>
917
918 PR libffi/34612
919 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
920 returning struct.
921
922 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
923 tests.
924
9252008-01-24 David Edelsohn <edelsohn@gnu.org>
926
927 * configure: Regenerate.
928
9292008-01-06 Andreas Tobler <a.tobler@schweiz.org>
930
931 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
932
9332008-01-05 Andreas Tobler <a.tobler@schweiz.org>
934
935 PR testsuite/32843
936 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
937 signed/unsigned int8/16 for X86_DARWIN.
938 Updated copyright info.
939 Handle one and two byte structs with special cif->flags.
940 * src/x86/ffitarget.h: Add special types for one and two byte structs.
941 Updated copyright info.
942 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
943 sysv.S
944 Remove code to pop args from the stack after call.
945 Special-case signed/unsigned for int8/16, one and two byte structs.
946 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
947 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
948 FFI_TYPE_SINT32.
949 Updated copyright info.
950
9512007-12-08 David Daney <ddaney@avtrex.com>
952
Anthony Green0cfe60e2009-12-29 10:06:04 -0500953 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400954 SUBU, add with ADDU and use smaller code sequences.
955
9562007-12-07 David Daney <ddaney@avtrex.com>
957
958 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
959 type.
960
9612007-12-06 David Daney <ddaney@avtrex.com>
962
963 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
964 defined.
965 (ffi_java_raw): New typedef.
966 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
967 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
968 ffi_java_raw.
969 (ffi_java_raw_closure) : Same.
970 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
971 parameter types.
972 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
973 FFI_SIZEOF_JAVA_RAW.
974 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
975 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
976 sizeof(ffi_java_raw) for alignment calculations.
977 (ffi_java_ptrarray_to_raw): Same.
978 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
Anthony Green0cfe60e2009-12-29 10:06:04 -0500979 if FFI_SIZEOF_JAVA_RAW == 4.
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400980 (ffi_java_raw_to_rvalue): Same.
981 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
982 (ffi_java_translate_args): Same.
983 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
984 parameter types.
985 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
986
9872007-12-06 David Daney <ddaney@avtrex.com>
988
Anthony Green0cfe60e2009-12-29 10:06:04 -0500989 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
Anthony Greenc6dddbd2009-10-04 08:11:33 -0400990 pointer values.
991
9922007-12-01 Andreas Tobler <a.tobler@schweiz.org>
993
994 PR libffi/31937
995 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
996 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
997 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
998 set the NUM_FPR_ARG_REGISTERS according to.
999 Add support for potential soft-float support under hard-float
1000 architecture.
1001 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
1002 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
1003 to the FFI_LINUX_SOFT_FLOAT ABI.
1004 (ffi_prep_cif_machdep): Likewise.
1005 (ffi_closure_helper_SYSV): Likewise.
1006 * src/powerpc/ppc_closure.S: Make sure not to store float/double
1007 on archs where __NO_FPRS__ is true.
1008 Add FFI_TYPE_UINT128 support.
1009 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
1010 Adjust copyright notice.
1011
10122007-11-25 Andreas Tobler <a.tobler@schweiz.org>
1013
1014 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
1015 * include/ffi_common.h: ... here.
1016 Update copyright.
1017
10182007-11-17 Andreas Tobler <a.tobler@schweiz.org>
1019
1020 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
1021 * src/powerpc/linux64.S: Likewise.
1022 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
1023 * testsuite/libffi.call/return_ldl.c: New test.
1024
10252007-09-04 <aph@redhat.com>
1026
1027 * src/arm/sysv.S (UNWIND): New.
1028 (Whole file): Conditionally compile unwinder directives.
1029 * src/arm/sysv.S: Add unwinder directives.
1030
1031 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
1032 Only treat r0 as a struct address if we're actually returning a
1033 struct by address.
1034 Only copy the bytes that are actually within a struct.
1035 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
1036 is returned in r0, not passed by address.
1037 (ffi_call): Allocate a word-sized temporary for the case where
1038 a composite is returned in r0.
1039 (ffi_prep_incoming_args_SYSV): Align as necessary.
1040
10412007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
1042
Anthony Green0cfe60e2009-12-29 10:06:04 -05001043 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001044 directly using the sys_cacheflush syscall.
1045
10462007-07-27 Andrew Haley <aph@redhat.com>
1047
1048 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
1049
10502007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
1051
1052 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
1053 * configure.ac: Likewise.
1054 * Makefile.in: Regenerate.
1055 * include/Makefile.in: Likewise.
1056 * testsuite/Makefile.in: Likewise.
1057 * configure: Likewise.
1058
10592007-08-24 David Daney <ddaney@avtrex.com>
1060
1061 * testsuite/libffi.call/return_sl.c: New test.
1062
10632007-08-10 David Daney <ddaney@avtrex.com>
1064
1065 * testsuite/libffi.call/cls_multi_ushort.c,
1066 testsuite/libffi.call/cls_align_uint16.c,
1067 testsuite/libffi.call/nested_struct1.c,
1068 testsuite/libffi.call/nested_struct3.c,
1069 testsuite/libffi.call/cls_7_1_byte.c,
1070 testsuite/libffi.call/nested_struct5.c,
1071 testsuite/libffi.call/cls_double.c,
1072 testsuite/libffi.call/nested_struct7.c,
1073 testsuite/libffi.call/cls_sint.c,
1074 testsuite/libffi.call/nested_struct9.c,
1075 testsuite/libffi.call/cls_20byte1.c,
1076 testsuite/libffi.call/cls_multi_sshortchar.c,
1077 testsuite/libffi.call/cls_align_sint64.c,
1078 testsuite/libffi.call/cls_3byte2.c,
1079 testsuite/libffi.call/cls_multi_schar.c,
1080 testsuite/libffi.call/cls_multi_uchar.c,
1081 testsuite/libffi.call/cls_19byte.c,
1082 testsuite/libffi.call/cls_9byte1.c,
1083 testsuite/libffi.call/cls_align_float.c,
1084 testsuite/libffi.call/closure_fn1.c,
1085 testsuite/libffi.call/problem1.c,
1086 testsuite/libffi.call/closure_fn3.c,
1087 testsuite/libffi.call/cls_sshort.c,
1088 testsuite/libffi.call/closure_fn5.c,
1089 testsuite/libffi.call/cls_align_double.c,
1090 testsuite/libffi.call/nested_struct.c,
1091 testsuite/libffi.call/cls_2byte.c,
1092 testsuite/libffi.call/nested_struct10.c,
1093 testsuite/libffi.call/cls_4byte.c,
1094 testsuite/libffi.call/cls_6byte.c,
1095 testsuite/libffi.call/cls_8byte.c,
1096 testsuite/libffi.call/cls_multi_sshort.c,
1097 testsuite/libffi.call/cls_align_sint16.c,
1098 testsuite/libffi.call/cls_align_uint32.c,
1099 testsuite/libffi.call/cls_20byte.c,
1100 testsuite/libffi.call/cls_float.c,
1101 testsuite/libffi.call/nested_struct2.c,
1102 testsuite/libffi.call/cls_5_1_byte.c,
1103 testsuite/libffi.call/nested_struct4.c,
1104 testsuite/libffi.call/cls_24byte.c,
1105 testsuite/libffi.call/nested_struct6.c,
1106 testsuite/libffi.call/cls_64byte.c,
1107 testsuite/libffi.call/nested_struct8.c,
1108 testsuite/libffi.call/cls_uint.c,
1109 testsuite/libffi.call/cls_multi_ushortchar.c,
1110 testsuite/libffi.call/cls_schar.c,
1111 testsuite/libffi.call/cls_uchar.c,
1112 testsuite/libffi.call/cls_align_uint64.c,
1113 testsuite/libffi.call/cls_ulonglong.c,
1114 testsuite/libffi.call/cls_align_longdouble.c,
1115 testsuite/libffi.call/cls_1_1byte.c,
1116 testsuite/libffi.call/cls_12byte.c,
1117 testsuite/libffi.call/cls_3_1byte.c,
1118 testsuite/libffi.call/cls_3byte1.c,
1119 testsuite/libffi.call/cls_4_1byte.c,
1120 testsuite/libffi.call/cls_6_1_byte.c,
1121 testsuite/libffi.call/cls_16byte.c,
1122 testsuite/libffi.call/cls_18byte.c,
1123 testsuite/libffi.call/closure_fn0.c,
1124 testsuite/libffi.call/cls_9byte2.c,
1125 testsuite/libffi.call/closure_fn2.c,
1126 testsuite/libffi.call/closure_fn4.c,
1127 testsuite/libffi.call/cls_ushort.c,
1128 testsuite/libffi.call/closure_fn6.c,
1129 testsuite/libffi.call/cls_5byte.c,
1130 testsuite/libffi.call/cls_align_pointer.c,
1131 testsuite/libffi.call/cls_7byte.c,
1132 testsuite/libffi.call/cls_align_sint32.c,
1133 testsuite/libffi.special/unwindtest_ffi_call.cc,
1134 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
1135
11362007-08-10 David Daney <ddaney@avtrex.com>
1137
1138 PR libffi/28313
1139 * configure.ac: Don't treat mips64 as a special case.
1140 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
1141 * configure: Regenerate
1142 * Makefile.in: Ditto.
1143 * fficonfig.h.in: Ditto.
1144 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
1145 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
1146 (FFI_DEFAULT_ABI): Set for n64 case.
1147 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
1148 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
1149 (ffi_closure_N32): New function.
1150 (.eh_frame): New section
1151 * src/mips/o32.S: Clean up comments.
1152 (ffi_closure_O32): Pass ffi_closure parameter in $12.
1153 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
1154 _MIPS_SIM == _ABIN32 throughout.
1155 (FFI_MIPS_STOP_HERE): New, use in place of
1156 ffi_stop_here.
1157 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
1158 to support n32/n64 ABIs.
1159 (calc_n32_struct_flags): Rewrite.
1160 (calc_n32_return_struct_flags): Remove unused variable. Reverse
1161 position of flag bits.
1162 (ffi_prep_cif_machdep): Rewrite n32 portion.
1163 (ffi_call): Enable for n64. Add special handling for small structure
1164 return values.
1165 (ffi_prep_closure_loc): Add n32 and n64 support.
1166 (ffi_closure_mips_inner_O32): Add cast to silence warning.
1167 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
1168
11692007-08-08 David Daney <ddaney@avtrex.com>
1170
1171 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
1172 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
1173 specifiers.
1174 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
1175 * testsuite/libffi.call/cls_sint.c (main): Ditto.
1176 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
1177 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
1178 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
1179 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
1180 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
1181 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
1182 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
1183 * testsuite/libffi.call/return_fl3.c (main): Ditto.
1184 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
1185 * testsuite/libffi.call/nested_struct.c (main): Ditto.
1186 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
1187 * testsuite/libffi.call/return_ll1.c (main): Ditto.
1188 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
1189 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
1190 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
1191 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
1192 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
1193 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
1194 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
1195 * testsuite/libffi.call/cls_uint.c (main): Ditto.
1196 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
1197 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
1198 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
1199 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
1200 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
1201 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
1202 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
1203 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
1204 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
1205
12062007-08-07 Andrew Haley <aph@redhat.com>
1207
1208 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
1209 checkin.
1210
12112007-08-06 Andrew Haley <aph@redhat.com>
1212
1213 PR testsuite/32843
1214 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1215 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1216 FFI_TYPE_SINT32.
1217
12182007-08-02 David Daney <ddaney@avtrex.com>
1219
1220 * testsuite/libffi.call/return_ul.c (main): Define return type as
1221 ffi_arg. Use proper printf conversion specifier.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001222
Anthony Greenc6dddbd2009-10-04 08:11:33 -040012232007-07-30 Andrew Haley <aph@redhat.com>
1224
1225 PR testsuite/32843
1226 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
1227 signed/unsigned int8/16.
1228 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
1229 Use a jump table.
1230 Remove code to pop args from the stack after call.
1231 Special-case signed/unsigned int8/16.
1232 * testsuite/libffi.call/return_sc.c (main): Revert.
1233
12342007-07-26 Richard Guenther <rguenther@suse.de>
1235
1236 PR testsuite/32843
1237 * testsuite/libffi.call/return_sc.c (main): Verify call
1238 result as signed char, not ffi_arg.
1239
12402007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1241
1242 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
1243 * configure: Regenerate.
1244
12452007-07-11 David Daney <ddaney@avtrex.com>
1246
1247 * src/mips/ffi.c: Don't include sys/cachectl.h.
1248 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
1249 cacheflush().
1250
12512007-05-18 Aurelien Jarno <aurelien@aurel32.net>
1252
1253 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
1254 from (ffi_prep_closure): ... this.
1255 (FFI_INIT_TRAMPOLINE): Adjust.
1256
12572005-12-31 Phil Blundell <pb@reciva.com>
1258
Anthony Green0cfe60e2009-12-29 10:06:04 -05001259 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
1260 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001261 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
1262 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1263 (FFI_CLOSURES): Enable closure support.
1264
12652007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
1266
Anthony Green0cfe60e2009-12-29 10:06:04 -05001267 * testsuite/libffi.call/cls_multi_ushort.c,
1268 testsuite/libffi.call/cls_align_uint16.c,
1269 testsuite/libffi.call/nested_struct1.c,
1270 testsuite/libffi.call/nested_struct3.c,
1271 testsuite/libffi.call/cls_7_1_byte.c,
1272 testsuite/libffi.call/cls_double.c,
1273 testsuite/libffi.call/nested_struct5.c,
1274 testsuite/libffi.call/nested_struct7.c,
1275 testsuite/libffi.call/cls_sint.c,
1276 testsuite/libffi.call/nested_struct9.c,
1277 testsuite/libffi.call/cls_20byte1.c,
1278 testsuite/libffi.call/cls_multi_sshortchar.c,
1279 testsuite/libffi.call/cls_align_sint64.c,
1280 testsuite/libffi.call/cls_3byte2.c,
1281 testsuite/libffi.call/cls_multi_schar.c,
1282 testsuite/libffi.call/cls_multi_uchar.c,
1283 testsuite/libffi.call/cls_19byte.c,
1284 testsuite/libffi.call/cls_9byte1.c,
1285 testsuite/libffi.call/cls_align_float.c,
1286 testsuite/libffi.call/closure_fn1.c,
1287 testsuite/libffi.call/problem1.c,
1288 testsuite/libffi.call/closure_fn3.c,
1289 testsuite/libffi.call/cls_sshort.c,
1290 testsuite/libffi.call/closure_fn5.c,
1291 testsuite/libffi.call/cls_align_double.c,
1292 testsuite/libffi.call/cls_2byte.c,
1293 testsuite/libffi.call/nested_struct.c,
1294 testsuite/libffi.call/nested_struct10.c,
1295 testsuite/libffi.call/cls_4byte.c,
1296 testsuite/libffi.call/cls_6byte.c,
1297 testsuite/libffi.call/cls_8byte.c,
1298 testsuite/libffi.call/cls_multi_sshort.c,
1299 testsuite/libffi.call/cls_align_uint32.c,
1300 testsuite/libffi.call/cls_align_sint16.c,
1301 testsuite/libffi.call/cls_float.c,
1302 testsuite/libffi.call/cls_20byte.c,
1303 testsuite/libffi.call/cls_5_1_byte.c,
1304 testsuite/libffi.call/nested_struct2.c,
1305 testsuite/libffi.call/cls_24byte.c,
1306 testsuite/libffi.call/nested_struct4.c,
1307 testsuite/libffi.call/nested_struct6.c,
1308 testsuite/libffi.call/cls_64byte.c,
1309 testsuite/libffi.call/nested_struct8.c,
1310 testsuite/libffi.call/cls_uint.c,
1311 testsuite/libffi.call/cls_multi_ushortchar.c,
1312 testsuite/libffi.call/cls_schar.c,
1313 testsuite/libffi.call/cls_uchar.c,
1314 testsuite/libffi.call/cls_align_uint64.c,
1315 testsuite/libffi.call/cls_ulonglong.c,
1316 testsuite/libffi.call/cls_align_longdouble.c,
1317 testsuite/libffi.call/cls_1_1byte.c,
1318 testsuite/libffi.call/cls_12byte.c,
1319 testsuite/libffi.call/cls_3_1byte.c,
1320 testsuite/libffi.call/cls_3byte1.c,
1321 testsuite/libffi.call/cls_4_1byte.c,
1322 testsuite/libffi.call/cls_6_1_byte.c,
1323 testsuite/libffi.call/cls_16byte.c,
1324 testsuite/libffi.call/cls_18byte.c,
1325 testsuite/libffi.call/closure_fn0.c,
1326 testsuite/libffi.call/cls_9byte2.c,
1327 testsuite/libffi.call/closure_fn2.c,
1328 testsuite/libffi.call/closure_fn4.c,
1329 testsuite/libffi.call/cls_ushort.c,
1330 testsuite/libffi.call/closure_fn6.c,
1331 testsuite/libffi.call/cls_5byte.c,
1332 testsuite/libffi.call/cls_align_pointer.c,
1333 testsuite/libffi.call/cls_7byte.c,
1334 testsuite/libffi.call/cls_align_sint32.c,
1335 testsuite/libffi.special/unwindtest_ffi_call.cc,
1336 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001337
13382007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1339
1340 * aclocal.m4: Regenerated.
1341
13422007-06-02 Paolo Bonzini <bonzini@gnu.org>
1343
1344 * configure: Regenerate.
1345
13462007-05-23 Steve Ellcey <sje@cup.hp.com>
1347
1348 * Makefile.in: Regenerate.
1349 * configure: Regenerate.
1350 * aclocal.m4: Regenerate.
1351 * include/Makefile.in: Regenerate.
1352 * testsuite/Makefile.in: Regenerate.
1353
13542007-05-10 Roman Zippel <zippel@linux-m68k.org>
1355
1356 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
1357 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
1358 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
1359 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1360 (FFI_CLOSURES): Enable closure support.
1361
13622007-05-10 Roman Zippel <zippel@linux-m68k.org>
1363
1364 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
1365 * configure: Regenerate.
1366 * fficonfig.h.in: Regenerate.
1367 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
1368 CFI_OFFSET,CFI_DEF_CFA): New macros.
1369 (ffi_call_SYSV): Add callframe annotation.
1370
13712007-05-10 Roman Zippel <zippel@linux-m68k.org>
1372
1373 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
1374 numerous test suite failures.
1375 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
1376
13772007-04-11 Paolo Bonzini <bonzini@gnu.org>
1378
1379 * Makefile.am (EXTRA_DIST): Bring up to date.
1380 * Makefile.in: Regenerate.
1381 * src/frv/eabi.S: Remove RCS keyword.
1382
13832007-04-06 Richard Henderson <rth@redhat.com>
1384
1385 * configure.ac: Tidy target case.
1386 (HAVE_LONG_DOUBLE): Allow the target to override.
1387 * configure: Regenerate.
1388 * include/ffi.h.in: Don't define ffi_type_foo if
1389 LIBFFI_HIDE_BASIC_TYPES is defined.
1390 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
1391 to ffi_type_double.
1392 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
1393 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
1394 (ffi_type_longdouble): Special case for Alpha. Don't define
1395 if long double == double.
1396
1397 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
1398 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
1399 (ffi_call, ffi_closure_osf_inner): Likewise.
1400 (ffi_closure_osf_inner): Likewise. Mark hidden.
1401 (ffi_call_osf, ffi_closure_osf): Mark hidden.
1402 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
1403 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
1404 (load_table): Handle 128-bit long double.
1405
1406 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
1407
14082007-04-06 Tom Tromey <tromey@redhat.com>
1409
1410 PR libffi/31491:
1411 * README: Fixed bug in example.
1412
14132007-04-03 Jakub Jelinek <jakub@redhat.com>
1414
1415 * src/closures.c: Include sys/statfs.h.
1416 (_GNU_SOURCE): Define on Linux.
1417 (FFI_MMAP_EXEC_SELINUX): Define.
1418 (selinux_enabled): New variable.
1419 (selinux_enabled_check): New function.
1420 (is_selinux_enabled): Define.
1421 (dlmmap): Use it.
1422
14232007-03-24 Uros Bizjak <ubizjak@gmail.com>
1424
1425 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
1426 Use 'volatile float sum' to create sum of floats to avoid false
1427 negative due to excess precision on ix86 targets.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001428 (main): Ditto.
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001429
14302007-03-08 Alexandre Oliva <aoliva@redhat.com>
1431
1432 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
1433 patch.
1434 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
1435
14362007-03-07 Alexandre Oliva <aoliva@redhat.com>
1437
1438 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
1439 (ffi_prep_closure_loc): New.
1440 (ffi_prep_raw_closure_loc): New.
1441 (ffi_prep_java_raw_closure_loc): New.
1442 * src/closures.c: New file.
1443 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
1444 Replace sflags with exec_offset.
1445 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
1446 sub_segment_exec_offset): New macros.
1447 (get_segment_flags, set_segment_flags, check_segment_merge): New
1448 macros.
1449 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
1450 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
1451 destroy_mspace): Use new macros.
1452 (sys_alloc): Silence warning.
1453 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
1454 * Makefile.in: Rebuilt.
1455 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
1456 terms of ffi_prep_closure_loc.
1457 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
1458 from...
1459 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
1460 renamed version.
1461 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
1462 adjusted from...
1463 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
1464 the renamed version.
1465 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
1466 (ffi_prep_closure): ... this.
1467 * src/pa/ffi.c: Likewise.
1468 * src/cris/ffi.c: Likewise. Adjust.
1469 * src/frv/ffi.c: Likewise.
1470 * src/ia64/ffi.c: Likewise.
1471 * src/mips/ffi.c: Likewise.
1472 * src/powerpc/ffi_darwin.c: Likewise.
1473 * src/s390/ffi.c: Likewise.
1474 * src/sh/ffi.c: Likewise.
1475 * src/sh64/ffi.c: Likewise.
1476 * src/sparc/ffi.c: Likewise.
1477 * src/x86/ffi64.c: Likewise.
1478 * src/x86/ffi.c: Likewise.
1479 (FFI_INIT_TRAMPOLINE): Adjust.
1480 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
1481 (ffi_prep_raw_closure): ... this.
1482 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
1483 (ffi_prep_closure): ... this.
1484 (flush_icache): Adjust.
1485
14862007-03-07 Alexandre Oliva <aoliva@redhat.com>
1487
1488 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
1489 Lea's malloc.
1490
14912007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1492
1493 * Makefile.am: Add dummy install-pdf target.
1494 * Makefile.in: Regenerate
1495
14962007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
1497
1498 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
1499 ffi_closure_helper_SYSV): Add long double handling.
1500
15012007-02-02 Jakub Jelinek <jakub@redhat.com>
1502
1503 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
1504 immediately after bctrl instruction.
1505
15062007-01-18 Alexandre Oliva <aoliva@redhat.com>
1507
1508 * Makefile.am (all-recursive, install-recursive,
1509 mostlyclean-recursive, clean-recursive, distclean-recursive,
1510 maintainer-clean-recursive): Add missing targets.
1511 * Makefile.in: Rebuilt.
1512
15132006-12-14 Andreas Tobler <a.tobler@schweiz.org>
1514
1515 * configure.ac: Add TARGET for x86_64-*-darwin*.
1516 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
1517 for X86_DARWIN.
1518 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
1519 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
1520 * configure: Regenerate.
1521 * Makefile.in: Regenerate.
1522 * include/Makefile.in: Regenerate.
1523 * testsuite/Makefile.in: Regenerate.
1524 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
1525 ffi_call only.
1526
15272006-12-13 Andreas Tobler <a.tobler@schweiz.org>
1528
1529 * aclocal.m4: Regenerate with aclocal -I .. as written in the
1530 Makefile.am.
1531
15322006-10-31 Geoffrey Keating <geoffk@apple.com>
1533
1534 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
1535 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
1536 Darwin.
1537 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
1538 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
1539
15402006-10-10 Paolo Bonzini <bonzini@gnu.org>
1541 Sandro Tolaini <tolaini@libero.it>
1542
Anthony Green0cfe60e2009-12-29 10:06:04 -05001543 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
Anthony Greenc6dddbd2009-10-04 08:11:33 -04001544 conditional.
1545 * configure: Regenerated.
1546 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
1547 (EXTRA_DIST): Add src/x86/darwin.S.
1548 * Makefile.in: Regenerated.
1549 * include/Makefile.in: Regenerated.
1550 * testsuite/Makefile.in: Regenerated.
1551
1552 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
1553 X86_WIN32, and additionally align stack to 16 bytes.
1554 * src/x86/darwin.S: New, based on sysv.S.
1555 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
1556
15572006-09-12 David Daney <ddaney@avtrex.com>
1558
1559 PR libffi/23935
1560 * include/Makefile.am: Install both ffi.h and ffitarget.h in
1561 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
1562 * aclocal.m4: Regenerated for automake 1.9.6.
1563 * Makefile.in: Regenerated.
1564 * include/Makefile.in: Regenerated.
1565 * testsuite/Makefile.in: Regenerated.
1566
15672006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
1568
1569 * include/ffi_common.h (struct): Revert accidental commit.
1570
15712006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
1572
1573 * include/ffi_common.h: Remove lint directives.
1574 * include/ffi.h.in: Likewise.
1575
15762006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
1577
1578 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
1579 for 32-bit architectures.
1580 * testsuite/libffi.call/return_ul.c: New test case.
1581
15822006-07-19 David Daney <ddaney@avtrex.com>
1583
1584 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
1585 xfail remains for mips64.
1586
15872006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1588
1589 * Makefile.am: Add install-html target. Add install-html to .PHONY
1590 * Makefile.in: Regenerate.
1591 * aclocal.m4: Regenerate.
1592 * include/Makefile.in: Regenerate.
1593 * testsuite/Makefile.in: Regenerate.
1594
15952006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1596
1597 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
1598 stack slot.
1599
16002006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
1601
1602 * README: Remove notice about 'Crazy Comments'.
1603 * src/debug.c: Remove lint directives. Cleanup white spaces.
1604 * src/java_raw_api.c: Likewise.
1605 * src/prep_cif.c: Likewise.
1606 * src/raw_api.c: Likewise.
1607 * src/ffitest.c: Delete. No longer needed, all test cases migrated
1608 to the testsuite.
1609 * src/arm/ffi.c: Remove lint directives.
1610 * src/m32r/ffi.c: Likewise.
1611 * src/pa/ffi.c: Likewise.
1612 * src/powerpc/ffi.c: Likewise.
1613 * src/powerpc/ffi_darwin.c: Likewise.
1614 * src/sh/ffi.c: Likewise.
1615 * src/sh64/ffi.c: Likewise.
1616 * src/x86/ffi.c: Likewise.
1617 * testsuite/libffi.call/float2.c: Likewise.
1618 * testsuite/libffi.call/promotion.c: Likewise.
1619 * testsuite/libffi.call/struct1.c: Likewise.
1620
16212006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
1622
1623 * src/pa/hpux32.S: Correct unwind offset calculation for
1624 ffi_closure_pa32.
1625 * src/pa/linux.S: Likewise.
1626
16272006-04-12 James E Wilson <wilson@specifix.com>
1628
1629 PR libgcj/26483
1630 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
1631 (hfa_type_load): Call stf_spill.
1632 (hfa_type_store): Call ldf_fill.
1633 (ffi_call): Adjust calls to above routines. Add local temps for
1634 macro result.
1635
16362006-04-10 Matthias Klose <doko@debian.org>
1637
1638 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
1639 directory names containing underscores.
1640
16412006-04-07 James E Wilson <wilson@specifix.com>
1642
1643 * testsuite/libffi.call/float4.c: New testcase.
1644
16452006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1646 Andreas Tobler <a.tobler@schweiz.ch>
1647
1648 * Makefile.am: Add PA_HPUX port.
1649 * Makefile.in: Regenerate.
1650 * include/Makefile.in: Likewise.
1651 * testsuite/Makefile.in: Likewise.
1652 * configure.ac: Add PA_HPUX rules.
1653 * configure: Regenerate.
1654 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
1655 Add PA_HPUX and PA64_HPUX.
1656 Rename FFI_LINUX ABI to FFI_PA32 ABI.
1657 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
1658 (FFI_TYPE_SMALL_STRUCT2): Define.
1659 (FFI_TYPE_SMALL_STRUCT4): Likewise.
1660 (FFI_TYPE_SMALL_STRUCT8): Likewise.
1661 (FFI_TYPE_SMALL_STRUCT3): Redefine.
1662 (FFI_TYPE_SMALL_STRUCT5): Likewise.
1663 (FFI_TYPE_SMALL_STRUCT6): Likewise.
1664 (FFI_TYPE_SMALL_STRUCT7): Likewise.
1665 * src/pa/ffi.c (ROUND_DOWN): Delete.
1666 (fldw, fstw, fldd, fstd): Use '__asm__'.
1667 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
1668 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
1669 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
1670 Simplify incrementing of stack slot variable. Change type of local
1671 'n' to unsigned int.
1672 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
1673 double on PA_HPUX.
1674 (ffi_prep_cif_machdep): Likewise.
1675 (ffi_call): Likewise.
1676 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
1677 return type to ffi_status. Simplify incrementing of stack slot
1678 variable. Only copy floating point argument registers when PA_LINUX
1679 is true. Reformat debug statement.
1680 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
1681 FFI_TYPE_SMALL_STRUCT8.
1682 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
1683 declaration.
1684 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
1685 Add nops to cache flush. Add trampoline for PA_HPUX.
1686 * src/pa/hpux32.S: New file.
1687 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
1688 ffi_prep_args_LINUX to ffi_prep_args_pa32.
1689 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
1690 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
1691 argument type checks so that common argument types appear first.
1692 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
1693 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
1694
16952006-03-24 Alan Modra <amodra@bigpond.net.au>
1696
1697 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
1698 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
1699 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
1700 FFI_TYPE_LONGDOUBLE.
1701 (ffi_prep_args64): Assert using IBM extended double.
1702 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
1703 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
1704 (ffi_call): Handle FFI_LINUX.
1705 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
1706 gpr3 return pointer as for struct return. Handle FFI_LINUX
1707 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
1708 unnecessarily.
1709 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
1710 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
1711 Don't use r6 as pointer to results, instead use sp offset. Don't
1712 make a special call to load lr with case table address, instead
1713 use offset from previous call.
1714 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
1715 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
1716 return.
1717
17182006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
1719
1720 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
1721 passed with FP registers correctly.
1722 (ffi_closure_helper_SYSV): Likewise.
1723 * src/sh64/sysv.S: Likewise.
1724
17252006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
1726
1727 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
1728 args and userdata unused.
1729 (closure_test_fn1): Mark cif and userdata unused.
1730 (main): Remove unused res.
1731
17322006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
1733
1734 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
1735 -O2, -O3, -Os and the warning flags -W -Wall.
1736 * testsuite/libffi.special/special.exp: Likewise.
1737 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
1738 unused parameter unused for gcc or else do nothing.
1739 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1740 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
1741 and userdata unused.
1742 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
1743 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
1744 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
1745 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
1746 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
1747 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
1748 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
1749 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
1750 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
1751 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
1752 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
1753 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
1754 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
1755 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
1756 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
1757 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
1758 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
1759 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
1760 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
1761 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
1762 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
1763 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
1764 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
1765 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
1766 Likewise.
1767 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
1768 Likewise.
1769 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
1770 Likewise.
1771 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
1772 void* to avoid compiler warning.
1773 (main): Likewise.
1774 (cls_struct_align_gn): Mark cif and userdata unused.
1775 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
1776 Likewise.
1777 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
1778 Likewise.
1779 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
1780 Likewise.
1781 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
1782 Likewise.
1783 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
1784 Likewise.
1785 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
1786 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
1787 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
1788 data unused.
1789 (main): Cast res_call to silence gcc.
1790 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
1791 data unused.
1792 (main): Cast res_call to silence gcc.
1793 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
1794 and data unused.
1795 (main): Cast res_call to silence gcc.
1796 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
1797 data unused.
1798 (main): Cast res_call to silence gcc.
1799 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
1800 data unused.
1801 (main): Cast res_call to silence gcc.
1802 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
1803 and data unused.
1804 (main): Cast res_call to silence gcc.
1805 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
1806 userdata unused.
1807 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
1808 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
1809 userdata unused.
1810 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
1811 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
1812 userdata unused.
1813 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
1814 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
1815 userdata unused.
1816 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
1817 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
1818 userdata unused.
1819 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
1820 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
1821 and userdata unused.
1822 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
1823 userdata unused.
1824 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
1825 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
1826 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
1827 Cleanup white spaces.
1828 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
1829 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
1830 cif and userdata unused.
1831 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
1832 Likewise.
1833 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
1834 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
1835 formatters to silence gcc.
1836 (B_gn): Mark cif and userdata unused.
1837 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
1838 unused.
1839 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
1840 (B_gn): Mark cif and userdata unused.
1841 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
1842 unused.
1843 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
1844 (B_gn): Mark cif and userdata unused.
1845 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
1846 unused.
1847 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
1848 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
1849 * testsuite/libffi.call/problem1.c (stub): Likewise.
1850 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
1851 gcc.
1852 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
1853 in the last commit for this test case in the test case itself.
1854 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
1855 unused.
1856 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
1857 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
1858 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
1859 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
1860 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
1861 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
1862
18632006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
1864
1865 * src/sh/sysv.S: Fix register numbers in the FDE for
1866 ffi_closure_SYSV.
1867
18682006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
1869
1870 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
1871 declaration to avoid a false negative on ix86. See PR323.
1872
18732006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
1874
1875 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
1876 and cast integer to void * if needed. Update the pointer to
1877 the FP register saved area correctly.
Anthony Green0cfe60e2009-12-29 10:06:04 -05001878
Anthony Greenc6dddbd2009-10-04 08:11:33 -040018792006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
1880
1881 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
1882 is fixed.
1883 * testsuite/libffi.call/nested_struct4.c: Likewise.
1884
18852006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
1886
1887 * testsuite/libffi.call/return_dbl.c: New test case.
1888 * testsuite/libffi.call/return_dbl1.c: Likewise.
1889 * testsuite/libffi.call/return_dbl2.c: Likewise.
1890 * testsuite/libffi.call/return_fl.c: Likewise.
1891 * testsuite/libffi.call/return_fl1.c: Likewise.
1892 * testsuite/libffi.call/return_fl2.c: Likewise.
1893 * testsuite/libffi.call/return_fl3.c: Likewise.
1894 * testsuite/libffi.call/closure_fn6.c: Likewise.
1895
1896 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
1897 definition.
1898 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
1899 here to be used by other test cases too.
1900
1901 * testsuite/libffi.call/nested_struct10.c: New test case.
1902 * testsuite/libffi.call/nested_struct9.c: Likewise.
1903 * testsuite/libffi.call/nested_struct8.c: Likewise.
1904 * testsuite/libffi.call/nested_struct7.c: Likewise.
1905 * testsuite/libffi.call/nested_struct6.c: Likewise.
1906 * testsuite/libffi.call/nested_struct5.c: Likewise.
1907 * testsuite/libffi.call/nested_struct4.c: Likewise.
1908
19092006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1910
1911 * configure.ac: Enable libffi for sparc64-*-freebsd*.
1912 * configure: Rebuilt.
1913
19142006-01-18 Jakub Jelinek <jakub@redhat.com>
1915
1916 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
1917 instead do the shifting inline.
1918 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
1919 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
1920 and 8 byte structs, for the remaining struct sizes don't call
1921 __lshrdi3, instead do the shifting inline.
1922
19232005-12-07 Thiemo Seufer <ths@networkno.de>
1924
1925 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
1926 missing parentheses.
1927 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
1928 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
1929 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
1930 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
1931 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
1932 FA_0_0_OFF2.
1933 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
1934 endianness bugs.
1935 (ffi_prep_closure): Improve trampoline instruction scheduling.
1936 (ffi_closure_mips_inner_O32): Fix endianness bugs.
1937
19382005-12-03 Alan Modra <amodra@bigpond.net.au>
1939
1940 * src/powerpc/ffi.c: Formatting.
1941 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
1942 (ffi_prep_args64): Likewise.
1943
19442005-09-30 Geoffrey Keating <geoffk@apple.com>
1945
1946 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
1947 darwin, use -shared-libgcc not -lgcc_s, and explain why.
1948
19492005-09-26 Tom Tromey <tromey@redhat.com>
1950
1951 * testsuite/libffi.call/float1.c (value_type): New typedef.
1952 (CANARY): New define.
1953 (main): Check for result buffer overflow.
1954 * src/powerpc/linux64.S: Handle linux64 long double returns.
1955 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
1956 (ffi_prep_cif_machdep): Handle linux64 long double returns.
1957
19582005-08-25 Alan Modra <amodra@bigpond.net.au>
1959
1960 PR target/23404
1961 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
1962 homed fp args.
1963 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
1964
19652005-08-11 Jakub Jelinek <jakub@redhat.com>
1966
1967 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
1968 (AH_BOTTOM): Add FFI_HIDDEN definition.
1969 * configure: Rebuilt.
1970 * fficonfig.h.in: Rebuilt.
1971 * src/powerpc/ffi.c (hidden): Remove.
1972 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
1973 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
1974 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
1975 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
1976 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
1977 add FFI_HIDDEN to its prototype.
1978 (ffi_closure_SYSV_inner): New.
1979 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
1980 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
1981
19822005-08-10 Alfred M. Szmidt <ams@gnu.org>
1983
1984 PR libffi/21819:
1985 * configure: Rebuilt.
1986 * configure.ac: Handle i*86-*-gnu*.
1987
19882005-08-09 Jakub Jelinek <jakub@redhat.com>
1989
1990 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
1991 DW_CFA_offset_extended_sf rather than
1992 DW_CFA_GNU_negative_offset_extended.
1993 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
1994
19952005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1996
1997 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
1998 on sh3.
1999 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
2000 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
2001 partially on register.
2002 (ffi_closure_helper_SYSV): Likewise.
2003 (ffi_prep_cif_machdep): Don't set too many cif->flags.
2004
20052005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2006
2007 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
2008 Remove empty line.
2009 * src/sh64/ffi.c (simple_type): Remove.
2010 (return_type): Handle small structures correctly.
2011 (ffi_prep_args): Likewise.
2012 (ffi_call): Likewise.
2013 (ffi_closure_helper_SYSV): Likewise.
2014 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
2015 Emit position independent code if PIC and remove wrong datalabel
2016 prefixes from EH data.
2017
20182005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
2019
2020 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
2021 * Makefile.in: Regenerate.
2022 * include/Makefile.in: Likewise.
2023 * testsuite/Makefile.in: Likewise.
2024 * configure.ac: Add POWERPC_FREEBSD rules.
2025 * configure: Regenerate.
2026 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
2027 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
2028 * src/powerpc/ffi.c: Add flags to handle small structure returns
2029 in ffi_call_SYSV.
2030 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
2031 Aka FFI_SYSV.
2032 (ffi_closure_helper_SYSV): Likewise.
2033 * src/powerpc/ppc_closure.S: Add return types for small structures.
2034 * src/powerpc/sysv.S: Add bits to handle small structures for
2035 final SYSV 4 ABI.
2036
20372005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
2038
2039 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
2040 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
2041 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
2042
20432005-07-05 Randolph Chung <tausq@debian.org>
2044
2045 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
2046 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
2047 structures. Kill compilation warnings.
2048 (ffi_closure_inner_LINUX): Print return values as hex in debug
2049 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
2050 Properly handle 5-7 byte structure returns.
2051 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
2052 (FFI_TYPE_SMALL_STRUCT2): Remove.
2053 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
2054 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
2055 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
2056 (checksmst1, checksmst2): Remove.
2057 (checksmst3): Optimize handling of 3-byte struct returns.
2058 (checksmst567): Properly handle 5-7 byte struct returns.
2059
20602005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2061
2062 PR libgcj/21943
2063 * src/mips/n32.S: Enforce PIC code.
2064 * src/mips/o32.S: Likewise.
2065
20662005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2067
2068 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
2069 * configure: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002070
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020712005-06-01 Alan Modra <amodra@bigpond.net.au>
2072
2073 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
2074 to call ffi_closure_helper_SYSV. Append @local instead.
2075 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
2076
20772005-05-17 Kelley Cook <kcook@gcc.gnu.org>
2078
2079 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
2080 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
2081 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
2082 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
2083 include/Makefile.in, testsuite/Makefile.in: Regenerate.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002084
Anthony Greenc6dddbd2009-10-04 08:11:33 -040020852005-05-09 Mike Stump <mrs@apple.com>
2086
2087 * configure: Regenerate.
2088
20892005-05-08 Richard Henderson <rth@redhat.com>
2090
2091 PR libffi/21285
2092 * src/alpha/osf.S: Update unwind into to match code.
2093
20942005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
2095 Richard Henderson <rth@redhat.com>
2096
2097 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
2098 bit 11 of flags.
2099 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
2100 (ffi_prep_closure): Set carry bit if sse-used flag set.
2101 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
2102 Only load sse registers if ssecount non-zero.
2103 (ffi_closure_unix64): Only save sse registers if carry set on entry.
2104
21052005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
2106
2107 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
2108 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
2109 * configure: Regenerate.
2110
21112005-04-20 Hans-Peter Nilsson <hp@axis.com>
2112
2113 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
2114 have Tcl8.3-compatible intermediate variable.
2115
Anthony Green0cfe60e2009-12-29 10:06:04 -050021162005-04-18 Simon Posnjak <simon.posnjak@siol.net>
Anthony Greenc6dddbd2009-10-04 08:11:33 -04002117 Hans-Peter Nilsson <hp@axis.com>
2118
2119 * Makefile.am: Add CRIS support.
2120 * configure.ac: Likewise.
2121 * Makefile.in, configure, testsuite/Makefile.in,
2122 include/Makefile.in: Regenerate.
2123 * src/cris: New directory.
2124 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
2125 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
2126
2127 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
2128 \r?\n in output tests.
2129
21302005-04-12 Mike Stump <mrs@apple.com>
2131
2132 * configure: Regenerate.
2133
21342005-03-30 Hans Boehm <Hans.Boehm@hp.com>
2135
2136 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
Anthony Green0cfe60e2009-12-29 10:06:04 -05002137
Anthony Greenc6dddbd2009-10-04 08:11:33 -040021382005-03-30 Steve Ellcey <sje@cup.hp.com>
2139
2140 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
2141 (ffi_sarg) Ditto.
2142 * src/ia64/unix.S (ffi_closure_unix): Extend gp
2143 to 64 bits in ILP32 mode.
2144 Load 64 bits even for short data.
2145
21462005-03-23 Mike Stump <mrs@apple.com>
2147
2148 * src/powerpc/darwin.S: Update for -m64 multilib.
2149 * src/powerpc/darwin_closure.S: Likewise.
2150
21512005-03-21 Zack Weinberg <zack@codesourcery.com>
2152
2153 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2154 Do not set tool_include_dir.
2155 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
2156 Regenerate.
2157 * include/Makefile.am: Set gcc_version and toollibffidir.
2158 * include/Makefile.in: Regenerate.
2159
21602005-02-22 Andrew Haley <aph@redhat.com>
2161
2162 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
2163 odd-numbered register pairs for 64-bit integer types.
2164
21652005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
2166
2167 PR libffi/20104
2168 * testsuite/libffi.call/return_ll1.c: New test case.
2169
21702005-02-11 Janis Johnson <janis187@us.ibm.com>
2171
2172 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
2173 * testsuite/libffi.call/float.c: Ditto.
2174 * testsuite/libffi.call/float2.c: Ditto.
2175 * testsuite/libffi.call/float3.c: Ditto.
2176
21772005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
2178
2179 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
2180
21812005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2182
2183 * testsuite/libffi.special/special.exp (cxx_options): Add
2184 -shared-libgcc.
2185
21862004-12-31 Richard Henderson <rth@redhat.com>
2187
2188 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
2189 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
2190 offset parameters with a type parameter; deduce size and structure
2191 alignment. Update all users.
2192
21932004-12-31 Richard Henderson <rth@redhat.com>
2194
2195 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
2196 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
2197 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
2198 into ffi_prep_closure.
2199 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
2200 from scratch.
2201
22022004-12-27 Richard Henderson <rth@redhat.com>
2203
2204 * src/x86/unix64.S: Fix typo in unwind info.
2205
22062004-12-25 Richard Henderson <rth@redhat.com>
2207
2208 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
2209 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
2210 (merge_classes): Check for it.
2211 (SSE_CLASS_P): New.
2212 (classify_argument): Pass byte_offset by value; perform all updates
2213 inside struct case.
2214 (examine_argument): Add classes argument; handle
2215 X86_64_COMPLEX_X87_CLASS.
2216 (ffi_prep_args): Merge into ...
2217 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
2218 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
2219 (ffi_fill_return_value): Remove.
2220 (ffi_prep_closure): Remove dead assert.
2221 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
2222 Rewrite to use struct register_args instead of va_list. Create
2223 flags for handling structure returns.
2224 * src/x86/unix64.S: Remove dead strings.
2225 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
2226 stack frame with ffi_call. Handle structure returns properly.
2227 (float2sse, floatfloat2sse, double2sse): Remove.
2228 (sse2float, sse2double, sse2floatfloat): Remove.
2229 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
2230 to handle structure returns properly.
2231
22322004-12-08 David Edelsohn <edelsohn@gnu.org>
2233
2234 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
2235 PICFLAG.
2236 * Makefile.in: Regenerated.
2237
22382004-12-02 Richard Sandiford <rsandifo@redhat.com>
2239
2240 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2241 * configure, aclocal.m4, Makefile.in: Regenerate.
2242 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
2243
22442004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2245
2246 * configure: Regenerate for libtool change.
2247
22482004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2249
2250 * configure: Regenerate for libtool reversion.
2251
22522004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2253
2254 * configure: Regenerate for libtool change.
2255
22562004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2257
2258 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
2259
22602004-11-23 Richard Sandiford <rsandifo@redhat.com>
2261
2262 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
2263 of jal. Use an absolute encoding for the frame information.
2264
22652004-11-23 Kelley Cook <kcook@gcc.gnu.org>
2266
2267 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
2268 * acinclude.m4: Delete logic for sincludes.
2269 * aclocal.m4, Makefile.in, configure: Regenerate.
2270 * include/Makefile: Likewise.
2271 * testsuite/Makefile: Likewise.
2272
22732004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2274
2275 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
2276 on a 8-byte boundary.
2277 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
2278
22792004-10-27 Richard Earnshaw <rearnsha@arm.com>
2280
2281 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
2282 long long values. Round stack allocation to a multiple of 8 bytes
2283 for ATPCS compatibility.
2284 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
2285 names. Handle returning long long types. Add Thumb and interworking
2286 support. Improve soft-float code.
2287
22882004-10-27 Richard Earnshaw <rearnsha@arm.com>
2289
2290 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
2291 (libffi_exit): New function.
2292 (libffi_init): Build the testglue wrapper if needed.
2293
22942004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2295
2296 PR other/18138
2297 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
2298
22992004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2300
2301 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
2302
23032004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
2304
2305 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
2306 * testsuite/libffi.call/float3.c: New test case.
2307
23082004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
2309
2310 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
2311 the function returning a structure pointed with R2.
2312 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
2313 the structure return value if T bit set. Emit position
2314 independent code and EH data if PIC.
2315
23162004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2317
2318 * Makefile.am: Add m32r support.
2319 * configure.ac: Likewise.
2320 * Makefile.in: Regenerate.
2321 * confiugre: Regenerate.
2322 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
2323 (uint64, sint64, double, longdouble)
2324 * src/m32r: New directory.
2325 * src/m32r/ffi.c: New file.
2326 * src/m32r/sysv.S: Likewise.
2327 * src/m32r/ffitarget.h: Likewise.
2328
23292004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
2330
2331 * testsuite/libffi.call/negint.c: New test case.
2332
23332004-09-14 H.J. Lu <hongjiu.lu@intel.com>
2334
2335 PR libgcj/17465
2336 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
2337 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
2338 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
2339 DYLD_LIBRARY_PATH.
2340
23412004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2342
2343 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
2344 * testsuite/libffi.call/promotion.c: Likewise.
2345 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
2346 whitespaces.
2347 * testsuite/libffi.call/return_sc.c: Likewise.
2348 * testsuite/libffi.call/return_uc.c: Likewise.
2349
23502004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2351
2352 * src/powerpc/darwin.S: Fix comments and identation.
2353 * src/powerpc/darwin_closure.S: Likewise.
2354
23552004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2356
2357 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
2358 (ffi_prep_args): Handle longdouble arguments.
2359 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
2360 longdouble.
2361 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
2362 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
2363 values.
2364 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
2365 * src/types.c: Defined longdouble size and alignment for darwin.
2366
23672004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2368
2369 * src/powerpc/aix.S: Remove whitespaces.
2370 * src/powerpc/aix_closure.S: Likewise.
2371 * src/powerpc/asm.h: Likewise.
2372 * src/powerpc/ffi.c: Likewise.
2373 * src/powerpc/ffitarget.h: Likewise.
2374 * src/powerpc/linux64.S: Likewise.
2375 * src/powerpc/linux64_closure.S: Likewise.
2376 * src/powerpc/ppc_closure.S: Likewise.
2377 * src/powerpc/sysv.S: Likewise.
2378
23792004-08-30 Anthony Green <green@redhat.com>
2380
2381 * Makefile.am: Add frv support.
2382 * Makefile.in, testsuite/Makefile.in: Rebuilt.
2383 * configure.ac: Read configure.host.
2384 * configure.in: Read configure.host.
2385 * configure.host: New file. frv-elf needs libgloss.
2386 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
2387 alignment. This is needed to frv and shouldn't harm the others.
2388 * include/ffi_common.h (ALIGN_DOWN): New macro.
2389 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
2390
23912004-08-24 David Daney <daney@avtrex.com>
2392
2393 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
2394 * testsuite/libffi.call/closure_fn1.c: Likewise.
2395 * testsuite/libffi.call/closure_fn2.c Likewise.
2396 * testsuite/libffi.call/closure_fn3.c: Likewise.
2397 * testsuite/libffi.call/closure_fn4.c: Likewise.
2398 * testsuite/libffi.call/closure_fn5.c: Likewise.
2399 * testsuite/libffi.call/cls_18byte.c: Likewise.
2400 * testsuite/libffi.call/cls_19byte.c: Likewise.
2401 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2402 * testsuite/libffi.call/cls_20byte.c: Likewise.
2403 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2404 * testsuite/libffi.call/cls_24byte.c: Likewise.
2405 * testsuite/libffi.call/cls_2byte.c: Likewise.
2406 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2407 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2408 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2409 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2410 * testsuite/libffi.call/cls_4byte.c: Likewise.
2411 * testsuite/libffi.call/cls_64byte.c: Likewise.
2412 * testsuite/libffi.call/cls_6byte.c: Likewise.
2413 * testsuite/libffi.call/cls_7byte.c: Likewise.
2414 * testsuite/libffi.call/cls_8byte.c: Likewise.
2415 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2416 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2417 * testsuite/libffi.call/cls_align_double.c: Likewise.
2418 * testsuite/libffi.call/cls_align_float.c: Likewise.
2419 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2420 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2421 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2422 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2423 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2424 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2425 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2426 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
2427 * testsuite/libffi.call/cls_double.c: Likewise.
2428 * testsuite/libffi.call/cls_float.c: Likewise.
2429 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2430 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
2431 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2432 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2433 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2434 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2435 * testsuite/libffi.call/cls_schar.c: Likewise.
2436 * testsuite/libffi.call/cls_sint.c: Likewise.
2437 * testsuite/libffi.call/cls_sshort.c: Likewise.
2438 * testsuite/libffi.call/cls_uchar.c: Likewise.
2439 * testsuite/libffi.call/cls_uint.c: Likewise.
2440 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2441 * testsuite/libffi.call/cls_ushort.c: Likewise.
2442 * testsuite/libffi.call/nested_struct.c: Likewise.
2443 * testsuite/libffi.call/nested_struct1.c: Likewise.
2444 * testsuite/libffi.call/nested_struct2.c: Likewise.
2445 * testsuite/libffi.call/nested_struct3.c: Likewise.
2446 * testsuite/libffi.call/problem1.c: Likewise.
2447 * testsuite/libffi.special/unwindtest.cc: Likewise.
2448 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
2449 to zero.
2450 * testsuite/libffi.call/cls_16byte.c: Likewise.
2451 * testsuite/libffi.call/cls_5byte.c: Likewise.
2452
24532004-08-23 David Daney <daney@avtrex.com>
2454
2455 PR libgcj/13141
2456 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
2457 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
2458 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
2459 parameters and return types.
2460 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
2461 (ffi_prep_closure): Ditto.
2462 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
2463 alignment calculations.
2464 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
2465 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
2466
24672004-08-14 Casey Marshall <csm@gnu.org>
2468
2469 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
2470 contain `FFI_TYPE_UINT64' as return type for any 64-bit
2471 integer (O32 ABI only).
2472 (ffi_prep_closure): new function.
2473 (ffi_closure_mips_inner_O32): new function.
2474 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
2475 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
2476 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
2477 64 bit integers correctly.
2478 (ffi_closure_O32): new function.
2479 Added DWARF-2 unwind info for both functions.
2480
24812004-08-10 Andrew Haley <aph@redhat.com>
2482
2483 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
2484
24852004-08-01 Robert Millan <robertmh@gnu.org>
2486
2487 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
2488 * configure: Regenerate.
2489
24902004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
2491
2492 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
2493 and mmap() explicitly instead of relying on preset autoconf cache
2494 variables.
2495 * aclocal.m4: Regenerate.
2496 * configure: Regenerate.
2497
24982004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
2499
2500 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
2501 (ffi_check_float_struct): Remove unused prototype.
2502
25032004-06-30 Geoffrey Keating <geoffk@apple.com>
2504
2505 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
2506 character on Darwin, use '\n\t' instead.
2507
25082004-06-26 Matthias Klose <doko@debian.org>
2509
2510 * libtool-version: Fix typo in revision/age.
2511
25122004-06-17 Matthias Klose <doko@debian.org>
2513
2514 * libtool-version: New.
2515 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
2516 * Makefile.in: Regenerate.
2517
25182004-06-15 Paolo Bonzini <bonzini@gnu.org>
2519
2520 * Makefile.am: Remove useless multilib rules.
2521 * Makefile.in: Regenerate.
2522 * aclocal.m4: Regenerate with automake 1.8.5.
2523 * configure.ac: Remove useless multilib configury.
2524 * configure: Regenerate.
2525
25262004-06-15 Paolo Bonzini <bonzini@gnu.org>
2527
2528 * .cvsignore: New file.
2529
25302004-06-10 Jakub Jelinek <jakub@redhat.com>
2531
2532 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
2533 fp_done.
2534 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
2535 changed from 8.
2536
25372004-06-06 Sean McNeil <sean@mcneil.com>
2538
2539 * configure.ac: Add x86_64-*-freebsd* support.
2540 * configure: Regenerate.
2541
25422004-04-26 Joe Buck <jbuck@welsh-buck.org>
2543
2544 Bug 15093
2545 * configure.ac: Test for existence of mmap and sys/mman.h before
2546 checking blacklist. Fix suggested by Jim Wilson.
2547 * configure: Regenerate.
2548
25492004-04-26 Matt Austern <austern@apple.com>
2550
2551 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
2552 FDE location.
2553 * src/powerpc/darwin_closure.S: Likewise.
2554
25552004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
2556
2557 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
2558 error. Reported by Thomas Heller <theller@python.net>.
2559 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
2560 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
2561
25622004-03-20 Matthias Klose <doko@debian.org>
2563
2564 * src/pa/linux.S: Fix typo.
2565
25662004-03-19 Matthias Klose <doko@debian.org>
2567
2568 * Makefile.am: Update.
2569 * Makefile.in: Regenerate.
2570 * src/pa/ffi.h.in: Remove.
2571 * src/pa/ffitarget.h: New file.
2572
25732004-02-10 Randolph Chung <tausq@debian.org>
2574
2575 * Makefile.am: Add PA support.
2576 * Makefile.in: Regenerate.
2577 * include/Makefile.in: Regenerate.
2578 * configure.ac: Add PA target.
2579 * configure: Regenerate.
2580 * src/pa/ffi.c: New file.
2581 * src/pa/ffi.h.in: Add PA support.
2582 * src/pa/linux.S: New file.
2583 * prep_cif.c: Add PA support.
2584
25852004-03-16 Hosaka Yuji <hos@tamanegi.org>
2586
2587 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
2588 double.
2589 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
2590 with ecif->cif->flags.
2591 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
2592 with cif->flags.
2593 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
2594 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
2595 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
2596 sc_retstruct2b): Add for 1 or 2-bytes struct case.
2597
25982004-03-15 Kelley Cook <kcook@gcc.gnu.org>
2599
2600 * configure.in: Rename file to ...
2601 * configure.ac: ... this.
2602 * fficonfig.h.in: Regenerate.
2603 * Makefile.in: Regenerate.
2604 * include/Makefile.in: Regenerate.
2605 * testsuite/Makefile.in: Regenerate.
2606
26072004-03-12 Matt Austern <austern@apple.com>
2608
2609 * src/powerpc/darwin.S: Fix EH information so it corresponds to
2610 changes in EH format resulting from addition of linkonce support.
2611 * src/powerpc/darwin_closure.S: Likewise.
2612
26132004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
2614 Paolo Bonzini <bonzini@gnu.org>
2615
2616 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
2617 Remove VPATH. Remove rules for object files. Remove multilib support.
2618 (AM_CCASFLAGS): Add.
2619 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
2620 (AC_PREREQ): Bump version to 2.59.
2621 (AC_INIT): Fill with version info and bug address.
2622 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
2623 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
2624 De-precious CC so that the right flags are passed down to multilibs.
2625 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
2626 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
2627 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
2628 * configure: Rebuilt.
2629 * aclocal.m4: Likewise.
2630 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
2631 * fficonfig.h.in: Likewise.
2632
26332004-03-11 Andreas Schwab <schwab@suse.de>
2634
2635 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
2636 arguments from fp registers only for the first 8 parameter slots.
2637 Don't convert a float parameter when passed in memory.
2638
26392004-03-09 Hans-Peter Nilsson <hp@axis.com>
2640
2641 * configure: Regenerate for config/accross.m4 correction.
2642
26432004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
2644
2645 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
2646 ecif->cif->bytes to bytes.
2647 (ffi_prep_cif_machdep): Add braces around nested if statement.
2648
26492004-02-09 Alan Modra <amodra@bigpond.net.au>
2650
2651 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
2652
2653 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
2654 (ffi_closure_helper_LINUX64): Fix typo.
2655 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
2656 for powerpc64-*-*.
2657 * testsuite/libffi.call/float.c: Likewise.
2658 * testsuite/libffi.call/float2.c: Likewise.
2659
26602004-02-08 Alan Modra <amodra@bigpond.net.au>
2661
2662 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
2663 long double function return and long double arg handling.
2664 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
2665 Use "end_pfr" instead of "nf". Correct long double handling.
2666 Localise "temp".
2667 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
2668 return value.
2669 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
2670 space for long double return value. Adjust stack frame and offsets.
2671 Load f2 long double return.
2672
26732004-02-07 Alan Modra <amodra@bigpond.net.au>
2674
2675 * src/types.c: Use 16 byte long double for POWERPC64.
2676
26772004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2678
2679 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
2680 when the structure return address is passed in %o0.
2681 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
2682 (ffi_v9_layout_struct): Align the field following a nested structure
2683 on a word boundary. Use memmove instead of memcpy.
2684 (ffi_call): Update call to ffi_V9_return_struct.
2685 (ffi_prep_closure): Define 'ctx' only for V8.
2686 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
2687 and ffi_closure_sparc_inner_v9.
2688 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
2689 Always skip the structure return address. For structures and long
2690 doubles, copy the argument directly.
2691 (ffi_closure_sparc_inner_v9): Skip the structure return address only
2692 if required. Shift the maximum floating-point slot accordingly. For
2693 big structures, copy the argument directly; otherwise, left-justify the
2694 argument and call ffi_v9_layout_struct to lay out the structure on
2695 the stack.
2696 * src/sparc/v8.S: Undef STACKFRAME before defining it.
2697 (ffi_closure_v8): Pass the structure return address. Update call to
2698 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
2699 Skip the 'unimp' insn when returning long doubles and structures.
2700 * src/sparc/v9.S: Undef STACKFRAME before defining it.
2701 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
2702 FFI_TYPE_INT handling. Load structures both in integers and
2703 floating-point registers on return.
2704 * README: Update status of the SPARC port.
2705
27062004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
2707
2708 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
2709 as of type ffi_arg.
2710 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
2711
27122004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
2713
2714 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
2715 value as of type ffi_arg, not unsigned int.
2716
27172004-01-21 Michael Ritzert <ritzert@t-online.de>
2718
2719 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
2720 of the LHS.
2721
27222004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2723
2724 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
2725 Solaris.
2726
27272004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2728
2729 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
2730 to void *.
2731
27322003-12-10 Richard Henderson <rth@redhat.com>
2733
2734 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
2735 size_t instead of int.
2736
27372003-12-04 Hosaka Yuji <hos@tamanegi.org>
2738
2739 * testsuite/libffi.call/many_win32.c: Include <float.h>.
2740 * testsuite/libffi.call/many_win32.c (main): Replace variable
2741 int i with unsigned long ul.
2742
2743 * testsuite/libffi.call/cls_align_uint64.c: New test case.
2744 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2745 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2746 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2747 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2748 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2749 * testsuite/libffi.call/cls_align_float.c: Likewise.
2750 * testsuite/libffi.call/cls_align_double.c: Likewise.
2751 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2752 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2753
27542003-12-02 Hosaka Yuji <hos@tamanegi.org>
2755
2756 PR other/13221
2757 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
2758 Align arguments to 32 bits.
2759
27602003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
2761
2762 PR other/13221
2763 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
2764 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2765 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2766 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2767 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2768 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2769
2770 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
2771
27722003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2773
2774 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
2775 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2776
27772003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
2778
2779 * Makefile.in: Rebuilt.
2780 * configure: Likewise.
2781 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
2782 the right type.
2783
27842003-11-21 Andreas Jaeger <aj@suse.de>
2785 Andreas Tobler <a.tobler@schweiz.ch>
2786
2787 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
2788 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
2789 * Makefile.in: Rebuilt.
2790 * aclocal.m4: Likewise.
2791 * configure: Likewise.
2792 * fficonfig.h.in: Likewise.
2793 * testsuite/lib/libffi-dg.exp: Add include dir.
2794 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
2795 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2796 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
2797 for ffi_closure if available.
2798 * testsuite/libffi.call/closure_fn1.c: Likewise.
2799 * testsuite/libffi.call/closure_fn2.c: Likewise.
2800 * testsuite/libffi.call/closure_fn3.c: Likewise.
2801 * testsuite/libffi.call/closure_fn4.c: Likewise.
2802 * testsuite/libffi.call/closure_fn5.c: Likewise.
2803 * testsuite/libffi.call/cls_12byte.c: Likewise.
2804 * testsuite/libffi.call/cls_16byte.c: Likewise.
2805 * testsuite/libffi.call/cls_18byte.c: Likewise.
2806 * testsuite/libffi.call/cls_19byte.c: Likewise.
2807 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2808 * testsuite/libffi.call/cls_20byte.c: Likewise.
2809 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2810 * testsuite/libffi.call/cls_24byte.c: Likewise.
2811 * testsuite/libffi.call/cls_2byte.c: Likewise.
2812 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2813 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2814 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2815 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2816 * testsuite/libffi.call/cls_4byte.c: Likewise.
2817 * testsuite/libffi.call/cls_5byte.c: Likewise.
2818 * testsuite/libffi.call/cls_64byte.c: Likewise.
2819 * testsuite/libffi.call/cls_6byte.c: Likewise.
2820 * testsuite/libffi.call/cls_7byte.c: Likewise.
2821 * testsuite/libffi.call/cls_8byte.c: Likewise.
2822 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2823 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2824 * testsuite/libffi.call/cls_double.c: Likewise.
2825 * testsuite/libffi.call/cls_float.c: Likewise.
2826 * testsuite/libffi.call/cls_schar.c: Likewise.
2827 * testsuite/libffi.call/cls_sint.c: Likewise.
2828 * testsuite/libffi.call/cls_sshort.c: Likewise.
2829 * testsuite/libffi.call/cls_uchar.c: Likewise.
2830 * testsuite/libffi.call/cls_uint.c: Likewise.
2831 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2832 * testsuite/libffi.call/cls_ushort.c: Likewise.
2833 * testsuite/libffi.call/nested_struct.c: Likewise.
2834 * testsuite/libffi.call/nested_struct1.c: Likewise.
2835 * testsuite/libffi.call/nested_struct2.c: Likewise.
2836 * testsuite/libffi.call/nested_struct3.c: Likewise.
2837 * testsuite/libffi.call/problem1.c: Likewise.
2838 * testsuite/libffi.special/unwindtest.cc: Likewise.
2839
28402003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
2841
2842 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2843
28442003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2845
2846 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2847 Add -lgcc_s to additional flags.
2848
28492003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
2850
2851 * configure.in, include/Makefile.am: PR libgcj/11147, install
2852 the ffitarget.h header file in a gcc versioned and target
2853 dependent place.
2854 * configure: Regenerated.
2855 * Makefile.in, include/Makefile.in: Likewise.
2856 * testsuite/Makefile.in: Likewise.
2857
28582003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
2859
2860 * testsuite/libffi.call/closure_fn0.c: Print result and check
2861 with dg-output to make debugging easier.
2862 * testsuite/libffi.call/closure_fn1.c: Likewise.
2863 * testsuite/libffi.call/closure_fn2.c: Likewise.
2864 * testsuite/libffi.call/closure_fn3.c: Likewise.
2865 * testsuite/libffi.call/closure_fn4.c: Likewise.
2866 * testsuite/libffi.call/closure_fn5.c: Likewise.
2867 * testsuite/libffi.call/cls_12byte.c: Likewise.
2868 * testsuite/libffi.call/cls_16byte.c: Likewise.
2869 * testsuite/libffi.call/cls_18byte.c: Likewise.
2870 * testsuite/libffi.call/cls_19byte.c: Likewise.
2871 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2872 * testsuite/libffi.call/cls_20byte.c: Likewise.
2873 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2874 * testsuite/libffi.call/cls_24byte.c: Likewise.
2875 * testsuite/libffi.call/cls_2byte.c: Likewise.
2876 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2877 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2878 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2879 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2880 * testsuite/libffi.call/cls_4byte.c: Likewise.
2881 * testsuite/libffi.call/cls_5byte.c: Likewise.
2882 * testsuite/libffi.call/cls_64byte.c: Likewise.
2883 * testsuite/libffi.call/cls_6byte.c: Likewise.
2884 * testsuite/libffi.call/cls_7byte.c: Likewise.
2885 * testsuite/libffi.call/cls_8byte.c: Likewise.
2886 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2887 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2888 * testsuite/libffi.call/cls_double.c: Likewise.
2889 * testsuite/libffi.call/cls_float.c: Likewise.
2890 * testsuite/libffi.call/cls_schar.c: Likewise.
2891 * testsuite/libffi.call/cls_sint.c: Likewise.
2892 * testsuite/libffi.call/cls_sshort.c: Likewise.
2893 * testsuite/libffi.call/cls_uchar.c: Likewise.
2894 * testsuite/libffi.call/cls_uint.c: Likewise.
2895 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2896 * testsuite/libffi.call/cls_ushort.c: Likewise.
2897 * testsuite/libffi.call/problem1.c: Likewise.
2898
2899 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2900 static.
2901
29022003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2903
2904 * testsuite/libffi.call/cls_9byte2.c: New test case.
2905 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2906 * testsuite/libffi.call/cls_64byte.c: Likewise.
2907 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2908 * testsuite/libffi.call/cls_19byte.c: Likewise.
2909 * testsuite/libffi.call/cls_18byte.c: Likewise.
2910 * testsuite/libffi.call/closure_fn4.c: Likewise.
2911 * testsuite/libffi.call/closure_fn5.c: Likewise.
2912 * testsuite/libffi.call/cls_schar.c: Likewise.
2913 * testsuite/libffi.call/cls_sint.c: Likewise.
2914 * testsuite/libffi.call/cls_sshort.c: Likewise.
2915 * testsuite/libffi.call/nested_struct2.c: Likewise.
2916 * testsuite/libffi.call/nested_struct3.c: Likewise.
2917
29182003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2919
2920 * testsuite/libffi.call/cls_double.c: Do a check on the result.
2921 * testsuite/libffi.call/cls_uchar.c: Likewise.
2922 * testsuite/libffi.call/cls_uint.c: Likewise.
2923 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2924 * testsuite/libffi.call/cls_ushort.c: Likewise.
2925 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
2926
29272003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
2928
2929 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
2930 the initialization.
2931
29322003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
2933
2934 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
2935 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
2936
29372003-10-22 David Daney <ddaney@avtrex.com>
2938
2939 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
2940 __attribute__((__mode__(__SI__))) and friends.
2941
29422003-10-22 Andreas Schwab <schwab@suse.de>
2943
2944 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
2945
29462003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
2947
2948 * configure.in: AC_LINK_FILES(ffitarget.h).
2949 * configure: Regenerate.
2950 * Makefile.in: Likewise.
2951 * include/Makefile.in: Likewise.
2952 * testsuite/Makefile.in: Likewise.
2953 * fficonfig.h.in: Likewise.
2954
29552003-10-21 Paolo Bonzini <bonzini@gnu.org>
2956 Richard Henderson <rth@redhat.com>
2957
2958 Avoid that ffi.h includes fficonfig.h.
2959
2960 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
2961 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2962 (TARGET_SRC_MIPS_SGI): Removed.
2963 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2964 (MIPS_SGI): Removed.
2965 (CLEANFILES): Removed.
2966 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
2967 targets.
2968 * acconfig.h: Removed.
2969 * configure.in: Compute sizeofs only for double and long double.
2970 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
2971 into AC_DEFINE instead of using acconfig.h. Create
2972 include/ffitarget.h instead of include/fficonfig.h. Rename
2973 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
2974 AC_DEFINE EH_FRAME_FLAGS.
2975 * include/Makefile.am (DISTCLEANFILES): New automake macro.
2976 (hack_DATA): Add ffitarget.h.
2977 * include/ffi.h.in: Remove all system specific definitions.
2978 Declare raw API even if it is not installed, why bother?
2979 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
2980 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
2981 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
2982 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
2983 * include/ffi_common.h (bool): Do not define.
2984 (ffi_assert): Accept failed assertion.
2985 (ffi_type_test): Return void and accept file/line.
2986 (FFI_ASSERT): Pass stringized failed assertion.
2987 (FFI_ASSERT_AT): New macro.
2988 (FFI_ASSERT_VALID_TYPE): New macro.
2989 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
2990 UINT64, SINT64): Define here with gcc's __attribute__ macro
2991 instead of in ffi.h
2992 (FLOAT32, ALIGN): Define here instead of in ffi.h
2993 * include/ffi-mips.h: Removed. Its content moved to
2994 src/mips/ffitarget.h after separating assembly and C sections.
2995 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
2996 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
2997 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
2998 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
2999 SIZEOF_ARG -> FFI_SIZEOF_ARG.
3000 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
3001 * src/debug.c (ffi_assert): Accept stringized failed assertion.
3002 (ffi_type_test): Rewritten.
3003 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
3004 FFI_ASSERT_VALID_TYPE.
3005 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
3006 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
3007 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
3008 src/s390/ffitarget.h, src/sh/ffitarget.h,
3009 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
3010 src/x86/ffitarget.h: New files.
3011 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
3012 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
3013 src/powerpc/aix.S, src/powerpc/darwin.S,
3014 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
3015 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
3016 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
3017 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
3018 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
3019 include fficonfig.h
3020
30212003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3022
3023 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
3024 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
3025
30262003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
3027
3028 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
3029 Used when FFI_DEBUG = 1.
3030
30312003-10-14 Alan Modra <amodra@bigpond.net.au>
3032
3033 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
3034 and align.
3035
30362003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3037
3038 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
3039 FFI_MIPS_O32 for O32 ABI.
3040
30412003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
3042
3043 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
3044 SPARC64. Cleanup whitespaces.
3045
30462003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
3047
3048 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
3049 strongarm, xscale. Cleanup whitespaces.
3050 * testsuite/libffi.call/closure_fn1.c: Likewise.
3051 * testsuite/libffi.call/closure_fn2.c: Likewise.
3052 * testsuite/libffi.call/closure_fn3.c: Likewise.
3053 * testsuite/libffi.call/cls_12byte.c: Likewise.
3054 * testsuite/libffi.call/cls_16byte.c: Likewise.
3055 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3056 * testsuite/libffi.call/cls_20byte.c: Likewise.
3057 * testsuite/libffi.call/cls_24byte.c: Likewise.
3058 * testsuite/libffi.call/cls_2byte.c: Likewise.
3059 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3060 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3061 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3062 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3063 * testsuite/libffi.call/cls_4byte.c: Likewise.
3064 * testsuite/libffi.call/cls_5byte.c: Likewise.
3065 * testsuite/libffi.call/cls_6byte.c: Likewise.
3066 * testsuite/libffi.call/cls_7byte.c: Likewise.
3067 * testsuite/libffi.call/cls_8byte.c: Likewise.
3068 * testsuite/libffi.call/cls_double.c: Likewise.
3069 * testsuite/libffi.call/cls_float.c: Likewise.
3070 * testsuite/libffi.call/cls_uchar.c: Likewise.
3071 * testsuite/libffi.call/cls_uint.c: Likewise.
3072 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3073 * testsuite/libffi.call/cls_ushort.c: Likewise.
3074 * testsuite/libffi.call/nested_struct.c: Likewise.
3075 * testsuite/libffi.call/nested_struct1.c: Likewise.
3076 * testsuite/libffi.call/problem1.c: Likewise.
3077 * testsuite/libffi.special/unwindtest.cc: Likewise.
3078 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
3079
30802003-09-18 David Edelsohn <edelsohn@gnu.org>
3081
3082 * src/powerpc/aix.S: Cleanup whitespaces.
3083 * src/powerpc/aix_closure.S: Likewise.
3084
30852003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3086
3087 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
3088 * src/powerpc/darwin_closure.S: Likewise.
3089 * src/powerpc/ffi_darwin.c: Likewise.
3090
30912003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3092 David Edelsohn <edelsohn@gnu.org>
3093
3094 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
3095 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
3096 parameter stack.
3097 * src/powerpc/darwin_closure.S: Likewise.
3098 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
3099 according to the Darwin/AIX ABI.
3100 (ffi_prep_cif_machdep): Likewise.
3101 (ffi_closure_helper_DARWIN): Likewise.
3102 Remove the outgoing parameter stack logic. Simplify the evaluation
3103 of the different CASE types.
3104 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
3105 statement in the trampoline code.
3106
31072003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
3108
3109 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
3110 for the register size.
3111 (ffi_closure_helper_SYSV): Handle the structure return value
3112 address correctly.
3113 (ffi_closure_helper_SYSV): Return the appropriate type when
3114 the registers are used for the structure return value.
3115 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
3116 the 64-bit return value. Update copyright years.
3117
31182003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3119
3120 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
3121 srcdir for ffi_mips.h.
3122
31232003-09-12 Alan Modra <amodra@bigpond.net.au>
3124
3125 * src/prep_cif.c (initialize_aggregate): Include tail padding in
3126 structure size.
3127 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
3128 placement of float result.
3129 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
3130 cast of "resp" for big-endian 64 bit machines.
3131
31322003-09-11 Alan Modra <amodra@bigpond.net.au>
3133
3134 * src/types.c (double, longdouble): Merge identical SH and ARM
3135 typedefs, and add POWERPC64.
3136 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
3137 struct split over gpr and rest.
3138 (ffi_prep_cif_machdep): Correct intarg_count for structures.
3139 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
3140
31412003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
3142
3143 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
3144 passing correctly.
3145
31462003-09-09 Alan Modra <amodra@bigpond.net.au>
3147
3148 * configure: Regenerate.
3149
31502003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3151
3152 * Makefile.am: Remove build rules for ffitest.
3153 * Makefile.in: Rebuilt.
3154
31552003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3156
3157 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
3158 about implicit declaration of abort().
3159
31602003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3161
3162 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
3163 * Makefile.in: Rebuilt.
3164 * configure.in: Add dejagnu test framework.
3165 * configure: Rebuilt.
3166
3167 * testsuite/Makefile.am: New file.
3168 * testsuite/Makefile.in: Built
3169 * testsuite/lib/libffi-dg.exp: New file.
3170 * testsuite/config/default.exp: Likewise.
3171 * testsuite/libffi.call/call.exp: Likewise.
3172 * testsuite/libffi.call/ffitest.h: Likewise.
3173 * testsuite/libffi.call/closure_fn0.c: Likewise.
3174 * testsuite/libffi.call/closure_fn1.c: Likewise.
3175 * testsuite/libffi.call/closure_fn2.c: Likewise.
3176 * testsuite/libffi.call/closure_fn3.c: Likewise.
3177 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3178 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3179 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3180 * testsuite/libffi.call/cls_2byte.c: Likewise.
3181 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3182 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3183 * testsuite/libffi.call/cls_4byte.c: Likewise.
3184 * testsuite/libffi.call/cls_5byte.c: Likewise.
3185 * testsuite/libffi.call/cls_6byte.c: Likewise.
3186 * testsuite/libffi.call/cls_7byte.c: Likewise.
3187 * testsuite/libffi.call/cls_8byte.c: Likewise.
3188 * testsuite/libffi.call/cls_12byte.c: Likewise.
3189 * testsuite/libffi.call/cls_16byte.c: Likewise.
3190 * testsuite/libffi.call/cls_20byte.c: Likewise.
3191 * testsuite/libffi.call/cls_24byte.c: Likewise.
3192 * testsuite/libffi.call/cls_double.c: Likewise.
3193 * testsuite/libffi.call/cls_float.c: Likewise.
3194 * testsuite/libffi.call/cls_uchar.c: Likewise.
3195 * testsuite/libffi.call/cls_uint.c: Likewise.
3196 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3197 * testsuite/libffi.call/cls_ushort.c: Likewise.
3198 * testsuite/libffi.call/float.c: Likewise.
3199 * testsuite/libffi.call/float1.c: Likewise.
3200 * testsuite/libffi.call/float2.c: Likewise.
3201 * testsuite/libffi.call/many.c: Likewise.
3202 * testsuite/libffi.call/many_win32.c: Likewise.
3203 * testsuite/libffi.call/nested_struct.c: Likewise.
3204 * testsuite/libffi.call/nested_struct1.c: Likewise.
3205 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
3206 * testsuite/libffi.call/problem1.c: Likewise.
3207 * testsuite/libffi.call/promotion.c: Likewise.
3208 * testsuite/libffi.call/return_ll.c: Likewise.
3209 * testsuite/libffi.call/return_sc.c: Likewise.
3210 * testsuite/libffi.call/return_uc.c: Likewise.
3211 * testsuite/libffi.call/strlen.c: Likewise.
3212 * testsuite/libffi.call/strlen_win32.c: Likewise.
3213 * testsuite/libffi.call/struct1.c: Likewise.
3214 * testsuite/libffi.call/struct2.c: Likewise.
3215 * testsuite/libffi.call/struct3.c: Likewise.
3216 * testsuite/libffi.call/struct4.c: Likewise.
3217 * testsuite/libffi.call/struct5.c: Likewise.
3218 * testsuite/libffi.call/struct6.c: Likewise.
3219 * testsuite/libffi.call/struct7.c: Likewise.
3220 * testsuite/libffi.call/struct8.c: Likewise.
3221 * testsuite/libffi.call/struct9.c: Likewise.
3222 * testsuite/libffi.special/special.exp: New file.
3223 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3224 * testsuite/libffi.special/unwindtest.cc: Likewise.
3225
3226
32272003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3228
3229 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
3230 copyright years.
3231
32322003-08-02 Alan Modra <amodra@bigpond.net.au>
3233
3234 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
3235 structure passing.
3236 (ffi_closure_helper_LINUX64): Likewise.
3237 * src/powerpc/linux64.S: Remove code writing to parm save area.
3238 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
3239 address in lr from ffi_closure_helper_LINUX64 call to calculate
3240 table address. Optimize function tail.
3241
32422003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
3243
3244 * src/sparc/ffi.c: Handle all floating point registers.
3245 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
3246
32472003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3248
3249 * README: Note that libffi is not part of GCC. Update the project
3250 URL and status.
3251
32522003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3253
3254 * src/powerpc/ppc_closure.S: Include ffi.h.
3255
32562003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3257
3258 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
3259 Use C style comments.
3260
32612003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3262
3263 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
3264 * Makefile.in: Regenerate.
3265 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
3266 * configure: Regenerate.
3267 * include/ffi.h.in: Add SHmedia support.
3268 * src/sh64/ffi.c: New file.
3269 * src/sh64/sysv.S: New file.
3270
32712003-05-16 Jakub Jelinek <jakub@redhat.com>
3272
3273 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
3274 should be read-only.
3275 * configure: Rebuilt.
3276 * fficonfig.h.in: Rebuilt.
3277 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
3278 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
3279 * src/powerpc/linux64.S: Likewise.
3280 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
3281 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
3282 if -fpic/-fPIC/-mrelocatable.
3283 * src/powerpc/powerpc_closure.S: Likewise.
3284 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
3285 #write in .eh_frame flags.
3286 * src/sparc/v9.S: Likewise.
3287 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
3288 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
3289 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
3290
32912003-05-07 Jeff Sturm <jsturm@one-point.com>
3292
3293 Fixes PR bootstrap/10656
3294 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
3295 support for .register pseudo-op.
3296 * src/sparc/v8.S: Use it.
3297 * fficonfig.h.in: Rebuilt.
3298 * configure: Rebuilt.
3299
33002003-04-18 Jakub Jelinek <jakub@redhat.com>
3301
3302 * include/ffi.h.in (POWERPC64): Define if 64-bit.
3303 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
3304 Make it the default on POWERPC64.
3305 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
3306 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
3307 * configure: Rebuilt.
3308 * src/powerpc/ffi.c (hidden): Define.
3309 (ffi_prep_args_SYSV): Renamed from
3310 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
3311 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
3312 ASM_NEEDS_REGISTERS64): New.
3313 (ffi_prep_args64): New function.
3314 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
3315 (ffi_call): Likewise.
3316 (ffi_prep_closure): Likewise.
3317 (flush_icache): Surround by #ifndef POWERPC64.
3318 (ffi_dblfl): New union type.
3319 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
3320 (ffi_closure_helper_LINUX64): New function.
3321 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
3322 __powerpc64__.
3323 * src/powerpc/sysv.S: Likewise.
3324 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
3325 * src/powerpc/linux64.S: New file.
3326 * src/powerpc/linux64_closure.S: New file.
3327 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
3328 src/powerpc/linux64_closure.S.
3329 (TARGET_SRC_POWERPC): Likewise.
3330
3331 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
3332 closure_test_fn3): Fix result printing on big-endian 64-bit
3333 machines.
3334 (main): Print tst2_arg instead of uninitialized tst2_result.
3335
3336 * src/ffitest.c (main): Hide what closure pointer really points to
3337 from the compiler.
3338
33392003-04-16 Richard Earnshaw <rearnsha@arm.com>
3340
3341 * configure.in (arm-*-netbsdelf*): Add configuration.
3342 (configure): Regenerated.
3343
33442003-04-04 Loren J. Rittle <ljrittle@acm.org>
3345
3346 * include/Makefile.in: Regenerate.
3347
33482003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3349
3350 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
3351 bit mode.
3352 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
3353 Receive closure pointer through parameter, read args using
3354 __builtin_dwarf_cfa.
3355 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
3356
33572003-03-12 Andreas Schwab <schwab@suse.de>
3358
3359 * configure.in: Avoid trailing /. in toolexeclibdir.
3360 * configure: Rebuilt.
3361
33622003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
3363
3364 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
3365
33662003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
3367
3368 * libffi/src/powerpc/darwin_closure.S:
3369 Fix alignement bug, allocate 8 bytes for the result.
3370 * libffi/src/powerpc/aix_closure.S:
3371 Likewise.
3372 * libffi/src/powerpc/ffi_darwin.c:
3373 Update stackframe description for aix/darwin_closure.S.
3374
33752003-02-06 Jakub Jelinek <jakub@redhat.com>
3376
3377 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
3378 attribute.
3379
33802003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
3381 Andreas Schwab <schwab@suse.de>
3382
3383 * configure.in: Adjust command to source config-ml.in to account
3384 for changes to the libffi_basedir definition.
3385 (libffi_basedir): Remove ${srcdir} from value and include trailing
3386 slash if nonempty.
3387
3388 * configure: Regenerate.
3389
33902003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3391
3392 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
3393
33942003-01-28 Andrew Haley <aph@redhat.com>
3395
3396 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
3397 * src/x86/ffi64.c (ffi_prep_closure): New.
3398 (ffi_closure_UNIX64_inner): New.
3399 * src/x86/unix64.S (ffi_closure_UNIX64): New.
3400
34012003-01-27 Alexandre Oliva <aoliva@redhat.com>
3402
3403 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
3404 Remove USE_LIBDIR conditional.
3405 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
3406 * Makefile.in, configure: Rebuilt.
3407
34082003-01027 David Edelsohn <edelsohn@gnu.org>
3409
3410 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
3411 * Makefile.in: Regenerate.
3412
34132003-01-22 Andrew Haley <aph@redhat.com>
3414
3415 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
3416 unwind info.
3417
34182003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3419
3420 * src/powerpc/darwin.S: Add unwind info.
3421 * src/powerpc/darwin_closure.S: Likewise.
3422
34232003-01-14 Andrew Haley <aph@redhat.com>
3424
3425 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
3426 (ffi_prep_cif_machdep): Likewise.
3427 * src/x86/unix64.S: Add unwind info.
3428
34292003-01-14 Andreas Jaeger <aj@suse.de>
3430
3431 * src/ffitest.c (main): Only use ffi_closures if those are
3432 supported.
3433
34342003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
3435
3436 * libffi/src/ffitest.c
3437 add closure testcases
3438
34392003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
3440
3441 * libffi/src/powerpc/ffi.c
3442 fix alignment bug for float (4 byte aligned iso 8 byte)
3443
34442003-01-09 Geoffrey Keating <geoffk@apple.com>
3445
3446 * src/powerpc/ffi_darwin.c: Remove RCS version string.
3447 * src/powerpc/darwin.S: Remove RCS version string.
3448
34492003-01-03 Jeff Sturm <jsturm@one-point.com>
3450
3451 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
3452 * src/ffitest.c (main): Use static storage for closure.
3453 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
3454 * src/sparc/v8.S (ffi_closure_v8): New.
3455 * src/sparc/v9.S (ffi_closure_v9): New.
3456
34572002-11-10 Ranjit Mathew <rmathew@hotmail.com>
3458
3459 * include/ffi.h.in: Added FFI_STDCALL ffi_type
3460 enumeration for X86_WIN32.
3461 * src/x86/win32.S: Added ffi_call_STDCALL function
3462 definition.
3463 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
3464 switch cases for recognising FFI_STDCALL and
3465 calling ffi_call_STDCALL if target is X86_WIN32.
3466 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
3467 stdcall versions of the "my_strlen" and "many"
3468 test functions (for X86_WIN32).
3469 Added test cases to test stdcall invocation using
3470 these functions.
3471
34722002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
3473
3474 * src/sh/sysv.S: Add DWARF2 unwind info.
3475
34762002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
3477
3478 * src/s390/sysv.S (.eh_frame section): Make section read-only.
3479
34802002-11-26 Jim Wilson <wilson@redhat.com>
3481
3482 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
3483
34842002-11-23 H.J. Lu <hjl@gnu.org>
3485
3486 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
3487 Include ../config/accross.m4.
3488 * aclocal.m4; Rebuild.
3489 * configure: Likewise.
3490
34912002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
3492
3493 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
3494
34952002-11-11 DJ Delorie <dj@redhat.com>
3496
3497 * configure.in: Look for common files in the right place.
3498
34992002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
3500
3501 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
3502 raw data as _Jv_word values, not ffi_raw.
3503 (ffi_java_ptrarray_to_raw): Likewise.
3504 (ffi_java_rvalue_to_raw): New function.
3505 (ffi_java_raw_call): Call it.
3506 (ffi_java_raw_to_rvalue): New function.
3507 (ffi_java_translate_args): Call it.
3508 * src/ffitest.c (closure_test_fn): Interpret return value
3509 as ffi_arg, not int.
3510 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
3511 FFI_TYPE_POINTER case.
3512 (ffi_closure_helper_SYSV): Likewise. Also, assume return
3513 values extended to word size.
3514
35152002-10-02 Andreas Jaeger <aj@suse.de>
3516
3517 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
3518
35192002-10-01 Bo Thorsen <bo@smetana.suse.de>
3520
3521 * include/ffi.h.in: Fix i386 win32 compilation.
3522
35232002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
3524
3525 * configure.in: Add s390x-*-linux-* target.
3526 * configure: Regenerate.
3527 * include/ffi.h.in: Define S390X for s390x targets.
3528 (FFI_CLOSURES): Define for s390/s390x.
3529 (FFI_TRAMPOLINE_SIZE): Likewise.
3530 (FFI_NATIVE_RAW_API): Likewise.
3531 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
3532 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
3533 * src/s390/ffi.c: Major rework of existing code. Add support for
3534 s390x targets. Add closure support.
3535 * src/s390/sysv.S: Likewise.
3536
35372002-09-29 Richard Earnshaw <rearnsha@arm.com>
3538
3539 * src/arm/sysv.S: Fix typo.
3540
35412002-09-28 Richard Earnshaw <rearnsha@arm.com>
3542
3543 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
3544 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
3545 (ffi_call_SYSV): Handle soft-float.
3546
35472002-09-27 Bo Thorsen <bo@suse.de>
3548
3549 * include/ffi.h.in: Fix multilib x86-64 support.
3550
35512002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3552
3553 * Makefile.am (all-multi): Fix multilib parallel build.
3554
35552002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
3556
3557 * configure.in (sh[34]*-*-linux*): Add brackets.
3558 * configure: Regenerate.
3559
35602002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
3561
3562 * Makefile.am: Add SH support.
3563 * Makefile.in: Regenerate.
3564 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
3565 * configure: Regenerate.
3566 * include/ffi.h.in: Add SH support.
3567 * src/sh/ffi.c: New file.
3568 * src/sh/sysv.S: New file.
3569 * src/types.c: Add SH support.
3570
35712002-07-16 Bo Thorsen <bo@suse.de>
3572
3573 * src/x86/ffi64.c: New file that adds x86-64 support.
3574 * src/x86/unix64.S: New file that handles argument setup for
3575 x86-64.
3576 * src/x86/sysv.S: Don't use this on x86-64.
3577 * src/x86/ffi.c: Don't use this on x86-64.
3578 Remove unused vars.
3579 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
3580 for x86-64.
3581 * src/ffitest.c (struct6): New test that tests a special case in
3582 the x86-64 ABI.
3583 (struct7): Likewise.
3584 (struct8): Likewise.
3585 (struct9): Likewise.
3586 (closure_test_fn): Silence warning about this when it's not used.
3587 (main): Add the new tests.
3588 (main): Fix a couple of wrong casts and silence some compiler warnings.
3589 * include/ffi.h.in: Add x86-64 ABI definition.
3590 * fficonfig.h.in: Regenerate.
3591 * Makefile.am: Add x86-64 support.
3592 * configure.in: Likewise.
3593 * Makefile.in: Regenerate.
3594 * configure: Likewise.
3595
35962002-06-24 Bo Thorsen <bo@suse.de>
3597
3598 * src/types.c: Merge settings for similar architectures.
3599 Add x86-64 sizes and alignments.
3600
36012002-06-23 Bo Thorsen <bo@suse.de>
3602
3603 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
3604 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
3605 * src/mips/ffi.c (ffi_prep_args): Likewise.
3606 * src/m68k/ffi.c (ffi_prep_args): Likewise.
3607
36082002-07-18 H.J. Lu (hjl@gnu.org)
3609
3610 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
3611 (libffi_la_SOURCES): Support MIPS_LINUX.
3612 (libffi_convenience_la_SOURCES): Likewise.
3613 * Makefile.in: Regenerated.
3614
3615 * configure.in (mips64*-*): Skip.
3616 (mips*-*-linux*): New.
3617 * configure: Regenerated.
3618
3619 * src/mips/ffi.c: Include <sgidefs.h>.
3620
36212002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3622
3623 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
3624
36252002-05-27 Roger Sayle <roger@eyesopen.com>
3626
3627 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
3628
36292002-05-27 Bo Thorsen <bo@suse.de>
3630
3631 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
3632 fix formatting.
3633
36342002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
3635
3636 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
3637 beginning of function (for older apple cc).
3638
36392002-05-08 Alexandre Oliva <aoliva@redhat.com>
3640
3641 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3642 script entry, and set LD to it when configuring multilibs.
3643 * configure: Rebuilt.
3644
36452002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3646
3647 * configure.in (sparc64-*-netbsd*): Add target.
3648 (sparc-*-netbsdelf*): Likewise.
3649 * configure: Regenerate.
3650
36512002-04-28 David S. Miller <davem@redhat.com>
3652
3653 * configure.in, configure: Fix SPARC test in previous change.
3654
36552002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
3656
3657 * Makefile.am: Add Linux for S/390 support.
3658 * Makefile.in: Regenerate.
3659 * configure.in: Add Linux for S/390 support.
3660 * configure: Regenerate.
3661 * include/ffi.h.in: Add Linux for S/390 support.
3662 * src/s390/ffi.c: New file from libffi CVS tree.
3663 * src/s390/sysv.S: New file from libffi CVS tree.
3664
36652002-04-28 Jakub Jelinek <jakub@redhat.com>
3666
3667 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
3668 %r_disp32().
3669 * src/sparc/v8.S: Use it.
3670 * src/sparc/v9.S: Likewise.
3671 * fficonfig.h.in: Rebuilt.
3672 * configure: Rebuilt.
3673
36742002-04-08 Hans Boehm <Hans_Boehm@hp.com>
3675
3676 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
3677 correctly.
3678 * src/ia64/unix.S: Add unwind information. Fix comments.
3679 Save sp in a way that's compatible with unwind info.
3680 (ffi_call_unix): Correctly restore sp in all cases.
3681 * src/ia64/ffi.c: Add, fix comments.
3682
36832002-04-08 Jakub Jelinek <jakub@redhat.com>
3684
3685 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
3686
36872002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3688
3689 * configure.in (alpha*-*-netbsd*): Add target.
3690 * configure: Regenerate.
3691
36922002-04-04 Jeff Sturm <jsturm@one-point.com>
3693
3694 * src/sparc/v8.S: Add unwind info.
3695 * src/sparc/v9.S: Likewise.
3696
36972002-03-30 Krister Walfridsson <cato@df.lth.se>
3698
3699 * configure.in: Enable i*86-*-netbsdelf*.
3700 * configure: Rebuilt.
3701
37022002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
3703
3704 PR other/2620
3705 * src/mips/n32.s: Delete
3706 * src/mips/o32.s: Delete
3707
37082002-03-21 Loren J. Rittle <ljrittle@acm.org>
3709
3710 * configure.in: Enable alpha*-*-freebsd*.
3711 * configure: Rebuilt.
3712
37132002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3714
3715 * Makefile.am: libfficonvenience -> libffi_convenience.
3716 * Makefile.in: Rebuilt.
3717
3718 * Makefile.am: Define ffitest_OBJECTS.
3719 * Makefile.in: Rebuilt.
3720
37212002-03-07 Andreas Tobler <toa@pop.agri.ch>
3722 David Edelsohn <edelsohn@gnu.org>
3723
3724 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
3725 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
3726 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
3727 * Makefile.in: Regenerate.
3728 * include/ffi.h.in: Add AIX and Darwin closure definitions.
3729 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
3730 (flush_icache, flush_range): New functions.
3731 (ffi_closure_helper_DARWIN): New function.
3732 * src/powerpc/aix_closure.S: New file.
3733 * src/powerpc/darwin_closure.S: New file.
3734
37352002-02-24 Jeff Sturm <jsturm@one-point.com>
3736
3737 * include/ffi.h.in: Add typedef for ffi_arg.
3738 * src/ffitest.c (main): Declare rint with ffi_arg.
3739
37402002-02-21 Andreas Tobler <toa@pop.agri.ch>
3741
3742 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
3743 number of GPRs for floating-point arguments.
3744
37452002-01-31 Anthony Green <green@redhat.com>
3746
3747 * configure: Rebuilt.
3748 * configure.in: Replace CHECK_SIZEOF and endian tests with
3749 cross-compiler friendly macros.
3750 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
3751 macros.
3752
37532002-01-18 David Edelsohn <edelsohn@gnu.org>
3754
3755 * src/powerpc/darwin.S (_ffi_call_AIX): New.
3756 * src/powerpc/aix.S (ffi_call_DARWIN): New.
3757
37582002-01-17 David Edelsohn <edelsohn@gnu.org>
3759
3760 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
3761 (TARGET_SRC_POWERPC_AIX): New.
3762 (POWERPC_AIX): New stanza.
3763 * Makefile.in: Regenerate.
3764 * configure.in: Add AIX case.
3765 * configure: Regenerate.
3766 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
3767 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
3768 size. Fix "long double" support.
3769 (ffi_call): Add FFI_AIX case.
3770 * src/powerpc/aix.S: New.
3771
37722001-10-09 John Hornkvist <john@toastedmarshmallow.com>
3773
3774 Implement Darwin PowerPC ABI.
3775 * configure.in: Handle powerpc-*-darwin*.
3776 * Makefile.am: Set source files for POWERPC_DARWIN.
3777 * configure: Rebuilt.
3778 * Makefile.in: Rebuilt.
3779 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
3780 POWERPC_DARWIN.
3781 * src/powerpc/darwin.S: New file.
3782 * src/powerpc/ffi_darwin.c: New file.
3783
37842001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3785
3786 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
3787
37882001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3789
3790 * src/x86/sysv.S: Avoid gas-only .balign directive.
3791 Use C style comments.
3792
37932001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3794
3795 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
3796 Fixes PR bootstrap/3563.
3797
37982001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3799
3800 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
3801
38022001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3803
3804 * configure.in: Recognize sparc*-sun-* host.
3805 * configure: Regenerate.
3806
38072001-06-06 Andrew Haley <aph@redhat.com>
3808
3809 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
3810
38112001-06-03 Andrew Haley <aph@redhat.com>
3812
3813 * src/alpha/osf.S: Add unwind info.
3814 * src/powerpc/sysv.S: Add unwind info.
3815 * src/powerpc/ppc_closure.S: Likewise.
3816
38172000-05-31 Jeff Sturm <jsturm@one-point.com>
3818
3819 * configure.in: Fix AC_ARG_ENABLE usage.
3820 * configure: Rebuilt.
3821
38222001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3823
3824 * configure.in: Remove warning about beta code.
3825 * configure: Rebuilt.
3826
38272001-04-25 Hans Boehm <Hans_Boehm@hp.com>
3828
3829 * src/ia64/unix.S: Restore stack pointer when returning from
3830 ffi_closure_UNIX.
3831 * src/ia64/ffi.c: Fix typo in comment.
3832
38332001-04-18 Jim Wilson <wilson@redhat.com>
3834
3835 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3836 to eliminate RAW DV.
3837
38382001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3839
3840 * Makefile.am: Make a libtool convenience library.
3841 * Makefile.in: Rebuilt.
3842
38432001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
3844
3845 * configure.in: Use different syntax for subdirectory creation.
3846 * configure: Rebuilt.
3847
38482001-03-27 Jon Beniston <jon@beniston.com>
3849
3850 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3851 * configure: Rebuilt.
3852 * Makefile.am: Added X86_WIN32 target support.
3853 * Makefile.in: Rebuilt.
3854
3855 * include/ffi.h.in: Added X86_WIN32 target support.
3856
3857 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3858 * src/types.c: Added X86_WIN32 target support.
3859
3860 * src/x86/win32.S: New file. Based on sysv.S, but with EH
3861 stuff removed and made to work with CygWin's gas.
3862
38632001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
3864
3865 * configure.in: Make target subdirectory in build dir.
3866 * Makefile.am: Override suffix based rules to specify correct output
3867 subdirectory.
3868 * Makefile.in: Rebuilt.
3869 * configure: Rebuilt.
3870
38712001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
3872
3873 * src/powerpc/ppc_closure.S: New file.
3874 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3875 involving long long and register pairs.
3876 (ffi_prep_closure): New function.
3877 (flush_icache): Likewise.
3878 (ffi_closure_helper_SYSV): Likewise.
3879 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3880 (FFI_TRAMPOLINE_SIZE): Likewise.
3881 (FFI_NATIVE_RAW_API): Likewise.
3882 * Makefile.in: Rebuilt.
3883 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3884 (TARGET_SRC_POWERPC): Likewise.
3885
38862001-03-19 Tom Tromey <tromey@redhat.com>
3887
3888 * Makefile.in: Rebuilt.
3889 * Makefile.am (ffitest_LDFLAGS): New macro.
3890
38912001-03-02 Nick Clifton <nickc@redhat.com>
3892
3893 * include/ffi.h.in: Remove RCS ident string.
3894 * include/ffi_mips.h: Remove RCS ident string.
3895 * src/debug.c: Remove RCS ident string.
3896 * src/ffitest.c: Remove RCS ident string.
3897 * src/prep_cif.c: Remove RCS ident string.
3898 * src/types.c: Remove RCS ident string.
3899 * src/alpha/ffi.c: Remove RCS ident string.
3900 * src/alpha/osf.S: Remove RCS ident string.
3901 * src/arm/ffi.c: Remove RCS ident string.
3902 * src/arm/sysv.S: Remove RCS ident string.
3903 * src/mips/ffi.c: Remove RCS ident string.
3904 * src/mips/n32.S: Remove RCS ident string.
3905 * src/mips/o32.S: Remove RCS ident string.
3906 * src/sparc/ffi.c: Remove RCS ident string.
3907 * src/sparc/v8.S: Remove RCS ident string.
3908 * src/sparc/v9.S: Remove RCS ident string.
3909 * src/x86/ffi.c: Remove RCS ident string.
3910 * src/x86/sysv.S: Remove RCS ident string.
3911
39122001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3913
3914 * include/ffi.h.in: Change sourceware.cygnus.com references to
3915 gcc.gnu.org.
3916
39172000-12-09 Richard Henderson <rth@redhat.com>
3918
3919 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
3920 (ffi_closure_osf_inner): Index rather than increment avalue
3921 and arg_types. Give ffi_closure_osf the raw return value type.
3922 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
3923 promotion.
3924
39252000-12-07 Richard Henderson <rth@redhat.com>
3926
3927 * src/raw_api.c (ffi_translate_args): Fix typo.
3928 (ffi_prep_closure): Likewise.
3929
3930 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
3931 FFI_TRAMPOLINE_SIZE.
3932 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
3933 cif->bytes for new ffi_call_osf implementation.
3934 (ffi_prep_args): Absorb into ...
3935 (ffi_call): ... here. Do all stack allocation here and
3936 avoid a callback function.
3937 (ffi_prep_closure, ffi_closure_osf_inner): New.
3938 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
3939 (ffi_closure_osf): New.
3940
39412000-09-10 Alexandre Oliva <aoliva@redhat.com>
3942
3943 * config.guess, config.sub, install-sh: Removed.
3944 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
3945 * Makefile.in: Rebuilt.
3946
3947 * acinclude.m4: Include libtool macros from the top level.
3948 * aclocal.m4, configure: Rebuilt.
3949
39502000-08-22 Alexandre Oliva <aoliva@redhat.com>
3951
3952 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
3953 * configure: Rebuilt.
3954
39552000-05-11 Scott Bambrough <scottb@netwinder.org>
3956
3957 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
3958 memory correctly. Use conditional instructions, not branches where
3959 possible.
3960
39612000-05-04 Tom Tromey <tromey@cygnus.com>
3962
3963 * configure: Rebuilt.
3964 * configure.in: Match `arm*-*-linux-*'.
3965 From Chris Dornan <cdornan@arm.com>.
3966
39672000-04-28 Jakub Jelinek <jakub@redhat.com>
3968
3969 * Makefile.am (SUBDIRS): Define.
3970 (AM_MAKEFLAGS): Likewise.
3971 (Multilib support.): Add section.
3972 * Makefile.in: Rebuilt.
3973 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
3974 New variables. Set for gcc using -print-multi-lib. Export them
3975 to libtool.
3976 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
3977 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
3978 for -shared links.
3979 (extra_compiler_flags_value, extra_compiler_flags): Check these
3980 for extra compiler options which need to be passed down in
3981 compiler_flags.
3982
39832000-04-16 Anthony Green <green@redhat.com>
3984
3985 * configure: Rebuilt.
3986 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
3987
39882000-04-14 Jakub Jelinek <jakub@redhat.com>
3989
3990 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3991 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
3992 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
3993 Replace all void * sizeofs with sizeof(int).
3994 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
3995 different than DOUBLE.
3996 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
3997 (ffi_prep_args_v9): New function.
3998 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
3999 (ffi_V9_return_struct): New function.
4000 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
4001 32bit code (not yet cross-arch calls).
4002 * src/sparc/v8.S: Add struct return delay nop.
4003 Handle long long.
4004 * src/sparc/v9.S: New file.
4005 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
4006 is used on sparc64 only for structures larger than 32 bytes.
4007 Pass by reference for structures is done for structure arguments
4008 larger than 16 bytes.
4009 * src/ffitest.c (main): Use 64bit rint on sparc64.
4010 Run long long tests on sparc.
4011 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
4012 sparc64.
4013 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
4014 on sparc64.
4015 * configure.in (sparc-*-linux*): New supported target.
4016 (sparc64-*-linux*): Likewise.
4017 * configure: Rebuilt.
4018 * Makefile.am: Add v9.S to SPARC files.
4019 * Makefile.in: Likewise.
4020 (LINK): Surround $(CCLD) into double quotes, so that multilib
4021 compiles work correctly.
4022
40232000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
4024
4025 * configure: Rebuilt.
4026 * configure.in: (i*86-*-solaris*): New libffi target. Patch
4027 proposed by Bryce McKinlay.
4028
40292000-03-20 Tom Tromey <tromey@cygnus.com>
4030
4031 * Makefile.in: Hand edit for java_raw_api.lo.
4032
40332000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
4034
4035 * config.guess, config.sub: Update from the gcc tree.
4036 Fix for PR libgcj/168.
4037
40382000-03-03 Tom Tromey <tromey@cygnus.com>
4039
4040 * Makefile.in: Fixed ia64 by hand.
4041
4042 * configure: Rebuilt.
4043 * configure.in (--enable-multilib): New option.
4044 (libffi_basedir): New subst.
4045 (AC_OUTPUT): Added multilib code.
4046
40472000-03-02 Tom Tromey <tromey@cygnus.com>
4048
4049 * Makefile.in: Rebuilt.
4050 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
4051 directory name.
4052
40532000-02-25 Hans Boehm <boehm@acm.org>
4054
4055 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
4056 files.
4057 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
4058 list.
4059 (ffi_prep_raw_closure): Use ffi_translate_args, not
4060 ffi_closure_translate.
4061 * src/java_raw_api.c: New file.
4062 * src/ffitest.c (closure_test_fn): New function.
4063 (main): Define `rint' as long long on IA64. Added new test when
4064 FFI_CLOSURES is defined.
4065 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
4066 (ffi_abi): Recognize IA64.
4067 (ffi_raw): Added `flt' field.
4068 Added "Java raw API" code.
4069 * configure.in: Recognize ia64.
4070 * Makefile.am (TARGET_SRC_IA64): New macro.
4071 (libffi_la_common_SOURCES): Added java_raw_api.c.
4072 (libffi_la_SOURCES): Define in IA64 case.
4073
40742000-01-04 Tom Tromey <tromey@cygnus.com>
4075
4076 * Makefile.in: Rebuilt with newer automake.
4077
40781999-12-31 Tom Tromey <tromey@cygnus.com>
4079
4080 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
4081
40821999-09-01 Tom Tromey <tromey@cygnus.com>
4083
4084 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
4085 undefs.
4086 * fficonfig.h.in: Rebuilt.
4087 * configure: Rebuilt.
4088 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
4089 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
4090 * acconfig.h: Don't #undef PACKAGE or VERSION.
4091
40921999-08-09 Anthony Green <green@cygnus.com>
4093
4094 * include/ffi.h.in: Try to work around messy header problem
4095 with PACKAGE and VERSION.
4096
4097 * configure: Rebuilt.
4098 * configure.in: Change version to 2.00-beta.
4099
4100 * fficonfig.h.in: Rebuilt.
4101 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
4102
4103 * src/x86/ffi.c (ffi_raw_call): Rename.
4104
41051999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
4106
4107 * src/x86/ffi.c (ffi_closure_SYSV): New function.
4108 (ffi_prep_incoming_args_SYSV): Ditto.
4109 (ffi_prep_closure): Ditto.
4110 (ffi_closure_raw_SYSV): Ditto.
4111 (ffi_prep_raw_closure): More ditto.
4112 (ffi_call_raw): Final ditto.
4113
4114 * include/ffi.h.in: Add definitions for closure and raw API.
4115
4116 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4117 FFI_TYPE_UINT64.
4118
4119 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
4120
4121 * src/raw_api.c: New file.
4122
4123 * include/ffi.h.in (ffi_raw): New type.
4124 (UINT_ARG, SINT_ARG): New defines.
4125 (ffi_closure, ffi_raw_closure): New types.
4126 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4127
4128 * configure.in: Add check for endianness and sizeof void*.
4129
4130 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
4131 instead of directly.
4132
4133 * configure: Rebuilt.
4134
4135Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
4136
4137 * configure.in: Add x86 and powerpc BeOS configurations.
4138 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
4139
41401999-05-09 Anthony Green <green@cygnus.com>
4141
4142 * configure.in: Add warning about this being beta code.
4143 Remove src/Makefile.am from the picture.
4144 * configure: Rebuilt.
4145
4146 * Makefile.am: Move logic from src/Makefile.am. Add changes
4147 to support libffi as a target library.
4148 * Makefile.in: Rebuilt.
4149
4150 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
4151 Upgraded to new autoconf, automake, libtool.
4152
4153 * README: Tweaks.
4154
4155 * LICENSE: Update copyright date.
4156
4157 * src/Makefile.am, src/Makefile.in: Removed.
4158
41591998-11-29 Anthony Green <green@cygnus.com>
4160
4161 * include/ChangeLog: Removed.
4162 * src/ChangeLog: Removed.
4163 * src/mips/ChangeLog: Removed.
4164 * src/sparc/ChangeLog: Remboved.
4165 * src/x86/ChangeLog: Removed.
4166
4167 * ChangeLog.v1: Created.