]> gcc.gnu.org Git - gcc.git/blame_incremental - gcc/cp/ChangeLog
globals.cc: Clarify comments, remove c_locale_imp_compat.
[gcc.git] / gcc / cp / ChangeLog
... / ...
CommitLineData
12003-03-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * cp-tree.h (cxx_saved_binding): Declare.
4 (struct saved_scope): Adjust type of field 'old_binding'.
5 * decl.c (cxx_saved_binding_make): New macro.
6 (struct cxx_saved_binding): Define.
7 (store_bindings): Adjust prototype. Use cxx_saved_binding to save
8 C++ bindings.
9 (maybe_push_to_top_level): Adjust local variable type.
10 (pop_from_top_level): Likewise.
11
122003-03-04 Tom Tromey <tromey@redhat.com>
13
14 * Make-lang.in (c++.tags): New target.
15
162003-03-04 Neil Booth <neil@daikokuya.co.uk>
17
18 * Make-lang.in: Update.
19
202003-03-03 Jason Merrill <jason@redhat.com>
21
22 * decl.c (finish_enum): Do set the type in a template. Simplify.
23 * pt.c (tsubst_enum, tsubst_copy): Revert last patch.
24
252003-03-03 Mark Mitchell <mark@codesourcery.com>
26
27 PR c++/9878
28 * call.c (convert_class_to_reference): Correct conversion
29 sequences.
30 (reference_binding): Add ref_bound_directly_to_rvalue_p parameter.
31 (implicit_conversion): Adjust call to reference_binding.
32 (add_candidate): Change type of candidates parameter.
33 (add_function_candidate): Likewise.
34 (add_conv_candidate): Likewise.
35 (build_builtin_candidate): Likewise.
36 (add_builtin_candidate): Likewise.
37 (add_builtin_candidates): Likewise.
38 (add_template_candidate_real): Likewise.
39 (add_template_candidate): Likewise.
40 (add_template_conv_candidate): Likewise.
41 (build_user_type_conversion_1): Adjust accordingly.
42 (build_object_call): Likewise.
43 (build_conditional_expr): Likewise.
44 (add_candidates): Likewise.
45 (build_new_op): Likewise.
46 (convert_like_real): Use USER_CONV_CAND. Use build_nop.
47 (build_new_method_call): Adjust calls to add_function_candidate.
48 (make_temporary_var_for_ref_to_temp): New function.
49 (initialize_reference): Add decl parameter.
50 * class.c (build_rtti_vtbl_entries): Use build_address and
51 build_nop.
52 * cp-tree.h (initialize_reference): Change prototype.
53 (make_temporary_var_for_ref_to_temp): New function.
54 (build_type_conversion): Change prototype.
55 (build_address): New function.
56 (build_nop): Likewise.
57 * cvt.c (cp_convert_to_pointer): Adjust call to
58 build_type_conversion. Avoid indicating redundant NOP_EXPRs.
59 Use build_nop.
60 (convert_to_pointer_force): Use build_nop.
61 (build_up_reference): Use make_temporary_var_for_ref_to_temp.
62 (convert_to_reference): Adjust call to build_type_conversion.
63 (ocp_convert): Likewise.
64 (build_type_conversion): Remove for_sure parameter.
65 * decl.c (grok_reference_init): Use initialize_reference.
66 * typeck.c (build_address): New function.
67 (build_nop): Likewise.
68 (build_unary_op): Use them.
69 (build_ptrmemfunc): Tidy slightly.
70 (convert_for_initialization): Adjust call to
71 initialize_reference.
72 * typeck2.c (store_init_value): Remove #if 0'd code.
73
742003-03-03 Jason Merrill <jason@redhat.com>
75
76 * decl.c (start_function): Clear DECL_NUM_STMTS.
77
78 * class.c (get_vtable_decl): Use vtbl_type_node.
79 (build_primary_vtable): Check for it.
80
812003-03-02 Aldy Hernandez <aldyh@redhat.com>
82
83 * decl.c (check_initializer): Check for vector_opaque_p.
84
852003-03-02 Ashif Harji <asharji@uwaterloo.ca>
86
87 * lang-specs.h (default_compilers): Add -no-integrated-cpp flag to
88 invoke an external cpp during compilation.
89
902003-03-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
91
92 * decl.c (duplicate_decls): Convert use of warning_with_decl() to
93 that of warning().
94 (start_decl): Likewise.
95 (start_function): Likewise.
96
972003-03-01 Neil Booth <neil@daikokuya.co.uk>
98
99 * Make-lang.in (CXX_C_OBJS): Update.
100
1012003-02-28 Mark Mitchell <mark@codesourcery.com>
102
103 PR c++/9892
104 * pt.c (instantiate_decl): Clear DECL_RTL for a VAR_DECL when
105 instantiating it.
106
1072003-02-28 Aldy Hernandez <aldyh@redhat.com>
108
109 * parser.c (cp_parser_init_declarator): Revert opaque
110 vector_opaque_p change.
111 Do not include target.h.
112
1132003-02-28 Mark Mitchell <mark@codesourcery.com>
114
115 PR c++/9879
116 * cp-tree.h (build_zero_init): Add parameter.
117 * decl.c (cp_finish_decl): Adjust call.
118 * init.c (build_zero_init): Add nelts parameter. Adjust recursive
119 calls.
120 (build_default_init): Add nelts parameter. Adjust calls to
121 build_zero_init.
122 (build_new_1): Adjust call to build_default_init.
123 * typeck2.c (process_init_constructor): Adjust call to build_zero_init.
124
1252003-02-26 Devang Patel <dpatel@apple.com>
126
127 * decl.c (finish_enum): Merge two 'for' loops. Copy value node if required.
128 Postpone enum setting for template decls.
129 (build_enumerator): Delay copying value node until finish_enum (). Remove
130 #if 0'ed code.
131 * pt.c (tsubst_enum): Set TREE_TYPE and copy value node.
132 (tsubst_copy): Add check for enum type.
133
1342003-02-25 Mark Mitchell <mark@codesourcery.com>
135
136 PR c++/9683
137 * decl2.c (prune_vars_needing_no_initialization): Do not throw
138 away initializations for DECL_EXTERNAL VAR_DECLs.
139 (finish_file): Adjust accordingly.
140 * pt.c (instantiate_decl): Do not defer VAR_DECLs.
141
1422003-02-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
143
144 * decl.c (add_binding): Time TV_NAME_LOOKUP.
145 (push_class_binding): Likewise.
146 (set_namespace_binding): Likewise.
147
1482003-02-24 Mark Mitchell <mark@codesourcery.com>
149
150 PR c++/9836
151 * cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): Do not skip from
152 specializations back to the main template.
153 * parser.c (cp_parser_diagnose_invalid_type_name):Adjust use.
154 * pt.c (resolve_typename_type): Likewise.
155
1562003-02-24 Jeffrey D. Oldham <oldham@codesourcery.com>
157
158 PR c++/9778
159 * pt.c (tsubst_copy_and_build): For a templated function inside a
160 scope, process template arguments.
161
1622003-02-24 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
163
164 PR c++/9602
165 * typeck2.c (abstract_virtuals_error): Don't check when
166 TYPE is still template parameter dependent.
167
1682003-02-23 Mark Mitchell <mark@codesourcery.com>
169
170 PR c++/5333
171 * cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): New macro.
172 * parser.c (cp_parser_diagnose_invalid_type_name): Use it.
173 * pt.c (instantiate_class_template): Don't try to instantiate
174 dependent types.
175 (resolve_typename_type): Use CLASSTYPE_PRIMARY_TEMPLATE.
176
1772003-02-21 Mark Mitchell <mark@codesourcery.com>
178
179 PR c++/9749
180 * decl.c (grokdeclarator): Do not allow parameters with variably
181 modified types.
182
1832003-02-21 Nathan Sidwell <nathan@codesourcery.com>
184
185 * search.c (bfs_walk_grow): Remove. Fold into ...
186 (bfs_walk): ... here, fix fencepost error. Fix merge lossage
187 in previous patch.
188
1892003-02-20 Mark Mitchell <mark@codesourcery.com>
190
191 PR c++/9729
192 * mangle.c (mangle_conv_op_name_for_type): Issue an error message
193 when the G++ 3.2 ABI prevents correct compilation.
194
1952003-02-20 Nathan Sidwell <nathan@codesourcery.com>
196
197 Change base class access representation. Share virtual base
198 binfos.
199 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
200 call.
201 * cp/class.c (build_base_path): Likewise.
202 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
203 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
204 (make_new_vtable): Adjust.
205 (force_canonical_binfo_r): Delete.
206 (force_canonical_binfo): Delete.
207 (mark_primary_virtual_base): Delete.
208 (dfs_unshared_virtual_bases): Delete.
209 (mark_primary_bases): Adjust.
210 (maybe_warn_about_overly_private_class): Adjust.
211 (dfs_base_derived_from): Delete.
212 (base_derived_from): Follow the inheritance chain.
213 (struct find_final_overrider_data): Add vpath member.
214 (dfs_find_final_overrider): Adjust.
215 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
216 (find_final_overrider): Adjust.
217 (update_vtable_entry_for_fn): Adjust.
218 (modify_all_vtables): Adjust.
219 (walk_subobject_offsets): Adjust.
220 (layout_nonempty_base_or_field): Adjust.
221 (layout_empty_base): Remove last parameter. Adjust.
222 (build_base_field): Adjust.
223 (build_base_fields): Adjust.
224 (propagate_binfo_offsets): Remove last parameter. Adjust.
225 (dfs_set_offset_for_unshared_vbases): Delete.
226 (layout_virtual_bases): Adjust.
227 (finish_struct_1): Adjust.
228 (init_class_processing): Don't init access nodes.
229 (dfs_get_primary_binfo): Delete.
230 (get_primary_binfo): Adjust.
231 (dump_class_hierarchy_r): Remove most derived arg, add IGO
232 parameter. Adjust.
233 (dump_class_hierarchy): Adjust.
234 (finish_vtbls): Adjust.
235 (get_original_base): Delete.
236 (build_vtt_inits): Adjust.
237 (dfs_build_secondary_vptr_vtt_inits): Adjust.
238 (dfs_ctor_vtable_bases_queue_p): Adjust.
239 (build_ctor_vtbl_group): Adjust.
240 (dfs_accumulate_vtbl_inits): Adjust.
241 (build_vtbl_initializer): Adjust.
242 (build_vbase_offset_vtbl_entries): Adjust.
243 (add_vcall_offset_vtbl_entries_1): Adjust.
244 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
245 (access_*_node): Remove.
246 (CANONICAL_BINFO): Delete.
247 (BINFO_UNSHARED_MARKED): Remove.
248 (BINFO_MARKED): Set LANG_FLAG_0 directly.
249 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
250 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
251 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
252 Delete.
253 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
254 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
255 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
256 Delete.
257 (BINFO_DEPENDENT_BASE_P): New.
258 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
259 index.
260 (markedp, unmarkedp): Adjust.
261 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
262 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
263 find_vbase_instance, binfo_for_vbase): Delete.
264 (copied_binfo, original_binfo): Declare.
265 (finish_base_specifier): Add virtual_p arg.
266 (unshare_base_binfos): Delete.
267 (copy_base_binfos): Declare.
268 (reverse_path): Delete.
269 * cp/decl.c (xref_basetypes): Access and virtuality passed
270 differently. Don't copy direct base binfos here. Call
271 copy_base_binfos.
272 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
273 (initialize_vtbl_ptrs): Adjust.
274 (expand_member_init): Adjust.
275 * cp/parser.c (cp_parser_base_specifier): Adjust.
276 * cp/pt.c (instantiate_class_template): Adjust.
277 (get_template_base_recursive): Adjust.
278 * cp/rtti.c (get_pseudo_ti_init): Adjust.
279 (get_pseudo_ti_desc): Adjust.
280 * cp/tree.c (unshare_base_binfos): Rename to ...
281 (copy_base_binfos): ... here, reimplement.
282 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
283 (reverse_path): Remove.
284 * cp/typeck.c (get_delta_difference): Adjust error messages.
285 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
286 * cp/search.c (lookup_base_r): Adjust.
287 (dynamic_cast_base_recurse): Adjust.
288 (canonical_binfo): Remove.
289 (dfs_canonical_queue): Remove.
290 (dfs_assert_unmarked_p): Remove.
291 (assert_canonical_unmarked): Remove.
292 (shared_marked_p, shared_unmarked_p): Remove.
293 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
294 (dfs_access_in_type): Adjust.
295 (access_in_type): Adjust.
296 (dfs_accessible_queue_p): Adjust.
297 (dfs_accessible_p): Adjust.
298 (is_subobject_of_p_1, is_subobject_of_p): Remove.
299 (struct lookup_field_info): Remove from_dep_base_p field.
300 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
301 (lookup_field_r): Remove dependent base code.
302 (lookup_member): Likewise.
303 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
304 (dfs_unmarked_real_bases_queue_p): Remove.
305 (dfs_marked_real_bases_queue_p): Remove.
306 (dfs_skip_vbases): Remove.
307 (dfs_get_pure_virtuals): Adjust.
308 (markedp, unmarkedp): Adjust.
309 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
310 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
311 (dfs_unmark): Adjust.
312 (dfs_get_vbase_types):Remove.
313 (dfs_build_inheritance_graph_order): Remove.
314 (get_vbase_types): Remove
315 (dfs_find_vbase_instance): Remove.
316 (find_vbase_instance): Remove.
317 (dfs_debug_unmarkedp): Adjust.
318 (dependent_base_p): Remove.
319 (dfs_push_type_decls): Adjust.
320 (dfs_push_decls): Adjust.
321 (dfs_no_overlap_yet): Adjust.
322 (copied_binfo): New function.
323 (original_binfo): New function.
324 (binfo_for_vbase): Remove.
325
3262003-02-18 Zack Weinberg <zack@codesourcery.com>
327
328 * cp/search.c (grow_bfs_bases): New subroutine of bfs_walk.
329 (bfs_walk): Rewritten using circular queue of BINFO_BASETYPES
330 vectors, for speed.
331
3322003-02-18 Mark Mitchell <mark@codesourcery.com>
333
334 PR c++/9704
335 * class.c (layout_class_type): In the 3.2 ABI, take into account
336 trailing bit fields when computing CLASSTYPE_SIZE_UNIT.
337
3382003-02-18 Matt Austern <austern@apple.com>
339
340 * cp/cp-lang.c: Change lang hooks so that final_write_globals does
341 nothing for C++.
342 * cp/decl.c (wrapup_globals_for_namespace): Remove special
343 handling of global namespace.
344
3452003-02-18 Geoffrey Keating <geoffk@apple.com>
346
347 * cp-tree.h (rid_to_yy): Delete.
348 (C_RID_YYCODE): Delete.
349 (finish_file): Delete redundant declaration.
350
3512003-02-18 Jason Merrill <jason@redhat.com>
352
353 PR c++/9623
354 * decl.c (reshape_init): Don't mess with initializer labels.
355
356 PR c++/9485
357 * parser.c (cp_parser_postfix_expression): Set idk properly for
358 object->scope::member.
359
3602003-02-18 Ben Elliston <bje@redhat.com>
361
362 PR other/7350
363 * decl.c (duplicate_decls): Fix typo in comment.
364
3652003-02-17 Michael Elizabeth Chastain <mec@shout.net>
366
367 PR debug/9717
368 * class.c (build_base_field): Mark fields for base classes with
369 DECL_IGNORED_P.
370
3712003-02-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
372
373 PR c++/9457
374 * pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Substitute
375 CONSTRUCTOR_ELTS only once.
376
3772003-02-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
378
379 PR c++/9459
380 * error.c (dump_type_prefix): Handle TYPEOF_TYPE.
381 (dump_type_suffix): Likewise.
382
3832003-02-14 Nathan Sidwell <nathan@codesourcery.com>
384
385 * search.c: ANSIfy function declarations and definitions.
386 * cp-tree.h (lookup_field, lookup_member): Last parameter is a bool.
387 * call.c (build_method_call, resolve_scoped_fn_name,
388 build_java_interface_fn_ref): Adjust lookup_field, lookup_member
389 calls.
390 * class.c (handle_using_decl): Likewise.
391 * decl.c (make_typename_type, make_unmound_class_template,
392 start_decl, compute_array_index_type): Likewise.
393 * decl2.c (build_expr_from_tree, build_call_from_tree): Likewise.
394 * init.c (expand_member_init, build_member_call): Likewise.
395 * pt.c (tsubst_copy, tsubst_copy_and_build, do_decl_instantiation,
396 resolve_typename_type): Likewise.
397 * typeck.c (lookup_destructor, finish_class_member_access_exprm
398 build_prememfunc_access_expr): Likewise.
399
4002003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
401
402 * decl2.c: Include "timevar.h".
403 (namespace_ancestor): Time name lookup.
404 (add_using_namespace): Likewise.
405 (lookup_using_namespace): Likewise.
406 (qualified_lookup_using_namespace): Likewise.
407 (decl_namespace): Likewise.
408 (lookup_arg_dependent): Likewise.
409 * lex.c (do_identifier): Likewise.
410 (do_scoped_id): Likewise.
411 * pt.c (lookup_template_class): Likewise.
412
4132003-02-14 Andrew Pinski <pinskia@physics.uc.edu>
414
415 * decl.c: (define_label): Fix warning for return 0 instead of NULL.
416
4172003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
418
419 * decl.c: Include "timevar.h".
420 (poplevel): Time name lookup.
421 (find_binding): Likewise.
422 (push_namespace): Likewise.
423 (pop_nested_namespace): Likewise.
424 (store_bindings): Likewise.
425 (maybe_push_to_top_level): Likewise.
426 (pop_from_top_level): Likewise.
427 (push_local_name): Likewise.
428 (pushtag): Likewise.
429 (pushdecl): Likewise.
430 (pushdecl_with_scope): Likewise.
431 (pushdecl_namespace_level): Likewise.
432 (pushdecl_top_level): Likewise.
433 (pushdecl_class_level): Likewise.
434 (push_class_level_binding): Likewise.
435 (push_using_decl): Likewise.
436 (push_using_directive): Likewise.
437 (push_overloaded_decl): Likewise.
438 (lookup_label): Likewise.
439 (define_label): Likewise.
440 (lookup_tag): Likewise.
441 (lookup_tag_reverse): Likewise.
442 (lookup_namespace_name): Likewise.
443 (select_decl): Likewise.
444 (unqualified_namespace_lookup): Likewise.
445 (lookup_name_real): Likewise.
446 (lookup_name_current_level): Likewise.
447 (lookup_type_current_level): Likewise.
448 (maybe_inject_for_scope_var): Likewise.
449 (xref_tag): Likewise.
450
451 * Make-lang.in (cp/decl.o): Add dependency on timevar.h
452
4532003-02-12 Phil Edwards <pme@gcc.gnu.org>
454
455 * decl.c (build_enumerator): Remove unneeded test.
456
4572003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
458
459 * cp-tree.h (struct lang_type_header): Make all fields unsigned
460 char.
461
4622003-02-03 Mark Mitchell <mark@codesourcery.com>
463
464 PR c++/7129
465 * call.c (z_candidate): Add args.
466 (convert_class_to_reference): Set it.
467 (implicit_conversion): Tidy.
468 (add_candidate): Add args parameter.
469 (add_function_candidate): Adjust call to add_candidate.
470 (add_conv_candidate): Likewise.
471 (build_builtin_candidate): Likewise.
472 (build_user_type_conversion_1): Eliminate wasteful tree_cons
473 usage.
474 (build_new_function_call): Likewise.
475 (build_object_call): Likewise.
476 (add_candidates): New function.
477 (build_new_op): Use it.
478 (covert_like_real): Adjust call to build_over_call.
479 (build_over_call): Remove args parameter.
480 * operators.def: Add <?= and >?=.
481
4822003-02-01 Richard Sandiford <rsandifo@redhat.com>
483
484 * typeck.c (build_indirect_ref): Don't check flag_volatile.
485
4862003-01-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
487
488 PR c++/8849
489 * pt.c (resolve_overloaded_unification): Handle FUNCTION_DECL.
490
4912003-01-31 Nathan Sidwell <nathan@codesourcery.com>
492
493 * cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
494 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
495 (BINFO_LANG_ELTS): New #define.
496 * tree.c (make_binfo): Use BINFO_LANG_ELTS.
497
4982003-01-30 Geoffrey Keating <geoffk@apple.com>
499
500 * cp/Make-lang.in: Remove -Wno-error from cp/decl.o.
501
5022003-01-30 Mark Mitchell <mark@codesourcery.com>
503
504 * class.c (check_field_decls): Only check C_TYPE_FIELDS_READONLY
505 for class types.
506 * cp-tree.h (C_TYPE_FIELDS_READONLY): Use a lang-specific bit
507 rather than TYPE_LANG_FLAG_0.
508 (TYPE_BUILT_IN): Remove.
509 (TYPE_DEPENDENT_P): New macro.
510 (TYPE_DEPENDENT_P_VALID): Likewise.
511 (lang_type_class): Add fields_readonly.
512 * decl.c (record_builtin_type): Don't set TYPE_BUILT_IN.
513 * pt.c (dependent_type_p_r): New function, split out from ...
514 (dependent_type_p): ... here. Memoize results.
515 * search.c (dependent_base_p): Use dependent_type_p, not
516 uses_template_parms.
517 * typeck.c (build_modify_expr): Only check C_TYPE_FIELDS_READONLY
518 for class types.
519
5202003-01-29 Mark Mitchell <mark@codesourcery.com>
521
522 * call.c (build_field_call): Use build_new_op, not build_opfncall.
523 (prep_operand): New function.
524 (build_new_op): Use it. Remove dead code.
525 * class.c (pushclass): Change "modify" parameter type from int to
526 bool.
527 (currently_open_class): Use same_type_p, not pointer equality.
528 (push_nested_class): Adjust calls to pushclass, remove modify
529 parameter.
530 * cp-tree.h (INTEGRAL_OR_ENUMERATION_TYPE_P): New macro.
531 (pushclass): Change prototype.
532 (push_nested_class): Likewise.
533 (grokoptypename): Remove.
534 (build_opfncall): Remove.
535 (value_dependent_expression_p): Declare.
536 (resolve_typename_type): Likewise.
537 (resolve_typename_type_in_current_instantiation): Likewise.
538 (enter_scope_of): Remove.
539 (tsubst): Remove.
540 (tsubst_expr): Likewise.
541 (tsubst_copy): Likewise.
542 (tsubst_copy_and_build): Likewise.
543 * decl.c (warn_about_implicit_typename_lookup): Remove.
544 (finish_case_label): Return error_mark_node for erroneous labels.
545 (start_decl): Adjust calls to push_nested_class.
546 (grokfndecl): Call push_scope/pop_scope around call to
547 duplicate_decls.
548 (grokdeclarator): Do not call tsubst.
549 (start_function): Adjust calls to push_nested_class.
550 * decl2.c (grok_array_decl): Use build_new_op, not build_opfncall.
551 (check_classfn): Use push_scope/pop_scope around type comparisions.
552 (grokoptypename): Remove.
553 (push_sscope): Adjust call to push_nested_class.
554 * error.c (dump_type): Show cv-qualification of typename types.
555 * init.c (build_member_call): Use build_new_op, not
556 build_opfncall.
557 * method.c (build_opfncall): Remove.
558 * parser.c (cp_parser): Add allow_non_constant_expression_p and
559 non_constant_expression_p.
560 (cp_parser_constant_expression): Adjust prototype.
561 (cp_parser_resolve_typename_type): Remove.
562 (cp_parser_non_constant_expression): New function.
563 (cp_parser_non_constant_id_expression): Likewise.
564 (cp_parser_new): Set allow_non_constant_expression_p and
565 non_constant_expression_p.
566 (cp_parser_primary_expression): Reject `this' and `va_arg' in
567 constant-expressions. Note that dependent names aren't really
568 constant.
569 (cp_parser_postfix_expression): Reject conversions to non-integral
570 types in constant-expressions. Neither are increments or
571 decrements.
572 (cp_parser_unary_expression): Reject increments and decrements in
573 constant-expressions.
574 (cp_parser_direct_new_declarator): Adjust call to
575 cp_parser_constant_expression.
576 (cp_parser_cast_expression): Reject conversions to non-integral
577 types in constant-expressions.
578 (cp_parser_assignment_expression): Rejects assignments in
579 constant-expressions.
580 (cp_parser_expression): Reject commas in constant-expressions.
581 (cp_parser_labeled_statement): Adjust call to
582 cp_parser_constant_expression.
583 (cp_parser_direct_declarator): Simplify array bounds, even in
584 templates, when they are non-dependent. Use
585 resolve_typename_type, not cp_parser_resolve_typename_type.
586 (cp_parser_class_head): Use resolve_typename_type, not
587 cp_parser_resolve_typename_type.
588 (cp_parser_member_declaration): Adjust call to
589 cp_parser_constant_expression.
590 (cp_parser_constant_initializer): Likewise.
591 (cp_parser_constructor_declarator): Use resolve_typename_type, not
592 cp_parser_resolve_typename_type.
593 (cp_parser_late_parsing_default_args): Adjust call to
594 push_nested_class.
595 * pt.c (tsubst): Give it internal linkage.
596 (tsubst_expr): Likewise.
597 (tsubst_copy): Likewise.
598 (tsubst_copy_and_build): Likewise.
599 (push_access_scope_real): Likewise.
600 (tsubst_friend_class): Likewise.
601 (instantiate_class_template): Adjust call to pushclass.
602 (value_dependent_expression_p): Give it external linkage.
603 Robustify.
604 (resolve_typename_type): New function.
605 * semantics.c (finish_call_expr): Use build_new_op, not
606 build_opfncall.
607 (begin_constructor_declarator): Remove.
608 (begin_class_definition): Adjust call to pushclass.
609 (enter_scope_of): Remove.
610 * typeck.c (comptypes): Resolve typename types as appropriate.
611 (build_x_indirect_ref): Use build_new_op, not build_opfncall.
612 (build_x_compound_expr): Likewise.
613 (build_modify_expr): Likewise.
614 (build_x_modify_expr): Likewise.
615 * typeck2.c (build_x_arrow): Likewise.
616
6172003-01-29 Fariborz Jahanian <fjahanian@apple.com>
618
619 * pt.c (last_pending_template) Declare GTY().
620
6212003-01-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
622
623 PR c++/8591
624 * parser.c (cp_parser_elaborated_type_specifier): Convert
625 TEMPLATE_DECL to TYPE_DECL only when processing template friends.
626 (cp_parser_maybe_treat_template_as_class): Remove redundant tests.
627
6282003-01-28 Nathan Sidwell <nathan@codesourcery.com>
629
630 PR c++/9437
631 * pt.c (unify): Don't unify '*T' with 'U C::*'.
632
633 PR c++/3902
634 * parser.c (cp_parser_decl_specifier_seq): Cannot have constructor
635 inside a declarator.
636
6372003-01-27 Nathan Sidwell <nathan@codesourcery.com>
638
639 * class.c (update_vtable_entry_for_fn): Add index parameter.
640 Generate vcall thunk for covariant overriding from a virtual
641 primary base.
642 (dfs_modify_vtables): Adjust.
643
6442003-01-25 Nathan Sidwell <nathan@codesourcery.com>
645
646 PR c++/9403
647 * parser.c (cp_parser_class_or_namespace_name): Reject duplicate
648 template keyword.
649 (cp_parser_base_specifier): Look for and consume a
650 TEMPLATE keyword. Replace switch with array index.
651
652 PR c++/795
653 * semantics.c (finish_non_static_data_member): Remember the
654 field's type even in a template.
655
656 PR c++/9415
657 * pt.c (tsubst_copy_and_build, CALL_EXPR): BASELINK exprs are
658 already scoped.
659
660 PR c++/8545
661 * parser.c (cp_parser_cast_expression): Be more tentative.
662
6632003-01-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
664
665 * cp-tree.h (flagged_type_tree_s): Remove.
666 (check_for_new_type): Likewise.
667 * typeck2.c (check_for_new_type): Likewise.
668
6692003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
670
671 * dump.c: ANSIfy function declarations and definitions.
672
673 * cp-tree.h, decl.h: Get rid of PARAMS. Again.
674
6752003-01-22 Mark Mitchell <mark@codesourcery.com>
676
677 PR c++/9354
678 * init.c (build_new): Set the type of the new-expression, even
679 when processing_templte_decl.
680
681 PR c++/9216
682 * parser.c (cp_parser_primary_expression): Improve error message
683 for templates used in an expression context.
684
685 PR c++/8696
686 * parser.c (cp_parser_decl_specifier_seq): Commit to tentative
687 parse when encountering "typedef".
688
6892003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
690
691 * class.c, parser.c: ANSIfy function definitions and declarations.
692
6932003-01-22 Mark Mitchell <mark@codesourcery.com>
694
695 PR c++/9328
696 * error.c (dump_decl): For an OVERLOAD, just print the name of the
697 function; it doesn't make sense to try to print its type.
698 * semantics.c (finish_typeof): Issue errors about invalid uses.
699
700 PR c++/9298
701 * parser.c (cp_parser_consume_semicolon_at_end_of_statement): New
702 function.
703 (cp_parser_expression_statement): Use it.
704 (cp_parser_explicit_instantiation): Likewise.
705 * pt.c (do_decl_instantiation): Improve error handling logic.
706
7072003-01-22 Mark Mitchell <mark@codesourcery.com>
708
709 PR c++/9384
710 * parser.c (cp_parser_using_declaration): Issue error messages
711 about name resolution failures here.
712
713 PR c++/9388
714 * class.c (currently_open_derived_class): Use dependent_type_p.
715 * cp-tree.h (dependent_type_p): New function.
716 (dependent_template_arg_p): Likewise.
717 (dependent_template_p): Likewise.
718 (type_dependent_expression_p): Likewise.
719 * parser.c (cp_parser_dependent_type_p): Remove.
720 (cp_parser_value_dependent_type_p): Likewise.
721 (cp_parser_type_dependent_expression_p): Likewise.
722 (cp_parser_dependent_template_arg_p): Likewise.
723 (cp_parser_dependent_template_id_p): Likewise.
724 (cp_parser_dependent_template_p): Likewise.
725 (cp_parser_diagnose_invalid_type_name): Replace
726 cp_parser_dependent_type_p with dependent_type_p, etc.
727 (cp_parser_primary_expresion): Likewise.
728 (cp_parser_nested_name_specifier_opt): Likewise.
729 (cp_parser_postfix_expression): Likewise.
730 (cp_parser_unary_expression): Likewise.
731 (cp_parser_template_name): Likewise.
732 (cp_parser_class_name): Likewise.
733 (cp_parser_lookup_name): Likewise.
734 * pt.c (dependent_type_p): New function.
735 (value_dependent_expression_p): Likewise.
736 (type_dependent_expression_p): Likewise.
737 (dependent_template_arg_p): Likewise.
738 (dependent_template_id_p): Likewise.
739 (dependent_template_p): Likewise.
740
741 PR c++/9285
742 PR c++/9294
743 * parser.c (cp_parser_simple_declaration): Return quickly when
744 encountering errors.
745
7462003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
747
748 Make-lang.in (cp/decl.o-warn): Add -Wno-error.
749
7502003-01-17 Jason Merrill <jason@redhat.com>
751
752 PR c++/9167, c++/9358
753 * decl.c (require_complete_types_for_parms): Also update DECL_ARG_TYPE.
754
7552003-01-17 Jason Merrill <jason@redhat.com>
756
757 PR c++/9342
758 * call.c (build_conditional_expr): Always do lvalue-rvalue
759 conversion.
760
7612003-01-17 Mark Mitchell <mark@codesourcery.com>
762
763 PR c++/9294
764 * cp-tree.def (BASELINK): Make it class 'x', not class 'e'.
765 * cp-tree.h (BASELINK_BINFO): Adjust.
766 (BASELINK_FUNCTIONS): Likewise.
767 (BASELINK_ACCESS_BINFO): Likewise.
768 (tree_baselink): New structure.
769 (cp_tree_node_structure_enum): Add TS_CP_BASELINK.
770 (lang_tree_node): Add baselink.
771 * decl.c (cp_tree_node_structure): Add BASELINK case.
772 * search.c (build_baselink): Adjust.
773 * tree.c (cp_walk_subtrees): Add BASELINK case. Remove BASELINK_P
774 test from TREE_LIST case.
775
776 PR c++/9272
777 * parser.c (cp_parser_constructor_declarator_p): Do not assume
778 that a constructor cannot be declared outside of its own class.
779
780 * parser.c (cp_parser_resolve_typename_type): If the scope cannot
781 be resolved, neither can the qualified name.
782
783 * rtti.c (get_pseudo_ti_desc): Fix thinko.
784
7852003-01-16 Jason Merrill <jason@redhat.com>
786
787 PR c++/8564
788 * init.c (build_vec_init): Re-add maxindex parm.
789 (perform_member_init, build_aggr_init): Pass it.
790 (build_new_1): Pass it. Use an incomplete array type for full_type.
791 * typeck.c (build_modify_expr): Pass it.
792 * cp-tree.h: Adjust.
793
7942003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
795
796 * cp-tree.h (tsubst_copy_and_build): New declaration.
797 * pt.c (tsubst_copy): Remove 'build_expr_from_tree' from comment.
798 (tsubst_expr): Use 'tsubst_copy_and_build'. Update initial comment.
799 (tsubst_copy_and_build): New function.
800
8012003-01-16 Mark Mitchell <mark@codesourcery.com>
802
803 * cp-tree.h (lang_type_class): Remove is_partial_instantiation.
804 (PARTIAL_INSTANTIATION_P): Remove.
805 (IMPLICIT_TYPENAME_P): Likewise.
806 (IMPLICIT_TYPENAME_TYPE_DECL_P): Likewise.
807 (build_typename_type): Remove declaration.
808 (parmlist_is_exprlist): Likewise.
809 * decl.c (build_typename_type): Make it static, remove third
810 parameter.
811 (push_class_binding): Don't do implicit typename stuff.
812 (make_typename_type): Likewise.
813 (lookup_name_real): Likewise.
814 (grokdeclarator): Don't try to convert declarations into
815 initializations. Don't do implicit typename stuff.
816 (parmlist_is_exprlist): Remove.
817 (xref_basetypes): Simplify.
818 * decl2.c (grokfield): Don't try to convert declarations into
819 initializations.
820 (build_anon_union_vars): Do this while processing templates, too.
821 (finish_anon_union): Likewise.
822 * error.c (dump_type): Remove implicit typename handling.
823 * parser.c (cp_parser_diagnose_invalid_type_name): New method.
824 (cp_parser_primary_expression): Correct handling of names not
825 found by unqualified name lookup in templates.
826 (cp_parser_nested_name_specifier_opt): Avoid checking dependency
827 of types when possible.
828 (cp_parser_simple_declaration): Complain intelligently about some
829 invalid declarations.
830 (cp_parser_member_declaration): Likewise.
831 (cp_parser_constructor_declarator_p): Don't check when we're in a
832 function scope.
833 * pt.c (instantiate_class_template): Remove
834 PARTIAL_INSTANTIATION_P gunk.
835 * search.c (lookup_field_r): Don't build implicit typenames.
836 (marked_pushdecls_p): Don't enter dependent base types.
837 (unmarked_pushdecls_p): Likewise.
838 * semantics.c (begin_class_definition): Remove implicit typename
839 stuff.
840
8412003-01-16 Nathan Sidwell <nathan@codesourcery.com>
842
843 PR c++/9212
844 * parser.c (cp_parser_direct_declarator): If accepting either
845 abstract or named, the name must be an unqualified-id.
846
8472003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
848
849 * class.c (layout_virtual_bases): Avoid signed/unsigned warning.
850
8512003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
852
853 * decl2.c (check_classfn): Fix uninitialized warning.
854 (build_anon_union_vars): Likewise.
855 * pt.c (tsubst_copy): Likewise.
856
8572003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
858
859 Further conform g++'s __vmi_class_type_info to the C++ ABI
860 specification.
861 * rtti.c (dfs_class_hint_mark): Do not set hints not specified by
862 the specification.
863 (class_hint_flags): Likewise.
864
8652003-01-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
866
867 * config-lang.in: Add semantics.c to gtfiles.
868 * cp-tree.h (flagged_type_tree_s): Remove lookups field.
869 (saved_scope): Likewise.
870 (type_lookups): Remove.
871 (deferred_access): New structure.
872 (type_access_control): Remove.
873 (save_type_access_control): Likewise.
874 (reset_type_access_control): Likewise.
875 (decl_type_access_control): Likewise.
876 (push_deferring_access_checks): Declare.
877 (resume_deferring_access_checks): Likewise.
878 (stop_deferring_access_checks): Likewise.
879 (pop_deferring_access_checks): Likewise.
880 (get_deferred_access_checks): Likewise.
881 (pop_to_parent_deferring_access_checks): Likewise.
882 (perform_deferred_access_checks): Likewise.
883 (perform_or_defer_access_check): Likewise.
884 * decl.c (make_typename_type): Use perform_or_defer_access_check.
885 (make_unbound_class_template): Likewise.
886 (grokdeclarator): Don't call decl_type_access_control.
887 * parser.c (cp_parser_context): Remove deferred_access_checks
888 and deferring_access_checks_p fields.
889 (cp_parser_context_new): Adjust.
890 (cp_parser): Remove access_checks_lists.
891 (cp_parser_defer_access_check): Remove.
892 (cp_parser_start_deferring_access_checks): Remove.
893 (cp_parser_stop_deferring_access_checks): Remove.
894 (cp_parser_perform_deferred_access_checks): Remove.
895 (cp_parser_nested_name_specifier_opt): Use new deferred access
896 functions.
897 (cp_parser_simple_declaration): Likewise.
898 (cp_parser_template_id): Likewise.
899 (cp_parser_function_definition): Likewise.
900 (cp_parser_class_specifier): Likewise.
901 (cp_parser_lookup_name): Likewise.
902 (cp_parser_single_declaration): Likewise.
903 (cp_parser_pre_parsed_nested_name_specifier): Likewise.
904 (cp_parser_parse_tentatively): Likewise.
905 (cp_parser_parse_definitely): Likewise.
906 (yyparse): Likewise.
907 (cp_parser_init_declarator): Remove access_checks parameter.
908 Use new deferred access functions.
909 (cp_parser_function_definition_from_specifiers_and_declarator):
910 Likewise.
911 (cp_parser_class_head): Remove deferring_access_checks_p and
912 saved_access_checks parameters. Use new deferred access functions.
913 (cp_parser_member_specification_opt): Don't call
914 reset_type_access_control.
915 * search.c (type_access_control): Remove.
916 * semantics.c: Include "gt-cp-semantics.h".
917 (deferred_type_access_control): Remove.
918 (deferred_access_stack): New variable.
919 (deferred_access_free_list): Likewise.
920 (push_deferring_access_checks): New function.
921 (resume_deferring_access_checks): Likewise.
922 (stop_deferring_access_checks): Likewise.
923 (pop_deferring_access_checks): Likewise.
924 (get_deferred_access_checks): Likewise.
925 (pop_to_parent_deferring_access_checks): Likewise.
926 (perform_deferred_access_checks): New function, adapted from
927 cp_parser_perform_deferred_access_checks.
928 (perform_or_defer_access_check): New function, adapted from
929 cp_parser_defer_access_check.
930 (current_type_lookups): Remove.
931 (deferred_type_access_control): Likewise.
932 (decl_type_access_control): Likewise.
933 (save_type_access_control): Likewise.
934 (reset_type_access_control): Likewise.
935 (begin_function_definition): Adjust.
936 (begin_class_definiton): Likewise.
937
9382003-01-13 Jason Merrill <jason@redhat.com>
939
940 PR c++/8748
941 * class.c (build_base_path): Take the address before calling save_expr.
942
943 * call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if
944 all the ambiguous conversions are bad.
945
946 * class.c (maybe_warn_about_overly_private_class): Don't stop
947 searching when we find a nonprivate method.
948
949 * typeck.c (build_class_member_access_expr): Use unary_complex_lvalue.
950
9512003-01-12 Mark Mitchell <mark@codesourcery.com>
952
953 * cp-tree.h (get_arglist_len_in_bytes): Remove.
954
955 PR c++/9264
956 * parser.c (cp_parser_elaborated_type_specifier): Handle erroneous
957 typeame types more robustly.
958
9592003-01-11 Phil Edwards <pme@gcc.gnu.org>
960
961 * parser.c: Fix comment typos.
962
9632003-01-10 Mark Mitchell <mark@codesourcery.com>
964
965 PR c++/9099
966 * parser.c (cp_parser_scope_through_which_access_occurs): Handle
967 an object_type which is not a class type.
968
9692003-01-10 Geoffrey Keating <geoffk@apple.com>
970
971 * parser.c (cp_parser_late_parsing_for_member): Don't cast to void.
972 (cp_parser_late_parsing_default_args): Likewise.
973
9742003-01-10 Nathanael Nerode <neroden@gcc.gnu.org>
975
976 * cfns.gperf: ANSIfy function declarations.
977 * cfns.h: Regenerate.
978 * cp-tree.h: ANSIfy function declarations.
979
9802003-01-10 Mark Mitchell <mark@codesourcery.com>
981
982 * cp-tree.h (reparse_absdcl_as_expr): Remove.
983 (reparse_absdcl_as_casts): Likewise.
984 (reparse_decl_as_expr): Likewise.
985 (finish_decl_parsing): Likewise.
986 * decl2.c (reparse_absdcl_as_expr): Remove.
987 (reparse_absdcl_as_casts): Likewise.
988 (repase_decl_as_expr): Likewise.
989 (finish_decl_parsing): Likewise.
990
991 PR c++/9128
992 PR c++/9153
993 PR c++/9171
994 * parser.c (cp_parser_pre_parsed_nested_name_specifier): New
995 function.
996 (cp_parser_nested_name_specifier_opt): Correct the
997 check_dependency_p false.
998 (cp_parser_postfix_expression): Fix formatting.
999 (cp_parser_decl_specifier_seq): Avoid looking for constructor
1000 declarators when possible.
1001 (cp_parser_template_id): Avoid performing name-lookup when
1002 possible.
1003 (cp_parser_class_head): Do not count specializations when counting
1004 levels of templates.
1005 (cp_parser_constructor_declarator_p): Return immediately if
1006 there's no chance that the tokens form a constructor declarator.
1007 * rtti.c (throw_bad_typeid): Add comment. Do not return an
1008 expression with reference type.
1009 (get_tinfo_decl_dynamic): Do not return an expression with
1010 reference type.
1011 (build_typeid): Add comment. Do not return an expression with
1012 reference type.
1013 * typeck.c (build_class_member_access_expr): Improve handling of
1014 conditionals and comma-expressions as objects.
1015
10162003-01-09 Nathanael Nerode <neroden@gcc.gnu.org>
1017
1018 * cfns.gperf: ANSIfy function declarations.
1019 * cfns.h: Regenerate.
1020 * cp-tree.h: ANSIfy function declarations.
1021 * parser.c: ANSIfy function declarations & definitions.
1022
1023 * decl.c (bad_specifiers): Fix parameter order error I introduced.
1024
10252003-01-09 Geoffrey Keating <geoffk@apple.com>
1026
1027 Merge from pch-branch:
1028
1029 2003-01-09 Geoffrey Keating <geoffk@apple.com>
1030
1031 Merge to tag pch-merge-20030102:
1032
1033 * semantics.c (finish_translation_unit): Don't call finish_file.
1034 * parser.c: Don't include ggc.h.
1035 (cp_lexer_new_main): Rename from cp_lexer_new, only create main lexer,
1036 read first token here. Don't allow PCH files after the first
1037 token is read.
1038 (cp_lexer_new_from_tokens): Duplicate functionality from cp_lexer_new.
1039 (cp_lexer_get_preprocessor_token): Allow LEXER to be NULL.
1040 (cp_parser_new): Call cp_lexer_new_main before allocating GCed memory.
1041 (cp_parser_late_parsing_for_member): Don't duplicate call to
1042 cp_lexer_set_source_position_from_token.
1043 (cp_parser_late_parsing_default_args): Likewise.
1044 (yyparse): Call finish_file after clearing the_parser.
1045
1046 2002-12-11 Geoffrey Keating <geoffk@apple.com>
1047
1048 * Make-lang.in: Remove $(GGC_H) from all dependencies.
1049 (CXX_TREE_H): Add $(GGC_H).
1050 * class.c: Don't include ggc.h.
1051 (field_decl_cmp): Make parameters be 'const void *' to match qsort.
1052 (method_name_cmp): Likewise.
1053 (resort_data): New variable.
1054 (resort_field_decl_cmp): New.
1055 (resort_method_name_cmp): New.
1056 (resort_sorted_fields): New.
1057 (resort_type_method_vec): New.
1058 (finish_struct_methods): Delete cast.
1059 (finish_struct_1): Delete cast.
1060 * cp-tree.h: Include ggc.h.
1061 (struct lang_type_class): Add reorder attribute to field `methods'.
1062 (union lang_decl_u3): Add reorder attribute to field `sorted_fields'.
1063 (resort_sorted_fields): New prototype.
1064 (resort_type_method_vec): New prototype.
1065 * call.c: Don't include ggc.h.
1066 * decl.c: Likewise.
1067 * decl2.c: Likewise.
1068 * init.c: Likewise.
1069 * lex.c: Likewise.
1070 * method.c: Likewise.
1071 * optimize.c: Likewise.
1072 * parse.y: Likewise.
1073 * pt.c: Likewise.
1074 * repo.c: Likewise.
1075 * search.c: Likewise.
1076 * semantics.c: Likewise.
1077 * spew.c: Likewise.
1078 * tree.c: Likewise.
1079
1080 * lang-specs.h: Remove comment.
1081
1082 2002-12-03 Geoffrey Keating <geoffk@apple.com>
1083
1084 * cp-tree.h (struct operator_name_info_t): Mark for GTY machinery.
1085 (operator_name_info): Mark to be saved for PCH, specify size.
1086 (assignment_operator_name_info): Likewise.
1087
1088 2002-11-19 Geoffrey Keating <geoffk@apple.com>
1089
1090 * decl.c (anon_cnt): Mark to be saved for PCH.
1091
1092 2002-10-25 Geoffrey Keating <geoffk@apple.com>
1093
1094 * lex.c (init_reswords): Delete now-untrue comment.
1095 Allocate ridpointers using GGC.
1096
1097 2002-10-04 Geoffrey Keating <geoffk@apple.com>
1098
1099 * cp-tree.h (union lang_decl_u2): Add tags to all fields.
1100
1101 * g++spec.c (lang_specific_driver): Don't include standard
1102 libraries in `added'.
1103
1104 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
1105
1106 * decl2.c (finish_file): Call c_common_write_pch.
1107 * Make-lang.in (CXX_C_OBJS): Add c-pch.o.
1108
1109 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
1110
1111 * g++spec.c (lang_specific_driver): Treat .h files as C++ header
1112 files when using g++.
1113 * lang-specs.h: Handle compiling C++ header files.
1114
11152003-01-09 Jakub Jelinek <jakub@redhat.com>
1116
1117 * decl.c (start_decl): Only check DECL_THREAD_LOCAL for VAR_DECLs.
1118
11192003-01-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1120
1121 * pt.c (push_access_scope_real): Call push_to_top_level for
1122 function in namespace scope.
1123 (pop_access_scope): Call pop_from_top_level for function in
1124 namespace scope.
1125
11262003-01-09 Jakub Jelinek <jakub@redhat.com>
1127
1128 * decl.c (start_decl): Don't set DECL_COMMON for __thread variables.
1129
11302003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1131
1132 * Make-lang.in (c++.install-common, c++.install-man,
1133 c++.uninstall): Prepend $(DESTDIR) to destination paths in
1134 all (un)installation commands.
1135 (c++.install-common): Rewrite $(LN) commands to support
1136 DESTDIR with "ln" as well as with "ln -s".
1137
11382003-01-08 Jason Merrill <jason@redhat.com>
1139
1140 * parser.c (cp_parser_primary_expression): See through explicitly
1141 scoped ALIAS_DECLs, too.
1142
11432003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
1144
1145 * decl.c: Remove some #if 0 code.
1146
1147 * decl.c: ANSIfy function declarations.
1148
11492003-01-07 Mark Mitchell <mark@codesourcery.com>
1150
1151 * parser.c (cp_parser_asm_definition): Correct handling of omitted
1152 operands.
1153
11542003-01-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1155
1156 PR c++/9030
1157 * decl.c (make_typename_type): Check access only when tf_error.
1158 (make_unbound_class_template): Likewise.
1159 * pt.c (saved_access_scope): New variable.
1160 (push_access_scope_real): New function.
1161 (push_access_scope): Likewise.
1162 (pop_access_scope): Likewise.
1163 (tsubst_default_argument): Use them.
1164 (instantiate_template): Likewise.
1165 (regenerate_decl_from_template): Likewise.
1166 (instantiate_decl): Likewise.
1167 (get_mostly_instantiated_function_type): Likewise.
1168
11692003-01-07 Nathanael Nerode <neroden@gcc.gnu.org>
1170
1171 * tree.c: Delete bogus #if 0 code.
1172
11732003-01-07 Andreas Schwab <schwab@suse.de>
1174
1175 * class.c (layout_class_type): Don't use
1176 PCC_BITFIELD_TYPE_MATTERS if not defined.
1177
11782003-01-06 Mark Mitchell <mark@codesourcery.com>
1179
1180 PR c++/9165
1181 * decl2.c (build_cleanup): Mark the object as used.
1182
1183 * pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
1184 (hash_local_specialization): New function.
1185 (register_local_specialization): Revert 2003-01-05 change.
1186 (instantiate_decl): Use hash_local_specialization when creating
1187 the local_specializations table.
1188
1189 * decl2.c (mark_used): Do not synthesize thunks.
1190
1191 * class.c (layout_class_type): Correct handling of unnamed
1192 bitfields wider than their types.
1193
1194 PR c++/9189
1195 * parser.c (cp_parser): Remove default_arg_types. Update
1196 documentation for unparsed_functions_queues.
1197 (cp_parser_late_parsing_default_args): Take a FUNCTION_DECL as the
1198 parameter.
1199 (cp_parser_new): Don't set parser->default_arg_types.
1200 (cp_parser_function_definition): Adjust usage of
1201 unparsed_funtions_queues.
1202 (cp_parser_class_specifier): Don't mess with
1203 parser->default_arg_types. Handle default argument processing in
1204 a separate phase from function body processing.
1205 (cp_parser_template_declaration_after_export): Adjust usage of
1206 unparsed_functions_queues.
1207 (cp_parser_late_parsing_for_member): Do not handle default
1208 arguments.
1209
12102003-01-06 Nathan Sidwell <nathan@codesourcery.com>
1211
1212 PR c++/9109
1213 * parser.c (cp_parser_declarator_kind): New enum.
1214 (cp_parser_declarator): Adjust.
1215 (cp_parser_direct_declarator): Adjust. Allow for either named or
1216 abstract declarator. Prefer abstract, if possible. Allow
1217 parenthesized function name.
1218 (cp_parser_condition): Adjust cp_parser_declarator call.
1219 (cp_parser_explicit_instantiation): Likewise.
1220 (cp_parser_init_declarator): Likewise.
1221 (cp_parser_type_id): Likewise.
1222 (cp_parser_function_definition): Likewise.
1223 (cp_parser_member_declaration): Likewise.
1224 (cp_parser_parameter_declaration): Use cp_parser_declarator to do
1225 the tentative parsing.
1226 (cp_parser_exception_declaration): Likewise.
1227
12282003-01-05 Mark Mitchell <mark@codesourcery.com>
1229
1230 * parser.c (cp_parser_template_parameter): Adjust call to
1231 cp_parser_parameter_declaration.
1232 (cp_parser_parameter_declaration_list): Likewise.
1233 (cp_parser_parameter_declaration): Replace
1234 greater_than_is_operator_p with template_parm_p parameter. Do not
1235 cache tokens for template default arguments.
1236
1237 * pt.c (retrieve_local_specialization): Use htab_find, not
1238 htab_find_with_hash.
1239 (register_local_specialization): Use htab_find_slot, not
1240 htab_find_slot_with_hash.
1241 (instantiate_decl): Pass a hash function to htab_create.
1242
12432003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1244
1245 * parser.c (cp_parser_binary_expression,
1246 cp_parser_multiplicative_expression,
1247 cp_parser_additive_expression, cp_parser_shift_expression,
1248 cp_parser_relational_expression, cp_parser_equality_expression,
1249 cp_parser_and_expression, cp_parser_exclusive_or_expression,
1250 cp_parser_inclusive_or_expression,
1251 cp_parser_logical_and_expression, cp_parser_logical_or_expression,
1252 cp_parser_binary_expression): Const-ify.
1253
12542003-01-04 Mark Mitchell <mark@codesourcery.com>
1255
1256 * method.c (use_thunk): Disable access control while building the
1257 body of the thunk.
1258
12592003-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1260
1261 * cvt.c, decl.c, decl2.c: This is the C++ front end, not the C
1262 front end.
1263
12642003-01-03 Matt Austern <austern@apple.com>
1265
1266 * cp-tree.h (struct lang_type_class): add field for key method
1267 (cp_global_trees): rename dynamic_classes to keyed_classes
1268 (key_method): add definition
1269 * class.c (finish_struct_1): compute class's key method, and add
1270 the class to keyed_classes list if there is no key method.
1271 * decl.c (finish_function): add class to keyed_classes list if we
1272 see a definition of the class's key method.
1273 * pt.c (instantiate_class_template): add template specialization
1274 of a dynamic class to keyed_classes list.
1275 * decl2.c (key_method): remove
1276 (finish_file): iterate only through keyed_classes list when
1277 deciding whether to emit vtables, remove class from its list after
1278 we do the emission.
1279
12802003-01-02 Jason Merrill <jason@redhat.com>
1281
1282 * call.c (build_conditional_expr): Stabilize lvalues properly.
1283 * cvt.c (ocp_convert): Don't build NOP_EXPRs of class type.
1284 * tree.c (lvalue_p_1): Don't allow sloppy NOP_EXPRs as lvalues.
1285 Don't allow CALL_EXPR or VA_ARG_EXPR, either.
1286
1287 * call.c (convert_like_real): Call decl_constant_value for an
1288 IDENTITY_CONV even if there are no more conversions.
1289
1290 * cvt.c (build_up_reference): Don't push unnamed temps.
1291
1292 * decl2.c (do_namespace_alias): Namespace aliases are DECL_EXTERNAL.
1293
1294 * dump.c (cp_dump_tree): Don't try to dump class-specific fields
1295 for a backend struct.
1296
1297 * except.c (wrap_cleanups_r, build_throw): Make
1298 MUST_NOT_THROW_EXPRs void.
1299 * init.c (expand_default_init): Update to handle MUST_NOT_THROW_EXPR.
1300
1301 * init.c (build_vec_delete_1): Pre-evaluate the base address.
1302
1303 * init.c (get_temp_regvar): Simplify logic.
1304
1305 * tree.c (cp_copy_res_decl_for_inlining): Only do debug tweaks if
1306 our replacement is a decl.
1307
1308 * decl.c (cp_make_fname_decl): Push the decls inside the
1309 outermost scope.
1310
13112003-01-03 Nathan Sidwell <nathan@codesourcery.com>
1312
1313 PR c++/45, c++/3784
1314 * tree.c (cp_tree_equal, TEMPLATE_PARM_INDEX): The types must be
1315 the same too.
1316
13172003-01-03 Graham Stott <graham.stott@btinternet.com>
1318
1319 * parser.c (struct cp_parser): Add access_checks_lists field
1320 (cp_parser_simple_declaration): Use.
1321 (cp_parser_init_declarator): Likewise.
1322
13232003-01-02 Mark Mitchell <mark@codesourcery.com>
1324
1325 * parser.c (cp_parser_declaration): Accept the __extension__
1326 keyword before the declaration.
1327
1328 PR c++/2843
1329 * parser.c (cp_parser_parameter_declaration): Allow attributes to
1330 appear after the declarator.
1331
1332 * call.c (build_new_method_call): Fix typo in message format
1333 string.
1334
13352003-01-02 Mark Mitchell <mark@codesourcery.com>
1336
1337 * parser.c (cp_lexer_next_token_is): Declare it inline.
1338 (cp_lexer_set_source_position_from_token): Likewise.
1339 (cp_lexer_debugging_p): Likewise.
1340 (cp_parser_parsing_tentatively): Likewise.
1341 (cp_parser_nested_name_specifier_opt): Reduce the number of calls
1342 to the cp_lexer_peek_token.
1343
1344 * parser.c (cp_parser_sizeof_operand): Do not evaluate the
1345 expression.
1346
13472003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
1348
1349 * cp/except.c, cp/expr.c, cp/friend.c, cp/g++spec.c,
1350 cp/lang-options.h, cp/lang-specs.h, cp/lex.h, cp/ptree.c,
1351 cp/repo.c: Fix copyright years.
1352
13532003-01-01 Neil Booth <neil@daikokuya.co.uk>
1354
1355 * lex.c: Remove superfluous include of cpplib.h.
1356 (CONSTRAINT): Define without conditions.
1357 (init_cp_pragma): Use c_register_pragma.
1358
13592002-12-31 Neil Booth <neil@daikokuya.co.uk>
1360
1361 * .cvsignore: Remove.
1362
13632002-12-31 Steven Bosscher <s.bosscher@student.tudelft.nl>
1364
1365 * call.c, class.c, cp-lang.c, cp-tree.h, cvt.c, dump.c, error.c,
1366 except.c, expr.c friend.c, g++spec.c, init.c, lang-options.h,
1367 lang-specs.h, lex.c, mangle.c, method.c, optimize.c, parser.c,
1368 pt.c, ptree.c, repo.c, rtti.c, search.c, semantics.c, tree.c,
1369 typeck.c, typeck2.c: Replace "GNU CC" with "GCC" in the
1370 copyright header.
1371 * lex.h: parse.y is dead, so don't mention it. Also replace the
1372 copyright header with the default GNU copyright header.
1373
13742002-12-31 Mark Mitchell <mark@codesourcery.com>
1375
1376 * cp-tree.h (LOOKUP_TEMPLATES_EXPECTED): Remove.
1377 (lookup_name_namespace_only): Likewise.
1378 (begin_only_namespace_names): Likewise.
1379 (end_only_namespace_names): Likewise.
1380 * decl.c (only_namespace_names): Remove.
1381 (qualify_lookup): Do not check LOOKUP_TEMPLATES_EXPECTED.
1382 (lookup_name_real): Do not check only_namespace_names.
1383 (lookup_name_namespace_only): Remove.
1384 (begin_only_namespace_names): Likewise.
1385 (end_only_namespace_names): Likewise.
1386 * parser.c (cp_parser_nested_name_specifier_opt): Handle erroneous
1387 nested-name-specifiers more gracefully.
1388 (cp_parser_class_or_namespace_name): Avoid looking up namespace
1389 names when they cannot possibly appear.
1390 (cp_parser_template_name): Adjust call to cp_parser_lookup_name.
1391 (cp_parser_elaborated_type_specifier): Likewise.
1392 (cp_parser_namespace_name): Only look for namespace names.
1393 (cp_parser_lookup_name): Add is_namespace parameter.
1394 (cp_parser_lookup_name_simple): Adjust call to
1395 cp_parser_lookup_name.
1396
1397 * parser.c (cp_parser_dependent_type_p): Fix thinko.
1398
13992002-12-31 Neil Booth <neil@daikokuya.co.uk>
1400
1401 * .cvsignore: Update.
1402
14032002-12-31 Nathan Sidwell <nathan@codesourcery.com>
1404
1405 * class.c (modify_vtable_entry): Remove unused variable.
1406 (get_vcall_index): Always expect a non-thunk.
1407 (update_vtable_entry_for_fn): Combine covariant adjustments, when
1408 overriding a thunk. Pass get_vcall_index a non-thunk.
1409
1410 * decl2.c (finish_file): Mark undefined inlines as extern.
1411
14122002-12-31 Mark Mitchell <mark@codesourcery.com>
1413
1414 * cp-tree.def (RETURN_INIT): Remove.
1415 * cp-tree.h (DECL_IN_MEMORY_P): Remove.
1416 (scope_kind): Add sk_block, sk_try, sk_catch, sk_for.
1417 (note_level_for_for): Remove.
1418 (note_level_for_try): Likewise.
1419 (note_level_for_catch): Likewise.
1420 (finish_named_return_value): Likewise.
1421 (do_pushlevel): Change prototype.
1422 (pending_lang_change): Remove.
1423 * decl.c (begin_scope): Handle sk_block, sk_try, sk_catch,
1424 sk_for.
1425 (note_level_for_for): Remove.
1426 (note_level_for_try): Likewise.
1427 (note_level_for_catch): Likewise.
1428 (maybe_inject_for_scope_var): Remove use of DECL_IN_MEMORY_P.
1429 * parser.c (cp_parser_context_free_list): Make it "deletable".
1430 (cp_parser_template_argument): Remove misleading comment.
1431 * pt.c (tsubst_expr): Remove RETURN_INIT code.
1432 * semantics.c (genrtl_named_return_value): Remove.
1433 (do_pushlevel): Take a scope kind as an argument.
1434 (begin_if_stmt): Adjust.
1435 (begin_while_stmt): Likewise.
1436 (begin_for_stmt): Likewise.
1437 (finish_for_init_stmt): Likewise.
1438 (begin_switch_stmt): Likewise.
1439 (begin_handler): Likewise.
1440 (begin_compound_stmt): Likewise.
1441 (finish_named_return_value): Remove.
1442 (cp_expand_stmt): Remove RETURN_INIT case.
1443 * tree.c (cp_statement_code_p): Remove RETURN_INIT case.
1444
14452002-12-31 Mark Mitchell <mark@codesourcery.com>
1446
1447 PR c++/9112
1448 * parser.c (cp_parser_direct_declarator): Handle erroneous
1449 parenthesized declarators correctly.
1450
14512002-12-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
1452
1453 * cp-tree.h (pending_lang_change): Declare.
1454
14552002-12-30 Mark Mitchell <mark@codesourcery.com>
1456
1457 * parser.c (cp_parser_context_free_list): New variable.
1458 (cp_parser_context_new): Use it.
1459 (cp_parser_error): Check return code from
1460 cp_parser_simulate_error.
1461 (cp_parser_simulate_error): Return a value.
1462 (cp_parser_id_expression): Optimize common case.
1463 (cp_parser_class_name): Likewise.
1464 (cp_parser_class_specifier): Adjust call to
1465 cp_parser_late_parsing_default_args.
1466 (cp_parser_lookup_name): Optimize common case.
1467 (cp_parser_late_parsing_for_member): Adjust call to
1468 cp_parser_late_parsing_default_args.
1469 (cp_parser_late_parsing_default_args): Add scope parameter.
1470 (cp_parser_require): Avoid creating the error message unless it's
1471 needed.
1472 (cp_parser_parse_definitely): Place free'd contexts on the free
1473 list.
1474
1475 * parser.c (cp_parser_declaration_seq_opt): Handle pending_lang_change.
1476
14772002-12-30 David Edelsohn <edelsohn@gnu.org>
1478
1479 * parser.c (cp_parser_parameter_declaration_clause): Treat system
1480 header as extern "C" if NO_IMPLICIT_EXTERN_C undefined.
1481
14822002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
1483
1484 * config-lang.in, Make-lang.in, operators.def, cp-tree.def:
1485 GCC, not GNU CC.
1486
14872002-12-30 Mark Mitchell <mark@codesourcery.com>
1488
1489 * parse.y: Remove.
1490 * spew.c: Likewise.
1491 * Make-lang.in (gt-cp-spew.h): Remove.
1492 * cp-tree.h (do_pending_lang_change): Remove.
1493 (do_identifier): Change prototype.
1494 (finish_id_expr): Remove.
1495 * decl.c (lookup_name_real): Remove yylex variable.
1496 * decl2.c (build_expr_from_tree): Adjust call to do_identifier.
1497 * lex.c (init_cpp_parse): Remove.
1498 (reduce_cmp): Likewise.
1499 (token_cmp): Likewise.
1500 (yychar): Likewise.
1501 (lastiddecl): Likewise.
1502 (token_count): Likewise.
1503 (reduce_count): Likewise.
1504 (yyhook): Likewise.
1505 (print_parse_statistics): Likewise.
1506 (do_pending_lang_change): Likewise.
1507 (do_identifier): Remove parsing parameter.
1508 * lex.h (lastiddecl): Remove.
1509 (looking_for_typename): Remove.
1510 (looking_for_template): Likewise.
1511 (pending_lang_change): Likewise.
1512 (yylex): Likewise.
1513 * semantics.c (finish_id_expr): Remove.
1514
1515 * decl.c (grokdeclarator): Diagnost "extern thread" and "static
1516 thread" correctly.
1517
15182002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
1519
1520 * decl.c, decl2.c, decl.h: GCC, not GNU CC. This is the C++ front
1521 end, not the C front end.
1522
15232002-12-30 Nathan Sidwell <nathan@codesourcery.com>
1524
1525 * cp-tree.h (THUNK_TARGET): New macro.
1526 (THUNK_VIRTUAL_OFFSET): For result thunks it is always a binfo.
1527 (finish_thunk): Remove offset parms.
1528 * class.c (find_final_overrider): Look through thunks.
1529 (get_vcall_index): Use THUNK_TARGET.
1530 (update_vtable_entry_for_fn): Look through thunks. Set covariant
1531 fixed offset here. Adjust finish_thunk call.
1532 (build_vtbl_initializer): Adjust finish_thunk calls.
1533 * mangle.c (mangle_call_offset): Remove superfluous if.
1534 (mangle_thunk): Adjust.
1535 * method.c (make_thunk): Adjust.
1536 (finish_thunk): Adjust.
1537 (thunk_adjust): Remove assert.
1538 (use_thunk): Use THUNK_TARGET
1539 * dump1.c (cp_dump_tree): Adjust thunk dumping.
1540
1541 PR c++/9054
1542 * class.c (layout_class_type): Set TYPE_CONTEXT of type for base.
1543 * dump.c (cp_dump_tree, RECORD_TYPE): Deal with type for base types.
1544
15452002-12-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1546
1547 Remove traditional C constructs 4/n.
1548 * decl2.c (grok_method_quals, warn_if_unknown_interface,
1549 grok_x_components, cp_build_parm_decl, build_artificial_parm,
1550 maybe_retrofit_in_chrg, grokclassfn, grok_array_decl,
1551 delete_sanity, check_member_template, check_java_method,
1552 check_classfn, finish_static_data_member_decl, grokfield,
1553 grokbitfield, grokoptypename, grok_function_init,
1554 cplus_decl_attributes, constructor_name, defer_fn,
1555 build_anon_union_vars, finish_anon_union, coerce_new_type,
1556 coerce_delete_type, comdat_linkage, maybe_make_one_only,
1557 key_method, import_export_vtable, import_export_class,
1558 output_vtable_inherit, import_export_decl, import_export_tinfo,
1559 build_cleanup, get_guard, get_guard_bits, get_guard_cond,
1560 set_guard, start_objects, finish_objects,
1561 start_static_storage_duration_function,
1562 finish_static_storage_duration_function, get_priority_info,
1563 start_static_initialization_or_destruction,
1564 finish_static_initialization_or_destruction,
1565 do_static_initialization, do_static_destruction,
1566 prune_vars_needing_no_initialization, write_out_vars,
1567 reparse_decl_as_expr, finish_decl_parsing, namespace_ancestor,
1568 add_using_namespace, merge_functions, ambiguous_decl,
1569 lookup_using_namespace, lookup_using_namespace,
1570 qualified_lookup_using_namespace, set_decl_namespace,
1571 decl_namespace, current_decl_namespace, push_decl_namespace,
1572 pop_decl_namespace, push_scope, pop_scope, add_function,
1573 arg_assoc_namespace, arg_assoc_template_arg, arg_assoc,
1574 lookup_arg_dependent, do_namespace_alias,
1575 validate_nonmember_using_decl, do_nonmember_using_decl,
1576 do_toplevel_using_decl, do_local_using_decl,
1577 do_class_using_decl, do_using_directive, check_default_args,
1578 mark_used, handle_class_head): Use C90 prototypings. Use booleans.
1579 * parser.c (cp_parser_class_head): Use booleanss.
1580 * decl.c (walk_globals, walk_vtables): Likewise.
1581 * cp-tree.h (walk_globals_pred, walk_globals_fn, walk_vtables,
1582 walk_globals): Change return type from 'int' to 'bool'.
1583 * rtti.c (init_rtti_processing, build_headof, throw_bad_cast
1584 throw_bad_typeid, get_tinfo_decl_dynamic, typeid_ok_p,
1585 build_typeid, tinfo_name, get_tinfo_decl, get_tinfo_ptr,
1586 get_typeid, ifnonnull, build_dynamic_cast_1, build_dynamic_cast,
1587 qualifier_flags, tinfo_base_init, generic_initializer,
1588 ptr_initializer, dfs_class_hint_mark, ptm_initializer,
1589 dfs_class_hint_unmark, class_hint_flags, class_initializer,
1590 typeinfo_in_lib_p, get_pseudo_ti_init, create_pseudo_type_info,
1591 get_pseudo_ti_desc, create_tinfo_types, emit_support_tinfos,
1592 unemitted_tinfo_decl_p, emit_tinfo_decl): Likewise.
1593 * repo.c (repo_compile_flags, repo_template_declared,
1594 repo_template_defined, repo_class_defined, repo_get_id,
1595 repo_template_used, repo_vtable_used, repo_inline_used,
1596 repo_tinfo_used, repo_template_instantiated, extract_string,
1597 open_repo_file, afgets, init_repo, reopen_repo_file_for_write,
1598 finish_repo): Likewise.
1599 * ptree.c (cxx_print_decl, cxx_print_type, cxx_print_identifier,
1600 cxx_print_xnode): Likewise..
1601 * cp-lang.c (ok_to_generate_alias_set_for_type, cxx_get_alias_set,
1602 cxx_warn_unused_global_decl, cp_expr_size): Likewise.
1603 * cxxfilt.c (demangle_it, print_demangler_list, usage,
1604 standard_symbol_characters, hp_symbol_characters, main, fatal):
1605 Likewise.
1606 (strip_underscore): Change type from 'int' to 'bool'.
1607 (main): Use boolean constants.
1608
16092002-12-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1610
1611 Remove traditional C constructs 3/n.
1612 * cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
1613 build_up_reference, warn_ref_binding, convert_to_reference,
1614 convert_from_reference, convert_lvalue, cp_convert, ocp_convert,
1615 convert_to_void, convert, convert_force, build_type_conversion,
1616 build_expr_type_conversion, type_promotes_to,
1617 perform_qualification_conversions): Use C90 prototyping style.
1618 * decl2.c (grok_array_decl): Use boolean constant.
1619 (delete_sanity): Likewise.
1620 * typeck.c (build_unary_op): Likewise.
1621 * semantics.c (finish_switch_cond): Likewise.
1622 * parser.c (cp_parser_direct_new_declarator): Likewise.
1623 * init.c (build_new): Likewise.
1624
16252002-12-27 Mark Mitchell <mark@codesourcery.com>
1626
1627 * Make-lang.in (po-generated): Remove parse.c.
1628 (CXX_OBJS): Remove parse.o and spew.o. Add parser.o.
1629 ($(srcdir)/cp/parse.h): Remove target.
1630 ($(srcdir)/cp/parse.c): Likewise.
1631 (gt-cp-parse.h): Likewise.
1632 (gt-cp-parser.h): New target.
1633 (c++.distclean): Do not remove parse.output.
1634 (c++.maintainer-clean): Do not remove parse.c or parse.h.
1635 (cp/spew.o): Remove target.
1636 (cp/lex.o): Adjust dependencies.
1637 (cp/pt.o): Likewise.
1638 (cp/parse.o): Likewise.
1639 (cp/TAGS): Do not mention parse.c.
1640 (cp/parser.o): New target.
1641 * NEWS: Mention the new parser.
1642 * call.c (build_scoped_method_call): Simplify.
1643 (build_method_call): Likewise.
1644 (build_new_function_call): Adjust calls to add_function_candidate
1645 and add_template_candidate.
1646 (build_new_op): Improve handling of erroroneous operands.
1647 (convert_default_arg): Remove circular argument processing.
1648 (name_as_c_string): New function.
1649 (build_new_method_call): Use it.
1650 (perform_implicit_conversion): Use error_operand_p.
1651 * class.c (finish_struct_anon): Use constructor_name_p.
1652 (check_field_decls): Likewise.
1653 (pop_nested_class): Use OVL_NEXT, not OVL_CHAIN.
1654 (resolve_address_of_overloaded_function): Likewise.
1655 (instantiate_type): Tweak pointer-to-member handling.
1656 (get_primary_binfo): Remove incorrect assertion.
1657 * config-lang.in (gtfiles): Add parser.c, remove parse.c.
1658 * cp-tree.h (DEFARG_TOKENS): New macro.
1659 (default_arg): New structure.
1660 (cp_tree_node_structure_enum): Add TS_CP_DEFAULT_ARG.
1661 (lang_tree_node): Add default_arg.
1662 (cp_tree_index): Add CPTI_TYPE_INFO_REF_TYPE.
1663 (type_info_ref_type): New macro.
1664 (saved_scope): Make processing_explicit_instantiation a boolean.
1665 (check_access): New field.
1666 (unparsed_text): Remove.
1667 (language_function): Remove unparsed_inlines.
1668 (error_operand_p): New macro.
1669 (lang_decl): Adjust pending_inline_info.
1670 (DEFARG_POINTER): Remove.
1671 (tag_types): Add typenames.
1672 (lookup_ualified_name): Declare.
1673 (lookup_name_real): Likewise.
1674 (shadow_tag): Adjust prototype.
1675 (get_scope_of_declarator): Declare it.
1676 (process_next_inline): Remove it.
1677 (check_for_missing_semicolon): Likewise.
1678 (maybe_get_template_decl_from_type_decl): Declare it.
1679 (finish_label_stmt): Adjust prototype.
1680 (finish_non_static_data_meber): Declare it.
1681 (finish_pseudo_destructor_call_expr): Rename to ...
1682 (finish_pseudo_destructor_expr): ... this.
1683 (finish_compound_literal): Declare it.
1684 (begin_inline_definitions): Remove it.
1685 (init_spew): Remove.
1686 (peekyylex): Likewise.
1687 (arbitrate_lookup): Likewise.
1688 (frob_opname): Likewise.
1689 (maybe_snarf_defarg): Likewise.
1690 (add_defarg_fn): Likewise.
1691 (do_pending_defargs): Likewise.
1692 (done_pending_defargs): Likewise.
1693 (unprocessed_defarg_fn): Likewise.
1694 (replace_defarg): Likewise.
1695 (end_input): Likewise.
1696 (get_overloaded_fn): Likewise.
1697 * cvt.c (convert_to_reference): Improve error handling.
1698 * decl.c (lookup_name_real): Do not declare it static.
1699 (maybe_push_to_top_level): Set check_access.
1700 (identifier_type_value): Adjust call to lookup_name_real.
1701 (lookup_qualified_name): New method.
1702 (lookup_name_real): Remove special-case parsing code.
1703 (lookup_name-nonclass): Adjust call to lookup_name_real.
1704 (lookup_name_namespace_only): Likewise.
1705 (lookup_name): Likewise.
1706 (check_tag_decl): Return the type declared.
1707 (shadow_tag): Likewise.
1708 (register_dtor_fn): Tweak check_access.
1709 (grokfndecl): Use constructor_name_p.
1710 (get_scope_of_declarator): New function.
1711 (grokdeclarator): Obscure tweaks for slightly different declarator
1712 representations.
1713 (start_method): Return error_mark_node to indicate failure.
1714 (cp_tree_node_structure_enum): Use TS_CP_DEFAULT_ARG for DEFAULT_ARGs.
1715 * decl2.c (constructor_name_full): Simplify.
1716 (constructor_name): Use it.
1717 (build_expr_from_tree): Adjust for changes to do new parser.
1718 (push_scope): Improve robustness.
1719 (validate_nonmember_using_decl): Process declarations, not names.
1720 (do_class_using_decl): Likewise.
1721 (handle_class_head): Do not mess with CLASSTYPE_DECLARED_CLASS
1722 here.
1723 * error.c (dump_expr): Handle IDENTIFIER_NODEs and BASELINKs.
1724 * expr.c (cxx_expand_expr): Handle BASELINKs.
1725 * init.c (member_init_ok_or_else): Issue more errors.
1726 (build_offset_ref): Tweak handling of FUNCTION_DECLs.
1727 * lex.c: Do not include parse.h.
1728 (yypring): Do not declare.
1729 (yylval): Likewise.
1730 (make_reference_declarator): Remove error-generating code.
1731 (rid_to_yy): Remove.
1732 (cxx_init): Do not call init_spew.
1733 (yypring): Remove.
1734 (check_for_missing_semicolon): Remove.
1735 * lex.h (got_scope): Remove.
1736 (got_object): Remove.
1737 * method.c (hack_identifier): Use finish_non_static_data_member.
1738 (implicitly_declare_fn): Adjust use of constructor_name.
1739 * parser.c: New file.
1740 * pt.c (parse.h): Do not include it.
1741 (maybe_get_template_decl_from_template): Do not declare it.
1742 (finish_member_template_decl): Tweak.
1743 (begin_explicit_instantiation): Adjust for
1744 processing_explicit_instantiation being boolean.
1745 (end_explicit_instantiation): Likewise.
1746 (maybe_process_partial_specialization): Tighten specialization
1747 test.
1748 (retrieve_local_specialization): Adjust ue of hash table.
1749 (eq_local_specializations): New function.
1750 (register_local_specialization): Likewise.
1751 (push_template_decl_real): Remove unnecessary test.
1752 (maybe_get_template_decl_from_type_decl): Don't make it static.
1753 (for_each_template_parm_r): Handle TYPEOF_TYPE.
1754 (tsubst_copy): Use retrieive_local_specialization to handle
1755 PARM_DECL. Adjust handling of CONST_DECLs. Handle BASELINKs.
1756 Handle COMPONENT_REFs with pseudo-destructor-expressions.
1757 Simplify handling of CALL_EXPR and METHOD_CALL_EXPR.
1758 (tsubst_expr): Pass decls, not names, to do_local_using_decl.
1759 (unify): Tweak handling of CONST_DECLs.
1760 (regenerate_decl_from_template): Use push_nested_class.
1761 (template_for_substitution): New funciton.
1762 (instantiate_decl): Use it. Register parameters as local
1763 specializations.
1764 * rtti.c (init_rtti_processing): Set type_info_ref_type.
1765 (build_typeid): Use it.
1766 (get_typeid): Likeise.
1767 * search.c (accessible_p): Use check_access, not
1768 flag_access_control.
1769 (adjust_result_of_qualified_name_lookup): Pay attention to the
1770 context_class.
1771 * semantics.c (finish_asm_stmt): Adjust error handling.
1772 (finish_label_stmt): Return the statement.
1773 (finish_non_static_data_member): New function.
1774 (finish_class_expr): Handle BASELINKs.
1775 (finish_call_expr): Handle PSEUDO_DTOR_EXPR.
1776 (finish_object_call_expr): Simplify handling during templates.
1777 (finish_pseudo_destructor_call_expr): Rename to ...
1778 (finish_pseudo_dtor_expr): ... this.
1779 (finish_compound_literal): New function.
1780 (begin_inline_definitions): Remove.
1781 (finish_sizeof): Remove special template handling.
1782 * spew.c: Do not include parse.h.
1783 * tree.c (get_overloaded_fn): Remove.
1784 * typeck.c (build_class_member_access_expr): Handle
1785 PSEUDO_DTOR_EXPR. Adjust handling of static member functions.
1786 (lookup_destructor): New function.
1787 (finish_class_member_access_expr): Use it.
1788 (convert_arguments): Simplify.
1789 (build_unary_op): Handle BASELINKs.
1790
17912002-12-26 Nathan Sidwell <nathan@codesourcery.com>
1792
1793 PR c++/4803
1794 * decl2.c (mark_used): Defer inline functions.
1795 (finish_file): Merge deferred_fns loops. Check all used
1796 inline functions have a definition.
1797 * method.c (make_thunk): Thunks are not inline.
1798
1799 PR c++/5116, c++/764
1800 * call.c (build_new_op): Make sure template class operands are
1801 instantiated.
1802
18032002-12-24 Nathan Sidwell <nathan@codesourcery.com>
1804
1805 PR C++/7964
1806 * cp-tree.h (resolve_scoped_fn_name): Prototype.
1807 * call.c (resolve_scoped_fn_name): New function. Deal with
1808 more template expansion. Broken out of ...
1809 * parse.y (parse_finish_call_expr): ... here. Call it.
1810 * decl2.c (build_expr_from_tree, CALL_EXPR): Use
1811 resolve_scoped_fn_name and build_call_from_tree.
1812
1813 PR c++/9053
1814 * decl.c (duplicate_decls): Templates may be disambiguated by
1815 return type.
1816
1817 PR c++/8702
1818 * decl2.c (check_classfn): Use lookup_fnfield_1. List all
1819 conversion operators on failure.
1820
18212002-12-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1822
1823 Remove traditional C constructs 2/n.
1824 * call.c (tourney, build_field_call, equal_functions, joust,
1825 compare_ics, build_over_call, build_java_interface_fn_ref,
1826 convert_like_real, op_error, build_object_call, resolve_args,
1827 build_vfield_ref, check_dtor_name, build_scoped_method_call,
1828 build_addr_func, build_call, build_method_call, null_ptr_cst_p,
1829 sufficient_parms_p, build_conv, non_reference, strip_top_quals,
1830 standard_conversion, reference_related_p,
1831 reference_compatible_p, convert_class_to_reference,
1832 direct_reference_binding, reference_binding,
1833 ,implicit_conversion, is_complete, promoted_arithmetic_type_p,
1834 add_template_conv_candidate, any_viable, any_strictly_viable,
1835 build_this, splice_viable, print_z_candidates,
1836 build_user_type_conversion, build_new_function_call,
1837 conditional_conversion, build_conditional_expr, build_new_op,
1838 build_op_delete_call, enforce_access, call_builtin_trap,
1839 convert_arg_to_ellipsis, build_x_va_arg, cxx_type_promotes_to,
1840 convert_default_arg, type_passed_as, convert_for_arg_passing,
1841 in_charge_arg_for_name, is_properly_derived_from,
1842 maybe_handle_implicit_object, maybe_handle_ref_bind,
1843 source_type, add_warning, can_convert, can_convert_arg,
1844 perform_implicit_conversion, can_convert_arg_bad,
1845 initialize_reference, add_conv_candidate,
1846 add_template_candidate_real, add_template_candidate): Ansify.
1847
18482002-12-22 Nathan Sidwell <nathan@codesourcery.com>
1849
1850 PR c++/8572
1851 * cp-tree.h (grokoptypename): Add SCOPE parameter.
1852 * decl2.c (grokoptypename): Add SCOPE parameter. tsubst the type
1853 if in a template scope.
1854 * parse.y (unoperator): Return the scope.
1855 (operator_name): Adjust grokoptypename call.
1856
18572002-12-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1858
1859 * cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
1860 * decl.c (make_unbound_class_template): Adjust. Check for tf_error.
1861 * pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.
1862
18632002-12-20 Kazu Hirata <kazu@cs.umass.edu>
1864
1865 * ChangeLog: Fix a typo.
1866 * class.c: Fix comment typos.
1867 * cp-tree.h: Likewise.
1868
18692002-12-18 Jason Merrill <jason@redhat.com>
1870
1871 Handle anonymous unions at the tree level.
1872 C++ ABI change: Mangle anonymous unions using the name of their
1873 first named field (by depth-first search). Should not cause
1874 binary compatibility problems, though, as the compiler previously
1875 didn't emit anything for affected unions.
1876 * cp-tree.def (ALIAS_DECL): New tree code.
1877 * decl2.c (build_anon_union_vars): Build ALIAS_DECLs. Return the
1878 first field, not the largest.
1879 (finish_anon_union): Don't mess with RTL. Do set DECL_ASSEMBLER_NAME,
1880 push the decl, and write it out at namespace scope.
1881 * decl.c (lookup_name_real): See through an ALIAS_DECL.
1882 (pushdecl): Add namespace bindings for ALIAS_DECLs.
1883 * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
1884 of a decl which doesn't have one.
1885 * typeck.c (build_class_member_access_expr): Don't recurse if
1886 we already have the type we want.
1887
18882002-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1889
1890 PR c++/8099
1891 * friend.c (make_friend_class): Allow partial specialization
1892 when declaration is not a template friend.
1893
18942002-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1895
1896 PR c++/3663
1897 * pt.c (lookup_template_class): Copy TREE_PRIVATE and
1898 TREE_PROTECTED to created decl nodes.
1899
19002002-12-18 Mark Mitchell <mark@codesourcery.com>
1901
1902 * class.c (build_base_field): Do not set DECL_PACKED on the
1903 FIELD_DECL.
1904
19052002-12-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
1906
1907 * cp-tree.h (struct tree_srcloc): Use location_t.
1908 (SOURCE_LOCUS): New.
1909 (SRCLOC_FILE, SRCLOC_LINE): Adjust.
1910
19112002-12-17 Jason Merrill <jason@redhat.com>
1912
1913 * decl.c (finish_function): Also complain about no return in
1914 templates.
1915 * semantics.c (finish_return_stmt): Also call check_return_expr in
1916 templates.
1917 * typeck.c (check_return_expr): In a template, just remember that we
1918 saw a return.
1919
19202002-12-16 Jason Merrill <jason@redhat.com>
1921
1922 * semantics.c (simplify_aggr_init_exprs_r): Don't change the type
1923 of the CALL_EXPR.
1924
1925 * semantics.c (do_pushlevel): Call pushlevel after adding the
1926 SCOPE_STMT.
1927 (do_poplevel): Call poplevel before adding the SCOPE_STMT.
1928 * parse.y (function_body): Go back to using compstmt.
1929 * decl.c (pushdecl): Skip another level to get to the parms level.
1930
1931 * call.c (build_new_method_call): Use is_dummy_object to determine
1932 whether or not to evaluate the object parameter to a static member
1933 function.
1934
19352002-12-14 Jason Merrill <jason@redhat.com>
1936
1937 * semantics.c (simplify_aggr_init_exprs_r): Also prepend the
1938 return slot for normal functions. Set CALL_EXPR_HAS_RETURN_SLOT_ADDR.
1939 * tree.c (build_cplus_new): If the type isn't TREE_ADDRESSABLE,
1940 don't bother with an AGGR_INIT_EXPR.
1941 (cp_copy_res_decl_for_inlining): If the type isn't TREE_ADDRESSABLE,
1942 just generate a new decl normally. Take return slot parm.
1943 * cp-tree.h: Adjust prototype.
1944
19452002-12-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1946
1947 PR C++/8031
1948 * cvt.c (convert_to_pointer_force): Don't try comparing against
1949 erronous type.
1950
19512002-12-13 Geoffrey Keating <geoffk@apple.com>
1952
1953 * cp-tree.h: Have the multiple-include guards around
1954 the entire file.
1955
19562002-12-10 David Edelsohn <edelsohn@gnu.org>
1957
1958 * cp/spew.c (feed_input): Change limit to last_pos and pos to cur_pos
1959 for SPEW_DEBUG.
1960 (snarf_method): Same.
1961 (snarf_defarg): Same.
1962
19632002-12-10 Mark Mitchell <mark@codesourcery.com>
1964
1965 PR c++/8372
1966 * pt.c (tsubst_copy): Handle destructor names more correctly.
1967
19682002-12-10 Matt Austern <austern@apple.com>
1969
1970 * cp-tree.h: get rid of needs_virtual_reinit bit.
1971
19722002-12-09 Mark Mitchell <mark@codesourcery.com>
1973
1974 * NEWS: Document removal of in-class initialization extension for
1975 static data members of non-arithmetic, non-enumeration type.
1976 * decl.c (check_static_variable_definition): Do not allow that
1977 extension.
1978 * decl2.c (grokfield): Do not call digest_init when processing
1979 templates.
1980
19812002-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1982
1983 * error.c (dump_expr): Fix format specifier warning.
1984
19852002-12-04 Geoffrey Keating <geoffk@apple.com>
1986
1987 * class.c (finish_struct_1): Correct comment.
1988 * cp-tree.c (DECL_SORTED_FIELDS): Likewise.
1989
19902002-12-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1991
1992 PR C++/8799
1993 * error.c (dump_expr): Don't ever try to dump a non-existent
1994 expression.
1995
19962002-12-03 Nathan Sidwell <nathan@codesourcery.com>
1997
1998 Implement covariant returns.
1999 * cp-tree.h (IS_AGGR_TYPE_2): Remove.
2000 (struct lang_decl_flags): Add this_thunk_p flag.
2001 Rename vcall_offset to virtual_offset.
2002 (struct lang_decl): Rename delta to fixed_offset.
2003 (DECL_THIS_THUNK_P, DECL_RESULT_THUNK_P): New #defines.
2004 (SET_DECL_THUNK_P): Add THIS_ADJUSTING arg.
2005 (THUNK_DELTA, THUNK_VCALL_OFFSET): Rename to ...
2006 (THUNK_FIXED_OFFSET, THUNK_VIRTUAL_OFFSET): ... here.
2007 (make_thunk): Add this_adjusting arg.
2008 (finish_thunk): Declare.
2009 (mangle_thunk): Add this_adjusting arg.
2010 * class.c (get_vcall_index): Use base function for lookup.
2011 (update_vtable_entry_for_fn): Generate covariant thunk.
2012 (finish_struct_1): Set DECL_VINDEX to NULL for thunks.
2013 (build_vtbl_initializer): Use base function for lookup.
2014 Finish covariant thunk here. Adjust thunk generation.
2015 * dump.c (cp_dump_tree): Simplify DECL_GLOBAL_[CD]TOR_P handling.
2016 Adjust thunk dumping.
2017 * mangle.c (mangle_call_offset): New function.
2018 (mangle_thunk): Adjust for covariant thunks.
2019 * method.c (make_thunk): Adjust. Do not set name here.
2020 (finish_thunk): New function. Set name here.
2021 (use_thunk): Generate covariant thunks too.
2022 (thunk_adjust): New function.
2023 * search.c (covariant_return_p): Remove. Fold into ...
2024 (check_final_overrider): ... here. Simplify.
2025 * semantics.c (emit_associated_thunks): Walk covariant thunk lists.
2026
20272002-12-03 Jason Merrill <jason@redhat.com>
2028
2029 PR c++/8674
2030 * call.c (build_over_call): Check specifically for TARGET_EXPR
2031 when eliding.
2032
2033 PR c++/8461, c++/8625
2034 * call.c (convert_for_arg_passing): Don't mess with error_mark_node.
2035 (cp_convert_parm_for_inlining): Remove.
2036 * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2037 Remove.
2038 * cp-tree.h (ADDR_IS_INVISIREF): Remove.
2039 * except.c (stabilize_throw_expr): Remove ADDR_IS_INVISIREF code.
2040
2041 * call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on
2042 an ambiguous conversion.
2043
20442002-12-03 Mark Mitchell <mark@codesourcery.com>
2045
2046 PR c++/8688
2047 * decl.c (reshape_init): Handle erroneous initializers.
2048
20492002-12-02 Mark Mitchell <mark@codesourcery.com>
2050
2051 PR c++/8720
2052 * spew.c (remove_last_token): Make sure that last_chunk is set
2053 correctly.
2054
2055 PR c++/8615
2056 * error.c (dump_expr): Handle character constants with
2057 TREE_OVERFLOW set.
2058
20592002-12-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2060
2061 DR 180
2062 * decl.c (grokdeclarator): Require class-key for all friend class.
2063 Output the correct type and context in the error message.
2064
20652002-12-01 Mark Mitchell <mark@codesourcery.com>
2066
2067 PR c++/5919
2068 * pt.c (unify): Use variably_modified_type_p to test validity of
2069 template argument types.
2070
2071 PR c++/8727
2072 * cp-tree.h (lang_type_class): Add typeinfo_var.
2073 (CLASSTYPE_TYPEINFO_VAR): New macro.
2074 * rtti.c (get_tinfo_decl): Use it.
2075
2076 PR c++/8663
2077 * init.c (expand_member_init): Always get the main variant of a
2078 base class.
2079
20802002-12-01 Mark Mitchell <mark@codesourcery.com>
2081
2082 PR c++/8332
2083 PR c++/8493
2084 * decl.c (cxx_init_decl_processing): Use size_type_node, not
2085 c_size_type_node.
2086 * decl2.c (coerce_new_type): Likewise.
2087 * except.c (do_allocate_exception): Likewise.
2088
20892002-11-30 Zack Weinberg <zack@codesourcery.com>
2090
2091 * call.c, class.c, cp-lang.c, cvt.c, cxxfilt.c, decl.c, decl2.c,
2092 dump.c, error.c, except.c, expr.c, friend.c, g++spec.c, init.c,
2093 lex.c, mangle.c, method.c, optimize.c, parse.y, pt.c, ptree.c,
2094 repo.c, rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
2095 typeck2.c: Include coretypes.h and tm.h.
2096 * Make-lang.in: Update dependencies.
2097
20982002-11-30 Mark Mitchell <mark@codesourcery.com>
2099
2100 PR c++/8227
2101 * decl.c (layout_var_decl): Deal gracefully with erroneous types.
2102 (check_initializer): Validate the type of the initialized
2103 variable, even if the initializer is absent.
2104 * typeck.c (cp_type_quals): Deal gracefully with erroneous types.
2105
2106 PR c++/8214
2107 * typeck.c (convert_for_assignment): Do not use
2108 decl_constant_value on the operand.
2109
2110 PR c++/8511
2111 * pt.c (instantiate_decl): Handle template friends defined outside
2112 of the class correctly.
2113
21142002-11-29 Joe Buck <jbuck@synopsys.com>
2115
2116 * parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
2117 anonymous structs.
2118
21192002-11-29 Mark Mitchell <mark@codesourcery.com>
2120
2121 * class.c (walk_subobject_offsets): Recur on binfos as well as on
2122 types.
2123 (layout_nonempty_base_or_field): Pass it a binfo when processing a
2124 base class.
2125 (layout_empty_base): Likewise.
2126 (build_base_field): Likewise.
2127
21282002-11-27 Mark Mitchell <mark@codesourcery.com>
2129
2130 * class.c (build_base_field): Make sure we get the canonical base
2131 when descending through primary bases.
2132
21332002-11-26 Geoffrey Keating <geoffk@apple.com>
2134
2135 * decl.c (check_initializer): Don't error on initialisation of
2136 a scalar with a brace-enclosed expression.
2137
21382002-11-26 Nathan Sidwell <nathan@codesourcery.com>
2139
2140 * cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
2141 (template_parms_equal): Remove prototype.
2142 * typeck.c (buuld_indirect_ref): Reformat.
2143
21442002-11-25 Jason Merrill <jason@redhat.com>
2145
2146 * init.c (build_vec_init): Use a FOR_STMT instead of an IF_STMT
2147 and a DO_STMT.
2148
21492002-11-25 Mark Mitchell <mark@codesourcery.com>
2150
2151 * tree.c (cp_build_qualified_type_real): Correct handling of
2152 array types.
2153 * class.c (walk_subobject_offsets): Fix thinko.
2154 (build_base_field): Record offsets of empty bases in primary
2155 virtual bases.
2156 (layout_class_type): Record offsets of empty bases in fields.
2157
2158 * search.c (is_subobject_of_p_1): Fix thinko.
2159 (lookup_field_queue_p): Likewise.
2160
21612002-11-24 Mark Mitchell <mark@codesourcery.com>
2162
2163 * class.c (layout_class_type): Reuse tail padding when laying out
2164 virtual bases.
2165
21662002-11-22 Mark Mitchell <mark@codesourcery.com>
2167
2168 * rtti.c (qualifier_flags): Fix thinko.
2169
21702002-11-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
2171
2172 Remove traditional C constructs 1/n.
2173 * cp-tree.h (init_method, set_mangled_name_for_decl,
2174 build_opfncall, hack_identifier, make_thunk, use_thunk,
2175 synthesize_method, implicitly_declare_fn,
2176 skip_artificial_parms_for, optimize_function, calls_setjmp_p,
2177 maybe_clone_body): Remove use of PARAMS.
2178
2179 * method.c (do_build_assign_ref, do_build_copy_constructor,
2180 synthesize_exception_spec, locate_dtor, locate_ctor, locate_copy):
2181 Likewise.
2182 (synthesize_method): Use 'bool' type and constants instead of
2183 'int'.
2184 (locate_copy): Likewise.
2185 (implicitly_declare_fn): Likewise.
2186
2187 * optimize.c (calls_setjmp_r, update_cloned_parm, dump_function):
2188 Remove old-style declaration.
2189 (maybe_clone_body): Use 'bool' type and constants.
2190
21912002-11-21 Glen Nakamura <glen@imodulo.com>
2192
2193 PR c++/8342
2194 * typeck.c (get_member_function_from_ptrfunc): Make sure that a
2195 SAVE_EXPR for instance_ptr doesn't get evaluated first inside one
2196 of the branches of a COND_EXPR.
2197
21982002-11-19 Mark Mitchell <mark@codesourcery.com>
2199
2200 * pt.c (for_each_template_parm): Free allocated memory.
2201 * search.c (is_subobject_of_p_1): New function.
2202 (is_subobject_of_p): Avoid walking virtual bases multiple times.
2203
22042002-11-19 Jason Thorpe <thorpej@wasabisystems.com>
2205
2206 * g++spec.c (lang_specific_spec_functions): New.
2207
22082002-11-15 Kazu Hirata <kazu@cs.umass.edu>
2209
2210 * ChangeLog: Follow spelling conventions.
2211 * class.c: Likewise.
2212 * decl2.c: Likewise.
2213
22142002-11-14 Zack Weinberg <zack@codesourcery.com>
2215
2216 * search.c (dfs_push_decls): Do not try to reorder elements
2217 3..n of method_vec if method_vec has only two elements.
2218 Reverse order of two tests to avoid accessing unallocated
2219 memory.
2220
22212002-11-14 Mark Mitchell <mark@codesourcery.com>
2222
2223 * class.c (dfs_find_final_overrider): Adjust so that the most
2224 derived object is a binfo, rather than a class type.
2225 (find_final_overrider): Likewise.
2226 (add_vcall_offset_vtbl_entries_1): Simplify accordingly.
2227 (add_vcall_offset): Likewise.
2228
22292002-11-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2230
2231 PR c++/8389
2232 * pt.c (instantiate_template): Push class scope for member
2233 functions.
2234 (get_mostly_instantiated_function_type): Likewise. Don't call
2235 tsubst on context. Remove CONTEXTP and TPARMSP parameters.
2236 * cp-tree.h (get_mostly_instantiated_function_type): Adjust.
2237 * mangle.c (write_encoding, write_unqualified_name): Adjust.
2238
22392002-11-07 Mark Mitchell <mark@codesourcery.com>
2240
2241 * class.c (add_vcall_offset_vtbl_entries_1): Correct ordering of
2242 vcall offfsets. Split out ...
2243 (add_vcall_offset): ... new function.
2244
2245 PR c++/8338
2246 * pt.c (for_each_template_parm): Add htab parameter.
2247 (process_partial_specialization): Adjust call.
2248 (push_template_decl_real): Likewise.
2249 (pair_fn_data): Add visited.
2250 (for_each_template_parm_r): Avoid walking duplicates more than
2251 once.
2252 (uses_template_parms): Adjust call to for_each_template_parm.
2253
22542002-11-07 Mark Mitchell <mark@codesourcery.com>
2255
2256 * class.c (add_implicitly_declared_members): Put implicitly
2257 declared functions at the end of TYPE_METHODs when -fabi-version
2258 is at least 2.
2259
22602002-11-05 Geoffrey Keating <geoffk@apple.com>
2261
2262 * decl2.c (finish_file): Correct spelling.
2263
22642002-11-03 Mark Mitchell <mark@codesourcery.com>
2265
2266 * call.c (build_special_member_call): Do not try to lookup VTTs by
2267 name.
2268 * class.c (vtbl_init_data): Add generate_vcall_entries.
2269 (get_vtable_decl): Do not look up virtual tables by name.
2270 (copy_virtuals): Do not use BV_USE_VCALL_INDEX_P.
2271 (set_primary_base): Do not set CLASSTYPE_RTTI.
2272 (determine_primary_base): Likewise.
2273 (get_matching_virtual): Remove.
2274 (get_vcall_index): New function.
2275 (update_vtable_entry_for_fn): Do not try to use virtual thunks
2276 when they are not required. Assign vcall indices at this point.
2277 (finish_struct_1): Do not set CLASSTYPE_NEEDS_VIRTUAL_REINIT.
2278 Do update dynamic_classes.
2279 (build_vtt): Do not add VTTs to the symbol table.
2280 (build_ctor_vtbl_group): Likewise.
2281 (build_vtbl_initializer): Simplify handling of vcall indices.
2282 (build_vcall_offset_vtbl_entries): Pretend to build vcall offsets
2283 for the most derived class.
2284 (add_vcall_offset_vtbl_entries_1): But do not actually add them to
2285 the vtable.
2286 * cp-tree.h (dynamic_classes): New macro.
2287 (lang_type_class): Remove rtti. Add vtables. Add vcall_indices.
2288 (CLASSTYPE_RTTI): Remove.
2289 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Remove.
2290 (CLASSTYPE_VCALL_INDICES): New macro.
2291 (CLASSTYPE_VTABLES): Likewise.
2292 (BV_USE_VCALL_INDEX_P): Remove.
2293 (build_vtable_path): Remove.
2294 * decl2.c (finish_vtable_vardecl): Remove.
2295 (key_method): Remove #if 0'd code.
2296 (finish_vtable_vardecl): Rename to ...
2297 (maybe_emit_vtables): ... this.
2298 (finish_file): Use it.
2299 * search.c (look_for_overrides_here): Update comment.
2300
23012002-11-01 Zack Weinberg <zack@codesourcery.com>
2302
2303 PR c/7353 redux
2304 * decl2.c (grokfield): Reject TYPE_DECLs with initializers.
2305
23062002-10-30 Jason Merrill <jason@redhat.com>
2307
2308 PR c++/8186
2309 * cp-tree.h (ADDR_IS_INVISIREF): New macro.
2310 * call.c (convert_for_arg_passing): Set it.
2311 * except.c (stabilize_throw_expr): Recurse for such an arg.
2312
23132002-10-31 Mark Mitchell <mark@codesourcery.com>
2314
2315 * cp-tree.h (lang_decl_flags): Remove init_priority.
2316 (lang_decl): Add delta.
2317 (GLOBAL_INIT_PRIORITY): Remove.
2318 (THUNK_DELTA): Revise definition.
2319 * decl2.c (start_objects): Don't set GLOBAL_INIT_PRIORITY.
2320 * dump.c (cp_dump_tree): Don't dump it.
2321
23222002-10-30 Mark Mitchell <mark@codesourcery.com>
2323
2324 PR c++/8160
2325 * typeck2.c (process_init_constructor): Call complete_array_type.
2326
2327 PR c++/8149
2328 * decl.c (make_typename_type): Issue errors about invalid results.
2329
23302002-10-30 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2331
2332 Core issue 287, PR c++/7639
2333 * cp-tree.h (lang_type_class): Add decl_list field.
2334 (CLASSTYPE_DECL_LIST): New macro.
2335 (maybe_add_class_template_decl_list): Add declaration.
2336 * class.c (duplicate_tag_error): Initialize CLASSTYPE_DECL_LIST.
2337 (unreverse_member_declarations): Reverse CLASSTYPE_DECL_LIST.
2338 (maybe_add_class_template_decl_list): New function.
2339 (add_implicitly_declared_members): Use it.
2340 * decl.c (maybe_process_template_type_declaration): Likewise.
2341 (pushtag): Likewise.
2342 * friend.c (add_friend): Likewise.
2343 (make_friend_class): Likewise.
2344 * semantics.c (finish_member_declaration): Likewise.
2345 (begin_class_definition): Initialize CLASSTYPE_DECL_LIST.
2346 * pt.c (instantiate_class_template): Use CLASSTYPE_DECL_LIST
2347 to process members and friends in the order of declaration.
2348
23492002-10-29 Mark Mitchell <mark@codesourcery.com>
2350
2351 PR c++/8287
2352 * decl.c (finish_destructor_body): Create the label to jump to
2353 when returning from a destructor here.
2354 (finish_function_body): Rather than here.
2355
23562002-10-25 Zack Weinberg <zack@codesourcery.com>
2357
2358 PR c++/7266
2359 * decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
2360 SCOPE_REF is not null before dereferencing it.
2361
23622002-10-25 Mark Mitchell <mark@codesourcery.com>
2363
2364 * call.c (build_over_call): Use DECL_CONTEXT, not
2365 DECL_VIRTUAL_CONTEXT.
2366 * class.c (modify_vtable_entry): Don't mess with
2367 DECL_VIRTUAL_CONTEXT.
2368 (set_vindex): Remove.
2369 (set_primary_base): Remove vfuns_p parameter.
2370 (determine_primary_base): Likewise.
2371 (modify_all_vtables): Likewise.
2372 (layout_class_type): Likewise. Adjust calls to other functions
2373 accordingly.
2374 (finish_struct_1): Adjust calls to modified functions. Set
2375 DECL_VINDEX here.
2376 * cp-tree.h (lang_type_class): Remove vsize.
2377 (CLASSTYPE_VSIZE): Remove.
2378 (lang_decl): Remove thunks.
2379 (DECL_THUNKS): Adjust.
2380 (DECL_VIRTUAL_CONTEXT): Remove.
2381 (duplicate_decls): Don't copy it.
2382 * pt.c (build_template_decl): Don't set it.
2383 (tsubst_decl): Likewise.
2384 * typeck.c (expand_ptrmemfunc_cst): Don't use it.
2385
2386 * class.c (build_vtbl_initializer): Don't use build_vtable_entry.
2387 (build_vtable_entry): Remove.
2388 * cp-tree.h (BINFO_VIRTUALS): Expand documentation.
2389 (lang_decl): Add thunks.
2390 (DECL_THUNKS): New macro.
2391 * decl.c (duplicate_decls): Copy it.
2392 * method.c (make_thunk): Simplify, and add thunks to DECL_THUNKS.
2393 * semantics.c (emit_associated_thunks): Simplify.
2394
23952002-10-24 David Edelsohn <edelsohn@gnu.org>
2396
2397 PR c++/7228
2398 * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
2399 lang_type structure exists before accessing field.
2400 (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
2401 (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
2402 (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
2403 * class.c (check_field_decls): Use new macros.
2404 * typeck2.c (process_init_constructor): Remove redundant check for
2405 existence of lang_type structure.
2406
24072002-10-24 Mark Mitchell <mark@codesourcery.com>
2408
2409 * class.c (end_of_base): New method.
2410 (end_of_class): Use it. Check indirect virtual bases.
2411
2412 * class.c (check_field_decls): Fix typo.
2413
24142002-10-23 Mark Mitchell <mark@codesourcery.com>
2415
2416 PR c++/8067
2417 * decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
2418 related variables.
2419
2420 PR c++/7679
2421 * spew.c (next_token): Do not return an endless stream of
2422 END_OF_SAVED_INPUT tokens.
2423 (snarf_method): Add three END_OF_SAVED_INPUT tokens to the end of
2424 the cached token stream.
2425 (snarf_defarg): Likewise.
2426
24272002-10-23 Zack Weinberg <zack@codesourcery.com>
2428
2429 * cp-lang.c (cp_var_mod_type_p): New: C++ hook for
2430 variably_modified_type_p.
2431 * cp-tree.h: Remove prototype of variably_modified_type_p.
2432 * tree.c (variably_modified_type_p): Remove; now implemented
2433 in language-independent code.
2434
24352002-10-22 Mark Mitchell <mark@codesourcery.com>
2436
2437 PR c++/6579
2438 * spew.c (snarf_parenthesized_expression): New function.
2439 (snarf_block): Use it.
2440
24412002-10-22 Richard Henderson <rth@redhat.com>
2442
2443 * method.c (use_thunk): Always compute vcall_value; assert that
2444 it is not zero. Use can_output_mi_thunk; use output_mi_thunk
2445 for vcall thunks as well.
2446
24472002-10-21 Mark Mitchell <mark@codesourcery.com>
2448
2449 * class.c (empty_base_at_nonzero_offset_p): New function.
2450 (layout_nonempty_base_or_field): Do not check for conflicts when
2451 laying out a virtual base using the GCC 3.2 ABI.
2452 (build_base_field): Correct checking for presence of empty classes
2453 at nonzero offsets when clearing CLASSTYPE_NEARLY_EMPTY_P.
2454
2455 * class.c (include_empty_classes): Use normalize_rli.
2456 (layout_class_type): Likewise.
2457
2458 * decl.c (reshape_init): Tweak handling of character arrays.
2459
2460 PR c++/8218
2461 * cp-tree.h (lang_type_class): Add contains_empty_class_p.
2462 (CLASSTYPE_CONTAINS_EMPTY_CLASS_P): New macro.
2463 * class.c (check_bases): Update CLASSTYPE_CONTAINS_EMPTY_CLASS_P.
2464 (check_field_decls): Likewise.
2465 (layout_class_type): Likewise.
2466 (finish_struct_1): Initialize it.
2467 (walk_subobject_offsets): Use it to prune searches.
2468
24692002-10-20 Mark Mitchell <mark@codesourcery.com>
2470
2471 * method.c (use_thunk): Compute the vcall index as a HOST_WIDE_INT.
2472 * optimize.c (optimize_function): Replace ASM_OUTPUT_MI_THUNK with
2473 TARGET_ASM_OUTPUT_MI_THUNK in comments.
2474
24752002-10-18 Zack Weinberg <zack@codesourcery.com>
2476
2477 * decl.c (start_decl): Point users of the old initialized-
2478 typedef extension at __typeof__.
2479
24802002-10-18 Mark Mitchell <mark@codesourcery.com>
2481
2482 * Make-lang.in (method.o): Depend on TARGET_H.
2483 * method.c (target.h): Include it.
2484 (use_thunk): Use target hooks. Use vcall thunks, if available.
2485
24862002-10-18 Mark Mitchell <mark@codesourcery.com>
2487
2488 * class.c (base_derived_from): Make sure return value is a bool.
2489
24902002-10-18 Mark Mitchell <mark@codesourcery.com>
2491
2492 * class.c (find_final_overrider_data_s): Remove overriding_fn and
2493 overriding_base.
2494 (dfs_base_derived_from): New function.
2495 (base_derived_from): Likewise.
2496 (dfs_find_final_overrider): Use base_derived_from.
2497 (find_final_overrider): Adjust.
2498
24992002-10-18 Jason Merrill <jason@redhat.com>
2500
2501 PR c++/8080
2502 * semantics.c (finish_for_cond, finish_while_cond): Don't mess
2503 with condition decls in a template.
2504
25052002-10-17 Nathan Sidwell <nathan@codesourcery.com>
2506
2507 * class.c (add_method): Compare template parms too.
2508
25092002-10-17 Mark Mitchell <mark@codesourcery.com>
2510
2511 PR c++/7584
2512 * class.c (handle_using_decl): Allow the declaration used to be
2513 from an ambiguous base.
2514
2515 * pt.c (convert_template_argument): Revert this change:
2516 2002-10-16 Mark Mitchell <mark@codesourcery.com>
2517 * pt.c (convert_template_argument): Do not fold non-type
2518 template rguments when inside a template.
2519
2520 * init.c (expand_default_init): Handle brace-enclosed initializers
2521 correctly.
2522
25232002-10-16 Mark Mitchell <mark@codesourcery.com>
2524
2525 * mangle.c (write_expression): Correct handling of enumeration
2526 constants.
2527 (write_template_arg): Likewise.
2528 * pt.c (convert_template_argument): Do not fold non-type template
2529 arguments when inside a template.
2530
2531 PR c++/7478
2532 * cvt.c (convert_to_reference): Allow references as the incoming
2533 type.
2534
25352002-10-16 Mark Mitchell <mark@codesourcery.com>
2536
2537 PR c++/7524
2538 * method.c (do_build_assign_ref): Use cp_build_qualified_type, not
2539 build_qualified_type.
2540
25412002-10-15 Richard Henderson <rth@redhat.com>
2542
2543 * error.c (dump_expr): Use real_to_decimal directly, and with
2544 the new arguments.
2545
25462002-10-15 Mark Mitchell <mark@codesourcery.com>
2547
2548 * decl.c (reshape_init): Fix typo.
2549
2550 * cp-tree.h (operator_name_info_t): Add arity.
2551 * lex.c (init_operators): Initialize it.
2552 * mangle.c (write_conversion_operator_name): New function.
2553 (write_unqualified_name): Use it.
2554 (write_template_args): Accept template arguments as a TREE_LIST.
2555 (write_expression): Adjust handling of qualified names to match
2556 specification.
2557
25582002-10-15 Jason Merrill <jason@redhat.com>
2559
2560 * call.c (call_builtin_trap): New fn.
2561 (convert_arg_to_ellipsis): Use it. Downgrade error to warning.
2562 (build_call): Don't set current_function_returns_abnormally outside
2563 a function.
2564
25652002-10-14 Mark Mitchell <mark@codesourcery.com>
2566
2567 * class.c (check_field_decls): Remove empty_p parameter. Instead,
2568 clear CLASSTYPE_EMPTY_P.
2569 (build_base_field): Likewise.
2570 (build_base_fields): Likewise.
2571 (check_bases_and_members): Likewise.
2572 (create_vtbl_ptr): Likewise.
2573 (layout_class_type): Likewise. Ensure that empty classes have
2574 size zero when used as base classes in the 3.2 ABI.
2575 (finish_struct_1): Initialize CLASSTYPE_EMPTY_P and
2576 CLASSTYPE_NEARLY_EMPTY_P. Adjust calls to avoid passing empty_p
2577 parameter.
2578 (is_empty_class): Correct definition when using post-3.2 ABI.
2579 * cp-tree.h (lang_type_class): Add empty_p.
2580 (CLASSTYPE_EMPTY_P): New macro.
2581
25822002-10-12 Nathan Sidwell <nathan@codesourcery.com>
2583
2584 * init.c (build_delete): Do not apply save_expr for arrays.
2585 (build_vec_delete): Likewise.
2586
25872002-10-14 Mark Mitchell <mark@codesourcery.com>
2588
2589 * decl.c (layout_var_decl): Call layout_decl even for variables
2590 whose type is an array with unspecified bounds.
2591
2592 PR c++/7176
2593 * lex.c (do_identifier): Add another option for the parsing
2594 parameter.
2595 * parse.y (do_id): Use it.
2596
25972002-10-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2598
2599 PRs C++/6803, C++/7721 and C++/7803
2600 * decl.c (grokdeclarator): Gracefully handle template-name as
2601 decl-specifier.
2602
26032002-10-11 Jason Molenda <jmolenda@apple.com>
2604
2605 * init.c (build_field_list): Provide uses_unions_p with a default
2606 value.
2607
26082002-10-11 Mark Mitchell <mark@codesourcery.com>
2609
2610 PR c++/5661
2611 * cp-tree.h (variably_modified_type_p): New function.
2612 (grokdeclarator) Tighten check for variably modified types as
2613 fields.
2614 * pt.c (convert_template_argument): Do not allow variably modified
2615 types as template arguments.
2616 * tree.c (variably_modified_type_p): New function.
2617
2618 * NEWS: Document removal of "new X = ..." extension.
2619 * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on
2620 brace-enclosed initializers.
2621 * cp-tree.h (CP_AGGREGATE_TYPE_P): New macro.
2622 (initialize_local_var): Remove declaration.
2623 (expand_static_init): Likewise.
2624 * decl.c (next_initializable_field): New function.
2625 (reshape_init): Likewise.
2626 (check_initializer): Use them. Build dynamic initializer for
2627 aggregates here too.
2628 (initialize_local_var): Simplify, and incorporate cleanup
2629 insertion code as well.
2630 (destroy_local_var): Remove.
2631 (cp_finish_decl): Tidy.
2632 (expand_static_init): Fold checks for whether or not a variable
2633 needs initialization into this function. Simplify.
2634 * decl2.c (do_static_initialization): Simplify.
2635 * init.c (build_init): Do not set TREE_SIDE_EFFECTS when it will
2636 be done for us automatically.
2637 (expand_default_init): Handle brace-enclosed initializers
2638 correctly.
2639 (expand_aggr_init_1): Remove RTL-generation code.
2640 (build_vec_init): Remove "new X = ..." support.
2641 * parse.y (new_initializer): Likewise.
2642 * rtti.c (get_pseudo_ti_init): Set TREE_HAS_CONSTRUCTOR on
2643 brace-enclosed initializer.
2644 (create_pseudo_type_info): Likewise.
2645 * typeck2.c (store_init_value): Don't try to handle digest_init
2646 being called more than once.
2647 (digest_init): Tidy handling of brace-enclosed initializers.
2648
26492002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2650
2651 * decl.c (typename_hash): Use htab_hash_pointer.
2652
26532002-10-10 Jim Wilson <wilson@redhat.com>
2654
2655 * decl.c (duplicate_decls): Don't call decl_attributes.
2656
26572002-10-09 Zack Weinberg <zack@codesourcery.com>
2658
2659 PR c/7353
2660 * decl.c (start_decl): Unconditionally issue error for
2661 'typedef foo = bar'.
2662 (cp_finish_decl): Remove special case for TYPE_DECL with initializer.
2663 (grokdeclarator): Remove redundant error for 'typedef foo = bar'.
2664
26652002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2666
2667 * decl2.c (prune_vtable_vardecl): Delete unused function.
2668
26692002-10-03 Mark Mitchell <mark@codesourcery.com>
2670
2671 PR c++/7754
2672 * decl2.c (finish_anon_union): Do not expand anonymous unions when
2673 procesing template functions.
2674 * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
2675 type. Call layout_decl.
2676 (tsubst_expr, case DECL_STMT): Handle anonymous unions.
2677
26782002-10-07 Richard Henderson <rth@redhat.com>
2679
2680 * decl2.c, pt.c: Revert c++/7754 fix.
2681
26822002-10-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2683
2684 PR c++/7804
2685 * error.c (dump_expr) [REAL_CST]: Output in decimal format.
2686
26872002-10-03 Mark Mitchell <mark@codesourcery.com>
2688
2689 PR c++/7931
2690 * pt.c (for_each_template_parm_r): Handle BASELINKs.
2691
2692 PR c++/7754
2693 * decl2.c (finish_anon_union): Do not expand anonymous unions when
2694 procesing template functions.
2695 * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
2696 type. Call layout_decl.
2697 (tsubst_expr, case DECL_STMT): Handle anonymous unions.
2698
26992002-10-03 Mark Mitchell <mark@codesourcery.com>
2700
2701 PR c++/8006
2702 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Handle instances of template
2703 template parameters.
2704 (globals): Add entity and need_abi_warning.
2705 (decl_is_template_id): Use TYPE_TEMPLATE_INFO, not
2706 CLASSTYPE_TEMPLATE_INFO.
2707 (is_std_substitution): Use CLASSTYPE_TI_TEMPLATE, not
2708 TYPE_TI_TEMPLATE.
2709 (write_prefix): Handle typename types correctly.
2710 (write_template_prefix): Handle template template parameters
2711 correctly.
2712 (start_mangling): Add entity parameter.
2713 (finish_mangling): Warn about names whose mangling will change.
2714 (mangle_decl_string): Adjust.
2715 (mangle_type_string): Likewise.
2716 (mangle_special_for_type): Likewise.
2717 (mangle_ctor_vtbl_for_type): Likewise.
2718 (mangle_thunk): Likewise.
2719 (mangle_guard_variable): Likewise.
2720 (mangle_ref_init_variable): Likewise.
2721
27222002-10-02 Mark Mitchell <mark@codesourcery.com>
2723
2724 PR c++/7188.
2725 * cp-tree.def (CTOR_INITIALIZER): Use one slot, not two.
2726 * cp-tree.h (emit_base_init): Rename to ....
2727 (emit_mem_initializers): ... this.
2728 (expand_member_init): Change prototype.
2729 * init.c (perform_member_init): Compute explicit, rather than
2730 requiring it as a parameter.
2731 (sort_member_init): Rename to ...
2732 (sort_mem_initializers): ... this. Process bases and data members
2733 together.
2734 (sort_base_init): Remove.
2735 (emit_base_init): Rename to ...
2736 (emit_mem_initializers): ... this.
2737 (expand_aggr_vbase_init_1): Remove.
2738 (construct_virtual_bases): Rename to ...
2739 (construct_virtual_base): ... this.
2740 (expand_member_init): Rework handling of base initializers.
2741 * method.c (do_build_copy_constructor): Use
2742 finish_mem_initializers.
2743 * parse.y (member_init): Adjust calls to expand_member_init.
2744 * pt.c (tsubst_expr): Simplify CTOR_INITIALIZER case.
2745 (tsubst_initializer_list): Use expand_member_init.
2746 * semantics.c (finish_mem_intiailizers): Simplify.
2747
27482002-10-02 Matt Austern <austern@apple.com>
2749 * decl.c (walk_vtables_r): Fixed typo that caused result to
2750 never get a nonzero value.
2751
27522002-10-02 Roger Sayle <roger@eyesopen.com>
2753
2754 PR optimization/6627
2755 * cp-tree.h (enum ptrmemfunc_vbit_where_t): Delete definition
2756 from here, and move it to tree.h.
2757 * decl.c (cxx_init_decl_processing): If storing the vbit
2758 in function pointers, ensure that force_align_functions_log
2759 is atleast one.
2760
27612002-10-02 Matt Austern <austern@apple.com>
2762
2763 * class.c (check_field_decls): Changed warning about const member
2764 variables so that it doesn't get issued for a class aggregate.
2765
27662002-10-01 Mark Mitchell <mark@codesourcery.com>
2767
2768 * decl.c (cp_finish_decl): Make sure array types are laid out,
2769 even if the array bounds are unknown.
2770
27712002-10-01 Steve Ellcey <sje@cup.hp.com>
2772
2773 * class.c (build_vtbl_initializer): Change build_c_cast
2774 to build1.
2775
27762002-10-01 Mark Mitchell <mark@codesourcery.com>
2777
2778 * decl.c (cp_finish_decl): Make sure array types are laid out,
2779 even if the array bounds are unknown.
2780
2781 * decl.c (cp_finish_decl): Correct check for dynamic
2782 initialization of thread-local storage.
2783
27842002-09-30 Nathan Sidwell <nathan@codesourcery.com>
2785
2786 * tree.c (really_overloaded_fn): TEMPLATE_ID_EXPRs are also
2787 overloaded.
2788
27892002-09-30 Steve Ellcey <sje@cup.hp.com>
2790
2791 * class.c (build_vtbl_initializer): Add cast.
2792 (add_vcall_offset_vtbl_entries_1):
2793 Use TARGET_VTABLE_DATA_ENTRY_DISTANCE for offset.
2794
27952002-09-30 Mark Mitchell <mark@codesourcery.com>
2796
2797 * class.c (walk_subobject_offsets): Correct the calculation of
2798 offsets for virtual bases. Correct the counting of array
2799 elements.
2800 (layout_nonempty_base_or_field): Simplify. Correct the
2801 calculation of offsets to be propagated through the binfo
2802 hierarchy.
2803 (build_base_field): Avoid creating a FIELD_DECL for empty bases.
2804 Add the FIELD_DECL to TYPE_FIELDS.
2805 (build_base_fields): Adjust accordingly.
2806 (layout_virtual_bases): Use build_base_field.
2807 (end_of_class): Return a tree, not an integer.
2808 (warn_about_ambiguous_direct_bases): Rename to ...
2809 (warn_about_ambiguous_bases): ... this.
2810 (include_empty_classes): New function.
2811 (layout_class_type): Create an alternative version of the type to
2812 be used when as a base class type. Do not call
2813 finish_record_layout until we are done laying out the class.
2814 * cp-tree.h (lang_type_class): Remove size, size_unit. Add
2815 as_base.
2816 (CLASSTYPE_SIZE): Reimplement.
2817 (CLASSTYPE_SIZE_UNIT): Likewise.
2818 (CLASSTYPE_ALIGN): Likweise.
2819 (CLASSTYPE_USER_ALIGN): Likewise.
2820 (CLASSTYPE_AS_BASE): New macro.
2821 (DECL_INITIALIZED_P): Likewise.
2822 (extract_init): Remove prototype.
2823 (build_forced_zero_init): Rename to ...
2824 (build_zero_init): ... this.
2825 (force_store_init_value): Remove.
2826 * decl.c (obscure_complex_init): Remove.
2827 (duplicate_decls): Copy DECL_INITIALIZED_P.
2828 (check_initializer): Do not leave junk in DECL_INITIAL.
2829 (cp_finish_decl): Handle zero-initialization of entities with
2830 static storage duration.
2831 * expr.c (extract_init): Remove.
2832 * init.c (build_forced_zero_init): Remove.
2833 (build_zero_init): New function.
2834 (build_default_init): Use it.
2835 (build_field_list): Skip FIELD_DECLs for base subobjects.
2836 (push_base_cleanups): Likewise.
2837 * method.c (do_build_assign_ref): Likewise.
2838 (synthesize_exception_spec): Likewise.
2839 * pt.c (tsubst_decl): Clear DECL_INITIALIZED_P.
2840 (regenerate_decl_from_template): To not set DECL_INITIAL for a
2841 static data member whose initialization took place in its class.
2842 (instantiate_decl): Do not pass an initializer to cp_finish_decl
2843 in that situation.
2844 * search.c (dfs_push_decls): Skip FIELD_DECLs for base subobjects.
2845 (dfs_unuse_fields): Likewise.
2846 * tree.c (pod_type_p): Handle error_mark_node.
2847 (zero_init_p): Likewise.
2848 * typeck.c (lookup_anon_field): Skip FIELD_DECLs for base
2849 subobjects.
2850 * typeck2.c (store_init_value): Remove #if 0'd code.
2851 (force_store_init_value): Remove.
2852 (process_init_constructor): Use build_zero_init.
2853
28542002-09-29 Nathan Sidwell <nathan@codesourcery.com>
2855
2856 PR c++/7788
2857 * rtti.c (unemitted_tinfo_decl_p): Check it has a field.
2858
28592002-09-29 Kazu Hirata <kazu@cs.umass.edu>
2860
2861 * cp-tree.h: Fix comment typos.
2862 * decl.c: Likewise.
2863 * pt.c: Likewise.
2864
28652002-09-25 Mark Mitchell <mark@codesourcery.com>
2866
2867 * cp/class.c (contains_empty_class_p): New method.
2868 (walk_subobject_offsets): Correct computation of field offset.
2869 (layout_empty_base): Correct placement of emtpy base classes.
2870 (layout_class_type): Warn about ABI changes.
2871
28722002-09-23 Mark Mitchell <mark@codesourcery.com>
2873
2874 * cp/class.c (layout_virtual_bases): Do not round the size of the
2875 type to a multiple of the alignment before laying out virtual bases.
2876 (layout_class_type): Correct handling of bit-fields that are wider
2877 than their type inside unions. Round the size of the type to a
2878 even number of bytes when computing the size without virtual
2879 bases.
2880 * cp/cp-tree.h (abi_version_at_least): New macro.
2881
28822002-09-21 Kazu Hirata <kazu@cs.umass.edu>
2883
2884 * ChangeLog: Follow spelling conventions.
2885 * ChangeLog.2: Likewise.
2886 * call.c: Likewise.
2887 * class.c: Likewise.
2888 * cp-tree.h: Likewise.
2889 * cvt.c: Likewise.
2890 * decl.c: Likewise.
2891 * decl2.c: Likewise.
2892 * except.c: Likewise.
2893 * friend.c: Likewise.
2894 * g++spec.c: Likewise.
2895 * init.c: Likewise.
2896 * lex.c: Likewise.
2897 * mangle.c: Likewise.
2898 * method.c: Likewise.
2899 * operators.def: Likewise.
2900 * optimize.c: Likewise.
2901 * pt.c: Likewise.
2902 * rtti.c: Likewise.
2903 * search.c: Likewise.
2904 * semantics.c: Likewise.
2905 * spew.c: Likewise.
2906 * tree.c: Likewise.
2907 * typeck.c: Likewise.
2908
29092002-09-18 Devang Patel <dpatel@apple.com>
2910
2911 * cp/cp-tree.h: New prototype for walk_vtabls().
2912 * cp/decl.c (walk_vtables_r): New function.
2913 (struct cp_binding_level): Add new members, namespaces,
2914 names_size and vtables.
2915 (add_decl_to_level): Add decl in namespaces or vtables
2916 chain, if conditions match.
2917 (walk_vtables): New function.
2918 (walk_namespaces_r): Travers separate namespace chain
2919 for namespace decls.
2920 (wrapup_globals_for_namespace): Use names_size instead
2921 of list_length().
2922 * cp/decl2.c (finish_file): Use walk_vtables() instead of
2923 walk_globals() to walk vtable decls.
2924
29252002-09-18 Nathan Sidwell <nathan@codesourcery.com>
2926
2927 * decl.c (grokdeclarator): Use assert, not internal_error. Don't
2928 ICE with invalid pointers & references.
2929
29302002-09-17 Zack Weinberg <zack@codesourcery.com>
2931
2932 * Make-lang.in: Remove all references to the demangler.
2933 * cxxfilt.c: Moved to binutils.
2934
29352002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2936
2937 PR c++/7718
2938 * pt.c (tsubst_decl): Remove assert.
2939
2940 Remove DR 295 implementation.
2941 * pt.c (check_cv_quals_for_unify): Disable function & method cases.
2942 * tree.c (cp_build_qualified_type_real): Likewise. Don't warn
2943 about ignoring volatile qualifiers.
2944
2945 * search.c (lookup_member): Correct documentation.
2946
29472002-09-16 Geoffrey Keating <geoffk@apple.com>
2948
2949 * cp-tree.h (union lang_tree_node): Add chain_next option.
2950
29512002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2952
2953 * parse.y (parse_finish_call_expr): Check lookup_member result.
2954
2955 PR c++/7015
2956 * semantic.c (finish_asm_stmt): Fix operand/output_operands
2957 thinko.
2958 * typeck.c (c_expand_asm_operands): Protect from error_mark_node.
2959
29602002-09-15 Nathan Sidwell <nathan@codesourcery.com>
2961
2962 PR c++/7919
2963 * call.c (build_over_call): Convert this pointer for fns found by
2964 using decls.
2965
29662002-09-15 Kazu Hirata <kazu@cs.umass.edu>
2967
2968 * ChangeLog: Follow spelling conventions.
2969 * ChangeLog.1: Likewise.
2970
29712002-09-14 Nathan Sidwell <nathan@codesourcery.com>
2972
2973 PR c++/7768
2974 * pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P.
2975
29762002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2977
2978 * error.c: Fix comment formatting.
2979 * except.c: Likewise.
2980 * expr.c: Likewise.
2981 * friend.c: Likewise.
2982 * g++spec.c: Likewise.
2983 * init.c: Likewise.
2984 * lex.c: Likewise.
2985 * mangle.c: Likewise.
2986 * method.c: Likewise.
2987 * optimize.c: Likewise.
2988 * pt.c: Likewise.
2989 * rtti.c: Likewise.
2990 * search.c: Likewise.
2991 * semantics.c: Likewise.
2992 * spew.c: Likewise.
2993 * tree.c: Likewise.
2994 * typeck.c: Likewise.
2995 * typeck2.c: Likewise.
2996
29972002-09-13 Matt Austern <austern@apple.com>
2998
2999 PR C++/7828
3000 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
3001 * cp/call.c: Change call-by-const-reference mechanism to use
3002 non_cast_lvalue_p when deciding whether the create a temporary.
3003 We need a temporary when passing, e.g. (long) x by const ref.
3004
30052002-09-13 Nathan Sidwell <nathan@codesourcery.com>
3006
3007 * pt.c (unify, ARRAY_TYPE): Element type can be more qualified.
3008
30092002-09-13 Kazu Hirata <kazu@cs.umass.edu>
3010
3011 * decl.c: Fix comment formatting.
3012 * decl2.c: Likewise.
3013
30142002-09-12 Kazu Hirata <kazu@cs.umass.edu>
3015
3016 * call.c: Fix comment formatting.
3017 * class.c: Likewise.
3018 * cp-lang.c: Likewise.
3019 * cp-tree.h: Likewise.
3020 * cvt.c: Likewise.
3021
30222002-09-11 Zack Weinberg <zack@codesourcery.com>
3023
3024 * Make-lang.in: Build cp/cxxfilt.o from $(srcdir)/cp/cxxfilt.c,
3025 and c++filt from cxxfilt.o + version.o + $(LIBDEPS).
3026 * cxxfilt.c: New file: split from libiberty/cplus-dem.c, with
3027 minor adjustments (use version_string, eliminate yet another
3028 duplicate of xmalloc)
3029
30302002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3031
3032 * cp-tree.h (require_complete_eh_spec_types): Add prototype.
3033
30342002-09-05 Jason Merrill <jason@redhat.com>
3035
3036 * typeck2.c (add_exception_specifier): Only pedwarn for an
3037 incomplete type.
3038 (require_complete_eh_spec_types): New fn.
3039 (cxx_incomplete_type_diagnostic): Also support pedwarning.
3040 * typeck.c (complete_type_or_diagnostic): Likewise.
3041 * call.c (build_call): Call require_complete_eh_spec_types.
3042 * rtti.c (get_pseudo_ti_desc): Give an error rather than aborting
3043 on an incomplete type.
3044
30452002-09-04 Jakub Jelinek <jakub@redhat.com>
3046
3047 * decl.c (start_cleanup_fn): Clear interface_only before
3048 start_function, restore it afterwards.
3049
30502002-09-02 Nathan Sidwell <nathan@codesourcery.com>
3051
3052 * cp-tree.h (finish_builtin_type): Remove.
3053 * decl2.c (finish_builtin_type): Move to common code.
3054 * decl.c (build_ptrmemfunc_type): Adjust.
3055 * rtti.c (create_pseudo_type_info): Adjust.
3056 (create_tinfo_types): Adjust.
3057
30582002-08-31 Jason Merrill <jason@redhat.com>
3059
3060 * cp-lang.c (cp_expr_size): Allow initialization from a
3061 CONSTRUCTOR.
3062
30632002-08-30 Richard Henderson <rth@redhat.com>
3064
3065 PR opt/7515
3066 * tree.c: Include target.h.
3067 (cp_cannot_inline_tree_fn): Don't auto-inline functions that
3068 don't bind locally.
3069 * Makefile.in (tree.o): Update.
3070
30712002-08-27 Mark Mitchell <mark@codesourcery.com>
3072
3073 * class.c (layout_virtual_bases): Warn about bugs in G++ that
3074 result in incorrect object layouts.
3075 (layout_class_type): Likewise.
3076
30772002-08-24 Matt Austern <austern@apple.com>
3078
3079 * tree.c (lvalue_p_1): Add argument for whether casts of lvalues
3080 are allowable.
3081 (real_lvalue_p): Update caller.
3082 (lvalue_p): Ditto.
3083 (non_cast_lvalue_or_else): New.
3084 * tree.h: Declare it.
3085 * typeck.c (build_unary_op): Use non_cast_lvalue_or_else.
3086
30872002-08-22 Mark Mitchell <mark@codesourcery.com>
3088
3089 * typeck.c (build_class_member_access_expr): Handle COMPOUND_EXPR
3090 and COND_EXPR specially; fix error message output.
3091
30922002-08-22 Jason Merrill <jason@redhat.com>
3093
3094 * pt.c (tsubst_expr): RETURN_EXPR is now RETURN_STMT_EXPR.
3095 * semantics.c (nullify_returns_r): Likewise.
3096
30972002-08-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
3098
3099 Fix PR/7621
3100 * typeck.c (finish_class_member_access_expr): Diagnose cases where
3101 name lookup finds nothing.
3102
31032002-08-15 Jason Merrill <jason@redhat.com>
3104
3105 * semantics.c (finish_then_clause): Remove redundant assignment.
3106 (finish_if_stmt, begin_switch_stmt, finish_switch_stmt): Move the
3107 extra binding level outside the if/switch statement.
3108 (finish_while_cond, finish_for_cond): Rewrite complex condition
3109 into the loop body.
3110
31112002-08-15 Alexandre Oliva <aoliva@redhat.com>
3112
3113 * parse.y (sizeof, alignof, typeof): New non-terminals to
3114 increment skip_evaluation. Replace terminals with them and
3115 decrement skip_evaluation at the end of rules using them.
3116 * decl2.c (mark_used): Don't assemble_external if
3117 skipping evaluation.
3118
31192002-08-15 Gabriel Dos Reis <gdr@nerim.net>
3120
3121 Fix PR/7504
3122 * parse.y (parse_finish_call_expr): Handle incomplete
3123 type used to name a scope.
3124
31252002-08-15 Nathan Sidwell <nathan@codesourcery.com>
3126
3127 PR c++/7598
3128 * typeck.c (build_unary_op): Fold offsetof idiom. Fixes
3129 regression caused by my 2002-08-08 patch.
3130
31312002-08-13 Mark Mitchell <mark@codesourcery.com>
3132
3133 * decl.c (pushdecl_class_level): Honor requests to bind names to
3134 OVERLOADs.
3135
31362002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3137
3138 * decl2.c (build_call_from_tree): Fix uninitialized variable.
3139 * parse.y (parse_finish_call_expr): Likewise.
3140 * repo.c (old_args, old_dir, old_main): Const-ify.
3141
31422002-08-11 Gabriel Dos Reis <gdr@nerim.net>
3143
3144 * decl.c (duplicate_decls): Replace DECL_SOURCE_FILE +
3145 DECL_SOURCE_LINE with DECL_SOURCE_LOCATION.
3146 * optimize.c (maybe_clone_body): Likewise.
3147 * pt.c (tsubst_enum): Likewise.
3148 (lookup_template_class): Likewise.
3149 * tree.c (cp_copy_res_decl_for_inlining): Likewise.
3150
31512002-08-10 Neil Booth <neil@daikokuya.co.uk>
3152
3153 * lang-specs.h: Remove -ansi.
3154
31552002-08-10 Nathan Sidwell <nathan@codesourcery.com>
3156
3157 * tree.c (maybe_dummy_object): Replace // with /* */
3158
31592002-08-09 Mark Mitchell <mark@codesourcery.com>
3160
3161 * call.c (standard_conversion): Use build_ptrmem_type.
3162 * cp-tree.h (build_ptrmem_type): New function.
3163 (adjust_result_of_qualified_name_lookup): Likewise.
3164 * decl.c (grokvardecl): Do not look for OFFSET_TYPEs to indicate
3165 static data members.
3166 (build_ptrmem_type): New function.
3167 (grokdeclarator): Do not use build_offset_type when encountering a
3168 qualified name.
3169 * parse.y (parse_finish_call_expr): Use
3170 adjust_result_of_qualified_name_lookup.
3171 * search.c (adjust_result_of_qualified_name_lookup): New function.
3172 * typeck.c (qualify_type_recursive): Use TYPE_PTRMEM_* rather than
3173 accessing OFFSET_TYPEs directly.
3174
31752002-08-08 Mike Stump <mrs@apple.com>
3176
3177 * call.c (add_builtin_candidate): legal -> valid, illegal -> invalid.
3178 (type_decays_to): Likewise.
3179 * class.c (find_final_overrider): Likewise.
3180 (maybe_note_name_used_in_class): Likewise.
3181 * decl.c (current_tmpl_spec_kind): Likewise.
3182 (add_binding): Likewise.
3183 (push_class_binding): Likewise.
3184 (duplicate_decls): Likewise.
3185 (layout_var_decl): Likewise.
3186 (grokfndecl): Likewise.
3187 (grokdeclarator): Likewise.
3188 (check_default_argument): Likewise.
3189 * decl2.c (handle_class_head): Likewise.
3190 * error.c (dump_template_decl): Likewise.
3191 * init.c (build_offset_ref): Likewise.
3192 * pt.c (check_specialization_scope): Likewise.
3193 (determine_specialization): Likewise.
3194 (check_explicit_specialization): Likewise.
3195 (maybe_check_template_type): Likewise.
3196 (process_partial_specialization): Likewise.
3197 (check_default_tmpl_args): Likewise.
3198 (push_template_decl_real): Likewise.
3199 (convert_template_argument): Likewise.
3200 (try_class_unification): Likewise.
3201 (get_bindings_real): Likewise.
3202 (do_decl_instantiation): Likewise.
3203 * semantics.c (begin_function_definition): Likewise.
3204 (finish_member_declaration): Likewise.
3205 (check_multiple_declarators): Likewise.
3206 * typeck.c (comp_array_types): Likewise.
3207 (comptypes): Likewise.
3208 (expr_sizeof): Likewise.
3209 (build_binary_op): Likewise.
3210 (dubious_conversion_warnings): Likewise.
3211 (check_return_expr): Likewise.
3212
32132002-08-08 Mark Mitchell <mark@codesourcery.com>
3214
3215 * typeck.c (build_class_member_access_expr): Do not return
3216 error_mark_node when no error has occurred.
3217
32182002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3219
3220 * typeck.c (build_component_addr): Remove.
3221 (build_unary_op): Just check it's not a bitfield, and then build
3222 an ADDR_EXPR.
3223
32242002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3225
3226 * class.c (convert_to_base): Correct check for error_mark_node.
3227 (create_vtable_ptr): Remove unused VFUNS_P parm.
3228
32292002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3230
3231 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
3232
32332002-08-07 Mark Mitchell <mark@codesourcery.com>
3234
3235 Rework build_component_ref.
3236 * call.c (build_vfield_ref): Do not go through build_component_ref.
3237 (build_field_call): Use build_class_member_access_expr.
3238 (build_user_type_conversion_1): Use BASELINK_FUNCTIONS.
3239 (build_object_call): Likewise.
3240 * class.c (convert_to_base): New function.
3241 (type_requires_array_cookie): Use BASELINK_FUNCTIONS.
3242 (instantiate_type): Handle BASELINKs.
3243 * cp-tree.def (BASELINK): New tree code.
3244 * cp-tree.h (BASELINK_P): Reimplement.
3245 (SET_BASELINK_P): Remove.
3246 (BASELINK_BINFO): Reimplement.
3247 (BASELINK_FUNCTIONS): Likewise.
3248 (BASELINK_ACCESS_BINFO): Likewise.
3249 (BASELINK_OPTYPE): Likewise.
3250 (convert_to_base): New function.
3251 (name_p): Likewise.
3252 (build_object_ref): Remove.
3253 (build_component_ref_1): Likewise.
3254 (build_component_ref): Likewise.
3255 (build_x_component_ref): Likewise.
3256 (build_class_member_access_expr): New function.
3257 (finish_class_member_access_expr): Likewise.
3258 (build_ptrmemfunc_access_expr): Likewise.
3259 * decl.c (grokdeclarator): Handle BASELINKs.
3260 * decl2. (build_expr_from_tree): Handle COMPONENT_REFs by using
3261 finish_class_member_access_expr.
3262 (arg_assoc): Handle BASELINKs.
3263 (do_class_using_decl): Likewise.
3264 * error.c (dump_decl): Likewise.
3265 (dump_expr): Use build_ptrmemfunc_access_expr.
3266 * except.c (dtor_nothrow): Use CLASSTYPE_DESTRUCTORS to find
3267 destructors.
3268 (build_throw): Use BASELINK_FUNCTIONS.
3269 * init.c (perform_member_init): Use
3270 build_class_member_access_expr.
3271 (build_offset_ref): Handle BASELINKs. Use
3272 build_class_member_access_expr.
3273 * method.c (hack_identifier): Likewise.
3274 * parse.y (do_id): Use BASELINK, not TREE_LIST.
3275 (primary): Remove uses of build_object_ref.
3276 * pt.c (lookup_template_function): Handle BASELINKs.
3277 (resolve_overloaded_unification): Likewise.
3278 * search.c (build_baselink): Build a BASELINK, not a TREE_LIST.
3279 (lookup_field): Use BASELINK, not TREE_LIST.
3280 (lookup_fnfiels): Likewise.
3281 (setup_class_bindings): Likewise.
3282 * semantics.c (finish_object_call_expr): Do not use
3283 build_method_call when we already know what function is being
3284 called.
3285 * spew.c (identifier_type): Use BASELINK, not TREE_LIST.
3286 * tree.c (really_overloaded_fn): Use OVL_CHAIN for OVERLOADs, not
3287 TREE_CHAIN.
3288 (name_p): New function.
3289 * typeck.c (build_object_ref): Remove.
3290 (build_component_ref_1): Likewise.
3291 (build_x_component_ref): Likewise.
3292 (build_class_member_access_expr): New function.
3293 (finish_class_member_access_expr): Likewise.
3294 (build_ptrmemfunc_access_expr): Likewise.
3295 (get_member_function_from_ptrfunc): Use
3296 build_ptrmemfunc_access_expr.
3297 (build_binary_op): Likewise.
3298 (build_unary_op): Likewise.
3299 (build_ptrmemfunc): Likewise.
3300 (pfn_from_ptrmemfunc): Likewise.
3301 * typeck2.c (build_m_component_ref): Adjust comment.
3302
33032002-08-07 Neil Booth <neil@daikokuya.co.uk>
3304
3305 * Make-lang.in (CXX_C_OBJS): Update.
3306 * cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
3307 * cp-tree.h (cxx_decode_option): Remove.
3308 * decl2.c (compare_options, lang_f_options, unsupported_options,
3309 cxx_decode_option): Remove.
3310
33112002-08-06 Gabriel Dos Reis <gdr@nerim.net>
3312
3313 * typeck.c (build_x_unary_op): Handle pointer-to-member.
3314
33152002-08-05 Geoffrey Keating <geoffk@redhat.com>
3316
3317 * class.c: Don't include obstack.h.
3318 (popclass):
3319 * decl2.c: Delete bogus comment.
3320 * error.c: Don't include obstack.h.
3321 * except.c: Likewise.
3322 (dump_type): Correct comment.
3323 * method.c: Don't include obstack.h.
3324 * tree.c: Likewise.
3325
33262002-08-04 Gabriel Dos Reis <gdr@nerim.net>
3327
3328 Fix PR/2213
3329 * cvt.c (cp_convert_to_pointer): Reject conversions from integral
3330 expressions to pointer-to-data-member of pointer-to-member-functions.
3331
33322002-08-04 Geoffrey Keating <geoffk@redhat.com>
3333
3334 * cvt.c (ocp_convert): Delete obsolete code.
3335 * parse.y (permanent_obstack): Delete declaration.
3336 * pt.c (permanent_obstack): Delete declaration.
3337 * repo.c (permanent_obstack): Delete declaration.
3338 (open_repo_file): Use xmalloc instead of permanent_obstack.
3339 (init_repo): Use xstrdup instead of permanent_obstack.
3340
33412002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3342
3343 * cp-tree.h (VF_DERIVED_VALUE): Remove.
3344 * class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE.
3345
33462002-08-03 Nathan Sidwell <nathan@codesourcery.com>
3347
3348 PR 7470.
3349 C++ ABI change - vfunc ordering.
3350 * class.c (add_virtual_function): Remove.
3351 (dfs_modify_all_vtables): Take list of all declared
3352 virtuals. Assign all that are not in primary base.
3353 (check_for_override): Adjust comments.
3354 (create_vtable_ptr): Take single list of virtuals. Build chain
3355 of declared virtuals here.
3356 (layout_class_type): Take single list of virtuals. Adjust.
3357 (finish_struct_1): Keep virtuals on single list. Adjust.
3358
33592002-08-02 Mark Mitchell <mark@codesourcery.com>
3360
3361 * init.c (build_member_call): Use build_new_method_call, not
3362 build_method_call.
3363
33642002-08-02 Krister Walfridsson <cato@df.lth.se>
3365
3366 * Make-lang.in (spew.o, lex.o, pt.o): Add path to parse.h dependencies.
3367
33682002-08-02 Mark Mitchell <mark@codesourcery.com>
3369
3370 * call.c (build_method_call): Issue a more helpful error message
3371 about ambiguous method names.
3372
33732002-08-02 Nathan Sidwell <nathan@codesourcery.com>
3374
3375 * tree.c (build_shared_int_cst): Make cache file scope, and
3376 GTY it.
3377
33782002-08-02 Jason Merrill <jason@redhat.com>
3379
3380 * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
3381 (cp_expr_size): New fn.
3382 * call.c (build_over_call): Lose empty class hackery.
3383 (convert_arg_to_ellipsis): Promote non-POD warning to error.
3384 * typeck.c (build_modify_expr): Don't use save_expr on an lvalue.
3385
3386 * semantics.c (expand_body): Do tree optimization in the function
3387 context, too.
3388
33892002-08-01 Neil Booth <neil@daikokuya.co.uk>
3390
3391 * cp-tree.h: Move all warning and flag declarations to c-common.h.
3392 * decl.c: Move all warning and flag variables to c-common.c.
3393 * decl2.c: Move all warning and flag variables to c-common.c.
3394 * lex.c (flag_digraphs): Remove.
3395 (warn_traditional): Now in c-common.c.
3396
33972002-07-31 Mark Mitchell <mark@codesourcery.com>
3398
3399 * call.c (build_field_call): Do not look up the field by name.
3400 (build_method_call): Simplify.
3401 (struct z_candidate): Add access_path and conversion_path. Remove
3402 basetype_path.
3403 (convert_class_to_reference): Adjust use of
3404 add_function_candidate.
3405 (add_candidate): Add conversion_path argument.
3406 (add_function_candidate): Use it.
3407 (add_conv_dndidate): Likewise.
3408 (build_builtin_candidate): Likewise.
3409 (add_template_candidate_real): Add conversion_path argument.
3410 (add_template_conv_candidate): Likewise.
3411 (add_template_candidate): Likewise.
3412 (build_user_type_conversion_1): Use it.
3413 (build_new_function_call): Remove name lookup code. Adjust use of
3414 add_template_candidate and add_function_candidate.
3415 (build_new_op): Likewise.
3416 (convert_like_real): Use build_special_member_call.
3417 (build_over_call): Use cand->conversion_path.
3418 (build_special_member_call): New method.
3419 (build_new_method_call): Remove name lookup code.
3420 * cp-tree.def (OFFSET_REF): Update documentation.
3421 (TEMPLATE_ID_EXPR): Likewise.
3422 * cp-tree.h (BASELINK_ACCESS_BINFO): New macro.
3423 (BASELINK_OPTYPE): Likewise.
3424 (build_new_method_call): Adjust prototype.
3425 (build_special_member_call): New method.
3426 (build_baselink): New method.
3427 (build_offset_ref_call_from_tree): Likewise.
3428 (build_call_from_tree): Likewise.
3429 (finish_qualified_call_expr): Remove.
3430 (finish_call_expr): Adjust prototype.
3431 (build_x_function_call): Remove.
3432 * cvt.c (ocp_convert): Use build_special_member_call.
3433 * decl2.c (reparse_absdcl_as_expr): Use finish_call_expr.
3434 (build_expr_from_tree): Adjust handling for TEMPLATE_ID_EXPR and
3435 CALL_EXPR.
3436 (build_offset_ref_call_from_tree): New function.
3437 (build_call_from_tree): Likewise.
3438 * init.c (expand_cleanup): Use build_special_member_call.
3439 (expand_default_init): Likewise.
3440 (build_member_call): Use finish_call_expr.
3441 (build_new_1): Use build_special_member_call.
3442 (push_base_cleanups): Likewise.
3443 * method.c (do_build_assign_ref): Likewise.
3444 * parse.y (template_id): Do not pass a COMPONENT_REF to
3445 lookup_template_function.
3446 (primary): Use parse_finish_call_epxr, not finish_call_expr.
3447 (parse_finish_call_expr): New function.
3448 * pt.c (lookup_template_function): Add assertions.
3449 * search.c (lookup_base): Allow T to be a binfo.
3450 (build_baselink): New function.
3451 (lookup_member): Use it.
3452 * semantics.c (finish_call_expr): Do not do name lookup.
3453 (finish_object_call_expr): Remove #if 0'd code.
3454 (finish_qualified_call_expr): Remove.
3455 * typeck.c (build_x_function_call): Remove.
3456 (build_static_case): Use build_special_member_call.
3457 * typeck2.c (build_functional_cast): Likewise.
3458
34592002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3460
3461 * lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c.
3462
34632002-07-30 Gabriel Dos Reis <gdr@nerim.net>
3464
3465 * cp-tree.h (VF_DERIVED_VALUE): Restore from previous deletion.
3466
34672002-07-30 Nathan Sidwell <nathan@codesourcery.com>
3468
3469 * cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more
3470 documentation.
3471
34722002-07-29 Alan Modra <amodra@bigpond.net.au>
3473
3474 * cp-tree.h: Comment typo fix.
3475
34762002-07-29 Richard Earnshaw <rearnsha@arm.com>
3477
3478 * spew.c (space_for_token): Allocate zeroed memory for a new token
3479 chunk.
3480
34812002-07-27 Roger Sayle <roger@eyesopen.com>
3482
3483 * decl.c (builtin_function_1): No need to explicitly mark
3484 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
3485
34862002-07-27 Roger Sayle <roger@eyesopen.com>
3487
3488 * decl2.c (cxx_decode_option): Support -fno-builtin-foo.
3489
34902002-07-26 Jason Merrill <jason@redhat.com>
3491
3492 * call.c (build_over_call): Likewise.
3493 (cp_convert_parm_for_inlining): New fn.
3494 (convert_for_arg_passing): New fn.
3495 (convert_default_arg, build_over_call): Use it.
3496 (type_passed_as): New fn.
3497 * pt.c (tsubst_decl): Use it.
3498 * decl2.c (cp_build_parm_decl): New fn.
3499 (build_artificial_parm): Use it.
3500 (start_static_storage_duration_function): Likewise.
3501 * decl.c (start_cleanup_fn, grokdeclarater): Likewise.
3502 (grokparms): Don't mess with DECL_ARG_TYPE.
3503 * typeck.c (convert_arguments): Use convert_for_arg_passing.
3504 * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3505 Define.
3506 * cp-tree.h: Declare new fns.
3507
35082002-07-26 Neil Booth <neil@daikokuya.co.uk>
3509
3510 * cp-tree.h (flag_operator_names): Remove.
3511 * decl2.c (flag_operator_names): Remove.
3512 (lang_f_options): Remove operator-names.
3513 * lex.c (D_OPNAME): Remove.
3514 (reswords): Remove operator names.
3515 (rid_to_yy): Remove operator names.
3516 (init_reswords): No need to handle D_OPNAME.
3517 * spew.c (read_process_identifier): There are no operator
3518 names.
3519
35202002-07-26 Jason Merrill <jason@redhat.com>
3521
3522 * dump.c (cp_dump_tree): Call c_dump_tree.
3523 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
3524
35252002-07-25 Neil Booth <neil@daikokuya.co.uk>
3526
3527 * error.c (print_whitespace): Remove.
3528 * g++spec.c (LIBUNWIND): Move.
3529 * mangle.c (mangled_position, write_signed_number): Remove.
3530
35312002-07-25 Neil Booth <neil@daikokuya.co.uk>
3532
3533 * decl2.c (cxx_decode_option): Similarly.
3534
35352002-07-25 Gabriel Dos Reis <gdr@nerim.net>
3536
3537 * cp-tree.h (cxx_sizeof_nowarn): Now a macro.
3538 (cxx_sizeof_or_alignof_type): Take a third argument.
3539 (cxx_sizeof): Adjust definition.
3540 (cxx_alignof): Likewise.
3541 * init.c (build_delete): Use cxx_sizeof_nowarn to reflect reality.
3542 * typeck.c (cxx_sizeof_or_alignof_type): Take a third argument for
3543 complaining.
3544 (c_sizeof_nowarn): Remove definition.
3545 (build_unary_op): Use cxx_sizeof_nowarn.
3546
35472002-07-24 Geoffrey Keating <geoffk@redhat.com>
3548
3549 * tree.c (cp_build_qualified_type_real): When copying
3550 pointer-to-method types, unshare the record that holds
3551 the cached pointer-to-member-function type.
3552
35532002-07-23 Neil Booth <neil@daikokuya.co.uk>
3554
3555 * cp-tree.h (FILE_FUNCTION_PREFIX_LEN): Remove.
3556
35572002-07-23 Gabriel Dos Reis <gdr@nerim.net>
3558
3559 Fix PR/7363:
3560 * typeck.c (cxx_sizeof_or_alignof_type): New function.
3561 (c_sizeof): Remove definition.
3562 (expr_sizeof): Use cxx_sizeof.
3563 * decl2.c (build_expr_from_tree): Use cxx_sizeof_or_alignof_type.
3564 * decl.c (finish_destructor_body): Use cxx_sizeof.
3565 * semantics.c (finish_alignof): Likewise.
3566 (finish_alignof): Use cxx_alignof.
3567 * cp-tree.h (cxx_sizeof, cxx_alignof): New macros.
3568 (cxx_sizeof_or_alignof_type): Declare.
3569 (my_friendly_assert): Move to ../c-common.h.
3570
35712002-07-23 Neil Booth <neil@daikokuya.co.uk>
3572
3573 * class.c, method.c, pt.c, search.c: Don't define obstack macros.
3574
35752002-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3576
3577 PR c++/7347, c++/7348
3578 * cp-tree.h (tsubst_flags_t): Add tf_parsing.
3579 * decl.c (make_typename_type): Use it.
3580 (make_unbound_class_template): Likewise.
3581 (lookup_name_real): Don't call type_access_control if scope is
3582 template parameter dependent.
3583 * parse.y (template_arg): Call make_unbound_class_template with
3584 tf_parsing set.
3585 (nest_name_specifier): Call make_typename_type with tf_parsing set.
3586 (typename_sub0): Likewise.
3587 (typename_sub1): Likewise.
3588 (instantiate_decl): Push class scope.
3589 * pt.c (regenerate_decl_from_template): Call pushclass and popclass
3590 for both static variable and member function template.
3591 (instantiate_decl) Call pushclass and popclass when tsubst'ing type
3592 and arguments.
3593 * search.c (type_access_control): Do type access for TEMPLATE_DECL
3594 too.
3595
35962002-07-20 Roger Sayle <roger@eyesopen.com>
3597
3598 * decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
3599 test by using positive_option. Make whitespace consistent.
3600
36012002-07-20 Gabriel Dos Reis <gdr@nerim.net>
3602
3603 * spew.c (struct unparsed_test): Replace 'filename' and 'lineno'
3604 members with 'locus'. Adjust use throughout.
3605 (struct feed): Likewise.
3606 (alloc_unparsed_test): Change prototype, take a 'const location_t *'.
3607 Adjust use.
3608 (snarf_defarg): Use error(), not error_with_file_and_line().
3609
36102002-07-19 Chris Demetriou <cgd@broadcom.com>
3611
3612 * lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever
3613 cpp_options is included.
3614
36152002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3616
3617 PR c++/2862, c++/2863
3618 * pt.c (determine_specialization): Compare the length of
3619 TYPE_ARG_TYPES. Tidy.
3620
36212002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3622
3623 PR c++/3797
3624 * decl.c (duplicate_decls): Don't propagate inlining parameters from
3625 olddecl to newdecl when newdecl is a specialization of the
3626 instantiation olddecl.
3627
36282002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3629
3630 PR c++/4802, c++/5387
3631 * decl.c (make_typename_type): Use enforce_access.
3632
36332002-07-17 Scott Snyder <snyder@fnal.gov>
3634
3635 PR c++/7320
3636 * rtti.c (get_tinfo_decl): Set DECL_COMDAT.
3637
36382002-07-12 Mark Mitchell <mark@codesourcery.com>
3639
3640 * class.c (add_method): Correct handling of conversion operators.
3641
36422002-07-11 Mark Mitchell <mark@codesourcery.com>
3643
3644 PR c++/7224
3645 * class.c (add_method): Simplify.
3646
36472002-07-11 Jason Merrill <jason@redhat.com>
3648
3649 PR c++/7279
3650 * tree.c (cp_copy_res_decl_for_inlining): Also copy
3651 TREE_ADDRESSABLE.
3652
36532002-07-10 Graham Stott <graham.stott@btinternet.com>
3654
3655 * pt.c (template_parm_this_level_p, push_template_decl_real):
3656 Pass depth as int pointer.
3657
36582002-07-11 Tim Josling <tej@melbpc.org.au>
3659
3660 Remove front end hard coding from gengtype.c.
3661
3662 * config-lang.in (gtfiles): Add files needed for this front end.
3663
36642002-07-10 Mark Mitchell <mark@codesourcery.com>
3665
3666 * cp-tree.h (unqualified_name_lookup_error): Declare it.
3667 (begin_function_definition): Adjust prototype.
3668 * lex.c (unqualified_name_lookup_error): New function, split out
3669 from ...
3670 (do_identifier): ... here.
3671 * parse.y (parse_begin_function_definition): New function.
3672 (fn.def1): Use it.
3673 * semantics.c (begin_function_definition): Accept decl-specifiers
3674 and attributes as separate parameters.
3675
36762002-07-10 Jason Merrill <jason@redhat.com>
3677
3678 PR c++/6255
3679 * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
3680 modifying the old one.
3681
36822002-07-09 Mark Mitchell <mark@codesourcery.com>
3683
3684 * cp-tree.h (constructor_name_p): Declare it.
3685 (check_template_template_default_arg): Likewise.
3686 * class.c (handle_using_decl): Use constructor_name_p.
3687 * decl.c (grokdeclarator): Likewise.
3688 * decl2.c (constructor_name_p): Define it.
3689 * init.c (build_member_call): Use constructor_name_p.
3690 * parse.y (template_parm): Use check_template_template_default_arg.
3691 * pt.c (check_explicit_specialization): Use constructor_name_p.
3692 * semantics.c (check_template_template_default_arg): New function.
3693
36942002-07-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3695
3696 * pt.c (can_complete_type_without_circularity): Add static to
3697 function definition.
3698
36992002-07-08 Mark Mitchell <mark@codesourcery.com>
3700
3701 * cp-tree.h (have_extern_spec): Declare it
3702 * decl.c (have_extern_spec): Define it.
3703 (start_decl): Eliminate use of used_extern_spec.
3704 (start_function): Likewise.
3705 * parse.y (have_extern_spec): Remove declaration.
3706 (used_extern_spec): Likewise.
3707 (frob_specs): Eliminate use of used_extern_spec.
3708 (.hush_warning): Likewise.
3709
37102002-07-07 Mark Mitchell <mark@codesourcery.com>
3711
3712 * Make-lang.in (cp/parse.o): Depend on decl.h.
3713 * cp-tree.h (do_decl_instantiation): Change prototype.
3714 * parse.y: Include decl.h.
3715 (parse_decl_instantiation): New function.
3716 (explicit_instantiation): Use it.
3717 * pt.c (do_decl_instantiation): Accept a DECL, not a DECLARATOR
3718 and DECLSPECS.
3719
37202002-07-07 Roger Sayle <roger@eyesopen.com>
3721
3722 * error.c (dump_function_name): Use DECL_TEMPLATE_RESULT for
3723 constructor and destructor tests when passed a TEMPLATE_DECL.
3724
37252002-07-05 Jason Merrill <jason@redhat.com>
3726
3727 * cvt.c (cp_convert_to_pointer): Call force_fit_type for null
3728 pointers.
3729
3730 PR optimization/7145
3731 * tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
3732
37332002-07-05 Nathan Sidwell <nathan@codesourcery.com>
3734
3735 Repair damage on weak-impared targets caused by my previous patch.
3736 * cp-tree.h (import_export_tinfo): Add parameter.
3737 * decl2.c (import_export_tinfo): Add parameter, post adjust
3738 DECL_COMDAT.
3739 * rtti.c (emit_tinfo_decl): DECL_COMDAT is (nearly) always setup by
3740 import_export_tinfo.
3741
37422002-07-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3743
3744 PR c++/6944
3745 * init.c (build_aggr_init): Remove qualifiers of init before calling
3746 build_vec_init.
3747 (build_vec_init): Flatten multi-dimensional array during cleanup.
3748 (build_vec_delete_1): Abort if the type of each element is array.
3749
37502002-07-03 Graham Stott <graham.stott@btinternet.com>
3751
3752 * pt.c (instantiate_class_template): Fix typo.
3753
37542002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3755
3756 * typeck2.c (cxx_incomplete_type_diagnostic): Fix typo caused
3757 by CVS conflict in my last patch.
3758
37592002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3760
3761 PR c++/6716
3762 * pt.c (can_complete_type_without_circularity): New function.
3763 (instantiate_class_template): Use it.
3764 * typeck2.c (cxx_incomplete_type_diagnostic): Improve error
3765 message due to incomplete fields.
3766
37672002-07-01 Mark Mitchell <mark@codesourcery.com>
3768
3769 PR c++/7112
3770 * mangle.c (write_expression): Add mangling for sizeof when
3771 applied to a type.
3772 * operators.def: Remove stale comment.
3773
37742002-06-30 Nathan Sidwell <nathan@codesourcery.com>
3775
3776 * cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
3777 (CPTI_TYPE_INFO_PTR_TYPE): ... this.
3778 (tinfo_decl_type): Replace with ...
3779 (type_info_ptr_type): ... this.
3780 (import_export_tinfo): Declare.
3781 (tinfo_decl_p): Rename to ...
3782 (unemitted_tinfo_decl_p): ... this.
3783 * decl2.c (import_export_decl): Break out tinfo handling into ...
3784 (import_export_tinfo): ... here. New function.
3785 (finish_file): Adjust.
3786 * rtti.c (TINFO_REAL_NAME): New macro.
3787 (init_rtti_processing): Create the tinfo types.
3788 (get_tinfo_decl_dynamic): Use type_info_ptr_type, get_tinfo_ptr.
3789 (get_tinfo_decl): Adjust.
3790 (get_tinfo_ptr): New function.
3791 (get_type_id): Use it.
3792 (tinfo_base_init): Create vtable decl here, if it doesn't exist.
3793 (ptr_initializer): Use get_tinfo_ptr.
3794 (ptm_initializer): Likewise.
3795 (synthesize_tinfo_var): Break into ...
3796 (get_pseudo_ti_init): ... this. Just create the initializer.
3797 (get_pseudo_ti_desc): .. and this.
3798 (create_real_tinfo_var): Remove.
3799 (create_pseudo_type_info): Don't create the vtable decl here.
3800 (get_vmi_pseudo_type_info): Remove.
3801 (create_tinfo_types): Adjust.
3802 (tinfo_decl_p): Rename to ...
3803 (unemitted_tinfo_decl_p): ... here. Adjust.
3804 (emit_tinfo_decl): Adjust. Create the initializer.
3805
38062002-06-27 Mark Mitchell <mark@codesourcery.com>
3807
3808 PR c++/6695
3809 * pt.c (tsubst_friend_class): Substitute into the context of the
3810 friend before using it.
3811
38122002-06-26 Mark Mitchell <mark@codesourcery.com>
3813
3814 * cp-tree.h (xref_tag): Change prototype.
3815 (handle_class_head): Likewise.
3816 (build_x_component_ref): Likewise.
3817 * decl.c (cxx_init_decl_processing): Adjust call to xref_tag.
3818 (xref_tag): Take attributes as a separate parameter.
3819 (xref_tag_from_type): Adjust call to xref_tag.
3820 * decl2.c (build_expr_from_tree): Adjust call to
3821 build_x_component_ref.
3822 (handle_class_head): Take attributes as a separate parameter.
3823 * parse.y (parse_xref_tag): New function.
3824 (parse_handle_class_head): Likewise.
3825 (primary): Use parse_xref_tag.
3826 (class_head_decl): Use parse_handle_class_head.
3827 (class_head_defn): Likewise.
3828 * rtti.c (init_rtti_processing): Adjust call to xref_tag.
3829 (build_dynamic_cast_1): Likewise.
3830 (create_pseudo_type_info): Likewise.
3831 (emit_support_tinfos): Likewise.
3832 * typeck.c (build_object_ref): Adjust call to
3833 build_x_component_ref.
3834 (build_x_component_ref): Remove protect parameter.
3835
38362002-06-25 Mark Mitchell <mark@codesourcery.com>
3837
3838 * call.c (build_op_delete_call): Use BASELINK_FUNCTIONS.
3839 * class.c (handle_using_decl): Likewise.
3840 (instantiate_type): Likewise.
3841 * cp-tree.h (BASELINK_FUNCTIONS): New macro.
3842 (xref_basetypes): Change prototype.
3843 (begin_mem_initializers): New function.
3844 (get_overloaded_fn): Likewise.
3845 * decl.c (xref_basetypes): Simplify.
3846 * error.c (dump_expr): Use BASELINK_FUNCTIONS.
3847 * init.c (build_offset_ref): Likewise.
3848 * parse.y (base_init): Use begin_mem_initializers().
3849 (structsp): Adjust call to xref_basetypes.
3850 * pt.c (determine_specialization): Use BASELINK_FUNCTIONS.
3851 (instantiate_class_template): Adjust call to xref_basetypes.
3852 * semantics.c (begin_mem_initializers): New function.
3853 * tree.c (is_overloaded_fn): Use BASELINK_FUNCTIONS.
3854 (really_overlaoded_fn): Likewise.
3855 (get_overloaded_fn): New function.'
3856 (get_first_fn): USe BASELINK_FUNCTIONS.
3857
38582002-06-24 Mark Mitchell <mark@codesourcery.com>
3859
3860 * cp-tree.h (SCALAR_TYPE_P): New macro.
3861 (check_for_out_of_scope_variable): New function.
3862 (at_class_scope_p): Likewise.
3863 (finish_fname): Likewise.
3864 * class.c (finish_struct): Use at_function_scope_p.
3865 * decl.c (check_for_out_of_scope_variable): New function, split
3866 out from do_identifier.
3867 (finish_enum): Use at_function_scope_p.
3868 * lex.c (do_identifier): Use check_for_out_of_scope_variable.
3869 * parse.y (VAR_FUNC_NAME): Give it <ttype>. Use finish_fname.
3870 (primary): Use at_function_scope_p.
3871 * search.c (at_class_scope_p): New function.
3872 * semantics.c (finish_fname): Likewise.
3873 (check_multiple_declarators): Use at_function_scope_p.
3874
38752002-06-23 Mark Mitchell <mark@codesourcery.com>
3876
3877 * parse.y (parse_scoped_id): New function.
3878 (primary): Use it.
3879 * cp-tree.h (do_scoped_id): Adjust declaration.
3880 * lex.c (do_scoped_id): Remove call to yylex.
3881 * decl2.c (build_expr_from_tree): Adjust use of do_scoped_id.
3882 * typeck2.c (add_exception_specifier): Use tree_cons, rather than
3883 expanding it inline.
3884
38852002-06-23 Matt Thomas <matt@3am-software.com>
3886
3887 * decl.c (finish_function): Change "#ifdef VMS_TARGET" to
3888 "#if VMS_TARGET".
3889
38902002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3891
3892 * mangle.c (integer_type_codes): Const-ify.
3893
38942002-06-20 Richard Henderson <rth@redhat.com>
3895
3896 PR c++/6747
3897 * typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
3898 Call put_var_into_stack.
3899
39002002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3901
3902 * spew.c (remove_last_token): Use ARRAY_SIZE in lieu of explicit
3903 array size calculation.
3904
39052002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3906
3907 PR c++/6892
3908 * pt.c (tsubst_expr): Handle FILE_STMT.
3909
39102002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3911
3912 PR c++/6723
3913 * pt.c (lookup_template_class): Don't build complete argument of
3914 BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
3915 argument.
3916
39172002-06-19 Akim Demaille <akim@epita.fr>
3918
3919 * parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
3920 decl.h's TYPENAME.
3921 * spew.c, lex.c: Adjust.
3922 * parse.y (explicit_instantiation): Add empty action to override
3923 the default $$ = $1 where it introduces a type clash.
3924
39252002-06-14 Jason Merrill <jason@redhat.com>
3926
3927 * semantics.c (begin_for_stmt): Push the 'for' scope before
3928 adding the FOR_STMT.
3929
3930 C++ ABI changes.
3931 * class.c (build_base_field): Set DECL_PACKED.
3932 (layout_class_type): Don't use tail padding of PODs.
3933 * mangle.c (write_unqualified_name): Fix template conversion op
3934 mangling.
3935
39362002-06-16 Richard Henderson <rth@redhat.com>
3937
3938 PR opt/6793
3939 * tree.c (cp_cannot_inline_tree_fn): Don't short-circuit test
3940 after template instantiation.
3941
39422002-06-16 Richard Henderson <rth@redhat.com>
3943
3944 * cp-tree.h, decl2.c (flag_ms_extensions): Move to c-common.
3945
39462002-06-15 Gabriel Dos Reis <gdr@codesourcery.com>
3947
3948 * cp-tree.h (compiler_error): Remove declaration.
3949 * lex.c (compiler_error): Remove definition.
3950
39512002-06-14 Steve Ellcey <sje@cup.hp.com>
3952
3953 * g++spec.c (LIBUNWIND): New.
3954 (lang_specific_driver): Add it if USE_UNWIND_EXCEPTIONS is set.
3955
39562002-06-13 Jessica Han <jessica@cup.hp.com>
3957
3958 * class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN.
3959 (build_vtbl_initializer): Honor TARGET_VTABLE_DATA_ENTRY_DISTANCE.
3960 (build_vbase_offset_vtbl_entries): Likewise.
3961 * rtti.c (build_headof): Likewise.
3962 (get_tinfo_decl_dynamic): Likewise.
3963 (create_pseudo_type_info): Likewise.
3964
39652002-06-12 Stan Shebs <shebs@apple.com>
3966
3967 * mpw-config.in: Remove file, no longer used.
3968 * mpw-make.sed: Ditto.
3969
39702002-06-07 Zack Weinberg <zack@codesourcery.com>
3971
3972 * decl2.c: Update call to cpp_handle_option.
3973
39742002-06-07 H.J. Lu (hjl@gnu.org)
3975
3976 * decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.
3977
39782002-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
3979
3980 * error.c (cp_error_at): Fix typo.
3981
39822002-06-04 Gabriel Dos Reis <gdr@codesourcery.com>
3983
3984 * error.c (cp_diagnostic_starter): Adjust call.
3985 (maybe_print_instantiation_context): Change prototype to take a
3986 'diagnostic_info *'.
3987 (print_instantiation_full_context): Likewise.
3988 (print_instantiation_partial_context): Likewise.
3989 (cp_diagnostic_starter): Likewise.
3990 (cp_diagnostic_finalizer): Likewise.
3991 (cp_print_error_function): Likewise.
3992 (cp_printer): Take a secondary parameter as a 'text_info *'.
3993 Remove output_state savings. Adjust calls.
3994
39952002-06-03 Geoffrey Keating <geoffk@redhat.com>
3996
3997 * pt.c (inline_parm_levels): Mark for GC.
3998
3999 * mangle.c (start_mangling): Allocate G.substitutions here...
4000 (init_mangle): ... rather than here.
4001 (finish_mangling): Clear the varray pointer when done with it.
4002 * spew.c (yylexstring): Don't use VARRAY_FREE.
4003 * search.c (bfs_walk): Don't use VARRAY_FREE.
4004 * decl2.c (pending_statics): Use gengtype to mark.
4005 (deferred_fns): Likewise.
4006 (ssdf_decls): Likewise.
4007 (init_decl2): Delete.
4008 * decl.c (pop_from_top_level): Don't use VARRAY_FREE.
4009 (cxx_init_decl_processing): Don't call init_decl2.
4010 (cxx_pop_function_context): Don't use VARRAY_FREE.
4011 * cp-tree.h (struct saved_scope): No need for special marking
4012 of varrays.
4013 (struct language_function): Likewise.
4014 (local_classes): Use gengtype to mark.
4015 (init_decl2): Delete prototype.
4016 * class.c (init_class_processing): Don't use
4017 ggc_add_tree_varray_root.
4018 (build_vtbl_initializer): Don't use VARRAY_FREE.
4019
4020 * decl.c (typename_compare): Don't use same_type_p.
4021
4022 * decl.c: Include hashtab.h instead of hash.h.
4023 (typename_hash): Update to use htab_h.
4024 (typename_compare): Likewise.
4025 (typename_htab): Use gengtype to mark.
4026 (build_typename_type): Update to use htab_h.
4027 * Make-lang.in (cp/decl.o): Use HASHTAB_H instead of hash.h.
4028
4029 * Make-lang.in (gt-cp-tree.h): New rule.
4030 (cp/tree.o): Depend on gt-cp-tree.h.
4031 * config-lang.in (gtfiles): Add cp/tree.c.
4032 * tree.c: Include gt-cp-tree.h.
4033 (list_hash_table): Use gengtype to mark.
4034 (init_tree): Use gengtype to mark trees.
4035
4036 * Make-lang.in (cp/decl.o): Add debug.h dependency.
4037 * call.c (struct z_candidate): Use gengtype.
4038 (USER_CONV_CAND): Use WRAPPER_ZC.
4039 (convert_class_to_reference): Use build_zc_wrapper.
4040 (build_type_conversion_1): Likewise.
4041 (build_over_call): Use WRAPPER_ZC.
4042 (add_warning): Use build_zc_wrapper.
4043 * cp-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4044 * cp-tree.h (struct lang_identifier): Use gengtype.
4045 (struct template_parm_index_s): Likewise.
4046 (struct ptrmem_cst): Likewise.
4047 (struct tree_binding): Likewise.
4048 (struct tree_overload): Likewise.
4049 (struct tree_srcloc): Likewise.
4050 (struct tree_wrapper): Likewise. Also modify to have a pointer
4051 to struct z_candidate rather than void.
4052 (enum cp_tree_node_structure_enum): New.
4053 (union lang_tree_node): New.
4054 (cxx_mark_tree): Delete prototype.
4055 (cp_tree_node_structure): New prototype.
4056 (build_ptr_wrapper): Delete prototype.
4057 (build_int_wrapper): Delete prototype.
4058 (build_zc_wrapper): New prototype.
4059 * decl.c: Include debug.h
4060 (cxx_mark_tree): Delete.
4061 (cp_tree_node_structure): New.
4062 * tree.c (build_ptr_wrapper): Delete.
4063 (build_int_wrapper): Delete.
4064 (build_zc_wrapper): New.
4065
4066 * cp-tree.h [! ENABLE_TREE_CHECKING] (LANG_TYPE_PTRMEM_CHECK):
4067 Correct typo. Patch from k_fukui@highway.ne.jp.
4068
4069 * semantics.c (current_stmt_tree): Update for change to
4070 struct language_function.
4071 (finish_mem_initializers): Likewise.
4072 * decl.c (cxx_init_decl_processing): Don't set mark_lang_status.
4073 * cp-tree.h (struct language_function): Rename from
4074 cp_language_function. Change all uses.
4075 (cp_function_chain): Don't need to cast.
4076
4077 * class.c (duplicate_tag_error): Reset discriminator.
4078 (check_bases_and_members): Update for data structure changes.
4079 * cp-tree.h (struct lang_id2): Use gengtype.
4080 (flagged_type_tree): Likewise.
4081 (SET_LANG_ID): Use GGC on struct lang_id2.
4082 (struct cp_language_function): Use gengtype. Remove field
4083 'x_vcalls_possible_p'.
4084 (current_vcalls_possible_p): Delete.
4085 (struct lang_type_header): New.
4086 (struct lang_type_class): Rename from struct lang_type. Include
4087 struct lang_type_header.
4088 (struct lang_type_ptrmem): New.
4089 (struct lang_type): New.
4090 (LANG_TYPE_CLASS_CHECK): New. Use it in all the appropriate macros.
4091 (LANG_TYPE_PTRMEM_CHECK): New. Use it in all the appropriate macros.
4092 (TYPE_SET_PTRMEMFUNC_TYPE): Set discriminator, update for changes.
4093 (struct lang_decl_flags): Use gengtype. Add discriminators.
4094 (struct lang_decl): Use gengtype. Add and use discriminators.
4095 Update the macros that reference moved fields.
4096 (LANG_DECL_U2_CHECK): New function. Use it when appropriate.
4097 (SET_DECL_THUNK_P): Set discriminator too.
4098 (clear_inline_text_obstack): Delete prototype.
4099 (finish_inline_definitions): Delete prototype.
4100 (mark_pending_inlines): Delete prototype.
4101 (lang_check_failed): New prototype.
4102 * decl.c (struct named_label_use_list): Use gengtype.
4103 (struct named_label_list): Likewise.
4104 (mark_binding_level): Delete.
4105 (mark_named_label_lists): Delete.
4106 (push_local_name): Set discriminator on DECL_LANG_SPECIFIC.
4107 (cxx_init_decl_processing): Use generated marker routine.
4108 (begin_destructor_body): Delete dead set to
4109 current_vcalls_possible_p.
4110 (mark_lang_function): Delete.
4111 (mark_cp_function_context): Delete.
4112 (lang_mark_tree): Use generated marker routines.
4113 * decl2.c (start_objects): Set discriminator when setting
4114 GLOBAL_INIT_PRIORITY.
4115 * lex.c (retrofit_lang_decl): Set discriminators.
4116 (copy_lang_type): Update for changes to lang_type structure.
4117 (cp_make_lang_type): Set discriminator.
4118 * parse.y: Use gengtype on YYLVAL. Don't use dots in identifiers.
4119 * search.c: Include ggc.h.
4120 * semantics.c (anon_aggr_type_p): Use the macro, don't hand-code it.
4121 (finish_inline_definitions): Delete.
4122 * spew.c (struct token): Use gengtype.
4123 (struct token_chunk): New.
4124 (struct unparsed_text): Use gengtype. Store tokens in chunks.
4125 (struct feed): Use gengtype.
4126 (feed_obstack): Delete.
4127 (feed): Mark as GC root.
4128 (pending_inlines): Mark as GC root.
4129 (pending_inlines_tail): Likewise.
4130 (processing_these_inlines): Likewise.
4131 (token_obstack): Make static.
4132 (first_token): Likewise.
4133 (init_spew): Don't initialize deleted things; use gengtype for roots.
4134 (clear_inline_text_obstack): Delete.
4135 (feed_input): Use GC for struct feed. Update for changes to
4136 struct unparsed_text.
4137 (mark_pending_inlines): Delete.
4138 (next_token): Rename from add_token. Change all callers. Update
4139 for changes to struct unparsed_text.
4140 (space_for_token): New.
4141 (remove_last_token): New.
4142 (alloc_unparsed_text): New.
4143 (snarf_block): Take an unparsed_text. Update for changes to struct
4144 unparsed_text.
4145 (snarf_method): Update for changes to struct unparsed_text.
4146 (snarf_defarg): Update for changes to struct unparsed_text.
4147 * tree.c (lang_check_failed): New.
4148
4149 * Make-lang.in (gt-cp-call.h gt-cp-decl2.h gt-cp-parse.h
4150 gt-cp-pt.h gt-cp-repo.h gt-cp-spew.h): New rules.
4151 (cp/spew.o): Add dependency on gt-<filename>.h.
4152 (cp/decl2.o): Add dependency on gt-<filename>.h.
4153 (cp/call.o): Add dependency on gt-<filename>.h.
4154 (cp/pt.o): Add dependency on gt-<filename>.h.
4155 (cp/repo.o): Add dependency on gt-<filename>.h.
4156 (cp/parse.o): Add dependency on gt-<filename>.h.
4157 * call.c: Use gengtype for roots.
4158 * config-lang.in (gtfiles): Add cp-tree.h decl.h lex.h call.c
4159 decl2.c parse.y pt.c repo.c spew.c.
4160 * cp-tree.h: Use gengtype for roots.
4161 (struct saved_scope): Use GGC, gengtype.
4162 (cp_parse_init): Delete prototype.
4163 (init_pt): Delete prototype.
4164 * decl.c: Use gengtype for roots.
4165 (mark_saved_scope): Delete.
4166 (cxx_init_decl_processing): Don't call deleted initilisation
4167 routines.
4168 (signed_size_zero_node): Delete, unused.
4169 * decl.h: Use gengtype for roots.
4170 * decl2.c: Use gengtype for roots.
4171 * lex.h: Use gengtype for roots.
4172 * parse.y: Use gengtype for roots.
4173 (cp_parse_init): Delete.
4174 * pt.c: Use gengtype for roots.
4175 (init_pt): Delete.
4176 * repo.c: Use gengtype for roots.
4177 * spew.c: Use gengtype for roots.
4178
4179 * Make-lang.in: Allow for filename changes. Add gtype-cp.h.
4180 (cp/decl.o): Add dependency on gtype-cp.h.
4181 * decl.c: Remove use of add_deletable_root, use GTY marker instead.
4182 Include gtype-cp.h. Allow for filename changes.
4183
4184 * Make-lang.in (cp/gt-decl.h): Generate using gengtype.
4185 (cp/decl.o): Add cp/gt-decl.h dependency.
4186 * config-lang.in (gtfiles): New.
4187 * tree.h: Rename struct binding_level to struct cp_binding_level.
4188 * decl.c: Rename struct binding_level to struct cp_binding_level.
4189 Include cp/gt-decl.h.
4190 (struct cp_binding_level): Use gengtype.
4191 (make_binding_level): Use GGC on struct cp_binding_level.
4192 (mark_binding_level): Use gt_ggc_m_cp_binding_level.
4193 (cxx_init_decl_processing): Mark free_binding_level as
4194 deletable.
4195
4196 * decl.c (mark_cp_function_context): Update calling sequence.
4197
4198 * decl.c (start_function): Don't free 'struct
4199 cp_language_function'.
4200 (pop_cp_function_context): Likewise.
4201 (save_function_data): Allocate it using GC.
4202 * semantics.c (genrtl_start_function): Don't free 'struct
4203 cp_language_function'.
4204
42052002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
4206
4207 * lang-specs.h: Use cpp_debug_options.
4208
42092002-05-28 Zack Weinberg <zack@codesourcery.com>
4210
4211 * mangle.c, tree.c: Include real.h.
4212 * Make-lang.in: Update dependency lists.
4213
42142002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
4215
4216 * lex.c: Don't include c-lex.h.
4217 * parse.y, spew.c: Don't include c-lex.h; include c-pragma.h.
4218
42192002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4220
4221 * spew.c (yyungetc, snarf_block): Remove indent_level handling.
4222
42232002-05-22 Richard Henderson <rth@redhat.com>
4224
4225 * decl.c (obscure_complex_init): Check for VAR_DECL
4226 before using DECL_THREAD_LOCAL.
4227
42282002-05-22 Richard Henderson <rth@redhat.com>
4229
4230 * decl.c (check_tag_decl): Handle RID_THREAD.
4231 (obscure_complex_init): Reject run-time init of tls.
4232 (grokvardecl, grokdeclarator): Handle RID_THREAD.
4233 * lex.c (reswords): Add __thread.
4234 (rid_to_yy): Map RID_THREAD to SCSPEC.
4235
42362002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
4237
4238 * cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4239 * cp-tree.h (cxx_post_options): Kill.
4240 * cp-lex.c (cxx_post_options): Kill.
4241
42422002-05-21 Richard Henderson <rth@redhat.com>
4243
4244 * lex.c (rid_to_yy): Add RID_THREAD.
4245
42462002-05-21 Alexandre Oliva <aoliva@redhat.com>
4247
4248 * init.c (build_vec_init): Test for trivial copy-assignment when
4249 copy-assigning arrays.
4250
42512002-05-20 Andreas Jaeger <aj@suse.de>
4252
4253 * init.c (build_default_init): Remove unused variable.
4254
42552002-05-20 Alexandre Oliva <aoliva@redhat.com>
4256
4257 * call.c (any_strictly_viable): New.
4258 (build_new_op): Use it for COMPOUND_EXPR and ADDR_EXPRs.
4259
42602002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4261
4262 * error.c (dump_type) [TYPEOF_TYPE]: Fix parenthesis printing.
4263
42642002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4265
4266 PR c++/186, DR 259
4267 * pt.c (do_decl_instantiation): Don't complain explicit
4268 instantiation after explicit specialization.
4269 (do_type_instantiation): Likewise.
4270
42712002-05-19 Alexandre Oliva <aoliva@redhat.com>
4272
4273 * cp-tree.h (complete_type_or_diagnostic): Changed prototype,
4274 renamed from...
4275 (complete_type_or_else): ... this. Redefined as macro.
4276 (cxx_incomplete_type_diagnostic): Declare.
4277 (cxx_incomplete_type_error): Define as macro.
4278 * init.c (build_delete): Warn about incomplete types other than
4279 void, and use the built-in operator delete for them.
4280 * typeck.c (complete_type_or_diagnostic): Renamed from
4281 complete_type_or_else. Added warn_only argument, passed to...
4282 * typeck2.c (cxx_incomplete_type_diagnostic): ... this. Print
4283 warnings or errors depending on new warn_only argument. Renamed
4284 from...
4285 (cxx_incomplete_type_error): ... this. New implementation in
4286 terms of cxx_incomplete_type_diagnostic.
4287
42882002-05-18 Jason Merrill <jason@redhat.com>
4289
4290 PR c++/6611
4291 * decl2.c (import_export_decl): If we clear
4292 DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
4293
42942002-05-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4295
4296 PR c++/6620
4297 * pt.c (verify_class_unification): Don't check if PARM is template
4298 parameter dependent. Simplify.
4299 (unify) [TEMPLATE_PARM_INDEX]: Handle when ARG is a template
4300 parameter dependent expression.
4301
43022002-05-14 Jason Merrill <jason@redhat.com>
4303
4304 * rtti.c (get_tinfo_decl): Don't call comdat_linkage.
4305 Do set DECL_COMDAT.
4306 (synthesize_tinfo_var): Take the public decl.
4307 (create_real_tinfo_var): Likewise. Check DECL_COMDAT.
4308 (emit_tinfo_decl): Adjust. Call import_export_decl.
4309 * decl2.c (import_export_decl): Simplify tinfo decl handling.
4310
43112002-05-14 Alexandre Oliva <aoliva@redhat.com>
4312
4313 * cp-tree.h (struct lang_type): Added non_zero_init.
4314 (CLASSTYPE_NON_ZERO_INIT_P): New macro.
4315 (zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
4316 * class.c (check_field_decls): Test non_zero_init.
4317 * cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
4318 zero-to-NULL conversions.
4319 * decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
4320 type that needs zero-initialization without zeros.
4321 (check_initializer_decl): Compute zero-initializer for types
4322 that require a non-trivial one.
4323 * init.c (build_forced_zero_init): New function.
4324 (build_default_init): Use it.
4325 * tree.c (zero_init_p): New function.
4326 * typeck2.c (force_store_init_value): New function.
4327 (process_init_constructor): Create non-trivial zero-initializers
4328 for array members and class fields.
4329
43302002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
4331
4332 * lang-specs.h: Remove redundant -lang-c++.
4333
43342002-05-13 Jason Merrill <jason@redhat.com>
4335
4336 * class.c (build_vtbl_ref_1): Use fixed_type_or_null.
4337 (fixed_type_or_null): See through reference vars.
4338 (build_base_path): Vtable contents are constant.
4339 * typeck.c (get_member_function_from_ptrfunc): Likewise.
4340
43412002-05-12 Jason Merrill <jason@redhat.com>
4342
4343 * cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
4344 structs are safe.
4345
43462002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
4347
4348 * cp-tree.h (flag_ansi): Remove.
4349 * decl2.c (flag_ansi): Remove.
4350 (cxx_decode_option): Set flag_iso and flag_undef.
4351
43522002-05-09 Jason Merrill <jason@redhat.com>
4353
4354 * typeck.c (get_member_function_from_ptrfunc): Reorganize.
4355 Use subtraction rather than a bitmask to get the index.
4356 * cvt.c (cp_convert_to_pointer): Bail on an error_mark_node.
4357
4358 * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.
4359
43602002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4361
4362 * Make-lang.in (decl2.o): Update.
4363 * cp-tree.h (warn_multichar): Remove.
4364 * decl2.c: Include c-common.h.
4365 (warn_multichar): Remove.
4366
43672002-05-03 Jason Merrill <jason@redhat.com>
4368
4369 * tree.c (build_cplus_array_type): Only const and volatile get
4370 special handling.
4371
4372 * decl.c (BOOL_TYPE_SIZE): Move default to defaults.h.
4373
43742002-04-30 Mark Mitchell <mark@codesourcery.com>
4375
4376 ABI change, returning simple classes from functions.
4377 * class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
4378 TYPE_HAS_TRIVIAL_INIT_REF is false or
4379 TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
4380
43812002-04-30 Jason Merrill <jason@redhat.com>
4382
4383 PR debug/6436
4384 * decl.c (grokdeclarator): Don't override TYPE_NAME of an
4385 anonymous class with a typedef if there are attributes.
4386
43872002-04-29 Paul Eggert <eggert@twinsun.com>
4388
4389 * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
4390
43912002-04-29 Jakub Jelinek <jakub@redhat.com>
4392
4393 PR c++/6477
4394 * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
4395 non-NULL first.
4396
43972002-04-29 Mark Mitchell <mark@codesourcery.com>
4398
4399 PR c++/6492
4400 * pt.c (tsubst_friend_class): If the friend has an explicit scope,
4401 enter that scope before name lookup.
4402
4403 PR c++/6486
4404 * method.c (do_build_copy_constructor): Avoid building
4405 cv-qualified reference types.
4406
44072002-04-29 Nathan Sidwell <nathan@codesourcery.com>
4408
4409 PR c++/5719
4410 * decl.c (grok_op_properties): Assignment ops don't have to return
4411 by value. operator% should.
4412
44132002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4414
4415 PR c/6343
4416 * decl.c (duplicate_decls): Call merge_weak.
4417
44182002-04-26 Richard Henderson <rth@redhat.com>
4419
4420 * parse.y (malloced_yyss, malloced_yyvs): New.
4421 (yyoverflow): Re-add. Set them.
4422 (free_parser_stacks): New.
4423
44242002-04-26 Mark Mitchell <mark@codesourcery.com>
4425
4426 PR c++/6497
4427 * method.c (do_build_assign_ref): Pass a derivation to
4428 build_method_call when calling base class assignment operators.
4429
44302002-04-26 Richard Henderson <rth@redhat.com>
4431
4432 * parse.y (yyoverflow): Revert.
4433
44342002-04-26 Richard Henderson <rth@redhat.com>
4435
4436 PR c/3581
4437 * parse.y (string): Remove. Update all uses to use STRING
4438 instead, and not call combine_strings.
4439 * rtti.c (tinfo_name): Use fix_string_type.
4440 * semantics.c (finish_asm_stmt): Don't call combine_strings.
4441 * spew.c (yylexstring): New.
4442 (read_token): Use it.
4443
44442002-04-25 Richard Henderson <rth@redhat.com>
4445
4446 PR c/2161
4447 * parse.y (yyoverflow): New.
4448
44492002-04-25 Jason Merrill <jason@redhat.com>
4450
4451 PR c++/5607
4452 * search.c (check_final_overrider): No longer static.
4453 * class.c (update_vtable_entry_for_fn): Call it.
4454 * cp-tree.h: Adjust.
4455
44562002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
4457
4458 * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
4459 * cp-tree.h (cxx_set_yydebug): Die.
4460 * lex.c (YYDEBUG): Get from c-lex.h.
4461 (cxx_set_yydebug): Remove.
4462 * parse.y: Include c-lex.h.
4463 (YYDEBUG): Get from c-lex.h.
4464
44652002-04-24 Mark Mitchell <mark@codesourcery.com>
4466
4467 PR c++/6438.
4468 * cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
4469 void.
4470
44712002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
4472
4473 * cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4474 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
4475 Redefine.
4476 * cp-tree.h (cp_attribute_table): Rename.
4477 * decl.c (lang_attribute_table): Remove declaration.
4478 (cxx_init_decl_processing): Don't set it.
4479 * tree.c (cp_attribute_table): Rename.
4480
44812002-04-24 Jason Merrill <jason@redhat.com>
4482
4483 PR c++/6331
4484 * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
4485 * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
4486 The pedwarn for array assignment is now unconditional.
4487 * tree.c (build_cplus_array_type_1): Still process simple array types
4488 normally in templates.
4489
4490 PR c++/6395
4491 * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
4492 stuff for comdats.
4493
44942002-04-23 Jakub Jelinek <jakub@redhat.com>
4495
4496 * parse.y (check_class_key): Allow KEY to be union/enum/struct/class
4497 node with attributes.
4498
44992002-2-23 David O'Brien <obrien@FreeBSD.org>
4500
4501 * g++spec.c (MATH_LIBRARY_PROFILE, LIBSTDCXX_PROFILE): Add.
4502 Use MATH_LIBRARY_PROFILE and LIBSTDCXX_PROFILE if profile flag given.
4503
45042002-04-23 Mark Mitchell <mark@codesourcery.com>
4505
4506 PR c++/6256:
4507 * pt.c (tsubst_friend_class): Handle templates with explicit
4508 nested names.
4509
4510 PR c++/6331:
4511 * typeck.c (merge_types): Remember the cv-qualification of pointer
4512 types when merging them.
4513
45142002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4515
4516 * cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
4517 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
4518 * cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
4519 cxx_mark_function_context): New.
4520 * decl.c (push_cp_function_context, pop_cp_function_context,
4521 mark_cp_function_context): Rename for consistency.
4522 (cxx_init_decl_processing): Don't set old hooks.
4523
45242002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
4525
4526 * call.c (convert_type_from_ellipsis): Rename, update.
4527 * cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4528 * cp-tree.h (convert_type_from_ellipsis): Rename.
4529 * decl.c (cxx_init_decl_processing): Don't set hook.
4530
45312002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4532
4533 * call.c (build_new_method_call): Update.
4534 * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4535 * cp-tree.h (cxx_incomplete_type_error): New.
4536 * decl.c (grokdeclarator, grokparms): Update.
4537 * decl2.c (check_classfn): Update.
4538 * pt.c (tsubst): Update.
4539 * typeck.c (complete_type_or_else, expr_sizeof,
4540 decay_conversion): Update.
4541 * typeck2.c (incomplete_type_error): Rename.
4542 (add_exception_specifier): Update.
4543
45442002-04-18 Jason Merrill <jason@redhat.com>
4545
4546 PR c++/5658
4547 * search.c (setup_class_bindings): A class template qualifies as a
4548 type binding.
4549
45502002-04-17 Jakub Jelinek <jakub@redhat.com>
4551
4552 PR c++/6316
4553 * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
4554 before expanding.
4555
45562002-04-16 Mark Mitchell <mark@codesourcery.com>
4557
4558 * init.c (begin_init_stmts): Remove commented out code.
4559 (finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
4560 * semantics.c (begin_gobal_stmt_expr): Adjust call to
4561 expand_start_stmt_expr.
4562
45632002-04-15 Mark Mitchell <mark@codesourcery.com>
4564
4565 * decl.c (register_dtor_fn): Pass the address of dso_handle, not
4566 dso_handle itself, to __cxa_atexit.
4567
45682002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4569
4570 * error.c (cxx_print_error_function): Adjust call to macros.
4571
45722002-04-14 Jakub Jelinek <jakub@redhat.com>
4573
4574 * class.c (layout_virtual_bases): Do all dsize computation on trees.
4575
45762002-04-14 Jason Merrill <jason@redhat.com>
4577
4578 * typeck.c (get_member_function_from_ptrfunc): Don't do
4579 gratuitious division and multiplication on
4580 ptrmemfunc_vbit_in_delta targets.
4581
45822002-04-12 Mark Mitchell <mark@codesourcery.com>
4583
4584 PR c++/5373.
4585 * semantics.c (finish_expr_stmt): Remember the type of the
4586 expression before any conversions are performed.
4587
45882002-04-12 Mark Mitchell <mark@codesourcery.com>
4589
4590 PR c++/5189.
4591 * call.c (add_template_candidate_real): Do not treat member
4592 templates as copy constructors.
4593
45942002-04-12 Mark Mitchell <mark@codesourcery.com>
4595
4596 * decl.c (duplicate_decls): Do not copy the RTL for a variable
4597 declaration if the old variable had an incomplete type and the new
4598 variable does not.
4599 (complete_vars): Do not call layout_decl for completed variables.
4600
46012002-04-12 Richard Sandiford <rsandifo@redhat.com>
4602
4603 * decl.c (duplicate_decls): Don't try to unify an implicit typedef
4604 with an explicit one.
4605 (follow_tag_typedef): New.
4606 (lookup_tag): Use it to extract the tag of an explicit typedef.
4607 (xref_tag): Likewise.
4608
46092002-04-11 Andrew Haley <aph@redhat.com>
4610
4611 * typeck.c (type_after_usual_arithmetic_conversions):
4612 If two types have the same variant, return immediately.
4613 When two floating-point operands are the same precision:
4614 convert to float if one of the operands is float;
4615 if neither operand is one of the standard types, return the type
4616 of the first operand.
4617
46182002-04-10 Nathan Sidwell <nathan@codesourcery.com>
4619
4620 PR c++/5507
4621 * decl.c (make_typename_type): Remove implicit typenameness.
4622
46232002-04-09 Jason Merrill <jason@redhat.com>
4624
4625 PR optimization/6189
4626 * semantics.c (genrtl_start_function): Don't free
4627 DECL_SAVED_FUNCTION_DATA for inline functions.
4628
4629 * init.c (build_member_call): For now, don't convert to
4630 intermediate base if it would cause an error.
4631
46322002-04-08 Paolo Carlini <pcarlini@unitus.it>
4633
4634 * parse.y (namespace_qualifier, maybe_identifier,
4635 begin_explicit_instantiation, end_explicit_instantiation,
4636 apparent_template_type, .finish_template_type,
4637 do_id, maybe_init, defarg_again, component_decl_1):
4638 Add ending ';', in accordance with POSIX.
4639
46402002-04-06 Mark Mitchell <mark@codesourcery.com>
4641
4642 PR c++/5571
4643 * class.c (layout_class_type): Remember incomplete static
4644 variables.
4645 (finish_struct_1): Call complete_vars, not
4646 hack_incomplete_structures.
4647 * cp-tree.h (hack_incomplete_structures): Rename to ...
4648 (complete_vars): ... this.
4649 (struct saved_scope): Remove incomplete.
4650 (namespace_scope_incomplete): Remove.
4651 * decl.c (struct binding_level): Remove incomplete.
4652 (incomplete_vars): New variable.
4653 (mark_binding_level): Don't mark incomplete.
4654 (print_binding_level): Don't print it.
4655 (mark_saved_scope): Don't mark incomplete.
4656 (pushdecl): Use maybe_register_incopmlete_var.
4657 (cxx_init_decl_processing): Register incomplete_vars for GC.
4658 (start_decl_1): Clarify error message.
4659 (hack_incomplete_vars): Remove.
4660 (maybe_register_incomplete_var): New function.
4661 (complete_vars): Likewise.
4662
46632002-04-06 Jason Merrill <jason@redhat.com>
4664
4665 PR c++/4934
4666 * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
4667 set before checking it.
4668
4669 PR c++/525
4670 * init.c (build_member_call): Use build_scoped_ref.
4671 (resolve_offset_ref): Likewise.
4672 * call.c (build_scoped_method_call): Likewise.
4673 * tree.c (maybe_dummy_object): Kludge around current_class_type being
4674 wrong.
4675 * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
4676 * cp-tree.h: Adjust.
4677
4678 * init.c (push_base_cleanups): Just use build_scoped_method_call.
4679
4680 PR c++/6179
4681 * method.c (implicitly_declare_fn): Pass unqualified type to
4682 synthesize_exception_spec.
4683
46842002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4685
4686 * cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4687 * cvt.c: Update comment.
4688 * init.c (expand_cleanup_for_base): Update.
4689 * semantics.c (finish_parenthesized_expr): Update.
4690 * typeck.c (cp_truthvalue_conversion): Update.
4691
46922002-04-04 Jason Merrill <jason@redhat.com>
4693
4694 * semantics.c (finish_eh_cleanup): New fn.
4695 * cp-tree.h: Add prototype.
4696 * init.c (perform_member_init, expand_cleanup_for_base): Use
4697 finish_eh_cleanup.
4698 * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
4699 * cp-tree.h: Remove references.
4700 * decl.c (begin_constructor_body, end_constructor_body): Likewise.
4701 * dump.c (cp_dump_tree): Likewise.
4702 * pt.c (tsubst_expr): Likewise.
4703 * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
4704 (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
4705 * tree.c (cp_statement_code_p): Likewise.
4706
4707 * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
4708
4709 PR c++/5636
4710 * semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
4711 cleanup for nrv.
4712
4713 PR c++/5104
4714 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
4715 specifiers.
4716 [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
4717
47182002-04-03 Richard Henderson <rth@redhat.com>
4719
4720 * cp-lang.c (cxx_warn_unused_global_decl): New.
4721 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4722
47232002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4724
4725 * cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
4726 * tree.c (init_tree): Don't set hook.
4727
47282002-04-03 Roger Sayle <roger@eyesopen.com>
4729
4730 PR c++/5998:
4731 * decl.c (duplicate_decls): Don't mess with assembler names when
4732 redeclaring builtin functions as static.
4733
47342002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4735
4736 * call.c (build_addr_func): Update.
4737 * class.c (resolve_address_of_overloaded_function): Update.
4738 * cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4739 * cp-tree.h (cxx_mark_addressable): New.
4740 * decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update.
4741 * decl2.c (build_cleanup): Update.
4742 * except.c (build_throw): Update.
4743 * init.c (resolve_offset_ref): Update.
4744 * pt.c (convert_nontype_argument): Update.
4745 * semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update.
4746 * typeck.c (decay_conversion, build_array_ref, build_unary_op,
4747 unary_complex_lvalue): Update.
4748 (mark_addressable): Rename.
4749
47502002-04-01 Roger Sayle <roger@eyesopen.com>
4751
4752 PR c++/5998:
4753 * decl.c (duplicate_decls): Overwrite the RTL when (and only
4754 when) overwriting a built-in function. Don't use COPY_DECL_RTL,
4755 but follow the SET_DECL_RTL idiom used elsewhere in the function.
4756
47572002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4758
4759 * cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4760 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4761 * decl.c (grokdeclarator): Update.
4762 * mangle.c (write_integer_cst): Update.
4763 * typeck.c (build_binary_op): Update.
4764
47652002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4766
4767 * cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4768 * lex.c (cxx_init): Don't set hook.
4769
47702002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4771
4772 * Make-lang.in (error.o): Update.
4773 * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
4774 * cp-tree.h (struct diagnostic_context): Predeclare.
4775 (cxx_print_error_function): New.
4776 * error.c: Include langhooks-def.h.
4777 (lang_print_error_function): Rename. Update.
4778 (init_error): Don't set hook.
4779
47802002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4781
4782 * cp-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4783 Redefine.
4784 * cvt.c (cp_convert_to_pointer, type_promotes_to): Use new hooks.
4785 * decl.c (finish_enum): Similarly.
4786 * error.c (dump_type): Similarly.
4787 * lex.c (cxx_init): Similarly.
4788 * mangle.c (write_builtin_type): Similarly.
4789 * typeck.c (comptypes): Similarly.
4790
47912002-03-28 Roger Sayle <roger@eyesopen.com>
4792
4793 PR c++/5998:
4794 * decl.c (cxx_init_decl_processing): Re-enable built-in functions
4795 in the g++ front-end.
4796 (duplicate_decl): Allow redefinition of anticipated built-ins.
4797 Fix inlining problem by over-writing the old DECL_RTL.
4798 (lookup_namespace_name): Fail to find an identifier in the
4799 specified namespace if its still anticipated.
4800 (builtin_function_1): New function split out from builtin_function
4801 to create a builtin in the current namespace with given context.
4802 (builtin_function): Call builtin_function_1 to define the
4803 appropriate builtins in both the std and global namespaces.
4804 (select_decl): Don't test for anticipated decls here.
4805 (unqualified_namespace_lookup): Instead ignore them whilst
4806 searching through scopes and namespaces.
4807 * decl2.c (do_nonmember_using_decl): If a using declaration
4808 specifies an anticipated built-in function, mark it as no longer
4809 anticipated in that scope.
4810 (ambiguous_decl): Avoid resolving to an anticipated decl.
4811 * lex.c (do_scoped_id): Fail to find an identifier in the global
4812 namespace if its still anticipated.
4813
48142002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4815
4816 * cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine.
4817 * cp-tree.h (cp_make_lang_type): Rename.
4818 * lex.c (cp_make_lang_type): Rename.
4819 (make_aggr_type): Update.
4820 * tree.c (init_tree): Don't set make_lang_type_fn.
4821
48222002-03-29 Jakub Jelinek <jakub@redhat.com>
4823
4824 PR c++/6073
4825 * class.c (finish_struct_1): Update static field's DECL_MODE even
4826 if its type is a variant of t.
4827
48282002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4829
4830 * cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4831 * cp-tree.h (cxx_insert_default_attributes): New.
4832 * decl.c (insert_default_attributes): Rename.
4833
48342002-03-27 Mark Mitchell <mark@codesourcery.com>
4835
4836 PR c++/4884
4837 * call.c (build_op_delete_call): Allow for the fact the placement
4838 may be a COMPOUND_EXPR.
4839
48402002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4841
4842 * cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4843 * cp-tree.h (init_cplus_expand): Remove.
4844 (cxx_expand_expr): New.
4845 * expr.c (cplus_expand_expr): Rename cxx_expand_expr,
4846 fix prototype.
4847 (init_cplus_expand): Remove.
4848 * lex.c (cxx_init): Don't call init_cplus_expand.
4849
48502002-03-26 Mark Mitchell <mark@codesourcery.com>
4851
4852 PR c++/4884.
4853 * init.c (build_new_1): Allow for the fact the result of
4854 build_function_call may be a COMPOUND_EXPR.
4855
48562002-03-26 Nathan Sidwell <nathan@codesourcery.com>
4857
4858 PR c++/5682
4859 * cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
4860 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
4861 (dfs_skip_nonprimary_vbases_markedp): Remove.
4862 * search.c (get_shared_vbase_if_not_primary): Remove.
4863 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
4864 (dfs_skip_nonprimary_vbases_markedp): Remove.
4865 (dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
4866 (dfs_marked_real_bases_queue_p): Likewise.
4867
48682002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
4869
4870 * cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4871 * cp-tree.h (cxx_mark_tree): New.
4872 * decl.c (lang_mark_tree): Rename cxx_mark_tree.
4873
48742002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4875
4876 * cp-tree.h (cxx_maybe_build_cleanup): New.
4877 * decl.c (destroy_local_var, hack_incomplete_structures): Update.
4878 (maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
4879 * tree.c (build_target_expr): Update.
4880 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
4881
48822002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4883
4884 * decl2.c (cxx_decode_option): Handle -E.
4885 * lang-specs.h (default_compilers): Preprocess with cc1plus.
4886 * lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
4887
48882002-03-23 Jakub Jelinek <jakub@redhat.com>
4889
4890 PR c++/6037
4891 * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
4892
48932002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4894
4895 * error.c (dump_type): Be careful about implicit typenames.
4896
48972002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4898
4899 PR C++/3656
4900 * semantics.c (finish_base_specifier): Handle erronous base
4901 classes.
4902
49032002-03-22 Zack Weinberg <zack@codesourcery.com>
4904
4905 * error.c: Always use REAL_VALUE_TO_DECIMAL; don't test
4906 REAL_IS_NOT_DOUBLE.
4907
49082002-03-22 Jeff Knaggs <jknaggs@redhat.com>
4909
4910 * typeck.c (get_member_function_from_ptrfunc): Scale idx down to
4911 an index into the vtable_entry array regardless of
4912 TARGET_PTRMEMFUNC_VBIT_LOCATION.
4913
49142002-03-21 Aldy Hernandez <aldyh@redhat.com>
4915
4916 * tree.c (cp_cannot_inline_tree_fn): Same.
4917
49182002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4919
4920 * cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
4921 insert_block, getdecls, global_bindings_p): New.
4922
49232002-03-20 Nathan Sidwell <nathan@codesourcery.com>
4924
4925 PR c++/4361
4926 * mangle.c (struct globals) Add internal_mangling_p member.
4927 (write_template_param): Do internal mangling, if needed.
4928 (mangle_conv_op_name_for_type): Request internal mangling.
4929
49302002-03-20 Jason Merrill <jason@redhat.com>
4931
4932 PR c++/2136
4933 * init.c (build_delete): Check access for a member op delete here.
4934 * decl2.c (delete_sanity): Not here.
4935
49362002-03-19 Jason Merrill <jason@redhat.com>
4937
4938 PR c++/5118
4939 * class.c (get_vfield_name): Use the constructor_name.
4940
49412002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4942
4943 * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4944 * cp-tree.h (lang_printable_name): Rename.
4945 * error.c (lang_decl_name): Use new hook.
4946 * lex.c (cxx_init): Remove old hook.
4947 * pt.c (tsubst_decl): Use new hook.
4948 * tree.c (lang_printable_name): Rename.
4949
49502002-03-18 Eric Botcazou <ebotcazou@multimania.com>
4951
4952 PR c++/3882
4953 * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
4954 (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
4955 only after recording the declaration.
4956
49572002-03-18 Jason Merrill <jason@redhat.com>
4958
4959 PR c++/2039
4960 * init.c (resolve_offset_ref): Hand off to build_component_ref.
4961
4962 PR c++/4222, c++/5995
4963 * call.c (build_over_call): Fix empty class logic.
4964
4965 PR c++/3870
4966 * cp-tree.h (struct saved_scope): Add last_parms field.
4967 * decl.c (maybe_push_to_top_level): Save last_function_parms.
4968 (pop_from_top_level): Restore it.
4969
4970 PR c++/4377
4971 * mangle.c (write_expression): Strip NOP_EXPRs sooner. Also strip
4972 NON_LVALUE_EXPRs.
4973
4974 PR c++/4003
4975 * pt.c (tsubst_friend_function): Use decl_namespace_context.
4976
4977 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
4978 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
4979 type with a nontrivial destructor.
4980
49812002-03-17 Jason Merrill <jason@redhat.com>
4982
4983 PR c++/4460
4984 * class.c (build_base_path): Virtual base layout is fixed in
4985 in-charge [cd]tors.
4986
49872002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4988
4989 * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4990 * parse.y (yyparse): Remove macro.
4991
49922002-03-17 Jason Merrill <jason@redhat.com>
4993
4994 PR c++/5757
4995 * init.c (build_new_1): Pass the right pointer to op delete.
4996
49972002-03-16 Nathan Sidwell <nathan@codesourcery.com>
4998
4999 PR c++/4361
5000 * cp-tree.h (CLASSTYPE_METHOD_VEC): Document where templated
5001 conversion operators go.
5002 (struct lang_decl_flags): Add template_conv_p and unused
5003 bitfields.
5004 (DECL_TEMPLATE_CONV_FN_P): New macro.
5005 * call.c (build_user_type_conversion_1): Don't check second type
5006 conversion of overload set first.
5007 * class.c (add_method): Make sure templated conversion operators
5008 all end up on slot 2.
5009 * lex.c (do_identifier): A conversion operator token might be
5010 satisfied by a templated conversion operator.
5011 * pt.c (check_explicit_specialization): Use
5012 CLASSTYPE_FIRST_CONVERSION_SLOT.
5013 (template_parm_this_level_p): New function.
5014 (push_template_decl_real): Determine DECL_TEMPLATE_CONV_FN_P.
5015 * search.c (lookup_fnfields_1): Template conversions will be on
5016 the first slot.
5017 * typeck.c (build_component_ref): Preserve the type of an
5018 conversion operator name on the overload type.
5019 (build_x_function_call): Retrieve the conversion operator name.
5020
50212002-03-15 Richard Henderson <rth@redhat.com>
5022
5023 * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
5024
50252002-03-15 Mark Mitchell <mark@codesourcery.com>
5026
5027 * cp-tree.h (CLEANUP_DECL): Remove.
5028 (CLEANUP_EXPR): Likewise.
5029 * decl.c (destroy_local_var): Simplify.
5030 (maybe_build_cleanup): Tidy.
5031 * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
5032 * semantics.c (cp_expand_stmt): Likewise.
5033 * cp/tree.c (cp_statement_code_p): Likewise.
5034
50352002-03-15 Jason Merrill <jason@redhat.com>
5036
5037 PR c++/5857
5038 * decl.c (duplicate_decls): Use merge_types instead of common_type.
5039 * typeck.c (common_type): Just hand off to
5040 type_after_usual_arithmetic_conversions and
5041 composite_pointer_type.
5042 (merge_types): New fn.
5043 (commonparms): Use it instead of common_type.
5044 (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
5045 (composite_pointer_type): Also handle attributes.
5046 * cp-tree.h: Declare merge_types.
5047
5048 * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
5049 variables.
5050 * decl2.c (maybe_make_one_only): Also mark the decl as needed.
5051
50522002-03-14 Richard Henderson <rth@redhat.com>
5053
5054 * decl.c: Include c-pragma.h.
5055 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5056 * Make-lang.in: Update dependencies.
5057
50582002-03-14 Jakub Jelinek <jakub@redhat.com>
5059
5060 PR c++/5908
5061 * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
5062 * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
5063
50642002-03-12 Richard Sandiford <rsandifo@redhat.com>
5065
5066 * mangle.c (write_builtin_type): Handle 128-bit integers even if
5067 they are not a standard integer type.
5068
50692002-03-12 Richard Sandiford <rsandifo@redhat.com>
5070
5071 * cp-tree.h (init_init_processing): Remove declaration.
5072 * init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
5073 * decl.c (cxx_init_decl_processing): Don't call init_init_processing.
5074
50752002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5076
5077 * cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
5078 Define.
5079 * decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
5080 tree_code_length.
5081 * lex.c (cplus_tree_code_type, cplus_tree_code_length,
5082 cplus_tree_code_name): Delete.
5083 (cxx_init): Don't call add_c_tree_codes, instead set
5084 lang_unsafe_for_reeval. Don't try to copy into the various
5085 tree_code arrays.
5086
50872002-03-12 Nathan Sidwell <nathan@codesourcery.com>
5088
5089 PR c++/5659
5090 * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
5091 * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
5092 definitions.
5093
50942002-03-11 Nathan Sidwell <nathan@codesourcery.com>
5095
5096 Revert 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>,
5097 DR209 is now not a defect.
5098 * cp-tree.h (skip_type_access_control): Remove.
5099 * decl.c (grokdeclarator): Do type access control for friend
5100 declarations.
5101 * semantics.c (decl_type_access_control): Don't reset
5102 current_type_lookups.
5103 (save_type_access_control): Always save the lookups.
5104 (skip_type_access_control): Remove.
5105 (finish_class_definition): Don't change type_lookups.
5106
51072002-03-11 Nathan Sidwell <nathan@codesourcery.com>
5108
5109 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>,
5110 It is incorrect.
5111 * typeck.c (build_static_cast): Compare non-qualified types
5112 with pointer to member conversions.
5113
51142002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5115 Daniel Berlin <dan@dberlin.org>
5116
5117 * cp-lang.c (ok_to_generate_alias_set_for_type): New function.
5118 (cxx_get_alias_set): Use it.
5119
51202002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5121
5122 * cp-tree.h (stabilize_expr): Prototype.
5123
51242002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5125
5126 * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
5127 conditional return void.
5128
51292002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5130
5131 * cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
5132 * cp-tree.h (cxx_unsave): New.
5133 * tree.c (cp_unsave): Rename cxx_unsave, update prototype.
5134 (init_tree): Update.
5135
51362002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5137
5138 * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of
5139 explicit sizeof/sizeof.
5140 * decl2.c (cxx_decode_option): Likewise.
5141 * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise.
5142
51432002-03-02 Nathan Sidwell <nathan@codesourcery.com>
5144
5145 PR c++/775
5146 * decl.c (lookup_tag): Only reject enum/class mismatch, not
5147 class/union mismatch.
5148 * parse.y (check_class_key): New function.
5149 (structsp): Call it.
5150
51512002-03-01 Michael Matz <matz@suse.de>
5152
5153 * typeck.c (cp_pointer_int_sum): Complete inner type which is
5154 used later by size_in_bytes().
5155
51562002-03-01 Phil Edwards <pme@gcc.gnu.org>
5157
5158 * cp-tree.h: Require __GNUC__ to be #defined.
5159 (build_init): Add missing prototype.
5160
51612002-03-01 Jason Merrill <jason@redhat.com>
5162
5163 * except.c: Don't include decl.h or obstack.h. Do include
5164 tree-inline.h.
5165 (build_throw): Destroy temporaries from the thrown
5166 expression before calling __cxa_throw. Construct a thrown
5167 temporary directly into the exception object.
5168 (stabilize_throw_expr): New function.
5169 (wrap_cleanups_r): New function.
5170 * tree.c (stabilize_expr): New function.
5171 * init.c (build_init): New function.
5172 * Make-lang.in (cp/except.o): Adjust .h deps.
5173
51742002-02-28 Jason Merrill <jason@redhat.com>
5175
5176 * search.c (lookup_base_r): Don't clear is_non_public just because
5177 we found a friendly scope.
5178
5179 * decl.c (finish_function): Only warn about missing return
5180 statement with -Wreturn-type.
5181
51822002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5183
5184 * class.c (build_clone): Update.
5185 * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5186 * cp-tree.h (cxx_dup_lang_specific_decl): New.
5187 * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
5188 (copy_decl): Update.
5189 * method.c (make_thunk): Update.
5190
51912002-02-27 Zack Weinberg <zack@codesourcery.com>
5192
5193 * decl2.c: Delete traditional-mode-related code copied from
5194 the C front end but not used, or used only to permit the
5195 compiler to link.
5196
51972002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
5198
5199 PR c++/4093
5200 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
5201 to void.
5202
52032002-02-22 Jakub Jelinek <jakub@redhat.com>
5204
5205 PR other/5746
5206 * semantics.c (finish_switch_cond): Don't call get_unwidened
5207 if error_mark_node.
5208
52092002-02-22 Nathan Sidwell <nathan@codesourcery.com>
5210
5211 PR c++/2645, DR 295
5212 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
5213 tf_keep_type_decl.
5214 (make_typename_type): Use tsubst_flags_t.
5215 * decl.c (make_typename_type): Adjust. Return non-artificial
5216 TYPE_DECLs, if required.
5217 (grokdeclarator): Simplify CVR qualification handling. Allow bad
5218 qualifiers on typedef types.
5219 * decl2.c (handle_class_head): Adjust make_typename_type call.
5220 * parse.y (nested_name_specifier): Likewise.
5221 (typename_sub0): Likewise.
5222 (typename_sub1): Likewise.
5223 * pt.c (convert_template_argument): Adjust make_typename_type
5224 return value.
5225 (tsubst): Adjust cp_build_qualified_type_real calls.
5226 (check_cv_quals_for_unify): Cope with allowing bad qualifications
5227 on template type parms.
5228 (instantiate_decl): Recheck substitutions to give warnings on bad
5229 qualifications.
5230 * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
5231
52322002-02-21 Aldy Hernandez <aldyh@redhat.com>
5233
5234 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5235
5236 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5237 unless DECL_ALWAYS_INLINE.
5238
52392002-02-20 Jakub Jelinek <jakub@redhat.com>
5240
5241 * typeck.c (cp_pointer_int_sum): Renamed from
5242 pointer_int_sum, call pointer_int_sum.
5243
52442002-02-20 Jakub Jelinek <jakub@redhat.com>
5245
5246 * decl.c (duplicate_decls): Return 0 if issued error about
5247 redeclaration.
5248
52492002-02-19 Jason Merrill <jason@redhat.com>
5250
5251 ABI change: Mangle `void (A::*)() const' as
5252 M1AKFvvE, not MK1AFvvE.
5253 * mangle.c (write_function_type): Write cv-quals for member
5254 function type here.
5255 (write_pointer_to_member_type): Not here.
5256
52572002-02-18 Jason Merrill <jason@redhat.com>
5258
5259 * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
5260 (do_decl_instantiation): Likewise.
5261
52622002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
5263
5264 PR c++/5685
5265 * decl.c (duplicate_decls): Make warning unconditional
5266 if duplicate default argument declarations are present.
5267
52682002-02-17 Jakub Jelinek <jakub@redhat.com>
5269
5270 * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5271 shortening.
5272
52732002-02-15 Nathan Sidwell <nathan@codesourcery.com>
5274
5275 * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
5276 remove incorrect comment. Move #if 0'd code to common path. Use
5277 IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
5278
52792002-02-13 Jason Merrill <jason@redhat.com>
5280
5281 * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
5282 (finish_function): Don't warn if current_function_returns_null.
5283
5284 * typeck2.c (digest_init): Do handle values of vector type.
5285
5286 * typeck2.c (digest_init, process_init_constructor): Treat vectors
5287 like arrays.
5288
52892002-02-11 Jason Merrill <jason@redhat.com>
5290
5291 * parse.y (reserved_declspecs): Don't handle attributes.
5292 (reserved_typespecquals): Handle them here.
5293 * Make-lang.in (parse.c): Adjust expected conflicts.
5294
52952002-02-08 Jakub Jelinek <jakub@redhat.com>
5296
5297 * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
5298 instead of compstmt.
5299 (compstmt_or_stmtexpr): Renamed from compstmt.
5300 (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
5301
53022002-02-07 Nathan Sidwell <nathan@codesourcery.com>
5303
5304 Rename instantiate_type_flags to tsubst_flags_t & expand use.
5305 * cp-tree.h (instantiate_type_flags): Rename to ...
5306 (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
5307 add tf_warning flag.
5308 (instantiate_type): Adjust prototype.
5309 (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
5310 do_type_instantiation, cp_build_qualified_type_real): Likewise.
5311 cp_build_qualified_type: Adjust.
5312 * class.c (instantiate_type): Adjust parameter. Rename itf_* to
5313 tf_*.
5314 * call.c (standard_conversion): Rename itf_* to tf_*.
5315 (reference_binding): Likewise.
5316 (convert_like_real): Likewise.
5317 * cvt.c (cp_convert_to_pointer): Likewise.
5318 (convert_to_reference): Likewise.
5319 * decl.c (lookup_namespace_name): Use tf_* flags.
5320 (make_typename_type): Likewise.
5321 (grokdeclarator): Likewise.
5322 * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
5323 (coerce_template_template_parms, convert_template_argument,
5324 coerce_template_parms, maybe_get_template_decl_from_type_decl,
5325 lookup_template_class, tsubst_friend_function, tsubst_friend_class,
5326 instantiate_class_template, tsubst_template_arg_vector,
5327 tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
5328 tsubst_decl, tsubst_arg_types, tsubst_function_type,
5329 tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
5330 instantiate_template, fn_type_unification,
5331 resolve_overloaded_unification, verify_class_unification,
5332 unify, get_bindings_real, do_type_instantiation,
5333 regenerate_decl_from_template, instantiate_decl,
5334 tsubst_initializer_list, tsubst_enum,
5335 get_mostly_instantiated_function_type,
5336 invalid_nontype_parm_type_p): Likewise.
5337 * tree.c (cp_build_qualified_type_real): Likewise.
5338 * typeck.c (build_binary_op): Rename itf_* to tf_*.
5339 (build_ptrmemfunc): Likewise.
5340 (convert_for_assignment): Likewise.
5341
53422002-02-07 Nathan Sidwell <nathan@codesourcery.com>
5343
5344 PR c++/109
5345 * decl.c (grokdeclarator): Allow friend declarations from
5346 dependent types.
5347 * decl2.c (handle_class_head): Don't push into template parm contexts.
5348 * pt.c (push_template_decl_real): Template parm contexts are never
5349 being defined.
5350
53512002-02-05 Alexandre Oliva <aoliva@redhat.com>
5352
5353 * class.c: Include target.h.
5354 (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
5355 BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
5356 bit-field layout.
5357 * Make-lang.in: Adjust deps.
5358
53592002-02-05 Jason Merrill <jason@redhat.com>
5360
5361 * error.c (dump_type): Be more helpful about VECTOR_TYPE.
5362
53632002-02-04 Jakub Jelinek <jakub@redhat.com>
5364
5365 * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
5366 (finish_switch_cond): Set SWITCH_TYPE.
5367
53682002-02-04 Richard Henderson <rth@redhat.com>
5369
5370 * method.c (use_thunk): Always initialize the block tree. Reindent.
5371 * semantics.c (expand_body): Emit thunks after function, not before.
5372
53732002-02-04 Jason Merrill <jason@redhat.com>
5374
5375 * decl.c (start_function): Call cplus_decl_attributes immediately
5376 after grokdeclarator.
5377
5378 * decl.c (start_function): Combine DECL_RESULT handling code.
5379
53802002-02-03 Jason Merrill <jason@redhat.com>
5381
5382 * xref.c: Remove.
5383 * Make-lang.in (CXX_OBJS): Remove cp/xref.o
5384 (cp/xref.o): Remove dependencies.
5385 * class.c (finish_struct_1, check_methods): Don't call xref fns.
5386 (finish_struct_1): Likewise.
5387 * friend.c (make_friend_class): Likewise.
5388 * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
5389 * spew.c (read_process_identifier): Likewise.
5390
53912002-02-01 Jason Merrill <jason@redhat.com>
5392
5393 PR c++/4872
5394 * decl.c (finish_function): Warn about a non-void function with
5395 no return statement and no abnormal exit.
5396 * cp-tree.h (struct cp_language_function): Add returns_abnormally.
5397 (current_function_returns_abnormally): New macro.
5398 * call.c (build_call): Set it.
5399
5400 * typeck.c (build_component_ref): Always complain about offsetof
5401 constructs on non-PODs. Only make it an error for members of
5402 virtual bases.
5403
5404 * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
5405 (dump_function_decl): Always dump parms.
5406
5407 * decl2.c (finish_static_data_member_decl): Complain about a local
5408 class with a static data member.
5409
5410 PR c++/4286
5411 * search.c (lookup_field_1): Don't xref a static data member
5412 just because we looked it up.
5413
54142002-01-31 Jason Merrill <jason@redhat.com>
5415
5416 * Make-lang.in (parse.c): Handle .output file.
5417
5418 PR c++/3395
5419 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
5420 not TREE_TYPE.
5421 * semantics.c (finish_class_definition): Adjust.
5422
5423 Allow attributes in parms and casts.
5424 * parse.y (named_parm): Don't strip attrs.
5425 (declmods): Remove 'attributes' production.
5426 (nonempty_cv_qualifiers): Accept attributes.
5427 (ATTRIBUTE): Give precedence.
5428 * decl.c (groktypename): Handle attributes.
5429 (grokparms): Likewise.
5430
54312002-01-29 Jakub Jelinek <jakub@redhat.com>
5432
5433 * decl2.c (cxx_decode_option): Pass 0 as last argument to
5434 cpp_handle_option.
5435 * lang-specs.h: Use cpp_unique_options instead of cpp_options
5436 when used together with cc1_options.
5437
54382002-01-29 Nathan Sidwell <nathan@codesourcery.com>
5439
5440 PR c++/5132
5441 * typeck2.c (digest_init): Make sure non-array core type is
5442 instantiated.
5443 * decl2.c (reparse_absdcl_as_casts): Just store the type in the
5444 constructor, rather than build a new one.
5445 (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
5446 PURPOSE of constructor elts.
5447
54482002-01-23 Zack Weinberg <zack@codesourcery.com>
5449
5450 * Make-lang.in (parse.c): Adjust expected number of
5451 shift-reduce conflicts.
5452 (decl.o): Depend on diagnostic.h.
5453 * decl.c: Include diagnostic.h.
5454 (grokdeclarator): Check for null pointer.
5455 (finish_function): Don't abort when
5456 current_binding_level->parm_flag != 1, if errors have
5457 occurred; throw away the statement tree and extra binding
5458 levels, and continue.
5459 * lex.c (note_list_got_semicolon): Check for null pointer.
5460 * method.c (hack_identifier): Just return error_mark_node if
5461 value is error_mark_node.
5462 * parse.y (primary: TYPEID(type_id)): No need to use
5463 TYPE_MAIN_VARIANT here.
5464 (handler_seq): Accept an empty list of catch clauses and
5465 generate a fake handler block to avoid later crashes.
5466 (ansi_raise_identifier): Accept the error token too.
5467 * semantics.c (begin_class_definition,
5468 finish_class_definition): Check for error_mark_node.
5469
54702002-01-23 Zack Weinberg <zack@codesourcery.com>
5471
5472 * typeck2.c (friendly_abort): Delete definition.
5473 * cp-tree.h (friendly_abort): Don't prototype.
5474 (my_friendly_assert): Use fancy_abort.
5475
54762002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
5477
5478 * cp-tree.h (my_friendly_abort): Remove.
5479
54802002-01-23 Jakub Jelinek <jakub@redhat.com>
5481
5482 * spew.c (pending_inlines, pending_inlines_tail,
5483 processing_these_inlines): Make static.
5484 (mark_pending_inlines): Remove static.
5485 (begin_parsing_inclass_inline): If in function, save pi
5486 for GC to cp_function_chain->unparsed_inlines instead.
5487 (process_next_inline): Likewise.
5488 * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
5489 (mark_pending_inlines): Add prototype.
5490 * decl.c (spew_debug): Remove unused extern.
5491 (mark_lang_function): Call mark_pending_inlines.
5492
54932002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
5494
5495 * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
5496 init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
5497 semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
5498 Change my_fancy_abort() to abort().
5499
55002002-01-23 Jason Merrill <jason@redhat.com>
5501
5502 PR c++/5453
5503 * class.c (fixed_type_or_null): Fix thinko.
5504
5505 PR c++/3331
5506 * init.c (resolve_offset_ref): Use build_indirect_ref.
5507
5508 * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
5509
55102002-01-22 Jason Merrill <jason@redhat.com>
5511
5512 * parse.y (function_body): Suppress the block for the outermost
5513 curly braces.
5514 * decl.c (pushdecl): Don't try to skip it.
5515 (begin_function_body): Keep the block we create, not the next one.
5516 * init.c (emit_base_init): Don't mess with keep_next_level.
5517
5518 * class.c (build_base_path): Tweak formatting.
5519
55202002-01-19 Nathan Sidwell <nathan@codesourcery.com>
5521
5522 Fix regression introduced with patch for c++/775
5523 * parse.y (class_head_defn): Check for template specializations
5524 with a different class-key.
5525
55262002-01-17 Jason Merrill <jason@redhat.com>
5527
5528 * decl.c (begin_constructor_body, begin_destructor_body): New fns.
5529 (begin_function_body): Call them and keep_next_level.
5530 * init.c (emit_base_init): Call keep_next_level.
5531 * semantics.c (setup_vtbl_ptr): Lose.
5532 * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
5533 (vtbls_set_up_p): Lose.
5534 * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
5535 * method.c (do_build_copy_constructor): Likewise.
5536 (synthesize_method): Call finish_mem_initializers.
5537 * parse.y (nodecls): Likewise.
5538
5539 * error.c (dump_type_suffix): Print the exception specs before
5540 recursing.
5541 (dump_function_decl): Here, too.
5542
5543 * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
5544
55452002-01-10 Ira Ruben <ira@apple.com>
5546
5547 PR c++/907
5548 * decl.c (start_method): Handle attrlist.
5549
55502002-01-10 Jakub Jelinek <jakub@redhat.com>
5551
5552 * decl2.c (max_tinst_depth): Increase default limit to 500.
5553
55542002-01-10 Graham Stott <grahams@redhat.com>
5555
5556 * spew.c (YYCHAR): Uppercase macro parameter and add
5557 parenthesis.
5558 (YYCODE): Likewise.
5559 (NAME): Uppercase macro parameter.
5560
55612002-01-09 Graham Stott <grahams@redhat.com>
5562
5563 * decl.h (grokdeclarator): Wrap long line.
5564
5565 * semantics.c (FINISH_COND): Uppercase macro paramaters and
5566 add parenthesis.
5567
55682002-01-08 Graham Stott <grahams@redhat.com>
5569
5570 * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
5571 (PALLOC): Uppercase macro parameter and whitespace.
5572 (SALLOC): Uppercase macro parameter.
5573 (SFREE): Uppercase macros parameter, add parenthese and
5574 whitespace.
5575 (STREQL): Uppercase macro parameter and whitespace.
5576 (STRNEQ): Likewise.
5577 (STRLSS): Likewise.
5578 (STRLEQ): Likewise.
5579 (STRGTR): Likewise.
5580 (STRGEQ): Likewise.
5581
5582 * call.c (convert_like): Add parenthesis and wrap.
5583 (convert_like_with_context): Likewise.
5584 (ICS_RANK): Whitespace.
5585 (NEED_TEMPORARY_P): Remove parenthesis.
5586
5587 * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
5588 whitespace.
5589 (VTT_MARKED_BINFO_P): Likewise.
5590
5591 * decl.c (BINDING_LEVEL): Add parenthesis.
5592 (DEF_OPERATOR): Likewise.
5593
5594 * mangle.c (MANGLE_TRACE): Add parenthesis.
5595 (MANGLE_TRACE_TREE): Likewise.
5596 (write_signed_number): Likewise.
5597 (write_unsigned_number): Likewise.
5598
5599 * pt.c (ccat): Uppercase macro parameter.
5600 (cat): Likewise
5601
5602 * search.c (SET_BINFO_ACCESS): Add parenthesis.
5603
56042002-01-07 Jason Merrill <jason@redhat.com>
5605
5606 * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
5607 to pedwarn.
5608
5609 PR c++/3536
5610 * method.c (make_thunk): If !flag_weak, give the thunk the
5611 function's linkage.
5612 (use_thunk): Here, too.
5613
56142002-01-07 Graham Stott <grahams@redhat.com>
5615
5616 * error.c: Update copyright date.
5617 (print_scope_operator): Add parenthesis.
5618 (print_left_paren): Likewise.
5619 (print_right_paren): Likewise.
5620 (print_left_bracket): Likewise.
5621 (print_right_bracket): Likewise.
5622 (print_template_argument_list_start): Likewise.
5623 (print_template_argument_list_end): Likewise.
5624 (print_non_consecutive_character): Likewise.
5625 (print_tree_identifier): Likewise.
5626 (print_identifier): Likewise.
5627 (NEXT_CODE): Uppercase macro parameter.
5628 (ident_fndecl): Delete unused.
5629 (GLOBAL_THING): Likewise.
5630
56312002-01-06 Graham Stott <grahams@redhat.com>
5632
5633 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
5634 (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
5635 (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
5636 (RECORD_OR_UNION_TYPE_CHECK): Likewise.
5637 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
5638 (C_IS_RESERVED_WORD): Uppercase macro parameter.
5639 (C_RID_YYCODE) Likewise.
5640 (ptrmem_cst): Use rtx.
5641 (LOCAL_BINDING_P): Add whitespace.
5642 (INHERITED_VALUE_BINDING_P): Likewise.
5643 (BINDING_SCOPE): Wrap long line.
5644 (BINDING_HAS_LEVEL_P): Remove parenthesis.
5645 (BINDING_VALUE): Wrap long line.
5646 (BINDING_TYPE): Whitespace.
5647 (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
5648 (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
5649 (IDENTIFIER_NAMESPACE_VALUE): Likewise.
5650 (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
5651 (same_type_p): Uppercase macro parameters.
5652 (same_type_ignoring_top_level_qualifiers_p): Likewise.
5653 (OVL_FUNCTION): Wrap long line.
5654 (OVL_CHAIN): Whitespace.
5655 (OVL_CURRENT): Add parenthesis and whitespace.
5656 (OVL_NEXT): Whitespace.
5657 (OVL_USED): Likewise.
5658 (IDENTIFIER_TYPE_VALUE): Likewise.
5659 (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
5660 (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
5661 (LANG_ID_FIELD): Whitespace.
5662 (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
5663 (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
5664 (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
5665 (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
5666 (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
5667 (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
5668 (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
5669 (IDENTIFIER_VIRTUAL_P): Likewise.
5670 (IDENTIFIER_OPNAME_P): Likewise.
5671 (IDENTIFIER_TYPENAME_P): Remove parenthesis.
5672 (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
5673 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5674 (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
5675 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
5676 (IS_AGGR_TYPE): Uppercase macro parameter.
5677 (CLASS_TYPE_P): Likewise.
5678 (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
5679 (IS_AGGR_TYPE_2): Whitespace.
5680 (TAGGED_TYPE_P): Uppercase macro parameter.
5681 (TYPE_BUILT_IN): Whitespace.
5682 (TYPE_FOR_JAVA): Likewise.
5683 (FUNCTION_ARG_CHAIN): Remove parenthesis.
5684 (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
5685 (FUNCTION_FIRST_USER_PARAM): Likewise.
5686 (PROMOTES_TO_AGGR_TYPE): Whitespace.
5687 (DERIVED_FROM_P): Add parenthesis and wrap.
5688 (UNIQUELY_DERIVED_FROM_P): Likewise.
5689 (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
5690 (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
5691 (CLASSTYPE_USE_TEMPLATE): Whitespace.
5692 (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
5693 (TYPE_GETS_DELETE): Add parenthesis.
5694 (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
5695 (TYPE_HAS_ASSIGN_REF): Likewise,
5696 (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
5697 (TYPE_HAS_INIT_REF): Likewise.
5698 (TYPE_HAS_CONST_INIT_REF): Likewise.
5699 (TYPE_BEING_DEFINED): Likewise.
5700 (TYPE_LANG_SPECIFIC): Likewise.
5701 (CLASSTYPE_RTTI): Likewise.
5702 (TYPE_OVERLOADS_CALL_EXPR): Likewise.
5703 (TYPE_OVERLOADS_ARRAY_REF): Likewise.
5704 (TYPE_OVERLOADS_ARROW): Likewise.
5705 (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
5706 (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
5707 (CLASSTYPE_METHOD_VEC): Likewise.
5708 (CLASSTYPE_MARKED_N): Likewise.
5709 (CLASSTYPE_MARKED): Likewise.
5710 (CLASSTYPE_MARKED2): Likewise.
5711 (CLASSTYPE_MARKED3): Likewise.
5712 (CLASSTYPE_MARKED4): Likewise.
5713 (CLASSTYPE_MARKED5): Likewise.
5714 (CLASSTYPE_MARKED6): Likewise.
5715 (SET_CLASSTYPE_MARKED): Whitespace.
5716 (CLEAR_CLASSTYPE_MARKED): Likewise.
5717 (SET_CLASSTYPE_MARKED2): Likewise.
5718 (CLEAR_CLASSTYPE_MARKED2): Likewise.
5719 (SET_CLASSTYPE_MARKED3): Likewise.
5720 (CLEAR_CLASSTYPE_MARKED3): Likewise.
5721 (SET_CLASSTYPE_MARKED4): Likewise.
5722 (CLEAR_CLASSTYPE_MARKED4): Likewise.
5723 (SET_CLASSTYPE_MARKED5): Likewise.
5724 (CLEAR_CLASSTYPE_MARKED5): Likewise.
5725 (SET_CLASSTYPE_MARKED6): Likewise.
5726 (CLEAR_CLASSTYPE_MARKED6): Likewise.
5727 (CLASSTYPE_TAGS): Likewise.
5728 (CLASSTYPE_VSIZE): Likewise.
5729 (CLASSTYPE_VBASECLASSES): Likewise.
5730 (CANONICAL_BINFO): Add parenthesis.
5731 (CLASSTYPE_SIZE(NODE): Likewise.
5732 (CLASSTYPE_SIZE_UNIT): Likewise.
5733 (CLASSTYPE_ALIGN(NODE): Likewise.
5734 (CLASSTYPE_USER_ALIGN): Likewise.
5735 (TYPE_JAVA_INTERFACE): Likewise.
5736 (CLASSTYPE_PURE_VIRTUALS): Likewise.
5737 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
5738 (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
5739 (CLASSTYPE_HAS_MUTABLE): Likewise.
5740 (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
5741 (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
5742 (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
5743 (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
5744 (CLASSTYPE_INTERFACE_ONLY): Likewise.
5745 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
5746 (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
5747 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
5748 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
5749 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
5750 (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
5751 (BINFO_UNSHARED_MARKED): Whitespace.
5752 (BINFO_MARKED): Whitespace and wrap.
5753 (SET_BINFO_MARKED): Likewise.
5754 (CLEAR_BINFO_MARKED): Likewise.
5755 (BINFO_VTABLE_PATH_MARKED): Likewise.
5756 (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
5757 (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
5758 (BINFO_SUBVTT_INDEX): Remove parenthesis.
5759 (BINFO_VPTR_INDEX): Likewise.
5760 (BINFO_PRIMARY_BASE_OF): Likewise,
5761 (CLASSTYPE_VFIELDS): Whitespace.
5762 (VF_DERIVED_VALUE): Wrap long line.
5763 (NAMESPACE_LEVEL): Whitespace.
5764 (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
5765 (DEFARG_POINTER): Whitespace.
5766 (DECL_NEEDED_P): Remove parenthesis.
5767 (DECL_LANGUAGE): Whitespace.
5768 (SET_DECL_LANGUAGE): Add parenthesis.
5769 (DECL_CONSTRUCTOR_P): Whitespace and wrap.
5770 (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
5771 (DECL_IN_AGGR_P): Whitespace.
5772 (DECL_FRIEND_P): Likewise.
5773 (DECL_BEFRIENDING_CLASSES): Likewise.
5774 (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
5775 (DECL_NONCONVERTING_P): Whitespace.
5776 (DECL_PURE_VIRTUAL_P): Likewise.
5777 (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
5778 (DECL_PENDING_INLINE_INFO): Whitespace.
5779 (DECL_SORTED_FIELDS): Likewise.
5780 (DECL_DEFERRED_FN): Likewise.
5781 (DECL_TEMPLATE_INFO): Likewise.
5782 (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
5783 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
5784 (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
5785 (TMPL_ARGS_LEVEL): Likewise.
5786 (SET_TMPL_ARGS_LEVEL): Likewise.
5787 (INNERMOST_TEMPLATE_PARMS): Whitespace.
5788 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
5789 (INTEGRAL_CODE_P(CODE): Add parenthesis.
5790 (CP_INTEGRAL_TYPE_P): Remove parenthesis.
5791 (TYPE_HAS_CONSTRUCTOR): Whitespace.
5792 (TREE_HAS_CONSTRUCTOR): Likewise.
5793 (TYPE_HAS_DESTRUCTOR): Likewise.
5794 (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
5795 (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
5796 (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
5797 (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
5798 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
5799 (TYPE_PTRMEMFUNC_P): Likewise.
5800 (TYPE_PTRMEMFUNC_FLAG): Likewise.
5801 (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
5802 (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
5803 (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
5804 (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
5805 (DECL_ACCESS): Whitespace.
5806 (DECL_GLOBAL_CTOR_P): Remove parenthesis.
5807 (DECL_GLOBAL_DTOR_P): Likewise.
5808 (GLOBAL_INIT_PRIORITY): Likewise.
5809 (DECL_TEMPLATE_PARMS): Likewise.
5810 (DECL_TEMPLATE_RESULT): Likewise.
5811 (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
5812 (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
5813 (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
5814 (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
5815 (PRIMARY_TEMPLATE_P): Add parenthesis.
5816 (DECL_USE_TEMPLATE): Whitespace.
5817 (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
5818 (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
5819 (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
5820 (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
5821 (CALL_DECLARATOR_PARMS): Remove parenthesis.
5822 (CALL_DECLARATOR_QUALS): Likewise.
5823 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
5824 (TEMP_NAME_P): Wrap.
5825 (VFIELD_NAME_P): Likewise.
5826 (B_SET): Uppercase macro parameters and add parenthesis.
5827 (B_CLR): Likewise.
5828 (B_TST): Likewise.
5829 (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
5830 (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
5831 (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
5832 (same_or_base_type_p): Likewise.
5833 (cp_deprecated): Likewise.
5834
58352002-01-05 Richard Henderson <rth@redhat.com>
5836
5837 * semantics.c (expand_body): Revert last change.
5838
58392002-01-04 Jason Merrill <jason@redhat.com>
5840
5841 PR c++/4122
5842 * class.c (update_vtable_entry_for_fn): Set delta to zero for a
5843 lost primary.
5844
5845 * class.c (build_vtbl_initializer): Check for a lost primary
5846 before calculating the vtable entry to throw away.
5847
58482002-01-02 Jason Merrill <jason@redhat.com>
5849
5850 * semantics.c (expand_body): Call outlining_inline_function when
5851 emitting an inline function out of line.
5852
58532002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5854
5855 PR c++/5116, c++/764 reversion
5856 * call.c (build_new_op): Revert the instantiations. They are
5857 incorrect.
5858
58592002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5860
5861 PR c++/5089
5862 * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
5863
58642002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5865
5866 PR c++/3716
5867 * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
5868 (tsubst, case POINTER_TYPE): Handle pmfs here.
5869 (tsubst, case OFFSET_TYPE): Check it is not an offset to
5870 reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
5871
58722002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5873
5874 PR c++/35
5875 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
5876 (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
5877 * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
5878 PARM_DECL.
5879 (tsubst_template_parms): Break up loop statements.
5880 (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
5881 parm PARM_DECLs don't get promoted.
5882
58832002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5884
5885 PR c++/5123
5886 * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
5887 (build_x_function_call): Cope with a COMPONENT_REF containing a
5888 TEMPLATE_ID_EXPR.
5889
58902002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5891
5892 PR c++/5213
5893 * pt.c (convert_template_argument): Be more careful determining
5894 when RECORD_TYPE templates are or are not templates.
5895
58962002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5897
5898 PR c++/775
5899 * cp-tree.h (handle_class_head): Adjust prototype.
5900 * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
5901 parameters. Use for all class heads.
5902 * parse.y (named_class_head_sans_basetype, named_class_head,
5903 named_complex_class_head_sans_basetype,
5904 named_class_head_sans_basetype_defn,
5905 unnamed_class_head): Remove.
5906 (class_head, class_head_apparent_template): Recognize class heads
5907 (class_head_decl, class_head_defn): New reductions. Process class
5908 heads.
5909 (structsp): Adjust class definition and class declaration
5910 reductions.
5911 (maybe_base_class_list): Give diagnostic on empty list.
5912
59132002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5914
5915 PR c++/4379
5916 * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
5917 single non-static member.
5918 (unary_complex_lvalue): If it cannot be a pointer to member, don't
5919 make it so. Check it is not pointer to reference.
5920
59212002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5922
5923 PR c++/5132
5924 * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
5925 are processing a template decl.
5926
59272002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5928
5929 PR c++/5116, c++/764
5930 * call.c (build_new_op): Make sure template class operands are
5931 instantiated. Simplify arglist construction.
5932
59332001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5934
5935 * call.c (build_user_type_conversion_1): Use my_friendly_assert
5936 rather than if ... abort.
5937 * cvt.c (convert_to_reference): Likewise.
5938 * semantics.c (setup_vtbl_ptr): Likewise.
5939 * pt.c (lookup_template_class): Comment typo.
5940
59412001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5942
5943 PR c++/5125
5944 * pt.c (push_template_decl_real): Make sure DECL has
5945 DECL_LANG_SPECIFIC.
5946
59472001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5948
5949 PR c++/335
5950 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
5951 for non-reference fields.
5952 * typeck.c (require_complete_type): Use resolve_offset_ref).
5953
59542001-12-26 Nathan Sidwell <nathan@codesourcery.com>
5955
5956 PR c++/196
5957 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
5958
59592001-12-24 Nathan Sidwell <nathan@codesourcery.com>
5960
5961 PR c++/160
5962 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
5963 up. Don't stabilize_references when initializing a reference.
5964
59652001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5966
5967 * decl2.c (lang_f_options): Const-ify.
5968
59692001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
5970
5971 * config-lang.in (diff_excludes): Remove.
5972
59732001-12-19 Nathan Sidwell <nathan@codesourcery.com>
5974
5975 PR c++/90
5976 * typeck.c (build_function_call_real): Use original function
5977 expression for errors.
5978
59792001-12-18 Jason Merrill <jason@redhat.com>
5980
5981 PR c++/3242
5982 * class.c (add_method): Do compare 'this' quals when trying to match a
5983 used function. Don't defer to another used function.
5984
59852001-12-18 Nathan Sidwell <nathan@codesourcery.com>
5986
5987 * pt.c (instantiate_clone): Remove, fold into ...
5988 (instantiate_template): ... here. Simplify by removing mutual
5989 recursion.
5990 * typeck2.c (build_m_component_ref): Don't cv qualify the function
5991 pointed to by a pointer to function.
5992 * class.c (delete_duplicate_fields_1): Typo.
5993
59942001-12-18 Jason Merrill <jason@redhat.com>
5995
5996 C++ ABI change: destroy value arguments in caller.
5997 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
5998 create an extra binding level for the parameters.
5999 * decl.c (store_parm_decls): Don't do parameter cleanups.
6000
60012001-12-18 Nathan Sidwell <nathan@codesourcery.com>
6002
6003 * call.c (build_new_method_call): Use '%#V'.
6004 * error.c (cv_to_string): Use V parameter to determine padding.
6005
60062001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
6007
6008 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
6009 spellings in messages.
6010
60112001-12-17 Zack Weinberg <zack@codesourcery.com>
6012
6013 * cp-tree.h: Delete #defines for cp_error, cp_warning,
6014 cp_pedwarn, and cp_compiler_error.
6015 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
6016 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
6017 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
6018 typeck2.c: Change calls to the above macros to use their
6019 language-independent equivalents: error, warning, pedwarn, and
6020 internal_error respectively.
6021
60222001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
6023
6024 * decl2.c (finish_file): Remove back_end_hook.
6025
60262001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
6027
6028 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
6029 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
6030 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
6031
60322001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
6033
6034 * lang-options.h: Use American spelling in messages.
6035
60362001-12-13 Jason Merrill <jason@redhat.com>
6037
6038 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
6039
6040 Use cleanups to run base and member destructors.
6041 * init.c (push_base_cleanups): New function, split out from...
6042 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
6043 * decl.c (finish_destructor_body): Move vbase destruction code to
6044 push_base_cleanups.
6045 (begin_function_body, finish_function_body): New fns.
6046 (finish_function): Move [cd]tor handling and call_poplevel to
6047 finish_function_body.
6048 (pushdecl): Skip the new level.
6049 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
6050 (setup_vtbl_ptr): Call push_base_cleanups.
6051 * method.c (synthesize_method): Call {begin,end}_function_body.
6052 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
6053 * cp-tree.h: Declare new fns.
6054 * parse.y (function_body, .begin_function_body): New nonterminals.
6055 (fndef, pending_inline, function_try_block): Use function_body.
6056 (ctor_initializer_opt, function_try_block): No longer has a value.
6057 (base_init): Remove .set_base_init token.
6058 (.set_base_init, compstmt_or_error): Remove.
6059 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
6060
6061 * optimize.c (maybe_clone_body): Fix parameter updating.
6062
60632001-12-12 Jason Merrill <jason@redhat.com>
6064
6065 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
6066 * semantics.c (genrtl_start_function): Don't pass
6067 parms_have_cleanups or push an extra binding level.
6068 (genrtl_finish_function): Lose cleanup_label cruft.
6069
6070 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
6071 (ctor_label): Remove.
6072 * semantics.c (finish_return_stmt): Lose ctor_label support.
6073 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
6074 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
6075 dtor_label.
6076
6077 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
6078 check for [cd]tors.
6079 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
6080
6081 * decl.c (finish_function): Check VMS_TARGET, not VMS.
6082
6083 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
6084 (end_cleanup_fn): And poplevel.
6085
6086 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
6087 if we're in a template.
6088
60892001-12-12 Jakub Jelinek <jakub@redhat.com>
6090
6091 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
6092 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
6093 THIS_NAME_P): Delete.
6094 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
6095 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
6096 with internal naming scheme.
6097 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
6098
60992001-12-12 Nathan Sidwell <nathan@codesourcery.com>
6100
6101 * decl.c (grokdeclarator): Deprecated implicit typename use.
6102
61032001-12-11 Nathan Sidwell <nathan@codesourcery.com>
6104
6105 PR g++/51
6106 * parse.y (frob_specs): Indicate it is a language linkage which
6107 contained the extern.
6108 * decl.c (grokdeclarator): Allow extern language linkage with
6109 other specifiers.
6110
61112001-12-10 Nathan Sidwell <nathan@codesourcery.com>
6112
6113 PR g++/72
6114 * decl.c (add_binding): Don't reject duplicate typedefs involving
6115 template parameters.
6116
61172001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
6118
6119 * parse.y, semantics.c: Similarly.
6120
61212001-12-09 Nathan Sidwell <nathan@codesourcery.com>
6122
6123 PR g++/87
6124 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
6125 (copy_args_p): Rename to ...
6126 (copy_fn_p): ... here.
6127 (grok_special_member_properties): New function.
6128 (grok_op_properties): Lose VIRTUALP parameter.
6129 (copy_assignment_arg_p): Remove.
6130 * call.c (build_over_call): Use copy_fn_p.
6131 * decl.c (grokfndecl): Reformat. Adjust call to
6132 grok_op_properties.
6133 (copy_args_p): Rename to ...
6134 (copy_fn_p): ... here. Reject template functions. Check for pass
6135 by value.
6136 (grok_special_member_properties): Remember special functions.
6137 (grok_ctor_properties): Don't remember them here, just check.
6138 (grok_op_properties): Likewise.
6139 (start_method): Call grok_special_member_properties.
6140 * decl2.c (grokfield): Likewise.
6141 (copy_assignment_arg_p): Remove.
6142 (grok_function_init): Don't remember abstract assignment here.
6143 * pt.c (instantiate_class_template): Call
6144 grok_special_member_properties.
6145 (tsubst_decl): Adjust grok_op_properties call.
6146
61472001-12-08 Aldy Hernandez <aldyh@redhat.com>
6148
6149 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
6150 RID_TYPES_COMPATIBLE_P.
6151
61522001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6153
6154 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
6155 call to build_aggr_init.
6156 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
6157
61582001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
6159
6160 * parse.y: Replace uses of the string non-terminal with STRING.
6161 Don't perform string concatentaion here.
6162 (string): Remove non-terminal.
6163 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
6164
61652001-12-05 Jason Merrill <jason@redhat.com>
6166
6167 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
6168 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
6169 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
6170 * pt.c (push_tinst_level): No longer static.
6171 * cp-tree.h: Declare them.
6172
6173 * init.c (resolve_offset_ref): Don't check access for the base
6174 conversion to access a FIELD_DECL.
6175
6176 * cp-tree.h (TYPE_REFFN_P): New macro.
6177 * decl.c (bad_specifiers): Check it, too.
6178
6179 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
6180 on the __*_type_info type if we haven't seen a definition.
6181
61822001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
6183
6184 * decl.c: Include c-common.h.
6185 (shadow_warning): Move to c-common.c.
6186
6187Wed Dec 5 17:00:49 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6188
6189 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
6190
61912001-12-04 Nathan Sidwell <nathan@codesourcery.com>
6192
6193 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
6194
61952001-12-04 Nathan Sidwell <nathan@codesourcery.com>
6196
6197 PR g++/164
6198 * init.c (sort_base_init): Allow binfos to be directly specified.
6199 * method.c (do_build_copy_constructor): Explicitly convert to the
6200 base instance.
6201 (do_build_assign_ref): Likewise.
6202
62032001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
6204
6205 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
6206 declaration and initialization.
6207
62082001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
6209
6210 * typeck2.c: Remove leading capital from diagnostic messages, as
6211 per GNU coding standards.
6212
62132001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
6214
6215 PR c++/3394
6216 * decl.c (xref_basetypes): Handle attributes between
6217 'class' and name.
6218
62192001-12-03 Nathan Sidwell <nathan@codesourcery.com>
6220
6221 PR g++/3381
6222 * parse.y (named_complex_class_head_sans_basetype): Add new
6223 reduction.
6224 * Make-lang.in (parse.c): Adjust expected conflict count.
6225
62262001-12-03 Jason Merrill <jason@redhat.com>
6227
6228 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
6229 immediate binfos for our virtual bases.
6230
62312001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
6232
6233 * call.c (build_java_interface_fn_ref): Similarly.
6234 * except.c (is_admissible_throw_operand): Similarly.
6235 * init.c (build_java_class_ref): Similarly.
6236 * xref.c (open_xref_file): Similarly.
6237
62382001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
6239
6240 * class.c (finish_struct): Remove trailing periods from messages.
6241 * decl.c (check_tag_decl): Similarly.
6242 * lex.c (cxx_set_yydebug): Similarly.
6243 * typeck2.c (friendly_abort): Similarly.
6244
62452001-11-29 Mark Mitchell <mark@codesourcery.com>
6246
6247 PR c++/3048
6248 * cp-tree.h (ovl_member): Remove.
6249 * decl2.c (merge_functions): Handle extern "C" functions
6250 specially.
6251 * tree.c (ovl_member): Remove.
6252
62532001-11-29 Mark Mitchell <mark@codesourcery.com>
6254
6255 PR c++/4842
6256 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
6257 FUNCTION_DECL, as input.
6258 (mark_overriders): Remove.
6259 (warn_hidden): Rework for the new ABI.
6260
62612001-11-29 Mark Mitchell <mark@codesourcery.com>
6262
6263 PR c++/3471
6264 * call.c (convert_like_real): Do not build additional temporaries
6265 for rvalues of class type.
6266
62672001-11-28 Nathan Sidwell <nathan@codesourcery.com>
6268
6269 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
6270 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
6271 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
6272 (DERIVED_FROM_P): Likewise.
6273 (enum base_access): Renumber, add ba_quiet bit mask.
6274 (get_binfo): Remove.
6275 (get_base_distance): Remove.
6276 (binfo_value): Remove.
6277 (ACCESSIBLY_DERIVED_FROM_P): Remove.
6278 * call.c (standard_conversion): Use lookup_base.
6279 * class.c (strictly_overrides): Likewise.
6280 (layout_virtual_bases): Likewise.
6281 (warn_about_ambiguous_direct_bases): Likewise.
6282 (is_base_of_enclosing_class): Likewise.
6283 (add_vcall_offset_vtbl_entries_1): Likewise.
6284 * cvt.c (build_up_reference): Adjust comment.
6285 * init.c (build_member_call): Reformat.
6286 * search.c (get_binfo): Remove.
6287 (get_base_distance_recursive): Remove.
6288 (get_base_distance): Remove.
6289 (lookup_base_r): Tweak.
6290 (lookup_base): Add ba_quiet control. Complete the types here.
6291 (covariant_return_p): Use lookup_base.
6292 * tree.c (binfo_value): Remove.
6293 (maybe_dummy_object): Use lookup_base.
6294 * typeck.c (build_static_cast): Use lookup_base.
6295 (get_delta_difference): Likewise.
6296 * typeck2.c (binfo_or_else): Use lookup_base.
6297 (build_scoped_ref): Add back error_mark_check.
6298 (build_m_component_ref): Use lookup_base.
6299
63002001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
6301
6302 * Make-lang.in (c++.generated-manpages): New dummy target.
6303
6304Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6305
6306 * Make-lang.in (cp-lang.o): Depends on c-common.h.
6307 * cp-lang.c (c-common.h): Include.
6308 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
6309 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
6310 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
6311
63122001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
6313
6314 * decl2.c (c_language): Move to c-common.c.
6315 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
6316 functions.
6317 (cxx_init): Update.
6318
63192001-11-26 Jason Merrill <jason@redhat.com>
6320
6321 * call.c (joust): Remove COND_EXPR hack.
6322
63232001-11-25 Aldy Hernandez <aldyh@redhat.com>
6324
6325 * search.c (lookup_base_r): Declare bk in variable declaration
6326 space.
6327
63282001-11-25 Nathan Sidwell <nathan@codesourcery.com>
6329
6330 PR g++/3145
6331 * class.c (build_vbase_pointer): Remove.
6332 (build_vbase_path): Remove.
6333 (build_base_path): New function.
6334 * cp-tree.h (base_access, base_kind): New enumerations.
6335 (build_base_path): Declare.
6336 (convert_pointer_to_real): Remove.
6337 (convert_pointer_to): Remove.
6338 (lookup_base): Declare.
6339 (convert_pointer_to_vbase): Remove.
6340 * call.c (build_scoped_method_call): Use lookup_base &
6341 build_base_path instead of convert_pointer_to_real,
6342 get_base_distance & get_binfo.
6343 (build_over_call): Likewise.
6344 * cvt.c (cp_convert_to_pointer): Likewise.
6345 (convert_to_pointer_force): Likewise.
6346 (build_up_reference): Likewise.
6347 (convert_pointer_to_real): Remove.
6348 (convert_pointer_to): Remove.
6349 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
6350 instead of convert_pointer_to_vbase & build_vbase_path.
6351 (emit_base_init): Use build_base_path instead of
6352 convert_pointer_to_real.
6353 (expand_virtual_init): Lose unrequired conversions.
6354 (resolve_offset_ref): Use lookup_base and build_base_path
6355 instead of convert_pointer_to.
6356 * rtti.c (build_dynamic_cast_1): Use lookup_base &
6357 build_base_path instead of get_base_distance & build_vbase_path.
6358 * search.c (get_vbase_1): Remove.
6359 (get_vbase): Remove.
6360 (convert_pointer_to_vbase): Remove.
6361 (lookup_base_r): New function.
6362 (lookup_base): New function.
6363 * typeck.c (require_complete_type): Use lookup_base &
6364 build_base_path instead of convert_pointer_to.
6365 (build_component_ref): Likewise.
6366 (build_x_function_call): Likewise.
6367 (get_member_function_from_ptrfunc): Likewise.
6368 (build_component_addr): Likewise.
6369 * typeck2.c (build_scoped_ref): Likewise.
6370
63712001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6372
6373 * cp-tree.h (CP_TYPE_QUALS): Removed.
6374 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
6375 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
6376 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
6377 * dump.c (cp_dump_tree): Use void* dump_info argument to match
6378 lang-hooks prototype.
6379 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
6380 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
6381 CP_TYPE_QUALS changed to cp_type_quals.
6382 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
6383 (CXX_C_OBJS): Remove c-dump.o.
6384
63852001-11-21 Mark Mitchell <mark@codesourcery.com>
6386
6387 PR c++/3637
6388 * pt.c (lookup_template_class): Ensure that all specializations
6389 are registered on the list corresponding to the most general
6390 template.
6391
63922001-11-20 Mark Mitchell <mark@codesourcery.com>
6393
6394 * call.c (non_reference): Add documentation.
6395 (convert_class_to_reference): Do not strip reference types
6396 from conversion operators.
6397 (maybe_handle_ref_bind): Simplify.
6398 (compare_ics): Correct handling of references.
6399
64002001-11-19 John Wilkinson <johnw@research.att.com>
6401
6402 * dump.c (dump_op): New function.
6403 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
6404 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
6405 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
6406
64072001-11-19 Mark Mitchell <mark@codesourcery.com>
6408
6409 PR4629
6410 * semantics.c (finish_sizeof): Make sure that expression created
6411 while processing a template do not have a type.
6412 (finish_alignof): Likewise.
6413 * typeck.c (c_sizeof): Likewise.
6414 (expr_sizeof): Likewise.
6415
64162001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
6417
6418 * lex.c (cxx_finish): Call c_common_finish.
6419 (finish_parse): Remove.
6420
64212001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6422
6423 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
6424 when displaying error message about missing array bounds.
6425
64262001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6427
6428 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
6429 CONST_CAST_EXPR.
6430 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
6431
64322001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
6433
6434 * cp-tree.h (print_class_statistics): Restore.
6435
64362001-11-15 Jason Merrill <jason@redhat.com>
6437
6438 * method.c (use_thunk): Don't emit debugging information for thunks.
6439
6440 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
6441 * decl.c (make_typename_type): Handle getting a class template.
6442 * search.c (lookup_field_r): A class template is good enough for
6443 want_type.
6444
6445 * call.c (convert_like_real): Only use cp_convert for the bad part.
6446 (standard_conversion): Also allow bad int->enum.
6447 * typeck.c (ptr_reasonably_similar): Also allow functions to
6448 interconvert. Pointers to same-size integers are reasonably
6449 similar.
6450
6451 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
6452 give it void type.
6453
64542001-11-15 Nathan Sidwell <nathan@codesourcery.com>
6455
6456 PR g++/3154
6457 * init.c (sort_base_init): Remove unreachable code.
6458 (expand_member_init): Adjust comment to reflect reality. Simplify
6459 and remove unreachable code.
6460
64612001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
6462
6463 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
6464 (cxx_init): Update prototype.
6465 * decl.c (init_decl_processing): Rename. Move null node init
6466 to its creation time.
6467 * lex.c (cxx_init_options): Update.
6468 (cxx_init): Combine with old init_parse; also call
6469 cxx_init_decl_processing.
6470
64712001-11-14 Richard Sandiford <rsandifo@redhat.com>
6472
6473 * decl.c (check_initializer): Try to complete the type of an
6474 array element before checking whether it's complete. Don't
6475 complain about arrays with complete element types but an
6476 unknown size.
6477 (cp_finish_decl): Build the hierarchical constructor before
6478 calling maybe_deduce_size_from_array_init.
6479
64802001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
6481
6482 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
6483
64842001-11-13 Nathan Sidwell <nathan@codesourcery.com>
6485
6486 PR g++/4206
6487 * parse.y (already_scoped_stmt): Remove.
6488 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
6489
64902001-11-12 H.J. Lu <hjl@gnu.org>
6491
6492 * cvt.c (ocp_convert): Don't warn the address of a weak
6493 function is always `true'.
6494
64952001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
6496
6497 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
6498 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
6499 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
6500 * cp-tree.h (print_class_statistics): Remove.
6501 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
6502 cxx_print_identifier, cxx_set_yydebug): New.
6503 * lex.c (set_yydebug): Rename c_set_yydebug.
6504 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
6505 lang_print_xnode): Rename.
6506 * tree.c (print_lang_statistics): Rename.
6507
65082001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6509
6510 * class.c (dump_array): Fix format specifier warning.
6511
65122001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
6513
6514 * cp-lang.c (LANG_HOOKS_NAME): Override.
6515 (struct lang_hooks): Constify.
6516 * lex.c (cxx_init_options): Update.
6517 (lang_identify): Remove.
6518 * parse.y (language_string): Remove.
6519
65202001-11-08 Andreas Franck <afranck@gmx.de>
6521
6522 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
6523 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
6524 suggested by autoconf.
6525 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
6526 (c++.install-common): Use the transformed target alias names.
6527
65282001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
6529
6530 * Make-lang.in: Update.
6531 * cp-lang.c: Include langhooks-def.h.
6532
65332001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6534
6535 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
6536
65372001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6538
6539 * lex.c (copy_lang_type): Add static prototype.
6540
65412001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6542
6543 * pt.c (unify): Handle SCOPE_REF.
6544
65452001-11-01 Jakub Jelinek <jakub@redhat.com>
6546
6547 * tree.c (cp_copy_res_decl_for_inlining): Adjust
6548 DECL_ABSTRACT_ORIGIN for the return variable.
6549
65502001-10-31 Zack Weinberg <zack@codesourcery.com>
6551
6552 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
6553
65542001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
6555
6556 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
6557 semantics.c, spew.c: Fix spelling errors.
6558
65592001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6560
6561 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
6562
65632001-10-25 Zack Weinberg <zack@codesourcery.com>
6564
6565 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
6566 pop_everything.
6567
6568Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6569
6570 * cp-lang.c (cxx_get_alias_set): New function.
6571 Point LANG_HOOKS_GET_ALIAS_SET to it.
6572
65732001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6574
6575 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
6576 * cp-tree.h (make_unbound_class_template): Prototype new function.
6577 * decl.c (make_unbound_class_template): New function.
6578 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
6579 * error.c (dump_type): Likewise.
6580 * mangle.c (write_type): Likewise.
6581 * parse.y (template_parm): Likewise.
6582 (template_argument): Use make_unbound_class_template.
6583 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
6584 (tsubst): Likewise.
6585 (tsubst_copy): Likewise.
6586 (unify): Likewise.
6587 * tree.c (walk_tree): Likewise.
6588 * typeck.c (comptypes): Likewise.
6589
65902001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6591
6592 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
6593 extra calls into fewer ones.
6594
65952001-10-18 Alexandre Oliva <aoliva@redhat.com>
6596
6597 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
6598 Warn when merging inline with attribute noinline.
6599 (start_decl, start_function): Warn if inline and attribute
6600 noinline appear in the same declaration.
6601
66022001-10-16 H.J. Lu <hjl@gnu.org>
6603
6604 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
6605 for tree checking disabled.
6606
66072001-10-16 Hans-Peter Nilsson <hp@axis.com>
6608
6609 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
6610 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
6611
66122001-10-15 Richard Sandiford <rsandifo@redhat.com>
6613
6614 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
6615 (unify): Only handle MINUS_EXPR specially if the above flag is set
6616 and the subtracted constant is 1. Clear the flag on recursive calls.
6617 Set it when unifying the maximum value in an INTEGER_TYPE's range.
6618
66192001-10-15 Richard Sandiford <rsandifo@redhat.com>
6620
6621 * decl.c (bad_specifiers): Don't allow exception specifications
6622 on any typedefs.
6623
66242001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
6625
6626 * cp/lex.c (init_cp_pragma): Similarly.
6627
66282001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6629
6630 * pt.c (lookup_template_class): Build complete template arguments
6631 for BOUND_TEMPLATE_TEMPLATE_PARM.
6632
66332001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6634
6635 * cp-tree.h (TYPE_BINFO): Update comment.
6636 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
6637 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
6638 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
6639 (copy_type): Prototype new function.
6640 * lex.c (copy_lang_decl): Gather tree node statistics.
6641 (copy_lang_type): New function.
6642 (copy_type): Likewise.
6643 (cp_make_lang_type): Create lang_type for
6644 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
6645 and BOUND_TEMPLATE_TEMPLATE_PARM.
6646 * pt.c (tsubst): Use copy_type instead of copy_node.
6647 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
6648
66492001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6650
6651 * pt.c (determine_specialization): Ignore functions without
6652 DECL_TEMPLATE_INFO.
6653
66542001-10-12 Nathan Sidwell <nathan@codesourcery.com>
6655
6656 PR g++/4476
6657 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
6658
66592001-10-11 Jason Merrill <jason_merrill@redhat.com>
6660
6661 * typeck2.c (store_init_value): Don't re-digest a bracketed
6662 initializer.
6663
6664 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
6665 ANON_AGGR_TYPE_P.
6666
66672001-10-11 Richard Henderson <rth@redhat.com>
6668
6669 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
6670 of an asm statement.
6671 (build_vtbl_ref_1): Split out from build_vtbl_ref.
6672 (build_vfn_ref): Use it to handle vtable descriptors before
6673 calling build_vtable_entry_ref.
6674 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
6675
66762001-10-10 Richard Henderson <rth@redhat.com>
6677
6678 * parse.y (asm_operand): Allow named operands.
6679 * semantics.c (finish_asm_stmt): Tweek for changed location
6680 of the operand constraint.
6681
66822001-10-09 Jason Merrill <jason_merrill@redhat.com>
6683
6684 * call.c (standard_conversion): Add bad conversion between
6685 integers and pointers.
6686 (convert_like_real): Don't use convert_for_initialization for bad
6687 conversions; complain here and use cp_convert.
6688 (build_over_call): Don't handle bad conversions specially.
6689 (perform_implicit_conversion): Allow bad conversions.
6690 (can_convert_arg_bad): New fn.
6691 * cp-tree.h: Declare it.
6692 * typeck.c (convert_for_assignment): Use it.
6693 (ptr_reasonably_similar): Any target type is similar to void.
6694
66952001-10-08 Alexandre Oliva <aoliva@redhat.com>
6696
6697 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
6698 (cp/cp-lang.o): New rule.
6699 * cp-tree.h: Declare hooks.
6700 * tree.c: Make hooks non-static.
6701 (init_tree): Don't initialize hooks here.
6702 * lex.c: Likewise. Move definition of lang_hooks to...
6703 * cp-lang.c: ... new file.
6704
67052001-10-08 Richard Henderson <rth@redhat.com>
6706
6707 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
6708 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
6709
67102001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6711
6712 * class.c (build_vtable_entry_ref): Const-ify.
6713 * decl.c (predefined_identifier,
6714 initialize_predefined_identifiers): Likewise.
6715 * init.c (build_new_1): Likewise.
6716 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
6717 Likewise.
6718
67192001-10-05 Alexandre Oliva <aoliva@redhat.com>
6720
6721 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
6722 (INSNS_PER_STMT): Likewise.
6723 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
6724 (copy_body, initialize_inlined_parameters): Likewise.
6725 (declare_return_variable, inlinable_function_p): Likewise.
6726 (expand_call_inline, expand_calls_inline): Likewise.
6727 (optimize_inline_calls, clone_body): Likewise.
6728 * tree.c (walk_tree): Moved to ../tree-inline.c.
6729 (walk_tree_without_duplicates): Likewise.
6730 (copy_tree_r, remap_save_expr): Likewise.
6731
67322001-10-04 Alexandre Oliva <aoliva@redhat.com>
6733
6734 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
6735 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
6736 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
6737 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
6738 (flag_inline_trees): Moved declaration to ../tree-inline.h.
6739 (walk_tree): Moved declaration to ../tree-inline.h.
6740 (walk_tree_without_duplicates, copy_tree_r): Likewise.
6741 (remap_save_expr): Likewise.
6742 * decl.c: Include tree-inline.h.
6743 (lang_mark_tree): Don't mark inlined_fns.
6744 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
6745 * optimize.c: Include tree-inline.h.
6746 (optimize_inline_calls): Move declaration to ../tree.h, as
6747 non-static.
6748 (remap_decl): Use language-independent constructs and hooks.
6749 (remap_block, copy_body_r, declare_return_variable): Likewise.
6750 (inlinable_function_p): Likewise. Don't test for
6751 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
6752 no longer language-specific.
6753 (optimize_inline_calls): Likewise. Make it non-static. Moved
6754 call of dump_function to...
6755 (optimize_function): Here...
6756 (clone_body): New function, extracted from...
6757 (maybe_clone_body): ... here. Build decl_map locally and pass
6758 it on to clone_body.
6759 * pt.c, semantics.c: Include tree-inline.h.
6760 * tree.c: Likewise.
6761 (cp_walk_subtrees): New language-specific hook for tree inlining.
6762 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
6763 cp_is_overload_p, cp_auto_var_in_fn_p,
6764 cp_copy_res_decl_for_inlining): Likewise.
6765 (walk_tree): Move language-specific constructs into...
6766 (cp_walk_subtrees): this new function.
6767 (copy_tree_r): Use language-independent constructs and hooks.
6768 (init_tree): Initialize tree inlining hooks.
6769 (remap_save_expr): Adjust prototype so that the declaration
6770 does not require the definition of splay_tree.
6771
67722001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6773
6774 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
6775 to build the declaration instead of the declaration itself.
6776
67772001-10-02 Jason Merrill <jason_merrill@redhat.com>
6778
6779 * decl2.c (cxx_decode_option): Add 'else'.
6780
6781 * spew.c (end_input): No longer static.
6782 * cp-tree.h: Declare it.
6783 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
6784
67852001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6786
6787 * call.c (build_over_call), typeck.c (build_function_call_real):
6788 Pass type attributes to check_function_format rather than name or
6789 assembler name. Don't require there to be a name or assembler
6790 name to check formats.
6791
67922001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6793
6794 * decl.c (init_decl_processing): Don't call
6795 init_function_format_info. Initialize lang_attribute_table
6796 earlier.
6797 (builtin_function): Call decl_attributes.
6798 (insert_default_attributes): New.
6799
68002001-10-01 Jason Merrill <jason_merrill@redhat.com>
6801
6802 * decl.c (grokdeclarator): Copy array typedef handling from C
6803 frontend.
6804
6805 * decl.c (grokdeclarator): Copy too-large array handling from C
6806 frontend.
6807
68082001-09-29 Alexandre Oliva <aoliva@redhat.com>
6809
6810 * config-lang.in (target_libs): Added target-gperf, so that we
6811 don't try to build it if C++ is disabled.
6812
68132001-09-23 Zack Weinberg <zack@codesourcery.com>
6814
6815 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
6816 (cp/errfn.o): Delete rule.
6817 (cp/error.o): Depend on flags.h.
6818 * errfn.c: Delete file.
6819 * cp-tree.h: Declare warn_deprecated. Remove definitions of
6820 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
6821 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
6822 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
6823 internal_error respectively. Make cp_deprecated into a macro.
6824 Don't define cp_printer typedef or declare cp_printers.
6825 * error.c: Include flags.h.
6826 Delete: struct tree_formatting_info, print_function_argument_list,
6827 print_declaration, print_expression, print_function_declaration,
6828 print_function_parameter, print_type_id, print_cv_qualifier_seq,
6829 print_type_specifier_seq, print_simple_type_specifier,
6830 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
6831 print_parameter_declaration_clause, print_exception_specification,
6832 print_nested_name_specifier, and definition of cp_printers.
6833 (locate_error): New function.
6834 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
6835 rewritten in terms of locate_error and diagnostic.c.
6836 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
6837 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
6838 (init_error): Adjust to match.
6839
6840Sat Sep 22 09:15:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6841
6842 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
6843
68442001-09-21 Richard Henderson <rth@redhat.com>
6845
6846 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
6847 (build_vtbl_initializer): Likewise.
6848 (build_vfn_ref): New.
6849 * cp-tree.h: Declare it.
6850 * call.c (build_over_call): Use it.
6851 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
6852 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
6853
6854Fri Sep 21 08:16:19 2001 J"orn Rennecke <amylaar@redhat.com>
6855
6856 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
6857
68582001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
6859
6860 Table-driven attributes.
6861 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6862 * decl2.c (cplus_decl_attributes): Only take one attributes
6863 parameter.
6864 * cp-tree.c (cplus_decl_attributes): Update prototype.
6865 * class.c (finish_struct), decl.c (start_decl, start_function),
6866 decl2.c (grokfield), friend.c (do_friend), parse.y
6867 (parse_bitfield): Update calls to cplus_decl_attributes.
6868 * decl.c (grokdeclarator): Take a pointer to a single ordinary
6869 attribute list.
6870 * decl.h (grokdeclarator): Update prototype.
6871 * decl2.c (grokfield): Take a single ordinary attribute list.
6872 * friend.c (do_friend): Likewise.
6873 * decl.c (shadow_tag, groktypename, start_decl,
6874 start_handler_parms, grokdeclarator, grokparms, start_function,
6875 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
6876 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
6877 (process_template_parm, do_decl_instantiation): Pass single
6878 ordinary attribute lists around.
6879 * decl.c (grokdeclarator): Correct handling of nested attributes.
6880 Revert the patch
6881 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
6882 * decl.c (grokdeclarator): Embedded attrs bind to the right,
6883 not the left.
6884 .
6885 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
6886 (cp_attribute_table): Declare.
6887 * decl.c (valid_lang_attribute): Don't define.
6888 (lang_attribute_table): Define.
6889 (init_decl_processing): Initialize lang_attribute_table instead of
6890 valid_lang_attribute.
6891 * tree.c (cp_valid_lang_attribute): Remove.
6892 (handle_java_interface_attribute, handle_com_interface_attribute,
6893 handle_init_priority_attribute): New functions.
6894 (cp_attribute_table): New array.
6895 * decl2.c (import_export_class): Don't use
6896 targetm.valid_type_attribute.
6897
68982001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6899
6900 * Make-lang.in (cp/error.o): Depend on real.h
6901 * error.c: #include "real.h"
6902
69032001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6904
6905 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
6906 xmalloc/strcpy/strcat.
6907
69082001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6909
6910 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
6911 Const-ification.
6912 * pt.c (tsubst_decl): Likewise.
6913
69142001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6915
6916 * decl2.c (lang_f_options): Const-ification.
6917 * lex.c (cplus_tree_code_name): Likewise.
6918 * spew.c (yyerror): Likewise.
6919
69202001-09-06 Nathan Sidwell <nathan@codesourcery.com>
6921
6922 PR c++/3986
6923 * class.c (force_canonical_binfo_r): Check & move an indirect
6924 primary base first.
6925 (force_canonical_binfo): Check that it's not already
6926 canonical.
6927 (mark_primary_virtual_base): Remove BINFO parameter.
6928 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
6929
69302001-09-06 Nathan Sidwell <nathan@codesourcery.com>
6931
6932 Remove TYPE_NONCOPIED_PARTS.
6933 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
6934 CLASSTYPE_PURE_VIRTUALS.
6935 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
6936 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
6937 (layout_class_type): Don't call fixup_inline_methods here ...
6938 (finish_struct_1): ... call it here.
6939
69402001-09-04 Mark Mitchell <mark@codesourcery.com>
6941
6942 * decl.c (duplicate_decls): Remove code deadling with
6943 DECL_SAVED_INSNS.
6944 * decl2.c (finish_file): Likewise.
6945 * pt.c (instantiate_decl): Likewise.
6946 * semantics.c (expand_body): Don't defer local functions if
6947 they wouldn't be deferred for some other reason. Don't
6948 generate RTL for functions that will not be emitted.
6949 (genrtl_start_function): Remove code deadling with
6950 DECL_SAVED_INSNS.
6951 (genrtl_finish_function): Likewise.
6952
69532001-09-04 Nathan Sidwell <nathan@codesourcery.com>
6954
6955 PR c++/4203
6956 * call.c (build_over_call): Do not optimize any empty base
6957 construction.
6958
69592001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6960
6961 * error.c (dump_template_decl): Output template parameters
6962 together with their specifiers.
6963 Output `class' prefix for template template parameter.
6964 (dump_decl): Fix formatting.
6965
69662001-08-30 Kurt Garloff <garloff@suse.de>
6967
6968 * optimize.c (inlinable_function_p): Allow only smaller single
6969 functions. Halve inline limit after reaching recursive limit.
6970
69712001-08-30 Joern Rennecke <amylaar@redhat.com>
6972 Jason Merrill <jason_merrill@redhat.com>
6973
6974 * class.c (build_vtable_entry_ref): Subtract in char*, not
6975 ptrdiff_t.
6976
69772001-08-23 Jason Merrill <jason_merrill@redhat.com>
6978
6979 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
6980 (build_cplus_array_type): Use cp_build_qualified_type, not
6981 TYPE_MAIN_VARIANT, to get an unqualified version.
6982
6983 * decl2.c (grok_alignof): Lose.
6984 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
6985 * typeck.c (c_alignof): Lose.
6986 * semantics.c (finish_sizeof, finish_alignof): New.
6987 * parse.y: Use them.
6988 * cp-tree.h: Declare them.
6989
69902001-08-22 Jason Merrill <jason_merrill@redhat.com>
6991
6992 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
6993 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
6994 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
6995
69962001-08-19 Jakub Jelinek <jakub@redhat.com>
6997
6998 * typeck2.c (add_exception_specifier): Only require complete type if
6999 not in processing template declaration.
7000
70012001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7002
7003 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
7004 GNU_xref_start_scope and GNU_xref_end_scope.
7005
7006 * tree.c (TYPE_HASH): Moved to ../tree.h.
7007
70082001-08-16 Mark Mitchell <mark@codesourcery.com>
7009
7010 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
7011 on COMPOUND_EXPRs.
7012
70132001-08-14 Richard Henderson <rth@redhat.com>
7014
7015 * class.c, cp-tree.h (build_vfn_ref): Remove.
7016 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
7017
70182001-08-13 Mark Mitchell <mark@codesourcery.com>
7019
7020 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
7021 empty class assignment as having side-effects to avoid
7022 spurious warnings.
7023
70242001-08-13 Zack Weinberg <zackw@panix.com>
7025
7026 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
7027 * except.c: Include libfuncs.h.
7028
70292001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
7030
7031 * decl.c (grokdeclarator): Clarify diagnostic message.
7032
70332001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7034
7035 * decl2.c (do_nonmember_using_decl): Replace using directive
7036 with using declaration in the error message.
7037
70382001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7039
7040 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
7041 criterion to avoid rebuilding expression tree instead of
7042 processing_template_decl.
7043
70442001-08-07 Jason Merrill <jason_merrill@redhat.com>
7045
7046 Support named return value optimization for inlines, too.
7047 * decl.c (finish_function): Nullify returns here.
7048 * semantics.c (genrtl_start_function): Not here.
7049 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
7050 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
7051 Also nullify the CLEANUP_STMT for the nrv.
7052 * cp-tree.h: Declare it.
7053 * optimize.c (declare_return_variable): Replace the nrv with the
7054 return variable.
7055 * typeck.c (check_return_expr): Be more flexible on alignment check.
7056 Ignore cv-quals when checking for a matching type.
7057
70582001-08-09 Richard Henderson <rth@redhat.com>
7059
7060 * decl2.c (finish_objects): Use target hooks instead of
7061 assemble_constructor and assemble_destructor.
7062
70632001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7064
7065 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
7066
70672001-08-07 Nathan Sidwell <nathan@codesourcery.com>
7068
7069 PR c++/3820
7070 Stop using TYPE_NONCOPIED_PARTS.
7071 * call.c (build_over_call): Be careful when copy constructing
7072 or assigning to an empty class.
7073 * class.c (check_bases_and_members): It has a
7074 COMPLEX_ASSIGN_REF if it has a vptr.
7075 (layout_class_type): Don't add empty class padding to
7076 TYPE_NONCOPIED_PARTS.
7077 (finish_struct_1): Don't add the VFIELD either.
7078 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
7079 initialization.
7080
70812001-08-07 Jason Merrill <jason_merrill@redhat.com>
7082
7083 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
7084
70852001-08-06 Richard Henderson <rth@redhat.com>
7086
7087 * decl2.c (finish_objects): Pass a symbol_ref and priority to
7088 assemble_{constructor,destructor}. Remove priority handling.
7089
70902001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
7091
7092 Don't allow template-id in using-declaration.
7093 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
7094 (do_class_using_decl): Likewise.
7095
70962001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
7097
7098 * cp/spew.c (read_token): No need to pop buffers.
7099
71002001-08-02 Stan Shebs <shebs@apple.com>
7101
7102 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
7103 (fnaddr_from_vtable_entry): Remove decl.
7104 * method.c (use_thunk): Update comment.
7105
71062001-08-01 Andrew Cagney <ac131313@redhat.com>
7107
7108 * repo.c (get_base_filename): Change return value to const char
7109 pointer.
7110
71112001-08-02 Nathan Sidwell <nathan@codesourcery.com>
7112
7113 Kill -fhonor-std.
7114 * NEWS: Document.
7115 * cp-tree.h (flag_honor_std): Remove.
7116 (CPTI_FAKE_STD): Remove.
7117 (std_node): Remove comment about it being NULL.
7118 (fake_std_node): Remove.
7119 * decl.c (in_fake_std): Remove.
7120 (walk_namespaces_r): Remove fake_std_node check.
7121 (push_namespace): Remove in_fake_std code.
7122 (pop_namespace): Likewise.
7123 (lookup_name_real): Remove fake_std_node check.
7124 (init_decl_processing): Always create std_node. Always add
7125 std:: things there.
7126 (builtin_function): Always put non '_' fns in std.
7127 * decl2.c (flag_honor_std): Remove.
7128 (lang_f_options): Remove honor-std.
7129 (unsupported_options): Add honor-std.
7130 (set_decl_namespace): Remove fake_std_node check.
7131 (validate_nonmember_using_decl): Likewise.
7132 (do_using_directive): Likewise.
7133 (handle_class_head): Likewise.
7134 * dump.c (cp_dump_tree): Likewise.
7135 * except.c (init_exception_processing): Adjust.
7136 * init.c (build_member_call): Remove fake_std_node check.
7137 (build_offset_ref): Likewise.
7138 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
7139 * rtti.c (init_rtti_processing): Adjust.
7140
71412001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
7142
7143 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
7144 operand while calling cp_tree_equal.
7145
71462001-07-31 Nathan Sidwell <nathan@codesourcery.com>
7147
7148 The 3.0 ABI no longer has vbase pointer fields.
7149 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
7150 FORMAT_VBASE_NAME): Remove.
7151 * method.c (do_build_copy_constructor): Adjust.
7152 (do_build_assign_ref): Adjust.
7153 * search.c (lookup_field_r): Adjust.
7154 * typeck.c (build_component_ref): Adjust.
7155
7156 The 3.0 ABI always has a vtable pointer at the start of every
7157 polymorphic class.
7158 * rtti.c (build_headof_sub): Remove.
7159 (build_headof): Adjust.
7160 (get_tinfo_decl_dynamic): No need to check flag_rtti
7161 here. Adjust.
7162 (create_real_tinfo_var): Explain why we need a hidden name.
7163
71642001-07-31 Nathan Sidwell <nathan@codesourcery.com>
7165
7166 PR c++/3631
7167 * class.c (update_vtable_entry_for_fn): The fixed adjustment
7168 of a virtual thunk should be from declaring base.
7169
71702001-07-31 Nathan Sidwell <nathan@codesourcery.com>
7171
7172 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
7173 the shared virtual base, so preserving inheritance graph order.
7174
71752001-07-30 Andreas Jaeger <aj@suse.de>
7176
7177 * decl2.c: Remove unused var global_temp_name_counter.
7178
71792001-07-28 Richard Henderson <rth@redhat.com>
7180
7181 * method.c (pending_inlines): Remove.
7182
71832001-07-27 Nathan Sidwell <nathan@codesourcery.com>
7184
7185 * class.c (mark_primary_virtual_base): Don't adjust base
7186 offsets here.
7187 (dfs_unshared_virtual_bases): Adjust them here.
7188 (mark_primary_bases): Explain why we adjust at the end.
7189
71902001-07-27 Nathan Sidwell <nathan@codesourcery.com>
7191
7192 * class.c (finish_struct_1): When copying the primary base's
7193 VFIELD, make sure we find it is at offset zero.
7194
71952001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7196
7197 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
7198 tsubst_expr for default template arguments.
7199
72002001-07-26 Nathan Sidwell <nathan@codesourcery.com>
7201
7202 PR c++/3621
7203 * spew.c (yylex): Only copy the token's lineno, if it is
7204 nonzero.
7205
72062001-07-26 Nathan Sidwell <nathan@codesourcery.com>
7207
7208 PR c++/3624
7209 * call.c (resolve_args): Simplify, call
7210 convert_from_reference.
7211 (build_new_op): Resolve and convert from reference ARG1
7212 earlier. Adjust ARG2 & ARG3 resolve and conversion.
7213
72142001-07-26 Nathan Sidwell <nathan@codesourcery.com>
7215
7216 * decl.c (last_function_parm_tags): Remove.
7217 (current_function_parm_tags): Remove.
7218 (init_decl_processing): Adjust.
7219 (start_function): Adjust.
7220 (store_parm_decls): Adjust.
7221
7222 PR c++/3152
7223 * decl.c (grokdeclarator): Detect when a function typedef is
7224 declaring a function, and create last_function_parms correctly.
7225
72262001-07-25 Jason Merrill <jason_merrill@redhat.com>
7227
7228 * call.c (joust): Only prefer a non-builtin candidate to a builtin
7229 one if they have the same signature.
7230
7231 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
7232 it rather than toplevel_bindings_p. Give it a mangled name if static.
7233 (convert_to_reference): Adjust.
7234 * decl2.c (get_temp_name): Lose.
7235 * mangle.c (mangle_ref_init_variable): New fn.
7236 (mangle_guard_variable): Strip the ref-init header.
7237 * cp-tree.h: Adjust.
7238 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
7239 initializer.
7240 (grok_reference_init): Always use DECL_INITIAL.
7241
72422001-07-25 Nathan Sidwell <nathan@codesourcery.com>
7243
7244 PR c++/3416
7245 * call.c (build_conditional_expr): Recheck args after
7246 conversions.
7247 * cp-tree.h (build_conditional_expr): Move to correct file.
7248 * typeck.c (decay_conversion): Diagnose any unknown types
7249 reaching here.
7250 (build_binary_op): Don't do initial decay or default
7251 conversions on overloaded functions.
7252 (build_static_cast): Don't do a decay conversion here.
7253
72542001-07-25 Nathan Sidwell <nathan@codesourcery.com>
7255
7256 PR c++/3543
7257 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
7258 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
7259
72602001-07-25 Nathan Sidwell <nathan@codesourcery.com>
7261
7262 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
7263 (create_vtbl_ptr): ... here.
7264
72652001-07-25 Nathan Sidwell <nathan@codesourcery.com>
7266
7267 * class.c (build_vbase_offset_vbtl_entries): Look for
7268 non-primary base of which we are a sub vtable.
7269
72702001-07-24 Phil Edwards <pme@sources.redhat.com>
7271
7272 * semantics.c (finish_this_expr): Remove unused code.
7273
72742001-07-24 Nathan Sidwell <nathan@codesourcery.com>
7275
7276 Simplify rtti, now we've only one ABI.
7277 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
7278 CPTI_TINFO_VAR_ID.
7279 (tinfo_decl_id, tinfo_var_id): Remove.
7280 (get_typeid_1): Remove.
7281 * rtti.c
7282 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
7283 (typeid_ok_p): New function.
7284 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
7285 (get_tinfo_decl): Remove old abi documentation.
7286 (tinfo_from_decl): Remove.
7287 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
7288 (get_typeid_1): Remove.
7289 (get_base_offset): Remove.
7290 (synthesize_tinfo_var): Absorb get_base_offset.
7291 (create_real_tinfo_var): Don't use tinfo_decl_id.
7292
72932001-07-23 Graham Stott <grahams@redhat.com>
7294
7295 * cp/class.c (type_requires_array_cookie): Fix use of uninitialized
7296 variable has_two_argument_delete_p.
7297
72982001-07-21 Nathan Sidwell <nathan@codesourcery.com>
7299
7300 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
7301 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
7302 (CPTI_INDEX_IDENTIFIER): Remove.
7303 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
7304 (delta2_identifier): Remove.
7305 (index_identifier): Remove.
7306 (pfn_or_delta2_identifier): Remove.
7307 (flag_vtable_thunks): Remove.
7308 (VTABLE_DELTA2_NAME): Remove.
7309 (VTABLE_INDEX_NAME): Remove.
7310 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
7311 (vfunc_ptr_type_node): Adjust.
7312 (VTABLE_NAME_PREFIX): Adjust.
7313 (build_vfn_ref): Lose first parameter.
7314 (fixup_all_virtual_upcast_offsets): Remove.
7315 * decl.c (initialize_predefined_identifiers): Remove
7316 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
7317 (init_decl_processing): Remove no-vtable-thunk code.
7318 * decl2.c (flag_vtable_thunks): Remove.
7319 (mark_vtable_entries): Remove no-vtable-thunk code.
7320 * error.c (dump_decl): Remove no-vtable-thunk code.
7321 (dump_expr): Adjust ptr to member function code.
7322 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
7323 code.
7324 * rtti.c (build_headof): Remove no-vtable-thunk code.
7325 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
7326 * search.c (get_base_distance): Remove expand_upcast_fixups case.
7327 (virtual_context) Remove.
7328 (expand_upcast_fixups): Remove.
7329 (fixup_virtual_upcast_offsets): Remove.
7330 (fixup_all_virtual_upcast_offsets): Remove.
7331 * typeck.c (get_member_function_from_ptrfunc): Remove
7332 no-vtable-thunk code.
7333 * call.c (build_over_call): Adjust call to build_vfn_ref.
7334 * class.c (build_vfn_ref): Lose first parameter. Remove
7335 no-vtable-thunk code.
7336 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
7337 (build_vtable_entry): Remove no-vtable-thunk code.
7338
73392001-07-20 Nathan Sidwell <nathan@codesourcery.com>
7340
7341 Remove old-abi remnants. Remove comments about old abi
7342 behavior. Remove references to 'new-abi' in comments.
7343 * cp-tree.h: Adjust comments.
7344 (vbase_offsets_in_vtable_p): Delete.
7345 (vcall_offsets_in_vtable_p): Delete.
7346 (vptrs_present_everywhere_p): Delete.
7347 (all_overridden_vfuns_in_vtables_p): Delete.
7348 (merge_primary_and_secondary_vtables_p): Delete.
7349 (TYPE_CONTAINS_VPTR_P): Adjust.
7350 (VTT_NAME_PREFIX): Remove.
7351 (CTOR_VTBL_NAME_PREFIX): Remove.
7352 (init_vbase_pointers): Remove.
7353 * class.c: Adjust coments.
7354 (build_vbase_pointer_fields): Delete.
7355 (build_vbase_pointer): Remove old-abi code.
7356 (build_secondary_vtable): Likewise.
7357 (modify_all_vtables): Likewise.
7358 (create_vtable_ptr): Likewise.
7359 (layout_class_type): Likewise.
7360 (finish_struct_1): Likewise.
7361 (finish_vtbls): Likewise.
7362 (dfs_finish_vtbls): Delete.
7363 (build_vbase_offset_vtbl_entries): Remove old-abi code.
7364 * cvt.c: Adjust comments.
7365 * decl.c: Adjust comments.
7366 * decl2.c: Adjust comments.
7367 * init.c: Adjust comments.
7368 (construct_virtual_bases): Remove old-abi code.
7369 * lang-specs.h: Remove -fno-new-abi.
7370 * mangle.c: Adjust comments.
7371 * rtti.c: Adjust comments.
7372 (get_base_offset): Remove old-abi-code.
7373 * search.c: Adjust comments.
7374 (dfs_init_vbase_pointers): Remove.
7375 (dfs_vtable_path_unmark): Remove.
7376 (init_vbase_pointers): Remove.
7377 * semantics.c: Adjust comments.
7378 (emit_associated_thunks): Remove old-abi code.
7379 * typeck.c: Adjust comments.
7380
73812001-07-20 Daniel Berlin <dan@cgsoftware.com>
7382
7383 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
7384 params.h.
7385
73862001-07-19 Mark Mitchell <mark@codesourcery.com>
7387
7388 * class.c (finish_struct_anon): Forbid nested classes.
7389
73902001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
7391
7392 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
7393 * optimize.c: Include debug.h.
7394 (maybe_clone_body): Use debug hook.
7395 * semantics.c: Include debug.h.
7396 (expand_body): Use debug hook.
7397
73982001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
7399
7400 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
7401
74022001-07-18 Mark Mitchell <mark@codesourcery.com>
7403
7404 * class.c (type_requires_array_cookie): New function.
7405 (check_methods): Don't try to figure out whether the type needs a
7406 cookie here.
7407 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
7408 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
7409 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
7410 * pt.c (instantiate_class_template): Don't set
7411 TYPE_VEC_DELETE_TAKES_SIZE.
7412 * NEWS: Document ABI changes from GCC 3.0.
7413
74142001-07-18 Xavier Delacour <xavier@fmaudio.net>,
7415 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7416
7417 * NEWS (Changes in GCC 3.0): Fix typo.
7418
74192001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
7420
7421 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
7422 which attributes are to be attached, and a flags argument. Update
7423 call to decl_attributes.
7424 (grokfield): Update call to decl_attributes.
7425 * class.c (finish_struct): Update call to cplus_decl_attributes.
7426 * cp-tree.h (cplus_decl_attributes): Update prototype.
7427 * decl.c (start_decl, grokdeclarator, start_function): Update
7428 calls to decl_attributes and cplus_decl_attributes.
7429 * friend.c (do_friend): Update call to cplus_decl_attributes.
7430 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
7431
74322001-07-12 Mark Mitchell <mark@codesourcery.com>
7433
7434 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
7435 for `register' variables with an asm-specification.
7436
74372001-07-11 Mark Mitchell <mark@codesourcery.com>
7438
7439 * semantics.c (finish_asm_stmt): Mark the output operands
7440 to an asm addressable, if necessary.
7441
74422001-07-11 Ben Elliston <bje@redhat.com>
7443
7444 * Revert this change -- there is a subtle bug.
7445
7446 PR c++/80
7447 * decl.c (finish_enum): New "attributes" argument; pass it to
7448 cplus_decl_attributes. Use a narrower type if the enum is packed.
7449 * cp-tree.h (finish_enum): Adjust prototype.
7450 * parse.y (enum_head): New non-terminal.
7451 (structsp): Use it. Enums now may be preceded or followed by
7452 optional attributes -- pass their chained tree to finish_enum().
7453 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
7454
74552001-07-10 Mark Mitchell <mark@codesourcery.com>
7456
7457 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
7458 variables.
7459
74602001-07-10 Jason Merrill <jason_merrill@redhat.com>
7461
7462 * semantics.c (cp_expand_stmt): Fix for null
7463 current_function_return_value.
7464
74652001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
7466
7467 * call.c (build_op_delete_call): Initialize fn.
7468 (convert_like_real): Delete conditional.
7469 (joust): Initialize *w and *l.
7470 * class.c: Add prototype for binfo_ctor_vtable.
7471 (get_primary_binfo): Initialize result.
7472 * init.c (build_java_class_ref): Initialize name.
7473
74742001-07-09 Erik Rozendaal <dlr@acm.org>
7475
7476 * typeck.c (unary_complex_lvalue): Do not duplicate the
7477 argument to modify, pre-, or post-increment when used as an
7478 lvalue and when the argument has side-effects.
7479
74802001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
7481
7482 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
7483 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
7484 cplus_decl_attributes even if attrs is NULL.
7485 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
7486
74872001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
7488
7489 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
7490 calls to decl_attributes.
7491
74922001-07-06 Ira Ruben <ira@apple.com>
7493
7494 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
7495 be DECL_TEMPLATE_RESULT.
7496
74972001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7498
7499 * cp-tree.h (copy_template_template_parm): Rename to ...
7500 (bind_template_template_parm): ... here.
7501 * tree.c (copy_template_template_parm): Rename to ...
7502 (bind_template_template_parm): ... here. Remove the case when
7503 NEWARGS is NULL_TREE.
7504 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
7505 BOUND_TEMPLATE_TEMPLATE_PARM.
7506 * pt.c (lookup_template_class): Adjust.
7507
75082001-07-05 Jason Merrill <jason_merrill@redhat.com>
7509
7510 * cvt.c (convert_lvalue): New fn.
7511 * cp-tree.h: Declare it.
7512 * method.c (do_build_assign_ref): Use it.
7513 (do_build_copy_constructor): Convert parm to base types
7514 before calling base constructors.
7515
7516 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
7517 DECL_USER_ALIGN. Check flag_elide_constructors instead of
7518 optimize.
7519 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
7520
75212001-07-02 Nathan Sidwell <nathan@codesourcery.com>
7522
7523 * optimize.c (optimize_inline_calls): New function, broken out
7524 of ...
7525 (optimize_function): ... here. Call it. Don't inline if it is
7526 a thunk.
7527 (dump_function): Print name of dump flag causing this dump.
7528 * semantics.c (expand_body): Move thunk inline check to
7529 optimize_function.
7530
75312001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
7532
7533 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
7534 (comptypes): Use target.comp_type_attributes.
7535
75362001-06-29 Nathan Sidwell <nathan@codesourcery.com>
7537
7538 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
7539
75402001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
7541
7542 * error.c (lang_print_error_function): Add a `diagnostic_context *'
7543 parameter. Tweak.
7544
75452001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
7546
7547 * decl2.c (import_export_class): Update.
7548
75492001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
7550
7551 * error.c (init_error): Adjust settings.
7552
75532001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
7554
7555 * error.c (init_error): Adjust settings.
7556
75572001-06-19 Richard Sandiford <rsandifo@redhat.com>
7558
7559 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
7560 return pointers to data members by reference rather than by value.
7561
75622001-06-18 Jason Merrill <jason_merrill@redhat.com>
7563
7564 Implement the Named Return Value optimization.
7565 * cp-tree.h (struct cp_language_function): Add x_return_value.
7566 (current_function_return_value): Now a macro.
7567 * decl.c: Don't define it.
7568 (define_label, finish_case_label): Don't clear it.
7569 (init_decl_processing): Don't register it with GC.
7570 * semantics.c (genrtl_finish_function): Don't check it for
7571 no_return_label. Copy the RTL from the return value to
7572 current_function_return_value and walk, calling...
7573 (nullify_returns_r): ...this new fn.
7574 * typeck.c (check_return_expr): Set current_function_return_value.
7575
75762001-06-15 Jason Merrill <jason_merrill@redhat.com>
7577
7578 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
7579 sharing a ctor vtable with. Merge code for cases 1 and 2.
7580 (binfo_ctor_vtable): New fn.
7581 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
7582
75832001-06-14 Jason Merrill <jason_merrill@redhat.com>
7584
7585 * class.c (dfs_find_final_overrider): Fix logic.
7586
7587 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
7588 virtual thunk instead of non-virtual.
7589 (get_matching_virtual): Uncomment.
7590
7591 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
7592 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
7593 PARM, not ARG.
7594
75952001-06-14 Nathan Sidwell <nathan@codesourcery.com>
7596
7597 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
7598 we've not emerged from the hierarchy of RTTI_BINFO on reaching
7599 a non-virtual base.
7600
76012001-06-13 Mark Mitchell <mark@codesourcery.com>
7602
7603 * NEWS: Update release number.
7604
76052001-06-12 Nathan Sidwell <nathan@codesourcery.com>
7606
7607 PR c++/3130, c++/3131, c++/3132
7608 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
7609 * class.c (force_canonical_binfo_r): Move
7610 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
7611 virtual bases unless they're primary and what they're primary
7612 too has been moved.
7613 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
7614 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
7615 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
7616 derived binfo.
7617 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
7618 (layout_nonempty_base_or_field): Add most derived type
7619 parameter. Adjust.
7620 (layout_empty_base): Likewise.
7621 (build_base_field): Likewise.
7622 (build_base_fields): Likewise.
7623 (propagate_binfo_offsets): Add most derived type
7624 parameter. Skip non canonical virtual bases too.
7625 (dfs_set_offset_for_unshared_vbases): Don't skip primary
7626 bases. Do skip canonical bases.
7627 (layout_virtual_bases): Adjust.
7628 (layout_class_type): Adjust.
7629 (dfs_get_primary_binfo): Build list of virtual primary base
7630 candidates.
7631 (get_primary_binfo): Check that the shared virtual primary
7632 base candidate was found first.
7633 (accumulate_vtbl_inits): Don't do anything for non-vptr
7634 containing binfos. For case 1 primary virtual bases, keep
7635 checking that we've not emerged from the hierarchy of RTTI_BINFO.
7636
76372001-06-12 Nathan Sidwell <nathan@codesourcery.com>
7638
7639 PR c++/3089
7640 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
7641 hierarchy looking for primary bases for a ctor
7642 vtable. Recursively call oneself, if we meet our primary via
7643 this route and haven't met it yet via inheritance graph order.
7644
76452001-06-11 Mark Mitchell <mark@codesourcery.com>
7646
7647 * lang-options.h: Emit documentation for -fno-honor-std, not
7648 -fhonor-std.
7649
76502001-06-10 Alexandre Oliva <aoliva@redhat.com>
7651
7652 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
7653 Don't clobber delta.
7654 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
7655
76562001-06-10 Mark Mitchell <mark@codesourcery.com>
7657 Gabriel Dos Reis <gdr@codesourcery.com>
7658
7659 * Make-lang.in (cp/call.o): Depend on diagnostic.h
7660 (cp/typeck.o): Depend on diagnostic.h
7661 (cp/typeck2.o): Depend on diagnostic.h
7662 (cp/repo.o): Depend on dignostic.h
7663 * typeck.c: #include diagnostic.h
7664 (convert_for_initialization): Remove extern declaration for
7665 warningcount and errorcount.
7666
7667 * call.c: #include diagnostic.h
7668 (convert_like_real): Remove extern declaration for warnincount and
7669 errorcount.
7670
7671 * repo.c: #include diagnostic.h
7672 * typeck2.c: #include diagnostic.h
7673
76742001-06-08 Nathan Sidwell <nathan@codesourcery.com>
7675
7676 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
7677 in previous change.
7678
76792001-06-08 Nathan Sidwell <nathan@codesourcery.com>
7680
7681 PR c++/2929
7682 * friend.c (do_friend): Use push_decl_namespace for classes at
7683 namespace scope.
7684
76852001-06-08 Nathan Sidwell <nathan@codesourcery.com>
7686 Jason Merrill <jason_merrill@redhat.com>
7687
7688 PR c++/3061
7689 * class.c (build_secondary_vtable): Use assert, rather than an error
7690 message.
7691 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
7692 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
7693 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
7694 Don't set BINFO_VTABLE for a primary virtual base.
7695
76962001-06-07 Mark Mitchell <mark@codesourcery.com>
7697
7698 * decl.c (duplicate_decls): Update source position information
7699 when a template function is defined.
7700
77012001-06-07 Phil Edwards <pme@sources.redhat.com>
7702
7703 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
7704
77052001-06-07 Nathan Sidwell <nathan@codesourcery.com>
7706
7707 PR c++/2914
7708 * decl.c (pushtag): Don't push into a complete type's scope.
7709
77102001-06-06 Jason Merrill <jason_merrill@redhat.com>
7711
7712 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
7713 (struct lang_decl_flags): Lose generate_with_vtable_p.
7714 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
7715 * class.c (copy_virtuals): Adjust.
7716 * decl2.c (mark_vtable_entries): Adjust.
7717 * method.c (make_thunk, build_vtable_entry): Adjust.
7718 * class.c (update_vtable_entry_for_fn): Only look as far as the
7719 first defining class.
7720 (build_vtbl_initializer): Put nothing in the slot for a function only
7721 defined in a lost primary virtual base.
7722 (add_vcall_offset_vtbl_entries_1): Use the same code for
7723 the lost primary case and the normal case.
7724 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
7725 (get_vfield_offset, get_derived_offset): Lose.
7726 (dfs_find_final_overrider): Use look_for_overrides_here.
7727 (get_matching_virtual): New fn.
7728 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
7729 not BV_VCALL_INDEX.
7730 * search.c (look_for_overrides_here): Split out from...
7731 (look_for_overrides_r): Here.
7732
7733 * class.c (find_final_overrider): Return error_mark_node on error.
7734
7735 * decl2.c (key_method): #if 0 accidental change.
7736
77372001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7738
7739 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
7740 (build_over_call): Likewise.
7741 * decl.c (grokparms): Likewise.
7742 * pt.c (tsubst_decl): Likewise.
7743 * typeck.c (convert_arguments): Likewise.
7744
77452001-06-05 Mark Mitchell <mark@codesourcery.com>
7746
7747 * semantics.c (begin_class_definition): Robustify.
7748
7749 * pt.c (instantiate_decl): Tell the repository code about the
7750 clones, not the cloned functions.
7751 * repo.c (repo_template_used): Explicitly instantiate the cloned
7752 function, not the clones.
7753
77542001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7755
7756 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
7757 ICS_BAD_FLAG on created conversion.
7758 (compare_ics): Break out rank.
7759
77602001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7761
7762 * decl.c (xref_tag): Remove extraneous %s on dependent name
7763 lookup warning.
7764
77652001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7766
7767 * class.c (layout_vtable_decl): Fix off by one error on
7768 build_index_type.
7769 (build_vtt): Likewise.
7770 (build_ctor_vtbl_group): Likewise.
7771
77722001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7773
7774 * class.c (maybe_indent_hierarchy): New function.
7775 (dump_class_hierarchy_r): Add flags. Dump extra binfo
7776 information, if enabled. Use maybe_indent_hierarchy. Adjust
7777 output format.
7778 (dump_class_hierarchy): Adjust prototype. Adjust output format.
7779 (dump_array, dump_vtable, dump_vtt): New functions.
7780 (finish_struct_1): Adjust hierarchy dumping.
7781 (initialize_vtable): Call dump_vtable.
7782 (build_vtt): Call dump_vtt.
7783 (build_ctor_vtbl_group): Call dump_vtable.
7784 * decl2.c (flag_dump_class_layout): Remove.
7785 (cxx_decode_option): Remove dump translation unit
7786 and dump class hierarchy check. Call dump_switch_p.
7787 (finish_file): Adjust dumping.
7788 (dump.c): Only dump base classes if not TDF_SLIM.
7789 Only dump namespace members if not TDF_SLIM.
7790 * optimize.c (dump_function): New function.
7791 (optimize_function): Call dump_function.
7792 * semantics.c (expand_body): Use dump_enabled_p.
7793
77942001-06-01 Nathan Sidwell <nathan@codesourcery.com>
7795
7796 PR g++/2936
7797 Part missed from first commit
7798 * decl2.c (finish_anon_union): Copy context.
7799
78002001-05-30 Nathan Sidwell <nathan@codesourcery.com>
7801
7802 PR g++/2936
7803 * optimize.c (remap_decl): Remap anonymous aggregate members too.
7804
78052001-05-26 Nathan Sidwell <nathan@codesourcery.com>
7806
7807 PR g++/2823
7808 * semantics.c (expand_body): Don't optimize thunks.
7809
78102001-05-25 Sam TH <sam@uchicago.edu>
7811
7812 * cp-tree.h lex.h: Fix header include guards.
7813
78142001-05-25 Mark Mitchell <mark@codesourcery.com>
7815
7816 * decl.c (init_decl_processing): Tweak.
7817
78182001-05-24 Mark Mitchell <mark@codesourcery.com>
7819
7820 * decl.c (duplicate_decls): Tidy.
7821 (init_decl_processing): Always set flag_no_builtin.
7822
78232001-05-24 Nathan Sidwell <nathan@codesourcery.com>
7824
7825 PR c++/2184
7826 * decl2.c (do_local_using_decl): Push the decls, even in a
7827 template.
7828
78292001-05-22 Mark Mitchell <mark@codesourcery.com>
7830
7831 * optimize.c (initialize_inlined_parameters): Don't set
7832 TREE_READONLY for a VAR_DECL taking the place of an inlined
7833 PARM_DECL.
7834
78352001-05-22 Jason Merrill <jason_merrill@redhat.com>
7836
7837 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
7838 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
7839 attribute.
7840
78412001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
7842
7843 * parse.y: Refer to compound literals as such, not as
7844 constructor-expressions.
7845
78462001-05-21 Mark Mitchell <mark@codesourcery.com>
7847
7848 * call.c (build_op_delete_call): Ignore exception-specifications
7849 when looking for matching delete operators.
7850 * init.c (build_new_1): Compute whether or not the allocation
7851 function used is a placement allocation function or not, and
7852 communicate this information to build_op_delete_call.
7853
78542001-05-21 Jason Merrill <jason_merrill@redhat.com>
7855
7856 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
7857 (build_vtbl_ref): Adjust.
7858 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
7859 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
7860 Re-add vtable-gc.
7861 (unsupported_options): Correspondingly.
7862
7863 * decl2.c (maybe_make_one_only): Check flag_weak, not
7864 supports_one_only().
7865
7866 * cp-tree.def (START_CATCH_STMT): Lose.
7867 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
7868 * tree.c (cp_statement_code_p): Don't case it.
7869 * semantics.c (cp_expand_stmt): Likewise.
7870 * cp-tree.h (START_CATCH_TYPE): Lose.
7871 (HANDLER_TYPE): New.
7872 * except.c (expand_start_catch_block): Don't start any blocks.
7873 Return the type.
7874 (expand_end_catch_block): Don't end any blocks.
7875 * parse.y (handler): Don't pass anything from finish_handler_parms
7876 to finish_handler.
7877 * pt.c (tsubst_expr): Likewise.
7878 * semantics.c (begin_handler): Call note_level_for_catch here.
7879 (finish_handler_parms): Don't return anything.
7880 (genrtl_catch_block, begin_catch_block): Lose.
7881 (genrtl_handler): Call expand_start_catch here.
7882
78832001-05-18 Jason Merrill <jason_merrill@redhat.com>
7884
7885 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
7886 (get_vtable_decl, build_vtt): Not here.
7887
78882001-05-20 Nathan Sidwell <nathan@codesourcery.com>
7889
7890 PR c++/2781
7891 * optimize.c (update_cloned_parm): Copy addressability and other
7892 flags.
7893
78942001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7895
7896 * pt.c (determine_specialization): Ignore artificial functions.
7897
78982001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
7899
7900 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
7901 (C_RID_CODE): Remove.
7902 * lex.c (cxx_init_options): Call set_identifier_size. Update.
7903 (init_parse): Don't do it here.
7904
79052001-05-18 Diego Novillo <dnovillo@redhat.com>
7906
7907 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
7908 function declaration to avoid stripping the symbol's attributes.
7909
79102001-05-18 Nathan Sidwell <nathan@codesourcery.com>
7911
7912 * decl.c (pushdecl): Adjust error string.
7913 (xref_tag): Adjust friend class injection warning. Remove the
7914 inherited name from the class shadowed scope.
7915
79162001-05-17 Mark Mitchell <mark@codesourcery.com>
7917
7918 * except.c (cp_protect_cleanup_actions): New function.
7919 (init_exception_processing): Don't set protect_cleanup_actions
7920 here. Do set lang_protect_cleanup_actions.
7921
79222001-05-16 Nathan Sidwell <nathan@codesourcery.com>
7923
7924 * spew.c (read_token): Call yyerror on all unexpected tokens.
7925
79262001-05-16 Nathan Sidwell <nathan@codesourcery.com>
7927
7928 * init.c (member_init_ok_or_else): Take a tree rather than
7929 string for name.
7930 (expand_member_init): Adjust.
7931
79322001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
7933
7934 * decl.c (duplicate_decls): Suppress warning about duplicate
7935 decls if the first decl is a friend.
7936
79372001-05-12 Zack Weinberg <zackw@stanford.edu>
7938
7939 * except.c (choose_personality_routine): Export. Add
7940 explanatory comment. Take an enum languages, not a boolean.
7941 (initialize_handler_parm): Adjust to match.
7942 * cp-tree.h: Prototype choose_personality_routine.
7943 * lex.c (handle_pragma_java_exceptions): New function.
7944 (init_cp_pragma): Register #pragma GCC java_exceptions.
7945
79462001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
7947
7948 * method.c (build_mangled_C99_name): Remove unused prototype.
7949
79502001-05-12 Alexandre Oliva <aoliva@redhat.com>
7951
7952 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
7953 * typeck.c (get_member_function_from_ptrfunc,
7954 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
7955 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
7956
7957 Reverted Geoff Keating's 2001-05-03's patch.
7958
79592001-05-11 Ira Ruben <ira@apple.com>
7960
7961 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
7962
79632001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7964
7965 * cp-tree.h (finish_label_expr, lookup_label): Delete.
7966 * parse.y: Update for '&&'; don't issue warning here.
7967 * semantics.c (finish_label_expr): Delete.
7968
79692001-05-07 Mark Mitchell <mark@codesourcery.com>
7970
7971 * splay-tree.h (splay_tree_max): New function.
7972 (splay_tree_min): Likewise.
7973
79742001-05-03 Geoffrey Keating <geoffk@redhat.com>
7975
7976 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
7977 (pfn_vflag_identifier): Define.
7978 Update comment about layout of pointer functions.
7979 (build_ptrmemfunc1): Update prototype.
7980 (expand_ptrmemfunc_cst): Update prototype.
7981 * decl.c (initialize_predefined_identifiers): Initialize
7982 pfn_vflag_identifier.
7983 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
7984 an extra field to the type.
7985 * expr.c (cplus_expand_constant): Pass 'flag' between
7986 expand_ptrmemfunc_cst and build_ptrmemfunc1.
7987 * typeck.c (get_member_function_from_ptrfunc): When
7988 FUNCTION_BOUNDARY < 16, look at additional field to determine
7989 if a pointer-to-member is a real pointer or a vtable offset.
7990 (build_ptrmemfunc1): Add new parameter to contain extra field.
7991 (build_ptrmemfunc): Pass the extra field around.
7992 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
7993 (pfn_from_ptrmemfunc): Ignore the extra field.
7994
79952001-05-03 Mark Mitchell <mark@codesourcery.com>
7996
7997 * cp-tree.h (flag_inline_trees): Update documentation.
7998 * decl.c (init_decl_processing): Adjust handling of
7999 flag_inline_functions and flag_inline_trees to support -O3.
8000 (grokfndecl): Set DECL_INLINE on all functions if that's what
8001 the user requested.
8002 (save_function_data): Clear DECL_INLINE in
8003 current_function_cannot_inline is non-NULL.
8004 * decl2.c (flag_inline_trees): Update documentation.
8005
80062001-05-03 Nathan Sidwell <nathan@codesourcery.com>
8007
8008 * dump.c (cp_dump_tree, USING_STMT case): New case.
8009 * tree.c (cp_statement_code_p): Add USING_STMT.
8010 * decl2.c (do_using_directive): Add the using directive statement.
8011
8012 * tree.c (walk_tree): Reformat an if block.
8013
80142001-05-02 Mark Mitchell <mark@codesourcery.com>
8015
8016 * decl.c (compute_array_index_type): Don't try to do anything with
8017 the indices when processing a template.
8018
80192001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8020
8021 * call.c: NULL_PTR -> NULL.
8022 * class.c: Likewise.
8023 * cvt.c: Likewise.
8024 * decl.c: Likewise.
8025 * decl2.c: Likewise.
8026 * except.c: Likewise.
8027 * init.c: Likewise.
8028 * rtti.c: Likewise.
8029 * search.c: Likewise.
8030 * tree.c: Likewise.
8031 * typeck.c: Likewise.
8032 * typeck2.c: Likewise.
8033
80342001-05-02 Mark Mitchell <mark@codesourcery.com>
8035
8036 * decl2.c (do_using_directive): Revert previous patch.
8037
80382001-05-01 Nathan Sidwell <nathan@codesourcery.com>
8039
8040 * cp-tree.def (USING_STMT): New statement node.
8041 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
8042 * decl2.c (do_using_directive): Add USING_STMT to statement
8043 tree. Don't emit errors when processing template decl.
8044 * pt.c (tsubst_expr, USING_STMT case): New case.
8045 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
8046
80472001-05-01 Nathan Sidwell <nathan@codesourcery.com>
8048
8049 * call.c (build_new_op): Convert args from reference here.
8050 (build_conditional_expr): Don't convert here.
8051
80522001-05-01 Nathan Sidwell <nathan@codesourcery.com>
8053
8054 * spew.c (last_token_id): New static variable.
8055 (read_token): Set it here.
8056 (yyerror): Use it here.
8057
80582001-04-30 Richard Henderson <rth@redhat.com>
8059
8060 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
8061 * decl.c: Likewise.
8062
80632001-04-30 Mark Mitchell <mark@codesourcery.com>
8064
8065 * gxxint.texi: Remove.
8066 * Make-lang.in: Remove all traces of gxxint.texi.
8067
8068Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
8069
8070 * decl2.c (start_static_initialization_or_destruction): Correct
8071 logic to handle the -fno-use-cxa-atexit case.
8072
80732001-04-30 Mark Mitchell <mark@codesourcery.com>
8074
8075 * optimize.c (update_cloned_parm): New function.
8076 (maybe_clone_body): Use it. Update the `this' parameter too.
8077
80782001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
8079
8080 * decl2.c (unsupported_options): Add new-abi.
8081 * lang-options.h: Remove no longer supported options.
8082
80832001-04-27 Nathan Sidwell <nathan@codesourcery.com>
8084
8085 * except.c (can_convert_eh): Don't check template parms,
8086 typename types etc.
8087
80882001-04-27 Nathan Sidwell <nathan@codesourcery.com>
8089
8090 * optimize.c (maybe_clone_body): Copy parameter names and locations.
8091
80922001-04-27 Nathan Sidwell <nathan@codesourcery.com>
8093
8094 * cp-tree.h (adjust_clone_args): Prototype new function.
8095 * class.c (adjust_clone_args): New function.
8096 * decl.c (start_function): Call it for in charge ctors.
8097
80982001-04-26 Mark Mitchell <mark@codesourcery.com>
8099
8100 * method.c (use_thunk): Make sure that thunks really are emitted
8101 when requested.
8102
81032001-04-26 Nathan Sidwell <nathan@codesourcery.com>
8104
8105 * mangle.c (write_chars): New macro.
8106 (hwint_to_ascii): New function
8107 (write_number): Use it.
8108 (write_integer_cst): Deal with really big numbers.
8109
81102001-04-25 Mark Mitchell <mark@codesourcery.com>
8111
8112 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
8113 the clone.
8114
81152001-04-25 Nathan Sidwell <nathan@codesourcery.com>
8116
8117 * decl.c (grokdeclarator): Set context of namespace scope
8118 TYPE_DECLS.
8119
81202001-04-24 Zack Weinberg <zackw@stanford.edu>
8121
8122 * cp/optimize.c: Include hashtab.h.
8123 (struct inline_data): Add tree_pruner.
8124 (expand_call_inline, expand_calls_inline): Use it when calling
8125 walk_tree.
8126 (optimize_function): Initialize and free tree_pruner.
8127
81282001-04-24 Nathan Sidwell <nathan@codesourcery.com>
8129
8130 Lazy __FUNCTION__ generation.
8131 * cp-tree.def (FUNCTION_NAME): Remove.
8132 * cp-tree.h (function_name_declared_p): Remove.
8133 (cp_fname_init): Prototype.
8134 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
8135 don't call declare_function_name. Call start_fname_decls.
8136 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
8137 clobber the line number.
8138 (cp_fname_init): New function.
8139 (start_function): Call start_fname_decls.
8140 (finish_function): Call finish_fname_decls.
8141 * lex.c (reswords): Add slots for __FUNCTION__ et al.
8142 (rid_to_yy): Add mappings for __FUNCTION__ et al.
8143 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
8144 * parse.y (VAR_FUNC_NAME): New token.
8145 (primary): Add VAR_FUNC_NAME.
8146 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
8147 generation.
8148 (tsubst, FUNCTION_NAME case): Remove.
8149 (tsubst_copy, FUNCTION_NAME case): Remove.
8150 (tsubst_expr, DECL_STMT case): Be careful with a
8151 DECL_PRETTY_FUNCTION_P.
8152 (instantiate_decl): Remove function_name_declared_p.
8153 * semantics.c (begin_compound_statement): Don't call
8154 declare_function_name here.
8155 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
8156 (finish_translation_unit): Call finish_fname_decls.
8157 (expand_body): Remove function_name_declared_p.
8158 * typeck2.c (digest_init): Allow any ERROR_MARK.
8159
81602001-04-24 Nathan Sidwell <nathan@codesourcery.com>
8161
8162 * pt.c (tsubst_decl): Use VOID_TYPE_P.
8163 * semantics.c: Fix some typos.
8164
81652001-04-23 Phil Edwards <pme@sources.redhat.com>
8166
8167 * cp/decl2.c (flag_honor_std): Always initialize to 1.
8168
81692001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8170
8171 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
8172
81732001-04-23 Jason Merrill <jason_merrill@redhat.com>
8174
8175 * except.c (build_throw): Wrap the initialization of the exception
8176 object in a MUST_NOT_THROW_EXPR.
8177 (do_free_exception): #if 0.
8178
81792001-04-20 Mark Mitchell <mark@codesourcery.com>
8180
8181 * cp-tree.h (finish_enum): Change prototype.
8182 * decl.c (finish_enum): Reorganize.
8183 * parse.y (structsp): Adjust calls to finish_enum.
8184
81852001-04-20 Nathan Sidwell <nathan@codesourcery.com>
8186
8187 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
8188 't' case.
8189
81902001-04-20 Nathan Sidwell <nathan@codesourcery.com>
8191
8192 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
8193 (layout_empty_base): Return at end flag.
8194 (build_base_field): Likewise.
8195 (build_base_fields): Likewise.
8196 (layout_virtual_bases): Don't add 1 to eoc value.
8197 (end_of_class): Use full size for empty bases.
8198 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
8199 empty bases. Don't add 1 to eoc value. Only add trailing padding
8200 if we're an empty class with no empty bases.
8201 (dump_class_hierarchy): Dump size and alignment.
8202
82032001-04-20 Jakub Jelinek <jakub@redhat.com>
8204
8205 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
8206 ICS_BAD_FLAG.
8207
82082001-04-20 Jakub Jelinek <jakub@redhat.com>
8209
8210 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
8211 is found, look first if name does not match the structure name.
8212
82132001-04-19 Mark Mitchell <mark@codesourcery.com>
8214
8215 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
8216 set.
8217 (SET_DECL_LANGUAGE): New macro.
8218 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
8219 (pushdecl): Likewise.
8220 (build_library_fn_1): Likewise.
8221 (build_cp_library_fn): Likewise.
8222 (grokfndecl): Likewise.
8223 (grokvardecl): Mark `extern "C"' variables as having C linkage.
8224 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
8225 * lex.c (retrofit_lang_decl): Likewise.
8226 * mangle.c (mangle_decl_string): Don't mangle the names of
8227 variables declared with C language linkage.
8228 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
8229
82302001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
8231
8232 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
8233 flag_access_control from uninitialized storage.
8234
82352001-04-15 Mark Mitchell <mark@codesourcery.com>
8236
8237 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
8238 * mangle.c (write_pointer_to_member_type): Fix mangling of
8239 pointers to cv-qualified member function types.
8240
8241 * init.c (build_delete): Create a SAVE_EXPR for the address if
8242 we're going to use it more than once.
8243
82442001-04-13 Mark Mitchell <mark@codesourcery.com>
8245
8246 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
8247 (expand_ptremfunc_cst): Change prototype.
8248 (delta2_from_ptrmemfunc): Remove.
8249 * expr.c (cplus_expand_constant): Adjust call to
8250 expand_ptrmemfunc_cst.
8251 * typeck.c (build_ptrmemfunc1): Simplify.
8252 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
8253 results in a constant.
8254 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
8255 (delta2_from_ptrmemfunc): Remove.
8256 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
8257
82582001-04-12 Jason Merrill <jason_merrill@redhat.com>
8259
8260 * cp-tree.h (decl_namespace_list): New macro.
8261 (struct saved_scope): Add decl_ns_list.
8262 * decl.c (mark_saved_scope): Mark it.
8263 * decl2.c: Lose static decl_namespace_list.
8264 (init_decl2): Don't save it.
8265
82662001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8267
8268 * cp-tree.h (warn_return_type, yylex): Delete redundant
8269 declarations.
8270
8271 * decl.c (current_class_depth, global_namespace): Likewise.
8272
8273 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
8274
8275 * repo.c (flag_use_repository): Likewise.
8276
82772001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8278
8279 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
8280 set_block, pushdecl, getdecls, gettags, init_decl_processing,
8281 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
8282 lvalue_or_else, print_lang_statistics, comp_target_types,
8283 unsigned_type, signed_type, signed_or_unsigned_type,
8284 build_function_call, mark_addressable, incomplete_type_error):
8285 Delete redundant declarations.
8286
82872001-04-11 Jason Merrill <jason_merrill@redhat.com>
8288
8289 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
8290 (TYPE_ANONYMOUS_P): New macro.
8291 (TAGGED_TYPE_P): New macro.
8292 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
8293 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
8294 * tree.c (no_linkage_helper): Likewise.
8295 * semantics.c (begin_class_definition): Likewise.
8296 * pt.c (convert_template_argument): Likewise.
8297 * lex.c (check_for_missing_semicolon): Likewise.
8298
82992001-04-12 Nathan Sidwell <nathan@codesourcery.com>
8300
8301 * class.c (dfs_unshared_virtual_bases): New function.
8302 (mark_primary_bases): Call it.
8303 (check_bases): Ignore virtual bases when determining
8304 nearly-emptiness.
8305
83062001-04-12 Nathan Sidwell <nathan@codesourcery.com>
8307
8308 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
8309
83102001-04-11 Mark Mitchell <mark@codesourcery.com>
8311
8312 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
8313 cloned function to the clone.
8314
83152001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8316
8317 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
8318
8319 * semantics.c: Include expr.h.
8320
83212001-04-11 Nathan Sidwell <nathan@codesourcery.com>
8322
8323 * method.c (implicitly_declare_fn): Commonize code for copy ctor
8324 and assignment op. Set TREE_USED for parameter.
8325
83262001-04-10 Mark Mitchell <mark@codesourcery.com>
8327
8328 * class.c (find_final_overrider_data): Add `candidates'.
8329 (dfs_find_final_overrider): Don't issue error messages
8330 prematurely.
8331 (find_final_overrider): Issue error messages here.
8332 (build_base_field): Don't warn about amgibuous direct bases here.
8333 (warn_about_ambiguous_direct_bases): New function.
8334 (layout_class_type): Use it.
8335
83362001-04-10 Richard Henderson <rth@redhat.com>
8337
8338 * typeck.c (build_array_ref): Push the array reference inside
8339 COMPOUND_EXPR and COND_EXPR.
8340
83412001-04-05 Mark Mitchell <mark@codesourcery.com>
8342
8343 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
8344 * decl.c (duplicate_decls): Adjust accordingly.
8345 (maybe_commonize_var): Likewise.
8346 (grokfndecl): Likewise.
8347 (start_function): Likewise.
8348 (start_method): Likewise.
8349 * decl2.c (key_method): Likewise.
8350 (import_export_decl): Likewise.
8351 * method.c (implicitly_declare_fn): Likewise.
8352 * optimize.c (maybe_clone_body): Likewise.
8353
83542001-04-05 Benjamin Kosnik <bkoz@redhat.com>
8355
8356 * lang-specs.h: Add __DEPRECATED.
8357
8358Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
8359
8360 * search.c (get_dynamic_cast_base_type): When building a new
8361 constant, set its type to ssizetype.
8362
83632001-04-04 Jakub Jelinek <jakub@redhat.com>
8364
8365 * optimize.c (expand_call_inline): Only add newly inlined statements
8366 into inlined_stmts.
8367
83682001-04-03 Mark Mitchell <mark@codesourcery.com>
8369
8370 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
8371 (OPERATOR_FORMAT): Likewise.
8372 (OPERATOR_TYPENAME_FORMAT): Likewise.
8373 * operators.def: Remove old name-mangling information.
8374 * decl.c (grok_op_properties): Adjust accordingly.
8375 * lex.c (init_operators): Likewise.
8376 * rtti.c (get_tinfo_decl): Issue error messages about types that
8377 have variable size.
8378
83792001-04-03 Mark Mitchell <mark@codesourcery.com>
8380
8381 * decl2.c (import_export_decl): Don't call import_export_class
8382 when processing an inline member function.
8383 * semantics.c (expand_body): Call import_export_decl before
8384 emitting inline functions.
8385
83862001-03-28 Richard Henderson <rth@redhat.com>
8387
8388 IA-64 ABI Exception Handling:
8389 * cp-tree.def (EH_SPEC_BLOCK): New.
8390 (MUST_NOT_THROW_EXPR): New.
8391 * cp-tree.h: Update changed function declarations.
8392 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
8393 (CPTI_CALL_UNEXPECTED): New.
8394 (struct cp_language_function): Rename x_eh_spec_try_block
8395 to x_eh_spec_block.
8396 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
8397 * decl.c (current_binding_level): If no current function
8398 bindings, revert to scope_chain.
8399 (initialize_predefined_identifiers): Remove __cp_push_exception.
8400 (store_parm_decls): Use begin_eh_spec_block.
8401 (finish_function): Use finish_eh_spec_block.
8402 (mark_lang_function): Update for name changes.
8403 * decl2.c (finish_file): No mark_all_runtime_matches.
8404 * dump.c (cp_dump_tree): Handle new tree codes.
8405 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
8406 * except.c (catch_language_init, catch_language): Remove.
8407 (init_exception_processing): Don't set language code.
8408 Initialize call_unexpected_node, protect_cleanup_actions,
8409 eh_personality_libfunc, lang_eh_runtime_type.
8410 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
8411 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
8412 (prepare_eh_type): Split out type canonicalizations ...
8413 (build_eh_type_type): ... from here.
8414 (build_eh_type_type_ref): Remove.
8415 (mark_all_runtime_matches): Remove.
8416 (build_exc_ptr): New.
8417 (do_begin_catch, do_end_catch): New.
8418 (do_pop_exception): Remove.
8419 (build_terminate_handler): Remove.
8420 (choose_personality_routine): Split out language choice from ...
8421 (initialize_handler_parm): ... here.
8422 Use MUST_NOT_THROW_EXPR.
8423 (expand_start_catch_block): Use do_begin_catch. Simplify Java
8424 exception object handling.
8425 (expand_start_eh_spec, expand_end_eh_spec): Remove.
8426 (expand_exception_blocks, alloc_eh_object): Remove.
8427 (begin_eh_spec_block, finish_eh_spec_block): New.
8428 (do_allocate_exception, do_free_exception): New.
8429 (expand_throw): Merge into ...
8430 (build_throw): ... here. Update for abi.
8431 * expr.c (cplus_expand_expr): No expand_internal_throw.
8432 Handle MUST_NOT_THROW_EXPR.
8433 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
8434 * semantics.c (*) Update for except.h name changes.
8435 (genrtl_try_block): No protect_with_terminate.
8436 (genrtl_eh_spec_block): New.
8437 (genrtl_handler): Don't emit the goto here.
8438 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
8439 (genrtl_finish_function): Don't expand_exception_blocks.
8440 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
8441
84422001-03-28 Richard Henderson <rth@redhat.com>
8443
8444 * decl.c (struct named_label_list): Rename eh_region to
8445 in_try_scope, add in_catch_scope.
8446 (struct binding_level): Rename eh_region to is_try_scope,
8447 add is_catch_scope.
8448 (note_level_for_try): Rename from note_level_for_eh.
8449 (note_level_for_catch): New.
8450 (poplevel): Copy both is_try_scope and is_catch_scope to
8451 the named_label_list struct.
8452 (check_previous_goto_1): Don't check for catch block via
8453 DECL_ARTIFICIAL; use in_try_scope instead.
8454 (check_goto): Likewise.
8455 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
8456 * except.c (expand_start_catch_block): Call note_level_for_catch.
8457 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
8458
84592001-03-27 Richard Henderson <rth@redhat.com>
8460
8461 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
8462 exceptions_via_longjmp.
8463
84642001-03-27 Phil Edwards <pme@sources.redhat.com>
8465
8466 * pt.c (check_default_tmpl_args): Make error messages clearer.
8467
84682001-03-26 Phil Edwards <pme@sources.redhat.com>
8469
8470 * error.c: Also undefine 'A' macro used for cp_printers definition.
8471
84722001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8473
8474 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
8475
84762001-03-26 Mike Yang <yang@research.att.com>
8477 Mark Mitchell <mark@codesourcery.com>
8478
8479 * dump.c (dump_access): New function.
8480 (cp_dump_tree): Use it. Dump basetype information for class
8481 types.
8482
84832001-03-26 Mark Mitchell <mark@codesourcery.com>
8484
8485 * Makefile.in (optimize.o): Depend on params.h.
8486 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
8487 (init_decl_processing): Set flag_no_inline when doing
8488 inlining-on-trees.
8489 * optimize.c: Include params.h.
8490 (struct inline_data): Improve documentation of FNS. Add
8491 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
8492 (INSNS_PER_STMT): New macro.
8493 (remap_block): Use CLONING_P.
8494 (inlinable_function_p): Don't inline big functions.
8495 (expand_call_inline): Keep track of how much inlining we've done.
8496 (optimize_function): Set FIRST_INLINED_FN.
8497 (maybe_clone_body): Set CLONING_P.
8498 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
8499 tree nodes.
8500 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
8501 rest_of_compilation. Clear DECL_RTL for local variables
8502 afterwards.
8503 (clear_decl_rtl): New function.
8504
85052001-03-26 Nathan Sidwell <nathan@codesourcery.com>
8506
8507 Implement DR 209
8508 * cp-tree.h (skip_type_access_control,
8509 reset_type_access_control): Prototype.
8510 * decl.c (grokdeclarator): Access of friends is not checked.
8511 * parse.y (component_decl_list): Reset type access control.
8512 * semantics.c (decl_type_access_control): Clear
8513 current_type_lookups.
8514 (save_type_access_control): Don't save if not deferring.
8515 (skip_type_access_control, reset_type_access_control): New
8516 functions.
8517 (begin_class_definition): Do type access control for basetypes.
8518 Start deferred access control.
8519 (finish_class_definition): Resume immediate access control if
8520 this is a local class.
8521
85222001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8523
8524 * class.c (add_method): Use memcpy/memmove, not bcopy.
8525
8526 * decl.c (duplicate_decls): Likewise.
8527
85282001-03-23 Jakub Jelinek <jakub@redhat.com>
8529
8530 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
8531 not `_'.
8532
85332001-03-23 Jakub Jelinek <jakub@redhat.com>
8534
8535 * decl.c (local_names): Define.
8536 (push_local_name): New.
8537 (grok_reference_init): Return init if initializing static reference
8538 variable with non-constant instead of emitting it.
8539 Move expand_static_init call to cp_finish_decl.
8540 (layout_var_decl): Call push_local_name.
8541 (maybe_commonize_var): Allow inlining functions even if they have
8542 static local variables, use comdat_linkage for them if flag_weak.
8543 (check_initializer): Call obscure_complex_init if
8544 grok_reference_init returned nonzero.
8545 (save_function_data): Clear x_local_names.
8546 (pop_cp_function_context): Free x_local_names.
8547 (mark_inlined_fns): Remove.
8548 (mark_lang_function): Mark x_local_names.
8549 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
8550 Mark inlined_fns as tree, remove call to mark_inlined_fns.
8551 * class.c (alter_access): Ensure DECL_ACCESS is never set if
8552 DECL_DISCRIMINATOR_P.
8553 * cp-tree.h (cp_language_function): Add x_local_names.
8554 (lang_decl_flags): Add discriminator into u2.
8555 (lang_decl_inlined_fns): Remove.
8556 (lang_decl): inlined_fns is now a TREE_VEC.
8557 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
8558 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
8559 TREE_VEC, not a custom structure.
8560 (optimize_function): Likewise.
8561 * mangle.c (discriminator_for_local_entity): Discriminate among
8562 VAR_DECL local entities.
8563 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
8564 is not valid.
8565
85662001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
8567
8568 Add support for Java interface method calls.
8569 * cp-tree.h (struct lang_type): Add java_interface flag.
8570 (TYPE_JAVA_INTERFACE): New macro.
8571 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
8572 by setting TYPE_JAVA_INTERFACE.
8573 * call.c (java_iface_lookup_fn): New static.
8574 (build_over_call): If calling a method declared in a
8575 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
8576 expression which resolves the function address.
8577 (build_java_interface_fn_ref): New function.
8578
85792001-03-22 Richard Henderson <rth@redhat.com>
8580
8581 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
8582 * except.c: Don't include it.
8583
85842001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8585 based on an idea from Joe Buck <jbuck@synopsys.com>
8586
8587 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
8588 New nonterminals.
8589 (data_def, component_decl): Add reductions to bad_decl.
8590
85912001-03-22 Jakub Jelinek <jakub@redhat.com>
8592
8593 * method.c (do_build_assign_ref): Don't use build_modify_expr for
8594 anonymous aggregates, since they don't have assignment operator
8595 method.
8596 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
8597 assignment operators for anonymous structure fields.
8598
85992001-03-21 Jason Merrill <jason@redhat.com>
8600
8601 * pt.c (instantiate_decl): Abort if we see a member constant
8602 instantiation that doesn't already have its initializer.
8603 Downgrade explicit instantiation without definition to pedwarn.
8604
8605 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
8606 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
8607 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
8608
8609 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
8610 (pending_vtables): Remove.
8611 * decl2.c (pending_vtables): Remove.
8612 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
8613 CLASSTYPE_VTABLE_NEEDS_WRITING.
8614 (import_export_class): Likewise.
8615 (init_decl2): Don't mark pending_vtables.
8616 * lex.c (handle_pragma_vtable): Just sorry.
8617 * pt.c (instantiate_class_template): Don't mess with
8618 CLASSTYPE_VTABLE_NEEDS_WRITING.
8619 (mark_class_instantiated): Likewise.
8620 * ptree.c (print_lang_type): Don't print it.
8621 * semantics.c (begin_class_definition): Don't set it.
8622
8623 * pt.c (template_tail): Replace with last_pending_template.
8624 (maybe_templates, maybe_template_tail): Remove.
8625 (add_pending_template): Adjust.
8626 (instantiate_pending_templates): Adjust.
8627
8628 * cp-tree.h (struct saved_scope): Remove lang_stack field.
8629 (current_lang_stack): Remove.
8630 * decl.c (maybe_push_to_top_level): Don't initialize it.
8631 (duplicate_decls): Use current_lang_depth.
8632 (xref_basetypes): Likewise.
8633 * class.c (current_lang_depth): New fn.
8634 (push_lang_context): Use more varray functionality.
8635 (pop_lang_context): Likewise.
8636
8637 * error.c (GLOBAL_THING): Always use '__'.
8638
86392001-03-21 Mark Mitchell <mark@codesourcery.com>
8640
8641 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
8642
8643 * mangle.c (mangle_decl_string): Mangle the names of overloaded
8644 operators, even when they have `extern "C"' linkage.
8645
86462001-03-19 Mark Mitchell <mark@codesourcery.com>
8647
8648 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
8649 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8650 where it's not necessary.
8651 (add_method): Remove optimization involving comparison of
8652 DECL_ASSEMBLER_NAME.
8653 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
8654 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8655 where it's not necessary.
8656 (check_methods): Likewise.
8657 (build_clone): Likewise.
8658 (built_vtt): Likewise.
8659 * cp-tree.h (DECL_NEEDED_P): Likewise.
8660 * decl.c (pushtag): Likewise.
8661 (duplicate_decls): Likewise.
8662 (pushdecl): Likewise.
8663 (builtin_function): Likewise.
8664 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
8665 (build_cp_library_fn): Likewise.
8666 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
8667 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8668 where it's not necessary.
8669 (make_rtl_for_nonlocal_decl): Likewise.
8670 (cp_finish_decl): Likewise.
8671 (grokfndecl): Likewise.
8672 (grokvardecl): Likewise.
8673 (grokdeclarator): Likewise.
8674 (start_function): Likewise.
8675 (cp_missing_return_ok_p): Likewise.
8676 * decl2.c (grokclassfn): Likewise.
8677 (check_classfn): Likewise.
8678 (finish_static_data_member_decl): Likewise.
8679 (grokfield): Likewise.
8680 * error.c (GLOBAL_IORD_P): Remove.
8681 (dump_global_iord): Improve output.
8682 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
8683 * except.c (nothrow_libfn_p): Summarily reject any function not in
8684 namespace-scope.
8685 * init.c (build_java_class_ref): Don't explicitly set
8686 DECL_ASSEMBLER_NAME after calling mangle_decl.
8687 * mangle.c (mangle_decl_string): Handle extern "C" functions.
8688 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
8689 * method.c (set_mangled_name_for_decl): Don't explicitly set
8690 DECL_ASSEMBLER_NAME after calling mangle_decl.
8691 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
8692 IDENTIFIER_GLOBAL_VALUE for the thunk.
8693 * pt.c (set_mangled_name_for_template_decl): Remove.
8694 (check_explicit_specialization): Don't use it.
8695 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
8696 (tsubst_friend_function): Likewise.
8697 (tsubst_decl): Likewise.
8698 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
8699 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
8700 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8701 where it's not necessary.
8702 (tinfo_base_init): Likewise.
8703 (create_real_tinfo_var): Likewise.
8704 * search.c (looup_field_1): Likewise.
8705 * semantics.c (finish_named_return_value): Likewise.
8706 * tree.c (init_tree): Set lang_set_decl_assembler_name.
8707
87082001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
8709
8710 Correct semantics restrictions checking in throw-expression.
8711 * except.c (is_admissible_throw_operand): New function.
8712 (build_throw): Use it.
8713
87142001-03-14 Mark Mitchell <mark@codesourcery.com>
8715
8716 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
8717 and its ilk.
8718
87192001-03-14 Mark Mitchell <mark@codesourcery.com>
8720
8721 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
8722 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
8723 * decl.c (duplicate_decls): Likewise.
8724 (builtin_function): Likewise.
8725 (build_library_fn): Likewise.
8726 (build_cp_library_fn): Likewise.
8727 (check_initializer): Likewise.
8728 (cp_finish_decl): Likewise.
8729 * decl2.c (grokfield): Likewise.
8730 (grok_function_init): Remove #if 0'd code.
8731 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
8732 * friend.c (do_friend): Likewise.
8733 * init.c (get_temp_regvar): Likewise.
8734 * method.c (make_thunk): Likewise.
8735 * pt.c (tsubst_friend_function): Likewise.
8736 (tsubst_decl): Likewise.
8737 (regenerate_decl_from_template): Likewise.
8738 * semantics.c (genrtl_named_return_value): Likewise.
8739 (expand_body): Likewise.
8740 (genrtl_finish_function): Likewise.
8741 * tree.c (cp_tree_equal): Likewise.
8742
87432001-03-12 Nathan Sidwell <nathan@codesourcery.com>
8744
8745 * call.c (convert_like_real): Add extra semantics to INNER
8746 parameter. Don't convert to temporary if a user conversion
8747 gives us an lvalue that we're about to bind to a reference.
8748 Set INNER to indicate pending reference binding on recursive
8749 calls.
8750
87512001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8752
8753 * cp/lex.c: Delete duplicate pending_lang_change.
8754
87552001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8756
8757 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
8758 Similarly.
8759 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
8760 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
8761
87622001-03-09 Zack Weinberg <zackw@stanford.edu>
8763
8764 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
8765
87662001-03-08 Stan Shebs <shebs@apple.com>
8767
8768 * cp-tree.h (set_identifier_local_value): Remove unused decl.
8769
87702001-03-06 Zack Weinberg <zackw@stanford.edu>
8771
8772 * spew.c: Remove references to CPP_OSTRING.
8773
87742001-03-06 Andrew Haley <aph@redhat.com>
8775
8776 * typeck.c (convert_arguments): Check that we have an fndecl.
8777
87782001-03-05 Andrew Haley <aph@redhat.com>
8779
8780 * typeck.c (convert_arguments): Don't do ellipsis conversion for
8781 __built_in_constant_p.
8782
87832001-03-02 Nathan Sidwell <nathan@codesourcery.com>
8784
8785 * typeck.c (build_static_cast): Allow enum to enum conversions
8786 as per DR 128.
8787
87882001-03-02 Nathan Sidwell <nathan@codesourcery.com>
8789
8790 * class.c (check_field_decls): Pointers to member do not a
8791 non-pod struct make, as per DR 148.
8792
87932001-03-02 Nathan Sidwell <nathan@codesourcery.com>
8794
8795 * call.c (joust): cp_pedwarn when using gnu extension concerning
8796 worst conversion sequences.
8797
87982001-03-01 Zack Weinberg <zackw@stanford.edu>
8799
8800 * decl.c: Replace all uses of 'boolean' with 'bool'.
8801
88022001-03-01 Zack Weinberg <zackw@stanford.edu>
8803
8804 * lang-specs.h: Add zero initializer for cpp_spec field to
8805 all array elements that need one. Don't put an #ifdef inside
8806 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
8807 use it.
8808
88092001-03-01 Nathan Sidwell <nathan@codesourcery.com>
8810
8811 Implement using decls inside template functions.
8812 * decl2.c (validate_nonmember_using_decl): Don't special case
8813 fake_std_node in the global namespace. Don't reject early when
8814 processing a template.
8815 (do_local_using_decl): Add to statement tree. Don't do further
8816 processing when building a template.
8817 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
8818
88192001-03-01 Nathan Sidwell <nathan@codesourcery.com>
8820
8821 * decl2.c (do_nonmember_using_decl): Don't complain if we find
8822 same function. Do complain about ambiguating extern "C"
8823 declarations.
8824
88252001-02-28 Nathan Sidwell <nathan@codesourcery.com>
8826
8827 Remove floating point and complex type template constant parms.
8828 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
8829 COMPLEX_TYPE extensions.
8830 (invalid_nontype_parm_type_p): Likewise.
8831
88322001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
8833
8834 * except.c (call_eh_info): Revert "match_function"'s type.
8835
88362001-02-27 Nathan Sidwell <nathan@codesourcery.com>
8837
8838 Fix ctor vtable vcall offsets.
8839 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
8840 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
8841 (get_matching_base): Remove.
8842 (get_original_base): New function.
8843 (build_vtbl_initializer): Initialize vid.rtti_binfo.
8844 Use a virtual thunk for a ctor vtable with an index
8845 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
8846 primary base within a constructor vtable. Only set
8847 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
8848 when primary base has been lost.
8849 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
8850
88512001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
8852
8853 * call.c (joust): Ensure more_specialized()'s argument length
8854 parameter has correct value for constructors.
8855
88562001-02-26 Nathan Sidwell <nathan@codesourcery.com>
8857
8858 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
8859
8860 * decl.c (mark_inlined_fns): Prototype.
8861
88622001-02-22 Mark Mitchell <mark@codesourcery.com>
8863
8864 * spew.c (yylex): Correct handling of friends.
8865
88662001-02-22 Mark Mitchell <mark@codesourcery.com>
8867
8868 * mangle.c (write_encoding): Pass write_function_type the
8869 FUNCTION_DECL for the function being encoded.
8870 (write_function_type): Pass it along to write_bare_function_type.
8871 (write_bare_function_type): Pass it along to write_method_parms.
8872 (write_method_parms): Don't mangle the compiler-generated
8873 parameters to a constructor or destructor.
8874
88752001-02-22 Andreas Jaeger <aj@suse.de>
8876
8877 * optimize.c: Include toplev.h for
8878 note_deferral_of_defined_inline_function prototype.
8879
88802001-02-22 Jakub Jelinek <jakub@redhat.com>
8881
8882 * cp-tree.h (struct lang_decl_inlined_fns): New.
8883 (struct lang_decls): Add inlined_fns.
8884 (DECL_INLINED_FNS): New macro.
8885 * optimize.c (struct inline_data): Add inlined_fns.
8886 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
8887 (inlinable_function_p): Likewise, fix typo in comment,
8888 function is not inlinable if it already inlined function currently
8889 being optimized.
8890 (expand_call_inline): Add fn to inlined_fns if necessary.
8891 (optimize_function): Initialize inlined_fns.
8892 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
8893 * decl.c (mark_inlined_fns): New function.
8894 (lang_mark_tree): Call it.
8895
88962001-02-21 Jason Merrill <jason@redhat.com>
8897
8898 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
8899 (DECL_UNINLINABLE): Move to middle-end.
8900
8901 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
8902 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
8903 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
8904 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
8905 parms and outer BLOCK. note_deferral_of_defined_inline_function.
8906
8907 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
8908 second parm of op=.
8909
89102001-02-19 Mark Mitchell <mark@codesourcery.com>
8911
8912 * decl2.c (set_decl_namespace): Allow explicit instantiations in
8913 any namespace.
8914
89152001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8916
8917 * optimize.c (expand_call_inline): Don't walk subtrees of type
8918 nodes.
8919
89202001-02-18 Mark Mitchell <mark@codesourcery.com>
8921
8922 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
8923 for a destructor.
8924
89252001-02-18 Jason Merrill <jason@redhat.com>
8926
8927 Do put the VTT parameter in DECL_ARGUMENTS.
8928 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
8929 (current_vtt_parm): New macro.
8930 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
8931 (DECL_HAS_VTT_PARM_P): New macro.
8932 (DECL_VTT_PARM): Remove.
8933 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
8934 * decl.c (duplicate_decls): Only copy the operator code if
8935 appropriate.
8936 (start_function): Set current_vtt_parm.
8937 (lang_mark_tree): Don't mark vtt_parm.
8938 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
8939 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
8940 * class.c (build_clone): Maybe remove the VTT parm.
8941 * optimize.c (maybe_clone_body): Set up the VTT parm.
8942 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
8943 * call.c (build_over_call): Just allow the VTT arg.
8944 * method.c (make_thunk): Don't set DECL_VTT_PARM.
8945 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
8946 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
8947 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
8948 * error.c (dump_function_decl): Likewise.
8949 * call.c (build_user_type_conversion_1, convert_like_real): Abort
8950 if we try to call a constructor with in-charge or VTT parms.
8951 * method.c (skip_artificial_parms_for): New fn.
8952 * call.c (add_function_candidate, build_over_call): Call it.
8953 * call.c (build_new_method_call): Use current_vtt_parm.
8954 * init.c (expand_virtual_init): Likewise.
8955 * class.c (same_signature_p): No longer static.
8956 * cp-tree.h: Declare it.
8957 * search.c (look_for_overrides_r): Use it.
8958
89592001-02-17 Mark Mitchell <mark@codesourcery.com>
8960
8961 * cp-tree.h (new_abi_rtti_p): Remove.
8962 (name_mangling_version): Likewise.
8963 (flag_do_squangling): Likewise.
8964 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
8965 * decl.c (grokfndecl): Likewise.
8966 * decl2.c (name_mangling_version): Remove.
8967 (flag_do_squangling): Likewise.
8968 (lang_f_options): Remove `squangle'.
8969 (unsupported_options): Add `squangle'.
8970 (cxx_decode_option): Issue a warning about uses of
8971 -fname-mangling-version.
8972 (finish_file): Remove old ABI support.
8973 * pt.c (check_explicit_specialization): Likewise.
8974 (tsubst_decl): Likewise.
8975 * rtti.c (init_rtti_processing): Likewise.
8976 (build_headof): Likewise.
8977 (get_tinfo_decl_dynamic): Likewise.
8978 (tinfo_from_decl): Likewise.
8979 (build_dynamic_cast_1): Likewise.
8980 (synthesize_tinfo_var): Likewise.
8981 * init.c (build_new): Allow enumeration types for the array-bounds
8982 in a direct-new-declarator.
8983
8984 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
8985
8986 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
8987 TREE_PROTECTED from the template being specialized.
8988
89892001-02-17 Jason Merrill <jason@redhat.com>
8990
8991 * decl2.c (build_artificial_parm): Set TREE_READONLY.
8992
8993 * decl.c (bad_specifiers): Allow throw specs on things with
8994 pointer-to-function or -member-function type.
8995 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
8996 a pmf.
8997
89982001-02-17 Mark Mitchell <mark@codesourcery.com>
8999
9000 * call.c (check_dtor_name): Handle template names correctly.
9001
90022001-02-16 Jason Merrill <jason@redhat.com>
9003
9004 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
9005 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
9006 * optimize.c (maybe_clone_body): Don't substitute it.
9007 * call.c (build_new_method_call): Check in_chrg instead.
9008 * init.c (expand_virtual_init): Likewise.
9009
90102001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
9011
9012 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
9013 class-type introduces at least a type-name.
9014
90152001-02-16 Jakub Jelinek <jakub@redhat.com>
9016
9017 * call.c (convert_like_real): Create a temporary for non-lvalue.
9018
90192001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
9020
9021 * cp-tree.h: Fix typos in comments.
9022
90232001-02-16 Jason Merrill <jason@redhat.com>
9024
9025 * optimize.c (remap_block): If we're compiling a clone, pass the
9026 new block to insert_block.
9027
90282001-02-16 Mark Mitchell <mark@codesourcery.com>
9029
9030 * semantics.c (finish_asm_stmt): Robustify.
9031
90322001-02-15 Mark Mitchell <mark@codesourcery.com>
9033
9034 * pt.c (push_template_decl_real): Don't remangle the name of a
9035 class template.
9036
90372001-02-15 Jim Meyering <meyering@lucent.com>
9038
9039 * Make-lang.in (c++.install-common): Depend on installdirs.
9040 (c++.install-info): Likewise.
9041 (c++.install-man): Likewise.
9042
90432001-02-15 Mark Mitchell <mark@codesourcery.com>
9044
9045 * typeck2.c (build_m_component_ref): Robustify.
9046
90472001-02-15 Alexandre Oliva <aoliva@redhat.com>
9048
9049 * friend.c (do_friend): Don't take the nested [template] class
9050 into account when deciding whether to warn about the friend
9051 function not referring to a template function.
9052
90532001-02-14 Jakub Jelinek <jakub@redhat.com>
9054
9055 * typeck.c (build_unary_op): Clarify error message.
9056
90572001-02-08 Aldy Hernandez <aldyh@redhat.com>
9058
9059 * parse.y (component_constructor_declarator): allow optional
9060 parentheses around constructor class name.
9061
90622001-02-14 Nathan Sidwell <nathan@codesourcery.com>
9063
9064 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
9065 section.
9066 * init.c (emit_base_init): Remove incorrect comment about
9067 virtual bases.
9068 * method.c (make_thunk): Fix comment alignment.
9069
90702001-02-14 Nathan Sidwell <nathan@codesourcery.com>
9071
9072 Kill remnants of this is variable.
9073 * cp-tree.h (flag_this_is_variable): Remove.
9074 * decl2.c (flag_this_is_variable): Remove.
9075 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
9076 (build_vbase_path): The path is non-static, even in a cdtor.
9077 (resolves_to_fixed_type_p): Add additional return value.
9078 * search.c (init_vbase_pointers): Adjust.
9079 * tree.c (lvalue_p_1): Adjust.
9080 * typeck.c (mark_addressable): Adjust.
9081
90822001-02-14 Nathan Sidwell <nathan@codesourcery.com>
9083
9084 * pt.c (unify): Don't check cv quals of array types.
9085
90862001-02-14 Nathan Sidwell <nathan@codesourcery.com>
9087
9088 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
9089 check whether we already have the type.
9090
90912001-02-13 Mark Mitchell <mark@codesourcery.com>
9092
9093 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
9094 * call.c (build_op_delete_call): Simplify to remove duplicate
9095 code.
9096 * class.c (clone_function_decl): Don't build the deleting variant
9097 of a non-virtual destructor.
9098 * decl.c (finish_destructor_body): Don't call delete if this is a
9099 non-virtual destructor.
9100 * init.c (build_delete): Explicitly call `operator delete' when
9101 deleting an object with a non-virtual destructor.
9102
91032001-02-13 Jason Merrill <jason@redhat.com>
9104
9105 * lang-specs.h: Add more __EXCEPTIONS.
9106
91072001-02-12 Nathan Sidwell <nathan@codesourcery.com>
9108
9109 * typeck2.c (process_init_constructor): Check
9110 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
9111
91122001-02-12 Nathan Sidwell <nathan@codesourcery.com>
9113
9114 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
9115 Remove spurious information in comment. Allow further
9116 adjustments of REFERENCE_TYPE args.
9117
91182001-02-12 Nathan Sidwell <nathan@codesourcery.com>
9119
9120 * errfn.c (cp_deprecated): Tweak diagnostic text.
9121 * parse.y (new_initializer): Deprecate initializer lists
9122 extension.
9123
91242001-02-12 Mark Mitchell <mark@codesourcery.com>
9125
9126 Remove old ABI support.
9127
91282001-02-11 Mark Mitchell <mark@codesourcery.com>
9129
9130 * decl2.c (flag_vtable_thunks): Always set it to 1.
9131 (flag_new_abi): Likewise.
9132 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9133
9134 * Makefile.in (g++spec.o): Fix typo.
9135
91362001-02-09 Jason Merrill <jason@redhat.com>
9137
9138 * lang-specs.h: Restore definition of __EXCEPTIONS.
9139
91402001-02-08 Jason Merrill <jason@redhat.com>
9141
9142 * search.c (shared_member_p): New function.
9143 (lookup_field_r): Use it.
9144 * cp-tree.h (SHARED_MEMBER_P): Remove.
9145
9146 * method.c (process_overload_item): Handle template-dependent array
9147 bounds.
9148 * pt.c (type_unification_real): If we end up with undeduced nontype
9149 parms, try again.
9150
9151 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
9152 types.
9153
9154 * typeck2.c (friendly_abort): Don't say anything if we have
9155 earlier errors or sorries.
9156
9157 * decl.c (check_tag_decl): Notice attempts to redefine bool and
9158 wchar_t. Ignore if in_system_header.
9159
9160 * decl.c (maybe_push_cleanup_level): New fn...
9161 (start_decl_1): ...split out from here.
9162 * cvt.c (build_up_reference): Use it.
9163 * cp-tree.h: Declare it.
9164
91652001-02-07 Mark Mitchell <mark@codesourcery.com>
9166
9167 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
9168 spec.
9169
91702001-02-06 Nathan Sidwell <nathan@codesourcery.com>
9171
9172 * pt.c (lookup_template_class): Make sure it's a primary
9173 template or template_template_parm when called from the parser.
9174 (instantiate_template_class): Add assertion.
9175
91762001-02-05 Alexandre Oliva <aoliva@redhat.com>
9177
9178 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
9179 from error_mark_node.
9180
91812001-02-05 Nathan Sidwell <nathan@codesourcery.com>
9182
9183 Fix specification and implementation bugs in V3 ABI
9184 construction vtables.
9185 * cp-tree.h (flag_dump_class_layout): New flag.
9186 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
9187 (BINFO_LOST_PRIMARY_P): New flag.
9188 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
9189 (BINFO_PRIMARY_MARKED_P): Rename to ...
9190 (BINFO_PRIMARY_P): ... here.
9191 (binfo_via_virtual): New prototype.
9192 * decl2.c (flag_dump_class_layout): New flag.
9193 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
9194 use `=' as a file name separator.
9195 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
9196 bases.
9197 (build_vtbl_address): If this is a virtual primary base, then
9198 get the vtbl of what it is ultimately primary for.
9199 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
9200 for BINFO_PRIMARY_P.
9201 (dfs_skip_nonprimary_vbases_markedp): Likewise.
9202 (get_shared_vbase_if_not_primary): Likewise.
9203 (dfs_get_pure_virtuals): Likewise.
9204 (expand_upcast_fixups): Likewise.
9205 (fixup_virtual_upcast_offsets): Likewise.
9206 (dfs_find_vbase_instance): Likewise.
9207 (find_vbase_instance): Likewise.
9208 (binfo_from_vbase): Adjust comment to reflect reality.
9209 (binfo_via_virtual): New function.
9210 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
9211 for binfo walking during VTT construction.
9212 (dfs_mark_primary_bases): Remove.
9213 (force_canonical_binfo_r): New function.
9214 (force_canonical_binfo): New function.
9215 (mark_primary_virtual_base): New function.
9216 (mark_primary_bases): Walk in inheritance graph order, use
9217 mark_primary_virtual_base.
9218 (determine_primary_base): Use some more intermediate variables.
9219 (dfs_find_final_overrider): Don't check for overriding along a
9220 virtual path.
9221 (dfs_modify_vtables): Walk into primary virtual bases too.
9222 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
9223 (build_base_fields): Likewise.
9224 (dfs_set_offset_for_unshared_vbases): Likewise.
9225 (layout_virtual_bases): Likewise.
9226 (end_of_class): Likewise.
9227 (finish_struct_1): Call dump_class_hierarchy, if requested.
9228 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
9229 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
9230 (dump_class_hierarchy): Add file parameter. Append to file, if
9231 required.
9232 (finish_vtbls): Adjust accumulate_vtbl_inits call.
9233 Use canonical base for virtual bases.
9234 (build_vtt): Add more comments. Adjust build_vtt_inits call.
9235 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
9236 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
9237 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
9238 virtual VTTs.
9239 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
9240 from DATA. We want virtual primary bases and all bases via virtual.
9241 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
9242 virtual base when not a construction vtable.
9243 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
9244 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
9245 Use canonical bases when processing virtual bases.
9246 (accumulate_vtbl_inits): We're interested in any base via a
9247 virtual path.
9248 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
9249 within a construction vtable, determine what is being overridden.
9250 (build_vtbl_initializer): Add more comments
9251 (add_vcall_offset_vtbl_entries_1): Adjust comment.
9252 (build_rtti_vtbl_entries): Check if the base has lost its
9253 primary.
9254
92552001-02-05 Mark Mitchell <mark@codesourcery.com>
9256
9257 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
9258
9259Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9260
9261 * decl.c (pushdecl): Call abort instead of fatal.
9262 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
9263 * init.c (build_new_1): Likewise.
9264 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
9265 * decl.c (build_typename_type): hash_table_init now returns void.
9266 decl.c (init_decl_processing): Make an error non-fatal.
9267
92682001-02-04 Mark Mitchell <mark@codesourcery.com>
9269
9270 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
9271 Document.
9272 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
9273 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
9274 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
9275 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
9276 * decl.c (maybe_commonize_var): Use the new name-mangling where
9277 appropriate.
9278 * decl2.c (comdat_linkage): Enhance comments. Make all
9279 compiler-generated things static, if COMDAT is not available.
9280 (get_tinfo_decl): Do not make typeinfo objects that belong in the
9281 library COMDAT.
9282 (tinfo_base_init): Use the correct mangled name for typeinfo
9283 strings, and push them into the global scope.
9284 (typeinfo_in_lib_p): New function.
9285 (synthesize_tinfo_var): Use it.
9286 (create_real_tinfo_var): Likewise.
9287
92882001-02-03 Jakub Jelinek <jakub@redhat.com>
9289
9290 * decl.c (push_class_binding): Use context_for_name_lookup instead
9291 of CP_DECL_CONTEXT.
9292 * search.c (context_for_name_lookup): Remove static. Check for NULL
9293 context in the loop.
9294 * cp-tree.h (context_for_name_lookup): Add prototype.
9295
92962001-02-02 Jakub Jelinek <jakub@redhat.com>
9297
9298 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
9299 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
9300 Remove.
9301 * call.c (convert_class_to_reference, build_user_type_conversion_1,
9302 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
9303
93042001-02-02 Mark Mitchell <mark@codesourcery.com>
9305
9306 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
9307 of macros used when compiling g++spec.c.
9308 * g++spec.c (lang_specific_driver): Link with the shared
9309 libgcc by default.
9310
93112001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
9312
9313 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
9314 make_reference_declarator, make_call_declarator), method.c
9315 (implicitly_declare_fn), parse.y (namespace_using_decl,
9316 notype_unqualified_id, expr_or_declarator, new_type_id,
9317 after_type_declarator, direct_after_type_declarator,
9318 notype_declarator, complex_notype_declarator,
9319 complex_direct_notype_declarator, qualified_id,
9320 notype_qualified_id, overqualified_id, direct_new_declarator,
9321 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
9322 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
9323 instead of build_parse_node.
9324
93252001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9326
9327 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
9328 (minus_one_node): Moved to top level gcc directory. Renamed
9329 to integer_minus_one_node.
9330
9331 * init.c (init_init_processing): Don't set minus_one_node.
9332 (build_vec_init): Use integer_minus_one_node.
9333
9334 * rtti.c (get_tinfo_decl_dynamic): Likewise.
9335
93362001-01-28 Jakub Jelinek <jakub@redhat.com>
9337
9338 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
9339 identical and they would be replaced with constant, remove
9340 MODIFY_EXPR from the tree.
9341
93422001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9343
9344 * Make-lang.in: Remove all dependencies on defaults.h.
9345 * call.c: Don't include defaults.h.
9346 * decl.c: Likewise.
9347 * decl2.c: Likewise.
9348 * except.c: Likewise.
9349 * pt.c: Likewise.
9350 * rtti.c: Likewise.
9351 * tree.c: Likewise.
9352 * typeck.c: Likewise.
9353
93542001-01-25 Jakub Jelinek <jakub@redhat.com>
9355
9356 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
9357 operators even in "C" linkage.
9358 * method.c (set_mangled_name_for_decl): Likewise.
9359 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
9360 overloaded operators in "C" linkage.
9361
93622001-01-24 Nathan Sidwell <nathan@codesourcery.com>
9363
9364 * pt.c (tsubst_decl): Remove IN_DECL parameter.
9365 (tsubst_arg_types): Check parameter is not void.
9366 (tsubst): Adjust tsubst_decl call.
9367
93682001-01-24 Nathan Sidwell <nathan@codesourcery.com>
9369
9370 * call.c (add_builtin_candidate): Quote std properly, from
9371 previous change.
9372
93732001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9374
9375 * pt.c (check_explicit_specialization): Clone constructors and
9376 destructors.
9377
93782001-01-23 Nathan Sidwell <nathan@codesourcery.com>
9379
9380 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
9381 indicates anything special about template depth. Make sure we
9382 only count the user visible template classes.
9383
93842001-01-23 Nathan Sidwell <nathan@codesourcery.com>
9385
9386 * call.c (build_conv): Typo in comment.
9387 (add_builtin_candidate): Add more explanation.
9388 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
9389 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
9390 when we have enumeral types.
9391 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
9392 candidates for relops and eqops.
9393 (joust): Simplify control flow. Allow a non-template user
9394 function to hide a builtin.
9395
93962001-01-22 Nathan Sidwell <nathan@codesourcery.com>
9397
9398 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
9399 (more_specialized): Add deduction parameter.
9400 * call.c (joust): Adjust more_specialized call.
9401 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
9402 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
9403 (get_bindings_order): Remove.
9404 (get_bindings_real): Add DEDUCE parameter.
9405 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
9406 REFERENCE_TYPE jig for DEDUCE_ORDER.
9407 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
9408 maybe_adjust_types_for_deduction.
9409 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
9410 directly.
9411 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
9412 (check_cv_quals_for_unify): Use new unify qualifier flags.
9413 (unify): Clear new unify qualifier flags.
9414 (get_bindings_real): Add DEDUCE parameter.
9415 (get_bindings): Adjust call to get_bindings_real.
9416 (get_bindings_overload): Likewise.
9417 (most_specialized_instantiation): Adjust call to
9418 more_specialized.
9419
94202001-01-19 Jason Merrill <jason@redhat.com>
9421
9422 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
9423
9424 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
9425 -fnew-abi.
9426
94272001-01-19 Ute Pelkmann <scope.muc@t-online.de>
9428
9429 * decl2.c (arg_assoc_class): Fix double iteration logic.
9430
94312001-01-19 Jason Merrill <jason@redhat.com>
9432
9433 * init.c (build_delete): Always call convert_force to strip cv-quals.
9434
9435 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
9436 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
9437 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
9438
94392001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9440
9441 * search.c (get_vbase_1): Count only virtual bases.
9442
94432001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9444
9445 * class.c (duplicate_tag_error): Robustify flag clearing.
9446
94472001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9448
9449 * cp-tree.h (lookup_template_class): Add complain parm.
9450 * decl.c (lookup_namespace_name): Adjust call to
9451 lookup_template_class.
9452 (make_typename_type): Likewise.
9453 * semantics.c (finish_template_type): Likewise.
9454 * pt.c (lookup_template_class): Add complain parm. Adjust.
9455 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
9456 (tsubst): Likewise.
9457
94582001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9459
9460 * pt.c (copy_default_args_to_explicit_spec): Preserve
9461 object's CV quals. Reorganize.
9462
94632001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9464
9465 * typeck.c (build_modify_expr): Say `initialization' for
9466 INIT_EXPRs.
9467 * init.c (build_default_init): Convert to enumeral type, if
9468 needed.
9469
94702001-01-18 Jakub Jelinek <jakub@redhat.com>
9471
9472 * parse.y (nomods_initdcl0): Properly set things up for
9473 initdcl0_innards.
9474
94752001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9476
9477 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
9478 (type_unification_real): Set it.
9479 (unify): Use it.
9480
94812001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9482
9483 * decl.c (finish_destructor_body): Convert to vbase pointer here.
9484
94852001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9486
9487 * semantics.c (begin_class_definition): Check we're not inside a
9488 template parm list.
9489
94902001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9491
9492 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
9493 BASELINK_P.
9494
94952001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9496
9497 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
9498 * call.c (build_over_call): Add comment.
9499
95002001-01-16 Daniel Berlin <dberlin@redhat.com>
9501
9502 * cvt.c (ocp_convert): Handle vector type conversion
9503 * typeck2.c (digest_init): Handle vector type initializations
9504
95052001-01-16 Phil Edwards <pme@sources.redhat.com>
9506
9507 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
9508 was given.
9509
95102001-01-15 Nathan Sidwell <nathan@codesourcery.com>
9511
9512 * pt.c (check_nontype_parm): Rename to ...
9513 (invalid_nontype_parm_type_p): ... here.
9514 (process_template_parm): Adjust.
9515 (convert_template_argument): Adjust.
9516
95172001-01-15 Nathan Sidwell <nathan@codesourcery.com>
9518
9519 * pt.c (check_nontype_parm): New function.
9520 (process_template_parm): Use it.
9521 (convert_template_argument): Use it.
9522 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
9523 member.
9524
95252001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
9526
9527 * tree.c: Add defaults.h
9528 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
9529 * Make-lang.in (cp/tree.o): Add defaults.h.
9530
95312001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
9532
9533 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
9534
95352001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
9536
9537 * g++.1: Change to be ".so man1/gcc.1".
9538
95392001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
9540
9541 * Make-lang.in (c++.info, c++.install-info): Build and install g++
9542 internals info.
9543 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
9544 ($(srcdir)/cp/g++int.info): New target.
9545 * gxxint.texi: Add info directory entry. Use @@ in email address.
9546 * .cvsignore: Update.
9547
95482001-01-12 Nathan Sidwell <nathan@codesourcery.com>
9549
9550 * typeck.c (build_c_cast): Do template processing earlier.
9551 Always pedwarn on array casts.
9552
95532001-01-12 Nathan Sidwell <nathan@codesourcery.com>
9554
9555 * friend.c (make_friend_class): Make sure a templated class is
9556 actually a template.
9557
95582001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9559
9560 * decl2.c (get_guard): Set linkage from guarded decl.
9561
95622001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9563
9564 * call.c (convert_default_arg): Check for unprocessed
9565 DEFAULT_ARG.
9566 * cp-tree.h (replace_defarg): Move to spew.c.
9567 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
9568 spew.c, which is where they really are.
9569 (done_pending_defargs): Declare.
9570 (unprocessed_defarg_fn): Declare.
9571 * decl.c (replace_defarg): Move to spew.c
9572 * parse.y (structsp): Call done_pending_defargs.
9573 * spew.c (defarg_fns): Rearrange list structure.
9574 (defarg_fnsdone): New static variable.
9575 (defarg_depfns): New static variable.
9576 (init_spew): Adjust.
9577 (add_defarg_fn): Store the type in TREE_TYPE.
9578 (do_pending_defargs): Detect and deal with ordering constraints
9579 and circularity.
9580 (done_pending_defargs): New function.
9581 (unprocessed_defarg_fn): New function.
9582 (replace_defarg): Moved from decl.c. Robustify. Don't save
9583 if circularity detected.
9584
95852001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9586
9587 * pt.c (unify): Check array has a domain, before checking
9588 whether it is variable sized.
9589
95902001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9591
9592 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
9593 parameters with pointers to arrays of unknown bound.
9594
95952001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9596
9597 * parse.y (template_parm_header, template_spec_header): New
9598 reductions. Split out from ...
9599 (template_header): ... here. Use them.
9600 (template_template_parm): Use template_parm_header.
9601 * semantics.c (finish_template_template_parm): Add assert.
9602
96032001-01-10 Mark Mitchell <mark@codesourcery.com>
9604
9605 * mangle.c (write_builtin_type): Fix thinko.
9606
9607 * pt.c (copy_default_args_to_explicit_spec_1): New function.
9608 (copy_default_args_to_explicit_spec): Likewise.
9609 (check_explicit_specialization): Use it.
9610
9611 * class.c (finish_struct_1): Remove last argument in call to
9612 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
9613 * decl.c (builtin_function): Likewise.
9614 (build_cp_library_fn): Likewise.
9615 (check_initializer): Likewise.
9616 (make_rtl_for_nonlocal_decl): Likewise.
9617 (cp_finish_decl): Likewise.
9618 (start_function): Likewise.
9619 * decl2.c (finish_anon_union): Likewise.
9620 * friend.c (do_friend): Likewise.
9621 * init.c (build_java_class_ref): Likewise.
9622 * method.c (make_thunk): Likewise.
9623 * pt.c (tsubst_friend_function): Likewise.
9624 * semantics.c (expand_body): Likewise.
9625
96262001-01-10 Mark Mitchell <mark@codesourcery.com>
9627
9628 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
9629 looking at DECL_CLONED_FUNCTION for non-functions.
9630
96312001-01-10 Nathan Sidwell <nathan@codesourcery.com>
9632
9633 * error.c (dump_template_parameter): Use parm to determine how
9634 to print default value.
9635
96362001-01-10 Nathan Sidwell <nathan@codesourcery.com>
9637
9638 * class.c (duplicate_tag_error): Clear more flags.
9639
96402001-01-10 Nathan Sidwell <nathan@codesourcery.com>
9641
9642 * call.c (build_new_method_call): Use binfo_for_vbase.
9643
96442001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9645
9646 * cp-tree.h (flag_cond_mismatch): Don't declare.
9647 * decl2.c (flag_cond_mismatch): Don't define.
9648 (lang_f_options): Remove cond-mismatch.
9649 (unsupported_options): Add cond-mismatch.
9650
96512001-01-09 Nathan Sidwell <nathan@codesourcery.com>
9652
9653 * class.c (handle_using_decl): Reject using of constructor name
9654 of sourcing class. Allow injecting of a method with same name as
9655 nested class. Fixup error messages.
9656
96572001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
9658
9659 * decl2.c (lang_decode_option): Handle -Wformat=2.
9660
96612001-01-08 Nathan Sidwell <nathan@codesourcery.com>
9662
9663 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
9664 initialized_in_class.
9665 (DECL_DEFINED_IN_CLASS_P): Rename to ...
9666 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
9667 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
9668 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
9669 * pt.c (check_default_tmpl_args): Adjust for
9670 DECL_INITIALIZED_IN_CLASS_P.
9671 (instantiate_class_template): Likewise.
9672 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9673
9674 * class.c (finish_struct): Constify saved_filename.
9675
96762001-01-08 Nathan Sidwell <nathan@codesourcery.com>
9677
9678 * class.c (duplicate_tag_error): Adjust diagnostic.
9679 (finish_struct): Locally set location to start of struct.
9680 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
9681
96822001-01-08 Nathan Sidwell <nathan@codesourcery.com>
9683
9684 * decl.c (struct binding_level): Adjust class_shadowed comments
9685 to reflect reality.
9686 (push_class_level_binding): Adjust comments to reflect reality.
9687 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
9688 Don't set TREE_VALUE on the class_shadowed list.
9689
96902001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9691
9692 * decl2.c (acceptable_java_type): Allow references too.
9693 * init.c (build_java_class_ref): When using the new ABI, search
9694 `class$' and have it mangled with `mangle_decl.'
9695 * mangle.c (write_java_integer_type_codes): New function.
9696 (write_builtin_type): Detect and mangle Java integer and real
9697 types.
9698
96992001-01-07 Mark Mitchell <mark@codesourcery.com>
9700
9701 * decl2.c (grokfield): Don't accept `asm' specifiers for
9702 non-static data members.
9703
97042001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9705
9706 * expr.c (cplus_expand_expr): Don't reset `target'.
9707
97082001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
9709
9710 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
9711
97122001-01-05 Nathan Sidwell <nathan@codesourcery.com>
9713
9714 * parse.y (template_datadef): Check for error_mark_node.
9715
97162001-01-05 Nathan Sidwell <nathan@codesourcery.com>
9717
9718 * cp-tree.def (DEFAULT_ARG): Make `x' class.
9719
97202001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
9721
9722 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
9723 (record_builtin_type): Make non-static.
9724 (flag_short_double): Don't declare.
9725 (init_decl_processing): Remove the creation of many tree nodes now
9726 in c_common_nodes_and_builtins.
9727 (build_void_list_node): New function.
9728 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
9729 * cp-tree.h (flag_short_wchar): Don't declare.
9730
97312001-01-04 Mark Mitchell <mark@codesourcery.com>
9732
9733 * call.c (build_conv): Don't use build1 for USER_CONV.
9734 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
9735
97362001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
9737
9738 * lex.c (lang_init): Call c_common_lang_init.
9739
97402001-01-03 Nathan Sidwell <nathan@codesourcery.com>
9741
9742 * search.c (lookup_fnfields_here): Remove.
9743 (look_for_overrides_r): Use lookup_fnfields_1.
9744 Ignore functions from using declarations.
9745
97462001-01-03 Nathan Sidwell <nathan@codesourcery.com>
9747
9748 Implement exceptions specifiers for implicit member functions.
9749 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
9750 * method.c (synthesize_exception_spec): New function.
9751 (locate_dtor, locate_ctor, locate_copy): New functions.
9752 (implicitly_declare_fn): Generate the exception spec too.
9753 * search.c (check_final_overrider): Check artificial functions
9754 too.
9755 * typeck2.c (merge_exception_specifiers): New function.
9756
97572001-01-03 Jason Merrill <jason@redhat.com>
9758
9759 * init.c (build_default_init): New fn.
9760 (perform_member_init): Split out from here.
9761 (build_new_1): Use it. Simplify initialization logic.
9762 (build_vec_init): Take an array, rather than a pointer and maxindex.
9763 Speed up simple initializations. Don't clean up if we're assigning.
9764 * cp-tree.h: Adjust.
9765 * decl2.c (do_static_initialization): Remove TREE_VEC case.
9766 * parse.y (new_initializer): Return void_zero_node for ().
9767 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
9768 * typeck2.c (digest_init): Only complain about user-written
9769 CONSTRUCTORs.
9770
97712000-12-22 Mike Stump <mrs@wrs.com>
9772
9773 * decl2.c: (max_tinst_depth): Increase to 50.
9774
97752001-01-02 Mark Mitchell <mark@codesourcery.com>
9776
9777 * class.c (invalidate_class_lookup_cache): Zero the
9778 previous_class_values.
9779 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
9780 TREE_INT_CST_HIGH.
9781 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
9782 * decl.c (free_bindings): New variable.
9783 (push_binding): Don't create a new binding if we have one on the
9784 free list.
9785 (pop_binding): Put old bindings on the free list.
9786 (init_decl_processing): Use size_int, not build_int_2.
9787 Register free_bindings as a GC root.
9788 (cp_make_fname_decl): Use size_int, not build_int_2.
9789 (push_inline_template_parms_recursive): Likewise.
9790 (end_template_parm_list): Likewise.
9791 (for_each_template_parm): Do not use walk_tree_without_duplicates.
9792 (tsubst_template_parms): Use size_int, not build_int_2.
9793 (tsubst): Likewise.
9794 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9795
97962001-01-02 Richard Henderson <rth@redhat.com>
9797
9798 * parse.y (asm): Set ASM_INPUT_P.
9799
98002001-01-02 Jason Merrill <jason@redhat.com>
9801
9802 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
9803 for v3 ABI.
9804
9805 * typeck.c (cp_truthvalue_conversion): New fn.
9806 * cvt.c (ocp_convert): Use it.
9807
9808 * cp-tree.h: Lose c-common.c decls.
9809
9810 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
9811 * cvt.c (convert_to_void): Use type_unknown_p.
9812
9813 * typeck.c (strip_all_pointer_quals): Also strip quals from
9814 pointer-to-member types.
9815
9816 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
9817 parse.y as C.
9818
9819 * call.c (build_new_method_call): Do evaluate the object parameter
9820 when accessing a static member.
9821 * typeck.c (build_component_ref): Likewise.
9822
98232001-01-02 Andreas Jaeger <aj@suse.de>
9824
9825 * decl.c (cp_missing_noreturn_ok_p): New.
9826 (init_decl_processing): Set lang_missing_noreturn_ok_p.
9827
98282000-12-29 Jakub Jelinek <jakub@redhat.com>
9829
9830 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
9831
98322000-12-29 Mark Mitchell <mark@codesourcery.com>
9833
9834 * class.c (pushclass): Remove #if 0'd code.
9835 * cp-tree.h (overload_template_name): Remove.
9836 * decl.c (store_bindings): Simplify.
9837 (pop_from_top_level): Likewise.
9838 * pt.c (overload_template_name): Remove.
9839 (instantiate_decl): Don't call push_to_top_level if it's not
9840 needed.
9841
98422000-12-28 Mark Mitchell <mark@codesourcery.com>
9843
9844 * pt.c (register_local_specialization): Don't return a value.
9845 (lookup_template_class): Use move-to-front heuristic when looking
9846 up template instantiations.
9847 (instantiate_decl): Only push_to_top_level when we're actually
9848 going to instantiate the template.
9849
98502000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
9851
9852 * search.c (binfo_for_vtable): Return least derived class, not
9853 most. Handle secondary vtables.
9854
98552000-12-22 Jason Merrill <jason@redhat.com>
9856
9857 * pt.c (more_specialized): Don't optimize len==0.
9858 (fn_type_unification): If we're adding the return type, increase len.
9859
9860 * typeck.c (build_binary_op): Fix pmf comparison logic.
9861
9862 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
9863 DECL_STATIC_FUNCTION_P.
9864
9865 * semantics.c (genrtl_finish_function): Don't try to jump to
9866 return_label unless it exists.
9867
9868 In partial ordering for a call, ignore parms for which we don't have
9869 a real argument.
9870 * call.c (joust): Pass len to more_specialized.
9871 (add_template_candidate_real): Strip 'this', pass len.
9872 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
9873 (get_bindings_order): New fn. Pass len down.
9874 (get_bindings_real): Strip 'this', pass len.
9875 (fn_type_unification): Likewise.
9876 (type_unification_real): Succeed after checking 'len' args.
9877 (most_specialized_instantiation): Lose explicit_args parm.
9878 * class.c (resolve_address_of_overloaded_function): Strip 'this',
9879 pass len.
9880
98812000-12-21 Jason Merrill <jason@redhat.com>
9882
9883 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
9884 DECL_TEMPLATE_RESULT.
9885
9886 * search.c (lookup_field_r): Call lookup_fnfields_1, not
9887 lookup_fnfields_here.
9888
9889 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
9890
9891 * call.c (build_object_call): Also allow conversions that return
9892 reference to pointer to function.
9893 (add_conv_candidate): Handle totype being ref to ptr to fn.
9894 (build_field_call): Also allow members of type reference to function.
9895 Lose support for calling pointer to METHOD_TYPE fields.
9896
9897 * error.c (dump_expr): Handle *_CAST_EXPR.
9898
9899 * typeck2.c (build_scoped_ref): Always convert to the naming class.
9900
9901 * tree.c (break_out_cleanups): Lose.
9902 * cp-tree.h: Remove prototype.
9903 * typeck.c (build_component_ref): Don't break_out_cleanups.
9904 (build_compound_expr): Likewise.
9905 * semantics.c (finish_expr_stmt): Likewise.
9906
99072000-12-20 Richard Henderson <rth@redhat.com>
9908
9909 * cp-tree.h: Update declarations.
9910 * decl.c (finish_case_label): Return the new stmt node.
9911 * semantics.c (finish_goto_stmt): Likewise.
9912 (finish_expr_stmt, finish_return_stmt): Likewise.
9913 (finish_break_stmt, finish_continue_stmt): Likewise.
9914 (finish_asm_stmt): Likewise.
9915 * parse.y (already_scoped_stmt): Set STMT_LINENO.
9916 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
9917 (simple_if, simple_stmt): Return the new stmt node.
9918 (save_lineno): New.
9919
99202000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
9921
9922 * cp-tree.h: Don't declare warn_long_long.
9923
99242000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9925
9926 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
9927 IS_AGGR_TYPE.
9928
99292000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9930
9931 * pt.c (unify): Handle when both ARG and PARM are
9932 BOUND_TEMPLATE_TEMPLATE_PARM.
9933
99342000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9935
9936 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
9937 DECL_TEMPLATE_PARM_P.
9938
99392000-12-15 Jason Merrill <jason@redhat.com>
9940
9941 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
9942
9943 * init.c (build_new_1): Don't strip quals from type.
9944
9945 * decl.c (pushdecl): Don't check for linkage on a non-decl.
9946
9947 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
9948
9949 * call.c (build_new_function_call): Lose space before paren in
9950 error message.
9951 (build_new_method_call): Likewise.
9952
9953 * typeck2.c (build_m_component_ref): Propagate quals from datum.
9954
99552000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9956
9957 * pt.c (check_explicit_specialization): Propagate default
9958 function arguments to explicit specializations.
9959
99602000-12-13 DJ Delorie <dj@redhat.com>
9961
9962 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
9963 and <? operators.
9964
99652000-12-08 Jason Merrill <jason@redhat.com>
9966
9967 * error.c (dump_function_name): Don't let the user see __comp_ctor.
9968
9969 Clean up copy-initialization in overloading code.
9970 * call.c (build_user_type_conversion_1): Die if we are asked to
9971 convert to the same or a base type.
9972 (implicit_conversion): Avoid doing so. Lose reference binding code.
9973 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
9974 direct-initialization. Also do direct-init part of copy-init.
9975 (build_user_type_conversion): Don't provide context to convert_like.
9976 * cvt.c (ocp_convert): build_user_type_conversion will now provide
9977 the constructor call for copy-init.
9978
9979 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
9980 instantiation of a member template.
9981 (do_decl_instantiation): Not here.
9982
99832000-12-07 Nathan Sidwell <nathan@codesourcery.com>
9984
9985 * class.c (check_field_decls): Don't special case anonymous
9986 fields in error messages.
9987 (note_name_declared_in_class): Use %D on diagnostic.
9988
9989 * tree.c (pod_type_p): Use strip_array_types.
9990 (cp_valid_lang_attribute): Likewise.
9991 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
9992 multiple evaluations.
9993 (cp_has_mutable_p): Use strip_array_types.
9994
99952000-12-07 Nathan Sidwell <nathan@codesourcery.com>
9996
9997 * cp-tree.h (sufficient_parms_p): Declare new function.
9998 * call.c (sufficient_parms_p): New function, broken out of ...
9999 (add_function_candidate): ... here. Use it.
10000 (add_conv_candidate): Use it.
10001 * decl.c (grok_ctor_properties): Use it.
10002
100032000-12-07 Jakub Jelinek <jakub@redhat.com>
10004
10005 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
10006
100072000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
10008
10009 * decl2.c (lang_decode_option): Handle -Wformat-security.
10010
100112000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10012
10013 * pt.c (verify_class_unification): New function.
10014 (get_class_bindings): Use it.
10015 (try_class_unification): Tidy.
10016 (unify): Handle when argument of a template-id is not
10017 template parameter dependent.
10018 (template_args_equal): Handle when TREE_CODE's do not match.
10019
100202000-12-06 Alexandre Oliva <aoliva@redhat.com>
10021
10022 * lang-specs.h (c++): When invoking the stand-alone preprocessor
10023 for -save-temps, pass all relevant -Defines to it, and then don't
10024 pass them to cc1plus.
10025
100262000-12-05 Will Cohen <wcohen@redhat.com>
10027
10028 * decl.c (finish_case_label): Cleared
10029 more_cleanups_ok in surrounding function scopes.
10030 (define_label): Likewise.
10031
100322000-12-05 Nathan Sidwell <nathan@codesourcery.com>
10033
10034 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
10035 (get_matching_virtual): Remove.
10036 (look_for_overrides): Declare new function.
10037 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
10038 DECL_VINDEX here.
10039 * class.c (check_for_override): Move base class iteration code
10040 to look_for_overrides.
10041 * search.c (next_baselink): Remove.
10042 (get_virtuals_named_this): Remove.
10043 (get_virtual_destructor): Remove.
10044 (tree_has_any_destructors_p): Remove.
10045 (struct gvnt_info): Remove.
10046 (check_final_overrider): Remove `virtual' from error messages.
10047 (get_matching_virtuals): Remove. Move functionality to ...
10048 (look_for_overrides): ... here, and ...
10049 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
10050 to be overriding.
10051
100522000-12-05 Nathan Sidwell <nathan@codesourcery.com>
10053
10054 * typeck.c (get_delta_difference): If via a virtual base,
10055 return zero.
10056 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
10057 adjustment.
10058
100592000-12-04 Richard Henderson <rth@redhat.com>
10060
10061 * error.c (dump_tree): Use output_add_string not OB_PUTS.
10062
100632000-12-04 Jason Merrill <jason@redhat.com>
10064
10065 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
10066 (write_builtin_type): Pass intSI_type_node and the like through
10067 type_for_mode.
10068 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
10069 Pass intSI_type_node and the like through type_for_mode.
10070 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
10071 * pt.c (tsubst, unify): Likewise.
10072 * tree.c (walk_tree): Likewise.
10073 * error.c (dump_type): Likewise.
10074 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
10075
10076 * Make-lang.in: Tweak top comment for emacs.
10077 (cp/TAGS): Restore.
10078
10079 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
10080
10081 * class.c (clone_function_decl): Robustify.
10082
100832000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
10084
10085 * decl.c (store_bindings): Only search in the non modified
10086 old_bindings for duplicates.
10087
100882000-12-04 Nathan Sidwell <nathan@codesourcery.com>
10089
10090 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
10091 TYPE_POLYMORPHIC_P.
10092
10093 * typeck.c (build_static_cast): Remove unused variable.
10094
100952000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10096
10097 * pt.c: Fix typo in comment.
10098
100992000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
10100
10101 * decl2.c (warn_format): Remove definition.
10102 (lang_decode_option): Handle -Wformat-nonliteral,
10103 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
10104
101052000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
10106
10107 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
10108 (init_decl_processing): Don't create string_type_node,
10109 const_string_type_node, wint_type_node, intmax_type_node,
10110 uintmax_type_node, default_function_type, ptrdiff_type_node and
10111 unsigned_ptrdiff_type_node. Adjust position of call to
10112 c_common_nodes_and_builtins.
10113 (identifier_global_value): New function.
10114
101152000-12-01 Nathan Sidwell <nathan@codesourcery.com>
10116
10117 * call.c (standard_conversion): Reject pointer to member
10118 conversions from ambiguous, inaccessible or virtual bases.
10119 * typeck.c (build_static_cast): Don't check pointers to members
10120 specially.
10121
101222000-11-30 Nathan Sidwell <nathan@codesourcery.com>
10123
10124 * method.c (do_build_copy_constructor): Preserve cv
10125 qualifications when accessing source object members.
10126 (do_build_assign_ref): Likewise. Remove separate diagnostics for
10127 unnamed fields.
10128
101292000-11-30 Nathan Sidwell <nathan@codesourcery.com>
10130
10131 * method.c (do_build_assign_ref): Construct appropriately
10132 CV-qualified base reference. Don't allow const casts in base
10133 conversion.
10134
101352000-11-30 Nathan Sidwell <nathan@codesourcery.com>
10136
10137 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
10138 incomplete return type.
10139
101402000-11-28 Nathan Sidwell <nathan@codesourcery.com>
10141
10142 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
10143 * semantics.c (finish_base_specifier): Accept a _TYPE not a
10144 _DECL.
10145
101462000-11-28 Nathan Sidwell <nathan@codesourcery.com>
10147
10148 * spew.c (yyerror): Cope if yylval.ttype is NULL.
10149
101502000-11-28 Nathan Sidwell <nathan@codesourcery.com>
10151
10152 * decl.c (grokdeclarator): Diagnose undefined template contexts.
10153
101542000-11-28 Nathan Sidwell <nathan@codesourcery.com>
10155
10156 * decl.c (grokdeclarator): Do type access control on friend
10157 class.
10158
101592000-11-27 Nathan Sidwell <nathan@codesourcery.com>
10160
10161 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
10162 bison parser ickiness.
10163 * pt.c (tsubst_friend_function): Enter namespace scope when
10164 tsubsting the function name.
10165 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
10166
101672000-11-27 Nathan Sidwell <nathan@codesourcery.com>
10168
10169 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
10170 * cvt.c (cp_convert_to_pointer): Add force parameter.
10171 Allow conversions via virtual base if forced.
10172 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
10173 (ocp_convert): Likewise.
10174 * search.c (binfo_from_vbase): Return the virtual base's binfo.
10175 * typeck.c (get_delta_difference): Adjust handling of virtual
10176 bases.
10177
101782000-11-26 Mark Mitchell <mark@codesourcery.com>
10179
10180 * tree.c (struct list_hash): Remove.
10181 (list_hash_table): Make it be an htab.
10182 (struct list_proxy): New type.
10183 (list_hash_eq): New function.
10184 (list_hash_pieces): Renamed from ...
10185 (list_hash): ... this.
10186 (list_hash_lookup): Remove.
10187 (list_hash_add): Remove.
10188 (hash_tree_cons): Use the generic hashtable.
10189 (mark_list_hash): Remove.
10190 (init_tree): Create the hashtable.
10191
101922000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
10193
10194 * method.c (build_mangled_C9x_name): Rename to
10195 build_mangled_C99_name. Change C9X references in comments to
10196 refer to C99.
10197
101982000-11-24 Nathan Sidwell <nathan@codesourcery.com>
10199
10200 * parse.y (unary_expr): Move VA_ARG from here ...
10201 (primary): ... to here.
10202
102032000-11-24 Nathan Sidwell <nathan@codesourcery.com>
10204
10205 * semantics.c (finish_id_expr): If type is error_mark, return
10206 error_mark.
10207
102082000-11-23 Nathan Sidwell <nathan@codesourcery.com>
10209
10210 * pt.c (lookup_template_class): Simplify loop exit constructs.
10211 Cope when there is no partial instantiation of a template
10212 template member.
10213
10214Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
10215
10216 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
10217
102182000-11-22 Mark Mitchell <mark@codesourcery.com>
10219
10220 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
10221 prefix.
10222
10223 * pt.c (do_decl_instantiate): Explicitly clone constructors and
10224 destructors that haven't already been cloned.
10225
102262000-11-20 Richard Henderson <rth@redhat.com>
10227
10228 * parse.y (yyparse_1): Rename the parser entry point.
10229
102302000-11-20 Alex Samuel <samuel@codesourcery.com>
10231
10232 * mangle.c (write_name): Use <unscoped-name> for names directly in
10233 function scope.
10234 (write_unscoped_name): Accept names directly in function scope.
10235
102362000-11-20 Nathan Sidwell <nathan@codesourcery.com>
10237
10238 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
10239 * parse.y (extdef): Add EXPORT reduction.
10240 * spew.c (yylex): Don't skip export here.
10241
102422000-11-19 Mark Mitchell <mark@codesourcery.com>
10243
10244 * decl.c (init_decl_processing): Correct name of pure virtual
10245 function under the new ABI.
10246 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
10247 (throw_bad_typeid): Likewise for bad typeid function.
10248
102492000-11-18 Mark Mitchell <mark@codesourcery.com>
10250
10251 * decl.c (grokparms): Don't even function types of `void' type,
10252 either.
10253 * mangle.c (write_type): Don't crash when confronted with the
10254 error_mark_node.
10255
10256 * decl.c (grokparms): Don't create parameters of `void' type.
10257
102582000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
10259
10260 * lex.c (mark_impl_file_chain): Delete.
10261 (init_parse): Remove call to ggc_add_string_root. No need to
10262 ggc_strdup a string constant. Do not add impl_file_chain to GC
10263 roots.
10264 (handle_pragma_implementation): No need to ggc_strdup main_filename.
10265
102662000-11-17 Nathan Sidwell <nathan@codesourcery.com>
10267
10268 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
10269
102702000-11-17 Nathan Sidwell <nathan@codesourcery.com>
10271
10272 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
10273 * decl.c (grokdeclarator): Don't reject void parms here.
10274 (require_complete_types_for_parms): Simplify, use
10275 complete_type_or_else.
10276 (grokparms): Remove bitrot. Remove funcdef parm.
10277 Deal with ellipsis parm lists here.
10278 * semantics.c (finish_parmlist): Don't append void_list_node
10279 here. Set PARMLIST_ELLIPSIS_P.
10280
102812000-11-17 Nathan Sidwell <nathan@codesourcery.com>
10282
10283 * typeck2.c (incomplete_type_error): Reorganize to avoid
10284 excessive diagnostics.
10285
102862000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
10287
10288 * lex.c (struct impl_files, internal_filename): Constify a char *.
10289
102902000-11-16 Mark Mitchell <mark@codesourcery.com>
10291
10292 * mangle.c (write_special_name_constructor): Don't generate
10293 assembler junk when confronted with an old-style constructor.
10294 (write_special_name_destructor): Likewise.
10295 (mangle_decl_string): Do it here instead.
10296
102972000-11-16 Nathan Sidwell <nathan@codesourcery.com>
10298
10299 * call.c (op_error): Make error messages clearer.
10300
103012000-11-15 Mark Mitchell <mark@codesourcery.com>
10302
10303 * decl.c (wrapup_globals_for_namespace): Don't mark things
10304 TREE_ASM_WRITTEN when they're not.
10305
103062000-11-15 Jason Merrill <jason@redhat.com>
10307
10308 * typeck2.c (friendly_abort): Uncount the error before handing
10309 off to fancy_abort.
10310
103112000-11-15 Nathan Sidwell <nathan@codesourcery.com>
10312
10313 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
10314
103152000-11-14 Mark Mitchell <mark@codesourcery.com>
10316
10317 * class.c (build_vtbl_initializer): Fix typo in comment.
10318 * typeck.c (expr_sizeof): Don't crash on errors.
10319
103202000-11-14 Jim Wilson <wilson@redhat.com>
10321
10322 * lang-specs.h: Add %2 after %(cc1_options).
10323
103242000-11-14 Richard Henderson <rth@redhat.com>
10325
10326 * typeck.c (c_sizeof): Be strict about casting result value
10327 back to c_size_type_node.
10328 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
10329
103302000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
10331
10332 * typeck.c (build_unary_op): Use boolean_increment from
10333 c-common.c, moving the relevant code there.
10334
103352000-11-11 Jason Merrill <jason@redhat.com>
10336
10337 * typeck.c (mark_addressable): Don't call put_var_into_stack.
10338
10339 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
10340 in inlines.
10341
103422000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10343
10344 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
10345 * lex.c (copy_lang_decl): Likewise.
10346
103472000-11-09 Mark Mitchell <mark@codesourcery.com>
10348
10349 * dump.c (cp_dump_tree): Don't dump function bodies here.
10350
10351 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
10352 (dump.o): Update dependency list.
10353 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
10354 (flag_dump_translation_unit): Likewise.
10355 (CP_TYPE_QUALS): Adjust definition.
10356 (DECL_C_BIT_FIELD): Remove.
10357 (SET_DECL_C_BIT_FIELD): Likewise.
10358 (CLEAR_DECL_C_BIT_FIELD): Likewise.
10359 (add_maybe_template): Likewise.
10360 (strip_array_types): Likewise.
10361 (dump_node_to_file): Likewise.
10362 (cp_dump_tree): New function.
10363 * decl.c (init_decl_processing): Set lang_dump_tree.
10364 * decl2.c (flag_dump_translation_unit): Remove.
10365 * dump.c: Move most of it to ../c-dump.c.
10366 (cp_dump_tree): New function.
10367 * pt.c (add_maybe_template): Remove.
10368 * typeck.c (strip_array_types): Likewise.
10369
103702000-11-07 Eric Christopher <echristo@redhat.com>
10371
10372 * decl.c (init_decl_processing): Change definition of
10373 __wchar_t to wchar_t. Remove artificial declaration of
10374 wchar_t.
10375 * lex.c: Change instances of __wchar_t to wchar_t.
10376
103772000-11-09 Nathan Sidwell <nathan@codesourcery.com>
10378
10379 * lex.c (do_identifier): Don't lookup_name for operators.
10380 * parse.y (operator): Save looking_for_typename.
10381 (unoperator): Restore it.
10382 * spew.c (frob_opname): Use nth_token for lookahead.
10383
103842000-11-08 Nathan Sidwell <nathan@codesourcery.com>
10385
10386 * decl.c (grok_op_properties): Always use coerce_new_type and
10387 coerce_delete_type.
10388 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
10389 exception specification. Tidy up.
10390 (coerce_delete_type): Preserve exception specification. Tidy up.
10391
103922000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
10393
10394 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
10395 (push_binding_level), error.c (cp_tree_printer), pt.c
10396 (process_partial_specialization, tsubst_template_arg_vector),
10397 search.c (lookup_member): Use memset () instead of bzero ().
10398
103992000-11-07 Nathan Sidwell <nathan@codesourcery.com>
10400
10401 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
10402
104032000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
10404
10405 * Make-lang.in (c++.distdir): Remove.
10406
104072000-11-04 Mark Mitchell <mark@codesourcery.com>
10408
10409 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
10410 declarations from different namespaces to be combined.
10411
104122000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
10413
10414 * decl.c: Include tm_p.h.
10415
104162000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
10417
10418 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
10419
104202000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
10421
10422 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
10423 (build_overload_value), repo.c (open_repo_file), xref.c
10424 (open_xref_file): Use strchr () and strrchr () instead of index ()
10425 and rindex ().
10426
104272000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
10428
10429 * call.c (build_over_call): Call fold on the CALL_EXPR.
10430
104312000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
10432
10433 * error.c (dump_template_decl): Separate template hearders with
10434 space not comma.
10435
104362000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
10437
10438 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
10439 TS_* flags with corresponding TFF_*. Adjust prototypes of
10440 functions (which used to take a tree_string_flags) to take an int.
10441
10442 * cp-tree.h (enum tree_string_flags): Remove
10443 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
10444 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
10445 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
10446 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
10447 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
10448 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
10449 (type_as_string, decl_as_string, expr_as_string,
10450 context_as_string): Adjust prototype.
10451
10452 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
10453 instead of TS_PLAIN.
10454
10455 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
10456 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
10457 plain `0'.
10458
104592000-10-30 Mark Mitchell <mark@codesourcery.com>
10460
10461 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
10462 (linkage_kind): New enumeration.
10463 (decl_linkage): New function.
10464 * decl2.c (comdat_linkage): Extend comment.
10465 * error.c (dump_function_decl): Print the arguments used to
10466 instantiate a template, even when not printing the type of the
10467 function.
10468 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
10469 not TREE_PUBLIC, to test for external linkage.
10470 * tree.c (decl_linkage): New function.
10471
104722000-10-28 Mark Mitchell <mark@codesourcery.com>
10473
10474 * pt.c (instantiate_decl): Always instantiate static data members
10475 initialized in-class.
10476
104772000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
10478
10479 * Make-lang.in: Move all build rules here from Makefile.in,
10480 adapt to new context. Wrap all rules that change the current
10481 directory in parentheses. Expunge all references to $(P).
10482 When one command depends on another and they're run all at
10483 once, use && to separate them, not ;. Add OUTPUT_OPTION to
10484 all object-file generation rules. Delete obsolete variables.
10485
10486 * Makefile.in: Delete.
10487 * config-lang.in: Delete outputs= line.
10488
104892000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
10490
10491 * error.c (dump_function_decl): Print no space between
10492 `ptr-operator' the `type-specifier' of the return type.
10493 (dump_type_prefix): Make sure we put space at the appropriate
10494 place.
10495
104962000-10-23 Jason Merrill <jason@redhat.com>
10497
10498 * call.c (equal_functions): Also call decls_match for extern "C" fns.
10499
105002000-10-22 Jason Merrill <jason@redhat.com>
10501
10502 * call.c (build_conditional_expr): Use ocp_convert to force
10503 rvalue conversion.
10504
105052000-10-22 Mark Mitchell <mark@codesourcery.com>
10506
10507 * call.c (standard_conversion): Use RVALUE_CONVs for all
10508 expressions that satisfy lvalue_p, not just those that satisfy
10509 real_lvalue_p.
10510
10511 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
10512
10513 * typeck.c (c_sizeof): Return an expression of `size_t' type,
10514 not one with TYPE_IS_SIZETYPE set.
10515 (dubious_conversion_warnings): Remove special-case code.
10516
105172000-10-21 Geoffrey Keating <geoffk@cygnus.com>
10518
10519 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
10520 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
10521 (dump_type_prefix): Print vector-of-int as 'int vector'.
10522 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
10523 * tree.c (walk_tree): Handle VECTOR_TYPE.
10524
10525 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
10526
105272000-10-21 Jason Merrill <jason@redhat.com>
10528
10529 * parse.y (operator): Set got_object from got_scope.
10530 Set looking_for_typename.
10531 * decl.c (lookup_name_real): Clear val after setting from_obj.
10532 Reorganize diagnostic.
10533
105342000-10-20 Jason Merrill <jason@redhat.com>
10535
10536 * tree.c (walk_tree): Don't walk into default args.
10537
10538 * error.c (dump_expr): Use host_integerp.
10539
105402000-10-20 David Edelsohn <edelsohn@gnu.org>
10541
10542 * typeck2.c (abstract_virtuals_error): Use "because" instead of
10543 "since" in error message.
10544
10545Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10546
10547 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
10548
105492000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
10550
10551 * decl.c (revert_static_member_fn): Fixed typo.
10552
105532000-10-19 Mark Mitchell <mark@codesourcery.com>
10554
10555 * class.c (subobject_offset_fn): New type.
10556 (dfs_record_base_offsets): Remove.
10557 (record_base_offsets): Likewise.
10558 (dfs_search_base_offsets): Likewise.
10559 (record_subobject_offset): New function.
10560 (check_subobject_offset): Likewise.
10561 (walk_subobject_offsets): Likewise.
10562 (record_subobject_offsets): Likewise.
10563 (layout_conflict_p): Reimplement.
10564 (layout_nonempty_base_or_field): Correct handling of type
10565 conflicts during layout.
10566 (layout_empty_base): Likewise.
10567 (build_base_field): Adjust to handle new representation of empty
10568 base offset table.
10569 (build_base_fields): Likewise.
10570 (layout_virtual_bases): Likewise.
10571 (splay_tree_compare_integer_csts): New function.
10572 (layout_class_type): Use a splay_tree, rather than a varray, to
10573 represent the offsets of empty bases.
10574
10575 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
10576 * decl.c (select_decl): Don't return declarations that are
10577 DECL_ANTICIPATED.
10578
105792000-10-18 Mark Mitchell <mark@codesourcery.com>
10580
10581 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
10582 (fake_std_node): New macro.
10583 * decl.c (in_std): Rename to ...
10584 (in_fake_std): ... this.
10585 (flag_no_builtin): Remove.
10586 (flag_no_nonansi_builtin): Likewise.
10587 (walk_namespaces_r): Use fake_std_node.
10588 (push_namespace): Use std_identifier.
10589 (pop_namespace): Use in_fake_std.
10590 (lookup_name_real): Use fake_std_node.
10591 (init_decl_processing): When -fhonor-std, create the `std'
10592 namespace. Don't create a dummy fake_std_node in that case.
10593 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
10594 (builtin_function): Put builtins whose names don't begin
10595 with `_' in the std namespace.
10596 * decl2.c (flag_no_builtin): Remove.
10597 (flag_no_nonansi_builtin): Likewise.
10598 (set_decl_namespace): Use fake_std_node.
10599 (validate_nonmember_using_decl): Likewise.
10600 (do_using_directive): Likewise.
10601 (handle_class_head): Likewise.
10602 * dump.c (dequeue_and_dump): Likewise.
10603 * except.c (init_exception_processing): Use std_identifier.
10604 * init.c (build_member_call): Use fake_std_node.
10605 * rtti.c (init_rtti_processing): Use std_identifier.
10606
106072000-10-17 Mark Mitchell <mark@codesourcery.com>
10608
10609 * cp-tree.h (back_end_hook): Remove declaration.
10610 * decl2.c (back_end_hook): Remove definition.
10611
10612 * dump.c (dequeue_and_dump): Dump TREE_USED.
10613
10614Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
10615
10616 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
10617
106182000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
10619
10620 * decl.c (WINT_TYPE): Define.
10621 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
10622 c_size_type_node, signed_size_type_node and wint_type_node.
10623
106242000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
10625
10626 * decl2.c (warn_missing_format_attribute): New variable.
10627 (lang_decode_option): Decode -Wmissing-format-attribute.
10628
106292000-10-16 Mark Mitchell <mark@codesourcery.com>
10630
10631 * typeck.c (qualify_type): Remove.
10632 (composite_pointer_type): Fix handling of conversions to `cv void*'.
10633
106342000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10635
10636 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
10637
106382000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10639
10640 * Makefile.in (parse.c, parse.h): Create atomically.
10641
106422000-10-12 Mark Mitchell <mark@codesourcery.com>
10643
10644 * class.c (current_obstack): Remove.
10645 * decl.c (ggc_p): Remove.
10646 (start_decl): Don't use decl_tree_cons.
10647 (grokdeclarator): Don't use build_decl_list.
10648 (start_function): Don't use decl_tree_cons.
10649 (finish_function): Don't mess with obstacks.
10650 * decl2.c (grok_x_components): Don't use build_decl_list.
10651 * lex.c (make_call_declarator): Don't call decl_tree_cons.
10652 (implicitly_declare_fn): Don't call build_decl_list.
10653 * parse.y (frob_specs): Don't call build_decl_list or
10654 decl_tree_cons.
10655 (expr_or_declarator_intern): Don't call decl_tree_cons.
10656 (primary): Don't call build_decl_list.
10657 (fcast_or_absdcl): Likewise.
10658 (typed_declspecs): Don't call decl_tree_cons.
10659 (reserved_declspecs): Don't call build_decl_list.
10660 (declmods): Likewise.
10661 (reserved_typespecquals): Likewise.
10662 (aggr): Likewise.
10663 (new_type_id): Likewise.
10664 (cv_qualifiers): Likewise.
10665 (after_type_declarator_intern): Likewise.
10666 (notype_declarator_intern): Likewise.
10667 (absdcl_intern): Likewise.
10668 (named_parm): Likewise.
10669 * pt.c (most_specialized_class): Likewise.
10670 * repo.c (temporary_obstack): Make it a structure, not a pointer.
10671 (init_repo): Initialize it.
10672 * search.c (current_obstack): Remove.
10673 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
10674
106752000-10-09 Richard Henderson <rth@cygnus.com>
10676
10677 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
10678 (c++ language support bits for libgcc): Remove.
10679 (c++.clean): Remove cplib2.txt cleanup.
10680 * config-lang.in (headers, lib2funcs): Remove.
10681
10682 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
10683 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
10684 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
10685 * inc/new.h, inc/typeinfo: Remove files.
10686
106872000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
10688
10689 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
10690 defined.
10691 (init_decl_processing): Initialize intmax_type_node and
10692 uintmax_type_node.
10693
106942000-10-06 Richard Henderson <rth@cygnus.com>
10695
10696 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
10697 (original_result_rtx): Remove.
10698 * decl.c (save_function_data): Don't clear x_result_rtx.
10699 (mark_lang_function): Don't mark it either.
10700 * expr.c (fixup_result_decl): Remove.
10701 * semantics.c (genrtl_named_return_value): Frob the return decl
10702 before calling emit_local_var.
10703 (genrtl_finish_function): Don't call fixup_result_decl.
10704 Always emit the jump to return_label.
10705
107062000-10-06 Nathan Sidwell <nathan@codesourcery.com>
10707
10708 * pt.c (lookup_template_class): Set current access for enum.
10709 (tsubst_enum): Set file & line for enum decl.
10710
10711 * spew.c (yylex): Remove unused variable.
10712
107132000-10-05 Richard Henderson <rth@cygnus.com>
10714
10715 * semantics.c (genrtl_finish_function): Don't init or check
10716 can_reach_end; remove noreturn and return value checks.
10717
107182000-10-05 Tom Tromey <tromey@cygnus.com>
10719
10720 * init.c (build_java_class_ref): Use `build_static_name' with a
10721 suffix, not a prefix, to build the class object's name.
10722
107232000-10-05 Nathan Sidwell <nathan@codesourcery.com>
10724
10725 * cp-tree.h (access_kind): Fix comment typo.
10726 * decl2.c (grokfield): Fix diagnostic typo.
10727 * semantics.c (finish_template_type): Fix comment typo.
10728 (finish_qualified_object_call_expr): Likewise.
10729
107302000-10-05 Nathan Sidwell <nathan@codesourcery.com>
10731
10732 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
10733 tsubsting fails.
10734
107352000-10-05 Nathan Sidwell <nathan@codesourcery.com>
10736
10737 * spew.c (frob_id): New static function.
10738 (frob_opname): Use it.
10739 (yylex): Use it.
10740
107412000-10-01 Mark Mitchell <mark@codesourcery.com>
10742
10743 * decl.c (lang_mark_false_label_stack): Remove.
10744 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
10745
107462000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
10747
10748 * gxxint.texi: Use @email for formatting email addresses.
10749
107502000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
10751
10752 * error.c: Remove direct obstack manipulation. Replace with
10753 output_buffer-based formatting. Adjust calls to removed macros.
10754 (obstack_chunk_alloc, obstack_chunk_free): Remove.
10755 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
10756 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
10757
107582000-09-24 Mark Mitchell <mark@codesourcery.com>
10759
10760 * ir.texi: Move to ../c-tree.texi.
10761
107622000-09-20 Jason Merrill <jason@redhat.com>
10763
10764 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
10765
107662000-09-21 Andreas Jaeger <aj@suse.de>
10767
10768 * errfn.c: Move declaration of cp_printer and cp_printers to ...
10769 * cp-tree.h: ... here.
10770
10771 * error.c: Remove declaration of cp_printer.
10772
107732000-09-20 Mark Mitchell <mark@codesourcery.com>
10774
10775 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
10776
107772000-09-20 Hans-Peter Nilsson <hp@axis.com>
10778
10779 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
10780 users.
10781
107822000-09-18 Mark Mitchell <mark@codesourcery.com>
10783
10784 * decl.c (start_function): Robustify.
10785
107862000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10787
10788 * cp-tree.h (check_function_format): Accept a `status' parameter.
10789
10790 * call.c, typeck.c: Updates calls to `check_function_format'.
10791
107922000-09-17 Geoffrey Keating <geoffk@cygnus.com>
10793
10794 * decl2.c (handle_class_head): Always push some scope even
10795 in the error case.
10796
107972000-09-16 Mark Mitchell <mark@codesourcery.com>
10798
10799 * cp-tree.h (struct cp_language_function): Remove
10800 x_scope_stmt_stack and name_declared.
10801 (current_scope_stmt_stack): Remove.
10802 (function_name_declared_p): New macro.
10803 (struct lang_decl_flags): Use c_lang_decl as a base class.
10804 (context): Remove.
10805 (struct lang_decl): Replace saved_tree with context.
10806 (DECL_FRIEND_CONTEXT): Adjust accordingly.
10807 (SET_DECL_FRIEND_CONTEXT): Likewise.
10808 (DECL_VIRTUAL_CONTEXT): Likewise.
10809 (DECL_SAVED_TREE): Remove.
10810 (C_DECLARED_LABEL_FLAG): Likewise.
10811 (cplus_expand_expr_stmt): Don't declare.
10812 (add_decl_stmt): Likewise.
10813 (add_scope_stmt): Likewise.
10814 * decl.c (mark_stmt_tree): Remove.
10815 (case_compare): Likewise.
10816 (finish_case_label): Use c_add_case_label.
10817 (init_decl_processing): Set more language-specific hooks.
10818 (build_enumerator): Fix typo in comment.
10819 (cplus_expand_expr_stmt): Remove.
10820 (mark_lang_function): Use mark_c_language_function.
10821 (lang_mark_tree): Use c_mark_lang_decl.
10822 * decl2.c: Change order of inclusion.
10823 * except.c: Likewise.
10824 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
10825 back on c_expand_expr.
10826 * friend.c: Include expr.h.
10827 * init.c: Change order of inclusion.
10828 * Makefile.in: Update dependencies.
10829 * lex.h (free_lang_decl_chain): Remove.
10830 * optimize.c (maybe_clone_body): Use function_name_declared_p.
10831 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
10832 it doesn't exist.
10833 (instantiate_decl): Use function_name_declared_p.
10834 * semantics.c (lang_expand_expr_stmt): Remove.
10835 (set_current_function_name_declared): Likewise.
10836 (current_function_name_declared): Likewise.
10837 (begin_compound_stmt): Use function_name_declared_p.
10838 (add_decl_stmt): Remove.
10839 (setup_vtbl_ptr): Use function_name_declared_p.
10840 (add_scope_stmt): Remove.
10841 (current_scope_stmt_stack): New function.
10842 (cp_expand_stmt): Don't handle SCOPE_STMTs.
10843 (expand_body): Use function_name_declared_p.
10844 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
10845 * typeck.c: Change order of includes.
10846 (convert_sequence): Remove.
10847
108482000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
10849
10850 * lex.c (reswords): Add _Complex.
10851
10852Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10853
10854 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
10855
108562000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10857
10858 * init.c (begin_init_stmts): Don't use // comments.
10859
108602000-09-12 Jason Merrill <jason@redhat.com>
10861
10862 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
10863 all non-extern arrays.
10864
10865 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
10866 typenames, too. Downgrade complaint to pedwarn.
10867 (xref_tag): Warn about surprising behavior of 'friend struct T'.
10868 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
10869 'class This::Inherited'.
10870
108712000-09-12 Mark Mitchell <mark@codesourcery.com>
10872
10873 * decl.c (finish_case_label): Given the LABEL_DECL a
10874 DECL_CONTEXT.
10875
108762000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
10877
10878 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
10879 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
10880 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
10881 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
10882 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
10883 New macros.
10884 (sorry_for_unsupported_tree, print_scope_operator,
10885 print_left_paren, print_right_paren, print_left_bracket,
10886 print_right_bracket, print_whitespace): Likewise.
10887 (aggr_variety): Rename to class_key_or_enum.
10888 (print_type): Rename to print_type_id.
10889 (print_type_specifier_seq, print_simple_type_specifier,
10890 print_elaborated_type_specifier,
10891 print_rest_of_abstract_declarator,
10892 print_parameter_declaration_clause, print_exception_specification,
10893 print_nested_name_specifier, print_template_id,
10894 typedef_original_name, print_template_argument_list_start,
10895 print_template_argument_list_end): New functions.
10896
108972000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
10898
10899 * ir.texi: Add more documentation.
10900
109012000-09-11 Mark Mitchell <mark@codesourcery.com>
10902
10903 * cp-tree.h (struct saved_scope): Remove x_function_parms.
10904 (current_function_parms): Don't define.
10905 (struct cp_language_function): Remove parms_stored.
10906 (current_function_just_assigned_this): Don't define.
10907 (current_function_parms_stored): Likewise.
10908 (static_ctors): Declare.
10909 (static_dtors): Likewise.
10910 (SF_EXPAND): Don't define.
10911 (expand_start_early_try_stmts): Remove declaration.
10912 (store_parm_decls): Likewise.
10913 * decl.c (static_ctors): Don't declare.
10914 (static_dtors): Likewise.
10915 (struct binding_level): Remove this_block.
10916 (poplevel): Remove dead code.
10917 (set_block): Likewise.
10918 (mark_binding_level): Don't mark this_block.
10919 (mark_saved_scope): Don't mark x_function_parms.
10920 (init_decl_processing): Don't add current_function_parms as a GC
10921 root.
10922 (check_function_type): Change prototype.
10923 (start_function): Remove RTL-generation code.
10924 (expand_start_early_try_stmts): Remove.
10925 (store_parm_decls): Give it internal linkage. Remove
10926 RTL-generation code.
10927 (finish_function): Remove RTL-generation code.
10928 * decl2.c (static_ctors): Fix formatting.
10929 (static_dtors): Likewise.
10930 * method.c (use_thunk): Don't call store_parm_decls.
10931 (synthesize_method): Likewise.
10932 * optimize.c (maybe_clone_body): Likewise.
10933 * parse.y (fn.def2): Likewise.
10934 (.set_base_init): Likewise.
10935 (nodecls): Likewise.
10936 * pt.c (instantiate_decl): Likewise.
10937 * rtti.c (synthesize_tinfo_fn): Likewise.
10938 * semantics.c (genrtl_try_block): Simplify.
10939 (expand_body): Use genrtl_start_function and
10940 genrtl_finish_function.
10941 (genrtl_start_function): New function.
10942 (genrtl_finish_function): Likewise.
10943
109442000-09-11 Nathan Sidwell <nathan@codesourcery.com>
10945
10946 * error.c (cp_tree_printer, case 'P'): Append break.
10947
109482000-09-11 Nathan Sidwell <nathan@codesourcery.com>
10949
10950 * cp-tree.h (frob_opname): Declare.
10951 * parse.y (saved_scopes): New static variable.
10952 (cp_parse_init): Adjust.
10953 (do_id): If lastiddecl is NULL, do do_identifier.
10954 (operator): Save scope information.
10955 (unoperator): New reduction. Restore scope information.
10956 (operator_name): Append unoperator. Call frob_opname.
10957 * spew.c (frob_opname): Define.
10958
109592000-09-10 Zack Weinberg <zack@wolery.cumb.org>
10960
10961 * decl.c, rtti.c: Include defaults.h if not already included.
10962 Don't define the *_TYPE_SIZE macros.
10963
109642000-09-09 Mark Mitchell <mark@codesourcery.com>
10965
10966 * cp-tree.h (push_switch): Change prototype.
10967 (check_cp_case_value): Remove declaration.
10968 (decl_constant_value): Likewise.
10969 * decl.c (struct cp_switch): Add switch_stmt and cases.
10970 (case_compare): New function.
10971 (push_switch): Set switch_stmt. Initialize cases.
10972 (pop_switch): Clean up cases.
10973 (define_case_label): Rename to ...
10974 (finish_case_label): ... this. Do semantic analysis for case
10975 labels here.
10976 (start_function): Correct comment.
10977 * decl2.c (check_cp_case_value): Remove.
10978 * expr.c (do_case): Remove.
10979 * pt.c (tsubst_expr): Adjust call to finish_case_label.
10980 * semantics.c (genrtl_do_poplevel): Remove declaration.
10981 (RECHAIN_STMTS): Remove.
10982 (finish_break_stmt): Use build_break_stmt.
10983 (finish_continue_stmt): Use build_continue_stmt.
10984 (finish_switch_cond): Adjust condition here, rater than in
10985 c_expand_start_case.
10986 (finish_case_label): Remove.
10987 * typeck.c (c_expand_return): Remove.
10988 (c_expand_start_case): Likewise.
10989
109902000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
10991
10992 * ir.texi: Document type nodes.
10993
109942000-09-06 Mark Mitchell <mark@codesourcery.com>
10995
10996 * cp-tree.h (init_cp_semantics): Declare.
10997 (genrtl_try_block): Don't declare.
10998 (genrtl_handler): Likewise.
10999 (genrtl_catch_block): Likewise.
11000 (genrtl_ctor_stmt): Likewise.
11001 (genrtl_subobject): Likewise.
11002 (genrtl_do_poplevel): Likewise.
11003 (genrtl_named_return_value): Likewise.
11004 * lex.c (init_parse): Call init_cp_semantics.
11005 * semantics.c (genrtl_try_block): Give it internal linkage.
11006 (genrtl_handler): Likewise.
11007 (genrtl_catch_block): Likewise.
11008 (genrtl_ctor_stmt): Likewise.
11009 (genrtl_subobject): Likewise.
11010 (genrtl_do_poplevel): Likewise.
11011 (genrtl_named_return_value): Likewise.
11012 (lang_expand_stmt): Rename to ...
11013 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
11014 (init_cp_semantics): Define.
11015
11016 * decl.c (initialize_local_var): Remove RTL-generating code.
11017 * semantics.c (genrtl_try_block): Fix formatting.
11018
11019 Move statement-tree facilities from C++ to C front-end.
11020 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
11021 (void_zero_node): Remove.
11022 (stmt_tree): Likewise.
11023 (scope_chain): Adjust.
11024 (language_function): Rename to cp_language_function.
11025 (cp_function_chain): Adjust.
11026 (current_stmt_tree): Remove.
11027 (last_tree): Likewise.
11028 (last_expr_type): Likewise.
11029 (struct lang_decl): Adjust.
11030 (STMT_IS_FULL_EXPR_P): Remove.
11031 (add_tree): Remove.
11032 (begin_stmt_tree): Likewise.
11033 (finish_stmt_tree): Likewise.
11034 (walk_tree_fn): Likewise.
11035 (walk_stmt_tree): Likewise.
11036 * class.c (finish_struct): Replace use of add_tree with add_stmt.
11037 * decl.c (mark_stmt_tree): Adjust type.
11038 (init_decl_processing): Don't build void_zero_node.
11039 (initialize_local_var): Adjust usage of current_stmt_tree.
11040 (finish_enum): Use add_stmt, not add_tree.
11041 (save_function_data): Adjust use of language_function.
11042 (finish_constructor_body): Use add_stmt, not add_tree.
11043 (finish_destructor_body): Likewise.
11044 (push_cp_function_context): Adjust use of language_function.
11045 (pop_cp_function_context): Likewise.
11046 (mark_lang_function): Likewise.
11047 (mark_cp_function_context): Likewise.
11048 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
11049 (build_vec_init): Likewise.
11050 * semantics.c (SET_LAST_STMT): Remove.
11051 (RECHAIN_STMTS): Don't use it.
11052 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
11053 (current_stmt_tree): Define.
11054 (add_tree): Remove.
11055 (finish_goto_stmt): Use add_stmt, not add_tree.
11056 (finish_expr_stmt): Likewise.
11057 (begin_if_stmt): Likewise.
11058 (finish_then_clause): Likewise.
11059 (begin_while_stmt): Likewise.
11060 (begin_do_stmt): Likewise.
11061 (finish_return_stmt): Likewise.
11062 (begin_for_stmt): Likewise.
11063 (finish_break_stmt): Likewise.
11064 (finish_continue_stmt): Likewise.
11065 (begin_switch_stmt): Likewise.
11066 (finish_case_label): Likewise.
11067 (begin_try_block): Likewise.
11068 (begin_function_try_block): Likewise.
11069 (begin_handler): Likewise.
11070 (begin_catch_block): Likewise.
11071 (begin_compound_stmt): Likewise.
11072 (begin_asm_stmt): Likewise.
11073 (finish_asm_stmt): Likewise.
11074 (finish_label_stmt): Likewise.
11075 (add_decl_stmt): Likewise.
11076 (finish_subobject): Likewise.
11077 (finish_decl_cleanup): Likewise.
11078 (finish_named_return_value): Likewise.
11079 (setup_vtbl_ptr): Likewise.
11080 (add_scope_stmt): Likewise.
11081 (finish_stmt_expr): Likewise.
11082 (prune_unused_decls): Remove.
11083 (begin_stmt_tree): Likewise.
11084 (finish_stmt_tree): Likewise.
11085 (prep_stmt): Adjust use of current_stmt_tree.
11086 (lang_expand_stmt): Likewise.
11087 * tree.c (statement_code_p): Remove.
11088 (cp_statement_code_p): New function.
11089 (walk_stmt_tree): Remove.
11090 (init_tree): Set lang_statement_code_p.
11091
110922000-09-06 Zack Weinberg <zack@wolery.cumb.org>
11093
11094 Integrated preprocessor.
11095
11096 * Make-lang.in, Makefile.in: Remove all references to input.c,
11097 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
11098 * gxx.gperf, hash.h, input.c: Delete.
11099 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
11100 initialized properly.
11101
11102 * class.c (fixup_pending_inline): Take a tree, not a
11103 struct pending_inline *. All callers changed.
11104 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
11105 RID_PROTECTED entries in ridpointers[] array here.
11106 * decl.c (duplicate_decls): Do not refer to struct
11107 pending_inline.
11108 (record_builtin_type, init_decl_processing): Use RID_MAX not
11109 CP_RID_MAX.
11110 (grokdeclarator): Use C_IS_RESERVED_WORD.
11111 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
11112 cpplib.
11113 (grok_x_components): Do not inspect pending_inlines chain.
11114
11115 * cp-tree.h (struct lang_identifier): Add rid_code entry.
11116 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
11117 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
11118 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
11119 TIME_IDENTIFIER_FILEINFO): Kill.
11120 Update prototypes.
11121 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
11122 single 32-bit word.
11123 * parse.y: Call do_pending_inlines unconditionally.
11124 reinit_parse_for_method is now snarf_method. fn.defpen is no
11125 longer necessary. Remove unnecessary <itype> annotation on
11126 SCOPE. Do not refer to end_of_file or struct pending_inline.
11127 * semantics.c (begin_inline_definitions): Call
11128 do_pending_inlines unconditionally.
11129
11130 * lex.c: Remove all code now shared with C front end.
11131 Initialize cpplib properly if USE_CPPLIB. Put reserved words
11132 into the get_identifier table. Rewrite pragma handling to
11133 work with the registry. Move code to save tokens for later
11134 processing to spew.c.
11135
11136 * spew.c: Rewrite everything in terms of token streams instead
11137 of text. Move routines here from lex.c / input.c as
11138 appropriate. GC-mark trees hanging off the pending inlines
11139 chain.
11140
111412000-09-06 Mark Mitchell <mark@codesourcery.com>
11142
11143 * NEWS: Mention that the named return value extension has been
11144 deprecated.
11145 * cp-tree.h (original_result_rtx): Define.
11146 (TREE_REFERENCE_EXPR): Remove.
11147 (DECL_VPARENT): Likewise.
11148 (pushdecl_nonclass_level): Likewise.
11149 (store_return_init): Likewise.
11150 (reinit_lang_specific): Likewise.
11151 (genrtl_named_return_value): Change prototype.
11152 * decl.c (original_result_rtx): Remove.
11153 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
11154 Do not generate RTL for local variables here.
11155 (store_return_init): Remove.
11156 * semantics.c (genrtl_named_return_value): Simplify. Fold in
11157 store_return_init.
11158 (finish_named_return_value): Adjust accordingly. Warn that this
11159 extension is deprecated.
11160 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
11161
111622000-09-06 Nathan Sidwell <nathan@codesourcery.com>
11163
11164 * pt.c (type_unification_real): Replace switch with if.
11165 (unify): Tsubst non-type parms before comparing.
11166
111672000-09-06 Nathan Sidwell <nathan@codesourcery.com>
11168
11169 * error.c (dump_typename): New function, broken out of ...
11170 (dump_type): ... here. Use it.
11171 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
11172
111732000-09-06 Nathan Sidwell <nathan@codesourcery.com>
11174
11175 * init.c (build_offset_ref): Deal with namespace scoped
11176 TEMPLATE_ID_EXPRs.
11177
111782000-09-06 Nathan Sidwell <nathan@codesourcery.com>
11179
11180 * class.c (resolve_address_of_overloaded_function): Add
11181 explanation message.
11182 * decl.c (define_case_label): Reformat explanation.
11183 * decl2.c (finish_static_data_member_decl): Likewise.
11184 (grokfield): Likewise.
11185 * friend.c (do_friend): Likewise.
11186
111872000-09-05 Zack Weinberg <zack@wolery.cumb.org>
11188
11189 * tree.c (walk_tree): Expose tail recursion.
11190 (walk_stmt_tree): New function.
11191 * cp-tree.h: Prototype walk_stmt_tree.
11192 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
11193 the BLOCKs directly. If a BLOCK has no variables after
11194 pruning, discard it.
11195 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
11196 restore the line number.
11197
111982000-09-05 Mark Mitchell <mark@codesourcery.com>
11199
11200 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
11201 (pt.o): Remove dependency on HTAB_H.
11202 * cp-tree.h: Include hashtab.h.
11203 (walk_tree): Change prototype.
11204 (walk_tree_without_duplicates): New function.
11205 * decl.c (check_default_argument): Use it.
11206 * optimize.c (remap_decl): Adjust calls to walk_tree.
11207 (copy_body): Likewise.
11208 (expand_calls_inline): Likewise.
11209 (calls_setjmp_p): Use walk_tree_without_duplicates.
11210 * pt.c: Don't include hashtab.h.
11211 (for_each_template_parm): Use walk_tree_without_duplicates.
11212 * semantics.c (finish-stmt_tree): Likewise.
11213 (expand_body): Likewise.
11214 * tree.c (walk_tree): Add additional parameter.
11215 (walk_tree_without_duplicates): New function.
11216 (count_trees): Use it.
11217 (verify_stmt_tree): Adjust call to walk_tree.
11218 (find_tree): Use walk_tree_without_duplicates.
11219 (no_linkage_check): Likewise.
11220 (break_out_target_exprs): Adjust call to walk_tree.
11221 (cp_unsave): Likewise.
11222
112232000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
11224
11225 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
11226 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
11227 * cp-tree.h (TYPE_BINFO): Adjust comment.
11228 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
11229 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
11230 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
11231 (TYPE_TEMPLATE_INFO): Likewise.
11232 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
11233 * class.c (push_nested_class): Likewise.
11234 * decl.c (lookup_name_real): Likewise.
11235 (grokdeclarator): Likewise.
11236 (grok_op_properties): Likewise.
11237 (xref_tag): Likewise.
11238 (xref_basetypes): Likewise.
11239 * decl2.c (constructor_name_full): Likewise.
11240 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
11241 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
11242 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
11243 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
11244 (dump_type_suffix): Likewise.
11245 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
11246 instead.
11247 (get_aggr_from_typedef): Likewise.
11248 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
11249 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
11250 (write_template_parm): Likewise.
11251 (write_template_template_parm): Check tree code instead of
11252 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
11253 * method.c (build_overload_nested_name): Add
11254 BOUND_TEMPLATE_TEMPLATE_PARM.
11255 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
11256 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
11257 * pt.c (convert_template_argument): Check tree code instead of
11258 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
11259 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
11260 (for_each_template_parm): Adjust comment.
11261 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
11262 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
11263 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
11264 template_args_equal to compare template template parameter cases.
11265 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
11266 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
11267 instead.
11268 * tree.c (copy_template_template_parm): Decide whether to create
11269 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
11270 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
11271 (copy_tree_r): Likewise.
11272 * typeck.c (comptypes): Likewise. Check tree code instead of
11273 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
11274
112752000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
11276
11277 * decl.c (finish_function): Move the code for handling functions
11278 marked with the constructor and destructor attributes inside the
11279 expand_p block.
11280
112812000-09-04 Nathan Sidwell <nathan@codesourcery.com>
11282
11283 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
11284
112852000-09-04 Nathan Sidwell <nathan@codesourcery.com>
11286
11287 * pt.c (lookup_template_class): Remove abort.
11288 * tree.c (get_type_decl): Allow error_mark_node.
11289
112902000-09-04 Nathan Sidwell <nathan@codesourcery.com>
11291
11292 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
11293 TEMPLATE_ID_EXPRs.
11294
112952000-09-03 Mark Mitchell <mark@codesourcery.com>
11296
11297 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
11298 new ABI mangling.
11299
113002000-09-01 Nathan Sidwell <nathan@codesourcery.com>
11301
11302 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
11303 union tag mismatch error reporting.
11304
113052000-09-01 Nathan Sidwell <nathan@codesourcery.com>
11306
11307 * call.c (build_scoped_method_call): Check it is not a namespace.
11308
113092000-08-30 Jason Merrill <jason@redhat.com>
11310
11311 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
11312
11313 * tree.c (bot_manip): Check TREE_CONSTANT rather than
11314 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
11315 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
11316
11317 * decl.c (start_function): Always call make_function_rtl.
11318
113192000-08-29 Zack Weinberg <zack@wolery.cumb.org>
11320
11321 * semantics.c (prune_unused_decls): New function.
11322 (finish_stmt_tree): Call it via walk_tree.
11323
113242000-08-29 Zack Weinberg <zack@wolery.cumb.org>
11325
11326 * class.c (build_secondary_vtable): Constify a char *.
11327 * decl.c (init_decl_processing): Initialize function_id_node,
11328 pretty_function_id_node, and func_id_node.
11329 * input.c (struct input_source): Constify 'str'.
11330 (feed_input): Constify first argument.
11331 * mangle.c (write_identifier): Constify argument.
11332 * pt.c (mangle_class_name_for_template): Constify argument.
11333
113342000-08-29 Mark Mitchell <mark@codesourcery.com>
11335
11336 * typeck.c (mark_addressable): Remove code that pokes around in
11337 RTL.
11338
113392000-08-28 Jason Merrill <jason@redhat.com>
11340
11341 * lex.c (file_name_nondirectory): Move to toplev.c.
11342
11343 * cp-tree.h (LOCAL_CLASS_P): New macro.
11344 * class.c (finish_struct_1): Use it.
11345
113462000-08-27 Alex Samuel <samuel@codesourcery.com>
11347
11348 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
11349 (write_encoding): Pass another argument to write_name.
11350 (write_name): Add ignore_local_scope parameter. Fix handling of
11351 local names.
11352 (write_nested_name): Use write_unqualified_name.
11353 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
11354 (write_template_prefix): Use write_unqualified_name.
11355 (write_component): Remove.
11356 (write_local_name): Add parameter. Use direct local entity to
11357 discriminator calculation.
11358 (write_class_enum_type): Pass another argument to write_name.
11359 (write_template_template_arg): Likewise.
11360 (make_guard_variable): Likewise.
11361
113622000-08-27 Jason Merrill <jason@redhat.com>
11363
11364 * decl.c (pushdecl): Matching decls for local externs are found in
11365 the current level. Propagate linkage information from previous
11366 declarations.
11367
113682000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
11369
11370 * ir.texi (Expressions): Fix typo.
11371
113722000-08-25 Greg McGary <greg@mcgary.org>
11373
11374 * tree.c (init_tree): Use ARRAY_SIZE.
11375
113762000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
11377
11378 * error.c (cp_tree_printer): Rework.
11379
113802000-08-25 Mark Mitchell <mark@codesourcery.com>
11381
11382 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
11383 dyn-string.o.
11384 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
11385 (cp-demangle.o): Remove target.
11386 (dyn-string.o): Likewise.
11387
11388 * decl.c (grokfndecl): Require that `main' return an `int'.
11389 * mangle.c (write_encoding): Don't mangle return types for
11390 conversion functions.
11391
113922000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
11393
11394 * error.c (tree_formatting_info): New data type.
11395 (tree_being_formatted): New macro.
11396 (tree_formatting_flags): Likewise.
11397 (put_whitespace): Likewise.
11398 (print_tree_identifier): Likewise.
11399 (print_identifier): Likewise.
11400 (cp_tree_printer, print_function_argument_list, print_declaration,
11401 print_expression, print_function_declaration,
11402 print_function_parameter, print_type, print_cv_qualifier): New
11403 functions.
11404 (init_error): Initialize lang_printer.
11405
114062000-08-24 Jason Merrill <jason@redhat.com>
11407
11408 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
11409 adjustment necessary.
11410
114112000-08-24 Greg McGary <greg@mcgary.org>
11412
11413 * cp-tree.h (MAIN_NAME_P): Remove macro.
11414
114152000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
11416
11417 * error.c (print_instantiation_context): Don't forget to flush the
11418 buffer.
11419
114202000-08-23 Jason Merrill <jason@redhat.com>
11421
11422 * typeck.c (build_ptrmemfunc): Save the input pmf.
11423
11424 * method.c (process_modifiers): Use same_type_p.
11425
114262000-08-23 Mark Mitchell <mark@codesourcery.com>
11427
11428 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
11429 * mangle.c (write_function_type): Change prototype.
11430 (write_encoding): Don't mangle return types for
11431 constructors or destructors.
11432 (write_type): Adjust call to write_function_type.
11433 * pt.c (instantiate_template): Instantiate alternate entry points
11434 when instantiating the main function.
11435
114362000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
11437
11438 * error.c (cp_print_error_function): Don't use embedded '\n' in
11439 output_printf.
11440
114412000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
11442
11443 * decl.c (init_decl_processing): Remove bogus initialization.
11444 * error.c (lang_print_error_function): Restore here.
11445 (init_error): Initialize print_error_function.
11446
114472000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11448
11449 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
11450
114512000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
11452
11453 * Makefile.in (error.o): Depends on diagnostic.h
11454
11455 * cp-tree.h (problematic_instantiation_changed,
11456 record_last_problematic_instantiation, current_instantiation,
11457 print_instantiation_context): Declare.
11458 (maybe_print_template_context): Remove.
11459
11460 * decl.c (init_decl_processing): Set print_error_function to NULL.
11461 (lang_print_error_function): Remove, since we're using a new
11462 machinery.
11463
11464 * error.c: #include diagnostic.h
11465 (function_category): New function.
11466 (cp_diagnostic_starter): Likewise.
11467 (cp_diagnostic_finalizer): Likewise.
11468 (cp_print_error_function): Likewise.
11469 (maybe_print_instantiation_context): Likewise.
11470 (print_instantiation_full_context): Likewise.
11471 (print_instantiation_partial_context): Likewise.
11472 (print_instantiation_context): Define.
11473 (init_error): Initialize diagnostic pager and finalizer.
11474
11475 * pt.c (problematic_instantiation_changed): Define.
11476 (record_last_problematic_instantiation): Likewise.
11477 (current_instantiation): Likewise.
11478 (maybe_print_template_context): Remove.
11479 (print_template_context): Likewise.
11480 (current_tinst_level): Make static to reflect Brendan Kehoe's
11481 change of 1995-04-13.
11482 (push_tinst_level): Call print_instantiation_context.
11483
114842000-08-21 Nix <nix@esperi.demon.co.uk>
11485
11486 * lang-specs.h: Do not process -o or run the assembler if
11487 -fsyntax-only.
11488
114892000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11490
11491 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
11492 variables.
11493 * decl2.c (lang_decode_option): Disable gettext attributes for
11494 -ansi.
11495
114962000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
11497
11498 * lex.c (lang_init_options): Default diagnostic message maximum
11499 length to 80, when line-wrapping.
11500
115012000-08-20 Mark Mitchell <mark@codesourcery.com>
11502
11503 * class.c (build_vtbl_initializer): Clear the entire
11504 vtbl_init_data. Start keeping track of the functions for which we
11505 have created vcall offsets here.
11506 (dfs_build_vcall_offset_vtbl_entries): Remove.
11507 (build_vcall_offset_vtbl_entries): Reimplement.
11508 (add_vcall_offset_vtbl_entries_r): New function.
11509 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
11510 computing when vcall offsets are necessary.
11511
115122000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11513
11514 * decl.c (member_function_or_else): Use cp_error ... %T.
11515 (grokdeclarator): Likewise.
11516 (start_method): Likewise.
11517 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
11518
115192000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11520
11521 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
11522 TYPE_DECLs.
11523
115242000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11525
11526 * cp-tree.h (PTRMEM_OK_P): New macro.
11527 (itf_ptrmem_ok): New enumeration value.
11528 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
11529 argument. Diagnose implicit pointer to member.
11530 (instantiate_type): Don't diagnose implicit pointer to member
11531 here. Pass itf_ptrmem_ok if ok. Adjust calls to
11532 resolve_address_of_overloaded_function.
11533 * init.c (build_offset_ref): Set PTRMEM_OK_P.
11534 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
11535 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
11536 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
11537 (build_unary_op): Deal with single non-static member in
11538 microsoft-land.
11539
115402000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11541
11542 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
11543
115442000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11545
11546 * cp-tree.h (enum_name_string): Remove prototype.
11547 (report_case_error): Remove prototype.
11548 * cp/typeck2.c (enum_name_string): Remove.
11549 (report_case_error): Remove.
11550 * error.c (dump_expr): Deal with enum values directly.
11551 Correctly negate integer constant.
11552
115532000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11554
11555 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
11556 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
11557 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
11558 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
11559 (__cxa_vec_new): Use __cxa_vec_new2.
11560 (__cxa_vec_delete): Use __cxa_vec_delete2.
11561
115622000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11563
11564 * vec.cc (__cxa_vec_new): Set "C" linkage.
11565 (__cxa_vec_ctor): Likewise.
11566 (__cxa_vec_cctor): Likewise.
11567 (__cxa_vec_dtor): Likewise.
11568 (__cxa_vec_delete): Likewise.
11569 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
11570 (__cxa_vec_ctor): Likewise.
11571 (__cxa_vec_cctor): Likewise.
11572 (__cxa_vec_dtor): Likewise.
11573 (__cxa_vec_delete): Likewise.
11574
115752000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11576
11577 * class.c (instantiate_type): Reinstate local variable
11578 deleted in previous change.
11579
11580 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
11581 itf_no_attributes.
11582
115832000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11584
11585 * cp-tree.h (instantiate_type_flags): New enumeration.
11586 (instantiate_type): Change parameter.
11587 * class.c (instantiate_type): Adjust prototype. Adjust.
11588 * call.c (standard_conversion): Adjust instantiate_type call.
11589 (reference_binding): Likewise.
11590 (build_op_delete_call): Likewise.
11591 (convert_like_real): Likewise.
11592 * cvt.c (cp_convert_to_pointer): Likewise.
11593 (convert_to_reference): Likewise.
11594 * pt.c (convert_nontype_argument): Likewise.
11595 * typeck.c (build_binary_op): Likewise.
11596 (build_ptrmemfunc): Likewise.
11597 (convert_for_assignment): Likewise.
11598
115992000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11600
11601 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
11602 (current_aggr): Define.
11603 * decl.c (grokdeclarator): Make sure a friend class is an
11604 elaborated type specifier.
11605 * parse.y (current_aggr): Remove static definition.
11606 (cp_parse_init): Adjust.
11607 (structsp): Clear and restore current_aggr.
11608 (component_decl_list): Clear current_aggr.
11609
11610 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
11611 aggregate tag on the typename's context.
11612
11613 * pt.c (tsubst_friend_class): Return error_mark_node, if
11614 parms becomes NULL.
11615 (instantiate_class_template): Ignore error_mark_node friend types.
11616
116172000-08-14 Nathan Sidwell <nathan@codesourcery.com>
11618
11619 * cvt.c (warn_ref_binding): New static function, broken out of ...
11620 (convert_to_reference): ... here. Use it.
11621
116222000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
11623
11624 * parse.y (template_arg): Add rule for template qualified with
11625 global scope.
11626
116272000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11628
11629 * decl2.c (add_function): Reorganize.
11630 (arg_assoc): Do not consider function template decls.
11631
116322000-08-11 Jason Merrill <jason@redhat.com>
11633
11634 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
11635 looking inside.
11636
116372000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11638
11639 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
11640 (lookup_nested_tag): Likewise.
11641
11642 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
11643 can be produced.
11644
116452000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11646
11647 * parse.y (named_complex_class_head_sans_basetype): Remove
11648 always true if.
11649
116502000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11651
11652 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
11653 explicit TEMPLATE_ID_EXPR args.
11654 (build_expr_from_tree, case CALL_EXPR): Likewise.
11655
116562000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11657
11658 * decl.c (check_tag_decl): Diagnose typename's which don't
11659 declare anything.
11660
116612000-08-10 Nathan Sidwell <nathan@codesourcery.com>
11662
11663 * init.c (build_aggr_init): Reject bogus array initializers
11664 early.
11665
116662000-08-09 Nathan Sidwell <nathan@codesourcery.com>
11667
11668 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
11669 runtime.
11670 * cp/tinfo.cc (__dynamic_cast): Likewise.
11671 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
11672
116732000-08-09 Nathan Sidwell <nathan@codesourcery.com>
11674
11675 * cvt.c (convert_to_pointer_force): Fix error message when
11676 attempting to cast from ambiguous base.
11677
116782000-08-08 Jason Merrill <jason@redhat.com>
11679
11680 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
11681 (tsubst_template_arg_vector): Likewise.
11682
11683 * decl2.c (build_anon_union_vars): Choose the largest field; don't
11684 assume that one will be as large as the union.
11685
116862000-08-07 Kazu Hirata <kazu@hxi.com>
11687
11688 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
11689 * decl.c (pop_labels): Likewise.
11690
116912000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
11692
11693 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
11694 specifications.
11695 (__pointer_to_member_type_info): Likewise.
11696 (__base_class_info): Likewise.
11697 (__class_type_info): Likewise.
11698 (__si_class_type_info): Likewise.
11699 (__vmi_class_type_info): Likewise.
11700 * tinfo.cc (__si_class_type_info::__do_find_public_src):
11701 Changed member names to match specifications.
11702 (__vmi_class_type_info::__do_find_public_src): Likewise.
11703 (__si_class_type_info::__do_dyncast): Likewise.
11704 (__vmi_class_type_info::__do_dyncast): Likewise.
11705 (__si_class_type_info::__do_upcast): Likewise.
11706 (__vmi_class_type_info::__do_upcast): Likewise.
11707 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
11708 (__pbase_type_info::__pointer_catch): Likewise.
11709 (__pointer_type_info::__pointer_catch): Likewise.
11710 (__pointer_to_member_type_info::__pointer_catch): Likewise.
11711
117122000-08-04 Zack Weinberg <zack@wolery.cumb.org>
11713
11714 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
11715 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
11716 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
11717
117182000-08-04 Mark Mitchell <mark@codesourcery.com>
11719
11720 * cp-tree.h (add_method): Change prototype.
11721 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
11722 Don't double the size of the method vector in the error case.
11723 (handle_using_decl): Adjust call to add_method.
11724 (add_implicitly_declared_members): Likewise.
11725 (clone_function_decl): Likewise.
11726 * decl2.c (check_classfn): Likewise.
11727 * semantics.c (finish_member_declaration): Likewise.
11728
117292000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
11730
11731 * decl.c (flag_isoc94): New variable.
11732
117332000-08-02 Jason Merrill <jason@redhat.com>
11734
11735 * pt.c (do_type_instantiation): Add complain parm; don't complain
11736 if called recursively.
11737 * cp-tree.h, parse.y: Adjust.
11738
117392000-08-02 Zack Weinberg <zack@wolery.cumb.org>
11740
11741 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
11742 -Wno-strict-prototypes.
11743
11744 * g++spec.c: Adjust type of second argument to
11745 lang_specific_driver, and update code as necessary.
11746
11747 * cp-tree.h: Don't prototype min_precision here.
11748 (my_friendly_assert): Cast expression to void.
11749 * semantics.c (do_poplevel): Initialize scope_stmts.
11750
117512000-08-02 Mark Mitchell <mark@codesourcery.com>
11752
11753 * cp-tree.h (DECL_NEEDED_P): Tweak.
11754
117552000-07-28 Jason Merrill <jason@redhat.com>
11756
11757 * lang-specs.h: Use %i in rule for .ii files.
11758
117592000-07-31 Zack Weinberg <zack@wolery.cumb.org>
11760
11761 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
11762
117632000-07-30 Mark Mitchell <mark@codesourcery.com>
11764
11765 Allow indirect primary bases.
11766 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
11767 primary_base.
11768 (CLASSTYPE_VFIELD_PARENT): Remove.
11769 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
11770 (BINFO_PRIMARY_BINFO): Remove.
11771 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
11772 (BINFO_VBASE_PRIMARY_P): Likewise.
11773 (BINFO_PRIMARY_BASE_OF): New macro.
11774 (BINFO_INDIRECT_PRIMARY_P): Likewise.
11775 (get_primary_binfo): New function.
11776 * decl.c (lang_mark_tree): Make lang_type::primary_base.
11777 * class.c (vcall_offset_data_s): Rename to ...
11778 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
11779 and add ctor_vtbl_p.
11780 (get_derived_offset): Use get_primary_binfo.
11781 (dfs_mark_primary_bases): Adjust handling of virtual primary
11782 bases.
11783 (mark_primary_bases): Likewise.
11784 (set_primary_base): Take a binfo, not an integer, as a
11785 representation of the primary base.
11786 (indirect_primary_base_p): Remove.
11787 (determine_primary_base): Adjust for indirect primary bases.
11788 (dfs_find_final_overrider): Fix typo in coment.
11789 (update_vtable_entry_for_fn): Use get_primary_binfo.
11790 (layout_nonempty_base_or_field): Tweak.
11791 (build_base_fields): Adjust for new primary base semantics.
11792 (dfs_propagate_binfo_offsets): Remove.
11793 (propagate_binfo_offsets): Rewrite.
11794 (dfs_set_offset_for_shared_vbases): Remove.
11795 (layout_virtual_bases): Don't use it.
11796 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
11797 ABI.
11798 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
11799 CLASSTYPE_VFIELD_PARENT.
11800 (dfs_get_primary_binfo): New function.
11801 (get_primary_binfo): Likewise.
11802 (dump_class_hierarchy_r): Tweak printing of primary bases.
11803 (build_vtbl_initializer): Fix typo in comments. Use
11804 vtbl_init_data.
11805 (build_vcall_and_vbase_vtbl_entries): Likewise.
11806 (build_vbaes_offset_vtbl_entries): Likewise.
11807 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
11808 BV_VCALL_INDEX to handle indirect primary bases.
11809 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
11810 (build_rtti_vtbl_entries): Likewise.
11811 * search.c (get_shared_vbase_if_not_primary): Tweak.
11812 (find_vbase_instance): Likewise.
11813 (binfo_for_vtable): Simplify.
11814 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
11815 (make_binfo): Make it have 11 entries.
11816
118172000-07-30 Alex Samuel <samuel@codesourcery.com>
11818
11819 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
11820 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
11821 ascertaining primaryness.
11822 (G): Remove template_args.
11823 (decl_is_template_id): New function.
11824 (write_encoding): Use decl_is_template_id.
11825 (write_name): Likewise. Handle type_decls. Get main variant of
11826 type decls.
11827 (write_nested_name): Likewise.
11828 (write_prefix): Likewise.
11829 (write_template_prefix): Likewise.
11830 (write_special_name_constructor): Remove defunct production from
11831 comment.
11832 (write_bare_function_type): Remove comment about absent parameter.
11833 (write_template_template_arg): Add missing grammar production to
11834 comment.
11835
118362000-07-27 Jason Merrill <jason@redhat.com>
11837
11838 * decl.c (duplicate_decls): If common_type produces a non-typedef
11839 type for a typedef, just use the old type.
11840
118412000-07-27 Mark Mitchell <mark@codesourcery.com>
11842
11843 * cp-tree.h (function_depth): Declare.
11844 (verify_stmt_tree): Likewise.
11845 (find_tree): Likewise.
11846 * decl.c (function_depth): Give it external linkage.
11847 * optimize.c (optimize_function): Increment and decrement it.
11848 * tree.c (verify_stmt_tree_r): New function.
11849 (verify_stmt_tree): Likewise.
11850 (find_tree_r): Likewise.
11851 (find_tree): Likewise.
11852
118532000-07-27 Jason Merrill <jason@redhat.com>
11854
11855 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
11856 TYPE_PTRMEMFUNC_P.
11857 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
11858
118592000-07-26 Mark Mitchell <mark@codesourcery.com>
11860
11861 * decl.c (start_cleanup_fn): Mark the function as `inline'.
11862 * decl2.c (get_guard): Call cp_finish_decl, not
11863 rest_of_decl_compilation, for local guards.
11864 * lex.c (do_identifier): Remove unused variable.
11865
11866Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
11867
11868 * parse.y: Add missing ';'.
11869
118702000-07-26 Mark Mitchell <mark@codesourcery.com>
11871
11872 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
11873 of `extern "C++"'.
11874
118752000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11876
11877 Kill strict_prototype. Backwards compatibility only for
11878 non NO_IMPLICIT_EXTERN_C systems.
11879 * cp-tree.h (flag_strict_prototype): Remove.
11880 (strict_prototype): Remove.
11881 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
11882 * decl.c (maybe_push_to_top_level): Adjust.
11883 (pop_from_top_level): Adjust.
11884 (decls_match): Only allow sloppy parm matching for ancient
11885 system headers.
11886 (init_decl_processing): Adjust.
11887 (grokdeclarator): Adjust.
11888 * decl2.c (flag_strict_prototype): Remove.
11889 (strict_prototype): Remove.
11890 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
11891 (lang_f_options): Remove "strict-prototype".
11892 (unsupported-options): Add "strict-prototype".
11893 * lex.c (do_identifier): Adjust.
11894 (do_scoped_id): Adjust.
11895 * parse.y (empty_parms): Adjust.
11896 * class.c (push_lang_context): Adjust.
11897 (pop_lang_context): Adjust.
11898 * typeck.c (comp_target_parms): Adjust.
11899
119002000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11901
11902 * decl.c (poplevel): Deal with anonymous variables at for scope.
11903 (maybe_inject_for_scope_var): Likewise.
11904
119052000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11906
11907 * decl.c: Remove all signal handling code, now done in toplev.c.
11908
119092000-07-23 Mark Mitchell <mark@codesourcery.com>
11910
11911 * decl.c (make_rtl_for_nonlocal_decl): Rework.
11912
11913 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
11914 correctly.
11915
119162000-07-20 Zack Weinberg <zack@wolery.cumb.org>
11917
11918 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
11919 Define my_friendly_assert and my_friendly_abort as macros
11920 which may call friendly_abort. Prototype friendly abort, not
11921 my_friendly_abort or my_friendly_assert.
11922 * decl.c (signal_catch): Report the signal caught in the error
11923 message. Call fatal directly.
11924 * typeck2.c (ack, my_friendly_assert): Delete.
11925 (my_friendly_abort): Rename to friendly_abort. Expect file,
11926 line, and function parameters. Report the abort code, then
11927 call fancy_abort. Do not mask an abort if errors have
11928 already occurred.
11929
119302000-07-18 Nathan Sidwell <nathan@codesourcery.com>
11931
11932 * typeck.c (comp_target_parms): Remove obsolete parameter.
11933 (comp_target_types): Adjust.
11934
119352000-07-17 Jason Merrill <jason@redhat.com>
11936
11937 * typeck.c (mark_addressable): Never set TREE_USED.
11938 * call.c (build_call): Don't abort on calls to library functions
11939 that have been declared normally.
11940
11941 * typeck.c (build_binary_op): Fix grammar in warning.
11942
11943 * exception.cc (__eh_free): Fix prototype.
11944
11945 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
11946
11947 * decl.c (pushdecl): Handle seeing an OVERLOAD in
11948 IDENTIFIER_NAMESPACE_VALUE.
11949
119502000-07-16 Mark Mitchell <mark@codesourcery.com>
11951
11952 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
11953 * method.c (use_thunk): Correct handling of vcall offsets.
11954
119552000-07-14 Zack Weinberg <zack@wolery.cumb.org>
11956
11957 * .cvsignore: parse.h and parse.c have no cp- prefix.
11958
119592000-07-13 Mark Mitchell <mark@codesourcery.com>
11960
11961 * .cvsignore: New file.
11962
119632000-07-13 Zack Weinberg <zack@wolery.cumb.org>
11964
11965 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
11966
119672000-07-12 Mark Mitchell <mark@codesourcery.com>
11968
11969 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
11970 * parse.c: Remove.
11971 * parse.h: Likewise.
11972
119732000-07-11 Mark Mitchell <mark@codesourcery.com>
11974
11975 * class.c (layout_class_type): Add pointers to virtual bases after
11976 base classes under the old ABI.
11977
119782000-07-10 Benjamin Chelf <chelf@codesourcery.com>
11979
11980 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
11981 (finish_continue_stmt): Likewise.
11982 (begin_for_stmt): Remove call to note_level_for_for.
11983 (finish_goto_stmt): Change call from build_min_nt
11984 to build_stmt.
11985 (finish_expr_stmt): Likewise.
11986 (begin_if_stmt): Likewise.
11987 (begin_while_stmt): Likewise.
11988 (finish_while_stmt): Likewise.
11989 (finish_return_stmt): Likewise.
11990 (begin_for_stmt): Likewise.
11991 (finish_for_stmt): Likewise.
11992 (finish_break_stmt): Likewise.
11993 (begin_switch_stmt): Likewise.
11994 (finish_case_label): Likewise.
11995 (genrtl_try_block): Likewise.
11996 (begin_try_block): Likewise.
11997 (begin_handler): Likewise.
11998 (begin_compound_stmt): Likewise.
11999 (finish_asm_stmt): Likewise.
12000 (finish_label_stmt): Likewise.
12001 (add_decl_stmt): Likewise.
12002 (finish_subobject): Likewise.
12003 (finish_decl_cleanup): Likewise.
12004 (finish_named_return_value): Likewise.
12005 (setup_vtbl_ptr): Likewise.
12006 (add_scope_stmt): Likewise.
12007 * decl.c (finish_constructor_body): Likewise.
12008 (finish_destructor_body): Likewise.
12009 * optimize.c (copy_body_r): Likewise.
12010 (initialize_inlined_parameters): Likewise.
12011 (declare_return_variable): Likewise.
12012 (expand_call_inline): Likewise.
12013
120142000-07-10 Jakub Jelinek <jakub@redhat.com>
12015
12016 * semantics.c (expand_body): Sync interface information
12017 at the end of function body expansion.
12018
120192000-07-09 Jason Merrill <jason@redhat.com>
12020
12021 * init.c (build_new_1): Bail early if the call to new fails.
12022
12023 * decl.c (compute_array_index_type): Check specifically for
12024 an INTEGER_CST, not just TREE_CONSTANT.
12025
12026 * decl.c (duplicate_decls): Don't call duplicate_decls on
12027 the DECL_TEMPLATE_RESULT.
12028 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
12029 codes.
12030
12031 * error.c (dump_template_bindings): Don't crash if we had an
12032 invalid argument list.
12033
12034 * typeck.c (c_expand_start_case): Do narrowing here.
12035 * semantics.c (finish_switch_cond): Not here.
12036
120372000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
12038
12039 * parse.y (asm_clobbers): Do string concatenation.
12040
120412000-07-09 Mark Mitchell <mark@codesourcery.com>
12042
12043 * decl.c (pushtag): Don't put local classes in template functions
12044 on the local_classes list.
12045
120462000-07-04 Scott Snyder <snyder@fnal.gov>
12047
12048 * decl2.c (get_guard): Add missing return for old ABI local
12049 variable case.
12050
120512000-07-09 Mark Mitchell <mark@codesourcery.com>
12052
12053 * cp-tree.h (char_type_p): New function.
12054 * decl.c (init_decl_processing): Don't initialize
12055 signed_wchar_type_node or unsigned_wchar_type_node.
12056 (complete_array_type): Handle brace-enclosed string-constants.
12057 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
12058 * tree.c (char_type_p): New function.
12059 * typeck2.c (digest_init): Use char_type_p.
12060
120612000-07-06 Nathan Sidwell <nathan@codesourcery.com>
12062
12063 * pt.c (tsubst): Don't layout type, if it's error_mark.
12064
120652000-07-06 Nathan Sidwell <nathan@codesourcery.com>
12066
12067 * pt.c (instantiate_pending_templates): Reset template level.
12068
120692000-07-05 Jason Merrill <jason@redhat.com>
12070
12071 * call.c (joust): Don't complain about `operator char *()' beating
12072 `operator const char *() const'.
12073
120742000-07-04 scott snyder <snyder@fnal.gov>
12075 Jason Merrill <jason@redhat.com>
12076
12077 * repo.c (repo_get_id): Handle the case where a class with virtual
12078 bases has a null TYPE_BINFO_VTABLE.
12079
120802000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
12081 Jason Merrill <jason@redhat.com>
12082
12083 * parse.y (member_init): Just pass in the type.
12084 * init.c (expand_member_init): Handle getting a type.
12085
12086