Tom Tromey
85ea93b38f
natThrowable.cc: Updated copyright.
...
* java/lang/natThrowable.cc: Updated copyright.
* java/io/natFileWin32.cc: Updated copyright.
* java/io/natFileDescriptorWin32.cc: Updated copyright.
* win32-threads.cc: Updated copyright.
* name-finder.cc: Updated copyright.
* include/name-finder.h: Updated copyright.
From-SVN: r49586
2002-02-07 19:26:06 +00:00
Tom Tromey
9f2618df7e
name-finder.h: Conditionally include sys/wait.h.
...
* include/name-finder.h: Conditionally include sys/wait.h.
* include/config.h.in: Rebuilt.
From-SVN: r49585
2002-02-07 19:25:28 +00:00
Tom Tromey
fc7563ecb0
natFile.cc (_access): Don't stack-allocate buffer.
...
* java/io/natFile.cc (_access): Don't stack-allocate buffer.
Size buffer based on real size of string.
(_stat): Likewise.
(attr): Likewise.
(getCanonicalPath): Likewise.
(performList): Likewise.
(performMkdir): Likewise.
(performSetReadOnly): Likewise.
(unixroot): Removed.
(performRenameTo): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(performDelete): Likewise.
(performListRoots): Always return new array.
From-SVN: r49584
2002-02-07 19:18:35 +00:00
Tom Tromey
73272ce608
prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.
...
* prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.
* win32.cc (win32_exception_handler): Now static.
* include/win32.h (_Jv_platform_initialize): Declare.
(win32_exception_handler): Don't declare.
* java/lang/natSystem.cc (currentTimeMillis): Use
_Jv_platform_gettimeofday.
* posix.cc (_Jv_platform_gettimeofday): Renamed.
(_Jv_select): Use new name.
(_Jv_platform_initialize): New function.
* include/posix.h (_Jv_platform_gettimeofday): Renamed from
_Jv_gettimeofday.
(_Jv_platform_initialize): Declare.
From-SVN: r49583
2002-02-07 18:59:52 +00:00
Tom Tromey
0669d0ed20
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Removed unnecessary parens.
From-SVN: r49581
2002-02-07 18:21:19 +00:00
Adam Megacz
b8fe3c1e06
configure.in: Changed mingw) to *mingw*).
...
2002-02-06 Adam Megacz <adam@xwt.org>
* configure.in: Changed mingw) to *mingw*).
* win32.cc: Created this file.
* win32.h: Created this file.
* win32.cc, prims.cc, win32.h (win32_exception_handler): Moved
win32_exception_handler from prims.cc to win32.cc, added
header in win32.h.
* prims.cc: removed some #ifdef-WIN32'd headers which are no
longer needed now that we have platform.h
From-SVN: r49566
2002-02-07 05:26:42 +00:00
Adam Megacz
df79080e5f
shs.h, [...]: use uint<n>_t instead of LONG and BYTE
...
2002-02-06 Adam Megacz <adam@xwt.org>
* shs.h, shs.cc, natSimpleSHSStream.cc: use uint<n>_t instead
of LONG and BYTE
From-SVN: r49565
2002-02-07 05:01:29 +00:00
Adam Megacz
4048d33691
name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H
...
2002-02-06 Adam Megacz <adam@xwt.org>
* name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H
From-SVN: r49564
2002-02-07 04:37:00 +00:00
Anthony Green
b5ee195f1e
embedded updates
...
From-SVN: r49562
2002-02-07 03:24:12 +00:00
Tom Tromey
383aa2ef49
verify.cc (require_array_type): If argument is a null array of references, return null as the element type.
...
* verify.cc (require_array_type): If argument is a null array of
references, return null as the element type.
From-SVN: r49561
2002-02-07 02:27:10 +00:00
Mark Wielaard
448f456d7a
verify.cc (verify_instructions_0): Actually push the duplicate of a wide type.
...
2002-02-06 Mark Wielaard <mark@klomp.org>
* verify.cc (verify_instructions_0) [op_dup2]: Actually push the
duplicate of a wide type.
From-SVN: r49559
2002-02-07 01:11:32 +00:00
Tom Tromey
199ecb183b
verify.cc (type::isnull): New method.
...
* verify.cc (type::isnull): New method.
(require_array_type): Handle case where array is null.
(verify_instructions_0) [op_arraylength]: Likewise.
From-SVN: r49555
2002-02-06 21:53:59 +00:00
Bryce McKinlay
8c78e3a3cd
configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
...
* configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
Symlink PLATFORMH to platform.h.
* Makefile.am (libgcj_la_DEPENDENCIES, libgcj_la_LIBADD): Add
PLATFORMOBJS.
* java/lang/natSystem.cc: #include platform.h not posix.h.
* Makefile.in: Rebuilt with libgcj automake.
* configure: Rebuilt.
From-SVN: r49534
2002-02-06 01:46:46 +00:00
Richard Henderson
7a97f559c5
* Makefile.in: Undo munging last change.
...
From-SVN: r49519
2002-02-05 00:38:02 -08:00
Adam Megacz
d7799ba140
win32.cc: Created it.
...
2002-02-04 Adam Megacz <adam@xwt.org>
* win32.cc: Created it.
configure.in: Added PLATFORM_SPECIFIC_SOURCES,
which is set to posix.cc or win32.cc.
Makefile.am: Updated it to use $(PLATFORM_SPECIFIC_SOURCES).
From-SVN: r49509
2002-02-05 02:08:16 +00:00
Adam Megacz
d08e89a9ec
configure.in: Corrected mingw case branches; added * before and after.
...
2002-02-04 Adam Megacz <adam@xwt.org>
* configure.in: Corrected mingw case branches; added * before
and after.
From-SVN: r49508
2002-02-05 02:05:05 +00:00
Adam Megacz
4a8e624f35
configure.in: Add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec if compiling for win32
...
2002-02-04 Adam Megacz <adam@xwt.org>
* configure.in: Add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec
if compiling for win32
From-SVN: r49507
2002-02-05 02:04:15 +00:00
Adam Megacz
1d3efb36e8
win32-threads.cc: #undef STRICT after gc.h inclusion
...
2002-02-04 Adam Megacz <adam@xwt.org>
* win32-threads.cc: #undef STRICT after gc.h inclusion
From-SVN: r49506
2002-02-05 01:59:44 +00:00
Tom Tromey
9b8b2fcfda
* Makefile.in: Rebuilt.
...
From-SVN: r49447
2002-02-02 21:14:29 +00:00
Jason Merrill
1acce4c771
* Makefile.am (clean-nat): New target.
...
From-SVN: r49443
2002-02-02 13:23:02 -05:00
Tom Tromey
6c69cbcc69
* java/io/natFile.cc: Removed old "FIXME" comments.
...
From-SVN: r49434
2002-02-02 07:45:50 +00:00
Tom Tromey
0c91936e40
natPosixProcess.cc (myclose): New function.
...
* java/lang/natPosixProcess.cc (myclose): New function.
(fail): Use it.
(startProcess): Likewise.
From-SVN: r49433
2002-02-02 07:43:16 +00:00
Adam Megacz
ce762b4bde
*** empty log message ***
...
From-SVN: r49431
2002-02-02 04:39:26 +00:00
Adam Megacz
6d829370c0
prims.cc: Added #undef STRICT after #include<windows.h>.
...
2002-02-01 Adam Megacz <adam@xwt.org>
* prims.cc: Added #undef STRICT after #include<windows.h>.
From-SVN: r49430
2002-02-02 04:37:54 +00:00
Adam Megacz
a7006428b6
2002-02-01 Adam Megacz <adam@xwt.org>
...
* prims.cc
(_Jv_CreateJavaVM): We now use WIN32 instead of
USE_WIN32_SIGNALLING and USE_WINSOCK.
(win32_exception_handler): Now throws an exception out of
the signal handler; assumes SJLJ
From-SVN: r49429
2002-02-02 04:34:15 +00:00
Adam Megacz
a70cb11b6c
2002-02-01 Adam Megacz
...
* win32-threads.cc:
(_Jv_CondWait, _Jv_CondNotify, _Jv_CondNotifyAll): Corrected
wait() algorithm to make it safe.
(ensure_condvar_initialized, _Jv_CondInit, _Jv_CondDestroy):
Added lazy creation of Win32 Events for better performance
(really_start): This now uses GC_CreateThread so boehm-gc
knows about new threads even when statically linked.
From-SVN: r49428
2002-02-02 04:31:34 +00:00
Adam Megacz
8627cc158d
win32-threads.h (_Jv_ConditionVariable_t): Now a struct, to enable safer wait() algorithm.
...
2002-02-01 Adam Megacz <adam@xwt.org>
* include/win32-threads.h (_Jv_ConditionVariable_t): Now a struct, to
enable safer wait() algorithm.
(_Jv_CondWait, _Jv_CondInit, _Jv_CondDestroy, _Jv_CondNotify,
_Jv_CondNotifyAll): Implementations moved to win32-threads.cc.
(_Jv_MutexInit, _Jv_HaveMutexDestroy, _Jv_MutexUnlock,
_Jv_MutexLock, _Jv_ThreadYield): Reimplement using CRITICAL_SECTIONs
instead of mutex.
(_Jv_ThreadYield): Don't call Sleep(), because it crashes win98.
From-SVN: r49427
2002-02-02 04:27:34 +00:00
Adam Megacz
54a190dd7b
configure.in: Added support for mingw.
...
2002-02-01 Adam Megacz <adam@xwt.org>
* configure.in: Added support for mingw.
* java/lang/Win32Process.java: Created as empty file.
* java/lang/natWin32Process.cc: Created as empty file.
From-SVN: r49425
2002-02-02 04:19:24 +00:00
Craig Rodrigues
1c24f830c5
re PR java/4972 (undefined reference to `libiconv')
...
2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR java/4972
* aclocal.m4, acinclude.m4 (AM_ICONV): Put linking flags
for libiconv in LIBICONV variable.
* configure: Regenerated.
From-SVN: r49411
2002-02-01 21:16:05 +00:00
Tom Tromey
de0ed7b6c5
verify.cc (state::enter_subroutine): New method.
...
* verify.cc (state::enter_subroutine): New method.
(handle_jsr_insn): Use it.
(state::merge): When processing a `ret', correctly use
subroutine's state to determine which local variables have
changed.
(push_exception_jump): Don't let stack overflow.
From-SVN: r49388
2002-02-01 05:48:00 +00:00
Joseph Myers
8512bbd752
gccbug.in: Follow GNU Coding Standards for --version.
...
gcc:
* gccbug.in: Follow GNU Coding Standards for --version. Use GCC
version rather than GNATS version in --version output.
gcc/f:
* g77spec.c (lang_specific_driver): Follow GNU Coding Standards
for --version.
gcc/java:
* gjavah.c (version), jcf-dump.c (version), jv-scan.c (version):
Follow GNU Coding Standards for --version.
libjava:
* gnu/gcj/convert/Convert.java: Only include one copyright year in
--version output.
From-SVN: r49372
2002-01-31 19:36:28 +00:00
Tom Tromey
1b8337e7e1
natPlainSocketImpl.cc (_Jv_recv): Added template parameter for `recv' return type.
...
* java/net/natPlainSocketImpl.cc (_Jv_recv): Added template
parameter for `recv' return type.
From-SVN: r49345
2002-01-30 22:22:36 +00:00
Tom Tromey
b3de7ff371
verify.cc (handle_ret_insn): Check for subroutine merge here...
...
* verify.cc (handle_ret_insn): Check for subroutine merge here...
(state::merge): ... not here.
(subr_entry_info): New structure.
(entry_points): New field.
(~_Jv_BytecodeVerifier): Correctly free jsr_ptrs. Free
entry_points.
From-SVN: r49344
2002-01-30 22:20:23 +00:00
Tom Tromey
7950ed567c
List.java (addNotify): Correctly check to see if peer does not exist.
...
* java/awt/List.java (addNotify): Correctly check to see if peer
does not exist.
From-SVN: r49335
2002-01-30 02:47:48 +00:00
Tom Tromey
6c54b16cef
GridLayout.java (layoutContainer): Use number of rows to compute height of each cell...
...
* java/awt/GridLayout.java (layoutContainer): Use number of rows
to compute height of each cell, and number of columns to compute
width of each cell.
* java/awt/Window.java (getOwnedWindows): Don't return null.
* java/awt/FlowLayout.java (layoutContainer): Set width and height
of component. Increment x using horizontal gap, not vertical
gap.
From-SVN: r49320
2002-01-29 16:31:24 +00:00
Tom Tromey
8987cc881f
verify.cc (class _Jv_BytecodeVerifier): `nargs' byte is number of words, not number of arguments.
...
* verify.cc (class _Jv_BytecodeVerifier) [op_invokeinterface]:
`nargs' byte is number of words, not number of arguments.
From-SVN: r49292
2002-01-28 18:52:44 +00:00
Tom Tromey
b535229173
MouseEvent.java (modifiers): Removed field.
...
* java/awt/event/MouseEvent.java (modifiers): Removed field.
(when): Likewise.
* java/awt/event/InputEvent.java (modifiers, when): Now
package-private.
From-SVN: r49275
2002-01-28 06:34:01 +00:00
Tom Tromey
1919a4e7e0
verify.cc (class _Jv_BytecodeVerifier): Removed `FIXME' comment and to-do list.
...
* verify.cc (class _Jv_BytecodeVerifier): Removed `FIXME' comment
and to-do list.
(state::merge): Use current class' class loader.
(state::print): Print subroutine.
(state::merge): Don't look at subroutine of unmerged `ret'.
From-SVN: r49274
2002-01-28 00:46:23 +00:00
Andreas Tobler
73068e369f
nogc.cc: Remove warnings.
...
2002-01-26 Andreas Tobler <a.tobler@schweiz.ch>
* nogc.cc: Remove warnings.
(_Jv_GCRegisterDisappearingLink, _Jv_GCCanReclaimSoftReference):
New functions.
From-SVN: r49273
2002-01-27 22:33:35 +00:00
Bryce McKinlay
2198265a72
MemoryImageSource.java (newPixels(byte[], ColorModel, int, int): Remove empty "if" statement to work around compiler bug.
...
* java/awt/image/MemoryImageSource.java (newPixels(byte[], ColorModel,
int, int): Remove empty "if" statement to work around compiler bug.
(newPixels(int[], ColorModel, int, int): Likewise.
From-SVN: r49245
2002-01-26 08:35:34 +00:00
Per Bothner
f24e160adc
ChangeLog entry for verify.cc.
...
From-SVN: r49241
2002-01-25 22:33:31 -08:00
Tom Tromey
2fb4e07f24
FlowLayout.java (layoutContainer): Correctly compute loop termination condition.
...
* java/awt/FlowLayout.java (layoutContainer): Correctly compute
loop termination condition.
* java/awt/GridLayout.java (getSize): Use `real_cols' to compute
width.
From-SVN: r49216
2002-01-25 17:25:26 +00:00
Tom Tromey
02ad93a608
Shape.java: Merged with Classpath.
...
* java/awt/Shape.java: Merged with Classpath.
* java/awt/Scrollbar.java: Merged with Classpath.
From-SVN: r49208
2002-01-25 07:06:06 +00:00
Tom Tromey
0983da5b0f
Container.java (addNotify): Unconditionally call addNotifyContainerChildren and superclass addNotify.
...
* java/awt/Container.java (addNotify): Unconditionally call
addNotifyContainerChildren and superclass addNotify.
From-SVN: r49206
2002-01-25 07:04:06 +00:00
Tom Tromey
8c77cda54f
ColorModel.java (getAlpha(Object)): Call getAlpha, not getBlue.
...
* java/awt/image/ColorModel.java (getAlpha(Object)): Call
getAlpha, not getBlue.
From-SVN: r49203
2002-01-25 05:44:03 +00:00
Bryce McKinlay
974bbe9ffe
Fix up last entry.
...
From-SVN: r49202
2002-01-25 04:42:12 +00:00
Bryce McKinlay
30ed0c4529
PixelGrabber.java (grabPixels()): Call grabPixels(0).
...
* java/awt/image/PixelGrabber.java (grabPixels()): Call grabPixels(0).
* java/awt/image/PixelGrabber.java (grabPixels(long)): Wait to be
notified that the ImageProducer has completed.
From-SVN: r49201
2002-01-25 04:39:04 +00:00
Bryce McKinlay
9fa5237cb7
natObject.cc (X86 compare_and_swap): Use +m constraint.
...
2002-01-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/lang/natObject.cc (X86 compare_and_swap): Use +m constraint.
From-SVN: r49198
2002-01-25 02:53:37 +00:00
Per Bothner
054117f98d
Improved ChangeLog entry for verify.cc (is_assignable_from_slow).
...
From-SVN: r49190
2002-01-24 12:10:17 -08:00
Per Bothner
7ac20fe4e7
verify.cc (is_assignable_from_slow): If source is an interface, we must also check the superclass.
...
* verify.cc (is_assignable_from_slow): If source is an interface,
we must also check the superclass.
From-SVN: r49189
2002-01-24 12:02:21 -08:00