OSDN Git Service

zlib:
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index cd13bb3..df7a417 100644 (file)
@@ -1,3 +1,540 @@
+2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       Build a single libgcj.so, without separate gc and zlib libraries.
+       * configure.in: Use convenience libraries for boehm-gc and zlib. Set
+       SYS_ZLIBS if system zlib is used.
+       * configure: Rebuilt.
+       * Makefile.am: Use boehm-gc and zlib convenience libraries.
+       * Makefile.in: Rebuilt.
+       * libtool-version: Increment .so version number.
+
+2002-03-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * Makefile.am: Use empty -classpath flag in addition to -bootclasspath.
+       * Makefile.in: Rebuilt.
+
+2002-03-15  Anthony Green  <green@redhat.com>
+
+       * configure.host (FILE): New macro for specifing File
+       implementation.
+       * configure: Rebuilt.
+       * configure.in: Use FILE.  Define HAVE_TIME for newlib targets.
+
+2002-03-15  Alexandre Oliva  <aoliva@redhat.com>
+
+       * Makefile.am (jv_convert_LDADD): Don't list libraries that are
+       already implicitly brought in from libgcj.la.
+       (gij_LDADD, rmic_LDADD, rmiregistry_LDADD): Likewise.
+       * Makefile.in: Rebuilt.
+
+2002-03-15  Eric Blake  <ebb9@email.byu.edu>
+
+       * THANKS: Fix punctuation, alphabetization.
+
+2002-03-15  Tom Tromey  <tromey@redhat.com>
+           Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+       
+       Fix for PR libgcj/5944.
+       * gnu/gcj/io/shs.h: Define uint8_t and uint32_t.
+
+2002-03-15  Anthony Green  <green@redhat.com>
+
+       * configure.in (tool_include_dir): Define.
+       * configure: Rebuilt.
+       * gcj/Makefile.am: Install libgcj-config.h relative to
+       tool_include_dir.
+       * gcj/Makefile: Rebuilt.
+       * gcj/libgcj-config.h: Add warning comment.
+
+2002-03-12  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.host (powerpc*-darwin*): Enable interpreter.
+
+2002-03-10  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * include/posix.h: Add multiple include header protection.
+       * java/net/natPlainSocketImpl.cc: Don't #include <posix.h>.
+
+2002-03-10  Adam Megacz <adam@xwt.org>
+
+        * java/net/natPlainSocketImpl.cc: Added #include <platform.h>.
+       
+2002-03-10  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/GridLayout.java (layoutContainer): Handle case where
+       there are no items in container.
+
+       * 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.
+
+2002-03-09  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (state::NO_STACK): New constant.
+       (state::is_unmerged_ret_state): Handle case where stacktop is
+       NO_STACK.
+       (state::merge): Handle NO_STACK merges.
+       (handle_jsr_insn): Invalidate PC, and use special NO_STACK state
+       for instruction following jsr.
+       (stacktop, stackdepth): Removed unused variables.
+       (pop_jump): Ignore case where all remaining states are skipped.
+
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/awt/ImageMediaEntry: Removed.
+       * java/awt/MediaEntry: Removed.
+
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       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.
+
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
+        bytes read and no failure code returned.
+
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * win32.cc (_CRT_MT, __mingwthr_key_dtor) Added fake
+        definitions to simulate -mthreads.
+       
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * win32.cc (_Jv_platform_gettimeofday) Cast 1000 to long long to
+       avoid precision loss.
+
+2002-03-09  Per Bothner  <per@bothner.com>
+
+       * gnu/gcj/xlib/WindowAttributes.java  Assign null to RawData, not 0.
+       * gnu/gcj/xlib/XImage.java:  Likewise.
+       * gnu/gcj/xlib/XColor.java:  Likewise.
+
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * java/lang/Win32Process.java (ConcreteProcess): Now throws an
+        IOException so that Throwable.printStackTrace fails correctly.
+
+2002-03-08  Adam Megacz  <adam@xwt.org>
+
+        * java/net/natPlainSocketImpl.cc (read, write, close): Formatting
+        fixed.
+
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
+       truncated to int.
+
+2002-03-08  Tom Tromey  <tromey@redhat.com>
+
+       * include/jni.h: Include stdio.h.
+
+2002-03-08  Tom Tromey  <tromey@redhat.com>
+
+       * posix.cc (internal_gettimeofday): New function.
+       (_Jv_select): Use it.
+
+2002-03-07  Adam Megacz  <adam@xwt.org>
+
+        * java/net/natPlainSocketImpl.cc: Changed USE_WINSOCK to
+        WIN32, and added thunks for read(), write(), and close().
+        * java/net/natPlainSocketImpl.cc (accept, read, read):
+        Disabled timeouts on WIN32 pending discussion.
+
+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.
+       
+2002-03-07  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/net/natPlainSocketImpl.cc (_Jv_recv): Removed.
+       (read): Call recv() directly, not _Jv_recv().
+
+2002-03-06  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/natFileDescriptorEcos.cc (init): Don't use
+       GetStdHandle.
+       * java/io/natFileDescriptorPosix.cc (valid): Don't call stat if FD
+       is negative.
+       (init): Don't use GetStdHandle.
+
+       * include/config.h.in: Rebuilt.
+       * configure: Rebuilt.
+       * Makefile.in: Rebuilt.
+
+2002-03-06  Adam Megacz  <adam@xwt.org>
+
+        * java/io/FileDescriptor.java: Initialize in/out/err in init().
+        * java/io/natFileDescriptorWin32.cc (init()): Added function.
+        * java/io/natFileDescriptorPosix.cc (init()): Added function.
+        * java/io/natFileDescriptorEcos.cc (init()): Added function.
+
+2002-03-06  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.
+
+2002-03-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/awt/MediaTracker.java: Implemented.
+       * Makefile.am: Add MediaTracker.
+       * Makefile.in: Rebuilt.
+
+2002-03-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natPosixProcess.cc (fail): Removed.
+       (startProcess): Simplified error-handling.  Preserve
+       LD_LIBRARY_PATH across exec.
+
+       * jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not
+       AbstractMethodError.
+
+2002-03-03  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * Makefile.am: Use -bootclasspath, not -CLASSPATH.
+       * Makefile.in: Rebuilt.
+
+2002-03-03 Mark Wielaard <mark@klomp.org>
+
+       * java/util/Timer (TaskQueue.stop): set elements to zero.
+
+2002-02-28  Anthony Green  <green@redhat.com>
+
+       * java/lang/reflect/natMethod.cc (result): Add void* element.
+       (_Jv_CallAnyMethodA): Handle FFI_TYPE_POINTER arguments.  Move
+       constructor test.
+
+2002-02-27  Adam Megacz <adam@xwt.org>
+
+       * java/net/natInetAddress.cc: Changed USE_WINSOCK to WIN32, added
+       '#undef STRICT'.
+
+2002-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+2002-02-26  Andreas Schwab  <schwab@suse.de>
+
+       * acinclude.m4 (LIB_AC_PROG_CXX): Use glibjava_CXX instead of
+       glibcpp_CXX, since libjava uses even another CXX.
+       * aclocal.m4, configure: Regenerated.
+
+2002-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
+       `1'.
+
+2002-02-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * Makefile.am (GCJCOMPILE): Use -fCLASSPATH not -fclasspath. Fixes
+       dependency tracking for .java files.
+       * Makefile.in: Rebuilt.
+
+2002-02-24  Adam Megacz  <adam@xwt.org>
+
+       * java/net/natPlainDatagramSocketImpl.cc: whops; removed 'make'
+       typo. Sorry.
+
+2002-02-24  Adam Megacz  <adam@xwt.org>
+
+       * java/net/natPlainDatagramSocketImpl.cc: Updated #includes
+       for Win32, changed #ifdefs to check WIN32 instead of the
+       (now-obsolete) USE_WINSOCK, and removed support for socket
+       timeouts on Win32 pending further discussion.
+
+2002-02-24  Adam Megacz  <adam@xwt.org>
+
+       * win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new
+       * win32-threads.cc (_Jv_ThreadDestroyData): _Jv_Free instead of
+       delete
+
+2002-02-24  Adam Megacz  <adam@xwt.org>
+
+       * java/lang/Win32Process.java: Created a dummy class to allow
+       build process to run to completion.
+
+2002-02-24  Jeff Sturm  <jsturm@one-point.com>
+
+       * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
+       Define ffi_result union for ffi_call result.  Cast
+       ffi_result members to jvalue.
+2002-02-23  Alexandre Oliva  <aoliva@redhat.com>
+
+       * Makefile.in, gcj/Makefile.in, include/Makefile.in: Rebuilt.
+       * testsuite/Makefile.in: Likewise.
+
+2002-02-20  Per Bothner  <per@bothner.com>
+
+       * java/net/URL.java (getPath):  New JDK 1.3 method.
+
+       * java/net/URLStreamHandler.java (parseURL):
+       It is wrong to prepend '/' to the file part of a relative url.
+
+       * java/net/URLStreamHandler.java (parseURL):
+       Minor optizations - append '/' rather than "/".
+
+       * java/net/URLStreamHandler.java (parseURL):
+       Don't canonicalize "xx/.." or "./" URLs - JDK doesn't.
+       We probably should canonicalize for a context-relative url, though.
+       * java/net/URL.java (sameFile):  Delegate to URLStreamHandler.
+       * java/net/URLStreamHandler.java (canonicalizeFilename):  New helper.
+       (sameFile):  New method.  Uses canonicalizeFilename.
+
+2002-02-22  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natSystem.cc (init_properties): Include the `Inc.' in
+       java.vendor and java.vm.vendor.
+       * gnu/java/rmi/rmic/RMIC.java (parseOptions): Only print most
+       recent copyright date.
+       * gnu/gcj/convert/Convert.java (version): Print `Inc'.
+       * gij.cc (version): Print `Inc'.
+
+2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
+
+       * acinclude.m4 (CXX): AC_SUBST it, instead of glibcpp_CXX.
+       * aclocal.m4, configure: Rebuilt.
+
+2002-02-20  Per Bothner  <per@bothner.com>
+
+       * gnu/gcj/protocol/file/Connection.java (conect):  Open the input
+       and/or output streams immediately here, instead of using File.exists.
+       (inputStream, outputStream):  New fields to save open streams.
+       (getInputStream, getOutputStream):  Use already-opened streams.
+
+2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
+
+       * acinclude.m4 (LIB_AC_PROG_CXX): Copied from libstdc++-v3.
+       Use it.
+       * Makefile.am (LIBLINK): Use CXX (and its tag) for linking.
+       * aclocal.m4, configure, Makefile.in: Rebuilt.
+
+2002-02-19  Tom Tromey  <tromey@redhat.com>
+
+       Fix for PR libgcj/5696:
+       * verify.cc (is_assignable_from_slow): Never call
+       _Jv_IsAssignableFrom.
+       (verify_instructions_0): Added new debug statement.
+       (state::print): Print information about whether local has
+       changed.
+       (state::merge): Don't call note_variable when merging locals.
+       (state::set_exception): Removed old FIXME comment.
+
+2002-02-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/net/natPlainDatagramSocketImpl.cc (bind): Call setsockopt to
+       enable SO_BROADCAST.
+
+2002-02-18  Jason Merrill  <jason@redhat.com>
+
+       * name-finder.cc (toHex): Use word mode, not long long.
+
+       * gnu/gcj/convert/natIconv.cc (write): Avoid sign-compare warning.
+
+2002-02-15  Tom Tromey  <tromey@redhat.com>
+
+       Fix for PR libgcj/5695:
+       * verify.cc (is_assignable_from_slow): Check to see if target is
+       an Object before checking to see if source is an interface.
+       (verify_instructions_0) [op_invokeinterface]: Handle case where
+       we're making an interface call on Object.
+
+2002-02-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * Makefile.in: Rebuilt with Eric's change below.
+
+       * java/lang/natMath.cc (abs(jdouble), abs(jfloat), round(jfloat),
+       round(jdouble), min(jfloat), max(jfloat), min(jdouble), min(jfloat)):
+       Removed functions which are now implemented in Math.java.
+
+2002-02-14  Eric Blake  <ebb9@email.byu.edu>
+
+       * gcj/javaprims.h (java::lang): Add java::lang::StrictMath.
+       * Makefile.am (core_java_source_files): Add
+       java/lang/StrictMath.java.
+       * java/lang/Math.java: Merge with Classpath.
+       * java/lang/StrictMath.java: New file - merge with Classpath.
+
+2002-02-14  Mark Wielaard  <mark@klomp.org>
+
+       * java/math/BigInteger.java: import gnu.java.math.MPN not the whole
+       package as a workaround for gcj 3.0.x
+
+2002-02-14  Mark Wielaard <mark@klomp.org>
+
+       * java/security/BasicPermission.java: extends with fully qualified
+       classname as workaround for gcj 3.0.4.
+
+2002-02-14  Eric Blake  <ebb9@email.byu.edu>
+
+       * java/net/DatagramSocketImpl.java (setOption, getOption): Work
+       around gcj bug of wrong emitted qualifier for inherited method.
+       * java/net/SocketImpl.java (setOption, getOption): Ditto.
+       * java/util/WeakHashMap.java (WeakEntrySet): Add non-private
+       constructor to reduce amount of emitted bytecode. While this
+       happens to work around a jikes 1.15 bug, it is still a useful
+       patch even for correct compilers.
+       * java/rmi/server/RMIClassLoader.java (MyClassLoader): Ditto.
+       * gnu/java/rmi/server/UnicastRemoteCall.java
+       (DummyObjectOutputStream, DummyObjectInputStream): Ditto.
+
+2002-02-14  Eric Blake  <ebb9@email.byu.edu>
+
+       * java/net/DatagramSocketImpl.java: Reformat (no code changes).
+       * java/net/SocketImpl.java: Ditto.
+       * java/rmi/server/RMIClassLoader.java: Ditto.
+       * gnu/java/rmi/server/UnicastRemoteCall.java: Ditto.
+
+2002-02-14  Mark Wielaard <mark@klomp.org>
+
+       Thanks to Takashi Okamoto
+       * java/util/Arrays.java (ArrayList.indexOf()): this.equals().
+       * java/util/Arrays.java (ArrayList.lastIndexOf()): Likewise.
+       * java/util/WeakHashMap.java (WeakEntry.getEntry()): this.get().
+
+2002-02-13  Todd Stock  <toddastock@yahoo.com>
+
+       Fix for PR libgcj/5670:
+       * verify.cc (is_assignable_from_slow): If `source' is interface,
+       recursively look for merge with `target'.
+
+2002-02-14  Martin Kahlert  <martin.kahlert@infineon.com>
+
+       * include/jni.h: Fix typo.
+
+2002-02-13  Martin Kahlert  <martin.kahlert@infineon.com>
+
+       * jni.cc (_Jv_JNI_AttachCurrentThread): env->locals assigned
+       correctly.
+
+2002-02-13  Todd Stock  <toddastock@yahoo.com>
+
+       Fix for PR libgcj/5671:
+       * verify.cc (state::merge): Handle case where we're merging
+       against an interface.
+
+2002-02-12  Tom Tromey  <tromey@redhat.com>
+
+       * exception.cc (std::abort): Mark as noreturn.
+
+2002-02-12  Adam Megacz <adam@xwt.org>
+
+        * java/lang/Win32Process.java: Filled in a placeholder
+       implementation so Win32 will build.
+
+2002-02-12  Adam Megacz <adam@xwt.org>
+
+        * java/io/natFilePosix.cc: Copied this from natFile.cc.
+       * java/io/natFile.cc: Removed from repository.
+       * configure.in: Added AC_LINK_FILES for natFile${PLATFORM}.
+
+2002-02-12  Adam Megacz <adam@xwt.org>
+
+       * win32.cc: Added two #includes to make win32.cc compile.
+
+2002-02-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * boehm.cc (initialized, obj_kind_x, obj_free_list): Removed unused
+       declarations.
+       (_Jv_InitGC): Don't bother locking, as this is always called from a 
+       single-thread. Turn off GC_all_interior_pointers. Remove dead code.
+
+2002-02-11  Adam Megacz <adam@xwt.org>
+
+       * include/win32.h: Added _Jv_platform_gettimeofday.
+       * win32.cc (_Jv_platform_gettimeofday): Added dummy function.
+
+2002-02-11  Adam Megacz <adam@xwt.org>
+
+       * java/io/natFileWin32.cc, java/io/natFileDescriptorWin32.cc:
+       Added #undef STRICT to make windows.h and
+       java/lang/reflect/Modifier.h cooperate.
+
+2002-02-11  Adam Megacz <adam@xwt.org>
+
+       * java/io/natFileWin32.cc: Created a placeholder class with lots
+       of FIXMEs.
+
+2002-02-11  Adam Megacz <adam@xwt.org>
+
+       * exception.cc (_Jv_Throw, PERSONALITY_FUNCTION): Changed
+       std::abort() to simply abort(). Also added "fake" std::abort() so
+       we can #include unwind-pe.h without having to link against
+       libstdc++-v3.
+
+2002-02-10  Andreas Tobler  <toa@pop.agri.ch>
+
+       * interpret.cc (continue1) [insn_f2l]: Use PUSHL, not PUSHI.
+
+2002-02-08  Tom Tromey  <tromey@redhat.com>
+
+       * interpret.cc (convert): New function.
+       (continue1) [insn_d2i, insn_d2l, insn_f2i, insn_f2l]: Use
+       convert.
+       Include Long.h.
+
+2002-02-08  Anthony Green  <green@redhat.com>
+
+       * configure.host: Add support for xscale-elf embedded target.
+
 2002-02-08  Martin Kahlert  <martin.kahlert@infineon.com>
 
        * jni.cc (_Jv_JNI_NewLocalRef): Make sure, that NULL frame is not