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