Rainer Orth
08ecdbebab
g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.
...
gcc/testsuite:
* lib/g++.exp (g++_set_ld_library_path): Renamed to
${tool}_set_ld_library_path.
Changed caller.
* lib/objc.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.
libjava/testsuite:
* lib/libjava.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.
From-SVN: r44420
2001-07-27 12:21:56 +00:00
Bryce McKinlay
fa397ddafb
Calendar.java (set): Never recompute fields here.
...
* java/util/Calendar.java (set): Never recompute fields here. They
will already be set if someone set time explicitly, and it can cause
problems to do so. Don't invalidate AM_PM setting if HOUR is set.
* java/util/GregorianCalendar.java (computeTime): Don't ignore an
HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
sane.
* java/text/SimpleDateFormat.java (defaultCentury): New field.
(readObject): Call set2DigitYearStart if appropriate so that
defaultCentury is calculated.
(SimpleDateFormat): Don't bother clearing calendar here. Call
computeCenturyStart().
(set2DigitYearStart): Calculate and set defaultCentury.
(format): Don't clone the calendar. Use "calendar" not "theCalendar"
everywhere.
(parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2 numeric digits, use the 80-20 heuristic to parse the value into a
default century based on defaultCenturyStart.
(computeCenturyStart): Rewritten. Call set2DigitYearStart().
From-SVN: r44395
2001-07-26 12:21:45 +01:00
Tom Tromey
a9e83c1b1b
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.jar): Correctly fail when bytecode
compilation fails.
From-SVN: r44359
2001-07-25 16:40:04 +00:00
Rainer Orth
edd60b15d1
prims.cc (_JNI_OnLoad): New function.
...
* prims.cc (_JNI_OnLoad): New function.
(JNI_OnLoad): Use it.
(_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
From-SVN: r44316
2001-07-24 20:08:58 +00:00
Rainer Orth
6e6958dce4
Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
...
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
Makefile.in: Regenerate.
From-SVN: r44314
2001-07-24 19:51:34 +00:00
Tom Tromey
82545bf72f
VMClassLoader.java (getPrimitiveClass): Return correct type.
...
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
type.
From-SVN: r44296
2001-07-24 14:31:42 +00:00
Tom Tromey
e109d16f8c
javaprims.h: Rebuilt class list.
...
* gcj/javaprims.h: Rebuilt class list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added VMClassLoader.
* java/lang/VMClassLoader.java: New file.
* java/lang/Boolean.java: Merged with Classpath.
* java/lang/Byte.java: Merged with Classpath.
* java/lang/Integer.java: Merged with Classpath.
* java/lang/Long.java: Merged with Classpath.
* java/lang/Number.java: Merged with Classpath.
* java/lang/Short.java: Merged with Classpath.
From-SVN: r44274
2001-07-23 20:01:29 +00:00
Jeff Sturm
092a1f5ab3
configure.host: Enable hash synchronization for alpha*-*.
...
* configure.host: Enable hash synchronization for alpha*-*.
* include/posix-threads.h (_Jv_ThreadSelf): Added inline function for alpha.
* java/lang/natObject.cc (compare_and_swap, release_set,
compare_and_swap_release): Added inline functions for alpha.
From-SVN: r44251
2001-07-23 03:51:17 +00:00
Jeff Sturm
deaabf1413
re PR java/3731 (gcj should generate class init code for instanceof)
...
* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.
From-SVN: r44151
2001-07-19 14:03:08 +00:00
Rainer Orth
06c271c3cf
natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options IPV6_JOIN_GROUP...
...
* java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
back to old RFC 2133 variants if missing.
From-SVN: r44130
2001-07-18 20:39:52 +00:00
Tom Tromey
e5c83273cf
natFileWin32.cc (_access): Renamed.
...
* java/io/natFileWin32.cc (_access): Renamed.
(_stat): Likewise.
* java/io/natFile.cc (_access): Renamed.
(_stat): Likewise.
* java/io/File.java (access, stat): Add leading `_' to name.
Updated all callers.
From-SVN: r44124
2001-07-18 18:35:12 +00:00
Tom Tromey
860a15368d
For PR java/2812:
...
* libgcj.spec.in (*lib): Added LIBICONV.
* configure: Rebuilt.
* configure.in: Call AM_ICONV. Don't check for iconv function.
Add parameters to JV_HASH_SYNCHRONIZATION define.
* acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
From-SVN: r44116
2001-07-18 17:06:24 +00:00
Alexandre Petit-Bianco
ba75520fff
i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.'
...
2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
local `_ebp.'
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00070.html )
From-SVN: r44093
2001-07-17 16:59:07 -07:00
Bryce McKinlay
f79ced717f
LinkedList.java (clone): Clear the copy list with clear(), not by setting its size field.
...
* java/util/LinkedList.java (clone): Clear the copy list with clear(),
not by setting its size field.
From-SVN: r44057
2001-07-17 02:56:38 +01:00
Alexandre Petit-Bianco
e47c5acd7b
anon_ctor_itf_arg.java: Moved to `libjava.lang.'
...
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.'
* libjava.compile/anon_ctor_itf_arg.out: Likewise
* libjava.lang/invoke_from_inner.java: New file.
* libjava.lang/invoke_from_inner.out: Likewise.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00061.html )
From-SVN: r43994
2001-07-13 12:45:05 -07:00
Tom Tromey
a9a399fe24
re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)
...
Fix for PR libgcj/3426:
* gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
errno.h.
(read): Throw exception if character conversion fails.
* java/io/BufferedInputStream.java (refill): Now package-private.
* java/io/InputStreamReader.java (ready): Simplified.
(refill): New method.
(read): Use it.
Co-Authored-By: David Brownell <david-b@pacbell.net>
From-SVN: r43975
2001-07-13 05:41:28 +00:00
Alexandre Petit-Bianco
c813baa415
anon_ctor_itf_arg.java: New file.
...
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: New file.
* libjava.compile/anon_ctor_itf_arg.out: New file.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00059.html )
From-SVN: r43974
2001-07-12 14:39:56 -07:00
Tom Tromey
b9aaec62b7
* libjava.lang/N19990310_4.xfail: Removed.
...
From-SVN: r43968
2001-07-12 17:06:33 +00:00
Tom Tromey
a3e5ae6dd8
Report from Henner Zeller:
...
* java/io/FileOutputStream.java (FileOutputStream): Throw
FileNotFoundException, not IOException.
From-SVN: r43966
2001-07-12 15:37:43 +00:00
Anthony Green
9556f88777
Add some org packages.
...
From-SVN: r43922
2001-07-11 03:59:16 +00:00
Alexandre Petit-Bianco
aac560ac26
Makefile.am: Added `java/lang/ThreadLocal.java'.
...
libjava:
2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* Makefile.am: Added `java/lang/ThreadLocal.java'.
* Makefile.in: Regenerate.
* java/lang/ThreadLocal.java: Initial import.
libjava/testsuite:
2001-07-10 Alexandre Petit-Bianco <apbianco@readhat.com>
* libjava.lang/TLtest.java: New file.
* libjava.lang/TLtest.out: New file.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00042.html )
From-SVN: r43915
2001-07-10 17:47:37 -07:00
Jeff Sturm
3b1e7311a8
Makefile.am (libgcj.jar): Don't recursively make built_java_source_files.
...
* Makefile.am (libgcj.jar): Don't recursively make
built_java_source_files. Avoid long command lines.
Don't change to $(srcdir) to invoke javac.
(libgcj.la, libgcjx.la); Avoid long command lines.
($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
* Makefile.in: Rebuilt.
From-SVN: r43836
2001-07-07 14:49:43 +00:00
Andrew Haley
b8ef6023aa
i386-signal.h: Don't do anything with unsigned divide overflow except throw an exception.
...
2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
* include/i386-signal.h: Don't do anything with unsigned divide
overflow except throw an exception.
From-SVN: r43813
2001-07-06 16:33:10 +00:00
Andrew Haley
b32685987f
Divide_1.java: Add may more test cases.
...
2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
* libjava.lang/Divide_1.java: Add may more test cases.
* libjava.lang/Divide_1.out: Likewise.
From-SVN: r43812
2001-07-06 16:32:40 +00:00
Tom Tromey
0bedbbdf1b
For PR java/3562:
...
* java/lang/Class.h (Class(void)): Now private. Removed
implementation. From dmorsberger@sensysdl.com .
From-SVN: r43781
2001-07-05 15:57:09 +00:00
Jeff Sturm
38733dbb29
II.java: New file.
...
* libjava.lang/II.java: New file.
* libjava.lang/II.out: New file.
From-SVN: r43744
2001-07-03 23:52:27 +00:00
Tom Tromey
1abd48ad23
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Added aux-dir hacks to satisfy automake and
in-tree builds.
From-SVN: r43740
2001-07-03 22:33:24 +00:00
Tom Tromey
fe3dac3d3c
re PR bootstrap/3281 (Installation failure (mkinstalldirs))
...
Fix for PR bootstrap/3281:
* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
Correctly compute libgcj_basedir.
(mkinstalldirs): Define and subst.
From-SVN: r43739
2001-07-03 22:31:43 +00:00
Jeremy Nimmer
e2a6abb6d5
For PR libgcj/3523:
...
2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
For PR libgcj/3523:
* java/io/LineNumberReader.java (reset): Pass correct arguments to
countLines.
From-SVN: r43683
2001-07-02 05:16:24 +00:00
Tom Tromey
6dc04dec65
IOConverter.java: Manually maintained alias now lowercase.
...
* gnu/gcj/convert/IOConverter.java: Manually maintained alias now
lowercase.
From-SVN: r43620
2001-06-27 21:56:08 +00:00
Tom Tromey
c0aa72210a
encodings.pl: Generate lower-case names.
...
* scripts/encodings.pl: Generate lower-case names. Updated URL
for `character-sets' file.
* gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
lower case.
Rebuilt list of aliases.
From-SVN: r43566
2001-06-26 04:36:47 +00:00
Tom Tromey
62d73fa83b
natFileDescriptorPosix.cc (open): Change error message formatting.
...
* java/io/natFileDescriptorPosix.cc (open): Change error message
formatting. From David Brownell.
From-SVN: r43564
2001-06-26 03:27:57 +00:00
Tom Tromey
c94ef60f8f
* libjava.lang/stub.xfail: Removed.
...
From-SVN: r43558
2001-06-25 20:36:16 +00:00
Andreas Jaeger
20f8e4c7cc
jni.exp (gcj_jni_compile_c_to_so): Fix path for jni.h.
...
* libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Fix path for
jni.h.
From-SVN: r43549
2001-06-25 06:48:55 +02:00
Tom Tromey
470042c712
java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
...
* include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
From Corey Minyard.
From-SVN: r43484
2001-06-21 15:17:21 +00:00
Mark J. Roberts
a0d4ddde2c
BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed sign word.
...
2001-06-19 Mark J. Roberts <mjr@statesmean.com>
* java/math/BigInteger.java (byteArrayToIntArray): Don't include
extraneous/malformed sign word.
From-SVN: r43455
2001-06-19 11:42:03 +00:00
Tom Tromey
a5c30a8cff
* jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
...
From-SVN: r43415
2001-06-15 23:44:45 +00:00
Tom Tromey
6728a61d1f
natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the list has the symbol.
...
* java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
NULL if no library on the list has the symbol.
(init): Call add_library on the program itself.
* prims.cc (JvRunMain): Initialize Runtime before searching for
`main'.
(_Jv_RunMain): Likewise.
From-SVN: r43413
2001-06-15 23:22:02 +00:00
Tom Tromey
39986dd5ee
jni.cc (ClassClass): Removed; updated all users.
...
* jni.cc (ClassClass): Removed; updated all users.
(ObjectClass): Likewise.
(ThrowableClass): Likewise.
(MethodClass): Likewise.
(ThreadGroupClass): Likewise.
(local_ref_table): Renamed from `ref_table'.
(global_ref_table): New global.
(_Jv_JNI_Init): Initialize both ref tables.
(mark_for_gc): Added `ref_table' parameter.
(unmark_for_gc): Likewise. Also, fail if we unreferenced too many
times.
(_Jv_JNI_NewGlobalRef): Updated for new mark function.
(_Jv_JNI_DeleteGlobalRef): Likewise.
(_Jv_JNI_DeleteLocalRef): Likewise.
(_Jv_JNI_NewLocalRef): Likewise.
(_Jv_JNI_PopLocalFrame): Likewise.
(_Jv_JNI_GetStringChars): Likewise.
(_Jv_JNI_ReleaseStringChars): Likewise.
(_Jv_JNI_GetPrimitiveArrayElements): Likewise.
(_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
From-SVN: r43409
2001-06-15 22:09:10 +00:00
Tom Tromey
d19da8d1b4
jni.exp: New file.
...
* libjava.jni/jni.exp: New file.
* lib/libjava.exp (gcj_link): New proc.
From-SVN: r43375
2001-06-14 17:46:53 +00:00
Tom Tromey
fc07ebe2a7
re PR libgcj/3144 (java.lang.Date.compareTo() not supported)
...
Fix for PR libgcj/3144:
* java/util/Date.java: Merged with Classpath.
From-SVN: r43374
2001-06-14 15:41:57 +00:00
Per Bothner
3b1ba991df
Added John Gilmore.
...
From-SVN: r43330
2001-06-13 10:44:40 -07:00
Tom Tromey
2ee7cd3e81
aclocal.m4, configure: Rebuilt.
...
* aclocal.m4, configure: Rebuilt.
* acinclude.m4: Find configure.host in srcdir.
From-SVN: r43325
2001-06-13 16:48:29 +00:00
Alexandre Petit-Bianco
9b8c19b4f5
exception.cc (cstdlib): Replaces stdlib.h.
...
2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* exception.cc (cstdlib): Replaces stdlib.h.
(_Jv_Throw): Use std::abort().
(PERSONALITY_FUNCTION): Likewise.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00620.html )
From-SVN: r43153
2001-06-10 13:59:37 -07:00
Alexandre Oliva
9dd7e9cf22
acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in autoconf 2.50.
...
* acinclude.m4 (AC_EXEEXT): Work around in case it expands to
nothing, as in autoconf 2.50.
* aclocal.m4, configure: Rebuilt.
From-SVN: r43108
2001-06-09 21:29:16 +00:00
Alexandre Oliva
4e0abb1d51
acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in autoconf 2.50.
...
* acinclude.m4 (AC_EXEEXT): Work around in case it expands to
nothing, as in autoconf 2.50.
* configure: Rebuilt.
From-SVN: r43104
2001-06-09 20:31:23 +00:00
Tom Tromey
f1eba84741
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Compute new aux dir using `pwd'.
From-SVN: r43064
2001-06-08 23:40:17 +00:00
Tom Tromey
fdf448f76b
re PR libgcj/2874 (libjava testsuite disk space usage)
...
Fix for PR libgcj/2874:
* libjava.mauve/mauve.exp (gcj_run_mauve_tests): New proc.
(test_mauve): Return 0 on failure.
* lib/libjava.exp (test_libjava_from_source): Remove generated
files if test is successful.
(test_libjava_from_javac): Likewise.
(gcj_cleanup): New proc.
From-SVN: r43050
2001-06-08 22:12:28 +00:00
Tom Tromey
4c399c87ef
re PR libgcj/3059 (System doesn't set java.home property)
...
Fix for PR libgcj/3059:
* java/lang/natSystem.cc (init_properties): Define `java.home'.
* Makefile.in: Rebuilt.
* Makefile.am (AM_CXXFLAGS): Define PREFIX.
From-SVN: r43040
2001-06-08 19:09:04 +00:00
Tom Tromey
7f7ba9bf90
For PR bootstrap/3075:
...
* configure, aclocal.m4, Makefile.am: Rebuilt.
* configure.in: Pass `--with-auxdir' to subdir configure. Don't
call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
relative to libgcj_basedir.
* acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
AC_CANONICAL_SYSTEM here.
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
libgcj_basedir.
($(extra_headers)): New target.
From-SVN: r43034
2001-06-08 18:02:03 +00:00