OSDN Git Service

* interpret.cc (run_debug): Remove comment.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-01-29  Tom Tromey  <tromey@redhat.com>
2
3         * interpret.cc (run_debug): Remove comment.
4         (STOREA): Reformat.
5         (STOREI): Likewise.
6         (STOREF): Likewise.
7         (STOREL): Likewise.
8         (STORED): Likewise.
9         (POKEI): Likewise.
10         (run_normal_debug): Likewise.
11         (run_synch_object_debug): Likewise.
12         (run_class_debug): Likewise.
13         (run_synch_class_debug): Likewise.
14         (get1s): Likewise.
15         (get1u): Likewise.
16         (get2u): Likewise.
17         (get4): Likewise.
18         (NULLARRAYCHECK): Likewise.
19         (ARRAYBOUNDSCHECK): Likewise.
20         * interpret-run.cc (insn_target) <breakpoint>: Tidy.
21
22 2007-01-29  Tom Tromey  <tromey@redhat.com>
23
24         * configure, Makefile.in: Rebuilt.
25         * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
26         * configure.ac (BASH_JAR): Removed conditional.
27         (JAR): Prefer the jar found by AC_CHECK_PROGS.
28
29 2007-01-29  Tom Tromey  <tromey@redhat.com>
30
31         * Makefile.in: Rebuilt.
32         * Makefile.am (interpret.lo): New target.  Add -fwrap to
33         AM_CXXFLAGS.
34
35 2007-01-29  Keith Seitz  <keiths@redhat.com>
36
37         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
38         Define.
39         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
40         gcj. All jvmti object types now are defined to be their
41         corresponding java classes.
42         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
43         jthread to Thread*.
44         (_Jv_JVMTI_ResumeThread): Likewise.
45         (_Jv_JVMTI_InterruptThread): Likewise.
46         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
47         * gnu/classpath/jdwp/natVMVirtualMachine.cc
48         (jdwpClassPrepareCB): Likewise.
49         (jdwpThreadEndCB): Likewise.
50         (jdwpThreadStartCB): Likewise.
51         (jdwpVMInitCB): Likewise.
52  
53 2007-01-28  Michele Sandri  <gpointorama@gmail.com>
54
55         * gnu/java/nio/channels/natFileChannelWin32.cc
56         (lock): Implemented.
57         (unlock): Implemented.
58
59 2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>
60
61         PR libgcj/30513
62         * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
63         libgcj_flags to undefine 'sun' at compile time.
64         * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
65         Sparc.
66         (write_barrier): Likewise.
67
68 2007-01-27  Keith Seitz  <keiths@redhat.com>
69
70         * gnu/classpath/jdwp/natVMVirtualMachine.cc
71         (getAllClassMethods): Move error handling to ...
72         (throw_jvmti_error): ... here.
73         (jdwpClassPrepareCB): New function.
74         (jdwpThreadEndCB): New function.
75         (jdwpThreadStartCB): New function.
76         (jdwpVMDeathCB): New function.
77         (jdwpVMInitCB): Define and enable callbacks for
78         ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
79
80 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
81
82         * Makefile.am (generic_header_files): Add $(inner_nat_headers).
83         * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
84         (MYGCJH): New variable.
85         (compile-tests): New goal.
86         * Makefile.in: Rebuilt.
87         * testsuite/Makefile.in: Rebuilt.
88
89 2007-01-26  Tom Tromey  <tromey@redhat.com>
90
91         * Updated headers.
92
93 2007-01-25  Tom Tromey  <tromey@redhat.com>
94
95         PR libgcj/29594:
96         * gnu/gcj/convert/Convert.java (main): Correctly handle missing
97         input or output encodings.  Removed unused local variables.
98
99 2007-01-25  Keith Seitz  <keiths@redhat.com>
100
101         * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
102         * gnu/classpath/jdwp/natVMVirtualMachine.cc
103         (_Jv_GetJDWP_JVMTIEnv): New function.
104         * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
105         (getSignature): Implement.
106         (getModifiers): Implement.
107
108 2007-01-25  Andrew Haley  <aph@redhat.com>
109
110         * configure, Makefile.in, include/config.h.in: Rebuilt.
111         * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
112         * configure.ac: Don't check for libmagic.
113         * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
114         p_magic_close, p_magic_buffer): New globals.
115         (init): Look up 'magic' functions.
116         (guessContentTypeFromBuffer): Updated.
117
118 2007-01-25  Keith Seitz  <keiths@redhat.com>
119
120         * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
121         (_Jv_JVMTI_Interface): Define GetMethodName.
122         * testsuite/libjava.jvmti/getmethodname.java: New file.
123         * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
124         * testsuite/libjava.jvmti/getmethodname.out: New file. 
125
126 2007-01-24  Kyle Galloway  <kgallowa@redhat.com>
127
128     * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
129     * libjava/testsuite/libjava.jvmti/interp: New folder.
130     * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
131
132 2007-01-24  Keith Seitz  <keiths@redhat.com>
133
134         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
135         CLASS_PREPARE notification.
136
137 2007-01-24  Keith Seitz  <keiths@redhat.com>
138
139         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
140         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
141         * interpret-run.cc: Implement insn_breakpoint.
142
143 2007-01-24  Keith Seitz  <keiths@redhat.com>
144
145         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
146         for VM_INIT and VM_DEATH instead of the JDWP notifications.
147
148 2007-01-24  Keith Seitz  <keiths@redhat.com>
149
150         * gnu/classpath/jdwp/natVMVirtualMachine.cc
151         (getAllClassMethods): Implement.
152
153 2007-01-24  Andrew Haley  <aph@redhat.com>
154
155         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
156         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
157         from being sibcalled.
158
159 2007-01-24  Andrew Haley  <aph@redhat.com>
160
161         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
162         * sources.am: Rebuild.
163
164 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
165
166         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
167         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
168
169 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
170
171         PR libgcj/30550
172         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
173         * Makefile.in: Regenerated.
174
175 2007-01-22  Keith Seitz  <keiths@redhat.com>
176
177         * gnu/classpath/jdwp/natVMVirtualMachine.cc
178         (getClassMethod): Implement.
179
180 2007-01-22  Keith  Seitz  <keiths@redhat.com>
181
182         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
183         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
184         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
185         (_Jv_JVMTI_Interface): Define GetClassStatus.
186
187 2007-01-22  Tom Tromey  <tromey@redhat.com>
188
189         * configure: Rebuilt.
190         * configure.ac (GCJ): Reverted patch of 2006-12-20.
191
192 2007-01-22  Tom Tromey  <tromey@redhat.com>
193
194         PR java/29812:
195         * testsuite/libjava.jni/pr29812.java: New file.
196         * testsuite/libjava.jni/pr29812_injar.java: New file.
197         * testsuite/libjava.jni/pr29812_injar.jar: New file.
198         * testsuite/libjava.jni/pr29812.out: New file.
199         * testsuite/libjava.jni/pr29812_injar.c: New file.
200         * testsuite/libjava.jni/pr29812_injar.h: New file.
201         * testsuite/libjava.jni/pr29812.jar: New file.
202         * testsuite/libjava.jni/pr29812.c: New file.
203         * testsuite/libjava.jni/pr29812.h: New file.
204         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
205         New proc.
206         (gcj_jni_invocation_test_one): Use it.
207         (gcj_jni_pr29812): New proc.
208         (gcj_jni_run): Use it.
209         * java/lang/natRuntime.cc (_load): Push a new system frame before
210         calling JNI_OnLoad.
211         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
212         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
213         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
214         <allocated_p>: Now bool.
215         <loader>: New field.
216         (_Jv_JNI_EnsureLocalCapacity): Updated.
217         (_Jv_JNI_NewLocalRef): Likewise.
218         (_Jv_JNI_NewLocalRef): Likewise.
219         (_Jv_JNI_PopLocalFrame): Likewise.
220         (_Jv_JNI_FindClass): Likewise.
221         (_Jv_GetJNIEnvNewFrame): Likewise.
222         (_Jv_JNI_AttachCurrentThread): Likewise.
223         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
224         (_Jv_GetJNIEnvNewFrame): Use it.
225         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
226
227 2007-01-22  Tom Tromey  <tromey@redhat.com>
228
229         * libtool-version: Bump current to 9.
230
231 2007-01-22  Andrew Haley  <aph@redhat.com>
232
233         * sysdep/alpha/locks.h (write_barrier): New.
234
235 2007-01-21  Matthias Klose  <doko@debian.org>
236
237         * Makefile.am (install-exec-hook): Use transformed name.
238         * Makefile.in: Regenerate.
239
240 2007-01-19  Keith Seitz  <keiths@redhat.com>
241
242         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
243         in methods and reformat.
244
245         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
246         MAYBE_UNUSED.
247
248 2007-01-18  Keith Seitz  <keiths@redhat.com>
249
250         From Macro Trudel <mtrudel@gmx.ch>:
251         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
252         Use JNICALL.
253
254 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
255
256         * jni.cc (_Jv_JNI_FindClass): Initialize class.
257         * testsuite/libjava.jni/findclass2.jar: New file.
258         * testsuite/libjava.jni/findclass2.h: New file.
259         * testsuite/libjava.jni/findclass2.java: New file
260         * testsuite/libjava.jni/findclass2.c: New file.
261         * testsuite/libjava.jni/findclass2.out: New file.
262
263 2007-01-18  Tom Tromey  <tromey@redhat.com>
264
265         * configure: Rebuilt.
266         * configure.ac: Use multi_basedir instead of libgcj_basedir.
267
268 2007-01-18  Gary Benson  <gbenson@redhat.com>
269
270         * gnu/java/nio/natVMPipeEcos.cc:
271         Renamed from gnu/java/nio/natPipeImplEcos.cc.
272         * gnu/java/nio/natVMPipePosix.cc:
273         Renamed from gnu/java/nio/natPipeImplPosix.cc.
274         * gnu/java/nio/natVMPipeWin32.cc:
275         Renamed from gnu/java/nio/natPipeImplWin32.cc.
276         * gnu/java/nio/natVMSelectorEcos.cc:
277         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
278         * gnu/java/nio/natVMSelectorPosix.cc:
279         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
280         * gnu/java/nio/natVMSelectorWin32.cc:
281         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
282         * java/io/natVMObjectInputStream.cc:
283         Renamed from java/io/natObjectInputStream.cc.
284         * java/lang/natVMDouble.cc:
285         Renamed from java/lang/natDouble.cc.
286         * java/lang/natVMFloat.cc:
287         Renamed from java/lang/natFloat.cc.     
288         * Makefile.am, configure.ac: Reflect the above.
289         * Makefile.in, configure: Rebuilt.
290
291 2007-01-17  Andrew Haley  <aph@redhat.com>
292
293         * Makefile.in: Rebuilt.
294         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
295
296 2007-01-17  Keith Seitz  <keiths@redhat.com>
297
298         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
299         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
300
301 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
302
303         * configure.ac: Use multi.m4 from aclocal rather than custom
304         code.  Use multi_basedir instead libgcj_basedir.  Test for
305         /proc/self/exe when not cross-compiling.
306         * aclocal.m4: Regenerate.
307         * configure: Regenerate.
308         * Makefile.in: Regenerate.
309
310 2007-01-17  Gary Benson  <gbenson@redhat.com>
311
312         * java/nio/natVMDirectByteBufferImpl.cc:
313         Renamed from java/nio/natDirectByteBufferImpl.cc.
314         * Makefile.am: Reflect the above.
315         * Makefile.in: Rebuilt.
316         
317 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
318
319         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
320         Fixed indentation.  Removed unused variable.
321
322 2007-01-16  Tom Tromey  <tromey@redhat.com>
323
324         * java/lang/natThread.cc (finalize_native): Remove cast.
325         (_Jv_GetCurrentJNIEnv): Likewise.
326         * include/jvm.h (struct natThread) <jni_env>: Declare as
327         _Jv_JNIEnv*.
328
329 2007-01-16  Keith Seitz  <keiths@redhat.com>
330
331         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
332         %#llx instead of %d for new_value.
333         * testsuite/libjava.jvmti/events.out: Update expected output.
334         * testsuite/libjava.jvmti/events.jar: Regenerate.
335
336 2007-01-16  Keith Seitz  <keiths@redhat.com>
337
338         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
339         New macro.
340         (ENABLE_EVENT): New macro.
341         (initialize): Define and enable JVMTI VM_INIT callback.
342         (jdwpVMInitCB): New function.
343
344 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
345
346         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
347         * testsuite/libjava.jvmti/getallthreads.java: New test.
348         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
349         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
350         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
351         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
352
353 2007-01-15  Keith Seitz  <keiths@redhat.com>
354
355         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
356         java.lang.StringBuilder instead of java.lang.StringBuffer.
357         (resumeThread): Likewise.
358
359 2007-01-15  Gary Benson  <gbenson@redhat.com>
360
361         * java/nio/MappedByteBuffer.java: Removed.
362         * sources.am, Makefile.in: Rebuilt.
363
364 2007-01-15  Gary Benson  <gbenson@redhat.com>
365
366         * java/net/URLClassLoader.java: Removed.
367         * gnu/java/net/loader/Load_gcjlib.java: New file.
368         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
369         URL handler is present in static executables.
370         * sources.am, Makefile.in: Rebuilt.
371
372 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
373
374         * Makefile.am (libgcj_la_LDFLAGS): Add
375         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
376         (libgcj_tools_la_LDFLAGS): Likewise.
377         (libgcj_bc_la_LDFLAGS): Likewise.
378         * Makefile.in: Regenerated.
379
380         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
381         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
382         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
383         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
384         * configure: Regenerated.
385         * aclocal.m4: Likewise.
386         * gcj/Makefile.in: Likewise.
387         * include/Makefile.in: Likewise.
388         * testsuite/Makefile.in: Likewise.
389
390 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
391
392         * sysdep/sh/locks.h (read_barrier): New.
393         (write_barrier): Likewise.
394
395 2007-01-12  Andrew Haley  <aph@redhat.com>
396
397         * include/i386-signal.h: Rewrite to use rt_sigaction.
398
399 2007-01-11  Andrew Haley  <aph@redhat.com>
400
401         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
402         to char*.
403         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
404         aliasing violation.
405
406 2007-01-10  Tom Tromey  <tromey@redhat.com>
407
408         * gnu/gcj/xlib/*.h: New files.
409         * gnu/awt/xlib/*.h: Likewise.
410         * classpath/lib/gnu/gcj/xlib: New class files.
411         * classpath/lib/gnu/awt/xlib: Likewise.
412
413 2007-01-10  Tom Tromey  <tromey@redhat.com>
414
415         * HACKING: Various updates.
416
417 2007-01-10  Tom Tromey  <tromey@redhat.com>
418
419         * java/lang/natDouble.cc (toString): Added parens.
420         * gnu/gcj/io/shs.h (PROTO): Define.
421         * link.cc (resolve_pool_entry): Added missing braces.
422
423 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
424
425         PR libgcj/30424
426         * sysdep/ia64/locks.h (read_barrier): New.
427         (write_barrier): New.
428
429 2007-01-10  Gary Benson  <gbenson@redhat.com>
430
431         * java/net/URL.java: Removed.
432         * sources.am, Makefile.in: Rebuilt.
433
434 2007-01-10  Matthias Klose  <doko@debian.org>
435
436         * Makefile.am (install-exec-hook): Support $(DESTDIR).
437         * Makefile.in: Regenerated.
438
439 2007-01-05  Tom Tromey  <tromey@redhat.com>
440
441         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
442         dummy.class in srcdir.
443
444 2007-01-03  Tom Tromey  <tromey@redhat.com>
445
446         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
447         for srcdir.
448
449 2007-01-03  Tom Tromey  <tromey@redhat.com>
450
451         * testsuite/*: Added many .jar and .h files.
452         * testsuite/libjava.special/special.exp
453         (gcj_special_try_compiler): New proc.
454         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
455         bytecompile source.  Search for .jar files.
456         (gcj_loader_test_one): Don't look for MyLoader.java.
457         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
458         bytecompile sources or build headers.
459         (gcj_jvmti_run): Look for .jar files.
460         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
461         files.
462         (gcj_jni_test_one): Don't bytecompile sources or build headers.
463         Set classpath when invoking gij.
464         (gcj_jni_invocation_test_one): Likewise.
465         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
466         headers or bytecompile sources.
467         (gcj_cni_run): Use .jar files, not .java files.
468         * testsuite/libjava.lang/lang.exp: Compile .jar files.
469
470 2007-01-02  Tom Tromey  <tromey@redhat.com>
471
472         * configure: Rebuilt.
473         * configure.ac: Check for gjar.
474
475 2007-01-02  Tom Tromey  <tromey@redhat.com>
476
477         * testsuite/libjava.jacks/jacks.exp: Removed.
478         * testsuite/libjava.jacks/jacks.xfail: Removed.
479