]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/ChangeLog
Add missing commit from patch earlier today
[thirdparty/gcc.git] / libffi / ChangeLog
CommitLineData
07b6d9ef
EP
12010-07-10 Evan Phoenix <evan@fallingsnow.net>
2
3 * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
4
3d420bdf
DH
52010-07-07 Dan Horák <dan@danny.cz>
6
7 * include/ffi.h.in: Protect #define with #ifndef.
8 * src/powerpc/ffitarget.h: Ditto.
9 * src/s390/ffitarget.h: Ditto.
10 * src/sparc/ffitarget.h: Ditto.
11
4138b429
NR
122010-07-07 Neil Roberts <neil@linux.intel.com>
13
14 * src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
15 16-bytes.
16
f0ee5e3e
JJ
172010-07-02 Jakub Jelinek <jakub@redhat.com>
18
19 * Makefile.am (AM_MAKEFLAGS): Pass also mandir to submakes.
20 * Makefile.in: Regenerated.
21
d416abb4
RO
222010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23
24 * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
25 output, too.
26 (libffi_cv_as_ascii_pseudo_op): Check for .ascii.
27 (libffi_cv_as_string_pseudo_op): Check for .string.
28 * configure: Regenerate.
29 * fficonfig.h.in: Regenerate.
30 * src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.
31
0af23729
MK
322010-05-05 Michael Kohler <michaelkohler@live.com>
33
34 * src/dlmalloc.c (dlfree): Fix spelling.
35 * src/ia64/ffi.c (ffi_prep_cif_machdep): Ditto.
36 * configure.ac: Ditto.
37 * configure: Rebuilt.
38
49f6cd1f
DW
392010-04-12 Dan Witte <dwitte@mozilla.com>
40 Walter Meinl <wuno@lsvw.de>
41
42 * configure.ac: Add OS/2 support.
43 * configure: Rebuilt.
44 * src/closures.c: Ditto.
45 * src/dlmalloc.c: Ditto.
46 * src/x86/win32.S: Ditto.
47
60d3aec4
JJ
482010-04-07 Jakub Jelinek <jakub@redhat.com>
49
50 * regex.c (byte_re_match_2_internal): Avoid set but not used
51 warning.
52
4d9e8446
RW
532010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54
55 * Makefile.in: Regenerate.
56 * aclocal.m4: Regenerate.
57 * include/Makefile.in: Regenerate.
58 * man/Makefile.in: Regenerate.
59 * testsuite/Makefile.in: Regenerate.
60
f4b130bb
RO
612010-03-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
62
63 * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
64 * configure: Regenerate.
65 * fficonfig.h.in: Regenerate.
66 * libffi/src/x86/unix64.S (.eh_frame)
67 [HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.
68
4736718a
MK
692010-03-14 Matthias Klose <doko@ubuntu.com>
70
71 * src/x86/ffi64.c: Fix typo in comment.
72 * src/x86/ffi.c: Use /* ... */ comment style.
73
22faf004
RO
742010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
75
76 * doc/libffi.texi (The Closure API): Fix typo.
77 * doc/libffi.info: Remove.
78
694d3cfd
MK
792010-02-15 Matthias Klose <doko@ubuntu.com>
80
81 * src/arm/sysv.S (__ARM_ARCH__): Define for processor
82 __ARM_ARCH_7EM__.
83
3ac097a5
AG
842010-01-15 Anthony Green <green@redhat.com>
85
86 * README: Add notes on building with Microsoft Visual C++.
87
882010-01-15 Daniel Witte <dwitte@mozilla.com>
89
90 * msvcc.sh: New file.
91
92 * src/x86/win32.S: Port assembly routines to MSVC and #ifdef.
93 * src/x86/ffi.c: Tweak function declaration and remove excess
94 parens.
95 * include/ffi.h.in: Add __declspec(align(8)) to typedef struct
96 ffi_closure.
97
98 * src/x86/ffi.c: Merge ffi_call_SYSV and ffi_call_STDCALL into new
99 function ffi_call_win32 on X86_WIN32.
100 * src/x86/win32.S (ffi_call_SYSV): Rename to ffi_call_win32.
101 (ffi_call_STDCALL): Remove.
102
103 * src/prep_cif.c (ffi_prep_cif): Move stack space allocation code
104 to ffi_prep_cif_machdep for x86.
105 * src/x86/ffi.c (ffi_prep_cif_machdep): To here.
106
fc28e435
OK
1072010-01-15 Oliver Kiddle <okiddle@yahoo.co.uk>
108
109 * src/x86/ffitarget.h (ffi_abi): Check for __i386 and __amd64 for
110 Sun Studio compiler compatibility.
111
f2e994f3
CI
1122010-01-12 Conrad Irwin <conrad.irwin@gmail.com>
113
114 * doc/libffi.texi: Add closure example.
115
ec168029
RO
1162010-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
117
118 PR libffi/40701
119 * testsuite/libffi.call/ffitest.h [__alpha__ && __osf__] (PRIdLL,
120 PRIuLL, PRId64, PRIu64, PRIuPTR): Define.
121 * testsuite/libffi.call/cls_align_sint64.c: Add -Wno-format on
122 alpha*-dec-osf*.
123 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
124 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
125 * testsuite/libffi.call/return_ll1.c: Likewise.
126 * testsuite/libffi.call/stret_medium2.c: Likewise.
127 * testsuite/libffi.special/ffitestcxx.h (allocate_mmap): Cast
128 MAP_FAILED to char *.
129
86d1b9d1
RO
1302010-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131
132 * src/mips/n32.S: Use .abicalls and .eh_frame with __GNUC__.
133
78542dee
AG
1342009-12-31 Anthony Green <green@redhat.com>
135
136 * README: Update for libffi 3.0.9.
137
50117ecb
MK
1382009-12-27 Matthias Klose <doko@ubuntu.com>
139
140 * configure.ac (HAVE_LONG_DOUBLE): Define for mips when
141 appropriate.
142 * configure: Rebuilt.
143
bc472c00
AG
1442009-12-26 Anthony Green <green@redhat.com>
145
146 * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
147 avr32*-*-*.
148 * testsuite/libffi.call/cls_double_va.c: Ditto.
149
d7e9538e
AT
1502009-12-26 Andreas Tobler <a.tobler@schweiz.org>
151
152 * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
153 and inttypes.h.
154 * testsuite/libffi.special/unwindtest.cc: Ditto.
155
cb14fcb8
AT
1562009-12-26 Andreas Tobler <a.tobler@schweiz.org>
157
158 * configure.ac: Add amd64-*-openbsd*.
159 * configure: Rebuilt.
160 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
161 openbsd programs with -lpthread.
162
1098bcf8
AG
1632009-12-26 Anthony Green <green@redhat.com>
164
165 * testsuite/libffi.call/cls_double_va.c,
166 testsuite/libffi.call/cls_longdouble.c,
167 testsuite/libffi.call/cls_longdouble_va.c,
168 testsuite/libffi.call/cls_pointer.c,
169 testsuite/libffi.call/cls_pointer_stack.c: Remove xfail for
170 mips*-*-* and arm*-*-*.
171 * testsuite/libffi.call/cls_align_longdouble_split.c,
172 testsuite/libffi.call/cls_align_longdouble_split2.c,
173 testsuite/libffi.call/stret_medium2.c,
174 testsuite/libffi.call/stret_medium.c,
175 testsuite/libffi.call/stret_large.c,
176 testsuite/libffi.call/stret_large2.c: Remove xfail for arm*-*-*.
177
a761df3d
AG
1782009-12-31 Kay Tietz <ktietz70@googlemail.com>
179
180 * testsuite/libffi.call/ffitest.h,
181 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRuLL): Fix
182 definitions.
183
1842009-12-31 Carlo Bramini <carlo.bramix@libero.it>
185
186 * configure.ac (AM_LTLDFLAGS): Define for windows hosts.
187 * Makefile.am (libffi_la_LDFLAGS): Add AM_LTLDFLAGS.
188 * configure: Rebuilt.
189 * Makefile.in: Rebuilt.
190
493278be
AG
1912009-12-31 Anthony Green <green@redhat.com>
192 Blake Chaffin.
193
194 * testsuite/libffi.call/huge_struct.c: New test case from Blake
195 Chaffin @ Apple.
196
72b79d39
DE
1972009-12-28 David Edelsohn <edelsohn@gnu.org>
198
199 * src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
200 local variables.
201 (aix_adjust_aggregate_sizes): New function.
202 (ffi_prep_cif_machdep): Call it.
203
99fba2c4
AT
2042009-12-26 Andreas Tobler <a.tobler@schweiz.org>
205
206 * configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
207 * configure: Regenerate.
208 * fficonfig.h.in: Likewise.
209 * src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
210 Solaris/x86.
211
302486f4
AS
2122009-12-26 Andreas Schwab <schwab@linux-m68k.org>
213
214 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
215 when a float arguments is passed in memory.
216 (ffi_closure_helper_SYSV): Mark general registers as used up when
217 a 64bit or soft-float long double argument is passed in memory.
218
b8f38e89 2192009-12-25 Matthias Klose <doko@ubuntu.com>
2c57b161
MK
220
221 * man/ffi_call.3: Fix #include in examples.
222 * doc/libffi.texi: Add dircategory.
223
c4205f77
FE
2242009-12-25 Frank Everdij <f.p.x.everdij@tudelft.nl>
225
226 * include/ffi.h.in: Placed '__GNUC__' ifdef around
227 '__attribute__((aligned(8)))' in ffi_closure, fixes compile for
228 IRIX MIPSPro c99.
229 * include/ffi_common.h: Added '__sgi' define to non
230 '__attribute__((__mode__()))' integer typedefs.
302486f4 231 * src/mips/ffi.c (ffi_call, ffi_closure_mips_inner_O32,
c4205f77
FE
232 ffi_closure_mips_inner_N32): Added 'defined(_MIPSEB)' to BE check.
233 (ffi_closure_mips_inner_O32, ffi_closure_mips_inner_N32): Added
234 FFI_LONGDOUBLE support and alignment(N32 only).
235 * src/mips/ffitarget.h: Corrected '#include <sgidefs.h>' for IRIX and
236 fixed non '__attribute__((__mode__()))' integer typedefs.
237 * src/mips/n32.S: Put '#ifdef linux' around '.abicalls' and '.eh_frame'
238 since they are Linux/GNU Assembler specific.
239
124f60ab
BS
2402009-12-25 Bradley Smith <brad@brad-smith.co.uk>
241
242 * configure.ac, Makefile.am, src/avr32/ffi.c,
243 src/avr32/ffitarget.h,
244 src/avr32/sysv.S: Add AVR32 port.
245 * configure, Makefile.in: Rebuilt.
246
938a483f
AT
2472009-12-21 Andreas Tobler <a.tobler@schweiz.org>
248
249 * configure.ac: Make i?86 build on FreeBSD and OpenBSD.
250 * configure: Regenerate.
251
2516c7cd
JDA
2522009-12-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
253
254 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.
255
f93a40ea
JDA
2562009-12-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
257
258 * src/pa/ffi.c (ffi_closure_inner_pa32): Handle FFI_TYPE_LONGDOUBLE
259 type on HP-UX.
260
fb01d970
EB
2612009-12-11 Eric Botcazou <ebotcazou@adacore.com>
262
263 * src/sparc/ffi.c (ffi_closure_sparc_inner_v9): Properly align 'long
264 double' arguments.
265
2ea54b81
EB
2662009-12-11 Eric Botcazou <ebotcazou@adacore.com>
267
268 * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
269
dcb00f2e
RO
2702009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
271
272 PR libffi/40700
273 * src/closures.c [X86_64 && __sun__ && __svr4__]
274 (FFI_MMAP_EXEC_WRIT): Define.
275
6c6859a1
DD
2762009-12-08 David Daney <ddaney@caviumnetworks.com>
277
278 * testsuite/libffi.call/stret_medium.c: Remove xfail for mips*-*-*
279 * testsuite/libffi.call/cls_align_longdouble_split2.c: Same.
280 * testsuite/libffi.call/stret_large.c: Same.
281 * testsuite/libffi.call/cls_align_longdouble_split.c: Same.
282 * testsuite/libffi.call/stret_large2.c: Same.
283 * testsuite/libffi.call/stret_medium2.c: Same.
284
9e7e65a0
DE
2852009-12-07 David Edelsohn <edelsohn@gnu.org>
286
287 * src/powerpc/aix_closure.S (libffi_closure_ASM): Fix tablejump
288 typo.
289
5d7fc941
DE
2902009-12-05 David Edelsohn <edelsohn@gnu.org>
291
292 * src/powerpc/aix.S: Update AIX32 code to be consistent with AIX64
293 code.
9e7e65a0 294 * src/powerpc/aix_closure.S: Same.
6c6859a1 295
43e02a8a
RW
2962009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
297
298 * Makefile.in: Regenerate.
299 * configure: Regenerate.
300 * include/Makefile.in: Regenerate.
301 * man/Makefile.in: Regenerate.
302 * testsuite/Makefile.in: Regenerate.
303
2f2d7386
DE
3042009-12-04 David Edelsohn <edelsohn@gnu.org>
305
306 * src/powerpc/aix_closure.S: Reorganize 64-bit code to match
302486f4 307 linux64_closure.S.
6c6859a1 308
6078f50a
UB
3092009-12-04 Uros Bizjak <ubizjak@gmail.com>
310
311 PR libffi/41908
312 * src/x86/ffi64.c (classify_argument): Update from
313 gcc/config/i386/i386.c.
314 (ffi_closure_unix64_inner): Do not use the address of two consecutive
315 SSE registers directly.
316 * testsuite/libffi.call/cls_dbls_struct.c (main): Remove xfail
317 for x86_64 linux targets.
318
0c552622
DE
3192009-12-04 David Edelsohn <edelsohn@gnu.org>
320
321 * src/powerpc/ffi_darwin.c (ffi_closure_helper_DARWIN): Increment
322 pfr for long double split between fpr13 and stack.
323
afb5e622
DE
3242009-12-03 David Edelsohn <edelsohn@gnu.org>
325
326 * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
327 fparg_count twice for long double.
328
be311914
DE
3292009-12-03 David Edelsohn <edelsohn@gnu.org>
330
331 PR libffi/42243
332 * src/powerpc/ffi_darwin.c (ffi_prep_args): Remove extra parentheses.
333
a27c4040
UB
3342009-12-03 Uros Bizjak <ubizjak@gmail.com>
335
336 * testsuite/libffi.call/cls_longdouble_va.c (main): Fix format string.
ddf6c187 337 Remove xfails for x86 linux targets.
a27c4040 338
7837c247
DE
3392009-12-02 David Edelsohn <edelsohn@gnu.org>
340
341 * src/powerpc/ffi_darwin.c (ffi_prep_args): Fix typo in INT64
342 case.
343
3442009-12-01 David Edelsohn <edelsohn@gnu.org>
6d518d3b
DE
345
346 * src/powerpc/aix.S (ffi_call_AIX): Convert to more standard
347 register usage. Call ffi_prep_args directly. Add long double
348 return value support.
349 * src/powerpc/ffi_darwin.c (ffi_prep_args): Double arg increment
350 applies to FFI_TYPE_DOUBLE. Correct fpr_base increment typo.
351 Separate FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases.
352 (ffi_prep_cif_machdep): Only 16 byte stack alignment in 64 bit
353 mode.
354 (ffi_closure_helper_DARWIN): Remove nf and ng counters. Move temp
355 into case.
356 * src/powerpc/aix_closure.S: Maintain 16 byte stack alignment.
357 Allocate result area between params and FPRs.
358
5751cf6f
DE
3592009-11-30 David Edelsohn <edelsohn@gnu.org>
360
361 PR target/35484
362 * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
363 AIX64.
364 * src/powerpc/aix.S: Implement AIX64 version.
365 * src/powerpc/aix_closure.S: Implement AIX64 version.
366 (ffi_closure_ASM): Use extsb, lha and displament addresses.
367 * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
368 support.
369 (ffi_prep_cif_machdep): Same.
370 (ffi_call): Same.
371 (ffi_closure_helper_DARWIN): Same.
372
2265f646
AT
3732009-11-02 Andreas Tobler <a.tobler@schweiz.org>
374
375 PR libffi/41908
376 * testsuite/libffi.call/testclosure.c: New test.
377
ef6ed66d
KT
3782009-09-28 Kai Tietz <kai.tietz@onevision.com>
379
380 * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
381 assembly version use of ___chkstk.
382
29d1370a
MK
3832009-09-23 Matthias Klose <doko@ubuntu.com>
384
385 PR libffi/40242, PR libffi/41443
386 * src/arm/sysv.S (__ARM_ARCH__): Define for processors
387 __ARM_ARCH_6T2__, __ARM_ARCH_6M__, __ARM_ARCH_7__,
388 __ARM_ARCH_7A__, __ARM_ARCH_7R__, __ARM_ARCH_7M__.
389 Change the conditionals to __SOFTFP__ || __ARM_EABI__
390 for -mfloat-abi=softfp to work.
391
987ce557
LR
3922009-09-17 Loren J. Rittle <ljrittle@acm.org>
393
394 PR testsuite/32843 (strikes again)
395 * src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
396 enable proper extension on char and short.
397
5cbf8c8d
DD
3982009-09-15 David Daney <ddaney@caviumnetworks.com>
399
400 * src/java_raw_api.c (ffi_java_raw_to_rvalue): Remove special
401 handling for FFI_TYPE_POINTER.
402 * src/mips/ffitarget.h (FFI_TYPE_STRUCT_D_SOFT,
403 FFI_TYPE_STRUCT_F_SOFT, FFI_TYPE_STRUCT_DD_SOFT,
404 FFI_TYPE_STRUCT_FF_SOFT, FFI_TYPE_STRUCT_FD_SOFT,
405 FFI_TYPE_STRUCT_DF_SOFT, FFI_TYPE_STRUCT_SOFT): New defines.
406 (FFI_N32_SOFT_FLOAT, FFI_N64_SOFT_FLOAT): New ffi_abi enumerations.
407 (enum ffi_abi): Set FFI_DEFAULT_ABI for soft-float.
408 * src/mips/n32.S (ffi_call_N32): Add handling for soft-float
409 structure and pointer returns.
410 (ffi_closure_N32): Add handling for pointer returns.
411 * src/mips/ffi.c (ffi_prep_args, calc_n32_struct_flags,
412 calc_n32_return_struct_flags): Handle soft-float.
413 (ffi_prep_cif_machdep): Handle soft-float, fix pointer handling.
414 (ffi_call_N32): Declare proper argument types.
415 (ffi_call, copy_struct_N32, ffi_closure_mips_inner_N32): Handle
416 soft-float.
417
df58e648
RW
4182009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
419
420 * configure.ac (AC_PREREQ): Bump to 2.64.
421
5213506e
RW
4222009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
423
70fa0efa
RW
424 * Makefile.am (install-html, install-pdf): Remove.
425 * Makefile.in: Regenerate.
426
5213506e
RW
427 * Makefile.in: Regenerate.
428 * aclocal.m4: Regenerate.
429 * configure: Regenerate.
430 * fficonfig.h.in: Regenerate.
431 * include/Makefile.in: Regenerate.
432 * man/Makefile.in: Regenerate.
433 * testsuite/Makefile.in: Regenerate.
434
1b3b24c2
RW
4352009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
436
437 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
438
723512ba
DK
4392009-07-24 Dave Korn <dave.korn.cygwin@gmail.com>
440
441 PR libffi/40807
442 * src/x86/ffi.c (ffi_prep_cif_machdep): Also use sign/zero-extending
443 return types for X86_WIN32.
444 * src/x86/win32.S (_ffi_call_SYSV): Handle omitted return types.
445 (_ffi_call_STDCALL, _ffi_closure_SYSV, _ffi_closure_raw_SYSV,
446 _ffi_closure_STDCALL): Likewise.
447
448 * src/closures.c (is_selinux_enabled): Define to const 0 for Cygwin.
449 (dlmmap, dlmunmap): Also use these functions on Cygwin.
450
33cde516
RS
4512009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
452
453 PR testsuite/40699
454 PR testsuite/40707
455 PR testsuite/40709
456 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and
457 2009-06-30 commits.
458
edd3a61c
RS
4592009-07-01 Richard Sandiford <r.sandiford@uk.ibm.com>
460
461 * testsuite/lib/libffi-dg.exp (libffi-init): Set ld_library_path
462 to "" before adding paths. (This reinstates an assignment that
463 was removed by my 2009-06-30 commit, but changes the initial
464 value from "." to "".)
465
33d1a550
L
4662009-07-01 H.J. Lu <hongjiu.lu@intel.com>
467
468 PR testsuite/40601
469 * testsuite/lib/libffi-dg.exp (libffi-init): Properly set
470 gccdir. Adjust ld_library_path for gcc only if gccdir isn't
471 empty.
472
b30bfd40
RS
4732009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
474
475 * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
476 to ld_library_path. Use add_path. Add just find_libgcc_s
477 to ld_library_path, not every libgcc multilib directory.
478
6975f17f
WL
4792009-06-16 Wim Lewis <wiml@hhhh.org>
480
481 * src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
482 supposed to be callee-saved.
483 * src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
484 return buffer for odd-size structs.
485
7bbcc286
AT
4862009-06-16 Andreas Tobler <a.tobler@schweiz.org>
487
488 PR libffi/40444
489 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
490 allow_stack_execute for Darwin.
491
fe673cc9
AH
4922009-06-16 Andrew Haley <aph@redhat.com>
493
494 * configure.ac (TARGETDIR): Add missing blank lines.
495 * configure: Regenerate.
496
3bc462c2
AH
4972009-06-16 Andrew Haley <aph@redhat.com>
498
499 * testsuite/libffi.call/cls_align_sint64.c,
500 testsuite/libffi.call/cls_align_uint64.c,
501 testsuite/libffi.call/cls_longdouble_va.c,
502 testsuite/libffi.call/cls_ulonglong.c,
503 testsuite/libffi.call/return_ll1.c,
504 testsuite/libffi.call/stret_medium2.c: Fix printf format
505 specifiers.
506 * testsuite/libffi.call/ffitest.h,
507 testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
508
081b044b
AH
5092009-06-15 Andrew Haley <aph@redhat.com>
510
511 * testsuite/libffi.call/err_bad_typedef.c: xfail everywhere.
512 * testsuite/libffi.call/err_bad_abi.c: Likewise.
302486f4 513
062b8279
AH
5142009-06-12 Andrew Haley <aph@redhat.com>
515
516 * Makefile.am: Remove info_TEXINFOS.
517
5182009-06-12 Andrew Haley <aph@redhat.com>
519
520 * ChangeLog.libffi: testsuite/libffi.call/cls_align_sint64.c,
521 testsuite/libffi.call/cls_align_uint64.c,
522 testsuite/libffi.call/cls_ulonglong.c,
523 testsuite/libffi.call/return_ll1.c,
524 testsuite/libffi.call/stret_medium2.c: Fix printf format
525 specifiers.
526 testsuite/libffi.special/unwindtest.cc: include stdint.h.
527
5282009-06-11 Timothy Wall <twall@users.sf.net>
529
530 * Makefile.am,
302486f4
AS
531 configure.ac,
532 include/ffi.h.in,
533 include/ffi_common.h,
534 src/closures.c,
535 src/dlmalloc.c,
536 src/x86/ffi.c,
537 src/x86/ffitarget.h,
538 src/x86/win64.S (new),
062b8279 539 README: Added win64 support (mingw or MSVC)
302486f4
AS
540 * Makefile.in,
541 include/Makefile.in,
542 man/Makefile.in,
543 testsuite/Makefile.in,
544 configure,
545 aclocal.m4: Regenerated
546 * ltcf-c.sh: properly escape cygwin/w32 path
547 * man/ffi_call.3: Clarify size requirements for return value.
548 * src/x86/ffi64.c: Fix filename in comment.
549 * src/x86/win32.S: Remove unused extern.
550
551 * testsuite/libffi.call/closure_fn0.c,
552 testsuite/libffi.call/closure_fn1.c,
553 testsuite/libffi.call/closure_fn2.c,
554 testsuite/libffi.call/closure_fn3.c,
555 testsuite/libffi.call/closure_fn4.c,
556 testsuite/libffi.call/closure_fn5.c,
557 testsuite/libffi.call/closure_fn6.c,
062b8279
AH
558 testsuite/libffi.call/closure_stdcall.c,
559 testsuite/libffi.call/cls_12byte.c,
560 testsuite/libffi.call/cls_16byte.c,
561 testsuite/libffi.call/cls_18byte.c,
562 testsuite/libffi.call/cls_19byte.c,
563 testsuite/libffi.call/cls_1_1byte.c,
564 testsuite/libffi.call/cls_20byte.c,
565 testsuite/libffi.call/cls_20byte1.c,
566 testsuite/libffi.call/cls_24byte.c,
567 testsuite/libffi.call/cls_2byte.c,
568 testsuite/libffi.call/cls_3_1byte.c,
569 testsuite/libffi.call/cls_3byte1.c,
570 testsuite/libffi.call/cls_3byte2.c,
571 testsuite/libffi.call/cls_4_1byte.c,
572 testsuite/libffi.call/cls_4byte.c,
573 testsuite/libffi.call/cls_5_1_byte.c,
574 testsuite/libffi.call/cls_5byte.c,
575 testsuite/libffi.call/cls_64byte.c,
576 testsuite/libffi.call/cls_6_1_byte.c,
577 testsuite/libffi.call/cls_6byte.c,
578 testsuite/libffi.call/cls_7_1_byte.c,
579 testsuite/libffi.call/cls_7byte.c,
580 testsuite/libffi.call/cls_8byte.c,
581 testsuite/libffi.call/cls_9byte1.c,
582 testsuite/libffi.call/cls_9byte2.c,
583 testsuite/libffi.call/cls_align_double.c,
584 testsuite/libffi.call/cls_align_float.c,
585 testsuite/libffi.call/cls_align_longdouble.c,
586 testsuite/libffi.call/cls_align_longdouble_split.c,
587 testsuite/libffi.call/cls_align_longdouble_split2.c,
588 testsuite/libffi.call/cls_align_pointer.c,
589 testsuite/libffi.call/cls_align_sint16.c,
590 testsuite/libffi.call/cls_align_sint32.c,
591 testsuite/libffi.call/cls_align_sint64.c,
592 testsuite/libffi.call/cls_align_uint16.c,
593 testsuite/libffi.call/cls_align_uint32.c,
594 testsuite/libffi.call/cls_align_uint64.c,
595 testsuite/libffi.call/cls_dbls_struct.c,
596 testsuite/libffi.call/cls_double.c,
597 testsuite/libffi.call/cls_double_va.c,
598 testsuite/libffi.call/cls_float.c,
599 testsuite/libffi.call/cls_longdouble.c,
600 testsuite/libffi.call/cls_longdouble_va.c,
601 testsuite/libffi.call/cls_multi_schar.c,
602 testsuite/libffi.call/cls_multi_sshort.c,
603 testsuite/libffi.call/cls_multi_sshortchar.c,
604 testsuite/libffi.call/cls_multi_uchar.c,
605 testsuite/libffi.call/cls_multi_ushort.c,
606 testsuite/libffi.call/cls_multi_ushortchar.c,
607 testsuite/libffi.call/cls_pointer.c,
608 testsuite/libffi.call/cls_pointer_stack.c,
609 testsuite/libffi.call/cls_schar.c,
610 testsuite/libffi.call/cls_sint.c,
611 testsuite/libffi.call/cls_sshort.c,
612 testsuite/libffi.call/cls_uchar.c,
613 testsuite/libffi.call/cls_uint.c,
614 testsuite/libffi.call/cls_ulonglong.c,
615 testsuite/libffi.call/cls_ushort.c,
616 testsuite/libffi.call/err_bad_abi.c,
617 testsuite/libffi.call/err_bad_typedef.c,
618 testsuite/libffi.call/float2.c,
619 testsuite/libffi.call/huge_struct.c,
620 testsuite/libffi.call/nested_struct.c,
621 testsuite/libffi.call/nested_struct1.c,
622 testsuite/libffi.call/nested_struct10.c,
623 testsuite/libffi.call/nested_struct2.c,
624 testsuite/libffi.call/nested_struct3.c,
625 testsuite/libffi.call/nested_struct4.c,
626 testsuite/libffi.call/nested_struct5.c,
627 testsuite/libffi.call/nested_struct6.c,
628 testsuite/libffi.call/nested_struct7.c,
629 testsuite/libffi.call/nested_struct8.c,
630 testsuite/libffi.call/nested_struct9.c,
631 testsuite/libffi.call/problem1.c,
632 testsuite/libffi.call/return_ldl.c,
633 testsuite/libffi.call/return_ll1.c,
634 testsuite/libffi.call/stret_large.c,
635 testsuite/libffi.call/stret_large2.c,
636 testsuite/libffi.call/stret_medium.c,
637 testsuite/libffi.call/stret_medium2.c,
302486f4
AS
638 testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
639 of checking for MMAP. Use intptr_t instead of long casts.
062b8279 640
f43def61
KK
6412009-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
642
643 * testsuite/libffi.call/cls_longdouble_va.c: Add xfail sh*-*-linux-*.
644 * testsuite/libffi.call/err_bad_abi.c: Add xfail sh*-*-*.
645 * testsuite/libffi.call/err_bad_typedef.c: Likewise.
646
6aa0b218
AH
6472009-06-09 Andrew Haley <aph@redhat.com>
648
649 * src/x86/freebsd.S: Add missing file.
650
b7b857bb
AH
6512009-06-08 Andrew Haley <aph@redhat.com>
652
653 Import from libffi 3.0.8:
654
655 * doc/libffi.texi: New file.
656 * doc/libffi.info: Likewise.
657 * doc/stamp-vti: Likewise.
658 * man/Makefile.am: New file.
659 * man/ffi_call.3: New file.
660
661 * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S,
662 src/dlmalloc.c.
663 (nodist_libffi_la_SOURCES): Add X86_FREEBSD.
664
665 * configure.ac: Bump version to 3.0.8.
666 parisc*-*-linux*: Add.
667 i386-*-freebsd* | i386-*-openbsd*: Add.
668 powerpc-*-beos*: Add.
669 AM_CONDITIONAL X86_FREEBSD: Add.
670 AC_CONFIG_FILES: Add man/Makefile.
671
672 * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void).
673
491e6ad1
AH
6742009-06-08 Andrew Haley <aph@redhat.com>
675
676 * README: Import from libffi 3.0.8.
677
3b5b1a73
AH
6782009-06-08 Andrew Haley <aph@redhat.com>
679
680 * testsuite/libffi.call/err_bad_abi.c: Add xfails.
681 * testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
682 * testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
683 * testsuite/libffi.call/err_bad_typedef.c: Add xfails.
684
685 * testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
686 * testsuite/libffi.call/stret_medium.c: Likewise.
687 * testsuite/libffi.call/stret_large2.c: Likewise.
688 * testsuite/libffi.call/stret_large.c: Likewise.
689
6902008-12-26 Timothy Wall <twall@users.sf.net>
691
302486f4
AS
692 * testsuite/libffi.call/cls_longdouble.c,
693 testsuite/libffi.call/cls_longdouble_va.c,
694 testsuite/libffi.call/cls_align_longdouble.c,
695 testsuite/libffi.call/cls_align_longdouble_split.c,
696 testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
697 failures on x86_64 cygwin/mingw.
3b5b1a73
AH
698
6992008-12-22 Timothy Wall <twall@users.sf.net>
700
302486f4
AS
701 * testsuite/libffi.call/closure_fn0.c,
702 testsuite/libffi.call/closure_fn1.c,
703 testsuite/libffi.call/closure_fn2.c,
704 testsuite/libffi.call/closure_fn3.c,
705 testsuite/libffi.call/closure_fn4.c,
706 testsuite/libffi.call/closure_fn5.c,
707 testsuite/libffi.call/closure_fn6.c,
708 testsuite/libffi.call/closure_loc_fn0.c,
709 testsuite/libffi.call/closure_stdcall.c,
710 testsuite/libffi.call/cls_align_pointer.c,
711 testsuite/libffi.call/cls_pointer.c,
712 testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
713 pointer to integer (intptr_t).
714 * testsuite/libffi.call/cls_longdouble.c: disable for win64.
3b5b1a73
AH
715
7162008-07-24 Anthony Green <green@redhat.com>
717
302486f4
AS
718 * testsuite/libffi.call/cls_dbls_struct.c,
719 testsuite/libffi.call/cls_double_va.c,
720 testsuite/libffi.call/cls_longdouble.c,
721 testsuite/libffi.call/cls_longdouble_va.c,
722 testsuite/libffi.call/cls_pointer.c,
723 testsuite/libffi.call/cls_pointer_stack.c,
724 testsuite/libffi.call/err_bad_abi.c: Clean up failures from
725 compiler warnings.
3b5b1a73
AH
726
7272008-03-04 Anthony Green <green@redhat.com>
302486f4
AS
728 Blake Chaffin
729 hos@tamanegi.org
730
731 * testsuite/libffi.call/cls_align_longdouble_split2.c
732 testsuite/libffi.call/cls_align_longdouble_split.c
733 testsuite/libffi.call/cls_dbls_struct.c
734 testsuite/libffi.call/cls_double_va.c
735 testsuite/libffi.call/cls_longdouble.c
736 testsuite/libffi.call/cls_longdouble_va.c
737 testsuite/libffi.call/cls_pointer.c
738 testsuite/libffi.call/cls_pointer_stack.c
739 testsuite/libffi.call/err_bad_abi.c
740 testsuite/libffi.call/err_bad_typedef.c
741 testsuite/libffi.call/stret_large2.c
742 testsuite/libffi.call/stret_large.c
743 testsuite/libffi.call/stret_medium2.c
744 testsuite/libffi.call/stret_medium.c: New tests from Apple.
3b5b1a73 745
56faec5e
AH
7462009-06-05 Andrew Haley <aph@redhat.com>
747
748 * src/x86/ffitarget.h, src/x86/ffi.c: Merge stdcall changes from
749 libffi.
750
90409e4c
AH
7512009-06-04 Andrew Haley <aph@redhat.com>
752
753 * src/x86/ffitarget.h, src/x86/win32.S, src/x86/ffi.c: Back out
754 stdcall changes.
755
b1393750 7562008-02-26 Anthony Green <green@redhat.com>
302486f4 757 Thomas Heller <theller@ctypes.org>
b1393750 758
302486f4
AS
759 * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
760 comment.
b1393750
AH
761
7622008-02-03 Timothy Wall <twall@users.sf.net>
763
302486f4
AS
764 * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
765 offset based on code pointer, not data pointer.
b1393750
AH
766
7672008-01-31 Timothy Wall <twall@users.sf.net>
768
302486f4
AS
769 * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
770 closures.
771 * src/x86/ffitarget.h: Increase size of trampoline for stdcall
772 closures.
773 * src/x86/win32.S: Add assembly for stdcall closure.
774 * src/x86/ffi.c: Initialize stdcall closure trampoline.
b1393750 775
96baa251
AH
7762009-06-04 Andrew Haley <aph@redhat.com>
777
778 * include/ffi.h.in: Change void (*)() to void (*)(void).
779 * src/x86/ffi.c: Likewise.
780
7446546a
AH
7812009-06-04 Andrew Haley <aph@redhat.com>
782
783 * src/powerpc/ppc_closure.S: Insert licence header.
784 * src/powerpc/linux64_closure.S: Likewise.
785 * src/m68k/sysv.S: Likewise.
786
787 * src/sh64/ffi.c: Change void (*)() to void (*)(void).
788 * src/powerpc/ffi.c: Likewise.
789 * src/powerpc/ffi_darwin.c: Likewise.
790 * src/m32r/ffi.c: Likewise.
791 * src/sh64/ffi.c: Likewise.
792 * src/x86/ffi64.c: Likewise.
793 * src/alpha/ffi.c: Likewise.
794 * src/alpha/osf.S: Likewise.
795 * src/frv/ffi.c: Likewise.
796 * src/s390/ffi.c: Likewise.
797 * src/pa/ffi.c: Likewise.
798 * src/pa/hpux32.S: Likewise.
799 * src/ia64/unix.S: Likewise.
800 * src/ia64/ffi.c: Likewise.
801 * src/sparc/ffi.c: Likewise.
802 * src/mips/ffi.c: Likewise.
803 * src/sh/ffi.c: Likewise.
804
8052008-02-15 David Daney <ddaney@avtrex.com>
806
302486f4
AS
807 * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
808 Define (conditionally), and use it to include cachectl.h.
809 (ffi_prep_closure_loc): Fix cache flushing.
810 * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
7446546a 811
5f933ef0
AH
8122009-06-04 Andrew Haley <aph@redhat.com>
813
814 include/ffi.h.in,
815 src/arm/ffitarget.h,
816 src/arm/ffi.c,
817 src/arm/sysv.S,
818 src/powerpc/ffitarget.h,
819 src/closures.c,
820 src/sh64/ffitarget.h,
821 src/sh64/ffi.c,
822 src/sh64/sysv.S,
823 src/types.c,
824 src/x86/ffi64.c,
825 src/x86/ffitarget.h,
826 src/x86/win32.S,
827 src/x86/darwin.S,
828 src/x86/ffi.c,
829 src/x86/sysv.S,
830 src/x86/unix64.S,
831 src/alpha/ffitarget.h,
832 src/alpha/ffi.c,
833 src/alpha/osf.S,
834 src/m68k/ffitarget.h,
835 src/frv/ffitarget.h,
836 src/frv/ffi.c,
837 src/s390/ffitarget.h,
838 src/s390/sysv.S,
839 src/cris/ffitarget.h,
840 src/pa/linux.S,
841 src/pa/ffitarget.h,
842 src/pa/ffi.c,
843 src/raw_api.c,
844 src/ia64/ffitarget.h,
845 src/ia64/unix.S,
846 src/ia64/ffi.c,
847 src/ia64/ia64_flags.h,
848 src/java_raw_api.c,
849 src/debug.c,
850 src/sparc/v9.S,
851 src/sparc/ffitarget.h,
852 src/sparc/ffi.c,
853 src/sparc/v8.S,
854 src/mips/ffitarget.h,
855 src/mips/n32.S,
856 src/mips/o32.S,
857 src/mips/ffi.c,
858 src/prep_cif.c,
859 src/sh/ffitarget.h,
860 src/sh/ffi.c,
861 src/sh/sysv.S: Update license text.
862
84c40c4a
DK
8632009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
864
865 * src/x86/win32.S (_ffi_closure_STDCALL): New function.
866 (.eh_frame): Add FDE for it.
867
8353cd27
DK
8682009-05-22 Dave Korn <dave.korn.cygwin@gmail.com>
869
870 * configure.ac: Also check if assembler supports pc-relative
871 relocs on X86_WIN32 targets.
872 * configure: Regenerate.
873 * src/x86/win32.S (ffi_prep_args): Declare extern, not global.
874 (_ffi_call_SYSV): Add missing function type symbol .def and
875 add EH markup labels.
876 (_ffi_call_STDCALL): Likewise.
877 (_ffi_closure_SYSV): Likewise.
878 (_ffi_closure_raw_SYSV): Likewise.
879 (.eh_frame): Add hand-crafted EH data.
880
748086b7
JJ
8812009-04-09 Jakub Jelinek <jakub@redhat.com>
882
883 * testsuite/lib/libffi-dg.exp: Change copyright header to refer to
884 version 3 of the GNU General Public License and to point readers
885 at the COPYING3 file and the FSF's license web page.
886 * testsuite/libffi.call/call.exp: Likewise.
887 * testsuite/libffi.special/special.exp: Likewise.
888
7a9d3fe8
RW
8892009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
890
891 * configure: Regenerate.
892
4d3d4078
RO
8932008-12-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
894
895 PR libffi/26048
896 * configure.ac (HAVE_AS_X86_PCREL): New test.
897 * configure: Regenerate.
898 * fficonfig.h.in: Regenerate.
899 * src/x86/sysv.S [!FFI_NO_RAW_API]: Precalculate
900 RAW_CLOSURE_CIF_OFFSET, RAW_CLOSURE_FUN_OFFSET,
901 RAW_CLOSURE_USER_DATA_OFFSET for the Solaris 10/x86 assembler.
902 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
903 * src/x86/unix64.S (.Lstore_table): Move to .text section.
904 (.Lload_table): Likewise.
905 (.eh_frame): Only use SYMBOL-. iff HAVE_AS_X86_PCREL.
906
baafc534
RW
9072008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
908
909 * configure: Regenerate.
910
da17a98b
EB
9112008-11-21 Eric Botcazou <ebotcazou@adacore.com>
912
913 * src/sparc/ffi.c (ffi_prep_cif_machdep): Add support for
914 signed/unsigned int8/16 return values.
915 * src/sparc/v8.S (ffi_call_v8): Likewise.
916 (ffi_closure_v8): Likewise.
917
80c6c2cb 9182008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
302486f4 919 Steve Ellcey <sje@cup.hp.com>
80c6c2cb
PG
920
921 * configure: Regenerate for new libtool.
922 * Makefile.in: Ditto.
923 * include/Makefile.in: Ditto.
924 * aclocal.m4: Ditto.
925
d7f68a67
AT
9262008-08-25 Andreas Tobler <a.tobler@schweiz.org>
927
928 * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
929 FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
930 Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
931 Adjust copyright notice.
932 * src/powerpc/ffi.c: Add two new flags to indicate if we have one
933 register or two register to use for FFI_SYSV structs.
934 (ffi_prep_cif_machdep): Pass the right register flag introduced above.
935 (ffi_closure_helper_SYSV): Fix the return type for
936 FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
937 Adjust copyright notice.
938
130f4c50
KK
9392008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
940
941 * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
942 int.
943
18c04407
RW
9442008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
945
946 * configure: Regenerate.
947 * include/Makefile.in: Regenerate.
948 * testsuite/Makefile.in: Regenerate.
949
cd985f66
JM
9502008-06-07 Joseph Myers <joseph@codesourcery.com>
951
952 * configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
953 powerpc-*-beos*): Remove.
954 * configure: Regenerate.
955
7afa92c5
JB
9562008-05-09 Julian Brown <julian@codesourcery.com>
957
958 * Makefile.am (LTLDFLAGS): New.
959 (libffi_la_LDFLAGS): Use above.
960 * Makefile.in: Regenerate.
961
deb984e6
PB
9622008-04-18 Paolo Bonzini <bonzini@gnu.org>
963
964 PR bootstrap/35457
965 * aclocal.m4: Regenerate.
966 * configure: Regenerate.
967
3e9608a5
KK
9682008-03-26 Kaz Kojima <kkojima@gcc.gnu.org>
969
970 * src/sh/sysv.S: Add .note.GNU-stack on Linux.
971 * src/sh64/sysv.S: Likewise.
972
feb51530
MK
9732008-03-26 Daniel Jacobowitz <dan@debian.org>
974
975 * src/arm/sysv.S: Fix ARM comment marker.
976
9772008-03-26 Jakub Jelinek <jakub@redhat.com>
978
979 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
980 * src/s390/sysv.S: Likewise.
981 * src/powerpc/ppc_closure.S: Likewise.
982 * src/powerpc/sysv.S: Likewise.
983 * src/x86/unix64.S: Likewise.
984 * src/x86/sysv.S: Likewise.
985 * src/sparc/v8.S: Likewise.
986 * src/sparc/v9.S: Likewise.
987 * src/m68k/sysv.S: Likewise.
988 * src/arm/sysv.S: Likewise.
989
38d24731
RW
9902008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
991
992 * aclocal.m4: Regenerate.
993 * configure: Likewise.
994 * Makefile.in: Likewise.
995 * include/Makefile.in: Likewise.
996 * testsuite/Makefile.in: Likewise.
997
2e250fa2
BK
9982008-02-12 Bjoern Koenig <bkoenig@alpha-tierchen.de>
999 Andreas Tobler <a.tobler@schweiz.org>
1000
1001 * configure.ac: Add amd64-*-freebsd* target.
1002 * configure: Regenerate.
1003
7f92e242
L
10042008-01-30 H.J. Lu <hongjiu.lu@intel.com>
1005
1006 PR libffi/34612
1007 * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
1008 returning struct.
1009
1010 * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
1011 tests.
1012
95d4f544
DE
10132008-01-24 David Edelsohn <edelsohn@gnu.org>
1014
1015 * configure: Regenerate.
1016
79ca8fc0
AT
10172008-01-06 Andreas Tobler <a.tobler@schweiz.org>
1018
1019 * src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.
1020
d7b07cc7
AT
10212008-01-05 Andreas Tobler <a.tobler@schweiz.org>
1022
1023 PR testsuite/32843
1024 * src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
1025 signed/unsigned int8/16 for X86_DARWIN.
1026 Updated copyright info.
1027 Handle one and two byte structs with special cif->flags.
1028 * src/x86/ffitarget.h: Add special types for one and two byte structs.
1029 Updated copyright info.
1030 * src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
1031 sysv.S
1032 Remove code to pop args from the stack after call.
1033 Special-case signed/unsigned for int8/16, one and two byte structs.
1034 (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1035 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1036 FFI_TYPE_SINT32.
1037 Updated copyright info.
1038
c94ae2e4
DD
10392007-12-08 David Daney <ddaney@avtrex.com>
1040
302486f4 1041 * src/mips/n32.S (ffi_call_N32): Replace dadd with ADDU, dsub with
c94ae2e4
DD
1042 SUBU, add with ADDU and use smaller code sequences.
1043
3875b6d7 10442007-12-07 David Daney <ddaney@avtrex.com>
44be66a1 1045
3875b6d7
DD
1046 * src/mips/ffi.c (ffi_prep_cif_machdep): Handle long double return
1047 type.
1048
4c42b3d8
DD
10492007-12-06 David Daney <ddaney@avtrex.com>
1050
1051 * include/ffi.h.in (FFI_SIZEOF_JAVA_RAW): Define if not already
1052 defined.
1053 (ffi_java_raw): New typedef.
1054 (ffi_java_raw_call, ffi_java_ptrarray_to_raw,
1055 ffi_java_raw_to_ptrarray): Change parameter types from ffi_raw to
1056 ffi_java_raw.
1057 (ffi_java_raw_closure) : Same.
1058 (ffi_prep_java_raw_closure, ffi_prep_java_raw_closure_loc): Change
1059 parameter types.
1060 * src/java_raw_api.c (ffi_java_raw_size): Replace FFI_SIZEOF_ARG with
1061 FFI_SIZEOF_JAVA_RAW.
1062 (ffi_java_raw_to_ptrarray): Change type of raw to ffi_java_raw.
1063 Replace FFI_SIZEOF_ARG with FFI_SIZEOF_JAVA_RAW. Use
1064 sizeof(ffi_java_raw) for alignment calculations.
1065 (ffi_java_ptrarray_to_raw): Same.
1066 (ffi_java_rvalue_to_raw): Add special handling for FFI_TYPE_POINTER
302486f4 1067 if FFI_SIZEOF_JAVA_RAW == 4.
4c42b3d8
DD
1068 (ffi_java_raw_to_rvalue): Same.
1069 (ffi_java_raw_call): Change type of raw to ffi_java_raw.
1070 (ffi_java_translate_args): Same.
1071 (ffi_prep_java_raw_closure_loc, ffi_prep_java_raw_closure): Change
1072 parameter types.
1073 * src/mips/ffitarget.h (FFI_SIZEOF_JAVA_RAW): Define for N32 ABI.
1074
3ef50b62
DD
10752007-12-06 David Daney <ddaney@avtrex.com>
1076
302486f4 1077 * src/mips/n32.S (ffi_closure_N32): Use 64-bit add instruction on
3ef50b62
DD
1078 pointer values.
1079
16287148
AT
10802007-12-01 Andreas Tobler <a.tobler@schweiz.org>
1081
1082 PR libffi/31937
1083 * src/powerpc/ffitarget.h: Introduce new ABI FFI_LINUX_SOFT_FLOAT.
1084 Add local FFI_TYPE_UINT128 to handle soft-float long-double-128.
1085 * src/powerpc/ffi.c: Distinguish between __NO_FPRS__ and not and
1086 set the NUM_FPR_ARG_REGISTERS according to.
1087 Add support for potential soft-float support under hard-float
1088 architecture.
1089 (ffi_prep_args_SYSV): Set NUM_FPR_ARG_REGISTERS to 0 in case of
1090 FFI_LINUX_SOFT_FLOAT, handle float, doubles and long-doubles according
1091 to the FFI_LINUX_SOFT_FLOAT ABI.
1092 (ffi_prep_cif_machdep): Likewise.
1093 (ffi_closure_helper_SYSV): Likewise.
1094 * src/powerpc/ppc_closure.S: Make sure not to store float/double
1095 on archs where __NO_FPRS__ is true.
1096 Add FFI_TYPE_UINT128 support.
1097 * src/powerpc/sysv.S: Add support for soft-float long-double-128.
1098 Adjust copyright notice.
1099
a4b7c9cd
AT
11002007-11-25 Andreas Tobler <a.tobler@schweiz.org>
1101
1102 * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
1103 * include/ffi_common.h: ... here.
1104 Update copyright.
1105
e84296c6
AT
11062007-11-17 Andreas Tobler <a.tobler@schweiz.org>
1107
1108 * src/powerpc/sysv.S: Load correct cr to compare if we have long double.
1109 * src/powerpc/linux64.S: Likewise.
1110 * src/powerpc/ffi.c: Add a comment to show which part goes into cr6.
1111 * testsuite/libffi.call/return_ldl.c: New test.
1112
cb642590
AH
11132007-09-04 <aph@redhat.com>
1114
1115 * src/arm/sysv.S (UNWIND): New.
1116 (Whole file): Conditionally compile unwinder directives.
1117 * src/arm/sysv.S: Add unwinder directives.
1118
1119 * src/arm/ffi.c (ffi_prep_args): Align structs by at least 4 bytes.
1120 Only treat r0 as a struct address if we're actually returning a
1121 struct by address.
1122 Only copy the bytes that are actually within a struct.
1123 (ffi_prep_cif_machdep): A Composite Type not larger than 4 bytes
1124 is returned in r0, not passed by address.
1125 (ffi_call): Allocate a word-sized temporary for the case where
1126 a composite is returned in r0.
1127 (ffi_prep_incoming_args_SYSV): Align as necessary.
1128
11292007-08-05 Steven Newbury <s_j_newbury@yahoo.co.uk>
1130
302486f4 1131 * src/arm/ffi.c (FFI_INIT_TRAMPOLINE): Use __clear_cache instead of
cb642590
AH
1132 directly using the sys_cacheflush syscall.
1133
11342007-07-27 Andrew Haley <aph@redhat.com>
1135
1136 * src/arm/sysv.S (ffi_closure_SYSV): Add soft-float.
1137
8d5c5e35
MR
11382007-09-03 Maciej W. Rozycki <macro@linux-mips.org>
1139
1140 * Makefile.am: Unify MIPS_IRIX and MIPS_LINUX into MIPS.
1141 * configure.ac: Likewise.
1142 * Makefile.in: Regenerate.
1143 * include/Makefile.in: Likewise.
1144 * testsuite/Makefile.in: Likewise.
1145 * configure: Likewise.
1146
787b0d19
DD
11472007-08-24 David Daney <ddaney@avtrex.com>
1148
1149 * testsuite/libffi.call/return_sl.c: New test.
1150
dfbb3e36
DD
11512007-08-10 David Daney <ddaney@avtrex.com>
1152
1153 * testsuite/libffi.call/cls_multi_ushort.c,
1154 testsuite/libffi.call/cls_align_uint16.c,
1155 testsuite/libffi.call/nested_struct1.c,
1156 testsuite/libffi.call/nested_struct3.c,
1157 testsuite/libffi.call/cls_7_1_byte.c,
1158 testsuite/libffi.call/nested_struct5.c,
1159 testsuite/libffi.call/cls_double.c,
1160 testsuite/libffi.call/nested_struct7.c,
1161 testsuite/libffi.call/cls_sint.c,
1162 testsuite/libffi.call/nested_struct9.c,
1163 testsuite/libffi.call/cls_20byte1.c,
1164 testsuite/libffi.call/cls_multi_sshortchar.c,
1165 testsuite/libffi.call/cls_align_sint64.c,
1166 testsuite/libffi.call/cls_3byte2.c,
1167 testsuite/libffi.call/cls_multi_schar.c,
1168 testsuite/libffi.call/cls_multi_uchar.c,
1169 testsuite/libffi.call/cls_19byte.c,
1170 testsuite/libffi.call/cls_9byte1.c,
1171 testsuite/libffi.call/cls_align_float.c,
1172 testsuite/libffi.call/closure_fn1.c,
1173 testsuite/libffi.call/problem1.c,
1174 testsuite/libffi.call/closure_fn3.c,
1175 testsuite/libffi.call/cls_sshort.c,
1176 testsuite/libffi.call/closure_fn5.c,
1177 testsuite/libffi.call/cls_align_double.c,
1178 testsuite/libffi.call/nested_struct.c,
1179 testsuite/libffi.call/cls_2byte.c,
1180 testsuite/libffi.call/nested_struct10.c,
1181 testsuite/libffi.call/cls_4byte.c,
1182 testsuite/libffi.call/cls_6byte.c,
1183 testsuite/libffi.call/cls_8byte.c,
1184 testsuite/libffi.call/cls_multi_sshort.c,
1185 testsuite/libffi.call/cls_align_sint16.c,
1186 testsuite/libffi.call/cls_align_uint32.c,
1187 testsuite/libffi.call/cls_20byte.c,
1188 testsuite/libffi.call/cls_float.c,
1189 testsuite/libffi.call/nested_struct2.c,
1190 testsuite/libffi.call/cls_5_1_byte.c,
1191 testsuite/libffi.call/nested_struct4.c,
1192 testsuite/libffi.call/cls_24byte.c,
1193 testsuite/libffi.call/nested_struct6.c,
1194 testsuite/libffi.call/cls_64byte.c,
1195 testsuite/libffi.call/nested_struct8.c,
1196 testsuite/libffi.call/cls_uint.c,
1197 testsuite/libffi.call/cls_multi_ushortchar.c,
1198 testsuite/libffi.call/cls_schar.c,
1199 testsuite/libffi.call/cls_uchar.c,
1200 testsuite/libffi.call/cls_align_uint64.c,
1201 testsuite/libffi.call/cls_ulonglong.c,
1202 testsuite/libffi.call/cls_align_longdouble.c,
1203 testsuite/libffi.call/cls_1_1byte.c,
1204 testsuite/libffi.call/cls_12byte.c,
1205 testsuite/libffi.call/cls_3_1byte.c,
1206 testsuite/libffi.call/cls_3byte1.c,
1207 testsuite/libffi.call/cls_4_1byte.c,
1208 testsuite/libffi.call/cls_6_1_byte.c,
1209 testsuite/libffi.call/cls_16byte.c,
1210 testsuite/libffi.call/cls_18byte.c,
1211 testsuite/libffi.call/closure_fn0.c,
1212 testsuite/libffi.call/cls_9byte2.c,
1213 testsuite/libffi.call/closure_fn2.c,
1214 testsuite/libffi.call/closure_fn4.c,
1215 testsuite/libffi.call/cls_ushort.c,
1216 testsuite/libffi.call/closure_fn6.c,
1217 testsuite/libffi.call/cls_5byte.c,
1218 testsuite/libffi.call/cls_align_pointer.c,
1219 testsuite/libffi.call/cls_7byte.c,
1220 testsuite/libffi.call/cls_align_sint32.c,
1221 testsuite/libffi.special/unwindtest_ffi_call.cc,
1222 testsuite/libffi.special/unwindtest.cc: Remove xfail for mips64*-*-*.
1223
89d9d98a
DD
12242007-08-10 David Daney <ddaney@avtrex.com>
1225
1226 PR libffi/28313
1227 * configure.ac: Don't treat mips64 as a special case.
1228 * Makefile.am (nodist_libffi_la_SOURCES): Add n32.S.
1229 * configure: Regenerate
1230 * Makefile.in: Ditto.
1231 * fficonfig.h.in: Ditto.
1232 * src/mips/ffitarget.h (REG_L, REG_S, SUBU, ADDU, SRL, LI): Indent.
1233 (LA, EH_FRAME_ALIGN, FDE_ADDR_BYTES): New preprocessor macros.
1234 (FFI_DEFAULT_ABI): Set for n64 case.
1235 (FFI_CLOSURES, FFI_TRAMPOLINE_SIZE): Define for n32 and n64 cases.
1236 * src/mips/n32.S (ffi_call_N32): Add debug macros and labels for FDE.
1237 (ffi_closure_N32): New function.
1238 (.eh_frame): New section
1239 * src/mips/o32.S: Clean up comments.
1240 (ffi_closure_O32): Pass ffi_closure parameter in $12.
1241 * src/mips/ffi.c: Use FFI_MIPS_N32 instead of
1242 _MIPS_SIM == _ABIN32 throughout.
1243 (FFI_MIPS_STOP_HERE): New, use in place of
1244 ffi_stop_here.
1245 (ffi_prep_args): Use unsigned long to hold pointer values. Rewrite
1246 to support n32/n64 ABIs.
1247 (calc_n32_struct_flags): Rewrite.
1248 (calc_n32_return_struct_flags): Remove unused variable. Reverse
1249 position of flag bits.
1250 (ffi_prep_cif_machdep): Rewrite n32 portion.
1251 (ffi_call): Enable for n64. Add special handling for small structure
1252 return values.
1253 (ffi_prep_closure_loc): Add n32 and n64 support.
1254 (ffi_closure_mips_inner_O32): Add cast to silence warning.
1255 (copy_struct_N32, ffi_closure_mips_inner_N32): New functions.
1256
d23869d4
DD
12572007-08-08 David Daney <ddaney@avtrex.com>
1258
1259 * testsuite/libffi.call/ffitest.h (ffi_type_mylong): Remove definition.
1260 * testsuite/libffi.call/cls_align_uint16.c (main): Use correct type
1261 specifiers.
1262 * testsuite/libffi.call/nested_struct1.c (main): Ditto.
1263 * testsuite/libffi.call/cls_sint.c (main): Ditto.
1264 * testsuite/libffi.call/nested_struct9.c (main): Ditto.
1265 * testsuite/libffi.call/cls_20byte1.c (main): Ditto.
1266 * testsuite/libffi.call/cls_9byte1.c (main): Ditto.
1267 * testsuite/libffi.call/closure_fn1.c (main): Ditto.
1268 * testsuite/libffi.call/closure_fn3.c (main): Ditto.
1269 * testsuite/libffi.call/return_dbl2.c (main): Ditto.
1270 * testsuite/libffi.call/cls_sshort.c (main): Ditto.
1271 * testsuite/libffi.call/return_fl3.c (main): Ditto.
1272 * testsuite/libffi.call/closure_fn5.c (main): Ditto.
1273 * testsuite/libffi.call/nested_struct.c (main): Ditto.
1274 * testsuite/libffi.call/nested_struct10.c (main): Ditto.
1275 * testsuite/libffi.call/return_ll1.c (main): Ditto.
1276 * testsuite/libffi.call/cls_8byte.c (main): Ditto.
1277 * testsuite/libffi.call/cls_align_uint32.c (main): Ditto.
1278 * testsuite/libffi.call/cls_align_sint16.c (main): Ditto.
1279 * testsuite/libffi.call/cls_20byte.c (main): Ditto.
1280 * testsuite/libffi.call/nested_struct2.c (main): Ditto.
1281 * testsuite/libffi.call/cls_24byte.c (main): Ditto.
1282 * testsuite/libffi.call/nested_struct6.c (main): Ditto.
1283 * testsuite/libffi.call/cls_uint.c (main): Ditto.
1284 * testsuite/libffi.call/cls_12byte.c (main): Ditto.
1285 * testsuite/libffi.call/cls_16byte.c (main): Ditto.
1286 * testsuite/libffi.call/closure_fn0.c (main): Ditto.
1287 * testsuite/libffi.call/cls_9byte2.c (main): Ditto.
1288 * testsuite/libffi.call/closure_fn2.c (main): Ditto.
1289 * testsuite/libffi.call/return_dbl1.c (main): Ditto.
1290 * testsuite/libffi.call/closure_fn4.c (main): Ditto.
1291 * testsuite/libffi.call/closure_fn6.c (main): Ditto.
1292 * testsuite/libffi.call/cls_align_sint32.c (main): Ditto.
1293
536e0a8f
AH
12942007-08-07 Andrew Haley <aph@redhat.com>
1295
1296 * src/x86/sysv.S (ffi_closure_raw_SYSV): Fix typo in previous
1297 checkin.
1298
7665c9be
AH
12992007-08-06 Andrew Haley <aph@redhat.com>
1300
1301 PR testsuite/32843
1302 * src/x86/sysv.S (ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
1303 FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
1304 FFI_TYPE_SINT32.
1305
58e11497
DD
13062007-08-02 David Daney <ddaney@avtrex.com>
1307
1308 * testsuite/libffi.call/return_ul.c (main): Define return type as
1309 ffi_arg. Use proper printf conversion specifier.
302486f4 1310
387cfbba
AH
13112007-07-30 Andrew Haley <aph@redhat.com>
1312
1313 PR testsuite/32843
1314 * src/x86/ffi.c (ffi_prep_cif_machdep): in x86 case, add code for
1315 signed/unsigned int8/16.
1316 * src/x86/sysv.S (ffi_call_SYSV): Rewrite to:
1317 Use a jump table.
1318 Remove code to pop args from the stack after call.
1319 Special-case signed/unsigned int8/16.
1320 * testsuite/libffi.call/return_sc.c (main): Revert.
1321
0ee0208e
RG
13222007-07-26 Richard Guenther <rguenther@suse.de>
1323
1324 PR testsuite/32843
1325 * testsuite/libffi.call/return_sc.c (main): Verify call
1326 result as signed char, not ffi_arg.
1327
04a49983
RO
13282007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1329
1330 * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.
1331 * configure: Regenerate.
1332
433e6a8c
DD
13332007-07-11 David Daney <ddaney@avtrex.com>
1334
1335 * src/mips/ffi.c: Don't include sys/cachectl.h.
1336 (ffi_prep_closure_loc): Use __builtin___clear_cache() instead of
1337 cacheflush().
1338
0959e2b8
AH
13392007-05-18 Aurelien Jarno <aurelien@aurel32.net>
1340
1341 * src/arm/ffi.c (ffi_prep_closure_loc): Renamed and ajusted
1342 from (ffi_prep_closure): ... this.
1343 (FFI_INIT_TRAMPOLINE): Adjust.
1344
13452005-12-31 Phil Blundell <pb@reciva.com>
1346
302486f4
AS
1347 * src/arm/ffi.c (ffi_prep_incoming_args_SYSV,
1348 ffi_closure_SYSV_inner, ffi_prep_closure): New, add closure support.
0959e2b8
AH
1349 * src/arm/sysv.S(ffi_closure_SYSV): Likewise.
1350 * src/arm/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1351 (FFI_CLOSURES): Enable closure support.
1352
13532007-07-03 Andrew Haley <aph@hedges.billgatliff.com>
1354
302486f4
AS
1355 * testsuite/libffi.call/cls_multi_ushort.c,
1356 testsuite/libffi.call/cls_align_uint16.c,
1357 testsuite/libffi.call/nested_struct1.c,
1358 testsuite/libffi.call/nested_struct3.c,
1359 testsuite/libffi.call/cls_7_1_byte.c,
1360 testsuite/libffi.call/cls_double.c,
1361 testsuite/libffi.call/nested_struct5.c,
1362 testsuite/libffi.call/nested_struct7.c,
1363 testsuite/libffi.call/cls_sint.c,
1364 testsuite/libffi.call/nested_struct9.c,
1365 testsuite/libffi.call/cls_20byte1.c,
1366 testsuite/libffi.call/cls_multi_sshortchar.c,
1367 testsuite/libffi.call/cls_align_sint64.c,
1368 testsuite/libffi.call/cls_3byte2.c,
1369 testsuite/libffi.call/cls_multi_schar.c,
1370 testsuite/libffi.call/cls_multi_uchar.c,
1371 testsuite/libffi.call/cls_19byte.c,
1372 testsuite/libffi.call/cls_9byte1.c,
1373 testsuite/libffi.call/cls_align_float.c,
1374 testsuite/libffi.call/closure_fn1.c,
1375 testsuite/libffi.call/problem1.c,
1376 testsuite/libffi.call/closure_fn3.c,
1377 testsuite/libffi.call/cls_sshort.c,
1378 testsuite/libffi.call/closure_fn5.c,
1379 testsuite/libffi.call/cls_align_double.c,
1380 testsuite/libffi.call/cls_2byte.c,
1381 testsuite/libffi.call/nested_struct.c,
1382 testsuite/libffi.call/nested_struct10.c,
1383 testsuite/libffi.call/cls_4byte.c,
1384 testsuite/libffi.call/cls_6byte.c,
1385 testsuite/libffi.call/cls_8byte.c,
1386 testsuite/libffi.call/cls_multi_sshort.c,
1387 testsuite/libffi.call/cls_align_uint32.c,
1388 testsuite/libffi.call/cls_align_sint16.c,
1389 testsuite/libffi.call/cls_float.c,
1390 testsuite/libffi.call/cls_20byte.c,
1391 testsuite/libffi.call/cls_5_1_byte.c,
1392 testsuite/libffi.call/nested_struct2.c,
1393 testsuite/libffi.call/cls_24byte.c,
1394 testsuite/libffi.call/nested_struct4.c,
1395 testsuite/libffi.call/nested_struct6.c,
1396 testsuite/libffi.call/cls_64byte.c,
1397 testsuite/libffi.call/nested_struct8.c,
1398 testsuite/libffi.call/cls_uint.c,
1399 testsuite/libffi.call/cls_multi_ushortchar.c,
1400 testsuite/libffi.call/cls_schar.c,
1401 testsuite/libffi.call/cls_uchar.c,
1402 testsuite/libffi.call/cls_align_uint64.c,
1403 testsuite/libffi.call/cls_ulonglong.c,
1404 testsuite/libffi.call/cls_align_longdouble.c,
1405 testsuite/libffi.call/cls_1_1byte.c,
1406 testsuite/libffi.call/cls_12byte.c,
1407 testsuite/libffi.call/cls_3_1byte.c,
1408 testsuite/libffi.call/cls_3byte1.c,
1409 testsuite/libffi.call/cls_4_1byte.c,
1410 testsuite/libffi.call/cls_6_1_byte.c,
1411 testsuite/libffi.call/cls_16byte.c,
1412 testsuite/libffi.call/cls_18byte.c,
1413 testsuite/libffi.call/closure_fn0.c,
1414 testsuite/libffi.call/cls_9byte2.c,
1415 testsuite/libffi.call/closure_fn2.c,
1416 testsuite/libffi.call/closure_fn4.c,
1417 testsuite/libffi.call/cls_ushort.c,
1418 testsuite/libffi.call/closure_fn6.c,
1419 testsuite/libffi.call/cls_5byte.c,
1420 testsuite/libffi.call/cls_align_pointer.c,
1421 testsuite/libffi.call/cls_7byte.c,
1422 testsuite/libffi.call/cls_align_sint32.c,
1423 testsuite/libffi.special/unwindtest_ffi_call.cc,
1424 testsuite/libffi.special/unwindtest.cc: Enable for ARM.
0959e2b8 1425
12a27363
L
14262007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1427
1428 * aclocal.m4: Regenerated.
1429
82a6cadf
PB
14302007-06-02 Paolo Bonzini <bonzini@gnu.org>
1431
1432 * configure: Regenerate.
1433
1cf3d07d
SE
14342007-05-23 Steve Ellcey <sje@cup.hp.com>
1435
1436 * Makefile.in: Regenerate.
1437 * configure: Regenerate.
1438 * aclocal.m4: Regenerate.
1439 * include/Makefile.in: Regenerate.
1440 * testsuite/Makefile.in: Regenerate.
1441
5635c26e
RZ
14422007-05-10 Roman Zippel <zippel@linux-m68k.org>
1443
1444 * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
1445 ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
1446 * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
1447 * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
1448 (FFI_CLOSURES): Enable closure support.
1449
e6fbf387
RZ
14502007-05-10 Roman Zippel <zippel@linux-m68k.org>
1451
1452 * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
1453 * configure: Regenerate.
1454 * fficonfig.h.in: Regenerate.
1455 * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
1456 CFI_OFFSET,CFI_DEF_CFA): New macros.
1457 (ffi_call_SYSV): Add callframe annotation.
1458
b5296e52
RZ
14592007-05-10 Roman Zippel <zippel@linux-m68k.org>
1460
1461 * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
1462 numerous test suite failures.
1463 * src/m68k/sysv.S (ffi_call_SYSV): Likewise.
1464
bd61d708
PB
14652007-04-11 Paolo Bonzini <bonzini@gnu.org>
1466
1467 * Makefile.am (EXTRA_DIST): Bring up to date.
1468 * Makefile.in: Regenerate.
1469 * src/frv/eabi.S: Remove RCS keyword.
1470
bf8da5fc
RH
14712007-04-06 Richard Henderson <rth@redhat.com>
1472
1473 * configure.ac: Tidy target case.
1474 (HAVE_LONG_DOUBLE): Allow the target to override.
1475 * configure: Regenerate.
1476 * include/ffi.h.in: Don't define ffi_type_foo if
1477 LIBFFI_HIDE_BASIC_TYPES is defined.
1478 (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
1479 to ffi_type_double.
1480 * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
1481 (FFI_TYPEDEF, ffi_type_void): Mark the data const.
1482 (ffi_type_longdouble): Special case for Alpha. Don't define
1483 if long double == double.
1484
1485 * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
1486 (ffi_prep_cif_machdep): Handle it as the 128-bit type.
1487 (ffi_call, ffi_closure_osf_inner): Likewise.
1488 (ffi_closure_osf_inner): Likewise. Mark hidden.
1489 (ffi_call_osf, ffi_closure_osf): Mark hidden.
1490 * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
1491 * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
1492 (load_table): Handle 128-bit long double.
1493
1494 * testsuite/libffi.call/float4.c: Add -mieee for alpha.
1495
8669fed1
TT
14962007-04-06 Tom Tromey <tromey@redhat.com>
1497
1498 PR libffi/31491:
1499 * README: Fixed bug in example.
1500
f0920e6c
JJ
15012007-04-03 Jakub Jelinek <jakub@redhat.com>
1502
1503 * src/closures.c: Include sys/statfs.h.
1504 (_GNU_SOURCE): Define on Linux.
1505 (FFI_MMAP_EXEC_SELINUX): Define.
1506 (selinux_enabled): New variable.
1507 (selinux_enabled_check): New function.
1508 (is_selinux_enabled): Define.
1509 (dlmmap): Use it.
1510
34a6ccda
UB
15112007-03-24 Uros Bizjak <ubizjak@gmail.com>
1512
1513 * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
1514 Use 'volatile float sum' to create sum of floats to avoid false
1515 negative due to excess precision on ix86 targets.
302486f4 1516 (main): Ditto.
34a6ccda 1517
8b9cf39e
AO
15182007-03-08 Alexandre Oliva <aoliva@redhat.com>
1519
1520 * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
1521 patch.
1522 (ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
1523
18fa3240
AO
15242007-03-07 Alexandre Oliva <aoliva@redhat.com>
1525
1526 * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
1527 (ffi_prep_closure_loc): New.
1528 (ffi_prep_raw_closure_loc): New.
1529 (ffi_prep_java_raw_closure_loc): New.
1530 * src/closures.c: New file.
1531 * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
1532 Replace sflags with exec_offset.
1533 [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
1534 sub_segment_exec_offset): New macros.
1535 (get_segment_flags, set_segment_flags, check_segment_merge): New
1536 macros.
1537 (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
1538 (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
1539 destroy_mspace): Use new macros.
1540 (sys_alloc): Silence warning.
1541 * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
1542 * Makefile.in: Rebuilt.
1543 * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
1544 terms of ffi_prep_closure_loc.
1545 * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
1546 from...
1547 (ffi_prep_raw_closure): ... this. Re-implement in terms of the
1548 renamed version.
1549 * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
1550 adjusted from...
1551 (ffi_prep_java_raw_closure): ... this. Re-implement in terms of
1552 the renamed version.
1553 * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
1554 (ffi_prep_closure): ... this.
1555 * src/pa/ffi.c: Likewise.
1556 * src/cris/ffi.c: Likewise. Adjust.
1557 * src/frv/ffi.c: Likewise.
1558 * src/ia64/ffi.c: Likewise.
1559 * src/mips/ffi.c: Likewise.
1560 * src/powerpc/ffi_darwin.c: Likewise.
1561 * src/s390/ffi.c: Likewise.
1562 * src/sh/ffi.c: Likewise.
1563 * src/sh64/ffi.c: Likewise.
1564 * src/sparc/ffi.c: Likewise.
1565 * src/x86/ffi64.c: Likewise.
1566 * src/x86/ffi.c: Likewise.
1567 (FFI_INIT_TRAMPOLINE): Adjust.
1568 (ffi_prep_raw_closure_loc): Renamed and adjusted from...
1569 (ffi_prep_raw_closure): ... this.
1570 * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
1571 (ffi_prep_closure): ... this.
1572 (flush_icache): Adjust.
1573
dd778331
AO
15742007-03-07 Alexandre Oliva <aoliva@redhat.com>
1575
1576 * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
1577 Lea's malloc.
1578
b5f8d49b
BM
15792007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1580
1581 * Makefile.am: Add dummy install-pdf target.
1582 * Makefile.in: Regenerate
1583
7a23933b
AK
15842007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
1585
1586 * src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
1587 ffi_closure_helper_SYSV): Add long double handling.
1588
8aaf4681
JJ
15892007-02-02 Jakub Jelinek <jakub@redhat.com>
1590
1591 * src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
1592 immediately after bctrl instruction.
1593
0eb5e2b9
AO
15942007-01-18 Alexandre Oliva <aoliva@redhat.com>
1595
1596 * Makefile.am (all-recursive, install-recursive,
1597 mostlyclean-recursive, clean-recursive, distclean-recursive,
1598 maintainer-clean-recursive): Add missing targets.
1599 * Makefile.in: Rebuilt.
1600
f4f7486b
AT
16012006-12-14 Andreas Tobler <a.tobler@schweiz.org>
1602
1603 * configure.ac: Add TARGET for x86_64-*-darwin*.
1604 * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
1605 for X86_DARWIN.
1606 * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
1607 * src/x86/darwin64.S: New file for x86_64-*-darwin* support.
1608 * configure: Regenerate.
1609 * Makefile.in: Regenerate.
1610 * include/Makefile.in: Regenerate.
1611 * testsuite/Makefile.in: Regenerate.
1612 * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
1613 ffi_call only.
1614
3d5eafe2
AT
16152006-12-13 Andreas Tobler <a.tobler@schweiz.org>
1616
1617 * aclocal.m4: Regenerate with aclocal -I .. as written in the
1618 Makefile.am.
1619
d5523ce1 16202006-10-31 Geoffrey Keating <geoffk@apple.com>
58182de3
GK
1621
1622 * src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
1623 (ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
1624 Darwin.
1625 * testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
1626 * testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
1627
a3bd50cc
PB
16282006-10-10 Paolo Bonzini <bonzini@gnu.org>
1629 Sandro Tolaini <tolaini@libero.it>
1630
302486f4 1631 * configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
a3bd50cc
PB
1632 conditional.
1633 * configure: Regenerated.
1634 * Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
1635 (EXTRA_DIST): Add src/x86/darwin.S.
1636 * Makefile.in: Regenerated.
1637 * include/Makefile.in: Regenerated.
1638 * testsuite/Makefile.in: Regenerated.
1639
1640 * src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
1641 X86_WIN32, and additionally align stack to 16 bytes.
1642 * src/x86/darwin.S: New, based on sysv.S.
1643 * src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
1644
b095810f
DD
16452006-09-12 David Daney <ddaney@avtrex.com>
1646
1647 PR libffi/23935
1648 * include/Makefile.am: Install both ffi.h and ffitarget.h in
1649 $(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
1650 * aclocal.m4: Regenerated for automake 1.9.6.
1651 * Makefile.in: Regenerated.
1652 * include/Makefile.in: Regenerated.
1653 * testsuite/Makefile.in: Regenerated.
1654
110b2db4
AT
16552006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
1656
1657 * include/ffi_common.h (struct): Revert accidental commit.
1658
8e5fde87
AT
16592006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
1660
1661 * include/ffi_common.h: Remove lint directives.
1662 * include/ffi.h.in: Likewise.
1663
cb4132fe
TS
16642006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
1665
1666 * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
1667 for 32-bit architectures.
1668 * testsuite/libffi.call/return_ul.c: New test case.
1669
0d24c3fa
DD
16702006-07-19 David Daney <ddaney@avtrex.com>
1671
1672 * testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
1673 xfail remains for mips64.
1674
8665824c
CD
16752006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1676
1677 * Makefile.am: Add install-html target. Add install-html to .PHONY
1678 * Makefile.in: Regenerate.
1679 * aclocal.m4: Regenerate.
1680 * include/Makefile.in: Regenerate.
1681 * testsuite/Makefile.in: Regenerate.
1682
84e2e370
JDA
16832006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1684
1685 * pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
1686 stack slot.
1687
ac6ed182
AT
16882006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
1689
1690 * README: Remove notice about 'Crazy Comments'.
1691 * src/debug.c: Remove lint directives. Cleanup white spaces.
1692 * src/java_raw_api.c: Likewise.
1693 * src/prep_cif.c: Likewise.
1694 * src/raw_api.c: Likewise.
1695 * src/ffitest.c: Delete. No longer needed, all test cases migrated
1696 to the testsuite.
1697 * src/arm/ffi.c: Remove lint directives.
1698 * src/m32r/ffi.c: Likewise.
1699 * src/pa/ffi.c: Likewise.
1700 * src/powerpc/ffi.c: Likewise.
1701 * src/powerpc/ffi_darwin.c: Likewise.
1702 * src/sh/ffi.c: Likewise.
1703 * src/sh64/ffi.c: Likewise.
1704 * src/x86/ffi.c: Likewise.
1705 * testsuite/libffi.call/float2.c: Likewise.
1706 * testsuite/libffi.call/promotion.c: Likewise.
1707 * testsuite/libffi.call/struct1.c: Likewise.
1708
b7211585
AT
17092006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
1710
1711 * src/pa/hpux32.S: Correct unwind offset calculation for
1712 ffi_closure_pa32.
1713 * src/pa/linux.S: Likewise.
1714
86066f9b
JW
17152006-04-12 James E Wilson <wilson@specifix.com>
1716
1717 PR libgcj/26483
1718 * src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
1719 (hfa_type_load): Call stf_spill.
1720 (hfa_type_store): Call ldf_fill.
1721 (ffi_call): Adjust calls to above routines. Add local temps for
1722 macro result.
b7211585 1723
615baed7
MK
17242006-04-10 Matthias Klose <doko@debian.org>
1725
1726 * testsuite/lib/libffi-dg.exp (libffi-init): Recognize multilib
1727 directory names containing underscores.
1728
8e7a2b58
JW
17292006-04-07 James E Wilson <wilson@specifix.com>
1730
1731 * testsuite/libffi.call/float4.c: New testcase.
1732
e6c300ef
JDA
17332006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1734 Andreas Tobler <a.tobler@schweiz.ch>
1735
1736 * Makefile.am: Add PA_HPUX port.
1737 * Makefile.in: Regenerate.
1738 * include/Makefile.in: Likewise.
1739 * testsuite/Makefile.in: Likewise.
1740 * configure.ac: Add PA_HPUX rules.
1741 * configure: Regenerate.
1742 * src/pa/ffitarget.h: Rename linux target to PA_LINUX.
1743 Add PA_HPUX and PA64_HPUX.
1744 Rename FFI_LINUX ABI to FFI_PA32 ABI.
1745 (FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
1746 (FFI_TYPE_SMALL_STRUCT2): Define.
1747 (FFI_TYPE_SMALL_STRUCT4): Likewise.
1748 (FFI_TYPE_SMALL_STRUCT8): Likewise.
1749 (FFI_TYPE_SMALL_STRUCT3): Redefine.
1750 (FFI_TYPE_SMALL_STRUCT5): Likewise.
1751 (FFI_TYPE_SMALL_STRUCT6): Likewise.
1752 (FFI_TYPE_SMALL_STRUCT7): Likewise.
1753 * src/pa/ffi.c (ROUND_DOWN): Delete.
1754 (fldw, fstw, fldd, fstd): Use '__asm__'.
1755 (ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
1756 FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
1757 (ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
1758 Simplify incrementing of stack slot variable. Change type of local
1759 'n' to unsigned int.
1760 (ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
1761 double on PA_HPUX.
1762 (ffi_prep_cif_machdep): Likewise.
1763 (ffi_call): Likewise.
1764 (ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
1765 return type to ffi_status. Simplify incrementing of stack slot
1766 variable. Only copy floating point argument registers when PA_LINUX
1767 is true. Reformat debug statement.
1768 Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
1769 FFI_TYPE_SMALL_STRUCT8.
1770 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
1771 declaration.
1772 (ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
1773 Add nops to cache flush. Add trampoline for PA_HPUX.
1774 * src/pa/hpux32.S: New file.
1775 * src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
1776 ffi_prep_args_LINUX to ffi_prep_args_pa32.
1777 Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
1778 unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
1779 argument type checks so that common argument types appear first.
1780 (ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
1781 ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
1782
75b8b1be
AM
17832006-03-24 Alan Modra <amodra@bigpond.net.au>
1784
1785 * src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
1786 for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
1787 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
1788 FFI_TYPE_LONGDOUBLE.
1789 (ffi_prep_args64): Assert using IBM extended double.
1790 (ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
1791 Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
1792 (ffi_call): Handle FFI_LINUX.
1793 (ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
1794 gpr3 return pointer as for struct return. Handle FFI_LINUX
1795 FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
1796 unnecessarily.
1797 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
1798 for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
1799 Don't use r6 as pointer to results, instead use sp offset. Don't
1800 make a special call to load lr with case table address, instead
1801 use offset from previous call.
1802 * src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
1803 * src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
1804 return.
1805
697701ad
KK
18062006-03-15 Kaz Kojima <kkojima@gcc.gnu.org>
1807
1808 * src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
1809 passed with FP registers correctly.
1810 (ffi_closure_helper_SYSV): Likewise.
1811 * src/sh64/sysv.S: Likewise.
1812
b295c471
AT
18132006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
1814
1815 * testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
1816 args and userdata unused.
1817 (closure_test_fn1): Mark cif and userdata unused.
1818 (main): Remove unused res.
1819
9fdeb13b
AT
18202006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
1821
1822 * testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
1823 -O2, -O3, -Os and the warning flags -W -Wall.
1824 * testsuite/libffi.special/special.exp: Likewise.
1825 * testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
1826 unused parameter unused for gcc or else do nothing.
1827 * testsuite/libffi.special/ffitestcxx.h: Likewise.
1828 * testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
1829 and userdata unused.
1830 * testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
1831 * testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
1832 * testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
1833 * testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
1834 * testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
1835 * testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
1836 * testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
1837 * testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
1838 * testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
1839 * testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
1840 * testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
1841 * testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
1842 * testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
1843 * testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
1844 * testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
1845 * testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
1846 * testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
1847 * testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
1848 * testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
1849 * testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
1850 * testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
1851 * testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
1852 * testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
1853 * testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
1854 Likewise.
1855 * testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
1856 Likewise.
1857 * testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
1858 Likewise.
1859 * testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
1860 void* to avoid compiler warning.
1861 (main): Likewise.
1862 (cls_struct_align_gn): Mark cif and userdata unused.
1863 * testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
1864 Likewise.
1865 * testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
1866 Likewise.
1867 * testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
1868 Likewise.
1869 * testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
1870 Likewise.
1871 * testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
1872 Likewise.
1873 * testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
1874 * testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
1875 * testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
1876 data unused.
1877 (main): Cast res_call to silence gcc.
1878 * testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
1879 data unused.
1880 (main): Cast res_call to silence gcc.
1881 * testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
1882 and data unused.
1883 (main): Cast res_call to silence gcc.
1884 * testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
1885 data unused.
1886 (main): Cast res_call to silence gcc.
1887 * testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
1888 data unused.
1889 (main): Cast res_call to silence gcc.
1890 * testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
1891 and data unused.
1892 (main): Cast res_call to silence gcc.
1893 * testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
1894 userdata unused.
1895 (cls_ret_schar_fn): Cast printf parameter to silence gcc.
1896 * testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
1897 userdata unused.
1898 (cls_ret_sint_fn): Cast printf parameter to silence gcc.
1899 * testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
1900 userdata unused.
1901 (cls_ret_sshort_fn): Cast printf parameter to silence gcc.
1902 * testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
1903 userdata unused.
1904 (cls_ret_uchar_fn): Cast printf parameter to silence gcc.
1905 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
1906 userdata unused.
1907 (cls_ret_uint_fn): Cast printf parameter to silence gcc.
1908 * testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
1909 and userdata unused.
1910 * testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
1911 userdata unused.
1912 (cls_ret_ushort_fn): Cast printf parameter to silence gcc.
1913 * testsuite/libffi.call/float.c (floating): Remove unused parameter e.
1914 * testsuite/libffi.call/float1.c (main): Remove unused variable i.
1915 Cleanup white spaces.
1916 * testsuite/libffi.call/negint.c (checking): Remove unused variable i.
1917 * testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
1918 cif and userdata unused.
1919 * testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
1920 Likewise.
1921 * testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
1922 * testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
1923 formatters to silence gcc.
1924 (B_gn): Mark cif and userdata unused.
1925 * testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
1926 unused.
1927 * testsuite/libffi.call/nested_struct4.c: Mention related PR.
1928 (B_gn): Mark cif and userdata unused.
1929 * testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
1930 unused.
1931 * testsuite/libffi.call/nested_struct6.c: Mention related PR.
1932 (B_gn): Mark cif and userdata unused.
1933 * testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
1934 unused.
1935 * testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
1936 * testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
1937 * testsuite/libffi.call/problem1.c (stub): Likewise.
1938 * testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
1939 gcc.
1940 * testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
1941 in the last commit for this test case in the test case itself.
1942 * testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
1943 unused.
1944 * testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
1945 * testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
1946 * testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
1947 * testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
1948 * testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
1949 * testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
1950
0a4e2bb5
KK
19512006-02-22 Kaz Kojima <kkojima@gcc.gnu.org>
1952
1953 * src/sh/sysv.S: Fix register numbers in the FDE for
1954 ffi_closure_SYSV.
1955
723e5d5a
AT
19562006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
1957
1958 * testsuite/libffi.call/return_fl2.c (return_fl): Remove static
1959 declaration to avoid a false negative on ix86. See PR323.
1960
e097f887
KK
19612006-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
1962
1963 * src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
1964 and cast integer to void * if needed. Update the pointer to
1965 the FP register saved area correctly.
302486f4 1966
1a4878f7
AT
19672006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
1968
1969 * testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
1970 is fixed.
1971 * testsuite/libffi.call/nested_struct4.c: Likewise.
1972
b47b5e08
AT
19732006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
1974
6429d58f
AT
1975 * testsuite/libffi.call/return_dbl.c: New test case.
1976 * testsuite/libffi.call/return_dbl1.c: Likewise.
1977 * testsuite/libffi.call/return_dbl2.c: Likewise.
1978 * testsuite/libffi.call/return_fl.c: Likewise.
1979 * testsuite/libffi.call/return_fl1.c: Likewise.
1980 * testsuite/libffi.call/return_fl2.c: Likewise.
1981 * testsuite/libffi.call/return_fl3.c: Likewise.
1982 * testsuite/libffi.call/closure_fn6.c: Likewise.
1983
b47b5e08
AT
1984 * testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
1985 definition.
1986 * testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
1987 here to be used by other test cases too.
1988
1989 * testsuite/libffi.call/nested_struct10.c: New test case.
1990 * testsuite/libffi.call/nested_struct9.c: Likewise.
1991 * testsuite/libffi.call/nested_struct8.c: Likewise.
1992 * testsuite/libffi.call/nested_struct7.c: Likewise.
1993 * testsuite/libffi.call/nested_struct6.c: Likewise.
1994 * testsuite/libffi.call/nested_struct5.c: Likewise.
1995 * testsuite/libffi.call/nested_struct4.c: Likewise.
1996
9abe31d4
AT
19972006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
1998
1999 * configure.ac: Enable libffi for sparc64-*-freebsd*.
2000 * configure: Rebuilt.
2001
71aa1a70
JJ
20022006-01-18 Jakub Jelinek <jakub@redhat.com>
2003
2004 * src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
2005 instead do the shifting inline.
2006 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
2007 shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
2008 and 8 byte structs, for the remaining struct sizes don't call
2009 __lshrdi3, instead do the shifting inline.
2010
8a39029d
TS
20112005-12-07 Thiemo Seufer <ths@networkno.de>
2012
2013 * src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
2014 missing parentheses.
2015 * src/mips/o32.S (ffi_call_O32): Code formatting. Define
2016 and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
2017 (ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
2018 A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
2019 V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
2020 FA_0_0_OFF2.
2021 * src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
2022 endianness bugs.
2023 (ffi_prep_closure): Improve trampoline instruction scheduling.
2024 (ffi_closure_mips_inner_O32): Fix endianness bugs.
2025
cd4241aa
AM
20262005-12-03 Alan Modra <amodra@bigpond.net.au>
2027
2028 * src/powerpc/ffi.c: Formatting.
2029 (ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
2030 (ffi_prep_args64): Likewise.
2031
0363db46
GK
20322005-09-30 Geoffrey Keating <geoffk@apple.com>
2033
2034 * testsuite/lib/libffi-dg.exp (libffi_target_compile): For
2035 darwin, use -shared-libgcc not -lgcc_s, and explain why.
2036
d674eb2f
TT
20372005-09-26 Tom Tromey <tromey@redhat.com>
2038
2039 * testsuite/libffi.call/float1.c (value_type): New typedef.
2040 (CANARY): New define.
2041 (main): Check for result buffer overflow.
2042 * src/powerpc/linux64.S: Handle linux64 long double returns.
2043 * src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
2044 (ffi_prep_cif_machdep): Handle linux64 long double returns.
2045
2d9c5743
AM
20462005-08-25 Alan Modra <amodra@bigpond.net.au>
2047
2048 PR target/23404
2049 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
2050 homed fp args.
2051 (ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
2052
8a42356f
JJ
20532005-08-11 Jakub Jelinek <jakub@redhat.com>
2054
2055 * configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
2056 (AH_BOTTOM): Add FFI_HIDDEN definition.
2057 * configure: Rebuilt.
2058 * fficonfig.h.in: Rebuilt.
2059 * src/powerpc/ffi.c (hidden): Remove.
2060 (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
2061 ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
2062 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
2063 .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
2064 * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
2065 add FFI_HIDDEN to its prototype.
2066 (ffi_closure_SYSV_inner): New.
2067 * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
2068 * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
2069
863c5508
AS
20702005-08-10 Alfred M. Szmidt <ams@gnu.org>
2071
2072 PR libffi/21819:
2073 * configure: Rebuilt.
2074 * configure.ac: Handle i*86-*-gnu*.
2075
6a26ea58
JJ
20762005-08-09 Jakub Jelinek <jakub@redhat.com>
2077
2078 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
2079 DW_CFA_offset_extended_sf rather than
2080 DW_CFA_GNU_negative_offset_extended.
2081 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
2082
583a92e8
ST
20832005-07-22 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2084
2085 * src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
2086 on sh3.
2087 (ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
2088 * src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
2089 partially on register.
2090 (ffi_closure_helper_SYSV): Likewise.
2091 (ffi_prep_cif_machdep): Don't set too many cif->flags.
2092
5d0317fc
KK
20932005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2094
2095 * src/sh/ffi.c (ffi_call): Handle small structures correctly.
2096 Remove empty line.
2097 * src/sh64/ffi.c (simple_type): Remove.
2098 (return_type): Handle small structures correctly.
2099 (ffi_prep_args): Likewise.
2100 (ffi_call): Likewise.
2101 (ffi_closure_helper_SYSV): Likewise.
2102 * src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
2103 Emit position independent code if PIC and remove wrong datalabel
2104 prefixes from EH data.
2105
8d9fd5f5
AT
21062005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
2107
2108 * Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
2109 * Makefile.in: Regenerate.
2110 * include/Makefile.in: Likewise.
2111 * testsuite/Makefile.in: Likewise.
2112 * configure.ac: Add POWERPC_FREEBSD rules.
2113 * configure: Regenerate.
2114 * src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
2115 (FFI_SYSV_TYPE_SMALL_STRUCT): Define.
2116 * src/powerpc/ffi.c: Add flags to handle small structure returns
2117 in ffi_call_SYSV.
2118 (ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
2119 Aka FFI_SYSV.
2120 (ffi_closure_helper_SYSV): Likewise.
2121 * src/powerpc/ppc_closure.S: Add return types for small structures.
2122 * src/powerpc/sysv.S: Add bits to handle small structures for
2123 final SYSV 4 ABI.
2124
93c76f81
AT
21252005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
2126
2127 * testsuite/libffi.call/cls_5_1_byte.c: New test file.
2128 * testsuite/libffi.call/cls_6_1_byte.c: Likewise.
2129 * testsuite/libffi.call/cls_7_1_byte.c: Likewise.
2130
b65da304
RC
21312005-07-05 Randolph Chung <tausq@debian.org>
2132
2133 * src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
2134 as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
2135 structures. Kill compilation warnings.
2136 (ffi_closure_inner_LINUX): Print return values as hex in debug
2137 message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
2138 Properly handle 5-7 byte structure returns.
2139 * src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
2140 (FFI_TYPE_SMALL_STRUCT2): Remove.
2141 (FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
2142 (FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
2143 * src/pa/linux.S: Mark source file as using PA1.1 assembly.
2144 (checksmst1, checksmst2): Remove.
2145 (checksmst3): Optimize handling of 3-byte struct returns.
2146 (checksmst567): Properly handle 5-7 byte struct returns.
2147
2572f1c6
RO
21482005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2149
2150 PR libgcj/21943
2151 * src/mips/n32.S: Enforce PIC code.
2152 * src/mips/o32.S: Likewise.
2153
cc786582
RO
21542005-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2155
2156 * configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
2157 * configure: Regenerate.
302486f4 2158
6d0d376c
AM
21592005-06-01 Alan Modra <amodra@bigpond.net.au>
2160
2161 * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
2162 to call ffi_closure_helper_SYSV. Append @local instead.
2163 * src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
2164
a21946f5 21652005-05-17 Kelley Cook <kcook@gcc.gnu.org>
a097ef55
KC
2166
2167 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
2168 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
2169 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
2170 * aclocal.m4, configure, fficonfig.h.in, Makefile.in,
2171 include/Makefile.in, testsuite/Makefile.in: Regenerate.
302486f4 2172
f4c767fd
MS
21732005-05-09 Mike Stump <mrs@apple.com>
2174
2175 * configure: Regenerate.
2176
7e15b5fe
RH
21772005-05-08 Richard Henderson <rth@redhat.com>
2178
2179 PR libffi/21285
2180 * src/alpha/osf.S: Update unwind into to match code.
2181
d56ea8d9
RH
21822005-05-04 Andreas Degert <ad@papyrus-gmbh.de>
2183 Richard Henderson <rth@redhat.com>
2184
2185 * src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
2186 bit 11 of flags.
2187 (ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
2188 (ffi_prep_closure): Set carry bit if sse-used flag set.
2189 * src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
2190 Only load sse registers if ssecount non-zero.
2191 (ffi_closure_unix64): Only save sse registers if carry set on entry.
2192
21932005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
d948c201
RC
2194
2195 * configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
2196 powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
2197 * configure: Regenerate.
2198
fc0ad8d9
HPN
21992005-04-20 Hans-Peter Nilsson <hp@axis.com>
2200
2201 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
2202 have Tcl8.3-compatible intermediate variable.
2203
302486f4 22042005-04-18 Simon Posnjak <simon.posnjak@siol.net>
614348bb
SP
2205 Hans-Peter Nilsson <hp@axis.com>
2206
2207 * Makefile.am: Add CRIS support.
2208 * configure.ac: Likewise.
29ede6db
HPN
2209 * Makefile.in, configure, testsuite/Makefile.in,
2210 include/Makefile.in: Regenerate.
614348bb
SP
2211 * src/cris: New directory.
2212 * src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
2213 * src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
727e729b
HPN
2214
2215 * testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
2216 \r?\n in output tests.
2217
6dab073b
MS
22182005-04-12 Mike Stump <mrs@apple.com>
2219
2220 * configure: Regenerate.
2221
51f55d7c
HB
22222005-03-30 Hans Boehm <Hans.Boehm@hp.com>
2223
2224 * src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
302486f4 2225
7efa52a3
SE
22262005-03-30 Steve Ellcey <sje@cup.hp.com>
2227
2228 * src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
2229 (ffi_sarg) Ditto.
2230 * src/ia64/unix.S (ffi_closure_unix): Extend gp
2231 to 64 bits in ILP32 mode.
2232 Load 64 bits even for short data.
2233
1488177a
MS
22342005-03-23 Mike Stump <mrs@apple.com>
2235
2236 * src/powerpc/darwin.S: Update for -m64 multilib.
2237 * src/powerpc/darwin_closure.S: Likewise.
2238
c6900272
ZW
22392005-03-21 Zack Weinberg <zack@codesourcery.com>
2240
2241 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2242 Do not set tool_include_dir.
2243 * aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
2244 Regenerate.
2245 * include/Makefile.am: Set gcc_version and toollibffidir.
2246 * include/Makefile.in: Regenerate.
2247
962eea0a
AH
22482005-02-22 Andrew Haley <aph@redhat.com>
2249
2250 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
2251 odd-numbered register pairs for 64-bit integer types.
2252
1b05e8bf
AT
22532005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
2254
2255 PR libffi/20104
2256 * testsuite/libffi.call/return_ll1.c: New test case.
2257
6027770b
JJ
22582005-02-11 Janis Johnson <janis187@us.ibm.com>
2259
2260 * testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
2261 * testsuite/libffi.call/float.c: Ditto.
2262 * testsuite/libffi.call/float2.c: Ditto.
2263 * testsuite/libffi.call/float3.c: Ditto.
2264
ee31ea68
AT
22652005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
2266
2267 * src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
2268
c16be7d5
EB
22692005-01-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2270
2271 * testsuite/libffi.special/special.exp (cxx_options): Add
2272 -shared-libgcc.
2273
5df07255
RH
22742004-12-31 Richard Henderson <rth@redhat.com>
2275
2276 * src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
2277 (FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
2278 offset parameters with a type parameter; deduce size and structure
2279 alignment. Update all users.
2280
81a69b13
RH
22812004-12-31 Richard Henderson <rth@redhat.com>
2282
2283 * src/types.c (FFI_TYPE_POINTER): Define with sizeof.
2284 (FFI_TYPE_LONGDOUBLE): Fix for ia64.
c6900272 2285 * src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
81a69b13
RH
2286 into ffi_prep_closure.
2287 * src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
2288 from scratch.
2289
d833cfb0
RH
22902004-12-27 Richard Henderson <rth@redhat.com>
2291
2292 * src/x86/unix64.S: Fix typo in unwind info.
2293
1a0f488c
RH
22942004-12-25 Richard Henderson <rth@redhat.com>
2295
2296 * src/x86/ffi64.c (struct register_args): Rename from stackLayout.
2297 (enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
2298 (merge_classes): Check for it.
2299 (SSE_CLASS_P): New.
2300 (classify_argument): Pass byte_offset by value; perform all updates
2301 inside struct case.
2302 (examine_argument): Add classes argument; handle
2303 X86_64_COMPLEX_X87_CLASS.
2304 (ffi_prep_args): Merge into ...
2305 (ffi_call): ... here. Share stack frame with ffi_call_unix64.
2306 (ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
2307 (ffi_fill_return_value): Remove.
2308 (ffi_prep_closure): Remove dead assert.
2309 (ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
2310 Rewrite to use struct register_args instead of va_list. Create
2311 flags for handling structure returns.
2312 * src/x86/unix64.S: Remove dead strings.
2313 (ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
2314 stack frame with ffi_call. Handle structure returns properly.
2315 (float2sse, floatfloat2sse, double2sse): Remove.
2316 (sse2float, sse2double, sse2floatfloat): Remove.
2317 (ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
2318 to handle structure returns properly.
2319
7994d50c
DE
23202004-12-08 David Edelsohn <edelsohn@gnu.org>
2321
2322 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
2323 PICFLAG.
2324 * Makefile.in: Regenerated.
2325
afabd8e6
RS
23262004-12-02 Richard Sandiford <rsandifo@redhat.com>
2327
2328 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2329 * configure, aclocal.m4, Makefile.in: Regenerate.
2330 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
2331
2539bffe
KC
23322004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2333
2334 * configure: Regenerate for libtool change.
2335
767f726e
KC
23362004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2337
2338 * configure: Regenerate for libtool reversion.
2339
2c92e90f
KC
23402004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2341
2342 * configure: Regenerate for libtool change.
2343
1df8e834
JDA
23442004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2345
2346 * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
2347
23482004-11-23 Richard Sandiford <rsandifo@redhat.com>
2349
2350 * src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
2351 of jal. Use an absolute encoding for the frame information.
2352
23532004-11-23 Kelley Cook <kcook@gcc.gnu.org>
2354
2355 * Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
2356 * acinclude.m4: Delete logic for sincludes.
2357 * aclocal.m4, Makefile.in, configure: Regenerate.
2358 * include/Makefile: Likewise.
2359 * testsuite/Makefile: Likewise.
2360
bf02e7fa
EB
23612004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2362
2363 * src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
2364 on a 8-byte boundary.
2365 * src/sparc/v8.S (ffi_closure_v8): Reserve frame space for arguments.
2366
f20459f1
RE
23672004-10-27 Richard Earnshaw <rearnsha@arm.com>
2368
2369 * src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
2370 long long values. Round stack allocation to a multiple of 8 bytes
2371 for ATPCS compatibility.
2372 * src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
2373 names. Handle returning long long types. Add Thumb and interworking
2374 support. Improve soft-float code.
2375
fdc69597
RE
23762004-10-27 Richard Earnshaw <rearnsha@arm.com>
2377
2378 * testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
2379 (libffi_exit): New function.
2380 (libffi_init): Build the testglue wrapper if needed.
2381
1e02510f
EB
23822004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2383
2384 PR other/18138
2385 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc.
2386
d9a193b2
KI
23872004-10-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2388
2389 * src/m32r/libffitarget.h (FFI_CLOSURES): Set to 0.
2390
1fddb058
KK
23912004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
2392
2393 * src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
2394 * testsuite/libffi.call/float3.c: New test case.
2395
e0d3b452
KK
23962004-10-18 Kaz Kojima <kkojima@gcc.gnu.org>
2397
2398 * src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
2399 the function returning a structure pointed with R2.
2400 * src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
2401 the structure return value if T bit set. Emit position
2402 independent code and EH data if PIC.
2403
a472e9d4
KI
24042004-10-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2405
2406 * Makefile.am: Add m32r support.
2407 * configure.ac: Likewise.
2408 * Makefile.in: Regenerate.
2409 * confiugre: Regenerate.
2410 * src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
2411 (uint64, sint64, double, longdouble)
2412 * src/m32r: New directory.
2413 * src/m32r/ffi.c: New file.
2414 * src/m32r/sysv.S: Likewise.
2415 * src/m32r/ffitarget.h: Likewise.
2416
3d47e9ca
KK
24172004-10-02 Kaz Kojima <kkojima@gcc.gnu.org>
2418
2419 * testsuite/libffi.call/negint.c: New test case.
2420
fc9051dd
L
24212004-09-14 H.J. Lu <hongjiu.lu@intel.com>
2422
2423 PR libgcj/17465
2424 * testsuite/lib/libffi-dg.exp: Don't use global ld_library_path.
2425 Set up LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
2426 LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
2427 DYLD_LIBRARY_PATH.
2428
2010caea
AT
24292004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2430
2431 * testsuite/libffi.call/many_win32.c: Remove whitespaces.
2432 * testsuite/libffi.call/promotion.c: Likewise.
2433 * testsuite/libffi.call/return_ll.c: Remove unused var. Cleanup
2434 whitespaces.
2435 * testsuite/libffi.call/return_sc.c: Likewise.
2436 * testsuite/libffi.call/return_uc.c: Likewise.
2437
894be816
AT
24382004-09-05 Andreas Tobler <a.tobler@schweiz.ch>
2439
2440 * src/powerpc/darwin.S: Fix comments and identation.
2441 * src/powerpc/darwin_closure.S: Likewise.
2442
2fe7404a
AT
24432004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2444
2445 * src/powerpc/ffi_darwin.c: Add flag for longdouble return values.
2446 (ffi_prep_args): Handle longdouble arguments.
2447 (ffi_prep_cif_machdep): Set flags for longdouble. Calculate space for
2448 longdouble.
2449 (ffi_closure_helper_DARWIN): Add closure handling for longdouble.
2450 * src/powerpc/darwin.S (_ffi_call_DARWIN): Add handling of longdouble
2451 values.
2452 * src/powerpc/darwin_closure.S (_ffi_closure_ASM): Likewise.
2453 * src/types.c: Defined longdouble size and alignment for darwin.
2454
16070e45
AT
24552004-09-02 Andreas Tobler <a.tobler@schweiz.ch>
2456
2457 * src/powerpc/aix.S: Remove whitespaces.
2458 * src/powerpc/aix_closure.S: Likewise.
2459 * src/powerpc/asm.h: Likewise.
2460 * src/powerpc/ffi.c: Likewise.
2461 * src/powerpc/ffitarget.h: Likewise.
2462 * src/powerpc/linux64.S: Likewise.
2463 * src/powerpc/linux64_closure.S: Likewise.
2464 * src/powerpc/ppc_closure.S: Likewise.
2465 * src/powerpc/sysv.S: Likewise.
2466
88d8c771
AG
24672004-08-30 Anthony Green <green@redhat.com>
2468
2469 * Makefile.am: Add frv support.
2470 * Makefile.in, testsuite/Makefile.in: Rebuilt.
2471 * configure.ac: Read configure.host.
2472 * configure.in: Read configure.host.
2473 * configure.host: New file. frv-elf needs libgloss.
2474 * include/ffi.h.in: Force ffi_closure to have a nice big (8)
a23adb4d 2475 alignment. This is needed to frv and shouldn't harm the others.
88d8c771
AG
2476 * include/ffi_common.h (ALIGN_DOWN): New macro.
2477 * src/frv/ffi.c, src/frv/ffitarget.h, src/frv/eabi.S: New files.
2478
4c5f37d5
DD
24792004-08-24 David Daney <daney@avtrex.com>
2480
2481 * testsuite/libffi.call/closure_fn0.c: Xfail mips64* instead of mips*.
2482 * testsuite/libffi.call/closure_fn1.c: Likewise.
2483 * testsuite/libffi.call/closure_fn2.c Likewise.
2484 * testsuite/libffi.call/closure_fn3.c: Likewise.
2485 * testsuite/libffi.call/closure_fn4.c: Likewise.
2486 * testsuite/libffi.call/closure_fn5.c: Likewise.
2487 * testsuite/libffi.call/cls_18byte.c: Likewise.
2488 * testsuite/libffi.call/cls_19byte.c: Likewise.
2489 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2490 * testsuite/libffi.call/cls_20byte.c: Likewise.
2491 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2492 * testsuite/libffi.call/cls_24byte.c: Likewise.
2493 * testsuite/libffi.call/cls_2byte.c: Likewise.
2494 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2495 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2496 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2497 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2498 * testsuite/libffi.call/cls_4byte.c: Likewise.
2499 * testsuite/libffi.call/cls_64byte.c: Likewise.
2500 * testsuite/libffi.call/cls_6byte.c: Likewise.
2501 * testsuite/libffi.call/cls_7byte.c: Likewise.
2502 * testsuite/libffi.call/cls_8byte.c: Likewise.
2503 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2504 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2505 * testsuite/libffi.call/cls_align_double.c: Likewise.
2506 * testsuite/libffi.call/cls_align_float.c: Likewise.
2507 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2508 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2509 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2510 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2511 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2512 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2513 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2514 * testsuite/libffi.call/cls_align_uint64.c: Likewise.
2515 * testsuite/libffi.call/cls_double.c: Likewise.
2516 * testsuite/libffi.call/cls_float.c: Likewise.
2517 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2518 * testsuite/libffi.call/cls_multi_sshort.c: Likewise.
2519 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2520 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2521 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2522 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2523 * testsuite/libffi.call/cls_schar.c: Likewise.
2524 * testsuite/libffi.call/cls_sint.c: Likewise.
2525 * testsuite/libffi.call/cls_sshort.c: Likewise.
2526 * testsuite/libffi.call/cls_uchar.c: Likewise.
2527 * testsuite/libffi.call/cls_uint.c: Likewise.
2528 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2529 * testsuite/libffi.call/cls_ushort.c: Likewise.
2530 * testsuite/libffi.call/nested_struct.c: Likewise.
2531 * testsuite/libffi.call/nested_struct1.c: Likewise.
2532 * testsuite/libffi.call/nested_struct2.c: Likewise.
2533 * testsuite/libffi.call/nested_struct3.c: Likewise.
2534 * testsuite/libffi.call/problem1.c: Likewise.
2535 * testsuite/libffi.special/unwindtest.cc: Likewise.
2536 * testsuite/libffi.call/cls_12byte.c: Likewise and set return value
2537 to zero.
2538 * testsuite/libffi.call/cls_16byte.c: Likewise.
2539 * testsuite/libffi.call/cls_5byte.c: Likewise.
2540
39dca114
DD
25412004-08-23 David Daney <daney@avtrex.com>
2542
2543 PR libgcj/13141
2544 * src/mips/ffitarget.h (FFI_O32_SOFT_FLOAT): New ABI.
2545 * src/mips/ffi.c (ffi_prep_args): Fix alignment calculation.
2546 (ffi_prep_cif_machdep): Handle FFI_O32_SOFT_FLOAT floating point
2547 parameters and return types.
2548 (ffi_call): Handle FFI_O32_SOFT_FLOAT ABI.
2549 (ffi_prep_closure): Ditto.
2550 (ffi_closure_mips_inner_O32): Handle FFI_O32_SOFT_FLOAT ABI, fix
2551 alignment calculations.
2552 * src/mips/o32.S (ffi_closure_O32): Don't use floating point
2553 instructions if FFI_O32_SOFT_FLOAT, make stack frame ABI compliant.
2554
b790003a
CM
25552004-08-14 Casey Marshall <csm@gnu.org>
2556
2557 * src/mips/ffi.c (ffi_pref_cif_machdep): set `cif->flags' to
2558 contain `FFI_TYPE_UINT64' as return type for any 64-bit
2559 integer (O32 ABI only).
2560 (ffi_prep_closure): new function.
2561 (ffi_closure_mips_inner_O32): new function.
c6900272 2562 * src/mips/ffitarget.h: Define `FFI_CLOSURES' and
b790003a
CM
2563 `FFI_TRAMPOLINE_SIZE' appropriately if the ABI is o32.
2564 * src/mips/o32.S (ffi_call_O32): add labels for .eh_frame. Return
2565 64 bit integers correctly.
2566 (ffi_closure_O32): new function.
2567 Added DWARF-2 unwind info for both functions.
2568
547d71a1
AH
25692004-08-10 Andrew Haley <aph@redhat.com>
2570
2571 * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
2572
98a5bb3b
RM
25732004-08-01 Robert Millan <robertmh@gnu.org>
2574
2575 * configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
2576 * configure: Regenerate.
2577
4d447364
MR
25782004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
2579
2580 * acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
2581 and mmap() explicitly instead of relying on preset autoconf cache
2582 variables.
2583 * aclocal.m4: Regenerate.
2584 * configure: Regenerate.
2585
e5dce82f
UW
25862004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
2587
2588 * src/s390/ffi.c (ffi_prep_args): Fix C aliasing violation.
2589 (ffi_check_float_struct): Remove unused prototype.
2590
e6a0022b
GK
25912004-06-30 Geoffrey Keating <geoffk@apple.com>
2592
2593 * src/powerpc/ffi_darwin.c (flush_icache): ';' is a comment
2594 character on Darwin, use '\n\t' instead.
2595
5a2d52ca
MK
25962004-06-26 Matthias Klose <doko@debian.org>
2597
2598 * libtool-version: Fix typo in revision/age.
2599
401844ef
MK
26002004-06-17 Matthias Klose <doko@debian.org>
2601
2602 * libtool-version: New.
2603 * Makefile.am (libffi_la_LDFLAGS): Use -version-info for soname.
2604 * Makefile.in: Regenerate.
2605
94632047 26062004-06-15 Paolo Bonzini <bonzini@gnu.org>
076e5443
PB
2607
2608 * Makefile.am: Remove useless multilib rules.
2609 * Makefile.in: Regenerate.
2610 * aclocal.m4: Regenerate with automake 1.8.5.
2611 * configure.ac: Remove useless multilib configury.
2612 * configure: Regenerate.
2613
94632047 26142004-06-15 Paolo Bonzini <bonzini@gnu.org>
9ac926b1
PB
2615
2616 * .cvsignore: New file.
2617
37c849e4
JJ
26182004-06-10 Jakub Jelinek <jakub@redhat.com>
2619
2620 * src/ia64/unix.S (ffi_call_unix): Insert group barrier break
2621 fp_done.
2622 (ffi_closure_UNIX): Fix f14/f15 adjustment if FLOAT_SZ is ever
2623 changed from 8.
2624
cb623172
SM
26252004-06-06 Sean McNeil <sean@mcneil.com>
2626
2627 * configure.ac: Add x86_64-*-freebsd* support.
2628 * configure: Regenerate.
2629
c9b93377
JB
26302004-04-26 Joe Buck <jbuck@welsh-buck.org>
2631
2632 Bug 15093
2633 * configure.ac: Test for existence of mmap and sys/mman.h before
2634 checking blacklist. Fix suggested by Jim Wilson.
2635 * configure: Regenerate.
2636
cf90fd1b
MA
26372004-04-26 Matt Austern <austern@apple.com>
2638
2639 * src/powerpc/darwin.S: Go through a non-lazy pointer for initial
2640 FDE location.
2641 * src/powerpc/darwin_closure.S: Likewise.
c6900272 2642
67781b44
AT
26432004-04-24 Andreas Tobler <a.tobler@schweiz.ch>
2644
2645 * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization
2646 error. Reported by Thomas Heller <theller@python.net>.
2647 * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise.
2648 * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise.
2649
14b078a8
MK
26502004-03-20 Matthias Klose <doko@debian.org>
2651
2652 * src/pa/linux.S: Fix typo.
2653
d65a810f
MK
26542004-03-19 Matthias Klose <doko@debian.org>
2655
67781b44 2656 * Makefile.am: Update.
d65a810f
MK
2657 * Makefile.in: Regenerate.
2658 * src/pa/ffi.h.in: Remove.
2659 * src/pa/ffitarget.h: New file.
2660
26612004-02-10 Randolph Chung <tausq@debian.org>
2662
2663 * Makefile.am: Add PA support.
2664 * Makefile.in: Regenerate.
2665 * include/Makefile.in: Regenerate.
2666 * configure.ac: Add PA target.
2667 * configure: Regenerate.
2668 * src/pa/ffi.c: New file.
2669 * src/pa/ffi.h.in: Add PA support.
2670 * src/pa/linux.S: New file.
2671 * prep_cif.c: Add PA support.
2672
09cababc
HY
26732004-03-16 Hosaka Yuji <hos@tamanegi.org>
2674
2675 * src/types.c: Fix alignment size of X86_WIN32 case int64 and
2676 double.
2677 * src/x86/ffi.c (ffi_prep_args): Replace ecif->cif->rtype->type
2678 with ecif->cif->flags.
2679 (ffi_call, ffi_prep_incoming_args_SYSV): Replace cif->rtype->type
2680 with cif->flags.
2681 (ffi_prep_cif_machdep): Add X86_WIN32 struct case.
2682 (ffi_closure_SYSV): Add 1 or 2-bytes struct case for X86_WIN32.
2683 * src/x86/win32.S (retstruct1b, retstruct2b, sc_retstruct1b,
2684 sc_retstruct2b): Add for 1 or 2-bytes struct case.
2685
0e8d0c5f
KC
26862004-03-15 Kelley Cook <kcook@gcc.gnu.org>
2687
2688 * configure.in: Rename file to ...
2689 * configure.ac: ... this.
2690 * fficonfig.h.in: Regenerate.
2691 * Makefile.in: Regenerate.
2692 * include/Makefile.in: Regenerate.
2693 * testsuite/Makefile.in: Regenerate.
2694
b8d50739
MA
26952004-03-12 Matt Austern <austern@apple.com>
2696
2697 * src/powerpc/darwin.S: Fix EH information so it corresponds to
2698 changes in EH format resulting from addition of linkonce support.
2699 * src/powerpc/darwin_closure.S: Likewise.
09cababc 2700
3ed8e5b6
AT
27012004-03-11 Andreas Tobler <a.tobler@schweiz.ch>
2702 Paolo Bonzini <bonzini@gnu.org>
2703
2704 * Makefile.am (AUTOMAKE_OPTIONS): Set them.
2705 Remove VPATH. Remove rules for object files. Remove multilib support.
2706 (AM_CCASFLAGS): Add.
2707 * configure.in (AC_CONFIG_HEADERS): Relace AM_CONFIG_HEADER.
2708 (AC_PREREQ): Bump version to 2.59.
2709 (AC_INIT): Fill with version info and bug address.
2710 (ORIGINAL_LD_FOR_MULTILIBS): Remove.
2711 (AM_ENABLE_MULTILIB): Use this instead of AC_ARG_ENABLE.
2712 De-precious CC so that the right flags are passed down to multilibs.
2713 (AC_MSG_ERROR): Replace obsolete macro AC_ERROR.
2714 (AC_CONFIG_FILES): Replace obsolete macro AC_LINK_FILES.
2715 (AC_OUTPUT): Reorganize the output with AC_CONFIG_COMMANDS.
2716 * configure: Rebuilt.
2717 * aclocal.m4: Likewise.
2718 * Makefile.in, include/Makefile.in, testsuite/Makefile.in: Likewise.
2719 * fficonfig.h.in: Likewise.
2720
254ea477
AS
27212004-03-11 Andreas Schwab <schwab@suse.de>
2722
2723 * src/ia64/ffi.c (ffi_prep_incoming_args_UNIX): Get floating point
2724 arguments from fp registers only for the first 8 parameter slots.
2725 Don't convert a float parameter when passed in memory.
2726
3beb1315
HPN
27272004-03-09 Hans-Peter Nilsson <hp@axis.com>
2728
2729 * configure: Regenerate for config/accross.m4 correction.
2730
fecf735c
MK
27312004-02-25 Matt Kraai <kraai@alumni.cmu.edu>
2732
2733 * src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
2734 ecif->cif->bytes to bytes.
2735 (ffi_prep_cif_machdep): Add braces around nested if statement.
2736
4243752c
AM
27372004-02-09 Alan Modra <amodra@bigpond.net.au>
2738
12001e0f
AM
2739 * src/types.c (pointer): POWERPC64 has 8 byte pointers.
2740
4243752c
AM
2741 * src/powerpc/ffi.c (ffi_prep_args64): Correct long double handling.
2742 (ffi_closure_helper_LINUX64): Fix typo.
2743 * testsuite/libffi.call/cls_align_longdouble.c: Pass -mlong-double-128
2744 for powerpc64-*-*.
2745 * testsuite/libffi.call/float.c: Likewise.
2746 * testsuite/libffi.call/float2.c: Likewise.
2747
bf310028
AM
27482004-02-08 Alan Modra <amodra@bigpond.net.au>
2749
2750 * src/powerpc/ffi.c (ffi_prep_cif_machdep <FFI_LINUX64>): Correct
2751 long double function return and long double arg handling.
2752 (ffi_closure_helper_LINUX64): Formatting. Delete unused "ng" var.
2753 Use "end_pfr" instead of "nf". Correct long double handling.
2754 Localise "temp".
2755 * src/powerpc/linux64.S (ffi_call_LINUX64): Save f2 long double
2756 return value.
2757 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Allocate
2758 space for long double return value. Adjust stack frame and offsets.
2759 Load f2 long double return.
2760
dd5f9ea2
AM
27612004-02-07 Alan Modra <amodra@bigpond.net.au>
2762
2763 * src/types.c: Use 16 byte long double for POWERPC64.
2764
0ce78f01
EB
27652004-01-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2766
2767 * src/sparc/ffi.c (ffi_prep_args_v9): Shift the parameter array
2768 when the structure return address is passed in %o0.
2769 (ffi_V9_return_struct): Rename into ffi_v9_layout_struct.
2770 (ffi_v9_layout_struct): Align the field following a nested structure
2771 on a word boundary. Use memmove instead of memcpy.
2772 (ffi_call): Update call to ffi_V9_return_struct.
2773 (ffi_prep_closure): Define 'ctx' only for V8.
2774 (ffi_closure_sparc_inner): Clone into ffi_closure_sparc_inner_v8
2775 and ffi_closure_sparc_inner_v9.
2776 (ffi_closure_sparc_inner_v8): Return long doubles by reference.
2777 Always skip the structure return address. For structures and long
2778 doubles, copy the argument directly.
2779 (ffi_closure_sparc_inner_v9): Skip the structure return address only
2780 if required. Shift the maximum floating-point slot accordingly. For
2781 big structures, copy the argument directly; otherwise, left-justify the
2782 argument and call ffi_v9_layout_struct to lay out the structure on
2783 the stack.
2784 * src/sparc/v8.S: Undef STACKFRAME before defining it.
2785 (ffi_closure_v8): Pass the structure return address. Update call to
2786 ffi_closure_sparc_inner_v8. Short-circuit FFI_TYPE_INT handling.
2787 Skip the 'unimp' insn when returning long doubles and structures.
2788 * src/sparc/v9.S: Undef STACKFRAME before defining it.
2789 (ffi_closure_v9): Increase the frame size by 2 words. Short-circuit
2790 FFI_TYPE_INT handling. Load structures both in integers and
2791 floating-point registers on return.
2792 * README: Update status of the SPARC port.
2793
7fcc1d9b
AT
27942004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
2795
2796 * testsuite/libffi.call/pyobjc-tc.c (main): Treat result value
2797 as of type ffi_arg.
2798 * testsuite/libffi.call/struct3.c (main): Fix CHECK.
2799
6ed0ecaf
UW
28002004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
2801
2802 * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
2803 value as of type ffi_arg, not unsigned int.
2804
c930d8a5
MR
28052004-01-21 Michael Ritzert <ritzert@t-online.de>
2806
2807 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
2808 of the LHS.
2809
7b2e3e60
AT
28102004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2811
2812 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
2813 Solaris.
2814
2e89756b
RO
28152004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2816
2817 * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
2818 to void *.
2819
628b26f8
RH
28202003-12-10 Richard Henderson <rth@redhat.com>
2821
2822 * testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
2823 size_t instead of int.
2824
0ee646d6
HY
28252003-12-04 Hosaka Yuji <hos@tamanegi.org>
2826
2827 * testsuite/libffi.call/many_win32.c: Include <float.h>.
2828 * testsuite/libffi.call/many_win32.c (main): Replace variable
2829 int i with unsigned long ul.
2830
2831 * testsuite/libffi.call/cls_align_uint64.c: New test case.
2832 * testsuite/libffi.call/cls_align_sint64.c: Likewise.
2833 * testsuite/libffi.call/cls_align_uint32.c: Likewise.
2834 * testsuite/libffi.call/cls_align_sint32.c: Likewise.
2835 * testsuite/libffi.call/cls_align_uint16.c: Likewise.
2836 * testsuite/libffi.call/cls_align_sint16.c: Likewise.
2837 * testsuite/libffi.call/cls_align_float.c: Likewise.
2838 * testsuite/libffi.call/cls_align_double.c: Likewise.
2839 * testsuite/libffi.call/cls_align_longdouble.c: Likewise.
2840 * testsuite/libffi.call/cls_align_pointer.c: Likewise.
2841
2c4ed456
HY
28422003-12-02 Hosaka Yuji <hos@tamanegi.org>
2843
2844 PR other/13221
2845 * src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
2846 Align arguments to 32 bits.
2847
d18c3386
AT
28482003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
2849
2850 PR other/13221
2851 * testsuite/libffi.call/cls_multi_sshort.c: New test case.
2852 * testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
2853 * testsuite/libffi.call/cls_multi_uchar.c: Likewise.
2854 * testsuite/libffi.call/cls_multi_schar.c: Likewise.
2855 * testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
2856 * testsuite/libffi.call/cls_multi_ushort.c: Likewise.
2857
2858 * testsuite/libffi.special/unwindtest.cc: Cosmetics.
2859
88096b2a
KG
28602003-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2861
2862 * testsuite/libffi.call/ffitest.h: Include <fcntl.h>.
2863 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2864
3eee102e
AT
28652003-11-22 Andreas Tobler <a.tobler@schweiz.ch>
2866
2867 * Makefile.in: Rebuilt.
2868 * configure: Likewise.
2869 * testsuite/libffi.special/unwindtest.cc: Convert the mmap to
2870 the right type.
2871
5196736e
AJ
28722003-11-21 Andreas Jaeger <aj@suse.de>
2873 Andreas Tobler <a.tobler@schweiz.ch>
2874
2875 * acinclude.m4: Add AC_FUNC_MMAP_BLACKLIST.
2876 * configure.in: Call AC_FUNC_MMAP_BLACKLIST.
2877 * Makefile.in: Rebuilt.
2878 * aclocal.m4: Likewise.
2879 * configure: Likewise.
2880 * fficonfig.h.in: Likewise.
2881 * testsuite/lib/libffi-dg.exp: Add include dir.
2882 * testsuite/libffi.call/ffitest.h: Add MMAP definitions.
2883 * testsuite/libffi.special/ffitestcxx.h: Likewise.
2884 * testsuite/libffi.call/closure_fn0.c: Use MMAP functionality
2885 for ffi_closure if available.
2886 * testsuite/libffi.call/closure_fn1.c: Likewise.
2887 * testsuite/libffi.call/closure_fn2.c: Likewise.
2888 * testsuite/libffi.call/closure_fn3.c: Likewise.
2889 * testsuite/libffi.call/closure_fn4.c: Likewise.
2890 * testsuite/libffi.call/closure_fn5.c: Likewise.
2891 * testsuite/libffi.call/cls_12byte.c: Likewise.
2892 * testsuite/libffi.call/cls_16byte.c: Likewise.
2893 * testsuite/libffi.call/cls_18byte.c: Likewise.
2894 * testsuite/libffi.call/cls_19byte.c: Likewise.
2895 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2896 * testsuite/libffi.call/cls_20byte.c: Likewise.
2897 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2898 * testsuite/libffi.call/cls_24byte.c: Likewise.
2899 * testsuite/libffi.call/cls_2byte.c: Likewise.
2900 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2901 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2902 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2903 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2904 * testsuite/libffi.call/cls_4byte.c: Likewise.
2905 * testsuite/libffi.call/cls_5byte.c: Likewise.
2906 * testsuite/libffi.call/cls_64byte.c: Likewise.
2907 * testsuite/libffi.call/cls_6byte.c: Likewise.
2908 * testsuite/libffi.call/cls_7byte.c: Likewise.
2909 * testsuite/libffi.call/cls_8byte.c: Likewise.
2910 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2911 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2912 * testsuite/libffi.call/cls_double.c: Likewise.
2913 * testsuite/libffi.call/cls_float.c: Likewise.
2914 * testsuite/libffi.call/cls_schar.c: Likewise.
2915 * testsuite/libffi.call/cls_sint.c: Likewise.
2916 * testsuite/libffi.call/cls_sshort.c: Likewise.
2917 * testsuite/libffi.call/cls_uchar.c: Likewise.
2918 * testsuite/libffi.call/cls_uint.c: Likewise.
2919 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2920 * testsuite/libffi.call/cls_ushort.c: Likewise.
2921 * testsuite/libffi.call/nested_struct.c: Likewise.
2922 * testsuite/libffi.call/nested_struct1.c: Likewise.
2923 * testsuite/libffi.call/nested_struct2.c: Likewise.
2924 * testsuite/libffi.call/nested_struct3.c: Likewise.
2925 * testsuite/libffi.call/problem1.c: Likewise.
2926 * testsuite/libffi.special/unwindtest.cc: Likewise.
2927
9e6c3ecb
AT
29282003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
2929
2930 * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
2931
70d8f2a1
AT
29322003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2933
2934 * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
2935 Add -lgcc_s to additional flags.
2936
ea81d2a3
AT
29372003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
2938
2939 * configure.in, include/Makefile.am: PR libgcj/11147, install
2940 the ffitarget.h header file in a gcc versioned and target
2941 dependent place.
2942 * configure: Regenerated.
2943 * Makefile.in, include/Makefile.in: Likewise.
2944 * testsuite/Makefile.in: Likewise.
2945
647af4a9
AT
29462003-11-09 Andreas Tobler <a.tobler@schweiz.ch>
2947
2948 * testsuite/libffi.call/closure_fn0.c: Print result and check
2949 with dg-output to make debugging easier.
2950 * testsuite/libffi.call/closure_fn1.c: Likewise.
2951 * testsuite/libffi.call/closure_fn2.c: Likewise.
2952 * testsuite/libffi.call/closure_fn3.c: Likewise.
2953 * testsuite/libffi.call/closure_fn4.c: Likewise.
2954 * testsuite/libffi.call/closure_fn5.c: Likewise.
2955 * testsuite/libffi.call/cls_12byte.c: Likewise.
2956 * testsuite/libffi.call/cls_16byte.c: Likewise.
2957 * testsuite/libffi.call/cls_18byte.c: Likewise.
2958 * testsuite/libffi.call/cls_19byte.c: Likewise.
2959 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
2960 * testsuite/libffi.call/cls_20byte.c: Likewise.
2961 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2962 * testsuite/libffi.call/cls_24byte.c: Likewise.
2963 * testsuite/libffi.call/cls_2byte.c: Likewise.
2964 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
2965 * testsuite/libffi.call/cls_3byte1.c: Likewise.
2966 * testsuite/libffi.call/cls_3byte2.c: Likewise.
2967 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
2968 * testsuite/libffi.call/cls_4byte.c: Likewise.
2969 * testsuite/libffi.call/cls_5byte.c: Likewise.
2970 * testsuite/libffi.call/cls_64byte.c: Likewise.
2971 * testsuite/libffi.call/cls_6byte.c: Likewise.
2972 * testsuite/libffi.call/cls_7byte.c: Likewise.
2973 * testsuite/libffi.call/cls_8byte.c: Likewise.
2974 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2975 * testsuite/libffi.call/cls_9byte2.c: Likewise.
2976 * testsuite/libffi.call/cls_double.c: Likewise.
2977 * testsuite/libffi.call/cls_float.c: Likewise.
2978 * testsuite/libffi.call/cls_schar.c: Likewise.
2979 * testsuite/libffi.call/cls_sint.c: Likewise.
2980 * testsuite/libffi.call/cls_sshort.c: Likewise.
2981 * testsuite/libffi.call/cls_uchar.c: Likewise.
2982 * testsuite/libffi.call/cls_uint.c: Likewise.
2983 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
2984 * testsuite/libffi.call/cls_ushort.c: Likewise.
2985 * testsuite/libffi.call/problem1.c: Likewise.
2986
2987 * testsuite/libffi.special/unwindtest.cc: Make ffi_closure
2988 static.
2989
ac47cc13
AT
29902003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
2991
2992 * testsuite/libffi.call/cls_9byte2.c: New test case.
2993 * testsuite/libffi.call/cls_9byte1.c: Likewise.
2994 * testsuite/libffi.call/cls_64byte.c: Likewise.
2995 * testsuite/libffi.call/cls_20byte1.c: Likewise.
2996 * testsuite/libffi.call/cls_19byte.c: Likewise.
2997 * testsuite/libffi.call/cls_18byte.c: Likewise.
2998 * testsuite/libffi.call/closure_fn4.c: Likewise.
2999 * testsuite/libffi.call/closure_fn5.c: Likewise.
3000 * testsuite/libffi.call/cls_schar.c: Likewise.
3001 * testsuite/libffi.call/cls_sint.c: Likewise.
3002 * testsuite/libffi.call/cls_sshort.c: Likewise.
3003 * testsuite/libffi.call/nested_struct2.c: Likewise.
3004 * testsuite/libffi.call/nested_struct3.c: Likewise.
3005
f145ed6b
AT
30062003-11-08 Andreas Tobler <a.tobler@schweiz.ch>
3007
3008 * testsuite/libffi.call/cls_double.c: Do a check on the result.
3009 * testsuite/libffi.call/cls_uchar.c: Likewise.
3010 * testsuite/libffi.call/cls_uint.c: Likewise.
3011 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3012 * testsuite/libffi.call/cls_ushort.c: Likewise.
3013 * testsuite/libffi.call/return_sc.c: Cleanup whitespaces.
3014
2b04d015
AT
30152003-11-06 Andreas Tobler <a.tobler@schweiz.ch>
3016
3017 * src/prep_cif.c (ffi_prep_cif): Move the validity check after
3018 the initialization.
3019
57f542b3
AT
30202003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
3021
2b04d015 3022 * src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
57f542b3
AT
3023 FFI_ASSERT(FALSE) with FFI_ASSERT(0).
3024
e61acf72
DD
30252003-10-22 David Daney <ddaney@avtrex.com>
3026
3027 * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
3028 __attribute__((__mode__(__SI__))) and friends.
3029
2461c08b
AS
30302003-10-22 Andreas Schwab <schwab@suse.de>
3031
3032 * src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
3033
1450eb7a
AT
30342003-10-21 Andreas Tobler <a.tobler@schweiz.ch>
3035
3036 * configure.in: AC_LINK_FILES(ffitarget.h).
3037 * configure: Regenerate.
3038 * Makefile.in: Likewise.
3039 * include/Makefile.in: Likewise.
3040 * testsuite/Makefile.in: Likewise.
3041 * fficonfig.h.in: Likewise.
3042
30432003-10-21 Paolo Bonzini <bonzini@gnu.org>
3044 Richard Henderson <rth@redhat.com>
3045
3046 Avoid that ffi.h includes fficonfig.h.
3047
3048 * Makefile.am (EXTRA_DIST): Include ffitarget.h files
3049 (TARGET_SRC_MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
3050 (TARGET_SRC_MIPS_SGI): Removed.
3051 (MIPS_GCC): Renamed to TARGET_SRC_MIPS_IRIX.
3052 (MIPS_SGI): Removed.
3053 (CLEANFILES): Removed.
3054 (mostlyclean-am, clean-am, mostlyclean-sub, clean-sub): New
3055 targets.
3056 * acconfig.h: Removed.
3057 * configure.in: Compute sizeofs only for double and long double.
3058 Use them to define and subst HAVE_LONG_DOUBLE. Include comments
3059 into AC_DEFINE instead of using acconfig.h. Create
3060 include/ffitarget.h instead of include/fficonfig.h. Rename
3061 MIPS_GCC to MIPS_IRIX, drop MIPS_SGI since we are in gcc's tree.
3062 AC_DEFINE EH_FRAME_FLAGS.
3063 * include/Makefile.am (DISTCLEANFILES): New automake macro.
3064 (hack_DATA): Add ffitarget.h.
3065 * include/ffi.h.in: Remove all system specific definitions.
3066 Declare raw API even if it is not installed, why bother?
3067 Use limits.h instead of SIZEOF_* to define ffi_type_*. Do
3068 not define EH_FRAME_FLAGS, it is in fficonfig.h now. Include
3069 ffitarget.h instead of fficonfig.h. Remove ALIGN macro.
3070 (UINT_ARG, INT_ARG): Removed, use ffi_arg and ffi_sarg instead.
3071 * include/ffi_common.h (bool): Do not define.
3072 (ffi_assert): Accept failed assertion.
3073 (ffi_type_test): Return void and accept file/line.
3074 (FFI_ASSERT): Pass stringized failed assertion.
3075 (FFI_ASSERT_AT): New macro.
3076 (FFI_ASSERT_VALID_TYPE): New macro.
3077 (UINT8, SINT8, UINT16, SINT16, UINT32, SINT32,
3078 UINT64, SINT64): Define here with gcc's __attribute__ macro
3079 instead of in ffi.h
3080 (FLOAT32, ALIGN): Define here instead of in ffi.h
3081 * include/ffi-mips.h: Removed. Its content moved to
3082 src/mips/ffitarget.h after separating assembly and C sections.
3083 * src/alpha/ffi.c, src/alpha/ffi.c, src/java_raw_api.c
3084 src/prep_cif.c, src/raw_api.c, src/ia64/ffi.c,
3085 src/mips/ffi.c, src/mips/n32.S, src/mips/o32.S,
3086 src/mips/ffitarget.h, src/sparc/ffi.c, src/x86/ffi64.c:
3087 SIZEOF_ARG -> FFI_SIZEOF_ARG.
3088 * src/ia64/ffi.c: Include stdbool.h (provided by GCC 2.95+).
3089 * src/debug.c (ffi_assert): Accept stringized failed assertion.
3090 (ffi_type_test): Rewritten.
3091 * src/prep-cif.c (initialize_aggregate, ffi_prep_cif): Call
3092 FFI_ASSERT_VALID_TYPE.
3093 * src/alpha/ffitarget.h, src/arm/ffitarget.h,
3094 src/ia64/ffitarget.h, src/m68k/ffitarget.h,
3095 src/mips/ffitarget.h, src/powerpc/ffitarget.h,
3096 src/s390/ffitarget.h, src/sh/ffitarget.h,
3097 src/sh64/ffitarget.h, src/sparc/ffitarget.h,
3098 src/x86/ffitarget.h: New files.
3099 * src/alpha/osf.S, src/arm/sysv.S, src/ia64/unix.S,
3100 src/m68k/sysv.S, src/mips/n32.S, src/mips/o32.S,
3101 src/powerpc/aix.S, src/powerpc/darwin.S,
3102 src/powerpc/ffi_darwin.c, src/powerpc/linux64.S,
3103 src/powerpc/linux64_closure.S, src/powerpc/ppc_closure.S,
3104 src/powerpc/sysv.S, src/s390/sysv.S, src/sh/sysv.S,
3105 src/sh64/sysv.S, src/sparc/v8.S, src/sparc/v9.S,
3106 src/x86/sysv.S, src/x86/unix64.S, src/x86/win32.S:
3107 include fficonfig.h
3108
27d54b2a
RO
31092003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3110
3111 * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external
3112 _MIPS_SIM_NABI32, _MIPS_SIM_ABI32.
3113
0df6970d
AT
31142003-10-19 Andreas Tobler <a.tobler@schweiz.ch>
3115
3116 * src/powerpc/ffi_darwin.c (ffi_prep_args): Declare bytes again.
3117 Used when FFI_DEBUG = 1.
3118
2612ffce
AM
31192003-10-14 Alan Modra <amodra@bigpond.net.au>
3120
3121 * src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
3122 and align.
3123
d54f7354
RO
31242003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3125
3126 * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
3127 FFI_MIPS_O32 for O32 ABI.
3128
7a54c850
AT
31292003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
3130
3131 * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
3132 SPARC64. Cleanup whitespaces.
3133
9e3bfa9b
AT
31342003-09-19 Andreas Tobler <a.tobler@schweiz.ch>
3135
3136 * testsuite/libffi.call/closure_fn0.c: Xfail mips, arm,
3137 strongarm, xscale. Cleanup whitespaces.
3138 * testsuite/libffi.call/closure_fn1.c: Likewise.
3139 * testsuite/libffi.call/closure_fn2.c: Likewise.
3140 * testsuite/libffi.call/closure_fn3.c: Likewise.
3141 * testsuite/libffi.call/cls_12byte.c: Likewise.
3142 * testsuite/libffi.call/cls_16byte.c: Likewise.
3143 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3144 * testsuite/libffi.call/cls_20byte.c: Likewise.
3145 * testsuite/libffi.call/cls_24byte.c: Likewise.
3146 * testsuite/libffi.call/cls_2byte.c: Likewise.
3147 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3148 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3149 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3150 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3151 * testsuite/libffi.call/cls_4byte.c: Likewise.
3152 * testsuite/libffi.call/cls_5byte.c: Likewise.
3153 * testsuite/libffi.call/cls_6byte.c: Likewise.
3154 * testsuite/libffi.call/cls_7byte.c: Likewise.
3155 * testsuite/libffi.call/cls_8byte.c: Likewise.
3156 * testsuite/libffi.call/cls_double.c: Likewise.
3157 * testsuite/libffi.call/cls_float.c: Likewise.
3158 * testsuite/libffi.call/cls_uchar.c: Likewise.
3159 * testsuite/libffi.call/cls_uint.c: Likewise.
3160 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3161 * testsuite/libffi.call/cls_ushort.c: Likewise.
3162 * testsuite/libffi.call/nested_struct.c: Likewise.
3163 * testsuite/libffi.call/nested_struct1.c: Likewise.
3164 * testsuite/libffi.call/problem1.c: Likewise.
3165 * testsuite/libffi.special/unwindtest.cc: Likewise.
3166 * testsuite/libffi.call/pyobjc-tc.c: Cleanup whitespaces.
3167
3e86b595
DE
31682003-09-18 David Edelsohn <edelsohn@gnu.org>
3169
3170 * src/powerpc/aix.S: Cleanup whitespaces.
3171 * src/powerpc/aix_closure.S: Likewise.
3172
8d8369f8
AT
31732003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3174
3175 * src/powerpc/darwin.S: Cleanup whitespaces, comment formatting.
3176 * src/powerpc/darwin_closure.S: Likewise.
3177 * src/powerpc/ffi_darwin.c: Likewise.
3178
69b182fd
AT
31792003-09-18 Andreas Tobler <a.tobler@schweiz.ch>
3180 David Edelsohn <edelsohn@gnu.org>
3181
3182 * src/types.c (double): Add AIX and Darwin to the right TYPEDEF.
3183 * src/powerpc/aix_closure.S: Remove the pointer to the outgoing
3184 parameter stack.
3185 * src/powerpc/darwin_closure.S: Likewise.
3186 * src/powerpc/ffi_darwin.c (ffi_prep_args): Handle structures
3187 according to the Darwin/AIX ABI.
3188 (ffi_prep_cif_machdep): Likewise.
3189 (ffi_closure_helper_DARWIN): Likewise.
3190 Remove the outgoing parameter stack logic. Simplify the evaluation
3191 of the different CASE types.
3192 (ffi_prep_clousure): Avoid the casts on lvalues. Change the branch
3193 statement in the trampoline code.
3194
df805cdc
KK
31952003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
3196
3197 * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
3198 for the register size.
3199 (ffi_closure_helper_SYSV): Handle the structure return value
3200 address correctly.
3201 (ffi_closure_helper_SYSV): Return the appropriate type when
3202 the registers are used for the structure return value.
3203 * src/sh/sysv.S (ffi_closure_SYSV): Fix the stack layout for
3204 the 64-bit return value. Update copyright years.
3205
eb26c76c
RO
32062003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3207
3208 * testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
3209 srcdir for ffi_mips.h.
3210
6350c02c
AM
32112003-09-12 Alan Modra <amodra@bigpond.net.au>
3212
3213 * src/prep_cif.c (initialize_aggregate): Include tail padding in
3214 structure size.
3215 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
3216 placement of float result.
3217 * testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
3218 cast of "resp" for big-endian 64 bit machines.
3219
5af1c806
AM
32202003-09-11 Alan Modra <amodra@bigpond.net.au>
3221
3222 * src/types.c (double, longdouble): Merge identical SH and ARM
3223 typedefs, and add POWERPC64.
3224 * src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
3225 struct split over gpr and rest.
3226 (ffi_prep_cif_machdep): Correct intarg_count for structures.
3227 * src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
3228
086a4bd7
AT
32292003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
3230
3231 * src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
3232 passing correctly.
c930d8a5 3233
e517f636
AM
32342003-09-09 Alan Modra <amodra@bigpond.net.au>
3235
3236 * configure: Regenerate.
3237
6f20d627
AT
32382003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3239
3240 * Makefile.am: Remove build rules for ffitest.
3241 * Makefile.in: Rebuilt.
c930d8a5 3242
6f20d627 32432003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
226660af
AT
3244
3245 * src/java_raw_api.c: Include <stdlib.h> to fix compiler warning
3246 about implicit declaration of abort().
3247
bbf3057b
AT
32482003-09-04 Andreas Tobler <a.tobler@schweiz.ch>
3249
3250 * Makefile.am: Add dejagnu test framework. Fixes PR other/11411.
3251 * Makefile.in: Rebuilt.
3252 * configure.in: Add dejagnu test framework.
3253 * configure: Rebuilt.
3254
3255 * testsuite/Makefile.am: New file.
3256 * testsuite/Makefile.in: Built
c930d8a5 3257 * testsuite/lib/libffi-dg.exp: New file.
bbf3057b
AT
3258 * testsuite/config/default.exp: Likewise.
3259 * testsuite/libffi.call/call.exp: Likewise.
3260 * testsuite/libffi.call/ffitest.h: Likewise.
3261 * testsuite/libffi.call/closure_fn0.c: Likewise.
3262 * testsuite/libffi.call/closure_fn1.c: Likewise.
3263 * testsuite/libffi.call/closure_fn2.c: Likewise.
3264 * testsuite/libffi.call/closure_fn3.c: Likewise.
3265 * testsuite/libffi.call/cls_1_1byte.c: Likewise.
3266 * testsuite/libffi.call/cls_3_1byte.c: Likewise.
3267 * testsuite/libffi.call/cls_4_1byte.c: Likewise.
3268 * testsuite/libffi.call/cls_2byte.c: Likewise.
3269 * testsuite/libffi.call/cls_3byte1.c: Likewise.
3270 * testsuite/libffi.call/cls_3byte2.c: Likewise.
3271 * testsuite/libffi.call/cls_4byte.c: Likewise.
3272 * testsuite/libffi.call/cls_5byte.c: Likewise.
3273 * testsuite/libffi.call/cls_6byte.c: Likewise.
3274 * testsuite/libffi.call/cls_7byte.c: Likewise.
3275 * testsuite/libffi.call/cls_8byte.c: Likewise.
3276 * testsuite/libffi.call/cls_12byte.c: Likewise.
3277 * testsuite/libffi.call/cls_16byte.c: Likewise.
3278 * testsuite/libffi.call/cls_20byte.c: Likewise.
3279 * testsuite/libffi.call/cls_24byte.c: Likewise.
3280 * testsuite/libffi.call/cls_double.c: Likewise.
3281 * testsuite/libffi.call/cls_float.c: Likewise.
3282 * testsuite/libffi.call/cls_uchar.c: Likewise.
3283 * testsuite/libffi.call/cls_uint.c: Likewise.
3284 * testsuite/libffi.call/cls_ulonglong.c: Likewise.
3285 * testsuite/libffi.call/cls_ushort.c: Likewise.
3286 * testsuite/libffi.call/float.c: Likewise.
3287 * testsuite/libffi.call/float1.c: Likewise.
3288 * testsuite/libffi.call/float2.c: Likewise.
3289 * testsuite/libffi.call/many.c: Likewise.
3290 * testsuite/libffi.call/many_win32.c: Likewise.
3291 * testsuite/libffi.call/nested_struct.c: Likewise.
3292 * testsuite/libffi.call/nested_struct1.c: Likewise.
3293 * testsuite/libffi.call/pyobjc-tc.c: Likewise.
3294 * testsuite/libffi.call/problem1.c: Likewise.
3295 * testsuite/libffi.call/promotion.c: Likewise.
3296 * testsuite/libffi.call/return_ll.c: Likewise.
3297 * testsuite/libffi.call/return_sc.c: Likewise.
3298 * testsuite/libffi.call/return_uc.c: Likewise.
3299 * testsuite/libffi.call/strlen.c: Likewise.
3300 * testsuite/libffi.call/strlen_win32.c: Likewise.
3301 * testsuite/libffi.call/struct1.c: Likewise.
3302 * testsuite/libffi.call/struct2.c: Likewise.
3303 * testsuite/libffi.call/struct3.c: Likewise.
3304 * testsuite/libffi.call/struct4.c: Likewise.
3305 * testsuite/libffi.call/struct5.c: Likewise.
3306 * testsuite/libffi.call/struct6.c: Likewise.
3307 * testsuite/libffi.call/struct7.c: Likewise.
3308 * testsuite/libffi.call/struct8.c: Likewise.
c930d8a5 3309 * testsuite/libffi.call/struct9.c: Likewise.
bbf3057b
AT
3310 * testsuite/libffi.special/special.exp: New file.
3311 * testsuite/libffi.special/ffitestcxx.h: Likewise.
3312 * testsuite/libffi.special/unwindtest.cc: Likewise.
3313
c930d8a5 3314
996b4f8f
KK
33152003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3316
3317 * src/sh/ffi.c (OFS_INT16): Set 0 for little endian case. Update
3318 copyright years.
3319
b00badcd
AM
33202003-08-02 Alan Modra <amodra@bigpond.net.au>
3321
3322 * src/powerpc/ffi.c (ffi_prep_args64): Modify for changed gcc
3323 structure passing.
3324 (ffi_closure_helper_LINUX64): Likewise.
3325 * src/powerpc/linux64.S: Remove code writing to parm save area.
3326 * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Use return
3327 address in lr from ffi_closure_helper_LINUX64 call to calculate
3328 table address. Optimize function tail.
3329
c1516eae
AT
33302003-07-28 Andreas Tobler <a.tobler@schweiz.ch>
3331
3332 * src/sparc/ffi.c: Handle all floating point registers.
3333 * src/sparc/v9.S: Likewise. Fixes second part of PR target/11410.
3334
fc0e6222
GP
33352003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3336
3337 * README: Note that libffi is not part of GCC. Update the project
3338 URL and status.
3339
a1569df8
FS
33402003-06-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3341
3342 * src/powerpc/ppc_closure.S: Include ffi.h.
3343
12e816bf
RO
33442003-06-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3345
3346 * src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
3347 Use C style comments.
3348
e860ed6d
KK
33492003-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3350
3351 * Makefile.am: Add SHmedia support. Fix a typo of SH support.
3352 * Makefile.in: Regenerate.
3353 * configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
3354 * configure: Regenerate.
3355 * include/ffi.h.in: Add SHmedia support.
3356 * src/sh64/ffi.c: New file.
3357 * src/sh64/sysv.S: New file.
3358
a733b15e
JJ
33592003-05-16 Jakub Jelinek <jakub@redhat.com>
3360
3361 * configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
3362 should be read-only.
3363 * configure: Rebuilt.
3364 * fficonfig.h.in: Rebuilt.
3365 * include/ffi.h.in (EH_FRAME_FLAGS): Define.
3366 * src/alpha/osf.S: Use EH_FRAME_FLAGS.
3367 * src/powerpc/linux64.S: Likewise.
3368 * src/powerpc/linux64_closure.S: Likewise. Include ffi.h.
3369 * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding
3370 if -fpic/-fPIC/-mrelocatable.
3371 * src/powerpc/powerpc_closure.S: Likewise.
3372 * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include
3373 #write in .eh_frame flags.
3374 * src/sparc/v9.S: Likewise.
3375 * src/x86/unix64.S: Use EH_FRAME_FLAGS.
3376 * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC.
3377 * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h.
3378
bd19c9f4
JS
33792003-05-07 Jeff Sturm <jsturm@one-point.com>
3380
3381 Fixes PR bootstrap/10656
3382 * configure.in (HAVE_AS_REGISTER_PSEUDO_OP): Test assembler
3383 support for .register pseudo-op.
3384 * src/sparc/v8.S: Use it.
3385 * fficonfig.h.in: Rebuilt.
3386 * configure: Rebuilt.
3387
e9b84181
JJ
33882003-04-18 Jakub Jelinek <jakub@redhat.com>
3389
3390 * include/ffi.h.in (POWERPC64): Define if 64-bit.
3391 (enum ffi_abi): Add FFI_LINUX64 on POWERPC.
3392 Make it the default on POWERPC64.
3393 (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
3394 * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
3395 * configure: Rebuilt.
3396 * src/powerpc/ffi.c (hidden): Define.
3397 (ffi_prep_args_SYSV): Renamed from
3398 ffi_prep_args. Cast pointers to unsigned long to shut up warnings.
3399 (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
3400 ASM_NEEDS_REGISTERS64): New.
3401 (ffi_prep_args64): New function.
3402 (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
3403 (ffi_call): Likewise.
3404 (ffi_prep_closure): Likewise.
3405 (flush_icache): Surround by #ifndef POWERPC64.
3406 (ffi_dblfl): New union type.
3407 (ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
3408 (ffi_closure_helper_LINUX64): New function.
3409 * src/powerpc/ppc_closure.S: Surround whole file by #ifndef
3410 __powerpc64__.
3411 * src/powerpc/sysv.S: Likewise.
3412 (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
3413 * src/powerpc/linux64.S: New file.
3414 * src/powerpc/linux64_closure.S: New file.
3415 * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
3416 src/powerpc/linux64_closure.S.
3417 (TARGET_SRC_POWERPC): Likewise.
3418
3419 * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
3420 closure_test_fn3): Fix result printing on big-endian 64-bit
3421 machines.
3422 (main): Print tst2_arg instead of uninitialized tst2_result.
3423
3424 * src/ffitest.c (main): Hide what closure pointer really points to
3425 from the compiler.
3426
908a31e1
RE
34272003-04-16 Richard Earnshaw <rearnsha@arm.com>
3428
3429 * configure.in (arm-*-netbsdelf*): Add configuration.
3430 (configure): Regenerated.
3431
41a73c4c
LR
34322003-04-04 Loren J. Rittle <ljrittle@acm.org>
3433
3434 * include/Makefile.in: Regenerate.
3435
cd41c847
ZD
34362003-03-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3437
3438 * libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
3439 bit mode.
3440 * libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
3441 Receive closure pointer through parameter, read args using
3442 __builtin_dwarf_cfa.
3443 (FFI_INIT_TRAMPOLINE): Send closure reference through eax.
3444
6db450f9
AS
34452003-03-12 Andreas Schwab <schwab@suse.de>
3446
3447 * configure.in: Avoid trailing /. in toolexeclibdir.
3448 * configure: Rebuilt.
3449
70144e9c
AT
34502003-03-03 Andreas Tobler <a.tobler@schweiz.ch>
3451
c6900272 3452 * src/powerpc/darwin_closure.S: Recode to fit dynamic libraries.
70144e9c 3453
79e43f89
AT
34542003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
3455
3456 * libffi/src/powerpc/darwin_closure.S:
3457 Fix alignement bug, allocate 8 bytes for the result.
c930d8a5 3458 * libffi/src/powerpc/aix_closure.S:
79e43f89
AT
3459 Likewise.
3460 * libffi/src/powerpc/ffi_darwin.c:
3461 Update stackframe description for aix/darwin_closure.S.
c930d8a5 3462
0fcc9e55
JJ
34632003-02-06 Jakub Jelinek <jakub@redhat.com>
3464
3465 * src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
3466 attribute.
3467
63b87c2e
CC
34682003-01-31 Christian Cornelssen <ccorn@cs.tu-berlin.de>,
3469 Andreas Schwab <schwab@suse.de>
3470
c6900272 3471 * configure.in: Adjust command to source config-ml.in to account
63b87c2e
CC
3472 for changes to the libffi_basedir definition.
3473 (libffi_basedir): Remove ${srcdir} from value and include trailing
3474 slash if nonempty.
c930d8a5 3475
c6900272 3476 * configure: Regenerate.
63b87c2e 3477
c33402e2
FS
34782003-01-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3479
3480 * src/powerpc/ppc_closure.S: Recode to fit shared libs.
3481
fd2e49b2
AH
34822003-01-28 Andrew Haley <aph@redhat.com>
3483
3484 * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
3485 * src/x86/ffi64.c (ffi_prep_closure): New.
3486 (ffi_closure_UNIX64_inner): New.
3487 * src/x86/unix64.S (ffi_closure_UNIX64): New.
3488
0e292c01
AO
34892003-01-27 Alexandre Oliva <aoliva@redhat.com>
3490
3491 * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
3492 Remove USE_LIBDIR conditional.
3493 * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
3494 * Makefile.in, configure: Rebuilt.
3495
acabc220
DE
34962003-01027 David Edelsohn <edelsohn@gnu.org>
3497
3498 * Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
3499 * Makefile.in: Regenerate.
3500
be0acd42
AH
35012003-01-22 Andrew Haley <aph@redhat.com>
3502
3503 * src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
3504 unwind info.
3505
ed695c8e
AT
35062003-01-21 Andreas Tobler <a.tobler@schweiz.ch>
3507
3508 * src/powerpc/darwin.S: Add unwind info.
3509 * src/powerpc/darwin_closure.S: Likewise.
3510
45ba15f4
AH
35112003-01-14 Andrew Haley <aph@redhat.com>
3512
3513 * src/x86/ffi64.c (ffi_prep_args): Check for void retval.
3514 (ffi_prep_cif_machdep): Likewise.
3515 * src/x86/unix64.S: Add unwind info.
3516
4b5f402e
AJ
35172003-01-14 Andreas Jaeger <aj@suse.de>
3518
3519 * src/ffitest.c (main): Only use ffi_closures if those are
3520 supported.
3521
7b5102af
TT
35222003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
3523
3524 * libffi/src/ffitest.c
c6900272 3525 add closure testcases
7b5102af
TT
3526
35272003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>
3528
3529 * libffi/src/powerpc/ffi.c
c6900272 3530 fix alignment bug for float (4 byte aligned iso 8 byte)
7b5102af 3531
5f7c78d8
GK
35322003-01-09 Geoffrey Keating <geoffk@apple.com>
3533
3534 * src/powerpc/ffi_darwin.c: Remove RCS version string.
3535 * src/powerpc/darwin.S: Remove RCS version string.
3536
c75c7793
JS
35372003-01-03 Jeff Sturm <jsturm@one-point.com>
3538
3539 * include/ffi.h.in: Add closure defines for SPARC, SPARC64.
3540 * src/ffitest.c (main): Use static storage for closure.
3541 * src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
3542 * src/sparc/v8.S (ffi_closure_v8): New.
3543 * src/sparc/v9.S (ffi_closure_v9): New.
3544
eb3c46a1
RM
35452002-11-10 Ranjit Mathew <rmathew@hotmail.com>
3546
3547 * include/ffi.h.in: Added FFI_STDCALL ffi_type
3548 enumeration for X86_WIN32.
3549 * src/x86/win32.S: Added ffi_call_STDCALL function
3550 definition.
3551 * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
3552 switch cases for recognising FFI_STDCALL and
3553 calling ffi_call_STDCALL if target is X86_WIN32.
3554 * src/ffitest.c (my_stdcall_strlen/stdcall_many):
3555 stdcall versions of the "my_strlen" and "many"
3556 test functions (for X86_WIN32).
3557 Added test cases to test stdcall invocation using
3558 these functions.
3559
4977bab6
ZW
35602002-12-02 Kaz Kojima <kkojima@gcc.gnu.org>
3561
3562 * src/sh/sysv.S: Add DWARF2 unwind info.
3563
67333e84
UW
35642002-11-27 Ulrich Weigand <uweigand@de.ibm.com>
3565
3566 * src/s390/sysv.S (.eh_frame section): Make section read-only.
3567
bc3cf760
JW
35682002-11-26 Jim Wilson <wilson@redhat.com>
3569
3570 * src/types.c (FFI_TYPE_POINTER): Has size 8 on IA64.
3571
4977bab6
ZW
35722002-11-23 H.J. Lu <hjl@gnu.org>
3573
3574 * acinclude.m4: Add dummy AM_PROG_LIBTOOL.
3575 Include ../config/accross.m4.
3576 * aclocal.m4; Rebuild.
3577 * configure: Likewise.
3578
18789f4e
UW
35792002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
3580
3581 * src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.
3582
6bee5372
DD
35832002-11-11 DJ Delorie <dj@redhat.com>
3584
3585 * configure.in: Look for common files in the right place.
3586
8177895b
UW
35872002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
3588
3589 * src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
3590 raw data as _Jv_word values, not ffi_raw.
3591 (ffi_java_ptrarray_to_raw): Likewise.
3592 (ffi_java_rvalue_to_raw): New function.
3593 (ffi_java_raw_call): Call it.
3594 (ffi_java_raw_to_rvalue): New function.
3595 (ffi_java_translate_args): Call it.
3596 * src/ffitest.c (closure_test_fn): Interpret return value
3597 as ffi_arg, not int.
3598 * src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
3599 FFI_TYPE_POINTER case.
3600 (ffi_closure_helper_SYSV): Likewise. Also, assume return
3601 values extended to word size.
3602
af50f4c8
AJ
36032002-10-02 Andreas Jaeger <aj@suse.de>
3604
3605 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
3606
5d297584
BT
36072002-10-01 Bo Thorsen <bo@smetana.suse.de>
3608
3609 * include/ffi.h.in: Fix i386 win32 compilation.
3610
c4f17c6f
UW
36112002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
3612
3613 * configure.in: Add s390x-*-linux-* target.
3614 * configure: Regenerate.
3615 * include/ffi.h.in: Define S390X for s390x targets.
3616 (FFI_CLOSURES): Define for s390/s390x.
3617 (FFI_TRAMPOLINE_SIZE): Likewise.
3618 (FFI_NATIVE_RAW_API): Likewise.
3619 * src/prep_cif.c (ffi_prep_cif): Do not compute stack space for s390.
3620 * src/types.c (FFI_TYPE_POINTER): Use 8-byte pointers on s390x.
4977bab6 3621 * src/s390/ffi.c: Major rework of existing code. Add support for
c4f17c6f
UW
3622 s390x targets. Add closure support.
3623 * src/s390/sysv.S: Likewise.
3624
d7b52625
RE
36252002-09-29 Richard Earnshaw <rearnsha@arm.com>
3626
3627 * src/arm/sysv.S: Fix typo.
3628
28165e22
RE
36292002-09-28 Richard Earnshaw <rearnsha@arm.com>
3630
3631 * src/arm/sysv.S: If we don't have machine/asm.h and the pre-processor
3632 has defined __USER_LABEL_PREFIX__, then use it in CNAME.
3633 (ffi_call_SYSV): Handle soft-float.
3634
0b0f4163
BT
36352002-09-27 Bo Thorsen <bo@suse.de>
3636
3637 * include/ffi.h.in: Fix multilib x86-64 support.
3638
6c5d742e
KG
36392002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3640
3641 * Makefile.am (all-multi): Fix multilib parallel build.
3642
f4b2b0d6
KK
36432002-07-19 Kaz Kojima <kkojima@gcc.gnu.org>
3644
3645 * configure.in (sh[34]*-*-linux*): Add brackets.
3646 * configure: Regenerate.
3647
ddebdfeb
KK
36482002-07-18 Kaz Kojima <kkojima@gcc.gnu.org>
3649
3650 * Makefile.am: Add SH support.
3651 * Makefile.in: Regenerate.
3652 * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
3653 * configure: Regenerate.
3654 * include/ffi.h.in: Add SH support.
3655 * src/sh/ffi.c: New file.
3656 * src/sh/sysv.S: New file.
3657 * src/types.c: Add SH support.
3658
c94974ca
BT
36592002-07-16 Bo Thorsen <bo@suse.de>
3660
3661 * src/x86/ffi64.c: New file that adds x86-64 support.
3662 * src/x86/unix64.S: New file that handles argument setup for
3663 x86-64.
3664 * src/x86/sysv.S: Don't use this on x86-64.
3665 * src/x86/ffi.c: Don't use this on x86-64.
3666 Remove unused vars.
3667 * src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
3668 for x86-64.
3669 * src/ffitest.c (struct6): New test that tests a special case in
3670 the x86-64 ABI.
3671 (struct7): Likewise.
3672 (struct8): Likewise.
3673 (struct9): Likewise.
3674 (closure_test_fn): Silence warning about this when it's not used.
3675 (main): Add the new tests.
3676 (main): Fix a couple of wrong casts and silence some compiler warnings.
3677 * include/ffi.h.in: Add x86-64 ABI definition.
3678 * fficonfig.h.in: Regenerate.
3679 * Makefile.am: Add x86-64 support.
3680 * configure.in: Likewise.
3681 * Makefile.in: Regenerate.
3682 * configure: Likewise.
3683
36842002-06-24 Bo Thorsen <bo@suse.de>
3685
3686 * src/types.c: Merge settings for similar architectures.
3687 Add x86-64 sizes and alignments.
3688
36892002-06-23 Bo Thorsen <bo@suse.de>
3690
3691 * src/arm/ffi.c (ffi_prep_args): Remove unused vars.
3692 * src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
3693 * src/mips/ffi.c (ffi_prep_args): Likewise.
3694 * src/m68k/ffi.c (ffi_prep_args): Likewise.
3695
5be36a8f
L
36962002-07-18 H.J. Lu (hjl@gnu.org)
3697
3698 * Makefile.am (TARGET_SRC_MIPS_LINUX): New.
3699 (libffi_la_SOURCES): Support MIPS_LINUX.
3700 (libffi_convenience_la_SOURCES): Likewise.
3701 * Makefile.in: Regenerated.
3702
3703 * configure.in (mips64*-*): Skip.
3704 (mips*-*-linux*): New.
3705 * configure: Regenerated.
3706
3707 * src/mips/ffi.c: Include <sgidefs.h>.
3708
ad5e163c
UW
37092002-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3710
3711 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
3712
ee4586c5
RS
37132002-05-27 Roger Sayle <roger@eyesopen.com>
3714
3715 * src/x86/ffi.c (ffi_prep_args): Remove reference to avn.
3716
b86aa7b0
BT
37172002-05-27 Bo Thorsen <bo@suse.de>
3718
3719 * src/x86/ffi.c (ffi_prep_args): Remove unused variable and
3720 fix formatting.
3721
859f7aaf
AT
37222002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
3723
3724 * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
3725 beginning of function (for older apple cc).
3726
6706f116
AO
37272002-05-08 Alexandre Oliva <aoliva@redhat.com>
3728
3729 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3730 script entry, and set LD to it when configuring multilibs.
3731 * configure: Rebuilt.
3732
fad655c8
JT
37332002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3734
3735 * configure.in (sparc64-*-netbsd*): Add target.
3736 (sparc-*-netbsdelf*): Likewise.
3737 * configure: Regenerate.
3738
189ab118
DM
37392002-04-28 David S. Miller <davem@redhat.com>
3740
3741 * configure.in, configure: Fix SPARC test in previous change.
3742
22bcf65c
GT
37432002-04-29 Gerhard Tonn <GerhardTonn@swol.de>
3744
3745 * Makefile.am: Add Linux for S/390 support.
3746 * Makefile.in: Regenerate.
3747 * configure.in: Add Linux for S/390 support.
3748 * configure: Regenerate.
3749 * include/ffi.h.in: Add Linux for S/390 support.
3750 * src/s390/ffi.c: New file from libffi CVS tree.
3751 * src/s390/sysv.S: New file from libffi CVS tree.
3752
5d84cf0b
JJ
37532002-04-28 Jakub Jelinek <jakub@redhat.com>
3754
3755 * configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
3756 %r_disp32().
3757 * src/sparc/v8.S: Use it.
3758 * src/sparc/v9.S: Likewise.
3759 * fficonfig.h.in: Rebuilt.
3760 * configure: Rebuilt.
3761
cc382e5c
HB
37622002-04-08 Hans Boehm <Hans_Boehm@hp.com>
3763
3764 * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
3765 correctly.
3766 * src/ia64/unix.S: Add unwind information. Fix comments.
3767 Save sp in a way that's compatible with unwind info.
3768 (ffi_call_unix): Correctly restore sp in all cases.
3769 * src/ia64/ffi.c: Add, fix comments.
3770
dc798645
JJ
37712002-04-08 Jakub Jelinek <jakub@redhat.com>
3772
3773 * src/sparc/v8.S: Make .eh_frame dependent on target word size.
3774
da00eaab
JT
37752002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3776
3777 * configure.in (alpha*-*-netbsd*): Add target.
3778 * configure: Regenerate.
3779
0c0b87ad
JS
37802002-04-04 Jeff Sturm <jsturm@one-point.com>
3781
3782 * src/sparc/v8.S: Add unwind info.
3783 * src/sparc/v9.S: Likewise.
3784
320d7e7a
KW
37852002-03-30 Krister Walfridsson <cato@df.lth.se>
3786
3787 * configure.in: Enable i*86-*-netbsdelf*.
3788 * configure: Rebuilt.
4977bab6 3789
c75e51ed
DB
37902002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
3791
3792 PR other/2620
3793 * src/mips/n32.s: Delete
3794 * src/mips/o32.s: Delete
3795
5bb366e0
LR
37962002-03-21 Loren J. Rittle <ljrittle@acm.org>
3797
3798 * configure.in: Enable alpha*-*-freebsd*.
3799 * configure: Rebuilt.
3800
ce3b24a7
BM
38012002-03-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3802
3803 * Makefile.am: libfficonvenience -> libffi_convenience.
3804 * Makefile.in: Rebuilt.
4977bab6 3805
1eb7ba30
BM
3806 * Makefile.am: Define ffitest_OBJECTS.
3807 * Makefile.in: Rebuilt.
ce3b24a7 3808
073ae293
AT
38092002-03-07 Andreas Tobler <toa@pop.agri.ch>
3810 David Edelsohn <edelsohn@gnu.org>
3811
3812 * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
3813 (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
3814 (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
3815 * Makefile.in: Regenerate.
3816 * include/ffi.h.in: Add AIX and Darwin closure definitions.
3817 * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
3818 (flush_icache, flush_range): New functions.
3819 (ffi_closure_helper_DARWIN): New function.
3820 * src/powerpc/aix_closure.S: New file.
3821 * src/powerpc/darwin_closure.S: New file.
4977bab6 3822
02c521f4
JS
38232002-02-24 Jeff Sturm <jsturm@one-point.com>
3824
3825 * include/ffi.h.in: Add typedef for ffi_arg.
3826 * src/ffitest.c (main): Declare rint with ffi_arg.
4977bab6 3827
287dd527
AT
38282002-02-21 Andreas Tobler <toa@pop.agri.ch>
3829
3830 * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
3831 number of GPRs for floating-point arguments.
3832
e2f2e70a
AG
38332002-01-31 Anthony Green <green@redhat.com>
3834
3835 * configure: Rebuilt.
3836 * configure.in: Replace CHECK_SIZEOF and endian tests with
3837 cross-compiler friendly macros.
3838 * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
3839 macros.
3840
15b9b32f
DE
38412002-01-18 David Edelsohn <edelsohn@gnu.org>
3842
3843 * src/powerpc/darwin.S (_ffi_call_AIX): New.
1f7d5413 3844 * src/powerpc/aix.S (ffi_call_DARWIN): New.
15b9b32f 3845
2f4006f8
DE
38462002-01-17 David Edelsohn <edelsohn@gnu.org>
3847
3848 * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
3849 (TARGET_SRC_POWERPC_AIX): New.
3850 (POWERPC_AIX): New stanza.
3851 * Makefile.in: Regenerate.
3852 * configure.in: Add AIX case.
3853 * configure: Regenerate.
3854 * include/ffi.h.in (ffi_abi): Add FFI_AIX.
3855 * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
3856 size. Fix "long double" support.
3857 (ffi_call): Add FFI_AIX case.
3858 * src/powerpc/aix.S: New.
3859
3c017635
JH
38602001-10-09 John Hornkvist <john@toastedmarshmallow.com>
3861
3862 Implement Darwin PowerPC ABI.
3863 * configure.in: Handle powerpc-*-darwin*.
3864 * Makefile.am: Set source files for POWERPC_DARWIN.
3865 * configure: Rebuilt.
3866 * Makefile.in: Rebuilt.
3867 * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
3868 POWERPC_DARWIN.
3869 * src/powerpc/darwin.S: New file.
3870 * src/powerpc/ffi_darwin.c: New file.
3871
cc712abf
JM
38722001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3873
3874 * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
3875
03a8de49
RO
38762001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3877
3878 * src/x86/sysv.S: Avoid gas-only .balign directive.
3879 Use C style comments.
3880
92a0e6c6
RO
38812001-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3882
3883 * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
3884 Fixes PR bootstrap/3563.
3885
57482f58
RO
38862001-06-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3887
3888 * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
3889
d7e2dd2f
RO
38902001-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3891
3892 * configure.in: Recognize sparc*-sun-* host.
3893 * configure: Regenerate.
4977bab6 3894
be72207c
AH
38952001-06-06 Andrew Haley <aph@redhat.com>
3896
4075db8f 3897 * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
be72207c 3898
552cb45a
AH
38992001-06-03 Andrew Haley <aph@redhat.com>
3900
4075db8f
BT
3901 * src/alpha/osf.S: Add unwind info.
3902 * src/powerpc/sysv.S: Add unwind info.
3903 * src/powerpc/ppc_closure.S: Likewise.
552cb45a 3904
7d45b968
JS
39052000-05-31 Jeff Sturm <jsturm@one-point.com>
3906
3907 * configure.in: Fix AC_ARG_ENABLE usage.
3908 * configure: Rebuilt.
3909
2a7f63c4
BM
39102001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3911
3912 * configure.in: Remove warning about beta code.
3913 * configure: Rebuilt.
3914
39152001-04-25 Hans Boehm <Hans_Boehm@hp.com>
3916
03a55252
HB
3917 * src/ia64/unix.S: Restore stack pointer when returning from
3918 ffi_closure_UNIX.
3919 * src/ia64/ffi.c: Fix typo in comment.
3920
df5da1c4
JW
39212001-04-18 Jim Wilson <wilson@redhat.com>
3922
3923 * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
3924 to eliminate RAW DV.
3925
52c28977
BM
39262001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3927
3928 * Makefile.am: Make a libtool convenience library.
3929 * Makefile.in: Rebuilt.
3930
3b905056
BM
39312001-03-29 Bryce McKinlay <bryce@albatross.co.nz>
3932
3933 * configure.in: Use different syntax for subdirectory creation.
3934 * configure: Rebuilt.
3935
d6c4152a
JB
39362001-03-27 Jon Beniston <jon@beniston.com>
3937
3938 * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
3939 * configure: Rebuilt.
3940 * Makefile.am: Added X86_WIN32 target support.
3941 * Makefile.in: Rebuilt.
3942
3943 * include/ffi.h.in: Added X86_WIN32 target support.
3944
3945 * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
3946 * src/types.c: Added X86_WIN32 target support.
3947
3948 * src/x86/win32.S: New file. Based on sysv.S, but with EH
3949 stuff removed and made to work with CygWin's gas.
3950
675cdab3
BM
39512001-03-26 Bryce McKinlay <bryce@albatross.co.nz>
3952
3953 * configure.in: Make target subdirectory in build dir.
3954 * Makefile.am: Override suffix based rules to specify correct output
3955 subdirectory.
3956 * Makefile.in: Rebuilt.
3957 * configure: Rebuilt.
3958
e5f8858a 39592001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
cc4c8975
KH
3960
3961 * src/powerpc/ppc_closure.S: New file.
3962 * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
3963 involving long long and register pairs.
3964 (ffi_prep_closure): New function.
3965 (flush_icache): Likewise.
3966 (ffi_closure_helper_SYSV): Likewise.
3967 * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
3968 (FFI_TRAMPOLINE_SIZE): Likewise.
3969 (FFI_NATIVE_RAW_API): Likewise.
3970 * Makefile.in: Rebuilt.
3971 * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
3972 (TARGET_SRC_POWERPC): Likewise.
3973
9450a929
TT
39742001-03-19 Tom Tromey <tromey@redhat.com>
3975
3976 * Makefile.in: Rebuilt.
3977 * Makefile.am (ffitest_LDFLAGS): New macro.
3978
4d2cf715
NC
39792001-03-02 Nick Clifton <nickc@redhat.com>
3980
3981 * include/ffi.h.in: Remove RCS ident string.
3982 * include/ffi_mips.h: Remove RCS ident string.
3983 * src/debug.c: Remove RCS ident string.
3984 * src/ffitest.c: Remove RCS ident string.
3985 * src/prep_cif.c: Remove RCS ident string.
3986 * src/types.c: Remove RCS ident string.
3987 * src/alpha/ffi.c: Remove RCS ident string.
3988 * src/alpha/osf.S: Remove RCS ident string.
3989 * src/arm/ffi.c: Remove RCS ident string.
3990 * src/arm/sysv.S: Remove RCS ident string.
3991 * src/mips/ffi.c: Remove RCS ident string.
3992 * src/mips/n32.S: Remove RCS ident string.
3993 * src/mips/o32.S: Remove RCS ident string.
3994 * src/sparc/ffi.c: Remove RCS ident string.
3995 * src/sparc/v8.S: Remove RCS ident string.
3996 * src/sparc/v9.S: Remove RCS ident string.
3997 * src/x86/ffi.c: Remove RCS ident string.
3998 * src/x86/sysv.S: Remove RCS ident string.
3999
7e5fd99f
JM
40002001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
4001
4002 * include/ffi.h.in: Change sourceware.cygnus.com references to
4003 gcc.gnu.org.
4004
3f67ba6e
RH
40052000-12-09 Richard Henderson <rth@redhat.com>
4006
4007 * src/alpha/ffi.c (ffi_call): Simplify struct return test.
4008 (ffi_closure_osf_inner): Index rather than increment avalue
4009 and arg_types. Give ffi_closure_osf the raw return value type.
4010 * src/alpha/osf.S (ffi_closure_osf): Handle return value type
4011 promotion.
4012
40132000-12-07 Richard Henderson <rth@redhat.com>
29fe0479
RH
4014
4015 * src/raw_api.c (ffi_translate_args): Fix typo.
4016 (ffi_prep_closure): Likewise.
4017
4018 * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
4019 FFI_TRAMPOLINE_SIZE.
4020 * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
4021 cif->bytes for new ffi_call_osf implementation.
4022 (ffi_prep_args): Absorb into ...
4023 (ffi_call): ... here. Do all stack allocation here and
4024 avoid a callback function.
4025 (ffi_prep_closure, ffi_closure_osf_inner): New.
4026 * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
4027 (ffi_closure_osf): New.
4028
2f7bf5b7
AO
40292000-09-10 Alexandre Oliva <aoliva@redhat.com>
4030
ed1c1a1a
AO
4031 * config.guess, config.sub, install-sh: Removed.
4032 * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
4033 * Makefile.in: Rebuilt.
4034
2f7bf5b7
AO
4035 * acinclude.m4: Include libtool macros from the top level.
4036 * aclocal.m4, configure: Rebuilt.
4037
e15a68e7
AO
40382000-08-22 Alexandre Oliva <aoliva@redhat.com>
4039
4040 * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
4041 * configure: Rebuilt.
4042
7f8c11d5
SB
40432000-05-11 Scott Bambrough <scottb@netwinder.org>
4044
4977bab6
ZW
4045 * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to
4046 memory correctly. Use conditional instructions, not branches where
7f8c11d5
SB
4047 possible.
4048
c5acf51f
TT
40492000-05-04 Tom Tromey <tromey@cygnus.com>
4050
4051 * configure: Rebuilt.
4052 * configure.in: Match `arm*-*-linux-*'.
4053 From Chris Dornan <cdornan@arm.com>.
4054
91bffbe9
JJ
40552000-04-28 Jakub Jelinek <jakub@redhat.com>
4056
4057 * Makefile.am (SUBDIRS): Define.
4058 (AM_MAKEFLAGS): Likewise.
4059 (Multilib support.): Add section.
4060 * Makefile.in: Rebuilt.
4061 * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
4075db8f
BT
4062 New variables. Set for gcc using -print-multi-lib. Export them
4063 to libtool.
4064 (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
4065 * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
4066 for -shared links.
4067 (extra_compiler_flags_value, extra_compiler_flags): Check these
4068 for extra compiler options which need to be passed down in
4069 compiler_flags.
91bffbe9 4070
bd66587e
AG
40712000-04-16 Anthony Green <green@redhat.com>
4072
4073 * configure: Rebuilt.
4074 * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
4075
3791773c
JJ
40762000-04-14 Jakub Jelinek <jakub@redhat.com>
4077
4075db8f 4078 * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
3791773c
JJ
4079 Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
4080 * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
4081 Replace all void * sizeofs with sizeof(int).
4082 Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
4083 different than DOUBLE.
4084 Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
4085 (ffi_prep_args_v9): New function.
4086 (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
4087 (ffi_V9_return_struct): New function.
4088 (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
4089 32bit code (not yet cross-arch calls).
4090 * src/sparc/v8.S: Add struct return delay nop.
4091 Handle long long.
4092 * src/sparc/v9.S: New file.
4093 * src/prep_cif.c (ffi_prep_cif): Return structure pointer
4094 is used on sparc64 only for structures larger than 32 bytes.
4095 Pass by reference for structures is done for structure arguments
4096 larger than 16 bytes.
4097 * src/ffitest.c (main): Use 64bit rint on sparc64.
4098 Run long long tests on sparc.
4099 * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
4100 sparc64.
4101 (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
4102 on sparc64.
4103 * configure.in (sparc-*-linux*): New supported target.
4104 (sparc64-*-linux*): Likewise.
4105 * configure: Rebuilt.
4106 * Makefile.am: Add v9.S to SPARC files.
4107 * Makefile.in: Likewise.
4108 (LINK): Surround $(CCLD) into double quotes, so that multilib
4109 compiles work correctly.
4110
db459595
APB
41112000-04-04 Alexandre Petit-Bianco <apbianco@cygnus.com>
4112
4113 * configure: Rebuilt.
4114 * configure.in: (i*86-*-solaris*): New libffi target. Patch
4115 proposed by Bryce McKinlay.
4116
c1f63902
TT
41172000-03-20 Tom Tromey <tromey@cygnus.com>
4118
4119 * Makefile.in: Hand edit for java_raw_api.lo.
4120
0f72dc9e
BM
41212000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
4122
4123 * config.guess, config.sub: Update from the gcc tree.
4124 Fix for PR libgcj/168.
4125
3c18f2d1
TT
41262000-03-03 Tom Tromey <tromey@cygnus.com>
4127
323eee8a
TT
4128 * Makefile.in: Fixed ia64 by hand.
4129
3c18f2d1
TT
4130 * configure: Rebuilt.
4131 * configure.in (--enable-multilib): New option.
4132 (libffi_basedir): New subst.
4133 (AC_OUTPUT): Added multilib code.
4134
a2b10a92
TT
41352000-03-02 Tom Tromey <tromey@cygnus.com>
4136
4137 * Makefile.in: Rebuilt.
4138 * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
4139 directory name.
4140
dc5de370
HB
41412000-02-25 Hans Boehm <boehm@acm.org>
4142
4143 * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
4144 files.
4145 * src/raw_api.c (ffi_translate_args): Fixed typo in argument
4146 list.
4147 (ffi_prep_raw_closure): Use ffi_translate_args, not
4148 ffi_closure_translate.
4149 * src/java_raw_api.c: New file.
4150 * src/ffitest.c (closure_test_fn): New function.
4151 (main): Define `rint' as long long on IA64. Added new test when
4152 FFI_CLOSURES is defined.
4153 * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
4154 (ffi_abi): Recognize IA64.
4155 (ffi_raw): Added `flt' field.
4156 Added "Java raw API" code.
4157 * configure.in: Recognize ia64.
4158 * Makefile.am (TARGET_SRC_IA64): New macro.
4159 (libffi_la_common_SOURCES): Added java_raw_api.c.
4160 (libffi_la_SOURCES): Define in IA64 case.
4161
d79229bd
TT
41622000-01-04 Tom Tromey <tromey@cygnus.com>
4163
4164 * Makefile.in: Rebuilt with newer automake.
4165
2c33b220
TT
41661999-12-31 Tom Tromey <tromey@cygnus.com>
4167
4168 * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
4169
6ba9e3b0
TT
41701999-09-01 Tom Tromey <tromey@cygnus.com>
4171
4172 * include/ffi.h.in: Removed PACKAGE and VERSION defines and
4173 undefs.
4174 * fficonfig.h.in: Rebuilt.
4175 * configure: Rebuilt.
4176 * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
4177 Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
4178 * acconfig.h: Don't #undef PACKAGE or VERSION.
4179
63e5e3e0
AG
41801999-08-09 Anthony Green <green@cygnus.com>
4181
4182 * include/ffi.h.in: Try to work around messy header problem
4183 with PACKAGE and VERSION.
4184
4185 * configure: Rebuilt.
4186 * configure.in: Change version to 2.00-beta.
4187
4075db8f 4188 * fficonfig.h.in: Rebuilt.
63e5e3e0
AG
4189 * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
4190
4191 * src/x86/ffi.c (ffi_raw_call): Rename.
4192
41931999-08-02 Kresten Krab Thorup <krab@dominiq.is.s.u-tokyo.ac.jp>
4194
4195 * src/x86/ffi.c (ffi_closure_SYSV): New function.
4196 (ffi_prep_incoming_args_SYSV): Ditto.
4197 (ffi_prep_closure): Ditto.
4198 (ffi_closure_raw_SYSV): Ditto.
4199 (ffi_prep_raw_closure): More ditto.
4200 (ffi_call_raw): Final ditto.
4201
4202 * include/ffi.h.in: Add definitions for closure and raw API.
4203
4204 * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
4977bab6 4205 FFI_TYPE_UINT64.
63e5e3e0
AG
4206
4207 * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
4208
4209 * src/raw_api.c: New file.
4210
4211 * include/ffi.h.in (ffi_raw): New type.
4212 (UINT_ARG, SINT_ARG): New defines.
4213 (ffi_closure, ffi_raw_closure): New types.
4214 (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
4977bab6 4215
63e5e3e0
AG
4216 * configure.in: Add check for endianness and sizeof void*.
4217
4218 * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
4219 instead of directly.
4220
4221 * configure: Rebuilt.
4222
4223Thu Jul 8 14:28:42 1999 Anthony Green <green@cygnus.com>
4224
4225 * configure.in: Add x86 and powerpc BeOS configurations.
4226 From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
4227
42281999-05-09 Anthony Green <green@cygnus.com>
4229
4230 * configure.in: Add warning about this being beta code.
4231 Remove src/Makefile.am from the picture.
4232 * configure: Rebuilt.
4233
4234 * Makefile.am: Move logic from src/Makefile.am. Add changes
4235 to support libffi as a target library.
4236 * Makefile.in: Rebuilt.
4237
4238 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
4239 Upgraded to new autoconf, automake, libtool.
4240
4241 * README: Tweaks.
4242
4243 * LICENSE: Update copyright date.
4244
4245 * src/Makefile.am, src/Makefile.in: Removed.
4246
42471998-11-29 Anthony Green <green@cygnus.com>
4248
4249 * include/ChangeLog: Removed.
4250 * src/ChangeLog: Removed.
4251 * src/mips/ChangeLog: Removed.
4252 * src/sparc/ChangeLog: Remboved.
4253 * src/x86/ChangeLog: Removed.
4254
4255 * ChangeLog.v1: Created.