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