OSDN Git Service

805e5a15fa16f93dad592d5aaac9413b2045e98b
[pf3gnuchains/gcc-fork.git] / libffi / ChangeLog
1 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
2
3         * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
4         fp_done.
5         (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
6         changed from 8.
7
8 2004-06-06  Sean McNeil  <sean@mcneil.com>
9
10         * configure.ac: Add x86_64-*-freebsd* support.
11         * configure: Regenerate.
12
13 2004-04-26  Joe Buck <jbuck@welsh-buck.org>
14
15         Bug 15093
16         * configure.ac: Test for existence of mmap and sys/mman.h before
17         checking blacklist.  Fix suggested by Jim Wilson.
18         * configure: Regenerate.
19
20 2004-04-26  Matt Austern  <austern@apple.com>
21
22         * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
23         FDE location.
24         * src/powerpc/darwin_closure.S: Likewise.
25         
26 2004-04-24  Andreas Tobler  <a.tobler@schweiz.ch>
27
28         * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
29         error. Reported by Thomas Heller <theller@python.net>.
30         * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
31         * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
32
33 2004-03-20  Matthias Klose  <doko@debian.org>
34
35         * src/pa/linux.S: Fix typo.
36
37 2004-03-19  Matthias Klose  <doko@debian.org>
38
39         * Makefile.am: Update.
40         * Makefile.in: Regenerate.
41         * src/pa/ffi.h.in: Remove.
42         * src/pa/ffitarget.h: New file.
43
44 2004-02-10  Randolph Chung  <tausq@debian.org>
45
46         * Makefile.am: Add PA support.
47         * Makefile.in: Regenerate.
48         * include/Makefile.in: Regenerate.
49         * configure.ac: Add PA target.
50         * configure: Regenerate.
51         * src/pa/ffi.c: New file.
52         * src/pa/ffi.h.in: Add PA support.
53         * src/pa/linux.S: New file.
54         * prep_cif.c: Add PA support.
55
56 2004-03-16  Hosaka Yuji  <hos@tamanegi.org>
57
58         * src/types.c: Fix alignment size of X86_WIN32 case int64 and
59         double.
60         * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
61         with ecif->cif->flags.
62         (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
63         with cif->flags.
64         (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
65         (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
66         * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
67         sc_retstruct2b): Add for 1 or 2-bytes struct case.
68
69 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
70
71         * configure.in: Rename file to ...
72         * configure.ac: ... this.
73         * fficonfig.h.in: Regenerate.
74         * Makefile.in: Regenerate.
75         * include/Makefile.in: Regenerate.
76         * testsuite/Makefile.in: Regenerate.
77
78 2004-03-12  Matt Austern  <austern@apple.com>
79
80         * src/powerpc/darwin.S: Fix EH information so it corresponds to
81         changes in EH format resulting from addition of linkonce support.
82         * src/powerpc/darwin_closure.S: Likewise.
83
84 2004-03-11  Andreas Tobler  <a.tobler@schweiz.ch>
85             Paolo Bonzini  <bonzini@gnu.org>
86
87         * Makefile.am (AUTOMAKE_OPTIONS): Set them.
88         Remove VPATH. Remove rules for object files. Remove multilib support.
89         (AM_CCASFLAGS): Add.
90         * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
91         (AC_PREREQ): Bump version to 2.59.
92         (AC_INIT): Fill with version info and bug address.
93         (ORIGINAL_LD_FOR_MULTILIBS): Remove.
94         (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
95         De-precious CC so that the right flags are passed down to multilibs.
96         (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
97         (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
98         (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
99         * configure: Rebuilt.
100         * aclocal.m4: Likewise.
101         * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
102         * fficonfig.h.in: Likewise.
103
104 2004-03-11  Andreas Schwab  <schwab@suse.de>
105
106         * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
107         arguments from fp registers only for the first 8 parameter slots.
108         Don't convert a float parameter when passed in memory.
109
110 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
111
112         * configure: Regenerate for config/accross.m4 correction.
113
114 2004-02-25  Matt Kraai  <kraai@alumni.cmu.edu>
115
116         * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
117         ecif->cif->bytes to bytes.
118         (ffi_prep_cif_machdep): Add braces around nested if statement.
119
120 2004-02-09  Alan Modra  <amodra@bigpond.net.au>
121
122         * src/types.c (pointer): POWERPC64 has 8 byte pointers.
123
124         * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
125         (ffi_closure_helper_LINUX64): Fix typo.
126         * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
127         for powerpc64-*-*.
128         * testsuite/libffi.call/float.c: Likewise.
129         * testsuite/libffi.call/float2.c: Likewise.
130
131 2004-02-08  Alan Modra  <amodra@bigpond.net.au>
132
133         * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
134         long double function return and long double arg handling.
135         (ffi_closure_helper_LINUX64): Formatting.  Delete unused "ng" var.
136         Use "end_pfr" instead of "nf".  Correct long double handling.
137         Localise "temp".
138         * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
139         return value.
140         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
141         space for long double return value.  Adjust stack frame and offsets.
142         Load f2 long double return.
143
144 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
145
146         * src/types.c: Use 16 byte long double for POWERPC64.
147
148 2004-01-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
149
150         * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
151         when the structure return address is passed in %o0.
152         (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
153         (ffi_v9_layout_struct): Align the field following a nested structure
154         on a word boundary.  Use memmove instead of memcpy.
155         (ffi_call): Update call to ffi_V9_return_struct.
156         (ffi_prep_closure): Define 'ctx' only for V8.
157         (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
158         and ffi_closure_sparc_inner_v9.
159         (ffi_closure_sparc_inner_v8): Return long doubles by reference.
160         Always skip the structure return address.  For structures and long
161         doubles, copy the argument directly.
162         (ffi_closure_sparc_inner_v9): Skip the structure return address only
163         if required.  Shift the maximum floating-point slot accordingly.  For
164         big structures, copy the argument directly; otherwise, left-justify the
165         argument and call ffi_v9_layout_struct to lay out the structure on
166         the stack.
167         * src/sparc/v8.S: Undef STACKFRAME before defining it.
168         (ffi_closure_v8): Pass the structure return address.  Update call to
169         ffi_closure_sparc_inner_v8.  Short-circuit FFI_TYPE_INT handling.
170         Skip the 'unimp' insn when returning long doubles and structures.
171         * src/sparc/v9.S: Undef STACKFRAME before defining it.
172         (ffi_closure_v9): Increase the frame size by 2 words.  Short-circuit
173         FFI_TYPE_INT handling.  Load structures both in integers and
174         floating-point registers on return.
175         * README: Update status of the SPARC port.
176
177 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
178
179         * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
180         as of type ffi_arg.
181         * testsuite/libffi.call/struct3.c (main): Fix CHECK.
182
183 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
184
185         * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
186         value as of type ffi_arg, not unsigned int.
187
188 2004-01-21  Michael Ritzert  <ritzert@t-online.de>
189
190         * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
191         of the LHS.
192
193 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
194
195         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
196         Solaris.
197
198 2004-01-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
199
200         * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
201         to void *.
202
203 2003-12-10  Richard Henderson  <rth@redhat.com>
204
205         * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
206         size_t instead of int.
207
208 2003-12-04  Hosaka Yuji  <hos@tamanegi.org>
209
210         * testsuite/libffi.call/many_win32.c: Include <float.h>.
211         * testsuite/libffi.call/many_win32.c (main): Replace variable
212         int i with unsigned long ul.
213
214         * testsuite/libffi.call/cls_align_uint64.c: New test case.
215         * testsuite/libffi.call/cls_align_sint64.c: Likewise.
216         * testsuite/libffi.call/cls_align_uint32.c: Likewise.
217         * testsuite/libffi.call/cls_align_sint32.c: Likewise.
218         * testsuite/libffi.call/cls_align_uint16.c: Likewise.
219         * testsuite/libffi.call/cls_align_sint16.c: Likewise.
220         * testsuite/libffi.call/cls_align_float.c: Likewise.
221         * testsuite/libffi.call/cls_align_double.c: Likewise.
222         * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
223         * testsuite/libffi.call/cls_align_pointer.c: Likewise.
224
225 2003-12-02  Hosaka Yuji  <hos@tamanegi.org>
226
227         PR other/13221
228         * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
229         Align arguments to 32 bits.
230
231 2003-12-01  Andreas Tobler  <a.tobler@schweiz.ch>
232
233         PR other/13221
234         * testsuite/libffi.call/cls_multi_sshort.c: New test case.
235         * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
236         * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
237         * testsuite/libffi.call/cls_multi_schar.c: Likewise.
238         * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
239         * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
240
241         * testsuite/libffi.special/unwindtest.cc: Cosmetics.
242
243 2003-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
244
245         * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
246         * testsuite/libffi.special/ffitestcxx.h: Likewise.
247
248 2003-11-22  Andreas Tobler  <a.tobler@schweiz.ch>
249
250         * Makefile.in: Rebuilt.
251         * configure: Likewise.
252         * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
253         the right type.
254
255 2003-11-21  Andreas Jaeger  <aj@suse.de>
256             Andreas Tobler  <a.tobler@schweiz.ch>
257
258         * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
259         * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
260         * Makefile.in: Rebuilt.
261         * aclocal.m4: Likewise.
262         * configure: Likewise.
263         * fficonfig.h.in: Likewise.
264         * testsuite/lib/libffi-dg.exp: Add include dir.
265         * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
266         * testsuite/libffi.special/ffitestcxx.h: Likewise.
267         * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
268         for ffi_closure if available.
269         * testsuite/libffi.call/closure_fn1.c: Likewise.
270         * testsuite/libffi.call/closure_fn2.c: Likewise.
271         * testsuite/libffi.call/closure_fn3.c: Likewise.
272         * testsuite/libffi.call/closure_fn4.c: Likewise.
273         * testsuite/libffi.call/closure_fn5.c: Likewise.
274         * testsuite/libffi.call/cls_12byte.c: Likewise.
275         * testsuite/libffi.call/cls_16byte.c: Likewise.
276         * testsuite/libffi.call/cls_18byte.c: Likewise.
277         * testsuite/libffi.call/cls_19byte.c: Likewise.
278         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
279         * testsuite/libffi.call/cls_20byte.c: Likewise.
280         * testsuite/libffi.call/cls_20byte1.c: Likewise.
281         * testsuite/libffi.call/cls_24byte.c: Likewise.
282         * testsuite/libffi.call/cls_2byte.c: Likewise.
283         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
284         * testsuite/libffi.call/cls_3byte1.c: Likewise.
285         * testsuite/libffi.call/cls_3byte2.c: Likewise.
286         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
287         * testsuite/libffi.call/cls_4byte.c: Likewise.
288         * testsuite/libffi.call/cls_5byte.c: Likewise.
289         * testsuite/libffi.call/cls_64byte.c: Likewise.
290         * testsuite/libffi.call/cls_6byte.c: Likewise.
291         * testsuite/libffi.call/cls_7byte.c: Likewise.
292         * testsuite/libffi.call/cls_8byte.c: Likewise.
293         * testsuite/libffi.call/cls_9byte1.c: Likewise.
294         * testsuite/libffi.call/cls_9byte2.c: Likewise.
295         * testsuite/libffi.call/cls_double.c: Likewise.
296         * testsuite/libffi.call/cls_float.c: Likewise.
297         * testsuite/libffi.call/cls_schar.c: Likewise.
298         * testsuite/libffi.call/cls_sint.c: Likewise.
299         * testsuite/libffi.call/cls_sshort.c: Likewise.
300         * testsuite/libffi.call/cls_uchar.c: Likewise.
301         * testsuite/libffi.call/cls_uint.c: Likewise.
302         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
303         * testsuite/libffi.call/cls_ushort.c: Likewise.
304         * testsuite/libffi.call/nested_struct.c: Likewise.
305         * testsuite/libffi.call/nested_struct1.c: Likewise.
306         * testsuite/libffi.call/nested_struct2.c: Likewise.
307         * testsuite/libffi.call/nested_struct3.c: Likewise.
308         * testsuite/libffi.call/problem1.c: Likewise.
309         * testsuite/libffi.special/unwindtest.cc: Likewise.
310
311 2003-11-20  Andreas Tobler  <a.tobler@schweiz.ch>
312
313         * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
314
315 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
316
317         * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
318         Add -lgcc_s to additional flags.
319
320 2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>
321
322         * configure.in, include/Makefile.am: PR libgcj/11147, install
323         the ffitarget.h header file in a gcc versioned and target
324         dependent place.
325         * configure: Regenerated.
326         * Makefile.in, include/Makefile.in: Likewise.
327         * testsuite/Makefile.in: Likewise.
328
329 2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>
330
331         * testsuite/libffi.call/closure_fn0.c: Print result and check
332         with dg-output to make debugging easier.
333         * testsuite/libffi.call/closure_fn1.c: Likewise.
334         * testsuite/libffi.call/closure_fn2.c: Likewise.
335         * testsuite/libffi.call/closure_fn3.c: Likewise.
336         * testsuite/libffi.call/closure_fn4.c: Likewise.
337         * testsuite/libffi.call/closure_fn5.c: Likewise.
338         * testsuite/libffi.call/cls_12byte.c: Likewise.
339         * testsuite/libffi.call/cls_16byte.c: Likewise.
340         * testsuite/libffi.call/cls_18byte.c: Likewise.
341         * testsuite/libffi.call/cls_19byte.c: Likewise.
342         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
343         * testsuite/libffi.call/cls_20byte.c: Likewise.
344         * testsuite/libffi.call/cls_20byte1.c: Likewise.
345         * testsuite/libffi.call/cls_24byte.c: Likewise.
346         * testsuite/libffi.call/cls_2byte.c: Likewise.
347         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
348         * testsuite/libffi.call/cls_3byte1.c: Likewise.
349         * testsuite/libffi.call/cls_3byte2.c: Likewise.
350         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
351         * testsuite/libffi.call/cls_4byte.c: Likewise.
352         * testsuite/libffi.call/cls_5byte.c: Likewise.
353         * testsuite/libffi.call/cls_64byte.c: Likewise.
354         * testsuite/libffi.call/cls_6byte.c: Likewise.
355         * testsuite/libffi.call/cls_7byte.c: Likewise.
356         * testsuite/libffi.call/cls_8byte.c: Likewise.
357         * testsuite/libffi.call/cls_9byte1.c: Likewise.
358         * testsuite/libffi.call/cls_9byte2.c: Likewise.
359         * testsuite/libffi.call/cls_double.c: Likewise.
360         * testsuite/libffi.call/cls_float.c: Likewise.
361         * testsuite/libffi.call/cls_schar.c: Likewise.
362         * testsuite/libffi.call/cls_sint.c: Likewise.
363         * testsuite/libffi.call/cls_sshort.c: Likewise.
364         * testsuite/libffi.call/cls_uchar.c: Likewise.
365         * testsuite/libffi.call/cls_uint.c: Likewise.
366         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
367         * testsuite/libffi.call/cls_ushort.c: Likewise.
368         * testsuite/libffi.call/problem1.c: Likewise.
369
370         * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
371         static.
372
373 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
374
375         * testsuite/libffi.call/cls_9byte2.c: New test case.
376         * testsuite/libffi.call/cls_9byte1.c: Likewise.
377         * testsuite/libffi.call/cls_64byte.c: Likewise.
378         * testsuite/libffi.call/cls_20byte1.c: Likewise.
379         * testsuite/libffi.call/cls_19byte.c: Likewise.
380         * testsuite/libffi.call/cls_18byte.c: Likewise.
381         * testsuite/libffi.call/closure_fn4.c: Likewise.
382         * testsuite/libffi.call/closure_fn5.c: Likewise.
383         * testsuite/libffi.call/cls_schar.c: Likewise.
384         * testsuite/libffi.call/cls_sint.c: Likewise.
385         * testsuite/libffi.call/cls_sshort.c: Likewise.
386         * testsuite/libffi.call/nested_struct2.c: Likewise.
387         * testsuite/libffi.call/nested_struct3.c: Likewise.
388
389 2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>
390
391         * testsuite/libffi.call/cls_double.c: Do a check on the result.
392         * testsuite/libffi.call/cls_uchar.c: Likewise.
393         * testsuite/libffi.call/cls_uint.c: Likewise.
394         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
395         * testsuite/libffi.call/cls_ushort.c: Likewise.
396         * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
397
398 2003-11-06  Andreas Tobler  <a.tobler@schweiz.ch>
399
400         * src/prep_cif.c (ffi_prep_cif): Move the validity check after
401         the initialization.
402
403 2003-10-23  Andreas Tobler  <a.tobler@schweiz.ch>
404
405         * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
406         FFI_ASSERT(FALSE) with FFI_ASSERT(0).
407
408 2003-10-22  David Daney  <ddaney@avtrex.com>
409
410         * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
411         __attribute__((__mode__(__SI__))) and friends.
412
413 2003-10-22  Andreas Schwab  <schwab@suse.de>
414
415         * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
416
417 2003-10-21  Andreas Tobler  <a.tobler@schweiz.ch>
418
419         * configure.in: AC_LINK_FILES(ffitarget.h).
420         * configure: Regenerate.
421         * Makefile.in: Likewise.
422         * include/Makefile.in: Likewise.
423         * testsuite/Makefile.in: Likewise.
424         * fficonfig.h.in: Likewise.
425
426 2003-10-21  Paolo Bonzini  <bonzini@gnu.org>
427             Richard Henderson  <rth@redhat.com>
428
429         Avoid that ffi.h includes fficonfig.h.
430
431         * Makefile.am (EXTRA_DIST): Include ffitarget.h files
432         (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
433         (TARGET_SRC_MIPS_SGI): Removed.
434         (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
435         (MIPS_SGI): Removed.
436         (CLEANFILES): Removed.
437         (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
438         targets.
439         * acconfig.h: Removed.
440         * configure.in: Compute sizeofs only for double and long double.
441         Use them to define and subst HAVE_LONG_DOUBLE.  Include comments
442         into AC_DEFINE instead of using acconfig.h.  Create
443         include/ffitarget.h instead of include/fficonfig.h.  Rename
444         MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
445         AC_DEFINE EH_FRAME_FLAGS.
446         * include/Makefile.am (DISTCLEANFILES): New automake macro.
447         (hack_DATA): Add ffitarget.h.
448         * include/ffi.h.in: Remove all system specific definitions.
449         Declare raw API even if it is not installed, why bother?
450         Use limits.h instead of SIZEOF_* to define ffi_type_*.  Do
451         not define EH_FRAME_FLAGS, it is in fficonfig.h now.  Include
452         ffitarget.h instead of fficonfig.h.  Remove ALIGN macro.
453         (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
454         * include/ffi_common.h (bool): Do not define.
455         (ffi_assert): Accept failed assertion.
456         (ffi_type_test): Return void and accept file/line.
457         (FFI_ASSERT): Pass stringized failed assertion.
458         (FFI_ASSERT_AT): New macro.
459         (FFI_ASSERT_VALID_TYPE): New macro.
460         (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
461         UINT64, SINT64): Define here with gcc's __attribute__ macro
462         instead of in ffi.h
463         (FLOAT32, ALIGN): Define here instead of in ffi.h
464         * include/ffi-mips.h: Removed.  Its content moved to
465         src/mips/ffitarget.h after separating assembly and C sections.
466         * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
467         src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
468         src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
469         src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
470         SIZEOF_ARG -> FFI_SIZEOF_ARG.
471         * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
472         * src/debug.c (ffi_assert): Accept stringized failed assertion.
473         (ffi_type_test): Rewritten.
474         * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
475         FFI_ASSERT_VALID_TYPE.
476         * src/alpha/ffitarget.h, src/arm/ffitarget.h,
477         src/ia64/ffitarget.h, src/m68k/ffitarget.h,
478         src/mips/ffitarget.h, src/powerpc/ffitarget.h,
479         src/s390/ffitarget.h, src/sh/ffitarget.h,
480         src/sh64/ffitarget.h, src/sparc/ffitarget.h,
481         src/x86/ffitarget.h: New files.
482         * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
483         src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
484         src/powerpc/aix.S, src/powerpc/darwin.S,
485         src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
486         src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
487         src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
488         src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
489         src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
490         include fficonfig.h
491
492 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
493
494         * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
495         _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
496
497 2003-10-19  Andreas Tobler  <a.tobler@schweiz.ch>
498
499         * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
500         Used when FFI_DEBUG = 1.
501
502 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
503
504         * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
505         and align.
506
507 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
508
509         * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
510         FFI_MIPS_O32 for O32 ABI.
511
512 2003-10-01  Andreas Tobler  <a.tobler@schweiz.ch>
513
514         * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
515         SPARC64. Cleanup whitespaces.
516
517 2003-09-19  Andreas Tobler  <a.tobler@schweiz.ch>
518
519         * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
520         strongarm, xscale. Cleanup whitespaces.
521         * testsuite/libffi.call/closure_fn1.c: Likewise.
522         * testsuite/libffi.call/closure_fn2.c: Likewise.
523         * testsuite/libffi.call/closure_fn3.c: Likewise.
524         * testsuite/libffi.call/cls_12byte.c: Likewise.
525         * testsuite/libffi.call/cls_16byte.c: Likewise.
526         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
527         * testsuite/libffi.call/cls_20byte.c: Likewise.
528         * testsuite/libffi.call/cls_24byte.c: Likewise.
529         * testsuite/libffi.call/cls_2byte.c: Likewise.
530         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
531         * testsuite/libffi.call/cls_3byte1.c: Likewise.
532         * testsuite/libffi.call/cls_3byte2.c: Likewise.
533         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
534         * testsuite/libffi.call/cls_4byte.c: Likewise.
535         * testsuite/libffi.call/cls_5byte.c: Likewise.
536         * testsuite/libffi.call/cls_6byte.c: Likewise.
537         * testsuite/libffi.call/cls_7byte.c: Likewise.
538         * testsuite/libffi.call/cls_8byte.c: Likewise.
539         * testsuite/libffi.call/cls_double.c: Likewise.
540         * testsuite/libffi.call/cls_float.c: Likewise.
541         * testsuite/libffi.call/cls_uchar.c: Likewise.
542         * testsuite/libffi.call/cls_uint.c: Likewise.
543         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
544         * testsuite/libffi.call/cls_ushort.c: Likewise.
545         * testsuite/libffi.call/nested_struct.c: Likewise.
546         * testsuite/libffi.call/nested_struct1.c: Likewise.
547         * testsuite/libffi.call/problem1.c: Likewise.
548         * testsuite/libffi.special/unwindtest.cc: Likewise.
549         * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
550
551 2003-09-18  David Edelsohn  <edelsohn@gnu.org>
552
553         * src/powerpc/aix.S: Cleanup whitespaces.
554         * src/powerpc/aix_closure.S: Likewise.
555
556 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
557
558         * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
559         * src/powerpc/darwin_closure.S: Likewise.
560         * src/powerpc/ffi_darwin.c: Likewise.
561
562 2003-09-18  Andreas Tobler  <a.tobler@schweiz.ch>
563             David Edelsohn  <edelsohn@gnu.org>
564
565         * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
566         * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
567         parameter stack.
568         * src/powerpc/darwin_closure.S: Likewise.
569         * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
570         according to the Darwin/AIX ABI.
571         (ffi_prep_cif_machdep): Likewise.
572         (ffi_closure_helper_DARWIN): Likewise.
573         Remove the outgoing parameter stack logic. Simplify the evaluation
574         of the different CASE types.
575         (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
576         statement in the trampoline code.
577
578 2003-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
579
580         * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
581         for the register size.
582         (ffi_closure_helper_SYSV): Handle the structure return value
583         address correctly.
584         (ffi_closure_helper_SYSV): Return the appropriate type when
585         the registers are used for the structure return value.
586         * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
587         the 64-bit return value.  Update copyright years.
588
589 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
590
591         * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
592         srcdir for ffi_mips.h.
593
594 2003-09-12  Alan Modra  <amodra@bigpond.net.au>
595
596         * src/prep_cif.c (initialize_aggregate): Include tail padding in
597         structure size.
598         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
599         placement of float result.
600         * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
601         cast of "resp" for big-endian 64 bit machines.
602
603 2003-09-11  Alan Modra  <amodra@bigpond.net.au>
604
605         * src/types.c (double, longdouble): Merge identical SH and ARM
606         typedefs, and add POWERPC64.
607         * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
608         struct split over gpr and rest.
609         (ffi_prep_cif_machdep): Correct intarg_count for structures.
610         * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
611
612 2003-09-09  Andreas Tobler  <a.tobler@schweiz.ch>
613
614         * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
615         passing correctly.
616
617 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
618
619         * configure: Regenerate.
620
621 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
622
623         * Makefile.am: Remove build rules for ffitest.
624         * Makefile.in: Rebuilt.
625
626 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
627
628         * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
629         about implicit declaration of abort().
630
631 2003-09-04  Andreas Tobler  <a.tobler@schweiz.ch>
632
633         * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
634         * Makefile.in: Rebuilt.
635         * configure.in: Add dejagnu test framework.
636         * configure: Rebuilt.
637
638         * testsuite/Makefile.am: New file.
639         * testsuite/Makefile.in: Built
640         * testsuite/lib/libffi-dg.exp: New file.
641         * testsuite/config/default.exp: Likewise.
642         * testsuite/libffi.call/call.exp: Likewise.
643         * testsuite/libffi.call/ffitest.h: Likewise.
644         * testsuite/libffi.call/closure_fn0.c: Likewise.
645         * testsuite/libffi.call/closure_fn1.c: Likewise.
646         * testsuite/libffi.call/closure_fn2.c: Likewise.
647         * testsuite/libffi.call/closure_fn3.c: Likewise.
648         * testsuite/libffi.call/cls_1_1byte.c: Likewise.
649         * testsuite/libffi.call/cls_3_1byte.c: Likewise.
650         * testsuite/libffi.call/cls_4_1byte.c: Likewise.
651         * testsuite/libffi.call/cls_2byte.c: Likewise.
652         * testsuite/libffi.call/cls_3byte1.c: Likewise.
653         * testsuite/libffi.call/cls_3byte2.c: Likewise.
654         * testsuite/libffi.call/cls_4byte.c: Likewise.
655         * testsuite/libffi.call/cls_5byte.c: Likewise.
656         * testsuite/libffi.call/cls_6byte.c: Likewise.
657         * testsuite/libffi.call/cls_7byte.c: Likewise.
658         * testsuite/libffi.call/cls_8byte.c: Likewise.
659         * testsuite/libffi.call/cls_12byte.c: Likewise.
660         * testsuite/libffi.call/cls_16byte.c: Likewise.
661         * testsuite/libffi.call/cls_20byte.c: Likewise.
662         * testsuite/libffi.call/cls_24byte.c: Likewise.
663         * testsuite/libffi.call/cls_double.c: Likewise.
664         * testsuite/libffi.call/cls_float.c: Likewise.
665         * testsuite/libffi.call/cls_uchar.c: Likewise.
666         * testsuite/libffi.call/cls_uint.c: Likewise.
667         * testsuite/libffi.call/cls_ulonglong.c: Likewise.
668         * testsuite/libffi.call/cls_ushort.c: Likewise.
669         * testsuite/libffi.call/float.c: Likewise.
670         * testsuite/libffi.call/float1.c: Likewise.
671         * testsuite/libffi.call/float2.c: Likewise.
672         * testsuite/libffi.call/many.c: Likewise.
673         * testsuite/libffi.call/many_win32.c: Likewise.
674         * testsuite/libffi.call/nested_struct.c: Likewise.
675         * testsuite/libffi.call/nested_struct1.c: Likewise.
676         * testsuite/libffi.call/pyobjc-tc.c: Likewise.
677         * testsuite/libffi.call/problem1.c: Likewise.
678         * testsuite/libffi.call/promotion.c: Likewise.
679         * testsuite/libffi.call/return_ll.c: Likewise.
680         * testsuite/libffi.call/return_sc.c: Likewise.
681         * testsuite/libffi.call/return_uc.c: Likewise.
682         * testsuite/libffi.call/strlen.c: Likewise.
683         * testsuite/libffi.call/strlen_win32.c: Likewise.
684         * testsuite/libffi.call/struct1.c: Likewise.
685         * testsuite/libffi.call/struct2.c: Likewise.
686         * testsuite/libffi.call/struct3.c: Likewise.
687         * testsuite/libffi.call/struct4.c: Likewise.
688         * testsuite/libffi.call/struct5.c: Likewise.
689         * testsuite/libffi.call/struct6.c: Likewise.
690         * testsuite/libffi.call/struct7.c: Likewise.
691         * testsuite/libffi.call/struct8.c: Likewise.
692         * testsuite/libffi.call/struct9.c: Likewise.
693         * testsuite/libffi.special/special.exp: New file.
694         * testsuite/libffi.special/ffitestcxx.h: Likewise.
695         * testsuite/libffi.special/unwindtest.cc: Likewise.
696
697
698 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
699
700         * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case.  Update
701         copyright years.
702
703 2003-08-02  Alan Modra  <amodra@bigpond.net.au>
704
705         * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
706         structure passing.
707         (ffi_closure_helper_LINUX64): Likewise.
708         * src/powerpc/linux64.S: Remove code writing to parm save area.
709         * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
710         address in lr from ffi_closure_helper_LINUX64 call to calculate
711         table address.  Optimize function tail.
712
713 2003-07-28  Andreas Tobler  <a.tobler@schweiz.ch>
714
715         * src/sparc/ffi.c: Handle all floating point registers.
716         * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
717
718 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
719
720         * README: Note that libffi is not part of GCC.  Update the project
721         URL and status.
722
723 2003-06-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
724
725         * src/powerpc/ppc_closure.S: Include ffi.h.
726
727 2003-06-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
728
729         * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
730         Use C style comments.
731
732 2003-06-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
733
734         * Makefile.am: Add SHmedia support.  Fix a typo of SH support.
735         * Makefile.in: Regenerate.
736         * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
737         * configure: Regenerate.
738         * include/ffi.h.in: Add SHmedia support.
739         * src/sh64/ffi.c: New file.
740         * src/sh64/sysv.S: New file.
741
742 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
743
744         * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
745         should be read-only.
746         * configure: Rebuilt.
747         * fficonfig.h.in: Rebuilt.
748         * include/ffi.h.in (EH_FRAME_FLAGS): Define.
749         * src/alpha/osf.S: Use EH_FRAME_FLAGS.
750         * src/powerpc/linux64.S: Likewise.
751         * src/powerpc/linux64_closure.S: Likewise.  Include ffi.h.
752         * src/powerpc/sysv.S: Use EH_FRAME_FLAGS.  Use pcrel encoding
753         if -fpic/-fPIC/-mrelocatable.
754         * src/powerpc/powerpc_closure.S: Likewise.
755         * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
756         #write in .eh_frame flags.
757         * src/sparc/v9.S: Likewise.
758         * src/x86/unix64.S: Use EH_FRAME_FLAGS.
759         * src/x86/sysv.S: Likewise.  Use pcrel encoding if -fpic/-fPIC.
760         * src/s390/sysv.S: Use EH_FRAME_FLAGS.  Include ffi.h.
761
762 2003-05-07  Jeff Sturm  <jsturm@one-point.com>
763
764         Fixes PR bootstrap/10656
765         * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
766         support for .register pseudo-op.
767         * src/sparc/v8.S: Use it.
768         * fficonfig.h.in: Rebuilt.
769         * configure: Rebuilt.
770
771 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
772
773         * include/ffi.h.in (POWERPC64): Define if 64-bit.
774         (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
775         Make it the default on POWERPC64.
776         (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
777         * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
778         * configure: Rebuilt.
779         * src/powerpc/ffi.c (hidden): Define.
780         (ffi_prep_args_SYSV): Renamed from
781         ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
782         (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
783         ASM_NEEDS_REGISTERS64): New.
784         (ffi_prep_args64): New function.
785         (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
786         (ffi_call): Likewise.
787         (ffi_prep_closure): Likewise.
788         (flush_icache): Surround by #ifndef POWERPC64.
789         (ffi_dblfl): New union type.
790         (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
791         (ffi_closure_helper_LINUX64): New function.
792         * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
793         __powerpc64__.
794         * src/powerpc/sysv.S: Likewise.
795         (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
796         * src/powerpc/linux64.S: New file.
797         * src/powerpc/linux64_closure.S: New file.
798         * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
799         src/powerpc/linux64_closure.S.
800         (TARGET_SRC_POWERPC): Likewise.
801
802         * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
803         closure_test_fn3): Fix result printing on big-endian 64-bit
804         machines.
805         (main): Print tst2_arg instead of uninitialized tst2_result.
806
807         * src/ffitest.c (main): Hide what closure pointer really points to
808         from the compiler.
809
810 2003-04-16  Richard Earnshaw  <rearnsha@arm.com>
811
812         * configure.in (arm-*-netbsdelf*): Add configuration.
813         (configure): Regenerated.
814
815 2003-04-04  Loren J. Rittle  <ljrittle@acm.org>
816
817         * include/Makefile.in: Regenerate.
818
819 2003-03-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
820
821         * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
822         bit mode.
823         * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
824         Receive closure pointer through parameter, read args using
825         __builtin_dwarf_cfa.
826         (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
827
828 2003-03-12  Andreas Schwab  <schwab@suse.de>
829
830         * configure.in: Avoid trailing /. in toolexeclibdir.
831         * configure: Rebuilt.
832
833 2003-03-03  Andreas Tobler <a.tobler@schweiz.ch>
834
835         * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
836
837 2003-02-06  Andreas Tobler <a.tobler@schweiz.ch>
838
839         * libffi/src/powerpc/darwin_closure.S:
840         Fix alignement bug, allocate 8 bytes for the result.
841         * libffi/src/powerpc/aix_closure.S:
842         Likewise.
843         * libffi/src/powerpc/ffi_darwin.c:
844         Update stackframe description for aix/darwin_closure.S.
845
846 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
847
848         * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
849         attribute.
850
851 2003-01-31  Christian Cornelssen  <ccorn@cs.tu-berlin.de>,
852             Andreas Schwab  <schwab@suse.de>
853
854         * configure.in: Adjust command to source config-ml.in to account
855         for changes to the libffi_basedir definition.
856         (libffi_basedir): Remove ${srcdir} from value and include trailing
857         slash if nonempty.
858
859         * configure: Regenerate.
860
861 2003-01-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
862
863         * src/powerpc/ppc_closure.S: Recode to fit shared libs.
864
865 2003-01-28  Andrew Haley  <aph@redhat.com>
866
867         * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
868         * src/x86/ffi64.c (ffi_prep_closure): New.
869         (ffi_closure_UNIX64_inner): New.
870         * src/x86/unix64.S (ffi_closure_UNIX64): New.
871
872 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
873
874         * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
875         Remove USE_LIBDIR conditional.
876         * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
877         * Makefile.in, configure: Rebuilt.
878
879 2003-01027  David Edelsohn  <edelsohn@gnu.org>
880
881         * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
882         * Makefile.in: Regenerate.
883
884 2003-01-22  Andrew Haley  <aph@redhat.com>
885
886         * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
887         unwind info.
888
889 2003-01-21  Andreas Tobler  <a.tobler@schweiz.ch>
890
891         * src/powerpc/darwin.S: Add unwind info.
892         * src/powerpc/darwin_closure.S: Likewise.
893
894 2003-01-14  Andrew Haley  <aph@redhat.com>
895
896         * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
897         (ffi_prep_cif_machdep): Likewise.
898         * src/x86/unix64.S: Add unwind info.
899
900 2003-01-14  Andreas Jaeger  <aj@suse.de>
901
902         * src/ffitest.c (main): Only use ffi_closures if those are
903         supported.
904
905 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
906
907         * libffi/src/ffitest.c
908          add closure testcases
909
910 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
911
912         * libffi/src/powerpc/ffi.c
913          fix alignment bug for float (4 byte aligned iso 8 byte)
914
915 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
916
917         * src/powerpc/ffi_darwin.c: Remove RCS version string.
918         * src/powerpc/darwin.S: Remove RCS version string.
919
920 2003-01-03  Jeff Sturm  <jsturm@one-point.com>
921
922         * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
923         * src/ffitest.c (main): Use static storage for closure.
924         * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
925         * src/sparc/v8.S (ffi_closure_v8): New.
926         * src/sparc/v9.S (ffi_closure_v9): New.
927
928 2002-11-10  Ranjit Mathew <rmathew@hotmail.com>
929
930         * include/ffi.h.in: Added FFI_STDCALL ffi_type
931           enumeration for X86_WIN32.
932         * src/x86/win32.S: Added ffi_call_STDCALL function
933           definition.
934         * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
935           switch cases for recognising FFI_STDCALL and
936           calling ffi_call_STDCALL if target is X86_WIN32.
937         * src/ffitest.c (my_stdcall_strlen/stdcall_many):
938           stdcall versions of the "my_strlen" and "many"
939           test functions (for X86_WIN32).
940           Added test cases to test stdcall invocation using
941           these functions.
942
943 2002-12-02  Kaz Kojima  <kkojima@gcc.gnu.org>
944
945         * src/sh/sysv.S: Add DWARF2 unwind info.
946
947 2002-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * src/s390/sysv.S (.eh_frame section): Make section read-only.
950
951 2002-11-26  Jim Wilson  <wilson@redhat.com>
952
953         * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
954
955 2002-11-23  H.J. Lu <hjl@gnu.org>
956
957         * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
958         Include ../config/accross.m4.
959         * aclocal.m4; Rebuild.
960         * configure: Likewise.
961
962 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
963
964         * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
965
966 2002-11-11  DJ Delorie  <dj@redhat.com>
967
968         * configure.in: Look for common files in the right place.
969
970 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
971
972         * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
973         raw data as _Jv_word values, not ffi_raw.
974         (ffi_java_ptrarray_to_raw): Likewise.
975         (ffi_java_rvalue_to_raw): New function.
976         (ffi_java_raw_call): Call it.
977         (ffi_java_raw_to_rvalue): New function.
978         (ffi_java_translate_args): Call it.
979         * src/ffitest.c (closure_test_fn): Interpret return value
980         as ffi_arg, not int.
981         * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
982         FFI_TYPE_POINTER case.
983         (ffi_closure_helper_SYSV): Likewise.  Also, assume return
984         values extended to word size.
985
986 2002-10-02  Andreas Jaeger  <aj@suse.de>
987
988         * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
989
990 2002-10-01  Bo Thorsen  <bo@smetana.suse.de>
991
992         * include/ffi.h.in: Fix i386 win32 compilation.
993
994 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
995
996         * configure.in: Add s390x-*-linux-* target.
997         * configure: Regenerate.
998         * include/ffi.h.in: Define S390X for s390x targets.
999         (FFI_CLOSURES): Define for s390/s390x.
1000         (FFI_TRAMPOLINE_SIZE): Likewise.
1001         (FFI_NATIVE_RAW_API): Likewise.
1002         * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
1003         * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
1004         * src/s390/ffi.c: Major rework of existing code.  Add support for
1005         s390x targets.  Add closure support.
1006         * src/s390/sysv.S: Likewise.
1007
1008 2002-09-29  Richard Earnshaw  <rearnsha@arm.com>
1009
1010         * src/arm/sysv.S: Fix typo.
1011
1012 2002-09-28  Richard Earnshaw  <rearnsha@arm.com>
1013
1014         * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
1015         has defined __USER_LABEL_PREFIX__, then use it in CNAME.
1016         (ffi_call_SYSV): Handle soft-float.
1017
1018 2002-09-27  Bo Thorsen  <bo@suse.de>
1019
1020         * include/ffi.h.in: Fix multilib x86-64 support.
1021
1022 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1023
1024         * Makefile.am (all-multi): Fix multilib parallel build.
1025
1026 2002-07-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1027
1028         * configure.in (sh[34]*-*-linux*): Add brackets.
1029         * configure: Regenerate.
1030
1031 2002-07-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1032
1033         * Makefile.am: Add SH support.
1034         * Makefile.in: Regenerate.
1035         * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
1036         * configure: Regenerate.
1037         * include/ffi.h.in: Add SH support.
1038         * src/sh/ffi.c: New file.
1039         * src/sh/sysv.S: New file.
1040         * src/types.c: Add SH support.
1041
1042 2002-07-16  Bo Thorsen  <bo@suse.de>
1043
1044         * src/x86/ffi64.c: New file that adds x86-64 support.
1045         * src/x86/unix64.S: New file that handles argument setup for
1046         x86-64.
1047         * src/x86/sysv.S: Don't use this on x86-64.
1048         * src/x86/ffi.c: Don't use this on x86-64.
1049         Remove unused vars.
1050         * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
1051         for x86-64.
1052         * src/ffitest.c (struct6): New test that tests a special case in
1053         the x86-64 ABI.
1054         (struct7): Likewise.
1055         (struct8): Likewise.
1056         (struct9): Likewise.
1057         (closure_test_fn): Silence warning about this when it's not used.
1058         (main): Add the new tests.
1059         (main): Fix a couple of wrong casts and silence some compiler warnings.
1060         * include/ffi.h.in: Add x86-64 ABI definition.
1061         * fficonfig.h.in: Regenerate.
1062         * Makefile.am: Add x86-64 support.
1063         * configure.in: Likewise.
1064         * Makefile.in: Regenerate.
1065         * configure: Likewise.
1066
1067 2002-06-24  Bo Thorsen  <bo@suse.de>
1068
1069         * src/types.c: Merge settings for similar architectures.
1070         Add x86-64 sizes and alignments.
1071
1072 2002-06-23  Bo Thorsen  <bo@suse.de>
1073
1074         * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
1075         * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
1076         * src/mips/ffi.c (ffi_prep_args): Likewise.
1077         * src/m68k/ffi.c (ffi_prep_args): Likewise.
1078
1079 2002-07-18  H.J. Lu  (hjl@gnu.org)
1080
1081         * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
1082         (libffi_la_SOURCES): Support MIPS_LINUX.
1083         (libffi_convenience_la_SOURCES): Likewise.
1084         * Makefile.in: Regenerated.
1085
1086         * configure.in (mips64*-*): Skip.
1087         (mips*-*-linux*): New.
1088         * configure: Regenerated.
1089
1090         * src/mips/ffi.c: Include <sgidefs.h>.
1091
1092 2002-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
1093
1094         * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.
1095
1096 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1097
1098         * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
1099
1100 2002-05-27  Bo Thorsen  <bo@suse.de>
1101
1102         * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
1103         fix formatting.
1104
1105 2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>
1106
1107         * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
1108         beginning of function (for older apple cc).
1109
1110 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
1111
1112         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1113         script entry, and set LD to it when configuring multilibs.
1114         * configure: Rebuilt.
1115
1116 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
1117
1118         * configure.in (sparc64-*-netbsd*): Add target.
1119         (sparc-*-netbsdelf*): Likewise.
1120         * configure: Regenerate.
1121
1122 2002-04-28  David S. Miller  <davem@redhat.com>
1123
1124         * configure.in, configure: Fix SPARC test in previous change.
1125
1126 2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>
1127
1128         * Makefile.am: Add Linux for S/390 support.
1129         * Makefile.in: Regenerate.
1130         * configure.in: Add Linux for S/390 support.
1131         * configure: Regenerate.
1132         * include/ffi.h.in: Add Linux for S/390 support.
1133         * src/s390/ffi.c: New file from libffi CVS tree.
1134         * src/s390/sysv.S: New file from libffi CVS tree.
1135
1136 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1137
1138         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
1139         %r_disp32().
1140         * src/sparc/v8.S: Use it.
1141         * src/sparc/v9.S: Likewise.
1142         * fficonfig.h.in: Rebuilt.
1143         * configure: Rebuilt.
1144
1145 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
1146
1147         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1148         correctly.
1149         * src/ia64/unix.S: Add unwind information. Fix comments.
1150         Save sp in a way that's compatible with unwind info.
1151         (ffi_call_unix): Correctly restore sp in all cases.
1152         * src/ia64/ffi.c: Add, fix comments.
1153
1154 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
1155
1156         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1157
1158 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1159
1160         * configure.in (alpha*-*-netbsd*): Add target.
1161         * configure: Regenerate.
1162
1163 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
1164
1165         * src/sparc/v8.S: Add unwind info.
1166         * src/sparc/v9.S: Likewise.
1167
1168 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
1169
1170         * configure.in: Enable i*86-*-netbsdelf*.
1171         * configure: Rebuilt.
1172
1173 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
1174
1175         PR other/2620
1176         * src/mips/n32.s: Delete
1177         * src/mips/o32.s: Delete
1178
1179 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
1180
1181         * configure.in: Enable alpha*-*-freebsd*.
1182         * configure: Rebuilt.
1183
1184 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1185
1186         * Makefile.am: libfficonvenience -> libffi_convenience.
1187         * Makefile.in: Rebuilt.
1188
1189         * Makefile.am: Define ffitest_OBJECTS.
1190         * Makefile.in: Rebuilt.
1191
1192 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
1193             David Edelsohn  <edelsohn@gnu.org>
1194
1195         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1196         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1197         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1198         * Makefile.in: Regenerate.
1199         * include/ffi.h.in: Add AIX and Darwin closure definitions.
1200         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1201         (flush_icache, flush_range): New functions.
1202         (ffi_closure_helper_DARWIN): New function.
1203         * src/powerpc/aix_closure.S: New file.
1204         * src/powerpc/darwin_closure.S: New file.
1205
1206 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
1207
1208         * include/ffi.h.in: Add typedef for ffi_arg.
1209         * src/ffitest.c (main): Declare rint with ffi_arg.
1210
1211 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
1212
1213         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1214         number of GPRs for floating-point arguments.
1215
1216 2002-01-31  Anthony Green  <green@redhat.com>
1217
1218         * configure: Rebuilt.
1219         * configure.in: Replace CHECK_SIZEOF and endian tests with
1220         cross-compiler friendly macros.
1221         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1222         macros.
1223
1224 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
1225
1226         * src/powerpc/darwin.S (_ffi_call_AIX): New.
1227         * src/powerpc/aix.S (ffi_call_DARWIN): New.
1228
1229 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
1230
1231         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1232         (TARGET_SRC_POWERPC_AIX): New.
1233         (POWERPC_AIX): New stanza.
1234         * Makefile.in: Regenerate.
1235         * configure.in: Add AIX case.
1236         * configure: Regenerate.
1237         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1238         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1239         size.  Fix "long double" support.
1240         (ffi_call): Add FFI_AIX case.
1241         * src/powerpc/aix.S: New.
1242
1243 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
1244
1245         Implement Darwin PowerPC ABI.
1246         * configure.in: Handle powerpc-*-darwin*.
1247         * Makefile.am: Set source files for POWERPC_DARWIN.
1248         * configure: Rebuilt.
1249         * Makefile.in: Rebuilt.
1250         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1251         POWERPC_DARWIN.
1252         * src/powerpc/darwin.S: New file.
1253         * src/powerpc/ffi_darwin.c: New file.
1254
1255 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1256
1257         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1258
1259 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1260
1261         * src/x86/sysv.S: Avoid gas-only .balign directive.
1262         Use C style comments.
1263
1264 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1265
1266         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1267         Fixes PR bootstrap/3563.
1268
1269 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1270
1271         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1272
1273 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1274
1275         * configure.in: Recognize sparc*-sun-* host.
1276         * configure: Regenerate.
1277
1278 2001-06-06  Andrew Haley  <aph@redhat.com>
1279
1280         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
1281
1282 2001-06-03  Andrew Haley  <aph@redhat.com>
1283
1284         * src/alpha/osf.S: Add unwind info.
1285         * src/powerpc/sysv.S: Add unwind info.
1286         * src/powerpc/ppc_closure.S: Likewise.
1287
1288 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
1289
1290         * configure.in: Fix AC_ARG_ENABLE usage.
1291         * configure: Rebuilt.
1292
1293 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1294
1295         * configure.in: Remove warning about beta code.
1296         * configure: Rebuilt.
1297
1298 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
1299
1300         * src/ia64/unix.S: Restore stack pointer when returning from
1301         ffi_closure_UNIX.
1302         * src/ia64/ffi.c: Fix typo in comment.
1303
1304 2001-04-18  Jim Wilson  <wilson@redhat.com>
1305
1306         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1307         to eliminate RAW DV.
1308
1309 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
1310
1311         * Makefile.am: Make a libtool convenience library.
1312         * Makefile.in: Rebuilt.
1313
1314 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
1315
1316         * configure.in: Use different syntax for subdirectory creation.
1317         * configure: Rebuilt.
1318
1319 2001-03-27  Jon Beniston  <jon@beniston.com>
1320
1321         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1322         * configure: Rebuilt.
1323         * Makefile.am: Added X86_WIN32 target support.
1324         * Makefile.in: Rebuilt.
1325
1326         * include/ffi.h.in: Added X86_WIN32 target support.
1327
1328         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1329         * src/types.c: Added X86_WIN32 target support.
1330
1331         * src/x86/win32.S: New file. Based on sysv.S, but with EH
1332         stuff removed and made to work with CygWin's gas.
1333
1334 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
1335
1336         * configure.in: Make target subdirectory in build dir.
1337         * Makefile.am: Override suffix based rules to specify correct output
1338         subdirectory.
1339         * Makefile.in: Rebuilt.
1340         * configure: Rebuilt.
1341
1342 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
1343
1344         * src/powerpc/ppc_closure.S: New file.
1345         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1346         involving long long and register pairs.
1347         (ffi_prep_closure): New function.
1348         (flush_icache): Likewise.
1349         (ffi_closure_helper_SYSV): Likewise.
1350         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1351         (FFI_TRAMPOLINE_SIZE): Likewise.
1352         (FFI_NATIVE_RAW_API): Likewise.
1353         * Makefile.in: Rebuilt.
1354         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1355         (TARGET_SRC_POWERPC): Likewise.
1356
1357 2001-03-19  Tom Tromey  <tromey@redhat.com>
1358
1359         * Makefile.in: Rebuilt.
1360         * Makefile.am (ffitest_LDFLAGS): New macro.
1361
1362 2001-03-02  Nick Clifton  <nickc@redhat.com>
1363
1364         * include/ffi.h.in: Remove RCS ident string.
1365         * include/ffi_mips.h: Remove RCS ident string.
1366         * src/debug.c: Remove RCS ident string.
1367         * src/ffitest.c: Remove RCS ident string.
1368         * src/prep_cif.c: Remove RCS ident string.
1369         * src/types.c: Remove RCS ident string.
1370         * src/alpha/ffi.c: Remove RCS ident string.
1371         * src/alpha/osf.S: Remove RCS ident string.
1372         * src/arm/ffi.c: Remove RCS ident string.
1373         * src/arm/sysv.S: Remove RCS ident string.
1374         * src/mips/ffi.c: Remove RCS ident string.
1375         * src/mips/n32.S: Remove RCS ident string.
1376         * src/mips/o32.S: Remove RCS ident string.
1377         * src/sparc/ffi.c: Remove RCS ident string.
1378         * src/sparc/v8.S: Remove RCS ident string.
1379         * src/sparc/v9.S: Remove RCS ident string.
1380         * src/x86/ffi.c: Remove RCS ident string.
1381         * src/x86/sysv.S: Remove RCS ident string.
1382
1383 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1384
1385         * include/ffi.h.in: Change sourceware.cygnus.com references to
1386         gcc.gnu.org.
1387
1388 2000-12-09  Richard Henderson  <rth@redhat.com>
1389
1390         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1391         (ffi_closure_osf_inner): Index rather than increment avalue
1392         and arg_types.  Give ffi_closure_osf the raw return value type.
1393         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1394         promotion.
1395
1396 2000-12-07  Richard Henderson  <rth@redhat.com>
1397
1398         * src/raw_api.c (ffi_translate_args): Fix typo.
1399         (ffi_prep_closure): Likewise.
1400
1401         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1402         FFI_TRAMPOLINE_SIZE.
1403         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1404         cif->bytes for new ffi_call_osf implementation.
1405         (ffi_prep_args): Absorb into ...
1406         (ffi_call): ... here.  Do all stack allocation here and
1407         avoid a callback function.
1408         (ffi_prep_closure, ffi_closure_osf_inner): New.
1409         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1410         (ffi_closure_osf): New.
1411
1412 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
1413
1414         * config.guess, config.sub, install-sh: Removed.
1415         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1416         * Makefile.in: Rebuilt.
1417
1418         * acinclude.m4: Include libtool macros from the top level.
1419         * aclocal.m4, configure: Rebuilt.
1420
1421 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
1422
1423         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1424         * configure: Rebuilt.
1425
1426 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
1427
1428         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1429         memory correctly.  Use conditional instructions, not branches where
1430         possible.
1431
1432 2000-05-04  Tom Tromey  <tromey@cygnus.com>
1433
1434         * configure: Rebuilt.
1435         * configure.in: Match `arm*-*-linux-*'.
1436         From Chris Dornan <cdornan@arm.com>.
1437
1438 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
1439
1440         * Makefile.am (SUBDIRS): Define.
1441         (AM_MAKEFLAGS): Likewise.
1442         (Multilib support.): Add section.
1443         * Makefile.in: Rebuilt.
1444         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
1445         New variables. Set for gcc using -print-multi-lib. Export them
1446         to libtool.
1447         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1448         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1449         for -shared links.
1450         (extra_compiler_flags_value, extra_compiler_flags): Check these
1451         for extra compiler options which need to be passed down in
1452         compiler_flags.
1453
1454 2000-04-16  Anthony Green  <green@redhat.com>
1455
1456         * configure: Rebuilt.
1457         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1458
1459 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
1460
1461         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
1462         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1463         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1464         Replace all void * sizeofs with sizeof(int).
1465         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1466         different than DOUBLE.
1467         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1468         (ffi_prep_args_v9): New function.
1469         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1470         (ffi_V9_return_struct): New function.
1471         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1472         32bit code (not yet cross-arch calls).
1473         * src/sparc/v8.S: Add struct return delay nop.
1474         Handle long long.
1475         * src/sparc/v9.S: New file.
1476         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1477         is used on sparc64 only for structures larger than 32 bytes.
1478         Pass by reference for structures is done for structure arguments
1479         larger than 16 bytes.
1480         * src/ffitest.c (main): Use 64bit rint on sparc64.
1481         Run long long tests on sparc.
1482         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1483         sparc64.
1484         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1485         on sparc64.
1486         * configure.in (sparc-*-linux*): New supported target.
1487         (sparc64-*-linux*): Likewise.
1488         * configure: Rebuilt.
1489         * Makefile.am: Add v9.S to SPARC files.
1490         * Makefile.in: Likewise.
1491         (LINK): Surround $(CCLD) into double quotes, so that multilib
1492         compiles work correctly.
1493
1494 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1495
1496         * configure: Rebuilt.
1497         * configure.in: (i*86-*-solaris*): New libffi target. Patch
1498         proposed by Bryce McKinlay.
1499
1500 2000-03-20  Tom Tromey  <tromey@cygnus.com>
1501
1502         * Makefile.in: Hand edit for java_raw_api.lo.
1503
1504 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
1505
1506         * config.guess, config.sub: Update from the gcc tree.
1507         Fix for PR libgcj/168.
1508
1509 2000-03-03  Tom Tromey  <tromey@cygnus.com>
1510
1511         * Makefile.in: Fixed ia64 by hand.
1512
1513         * configure: Rebuilt.
1514         * configure.in (--enable-multilib): New option.
1515         (libffi_basedir): New subst.
1516         (AC_OUTPUT): Added multilib code.
1517
1518 2000-03-02  Tom Tromey  <tromey@cygnus.com>
1519
1520         * Makefile.in: Rebuilt.
1521         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
1522         directory name.
1523
1524 2000-02-25  Hans Boehm <boehm@acm.org>
1525
1526         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
1527         files.
1528         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
1529         list.
1530         (ffi_prep_raw_closure): Use ffi_translate_args, not
1531         ffi_closure_translate.
1532         * src/java_raw_api.c: New file.
1533         * src/ffitest.c (closure_test_fn): New function.
1534         (main): Define `rint' as long long on IA64.  Added new test when
1535         FFI_CLOSURES is defined.
1536         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
1537         (ffi_abi): Recognize IA64.
1538         (ffi_raw): Added `flt' field.
1539         Added "Java raw API" code.
1540         * configure.in: Recognize ia64.
1541         * Makefile.am (TARGET_SRC_IA64): New macro.
1542         (libffi_la_common_SOURCES): Added java_raw_api.c.
1543         (libffi_la_SOURCES): Define in IA64 case.
1544
1545 2000-01-04  Tom Tromey  <tromey@cygnus.com>
1546
1547         * Makefile.in: Rebuilt with newer automake.
1548
1549 1999-12-31  Tom Tromey  <tromey@cygnus.com>
1550
1551         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
1552
1553 1999-09-01  Tom Tromey  <tromey@cygnus.com>
1554
1555         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
1556         undefs.
1557         * fficonfig.h.in: Rebuilt.
1558         * configure: Rebuilt.
1559         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
1560         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
1561         * acconfig.h: Don't #undef PACKAGE or VERSION.
1562
1563 1999-08-09  Anthony Green  <green@cygnus.com>
1564
1565         * include/ffi.h.in: Try to work around messy header problem
1566         with PACKAGE and VERSION.
1567
1568         * configure: Rebuilt.
1569         * configure.in: Change version to 2.00-beta.
1570
1571         * fficonfig.h.in: Rebuilt.
1572         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
1573
1574         * src/x86/ffi.c (ffi_raw_call): Rename.
1575
1576 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
1577
1578         * src/x86/ffi.c (ffi_closure_SYSV): New function.
1579         (ffi_prep_incoming_args_SYSV): Ditto.
1580         (ffi_prep_closure): Ditto.
1581         (ffi_closure_raw_SYSV): Ditto.
1582         (ffi_prep_raw_closure): More ditto.
1583         (ffi_call_raw): Final ditto.
1584
1585         * include/ffi.h.in: Add definitions for closure and raw API.
1586
1587         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
1588         FFI_TYPE_UINT64.
1589
1590         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
1591
1592         * src/raw_api.c: New file.
1593
1594         * include/ffi.h.in (ffi_raw): New type.
1595         (UINT_ARG, SINT_ARG): New defines.
1596         (ffi_closure, ffi_raw_closure): New types.
1597         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
1598
1599         * configure.in: Add check for endianness and sizeof void*.
1600
1601         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
1602         instead of directly.
1603
1604         * configure: Rebuilt.
1605
1606 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
1607
1608         * configure.in: Add x86 and powerpc BeOS configurations.
1609         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
1610
1611 1999-05-09  Anthony Green  <green@cygnus.com>
1612
1613         * configure.in: Add warning about this being beta code.
1614         Remove src/Makefile.am from the picture.
1615         * configure: Rebuilt.
1616
1617         * Makefile.am: Move logic from src/Makefile.am.  Add changes
1618         to support libffi as a target library.
1619         * Makefile.in: Rebuilt.
1620
1621         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
1622         Upgraded to new autoconf, automake, libtool.
1623
1624         * README: Tweaks.
1625
1626         * LICENSE: Update copyright date.
1627
1628         * src/Makefile.am, src/Makefile.in: Removed.
1629
1630 1998-11-29  Anthony Green  <green@cygnus.com>
1631
1632         * include/ChangeLog: Removed.
1633         * src/ChangeLog: Removed.
1634         * src/mips/ChangeLog: Removed.
1635         * src/sparc/ChangeLog: Remboved.
1636         * src/x86/ChangeLog: Removed.
1637
1638         * ChangeLog.v1: Created.