Commit Graph

1651 Commits

Author SHA1 Message Date
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
Mark Wielaard f20c0d98a7 re PR libgcj/6302 (http URLConnection does not support HTTP/1.1 (and chunked transfer encoding))
* libjava.mauve/xfails: Expect failures for PR libgcj/6302 and
        libgcj/6298.

From-SVN: r52305
2002-04-14 22:37:56 +00:00
Mark Wielaard 5a230810c7 re PR libgcj/6293 (PipedInputStream.close() does not notify writer (Mauve test))
* libjava.mauve/xfails: Expect failures for PR libgcj/6293,
	libgcj/6295, libgcj/6296 and libgcj/6297.

From-SVN: r52297
2002-04-14 15:03:31 +00:00
Anthony Green 2274b9b3fe Fix botch in last commit.
From-SVN: r52230
2002-04-12 14:51:37 +00:00
Anthony Green 395cb21141 Install libgcj.jar as libgcj-VERSION.jar.
From-SVN: r52226
2002-04-12 14:28:10 +00:00
Loren J. Rittle 4b4248b674 SyncGlobal.java, [...]: New test case.
* libjava.lang/SyncGlobal.java, libjava.lang/SyncGlobal.out:
	New test case.

From-SVN: r52207
2002-04-12 08:33:13 +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
Bryce McKinlay 973348ec02 re PR java/6204 (gcj generates invalid byte code)
* libjava.lang/PR6204.java, libjava.lang/PR6204.out: New test case.
	* libjava.lang/PR6085.java, libjava.lang/PR6085.out: Likewise.

From-SVN: r52056
2002-04-09 06:25:11 +01: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 298f6e4bdc xfails: Add CASE_INSENSITIVE_ORDER...
* libjava.mauve/xfails: Add CASE_INSENSITIVE_ORDER, result was
    unspecified and test should be updated to match latest spec.
    Add AcuniaPropertiesTest, known bug #6219. Add test_getClassLoader,
    what we do seems to be not really right or wrong.

From-SVN: r52006
2002-04-07 22:33:09 +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 1abbe5b516 mauve.exp: Use libgcj.jar not libgcj.zip.
* libjava.mauve/mauve.exp: Use libgcj.jar not libgcj.zip.
	* libjava.mauve/xfails: add Character.classify12 (number 1),
	Character.getType (number 11), Character.getType (number 20) and
	Character.getType (number 22). We implement 1.4 Character.

From-SVN: r51987
2002-04-07 09:21:27 +00: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 c950ddc382 exception.cc (abort): added static modifier
2002-04-05  Adam Megacz <adam@xwt.org>

    * exception.cc (abort): added static modifier

From-SVN: r51937
2002-04-06 04:19:10 +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
Andrew Haley 4d00945e45 Throw_2.java: New.
2002-03-28  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Throw_2.java: New.
	* libjava.lang/Throw_2.out: New.

From-SVN: r51515
2002-03-28 16:24:21 +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
Anthony Green f5cfade6fa InvokeReturn.java: Modify test for targets which do not yet support reflection.
2002-03-27  Anthony Green  <green@redhat.com>

	* libjava.lang/InvokeReturn.java: Modify test for targets
	which do not yet support reflection.

From-SVN: r51455
2002-03-27 16:31:18 +00:00
Anthony Green fe4dabf80c jni.exp (gcj_jni_run): Fix cross build test.
2002-03-27  Anthony Green  <green@redhat.com>

	* libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.

From-SVN: r51453
2002-03-27 16:29:04 +00:00
Anthony Green 30cc872274 libjava.exp: Add the wrapper link options only when we're linking.
2002-03-27  Anthony Green  <green@redhat.com>

	* lib/libjava.exp: Add the wrapper link options only when we're
	linking.

From-SVN: r51451
2002-03-27 16:27:06 +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
Tom Tromey 1f3f6dadcb mauve.exp (test_mauve): Use correct stderr redirection code.
* libjava.mauve/mauve.exp (test_mauve): Use correct stderr
	redirection code.

From-SVN: r51405
2002-03-26 20:51:19 +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
Tom Tromey 9b95cee697 Component.java (processEvent): Check ComponentEvent after KeyEvent.
* java/awt/Component.java (processEvent): Check ComponentEvent
	after KeyEvent.

From-SVN: r51301
2002-03-25 06:45:23 +00:00
Bryce McKinlay 8cf29a474f Based on patch from Intel's ORP team:
* java/io/PushbackInputStream.java (available): Calculate correct
	number of bytes in buffer.
	(read): Remove redundant bound check. Return bytes from both the
	buffer and the stream.

From-SVN: r51296
2002-03-25 02:28:22 +00:00
Bryce McKinlay acf9549ef9 FileInputStream.java (skip): Call fd.getFilePointer() and calculate correct number of bytes skipped.
* java/io/FileInputStream.java (skip): Call fd.getFilePointer() and
	calculate correct number of bytes skipped.

From-SVN: r51293
2002-03-25 02:01:29 +00:00
Bryce McKinlay e89268b691 * java/io/PushbackReader.java: Reformat.
From-SVN: r51291
2002-03-25 01:13:20 +00:00
Tom Tromey e1a0d743f1 TextComponent.java (TextComponent): Editable by default.
* java/awt/TextComponent.java (TextComponent): Editable by
	default.

From-SVN: r51278
2002-03-24 22:49:26 +00:00
Tom Tromey 64165b30e6 MenuItem.java (eventMask): No longer private.
* java/awt/MenuItem.java (eventMask): No longer private.
	* java/awt/Button.java (dispatchEventImpl): Only dispatch to
	superclass if we didn't handle event.
	* java/awt/Checkbox.java (dispatchEventImpl): New method.
	* java/awt/CheckboxMenuItem.java (dispatchEventImpl): New method.
	* java/awt/Choice.java (dispatchEventImpl): New method.
	* java/awt/List.java (dispatchEventImpl): New method.
	* java/awt/Scrollbar.java (dispatchEventImpl): New method.
	* java/awt/TextComponent.java (dispatchEventImpl): New method.
	* java/awt/TextField.java (dispatchEventImpl): New method.

From-SVN: r51277
2002-03-24 22:37:51 +00:00
Mark Wielaard c9be3825b3 [multiple changes]
2002-03-24  Eric Blake  <ebb9@email.byu.edu>

        * java/beans/IntrospectionException.java: Update to 1.4.
        * java/beans/PropertyVetoException.java: Ditto.

2002-03-24  Eric Blake  <ebb9@email.byu.edu>

        * gnu/java/beans/BeanInfoEmbryo.java (hasMethod): Use
        Arrays.equals instead of ArrayHelper.equalsArray.

2002-03-24  C. Brian Jones <cbj@gnu.org>

        * java/beans/Introspector.java: added new static final fields
        introduced in 1.2, lots of other updates remain to be done

2002-03-24  C. Brian Jones <cbj@gnu.org>

        * java/beans/Introspector.java: reformatting

2002-03-24  C. Brian Jones <cbj@gnu.org>

        * java/beans/Introspector.java: default beanInfoSearchPath will
        not include sun.beans.infos given we provide no such package and
        the API doesn't really require it; gnu.java.beans.info is the
        default.

2002-03-24  Mark Wielaard  <mark@klomp.org>

        Thanks to Orp developers
        * gnu/java/beans/editors/NativeBooleanEditor.java (setAsText(String)):
        switch TRUE and FALSE return values.

From-SVN: r51273
2002-03-24 21:32:14 +00:00
Tom Tromey c677cd7f47 reverted erroneous checkin
From-SVN: r51235
2002-03-23 16:16:46 +00:00
Tom Tromey f5c5a4e915 name-finder.h (_Jv_name_finder::myclose): New method.
* include/name-finder.h (_Jv_name_finder::myclose): New method.
	* name-finder.cc (_Jv_name_finder): Initialize file descriptors.

From-SVN: r51234
2002-03-23 16:14:28 +00:00
Michael Smith 9817ad7792 re PR libgcj/6045 (GregorianCalendar: getMinimum() and getMaximum() incorrect for month)
2002-03-23  Michael Smith  <msmith@spinnakernet.com>

	* java/util/GregorianCalendar.java (minimums, maximums): Correct
	MONTH entry.  Fixes PR libgcj/6045.

From-SVN: r51232
2002-03-23 16:12:03 +00:00
Jeff Sturm a641514dc5 * java/nat/natPlainSocketImpl.cc (write): Abort loop on error.
From-SVN: r51230
2002-03-23 14:57:39 +00:00
Eric Blake 4e9a8e8d6d For PR java/6026:
2002-03-22  Eric Blake  <ebb9@email.byu.edu>

	For PR java/6026:
	* libjava.compile/PR6026.java: New file.

From-SVN: r51209
2002-03-23 00:05:44 +00:00
Andrew Haley f42f14a9ca Thread_Interrupt.java (Looper.calibrate): New.
2002-03-21  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Thread_Interrupt.java (Looper.calibrate): New.
	(yields): New.

From-SVN: r51169
2002-03-22 11:18:03 +00:00
Bryce McKinlay 1de21d0eac posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use write_barrier, not release_set.
* posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use write_barrier,
	not release_set.
	* sysdep/powerpc/locks.h (write_barrier): New function.
	* sysdep/i386/locks.h (write_barrier): New function.

From-SVN: r51101
2002-03-21 00:26:46 +00:00
Martin Kahlert c6ef94c533 2002-03-19 Martin Kahlert <martin.kahlert@infineon.com>
* include/jni.h Use correct C comments

From-SVN: r51046
2002-03-19 21:45:42 +00:00
Tom Tromey 9d5e46be34 jni.h (JNIIMPORT): New macro.
* include/jni.h (JNIIMPORT): New macro.
	(JNIEXPORT): Likewise.
	(JNICALL): Likewise.

From-SVN: r51009
2002-03-18 21:55:42 +00:00
Tom Tromey 6a4ed6c8a9 jni.exp (gcj_jni_test_one): Find libstdc++ in build tree.
* libjava.jni/jni.exp (gcj_jni_test_one): Find libstdc++ in build
	tree.
	(gcj_invoke): Added ld_library_additions argument.

From-SVN: r51006
2002-03-18 21:39:09 +00:00
Andrew Haley 71c6877d3e i386-signal.h (old_i386_kernel_sigaction): New.
2002-03-18  Andrew Haley  <aph@cambridge.redhat.com>

        * include/i386-signal.h (old_i386_kernel_sigaction): New.
        INIT_SEGV: Use old_i386_kernel_sigaction.
        INIT_FP: Likewise.

From-SVN: r50980
2002-03-18 17:11:43 +00:00
Bryce McKinlay 1b5a2139c7 natSystem.cc (init_properties): Update VM version properties.
* java/lang/natSystem.cc (init_properties): Update VM version
	properties.
	* configure.in: Set GCJVERSION.
	* acconfig.h: Add GCJVERSION.
	* configure: Rebuilt.
	* include/config.h.in: Rebuilt.

From-SVN: r50944
2002-03-18 06:19:03 +00:00
Tom Tromey 6e1a435df0 re PR other/5874 (gcc-3.1 20020304 (prerelease) FAILs in libjava testsuite with RUNTESTFLAGS="--target_board 'unix{-fPIC,-fpic,}'")
* libjava.jni/jni.exp (gcj_jni_build_header): Use local_exec, not
	target_compile.  Fixes PR other/5874.

From-SVN: r50923
2002-03-17 20:34:36 +00:00
Anthony Green a46ccd1b47 Add arm thumb support
From-SVN: r50920
2002-03-17 16:18:53 +00:00
Bryce McKinlay f9ad9ecf47 Makefile.am: Escape quotes in echo.
* Makefile.am: Escape quotes in echo.
	* Makefile.in: Rebuilt.

From-SVN: r50905
2002-03-17 01:07:17 +00:00
Bryce McKinlay ce3b24a73a Makefile.am: Make target library a convenience library.
zlib:
	* Makefile.am: Make target library a convenience library.
	* Makefile.in: Rebuilt.

libffi:
	* Makefile.am: libfficonvenience -> libffi_convenience.
	* Makefile.in: Rebuilt.

boehm-gc:
	* Makefile.am: Make a convenience library.
	* Makefile.in: Rebuilt.

libjava:
	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.

From-SVN: r50900
2002-03-17 00:35:21 +00:00
Bryce McKinlay c2765075db Remove conflict indicator.
From-SVN: r50893
2002-03-16 21:04:28 +00:00
Bryce McKinlay 3bb6567285 Makefile.am: Use empty -classpath flag in addition to -bootclasspath.
* Makefile.am: Use empty -classpath flag in addition to -bootclasspath.
	* Makefile.in: Rebuilt.

From-SVN: r50892
2002-03-16 21:03:43 +00:00
Anthony Green 2d933a0bf9 Commit embedded patch approved Feb 17
From-SVN: r50860
2002-03-16 00:37:21 +00:00
Alexandre Oliva 201d203b79 Makefile.am (jv_convert_LDADD): Don't list libraries that are already implicitly brought in from libgcj.la.
* 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.

From-SVN: r50853
2002-03-15 22:46:58 +00:00
Eric Blake 89a1ba6d32 THANKS: Fix punctuation, alphabetization.
2002-03-15  Eric Blake  <ebb9@email.byu.edu>

	* THANKS: Fix punctuation, alphabetization.

From-SVN: r50851
2002-03-15 22:36:05 +00:00
Tom Tromey 60f32585da re PR libgcj/5944 (Use of uint32_t breaks libgcj bootstrap on Solaris 2.5.1)
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.

Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>

From-SVN: r50842
2002-03-15 21:59:12 +00:00
Tom Tromey 45061554e7 Updated THANKS
From-SVN: r50832
2002-03-15 20:52:04 +00:00
Eric Blake 08bcc159d9 For PR java/5902:
2002-03-15  Eric Blake  <ebb9@email.byu.edu>

	For PR java/5902:
	* libjava.compile/PR5902.java: Does not need to execute.
	For PR java/5913:
	* libjava.compile/PR5913.java: Ditto.

From-SVN: r50829
2002-03-15 19:17:39 +00:00
Anthony Green e2ea015c1c Install libgcj-config.h in a better place.
From-SVN: r50817
2002-03-15 18:03:49 +00:00
Andreas Tobler 46f56f54c4 configure.host (powerpc*-darwin*): Enable interpreter.
2002-03-12  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure.host (powerpc*-darwin*): Enable interpreter.

From-SVN: r50686
2002-03-12 22:29:52 +00:00
Tom Tromey 5a471df6f9 Test for PR java/5848:
* libjava.compile/PR5848.xfail: New file.
	* libjava.compile/PR5848.java: New file.

From-SVN: r50674
2002-03-12 19:51:44 +00:00
Eric Blake 36e5138325 re PR java/5913 (Core dump for String constant instanceof)
2002-03-12  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5913.java: Expand test.

From-SVN: r50638
2002-03-12 07:40:46 +00:00
Eric Blake 76a43492ea re PR java/5902 (Gcj fails to parse float)
2002-03-11  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5902.java: New file.
	* libjava.compile/PR5913.java: New file.
	* libjava.compile/PR5913.xfail: New file.

From-SVN: r50637
2002-03-12 07:23:25 +00:00
Bryce McKinlay 60678e476f posix.h: Add multiple include header protection.
* include/posix.h: Add multiple include header protection.
	* java/net/natPlainSocketImpl.cc: Don't #include <posix.h>.

From-SVN: r50559
2002-03-11 04:15:51 +00:00
Adam Megacz 72da3c3e58 natPlainSocketImpl.cc: Added #include <platform.h>.
2002-03-10  Adam Megacz <adam@xwt.org>

        * java/net/natPlainSocketImpl.cc: Added #include <platform.h>.

From-SVN: r50556
2002-03-11 01:34:08 +00:00
Tom Tromey 22d5af9af4 GridLayout.java (layoutContainer): Handle case where there are no items in container.
* java/awt/GridLayout.java (layoutContainer): Handle case where
	there are no items in container.

From-SVN: r50539
2002-03-10 18:15:58 +00:00
Tom Tromey 0c1fcb02b1 Win32Process.java: Added comment.
* 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.

From-SVN: r50536
2002-03-10 17:59:23 +00:00
Tom Tromey 621fba999d verify.cc (state::NO_STACK): New constant.
* 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.

From-SVN: r50526
2002-03-10 04:50:21 +00:00
Bryce McKinlay 2c59df9935 ImageMediaEntry: Removed.
* java/awt/ImageMediaEntry: Removed.
	* java/awt/MediaEntry: Removed.

From-SVN: r50524
2002-03-10 03:56:38 +00:00
Bryce McKinlay 4559716751 Hashtable synchronization for PowerPC.
libjava:
	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.
gcc/java:
	* decl.c (java_init_decl_processing): Make sure class_type_node
	alignment is not less than 64 bits if hash synchronization isenabled.

boehm-gc:
	* include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ
	support is enabled, for hash synchronization.

From-SVN: r50523
2002-03-10 03:53:16 +00:00
Adam Megacz 828c1ddccc natFileDescriptorWin32.cc (read): Return -1 if zero bytes read and no failure code returned.
2002-03-09  Adam Megacz  <adam@xwt.org>

        * java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
        bytes read and no failure code returned.

From-SVN: r50519
2002-03-10 03:34:27 +00:00
Bryce McKinlay aa7543832a configure.in: Define SLOW_PTHREAD_SELF if configure.host set slow_pthread_self.
libjava:
	* configure.in: Define SLOW_PTHREAD_SELF if configure.host set
	slow_pthread_self. Set up symlink for sysdeps directory.
	* 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.
	* 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.

gcc/java:
	* decl.c (java_init_decl_processing): Make sure class_type_node
	alignment is not less than 64 bits if hash synchronization is enabled.

boehm-gc:
	* include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ
	support is enabled, for hash synchronization.

[[Split portion of a mixed commit.]]

From-SVN: r50518.2
2002-03-10 03:31:08 +00:00
Adam Megacz 9268f1c0a6 2002-03-09 Adam Megacz <adam@xwt.org>
* win32.cc (_CRT_MT, __mingwthr_key_dtor) Added fake
        definitions to simulate -mthreads.

From-SVN: r50515
2002-03-09 22:33:49 +00:00
Adam Megacz bb0774f330 2002-03-09 Adam Megacz <adam@xwt.org>
* win32.cc (_Jv_platform_gettimeofday) Cast 1000 to long long to
        avoid precision loss.

From-SVN: r50511
2002-03-09 22:08:35 +00:00
Per Bothner c314ee353b * gnu/gcj/xlib/WindowAttributes.java Assign null to RawData, not 0.
* gnu/gcj/xlib/XImage.java:  Likewise.
	* gnu/gcj/xlib/XColor.java:  Likewise.

From-SVN: r50498
2002-03-09 08:25:13 -08:00