OSDN Git Service

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