OSDN Git Service

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