]> git.ipfire.org Git - thirdparty/gcc.git/blob - libffi/ChangeLog
ffitarget.h, ffi.c: Merge stdcall changes from libffi.
[thirdparty/gcc.git] / libffi / ChangeLog
1 2009-06-05 Andrew Haley <aph@redhat.com>
2
3 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
4 libffi.
5
6 2009-06-04 Andrew Haley <aph@redhat.com>
7
8 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
9 stdcall changes.
10
11 2008-02-26 Anthony Green <green@redhat.com>
12 Thomas Heller <theller@ctypes.org>
13
14 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
15 comment.
16
17 2008-02-03 Timothy Wall <twall@users.sf.net>
18
19 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
20 offset based on code pointer, not data pointer.
21
22 2008-01-31 Timothy Wall <twall@users.sf.net>
23
24 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
25 closures.
26 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
27 closures.
28 * src/x86/win32.S: Add assembly for stdcall closure.
29 * src/x86/ffi.c: Initialize stdcall closure trampoline.
30
31 2009-06-04 Andrew Haley <aph@redhat.com>
32
33 * include/ffi.h.in: Change void (*)() to void (*)(void).
34 * src/x86/ffi.c: Likewise.
35
36 2009-06-04 Andrew Haley <aph@redhat.com>
37
38 * src/powerpc/ppc_closure.S: Insert licence header.
39 * src/powerpc/linux64_closure.S: Likewise.
40 * src/m68k/sysv.S: Likewise.
41
42 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
43 * src/powerpc/ffi.c: Likewise.
44 * src/powerpc/ffi_darwin.c: Likewise.
45 * src/m32r/ffi.c: Likewise.
46 * src/sh64/ffi.c: Likewise.
47 * src/x86/ffi64.c: Likewise.
48 * src/alpha/ffi.c: Likewise.
49 * src/alpha/osf.S: Likewise.
50 * src/frv/ffi.c: Likewise.
51 * src/s390/ffi.c: Likewise.
52 * src/pa/ffi.c: Likewise.
53 * src/pa/hpux32.S: Likewise.
54 * src/ia64/unix.S: Likewise.
55 * src/ia64/ffi.c: Likewise.
56 * src/sparc/ffi.c: Likewise.
57 * src/mips/ffi.c: Likewise.
58 * src/sh/ffi.c: Likewise.
59
60 2008-02-15 David Daney <ddaney@avtrex.com>
61
62 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
63 Define (conditionally), and use it to include cachectl.h.
64 (ffi_prep_closure_loc): Fix cache flushing.
65 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
66
67 2009-06-04 Andrew Haley <aph@redhat.com>
68
69 include/ffi.h.in,
70 src/arm/ffitarget.h,
71 src/arm/ffi.c,
72 src/arm/sysv.S,
73 src/powerpc/ffitarget.h,
74 src/closures.c,
75 src/sh64/ffitarget.h,
76 src/sh64/ffi.c,
77 src/sh64/sysv.S,
78 src/types.c,
79 src/x86/ffi64.c,
80 src/x86/ffitarget.h,
81 src/x86/win32.S,
82 src/x86/darwin.S,
83 src/x86/ffi.c,
84 src/x86/sysv.S,
85 src/x86/unix64.S,
86 src/alpha/ffitarget.h,
87 src/alpha/ffi.c,
88 src/alpha/osf.S,
89 src/m68k/ffitarget.h,
90 src/frv/ffitarget.h,
91 src/frv/ffi.c,
92 src/s390/ffitarget.h,
93 src/s390/sysv.S,
94 src/cris/ffitarget.h,
95 src/pa/linux.S,
96 src/pa/ffitarget.h,
97 src/pa/ffi.c,
98 src/raw_api.c,
99 src/ia64/ffitarget.h,
100 src/ia64/unix.S,
101 src/ia64/ffi.c,
102 src/ia64/ia64_flags.h,
103 src/java_raw_api.c,
104 src/debug.c,
105 src/sparc/v9.S,
106 src/sparc/ffitarget.h,
107 src/sparc/ffi.c,
108 src/sparc/v8.S,
109 src/mips/ffitarget.h,
110 src/mips/n32.S,
111 src/mips/o32.S,
112 src/mips/ffi.c,
113 src/prep_cif.c,
114 src/sh/ffitarget.h,
115 src/sh/ffi.c,
116 src/sh/sysv.S: Update license text.
117
118 2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
119
120 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
121 (.eh_frame): Add FDE for it.
122
123 2009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
124
125 * configure.ac: Also check if assembler supports pc-relative
126 relocs on X86_WIN32 targets.
127 * configure: Regenerate.
128 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
129 (_ffi_call_SYSV): Add missing function type symbol .def and
130 add EH markup labels.
131 (_ffi_call_STDCALL): Likewise.
132 (_ffi_closure_SYSV): Likewise.
133 (_ffi_closure_raw_SYSV): Likewise.
134 (.eh_frame): Add hand-crafted EH data.
135
136 2009-04-09 Jakub Jelinek <jakub@redhat.com>
137
138 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
139 version 3 of the GNU General Public License and to point readers
140 at the COPYING3 file and the FSF's license web page.
141 * testsuite/libffi.call/call.exp: Likewise.
142 * testsuite/libffi.special/special.exp: Likewise.
143
144 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
145
146 * configure: Regenerate.
147
148 2008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
149
150 PR libffi/26048
151 * configure.ac (HAVE_AS_X86_PCREL): New test.
152 * configure: Regenerate.
153 * fficonfig.h.in: Regenerate.
154 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
155 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
156 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
157 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
158 * src/x86/unix64.S (.Lstore_table): Move to .text section.
159 (.Lload_table): Likewise.
160 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
161
162 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
163
164 * configure: Regenerate.
165
166 2008-11-21 Eric Botcazou <ebotcazou@adacore.com>
167
168 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
169 signed/unsigned int8/16 return values.
170 * src/sparc/v8.S (ffi_call_v8): Likewise.
171 (ffi_closure_v8): Likewise.
172
173 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
174 Steve Ellcey <sje@cup.hp.com>
175
176 * configure: Regenerate for new libtool.
177 * Makefile.in: Ditto.
178 * include/Makefile.in: Ditto.
179 * aclocal.m4: Ditto.
180
181 2008-08-25 Andreas Tobler <a.tobler@schweiz.org>
182
183 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
184 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
185 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
186 Adjust copyright notice.
187 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
188 register or two register to use for FFI_SYSV structs.
189 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
190 (ffi_closure_helper_SYSV): Fix the return type for
191 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
192 Adjust copyright notice.
193
194 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
195
196 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
197 int.
198
199 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
200
201 * configure: Regenerate.
202 * include/Makefile.in: Regenerate.
203 * testsuite/Makefile.in: Regenerate.
204
205 2008-06-07 Joseph Myers <joseph@codesourcery.com>
206
207 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
208 powerpc-*-beos*): Remove.
209 * configure: Regenerate.
210
211 2008-05-09 Julian Brown <julian@codesourcery.com>
212
213 * Makefile.am (LTLDFLAGS): New.
214 (libffi_la_LDFLAGS): Use above.
215 * Makefile.in: Regenerate.
216
217 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
218
219 PR bootstrap/35457
220 * aclocal.m4: Regenerate.
221 * configure: Regenerate.
222
223 2008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
224
225 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
226 * src/sh64/sysv.S: Likewise.
227
228 2008-03-26 Daniel Jacobowitz <dan@debian.org>
229
230 * src/arm/sysv.S: Fix ARM comment marker.
231
232 2008-03-26 Jakub Jelinek <jakub@redhat.com>
233
234 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
235 * src/s390/sysv.S: Likewise.
236 * src/powerpc/ppc_closure.S: Likewise.
237 * src/powerpc/sysv.S: Likewise.
238 * src/x86/unix64.S: Likewise.
239 * src/x86/sysv.S: Likewise.
240 * src/sparc/v8.S: Likewise.
241 * src/sparc/v9.S: Likewise.
242 * src/m68k/sysv.S: Likewise.
243 * src/arm/sysv.S: Likewise.
244
245 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
246
247 * aclocal.m4: Regenerate.
248 * configure: Likewise.
249 * Makefile.in: Likewise.
250 * include/Makefile.in: Likewise.
251 * testsuite/Makefile.in: Likewise.
252
253 2008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
254 Andreas Tobler <a.tobler@schweiz.org>
255
256 * configure.ac: Add amd64-*-freebsd* target.
257 * configure: Regenerate.
258
259 2008-01-30 H.J. Lu <hongjiu.lu@intel.com>
260
261 PR libffi/34612
262 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
263 returning struct.
264
265 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
266 tests.
267
268 2008-01-24 David Edelsohn <edelsohn@gnu.org>
269
270 * configure: Regenerate.
271
272 2008-01-06 Andreas Tobler <a.tobler@schweiz.org>
273
274 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
275
276 2008-01-05 Andreas Tobler <a.tobler@schweiz.org>
277
278 PR testsuite/32843
279 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
280 signed/unsigned int8/16 for X86_DARWIN.
281 Updated copyright info.
282 Handle one and two byte structs with special cif->flags.
283 * src/x86/ffitarget.h: Add special types for one and two byte structs.
284 Updated copyright info.
285 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
286 sysv.S
287 Remove code to pop args from the stack after call.
288 Special-case signed/unsigned for int8/16, one and two byte structs.
289 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
290 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
291 FFI_TYPE_SINT32.
292 Updated copyright info.
293
294 2007-12-08 David Daney <ddaney@avtrex.com>
295
296 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
297 SUBU, add with ADDU and use smaller code sequences.
298
299 2007-12-07 David Daney <ddaney@avtrex.com>
300
301 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
302 type.
303
304 2007-12-06 David Daney <ddaney@avtrex.com>
305
306 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
307 defined.
308 (ffi_java_raw): New typedef.
309 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
310 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
311 ffi_java_raw.
312 (ffi_java_raw_closure) : Same.
313 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
314 parameter types.
315 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
316 FFI_SIZEOF_JAVA_RAW.
317 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
318 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
319 sizeof(ffi_java_raw) for alignment calculations.
320 (ffi_java_ptrarray_to_raw): Same.
321 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
322 if FFI_SIZEOF_JAVA_RAW == 4.
323 (ffi_java_raw_to_rvalue): Same.
324 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
325 (ffi_java_translate_args): Same.
326 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
327 parameter types.
328 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
329
330 2007-12-06 David Daney <ddaney@avtrex.com>
331
332 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
333 pointer values.
334
335 2007-12-01 Andreas Tobler <a.tobler@schweiz.org>
336
337 PR libffi/31937
338 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
339 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
340 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
341 set the NUM_FPR_ARG_REGISTERS according to.
342 Add support for potential soft-float support under hard-float
343 architecture.
344 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
345 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
346 to the FFI_LINUX_SOFT_FLOAT ABI.
347 (ffi_prep_cif_machdep): Likewise.
348 (ffi_closure_helper_SYSV): Likewise.
349 * src/powerpc/ppc_closure.S: Make sure not to store float/double
350 on archs where __NO_FPRS__ is true.
351 Add FFI_TYPE_UINT128 support.
352 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
353 Adjust copyright notice.
354
355 2007-11-25 Andreas Tobler <a.tobler@schweiz.org>
356
357 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
358 * include/ffi_common.h: ... here.
359 Update copyright.
360
361 2007-11-17 Andreas Tobler <a.tobler@schweiz.org>
362
363 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
364 * src/powerpc/linux64.S: Likewise.
365 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
366 * testsuite/libffi.call/return_ldl.c: New test.
367
368 2007-09-04 <aph@redhat.com>
369
370 * src/arm/sysv.S (UNWIND): New.
371 (Whole file): Conditionally compile unwinder directives.
372 * src/arm/sysv.S: Add unwinder directives.
373
374 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
375 Only treat r0 as a struct address if we're actually returning a
376 struct by address.
377 Only copy the bytes that are actually within a struct.
378 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
379 is returned in r0, not passed by address.
380 (ffi_call): Allocate a word-sized temporary for the case where
381 a composite is returned in r0.
382 (ffi_prep_incoming_args_SYSV): Align as necessary.
383
384 2007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
385
386 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
387 directly using the sys_cacheflush syscall.
388
389 2007-07-27 Andrew Haley <aph@redhat.com>
390
391 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
392
393 2007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
394
395 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
396 * configure.ac: Likewise.
397 * Makefile.in: Regenerate.
398 * include/Makefile.in: Likewise.
399 * testsuite/Makefile.in: Likewise.
400 * configure: Likewise.
401
402 2007-08-24 David Daney <ddaney@avtrex.com>
403
404 * testsuite/libffi.call/return_sl.c: New test.
405
406 2007-08-10 David Daney <ddaney@avtrex.com>
407
408 * testsuite/libffi.call/cls_multi_ushort.c,
409 testsuite/libffi.call/cls_align_uint16.c,
410 testsuite/libffi.call/nested_struct1.c,
411 testsuite/libffi.call/nested_struct3.c,
412 testsuite/libffi.call/cls_7_1_byte.c,
413 testsuite/libffi.call/nested_struct5.c,
414 testsuite/libffi.call/cls_double.c,
415 testsuite/libffi.call/nested_struct7.c,
416 testsuite/libffi.call/cls_sint.c,
417 testsuite/libffi.call/nested_struct9.c,
418 testsuite/libffi.call/cls_20byte1.c,
419 testsuite/libffi.call/cls_multi_sshortchar.c,
420 testsuite/libffi.call/cls_align_sint64.c,
421 testsuite/libffi.call/cls_3byte2.c,
422 testsuite/libffi.call/cls_multi_schar.c,
423 testsuite/libffi.call/cls_multi_uchar.c,
424 testsuite/libffi.call/cls_19byte.c,
425 testsuite/libffi.call/cls_9byte1.c,
426 testsuite/libffi.call/cls_align_float.c,
427 testsuite/libffi.call/closure_fn1.c,
428 testsuite/libffi.call/problem1.c,
429 testsuite/libffi.call/closure_fn3.c,
430 testsuite/libffi.call/cls_sshort.c,
431 testsuite/libffi.call/closure_fn5.c,
432 testsuite/libffi.call/cls_align_double.c,
433 testsuite/libffi.call/nested_struct.c,
434 testsuite/libffi.call/cls_2byte.c,
435 testsuite/libffi.call/nested_struct10.c,
436 testsuite/libffi.call/cls_4byte.c,
437 testsuite/libffi.call/cls_6byte.c,
438 testsuite/libffi.call/cls_8byte.c,
439 testsuite/libffi.call/cls_multi_sshort.c,
440 testsuite/libffi.call/cls_align_sint16.c,
441 testsuite/libffi.call/cls_align_uint32.c,
442 testsuite/libffi.call/cls_20byte.c,
443 testsuite/libffi.call/cls_float.c,
444 testsuite/libffi.call/nested_struct2.c,
445 testsuite/libffi.call/cls_5_1_byte.c,
446 testsuite/libffi.call/nested_struct4.c,
447 testsuite/libffi.call/cls_24byte.c,
448 testsuite/libffi.call/nested_struct6.c,
449 testsuite/libffi.call/cls_64byte.c,
450 testsuite/libffi.call/nested_struct8.c,
451 testsuite/libffi.call/cls_uint.c,
452 testsuite/libffi.call/cls_multi_ushortchar.c,
453 testsuite/libffi.call/cls_schar.c,
454 testsuite/libffi.call/cls_uchar.c,
455 testsuite/libffi.call/cls_align_uint64.c,
456 testsuite/libffi.call/cls_ulonglong.c,
457 testsuite/libffi.call/cls_align_longdouble.c,
458 testsuite/libffi.call/cls_1_1byte.c,
459 testsuite/libffi.call/cls_12byte.c,
460 testsuite/libffi.call/cls_3_1byte.c,
461 testsuite/libffi.call/cls_3byte1.c,
462 testsuite/libffi.call/cls_4_1byte.c,
463 testsuite/libffi.call/cls_6_1_byte.c,
464 testsuite/libffi.call/cls_16byte.c,
465 testsuite/libffi.call/cls_18byte.c,
466 testsuite/libffi.call/closure_fn0.c,
467 testsuite/libffi.call/cls_9byte2.c,
468 testsuite/libffi.call/closure_fn2.c,
469 testsuite/libffi.call/closure_fn4.c,
470 testsuite/libffi.call/cls_ushort.c,
471 testsuite/libffi.call/closure_fn6.c,
472 testsuite/libffi.call/cls_5byte.c,
473 testsuite/libffi.call/cls_align_pointer.c,
474 testsuite/libffi.call/cls_7byte.c,
475 testsuite/libffi.call/cls_align_sint32.c,
476 testsuite/libffi.special/unwindtest_ffi_call.cc,
477 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
478
479 2007-08-10 David Daney <ddaney@avtrex.com>
480
481 PR libffi/28313
482 * configure.ac: Don't treat mips64 as a special case.
483 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
484 * configure: Regenerate
485 * Makefile.in: Ditto.
486 * fficonfig.h.in: Ditto.
487 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
488 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
489 (FFI_DEFAULT_ABI): Set for n64 case.
490 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
491 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
492 (ffi_closure_N32): New function.
493 (.eh_frame): New section
494 * src/mips/o32.S: Clean up comments.
495 (ffi_closure_O32): Pass ffi_closure parameter in $12.
496 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
497 _MIPS_SIM == _ABIN32 throughout.
498 (FFI_MIPS_STOP_HERE): New, use in place of
499 ffi_stop_here.
500 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
501 to support n32/n64 ABIs.
502 (calc_n32_struct_flags): Rewrite.
503 (calc_n32_return_struct_flags): Remove unused variable. Reverse
504 position of flag bits.
505 (ffi_prep_cif_machdep): Rewrite n32 portion.
506 (ffi_call): Enable for n64. Add special handling for small structure
507 return values.
508 (ffi_prep_closure_loc): Add n32 and n64 support.
509 (ffi_closure_mips_inner_O32): Add cast to silence warning.
510 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
511
512 2007-08-08 David Daney <ddaney@avtrex.com>
513
514 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
515 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
516 specifiers.
517 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
518 * testsuite/libffi.call/cls_sint.c (main): Ditto.
519 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
520 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
521 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
522 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
523 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
524 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
525 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
526 * testsuite/libffi.call/return_fl3.c (main): Ditto.
527 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
528 * testsuite/libffi.call/nested_struct.c (main): Ditto.
529 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
530 * testsuite/libffi.call/return_ll1.c (main): Ditto.
531 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
532 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
533 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
534 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
535 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
536 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
537 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
538 * testsuite/libffi.call/cls_uint.c (main): Ditto.
539 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
540 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
541 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
542 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
543 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
544 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
545 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
546 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
547 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
548
549 2007-08-07 Andrew Haley <aph@redhat.com>
550
551 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
552 checkin.
553
554 2007-08-06 Andrew Haley <aph@redhat.com>
555
556 PR testsuite/32843
557 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
558 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
559 FFI_TYPE_SINT32.
560
561 2007-08-02 David Daney <ddaney@avtrex.com>
562
563 * testsuite/libffi.call/return_ul.c (main): Define return type as
564 ffi_arg. Use proper printf conversion specifier.
565
566 2007-07-30 Andrew Haley <aph@redhat.com>
567
568 PR testsuite/32843
569 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
570 signed/unsigned int8/16.
571 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
572 Use a jump table.
573 Remove code to pop args from the stack after call.
574 Special-case signed/unsigned int8/16.
575 * testsuite/libffi.call/return_sc.c (main): Revert.
576
577 2007-07-26 Richard Guenther <rguenther@suse.de>
578
579 PR testsuite/32843
580 * testsuite/libffi.call/return_sc.c (main): Verify call
581 result as signed char, not ffi_arg.
582
583 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
584
585 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
586 * configure: Regenerate.
587
588 2007-07-11 David Daney <ddaney@avtrex.com>
589
590 * src/mips/ffi.c: Don't include sys/cachectl.h.
591 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
592 cacheflush().
593
594 2007-05-18 Aurelien Jarno <aurelien@aurel32.net>
595
596 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
597 from (ffi_prep_closure): ... this.
598 (FFI_INIT_TRAMPOLINE): Adjust.
599
600 2005-12-31 Phil Blundell <pb@reciva.com>
601
602 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
603 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
604 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
605 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
606 (FFI_CLOSURES): Enable closure support.
607
608 2007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
609
610 * testsuite/libffi.call/cls_multi_ushort.c,
611 testsuite/libffi.call/cls_align_uint16.c,
612 testsuite/libffi.call/nested_struct1.c,
613 testsuite/libffi.call/nested_struct3.c,
614 testsuite/libffi.call/cls_7_1_byte.c,
615 testsuite/libffi.call/cls_double.c,
616 testsuite/libffi.call/nested_struct5.c,
617 testsuite/libffi.call/nested_struct7.c,
618 testsuite/libffi.call/cls_sint.c,
619 testsuite/libffi.call/nested_struct9.c,
620 testsuite/libffi.call/cls_20byte1.c,
621 testsuite/libffi.call/cls_multi_sshortchar.c,
622 testsuite/libffi.call/cls_align_sint64.c,
623 testsuite/libffi.call/cls_3byte2.c,
624 testsuite/libffi.call/cls_multi_schar.c,
625 testsuite/libffi.call/cls_multi_uchar.c,
626 testsuite/libffi.call/cls_19byte.c,
627 testsuite/libffi.call/cls_9byte1.c,
628 testsuite/libffi.call/cls_align_float.c,
629 testsuite/libffi.call/closure_fn1.c,
630 testsuite/libffi.call/problem1.c,
631 testsuite/libffi.call/closure_fn3.c,
632 testsuite/libffi.call/cls_sshort.c,
633 testsuite/libffi.call/closure_fn5.c,
634 testsuite/libffi.call/cls_align_double.c,
635 testsuite/libffi.call/cls_2byte.c,
636 testsuite/libffi.call/nested_struct.c,
637 testsuite/libffi.call/nested_struct10.c,
638 testsuite/libffi.call/cls_4byte.c,
639 testsuite/libffi.call/cls_6byte.c,
640 testsuite/libffi.call/cls_8byte.c,
641 testsuite/libffi.call/cls_multi_sshort.c,
642 testsuite/libffi.call/cls_align_uint32.c,
643 testsuite/libffi.call/cls_align_sint16.c,
644 testsuite/libffi.call/cls_float.c,
645 testsuite/libffi.call/cls_20byte.c,
646 testsuite/libffi.call/cls_5_1_byte.c,
647 testsuite/libffi.call/nested_struct2.c,
648 testsuite/libffi.call/cls_24byte.c,
649 testsuite/libffi.call/nested_struct4.c,
650 testsuite/libffi.call/nested_struct6.c,
651 testsuite/libffi.call/cls_64byte.c,
652 testsuite/libffi.call/nested_struct8.c,
653 testsuite/libffi.call/cls_uint.c,
654 testsuite/libffi.call/cls_multi_ushortchar.c,
655 testsuite/libffi.call/cls_schar.c,
656 testsuite/libffi.call/cls_uchar.c,
657 testsuite/libffi.call/cls_align_uint64.c,
658 testsuite/libffi.call/cls_ulonglong.c,
659 testsuite/libffi.call/cls_align_longdouble.c,
660 testsuite/libffi.call/cls_1_1byte.c,
661 testsuite/libffi.call/cls_12byte.c,
662 testsuite/libffi.call/cls_3_1byte.c,
663 testsuite/libffi.call/cls_3byte1.c,
664 testsuite/libffi.call/cls_4_1byte.c,
665 testsuite/libffi.call/cls_6_1_byte.c,
666 testsuite/libffi.call/cls_16byte.c,
667 testsuite/libffi.call/cls_18byte.c,
668 testsuite/libffi.call/closure_fn0.c,
669 testsuite/libffi.call/cls_9byte2.c,
670 testsuite/libffi.call/closure_fn2.c,
671 testsuite/libffi.call/closure_fn4.c,
672 testsuite/libffi.call/cls_ushort.c,
673 testsuite/libffi.call/closure_fn6.c,
674 testsuite/libffi.call/cls_5byte.c,
675 testsuite/libffi.call/cls_align_pointer.c,
676 testsuite/libffi.call/cls_7byte.c,
677 testsuite/libffi.call/cls_align_sint32.c,
678 testsuite/libffi.special/unwindtest_ffi_call.cc,
679 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
680
681 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
682
683 * aclocal.m4: Regenerated.
684
685 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
686
687 * configure: Regenerate.
688
689 2007-05-23 Steve Ellcey <sje@cup.hp.com>
690
691 * Makefile.in: Regenerate.
692 * configure: Regenerate.
693 * aclocal.m4: Regenerate.
694 * include/Makefile.in: Regenerate.
695 * testsuite/Makefile.in: Regenerate.
696
697 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
698
699 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
700 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
701 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
702 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
703 (FFI_CLOSURES): Enable closure support.
704
705 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
706
707 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
708 * configure: Regenerate.
709 * fficonfig.h.in: Regenerate.
710 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
711 CFI_OFFSET,CFI_DEF_CFA): New macros.
712 (ffi_call_SYSV): Add callframe annotation.
713
714 2007-05-10 Roman Zippel <zippel@linux-m68k.org>
715
716 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
717 numerous test suite failures.
718 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
719
720 2007-04-11 Paolo Bonzini <bonzini@gnu.org>
721
722 * Makefile.am (EXTRA_DIST): Bring up to date.
723 * Makefile.in: Regenerate.
724 * src/frv/eabi.S: Remove RCS keyword.
725
726 2007-04-06 Richard Henderson <rth@redhat.com>
727
728 * configure.ac: Tidy target case.
729 (HAVE_LONG_DOUBLE): Allow the target to override.
730 * configure: Regenerate.
731 * include/ffi.h.in: Don't define ffi_type_foo if
732 LIBFFI_HIDE_BASIC_TYPES is defined.
733 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
734 to ffi_type_double.
735 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
736 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
737 (ffi_type_longdouble): Special case for Alpha. Don't define
738 if long double == double.
739
740 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
741 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
742 (ffi_call, ffi_closure_osf_inner): Likewise.
743 (ffi_closure_osf_inner): Likewise. Mark hidden.
744 (ffi_call_osf, ffi_closure_osf): Mark hidden.
745 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
746 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
747 (load_table): Handle 128-bit long double.
748
749 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
750
751 2007-04-06 Tom Tromey <tromey@redhat.com>
752
753 PR libffi/31491:
754 * README: Fixed bug in example.
755
756 2007-04-03 Jakub Jelinek <jakub@redhat.com>
757
758 * src/closures.c: Include sys/statfs.h.
759 (_GNU_SOURCE): Define on Linux.
760 (FFI_MMAP_EXEC_SELINUX): Define.
761 (selinux_enabled): New variable.
762 (selinux_enabled_check): New function.
763 (is_selinux_enabled): Define.
764 (dlmmap): Use it.
765
766 2007-03-24 Uros Bizjak <ubizjak@gmail.com>
767
768 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
769 Use 'volatile float sum' to create sum of floats to avoid false
770 negative due to excess precision on ix86 targets.
771 (main): Ditto.
772
773 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
774
775 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
776 patch.
777 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
778
779 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
780
781 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
782 (ffi_prep_closure_loc): New.
783 (ffi_prep_raw_closure_loc): New.
784 (ffi_prep_java_raw_closure_loc): New.
785 * src/closures.c: New file.
786 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
787 Replace sflags with exec_offset.
788 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
789 sub_segment_exec_offset): New macros.
790 (get_segment_flags, set_segment_flags, check_segment_merge): New
791 macros.
792 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
793 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
794 destroy_mspace): Use new macros.
795 (sys_alloc): Silence warning.
796 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
797 * Makefile.in: Rebuilt.
798 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
799 terms of ffi_prep_closure_loc.
800 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
801 from...
802 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
803 renamed version.
804 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
805 adjusted from...
806 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
807 the renamed version.
808 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
809 (ffi_prep_closure): ... this.
810 * src/pa/ffi.c: Likewise.
811 * src/cris/ffi.c: Likewise. Adjust.
812 * src/frv/ffi.c: Likewise.
813 * src/ia64/ffi.c: Likewise.
814 * src/mips/ffi.c: Likewise.
815 * src/powerpc/ffi_darwin.c: Likewise.
816 * src/s390/ffi.c: Likewise.
817 * src/sh/ffi.c: Likewise.
818 * src/sh64/ffi.c: Likewise.
819 * src/sparc/ffi.c: Likewise.
820 * src/x86/ffi64.c: Likewise.
821 * src/x86/ffi.c: Likewise.
822 (FFI_INIT_TRAMPOLINE): Adjust.
823 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
824 (ffi_prep_raw_closure): ... this.
825 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
826 (ffi_prep_closure): ... this.
827 (flush_icache): Adjust.
828
829 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
830
831 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
832 Lea's malloc.
833
834 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
835
836 * Makefile.am: Add dummy install-pdf target.
837 * Makefile.in: Regenerate
838
839 2007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
840
841 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
842 ffi_closure_helper_SYSV): Add long double handling.
843
844 2007-02-02 Jakub Jelinek <jakub@redhat.com>
845
846 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
847 immediately after bctrl instruction.
848
849 2007-01-18 Alexandre Oliva <aoliva@redhat.com>
850
851 * Makefile.am (all-recursive, install-recursive,
852 mostlyclean-recursive, clean-recursive, distclean-recursive,
853 maintainer-clean-recursive): Add missing targets.
854 * Makefile.in: Rebuilt.
855
856 2006-12-14 Andreas Tobler <a.tobler@schweiz.org>
857
858 * configure.ac: Add TARGET for x86_64-*-darwin*.
859 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
860 for X86_DARWIN.
861 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
862 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
863 * configure: Regenerate.
864 * Makefile.in: Regenerate.
865 * include/Makefile.in: Regenerate.
866 * testsuite/Makefile.in: Regenerate.
867 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
868 ffi_call only.
869
870 2006-12-13 Andreas Tobler <a.tobler@schweiz.org>
871
872 * aclocal.m4: Regenerate with aclocal -I .. as written in the
873 Makefile.am.
874
875 2006-10-31 Geoffrey Keating <geoffk@apple.com>
876
877 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
878 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
879 Darwin.
880 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
881 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
882
883 2006-10-10 Paolo Bonzini <bonzini@gnu.org>
884 Sandro Tolaini <tolaini@libero.it>
885
886 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
887 conditional.
888 * configure: Regenerated.
889 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
890 (EXTRA_DIST): Add src/x86/darwin.S.
891 * Makefile.in: Regenerated.
892 * include/Makefile.in: Regenerated.
893 * testsuite/Makefile.in: Regenerated.
894
895 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
896 X86_WIN32, and additionally align stack to 16 bytes.
897 * src/x86/darwin.S: New, based on sysv.S.
898 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
899
900 2006-09-12 David Daney <ddaney@avtrex.com>
901
902 PR libffi/23935
903 * include/Makefile.am: Install both ffi.h and ffitarget.h in
904 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
905 * aclocal.m4: Regenerated for automake 1.9.6.
906 * Makefile.in: Regenerated.
907 * include/Makefile.in: Regenerated.
908 * testsuite/Makefile.in: Regenerated.
909
910 2006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
911
912 * include/ffi_common.h (struct): Revert accidental commit.
913
914 2006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
915
916 * include/ffi_common.h: Remove lint directives.
917 * include/ffi.h.in: Likewise.
918
919 2006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
920
921 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
922 for 32-bit architectures.
923 * testsuite/libffi.call/return_ul.c: New test case.
924
925 2006-07-19 David Daney <ddaney@avtrex.com>
926
927 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
928 xfail remains for mips64.
929
930 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
931
932 * Makefile.am: Add install-html target. Add install-html to .PHONY
933 * Makefile.in: Regenerate.
934 * aclocal.m4: Regenerate.
935 * include/Makefile.in: Regenerate.
936 * testsuite/Makefile.in: Regenerate.
937
938 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
939
940 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
941 stack slot.
942
943 2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
944
945 * README: Remove notice about 'Crazy Comments'.
946 * src/debug.c: Remove lint directives. Cleanup white spaces.
947 * src/java_raw_api.c: Likewise.
948 * src/prep_cif.c: Likewise.
949 * src/raw_api.c: Likewise.
950 * src/ffitest.c: Delete. No longer needed, all test cases migrated
951 to the testsuite.
952 * src/arm/ffi.c: Remove lint directives.
953 * src/m32r/ffi.c: Likewise.
954 * src/pa/ffi.c: Likewise.
955 * src/powerpc/ffi.c: Likewise.
956 * src/powerpc/ffi_darwin.c: Likewise.
957 * src/sh/ffi.c: Likewise.
958 * src/sh64/ffi.c: Likewise.
959 * src/x86/ffi.c: Likewise.
960 * testsuite/libffi.call/float2.c: Likewise.
961 * testsuite/libffi.call/promotion.c: Likewise.
962 * testsuite/libffi.call/struct1.c: Likewise.
963
964 2006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
965
966 * src/pa/hpux32.S: Correct unwind offset calculation for
967 ffi_closure_pa32.
968 * src/pa/linux.S: Likewise.
969
970 2006-04-12 James E Wilson <wilson@specifix.com>
971
972 PR libgcj/26483
973 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
974 (hfa_type_load): Call stf_spill.
975 (hfa_type_store): Call ldf_fill.
976 (ffi_call): Adjust calls to above routines. Add local temps for
977 macro result.
978
979 2006-04-10 Matthias Klose <doko@debian.org>
980
981 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
982 directory names containing underscores.
983
984 2006-04-07 James E Wilson <wilson@specifix.com>
985
986 * testsuite/libffi.call/float4.c: New testcase.
987
988 2006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
989 Andreas Tobler <a.tobler@schweiz.ch>
990
991 * Makefile.am: Add PA_HPUX port.
992 * Makefile.in: Regenerate.
993 * include/Makefile.in: Likewise.
994 * testsuite/Makefile.in: Likewise.
995 * configure.ac: Add PA_HPUX rules.
996 * configure: Regenerate.
997 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
998 Add PA_HPUX and PA64_HPUX.
999 Rename FFI_LINUX ABI to FFI_PA32 ABI.
1000 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
1001 (FFI_TYPE_SMALL_STRUCT2): Define.
1002 (FFI_TYPE_SMALL_STRUCT4): Likewise.
1003 (FFI_TYPE_SMALL_STRUCT8): Likewise.
1004 (FFI_TYPE_SMALL_STRUCT3): Redefine.
1005 (FFI_TYPE_SMALL_STRUCT5): Likewise.
1006 (FFI_TYPE_SMALL_STRUCT6): Likewise.
1007 (FFI_TYPE_SMALL_STRUCT7): Likewise.
1008 * src/pa/ffi.c (ROUND_DOWN): Delete.
1009 (fldw, fstw, fldd, fstd): Use '__asm__'.
1010 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
1011 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
1012 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
1013 Simplify incrementing of stack slot variable. Change type of local
1014 'n' to unsigned int.
1015 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
1016 double on PA_HPUX.
1017 (ffi_prep_cif_machdep): Likewise.
1018 (ffi_call): Likewise.
1019 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
1020 return type to ffi_status. Simplify incrementing of stack slot
1021 variable. Only copy floating point argument registers when PA_LINUX
1022 is true. Reformat debug statement.
1023 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
1024 FFI_TYPE_SMALL_STRUCT8.
1025 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
1026 declaration.
1027 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
1028 Add nops to cache flush. Add trampoline for PA_HPUX.
1029 * src/pa/hpux32.S: New file.
1030 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
1031 ffi_prep_args_LINUX to ffi_prep_args_pa32.
1032 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
1033 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
1034 argument type checks so that common argument types appear first.
1035 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
1036 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
1037
1038 2006-03-24 Alan Modra <amodra@bigpond.net.au>
1039
1040 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
1041 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
1042 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
1043 FFI_TYPE_LONGDOUBLE.
1044 (ffi_prep_args64): Assert using IBM extended double.
1045 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
1046 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
1047 (ffi_call): Handle FFI_LINUX.
1048 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
1049 gpr3 return pointer as for struct return. Handle FFI_LINUX
1050 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
1051 unnecessarily.
1052 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
1053 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
1054 Don't use r6 as pointer to results, instead use sp offset. Don't
1055 make a special call to load lr with case table address, instead
1056 use offset from previous call.
1057 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
1058 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
1059 return.
1060
1061 2006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
1062
1063 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
1064 passed with FP registers correctly.
1065 (ffi_closure_helper_SYSV): Likewise.
1066 * src/sh64/sysv.S: Likewise.
1067
1068 2006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
1069
1070 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
1071 args and userdata unused.
1072 (closure_test_fn1): Mark cif and userdata unused.
1073 (main): Remove unused res.
1074
1075 2006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
1076
1077 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
1078 -O2, -O3, -Os and the warning flags -W -Wall.
1079 * testsuite/libffi.special/special.exp: Likewise.
1080 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
1081 unused parameter unused for gcc or else do nothing.
1082 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1083 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
1084 and userdata unused.
1085 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
1086 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
1087 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
1088 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
1089 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
1090 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
1091 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
1092 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
1093 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
1094 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
1095 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
1096 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
1097 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
1098 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
1099 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
1100 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
1101 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
1102 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
1103 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
1104 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
1105 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
1106 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
1107 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
1108 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
1109 Likewise.
1110 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
1111 Likewise.
1112 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
1113 Likewise.
1114 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
1115 void* to avoid compiler warning.
1116 (main): Likewise.
1117 (cls_struct_align_gn): Mark cif and userdata unused.
1118 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
1119 Likewise.
1120 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
1121 Likewise.
1122 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
1123 Likewise.
1124 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
1125 Likewise.
1126 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
1127 Likewise.
1128 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
1129 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
1130 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
1131 data unused.
1132 (main): Cast res_call to silence gcc.
1133 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
1134 data unused.
1135 (main): Cast res_call to silence gcc.
1136 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
1137 and data unused.
1138 (main): Cast res_call to silence gcc.
1139 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
1140 data unused.
1141 (main): Cast res_call to silence gcc.
1142 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
1143 data unused.
1144 (main): Cast res_call to silence gcc.
1145 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
1146 and data unused.
1147 (main): Cast res_call to silence gcc.
1148 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
1149 userdata unused.
1150 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
1151 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
1152 userdata unused.
1153 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
1154 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
1155 userdata unused.
1156 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
1157 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
1158 userdata unused.
1159 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
1160 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
1161 userdata unused.
1162 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
1163 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
1164 and userdata unused.
1165 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
1166 userdata unused.
1167 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
1168 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
1169 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
1170 Cleanup white spaces.
1171 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
1172 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
1173 cif and userdata unused.
1174 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
1175 Likewise.
1176 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
1177 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
1178 formatters to silence gcc.
1179 (B_gn): Mark cif and userdata unused.
1180 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
1181 unused.
1182 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
1183 (B_gn): Mark cif and userdata unused.
1184 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
1185 unused.
1186 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
1187 (B_gn): Mark cif and userdata unused.
1188 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
1189 unused.
1190 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
1191 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
1192 * testsuite/libffi.call/problem1.c (stub): Likewise.
1193 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
1194 gcc.
1195 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
1196 in the last commit for this test case in the test case itself.
1197 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
1198 unused.
1199 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
1200 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
1201 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
1202 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
1203 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
1204 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
1205
1206 2006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
1207
1208 * src/sh/sysv.S: Fix register numbers in the FDE for
1209 ffi_closure_SYSV.
1210
1211 2006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
1212
1213 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
1214 declaration to avoid a false negative on ix86. See PR323.
1215
1216 2006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
1217
1218 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
1219 and cast integer to void * if needed. Update the pointer to
1220 the FP register saved area correctly.
1221
1222 2006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
1223
1224 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
1225 is fixed.
1226 * testsuite/libffi.call/nested_struct4.c: Likewise.
1227
1228 2006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
1229
1230 * testsuite/libffi.call/return_dbl.c: New test case.
1231 * testsuite/libffi.call/return_dbl1.c: Likewise.
1232 * testsuite/libffi.call/return_dbl2.c: Likewise.
1233 * testsuite/libffi.call/return_fl.c: Likewise.
1234 * testsuite/libffi.call/return_fl1.c: Likewise.
1235 * testsuite/libffi.call/return_fl2.c: Likewise.
1236 * testsuite/libffi.call/return_fl3.c: Likewise.
1237 * testsuite/libffi.call/closure_fn6.c: Likewise.
1238
1239 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
1240 definition.
1241 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
1242 here to be used by other test cases too.
1243
1244 * testsuite/libffi.call/nested_struct10.c: New test case.
1245 * testsuite/libffi.call/nested_struct9.c: Likewise.
1246 * testsuite/libffi.call/nested_struct8.c: Likewise.
1247 * testsuite/libffi.call/nested_struct7.c: Likewise.
1248 * testsuite/libffi.call/nested_struct6.c: Likewise.
1249 * testsuite/libffi.call/nested_struct5.c: Likewise.
1250 * testsuite/libffi.call/nested_struct4.c: Likewise.
1251
1252 2006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1253
1254 * configure.ac: Enable libffi for sparc64-*-freebsd*.
1255 * configure: Rebuilt.
1256
1257 2006-01-18 Jakub Jelinek <jakub@redhat.com>
1258
1259 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
1260 instead do the shifting inline.
1261 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
1262 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
1263 and 8 byte structs, for the remaining struct sizes don't call
1264 __lshrdi3, instead do the shifting inline.
1265
1266 2005-12-07 Thiemo Seufer <ths@networkno.de>
1267
1268 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
1269 missing parentheses.
1270 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
1271 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
1272 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
1273 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
1274 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
1275 FA_0_0_OFF2.
1276 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
1277 endianness bugs.
1278 (ffi_prep_closure): Improve trampoline instruction scheduling.
1279 (ffi_closure_mips_inner_O32): Fix endianness bugs.
1280
1281 2005-12-03 Alan Modra <amodra@bigpond.net.au>
1282
1283 * src/powerpc/ffi.c: Formatting.
1284 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
1285 (ffi_prep_args64): Likewise.
1286
1287 2005-09-30 Geoffrey Keating <geoffk@apple.com>
1288
1289 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
1290 darwin, use -shared-libgcc not -lgcc_s, and explain why.
1291
1292 2005-09-26 Tom Tromey <tromey@redhat.com>
1293
1294 * testsuite/libffi.call/float1.c (value_type): New typedef.
1295 (CANARY): New define.
1296 (main): Check for result buffer overflow.
1297 * src/powerpc/linux64.S: Handle linux64 long double returns.
1298 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
1299 (ffi_prep_cif_machdep): Handle linux64 long double returns.
1300
1301 2005-08-25 Alan Modra <amodra@bigpond.net.au>
1302
1303 PR target/23404
1304 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
1305 homed fp args.
1306 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
1307
1308 2005-08-11 Jakub Jelinek <jakub@redhat.com>
1309
1310 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
1311 (AH_BOTTOM): Add FFI_HIDDEN definition.
1312 * configure: Rebuilt.
1313 * fficonfig.h.in: Rebuilt.
1314 * src/powerpc/ffi.c (hidden): Remove.
1315 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
1316 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
1317 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
1318 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
1319 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
1320 add FFI_HIDDEN to its prototype.
1321 (ffi_closure_SYSV_inner): New.
1322 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
1323 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
1324
1325 2005-08-10 Alfred M. Szmidt <ams@gnu.org>
1326
1327 PR libffi/21819:
1328 * configure: Rebuilt.
1329 * configure.ac: Handle i*86-*-gnu*.
1330
1331 2005-08-09 Jakub Jelinek <jakub@redhat.com>
1332
1333 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
1334 DW_CFA_offset_extended_sf rather than
1335 DW_CFA_GNU_negative_offset_extended.
1336 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
1337
1338 2005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1339
1340 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
1341 on sh3.
1342 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
1343 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
1344 partially on register.
1345 (ffi_closure_helper_SYSV): Likewise.
1346 (ffi_prep_cif_machdep): Don't set too many cif->flags.
1347
1348 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1349
1350 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
1351 Remove empty line.
1352 * src/sh64/ffi.c (simple_type): Remove.
1353 (return_type): Handle small structures correctly.
1354 (ffi_prep_args): Likewise.
1355 (ffi_call): Likewise.
1356 (ffi_closure_helper_SYSV): Likewise.
1357 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
1358 Emit position independent code if PIC and remove wrong datalabel
1359 prefixes from EH data.
1360
1361 2005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
1362
1363 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
1364 * Makefile.in: Regenerate.
1365 * include/Makefile.in: Likewise.
1366 * testsuite/Makefile.in: Likewise.
1367 * configure.ac: Add POWERPC_FREEBSD rules.
1368 * configure: Regenerate.
1369 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
1370 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
1371 * src/powerpc/ffi.c: Add flags to handle small structure returns
1372 in ffi_call_SYSV.
1373 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
1374 Aka FFI_SYSV.
1375 (ffi_closure_helper_SYSV): Likewise.
1376 * src/powerpc/ppc_closure.S: Add return types for small structures.
1377 * src/powerpc/sysv.S: Add bits to handle small structures for
1378 final SYSV 4 ABI.
1379
1380 2005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
1381
1382 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
1383 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
1384 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
1385
1386 2005-07-05 Randolph Chung <tausq@debian.org>
1387
1388 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
1389 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
1390 structures. Kill compilation warnings.
1391 (ffi_closure_inner_LINUX): Print return values as hex in debug
1392 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
1393 Properly handle 5-7 byte structure returns.
1394 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
1395 (FFI_TYPE_SMALL_STRUCT2): Remove.
1396 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
1397 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
1398 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
1399 (checksmst1, checksmst2): Remove.
1400 (checksmst3): Optimize handling of 3-byte struct returns.
1401 (checksmst567): Properly handle 5-7 byte struct returns.
1402
1403 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1404
1405 PR libgcj/21943
1406 * src/mips/n32.S: Enforce PIC code.
1407 * src/mips/o32.S: Likewise.
1408
1409 2005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1410
1411 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
1412 * configure: Regenerate.
1413
1414 2005-06-01 Alan Modra <amodra@bigpond.net.au>
1415
1416 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
1417 to call ffi_closure_helper_SYSV. Append @local instead.
1418 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
1419
1420 2005-05-17 Kelley Cook <kcook@gcc.gnu.org>
1421
1422 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
1423 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
1424 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
1425 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
1426 include/Makefile.in, testsuite/Makefile.in: Regenerate.
1427
1428 2005-05-09 Mike Stump <mrs@apple.com>
1429
1430 * configure: Regenerate.
1431
1432 2005-05-08 Richard Henderson <rth@redhat.com>
1433
1434 PR libffi/21285
1435 * src/alpha/osf.S: Update unwind into to match code.
1436
1437 2005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
1438 Richard Henderson <rth@redhat.com>
1439
1440 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
1441 bit 11 of flags.
1442 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
1443 (ffi_prep_closure): Set carry bit if sse-used flag set.
1444 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
1445 Only load sse registers if ssecount non-zero.
1446 (ffi_closure_unix64): Only save sse registers if carry set on entry.
1447
1448 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1449
1450 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
1451 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
1452 * configure: Regenerate.
1453
1454 2005-04-20 Hans-Peter Nilsson <hp@axis.com>
1455
1456 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
1457 have Tcl8.3-compatible intermediate variable.
1458
1459 2005-04-18 Simon Posnjak <simon.posnjak@siol.net>
1460 Hans-Peter Nilsson <hp@axis.com>
1461
1462 * Makefile.am: Add CRIS support.
1463 * configure.ac: Likewise.
1464 * Makefile.in, configure, testsuite/Makefile.in,
1465 include/Makefile.in: Regenerate.
1466 * src/cris: New directory.
1467 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
1468 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
1469
1470 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
1471 \r?\n in output tests.
1472
1473 2005-04-12 Mike Stump <mrs@apple.com>
1474
1475 * configure: Regenerate.
1476
1477 2005-03-30 Hans Boehm <Hans.Boehm@hp.com>
1478
1479 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
1480
1481 2005-03-30 Steve Ellcey <sje@cup.hp.com>
1482
1483 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
1484 (ffi_sarg) Ditto.
1485 * src/ia64/unix.S (ffi_closure_unix): Extend gp
1486 to 64 bits in ILP32 mode.
1487 Load 64 bits even for short data.
1488
1489 2005-03-23 Mike Stump <mrs@apple.com>
1490
1491 * src/powerpc/darwin.S: Update for -m64 multilib.
1492 * src/powerpc/darwin_closure.S: Likewise.
1493
1494 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1495
1496 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
1497 Do not set tool_include_dir.
1498 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
1499 Regenerate.
1500 * include/Makefile.am: Set gcc_version and toollibffidir.
1501 * include/Makefile.in: Regenerate.
1502
1503 2005-02-22 Andrew Haley <aph@redhat.com>
1504
1505 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
1506 odd-numbered register pairs for 64-bit integer types.
1507
1508 2005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
1509
1510 PR libffi/20104
1511 * testsuite/libffi.call/return_ll1.c: New test case.
1512
1513 2005-02-11 Janis Johnson <janis187@us.ibm.com>
1514
1515 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
1516 * testsuite/libffi.call/float.c: Ditto.
1517 * testsuite/libffi.call/float2.c: Ditto.
1518 * testsuite/libffi.call/float3.c: Ditto.
1519
1520 2005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
1521
1522 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
1523
1524 2005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1525
1526 * testsuite/libffi.special/special.exp (cxx_options): Add
1527 -shared-libgcc.
1528
1529 2004-12-31 Richard Henderson <rth@redhat.com>
1530
1531 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
1532 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
1533 offset parameters with a type parameter; deduce size and structure
1534 alignment. Update all users.
1535
1536 2004-12-31 Richard Henderson <rth@redhat.com>
1537
1538 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
1539 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
1540 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
1541 into ffi_prep_closure.
1542 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
1543 from scratch.
1544
1545 2004-12-27 Richard Henderson <rth@redhat.com>
1546
1547 * src/x86/unix64.S: Fix typo in unwind info.
1548
1549 2004-12-25 Richard Henderson <rth@redhat.com>
1550
1551 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
1552 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
1553 (merge_classes): Check for it.
1554 (SSE_CLASS_P): New.
1555 (classify_argument): Pass byte_offset by value; perform all updates
1556 inside struct case.
1557 (examine_argument): Add classes argument; handle
1558 X86_64_COMPLEX_X87_CLASS.
1559 (ffi_prep_args): Merge into ...
1560 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
1561 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
1562 (ffi_fill_return_value): Remove.
1563 (ffi_prep_closure): Remove dead assert.
1564 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
1565 Rewrite to use struct register_args instead of va_list. Create
1566 flags for handling structure returns.
1567 * src/x86/unix64.S: Remove dead strings.
1568 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
1569 stack frame with ffi_call. Handle structure returns properly.
1570 (float2sse, floatfloat2sse, double2sse): Remove.
1571 (sse2float, sse2double, sse2floatfloat): Remove.
1572 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
1573 to handle structure returns properly.
1574
1575 2004-12-08 David Edelsohn <edelsohn@gnu.org>
1576
1577 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
1578 PICFLAG.
1579 * Makefile.in: Regenerated.
1580
1581 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1582
1583 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1584 * configure, aclocal.m4, Makefile.in: Regenerate.
1585 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
1586
1587 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1588
1589 * configure: Regenerate for libtool change.
1590
1591 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1592
1593 * configure: Regenerate for libtool reversion.
1594
1595 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1596
1597 * configure: Regenerate for libtool change.
1598
1599 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1600
1601 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
1602
1603 2004-11-23 Richard Sandiford <rsandifo@redhat.com>
1604
1605 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
1606 of jal. Use an absolute encoding for the frame information.
1607
1608 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
1609
1610 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
1611 * acinclude.m4: Delete logic for sincludes.
1612 * aclocal.m4, Makefile.in, configure: Regenerate.
1613 * include/Makefile: Likewise.
1614 * testsuite/Makefile: Likewise.
1615
1616 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1617
1618 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
1619 on a 8-byte boundary.
1620 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
1621
1622 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
1623
1624 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
1625 long long values. Round stack allocation to a multiple of 8 bytes
1626 for ATPCS compatibility.
1627 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
1628 names. Handle returning long long types. Add Thumb and interworking
1629 support. Improve soft-float code.
1630
1631 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
1632
1633 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
1634 (libffi_exit): New function.
1635 (libffi_init): Build the testglue wrapper if needed.
1636
1637 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
1638
1639 PR other/18138
1640 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
1641
1642 2004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1643
1644 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
1645
1646 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
1647
1648 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
1649 * testsuite/libffi.call/float3.c: New test case.
1650
1651 2004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
1652
1653 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
1654 the function returning a structure pointed with R2.
1655 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
1656 the structure return value if T bit set. Emit position
1657 independent code and EH data if PIC.
1658
1659 2004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1660
1661 * Makefile.am: Add m32r support.
1662 * configure.ac: Likewise.
1663 * Makefile.in: Regenerate.
1664 * confiugre: Regenerate.
1665 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
1666 (uint64, sint64, double, longdouble)
1667 * src/m32r: New directory.
1668 * src/m32r/ffi.c: New file.
1669 * src/m32r/sysv.S: Likewise.
1670 * src/m32r/ffitarget.h: Likewise.
1671
1672 2004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
1673
1674 * testsuite/libffi.call/negint.c: New test case.
1675
1676 2004-09-14 H.J. Lu <hongjiu.lu@intel.com>
1677
1678 PR libgcj/17465
1679 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
1680 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
1681 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
1682 DYLD_LIBRARY_PATH.
1683
1684 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
1685
1686 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
1687 * testsuite/libffi.call/promotion.c: Likewise.
1688 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
1689 whitespaces.
1690 * testsuite/libffi.call/return_sc.c: Likewise.
1691 * testsuite/libffi.call/return_uc.c: Likewise.
1692
1693 2004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
1694
1695 * src/powerpc/darwin.S: Fix comments and identation.
1696 * src/powerpc/darwin_closure.S: Likewise.
1697
1698 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
1699
1700 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
1701 (ffi_prep_args): Handle longdouble arguments.
1702 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
1703 longdouble.
1704 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
1705 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
1706 values.
1707 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
1708 * src/types.c: Defined longdouble size and alignment for darwin.
1709
1710 2004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
1711
1712 * src/powerpc/aix.S: Remove whitespaces.
1713 * src/powerpc/aix_closure.S: Likewise.
1714 * src/powerpc/asm.h: Likewise.
1715 * src/powerpc/ffi.c: Likewise.
1716 * src/powerpc/ffitarget.h: Likewise.
1717 * src/powerpc/linux64.S: Likewise.
1718 * src/powerpc/linux64_closure.S: Likewise.
1719 * src/powerpc/ppc_closure.S: Likewise.
1720 * src/powerpc/sysv.S: Likewise.
1721
1722 2004-08-30 Anthony Green <green@redhat.com>
1723
1724 * Makefile.am: Add frv support.
1725 * Makefile.in, testsuite/Makefile.in: Rebuilt.
1726 * configure.ac: Read configure.host.
1727 * configure.in: Read configure.host.
1728 * configure.host: New file. frv-elf needs libgloss.
1729 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
1730 alignment. This is needed to frv and shouldn't harm the others.
1731 * include/ffi_common.h (ALIGN_DOWN): New macro.
1732 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
1733
1734 2004-08-24 David Daney <daney@avtrex.com>
1735
1736 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
1737 * testsuite/libffi.call/closure_fn1.c: Likewise.
1738 * testsuite/libffi.call/closure_fn2.c Likewise.
1739 * testsuite/libffi.call/closure_fn3.c: Likewise.
1740 * testsuite/libffi.call/closure_fn4.c: Likewise.
1741 * testsuite/libffi.call/closure_fn5.c: Likewise.
1742 * testsuite/libffi.call/cls_18byte.c: Likewise.
1743 * testsuite/libffi.call/cls_19byte.c: Likewise.
1744 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
1745 * testsuite/libffi.call/cls_20byte.c: Likewise.
1746 * testsuite/libffi.call/cls_20byte1.c: Likewise.
1747 * testsuite/libffi.call/cls_24byte.c: Likewise.
1748 * testsuite/libffi.call/cls_2byte.c: Likewise.
1749 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
1750 * testsuite/libffi.call/cls_3byte1.c: Likewise.
1751 * testsuite/libffi.call/cls_3byte2.c: Likewise.
1752 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
1753 * testsuite/libffi.call/cls_4byte.c: Likewise.
1754 * testsuite/libffi.call/cls_64byte.c: Likewise.
1755 * testsuite/libffi.call/cls_6byte.c: Likewise.
1756 * testsuite/libffi.call/cls_7byte.c: Likewise.
1757 * testsuite/libffi.call/cls_8byte.c: Likewise.
1758 * testsuite/libffi.call/cls_9byte1.c: Likewise.
1759 * testsuite/libffi.call/cls_9byte2.c: Likewise.
1760 * testsuite/libffi.call/cls_align_double.c: Likewise.
1761 * testsuite/libffi.call/cls_align_float.c: Likewise.
1762 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
1763 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
1764 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
1765 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
1766 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
1767 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
1768 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
1769 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
1770 * testsuite/libffi.call/cls_double.c: Likewise.
1771 * testsuite/libffi.call/cls_float.c: Likewise.
1772 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
1773 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
1774 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
1775 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
1776 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
1777 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
1778 * testsuite/libffi.call/cls_schar.c: Likewise.
1779 * testsuite/libffi.call/cls_sint.c: Likewise.
1780 * testsuite/libffi.call/cls_sshort.c: Likewise.
1781 * testsuite/libffi.call/cls_uchar.c: Likewise.
1782 * testsuite/libffi.call/cls_uint.c: Likewise.
1783 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
1784 * testsuite/libffi.call/cls_ushort.c: Likewise.
1785 * testsuite/libffi.call/nested_struct.c: Likewise.
1786 * testsuite/libffi.call/nested_struct1.c: Likewise.
1787 * testsuite/libffi.call/nested_struct2.c: Likewise.
1788 * testsuite/libffi.call/nested_struct3.c: Likewise.
1789 * testsuite/libffi.call/problem1.c: Likewise.
1790 * testsuite/libffi.special/unwindtest.cc: Likewise.
1791 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
1792 to zero.
1793 * testsuite/libffi.call/cls_16byte.c: Likewise.
1794 * testsuite/libffi.call/cls_5byte.c: Likewise.
1795
1796 2004-08-23 David Daney <daney@avtrex.com>
1797
1798 PR libgcj/13141
1799 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
1800 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
1801 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
1802 parameters and return types.
1803 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
1804 (ffi_prep_closure): Ditto.
1805 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
1806 alignment calculations.
1807 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
1808 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
1809
1810 2004-08-14 Casey Marshall <csm@gnu.org>
1811
1812 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
1813 contain `FFI_TYPE_UINT64' as return type for any 64-bit
1814 integer (O32 ABI only).
1815 (ffi_prep_closure): new function.
1816 (ffi_closure_mips_inner_O32): new function.
1817 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
1818 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
1819 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
1820 64 bit integers correctly.
1821 (ffi_closure_O32): new function.
1822 Added DWARF-2 unwind info for both functions.
1823
1824 2004-08-10 Andrew Haley <aph@redhat.com>
1825
1826 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
1827
1828 2004-08-01 Robert Millan <robertmh@gnu.org>
1829
1830 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
1831 * configure: Regenerate.
1832
1833 2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
1834
1835 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
1836 and mmap() explicitly instead of relying on preset autoconf cache
1837 variables.
1838 * aclocal.m4: Regenerate.
1839 * configure: Regenerate.
1840
1841 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1842
1843 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
1844 (ffi_check_float_struct): Remove unused prototype.
1845
1846 2004-06-30 Geoffrey Keating <geoffk@apple.com>
1847
1848 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
1849 character on Darwin, use '\n\t' instead.
1850
1851 2004-06-26 Matthias Klose <doko@debian.org>
1852
1853 * libtool-version: Fix typo in revision/age.
1854
1855 2004-06-17 Matthias Klose <doko@debian.org>
1856
1857 * libtool-version: New.
1858 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
1859 * Makefile.in: Regenerate.
1860
1861 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1862
1863 * Makefile.am: Remove useless multilib rules.
1864 * Makefile.in: Regenerate.
1865 * aclocal.m4: Regenerate with automake 1.8.5.
1866 * configure.ac: Remove useless multilib configury.
1867 * configure: Regenerate.
1868
1869 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1870
1871 * .cvsignore: New file.
1872
1873 2004-06-10 Jakub Jelinek <jakub@redhat.com>
1874
1875 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
1876 fp_done.
1877 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
1878 changed from 8.
1879
1880 2004-06-06 Sean McNeil <sean@mcneil.com>
1881
1882 * configure.ac: Add x86_64-*-freebsd* support.
1883 * configure: Regenerate.
1884
1885 2004-04-26 Joe Buck <jbuck@welsh-buck.org>
1886
1887 Bug 15093
1888 * configure.ac: Test for existence of mmap and sys/mman.h before
1889 checking blacklist. Fix suggested by Jim Wilson.
1890 * configure: Regenerate.
1891
1892 2004-04-26 Matt Austern <austern@apple.com>
1893
1894 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
1895 FDE location.
1896 * src/powerpc/darwin_closure.S: Likewise.
1897
1898 2004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
1899
1900 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
1901 error. Reported by Thomas Heller <theller@python.net>.
1902 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
1903 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
1904
1905 2004-03-20 Matthias Klose <doko@debian.org>
1906
1907 * src/pa/linux.S: Fix typo.
1908
1909 2004-03-19 Matthias Klose <doko@debian.org>
1910
1911 * Makefile.am: Update.
1912 * Makefile.in: Regenerate.
1913 * src/pa/ffi.h.in: Remove.
1914 * src/pa/ffitarget.h: New file.
1915
1916 2004-02-10 Randolph Chung <tausq@debian.org>
1917
1918 * Makefile.am: Add PA support.
1919 * Makefile.in: Regenerate.
1920 * include/Makefile.in: Regenerate.
1921 * configure.ac: Add PA target.
1922 * configure: Regenerate.
1923 * src/pa/ffi.c: New file.
1924 * src/pa/ffi.h.in: Add PA support.
1925 * src/pa/linux.S: New file.
1926 * prep_cif.c: Add PA support.
1927
1928 2004-03-16 Hosaka Yuji <hos@tamanegi.org>
1929
1930 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
1931 double.
1932 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
1933 with ecif->cif->flags.
1934 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
1935 with cif->flags.
1936 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
1937 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
1938 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
1939 sc_retstruct2b): Add for 1 or 2-bytes struct case.
1940
1941 2004-03-15 Kelley Cook <kcook@gcc.gnu.org>
1942
1943 * configure.in: Rename file to ...
1944 * configure.ac: ... this.
1945 * fficonfig.h.in: Regenerate.
1946 * Makefile.in: Regenerate.
1947 * include/Makefile.in: Regenerate.
1948 * testsuite/Makefile.in: Regenerate.
1949
1950 2004-03-12 Matt Austern <austern@apple.com>
1951
1952 * src/powerpc/darwin.S: Fix EH information so it corresponds to
1953 changes in EH format resulting from addition of linkonce support.
1954 * src/powerpc/darwin_closure.S: Likewise.
1955
1956 2004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
1957 Paolo Bonzini <bonzini@gnu.org>
1958
1959 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
1960 Remove VPATH. Remove rules for object files. Remove multilib support.
1961 (AM_CCASFLAGS): Add.
1962 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
1963 (AC_PREREQ): Bump version to 2.59.
1964 (AC_INIT): Fill with version info and bug address.
1965 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
1966 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
1967 De-precious CC so that the right flags are passed down to multilibs.
1968 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
1969 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
1970 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
1971 * configure: Rebuilt.
1972 * aclocal.m4: Likewise.
1973 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
1974 * fficonfig.h.in: Likewise.
1975
1976 2004-03-11 Andreas Schwab <schwab@suse.de>
1977
1978 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
1979 arguments from fp registers only for the first 8 parameter slots.
1980 Don't convert a float parameter when passed in memory.
1981
1982 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
1983
1984 * configure: Regenerate for config/accross.m4 correction.
1985
1986 2004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
1987
1988 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
1989 ecif->cif->bytes to bytes.
1990 (ffi_prep_cif_machdep): Add braces around nested if statement.
1991
1992 2004-02-09 Alan Modra <amodra@bigpond.net.au>
1993
1994 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
1995
1996 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
1997 (ffi_closure_helper_LINUX64): Fix typo.
1998 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
1999 for powerpc64-*-*.
2000 * testsuite/libffi.call/float.c: Likewise.
2001 * testsuite/libffi.call/float2.c: Likewise.
2002
2003 2004-02-08 Alan Modra <amodra@bigpond.net.au>
2004
2005 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
2006 long double function return and long double arg handling.
2007 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
2008 Use "end_pfr" instead of "nf". Correct long double handling.
2009 Localise "temp".
2010 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
2011 return value.
2012 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
2013 space for long double return value. Adjust stack frame and offsets.
2014 Load f2 long double return.
2015
2016 2004-02-07 Alan Modra <amodra@bigpond.net.au>
2017
2018 * src/types.c: Use 16 byte long double for POWERPC64.
2019
2020 2004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2021
2022 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
2023 when the structure return address is passed in %o0.
2024 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
2025 (ffi_v9_layout_struct): Align the field following a nested structure
2026 on a word boundary. Use memmove instead of memcpy.
2027 (ffi_call): Update call to ffi_V9_return_struct.
2028 (ffi_prep_closure): Define 'ctx' only for V8.
2029 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
2030 and ffi_closure_sparc_inner_v9.
2031 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
2032 Always skip the structure return address. For structures and long
2033 doubles, copy the argument directly.
2034 (ffi_closure_sparc_inner_v9): Skip the structure return address only
2035 if required. Shift the maximum floating-point slot accordingly. For
2036 big structures, copy the argument directly; otherwise, left-justify the
2037 argument and call ffi_v9_layout_struct to lay out the structure on
2038 the stack.
2039 * src/sparc/v8.S: Undef STACKFRAME before defining it.
2040 (ffi_closure_v8): Pass the structure return address. Update call to
2041 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
2042 Skip the 'unimp' insn when returning long doubles and structures.
2043 * src/sparc/v9.S: Undef STACKFRAME before defining it.
2044 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
2045 FFI_TYPE_INT handling. Load structures both in integers and
2046 floating-point registers on return.
2047 * README: Update status of the SPARC port.
2048
2049 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
2050
2051 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
2052 as of type ffi_arg.
2053 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
2054
2055 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
2056
2057 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
2058 value as of type ffi_arg, not unsigned int.
2059
2060 2004-01-21 Michael Ritzert <ritzert@t-online.de>
2061
2062 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
2063 of the LHS.
2064
2065 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2066
2067 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
2068 Solaris.
2069
2070 2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2071
2072 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
2073 to void *.
2074
2075 2003-12-10 Richard Henderson <rth@redhat.com>
2076
2077 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
2078 size_t instead of int.
2079
2080 2003-12-04 Hosaka Yuji <hos@tamanegi.org>
2081
2082 * testsuite/libffi.call/many_win32.c: Include <float.h>.
2083 * testsuite/libffi.call/many_win32.c (main): Replace variable
2084 int i with unsigned long ul.
2085
2086 * testsuite/libffi.call/cls_align_uint64.c: New test case.
2087 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2088 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2089 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2090 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2091 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2092 * testsuite/libffi.call/cls_align_float.c: Likewise.
2093 * testsuite/libffi.call/cls_align_double.c: Likewise.
2094 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2095 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2096
2097 2003-12-02 Hosaka Yuji <hos@tamanegi.org>
2098
2099 PR other/13221
2100 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
2101 Align arguments to 32 bits.
2102
2103 2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
2104
2105 PR other/13221
2106 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
2107 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2108 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2109 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2110 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2111 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2112
2113 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
2114
2115 2003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2116
2117 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
2118 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2119
2120 2003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
2121
2122 * Makefile.in: Rebuilt.
2123 * configure: Likewise.
2124 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
2125 the right type.
2126
2127 2003-11-21 Andreas Jaeger <aj@suse.de>
2128 Andreas Tobler <a.tobler@schweiz.ch>
2129
2130 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
2131 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
2132 * Makefile.in: Rebuilt.
2133 * aclocal.m4: Likewise.
2134 * configure: Likewise.
2135 * fficonfig.h.in: Likewise.
2136 * testsuite/lib/libffi-dg.exp: Add include dir.
2137 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
2138 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2139 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
2140 for ffi_closure if available.
2141 * testsuite/libffi.call/closure_fn1.c: Likewise.
2142 * testsuite/libffi.call/closure_fn2.c: Likewise.
2143 * testsuite/libffi.call/closure_fn3.c: Likewise.
2144 * testsuite/libffi.call/closure_fn4.c: Likewise.
2145 * testsuite/libffi.call/closure_fn5.c: Likewise.
2146 * testsuite/libffi.call/cls_12byte.c: Likewise.
2147 * testsuite/libffi.call/cls_16byte.c: Likewise.
2148 * testsuite/libffi.call/cls_18byte.c: Likewise.
2149 * testsuite/libffi.call/cls_19byte.c: Likewise.
2150 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2151 * testsuite/libffi.call/cls_20byte.c: Likewise.
2152 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2153 * testsuite/libffi.call/cls_24byte.c: Likewise.
2154 * testsuite/libffi.call/cls_2byte.c: Likewise.
2155 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2156 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2157 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2158 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2159 * testsuite/libffi.call/cls_4byte.c: Likewise.
2160 * testsuite/libffi.call/cls_5byte.c: Likewise.
2161 * testsuite/libffi.call/cls_64byte.c: Likewise.
2162 * testsuite/libffi.call/cls_6byte.c: Likewise.
2163 * testsuite/libffi.call/cls_7byte.c: Likewise.
2164 * testsuite/libffi.call/cls_8byte.c: Likewise.
2165 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2166 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2167 * testsuite/libffi.call/cls_double.c: Likewise.
2168 * testsuite/libffi.call/cls_float.c: Likewise.
2169 * testsuite/libffi.call/cls_schar.c: Likewise.
2170 * testsuite/libffi.call/cls_sint.c: Likewise.
2171 * testsuite/libffi.call/cls_sshort.c: Likewise.
2172 * testsuite/libffi.call/cls_uchar.c: Likewise.
2173 * testsuite/libffi.call/cls_uint.c: Likewise.
2174 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2175 * testsuite/libffi.call/cls_ushort.c: Likewise.
2176 * testsuite/libffi.call/nested_struct.c: Likewise.
2177 * testsuite/libffi.call/nested_struct1.c: Likewise.
2178 * testsuite/libffi.call/nested_struct2.c: Likewise.
2179 * testsuite/libffi.call/nested_struct3.c: Likewise.
2180 * testsuite/libffi.call/problem1.c: Likewise.
2181 * testsuite/libffi.special/unwindtest.cc: Likewise.
2182
2183 2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
2184
2185 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2186
2187 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2188
2189 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2190 Add -lgcc_s to additional flags.
2191
2192 2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
2193
2194 * configure.in, include/Makefile.am: PR libgcj/11147, install
2195 the ffitarget.h header file in a gcc versioned and target
2196 dependent place.
2197 * configure: Regenerated.
2198 * Makefile.in, include/Makefile.in: Likewise.
2199 * testsuite/Makefile.in: Likewise.
2200
2201 2003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
2202
2203 * testsuite/libffi.call/closure_fn0.c: Print result and check
2204 with dg-output to make debugging easier.
2205 * testsuite/libffi.call/closure_fn1.c: Likewise.
2206 * testsuite/libffi.call/closure_fn2.c: Likewise.
2207 * testsuite/libffi.call/closure_fn3.c: Likewise.
2208 * testsuite/libffi.call/closure_fn4.c: Likewise.
2209 * testsuite/libffi.call/closure_fn5.c: Likewise.
2210 * testsuite/libffi.call/cls_12byte.c: Likewise.
2211 * testsuite/libffi.call/cls_16byte.c: Likewise.
2212 * testsuite/libffi.call/cls_18byte.c: Likewise.
2213 * testsuite/libffi.call/cls_19byte.c: Likewise.
2214 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2215 * testsuite/libffi.call/cls_20byte.c: Likewise.
2216 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2217 * testsuite/libffi.call/cls_24byte.c: Likewise.
2218 * testsuite/libffi.call/cls_2byte.c: Likewise.
2219 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2220 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2221 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2222 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2223 * testsuite/libffi.call/cls_4byte.c: Likewise.
2224 * testsuite/libffi.call/cls_5byte.c: Likewise.
2225 * testsuite/libffi.call/cls_64byte.c: Likewise.
2226 * testsuite/libffi.call/cls_6byte.c: Likewise.
2227 * testsuite/libffi.call/cls_7byte.c: Likewise.
2228 * testsuite/libffi.call/cls_8byte.c: Likewise.
2229 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2230 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2231 * testsuite/libffi.call/cls_double.c: Likewise.
2232 * testsuite/libffi.call/cls_float.c: Likewise.
2233 * testsuite/libffi.call/cls_schar.c: Likewise.
2234 * testsuite/libffi.call/cls_sint.c: Likewise.
2235 * testsuite/libffi.call/cls_sshort.c: Likewise.
2236 * testsuite/libffi.call/cls_uchar.c: Likewise.
2237 * testsuite/libffi.call/cls_uint.c: Likewise.
2238 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2239 * testsuite/libffi.call/cls_ushort.c: Likewise.
2240 * testsuite/libffi.call/problem1.c: Likewise.
2241
2242 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2243 static.
2244
2245 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2246
2247 * testsuite/libffi.call/cls_9byte2.c: New test case.
2248 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2249 * testsuite/libffi.call/cls_64byte.c: Likewise.
2250 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2251 * testsuite/libffi.call/cls_19byte.c: Likewise.
2252 * testsuite/libffi.call/cls_18byte.c: Likewise.
2253 * testsuite/libffi.call/closure_fn4.c: Likewise.
2254 * testsuite/libffi.call/closure_fn5.c: Likewise.
2255 * testsuite/libffi.call/cls_schar.c: Likewise.
2256 * testsuite/libffi.call/cls_sint.c: Likewise.
2257 * testsuite/libffi.call/cls_sshort.c: Likewise.
2258 * testsuite/libffi.call/nested_struct2.c: Likewise.
2259 * testsuite/libffi.call/nested_struct3.c: Likewise.
2260
2261 2003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2262
2263 * testsuite/libffi.call/cls_double.c: Do a check on the result.
2264 * testsuite/libffi.call/cls_uchar.c: Likewise.
2265 * testsuite/libffi.call/cls_uint.c: Likewise.
2266 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2267 * testsuite/libffi.call/cls_ushort.c: Likewise.
2268 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
2269
2270 2003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
2271
2272 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
2273 the initialization.
2274
2275 2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
2276
2277 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
2278 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
2279
2280 2003-10-22 David Daney <ddaney@avtrex.com>
2281
2282 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
2283 __attribute__((__mode__(__SI__))) and friends.
2284
2285 2003-10-22 Andreas Schwab <schwab@suse.de>
2286
2287 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
2288
2289 2003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
2290
2291 * configure.in: AC_LINK_FILES(ffitarget.h).
2292 * configure: Regenerate.
2293 * Makefile.in: Likewise.
2294 * include/Makefile.in: Likewise.
2295 * testsuite/Makefile.in: Likewise.
2296 * fficonfig.h.in: Likewise.
2297
2298 2003-10-21 Paolo Bonzini <bonzini@gnu.org>
2299 Richard Henderson <rth@redhat.com>
2300
2301 Avoid that ffi.h includes fficonfig.h.
2302
2303 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
2304 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2305 (TARGET_SRC_MIPS_SGI): Removed.
2306 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
2307 (MIPS_SGI): Removed.
2308 (CLEANFILES): Removed.
2309 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
2310 targets.
2311 * acconfig.h: Removed.
2312 * configure.in: Compute sizeofs only for double and long double.
2313 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
2314 into AC_DEFINE instead of using acconfig.h. Create
2315 include/ffitarget.h instead of include/fficonfig.h. Rename
2316 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
2317 AC_DEFINE EH_FRAME_FLAGS.
2318 * include/Makefile.am (DISTCLEANFILES): New automake macro.
2319 (hack_DATA): Add ffitarget.h.
2320 * include/ffi.h.in: Remove all system specific definitions.
2321 Declare raw API even if it is not installed, why bother?
2322 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
2323 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
2324 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
2325 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
2326 * include/ffi_common.h (bool): Do not define.
2327 (ffi_assert): Accept failed assertion.
2328 (ffi_type_test): Return void and accept file/line.
2329 (FFI_ASSERT): Pass stringized failed assertion.
2330 (FFI_ASSERT_AT): New macro.
2331 (FFI_ASSERT_VALID_TYPE): New macro.
2332 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
2333 UINT64, SINT64): Define here with gcc's __attribute__ macro
2334 instead of in ffi.h
2335 (FLOAT32, ALIGN): Define here instead of in ffi.h
2336 * include/ffi-mips.h: Removed. Its content moved to
2337 src/mips/ffitarget.h after separating assembly and C sections.
2338 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
2339 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
2340 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
2341 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
2342 SIZEOF_ARG -> FFI_SIZEOF_ARG.
2343 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
2344 * src/debug.c (ffi_assert): Accept stringized failed assertion.
2345 (ffi_type_test): Rewritten.
2346 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
2347 FFI_ASSERT_VALID_TYPE.
2348 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
2349 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
2350 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
2351 src/s390/ffitarget.h, src/sh/ffitarget.h,
2352 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
2353 src/x86/ffitarget.h: New files.
2354 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
2355 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
2356 src/powerpc/aix.S, src/powerpc/darwin.S,
2357 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
2358 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
2359 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
2360 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
2361 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
2362 include fficonfig.h
2363
2364 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2365
2366 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
2367 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
2368
2369 2003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
2370
2371 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
2372 Used when FFI_DEBUG = 1.
2373
2374 2003-10-14 Alan Modra <amodra@bigpond.net.au>
2375
2376 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
2377 and align.
2378
2379 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2380
2381 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
2382 FFI_MIPS_O32 for O32 ABI.
2383
2384 2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
2385
2386 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
2387 SPARC64. Cleanup whitespaces.
2388
2389 2003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
2390
2391 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
2392 strongarm, xscale. Cleanup whitespaces.
2393 * testsuite/libffi.call/closure_fn1.c: Likewise.
2394 * testsuite/libffi.call/closure_fn2.c: Likewise.
2395 * testsuite/libffi.call/closure_fn3.c: Likewise.
2396 * testsuite/libffi.call/cls_12byte.c: Likewise.
2397 * testsuite/libffi.call/cls_16byte.c: Likewise.
2398 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2399 * testsuite/libffi.call/cls_20byte.c: Likewise.
2400 * testsuite/libffi.call/cls_24byte.c: Likewise.
2401 * testsuite/libffi.call/cls_2byte.c: Likewise.
2402 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2403 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2404 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2405 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2406 * testsuite/libffi.call/cls_4byte.c: Likewise.
2407 * testsuite/libffi.call/cls_5byte.c: Likewise.
2408 * testsuite/libffi.call/cls_6byte.c: Likewise.
2409 * testsuite/libffi.call/cls_7byte.c: Likewise.
2410 * testsuite/libffi.call/cls_8byte.c: Likewise.
2411 * testsuite/libffi.call/cls_double.c: Likewise.
2412 * testsuite/libffi.call/cls_float.c: Likewise.
2413 * testsuite/libffi.call/cls_uchar.c: Likewise.
2414 * testsuite/libffi.call/cls_uint.c: Likewise.
2415 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2416 * testsuite/libffi.call/cls_ushort.c: Likewise.
2417 * testsuite/libffi.call/nested_struct.c: Likewise.
2418 * testsuite/libffi.call/nested_struct1.c: Likewise.
2419 * testsuite/libffi.call/problem1.c: Likewise.
2420 * testsuite/libffi.special/unwindtest.cc: Likewise.
2421 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
2422
2423 2003-09-18 David Edelsohn <edelsohn@gnu.org>
2424
2425 * src/powerpc/aix.S: Cleanup whitespaces.
2426 * src/powerpc/aix_closure.S: Likewise.
2427
2428 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
2429
2430 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
2431 * src/powerpc/darwin_closure.S: Likewise.
2432 * src/powerpc/ffi_darwin.c: Likewise.
2433
2434 2003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
2435 David Edelsohn <edelsohn@gnu.org>
2436
2437 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
2438 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
2439 parameter stack.
2440 * src/powerpc/darwin_closure.S: Likewise.
2441 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
2442 according to the Darwin/AIX ABI.
2443 (ffi_prep_cif_machdep): Likewise.
2444 (ffi_closure_helper_DARWIN): Likewise.
2445 Remove the outgoing parameter stack logic. Simplify the evaluation
2446 of the different CASE types.
2447 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
2448 statement in the trampoline code.
2449
2450 2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
2451
2452 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
2453 for the register size.
2454 (ffi_closure_helper_SYSV): Handle the structure return value
2455 address correctly.
2456 (ffi_closure_helper_SYSV): Return the appropriate type when
2457 the registers are used for the structure return value.
2458 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
2459 the 64-bit return value. Update copyright years.
2460
2461 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2462
2463 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
2464 srcdir for ffi_mips.h.
2465
2466 2003-09-12 Alan Modra <amodra@bigpond.net.au>
2467
2468 * src/prep_cif.c (initialize_aggregate): Include tail padding in
2469 structure size.
2470 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
2471 placement of float result.
2472 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
2473 cast of "resp" for big-endian 64 bit machines.
2474
2475 2003-09-11 Alan Modra <amodra@bigpond.net.au>
2476
2477 * src/types.c (double, longdouble): Merge identical SH and ARM
2478 typedefs, and add POWERPC64.
2479 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
2480 struct split over gpr and rest.
2481 (ffi_prep_cif_machdep): Correct intarg_count for structures.
2482 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
2483
2484 2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
2485
2486 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
2487 passing correctly.
2488
2489 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2490
2491 * configure: Regenerate.
2492
2493 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
2494
2495 * Makefile.am: Remove build rules for ffitest.
2496 * Makefile.in: Rebuilt.
2497
2498 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
2499
2500 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
2501 about implicit declaration of abort().
2502
2503 2003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
2504
2505 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
2506 * Makefile.in: Rebuilt.
2507 * configure.in: Add dejagnu test framework.
2508 * configure: Rebuilt.
2509
2510 * testsuite/Makefile.am: New file.
2511 * testsuite/Makefile.in: Built
2512 * testsuite/lib/libffi-dg.exp: New file.
2513 * testsuite/config/default.exp: Likewise.
2514 * testsuite/libffi.call/call.exp: Likewise.
2515 * testsuite/libffi.call/ffitest.h: Likewise.
2516 * testsuite/libffi.call/closure_fn0.c: Likewise.
2517 * testsuite/libffi.call/closure_fn1.c: Likewise.
2518 * testsuite/libffi.call/closure_fn2.c: Likewise.
2519 * testsuite/libffi.call/closure_fn3.c: Likewise.
2520 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2521 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2522 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2523 * testsuite/libffi.call/cls_2byte.c: Likewise.
2524 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2525 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2526 * testsuite/libffi.call/cls_4byte.c: Likewise.
2527 * testsuite/libffi.call/cls_5byte.c: Likewise.
2528 * testsuite/libffi.call/cls_6byte.c: Likewise.
2529 * testsuite/libffi.call/cls_7byte.c: Likewise.
2530 * testsuite/libffi.call/cls_8byte.c: Likewise.
2531 * testsuite/libffi.call/cls_12byte.c: Likewise.
2532 * testsuite/libffi.call/cls_16byte.c: Likewise.
2533 * testsuite/libffi.call/cls_20byte.c: Likewise.
2534 * testsuite/libffi.call/cls_24byte.c: Likewise.
2535 * testsuite/libffi.call/cls_double.c: Likewise.
2536 * testsuite/libffi.call/cls_float.c: Likewise.
2537 * testsuite/libffi.call/cls_uchar.c: Likewise.
2538 * testsuite/libffi.call/cls_uint.c: Likewise.
2539 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2540 * testsuite/libffi.call/cls_ushort.c: Likewise.
2541 * testsuite/libffi.call/float.c: Likewise.
2542 * testsuite/libffi.call/float1.c: Likewise.
2543 * testsuite/libffi.call/float2.c: Likewise.
2544 * testsuite/libffi.call/many.c: Likewise.
2545 * testsuite/libffi.call/many_win32.c: Likewise.
2546 * testsuite/libffi.call/nested_struct.c: Likewise.
2547 * testsuite/libffi.call/nested_struct1.c: Likewise.
2548 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
2549 * testsuite/libffi.call/problem1.c: Likewise.
2550 * testsuite/libffi.call/promotion.c: Likewise.
2551 * testsuite/libffi.call/return_ll.c: Likewise.
2552 * testsuite/libffi.call/return_sc.c: Likewise.
2553 * testsuite/libffi.call/return_uc.c: Likewise.
2554 * testsuite/libffi.call/strlen.c: Likewise.
2555 * testsuite/libffi.call/strlen_win32.c: Likewise.
2556 * testsuite/libffi.call/struct1.c: Likewise.
2557 * testsuite/libffi.call/struct2.c: Likewise.
2558 * testsuite/libffi.call/struct3.c: Likewise.
2559 * testsuite/libffi.call/struct4.c: Likewise.
2560 * testsuite/libffi.call/struct5.c: Likewise.
2561 * testsuite/libffi.call/struct6.c: Likewise.
2562 * testsuite/libffi.call/struct7.c: Likewise.
2563 * testsuite/libffi.call/struct8.c: Likewise.
2564 * testsuite/libffi.call/struct9.c: Likewise.
2565 * testsuite/libffi.special/special.exp: New file.
2566 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2567 * testsuite/libffi.special/unwindtest.cc: Likewise.
2568
2569
2570 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
2571
2572 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
2573 copyright years.
2574
2575 2003-08-02 Alan Modra <amodra@bigpond.net.au>
2576
2577 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
2578 structure passing.
2579 (ffi_closure_helper_LINUX64): Likewise.
2580 * src/powerpc/linux64.S: Remove code writing to parm save area.
2581 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
2582 address in lr from ffi_closure_helper_LINUX64 call to calculate
2583 table address. Optimize function tail.
2584
2585 2003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
2586
2587 * src/sparc/ffi.c: Handle all floating point registers.
2588 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
2589
2590 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2591
2592 * README: Note that libffi is not part of GCC. Update the project
2593 URL and status.
2594
2595 2003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2596
2597 * src/powerpc/ppc_closure.S: Include ffi.h.
2598
2599 2003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2600
2601 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
2602 Use C style comments.
2603
2604 2003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2605
2606 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
2607 * Makefile.in: Regenerate.
2608 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
2609 * configure: Regenerate.
2610 * include/ffi.h.in: Add SHmedia support.
2611 * src/sh64/ffi.c: New file.
2612 * src/sh64/sysv.S: New file.
2613
2614 2003-05-16 Jakub Jelinek <jakub@redhat.com>
2615
2616 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
2617 should be read-only.
2618 * configure: Rebuilt.
2619 * fficonfig.h.in: Rebuilt.
2620 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
2621 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
2622 * src/powerpc/linux64.S: Likewise.
2623 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
2624 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
2625 if -fpic/-fPIC/-mrelocatable.
2626 * src/powerpc/powerpc_closure.S: Likewise.
2627 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
2628 #write in .eh_frame flags.
2629 * src/sparc/v9.S: Likewise.
2630 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
2631 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
2632 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
2633
2634 2003-05-07 Jeff Sturm <jsturm@one-point.com>
2635
2636 Fixes PR bootstrap/10656
2637 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
2638 support for .register pseudo-op.
2639 * src/sparc/v8.S: Use it.
2640 * fficonfig.h.in: Rebuilt.
2641 * configure: Rebuilt.
2642
2643 2003-04-18 Jakub Jelinek <jakub@redhat.com>
2644
2645 * include/ffi.h.in (POWERPC64): Define if 64-bit.
2646 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
2647 Make it the default on POWERPC64.
2648 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
2649 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
2650 * configure: Rebuilt.
2651 * src/powerpc/ffi.c (hidden): Define.
2652 (ffi_prep_args_SYSV): Renamed from
2653 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
2654 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
2655 ASM_NEEDS_REGISTERS64): New.
2656 (ffi_prep_args64): New function.
2657 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
2658 (ffi_call): Likewise.
2659 (ffi_prep_closure): Likewise.
2660 (flush_icache): Surround by #ifndef POWERPC64.
2661 (ffi_dblfl): New union type.
2662 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
2663 (ffi_closure_helper_LINUX64): New function.
2664 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
2665 __powerpc64__.
2666 * src/powerpc/sysv.S: Likewise.
2667 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
2668 * src/powerpc/linux64.S: New file.
2669 * src/powerpc/linux64_closure.S: New file.
2670 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
2671 src/powerpc/linux64_closure.S.
2672 (TARGET_SRC_POWERPC): Likewise.
2673
2674 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
2675 closure_test_fn3): Fix result printing on big-endian 64-bit
2676 machines.
2677 (main): Print tst2_arg instead of uninitialized tst2_result.
2678
2679 * src/ffitest.c (main): Hide what closure pointer really points to
2680 from the compiler.
2681
2682 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
2683
2684 * configure.in (arm-*-netbsdelf*): Add configuration.
2685 (configure): Regenerated.
2686
2687 2003-04-04 Loren J. Rittle <ljrittle@acm.org>
2688
2689 * include/Makefile.in: Regenerate.
2690
2691 2003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2692
2693 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
2694 bit mode.
2695 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
2696 Receive closure pointer through parameter, read args using
2697 __builtin_dwarf_cfa.
2698 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
2699
2700 2003-03-12 Andreas Schwab <schwab@suse.de>
2701
2702 * configure.in: Avoid trailing /. in toolexeclibdir.
2703 * configure: Rebuilt.
2704
2705 2003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
2706
2707 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
2708
2709 2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
2710
2711 * libffi/src/powerpc/darwin_closure.S:
2712 Fix alignement bug, allocate 8 bytes for the result.
2713 * libffi/src/powerpc/aix_closure.S:
2714 Likewise.
2715 * libffi/src/powerpc/ffi_darwin.c:
2716 Update stackframe description for aix/darwin_closure.S.
2717
2718 2003-02-06 Jakub Jelinek <jakub@redhat.com>
2719
2720 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
2721 attribute.
2722
2723 2003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
2724 Andreas Schwab <schwab@suse.de>
2725
2726 * configure.in: Adjust command to source config-ml.in to account
2727 for changes to the libffi_basedir definition.
2728 (libffi_basedir): Remove ${srcdir} from value and include trailing
2729 slash if nonempty.
2730
2731 * configure: Regenerate.
2732
2733 2003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2734
2735 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
2736
2737 2003-01-28 Andrew Haley <aph@redhat.com>
2738
2739 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
2740 * src/x86/ffi64.c (ffi_prep_closure): New.
2741 (ffi_closure_UNIX64_inner): New.
2742 * src/x86/unix64.S (ffi_closure_UNIX64): New.
2743
2744 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2745
2746 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
2747 Remove USE_LIBDIR conditional.
2748 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
2749 * Makefile.in, configure: Rebuilt.
2750
2751 2003-01027 David Edelsohn <edelsohn@gnu.org>
2752
2753 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
2754 * Makefile.in: Regenerate.
2755
2756 2003-01-22 Andrew Haley <aph@redhat.com>
2757
2758 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
2759 unwind info.
2760
2761 2003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
2762
2763 * src/powerpc/darwin.S: Add unwind info.
2764 * src/powerpc/darwin_closure.S: Likewise.
2765
2766 2003-01-14 Andrew Haley <aph@redhat.com>
2767
2768 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
2769 (ffi_prep_cif_machdep): Likewise.
2770 * src/x86/unix64.S: Add unwind info.
2771
2772 2003-01-14 Andreas Jaeger <aj@suse.de>
2773
2774 * src/ffitest.c (main): Only use ffi_closures if those are
2775 supported.
2776
2777 2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
2778
2779 * libffi/src/ffitest.c
2780 add closure testcases
2781
2782 2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
2783
2784 * libffi/src/powerpc/ffi.c
2785 fix alignment bug for float (4 byte aligned iso 8 byte)
2786
2787 2003-01-09 Geoffrey Keating <geoffk@apple.com>
2788
2789 * src/powerpc/ffi_darwin.c: Remove RCS version string.
2790 * src/powerpc/darwin.S: Remove RCS version string.
2791
2792 2003-01-03 Jeff Sturm <jsturm@one-point.com>
2793
2794 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
2795 * src/ffitest.c (main): Use static storage for closure.
2796 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
2797 * src/sparc/v8.S (ffi_closure_v8): New.
2798 * src/sparc/v9.S (ffi_closure_v9): New.
2799
2800 2002-11-10 Ranjit Mathew <rmathew@hotmail.com>
2801
2802 * include/ffi.h.in: Added FFI_STDCALL ffi_type
2803 enumeration for X86_WIN32.
2804 * src/x86/win32.S: Added ffi_call_STDCALL function
2805 definition.
2806 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
2807 switch cases for recognising FFI_STDCALL and
2808 calling ffi_call_STDCALL if target is X86_WIN32.
2809 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
2810 stdcall versions of the "my_strlen" and "many"
2811 test functions (for X86_WIN32).
2812 Added test cases to test stdcall invocation using
2813 these functions.
2814
2815 2002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
2816
2817 * src/sh/sysv.S: Add DWARF2 unwind info.
2818
2819 2002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
2820
2821 * src/s390/sysv.S (.eh_frame section): Make section read-only.
2822
2823 2002-11-26 Jim Wilson <wilson@redhat.com>
2824
2825 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
2826
2827 2002-11-23 H.J. Lu <hjl@gnu.org>
2828
2829 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
2830 Include ../config/accross.m4.
2831 * aclocal.m4; Rebuild.
2832 * configure: Likewise.
2833
2834 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
2835
2836 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
2837
2838 2002-11-11 DJ Delorie <dj@redhat.com>
2839
2840 * configure.in: Look for common files in the right place.
2841
2842 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
2843
2844 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
2845 raw data as _Jv_word values, not ffi_raw.
2846 (ffi_java_ptrarray_to_raw): Likewise.
2847 (ffi_java_rvalue_to_raw): New function.
2848 (ffi_java_raw_call): Call it.
2849 (ffi_java_raw_to_rvalue): New function.
2850 (ffi_java_translate_args): Call it.
2851 * src/ffitest.c (closure_test_fn): Interpret return value
2852 as ffi_arg, not int.
2853 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
2854 FFI_TYPE_POINTER case.
2855 (ffi_closure_helper_SYSV): Likewise. Also, assume return
2856 values extended to word size.
2857
2858 2002-10-02 Andreas Jaeger <aj@suse.de>
2859
2860 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
2861
2862 2002-10-01 Bo Thorsen <bo@smetana.suse.de>
2863
2864 * include/ffi.h.in: Fix i386 win32 compilation.
2865
2866 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
2867
2868 * configure.in: Add s390x-*-linux-* target.
2869 * configure: Regenerate.
2870 * include/ffi.h.in: Define S390X for s390x targets.
2871 (FFI_CLOSURES): Define for s390/s390x.
2872 (FFI_TRAMPOLINE_SIZE): Likewise.
2873 (FFI_NATIVE_RAW_API): Likewise.
2874 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
2875 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
2876 * src/s390/ffi.c: Major rework of existing code. Add support for
2877 s390x targets. Add closure support.
2878 * src/s390/sysv.S: Likewise.
2879
2880 2002-09-29 Richard Earnshaw <rearnsha@arm.com>
2881
2882 * src/arm/sysv.S: Fix typo.
2883
2884 2002-09-28 Richard Earnshaw <rearnsha@arm.com>
2885
2886 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
2887 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
2888 (ffi_call_SYSV): Handle soft-float.
2889
2890 2002-09-27 Bo Thorsen <bo@suse.de>
2891
2892 * include/ffi.h.in: Fix multilib x86-64 support.
2893
2894 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2895
2896 * Makefile.am (all-multi): Fix multilib parallel build.
2897
2898 2002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
2899
2900 * configure.in (sh[34]*-*-linux*): Add brackets.
2901 * configure: Regenerate.
2902
2903 2002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
2904
2905 * Makefile.am: Add SH support.
2906 * Makefile.in: Regenerate.
2907 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
2908 * configure: Regenerate.
2909 * include/ffi.h.in: Add SH support.
2910 * src/sh/ffi.c: New file.
2911 * src/sh/sysv.S: New file.
2912 * src/types.c: Add SH support.
2913
2914 2002-07-16 Bo Thorsen <bo@suse.de>
2915
2916 * src/x86/ffi64.c: New file that adds x86-64 support.
2917 * src/x86/unix64.S: New file that handles argument setup for
2918 x86-64.
2919 * src/x86/sysv.S: Don't use this on x86-64.
2920 * src/x86/ffi.c: Don't use this on x86-64.
2921 Remove unused vars.
2922 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
2923 for x86-64.
2924 * src/ffitest.c (struct6): New test that tests a special case in
2925 the x86-64 ABI.
2926 (struct7): Likewise.
2927 (struct8): Likewise.
2928 (struct9): Likewise.
2929 (closure_test_fn): Silence warning about this when it's not used.
2930 (main): Add the new tests.
2931 (main): Fix a couple of wrong casts and silence some compiler warnings.
2932 * include/ffi.h.in: Add x86-64 ABI definition.
2933 * fficonfig.h.in: Regenerate.
2934 * Makefile.am: Add x86-64 support.
2935 * configure.in: Likewise.
2936 * Makefile.in: Regenerate.
2937 * configure: Likewise.
2938
2939 2002-06-24 Bo Thorsen <bo@suse.de>
2940
2941 * src/types.c: Merge settings for similar architectures.
2942 Add x86-64 sizes and alignments.
2943
2944 2002-06-23 Bo Thorsen <bo@suse.de>
2945
2946 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
2947 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
2948 * src/mips/ffi.c (ffi_prep_args): Likewise.
2949 * src/m68k/ffi.c (ffi_prep_args): Likewise.
2950
2951 2002-07-18 H.J. Lu (hjl@gnu.org)
2952
2953 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
2954 (libffi_la_SOURCES): Support MIPS_LINUX.
2955 (libffi_convenience_la_SOURCES): Likewise.
2956 * Makefile.in: Regenerated.
2957
2958 * configure.in (mips64*-*): Skip.
2959 (mips*-*-linux*): New.
2960 * configure: Regenerated.
2961
2962 * src/mips/ffi.c: Include <sgidefs.h>.
2963
2964 2002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2965
2966 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
2967
2968 2002-05-27 Roger Sayle <roger@eyesopen.com>
2969
2970 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
2971
2972 2002-05-27 Bo Thorsen <bo@suse.de>
2973
2974 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
2975 fix formatting.
2976
2977 2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
2978
2979 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
2980 beginning of function (for older apple cc).
2981
2982 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2983
2984 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2985 script entry, and set LD to it when configuring multilibs.
2986 * configure: Rebuilt.
2987
2988 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
2989
2990 * configure.in (sparc64-*-netbsd*): Add target.
2991 (sparc-*-netbsdelf*): Likewise.
2992 * configure: Regenerate.
2993
2994 2002-04-28 David S. Miller <davem@redhat.com>
2995
2996 * configure.in, configure: Fix SPARC test in previous change.
2997
2998 2002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
2999
3000 * Makefile.am: Add Linux for S/390 support.
3001 * Makefile.in: Regenerate.
3002 * configure.in: Add Linux for S/390 support.
3003 * configure: Regenerate.
3004 * include/ffi.h.in: Add Linux for S/390 support.
3005 * src/s390/ffi.c: New file from libffi CVS tree.
3006 * src/s390/sysv.S: New file from libffi CVS tree.
3007
3008 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3009
3010 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
3011 %r_disp32().
3012 * src/sparc/v8.S: Use it.
3013 * src/sparc/v9.S: Likewise.
3014 * fficonfig.h.in: Rebuilt.
3015 * configure: Rebuilt.
3016
3017 2002-04-08 Hans Boehm <Hans_Boehm@hp.com>
3018
3019 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
3020 correctly.
3021 * src/ia64/unix.S: Add unwind information. Fix comments.
3022 Save sp in a way that's compatible with unwind info.
3023 (ffi_call_unix): Correctly restore sp in all cases.
3024 * src/ia64/ffi.c: Add, fix comments.
3025
3026 2002-04-08 Jakub Jelinek <jakub@redhat.com>
3027
3028 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
3029
3030 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3031
3032 * configure.in (alpha*-*-netbsd*): Add target.
3033 * configure: Regenerate.
3034
3035 2002-04-04 Jeff Sturm <jsturm@one-point.com>
3036
3037 * src/sparc/v8.S: Add unwind info.
3038 * src/sparc/v9.S: Likewise.
3039
3040 2002-03-30 Krister Walfridsson <cato@df.lth.se>
3041
3042 * configure.in: Enable i*86-*-netbsdelf*.
3043 * configure: Rebuilt.
3044
3045 2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
3046
3047 PR other/2620
3048 * src/mips/n32.s: Delete
3049 * src/mips/o32.s: Delete
3050
3051 2002-03-21 Loren J. Rittle <ljrittle@acm.org>
3052
3053 * configure.in: Enable alpha*-*-freebsd*.
3054 * configure: Rebuilt.
3055
3056 2002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3057
3058 * Makefile.am: libfficonvenience -> libffi_convenience.
3059 * Makefile.in: Rebuilt.
3060
3061 * Makefile.am: Define ffitest_OBJECTS.
3062 * Makefile.in: Rebuilt.
3063
3064 2002-03-07 Andreas Tobler <toa@pop.agri.ch>
3065 David Edelsohn <edelsohn@gnu.org>
3066
3067 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
3068 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
3069 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
3070 * Makefile.in: Regenerate.
3071 * include/ffi.h.in: Add AIX and Darwin closure definitions.
3072 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
3073 (flush_icache, flush_range): New functions.
3074 (ffi_closure_helper_DARWIN): New function.
3075 * src/powerpc/aix_closure.S: New file.
3076 * src/powerpc/darwin_closure.S: New file.
3077
3078 2002-02-24 Jeff Sturm <jsturm@one-point.com>
3079
3080 * include/ffi.h.in: Add typedef for ffi_arg.
3081 * src/ffitest.c (main): Declare rint with ffi_arg.
3082
3083 2002-02-21 Andreas Tobler <toa@pop.agri.ch>
3084
3085 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
3086 number of GPRs for floating-point arguments.
3087
3088 2002-01-31 Anthony Green <green@redhat.com>
3089
3090 * configure: Rebuilt.
3091 * configure.in: Replace CHECK_SIZEOF and endian tests with
3092 cross-compiler friendly macros.
3093 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
3094 macros.
3095
3096 2002-01-18 David Edelsohn <edelsohn@gnu.org>
3097
3098 * src/powerpc/darwin.S (_ffi_call_AIX): New.
3099 * src/powerpc/aix.S (ffi_call_DARWIN): New.
3100
3101 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3102
3103 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
3104 (TARGET_SRC_POWERPC_AIX): New.
3105 (POWERPC_AIX): New stanza.
3106 * Makefile.in: Regenerate.
3107 * configure.in: Add AIX case.
3108 * configure: Regenerate.
3109 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
3110 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
3111 size. Fix "long double" support.
3112 (ffi_call): Add FFI_AIX case.
3113 * src/powerpc/aix.S: New.
3114
3115 2001-10-09 John Hornkvist <john@toastedmarshmallow.com>
3116
3117 Implement Darwin PowerPC ABI.
3118 * configure.in: Handle powerpc-*-darwin*.
3119 * Makefile.am: Set source files for POWERPC_DARWIN.
3120 * configure: Rebuilt.
3121 * Makefile.in: Rebuilt.
3122 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
3123 POWERPC_DARWIN.
3124 * src/powerpc/darwin.S: New file.
3125 * src/powerpc/ffi_darwin.c: New file.
3126
3127 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3128
3129 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
3130
3131 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3132
3133 * src/x86/sysv.S: Avoid gas-only .balign directive.
3134 Use C style comments.
3135
3136 2001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3137
3138 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
3139 Fixes PR bootstrap/3563.
3140
3141 2001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3142
3143 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
3144
3145 2001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3146
3147 * configure.in: Recognize sparc*-sun-* host.
3148 * configure: Regenerate.
3149
3150 2001-06-06 Andrew Haley <aph@redhat.com>
3151
3152 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
3153
3154 2001-06-03 Andrew Haley <aph@redhat.com>
3155
3156 * src/alpha/osf.S: Add unwind info.
3157 * src/powerpc/sysv.S: Add unwind info.
3158 * src/powerpc/ppc_closure.S: Likewise.
3159
3160 2000-05-31 Jeff Sturm <jsturm@one-point.com>
3161
3162 * configure.in: Fix AC_ARG_ENABLE usage.
3163 * configure: Rebuilt.
3164
3165 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3166
3167 * configure.in: Remove warning about beta code.
3168 * configure: Rebuilt.
3169
3170 2001-04-25 Hans Boehm <Hans_Boehm@hp.com>
3171
3172 * src/ia64/unix.S: Restore stack pointer when returning from
3173 ffi_closure_UNIX.
3174 * src/ia64/ffi.c: Fix typo in comment.
3175
3176 2001-04-18 Jim Wilson <wilson@redhat.com>
3177
3178 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3179 to eliminate RAW DV.
3180
3181 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3182
3183 * Makefile.am: Make a libtool convenience library.
3184 * Makefile.in: Rebuilt.
3185
3186 2001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
3187
3188 * configure.in: Use different syntax for subdirectory creation.
3189 * configure: Rebuilt.
3190
3191 2001-03-27 Jon Beniston <jon@beniston.com>
3192
3193 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3194 * configure: Rebuilt.
3195 * Makefile.am: Added X86_WIN32 target support.
3196 * Makefile.in: Rebuilt.
3197
3198 * include/ffi.h.in: Added X86_WIN32 target support.
3199
3200 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3201 * src/types.c: Added X86_WIN32 target support.
3202
3203 * src/x86/win32.S: New file. Based on sysv.S, but with EH
3204 stuff removed and made to work with CygWin's gas.
3205
3206 2001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
3207
3208 * configure.in: Make target subdirectory in build dir.
3209 * Makefile.am: Override suffix based rules to specify correct output
3210 subdirectory.
3211 * Makefile.in: Rebuilt.
3212 * configure: Rebuilt.
3213
3214 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
3215
3216 * src/powerpc/ppc_closure.S: New file.
3217 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3218 involving long long and register pairs.
3219 (ffi_prep_closure): New function.
3220 (flush_icache): Likewise.
3221 (ffi_closure_helper_SYSV): Likewise.
3222 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3223 (FFI_TRAMPOLINE_SIZE): Likewise.
3224 (FFI_NATIVE_RAW_API): Likewise.
3225 * Makefile.in: Rebuilt.
3226 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3227 (TARGET_SRC_POWERPC): Likewise.
3228
3229 2001-03-19 Tom Tromey <tromey@redhat.com>
3230
3231 * Makefile.in: Rebuilt.
3232 * Makefile.am (ffitest_LDFLAGS): New macro.
3233
3234 2001-03-02 Nick Clifton <nickc@redhat.com>
3235
3236 * include/ffi.h.in: Remove RCS ident string.
3237 * include/ffi_mips.h: Remove RCS ident string.
3238 * src/debug.c: Remove RCS ident string.
3239 * src/ffitest.c: Remove RCS ident string.
3240 * src/prep_cif.c: Remove RCS ident string.
3241 * src/types.c: Remove RCS ident string.
3242 * src/alpha/ffi.c: Remove RCS ident string.
3243 * src/alpha/osf.S: Remove RCS ident string.
3244 * src/arm/ffi.c: Remove RCS ident string.
3245 * src/arm/sysv.S: Remove RCS ident string.
3246 * src/mips/ffi.c: Remove RCS ident string.
3247 * src/mips/n32.S: Remove RCS ident string.
3248 * src/mips/o32.S: Remove RCS ident string.
3249 * src/sparc/ffi.c: Remove RCS ident string.
3250 * src/sparc/v8.S: Remove RCS ident string.
3251 * src/sparc/v9.S: Remove RCS ident string.
3252 * src/x86/ffi.c: Remove RCS ident string.
3253 * src/x86/sysv.S: Remove RCS ident string.
3254
3255 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3256
3257 * include/ffi.h.in: Change sourceware.cygnus.com references to
3258 gcc.gnu.org.
3259
3260 2000-12-09 Richard Henderson <rth@redhat.com>
3261
3262 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
3263 (ffi_closure_osf_inner): Index rather than increment avalue
3264 and arg_types. Give ffi_closure_osf the raw return value type.
3265 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
3266 promotion.
3267
3268 2000-12-07 Richard Henderson <rth@redhat.com>
3269
3270 * src/raw_api.c (ffi_translate_args): Fix typo.
3271 (ffi_prep_closure): Likewise.
3272
3273 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
3274 FFI_TRAMPOLINE_SIZE.
3275 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
3276 cif->bytes for new ffi_call_osf implementation.
3277 (ffi_prep_args): Absorb into ...
3278 (ffi_call): ... here. Do all stack allocation here and
3279 avoid a callback function.
3280 (ffi_prep_closure, ffi_closure_osf_inner): New.
3281 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
3282 (ffi_closure_osf): New.
3283
3284 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
3285
3286 * config.guess, config.sub, install-sh: Removed.
3287 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
3288 * Makefile.in: Rebuilt.
3289
3290 * acinclude.m4: Include libtool macros from the top level.
3291 * aclocal.m4, configure: Rebuilt.
3292
3293 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3294
3295 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
3296 * configure: Rebuilt.
3297
3298 2000-05-11 Scott Bambrough <scottb@netwinder.org>
3299
3300 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
3301 memory correctly. Use conditional instructions, not branches where
3302 possible.
3303
3304 2000-05-04 Tom Tromey <tromey@cygnus.com>
3305
3306 * configure: Rebuilt.
3307 * configure.in: Match `arm*-*-linux-*'.
3308 From Chris Dornan <cdornan@arm.com>.
3309
3310 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3311
3312 * Makefile.am (SUBDIRS): Define.
3313 (AM_MAKEFLAGS): Likewise.
3314 (Multilib support.): Add section.
3315 * Makefile.in: Rebuilt.
3316 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
3317 New variables. Set for gcc using -print-multi-lib. Export them
3318 to libtool.
3319 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
3320 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
3321 for -shared links.
3322 (extra_compiler_flags_value, extra_compiler_flags): Check these
3323 for extra compiler options which need to be passed down in
3324 compiler_flags.
3325
3326 2000-04-16 Anthony Green <green@redhat.com>
3327
3328 * configure: Rebuilt.
3329 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
3330
3331 2000-04-14 Jakub Jelinek <jakub@redhat.com>
3332
3333 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3334 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
3335 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
3336 Replace all void * sizeofs with sizeof(int).
3337 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
3338 different than DOUBLE.
3339 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
3340 (ffi_prep_args_v9): New function.
3341 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
3342 (ffi_V9_return_struct): New function.
3343 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
3344 32bit code (not yet cross-arch calls).
3345 * src/sparc/v8.S: Add struct return delay nop.
3346 Handle long long.
3347 * src/sparc/v9.S: New file.
3348 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
3349 is used on sparc64 only for structures larger than 32 bytes.
3350 Pass by reference for structures is done for structure arguments
3351 larger than 16 bytes.
3352 * src/ffitest.c (main): Use 64bit rint on sparc64.
3353 Run long long tests on sparc.
3354 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
3355 sparc64.
3356 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
3357 on sparc64.
3358 * configure.in (sparc-*-linux*): New supported target.
3359 (sparc64-*-linux*): Likewise.
3360 * configure: Rebuilt.
3361 * Makefile.am: Add v9.S to SPARC files.
3362 * Makefile.in: Likewise.
3363 (LINK): Surround $(CCLD) into double quotes, so that multilib
3364 compiles work correctly.
3365
3366 2000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
3367
3368 * configure: Rebuilt.
3369 * configure.in: (i*86-*-solaris*): New libffi target. Patch
3370 proposed by Bryce McKinlay.
3371
3372 2000-03-20 Tom Tromey <tromey@cygnus.com>
3373
3374 * Makefile.in: Hand edit for java_raw_api.lo.
3375
3376 2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
3377
3378 * config.guess, config.sub: Update from the gcc tree.
3379 Fix for PR libgcj/168.
3380
3381 2000-03-03 Tom Tromey <tromey@cygnus.com>
3382
3383 * Makefile.in: Fixed ia64 by hand.
3384
3385 * configure: Rebuilt.
3386 * configure.in (--enable-multilib): New option.
3387 (libffi_basedir): New subst.
3388 (AC_OUTPUT): Added multilib code.
3389
3390 2000-03-02 Tom Tromey <tromey@cygnus.com>
3391
3392 * Makefile.in: Rebuilt.
3393 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
3394 directory name.
3395
3396 2000-02-25 Hans Boehm <boehm@acm.org>
3397
3398 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
3399 files.
3400 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
3401 list.
3402 (ffi_prep_raw_closure): Use ffi_translate_args, not
3403 ffi_closure_translate.
3404 * src/java_raw_api.c: New file.
3405 * src/ffitest.c (closure_test_fn): New function.
3406 (main): Define `rint' as long long on IA64. Added new test when
3407 FFI_CLOSURES is defined.
3408 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
3409 (ffi_abi): Recognize IA64.
3410 (ffi_raw): Added `flt' field.
3411 Added "Java raw API" code.
3412 * configure.in: Recognize ia64.
3413 * Makefile.am (TARGET_SRC_IA64): New macro.
3414 (libffi_la_common_SOURCES): Added java_raw_api.c.
3415 (libffi_la_SOURCES): Define in IA64 case.
3416
3417 2000-01-04 Tom Tromey <tromey@cygnus.com>
3418
3419 * Makefile.in: Rebuilt with newer automake.
3420
3421 1999-12-31 Tom Tromey <tromey@cygnus.com>
3422
3423 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
3424
3425 1999-09-01 Tom Tromey <tromey@cygnus.com>
3426
3427 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
3428 undefs.
3429 * fficonfig.h.in: Rebuilt.
3430 * configure: Rebuilt.
3431 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
3432 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
3433 * acconfig.h: Don't #undef PACKAGE or VERSION.
3434
3435 1999-08-09 Anthony Green <green@cygnus.com>
3436
3437 * include/ffi.h.in: Try to work around messy header problem
3438 with PACKAGE and VERSION.
3439
3440 * configure: Rebuilt.
3441 * configure.in: Change version to 2.00-beta.
3442
3443 * fficonfig.h.in: Rebuilt.
3444 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
3445
3446 * src/x86/ffi.c (ffi_raw_call): Rename.
3447
3448 1999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
3449
3450 * src/x86/ffi.c (ffi_closure_SYSV): New function.
3451 (ffi_prep_incoming_args_SYSV): Ditto.
3452 (ffi_prep_closure): Ditto.
3453 (ffi_closure_raw_SYSV): Ditto.
3454 (ffi_prep_raw_closure): More ditto.
3455 (ffi_call_raw): Final ditto.
3456
3457 * include/ffi.h.in: Add definitions for closure and raw API.
3458
3459 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
3460 FFI_TYPE_UINT64.
3461
3462 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
3463
3464 * src/raw_api.c: New file.
3465
3466 * include/ffi.h.in (ffi_raw): New type.
3467 (UINT_ARG, SINT_ARG): New defines.
3468 (ffi_closure, ffi_raw_closure): New types.
3469 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
3470
3471 * configure.in: Add check for endianness and sizeof void*.
3472
3473 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
3474 instead of directly.
3475
3476 * configure: Rebuilt.
3477
3478 Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
3479
3480 * configure.in: Add x86 and powerpc BeOS configurations.
3481 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
3482
3483 1999-05-09 Anthony Green <green@cygnus.com>
3484
3485 * configure.in: Add warning about this being beta code.
3486 Remove src/Makefile.am from the picture.
3487 * configure: Rebuilt.
3488
3489 * Makefile.am: Move logic from src/Makefile.am. Add changes
3490 to support libffi as a target library.
3491 * Makefile.in: Rebuilt.
3492
3493 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
3494 Upgraded to new autoconf, automake, libtool.
3495
3496 * README: Tweaks.
3497
3498 * LICENSE: Update copyright date.
3499
3500 * src/Makefile.am, src/Makefile.in: Removed.
3501
3502 1998-11-29 Anthony Green <green@cygnus.com>
3503
3504 * include/ChangeLog: Removed.
3505 * src/ChangeLog: Removed.
3506 * src/mips/ChangeLog: Removed.
3507 * src/sparc/ChangeLog: Remboved.
3508 * src/x86/ChangeLog: Removed.
3509
3510 * ChangeLog.v1: Created.