OSDN Git Service

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