]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/ChangeLog
re PR target/15266 (libgfortran doesn't compile on IRIX 5.3)
[thirdparty/gcc.git] / libffi / ChangeLog
CommitLineData
cc786582
RO
12005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2
3 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
4 * configure: Regenerate.
5
6d0d376c
AM
62005-06-01 Alan Modra <amodra@bigpond.net.au>
7
8 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
9 to call ffi_closure_helper_SYSV. Append @local instead.
10 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
11
a21946f5 122005-05-17 Kelley Cook <kcook@gcc.gnu.org>
a097ef55
KC
13
14 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
15 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
16 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
17 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
18 include/Makefile.in, testsuite/Makefile.in: Regenerate.
19
f4c767fd
MS
202005-05-09 Mike Stump <mrs@apple.com>
21
22 * configure: Regenerate.
23
7e15b5fe
RH
242005-05-08 Richard Henderson <rth@redhat.com>
25
26 PR libffi/21285
27 * src/alpha/osf.S: Update unwind into to match code.
28
d56ea8d9
RH
292005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
30 Richard Henderson <rth@redhat.com>
31
32 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
33 bit 11 of flags.
34 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
35 (ffi_prep_closure): Set carry bit if sse-used flag set.
36 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
37 Only load sse registers if ssecount non-zero.
38 (ffi_closure_unix64): Only save sse registers if carry set on entry.
39
402005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
d948c201
RC
41
42 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
43 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
44 * configure: Regenerate.
45
fc0ad8d9
HPN
462005-04-20 Hans-Peter Nilsson <hp@axis.com>
47
48 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
49 have Tcl8.3-compatible intermediate variable.
50
614348bb
SP
512005-04-18 Simon Posnjak <simon.posnjak@siol.net>
52 Hans-Peter Nilsson <hp@axis.com>
53
54 * Makefile.am: Add CRIS support.
55 * configure.ac: Likewise.
29ede6db
HPN
56 * Makefile.in, configure, testsuite/Makefile.in,
57 include/Makefile.in: Regenerate.
614348bb
SP
58 * src/cris: New directory.
59 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
60 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
727e729b
HPN
61
62 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
63 \r?\n in output tests.
64
6dab073b
MS
652005-04-12 Mike Stump <mrs@apple.com>
66
67 * configure: Regenerate.
68
51f55d7c
HB
692005-03-30 Hans Boehm <Hans.Boehm@hp.com>
70
71 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
72
7efa52a3
SE
732005-03-30 Steve Ellcey <sje@cup.hp.com>
74
75 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
76 (ffi_sarg) Ditto.
77 * src/ia64/unix.S (ffi_closure_unix): Extend gp
78 to 64 bits in ILP32 mode.
79 Load 64 bits even for short data.
80
1488177a
MS
812005-03-23 Mike Stump <mrs@apple.com>
82
83 * src/powerpc/darwin.S: Update for -m64 multilib.
84 * src/powerpc/darwin_closure.S: Likewise.
85
c6900272
ZW
862005-03-21 Zack Weinberg <zack@codesourcery.com>
87
88 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
89 Do not set tool_include_dir.
90 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
91 Regenerate.
92 * include/Makefile.am: Set gcc_version and toollibffidir.
93 * include/Makefile.in: Regenerate.
94
962eea0a
AH
952005-02-22 Andrew Haley <aph@redhat.com>
96
97 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
98 odd-numbered register pairs for 64-bit integer types.
99
1b05e8bf
AT
1002005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
101
102 PR libffi/20104
103 * testsuite/libffi.call/return_ll1.c: New test case.
104
6027770b
JJ
1052005-02-11 Janis Johnson <janis187@us.ibm.com>
106
107 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
108 * testsuite/libffi.call/float.c: Ditto.
109 * testsuite/libffi.call/float2.c: Ditto.
110 * testsuite/libffi.call/float3.c: Ditto.
111
ee31ea68
AT
1122005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
113
114 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
115
c16be7d5
EB
1162005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
117
118 * testsuite/libffi.special/special.exp (cxx_options): Add
119 -shared-libgcc.
120
5df07255
RH
1212004-12-31 Richard Henderson <rth@redhat.com>
122
123 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
124 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
125 offset parameters with a type parameter; deduce size and structure
126 alignment. Update all users.
127
81a69b13
RH
1282004-12-31 Richard Henderson <rth@redhat.com>
129
130 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
131 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
c6900272 132 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
81a69b13
RH
133 into ffi_prep_closure.
134 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
135 from scratch.
136
d833cfb0
RH
1372004-12-27 Richard Henderson <rth@redhat.com>
138
139 * src/x86/unix64.S: Fix typo in unwind info.
140
1a0f488c
RH
1412004-12-25 Richard Henderson <rth@redhat.com>
142
143 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
144 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
145 (merge_classes): Check for it.
146 (SSE_CLASS_P): New.
147 (classify_argument): Pass byte_offset by value; perform all updates
148 inside struct case.
149 (examine_argument): Add classes argument; handle
150 X86_64_COMPLEX_X87_CLASS.
151 (ffi_prep_args): Merge into ...
152 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
153 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
154 (ffi_fill_return_value): Remove.
155 (ffi_prep_closure): Remove dead assert.
156 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
157 Rewrite to use struct register_args instead of va_list. Create
158 flags for handling structure returns.
159 * src/x86/unix64.S: Remove dead strings.
160 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
161 stack frame with ffi_call. Handle structure returns properly.
162 (float2sse, floatfloat2sse, double2sse): Remove.
163 (sse2float, sse2double, sse2floatfloat): Remove.
164 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
165 to handle structure returns properly.
166
7994d50c
DE
1672004-12-08 David Edelsohn <edelsohn@gnu.org>
168
169 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
170 PICFLAG.
171 * Makefile.in: Regenerated.
172
afabd8e6
RS
1732004-12-02 Richard Sandiford <rsandifo@redhat.com>
174
175 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
176 * configure, aclocal.m4, Makefile.in: Regenerate.
177 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
178
2539bffe
KC
1792004-11-29 Kelley Cook <kcook@gcc.gnu.org>
180
181 * configure: Regenerate for libtool change.
182
767f726e
KC
1832004-11-25 Kelley Cook <kcook@gcc.gnu.org>
184
185 * configure: Regenerate for libtool reversion.
186
2c92e90f
KC
1872004-11-24 Kelley Cook <kcook@gcc.gnu.org>
188
189 * configure: Regenerate for libtool change.
190
1df8e834
JDA
1912004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
192
193 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
194
1952004-11-23 Richard Sandiford <rsandifo@redhat.com>
196
197 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
198 of jal. Use an absolute encoding for the frame information.
199
2002004-11-23 Kelley Cook <kcook@gcc.gnu.org>
201
202 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
203 * acinclude.m4: Delete logic for sincludes.
204 * aclocal.m4, Makefile.in, configure: Regenerate.
205 * include/Makefile: Likewise.
206 * testsuite/Makefile: Likewise.
207
bf02e7fa
EB
2082004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
209
210 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
211 on a 8-byte boundary.
212 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
213
f20459f1
RE
2142004-10-27 Richard Earnshaw <rearnsha@arm.com>
215
216 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
217 long long values. Round stack allocation to a multiple of 8 bytes
218 for ATPCS compatibility.
219 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
220 names. Handle returning long long types. Add Thumb and interworking
221 support. Improve soft-float code.
222
fdc69597
RE
2232004-10-27 Richard Earnshaw <rearnsha@arm.com>
224
225 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
226 (libffi_exit): New function.
227 (libffi_init): Build the testglue wrapper if needed.
228
1e02510f
EB
2292004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
230
231 PR other/18138
232 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
233
d9a193b2
KI
2342004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
235
236 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
237
1fddb058
KK
2382004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
239
240 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
241 * testsuite/libffi.call/float3.c: New test case.
242
e0d3b452
KK
2432004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
244
245 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
246 the function returning a structure pointed with R2.
247 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
248 the structure return value if T bit set. Emit position
249 independent code and EH data if PIC.
250
a472e9d4
KI
2512004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
252
253 * Makefile.am: Add m32r support.
254 * configure.ac: Likewise.
255 * Makefile.in: Regenerate.
256 * confiugre: Regenerate.
257 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
258 (uint64, sint64, double, longdouble)
259 * src/m32r: New directory.
260 * src/m32r/ffi.c: New file.
261 * src/m32r/sysv.S: Likewise.
262 * src/m32r/ffitarget.h: Likewise.
263
3d47e9ca
KK
2642004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
265
266 * testsuite/libffi.call/negint.c: New test case.
267
fc9051dd
L
2682004-09-14 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR libgcj/17465
271 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
272 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
273 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
274 DYLD_LIBRARY_PATH.
275
2010caea
AT
2762004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
277
278 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
279 * testsuite/libffi.call/promotion.c: Likewise.
280 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
281 whitespaces.
282 * testsuite/libffi.call/return_sc.c: Likewise.
283 * testsuite/libffi.call/return_uc.c: Likewise.
284
894be816
AT
2852004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
286
287 * src/powerpc/darwin.S: Fix comments and identation.
288 * src/powerpc/darwin_closure.S: Likewise.
289
2fe7404a
AT
2902004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
291
292 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
293 (ffi_prep_args): Handle longdouble arguments.
294 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
295 longdouble.
296 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
297 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
298 values.
299 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
300 * src/types.c: Defined longdouble size and alignment for darwin.
301
16070e45
AT
3022004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
303
304 * src/powerpc/aix.S: Remove whitespaces.
305 * src/powerpc/aix_closure.S: Likewise.
306 * src/powerpc/asm.h: Likewise.
307 * src/powerpc/ffi.c: Likewise.
308 * src/powerpc/ffitarget.h: Likewise.
309 * src/powerpc/linux64.S: Likewise.
310 * src/powerpc/linux64_closure.S: Likewise.
311 * src/powerpc/ppc_closure.S: Likewise.
312 * src/powerpc/sysv.S: Likewise.
313
88d8c771
AG
3142004-08-30 Anthony Green <green@redhat.com>
315
316 * Makefile.am: Add frv support.
317 * Makefile.in, testsuite/Makefile.in: Rebuilt.
318 * configure.ac: Read configure.host.
319 * configure.in: Read configure.host.
320 * configure.host: New file. frv-elf needs libgloss.
321 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
a23adb4d 322 alignment. This is needed to frv and shouldn't harm the others.
88d8c771
AG
323 * include/ffi_common.h (ALIGN_DOWN): New macro.
324 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
325
4c5f37d5
DD
3262004-08-24 David Daney <daney@avtrex.com>
327
328 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
329 * testsuite/libffi.call/closure_fn1.c: Likewise.
330 * testsuite/libffi.call/closure_fn2.c Likewise.
331 * testsuite/libffi.call/closure_fn3.c: Likewise.
332 * testsuite/libffi.call/closure_fn4.c: Likewise.
333 * testsuite/libffi.call/closure_fn5.c: Likewise.
334 * testsuite/libffi.call/cls_18byte.c: Likewise.
335 * testsuite/libffi.call/cls_19byte.c: Likewise.
336 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
337 * testsuite/libffi.call/cls_20byte.c: Likewise.
338 * testsuite/libffi.call/cls_20byte1.c: Likewise.
339 * testsuite/libffi.call/cls_24byte.c: Likewise.
340 * testsuite/libffi.call/cls_2byte.c: Likewise.
341 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
342 * testsuite/libffi.call/cls_3byte1.c: Likewise.
343 * testsuite/libffi.call/cls_3byte2.c: Likewise.
344 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
345 * testsuite/libffi.call/cls_4byte.c: Likewise.
346 * testsuite/libffi.call/cls_64byte.c: Likewise.
347 * testsuite/libffi.call/cls_6byte.c: Likewise.
348 * testsuite/libffi.call/cls_7byte.c: Likewise.
349 * testsuite/libffi.call/cls_8byte.c: Likewise.
350 * testsuite/libffi.call/cls_9byte1.c: Likewise.
351 * testsuite/libffi.call/cls_9byte2.c: Likewise.
352 * testsuite/libffi.call/cls_align_double.c: Likewise.
353 * testsuite/libffi.call/cls_align_float.c: Likewise.
354 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
355 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
356 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
357 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
358 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
359 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
360 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
361 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
362 * testsuite/libffi.call/cls_double.c: Likewise.
363 * testsuite/libffi.call/cls_float.c: Likewise.
364 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
365 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
366 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
367 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
368 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
369 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
370 * testsuite/libffi.call/cls_schar.c: Likewise.
371 * testsuite/libffi.call/cls_sint.c: Likewise.
372 * testsuite/libffi.call/cls_sshort.c: Likewise.
373 * testsuite/libffi.call/cls_uchar.c: Likewise.
374 * testsuite/libffi.call/cls_uint.c: Likewise.
375 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
376 * testsuite/libffi.call/cls_ushort.c: Likewise.
377 * testsuite/libffi.call/nested_struct.c: Likewise.
378 * testsuite/libffi.call/nested_struct1.c: Likewise.
379 * testsuite/libffi.call/nested_struct2.c: Likewise.
380 * testsuite/libffi.call/nested_struct3.c: Likewise.
381 * testsuite/libffi.call/problem1.c: Likewise.
382 * testsuite/libffi.special/unwindtest.cc: Likewise.
383 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
384 to zero.
385 * testsuite/libffi.call/cls_16byte.c: Likewise.
386 * testsuite/libffi.call/cls_5byte.c: Likewise.
387
39dca114
DD
3882004-08-23 David Daney <daney@avtrex.com>
389
390 PR libgcj/13141
391 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
392 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
393 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
394 parameters and return types.
395 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
396 (ffi_prep_closure): Ditto.
397 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
398 alignment calculations.
399 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
400 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
401
b790003a
CM
4022004-08-14 Casey Marshall <csm@gnu.org>
403
404 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
405 contain `FFI_TYPE_UINT64' as return type for any 64-bit
406 integer (O32 ABI only).
407 (ffi_prep_closure): new function.
408 (ffi_closure_mips_inner_O32): new function.
c6900272 409 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
b790003a
CM
410 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
411 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
412 64 bit integers correctly.
413 (ffi_closure_O32): new function.
414 Added DWARF-2 unwind info for both functions.
415
547d71a1
AH
4162004-08-10 Andrew Haley <aph@redhat.com>
417
418 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
419
98a5bb3b
RM
4202004-08-01 Robert Millan <robertmh@gnu.org>
421
422 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
423 * configure: Regenerate.
424
4d447364
MR
4252004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
426
427 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
428 and mmap() explicitly instead of relying on preset autoconf cache
429 variables.
430 * aclocal.m4: Regenerate.
431 * configure: Regenerate.
432
e5dce82f
UW
4332004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
434
435 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
436 (ffi_check_float_struct): Remove unused prototype.
437
e6a0022b
GK
4382004-06-30 Geoffrey Keating <geoffk@apple.com>
439
440 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
441 character on Darwin, use '\n\t' instead.
442
5a2d52ca
MK
4432004-06-26 Matthias Klose <doko@debian.org>
444
445 * libtool-version: Fix typo in revision/age.
446
401844ef
MK
4472004-06-17 Matthias Klose <doko@debian.org>
448
449 * libtool-version: New.
450 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
451 * Makefile.in: Regenerate.
452
94632047 4532004-06-15 Paolo Bonzini <bonzini@gnu.org>
076e5443
PB
454
455 * Makefile.am: Remove useless multilib rules.
456 * Makefile.in: Regenerate.
457 * aclocal.m4: Regenerate with automake 1.8.5.
458 * configure.ac: Remove useless multilib configury.
459 * configure: Regenerate.
460
94632047 4612004-06-15 Paolo Bonzini <bonzini@gnu.org>
9ac926b1
PB
462
463 * .cvsignore: New file.
464
37c849e4
JJ
4652004-06-10 Jakub Jelinek <jakub@redhat.com>
466
467 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
468 fp_done.
469 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
470 changed from 8.
471
cb623172
SM
4722004-06-06 Sean McNeil <sean@mcneil.com>
473
474 * configure.ac: Add x86_64-*-freebsd* support.
475 * configure: Regenerate.
476
c9b93377
JB
4772004-04-26 Joe Buck <jbuck@welsh-buck.org>
478
479 Bug 15093
480 * configure.ac: Test for existence of mmap and sys/mman.h before
481 checking blacklist. Fix suggested by Jim Wilson.
482 * configure: Regenerate.
483
cf90fd1b
MA
4842004-04-26 Matt Austern <austern@apple.com>
485
486 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
487 FDE location.
488 * src/powerpc/darwin_closure.S: Likewise.
c6900272 489
67781b44
AT
4902004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
491
492 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
493 error. Reported by Thomas Heller <theller@python.net>.
494 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
495 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
496
14b078a8
MK
4972004-03-20 Matthias Klose <doko@debian.org>
498
499 * src/pa/linux.S: Fix typo.
500
d65a810f
MK
5012004-03-19 Matthias Klose <doko@debian.org>
502
67781b44 503 * Makefile.am: Update.
d65a810f
MK
504 * Makefile.in: Regenerate.
505 * src/pa/ffi.h.in: Remove.
506 * src/pa/ffitarget.h: New file.
507
5082004-02-10 Randolph Chung <tausq@debian.org>
509
510 * Makefile.am: Add PA support.
511 * Makefile.in: Regenerate.
512 * include/Makefile.in: Regenerate.
513 * configure.ac: Add PA target.
514 * configure: Regenerate.
515 * src/pa/ffi.c: New file.
516 * src/pa/ffi.h.in: Add PA support.
517 * src/pa/linux.S: New file.
518 * prep_cif.c: Add PA support.
519
09cababc
HY
5202004-03-16 Hosaka Yuji <hos@tamanegi.org>
521
522 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
523 double.
524 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
525 with ecif->cif->flags.
526 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
527 with cif->flags.
528 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
529 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
530 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
531 sc_retstruct2b): Add for 1 or 2-bytes struct case.
532
0e8d0c5f
KC
5332004-03-15 Kelley Cook <kcook@gcc.gnu.org>
534
535 * configure.in: Rename file to ...
536 * configure.ac: ... this.
537 * fficonfig.h.in: Regenerate.
538 * Makefile.in: Regenerate.
539 * include/Makefile.in: Regenerate.
540 * testsuite/Makefile.in: Regenerate.
541
b8d50739
MA
5422004-03-12 Matt Austern <austern@apple.com>
543
544 * src/powerpc/darwin.S: Fix EH information so it corresponds to
545 changes in EH format resulting from addition of linkonce support.
546 * src/powerpc/darwin_closure.S: Likewise.
09cababc 547
3ed8e5b6
AT
5482004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
549 Paolo Bonzini <bonzini@gnu.org>
550
551 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
552 Remove VPATH. Remove rules for object files. Remove multilib support.
553 (AM_CCASFLAGS): Add.
554 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
555 (AC_PREREQ): Bump version to 2.59.
556 (AC_INIT): Fill with version info and bug address.
557 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
558 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
559 De-precious CC so that the right flags are passed down to multilibs.
560 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
561 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
562 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
563 * configure: Rebuilt.
564 * aclocal.m4: Likewise.
565 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
566 * fficonfig.h.in: Likewise.
567
254ea477
AS
5682004-03-11 Andreas Schwab <schwab@suse.de>
569
570 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
571 arguments from fp registers only for the first 8 parameter slots.
572 Don't convert a float parameter when passed in memory.
573
3beb1315
HPN
5742004-03-09 Hans-Peter Nilsson <hp@axis.com>
575
576 * configure: Regenerate for config/accross.m4 correction.
577
fecf735c
MK
5782004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
579
580 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
581 ecif->cif->bytes to bytes.
582 (ffi_prep_cif_machdep): Add braces around nested if statement.
583
4243752c
AM
5842004-02-09 Alan Modra <amodra@bigpond.net.au>
585
12001e0f
AM
586 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
587
4243752c
AM
588 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
589 (ffi_closure_helper_LINUX64): Fix typo.
590 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
591 for powerpc64-*-*.
592 * testsuite/libffi.call/float.c: Likewise.
593 * testsuite/libffi.call/float2.c: Likewise.
594
bf310028
AM
5952004-02-08 Alan Modra <amodra@bigpond.net.au>
596
597 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
598 long double function return and long double arg handling.
599 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
600 Use "end_pfr" instead of "nf". Correct long double handling.
601 Localise "temp".
602 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
603 return value.
604 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
605 space for long double return value. Adjust stack frame and offsets.
606 Load f2 long double return.
607
dd5f9ea2
AM
6082004-02-07 Alan Modra <amodra@bigpond.net.au>
609
610 * src/types.c: Use 16 byte long double for POWERPC64.
611
0ce78f01
EB
6122004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
613
614 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
615 when the structure return address is passed in %o0.
616 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
617 (ffi_v9_layout_struct): Align the field following a nested structure
618 on a word boundary. Use memmove instead of memcpy.
619 (ffi_call): Update call to ffi_V9_return_struct.
620 (ffi_prep_closure): Define 'ctx' only for V8.
621 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
622 and ffi_closure_sparc_inner_v9.
623 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
624 Always skip the structure return address. For structures and long
625 doubles, copy the argument directly.
626 (ffi_closure_sparc_inner_v9): Skip the structure return address only
627 if required. Shift the maximum floating-point slot accordingly. For
628 big structures, copy the argument directly; otherwise, left-justify the
629 argument and call ffi_v9_layout_struct to lay out the structure on
630 the stack.
631 * src/sparc/v8.S: Undef STACKFRAME before defining it.
632 (ffi_closure_v8): Pass the structure return address. Update call to
633 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
634 Skip the 'unimp' insn when returning long doubles and structures.
635 * src/sparc/v9.S: Undef STACKFRAME before defining it.
636 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
637 FFI_TYPE_INT handling. Load structures both in integers and
638 floating-point registers on return.
639 * README: Update status of the SPARC port.
640
7fcc1d9b
AT
6412004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
642
643 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
644 as of type ffi_arg.
645 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
646
6ed0ecaf
UW
6472004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
650 value as of type ffi_arg, not unsigned int.
651
c930d8a5
MR
6522004-01-21 Michael Ritzert <ritzert@t-online.de>
653
654 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
655 of the LHS.
656
7b2e3e60
AT
6572004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
658
659 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
660 Solaris.
661
2e89756b
RO
6622004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
663
664 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
665 to void *.
666
628b26f8
RH
6672003-12-10 Richard Henderson <rth@redhat.com>
668
669 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
670 size_t instead of int.
671
0ee646d6
HY
6722003-12-04 Hosaka Yuji <hos@tamanegi.org>
673
674 * testsuite/libffi.call/many_win32.c: Include <float.h>.
675 * testsuite/libffi.call/many_win32.c (main): Replace variable
676 int i with unsigned long ul.
677
678 * testsuite/libffi.call/cls_align_uint64.c: New test case.
679 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
680 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
681 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
682 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
683 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
684 * testsuite/libffi.call/cls_align_float.c: Likewise.
685 * testsuite/libffi.call/cls_align_double.c: Likewise.
686 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
687 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
688
2c4ed456
HY
6892003-12-02 Hosaka Yuji <hos@tamanegi.org>
690
691 PR other/13221
692 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
693 Align arguments to 32 bits.
694
d18c3386
AT
6952003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
696
697 PR other/13221
698 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
699 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
700 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
701 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
702 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
703 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
704
705 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
706
88096b2a
KG
7072003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
708
709 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
710 * testsuite/libffi.special/ffitestcxx.h: Likewise.
711
3eee102e
AT
7122003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
713
714 * Makefile.in: Rebuilt.
715 * configure: Likewise.
716 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
717 the right type.
718
5196736e
AJ
7192003-11-21 Andreas Jaeger <aj@suse.de>
720 Andreas Tobler <a.tobler@schweiz.ch>
721
722 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
723 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
724 * Makefile.in: Rebuilt.
725 * aclocal.m4: Likewise.
726 * configure: Likewise.
727 * fficonfig.h.in: Likewise.
728 * testsuite/lib/libffi-dg.exp: Add include dir.
729 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
730 * testsuite/libffi.special/ffitestcxx.h: Likewise.
731 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
732 for ffi_closure if available.
733 * testsuite/libffi.call/closure_fn1.c: Likewise.
734 * testsuite/libffi.call/closure_fn2.c: Likewise.
735 * testsuite/libffi.call/closure_fn3.c: Likewise.
736 * testsuite/libffi.call/closure_fn4.c: Likewise.
737 * testsuite/libffi.call/closure_fn5.c: Likewise.
738 * testsuite/libffi.call/cls_12byte.c: Likewise.
739 * testsuite/libffi.call/cls_16byte.c: Likewise.
740 * testsuite/libffi.call/cls_18byte.c: Likewise.
741 * testsuite/libffi.call/cls_19byte.c: Likewise.
742 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
743 * testsuite/libffi.call/cls_20byte.c: Likewise.
744 * testsuite/libffi.call/cls_20byte1.c: Likewise.
745 * testsuite/libffi.call/cls_24byte.c: Likewise.
746 * testsuite/libffi.call/cls_2byte.c: Likewise.
747 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
748 * testsuite/libffi.call/cls_3byte1.c: Likewise.
749 * testsuite/libffi.call/cls_3byte2.c: Likewise.
750 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
751 * testsuite/libffi.call/cls_4byte.c: Likewise.
752 * testsuite/libffi.call/cls_5byte.c: Likewise.
753 * testsuite/libffi.call/cls_64byte.c: Likewise.
754 * testsuite/libffi.call/cls_6byte.c: Likewise.
755 * testsuite/libffi.call/cls_7byte.c: Likewise.
756 * testsuite/libffi.call/cls_8byte.c: Likewise.
757 * testsuite/libffi.call/cls_9byte1.c: Likewise.
758 * testsuite/libffi.call/cls_9byte2.c: Likewise.
759 * testsuite/libffi.call/cls_double.c: Likewise.
760 * testsuite/libffi.call/cls_float.c: Likewise.
761 * testsuite/libffi.call/cls_schar.c: Likewise.
762 * testsuite/libffi.call/cls_sint.c: Likewise.
763 * testsuite/libffi.call/cls_sshort.c: Likewise.
764 * testsuite/libffi.call/cls_uchar.c: Likewise.
765 * testsuite/libffi.call/cls_uint.c: Likewise.
766 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
767 * testsuite/libffi.call/cls_ushort.c: Likewise.
768 * testsuite/libffi.call/nested_struct.c: Likewise.
769 * testsuite/libffi.call/nested_struct1.c: Likewise.
770 * testsuite/libffi.call/nested_struct2.c: Likewise.
771 * testsuite/libffi.call/nested_struct3.c: Likewise.
772 * testsuite/libffi.call/problem1.c: Likewise.
773 * testsuite/libffi.special/unwindtest.cc: Likewise.
774
9e6c3ecb
AT
7752003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
776
777 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
778
70d8f2a1
AT
7792003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
780
781 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
782 Add -lgcc_s to additional flags.
783
ea81d2a3
AT
7842003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
785
786 * configure.in, include/Makefile.am: PR libgcj/11147, install
787 the ffitarget.h header file in a gcc versioned and target
788 dependent place.
789 * configure: Regenerated.
790 * Makefile.in, include/Makefile.in: Likewise.
791 * testsuite/Makefile.in: Likewise.
792
647af4a9
AT
7932003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
794
795 * testsuite/libffi.call/closure_fn0.c: Print result and check
796 with dg-output to make debugging easier.
797 * testsuite/libffi.call/closure_fn1.c: Likewise.
798 * testsuite/libffi.call/closure_fn2.c: Likewise.
799 * testsuite/libffi.call/closure_fn3.c: Likewise.
800 * testsuite/libffi.call/closure_fn4.c: Likewise.
801 * testsuite/libffi.call/closure_fn5.c: Likewise.
802 * testsuite/libffi.call/cls_12byte.c: Likewise.
803 * testsuite/libffi.call/cls_16byte.c: Likewise.
804 * testsuite/libffi.call/cls_18byte.c: Likewise.
805 * testsuite/libffi.call/cls_19byte.c: Likewise.
806 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
807 * testsuite/libffi.call/cls_20byte.c: Likewise.
808 * testsuite/libffi.call/cls_20byte1.c: Likewise.
809 * testsuite/libffi.call/cls_24byte.c: Likewise.
810 * testsuite/libffi.call/cls_2byte.c: Likewise.
811 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
812 * testsuite/libffi.call/cls_3byte1.c: Likewise.
813 * testsuite/libffi.call/cls_3byte2.c: Likewise.
814 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
815 * testsuite/libffi.call/cls_4byte.c: Likewise.
816 * testsuite/libffi.call/cls_5byte.c: Likewise.
817 * testsuite/libffi.call/cls_64byte.c: Likewise.
818 * testsuite/libffi.call/cls_6byte.c: Likewise.
819 * testsuite/libffi.call/cls_7byte.c: Likewise.
820 * testsuite/libffi.call/cls_8byte.c: Likewise.
821 * testsuite/libffi.call/cls_9byte1.c: Likewise.
822 * testsuite/libffi.call/cls_9byte2.c: Likewise.
823 * testsuite/libffi.call/cls_double.c: Likewise.
824 * testsuite/libffi.call/cls_float.c: Likewise.
825 * testsuite/libffi.call/cls_schar.c: Likewise.
826 * testsuite/libffi.call/cls_sint.c: Likewise.
827 * testsuite/libffi.call/cls_sshort.c: Likewise.
828 * testsuite/libffi.call/cls_uchar.c: Likewise.
829 * testsuite/libffi.call/cls_uint.c: Likewise.
830 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
831 * testsuite/libffi.call/cls_ushort.c: Likewise.
832 * testsuite/libffi.call/problem1.c: Likewise.
833
834 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
835 static.
836
ac47cc13
AT
8372003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
838
839 * testsuite/libffi.call/cls_9byte2.c: New test case.
840 * testsuite/libffi.call/cls_9byte1.c: Likewise.
841 * testsuite/libffi.call/cls_64byte.c: Likewise.
842 * testsuite/libffi.call/cls_20byte1.c: Likewise.
843 * testsuite/libffi.call/cls_19byte.c: Likewise.
844 * testsuite/libffi.call/cls_18byte.c: Likewise.
845 * testsuite/libffi.call/closure_fn4.c: Likewise.
846 * testsuite/libffi.call/closure_fn5.c: Likewise.
847 * testsuite/libffi.call/cls_schar.c: Likewise.
848 * testsuite/libffi.call/cls_sint.c: Likewise.
849 * testsuite/libffi.call/cls_sshort.c: Likewise.
850 * testsuite/libffi.call/nested_struct2.c: Likewise.
851 * testsuite/libffi.call/nested_struct3.c: Likewise.
852
f145ed6b
AT
8532003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
854
855 * testsuite/libffi.call/cls_double.c: Do a check on the result.
856 * testsuite/libffi.call/cls_uchar.c: Likewise.
857 * testsuite/libffi.call/cls_uint.c: Likewise.
858 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
859 * testsuite/libffi.call/cls_ushort.c: Likewise.
860 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
861
2b04d015
AT
8622003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
863
864 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
865 the initialization.
866
57f542b3
AT
8672003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
868
2b04d015 869 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
57f542b3
AT
870 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
871
e61acf72
DD
8722003-10-22 David Daney <ddaney@avtrex.com>
873
874 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
875 __attribute__((__mode__(__SI__))) and friends.
876
2461c08b
AS
8772003-10-22 Andreas Schwab <schwab@suse.de>
878
879 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
880
1450eb7a
AT
8812003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
882
883 * configure.in: AC_LINK_FILES(ffitarget.h).
884 * configure: Regenerate.
885 * Makefile.in: Likewise.
886 * include/Makefile.in: Likewise.
887 * testsuite/Makefile.in: Likewise.
888 * fficonfig.h.in: Likewise.
889
8902003-10-21 Paolo Bonzini <bonzini@gnu.org>
891 Richard Henderson <rth@redhat.com>
892
893 Avoid that ffi.h includes fficonfig.h.
894
895 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
896 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
897 (TARGET_SRC_MIPS_SGI): Removed.
898 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
899 (MIPS_SGI): Removed.
900 (CLEANFILES): Removed.
901 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
902 targets.
903 * acconfig.h: Removed.
904 * configure.in: Compute sizeofs only for double and long double.
905 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
906 into AC_DEFINE instead of using acconfig.h. Create
907 include/ffitarget.h instead of include/fficonfig.h. Rename
908 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
909 AC_DEFINE EH_FRAME_FLAGS.
910 * include/Makefile.am (DISTCLEANFILES): New automake macro.
911 (hack_DATA): Add ffitarget.h.
912 * include/ffi.h.in: Remove all system specific definitions.
913 Declare raw API even if it is not installed, why bother?
914 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
915 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
916 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
917 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
918 * include/ffi_common.h (bool): Do not define.
919 (ffi_assert): Accept failed assertion.
920 (ffi_type_test): Return void and accept file/line.
921 (FFI_ASSERT): Pass stringized failed assertion.
922 (FFI_ASSERT_AT): New macro.
923 (FFI_ASSERT_VALID_TYPE): New macro.
924 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
925 UINT64, SINT64): Define here with gcc's __attribute__ macro
926 instead of in ffi.h
927 (FLOAT32, ALIGN): Define here instead of in ffi.h
928 * include/ffi-mips.h: Removed. Its content moved to
929 src/mips/ffitarget.h after separating assembly and C sections.
930 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
931 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
932 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
933 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
934 SIZEOF_ARG -> FFI_SIZEOF_ARG.
935 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
936 * src/debug.c (ffi_assert): Accept stringized failed assertion.
937 (ffi_type_test): Rewritten.
938 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
939 FFI_ASSERT_VALID_TYPE.
940 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
941 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
942 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
943 src/s390/ffitarget.h, src/sh/ffitarget.h,
944 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
945 src/x86/ffitarget.h: New files.
946 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
947 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
948 src/powerpc/aix.S, src/powerpc/darwin.S,
949 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
950 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
951 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
952 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
953 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
954 include fficonfig.h
955
27d54b2a
RO
9562003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
957
958 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
959 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
960
0df6970d
AT
9612003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
962
963 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
964 Used when FFI_DEBUG = 1.
965
2612ffce
AM
9662003-10-14 Alan Modra <amodra@bigpond.net.au>
967
968 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
969 and align.
970
d54f7354
RO
9712003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
972
973 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
974 FFI_MIPS_O32 for O32 ABI.
975
7a54c850
AT
9762003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
977
978 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
979 SPARC64. Cleanup whitespaces.
980
9e3bfa9b
AT
9812003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
982
983 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
984 strongarm, xscale. Cleanup whitespaces.
985 * testsuite/libffi.call/closure_fn1.c: Likewise.
986 * testsuite/libffi.call/closure_fn2.c: Likewise.
987 * testsuite/libffi.call/closure_fn3.c: Likewise.
988 * testsuite/libffi.call/cls_12byte.c: Likewise.
989 * testsuite/libffi.call/cls_16byte.c: Likewise.
990 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
991 * testsuite/libffi.call/cls_20byte.c: Likewise.
992 * testsuite/libffi.call/cls_24byte.c: Likewise.
993 * testsuite/libffi.call/cls_2byte.c: Likewise.
994 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
995 * testsuite/libffi.call/cls_3byte1.c: Likewise.
996 * testsuite/libffi.call/cls_3byte2.c: Likewise.
997 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
998 * testsuite/libffi.call/cls_4byte.c: Likewise.
999 * testsuite/libffi.call/cls_5byte.c: Likewise.
1000 * testsuite/libffi.call/cls_6byte.c: Likewise.
1001 * testsuite/libffi.call/cls_7byte.c: Likewise.
1002 * testsuite/libffi.call/cls_8byte.c: Likewise.
1003 * testsuite/libffi.call/cls_double.c: Likewise.
1004 * testsuite/libffi.call/cls_float.c: Likewise.
1005 * testsuite/libffi.call/cls_uchar.c: Likewise.
1006 * testsuite/libffi.call/cls_uint.c: Likewise.
1007 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1008 * testsuite/libffi.call/cls_ushort.c: Likewise.
1009 * testsuite/libffi.call/nested_struct.c: Likewise.
1010 * testsuite/libffi.call/nested_struct1.c: Likewise.
1011 * testsuite/libffi.call/problem1.c: Likewise.
1012 * testsuite/libffi.special/unwindtest.cc: Likewise.
1013 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
1014
3e86b595
DE
10152003-09-18 David Edelsohn <edelsohn@gnu.org>
1016
1017 * src/powerpc/aix.S: Cleanup whitespaces.
1018 * src/powerpc/aix_closure.S: Likewise.
1019
8d8369f8
AT
10202003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
1021
1022 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
1023 * src/powerpc/darwin_closure.S: Likewise.
1024 * src/powerpc/ffi_darwin.c: Likewise.
1025
69b182fd
AT
10262003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
1027 David Edelsohn <edelsohn@gnu.org>
1028
1029 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
1030 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
1031 parameter stack.
1032 * src/powerpc/darwin_closure.S: Likewise.
1033 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
1034 according to the Darwin/AIX ABI.
1035 (ffi_prep_cif_machdep): Likewise.
1036 (ffi_closure_helper_DARWIN): Likewise.
1037 Remove the outgoing parameter stack logic. Simplify the evaluation
1038 of the different CASE types.
1039 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
1040 statement in the trampoline code.
1041
df805cdc
KK
10422003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
1043
1044 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
1045 for the register size.
1046 (ffi_closure_helper_SYSV): Handle the structure return value
1047 address correctly.
1048 (ffi_closure_helper_SYSV): Return the appropriate type when
1049 the registers are used for the structure return value.
1050 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
1051 the 64-bit return value. Update copyright years.
1052
eb26c76c
RO
10532003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1054
1055 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
1056 srcdir for ffi_mips.h.
1057
6350c02c
AM
10582003-09-12 Alan Modra <amodra@bigpond.net.au>
1059
1060 * src/prep_cif.c (initialize_aggregate): Include tail padding in
1061 structure size.
1062 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
1063 placement of float result.
1064 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
1065 cast of "resp" for big-endian 64 bit machines.
1066
5af1c806
AM
10672003-09-11 Alan Modra <amodra@bigpond.net.au>
1068
1069 * src/types.c (double, longdouble): Merge identical SH and ARM
1070 typedefs, and add POWERPC64.
1071 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
1072 struct split over gpr and rest.
1073 (ffi_prep_cif_machdep): Correct intarg_count for structures.
1074 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
1075
086a4bd7
AT
10762003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
1077
1078 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
1079 passing correctly.
c930d8a5 1080
e517f636
AM
10812003-09-09 Alan Modra <amodra@bigpond.net.au>
1082
1083 * configure: Regenerate.
1084
6f20d627
AT
10852003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
1086
1087 * Makefile.am: Remove build rules for ffitest.
1088 * Makefile.in: Rebuilt.
c930d8a5 1089
6f20d627 10902003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
226660af
AT
1091
1092 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
1093 about implicit declaration of abort().
1094
bbf3057b
AT
10952003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
1096
1097 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
1098 * Makefile.in: Rebuilt.
1099 * configure.in: Add dejagnu test framework.
1100 * configure: Rebuilt.
1101
1102 * testsuite/Makefile.am: New file.
1103 * testsuite/Makefile.in: Built
c930d8a5 1104 * testsuite/lib/libffi-dg.exp: New file.
bbf3057b
AT
1105 * testsuite/config/default.exp: Likewise.
1106 * testsuite/libffi.call/call.exp: Likewise.
1107 * testsuite/libffi.call/ffitest.h: Likewise.
1108 * testsuite/libffi.call/closure_fn0.c: Likewise.
1109 * testsuite/libffi.call/closure_fn1.c: Likewise.
1110 * testsuite/libffi.call/closure_fn2.c: Likewise.
1111 * testsuite/libffi.call/closure_fn3.c: Likewise.
1112 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1113 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1114 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1115 * testsuite/libffi.call/cls_2byte.c: Likewise.
1116 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1117 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1118 * testsuite/libffi.call/cls_4byte.c: Likewise.
1119 * testsuite/libffi.call/cls_5byte.c: Likewise.
1120 * testsuite/libffi.call/cls_6byte.c: Likewise.
1121 * testsuite/libffi.call/cls_7byte.c: Likewise.
1122 * testsuite/libffi.call/cls_8byte.c: Likewise.
1123 * testsuite/libffi.call/cls_12byte.c: Likewise.
1124 * testsuite/libffi.call/cls_16byte.c: Likewise.
1125 * testsuite/libffi.call/cls_20byte.c: Likewise.
1126 * testsuite/libffi.call/cls_24byte.c: Likewise.
1127 * testsuite/libffi.call/cls_double.c: Likewise.
1128 * testsuite/libffi.call/cls_float.c: Likewise.
1129 * testsuite/libffi.call/cls_uchar.c: Likewise.
1130 * testsuite/libffi.call/cls_uint.c: Likewise.
1131 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1132 * testsuite/libffi.call/cls_ushort.c: Likewise.
1133 * testsuite/libffi.call/float.c: Likewise.
1134 * testsuite/libffi.call/float1.c: Likewise.
1135 * testsuite/libffi.call/float2.c: Likewise.
1136 * testsuite/libffi.call/many.c: Likewise.
1137 * testsuite/libffi.call/many_win32.c: Likewise.
1138 * testsuite/libffi.call/nested_struct.c: Likewise.
1139 * testsuite/libffi.call/nested_struct1.c: Likewise.
1140 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
1141 * testsuite/libffi.call/problem1.c: Likewise.
1142 * testsuite/libffi.call/promotion.c: Likewise.
1143 * testsuite/libffi.call/return_ll.c: Likewise.
1144 * testsuite/libffi.call/return_sc.c: Likewise.
1145 * testsuite/libffi.call/return_uc.c: Likewise.
1146 * testsuite/libffi.call/strlen.c: Likewise.
1147 * testsuite/libffi.call/strlen_win32.c: Likewise.
1148 * testsuite/libffi.call/struct1.c: Likewise.
1149 * testsuite/libffi.call/struct2.c: Likewise.
1150 * testsuite/libffi.call/struct3.c: Likewise.
1151 * testsuite/libffi.call/struct4.c: Likewise.
1152 * testsuite/libffi.call/struct5.c: Likewise.
1153 * testsuite/libffi.call/struct6.c: Likewise.
1154 * testsuite/libffi.call/struct7.c: Likewise.
1155 * testsuite/libffi.call/struct8.c: Likewise.
c930d8a5 1156 * testsuite/libffi.call/struct9.c: Likewise.
bbf3057b
AT
1157 * testsuite/libffi.special/special.exp: New file.
1158 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1159 * testsuite/libffi.special/unwindtest.cc: Likewise.
1160
c930d8a5 1161
996b4f8f
KK
11622003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
1163
1164 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
1165 copyright years.
1166
b00badcd
AM
11672003-08-02 Alan Modra <amodra@bigpond.net.au>
1168
1169 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
1170 structure passing.
1171 (ffi_closure_helper_LINUX64): Likewise.
1172 * src/powerpc/linux64.S: Remove code writing to parm save area.
1173 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
1174 address in lr from ffi_closure_helper_LINUX64 call to calculate
1175 table address. Optimize function tail.
1176
c1516eae
AT
11772003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
1178
1179 * src/sparc/ffi.c: Handle all floating point registers.
1180 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
1181
fc0e6222
GP
11822003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1183
1184 * README: Note that libffi is not part of GCC. Update the project
1185 URL and status.
1186
a1569df8
FS
11872003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1188
1189 * src/powerpc/ppc_closure.S: Include ffi.h.
1190
12e816bf
RO
11912003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1192
1193 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
1194 Use C style comments.
1195
e860ed6d
KK
11962003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1197
1198 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
1199 * Makefile.in: Regenerate.
1200 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
1201 * configure: Regenerate.
1202 * include/ffi.h.in: Add SHmedia support.
1203 * src/sh64/ffi.c: New file.
1204 * src/sh64/sysv.S: New file.
1205
a733b15e
JJ
12062003-05-16 Jakub Jelinek <jakub@redhat.com>
1207
1208 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
1209 should be read-only.
1210 * configure: Rebuilt.
1211 * fficonfig.h.in: Rebuilt.
1212 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
1213 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
1214 * src/powerpc/linux64.S: Likewise.
1215 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
1216 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
1217 if -fpic/-fPIC/-mrelocatable.
1218 * src/powerpc/powerpc_closure.S: Likewise.
1219 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
1220 #write in .eh_frame flags.
1221 * src/sparc/v9.S: Likewise.
1222 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
1223 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
1224 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
1225
bd19c9f4
JS
12262003-05-07 Jeff Sturm <jsturm@one-point.com>
1227
1228 Fixes PR bootstrap/10656
1229 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
1230 support for .register pseudo-op.
1231 * src/sparc/v8.S: Use it.
1232 * fficonfig.h.in: Rebuilt.
1233 * configure: Rebuilt.
1234
e9b84181
JJ
12352003-04-18 Jakub Jelinek <jakub@redhat.com>
1236
1237 * include/ffi.h.in (POWERPC64): Define if 64-bit.
1238 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
1239 Make it the default on POWERPC64.
1240 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
1241 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
1242 * configure: Rebuilt.
1243 * src/powerpc/ffi.c (hidden): Define.
1244 (ffi_prep_args_SYSV): Renamed from
1245 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
1246 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
1247 ASM_NEEDS_REGISTERS64): New.
1248 (ffi_prep_args64): New function.
1249 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
1250 (ffi_call): Likewise.
1251 (ffi_prep_closure): Likewise.
1252 (flush_icache): Surround by #ifndef POWERPC64.
1253 (ffi_dblfl): New union type.
1254 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
1255 (ffi_closure_helper_LINUX64): New function.
1256 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
1257 __powerpc64__.
1258 * src/powerpc/sysv.S: Likewise.
1259 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
1260 * src/powerpc/linux64.S: New file.
1261 * src/powerpc/linux64_closure.S: New file.
1262 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
1263 src/powerpc/linux64_closure.S.
1264 (TARGET_SRC_POWERPC): Likewise.
1265
1266 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
1267 closure_test_fn3): Fix result printing on big-endian 64-bit
1268 machines.
1269 (main): Print tst2_arg instead of uninitialized tst2_result.
1270
1271 * src/ffitest.c (main): Hide what closure pointer really points to
1272 from the compiler.
1273
908a31e1
RE
12742003-04-16 Richard Earnshaw <rearnsha@arm.com>
1275
1276 * configure.in (arm-*-netbsdelf*): Add configuration.
1277 (configure): Regenerated.
1278
41a73c4c
LR
12792003-04-04 Loren J. Rittle <ljrittle@acm.org>
1280
1281 * include/Makefile.in: Regenerate.
1282
cd41c847
ZD
12832003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1284
1285 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
1286 bit mode.
1287 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
1288 Receive closure pointer through parameter, read args using
1289 __builtin_dwarf_cfa.
1290 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
1291
6db450f9
AS
12922003-03-12 Andreas Schwab <schwab@suse.de>
1293
1294 * configure.in: Avoid trailing /. in toolexeclibdir.
1295 * configure: Rebuilt.
1296
70144e9c
AT
12972003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
1298
c6900272 1299 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
70144e9c 1300
79e43f89
AT
13012003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
1302
1303 * libffi/src/powerpc/darwin_closure.S:
1304 Fix alignement bug, allocate 8 bytes for the result.
c930d8a5 1305 * libffi/src/powerpc/aix_closure.S:
79e43f89
AT
1306 Likewise.
1307 * libffi/src/powerpc/ffi_darwin.c:
1308 Update stackframe description for aix/darwin_closure.S.
c930d8a5 1309
0fcc9e55
JJ
13102003-02-06 Jakub Jelinek <jakub@redhat.com>
1311
1312 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
1313 attribute.
1314
63b87c2e
CC
13152003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
1316 Andreas Schwab <schwab@suse.de>
1317
c6900272 1318 * configure.in: Adjust command to source config-ml.in to account
63b87c2e
CC
1319 for changes to the libffi_basedir definition.
1320 (libffi_basedir): Remove ${srcdir} from value and include trailing
1321 slash if nonempty.
c930d8a5 1322
c6900272 1323 * configure: Regenerate.
63b87c2e 1324
c33402e2
FS
13252003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1326
1327 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
1328
fd2e49b2
AH
13292003-01-28 Andrew Haley <aph@redhat.com>
1330
1331 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
1332 * src/x86/ffi64.c (ffi_prep_closure): New.
1333 (ffi_closure_UNIX64_inner): New.
1334 * src/x86/unix64.S (ffi_closure_UNIX64): New.
1335
0e292c01
AO
13362003-01-27 Alexandre Oliva <aoliva@redhat.com>
1337
1338 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
1339 Remove USE_LIBDIR conditional.
1340 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
1341 * Makefile.in, configure: Rebuilt.
1342
acabc220
DE
13432003-01027 David Edelsohn <edelsohn@gnu.org>
1344
1345 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
1346 * Makefile.in: Regenerate.
1347
be0acd42
AH
13482003-01-22 Andrew Haley <aph@redhat.com>
1349
1350 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
1351 unwind info.
1352
ed695c8e
AT
13532003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1354
1355 * src/powerpc/darwin.S: Add unwind info.
1356 * src/powerpc/darwin_closure.S: Likewise.
1357
45ba15f4
AH
13582003-01-14 Andrew Haley <aph@redhat.com>
1359
1360 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
1361 (ffi_prep_cif_machdep): Likewise.
1362 * src/x86/unix64.S: Add unwind info.
1363
4b5f402e
AJ
13642003-01-14 Andreas Jaeger <aj@suse.de>
1365
1366 * src/ffitest.c (main): Only use ffi_closures if those are
1367 supported.
1368
7b5102af
TT
13692003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
1370
1371 * libffi/src/ffitest.c
c6900272 1372 add closure testcases
7b5102af
TT
1373
13742003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
1375
1376 * libffi/src/powerpc/ffi.c
c6900272 1377 fix alignment bug for float (4 byte aligned iso 8 byte)
7b5102af 1378
5f7c78d8
GK
13792003-01-09 Geoffrey Keating <geoffk@apple.com>
1380
1381 * src/powerpc/ffi_darwin.c: Remove RCS version string.
1382 * src/powerpc/darwin.S: Remove RCS version string.
1383
c75c7793
JS
13842003-01-03 Jeff Sturm <jsturm@one-point.com>
1385
1386 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
1387 * src/ffitest.c (main): Use static storage for closure.
1388 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
1389 * src/sparc/v8.S (ffi_closure_v8): New.
1390 * src/sparc/v9.S (ffi_closure_v9): New.
1391
eb3c46a1
RM
13922002-11-10 Ranjit Mathew <rmathew@hotmail.com>
1393
1394 * include/ffi.h.in: Added FFI_STDCALL ffi_type
1395 enumeration for X86_WIN32.
1396 * src/x86/win32.S: Added ffi_call_STDCALL function
1397 definition.
1398 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
1399 switch cases for recognising FFI_STDCALL and
1400 calling ffi_call_STDCALL if target is X86_WIN32.
1401 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
1402 stdcall versions of the "my_strlen" and "many"
1403 test functions (for X86_WIN32).
1404 Added test cases to test stdcall invocation using
1405 these functions.
1406
4977bab6
ZW
14072002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
1408
1409 * src/sh/sysv.S: Add DWARF2 unwind info.
1410
67333e84
UW
14112002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
1412
1413 * src/s390/sysv.S (.eh_frame section): Make section read-only.
1414
bc3cf760
JW
14152002-11-26 Jim Wilson <wilson@redhat.com>
1416
1417 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
1418
4977bab6
ZW
14192002-11-23 H.J. Lu <hjl@gnu.org>
1420
1421 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
1422 Include ../config/accross.m4.
1423 * aclocal.m4; Rebuild.
1424 * configure: Likewise.
1425
18789f4e
UW
14262002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
1427
1428 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
1429
6bee5372
DD
14302002-11-11 DJ Delorie <dj@redhat.com>
1431
1432 * configure.in: Look for common files in the right place.
1433
8177895b
UW
14342002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1435
1436 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
1437 raw data as _Jv_word values, not ffi_raw.
1438 (ffi_java_ptrarray_to_raw): Likewise.
1439 (ffi_java_rvalue_to_raw): New function.
1440 (ffi_java_raw_call): Call it.
1441 (ffi_java_raw_to_rvalue): New function.
1442 (ffi_java_translate_args): Call it.
1443 * src/ffitest.c (closure_test_fn): Interpret return value
1444 as ffi_arg, not int.
1445 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
1446 FFI_TYPE_POINTER case.
1447 (ffi_closure_helper_SYSV): Likewise. Also, assume return
1448 values extended to word size.
1449
af50f4c8
AJ
14502002-10-02 Andreas Jaeger <aj@suse.de>
1451
1452 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
1453
5d297584
BT
14542002-10-01 Bo Thorsen <bo@smetana.suse.de>
1455
1456 * include/ffi.h.in: Fix i386 win32 compilation.
1457
c4f17c6f
UW
14582002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
1459
1460 * configure.in: Add s390x-*-linux-* target.
1461 * configure: Regenerate.
1462 * include/ffi.h.in: Define S390X for s390x targets.
1463 (FFI_CLOSURES): Define for s390/s390x.
1464 (FFI_TRAMPOLINE_SIZE): Likewise.
1465 (FFI_NATIVE_RAW_API): Likewise.
1466 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
1467 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
4977bab6 1468 * src/s390/ffi.c: Major rework of existing code. Add support for
c4f17c6f
UW
1469 s390x targets. Add closure support.
1470 * src/s390/sysv.S: Likewise.
1471
d7b52625
RE
14722002-09-29 Richard Earnshaw <rearnsha@arm.com>
1473
1474 * src/arm/sysv.S: Fix typo.
1475
28165e22
RE
14762002-09-28 Richard Earnshaw <rearnsha@arm.com>
1477
1478 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
1479 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
1480 (ffi_call_SYSV): Handle soft-float.
1481
0b0f4163
BT
14822002-09-27 Bo Thorsen <bo@suse.de>
1483
1484 * include/ffi.h.in: Fix multilib x86-64 support.
1485
6c5d742e
KG
14862002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1487
1488 * Makefile.am (all-multi): Fix multilib parallel build.
1489
f4b2b0d6
KK
14902002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
1491
1492 * configure.in (sh[34]*-*-linux*): Add brackets.
1493 * configure: Regenerate.
1494
ddebdfeb
KK
14952002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
1496
1497 * Makefile.am: Add SH support.
1498 * Makefile.in: Regenerate.
1499 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
1500 * configure: Regenerate.
1501 * include/ffi.h.in: Add SH support.
1502 * src/sh/ffi.c: New file.
1503 * src/sh/sysv.S: New file.
1504 * src/types.c: Add SH support.
1505
c94974ca
BT
15062002-07-16 Bo Thorsen <bo@suse.de>
1507
1508 * src/x86/ffi64.c: New file that adds x86-64 support.
1509 * src/x86/unix64.S: New file that handles argument setup for
1510 x86-64.
1511 * src/x86/sysv.S: Don't use this on x86-64.
1512 * src/x86/ffi.c: Don't use this on x86-64.
1513 Remove unused vars.
1514 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
1515 for x86-64.
1516 * src/ffitest.c (struct6): New test that tests a special case in
1517 the x86-64 ABI.
1518 (struct7): Likewise.
1519 (struct8): Likewise.
1520 (struct9): Likewise.
1521 (closure_test_fn): Silence warning about this when it's not used.
1522 (main): Add the new tests.
1523 (main): Fix a couple of wrong casts and silence some compiler warnings.
1524 * include/ffi.h.in: Add x86-64 ABI definition.
1525 * fficonfig.h.in: Regenerate.
1526 * Makefile.am: Add x86-64 support.
1527 * configure.in: Likewise.
1528 * Makefile.in: Regenerate.
1529 * configure: Likewise.
1530
15312002-06-24 Bo Thorsen <bo@suse.de>
1532
1533 * src/types.c: Merge settings for similar architectures.
1534 Add x86-64 sizes and alignments.
1535
15362002-06-23 Bo Thorsen <bo@suse.de>
1537
1538 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
1539 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
1540 * src/mips/ffi.c (ffi_prep_args): Likewise.
1541 * src/m68k/ffi.c (ffi_prep_args): Likewise.
1542
5be36a8f
L
15432002-07-18 H.J. Lu (hjl@gnu.org)
1544
1545 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
1546 (libffi_la_SOURCES): Support MIPS_LINUX.
1547 (libffi_convenience_la_SOURCES): Likewise.
1548 * Makefile.in: Regenerated.
1549
1550 * configure.in (mips64*-*): Skip.
1551 (mips*-*-linux*): New.
1552 * configure: Regenerated.
1553
1554 * src/mips/ffi.c: Include <sgidefs.h>.
1555
ad5e163c
UW
15562002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1557
1558 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
1559
ee4586c5
RS
15602002-05-27 Roger Sayle <roger@eyesopen.com>
1561
1562 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
1563
b86aa7b0
BT
15642002-05-27 Bo Thorsen <bo@suse.de>
1565
1566 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
1567 fix formatting.
1568
859f7aaf
AT
15692002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
1570
1571 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
1572 beginning of function (for older apple cc).
1573
6706f116
AO
15742002-05-08 Alexandre Oliva <aoliva@redhat.com>
1575
1576 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1577 script entry, and set LD to it when configuring multilibs.
1578 * configure: Rebuilt.
1579
fad655c8
JT
15802002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1581
1582 * configure.in (sparc64-*-netbsd*): Add target.
1583 (sparc-*-netbsdelf*): Likewise.
1584 * configure: Regenerate.
1585
189ab118
DM
15862002-04-28 David S. Miller <davem@redhat.com>
1587
1588 * configure.in, configure: Fix SPARC test in previous change.
1589
22bcf65c
GT
15902002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
1591
1592 * Makefile.am: Add Linux for S/390 support.
1593 * Makefile.in: Regenerate.
1594 * configure.in: Add Linux for S/390 support.
1595 * configure: Regenerate.
1596 * include/ffi.h.in: Add Linux for S/390 support.
1597 * src/s390/ffi.c: New file from libffi CVS tree.
1598 * src/s390/sysv.S: New file from libffi CVS tree.
1599
5d84cf0b
JJ
16002002-04-28 Jakub Jelinek <jakub@redhat.com>
1601
1602 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
1603 %r_disp32().
1604 * src/sparc/v8.S: Use it.
1605 * src/sparc/v9.S: Likewise.
1606 * fficonfig.h.in: Rebuilt.
1607 * configure: Rebuilt.
1608
cc382e5c
HB
16092002-04-08 Hans Boehm <Hans_Boehm@hp.com>
1610
1611 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1612 correctly.
1613 * src/ia64/unix.S: Add unwind information. Fix comments.
1614 Save sp in a way that's compatible with unwind info.
1615 (ffi_call_unix): Correctly restore sp in all cases.
1616 * src/ia64/ffi.c: Add, fix comments.
1617
dc798645
JJ
16182002-04-08 Jakub Jelinek <jakub@redhat.com>
1619
1620 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1621
da00eaab
JT
16222002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1623
1624 * configure.in (alpha*-*-netbsd*): Add target.
1625 * configure: Regenerate.
1626
0c0b87ad
JS
16272002-04-04 Jeff Sturm <jsturm@one-point.com>
1628
1629 * src/sparc/v8.S: Add unwind info.
1630 * src/sparc/v9.S: Likewise.
1631
320d7e7a
KW
16322002-03-30 Krister Walfridsson <cato@df.lth.se>
1633
1634 * configure.in: Enable i*86-*-netbsdelf*.
1635 * configure: Rebuilt.
4977bab6 1636
c75e51ed
DB
16372002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
1638
1639 PR other/2620
1640 * src/mips/n32.s: Delete
1641 * src/mips/o32.s: Delete
1642
5bb366e0
LR
16432002-03-21 Loren J. Rittle <ljrittle@acm.org>
1644
1645 * configure.in: Enable alpha*-*-freebsd*.
1646 * configure: Rebuilt.
1647
ce3b24a7
BM
16482002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1649
1650 * Makefile.am: libfficonvenience -> libffi_convenience.
1651 * Makefile.in: Rebuilt.
4977bab6 1652
1eb7ba30
BM
1653 * Makefile.am: Define ffitest_OBJECTS.
1654 * Makefile.in: Rebuilt.
ce3b24a7 1655
073ae293
AT
16562002-03-07 Andreas Tobler <toa@pop.agri.ch>
1657 David Edelsohn <edelsohn@gnu.org>
1658
1659 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1660 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1661 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1662 * Makefile.in: Regenerate.
1663 * include/ffi.h.in: Add AIX and Darwin closure definitions.
1664 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1665 (flush_icache, flush_range): New functions.
1666 (ffi_closure_helper_DARWIN): New function.
1667 * src/powerpc/aix_closure.S: New file.
1668 * src/powerpc/darwin_closure.S: New file.
4977bab6 1669
02c521f4
JS
16702002-02-24 Jeff Sturm <jsturm@one-point.com>
1671
1672 * include/ffi.h.in: Add typedef for ffi_arg.
1673 * src/ffitest.c (main): Declare rint with ffi_arg.
4977bab6 1674
287dd527
AT
16752002-02-21 Andreas Tobler <toa@pop.agri.ch>
1676
1677 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1678 number of GPRs for floating-point arguments.
1679
e2f2e70a
AG
16802002-01-31 Anthony Green <green@redhat.com>
1681
1682 * configure: Rebuilt.
1683 * configure.in: Replace CHECK_SIZEOF and endian tests with
1684 cross-compiler friendly macros.
1685 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1686 macros.
1687
15b9b32f
DE
16882002-01-18 David Edelsohn <edelsohn@gnu.org>
1689
1690 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1f7d5413 1691 * src/powerpc/aix.S (ffi_call_DARWIN): New.
15b9b32f 1692
2f4006f8
DE
16932002-01-17 David Edelsohn <edelsohn@gnu.org>
1694
1695 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1696 (TARGET_SRC_POWERPC_AIX): New.
1697 (POWERPC_AIX): New stanza.
1698 * Makefile.in: Regenerate.
1699 * configure.in: Add AIX case.
1700 * configure: Regenerate.
1701 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1702 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1703 size. Fix "long double" support.
1704 (ffi_call): Add FFI_AIX case.
1705 * src/powerpc/aix.S: New.
1706
3c017635
JH
17072001-10-09 John Hornkvist <john@toastedmarshmallow.com>
1708
1709 Implement Darwin PowerPC ABI.
1710 * configure.in: Handle powerpc-*-darwin*.
1711 * Makefile.am: Set source files for POWERPC_DARWIN.
1712 * configure: Rebuilt.
1713 * Makefile.in: Rebuilt.
1714 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1715 POWERPC_DARWIN.
1716 * src/powerpc/darwin.S: New file.
1717 * src/powerpc/ffi_darwin.c: New file.
1718
cc712abf
JM
17192001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1720
1721 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1722
03a8de49
RO
17232001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1724
1725 * src/x86/sysv.S: Avoid gas-only .balign directive.
1726 Use C style comments.
1727
92a0e6c6
RO
17282001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1729
1730 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1731 Fixes PR bootstrap/3563.
1732
57482f58
RO
17332001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1734
1735 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1736
d7e2dd2f
RO
17372001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1738
1739 * configure.in: Recognize sparc*-sun-* host.
1740 * configure: Regenerate.
4977bab6 1741
be72207c
AH
17422001-06-06 Andrew Haley <aph@redhat.com>
1743
4075db8f 1744 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
be72207c 1745
552cb45a
AH
17462001-06-03 Andrew Haley <aph@redhat.com>
1747
4075db8f
BT
1748 * src/alpha/osf.S: Add unwind info.
1749 * src/powerpc/sysv.S: Add unwind info.
1750 * src/powerpc/ppc_closure.S: Likewise.
552cb45a 1751
7d45b968
JS
17522000-05-31 Jeff Sturm <jsturm@one-point.com>
1753
1754 * configure.in: Fix AC_ARG_ENABLE usage.
1755 * configure: Rebuilt.
1756
2a7f63c4
BM
17572001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1758
1759 * configure.in: Remove warning about beta code.
1760 * configure: Rebuilt.
1761
17622001-04-25 Hans Boehm <Hans_Boehm@hp.com>
1763
03a55252
HB
1764 * src/ia64/unix.S: Restore stack pointer when returning from
1765 ffi_closure_UNIX.
1766 * src/ia64/ffi.c: Fix typo in comment.
1767
df5da1c4
JW
17682001-04-18 Jim Wilson <wilson@redhat.com>
1769
1770 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1771 to eliminate RAW DV.
1772
52c28977
BM
17732001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1774
1775 * Makefile.am: Make a libtool convenience library.
1776 * Makefile.in: Rebuilt.
1777
3b905056
BM
17782001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
1779
1780 * configure.in: Use different syntax for subdirectory creation.
1781 * configure: Rebuilt.
1782
d6c4152a
JB
17832001-03-27 Jon Beniston <jon@beniston.com>
1784
1785 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1786 * configure: Rebuilt.
1787 * Makefile.am: Added X86_WIN32 target support.
1788 * Makefile.in: Rebuilt.
1789
1790 * include/ffi.h.in: Added X86_WIN32 target support.
1791
1792 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1793 * src/types.c: Added X86_WIN32 target support.
1794
1795 * src/x86/win32.S: New file. Based on sysv.S, but with EH
1796 stuff removed and made to work with CygWin's gas.
1797
675cdab3
BM
17982001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
1799
1800 * configure.in: Make target subdirectory in build dir.
1801 * Makefile.am: Override suffix based rules to specify correct output
1802 subdirectory.
1803 * Makefile.in: Rebuilt.
1804 * configure: Rebuilt.
1805
e5f8858a 18062001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
cc4c8975
KH
1807
1808 * src/powerpc/ppc_closure.S: New file.
1809 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1810 involving long long and register pairs.
1811 (ffi_prep_closure): New function.
1812 (flush_icache): Likewise.
1813 (ffi_closure_helper_SYSV): Likewise.
1814 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1815 (FFI_TRAMPOLINE_SIZE): Likewise.
1816 (FFI_NATIVE_RAW_API): Likewise.
1817 * Makefile.in: Rebuilt.
1818 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1819 (TARGET_SRC_POWERPC): Likewise.
1820
9450a929
TT
18212001-03-19 Tom Tromey <tromey@redhat.com>
1822
1823 * Makefile.in: Rebuilt.
1824 * Makefile.am (ffitest_LDFLAGS): New macro.
1825
4d2cf715
NC
18262001-03-02 Nick Clifton <nickc@redhat.com>
1827
1828 * include/ffi.h.in: Remove RCS ident string.
1829 * include/ffi_mips.h: Remove RCS ident string.
1830 * src/debug.c: Remove RCS ident string.
1831 * src/ffitest.c: Remove RCS ident string.
1832 * src/prep_cif.c: Remove RCS ident string.
1833 * src/types.c: Remove RCS ident string.
1834 * src/alpha/ffi.c: Remove RCS ident string.
1835 * src/alpha/osf.S: Remove RCS ident string.
1836 * src/arm/ffi.c: Remove RCS ident string.
1837 * src/arm/sysv.S: Remove RCS ident string.
1838 * src/mips/ffi.c: Remove RCS ident string.
1839 * src/mips/n32.S: Remove RCS ident string.
1840 * src/mips/o32.S: Remove RCS ident string.
1841 * src/sparc/ffi.c: Remove RCS ident string.
1842 * src/sparc/v8.S: Remove RCS ident string.
1843 * src/sparc/v9.S: Remove RCS ident string.
1844 * src/x86/ffi.c: Remove RCS ident string.
1845 * src/x86/sysv.S: Remove RCS ident string.
1846
7e5fd99f
JM
18472001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1848
1849 * include/ffi.h.in: Change sourceware.cygnus.com references to
1850 gcc.gnu.org.
1851
3f67ba6e
RH
18522000-12-09 Richard Henderson <rth@redhat.com>
1853
1854 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1855 (ffi_closure_osf_inner): Index rather than increment avalue
1856 and arg_types. Give ffi_closure_osf the raw return value type.
1857 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1858 promotion.
1859
18602000-12-07 Richard Henderson <rth@redhat.com>
29fe0479
RH
1861
1862 * src/raw_api.c (ffi_translate_args): Fix typo.
1863 (ffi_prep_closure): Likewise.
1864
1865 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1866 FFI_TRAMPOLINE_SIZE.
1867 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1868 cif->bytes for new ffi_call_osf implementation.
1869 (ffi_prep_args): Absorb into ...
1870 (ffi_call): ... here. Do all stack allocation here and
1871 avoid a callback function.
1872 (ffi_prep_closure, ffi_closure_osf_inner): New.
1873 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1874 (ffi_closure_osf): New.
1875
2f7bf5b7
AO
18762000-09-10 Alexandre Oliva <aoliva@redhat.com>
1877
ed1c1a1a
AO
1878 * config.guess, config.sub, install-sh: Removed.
1879 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1880 * Makefile.in: Rebuilt.
1881
2f7bf5b7
AO
1882 * acinclude.m4: Include libtool macros from the top level.
1883 * aclocal.m4, configure: Rebuilt.
1884
e15a68e7
AO
18852000-08-22 Alexandre Oliva <aoliva@redhat.com>
1886
1887 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1888 * configure: Rebuilt.
1889
7f8c11d5
SB
18902000-05-11 Scott Bambrough <scottb@netwinder.org>
1891
4977bab6
ZW
1892 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1893 memory correctly. Use conditional instructions, not branches where
7f8c11d5
SB
1894 possible.
1895
c5acf51f
TT
18962000-05-04 Tom Tromey <tromey@cygnus.com>
1897
1898 * configure: Rebuilt.
1899 * configure.in: Match `arm*-*-linux-*'.
1900 From Chris Dornan <cdornan@arm.com>.
1901
91bffbe9
JJ
19022000-04-28 Jakub Jelinek <jakub@redhat.com>
1903
1904 * Makefile.am (SUBDIRS): Define.
1905 (AM_MAKEFLAGS): Likewise.
1906 (Multilib support.): Add section.
1907 * Makefile.in: Rebuilt.
1908 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
4075db8f
BT
1909 New variables. Set for gcc using -print-multi-lib. Export them
1910 to libtool.
1911 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1912 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1913 for -shared links.
1914 (extra_compiler_flags_value, extra_compiler_flags): Check these
1915 for extra compiler options which need to be passed down in
1916 compiler_flags.
91bffbe9 1917
bd66587e
AG
19182000-04-16 Anthony Green <green@redhat.com>
1919
1920 * configure: Rebuilt.
1921 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1922
3791773c
JJ
19232000-04-14 Jakub Jelinek <jakub@redhat.com>
1924
4075db8f 1925 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3791773c
JJ
1926 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1927 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1928 Replace all void * sizeofs with sizeof(int).
1929 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1930 different than DOUBLE.
1931 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1932 (ffi_prep_args_v9): New function.
1933 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1934 (ffi_V9_return_struct): New function.
1935 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1936 32bit code (not yet cross-arch calls).
1937 * src/sparc/v8.S: Add struct return delay nop.
1938 Handle long long.
1939 * src/sparc/v9.S: New file.
1940 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1941 is used on sparc64 only for structures larger than 32 bytes.
1942 Pass by reference for structures is done for structure arguments
1943 larger than 16 bytes.
1944 * src/ffitest.c (main): Use 64bit rint on sparc64.
1945 Run long long tests on sparc.
1946 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1947 sparc64.
1948 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1949 on sparc64.
1950 * configure.in (sparc-*-linux*): New supported target.
1951 (sparc64-*-linux*): Likewise.
1952 * configure: Rebuilt.
1953 * Makefile.am: Add v9.S to SPARC files.
1954 * Makefile.in: Likewise.
1955 (LINK): Surround $(CCLD) into double quotes, so that multilib
1956 compiles work correctly.
1957
db459595
APB
19582000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
1959
1960 * configure: Rebuilt.
1961 * configure.in: (i*86-*-solaris*): New libffi target. Patch
1962 proposed by Bryce McKinlay.
1963
c1f63902
TT
19642000-03-20 Tom Tromey <tromey@cygnus.com>
1965
1966 * Makefile.in: Hand edit for java_raw_api.lo.
1967
0f72dc9e
BM
19682000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
1969
1970 * config.guess, config.sub: Update from the gcc tree.
1971 Fix for PR libgcj/168.
1972
3c18f2d1
TT
19732000-03-03 Tom Tromey <tromey@cygnus.com>
1974
323eee8a
TT
1975 * Makefile.in: Fixed ia64 by hand.
1976
3c18f2d1
TT
1977 * configure: Rebuilt.
1978 * configure.in (--enable-multilib): New option.
1979 (libffi_basedir): New subst.
1980 (AC_OUTPUT): Added multilib code.
1981
a2b10a92
TT
19822000-03-02 Tom Tromey <tromey@cygnus.com>
1983
1984 * Makefile.in: Rebuilt.
1985 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
1986 directory name.
1987
dc5de370
HB
19882000-02-25 Hans Boehm <boehm@acm.org>
1989
1990 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
1991 files.
1992 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
1993 list.
1994 (ffi_prep_raw_closure): Use ffi_translate_args, not
1995 ffi_closure_translate.
1996 * src/java_raw_api.c: New file.
1997 * src/ffitest.c (closure_test_fn): New function.
1998 (main): Define `rint' as long long on IA64. Added new test when
1999 FFI_CLOSURES is defined.
2000 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
2001 (ffi_abi): Recognize IA64.
2002 (ffi_raw): Added `flt' field.
2003 Added "Java raw API" code.
2004 * configure.in: Recognize ia64.
2005 * Makefile.am (TARGET_SRC_IA64): New macro.
2006 (libffi_la_common_SOURCES): Added java_raw_api.c.
2007 (libffi_la_SOURCES): Define in IA64 case.
2008
d79229bd
TT
20092000-01-04 Tom Tromey <tromey@cygnus.com>
2010
2011 * Makefile.in: Rebuilt with newer automake.
2012
2c33b220
TT
20131999-12-31 Tom Tromey <tromey@cygnus.com>
2014
2015 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
2016
6ba9e3b0
TT
20171999-09-01 Tom Tromey <tromey@cygnus.com>
2018
2019 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
2020 undefs.
2021 * fficonfig.h.in: Rebuilt.
2022 * configure: Rebuilt.
2023 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
2024 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
2025 * acconfig.h: Don't #undef PACKAGE or VERSION.
2026
63e5e3e0
AG
20271999-08-09 Anthony Green <green@cygnus.com>
2028
2029 * include/ffi.h.in: Try to work around messy header problem
2030 with PACKAGE and VERSION.
2031
2032 * configure: Rebuilt.
2033 * configure.in: Change version to 2.00-beta.
2034
4075db8f 2035 * fficonfig.h.in: Rebuilt.
63e5e3e0
AG
2036 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
2037
2038 * src/x86/ffi.c (ffi_raw_call): Rename.
2039
20401999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
2041
2042 * src/x86/ffi.c (ffi_closure_SYSV): New function.
2043 (ffi_prep_incoming_args_SYSV): Ditto.
2044 (ffi_prep_closure): Ditto.
2045 (ffi_closure_raw_SYSV): Ditto.
2046 (ffi_prep_raw_closure): More ditto.
2047 (ffi_call_raw): Final ditto.
2048
2049 * include/ffi.h.in: Add definitions for closure and raw API.
2050
2051 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4977bab6 2052 FFI_TYPE_UINT64.
63e5e3e0
AG
2053
2054 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
2055
2056 * src/raw_api.c: New file.
2057
2058 * include/ffi.h.in (ffi_raw): New type.
2059 (UINT_ARG, SINT_ARG): New defines.
2060 (ffi_closure, ffi_raw_closure): New types.
2061 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4977bab6 2062
63e5e3e0
AG
2063 * configure.in: Add check for endianness and sizeof void*.
2064
2065 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
2066 instead of directly.
2067
2068 * configure: Rebuilt.
2069
2070Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
2071
2072 * configure.in: Add x86 and powerpc BeOS configurations.
2073 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
2074
20751999-05-09 Anthony Green <green@cygnus.com>
2076
2077 * configure.in: Add warning about this being beta code.
2078 Remove src/Makefile.am from the picture.
2079 * configure: Rebuilt.
2080
2081 * Makefile.am: Move logic from src/Makefile.am. Add changes
2082 to support libffi as a target library.
2083 * Makefile.in: Rebuilt.
2084
2085 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
2086 Upgraded to new autoconf, automake, libtool.
2087
2088 * README: Tweaks.
2089
2090 * LICENSE: Update copyright date.
2091
2092 * src/Makefile.am, src/Makefile.in: Removed.
2093
20941998-11-29 Anthony Green <green@cygnus.com>
2095
2096 * include/ChangeLog: Removed.
2097 * src/ChangeLog: Removed.
2098 * src/mips/ChangeLog: Removed.
2099 * src/sparc/ChangeLog: Remboved.
2100 * src/x86/ChangeLog: Removed.
2101
2102 * ChangeLog.v1: Created.