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