]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/ChangeLog
ffi.c (ffi_prep_args_v9): Shift the parameter array when the structure return address...
[thirdparty/gcc.git] / libffi / ChangeLog
CommitLineData
0ce78f01
EB
12004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2
3 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
4 when the structure return address is passed in %o0.
5 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
6 (ffi_v9_layout_struct): Align the field following a nested structure
7 on a word boundary. Use memmove instead of memcpy.
8 (ffi_call): Update call to ffi_V9_return_struct.
9 (ffi_prep_closure): Define 'ctx' only for V8.
10 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
11 and ffi_closure_sparc_inner_v9.
12 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
13 Always skip the structure return address. For structures and long
14 doubles, copy the argument directly.
15 (ffi_closure_sparc_inner_v9): Skip the structure return address only
16 if required. Shift the maximum floating-point slot accordingly. For
17 big structures, copy the argument directly; otherwise, left-justify the
18 argument and call ffi_v9_layout_struct to lay out the structure on
19 the stack.
20 * src/sparc/v8.S: Undef STACKFRAME before defining it.
21 (ffi_closure_v8): Pass the structure return address. Update call to
22 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
23 Skip the 'unimp' insn when returning long doubles and structures.
24 * src/sparc/v9.S: Undef STACKFRAME before defining it.
25 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
26 FFI_TYPE_INT handling. Load structures both in integers and
27 floating-point registers on return.
28 * README: Update status of the SPARC port.
29
7fcc1d9b
AT
302004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
31
32 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
33 as of type ffi_arg.
34 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
35
6ed0ecaf
UW
362004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
37
38 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
39 value as of type ffi_arg, not unsigned int.
40
c930d8a5
MR
412004-01-21 Michael Ritzert <ritzert@t-online.de>
42
43 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
44 of the LHS.
45
7b2e3e60
AT
462004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
47
48 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
49 Solaris.
50
2e89756b
RO
512004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
52
53 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
54 to void *.
55
628b26f8
RH
562003-12-10 Richard Henderson <rth@redhat.com>
57
58 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
59 size_t instead of int.
60
0ee646d6
HY
612003-12-04 Hosaka Yuji <hos@tamanegi.org>
62
63 * testsuite/libffi.call/many_win32.c: Include <float.h>.
64 * testsuite/libffi.call/many_win32.c (main): Replace variable
65 int i with unsigned long ul.
66
67 * testsuite/libffi.call/cls_align_uint64.c: New test case.
68 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
69 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
70 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
71 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
72 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
73 * testsuite/libffi.call/cls_align_float.c: Likewise.
74 * testsuite/libffi.call/cls_align_double.c: Likewise.
75 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
76 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
77
2c4ed456
HY
782003-12-02 Hosaka Yuji <hos@tamanegi.org>
79
80 PR other/13221
81 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
82 Align arguments to 32 bits.
83
d18c3386
AT
842003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
85
86 PR other/13221
87 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
88 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
89 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
90 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
91 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
92 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
93
94 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
95
88096b2a
KG
962003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
97
98 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
99 * testsuite/libffi.special/ffitestcxx.h: Likewise.
100
3eee102e
AT
1012003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
102
103 * Makefile.in: Rebuilt.
104 * configure: Likewise.
105 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
106 the right type.
107
5196736e
AJ
1082003-11-21 Andreas Jaeger <aj@suse.de>
109 Andreas Tobler <a.tobler@schweiz.ch>
110
111 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
112 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
113 * Makefile.in: Rebuilt.
114 * aclocal.m4: Likewise.
115 * configure: Likewise.
116 * fficonfig.h.in: Likewise.
117 * testsuite/lib/libffi-dg.exp: Add include dir.
118 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
119 * testsuite/libffi.special/ffitestcxx.h: Likewise.
120 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
121 for ffi_closure if available.
122 * testsuite/libffi.call/closure_fn1.c: Likewise.
123 * testsuite/libffi.call/closure_fn2.c: Likewise.
124 * testsuite/libffi.call/closure_fn3.c: Likewise.
125 * testsuite/libffi.call/closure_fn4.c: Likewise.
126 * testsuite/libffi.call/closure_fn5.c: Likewise.
127 * testsuite/libffi.call/cls_12byte.c: Likewise.
128 * testsuite/libffi.call/cls_16byte.c: Likewise.
129 * testsuite/libffi.call/cls_18byte.c: Likewise.
130 * testsuite/libffi.call/cls_19byte.c: Likewise.
131 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
132 * testsuite/libffi.call/cls_20byte.c: Likewise.
133 * testsuite/libffi.call/cls_20byte1.c: Likewise.
134 * testsuite/libffi.call/cls_24byte.c: Likewise.
135 * testsuite/libffi.call/cls_2byte.c: Likewise.
136 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
137 * testsuite/libffi.call/cls_3byte1.c: Likewise.
138 * testsuite/libffi.call/cls_3byte2.c: Likewise.
139 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
140 * testsuite/libffi.call/cls_4byte.c: Likewise.
141 * testsuite/libffi.call/cls_5byte.c: Likewise.
142 * testsuite/libffi.call/cls_64byte.c: Likewise.
143 * testsuite/libffi.call/cls_6byte.c: Likewise.
144 * testsuite/libffi.call/cls_7byte.c: Likewise.
145 * testsuite/libffi.call/cls_8byte.c: Likewise.
146 * testsuite/libffi.call/cls_9byte1.c: Likewise.
147 * testsuite/libffi.call/cls_9byte2.c: Likewise.
148 * testsuite/libffi.call/cls_double.c: Likewise.
149 * testsuite/libffi.call/cls_float.c: Likewise.
150 * testsuite/libffi.call/cls_schar.c: Likewise.
151 * testsuite/libffi.call/cls_sint.c: Likewise.
152 * testsuite/libffi.call/cls_sshort.c: Likewise.
153 * testsuite/libffi.call/cls_uchar.c: Likewise.
154 * testsuite/libffi.call/cls_uint.c: Likewise.
155 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
156 * testsuite/libffi.call/cls_ushort.c: Likewise.
157 * testsuite/libffi.call/nested_struct.c: Likewise.
158 * testsuite/libffi.call/nested_struct1.c: Likewise.
159 * testsuite/libffi.call/nested_struct2.c: Likewise.
160 * testsuite/libffi.call/nested_struct3.c: Likewise.
161 * testsuite/libffi.call/problem1.c: Likewise.
162 * testsuite/libffi.special/unwindtest.cc: Likewise.
163
9e6c3ecb
AT
1642003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
165
166 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
167
70d8f2a1
AT
1682003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
169
170 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
171 Add -lgcc_s to additional flags.
172
ea81d2a3
AT
1732003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
174
175 * configure.in, include/Makefile.am: PR libgcj/11147, install
176 the ffitarget.h header file in a gcc versioned and target
177 dependent place.
178 * configure: Regenerated.
179 * Makefile.in, include/Makefile.in: Likewise.
180 * testsuite/Makefile.in: Likewise.
181
647af4a9
AT
1822003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
183
184 * testsuite/libffi.call/closure_fn0.c: Print result and check
185 with dg-output to make debugging easier.
186 * testsuite/libffi.call/closure_fn1.c: Likewise.
187 * testsuite/libffi.call/closure_fn2.c: Likewise.
188 * testsuite/libffi.call/closure_fn3.c: Likewise.
189 * testsuite/libffi.call/closure_fn4.c: Likewise.
190 * testsuite/libffi.call/closure_fn5.c: Likewise.
191 * testsuite/libffi.call/cls_12byte.c: Likewise.
192 * testsuite/libffi.call/cls_16byte.c: Likewise.
193 * testsuite/libffi.call/cls_18byte.c: Likewise.
194 * testsuite/libffi.call/cls_19byte.c: Likewise.
195 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
196 * testsuite/libffi.call/cls_20byte.c: Likewise.
197 * testsuite/libffi.call/cls_20byte1.c: Likewise.
198 * testsuite/libffi.call/cls_24byte.c: Likewise.
199 * testsuite/libffi.call/cls_2byte.c: Likewise.
200 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
201 * testsuite/libffi.call/cls_3byte1.c: Likewise.
202 * testsuite/libffi.call/cls_3byte2.c: Likewise.
203 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
204 * testsuite/libffi.call/cls_4byte.c: Likewise.
205 * testsuite/libffi.call/cls_5byte.c: Likewise.
206 * testsuite/libffi.call/cls_64byte.c: Likewise.
207 * testsuite/libffi.call/cls_6byte.c: Likewise.
208 * testsuite/libffi.call/cls_7byte.c: Likewise.
209 * testsuite/libffi.call/cls_8byte.c: Likewise.
210 * testsuite/libffi.call/cls_9byte1.c: Likewise.
211 * testsuite/libffi.call/cls_9byte2.c: Likewise.
212 * testsuite/libffi.call/cls_double.c: Likewise.
213 * testsuite/libffi.call/cls_float.c: Likewise.
214 * testsuite/libffi.call/cls_schar.c: Likewise.
215 * testsuite/libffi.call/cls_sint.c: Likewise.
216 * testsuite/libffi.call/cls_sshort.c: Likewise.
217 * testsuite/libffi.call/cls_uchar.c: Likewise.
218 * testsuite/libffi.call/cls_uint.c: Likewise.
219 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
220 * testsuite/libffi.call/cls_ushort.c: Likewise.
221 * testsuite/libffi.call/problem1.c: Likewise.
222
223 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
224 static.
225
ac47cc13
AT
2262003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
227
228 * testsuite/libffi.call/cls_9byte2.c: New test case.
229 * testsuite/libffi.call/cls_9byte1.c: Likewise.
230 * testsuite/libffi.call/cls_64byte.c: Likewise.
231 * testsuite/libffi.call/cls_20byte1.c: Likewise.
232 * testsuite/libffi.call/cls_19byte.c: Likewise.
233 * testsuite/libffi.call/cls_18byte.c: Likewise.
234 * testsuite/libffi.call/closure_fn4.c: Likewise.
235 * testsuite/libffi.call/closure_fn5.c: Likewise.
236 * testsuite/libffi.call/cls_schar.c: Likewise.
237 * testsuite/libffi.call/cls_sint.c: Likewise.
238 * testsuite/libffi.call/cls_sshort.c: Likewise.
239 * testsuite/libffi.call/nested_struct2.c: Likewise.
240 * testsuite/libffi.call/nested_struct3.c: Likewise.
241
f145ed6b
AT
2422003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
243
244 * testsuite/libffi.call/cls_double.c: Do a check on the result.
245 * testsuite/libffi.call/cls_uchar.c: Likewise.
246 * testsuite/libffi.call/cls_uint.c: Likewise.
247 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
248 * testsuite/libffi.call/cls_ushort.c: Likewise.
249 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
250
2b04d015
AT
2512003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
252
253 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
254 the initialization.
255
57f542b3
AT
2562003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
257
2b04d015 258 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
57f542b3
AT
259 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
260
e61acf72
DD
2612003-10-22 David Daney <ddaney@avtrex.com>
262
263 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
264 __attribute__((__mode__(__SI__))) and friends.
265
2461c08b
AS
2662003-10-22 Andreas Schwab <schwab@suse.de>
267
268 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
269
1450eb7a
AT
2702003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
271
272 * configure.in: AC_LINK_FILES(ffitarget.h).
273 * configure: Regenerate.
274 * Makefile.in: Likewise.
275 * include/Makefile.in: Likewise.
276 * testsuite/Makefile.in: Likewise.
277 * fficonfig.h.in: Likewise.
278
2792003-10-21 Paolo Bonzini <bonzini@gnu.org>
280 Richard Henderson <rth@redhat.com>
281
282 Avoid that ffi.h includes fficonfig.h.
283
284 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
285 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
286 (TARGET_SRC_MIPS_SGI): Removed.
287 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
288 (MIPS_SGI): Removed.
289 (CLEANFILES): Removed.
290 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
291 targets.
292 * acconfig.h: Removed.
293 * configure.in: Compute sizeofs only for double and long double.
294 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
295 into AC_DEFINE instead of using acconfig.h. Create
296 include/ffitarget.h instead of include/fficonfig.h. Rename
297 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
298 AC_DEFINE EH_FRAME_FLAGS.
299 * include/Makefile.am (DISTCLEANFILES): New automake macro.
300 (hack_DATA): Add ffitarget.h.
301 * include/ffi.h.in: Remove all system specific definitions.
302 Declare raw API even if it is not installed, why bother?
303 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
304 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
305 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
306 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
307 * include/ffi_common.h (bool): Do not define.
308 (ffi_assert): Accept failed assertion.
309 (ffi_type_test): Return void and accept file/line.
310 (FFI_ASSERT): Pass stringized failed assertion.
311 (FFI_ASSERT_AT): New macro.
312 (FFI_ASSERT_VALID_TYPE): New macro.
313 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
314 UINT64, SINT64): Define here with gcc's __attribute__ macro
315 instead of in ffi.h
316 (FLOAT32, ALIGN): Define here instead of in ffi.h
317 * include/ffi-mips.h: Removed. Its content moved to
318 src/mips/ffitarget.h after separating assembly and C sections.
319 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
320 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
321 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
322 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
323 SIZEOF_ARG -> FFI_SIZEOF_ARG.
324 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
325 * src/debug.c (ffi_assert): Accept stringized failed assertion.
326 (ffi_type_test): Rewritten.
327 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
328 FFI_ASSERT_VALID_TYPE.
329 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
330 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
331 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
332 src/s390/ffitarget.h, src/sh/ffitarget.h,
333 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
334 src/x86/ffitarget.h: New files.
335 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
336 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
337 src/powerpc/aix.S, src/powerpc/darwin.S,
338 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
339 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
340 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
341 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
342 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
343 include fficonfig.h
344
27d54b2a
RO
3452003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
346
347 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
348 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
349
0df6970d
AT
3502003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
351
352 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
353 Used when FFI_DEBUG = 1.
354
2612ffce
AM
3552003-10-14 Alan Modra <amodra@bigpond.net.au>
356
357 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
358 and align.
359
d54f7354
RO
3602003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
361
362 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
363 FFI_MIPS_O32 for O32 ABI.
364
7a54c850
AT
3652003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
366
367 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
368 SPARC64. Cleanup whitespaces.
369
9e3bfa9b
AT
3702003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
371
372 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
373 strongarm, xscale. Cleanup whitespaces.
374 * testsuite/libffi.call/closure_fn1.c: Likewise.
375 * testsuite/libffi.call/closure_fn2.c: Likewise.
376 * testsuite/libffi.call/closure_fn3.c: Likewise.
377 * testsuite/libffi.call/cls_12byte.c: Likewise.
378 * testsuite/libffi.call/cls_16byte.c: Likewise.
379 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
380 * testsuite/libffi.call/cls_20byte.c: Likewise.
381 * testsuite/libffi.call/cls_24byte.c: Likewise.
382 * testsuite/libffi.call/cls_2byte.c: Likewise.
383 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
384 * testsuite/libffi.call/cls_3byte1.c: Likewise.
385 * testsuite/libffi.call/cls_3byte2.c: Likewise.
386 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
387 * testsuite/libffi.call/cls_4byte.c: Likewise.
388 * testsuite/libffi.call/cls_5byte.c: Likewise.
389 * testsuite/libffi.call/cls_6byte.c: Likewise.
390 * testsuite/libffi.call/cls_7byte.c: Likewise.
391 * testsuite/libffi.call/cls_8byte.c: Likewise.
392 * testsuite/libffi.call/cls_double.c: Likewise.
393 * testsuite/libffi.call/cls_float.c: Likewise.
394 * testsuite/libffi.call/cls_uchar.c: Likewise.
395 * testsuite/libffi.call/cls_uint.c: Likewise.
396 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
397 * testsuite/libffi.call/cls_ushort.c: Likewise.
398 * testsuite/libffi.call/nested_struct.c: Likewise.
399 * testsuite/libffi.call/nested_struct1.c: Likewise.
400 * testsuite/libffi.call/problem1.c: Likewise.
401 * testsuite/libffi.special/unwindtest.cc: Likewise.
402 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
403
3e86b595
DE
4042003-09-18 David Edelsohn <edelsohn@gnu.org>
405
406 * src/powerpc/aix.S: Cleanup whitespaces.
407 * src/powerpc/aix_closure.S: Likewise.
408
8d8369f8
AT
4092003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
410
411 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
412 * src/powerpc/darwin_closure.S: Likewise.
413 * src/powerpc/ffi_darwin.c: Likewise.
414
69b182fd
AT
4152003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
416 David Edelsohn <edelsohn@gnu.org>
417
418 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
419 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
420 parameter stack.
421 * src/powerpc/darwin_closure.S: Likewise.
422 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
423 according to the Darwin/AIX ABI.
424 (ffi_prep_cif_machdep): Likewise.
425 (ffi_closure_helper_DARWIN): Likewise.
426 Remove the outgoing parameter stack logic. Simplify the evaluation
427 of the different CASE types.
428 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
429 statement in the trampoline code.
430
df805cdc
KK
4312003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
432
433 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
434 for the register size.
435 (ffi_closure_helper_SYSV): Handle the structure return value
436 address correctly.
437 (ffi_closure_helper_SYSV): Return the appropriate type when
438 the registers are used for the structure return value.
439 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
440 the 64-bit return value. Update copyright years.
441
eb26c76c
RO
4422003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
443
444 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
445 srcdir for ffi_mips.h.
446
6350c02c
AM
4472003-09-12 Alan Modra <amodra@bigpond.net.au>
448
449 * src/prep_cif.c (initialize_aggregate): Include tail padding in
450 structure size.
451 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
452 placement of float result.
453 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
454 cast of "resp" for big-endian 64 bit machines.
455
5af1c806
AM
4562003-09-11 Alan Modra <amodra@bigpond.net.au>
457
458 * src/types.c (double, longdouble): Merge identical SH and ARM
459 typedefs, and add POWERPC64.
460 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
461 struct split over gpr and rest.
462 (ffi_prep_cif_machdep): Correct intarg_count for structures.
463 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
464
086a4bd7
AT
4652003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
466
467 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
468 passing correctly.
c930d8a5 469
e517f636
AM
4702003-09-09 Alan Modra <amodra@bigpond.net.au>
471
472 * configure: Regenerate.
473
6f20d627
AT
4742003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
475
476 * Makefile.am: Remove build rules for ffitest.
477 * Makefile.in: Rebuilt.
c930d8a5 478
6f20d627 4792003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
226660af
AT
480
481 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
482 about implicit declaration of abort().
483
bbf3057b
AT
4842003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
485
486 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
487 * Makefile.in: Rebuilt.
488 * configure.in: Add dejagnu test framework.
489 * configure: Rebuilt.
490
491 * testsuite/Makefile.am: New file.
492 * testsuite/Makefile.in: Built
c930d8a5 493 * testsuite/lib/libffi-dg.exp: New file.
bbf3057b
AT
494 * testsuite/config/default.exp: Likewise.
495 * testsuite/libffi.call/call.exp: Likewise.
496 * testsuite/libffi.call/ffitest.h: Likewise.
497 * testsuite/libffi.call/closure_fn0.c: Likewise.
498 * testsuite/libffi.call/closure_fn1.c: Likewise.
499 * testsuite/libffi.call/closure_fn2.c: Likewise.
500 * testsuite/libffi.call/closure_fn3.c: Likewise.
501 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
502 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
503 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
504 * testsuite/libffi.call/cls_2byte.c: Likewise.
505 * testsuite/libffi.call/cls_3byte1.c: Likewise.
506 * testsuite/libffi.call/cls_3byte2.c: Likewise.
507 * testsuite/libffi.call/cls_4byte.c: Likewise.
508 * testsuite/libffi.call/cls_5byte.c: Likewise.
509 * testsuite/libffi.call/cls_6byte.c: Likewise.
510 * testsuite/libffi.call/cls_7byte.c: Likewise.
511 * testsuite/libffi.call/cls_8byte.c: Likewise.
512 * testsuite/libffi.call/cls_12byte.c: Likewise.
513 * testsuite/libffi.call/cls_16byte.c: Likewise.
514 * testsuite/libffi.call/cls_20byte.c: Likewise.
515 * testsuite/libffi.call/cls_24byte.c: Likewise.
516 * testsuite/libffi.call/cls_double.c: Likewise.
517 * testsuite/libffi.call/cls_float.c: Likewise.
518 * testsuite/libffi.call/cls_uchar.c: Likewise.
519 * testsuite/libffi.call/cls_uint.c: Likewise.
520 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
521 * testsuite/libffi.call/cls_ushort.c: Likewise.
522 * testsuite/libffi.call/float.c: Likewise.
523 * testsuite/libffi.call/float1.c: Likewise.
524 * testsuite/libffi.call/float2.c: Likewise.
525 * testsuite/libffi.call/many.c: Likewise.
526 * testsuite/libffi.call/many_win32.c: Likewise.
527 * testsuite/libffi.call/nested_struct.c: Likewise.
528 * testsuite/libffi.call/nested_struct1.c: Likewise.
529 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
530 * testsuite/libffi.call/problem1.c: Likewise.
531 * testsuite/libffi.call/promotion.c: Likewise.
532 * testsuite/libffi.call/return_ll.c: Likewise.
533 * testsuite/libffi.call/return_sc.c: Likewise.
534 * testsuite/libffi.call/return_uc.c: Likewise.
535 * testsuite/libffi.call/strlen.c: Likewise.
536 * testsuite/libffi.call/strlen_win32.c: Likewise.
537 * testsuite/libffi.call/struct1.c: Likewise.
538 * testsuite/libffi.call/struct2.c: Likewise.
539 * testsuite/libffi.call/struct3.c: Likewise.
540 * testsuite/libffi.call/struct4.c: Likewise.
541 * testsuite/libffi.call/struct5.c: Likewise.
542 * testsuite/libffi.call/struct6.c: Likewise.
543 * testsuite/libffi.call/struct7.c: Likewise.
544 * testsuite/libffi.call/struct8.c: Likewise.
c930d8a5 545 * testsuite/libffi.call/struct9.c: Likewise.
bbf3057b
AT
546 * testsuite/libffi.special/special.exp: New file.
547 * testsuite/libffi.special/ffitestcxx.h: Likewise.
548 * testsuite/libffi.special/unwindtest.cc: Likewise.
549
c930d8a5 550
996b4f8f
KK
5512003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
552
553 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
554 copyright years.
555
b00badcd
AM
5562003-08-02 Alan Modra <amodra@bigpond.net.au>
557
558 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
559 structure passing.
560 (ffi_closure_helper_LINUX64): Likewise.
561 * src/powerpc/linux64.S: Remove code writing to parm save area.
562 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
563 address in lr from ffi_closure_helper_LINUX64 call to calculate
564 table address. Optimize function tail.
565
c1516eae
AT
5662003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
567
568 * src/sparc/ffi.c: Handle all floating point registers.
569 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
570
fc0e6222
GP
5712003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
572
573 * README: Note that libffi is not part of GCC. Update the project
574 URL and status.
575
a1569df8
FS
5762003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
577
578 * src/powerpc/ppc_closure.S: Include ffi.h.
579
12e816bf
RO
5802003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
581
582 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
583 Use C style comments.
584
e860ed6d
KK
5852003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
586
587 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
588 * Makefile.in: Regenerate.
589 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
590 * configure: Regenerate.
591 * include/ffi.h.in: Add SHmedia support.
592 * src/sh64/ffi.c: New file.
593 * src/sh64/sysv.S: New file.
594
a733b15e
JJ
5952003-05-16 Jakub Jelinek <jakub@redhat.com>
596
597 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
598 should be read-only.
599 * configure: Rebuilt.
600 * fficonfig.h.in: Rebuilt.
601 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
602 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
603 * src/powerpc/linux64.S: Likewise.
604 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
605 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
606 if -fpic/-fPIC/-mrelocatable.
607 * src/powerpc/powerpc_closure.S: Likewise.
608 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
609 #write in .eh_frame flags.
610 * src/sparc/v9.S: Likewise.
611 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
612 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
613 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
614
bd19c9f4
JS
6152003-05-07 Jeff Sturm <jsturm@one-point.com>
616
617 Fixes PR bootstrap/10656
618 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
619 support for .register pseudo-op.
620 * src/sparc/v8.S: Use it.
621 * fficonfig.h.in: Rebuilt.
622 * configure: Rebuilt.
623
e9b84181
JJ
6242003-04-18 Jakub Jelinek <jakub@redhat.com>
625
626 * include/ffi.h.in (POWERPC64): Define if 64-bit.
627 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
628 Make it the default on POWERPC64.
629 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
630 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
631 * configure: Rebuilt.
632 * src/powerpc/ffi.c (hidden): Define.
633 (ffi_prep_args_SYSV): Renamed from
634 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
635 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
636 ASM_NEEDS_REGISTERS64): New.
637 (ffi_prep_args64): New function.
638 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
639 (ffi_call): Likewise.
640 (ffi_prep_closure): Likewise.
641 (flush_icache): Surround by #ifndef POWERPC64.
642 (ffi_dblfl): New union type.
643 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
644 (ffi_closure_helper_LINUX64): New function.
645 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
646 __powerpc64__.
647 * src/powerpc/sysv.S: Likewise.
648 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
649 * src/powerpc/linux64.S: New file.
650 * src/powerpc/linux64_closure.S: New file.
651 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
652 src/powerpc/linux64_closure.S.
653 (TARGET_SRC_POWERPC): Likewise.
654
655 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
656 closure_test_fn3): Fix result printing on big-endian 64-bit
657 machines.
658 (main): Print tst2_arg instead of uninitialized tst2_result.
659
660 * src/ffitest.c (main): Hide what closure pointer really points to
661 from the compiler.
662
908a31e1
RE
6632003-04-16 Richard Earnshaw <rearnsha@arm.com>
664
665 * configure.in (arm-*-netbsdelf*): Add configuration.
666 (configure): Regenerated.
667
41a73c4c
LR
6682003-04-04 Loren J. Rittle <ljrittle@acm.org>
669
670 * include/Makefile.in: Regenerate.
671
cd41c847
ZD
6722003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
673
674 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
675 bit mode.
676 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
677 Receive closure pointer through parameter, read args using
678 __builtin_dwarf_cfa.
679 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
680
6db450f9
AS
6812003-03-12 Andreas Schwab <schwab@suse.de>
682
683 * configure.in: Avoid trailing /. in toolexeclibdir.
684 * configure: Rebuilt.
685
70144e9c
AT
6862003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
687
688 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
689
79e43f89
AT
6902003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
691
692 * libffi/src/powerpc/darwin_closure.S:
693 Fix alignement bug, allocate 8 bytes for the result.
c930d8a5 694 * libffi/src/powerpc/aix_closure.S:
79e43f89
AT
695 Likewise.
696 * libffi/src/powerpc/ffi_darwin.c:
697 Update stackframe description for aix/darwin_closure.S.
c930d8a5 698
0fcc9e55
JJ
6992003-02-06 Jakub Jelinek <jakub@redhat.com>
700
701 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
702 attribute.
703
63b87c2e
CC
7042003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
705 Andreas Schwab <schwab@suse.de>
706
707 * configure.in: Adjust command to source config-ml.in to account
708 for changes to the libffi_basedir definition.
709 (libffi_basedir): Remove ${srcdir} from value and include trailing
710 slash if nonempty.
c930d8a5 711
63b87c2e
CC
712 * configure: Regenerate.
713
c33402e2
FS
7142003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
715
716 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
717
fd2e49b2
AH
7182003-01-28 Andrew Haley <aph@redhat.com>
719
720 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
721 * src/x86/ffi64.c (ffi_prep_closure): New.
722 (ffi_closure_UNIX64_inner): New.
723 * src/x86/unix64.S (ffi_closure_UNIX64): New.
724
0e292c01
AO
7252003-01-27 Alexandre Oliva <aoliva@redhat.com>
726
727 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
728 Remove USE_LIBDIR conditional.
729 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
730 * Makefile.in, configure: Rebuilt.
731
acabc220
DE
7322003-01027 David Edelsohn <edelsohn@gnu.org>
733
734 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
735 * Makefile.in: Regenerate.
736
be0acd42
AH
7372003-01-22 Andrew Haley <aph@redhat.com>
738
739 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
740 unwind info.
741
ed695c8e
AT
7422003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
743
744 * src/powerpc/darwin.S: Add unwind info.
745 * src/powerpc/darwin_closure.S: Likewise.
746
45ba15f4
AH
7472003-01-14 Andrew Haley <aph@redhat.com>
748
749 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
750 (ffi_prep_cif_machdep): Likewise.
751 * src/x86/unix64.S: Add unwind info.
752
4b5f402e
AJ
7532003-01-14 Andreas Jaeger <aj@suse.de>
754
755 * src/ffitest.c (main): Only use ffi_closures if those are
756 supported.
757
7b5102af
TT
7582003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
759
760 * libffi/src/ffitest.c
761 add closure testcases
762
7632003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
764
765 * libffi/src/powerpc/ffi.c
766 fix alignment bug for float (4 byte aligned iso 8 byte)
767
5f7c78d8
GK
7682003-01-09 Geoffrey Keating <geoffk@apple.com>
769
770 * src/powerpc/ffi_darwin.c: Remove RCS version string.
771 * src/powerpc/darwin.S: Remove RCS version string.
772
c75c7793
JS
7732003-01-03 Jeff Sturm <jsturm@one-point.com>
774
775 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
776 * src/ffitest.c (main): Use static storage for closure.
777 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
778 * src/sparc/v8.S (ffi_closure_v8): New.
779 * src/sparc/v9.S (ffi_closure_v9): New.
780
eb3c46a1
RM
7812002-11-10 Ranjit Mathew <rmathew@hotmail.com>
782
783 * include/ffi.h.in: Added FFI_STDCALL ffi_type
784 enumeration for X86_WIN32.
785 * src/x86/win32.S: Added ffi_call_STDCALL function
786 definition.
787 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
788 switch cases for recognising FFI_STDCALL and
789 calling ffi_call_STDCALL if target is X86_WIN32.
790 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
791 stdcall versions of the "my_strlen" and "many"
792 test functions (for X86_WIN32).
793 Added test cases to test stdcall invocation using
794 these functions.
795
4977bab6
ZW
7962002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
797
798 * src/sh/sysv.S: Add DWARF2 unwind info.
799
67333e84
UW
8002002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
801
802 * src/s390/sysv.S (.eh_frame section): Make section read-only.
803
bc3cf760
JW
8042002-11-26 Jim Wilson <wilson@redhat.com>
805
806 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
807
4977bab6
ZW
8082002-11-23 H.J. Lu <hjl@gnu.org>
809
810 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
811 Include ../config/accross.m4.
812 * aclocal.m4; Rebuild.
813 * configure: Likewise.
814
18789f4e
UW
8152002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
816
817 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
818
6bee5372
DD
8192002-11-11 DJ Delorie <dj@redhat.com>
820
821 * configure.in: Look for common files in the right place.
822
8177895b
UW
8232002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
824
825 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
826 raw data as _Jv_word values, not ffi_raw.
827 (ffi_java_ptrarray_to_raw): Likewise.
828 (ffi_java_rvalue_to_raw): New function.
829 (ffi_java_raw_call): Call it.
830 (ffi_java_raw_to_rvalue): New function.
831 (ffi_java_translate_args): Call it.
832 * src/ffitest.c (closure_test_fn): Interpret return value
833 as ffi_arg, not int.
834 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
835 FFI_TYPE_POINTER case.
836 (ffi_closure_helper_SYSV): Likewise. Also, assume return
837 values extended to word size.
838
af50f4c8
AJ
8392002-10-02 Andreas Jaeger <aj@suse.de>
840
841 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
842
5d297584
BT
8432002-10-01 Bo Thorsen <bo@smetana.suse.de>
844
845 * include/ffi.h.in: Fix i386 win32 compilation.
846
c4f17c6f
UW
8472002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
848
849 * configure.in: Add s390x-*-linux-* target.
850 * configure: Regenerate.
851 * include/ffi.h.in: Define S390X for s390x targets.
852 (FFI_CLOSURES): Define for s390/s390x.
853 (FFI_TRAMPOLINE_SIZE): Likewise.
854 (FFI_NATIVE_RAW_API): Likewise.
855 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
856 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
4977bab6 857 * src/s390/ffi.c: Major rework of existing code. Add support for
c4f17c6f
UW
858 s390x targets. Add closure support.
859 * src/s390/sysv.S: Likewise.
860
d7b52625
RE
8612002-09-29 Richard Earnshaw <rearnsha@arm.com>
862
863 * src/arm/sysv.S: Fix typo.
864
28165e22
RE
8652002-09-28 Richard Earnshaw <rearnsha@arm.com>
866
867 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
868 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
869 (ffi_call_SYSV): Handle soft-float.
870
0b0f4163
BT
8712002-09-27 Bo Thorsen <bo@suse.de>
872
873 * include/ffi.h.in: Fix multilib x86-64 support.
874
6c5d742e
KG
8752002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
876
877 * Makefile.am (all-multi): Fix multilib parallel build.
878
f4b2b0d6
KK
8792002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
880
881 * configure.in (sh[34]*-*-linux*): Add brackets.
882 * configure: Regenerate.
883
ddebdfeb
KK
8842002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
885
886 * Makefile.am: Add SH support.
887 * Makefile.in: Regenerate.
888 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
889 * configure: Regenerate.
890 * include/ffi.h.in: Add SH support.
891 * src/sh/ffi.c: New file.
892 * src/sh/sysv.S: New file.
893 * src/types.c: Add SH support.
894
c94974ca
BT
8952002-07-16 Bo Thorsen <bo@suse.de>
896
897 * src/x86/ffi64.c: New file that adds x86-64 support.
898 * src/x86/unix64.S: New file that handles argument setup for
899 x86-64.
900 * src/x86/sysv.S: Don't use this on x86-64.
901 * src/x86/ffi.c: Don't use this on x86-64.
902 Remove unused vars.
903 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
904 for x86-64.
905 * src/ffitest.c (struct6): New test that tests a special case in
906 the x86-64 ABI.
907 (struct7): Likewise.
908 (struct8): Likewise.
909 (struct9): Likewise.
910 (closure_test_fn): Silence warning about this when it's not used.
911 (main): Add the new tests.
912 (main): Fix a couple of wrong casts and silence some compiler warnings.
913 * include/ffi.h.in: Add x86-64 ABI definition.
914 * fficonfig.h.in: Regenerate.
915 * Makefile.am: Add x86-64 support.
916 * configure.in: Likewise.
917 * Makefile.in: Regenerate.
918 * configure: Likewise.
919
9202002-06-24 Bo Thorsen <bo@suse.de>
921
922 * src/types.c: Merge settings for similar architectures.
923 Add x86-64 sizes and alignments.
924
9252002-06-23 Bo Thorsen <bo@suse.de>
926
927 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
928 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
929 * src/mips/ffi.c (ffi_prep_args): Likewise.
930 * src/m68k/ffi.c (ffi_prep_args): Likewise.
931
5be36a8f
L
9322002-07-18 H.J. Lu (hjl@gnu.org)
933
934 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
935 (libffi_la_SOURCES): Support MIPS_LINUX.
936 (libffi_convenience_la_SOURCES): Likewise.
937 * Makefile.in: Regenerated.
938
939 * configure.in (mips64*-*): Skip.
940 (mips*-*-linux*): New.
941 * configure: Regenerated.
942
943 * src/mips/ffi.c: Include <sgidefs.h>.
944
ad5e163c
UW
9452002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
946
947 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
948
ee4586c5
RS
9492002-05-27 Roger Sayle <roger@eyesopen.com>
950
951 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
952
b86aa7b0
BT
9532002-05-27 Bo Thorsen <bo@suse.de>
954
955 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
956 fix formatting.
957
859f7aaf
AT
9582002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
959
960 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
961 beginning of function (for older apple cc).
962
6706f116
AO
9632002-05-08 Alexandre Oliva <aoliva@redhat.com>
964
965 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
966 script entry, and set LD to it when configuring multilibs.
967 * configure: Rebuilt.
968
fad655c8
JT
9692002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
970
971 * configure.in (sparc64-*-netbsd*): Add target.
972 (sparc-*-netbsdelf*): Likewise.
973 * configure: Regenerate.
974
189ab118
DM
9752002-04-28 David S. Miller <davem@redhat.com>
976
977 * configure.in, configure: Fix SPARC test in previous change.
978
22bcf65c
GT
9792002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
980
981 * Makefile.am: Add Linux for S/390 support.
982 * Makefile.in: Regenerate.
983 * configure.in: Add Linux for S/390 support.
984 * configure: Regenerate.
985 * include/ffi.h.in: Add Linux for S/390 support.
986 * src/s390/ffi.c: New file from libffi CVS tree.
987 * src/s390/sysv.S: New file from libffi CVS tree.
988
5d84cf0b
JJ
9892002-04-28 Jakub Jelinek <jakub@redhat.com>
990
991 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
992 %r_disp32().
993 * src/sparc/v8.S: Use it.
994 * src/sparc/v9.S: Likewise.
995 * fficonfig.h.in: Rebuilt.
996 * configure: Rebuilt.
997
cc382e5c
HB
9982002-04-08 Hans Boehm <Hans_Boehm@hp.com>
999
1000 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
1001 correctly.
1002 * src/ia64/unix.S: Add unwind information. Fix comments.
1003 Save sp in a way that's compatible with unwind info.
1004 (ffi_call_unix): Correctly restore sp in all cases.
1005 * src/ia64/ffi.c: Add, fix comments.
1006
dc798645
JJ
10072002-04-08 Jakub Jelinek <jakub@redhat.com>
1008
1009 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
1010
da00eaab
JT
10112002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1012
1013 * configure.in (alpha*-*-netbsd*): Add target.
1014 * configure: Regenerate.
1015
0c0b87ad
JS
10162002-04-04 Jeff Sturm <jsturm@one-point.com>
1017
1018 * src/sparc/v8.S: Add unwind info.
1019 * src/sparc/v9.S: Likewise.
1020
320d7e7a
KW
10212002-03-30 Krister Walfridsson <cato@df.lth.se>
1022
1023 * configure.in: Enable i*86-*-netbsdelf*.
1024 * configure: Rebuilt.
4977bab6 1025
c75e51ed
DB
10262002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
1027
1028 PR other/2620
1029 * src/mips/n32.s: Delete
1030 * src/mips/o32.s: Delete
1031
5bb366e0
LR
10322002-03-21 Loren J. Rittle <ljrittle@acm.org>
1033
1034 * configure.in: Enable alpha*-*-freebsd*.
1035 * configure: Rebuilt.
1036
ce3b24a7
BM
10372002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1038
1039 * Makefile.am: libfficonvenience -> libffi_convenience.
1040 * Makefile.in: Rebuilt.
4977bab6 1041
1eb7ba30
BM
1042 * Makefile.am: Define ffitest_OBJECTS.
1043 * Makefile.in: Rebuilt.
ce3b24a7 1044
073ae293
AT
10452002-03-07 Andreas Tobler <toa@pop.agri.ch>
1046 David Edelsohn <edelsohn@gnu.org>
1047
1048 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
1049 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
1050 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
1051 * Makefile.in: Regenerate.
1052 * include/ffi.h.in: Add AIX and Darwin closure definitions.
1053 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
1054 (flush_icache, flush_range): New functions.
1055 (ffi_closure_helper_DARWIN): New function.
1056 * src/powerpc/aix_closure.S: New file.
1057 * src/powerpc/darwin_closure.S: New file.
4977bab6 1058
02c521f4
JS
10592002-02-24 Jeff Sturm <jsturm@one-point.com>
1060
1061 * include/ffi.h.in: Add typedef for ffi_arg.
1062 * src/ffitest.c (main): Declare rint with ffi_arg.
4977bab6 1063
287dd527
AT
10642002-02-21 Andreas Tobler <toa@pop.agri.ch>
1065
1066 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
1067 number of GPRs for floating-point arguments.
1068
e2f2e70a
AG
10692002-01-31 Anthony Green <green@redhat.com>
1070
1071 * configure: Rebuilt.
1072 * configure.in: Replace CHECK_SIZEOF and endian tests with
1073 cross-compiler friendly macros.
1074 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
1075 macros.
1076
15b9b32f
DE
10772002-01-18 David Edelsohn <edelsohn@gnu.org>
1078
1079 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1f7d5413 1080 * src/powerpc/aix.S (ffi_call_DARWIN): New.
15b9b32f 1081
2f4006f8
DE
10822002-01-17 David Edelsohn <edelsohn@gnu.org>
1083
1084 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
1085 (TARGET_SRC_POWERPC_AIX): New.
1086 (POWERPC_AIX): New stanza.
1087 * Makefile.in: Regenerate.
1088 * configure.in: Add AIX case.
1089 * configure: Regenerate.
1090 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
1091 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
1092 size. Fix "long double" support.
1093 (ffi_call): Add FFI_AIX case.
1094 * src/powerpc/aix.S: New.
1095
3c017635
JH
10962001-10-09 John Hornkvist <john@toastedmarshmallow.com>
1097
1098 Implement Darwin PowerPC ABI.
1099 * configure.in: Handle powerpc-*-darwin*.
1100 * Makefile.am: Set source files for POWERPC_DARWIN.
1101 * configure: Rebuilt.
1102 * Makefile.in: Rebuilt.
1103 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
1104 POWERPC_DARWIN.
1105 * src/powerpc/darwin.S: New file.
1106 * src/powerpc/ffi_darwin.c: New file.
1107
cc712abf
JM
11082001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1109
1110 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
1111
03a8de49
RO
11122001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1113
1114 * src/x86/sysv.S: Avoid gas-only .balign directive.
1115 Use C style comments.
1116
92a0e6c6
RO
11172001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1118
1119 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
1120 Fixes PR bootstrap/3563.
1121
57482f58
RO
11222001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1123
1124 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
1125
d7e2dd2f
RO
11262001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1127
1128 * configure.in: Recognize sparc*-sun-* host.
1129 * configure: Regenerate.
4977bab6 1130
be72207c
AH
11312001-06-06 Andrew Haley <aph@redhat.com>
1132
4075db8f 1133 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
be72207c 1134
552cb45a
AH
11352001-06-03 Andrew Haley <aph@redhat.com>
1136
4075db8f
BT
1137 * src/alpha/osf.S: Add unwind info.
1138 * src/powerpc/sysv.S: Add unwind info.
1139 * src/powerpc/ppc_closure.S: Likewise.
552cb45a 1140
7d45b968
JS
11412000-05-31 Jeff Sturm <jsturm@one-point.com>
1142
1143 * configure.in: Fix AC_ARG_ENABLE usage.
1144 * configure: Rebuilt.
1145
2a7f63c4
BM
11462001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1147
1148 * configure.in: Remove warning about beta code.
1149 * configure: Rebuilt.
1150
11512001-04-25 Hans Boehm <Hans_Boehm@hp.com>
1152
03a55252
HB
1153 * src/ia64/unix.S: Restore stack pointer when returning from
1154 ffi_closure_UNIX.
1155 * src/ia64/ffi.c: Fix typo in comment.
1156
df5da1c4
JW
11572001-04-18 Jim Wilson <wilson@redhat.com>
1158
1159 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
1160 to eliminate RAW DV.
1161
52c28977
BM
11622001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
1163
1164 * Makefile.am: Make a libtool convenience library.
1165 * Makefile.in: Rebuilt.
1166
3b905056
BM
11672001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
1168
1169 * configure.in: Use different syntax for subdirectory creation.
1170 * configure: Rebuilt.
1171
d6c4152a
JB
11722001-03-27 Jon Beniston <jon@beniston.com>
1173
1174 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
1175 * configure: Rebuilt.
1176 * Makefile.am: Added X86_WIN32 target support.
1177 * Makefile.in: Rebuilt.
1178
1179 * include/ffi.h.in: Added X86_WIN32 target support.
1180
1181 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
1182 * src/types.c: Added X86_WIN32 target support.
1183
1184 * src/x86/win32.S: New file. Based on sysv.S, but with EH
1185 stuff removed and made to work with CygWin's gas.
1186
675cdab3
BM
11872001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
1188
1189 * configure.in: Make target subdirectory in build dir.
1190 * Makefile.am: Override suffix based rules to specify correct output
1191 subdirectory.
1192 * Makefile.in: Rebuilt.
1193 * configure: Rebuilt.
1194
e5f8858a 11952001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
cc4c8975
KH
1196
1197 * src/powerpc/ppc_closure.S: New file.
1198 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
1199 involving long long and register pairs.
1200 (ffi_prep_closure): New function.
1201 (flush_icache): Likewise.
1202 (ffi_closure_helper_SYSV): Likewise.
1203 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
1204 (FFI_TRAMPOLINE_SIZE): Likewise.
1205 (FFI_NATIVE_RAW_API): Likewise.
1206 * Makefile.in: Rebuilt.
1207 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
1208 (TARGET_SRC_POWERPC): Likewise.
1209
9450a929
TT
12102001-03-19 Tom Tromey <tromey@redhat.com>
1211
1212 * Makefile.in: Rebuilt.
1213 * Makefile.am (ffitest_LDFLAGS): New macro.
1214
4d2cf715
NC
12152001-03-02 Nick Clifton <nickc@redhat.com>
1216
1217 * include/ffi.h.in: Remove RCS ident string.
1218 * include/ffi_mips.h: Remove RCS ident string.
1219 * src/debug.c: Remove RCS ident string.
1220 * src/ffitest.c: Remove RCS ident string.
1221 * src/prep_cif.c: Remove RCS ident string.
1222 * src/types.c: Remove RCS ident string.
1223 * src/alpha/ffi.c: Remove RCS ident string.
1224 * src/alpha/osf.S: Remove RCS ident string.
1225 * src/arm/ffi.c: Remove RCS ident string.
1226 * src/arm/sysv.S: Remove RCS ident string.
1227 * src/mips/ffi.c: Remove RCS ident string.
1228 * src/mips/n32.S: Remove RCS ident string.
1229 * src/mips/o32.S: Remove RCS ident string.
1230 * src/sparc/ffi.c: Remove RCS ident string.
1231 * src/sparc/v8.S: Remove RCS ident string.
1232 * src/sparc/v9.S: Remove RCS ident string.
1233 * src/x86/ffi.c: Remove RCS ident string.
1234 * src/x86/sysv.S: Remove RCS ident string.
1235
7e5fd99f
JM
12362001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
1237
1238 * include/ffi.h.in: Change sourceware.cygnus.com references to
1239 gcc.gnu.org.
1240
3f67ba6e
RH
12412000-12-09 Richard Henderson <rth@redhat.com>
1242
1243 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
1244 (ffi_closure_osf_inner): Index rather than increment avalue
1245 and arg_types. Give ffi_closure_osf the raw return value type.
1246 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
1247 promotion.
1248
12492000-12-07 Richard Henderson <rth@redhat.com>
29fe0479
RH
1250
1251 * src/raw_api.c (ffi_translate_args): Fix typo.
1252 (ffi_prep_closure): Likewise.
1253
1254 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
1255 FFI_TRAMPOLINE_SIZE.
1256 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
1257 cif->bytes for new ffi_call_osf implementation.
1258 (ffi_prep_args): Absorb into ...
1259 (ffi_call): ... here. Do all stack allocation here and
1260 avoid a callback function.
1261 (ffi_prep_closure, ffi_closure_osf_inner): New.
1262 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
1263 (ffi_closure_osf): New.
1264
2f7bf5b7
AO
12652000-09-10 Alexandre Oliva <aoliva@redhat.com>
1266
ed1c1a1a
AO
1267 * config.guess, config.sub, install-sh: Removed.
1268 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
1269 * Makefile.in: Rebuilt.
1270
2f7bf5b7
AO
1271 * acinclude.m4: Include libtool macros from the top level.
1272 * aclocal.m4, configure: Rebuilt.
1273
e15a68e7
AO
12742000-08-22 Alexandre Oliva <aoliva@redhat.com>
1275
1276 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
1277 * configure: Rebuilt.
1278
7f8c11d5
SB
12792000-05-11 Scott Bambrough <scottb@netwinder.org>
1280
4977bab6
ZW
1281 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
1282 memory correctly. Use conditional instructions, not branches where
7f8c11d5
SB
1283 possible.
1284
c5acf51f
TT
12852000-05-04 Tom Tromey <tromey@cygnus.com>
1286
1287 * configure: Rebuilt.
1288 * configure.in: Match `arm*-*-linux-*'.
1289 From Chris Dornan <cdornan@arm.com>.
1290
91bffbe9
JJ
12912000-04-28 Jakub Jelinek <jakub@redhat.com>
1292
1293 * Makefile.am (SUBDIRS): Define.
1294 (AM_MAKEFLAGS): Likewise.
1295 (Multilib support.): Add section.
1296 * Makefile.in: Rebuilt.
1297 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
4075db8f
BT
1298 New variables. Set for gcc using -print-multi-lib. Export them
1299 to libtool.
1300 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
1301 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
1302 for -shared links.
1303 (extra_compiler_flags_value, extra_compiler_flags): Check these
1304 for extra compiler options which need to be passed down in
1305 compiler_flags.
91bffbe9 1306
bd66587e
AG
13072000-04-16 Anthony Green <green@redhat.com>
1308
1309 * configure: Rebuilt.
1310 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
1311
3791773c
JJ
13122000-04-14 Jakub Jelinek <jakub@redhat.com>
1313
4075db8f 1314 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3791773c
JJ
1315 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
1316 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
1317 Replace all void * sizeofs with sizeof(int).
1318 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
1319 different than DOUBLE.
1320 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
1321 (ffi_prep_args_v9): New function.
1322 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
1323 (ffi_V9_return_struct): New function.
1324 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
1325 32bit code (not yet cross-arch calls).
1326 * src/sparc/v8.S: Add struct return delay nop.
1327 Handle long long.
1328 * src/sparc/v9.S: New file.
1329 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
1330 is used on sparc64 only for structures larger than 32 bytes.
1331 Pass by reference for structures is done for structure arguments
1332 larger than 16 bytes.
1333 * src/ffitest.c (main): Use 64bit rint on sparc64.
1334 Run long long tests on sparc.
1335 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
1336 sparc64.
1337 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
1338 on sparc64.
1339 * configure.in (sparc-*-linux*): New supported target.
1340 (sparc64-*-linux*): Likewise.
1341 * configure: Rebuilt.
1342 * Makefile.am: Add v9.S to SPARC files.
1343 * Makefile.in: Likewise.
1344 (LINK): Surround $(CCLD) into double quotes, so that multilib
1345 compiles work correctly.
1346
db459595
APB
13472000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
1348
1349 * configure: Rebuilt.
1350 * configure.in: (i*86-*-solaris*): New libffi target. Patch
1351 proposed by Bryce McKinlay.
1352
c1f63902
TT
13532000-03-20 Tom Tromey <tromey@cygnus.com>
1354
1355 * Makefile.in: Hand edit for java_raw_api.lo.
1356
0f72dc9e
BM
13572000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
1358
1359 * config.guess, config.sub: Update from the gcc tree.
1360 Fix for PR libgcj/168.
1361
3c18f2d1
TT
13622000-03-03 Tom Tromey <tromey@cygnus.com>
1363
323eee8a
TT
1364 * Makefile.in: Fixed ia64 by hand.
1365
3c18f2d1
TT
1366 * configure: Rebuilt.
1367 * configure.in (--enable-multilib): New option.
1368 (libffi_basedir): New subst.
1369 (AC_OUTPUT): Added multilib code.
1370
a2b10a92
TT
13712000-03-02 Tom Tromey <tromey@cygnus.com>
1372
1373 * Makefile.in: Rebuilt.
1374 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
1375 directory name.
1376
dc5de370
HB
13772000-02-25 Hans Boehm <boehm@acm.org>
1378
1379 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
1380 files.
1381 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
1382 list.
1383 (ffi_prep_raw_closure): Use ffi_translate_args, not
1384 ffi_closure_translate.
1385 * src/java_raw_api.c: New file.
1386 * src/ffitest.c (closure_test_fn): New function.
1387 (main): Define `rint' as long long on IA64. Added new test when
1388 FFI_CLOSURES is defined.
1389 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
1390 (ffi_abi): Recognize IA64.
1391 (ffi_raw): Added `flt' field.
1392 Added "Java raw API" code.
1393 * configure.in: Recognize ia64.
1394 * Makefile.am (TARGET_SRC_IA64): New macro.
1395 (libffi_la_common_SOURCES): Added java_raw_api.c.
1396 (libffi_la_SOURCES): Define in IA64 case.
1397
d79229bd
TT
13982000-01-04 Tom Tromey <tromey@cygnus.com>
1399
1400 * Makefile.in: Rebuilt with newer automake.
1401
2c33b220
TT
14021999-12-31 Tom Tromey <tromey@cygnus.com>
1403
1404 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
1405
6ba9e3b0
TT
14061999-09-01 Tom Tromey <tromey@cygnus.com>
1407
1408 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
1409 undefs.
1410 * fficonfig.h.in: Rebuilt.
1411 * configure: Rebuilt.
1412 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
1413 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
1414 * acconfig.h: Don't #undef PACKAGE or VERSION.
1415
63e5e3e0
AG
14161999-08-09 Anthony Green <green@cygnus.com>
1417
1418 * include/ffi.h.in: Try to work around messy header problem
1419 with PACKAGE and VERSION.
1420
1421 * configure: Rebuilt.
1422 * configure.in: Change version to 2.00-beta.
1423
4075db8f 1424 * fficonfig.h.in: Rebuilt.
63e5e3e0
AG
1425 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
1426
1427 * src/x86/ffi.c (ffi_raw_call): Rename.
1428
14291999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
1430
1431 * src/x86/ffi.c (ffi_closure_SYSV): New function.
1432 (ffi_prep_incoming_args_SYSV): Ditto.
1433 (ffi_prep_closure): Ditto.
1434 (ffi_closure_raw_SYSV): Ditto.
1435 (ffi_prep_raw_closure): More ditto.
1436 (ffi_call_raw): Final ditto.
1437
1438 * include/ffi.h.in: Add definitions for closure and raw API.
1439
1440 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4977bab6 1441 FFI_TYPE_UINT64.
63e5e3e0
AG
1442
1443 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
1444
1445 * src/raw_api.c: New file.
1446
1447 * include/ffi.h.in (ffi_raw): New type.
1448 (UINT_ARG, SINT_ARG): New defines.
1449 (ffi_closure, ffi_raw_closure): New types.
1450 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4977bab6 1451
63e5e3e0
AG
1452 * configure.in: Add check for endianness and sizeof void*.
1453
1454 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
1455 instead of directly.
1456
1457 * configure: Rebuilt.
1458
1459Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
1460
1461 * configure.in: Add x86 and powerpc BeOS configurations.
1462 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
1463
14641999-05-09 Anthony Green <green@cygnus.com>
1465
1466 * configure.in: Add warning about this being beta code.
1467 Remove src/Makefile.am from the picture.
1468 * configure: Rebuilt.
1469
1470 * Makefile.am: Move logic from src/Makefile.am. Add changes
1471 to support libffi as a target library.
1472 * Makefile.in: Rebuilt.
1473
1474 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
1475 Upgraded to new autoconf, automake, libtool.
1476
1477 * README: Tweaks.
1478
1479 * LICENSE: Update copyright date.
1480
1481 * src/Makefile.am, src/Makefile.in: Removed.
1482
14831998-11-29 Anthony Green <green@cygnus.com>
1484
1485 * include/ChangeLog: Removed.
1486 * src/ChangeLog: Removed.
1487 * src/mips/ChangeLog: Removed.
1488 * src/sparc/ChangeLog: Remboved.
1489 * src/x86/ChangeLog: Removed.
1490
1491 * ChangeLog.v1: Created.