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