1. 24 May, 2007 1 commit
    • ltmain.sh: Update from ToT Libtool. · 1cf3d07d
              * ltmain.sh: Update from ToT Libtool.
              * libtool.m4: Update from ToT Libtool.
              * ltsugar.m4: New. Update from ToT Libtool.
              * ltversion.m4: New. Update from ToT Libtool.
              * ltoptions.m4: New. Update from ToT Libtool.
              * ltconfig: Remove.
              * ltcf-c.sh: Remove.
              * ltcf-cxx.sh: Remove.
              * ltcf-gcj.sh: Remove.
      	* Regenerate all subdirs
      
      From-SVN: r125032
      Steve Ellcey committed
  2. 10 May, 2007 3 commits
  3. 13 Apr, 2007 1 commit
  4. 06 Apr, 2007 2 commits
    • configure.ac: Tidy target case. · bf8da5fc
              * configure.ac: Tidy target case.
              (HAVE_LONG_DOUBLE): Allow the target to override.
              * configure: Regenerate.
              * include/ffi.h.in: Don't define ffi_type_foo if
              LIBFFI_HIDE_BASIC_TYPES is defined.
              (ffi_type_longdouble): If not HAVE_LONG_DOUBLE, define
              to ffi_type_double.
              * types.c (LIBFFI_HIDE_BASIC_TYPES): Define.
              (FFI_TYPEDEF, ffi_type_void): Mark the data const.
              (ffi_type_longdouble): Special case for Alpha.  Don't define
              if long double == double.
      
              * src/alpha/ffi.c (FFI_TYPE_LONGDOUBLE): Assert unique value.
              (ffi_prep_cif_machdep): Handle it as the 128-bit type.
              (ffi_call, ffi_closure_osf_inner): Likewise.
              (ffi_closure_osf_inner): Likewise.  Mark hidden.
              (ffi_call_osf, ffi_closure_osf): Mark hidden.
              * src/alpha/ffitarget.h (FFI_LAST_ABI): Tidy definition.
              * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
              (load_table): Handle 128-bit long double.
      
              * testsuite/libffi.call/float4.c: Add -mieee for alpha.
      
      From-SVN: r123622
      Richard Henderson committed
    • re PR libffi/31491 (libffi: bug in example program) · 8669fed1
      	PR libffi/31491:
      	* README: Fixed bug in example.
      
      From-SVN: r123617
      Tom Tromey committed
  5. 03 Apr, 2007 1 commit
    • closures.c: Include sys/statfs.h. · f0920e6c
      	* src/closures.c: Include sys/statfs.h.
      	(_GNU_SOURCE): Define on Linux.
      	(FFI_MMAP_EXEC_SELINUX): Define.
      	(selinux_enabled): New variable.
      	(selinux_enabled_check): New function.
      	(is_selinux_enabled): Define.
      	(dlmmap): Use it.
      
      	* configure.ac (NO_EXECUTE_PERMISSION): Set by default.
      	* configure: Rebuilt.
      
      From-SVN: r123457
      Jakub Jelinek committed
  6. 24 Mar, 2007 1 commit
  7. 08 Mar, 2007 1 commit
  8. 07 Mar, 2007 2 commits
    • ffi.h.in (ffi_closure_alloc, [...]): New. · 18fa3240
      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
      Alexandre Oliva committed
    • dlmalloc.c: New file, imported version 2.8.3 of Doug Lea's malloc. · dd778331
      * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
      Lea's malloc.
      
      From-SVN: r122651
      Alexandre Oliva committed
  9. 01 Mar, 2007 1 commit
  10. 13 Feb, 2007 1 commit
  11. 02 Feb, 2007 1 commit
  12. 18 Jan, 2007 1 commit
  13. 17 Jan, 2007 1 commit
    • aclocal.m4: Regenerate to use multi.m4. · 8a489465
      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
      Jack Howarth committed
  14. 14 Dec, 2006 1 commit
    • configure.ac: Add TARGET for x86_64-*-darwin*. · f4f7486b
      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
      Andreas Tobler committed
  15. 13 Dec, 2006 1 commit
  16. 01 Nov, 2006 2 commits
    • Fix date on ChangeLog entry · d5523ce1
      From-SVN: r118367
      Geoffrey Keating committed
    • In gcc/: PR 23067 · 58182de3
      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
      Geoffrey Keating committed
  17. 10 Oct, 2006 1 commit
    • configure.ac [...]: Set X86_DARWIN symbol and conditional. · a3bd50cc
      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
      Paolo Bonzini committed
  18. 12 Sep, 2006 1 commit
  19. 17 Aug, 2006 1 commit
  20. 15 Aug, 2006 1 commit
  21. 25 Jul, 2006 1 commit
  22. 19 Jul, 2006 1 commit
  23. 24 May, 2006 1 commit
    • Makefile.am: Add install-html target. · 8665824c
      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
      Carlos O'Donell committed
  24. 19 May, 2006 1 commit
  25. 22 Apr, 2006 1 commit
    • README: Remove notice about 'Crazy Comments'. · ac6ed182
      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
      Andreas Tobler committed
  26. 12 Apr, 2006 2 commits
  27. 10 Apr, 2006 1 commit
    • libjava.exp (libjava_init): Recognize multilib directory names containing underscores. · 615baed7
      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
      Matthias Klose committed
  28. 07 Apr, 2006 1 commit
  29. 05 Apr, 2006 1 commit
    • Makefile.am: Add PA_HPUX port. · e6c300ef
      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
      John David Anglin committed
  30. 23 Mar, 2006 1 commit
    • ffitarget.h (enum ffi_abi): Add FFI_LINUX. · 75b8b1be
      	* 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
      Alan Modra committed
  31. 15 Mar, 2006 1 commit
  32. 28 Feb, 2006 2 commits
    • unwindtest.cc (closure_test_fn): Mark cif, args and userdata unused. · b295c471
      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
      Andreas Tobler committed
    • call.exp: Adjust FSF address. · 9fdeb13b
      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
      Andreas Tobler committed
  33. 22 Feb, 2006 1 commit