]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/java/ChangeLog
--(top level)--------------------------------------------
[thirdparty/gcc.git] / gcc / java / ChangeLog
CommitLineData
b5422ad7
BM
12006-10-10 Brooks Moses <bmoses@stanford.edu>
2
3 * Make-lang.in: Added "java.pdf", "gcj.pdf" target support.
4
ff682191
TT
52006-09-12 Tom Tromey <tromey@redhat.com>
6
7 * expr.c (push_value): Always flush quick stack.
8
f8248aaa
TT
92006-09-12 Tom Tromey <tromey@redhat.com>
10
11 PR java/29013:
12 * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note
13 the push of the called method's return result.
14
ed08fcf6
TT
152006-09-12 Tom Tromey <tromey@redhat.com>
16
17 * jvspec.c (lang_specific_driver): Read spec file even if
18 -fsyntax-only.
19
4b943588
TT
202006-09-12 Tom Tromey <tromey@redhat.com>
21
22 PR java/28754:
23 * expr.c (expand_java_field_op): Initialize field's declaring
24 interface if necessary.
25
91da2e7c
TT
262006-09-12 Tom Tromey <tromey@redhat.com>
27
28 PR java/28892:
29 * expr.c (expand_java_field_op): No error for assignments not in
30 class initializer or constructor.
31
182ee260
AH
322006-08-22 Andrew Haley <aph@redhat.com>
33
34 * decl.c (java_add_stmt): Give the statement list a type.
35
97c074fd
JJ
362006-08-16 Jakub Jelinek <jakub@redhat.com>
37 Bryce McKinlay <bryce@mckinlay.net.nz>
38
39 * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.
40
b576b3a7
SM
412006-08-10 Simon Martin <simartin@users.sourceforge.net>
42
43 PR java/8923
44 * parse.y (build_incdec): Emit an error instead of an ICE if '++'
45 or '--' is used with a constant operand.
46 (java_complete_lhs): When processing a '++' or '--' expression,
47 don't call java_complete_tree but java_complete_lhs, so that a
48 static final variable operand is never replaced by its value. This
49 avoids an ICE later on.
50 (patch_unaryop): Fixed typo in comment.
51
48779194
VR
522006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
53
54 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
55
0ed431d4
BM
562006-07-12 Bryce McKinlay <mckinlay@redhat.com>
57
58 * builtins.c (check_for_builtin): If a builtin could result in a
59 direct call being generated, don't use it if flag_indirect_dispatch
60 is set.
61
622006-07-12 Bryce McKinlay <mckinlay@redhat.com>
63
64 * gcj.texi (Invocation): Corrections for Invocation API example.
65
8a71d22b
AH
662006-07-04 Andrew Haley <aph@redhat.com>
67
68 * class.c (build_fieldref_cache_entry): Set DECL_IGNORED_P on the
69 entry.
70
6de5f432
AH
712006-06-21 Andrew Haley <aph@redhat.com>
72
73 * java-tree.h (update_aliases): Remove
74 * expr.c (expand_iinc): Remove call to update_aliases().
75 (STORE_INTERNAL): Likewise.
76 * decl.c (update_aliases, initialize_local_variable)
77 (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls.
78
fe4e7c65
AH
792006-06-19 Andrew Haley <aph@redhat.com>
80
5f86874e
AP
81 PR java/1305
82 PR java/27908
fe4e7c65
AH
83 * expr.c (java_modify_addr_for_volatile): New function.
84 (expand_java_field_op): Handle volatile fields.
85 * java-gimplify.c (java_gimplify_component_ref): Call
86 java_modify_addr_for_volatile to give the field_ref the correct
87 volatile type.
88 (java_gimplify_modify_expr): Likewise.
89 * java-tree.h (java_modify_addr_for_volatile): New decl.
90
7348b1fd
KB
912006-06-17 Karl Berry <karl@gnu.org>
92
93 * gcj.texi (@dircategory): Use "Software development" instead
94 of "Programming", following the Free Software Directory.
95
e046c56e
AH
962006-06-16 Andrew Haley <aph@redhat.com>
97
98 * class.c (make_class_data): When using flag_indirect_classes,
99 don't initialize the vtable of Class instances.
100
572f9e47
AH
1012006-06-09 Andrew Haley <aph@redhat.com>
102
103 PR java/1305
104 PR java/27908
105 * builtins.c (initialize_builtins): Add __sync_synchronize().
106 * class.c (add_field): Mark volatile fields.
107 * java-gimplify.c (java_gimplify_expr): Call new functions to
108 handle self-modifying exprs and COMPONENT_REFs.
109 (java_gimplify_component_ref): New.
110 (java_gimplify_modify_expr): Add handling for volatiles.
111
be9a52f8
TT
1122006-06-08 Tom Tromey <tromey@redhat.com>
113
114 * gcj.texi (libgcj Runtime Properties): Document
115 gnu.gcj.user.realname.
116
313ab5ee
AH
1172006-06-08 Andrew Haley <aph@redhat.com>
118
119 * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to
120 get_symbol_table_index().
121 (maybe_rewrite_invocation): Set SPECIAL if we need to access a
122 private method.
123 (build_known_method_ref): New arg: special. Pass it to
124 get_symbol_table_index.
125 (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of
126 the method list.
127 (build_invokevirtual): New arg: special. Pass it to
128 get_symbol_table_index.
129 (expand_invoke): New variable: special.
130 Pass it to maybe_rewrite_invocation().
131 Pass it to build_known_method_ref().
132 * class.c (build_symbol_entry): Add new arg: special. Use it to
133 build the symbol table conbstructor.
134 (emit_symbol_table): Extract SPECIAL from the method list and pass
135 it to build_symbol_entry().
136 * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set
137 special accordingly.
138
696dad4b
DD
1392006-06-06 David Daney <ddaney@avtrex.com>
140
141 * gcj.texi (libgcj Runtime Properties): Document
142 gnu.gcj.runtime.NameFinder.show_raw and
143 gnu.gcj.runtime.NameFinder.remove_unknown.
144
c02174ab
TT
1452006-06-06 Tom Tromey <tromey@redhat.com>
146
147 * jcf-dump.c (print_access_flags): Handle varargs, bridge,
148 synthetic, enum, annotation.
149 * jcf.h (ACC_BRIDGE): New macro.
150 (ACC_VARARGS): Likewise.
151 (ACC_SYNTHETIC): Likewise.
152 (ACC_ENUM): Likewise.
153 (ACC_ANNOTATION): Likewise.
154
22482f74
MS
1552006-06-06 Mike Stump <mrs@apple.com>
156
157 * Make-lang.in: Rename to htmldir to build_htmldir to avoid
158 installing during build.
159
99d2ea7e
TF
1602006-05-31 Thomas Fitzsimmons <fitzsim@redhat.com>
161
162 * gcj.texi (Extensions): Document the new gcj-dbtool-based
163 classname-to-library resolution mechanism.
164 Declare the old gnu.gcj.runtime.VMClassLoader.library_control
165 mechanism deprecated.
166 (libgcj Runtime Properties): Document
167 gnu.gcj.runtime.VMClassLoader.library_control's new default.
168
a6404080
JJ
1692006-05-29 Jakub Jelinek <jakub@redhat.com>
170
171 * javaop.h (int16, int32, int64): Define to exactly 16 (resp. 32, 64)
172 bit wide type.
173 (jword): Define to uint64 on 64-bit arches.
174 * jcf-dump.c (print_constant): Cast JPOOL_UINT to long.
175
375277f6
KH
1762006-05-28 Kazu Hirata <kazu@codesourcery.com>
177
178 * class.c, except.c, expr.c, java-gimplify.c: Fix comment
179 typos.
180
153d08d5
TT
1812006-05-26 Tom Tromey <tromey@redhat.com>
182
183 * expr.c (java_push_constant_from_pool): Handle 'ldc class'.
184 * verify-glue.c (vfy_class_type): New function.
185 * verify-impl.c (check_constant): Allow 'ldc class'.
186 * verify.h (vfy_class_type): Declare.
187
b713aa3a
AH
1882006-05-25 Andrew Haley <aph@redhat.com>
189
190 PR java/27756
191 * decl.c (maybe_pushlevels): When variable ranges are non-nested
192 update all lifetimes, not just the first one.
193
740dfbde
TT
1942006-05-24 Tom Tromey <tromey@redhat.com>
195
196 * java-tree.h: Fixed flag documentation.
197
5aca4c41
TT
1982006-05-24 Tom Tromey <tromey@redhat.com>
199
200 PR libgcj/27729:
201 * jcf.h (ACC_INVISIBLE): Changed value.
202
5eecfc4d
AH
2032006-05-24 Andrew Haley <aph@redhat.com>
204
cc07b2db 205 PR java/27754
5eecfc4d
AH
206 * decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a
207 COMPOUND_EXPR.
208
8dc3f290
L
2092006-05-16 H.J. Lu <hongjiu.lu@intel.com>
210
211 * lang.opt (femit-class-file): Remove VarExists.
212
6420fb77
TT
2132006-05-16 Tom Tromey <tromey@redhat.com>
214
215 * verify-impl.c (verify_instructions_0) <op_return>: Special case
216 for Object.<init>.
217
14c7833c
L
2182006-05-16 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR driver/26885
221 * Make-lang.in ($(GCJ)$(exeext)): Replace gcc.o with
222 $(GCC_OBJS).
223
05b44921
L
2242006-05-14 H.J. Lu <hongjiu.lu@intel.com>
225
226 * Make-lang.in (java/decl.o): Add dependency on $(TARGET_H).
227 (java/expr.o): Replace target.h with $(TARGET_H).
228 (java/parse.o): Likewise.
229
e080b30b
AH
2302006-05-10 Andrew Haley <aph@redhat.com>
231
232 * class.c (emit_indirect_register_classes): Fix comment.
233
b1138221
TT
2342006-05-04 Tom Tromey <tromey@redhat.com>
235
236 * java-tree.h (uses_jv_markobj_p): Declare.
237 * class.c (uses_jv_markobj_p): Removed.
238 * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): New define.
239 (get_boehm_type_descriptor): Use it.
240 (uses_jv_markobj_p): Moved from class.c. Return bool.
241
532f41fa
TT
2422006-05-04 Tom Tromey <tromey@redhat.com>
243
244 * java-tree.def (THIS_EXPR): Now a tcc_expression.
245
b2ed63b4
AH
2462006-05-04 Andrew Haley <aph@redhat.com>
247
248 * class.c (make_field_value): Always build_address_of fdecl if
249 there is an initializer.
250
2512006-05-03 Andrew Haley <aph@redhat.com>
252
253 PR libgcj/27352
254 * expr.c (maybe_rewrite_invocation): New function.
255 (rewrite_arglist_getclass): Likewise.
256 (rules): New.
257 (expand_invoke): Call maybe_rewrite_invocation.
258 * parse.y (patch_invoke): Likewise.
259 * java-tree.h: (maybe_rewrite_invocation): New function.
260
621ae65d
AH
2612006-04-21 Andrew Haley <aph@redhat.com>
262
263 * lang.c (java_init): Handle flag_indirect_classes.
264 * jvgenmain.c: Use "class$$" instead of "class$".
265 * mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as
266 DECLs.
267 (mangle_class_field): Special case "class$$" as well as "class$".
268 * constants.c (build_ref_from_constant_pool): If
269 flag_indirect_classes, generate a ref into the heap.
270 * decl.c (constants_field_decl_node,
271 constants_data_field_decl_node): New.
272 * class.c (build_static_class_ref): New.
273 (build_classdollar_field): Factor out from build_class_ref().
274 (make_field_value): Handle static fields in heap.
275 (make_class_data): Make sure we get a static ref to class.
276 Make class initializer const if flag_indirect_classes.
277 (register_class): Build a class_ref for initialization if
278 flag_indirect_classes.
279 (emit_indirect_register_classes): New.
280
f48c58e8
KH
2812006-04-08 Kazu Hirata <kazu@codesourcery.com>
282
283 * expr.c, gjavah.c: Fix comment typos.
284
e4724785
AH
2852006-04-03 Andrew Haley <aph@redhat.com>
286
287 PR java/26858
288 * expr.c (build_field_ref): Don't check the field offset if
289 flag_syntax_only.
290
e6b7893e
AH
2912006-03-30 Andrew Haley <aph@redhat.com>
292
293 PR java/26858
294 * lang.c (java_attribute_table): New.
295 (LANG_HOOKS_ATTRIBUTE_TABLE): Define.
296 * expr.c (build_field_ref): Add a null pointer check for all
297 fields of offset > 4k. Don't do so for accesses via the this
298 pointer, which we know can never be null.
299 * class.c (build_java_method_type): Mark arg 1 of all nonstatic
300 methods nonnull.
301
ad3a7ce3
CD
3022006-03-30 Carlos O'Donell <carlos@codesourcery.com>
303
304 * Make-lang.in: Rename docdir to gcc_docdir.
305
1549c4e5
TT
3062006-03-30 Tom Tromey <tromey@redhat.com>
307
308 PR java/26042:
309 * parse.y (java_reorder_fields): Reset superclass field's size as
310 well.
311
531e214a
TT
3122006-03-28 Tom Tromey <tromey@redhat.com>
313
314 PR java/26390:
315 * parse.y (find_most_specific_methods_list): Added 'class'
316 argument.
317 (lookup_method_invoke): Updated.
318
b32d6f93
TT
3192006-03-15 Tom Tromey <tromey@redhat.com>
320
321 * jcf-write.c (generate_bytecode_insns): Use qualifying type for
322 non-static method calls.
323
a9e317ed
DD
3242006-03-15 David Daney <ddaney@avtrex.com>
325
326 * java-tree.h : Moved comment for TYPE_DOT_CLASS adjacent to its
327 declaration.
328
dba370a8
DD
3292006-03-15 David Daney <ddaney@avtrex.com>
330
331 * lang.opt (-freduced-reflection): New option.
332 * lang.c (java_post_options): Generate an error if
333 -freduced-reflection used with -fjni or -findirect-dispatch.
334 * java-tree.h (flag_reduced_reflection): Declare new variable.
335 * boehm.c (get_boehm_type_descriptor): Indicate all pointers
336 if bitmap overflows and flag_reduced_reflection set.
337 * class.c (uses_jv_markobj_p): New function.
338 (make_class_data): Moved generation of vtable to before
339 reflection data, generate less reflection data if
340 flag_reduced_reflection set.
341 * gcj.texi: Document -freduced-reflection.
342
88200a8d
TT
3432006-03-15 Tom Tromey <tromey@redhat.com>
344
492edb3a 345 PR java/26638:
88200a8d
TT
346 * class.c (get_interface_method_index): Don't put <clinit> into
347 interface table.
348
2afd35b3
TT
3492006-03-15 Tom Tromey <tromey@redhat.com>
350
351 * parse.y (analyze_clinit_body): Ignore empty statements.
352
d6c122f7
DD
3532006-03-08 David Daney <ddaney@avtrex.com>
354
355 * gcj.texi: Document -static-libgcj option.
356
b9e6e588
AH
3572006-02-20 Andrew Haley <aph@redhat.com>
358
359 * jcf-parse.c (parse_class_file): Set input_location from
360 current_class.
361
517f4918
AH
3622006-02-15 Andrew Haley <aph@redhat.com>
363
364 * class.c (GEN_TABLE): Don't pushdecl *_SYMS_DECL here.
365 (make_class_data): pushdecl_top_level TYPE_OTABLE_SYMS_DECL,
366 TYPE_ATABLE_SYMS_DECL, TYPE_ITABLE_SYMS_DECL here.
367
58e0c554
AH
3682006-02-09 Andrew Haley <aph@redhat.com>
369
370 PR java/26192
371 * expr.c (expand_invoke): Allow methods in arrays to be resolved
372 in their superclass.
373
374 * typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for
375 array types.
376
855dd2bc
TT
3772006-02-08 Tom Tromey <tromey@redhat.com>
378
379 PR java/22578:
380 * check-init.c (check_init): Handle VIEW_CONVERT_EXPR.
381 * builtins.c (convert_real): New function.
382 (java_builtins): Handle Float.intBitsToFloat,
383 Float.floatToRawIntBits, Double.longBitsToDouble,
384 Double.doubleToRawLongBits.
385
0920886f
AH
3862006-02-07 Andrew Haley <aph@redhat.com>
387
388 * expr.c (expand_invoke): (BC mode.) If we find a method in a
389 class other than the one in which we expected to find it, ignore
390 the result.
391
392 PR java/25535
393 * constants.c (build_constants_constructor): move initializer into
7135d758 394 first halfword on a 64-bit big-endian machine.
5f86874e 395
05d8200d
TT
3962006-02-04 Tom Tromey <tromey@redhat.com>
397
398 PR java/25676:
399 * builtins.c (max_builtin): Skip floating point 'max'.
400 (min_builtin): Skip floating point 'min'.
401 (check_for_builtin): Never return NULL_TREE.
402
fb579387
TT
4032006-02-04 Tom Tromey <tromey@redhat.com>
404
405 PR java/26097:
406 * expr.c (push_type): Avoid side effect in gcc_assert.
407
5460aa9c
RS
4082006-02-04 Roger Sayle <roger@eyesopen.com>
409
410 * decl.c (java_init_decl_processing): Create char_type_node as a
411 regular INTEGER_TYPE node.
412 (push_promoted_type): Preserve TYPE_STRING_FLAG on types.
413 * typeck.c (convert): No longer check for CHAR_TYPEs but instead
414 test for char_type_node and promoted_char_type_node as special
415 instances of INTEGER_TYPE tree codes.
416 (promote_type,build_java_signature): Likewise.
417 * jcf-write.c (adjust_typed_op): Likewise.
418 * mangle.c (mangle_type): Likewise.
419 * parse.y (do_unary_numeric_promotion): No longer handle CHAR_TYPE.
420 * parse.h (JINTEGRAL_TYPE_P): Likewise.
421
74a88f62
AT
4222006-02-04 Andreas Tobler <a.tobler@schweiz.ch>
423
424 * expr.c (java_stack_swap): Revert gcc_assert patch.
425
ab184b2a
BE
4262006-02-03 Ben Elliston <bje@au.ibm.com>
427
428 * java-gimplify.c: Use gcc_assert and gcc_unreachable throughout.
429 * typeck.c: Likewise.
430 * verify-impl.c: Likewise.
431 * class.c: Likewise.
432 * decl.c: Likewise.
433 * jcf-parse.c: Likewise.
434 * constants.c: Likewise.
435 * check-init.c: Likewise.
436 * jcf-write.c: Likewise.
437 * verify-glue.c: Likewise.
438 * mangle.c: Likewise.
439 * expr.c: Likewise.
440 * lang.c: Likewise.
441 * boehm.c: Likewise.
442
46fd0f8c
JH
4432006-02-01 Jan Hubicka <jh@suse.cz>
444
445 * decl.c (end_java_method): Kill hack disabling unit-at-a-time.
446 * lang.c (java_init_options): Set no_unit_at_a_time_default.
447
6bb862cc
AH
4482006-01-30 Andrew Haley <aph@redhat.com>
449
450 PR java/21428
451 * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this").
452
a6d6c2c0
JM
4532006-01-21 Joseph S. Myers <joseph@codesourcery.com>
454
455 * jv-scan.c (version), jcf-dump.c (version), gjavah.c (version):
456 Update copyright notice dates.
457
874be9d3 458