summaryrefslogtreecommitdiff
path: root/libjava/include
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in: Rebuilt.tromey1999-10-222-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (java/lang/ClassLoader.h): New target. * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference to `redirect'. * include/java-props.h (_Jv_Compiler_Properties): Changed declaration. * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare. * include/jvm.h (_Jv_GCSetInitialHeapSize, _Jv_GCSetMaximumHeapSize): Declare. (JvRunMain, _Jv_RunMain): Declare. (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare. * nogc.cc (_Jv_GCSetInitialHeapSize): New function. (_Jv_GCSetMaximumHeapSize): Likewise. * boehm.cc (_Jv_GCSetInitialHeapSize): New function. (_Jv_GCSetMaximumHeapSize): Likewise. * prims.cc (parse_heap_size): New function. (_Jv_SetInitialHeapSize): Likewise. (_Jv_SetMaximumHeapSize): Likewise. (_Jv_Compiler_Properties): New global. * gij.cc (help): New function. (version): Likewise. (heap_size): Likewise. (heap_max_size): Likewise. (main): Parse arguments. Set _Jv_Compiler_Properties. Include <config.h>, <java-props.h>. (_Jv_Compiler_Properties): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30133 138bc75d-0d04-0410-961f-82ee72b054a4
* * gij.cc (main): Formatting fixes.tromey1999-10-151-0/+6
| | | | | | | | | | | | (_Jv_Compiler_Properties): Define. * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't declare. (init_properties): Set properites from _Jv_Compiler_Properties. * include/java-props.h (_Jv_Compiler_Properties, _Jv_Environment_Properties): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30020 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/java-props.h: Added copyright.tromey1999-10-151-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30018 138bc75d-0d04-0410-961f-82ee72b054a4
* * libtool-version: Catch up by incrementing current.green1999-10-152-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine. * configure.in: Added --disable-getenv-properties and new define `DISABLE_GETENV_PROPERTIES'. * prims.cc (PROCESS_GCJ_PROPERTIES): Define. (next_property_key): New function. (next_property_value): New function. (process_gcj_properties): New function. (JvRunMain): Call process_gcj_properties. (_JvRunMain): Ditto. * java/lang/natSystem.cc (init_properties): Set properties defined in GCJ_PROPERTIES. Also add 1.2 style versioning properties. * include/java-props.h: New file. * java/lang/natSystem.cc (init_properties): Add new properties to conform with Java Product Versioning Specification. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30007 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey1999-10-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | * configure.in: Set classpath when invoking gcj. Use changequote around sed invocation. * java/net/natPlainSocketImpl.cc: Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed typo in exception string. (getTimeToLive): Likewise. Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natInetAddress.cc: Stub native functions if DISABLE_JAVA_NET is defined. * configure.host: Disable java.net for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_JAVA_NET): Undefine. * configure.in: Added --disable-java-net and new define `DISABLE_JAVA_NET'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29759 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now atromey1999-09-271-1/+2
| | | | | | | | `void *'. (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29682 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR java.util/47:tromey1999-09-241-9/+0
| | | | | | | | | | | | | | | | | | * configure, include/config.h: Rebuilt. * configure.in: Don't look for ctime or ctime_r. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Don't mention natDate.cc. * java/util/natDate.cc: Removed. * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New static fields. (getAvailableIDs): Rewrote. (getTimeZone): Rewrote. * java/util/Date.java (toGMTString): New method. (toLocaleString): New method. (toString): Rewrote. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29656 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix-threads.h (_Jv_MutexDestroy): Usetromey1999-09-211-3/+3
| | | | | | | | | _Jv_PthreadGetMutex. (_Jv_MutexLock): Likewise. (_Jv_MutexUnlock): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29569 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/java-insns.h: Turned constants into an enum. Addedtromey1999-09-141-228/+231
| | | | | | | multiple-inclusion protection. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29406 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey1999-09-1011-709/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: New file. * java/lang/Object.h: Don't include any other headers. * gcj/array.h: Renamed from include/java-array.h. * gcj/field.h: Renamed from include/java-field.h. * gcj/method.h: Renamed from include/java-method.h. * gcj/cni.h, gcj/javaprims.h: Moved from include/. Updated all files to reflect new include structure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29278 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix-threads.h (_Jv_PthreadCheckMonitor): Revertedtromey1999-09-081-1/+3
| | | | | | | | previous change and implemented a correct test in the __m_count case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29209 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed testtromey1999-09-081-1/+1
| | | | | | | in __m_count case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29193 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-09-07 Tom Tromey <tromey@cygnus.com>tromey1999-09-081-0/+7
| | | | | | | | | | | | | | | | | | * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR, not `r'. Changed `done_sleeping' to a `bool'. 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu * libjava/posix-threads.cc: Added _Jv_ThreadDataKey. Added FLAG_INTERRUPTED to indicate that a thread was interrupted by another thread, rather than by the GC. (_Jv_CondWait): Prevent premature thread wakeup by GC. (_Jv_InitThreads): Initialize _Jv_ThreadDataKey. * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29177 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey1999-09-031-0/+3
| | | | | | | | | | * configure.in: Check for fstat function. * java/io/natFileDescriptorPosix.cc (available): Use fstat() if FIONREAD fails. This fixes PR 3 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29078 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/java-array.h (jobjectArrayjchar): Removed unusedtromey1999-09-021-2/+0
| | | | | | | declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29068 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.tromey1999-09-022-9/+17
| | | | | | | | | | | | | | | | | | | (_Jv_PthreadGetMutex): Use it. (_Jv_PthreadCheckMonitor): Use new M_COUNT macros. (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT. (_Jv_MutexLock): Likewise. (_Jv_MutexUnlock): Likewise. * include/config.h.in: Rebuilt. * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT, PTHREAD_MUTEX_HAVE___M_COUNT): New undefs. * configure: Rebuilt. * libgcj.spec.in: Don't mention INTERPSPEC. * configure.in (INTERPSPEC): Removed. Only run pthreads-related checks when using POSIX threads. Check for m_count and __m_count in mutex structure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29048 138bc75d-0d04-0410-961f-82ee72b054a4
* * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.tromey1999-09-011-17/+66
| | | | | | | | | | | | | | | * include/posix-threads.h (_Jv_Mutex_t): Define as structure, except on Linux. (_Jv_PthreadGetMutex): New function. (_Jv_PthreadCheckMonitor): Use it. (_Jv_MutexInit): Likewise. ALso, initialize `count'. (_Jv_MutexLock): Update `count'. (_Jv_MutexUnlock): Likewise. (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29032 138bc75d-0d04-0410-961f-82ee72b054a4
* * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.tromey1999-09-011-6/+23
| | | | | | | | | | | | * include/posix-threads.h (_Jv_PthreadCheckMonitor): New function. (_Jv_CondNotify): Use it. (_Jv_CondNotifyAll): Likewise. * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29030 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unusedtromey1999-09-011-1/+0
| | | | | | | declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29021 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Check for in_addr_t in netinet/in.h too. Checkoliva1999-08-211-2/+6
| | | | | | | | | | | | | | for ip_mreq too. * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t. (HAVE_STRUCT_IP_MREQ): Added. * configure, include/config.h.in: Rebuilt. * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint if needed. * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp): Disable if ip_mreq is not available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28798 138bc75d-0d04-0410-961f-82ee72b054a4
* Change in_addr_t default to jintoliva1999-08-211-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28796 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Check types ssize_t and in_addr_t.oliva1999-08-211-0/+9
| | | | | | | | * acconfig.h: Undefine them. * configure, include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28793 138bc75d-0d04-0410-961f-82ee72b054a4
* * interpret.cc (continue1): Implement explicit dispatch table.krab1999-08-201-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | insn_target: Explicit interpreter switch table. SAVE_PC: New macro, moves pc saving code into instructions that require so. NEXT_INSN: New macro, replaces `goto next_insn' in all insns. PC_REGISTER_ASM: New macro. INLINE_SWITCH: New macro. Constrols dispatching strategy. opcode: Remove local variable. {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions. (POKEI): Use _Jv_word. (iinc): Use _Jv_word. (dupx): Change reference argument (sp) to pointer. (jvdump): Remove * interpret.cc: Remove instruction timing instrumentation. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed comment. Don't use _Jv_ClassNameSamePackage. * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry, URLPathEntry, CacheEntry}: Removed. * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path package. (.java.lo): Rule removed. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28777 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/javaprims.h ("Java"): Regenerated namespace decls.tromey1999-08-181-1/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28749 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamedkrab1999-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from _Jv_InternClassStrings. * prims.cc (_Jv_RunMain): New function. (JvRunMain): Remove gij-support. * gij.cc (main): Use _Jv_RunMain. * java/util/zip/ZipFile.java: Call readDirectory in constructor. * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store argument in temp variable. (continue1): For all op_x2y insns, use temp variable for intermediate value. Also remove some comments. * java/lang/natClass.cc (newInstance): Call _Jv_InitClass. (forName): Don't call _Jv_InitClass. * java/lang/Class.java (getResource,getResourceAsStream): Implement. * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor. * java/util/jar/JarInputStream.java: New file. * java/util/jar/JarEntry.java: New file. * java/util/jar/JarFile.java: New file. * java/net/URLClassLoader.java: New file. * java/net/JarURLConnection.java: New file. * gnu/gcj/protocol/jar/Handler.java: New file. * gnu/gcj/protocol/jar/Connection.java: New file. * java/security/SecureClassLoader.java: New file. * java/lang/ClassLoader.java (parent): New variable. (ClassLoader (ClassLoader)): new constructor. (findClass): New method. (loadClass): Add default 1.2 implementation. (getSystemResourceAsBytes, getResourceAsBytes): Removed. (readfully): Removed. * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. (findSystemClass): New method. (VMClassLoader): Constructor rewritten. (init): New method. All other methods removed. * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader to gnu::gcj::runtime::VMClassLoader. (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle class entries. (VMClassLoader::findSystemClass): renamed from findBootClass. * Makefile.am: Add new files. (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28748 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1tromey1999-08-181-1/+5
| | | | | | | | | nano. * include/quick-threads.h (_Jv_CondWait): Don't round to 0 inappropriately. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28742 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>tromey1999-08-121-0/+8
| | | | | | | * include/javaprims.h (TRUE, FALSE): Redefine as themselves. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28689 138bc75d-0d04-0410-961f-82ee72b054a4
* Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>green1999-08-103-105/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile: Rebuilt. * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native builds. * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if present. * configure: Rebuilt. * configure.in: Properly align --help output, fix capitalization and punctuation. * acinclude.m4: Likewise. 1999-08-09 Kresten Krab Thorup <krab@gnu.org> * include/javaprims.h (_Jv_word, _Jv_word2): New types. * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word. (_Jv_callInterpretedMethod): Unused. Remove. (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class): Use ffi_raw. * include/java-cpool.h (_Jv_get, _Jv_put): Remove. (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word. * boehm.cc (_Jv_MarkObj): Use _Jv_word. * interpret.cc: use _Jv_word. * defineclass.cc: use_Jv_word. * resolve.cc: Use _Jv_word. (_Jv_ResolvePoolEntry): Return _Jv_word. * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool. * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): Change comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28641 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-08-09 Anthony Green <green@cygnus.com>green1999-08-087-1/+612
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gij.cc: New file. * include/config.h.in: Rebuilt. * acconfig.h: Add INTERPRETER. * configure: Rebuilt. * Makefile.in: Rebuilt. * Makefile.am (libffi_files): Identify the libffi object files for inclusion in libgcj. (LIBFFIINCS): Define. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): Dummy definition for configurations without an interpreter. * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to java::lang::Boolean constructor. * include/java-interp.h: Always include java-cpool.h. * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0 when INTERPRETER not defined. * java/lang/Class.h (finalize): Define. * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch IOException from File.getCanonicalPath. (getStream): Likewise. * NEWS: More news. * THANKS: More thanks. 1999-08-09 Kresten Krab Thorup <krab@gnu.org> * resolve.cc (get_ffi_type_from_signature): Generate uint16 for jchar type. (_Jv_PrepareClass): Allow non-abstract classes to have abstract subclasses. (_Jv_ResolvePoolEntry): Revert subclass check for protected fields and methods. * interpret.cc (continue1/perform_invoke): Don't sign extend uint16 return val. (continue1/lshl,lshr): Push long, not int. (continue1/ulshr): Use UINT64, not long long. * defineclass.cc (handleFieldsEnd): Handle case when all fields are static. * java/lang/natClass.cc (forName): Add call to _Jv_InitClass. * java/lang/FirstThread.java (run): Add top-level exception handler. (run0): Renamed from run. 1999-08-08 Kresten Krab Thorup <krab@gnu.org> * configure.in (--with-interpreter): Added. * include/config.h.in (INTERPRETER): Added. * java/lang/ClassLoader.java: File replaced. * java/lang/VMClassLoader.java: New file. * java/lang/natClassLoader.cc: New file. * gnu/gcj/runtime/MethodInvocation.java: New file. * gnu/gcj/util/path/SearchPath.java: New file. * gnu/gcj/util/path/PathEntry.java: New file. * gnu/gcj/util/path/DirectoryPathEntry.java: New file. * gnu/gcj/util/path/ZipPathEntry.java: New file. * gnu/gcj/util/path/URLPathEntry.java: New file. * gnu/gcj/util/path/CacheEntry.java: New file. * include/java-interp.h: New file. * include/java-cpool.h: New file. * include/java-insns.h: New file. * defineclass.cc: New file. * interpret.cc: New file. * resolve.cc: New file. * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass, _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass, _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc. (finalize): New. (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE, STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_ prefix. (initializeClass): Use new JV_ prefixed names. Also, call ClassLoader::resolveClass instead of _Jv_ResolveClass. * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING, JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED, JV_STATE_LINKED): New. (_Jv_WaitForState, _Jv_RegisterInitiatingLoader, _Jv_UnregisterClass, _Jv_InternClassStrings): New friends. (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod, _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass, _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod, _Jv_InterpMethodInvocation): New friends for interpreter. (finalize): New. (CONSTANT_Class, CONSTANT_String, etc.): Moved to include/java-cpool.h and renamed with JV_ prefix. * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New decls. (_Jv_UnregisterClass): New decl. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added class loader argument. (_Jv_FindClass): Use class loader. * prims.cc (_Jv_makeUtf8Const): New function. (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass. (_Jv_NewPrimArray): Ditto. (_Jv_FindClassFromSignature): Ditto. * java/lang/reflect/natArray.cc (newInstance): Ditto. * java/lang/reflect/natMethod.cc (getType): Ditto. * include/java-field.h (_Jv_Field::isRef): Make robust for non-resolved contexts. * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. Also, don't mark class->next field. * java/lang/VirtualMachineError.java: Added FIXME note. * configure.in (INTERPSPEC): New spec. * libgcj.spec.in: Added INTERPSPEC. * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and gnu/gcj/runtime/MethodInvocation. (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc. (ordinary_java_source_files): Added above mentioned java classes. * configure: Rebuilt. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28597 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>tromey1999-08-011-0/+3
| | | | | | | | | | * configure.in: Check for bstring.h. * configure, include/config.h.in: Rebuilt. * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h. * java/net/natPlainSocketImpl.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28378 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>tromey1999-08-011-0/+6
| | | | | | | | | | | * configure.in: Check for struct hostent_data and need for -D_REENTRANT for gethostbyname_r declaration. * java/net/natInetAddress.cc: Define _REENTRANT if needed. (lookup): Use hostent_data for fixed_buffer. * configure, include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28369 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-07-19 Andrew Haley <aph@cygnus.com>aph1999-07-211-0/+9
| | | | | | | | | | | | | | | | | | | * prims.cc (JvRunMain): Always initialize arithexception. (_Jv_divI): New function. (_Jv_remI): New function. (_Jv_divJ): New function. (_Jv_remI): New function. * include/jvm.h: Add these new functions. Makefile.am: add DIVIDESPEC. aclocal.m4: ditto. configure.host: set DIVIDESPEC. libgcj.spec.in: pass DIVIDESPEC to compiler. configure: rebuilt. Makefile.in: rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28211 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/stamp-h.in: New file.tromey1999-07-191-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28171 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-07-07 Andrew Haley <aph@cygnus.com>aph1999-07-071-3/+16
| | | | | | | | | | * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two bytes to make it point after the instruction where the trap occurred. (HANDLE_DIVIDE_OVERFLOW): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27989 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.warrenl1999-07-021-0/+3
| | | | | | | | | | | | * configure.in: Added inet_ntoa to AC_CHECK_FUNCS. * include/config.h.in: Rebuilt. * java/net/natPlainDatagramSocketImpl.cc: Added header checking. (mcastGrp): Updated FIXME comments. (setOption): Fixed typo. (getOption):Implemented IP_MULTICAST_IF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27929 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-07-01 Andrew Haley <aph@cygnus.com>aph1999-07-011-2/+2
| | | | | | | | | * include/i386-signal.h: Replace sigaction () with __sigaction (). This is a workaround for a bug in glibc's pthreads package which doesn't deliver any sigcontext information to a signal handler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27876 138bc75d-0d04-0410-961f-82ee72b054a4
* Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>tromey1999-06-241-1/+13
| | | | | | | | | | | | | | | | | | | | | * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h. * java/lang/e_log.c: Don't use __uint32_t. 1999-05-27 Eric Christopher <echristo@cygnus.com> * configure: Rebuilt * configure.in: Fixed ISO C9X and namespace collision with __uint32_t * acconfig.h: Rebuilt * include/config.h.in: Rebuilt * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c, java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c, e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c, java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h, k_tan.c, java/lang/mprec.h, java/lang/s_atan.c, java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c, s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X and namespace collision with __uint32_t git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27729 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-05-21 Andrew Haley <aph@cygnus.com>aph1999-05-211-2/+2
| | | | | | | | | * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added to signal options to allow the same exceptions to be rethrown later. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27079 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-05-20 Andrew Haley <aph@cygnus.com>aph1999-05-202-7/+79
| | | | | | | | | | | | | | * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added. * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro. (INIT_FPE): Exception string made more informative. * include/sparc-signal.h (INIT_FPE): Exception string made more informative. * testsuite/libjava.lang/Divide_1.java: New file. * testsuite/libjava.lang/Divide_1.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27056 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipOutputStream.java (level): Initial value istromey1999-05-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deflater.DEFAULT_COMPRESSION. (close): New method. (closeEntry): Likewise. (finish): Likewise. (put_version): Likewise. (write_entry): Likewise. (put2, put4): Now return `int'. (comment): Default to empty string. (bytes_written): New instance variable. (chain): Likewise. * java/util/zip/ZipEntry.java (setComment): Limit length of comment string. (setCrc): Check CRC validity. (setExtra): Check argument validity. (setMethod): Likewise. (setSize): Likewise. (ZipEntry): Likewise. * include/javaprims.h: Updated namespace declarations. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Mention new files. (nat_source_files): Likewise. * java/util/zip/ZipFile.java (readu2): Throw ZipException, not EOFException. (read4): Likewise. (getInputStream): Handle compressed entries. * java/util/zip/GZIPOutputStream.java: New file. * java/util/zip/GZIPInputStream.java: New file. * java/util/zip/DataFormatException.java: New file. * java/util/zip/CheckedInputStream.java: New file. * java/util/zip/CheckedOutputStream.java: New file. * java/util/zip/InflaterInputStream.java: Implemented. * java/util/zip/natInflater.cc: New file. * java/util/zip/Deflater.java: Implemented. * java/util/zip/natDeflater.cc: New file. * java/util/zip/DeflaterOutputStream.java: Implemented. * java/util/zip/ZipInputStream.java (closeZipEntry): Throw ZipException, not IOException. * java/util/zip/ZipFile.java (readDirectory): Throw ZipException, not IOException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26996 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/javaprims.h: Updated namespace declarations.tromey1999-05-121-2/+4
| | | | | | | | | | | | | | | | | | | | | | | * classes.pl (scan): Uniquify class list. * Makefile.in, configure: Rebuilt. * Makefile.am (nat_source_files): Added natConcreteProcess.cc. (built_java_source_files): New macro. (nat_headers): Added built_java_source_files. (javao_files): Likewise. (EXTRA_libgcj_la_SOURCES): Likewise. (libgcj.zip): Create built class files. ($(built_java_source_files:.java=.class)): New target. (jv_convert_LDADD): Added -L$(here)/.libs. * configure.in: Create links for ConcreteProcess.java and natConcreteProcess.cc. * java/lang/Runtime.java (exec): Create a ConcreteProcess. * java/lang/natEcosProcess.cc: New file. * java/lang/EcosProcess.java: New file. * java/lang/PosixProcess.java: New file. * java/lang/natPosixProcess.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26901 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/RawData.java: Added copyright header.tromey1999-05-101-8/+2
| | | | | | | * include/jni.h (_Jv_va_list): Always define as va_list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26855 138bc75d-0d04-0410-961f-82ee72b054a4
* * acconfig.h (GCJVERSION): New undef.tromey1999-05-071-0/+3
| | | | | | | | | | | | * java/lang/natSystem.cc (init_properties): Define java.version, java.class.version, os.name, os.arch, os.version. Include <sys/utsname.h> if required. * configure: Rebuilt. * configure.in: Compute and define GCJVERSION. * java/lang/natSystem.cc (default_file_encoding): Now static. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26830 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-04-20 Andrew Haley <aph@cygnus.com>aph1999-04-203-3/+95
| | | | | | | | | | | | | | | * include/sparc-signal.h: new file. * configure.in: include/sparc-signal.h added. * configure: regenerated. * prims.cc (JvRunMain): signal handling code rewritten to be more portable. (catch_segv): ditto. (catch_fpe): ditto. * include/i386-signal.h: reorganized. * include/default-signal.h: reorganized. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26560 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/javaprims.h: Removed security namespace.tromey1999-04-191-6/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26543 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.green1999-04-181-0/+6
| | | | | | | | | | * Makefile.am (ordinary_java_source_files): Add new security files. * java/security/NoSuchAlgorithmException.java, java/security/MessageDigest.java: New files. * include/javaprims.h: Add security namespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26536 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-04-13 Andrew Haley <aph@cygnus.com>aph1999-04-132-0/+56
| | | | | | | | | | | | | | * include/i386-signal.h, include/default-signal.h: New files. * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception handler. (catch_fpe): New function. * configure.in: Make link to appropriate include/java-signal.h. * configure: Rebuilt. * Makefile.am: include/java-signal.h added to dependency list. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26400 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisiontromey1999-04-0716-0/+88284
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26263 138bc75d-0d04-0410-961f-82ee72b054a4