Adam Megacz
c2a6704f60
win32.cc, win32.cc (backtrace): Added this function because Win32 does not 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-24 01:33:19 +00:00
David S. Miller
4bf0144590
dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction 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-22 01:13:32 -07:00
Mark Wielaard
da3c5444ca
re PR java/6391 (Constant float to int conversions don't use ieee_real_to_integer when compiled to byte-code)
...
* mauve-libgcj: Don't run java.lang.ref tests since they are buggy.
* libjava.mauve/xfail: Expect failures for PR java/6391 and
libgcj/6389.
From-SVN: r52577
2002-04-21 12:35:04 +00:00
David S. Miller
714708c8b1
dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg.
...
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-21 02:37:49 -07:00
Hans Boehm
1936721505
configure: Rebuilt.
...
2002-04-19 Hans Boehm <Hans_Boehm@hp.com>
* configure: Rebuilt.
* configure.in (backtrace): Function doesn't work on IA-64.
From-SVN: r52544
2002-04-20 00:31:03 +00:00
Adam King
b7403f10f2
File.java (normalizePath): Add Win32 support for auto conversion of a '/' path separator to Win32's '\'...
...
* java/io/File.java (normalizePath): Add Win32 support for auto
conversion of a '/' path separator to Win32's '\' separator.
From-SVN: r52447
2002-04-18 00:02:33 +01:00
Tom Tromey
ab8471334e
re PR libgcj/6081 (libjava make install fails: Arg list too long)
...
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-16 15:52:26 +00:00
Adam King
6344da6f57
natFileWin32.cc (performList): Return the correct array type.
...
2002-04-16 Adam King <aking@dreammechanics.com>
Tom Tromey <tromey@redhat.com>
* java/io/natFileWin32.cc (performList): Return the correct array
type. Don't duplicate the creation of a File since it's already
done earlier in the method and the existing code would cause a
ArrayStoreException. Don't use fixed-size array.
(_access, _stat, attr, getCanonicalPath, performMkdir,
performRenameTo): Don't use fixed-size array.
(getCanonicalPath): Use throw, not _Jv_Throw.
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r52369
2002-04-16 15:37:39 +00:00
DJ Delorie
902c431d48
configure.in: Allow building in $srcdir.
...
* configure.in: Allow building in $srcdir.
* configure: Regenerated.
From-SVN: r52347
2002-04-15 22:03:03 -04:00
Mark Wielaard
8be46a7d82
natPlainDatagramSocketImpl.cc (close): Set timeout to 0.
...
* java/net/natPlainDatagramSocketImpl.cc (close): Set timeout to 0.
* java/net/natSocketImpl.cc (close): Likewise.
From-SVN: r52312
2002-04-15 03:21:00 +00:00
Mark Wielaard
ad8849afb5
Connection.java (usingProxy): return false.
...
2002-04-14 Mark Wielaard <mark@klomp.org>
* gnu/gcj/protocol/http/Connection.java (usingProxy): return false.
From-SVN: r52310
2002-04-15 03:15:23 +00:00
Adam King
ddfb5e0b69
natDouble.cc (parseDouble): Allow a number to end with the f/F/d/D modifiers.
...
2002-04-13 Adam King <aking@dreammechanics.com>
* java/lang/natDouble.cc (parseDouble): Allow a number to end with
the f/F/d/D modifiers.
From-SVN: r52308
2002-04-15 03:11:12 +00:00
Anthony Green
395cb21141
Install libgcj.jar as libgcj-VERSION.jar.
...
From-SVN: r52226
2002-04-12 14:28:10 +00:00
Bryce McKinlay
605dc89b0e
configure.host: Set can_unwind_signal on hosts which support it.
...
* configure.host: Set can_unwind_signal on hosts which support it.
Don't set CHECKREFSPEC and DIVIDESPEC for FreeBSD.
* configure.in: Set CHECKREFSPEC and DIVIDESPEC if not using SJLJ
exceptions and can_unwind_signal isn't set.
* configure: Rebuilt.
From-SVN: r52193
2002-04-12 02:14:33 +01:00
Tom Tromey
c646bade05
* win32.cc (_Jv_platform_initProperties): Fix spelling of _Jv_Free.
...
From-SVN: r52183
2002-04-11 22:23:43 +00:00
Adam King
94ed000253
jvm.h (_Jv_ThrowBadArrayIndex, [...]): Mark as noreturn.
...
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-11 15:57:56 +00:00
Tom Tromey
880f8c16ad
Makefile.in: Rebuilt.
...
* 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-10 20:36:04 +00:00
Tom Tromey
42aacdfbb8
* win32.cc (_Jv_platform_initProperties): Use GetTempPath.
...
From-SVN: r52084
2002-04-09 17:44:32 +00:00
Alberto Biancardi
62afca269c
re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite recursion)
...
2002-04-08 Alberto Biancardi <alberto.biancardi@unipv.it>
Fix for PR libgcj/6187:
* java/awt/geom/Point2D.java (distance): Call distanceSq, not
distance.
From-SVN: r52027
2002-04-08 14:43:35 +00:00
Mark Wielaard
ecc2337579
AbstractMap.java (putAll): Use entrySet size.
...
* java/util/AbstractMap.java (putAll): Use entrySet size.
(toString): Explicitly use getKey() and getValue().
From-SVN: r52008
2002-04-08 00:23:28 +00:00
Mark Wielaard
0dccd146ba
Hashtable.java (contains): Remove NullPointer check.
...
* java/util/Hashtable.java (contains): Remove NullPointer check.
(containsValue): Add NullPointer check.
(remove): Always throw NullPointerException when key is null.
From-SVN: r51994
2002-04-07 12:18:58 +00:00
Bryce McKinlay
3b1d8b3be3
typo
...
From-SVN: r51991
2002-04-07 12:30:35 +01:00
Adam King
455cd615c2
natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.
...
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-07 12:27:00 +01:00
Mark Wielaard
e45a3a5910
* java/lang/Character,java (isDefined): getType() != UNASSIGNED.
...
From-SVN: r51982
2002-04-07 07:45:06 +00:00
Mark Wielaard
236fc6a041
ArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements.
...
* java/util/ArrayList.java (addAll(int,Collection)): System.arraycopy
all of the remaining elements.
* java/util/Vector.java (addAll(int,Collection)): Likewise.
(removeRange): If toIndex == fromIndex do
nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.
(removeAll): Always throw NullPointerException when collection is
null.
(retrainAll): Likewise.
From-SVN: r51979
2002-04-07 07:40:49 +00:00
Mark Wielaard
8e9603b0c2
ArrayList.jva (removeRange): If toIndex == fromIndex do nothing...
...
* java/util/ArrayList.jva (removeRange): If toIndex == fromIndex do
nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.
From-SVN: r51947
2002-04-06 08:26:08 +00:00
Adam Megacz
9df224790b
exception.cc (abort): added static modifier
...
2002-04-05 Adam Megacz <adam@xwt.org>
* exception.cc (abort): added static modifier
From-SVN: r51938
2002-04-06 04:20:02 +00:00
Adam Megacz
c77567790f
win32.h (_Jv_platform_close_on_exec): added inline modifier.
...
2002-04-04 Adam Megacz <adam@xwt.org>
* include/win32.h (_Jv_platform_close_on_exec): added inline
modifier.
From-SVN: r51899
2002-04-05 04:22:28 +00:00
Loren J. Rittle
ef3d3c968e
Fix cut-n-paste typo.
...
From-SVN: r51897
2002-04-05 04:18:25 +00:00
Loren J. Rittle
c090488760
configure.host: Add case statement to support generic port properties.
...
* configure.host: Add case statement to support generic port
properties. Add *-*-freebsd* section.
From-SVN: r51896
2002-04-05 04:17:11 +00:00
Mark Wielaard
f74761cd7e
mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode test.
...
* mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode
test.
* testsuite/libjava.mauve/xfails: Remove working tests DoubleTest,
FloatTest and ObjectStreamClass. Add FAIL for Introspector.jdk11 tests
that depend on awt code and BufferedByteOutputStream.interrupt.
From-SVN: r51893
2002-04-05 00:47:34 +00:00
Bryce McKinlay
1d8f2fd8f2
Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40.
...
* java/util/Arrays.java (qsort): Fix off-by-one errors and use of
incorrect "hi" value when count > 40.
From-SVN: r51854
2002-04-04 12:58:38 +01:00
Mark Wielaard
2801df0ed6
Modifier.java (toString(int,StringBuffer)): Fix ordering.
...
* java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
ordering.
From-SVN: r51848
2002-04-04 08:32:28 +00:00
Tom Tromey
c544921cc0
natClassLoader.cc (findClass): Compare against 3', not
0'.
...
* java/lang/natClassLoader.cc (findClass): Compare against `3',
not `0'.
From-SVN: r51764
2002-04-02 22:20:30 +00:00
Mark Wielaard
36aadc29f3
mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to list of testsuite crashers.
...
* mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to
list of testsuite crashers.
From-SVN: r51753
2002-04-02 14:20:44 +00:00
Bryce McKinlay
df88ca6f49
IdentityHashMap.java (put): Set new threshold correctly when resizing table.
...
* java/util/IdentityHashMap.java (put): Set new threshold correctly
when resizing table.
From-SVN: r51751
2002-04-02 14:55:14 +01:00
Mark Wielaard
29123a37f0
BitSet.java (BitSet(int)): if nbits < 0 throw NegativeArraySizeException
...
* java/util/BitSet.java (BitSet(int)): if nbits < 0 throw
NegativeArraySizeException
(clear(int)): Use sign extended shift.
(flip(int)): Likewise.
(get(int)): Likewise.
(nextClearBit(int)): Likewise.
(nextSetBit(int)): Likewise.
(set(int)): Likewise.
From-SVN: r51701
2002-04-01 19:59:12 +00:00
Mark Wielaard
5517383604
mauve-libgcj: Add JDK1.3...
...
* mauve-libgcj: Add JDK1.3, JDK1.4, JLS1.2 tests, remove ignored tests
that can be compiled now and add testsuite crashers to ignore list.
From-SVN: r51693
2002-04-01 18:09:25 +00:00
Alexandre Oliva
d05972d298
* libgcj.spec.in, libgcj-test.spec.in: Revert for now.
...
From-SVN: r51659
2002-03-31 18:24:59 +00:00
Alexandre Oliva
b56bc85a40
libgcj.spec.in: Override libgcc, not lib.
...
* libgcj.spec.in: Override libgcc, not lib.
* libgcj-test.spec.in: Likewise.
From-SVN: r51640
2002-03-31 09:33:05 +00:00
Tom Tromey
6676c77f01
natPlainDatagramSocketImpl.cc (close): New function.
...
* java/net/natPlainDatagramSocketImpl.cc (close): New function.
* java/net/natPlainSocketImpl.cc (close): Indentation fix.
From-SVN: r51563
2002-03-29 17:07:59 +00:00
Jeff Sturm
47d0866c79
* java/net/PlainDatagramSocketImpl.java
...
(close): Use native implementation.
(finalize): New method.
* java/net/PlainSocketImpl.java (finalize): New method.
* java/net/natPlainDatagramSocketImpl.cc
(java/io/FileDescriptor.h): Don't include.
(close): Implement method here.
(create): Don't assign fd.
* java/net/natPlainSocketImpl.cc
(java/io/FileDescriptor.h): Don't include.
(create): Don't assign fd.
(accept): Likewise.
(close): Synchronize.
From-SVN: r51492
2002-03-28 02:08:36 +00:00
Richard Henderson
6ad4639794
* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.
...
From-SVN: r51468
2002-03-27 11:25:04 -08:00
Andrew Haley
3cb2054594
dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.
...
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-27 17:08:47 +00:00
Anthony Green
5cb27a4697
libgcj.spec.in: Add CHECKREFSPEC.
...
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-27 16:41:44 +00:00
Hans Boehm
d6220b3ad7
* include/dwarf2-signal.h: Temporarily back out last change.
...
From-SVN: r51415
2002-03-26 22:44:48 +00:00
Loren J. Rittle
b4a19310cd
* include/posix-threads.h: Support <.../pal.h> on FreeBSD/alpha.
...
From-SVN: r51383
2002-03-26 11:26:13 +00:00
Andrew Haley
90b2d2afa1
configure.in, configure: enable dwarf2-exception-style exception handling on 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-26 03:42:54 +00:00
Tom Tromey
5c00920976
Makefile.am (libgcj_la_LDFLAGS): Use THREADLDFLAGS.
...
* 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-26 00:54:41 +00:00
Tom Tromey
f695acf69c
For PR libgcj/5303:
...
* gnu/java/rmi/registry/RegistryImpl.java (main): Recognize --help
and --version.
(help): New method.
(version): Likewise.
* gnu/gcj/convert/Convert.java (version): Removed extraneous
"GNU".
* gnu/java/rmi/rmic/RMIC.java (parseOptions): Removed extraneous
"GNU".
From-SVN: r51343
2002-03-25 22:08:27 +00:00