OSDN Git Service

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