OSDN Git Service

2e972548e945df3da4c2a3aecd934a6db115b772
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-01-05  Tom Tromey  <tromey@redhat.com>
2
3         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
4         dummy.class in srcdir.
5
6 2007-01-03  Tom Tromey  <tromey@redhat.com>
7
8         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
9         for srcdir.
10
11 2007-01-03  Tom Tromey  <tromey@redhat.com>
12
13         * testsuite/*: Added many .jar and .h files.
14         * testsuite/libjava.special/special.exp
15         (gcj_special_try_compiler): New proc.
16         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
17         bytecompile source.  Search for .jar files.
18         (gcj_loader_test_one): Don't look for MyLoader.java.
19         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
20         bytecompile sources or build headers.
21         (gcj_jvmti_run): Look for .jar files.
22         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
23         files.
24         (gcj_jni_test_one): Don't bytecompile sources or build headers.
25         Set classpath when invoking gij.
26         (gcj_jni_invocation_test_one): Likewise.
27         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
28         headers or bytecompile sources.
29         (gcj_cni_run): Use .jar files, not .java files.
30         * testsuite/libjava.lang/lang.exp: Compile .jar files.
31
32 2007-01-02  Tom Tromey  <tromey@redhat.com>
33
34         * configure: Rebuilt.
35         * configure.ac: Check for gjar.
36
37 2007-01-02  Tom Tromey  <tromey@redhat.com>
38
39         * testsuite/libjava.jacks/jacks.exp: Removed.
40         * testsuite/libjava.jacks/jacks.xfail: Removed.
41
42 2006-12-22  Tom Tromey  <tromey@redhat.com>
43
44         * sources.am, Makefile.in: Rebuilt.
45         * java/io/natObjectInputStream.cc (allocateObject): Now method on
46         VMObjectStream.
47         (currentLoader): Removed.
48         * java/io/ObjectInputStream.java: Removed.
49         * java/io/VMObjectInputStream.java: New file.
50         * scripts/classes.pl (scan): Ignore .svn directories.
51         * gcj/javaprims.h: Updated.
52
53 2006-12-22  Tom Tromey  <tromey@redhat.com>
54
55         * testsuite/libjava.jni/register2.c: Include jni.h, not
56         register2.h.
57         * testsuite/libjava.cni/cni.exp (gcj_cni_build_headers):
58         Special-case shortfield.
59
60 2006-12-20  Andrew Haley  <aph@redhat.com>
61
62         * java/lang/natClass.cc (getDeclaredAnnotations): Call
63         ClassLoader.getDeclaredAnnotations and
64         ClassLoader.putDeclaredAnnotations.
65         * java/lang/ClassLoader.java (AnnotationsKey): New class.
66         (getDeclaredAnnotations, putDeclaredAnnotations): New.
67
68 2006-12-19  Andrew Haley  <aph@redhat.com>
69
70         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Move here
71         from include/jvm.h.
72         Add BC ABI Version 1.
73         Throw a ClassFormatError if we're not ABI-compatible.
74         (_Jv_RegisterClasses): Throw a ClassFormatError if we're not
75         ABI-compatible.
76         (_Jv_RegisterClasses_Counted): Likewise.
77         (_Jv_NewClassFromInitializer): Likewise.
78         Call Class::initializerSize to get size of initializer struct.
79         * include/jvm.h (_Jv_CheckABIVersion): Move to natClassLoader.cc.
80         * java/lang/Class.h (Class::initializerSize): New function.
81
82 2006-12-18  Tom Tromey  <tromey@redhat.com>
83
84         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_build_headers):
85         Don't use jv-scan.
86
87 2006-12-18  Tom Tromey  <tromey@redhat.com>
88
89         * HACKING: Updated.
90         * gnu/classpath/Configuration.java (CLASSPATH_VERSION): Now 0.93.
91
92 2006-12-15  Tom Tromey  <tromey@redhat.com>
93
94         * configure, Makefile.in: Rebuilt.
95         * Makefile.am (gcjh.stamp): Use JAVA_MAINTAINER_MODE.
96         * configure.ac: Added --enable-java-maintainer-mode.
97
98 2006-12-15  Tom Tromey  <tromey@redhat.com>
99
100         * testsuite/libjava.compile: Removed.
101
102 2006-12-15  Andrew Haley  <aph@redhat.com>
103
104         * Makefile.am (AM_MAKEFLAGS): Pass JAR to sub-make.
105         (libgcj_tools_la_GCJFLAGS): Pass -fsource-filename to gcj.
106
107 2006-12-14  Gary Benson  <gbenson@redhat.com>
108
109         * include/java-stack.h (stackwalker_nnl_trace_fn,
110         GetStackWalkerFirstNonNullLoader): Declare.
111         * stacktrace.cc (stackwalker_nnl_trace_fn,
112         GetStackWalkerFirstNonNullLoader): New methods.
113         * gnu/classpath/natVMStackWalker.cc
114         (firstNonNullClassLoader): New method.
115         * gnu/classpath/VMStackWalker.java
116         (firstNonNullClassLoader): Replace with native method.
117
118 2006-12-13  Gary Benson  <gbenson@redhat.com>
119
120         * stacktrace.cc (stackwalker_trace_fn,
121         GetStackWalkerCallingClass): Be less strict about caller.
122         * gnu/classpath/natVMStackWalker.cc
123         (getCallingClassLoader): New method.
124         * gnu/classpath/VMStackWalker.java
125         (getCallingClassLoader): Replace with native method.
126
127 2006-12-12  Tom Tromey  <tromey@redhat.com>
128
129         * sources.am, Makefile.in: Rebuilt.
130         * gnu/java/rmi/rmic/CompilerProcess.java: Removed.
131         * gnu/java/rmi/rmic/RMICException.java: Removed.
132         * gnu/java/rmi/rmic/Compiler.java: Removed.
133         * gnu/java/rmi/rmic/Compile_gcj.java: Removed.
134         * gnu/java/rmi/rmic/Compile_jikes.java: Removed.
135         * gnu/java/rmi/rmic/TabbedWriter.java: Removed.
136         * gnu/java/rmi/rmic/Compile_kjc.java: Removed.
137         * gnu/java/rmi/rmic/RMIC.java: Removed.
138         * Makefile.am (toolexeclib_LTLIBRARIES): Uncomment
139         libgcj-tools.la.
140         (jar_DATA): Uncomment libgcj-tools jar.
141         (libgcj_tools_la_SOURCES): Uncomment.
142         (libgcj_tools_la_GCJFLAGS): Likewise.
143         (libgcj_tools_la_LDFLAGS): Likewise.
144         (libgcj_tools_la_DEPENDENCIES): Likewise.
145         (libgcj_tools_la_LINK): Likewise.
146         (libgcj-tools-$(gcc_version).jar): Uncomment.
147         (bin_PROGRAMS): Add gappletviewer, gjarsigner, gkeytool, gjar,
148         gjavah, gnative2ascii, gorbd, grmid, gserialver, gtnameserv.
149         (gjar_SOURCES): New variable.
150         (gjar_LDFLAGS): Likewise.
151         (gjar_LINK): Likewise.
152         (gjar_LDADD): Likewise.
153         (gjar_DEPENDENCIES): Likewise.
154         (gjavah_SOURCES): Likewise.
155         (gjavah_LDFLAGS): Likewise.
156         (gjavah_LINK): Likewise.
157         (gjavah_LDADD): Likewise.
158         (gjavah_DEPENDENCIES): Likewise.
159         (gnative2ascii_SOURCES): Likewise.
160         (gnative2ascii_LDFLAGS): Likewise.
161         (gnative2ascii_LINK): Likewise.
162         (gnative2ascii_LDADD): Likewise.
163         (gnative2ascii_DEPENDENCIES): Likewise.
164         (gorbd_SOURCES): Likewise.
165         (gorbd_LDFLAGS): Likewise.
166         (gorbd_LINK): Likewise.
167         (gorbd_LDADD): Likewise.
168         (gorbd_DEPENDENCIES): Likewise.
169         (grmid_SOURCES): Likewise.
170         (grmid_LDFLAGS): Likewise.
171         (grmid_LINK): Likewise.
172         (grmid_LDADD): Likewise.
173         (grmid_DEPENDENCIES): Likewise.
174         (gserialver_SOURCES): Likewise.
175         (gserialver_LDFLAGS): Likewise.
176         (gserialver_LINK): Likewise.
177         (gserialver_LDADD): Likewise.
178         (gserialver_DEPENDENCIES): Likewise.
179         (gtnameserv_SOURCES): Likewise.
180         (gtnameserv_LDFLAGS): Likewise.
181         (gtnameserv_LINK): Likewise.
182         (gtnameserv_LDADD): Likewise.
183         (gtnameserv_DEPENDENCIES): Likewise.
184         (grmic_LDADD): Link against tools library.
185         (grmic_LDFLAGS): Changed --main.
186         (grmiregistry_LDADD): Link against tools library.
187         (grmiregistry_LDFLAGS): Changed --main.
188         (grmic_DEPENDENCIES): Updated.
189         (grmiregistry_DEPENDENCIES): Likewise.
190
191 2006-12-12  Tom Tromey  <tromey@redhat.com>
192
193         * sources.am, Makefile.in: Rebuilt.
194         * gnu/java/nio/FileLockImpl.java: New override.
195         * gnu/java/nio/SelectorProviderImpl.java: New override.
196         * gnu/java/nio/PipeImpl.java: New override.
197         * gnu/java/nio/SocketChannelSelectionKeyImpl.java: New override.
198         * gnu/java/nio/NIOSocket.java: New override.
199         * gnu/java/nio/SocketChannelSelectionKey.java: New override.
200         * java/io/FileDescriptor.java: New override.
201         * java/io/RandomAccessFile.java: New override.
202         * java/io/FileInputStream.java: New override.
203         * java/io/FileOutputStream.java: New override.
204         * configure.ac: Pass --disable-Werror, --disable-tool-wrappers to
205         Classpath configure.
206         * java/io/ObjectInputStream.java (readClassDescriptor): Don't pass
207         class loader to ObjectStreamField.
208         * java/net/DatagramSocket.java: New override.
209         * java/net/Socket.java: New override.
210         * java/net/MulticastSocket.java: New override.
211         * gnu/classpath/VMStackWalker.java (firstNonNullClassLoader): New
212         method from Classpath.
213         * java/lang/Class.java (newInstance): Fixed return type.
214         (forName): Likewise.
215         (getClasses): Likewise.
216         (getComponentType): Likewise.
217         (getConstructors): Likewise.
218         (getDeclaredClasses): Likewise.
219         (getDeclaredConstructors): Likewise.
220         (getDeclaringClass): Likewise.
221         (getInterfaces): Likewise.
222         (getSuperclass): Likewise.
223         (internalGetClasses): Genericized.
224         (getMethod): Likewise.
225         (isAssignableFrom): Likewise.
226         * java/util/zip/natDeflater.cc (getBytesWritten): Renamed.
227         (getBytesRead): Likewise.
228         * java/util/zip/Deflater.java (getBytesRead, getBytesWritten): New
229         methods.
230         (getTotalIn, getTotalOut): Rewrote.
231         * java/net/NetworkInterface.java: New override.
232         * java/lang/ClassLoader.java (defineClass): New overload from
233         Classpath.
234
235 2006-12-11  Gary Benson  <gbenson@redhat.com>
236
237         * gcj/Makefile.in: Rebuilt.
238
239 2006-12-11  Gary Benson  <gbenson@redhat.com>
240
241         * Makefile.in: Rebuilt.
242         * include/Makefile.in: Likewise.
243         * testsuite/Makefile.in: Likewise.
244
245 2006-12-08  Mohan Embar  <gnustuff@thisiscool.com>
246
247         * configure, Makefile.in: Rebuilt.
248         * configure.ac: (GCJ_FOR_ECJX) New substitution.
249         (host_exeext): Likewise.
250         (ENABLE_SHARED): New conditional,
251         * Makefile.am: Added GCJ_FOR_ECJX and GCJ_FOR_ECJX_LINK.
252         (install-exec-hook): Correctly rename ecjx to ecj1.
253         (ecjx_LINK, ecjx_LDFLAGS, ecjx_LDADD, ecjx_DEPENDENCIES): Define
254         as a function of whether we're doing a native and/or shared build.
255
256 2006-12-08  Mohan Embar  <gnustuff@thisiscool.com>
257
258         * posix-threads.cc (_Jv_ThreadUnpark): Removed.
259         (ParkHelper::unpark): Ported from _Jv_ThreadUnpark.
260         (ParkHelper::deactivate): Implemented.
261         (_Jv_ThreadPark): Removed.
262         (ParkHelper::park): Ported from _Jv_ThreadPark; moved
263         mutex locking and unlocking to inside if statement.
264         * win32-threads.cc (compare_and_exchange): New helper function.
265         (_Jv_ThreadUnpark, _Jv_ThreadPark): Removed.
266         (ParkHelper::init): Implemented.
267         (ParkHelper::init_event): Implemented.
268         (ParkHelper::deactivate): Implemented.
269         (ParkHelper::destroy): Implemented.
270         (ParkHelper::unpark): Implemented.
271         (ParkHelper::park): Implemented.
272         * java/lang/natThread.cc (initialize_native): Use ParkHelper
273         instead of POSIX synchronization constructs.
274         (finalize_native):  Likewise.
275         (interrupt): Use ParkHelper method instead of _Jv_ThreadUnpark().
276         (finish_): Use ParkHelper::deactivate().
277         * include/jvm.h (struct natThread): Use ParkHelper instead of POSIX
278         synchronization constructs.
279         * include/posix-threads.h: Include sysdep/locks.h
280         (_Jv_ThreadUnpark, _Jv_ThreadPark): Removed.
281         (ParkHelper): New struct.
282         (ParkHelper::init): Implemented.
283         (ParkHelper::destroy): Implemented.
284         * include/win32-threads.h (ParkHelper): New struct.
285         (TEXT): undefined this macro.
286         * sun/misc/natUnsafe.cc (unpark): Use ParkHelper instead of
287         _Jv_ThreadUnpark.
288         (park):  Use ParkHelper instead of _Jv_ThreadPark.
289
290 2006-12-08  Ben Konrath  <bkonrath@redhat.com>
291
292         PR libgcj/30110:
293         * Makefile.am: Add contents of classpath/external to src.zip.
294         * Makefile.in: Regenerate.
295
296 2006-12-07  Tom Tromey  <tromey@redhat.com>
297
298         PR libgcj/30076:
299         * defineclass.cc (read_fields): Sort fields here.
300         (handleFieldsEnd): Removed.
301         (handleField): Added field map argument.
302         (struct _Jv_ClassReader): Updated.
303         (handleParameterAnnotations): Use writeInt for the length.
304
305 2006-12-07  Gary Benson  <gbenson@redhat.com>
306
307         * include/java-stack.h (stackwalker_trace_fn,
308         GetStackWalkerCallingClass): Declare.
309         * stacktrace.cc (stackwalker_trace_fn,
310         GetStackWalkerCallingClass): New methods.
311         * gnu/classpath/natVMStackWalker.cc
312         (getCallingClass): Use the above.
313         * gnu/classpath/VMStackWalker.java
314         (getCallingClass): Replace with native method.
315
316 2006-12-06  Tom Tromey  <tromey@redhat.com>
317
318         PR java/24938:
319         * sources.am, Makefile.in: Rebuilt.
320         * gnu/CORBA/DynAn/gnuDynValue.java: Removed.
321         * gnu/CORBA/DynAn/RecordAny.java: Removed.
322         * gnu/CORBA/DynAn/RecordAny.h: Rebuilt.
323
324 2006-12-06  Andrew Haley  <aph@redhat.com>
325
326         * gcj/javaprims.h (_Jv_is_proxy): Declare.
327         * java/lang/reflect/natVMProxy.cc (_Jv_is_proxy): Define
328         (run_proxy): Register this proxy invocation with a _Jv_InterpFrame.
329         * include/java-stack.h (struct _Jv_StackFrame): Add proxyClass and
330         proxyMethod.
331         * stacktrace.cc (UnwindTraceFn): Add frame_proxy handling.
332         (getLineNumberForFrame): Likewise.
333         (FillInFrameInfo): Likewise.
334
335 2006-12-05  Andrew Haley  <aph@redhat.com>
336
337         * Makefile.am: Add java/lang/reflect/natVMProxy.cc.
338         * java/lang/reflect/Method.java (exception_types, parameter_types,
339         return_type): Make package private.
340         * include/jvm.h (_Jv_makeUtf8Const(const char *s)): New function.
341         (_Jv_Linker::layout_vtable_methods): Given
342         public linkage.
343         (_Jv_Linker::search_method_in_class): Likewise.
344         * interpret.cc (_Jv_init_cif): Renamed from init_cif.  Given
345         public linkage.
346         * include/java-interp.h (_Jv_init_cif): Likewise.
347         * java/lang/reflect/natVMProxy.cc: New file.
348         * java/lang/VMCompiler.java (precompiles): New method.
349         (compileClass): Use it.
350         * java/lang/reflect/VMProxy.java
351         (HAVE_NATIVE_GENERATE_PROXY_CLASS): true.
352         (generateProxyClass): Native.
353         
354 2006-12-05  Tom Tromey  <tromey@redhat.com>
355
356         * Makefile.in: Rebuilt.
357         * Makefile.am (libexecsubdir): New variable.
358         (install-exec-hook): Install ecj1 in libexecsubdir.
359         (libexecsub_PROGRAMS): Renamed.
360
361 2006-12-05  Tom Tromey  <tromey@redhat.com>
362
363         PR java/29495:
364         * testsuite/libjava.lang/PR29495.out: New file.
365         * testsuite/libjava.lang/PR29495.java: New file.
366
367 2006-12-05  Gary Benson  <gbenson@redhat.com>
368
369         * gnu/classpath/natVMStackWalker.cc: Comment fixes.
370
371 2006-12-05  Gary Benson  <gbenson@redhat.com>
372
373         * gnu/classpath/natVMStackWalker.cc (getCallingClass): Unwind
374         the stack when the caller is a compiled frame and the caller
375         of the caller is an interpreted frame.
376
377 2006-12-04  Adam Megacz <megacz@cs.berkeley.edu>
378
379         * gnu/gcj/runtime/natSharedLibLoader.cc (init): add "::" to fix
380         syntax error
381
382 2006-12-04  Adam Megacz <megacz@cs.berkeley.edu>
383
384         * include/win32.h (_Jv_platform_process): change to Win32Process
385         
386 2006-12-04  Gary Benson  <gbenson@redhat.com>
387
388         * stacktrace.cc (GetClassContext): Remove.
389         * include/java-stack.h (GetClassContext): Likewise.
390
391 2006-12-04  Gary Benson  <gbenson@redhat.com>
392
393         * java/lang/SecurityManager.java: Removed.
394         * java/lang/VMSecurityManager.java: Likewise.
395         * java/lang/natVMSecurityManager.cc: Likewise.
396         * javax/naming/spi/NamingManager.java: Likewise.
397         * gnu/CORBA/ObjectCreator.java: Likewise.
398         * sun/reflect/Reflection.java: Replaced with reference.
399         * sun/reflect/natReflection.cc: Removed.
400         * gcj/javaprims.h: Removed reference to VMSecurityManager.
401         * Makefile.am (nat_source_files): Removed natReflection.cc
402         and natVMSecurityManager.cc.
403         * sources.am, Makefile.in: Rebuilt.     
404         
405 2006-12-01  Gary Benson  <gbenson@redhat.com>
406
407         * java/net/URLClassLoader.java
408         (findClass): Inhibit calling this.toString() further into VM
409         initialization.
410         (runtimeInitialized): Removed.
411         * java/net/natURLClassLoader.cc: Removed.
412         * Makefile.am: Reflect the above.
413         * Makefile.in: Rebuilt. 
414
415 2006-11-30  Tom Tromey  <tromey@redhat.com>
416
417         * java/lang/Class.java (getAnnotations): Don't recurse.
418
419 2006-11-30  Gary Benson  <gbenson@redhat.com>
420
421         * include/java-stack.h (GetStackWalkerStack): Declare.
422         * stacktrace.cc (GetStackWalkerStack): New method.
423         * gnu/classpath/natVMStackWalker.cc (getClassContext): Likewise.
424         * gnu/classpath/VMStackWalker.java
425         (getClassContext): Replace stub with native method declaration.
426         (getCallingClass): Remove "throws NotImplementedException".
427         (getCallingClassLoader): Likewise.
428
429 2006-11-30  Gary Benson  <gbenson@redhat.com>
430
431         * java/lang/ClassLoader.java: Merged javadoc.
432         (getParent, getSystemClassLoader): Use VMStackWalker.
433
434 2006-11-30  Gary Benson  <gbenson@redhat.com>
435
436         * java/lang/Thread.java: Merged javadoc.
437         (getContextClassLoader): Use VMStackWalker.
438
439 2006-11-29  Gary Benson  <gbenson@redhat.com>
440
441         * java/lang/Package.java: Removed.
442         * java/security/Security.java: Likewise.
443         * java/util/ResourceBundle.java: Likewise.
444         * java/util/natResourceBundle.cc: Likewise.
445         * Makefile.am (nat_source_files): Removed natResourceBundle.cc.
446         * sources.am, Makefile.in: Rebuilt.
447
448 2006-11-29  Gary Benson  <gbenson@redhat.com>
449
450         * gnu/classpath/VMStackWalker.java: Added javadoc.
451
452 2006-11-27  Andrew Haley  <aph@redhat.com>
453
454         * sun/reflect/misc/ReflectUtil.java (checkPackageAccess):
455         Implement.
456
457 2006-11-23  Andrew Haley  <aph@redhat.com>
458
459         * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Abort if we
460         are ABI-incompatible.
461
462 2006-11-23  Andrew Haley  <aph@redhat.com>
463
464         * Makefile.am (nat_source_files): Add gnu/classpath/natVMStackWalker.cc.
465         * sources.am: Rebuild.
466         * gnu/classpath/natVMStackWalker.cc: New file.
467         * gnu/classpath/VMStackWalker.java: New file.
468         * headers.txt: prepend 
469         _Jv_Thread_t* _Jv_ThreadGetData(java::lang::Thread* thread)
470         * include/java-stack.h: Add VMStackWalker namespace.
471         Add friend class gnu::classpath::VMStackWalker.
472
473 2006-11-23  Gary Benson  <gbenson@redhat.com>
474
475         * java/security/Security.java: Merge with classpath.
476         * java/lang/Package.java: Likewise.
477
478 2006-11-21  Andrew Haley  <aph@redhat.com>
479
480         * java/lang/Class.h: (isEnum, isSynthetic, isAnnotation): Move
481         to native code. 
482         * java/lang/Class.java (isEnum, isSynthetic, isAnnotation):
483         Likewise.
484
485 2006-11-17  Andrew Haley  <aph@redhat.com>
486
487         * java/net/natVMURLConnection.cc: Check for HAVE_MAGIC_OPEN.
488         * configure.ac: Add HAVE_MAGIC_OPEN.
489         * include/config.h.in: Regenerated.
490         * configure: Regenerated.
491         
492 2006-11-07  Andrew Haley  <aph@redhat.com>
493
494         * java/lang/VMCompiler.java (compileClass): Revert mistaken
495         change.
496
497         * java/lang/natVMClassLoader.cc (defineClass): Register the new
498         class with the initiating loader.
499
500 2006-11-06  Andrew Haley  <aph@redhat.com>
501
502         * defineclass.cc (prepare_pool_entry): Be careful about which
503         constant pool entries have their '/' characters stripped.
504         (handleGenericSignature): Likewise.
505         (handleAnnotationElement): Likewise.
506         (handleAnnotation): Likewise.
507         (read_one_class_attribute): Likewise.
508         (handleMethod): Likewise.
509
510         * include/java-cpool.h (JV_CONSTANT_LazyFlag): New.
511         * java/lang/natClass.cc (check_constant): Likewise.
512         * link.cc (resolve_pool_entry): Mask JV_CONSTANT_LazyFlag.
513
514 2006-11-01  Andrew Haley  <aph@redhat.com>
515
516         * java/lang/natClass.cc (parseAnnotationElement): Set result from
517         anno_class.
518
519 2006-10-21  Tom Tromey  <tromey@redhat.com>
520
521         * testsuite/libjava.lang/PR260.out: Rewrote for 1.5.
522         * testsuite/libjava.lang/pr179.out: Rewrote for 1.5.
523         * testsuite/libjava.lang/pr179.java: Updated comments.
524         * testsuite/libjava.compile/inner_1.xfail: Removed.
525
526 2006-10-20  Tom Tromey  <tromey@redhat.com>
527
528         * testsuite/libjava.cni/cni.exp (gcj_cni_build_headers): Don't use
529         jv-scan.
530         * testsuite/lib/libjava.exp (test_libjava_from_javac): Removed.
531         (find_jvscan): Removed.
532
533 2006-10-20  Tom Tromey  <tromey@redhat.com>
534
535         * testsuite/libjava.jni/jni.exp (gcj_jni_build_header): Use
536         -force.
537         * testsuite/lib/libjava.exp (find_gcjh): Find 'gjavah' instead.
538         * testsuite/libjava.cni/cni.exp (gcj_cni_build_headers): Pass -cni
539         and -force to gcjh.
540         * Makefile.in: Rebuilt.
541         * Makefile.am (MYGCJH): Use gjavah.
542
543 2006-10-18  Tom Tromey  <tromey@redhat.com>
544
545         PR classpath/28203:
546         * java/lang/Class.java (getAnnotations): Rewrote.
547         * java/lang/reflect/Method.java (METHOD_MODIFIERS): Now
548         package-private.
549         * java/lang/reflect/Field.java (FIELD_MODIFIERS): Now
550         package-private.
551         * gcj/field.h (_Jv_FIELD_CONSTANT_VALUE): Removed.
552         * defineclass.cc (handleConstantValueAttribute): Added found_value
553         argument.  Don't use _Jv_FIELD_CONSTANT_VALUE.
554         (read_one_field_attribute): Updated.
555         (read_fields): Likewise.
556         (handleField): Mask with FIELD_MODIFIERS, not ALL_FLAGS.
557         (handleMethod): Mask with METHOD_MODIFIERS, not ALL_FLAGS.
558
559 2006-10-17  Tom Tromey  <tromey@redhat.com>
560
561         * defineclass.cc (handleMemberAnnotations): Write member index
562         after 'kind'.
563         (handleAnnotation): Call prepare_pool_entry.
564         * java/lang/reflect/natMethod.cc (getDeclaredAnnotationsInternal):
565         Removed unused variable.
566         (getParameterAnnotationsInternal): Likewise.
567         * java/lang/reflect/natField.cc (getDeclaredAnnotationsInternal):
568         Removed unused variable.
569         * java/lang/reflect/natConstructor.cc
570         (getDeclaredAnnotationsInternal): Removed unused variable.
571         (getParameterAnnotationsInternal): Likewise.
572         * java/lang/natClass.cc (parseAnnotation): Create annotation.
573         (parseAnnotationElement): Handle 'c' and 'e' cases more
574         correctly.
575         (getMethodDefaultValue): Fixed variable names.
576         (parseAnnotationElement): Create String for 's' entry.
577         * java/lang/reflect/Constructor.java (getAnnotation): New method.
578         * java/lang/reflect/Field.java (getAnnotation): New method.
579         * java/lang/reflect/Method.java (getAnnotation): New method.
580
581 2006-10-17  Tom Tromey  <tromey@redhat.com>
582
583         * java/lang/natClass.cc (parseAnnotationElement): Expect a utf8
584         constant in the "string" case.
585         * defineclass.cc (handleAnnotationElement): Expect a utf8 constant
586         in the "string" case.
587
588 2006-10-17  Tom Tromey  <tromey@redhat.com>
589
590         * configure, Makefile.in: Rebuilt.
591         * Makefile.am (install-exec-hook): Now unconditional.  Rename ecjx
592         if needed.
593         (jar_DATA): Add ecj jar when needed.
594         (toolexec_PROGRAMS): New variable.
595         (ecjx_SOURCES, ecjx_LDFLAGS, ecjx_LDADD, ecjx_DEPENDENCIES):
596         Likewise.
597         * prims.cc (JvRunMainName): New function.
598         * include/jvm.h (JvRunMainName): Declare.
599         * configure.ac: Added --with-ecj-jar.
600         (ECJ_JAR): New subst.
601         (ECJ_BUILD_JAR): Likewise.
602         (INSTALL_ECJ_JAR): New conditional.
603         (BUILD_ECJ1): Likewise.
604
605 2006-10-13  Tom Tromey  <tromey@redhat.com>
606
607         * HACKING: Updated.
608         * sources.am, Makefile.in: Rebuilt.
609         * scripts/makemake.tcl (emit_bc_rule): Updated for class files in
610         srcdir.
611         (emit_package_rule): Likewise.
612         (emit_process_package_rule): Likewise.
613         * Makefile.am (gcjh.stamp): Conditional on MAINTAINER_MODE.  Put
614         headers in srcdir.
615         (libgcj-$(gcc_version).jar): Updated to find classes in source
616         tree.
617         (BOOTCLASSPATH): Likewise.
618         (install-data-local): Likewise.
619         Added all the .class and CNI .h files.
620
621 2006-10-12  Andrew Haley  <aph@redhat.com>
622
623         * java/lang/natThreadLocal.cc: New file.
624         * java/lang/ThreadLocal.java: Rewrite to use native TLS.
625         * Makefile.am: Add java/lang/natThreadLocal.cc.
626         * sources.am: Move classpath/java/lang/ThreadLocal.java to
627         java/lang/ThreadLocal.java.
628
629 2006-10-11  Tom Tromey  <tromey@redhat.com>
630
631         * sources.am, Makefile.in, include/config.h.in, configure:
632         Rebuilt.
633         * Makefile.am (nat_source_files): Added natConfiguration.cc.
634         * gnu/classpath/natConfiguration.cc: New file.
635         * configure.ac (AWT_TOOLKIT): New define.
636         (LIBGCJ_PREFIX): Likewise.
637         * gnu/classpath/Configuration.java: New file.
638         * sources.am: Rebuilt.
639         * scripts/makemake.tcl: Don't special case Configuration.java.
640
641 2006-10-10  Tom Tromey  <tromey@redhat.com>
642
643         * gcj/javaprims.h: Updated.
644         * sources.am, Makefile.in: Rebuilt.
645         * standard.omit.in: Removed process source files.
646         * scripts/makemake.tcl: Removed ConcreteProcess special case.
647         (emit_package_rule): Also special-case Process.
648         (emit_process_package_rule): New proc.
649         * Makefile.am (inner_nat_headers): Removed
650         PLATFORM_INNER_NAT_HDRS.
651         * configure: Rebuilt.
652         * configure.ac (PLATFORM_INNER_NAT_HDRS): Removed subst.
653         Don't create ConcreteProcess.java link.
654         (PLATFORM): New subst.
655         * java/lang/natWin32Process.cc: Updated.
656         * java/lang/natPosixProcess.cc: Updated.
657         * java/lang/natEcosProcess.cc: Updated.
658         * java/lang/Win32Process.java (Win32Process): Renamed from
659         ConcreteProcess.
660         * java/lang/EcosProcess.java (EcosProcess): Renamed from
661         ConcreteProcess.
662         * java/lang/PosixProcess.java (PosixProcess): Renamed from
663         ConcreteProcess.
664         * include/win32.h (_Jv_platform_process): New define.
665         * java/lang/natRuntime.cc (execInternal): Use
666         _Jv_platform_process.
667         * include/posix.h (_Jv_platform_process): New define.
668
669 2006-10-09  Andrew Haley  <aph@redhat.com>
670
671         * win32-threads.cc (_Jv_ThreadUnpark, _Jv_ThreadPark): New
672         functions.
673
674 2006-10-06  Tom Tromey  <tromey@redhat.com>
675
676         PR libgcj/29278:
677         * Makefile.in: Rebuilt.
678         * Makefile.am ($(generic_header_files)): Depend on gcjh.stamp.
679         (gcjh.stamp): New target.
680
681 2006-10-06  Andrew Haley  <aph@redhat.com>
682
683         * posix-threads.cc (_Jv_ThreadUnpark, _Jv_ThreadPark): Moved here
684         from sun/misc/natUnsafe.cc.
685         * sun/misc/natUnsafe.cc (class spinlock): New class.
686         (compareAndSwap): New methods.
687         (compareAndSwapInt, compareAndSwapLong, compareAndSwapObject) 
688         (putOrderedLong, putLongVolatile, putObjectVolatile, putLong) 
689         (getIntVolatile, getObjectVolatile, getLong, getLongVolatile):
690         Rewrite to use gcj's own atomic functions rather than gcc
691         builtins.
692         (unpark): Moved to posix-threads.cc
693         (park): Likewise.
694         * include/jvm.h (struct natThread::alive_flag): Moved here from
695         Thread.java.
696         (struct natThread): Likewise.
697         * include/posix-threads.h: (_Jv_ThreadUnpark, _Jv_ThreadPark):
698         moved here from sun/misc/natUnsafe.cc.
699         * java/lang/natThread.cc (initialize_native): Set alive_flag here.
700         (isAlive): Moved here from Thread.java.
701         (interrupt): alive_flag is now in the natThread structure.
702         (interrupt): Call _Jv_ThreadUnpark().
703         (finish_): parkPermit and alive_flag are now in the natThread
704         structure.
705         (start): LIkewise.
706         (_Jv_AttachCurrentThread): Likewise.
707         * java/lang/Thread.java (alive_flag): Remove.
708         (parkPermit): Likewise.
709         (Thread): Don't set alive_flag.
710         (isAlive): Make native.
711         
712 2006-09-13  Andrew Haley  <aph@redhat.com>
713
714         * Makefile.am: Add sun/reflect/natReflection.cc.
715         * Makefile.in: Rebuild.
716         * sun/reflect/natReflection.cc: New file.
717         * sun/reflect/Reflection.java (getCallerClass): Now native.
718         * stacktrace.cc (GetClassContext): Don't check the class if
719         checkClass is NULL.
720         
721 2006-09-12  Andrew Haley  <aph@redhat.com>
722
723         * java/lang/Thread.java (alive_flag): Make it a byte.
724         (THREAD_DEAD, THREAD_ALIVE, THREAD_SIGNALED): new constants.
725         (parkPermit): New variable.
726         (data): Now package private.
727         (Thread): Set alive_flag to THREAD_DEAD, not false.
728         (isAlive): Test against THREAD_DEAD.
729         * java/lang/natThread.cc (initialize_native): Initialize
730         park_mutex and park_cond.
731         (finish_): Set parkPermit THREAD_PARK_DEAD.
732         (interrupt): Rewrite.  Use an atomic update rather than a mutex to
733         access alive_flag.
734         If the thread is parked, unpark it.
735         (start): Set alive_flag to THREAD_ALIVE, not true.
736         (finalize_native): Destroy park_mutex and park_cond.
737         * sun/misc/natUnsafe.cc (unpark): New method.
738         (park): New method.
739         * include/jvm.h (struct natThread): Moved here.
740
741 2006-06-07  Andrew Haley  <aph@redhat.com>
742  
743         * include/jvm.h (_Jv_Linker::maybe_adjust_signature): New.
744         (_Jv_Linker::uaddr): New.
745         * link.cc (resolve_pool_entry): Call search_method_in_superclasses
746         instead of an open-coded loop around search_method_in_class.
747         (search_method_in_class): Add a new arg, check_perms.
748         (search_method_in_superclasses): New.
749         (link_symbol_table): Call maybe_adjust_signature() to extract the
750         least significnt bit of the signature pointer.  Do this three
751         times, for instace method calls, static methods, and interfaces.
752         Call search_method_in_superclasses() instead of
753         _Jv_LookupDeclaredMethod.
754         (typedef uaddr): Delete.
755  
756 2006-09-11  Andrew Haley  <aph@redhat.com>
757
758         * gij.cc (main): Remove bogus code that sets LTDL_SHLIBPATH_VAR
759         and forks.
760
761 2006-06-16  Andrew Haley  <aph@redhat.com>
762
763         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
764         copy the whole Class instance from the initializer: instead, copy
765         everything but the first word (the vtable pointer).
766         Change prototype to (const char* class_initializer).
767         (_Jv_RegisterNewClasses): Change prototype to (const char**).
768         * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
769         (const char**).
770
771 2006-08-31  Tom Tromey  <tromey@redhat.com>
772
773         PR libgcj/28698:
774         * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro.  Declare primitive
775         classes.
776
777 2006-08-21  Bryce McKinlay  <mckinlay@redhat.com>
778
779         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
780         to GC.
781         (_Jv_DetachCurrentThread): Detach thread from GC.
782         * include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
783         Declare.
784         * boehm.cc (_Jv_GCAttachThread): New function.
785         (_Jv_GCDetachThread): Likewise.
786
787 2006-08-16  Jakub Jelinek  <jakub@redhat.com>
788             Bryce McKinlay  <bryce@mckinlay.net.nz>
789
790         * configure, Makefile.in: Rebuilt.
791         * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
792         (libgcj_bc_la_SOURCES): New variable.
793         (libgcj_bc_la_LDFLAGS): Likewise.
794         (libgcj_bc_la_LIBADD): Likewise.
795         (libgcj_bc_la_DEPENDENCIES): Likewise.
796         (libgcj_bc_la_LINK): Likewise.
797         (libgcj_bc_dummy_LINK): Likewise.
798         (libgcj_bc.la): New target.
799         (install-exec-hook): Likewise.
800         * libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
801         * libgcj_bc.c: New file.
802         * configure.ac (LIBGCJ_SPEC): New subst.
803         * configure.host (use_libgcj_bc): New variable.
804
805 2006-08-26  Andrew John Hughes  <gnu_andrew@member.fsf.org>
806
807         * link.cc:
808         Increment loaded classes when printing verbose output.
809         * gnu/java/lang/management/natVMMemoryMXBeanImpl.cc:
810         Added comments.
811         * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc:
812         (getMemoryManagerNames(jstring)): Implemented.
813         (isValid(jstring)): Implemented.
814         * gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc:
815         (getLoadedClassCount()): Implemented.
816         (getUnloadedClassCount()): Likewise.
817         (isVerbose()): Likewise.
818         (setVerbose(jboolean)): Likewise.
819         * java/lang/management/natVMManagementFactory.cc:
820         (getMemoryPoolNames()): Implemented.
821         (getMemoryManagerNames()): Likewise.
822         (getGarbageCollectorNames()): Likewise.
823         * include/jvm.h:
824         Add loaded and unloaded class counts.
825         * defineclasses.c:
826         Increment loaded classes count.
827         * prims.cc:
828         Add loaded and unloaded class counts.
829         
830 2006-08-16  Tom Tromey  <tromey@redhat.com>
831
832         * include/posix-threads.h (_Jv_MutexLock): No longer inline.
833         * posix-threads.cc (_Jv_CondWait): Set thread's state.
834         * include/jvm.h (class JvSetThreadState): New class.
835         (JvThreadState): New enum.
836         * java/lang/Thread.java (state): New field.
837         * java/lang/natThread.cc (_Jv_ThreadRun): Use
838         getUncaughtExceptionHandler.
839         (start): Set state.
840         (_Jv_AttachCurrentThread): Likewise.
841         (finish_): Likewise.
842         (getState): Wrote.
843
844 2006-08-15  Tom Tromey  <tromey@redhat.com>
845
846         * gnu/gcj/runtime/natSharedLibLoader.cc (init): Added missing
847         '::'.
848         * gnu/gcj/convert/natIconv.cc (init): Added missing '::'.
849         (read): Likewise.
850         * gnu/gcj/natCore.cc (create): Added missing '::'.
851         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
852         Added missing '::'
853
854 2006-08-14  Tom Tromey  <tromey@redhat.com>
855
856         * Makefile.in: Rebuilt.
857         * Makefile.am (libgcj_la_LIBADD): Add LIBMAGIC.
858         * java/net/natVMURLConnection.cc: Wrote, based on Classpath.
859         * configure, config.h.in: Rebuilt.
860         * configure.ac: Check for magic.h and -lmagic.
861
862 2006-08-14  Tom Tromey  <tromey@redhat.com>
863
864         * java/lang/natThread.cc (getId): Removed.
865         * java/lang/Thread.java (threadId): New field.
866         (totalThreadsCreated): Likewise.
867         (Thread): Set threadId.
868         (getId): No longer native.
869
870 2006-08-14  Tom Tromey  <tromey@redhat.com>
871
872         * sources.am, Makefile.in: Rebuilt.
873         * Makefile.am (nat_source_files): Added new .cc files.
874         (libgcj-$(gcc_version).jar): Include 'sun'.
875         (src.zip): Likewise.
876         * java/lang/natThread.cc (getId): New stub.
877         (getState): Likewise.
878         * scripts/makemake.tcl (emit_source_var): Use -decreasing when
879         sorting.
880         * gnu/java/lang/management/natVMMemoryMXBeanImpl.cc: New file.
881         * gnu/java/lang/management/natVMCompilationMXBeanImpl.cc: New file.
882         * gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc: New
883         file.
884         * gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc: New file.
885         * gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc: New file.
886         * gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc: New file.
887         * gnu/java/lang/management/natVMThreadMXBeanImpl.cc: New file.
888         * gnu/java/nio/natVMChannel.cc: New file.
889         * gcj/javaprims.h: Updated.
890         * sources.am: Likewise.
891         * java/lang/management/natVMManagementFactory.cc: New file.
892         * java/net/natVMURLConnection.cc: New file.
893         * java/util/concurrent/atomic/natAtomicLong.cc: New file.
894         * sun/misc/natUnsafe.cc: New file.
895
896 2006-08-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
897
898         * libjava/Makefile.in,
899         * libjava/sources.am:
900         Regenerated.
901         * libjava/scripts/makemake.tcl:
902         Added gconf and dnd peers as BC.
903
904 2006-08-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
905
906         * libjava/Makefile.in,
907         * libjava/sources.am:
908         Regenerated.
909         * libjava/scripts/makemake.tcl:
910         Added external/jsr166.
911         
912 2006-08-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
913
914         * libjava/configure,
915         * libjava/Makefile.in:
916         Regenerated.
917         * libjava/scripts/makemake.tcl:
918         Handle the Escher peers as we handle Qt.
919         * libjava/gcj/Makefile.in:
920         Regenerated.
921         * libjava/configure.ac:
922         Handle Escher peers and disable plugin when Gtk+ is not used.
923         * libjava/sources.am:
924         Regenerated.
925         * libjava/classpath/gnu/java/awt/peer/x/fonts.properties:
926         Removed (as recently on generics branch of Classpath).
927         * libjava/include/Makefile.in,
928         * libjava/testsuite/Makefile.in:
929         Regenerated.
930         
931 2006-07-23  Andrew John Hughes  <gnu_andrew@member.fsf.org>
932
933         * libjava/Makefile.in:
934         Regenerated.
935         * libjava/scripts/classes.pl:
936         Ignore .svn directories.
937         * libjava/scripts/makemake.tcl:
938         Include sun directory.
939         * libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
940         * libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
941         * libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
942         * libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
943         * libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java,
944         * libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java,
945         * libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java,
946         * libjava/gnu/java/nio/VMChannel.java:
947         Copied over from classpath/vm/reference.
948         * libjava/gnu/java/nio/channels/FileChannelImpl.java:
949         (getNativeFD()): Implemented.
950         * libjava/gcj/javaprims.h:
951         Updated for generics merge from 20060709.
952         * libjava/javax/naming/spi/NamingManager.java:
953         Copied over from classpath/vm/reference.
954         * libjava/sources.am:
955         Regenerated.
956         * libjava/java/lang/Thread.java:
957         (getId()): Implemented.
958         (getState()): Likewise.
959         (getAllStackTraces()): Likewise.
960         (getStackTrace()): Likewise.
961         * libjava/java/lang/management/VMManagementFactory.java,
962         * libjava/java/net/VMURLConnection.java:
963         Copied over from classpath/vm/reference.        
964         * libjava/classpath/vm/reference/java/lang/management/VMThreadInfo.java:
965         Removed.
966         * libjava/classpath/native/fdlibm/namespace.h:
967         Changed back to GCJ LOCAL version.
968         * libjava/sun/reflect/Reflection.java,
969         * libjava/sun/reflect/misc/ReflectUtil.java,
970         * libjava/sun/misc/Unsafe.java:
971         Copied over from classpath/vm/reference.
972
973 2006-07-07  Andrew John Hughes  <gnu_andrew@member.fsf.org>
974
975         * sources.am, Makefile.in: Rebuilt.
976         * gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
977         * gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc:
978         New files.
979         * include/jvm.h:
980         Add new variables used in prims.cc.
981         * Makefile.am:
982         Add natVMRuntimeMXBeanImpl.cc.
983         * prims.cc:
984         (_Jv_CreateJavaVM): Retain start time and input
985         arguments.
986
987 2006-07-21  Tom Tromey  <tromey@redhat.com>
988
989         PR libgcj/4105:
990         * java/lang/natClass.cc (findInnerClassAttribute): New method.
991         (findDeclaredClasses): Likewise.
992         (getDeclaredClasses): Implemented.
993         (getDeclaringClass): Likewise.
994         (isAnonymousClass): Likewise.
995         (isMemberClass): Likewise.
996         (check_constant): Pass message in exception.  Allow resolved
997         constants.
998         (resolve_class_constant): New function.
999         * defineclass.cc (read_one_class_attribute): Handle InnerClasses.
1000         * java/lang/Class.h (isAnonymousClass, isLocalClass,
1001         isMemberClass): Declare.
1002         * java/lang/Class.java (getSimpleName): Implemented.
1003         (isAnonymousClass, isLocalClass, isMemberClass): New methods.
1004
1005 2006-07-16  Tom Tromey  <tromey@redhat.com>
1006
1007         * configure: Rebuilt.
1008         * configure.ac (JV_API_VERSION, JV_VERSION): Claim 1.5.
1009
1010 2006-07-12  Andrew Haley  <aph@redhat.com>
1011
1012         * Makefile.am (java/lang/Object.lo): Add -fsource-filename.
1013         (java/lang/Class.lo): Likewise.
1014         * Makefile.in: Regenerate.
1015
1016 2006-07-07  Tom Tromey  <tromey@redhat.com>
1017
1018         * defineclass.cc (input_data, input_offset): New fields.
1019         (reflection_data, data_stream): Likewise.
1020         (get_reflection_stream): New method.
1021         (_Jv_ClassReader): Initialize new fields.
1022         (parse): Call finish_reflection_data.
1023         (finish_reflection_data): New method.
1024         (handleEnclosingMethod): Likewise.
1025         (handleGenericSignature): Likewise.
1026         (handleAnnotationElement): Likewise.
1027         (handleAnnotation): Likewise.
1028         (handleAnnotations): Likewise.
1029         (handleMemberAnnotations): Likewise.
1030         (handleAnnotationDefault): Likewise.
1031         (handleParameterAnnotations): Likewise.
1032         (read_one_field_attribute): Handle new attributes.
1033         (read_one_method_attribute): Likewise.
1034         (read_one_class_attribute): Likewise.
1035         * include/jvm.h (resolve_method_entry): New method.
1036         * java/lang/Class.h (jv_attr_type, jv_attr_kind): New enums.
1037         (Class): Updated for new methods.  Field, Method, Constructor now
1038         friends.
1039         (reflection_data): New field.
1040         * java/lang/Class.java (asSubclass, cast): New methods.
1041         (getEnclosingClass, getEnclosingConstructor): Now native.
1042         (getEnclosingMethod): Likewise.
1043         (getClassSignature): New method.
1044         (getGenericInterfaces, getGenericSuperclass, getTypeParameters):
1045         Likewise.
1046         (Class): Implements AnnotatedElement.
1047         (getAnnotation, isAnnotationPresent, getAnnotations): New methods.
1048         (getDeclaredAnnotations): New method.
1049         (getDeclaredAnnotationsInternal): Likewise.
1050         * java/lang/reflect/natConstructor.cc (anno_a_t, anno_aa_t): New
1051         typedefs.
1052         (getSignature): New method.
1053         (getDeclaredAnnotationsInternal): Likewise.
1054         (getParameterAnnotationsInternal): Likewise.
1055         * java/lang/reflect/natField.cc (anno_a_t): New typedef.
1056         (getSignature): New method.
1057         (getDeclaredAnnotationsInternal): Likewise.
1058         * java/lang/reflect/natMethod.cc (anno_a_t, anno_aa_t): New
1059         typedefs.
1060         (getSignature): New method.
1061         (getDefaultValue): Likewise.
1062         (getDeclaredAnnotationsInternal): Likewise.
1063         (getParameterAnnotationsInternal): Likewise.
1064         * java/lang/reflect/Constructor.java (addTypeParameters):
1065         Genericized.
1066         (getSignature): Now native.
1067         (getDeclaredAnnotations, getDeclaredAnnotationsInternal,
1068         getParameterAnnotations, getParameterAnnotationsInternal): New
1069         methods.
1070         * java/lang/reflect/Field.java (getDeclaringClass, getType):
1071         Genericized.
1072         (getSignature): Now native.
1073         (getDeclaredAnnotations, getDeclaredAnnotationsInternal): New
1074         methods.
1075         * java/lang/reflect/Method.java (getReturnType): Genericized.
1076         (getParameterTypes, getExceptionTypes, getTypeParameters):
1077         Likewise.
1078         (getSignature): Now native.
1079         (getDefaultValue, getDeclaredAnnotations,
1080         getParameterAnnotations, getDeclaredAnnotationsInternal,
1081         getParameterAnnotationsInternal): New methods.
1082         * java/lang/natClass.cc (read_u1): New functions.
1083         (read_u2): Likewise.
1084         (read_4): New function.
1085         (getReflectionSignature): New methods.
1086         (getClassSignature): New method.
1087         (getEnclosingMethodData): Likewise.
1088         (getEnclosingClass): Likewise.
1089         (getEnclosingMethod): Likewise.
1090         (getEnclosingConstructor): Likewise.
1091         (check_constant): New function.
1092         (parseAnnotationElement): Likewise.
1093         (parseAnnotation): Likewise.
1094         (parseAnnotations): Likewise.
1095         (parseParameterAnnotations): Likewise.
1096         (getMethodDefaultValue): New method.
1097         (getDeclaredAnnotations): New methods.
1098         (getDeclaredAnnotationsInternal): New method.
1099         * boehm.cc (_Jv_MarkObj): Mark 'reflection_data' field.
1100         * link.cc (resolve_method_entry): New method.
1101         (resolve_pool_entry): Use it.
1102
1103 2006-07-07  Andrew Haley  <aph@redhat.com>
1104
1105         * Makefile.am: Use -fsource-filename when compiling libgcj.
1106         * Makefile.in: Regenerate.
1107
1108 2006-06-23  Tom Tromey  <tromey@redhat.com>
1109
1110         Merged in classpath-generics.
1111         * sources.am, Makefile.in: Rebuilt.
1112         * Makefile.am (generic_header_files): Don't filter out omitted
1113         headers.
1114         (generic_header_files): Rewrote.
1115         (MYGCJH): New variable.
1116         Removed all .h rules.
1117         * headers.txt: New file.
1118         * java/io/PrintStream.java (PrintStream): Implement Appendable.
1119         * java/lang/Class.java: Genericized.
1120         (getEnumConstants): New method.
1121         (isEnum): Likewise.
1122         (isSynthetic): Likewise.
1123         (isAnnotation): Likewise.
1124         * java/lang/reflect/Constructor.java (getDeclaringClass,
1125         getTypeParameters, declaringClass): Genericized.
1126         * java/lang/reflect/Method.java (invoke): Now varargs.
1127         * java/lang/ref/Reference.java (Reference): Imported genericized
1128         version from Classpath.
1129         (get): Now native.
1130         * java/lang/ref/natReference.cc (get): New method.
1131         * java/lang/ProcessBuilder.java: New file.
1132         * java/lang/System.java (environmentMap): New field.
1133         (clearProperty): New method.
1134         (getenv): Likewise.
1135         (EnvironmentCollection): New class.
1136         (EnvironmentMap): Likewise.
1137         (EnvironmentSet): Likewise.
1138         * java/lang/StringBuilder.java (StringBuilder): Implements
1139         Appendable.
1140         * gnu/classpath/SystemProperties.java (remove): New method.
1141
1142 2006-06-23  Tom Tromey  <tromey@redhat.com>
1143
1144         * testsuite/libjava.loader/TestLeak.java: Don't use wildcard
1145         import for java.lang.reflect.
1146
1147 2006-06-21  Tom Tromey  <tromey@redhat.com>
1148
1149         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
1150         Set java.class.version to 49.
1151
1152 2006-06-21  Tom Tromey  <tromey@redhat.com>
1153
1154         * link.cc (resolve_pool_entry): Initialize field's declaring
1155         class, not its qualifying class.
1156
1157 2006-06-21  Tom Tromey  <tromey@redhat.com>
1158
1159         * testsuite/libjava.jacks/jacks.xfail: Updated for ecj.
1160
1161 2006-06-20  Tom Tromey  <tromey@redhat.com>
1162
1163         * testsuite/libjava.compile/Where.xfail: Now 'no-link'.
1164
1165 2006-06-19  Tom Tromey  <tromey@redhat.com>
1166
1167         * gnu/java/lang/natMainThread.cc (call_main): Link main class.
1168
1169 2006-06-19  Tom Tromey  <tromey@redhat.com>
1170
1171         * testsuite/lib/libjava.exp (test_libjava): Don't compile via
1172         bytecode.  Run BC compilations from source.
1173
1174 2006-06-19  Tom Tromey  <tromey@redhat.com>
1175
1176         * testsuite/libjava.lang/TestProxy.java: Don't use wildcard
1177         imports for java.lang.reflect.
1178
1179 2006-06-13  Tom Tromey  <tromey@redhat.com>
1180
1181         * testsuite/libjava.lang/stringconst.xfail: Removed.
1182         * testsuite/libjava.lang/ArrayStore2.xfail: Removed.
1183
1184 2006-06-08  Tom Tromey  <tromey@redhat.com>
1185
1186         * sources.am, Makefile.in: Rebuilt.
1187         * Makefile.am (libgcj_la_LIBADD): Add Object.lo and Class.lo.
1188         (java/lang/Object.lo): New target.
1189         (java/lang/Class.lo): Likewise.
1190         * scripts/makemake.tcl (emit_package_rule): Add special case for
1191         Object and Class.
1192
1193 2006-06-06  Tom Tromey  <tromey@redhat.com>
1194
1195         * Makefile.in: Rebuilt.
1196         * Makefile.am (gcj_dbtool_DEPENDENCIES): Add gcj_dbtool.lo.
1197
1198 2006-06-06  Tom Tromey  <tromey@redhat.com>
1199
1200         * Makefile.in: Rebuilt.
1201         * Makefile.am (nat_headers): Don't list Main.h.
1202         (generic_header_files): Likewise.
1203
1204 2006-06-05  Tom Tromey  <tromey@redhat.com>
1205
1206         * testsuite/libjava.loader/TestLeak.java (MyLoader): Now static.
1207         * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Use -w.
1208         * testsuite/lib/libjava.exp (libjava_arguments): Add -w.
1209         * testsuite/libjava.compile/G19990210_2.java: Removed.
1210         * testsuite/libjava.compile/PR208.java: Removed.
1211         * testsuite/libjava.compile/PR208.xfail: Removed.
1212         * testsuite/libjava.compile/support/Case.java: Removed.
1213         * testsuite/libjava.compile/Case.java: Removed.
1214
1215 2006-06-04  Tom Tromey  <tromey@redhat.com>
1216
1217         * sources.am, Makefile.in: Rebuilt.
1218         * Makefile.am (gcj_dbtool_LDADD): Add
1219         gnu-gcj-tools-gcj_dbtool.lo.
1220         (gcj_dbtool_SOURCES): Updated.
1221         (EXTRA_libgcj_la_SOURCES): New macro.
1222         * scripts/makemake.tcl (emit_package_rule): Compile class files
1223         from the package.
1224         (gcj_dbtool/Main.java, Class.java, Object.java): Removed
1225         package_map settings.
1226         (emit_package_rule): Special case gnu.gcj.tools.gcj_dbtool.
1227
1228 2006-06-04  Tom Tromey  <tromey@redhat.com>
1229
1230         * java/lang/Class.java (getClassLoaderInternal): Now native.
1231
1232 2006-12-20  Adam Megacz <megacz@cs.berkeley.edu>
1233
1234        * configure.ac: add $built_gcc_dir to $GCJH and $GCJ when
1235        crossbuilding.
1236         * configure: Regenerate.
1237
1238 2006-12-18  Adam Megacz <megacz@cs.berkeley.edu>
1239
1240         * Makefile.am: remove @X_CFLAGS@ from AM_CXXFLAGS; it causes
1241         -I/usr/include to wind up in cross-builds
1242         * configure: Regenerate.
1243
1244 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1245
1246         * configure: Regenerate.
1247
1248 2006-11-27  Mike Stump  <mrs@apple.com>
1249
1250         * sysdep/x86-64/locks.h: Enable use of either file on either
1251         target to support multilibs from one to the other.
1252         * sysdep/i386/locks.h: Likewise.
1253
1254 2006-11-21  Gary Benson  <gbenson@redhat.com>
1255
1256         * java/security/Security.java: Merge with classpath.
1257         * java/lang/Package.java: Likewise.
1258         * java/lang/Class.java (getDeclaredAnnotations): New method.
1259
1260 2006-11-20  David Daney  <ddaney@avtrex.com>
1261
1262         * include/mips-signal.h (sys/syscall.h): Do not include.
1263         (sig_ucontext_t): Removed.
1264         (MAKE_THROW_FRAME): Changed to be a nop.
1265         (_INIT_SIG_HANDLER): New macro.
1266         (INIT_SEGV): Rewrote to use _INIT_SIG_HANDLER.
1267         (INIT_FPE): Same.
1268
1269 2006-11-20  David Daney  <ddaney@avtrex.com>
1270
1271         * testsuite/libjava.lang/Throw_3.java: New Test.
1272         * testsuite/libjava.lang/Throw_3.out: Its expected output.
1273
1274 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1275
1276         * configure: Regenerated.
1277
1278 2006-11-03  Gary Benson  <gbenson@redhat.com>
1279
1280         * java/net/InetAddress.java: Removed.
1281         * java/net/natInetAddressNoNet.cc: Likewise.
1282         * java/net/natInetAddressPosix.cc: Likewise.
1283         * java/net/natInetAddressWin32.cc: Likewise.
1284         * java/net/VMInetAddress.java (getLocalHostname,
1285         lookupInaddrAny, getHostByAddr, getHostByName,
1286         aton): Replace glue methods with native ones.
1287         * java/net/natVMInetAddressNoNet.cc: New file.
1288         * java/net/natVMInetAddressPosix.cc: Likewise.
1289         * java/net/natVMInetAddressWin32.cc: Likewise.
1290         * Makefile.am, configure.ac: Reflect the above.
1291         * sources.am, Makefile.in, configure: Rebuilt.
1292
1293         * java/net/natVMNetworkInterfaceWin32.cc
1294         (winsock2GetRealNetworkInterfaces): Create InetAddress
1295         objects using InetAddress.getByAddress.
1296         * gnu/java/net/natPlainSocketImplWin32.cc
1297         (accept, getOption): Likewise.
1298         * gnu/java/net/natPlainDatagramSocketImplWin32.cc
1299         (peekData, receive, getOption): Likewise.
1300
1301 2006-11-02  Keith Seitz  <keiths@redhat.com>
1302
1303         * gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.
1304
1305 2006-11-02  Keith Seitz  <keiths@redhat.com>
1306
1307         * jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.
1308         (_Jv_JVMTI_Interface): Define GetLineNumberTable.
1309
1310 2006-11-01  Keith Seitz  <keiths@redhat.com>
1311
1312         * gnu/gcj/jvmti/Location.java: New file.
1313         * gnu/gcj/jvmti/BreakpointManager.java: New file.
1314         * jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
1315         (_Jv_JVMTI_ClearBreakpoint): New function.
1316         (_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
1317         * sources.am: Regenerated.
1318         * Makefile.in: Regenerated.
1319
1320 2006-10-28  Keith Seitz  <keiths@redhat.com>
1321
1322         * Makefile.am (nat_source_files): Add natBreakpoint.cc.
1323         * sources.am: Regenerated.
1324         * Makefile.in: Regenerated.
1325         * gnu/gcj/jvmti/Breakpoint.java: New file.
1326         * gnu/gcj/jvmti/natBreakpoint.java: New file.
1327
1328 2006-10-27  Keith Seitz  <keiths@redhat.com>
1329
1330         * include/java-stack.h (ncodeMap): Declare.
1331         (_Jv_StackTrace): Make _Jv_GetMethodDeclaringClass friend.
1332         * java/lang/Class.h (_Jv_GetMethodDeclaringClass): Declare.
1333         * java/lang/natClass.cc (_Jv_GetMethodDeclaringClass): New
1334         function.
1335         * stacktrace.cc (ncodeMap): Redefine from file global to global
1336         for class _Jv_StackTrace.
1337         (_Jv_StackTrace::UpdateNCodeMap): Add interpreted classes, too,
1338         so that _Jv_GetMethodDeclaringClass can find them all.
1339         (_Jv_StackTrace::ClassForFrame): Exclude interpreted classes.
1340         * jvmti.cc (_Jv_JVMTI_GetMethodDeclaringClass): New function.
1341         (_Jv_JVMTI_Interface): Define GetMethodDeclaringClass function.
1342
1343 2006-10-25  Andreas Tobler  <a.tobler@schweiz.org>
1344
1345         * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests): Replace
1346         formatting modifiers %p with %#llx and cast the arguments.
1347
1348 2006-10-20  Tom Tromey  <tromey@redhat.com>
1349
1350         * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests):
1351         Correctly pass jvalues.
1352
1353 2006-10-18  Tom Tromey  <tromey@redhat.com>
1354             Bryce McKinlay  <mckinlay@redhat.com>
1355
1356         * testsuite/libjava.jni/register2.java: New file.
1357         * testsuite/libjava.jni/register2.out: New file.
1358         * testsuite/libjava.jni/register2.c: New file.
1359         * java/lang/natClass.cc (_Jv_GetClassNameUtf8): New function.
1360         * java/lang/Class.h (_Jv_GetClassNameUtf8): Declare.
1361         * jni.cc (struct NativeMethodCacheEntry): New struct.
1362         (nathash): Changed type.
1363         (hash): Updated.
1364         (nathash_find_slot): Likewise.
1365         (nathash_find): Likewise.
1366         (natrehash): Likewise.
1367         (nathash_add): Likewise.
1368         (_Jv_JNI_RegisterNatives): Likewise.
1369         (_Jv_LookupJNIMethod): Likewise.
1370         Idea from Juerg Lehni <juerg@scratchdisk.com>
1371
1372 2006-10-16  Geoffrey Keating  <geoffk@apple.com>
1373
1374         * testsuite/libjava.jvmti/natevents.cc (env): Delete.
1375         (ExceptionCB): Fix types for printf arguments.
1376         (ExceptionCatchCB): Likewise.
1377         (SingleStepCB): Likewise.
1378         (BreakpointCB): Likewise.
1379         (FieldAccessCB): Likewise.
1380         (FieldModificationCB): Likewise.
1381         (CompiledMethodLoadCB): Likewise.
1382
1383 2006-10-14  Keith Seitz  <keiths@redhat.com>
1384
1385         * include/java-insns.h (enum java_code): Add op_breakpoint.
1386         * include/java-interp.h (_Jv_InterpMethod): Declare breakpoint_insn.
1387         [INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_slot.
1388         [!INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_opcode.
1389         (install_break): Declare.
1390         * interpret.cc (breakpoint_insn): Define breakpoint insn.
1391         (compile): Add op_breakpoint to "can't happen" cases.
1392         [INTERPRETER] Initialize breakpoint insn if necessary.
1393         (install_break): New method.
1394         * interpret-run.cc: Add op_breakpoint to insn_targets.
1395         Add insn_breakpoint label.
1396         * verify.cc (branch_prepass): Add op_breakpoint to unrecognized
1397         opcodes section of switch statement.
1398         (verify_instructions_0): Likewise.
1399
1400 2006-10-12  Keith Seitz  <keiths@redhat.com>
1401
1402         * include/jvmti-int.h (JVMTI): Declare all members "extern".
1403         * jvmti.cc (JVMTI): Define.
1404
1405 2006-10-11  Tom Tromey  <tromey@redhat.com>
1406
1407         * Makefile.in: Rebuilt.
1408         * Makefile.am (install-data-local): Use mkinstalldirs.
1409
1410 2006-10-10  Tom Tromey  <tromey@redhat.com>
1411
1412         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
1413         Removed obsolete comment.
1414
1415 2006-10-10  Keith Seitz  <keiths@redhat.com>
1416
1417         * include/java-interp.h (_Jv_InterpMethod::get_insn): Declare.
1418         (_Jv_InterpMethod::set_insn): Declare.
1419         * interpret.cc (_Jv_InterpMethod::get_insn): New method.
1420         (_Jv_InterpMethod::get_insn): New method.
1421
1422 2006-10-10  Tom Tromey  <tromey@redhat.com>
1423
1424         * prims.cc (_Jv_PrependVersionedLibdir): Use
1425         _Jv_platform_path_separator.
1426
1427 2006-10-10  Tom Tromey  <tromey@redhat.com>
1428
1429         PR libgcj/29205:
1430         * Makefile.in: Rebuilt.
1431         * Makefile.am (install-data-local): Install the .pc file.
1432         (pkgconfig_DATA): Removed.
1433
1434 2006-10-03  Gary Benson  <gbenson@redhat.com>
1435
1436         * java/net/InetAddress.java
1437         (<clinit>): Reorder the static initializers.
1438
1439 2006-10-02  Gary Benson  <gbenson@redhat.com>
1440
1441         * java/net/InetAddress.java
1442         (checkConnect): Reinstated.
1443         (loopbackAddress): Ensure initialized from non-null object.
1444
1445 2006-09-30  Keith Seitz  <keiths@redhat.com>
1446
1447         * include/java-interp.h (prepared): Change type to pc_t.
1448         (insn_index): Define for both DIRECT_THREADED and bytecode interpreters.
1449         * interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo.
1450         (insn_index): Implement for bytecode interpreter.
1451         * interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class
1452         qualifier to resolve_pool_entry.
1453         [!DIRECT_THREADED] (AVAL2U): Likewise.
1454         [!DIRECT_THREADED] bytecode() cannot be called without an object.
1455         Changed all typos.
1456         [!DIRECT_THREADED] Likewise for defining_class.
1457
1458 2006-09-26  Jack Howarth  <howarth@bromo.med.uc.edu>
1459
1460         PR target/26792:
1461         * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP
1462         if HAVE_GETIPINFO not defined.
1463         * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise.
1464         (_Jv_StackTrace::getLineNumberForFrame): Likewise.
1465         * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO.
1466         * aclocal.m4, configure, include/config.h.in, Makefile.in:
1467         Rebuilt.
1468
1469 2006-09-27  Tom Tromey  <tromey@redhat.com>
1470
1471         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201712
1472         * java/util/Locale.java (hashcode): No longer transient.
1473         (writeObject): Use ObjectOutputStream.PutField and
1474         defaultWriteObject.
1475         (readObject): Use defaultReadObject.
1476
1477 2006-09-25  Keith Seitz  <keiths@redhat.com>
1478
1479         * gnu/classpath/jdwp/VMVirtualMachine.java
1480         (_jdwp_suspend_counts): New private variable.
1481         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1482         (initialize): Initialize _jdwp_suspend_counts.
1483         (suspendThread): Implement.
1484         (resumeThread): Implement.
1485         (getSuspendCount): Implement.
1486
1487 2006-09-22  Marco Trudel  <mtrudel@gmx.ch>
1488
1489         * jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.  Marked JNICALL.
1490
1491 2006-09-21  Keith Seitz  <keiths@redhat.com>
1492
1493         * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled
1494         events.
1495         (check_enabled_event): New function.
1496         (check_enabled_events): New function.
1497         (post_event): New function.
1498         (_Jv_JVMTI_SetEventNotificationMode): New function.
1499         (_Jv_JVMTI_SetEventCallbacks): New function.
1500         (_Jv_JVMTI_Interface): Define SetEventNotificationMode and
1501         SetEventCallbacks members.
1502         * include/jvmti-int.h: New file.
1503         * include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define.
1504         (_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define.
1505         * testsuite/libjava.jvmti/events.java: New file.
1506         * testsuite/libjava.jvmti/events.out: New file.
1507         * testsuite/libjava.jvmti/natevents.cc: New file. 
1508
1509 2006-09-21  Sandro Tolaini  <tolaini@libero.it>
1510
1511         * configure.ac: Don't use darwin-signal.h as signal handler for
1512         Darwin/i386.
1513         * configure.host: Enable Darwin/i386 as a supported host, with no
1514         signal unwinding.
1515
1516 2006-09-20  Keith Seitz  <keiths@redhat.com>
1517
1518         * jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked
1519         and return JVMTI_ERROR_OUT_OF_MEMORY if necessary.
1520         (_Jv_JVMTI_GetClassMethods): Likewise.
1521         (_Jv_JVMTI_GetClassLoaderClasses): Likewise.
1522         (_Jv_JVMTI_GetJNIFunctionTable): Likewise.
1523         (_Jv_JVMTI_GetSystemProperty): Likewise.
1524
1525 2006-09-20  Keith Seitz  <keiths@redhat.com>
1526
1527         * jvmti.cc (_Jv_JVMTI_GetErrorName): New function.
1528         (_Jv_JVMTI_Interface): Define GetErrorName member.
1529         * testsuite/libjava.jvmti/geterrorname.java: New file.
1530         * testsuite/libjava.jvmti/geterrorname.out: New file.
1531         * testsuite/libjava.jvmti/natgeterrorname.cc: New file.
1532
1533 2006-09-20  Gary Benson  <gbenson@redhat.com>
1534
1535         * java/net/InetAddress.java: Mostly merged with Classpath.
1536         * java/net/VMInetAddress.java: New file.
1537         * sources.am, Makefile.in: Rebuilt.
1538
1539         * java/net/natVMNetworkInterfacePosix.cc
1540         (getInterfaces): Create InetAddress objects using
1541         InetAddress.getByAddress.
1542         * gnu/java/net/natPlainSocketImplPosix.cc
1543         (accept, getOption): Likewise.
1544         * gnu/java/net/natPlainDatagramSocketImplPosix.cc
1545         (peekData, receive, getLocalAddress): Likewise.
1546
1547 2006-09-19  Keith Seitz  <keiths@redhat.com>
1548
1549         * testsuite/libjava.jvmti/jvmti.exp: New file.
1550
1551 2006-09-19  Keith Seitz  <keiths@redhat.com>
1552
1553         * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.
1554         (THREAD_CHECK_VALID): Likewise.
1555         (THREAD_CHECK_ALIVE): Likewise.
1556         (_Jv_JVMTI_SuspendThread): Call THREAD_CHECK_VALID on a Thread not
1557         jthread.
1558         (_Jv_JVMTI_ResumeThread): Likewise.
1559         (_Jv_JVMTI_InterruptThread): Likewise.
1560
1561         (_Jv_JVMTI_DisposeEnvironment): Probably unwise to dereference an object
1562         that was just freed.
1563
1564 2006-09-19  Mark Wielaard  <mark@klomp.org>
1565
1566         Fixes bug #29137
1567         * java/util/logging/LogManager.java (addLogger): Always check for
1568         existing children of a new Logger.
1569
1570 2006-09-19  Tom Tromey  <tromey@redhat.com>
1571
1572         * java/util/logging/LogManager.java: Re-merged with Classpath.
1573
1574 2006-09-18  Tom Tromey  <tromey@redhat.com>
1575
1576         * configure: Rebuilt.
1577
1578 2006-09-18  Petr Salinger  <Petr.Salinger@seznam.cz>
1579
1580         * configure.host: Handle kfreebsd.
1581
1582 2006-09-18  Petr Salinger  <Petr.Salinger@seznam.cz>
1583
1584         * configure: Rebuilt.
1585         * shlibpath.m4: Handle GNU/kFreeBSD.
1586
1587 2006-09-14  Tom Tromey  <tromey@redhat.com>
1588
1589         PR boehm-gc/29068:
1590         * boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
1591         (_Jv_GCDetachThread): Likewise.
1592
1593 2006-09-14  Andreas Schwab  <schwab@suse.de>
1594
1595         * posix-threads.cc: Include "posix.h".
1596
1597 2006-09-13  Geoffrey Keating  <geoffk@apple.com>
1598
1599         * posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
1600         microseconds; use gettimeofday when available.
1601         * posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
1602         timeout calculation.
1603         * testsuite/libjava.lang/Thread_Sleep_2.java: New.
1604         * testsuite/libjava.lang/Thread_Sleep_2.out: New.
1605         * testsuite/libjava.lang/Thread_Sleep_2.xfail: New.
1606
1607 2006-09-12  Tom Tromey  <tromey@redhat.com>
1608
1609         PR java/29013:
1610         * testsuite/libjava.lang/PR29013.out: Likewise.
1611         * testsuite/libjava.lang/PR29013.java: New file.
1612
1613 2006-09-12  Tom Tromey  <tromey@redhat.com>
1614
1615         * testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.
1616
1617 2006-09-07  Matthias Klose  <doko@debian.org>
1618
1619         * Makefile.am (AM_CXXFLAGS): Remove duplicate define.
1620         * Makefile.in: Regenerate.
1621
1622 2006-09-06  Keith Seitz  <keiths@redhat.com>
1623
1624         * java/lang/Class.h (_Jv_FindInterpreterMethod): Change return type
1625         to _Jv_MethodBase instead of _Jv_InterpMethod.
1626         * java/lang/natClass.cc (_Jv_FindInterpreterMethod): Likewise.
1627         Do not check access flags.
1628         Fix some minor style anomalies.
1629         
1630 2006-09-01  Geoffrey Keating  <geoffk@apple.com>
1631
1632         * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
1633         Pass -lgcj to linker for C++ files on Darwin.
1634
1635 2006-09-01  Keith Seitz  <keiths@redhat.com>
1636
1637         * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.
1638         (THREAD_CHECK_VALID): Likewise.
1639         (THREAD_CHECK_IS_ALIVE): Likewise.
1640         (NULL_CHECK): Likewise.
1641         (ILLEGAL_ARGUMENT): Likewise.
1642
1643 2006-09-01  Keith Seitz  <keiths@redhat.com>
1644
1645         * include/jvm.h (_Jv_JVMTI_Init): Declare.
1646         * jvmti.cc (_Jv_JVMTI_Init): New function.
1647         * prims.cc (_Jv_CreateJavaVM): Initialize JVMTI.
1648
1649         * jvmti.cc (ILLEGAL_ARGUMENT): New macro.
1650         (_Jv_JVMTI_Allocate): Use ILLEGAL_ARUMENT.
1651
1652         * jvmti.cc (_jvmtiEnvironments): New linked list of
1653         JVMTI environments.
1654         (FOREACH_ENVIRONMENT): New macro.
1655         (_envListLock): New object to act as synchronization lock
1656         for _jvmtiEnvironments.
1657         (_Jv_JVMTI_DisposeEnvironment): Check for NULL environment.
1658         Remove the environment from the list of known environments.
1659         (_Jv_GetJVMTIEnv): Add the new environment to the list
1660         of known environments.
1661
1662 2006-09-01  Gary Benson  <gbenson@redhat.com>
1663
1664         * java/net/InetAddress.java (getLocalHost): Refactor to avoid
1665         security check if getLocalHostname() fails and to provide more
1666         meaningful exceptions it the security check fails.
1667
1668 2006-09-01  Gary Benson  <gbenson@redhat.com>
1669
1670         * java/net/InetAddress.java (getByAddress): Create Inet4Address
1671         objects when passed IPv4-mapped IPv6 addresses.
1672         (getByName, getAllByName): Defer to the above to ensure that the
1673         correct Inet*Address objects are returned.
1674
1675 2006-09-01  Gary Benson  <gbenson@redhat.com>
1676
1677         * java/net/InetAddress.java (getByName, getAllByName):
1678         Only perform security check when DNS lookups are required.
1679
1680 2006-08-31  Keith Seitz  <keiths@redhat.com>
1681
1682         * include/jvmti_md.h: New file.
1683
1684         * jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
1685         Pass millis to _Jv_CondWait.
1686
1687 2006-08-31  Tom Tromey  <tromey@redhat.com>
1688
1689         PR libgcj/28698:
1690         * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro.  Declare primitive
1691         classes.
1692
1693 2006-08-24  Keith Seitz  <keiths@redhat.com>
1694
1695         * prims.cc (remoteDebug): New global.
1696         (jdwpOptions): New global.
1697         (parse_x_arg): Add processing for "X" options "debug" and
1698         "runjdwp:"
1699         (_Jv_RunMain): If debugging, start up JDWP backend.
1700         Send VM_INIT and VM_DEATH when appropriate.
1701
1702 2006-08-23  Keith Seitz  <keiths@redhat.com>
1703
1704         * gnu/classpath/jdwp/VMVirtualMachine.java
1705         (initialize): Declare.
1706         * gnu/classpath/jdwp/natVMVirtualMachine.cc
1707         (initialize): Get and save JVMTI environment.
1708
1709 2006-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
1710
1711         PR libgcj/27890
1712         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
1713         Set gnu.classpath.home.url to TOOLEXECLIBDIR.
1714         * configure.ac: Do not add --with-native-libdir to
1715         ac_configure_args.
1716         * java/security/libgcj.security: Remove file.
1717         * java/util/logging/logging.properties: Likewise.
1718         * classpath/m4/acinclude.m4 (CLASSPATH_TOOLEXECLIBDIR): New macro.
1719         * classpath/resource/Makefile.am (loggingdir): Define to
1720         toolexeclibdir.
1721         (securitydir): Likewise.
1722         * classpath/configure.ac: Call CLASSPATH_TOOLEXECLIBDIR.
1723         Set default nativeexeclibdir using toolexeclibdir.
1724         * HACKING: Fix classpath aclocal arguments.
1725         * Makefile.am (secdir): Remove variable.
1726         (propdir): Likewise.
1727         (AM_CXXFLAGS): Replace LIBDIR definition with TOOLEXECLIBDIR
1728         definition.
1729         (all_property_files): Remove variable.
1730         (install-data-local): Do not install libgcj.security or
1731         logging.properties.
1732         * configure, Makefile.in, classpath/configure,
1733         classpath/Makefile.in, classpath/native/jni/java-lang/Makefile.in,
1734         classpath/native/jni/midi-alsa/Makefile.in,
1735         classpath/native/jni/classpath/Makefile.in,
1736         classpath/native/jni/midi-dssi/Makefile.in,
1737         classpath/native/jni/Makefile.in,
1738         classpath/native/jni/java-nio/Makefile.in,
1739         classpath/native/jni/java-net/Makefile.in,
1740         classpath/native/jni/gconf-peer/Makefile.in,
1741         classpath/native/jni/java-io/Makefile.in,
1742         classpath/native/jni/xmlj/Makefile.in,
1743         classpath/native/jni/java-util/Makefile.in,
1744         classpath/native/jni/qt-peer/Makefile.in,
1745         classpath/native/jni/gtk-peer/Makefile.in,
1746         classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
1747         classpath/native/target/Linux/Makefile.in,
1748         classpath/native/target/Makefile.in,
1749         classpath/native/target/generic/Makefile.in,
1750         classpath/native/fdlibm/Makefile.in,
1751         classpath/native/plugin/Makefile.in,
1752         classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
1753         classpath/tools/Makefile.in, classpath/doc/Makefile.in,
1754         classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
1755         classpath/external/Makefile.in,
1756         classpath/external/sax/Makefile.in,
1757         classpath/external/w3c_dom/Makefile.in,
1758         classpath/external/relaxngDatatype/Makefile.in,
1759         classpath/include/Makefile.in, classpath/aclocal.m4,
1760         classpath/examples/Makefile.in, aclocal.m4: Regenerate.
1761
1762 2006-08-21  Bryce McKinlay  <mckinlay@redhat.com>
1763
1764         * java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
1765         to GC.
1766         (_Jv_DetachCurrentThread): Detach thread from GC.
1767         * include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
1768         Declare.
1769         * boehm.cc (_Jv_GCAttachThread): New function.
1770         (_Jv_GCDetachThread): Likewise.
1771
1772 2006-08-19  Ranjit Mathew  <rmathew@gcc.gnu.org>
1773
1774         * sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC"
1775         as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp"
1776         function prologue.
1777
1778 2006-08-17  H.J. Lu  <hongjiu.lu@intel.com>
1779
1780         * Makefile.am (install-exec-hook): Support $(DESTDIR).
1781         * Makefile.in: Regenerated.
1782
1783 2006-08-16  Tom Tromey  <tromey@redhat.com>
1784
1785         * libtool-version: Updated.
1786
1787 2006-08-16  Jakub Jelinek  <jakub@redhat.com>
1788             Bryce McKinlay  <bryce@mckinlay.net.nz>
1789
1790         * configure, Makefile.in: Rebuilt.
1791         * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
1792         (libgcj_bc_la_SOURCES): New variable.
1793         (libgcj_bc_la_LDFLAGS): Likewise.
1794         (libgcj_bc_la_LIBADD): Likewise.
1795         (libgcj_bc_la_DEPENDENCIES): Likewise.
1796         (libgcj_bc_la_LINK): Likewise.
1797         (libgcj_bc_dummy_LINK): Likewise.
1798         (libgcj_bc.la): New target.
1799         (install-exec-hook): Likewise.
1800         * libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
1801         * libgcj_bc.c: New file.
1802         * configure.ac (LIBGCJ_SPEC): New subst.
1803         * configure.host (use_libgcj_bc): New variable.
1804
1805 2006-08-15  Kyle Galloway  <kgallowa@redhat.com>
1806
1807         * include/java-interp.h (_Jv_InterpMethod::run_debug): New method.
1808         * interpret.cc: Added placeholder for debug variable type info to STORE*
1809         macros.
1810         (_Jv_InterpMethod::run_debug): New method.
1811         (_Jv_InterpMethod::run_sync_object_debug): New method.
1812         (_Jv_InterpMethod::run_sync_class_debug): New method.
1813         (_Jv_InterpMethod::run_normal_debug): New method.
1814         (_Jv_InterpMethod::run_class_debug): New method.
1815         (_Jv_InterpMethod::ncode ()): Changed to select either debug or normal
1816         versions of these functions.
1817         * interpret-run.cc: New file, holds contents of old     
1818         _Jv_InterpMethod::run method.
1819         * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Changed to select
1820         appropriate function for debug or normal mode.
1821
1822 2006-08-14  Mark Wielaard  <mark@klomp.org>
1823
1824         Imported GNU Classpath 0.92
1825         * HACKING: Add more importing hints. Update automake version
1826         requirement.
1827
1828         * configure.ac (gconf-peer): New enable AC argument.
1829         Add --disable-gconf-peer and --enable-default-preferences-peer
1830         to classpath configure when gconf is disabled.
1831         * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
1832         gnu/java/awt/dnd/peer/gtk to bc. Classify
1833         gnu/java/security/Configuration.java as generated source file.
1834
1835         * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
1836         gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
1837         gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
1838         gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
1839         gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
1840         gnu/java/lang/management/VMThreadMXBeanImpl.java,
1841         gnu/java/lang/management/VMMemoryMXBeanImpl.java,
1842         gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
1843         classes.
1844         * java/lang/management/VMManagementFactory.java: Likewise.
1845         * java/net/VMURLConnection.java: Likewise.
1846         * gnu/java/nio/VMChannel.java: Likewise.
1847
1848         * java/lang/Thread.java (getState): Add stub implementation.
1849         * java/lang/Class.java (isEnum): Likewise.
1850         * java/lang/Class.h (isEnum): Likewise.
1851
1852         * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.
1853
1854         * javax/naming/spi/NamingManager.java: New override for StackWalker
1855         functionality.
1856
1857         * configure, sources.am, Makefile.in, gcj/Makefile.in,
1858         include/Makefile.in, testsuite/Makefile.in: Regenerated.
1859
1860 2006-08-14  Gary Benson  <gbenson@redhat.com>
1861
1862         * java/lang/Thread.java (accessControlState): New field.
1863         * java/security/VMAccessControlState.java: New file.
1864         * java/security/natVMAccessControlState.cc: Likewise.
1865         * java/security/VMAccessController.java
1866         (contexts, inGetContext): Removed.
1867         (pushContext, popContext, getContext): Use VMAccessControlState.
1868         * Makefile.am (nat_source_files): Updated.
1869         * sources.am, Makefile.in: Rebuilt.
1870
1871 2006-08-10  Gary Benson  <gbenson@redhat.com>
1872
1873         * include/java-stack.h (GetAccessControlStack): Change return
1874         type.
1875         * stacktrace.cc (accesscontrol_trace_fn): Record the number of
1876         Java frames encountered.
1877         (GetAccessControlStack): Return a flag indicating whether a call to
1878         doPrivileged was encountered rather than an array of method names.
1879         * java/security/natVMAccessController.cc (getStack): Change return
1880         type.
1881         * java/security/VMAccessController.java (getStack): Likewise.
1882         (getContext): Change to reflect the above.
1883
1884 2006-08-09  Gary Benson  <gbenson@redhat.com>
1885
1886         * stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames.
1887
1888 2006-08-09  Gary Benson  <gbenson@redhat.com>
1889
1890         * java/lang/System.java (setSecurityManager): Javadoc fix.
1891         * java/security/VMAccessController.java (getContext): Comment fix.
1892
1893 2006-08-09  Gary Benson  <gbenson@redhat.com>
1894
1895         * include/java-stack.h (accesscontrol_trace_fn): Declare.
1896         (GetAccessControlStack): Likewise.
1897         (GetClassMethodStack): Remove.
1898         * stacktrace.cc (accesscontrol_trace_fn): New method.
1899         (GetAccessControlStack): Likewise.
1900         (GetClassMethodStack): Remove.
1901         * java/security/natVMAccessController.cc (getStack): Use
1902         GetAccessControlStack.
1903
1904 2006-08-07  Gary Benson  <gbenson@redhat.com>
1905
1906         PR libgcj/28340:
1907         * java/lang/ClassLoader.java (clinit): Install a default
1908         security manager if java.security.manager is defined.
1909         (getParent, getSystemClassLoader): Use the correct stack
1910         frame during security checks.
1911         * java/net/URLClassLoader.java (findClass): Avoid calling
1912         this.toString() during VM initialization.
1913         (runtimeInitialized): New method.
1914         * java/net/natURLClassLoader.cc: New file.
1915         * Makefile.am (nat_source_files): Added the above.
1916         * Makefile.in: Rebuilt.
1917
1918 2006-08-07  Gary Benson  <gbenson@redhat.com>
1919             Casey Marshall <csm@gnu.org>
1920
1921         * java/lang/SecurityManager.java (getSecurityContext,
1922         checkPermission, checkAccess, checkRead, checkConnect,
1923         checkPackageAccess, checkPackageDefinition, checkPackageList):
1924         Merge with Classpath.
1925         (SecurityContext): Remove.
1926
1927 2006-08-07  Gary Benson  <gbenson@redhat.com>
1928
1929         * java/security/VMAccessController.java (pushContext, popContext,
1930         getContext): Use Thread.currentThread() to determine when we're
1931         bootstrapping.
1932         (runtimeInitialized): Remove.
1933         * java/security/natVMAccessController.cc (runtimeInitialized):
1934         Remove.
1935
1936 2006-08-06  Tom Tromey  <tromey@redhat.com>
1937
1938         PR libgcj/28491:
1939         * configure, include/config.h.in: Rebuilt.
1940         * configure.ac: Look for ifaddrs.h, getifaddrs.
1941         * java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Use
1942         getifaddrs if available.
1943
1944 2006-08-06  Tom Tromey  <tromey@redhat.com>
1945
1946         PR libgcj/28576:
1947         * gnu/java/net/natPlainDatagramSocketImplPosix.cc (connect):
1948         Implemented.
1949         (disconnect): Likewise.
1950         (send): Handle already-connected case.
1951
1952 2006-08-04  Mark Wielaard  <mark@klomp.org>
1953
1954         * jvmti.cc: Include gcj/method.h.
1955
1956 2006-08-04  Tom Tromey  <tromey@redhat.com>
1957
1958         * jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.
1959         (_Jv_JVMTI_GetObjectSize): Cast _Jv_GetArrayElementFromElementType
1960         result to _Jv_uintptr_t.
1961
1962 2006-08-01  Keith Seitz  <keiths@redhat.com>
1963
1964         * gnu/classpath/jdwp/VMFrame.java: Update to Classpath 0.91.
1965         * gnu/classpath/jdwp/VMIdManager.java: Likewise.
1966         * gnu/classpath/jdwp/VMMethod.java: Likewise.
1967         * gnu/classpath/jdwp/VMVirtualMachine: Likewise.
1968         * gnu/classpath/jdwp/natVMFrame.java: New file.
1969         * gnu/classpath/jdwp/natVMMethod.java: New file.
1970         * gnu/classpath/jdwp/natVMVirtualMachine.java: New file.
1971         * Makefile.am (nat_source_files): Add new filles.
1972         * Makefile.in: Regenerated.
1973
1974 2006-08-03  Tom Tromey  <tromey@redhat.com>
1975
1976         * jvmti.cc (REQUIRE_PHASE): New macro.
1977         (_Jv_JVMTI_InterruptThread): New function.
1978         (_Jv_JVMTI_CreateRawMonitor): Likewise.
1979         (_Jv_JVMTI_DestroyRawMonitor): Likewise.
1980         (_Jv_JVMTI_RawMonitorEnter): Likewise.
1981         (_Jv_JVMTI_RawMonitorExit): Likewise.
1982         (_Jv_JVMTI_RawMonitorWait): Likewise.
1983         (_Jv_JVMTI_RawMonitorNotify): Likewise.
1984         (_Jv_JVMTI_RawMonitorNotifyAll): Likewise.
1985         (_Jv_JVMTI_Allocate): Likewise.
1986         (_Jv_JVMTI_Deallocate): Likewise.
1987         (_Jv_JVMTI_GetClassModifiers): Likewise.
1988         (_Jv_JVMTI_GetClassMethods): Likewise.
1989         (_Jv_JVMTI_IsInterface): Likewise.
1990         (_Jv_JVMTI_IsArrayClass): Likewise.
1991         (_Jv_JVMTI_GetClassLoader): Likewise.
1992         (_Jv_JVMTI_GetObjectHashCode): Likewise.
1993         (_Jv_JVMTI_GetFieldModifiers): Likewise.
1994         (_Jv_JVMTI_IsFieldSynthetic): Likewise.
1995         (_Jv_JVMTI_GetMethodModifiers): Likewise.
1996         (_Jv_JVMTI_IsMethodNative): Likewise.
1997         (_Jv_JVMTI_IsMethodSynthetic): Likewise.
1998         (_Jv_JVMTI_GetClassLoaderClasses): Likewise.
1999         (_Jv_JVMTI_ForceGarbageCollection): Likewise.
2000         (_Jv_JVMTI_GetSystemProperty): Likewise.
2001         (_Jv_JVMTI_SetSystemProperty): Likewise.
2002         (_Jv_JVMTI_GetTime): Likewise.
2003         (_Jv_JVMTI_GetAvailableProcessors): Likewise.
2004         (_Jv_JVMTI_AddToBootstrapClassLoaderSearch): Likewise.
2005         (_Jv_JVMTI_SetVerboseFlag): Likewise.
2006         (_Jv_JVMTI_GetObjectSize): Likewise.
2007         (_Jv_JVMTI_SetJNIFunctionTable): Likewise.
2008         (_Jv_JVMTI_GetJNIFunctionTable): Likewise.
2009         (_Jv_JVMTI_Interface): Updated.
2010         (NULL_CHECK): New macro.
2011
2012 2006-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
2013
2014         PR libgcj/28546
2015         * include/no-threads.h: Declare _Jv_Thread_t as empty class.
2016
2017 2006-08-01  Andreas Tobler  <a.tobler@schweiz.ch>
2018
2019         * gnu/classpath/natSystemProperties.cc: Add additional check for
2020         getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
2021         (SystemProperties::insertSystemProperties): Likewise.
2022         * java/io/natFilePosix.cc (File::performList): Add
2023         additional check for readdir_r on _POSIX_PTHREAD_SEMANTICS.
2024         * java/util/natVMTimeZone.cc (VMTimeZone::getSystemTimeZoneId): Add
2025         additional check for localtime_r on _POSIX_PTHREAD_SEMANTICS.
2026
2027 2006-07-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
2028
2029         PR libgcj/28312
2030         * classpath/native/jni/midi-alsa/Makefile.am
2031         (libgjsmalsa_la_LDFLAGS): Add -avoid-version.
2032         * classpath/native/jni/midi-alsa/Makefile.in: Regenerate.
2033         * classpath/native/jni/midi-dssi/Makefile.am
2034         (libgjsmdssi_la_LDFLAGS): Add -avoid-version.
2035         * classpath/native/jni/midi-dssi/Makefile.in: Regenerate.
2036         * classpath/native/jni/qt-peer/Makefile.am: Remove GCJ LOCAL
2037         sections.
2038         (libqtpeer_la_LDFLAGS): Add -avoid-version.
2039         * classpath/native/jni/qt-peer/Makefile.in: Regenerate.
2040         * classpath/native/jni/gtk-peer/Makefile.am
2041         (libgtkpeer_la_LDFLAGS): Add -avoid-version.
2042         * classpath/native/jni/gtk-peer/Makefile.in: Regenerate.
2043         * classpath/native/jawt/Makefile.am (libjawt_la_LDFLAGS): Add
2044         -avoid-version.
2045         * classpath/native/jawt/Makefile.in: Regenerate.
2046         * Makefile.am (libjvm_la_LDFLAGS): Add -avoid-version.
2047         * Makefile.in: Regenerate.
2048
2049 2006-07-28  Andrew Haley  <aph@redhat.com>
2050
2051         * gnu/gcj/runtime/natSharedLibLoader.cc (init): Don't set
2052         curLoader to VMClassLoader::bootLoader.
2053
2054 2006-07-28  Gary Benson  <gbenson@redhat.com>
2055             Casey Marshall <csm@gnu.org>
2056
2057         PR libgcj/13604:
2058         * include/java-stack.h (GetClassMethodStack): Declare.
2059         * stacktrace.cc (GetClassMethodStack): New method.
2060         * java/security/AccessController.java: Removed.
2061         * java/security/VMAccessController.java: New file.
2062         * java/security/natVMAccessController.cc: Likewise.
2063         * Makefile.am (nat_source_files): Added the above.
2064         * sources.am, Makefile.in: Rebuilt.
2065
2066 2006-07-28  Gary Benson  <gbenson@redhat.com>
2067
2068         * java/lang/SecurityManager.java (currentClassLoader,
2069         currentLoadedClass, classLoaderDepth, checkAccess, checkRead,
2070         checkWrite, checkTopLevelWindow, checkPrintJobAccess,
2071         checkSystemClipboardAccess, checkAwtEventQueueAccess,
2072         checkPackageList): Remerged javadoc.
2073
2074 2006-07-28  Gary Benson  <gbenson@redhat.com>
2075
2076         * prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized
2077         from the start to the end of the function.  Remove references
2078         to VMThrowable.trace_enabled.
2079         * java/lang/natVMThrowable.cc (fillInStackTrace): Use
2080         runtimeInitialized rather than trace_enabled to decide
2081         whether to inhibit stack trace generation.
2082         * java/lang/VMThrowable.java (trace_enabled): Removed.
2083
2084 2006-07-23  Mohan Embar  <gnustuff@thisiscool.com>
2085
2086         * include/win32-threads.h (_Jv_Thread_t): Explicitly
2087         name the struct.
2088
2089 2006-07-23  Mohan Embar  <gnustuff@thisiscool.com>
2090
2091         * jvmti.cc (_Jv_JVMTI_SuspendThread): Add missing JNICALL
2092         attribute.
2093         (_Jv_JVMTI_ResumeThread): Likewise.
2094         (_Jv_JVMTI_DisposeEnvironment): Likewise.
2095
2096 2006-07-21  Mohan Embar  <gnustuff@thisiscool.com>
2097
2098         * gnu/java/net/natPlainSocketImplPosix.cc (bind): Clear
2099         SockAddr before using - needed for OS X/PPC.
2100
2101 2006-07-21  Keith Seitz  <keiths@redhat.com>
2102
2103         * boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration,
2104         just the contents.
2105         (_Jv_ResumeThread): Likewise.
2106         * posix-threads.cc: Revert 2006-06-19 _Jv_ThreadDebugSuspend,
2107         _Jv_ThreadDebugResume, _Jv_ThreadDebugSuspendCount patch. Moving
2108         to JVMTI instead.
2109         * include/posix-threads.h: Likewise.
2110         * win32-threads.cc: Likewise.
2111         * include/win32-threads.h: Likewise.
2112         * jvmti.cc (_Jv_JVMTI_SuspentThread): New function.
2113         (_Jv_JVMTI_ResumeThread): New function.
2114         (_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread.
2115
2116 2006-07-21  David Daney  <ddaney@avtrex.com>
2117
2118         PR libgcj/28426
2119         * configure: Regenerated.
2120
2121 2006-07-21  Mark Wielaard  <mark@klomp.org>
2122
2123         * java/io/OutputStreamWriter.java (flush): Create work if null.
2124
2125 2006-07-21  Keith Seitz  <keiths@redhat.com>
2126
2127         * java/lang/natThread.cc (_Jv_ThreadGetData): New function.
2128         * Makefile.am (java/lang/Thread.h): Add friend function 
2129         _Jv_ThreadGetData.
2130         * Makefile.in: Regenerate.
2131
2132 2006-07-20  Keith Seitz  <keiths@redhat.com>
2133
2134         * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
2135         (_Jv_JVMTI_Interface): Define DisposeEnvironment method.
2136
2137 2006-07-20  Keith Seitz  <keiths@redhat.com>
2138
2139         * include/jvm.h (_Jv_GetJVMTIEnv): Declare.
2140         * jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests.
2141         * jvmti.cc: New file.
2142         * Makefile.am (libgcj_la_SOURCES): Add jvmti.cc.
2143         * Makefile.in: Regenerate. 
2144
2145 2006-07-20  David Daney  <ddaney@avtrex.com>
2146
2147         * configure.host: Enable the interpreter for mipsel-* and mips-*.
2148
2149 2006-07-20  David Daney  <ddaney@avtrex.com>
2150
2151         * include/mips-signal.h: Update copyright.
2152         (struct kernel_sigaction): Removed.
2153         (SIGNAL_HANDLER): Changed prototype.
2154         (MAKE_THROW_FRAME): Added cast.
2155         (INIT_SEGV): Use sigaction instead of syscall.
2156         (INIT_FPE): Likewise.
2157
2158 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
2159
2160         * configure: Regenerate.
2161
2162 2006-07-18  Gary Benson  <gbenson@redhat.com>
2163
2164         * java/io/File.java (deleteOnExit): Fix security check.
2165
2166 2006-07-14  Anthony Green  <green@redhat.com>
2167
2168         * java/io/natFilePosix.cc (performSetLastModified): Return true on
2169         success, false otherwise.
2170
2171 2006-07-14  Ranjit Mathew  <rmathew@gcc.gnu.org>
2172
2173         * stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use
2174         _Unwind_Backtrace().
2175         (_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ
2176         EH.
2177         (_Jv_StackTrace::GetClassContext): Unconditionally use
2178         _Unwind_Backtrace().
2179         (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
2180         * sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define.
2181         (_Unwind_GetIPInfo): Define macro if SJLJ EH is in use.
2182         (_Unwind_GetRegionStart): Likewise.
2183         (_Unwind_Backtrace): Likewise.
2184         (fallback_backtrace): Accept additional unwind trace function
2185         argument.  Call it during unwinding.  Stop when any of _Jv_RunMain(),
2186         _Jv_ThreadStart() or main() is seen during unwinding.
2187         * sysdep/generic/backtrace.h (fallback_backtrace): Accept an
2188         additional unwind trace function argument.
2189
2190 2006-07-14  Gary Benson  <gbenson@redhat.com>
2191
2192         * java/io/File.java (internalExists): New method.
2193         (exists): Use internalExists.
2194         (internalIsDirectory): New method.
2195         (isDirectory): Use internalIsDirectory.
2196         (createTempFile): Use internalExists and internalIsDirectory.
2197
2198 2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>
2199
2200         * interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.
2201
2202 2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>
2203
2204         * interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
2205         (_Jv_InterpMethod::run): SAVE_PC before executing any instruction 
2206         using resolve_pool_entry, as it can throw. Likewise for div/rem ops
2207         that can throw ArithmeticException.
2208
2209 2006-07-12  Gary Benson  <gbenson@redhat.com>
2210
2211         * java/io/File.java (renameTo): Fix security checks.
2212
2213 2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>
2214
2215         PR libgcj/28352
2216         * stacktrace.cc (getLineNumberForFrame): Roll back PC by 1 when
2217         looking up line number for interpreted frame.
2218
2219 2006-07-07  Bryce McKinlay  <mckinlay@redhat.com>
2220             Geoffrey Keating <geoffk@apple.com>
2221
2222         * testsuite/libjava.lang/StackTrace2.java: Renamed from
2223         StackTrace.java. Changed class name.
2224         * testsuite/libjava.lang/StackTrace2.out: Renamed from
2225         StackTrace.out. Updated for new class name.
2226
2227 2006-07-07  Ranjit Mathew  <rmathew@gcc.gnu.org>
2228
2229         * sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function's
2230         prologue to determine its beginning.  Stop unwinding when we reach
2231         JvRunMain().
2232
2233 2006-07-07  Gary Benson  <gbenson@redhat.com>
2234
2235         * Makefile.am (BOOT_CLASS_PATH_DIR): Only contain libgcj.jar.
2236         * Makefile.in: Regenerate.
2237
2238 2006-07-06  Bryce McKinlay <mckinlay@redhat.com>
2239
2240         * stacktrace.cc (ClassForFrame): Remove commented-out code.
2241         (UnwindTraceFn): Use _Unwind_GetIPInfo and adjust IP
2242         only when needed.
2243         (getLineNumberForFrame): Don't adjust IP here.
2244         * testsuite/libjava.lang/StackTrace.java: New test case.
2245         * testsuite/libjava.lang/StackTrace.out: Ditto.
2246
2247 2006-07-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
2248
2249         * Makefile.am (libgcj_tools_la_GCJFLAGS): Add
2250         -fno-indirect-classes.
2251         * Makefile.in: Regenerate.
2252         * gcj/Makefile.in: Regenerate.
2253         * include/Makefile.in: Regenerate.
2254         * testsuite/Makefile.in: Regenerate.
2255
2256 2006-07-06  Bryce McKinlay <mckinlay@redhat.com>
2257
2258         * boehm.cc (_Jv_MarkObj): Mark the next_or_version field.
2259
2260 2006-07-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
2261
2262         * configure.ac (ac_configure_args): Add --with-native-libdir.
2263         * configure: Regenerate.
2264         * classpath/native/jni/gtk-peer/Makefile.am: Remove GCJ LOCAL
2265         sections.
2266         * classpath/native/jni/gtk-peer/Makefile.in: Regenerate.
2267         * classpath/native/jawt/Makefile.am: Remove GCJ LOCAL sections.
2268         * classpath/native/jawt/Makefile.in: Regenerate.
2269         * classpath/native/plugin/Makefile.am: Remove GCJ LOCAL sections.
2270         * classpath/native/plugin/Makefile.in: Regenerate.
2271
2272 2006-07-05  Ranjit Mathew  <rmathew@gcc.gnu.org>
2273             Danny Smith  <dannysmith@users.sourceforge.net>
2274
2275         * libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for
2276         startfile.
2277         * configure.ac: Allow targets to affect the spec for startfile
2278         by specifying a THREADSTARTFILESPEC variable.  Define this for
2279         the win32 threads package to include crtmt.o.
2280         * configure: Regenerate.
2281         * win32.cc (_CRT_MT): Remove definition.
2282         (__mingwthr_key_dtor): Likewise.
2283
2284 2006-07-04  Andreas Tobler  <a.tobler@schweiz.ch>
2285
2286         * testsuite/lib/libjava.exp (libjava_init): Call the GCJ_UNDER_TEST with
2287         the -B$specdir.
2288
2289         PR libgcj/28226:
2290         * include/posix.h (_Jv_platform_dladdr): Remove const qualifier.
2291         * include/win32.h (_Jv_platform_dladdr): Likewise.
2292         * posix.cc (_Jv_platform_dladdr): Likewise.
2293         * win32.cc (_Jv_platform_dladdr): Likewise.
2294
2295         * testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar
2296         instead of libgcj-*.jar.
2297
2298 2006-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
2299
2300         PR libgcj/28244:
2301         * Makefile.am (libgcj_tools_la_DEPENDENCIES): Add libgcj.la and
2302         libgcj.spec.
2303         * Makefile.in: Regenerate.
2304
2305 2006-06-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
2306
2307         * classpath/tools/Makefile.am: Comment out tools wrapper creation.
2308         (TOOLS_ZIP): Rename tools.zip tools.jar.
2309         (noinst_DATA): Do not install tools.jar.
2310         * classpath/tools/Makefile.in: Regenerate.
2311         * classpath/Makefile.am (SUBDIRS): Add tools.
2312         (DIST_SUBDIRS): Likewise.
2313         * classpath/Makefile.in: Regenerate.
2314         * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj-tools.la.
2315         (jar_DATA): Add libgcj-tools-$(gcc_version).jar.
2316         (bin_PROGRAMS): Add gappletviewer, gjarsigner and gkeytool.
2317         Add build logic for libgcj-tools.la,
2318         libgcj-tools-$(gcc_version).jar and gappletviewer, gjarsigner and
2319         gkeytool.
2320         * Makefile.in: Regenerate.
2321
2322 2006-06-29  Ranjit Mathew  <rmathew@gcc.gnu.org>
2323
2324         * gcj/javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in
2325         C99.
2326         * include/java-stack.h: Include stdlib.h.
2327         (_Jv_AddrInfo): New structure to hold address information.
2328         * include/posix.h (_Jv_platform_dladdr): Declare.
2329         * include/win32.h (_Jv_platform_dladdr): Declare.
2330         (backtrace): Remove declaration.
2331         * posix.cc: Include dlfcn.h if available.  Include java-stack.h.
2332         (_Jv_platform_dladdr): Define.
2333         * win32.cc: Include string.h.  Include java-stack.h.
2334         (backtrace): Remove.
2335         (_Jv_platform_dladdr): Define.
2336         * sysdep/i386/backtrace.h (fallback_backtrace): Check that a potential
2337         frame pointer value is 32-bit word-aligned.  Use operand of the CALL
2338         instruction calling the current function to find its starting address.
2339         * stacktrace.cc: Do not include dlfcn.h.  Include platform.h.
2340         (_Jv_StackTrace::getLineNumberForFrame): Use _Jv_platform_dladdr()
2341         instead of dladdr().
2342         (_Jv_StackTrace::GetStackTraceElements): Use nCodeMap even for Windows.
2343         (_Jv_StackTrace::GetClassContext): Use fallback_backtrace() for
2344         targets with SJLJ exceptions instead of using _Unwind_Backtrace().
2345         (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
2346
2347 2006-06-27  Tom Tromey  <tromey@redhat.com>
2348
2349         * java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
2350         Set 'out.count' earlier.
2351         (close): Call setFinished on converter.
2352         (flush): Always write work buffer.
2353         * java/io/PrintStream.java (writeChars): Do 'do' loop.
2354         (close): Call setFinished on converter.  Write a 'flush' array.
2355         * java/lang/natString.cc (getBytes): Call setFinished on
2356         converter.
2357         * gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New
2358         field.
2359         (write): Set hasBytes.  Changed 'finished' logic.
2360         (havePendingBytes): Rewrote.
2361         (setFinished): New method.
2362         * gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method.
2363         * testsuite/libjava.lang/RH194522.java: New file.
2364         * testsuite/libjava.lang/RH194522.out: New file.
2365
2366 2006-06-27  Marco Trudel  <mtrudel@gmx.ch>
2367
2368         * boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define
2369         conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS,
2370         !GC_WIN32_THREADS and !GC_DARWIN_THREADS.
2371
2372 2006-06-27  Tom Tromey  <tromey@redhat.com>
2373
2374         PR libgcj/28178:
2375         * jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument.
2376         (_Jv_JNI_DeleteGlobalRef): Likewise.
2377         * testsuite/libjava.jni/PR28178.java: New file.
2378         * testsuite/libjava.jni/PR28178.c: New file.
2379         * testsuite/libjava.jni/PR28178.out: New file.
2380
2381 2006-06-26  Keith Seitz  <keiths@redhat.com>
2382
2383         * include/posix-threads.h: Fix coding style aberrations from
2384         2006-06-19 check-in.
2385         * posix-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
2386         * include/win32-threads.h (_Jv_ThreadDebugSuspend): Ditto.
2387         * win32-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
2388
2389 2006-06-26  Keith Seitz  <keiths@redhat.com>
2390
2391         * include/no-gc.h (_Jv_SuspendThread): Declare.
2392         (_Jv_ResumeThread): Likewise.
2393         * include/boehm-gc.h (_Jv_SuspendThread): Declare.
2394         (_Jv_ResumeThread): Likewise.
2395         * nogc.cc (_Jv_SuspendThread): New function.
2396         (_Jv_ResumeThread): Likewise.
2397         * boehm.cc (_Jv_SuspendThread): New function.
2398         (_Jv_ResumeThread): Likewise.
2399
2400 2006-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2401
2402         * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
2403         Link against -ljvm, not -lgcj.
2404
2405 2006-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2406
2407         * Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to
2408         toolexeclibdir.
2409         * Makefile.in: Regenerate.
2410
2411 2006-06-22  Tom Tromey  <tromey@redhat.com>
2412
2413         * java/lang/reflect/natField.cc (getAddr): Allow setting of final
2414         field when it is accessible.
2415
2416 2006-06-21  Bryce McKinlay  <mckinlay@redhat.com>
2417
2418         * include/win32-threads.h (_Jv_ThreadDesc_t): New typedef. 
2419         (_Jv_GetPlatformThreadID): New function.
2420         * include/posix-threads.h (_Jv_ThreadDesc_t): New typedef.
2421         (_Jv_GetPlatformThreadID): New function.
2422
2423 2006-06-20  Bryce McKinlay  <mckinlay@redhat.com>
2424
2425         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
2426         Bump "java.class.version" to 48.0.
2427
2428 2006-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
2429
2430         * Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to
2431         "$(dbexecdir)".
2432         Build libjvm.la.
2433         * Makefile.in: Regenerate.
2434         * jni.cc (the_vm): Rename and export as ...
2435         (_Jv_the_vm): New exported symbol.
2436         (_Jv_JNI_AttachCurrentThread): Export.
2437         (_Jv_JNI_DestroyJavaVM): Replace the_vm references with _Jv_the_vm
2438         references.
2439         (_Jv_GetJavaVM): Likewise.
2440         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
2441         JNI_GetCreatedJavaVMs): Move to ...
2442         * jni-libjvm.cc: New file.
2443
2444 2006-06-19  Andrew Haley  <aph@redhat.com>
2445
2446         * testsuite/libjava.lang/PR27908.out: New.
2447         * testsuite/libjava.lang/PR27908.java: New.
2448
2449 2006-06-19  Keith Seitz  <keiths@redhat.com>
2450
2451         * include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
2452         (_Jv_ThreadDebugResume): Declare.
2453         (_Jv_ThreadDebugSuspendCount): Declare.
2454         * posix-threads.cc (_Jv_ThreadDebugSuspend): New function.
2455         (_Jv_ThreadDebugSuspendCount): New function.
2456         (_Jv_ThreadDebugResume): New function.
2457
2458         * include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare.
2459         (_Jv_ThreadDebugResume): Declare.
2460         (_Jv_ThreadDebugSuspendCount): Declare.
2461         * win32-threads.cc (_Jv_ThreadDebugSuspend): New function.
2462         (_Jv_ThreadDebugSuspendCount): New function.
2463         (_Jv_ThreadDebugResume): New function.
2464         
2465 2006-06-16  Andrew Haley  <aph@redhat.com>
2466
2467         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
2468         copy the whole Class instance from the initializer: instead, copy
2469         everything but the first word (the vtable pointer).
2470         Change prototype to (const char* class_initializer).
2471         (_Jv_RegisterNewClasses): Change prototype to (const char**).
2472         * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
2473         (const char**).
2474
2475 2006-06-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
2476
2477         * classpath/Makefile.am: Do not recurse into tools directory.
2478         * classpath/Makefile.in: Regenerate.
2479
2480 2006-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
2481
2482         * classpath/tools/Makefile.am (gappletviewer_CFLAGS): Add
2483         -I$(top_srcdir)/include.
2484         (gjarsigner_CFLAGS): Likewise.
2485         (gkeytool_CFLAGS): Likewise.
2486         * classpath/tools/Makefile.in: Regenerate.
2487
2488 2006-06-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2489
2490         * configure: Regenerate.
2491         * Makefile.in: Regenerate.
2492         * configure.ac (--enable-plugin): New option.
2493         (ac_configure_args): Add --enable-tool-wrappers.
2494         (ac_configure_args): Add --disable-plugin unless --enable-plugin
2495         was specified.
2496         * gcj/Makefile.in: Regenerate.
2497         * sources.am (gnu_java_net_source_files): Add
2498         classpath/gnu/java/net/IndexListParser.java.
2499         (property_files): Remove
2500         classpath/resource/gnu/classpath/tools/jarsigner/MessageBundle.properties,
2501         classpath/resource/gnu/classpath/tools/keytool/MessageBundle.properties.
2502         Add
2503         classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties,
2504         classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle_de.properties,
2505         classpath/resource/gnu/classpath/tools/getopt/Messages.properties,
2506         classpath/resource/gnu/classpath/tools/jar/messages.properties,
2507         classpath/resource/gnu/classpath/tools/jarsigner/messages.properties,
2508         classpath/resource/gnu/classpath/tools/keytool/messages.properties,
2509         classpath/resource/gnu/classpath/tools/native2ascii/messages.properties,
2510         classpath/resource/gnu/classpath/tools/serialver/messages.properties.
2511         * classpath/Makefile.in: Regenerate.
2512         * classpath/native/jni/gtk-peer/cairographics2d.h,
2513         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
2514         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
2515         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
2516         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
2517         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
2518         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c,
2519         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c:
2520         Merge from GNU Classpath.
2521         * classpath/native/Makefile.in: Regenerate.
2522         * classpath/native/jawt/Makefile.in: Regenerate.
2523         * classpath/native/jawt/Makefile.am: Install libjawt.so in GCJ's
2524         versioned library directory.
2525         * classpath/native/Makefile.am: Add plugin directory if
2526         --enable-plugin was specified.
2527         * classpath/native/plugin/Makefile.in: Regenerate.  *
2528         classpath/native/plugin/Makefile.am: Install libgcjwebplugin.so in
2529         GCJ's versioned library directory.
2530         * classpath/resource/gnu/classpath/tools/native2ascii/messages.properties:
2531         New file.
2532         * classpath/resource/gnu/classpath/tools/getopt/Messages.properties:
2533         Likewise.
2534         * classpath/resource/gnu/classpath/tools/jarsigner/messages.properties:
2535         Likewise.
2536         * classpath/resource/gnu/classpath/tools/jarsigner/MessageBundle.properties:
2537         Remove file.
2538         * classpath/resource/gnu/classpath/tools/keytool/messages.properties:
2539         New file.
2540         * classpath/resource/gnu/classpath/tools/keytool/MessageBundle.properties:
2541         Remove file.
2542         * classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle_de.properties:
2543         New file.
2544         * classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties:
2545         Likewise.
2546         * classpath/resource/gnu/classpath/tools/jar/messages.properties:
2547         Likewise.
2548         * classpath/resource/gnu/classpath/tools/serialver/messages.properties:
2549         Likewise.
2550         * classpath/gnu/java/net/IndexListParser.java:
2551         Likewise.
2552         * classpath/gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
2553         classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
2554         classpath/gnu/java/awt/peer/gtk/CairoSurface.java,
2555         classpath/gnu/java/awt/peer/gtk/GdkFontPeer.java,
2556         classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
2557         classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
2558         classpath/gnu/java/awt/peer/gtk/GdkTextLayout.java,
2559         classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java,
2560         classpath/gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java,
2561         classpath/gnu/java/awt/peer/gtk/GtkVolatileImage.java,
2562         classpath/gnu/java/awt/font/opentype/truetype/VirtualMachine.java,
2563         classpath/gnu/java/awt/java2d/PolyEdge.java,
2564         classpath/gnu/java/awt/java2d/AbstractGraphics2D.java: Merge from
2565         GNU Classpath.
2566         * classpath/tools/toolwrapper.c: Replace tools.zip reference with
2567         libgcj-tools-4.2.0.jar.
2568         * classpath/tools/Makefile.in: Regenerate.
2569         * classpath/tools/Makefile.am: Rename tools.zip to
2570         libgcj-tools-4.2.0.jar.  Install libgcj-tools-4.2.0.jar in
2571         $(datadir)/java.
2572         * classpath/javax/swing/JTabbedPane.java,
2573         classpath/javax/swing/text/DefaultStyledDocument.java,
2574         classpath/javax/swing/text/html/HTMLDocument.java,
2575         classpath/javax/swing/text/GapContent.java,
2576         classpath/javax/swing/JComponent.java,
2577         classpath/javax/swing/RepaintManager.java,
2578         classpath/javax/swing/plaf/basic/BasicComboBoxRenderer.java,
2579         classpath/javax/swing/plaf/basic/BasicScrollBarUI.java,
2580         classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2581         classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java,
2582         classpath/javax/swing/plaf/basic/BasicLookAndFeel.java,
2583         classpath/javax/swing/plaf/metal/MetalButtonUI.java,
2584         classpath/java/text/Bidi.java,
2585         classpath/java/awt/image/BufferedImage.java,
2586         classpath/java/awt/datatransfer/DataFlavor.java,
2587         classpath/java/awt/geom/AffineTransform.java,
2588         classpath/java/awt/dnd/DropTargetDropEvent.java,
2589         classpath/java/awt/dnd/DropTargetContext.java,
2590         classpath/java/awt/font/TextLayout.java,
2591         classpath/include/gnu_java_awt_peer_gtk_ComponentGraphics.h,
2592         classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
2593         classpath/include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h,
2594         classpath/include/gnu_java_awt_peer_gtk_GdkTextLayout.h,
2595         classpath/include/gnu_java_awt_peer_gtk_GtkVolatileImage.h,
2596         classpath/include/gnu_java_awt_peer_gtk_CairoSurface.h: Merge from
2597         GNU Classpath.
2598         * classpath/include/gnu_java_awt_peer_gtk_GdkGraphics.h,
2599         classpath/include/gnu_java_awt_peer_gtk_GdkGraphics2D.h,
2600         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
2601         classpath/native/jni/gtk-peer/gtkcairopeer.h,
2602         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c:
2603         Remove files.
2604         * classpath/Makefile.am (SUBDIRS, DIST_SUBDIRS): Include tools
2605         directory.
2606         * include/Makefile.in: Regenerate.
2607         * testsuite/Makefile.in: Regenerate.
2608
2609 2006-06-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2610
2611         * configure.host (hppa*-*): Set 'enable_hash_synchronization_default'
2612         to no.
2613
2614 2006-06-12  Andrew Haley  <aph@redhat.com>
2615
2616         * testsuite/libjava.lang/PR27908.out: Delete.
2617         * testsuite/libjava.lang/PR27908.java: Delete.
2618
2619 2006-06-12  Andrew Haley  <aph@redhat.com>
2620
2621         * testsuite/libjava.lang/PR27908.out: New.
2622         * testsuite/libjava.lang/PR27908.java: New.
2623
2624 2006-06-10  Thomas Fitzsimmons  <fitzsim@redhat.com>
2625
2626         * configure.ac (ac_configure_args): Add --disable-plugin.
2627         (--enable-gtk-cairo): Remove option.
2628         * configure: Regenerate.
2629
2630 2006-06-09  Tom Tromey  <tromey@redhat.com>
2631
2632         PR libgcj/27730:
2633         * java/lang/Thread.java (threadId): New field.
2634         (nextThreadId): New static field.
2635         (Thread): Initialize new field.
2636         (getId): New method.
2637
2638 2006-06-09  Tom Tromey  <tromey@redhat.com>
2639
2640         * java/lang/Class.java (getClassLoaderInternal): Now native.
2641
2642 2006-06-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
2643
2644         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
2645         (getDefaultScreenDevice): Remove unnecessary GCJ local hack.
2646         * gnu/java/awt/peer/gtk/GtkToolkit.java (getSystemEventQueueImpl):
2647         Likewise.
2648         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (registerFormat):
2649         Likewise.
2650
2651 2006-06-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
2652
2653         * java/lang/String.java, classpath/native/jni/classpath/jcl.h,
2654         classpath/native/jni/qt-peer/eventmethods.h,
2655         classpath/native/jni/qt-peer/qtmenupeer.cpp,
2656         classpath/native/jni/qt-peer/.cvsignore,
2657         classpath/native/jni/gtk-peer/gdkdisplay.h,
2658         classpath/native/jni/gtk-peer/cairographics2d.h,
2659         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
2660         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,
2661         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
2662         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
2663         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c,
2664         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
2665         classpath/native/jni/gtk-peer/.cvsignore,
2666         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c,
2667         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
2668         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
2669         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
2670         classpath/native/jni/gtk-peer/gtkpeer.h,
2671         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
2672         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c,
2673         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c,
2674         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c,
2675         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c,
2676         classpath/native/jni/gtk-peer/Makefile.am,
2677         classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
2678         classpath/native/jawt/Makefile.am,
2679         classpath/native/jawt/.cvsignore,
2680         classpath/native/target/Linux/Makefile.in,
2681         classpath/native/plugin/gcjwebplugin.cc,
2682         classpath/native/plugin/Makefile.am,
2683         classpath/native/plugin/.cvsignore,
2684         classpath/resource/Makefile.in,
2685         classpath/gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
2686         classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
2687         classpath/gnu/java/awt/peer/gtk/CairoSurface.java,
2688         classpath/gnu/java/awt/peer/gtk/GdkFontPeer.java,
2689         classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
2690         classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
2691         classpath/gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
2692         classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2693         classpath/gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java,
2694         classpath/gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2695         classpath/gnu/java/awt/peer/gtk/GdkGraphics.java,
2696         classpath/gnu/java/awt/peer/gtk/GtkToolkit.java,
2697         classpath/gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java,
2698         classpath/gnu/java/awt/peer/gtk/BufferedImageGraphics.java,
2699         classpath/gnu/java/awt/peer/gtk/GdkTextLayout.java,
2700         classpath/gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java,
2701         classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java,
2702         classpath/gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java,
2703         classpath/gnu/java/awt/peer/gtk/GtkImage.java,
2704         classpath/gnu/java/awt/peer/gtk/GtkVolatileImage.java,
2705         classpath/gnu/java/awt/peer/gtk/GdkGlyphVector.java,
2706         classpath/gnu/java/awt/peer/gtk/GtkCanvasPeer.java,
2707         classpath/gnu/java/awt/peer/swing/SwingContainerPeer.java,
2708         classpath/gnu/java/awt/peer/swing/SwingComponent.java,
2709         classpath/gnu/java/awt/peer/swing/SwingTextFieldPeer.java,
2710         classpath/gnu/java/awt/peer/swing/SwingMenuBarPeer.java,
2711         classpath/gnu/java/awt/peer/swing/SwingFramePeer.java,
2712         classpath/gnu/java/awt/peer/swing/SwingComponentPeer.java,
2713         classpath/gnu/java/awt/peer/swing/SwingWindowPeer.java,
2714         classpath/gnu/java/awt/print/JavaPrinterJob.java,
2715         classpath/gnu/java/awt/print/PostScriptGraphics2D.java,
2716         classpath/gnu/java/awt/print/SpooledDocument.java,
2717         classpath/gnu/java/awt/print/JavaPrinterGraphics.java,
2718         classpath/gnu/java/awt/BitwiseXORComposite.java,
2719         classpath/gnu/java/awt/font/GNUGlyphVector.java,
2720         classpath/gnu/java/awt/font/opentype/NameDecoder.java,
2721         classpath/gnu/java/awt/java2d/RasterGraphics.java,
2722         classpath/gnu/java/awt/java2d/TexturePaintContext.java,
2723         classpath/gnu/java/awt/java2d/PolyEdge.java,
2724         classpath/gnu/java/awt/java2d/AbstractGraphics2D.java,
2725         classpath/gnu/java/awt/java2d/AlphaCompositeContext.java,
2726         classpath/gnu/java/awt/java2d/ImagePaint.java,
2727         classpath/gnu/java/awt/Buffers.java,
2728         classpath/gnu/classpath/Configuration.java.in,
2729         classpath/gnu/javax/swing/text/html/CombinedAttributes.java,
2730         classpath/gnu/javax/swing/text/html/CharacterAttributeTranslator.java,
2731         classpath/gnu/javax/swing/text/html/parser/htmlAttributeSet.java,
2732         classpath/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java,
2733         classpath/gnu/javax/swing/text/html/ImageViewIconFactory.java,
2734         classpath/tools/toolwrapper.c,
2735         classpath/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java,
2736         classpath/tools/gnu/classpath/tools/native2ascii/Messages.java,
2737         classpath/tools/gnu/classpath/tools/getopt/FileArgumentCallback.java,
2738         classpath/tools/gnu/classpath/tools/getopt/OptionGroup.java,
2739         classpath/tools/gnu/classpath/tools/getopt/OptionException.java,
2740         classpath/tools/gnu/classpath/tools/getopt/Messages.java,
2741         classpath/tools/gnu/classpath/tools/getopt/Option.java,
2742         classpath/tools/gnu/classpath/tools/getopt/Parser.java,
2743         classpath/tools/gnu/classpath/tools/getopt/ClasspathToolParser.java,
2744         classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java,
2745         classpath/tools/gnu/classpath/tools/jarsigner/Main.java,
2746         classpath/tools/gnu/classpath/tools/jarsigner/Messages.java,
2747         classpath/tools/gnu/classpath/tools/jarsigner/package.html,
2748         classpath/tools/gnu/classpath/tools/keytool/ListCmd.java,
2749         classpath/tools/gnu/classpath/tools/keytool/StorePasswdCmd.java,
2750         classpath/tools/gnu/classpath/tools/keytool/ExportCmd.java,
2751         classpath/tools/gnu/classpath/tools/keytool/GenKeyCmd.java,
2752         classpath/tools/gnu/classpath/tools/keytool/Messages.java,
2753         classpath/tools/gnu/classpath/tools/keytool/package.html,
2754         classpath/tools/gnu/classpath/tools/keytool/Command.java,
2755         classpath/tools/gnu/classpath/tools/keytool/IdentityDBCmd.java,
2756         classpath/tools/gnu/classpath/tools/keytool/Main.java,
2757         classpath/tools/gnu/classpath/tools/keytool/DeleteCmd.java,
2758         classpath/tools/gnu/classpath/tools/keytool/CertReqCmd.java,
2759         classpath/tools/gnu/classpath/tools/keytool/SelfCertCmd.java,
2760         classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java,
2761         classpath/tools/gnu/classpath/tools/keytool/KeyPasswdCmd.java,
2762         classpath/tools/gnu/classpath/tools/keytool/ImportCmd.java,
2763         classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java,
2764         classpath/tools/gnu/classpath/tools/rmi/registry/package.html,
2765         classpath/tools/gnu/classpath/tools/rmi/RMIC.txt,
2766         classpath/tools/gnu/classpath/tools/rmi/RMIC.java,
2767         classpath/tools/gnu/classpath/tools/appletviewer/ErrorApplet.java,
2768         classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java,
2769         classpath/tools/gnu/classpath/tools/appletviewer/CommonAppletContext.java,
2770         classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletContext.java,
2771         classpath/tools/gnu/classpath/tools/appletviewer/AppletSecurityManager.java,
2772         classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletContext.java,
2773         classpath/tools/gnu/classpath/tools/appletviewer/AppletWarning.java,
2774         classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletViewer.java,
2775         classpath/tools/gnu/classpath/tools/appletviewer/AppletTag.java,
2776         classpath/tools/gnu/classpath/tools/appletviewer/ConsoleDialog.java,
2777         classpath/tools/gnu/classpath/tools/appletviewer/Main.java,
2778         classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java,
2779         classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletViewer.java,
2780         classpath/tools/gnu/classpath/tools/appletviewer/TagParser.java,
2781         classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletWindow.java,
2782         classpath/tools/gnu/classpath/tools/appletviewer/CommonAppletStub.java,
2783         classpath/tools/gnu/classpath/tools/serialver/Messages.java,
2784         classpath/tools/gnu/classpath/tools/serialver/SerialVer.java,
2785         classpath/tools/gnu/classpath/tools/jar/Creator.java,
2786         classpath/tools/gnu/classpath/tools/jar/Entry.java,
2787         classpath/tools/gnu/classpath/tools/jar/Lister.java,
2788         classpath/tools/gnu/classpath/tools/jar/Main.java,
2789         classpath/tools/gnu/classpath/tools/jar/Updater.java,
2790         classpath/tools/gnu/classpath/tools/jar/Messages.java,
2791         classpath/tools/gnu/classpath/tools/jar/Extractor.java,
2792         classpath/tools/gnu/classpath/tools/jar/Action.java,
2793         classpath/tools/gnu/classpath/tools/jar/Indexer.java,
2794         classpath/tools/gnu/classpath/tools/jar/WorkSet.java,
2795         classpath/tools/gnu/classpath/tools/giop/GRMIC.txt,
2796         classpath/tools/gnu/classpath/tools/giop/grmic/GiopRmicCompiler.java,
2797         classpath/tools/gnu/classpath/tools/giop/GRMIC.java,
2798         classpath/tools/Makefile.am, classpath/tools/jarsigner.in,
2799         classpath/tools/keytool.in, classpath/tools/appletviewer.in,
2800         classpath/tools/.cvsignore, classpath/configure.ac,
2801         classpath/javax/swing/JTabbedPane.java,
2802         classpath/javax/swing/AbstractButton.java,
2803         classpath/javax/swing/JViewport.java,
2804         classpath/javax/swing/KeyboardManager.java,
2805         classpath/javax/swing/JMenuItem.java,
2806         classpath/javax/swing/JMenuBar.java,
2807         classpath/javax/swing/MenuSelectionManager.java,
2808         classpath/javax/swing/JOptionPane.java,
2809         classpath/javax/swing/JSpinner.java,
2810         classpath/javax/swing/JCheckBoxMenuItem.java,
2811         classpath/javax/swing/JEditorPane.java,
2812         classpath/javax/swing/JFormattedTextField.java,
2813         classpath/javax/swing/JTree.java,
2814         classpath/javax/swing/CellRendererPane.java,
2815         classpath/javax/swing/JScrollPane.java,
2816         classpath/javax/swing/tree/VariableHeightLayoutCache.java,
2817         classpath/javax/swing/tree/TreeNode.java,
2818         classpath/javax/swing/tree/FixedHeightLayoutCache.java,
2819         classpath/javax/swing/tree/DefaultTreeCellEditor.java,
2820         classpath/javax/swing/tree/TreePath.java,
2821         classpath/javax/swing/tree/RowMapper.java,
2822         classpath/javax/swing/tree/DefaultMutableTreeNode.java,
2823         classpath/javax/swing/tree/DefaultTreeModel.java,
2824         classpath/javax/swing/tree/AbstractLayoutCache.java,
2825         classpath/javax/swing/tree/TreeSelectionModel.java,
2826         classpath/javax/swing/tree/DefaultTreeSelectionModel.java,
2827         classpath/javax/swing/tree/DefaultTreeCellRenderer.java,
2828         classpath/javax/swing/tree/ExpandVetoException.java,
2829         classpath/javax/swing/JList.java,
2830         classpath/javax/swing/table/JTableHeader.java,
2831         classpath/javax/swing/table/AbstractTableModel.java,
2832         classpath/javax/swing/table/DefaultTableModel.java,
2833         classpath/javax/swing/table/TableCellEditor.java,
2834         classpath/javax/swing/table/TableCellRenderer.java,
2835         classpath/javax/swing/ProgressMonitor.java,
2836         classpath/javax/swing/JToolBar.java,
2837         classpath/javax/swing/TransferHandler.java,
2838         classpath/javax/swing/DefaultCellEditor.java,
2839         classpath/javax/swing/DefaultButtonModel.java,
2840         classpath/javax/swing/JLayeredPane.java,
2841         classpath/javax/swing/text/DefaultEditorKit.java,
2842         classpath/javax/swing/text/DefaultCaret.java,
2843         classpath/javax/swing/text/FieldView.java,
2844         classpath/javax/swing/text/JTextComponent.java,
2845         classpath/javax/swing/text/TextAction.java,
2846         classpath/javax/swing/text/StyleContext.java,
2847         classpath/javax/swing/text/html/HTMLDocument.java,
2848         classpath/javax/swing/text/html/MinimalHTMLWriter.java,
2849         classpath/javax/swing/text/html/ImageView.java,
2850         classpath/javax/swing/text/html/HTMLEditorKit.java,
2851         classpath/javax/swing/text/AbstractWriter.java,
2852         classpath/javax/swing/text/GapContent.java,
2853         classpath/javax/swing/text/Utilities.java,
2854         classpath/javax/swing/text/PlainView.java,
2855         classpath/javax/swing/UIManager.java,
2856         classpath/javax/swing/JSplitPane.java,
2857         classpath/javax/swing/JComponent.java,
2858         classpath/javax/swing/SwingUtilities.java,
2859         classpath/javax/swing/border/AbstractBorder.java,
2860         classpath/javax/swing/border/CompoundBorder.java,
2861         classpath/javax/swing/border/TitledBorder.java,
2862         classpath/javax/swing/border/MatteBorder.java,
2863         classpath/javax/swing/border/BevelBorder.java,
2864         classpath/javax/swing/RepaintManager.java,
2865         classpath/javax/swing/JTable.java,
2866         classpath/javax/swing/UIDefaults.java,
2867         classpath/javax/swing/DefaultDesktopManager.java,
2868         classpath/javax/swing/JMenu.java,
2869         classpath/javax/swing/JLabel.java,
2870         classpath/javax/swing/JSlider.java,
2871         classpath/javax/swing/plaf/basic/BasicToolBarUI.java,
2872         classpath/javax/swing/plaf/basic/BasicButtonUI.java,
2873         classpath/javax/swing/plaf/basic/BasicOptionPaneUI.java,
2874         classpath/javax/swing/plaf/basic/BasicTextAreaUI.java,
2875         classpath/javax/swing/plaf/basic/BasicToggleButtonUI.java,
2876         classpath/javax/swing/plaf/basic/BasicSpinnerUI.java,
2877         classpath/javax/swing/plaf/basic/BasicSliderUI.java,
2878         classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2879         classpath/javax/swing/plaf/basic/BasicComboPopup.java,
2880         classpath/javax/swing/plaf/basic/BasicCheckBoxUI.java,
2881         classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java,
2882         classpath/javax/swing/plaf/basic/BasicProgressBarUI.java,
2883         classpath/javax/swing/plaf/basic/BasicRadioButtonUI.java,
2884         classpath/javax/swing/plaf/basic/BasicPanelUI.java,
2885         classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java,
2886         classpath/javax/swing/plaf/basic/BasicTreeUI.java,
2887         classpath/javax/swing/plaf/basic/BasicTableHeaderUI.java,
2888         classpath/javax/swing/plaf/basic/BasicFileChooserUI.java,
2889         classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java,
2890         classpath/javax/swing/plaf/basic/BasicComboBoxUI.java,
2891         classpath/javax/swing/plaf/basic/BasicListUI.java,
2892         classpath/javax/swing/plaf/basic/BasicIconFactory.java,
2893         classpath/javax/swing/plaf/basic/BasicTextUI.java,
2894         classpath/javax/swing/plaf/basic/BasicLookAndFeel.java,
2895         classpath/javax/swing/plaf/basic/BasicDirectoryModel.java,
2896         classpath/javax/swing/plaf/basic/BasicRootPaneUI.java,
2897         classpath/javax/swing/plaf/basic/BasicTableUI.java,
2898         classpath/javax/swing/plaf/basic/SharedUIDefaults.java,
2899         classpath/javax/swing/plaf/multi/MultiComboBoxUI.java,
2900         classpath/javax/swing/plaf/multi/MultiListUI.java,
2901         classpath/javax/swing/plaf/multi/MultiSplitPaneUI.java,
2902         classpath/javax/swing/plaf/multi/MultiFileChooserUI.java,
2903         classpath/javax/swing/plaf/multi/MultiOptionPaneUI.java,
2904         classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java,
2905         classpath/javax/swing/plaf/multi/MultiLookAndFeel.java,
2906         classpath/javax/swing/plaf/metal/MetalSliderUI.java,
2907         classpath/javax/swing/plaf/metal/MetalIconFactory.java,
2908         classpath/javax/swing/plaf/metal/MetalComboBoxIcon.java,
2909         classpath/javax/swing/plaf/metal/MetalTabbedPaneUI.java,
2910         classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,
2911         classpath/javax/swing/plaf/metal/MetalCheckBoxUI.java,
2912         classpath/javax/swing/plaf/metal/MetalSeparatorUI.java,
2913         classpath/javax/swing/plaf/metal/MetalBorders.java,
2914         classpath/javax/swing/plaf/metal/MetalSplitPaneDivider.java,
2915         classpath/javax/swing/plaf/metal/MetalScrollBarUI.java,
2916         classpath/javax/swing/plaf/metal/MetalRootPaneUI.java,
2917         classpath/javax/swing/plaf/metal/MetalInternalFrameUI.java,
2918         classpath/javax/swing/plaf/metal/MetalRadioButtonUI.java,
2919         classpath/javax/swing/plaf/metal/MetalToolTipUI.java,
2920         classpath/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java,
2921         classpath/javax/swing/plaf/metal/MetalFileChooserUI.java,
2922         classpath/javax/swing/plaf/metal/MetalUtils.java,
2923         classpath/javax/swing/plaf/metal/MetalComboBoxButton.java,
2924         classpath/javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.java,
2925         classpath/javax/swing/plaf/metal/MetalButtonUI.java,
2926         classpath/javax/swing/JPopupMenu.java,
2927         classpath/javax/swing/JProgressBar.java,
2928         classpath/javax/swing/WindowConstants.java,
2929         classpath/javax/swing/JFrame.java,
2930         classpath/javax/swing/JFileChooser.java,
2931         classpath/javax/swing/JComboBox.java,
2932         classpath/javax/swing/event/EventListenerList.java,
2933         classpath/javax/swing/ListSelectionModel.java,
2934         classpath/javax/swing/JScrollBar.java,
2935         classpath/java/text/SimpleDateFormat.java,
2936         classpath/java/text/NumberFormat.java,
2937         classpath/java/text/class-dependencies.conf,
2938         classpath/java/awt/image/ColorModel.java,
2939         classpath/java/awt/image/BufferedImage.java,
2940         classpath/java/awt/Window.java,
2941         classpath/java/awt/ContainerOrderFocusTraversalPolicy.java,
2942         classpath/java/awt/LightweightDispatcher.java,
2943         classpath/java/awt/EventDispatchThread.java,
2944         classpath/java/awt/BasicStroke.java,
2945         classpath/java/awt/ColorPaintContext.java,
2946         classpath/java/awt/Container.java,
2947         classpath/java/awt/TexturePaint.java,
2948         classpath/java/awt/Component.java, classpath/java/awt/Font.java,
2949         classpath/java/awt/GraphicsConfiguration.java,
2950         classpath/java/awt/DefaultKeyboardFocusManager.java,
2951         classpath/java/awt/print/PrinterJob.java,
2952         classpath/java/awt/im/InputContext.java,
2953         classpath/java/awt/dnd/DragGestureRecognizer.java,
2954         classpath/java/awt/Toolkit.java,
2955         classpath/java/awt/font/GraphicAttribute.java,
2956         classpath/java/awt/font/ImageGraphicAttribute.java,
2957         classpath/java/awt/font/GlyphVector.java,
2958         classpath/java/awt/font/GlyphMetrics.java,
2959         classpath/java/awt/font/ShapeGraphicAttribute.java,
2960         classpath/java/awt/Graphics2D.java,
2961         classpath/include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h,
2962         classpath/include/gnu_java_awt_peer_gtk_ComponentGraphics.h,
2963         classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
2964         classpath/include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h,
2965         classpath/include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h,
2966         classpath/include/config.h.in,
2967         classpath/include/gnu_java_awt_peer_gtk_GdkTextLayout.h,
2968         classpath/include/gnu_java_awt_peer_gtk_GtkComponentPeer.h,
2969         classpath/include/gnu_java_awt_peer_gtk_GdkFontPeer.h,
2970         classpath/include/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.h,
2971         classpath/include/gnu_java_awt_peer_gtk_GtkVolatileImage.h,
2972         classpath/include/gnu_java_awt_peer_gtk_GtkImage.h,
2973         classpath/include/gnu_java_awt_peer_gtk_CairoSurface.h,
2974         classpath/include/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.h:
2975         Merge from GNU Classpath HEAD.
2976
2977 2006-06-08  Tom Tromey  <tromey@redhat.com>
2978
2979         * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
2980         Set gnu.gcj.user.realname.
2981
2982 2006-06-09  Andreas Tobler  <a.tobler@schweiz.ch>
2983
2984         * scripts/jar.in: Replace hardcoded /bin/sh with @SHELL@.
2985
2986 2006-06-07  Andrew Haley  <aph@redhat.com>
2987
2988         * include/jvm.h (_Jv_Linker::maybe_adjust_signature): New.
2989         (_Jv_Linker::uaddr): New.
2990         * link.cc (resolve_pool_entry): Call search_method_in_superclasses
2991         instead of an open-coded loop around search_method_in_class.
2992         (search_method_in_class): Add a new arg, check_perms.
2993         (search_method_in_superclasses): New.
2994         (link_symbol_table): Call maybe_adjust_signature() to extract the
2995         least significnt bit of the signature pointer.  Do this three
2996         times, for instace method calls, static methods, and interfaces.
2997         Call search_method_in_superclasses() instead of
2998         _Jv_LookupDeclaredMethod.
2999         (typedef uaddr): Delete.
3000         
3001 2006-06-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
3002
3003         * scripts/makemake.tcl (emit_bc_rule): Do not skip
3004         gnu-java-awt-peer-qt.lo.
3005         * configure.ac (QT_AWT): Remove conditional.
3006         Do not add gnu/java/awt/peer/qt to standard.omit.
3007         * classpath/native/jni/qt-peer/Makefile.am: Install libqtpeer.so
3008         in GCJ's versioned library directory.
3009         * classpath/gnu/java/awt/peer/qt/QtToolkit.java (initToolkit):
3010         Load libqtpeer.so unconditionally.
3011         * gij.cc (main): Do not re-exec gij.
3012         * Makefile.am: Remove lib-gnu-java-awt-peer-qt.lo build logic.
3013         (gij_LDFLAGS): Point -rpath at GCJ's versioned library directory
3014         when linking gij.
3015
3016 2006-06-06  David Daney  <ddaney@avtrex.com>
3017
3018         * gnu/gcj/runtime/NameFinder.java (show_raw): New field.
3019         (showRaw): New method.
3020         * stacktrace.cc : Include gnu/gcj/runtime/StringBuffer.h.
3021         (getLineNumberForFrame): Show IP offset in trace if line number
3022         not available and show_raw true.
3023
3024 2006-06-06  Gary Benson  <gbenson@redhat.com>
3025
3026         * java/io/natFilePosix.cc (getCanonicalPath): Rewritten.
3027         * configure.ac: Remove realpath check and add checks for
3028         lstat and readlink.
3029         * configure: Rebuilt.
3030         * include/config.h.in: Likewise.
3031         * java/io/File.java: Javadoc fix.
3032
3033 2006-06-05  Andreas Schwab  <schwab@suse.de>
3034
3035         PR libgcj/27860
3036         * link.cc: Check for closure support in libffi with FFI_CLOSURES.
3037
3038 2006-06-05  Tom Tromey  <tromey@redhat.com>
3039
3040         PR libgcj/27892:
3041         * gij.cc (main): Use putenv.
3042
3043 2006-06-03  Paolo Bonzini  <bonzini@gnu.org>
3044
3045         * scripts/jar.in: Ensure return with argument has non-empty argument.
3046
3047 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
3048
3049         * configure.ac (ZIP, UNZIP): New programs.
3050         (JAR): Fall back to bash script.  Generate it.
3051         (BASH_JAR): New conditional.
3052         * Makefile.am (bin_SCRIPTS): New.
3053         * scripts/jar.in: New file.
3054
3055 2006-06-01  Bryce McKinlay  <mckinlay@redhat.com>
3056
3057         * gnu/java/lang/MainThread (run): Revert exception chaining change.
3058
3059 2006-05-31  Bryce McKinlay  <mckinlay@redhat.com>
3060
3061         * prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class
3062         name, not Latin1.
3063         * gnu/java/lang/MainThread.java (run): Allow file separator char to
3064         be used in place of '.' as class-name separator. Don't chain
3065         ClassNotFoundException.
3066
3067 2006-05-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
3068
3069         * java/lang/VMClassLoader.java (initialize): Set default library
3070         control to LIB_NEVER.
3071
3072 2006-05-31  Alan Modra  <amodra@bigpond.net.au>
3073
3074         * stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
3075         interpreted classes.
3076
3077 2006-05-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
3078
3079         * scripts/makemake.tcl (emit_bc_rule): Do not skip
3080         gnu-java-awt-peer-gtk.lo.
3081         Include gnu/java/awt/peer/gtk Java objects in libgcj.so.  Use C++
3082         ABI for gnu/java/awt/peer/gtk package.
3083         * gnu/classpath/natSystemProperties.cc (PrependVersionedLibdir):
3084         New function.
3085         (insertSystemProperties): Only set java.ext.dirs if it is not
3086         already defined.  Prepend GCJ_VERSIONED_LIBDIR to module search
3087         path where necessary.
3088         * configure.ac (GTK_AWT): Remove automake conditional.
3089         Do not add gnu/java/awt/peer/gtk to standard.omit.
3090         * include/jvm.h (_Jv_PrependVersionedLibdir): New function
3091         declaration.
3092         * gij.cc (main): Prepend LD_LIBRARY_PATH with GCJ_VERSIONED_LIBDIR
3093         and re-exec self.
3094         * Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR and
3095         PATH_SEPARATOR macros.
3096         Remove lib-gnu-java-awt-peer-gtk.la and libgcjawt.la build logic.
3097         * prims.cc (_Jv_PrependVersionedLibdir): New function.
3098
3099 2006-05-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
3100
3101         * java/lang/natThread.cc (countStackFrames): Do not throw
3102         UnsupportedOperationException.
3103         (resume): Likewise.
3104         (stop): Likewise.
3105         (suspend): Likewise.
3106
3107 2006-05-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3108
3109         * configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
3110         * configure: Rebuilt.
3111         * include/config.h.in: Likewise.
3112         * include/posix.h: If HAVE_SYS_RW_LOCK_H is defined, include
3113         <sys/rw_lock.h>.
3114
3115 2006-05-24  Tom Tromey  <tromey@redhat.com>
3116
3117         PR libgcj/27024:
3118         * sources.am, Makefile.in: Rebuilt.
3119         * gnu/java/net/DefaultContentHandlerFactory.java: Removed.
3120         * java/net/URLConnection.java: Removed.
3121
3122 2006-05-24  Carlos O'Donell  <carlos@codesourcery.com>
3123
3124         * Makefile.am: Add install-html target. Add install-html to .PHONY
3125         * Makefile.in: Regenerate.
3126         * aclocal.m4: Regenerate.
3127         * gcj/Makefile.in: Regenerate.
3128         * include/Makefile.in: Regenerate.
3129         * testsuite/Makefile.in: Regenerate.
3130
3131 2006-05-24  Andreas Tobler  <a.tobler@schweiz.ch>
3132
3133         * testsuite/libjava.lang/stacktrace.java: New file.
3134         * testsuite/libjava.lang/stacktrace.out: Likewise.
3135
3136 2006-05-24  Tom Tromey  <tromey@redhat.com>
3137
3138         * sources.am, Makefile.in: Rebuilt.
3139         * scripts/makemake.tcl: Accept -verbose command-line option.
3140         (is_verbose): New global.
3141         (verbose): Use it.
3142         (classify_source_file): Don't special case '.' for 'package'
3143         type.
3144
3145 2006-05-24  Tom Tromey  <tromey@redhat.com>
3146
3147         PR libgcj/27729:
3148         * java/lang/reflect/natField.cc (getAddr): Added parens.
3149         * java/lang/reflect/natConstructor.cc (getModifiersInternal):
3150         Renamed.  Don't mask flags.
3151         * java/lang/reflect/Constructor.java (CONSTRUCTOR_MODIFIERS): New
3152         constant.
3153         (getModifiersInternal): Renamed.
3154         (getModifiers): Rewrote.
3155         (isSynthetic, isVarArgs): New methods.
3156         (hashCode): Rewrote.
3157         (addTypeParameters, toGenericString): New methods.
3158         (getTypeParameters): Rewrote.
3159         (getSignature): New method.
3160         (getGenericParameterTypes, getGenericExceptionTypes): Likewise.
3161         * java/lang/reflect/natMethod.cc (getModifiersInternal):
3162         Renamed.  Don't mask flags.
3163         * java/lang/reflect/natField.cc (getModifiersInternal): Renamed.
3164         Don't mask flags.
3165         * java/lang/reflect/Modifier.java (BRIDGE, VARARGS, SYNTHETIC,
3166         ENUM): New constants.
3167         (INVISIBLE): Changed value.
3168         * java/lang/reflect/Method.java: Mostly merged with Classpath.
3169         (getModifiersInternal): Renamed.
3170         (getModifiers): Rewrote.
3171         (isBridge, isSynthetic, isVarArgs): New methods.
3172         (toGenericString): Likewise.
3173         (getTypeParameters): Likewise.
3174         (getSignature): Likewise.
3175         (getGenericExceptionTypes, getGenericParameterTypes,
3176         getGenericReturnType): Likewise.
3177         (METHOD_MODIFIERS): New constant.
3178         * java/lang/reflect/Field.java: Mostly merged with Classpath.
3179         Added javadoc everywhere.
3180         (getModifiersInternal): Renamed.
3181         (getModifiers, isSynthetic, isEnumConstant): Rewrote.
3182         (toGenericString): New method.
3183         (getGenericType, getSignature): Likewise.
3184         (FIELD_MODIFIERS): New constant.
3185
3186 2006-05-24  Tom Tromey  <tromey@redhat.com>
3187
3188         PR libgcj/27731:
3189         * java/lang/natMath.cc (cbrt, cosh, expm1, hypot, log1p, sinh,
3190         tanh): New methods.
3191         * java/lang/Math.java (cbrt, cosh, expm1, hypot, log1p, sinh,
3192         tanh): Declare.
3193
3194 2006-05-22  Mark Wielaard  <mark@klomp.org>
3195
3196         * HACKING: Update GNU Classpath import instructions.
3197
3198 2006-05-21  Andreas Tobler  <a.tobler@schweiz.ch>
3199
3200         * java/lang/natClass.cc (_Jv_FindMethodInCache): Mark klass, name and
3201         signature as MAYBE_UNUSED for HAVE_TLS == 0.
3202         (_Jv_AddMethodToCache): Mark klass and method as MAYBE_UNUSED for
3203         HAVE_TLS == 0.
3204
3205 2006-05-20  Andreas Tobler  <a.tobler@schweiz.ch>
3206             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3207
3208         * configure.ac: Add the POSIX thread libs to the HP-UX PA
3209         configuration. Add signal specification for HP-UX PA.
3210         * configure: Rebuilt.
3211         * configure.host: Add defaults for the HP-UX PA architecture.
3212         Add descriptor files for HP-UX PA 32-bit and 64-bit.
3213         * include/hppa-signal.h: New file.
3214         * include/posix.h: Add shared library suffix for HP-UX.
3215         * sysdep/pa/descriptor-pa32-hpux.h: New file.
3216         * sysdep/pa/descriptor-pa64-hpux.h: Likewise.
3217
3218 2006-05-19  Ranjit Mathew  <rmathew@gcc.gnu.org>
3219
3220         * ChangeLog: Correct incorrect GNU Classpath version in the
3221         entry for the latest import.
3222
3223 2006-05-18  Tom Tromey  <tromey@redhat.com>
3224
3225         * source.am, Makefile.in: Rebuilt.
3226         * Makefile.am (property_files): Removed.
3227         * scripts/makemake.tcl (properties_map): New global.
3228         (properties_files): Likewise.
3229         (emit_property_files): New proc.
3230         (scan_packages): Scan META-INF.
3231         Print property_files variable.  Scan classpath/resource.
3232
3233 2006-05-18  Tom Tromey  <tromey@redhat.com>
3234
3235         * testsuite/libjava.special/special.exp (gcj_special_pr21115):
3236         Renamed.
3237         (gcj_write_and_byte_compile): New proc.
3238         (gcj_special_lazy_illegal_access): Likewise.
3239
3240 2006-05-18  Mark Wielaard  <mark@klomp.org>
3241
3242         Imported GNU Classpath 0.91
3243         * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
3244
3245         * sources.am: Regenerated.
3246         * gcj/javaprims.h: Regenerated.
3247         * Makefile.in: Regenerated.
3248         * gcj/Makefile.in: Regenerated.
3249         * include/Makefile.in: Regenerated.
3250         * testsuite/Makefile.in: Regenerated.
3251
3252         * gnu/java/lang/VMInstrumentationImpl.java: New override.
3253         * gnu/java/net/local/LocalSocketImpl.java: Likewise.
3254         * gnu/classpath/jdwp/VMMethod.java: Likewise.
3255         * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
3256         interface.
3257         * java/lang/Thread.java: Add UncaughtExceptionHandler.
3258         * java/lang/reflect/Method.java: Implements GenericDeclaration and
3259         isSynthetic(),
3260         * java/lang/reflect/Field.java: Likewise.
3261         * java/lang/reflect/Constructor.java
3262         * java/lang/Class.java: Implements Type, GenericDeclaration,
3263         getSimpleName() and getEnclosing*() methods.
3264         * java/lang/Class.h: Add new public methods.
3265         * java/lang/Math.java: Add signum(), ulp() and log10().
3266         * java/lang/natMath.cc (log10): New function.
3267         * java/security/VMSecureRandom.java: New override.
3268         * java/util/logging/Logger.java: Updated to latest classpath
3269         version.
3270         * java/util/logging/LogManager.java: New override.
3271
3272 2006-05-15  Bryce McKinlay  <mckinlay@redhat.com>
3273
3274         PR libgcj/27352
3275         * java/lang/Class.java (getClassLoaderInternal): New method.
3276         (forName (String, Class)): Use getClassLoaderInternal.
3277         (getPackage): Likewise.
3278         (getResource): Likewise.
3279         (getResourceAsStream): Likewise.
3280         (desiredAssertionStatus): Likewise.
3281
3282 2006-05-15  Andreas Tobler  <a.tobler@schweiz.ch>
3283
3284         * stacktrace.cc (StackTrace::FillInFrameInfo): Use
3285         UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the
3286         klass->methods[j].ncode.
3287
3288 2006-05-13  Tom Tromey  <tromey@redhat.com>
3289
3290         * sources.am, Makefile.in: Rebuilt.
3291         * Makefile.am (nat_source_files): Mention natVMChannels.cc, not
3292         natChannels.cc.
3293         * java/nio/channels/natVMChannels.cc: Renamed from
3294         natChannels.cc.
3295         * java/nio/channels/Channels.java: Removed.
3296         * java/nio/channels/natChannels.cc: Removed.
3297         * java/nio/channels/VMChannels.java: New file.
3298
3299 2006-05-13  Tom Tromey  <tromey@redhat.com>
3300
3301         * sources.am, Makefile.in: Rebuilt.
3302         * java/text/DateFormat.java: Removed.
3303
3304 2006-05-13  Tom Tromey  <tromey@redhat.com>
3305
3306         * sources.am, Makefile.in: Rebuilt.
3307         * gnu/java/net/protocol/jar/Connection.java: Removed.
3308         * java/net/JarURLConnection.java: Removed.
3309
3310 2006-05-13  Tom Tromey  <tromey@redhat.com>
3311
3312         * include/java-interp.h (_Jv_InterpMethod::dump_object): Removed
3313         declaration.
3314
3315 2006-05-12  Tom Tromey  <tromey@redhat.com>
3316
3317         * sources.am, Makefile.in: Rebuilt.
3318         * java/util/logging/LogManager.java: Removed.
3319         * java/util/logging/Logger.java (resetLogger): New method, from
3320         Classpath.
3321         * java/io/RandomAccessFile.java: Removed.
3322         * gnu/java/nio/channels/FileChannelImpl.java (create): New
3323         method.
3324         (FileChannelImpl): Now private.
3325         * java/io/FileInputStream.java: Removed.
3326         * java/io/FileOutputStream.java: Removed.
3327         * java/security/AccessControlContext.java: Removed.
3328         * java/lang/ThreadLocal.java: Removed.
3329         * java/lang/InheritableThreadLocal.java: Removed.
3330         * java/lang/Thread.java (locals): New field.
3331         (getThreadLocals): New method.
3332         * java/lang/natThread.cc (finish_): Clear 'locals'.
3333
3334 2006-05-11  Bryce McKinlay  <mckinlay@redhat.com>
3335
3336         * gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
3337         fails, don't try again.
3338         (use_addr2line): Field no longer final.
3339
3340 2006-05-11  Bryce McKinlay  <mckinlay@redhat.com>
3341
3342         * gnu/gcj/runtime/NameFinder.java (blacklist): New static field.
3343         (lookup): If addr2line fails to find an address, flag the binary as
3344         having no debug info and avoid calling addr2line on it again.
3345
3346 2006-05-11  David Daney  <ddaney@avtrex.com>
3347
3348         * testsuite/libjava.compile/PR20418.java: New.
3349         * testsuite/libjava.compile/PR20418.xfail: New.
3350
3351 2006-05-11  Andrew Haley  <aph@redhat.com>
3352
3353         * gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
3354         line.
3355
3356 2006-05-10  Andrew Haley  <aph@redhat.com>
3357
3358         * java/lang/natClassLoader.cc: Add comments.
3359
3360 2006-05-09  Andrew Haley  <aph@redhat.com>
3361
3362         * prims.cc (_Jv_soleIndirectCompiledEngine): New.
3363         * include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
3364         Remove body.
3365         (_Jv_CompiledEngine::allocate_field_initializers): New.
3366         (_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
3367         allocate_field_initializers.
3368         (class _Jv_IndirectCompiledClass): New.
3369         (struct _Jv_IndirectCompiledEngine): New.
3370         * java/lang/Class.h: (IndirectCompiledEngine): New.
3371         * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
3372         engine to _Jv_soleIndirectCompiledEngine
3373         * link.cc (ensure_fields_laid_out): Call
3374         engine->allocate_field_initializers().
3375
3376 2006-05-06  Andreas Tobler  <a.tobler@schweiz.ch>
3377
3378         * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for
3379         HP-UX and add appropriate extension for shared libraries, sl.
3380         (gcj_jni_test_one): Likewise.
3381
3382         * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared
3383         library extensions.
3384
3385 2006-05-05  Tom Tromey  <tromey@redhat.com>
3386
3387         PR libgcj/27294:
3388         * java/lang/natVMClassLoader.cc (defineClass): Throw
3389         VirtualMachineError if no interpreter configured.
3390
3391 2006-05-03  Andrew Haley  <aph@redhat.com>
3392
3393         PR libgcj/27352
3394         * java/lang/Class.java (getClassLoader(Class)): New.
3395         forName(String, Class): New.
3396         * java/lang/natClass.cc (getClassLoader(Class)): New.
3397
3398 2006-05-02  Andrew Haley  <aph@redhat.com>
3399
3400         * prims.cc (_Jv_NewMultiArray): Check for phantom class.
3401
3402 2006-05-04  Tom Tromey  <tromey@redhat.com>
3403
3404         PR libgcj/26861:
3405         * interpret.cc (run) <insn_getfield>: Removed 0xffff check.
3406         <insn_putfield>: Likewise.
3407         (NULLCHECK): Define unconditionally.
3408         * link.cc (ensure_class_linked): Removed dead code.
3409
3410 2006-05-04  Tom Tromey  <tromey@redhat.com>
3411
3412         * java/lang/Class.h (JV_STATE_LOADING): Added comment.
3413         * Makefile.in: Rebuilt.
3414         * Makefile.am (nat_source_files): Added natSystemClassLoader.cc.
3415         * gnu/gcj/runtime/natSystemClassLoader.cc: New file.
3416         * gnu/gcj/runtime/SystemClassLoader.java (nativeClasses):
3417         New field.
3418         (loadedClasses): Removed.
3419         (findClass): Declare.
3420         (addClass): Add to nativeClasses, not loadedClasses.
3421
3422 2006-05-04  Andrew Haley  <aph@redhat.com>
3423
3424         PR java/26858
3425         * testsuite/libjava.lang/PR26858.xfail: Delete.
3426
3427 2006-05-02  Bryce McKinlay  <mckinlay@redhat.com>
3428
3429         * testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
3430         -findirect-dispatch compilation.
3431
3432 2006-05-01  Andreas Tobler  <a.tobler@schweiz.ch>
3433
3434         * configure.ac: Simplify the mmap check a bit more.
3435         * configure: Rebuilt.
3436         * include/config.h.in: Likewise.
3437
3438 2006-05-01  Roger Sayle  <roger@eyesopen.com>
3439             Andrew Haley  <aph@redhat.com>
3440
3441         * boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR
3442         before calling GC_register_has_static_roots_callback.
3443         (_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and
3444         HAVE_DLADDR before calling dladdr.
3445
3446 2006-04-28  Bryce McKinlay  <mckinlay@redhat.com>
3447
3448         * link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index
3449         to resolve_method.
3450         * interpret.cc (insn_invokevirtual): Use method->index, not
3451         vtable_index. Check accflag FINAL to determine finals. Only do
3452         explicit null check if calling a final method. Use
3453         throw_null_pointer_exception.
3454         (invokevirtual_resolved): Likewise.
3455         (null_pointer_exc): Remove static field.
3456         (throw_null_pointer_exception): Always define. Throw a new
3457         NullPointerException every time.
3458         * include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
3459         field.
3460         * include/execution.h (resolve_method): Remove vtable_index argument.
3461
3462 2006-04-28  Andreas Tobler  <a.tobler@schweiz.ch>
3463
3464         * configure.ac: Add an additional checks for dladdr and dlopen on dld.
3465         * configure: Rebuilt.
3466
3467 2006-04-25  Tom Tromey  <tromey@redhat.com>
3468
3469         * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
3470         Include platform.h.  Set GC_DEBUG before including gc.h, if
3471         needed.
3472
3473 2006-04-25  Andrew Haley  <aph@redhat.com>
3474
3475         * java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
3476         * boehm.cc: Don't include link.h.
3477         (_Jv_RegisterLibForGc): Cast away const when calling dladdr().
3478
3479 2006-04-24  Tom Tromey  <tromey@redhat.com>
3480
3481         * java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
3482
3483 2006-04-21  Andrew Haley  <aph@redhat.com>
3484
3485         * include/execution.h (struct _Jv_CompiledEngine): Define for
3486         compiled classes.
3487         * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call
3488         _Jv_RegisterLibForGc.
3489         (_Jv_RegisterClasses_Counted): Likewise.
3490         (_Jv_NewClassFromInitializer): New.
3491         (_Jv_RegisterNewClasses): New.
3492         * sources.am: Regenerate.
3493         * boehm.cc (_Jv_GC_has_static_roots): new.
3494         (_Jv_InitGC): Call GC_register_has_static_roots_callback.
3495         (filename_node, find_file, _Jv_print_gc_store, new_node,
3496         _Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New.
3497         * scripts/makemake.tcl: Add -fno-indirect-classes.
3498         * Makefile.in: Regenerate.
3499         * link.cc (resolve_pool_entry): Allocate constant pool.
3500         Allocate fields.
3501         
3502 2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>
3503
3504         * configure.ac: Weaken the check for MMAP.
3505         * configure: Rebuilt.
3506         * include/config.h.in: Likewise.
3507
3508 2006-04-20  Bryce McKinlay  <mckinlay@redhat.com>
3509
3510         PR libgcj/27170
3511         * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
3512         dlopen(). From Anthony Green.
3513
3514 2006-04-20  Tom Tromey  <tromey@redhat.com>
3515
3516         PR libgcj/21941:
3517         * gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
3518         UnknownHostException if needed.
3519         * gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
3520         UnknownHostException if needed.
3521
3522 2006-04-19  Tom Tromey  <tromey@redhat.com>
3523
3524         * Makefile.in: Rebuilt.
3525         * Makefile.am (CLEANFILES): Removed all_java_filelist_files,
3526         all_java_deps_files.
3527
3528 2006-04-19  Tom Tromey  <tromey@redhat.com>
3529
3530         * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
3531         handle EINTR.
3532
3533 2006-04-17  Tom Tromey  <tromey@redhat.com>
3534
3535         PR libgcj/27171:
3536         * testsuite/libjava.lang/pr27171.java: New file.
3537         * testsuite/libjava.lang/pr27171.out: New file.
3538         * gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
3539         true if we've seen a high surrogate.
3540         (write): Handle high surrogates at the end of the stream.
3541         Properly emit isolated low surrogates.
3542
3543 2006-04-17  Andreas Tobler  <a.tobler@schweiz.ch>
3544
3545         * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
3546         of failure.
3547
3548 2006-04-13  Tom Tromey  <tromey@redhat.com>
3549
3550         PR libgcj/26522:
3551         * Makefile.in: Rebuilt.
3552         * Makefile.am (libsubdir): New variable.
3553
3554 2006-04-12  NAKATA Maho  <maho@FreeBSD.org> 
3555
3556         PR libgcj/23829
3557         * configure.ac: Link against -lpthread rather than -lc_r on
3558         FreeBSD 5 and above.
3559         * configure: Regenerate.
3560
3561 2006-04-11  Bryce McKinlay  <mckinlay@redhat.com>
3562
3563         * gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
3564         of package-private field "loadedClasses" using reflection.
3565         * java/lang/VMCompiler.java (compileClass): Remove unreachable catch
3566         block.
3567
3568 2006-04-10  Matthias Klose  <doko@debian.org>
3569
3570         * testsuite/lib/libjava.exp (libjava_init): Recognize multilib
3571         directory names containing underscores.
3572
3573 2006-04-10  Andrew Haley  <aph@redhat.com>
3574
3575         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
3576         (SIGNAL_HANDLER): Mark arg as unused.
3577         * configure.host (x86_64-* DIVIDESPEC): Use
3578         fno-use-divide-subroutine.
3579
3580 2006-04-07  Andrew Haley  <aph@redhat.com>
3581
3582         * java/net/InetAddress.java: Throw an UnknownHostException if
3583         lookup fails.
3584
3585 2006-04-05  Tom Tromey  <tromey@redhat.com>
3586
3587         PR libgcj/26625:
3588         * Makefile.in: Rebuilt.
3589         * Makefile.am (libgcj-$(gcc_version).jar): Depend on
3590         classpath/lib/compile-classes.
3591
3592 2006-04-05  Ranjit Mathew  <rmathew@gcc.gnu.org>
3593
3594         * configure.host: Add -fno-omit-frame-pointer to libgcj_flags for
3595         MinGW since EBP is used for backtracking through call frames on this
3596         platform.
3597
3598 2006-04-05  Archit Shah  <ashah@redhat.com>
3599
3600         PR java/25414
3601         * gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments):
3602         Add classpath argument.
3603         * gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust
3604         caller.
3605         * gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise.
3606         * gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise.
3607         * gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New.
3608         * gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call
3609         mkdirs for destination directory, correct handling of superclasses
3610         and interfaces of the remote class, correct handling of exceptions
3611         declared by remote methods.
3612
3613 2006-04-04  Tom Tromey  <tromey@redhat.com>
3614
3615         PR libgcj/26990:
3616         * prims.cc (_Jv_RunMain): Use exitNoChecksAccessor.
3617         * gnu/java/lang/natMainThread.cc (call_main): Use
3618         exitNoChecksAccessor.
3619         * testsuite/libjava.lang/pr26990.out: New file.
3620         * testsuite/libjava.lang/pr26990.java: New file.
3621         * java/lang/Runtime.java (exitNoChecks): New method.
3622         (exitNoChecksAccessor): Likewise.
3623         (exit): Call exitNoChecks.
3624
3625 2006-04-03  Tom Tromey  <tromey@redhat.com>
3626
3627         * Makefile.in: Rebuilt.
3628         * Makefile.am (ZIP): Removed.
3629         (libgcj-$(gcc_version).jar): Use $(JAR).
3630         (src.zip): Likewise.
3631         * configure: Rebuilt.
3632         * configure.ac: Check for jar.  Removed code to set ZIP.
3633
3634 2006-04-03  Andrew Haley  <aph@redhat.com>
3635
3636         * testsuite/libjava.lang/Float_2.java: New file.
3637
3638 2006-03-31  Andreas Tobler  <a.tobler@schweiz.ch>
3639
3640         * posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
3641
3642 2006-03-30  Tom Tromey  <tromey@redhat.com>
3643
3644         PR java/26042:
3645         * testsuite/libjava.compile/pr26042.java: New file.
3646
3647 2006-03-29  Tom Tromey  <tromey@redhat.com>
3648
3649         * sources.am, Makefile.in: Rebuilt.
3650         * scripts/makemake.tcl: Scan classpath/external/relaxngDatatype.
3651
3652 2006-03-29  Tom Tromey  <tromey@redhat.com>
3653
3654         PR java/26390:
3655         * testsuite/libjava.lang/pr26390.out: New file.
3656         * testsuite/libjava.lang/pr26390.java: New file.
3657         * sources.am, Makefile.in: Rebuilt.
3658         * scripts/makemake.tcl: Compile gnu/java/awt/peer/swing.
3659
3660 2006-03-29  Tom Tromey  <tromey@redhat.com>
3661
3662         * posix.cc (_Jv_platform_nanotime): Look for CLOCK_MONOTONIC and
3663         CLOCK_HIGHRES.
3664
3665 2006-03-28  Anthony Balkissoon  <abalkiss@redhat.com>
3666
3667         * scripts/unicode-muncher.pl: Removed this file.
3668         * scripts/MakeCharTables.java: Likewise.
3669         * scripts/unicode-to-chartables.pl: New file.
3670         * java/lang/natCharacter.cc: 
3671         (UNASSIGNED_TYPE): New field.
3672         (UNASSIGNED_DIGIT): Likewise.
3673         (UNASSIGNED_DIRECTION): Likewise.
3674         (UNASSIGNED_NUMERIC_VALUE): Likewise.
3675         (PRIVATE_TYPE): Likewise.
3676         (PRIVATE_DIRECTION): Likewise.
3677         (readCodePoint): New method.
3678         (getType(jint)): Likewise.
3679         (toLowerCase(jint)): Likewise.
3680         (toUpperCase(jint)): Likewise.
3681         (toTitleCase(jint)): Likewise.
3682         (digit(jint, jint)): Likewise.
3683         (getNumericValue(jint)): Likewise.
3684         (getDirectionality(jint)): Likewise.
3685         (readChar),
3686         (getType(jchar)),
3687         (toLowerCase(jchar)),
3688         (toUpperCase(jchar)),
3689         (toTitleCase(jchar)),
3690         (digit(jchar, jint)),
3691         (getNumericValue(jchar)),
3692         (getDirectionality(jchar)): Changed references from data to data[0], 
3693         blocks to blocks[0], direction to direction[0], numValue to 
3694         numValue[0], upper to upper[0], lower to lower[0], and shift to 
3695         shift[0] to reflect the new structures in java-chartables.h.    
3696         * java/lang/Character.java:
3697         (readCodePoint): Declared new native method.
3698         (getType(int)): Likewise.
3699         (toLowerCase(int)): Likewise.
3700         (toUpperCase(int)): Likewise.
3701         (toTitleCase(int)): Likewise.
3702         (digit(int, int)): Likewise.
3703         (getNumericValue(int)): Likewise.
3704         (getDirectionality(int)): Likewise.
3705         (isLowerCase(int)): New method.
3706         (isUpperCase(int)): Likewise.
3707         (itTitleCase(int)): Likewise.
3708         (isDigit(int)): Likewise.
3709         (isDefined(int)): Likewise.
3710         (isLetter(int)): Likewise.
3711         (isLetterOrDigit(int)): Likewise.
3712         (isJavaIdentifierStart(int)): Likewise.
3713         (isJavaIdentifierPart(int)): Likewise.
3714         (isUnicodeIdentifierStart(int)): Likewise.
3715         (isUnicodeIdentifierPart(int)): Likewise.
3716         (isIdentifierIgnorable(int)): Likewise.
3717         (isSpaceChar(int)): Likewise.
3718         (isWhitespace(int)): Likewise.
3719         (isISOControl(int)): Likewise.
3720         (isMirrored(int)): Likewise.
3721         * include/java-chartables.h: Generated from 
3722         scripts/unicode-to-chartables.h.
3723
3724 2006-03-24  David Daney  <ddaney@avtrex.com)
3725
3726         * testsuite/libjava.lang/PR26858.java: New test.
3727         * testsuite/libjava.lang/PR26858.out: Ditto.
3728         * testsuite/libjava.lang/PR26858.xfail: Ditto.
3729
3730 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3731
3732         * include/sh-signal.h (MAKE_THROW_FRAME): Change into empty
3733         macro.
3734         
3735 2006-03-15  Tom Tromey  <tromey@redhat.com>
3736
3737         * testsuite/libjava.jacks/jacks.xfail: Removed
3738         13.1-runtime-method-5.
3739
3740 2006-03-15  Tom Tromey  <tromey@redhat.com>
3741
3742         PR java/26638:
3743         * link.cc (get_interfaces): Skip <clinit>.
3744         (append_partial_itable): Likewise.
3745
3746 2006-03-10  Tom Tromey  <tromey@redhat.com>
3747
3748         PR libgcj/25713:
3749         * java/util/zip/Deflater.java (flush): New method.
3750         * sources.am, Makefile.in: Rebuilt.
3751         * java/util/zip/DeflaterOutputStream.java: Removed.
3752         * java/util/zip/InflaterInputStream.java: Likewise.
3753         * java/util/zip/GZIPInputStream.java: Likewise.
3754         * java/util/zip/GZIPOutputStream.java: Likewise.
3755
3756 2006-03-10  Andreas Tobler  <a.tobler@schweiz.ch>
3757
3758         * include/powerpc-signal.h: Fix typo in comment.
3759
3760 2006-03-09  Mark Wielaard  <mark@klomp.org>
3761
3762         Imported GNU Classpath 0.90
3763         * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
3764         * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
3765         * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
3766         * java/lang/Math.java: New override file.
3767         * java/lang/Character.java: Merged from Classpath.
3768         (start, end): Now 'int's.
3769         (canonicalName): New field.
3770         (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
3771         (UnicodeBlock): Added argument.
3772         (of): New overload.
3773         (forName): New method.
3774         Updated unicode blocks.
3775         (sets): Updated.
3776         * sources.am: Regenerated.
3777         * Makefile.in: Likewise.
3778
3779 2006-03-09  Tom Tromey  <tromey@redhat.com>
3780
3781         PR libgcj/23495:
3782         * java/lang/natString.cc (_Jv_NewString): Use memcpy.
3783         (equals): Use memcmp.
3784         (contentEquals): Likewise.
3785         (getChars): Use memcpy.
3786         (toCharArray): Likewise.
3787         (regionMatches): Use memcmp.
3788         (regionMatches): Likewise.
3789         (startsWith): Likewise.
3790         (concat): Use memcpy.
3791         (valueOf): Likewise.
3792
3793 2006-03-09  Tom Tromey  <tromey@redhat.com>
3794
3795         * configure: Rebuilt.
3796         * configure.ac (HAVE_CLOCK_GETTIME): Put -lrt in THREADLIBS as
3797         well.
3798
3799 2006-03-09  Tom Tromey  <tromey@redhat.com>
3800
3801         PR libgcj/24461:
3802         * java/util/zip/InflaterInputStream.java (fill): Throw exception
3803         if stream is truncated.
3804
3805 2006-03-09  Tom Tromey  <tromey@redhat.com>
3806
3807         * win32.cc (_Jv_platform_nanotime): New function.
3808         * include/win32.h (_Jv_platform_nanotime): Declare.
3809         * posix.cc (_Jv_platform_nanotime): New function.
3810         * include/posix.h (_Jv_platform_nanotime): Declare.
3811         * java/lang/natSystem.cc (nanoTime): New method.
3812         * java/lang/System.java (nanoTime): Declare.
3813         * include/config.h.in, configure: Rebuilt.
3814         * configure.ac: Check for clock_gettime.
3815
3816 2006-03-08  David Daney  <ddaney@avtrex.com>
3817
3818         * configure.ac (LD): Add AC_CHECK_TOOL for ld.
3819         (LD_START_STATIC_SPEC): New AC_SUBST, set with ld check.
3820         (LD_FINISH_STATIC_SPEC): Ditto
3821         * configure: Regenerated.
3822         * libgcj.spec.in: Wrap -lgcj in LD_START_STATIC_SPEC and
3823         LD_FINISH_STATIC_SPEC.
3824         
3825 2006-03-07  Tom Tromey  <tromey@redhat.com>
3826
3827         PR libgcj/26103:
3828         * java/lang/ClassLoader.java (loadClass): Don't throw
3829         StringIndexOutOfBoundsException if name is empty.
3830         * java/lang/natClassLoader.cc (loadClassFromSig): Throw exception
3831         if class not found.
3832
3833 2006-03-07  David Daney  <ddaney@avtrex.com>
3834
3835         * include/java-interp.h: Removed extern "C" around #include <ffi.h>.
3836
3837 2006-03-07  David Daney  <ddaney@avtrex.com>
3838
3839         * link.cc: Include ffi.h if USE_LIBFFI defined.
3840         
3841 2006-03-03  Tom Tromey  <tromey@redhat.com>
3842
3843         * interpret.cc (do_allocate_static_fields): Added comment.
3844
3845 2006-03-01  Tom Tromey  <tromey@redhat.com>
3846
3847         PR java/24321:
3848         * testsuite/libjava.lang/pr24321.java: New file.
3849         * testsuite/libjava.lang/pr24321.out: New file.
3850         * java/lang/natClass.cc (isInstance): Don't initialize class.
3851         (isAssignableFrom): Likewise.
3852
3853 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
3854
3855         PR other/26208
3856         * exception.cc (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
3857         of _Unwind_GetIP.
3858         * include/i386-signal.h (MAKE_THROW_FRAME): Change into empty macro.
3859         (HANDLE_DIVIDE_OVERFLOW): Don't adjust _res->eip if falling through
3860         to throw.
3861         * include/x86_64-signal.h (MAKE_THROW_FRAME): Change into empty
3862         macro.
3863         * include/powerpc-signal.h (MAKE_THROW_FRAME): Change into empty
3864         macro.
3865
3866 2006-02-23  Scott Gilbertson  <scottg@mantatest.com>
3867
3868         * gnu/awt/j2d/IntegerGraphicsState.java (getClip): Clone clip
3869         before returning, handle null clip.
3870         (getClipBounds): Handle null clip.
3871         * gnu/awt/j2d/Graphics2DImpl.java (clipRect): Handle null clip.
3872         * gnu/awt/xlib/XCanvasPeer.java (): 
3873         (getLocationOnScreen): Implement.
3874         * classpath/gnu/java/awt/peer/GLightweightPeer.java
3875         (repaint): Merged with Classpath.
3876         * classpath/java/awt/Graphics.java (hitClip): Merged with
3877         Classpath.
3878
3879 2006-02-21  Robert Schuster  <robertschuster@fsfe.org>
3880
3881         * link.cc: Added variant of create_error_method that
3882         will not complain about unused parameter if compiled with
3883         USE_LIBFFI not being defined.
3884         (_Jv_Linker::find_field_helper): Fixed indentation.
3885         (_Jv_Linker::create_error_method): Fixed indentation.
3886         (_Jv_Linker::link_symbol_table): Fixed indentation.
3887
3888 2006-02-16  Andrew Haley  <aph@redhat.com>
3889
3890         * stacktrace.cc (GetStackTraceElements): Call
3891         gnu::gcj::runtime::NameFinder::removeUnknown() to determine if
3892         non-Java frames should be removed from a printed stack trace.
3893         Pass methodName to getLineNumberForFrame().
3894         (getLineNumberForFrame): Set method_name from info.dli_sname.
3895         * gnu/gcj/runtime/NameFinder.java (removeUnknown): New method.
3896         (remove_unknown): New variable.
3897         * include/java-stack.h (_Jv_StackTrace::getLineNumberForFrame):
3898         Add methodName arg.
3899
3900 2006-02-15  Matthias Klose  <doko@debian.org>
3901
3902         * gnu/java/nio/charset, gnu/java/net/protocol/file,
3903         gnu/regexp: Remove empty directories.
3904
3905 2006-02-09  Bryce McKinlay  <mckinlay@redhat.com>
3906
3907         * java/lang/Class.h (_Jv_IDispatchTable): Make it a struct. Put 
3908         'itable' inline, instead of as a pointer.
3909         (java::lang::Class): Put 'idt' in anonymous union with 'ioffsets'.
3910         * link.cc (null_idt): Update definition.
3911         (_Jv_Linker::prepare_constant_time_tables): Allocate klass->idt
3912         as a single struct. Use _Jv_AllocBytes, not _Jv_AllocRawObj.
3913         (_Jv_Linker::generate_itable): Update to use 'ioffsets'.
3914         (_Jv_Linker::find_iindex): Likewise. Update comment.
3915         * java/lang/natClass.cc (_Jv_LookupInterfaceMethodIdx): Update for
3916         _Jv_IDispatchTable change.
3917         (_Jv_IsAssignableFrom): Likewise.
3918
3919 2006-02-08  Bryce McKinlay  <mckinlay@redhat.com>
3920
3921         PR libgcj/25187:
3922         * gnu/gcj/io/natSimpleSHSStream.cc
3923         (gnu::gcj::io::SimpleSHSStream::shsFinal): Remove bogus cast.
3924         * interpret.cc (_Jv_InterpMethod::run): Simplify arguments to
3925         _Jv_InterpFrame(). 
3926         * boehm.cc: #undef some autoconf macros before including gc-config.h.
3927         (_Jv_MarkObject): Don't mark the class, it is reachable via the vtable.
3928         (_Jv_MarkArray): Likewise.
3929         * java/lang/ref/natReference.cc (java::lang::ref::Reference::create):
3930         Simplify _Jv_GCRegisterDisappearingLink() call.
3931         * java/lang/Class.h (getComponentType): Use element_type.
3932         (element_type): New field declaration, as a union with "methods".
3933         * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Use "element_type".
3934         * java/net/natVMNetworkInterfacePosix.cc
3935         (java::net::VMNetworkInterface::getInterfaces): Add "int" cast to
3936         avoid sign comparison warning.  
3937         * include/java-interp.h (_Jv_InterpFrame): Take thread as second
3938         argument, not parent call frame.
3939         * include/x86_64-signal.h (MAKE_THROW_FRAME): Use "gregs" directly,
3940         without a cast.
3941         (restore_rt): Declare with hidden visibility, not "static".
3942         * posix.cc (_Jv_platform_initProperties): Make "tmpdir" a string
3943         constant.
3944         * jni.cc (_Jv_JNI_DestroyJavaVM): Use a union to avoid strict alias
3945         warning.
3946
3947 2006-02-08  Bryce McKinlay  <mckinlay@redhat.com>
3948
3949         PR libgcj/26113:
3950         * link.cc (_Jv_Linker::print_class_loaded): Declare string constants
3951         as "const char *".
3952         * verify.cc (verify_fail): Likewise.
3953         * gnu/classpath/natSystemProperties.cc (file_encoding): Likewise.
3954         * interpret.cc (throw_internal_error, throw_class_format_error):
3955         Likewise.
3956         * gcj/javaprims.h (_Jv_hashUtf8String, _Jv_Utf8Const::space_needed, 
3957         _Jv_Utf8Const::init, _Jv_makeUtf8Const): Likewise.
3958         * java/lang/Class.h (_Jv_InitPrimClass): Likewise.
3959         * include/jvm.h (_Jv_strLengthUtf8, _Jv_makeUtf8Const): Likewise.
3960         * defineclass.cc (throw_internal_error, throw_no_class_def_found_error,
3961         is_attribute_name): Likewise.
3962         * prims.cc (_Jv_strLengthUtf8, _Jv_hashUtf8String, _Jv_Utf8Const::init,
3963         _Jv_makeUtf8Const, _Jv_InitPrimClass): Likewise.
3964
3965 2006-02-08  Tom Tromey  <tromey@redhat.com>
3966
3967         PR libgcj/26063, PR libgcj/17978, PR libgcj/10598:
3968         * defineclass.cc (parse): Use _Jv_AllocRawObj.
3969         (read_constpool): Likewise.
3970         (read_one_code_attribute): Use internal function name.
3971         (handleConstantPool): Use _Jv_AllocRawObj.
3972         (handleInterfacesBegin): Likewise.
3973         (handleFieldsBegin): Likewise.
3974         (handleMethodsBegin): Likewise.
3975         (handleCodeAttribute): Likewise.
3976         (handleMethodsEnd): Likewise.
3977         * include/jvm.h (new_vtable): Use _Jv_AllocRawObj.
3978         * interpret.cc (do_allocate_static_fields): Use _Jv_AllocRawObj.
3979         Allocate reference fields separately.
3980         * link.cc (prepare_constant_time_tables): Use _Jv_AllocRawObj.
3981         (add_miranda_methods): Likewise.
3982         (generate_itable): Use _Jv_AllocBytes.
3983         (find_iindex): Likewise.
3984         (struct method_closure): New structure.
3985         (create_error_method): Use struct method_closure; allocate with
3986         _Jv_AllocBytes.
3987         (ensure_fields_laid_out): Separate reference fields from
3988         non-reference fields.
3989         * boehm.cc (_Jv_MarkObj): Mark vtable.  Only mark direct fields
3990         of Class.
3991         (_Jv_MarkArray): Mark vtable.
3992         (_Jv_AllocRawObj): Don't allocate objects of size 0.
3993         * include/execution.h
3994         (_Jv_ExecutionEngine::allocate_static_fields): Added 'int'
3995         parameter.
3996         (struct _Jv_CompiledEngine): Updated.
3997         (class _Jv_InterpreterEngine): Updated.
3998
3999 2006-02-08  Tom Tromey  <tromey@redhat.com>
4000
4001         PR java/22578:
4002         * gcj/javaprims.h: Updated.
4003         * sources.am, Makefile.in: Rebuilt.
4004         * java/lang/natDouble.cc (doubleToLongBits): Moved to VMDouble.
4005         (doubleToRawLongBits): Likewise.
4006         (longBitsToDouble): Likewise.
4007         (toString): Likewise.
4008         (parseDouble): Likewise.
4009         * java/lang/natFloat.cc (floatToIntBits): Moved to VMFloat.
4010         (floatToRawIntBits): Likewise.
4011         (intBitsToFloat): Likewise.
4012         * java/lang/VMDouble.java: New file.
4013         * java/lang/VMFloat.java: New file.
4014         * java/lang/Float.java, java/lang/Double.java: Removed.
4015
4016 2006-02-06  Tom Tromey  <tromey@redhat.com>
4017