OSDN Git Service

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