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