summaryrefslogtreecommitdiff
path: root/libjava/sysdep
Commit message (Collapse)AuthorAgeFilesLines
* 2016-09-30 Andrew Haley <aph@redhat.com>aph2016-09-3022-1273/+0
| | | | | | | | | | | | | | * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240662 138bc75d-0d04-0410-961f-82ee72b054a4
* config/ebotcazou2015-05-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sjlj.m4: New file. libgcc/ * configure.ac: Include config/sjlj.m4. Remove manual SJLJ check, add GCC_CHECK_SJLJ_EXCEPTIONS and adjust. * config.in: Regenerate. * configure: Likewise. * config.host: Replace enable_sjlj_exceptions by ac_cv_sjlj_exceptions. libjava/ * configure.ac: Include config/sjlj.m4. Remove manual SJLJ check, add GCC_CHECK_SJLJ_EXCEPTIONS and adjust. * include/config.h.in: Regenerate. * configure: Likewise. * exception.cc: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__. * stacktrace.cc: Likewise. * include/default-signal.h: Likewise. * sysdep/i386/backtrace.h: Likewise. libobjc/ * configure.ac: Remove manual SJLJ check. * config.h.in: Regenerate. * configure: Likewise. * exception.c: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__. libstdc++-v3/ * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete. * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS. * config.h.in: Regenerate. * configure: Likewise. * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__. * libsupc++/eh_throw.cc: Likewise. * libsupc++/eh_ptr.cc: Likewise. * doc/html/manual/appendix_porting.html: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS * doc/xml/manual/build_hacking.xml: Likewise. * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions. * doc/xml/manual/configure.xml: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223181 138bc75d-0d04-0410-961f-82ee72b054a4
* Enable java for aarch64schwab2013-04-161-0/+57
| | | | | | | | | | | | | | | * configure.ac (aarch64-*-*): Don't disable java. * configure: Regenerate. libjava/: * configure.host: Add support for aarch64. * sysdep/aarch64/locks.h: New file. libjava/classpath/: * native/fdlibm/ieeefp.h: Add support for aarch64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197997 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo.dje2012-06-201-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188833 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-06-20 David Edelsohn <dje.gcc@gmail.com>dje2012-06-201-50/+26
| | | | | | | | | | | | | | Alan Modra <amodra@gmail.com> * sysdep/powerpc/locks.h (compare_and_swap): Use GCC atomic intrinsics. (release_set): Same. (compare_and_swap_release): Same. (read_barrier): Same. (write_barrier): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188829 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/m68k/locks.h (compare_and_swap): Useschwab2012-06-151-25/+21
| | | | | | | | __sync_bool_compare_and_swap. (release_set): Use write_barrier instead of inlining it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188650 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-06-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>krebbel2012-06-151-19/+5
| | | | | | | | | | * sysdep/s390/locks.h (compare_and_swap, release_set) (read_barrier, write_barrier): Use the GCC atomic builtins. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188649 138bc75d-0d04-0410-961f-82ee72b054a4
* Update sysdep/sh/locks.h with atomic builtinskkojima2012-06-141-35/+1
| | | | | | | | | | * sysdep/sh/locks.h (__cas_lock): Remove. (__cas_start_atomic, __cas_end_atomic): Likewise. (compare_and_swap): Call __sync_bool_compare_and_swap. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188640 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/49193uros2011-12-271-22/+19
| | | | | | | | | | * sysdep/alpha/locks.h (compare_and_swap): Call __sync_bool_compare_and_swap. (release_set): Call __sync_synchronize. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182692 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert accidental svn commit r174473dodji2011-05-312-116/+21
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174480 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert "Fix PR debug/49047"dodji2011-05-312-21/+116
| | | | | | This reverts commit ce20032a8ad4d9d4fa37192e2ecc73cb257094e8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174473 138bc75d-0d04-0410-961f-82ee72b054a4
* Use __sync_bool_compare_and_swap in x86 locks.h.hjl2011-05-312-116/+21
| | | | | | | | | | | | | | | | 2011-05-31 H.J. Lu <hongjiu.lu@intel.com> PR libgcj/49193 * configure.host (sysdeps_dir): Set to i386 for x86_64. * sysdep/i386/locks.h (compare_and_swap): Call __sync_bool_compare_and_swap. (release_set): Call write_barrier (). * sysdep/x86-64/locks.h: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174471 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-08 Kai Tietz <ktietz@redhat.com>ktietz2011-04-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (libgcj_ld_export_all): Set for windows native targets to export-all-symbols. (LIBGCJ_LD_EXPORT_ALL): Export libgcj_ld_export_all. * Makefile.am (libgcj_la_LDFLAGS): Add LIBGCJ_LD_EXPORT_ALL. * sysdep/i386/backtrace.h (MAIN_FUNC): Define for windows native targets to DllMain. * gcj/javaprims.h (JNICALL): Define it dependent for different windows targets. * include/jni_md.h: Likewise. * headers.txt (_Jv_JNI_ToReflectedField): Mark JNICALLS for friends. (_Jv_JNI_ToReflectedMethod): Likewise. * java/lang/Class.h: Regenerated. * java/lang/reflect/Field.h: Regenerated. * java/lang/reflect/Constructor.h: Regenerated. * java/lang/reflect/Method.h: Regenerated. * configure: Regenerated. * Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172186 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ChangeLogdavek2009-09-221-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable. * config/i386/cygwin.h (LIBGCJ_SONAME): Define. * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise. libjava/ChangeLog * configure.host (enable_libgcj_sublibs_default): New variable, set for Cygwin and MinGW. * configure.ac (--enable-libgcj-sublibs): New command-line switch. (BUILD_SUBLIBS): New AM_CONDITIONAL relating to it. (libgcj_spec_lgcj_override): New variable, define if building sublibs. (libgcj_spec_lgcj_bc_override): Likewise for when USE_LIBGCJ_BC. (LIBGCJ_SPEC_LGCJ): New variable to abstract "-lgcj" from specs. (LIBGCJ_SPEC_LGCJ_BC): Likewise for when USE_LIBGCJ_BC. (LIBGCJ_SPEC): Use them. * configure: Regenerate. * Makefile.am (LOWER_PACKAGE_FILES_LO): New variable. (ALL_PACKAGE_SOURCE_FILES_LO): Likewise. (NONCORE_PACKAGE_SOURCE_FILES_LO): Likewise. (CORE_PACKAGE_SOURCE_FILES_LO): Likewise. (toolexeclib_LTLIBRARIES): Add libgcj-noncore.la if building sublibs. (libgcj_noncore_la_LIBADD_SUBOBJECTS): New variable. (libgcj_la_LIBADD_SUBOBJECTS): Likewise. (libgcj_la_LDFLAGS_NOUNDEF): Likewise. (libgij_la_LDFLAGS): Add DLL-related options. (libgcj_la_LDFLAGS): Use libgcj_la_LDFLAGS_NOUNDEF and libgcj_la_LIBADD_SUBOBJECTS. (libgcj_la_DEPENDENCIES): Adjust to match. (libgcj_noncore_la_SOURCES, libgcj_noncore_la_LDFLAGS, libgcj_noncore_la_LIBADD, libgcj_noncore_la_DEPENDENCIES, libgcj_noncore_la_LINK): New automake variables for sublibrary. (libgcj_tools_la_LDFLAGS): Add DLL-related flags. (libgcj_tools_la_LIBADD): New variable. (libjvm_la_LDFLAGS): Add DLL-related flags. (lib_gnu_awt_xlib_la_LDFLAGS): Likewise. (libgcj_bc_la_LDFLAGS): Likewise. (libgij_la_DEPENDENCIES): Add dependency on libgcj-noncore.la when building sublibs. (libgcj_tools_la_DEPENDENCIES, libjvm_la_DEPENDENCIES, lib_gnu_awt_xlib_la_DEPENDENCIES, jv_convert_DEPENDENCIES, gcj_dbtool_DEPENDENCIES, gc_analyze_DEPENDENCIES, ecjx_DEPENDENCIES): Likewise. * Makefile.in: Regenerate. * sysdep/i386/backtrace.h (MAIN_FUNC): New #define for main function, set appropriately for Cygwin on that platform or to "main" elsewhere. (fallback_backtrace): Use it to limit stack unwind. libjava/libltdl/ChangeLog: * ltdl.h (LT_SCOPE): Change conditional to avoid breaking auto-export during libgcj DLL linking. * Makefile.am (libltdl_la_LDFLAGS): Remove -bindir switch. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152041 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-08-12 Andrew Haley <aph@redhat.com>aph2009-08-121-2/+56
| | | | | | | | | | | | | | | | * sysdep/arm/locks.h: Use atomic builtins For Linux EABI. * configure.ac: Add ATOMICSPEC. * libgcj.spec.in: Likewise. * configure.host (arm*-linux*): Add -Wno-abi to cxxflags. (testsuite/libjava.jvmti/jvmti-interp.exp): Likewise. (testsuite/libjava.jvmti/jvmti.exp): Likewise. (testsuite/libjava.jni/jni.exp): Likewise. Set ATOMICSPEC. Set LDFLAGS to work around libtool feature. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150702 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/35485dje2008-10-241-9/+7
| | | | | | | | | | | | * configure.ac: AIX threads are Posix threads. Set signal handler to aix-signal.h * configure: Regenerate. * classpath/native/fdlibm/fdlibm.h: Undef hz. * include/aix-signal.h: New file. * sysdep/powerpc/locks.h: Avoid GNU Assembler syntax. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141335 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.host: Enable interpreter for mips64. Enable hashdaney2007-09-121-49/+8
| | | | | | | | | | | synchronization for all mips*-*-linux* targets. * sysdep/mips/locks.h (compare_and_swap, compare_and_swap_release) Use __sync_bool_compare_and_swap instead of in-line asm. (release_set, read_barrier, write_barrier): Use __sync_synchronize instead of in-line asm. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128438 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/java/doko2007-09-061-0/+72
| | | | | | | | | | | | | | | | | | 2007-09-06 Roman Zippel <zippel@linux-m68k.org> * boehm.c: Don't use bitmap as gc_descr if pointer is misaligned. libjava/ 2007-09-06 Roman Zippel <zippel@linux-m68k.org> * sysdep/m68k/locks.h: New file. * configure.host: Set sysdeps_dir and libgcj_interpreter for m68k. * configure.ac: Set SIGNAL_HANDLER for m68*-*-linux*. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128191 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-09-04 Andrew Haley <aph@redhat.com>aph2007-09-041-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR java/27908 * testsuite/libjava.lang/PR27908.java ({run1,run2,run3}.isRunning): New Method. (main): Fix race condition. 2007-08-29 Andrew Haley <aph@redhat.com> * gnu/classpath/natVMStackWalker.cc (VMStackWalker::getCallingClass): Make sure we're not sibcalled. (GET_CALLING_CLASS): Define for ARM EABI. 2007-08-22 Andrew Haley <aph@redhat.com> * configure.host (BACKTRACESPEC): Add arm*-linux*. 2007-08-22 Andrew Haley <aph@redhat.com> * configure.ac (LIBSTDCXXSPEC): New. * configure.host: Add arm*-linux* to pthread test. * configure.ac (LIBGCJTESTSPEC): Add path to libstdc++ for ARM EABI. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use -fexceptions for ARM EABI. * testsuite/lib/libjava.exp (libjava_arguments): Add libgcj-test.spec. (libjava_invoke): Log the invocation. 2007-08-15 Andrew Haley <aph@redhat.com> * configure.ac (extra_ldflags): Define. * Makefile.am: Use extra_ldflags for all executables. 2007-08-14 Andrew Haley <aph@redhat.com> * sysdep/arm/backtrace.h: Remove stubs for _Unwind_GetIPInfo, _Unwind_GetRegionStart, and _Unwind_Backtrace. 2007-07-27 Andrew Haley <aph@redhat.com> * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): Stub for ARM EABI. * exception.cc (get_exception_header_from_ue): New. (get_ttype_entry): ARM EABI version. (PERSONALITY_FUNCTION): Add ARM EABI code. * sysdep/arm/backtrace.h: New file. * stacktrace.cc (_URC_NORMAL_STOP): New. * configure.ac (extra_ldflags_libjava): Add libsupc++.la for ARM EABI. * configure.host (BACKTRACESPEC): Add arm/backtrace.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128098 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-07-13 Andrew Haley <aph@redhat.com>aph2007-07-131-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * sysdep/alpha/locks.h (read_barrier): New.rth2007-02-091-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121774 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>andreast2007-01-271-7/+29
| | | | | | | | | | | | PR libgcj/30513 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to libgcj_flags to undefine 'sun' at compile time. * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit Sparc. (write_barrier): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121239 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-22 Andrew Haley <aph@redhat.com>aph2007-01-221-0/+8
| | | | | | | | * sysdep/alpha/locks.h (write_barrier): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121053 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/sh/locks.h (read_barrier): New.kkojima2007-01-121-1/+13
| | | | | | | | (write_barrier): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120735 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>hjl2007-01-101-0/+12
| | | | | | | | | PR libgcj/30424 * sysdep/ia64/locks.h (read_barrier): New. (write_barrier): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120645 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/x86-64/locks.h: Enable use of either file on eithermrs2006-11-282-18/+28
| | | | | | | | target to support multilibs from one to the other. * sysdep/i386/locks.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119276 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC"rmathew2006-08-191-4/+6
| | | | | | | | as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp" function prologue. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116258 138bc75d-0d04-0410-961f-82ee72b054a4
* * stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally usermathew2006-07-142-27/+58
| | | | | | | | | | | | | | | | | | | | | _Unwind_Backtrace(). (_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ EH. (_Jv_StackTrace::GetClassContext): Unconditionally use _Unwind_Backtrace(). (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise. * sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define. (_Unwind_GetIPInfo): Define macro if SJLJ EH is in use. (_Unwind_GetRegionStart): Likewise. (_Unwind_Backtrace): Likewise. (fallback_backtrace): Accept additional unwind trace function argument. Call it during unwinding. Stop when any of _Jv_RunMain(), _Jv_ThreadStart() or main() is seen during unwinding. * sysdep/generic/backtrace.h (fallback_backtrace): Accept an additional unwind trace function argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115449 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function'srmathew2006-07-071-22/+36
| | | | | | | | | prologue to determine its beginning. Stop unwinding when we reach JvRunMain(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115261 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj/javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t inrmathew2006-06-291-7/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | C99. * include/java-stack.h: Include stdlib.h. (_Jv_AddrInfo): New structure to hold address information. * include/posix.h (_Jv_platform_dladdr): Declare. * include/win32.h (_Jv_platform_dladdr): Declare. (backtrace): Remove declaration. * posix.cc: Include dlfcn.h if available. Include java-stack.h. (_Jv_platform_dladdr): Define. * win32.cc: Include string.h. Include java-stack.h. (backtrace): Remove. (_Jv_platform_dladdr): Define. * sysdep/i386/backtrace.h (fallback_backtrace): Check that a potential frame pointer value is 32-bit word-aligned. Use operand of the CALL instruction calling the current function to find its starting address. * stacktrace.cc: Do not include dlfcn.h. Include platform.h. (_Jv_StackTrace::getLineNumberForFrame): Use _Jv_platform_dladdr() instead of dladdr(). (_Jv_StackTrace::GetStackTraceElements): Use nCodeMap even for Windows. (_Jv_StackTrace::GetClassContext): Use fallback_backtrace() for targets with SJLJ exceptions instead of using _Unwind_Backtrace(). (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115069 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-20 Andreas Tobler <a.tobler@schweiz.ch>andreast2006-05-202-0/+97
| | | | | | | | | | | | | | | | | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * configure.ac: Add the POSIX thread libs to the HP-UX PA configuration. Add signal specification for HP-UX PA. * configure: Rebuilt. * configure.host: Add defaults for the HP-UX PA architecture. Add descriptor files for HP-UX PA 32-bit and 64-bit. * include/hppa-signal.h: New file. * include/posix.h: Add shared library suffix for HP-UX. * sysdep/pa/descriptor-pa32-hpux.h: New file. * sysdep/pa/descriptor-pa64-hpux.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113937 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/pa/locks.h (compare_and_swap): Add ldcw semaphore to makedanglin2005-12-281-15/+47
| | | | | | | | operation atomic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109110 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-11-24 Bryce McKinlay <mckinlay@redhat.com>bryce2005-11-253-449/+0
| | | | | | | | | | | | | | * sysdep/ia64-frame.h: Removed. * sysdep/ia64.c: Removed. * sysdep/dwarf2-backtrace.cc: Removed. * configure.ac: Remove references to HAVE_BACKTRACE and SUPPLY_BACKTRACE. * Makefile.am: Remove SUPPLY_BACKTRACE support. * configure: Rebuilt. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107486 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/powerpc/locks.h: Use 64-bit versions of primitives whengeoffk2005-09-281-3/+3
| | | | | | | | | __LP64__ is defined rather than __powerpc64__. (compare_and_swap): 'ret' is an obj_addr_t not just an int. (compare_and_swap_release): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104746 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/21692danglin2005-08-201-0/+7
| | | | | | | | * sysdep/pa/descriptor.h: New file. * configure.host: Use sysdep/pa/descriptor.h on hppa*-*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103306 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF addresskcook2005-06-302-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101453 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/21692rth2005-05-253-0/+17
| | | | | | | | | | | | | | * sysdep/descriptor-n.h: New file. * sysdep/descriptor-y.h: New file. * sysdep/powerpc/descriptor.h: New file. * configure.host: Set $descriptor_h appropriate for the host. * configure.ac: Link it. * configure: Regenerate. * stacktrace.cc: Include sysdep/descriptor.h. (_Jv_StackTrace::UpdateNCodeMap): Use UNWRAP_FUNCTION_DESCRIPTOR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100173 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-03-10 Bryce McKinlay <mckinlay@redhat.com>bryce2005-03-102-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Stack Trace infrastructure. * Makefile.am (libgcj0_convenience_la_SOURCES): Add stacktrace.cc. (gnu/gcj/runtime/StackTrace.lo): Removed. (ordinary_java_source_files): Remove obsolete files. (nat_source_files): Remove obsolete files. Add natVMThrowable.cc. * configure.host (fallback_backtrace_h): Set backtrace header for mingw and cygwin targets. * configure.ac: Make symlink for fallback backtrace headers. * Makefile.in, configure: Rebuilt. * defineclass.cc (_Jv_ClassReader::read_one_code_attribute): Read 'LineNumberTable' attribute. (_Jv_ClassReader::read_one_class_attribute): Read 'SourceFile' attribute. (_Jv_ClassReader::handleCodeAttribute): Initialize method line table fields. * exception.cc: Remove unused include. * interpret.cc (DIRECT_THREADED, insn_slot): Moved to java-interp.h. (SAVE_PC): New macro. Save current PC in the interpreter frame. (NULLCHECK, NULLARRAYCHECK): Use SAVE_PC. (_Jv_InterpMethod::compile): Translate bytecode PC values in the line table to direct threaded instruction values. (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Removed. (_Jv_InterpMethod::run): No longer member function. All callers updated. Remove _Unwind calls. Call SAVE_PC whenever a call is made or where an instruction could throw. (_Jv_InterpMethod::get_source_line): New. Look up source line numbers in line_table. * prims.cc (catch_segv): Construct exception after MAKE_THROW_FRAME. (catch_fpe): Likewise. * stacktrace.cc: New file. Stack trace code now here. * gnu/gcj/runtime/MethodRef.java: * gnu/gcj/runtime/NameFinder.java: Mostly reimplemented. Now simply calls addr2line to look up PC addresses in a given binary or shared library. * gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc, gnu/gcj/runtime/natStackTrace.cc: Removed. * gnu/java/lang/MainThread.java (call_main): Add comment warning that this function name is specially recognised by the stack trace code and shouldn't be changed. * include/java-interp.h (DIRECT_THREADED, insn_slot): Moved here. (struct _Jv_LineTableEntry, line_table, line_table_len): New. (_Jv_InterpMethod::run): Update declaration. (_Jv_StackTrace_): New friend. NameFinder and StackTrace no longer friends. (_Jv_InterpFrame): Renamed from _Jv_MethodChain. Add PC field. * include/java-stack.h: New file. Declarations for stack tracing. * include/jvm.h (_Jv_Frame_info): Removed. * java/lang/Class.h: Update friend declarations. * java/lang/VMClassLoader.java (getSystemClassLoader): Simplify exception message. * java/lang/VMThrowable.java (fillInStackTrace): Now native. (getStackTrace): Now native. (data): New RawDataManaged field. * java/lang/natClass.cc: Update includes. (forName): Use _Jv_StackTrace::GetCallingClass for calling-classloader check. (getClassLoader): Likewise. * java/lang/natRuntime.cc: Update includes. (_load): Use _Jv_StackTrace::GetFirstNonSystemClassLoader. * java/lang/natVMSecurityManager.cc: Update includes. (getClassContext): Use _Jv_StackTrace::GetClassContext. * java/lang/natVMThrowable.cc: New file. Native methods for VMThrowable. * java/lang/reflect/natArray.cc: Update includes. (newInstance): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natConstructor.cc: Update includes. (newInstance): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natField.cc: Update includes. (getAddr): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natMethod.cc: Update includes. (invoke): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/util/natResourceBundle.cc: Update includes. (getCallingClassLoader): Use _Jv_StackTrace::GetCallingClass. * java/util/logging/natLogger.cc: Update includes. Use _Jv_StackTrace::GetCallerInfo to get call-site info. * sysdep/generic/backtrace.h: Fallback backtrace code. Stub implementation. * sysdep/i386/backtrace.h: New. Fallback backtrace code. i386 implementation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96253 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>andreast2004-07-071-12/+12
| | | | | | | | | | * configure.host: Enable hash synchronization on Darwin. * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of ';', since this is a comment on Darwin. (compare_and_swap_release): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84214 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-10 Randolph Chung <tausq@debian.org>doko2004-03-191-0/+78
| | | | | | | | | | * configure.in: Build java for hppa target. * configure: Regenerate. * libjava/configure.host (hppa-*): Add target. * libjava/sysdeps/pa/lock.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79703 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-16 Andrew Haley <aph@redhat.com>aph2004-01-162-6/+6
| | | | | | | | * sysdep/x86-64/locks.h: Don't use in/out memory constraints. * sysdep/i386/locks.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75982 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-28 David S. Miller <davem@redhat.com>davem2003-10-281-2/+2
| | | | | | | * sysdep/sparc/locks.h (__cas_start_atomic): %g0 --> %%g0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73006 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-22 David Daney <ddaney@avtrex.com)daney2003-10-222-0/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/mips-signal.h: New file. * sysdep/dwarf2-backtrace.cc: New file. * sysdep/mips: New directory. * sysdep/mips/locks.h: New file. * Makefile.am(extra_cc_files): New, to allow extra c++ files to be added to libgcj. (extra_cc_source_files): Ditto. * configure.host(disable_dladdr): New shell variable passed to configure. (mips*-*-linux*): sysdeps_dir=mips, can_unwind_signal=yes, disable_dladdr=yes, use -mxgot. (mipsel*-linux* | mipsisa32el*-linux*): Enable hash synchronization. * configure.in:(mips*-*-linux*): Use sysdep/dwarf2-backtrace.cc to generate backtrace, and include/mips-signal.h as SIGNAL_HANDLER (HAVE_DLADDR): Make it depend on setting of disable_dladdr. (EXTRA_CC_FILES): New, to support conditional addition of sysdep/dwarf2-backtrace.cc. * configure: Regenerated. * Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. * include/config.h.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72808 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/ia64/locks.h: Include ia64intrin.h.rth2003-03-231-11/+10
| | | | | | | | (compare_and_swap): Use __sync_bool_compare_and_swap. (compare_and_swap_release): Expose ar.ccv assignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64737 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.host [s390*-*]: Enable Java interpreter.uweigand2002-10-081-0/+77
| | | | | | | | Enable hash synchronization. Add sysdeps dir. * sysdep/s390/locks.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57927 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-30 Bo Thorsen <bo@suse.de>bo2002-10-011-0/+7
| | | | | | | * sysdep/x86-64/locks.h (compare_and_swap): Fix multilib support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57682 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.host: Add SH support.kkojima2002-08-011-0/+72
| | | | | | | * sysdep/sh/locks.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55922 138bc75d-0d04-0410-961f-82ee72b054a4
* * sysdep/powerpc/locks.h: Formatting.amodra2002-07-291-18/+31
| | | | | | | | | | (_LARX): Define. (_STCX): Define. (compare_and_swap): Use _LARX and _STCX. (compare_and_swap_release): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55855 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-07-19 Bo Thorsen <bo@berlioz.suse.de>bo2002-07-191-0/+74
| | | | | | | | | | | * java/lang/ieeefp.h: Add x86-64 support. * configure.in: Likewise. * configure.host: Likewise. * configure: Regenerated. * sysdep/x86-64/locks.h: New file with x86-64 locks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55588 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-04-19 David S. Miller <davem@redhat.com>davem2002-04-211-0/+120
| | | | | | | | | | | | | | | | | | | | * include/dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg. (MAKE_THROW_FRAME): Define for 32-bit and 64-bit sparc. (INIT_SEGV, INIT_FPE): Use direct __libc_sigaction installation on Sparc too. * include/sparc-signal.h (FLUSH_REGISTER_WINDOWS): Define properly for 64-bit sparc. (MAKE_THROW_FRAME): Use long for sp/retaddr so 64-bit works. * sysdeps/sparc/locks.h: New file. * configure.in (SIGNAL_HANDLER): Set to include/sparc-signal.h on all sparc Solaris configurations. Set to include/dwarf2-signal.h on sparc Linux. * configure: Regenerate * configure.host (can_unwind_signal): sparc*-linux* can do it now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52575 138bc75d-0d04-0410-961f-82ee72b054a4