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