aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
AgeCommit message (Collapse)AuthorFilesLines
2002-07-19ieeefp.h: Add x86-64 support.Bo Thorsen1-0/+3
2002-07-19 Bo Thorsen <bo@berlioz.suse.de> * 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. From-SVN: r55588
2002-07-12natThrowable.cc (printRawStackTrace): removed.Mark Wielaard1-12/+24
* java/lang/natThrowable.cc (printRawStackTrace): removed. (getStackTrace0): new method. * java/lang/Throwable.java (CPlusPlusDemangler): removed. (printStackTrace(PrintWriter)): replace with pure java implementation. (printRawStackTrace): removed. (getStackTrace0): new method. * java/lang/StackTraceElement.java (toString): add extra whitespace. * gcj/javaprims.h: regenerate class list. * include/name-finder.h (lookup): new returns StackTraceElement*. (method_name, file_name): fields removed. (pid2, f2_pipe, b2_pipe, b2_pipe_fd): new fields. (~_Jv_name_finder): close new descriptors. * name-finder.cc(_Jv_name_finder): setup c++filt helper process. (createStackTraceElement): new method. (lookup): returns StackTraceElement*, uses createStackTraceElement(). From-SVN: r55424
2002-06-24verify.cc (branch_prepass): Updated for change to exception handler type.Tom Tromey1-26/+19
* verify.cc (branch_prepass): Updated for change to exception handler type. (verify_instructions_0): Likewise. * defineclass.cc (handleCodeAttribute): Initialize `prepared'. (handleExceptionTableEntry): Updated for change to exception handler type. * java/lang/Class.h (Class): Removed _Jv_InterpMethodInvocation. * include/java-interp.h (_Jv_InterpMethodInvocation): Removed. (union _Jv_InterpPC): New. (class _Jv_InterpException): Changed types to _Jv_InterpPC. (class _Jv_InterpMethod): Added new `prepared' field. (class _Jv_InterpMethod): Added `compile' method. Removed `continue1' and `find_exception'. Changed arguments to `run'. * interpret.cc (union insn_slot): New. (find_exception): Removed. (run_normal): Removed most logic. (run_synch_object): Likewise; also, use JvSynchronize. (run_synch_class): Likewise. (run): Removed. (continue1): Renamed as `run'. Compile bytecode if required. Add new code to allow refinement of direct-threaded code at runtime. Handle exceptions. (SAVE_PC): Removed. (compile): New method. (SET_ONE, SET_INSN, SET_INT, SET_DATUM): New defines. (NULLARRAYCHECK): Don't use SAVE_PC. (pc_t): New typedef. (TAKE_GOTO, GET1S, GET1U, GET2U, AVAL1U, AVAL2U, AVAL2UP, SKIP_GOTO, GOTO_VAL, PCVAL, AMPAMP): New macros. From-SVN: r54968
2002-06-24configure: Rebuilt.Tom Tromey1-1/+1
* configure: Rebuilt. * configure.in (INTERPRETER): New subst. (AM_RUNTESTFLAGS): Don't subst. From-SVN: r54940
2002-06-17javaprims.h: Updated class declaration list.Tom Tromey1-2/+2
* gcj/javaprims.h: Updated class declaration list. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added new file. * java/util/EventListenerProxy.java: New file. * java/util/EventListener.java: Re-merge with Classpath. * java/util/EventObject.java: Re-merge with Classpath. From-SVN: r54720
2002-06-11Class.h (Class::desiredAssertionStatus): Declare.Tom Tromey1-2/+2
* java/lang/Class.h (Class::desiredAssertionStatus): Declare. (Class::getPackagePortion): Likewise. * java/lang/Class.java (desiredAssertionStatus): New method from Classpath. (getPackagePortion): Likewise. * java/lang/VMClassLoader.java (defaultAssertionStatus, packageAssertionStatus, classAssertionStatus): New methods from Classpath. * java/lang/ClassLoader.java (defaultAssertionStatus, systemPackageAssertionStatus, packageAssertionStatus, systemClassAssertionStatus, classAssertionStatus): New fields from Classpath. (setDefaultAssertionStatus, setPackageAssertionStatus, setClassAssertionStatus, clearAssertionStatus): New methods from Classpath. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added AssertionError.java. * java/lang/AssertionError.java: New from Classpath. From-SVN: r54517
2002-05-29configure.host [...]: Set can_unwind_signal=yes.Ulrich Weigand1-0/+78
* configure.host [s390*-linux*]: Set can_unwind_signal=yes. * configure.in [s390*-*-linux*]: Do not define HAVE_BACKTRACE. Set SIGNAL_HANDLER=include/s390-linux.h. * configure: Regenerate. * include/s390-linux.h: New file. From-SVN: r54012
2002-05-03natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE.David Billinghurst1-3/+6
2002-05-03 David Billinghurst <David.Billinghurst@riotinto.com> Tom Tromey <tromey@redhat.com> * java/lang/natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE. * include/config.h.in: Rebuilt. * acconfig.h (HAVE_UNDERSCORE_TIMEZONE, HAVE_BACKTRACE): Undef. * aclocal.m4, configure: Rebuilt. * acinclude.m4: Run AC_EXEEXT. * configure.in: Adjust test for `timezone' so it fails on Cygwin. Add test for `_timezone'. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r53117
2002-05-03dwarf2-signal.h (INIT_SEGV, [...]): use sigaction instead of __libc_sigaction.Hans Boehm1-11/+5
* include/dwarf2-signal.h (INIT_SEGV, INIT_FPE for ia64): use sigaction instead of __libc_sigaction. From-SVN: r53074
2002-05-02re PR bootstrap/6525 (libjava won't build on Red Hat Linux 6.2/sparc)David S. Miller1-2/+88
2002-05-02 David S. Miller <davem@redhat.com> PR bootstrap/6525 * include/dwarf2-signal.h (INIT_SEGV, INIT_FPE): Don't use __libc_sigaction on Sparc. From-SVN: r53055
2002-04-26re PR target/6422 (libjava failures on sparc-linux)David S. Miller1-14/+20
2002-04-25 David S. Miller <davem@redhat.com> PR target/6422 * include/dwarf2-signal.h (MAKE_THROW_FRAME for sparc*): Set program counter to next program counter minus 8. Update comments in this macro to explain why. From-SVN: r52820
2002-04-26verify.cc (construct_primitive_array_type): New case.Tom Tromey1-2/+4
* verify.cc (construct_primitive_array_type) [void_type]: New case. (branch_prepass): Added dummy entries for unused instruction values. (verify_instructions_0): Likewise. * interpret.cc (continue1): Comment fix. * include/java-insns.h (op_xxxunusedxxx1): Removed. * Makefile.in: Rebuilt. * Makefile.am: Added -Wswitch-enum. From-SVN: r52814
2002-04-24win32.cc, win32.cc (backtrace): Added this function because Win32 does not ↵Adam Megacz1-0/+6
supply it. 2002-04-23 Adam Megacz <adam@xwt.org> * win32.cc, include/win32.cc (backtrace): Added this function because Win32 does not supply it. From-SVN: r52701
2002-04-22dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction ↵David S. Miller1-0/+2
reading sequence. 2002-04-21 David S. Miller <davem@redhat.com> * include/dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction reading sequence. From-SVN: r52609
2002-04-21dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg.David S. Miller2-6/+58
2002-04-19 David S. Miller <davem@redhat.com> * 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. From-SVN: r52575
2002-04-16re PR libgcj/6081 (libjava make install fails: Arg list too long)Tom Tromey1-4/+4
Fix for PR libgcj/6081: * Makefile.in: Rebuilt. * Makefile.am (install-data-local): Use GNU make trick to avoid shell limit. From-SVN: r52370
2002-04-12Install libgcj.jar as libgcj-VERSION.jar.Anthony Green1-4/+5
From-SVN: r52226
2002-04-11jvm.h (_Jv_ThrowBadArrayIndex, [...]): Mark as noreturn.Adam King1-3/+5
2002-04-11 Adam King <aking@dreammechanics.com> Tom Tromey <tromey@redhat.com> * include/jvm.h (_Jv_ThrowBadArrayIndex, _Jv_ThrowNullPointerException): Mark as noreturn. * win32.cc (_Jv_platform_initProperties): Use _Jv_MallocUnchecked and _Jv_free. Correctly invoke GetTempPath(). Indentation fixes. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r52164
2002-04-10Makefile.in: Rebuilt.Tom Tromey1-0/+18
* Makefile.in: Rebuilt. * Makefile.am (java/lang/Thread.h): Mark _Jv_AttachCurrentThreadAsDaemon as friend. * gcj/javaprims.h (_Jv_AttachCurrentThreadAsDaemon): Declare. * gcj/cni.h (JvAttachCurrentThreadAsDaemon): New function. * java/lang/natThread.cc (_Jv_AttachCurrentThreadAsDaemon): New function. * java/lang/natRuntime.cc (_load): Recognize JNI_VERSION_1_4. * jni.cc (_Jv_JNI_GetVersion): Return JNI_VERSION_1_4. (_Jv_JNI_InvokeFunctions): Added _Jv_JNI_AttachCurrentThreadAsDaemon. (_Jv_JNI_GetEnv): Handle JNI_VERSION_1_4. (JNI_GetDefaultJavaVMInitArgs): Likewise. (JNI_CreateJavaVM): Likewise. (_Jv_JNI_AttachCurrentThread): Likewise. (_Jv_JNI_AttachCurrentThread): Added `is_daemon' argument. (_Jv_JNI_AttachCurrentThreadAsDaemon): New method. (_Jv_JNIFunctions): Initialize new fields. (_Jv_JNI_NewDirectByteBuffer): New function. (_Jv_JNI_GetDirectBufferAddress): Likewise. (_Jv_JNI_GetDirectBufferCapacity): Likewise. * include/jni.h (JNI_VERSION_1_4): New macro. (JNIInvokeInterface::AttachCurrentThreadAsDaemon): New field. (_Jv_JavaVM::AttachCurrentThreadAsDaemon): New method. (JNINativeInterface::NewDirectByteBuffer): New field. (JNINativeInterface::GetDirectBufferAddress): New field. (JNINativeInterface::GetDirectBufferCapacity): New field. (_Jv_JNIEnv::NewDirectByteBuffer): New method. (_Jv_JNIEnv::GetDirectBufferAddress): New method. (_Jv_JNIEnv::GetDirectBufferCapacity): New method. From-SVN: r52144
2002-04-07natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.Adam King2-0/+4
2002-04-07 Adam King <aking@dreammechanics.com> * java/lang/natSystem.cc (init_properties): Call new function _Jv_platform_initProperties. * win32 (_Jv_platform_initProperties): New function that adds Win32 support for the System properties os.name, os.arch, os.version, user.name, user.home, and user.dir. * include/posix.h, include/win32.h, posix.cc: New function _Jv_platform_initProperties. From-SVN: r51989
2002-04-05win32.h (_Jv_platform_close_on_exec): added inline modifier.Adam Megacz1-1/+2
2002-04-04 Adam Megacz <adam@xwt.org> * include/win32.h (_Jv_platform_close_on_exec): added inline modifier. From-SVN: r51899
2002-03-27* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.Richard Henderson1-2/+2
From-SVN: r51468
2002-03-27dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.Andrew Haley1-0/+55
2002-03-25 Andrew Haley <aph@cambridge.redhat.com>, Hans Boehm <Hans_Boehm@hp.com> * include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64. (INIT_SEGV, INIT_FPE): Add versions that use __libc_sigaction instead of syscall on IA-64. Add FIXME comment. From-SVN: r51459
2002-03-27libgcj.spec.in: Add CHECKREFSPEC.Anthony Green1-0/+1
2002-03-27 Anthony Green <green@redhat.com> * libgcj.spec.in: Add CHECKREFSPEC. * configure.in: Ditto. * configure.host: Ditto. Check references for xscale-elf. * configure: Rebuilt. From-SVN: r51457
2002-03-26* include/dwarf2-signal.h: Temporarily back out last change.Hans Boehm1-30/+2
From-SVN: r51415
2002-03-26* include/posix-threads.h: Support <.../pal.h> on FreeBSD/alpha.Loren J. Rittle1-0/+5
From-SVN: r51383
2002-03-26configure.in, configure: enable dwarf2-exception-style exception handling on ↵Andrew Haley1-2/+30
IA-64. * configure.in, configure: enable dwarf2-exception-style exception handling on IA-64. * include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64. (INIT_SEGV, INIT_FPE): Use __libc_sigaction instead of syscall. Add FIXME comment. From-SVN: r51367
2002-03-26Makefile.am (libgcj_la_LDFLAGS): Use THREADLDFLAGS.Tom Tromey1-5/+7
* Makefile.am (libgcj_la_LDFLAGS): Use THREADLDFLAGS. (jv_convert_LDFLAGS): Likewise. (gij_LDFLAGS): Likewise. (rmic_LDFLAGS): Likewise. (rmiregistry_LDFLAGS): Likewise. * configure.in (THREADLDFLAGS): New subst; set correctly for *BSD. From-SVN: r51363
2002-03-23reverted erroneous checkinTom Tromey1-6/+5
From-SVN: r51235
2002-03-23name-finder.h (_Jv_name_finder::myclose): New method.Tom Tromey2-11/+27
* include/name-finder.h (_Jv_name_finder::myclose): New method. * name-finder.cc (_Jv_name_finder): Initialize file descriptors. From-SVN: r51234
2002-03-192002-03-19 Martin Kahlert <martin.kahlert@infineon.com>Martin Kahlert1-1/+1
* include/jni.h Use correct C comments From-SVN: r51046
2002-03-18jni.h (JNIIMPORT): New macro.Tom Tromey1-0/+6
* include/jni.h (JNIIMPORT): New macro. (JNIEXPORT): Likewise. (JNICALL): Likewise. From-SVN: r51009
2002-03-18i386-signal.h (old_i386_kernel_sigaction): New.Andrew Haley1-26/+41
2002-03-18 Andrew Haley <aph@cambridge.redhat.com> * include/i386-signal.h (old_i386_kernel_sigaction): New. INIT_SEGV: Use old_i386_kernel_sigaction. INIT_FP: Likewise. From-SVN: r50980
2002-03-18natSystem.cc (init_properties): Update VM version properties.Bryce McKinlay1-0/+7
* java/lang/natSystem.cc (init_properties): Update VM version properties. * configure.in: Set GCJVERSION. * acconfig.h: Add GCJVERSION. * configure: Rebuilt. * include/config.h.in: Rebuilt. From-SVN: r50944
2002-03-15Install libgcj-config.h in a better place.Anthony Green1-4/+5
From-SVN: r50817
2002-03-11posix.h: Add multiple include header protection.Bryce McKinlay1-0/+5
* include/posix.h: Add multiple include header protection. * java/net/natPlainSocketImpl.cc: Don't #include <posix.h>. From-SVN: r50559
2002-03-10Win32Process.java: Added comment.Tom Tromey2-4/+13
* java/lang/Win32Process.java: Added comment. * include/posix.h (_Jv_platform_close_on_exec): New function. Include fcntl.h. * include/win32.h (_Jv_platform_close_on_exec): New function. * java/net/natPlainSocketImpl.cc (create): Set close-on-exec flag. (accept): Likewise. * java/net/natPlainDatagramSocketImpl.cc (create): Set close-on-exec flag. * java/io/natFileDescriptorPosix.cc (open): Set close-on-exec flag. From-SVN: r50536
2002-03-10Hashtable synchronization for PowerPC.Bryce McKinlay1-9/+3
libjava: Hashtable synchronization for PowerPC. * configure.in: Define SLOW_PTHREAD_SELF if configure.host set slow_pthread_self. Set up symlink for sysdeps directory. * configure: Rebuild. * configure.host: Document more shell variables. Set sysdeps_dir for most platforms. Set slow_pthread_self for i686. Set enable_hash_synchronization_default and slow_pthread_self for PowerPC. * posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so that memory barrier is emitted where required. * prims.cc: 64-bit align static primitive class instances. * include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add read_barrier() to enforce ordering of reads. * sysdep/powerpc/locks.h: New file. Implementation of synchronization primitives for PowerPC. * sysdep/i386/locks.h: New file. Synchronization primitives for i386 moved from natObject.cc. * sysdep/alpha/locks.h: Likewise. * sysdep/ia64/locks.h: Likewise. * sysdep/generic/locks.h: Likewise. * java/lang/natObject.cc: Move thread synchronization primitives to system-dependent headers. gcc/java: * decl.c (java_init_decl_processing): Make sure class_type_node alignment is not less than 64 bits if hash synchronization isenabled. boehm-gc: * include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ support is enabled, for hash synchronization. From-SVN: r50523
2002-03-08* include/jni.h: Include stdio.h.Tom Tromey1-0/+3
From-SVN: r50457
2002-03-08win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong.Adam Megacz2-2/+10
2002-03-07 Adam Megacz <adam@xwt.org> * win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. Added implementation * posix.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * win32.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * posix.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * java/lang/natSystem.cc (currentTimeMillis): Now uses updated _Jv_platform_gettimeofday signature. From-SVN: r50416
2002-03-06config.h.in: Rebuilt.Tom Tromey1-3/+0
* include/config.h.in: Rebuilt. * configure: Rebuilt. * Makefile.in: Rebuilt. From-SVN: r50381
2002-03-06unicode-decomp.pl: Move from chartables.pl...Eric Blake2-83182/+1278
2002-03-04 Eric Blake <ebb9@email.byu.edu> * scripts/unicode-decomp.pl: Move from chartables.pl, and remove the code for generating include/java-chartables.h. * scripts/unicode-blocks.pl: Move from scripts/blocks.pl, and merge with Classpath. * scripts/unicode-muncher.pl: Copy from Classpath. * scritps/MakeCharTables.java: New file. * gnu/gcj/convert/Blocks-3.txt: New file. * gnu/gcj/convert/UnicodeData-3.0.0.txt: New file. * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html: New file. * gnu/java/lang/CharData.java: Copy from Classpath. * Makefile.am (ordinary_java_source_files): Add gnu/java/lang/CharData.java. * configure.in: Remove --enable-fast-character option. * java/lang/Character.java: Merge algorithms and Javadoc with Classpath. * java/lang/natCharacter.cc: Implement Unicode lookup table more efficiently. * include/java-chardecomp.h: Regenerate. * include/java-chartables.h: Regenerate. From-SVN: r50368
2002-02-27natSystem.cc (init_properties): Use __VERSION__.Tom Tromey2-7/+3
* java/lang/natSystem.cc (init_properties): Use __VERSION__. * gij.cc (version): Use __VERSION__. * include/config.h.in: Rebuilt. * acconfig.h (GCJVERSION): Removed. * configure: Rebuilt. * configure.in (GCJVERSION): Removed. From-SVN: r50088
2002-02-23Makefile.in, [...]: Rebuilt.Alexandre Oliva1-2/+4
* Makefile.in, gcj/Makefile.in, include/Makefile.in: Rebuilt. * testsuite/Makefile.in: Likewise. From-SVN: r49985
2002-02-14jni.h: Fix typo.Martin Kahlert1-2/+2
2002-02-14 Martin Kahlert <martin.kahlert@infineon.com> * include/jni.h: Fix typo. From-SVN: r49767
2002-02-12win32.h: Added _Jv_platform_gettimeofday.Adam Megacz1-0/+1
2002-02-11 Adam Megacz <adam@xwt.org> * include/win32.h: Added _Jv_platform_gettimeofday. * win32.cc (_Jv_platform_gettimeofday): Added dummy function. From-SVN: r49693
2002-02-07name-finder.h: Conditionally include sys/wait.h.Tom Tromey2-1/+6
* include/name-finder.h: Conditionally include sys/wait.h. * include/config.h.in: Rebuilt. From-SVN: r49585
2002-02-07prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.Tom Tromey2-3/+4
* prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize. * win32.cc (win32_exception_handler): Now static. * include/win32.h (_Jv_platform_initialize): Declare. (win32_exception_handler): Don't declare. * java/lang/natSystem.cc (currentTimeMillis): Use _Jv_platform_gettimeofday. * posix.cc (_Jv_platform_gettimeofday): Renamed. (_Jv_select): Use new name. (_Jv_platform_initialize): New function. * include/posix.h (_Jv_platform_gettimeofday): Renamed from _Jv_gettimeofday. (_Jv_platform_initialize): Declare. From-SVN: r49583
2002-02-07For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on Linux...Adam Megacz1-2/+0
For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on Linux; this patch backs out my patch that added the #ifdefs until I can figure out what happened. From-SVN: r49572
2002-02-07configure.in: Changed mingw) to *mingw*).Adam Megacz1-0/+22
2002-02-06 Adam Megacz <adam@xwt.org> * configure.in: Changed mingw) to *mingw*). * win32.cc: Created this file. * win32.h: Created this file. * win32.cc, prims.cc, win32.h (win32_exception_handler): Moved win32_exception_handler from prims.cc to win32.cc, added header in win32.h. * prims.cc: removed some #ifdef-WIN32'd headers which are no longer needed now that we have platform.h From-SVN: r49566