OSDN Git Service

* src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
[pf3gnuchains/gcc-fork.git] / libffi / ChangeLog
1 2002-04-08  Hans Boehm  <Hans_Boehm@hp.com>
2
3         * src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
4         correctly.
5         * src/ia64/unix.S: Add unwind information. Fix comments.
6         Save sp in a way that's compatible with unwind info.
7         (ffi_call_unix): Correctly restore sp in all cases.
8         * src/ia64/ffi.c: Add, fix comments.
9
10 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
11
12         * src/sparc/v8.S: Make .eh_frame dependent on target word size.
13
14 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
15
16         * configure.in (alpha*-*-netbsd*): Add target.
17         * configure: Regenerate.
18
19 2002-04-04  Jeff Sturm  <jsturm@one-point.com>
20
21         * src/sparc/v8.S: Add unwind info.
22         * src/sparc/v9.S: Likewise.
23
24 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
25
26         * configure.in: Enable i*86-*-netbsdelf*.
27         * configure: Rebuilt.
28         
29 2002-03-29  David Billinghurst <David.Billinghurst@riotinto.com>
30
31         PR other/2620
32         * src/mips/n32.s: Delete
33         * src/mips/o32.s: Delete
34
35 2002-03-21  Loren J. Rittle  <ljrittle@acm.org>
36
37         * configure.in: Enable alpha*-*-freebsd*.
38         * configure: Rebuilt.
39
40 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
41
42         * Makefile.am: libfficonvenience -> libffi_convenience.
43         * Makefile.in: Rebuilt.
44         
45         * Makefile.am: Define ffitest_OBJECTS.
46         * Makefile.in: Rebuilt.
47
48 2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
49             David Edelsohn  <edelsohn@gnu.org>
50
51         * Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
52         (TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
53         (TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
54         * Makefile.in: Regenerate.
55         * include/ffi.h.in: Add AIX and Darwin closure definitions.
56         * src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
57         (flush_icache, flush_range): New functions.
58         (ffi_closure_helper_DARWIN): New function.
59         * src/powerpc/aix_closure.S: New file.
60         * src/powerpc/darwin_closure.S: New file.
61         
62 2002-02-24  Jeff Sturm  <jsturm@one-point.com>
63
64         * include/ffi.h.in: Add typedef for ffi_arg.
65         * src/ffitest.c (main): Declare rint with ffi_arg.
66  
67 2002-02-21  Andreas Tobler  <toa@pop.agri.ch>
68
69         * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
70         number of GPRs for floating-point arguments.
71
72 2002-01-31  Anthony Green  <green@redhat.com>
73
74         * configure: Rebuilt.
75         * configure.in: Replace CHECK_SIZEOF and endian tests with
76         cross-compiler friendly macros.
77         * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New
78         macros.
79
80 2002-01-18  David Edelsohn  <edelsohn@gnu.org>
81
82         * src/powerpc/darwin.S (_ffi_call_AIX): New.
83         * src/powerpc/aix.S (ffi_call_DARWIN): New.
84
85 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
86
87         * Makefile.am (EXTRA_DIST): Add Darwin and AIX files.
88         (TARGET_SRC_POWERPC_AIX): New.
89         (POWERPC_AIX): New stanza.
90         * Makefile.in: Regenerate.
91         * configure.in: Add AIX case.
92         * configure: Regenerate.
93         * include/ffi.h.in (ffi_abi): Add FFI_AIX.
94         * src/powerpc/ffi_darwin.c (ffi_status): Use "long" to scale frame
95         size.  Fix "long double" support.
96         (ffi_call): Add FFI_AIX case.
97         * src/powerpc/aix.S: New.
98
99 2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>
100
101         Implement Darwin PowerPC ABI.
102         * configure.in: Handle powerpc-*-darwin*.
103         * Makefile.am: Set source files for POWERPC_DARWIN.
104         * configure: Rebuilt.
105         * Makefile.in: Rebuilt.
106         * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
107         POWERPC_DARWIN.
108         * src/powerpc/darwin.S: New file.
109         * src/powerpc/ffi_darwin.c: New file.
110
111 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
112
113         * src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
114
115 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
116
117         * src/x86/sysv.S: Avoid gas-only .balign directive.
118         Use C style comments.
119
120 2001-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
121
122         * src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
123         Fixes PR bootstrap/3563.
124
125 2001-06-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
126
127         * src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.
128
129 2001-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
130
131         * configure.in: Recognize sparc*-sun-* host.
132         * configure: Regenerate.
133         
134 2001-06-06  Andrew Haley  <aph@redhat.com>
135
136         * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
137
138 2001-06-03  Andrew Haley  <aph@redhat.com>
139
140         * src/alpha/osf.S: Add unwind info.
141         * src/powerpc/sysv.S: Add unwind info.
142         * src/powerpc/ppc_closure.S: Likewise.
143
144 2000-05-31  Jeff Sturm  <jsturm@one-point.com>
145
146         * configure.in: Fix AC_ARG_ENABLE usage.
147         * configure: Rebuilt.
148
149 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
150
151         * configure.in: Remove warning about beta code.
152         * configure: Rebuilt.
153
154 2001-04-25  Hans Boehm <Hans_Boehm@hp.com>
155
156         * src/ia64/unix.S: Restore stack pointer when returning from
157         ffi_closure_UNIX.
158         * src/ia64/ffi.c: Fix typo in comment.
159
160 2001-04-18  Jim Wilson  <wilson@redhat.com>
161
162         * src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
163         to eliminate RAW DV.
164
165 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
166
167         * Makefile.am: Make a libtool convenience library.
168         * Makefile.in: Rebuilt.
169
170 2001-03-29  Bryce McKinlay  <bryce@albatross.co.nz>
171
172         * configure.in: Use different syntax for subdirectory creation.
173         * configure: Rebuilt.
174
175 2001-03-27  Jon Beniston  <jon@beniston.com>
176
177         * configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
178         * configure: Rebuilt.
179         * Makefile.am: Added X86_WIN32 target support.
180         * Makefile.in: Rebuilt.
181
182         * include/ffi.h.in: Added X86_WIN32 target support.
183
184         * src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
185         * src/types.c: Added X86_WIN32 target support.
186
187         * src/x86/win32.S: New file. Based on sysv.S, but with EH
188         stuff removed and made to work with CygWin's gas.
189
190 2001-03-26  Bryce McKinlay  <bryce@albatross.co.nz>
191
192         * configure.in: Make target subdirectory in build dir.
193         * Makefile.am: Override suffix based rules to specify correct output
194         subdirectory.
195         * Makefile.in: Rebuilt.
196         * configure: Rebuilt.
197
198 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
199
200         * src/powerpc/ppc_closure.S: New file.
201         * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
202         involving long long and register pairs.
203         (ffi_prep_closure): New function.
204         (flush_icache): Likewise.
205         (ffi_closure_helper_SYSV): Likewise.
206         * include/ffi.h.in (FFI_CLOSURES): Define on PPC.
207         (FFI_TRAMPOLINE_SIZE): Likewise.
208         (FFI_NATIVE_RAW_API): Likewise.
209         * Makefile.in: Rebuilt.
210         * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
211         (TARGET_SRC_POWERPC): Likewise.
212
213 2001-03-19  Tom Tromey  <tromey@redhat.com>
214
215         * Makefile.in: Rebuilt.
216         * Makefile.am (ffitest_LDFLAGS): New macro.
217
218 2001-03-02  Nick Clifton  <nickc@redhat.com>
219
220         * include/ffi.h.in: Remove RCS ident string.
221         * include/ffi_mips.h: Remove RCS ident string.
222         * src/debug.c: Remove RCS ident string.
223         * src/ffitest.c: Remove RCS ident string.
224         * src/prep_cif.c: Remove RCS ident string.
225         * src/types.c: Remove RCS ident string.
226         * src/alpha/ffi.c: Remove RCS ident string.
227         * src/alpha/osf.S: Remove RCS ident string.
228         * src/arm/ffi.c: Remove RCS ident string.
229         * src/arm/sysv.S: Remove RCS ident string.
230         * src/mips/ffi.c: Remove RCS ident string.
231         * src/mips/n32.S: Remove RCS ident string.
232         * src/mips/o32.S: Remove RCS ident string.
233         * src/sparc/ffi.c: Remove RCS ident string.
234         * src/sparc/v8.S: Remove RCS ident string.
235         * src/sparc/v9.S: Remove RCS ident string.
236         * src/x86/ffi.c: Remove RCS ident string.
237         * src/x86/sysv.S: Remove RCS ident string.
238
239 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
240
241         * include/ffi.h.in: Change sourceware.cygnus.com references to
242         gcc.gnu.org.
243
244 2000-12-09  Richard Henderson  <rth@redhat.com>
245
246         * src/alpha/ffi.c (ffi_call): Simplify struct return test.
247         (ffi_closure_osf_inner): Index rather than increment avalue
248         and arg_types.  Give ffi_closure_osf the raw return value type.
249         * src/alpha/osf.S (ffi_closure_osf): Handle return value type
250         promotion.
251
252 2000-12-07  Richard Henderson  <rth@redhat.com>
253
254         * src/raw_api.c (ffi_translate_args): Fix typo.
255         (ffi_prep_closure): Likewise.
256
257         * include/ffi.h.in [ALPHA]: Define FFI_CLOSURES and
258         FFI_TRAMPOLINE_SIZE.
259         * src/alpha/ffi.c (ffi_prep_cif_machdep): Adjust minimal
260         cif->bytes for new ffi_call_osf implementation.
261         (ffi_prep_args): Absorb into ...
262         (ffi_call): ... here.  Do all stack allocation here and
263         avoid a callback function.
264         (ffi_prep_closure, ffi_closure_osf_inner): New.
265         * src/alpha/osf.S (ffi_call_osf): Reimplement with no callback.
266         (ffi_closure_osf): New.
267
268 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
269
270         * config.guess, config.sub, install-sh: Removed.
271         * ltconfig, ltmain.sh, missing, mkinstalldirs: Likewise.
272         * Makefile.in: Rebuilt.
273
274         * acinclude.m4: Include libtool macros from the top level.
275         * aclocal.m4, configure: Rebuilt.
276
277 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
278
279         * configure.in [i*86-*-freebsd*] (TARGET, TARGETDIR): Set.
280         * configure: Rebuilt.
281
282 2000-05-11  Scott Bambrough  <scottb@netwinder.org>
283
284         * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to 
285         memory correctly.  Use conditional instructions, not branches where 
286         possible.
287
288 2000-05-04  Tom Tromey  <tromey@cygnus.com>
289
290         * configure: Rebuilt.
291         * configure.in: Match `arm*-*-linux-*'.
292         From Chris Dornan <cdornan@arm.com>.
293
294 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
295
296         * Makefile.am (SUBDIRS): Define.
297         (AM_MAKEFLAGS): Likewise.
298         (Multilib support.): Add section.
299         * Makefile.in: Rebuilt.
300         * ltconfig (extra_compiler_flags, extra_compiler_flags_value):
301         New variables. Set for gcc using -print-multi-lib. Export them
302         to libtool.
303         (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
304         * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
305         for -shared links.
306         (extra_compiler_flags_value, extra_compiler_flags): Check these
307         for extra compiler options which need to be passed down in
308         compiler_flags.
309
310 2000-04-16  Anthony Green  <green@redhat.com>
311
312         * configure: Rebuilt.
313         * configure.in: Change i*86-pc-linux* to i*86-*-linux*.
314
315 2000-04-14  Jakub Jelinek  <jakub@redhat.com>
316
317         * include/ffi.h.in (SPARC64): Define for 64bit SPARC builds.
318         Set SPARC FFI_DEFAULT_ABI based on SPARC64 define.
319         * src/sparc/ffi.c (ffi_prep_args_v8): Renamed from ffi_prep_args.
320         Replace all void * sizeofs with sizeof(int).
321         Only compare type with FFI_TYPE_LONGDOUBLE if LONGDOUBLE is
322         different than DOUBLE.
323         Remove FFI_TYPE_SINT32 and FFI_TYPE_UINT32 cases (handled elsewhere).
324         (ffi_prep_args_v9): New function.
325         (ffi_prep_cif_machdep): Handle V9 ABI and long long on V8.
326         (ffi_V9_return_struct): New function.
327         (ffi_call): Handle FFI_V9 ABI from 64bit code and FFI_V8 ABI from
328         32bit code (not yet cross-arch calls).
329         * src/sparc/v8.S: Add struct return delay nop.
330         Handle long long.
331         * src/sparc/v9.S: New file.
332         * src/prep_cif.c (ffi_prep_cif): Return structure pointer
333         is used on sparc64 only for structures larger than 32 bytes.
334         Pass by reference for structures is done for structure arguments
335         larger than 16 bytes.
336         * src/ffitest.c (main): Use 64bit rint on sparc64.
337         Run long long tests on sparc.
338         * src/types.c (FFI_TYPE_POINTER): Pointer is 64bit on alpha and
339         sparc64.
340         (FFI_TYPE_LONGDOUBLE): long double is 128 bit aligned to 128 bits
341         on sparc64.
342         * configure.in (sparc-*-linux*): New supported target.
343         (sparc64-*-linux*): Likewise.
344         * configure: Rebuilt.
345         * Makefile.am: Add v9.S to SPARC files.
346         * Makefile.in: Likewise.
347         (LINK): Surround $(CCLD) into double quotes, so that multilib
348         compiles work correctly.
349
350 2000-04-04  Alexandre Petit-Bianco  <apbianco@cygnus.com>
351
352         * configure: Rebuilt.
353         * configure.in: (i*86-*-solaris*): New libffi target. Patch
354         proposed by Bryce McKinlay.
355
356 2000-03-20  Tom Tromey  <tromey@cygnus.com>
357
358         * Makefile.in: Hand edit for java_raw_api.lo.
359
360 2000-03-08  Bryce McKinlay  <bryce@albatross.co.nz>
361
362         * config.guess, config.sub: Update from the gcc tree.
363         Fix for PR libgcj/168.
364
365 2000-03-03  Tom Tromey  <tromey@cygnus.com>
366
367         * Makefile.in: Fixed ia64 by hand.
368
369         * configure: Rebuilt.
370         * configure.in (--enable-multilib): New option.
371         (libffi_basedir): New subst.
372         (AC_OUTPUT): Added multilib code.
373
374 2000-03-02  Tom Tromey  <tromey@cygnus.com>
375
376         * Makefile.in: Rebuilt.
377         * Makefile.am (TARGET_SRC_IA64): Use `ia64', not `alpha', as
378         directory name.
379
380 2000-02-25  Hans Boehm <boehm@acm.org>
381
382         * src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
383         files.
384         * src/raw_api.c (ffi_translate_args): Fixed typo in argument
385         list.
386         (ffi_prep_raw_closure): Use ffi_translate_args, not
387         ffi_closure_translate.
388         * src/java_raw_api.c: New file.
389         * src/ffitest.c (closure_test_fn): New function.
390         (main): Define `rint' as long long on IA64.  Added new test when
391         FFI_CLOSURES is defined.
392         * include/ffi.h.in (ALIGN): Use size_t, not unsigned.
393         (ffi_abi): Recognize IA64.
394         (ffi_raw): Added `flt' field.
395         Added "Java raw API" code.
396         * configure.in: Recognize ia64.
397         * Makefile.am (TARGET_SRC_IA64): New macro.
398         (libffi_la_common_SOURCES): Added java_raw_api.c.
399         (libffi_la_SOURCES): Define in IA64 case.
400
401 2000-01-04  Tom Tromey  <tromey@cygnus.com>
402
403         * Makefile.in: Rebuilt with newer automake.
404
405 1999-12-31  Tom Tromey  <tromey@cygnus.com>
406
407         * Makefile.am (INCLUDES): Added -I$(top_srcdir)/src.
408
409 1999-09-01  Tom Tromey  <tromey@cygnus.com>
410
411         * include/ffi.h.in: Removed PACKAGE and VERSION defines and
412         undefs.
413         * fficonfig.h.in: Rebuilt.
414         * configure: Rebuilt.
415         * configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
416         Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
417         * acconfig.h: Don't #undef PACKAGE or VERSION.
418
419 1999-08-09  Anthony Green  <green@cygnus.com>
420
421         * include/ffi.h.in: Try to work around messy header problem
422         with PACKAGE and VERSION.
423
424         * configure: Rebuilt.
425         * configure.in: Change version to 2.00-beta.
426
427         * fficonfig.h.in: Rebuilt.
428         * acconfig.h (FFI_NO_STRUCTS, FFI_NO_RAW_API): Define.
429
430         * src/x86/ffi.c (ffi_raw_call): Rename.
431
432 1999-08-02  Kresten Krab Thorup  <krab@dominiq.is.s.u-tokyo.ac.jp>
433
434         * src/x86/ffi.c (ffi_closure_SYSV): New function.
435         (ffi_prep_incoming_args_SYSV): Ditto.
436         (ffi_prep_closure): Ditto.
437         (ffi_closure_raw_SYSV): Ditto.
438         (ffi_prep_raw_closure): More ditto.
439         (ffi_call_raw): Final ditto.
440
441         * include/ffi.h.in: Add definitions for closure and raw API.
442
443         * src/x86/ffi.c (ffi_prep_cif_machdep): Added case for
444         FFI_TYPE_UINT64.  
445
446         * Makefile.am (libffi_la_common_SOURCES): Added raw_api.c
447
448         * src/raw_api.c: New file.
449
450         * include/ffi.h.in (ffi_raw): New type.
451         (UINT_ARG, SINT_ARG): New defines.
452         (ffi_closure, ffi_raw_closure): New types.
453         (ffi_prep_closure, ffi_prep_raw_closure): New declarations.
454         
455         * configure.in: Add check for endianness and sizeof void*.
456
457         * src/x86/sysv.S (ffi_call_SYSV): Call fixup routine via argument,
458         instead of directly.
459
460         * configure: Rebuilt.
461
462 Thu Jul  8 14:28:42 1999  Anthony Green  <green@cygnus.com>
463
464         * configure.in: Add x86 and powerpc BeOS configurations.
465         From Makoto Kato <m_kato@ga2.so-net.ne.jp>.
466
467 1999-05-09  Anthony Green  <green@cygnus.com>
468
469         * configure.in: Add warning about this being beta code.
470         Remove src/Makefile.am from the picture.
471         * configure: Rebuilt.
472
473         * Makefile.am: Move logic from src/Makefile.am.  Add changes
474         to support libffi as a target library.
475         * Makefile.in: Rebuilt.
476
477         * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh:
478         Upgraded to new autoconf, automake, libtool.
479
480         * README: Tweaks.
481
482         * LICENSE: Update copyright date.
483
484         * src/Makefile.am, src/Makefile.in: Removed.
485
486 1998-11-29  Anthony Green  <green@cygnus.com>
487
488         * include/ChangeLog: Removed.
489         * src/ChangeLog: Removed.
490         * src/mips/ChangeLog: Removed.
491         * src/sparc/ChangeLog: Remboved.
492         * src/x86/ChangeLog: Removed.
493
494         * ChangeLog.v1: Created.