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