summaryrefslogtreecommitdiff
path: root/libjava/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* * configure.ac (INTERPRETER): New AM_CONDITIONAL.daney2007-07-311-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * scripts/makemake.tcl (package_map): Mark jdwp and jvmti packages as being for interpreter only. Place interpreter related files in 'if INTERPRETER' block. (interpreter_package_files): New list. (interpreter_header_vars): Ditto. (emit_package_rule_to_list): Renamed from emit_package_rule with new target list parameter. (emit_package_rule): Rewritten to call emit_package_rule_to_list. (emit_interpreter_rule): New function. (emit_source_var): Place interpreter related files in interpreter_header_vars. * Makefile.am (ACLOCAL_AMFLAGS): Add -I libltdl. (libgcj_interpret_source_files): New variable. (libgcj_la_SOURCES): Move jvmti.cc and interpret.cc to libgcj_interpret_source_files and include libgcj_interpret_source_files. (nat_jdwp_source_files): New variable. (nat_jvmti_source_files): Ditto. (nat_source_files): Move jdwp and jvmti related files to nat_jdwp_source_files and nat_jvmti_source_files and include nat_jdwp_source_files and nat_jvmti_source_files. * Makefile.in: Regenerate. * include/Makefile.in: Ditto. * testsuite/Makefile.in: Ditto. * gcj/Makefile.in: Ditto. * sources.am: Ditto. * configure: Ditto. * include/config.h.in: Ditto. * interpret.cc: Remove #ifdef INTERPRETER block. * stacktrace.cc (UnwindTraceFn): Do not handle proxy frames if interpreter disabled. * include/java-interp.h (_Jv_FrameType): Move outside of #ifdef INTERPRETER block. * include/execution.h (_Jv_IndirectCompiledEngine::do_get_closure_list, _Jv_InterpreterEngine, _Jv_soleInterpreterEngine): Place in #ifdef INTERPRETER block. * jni.cc (jvmti.h, jvmti-int.h): Only include if INTERPRETER is defined. (_Jv_JNI_PopSystemFrame, _Jv_JNI_GetEnv): Only do jvmti processing if INTERPRETER is defined. * prims.cc (jvmti.h, jvmti-int.h, Jdwp.h, VMVirtualMachine.h): Only include if INTERPRETER is defined. (defaultJdwpOptions, jdwpOptions, jvmti_agent_onload_func, jvmti_agent_onunload_func, jvmti_agentonload, jvmti_agentonunload, jvmti_agent_opts, load_jvmti_agent): Only define if INTERPRETER is defined. (parse_x_arg): Only process 'runjdwp:' if INTERPRETER is defined. (parse_init_args): Only process jvmti related options if INTERPRETER is defined. (_Jv_CreateJavaVM): Only call _Jv_JVMTI_Init if INTERPRETER is defined. (_Jv_RunMain): Only do jvmti and jdwp processing if INTERPRETER is defined. * link.cc (jvmti.h, jvmti-int.h): Only include if INTERPRETER is defined. (_Jv_ThrowNoClassDefFoundError, _Jv_Linker::create_error_method): Define if if INTERPRETER is not defined. (_Jv_Linker::wait_for_state): Only do jvmti proccessing if INTERPRETER is defined. * boehm.cc (closure_list_pointer, finalize_closure_list, _Jv_ClosureListFinalizer): Only define if INTERPRETER is defined. * java/lang/natThread.cc (jvmti.h, jvmti-int.h): Only include if INTERPRETER is defined. (finish_, _Jv_NotifyThreadStart): Only do jvmti proccessing if INTERPRETER is defined. * java/lang/Class.h (_Jv_InterpreterEngine): Move declaration and friend declaration inside #ifdef INTERPRETER block. * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures, _Jv_ClosureList::registerClosure, _Jv_GetInterpClassSourceFile): Only define if INTERPRETER is defined. * java/lang/reflect/natVMProxy.cc (UnsupportedOperationException.h): Include. (generateProxyClass): Throw UnsupportedOperationException unless INTERPRETER is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127097 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-07-13 Andrew Haley <aph@redhat.com>aph2007-07-134-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * libgcj.ver: Add __gcj_personality_sj0. * testsuite/libjava.jvmti/jvmti-interp.exp: Likewise. * testsuite/libjava.jni/jni.exp: Use -fdollars-in-identifiers. * testsuite/libjava.jni/cni.exp: Use -fdollars-in-identifiers. * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): Likewise. * gnu/classpath/natVMStackWalker.cc (getCallingClassLoader): Check klass is non-null. * java/lang/reflect/natField.cc (getAddr): Call _Jv_StackTrace::GetCallingClass only if CALLER is non-null. * java/lang/reflect/natVMProxy.cc (run_proxy): Use _Jv_getFieldInternal to get field proxyClass.m. (_Jv_getFieldInternal): New function. 2007-07-11 Andrew Haley <aph@redhat.com> * configure.host (arm*-linux-gnu): New. * sysdep/arm/locks.h: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126622 138bc75d-0d04-0410-961f-82ee72b054a4
* * interpret.cc (get_local_var_table) [DIRECT_THREADED]: Make sure thekseitz2007-07-111-18/+18
| | | | | | | | | method is compiled. * testsuite/libjava.jvmti/interp/getlocalvartable.out: Revise for compiled methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126556 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-06-28 H.J. Lu <hongjiu.lu@intel.com>hjl2007-06-291-2/+1
| | | | | | | | * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Fix a typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126104 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-06-28 Andreas Tobler <a.tobler@schweiz.org>andreast2007-06-281-2/+3
| | | | | | | | * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Pass the cxxldlibflags to exec_gij to have the right libstdc++ invoked. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126083 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jvmti/dummyagent.c (Agent_OnLoad):kseitz2007-06-091-0/+1
| | | | | | | Add missing return value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125594 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/java-interp.h (_Jv_InterpFrame::get_pc): Only deductkseitz2007-05-243-9/+29
| | | | | | | | | | | | | | | | | | one when pc_ptr is non-NULL. * prims.cc (parse_init_args): Enable JVMTI with agentlib and agentpath options. * testsuite/lib/libjava.exp (exec_gij): Add new addl_flags parameter. * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Pass '-agentlib:dummyagent' when executing gij. (gij_jvmti_run): Build dummy JVMTI agent before running tests, and remove it when finished. * testsuite/libjava.jvmti/dummyagent.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125040 138bc75d-0d04-0410-961f-82ee72b054a4
* * ltmain.sh: Update from ToT Libtool.sje2007-05-241-4/+11
| | | | | | | | | | | | | | | * 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125032 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/23758daney2007-04-093-0/+46
| | | | | | | | | | | * java/lang/natPosixProcess.cc (nativeSpawn): Move building of environment before the fork. * testsuite/libjava.lang/Process_7.java: New test. * testsuite/libjava.lang/Process_7.out: Its expected results. * testsuite/libjava.lang/Process_7.jar: Generated file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123676 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-04-03 Andrew Haley <aph@redhat.com>aph2007-04-033-0/+41
| | | | | | | | * testsuite/libjava.lang/ProxyTest.java: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123466 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r,daney2007-03-261-1/+0
| | | | | | | | | | | | | | fork, execvp, execinfo.h, pthread_mutexattr_settype, pthread_mutexattr_setkind_np and sys/wait.h. * Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * include/config.h.in: Regenerate. * testsuite/Makefile.in: Regenerate. * configure: Regenerate. * gcj/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123221 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-03-19 Andrew Haley <aph@redhat.com>aph2007-03-203-0/+28
| | | | | | | | | | | | | | PR tree-optimization/31264 * tree-vrp.c (register_edge_assert_for_1): Don't look though VIEW_CONVERT_EXPRs. 2007-03-20 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/PR31264.java: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123085 138bc75d-0d04-0410-961f-82ee72b054a4
* libffi/ChangeLog:aoliva2007-03-074-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122652 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-03-06 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-03-061-0/+3
| | | | | | | | | | * jvmti.cc(_Jv_JVMTI_GetLocalVariableTable): Fix _Jv_Malloc parameters. * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc (do_getlocalvartable_tests): Add Deallocate calls to free strings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122630 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Add dummy install-pdf target.brooks2007-03-021-9/+6
| | | | | | | | | | * Makefile.in: Regenerate * include/Makefile.in: Regenerate * testsuite/Makefile.in: Regenerate * gcj/Makefile.in: Regenerate git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122454 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-21 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-02-215-0/+118
| | | | | | | | | | | | | * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function. * testsuite/libjava.jvmti/interp/getargssize.java: New test. * testsuite/libjava.jvmti/interp/getargssize.h: Ditto. * testsuite/libjava.jvmti/interp/getargssize.jar: Ditto. * testsuite/libjava.jvmti/interp/getargssize.out: Ditto. * testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122201 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-15 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-02-161-6/+9
| | | | | | | | | | | | | | | | | | | * interpret.cc (_Jv_InterpMethod::check_handler): New method. * interpret-run.cc: Change the catch section to report exception events and to use the new check_handler method. * include/java-interp.h (_Jv_InterpMethod): Add check_handler. * gnu/gcj/jvmti/ExceptionEvent.java: New file. * gnu/gcj/jvmti/ExceptionEvent.h: New file. * gnu/gcj/jvmti/natExceptionEvent.cc: New file. * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New file. * sources.am: Added ExceptionEvent.java. * Makefile.am: Added natExceptionEvent.cc * Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122019 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-15 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-02-155-0/+258
| | | | | | * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121997 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-13 Andrew Haley <aph@redhat.com>aph2007-02-133-0/+20
| | | | | | | | | * testsuite/libjava.lang/Divide_2.out * testsuite/libjava.lang/Divide_2.java: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121887 138bc75d-0d04-0410-961f-82ee72b054a4
* * sources.am: Regenerate.kseitz2007-02-091-0/+2
| | | | | | | | | | | | | * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * classpath/lib/javax/management/MBeanServerFactory.class: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121737 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jni/init.c: New file.tromey2007-02-076-0/+74
| | | | | | | | | | * testsuite/libjava.jni/init.java: New file. * testsuite/libjava.jni/init.out: New file. * testsuite/libjava.jni/init.jar: New file. * testsuite/libjava.jni/init.h: New file. * testsuite/libjava.jni/init$NativeClass.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121698 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-05 Matthias Klose <doko@debian.org> doko2007-02-052-2/+2
| | | | | | | | testsuite/Makefile.am (compile-tests): Fix typo. testsuite/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121605 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>andreast2007-01-311-3/+10
| | | | | | | | * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121438 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jvmti/getmethodname.h: New file.kseitz2007-01-312-0/+27
| | | | | | | * testsuite/libjava.jvmti/getmethodname.jar: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121436 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>andreast2007-01-301-1/+1
| | | | | | | | * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a cast to print it right. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121362 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-29 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-01-295-0/+329
| | | | | | | | | | | | | | | | | | | | | | | | | * include/java-interp.h: Added _Jv_Frame class and its two subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved _Jv_FrameType from java-stack.h. * include/java-stack.h: Removed _Jv_FrameType. * java/lang/Thread.java: Added frame member to hold new composite frame stack. * java/lang/Thread.h: Regenerated. * java/lang/Thread.class: Rebuilt. * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when calling a JNI method. * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method. (_Jv_JVMTI_GetFrameCount): New method. * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame classes. * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test. * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test. * testsuite/libjava.jvmti/interp/getstacktrace.h: New test. * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test. * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file for test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121314 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure, Makefile.in: Rebuilt.tromey2007-01-291-2/+0
| | | | | | | | * Makefile.am (bin_SCRIPTS): Never install scripts/jar. * configure.ac (BASH_JAR): Removed conditional. (JAR): Prefer the jar found by AC_CHECK_PROGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121301 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am (generic_header_files): Add $(inner_nat_headers).jakub2007-01-262-0/+123
| | | | | | | | | | | * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests. (MYGCJH): New variable. (compile-tests): New goal. * Makefile.in: Rebuilt. * testsuite/Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121217 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-25 Andrew Haley <aph@redhat.com>tromey2007-01-251-1/+0
| | | | | | | | | | | | * configure, Makefile.in, include/config.h.in: Rebuilt. * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC). * configure.ac: Don't check for libmagic. * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load, p_magic_close, p_magic_buffer): New globals. (init): Look up 'magic' functions. (guessContentTypeFromBuffer): Updated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121183 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.kseitz2007-01-253-0/+185
| | | | | | | | | | (_Jv_JVMTI_Interface): Define GetMethodName. * testsuite/libjava.jvmti/getmethodname.java: New file. * testsuite/libjava.jvmti/natgetmethodname.cc: New file. * testsuite/libjava.jvmti/getmethodname.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121179 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-25 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-01-251-4/+6
| | | | | | | | | * testsuite/libjava.jvmti/lib/libjava.exp (exec_gij): Change [ to { in if statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121174 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-25 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-01-252-0/+202
| | | | | | | | | | * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file. * libjava/testsuite/libjava.jvmti/interp: New folder. * libjava/testsuite/lib/libjava.exp (exec_gij): New Method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121172 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/29812:tromey2007-01-2210-23/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/libjava.jni/pr29812.java: New file. * testsuite/libjava.jni/pr29812_injar.java: New file. * testsuite/libjava.jni/pr29812_injar.jar: New file. * testsuite/libjava.jni/pr29812.out: New file. * testsuite/libjava.jni/pr29812_injar.c: New file. * testsuite/libjava.jni/pr29812_injar.h: New file. * testsuite/libjava.jni/pr29812.jar: New file. * testsuite/libjava.jni/pr29812.c: New file. * testsuite/libjava.jni/pr29812.h: New file. * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): New proc. (gcj_jni_invocation_test_one): Use it. (gcj_jni_pr29812): New proc. (gcj_jni_run): Use it. * java/lang/natRuntime.cc (_load): Push a new system frame before calling JNI_OnLoad. * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare. (_Jv_GetJNIEnvNewFrameWithLoader): Likewise. * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char. <allocated_p>: Now bool. <loader>: New field. (_Jv_JNI_EnsureLocalCapacity): Updated. (_Jv_JNI_NewLocalRef): Likewise. (_Jv_JNI_NewLocalRef): Likewise. (_Jv_JNI_PopLocalFrame): Likewise. (_Jv_JNI_FindClass): Likewise. (_Jv_GetJNIEnvNewFrame): Likewise. (_Jv_JNI_AttachCurrentThread): Likewise. (_Jv_GetJNIEnvNewFrameWithLoader): New function. (_Jv_GetJNIEnvNewFrame): Use it. * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121064 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-18 Marco Trudel <mtrudel@gmx.ch>tromey2007-01-185-0/+53
| | | | | | | | | | | * jni.cc (_Jv_JNI_FindClass): Initialize class. * testsuite/libjava.jni/findclass2.jar: New file. * testsuite/libjava.jni/findclass2.h: New file. * testsuite/libjava.jni/findclass2.java: New file * testsuite/libjava.jni/findclass2.c: New file. * testsuite/libjava.jni/findclass2.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120930 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-17 Jack Howarth <howarth@bromo.med.uc.edu>tromey2007-01-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120870 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Usekseitz2007-01-163-2/+2
| | | | | | | | | %#llx instead of %d for new_value. * testsuite/libjava.jvmti/events.out: Update expected output. * testsuite/libjava.jvmti/events.jar: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120834 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-16 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-01-165-0/+193
| | | | | | | | | | | | | * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function. * testsuite/libjava.jvmti/getallthreads.java: New test. * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto. * testsuite/libjava.jvmti/getallthreads.out: Ditto. * testsuite/libjava.jvmti/getallthreads.h: Ditto. * testsuite/libjava.jvmti/getallthreads.jar: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120827 138bc75d-0d04-0410-961f-82ee72b054a4
* config/hjl2007-01-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-14 H.J. Lu <hongjiu.lu@intel.com> * ld-symbolic.m4: New. libjava/ 2007-01-14 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (libgcj_la_LDFLAGS): Add $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS). (libgcj_tools_la_LDFLAGS): Likewise. (libgcj_bc_la_LDFLAGS): Likewise. * Makefile.in: Regenerated. * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set. Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS. * configure: Regenerated. * aclocal.m4: Likewise. * gcj/Makefile.in: Likewise. * include/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120773 138bc75d-0d04-0410-961f-82ee72b054a4
* Merged gcj-eclipse branch to trunk.tromey2007-01-09459-3686/+832
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.lang/Throw_3.java: New Test.daney2006-11-202-0/+42
| | | | | | | * testsuite/libjava.lang/Throw_3.out: Its expected output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119023 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-25 Andreas Tobler <a.tobler@schweiz.org>andreast2006-10-251-60/+92
| | | | | | | | * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests): Replace formatting modifiers %p with %#llx and cast the arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118040 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests):tromey2006-10-201-2/+6
| | | | | | Correctly pass jvalues. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117913 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jni/register2.java: New file.tromey2006-10-183-0/+77
| | | | | | | | | | | | | | | | | | | * testsuite/libjava.jni/register2.out: New file. * testsuite/libjava.jni/register2.c: New file. * java/lang/natClass.cc (_Jv_GetClassNameUtf8): New function. * java/lang/Class.h (_Jv_GetClassNameUtf8): Declare. * jni.cc (struct NativeMethodCacheEntry): New struct. (nathash): Changed type. (hash): Updated. (nathash_find_slot): Likewise. (nathash_find): Likewise. (natrehash): Likewise. (nathash_add): Likewise. (_Jv_JNI_RegisterNatives): Likewise. (_Jv_LookupJNIMethod): Likewise. Idea from Juerg Lehni <juerg@scratchdisk.com> git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117867 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jvmti/natevents.cc (env): Delete.geoffk2006-10-171-18/+16
| | | | | | | | | | | | | (ExceptionCB): Fix types for printf arguments. (ExceptionCatchCB): Likewise. (SingleStepCB): Likewise. (BreakpointCB): Likewise. (FieldAccessCB): Likewise. (FieldModificationCB): Likewise. (CompiledMethodLoadCB): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117817 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-26 Jack Howarth <howarth@bromo.med.uc.edu>tromey2006-09-271-3/+5
| | | | | | | | | | | | | PR target/26792: * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP if HAVE_GETIPINFO not defined. * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise. (_Jv_StackTrace::getLineNumberForFrame): Likewise. * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO. * aclocal.m4, configure, include/config.h.in, Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117259 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabledkseitz2006-09-223-0/+615
| | | | | | | | | | | | | | | | | | | | events. (check_enabled_event): New function. (check_enabled_events): New function. (post_event): New function. (_Jv_JVMTI_SetEventNotificationMode): New function. (_Jv_JVMTI_SetEventCallbacks): New function. (_Jv_JVMTI_Interface): Define SetEventNotificationMode and SetEventCallbacks members. * include/jvmti-int.h: New file. * include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define. (_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define. * testsuite/libjava.jvmti/events.java: New file. * testsuite/libjava.jvmti/events.out: New file. * testsuite/libjava.jvmti/natevents.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117133 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_GetErrorName): New function.kseitz2006-09-203-0/+137
| | | | | | | | | | (_Jv_JVMTI_Interface): Define GetErrorName member. * testsuite/libjava.jvmti/geterrorname.java: New file. * testsuite/libjava.jvmti/geterrorname.out: New file. * testsuite/libjava.jvmti/natgeterrorname.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117086 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libjava.jvmti/jvmti.exp: New file.kseitz2006-09-191-0/+122
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117065 138bc75d-0d04-0410-961f-82ee72b054a4
* * posix.cc (_Jv_platform_nanotime): Return nanoseconds, notgeoffk2006-09-143-0/+36
| | | | | | | | | | | | microseconds; use gettimeofday when available. * posix-threads.cc (_Jv_CondWait): Improve accuracy and range of timeout calculation. * testsuite/libjava.lang/Thread_Sleep_2.java: New. * testsuite/libjava.lang/Thread_Sleep_2.out: New. * testsuite/libjava.lang/Thread_Sleep_2.xfail: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116941 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/javatromey2006-09-122-0/+9
| | | | | | | | | | | | | PR java/29013: * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note the push of the called method's return result. libjava PR java/29013: * testsuite/libjava.lang/PR29013.out: Likewise. * testsuite/libjava.lang/PR29013.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116902 138bc75d-0d04-0410-961f-82ee72b054a4