Uros Bizjak
34a6ccda5c
return_fl2.c (return_fl): Mark as static.
...
* testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
Use 'volatile float sum' to create sum of floats to avoid false
negative due to excess precision on ix86 targets.
(main): Ditto.
From-SVN: r123180
2007-03-24 08:13:17 +01:00
Alexandre Oliva
8b9cf39ead
ffi.c (flush_icache): Fix left-over from previous patch.
...
* src/powerpc/ffi.c (flush_icache): Fix left-over from previous
patch.
(ffi_prep_closure_loc): Remove unneeded casts. Add needed ones.
From-SVN: r122692
2007-03-08 11:06:41 +00:00
Alexandre Oliva
18fa3240db
ffi.h.in (ffi_closure_alloc, [...]): New.
...
libffi/ChangeLog:
* include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
(ffi_prep_closure_loc): New.
(ffi_prep_raw_closure_loc): New.
(ffi_prep_java_raw_closure_loc): New.
* src/closures.c: New file.
* src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
Replace sflags with exec_offset.
[FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
sub_segment_exec_offset): New macros.
(get_segment_flags, set_segment_flags, check_segment_merge): New
macros.
(is_mmapped_segment, is_extern_segment): Use get_segment_flags.
(add_segment, sys_alloc, create_mspace, create_mspace_with_base,
destroy_mspace): Use new macros.
(sys_alloc): Silence warning.
* Makefile.am (libffi_la_SOURCES): Add src/closures.c.
* Makefile.in: Rebuilt.
* src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
terms of ffi_prep_closure_loc.
* src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
from...
(ffi_prep_raw_closure): ... this. Re-implement in terms of the
renamed version.
* src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
adjusted from...
(ffi_prep_java_raw_closure): ... this. Re-implement in terms of
the renamed version.
* src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
(ffi_prep_closure): ... this.
* src/pa/ffi.c: Likewise.
* src/cris/ffi.c: Likewise. Adjust.
* src/frv/ffi.c: Likewise.
* src/ia64/ffi.c: Likewise.
* src/mips/ffi.c: Likewise.
* src/powerpc/ffi_darwin.c: Likewise.
* src/s390/ffi.c: Likewise.
* src/sh/ffi.c: Likewise.
* src/sh64/ffi.c: Likewise.
* src/sparc/ffi.c: Likewise.
* src/x86/ffi64.c: Likewise.
* src/x86/ffi.c: Likewise.
(FFI_INIT_TRAMPOLINE): Adjust.
(ffi_prep_raw_closure_loc): Renamed and adjusted from...
(ffi_prep_raw_closure): ... this.
* src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
(ffi_prep_closure): ... this.
(flush_icache): Adjust.
boehm-gc/ChangeLog:
* include/gc.h (GC_REGISTER_FINALIZER_UNREACHABLE): New.
(GC_register_finalizer_unreachable): Declare.
(GC_debug_register_finalizer_unreachable): Declare.
* finalize.c (GC_unreachable_finalize_mark_proc): New.
(GC_register_finalizer_unreachable): New.
(GC_finalize): Handle it.
* dbg_mlc.c (GC_debug_register_finalizer_unreachable): New.
(GC_debug_register_finalizer_no_order): Fix whitespace.
libjava/ChangeLog:
* include/jvm.h (_Jv_ClosureListFinalizer): New.
(_Jv_Linker::create_error_method): Adjust.
* boehm.cc (_Jv_ClosureListFinalizer): New.
* nogc.cc (_Jv_ClosureListFinalizer): New.
* java/lang/Class.h (class _Jv_ClosureList): New.
(class java::lang::Class): Declare it as friend.
* java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
(_Jv_ClosureList::registerClousure): New.
* include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
(_Jv_CompiledEngine::do_get_closure_list): New.
(_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
(_Jv_IndirectCompiledClass): Add closures.
(_Jv_IndirectCompiledEngine::get_aux_info): New.
(_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
it.
(_Jv_IndirectCompiledEngine::do_get_closure_list): New.
(_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
(_Jv_InterpreterEngine::do_get_closure_list): Declare.
(_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
* interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
(node_closure): Add closure list.
(_Jv_InterpMethod::ncode): Add jclass argument. Use
ffi_closure_alloc and the separate code pointer. Register the
closure for finalization.
(_Jv_JNIMethod::ncode): Likewise.
(_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
(_Jv_InterpreterEngine::do_get_closure_list): New.
* include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
(_Jv_InterpClass): Add closures field.
(_Jv_JNIMethod::ncode): Adjust.
* defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
(_Jv_ClassReader::handleMethodsEnd): Likewise.
* link.cc (struct method_closure): Add closure list.
(_Jv_Linker::create_error_method): Add jclass argument. Use
ffi_closure_alloc and the separate code pointer. Register the
closure for finalization.
(_Jv_Linker::link_symbol_table): Remove outdated comment about
sharing of otable and atable. Adjust.
* java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
list.
(ncode): Add jclass argument. Use ffi_closure_alloc and the
separate code pointer. Register the closure for finalization.
(java::lang::reflect::VMProxy::generateProxyClass): Adjust.
* testsuite/libjava.jar/TestClosureGC.java: New.
* testsuite/libjava.jar/TestClosureGC.out: New.
* testsuite/libjava.jar/TestClosureGC.xfail: New.
* testsuite/libjava.jar/TestClosureGC.jar: New.
From-SVN: r122652
2007-03-07 07:27:25 +00:00
Alexandre Oliva
dd77833100
dlmalloc.c: New file, imported version 2.8.3 of Doug Lea's malloc.
...
* src/dlmalloc.c: New file, imported version 2.8.3 of Doug
Lea's malloc.
From-SVN: r122651
2007-03-07 07:20:20 +00:00
Brooks Moses
b5f8d49b84
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122440
2007-03-01 15:51:37 -08:00
Andreas Krebbel
7a23933bdd
ffi.c (ffi_prep_args, [...]): Add long double handling.
...
2007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
* src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
ffi_closure_helper_SYSV): Add long double handling.
From-SVN: r121879
2007-02-13 07:54:40 +00:00
Jakub Jelinek
8aaf4681da
linux64.S (ffi_call_LINUX64): Move restore of r2 immediately after bctrl instruction.
...
* src/powerpc/linux64.S (ffi_call_LINUX64): Move restore of r2
immediately after bctrl instruction.
From-SVN: r121498
2007-02-02 13:28:27 +01:00
Alexandre Oliva
0eb5e2b93d
Makefile.am (all-recursive, [...]): Add missing targets.
...
* Makefile.am (all-recursive, install-recursive,
mostlyclean-recursive, clean-recursive, distclean-recursive,
maintainer-clean-recursive): Add missing targets.
* Makefile.in: Rebuilt.
From-SVN: r120892
2007-01-18 07:17:57 +00:00
Jack Howarth
8a48946511
aclocal.m4: Regenerate to use multi.m4.
...
2007-01-17 Jack Howarth <howarth@bromo.med.uc.edu>
boehm-gc/
* aclocal.m4: Regenerate to use multi.m4.
* configure: Regenerate.
* Makefile.in: Regenerate.
zlib/
* Makefile.am: Add ACLOCAL_AMFLAGS to use multi.m4.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
libffi/
* Makefile.am: Add ACLOCAL_AMFLAGS to use multi.m4.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
libjava/
* configure.ac: Use multi.m4 from aclocal rather than custom
code. Use multi_basedir instead libgcj_basedir. Test for
/proc/self/exe when not cross-compiling.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
libjava/classpath/
* configure.ac: Use multi.m4 from aclocal rather than
custom code. Use multi_basedir instead libgcj_basedir.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
libjava/libltdl/
* Makefile.am: Add ACLOCAL_AMFLAGS to use multi.m4.
* configure.ac: Use multi.m4 from aclocal rather than
custom code.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
From-SVN: r120870
2007-01-17 19:48:52 +00:00
Andreas Tobler
f4f7486bcf
configure.ac: Add TARGET for x86_64-*-darwin*.
...
2006-12-14 Andreas Tobler <a.tobler@schweiz.org>
* configure.ac: Add TARGET for x86_64-*-darwin*.
* Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources
for X86_DARWIN.
* src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*.
* src/x86/darwin64.S: New file for x86_64-*-darwin* support.
* configure: Regenerate.
* Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
* testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for
ffi_call only.
From-SVN: r119856
2006-12-14 08:34:45 +01:00
Andreas Tobler
3d5eafe232
aclocal.m4: Regenerate with aclocal -I ..
...
2006-12-13 Andreas Tobler <a.tobler@schweiz.org>
* aclocal.m4: Regenerate with aclocal -I .. as written in the
Makefile.am.
From-SVN: r119845
2006-12-13 22:04:07 +01:00
Geoffrey Keating
d5523ce18d
Fix date on ChangeLog entry
...
From-SVN: r118367
2006-11-01 05:42:01 +00:00
Geoffrey Keating
58182de357
In gcc/: PR 23067
...
In gcc/:
PR 23067
* c-decl.c (start_struct): Don't create self-containing
structures.
* config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
New.
* config/rs6000/rs6000-protos.h
(darwin_rs6000_special_round_type_align): New.
* config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Rewrite.
(ROUND_TYPE_ALIGN): Use darwin_rs6000_special_round_type_align.
In gcc/testsuite/:
PR 23067
* gcc.target/powerpc/darwin-abi-3.c: Remove XFAIL.
* gcc.target/powerpc/darwin-abi-6.c: Remove XFAIL.
* gcc.target/powerpc/darwin-abi-7.c: Remove XFAIL.
* gcc.target/powerpc/darwin-abi-8.c: Remove XFAIL.
* gcc.target/powerpc/darwin-abi-9.c: Remove XFAIL.
* gcc.target/powerpc/darwin-abi-10.c: Remove XFAIL.
* gcc.target/powerpc/darwin-abi-11.c: Remove XFAIL.
In libobjc/:
* encoding.c (darwin_rs6000_special_round_type_align): New.
In libffi/:
* src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
(ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
Darwin.
* testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
* testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
From-SVN: r118365
2006-11-01 05:28:41 +00:00
Paolo Bonzini
a3bd50cc4b
configure.ac [...]: Set X86_DARWIN symbol and conditional.
...
2006-10-10 Paolo Bonzini <bonzini@gnu.org>
Sandro Tolaini <tolaini@libero.it>
* configure.ac [i*86-*-darwin*]: Set X86_DARWIN symbol and
conditional.
* configure: Regenerated.
* Makefile.am (nodist_libffi_la_SOURCES) [X86_DARWIN]: New case.
(EXTRA_DIST): Add src/x86/darwin.S.
* Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* src/x86/ffi.c (ffi_prep_cif_machdep) [X86_DARWIN]: Treat like
X86_WIN32, and additionally align stack to 16 bytes.
* src/x86/darwin.S: New, based on sysv.S.
* src/prep_cif.c (ffi_prep_cif) [X86_DARWIN]: Align > 8-byte structs.
Co-Authored-By: Sandro Tolaini <tolaini@libero.it>
From-SVN: r117602
2006-10-10 14:21:05 +00:00
David Daney
b095810f1b
re PR libffi/23935 ($PREFIX/include/ffi.h needs to go to a target- and -version-dependent location)
...
PR libffi/23935
* include/Makefile.am: Install both ffi.h and ffitarget.h in
$(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
* aclocal.m4: Regenerated for automake 1.9.6.
* Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
From-SVN: r116893
2006-09-12 16:51:43 +00:00
Andreas Tobler
110b2db465
ffi_common.h (struct): Revert accidental commit.
...
2006-08-17 Andreas Tobler <a.tobler@schweiz.ch>
* include/ffi_common.h (struct): Revert accidental commit.
From-SVN: r116230
2006-08-17 21:07:29 +02:00
Andreas Tobler
8e5fde8713
ffi_common.h: Remove lint directives.
...
2006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
* include/ffi_common.h: Remove lint directives.
* include/ffi.h.in: Likewise.
From-SVN: r116152
2006-08-15 11:36:39 +02:00
Torsten Schoenfeld
cb4132fe11
ffi.h.in (ffi_type_ulong, [...]): Define correctly for 32-bit architectures.
...
2006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
* include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
for 32-bit architectures.
* testsuite/libffi.call/return_ul.c: New test case.
From-SVN: r115739
2006-07-25 22:01:22 +02:00
David Daney
0d24c3fa6f
closure_fn6.c: Remove xfail for mips, xfail remains for mips64.
...
* testsuite/libffi.call/closure_fn6.c: Remove xfail for mips,
xfail remains for mips64.
From-SVN: r115598
2006-07-19 19:52:44 +00:00
Carlos O'Donell
8665824cdc
Makefile.am: Add install-html target.
...
2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target. Add install-html to .PHONY
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* include/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
From-SVN: r114037
2006-05-24 01:45:57 +00:00
John David Anglin
84e2e37098
ffi.c (ffi_prep_args_pa32): Load floating point arguments from stack slot.
...
* pa/ffi.c (ffi_prep_args_pa32): Load floating point arguments from
stack slot.
From-SVN: r113901
2006-05-19 01:20:22 +00:00
Andreas Tobler
ac6ed182ed
README: Remove notice about 'Crazy Comments'.
...
2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
* README: Remove notice about 'Crazy Comments'.
* src/debug.c: Remove lint directives. Cleanup white spaces.
* src/java_raw_api.c: Likewise.
* src/prep_cif.c: Likewise.
* src/raw_api.c: Likewise.
* src/ffitest.c: Delete. No longer needed, all test cases migrated
to the testsuite.
* src/arm/ffi.c: Remove lint directives.
* src/m32r/ffi.c: Likewise.
* src/pa/ffi.c: Likewise.
* src/powerpc/ffi.c: Likewise.
* src/powerpc/ffi_darwin.c: Likewise.
* src/sh/ffi.c: Likewise.
* src/sh64/ffi.c: Likewise.
* src/x86/ffi.c: Likewise.
* testsuite/libffi.call/float2.c: Likewise.
* testsuite/libffi.call/promotion.c: Likewise.
* testsuite/libffi.call/struct1.c: Likewise.
From-SVN: r113181
2006-04-22 23:17:35 +02:00
Andreas Tobler
b721158568
hpux32.S: Correct unwind offset calculation for ffi_closure_pa32.
...
2006-04-13 Andreas Tobler <a.tobler@schweiz.ch>
* src/pa/hpux32.S: Correct unwind offset calculation for
ffi_closure_pa32.
* src/pa/linux.S: Likewise.
From-SVN: r112904
2006-04-13 00:56:19 +02:00
James E Wilson
86066f9bd4
Fix IA-64 problems with denorms getting clobbered by type conversions.
...
PR libgcj/26483
* src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
(hfa_type_load): Call stf_spill.
(hfa_type_store): Call ldf_fill.
(ffi_call): Adjust calls to above routines. Add local temps for
macro result.
From-SVN: r112900
2006-04-12 15:10:49 -07:00
Matthias Klose
615baed708
libjava.exp (libjava_init): Recognize multilib directory names containing underscores.
...
gcc/testsuite:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libffi:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libgomp:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libjava:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libmudflap:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libstdc++:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
From-SVN: r112833
2006-04-10 21:34:19 +00:00
James E Wilson
8e7a2b58e7
For PR 26483, IA-64 denorm failure due to unwanted rounding.
...
* testsuite/libffi.call/float4.c: New testcase.
From-SVN: r112768
2006-04-07 16:04:15 -07:00
John David Anglin
e6c300efaa
Makefile.am: Add PA_HPUX port.
...
2006-04-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Andreas Tobler <a.tobler@schweiz.ch>
* Makefile.am: Add PA_HPUX port.
* Makefile.in: Regenerate.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* configure.ac: Add PA_HPUX rules.
* configure: Regenerate.
* src/pa/ffitarget.h: Rename linux target to PA_LINUX.
Add PA_HPUX and PA64_HPUX.
Rename FFI_LINUX ABI to FFI_PA32 ABI.
(FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
(FFI_TYPE_SMALL_STRUCT2): Define.
(FFI_TYPE_SMALL_STRUCT4): Likewise.
(FFI_TYPE_SMALL_STRUCT8): Likewise.
(FFI_TYPE_SMALL_STRUCT3): Redefine.
(FFI_TYPE_SMALL_STRUCT5): Likewise.
(FFI_TYPE_SMALL_STRUCT6): Likewise.
(FFI_TYPE_SMALL_STRUCT7): Likewise.
* src/pa/ffi.c (ROUND_DOWN): Delete.
(fldw, fstw, fldd, fstd): Use '__asm__'.
(ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
(ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
Simplify incrementing of stack slot variable. Change type of local
'n' to unsigned int.
(ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
double on PA_HPUX.
(ffi_prep_cif_machdep): Likewise.
(ffi_call): Likewise.
(ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
return type to ffi_status. Simplify incrementing of stack slot
variable. Only copy floating point argument registers when PA_LINUX
is true. Reformat debug statement.
Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
FFI_TYPE_SMALL_STRUCT8.
(ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
declaration.
(ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
Add nops to cache flush. Add trampoline for PA_HPUX.
* src/pa/hpux32.S: New file.
* src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
ffi_prep_args_LINUX to ffi_prep_args_pa32.
Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
argument type checks so that common argument types appear first.
(ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
ffi_closure_inner_LINUX to ffi_closure_inner_pa32.
Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch>
From-SVN: r112719
2006-04-05 23:26:34 +02:00
Alan Modra
75b8b1becb
ffitarget.h (enum ffi_abi): Add FFI_LINUX.
...
* src/powerpc/ffitarget.h (enum ffi_abi): Add FFI_LINUX. Default
for 32-bit using IBM extended double format. Fix FFI_LAST_ABI.
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Handle linux variant of
FFI_TYPE_LONGDOUBLE.
(ffi_prep_args64): Assert using IBM extended double.
(ffi_prep_cif_machdep): Don't munge FFI_TYPE_LONGDOUBLE type.
Handle FFI_LINUX FFI_TYPE_LONGDOUBLE return and args.
(ffi_call): Handle FFI_LINUX.
(ffi_closure_helper_SYSV): Non FFI_LINUX long double return needs
gpr3 return pointer as for struct return. Handle FFI_LINUX
FFI_TYPE_LONGDOUBLE return and args. Don't increment "nf"
unnecessarily.
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Load both f1 and f2
for FFI_TYPE_LONGDOUBLE. Move epilogue insns into case table.
Don't use r6 as pointer to results, instead use sp offset. Don't
make a special call to load lr with case table address, instead
use offset from previous call.
* src/powerpc/sysv.S (ffi_call_SYSV): Save long double return.
* src/powerpc/linux64.S (ffi_call_LINUX64): Simplify long double
return.
From-SVN: r112340
2006-03-24 09:45:46 +10:30
Kaz Kojima
697701ad65
ffi.c (ffi_prep_cif_machdep): Handle float arguments passed with FP registers correctly.
...
* src/sh64/ffi.c (ffi_prep_cif_machdep): Handle float arguments
passed with FP registers correctly.
(ffi_closure_helper_SYSV): Likewise.
* src/sh64/sysv.S: Likewise.
From-SVN: r112083
2006-03-15 11:50:24 +00:00
Andreas Tobler
b295c471c2
unwindtest.cc (closure_test_fn): Mark cif, args and userdata unused.
...
2006-03-01 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.special/unwindtest.cc (closure_test_fn): Mark cif,
args and userdata unused.
(closure_test_fn1): Mark cif and userdata unused.
(main): Remove unused res.
From-SVN: r111583
2006-03-01 00:18:01 +01:00
Andreas Tobler
9fdeb13b0e
call.exp: Adjust FSF address.
...
2006-02-28 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.call/call.exp: Adjust FSF address. Add test runs for
-O2, -O3, -Os and the warning flags -W -Wall.
* testsuite/libffi.special/special.exp: Likewise.
* testsuite/libffi.call/ffitest.h: Add an __UNUSED__ macro to mark
unused parameter unused for gcc or else do nothing.
* testsuite/libffi.special/ffitestcxx.h: Likewise.
* testsuite/libffi.call/cls_12byte.c (cls_struct_12byte_gn): Mark cif
and userdata unused.
* testsuite/libffi.call/cls_16byte.c (cls_struct_16byte_gn): Likewise.
* testsuite/libffi.call/cls_18byte.c (cls_struct_18byte_gn): Likewise.
* testsuite/libffi.call/cls_19byte.c (cls_struct_19byte_gn): Likewise.
* testsuite/libffi.call/cls_1_1byte.c (cls_struct_1_1byte_gn): Likewise.
* testsuite/libffi.call/cls_20byte.c (cls_struct_20byte_gn): Likewise.
* testsuite/libffi.call/cls_20byte1.c (cls_struct_20byte_gn): Likewise.
* testsuite/libffi.call/cls_24byte.c (cls_struct_24byte_gn): Likewise.
* testsuite/libffi.call/cls_2byte.c (cls_struct_2byte_gn): Likewise.
* testsuite/libffi.call/cls_3_1byte.c (cls_struct_3_1byte_gn): Likewise.
* testsuite/libffi.call/cls_3byte1.c (cls_struct_3byte_gn): Likewise.
* testsuite/libffi.call/cls_3byte2.c (cls_struct_3byte_gn1): Likewise.
* testsuite/libffi.call/cls_4_1byte.c (cls_struct_4_1byte_gn): Likewise.
* testsuite/libffi.call/cls_4byte.c (cls_struct_4byte_gn): Likewise.
* testsuite/libffi.call/cls_5_1_byte.c (cls_struct_5byte_gn): Likewise.
* testsuite/libffi.call/cls_5byte.c (cls_struct_5byte_gn): Likewise.
* testsuite/libffi.call/cls_64byte.c (cls_struct_64byte_gn): Likewise.
* testsuite/libffi.call/cls_6_1_byte.c (cls_struct_6byte_gn): Likewise.
* testsuite/libffi.call/cls_6byte.c (cls_struct_6byte_gn): Likewise.
* testsuite/libffi.call/cls_7_1_byte.c (cls_struct_7byte_gn): Likewise.
* testsuite/libffi.call/cls_7byte.c (cls_struct_7byte_gn): Likewise.
* testsuite/libffi.call/cls_8byte.c (cls_struct_8byte_gn): Likewise.
* testsuite/libffi.call/cls_9byte1.c (cls_struct_9byte_gn): Likewise.
* testsuite/libffi.call/cls_9byte2.c (cls_struct_9byte_gn): Likewise.
* testsuite/libffi.call/cls_align_double.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_float.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_longdouble.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_pointer.c (cls_struct_align_fn): Cast
void* to avoid compiler warning.
(main): Likewise.
(cls_struct_align_gn): Mark cif and userdata unused.
* testsuite/libffi.call/cls_align_sint16.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_sint32.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_sint64.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_uint16.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_align_uint32.c (cls_struct_align_gn):
Likewise.
* testsuite/libffi.call/cls_double.c (cls_ret_double_fn): Likewise.
* testsuite/libffi.call/cls_float.c (cls_ret_float_fn): Likewise.
* testsuite/libffi.call/cls_multi_schar.c (test_func_gn): Mark cif and
data unused.
(main): Cast res_call to silence gcc.
* testsuite/libffi.call/cls_multi_sshort.c (test_func_gn): Mark cif and
data unused.
(main): Cast res_call to silence gcc.
* testsuite/libffi.call/cls_multi_sshortchar.c (test_func_gn): Mark cif
and data unused.
(main): Cast res_call to silence gcc.
* testsuite/libffi.call/cls_multi_uchar.c (test_func_gn): Mark cif and
data unused.
(main): Cast res_call to silence gcc.
* testsuite/libffi.call/cls_multi_ushort.c (test_func_gn): Mark cif and
data unused.
(main): Cast res_call to silence gcc.
* testsuite/libffi.call/cls_multi_ushortchar.c (test_func_gn): Mark cif
and data unused.
(main): Cast res_call to silence gcc.
* testsuite/libffi.call/cls_schar.c (cls_ret_schar_fn): Mark cif and
userdata unused.
(cls_ret_schar_fn): Cast printf parameter to silence gcc.
* testsuite/libffi.call/cls_sint.c (cls_ret_sint_fn): Mark cif and
userdata unused.
(cls_ret_sint_fn): Cast printf parameter to silence gcc.
* testsuite/libffi.call/cls_sshort.c (cls_ret_sshort_fn): Mark cif and
userdata unused.
(cls_ret_sshort_fn): Cast printf parameter to silence gcc.
* testsuite/libffi.call/cls_uchar.c (cls_ret_uchar_fn): Mark cif and
userdata unused.
(cls_ret_uchar_fn): Cast printf parameter to silence gcc.
* testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Mark cif and
userdata unused.
(cls_ret_uint_fn): Cast printf parameter to silence gcc.
* testsuite/libffi.call/cls_ulonglong.c (cls_ret_ulonglong_fn): Mark cif
and userdata unused.
* testsuite/libffi.call/cls_ushort.c (cls_ret_ushort_fn): Mark cif and
userdata unused.
(cls_ret_ushort_fn): Cast printf parameter to silence gcc.
* testsuite/libffi.call/float.c (floating): Remove unused parameter e.
* testsuite/libffi.call/float1.c (main): Remove unused variable i.
Cleanup white spaces.
* testsuite/libffi.call/negint.c (checking): Remove unused variable i.
* testsuite/libffi.call/nested_struct.c (cls_struct_combined_gn): Mark
cif and userdata unused.
* testsuite/libffi.call/nested_struct1.c (cls_struct_combined_gn):
Likewise.
* testsuite/libffi.call/nested_struct10.c (B_gn): Likewise.
* testsuite/libffi.call/nested_struct2.c (B_fn): Adjust printf
formatters to silence gcc.
(B_gn): Mark cif and userdata unused.
* testsuite/libffi.call/nested_struct3.c (B_gn): Mark cif and userdata
unused.
* testsuite/libffi.call/nested_struct4.c: Mention related PR.
(B_gn): Mark cif and userdata unused.
* testsuite/libffi.call/nested_struct5.c (B_gn): Mark cif and userdata
unused.
* testsuite/libffi.call/nested_struct6.c: Mention related PR.
(B_gn): Mark cif and userdata unused.
* testsuite/libffi.call/nested_struct7.c (B_gn): Mark cif and userdata
unused.
* testsuite/libffi.call/nested_struct8.c (B_gn): Likewise.
* testsuite/libffi.call/nested_struct9.c (B_gn): Likewise.
* testsuite/libffi.call/problem1.c (stub): Likewise.
* testsuite/libffi.call/pyobjc-tc.c (main): Cast the result to silence
gcc.
* testsuite/libffi.call/return_fl2.c (return_fl): Add the note mentioned
in the last commit for this test case in the test case itself.
* testsuite/libffi.call/closure_fn0.c (closure_test_fn0): Mark cif as
unused.
* testsuite/libffi.call/closure_fn1.c (closure_test_fn1): Likewise.
* testsuite/libffi.call/closure_fn2.c (closure_test_fn2): Likewise.
* testsuite/libffi.call/closure_fn3.c (closure_test_fn3): Likewise.
* testsuite/libffi.call/closure_fn4.c (closure_test_fn0): Likewise.
* testsuite/libffi.call/closure_fn5.c (closure_test_fn5): Likewise.
* testsuite/libffi.call/closure_fn6.c (closure_test_fn0): Likewise.
From-SVN: r111582
2006-03-01 00:12:00 +01:00
Kaz Kojima
0a4e2bb585
sysv.S: Fix register numbers in the FDE for ffi_closure_SYSV.
...
* src/sh/sysv.S: Fix register numbers in the FDE for
ffi_closure_SYSV.
From-SVN: r111362
2006-02-22 11:26:05 +00:00
Andreas Tobler
723e5d5a24
libffi: testsuite fix for ix86.
...
2006-02-20 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.call/return_fl2.c (return_fl): Remove static
declaration to avoid a false negative on ix86. See PR323.
From-SVN: r111314
2006-02-20 22:10:14 +01:00
Kaz Kojima
e097f8873d
ffi.c (ffi_closure_helper_SYSV): Remove unused variable and cast integer to void * if needed.
...
* src/sh/ffi.c (ffi_closure_helper_SYSV): Remove unused variable
and cast integer to void * if needed. Update the pointer to
the FP register saved area correctly.
From-SVN: r111225
2006-02-18 00:35:13 +00:00
Andreas Tobler
1a4878f752
re PR target/25630 (darwin-ppc, wrong alignment of nested structs)
...
2006-02-17 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.call/nested_struct6.c: XFAIL this test until PR25630
is fixed.
* testsuite/libffi.call/nested_struct4.c: Likewise.
From-SVN: r111208
2006-02-17 21:52:38 +01:00
Andreas Tobler
6429d58f83
return_dbl.c: New test case.
...
2006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.call/return_dbl.c: New test case.
* testsuite/libffi.call/return_dbl1.c: Likewise.
* testsuite/libffi.call/return_dbl2.c: Likewise.
* testsuite/libffi.call/return_fl.c: Likewise.
* testsuite/libffi.call/return_fl1.c: Likewise.
* testsuite/libffi.call/return_fl2.c: Likewise.
* testsuite/libffi.call/return_fl3.c: Likewise.
* testsuite/libffi.call/closure_fn6.c: Likewise.
From-SVN: r111156
2006-02-16 23:29:01 +01:00
Andreas Tobler
b47b5e089b
nested_struct2.c: Remove ffi_type_mylong definition.
...
2006-02-16 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.call/nested_struct2.c: Remove ffi_type_mylong
definition.
* testsuite/libffi.call/ffitest.h: Add ffi_type_mylong definition
here to be used by other test cases too.
* testsuite/libffi.call/nested_struct10.c: New test case.
* testsuite/libffi.call/nested_struct9.c: Likewise.
* testsuite/libffi.call/nested_struct8.c: Likewise.
* testsuite/libffi.call/nested_struct7.c: Likewise.
* testsuite/libffi.call/nested_struct6.c: Likewise.
* testsuite/libffi.call/nested_struct5.c: Likewise.
* testsuite/libffi.call/nested_struct4.c: Likewise.
From-SVN: r111151
2006-02-16 22:03:16 +01:00
Andreas Tobler
9abe31d43a
configure.ac: Enable libffi for sparc64-*-freebsd*.
...
2006-01-21 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Enable libffi for sparc64-*-freebsd*.
* configure: Rebuilt.
From-SVN: r110073
2006-01-21 22:25:21 +01:00
Jakub Jelinek
71aa1a7029
sysv.S (smst_two_register): Don't call __ashldi3, instead do the shifting inline.
...
* src/powerpc/sysv.S (smst_two_register): Don't call __ashldi3,
instead do the shifting inline.
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't compute %r5
shift count unconditionally. Simplify load sequences for 1, 2, 3, 4
and 8 byte structs, for the remaining struct sizes don't call
__lshrdi3, instead do the shifting inline.
From-SVN: r109879
2006-01-18 09:04:52 +01:00
Thiemo Seufer
8a39029d19
ffitarget.h: Remove obsolete sgidefs.h include.
...
2005-12-07 Thiemo Seufer <ths@networkno.de>
* src/mips/ffitarget.h: Remove obsolete sgidefs.h include. Add
missing parentheses.
* src/mips/o32.S (ffi_call_O32): Code formatting. Define
and use A3_OFF, FP_OFF, RA_OFF. Micro-optimizations.
(ffi_closure_O32): Likewise, but with newly defined A3_OFF2,
A2_OFF2, A1_OFF2, A0_OFF2, RA_OFF2, FP_OFF2, S0_OFF2, GP_OFF2,
V1_OFF2, V0_OFF2, FA_1_1_OFF2, FA_1_0_OFF2, FA_0_1_OFF2,
FA_0_0_OFF2.
* src/mips/ffi.c (ffi_prep_args): Code formatting. Fix
endianness bugs.
(ffi_prep_closure): Improve trampoline instruction scheduling.
(ffi_closure_mips_inner_O32): Fix endianness bugs.
From-SVN: r108165
2005-12-07 14:56:38 +00:00
Alan Modra
cd4241aa71
ffi.c: Formatting.
...
* src/powerpc/ffi.c: Formatting.
(ffi_prep_args_SYSV): Avoid possible aliasing problems by using unions.
(ffi_prep_args64): Likewise.
From-SVN: r107963
2005-12-03 10:36:33 +10:30
Andreas Jaeger
44bcbae366
.cvsignore are not needed for subversion, remove them.
...
From-SVN: r106279
2005-10-31 18:20:58 +01:00
Geoffrey Keating
0363db460d
libffi-dg.exp (libffi_target_compile): For darwin, use -shared-libgcc not -lgcc_s, and explain why.
...
* testsuite/lib/libffi-dg.exp (libffi_target_compile): For
darwin, use -shared-libgcc not -lgcc_s, and explain why.
From-SVN: r104847
2005-10-01 06:11:29 +00:00
Tom Tromey
d674eb2f5c
float1.c (value_type): New typedef.
...
* testsuite/libffi.call/float1.c (value_type): New typedef.
(CANARY): New define.
(main): Check for result buffer overflow.
* src/powerpc/linux64.S: Handle linux64 long double returns.
* src/powerpc/ffi.c (FLAG_RETURNS_128BITS): New constant.
(ffi_prep_cif_machdep): Handle linux64 long double returns.
From-SVN: r104660
2005-09-26 19:56:22 +00:00
Alan Modra
2d9c5743d6
re PR target/23404 (gij trashes args of functions with more than 8 fp args)
...
PR target/23404
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
homed fp args.
(ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.
From-SVN: r103462
2005-08-25 10:24:54 +09:30
Jakub Jelinek
8a42356f48
configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
...
* configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
(AH_BOTTOM): Add FFI_HIDDEN definition.
* configure: Rebuilt.
* fficonfig.h.in: Rebuilt.
* src/powerpc/ffi.c (hidden): Remove.
(ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
* src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
.ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
* src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
add FFI_HIDDEN to its prototype.
(ffi_closure_SYSV_inner): New.
* src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
* src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
From-SVN: r103002
2005-08-11 23:18:24 +02:00
Alfred M. Szmidt
863c5508d3
re PR libffi/21819 (i*86-*-gnu* not enabled in configure.ac)
...
2005-08-10 Alfred M. Szmidt <ams@gnu.org>
PR libffi/21819:
* configure: Rebuilt.
* configure.ac: Handle i*86-*-gnu*.
From-SVN: r102953
2005-08-10 17:19:03 +00:00
Jakub Jelinek
6a26ea58f6
ppc_closure.S (ffi_closure_SYSV): Use DW_CFA_offset_extended_sf rather than DW_CFA_GNU_negative_offset_extended.
...
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
DW_CFA_offset_extended_sf rather than
DW_CFA_GNU_negative_offset_extended.
* src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
From-SVN: r102900
2005-08-09 10:06:16 +02:00
SUGIOKA Toshinobu
583a92e874
sysv.S (ffi_call_SYSV): Stop argument popping correctly on sh3.
...
* src/sh/sysv.S (ffi_call_SYSV): Stop argument popping correctly
on sh3.
(ffi_closure_SYSV): Change the stack layout for sh3 struct argument.
* src/sh/ffi.c (ffi_prep_args): Fix sh3 argument copy, when it is
partially on register.
(ffi_closure_helper_SYSV): Likewise.
(ffi_prep_cif_machdep): Don't set too many cif->flags.
From-SVN: r102298
2005-07-22 22:56:27 +00:00
Kaz Kojima
5d0317fccc
ffi.c (ffi_call): Handle small structures correctly.
...
* src/sh/ffi.c (ffi_call): Handle small structures correctly.
Remove empty line.
* src/sh64/ffi.c (simple_type): Remove.
(return_type): Handle small structures correctly.
(ffi_prep_args): Likewise.
(ffi_call): Likewise.
(ffi_closure_helper_SYSV): Likewise.
* src/sh64/sysv.S (ffi_call_SYSV): Handle 1, 2 and 4-byte return.
Emit position independent code if PIC and remove wrong datalabel
prefixes from EH data.
From-SVN: r102210
2005-07-20 23:32:01 +00:00
Andreas Tobler
8d9fd5f5eb
2005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
...
push the missing CL.
From-SVN: r102175
2005-07-19 23:17:06 +02:00
Andreas Tobler
970676420b
Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
...
2005-07-19 Andreas Tobler <a.tobler@schweiz.ch>
* Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
* Makefile.in: Regenerate.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* configure.ac: Add POWERPC_FREEBSD rules.
* configure: Regenerate.
* src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
(FFI_SYSV_TYPE_SMALL_STRUCT): Define.
* src/powerpc/ffi.c: Add flags to handle small structure returns
in ffi_call_SYSV.
(ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
Aka FFI_SYSV.
(ffi_closure_helper_SYSV): Likewise.
* src/powerpc/ppc_closure.S: Add return types for small structures.
* src/powerpc/sysv.S: Add bits to handle small structures for
final SYSV 4 ABI
From-SVN: r102174
2005-07-19 23:15:36 +02:00
Andreas Tobler
93c76f816d
cls_5_1_byte.c: New test file.
...
2005-07-10 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libffi.call/cls_5_1_byte.c: New test file.
* testsuite/libffi.call/cls_6_1_byte.c: Likewise.
* testsuite/libffi.call/cls_7_1_byte.c: Likewise.
From-SVN: r101855
2005-07-10 22:14:37 +02:00
Randolph Chung
b65da30441
ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
...
* src/pa/ffi.c (ffi_struct_type): Rename FFI_TYPE_SMALL_STRUCT1
as FFI_TYPE_SMALL_STRUCT3. Break out handling for 5-7 byte
structures. Kill compilation warnings.
(ffi_closure_inner_LINUX): Print return values as hex in debug
message. Rename FFI_TYPE_SMALL_STRUCT1 as FFI_TYPE_SMALL_STRUCT3.
Properly handle 5-7 byte structure returns.
* src/pa/ffitarget.h (FFI_TYPE_SMALL_STRUCT1)
(FFI_TYPE_SMALL_STRUCT2): Remove.
(FFI_TYPE_SMALL_STRUCT3, FFI_TYPE_SMALL_STRUCT5)
(FFI_TYPE_SMALL_STRUCT6, FFI_TYPE_SMALL_STRUCT7): Define.
* src/pa/linux.S: Mark source file as using PA1.1 assembly.
(checksmst1, checksmst2): Remove.
(checksmst3): Optimize handling of 3-byte struct returns.
(checksmst567): Properly handle 5-7 byte struct returns.
From-SVN: r101650
2005-07-06 03:37:20 +00:00
Rainer Orth
2572f1c610
re PR libffi/21943 (O32 libffi.so fails to link on IRIX 6)
...
PR libgcj/21943
* src/mips/n32.S: Enforce PIC code.
* src/mips/o32.S: Likewise.
From-SVN: r100961
2005-06-15 00:10:05 +00:00
Rainer Orth
cc786582dd
configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
...
* configure.ac: Treat i*86-*-solaris2.10 and up as X86_64.
* configure: Regenerate.
From-SVN: r100959
2005-06-14 23:37:05 +00:00
Alan Modra
6d0d376c8f
ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET to call ffi_closure_helper_SYSV.
...
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
to call ffi_closure_helper_SYSV. Append @local instead.
* src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
From-SVN: r100416
2005-06-01 10:03:09 +09:30
R. Kelley Cook
a21946f5a4
Fixup the date of last entry
...
From-SVN: r99881
2005-05-18 02:05:35 +00:00
Kelley Cook
a097ef55fc
configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
...
2005-05-03 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
* Makefile.am (ACLOCAL_AMFLAGS): Remove -I ../config.
* aclocal.m4, configure, fficonfig.h.in, Makefile.in,
include/Makefile.in, testsuite/Makefile.in: Regenerate.
From-SVN: r99879
2005-05-18 01:49:43 +00:00
Mike Stump
f4c767fdc2
* configure: Regenerate.
...
From-SVN: r99498
2005-05-10 01:43:00 +00:00
Richard Henderson
7e15b5fe4c
re PR libffi/21285 (gij fails to handle NullPointerException exception)
...
PR libffi/21285
* src/alpha/osf.S: Update unwind into to match code.
From-SVN: r99415
2005-05-08 16:23:50 -07:00
Richard Henderson
d56ea8d9a9
ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in bit 11 of flags.
...
* src/x86/ffi64.c (ffi_prep_cif_machdep): Save sse-used flag in
bit 11 of flags.
(ffi_call): Mask return type field. Pass ssecount to ffi_call_unix64.
(ffi_prep_closure): Set carry bit if sse-used flag set.
* src/x86/unix64.S (ffi_call_unix64): Add ssecount argument.
Only load sse registers if ssecount non-zero.
(ffi_closure_unix64): Only save sse registers if carry set on entry.
From-SVN: r99257
2005-05-04 21:06:38 -07:00
Ralf Corsepius
d266a2ff52
Fix typo in previous patch.
...
From-SVN: r98984
2005-04-29 15:15:01 +02:00
Ralf Corsepius
d948c2019d
configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*, powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
...
2005-05-29 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
* configure: Regenerate.
From-SVN: r98983
2005-04-29 15:03:43 +02:00
Hans-Peter Nilsson
fc0ad8d961
libffi-dg.exp (libffi-dg-test-1): In regsub use, have Tcl8.3-compatible intermediate variable.
...
* testsuite/lib/libffi-dg.exp (libffi-dg-test-1): In regsub use,
have Tcl8.3-compatible intermediate variable.
From-SVN: r98453
2005-04-20 10:59:26 +00:00
Hans-Peter Nilsson
29ede6dbb7
Add include/Makefile.in to last entry
...
From-SVN: r98333
2005-04-18 17:13:32 +00:00
Simon Posnjak
614348bbec
Makefile.am: Add CRIS support.
...
* Makefile.am: Add CRIS support.
* configure.ac: Likewise.
* Makefile.in, configure, testsuite/Makefile.in: Regenerate.
* src/cris: New directory.
* src/cris/ffi.c, src/cris/sysv.S, src/cris/ffitarget.h: New files.
* src/prep_cif.c (ffi_prep_cif): Wrap in #ifndef __CRIS__.
Co-Authored-By: Hans-Peter Nilsson <hp@axis.com>
From-SVN: r98332
2005-04-18 17:08:58 +00:00
Hans-Peter Nilsson
727e729b8f
libffi-dg.exp (libffi-dg-test-1): Replace \n with \r?\n in output tests.
...
* testsuite/lib/libffi-dg.exp (libffi-dg-test-1): Replace \n with
\r?\n in output tests.
From-SVN: r98329
2005-04-18 16:31:10 +00:00
Mike Stump
6dab073ba7
* configure: Regenerate.
...
From-SVN: r98065
2005-04-13 01:41:26 +00:00
Hans Boehm
51f55d7c89
* src/ia64/ffitarget.h (ffi_arg): Use long long instead of DI.
...
From-SVN: r97303
2005-03-31 01:22:46 +00:00
Steve Ellcey
7efa52a3e5
* src/ia64/ffitarget.h (ffi_arg) ADD DI attribute.
...
(ffi_sarg) Ditto.
* src/ia64/unix.S (ffi_closure_unix): Extend gp
to 64 bits in ILP32 mode.
Load 64 bits even for short data.
From-SVN: r97283
2005-03-30 21:49:19 +00:00
Mike Stump
1488177afe
darwin.S: Update for -m64 multilib.
...
* src/powerpc/darwin.S: Update for -m64 multilib.
* src/powerpc/darwin_closure.S: Likewise.
From-SVN: r96967
2005-03-24 00:45:38 +00:00
Zack Weinberg
c690027275
configure.ac: Do not invoke TL_AC_GCC_VERSION.
...
* configure.ac: Do not invoke TL_AC_GCC_VERSION.
Do not set tool_include_dir.
* aclocal.m4, configure, Makefile.in, testsuite/Makefile.in:
Regenerate.
* include/Makefile.am: Set gcc_version and toollibffidir.
* include/Makefile.in: Regenerate.
From-SVN: r96823
2005-03-21 18:01:47 +00:00
Andrew Haley
962eea0a03
re PR libffi/20104 (gij fails on ppc and not on x86)
...
2005-02-22 Andrew Haley <aph@redhat.com>
PR libffi/20104
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
odd-numbered register pairs for 64-bit integer types.
From-SVN: r95455
2005-02-23 14:05:13 +00:00
Andreas Tobler
1b05e8bf3c
re PR libffi/20104 (gij fails on ppc and not on x86)
...
2005-02-23 Andreas Tobler <a.tobler@schweiz.ch>
PR libffi/20104
* testsuite/libffi.call/return_ll1.c: New test case.
From-SVN: r95454
2005-02-23 14:56:01 +01:00
Janis Johnson
6027770b6e
cls_align_longdouble.c: Remove dg-options.
...
* testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
* testsuite/libffi.call/float.c: Ditto.
* testsuite/libffi.call/float2.c: Ditto.
* testsuite/libffi.call/float3.c: Ditto.
From-SVN: r94899
2005-02-11 22:33:16 +00:00
Andreas Tobler
ee31ea68f4
ffitarget.h: Remove PPC stuff which does not belong to frv.
...
2005-02-08 Andreas Tobler <a.tobler@schweiz.ch>
* src/frv/ffitarget.h: Remove PPC stuff which does not belong to frv.
From-SVN: r94747
2005-02-08 22:10:50 +01:00
Eric Botcazou
c16be7d515
special.exp (cxx_options): Add -shared-libgcc.
...
* testsuite/libffi.special/special.exp (cxx_options): Add
-shared-libgcc.
From-SVN: r93221
2005-01-12 09:06:52 +00:00
Richard Henderson
5df07255e2
types.c (FFI_AGGREGATE_TYPEDEF): Remove.
...
* src/types.c (FFI_AGGREGATE_TYPEDEF): Remove.
(FFI_TYPEDEF): Rename from FFI_INTEGRAL_TYPEDEF. Replace size and
offset parameters with a type parameter; deduce size and structure
alignment. Update all users.
From-SVN: r92775
2004-12-31 14:04:30 -08:00
Richard Henderson
81a69b1333
types.c (FFI_TYPE_POINTER): Define with sizeof.
...
* src/types.c (FFI_TYPE_POINTER): Define with sizeof.
(FFI_TYPE_LONGDOUBLE): Fix for ia64.
* src/ia64/ffitarget.h (struct ffi_ia64_trampoline_struct): Move
into ffi_prep_closure.
* src/ia64/ia64_flags.h, src/ia64/ffi.c, src/ia64/unix.S: Rewrite
from scratch.
From-SVN: r92774
2004-12-31 12:11:17 -08:00
Richard Henderson
d833cfb041
* src/x86/unix64.S: Fix typo in unwind info.
...
From-SVN: r92636
2004-12-27 01:20:10 -08:00
Richard Henderson
1a0f488c32
ffi64.c (struct register_args): Rename from stackLayout.
...
* src/x86/ffi64.c (struct register_args): Rename from stackLayout.
(enum x86_64_reg_class): Add X86_64_COMPLEX_X87_CLASS.
(merge_classes): Check for it.
(SSE_CLASS_P): New.
(classify_argument): Pass byte_offset by value; perform all updates
inside struct case.
(examine_argument): Add classes argument; handle
X86_64_COMPLEX_X87_CLASS.
(ffi_prep_args): Merge into ...
(ffi_call): ... here. Share stack frame with ffi_call_unix64.
(ffi_prep_cif_machdep): Setup cif->flags for proper structure return.
(ffi_fill_return_value): Remove.
(ffi_prep_closure): Remove dead assert.
(ffi_closure_unix64_inner): Rename from ffi_closure_UNIX64_inner.
Rewrite to use struct register_args instead of va_list. Create
flags for handling structure returns.
* src/x86/unix64.S: Remove dead strings.
(ffi_call_unix64): Rename from ffi_call_UNIX64. Rewrite to share
stack frame with ffi_call. Handle structure returns properly.
(float2sse, floatfloat2sse, double2sse): Remove.
(sse2float, sse2double, sse2floatfloat): Remove.
(ffi_closure_unix64): Rename from ffi_closure_UNIX64. Rewrite
to handle structure returns properly.
From-SVN: r92602
2004-12-25 01:54:40 -08:00
David Edelsohn
7994d50cfa
Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and PICFLAG.
...
* Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
PICFLAG.
* Makefile.in: Regenerated.
From-SVN: r91905
2004-12-08 10:48:53 -05:00
Richard Sandiford
afabd8e62c
Introduce and use config/gcc-version.m4.
...
From-SVN: r91625
2004-12-02 11:05:13 +00:00
Kelley Cook
2539bffe37
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Re-import linux-gnu case from CVS libtool to always pass_all.
...
2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Re-import linux-gnu case
from CVS libtool to always pass_all.
* libjava/configure, libffi/configure, libjava/configure,
libobjc/configure, boehm-gc/configure: Regenerated.
From-SVN: r91495
2004-11-29 23:45:23 +00:00
Kelley Cook
767f726e10
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.
...
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.
* boehm-gc/configure: Regenerate.
* libffi/configure: Regenerate.
* libgfortran/configure: Regenerate.
* libjava/configure: Regenerate.
* libobjc/configure: Regenerate.
* libstdc++-v3/configure: Regenerate.
* zlib/configure: Regenerate.
From-SVN: r91293
2004-11-25 13:43:43 +00:00
John David Anglin
a26e9a2687
* ChangeLog: Remove duplication.
...
From-SVN: r91265
2004-11-25 00:40:19 +00:00
Kelley Cook
2c92e90fa5
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case from CVS libtool to always pass_all.
...
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case
from CVS libtool to always pass_all.
* boehm-gc/configure: Regenerate.
* libffi/configure: Regenerate.
* libgfortran/configure: Regenerate.
* libjava/configure: Regenerate.
* libobjc/configure: Regenerate.
* libstdc++-v3/configure: Regenerate.
* zlib/configure: Regenerate.
From-SVN: r91200
2004-11-24 22:04:38 +00:00
John David Anglin
1df8e83465
target-libpath.exp: New file defining set_ld_library_path_env_vars and restore_ld_library_path_env_vars.
...
* lib/target-libpath.exp: New file defining set_ld_library_path_env_vars
and restore_ld_library_path_env_vars.
* g++.dg/compat/compat.exp, lib/g++.exp, lib/gcc-dg.exp,
lib/gfortran.exp, lib/objc.exp, lib/treelang.exp: Use new procs.
* ada/acats/run_acats (LD_LIBRARY_PATH): Add previous LD_LIBRARY_PATH
to LD_LIBRARY_PATH. Export LD_LIBRARY_PATH.
* testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libjava.exp,
testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
From-SVN: r91137
2004-11-24 04:39:41 +00:00
Richard Sandiford
a996709e40
o32.S (ffi_call_O32, [...]): Use jalr instead of jal.
...
* src/mips/o32.S (ffi_call_O32, ffi_closure_O32): Use jalr instead
of jal. Use an absolute encoding for the frame information.
* configure.host: Enable the interpreter for mips*-*-linux*.
From-SVN: r91116
2004-11-23 23:18:14 +00:00
Kelley Cook
b85e31b94a
Makefile.am: Remove no-dependencies.
...
2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am: Remove no-dependencies. Add ACLOCAL_AMFLAGS.
* acinclude.m4: Delete logic for sincludes.
* aclocal.m4, Makefile.in, configure: Regenerate.
* include/Makefile: Likewise.
* testsuite/Makefile: Likewise.
From-SVN: r91073
2004-11-23 04:11:31 +00:00
Eric Botcazou
bf02e7fa52
ffi.c (ffi_prep_closure): Align doubles and 64-bit integers on a 8-byte boundary.
...
* src/sparc/ffi.c (ffi_prep_closure): Align doubles and 64-bit integers
on a 8-byte boundary.
* src/sparc/v8.S (ffi_closure_v8): Reserve frame space for
arguments.
From-SVN: r91022
2004-11-22 18:35:16 +00:00
Richard Earnshaw
f20459f1b2
ffi.c (ffi_prep_cif_machdep): Handle functions that return long long values.
...
* src/arm/ffi.c (ffi_prep_cif_machdep): Handle functions that return
long long values. Round stack allocation to a multiple of 8 bytes
for ATPCS compatibility.
* src/arm/sysv.S (ffi_call_SYSV): Rework to avoid use of APCS register
names. Handle returning long long types. Add Thumb and interworking
support. Improve soft-float code.
From-SVN: r89681
2004-10-27 15:10:22 +00:00
Richard Earnshaw
fdc6959794
libffi-db.exp (load_gcc_lib): New function.
...
* testsuite/lib/libffi-db.exp (load_gcc_lib): New function.
(libffi_exit): New function.
(libffi_init): Build the testglue wrapper if needed.
From-SVN: r89636
2004-10-27 10:56:06 +00:00
Eric Botcazou
1e02510f05
re PR other/18138 (libgcc_s.so.1 not found by 64-bit testsuite)
...
gcc/testsuite:
PR other/18138
* lib/g++.exp: Accept more than one multilib libgcc.
* lib/gcc-dg.exp: Likewise.
* lib/objc.exp: Likewise.
* lib/treelang.exp: Likewise.
* lib/gfortran.exp: Likewise.
libffi:
PR other/18138
* testsuite/lib/libffi-dg.exp: Accept more than one multilib
libgcc.
libjava:
PR other/18138
* testsuite/lib/libjava.exp: Accept more than one multilib
libgcc.
libmudflap!:
PR other/18138
* testsuite/lib/libmudflap.exp: Accept more than one multilib
libgcc.
libstdc++-v3:
PR other/18138
* testsuite/lib/libstdc++.exp: Accept more than one multilib
libgcc.
From-SVN: r89528
2004-10-25 09:01:15 +00:00
Kazuhiro Inaoka
d9a193b251
(FFII_CLOSURES): Set to 0.
...
From-SVN: r89527
2004-10-25 08:55:44 +00:00
Kaz Kojima
1fddb058e1
sysv.S (ffi_call_SYSV): Don't align for double data.
...
* src/sh/sysv.S (ffi_call_SYSV): Don't align for double data.
* testsuite/libffi.call/float3.c: New test case.
From-SVN: r89366
2004-10-21 06:00:41 +00:00
Kaz Kojima
e0d3b4528f
ffi.c (ffi_prep_closure): Set T bit in trampoline for the function returning a structure pointed with R2.
...
* src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
the function returning a structure pointed with R2.
* src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
the structure return value if T bit set. Emit position
independent code and EH data if PIC.
From-SVN: r89254
2004-10-18 23:12:20 +00:00
Kazuhiro Inaoka
a472e9d4e6
Makefile.am: Add m32r support.
...
* Makefile.am: Add m32r support.
* configure.ac: Likewise.
* Makefile.in: Regenerate.
* confiugre: Regenerate.
* src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
(uint64, sint64, double, longdouble)
* src/m32r: New directory.
* src/m32r/ffi.c: New file.
* src/m32r/sysv.S: Likewise.
* src/m32r/ffitarget.h: Likewise.
From-SVN: r88993
2004-10-13 17:20:24 +00:00
Kaz Kojima
3d47e9caa9
* testsuite/libffi.call/negint.c: New test case.
...
From-SVN: r88421
2004-10-02 07:02:41 +00:00