OSDN Git Service

improve open-coding of complex divide, use new method in g77
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index eaeff0b..b554fb5 100644 (file)
@@ -1,5 +1,468 @@
+1999-05-17  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/natSystem.cc (init_properties): URL now points to
+       sourceware.
+
+1999-05-12  Per Bothner  <bothner@cygnus.com>
+
+       * java/util/Calendar.java (set):  First call computeFields if needed.
+       * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
+       
+1999-05-12  Tom Tromey  <tromey@cygnus.com>
+
+       * configure: Rebuilt.
+       * configure.in: Look for -ldl when using the Boehm collector.
+       Look for sched_yield in -lposix4.
+
+1999-05-12  Per Bothner  <bothner@cygnus.com>
+
+       * java/io/File.java (mkdirs):  Handle a null parent directory.
+
+1999-05-12  Tom Tromey  <tromey@cygnus.com>
+
+       * include/javaprims.h: Updated namespace declarations.
+       * 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.
+
+1999-05-12  Warren Levy  <warrenl@cygnus.com>
+
+       * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
+       * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
+       * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
+       (connect): Throw ConnectException.
+
+1999-05-11  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
+       * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
+       our libraries.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
+       and it causes problems with libtool.
+
+       * Makefile.in, configure: Rebuilt.
+       * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
+       (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
+       (jv_convert_DEPENDENCIES): Added ZDEPS.
+       * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
+       directory.
+       (THREADSPEC): Added `-L' to point to qthreads build directory.
+       (ZLIBS): New subst.
+       (ZDEPS): New subst.
+
+       * configure, Makefile.in: Rebuilt.
+       * Makefile.am (toolexeclib_DATA): New macro.
+       * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
+       Recognize --with-system-zlib.
+       (GCSPEC): New subst.
+       (THREADSPEC): New subst.
+       (SYSTEMSPEC): New subst.
+       (ZLIBSPEC): New subst.
+       * libgcj.spec.in: New file.
+
+1999-05-10  Tom Tromey  <tromey@cygnus.com>
+
+       * java/io/InputStreamReader.java (read): If length is 0, return
+       0.  Reset `wpos' and `wcount' when buffer has been filled and
+       emptied.
+
+       * java/util/Properties.java (save): Removed `FIXME' comment.
+       (load): Invalid characters in \u now treated as terminators.
+       Make sure to append character resulting from `\' handling.
+       Cast to `char' when appending to key or value.
+       (skip_ws): Inverted test for whitespace.
+
+       * java/io/RandomAccessFile.java (RandomAccessFile): Removed
+       `FIXME' comment.
+       (readLine): Likewise.
+       (readFully): Implemented.
+
+       * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
+
+       * java/awt/natToolkit.cc: Added copyright header.
+       * java/util/zip/InflaterInputStream.java: Added copyright header.
+
+       * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
+       comment.
+       * java/io/SequenceInputStream.java (SequenceInputStream): Removed
+       `FIXME' comment.
+       (getNextStream): Likewise.
+
+       * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
+       locale.toString().
+       (getBundle): Don't explicitly throw null pointer exception.
+
+       * gnu/gcj/RawData.java: Added copyright header.
+
+       * include/jni.h (_Jv_va_list): Always define as va_list.
+
+1999-05-9  Anthony Green  <green@cygnus.com>
+
+       * java/text/DateFormat.java (computeInstance): Separate time
+       and date styles.
+       (getDateTimeInstance): Ditto.
+       (getDateTimeInstance(int,int)): New method.
+
+        * Makefile.in: Rebuilt.
+       * Makefile.am (ordinary_java_source_files): Add new classes.
+
+       * java/util/PropertyResourceBundle.java: New file.
+       * gnu/gcj/util/EnumerationChain.java: New file.
+
+1999-05-07  Tom Tromey  <tromey@cygnus.com>
+
+       * acconfig.h (GCJVERSION): New undef.
+       * 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.
+
+       * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
+
+       * libtool-version: New file.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
+       -release.
+
+       * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
+       Comment out FieldPosition, ParsePosition, and SimpleDateFormat
+       again (oops).
+
+       * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
+       (we pick those up already).
+
+1999-05-05  Per Bothner  <bothner@cygnus.com>
+
+       * java/awt/*:  Check a bunch of classes, a few complete, but mostly
+       stub classes.  (This is enough to get Kawa to compile against libgcj.)
+
+       * gnu/gcj/RawData.java:  New class.
+       * doc/cni.sgml:  Document RawData.
+
+       * java/util/zip/InflaterInputStream.java:  New stub class.
+       * java/util/zip/ZipInputStream.java:  New class.  Partly works.
+       * java/util/zip/ZipConstants.java:  Add two (internal) constants.
+       * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
+       * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
+       * java/util/zip/ZipOutputStream.java:  Start implementation.
+       
+       * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
+       (default_file_encoding):  New global, initial value is above macro.
+       (init_properties):  Default file.encoding to default_file_encoding.
+       
+       * Makefile.am:  Add new classes.
+
+1999-05-05  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (CLEANFILES): Don't mention $(class_files).
+       (clean-local): New target
+
+       * java/lang/natRuntime.cc: Include <ltdl.h> if required.
+       (load, loadLibrary): Now native.
+       (init): New method.
+       * java/lang/Runtime.java (load, loadLibrary): Now native.
+       (init): New native method.
+       (Runtime): Use init.
+       * prims.cc: Include <ltdl.h> if required.
+       (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
+
+1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
+
+       * configure.in: Switch from irix threads to posix threads
+       * configure: Regenerate.
+
+1999-04-30  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_LDADD): Added -lgcc.
+
+1999-04-29  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/StringBuffer.java (ensureCapacity): Don't resize
+       vector when shared.
+
+       * java/util/Locale.java (Locale(String,String)): Implement in
+       terms of 3-argument version; variant now defaults to empty
+       string.
+       (toString): Assume variant is not null.
+       (equals): Assume all strings are not null.
+       (Locale): Throw NullPointerException if any argument is null.
+
+       * java/util/ResourceBundle.java (getBundle): Don't try the base
+       name; now implicit in partialGetBundle call.
+       (trySomeGetBundle): Search for parent bundles and call setParent
+       as required.
+       (partialGetBundle): Added `langStop' argument.  Use
+       `Locale.toString' to compute bundleName.
+       (resource_cache): New static field.
+       (partialGetBundle): Cache the returned resource bundle.  Now
+       synchronized.
+
+       * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
+       missing `<'.
+
+       * mauve-libgcj: Enable Collator and RuleBasedCollator.
+       * java/text/natCollator.cc (decomposeCharacter): `base' now
+       `const'.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (ordinary_java_source_files): Added
+       CollationElementIterator, CollationKey, Collator,
+       RuleBasedCollator.
+       (nat_source_files): Added natCollator.cc.
+       * java/text/RuleBasedCollator.java (ceiNext): No longer static.
+       (compare): Pass `this' to CollationElementIterator constructor.
+       (getCollationElementIterator): Likewise.
+       (ceiNext): Fix off-by-one error when finding initial substring.
+       (next): Correctly mask off bits when computing return value.
+       Fixed return values when one string is shorter than the other.
+       * java/text/CollationElementIterator.java (collator): New field.
+       (CollationElementIterator): Added collator argument.
+       (next): Call ceiNext on collator object.
+
+1999-04-26  Tom Tromey  <tromey@cygnus.com>
+
+       * natCollator.cc: New file.
+
+       * java/util/GregorianCalendar.java (setDefaultTime): New method.
+       (GregorianCalendar): Use it in all constructors.
+       * java/util/Calendar.java (Calendar): Changed argument name to
+       `zone' to match code.
+
+       * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
+       * java/text/CollationKey.java: New file.
+       * java/text/CollationElementIterator.java: New file.
+       * java/text/Collator.java: New file.
+       * java/text/RuleBasedCollator.java: New file.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
+       (jv_convert_LDADD): Explicltly add -lm -lc.
+
+1999-04-26  Tom Tromey  <tromey@cygnus.com>
+
+       * configure, Makefile.in: Rebuilt.
+       * configure.in: Added AM_PROG_LIBTOOL.
+       (GCOBJS): Use `.lo' form of files.
+       (THREADOBJS): Likewise.
+       (GCDEPS): Use `.la' form of library.
+       (GCLIBS): Set to be the same as GCDEPS.
+       (THREADDEPS): Use `.la' form of library.
+       (THREADLIBS): Set to be the same as THREADDEPS.
+       * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
+       toolexeclib_LIBRARIES.
+       (libgcj_la_SOURCES): Renamed for libtoolization.
+       (EXTRA_libgcj_la_SOURCES): Likewise.
+       (libgcj_la_DEPENDENCIES): Likewise.
+       (libgcj_la_LIBADD): Likewise.
+       ($(nat_files)): Use LTCXXCOMPILE.
+       ($(c_files)): Use LTCOMPILE.
+       (GCJCOMPILE): New macro.
+       (.class.o): Use it.
+       (.java.o): Likewise.
+       ($(javao_files)): Likewise.
+       (jv_convert_LINK): Use LIBTOOL.
+       (nat_files): Use `.lo' files.
+       (c_files): Likewise.
+       (javao_files): Likewise.
+       (.class.lo): Renamed.
+       (.java.lo): Likewise.
+       ($(nat_files)): Depend on %.lo.
+       ($(c_files)): Likewise.
+       ($(javao_files)): Likewise.
+       (jv_convert_LDADD): Link against .lo files.
+       (jv_convert_DEPENDENCIES): Depend on .lo files.
+       (maintainer-check): Depend on libgcj.la, but examine .a file.
+       (jv_convert_DEPENDENCIES): Depend on libgcj.la.
+       (libgcj_la_LDFLAGS): New macro.
+
+1999-04-23  Warren Levy  <warrenl@cygnus.com>
+
+       * Makefile.am: Added URLDecoder and URLEncoder.
+       * Makefile.in: Rebuilt.
+
+       * java/net/ServerSocket.java (setSocketFactory): Renamed from
+       setSocketImplFactory to match spec.
+       * java/net/Socket.java (getSoLinger): Changed return type to
+       match spec.
+
+       * java/net/URLDecoder.java: New file.
+       * java/net/URLEncoder.java: New file.
+
+1999-04-21  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/natString.cc (getBytes): Reverted earlier change and
+       applied correct fix from Per Bothner.
+
+       * java/lang/String.java: Don't throw
+       UnsupportedEncodingException.
+
+       * java/lang/natString.cc (getBytes): Correctly size result
+       buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
+
+1999-04-20  Andrew Haley  <aph@cygnus.com>
+
+       * 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.
+
+1999-04-19  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
+       once.  From Anthony Green.
+
+1999-04-19  Andrew Haley  <aph@cygnus.com>
+
+       * Makefile.in: Processed with new automake.
+
+1999-04-19  Tom Tromey  <tromey@cygnus.com>
+
+       * include/javaprims.h: Removed security namespace.
+
+1999-04-20  Anthony Green  <green@cygnus.com>
+
+       * java/io/PrintStream.java (println): Remove extra println.
+
+1999-04-19  Anthony Green  <green@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * 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.
+
+1999-04-16  Per Bothner  <bothner@cygnus.com>
+
+       * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
+       * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
+       * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
+       * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
+       * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
+       * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
+       * gnu/gcj/convert/natInput_SJIS.cc:  New file.
+       * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
+       * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
+       * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
+       * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
+       * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
+       * Makefile.am:  Various changes for new files and conversions.
+
+       * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
+       New overloading, allows greater efficiency.
+       * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
+       New overloading (for efficiency - avoids copying).
+
+       * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
+       * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
+
+       * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
+       * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
+       (writeChars):  Don't be quite so eager to flush.
+       * java/io/PrintStream.java:  Rewrite.  Now more similar to
+       OutputStreamWriter, using explicit UnicodeToBytes converter.
+       Also, autoflush does not need to flush so often.
+       * java/lang/natString.cc (getBytes):  More efficient algorithm.
+       (init(jbyteArray,jint,jint,jstring)):  More efficient.
+       
+1999-04-15  Warren Levy  <warrenl@cygnus.com>
+
+       * Makefile.am (ordinary_java_source_files): Added new Connection 
+       and Handler classes in gnu.gcj.protocol.file package.
+       * Makefile.in: Rebuilt.
+
+       * gnu/gcj/protocol/file/Connection.java: New file.
+       * gnu/gcj/protocol/file/Handler.java: New file.
+       * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
+       if doInput allows input.
+       (getOutputStream): Check if doOutput allows output.
+       * java/net/URLStreamHandler.java (parseURL): Fix indentation.
+
+1999-04-14  Tom Tromey  <tromey@cygnus.com>
+
+       * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
+       buffer larger to work around bug.
+       From Bryce McKinlay <bryce@albatross.co.nz>.
+
+1999-04-14  Andrew Haley  <aph@cygnus.com>
+
+       * java/lang/natDouble.java (doubleToLongBits): ensure that all
+       NaNs are always converted to the same long value.  
+       * java/lang/natFloat.java (floatToIntBits): ditto, but for float
+       converted to int.
+
+1999-04-13  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
+       instead switch on actual element type.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
+
+1999-04-13  Andrew Haley  <aph@cygnus.com>
+
+        * 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.
+
+1999-04-12  Urban Widmark <urban@svenskatest.se>
+
+       * java/io/DataInputStream.java (readLine): Corrected handling of
+       empty lines, from null to "".
+
+1999-04-12  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
+
+       * java/lang/natSystem.cc (SystemClass): New define.
+       (init_properties): Synchronize.
+
+1999-04-08  Geoff Berry  <gcb@gnu.org>
+
+       * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
+       * natPlainSocketImpl.cc (accept): Add missing else if check
+       for AF_INET6.
+
 1999-04-08  Tom Tromey  <tromey@cygnus.com>
 
+       * java/lang/Long.java (parseLong): Corrected overflow detection
+       code.
+       * java/lang/Integer.java (parseInt): Corrected overflow detection
+       code.
+
        * java/io/PrintStream.java (print): Handle null string argument.
        (println): Likewise.