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