OSDN Git Service

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