OSDN Git Service

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