]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/java/ChangeLog
configure.ac: Add --with-pkgversion and --with-bugurl.
[thirdparty/gcc.git] / gcc / java / ChangeLog
CommitLineData
2f41c1d6
PB
12007-08-21 Paul Brook <paul@codesourcery.com>
2 Nathan Sidwell <nathan@codesourcery.com>
3 Mark Mitchell <mark@codesourcery.com>
4 Joseph Myers <joseph@codesourcery.com>
5
6 * jcf-dump.c (version): Use pkgversion_string. Update copyright
7 date.
8
14588106
RG
92007-08-20 Richard Guenther <rguenther@suse.de>
10
11 * lang.c (java_tree_inlining_walk_subtrees): Remove.
12 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Remove.
13
279e32c9
TT
142007-08-17 Tom Tromey <tromey@redhat.com>
15
16 * typeck.c (find_method_in_interfaces): Update.
17 * jcf-parse.c (load_class): Update.
18 * java-gimplify.c (java_gimplify_component_ref): Removed.
19 (java_gimplify_modify_expr): Update. Removed pre_p and post_p
20 arguments.
21 (java_gimplify_expr): Update.
22 * decl.c (java_init_decl_processing): Update.
23 * class.c (set_constant_value): Update.
24 (make_class_data): Update.
25 (finish_class): Update.
26 (build_static_field_ref): Update.
27 (is_compiled_class): Update.
28 (maybe_layout_super_class): Update.
29 (layout_class): Update.
30 (layout_class_method): Update.
31 * java-tree.h (CAN_COMPLETE_NORMALLY): Removed.
32 (lang_decl_var) <am, final_iud, cif>: Removed fields.
33 (lang_decl_func) <init_calls_this>: Removed field.
34 (lang_type) <dot_class, verify_method>: Removed fields.
35 (FIELD_NESTED_ACCESS): Removed.
36 (FIELD_NESTED_ACCESS_P): Removed.
37 (DECL_FIELD_FINAL_IUD): Removed.
38 (DECL_LOCAL_FINAL_IUD): Removed
39 (LOCAL_FINAL_P): Removed.
40 (FINAL_VARIABLE_P): Removed.
41 (CLASS_FINAL_VARIABLE_P): Removed.
42 (DECL_BIT_INDEX): Removed.
43 (DECL_INIT_CALLS_THIS): Removed.
44 (FIELD_LOCAL_ALIAS): Removed.
45 (FIELD_LOCAL_ALIAS_USED): Removed.
46 (FIELD_THISN): Removed.
47 (DECL_FUNCTION_INIT_TEST_CLASS): Removed.
48 (LOCAL_CLASS_INITIALIZATION_FLAG): Removed.
49 (LOCAL_CLASS_INITIALIZATION_FLAG_P): Removed.
50 (TYPE_DOT_CLASS): Removed.
51 (TYPE_VERIFY_METHOD): Removed.
52 (ID_CLASSDOLLAR_P): Removed.
53 (enum java_tree_index) <JTI_CLASSDOLLAR_IDENTIFIER_NODE>:
54 Removed.
55 (classdollar_identifier_node): Removed.
56 (TYPE_UNKNOWN): Removed.
57 (CLASS_FROM_SOURCE_P): Removed.
58 * expr.c (build_jni_stub): Update.
59 (force_evaluation_order): Update.
60 (build_java_empty_stmt): Update.
61 (build_class_init): Update.
62 (java_stack_swap): Update.
63 (build_jni_stub): Update.
64
3d4e2766
TT
652007-08-17 Tom Tromey <tromey@redhat.com>
66
67 * java-tree.h (LABEL_TYPE_STATE): Removed.
68 (load_type_state): Removed.
69 (LABEL_PC): Removed.
70 (LABEL_VERIFIED): Removed.
71 (type_states): Declare.
72 * expr.c (type_states): New global.
73 (load_type_state): Now static. Use type_states. Changed
74 argument.
75 (lookup_label): Don't set LABEL_PC.
76 (expand_byte_code): Don't use LABEL_VERIFIED.
77 (note_instructions): Initialize type_states.
78 * verify-glue.c (vfy_note_stack_depth): Rewrote.
79 (vfy_note_stack_type): Use type_states.
80 (vfy_note_local_type): Likewise.
81
68a57691
KG
822007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83
84 * jcf-parse.c (read_class, java_parse_file): Use CONST_CAST.
85 * jcf.h (JCF_FINISH): Likewise.
86
8328d52a
NC
872007-07-31 Nick Clifton <nickc@redhat.com>
88
89 * java-gimplify.c: Change copyright header to refer to version 3
90 of the GNU General Public License and to point readers at the
91 COPYING3 file and the FSF's license web page.
92 * typeck.c, lang-specs.h, mangle_name.c, jcf-dump.c, class.c,
93 decl.c, config-lang.in, jcf-parse.c, constants.c, Make-lang.in,
94 resource.c, except.c, builtins.c, jvspec.c, java-tree.def,
95 javaop.def, jcf-path.c, verify-glue.c, jcf-depend.c, lang.opt,
96 jcf-reader.c, mangle.c, zextract.c, jcf-io.c, jcf.h, zipfile.h,
97 verify.h, java-except.h, win32-host.c, expr.c, jvgenmain.c,
98 parse.h, lang.c, java-tree.h, javaop.h, boehm.c: Likewise.
99
4f588890
KG
1002007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
101
102 * jcf-io.c (find_class): Fix -Wcast-qual warnings.
103
fa233e34
KG
1042007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
105
106 * lang.c (java_get_callee_fndecl): Constify.
107
0b740634
KG
1082007-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
109
110 * mangle.c (set_type_package_list): Constify.
111 * verify-glue.c (vfy_make_string): Delete.
112 * verify.h (vfy_make_string): Likewise.
113
41f701ba
TT
1142007-07-26 Tom Tromey <tromey@redhat.com>
115
116 * java-tree.h (push_labeled_block, pop_labeled_block): Remove.
117 (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
118 EXIT_BLOCK_LABELED_BLOCK): Likewise.
119 * lang.c (java_tree_inlining_walk_subtrees): Update.
120 (java_dump_tree): Likewise.
121 * java-tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRY_EXPR):
122 Remove.
123 * decl.c (push_labeled_block, pop_labeled_block): Remove.
124 * java-gimplify.c (java_gimplify_labeled_block_expr,
125 java_gimplify_exit_block_expr, java_gimplify_try_expr): Remove.
126 (java_gimplify_expr): Update.
127
741ac903
KG
1282007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
129
130 * class.c (java_treetreehash_hash, java_treetreehash_compare):
131 Constify.
132 * expr.c (type_assertion_eq): Likewise.
133 * jcf-io.c (compare_path): Likewise.
134 * jcf-parse.c (cmpstringp): Likewise.
135 * verify-impl.c (get_one_type, compute_argument_types,
136 compute_return_type): Likewise.
137
c1331fd4
RO
1382007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
139
140 PR target/32462
141 PR libgcj/32465
142 * class.c (hide): Wrap in HAVE_GAS_HIDDEN.
143
176be57b
RG
1442007-07-12 Richard Guenther <rguenther@suse.de>
145
146 * expr.c (expand_java_return): RETURN_EXPR has void type.
147 (build_jni_stub): Likewise. Use a comparison against zero
148 for null-pointer test in COND_EXPR.
149 (build_field_ref): Build POINTER_PLUS_EXPR with correct
150 type. Convert result instead.
151 (build_invokevirtual): Likewise.
152
837edd5f
GK
1532007-07-09 Geoffrey Keating <geoffk@apple.com>
154
155 PR 32617
156 * lang.c (java_init): Remove setting of force_align_functions_log.
157 * class.c (add_method_1): Set DECL_ALIGN of non-static method
158 to cope with ptrmemfunc_vbit_in_pfn.
159
e980a729
DD
1602007-07-03 David Daney <ddaney@avtrex.com>
161
162 * java/Make-lang.in (doc/gcj.info): Add $(gcc_docdir) to
163 include path.
164 (doc/gcj.dvi): Same.
165 (doc/gcj.pdf): Same.
166 (java/index.html): Same.
167
5be014d5
AP
1682007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
169
170 * class.c (make_class_data): Build the index in sizetype.
171 Use POINTER_PLUS_EXPR instead of PLUS_EXPR when
172 adding to a pointer type.
173 (build_symbol_entry): Likewise.
174 * expr.c (build_java_arrayaccess): Likewise.
175 (build_field_ref): Likewise.
176 (build_known_method_ref): Likewise.
177 (build_invokevirtual): Likewise.
178 * except.c (build_exception_object_ref): Do a
179 NEGATIVE and then a POINTER_PLUS_EXPR instead
180 of a MINUS_EXPR.
181
b0464c88
RE
1822007-06-11 Rafael Avila de Espindola <espindola@google.com>
183
184 * typeck.c (java_signed_type): Remove.
185 * lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
186 * java-tree.h (java_signed_type): Remove.
187
8d5b1b67
GK
1882007-05-18 Geoffrey Keating <geoffk@apple.com>
189
190 * jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx.
191 (print_constant): Likewise.
192
ca5ba2a3
RAE
1932007-05-14 Rafael Avila de Espindola <espindola@google.com>
194
195 * expr.c (build_java_binop): Use unsigned_type_for instead of
196 java_unsigned_type.
197 * java-tree.h (java_unsigned_type): Remove.
198 * lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
199 * typeck.c (java_unsigned_type): Remove.
200
3d95caa4
AP
2012007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
202
203 * java-tree.h (lang_tree_node): Use GENERIC_NEXT
204 instead of checking GIMPLE_STMT_P in chain_next.
205
b00d7439
CW
2062007-04-06 Colin Walters <walters@redhat.com>
207
208 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161701
209 * jcf-io.c (open_class): Copy 'filename'.
210
696fbee7
AH
2112007-04-03 Andrew Haley <aph@redhat.com>
212
213 * jvgenmain.c (main): Change main to use class$, not class$$.
214 (do_mangle_classname): Likewise.
215 * class.c (hide): New function.
216 (add_field): Hide everything that shouldn't be visible outside a
217 DSO.
218 (build_static_class_ref): Likewise.
219 (build_classdollar_field): Likewise.
220 (make_class_data): Likewise.
221 (layout_class_method): Likewise.
222 * expr.c (special_method_p): New function.
223
224 * class.c (push_class): Don't bogusly guess the source filename.
225 * jcf-parse.c (give_name_to_class): Don't set input_location from
226 DECL_ARTIFICIAL decls.
227
47ecd38d
RAE
2282007-03-30 Rafael Avila de Espindola <espindola@google.com>
229
230 * typeck.c (java_signed_or_unsigned_type): Removed.
231 (java_signed_type): use get_signed_or_unsigned_type instead of
232 java_signed_or_unsigned_type.
233 (java_unsigned_type): Ditto.
234 * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Removed.
235 * java-tree.h (java_signed_or_unsigned_type): Removed.
236
d2bbc952
TT
2372007-03-26 Tom Tromey <tromey@redhat.com>
238
239 * Make-lang.in (JAVA_MANFILES): Removed grmiregistry.1.
240 (java.maintainer-clean): Likewise.
241 (java.install-man): Likewise.
242 (.INTERMEDIATE): Removed grmiregistry.pod.
243 (grmiregistry.pod): Removed.
244 * gcj.texi (Invoking gcjh): Removed.
245 (Invoking gjnih): Likewise.
246 (Invoking grmiregistry): Likewise.
247 (direntry): Updated.
248 (Top): Likewise.
249 (which-gcj): Removed.
250
ba3e26e8
BM
2512007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
252
253 * Make-lang.in: Add install-pdf target as copied from
254 automake v1.10 rules.
255
a62f2020
BM
2562007-02-27 Brooks Moses <brooks.moses@codesourcery.com>
257
258 * gcj.texi: Standardize title page.
259
165a0dc3
KH
2602007-02-18 Kazu Hirata <kazu@codesourcery.com>
261
262 * class.c: Fix a comment typo.
263
5039610b
SL
2642007-02-15 Sandra Loosemore <sandra@codesourcery.com>
265 Brooks Moses <brooks.moses@codesourcery.com>
266 Lee Millward <lee.millward@codesourcery.com>
267
268 * java-tree.h (BUILD_MONITOR_ENTER): Use build_call_nary instead
269 of build3.
270 (BUILD_MONITOR_EXIT): Likewise.
271
272 * java-gimplify.c (java_gimplify_component_ref): Use build_call_expr.
273 (java_gimplify_modify_expr): Likewise.
274
275 * class.c (cache_this_class_ref): Use build_call_expr.
276 (build_static_field_ref): Likewise.
277 (emit_indirect_register_classes): Likewise.
278 (emit_register_classes): Likewise.
279
280 * resource.c (write_resource_constructor): Use build_call_expr.
281
282 * builtins.c (builtin_creator_function): Change interpretation of
283 the second parameter to be the whole CALL_EXPR instead of the arglist.
284 (max_builtin): Tweak parameter list. Use new CALL_EXPR accessors.
285 (min_builtin): Likewise.
286 (abs_builtin): Likewise.
287 (java_build_function_call_expr): Likewise.
288 (convert_real): Likewise.
289 (UNMARSHAL3): Likewise.
290 (UNMARSHAL4): Likewise.
291 (UNMARSHAL5): Likewise.
292 (build_arglist_for_builtin): Delete. Fix callers to use
293 build_call_expr instead.
294 (putObject_builtin): Tweak parameter list. Use new CALL_EXPR
295 accessors.
296 (compareAndSwapInt_builtin): Likewise.
297 (compareAndSwapLong_builtin): Likewise.
298 (compareAndSwapObject_builtin): Likewise.
299 (putVolatile_builtin): Likewise.
300 (getVolatile_builtin): Likewise.
301 (VMSupportsCS8_builtin): Likewise.
302 (check_for_builtin): Pass entire CALL_EXPR to builtin expander
303 instead of arglist.
304
305 * expr.c (build_java_athrow): Use build_call_nary instead of build3.
306 (build_java_throw_out_of_bounds_exception): Likewise.
307 (java_check_reference): Likewise.
308 (build_java_arraystore_check): Likewise.
309 (build_newarray): Likewise.
310 (build_anewarray): Likewise.
311 (expand_java_multinewarray): Use build_call_list instead of build3.
312 (build_java_monitor): Use build_call_nary instead of build3.
313 (java_create_object): Likewise.
314 (expand_java_NEW): Likewise.
315 (build_instanceof): Likewise.
316 (expand_java_CHECKCAST): Likewise.
317 (build_java_soft_divmod): Likewise.
318 (build_java_binop): Likewise.
319 (build_field_ref): Likewise.
320 (build_class_init): Likewise.
321 (rewrite_arglist_getcaller): Use build_call_expr.
322 (build_invokeinterface): Use build_call_nary instead of build3.
323 (expand_invoke): Use build_call_list instead of build3.
324 (build_jni_stub): Use build_call_nary, build_call_list, or
325 build_call_expr instead of build3.
326 (expand_java_field_op): Use build_call_expr instead of build3.
327 (force_evaluation_order): Use new CALL_EXPR accessors.
328
329 * lang.c (java_get_callee_fndecl): Use new CALL_EXPR accessors.
330
7f40378f
DD
3312007-02-15 David Daney <ddaney@avtrex.com>
332
333 * Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1.
334 (java.maintainer-clean):Add gc-analyze.1.
335 (.INTERMEDIATE): Add gc-analyze.pod.
336 (gc-analyze.pod): New rule.
337 (java.install-man): Install gc-analyze.1
338 * gcj.texi: Add new section for the gc-analyze program.
339
56c9f04b
AH
3402007-02-07 Andrew Haley <aph@redhat.com>
341
342 * class.c (uncache_this_class_ref): New.
343 * expr.c (build_jni_stub): Initialize the class.
344 (expand_byte_code): Call uncache_this_class_ref after generating
345 code.
346
ca20820e
TT
3472007-02-06 Tom Tromey <tromey@redhat.com>
348
349 PR java/30714:
350 * jvspec.c (lang_specific_driver): Check for the '-' in '-I'.
351
5041541e
KH
3522007-02-03 Kazu Hirata <kazu@codesourcery.com>
353
354 * java-tree.h, javaop.def, jcf-parse.c: Fix comment typos.
355
b4e18eee
AH
3562007-02-02 Andrew Haley <aph@redhat.com>
357
358 * expr.c (expand_byte_code): Call cache_this_class_ref() and
359 cache_cpool_data_ref().
360 Set TYPE_CPOOL_DATA_REF.
361 (cache_cpool_data_ref): New function.
362 * constants.c (build_ref_from_constant_pool): Remove special-case
363 code for flag_indirect_classes.
364 (build_constant_data_ref): Move special-case code for
365 flag_indirect_classes here from build_ref_from_constant_pool.
366 * decl.c (finish_method): Move class initialization from here to
367 cache_this_class_ref.
368 * class.c (cache_this_class_ref): New function.
369 (build_class_ref): Use this_classdollar for the ouput class.
370
4969f3ea
DD
3712007-02-02 David Daney <ddaney@avtrex.com>
372
373 * class.c (is_compiled_class): Move check to avoid reloading
374 current class.
375 (layout_class_method): Don't calculate DECL_EXTERNAL if it is
376 already set.
377
2a97d6b2
AH
3782007-02-01 Andrew Haley <aph@redhat.com>
379
380 PR java/30641
381 * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap.
382
61a89891
KH
3832007-01-31 Kazu Hirata <kazu@codesourcery.com>
384
385 * class.c, jcf-parse.c: Fix comment typos.
386
e4cf973d
TT
3872007-01-30 Tom Tromey <tromey@redhat.com>
388
389 * gcj.texi (Strings): Fix documentation for JvNewString.
390
13a89f0a
RW
3912007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
392
393 * gcj.texi (Invoking gcjh, Invoking gjnih, Arrays): Fix some
394 typos.
395
a661f85e
BE
3962007-01-30 Ben Elliston <bje@au.ibm.com>
397
398 * jvspec.c (lang_specific_driver): Remove unused classpath_args.
399
a1c06277
TT
4002007-01-29 Tom Tromey <tromey@redhat.com>
401
402 PR java/30607:
403 * jvspec.c (lang_specific_driver): Handle separate -I argument.
404 * lang.opt (-I): Add 'Separate'.
405
2631dfdd
AH
4062007-01-29 Andrew Haley <aph@redhat.com>
407
408 * class.c (add_method_1): Mark fndecl as external unless we are
409 compiling it into this object file.
410
c863b570
AH
4112007-01-24 Andrew Haley <aph@redhat.com>
412
413 * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): current_class is a
414 type node, not a decl, so use TYPE_SYNTHETIC not CLASS_SYNTHETIC.
415
4162007-01-22 Andrew Haley <aph@redhat.com>
417
418 * builtins.c (VMSupportsCS8_builtin): New function.
419
a5abc980
AP
4202007-01-23 Andrew Pinski <pinskia@gmail.com>
421
422 PR java/30454
423 * jcf-io.c (opendir_in_zip): Close the file
424 and free zipf before returning after an error.
425
80a3dc41
TT
4262007-01-16 Tom Tromey <tromey@redhat.com>
427
428 * java-tree.def: Added copyright header.
429
b7e89938
TT
4302007-01-15 Tom Tromey <tromey@redhat.com>
431
432 * lang.c (dump_compound_expr) <EXPR_WITH_FILE_LOCATION>: Removed
433 case.
434 * java-gimplify.c (java_gimplify_expr) <EXPR_WITH_FILE_LOCATION>:
435 Removed case.
436 * java-tree.h (EXPR_WFL_EMIT_LINE_NOTE): Removed.
437 (EXPR_WFL_NODE): Likewise.
438 (EXPR_WFL_LINECOL): Likewise.
439 (EXPR_WFL_FILENAME): Likewise.
440 (EXPR_WFL_LINENO): Likewise.
441 (build_expr_wfl, expr_add_location): Don't declare.
442 (build_unknown_wfl): Removed.
443 (EXPR_WFL_FILENAME_NODE): Removed.
444 (EXPR_WFL_COLNO): Removed.
445 (EXPR_WFL_SET_LINECOL): Removed.
446 (DECL_FUNCTION_WFL): Removed.
447 (DECL_FIELD_FINAL_WFL): Removed.
448 (struct lang_decl_func) <wfl>: Removed field.
449 <called_constructor>: Likewise.
450 <inner_access>: Likewise.
451 (struct lang_decl_var) <wfl>: Removed field.
452 (DECL_CONSTRUCTOR_CALLS): Removed.
453 (DECL_FUNCTION_ACCESS_DECL): Likewise.
454 (DECL_FUNCTION_INNER_ACCESS): Likewise.
455 (DECL_SPECIFIC_COUNT): Likewise.
456 * java-tree.def (EXPR_WITH_FILE_LOCATION): Removed.
457 * expr.c (build_expr_wfl): Removed.
458 (expr_add_location): Likewise.
459
6ef795d2
TT
4602007-01-12 Tom Tromey <tromey@redhat.com>
461
462 * jcf-dump.c (main): Updated call to find_class.
463 * lang.c (java_init): Removed dead code.
464 * jcf-parse.c (read_class): Don't use java_source field. Removed
465 dead code.
466 (parse_zip_file_entries): Don't use java_source field.
467 (process_zip_dir): Likewise.
468 (jcf_parse): Removed dead code.
469 (java_parse_file): Likewise.
470 (read_class): Updated call to find_class.
471 * jcf-io.c (find_class): Don't use java_source field. Removed
472 'source_ok' argument, .java logic.
473 * jcf.h (JCF) <java_source>: Removed field.
474 (JCF_ZERO): Updated. (find_class): Updated.
475 * decl.c: Removed dead code.
476 * class.c: Removed dead code.
477
6e63e240
TT
4782007-01-11 Tom Tromey <tromey@redhat.com>
479
480 * typeck.c (convert): Don't use flag_emit_class_files.
481 * lang.c (java_post_options): Don't use flag_emit_class_files.
482 (java_handle_option): Don't use flag_extraneous_semicolon or
483 flag_redundant.
484 * jcf-parse.c (HANDLE_CONSTANTVALUE): Don't use
485 flag_emit_class_files.
486 (load_class): Likewise.
487 * java-tree.h (flag_emit_class_files): Don't declare.
488 (STATIC_CLASS_INIT_OPT_P): Don't use flag_emit_class_files.
489 (flag_extraneous_semicolon): Don't declare.
490 (flag_not_overriding): Likewise.
491 (flag_static_local_jdk1_1): Likewise.
492 (flag_redundant): Likewise.
493 * expr.c (build_newarray): Don't use flag_emit_class_files.
494 * class.c (DEFAULT_ENABLE_ASSERT): Don't use
495 flag_emit_class_files.
496 (build_class_ref): Likewise.
497 * builtins.c (check_for_builtin): Don't use
498 flag_emit_class_files.
499
08f0e79e
TT
5002007-01-10 Tom Tromey <tromey@redhat.com>
501
502 * lang.c (java_can_use_bit_fields_p): Removed.
503 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
504
97b8365c
TT
5052007-01-09 Andrew Haley <aph@redhat.com>
506
507 * expr.c (build_java_arrayaccess): Rewrite to generate array
508 access in canonical form.
509 (expand_java_arraystore): Use build_fold_addr_expr() on address of
510 array access.
511
5122007-01-03 Andrew Haley <aph@redhat.com>
513
514 PR java/28754
515 * expr.c (expand_java_field_op): If we're initializing a field's
516 declaring interface we should not also initialize the class
517 context in which it was referenced.
518
5192007-01-02 Tom Tromey <tromey@redhat.com>
520
521 * java-tree.h (compiling_from_source, current_encoding,
522 JTI_FINIT_IDENTIFIER_NODE, JTI_INSTINIT_IDENTIFIER_NODE,
523 JTI_LENGTH_IDENTIFIER_NODE, JTI_SUPER_IDENTIFIER_NODE,
524 JTI_CONTINUE_IDENTIFIER_NODE, JTI_ACCESS0_IDENTIFIER_NODE,
525 JTI_WFL_OPERATOR): Removed
526 (finit_identifier_node, instinit_identifier_node,
527 length_identifier_node, super_identifier_node,
528 continue_identifier_node, access0_identifier_node, wfl_operator):
529 Removed.
530 (cyclic_inheritance_report,
531 DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND,
532 DECL_FUNCTION_NAP, DECL_FUNCTION_SYNTHETIC_CTOR,
533 DECL_FIXED_CONSTRUCTOR_P): Removed.
534 (struct lang_decl_func) <smic, nap, synthetic_ctor, fixed_ctor>:
535 Removed.
536 (TYPE_FINIT_STMT_LIST, TYPE_CLINIT_STMT_LIST, TYPE_II_STMT_LIST,
537 TYPE_IMPORT_LIST, TYPE_IMPORT_DEMAND_LIST): Removed.
538 (struct lang_type) <finit_stmt_list, clinit_stmt_list, ii_block,
539 import_list, import_demand_list>: Removed.
540 (java_layout_seen_class_methods, init_jcf_parse, init_src_parse,
541 cxx_keyword_p): Removed.
542 (DECL_FINIT_P, DECL_INSTINIT_P, ID_FINIT_P, ID_INSTINIT_P,
543 TYPE_UNUSED, TYPE_UNDERFLOW, TYPE_UNEXPECTED,
544 CLASS_ACCESS0_GENERATED_P, CLASS_HAS_FINIT_P,
545 IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P, IS_A_CLASSFILE_NAME,
546 IS_AN_IMPORT_ON_DEMAND_P, COMPOUND_ASSIGN_P, SWITCH_HAS_DEFAULT,
547 PRIMARY_P, MODIFY_EXPR_FROM_INITIALIZATION_P,
548 CLASS_METHOD_CHECKED_P, FOR_LOOP_P, ANONYMOUS_CLASS_P,
549 LOCAL_CLASS_P, ARG_FINAL_P, SUPPRESS_UNREACHABLE_ERROR,
550 RESOLVE_PACKAGE_NAME_P, RESOLVE_TYPE_NAME_P, IS_BREAK_STMT_P,
551 IS_CRAFTED_STRING_BUFFER_P, IS_INIT_CHECKED, CALL_USING_SUPER,
552 NESTED_FIELD_ACCESS_IDENTIFIER_P, TOPLEVEL_CLASS_DECL_P,
553 PURE_INNER_CLASS_TYPE_P, TOPLEVEL_CLASS_TYPE_P,
554 CALL_CONSTRUCTOR_P, CALL_EXPLICIT_CONSTRUCTOR_P,
555 CALL_THIS_CONSTRUCTOR_P, CALL_SUPER_CONSTRUCTOR_P,
556 FINALLY_EXPR_LABEL, FINALLY_EXPR_BLOCK, BLOCK_IS_IMPLICIT,
557 BLOCK_EMPTY_P, IS_UNCHECKED_EXCEPTION_P, java_error_count,
558 java_parse_abort_on_error, extract_field_decl): Removed.
559 (finput): Declare.
560 * lang.c: (compiling_from_source, current_encoding): Removed.
561 (java_handle_option): Ignore -fencoding.
562 * parse.h: Don't include lex.h.
563 (java_error_count, int_fits_type_p, stabilize_reference, RULE,
564 RECOVERED, DRECOVERED, RECOVER, DRECOVER, YYERROR_NOW,
565 YYNOT_TWICE, CLASS_MODIFIERS, FIELD_MODIFIERS, METHOD_MODIFIERS,
566 INTERFACE_MODIFIERS, INTERFACE_INNER_MODIFIERS,
567 INTERFACE_METHOD_MODIFIERS, INTERFACE_FIELD_MODIFIERS,
568 MODIFIER_WFL, THIS_MODIFIER_ONLY, parse_error_context,
569 ABSTRACT_CHECK, JCONSTRUCTOR_CHECK, exit_java_complete_class,
570 CLASS_OR_INTERFACE, GET_REAL_TYPE, GET_TYPE_NAME,
571 OBSOLETE_MODIFIER_WARNING, OBSOLETE_MODIFIER_WARNING2,
572 BUILD_PTR_FROM_NAME, INCOMPLETE_TYPE_P,
573 JAVA_MAYBE_GENERATE_DEBUG_INFO, JBSC_TYPE_P, JSTRING_P,
574 JNULLP_TYPE_P, JDECL_P, TYPE_INTERFACE_P, TYPE_CLASS_P,
575 IDENTIFIER_INNER_CLASS_OUTER_FIELD_ACCESS,
576 MANGLE_OUTER_LOCAL_VARIABLE_NAME,
577 MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_ID,
578 MANGLE_ALIAS_INITIALIZER_PARAMETER_NAME_STRING,
579 SKIP_THIS_AND_ARTIFICIAL_PARMS, MARK_FINAL_PARMS,
580 UNMARK_FINAL_PARMS, CRAFTED_PARAM_LIST_FIXUP,
581 AIPL_FUNCTION_CREATION, AIPL_FUNCTION_DECLARATION,
582 AIPL_FUNCTION_CTOR_INVOCATION, AIPL_FUNCTION_FINIT_INVOCATION,
583 ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC,
584 ERROR_CAST_NEEDED_TO_INTEGRAL, ERROR_VARIABLE_NOT_INITIALIZED,
585 LOOP_EXPR_BODY_MAIN_BLOCK, LOOP_EXPR_BODY_UPDATE_BLOCK,
586 LOOP_EXPR_BODY_CONDITION_EXPR, LOOP_EXPR_BODY_LABELED_BODY,
587 LOOP_EXPR_BODY_BODY_EXPR, PUSH_LABELED_BLOCK, POP_LABELED_BLOCK,
588 PUSH_LOOP, POP_LOOP, PUSH_EXCEPTIONS, POP_EXCEPTIONS,
589 IN_TRY_BLOCK_P, EXCEPTIONS_P, ANONYMOUS_ARRAY_BASE_TYPE,
590 ANONYMOUS_ARRAY_DIMS_SIG, ANONYMOUS_ARRAY_INITIALIZER,
591 INVOKE_STATIC, INVOKE_NONVIRTUAL, INVOKE_SUPER, INVOKE_INTERFACE,
592 INVOKE_VIRTUAL, jdep_code, struct _jdep, JDEP_DECL, JDEP_DECL_WFL,
593 JDEP_KIND, JDEP_WFL, JDEP_MISC, JDEP_ENCLOSING, JDEP_CLASS,
594 JDEP_APPLY_PATCH, JDEP_GET_PATCH, JDEP_CHAIN, JDEP_TO_RESOLVE,
595 JDEP_RESOLVED_DECL, JDEP_RESOLVED, JDEP_RESOLVED_P, struct
596 jdeplist_s, jdeplists, CLASSD_FIRST, CLASSD_LAST, CLASSD_CHAIN,
597 JDEP_INSERT, SET_TYPE_FOR_RESOLUTION, WFL_STRIP_BRACKET,
598 STRING_STRIP_BRACKETS, PROMOTE_RECORD_IF_COMPLETE,
599 BLOCK_CHAIN_DECL, GET_CURRENT_BLOCK, EXPR_WFL_GET_LINECOL,
600 EXPR_WFL_QUALIFICATION, QUAL_WFL, QUAL_RESOLUTION, QUAL_DECL_TYPE,
601 GET_SKIP_TYPE, COMPLETE_CHECK_OP, COMPLETE_CHECK_OP_0,
602 COMPLETE_CHECK_OP_1, COMPLETE_CHECK_OP_2, BUILD_APPEND,
603 BUILD_STRING_BUFFER, BUILD_THROW, SET_WFL_OPERATOR,
604 PATCH_METHOD_RETURN_ERROR, CHECK_METHODS, CLEAR_DEPRECATED,
605 CHECK_DEPRECATED_NO_RESET, CHECK_DEPRECATED, REGISTER_IMPORT,
606 CURRENT_OSB, struct parser_ctxt, GET_CPC_LIST, CPC_INNER_P,
607 GET_CPC, GET_CPC_UN, GET_CPC_UN_MODE, GET_CPC_DECL_NODE,
608 GET_ENCLOSING_CPC, GET_NEXT_ENCLOSING_CPC,
609 GET_ENCLOSING_CPC_CONTEXT, INNER_ENCLOSING_SCOPE_CHECK, PUSH_CPC,
610 PUSH_ERROR, POP_CPC, DEBUG_CPC, CPC_INITIALIZER_LIST,
611 CPC_STATIC_INITIALIZER_LIST, CPC_INSTANCE_INITIALIZER_LIST,
612 CPC_INITIALIZER_STMT, CPC_STATIC_INITIALIZER_STMT,
613 CPC_INSTANCE_INITIALIZER_STMT, SET_CPC_INITIALIZER_STMT,
614 SET_CPC_STATIC_INITIALIZER_STMT,
615 SET_CPC_INSTANCE_INITIALIZER_STMT, JAVA_NOT_RADIX10_FLAG,
616 java_complete_class, java_check_circular_reference,
617 java_fix_constructors, java_layout_classes, java_reorder_fields,
618 java_method_add_stmt, java_get_line_col, reset_report,
619 java_init_lex, yyparse, java_parse, yyerror, java_expand_classes,
620 java_finish_classes, ctxp, ctxp_for_generation,
621 ctxp_for_generation_last): Removed.
622 * expr.c (force_evaluation_order): Don't mention NEW_CLASS_EXPR.
623 * mangle.c (utf8_cmp): New function.
624 (cxx_keywords): New global.
625 (cxx_keyword_p): New function.
626 * jvspec.c (JAVA_START_CHAR): Removed obsolete comment.
627 * java-tree.def (UNARY_PLUS_EXPR, NEW_ARRAY_EXPR,
628 NEW_ANONYMOUS_ARRAY_EXPR, NEW_CLASS_EXPR, THIS_EXPR,
629 CASE_EXPR, DEFAULT_EXPR, JAVA_CATCH_EXPR, SYNCHRONIZED_EXPR,
630 THROW_EXPR, CONDITIONAL_EXPR, INSTANCEOF_EXPR, NEW_ARRAY_INIT,
631 CLASS_LITERAL, JAVA_EXC_OBJ_EXPR): Removed.
632 * Make-lang.in (java.srcextra): Do nothing.
633 (parse.c, keyword.h, gt-java-parse.h): Removed targets.
634 (JAVA_OBJS): Don't mention deleted files.
635 (java.mostlyclean): Likewise.
636 (java.clean): Likewise.
637 (JAVA_LEX_C): Removed.
638 (buffer.o, check-init.o, parse.o): Remove unused targets.
639 (typeck.o): Updated.
640 * jcf-parse.c (read_class): Comment out unused code.
641 (java_layout_seen_class_methods): New function.
642 (parse_source_file_1, parse_source_file_2, parse_source_file_3):
643 Removed.
644 (java_parse_file): Comment out unused code. Don't use 'ctxp'.
645 (init_jcf_parse): Removed.
646 * config-lang.in (gtfiles): Remove deleted files.
647 * decl.c (java_init_decl_processing): Don't initialize
648 finit_identifier_node, instinit_identifier_node,
649 length_identifier_node, super_identifier_node,
650 continue_identifier_node, access0_identifier_node. Don't call
651 init_jcf_parse.
652 * class.c (cyclic_inheritance_report): New global.
653 (add_method_1): Don't use
654 DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND.
655 (maybe_layout_super_class): Comment out code.
656 (safe_layout_class): New function.
657 * java-gimplify.c (java_gimplify_expr): Removed CASE_EXPR,
658 DEFAULT_EXPR, NEW_ARRAY_INIT, JAVA_CATCH_EXPR, JAVA_EXC_OBJ_EXPR,
659 UNARY_PLUS_EXPR, NEW_ARRAY_EXPR, NEW_ANONYMOUS_ARRAY_EXPR,
660 NEW_CLASS_EXPR, SYNCHRONIZED_EXPR, CONDITIONAL_EXPR,
661 INSTANCEOF_EXPR, CLASS_LITERAL, THIS_EXPR.
662 (java_gimplify_case_expr): Removed.
663 (java_gimplify_default_expr): Likewise.
664 (java_gimplify_new_array_init): Likewise.
665 * parse.y: Removed.
666 * keyword.gperf, keyword.h: Removed.
667 * chartables.h: Removed.
668 * check-init.c: Removed.
669 * buffer.c, buffer.h: Removed.
670 * convert.h: Removed.
671 * gen-table.pl: Removed.
672 * lex.c, lex.h: Removed.
673
6742007-01-02 Andrew Haley <aph@redhat.com>
675
676 * expr.c (expand_java_arraystore): Make sure we perform a bounds
677 check at runtime before we perform a type check.
678
6792006-12-19 Andrew Haley <aph@redhat.com>
680
681 * decl.c: Bump minor BC ABI version.
682
6832006-12-13 Gary Benson <gbenson@redhat.com>
684
685 * jcf-depend.c (jcf_dependency_add_file): Mark filename unused.
686
6872006-12-12 Tom Tromey <tromey@redhat.com>
688
689 * lang-specs.h: Pass -M options to jc1.
690 * jcf-depend.c (jcf_dependency_add_file): Don't emit
691 dependencies.
692
6932006-12-07 Mohan Embar <gnustuff@thisiscool.com>
694
695 * jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR.
696
6972006-12-06 Mohan Embar <gnustuff@thisiscool.com>
698
699 * lang-specs.h: Pass '%U'-based options as separate arguments.
700
7012006-12-05 Tom Tromey <tromey@redhat.com>
702
703 PR java/29495:
704 * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Mark fields and
705 classes as well.
706 * class.c (add_field): Handle ACC_SYNTHETIC.
707 (add_method_1): Likewise. Handle bridge and varargs.
708 (get_access_flags_from_decl): Handle synthetic, bridge, varargs,
709 annotation.
710 (set_class_decl_access_flags): Handle synthetic and annotation.
711 * java-tree.h (METHOD_BRIDGE): New macro.
712 (METHOD_VARARGS): Likewise.
713 (TYPE_SYNTHETIC): Likewise.
714 (TYPE_ANNOTATION): Likewise.
715 (lang_type): New fields 'synthetic' and 'annotation'.
716 (lang_decl_func): New fields 'varargs' and 'bridge'.
717
7182006-12-04 Andrew Haley <aph@redhat.com>
719
720 * jcf-parse.c (rewrite_reflection_indexes): Don't do anything if
721 there's no map.
722
7232006-11-29 Gary Benson <gbenson@redhat.com>
724
725 * expr.c (rewrite_arglist_getcaller): Reorder.
726
7272006-11-29 Andrew Haley <aph@redhat.com>
728
729 * expr.c (rewrite_arglist_getcaller): Remove DECL_INLINE.
730 * lang.c (java_decl_ok_for_sibcall): Check for DECL_INLINE.
731
7322006-11-23 Andrew Haley <aph@redhat.com>
733
734 * expr.c (rewrite_arglist_getcaller): New.
735 (rewrite_arglist_getclass): Fix indentation.
736 (rules): Add gnu.classpath.VMStackWalker.getCallingClass() and
737 gnu.classpath.VMStackWalker.getCallingClassLoader().
738 * builtins.c (initialize_builtins): Remove duplicate def'n of
739 __sync_synchronize.
740 Add __builtin_return_address.
741
7422006-11-22 Andrew Haley <aph@redhat.com>
743
744 * jcf-reader.c (get_attribute): Mark attr_type unused.
745
746 * builtins.c (compareAndSwapObject_builtin): Fix declaration.
747
2ac7cbb5
RG
7482007-01-08 Richard Guenther <rguenther@suse.de>
749
750 * lex.c (do_java_lex): Use build_int_cst_wide_type.
751 * jcf-parse.c (get_constant): Likewise.
752
8a4a83ed
JH
7532006-11-12 Jan Hubicka <jh@suse.cz>
754
755 * resource.c (compile_resource_data): Update for new varpool names.
756 * java/class.c (build_utf8_ref): Likewise.
757
8a492e2c
DD
7582006-11-12 David Daney <ddaney@avtrex.com>
759
760 PR java/29805
761 * typeck.c (build_java_array_type): Increase buffer sizes.
762
f9f770a8
RG
7632006-11-11 Richard Guenther <rguenther@suse.de>
764
765 * check-init.c (check_init): Remove handling of FIX_CEIL_EXPR,
766 FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
767
97b8365c
TT
7682006-11-06 Andrew Haley <aph@redhat.com>
769
770 * java-tree.h (CONSTANT_LazyFlag): New.
771 * constants.c (build_constants_constructor): Mask CONSTANT_LazyFlag.
772 * jcf-parse.c (handle_innerclass_attribute): Write attribute to
773 reflection_data.
774 (handle_constant): Return 0 for dummy cpool entries.
775 Handle constants of kind Class.
776 Handle constants of kind NameAndType.
777 (handle_enclosingmethod_attribute): New.
778 (handle_signature_attribute): New.
779 (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): New.
780 (HANDLE_SIGNATURE_ATTRIBUTE): New.
781 (handle_constant): Use unmangle_classname()rather than calling
782 identifier_subst() directly.
783
7842006-11-02 Andrew Haley <aph@redhat.com>
785
786 * java-tree.h (FIELD_ENUM): New.
787 (lang_decl_var.field_enum): New.
788 (lang_type.enum_class): New.
789 (CLASS_ENUM): New.
790 * class.c (set_class_decl_access_flags): Handle enum types.
791 (add_field): Handle enum fields.
792 (get_access_flags_from_decl): Likewise.
793
794 * class.c (make_class_data): Put reflection_data into rodata.
795
7962006-11-01 Andrew Haley <aph@redhat.com>
797
798 * jcf-parse.c (field_offsets, bit_obstack): New variables.
799 (jcf_parse): Write end marker to annotation_data.
800 (java_parse_file): Create field_offsets bitmap. Destroy it.
801 (annotation_grow, annotation_rewrite_byte)
802 (annotation_rewrite_short, annotation_rewrite_int)
803 (annotation_read_short, annotation_write_byte)
804 (annotation_write_short, annotation_write_int)
805 (handle_long_constant, handle_constant, handle_element_value)
806 (handle_annotation, handle_annotations)
807 (handle_annotation_attribute, rewrite_reflection_indexes)
808 (handle_member_annotations, handle_parameter_annotations)
809 (handle_default_annotation): New functions.
810 (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE)
811 (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE)
812 (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE)
813 (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE)
814 (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): New definitions.
815 * java-tree.h (enum jv_attr_type, enum jv_attr_kind): New.
816 (TYPE_REFLECTION_DATA): New.
817 (TYPE_REFLECTION_DATASIZE): New.
818 * jcf.h (enum cpool_tag): Convert a bunch of #define constants to
819 an enum.
820 * jcf-reader.c (get_attribute): Pass field/method index and
821 attribute type to get_attribute().
822 * constants.c (find_class_or_string_constant): Make nonstatic.
823 (cpool_for_class): Likewise.
824 (build_constants_constructor): Separate string and scalar types.
825 * class.c (make_class_data): Generate field_indexes permutation.
826 Pass it to rewrite_reflection_indexes().
827 (make_class_data): Generate constructor for reflection_data field.
828
8292006-10-20 Tom Tromey <tromey@redhat.com>
830
831 * gcj.texi (Top): Don't mention jv-scan.
832 (Invoking gcj): Likewise.
833 (Invoking gcjh): Likewise.
834 (Invoking gjnih): Likewise.
835 (Invoking gij): Likewise.
836 (Invoking gcj-dbtool): Likewise.
837 (Invoking jv-scan): Removed.
838 * parse-scan.y: Removed.
839 * jv-scan.c: Removed.
840 * config-lang.in (stagestuff): Don't mention jv-scan.
841 * Make-lang.in (java): Removed jv-scan.
842 (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise.
843 (JVSCAN_OBJS): Removed.
844 (jv-scan$(exeext)): Likewise.
845 (JAVA_MANFILES): Removed jv-scan.1.
846 (java.uninstall): Don't mention jv-scan.
847 (java.mostlyclean): Likewise.
848 (java.maintainer-clean): Likewise.
849 (.INTERMEDIATE): Likewise.
850 (java/jv-scan.o): Removed.
851 (jv-scan.pod): Likewise.
852 (java.srcextra): Don't mention parse-scan.c.
853 (java.mostlyclean): Likewise.
854 (java/parse-scan.c): Removed.
855 (java/parse-scan.o-warn): Removed.
856 (java/parse-scan.o): Removed.
857
8582006-10-20 Tom Tromey <tromey@redhat.com>
859
860 * lang.c (java_handle_option): Don't use
861 jcf_write_base_directory.
862 * jcf.h (jcf_write_base_directory): Removed.
863 * parse.y (java_expand_classes): Don't call write_classfile.
864 * config-lang.in (gtfiles): Removed jcf-write.c.
865 * Make-lang.in (JAVA_OBJS): Removed jcf-write.o.
866 (java/jcf-write.o): Removed.
867 * jcf-parse.c (parse_class_file): Don't call write_classfile.
868 * java-tree.h (write_classfile): Removed declaration.
869 * jcf-write.c: Removed.
870
8712006-10-20 Tom Tromey <tromey@redhat.com>
872
873 * Make-lang.in (java): Removed gjnih, gcjh.
874 (JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise.
875 (GCJH_OBJS): Removed.
876 (GJNIH_OBJS): Likewise.
877 (gjnih$(exeext)): Likewise.
878 (gcjh$(exeext)): Likewise.
879 (JAVA_MANFILES): Removed gcjh.1, gjnih.1.
880 (java.install-common): Don't special case gcjh.
881 (java.uninstall): Don't mention gcjh, gjnih.
882 (java.mostlyclean): Likewise.
883 (java.maintainer-clean): Likewise.
884 (.INTERMEDIATE): Likewise.
885 (gcjh.pod): Removed.
886 (gjnih.pod): Likewise.
887 (GCJH_TARGET_INSTALL_NAME): Removed.
888 (java/gjavah-jni.o): Removed.
889 (java/gjavah.o): Likewise.
890 * config-lang.in (stagestuff): Removed gjnih, gcjh.
891 * gjavah.c: Removed.
892
8932006-10-17 Tom Tromey <tromey@redhat.com>
894
895 * jcf-dump.c (print_element_value): Expect a utf8 constant in the
896 "string" case.
897
8982006-10-17 Tom Tromey <tromey@redhat.com>
899
900 * jvgenmain.c (main): Handle -findirect-dispatch.
901 * jvspec.c (jvgenmain_spec): Pass -findirect-dispatch to
902 jvgenmain.
903
9042006-10-06 Andrew Haley <aph@redhat.com>
905
906 * builtins.c (compareAndSwapInt_builtin): Check that we really do
907 have a compare_and_swap builtin.
908 (compareAndSwapLong_builtin): Likewise.
909 (compareAndSwapObject_builtin): Likewise.
910
9112006-10-04 Andrew Haley <aph@redhat.com>
912
913 * builtins.c (java_builtins): Add compareAndSwapInt,
914 compareAndSwapLong, compareAndSwapObject, putOrderedInt,
915 putOrderedLong, putOrderedObject, putIntVolatile, putLongVolatile,
916 putObjectVolatile, getObjectVolatile, getIntVolatile,
917 getLongVolatile, getLong.
918 (UNMARSHAL3): New macro.
919 (UNMARSHAL4): Likewise.
920 (UNMARSHAL5): Likewise.
921 (build_arglist_for_builtin): New function.
922 (build_addr_sum, build_check_this): New functions.
923 (putObject_builtin. compareAndSwapInt_builtin,
924 compareAndSwapLong_builtin, compareAndSwapObject_builtin,
925 putVolatile_builtin, getVolatile_builtin): New builtins.
926
9272006-06-08 Andrew Haley <aph@redhat.com>
928
929 * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to
930 get_symbol_table_index().
931 (maybe_rewrite_invocation): Set SPECIAL if we need to access a
932 private method.
933 (build_known_method_ref): New arg: special. Pass it to
934 get_symbol_table_index.
935 (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of
936 the method list.
937 (build_invokevirtual): New arg: special. Pass it to
938 get_symbol_table_index.
939 (expand_invoke): New variable: special.
940 Pass it to maybe_rewrite_invocation().
941 Pass it to build_known_method_ref().
942 * class.c (build_symbol_entry): Add new arg: special. Use it to
943 build the symbol table conbstructor.
944 (emit_symbol_table): Extract SPECIAL from the method list and pass
945 it to build_symbol_entry().
946 * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set
947 special accordingly.
948
9492006-09-08 Andrew Haley <aph@redhat.com>
950
951 * class.c (layout_class_method): Use build_java_signature, not
952 build_java_argument_signature. Use lookup_java_method, not
953 lookup_argument_method.
954
9552006-08-16 Jakub Jelinek <jakub@redhat.com>
956 Bryce McKinlay <bryce@mckinlay.net.nz>
957
958 * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.
959
9602006-07-18 Tom Tromey <tromey@redhat.com>
961
962 * lang.opt: Added missing -W options.
963
9642006-07-12 Tom Tromey <tromey@redhat.com>
965
966 PR java/28329:
967 * lang-specs.h: Pass '%U'-based options as separate arguments.
968 Use -faux-classpath.
969 * lang.c (java_handle_option): Handle OPT_faux_classpath.
970 * lang.opt (faux-classpath): New option.
971
9722006-07-07 Tom Tromey <tromey@redhat.com>
973
974 * class.c (make_class_data): Set value for reflection_data field.
975 * decl.c (java_init_decl_processing): Add reflection_data field.
976
9772006-07-07 Tom Tromey <tromey@redhat.com>
978
979 * jcf-dump.c (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): Declare locals
980 earlier.
981 (HANDLE_SIGNATURE_ATTRIBUTE): Likewise.
982
9832006-07-07 Andrew Haley <aph@redhat.com>
984
985 * jcf-parse.c (set_source_filename): Don't check for
986 CLASS_FROM_CURRENTLY_COMPILED_P.
987 Remove // comments.
988
9892006-07-07 Andrew Haley <aph@redhat.com>
990
991 * java-tree.h (java_read_sourcefilenames): Declare.
992 * lang.c (java_handle_option): Call java_read_sourcefilenames().
993 * lang.opt (fsource-filename): New opt.
994 * lang-specs.h: Add -fsource-filename.
995 * jcf-parse.c (num_files, filenames): New variables.
996 (reverse, cmpstringp, java_read_sourcefilenames,
997 find_sourcefile): New.
998 (set_source_filename): Call find_sourcefile to find the real name
999 of a source file.
1000
10012006-06-27 Tom Tromey <tromey@redhat.com>
1002
1003 * jcf-reader.c (get_attribute): Handle EnclosingMethod,
1004 Signature, LocalVariableTypeTable, annotation attributes.
1005 * jcf-dump.c (HANDLE_ENCLOSINGMETHOD_ATTRIBUTE): New macro.
1006 (HANDLE_SIGNATURE_ATTRIBUTE): Likewise.
1007 (HANDLE_START_FIELD): Mention 'descriptor', not 'signature'.
1008 (HANDLE_METHOD): Likewise.
1009 (HANDLE_LOCALVARIABLETYPETABLE_ATTRIBUTE): New macro.
1010 (print_annotation): New function.
1011 (print_element_value): Likewise.
1012 (indent): Likewise.
1013 (HANDLE_RUNTIMEVISIBLEANNOTATIONS_ATTRIBUTE): New macro.
1014 (HANDLE_RUNTIMEINVISIBLEANNOTATIONS_ATTRIBUTE): Likewise.
1015 (print_parameter_annotations): New function.
1016 (HANDLE_RUNTIMEVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE): New macro.
1017 (HANDLE_RUNTIMEINVISIBLEPARAMETERANNOTATIONS_ATTRIBUTE):
1018 Likewise.
1019 (HANDLE_ANNOTATIONDEFAULT_ATTRIBUTE): Likewise.
1020 (print_annotations): New function.
1021
10222006-06-23 Tom Tromey <tromey@redhat.com>
1023
1024 * lang-specs.h: Default -fsource and -ftarget to 1.5. If
1025 emitting class files, always use 1.5.
1026 * gcj.texi (Input Options): Document -fsource.
1027 (Code Generation): Document -ftarget.
1028
10292006-06-21 Tom Tromey <tromey@redhat.com>
1030
1031 PR java/28089:
1032 * expr.c (expand_java_field_op): Initialize field's declaring
1033 class.
1034
10352006-06-20 Tom Tromey <tromey@redhat.com>
1036
1037 * expr.c (push_value): Always flush quick stack.
1038
10392006-06-19 Tom Tromey <tromey@redhat.com>
1040
1041 * expr.c (push_value): Also flush quick stack if value is a
1042 component_ref.
1043
10442006-06-19 Tom Tromey <tromey@redhat.com>
1045
1046 * expr.c (push_value): Flush quick stack if value has side
1047 effects.
1048
10492006-06-13 Tom Tromey <tromey@redhat.com>
1050
1051 * class.c (is_compiled_class): Explicitly check for current
1052 class.
1053
10542006-06-09 Tom Tromey <tromey@redhat.com>
1055
1056 * gjavah.c (decompile_method): Don't decompile a static field
1057 accessor method.
1058
10592006-06-06 Tom Tromey <tromey@redhat.com>
1060
1061 * lang-specs.h <jc1>: Add .jar file to command line if
1062 -fsaw-java-file. Also, remove -ffilelist-file in this case.
1063
10642006-06-05 Tom Tromey <tromey@redhat.com>
1065
1066 * jcf-dump.c (print_access_flags): Handle varargs, bridge,
1067 synthetic, enum, annotation.
1068 * jcf.h (ACC_BRIDGE): New macro.
1069 (ACC_VARARGS): Likewise.
1070 (ACC_SYNTHETIC): Likewise.
1071 (ACC_ENUM): Likewise.
1072 (ACC_ANNOTATION): Likewise.
1073
10742006-06-04 Tom Tromey <tromey@redhat.com>
1075
1076 * lang.opt (-fsaw-java-file, -fsource, -ftarget): New options.
1077 * jvspec.c (jvgenmain_spec): Remove -fsaw-java-file, -fsource,
1078 and -ftarget.
1079 (lang_specific_driver): Removed dead code. Add -fsaw-java-file
1080 when needed. Handle classpath-setting.
1081 * Make-lang.in ($(GCJ)$(exeext)): Link in jcf-path.o.
1082 * lang-specs.h: Rewrote.
1083
10842006-06-04 Tom Tromey <tromey@redhat.com>
1085
1086 * jcf-io.c (find_class): Set source_ok to 0.
1087 * jcf-parse.c (jcf_parse): Disable gnu.gcj.gcj-compiled warning.
1088 (parse_class_file): Don't call java_mark_class_local.
1089 (java_parse_file): Skip .java files. Call java_mark_class_local
1090 before lowering any code.
1091 (parse_zip_file_entries): Don't call duplicate_class_warning
1092 here.
1093 (process_zip_dir): ... call it here.
1094 * class.c (add_field): Don't mark field external if it is being
1095 compiled into this object.
1096 (make_class_data): Handle situation where class_dtable_decl is
1097 created before Class is compiled.
1098 (is_compiled_class): Don't assume files in zip are compiled into
1099 this object.
1100 (layout_class_method): Don't mark method external if it is being
1101 compiled into this object.
1102
11032006-06-04 Tom Tromey <tromey@redhat.com>
1104
1105 * jcf-path.c (jcf_path_compute): New function.
1106 * jcf.h (jcf_path_compute): Declare.
1107
c79efc4d
RÁE
11082006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
1109
1110 * decl.c: Include langhooks.h.
1111 (builtin_function): Remove.
1112 (java_init_decl_processing): Replace calls to builtin_function
1113 with add_builtin_function.
1114 * Make-lang.in (jc1$(exeext)): Depend on and link with attribs.o.
1115 (java/decl.o): Depend on langhooks.h.
1116 * java-tree.h (builtin_function): Remove.
1117
b5422ad7
BM
11182006-10-10 Brooks Moses <bmoses@stanford.edu>
1119
1120 * Make-lang.in: Added "java.pdf", "gcj.pdf" target support.
1121
ff682191
TT
11222006-09-12 Tom Tromey <tromey@redhat.com>
1123
1124 * expr.c (push_value): Always flush quick stack.
1125
f8248aaa
TT
11262006-09-12 Tom Tromey <tromey@redhat.com>
1127
1128 PR java/29013:
1129 * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note
1130 the push of the called method's return result.
1131
ed08fcf6
TT
11322006-09-12 Tom Tromey <tromey@redhat.com>
1133
1134 * jvspec.c (lang_specific_driver): Read spec file even if
1135 -fsyntax-only.
1136
4b943588
TT
11372006-09-12 Tom Tromey <tromey@redhat.com>
1138
1139 PR java/28754:
1140 * expr.c (expand_java_field_op): Initialize field's declaring
1141 interface if necessary.
1142
91da2e7c
TT
11432006-09-12 Tom Tromey <tromey@redhat.com>
1144
1145 PR java/28892:
1146 * expr.c (expand_java_field_op): No error for assignments not in
1147 class initializer or constructor.
1148
182ee260
AH
11492006-08-22 Andrew Haley <aph@redhat.com>
1150
1151 * decl.c (java_add_stmt): Give the statement list a type.
1152
97c074fd
JJ
11532006-08-16 Jakub Jelinek <jakub@redhat.com>
1154 Bryce McKinlay <bryce@mckinlay.net.nz>
1155
1156 * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.
1157
b576b3a7
SM
11582006-08-10 Simon Martin <simartin@users.sourceforge.net>
1159
1160 PR java/8923
1161 * parse.y (build_incdec): Emit an error instead of an ICE if '++'
1162 or '--' is used with a constant operand.
1163 (java_complete_lhs): When processing a '++' or '--' expression,
1164 don't call java_complete_tree but java_complete_lhs, so that a
1165 static final variable operand is never replaced by its value. This
1166 avoids an ICE later on.
1167 (patch_unaryop): Fixed typo in comment.
1168
48779194
VR
11692006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1170
1171 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
1172
0ed431d4
BM
11732006-07-12 Bryce McKinlay <mckinlay@redhat.com>
1174
1175 * builtins.c (check_for_builtin): If a builtin could result in a
1176 direct call being generated, don't use it if flag_indirect_dispatch
1177 is set.
1178
11792006-07-12 Bryce McKinlay <mckinlay@redhat.com>
1180
1181 * gcj.texi (Invocation): Corrections for Invocation API example.
1182
8a71d22b
AH
11832006-07-04 Andrew Haley <aph@redhat.com>
1184
1185 * class.c (build_fieldref_cache_entry): Set DECL_IGNORED_P on the
1186 entry.
1187
6de5f432
AH
11882006-06-21 Andrew Haley <aph@redhat.com>
1189
1190 * java-tree.h (update_aliases): Remove
1191 * expr.c (expand_iinc): Remove call to update_aliases().
1192 (STORE_INTERNAL): Likewise.
1193 * decl.c (update_aliases, initialize_local_variable)
1194 (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls.
1195
fe4e7c65
AH
11962006-06-19 Andrew Haley <aph@redhat.com>
1197
5f86874e
AP
1198 PR java/1305
1199 PR java/27908
fe4e7c65
AH
1200 * expr.c (java_modify_addr_for_volatile): New function.
1201 (expand_java_field_op): Handle volatile fields.
1202 * java-gimplify.c (java_gimplify_component_ref): Call
1203 java_modify_addr_for_volatile to give the field_ref the correct
1204 volatile type.
1205 (java_gimplify_modify_expr): Likewise.
1206 * java-tree.h (java_modify_addr_for_volatile): New decl.
1207
7348b1fd
KB
12082006-06-17 Karl Berry <karl@gnu.org>
1209
1210 * gcj.texi (@dircategory): Use "Software development" instead
1211 of "Programming", following the Free Software Directory.
1212
e046c56e
AH
12132006-06-16 Andrew Haley <aph@redhat.com>
1214
1215 * class.c (make_class_data): When using flag_indirect_classes,
1216 don't initialize the vtable of Class instances.
1217
572f9e47
AH
12182006-06-09 Andrew Haley <aph@redhat.com>
1219
1220 PR java/1305
1221 PR java/27908
1222 * builtins.c (initialize_builtins): Add __sync_synchronize().
1223 * class.c (add_field): Mark volatile fields.
1224 * java-gimplify.c (java_gimplify_expr): Call new functions to
1225 handle self-modifying exprs and COMPONENT_REFs.
1226 (java_gimplify_component_ref): New.
1227 (java_gimplify_modify_expr): Add handling for volatiles.
1228
be9a52f8
TT
12292006-06-08 Tom Tromey <tromey@redhat.com>
1230
1231 * gcj.texi (libgcj Runtime Properties): Document
1232 gnu.gcj.user.realname.
1233
313ab5ee
AH
12342006-06-08 Andrew Haley <aph@redhat.com>
1235
1236 * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to
1237 get_symbol_table_index().
1238 (maybe_rewrite_invocation): Set SPECIAL if we need to access a
1239 private method.
1240 (build_known_method_ref): New arg: special. Pass it to
1241 get_symbol_table_index.
1242 (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of
1243 the method list.
1244 (build_invokevirtual): New arg: special. Pass it to
1245 get_symbol_table_index.
1246 (expand_invoke): New variable: special.
1247 Pass it to maybe_rewrite_invocation().
1248 Pass it to build_known_method_ref().
1249 * class.c (build_symbol_entry): Add new arg: special. Use it to
1250 build the symbol table conbstructor.
1251 (emit_symbol_table): Extract SPECIAL from the method list and pass
1252 it to build_symbol_entry().
1253 * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set
1254 special accordingly.
1255
696dad4b
DD
12562006-06-06 David Daney <ddaney@avtrex.com>
1257
1258 * gcj.texi (libgcj Runtime Properties): Document
1259 gnu.gcj.runtime.NameFinder.show_raw and
1260 gnu.gcj.runtime.NameFinder.remove_unknown.
1261
c02174ab
TT
12622006-06-06 Tom Tromey <tromey@redhat.com>
1263
1264 * jcf-dump.c (print_access_flags): Handle varargs, bridge,
1265 synthetic, enum, annotation.
1266 * jcf.h (ACC_BRIDGE): New macro.
1267 (ACC_VARARGS): Likewise.
1268 (ACC_SYNTHETIC): Likewise.
1269 (ACC_ENUM): Likewise.
1270 (ACC_ANNOTATION): Likewise.
1271
22482f74
MS
12722006-06-06 Mike Stump <mrs@apple.com>
1273
1274 * Make-lang.in: Rename to htmldir to build_htmldir to avoid
1275 installing during build.
1276
99d2ea7e
TF
12772006-05-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1278
1279 * gcj.texi (Extensions): Document the new gcj-dbtool-based
1280 classname-to-library resolution mechanism.
1281 Declare the old gnu.gcj.runtime.VMClassLoader.library_control
1282 mechanism deprecated.
1283 (libgcj Runtime Properties): Document
1284 gnu.gcj.runtime.VMClassLoader.library_control's new default.
1285
a6404080
JJ
12862006-05-29 Jakub Jelinek <jakub@redhat.com>
1287
1288 * javaop.h (int16, int32, int64): Define to exactly 16 (resp. 32, 64)
1289 bit wide type.
1290 (jword): Define to uint64 on 64-bit arches.
1291 * jcf-dump.c (print_constant): Cast JPOOL_UINT to long.
1292
375277f6
KH
12932006-05-28 Kazu Hirata <kazu@codesourcery.com>
1294
1295 * class.c, except.c, expr.c, java-gimplify.c: Fix comment
1296 typos.
1297
153d08d5
TT
12982006-05-26 Tom Tromey <tromey@redhat.com>
1299
1300 * expr.c (java_push_constant_from_pool): Handle 'ldc class'.
1301 * verify-glue.c (vfy_class_type): New function.
1302 * verify-impl.c (check_constant): Allow 'ldc class'.
1303 * verify.h (vfy_class_type): Declare.
1304
b713aa3a
AH
13052006-05-25 Andrew Haley <aph@redhat.com>
1306
1307 PR java/27756
1308 * decl.c (maybe_pushlevels): When variable ranges are non-nested
1309 update all lifetimes, not just the first one.
1310
740dfbde
TT
13112006-05-24 Tom Tromey <tromey@redhat.com>
1312
1313 * java-tree.h: Fixed flag documentation.
1314
5aca4c41
TT
13152006-05-24 Tom Tromey <tromey@redhat.com>
1316
1317 PR libgcj/27729:
1318 * jcf.h (ACC_INVISIBLE): Changed value.
1319
5eecfc4d
AH
13202006-05-24 Andrew Haley <aph@redhat.com>
1321
cc07b2db 1322 PR java/27754
5eecfc4d
AH
1323 * decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a
1324 COMPOUND_EXPR.
1325
8dc3f290
L
13262006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1327
1328 * lang.opt (femit-class-file): Remove VarExists.
1329
6420fb77
TT
13302006-05-16 Tom Tromey <tromey@redhat.com>
1331
1332 * verify-impl.c (verify_instructions_0) <op_return>: Special case
1333 for Object.<init>.
1334
14c7833c
L
13352006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1336
1337 PR driver/26885
1338 * Make-lang.in ($(GCJ)$(exeext)): Replace gcc.o with
1339 $(GCC_OBJS).
1340
05b44921
L
13412006-05-14 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * Make-lang.in (java/decl.o): Add dependency on $(TARGET_H).
1344 (java/expr.o): Replace target.h with $(TARGET_H).
1345 (java/parse.o): Likewise.
1346
e080b30b
AH
13472006-05-10 Andrew Haley <aph@redhat.com>
1348
1349 * class.c (emit_indirect_register_classes): Fix comment.
1350
b1138221
TT
13512006-05-04 Tom Tromey <tromey@redhat.com>
1352
1353 * java-tree.h (uses_jv_markobj_p): Declare.
1354 * class.c (uses_jv_markobj_p): Removed.
1355 * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): New define.
1356 (get_boehm_type_descriptor): Use it.
1357 (uses_jv_markobj_p): Moved from class.c. Return bool.
1358
532f41fa
TT
13592006-05-04 Tom Tromey <tromey@redhat.com>
1360
1361 * java-tree.def (THIS_EXPR): Now a tcc_expression.
1362
b2ed63b4
AH
13632006-05-04 Andrew Haley <aph@redhat.com>
1364
1365 * class.c (make_field_value): Always build_address_of fdecl if
1366 there is an initializer.
1367
13682006-05-03 Andrew Haley <aph@redhat.com>
1369
1370 PR libgcj/27352
1371 * expr.c (maybe_rewrite_invocation): New function.
1372 (rewrite_arglist_getclass): Likewise.
1373 (rules): New.
1374 (expand_invoke): Call maybe_rewrite_invocation.
1375 * parse.y (patch_invoke): Likewise.
1376 * java-tree.h: (maybe_rewrite_invocation): New function.
1377
621ae65d
AH
13782006-04-21 Andrew Haley <aph@redhat.com>
1379
1380 * lang.c (java_init): Handle flag_indirect_classes.
1381 * jvgenmain.c: Use "class$$" instead of "class$".
1382 * mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as
1383 DECLs.
1384 (mangle_class_field): Special case "class$$" as well as "class$".
1385 * constants.c (build_ref_from_constant_pool): If
1386 flag_indirect_classes, generate a ref into the heap.
1387 * decl.c (constants_field_decl_node,
1388 constants_data_field_decl_node): New.
1389 * class.c (build_static_class_ref): New.
1390 (build_classdollar_field): Factor out from build_class_ref().
1391 (make_field_value): Handle static fields in heap.
1392 (make_class_data): Make sure we get a static ref to class.
1393 Make class initializer const if flag_indirect_classes.
1394 (register_class): Build a class_ref for initialization if
1395 flag_indirect_classes.
1396 (emit_indirect_register_classes): New.
1397
f48c58e8
KH
13982006-04-08 Kazu Hirata <kazu@codesourcery.com>
1399
1400 * expr.c, gjavah.c: Fix comment typos.
1401
e4724785
AH
14022006-04-03 Andrew Haley <aph@redhat.com>
1403
1404 PR java/26858
1405 * expr.c (build_field_ref): Don't check the field offset if
1406 flag_syntax_only.
1407
e6b7893e
AH
14082006-03-30 Andrew Haley <aph@redhat.com>
1409
1410 PR java/26858
1411 * lang.c (java_attribute_table): New.
1412 (LANG_HOOKS_ATTRIBUTE_TABLE): Define.
1413 * expr.c (build_field_ref): Add a null pointer check for all
1414 fields of offset > 4k. Don't do so for accesses via the this
1415 pointer, which we know can never be null.
1416 * class.c (build_java_method_type): Mark arg 1 of all nonstatic
1417 methods nonnull.
1418
ad3a7ce3
CD
14192006-03-30 Carlos O'Donell <carlos@codesourcery.com>
1420
1421 * Make-lang.in: Rename docdir to gcc_docdir.
1422
1549c4e5
TT
14232006-03-30 Tom Tromey <tromey@redhat.com>
1424
1425 PR java/26042:
1426 * parse.y (java_reorder_fields): Reset superclass field's size as
1427 well.
1428
531e214a
TT
14292006-03-28 Tom Tromey <tromey@redhat.com>
1430
1431 PR java/26390:
1432 * parse.y (find_most_specific_methods_list): Added 'class'
1433 argument.
1434 (lookup_method_invoke): Updated.
1435
b32d6f93
TT
14362006-03-15 Tom Tromey <tromey@redhat.com>
1437
1438 * jcf-write.c (generate_bytecode_insns): Use qualifying type for
1439 non-static method calls.
1440
a9e317ed
DD
14412006-03-15 David Daney <ddaney@avtrex.com>
1442
1443 * java-tree.h : Moved comment for TYPE_DOT_CLASS adjacent to its
1444 declaration.
1445
dba370a8
DD
14462006-03-15 David Daney <ddaney@avtrex.com>
1447
1448 * lang.opt (-freduced-reflection): New option.
1449 * lang.c (java_post_options): Generate an error if
1450 -freduced-reflection used with -fjni or -findirect-dispatch.
1451 * java-tree.h (flag_reduced_reflection): Declare new variable.
1452 * boehm.c (get_boehm_type_descriptor): Indicate all pointers
1453 if bitmap overflows and flag_reduced_reflection set.
1454 * class.c (uses_jv_markobj_p): New function.
1455 (make_class_data): Moved generation of vtable to before
1456 reflection data, generate less reflection data if
1457 flag_reduced_reflection set.
1458 * gcj.texi: Document -freduced-reflection.
1459
88200a8d
TT
14602006-03-15 Tom Tromey <tromey@redhat.com>
1461
492edb3a 1462 PR java/26638:
88200a8d
TT
1463 * class.c (get_interface_method_index): Don't put <clinit> into
1464 interface table.
1465
2afd35b3
TT
14662006-03-15 Tom Tromey <tromey@redhat.com>
1467
1468 * parse.y (analyze_clinit_body): Ignore empty statements.
1469
d6c122f7
DD
14702006-03-08 David Daney <ddaney@avtrex.com>
1471
1472 * gcj.texi: Document -static-libgcj option.
1473
b9e6e588
AH
14742006-02-20 Andrew Haley <aph@redhat.com>
1475
1476 * jcf-parse.c (parse_class_file): Set input_location from
1477 current_class.
1478
517f4918
AH
14792006-02-15 Andrew Haley <aph@redhat.com>
1480
1481 * class.c (GEN_TABLE): Don't pushdecl *_SYMS_DECL here.
1482 (make_class_data): pushdecl_top_level TYPE_OTABLE_SYMS_DECL,
1483 TYPE_ATABLE_SYMS_DECL, TYPE_ITABLE_SYMS_DECL here.
1484
58e0c554
AH
14852006-02-09 Andrew Haley <aph@redhat.com>
1486
1487 PR java/26192
1488 * expr.c (expand_invoke): Allow methods in arrays to be resolved
1489 in their superclass.
1490
1491 * typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for
1492 array types.
1493
855dd2bc
TT
14942006-02-08 Tom Tromey <tromey@redhat.com>
1495
1496 PR java/22578:
1497 * check-init.c (check_init): Handle VIEW_CONVERT_EXPR.
1498 * builtins.c (convert_real): New function.
1499 (java_builtins): Handle Float.intBitsToFloat,
1500 Float.floatToRawIntBits, Double.longBitsToDouble,
1501 Double.doubleToRawLongBits.
1502
0920886f
AH
15032006-02-07 Andrew Haley <aph@redhat.com>
1504
1505 * expr.c (expand_invoke): (BC mode.) If we find a method in a
1506 class other than the one in which we expected to find it, ignore
1507 the result.
1508
1509 PR java/25535
1510 * constants.c (build_constants_constructor): move initializer into
7135d758 1511 first halfword on a 64-bit big-endian machine.
5f86874e 1512
05d8200d
TT
15132006-02-04 Tom Tromey <tromey@redhat.com>
1514
1515 PR java/25676:
1516 * builtins.c (max_builtin): Skip floating point 'max'.
1517 (min_builtin): Skip floating point 'min'.
1518 (check_for_builtin): Never return NULL_TREE.
1519
fb579387
TT
15202006-02-04 Tom Tromey <tromey@redhat.com>
1521
1522 PR java/26097:
1523 * expr.c (push_type): Avoid side effect in gcc_assert.
1524
5460aa9c
RS
15252006-02-04 Roger Sayle <roger@eyesopen.com>
1526
1527 * decl.c (java_init_decl_processing): Create char_type_node as a
1528 regular INTEGER_TYPE node.
1529 (push_promoted_type): Preserve TYPE_STRING_FLAG on types.
1530 * typeck.c (convert): No longer check for CHAR_TYPEs but instead
1531 test for char_type_node and promoted_char_type_node as special
1532 instances of INTEGER_TYPE tree codes.
1533 (promote_type,build_java_signature): Likewise.
1534 * jcf-write.c (adjust_typed_op): Likewise.
1535 * mangle.c (mangle_type): Likewise.
1536 * parse.y (do_unary_numeric_promotion): No longer handle CHAR_TYPE.
1537 * parse.h (JINTEGRAL_TYPE_P): Likewise.
1538
74a88f62
AT
15392006-02-04 Andreas Tobler <a.tobler@schweiz.ch>
1540
1541 * expr.c (java_stack_swap): Revert gcc_assert patch.
1542
ab184b2a
BE
15432006-02-03 Ben Elliston <bje@au.ibm.com>
1544
1545 * java-gimplify.c: Use gcc_assert and gcc_unreachable throughout.
1546 * typeck.c: Likewise.
1547 * verify-impl.c: Likewise.
1548 * class.c: Likewise.
1549 * decl.c: Likewise.
1550 * jcf-parse.c: Likewise.
1551 * constants.c: Likewise.
1552 * check-init.c: Likewise.
1553 * jcf-write.c: Likewise.
1554 * verify-glue.c: Likewise.
1555 * mangle.c: Likewise.
1556 * expr.c: Likewise.
1557 * lang.c: Likewise.
1558 * boehm.c: Likewise.
1559
46fd0f8c
JH
15602006-02-01 Jan Hubicka <jh@suse.cz>
1561
1562 * decl.c (end_java_method): Kill hack disabling unit-at-a-time.
1563 * lang.c (java_init_options): Set no_unit_at_a_time_default.
1564
6bb862cc
AH
15652006-01-30 Andrew Haley <aph@redhat.com>
1566
1567 PR java/21428
1568 * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this").
1569
a6d6c2c0
JM
15702006-01-21 Joseph S. Myers <joseph@codesourcery.com>
1571
1572 * jv-scan.c (version), jcf-dump.c (version), gjavah.c (version):
1573 Update copyright notice dates.
1574
874be9d3 1575