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