Don't allow template-id in using-declaration.
[gcc.git] / gcc / cp / ChangeLog
1 2001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2
3 Don't allow template-id in using-declaration.
4 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
5 (do_class_using_decl): Likewise.
6
7 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
8
9 * cp/spew.c (read_token): No need to pop buffers.
10
11 2001-08-02 Stan Shebs <shebs@apple.com>
12
13 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
14 (fnaddr_from_vtable_entry): Remove decl.
15 * method.c (use_thunk): Update comment.
16
17 2001-08-01 Andrew Cagney <ac131313@redhat.com>
18
19 * repo.c (get_base_filename): Change return value to const char
20 pointer.
21
22 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
23
24 Kill -fhonor-std.
25 * NEWS: Document.
26 * cp-tree.h (flag_honor_std): Remove.
27 (CPTI_FAKE_STD): Remove.
28 (std_node): Remove comment about it being NULL.
29 (fake_std_node): Remove.
30 * decl.c (in_fake_std): Remove.
31 (walk_namespaces_r): Remove fake_std_node check.
32 (push_namespace): Remove in_fake_std code.
33 (pop_namespace): Likewise.
34 (lookup_name_real): Remove fake_std_node check.
35 (init_decl_processing): Always create std_node. Always add
36 std:: things there.
37 (builtin_function): Always put non '_' fns in std.
38 * decl2.c (flag_honor_std): Remove.
39 (lang_f_options): Remove honor-std.
40 (unsupported_options): Add honor-std.
41 (set_decl_namespace): Remove fake_std_node check.
42 (validate_nonmember_using_decl): Likewise.
43 (do_using_directive): Likewise.
44 (handle_class_head): Likewise.
45 * dump.c (cp_dump_tree): Likewise.
46 * except.c (init_exception_processing): Adjust.
47 * init.c (build_member_call): Remove fake_std_node check.
48 (build_offset_ref): Likewise.
49 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
50 * rtti.c (init_rtti_processing): Adjust.
51
52 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
53
54 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
55 operand while calling cp_tree_equal.
56
57 2001-07-31 Nathan Sidwell <nathan@codesourcery.com>
58
59 The 3.0 ABI no longer has vbase pointer fields.
60 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
61 FORMAT_VBASE_NAME): Remove.
62 * method.c (do_build_copy_constructor): Adjust.
63 (do_build_assign_ref): Adjust.
64 * search.c (lookup_field_r): Adjust.
65 * typeck.c (build_component_ref): Adjust.
66
67 The 3.0 ABI always has a vtable pointer at the start of every
68 polymorphic class.
69 * rtti.c (build_headof_sub): Remove.
70 (build_headof): Adjust.
71 (get_tinfo_decl_dynamic): No need to check flag_rtti
72 here. Adjust.
73 (create_real_tinfo_var): Explain why we need a hidden name.
74
75 2001-07-31 Nathan Sidwell <nathan@codesourcery.com>
76
77 PR c++/3631
78 * class.c (update_vtable_entry_for_fn): The fixed adjustment
79 of a virtual thunk should be from declaring base.
80
81 2001-07-31 Nathan Sidwell <nathan@codesourcery.com>
82
83 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
84 the shared virtual base, so preserving inheritance graph order.
85
86 2001-07-30 Andreas Jaeger <aj@suse.de>
87
88 * decl2.c: Remove unused var global_temp_name_counter.
89
90 2001-07-28 Richard Henderson <rth@redhat.com>
91
92 * method.c (pending_inlines): Remove.
93
94 2001-07-27 Nathan Sidwell <nathan@codesourcery.com>
95
96 * class.c (mark_primary_virtual_base): Don't adjust base
97 offsets here.
98 (dfs_unshared_virtual_bases): Adjust them here.
99 (mark_primary_bases): Explain why we adjust at the end.
100
101 2001-07-27 Nathan Sidwell <nathan@codesourcery.com>
102
103 * class.c (finish_struct_1): When copying the primary base's
104 VFIELD, make sure we find it is at offset zero.
105
106 2001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
107
108 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
109 tsubst_expr for default template arguments.
110
111 2001-07-26 Nathan Sidwell <nathan@codesourcery.com>
112
113 PR c++/3621
114 * spew.c (yylex): Only copy the token's lineno, if it is
115 non-zero.
116
117 2001-07-26 Nathan Sidwell <nathan@codesourcery.com>
118
119 PR c++/3624
120 * call.c (resolve_args): Simplify, call
121 convert_from_reference.
122 (build_new_op): Resolve and convert from reference ARG1
123 earlier. Adjust ARG2 & ARG3 resolve and conversion.
124
125 2001-07-26 Nathan Sidwell <nathan@codesourcery.com>
126
127 * decl.c (last_function_parm_tags): Remove.
128 (current_function_parm_tags): Remove.
129 (init_decl_processing): Adjust.
130 (start_function): Adjust.
131 (store_parm_decls): Adjust.
132
133 PR c++/3152
134 * decl.c (grokdeclarator): Detect when a function typedef is
135 declaring a function, and create last_function_parms correctly.
136
137 2001-07-25 Jason Merrill <jason_merrill@redhat.com>
138
139 * call.c (joust): Only prefer a non-builtin candidate to a builtin
140 one if they have the same signature.
141
142 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
143 it rather than toplevel_bindings_p. Give it a mangled name if static.
144 (convert_to_reference): Adjust.
145 * decl2.c (get_temp_name): Lose.
146 * mangle.c (mangle_ref_init_variable): New fn.
147 (mangle_guard_variable): Strip the ref-init header.
148 * cp-tree.h: Adjust.
149 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
150 initializer.
151 (grok_reference_init): Always use DECL_INITIAL.
152
153 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
154
155 PR c++/3416
156 * call.c (build_conditional_expr): Recheck args after
157 conversions.
158 * cp-tree.h (build_conditional_expr): Move to correct file.
159 * typeck.c (decay_conversion): Diagnose any unknown types
160 reaching here.
161 (build_binary_op): Don't do initial decay or default
162 conversions on overloaded functions.
163 (build_static_cast): Don't do a decay conversion here.
164
165 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
166
167 PR c++/3543
168 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
169 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
170
171 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
172
173 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
174 (create_vtbl_ptr): ... here.
175
176 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
177
178 * class.c (build_vbase_offset_vbtl_entries): Look for
179 non-primary base of which we are a sub vtable.
180
181 2001-07-24 Phil Edwards <pme@sources.redhat.com>
182
183 * semantics.c (finish_this_expr): Remove unused code.
184
185 2001-07-24 Nathan Sidwell <nathan@codesourcery.com>
186
187 Simplify rtti, now we've only one ABI.
188 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
189 CPTI_TINFO_VAR_ID.
190 (tinfo_decl_id, tinfo_var_id): Remove.
191 (get_typeid_1): Remove.
192 * rtti.c
193 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
194 (typeid_ok_p): New function.
195 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
196 (get_tinfo_decl): Remove old abi documentation.
197 (tinfo_from_decl): Remove.
198 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
199 (get_typeid_1): Remove.
200 (get_base_offset): Remove.
201 (synthesize_tinfo_var): Absorb get_base_offset.
202 (create_real_tinfo_var): Don't use tinfo_decl_id.
203
204 2001-07-23 Graham Stott <grahams@redhat.com>
205
206 * cp/class.c (type_requires_array_cookie): Fix use of uninitialised
207 variable has_two_argument_delete_p.
208
209 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
210
211 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
212 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
213 (CPTI_INDEX_IDENTIFIER): Remove.
214 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
215 (delta2_identifier): Remove.
216 (index_identifier): Remove.
217 (pfn_or_delta2_identifier): Remove.
218 (flag_vtable_thunks): Remove.
219 (VTABLE_DELTA2_NAME): Remove.
220 (VTABLE_INDEX_NAME): Remove.
221 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
222 (vfunc_ptr_type_node): Adjust.
223 (VTABLE_NAME_PREFIX): Adjust.
224 (build_vfn_ref): Lose first parameter.
225 (fixup_all_virtual_upcast_offsets): Remove.
226 * decl.c (initialize_predefined_identifiers): Remove
227 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
228 (init_decl_processing): Remove no-vtable-thunk code.
229 * decl2.c (flag_vtable_thunks): Remove.
230 (mark_vtable_entries): Remove no-vtable-thunk code.
231 * error.c (dump_decl): Remove no-vtable-thunk code.
232 (dump_expr): Adjust ptr to member function code.
233 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
234 code.
235 * rtti.c (build_headof): Remove no-vtable-thunk code.
236 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
237 * search.c (get_base_distance): Remove expand_upcast_fixups case.
238 (virtual_context) Remove.
239 (expand_upcast_fixups): Remove.
240 (fixup_virtual_upcast_offsets): Remove.
241 (fixup_all_virtual_upcast_offsets): Remove.
242 * typeck.c (get_member_function_from_ptrfunc): Remove
243 no-vtable-thunk code.
244 * call.c (build_over_call): Adjust call to build_vfn_ref.
245 * class.c (build_vfn_ref): Lose first parameter. Remove
246 no-vtable-thunk code.
247 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
248 (build_vtable_entry): Remove no-vtable-thunk code.
249
250 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
251
252 Remove old-abi remnants. Remove comments about old abi
253 behaviour. Remove refences to 'new-abi' in comments.
254 * cp-tree.h: Adjust comments.
255 (vbase_offsets_in_vtable_p): Delete.
256 (vcall_offsets_in_vtable_p): Delete.
257 (vptrs_present_everywhere_p): Delete.
258 (all_overridden_vfuns_in_vtables_p): Delete.
259 (merge_primary_and_secondary_vtables_p): Delete.
260 (TYPE_CONTAINS_VPTR_P): Adjust.
261 (VTT_NAME_PREFIX): Remove.
262 (CTOR_VTBL_NAME_PREFIX): Remove.
263 (init_vbase_pointers): Remove.
264 * class.c: Adjust coments.
265 (build_vbase_pointer_fields): Delete.
266 (build_vbase_pointer): Remove old-abi code.
267 (build_secondary_vtable): Likewise.
268 (modify_all_vtables): Likewise.
269 (create_vtable_ptr): Likewise.
270 (layout_class_type): Likewise.
271 (finish_struct_1): Likewise.
272 (finish_vtbls): Likewise.
273 (dfs_finish_vtbls): Delete.
274 (build_vbase_offset_vtbl_entries): Remove old-abi code.
275 * cvt.c: Adjust comments.
276 * decl.c: Adjust comments.
277 * decl2.c: Adjust comments.
278 * init.c: Adjust comments.
279 (construct_virtual_bases): Remove old-abi code.
280 * lang-specs.h: Remove -fno-new-abi.
281 * mangle.c: Adjust comments.
282 * rtti.c: Adjust comments.
283 (get_base_offset): Remove old-abi-code.
284 * search.c: Adjust comments.
285 (dfs_init_vbase_pointers): Remove.
286 (dfs_vtable_path_unmark): Remove.
287 (init_vbase_pointers): Remove.
288 * semantics.c: Adjust comments.
289 (emit_associated_thunks): Remove old-abi code.
290 * typeck.c: Adjust comments.
291
292 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
293
294 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
295 params.h.
296
297 2001-07-19 Mark Mitchell <mark@codesourcery.com>
298
299 * class.c (finish_struct_anon): Forbid nested classes.
300
301 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
302
303 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
304 * optimize.c: Include debug.h.
305 (maybe_clone_body): Use debug hook.
306 * semantics.c: Include debug.h.
307 (expand_body): Use debug hook.
308
309 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
310
311 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
312
313 2001-07-18 Mark Mitchell <mark@codesourcery.com>
314
315 * class.c (type_requires_array_cookie): New function.
316 (check_methods): Don't try to figure out whether the type needs a
317 cookie here.
318 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
319 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
320 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
321 * pt.c (instantiate_class_template): Don't set
322 TYPE_VEC_DELETE_TAKES_SIZE.
323 * NEWS: Document ABI changes from GCC 3.0.
324
325 2001-07-18 Xavier Delacour <xavier@fmaudio.net>,
326 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
327
328 * NEWS (Changes in GCC 3.0): Fix typo.
329
330 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
331
332 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
333 which attributes are to be attached, and a flags argument. Update
334 call to decl_attributes.
335 (grokfield): Update call to decl_attributes.
336 * class.c (finish_struct): Update call to cplus_decl_attributes.
337 * cp-tree.h (cplus_decl_attributes): Update prototype.
338 * decl.c (start_decl, grokdeclarator, start_function): Update
339 calls to decl_attributes and cplus_decl_attributes.
340 * friend.c (do_friend): Update call to cplus_decl_attributes.
341 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
342
343 2001-07-12 Mark Mitchell <mark@codesourcery.com>
344
345 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
346 for `register' variables with an asm-specification.
347
348 2001-07-11 Mark Mitchell <mark@codesourcery.com>
349
350 * semantics.c (finish_asm_stmt): Mark the output operands
351 to an asm addressable, if necessary.
352
353 2001-07-11 Ben Elliston <bje@redhat.com>
354
355 * Revert this change -- there is a subtle bug.
356
357 PR c++/80
358 * decl.c (finish_enum): New "attributes" argument; pass it to
359 cplus_decl_attributes. Use a narrower type if the enum is packed.
360 * cp-tree.h (finish_enum): Adjust prototype.
361 * parse.y (enum_head): New non-terminal.
362 (structsp): Use it. Enums now may be preceded or followed by
363 optional attributes -- pass their chained tree to finish_enum().
364 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
365
366 2001-07-10 Mark Mitchell <mark@codesourcery.com>
367
368 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
369 variables.
370
371 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
372
373 * semantics.c (cp_expand_stmt): Fix for null
374 current_function_return_value.
375
376 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
377
378 * call.c (build_op_delete_call): Initialize fn.
379 (convert_like_real): Delete conditional.
380 (joust): Initialize *w and *l.
381 * class.c: Add prototype for binfo_ctor_vtable.
382 (get_primary_binfo): Initialize result.
383 * init.c (build_java_class_ref): Initialize name.
384
385 2001-07-09 Erik Rozendaal <dlr@acm.org>
386
387 * typeck.c (unary_complex_lvalue): Do not duplicate the
388 argument to modify, pre-, or post-increment when used as an
389 lvalue and when the argument has side-effects.
390
391 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
392
393 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
394 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
395 cplus_decl_attributes even if attrs is NULL.
396 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
397
398 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
399
400 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
401 calls to decl_attributes.
402
403 2001-07-06 Ira Ruben <ira@apple.com>
404
405 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
406 be DECL_TEMPLATE_RESULT.
407
408 2001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
409
410 * cp-tree.h (copy_template_template_parm): Rename to ...
411 (bind_template_template_parm): ... here.
412 * tree.c (copy_template_template_parm): Rename to ...
413 (bind_template_template_parm): ... here. Remove the case when
414 NEWARGS is NULL_TREE.
415 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
416 BOUND_TEMPLATE_TEMPLATE_PARM.
417 * pt.c (lookup_template_class): Adjust.
418
419 2001-07-05 Jason Merrill <jason_merrill@redhat.com>
420
421 * cvt.c (convert_lvalue): New fn.
422 * cp-tree.h: Declare it.
423 * method.c (do_build_assign_ref): Use it.
424 (do_build_copy_constructor): Convert parm to base types
425 before calling base constructors.
426
427 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
428 DECL_USER_ALIGN. Check flag_elide_constructors instead of
429 optimize.
430 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
431
432 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
433
434 * optimize.c (optimize_inline_calls): New function, broken out
435 of ...
436 (optimize_function): ... here. Call it. Don't inline if it is
437 a thunk.
438 (dump_function): Print name of dump flag causing this dump.
439 * semantics.c (expand_body): Move thunk inline check to
440 optimize_function.
441
442 2001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
443
444 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
445 (comptypes): Use target.comp_type_attributes.
446
447 2001-06-29 Nathan Sidwell <nathan@codesourcery.com>
448
449 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
450
451 2001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
452
453 * error.c (lang_print_error_function): Add a `diagnostic_context *'
454 parameter. Tweak.
455
456 2001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
457
458 * decl2.c (import_export_class): Update.
459
460 2001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
461
462 * error.c (init_error): Adjust settings.
463
464 2001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
465
466 * error.c (init_error): Adjust settings.
467
468 2001-06-19 Richard Sandiford <rsandifo@redhat.com>
469
470 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
471 return pointers to data members by reference rather than by value.
472
473 2001-06-18 Jason Merrill <jason_merrill@redhat.com>
474
475 Implement the Named Return Value optimization.
476 * cp-tree.h (struct cp_language_function): Add x_return_value.
477 (current_function_return_value): Now a macro.
478 * decl.c: Don't define it.
479 (define_label, finish_case_label): Don't clear it.
480 (init_decl_processing): Don't register it with GC.
481 * semantics.c (genrtl_finish_function): Don't check it for
482 no_return_label. Copy the RTL from the return value to
483 current_function_return_value and walk, calling...
484 (nullify_returns_r): ...this new fn.
485 * typeck.c (check_return_expr): Set current_function_return_value.
486
487 2001-06-15 Jason Merrill <jason_merrill@redhat.com>
488
489 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
490 sharing a ctor vtable with. Merge code for cases 1 and 2.
491 (binfo_ctor_vtable): New fn.
492 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
493
494 2001-06-14 Jason Merrill <jason_merrill@redhat.com>
495
496 * class.c (dfs_find_final_overrider): Fix logic.
497
498 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
499 virtual thunk instead of non-virtual.
500 (get_matching_virtual): Uncomment.
501
502 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
503 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
504 PARM, not ARG.
505
506 2001-06-14 Nathan Sidwell <nathan@codesourcery.com>
507
508 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
509 we've not emerged from the hierarchy of RTTI_BINFO on reaching
510 a non-virtual base.
511
512 2001-06-13 Mark Mitchell <mark@codesourcery.com>
513
514 * NEWS: Update release number.
515
516 2001-06-12 Nathan Sidwell <nathan@codesourcery.com>
517
518 PR c++/3130, c++/3131, c++/3132
519 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
520 * class.c (force_canonical_binfo_r): Move
521 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
522 virtual bases unless they're primary and what they're primary
523 too has been moved.
524 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
525 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
526 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
527 derived binfo.
528 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
529 (layout_nonempty_base_or_field): Add most derived type
530 parameter. Adjust.
531 (layout_empty_base): Likewise.
532 (build_base_field): Likewise.
533 (build_base_fields): Likewise.
534 (propagate_binfo_offsets): Add most derived type
535 parameter. Skip non canonical virtual bases too.
536 (dfs_set_offset_for_unshared_vbases): Don't skip primary
537 bases. Do skip canonical bases.
538 (layout_virtual_bases): Adjust.
539 (layout_class_type): Adjust.
540 (dfs_get_primary_binfo): Build list of virtual primary base
541 candidates.
542 (get_primary_binfo): Check that the shared virtual primary
543 base candidate was found first.
544 (accumulate_vtbl_inits): Don't do anything for non-vptr
545 containing binfos. For case 1 primary virtual bases, keep
546 checking that we've not emerged from the hierarchy of RTTI_BINFO.
547
548 2001-06-12 Nathan Sidwell <nathan@codesourcery.com>
549
550 PR c++/3089
551 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
552 hierarchy looking for primary bases for a ctor
553 vtable. Recursively call oneself, if we meet our primary via
554 this route and haven't met it yet via inheritance graph order.
555
556 2001-06-11 Mark Mitchell <mark@codesourcery.com>
557
558 * lang-options.h: Emit documentation for -fno-honor-std, not
559 -fhonor-std.
560
561 2001-06-10 Alexandre Oliva <aoliva@redhat.com>
562
563 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
564 Don't clobber delta.
565 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
566
567 2001-06-10 Mark Mitchell <mark@codesourcery.com>
568 Gabriel Dos Reis <gdr@codesourcery.com>
569
570 * Make-lang.in (cp/call.o): Depend on diagnostic.h
571 (cp/typeck.o): Depend on diagnostic.h
572 (cp/typeck2.o): Depend on diagnostic.h
573 (cp/repo.o): Depend on dignostic.h
574 * typeck.c: #include diagnostic.h
575 (convert_for_initialization): Remove extern declaration for
576 warningcount and errorcount.
577
578 * call.c: #include diagnostic.h
579 (convert_like_real): Remove extern declaration for warnincount and
580 errorcount.
581
582 * repo.c: #include diagnostic.h
583 * typeck2.c: #include diagnostic.h
584
585 2001-06-08 Nathan Sidwell <nathan@codesourcery.com>
586
587 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
588 in previous change.
589
590 2001-06-08 Nathan Sidwell <nathan@codesourcery.com>
591
592 PR c++/2929
593 * friend.c (do_friend): Use push_decl_namespace for classes at
594 namespace scope.
595
596 2001-06-08 Nathan Sidwell <nathan@codesourcery.com>
597 Jason Merrill <jason_merrill@redhat.com>
598
599 PR c++/3061
600 * class.c (build_secondary_vtable): Use assert, rather than an error
601 message.
602 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
603 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
604 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
605 Don't set BINFO_VTABLE for a primary virtual base.
606
607 2001-06-07 Mark Mitchell <mark@codesourcery.com>
608
609 * decl.c (duplicate_decls): Update source position information
610 when a template function is defined.
611
612 2001-06-07 Phil Edwards <pme@sources.redhat.com>
613
614 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
615
616 2001-06-07 Nathan Sidwell <nathan@codesourcery.com>
617
618 PR c++/2914
619 * decl.c (pushtag): Don't push into a complete type's scope.
620
621 2001-06-06 Jason Merrill <jason_merrill@redhat.com>
622
623 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
624 (struct lang_decl_flags): Lose generate_with_vtable_p.
625 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
626 * class.c (copy_virtuals): Adjust.
627 * decl2.c (mark_vtable_entries): Adjust.
628 * method.c (make_thunk, build_vtable_entry): Adjust.
629 * class.c (update_vtable_entry_for_fn): Only look as far as the
630 first defining class.
631 (build_vtbl_initializer): Put nothing in the slot for a function only
632 defined in a lost primary virtual base.
633 (add_vcall_offset_vtbl_entries_1): Use the same code for
634 the lost primary case and the normal case.
635 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
636 (get_vfield_offset, get_derived_offset): Lose.
637 (dfs_find_final_overrider): Use look_for_overrides_here.
638 (get_matching_virtual): New fn.
639 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
640 not BV_VCALL_INDEX.
641 * search.c (look_for_overrides_here): Split out from...
642 (look_for_overrides_r): Here.
643
644 * class.c (find_final_overrider): Return error_mark_node on error.
645
646 * decl2.c (key_method): #if 0 accidental change.
647
648 2001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
649
650 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
651 (build_over_call): Likewise.
652 * decl.c (grokparms): Likewise.
653 * pt.c (tsubst_decl): Likewise.
654 * typeck.c (convert_arguments): Likewise.
655
656 2001-06-05 Mark Mitchell <mark@codesourcery.com>
657
658 * semantics.c (begin_class_definition): Robustify.
659
660 * pt.c (instantiate_decl): Tell the repository code about the
661 clones, not the cloned functions.
662 * repo.c (repo_template_used): Explicitly instantiate the cloned
663 function, not the clones.
664
665 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
666
667 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
668 ICS_BAD_FLAG on created conversion.
669 (compare_ics): Break out rank.
670
671 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
672
673 * decl.c (xref_tag): Remove extraneous %s on dependent name
674 lookup warning.
675
676 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
677
678 * class.c (layout_vtable_decl): Fix off by one error on
679 build_index_type.
680 (build_vtt): Likewise.
681 (build_ctor_vtbl_group): Likewise.
682
683 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
684
685 * class.c (maybe_indent_hierarchy): New function.
686 (dump_class_hierarchy_r): Add flags. Dump extra binfo
687 information, if enabled. Use maybe_indent_hierarchy. Adjust
688 output format.
689 (dump_class_hierarchy): Adjust prototype. Adjust output format.
690 (dump_array, dump_vtable, dump_vtt): New functions.
691 (finish_struct_1): Adjust hierarchy dumping.
692 (initialize_vtable): Call dump_vtable.
693 (build_vtt): Call dump_vtt.
694 (build_ctor_vtbl_group): Call dump_vtable.
695 * decl2.c (flag_dump_class_layout): Remove.
696 (cxx_decode_option): Remove dump translation unit
697 and dump class hierarchy check. Call dump_switch_p.
698 (finish_file): Adjust dumping.
699 (dump.c): Only dump base classes if not TDF_SLIM.
700 Only dump namespace members if not TDF_SLIM.
701 * optimize.c (dump_function): New function.
702 (optimize_function): Call dump_function.
703 * semantics.c (expand_body): Use dump_enabled_p.
704
705 2001-06-01 Nathan Sidwell <nathan@codesourcery.com>
706
707 PR g++/2936
708 Part missed from first commit
709 * decl2.c (finish_anon_union): Copy context.
710
711 2001-05-30 Nathan Sidwell <nathan@codesourcery.com>
712
713 PR g++/2936
714 * optimize.c (remap_decl): Remap anonymous aggregate members too.
715
716 2001-05-26 Nathan Sidwell <nathan@codesourcery.com>
717
718 PR g++/2823
719 * semantics.c (expand_body): Don't optimize thunks.
720
721 2001-05-25 Sam TH <sam@uchicago.edu>
722
723 * cp-tree.h lex.h: Fix header include guards.
724
725 2001-05-25 Mark Mitchell <mark@codesourcery.com>
726
727 * decl.c (init_decl_processing): Tweak.
728
729 2001-05-24 Mark Mitchell <mark@codesourcery.com>
730
731 * decl.c (duplicate_decls): Tidy.
732 (init_decl_processing): Always set flag_no_builtin.
733
734 2001-05-24 Nathan Sidwell <nathan@codesourcery.com>
735
736 PR c++/2184
737 * decl2.c (do_local_using_decl): Push the decls, even in a
738 template.
739
740 2001-05-22 Mark Mitchell <mark@codesourcery.com>
741
742 * optimize.c (initialize_inlined_parameters): Don't set
743 TREE_READONLY for a VAR_DECL taking the place of an inlined
744 PARM_DECL.
745
746 2001-05-22 Jason Merrill <jason_merrill@redhat.com>
747
748 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
749 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
750 attribute.
751
752 2001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
753
754 * parse.y: Refer to compound literals as such, not as
755 constructor-expressions.
756
757 2001-05-21 Mark Mitchell <mark@codesourcery.com>
758
759 * call.c (build_op_delete_call): Ignore exception-specifications
760 when looking for matching delete operators.
761 * init.c (build_new_1): Compute whether or not the allocation
762 function used is a placement allocation function or not, and
763 communicate this information to build_op_delete_call.
764
765 2001-05-21 Jason Merrill <jason_merrill@redhat.com>
766
767 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
768 (build_vtbl_ref): Adjust.
769 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
770 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
771 Re-add vtable-gc.
772 (unsupported_options): Correspondingly.
773
774 * decl2.c (maybe_make_one_only): Check flag_weak, not
775 supports_one_only().
776
777 * cp-tree.def (START_CATCH_STMT): Lose.
778 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
779 * tree.c (cp_statement_code_p): Don't case it.
780 * semantics.c (cp_expand_stmt): Likewise.
781 * cp-tree.h (START_CATCH_TYPE): Lose.
782 (HANDLER_TYPE): New.
783 * except.c (expand_start_catch_block): Don't start any blocks.
784 Return the type.
785 (expand_end_catch_block): Don't end any blocks.
786 * parse.y (handler): Don't pass anything from finish_handler_parms
787 to finish_handler.
788 * pt.c (tsubst_expr): Likewise.
789 * semantics.c (begin_handler): Call note_level_for_catch here.
790 (finish_handler_parms): Don't return anything.
791 (genrtl_catch_block, begin_catch_block): Lose.
792 (genrtl_handler): Call expand_start_catch here.
793
794 2001-05-18 Jason Merrill <jason_merrill@redhat.com>
795
796 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
797 (get_vtable_decl, build_vtt): Not here.
798
799 2001-05-20 Nathan Sidwell <nathan@codesourcery.com>
800
801 PR c++/2781
802 * optimize.c (update_cloned_parm): Copy addressability and other
803 flags.
804
805 2001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
806
807 * pt.c (determine_specialization): Ignore artificial functions.
808
809 2001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
810
811 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
812 (C_RID_CODE): Remove.
813 * lex.c (cxx_init_options): Call set_identifier_size. Update.
814 (init_parse): Don't do it here.
815
816 2001-05-18 Diego Novillo <dnovillo@redhat.com>
817
818 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
819 function declaration to avoid stripping the symbol's attributes.
820
821 2001-05-18 Nathan Sidwell <nathan@codesourcery.com>
822
823 * decl.c (pushdecl): Adjust error string.
824 (xref_tag): Adjust friend class injection warning. Remove the
825 inherited name from the class shadowed scope.
826
827 2001-05-17 Mark Mitchell <mark@codesourcery.com>
828
829 * except.c (cp_protect_cleanup_actions): New function.
830 (init_exception_processing): Don't set protect_cleanup_actions
831 here. Do set lang_protect_cleanup_actions.
832
833 2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
834
835 * spew.c (read_token): Call yyerror on all unexpected tokens.
836
837 2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
838
839 * init.c (member_init_ok_or_else): Take a tree rather than
840 string for name.
841 (expand_member_init): Adjust.
842
843 2001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
844
845 * decl.c (duplicate_decls): Suppress warning about duplicate
846 decls if the first decl is a friend.
847
848 2001-05-12 Zack Weinberg <zackw@stanford.edu>
849
850 * except.c (choose_personality_routine): Export. Add
851 explanatory comment. Take an enum languages, not a boolean.
852 (initialize_handler_parm): Adjust to match.
853 * cp-tree.h: Prototype choose_personality_routine.
854 * lex.c (handle_pragma_java_exceptions): New function.
855 (init_cp_pragma): Register #pragma GCC java_exceptions.
856
857 2001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
858
859 * method.c (build_mangled_C99_name): Remove unused prototype.
860
861 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
862
863 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
864 * typeck.c (get_member_function_from_ptrfunc,
865 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
866 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
867
868 Reverted Geoff Keating's 2001-05-03's patch.
869
870 2001-05-11 Ira Ruben <ira@apple.com>
871
872 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
873
874 2001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
875
876 * cp-tree.h (finish_label_expr, lookup_label): Delete.
877 * parse.y: Update for '&&'; don't issue warning here.
878 * semantics.c (finish_label_expr): Delete.
879
880 2001-05-07 Mark Mitchell <mark@codesourcery.com>
881
882 * splay-tree.h (splay_tree_max): New function.
883 (splay_tree_min): Likewise.
884
885 2001-05-03 Geoffrey Keating <geoffk@redhat.com>
886
887 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
888 (pfn_vflag_identifier): Define.
889 Update comment about layout of pointer functions.
890 (build_ptrmemfunc1): Update prototype.
891 (expand_ptrmemfunc_cst): Update prototype.
892 * decl.c (initialize_predefined_identifiers): Initialize
893 pfn_vflag_identifier.
894 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
895 an extra field to the type.
896 * expr.c (cplus_expand_constant): Pass 'flag' between
897 expand_ptrmemfunc_cst and build_ptrmemfunc1.
898 * typeck.c (get_member_function_from_ptrfunc): When
899 FUNCTION_BOUNDARY < 16, look at additional field to determine
900 if a pointer-to-member is a real pointer or a vtable offset.
901 (build_ptrmemfunc1): Add new parameter to contain extra field.
902 (build_ptrmemfunc): Pass the extra field around.
903 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
904 (pfn_from_ptrmemfunc): Ignore the extra field.
905
906 2001-05-03 Mark Mitchell <mark@codesourcery.com>
907
908 * cp-tree.h (flag_inline_trees): Update documentation.
909 * decl.c (init_decl_processing): Adjust handling of
910 flag_inline_functions and flag_inline_trees to support -O3.
911 (grokfndecl): Set DECL_INLINE on all functions if that's what
912 the user requested.
913 (save_function_data): Clear DECL_INLINE in
914 current_function_cannot_inline is non-NULL.
915 * decl2.c (flag_inline_trees): Update documentation.
916
917 2001-05-03 Nathan Sidwell <nathan@codesourcery.com>
918
919 * dump.c (cp_dump_tree, USING_STMT case): New case.
920 * tree.c (cp_statement_code_p): Add USING_STMT.
921 * decl2.c (do_using_directive): Add the using directive statement.
922
923 * tree.c (walk_tree): Reformat an if block.
924
925 2001-05-02 Mark Mitchell <mark@codesourcery.com>
926
927 * decl.c (compute_array_index_type): Don't try to do anything with
928 the indices when processing a template.
929
930 2001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
931
932 * call.c: NULL_PTR -> NULL.
933 * class.c: Likewise.
934 * cvt.c: Likewise.
935 * decl.c: Likewise.
936 * decl2.c: Likewise.
937 * except.c: Likewise.
938 * init.c: Likewise.
939 * rtti.c: Likewise.
940 * search.c: Likewise.
941 * tree.c: Likewise.
942 * typeck.c: Likewise.
943 * typeck2.c: Likewise.
944
945 2001-05-02 Mark Mitchell <mark@codesourcery.com>
946
947 * decl2.c (do_using_directive): Revert previous patch.
948
949 2001-05-01 Nathan Sidwell <nathan@codesourcery.com>
950
951 * cp-tree.def (USING_STMT): New statement node.
952 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
953 * decl2.c (do_using_directive): Add USING_STMT to statement
954 tree. Don't emit errors when processing template decl.
955 * pt.c (tsubst_expr, USING_STMT case): New case.
956 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
957
958 2001-05-01 Nathan Sidwell <nathan@codesourcery.com>
959
960 * call.c (build_new_op): Convert args from reference here.
961 (build_conditional_expr): Don't convert here.
962
963 2001-05-01 Nathan Sidwell <nathan@codesourcery.com>
964
965 * spew.c (last_token_id): New static variable.
966 (read_token): Set it here.
967 (yyerror): Use it here.
968
969 2001-04-30 Richard Henderson <rth@redhat.com>
970
971 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
972 * decl.c: Likewise.
973
974 2001-04-30 Mark Mitchell <mark@codesourcery.com>
975
976 * gxxint.texi: Remove.
977 * Make-lang.in: Remove all traces of gxxint.texi.
978
979 Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
980
981 * decl2.c (start_static_initialization_or_destruction): Correct
982 logic to handle the -fno-use-cxa-atexit case.
983
984 2001-04-30 Mark Mitchell <mark@codesourcery.com>
985
986 * optimize.c (update_cloned_parm): New function.
987 (maybe_clone_body): Use it. Update the `this' parameter too.
988
989 2001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
990
991 * decl2.c (unsupported_options): Add new-abi.
992 * lang-options.h: Remove no longer supported options.
993
994 2001-04-27 Nathan Sidwell <nathan@codesourcery.com>
995
996 * except.c (can_convert_eh): Don't check template parms,
997 typename types etc.
998
999 2001-04-27 Nathan Sidwell <nathan@codesourcery.com>
1000
1001 * optimize.c (maybe_clone_body): Copy parameter names and locations.
1002
1003 2001-04-27 Nathan Sidwell <nathan@codesourcery.com>
1004
1005 * cp-tree.h (adjust_clone_args): Prototype new function.
1006 * class.c (adjust_clone_args): New function.
1007 * decl.c (start_function): Call it for in charge ctors.
1008
1009 2001-04-26 Mark Mitchell <mark@codesourcery.com>
1010
1011 * method.c (use_thunk): Make sure that thunks really are emitted
1012 when requested.
1013
1014 2001-04-26 Nathan Sidwell <nathan@codesourcery.com>
1015
1016 * mangle.c (write_chars): New macro.
1017 (hwint_to_ascii): New function
1018 (write_number): Use it.
1019 (write_integer_cst): Deal with really big numbers.
1020
1021 2001-04-25 Mark Mitchell <mark@codesourcery.com>
1022
1023 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
1024 the clone.
1025
1026 2001-04-25 Nathan Sidwell <nathan@codesourcery.com>
1027
1028 * decl.c (grokdeclarator): Set context of namespace scope
1029 TYPE_DECLS.
1030
1031 2001-04-24 Zack Weinberg <zackw@stanford.edu>
1032
1033 * cp/optimize.c: Include hashtab.h.
1034 (struct inline_data): Add tree_pruner.
1035 (expand_call_inline, expand_calls_inline): Use it when calling
1036 walk_tree.
1037 (optimize_function): Initialize and free tree_pruner.
1038
1039 2001-04-24 Nathan Sidwell <nathan@codesourcery.com>
1040
1041 Lazy __FUNCTION__ generation.
1042 * cp-tree.def (FUNCTION_NAME): Remove.
1043 * cp-tree.h (function_name_declared_p): Remove.
1044 (cp_fname_init): Prototype.
1045 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
1046 don't call declare_function_name. Call start_fname_decls.
1047 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
1048 clobber the line number.
1049 (cp_fname_init): New function.
1050 (start_function): Call start_fname_decls.
1051 (finish_function): Call finish_fname_decls.
1052 * lex.c (reswords): Add slots for __FUNCTION__ et al.
1053 (rid_to_yy): Add mappings for __FUNCTION__ et al.
1054 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
1055 * parse.y (VAR_FUNC_NAME): New token.
1056 (primary): Add VAR_FUNC_NAME.
1057 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
1058 generation.
1059 (tsubst, FUNCTION_NAME case): Remove.
1060 (tsubst_copy, FUNCTION_NAME case): Remove.
1061 (tsubst_expr, DECL_STMT case): Be careful with a
1062 DECL_PRETTY_FUNCTION_P.
1063 (instantiate_decl): Remove function_name_declared_p.
1064 * semantics.c (begin_compound_statement): Don't call
1065 declare_function_name here.
1066 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
1067 (finish_translation_unit): Call finish_fname_decls.
1068 (expand_body): Remove function_name_declared_p.
1069 * typeck2.c (digest_init): Allow any ERROR_MARK.
1070
1071 2001-04-24 Nathan Sidwell <nathan@codesourcery.com>
1072
1073 * pt.c (tsubst_decl): Use VOID_TYPE_P.
1074 * semantics.c: Fix some typos.
1075
1076 2001-04-23 Phil Edwards <pme@sources.redhat.com>
1077
1078 * cp/decl2.c (flag_honor_std): Always initialize to 1.
1079
1080 2001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1081
1082 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
1083
1084 2001-04-23 Jason Merrill <jason_merrill@redhat.com>
1085
1086 * except.c (build_throw): Wrap the initialization of the exception
1087 object in a MUST_NOT_THROW_EXPR.
1088 (do_free_exception): #if 0.
1089
1090 2001-04-20 Mark Mitchell <mark@codesourcery.com>
1091
1092 * cp-tree.h (finish_enum): Change prototype.
1093 * decl.c (finish_enum): Reorganize.
1094 * parse.y (structsp): Adjust calls to finish_enum.
1095
1096 2001-04-20 Nathan Sidwell <nathan@codesourcery.com>
1097
1098 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
1099 't' case.
1100
1101 2001-04-20 Nathan Sidwell <nathan@codesourcery.com>
1102
1103 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
1104 (layout_empty_base): Return at end flag.
1105 (build_base_field): Likewise.
1106 (build_base_fields): Likewise.
1107 (layout_virtual_bases): Don't add 1 to eoc value.
1108 (end_of_class): Use full size for empty bases.
1109 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
1110 empty bases. Don't add 1 to eoc value. Only add trailing padding
1111 if we're an empty class with no empty bases.
1112 (dump_class_hierarchy): Dump size and alignment.
1113
1114 2001-04-20 Jakub Jelinek <jakub@redhat.com>
1115
1116 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
1117 ICS_BAD_FLAG.
1118
1119 2001-04-20 Jakub Jelinek <jakub@redhat.com>
1120
1121 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
1122 is found, look first if name does not match the structure name.
1123
1124 2001-04-19 Mark Mitchell <mark@codesourcery.com>
1125
1126 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
1127 set.
1128 (SET_DECL_LANGUAGE): New macro.
1129 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
1130 (pushdecl): Likewise.
1131 (build_library_fn_1): Likewise.
1132 (build_cp_library_fn): Likewise.
1133 (grokfndecl): Likewise.
1134 (grokvardecl): Mark `extern "C"' variables as having C linkage.
1135 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
1136 * lex.c (retrofit_lang_decl): Likewise.
1137 * mangle.c (mangle_decl_string): Don't mangle the names of
1138 variables declared with C language linkage.
1139 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
1140
1141 2001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1142
1143 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
1144 flag_access_control from uninitialized storage.
1145
1146 2001-04-15 Mark Mitchell <mark@codesourcery.com>
1147
1148 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
1149 * mangle.c (write_pointer_to_member_type): Fix mangling of
1150 pointers to cv-qualified member function types.
1151
1152 * init.c (build_delete): Create a SAVE_EXPR for the address if
1153 we're going to use it more than once.
1154
1155 2001-04-13 Mark Mitchell <mark@codesourcery.com>
1156
1157 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
1158 (expand_ptremfunc_cst): Change prototype.
1159 (delta2_from_ptrmemfunc): Remove.
1160 * expr.c (cplus_expand_constant): Adjust call to
1161 expand_ptrmemfunc_cst.
1162 * typeck.c (build_ptrmemfunc1): Simplify.
1163 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
1164 results in a constant.
1165 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
1166 (delta2_from_ptrmemfunc): Remove.
1167 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
1168
1169 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
1170
1171 * cp-tree.h (decl_namespace_list): New macro.
1172 (struct saved_scope): Add decl_ns_list.
1173 * decl.c (mark_saved_scope): Mark it.
1174 * decl2.c: Lose static decl_namespace_list.
1175 (init_decl2): Don't save it.
1176
1177 2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1178
1179 * cp-tree.h (warn_return_type, yylex): Delete redundant
1180 declarations.
1181
1182 * decl.c (current_class_depth, global_namespace): Likewise.
1183
1184 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
1185
1186 * repo.c (flag_use_repository): Likewise.
1187
1188 2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1189
1190 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
1191 set_block, pushdecl, getdecls, gettags, init_decl_processing,
1192 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
1193 lvalue_or_else, print_lang_statistics, comp_target_types,
1194 unsigned_type, signed_type, signed_or_unsigned_type,
1195 build_function_call, mark_addressable, incomplete_type_error):
1196 Delete redundant declarations.
1197
1198 2001-04-11 Jason Merrill <jason_merrill@redhat.com>
1199
1200 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
1201 (TYPE_ANONYMOUS_P): New macro.
1202 (TAGGED_TYPE_P): New macro.
1203 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
1204 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
1205 * tree.c (no_linkage_helper): Likewise.
1206 * semantics.c (begin_class_definition): Likewise.
1207 * pt.c (convert_template_argument): Likewise.
1208 * lex.c (check_for_missing_semicolon): Likewise.
1209
1210 2001-04-12 Nathan Sidwell <nathan@codesourcery.com>
1211
1212 * class.c (dfs_unshared_virtual_bases): New function.
1213 (mark_primary_bases): Call it.
1214 (check_bases): Ignore virtual bases when determining
1215 nearly-emptiness.
1216
1217 2001-04-12 Nathan Sidwell <nathan@codesourcery.com>
1218
1219 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
1220
1221 2001-04-11 Mark Mitchell <mark@codesourcery.com>
1222
1223 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
1224 cloned function to the clone.
1225
1226 2001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1227
1228 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
1229
1230 * semantics.c: Include expr.h.
1231
1232 2001-04-11 Nathan Sidwell <nathan@codesourcery.com>
1233
1234 * method.c (implicitly_declare_fn): Commonize code for copy ctor
1235 and assignment op. Set TREE_USED for parameter.
1236
1237 2001-04-10 Mark Mitchell <mark@codesourcery.com>
1238
1239 * class.c (find_final_overrider_data): Add `candidates'.
1240 (dfs_find_final_overrider): Don't issue error messages
1241 prematurely.
1242 (find_final_overrider): Issue error messages here.
1243 (build_base_field): Don't warn about amgibuous direct bases here.
1244 (warn_about_ambiguous_direct_bases): New function.
1245 (layout_class_type): Use it.
1246
1247 2001-04-10 Richard Henderson <rth@redhat.com>
1248
1249 * typeck.c (build_array_ref): Push the array reference inside
1250 COMPOUND_EXPR and COND_EXPR.
1251
1252 2001-04-05 Mark Mitchell <mark@codesourcery.com>
1253
1254 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
1255 * decl.c (duplicate_decls): Adjust accordingly.
1256 (maybe_commonize_var): Likewise.
1257 (grokfndecl): Likewise.
1258 (start_function): Likewise.
1259 (start_method): Likewise.
1260 * decl2.c (key_method): Likewise.
1261 (import_export_decl): Likewise.
1262 * method.c (implicitly_declare_fn): Likewise.
1263 * optimize.c (maybe_clone_body): Likewise.
1264
1265 2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
1266
1267 * lang-specs.h: Add __DEPRECATED.
1268
1269 Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
1270
1271 * search.c (get_dynamic_cast_base_type): When building a new
1272 constant, set its type to ssizetype.
1273
1274 2001-04-04 Jakub Jelinek <jakub@redhat.com>
1275
1276 * optimize.c (expand_call_inline): Only add newly inlined statements
1277 into inlined_stmts.
1278
1279 2001-04-03 Mark Mitchell <mark@codesourcery.com>
1280
1281 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
1282 (OPERATOR_FORMAT): Likewise.
1283 (OPERATOR_TYPENAME_FORMAT): Likewise.
1284 * operators.def: Remove old name-mangling information.
1285 * decl.c (grok_op_properties): Adjust accordingly.
1286 * lex.c (init_operators): Likewise.
1287 * rtti.c (get_tinfo_decl): Issue error messages about types that
1288 have variable size.
1289
1290 2001-04-03 Mark Mitchell <mark@codesourcery.com>
1291
1292 * decl2.c (import_export_decl): Don't call import_export_class
1293 when processing an inline member function.
1294 * semantics.c (expand_body): Call import_export_decl before
1295 emitting inline functions.
1296
1297 2001-03-28 Richard Henderson <rth@redhat.com>
1298
1299 IA-64 ABI Exception Handling:
1300 * cp-tree.def (EH_SPEC_BLOCK): New.
1301 (MUST_NOT_THROW_EXPR): New.
1302 * cp-tree.h: Update changed function declarations.
1303 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
1304 (CPTI_CALL_UNEXPECTED): New.
1305 (struct cp_language_function): Rename x_eh_spec_try_block
1306 to x_eh_spec_block.
1307 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
1308 * decl.c (current_binding_level): If no current function
1309 bindings, revert to scope_chain.
1310 (initialize_predefined_identifiers): Remove __cp_push_exception.
1311 (store_parm_decls): Use begin_eh_spec_block.
1312 (finish_function): Use finish_eh_spec_block.
1313 (mark_lang_function): Update for name changes.
1314 * decl2.c (finish_file): No mark_all_runtime_matches.
1315 * dump.c (cp_dump_tree): Handle new tree codes.
1316 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
1317 * except.c (catch_language_init, catch_language): Remove.
1318 (init_exception_processing): Don't set language code.
1319 Initialize call_unexpected_node, protect_cleanup_actions,
1320 eh_personality_libfunc, lang_eh_runtime_type.
1321 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
1322 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
1323 (prepare_eh_type): Split out type canonicalizations ...
1324 (build_eh_type_type): ... from here.
1325 (build_eh_type_type_ref): Remove.
1326 (mark_all_runtime_matches): Remove.
1327 (build_exc_ptr): New.
1328 (do_begin_catch, do_end_catch): New.
1329 (do_pop_exception): Remove.
1330 (build_terminate_handler): Remove.
1331 (choose_personality_routine): Split out language choice from ...
1332 (initialize_handler_parm): ... here.
1333 Use MUST_NOT_THROW_EXPR.
1334 (expand_start_catch_block): Use do_begin_catch. Simplify Java
1335 exception object handling.
1336 (expand_start_eh_spec, expand_end_eh_spec): Remove.
1337 (expand_exception_blocks, alloc_eh_object): Remove.
1338 (begin_eh_spec_block, finish_eh_spec_block): New.
1339 (do_allocate_exception, do_free_exception): New.
1340 (expand_throw): Merge into ...
1341 (build_throw): ... here. Update for abi.
1342 * expr.c (cplus_expand_expr): No expand_internal_throw.
1343 Handle MUST_NOT_THROW_EXPR.
1344 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
1345 * semantics.c (*) Update for except.h name changes.
1346 (genrtl_try_block): No protect_with_terminate.
1347 (genrtl_eh_spec_block): New.
1348 (genrtl_handler): Don't emit the goto here.
1349 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
1350 (genrtl_finish_function): Don't expand_exception_blocks.
1351 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
1352
1353 2001-03-28 Richard Henderson <rth@redhat.com>
1354
1355 * decl.c (struct named_label_list): Rename eh_region to
1356 in_try_scope, add in_catch_scope.
1357 (struct binding_level): Rename eh_region to is_try_scope,
1358 add is_catch_scope.
1359 (note_level_for_try): Rename from note_level_for_eh.
1360 (note_level_for_catch): New.
1361 (poplevel): Copy both is_try_scope and is_catch_scope to
1362 the named_label_list struct.
1363 (check_previous_goto_1): Don't check for catch block via
1364 DECL_ARTIFICIAL; use in_try_scope instead.
1365 (check_goto): Likewise.
1366 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
1367 * except.c (expand_start_catch_block): Call note_level_for_catch.
1368 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
1369
1370 2001-03-27 Richard Henderson <rth@redhat.com>
1371
1372 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
1373 exceptions_via_longjmp.
1374
1375 2001-03-27 Phil Edwards <pme@sources.redhat.com>
1376
1377 * pt.c (check_default_tmpl_args): Make error messages clearer.
1378
1379 2001-03-26 Phil Edwards <pme@sources.redhat.com>
1380
1381 * error.c: Also undefine 'A' macro used for cp_printers definition.
1382
1383 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1384
1385 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
1386
1387 2001-03-26 Mike Yang <yang@research.att.com>
1388 Mark Mitchell <mark@codesourcery.com>
1389
1390 * dump.c (dump_access): New function.
1391 (cp_dump_tree): Use it. Dump basetype information for class
1392 types.
1393
1394 2001-03-26 Mark Mitchell <mark@codesourcery.com>
1395
1396 * Makefile.in (optimize.o): Depend on params.h.
1397 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
1398 (init_decl_processing): Set flag_no_inline when doing
1399 inlining-on-trees.
1400 * optimize.c: Include params.h.
1401 (struct inline_data): Improve documentation of FNS. Add
1402 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
1403 (INSNS_PER_STMT): New macro.
1404 (remap_block): Use CLONING_P.
1405 (inlinable_function_p): Don't inline big functions.
1406 (expand_call_inline): Keep track of how much inlining we've done.
1407 (optimize_function): Set FIRST_INLINED_FN.
1408 (maybe_clone_body): Set CLONING_P.
1409 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
1410 tree nodes.
1411 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
1412 rest_of_compilation. Clear DECL_RTL for local variables
1413 afterwards.
1414 (clear_decl_rtl): New function.
1415
1416 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
1417
1418 Implement DR 209
1419 * cp-tree.h (skip_type_access_control,
1420 reset_type_access_control): Prototype.
1421 * decl.c (grokdeclarator): Access of friends is not checked.
1422 * parse.y (component_decl_list): Reset type access control.
1423 * semantics.c (decl_type_access_control): Clear
1424 current_type_lookups.
1425 (save_type_access_control): Don't save if not deferring.
1426 (skip_type_access_control, reset_type_access_control): New
1427 functions.
1428 (begin_class_definition): Do type access control for basetypes.
1429 Start deferred access control.
1430 (finish_class_definition): Resume immediate access control if
1431 this is a local class.
1432
1433 2001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1434
1435 * class.c (add_method): Use memcpy/memmove, not bcopy.
1436
1437 * decl.c (duplicate_decls): Likewise.
1438
1439 2001-03-23 Jakub Jelinek <jakub@redhat.com>
1440
1441 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
1442 not `_'.
1443
1444 2001-03-23 Jakub Jelinek <jakub@redhat.com>
1445
1446 * decl.c (local_names): Define.
1447 (push_local_name): New.
1448 (grok_reference_init): Return init if initializing static reference
1449 variable with non-constant instead of emitting it.
1450 Move expand_static_init call to cp_finish_decl.
1451 (layout_var_decl): Call push_local_name.
1452 (maybe_commonize_var): Allow inlining functions even if they have
1453 static local variables, use comdat_linkage for them if flag_weak.
1454 (check_initializer): Call obscure_complex_init if
1455 grok_reference_init returned non-zero.
1456 (save_function_data): Clear x_local_names.
1457 (pop_cp_function_context): Free x_local_names.
1458 (mark_inlined_fns): Remove.
1459 (mark_lang_function): Mark x_local_names.
1460 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
1461 Mark inlined_fns as tree, remove call to mark_inlined_fns.
1462 * class.c (alter_access): Ensure DECL_ACCESS is never set if
1463 DECL_DISCRIMINATOR_P.
1464 * cp-tree.h (cp_language_function): Add x_local_names.
1465 (lang_decl_flags): Add discriminator into u2.
1466 (lang_decl_inlined_fns): Remove.
1467 (lang_decl): inlined_fns is now a TREE_VEC.
1468 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
1469 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
1470 TREE_VEC, not a custom structure.
1471 (optimize_function): Likewise.
1472 * mangle.c (discriminator_for_local_entity): Discriminate among
1473 VAR_DECL local entities.
1474 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
1475 is not valid.
1476
1477 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
1478
1479 Add support for Java interface method calls.
1480 * cp-tree.h (struct lang_type): Add java_interface flag.
1481 (TYPE_JAVA_INTERFACE): New macro.
1482 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
1483 by setting TYPE_JAVA_INTERFACE.
1484 * call.c (java_iface_lookup_fn): New static.
1485 (build_over_call): If calling a method declared in a
1486 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
1487 expression which resolves the function address.
1488 (build_java_interface_fn_ref): New function.
1489
1490 2001-03-22 Richard Henderson <rth@redhat.com>
1491
1492 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
1493 * except.c: Don't include it.
1494
1495 2001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1496 based on an idea from Joe Buck <jbuck@synopsys.com>
1497
1498 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
1499 New nonterminals.
1500 (data_def, component_decl): Add reductions to bad_decl.
1501
1502 2001-03-22 Jakub Jelinek <jakub@redhat.com>
1503
1504 * method.c (do_build_assign_ref): Don't use build_modify_expr for
1505 anonymous aggregates, since they don't have assignment operator
1506 method.
1507 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
1508 assignment operators for anonymous structure fields.
1509
1510 2001-03-21 Jason Merrill <jason@redhat.com>
1511
1512 * pt.c (instantiate_decl): Abort if we see a member constant
1513 instantiation that doesn't already have its initializer.
1514 Downgrade explicit instantiation without definition to pedwarn.
1515
1516 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
1517 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
1518 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
1519
1520 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
1521 (pending_vtables): Remove.
1522 * decl2.c (pending_vtables): Remove.
1523 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
1524 CLASSTYPE_VTABLE_NEEDS_WRITING.
1525 (import_export_class): Likewise.
1526 (init_decl2): Don't mark pending_vtables.
1527 * lex.c (handle_pragma_vtable): Just sorry.
1528 * pt.c (instantiate_class_template): Don't mess with
1529 CLASSTYPE_VTABLE_NEEDS_WRITING.
1530 (mark_class_instantiated): Likewise.
1531 * ptree.c (print_lang_type): Don't print it.
1532 * semantics.c (begin_class_definition): Don't set it.
1533
1534 * pt.c (template_tail): Replace with last_pending_template.
1535 (maybe_templates, maybe_template_tail): Remove.
1536 (add_pending_template): Adjust.
1537 (instantiate_pending_templates): Adjust.
1538
1539 * cp-tree.h (struct saved_scope): Remove lang_stack field.
1540 (current_lang_stack): Remove.
1541 * decl.c (maybe_push_to_top_level): Don't initialize it.
1542 (duplicate_decls): Use current_lang_depth.
1543 (xref_basetypes): Likewise.
1544 * class.c (current_lang_depth): New fn.
1545 (push_lang_context): Use more varray functionality.
1546 (pop_lang_context): Likewise.
1547
1548 * error.c (GLOBAL_THING): Always use '__'.
1549
1550 2001-03-21 Mark Mitchell <mark@codesourcery.com>
1551
1552 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
1553
1554 * mangle.c (mangle_decl_string): Mangle the names of overloaded
1555 operators, even when they have `extern "C"' linkage.
1556
1557 2001-03-19 Mark Mitchell <mark@codesourcery.com>
1558
1559 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
1560 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
1561 where it's not necessary.
1562 (add_method): Remove optimization involving comparison of
1563 DECL_ASSEMBLER_NAME.
1564 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
1565 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
1566 where it's not necessary.
1567 (check_methods): Likewise.
1568 (build_clone): Likewise.
1569 (built_vtt): Likewise.
1570 * cp-tree.h (DECL_NEEDED_P): Likewise.
1571 * decl.c (pushtag): Likewise.
1572 (duplicate_decls): Likewise.
1573 (pushdecl): Likewise.
1574 (builtin_function): Likewise.
1575 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
1576 (build_cp_library_fn): Likewise.
1577 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
1578 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
1579 where it's not necessary.
1580 (make_rtl_for_nonlocal_decl): Likewise.
1581 (cp_finish_decl): Likewise.
1582 (grokfndecl): Likewise.
1583 (grokvardecl): Likewise.
1584 (grokdeclarator): Likewise.
1585 (start_function): Likewise.
1586 (cp_missing_return_ok_p): Likewise.
1587 * decl2.c (grokclassfn): Likewise.
1588 (check_classfn): Likewise.
1589 (finish_static_data_member_decl): Likewise.
1590 (grokfield): Likewise.
1591 * error.c (GLOBAL_IORD_P): Remove.
1592 (dump_global_iord): Improve output.
1593 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
1594 * except.c (nothrow_libfn_p): Summarily reject any function not in
1595 namespace-scope.
1596 * init.c (build_java_class_ref): Don't explicitly set
1597 DECL_ASSEMBLER_NAME after calling mangle_decl.
1598 * mangle.c (mangle_decl_string): Handle extern "C" functions.
1599 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
1600 * method.c (set_mangled_name_for_decl): Don't explicitly set
1601 DECL_ASSEMBLER_NAME after calling mangle_decl.
1602 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
1603 IDENTIFIER_GLOBAL_VALUE for the thunk.
1604 * pt.c (set_mangled_name_for_template_decl): Remove.
1605 (check_explicit_specialization): Don't use it.
1606 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
1607 (tsubst_friend_function): Likewise.
1608 (tsubst_decl): Likewise.
1609 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
1610 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
1611 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
1612 where it's not necessary.
1613 (tinfo_base_init): Likewise.
1614 (create_real_tinfo_var): Likewise.
1615 * search.c (looup_field_1): Likewise.
1616 * semantics.c (finish_named_return_value): Likewise.
1617 * tree.c (init_tree): Set lang_set_decl_assembler_name.
1618
1619 2001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
1620
1621 Correct semantics restrictions checking in throw-expression.
1622 * except.c (is_admissible_throw_operand): New function.
1623 (build_throw): Use it.
1624
1625 2001-03-14 Mark Mitchell <mark@codesourcery.com>
1626
1627 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
1628 and its ilk.
1629
1630 2001-03-14 Mark Mitchell <mark@codesourcery.com>
1631
1632 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
1633 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
1634 * decl.c (duplicate_decls): Likewise.
1635 (builtin_function): Likewise.
1636 (build_library_fn): Likewise.
1637 (build_cp_library_fn): Likewise.
1638 (check_initializer): Likewise.
1639 (cp_finish_decl): Likewise.
1640 * decl2.c (grokfield): Likewise.
1641 (grok_function_init): Remove #if 0'd code.
1642 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
1643 * friend.c (do_friend): Likewise.
1644 * init.c (get_temp_regvar): Likewise.
1645 * method.c (make_thunk): Likewise.
1646 * pt.c (tsubst_friend_function): Likewise.
1647 (tsubst_decl): Likewise.
1648 (regenerate_decl_from_template): Likewise.
1649 * semantics.c (genrtl_named_return_value): Likewise.
1650 (expand_body): Likewise.
1651 (genrtl_finish_function): Likewise.
1652 * tree.c (cp_tree_equal): Likewise.
1653
1654 2001-03-12 Nathan Sidwell <nathan@codesourcery.com>
1655
1656 * call.c (convert_like_real): Add extra semantics to INNER
1657 parameter. Don't convert to temporary if a user conversion
1658 gives us an lvalue that we're about to bind to a reference.
1659 Set INNER to indicate pending reference binding on recursive
1660 calls.
1661
1662 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1663
1664 * cp/lex.c: Delete duplicate pending_lang_change.
1665
1666 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1667
1668 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
1669 Similarly.
1670 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
1671 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
1672
1673 2001-03-09 Zack Weinberg <zackw@stanford.edu>
1674
1675 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
1676
1677 2001-03-08 Stan Shebs <shebs@apple.com>
1678
1679 * cp-tree.h (set_identifier_local_value): Remove unused decl.
1680
1681 2001-03-06 Zack Weinberg <zackw@stanford.edu>
1682
1683 * spew.c: Remove references to CPP_OSTRING.
1684
1685 2001-03-06 Andrew Haley <aph@redhat.com>
1686
1687 * typeck.c (convert_arguments): Check that we have an fndecl.
1688
1689 2001-03-05 Andrew Haley <aph@redhat.com>
1690
1691 * typeck.c (convert_arguments): Don't do ellipsis conversion for
1692 __built_in_constant_p.
1693
1694 2001-03-02 Nathan Sidwell <nathan@codesourcery.com>
1695
1696 * typeck.c (build_static_cast): Allow enum to enum conversions
1697 as per DR 128.
1698
1699 2001-03-02 Nathan Sidwell <nathan@codesourcery.com>
1700
1701 * class.c (check_field_decls): Pointers to member do not a
1702 non-pod struct make, as per DR 148.
1703
1704 2001-03-02 Nathan Sidwell <nathan@codesourcery.com>
1705
1706 * call.c (joust): cp_pedwarn when using gnu extension concerning
1707 worst conversion sequences.
1708
1709 2001-03-01 Zack Weinberg <zackw@stanford.edu>
1710
1711 * decl.c: Replace all uses of 'boolean' with 'bool'.
1712
1713 2001-03-01 Zack Weinberg <zackw@stanford.edu>
1714
1715 * lang-specs.h: Add zero initializer for cpp_spec field to
1716 all array elements that need one. Don't put an #ifdef inside
1717 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
1718 use it.
1719
1720 2001-03-01 Nathan Sidwell <nathan@codesourcery.com>
1721
1722 Implement using decls inside template functions.
1723 * decl2.c (validate_nonmember_using_decl): Don't special case
1724 fake_std_node in the global namespace. Don't reject early when
1725 processing a template.
1726 (do_local_using_decl): Add to statement tree. Don't do further
1727 processing when building a template.
1728 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
1729
1730 2001-03-01 Nathan Sidwell <nathan@codesourcery.com>
1731
1732 * decl2.c (do_nonmember_using_decl): Don't complain if we find
1733 same function. Do complain about ambiguating extern "C"
1734 declarations.
1735
1736 2001-02-28 Nathan Sidwell <nathan@codesourcery.com>
1737
1738 Remove floating point and complex type template constant parms.
1739 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
1740 COMPLEX_TYPE extensions.
1741 (invalid_nontype_parm_type_p): Likewise.
1742
1743 2001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
1744
1745 * except.c (call_eh_info): Revert "match_function"'s type.
1746
1747 2001-02-27 Nathan Sidwell <nathan@codesourcery.com>
1748
1749 Fix ctor vtable vcall offsets.
1750 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
1751 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
1752 (get_matching_base): Remove.
1753 (get_original_base): New function.
1754 (build_vtbl_initializer): Initialize vid.rtti_binfo.
1755 Use a virtual thunk for a ctor vtable with an index
1756 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
1757 primary base within a constructor vtable. Only set
1758 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
1759 when primary base has been lost.
1760 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
1761
1762 2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
1763
1764 * call.c (joust): Ensure more_specialized()'s argument length
1765 parameter has correct value for constructors.
1766
1767 2001-02-26 Nathan Sidwell <nathan@codesourcery.com>
1768
1769 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
1770
1771 * decl.c (mark_inlined_fns): Prototype.
1772
1773 2001-02-22 Mark Mitchell <mark@codesourcery.com>
1774
1775 * spew.c (yylex): Correct handling of friends.
1776
1777 2001-02-22 Mark Mitchell <mark@codesourcery.com>
1778
1779 * mangle.c (write_encoding): Pass write_function_type the
1780 FUNCTION_DECL for the function being encoded.
1781 (write_function_type): Pass it along to write_bare_function_type.
1782 (write_bare_function_type): Pass it along to write_method_parms.
1783 (write_method_parms): Don't mangle the compiler-generated
1784 parameters to a constructor or destructor.
1785
1786 2001-02-22 Andreas Jaeger <aj@suse.de>
1787
1788 * optimize.c: Include toplev.h for
1789 note_deferral_of_defined_inline_function prototype.
1790
1791 2001-02-22 Jakub Jelinek <jakub@redhat.com>
1792
1793 * cp-tree.h (struct lang_decl_inlined_fns): New.
1794 (struct lang_decls): Add inlined_fns.
1795 (DECL_INLINED_FNS): New macro.
1796 * optimize.c (struct inline_data): Add inlined_fns.
1797 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
1798 (inlinable_function_p): Likewise, fix typo in comment,
1799 function is not inlinable if it already inlined function currently
1800 being optimized.
1801 (expand_call_inline): Add fn to inlined_fns if neccessary.
1802 (optimize_function): Initialize inlined_fns.
1803 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
1804 * decl.c (mark_inlined_fns): New function.
1805 (lang_mark_tree): Call it.
1806
1807 2001-02-21 Jason Merrill <jason@redhat.com>
1808
1809 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
1810 (DECL_UNINLINABLE): Move to middle-end.
1811
1812 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
1813 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
1814 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
1815 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
1816 parms and outer BLOCK. note_deferral_of_defined_inline_function.
1817
1818 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
1819 second parm of op=.
1820
1821 2001-02-19 Mark Mitchell <mark@codesourcery.com>
1822
1823 * decl2.c (set_decl_namespace): Allow explicit instantiations in
1824 any namespace.
1825
1826 2001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1827
1828 * optimize.c (expand_call_inline): Don't walk subtrees of type
1829 nodes.
1830
1831 2001-02-18 Mark Mitchell <mark@codesourcery.com>
1832
1833 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
1834 for a destructor.
1835
1836 2001-02-18 Jason Merrill <jason@redhat.com>
1837
1838 Do put the VTT parameter in DECL_ARGUMENTS.
1839 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
1840 (current_vtt_parm): New macro.
1841 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
1842 (DECL_HAS_VTT_PARM_P): New macro.
1843 (DECL_VTT_PARM): Remove.
1844 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
1845 * decl.c (duplicate_decls): Only copy the operator code if
1846 appropriate.
1847 (start_function): Set current_vtt_parm.
1848 (lang_mark_tree): Don't mark vtt_parm.
1849 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
1850 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
1851 * class.c (build_clone): Maybe remove the VTT parm.
1852 * optimize.c (maybe_clone_body): Set up the VTT parm.
1853 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
1854 * call.c (build_over_call): Just allow the VTT arg.
1855 * method.c (make_thunk): Don't set DECL_VTT_PARM.
1856 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
1857 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
1858 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
1859 * error.c (dump_function_decl): Likewise.
1860 * call.c (build_user_type_conversion_1, convert_like_real): Abort
1861 if we try to call a constructor with in-charge or VTT parms.
1862 * method.c (skip_artificial_parms_for): New fn.
1863 * call.c (add_function_candidate, build_over_call): Call it.
1864 * call.c (build_new_method_call): Use current_vtt_parm.
1865 * init.c (expand_virtual_init): Likewise.
1866 * class.c (same_signature_p): No longer static.
1867 * cp-tree.h: Declare it.
1868 * search.c (look_for_overrides_r): Use it.
1869
1870 2001-02-17 Mark Mitchell <mark@codesourcery.com>
1871
1872 * cp-tree.h (new_abi_rtti_p): Remove.
1873 (name_mangling_version): Likewise.
1874 (flag_do_squangling): Likewise.
1875 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
1876 * decl.c (grokfndecl): Likewise.
1877 * decl2.c (name_mangling_version): Remove.
1878 (flag_do_squangling): Likewise.
1879 (lang_f_options): Remove `squangle'.
1880 (unsupported_options): Add `squangle'.
1881 (cxx_decode_option): Issue a warning about uses of
1882 -fname-mangling-version.
1883 (finish_file): Remove old ABI support.
1884 * pt.c (check_explicit_specialization): Likewise.
1885 (tsubst_decl): Likewise.
1886 * rtti.c (init_rtti_processing): Likewise.
1887 (build_headof): Likewise.
1888 (get_tinfo_decl_dynamic): Likewise.
1889 (tinfo_from_decl): Likewise.
1890 (build_dynamic_cast_1): Likewise.
1891 (synthesize_tinfo_var): Likewise.
1892 * init.c (build_new): Allow enumeration types for the array-bounds
1893 in a direct-new-declarator.
1894
1895 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
1896
1897 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
1898 TREE_PROTECTED from the template being specialized.
1899
1900 2001-02-17 Jason Merrill <jason@redhat.com>
1901
1902 * decl2.c (build_artificial_parm): Set TREE_READONLY.
1903
1904 * decl.c (bad_specifiers): Allow throw specs on things with
1905 pointer-to-function or -member-function type.
1906 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
1907 a pmf.
1908
1909 2001-02-17 Mark Mitchell <mark@codesourcery.com>
1910
1911 * call.c (check_dtor_name): Handle template names correctly.
1912
1913 2001-02-16 Jason Merrill <jason@redhat.com>
1914
1915 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
1916 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
1917 * optimize.c (maybe_clone_body): Don't substitute it.
1918 * call.c (build_new_method_call): Check in_chrg instead.
1919 * init.c (expand_virtual_init): Likewise.
1920
1921 2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
1922
1923 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
1924 class-type introduces at least a type-name.
1925
1926 2001-02-16 Jakub Jelinek <jakub@redhat.com>
1927
1928 * call.c (convert_like_real): Create a temporary for non-lvalue.
1929
1930 2001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
1931
1932 * cp-tree.h: Fix typos in comments.
1933
1934 2001-02-16 Jason Merrill <jason@redhat.com>
1935
1936 * optimize.c (remap_block): If we're compiling a clone, pass the
1937 new block to insert_block.
1938
1939 2001-02-16 Mark Mitchell <mark@codesourcery.com>
1940
1941 * semantics.c (finish_asm_stmt): Robustify.
1942
1943 2001-02-15 Mark Mitchell <mark@codesourcery.com>
1944
1945 * pt.c (push_template_decl_real): Don't remangle the name of a
1946 class template.
1947
1948 2001-02-15 Jim Meyering <meyering@lucent.com>
1949
1950 * Make-lang.in (c++.install-common): Depend on installdirs.
1951 (c++.install-info): Likewise.
1952 (c++.install-man): Likewise.
1953
1954 2001-02-15 Mark Mitchell <mark@codesourcery.com>
1955
1956 * typeck2.c (build_m_component_ref): Robustify.
1957
1958 2001-02-15 Alexandre Oliva <aoliva@redhat.com>
1959
1960 * friend.c (do_friend): Don't take the nested [template] class
1961 into account when deciding whether to warn about the friend
1962 function not referring to a template function.
1963
1964 2001-02-14 Jakub Jelinek <jakub@redhat.com>
1965
1966 * typeck.c (build_unary_op): Clarify error message.
1967
1968 2001-02-08 Aldy Hernandez <aldyh@redhat.com>
1969
1970 * parse.y (component_constructor_declarator): allow optional
1971 parentheses around constructor class name.
1972
1973 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
1974
1975 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
1976 section.
1977 * init.c (emit_base_init): Remove incorrect comment about
1978 virtual bases.
1979 * method.c (make_thunk): Fix comment alignment.
1980
1981 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
1982
1983 Kill remnants of this is variable.
1984 * cp-tree.h (flag_this_is_variable): Remove.
1985 * decl2.c (flag_this_is_variable): Remove.
1986 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
1987 (build_vbase_path): The path is non-static, even in a cdtor.
1988 (resolves_to_fixed_type_p): Add additional return value.
1989 * search.c (init_vbase_pointers): Adjust.
1990 * tree.c (lvalue_p_1): Adjust.
1991 * typeck.c (mark_addressable): Adjust.
1992
1993 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
1994
1995 * pt.c (unify): Don't check cv quals of array types.
1996
1997 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
1998
1999 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
2000 check whether we already have the type.
2001
2002 2001-02-13 Mark Mitchell <mark@codesourcery.com>
2003
2004 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
2005 * call.c (build_op_delete_call): Simplify to remove duplicate
2006 code.
2007 * class.c (clone_function_decl): Don't build the deleting variant
2008 of a non-virtual destructor.
2009 * decl.c (finish_destructor_body): Don't call delete if this is a
2010 non-virtual destructor.
2011 * init.c (build_delete): Explicitly call `operator delete' when
2012 deleting an object with a non-virtual destructor.
2013
2014 2001-02-13 Jason Merrill <jason@redhat.com>
2015
2016 * lang-specs.h: Add more __EXCEPTIONS.
2017
2018 2001-02-12 Nathan Sidwell <nathan@codesourcery.com>
2019
2020 * typeck2.c (process_init_constructor): Check
2021 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
2022
2023 2001-02-12 Nathan Sidwell <nathan@codesourcery.com>
2024
2025 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
2026 Remove spurious information in comment. Allow further
2027 adjustments of REFERENCE_TYPE args.
2028
2029 2001-02-12 Nathan Sidwell <nathan@codesourcery.com>
2030
2031 * errfn.c (cp_deprecated): Tweak diagnostic text.
2032 * parse.y (new_initializer): Deprecate initializer lists
2033 extension.
2034
2035 2001-02-12 Mark Mitchell <mark@codesourcery.com>
2036
2037 Remove old ABI support.
2038
2039 2001-02-11 Mark Mitchell <mark@codesourcery.com>
2040
2041 * decl2.c (flag_vtable_thunks): Always set it to 1.
2042 (flag_new_abi): Likewise.
2043 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
2044
2045 * Makefile.in (g++spec.o): Fix typo.
2046
2047 2001-02-09 Jason Merrill <jason@redhat.com>
2048
2049 * lang-specs.h: Restore definition of __EXCEPTIONS.
2050
2051 2001-02-08 Jason Merrill <jason@redhat.com>
2052
2053 * search.c (shared_member_p): New function.
2054 (lookup_field_r): Use it.
2055 * cp-tree.h (SHARED_MEMBER_P): Remove.
2056
2057 * method.c (process_overload_item): Handle template-dependent array
2058 bounds.
2059 * pt.c (type_unification_real): If we end up with undeduced nontype
2060 parms, try again.
2061
2062 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
2063 types.
2064
2065 * typeck2.c (friendly_abort): Don't say anything if we have
2066 earlier errors or sorries.
2067
2068 * decl.c (check_tag_decl): Notice attempts to redefine bool and
2069 wchar_t. Ignore if in_system_header.
2070
2071 * decl.c (maybe_push_cleanup_level): New fn...
2072 (start_decl_1): ...split out from here.
2073 * cvt.c (build_up_reference): Use it.
2074 * cp-tree.h: Declare it.
2075
2076 2001-02-07 Mark Mitchell <mark@codesourcery.com>
2077
2078 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
2079 spec.
2080
2081 2001-02-06 Nathan Sidwell <nathan@codesourcery.com>
2082
2083 * pt.c (lookup_template_class): Make sure it's a primary
2084 template or template_template_parm when called from the parser.
2085 (instantiate_template_class): Add assertion.
2086
2087 2001-02-05 Alexandre Oliva <aoliva@redhat.com>
2088
2089 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
2090 from error_mark_node.
2091
2092 2001-02-05 Nathan Sidwell <nathan@codesourcery.com>
2093
2094 Fix specification and implementation bugs in V3 ABI
2095 construction vtables.
2096 * cp-tree.h (flag_dump_class_layout): New flag.
2097 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
2098 (BINFO_LOST_PRIMARY_P): New flag.
2099 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
2100 (BINFO_PRIMARY_MARKED_P): Rename to ...
2101 (BINFO_PRIMARY_P): ... here.
2102 (binfo_via_virtual): New prototype.
2103 * decl2.c (flag_dump_class_layout): New flag.
2104 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
2105 use `=' as a file name separator.
2106 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
2107 bases.
2108 (build_vtbl_address): If this is a virtual primary base, then
2109 get the vtbl of what it is ultimately primary for.
2110 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
2111 for BINFO_PRIMARY_P.
2112 (dfs_skip_nonprimary_vbases_markedp): Likewise.
2113 (get_shared_vbase_if_not_primary): Likewise.
2114 (dfs_get_pure_virtuals): Likewise.
2115 (expand_upcast_fixups): Likewise.
2116 (fixup_virtual_upcast_offsets): Likewise.
2117 (dfs_find_vbase_instance): Likewise.
2118 (find_vbase_instance): Likewise.
2119 (binfo_from_vbase): Adjust comment to reflect reality.
2120 (binfo_via_virtual): New function.
2121 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
2122 for binfo walking during VTT construction.
2123 (dfs_mark_primary_bases): Remove.
2124 (force_canonical_binfo_r): New function.
2125 (force_canonical_binfo): New function.
2126 (mark_primary_virtual_base): New function.
2127 (mark_primary_bases): Walk in inheritance graph order, use
2128 mark_primary_virtual_base.
2129 (determine_primary_base): Use some more intermediate variables.
2130 (dfs_find_final_overrider): Don't check for overriding along a
2131 virtual path.
2132 (dfs_modify_vtables): Walk into primary virtual bases too.
2133 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
2134 (build_base_fields): Likewise.
2135 (dfs_set_offset_for_unshared_vbases): Likewise.
2136 (layout_virtual_bases): Likewise.
2137 (end_of_class): Likewise.
2138 (finish_struct_1): Call dump_class_hierarchy, if requested.
2139 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
2140 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
2141 (dump_class_hierarchy): Add file parameter. Append to file, if
2142 required.
2143 (finish_vtbls): Adjust accumulate_vtbl_inits call.
2144 Use canonical base for virtual bases.
2145 (build_vtt): Add more comments. Adjust build_vtt_inits call.
2146 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
2147 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
2148 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
2149 virtual VTTs.
2150 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
2151 from DATA. We want virtual primary bases and all bases via virtual.
2152 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
2153 virtual base when not a construction vtable.
2154 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
2155 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
2156 Use canonical bases when processing virtual bases.
2157 (accumulate_vtbl_inits): We're interested in any base via a
2158 virtual path.
2159 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
2160 within a construction vtable, determine what is being overridden.
2161 (build_vtbl_initializer): Add more comments
2162 (add_vcall_offset_vtbl_entries_1): Adjust comment.
2163 (build_rtti_vtbl_entries): Check if the base has lost its
2164 primary.
2165
2166 2001-02-05 Mark Mitchell <mark@codesourcery.com>
2167
2168 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
2169
2170 Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2171
2172 * decl.c (pushdecl): Call abort instead of fatal.
2173 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
2174 * init.c (build_new_1): Likewise.
2175 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
2176 * decl.c (build_typename_type): hash_table_init now returns void.
2177 decl.c (init_decl_processing): Make an error non-fatal.
2178
2179 2001-02-04 Mark Mitchell <mark@codesourcery.com>
2180
2181 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
2182 Document.
2183 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
2184 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
2185 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
2186 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
2187 * decl.c (maybe_commonize_var): Use the new name-mangling where
2188 appropriate.
2189 * decl2.c (comdat_linkage): Enhance comments. Make all
2190 compiler-generated things static, if COMDAT is not available.
2191 (get_tinfo_decl): Do not make typeinfo objects that belong in the
2192 library COMDAT.
2193 (tinfo_base_init): Use the correct mangled name for typeinfo
2194 strings, and push them into the global scope.
2195 (typeinfo_in_lib_p): New function.
2196 (synthesize_tinfo_var): Use it.
2197 (create_real_tinfo_var): Likewise.
2198
2199 2001-02-03 Jakub Jelinek <jakub@redhat.com>
2200
2201 * decl.c (push_class_binding): Use context_for_name_lookup instead
2202 of CP_DECL_CONTEXT.
2203 * search.c (context_for_name_lookup): Remove static. Check for NULL
2204 context in the loop.
2205 * cp-tree.h (context_for_name_lookup): Add prototype.
2206
2207 2001-02-02 Jakub Jelinek <jakub@redhat.com>
2208
2209 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
2210 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
2211 Remove.
2212 * call.c (convert_class_to_reference, build_user_type_conversion_1,
2213 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
2214
2215 2001-02-02 Mark Mitchell <mark@codesourcery.com>
2216
2217 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
2218 of macros used when compiling g++spec.c.
2219 * g++spec.c (lang_specific_driver): Link with the shared
2220 libgcc by default.
2221
2222 2001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
2223
2224 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
2225 make_reference_declarator, make_call_declarator), method.c
2226 (implicitly_declare_fn), parse.y (namespace_using_decl,
2227 notype_unqualified_id, expr_or_declarator, new_type_id,
2228 after_type_declarator, direct_after_type_declarator,
2229 notype_declarator, complex_notype_declarator,
2230 complex_direct_notype_declarator, qualified_id,
2231 notype_qualified_id, overqualified_id, direct_new_declarator,
2232 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
2233 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
2234 instead of build_parse_node.
2235
2236 2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2237
2238 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
2239 (minus_one_node): Moved to top level gcc directory. Renamed
2240 to integer_minus_one_node.
2241
2242 * init.c (init_init_processing): Don't set minus_one_node.
2243 (build_vec_init): Use integer_minus_one_node.
2244
2245 * rtti.c (get_tinfo_decl_dynamic): Likewise.
2246
2247 2001-01-28 Jakub Jelinek <jakub@redhat.com>
2248
2249 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
2250 identical and they would be replaced with constant, remove
2251 MODIFY_EXPR from the tree.
2252
2253 2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2254
2255 * Make-lang.in: Remove all dependencies on defaults.h.
2256 * call.c: Don't include defaults.h.
2257 * decl.c: Likewise.
2258 * decl2.c: Likewise.
2259 * except.c: Likewise.
2260 * pt.c: Likewise.
2261 * rtti.c: Likewise.
2262 * tree.c: Likewise.
2263 * typeck.c: Likewise.
2264
2265 2001-01-25 Jakub Jelinek <jakub@redhat.com>
2266
2267 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
2268 operators even in "C" linkage.
2269 * method.c (set_mangled_name_for_decl): Likewise.
2270 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
2271 overloaded operators in "C" linkage.
2272
2273 2001-01-24 Nathan Sidwell <nathan@codesourcery.com>
2274
2275 * pt.c (tsubst_decl): Remove IN_DECL parameter.
2276 (tsubst_arg_types): Check parameter is not void.
2277 (tsubst): Adjust tsubst_decl call.
2278
2279 2001-01-24 Nathan Sidwell <nathan@codesourcery.com>
2280
2281 * call.c (add_builtin_candidate): Quote std properly, from
2282 previous change.
2283
2284 2001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2285
2286 * pt.c (check_explicit_specialization): Clone constructors and
2287 destructors.
2288
2289 2001-01-23 Nathan Sidwell <nathan@codesourcery.com>
2290
2291 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
2292 indicates anything special about template depth. Make sure we
2293 only count the user visible template classes.
2294
2295 2001-01-23 Nathan Sidwell <nathan@codesourcery.com>
2296
2297 * call.c (build_conv): Typo in comment.
2298 (add_builtin_candidate): Add more explanation.
2299 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
2300 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
2301 when we have enumeral types.
2302 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
2303 candidates for relops and eqops.
2304 (joust): Simplify control flow. Allow a non-template user
2305 function to hide a builtin.
2306
2307 2001-01-22 Nathan Sidwell <nathan@codesourcery.com>
2308
2309 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
2310 (more_specialized): Add deduction parameter.
2311 * call.c (joust): Adjust more_specialized call.
2312 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
2313 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
2314 (get_bindings_order): Remove.
2315 (get_bindings_real): Add DEDUCE parameter.
2316 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
2317 REFERENCE_TYPE jig for DEDUCE_ORDER.
2318 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
2319 maybe_adjust_types_for_deduction.
2320 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
2321 directly.
2322 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
2323 (check_cv_quals_for_unify): Use new unify qualifier flags.
2324 (unify): Clear new unify qualifier flags.
2325 (get_bindings_real): Add DEDUCE parameter.
2326 (get_bindings): Adjust call to get_bindings_real.
2327 (get_bindings_overload): Likewise.
2328 (most_specialized_instantiation): Adjust call to
2329 more_specialized.
2330
2331 2001-01-19 Jason Merrill <jason@redhat.com>
2332
2333 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
2334
2335 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
2336 -fnew-abi.
2337
2338 2001-01-19 Ute Pelkmann <scope.muc@t-online.de>
2339
2340 * decl2.c (arg_assoc_class): Fix double iteration logic.
2341
2342 2001-01-19 Jason Merrill <jason@redhat.com>
2343
2344 * init.c (build_delete): Always call convert_force to strip cv-quals.
2345
2346 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
2347 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
2348 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
2349
2350 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
2351
2352 * search.c (get_vbase_1): Count only virtual bases.
2353
2354 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
2355
2356 * class.c (duplicate_tag_error): Robustify flag clearing.
2357
2358 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
2359
2360 * cp-tree.h (lookup_template_class): Add complain parm.
2361 * decl.c (lookup_namespace_name): Adjust call to
2362 lookup_template_class.
2363 (make_typename_type): Likewise.
2364 * semantics.c (finish_template_type): Likewise.
2365 * pt.c (lookup_template_class): Add complain parm. Adjust.
2366 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
2367 (tsubst): Likewise.
2368
2369 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
2370
2371 * pt.c (copy_default_args_to_explicit_spec): Preserve
2372 object's CV quals. Reorganize.
2373
2374 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
2375
2376 * typeck.c (build_modify_expr): Say `initialization' for
2377 INIT_EXPRs.
2378 * init.c (build_default_init): Convert to enumeral type, if
2379 needed.
2380
2381 2001-01-18 Jakub Jelinek <jakub@redhat.com>
2382
2383 * parse.y (nomods_initdcl0): Properly set things up for
2384 initdcl0_innards.
2385
2386 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
2387
2388 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
2389 (type_unification_real): Set it.
2390 (unify): Use it.
2391
2392 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
2393
2394 * decl.c (finish_destructor_body): Convert to vbase pointer here.
2395
2396 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
2397
2398 * semantics.c (begin_class_definition): Check we're not inside a
2399 template parm list.
2400
2401 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
2402
2403 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
2404 BASELINK_P.
2405
2406 2001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2407
2408 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
2409 * call.c (build_over_call): Add comment.
2410
2411 2001-01-16 Daniel Berlin <dberlin@redhat.com>
2412
2413 * cvt.c (ocp_convert): Handle vector type conversion
2414 * typeck2.c (digest_init): Handle vector type initializations
2415
2416 2001-01-16 Phil Edwards <pme@sources.redhat.com>
2417
2418 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
2419 was given.
2420
2421 2001-01-15 Nathan Sidwell <nathan@codesourcery.com>
2422
2423 * pt.c (check_nontype_parm): Rename to ...
2424 (invalid_nontype_parm_type_p): ... here.
2425 (process_template_parm): Adjust.
2426 (convert_template_argument): Adjust.
2427
2428 2001-01-15 Nathan Sidwell <nathan@codesourcery.com>
2429
2430 * pt.c (check_nontype_parm): New function.
2431 (process_template_parm): Use it.
2432 (convert_template_argument): Use it.
2433 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
2434 member.
2435
2436 2001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
2437
2438 * tree.c: Add defaults.h
2439 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
2440 * Make-lang.in (cp/tree.o): Add defaults.h.
2441
2442 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
2443
2444 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
2445
2446 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
2447
2448 * g++.1: Change to be ".so man1/gcc.1".
2449
2450 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
2451
2452 * Make-lang.in (c++.info, c++.install-info): Build and install g++
2453 internals info.
2454 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
2455 ($(srcdir)/cp/g++int.info): New target.
2456 * gxxint.texi: Add info directory entry. Use @@ in email address.
2457 * .cvsignore: Update.
2458
2459 2001-01-12 Nathan Sidwell <nathan@codesourcery.com>
2460
2461 * typeck.c (build_c_cast): Do template processing earlier.
2462 Always pedwarn on array casts.
2463
2464 2001-01-12 Nathan Sidwell <nathan@codesourcery.com>
2465
2466 * friend.c (make_friend_class): Make sure a templated class is
2467 actually a template.
2468
2469 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
2470
2471 * decl2.c (get_guard): Set linkage from guarded decl.
2472
2473 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
2474
2475 * call.c (convert_default_arg): Check for unprocessed
2476 DEFAULT_ARG.
2477 * cp-tree.h (replace_defarg): Move to spew.c.
2478 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
2479 spew.c, which is where they really are.
2480 (done_pending_defargs): Declare.
2481 (unprocessed_defarg_fn): Declare.
2482 * decl.c (replace_defarg): Move to spew.c
2483 * parse.y (structsp): Call done_pending_defargs.
2484 * spew.c (defarg_fns): Rearrange list structure.
2485 (defarg_fnsdone): New static variable.
2486 (defarg_depfns): New static variable.
2487 (init_spew): Adjust.
2488 (add_defarg_fn): Store the type in TREE_TYPE.
2489 (do_pending_defargs): Detect and deal with ordering constraints
2490 and circularity.
2491 (done_pending_defargs): New function.
2492 (unprocessed_defarg_fn): New function.
2493 (replace_defarg): Moved from decl.c. Robustify. Don't save
2494 if circularity detected.
2495
2496 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
2497
2498 * pt.c (unify): Check array has a domain, before checking
2499 whether it is variable sized.
2500
2501 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
2502
2503 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
2504 parameters with pointers to arrays of unknown bound.
2505
2506 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
2507
2508 * parse.y (template_parm_header, template_spec_header): New
2509 reductions. Split out from ...
2510 (template_header): ... here. Use them.
2511 (template_template_parm): Use template_parm_header.
2512 * semantics.c (finish_template_template_parm): Add assert.
2513
2514 2001-01-10 Mark Mitchell <mark@codesourcery.com>
2515
2516 * mangle.c (write_builtin_type): Fix thinko.
2517
2518 * pt.c (copy_default_args_to_explicit_spec_1): New function.
2519 (copy_default_args_to_explicit_spec): Likewise.
2520 (check_explicit_specialization): Use it.
2521
2522 * class.c (finish_struct_1): Remove last argument in call to
2523 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
2524 * decl.c (builtin_function): Likewise.
2525 (build_cp_library_fn): Likewise.
2526 (check_initializer): Likewise.
2527 (make_rtl_for_nonlocal_decl): Likewise.
2528 (cp_finish_decl): Likewise.
2529 (start_function): Likewise.
2530 * decl2.c (finish_anon_union): Likewise.
2531 * friend.c (do_friend): Likewise.
2532 * init.c (build_java_class_ref): Likewise.
2533 * method.c (make_thunk): Likewise.
2534 * pt.c (tsubst_friend_function): Likewise.
2535 * semantics.c (expand_body): Likewise.
2536
2537 2001-01-10 Mark Mitchell <mark@codesourcery.com>
2538
2539 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
2540 looking at DECL_CLONED_FUNCTION for non-functions.
2541
2542 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
2543
2544 * error.c (dump_template_parameter): Use parm to determine how
2545 to print default value.
2546
2547 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
2548
2549 * class.c (duplicate_tag_error): Clear more flags.
2550
2551 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
2552
2553 * call.c (build_new_method_call): Use binfo_for_vbase.
2554
2555 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
2556
2557 * cp-tree.h (flag_cond_mismatch): Don't declare.
2558 * decl2.c (flag_cond_mismatch): Don't define.
2559 (lang_f_options): Remove cond-mismatch.
2560 (unsupported_options): Add cond-mismatch.
2561
2562 2001-01-09 Nathan Sidwell <nathan@codesourcery.com>
2563
2564 * class.c (handle_using_decl): Reject using of constructor name
2565 of sourcing class. Allow injecting of a method with same name as
2566 nested class. Fixup error messages.
2567
2568 2001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
2569
2570 * decl2.c (lang_decode_option): Handle -Wformat=2.
2571
2572 2001-01-08 Nathan Sidwell <nathan@codesourcery.com>
2573
2574 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
2575 initialized_in_class.
2576 (DECL_DEFINED_IN_CLASS_P): Rename to ...
2577 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
2578 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
2579 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
2580 * pt.c (check_default_tmpl_args): Adjust for
2581 DECL_INITIALIZED_IN_CLASS_P.
2582 (instantiate_class_template): Likewise.
2583 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
2584
2585 * class.c (finish_struct): Constify saved_filename.
2586
2587 2001-01-08 Nathan Sidwell <nathan@codesourcery.com>
2588
2589 * class.c (duplicate_tag_error): Adjust diagnostic.
2590 (finish_struct): Locally set location to start of struct.
2591 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
2592
2593 2001-01-08 Nathan Sidwell <nathan@codesourcery.com>
2594
2595 * decl.c (struct binding_level): Adjust class_shadowed comments
2596 to reflect reality.
2597 (push_class_level_binding): Ajust comments to reflect reality.
2598 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
2599 Don't set TREE_VALUE on the class_shadowed list.
2600
2601 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
2602
2603 * decl2.c (acceptable_java_type): Allow references too.
2604 * init.c (build_java_class_ref): When using the new ABI, search
2605 `class$' and have it mangled with `mangle_decl.'
2606 * mangle.c (write_java_integer_type_codes): New function.
2607 (write_builtin_type): Detect and mangle Java integer and real
2608 types.
2609
2610 2001-01-07 Mark Mitchell <mark@codesourcery.com>
2611
2612 * decl2.c (grokfield): Don't accept `asm' specifiers for
2613 non-static data members.
2614
2615 2001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2616
2617 * expr.c (cplus_expand_expr): Don't reset `target'.
2618
2619 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
2620
2621 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
2622
2623 2001-01-05 Nathan Sidwell <nathan@codesourcery.com>
2624
2625 * parse.y (template_datadef): Check for error_mark_node.
2626
2627 2001-01-05 Nathan Sidwell <nathan@codesourcery.com>
2628
2629 * cp-tree.def (DEFAULT_ARG): Make `x' class.
2630
2631 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
2632
2633 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
2634 (record_builtin_type): Make non-static.
2635 (flag_short_double): Don't declare.
2636 (init_decl_processing): Remove the creation of many tree nodes now
2637 in c_common_nodes_and_builtins.
2638 (build_void_list_node): New function.
2639 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
2640 * cp-tree.h (flag_short_wchar): Don't declare.
2641
2642 2001-01-04 Mark Mitchell <mark@codesourcery.com>
2643
2644 * call.c (build_conv): Don't use build1 for USER_CONV.
2645 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
2646
2647 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
2648
2649 * lex.c (lang_init): Call c_common_lang_init.
2650
2651 2001-01-03 Nathan Sidwell <nathan@codesourcery.com>
2652
2653 * search.c (lookup_fnfields_here): Remove.
2654 (look_for_overrides_r): Use lookup_fnfields_1.
2655 Ignore functions from using declarations.
2656
2657 2001-01-03 Nathan Sidwell <nathan@codesourcery.com>
2658
2659 Implement exceptions specifiers for implicit member functions.
2660 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
2661 * method.c (synthesize_exception_spec): New function.
2662 (locate_dtor, locate_ctor, locate_copy): New functions.
2663 (implicitly_declare_fn): Generate the exception spec too.
2664 * search.c (check_final_overrider): Check artificial functions
2665 too.
2666 * typeck2.c (merge_exception_specifiers): New function.
2667
2668 2001-01-03 Jason Merrill <jason@redhat.com>
2669
2670 * init.c (build_default_init): New fn.
2671 (perform_member_init): Split out from here.
2672 (build_new_1): Use it. Simplify initialization logic.
2673 (build_vec_init): Take an array, rather than a pointer and maxindex.
2674 Speed up simple initializations. Don't clean up if we're assigning.
2675 * cp-tree.h: Adjust.
2676 * decl2.c (do_static_initialization): Remove TREE_VEC case.
2677 * parse.y (new_initializer): Return void_zero_node for ().
2678 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
2679 * typeck2.c (digest_init): Only complain about user-written
2680 CONSTRUCTORs.
2681
2682 2000-12-22 Mike Stump <mrs@wrs.com>
2683
2684 * decl2.c: (max_tinst_depth): Increase to 50.
2685
2686 2001-01-02 Mark Mitchell <mark@codesourcery.com>
2687
2688 * class.c (invalidate_class_lookup_cache): Zero the
2689 previous_class_values.
2690 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
2691 TREE_INT_CST_HIGH.
2692 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
2693 * decl.c (free_bindings): New variable.
2694 (push_binding): Don't create a new binding if we have one on the
2695 free list.
2696 (pop_binding): Put old bindings on the free list.
2697 (init_decl_processing): Use size_int, not build_int_2.
2698 Register free_bindings as a GC root.
2699 (cp_make_fname_decl): Use size_int, not build_int_2.
2700 (push_inline_template_parms_recursive): Likewise.
2701 (end_template_parm_list): Likewise.
2702 (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
2703 (tsubst_template_parms): Use size_int, not build_int_2.
2704 (tsubst): Likewise.
2705 * rtti.c (get_vmi_pseudo_type_info): Likewise.
2706
2707 2001-01-02 Richard Henderson <rth@redhat.com>
2708
2709 * parse.y (asm): Set ASM_INPUT_P.
2710
2711 2001-01-02 Jason Merrill <jason@redhat.com>
2712
2713 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
2714 for v3 ABI.
2715
2716 * typeck.c (cp_truthvalue_conversion): New fn.
2717 * cvt.c (ocp_convert): Use it.
2718
2719 * cp-tree.h: Lose c-common.c decls.
2720
2721 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
2722 * cvt.c (convert_to_void): Use type_unknown_p.
2723
2724 * typeck.c (strip_all_pointer_quals): Also strip quals from
2725 pointer-to-member types.
2726
2727 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
2728 parse.y as C.
2729
2730 * call.c (build_new_method_call): Do evaluate the object parameter
2731 when accessing a static member.
2732 * typeck.c (build_component_ref): Likewise.
2733
2734 2001-01-02 Andreas Jaeger <aj@suse.de>
2735
2736 * decl.c (cp_missing_noreturn_ok_p): New.
2737 (init_decl_processing): Set lang_missing_noreturn_ok_p.
2738
2739 2000-12-29 Jakub Jelinek <jakub@redhat.com>
2740
2741 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
2742
2743 2000-12-29 Mark Mitchell <mark@codesourcery.com>
2744
2745 * class.c (pushclass): Remove #if 0'd code.
2746 * cp-tree.h (overload_template_name): Remove.
2747 * decl.c (store_bindings): Simplify.
2748 (pop_from_top_level): Likewise.
2749 * pt.c (overload_template_name): Remove.
2750 (instantiate_decl): Don't call push_to_top_level if it's not
2751 needed.
2752
2753 2000-12-28 Mark Mitchell <mark@codesourcery.com>
2754
2755 * pt.c (register_local_specialization): Don't return a value.
2756 (lookup_template_class): Use move-to-front heuristic when looking
2757 up template instantiations.
2758 (instantiate_decl): Only push_to_top_level when we're actually
2759 going to instantiate the template.
2760
2761 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2762
2763 * search.c (binfo_for_vtable): Return least derived class, not
2764 most. Handle secondary vtables.
2765
2766 2000-12-22 Jason Merrill <jason@redhat.com>
2767
2768 * pt.c (more_specialized): Don't optimize len==0.
2769 (fn_type_unification): If we're adding the return type, increase len.
2770
2771 * typeck.c (build_binary_op): Fix pmf comparison logic.
2772
2773 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
2774 DECL_STATIC_FUNCTION_P.
2775
2776 * semantics.c (genrtl_finish_function): Don't try to jump to
2777 return_label unless it exists.
2778
2779 In partial ordering for a call, ignore parms for which we don't have
2780 a real argument.
2781 * call.c (joust): Pass len to more_specialized.
2782 (add_template_candidate_real): Strip 'this', pass len.
2783 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
2784 (get_bindings_order): New fn. Pass len down.
2785 (get_bindings_real): Strip 'this', pass len.
2786 (fn_type_unification): Likewise.
2787 (type_unification_real): Succeed after checking 'len' args.
2788 (most_specialized_instantiation): Lose explicit_args parm.
2789 * class.c (resolve_address_of_overloaded_function): Strip 'this',
2790 pass len.
2791
2792 2000-12-21 Jason Merrill <jason@redhat.com>
2793
2794 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
2795 DECL_TEMPLATE_RESULT.
2796
2797 * search.c (lookup_field_r): Call lookup_fnfields_1, not
2798 lookup_fnfields_here.
2799
2800 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
2801
2802 * call.c (build_object_call): Also allow conversions that return
2803 reference to pointer to function.
2804 (add_conv_candidate): Handle totype being ref to ptr to fn.
2805 (build_field_call): Also allow members of type reference to function.
2806 Lose support for calling pointer to METHOD_TYPE fields.
2807
2808 * error.c (dump_expr): Handle *_CAST_EXPR.
2809
2810 * typeck2.c (build_scoped_ref): Always convert to the naming class.
2811
2812 * tree.c (break_out_cleanups): Lose.
2813 * cp-tree.h: Remove prototype.
2814 * typeck.c (build_component_ref): Don't break_out_cleanups.
2815 (build_compound_expr): Likewise.
2816 * semantics.c (finish_expr_stmt): Likewise.
2817
2818 2000-12-20 Richard Henderson <rth@redhat.com>
2819
2820 * cp-tree.h: Update declarations.
2821 * decl.c (finish_case_label): Return the new stmt node.
2822 * semantics.c (finish_goto_stmt): Likewise.
2823 (finish_expr_stmt, finish_return_stmt): Likewise.
2824 (finish_break_stmt, finish_continue_stmt): Likewise.
2825 (finish_asm_stmt): Likewise.
2826 * parse.y (already_scoped_stmt): Set STMT_LINENO.
2827 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
2828 (simple_if, simple_stmt): Return the new stmt node.
2829 (save_lineno): New.
2830
2831 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2832
2833 * cp-tree.h: Don't declare warn_long_long.
2834
2835 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2836
2837 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
2838 IS_AGGR_TYPE.
2839
2840 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2841
2842 * pt.c (unify): Handle when both ARG and PARM are
2843 BOUND_TEMPLATE_TEMPLATE_PARM.
2844
2845 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2846
2847 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
2848 DECL_TEMPLATE_PARM_P.
2849
2850 2000-12-15 Jason Merrill <jason@redhat.com>
2851
2852 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
2853
2854 * init.c (build_new_1): Don't strip quals from type.
2855
2856 * decl.c (pushdecl): Don't check for linkage on a non-decl.
2857
2858 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
2859
2860 * call.c (build_new_function_call): Lose space before paren in
2861 error message.
2862 (build_new_method_call): Likewise.
2863
2864 * typeck2.c (build_m_component_ref): Propagate quals from datum.
2865
2866 2000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2867
2868 * pt.c (check_explicit_specialization): Propagate default
2869 function arguments to explicit specializations.
2870
2871 2000-12-13 DJ Delorie <dj@redhat.com>
2872
2873 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
2874 and <? operators.
2875
2876 2000-12-08 Jason Merrill <jason@redhat.com>
2877
2878 * error.c (dump_function_name): Don't let the user see __comp_ctor.
2879
2880 Clean up copy-initialization in overloading code.
2881 * call.c (build_user_type_conversion_1): Die if we are asked to
2882 convert to the same or a base type.
2883 (implicit_conversion): Avoid doing so. Lose reference binding code.
2884 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
2885 direct-initialization. Also do direct-init part of copy-init.
2886 (build_user_type_conversion): Don't provide context to convert_like.
2887 * cvt.c (ocp_convert): build_user_type_conversion will now provide
2888 the constructor call for copy-init.
2889
2890 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
2891 instantiation of a member template.
2892 (do_decl_instantiation): Not here.
2893
2894 2000-12-07 Nathan Sidwell <nathan@codesourcery.com>
2895
2896 * class.c (check_field_decls): Don't special case anonymous
2897 fields in error messages.
2898 (note_name_declared_in_class): Use %D on diagnostic.
2899
2900 * tree.c (pod_type_p): Use strip_array_types.
2901 (cp_valid_lang_attribute): Likewise.
2902 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
2903 multiple evaluations.
2904 (cp_has_mutable_p): Use strip_array_types.
2905
2906 2000-12-07 Nathan Sidwell <nathan@codesourcery.com>
2907
2908 * cp-tree.h (sufficient_parms_p): Declare new function.
2909 * call.c (sufficient_parms_p): New function, broken out of ...
2910 (add_function_candidate): ... here. Use it.
2911 (add_conv_candidate): Use it.
2912 * decl.c (grok_ctor_properties): Use it.
2913
2914 2000-12-07 Jakub Jelinek <jakub@redhat.com>
2915
2916 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
2917
2918 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2919
2920 * decl2.c (lang_decode_option): Handle -Wformat-security.
2921
2922 2000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2923
2924 * pt.c (verify_class_unification): New function.
2925 (get_class_bindings): Use it.
2926 (try_class_unification): Tidy.
2927 (unify): Handle when argument of a template-id is not
2928 template parameter dependent.
2929 (template_args_equal): Handle when TREE_CODE's do not match.
2930
2931 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2932
2933 * lang-specs.h (c++): When invoking the stand-alone preprocessor
2934 for -save-temps, pass all relevant -Defines to it, and then don't
2935 pass them to cc1plus.
2936
2937 2000-12-05 Will Cohen <wcohen@redhat.com>
2938
2939 * decl.c (finish_case_label): Cleared
2940 more_cleanups_ok in surrounding function scopes.
2941 (define_label): Likewise.
2942
2943 2000-12-05 Nathan Sidwell <nathan@codesourcery.com>
2944
2945 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
2946 (get_matching_virtual): Remove.
2947 (look_for_overrides): Declare new function.
2948 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
2949 DECL_VINDEX here.
2950 * class.c (check_for_override): Move base class iteration code
2951 to look_for_overrides.
2952 * search.c (next_baselink): Remove.
2953 (get_virtuals_named_this): Remove.
2954 (get_virtual_destructor): Remove.
2955 (tree_has_any_destructors_p): Remove.
2956 (struct gvnt_info): Remove.
2957 (check_final_overrider): Remove `virtual' from error messages.
2958 (get_matching_virtuals): Remove. Move functionality to ...
2959 (look_for_overrides): ... here, and ...
2960 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
2961 to be overriding.
2962
2963 2000-12-05 Nathan Sidwell <nathan@codesourcery.com>
2964
2965 * typeck.c (get_delta_difference): If via a virtual base,
2966 return zero.
2967 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
2968 adjustment.
2969
2970 2000-12-04 Richard Henderson <rth@redhat.com>
2971
2972 * error.c (dump_tree): Use output_add_string not OB_PUTS.
2973
2974 2000-12-04 Jason Merrill <jason@redhat.com>
2975
2976 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
2977 (write_builtin_type): Pass intSI_type_node and the like through
2978 type_for_mode.
2979 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
2980 Pass intSI_type_node and the like through type_for_mode.
2981 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
2982 * pt.c (tsubst, unify): Likewise.
2983 * tree.c (walk_tree): Likewise.
2984 * error.c (dump_type): Likewise.
2985 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
2986
2987 * Make-lang.in: Tweak top comment for emacs.
2988 (cp/TAGS): Restore.
2989
2990 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
2991
2992 * class.c (clone_function_decl): Robustify.
2993
2994 2000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
2995
2996 * decl.c (store_bindings): Only search in the non modified
2997 old_bindings for duplicates.
2998
2999 2000-12-04 Nathan Sidwell <nathan@codesourcery.com>
3000
3001 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
3002 TYPE_POLYMORPHIC_P.
3003
3004 * typeck.c (build_static_cast): Remove unused variable.
3005
3006 2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3007
3008 * pt.c: Fix typo in comment.
3009
3010 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3011
3012 * decl2.c (warn_format): Remove definition.
3013 (lang_decode_option): Handle -Wformat-nonliteral,
3014 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
3015
3016 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3017
3018 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
3019 (init_decl_processing): Don't create string_type_node,
3020 const_string_type_node, wint_type_node, intmax_type_node,
3021 uintmax_type_node, default_function_type, ptrdiff_type_node and
3022 unsigned_ptrdiff_type_node. Adjust position of call to
3023 c_common_nodes_and_builtins.
3024 (identifier_global_value): New function.
3025
3026 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>
3027
3028 * call.c (standard_conversion): Reject pointer to member
3029 conversions from ambiguous, inaccessible or virtual bases.
3030 * typeck.c (build_static_cast): Don't check pointers to members
3031 specially.
3032
3033 2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
3034
3035 * method.c (do_build_copy_constructor): Preserve cv
3036 qualifications when accessing source object members.
3037 (do_build_assign_ref): Likewise. Remove separate diagnostics for
3038 unnamed fields.
3039
3040 2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
3041
3042 * method.c (do_build_assign_ref): Construct appropriately
3043 CV-qualified base reference. Don't allow const casts in base
3044 conversion.
3045
3046 2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
3047
3048 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
3049 incomplete return type.
3050
3051 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
3052
3053 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
3054 * semantics.c (finish_base_specifier): Accept a _TYPE not a
3055 _DECL.
3056
3057 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
3058
3059 * spew.c (yyerror): Cope if yylval.ttype is NULL.
3060
3061 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
3062
3063 * decl.c (grokdeclarator): Diagnose undefined template contexts.
3064
3065 2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
3066
3067 * decl.c (grokdeclarator): Do type access control on friend
3068 class.
3069
3070 2000-11-27 Nathan Sidwell <nathan@codesourcery.com>
3071
3072 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
3073 bison parser ickiness.
3074 * pt.c (tsubst_friend_function): Enter namespace scope when
3075 tsubsting the function name.
3076 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
3077
3078 2000-11-27 Nathan Sidwell <nathan@codesourcery.com>
3079
3080 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
3081 * cvt.c (cp_convert_to_pointer): Add force parameter.
3082 Allow conversions via virtual base if forced.
3083 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
3084 (ocp_convert): Likewise.
3085 * search.c (binfo_from_vbase): Return the virtual base's binfo.
3086 * typeck.c (get_delta_difference): Adjust handling of virtual
3087 bases.
3088
3089 2000-11-26 Mark Mitchell <mark@codesourcery.com>
3090
3091 * tree.c (struct list_hash): Remove.
3092 (list_hash_table): Make it be an htab.
3093 (struct list_proxy): New type.
3094 (list_hash_eq): New function.
3095 (list_hash_pieces): Renamed from ...
3096 (list_hash): ... this.
3097 (list_hash_lookup): Remove.
3098 (list_hash_add): Remove.
3099 (hash_tree_cons): Use the generic hashtable.
3100 (mark_list_hash): Remove.
3101 (init_tree): Create the hashtable.
3102
3103 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
3104
3105 * method.c (build_mangled_C9x_name): Rename to
3106 build_mangled_C99_name. Change C9X references in comments to
3107 refer to C99.
3108
3109 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
3110
3111 * parse.y (unary_expr): Move VA_ARG from here ...
3112 (primary): ... to here.
3113
3114 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
3115
3116 * semantics.c (finish_id_expr): If type is error_mark, return
3117 error_mark.
3118
3119 2000-11-23 Nathan Sidwell <nathan@codesourcery.com>
3120
3121 * pt.c (lookup_template_class): Simplify loop exit constructs.
3122 Cope when there is no partial instantiation of a template
3123 template member.
3124
3125 Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
3126
3127 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
3128
3129 2000-11-22 Mark Mitchell <mark@codesourcery.com>
3130
3131 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
3132 prefix.
3133
3134 * pt.c (do_decl_instantiate): Explicitly clone constructors and
3135 destructors that haven't already been cloned.
3136
3137 2000-11-20 Richard Henderson <rth@redhat.com>
3138
3139 * parse.y (yyparse_1): Rename the parser entry point.
3140
3141 2000-11-20 Alex Samuel <samuel@codesourcery.com>
3142
3143 * mangle.c (write_name): Use <unscoped-name> for names directly in
3144 function scope.
3145 (write_unscoped_name): Accept names directly in function scope.
3146
3147 2000-11-20 Nathan Sidwell <nathan@codesourcery.com>
3148
3149 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
3150 * parse.y (extdef): Add EXPORT reduction.
3151 * spew.c (yylex): Don't skip export here.
3152
3153 2000-11-19 Mark Mitchell <mark@codesourcery.com>
3154
3155 * decl.c (init_decl_processing): Correct name of pure virtual
3156 function under the new ABI.
3157 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
3158 (throw_bad_typeid): Likewise for bad typeid function.
3159
3160 2000-11-18 Mark Mitchell <mark@codesourcery.com>
3161
3162 * decl.c (grokparms): Don't even function types of `void' type,
3163 either.
3164 * mangle.c (write_type): Don't crash when confronted with the
3165 error_mark_node.
3166
3167 * decl.c (grokparms): Don't create parameters of `void' type.
3168
3169 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
3170
3171 * lex.c (mark_impl_file_chain): Delete.
3172 (init_parse): Remove call to ggc_add_string_root. No need to
3173 ggc_strdup a string constant. Do not add impl_file_chain to GC
3174 roots.
3175 (handle_pragma_implementation): No need to ggc_strdup main_filename.
3176
3177 2000-11-17 Nathan Sidwell <nathan@codesourcery.com>
3178
3179 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
3180
3181 2000-11-17 Nathan Sidwell <nathan@codesourcery.com>
3182
3183 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
3184 * decl.c (grokdeclarator): Don't reject void parms here.
3185 (require_complete_types_for_parms): Simplify, use
3186 complete_type_or_else.
3187 (grokparms): Remove bitrot. Remove funcdef parm.
3188 Deal with ellipsis parm lists here.
3189 * semantics.c (finish_parmlist): Don't append void_list_node
3190 here. Set PARMLIST_ELLIPSIS_P.
3191
3192 2000-11-17 Nathan Sidwell <nathan@codesourcery.com>
3193
3194 * typeck2.c (incomplete_type_error): Reorganise to avoid
3195 excessive diagnostics.
3196
3197 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
3198
3199 * lex.c (struct impl_files, internal_filename): Constify a char *.
3200
3201 2000-11-16 Mark Mitchell <mark@codesourcery.com>
3202
3203 * mangle.c (write_special_name_constructor): Don't generate
3204 assembler junk when confronted with an old-style constructor.
3205 (write_special_name_destructor): Likewise.
3206 (mangle_decl_string): Do it here instead.
3207
3208 2000-11-16 Nathan Sidwell <nathan@codesourcery.com>
3209
3210 * call.c (op_error): Make error messages clearer.
3211
3212 2000-11-15 Mark Mitchell <mark@codesourcery.com>
3213
3214 * decl.c (wrapup_globals_for_namespace): Don't mark things
3215 TREE_ASM_WRITTEN when they're not.
3216
3217 2000-11-15 Jason Merrill <jason@redhat.com>
3218
3219 * typeck2.c (friendly_abort): Uncount the error before handing
3220 off to fancy_abort.
3221
3222 2000-11-15 Nathan Sidwell <nathan@codesourcery.com>
3223
3224 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
3225
3226 2000-11-14 Mark Mitchell <mark@codesourcery.com>
3227
3228 * class.c (build_vtbl_initializer): Fix typo in comment.
3229 * typeck.c (expr_sizeof): Don't crash on errors.
3230
3231 2000-11-14 Jim Wilson <wilson@redhat.com>
3232
3233 * lang-specs.h: Add %2 after %(cc1_options).
3234
3235 2000-11-14 Richard Henderson <rth@redhat.com>
3236
3237 * typeck.c (c_sizeof): Be strict about casting result value
3238 back to c_size_type_node.
3239 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
3240
3241 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
3242
3243 * typeck.c (build_unary_op): Use boolean_increment from
3244 c-common.c, moving the relevant code there.
3245
3246 2000-11-11 Jason Merrill <jason@redhat.com>
3247
3248 * typeck.c (mark_addressable): Don't call put_var_into_stack.
3249
3250 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
3251 in inlines.
3252
3253 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3254
3255 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
3256 * lex.c (copy_lang_decl): Likewise.
3257
3258 2000-11-09 Mark Mitchell <mark@codesourcery.com>
3259
3260 * dump.c (cp_dump_tree): Don't dump function bodies here.
3261
3262 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
3263 (dump.o): Update dependency list.
3264 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
3265 (flag_dump_translation_unit): Likewise.
3266 (CP_TYPE_QUALS): Adjust definition.
3267 (DECL_C_BIT_FIELD): Remove.
3268 (SET_DECL_C_BIT_FIELD): Likewise.
3269 (CLEAR_DECL_C_BIT_FIELD): Likewise.
3270 (add_maybe_template): Likewise.
3271 (strip_array_types): Likewise.
3272 (dump_node_to_file): Likewise.
3273 (cp_dump_tree): New function.
3274 * decl.c (init_decl_processing): Set lang_dump_tree.
3275 * decl2.c (flag_dump_translation_unit): Remove.
3276 * dump.c: Move most of it to ../c-dump.c.
3277 (cp_dump_tree): New function.
3278 * pt.c (add_maybe_template): Remove.
3279 * typeck.c (strip_array_types): Likewise.
3280
3281 2000-11-07 Eric Christopher <echristo@redhat.com>
3282
3283 * decl.c (init_decl_processing): Change definition of
3284 __wchar_t to wchar_t. Remove artificial declaration of
3285 wchar_t.
3286 * lex.c: Change instances of __wchar_t to wchar_t.
3287
3288 2000-11-09 Nathan Sidwell <nathan@codesourcery.com>
3289
3290 * lex.c (do_identifier): Don't lookup_name for operators.
3291 * parse.y (operator): Save looking_for_typename.
3292 (unoperator): Restore it.
3293 * spew.c (frob_opname): Use nth_token for lookahead.
3294
3295 2000-11-08 Nathan Sidwell <nathan@codesourcery.com>
3296
3297 * decl.c (grok_op_properties): Always use coerce_new_type and
3298 coerce_delete_type.
3299 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
3300 exception specification. Tidy up.
3301 (coerce_delete_type): Preserve exception specification. Tidy up.
3302
3303 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
3304
3305 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
3306 (push_binding_level), error.c (cp_tree_printer), pt.c
3307 (process_partial_specialization, tsubst_template_arg_vector),
3308 search.c (lookup_member): Use memset () instead of bzero ().
3309
3310 2000-11-07 Nathan Sidwell <nathan@codesourcery.com>
3311
3312 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
3313
3314 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
3315
3316 * Make-lang.in (c++.distdir): Remove.
3317
3318 2000-11-04 Mark Mitchell <mark@codesourcery.com>
3319
3320 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
3321 declarations from different namespaces to be combined.
3322
3323 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
3324
3325 * decl.c: Include tm_p.h.
3326
3327 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
3328
3329 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
3330
3331 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
3332
3333 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
3334 (build_overload_value), repo.c (open_repo_file), xref.c
3335 (open_xref_file): Use strchr () and strrchr () instead of index ()
3336 and rindex ().
3337
3338 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
3339
3340 * call.c (build_over_call): Call fold on the CALL_EXPR.
3341
3342 2000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
3343
3344 * error.c (dump_template_decl): Separate template hearders with
3345 space not comma.
3346
3347 2000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
3348
3349 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
3350 TS_* flags with corresponding TFF_*. Adjust prototypes of
3351 functions (which used to take a tree_string_flags) to take an int.
3352
3353 * cp-tree.h (enum tree_string_flags): Remove
3354 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
3355 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
3356 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
3357 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
3358 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
3359 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
3360 (type_as_string, decl_as_string, expr_as_string,
3361 context_as_string): Adjust prototype.
3362
3363 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
3364 instead of TS_PLAIN.
3365
3366 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
3367 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
3368 plain `0'.
3369
3370 2000-10-30 Mark Mitchell <mark@codesourcery.com>
3371
3372 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
3373 (linkage_kind): New enumeration.
3374 (decl_linkage): New function.
3375 * decl2.c (comdat_linkage): Extend comment.
3376 * error.c (dump_function_decl): Print the arguments used to
3377 instantiate a template, even when not printing the type of the
3378 function.
3379 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
3380 not TREE_PUBLIC, to test for external linkage.
3381 * tree.c (decl_linkage): New function.
3382
3383 2000-10-28 Mark Mitchell <mark@codesourcery.com>
3384
3385 * pt.c (instantiate_decl): Always instantiate static data members
3386 initialized in-class.
3387
3388 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
3389
3390 * Make-lang.in: Move all build rules here from Makefile.in,
3391 adapt to new context. Wrap all rules that change the current
3392 directory in parentheses. Expunge all references to $(P).
3393 When one command depends on another and they're run all at
3394 once, use && to separate them, not ;. Add OUTPUT_OPTION to
3395 all object-file generation rules. Delete obsolete variables.
3396
3397 * Makefile.in: Delete.
3398 * config-lang.in: Delete outputs= line.
3399
3400 2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
3401
3402 * error.c (dump_function_decl): Print no space between
3403 `ptr-operator' the `type-specifier' of the return type.
3404 (dump_type_prefix): Make sure we put space at the appropriate
3405 place.
3406
3407 2000-10-23 Jason Merrill <jason@redhat.com>
3408
3409 * call.c (equal_functions): Also call decls_match for extern "C" fns.
3410
3411 2000-10-22 Jason Merrill <jason@redhat.com>
3412
3413 * call.c (build_conditional_expr): Use ocp_convert to force
3414 rvalue conversion.
3415
3416 2000-10-22 Mark Mitchell <mark@codesourcery.com>
3417
3418 * call.c (standard_conversion): Use RVALUE_CONVs for all
3419 expressions that satisfy lvalue_p, not just those that satisfy
3420 real_lvalue_p.
3421
3422 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
3423
3424 * typeck.c (c_sizeof): Return an expression of `size_t' type,
3425 not one with TYPE_IS_SIZETYPE set.
3426 (dubious_conversion_warnings): Remove special-case code.
3427
3428 2000-10-21 Geoffrey Keating <geoffk@cygnus.com>
3429
3430 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
3431 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
3432 (dump_type_prefix): Print vector-of-int as 'int vector'.
3433 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
3434 * tree.c (walk_tree): Handle VECTOR_TYPE.
3435
3436 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
3437
3438 2000-10-21 Jason Merrill <jason@redhat.com>
3439
3440 * parse.y (operator): Set got_object from got_scope.
3441 Set looking_for_typename.
3442 * decl.c (lookup_name_real): Clear val after setting from_obj.
3443 Reorganize diagnostic.
3444
3445 2000-10-20 Jason Merrill <jason@redhat.com>
3446
3447 * tree.c (walk_tree): Don't walk into default args.
3448
3449 * error.c (dump_expr): Use host_integerp.
3450
3451 2000-10-20 David Edelsohn <edelsohn@gnu.org>
3452
3453 * typeck2.c (abstract_virtuals_error): Use "because" instead of
3454 "since" in error message.
3455
3456 Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3457
3458 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
3459
3460 2000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
3461
3462 * decl.c (revert_static_member_fn): Fixed typo.
3463
3464 2000-10-19 Mark Mitchell <mark@codesourcery.com>
3465
3466 * class.c (subobject_offset_fn): New type.
3467 (dfs_record_base_offsets): Remove.
3468 (record_base_offsets): Likewise.
3469 (dfs_search_base_offsets): Likewise.
3470 (record_subobject_offset): New function.
3471 (check_subobject_offset): Likewise.
3472 (walk_subobject_offsets): Likewise.
3473 (record_subobject_offsets): Likewise.
3474 (layout_conflict_p): Reimplement.
3475 (layout_nonempty_base_or_field): Correct handling of type
3476 conflicts during layout.
3477 (layout_empty_base): Likewise.
3478 (build_base_field): Adjust to handle new representation of empty
3479 base offset table.
3480 (build_base_fields): Likewise.
3481 (layout_virtual_bases): Likewise.
3482 (splay_tree_compare_integer_csts): New function.
3483 (layout_class_type): Use a splay_tree, rather than a varray, to
3484 represent the offsets of empty bases.
3485
3486 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
3487 * decl.c (select_decl): Don't return declarations that are
3488 DECL_ANTICIPATED.
3489
3490 2000-10-18 Mark Mitchell <mark@codesourcery.com>
3491
3492 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
3493 (fake_std_node): New macro.
3494 * decl.c (in_std): Rename to ...
3495 (in_fake_std): ... this.
3496 (flag_no_builtin): Remove.
3497 (flag_no_nonansi_builtin): Likewise.
3498 (walk_namespaces_r): Use fake_std_node.
3499 (push_namespace): Use std_identifier.
3500 (pop_namespace): Use in_fake_std.
3501 (lookup_name_real): Use fake_std_node.
3502 (init_decl_processing): When -fhonor-std, create the `std'
3503 namespace. Don't create a dummy fake_std_node in that case.
3504 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
3505 (builtin_function): Put builtins whose names don't begin
3506 with `_' in the std namespace.
3507 * decl2.c (flag_no_builtin): Remove.
3508 (flag_no_nonansi_builtin): Likewise.
3509 (set_decl_namespace): Use fake_std_node.
3510 (validate_nonmember_using_decl): Likewise.
3511 (do_using_directive): Likewise.
3512 (handle_class_head): Likewise.
3513 * dump.c (dequeue_and_dump): Likewise.
3514 * except.c (init_exception_processing): Use std_identifier.
3515 * init.c (build_member_call): Use fake_std_node.
3516 * rtti.c (init_rtti_processing): Use std_identifier.
3517
3518 2000-10-17 Mark Mitchell <mark@codesourcery.com>
3519
3520 * cp-tree.h (back_end_hook): Remove declaration.
3521 * decl2.c (back_end_hook): Remove definition.
3522
3523 * dump.c (dequeue_and_dump): Dump TREE_USED.
3524
3525 Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
3526
3527 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
3528
3529 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
3530
3531 * decl.c (WINT_TYPE): Define.
3532 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
3533 c_size_type_node, signed_size_type_node and wint_type_node.
3534
3535 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
3536
3537 * decl2.c (warn_missing_format_attribute): New variable.
3538 (lang_decode_option): Decode -Wmissing-format-attribute.
3539
3540 2000-10-16 Mark Mitchell <mark@codesourcery.com>
3541
3542 * typeck.c (qualify_type): Remove.
3543 (composite_pointer_type): Fix handling of conversions to `cv void*'.
3544
3545 2000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3546
3547 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
3548
3549 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3550
3551 * Makefile.in (parse.c, parse.h): Create atomically.
3552
3553 2000-10-12 Mark Mitchell <mark@codesourcery.com>
3554
3555 * class.c (current_obstack): Remove.
3556 * decl.c (ggc_p): Remove.
3557 (start_decl): Don't use decl_tree_cons.
3558 (grokdeclarator): Don't use build_decl_list.
3559 (start_function): Don't use decl_tree_cons.
3560 (finish_function): Don't mess with obstacks.
3561 * decl2.c (grok_x_components): Don't use build_decl_list.
3562 * lex.c (make_call_declarator): Don't call decl_tree_cons.
3563 (implicitly_declare_fn): Don't call build_decl_list.
3564 * parse.y (frob_specs): Don't call build_decl_list or
3565 decl_tree_cons.
3566 (expr_or_declarator_intern): Don't call decl_tree_cons.
3567 (primary): Don't call build_decl_list.
3568 (fcast_or_absdcl): Likewise.
3569 (typed_declspecs): Don't call decl_tree_cons.
3570 (reserved_declspecs): Don't call build_decl_list.
3571 (declmods): Likewise.
3572 (reserved_typespecquals): Likewise.
3573 (aggr): Likewise.
3574 (new_type_id): Likewise.
3575 (cv_qualifiers): Likewise.
3576 (after_type_declarator_intern): Likewise.
3577 (notype_declarator_intern): Likewise.
3578 (absdcl_intern): Likewise.
3579 (named_parm): Likewise.
3580 * pt.c (most_specialized_class): Likewise.
3581 * repo.c (temporary_obstack): Make it a structure, not a pointer.
3582 (init_repo): Initialize it.
3583 * search.c (current_obstack): Remove.
3584 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
3585
3586 2000-10-09 Richard Henderson <rth@cygnus.com>
3587
3588 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
3589 (c++ language support bits for libgcc): Remove.
3590 (c++.clean): Remove cplib2.txt cleanup.
3591 * config-lang.in (headers, lib2funcs): Remove.
3592
3593 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
3594 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
3595 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
3596 * inc/new.h, inc/typeinfo: Remove files.
3597
3598 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
3599
3600 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
3601 defined.
3602 (init_decl_processing): Initialize intmax_type_node and
3603 uintmax_type_node.
3604
3605 2000-10-06 Richard Henderson <rth@cygnus.com>
3606
3607 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
3608 (original_result_rtx): Remove.
3609 * decl.c (save_function_data): Don't clear x_result_rtx.
3610 (mark_lang_function): Don't mark it either.
3611 * expr.c (fixup_result_decl): Remove.
3612 * semantics.c (genrtl_named_return_value): Frob the return decl
3613 before calling emit_local_var.
3614 (genrtl_finish_function): Don't call fixup_result_decl.
3615 Always emit the jump to return_label.
3616
3617 2000-10-06 Nathan Sidwell <nathan@codesourcery.com>
3618
3619 * pt.c (lookup_template_class): Set current access for enum.
3620 (tsubst_enum): Set file & line for enum decl.
3621
3622 * spew.c (yylex): Remove unused variable.
3623
3624 2000-10-05 Richard Henderson <rth@cygnus.com>
3625
3626 * semantics.c (genrtl_finish_function): Don't init or check
3627 can_reach_end; remove noreturn and return value checks.
3628
3629 2000-10-05 Tom Tromey <tromey@cygnus.com>
3630
3631 * init.c (build_java_class_ref): Use `build_static_name' with a
3632 suffix, not a prefix, to build the class object's name.
3633
3634 2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
3635
3636 * cp-tree.h (access_kind): Fix comment typo.
3637 * decl2.c (grokfield): Fix diagnostic typo.
3638 * semantics.c (finish_template_type): Fix comment typo.
3639 (finish_qualified_object_call_expr): Likewise.
3640
3641 2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
3642
3643 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
3644 tsubsting fails.
3645
3646 2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
3647
3648 * spew.c (frob_id): New static function.
3649 (frob_opname): Use it.
3650 (yylex): Use it.
3651
3652 2000-10-01 Mark Mitchell <mark@codesourcery.com>
3653
3654 * decl.c (lang_mark_false_label_stack): Remove.
3655 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
3656
3657 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
3658
3659 * gxxint.texi: Use @email for formatting email addresses.
3660
3661 2000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
3662
3663 * error.c: Remove direct obstack manipulation. Replace with
3664 output_buffer-based formatting. Adjust calls to removed macros.
3665 (obstack_chunk_alloc, obstack_chunk_free): Remove.
3666 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
3667 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
3668
3669 2000-09-24 Mark Mitchell <mark@codesourcery.com>
3670
3671 * ir.texi: Move to ../c-tree.texi.
3672
3673 2000-09-20 Jason Merrill <jason@redhat.com>
3674
3675 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
3676
3677 2000-09-21 Andreas Jaeger <aj@suse.de>
3678
3679 * errfn.c: Move declaration of cp_printer and cp_printers to ...
3680 * cp-tree.h: ... here.
3681
3682 * error.c: Remove declaration of cp_printer.
3683
3684 2000-09-20 Mark Mitchell <mark@codesourcery.com>
3685
3686 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
3687
3688 2000-09-20 Hans-Peter Nilsson <hp@axis.com>
3689
3690 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
3691 users.
3692
3693 2000-09-18 Mark Mitchell <mark@codesourcery.com>
3694
3695 * decl.c (start_function): Robustify.
3696
3697 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3698
3699 * cp-tree.h (check_function_format): Accept a `status' parameter.
3700
3701 * call.c, typeck.c: Updates calls to `check_function_format'.
3702
3703 2000-09-17 Geoffrey Keating <geoffk@cygnus.com>
3704
3705 * decl2.c (handle_class_head): Always push some scope even
3706 in the error case.
3707
3708 2000-09-16 Mark Mitchell <mark@codesourcery.com>
3709
3710 * cp-tree.h (struct cp_language_function): Remove
3711 x_scope_stmt_stack and name_declared.
3712 (current_scope_stmt_stack): Remove.
3713 (function_name_declared_p): New macro.
3714 (struct lang_decl_flags): Use c_lang_decl as a base class.
3715 (context): Remove.
3716 (struct lang_decl): Replace saved_tree with context.
3717 (DECL_FRIEND_CONTEXT): Adjust accordingly.
3718 (SET_DECL_FRIEND_CONTEXT): Likewise.
3719 (DECL_VIRTUAL_CONTEXT): Likewise.
3720 (DECL_SAVED_TREE): Remove.
3721 (C_DECLARED_LABEL_FLAG): Likewise.
3722 (cplus_expand_expr_stmt): Don't declare.
3723 (add_decl_stmt): Likewise.
3724 (add_scope_stmt): Likewise.
3725 * decl.c (mark_stmt_tree): Remove.
3726 (case_compare): Likewise.
3727 (finish_case_label): Use c_add_case_label.
3728 (init_decl_processing): Set more language-specific hooks.
3729 (build_enumerator): Fix typo in comment.
3730 (cplus_expand_expr_stmt): Remove.
3731 (mark_lang_function): Use mark_c_language_function.
3732 (lang_mark_tree): Use c_mark_lang_decl.
3733 * decl2.c: Change order of inclusion.
3734 * except.c: Likewise.
3735 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
3736 back on c_expand_expr.
3737 * friend.c: Include expr.h.
3738 * init.c: Change order of inclusion.
3739 * Makefile.in: Update dependencies.
3740 * lex.h (free_lang_decl_chain): Remove.
3741 * optimize.c (maybe_clone_body): Use function_name_declared_p.
3742 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
3743 it doesn't exist.
3744 (instantiate_decl): Use function_name_declared_p.
3745 * semantics.c (lang_expand_expr_stmt): Remove.
3746 (set_current_function_name_declared): Likewise.
3747 (current_function_name_declared): Likewise.
3748 (begin_compound_stmt): Use function_name_declared_p.
3749 (add_decl_stmt): Remove.
3750 (setup_vtbl_ptr): Use function_name_declared_p.
3751 (add_scope_stmt): Remove.
3752 (current_scope_stmt_stack): New function.
3753 (cp_expand_stmt): Don't handle SCOPE_STMTs.
3754 (expand_body): Use function_name_declared_p.
3755 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
3756 * typeck.c: Change order of includes.
3757 (convert_sequence): Remove.
3758
3759 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
3760
3761 * lex.c (reswords): Add _Complex.
3762
3763 Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3764
3765 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
3766
3767 2000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3768
3769 * init.c (begin_init_stmts): Don't use // comments.
3770
3771 2000-09-12 Jason Merrill <jason@redhat.com>
3772
3773 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
3774 all non-extern arrays.
3775
3776 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
3777 typenames, too. Downgrade complaint to pedwarn.
3778 (xref_tag): Warn about surprising behavior of 'friend struct T'.
3779 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
3780 'class This::Inherited'.
3781
3782 2000-09-12 Mark Mitchell <mark@codesourcery.com>
3783
3784 * decl.c (finish_case_label): Given the LABEL_DECL a
3785 DECL_CONTEXT.
3786
3787 2000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
3788
3789 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
3790 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
3791 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
3792 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
3793 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
3794 New macros.
3795 (sorry_for_unsupported_tree, print_scope_operator,
3796 print_left_paren, print_right_paren, print_left_bracket,
3797 print_right_bracket, print_whitespace): Likewise.
3798 (aggr_variety): Rename to class_key_or_enum.
3799 (print_type): Rename to print_type_id.
3800 (print_type_specifier_seq, print_simple_type_specifier,
3801 print_elaborated_type_specifier,
3802 print_rest_of_abstract_declarator,
3803 print_parameter_declaration_clause, print_exception_specification,
3804 print_nested_name_specifier, print_template_id,
3805 typedef_original_name, print_template_argument_list_start,
3806 print_template_argument_list_end): New functions.
3807
3808 2000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
3809
3810 * ir.texi: Add more documentation.
3811
3812 2000-09-11 Mark Mitchell <mark@codesourcery.com>
3813
3814 * cp-tree.h (struct saved_scope): Remove x_function_parms.
3815 (current_function_parms): Don't define.
3816 (struct cp_language_function): Remove parms_stored.
3817 (current_function_just_assigned_this): Don't define.
3818 (current_function_parms_stored): Likewise.
3819 (static_ctors): Declare.
3820 (static_dtors): Likewise.
3821 (SF_EXPAND): Don't define.
3822 (expand_start_early_try_stmts): Remove declaration.
3823 (store_parm_decls): Likewise.
3824 * decl.c (static_ctors): Don't declare.
3825 (static_dtors): Likewise.
3826 (struct binding_level): Remove this_block.
3827 (poplevel): Remove dead code.
3828 (set_block): Likewise.
3829 (mark_binding_level): Don't mark this_block.
3830 (mark_saved_scope): Don't mark x_function_parms.
3831 (init_decl_processing): Don't add current_function_parms as a GC
3832 root.
3833 (check_function_type): Change prototype.
3834 (start_function): Remove RTL-generation code.
3835 (expand_start_early_try_stmts): Remove.
3836 (store_parm_decls): Give it internal linkage. Remove
3837 RTL-generation code.
3838 (finish_function): Remove RTL-generation code.
3839 * decl2.c (static_ctors): Fix formatting.
3840 (static_dtors): Likewise.
3841 * method.c (use_thunk): Don't call store_parm_decls.
3842 (synthesize_method): Likewise.
3843 * optimize.c (maybe_clone_body): Likewise.
3844 * parse.y (fn.def2): Likewise.
3845 (.set_base_init): Likewise.
3846 (nodecls): Likewise.
3847 * pt.c (instantiate_decl): Likewise.
3848 * rtti.c (synthesize_tinfo_fn): Likewise.
3849 * semantics.c (genrtl_try_block): Simplify.
3850 (expand_body): Use genrtl_start_function and
3851 genrtl_finish_function.
3852 (genrtl_start_function): New function.
3853 (genrtl_finish_function): Likewise.
3854
3855 2000-09-11 Nathan Sidwell <nathan@codesourcery.com>
3856
3857 * error.c (cp_tree_printer, case 'P'): Append break.
3858
3859 2000-09-11 Nathan Sidwell <nathan@codesourcery.com>
3860
3861 * cp-tree.h (frob_opname): Declare.
3862 * parse.y (saved_scopes): New static variable.
3863 (cp_parse_init): Adjust.
3864 (do_id): If lastiddecl is NULL, do do_identifier.
3865 (operator): Save scope information.
3866 (unoperator): New reduction. Restore scope information.
3867 (operator_name): Append unoperator. Call frob_opname.
3868 * spew.c (frob_opname): Define.
3869
3870 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
3871
3872 * decl.c, rtti.c: Include defaults.h if not already included.
3873 Don't define the *_TYPE_SIZE macros.
3874
3875 2000-09-09 Mark Mitchell <mark@codesourcery.com>
3876
3877 * cp-tree.h (push_switch): Change prototype.
3878 (check_cp_case_value): Remove declaration.
3879 (decl_constant_value): Likewise.
3880 * decl.c (struct cp_switch): Add switch_stmt and cases.
3881 (case_compare): New function.
3882 (push_switch): Set switch_stmt. Initialize cases.
3883 (pop_switch): Clean up cases.
3884 (define_case_label): Rename to ...
3885 (finish_case_label): ... this. Do semantic analysis for case
3886 labels here.
3887 (start_function): Correct comment.
3888 * decl2.c (check_cp_case_value): Remove.
3889 * expr.c (do_case): Remove.
3890 * pt.c (tsubst_expr): Adjust call to finish_case_label.
3891 * semantics.c (genrtl_do_poplevel): Remove declaration.
3892 (RECHAIN_STMTS): Remove.
3893 (finish_break_stmt): Use build_break_stmt.
3894 (finish_continue_stmt): Use build_continue_stmt.
3895 (finish_switch_cond): Adjust condition here, rater than in
3896 c_expand_start_case.
3897 (finish_case_label): Remove.
3898 * typeck.c (c_expand_return): Remove.
3899 (c_expand_start_case): Likewise.
3900
3901 2000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
3902
3903 * ir.texi: Document type nodes.
3904
3905 2000-09-06 Mark Mitchell <mark@codesourcery.com>
3906
3907 * cp-tree.h (init_cp_semantics): Declare.
3908 (genrtl_try_block): Don't declare.
3909 (genrtl_handler): Likewise.
3910 (genrtl_catch_block): Likewise.
3911 (genrtl_ctor_stmt): Likewise.
3912 (genrtl_subobject): Likewise.
3913 (genrtl_do_poplevel): Likewise.
3914 (genrtl_named_return_value): Likewise.
3915 * lex.c (init_parse): Call init_cp_semantics.
3916 * semantics.c (genrtl_try_block): Give it internal linkage.
3917 (genrtl_handler): Likewise.
3918 (genrtl_catch_block): Likewise.
3919 (genrtl_ctor_stmt): Likewise.
3920 (genrtl_subobject): Likewise.
3921 (genrtl_do_poplevel): Likewise.
3922 (genrtl_named_return_value): Likewise.
3923 (lang_expand_stmt): Rename to ...
3924 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
3925 (init_cp_semantics): Define.
3926
3927 * decl.c (initialize_local_var): Remove RTL-generating code.
3928 * semantics.c (genrtl_try_block): Fix formatting.
3929
3930 Move statement-tree facilities from C++ to C front-end.
3931 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
3932 (void_zero_node): Remove.
3933 (stmt_tree): Likewise.
3934 (scope_chain): Adjust.
3935 (language_function): Rename to cp_language_function.
3936 (cp_function_chain): Adjust.
3937 (current_stmt_tree): Remove.
3938 (last_tree): Likewise.
3939 (last_expr_type): Likewise.
3940 (struct lang_decl): Adjust.
3941 (STMT_IS_FULL_EXPR_P): Remove.
3942 (add_tree): Remove.
3943 (begin_stmt_tree): Likewise.
3944 (finish_stmt_tree): Likewise.
3945 (walk_tree_fn): Likewise.
3946 (walk_stmt_tree): Likewise.
3947 * class.c (finish_struct): Replace use of add_tree with add_stmt.
3948 * decl.c (mark_stmt_tree): Adjust type.
3949 (init_decl_processing): Don't build void_zero_node.
3950 (initialize_local_var): Adjust usage of current_stmt_tree.
3951 (finish_enum): Use add_stmt, not add_tree.
3952 (save_function_data): Adjust use of language_function.
3953 (finish_constructor_body): Use add_stmt, not add_tree.
3954 (finish_destructor_body): Likewise.
3955 (push_cp_function_context): Adjust use of language_function.
3956 (pop_cp_function_context): Likewise.
3957 (mark_lang_function): Likewise.
3958 (mark_cp_function_context): Likewise.
3959 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
3960 (build_vec_init): Likewise.
3961 * semantics.c (SET_LAST_STMT): Remove.
3962 (RECHAIN_STMTS): Don't use it.
3963 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
3964 (current_stmt_tree): Define.
3965 (add_tree): Remove.
3966 (finish_goto_stmt): Use add_stmt, not add_tree.
3967 (finish_expr_stmt): Likewise.
3968 (begin_if_stmt): Likewise.
3969 (finish_then_clause): Likewise.
3970 (begin_while_stmt): Likewise.
3971 (begin_do_stmt): Likewise.
3972 (finish_return_stmt): Likewise.
3973 (begin_for_stmt): Likewise.
3974 (finish_break_stmt): Likewise.
3975 (finish_continue_stmt): Likewise.
3976 (begin_switch_stmt): Likewise.
3977 (finish_case_label): Likewise.
3978 (begin_try_block): Likewise.
3979 (begin_function_try_block): Likewise.
3980 (begin_handler): Likewise.
3981 (begin_catch_block): Likewise.
3982 (begin_compound_stmt): Likewise.
3983 (begin_asm_stmt): Likewise.
3984 (finish_asm_stmt): Likewise.
3985 (finish_label_stmt): Likewise.
3986 (add_decl_stmt): Likewise.
3987 (finish_subobject): Likewise.
3988 (finish_decl_cleanup): Likewise.
3989 (finish_named_return_value): Likewise.
3990 (setup_vtbl_ptr): Likewise.
3991 (add_scope_stmt): Likewise.
3992 (finish_stmt_expr): Likewise.
3993 (prune_unused_decls): Remove.
3994 (begin_stmt_tree): Likewise.
3995 (finish_stmt_tree): Likewise.
3996 (prep_stmt): Adjust use of current_stmt_tree.
3997 (lang_expand_stmt): Likewise.
3998 * tree.c (statement_code_p): Remove.
3999 (cp_statement_code_p): New function.
4000 (walk_stmt_tree): Remove.
4001 (init_tree): Set lang_statement_code_p.
4002
4003 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
4004
4005 Integrated preprocessor.
4006
4007 * Make-lang.in, Makefile.in: Remove all references to input.c,
4008 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
4009 * gxx.gperf, hash.h, input.c: Delete.
4010 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
4011 initialized properly.
4012
4013 * class.c (fixup_pending_inline): Take a tree, not a
4014 struct pending_inline *. All callers changed.
4015 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
4016 RID_PROTECTED entries in ridpointers[] array here.
4017 * decl.c (duplicate_decls): Do not refer to struct
4018 pending_inline.
4019 (record_builtin_type, init_decl_processing): Use RID_MAX not
4020 CP_RID_MAX.
4021 (grokdeclarator): Use C_IS_RESERVED_WORD.
4022 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
4023 cpplib.
4024 (grok_x_components): Do not inspect pending_inlines chain.
4025
4026 * cp-tree.h (struct lang_identifier): Add rid_code entry.
4027 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
4028 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
4029 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
4030 TIME_IDENTIFIER_FILEINFO): Kill.
4031 Update prototypes.
4032 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
4033 single 32-bit word.
4034 * parse.y: Call do_pending_inlines unconditionally.
4035 reinit_parse_for_method is now snarf_method. fn.defpen is no
4036 longer necessary. Remove unnecessary <itype> annotation on
4037 SCOPE. Do not refer to end_of_file or struct pending_inline.
4038 * semantics.c (begin_inline_definitions): Call
4039 do_pending_inlines unconditionally.
4040
4041 * lex.c: Remove all code now shared with C front end.
4042 Initialize cpplib properly if USE_CPPLIB. Put reserved words
4043 into the get_identifier table. Rewrite pragma handling to
4044 work with the registry. Move code to save tokens for later
4045 processing to spew.c.
4046
4047 * spew.c: Rewrite everything in terms of token streams instead
4048 of text. Move routines here from lex.c / input.c as
4049 appropriate. GC-mark trees hanging off the pending inlines
4050 chain.
4051
4052 2000-09-06 Mark Mitchell <mark@codesourcery.com>
4053
4054 * NEWS: Mention that the named return value extension has been
4055 deprecated.
4056 * cp-tree.h (original_result_rtx): Define.
4057 (TREE_REFERENCE_EXPR): Remove.
4058 (DECL_VPARENT): Likewise.
4059 (pushdecl_nonclass_level): Likewise.
4060 (store_return_init): Likewise.
4061 (reinit_lang_specific): Likewise.
4062 (genrtl_named_return_value): Change prototype.
4063 * decl.c (original_result_rtx): Remove.
4064 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
4065 Do not generate RTL for local variables here.
4066 (store_return_init): Remove.
4067 * semantics.c (genrtl_named_return_value): Simplify. Fold in
4068 store_return_init.
4069 (finish_named_return_value): Adjust accordingly. Warn that this
4070 extension is deprecated.
4071 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
4072
4073 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
4074
4075 * pt.c (type_unification_real): Replace switch with if.
4076 (unify): Tsubst non-type parms before comparing.
4077
4078 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
4079
4080 * error.c (dump_typename): New function, broken out of ...
4081 (dump_type): ... here. Use it.
4082 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
4083
4084 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
4085
4086 * init.c (build_offset_ref): Deal with namespace scoped
4087 TEMPLATE_ID_EXPRs.
4088
4089 2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
4090
4091 * class.c (resolve_address_of_overloaded_function): Add
4092 explanation message.
4093 * decl.c (define_case_label): Reformat explanation.
4094 * decl2.c (finish_static_data_member_decl): Likewise.
4095 (grokfield): Likewise.
4096 * friend.c (do_friend): Likewise.
4097
4098 2000-09-05 Zack Weinberg <zack@wolery.cumb.org>
4099
4100 * tree.c (walk_tree): Expose tail recursion.
4101 (walk_stmt_tree): New function.
4102 * cp-tree.h: Prototype walk_stmt_tree.
4103 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
4104 the BLOCKs directly. If a BLOCK has no variables after
4105 pruning, discard it.
4106 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
4107 restore the line number.
4108
4109 2000-09-05 Mark Mitchell <mark@codesourcery.com>
4110
4111 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
4112 (pt.o): Remove dependency on HTAB_H.
4113 * cp-tree.h: Include hashtab.h.
4114 (walk_tree): Change prototype.
4115 (walk_tree_without_duplicates): New function.
4116 * decl.c (check_default_argument): Use it.
4117 * optimize.c (remap_decl): Adjust calls to walk_tree.
4118 (copy_body): Likewise.
4119 (expand_calls_inline): Likewise.
4120 (calls_setjmp_p): Use walk_tree_without_duplicates.
4121 * pt.c: Don't include hashtab.h.
4122 (for_each_template_parm): Use walk_tree_without_duplicates.
4123 * semantics.c (finish-stmt_tree): Likewise.
4124 (expand_body): Likewise.
4125 * tree.c (walk_tree): Add additional parameter.
4126 (walk_tree_without_duplicates): New function.
4127 (count_trees): Use it.
4128 (verify_stmt_tree): Adjust call to walk_tree.
4129 (find_tree): Use walk_tree_without_duplicates.
4130 (no_linkage_check): Likewise.
4131 (break_out_target_exprs): Adjust call to walk_tree.
4132 (cp_unsave): Likewise.
4133
4134 2000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4135
4136 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
4137 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
4138 * cp-tree.h (TYPE_BINFO): Adjust comment.
4139 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
4140 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
4141 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
4142 (TYPE_TEMPLATE_INFO): Likewise.
4143 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
4144 * class.c (push_nested_class): Likewise.
4145 * decl.c (lookup_name_real): Likewise.
4146 (grokdeclarator): Likewise.
4147 (grok_op_properties): Likewise.
4148 (xref_tag): Likewise.
4149 (xref_basetypes): Likewise.
4150 * decl2.c (constructor_name_full): Likewise.
4151 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
4152 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
4153 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
4154 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
4155 (dump_type_suffix): Likewise.
4156 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
4157 instead.
4158 (get_aggr_from_typedef): Likewise.
4159 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
4160 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
4161 (write_template_parm): Likewise.
4162 (write_template_template_parm): Check tree code instead of
4163 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
4164 * method.c (build_overload_nested_name): Add
4165 BOUND_TEMPLATE_TEMPLATE_PARM.
4166 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
4167 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
4168 * pt.c (convert_template_argument): Check tree code instead of
4169 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
4170 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
4171 (for_each_template_parm): Adjust comment.
4172 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
4173 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
4174 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
4175 template_args_equal to compare template template parameter cases.
4176 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
4177 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
4178 instead.
4179 * tree.c (copy_template_template_parm): Decide whether to create
4180 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
4181 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
4182 (copy_tree_r): Likewise.
4183 * typeck.c (comptypes): Likewise. Check tree code instead of
4184 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
4185
4186 2000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
4187
4188 * decl.c (finish_function): Move the code for handling functions
4189 marked with the constructor and destructor attributes inside the
4190 expand_p block.
4191
4192 2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
4193
4194 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
4195
4196 2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
4197
4198 * pt.c (lookup_template_class): Remove abort.
4199 * tree.c (get_type_decl): Allow error_mark_node.
4200
4201 2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
4202
4203 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
4204 TEMPLATE_ID_EXPRs.
4205
4206 2000-09-03 Mark Mitchell <mark@codesourcery.com>
4207
4208 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
4209 new ABI mangling.
4210
4211 2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
4212
4213 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
4214 union tag mismatch error reporting.
4215
4216 2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
4217
4218 * call.c (build_scoped_method_call): Check it is not a namespace.
4219
4220 2000-08-30 Jason Merrill <jason@redhat.com>
4221
4222 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
4223
4224 * tree.c (bot_manip): Check TREE_CONSTANT rather than
4225 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
4226 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
4227
4228 * decl.c (start_function): Always call make_function_rtl.
4229
4230 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
4231
4232 * semantics.c (prune_unused_decls): New function.
4233 (finish_stmt_tree): Call it via walk_tree.
4234
4235 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
4236
4237 * class.c (build_secondary_vtable): Constify a char *.
4238 * decl.c (init_decl_processing): Initialize function_id_node,
4239 pretty_function_id_node, and func_id_node.
4240 * input.c (struct input_source): Constify 'str'.
4241 (feed_input): Constify first argument.
4242 * mangle.c (write_identifier): Constify argument.
4243 * pt.c (mangle_class_name_for_template): Constify argument.
4244
4245 2000-08-29 Mark Mitchell <mark@codesourcery.com>
4246
4247 * typeck.c (mark_addressable): Remove code that pokes around in
4248 RTL.
4249
4250 2000-08-28 Jason Merrill <jason@redhat.com>
4251
4252 * lex.c (file_name_nondirectory): Move to toplev.c.
4253
4254 * cp-tree.h (LOCAL_CLASS_P): New macro.
4255 * class.c (finish_struct_1): Use it.
4256
4257 2000-08-27 Alex Samuel <samuel@codesourcery.com>
4258
4259 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
4260 (write_encoding): Pass another argument to write_name.
4261 (write_name): Add ignore_local_scope parameter. Fix handling of
4262 local names.
4263 (write_nested_name): Use write_unqualified_name.
4264 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
4265 (write_template_prefix): Use write_unqualified_name.
4266 (write_component): Remove.
4267 (write_local_name): Add parameter. Use direct local entity to
4268 discriminator calculation.
4269 (write_class_enum_type): Pass another argument to write_name.
4270 (write_template_template_arg): Likewise.
4271 (make_guard_variable): Likewise.
4272
4273 2000-08-27 Jason Merrill <jason@redhat.com>
4274
4275 * decl.c (pushdecl): Matching decls for local externs are found in
4276 the current level. Propagate linkage information from previous
4277 declarations.
4278
4279 2000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
4280
4281 * ir.texi (Expressions): Fix typo.
4282
4283 2000-08-25 Greg McGary <greg@mcgary.org>
4284
4285 * tree.c (init_tree): Use ARRAY_SIZE.
4286
4287 2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
4288
4289 * error.c (cp_tree_printer): Rework.
4290
4291 2000-08-25 Mark Mitchell <mark@codesourcery.com>
4292
4293 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
4294 dyn-string.o.
4295 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
4296 (cp-demangle.o): Remove target.
4297 (dyn-string.o): Likewise.
4298
4299 * decl.c (grokfndecl): Require that `main' return an `int'.
4300 * mangle.c (write_encoding): Don't mangle return types for
4301 conversion functions.
4302
4303 2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
4304
4305 * error.c (tree_formatting_info): New data type.
4306 (tree_being_formatted): New macro.
4307 (tree_formatting_flags): Likewise.
4308 (put_whitespace): Likewise.
4309 (print_tree_identifier): Likewise.
4310 (print_identifier): Likewise.
4311 (cp_tree_printer, print_function_argument_list, print_declaration,
4312 print_expression, print_function_declaration,
4313 print_function_parameter, print_type, print_cv_qualifier): New
4314 functions.
4315 (init_error): Initialize lang_printer.
4316
4317 2000-08-24 Jason Merrill <jason@redhat.com>
4318
4319 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
4320 adjustment necessary.
4321
4322 2000-08-24 Greg McGary <greg@mcgary.org>
4323
4324 * cp-tree.h (MAIN_NAME_P): Remove macro.
4325
4326 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
4327
4328 * error.c (print_instantiation_context): Don't forget to flush the
4329 buffer.
4330
4331 2000-08-23 Jason Merrill <jason@redhat.com>
4332
4333 * typeck.c (build_ptrmemfunc): Save the input pmf.
4334
4335 * method.c (process_modifiers): Use same_type_p.
4336
4337 2000-08-23 Mark Mitchell <mark@codesourcery.com>
4338
4339 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
4340 * mangle.c (write_function_type): Change prototype.
4341 (write_encoding): Don't mangle return types for
4342 constructors or destructors.
4343 (write_type): Adjust call to write_function_type.
4344 * pt.c (instantiate_template): Instantiate alternate entry points
4345 when instantiating the main function.
4346
4347 2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
4348
4349 * error.c (cp_print_error_function): Don't use embedded '\n' in
4350 output_printf.
4351
4352 2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
4353
4354 * decl.c (init_decl_processing): Remove bogus initialization.
4355 * error.c (lang_print_error_function): Restore here.
4356 (init_error): Initialize print_error_function.
4357
4358 2000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4359
4360 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
4361
4362 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
4363
4364 * Makefile.in (error.o): Depends on diagnostic.h
4365
4366 * cp-tree.h (problematic_instantiation_changed,
4367 record_last_problematic_instantiation, current_instantiation,
4368 print_instantiation_context): Declare.
4369 (maybe_print_template_context): Remove.
4370
4371 * decl.c (init_decl_processing): Set print_error_function to NULL.
4372 (lang_print_error_function): Remove, since we're using a new
4373 machinery.
4374
4375 * error.c: #include diagnostic.h
4376 (function_category): New function.
4377 (cp_diagnostic_starter): Likewise.
4378 (cp_diagnostic_finalizer): Likewise.
4379 (cp_print_error_function): Likewise.
4380 (maybe_print_instantiation_context): Likewise.
4381 (print_instantiation_full_context): Likewise.
4382 (print_instantiation_partial_context): Likewise.
4383 (print_instantiation_context): Define.
4384 (init_error): Initialize diagnostic pager and finalizer.
4385
4386 * pt.c (problematic_instantiation_changed): Define.
4387 (record_last_problematic_instantiation): Likewise.
4388 (current_instantiation): Likewise.
4389 (maybe_print_template_context): Remove.
4390 (print_template_context): Likewise.
4391 (current_tinst_level): Make static to reflect Brendan Kehoe's
4392 change of 1995-04-13.
4393 (push_tinst_level): Call print_instantiation_context.
4394
4395 2000-08-21 Nix <nix@esperi.demon.co.uk>
4396
4397 * lang-specs.h: Do not process -o or run the assembler if
4398 -fsyntax-only.
4399
4400 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
4401
4402 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
4403 variables.
4404 * decl2.c (lang_decode_option): Disable gettext attributes for
4405 -ansi.
4406
4407 2000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
4408
4409 * lex.c (lang_init_options): Default diagnostic message maximum
4410 length to 80, when line-wrapping.
4411
4412 2000-08-20 Mark Mitchell <mark@codesourcery.com>
4413
4414 * class.c (build_vtbl_initializer): Clear the entire
4415 vtbl_init_data. Start keeping track of the functions for which we
4416 have created vcall offsets here.
4417 (dfs_build_vcall_offset_vtbl_entries): Remove.
4418 (build_vcall_offset_vtbl_entries): Reimplement.
4419 (add_vcall_offset_vtbl_entries_r): New function.
4420 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
4421 computing when vcall offsets are necessary.
4422
4423 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
4424
4425 * decl.c (member_function_or_else): Use cp_error ... %T.
4426 (grokdeclarator): Likewise.
4427 (start_method): Likewise.
4428 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
4429
4430 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
4431
4432 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
4433 TYPE_DECLs.
4434
4435 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
4436
4437 * cp-tree.h (PTRMEM_OK_P): New macro.
4438 (itf_ptrmem_ok): New enumeration value.
4439 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
4440 argument. Diagnose implicit pointer to member.
4441 (instantiate_type): Don't diagnose implicit pointer to member
4442 here. Pass itf_ptrmem_ok if ok. Adjust calls to
4443 resolve_address_of_overloaded_function.
4444 * init.c (build_offset_ref): Set PTRMEM_OK_P.
4445 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
4446 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
4447 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
4448 (build_unary_op): Deal with single non-static member in
4449 microsoft-land.
4450
4451 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
4452
4453 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
4454
4455 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
4456
4457 * cp-tree.h (enum_name_string): Remove prototype.
4458 (report_case_error): Remove prototype.
4459 * cp/typeck2.c (enum_name_string): Remove.
4460 (report_case_error): Remove.
4461 * error.c (dump_expr): Deal with enum values directly.
4462 Correctly negate integer constant.
4463
4464 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
4465
4466 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
4467 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
4468 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
4469 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
4470 (__cxa_vec_new): Use __cxa_vec_new2.
4471 (__cxa_vec_delete): Use __cxa_vec_delete2.
4472
4473 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
4474
4475 * vec.cc (__cxa_vec_new): Set "C" linkage.
4476 (__cxa_vec_ctor): Likewise.
4477 (__cxa_vec_cctor): Likewise.
4478 (__cxa_vec_dtor): Likewise.
4479 (__cxa_vec_delete): Likewise.
4480 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
4481 (__cxa_vec_ctor): Likewise.
4482 (__cxa_vec_cctor): Likewise.
4483 (__cxa_vec_dtor): Likewise.
4484 (__cxa_vec_delete): Likewise.
4485
4486 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
4487
4488 * class.c (instantiate_type): Reinstate local variable
4489 deleted in previous change.
4490
4491 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
4492 itf_no_attributes.
4493
4494 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
4495
4496 * cp-tree.h (instantiate_type_flags): New enumeration.
4497 (instantiate_type): Change parameter.
4498 * class.c (instantiate_type): Adjust prototype. Adjust.
4499 * call.c (standard_conversion): Adjust instantiate_type call.
4500 (reference_binding): Likewise.
4501 (build_op_delete_call): Likewise.
4502 (convert_like_real): Likewise.
4503 * cvt.c (cp_convert_to_pointer): Likewise.
4504 (convert_to_reference): Likewise.
4505 * pt.c (convert_nontype_argument): Likewise.
4506 * typeck.c (build_binary_op): Likewise.
4507 (build_ptrmemfunc): Likewise.
4508 (convert_for_assignment): Likewise.
4509
4510 2000-08-17 Nathan Sidwell <nathan@codesourcery.com>
4511
4512 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
4513 (current_aggr): Define.
4514 * decl.c (grokdeclarator): Make sure a friend class is an
4515 elaborated type specifier.
4516 * parse.y (current_aggr): Remove static definition.
4517 (cp_parse_init): Adjust.
4518 (structsp): Clear and restore current_aggr.
4519 (component_decl_list): Clear current_aggr.
4520
4521 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
4522 aggregate tag on the typename's context.
4523
4524 * pt.c (tsubst_friend_class): Return error_mark_node, if
4525 parms becomes NULL.
4526 (instantiate_class_template): Ignore error_mark_node friend types.
4527
4528 2000-08-14 Nathan Sidwell <nathan@codesourcery.com>
4529
4530 * cvt.c (warn_ref_binding): New static function, broken out of ...
4531 (convert_to_reference): ... here. Use it.
4532
4533 2000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
4534
4535 * parse.y (template_arg): Add rule for template qualified with
4536 global scope.
4537
4538 2000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4539
4540 * decl2.c (add_function): Reorganize.
4541 (arg_assoc): Do not consider function template decls.
4542
4543 2000-08-11 Jason Merrill <jason@redhat.com>
4544
4545 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
4546 looking inside.
4547
4548 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
4549
4550 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
4551 (lookup_nested_tag): Likewise.
4552
4553 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
4554 can be produced.
4555
4556 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
4557
4558 * parse.y (named_complex_class_head_sans_basetype): Remove
4559 always true if.
4560
4561 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
4562
4563 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
4564 explicit TEMPLATE_ID_EXPR args.
4565 (build_expr_from_tree, case CALL_EXPR): Likewise.
4566
4567 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
4568
4569 * decl.c (check_tag_decl): Diagnose typename's which don't
4570 declare anything.
4571
4572 2000-08-10 Nathan Sidwell <nathan@codesourcery.com>
4573
4574 * init.c (build_aggr_init): Reject bogus array initializers
4575 early.
4576
4577 2000-08-09 Nathan Sidwell <nathan@codesourcery.com>
4578
4579 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
4580 runtime.
4581 * cp/tinfo.cc (__dynamic_cast): Likewise.
4582 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
4583
4584 2000-08-09 Nathan Sidwell <nathan@codesourcery.com>
4585
4586 * cvt.c (convert_to_pointer_force): Fix error message when
4587 attempting to cast from ambiguous base.
4588
4589 2000-08-08 Jason Merrill <jason@redhat.com>
4590
4591 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
4592 (tsubst_template_arg_vector): Likewise.
4593
4594 * decl2.c (build_anon_union_vars): Choose the largest field; don't
4595 assume that one will be as large as the union.
4596
4597 2000-08-07 Kazu Hirata <kazu@hxi.com>
4598
4599 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
4600 * decl.c (pop_labels): Likewise.
4601
4602 2000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
4603
4604 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
4605 specifications.
4606 (__pointer_to_member_type_info): Likewise.
4607 (__base_class_info): Likewise.
4608 (__class_type_info): Likewise.
4609 (__si_class_type_info): Likewise.
4610 (__vmi_class_type_info): Likewise.
4611 * tinfo.cc (__si_class_type_info::__do_find_public_src):
4612 Changed member names to match specifications.
4613 (__vmi_class_type_info::__do_find_public_src): Likewise.
4614 (__si_class_type_info::__do_dyncast): Likewise.
4615 (__vmi_class_type_info::__do_dyncast): Likewise.
4616 (__si_class_type_info::__do_upcast): Likewise.
4617 (__vmi_class_type_info::__do_upcast): Likewise.
4618 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
4619 (__pbase_type_info::__pointer_catch): Likewise.
4620 (__pointer_type_info::__pointer_catch): Likewise.
4621 (__pointer_to_member_type_info::__pointer_catch): Likewise.
4622
4623 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
4624
4625 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
4626 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
4627 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
4628
4629 2000-08-04 Mark Mitchell <mark@codesourcery.com>
4630
4631 * cp-tree.h (add_method): Change prototype.
4632 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
4633 Don't double the size of the method vector in the error case.
4634 (handle_using_decl): Adjust call to add_method.
4635 (add_implicitly_declared_members): Likewise.
4636 (clone_function_decl): Likewise.
4637 * decl2.c (check_classfn): Likewise.
4638 * semantics.c (finish_member_declaration): Likewise.
4639
4640 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
4641
4642 * decl.c (flag_isoc94): New variable.
4643
4644 2000-08-02 Jason Merrill <jason@redhat.com>
4645
4646 * pt.c (do_type_instantiation): Add complain parm; don't complain
4647 if called recursively.
4648 * cp-tree.h, parse.y: Adjust.
4649
4650 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
4651
4652 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
4653 -Wno-strict-prototypes.
4654
4655 * g++spec.c: Adjust type of second argument to
4656 lang_specific_driver, and update code as necessary.
4657
4658 * cp-tree.h: Don't prototype min_precision here.
4659 (my_friendly_assert): Cast expression to void.
4660 * semantics.c (do_poplevel): Initialize scope_stmts.
4661
4662 2000-08-02 Mark Mitchell <mark@codesourcery.com>
4663
4664 * cp-tree.h (DECL_NEEDED_P): Tweak.
4665
4666 2000-07-28 Jason Merrill <jason@redhat.com>
4667
4668 * lang-specs.h: Use %i in rule for .ii files.
4669
4670 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
4671
4672 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
4673
4674 2000-07-30 Mark Mitchell <mark@codesourcery.com>
4675
4676 Allow indirect primary bases.
4677 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
4678 primary_base.
4679 (CLASSTYPE_VFIELD_PARENT): Remove.
4680 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
4681 (BINFO_PRIMARY_BINFO): Remove.
4682 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
4683 (BINFO_VBASE_PRIMARY_P): Likewise.
4684 (BINFO_PRIMARY_BASE_OF): New macro.
4685 (BINFO_INDIRECT_PRIMARY_P): Likewise.
4686 (get_primary_binfo): New function.
4687 * decl.c (lang_mark_tree): Make lang_type::primary_base.
4688 * class.c (vcall_offset_data_s): Rename to ...
4689 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
4690 and add ctor_vtbl_p.
4691 (get_derived_offset): Use get_primary_binfo.
4692 (dfs_mark_primary_bases): Adjust handling of virtual primary
4693 bases.
4694 (mark_primary_bases): Likewise.
4695 (set_primary_base): Take a binfo, not an integer, as a
4696 representation of the primary base.
4697 (indirect_primary_base_p): Remove.
4698 (determine_primary_base): Adjust for indirect primary bases.
4699 (dfs_find_final_overrider): Fix typo in coment.
4700 (update_vtable_entry_for_fn): Use get_primary_binfo.
4701 (layout_nonempty_base_or_field): Tweak.
4702 (build_base_fields): Adjust for new primary base semantics.
4703 (dfs_propagate_binfo_offsets): Remove.
4704 (propagate_binfo_offsets): Rewrite.
4705 (dfs_set_offset_for_shared_vbases): Remove.
4706 (layout_virtual_bases): Don't use it.
4707 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
4708 ABI.
4709 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
4710 CLASSTYPE_VFIELD_PARENT.
4711 (dfs_get_primary_binfo): New function.
4712 (get_primary_binfo): Likewise.
4713 (dump_class_hierarchy_r): Tweak printing of primary bases.
4714 (build_vtbl_initializer): Fix typo in comments. Use
4715 vtbl_init_data.
4716 (build_vcall_and_vbase_vtbl_entries): Likewise.
4717 (build_vbaes_offset_vtbl_entries): Likewise.
4718 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
4719 BV_VCALL_INDEX to handle indirect primary bases.
4720 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
4721 (build_rtti_vtbl_entries): Likewise.
4722 * search.c (get_shared_vbase_if_not_primary): Tweak.
4723 (find_vbase_instance): Likewise.
4724 (binfo_for_vtable): Simplify.
4725 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
4726 (make_binfo): Make it have 11 entries.
4727
4728 2000-07-30 Alex Samuel <samuel@codesourcery.com>
4729
4730 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
4731 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
4732 ascertaining primaryness.
4733 (G): Remove template_args.
4734 (decl_is_template_id): New function.
4735 (write_encoding): Use decl_is_template_id.
4736 (write_name): Likewise. Handle type_decls. Get main variant of
4737 type decls.
4738 (write_nested_name): Likewise.
4739 (write_prefix): Likewise.
4740 (write_template_prefix): Likewise.
4741 (write_special_name_constructor): Remove defunct production from
4742 comment.
4743 (write_bare_function_type): Remove comment about absent parameter.
4744 (write_template_template_arg): Add missing grammar production to
4745 comment.
4746
4747 2000-07-27 Jason Merrill <jason@redhat.com>
4748
4749 * decl.c (duplicate_decls): If common_type produces a non-typedef
4750 type for a typedef, just use the old type.
4751
4752 2000-07-27 Mark Mitchell <mark@codesourcery.com>
4753
4754 * cp-tree.h (function_depth): Declare.
4755 (verify_stmt_tree): Likewise.
4756 (find_tree): Likewise.
4757 * decl.c (function_depth): Give it external linkage.
4758 * optimize.c (optimize_function): Increment and decrement it.
4759 * tree.c (verify_stmt_tree_r): New function.
4760 (verify_stmt_tree): Likewise.
4761 (find_tree_r): Likewise.
4762 (find_tree): Likewise.
4763
4764 2000-07-27 Jason Merrill <jason@redhat.com>
4765
4766 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
4767 TYPE_PTRMEMFUNC_P.
4768 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
4769
4770 2000-07-26 Mark Mitchell <mark@codesourcery.com>
4771
4772 * decl.c (start_cleanup_fn): Mark the function as `inline'.
4773 * decl2.c (get_guard): Call cp_finish_decl, not
4774 rest_of_decl_compilation, for local guards.
4775 * lex.c (do_identifier): Remove unused variable.
4776
4777 Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
4778
4779 * parse.y: Add missing ';'.
4780
4781 2000-07-26 Mark Mitchell <mark@codesourcery.com>
4782
4783 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
4784 of `extern "C++"'.
4785
4786 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
4787
4788 Kill strict_prototype. Backwards compatibility only for
4789 non NO_IMPLICIT_EXTERN_C systems.
4790 * cp-tree.h (flag_strict_prototype): Remove.
4791 (strict_prototype): Remove.
4792 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
4793 * decl.c (maybe_push_to_top_level): Adjust.
4794 (pop_from_top_level): Adjust.
4795 (decls_match): Only allow sloppy parm matching for ancient
4796 system headers.
4797 (init_decl_processing): Adjust.
4798 (grokdeclarator): Adjust.
4799 * decl2.c (flag_strict_prototype): Remove.
4800 (strict_prototype): Remove.
4801 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
4802 (lang_f_options): Remove "strict-prototype".
4803 (unsupported-options): Add "strict-prototype".
4804 * lex.c (do_identifier): Adjust.
4805 (do_scoped_id): Adjust.
4806 * parse.y (empty_parms): Adjust.
4807 * class.c (push_lang_context): Adjust.
4808 (pop_lang_context): Adjust.
4809 * typeck.c (comp_target_parms): Adjust.
4810
4811 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
4812
4813 * decl.c (poplevel): Deal with anonymous variables at for scope.
4814 (maybe_inject_for_scope_var): Likewise.
4815
4816 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
4817
4818 * decl.c: Remove all signal handling code, now done in toplev.c.
4819
4820 2000-07-23 Mark Mitchell <mark@codesourcery.com>
4821
4822 * decl.c (make_rtl_for_nonlocal_decl): Rework.
4823
4824 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
4825 correctly.
4826
4827 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
4828
4829 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
4830 Define my_friendly_assert and my_friendly_abort as macros
4831 which may call friendly_abort. Prototype friendly abort, not
4832 my_friendly_abort or my_friendly_assert.
4833 * decl.c (signal_catch): Report the signal caught in the error
4834 message. Call fatal directly.
4835 * typeck2.c (ack, my_friendly_assert): Delete.
4836 (my_friendly_abort): Rename to friendly_abort. Expect file,
4837 line, and function parameters. Report the abort code, then
4838 call fancy_abort. Do not mask an abort if errors have
4839 already occurred.
4840
4841 2000-07-18 Nathan Sidwell <nathan@codesourcery.com>
4842
4843 * typeck.c (comp_target_parms): Remove obsolete parameter.
4844 (comp_target_types): Adjust.
4845
4846 2000-07-17 Jason Merrill <jason@redhat.com>
4847
4848 * typeck.c (mark_addressable): Never set TREE_USED.
4849 * call.c (build_call): Don't abort on calls to library functions
4850 that have been declared normally.
4851
4852 * typeck.c (build_binary_op): Fix grammar in warning.
4853
4854 * exception.cc (__eh_free): Fix prototype.
4855
4856 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
4857
4858 * decl.c (pushdecl): Handle seeing an OVERLOAD in
4859 IDENTIFIER_NAMESPACE_VALUE.
4860
4861 2000-07-16 Mark Mitchell <mark@codesourcery.com>
4862
4863 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
4864 * method.c (use_thunk): Correct handling of vcall offsets.
4865
4866 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
4867
4868 * .cvsignore: parse.h and parse.c have no cp- prefix.
4869
4870 2000-07-13 Mark Mitchell <mark@codesourcery.com>
4871
4872 * .cvsignore: New file.
4873
4874 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
4875
4876 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
4877
4878 2000-07-12 Mark Mitchell <mark@codesourcery.com>
4879
4880 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
4881 * parse.c: Remove.
4882 * parse.h: Likewise.
4883
4884 2000-07-11 Mark Mitchell <mark@codesourcery.com>
4885
4886 * class.c (layout_class_type): Add pointers to virtual bases after
4887 base classes under the old ABI.
4888
4889 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
4890
4891 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
4892 (finish_continue_stmt): Likewise.
4893 (begin_for_stmt): Remove call to note_level_for_for.
4894 (finish_goto_stmt): Change call from build_min_nt
4895 to build_stmt.
4896 (finish_expr_stmt): Likewise.
4897 (begin_if_stmt): Likewise.
4898 (begin_while_stmt): Likewise.
4899 (finish_while_stmt): Likewise.
4900 (finish_return_stmt): Likewise.
4901 (begin_for_stmt): Likewise.
4902 (finish_for_stmt): Likewise.
4903 (finish_break_stmt): Likewise.
4904 (begin_switch_stmt): Likewise.
4905 (finish_case_label): Likewise.
4906 (genrtl_try_block): Likewise.
4907 (begin_try_block): Likewise.
4908 (begin_handler): Likewise.
4909 (begin_compound_stmt): Likewise.
4910 (finish_asm_stmt): Likewise.
4911 (finish_label_stmt): Likewise.
4912 (add_decl_stmt): Likewise.
4913 (finish_subobject): Likewise.
4914 (finish_decl_cleanup): Likewise.
4915 (finish_named_return_value): Likewise.
4916 (setup_vtbl_ptr): Likewise.
4917 (add_scope_stmt): Likewise.
4918 * decl.c (finish_constructor_body): Likewise.
4919 (finish_destructor_body): Likewise.
4920 * optimize.c (copy_body_r): Likewise.
4921 (initialize_inlined_parameters): Likewise.
4922 (declare_return_variable): Likewise.
4923 (expand_call_inline): Likewise.
4924
4925 2000-07-10 Jakub Jelinek <jakub@redhat.com>
4926
4927 * semantics.c (expand_body): Sync interface information
4928 at the end of function body expansion.
4929
4930 2000-07-09 Jason Merrill <jason@redhat.com>
4931
4932 * init.c (build_new_1): Bail early if the call to new fails.
4933
4934 * decl.c (compute_array_index_type): Check specifically for
4935 an INTEGER_CST, not just TREE_CONSTANT.
4936
4937 * decl.c (duplicate_decls): Don't call duplicate_decls on
4938 the DECL_TEMPLATE_RESULT.
4939 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
4940 codes.
4941
4942 * error.c (dump_template_bindings): Don't crash if we had an
4943 invalid argument list.
4944
4945 * typeck.c (c_expand_start_case): Do narrowing here.
4946 * semantics.c (finish_switch_cond): Not here.
4947
4948 2000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
4949
4950 * parse.y (asm_clobbers): Do string concatenation.
4951
4952 2000-07-09 Mark Mitchell <mark@codesourcery.com>
4953
4954 * decl.c (pushtag): Don't put local classes in template functions
4955 on the local_classes list.
4956
4957 2000-07-04 Scott Snyder <snyder@fnal.gov>
4958
4959 * decl2.c (get_guard): Add missing return for old ABI local
4960 variable case.
4961
4962 2000-07-09 Mark Mitchell <mark@codesourcery.com>
4963
4964 * cp-tree.h (char_type_p): New function.
4965 * decl.c (init_decl_processing): Don't initialize
4966 signed_wchar_type_node or unsigned_wchar_type_node.
4967 (complete_array_type): Handle brace-enclosed string-constants.
4968 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
4969 * tree.c (char_type_p): New function.
4970 * typeck2.c (digest_init): Use char_type_p.
4971
4972 2000-07-06 Nathan Sidwell <nathan@codesourcery.com>
4973
4974 * pt.c (tsubst): Don't layout type, if it's error_mark.
4975
4976 2000-07-06 Nathan Sidwell <nathan@codesourcery.com>
4977
4978 * pt.c (instantiate_pending_templates): Reset template level.
4979
4980 2000-07-05 Jason Merrill <jason@redhat.com>
4981
4982 * call.c (joust): Don't complain about `operator char *()' beating
4983 `operator const char *() const'.
4984
4985 2000-07-04 scott snyder <snyder@fnal.gov>
4986 Jason Merrill <jason@redhat.com>
4987
4988 * repo.c (repo_get_id): Handle the case where a class with virtual
4989 bases has a null TYPE_BINFO_VTABLE.
4990
4991 2000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
4992 Jason Merrill <jason@redhat.com>
4993
4994 * parse.y (member_init): Just pass in the type.
4995 * init.c (expand_member_init): Handle getting a type.
4996
4997 2000-07-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4998 Jason Merrill <jason@redhat.com>
4999
5000 * decl.c (finish_function): Warn if a function has no return
5001 statement.
5002 Suggested by Andrew Koenig.
5003 * typeck.c (check_return_expr): Do set current_function_returns_value
5004 if we got an error_mark_node.
5005
5006 2000-07-03 Nathan Sidwell <nathan@codesourcery.com>
5007
5008 * decl2.c (push_decl_namespace): Push the original namespace.
5009
5010 2000-07-03 Nathan Sidwell <nathan@codesourcery.com>
5011
5012 * pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
5013 * semantics.c (begin_class_definition): Clear it.
5014
5015 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
5016
5017 * cp-tree.h (genrtl_goto_stmt): Remove declaration.
5018 (genrtl_expr_stmt): Likewise.
5019 (genrtl_decl_stmt): Likewise.
5020 (genrtl_if_stmt): Likewise.
5021 (genrtl_while_stmt): Likewise.
5022 (genrtl_do_stmt): Likewise.
5023 (genrtl_return_stmt): Likewise.
5024 (genrtl_for_stmt): Likewise.
5025 (genrtl_break_stmt): Likewise.
5026 (genrtl_continue_stmt): Likewise.
5027 (genrtl_scope_stmt): Likewise.
5028 (genrtl_switch_stmt): Likewise.
5029 (genrtl_case_label): Likewise.
5030 (genrtl_begin_compound_stmt): Likewise.
5031 (genrtl_finish_compound_stmt): Likewise.
5032 (genrtl_compound_stmt): Likewise.
5033 (genrtl_asm_stmt): Likewise.
5034
5035 * init.c (begin_init_stmts): Remove call to
5036 genrtl_begin_compound_stmt.
5037 (finish_init_stmts): Remove call to genrtl_finish_compound_stmt.
5038
5039 * semantics.c (lang_expand_stmt): Changed call to
5040 genrtl_compound_stmt to ignore return value.
5041
5042 2000-07-02 Mark Mitchell <mark@codesourcery.com>
5043
5044 * mangle.c (canonicalize_for_substitution): Return the canonical
5045 variant of a type.
5046
5047 * decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a
5048 TYPE_DECL.
5049 * typeck.c (commonparms): Remove obstack manipulations.
5050
5051 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
5052
5053 * Make-lang.in (cc1plus$(exeext)): Added c-semantics.o.
5054
5055 * Makefile.in (OBJS): Added ../c-semantics.o.
5056 (OBJDEPS): Likewise.
5057
5058 * cp-tree.h (TREE_LANG_FLAG_?): Moved common documentation to
5059 ../c-common.h.
5060 (struct stmt_tree): Added comment.
5061 (current_function_name_declared): Removed.
5062 (stmts_are_full_exprs_p): Likewise.
5063 (genrtl_do_pushlevel): Likewise.
5064 (genrtl_clear_out_block): Likewise.
5065 (COMPOUND_STMT_NO_SCOPE): Moved to ../c-common.h.
5066 (DECL_ANON_UNION_ELEMS): Likewise.
5067 (emit_local_var): Likewise.
5068 (make_rtl_for_local_static): Likewise.
5069 (do_case): Likewise.
5070 (expand_stmt): Likewise.
5071 (genrtl_decl_cleanup): Likewise.
5072 (c_expand_asm_operands): Likewise.
5073 (c_expand_return): Likewise.
5074 (c_expand_start_case): Likewise.
5075
5076 * decl.c (make_rtl_for_local_static): Moved to c-semantics.c.
5077 (emit_local_var): Likewise.
5078 (initialize_local_var): Change reference to
5079 stmts_are_full_exprs_p to call to stmts_are_full_exprs_p().
5080 Change reference to stmts_are_full_exprs_p to
5081 current_stmt_tree->stmts_are_full_exprs_p.
5082 (push_cp_function_context): Likewise.
5083
5084 * expect.c (expand_throw): Change reference to
5085 stmts_are_full_exprs_p.
5086
5087 * init.c (build_aggr_init): Change reference to
5088 stmts_are_full_exprs_p.
5089 (build_vec_init): Likewise.
5090
5091 * optimize.c (maybe_clone_body): Change reference to
5092 current_function_name_declared to
5093 cp_function_chain->name_declared.
5094
5095 * pt.c (instantiate_decl): Change reference to
5096 current_function_name_declared to
5097 cp_function_chain->name_declared.
5098
5099 * semantics.c (expand_cond): Moved declaration to c-common.h.
5100 (genrtl_do_pushlevel): Moved to c-semantics.c.
5101 (genrtl_clear_out_block): Likewise.
5102 (genrtl_goto_stmt): Likewise.
5103 (genrtl_expr_stmt): Likewise.
5104 (genrtl_decl_stmt): Likewise.
5105 (gerntl_if_stmt): Likewise.
5106 (genrtl_while_stmt): Likewise.
5107 (genrtl_do_stmt): Likewise.
5108 (genrtl_return_stmt): Likewise.
5109 (genrtl_for_stmt): Likewise.
5110 (genrtl_break_stmt): Likewise.
5111 (genrtl_continue_stmt): Likewise.
5112 (genrtl_scope_stmt): Likewise.
5113 (genrtl_switch_stmt): Likewise.
5114 (genrtl_case_label): Likewise.
5115 (genrtl_begin_compound_stmt): Likewise.
5116 (genrtl_finish_compound_stmt): Likewise.
5117 (genrtl_compound_stmt): Likewise.
5118 (genrtl_asm_stmt): Likewise.
5119 (genrtl_decl_cleanup): Likewise.
5120 (expand_cond): Likewise.
5121 (expand_stmt): Renamed to ...
5122 (lang_expand_stmt): ... this.
5123 (lang_expand_expr_stmt): Initialize.
5124 (set_current_function_name_declared): Likewise.
5125 (stmts_are_full_exprs_p): Likewise.
5126 (current_function_name_declared): Likewise.
5127 (anon_aggr_type_p): Likewise.
5128 (do_poplevel): Change reference to
5129 stmts_are_full_exprs_p to call to stmts_are_full_exprs_p().
5130 Change reference to stmts_are_full_exprs_p to
5131 current_stmt_tree->stmts_are_full_exprs_p.
5132 (add_tree): Likewise.
5133 (finish_expr_stmt): Likewise.
5134 (prep_stmt): Likewise.
5135 (lang_expand_stmt): Likewise.
5136 (begin_compound_stmt): Change reference to
5137 current_function_name_declared to
5138 cp_function_chain->name_declared and call to
5139 current_function_name_declared().
5140 (setup_vtbl_ptr): Likewise.
5141 (genrtl_do_poplevel): Removed.
5142
5143 2000-06-30 Jason Merrill <jason@redhat.com>
5144
5145 * init.c (init_init_processing): Go back to aligning like
5146 double_type_node for old ABI.
5147 (get_cookie_size): Make cookie larger if we get a type that needs
5148 more alignment.
5149 (build_vec_delete): Call it.
5150
5151 * typeck.c (qualify_type_recursive): New fn.
5152 (composite_pointer_type): Use it.
5153 (build_binary_op): Use composite_pointer_type.
5154
5155 2000-06-24 Carlos O'Ryan <coryan@cs.wustl.edu>
5156 Jason Merrill <jason@redhat.com>
5157
5158 * typeck.c (check_return_expr): Don't complain about returning
5159 NULL from operator new if -fcheck-new.
5160 * cp-tree.h: Declare flag_check_new here.
5161 * init.c: Not here.
5162
5163 2000-06-28 Alex Samuel <samuel@codesourcery.com>
5164
5165 * mangle.c (find_substitution): Use same_type_p.
5166 (write_encoding): Don't check for substitutions.
5167
5168 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
5169
5170 * parse.y (expr_no_comma_rangle): New non-terminal.
5171 (template_parm): Use it for default parameter case.
5172 (template_arg): Use it.
5173 (expr_no_commas): Remove commented out undefined extensions.
5174 * Makefile.in (CONFLICTS): Adjust to 33 s/r & 48 r/r.
5175 * parse.h, parse.c: Rebuilt.
5176
5177 2000-06-30 Mark Mitchell <mark@codesourcery.com>
5178
5179 * semantics.c (genrtl_asm_stmt): Don't decay input operands here.
5180 (finish_asm_stmt): Do it here, instead.
5181
5182 * cp-tree.h (ridpointers): Don't declare.
5183 * decl.c (record_builtin_type): Use CP_RID_MAX instead of RID_MAX.
5184 (record_builtin_java_type): Likewise.
5185 (init_decl_processing): Likewise.
5186 * lex.c: Move inclusion of lex.h.
5187 (ridpointers): Don't define.
5188 (init_parse): Initialize ripdointers. Use CP_RID_MAX instead of
5189 RID_MAX.
5190 * lex.h (enum rid): Rename to ...
5191 (enum cp_rid): ... this.
5192 (ridpointers): Don't declare.
5193 * parse.y: Move inclusion of lex.h.
5194 * parse.c: Regenerated.
5195 * spew.c: Move inclusion of lex.h.
5196
5197 * cp-tree.h (struct language_function): Remove temp_name_counter.
5198 (temp_name_counter): Remove.
5199 (get_temp_name): Change prototype.
5200 (get_guard): New function.
5201 (get_guard_cond): Likewise.
5202 (set_guard): Likewise.
5203 * cvt.c (build_up_reference): Adjust call to get_temp_name.
5204 * decl.c (expand_static_init): Use get_guard and friends to
5205 implement guard variables.
5206 * decl2.c (get_temp_name): Assume that the variables created are
5207 always static.
5208 (get_sentry): Rename to ...
5209 (get_guard): ... this. Implement new ABI guard variables.
5210 (get_guard_bits): New function.
5211 (get_guard_cond): Likewise.
5212 (set_guard): Likewise.
5213 (start_static_initialization_or_destruction): Use them.
5214 (do_static_initialization): Replace sentry with guard throughout.
5215 (do_static_destruction): Likewise.
5216 * init.c (create_temporary_var): Add comment.
5217
5218 2000-06-28 Alex Samuel <samuel@codesourcery.com>
5219
5220 * mangle.c (find_substitution): Use same_type_p.
5221 (write_encoding): Don't check for substitutions.
5222
5223 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
5224
5225 * parse.y (expr_no_comma_rangle): New non-terminal.
5226 (template_parm): Use it for default parameter case.
5227 (template_arg): Use it.
5228 (expr_no_commas): Remove commented out undefined extensions.
5229 * Makefile.in (CONFLICTS): Adjust to 33 s/r & 48 r/r.
5230 * parse.h, parse.c: Rebuilt.
5231
5232 2000-06-29 Mark Mitchell <mark@codesourcery.com>
5233
5234 * cp-tree.h (flag_const_strings): Remove.
5235 (warn_parentheses): Likewise.
5236 (warn_format): Likewise.
5237 (common_type): Likewise.
5238 (default_conversion): Likewise.
5239 (build_binary_op): Likewise.
5240 (cp_build_binary_op): New macro.
5241 * call.c (build_new_op): Use cp_build_binary_op instead of
5242 build_binary_op.
5243 * class.c (build_vtable_entry_ref): Likewise.
5244 * decl.c (expand_static_init): Likewise.
5245 (compute_array_index_type): Likewise.
5246 (build_enumerator): Likewise.
5247 * decl2.c (delete_sanity): Likewise.
5248 (start_static_initialization_or_destruction): Likewise.
5249 * error.c (dump_type_suffix): Likewise.
5250 * init.c (resolve_offset_ref): Likewise.
5251 (build_new): Likewise.
5252 (build_new_1): Likewise.
5253 (build_vec_delete_1): Likewise.
5254 (build_vec_init): Likewise.
5255 (build_delete): Likewise.
5256 * rtti.c (synthesize_tinfo_fn): Likewise.
5257 (synthesize_tinfo_var): Likewise.
5258 * search.c (expand_upcast_fixups): Likewise.
5259 (fixup_all_virtual_upcast_offsets): Likewise.
5260 * typeck.c (build_array_ref): Likewise.
5261 (get_member_function_from_ptrfunc): Likewise.
5262 (build_binary_op): Add parameter.
5263 (pointer_int_sum): Use cp_build_binary_op.
5264 (pointer_diff): Likewise.
5265 (build_modify_expr): Likewise.
5266 (get_delta_difference): Likewise.
5267 (build_ptrmemfunc): Likewise.
5268
5269 2000-06-29 Nathan Sidwell <nathan@codesourcery.com>
5270
5271 * cp-tree.h (SET_DECL_ARTIFICIAL): Remove.
5272 * decl.c (create_implicit_typedef): Adjust.
5273 * decl2.c (build_artificial_parm): Adjust.
5274 * method.c (implicitly_declare_fn): Adjust.
5275 * pt.c (push_inline_template_parms_recursive): Adjust.
5276 (process_template_parm): Adjust.
5277 (overloaded_template_name): Adjust.
5278 * semantics.c (finish_template_template_parm): Adjust.
5279
5280 2000-06-28 Mark Mitchell <mark@codesourcery.com>
5281
5282 * cp-tree.h (CLEAR_BINFO_NEW_VTABLE_MARKED): Remove.
5283 * class.c (update_vtable_entry_for_fn): Correct logic for deciding
5284 where to emit thunks.
5285 (build_vtt): Adjust call to build_vtt_inits.
5286 (build_vtt_inits): Add parameter to indicate whether or not
5287 sub-VTTs for virtual bases should be included. Adjust handling of
5288 construction vtables.
5289 (get_matching_base): New function.
5290 (dfs_build_vtt_inits): Rename to ...
5291 (dfs_build_secondary_vptr_vtt_inits): Adjust handling of
5292 construction vtables.
5293 (dfs_fixup_binfo_vtbls): Likewise.
5294 (build_ctor_vtbl_groups): Build construction vtables for virtual
5295 bases, too.
5296 (accumulate_vtbl_inits): Tweak logic for deciding whether or not
5297 to build construction vtbls.
5298 (dfs_accumulate_vtbl_inits): Adjust handling of
5299 construction vtables.
5300
5301 * pt.c (tsubst, case TEMPLATE_TEMPLATE_PARM): Handle cv-qualified
5302 types correctly.
5303
5304 2000-06-27 Mark Mitchell <mark@codesourcery.com>
5305
5306 * decl.c (grokfndecl): Set DECL_CONTEXT for static functions too.
5307
5308 2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
5309
5310 * search.c (hides): Remove.
5311 (is_subobject_of_p): Add most_derived parameter. Use
5312 CANONICAL_BINFO.
5313 (lookup_field_queue_p): Adjust.
5314 (lookup_field_r): Adjust.
5315
5316 2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
5317
5318 * decl2.c (handle_class_head): Bash typedefs to the type's main
5319 decl.
5320
5321 2000-06-25 Mark Mitchell <mark@codesourcery.com>
5322
5323 * cp-tree.h (genrtl_begin_stmt_expr): Rename to ...
5324 (begin_global_stmt_expr): ... this.
5325 (genrtl_finish_stmt_expr): Rename to ...
5326 (finish_global_stmt_expr): ... this.
5327 * init.c (begin_init_stmts): Adjust calls.
5328 (finish_init_stmts): Likewise.
5329 * semantics.c (genrtl_begin_stmt_expr): Rename to ...
5330 (begin_global_stmt_expr): ... this.
5331 (genrtl_finish_stmt_expr): Rename to ...
5332 (finish_global_stmt_expr): ... this.
5333
5334 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
5335
5336 * search.c (lookup_member): Fix typo in comment.
5337
5338 2000-06-24 Jason Merrill <jason@redhat.com>
5339
5340 * decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace.
5341 (push_namespace): Set DECL_CONTEXT for a new NAMESPACE_DECL.
5342
5343 2000-06-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5344
5345 * parse.y (complex_direct_notype_declarator): Support global_scope.
5346 * Makefile.in: Adjust conflict count.
5347
5348 2000-06-23 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
5349
5350 * parse.y (template_arg): Convert TEMPLATE_DECL
5351 that is a template template paramter to
5352 TEMPLATE_TEMPLATE_PARM here.
5353
5354 * cp-tree.def (TEMPLATE_TEMPLATE_PARM): Adjust comment.
5355 * cp-tree.h (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): New macro.
5356 (copy_template_template_parm): Adjust prototype.
5357 * decl.c (grokdeclarator): Remove dead code.
5358 * pt.c (process_template_parm): Tidy.
5359 (lookup_template_class): Construct nodes in
5360 copy_template_template_parm.
5361 (tsubst): Pass TEMPLATE_DECL rather than IDENTIFIER_NODE to
5362 lookup_template_class. Use TYPE_TI_TEMPLATE.
5363 * tree.c (copy_template_template_parm): Add NEWARGS
5364 parameter.
5365 (mapcar): Adjust call to copy_template_template_parm.
5366 * typeck.c (comptypes): Use TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL.
5367 * method.c (build_template_template_parm_names): Change error
5368 code to avoid compilation warning.
5369
5370 * gxxint.texi: Document template template parameter
5371 name mangling.
5372
5373 2000-06-21 Alex Samuel <samuel@codesourcery.com>
5374
5375 * Make-lang.in (CXX_LIB2FUNCS): Add cp-demangle.o and dyn-string.o.
5376 (CXX_LIB2SRCS): Add cp-demangle.c and dyn-string.c.
5377 (cp-demangle.o): New rule.
5378 (dyn-string.o): Likewise.
5379 * inc/cxxabi.h (__cxa_demangle): New declaration.
5380
5381 2000-06-22 Mark Mitchell <mark@codesourcery.com>
5382
5383 * cp-tree.h (BV_USE_VCALL_INDEX_P): New macro.
5384 (BV_GENERATE_THUNK_WITH_VTABLE_P): Likewise.
5385 (lang_decl_flags): Add generate_with_vtable_p. Make vcall_offset
5386 a tree, not an int.
5387 (THUNK_GENERATE_WITH_VTABLE_P): New macro.
5388 (make_thunk): Change prototype.
5389 (emit_thunk): Rename to use_thunk.
5390 (mangle_thunk): Change prototype.
5391 * class.c (get_derived_offset): Simplify.
5392 (copy_virtuals): Clear BV_USE_VCALL_INDEX_P and
5393 BV_GENERATE_THUNK_WITH_VTABLE_P.
5394 (build_primary_vtable): Simplify.
5395 (add_virtual_function): Use BV_FN, rather than TREE_VALUE.
5396 (dfs_find_base): Remove.
5397 (update_vtable_entry_for_fn): Correct bug in finding the base
5398 where a virtual function was first declared. Figure out whether
5399 or not to emit a vcall-thunk with the vtables in which it appears.
5400 Correct logic for deciding whether to use an ordinary thunk, or a
5401 vcall thunk.
5402 (finish_struct_1): Remove unnecssary code.
5403 (build_vtbl_initializer): Use ssize_int for the running counter of
5404 negative indices.
5405 (build_vtbl_initializer): Only use vcall thunks where necessary.
5406 Mark thunks as needing to be emitted with their vtables, or not.
5407 (build_vbase_offset_vtbl_entries): Adjust for use of ssize_int in
5408 indices. Use size_binop.
5409 (dfs_build_vcall_offset_vtbl_entries): Don't rely on
5410 BINFO_PRIMARY_MARKED_P here. Use BV_FN consistently. Use
5411 size_binop.
5412 (build_rtti_vtbl_entries): Adjust call to build_vtable_entry.
5413 (build_vtable_entry): Mark thunks as needing to be emitted with
5414 their vtables, or not.
5415 * decl.c (lang_mark_tree): Mark the vcall_offset in a thunk.
5416 * decl2.c (mark_vtable_entries): Use use_thunk instead of
5417 emit_thunk.
5418 * dump.c (dequeue_and_dump): Remove dead code. Dump new thunk
5419 information.
5420 * error.c (dump_expr): Use BV_FN.
5421 * mangle.c (mangle_thunk): Adjust now that vcall_offset is a tree,
5422 not an int.
5423 * method.c (make_thunk): Likewise.
5424 (emit_thunk): Rename to use_thunk. Allow callers to decide
5425 whether or not to actually emit the thunk. Adjust for changes in
5426 representation of vcall offsets.
5427 * search.c (dfs_get_pure_virtuals): Use BV_FN.
5428 * semantics.c (emit_associated_thunks): New function.
5429 (expand_body): Use it.
5430 * ir.texi: Adjust decriptions of thunks.
5431
5432 2000-06-22 Jason Merrill <jason@redhat.com>
5433
5434 * pt.c (tsubst_decl, case FUNCTION_DECL): Clear DECL_SAVED_TREE.
5435 (tsubst_friend_function): Copy it here.
5436
5437 * decl.c (grok_op_properties): Fix typo.
5438
5439 * decl2.c (delete_sanity): Clarify warning, avoid failure on
5440 deleting void*.
5441
5442 * pt.c (check_explicit_specialization): Clarify error.
5443
5444 * decl.c (pushdecl): Also pull out one of the FUNCTION_DECLs from
5445 an old OVERLOAD when we're declaring a non-function.
5446 (pushdecl, destroy_local_var): Check for error_mark_node.
5447 (warn_extern_redeclared_static): Also bail early if
5448 we're a CONST_DECL.
5449 (push_overloaded_decl): Ignore an old error_mark_node.
5450
5451 2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
5452
5453 * call.c (build_x_va_arg): Check if in a template decl.
5454 * pt.c (tsubst_copy, case VA_ARG_EXPR): Use build_x_va_arg.
5455
5456 2000-06-20 Alexandre Petit-Bianco <apbianco@cygnus.com>
5457
5458 * class.c (push_lang_context): TYPE_NAME gets you to the Java
5459 types DECLs.
5460 * decl.c (check_goto): Computed gotos assumed OK.
5461
5462 2000-06-20 Jason Merrill <jason@redhat.com>
5463
5464 * pt.c (tsubst_decl, case TYPE_DECL): Fix test for TYPE_DECLs
5465 for which we don't need to look for instantiations.
5466
5467 2000-06-21 Nathan Sidwell <nathan@codesourcery.com>
5468
5469 * parse.y (program): Always call finish_translation_unit.
5470 * parse.c, parse.h: Rebuilt.
5471
5472 2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
5473
5474 * method.c: Don't include hard-reg-set.h.
5475
5476 2000-06-20 Nathan Sidwell <nathan@codesourcery.com>
5477
5478 * rtti.c (get_base_offset): Cope when vbase field is in a base.
5479
5480 2000-06-20 Nathan Sidwell <nathan@codesourcery.com>
5481
5482 * call.c (build_conditional_expr): Use VOID_TYPE_P.
5483 * cvt.c (cp_convert_to_pointer): Likewise.
5484 (convert_to_void): Likewise.
5485 * error.c (dump_expr): Likewise.
5486 * except.c (complete_ptr_ref_or_void_ptr_p): Likewise.
5487 * init.c (build_delete): Likewise.
5488 * method.c (emit_thunk): Likewise.
5489 * optmize.c (declare_return_variable): Likewise.
5490 * rtti.c (get_tinfo_decl_dynamic): Likewise.
5491 (get_typeid): Likewise.
5492 (build_dynamic_cast_1): Likewise.
5493 * typeck.c (composite_pointer_type): Likewise.
5494 (common_type): Likewise.
5495 (build_indirect_ref): Likewise.
5496 (build_binary_op): Likewise.
5497 (build_x_compound_expr): Likewise.
5498 (check_return_expr): Likewise.
5499 * typeck2.c (add_exception_specifier): Likewise.
5500
5501 * mangle.c (write_method_parms): Use direct comparison for end
5502 of parmlist.
5503
5504 2000-06-19 Benjamin Chelf <chelf@codesourcery.com>
5505
5506 * cp-tree.h (genrtl_try_block): Declare function.
5507 (genrtl_handler): Likewise.
5508 (genrtl_catch_block): Likewise.
5509 (genrtl_ctor_stmt): Likewise.
5510 (genrtl_subobject): Likewise.
5511 (genrtl_decl_cleanup): Likewise.
5512 (genrtl_do_poplevel): Likewise.
5513 (genrtl_do_pushlevel): Likewise.
5514 (genrtl_clear_out_block): Likewise.
5515 (genrtl_goto_stmt): Likewise.
5516 (genrtl_expr_stmt): Likewise.
5517 (genrtl_decl_stmt): Likewise.
5518 (genrtl_if_stmt): Likewise.
5519 (genrtl_while_stmt): Likewise.
5520 (genrtl_do_stmt): Likewise.
5521 (genrtl_return_stmt): Likewise.
5522 (genrtl_for_stmt): Likewise.
5523 (genrtl_break_stmt): Likewise.
5524 (genrtl_continue_stmt): Likewise.
5525 (genrtl_scope_stmt): Likewise.
5526 (genrtl_switch_stmt): Likewise.
5527 (genrtl_case_label): Likewise.
5528 (genrtl_begin_compound_stmt): Likewise.
5529 (genrtl_finish_compound_stmt): Likewise.
5530 (genrtl_compound_stmt): Likewise.
5531 (genrtl_asm_stmt): Likewise.
5532 (genrtl_named_return_value): Likewise.
5533 (genrtl_begin_stmt_expr): Likewise.
5534 (genrtl_finish_stmt_expr): Likewise.
5535 (finish_for_stmt): Removed first argument.
5536 (finish_switch_stmt): Likewise.
5537
5538 * semantics.c (genrtl_try_block): Define function.
5539 (genrtl_handler): Likewise.
5540 (genrtl_catch_block): Likewise.
5541 (genrtl_ctor_stmt): Likewise.
5542 (genrtl_subobject): Likewise.
5543 (genrtl_decl_cleanup): Likewise.
5544 (genrtl_do_poplevel): Likewise.
5545 (genrtl_do_pushlevel): Likewise.
5546 (genrtl_clear_out_block): Likewise.
5547 (genrtl_goto_stmt): Likewise.
5548 (genrtl_expr_stmt): Likewise.
5549 (genrtl_decl_stmt): Likewise.
5550 (genrtl_if_stmt): Likewise.
5551 (genrtl_while_stmt): Likewise.
5552 (genrtl_do_stmt): Likewise.
5553 (genrtl_return_stmt): Likewise.
5554 (genrtl_for_stmt): Likewise.
5555 (genrtl_break_stmt): Likewise.
5556 (genrtl_continue_stmt): Likewise.
5557 (genrtl_scope_stmt): Likewise.
5558 (genrtl_switch_stmt): Likewise.
5559 (genrtl_case_label): Likewise.
5560 (genrtl_begin_compound_stmt): Likewise.
5561 (genrtl_finish_compound_stmt): Likewise.
5562 (genrtl_compound_stmt): Likewise.
5563 (genrtl_asm_stmt): Likewise.
5564 (genrtl_named_return_value): Likewise.
5565 (genrtl_begin_stmt_expr): Likewise.
5566 (genrtl_finish_stmt_expr): Likewise.
5567 (finish_for_stmt): Removed first argument and generate rtl
5568 specific code.
5569 (finish_switch_stmt): Likewise.
5570 (do_poplevel): Removed generate rtl specific code.
5571 (do_pushlevel): Likewise.
5572 (add_tree): Likewise.
5573 (finish_goto_stmt): Likewise.
5574 (finish_expr_stmt): Likewise.
5575 (begin_if_stmt): Likewise.
5576 (finish_if_stmt_cond): Likewise.
5577 (finish_then_clause): Likewise.
5578 (begin_else_clause): Likewise.
5579 (finish_else_clause): Likewise.
5580 (finish_if_stmt): Likewise.
5581 (clear_out_block): Likewise.
5582 (begin_while_stmt): Likewise.
5583 (finish_while_stmt_cond): Likewise.
5584 (finish_while_stmt): Likewise.
5585 (begin_do_stmt): Likewise.
5586 (finish_do_body): Likewise.
5587 (finish_do_stmt): Likewise.
5588 (finish_return_stmt): Likewise.
5589 (begin_for_stmt): Likewise.
5590 (finish_for_init_stmt): Likewise.
5591 (finish_for_cond): Likewise.
5592 (finish_for_expr): Likewise.
5593 (finish_break_stmt): Likewise.
5594 (finish_continue_stmt): Likewise.
5595 (begin_switch_stmt): Likewise.
5596 (finish_switch_cond): Likewise.
5597 (finish_case_label): Likewise.
5598 (begin_try_block): Likewise.
5599 (begin_function_try_block): Likewise.
5600 (finish_try_block): Likewise.
5601 (finish_cleanup_try_block): Likewise.
5602 (finish_cleanup): Likewise.
5603 (finish_function_try_block): Likewise.
5604 (finish_handler_sequence): Likewise.
5605 (finish_function_handler_sequence): Likewise.
5606 (begin_handler): Likewise.
5607 (finish_handler_parms): Likewise.
5608 (begin_catch_block): Likewise.
5609 (finish_handler): Likewise.
5610 (begin_compound_stmt): Likewise.
5611 (finish_compound_stmt): Likewise.
5612 (finish_asm_stmt): Likewise.
5613 (finish_label_stmt): Likewise.
5614 (finish_label_decl): Likewise.
5615 (finish_subobject): Likewise.
5616 (finish_decl_cleanup): Likewise.
5617 (finish_named_return_value): Likewise.
5618 (begin_stmt_expr): Likewise.
5619 (finish_stmt_expr): Likewise.
5620
5621 * decl.c (initialize_local_var): Changed call to finish_expr_stmt
5622 to call genrtl_expr_stmt when appropriate.
5623
5624 * init.c (begin_init_stmts): Changed calls to begin_stmt_expr and
5625 begin_compound_expr to call genrtl_begin_stmt_expr and
5626 genrtl_begin_compound_expr when appropriate.
5627 (finish_init_stmts): Changed calls to finish_compound_expr and
5628 finish_stmt_expr to call genrtl_finish_compound_expr and
5629 genrtl_finish_stmt_expr when appropriate.
5630 (expand_default_init): Changed call to finish_expr_stmt to call
5631 genrtl_expr_stmt when appropriate.
5632 (build_vec_init): Likewise.
5633
5634 * parse.y (simple_stmt): Removed first argument from call to
5635 finish_for_stmt. Removed first argument from call to
5636 finish_switch_stmt.
5637
5638 * parse.c: Regenerated.
5639
5640 * pt.c (tsubst_expr): Removed first argument from call to
5641 finish_for_stmt. Removed first argument from call to
5642 finish_switch_stmt.
5643
5644 2000-06-16 Benjamin Chelf <chelf@codesourcery.com>
5645
5646 * cp-tree.h (enum cplus_tree_code): Changed __DUMMY to
5647 CP_DUMMY_TREE_CODE. Remove #include "c-common.def".
5648
5649 * lex.c (cplus_tree_code_type[]): Removed #include "c-common.def".
5650 (cplus_tree_code_length[]): Likewise.
5651 (cplus_tree_code_name[]): Likewise.
5652 (init_parse): Added call to add_c_tree_codes. Changed
5653 LAST_AND_UNUSED_TREE_CODE to LAST_C_TREE_CODE.
5654
5655 2000-06-16 Mark Mitchell <mark@codesourcery.com>
5656
5657 * cp-tree.h (finish_mem_initializers): Declare.
5658 (count_trees): Likewise.
5659 * parse.y (base_init): Use finish_mem_initializers.
5660 * semantics.c (finish_mem_initializers): New function.
5661
5662 * tree.c (count_trees_r): Prototype. Use DATA parameter to store
5663 the number of trees.
5664 (n_trees): Remove.
5665 (count_trees): Don't use it.
5666
5667 2000-06-15 Jason Merrill <jason@redhat.com>
5668
5669 * tree.c (count_trees): New debugging function.
5670
5671 * typeck.c (build_x_function_call): Use DECL_FUNCTION_TEMPLATE_P.
5672 * init.c (build_member_call): Pull out the name of a DECL.
5673
5674 * Makefile.in (semantics.o, pt.o): Depend on TIMEVAR_H.
5675 * semantics.c (expand_body): Push to TV_INTEGRATION here.
5676 * optimize.c (optimize_function): Not here.
5677 * pt.c (instantiate_decl): Push to TV_PARSE.
5678
5679 2000-06-15 Mark Mitchell <mark@codesourcery.com>
5680
5681 * cp-tree.h (struct language_function): Remove x_base_init_list
5682 and x_member_init_list.
5683 (current_base_init_list): Remove.
5684 (current_member_init_list): Likewise.
5685 (setup_vtbl_ptr): Change prototype.
5686 (emit_base_init): Likewise.
5687 (expand_member_init): Likewise.
5688 (reinit_parse_for_function): Remove.
5689 * decl.c (save_function_data): Don't clear x_base_init_list and
5690 x_member_init_list.
5691 (mark_language_function): Don't mark them.
5692 * init.c (perform_member_init): Tweak comment.
5693 (sort_member_init): Take the list of initializers as an argument.
5694 (sort_base_init): Likewise.
5695 (emit_base_init): Likewise.
5696 (expand_member_init): Return the initializer. Don't use global
5697 variables.
5698 * lex.c (reinit_parse_for_function): Remove.
5699 * method.c (build_template_parm_names): Correct substitution.
5700 (do_build_copy_constructor): Don't use current_member_init_list
5701 and current_base_init_list.
5702 (synthesize_method): Likewise.
5703 * parse.y (base_init): Split mem-initializers into
5704 base-initializers and field-initializers.
5705 (member_init_list): Build up the list here.
5706 (member_init): Return the initializer.
5707 (fn.depfn): Don't use reinit_parse_for_function.
5708 * parse.c: Regenerated.
5709 * pt.c (convert_nontype_argument): Don't make an ADDR_EXPR of the
5710 ERROR_MARK.
5711 (tsubst_expr): Don't use current_member_init_list
5712 and current_base_init_list.
5713 (tsubst_expr_values): Rename to ...
5714 (tsubst_initializer_list): ... this. Use convert_from_reference.
5715 * semantics.c (setup_vtbl_ptr): Don't use current_member_init_list
5716 and current_base_init_list.
5717 (begin_function_definition): Don't call reinit_parse_for_function.
5718
5719 * dump.c (dequeue_and_dump): Use TREE_VEC_LENGTH with vectors.
5720
5721 * error.c (dump_expr): Handle ADDR_EXPRs with REFERENCE_TYPE
5722 correctly.
5723
5724 * cp-tree.h (DECL_PENDING_INLINE_P): Relax checking.
5725
5726 2000-06-14 Benjamin Chelf <chelf@codesourcery.com>
5727
5728 * cp-tree.h (IF_COND): Move to c-common.h.
5729 (THEN_CLAUSE): Likewise.
5730 (ELSE_CLAUSE): Likewise.
5731 (WHILE_COND): Likewise.
5732 (WHILE_BODY): Likewise.
5733 (DO_COND): Likewise.
5734 (DO_BODY): Likewise.
5735 (RETURN_EXPR): Likewise.
5736 (EXPR_STMT_EXPR): Likewise.
5737 (FOR_INIT_STMT): Likewise.
5738 (FOR_COND): Likewise.
5739 (FOR_EXPR): Likewise.
5740 (FOR_BODY): Likewise.
5741 (SWITCH_COND): Likewise.
5742 (SWITCH_BODY): Likewise.
5743 (CASE_LOW): Likewise.
5744 (CASE_HIGH): Likewise.
5745 (GOTO_DESTINATION): Likewise.
5746 (COMPOUND_BODY): Likewise.
5747 (ASM_CV_QUAL): Likewise.
5748 (ASM_STRING): Likewise.
5749 (ASM_OUTPUTS): Likewise.
5750 (ASM_INPUTS): Likewise.
5751 (ASM_CLOBBERS): Likewise.
5752 (DECL_STMT_DECL): Likewise.
5753 (STMT_EXPR_STMT): Likewise.
5754 (LABEL_STMT_LABEL): Likewise.
5755 (SCOPE_BEGIN_P): Likewise.
5756 (SCOPE_END_P): Likewise.
5757 (SCOPE_STMT_BLOCK): Likewise.
5758 (SCOPE_NULLIFIED_P): Likewise.
5759 (SCOPE_NO_CLEANUPS_P): Likewise.
5760 (SCOPE_PARTIAL_P): Likewise.
5761 (ASM_VOLATILE_P): Likewise.
5762 (STMT_LINENO): Likewise.
5763 (STMT_LINENO_FOR_FN_P): Likewise.
5764
5765 * cp-tree.def: Removed SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
5766 ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
5767 FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
5768 CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
5769 SCOPE_STMT, CASE_LABEL, STMT_EXPR.
5770
5771 * Makefile.in (CXX_TREE_H): Added $(srcdir)/../c-common.def.
5772
5773 * Make-lang.in (CXX_SRCS): Added $(srcdir)/c-common.def.
5774 (cc1plus$(exeext)): Added $(srcdir)/c-common.def.
5775
5776 * lex.c (cplus_tree_code_type[]): Added '#include "c-common.def"'.
5777 (cplus_tree_code_length[]): Added '#include "c-common.def"'.
5778 (cplus_tree_code_name[]): Added '#include "c-common.def"'.
5779
5780 2000-06-14 Mark Mitchell <mark@codesourcery.com>
5781
5782 * cp-tree.h (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH): New macro.
5783 * class.c (dfs_find_final_overrider): Set it appropriately.
5784 (dfs_built_vtt_inits): Check BINFO_OVERRIDE_ALONG_VIRTUAL_PATH to
5785 avoid unneeded secondary vptrs.
5786
5787 2000-06-13 Jakub Jelinek <jakub@redhat.com>
5788
5789 * class.c (build_secondary_vtable): Set DECL_USER_ALIGN.
5790 (check_bitfield_decl, check_field_decl): Likewise.
5791 (build_vtbl_or_vbase_field, build_base_field): Likewise.
5792 (layout_class_type): Set DECL_USER_ALIGN resp. CLASSTYPE_USER_ALIGN.
5793 * decl.c (record_unknown_type): Set TYPE_USER_ALIGN.
5794 (xfer_tag, finish_enum): Likewise.
5795 * decl2.c (finish_builtin_type): Likewise.
5796 * init.c (init_init_processing): Likewise.
5797 * pt.c (instantiate_class_template): Likewise.
5798 * rtti.c (get_tinfo_decl, synthesize_tinfo_fn): Set DECL_USER_ALIGN.
5799 * cp-tree.h (struct lang_type): Add user_align member.
5800 (CLASSTYPE_USER_ALIGN): Define.
5801
5802 Tue Jun 13 15:48:03 2000 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5803
5804 * Make-lang.in (c++.install-common): Install g++-cross in
5805 $(gcc_tooldir)/bin as g++ and c++; g++ in $(bindir) as
5806 $(target_alias)-g++ and $(target_alias)-c++.
5807
5808 2000-06-12 Mark Mitchell <mark@codesourcery.com>
5809
5810 * class.c (vcall_offset_data_s): Add last_init and fns.
5811 (overrides): Rename to same_signature_p.
5812 (dfs_find_final_overrider): Adjust accordingly.
5813 (mark_overriders): Likewise.
5814 (warn_hidden): Likewise.
5815 (build_vtbl_initializer): Reorganize machinery for building things
5816 at negative offsets.
5817 (build_vcall_and_vbase_vtbl_entries): Likewise.
5818 (build_vbase_offset_vtbl_entries): Likewise.
5819 (dfs_build_vcall_offset_vtbl_entries): Correct order of vcall
5820 offset entries. Do not create two entries for functions with the
5821 same signature.
5822 (build_vcall_offset_vtbl_entries): Initialize vod->fns.
5823 (build_rtti_vtbl_entries): Reorganize machinery for building things
5824 at negative offsets.
5825
5826 * optimize.c (expand_call_inline): Don't recurse into the code
5827 used to initialize the parameters more than once.
5828
5829 2000-06-11 Mark Mitchell <mark@codesourcery.com>
5830
5831 * mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment.
5832 (is_std_substitution): Don't check CLASSTYPE_USE_TEMPLATE here.
5833 (find_substitution): Only use the `Sa' substitution for
5834 std::allocator, not instantiations of it.
5835 (write_template_prefix): Move comment. Only use a TREE_LIST to
5836 represent substitutions for a member template.
5837 (write_array_type): Mangle array dimensions correctly.
5838 * optimize.c (maybe_clone_body): Copy more information from the
5839 cloned function.
5840 * pt.c (regenerate_decl_from_template): Preserve DECL_USE_TEMPLATE
5841 on the regenerated declaration.
5842
5843 2000-06-11 Chip Salzenberg <chip@valinux.com>
5844 Mark Mitchell <mark@codesourcery.com>
5845
5846 * class.c (build_vtable): Clarify comment.
5847 (build_ctor_vtbl_group): Pass the most derived type to
5848 build_vtable.
5849
5850 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5851
5852 * decl2.c (compare_options): Don't needlessly cast away const-ness.
5853
5854 2000-06-10 Mark Mitchell <mark@codesourcery.com>
5855
5856 * decl.c (add_binding): Handle duplicate declarations of external
5857 variables.
5858
5859 2000-06-09 Chip Salzenberg <chip@valinux.com>
5860 Mark Mitchell <mark@codesourcery.com>
5861
5862 * mangle.c (write_number): Take an unsigned HOST_WIDE_INT as an
5863 argument.
5864 (write_signed_number): New macro.
5865 (write_unsigned_number): Likewise.
5866 (write_source_name): Use them.
5867 (write_number): Handle signed and unsigned values.
5868 (write_integer_cst): Use tree_int_cst_sgn, and use
5869 write_unsigned_number or write_signed_number as appropriate.
5870 (write_discriminator): Use write_unsigned_number or
5871 write_signed_number as appropriate.
5872 (write_template_arg_literal): Likewise.
5873 (write_array_type): Use tree_low_cst.
5874 (write_template_parm): Use write_unsigned_number or
5875 write_signed_number as appropriate.
5876 (write_substitution): Adjust call to write_number.
5877 (write_type): Get the TYPE_MAIN_VARIANT before mangling it.
5878 (write_expression): Handle non-type template arguments of
5879 reference type correctly.
5880 (mangle_thunk): Use write_signed_number.
5881
5882 2000-06-09 Chip Salzenberg <chip@valinux.com>
5883
5884 * mangle.c (find_substition): Don't mangle objects with typename
5885 substitutions (e.g. "cin" as "Si").
5886
5887 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
5888
5889 * call.c (add_candidate): Use ggc_alloc_cleared.
5890 * decl.c (lookup_label): Likewise.
5891 * lex.c (retrofit_lang_decl): Likewise.
5892
5893 2000-06-09 Jason Merrill <jason@casey.soma.redhat.com>
5894
5895 * semantics.c (expand_body): Push to TV_EXPAND.
5896 * optimize.c (optimize_function): Push to TV_INTEGRATION.
5897 * decl.c (start_function): Always call announce_function.
5898
5899 * tinfo2.cc: Just declare abort.
5900
5901 2000-06-09 Gabriel Dos Reis <gdr@codesourcery.com>
5902
5903 * lex.c (DEF_OPERATOR): Say `operator@' -not- `operator @'
5904 whenever @ is a symbolic name.
5905
5906 2000-06-08 Jakub Jelinek <jakub@redhat.com>
5907
5908 * method.c (make_thunk): Clear DECL_VTT_PARM in thunk.
5909
5910 2000-06-07 Mark Mitchell <mark@codesourcery.com>
5911
5912 * decl.c (pushdecl): Look up functions by DECL_NAME, not
5913 DECL_ASSEMBLER_NAME.
5914
5915 2000-06-06 Mark Mitchell <mark@codesourcery.com>
5916
5917 * decl2.c (c_language): Define.
5918
5919 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
5920
5921 * lex.c (lang_init_options): Tweak.
5922
5923 * decl2.c: Remove #inclusion of diagnostic.h
5924 (lang_decode_option): Move diagnostic formatting options to
5925 toplevel.
5926
5927 * lang-options.h: Remove documentation for diagnostic options.
5928
5929 * Makefile.in (lex.o): Depends upon diagnostic.h
5930
5931 2000-06-06 Mark Mitchell <mark@codesourcery.com>
5932
5933 * decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have
5934 the same DECL_RESULT, it's not a redefinition.
5935 * pt.c (tsubst_decl): Remove code to handle illegal
5936 specializations.
5937
5938 2000-06-06 Nathan Sidwell <nathan@codesourcery.com>
5939
5940 * exception.cc: (__eh_alloc, __eh_free): Moved to libgcc2.c
5941
5942 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
5943
5944 * search.c (maybe_suppress_debug_info): Don't check
5945 CLASSTYPE_INTERFACE_ONLY if CLASSTYPE_INTERFACE_KNOWN isn't set.
5946
5947 * pt.c (mark_decl_instantiated): Do SET_DECL_EXPLICIT_INSTANTIATION
5948 here if extern_p.
5949
5950 Remember instantiation context in deferred instantiations.
5951 * cp-tree.h (struct tinst_level): Remove.
5952 (TINST_DECL, TINST_LINE, TINST_FILE): New macros.
5953 * pt.c (current_tinst_level): Now a tree.
5954 (print_template_context, push_tinst_level, pop_tinst_level,
5955 tinst_for_decl): Adjust.
5956 (reopen_tinst_level): New fn.
5957 (init_pt): Register current_tinst_level as a root.
5958 (add_pending_template): Put current_tinst_level in TREE_PURPOSE
5959 of the pending templates list.
5960 (instantiate_pending_templates): Adjust. Call reopen_tinst_level.
5961 * lex.c (extract_interface_info): Adjust.
5962 * decl2.c (warn_if_unknown_interface): Adjust.
5963
5964 2000-06-05 Mark Mitchell <mark@codesourcery.com>
5965
5966 * class.c (indirect_primary_base_p): New function.
5967 (determine_primary_base): Use it.
5968
5969 2000-06-05 Nathan Sidwell <nathan@codesourcery.com>
5970
5971 Update new-abi dynamic cast algorithm.
5972 * tinfo.cc (__class_type_info::__dyncast_result): Add
5973 whole_details. Adjust constructor.
5974 (__vmi_class_type_info::__do_dyncast): Adjust for vmi_flags.
5975 Avoid unnecessary searching.
5976 (__dynamic_cast): Adjust for __dyncast_result::whole_details.
5977
5978 Mon Jun 5 06:48:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5979
5980 * decl.c (init_decl_processing): Don't call record_component_aliases.
5981 * tree.c (build_cplus_array_type_1): Likewise.
5982
5983 2000-06-04 Mark Mitchell <mark@codesourcery.com>
5984
5985 * ir.texi: Correct typo.
5986 * mangle.c (write_expression): Handle non-type template arguments
5987 with reference type.
5988 * method.c (build_overload_value): Likewise.
5989 * pt.c (convert_nontype_argument): Explicitly represent conversion
5990 to a reference with an ADDR_EXPR.
5991 (unify): Always unify arguments in left-to-right order.
5992
5993 2000-06-03 Alex Samuel <samuel@codesourcery.com>
5994 Mark Mitchell <mark@codesourcery.com>
5995
5996 * Make-lang.in (CXX_SRCS): Add mangle.c.
5997 * Makefile.in (CXX_OBJS): Add mangle.o.
5998 (mangle.o): New rule.
5999
6000 * class.c (local_classes): New variable.
6001 * class.c (get_vtable_name): Use mangle_vtable_for_type for new ABI.
6002 (get_vtt_name): Use mangle_vtt_name for new ABI.
6003 (init_class_processing): Initialize local_classes.
6004 (build_ctor_vtbl_group): Use mangle_ctor_vtbl_for_type for new ABI.
6005 * cp-tree.h (cp_tree_index): Add CPTI_STD_IDENTIFIER.
6006 (std_identifier): New macro.
6007 (DECL_VOLATILE_MEMFUNC_P): New macro.
6008 (DECL_NAMESPACE_STD_P): Likewise.
6009 (local_classes): Declare.
6010 (get_mostly_instantiated_function_type): Declare.
6011 (init_mangle): Declare.
6012 (mangle_decl): Likewise.
6013 (mangle_type_string): Likewise.
6014 (mangle_type): Likewise.
6015 (mangle_typeinfo_for_type): Likewise.
6016 (mangle_typeinfo_string_for_type): Likewise.
6017 (mangle_vtbl_for_type): Likewise.
6018 (mangle_vtt_for_type): Likewise.
6019 (mangle_ctor_vtbl_for_type): Likewise.
6020 (mangle_thunk): Likewise.
6021 (mangle_conv_op_name_for_type): Likewise.
6022 (mangle_guard_variable): Likewise.
6023 * decl.c (pushtag): Keep track of local classes.
6024 (initialize_predefined_identifiers): Initialize std_identifier.
6025 (init_decl_processing): Use std_identifier.
6026 (start_decl): Don't treat instantiations as specializations.
6027 (grokdeclarator): Likewise.
6028 (grokvardecl): Call mangle_decl for new ABI. Only set mangled
6029 name for fully-instantiated templates.
6030 * decl2.c (grokclassfn): Use set_mangled_name_for_decl for
6031 destructors with the new ABI.
6032 (finish_static_data_member_decl): Use mangle_decl under the new ABI.
6033 (grokfield): Use mangle_type for new ABI.
6034 (grokoptypename): Use mangle_conv_op_for_type for new ABI.
6035 (get_sentry): Use mangle_guard_variable for new ABI.
6036 (start_static_initialization_or_destruction): Likewise.
6037 * expr.c (extract_aggr_init): Remove.
6038 (extract_scalar_init): Likewise.
6039 (extract_init): Remove #if 0'd code.
6040 * mangle.c: New function.
6041 * method.c (build_mangled_name): Assert not flag_new_abi.
6042 (build_static_name): Likewise.
6043 (build_decl_overload_real): Likewise.
6044 (build_typename_overload): Likewise.
6045 (build_overload_with_type): Likewise.
6046 (build_overload_name): Likewise.
6047 (get_ctor_vtbl_name): Likewise.
6048 (start_squangling): Likewise.
6049 (get_id_2): Likewise.
6050 (set_mangled_name_for_decl): Call mangle_decl for new ABI.
6051 (init_method): Call init_mangle for new ABI.
6052 (make_thunk): Call mangle_thunk for new ABI.
6053 * operators.def: Correct new ABI manglings for the `%' operator.
6054 Add `::' operator.
6055 * pt.c (build_template_decl): Copy DECL_OVERLOADED_OPERATOR_P and
6056 DECL_ASSIGNMENT_OPERATOR_P to the TEMPLATE_DECL.
6057 (lookup_template_class): Call mangle_decl for new ABI.
6058 (get_mostly_instantiated_function_type): New function.
6059 (set_mangled_name_for_template_decl): Use it.
6060 (tsubst_decl): Use set_mangled_name_for_decl for destructors with
6061 the new ABI. Use mangle_conv_op_name_for_type for instantiated
6062 conversion op names.
6063 * rtti.c (tinfo_name): Call mangle_type_string for new ABI.
6064 (get_tinfo_decl): Call mangle_typeinfo_for_type for new ABI.
6065 (tinfo_base_init): Likewise. Mangle typeinfo string name with
6066 mangle_typeinfo_string_for_type.
6067
6068 2000-06-03 Mark Mitchell <mark@codesourcery.com>
6069
6070 * cp-tree.h (TMPL_ARGS_LEVEL): Clarify comment.
6071 (INNERMOST_TEMPLATE_ARGS): New macro.
6072 (innermost_args): Remove.
6073 (get_innermost_template_args): New function.
6074 * decl2.c (arg_assoc_class): Use INNERMOST_TEMPLATE_ARGS.
6075 * error.c (dump_function_decl): Be caution when using
6076 most_general_template.
6077 * method.c (build_template_parm_names): Use
6078 INNERMOST_TEMPLATE_ARGS.
6079 * pt.c (add_to_template_args): Tidy comment
6080 (get_innermost_template_args): New function.
6081 (check_explicit_specialization): Clear DECL_INITIAL for a new
6082 specialization.
6083 (process_partial_specialization): Use INNERMOST_TEMPLATE_ARGS.
6084 Tidy.
6085 (push_template_decl): Always register specializations of the most
6086 general template.
6087 (convert_template_argument): Use INNERMOST_TEMPLATE_ARGS.
6088 (coerce_template_parms): Likewise.
6089 (lookup_template_class): Likewise.
6090 (innermost_args): Remove.
6091 (tsubst_decl): Use INNERMOST_TEMPLATE_ARGS.
6092 (tsubst_decl): Handle tricky specializations. Use
6093 get_innermost_template_args.
6094 (instantiate_template): Simplify handling of partial
6095 instantiations.
6096 (get_class_bindings): Use INNERMOST_TEMPLATE_ARGS.
6097 (most_general_template): Reimplement, in a more straightforward
6098 manner.
6099 (regenerate_decl_from_template): Tweak formatting. Use
6100 TMPL_ARGS_DEPTH for clarity.
6101 (set_mangled_name_for_template_decl): Use INNERMOST_ARGS.
6102
6103 * dump.c (dequeue_and_dump): Dump information about thunks.
6104
6105 2000-06-01 Richard Henderson <rth@cygnus.com>
6106
6107 * decl.c (init_decl_processing): Set lang_get_alias_set first thing.
6108
6109 2000-06-01 Richard Henderson <rth@cygnus.com>
6110
6111 * decl2.c (unsupported_options): Fix typo, make const.
6112 (lang_decode_option): Fix bsearch argument order.
6113
6114 2000-06-01 Mark Mitchell <mark@codesourcery.com>
6115
6116 * init.c (resolve_offset_ref): Remove check for TREE_ADDRESSABLE
6117 on FIELD_DECLs.
6118
6119 Wed May 31 14:09:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6120
6121 * cp-tree.h (c_get_alias_set): Deleted.
6122 * Makefile.in (decl.o): Include ../expr.h.
6123 * decl.c (expr.h): Include.
6124 (init_decl_processing): Call record_component_aliases for arrays.
6125 (grokdeclarator): Likewise.
6126 Set TREE_ADDRESSABLE for fields that aren't bitfields.
6127 * tree.c (build_cplus_array_type_1): Call record_component_aliases.
6128
6129 2000-05-31 Mark Mitchell <mark@codesourcery.com>
6130
6131 Remove guiding declaration support.
6132 * cp/cp-tree.h (flag_dump_translation_unit): Make it const.
6133 (flag_guiding_decls): Remove.
6134 * call.c (build_user_type_conversion_1): Remove support for
6135 guiding decls.
6136 (build_new_function_call): Likewise.
6137 (build_new_op): Likewise.
6138 (build_new_method_call): Likewise.
6139 * decl.c (start_function): Likewise.
6140 * friend.c (is_friend): Likewise.
6141 (do_friend): Likewise.
6142 * decl2.c ((flag_dump_translation_unit): Make it const.
6143 (flag_guiding_decls): Remove.
6144 (unsupported_options): New variable
6145 (compare_options): New function.
6146 (lang_decode_option): Use them.
6147
6148 * decl.c (build_cp_library_fn): Set DECL_CONTEXT.
6149
6150 * method.c (mangle_expression): Adjust test for legal expression
6151 operators.
6152
6153 * pt.c (instantiate_decl): Save and restore the local
6154 specializations list.
6155
6156 2000-05-30 Jason Merrill <jason@decepticon.cygnus.com>
6157
6158 * decl.c (grok_reference_init): Pass LOOKUP_ONLYCONVERTING.
6159
6160 2000-05-30 Mark Mitchell <mark@codesourcery.com>
6161
6162 * call.c (add_template_candidate_real): Handle member template
6163 constructors for classes with virtual bases.
6164 (build_user_type_conversion_1): Use in_charge_arg_for_name.
6165 (build_new_method_call): Use DECL_NONSTATIC_MEMBER_FUNCTION_P.
6166
6167 * ir.texi: Update thunk documentation.
6168
6169 * call.c (joust): Fix handling of overloaded builtin operators.
6170
6171 2000-05-30 Zack Weinberg <zack@wolery.cumb.org>
6172
6173 * cp-tree.h (DECL_ANTICIPATED): New macro.
6174 Document new use of DECL_LANG_FLAG_7.
6175 * decl.c (builtin_function): Set DECL_ANTICIPATED on builtins
6176 in the user namespace.
6177 * lex.c (do_identifier): If the identifier's declaration has
6178 DECL_ANTICIPATED on, it has not yet been declared. But do not
6179 replace it with an ordinary implicit declaration.
6180
6181 * tinfo2.cc: Include stdlib.h.
6182
6183 2000-05-29 Mark Mitchell <mark@codesourcery.com>
6184
6185 * cp-tree.h (CLASSTYPE_ALIGN_UNIT): New macro.
6186 * class.c (layout_empty_base): Use CLASSTYPE_ALIGN_UNIT, not
6187 CLASSTYPE_ALIGN.
6188
6189 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
6190
6191 * decl2.c (lang_decode_option): Use skip_leading_substring instead
6192 of plain strncmp.
6193
6194 2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
6195
6196 * operators.def (<?): Duplicated, should have been...
6197 (>?): this. Fixed.
6198
6199 2000-05-27 Alex Samuel <samuel@codesourcery.com>
6200 Mark Mitchell <mark@codesourcery.com>
6201
6202 * cp-tree.h (ansi_opname): Make it a macro.
6203 (ansi_assopname): Likewise.
6204 (struct lang_decl_flags): Add assignment_operator_p.
6205 (struct lang_decl): Add operator_code.
6206 (DECL_VTT_PARM): Adjust.
6207 (DECL_OVERLOADED_OPERATOR_P): Return the operator_code for an
6208 overloaded operator.
6209 (SET_OVERLOADED_OPERATOR_CODE): New macro.
6210 (DECL_ASSIGNMENT_OPERATOR_P): New macro.
6211 (DECL_ARRAY_DELETE_OPERATOR_P): Adjust.
6212 (opname_tab): Remove.
6213 (assignop_tab): Likewise.
6214 (operator_name_info_t): New type.
6215 (operator_name_info): New variable.
6216 (assignment_operator_name_info): Likewise.
6217 (build_cp_library_fn): Remove declaration.
6218 (push_cp_library_fn): Likewise.
6219 (operator_name_string): Likewise.
6220 (build_decl_overload): Likewise.
6221 * call.c (print_z_candidates): Simplify.
6222 (build_object_call): Adjust usage of ansi_opname. Use
6223 DECL_OVERLOADED_OPERATOR_P.
6224 (op_error): Adjust operator name lookup.
6225 (build_conditional_expr): Adjust usage of ansi_opname.
6226 (build_new_op): Likewise.
6227 (build_op_delete_call): Likewise.
6228 (build_over_call): Likewise.
6229 (joust): Use DECL_OVERLOADED_OPERATOR_P.
6230 * decl.c (duplicate_decls): Copy operator_code.
6231 (init_decl_processing): Adjust parameters to push_cp_library_fn.
6232 (builtin_function): Adjust parameters to build_library_fn_1.
6233 (build_library_fn_1): Accept an overloaded operator code.
6234 (build_library_fn): Pass ERROR_MARK.
6235 (build_cp_library_fn): Accept an overloaded operator code.
6236 (push_cp_library_fn): Likewise.
6237 (grokfndecl): Tweak.
6238 (grokdeclarator): Simplify code to compute names of overloaded
6239 operators. Adjust use of ansi_opname.
6240 (ambi_op_p): Work on tree_codes, not identifiers.
6241 (unary_op_p): Likewise.
6242 (grok_op_properties): Likewise.
6243 (start_function): Use DECL_OVERLOADED_OPERATOR_P.
6244 (lang_mark_tree): Don't try to mark the operator_code.
6245 * decl2.c (grok_function_init): Use DECL_OVERLOADED_OPERATOR_P.
6246 * error.c (dump_decl): Remove special handling for operator
6247 names.
6248 (dump_function_name): Likewise.
6249 (dump_expr): Adjust name lookup of operators.
6250 (op_to_string): Simplify.
6251 (assop_to_string): Likewise.
6252 * init.c (build_new_1): Adjust use of ansi_opname.
6253 * lex.c (opname_tab): Remove.
6254 (assignop_tab): Likewise.
6255 (ansi_opname): Likewise.
6256 (ansi_assopname): Likewise.
6257 (operator_name_string): Likewise.
6258 (reinit_lang_specific): Likewise.
6259 (operator_name_info): New variable.
6260 (assignment_operator_name_info): Likewise.
6261 (init_operators): New function.
6262 (init_parse): Use it.
6263 (do_identifier): Adjust use of ansi_opname.
6264 * method.c (mangle_expression): Don't use ansi_opname for
6265 mangling.
6266 (build_decl_overload_real): Use DECL_OVERLOADED_OPERATOR_P.
6267 (build_decl_overload): Remove.
6268 (build_typename_overload): Use OPERATOR_TYPENAME_FORMAT directly.
6269 (do_build_assign_ref): Adjust use of ansi_opname.
6270 (synthesize_method): Likewise.
6271 (implicitly_declare_fn): Likewise.
6272 * operators.def: New file.
6273 * parse.y (operator): Adjust use of ansi_opname.
6274 * pt.c (tsubst_decl): Use IDENTIFIER_OPNAME_P.
6275 (set_mangled_name_for_template_decl): Don't play games with
6276 current_namespace.
6277 (special_function_p): Adjust use of ansi_opname.
6278 * typeck.c (check_return_expr): Likewise.
6279 * Make-lang.in (cc1plus): Depend on operators.def.
6280 * Makefile.in (lex.o): Likewise.
6281 (decl.o): Likewise.
6282
6283 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
6284
6285 * Make-lang.in (cplib2.ready): Eradicate.
6286
6287 Sat May 27 11:25:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6288
6289 * method.c (mangle_expression): Use TREE_CODE_LENGTH.
6290 * tree.c (break_out_calls, build_min_nt): Use TREE_CODE_LENGTH.
6291 (built_min, cp_tree_equal): Likewise.
6292
6293 2000-05-26 Mark Mitchell <mark@codesourcery.com>
6294
6295 * class.c (layout_nonempty_base_or_field): Replace
6296 `record_layout_info' with `record_layout_info_s'.
6297
6298 2000-05-26 Jason Merrill <jason@casey.soma.redhat.com>
6299
6300 Fix goto checking.
6301 * cp-tree.h (struct language_function): x_named_labels is now
6302 a struct named_label_list*.
6303 * decl.c (struct named_label_use_list): Renamed from...
6304 (struct named_label_list): ...this. New struct.
6305 (push_binding_level): Don't set eh_region.
6306 (note_level_for_eh): New fn.
6307 (pop_label): Take label and old value directly.
6308 (pop_labels): Adjust for new named_labels format.
6309 (lookup_label): Likewise.
6310 (poplevel): Note characteristics of a binding level containing a
6311 named label. Mess with named label lists earlier.
6312 (mark_named_label_lists): New fn.
6313 (mark_lang_function): Call it.
6314 (use_label): New fn, split out from...
6315 (make_label_decl): ...here. Don't call it.
6316 (decl_jump_unsafe, check_previous_goto, check_previous_goto_1,
6317 check_previous_gotos): New fns, split out from...
6318 (define_label): ...here.
6319 (check_switch_goto): New fn.
6320 (define_case_label): Call it.
6321 (check_goto): New fn.
6322 * semantics.c (finish_goto_stmt): Call it and use_label.
6323 (begin_compound_stmt): If we're a try block, call note_level_for_eh.
6324 (expand_stmt): Never pass 1 as DONT_JUMP_IN to expand_end_bindings.
6325
6326 2000-05-26 Mark Mitchell <mark@codesourcery.com>
6327
6328 * class.c (build_vtable_entry_ref): Correct usage of
6329 get_vtbl_decl_for_binfo.
6330
6331 * decl2.c (grokclassfn): Set DECL_LANGUAGE here.
6332 * method.c (implicitly_declare_fn): Not here.
6333
6334 2000-05-26 Nathan Sidwell <nathan@codesourcery.com>
6335
6336 * cp-tree.h (CPTI_PTMD_DESC_TYPE): Rename to ...
6337 (CPTI_PTMD_DESC_TYPE): ... here.
6338 (ptmd_desc_type_node): Rename to ...
6339 (ptm_desc_type_node): ... here.
6340 * decl.c: Likewise.
6341 * rtti.c (ptmd_initializer): Rename to ...
6342 (ptm_initializer): ... here.
6343 (sythesize_tinfo_var): Adjust. Deal with pointer to member
6344 function.
6345 (create_tinfo_types): Adjust.
6346
6347 2000-05-25 Mark Mitchell <mark@codesourcery.com>
6348
6349 Finish implementation of VTTs.
6350 * cp-tree.h (cp_tree_index): Add CPTI_VTT_PARM_TYPE and
6351 CPTI_VTT_PARM_IDENTIFIER.
6352 (vtt_parm_identifier): New macro.
6353 (vtt_parm_type): Likewise.
6354 (BINFO_SUBVTT_INDEX): Likewise.
6355 (BINFO_VPTR_INDEX): Likewise.
6356 (struct lang_decl): Add vtt_parm.
6357 (DECL_VTT_PARM): New macro.
6358 (DECL_USE_VTT_PARM): Likewise.
6359 (DECL_NEEDS_VTT_PARM_P): Likewise.
6360 (get_vtt_name): Declare.
6361 (build_artifical_parm): Likewise.
6362 (fixup_all_virtual_upcast_offsets): Likewise.
6363 (expand_indirect_vtbls_init): Remove.
6364 * call.c (build_new_method_call): Pass the vtt to subobject
6365 constructors and destructors.
6366 * class.c (get_vtt_name): Give it external linkage.
6367 (build_clone): Handle the magic VTT parameters for clones.
6368 (clone_function_decl): Fix typo in comment.
6369 (build_vtt): Keep track of the indices in the VTTs where various
6370 entities are stored.
6371 (build_vtt_inits): Likewise.
6372 (dfs_build_vtt_inits): Likewise.
6373 (build_ctor_vtbl_group): Tweak type of construction vtables.
6374 (dfs_accumulate_vtbl_inits): Build vtables for all bases, even
6375 primary bases, when building construction vtables.
6376 * decl.c (duplicate_decls): Handle DECL_VTT_PARM.
6377 (initialize_predefined_identifiers): Add vtt_parm_identifier.
6378 (init_decl_processing): Initialize vtt_parm_type.
6379 (grokfndecl): Use DECL_OVERLOADED_OPERATOR_P.
6380 (lang_mark_tree): Make vtt_parm.
6381 * decl2.c (build_artificial_parm): New function.
6382 (maybe_retrofit_in_chrg): Use it. Add VTT parameters.
6383 (grokclassfn): Use build_artificial_parm.
6384 * init.c (initialize_vtbl_ptrs): Call
6385 fixup_all_virtual_upcast_offsets directly.
6386 (perform_member_init): Use the complete subobject destructor for
6387 member cleanups.
6388 (build_vtbl_address): New function.
6389 (expand_virtual_init): Handle VTTs.
6390 * optimize (maybe_clone_body): Likewise.
6391 * search.c (fixup_all_virtual_upcast_offsets): Give it external
6392 linkage.
6393 (expand_indirect_vtbls_init): Remove.
6394 * semantics.c (setup_vtbl_ptr): Fix typos in comment.
6395 * tree.c (make_binfo): Make them bigger.
6396
6397 2000-05-25 Nathan Sidwell <nathan@codesourcery.com>
6398
6399 * inc/cxxabi.h (__pbase_type_info): Define, based on
6400 __pointer_type_info.
6401 (__pointer_type_info): Derive from __pbase_type_info. Adjust.
6402 (__pointer_to_member_type_info): Likewise.
6403 * tinfo2.cc (__pbase_type_info::~__pbase_type_info): Implement.
6404 (__pointer_to_member_type_info::__is_pointer_p): Remove.
6405 (__pointer_type_info::__do_catch): Rename to ...
6406 (__pbase_type_info::__do_catch): ... here. Adjust.
6407 (__pbase_type_info::__pointer_catch): Implement.
6408 (__pointer_type_info::__pointer_catch): Adjust.
6409 (__pointer_to_member_type_info::__pointer_catch): Adjust.
6410
6411 2000-05-25 Nathan Sidwell <nathan@codesourcery.com>
6412
6413 * tinfo.h (__user_type_info::contained_virtual_p): New
6414 predicate.
6415 * tinfo.cc (__user_type_info::do_upcast): Fix bug with diamond
6416 shaped heirarchy.
6417 (__vmi_class_type_info::__do_upcast): Fix bug with NULL pointer to
6418 diamond shaped heirarchy. Add early out for mixed diamond and
6419 duplicate shaped heirarchy.
6420
6421 2000-05-24 Mark Mitchell <mark@codesourcery.com>
6422
6423 * cp-tree.h (build_delete): Change prototype.
6424 (build_vec_delete): Likewise.
6425 * call.c (build_scoped_method_call): Use special_function_kind
6426 values to indicate the kind of destruction to be done.
6427 (build_method_call): Likewise.
6428 * decl.c (finish_destructor_body): Likewise.
6429 (maybe_build_cleanup_1): Likewise. Rename to ...
6430 (maybe_build_cleanup): ... this.
6431 * decl2.c (delete_sanity): Use special_function_kind
6432 values to indicate the kind of destruction to be done.
6433 (build_cleanup): Likewise.
6434 * init.c (perform_member_init): Likewise.
6435 (build_vec_delete_1): Likewise.
6436 (build_dtor_call): Simplify.
6437 (build_delete): Use special_function_kind
6438 values to indicate the kind of destruction to be done.
6439 (build_vbase_delete): Likewise.
6440 (build_vec_delete): Likewise.
6441
6442 * init.c (sort_member_init): Fix typo in error message generation
6443 code.
6444
6445 Mon May 15 11:46:29 2000 Donald Lindsay <dlindsay@cygnus.com>
6446
6447 * semantics.c (begin_class_definition): make the packed
6448 attribute be sensitive to the "-fpack-struct" command line flag
6449
6450 2000-05-24 Nathan Sidwell <nathan@codesourcery.com>
6451
6452 Update new-abi upcast algorithm.
6453 * inc/cxxabi.h (__class_type_info::__do_upcast): Change
6454 prototype and meaning of return value.
6455 (__si_class_type_info::__do_upcast): Likewise.
6456 (__vmi_class_type_info::__do_upcast): Likewise.
6457 * tinfo.cc (__class_type_info::__upcast_result): Replace
6458 whole2dst with part2dst. Adjust ctor.
6459 (__class_type_info::__do_upcast): Adjust call of worker function.
6460 (__class_type_info::__do_upcast): Adjust.
6461 (__si_class_type_info::__do_upcast): Adjust. Use parent's
6462 __do_upcast.
6463 (__vmi_class_type_info::__do_upcast): Likewise. Fix private
6464 virtual base in diamond heirarchy bug.
6465
6466 2000-05-23 Mark Mitchell <mark@codesourcery.com>
6467
6468 * cp-tree.h (lang_decl_flags): Rename mutable_flag to uninlinable
6469 and bitfield to tinfo_fn_p.
6470 (DECL_TINFO_FN_P): Adjust.
6471 (SET_DECL_TINFO_FN_P): Likewise.
6472 (DECL_MUTABLE_P): Likewise.
6473 (DECL_C_BIT_FIELD): Likewise.
6474 (SET_DECL_C_BIT_FIELD): Likewise.
6475 (CLEAR_DECL_C_BIT_FIELD): Likewise.
6476 (DECL_UNINLINABLE): Likewise.
6477 * class.c (alter_access): Call retrofit_lang_decl if ncessary.
6478 (handle_using_decl): Remove assertion.
6479 (build_vtbl_or_vbase_field): Use build_decl, not build_lang_decl,
6480 to build FIELD_DECLs.
6481 (build_base_field): Likewise.
6482 (layout_class_type): Likewise.
6483 * decl.c (init_decl_processing): Likewise.
6484 (build_ptrmemfunc_type): Likewise.
6485 (grokdeclarator): Likewise.
6486 * decl2.c (grok_x_components): Likewise.
6487 * except.c (call_eh_info): Likewise.
6488 * init.c (init_init_processing): Likewise.
6489 * rtti.c (expand_class_desc): Likewise.
6490 (create_pseudo_type_info): Likewise.
6491 (get_vmi_pseudo_type_info): Likewise.
6492 (create_tinfo_types): Likewise.
6493 * ptree.c (print_lang_decl): Adjust.
6494 * typeck.c (build_component_ref): Don't check DECL_LANG_SPECIFIC
6495 before checking DECL_MUTABLE_P.
6496
6497 * decl2.c (maybe_retrofit_in_chrg): Don't create in-charge
6498 parameters for template functions.
6499 * pt.c (tsubst_decl): Make sure we call maybe_retrofit_in_chrg for
6500 destructors as well as constructors.
6501
6502 2000-05-22 Mark Mitchell <mark@codesourcery.com>
6503
6504 * class.c (build_ctor_vtbl_group): Set inits.
6505 * optimize.c (maybe_clone_body): Set DECL_INLINE and
6506 DECL_THIS_INLINE appropriately for clones.
6507
6508 * cp-tree.h (IDENTIFIER_TYPENAME_P): Use a flag, not strncmp.
6509 (DECL_CONV_FN_P): Simplify.
6510 (DECL_OPERATOR): Remove.
6511 (language_to_string): Declare.
6512 * decl.c (duplicate_decls): Fix typo in comment.
6513 (grokdeclarator): Adjust use of IDENTIFIER_TYPENAME_P.
6514 (grok_op_properties): Use DECL_CONV_FN_P instead of
6515 IDENTIFIER_TYPENAME_P.
6516 * dump.c (dequeue_and_dump): Dump the language linkage of
6517 declarations.
6518 * error.c (language_to_string): Give it external linkage.
6519 * method.c (build_typename_overload): Set IDENTIFIER_TYPENAME_P.
6520 (implicitly_declare_fn): Set DECL_LANGUAGE.
6521 * pt.c (check_explicit_specialization): Use DECL_CONV_FN_P, not
6522 IDENTIFIER_TYPENAME_P.
6523 (tsubst_decl): Likewise.
6524 (tsubst_copy): Adjust use of IDENTIFIER_TYPENAME_P.
6525 * semantics.c (finish_member_declaration): Don't mark members of
6526 classes declared in an extern "C" region as extern "C".
6527
6528 2000-05-22 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6529
6530 * decl2.c (qualified_lookup_using_namespace): Look through
6531 namespace aliases.
6532
6533 * decl.c (push_using_decl): Return the old decl on namespace level.
6534
6535 2000-05-21 Mark Mitchell <mark@codesourcery.com>
6536
6537 * cp-tree.h (SET_BINFO_NEW_VTABLE_MARKED): Add sanity checks.
6538 (VTT_NAME_PREFIX): New macro.
6539 (CTOR_VTBL_NAME_PREFIX): Likewise.
6540 (get_ctor_vtbl_name): New function.
6541 * class.c (get_vtable_name): Simplify.
6542 (get_vtt_name): New function.
6543 (get_vtable_decl): Don't set IDENTIFIER_GLOBAL_VALUE.
6544 (dfs_mark_primary_bases): Update the CLASSTYPE_VBASECLASSES list
6545 when a virtual base becomes primary.
6546 (finish_struct_1): Set CLASSTYPE_VFIELDS a little earlier. Build
6547 VTTs.
6548 (finish_vtbls): Adjust calls to accumulate_vtbl_inits to pass in
6549 additional parameters.
6550 (dfs_finish_vtbls): Don't clear BINFO_NEW_VTABLE_MARKED.
6551 (initialize_array): New function.
6552 (build_vtt): Likewise.
6553 (build_vtt_inits): Likewise.
6554 (dfs_build_vtt_inits): Likewise.
6555 (dfs_fixup_binfo_vtbls): Likewise.
6556 (build_ctor_vtbl_group): Likewise.
6557 (initialize_vtable): Use initialize_array.
6558 (accumulate_vtbl_inits): Reimplement to handle construction
6559 vtables.
6560 (dfs_accumulate_vtbl_inits): Likewise.
6561 (bulid_vtbl_initializer): Adjust parameter name.
6562 * method.c (build_typename_overload): Remove #if 0'd code.
6563 (get_ctor_vtbl_name): New function.
6564 * search.c (dfs_walk_real): Use BINFO_N_BASETYPES.
6565 (init_vbase_pointers): Don't mess with the TREE_CHAIN of a binfo.
6566
6567 * cp-tree.h (struct lang_type): Remove search_slot.
6568 (CLASSTYPE_SEARCH_SLOT): Remove.
6569 (emit_base_init): Change prototype.
6570 (initialize_vtbl_ptrs): Likewise.
6571 (expand_indirect_vtbls_init): Likewise.
6572 (clear_search_slots): Remove.
6573 * decl.c (lang_mark_tree): Don't mark search_slot.
6574 * init.c (initialize_vtbl_ptrs): Simplify.
6575 (emit_base_init): Likewise.
6576 * search.c (struct vbase_info): Document decl_ptr.
6577 (convert_pointer_to_single_level): Remove.
6578 (dfs_find_vbases): Remove.
6579 (dfs_init_base_pointers): Simplify.
6580 (dfs_clear_vbase_slots): Remove.
6581 (dfs_vtable_path_unmark): New function.
6582 (init_vbase_pointers): Simplify.
6583 (expand_upcast_fixups): Don't rely on CLASSTYPE_SEARCH_SLOT.
6584 (expand_indirect_vtbls_init): Simplify. Don't call
6585 mark_all_temps_used.
6586 * semantics.c (setup_vtbl_ptr): Adjust calls to emit_base_init and
6587 initialize_vtbl_ptrs.
6588
6589 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
6590
6591 * except.c: Add static prototypes.
6592
6593 2000-05-20 H.J. Lu <hjl@gnu.org>
6594
6595 * Make-lang.in (cplib2.ready): Also depend on cc1plus$(exeext).
6596
6597 2000-05-19 Mark Mitchell <mark@codesourcery.com>
6598
6599 Don't create a separate copy of virtual bases for the
6600 CLASSTYPE_VBASECLASSES list.
6601 * cp-tree.h (CLASSTYPE_VBASECLASSES): Change documentation.
6602 (BINFO_FOR_VBASE): Remove.
6603 (CANONICAL_BINFO): Adjust.
6604 (binfo_for_vbase): New function.
6605 * class.c (build_vbase_pointer_fields): Use binfo_for_vbase
6606 instead of BINFO_FOR_VBASE.
6607 (build_vbase_pointer): Likewise.
6608 (build_secondary_vtable): Likewise.
6609 (dfs_mark_primary_bases): Likewise.
6610 (mark_primary_bases): Likewise.
6611 (layout_nonempty_base_or_field): Likewise.
6612 (dfs_set_offset_for_shared_vbases): Likewise.
6613 (dfs_set_offset_for_unshared_vbases): Likewise.
6614 (layout_virtual_bases): Likewise. Adjust for changes to the
6615 CLASSTYPE_VBASECLASSES list.
6616 (dump_class_hierarchy_r): Use binfo_for_vbase
6617 instead of BINFO_FOR_VBASE.
6618 (dump_class_hierarchy): Likewise.
6619 (finish_vtbls): Likewise.
6620 (build_vtbl_initializer): Adjust for changes to the
6621 CLASSTYPE_VBASECLASSES list.
6622 (build_vbase_offset_vtbl_entries): Use binfo_for_vbase.
6623 * decl.c (finish_destructor_body): Adjust for changes to the
6624 CLASSTYPE_VBASECLASSES list.
6625 * init.c (sort_base_init): Use binfo_for_vbase.
6626 (construct_virtual_bases): Adjust for changes to the
6627 CLASSTYPE_VBASECLASSES list.
6628 (expand_member_init): Use binfo_for_vbase.
6629 (build_vbase_delete): Adjust for changes to the
6630 CLASSTYPE_VBASECLASSES list.
6631 * method.c (do_build_copy_constructor): Likewise.
6632 * rtti.c (get_base_offset): Use binfo_for_vbase.
6633 (expand_class_desc): Remove #if 0'd code.
6634 * search.c (struct vbase_info): Remove vbase_types.
6635 (get_base_distance): Use binfo_for_vbase.
6636 (lookup_field_queue_p): Use CANONICAL_BINFO.
6637 (get_shared_vbase_if_not_primary): Use binfo_for_vbase.
6638 (get_pure_virtuals): Adjust for changes to the
6639 CLASSTYPE_VBASECLASSES list.
6640 (dfs_find_vbases): Use binfo_for_vbase.
6641 (dfs_init_vbase_pointers): Likewise.
6642 (init_vbase_pointers): Don't initialize vi.vbase_types.
6643 (virtual_context): Use binfo_for_vbase.
6644 (fixup_all_virtual_upcast_offsets): Adjust for changes to the
6645 CLASSTYPE_VBASECLASSES list.
6646 (expand_indirect_vtbls_init): Simplify.
6647 (dfs_get_vbase_types): Don't replicate virtual bases.
6648 (find_vbase_instance): Use binfo_for_vbase.
6649 (binfo_for_vbase): New function.
6650 * typeck.c (get_delta_difference): Use binfo_for_vbase.
6651
6652 2000-05-17 Mark Mitchell <mark@codesourcery.com>
6653
6654 * decl2.c (finish_anon_union): Generalize error messages to handle
6655 anonymous structures.
6656 * init.c (perform_member_init): Remove `name' parameter.
6657 (build_field_list): New function.
6658 (sort_member_init): Handle anonymous union initialization order
6659 correctly. Check for multiple initializations of the same union.
6660 (emit_base_init): Don't look up fields by name here.
6661 (expand_member_init): Record the result of name lookup for future
6662 reference.
6663 * typeck.c (build_component_ref): Fix formatting.
6664
6665 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
6666
6667 * decl.c (pop_label): Replace warn_unused with warn_unused_label.
6668 * typeck.c (build_x_compound_expr): Replace warn_unused with
6669 warn_unused_value.
6670
6671 * decl2.c (lang_decode_option): Update -Wall unused flags by
6672 calling set_Wunused.
6673
6674 2000-05-16 Mark Mitchell <mark@codesourcery.com>
6675
6676 * cp-treeh (BINFO_NEW_VTABLE_MARKED): Update documentation.
6677 * init.c (dfs_vtable_path_unmark): Remove.
6678 * search.c (marked_new_vtable_p): Likewise.
6679 (unmarked_new_vtable_p): Likewise.
6680 (dfs_search_slot_nonempty_p): Likewise.
6681 (dfs_mark): Likewise.
6682 (dfs_vtable_path_unmark): Likewise.
6683 (dfs_find_vbases): Don't set BINFO_NEW_VTABLE_MARKED.
6684 (dfs_int_vbase_pointers): Don't clear BINFO_VTABLE_PATH_MARKED.
6685 (dfs_init_vbase_pointers): Remove special-case new ABI code.
6686 (dfs_clear_vbase_slots): Don't clear BINFO_NEW_VTABLE_MARKED.
6687 (init_vbase_pointers): Simplify.
6688 (expand_indirect_vtbls_init): Likewise.
6689
6690 * class.c (copy_virtuals): New function.
6691 (build_primary_table): Use it.
6692 (build_secondary_vtable): Likewise.
6693 (modify_vtable_entry): Use NULL_TREE, not integer_zero_node, to
6694 indicate that no vcall offset is required.
6695 (add_virtual_function): Likewise.
6696 (modify_all_vtables): Likewise.
6697 (dfs_finish_vtbls): Adjust call to build_vtbl_initializer.
6698 (dfs_accumulate_vtbl_inits): Likewise.
6699 (build_vtbl_initializer): Make changes to handle construction
6700 vtables.
6701 (dfs_build_vcall_offset_vtbl_entries): Likewise.
6702 (build_rtti_vtbl_entries): Likewise.
6703 (build_vtable_entries): Handle a NULL vcall_index.
6704
6705 2000-05-15 Gabriel Dos Reis <gdr@codesourcery.com>
6706
6707 * decl2.c (lang_decode_option): Fix thinko.
6708
6709 2000-05-14 Jason Merrill <jason@casey.cygnus.com>
6710
6711 * except.c (check_handlers): New fn.
6712 * cp-tree.h: Declare it.
6713 * semantics.c (finish_handler_sequence): Call it.
6714 (finish_function_handler_sequence): Likewise.
6715 (finish_handler_parms): Set TREE_TYPE on the handler.
6716 * cp-tree.h (PUBLICLY_UNIQUELY_DERIVED_P): New macro.
6717 * search.c (get_base_distance_recursive): If protect>1, ignore
6718 special access.
6719 (get_base_distance): Don't reduce watch_access.
6720
6721 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
6722
6723 * lex.c: #include diagnostic.h.
6724 (lang_init_options): Set default prefixing rules.
6725
6726 * lang-options.h: Add -fdiagnostics-show-location=.
6727
6728 * decl2.c: #include diagnostic.h.
6729 (lang_decode_option): Handle -fdiagnostics-show-location=.
6730
6731 2000-05-12 Nathan Sidwell <nathan@codesourcery.com>
6732
6733 * tinfo.cc: Revert my 2000-05-08 and 2000-05-07 changes.
6734 * vec.cc: Revert my 2000-05-07 change.
6735
6736 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
6737
6738 * class.c (check_field_decls): Complain about non-static data
6739 members with same name as class in class with constructor.
6740
6741 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
6742
6743 * decl.c (grokdeclarator): Allow non-static data members with
6744 same name as class.
6745
6746 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
6747
6748 * cp-tree.h: Constify tree_srcloc.filename, tinst_level.file,
6749 and pending_inline.filename. Update prototypes.
6750 * decl.c (define_label): Constify filename parameter.
6751 * decl2.c (warn_if_unknown_interface): Constify local char *.
6752 * input.c Constify input_source.filename. Don't declare
6753 input_filename or lineno. Constify filename parameter to feed_input.
6754 * lex.c (init_parse): Constify parameter and return value.
6755 (cp_pragma_interface, cp_pragma_implementation): Constify
6756 filename argument.
6757 (reinit_parse_for_method, reinit_parse_for_block,
6758 reinit_parse_for_expr, feed_defarg, handle_cp_pragma):
6759 Constify local char *.
6760 * pt.c: Don't declare lineno or input_filename.
6761 (print_template_context, tsubst_friend_function, tsubst_decl,
6762 tsubst, instantiate_decl): Constify local char *.
6763 * semantics.c (expand_body): Constify local char *.
6764 * tree.c (build_srcloc): Constify filename parameter.
6765 * typeck.c (c_expand_asm_operands): Constify filename
6766 parameter.
6767
6768 2000-05-08 Nathan Sidwell <nathan@codesourcery.com>
6769
6770 * tinfo.cc (__dynamic_cast): Use a reinterpret_cast. Fix
6771 offsetof expansion.
6772
6773 2000-05-08 Branko Cibej <branko.cibej@hermes.si>
6774
6775 * inc/cxxabi.h: Fix typos in comment.
6776 (__base_class_info::__offset): Use a static_cast.
6777
6778 2000-05-07 Nathan Sidwell <nathan@codesourcery.com>
6779
6780 * inc/cxxabi.h: Use __SIZE_TYPE_ and __PTRDIFF_TYPE__ in place
6781 of std::size_t and std::ptrdiff_t respectively.
6782 * tinfo.cc: Likewise.
6783 * vec.cc: Likewise.
6784
6785 2000-05-06 Richard Henderson <rth@cygnus.com>
6786
6787 * typeck.c (build_c_cast): Don't warn integer->pointer size
6788 mismatch for constants.
6789
6790 2000-05-06 Nathan Sidwell <nathan@codesourcery.com>
6791
6792 * rtti.c (ptmd_initializer): Set non-public, if class is
6793 incomplete.
6794
6795 * inc/cxxabi.h (__dynamic_cast): Explicitly say extern "C++".
6796 (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
6797 __cxa_vec_delete): Likewise.
6798 * tinfo.cc (__dynamic_cast): Likewise.
6799 * vec.cc (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
6800 __cxa_vec_delete): Likewise.
6801
6802 2000-05-04 Mark Mitchell <mark@codesourcery.com>
6803
6804 * cp-tree.h (DELTA_FROM_VTABLE_ENTRY): Remove.
6805 (SET_FNADDR_FROM_VTABLE_ENTRY): Likewise.
6806 (lang_decl_flags): Add vcall_offset.
6807 (THUNK_VCALL_OFFSET): Use it.
6808 * decl.c (lang_mark_tree): Don't mark DECL_ACCESS for a thunk.
6809 * method.c (make_thunk): Create the lang_decl here, not in
6810 emit_thunk.
6811 (emit_thunk): Make generic thunks into ordinary functions once
6812 they have been fed to expand_body.
6813 * semantics.c (expand_body): Set current_function_is_thunk here.
6814
6815 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6816
6817 * class.c (update_vtable_entry_for_fn): Prototype.
6818
6819 * pt.c (tsubst_decl): Initialize variables `argvec', `gen_tmpl'
6820 and `tmpl'.
6821
6822 * search.c (dfs_build_inheritance_graph_order): Prototype.
6823
6824 2000-05-04 Mark Mitchell <mark@codesourcery.com>
6825
6826 * cp-tree.h (special_function_kind): Add various kinds of
6827 destructors.
6828 (special_function_p): New function.
6829 * class.c (overrides): Don't let one kind of destructor override
6830 another.
6831 * decl2.c (mark_used): Use DECL_NON_THUNK_FUNCTION_P when deciding
6832 whether or not to instantiate a template.
6833 * tree.c (special_function_p): Define.
6834
6835 2000-05-03 Mark Mitchell <mark@codesourcery.com>
6836
6837 * cp-tree.def (THUNK_DECL): Remove.
6838 * cp-tree.h (DECL_THUNK_P): New macro.
6839 (DECL_NON_THUNK_FUNCTION_P): Likewise.
6840 (DECL_EXTERN_C_FUNCTION_P): Likewise.
6841 (SET_DECL_THUNK_P): Likewise.
6842 (DELTA_FROM_VTABLE_ENTRY): Use DECL_THUNK_P.
6843 (FNADDR_FROM_VTABLE_ENTRY): Likewise.
6844 (DECL_MAIN_P): Use DECL_EXTERN_C_FUNCTION_P.
6845 * decl.c (decls_match): Use DECL_EXTERN_C_P.
6846 (duplicate_decls): Likewise.
6847 (pushdecl): Likewise. Adjust thunk handling.
6848 (grokfndecl): Use DECL_EXTERN_C_P.
6849 * decl2.c (mark_vtable_entries): Use DECL_THUNK_P.
6850 * dump.c (dequeue_and_dump): Remove THUNK_DECL handling.
6851 * except.c (nothrow_libfn_p): Use DECL_EXTERN_C_P.
6852 * expr.c (cplus_expand_expr): Remove THUNK_DECL handling.
6853 * method.c (make_thunk): Use SET_DECL_THUNK_P. Set
6854 DECL_NO_STATIC_CHAIN.
6855 (emit_thunk): Don't play games with TREE_CODE on thunks. Don't
6856 set DECL_DESTRUCTOR_P or DECL_CONSTRUCTOR_P on a thunk.
6857 * search.c (covariant_return_p): Remove THUNK_DECL handling.
6858 * ir.texi: Update.
6859
6860 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
6861
6862 * tree.c (walk_tree): Set lineno.
6863
6864 2000-05-01 Mark Mitchell <mark@codesourcery.com>
6865
6866 * exception.cc: Update license notice.
6867 * new.cc: Likewise.
6868 * new1.cc: Likewise.
6869 * new2.cc: Likewise.
6870 * tinfo.cc: Likewise.
6871 * tinfo2.cc: Likewise.
6872 * vec.cc: Likewise.
6873 * inc/cxxabi.h: Likewise.
6874 * inc/exception: Likewise.
6875 * inc/new: Likewise.
6876 * inc/new.h: Likewise.
6877 * inc/typeinfo: Likewise.
6878
6879 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
6880
6881 * tree.c (build_target_expr_with_type): If we already have a
6882 TARGET_EXPR, just return it.
6883
6884 * optimize.c (initialize_inlined_parameters): Don't generate an
6885 EXPR_STMT if we can just use DECL_INITIAL.
6886 * decl.c (emit_local_var): Only make the initialization a
6887 full-expression if stmts_are_full_exprs_p.
6888
6889 2000-05-01 Mark Mitchell <mark@codesourcery.com>
6890
6891 * cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New
6892 macro.
6893 * call.c (standard_conversion): Use it.
6894 (direct_reference_binding): Likewise.
6895 (build_over_call): Likewise.
6896 (is_properly_derived_from): Likewise.
6897 (compare_ics): Likewise.
6898 * class.c (resolves_to_fixed_type_p): Likewise.
6899 * optimize.c (declare_return_variable): Likewise.
6900 * pt.c (is_specialization_of): Likewise.
6901 (unify): Likewise.
6902 * typeck.c (comp_target_parms): Likeiwse.
6903 (build_static_cast): Likewise.
6904 (build_reinterpret_cast): Likewise.
6905 (build_const_cast): Likewise.
6906 (comp_ptr_ttypes_real): Likewise.
6907 (comp_ptr_ttypes_const): Likewise.
6908 * typeck2.c (process_init_constructor): Likewise.
6909
6910 2000-04-30 Scott Snyder <snyder@fnal.gov>
6911
6912 * decl.c (finish_destructor_body): Use the base destructor when
6913 destroying virtual bases.
6914
6915 2000-04-30 Mark Mitchell <mark@codesourcery.com>
6916
6917 * expr.c (cplus_expand_expr): Preserve temporaries when expanding
6918 STMT_EXPRs.
6919 * optimize.c (struct inline_data): Add target_exprs field.
6920 (declare_return_variable): When a function returns an aggregate,
6921 use the variable declared in the TARGET_EXPR as the remapped
6922 DECL_RESULT.
6923 (expand_call_inline): Update the pending target_exprs stack.
6924 (optimize_function): Initialize the stack.
6925
6926 * decl2.c (finish_file): Fix typo in comment.
6927
6928 * method.c (emit_thunk): Don't try to return a `void' value.
6929
6930 * optimize.c (initialize_inlined_parameters): If the parameter is
6931 addressable, we need to make a new VAR_DECL, even if the
6932 initializer is constant.
6933
6934 2000-04-28 Cosmin Truta <cosmint@cs.ubbcluj.ro>
6935
6936 * decl.c (grok_op_properties): Add an extra check of argtypes.
6937
6938 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6939
6940 * optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying
6941 variables.
6942 (initialize_inlined_parameters): Try to avoid creating new
6943 VAR_DECLs.
6944
6945 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6946
6947 * lex.c (my_get_run_time): Remove.
6948 (init_filename_times): Use get_run_time instead of my_get_run_time.
6949 (check_newline): Likewise.
6950 (dump_time_statistics): Likewise.
6951 * decl2.c (finish_file): Push and pop timevar TV_VARCONST instead
6952 of computing elapsed time explicitly.
6953
6954 2000-04-26 Mark Mitchell <mark@codesourcery.com>
6955
6956 * cp-tree.h (TREE_READONLY_DECL_P): Use DECL_P.
6957 * init.c (decl_constant_value): Check TREE_READONLY_DECL_P.
6958 * call.c (convert_like_real): Don't test TREE_READONLY_DECL_P
6959 before calling decl_constant_value.
6960 * class.c (check_bitfield_decl): Likewise.
6961 * cvt.c (ocp_convert): Likewise.
6962 (convert): Likewise.
6963 * decl.c (compute_array_index_type): Likewise.
6964 (build_enumerator): Likewise.
6965 * decl2.c (check_cp_case_value): Likewise.
6966 * pt.c (convert_nontype_argument): Likewise.
6967 (tsubst): Likewise.
6968 * typeck.c (decay_conversion): Likewise.
6969 (build_compound_expr): Likewise.
6970 (build_reinterpret_cast): Likewise.
6971 (build_c_cast): Likewise.
6972 (convert_for_assignment): Likewise.
6973
6974 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6975
6976 * decl.c (finish_function): Don't play games with DECL_INLINE.
6977
6978 2000-04-25 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6979
6980 * ir.texi: Correct typo.
6981
6982 2000-04-25 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6983
6984 * decl.c (grokdeclarator): Reject VLAs as members.
6985
6986 2000-04-24 Gabriel Dos Reis <gdr@codesourcery.com>
6987
6988 * call.c (standard_conversion): Accept conversion between
6989 COMPLEX_TYPEs.
6990
6991 * cvt.c (ocp_convert): Handle conversion to COMPLEX_TYPE.
6992
6993 2000-04-24 Zack Weinberg <zack@wolery.cumb.org>
6994
6995 * decl2.c (finish_file): Remove double setup for accounting
6996 compile time.
6997
6998 2000-04-24 Robert Lipe <robertlipe@usa.net>
6999
7000 * cp-tree.h (lang_type): Member `language' now ENUM_BITFIELD.
7001
7002 2000-04-23 Benjamin Kosnik <bkoz@cygnus.com>
7003
7004 * new.cc (set_new_handler): Needs to be in std::.
7005
7006 2000-04-23 Mark Mitchell <mark@codesourcery.com>
7007
7008 * cp-tree.h (lang_decl): Remove pretty_function_p.
7009 (DECL_PRETTY_FUNCTION_P): Use TREE_LANG_FLAG_0, not a bit in the
7010 language-specific node.
7011 * decl.c (cp_make_fname_decl): Use build_decl, not
7012 build_lang_decl, to build the variables.
7013 (grokvardecl): Don't call build_lang_decl for local variables in
7014 templates.
7015 (grokdeclarator): Don't call build_lang_decl for local type
7016 declarations in templates.
7017 * lex.c (retrofit_lang_decl): Use ggc_alloc_obj to allocated
7018 zero'd memory, rather than calling memset.
7019 * pt.c: Include hashtab.h.
7020 (local_specializations): New variable.
7021 (retrieve_local_specialization): Use it.
7022 (register_local_specialization): Likewise.
7023 (tsubst_decl): Don't assume local variables have
7024 DECL_LANG_SPECIFIC.
7025 (instantiate_decl): Set up local_specializations.
7026 * Makefile.in (HTAB_H): New variable.
7027
7028 2000-04-23 Richard Henderson <rth@cygnus.com>
7029
7030 * typeck.c (c_expand_asm_operands): Restore the original
7031 contents of the output list.
7032
7033 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
7034
7035 * ir.texi: Document complex number representation.
7036
7037 2000-04-20 Nathan Sidwell <nathan@codesourcery.com>
7038
7039 * rtti.c (init_rtti_processing): Set tinfo_var_id in new-abi.
7040 (target_incomplete_p): New function.
7041 (tinfo_base_init): Create comdat NTBS name variable.
7042 (ptr_initializer): Add non_public parameter. Calculate it.
7043 (ptmd_initializer): Likewise.
7044 (synthesize_tinfo_var): Adjust. Emit incomplete class tinfo.
7045 (create_real_tinfo_var): Add non_public parameter. Use it.
7046 Push proxy into global namespace.
7047 * inc/cxxabi.h (__pointer_type_info::incomplete_class_mask):
7048 New enumeration.
7049 * inc/typeinfo (type_info::before, type_info::operator==):
7050 Compare __name addresses.
7051
7052 * tinfo2.cc: Remove new-abi builtins comment.
7053
7054 2000-04-20 Jason Merrill <jason@casey.cygnus.com>
7055
7056 * typeck.c (build_x_function_call): Resolve an OFFSET_REF.
7057
7058 * call.c (joust): Exit early if we get the same function, too.
7059
7060 * decl2.c (key_method): Return NULL_TREE for template classes.
7061 (import_export_class): Don't need to check for template classes.
7062
7063 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
7064
7065 * lex.c: Remove references to cccp.c.
7066
7067 2000-04-18 Mark Mitchell <mark@codesourcery.com>
7068
7069 * cp-tree.h (lang_decl_flags): Remove const_memfunc and
7070 volatile_memfunc. Add destructor_attr. Adjust dummy.
7071 (DECL_DESTRUCTOR_P): Use destructor_attr.
7072 (DECL_CONST_MEMFUNC_P): Reimplement.
7073 (DECL_VOLATILE_MEMFUNC_P): Remove.
7074 * class.c (finish_struct_methods): Use CLASSTYPE_DESTRUCTORS.
7075 (overrides): Use DECL_DESTRUCTOR_P.
7076 (check_for_override): Likewise.
7077 * decl.c (start_function): Likewise.
7078 * decl2.c (grokfclassfn): Likewise.
7079 (check_classfn): Likewise.
7080 (grok_function_init): Likewise.
7081
7082 2000-04-17 Mark Mitchell <mark@codesourcery.com>
7083
7084 * decl2.c (grokfield): Issue error on illegal data member
7085 declaration.
7086
7087 Mon Apr 17 17:11:16 2000 Mark P Mitchell <mark@codesourcery.com>
7088
7089 * method.c (make_thunk): Set DECL_CONTEXT for a THUNK_DECL.
7090
7091 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7092
7093 * class.c (build_vtable_entry): Don't build thunks for type-info
7094 functions.
7095
7096 2000-04-16 Jason Merrill <jason@casey.cygnus.com>
7097
7098 * decl.c (decls_match): Allow a redeclaration of a builtin to
7099 specify args while the builtin did not.
7100
7101 2000-04-15 Mark Mitchell <mark@codesourcery.com>
7102
7103 * cp-tree.def (THUNK_DECL): Add to documentation.
7104 * cp-tree.h (flag_huge_objects): Declare.
7105 * class.c (modify_vtable_entry): Tidy.
7106 (update_vtable_entry_for_fn): Split out from dfs_modify_vtables.
7107 Calculate delta appropriately for the new ABI.
7108 (dfs_modify_vtables): Use it.
7109 (modify_all_vtables): Fix thinko in code to add overriding copies
7110 of functions to primary vtables.
7111 (build_clone): Fix typo in comment.
7112 (clone_function_decl): Correct order of destructors in vtable.
7113 (build_vbase_offset_vtbl_entries): Adjust comment.
7114 (dfs_vcall_offset_queue_p): Remove.
7115 (dfs_build_vcall_offset_vtbl_entries): Update BV_VCALL_INDEX.
7116 (build_vcall_offset_vtbl_entries): Juse use dfs_skip_vbases.
7117 (build_vtable_entry): Correct check for pure virtual functions.
7118 Don't declare flag_huge_objects.
7119 * decl.c (flag_huge_objects): Remove declaration.
7120 * method.c (make_thunk): Tweak mangling for vcall offset thunks.
7121 Use int_size_in_bytes.
7122 (emit_thunk): Handle vcall offset thunks.
7123
7124 Sat Apr 15 16:00:01 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7125
7126 * decl2.c (parse_time, varconst_time): Delete declarations.
7127 (finish_file): Delete LINENO declaration.
7128 START_TIME and THIS_TIME now long.
7129
7130 2000-04-13 Nathan Sidwell <nathan@codesourcery.com>
7131
7132 * class.c (build_base_field): Reformat comment.
7133
7134 * inc/cxxabi.h (stddef.h): Comment inclusion.
7135 (__base_class_info::__offset): Comment shift.
7136
7137 2000-04-12 Mark Mitchell <mark@codesourcery.com>
7138
7139 * cp-tree.h (IDENTIFIER_CTOR_OR_DTOR_P): New macro.
7140 (cp_tree_index): Add CPTI_PUSH_EXCEPTION_IDENTIFIER.
7141 (cp_push_exception_identifier): New macro.
7142 (DECL_COMPLETE_DESTRUCTOR_P): New macro.
7143 (DECL_BASE_DESTRUCTOR_P): Likewise.
7144 (DECL_DELETING_DESTRUCTOR_P): Likewise.
7145 (get_vtbl_decl_for_binfo): Fix formatting.
7146 (in_charge_arg_for_name): New macro.
7147 (maybe_build_cleanup_and_delete): Remove declaration.
7148 * call.c (build_field_call): Use IDENTIFIER_CTOR_OR_DTOR_P.
7149 (in_charge_arg_for_name): New function.
7150 (build_new_method_call): Use it. Handle cloned destructors.
7151 (build_clone): Don't make the base constructor virtual.
7152 Automatically defer generated functions.
7153 (clone_function_decl): Handle destructors, too.
7154 (clone_constructors_and_destructors): Likewise.
7155 (create_vtable_ptr): Don't create a vtable entry for a cloned
7156 function.
7157 * decl.c (predefined_identifier): Add ctor_or_dtor_p.
7158 (initialize_predefined_identifiers): Update appropriately.
7159 (finish_destructor_body): Simplify.
7160 (maybe_build_cleanup_and_delete): Remove.
7161 * except.c (expand_throw): Handle new-ABI destructors.
7162 * init.c (expand_cleanup_for_base): Use base_dtor_identifier.
7163 (build_dtor_call): New function.
7164 (build_delete): Use it. Simplify.
7165 * optimize.c (maybe_clone_body): Handle destructors.
7166 * search.c (lookup_field_queue_p): Use IDENTIFIER_CTOR_OR_DTOR_P.
7167
7168 * exception.cc (cleanup_fn): New typedef.
7169 (CALL_CLEANUP): New macro.
7170 (cp_eh_info): Use them.
7171 (__cp_push_exception): Likewise.
7172 (__cp_pop_exception): Likewise.
7173
7174 2000-04-11 Mark Mitchell <mark@codesourcery.com>
7175
7176 * cp-tree.h (cp_tree_index): Add CPTI_DTOR_IDENTIFIER.
7177 (complete_dtor_identifier): New macro.
7178 (CLASSTYPE_FIRST_CONVERSION): Remove.
7179 (CLASSTYPE_CONSTRUCTOR_SLOT): New macro.
7180 (CLASSTYPE_DESTRUCTOR_SLOT): Likewise.
7181 (CLASSTYPE_FIRST_CONVERSION_SLOT): Likewise.
7182 (CLASSTYPE_CONSTRUCTORS): Likewise.
7183 (CLASSTYPE_DESTRUCTORS): Likewise.
7184 (lang_decl): Add cloned_function.
7185 (DECL_COMPLETE_CONSTRUCTOR_P): New macro.
7186 (DECL_BASE_CONSTRUCTOR_P): Likewise.
7187 (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P): Likewise.
7188 (DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P): Likewise.
7189 (DECL_CLONED_FUNCTION_P): Likewise.
7190 (DECL_CLONED_FUNCTION): Likewise.
7191 (clone_function_decl): Declare.
7192 (maybe_clone_body): Likewise.
7193 * call.c (build_user_type_conversion_1): Call complete object
7194 constructors in the new ABI.
7195 (build_new_method_call): Don't add in-charge parameters under the
7196 new ABI.
7197 * class.c (add_method): Use DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P,
7198 DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P, CLASSTYPE_CONSTRUCTOR_SLOT, and
7199 CLASSTYPE_DESTRUCTOR_SLOT.
7200 (build_clone): New function.
7201 (clone_function_decl): Likewise.
7202 (clone_constructors_and_destructors): Likewise.
7203 (check_bases_and_members): Use it.
7204 * decl.c (iniitialize_predefined_identifiers): Initialize
7205 complete_dtor_identifier.
7206 (finish_function): Don't add extra code to a clone.
7207 (lang_mark_tree): Mark cloned_function.
7208 * decl2.c (mark_used): Don't bother trying to instantiate things
7209 we synthesized.
7210 * dump.c (dequeue_and_dump): Don't dump CP_DECL_CONTEXT twice.
7211 * method.c (set_mangled_name_for_decl): Don't treat clones as
7212 constructors.
7213 (synthesize_method): Sythesize cloned functions, not the clones.
7214 * optimize.c (inline_data): Update comment on ret_label.
7215 (remap_block): Don't assume DECL_INITIAL exists.
7216 (copy_body_r): Allow ret_label to be NULL.
7217 (maybe_clone_body): Define.
7218 * pt.c (tsubst_decl): Handle clones.
7219 (instantiate_clone): New function.
7220 (instantiate_template): Use it.
7221 (set_mangled_name_for_template_decl): Don't treat clones as
7222 constructors.
7223 * search.c (lookup_fnfields_1): Use CLASSTYPE_CONSTRUCTOR_SLOT,
7224 CLASSTYPE_DESTRUCTOR_SLOT, and CLASSTYPE_FIRST_CONVERSION_SLOT.
7225 * semantics.c (expand_body): Clone function bodies as necessary.
7226
7227 * optimize.c (remap_decl): Avoid sharing structure for arrays
7228 whose size is only known at run-time.
7229 * tree.c (copy_tree_r): Don't copy PARM_DECLs.
7230
7231 * cp-tree.h (lang_decl_flags): Rename constructor_for_vbase_attr
7232 to has_in_charge_parm_p.
7233 (DECL_CONSTRUCTOR_FOR_VBASE_P): Rename to ...
7234 (DECL_HAS_IN_CHARGE_PARM_P): ... this.
7235 (DECL_COPY_CONSTRUCTOR_P): New macro.
7236 * call.c (add_function_candidate): Use DECL_HAS_IN_CHARGE_PARM_P.
7237 (build_user_type_conversion_1): Likewise.
7238 (convert_like_real): Likewise.
7239 (build_over_call): Likeiwse. Use DECL_COPY_CONSTRUCTOR_P.
7240 * decl.c (grokdeclarator): Use DECL_HAS_IN_CHARGE_PARM_P.
7241 (copy_args_p): Likewise.
7242 (grok_ctor_properties): Likewise.
7243 (start_function): Likewise.
7244 * decl2.c (maybe_retrofit_in_charge): Likewise. Set it.
7245 * error.c (dump_function_decl): Use DECL_HAS_IN_CHARGE_PARM_P.
7246 * init.c (emit_base_init): Use DECL_COPY_CONSTRUCTOR_P.
7247 * method.c (do_build_copy_constructor): Use
7248 DECL_HAS_IN_CHARGE_PARM_P.
7249 (synthesize_method): Likewise.
7250 * pt.c (instantiate_template): Remove goto.
7251 * tree.c (build_cplus_method_type): Remove mention of obstacks in
7252 comment.
7253
7254 * cp-tre.h (finish_function): Change prototype.
7255 * decl.c (end_cleanup_fn): Adjust caller.
7256 (finish_function): Take only one parameter.
7257 * decl2.c (finish_objects): Adjust caller.
7258 (finish_static_storage_duration_function): Likewise.
7259 * method.c (emit_thunk): Likewise.
7260 * parse.y: Likewise.
7261 * parse.c: Regenerated.
7262 * pt.c (instantiate_decl): Likewise.
7263 * rtti.c (synthesize_tinfo_fn): Likewise.
7264 * semantics.c (expand_body): Likewise.
7265
7266 * cp-tree.h (copy_decl): New function.
7267 * class.c (finish_struct_1): Use it.
7268 * lex.c (copy_decl): Define it.
7269 * pt.c (tsubst_decl): Likewise.
7270 * tree.c (copy_template_template_parm): Likewise.
7271
7272 * cp-tree.h (lang_type): Remove has_nonpublic_ctor and
7273 has_nonpublic_assign_ref.
7274 (TYPE_HAS_NONPUBLIC_CTOR): Don't declare.
7275 (TYPE_HAS_NONPUBLIC_ASSIGN_REF): Likewise.
7276 * class.c (finish_struct_methods): Don't set
7277 TYPE_HAS_NONPUBLIC_CTOR or TYPE_HAS_NONPUBLIC_ASSIGN_REF.
7278 (interface_only): Don't declare.
7279 (interface_unknown): Likewise.
7280
7281 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7282
7283 * tree.h (HAVE_TEMPLATES): Remove definition.
7284 * lang-options.h (-fthis-is-variable): Remove documentation.
7285
7286 2000-04-10 Jason Merrill <jason@casey.cygnus.com>
7287
7288 * class.c (instantiate_type): Handle object-relative template-id.
7289
7290 * semantics.c (finish_expr_stmt): Call convert_to_void here.
7291 * decl.c (cplus_expand_expr_stmt): Not here.
7292
7293 * rtti.c (build_dynamic_cast_1): Call non_lvalue.
7294 Initialize exprtype earlier.
7295
7296 * parse.y (fn.def1): Check for defining types in return types.
7297
7298 * decl.c (check_tag_decl): Notice extra fundamental types.
7299 Diagnose empty decls in classes, too.
7300
7301 * decl.c (grokdeclarator): Don't override an anonymous name if no
7302 declarator was given.
7303
7304 * cvt.c (convert_to_void): Call resolve_offset_ref.
7305
7306 * typeck.c (build_x_function_call): Abort if we get an OFFSET_REF.
7307
7308 * decl2.c (decl_namespace): Handle getting a type.
7309
7310 * typeck.c (build_c_cast): Re-enable warning for cast between
7311 pointer and integer of different size.
7312
7313 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
7314
7315 * inc/cxxabi.h (__pointer_type_info): Add restrict and
7316 incomplete flags.
7317 (__pointer_type_info::__pointer_catch): New virtual function.
7318 (__pointer_to_member_type_info): Derive from
7319 __pointer_type_info. Adjust.
7320 (__pointer_to_member_type_info::__do_catch): Remove.
7321 (__pointer_to_member_type_info::__is_pointer_p): Declare.
7322 (__pointer_to_member_type_info::__pointer_catch): Declare.
7323 * rtti.c (qualifier_flags): Add restrict flag.
7324 (ptmd_initializer): Reorder members.
7325 (create_tinfo_types): Expand comments. Reorder
7326 ptmd_desc_type_node members.
7327 * tinfo2.cc (__pointer_to_member_type_info::__is_pointer_p):
7328 Implement.
7329 (__pointer_type_info::__do_catch): Move specific code into
7330 __pointer_catch. Call it.
7331 (__pointer_type_info::__pointer_catch): Non-pointer-to-member
7332 specific catch checking. Fix void conversion check.
7333 (__pointer_to_member_type_info::__do_catch): Remove.
7334 (__pointer_to_member_type_info::__pointer_catch): Implement.
7335
7336 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7337
7338 * lex.c (init_parse): Remove traces of classof and headof.
7339 * decl2.c (flag_operator_names): Default to 1.
7340 (lang_decode_option): Do not set it for -ansi.
7341
7342 2000-04-09 Mark Mitchell <mark@codesourcery.com>
7343
7344 * cp-tree.h (struct lang_decl): Remove main_decl_variant.
7345 (DECL_MAIN_VARIANT): Remove.
7346 * decl.c (duplicate_decls): Don't set it.
7347 (start_function): Likewise.
7348 (lang_mark_tree): Don't mark it.
7349 * decl2.c (defer_fn): Don't use it.
7350 * lex.c (retrofit_lang_decl): Don't set it.
7351 * pt.c (tsubst_decl): Likewise.
7352 * ptree.c (print_lang_decl): Don't print it.
7353 * typeck.c (mark_addressable): Don't use it.
7354
7355 2000-04-09 Nathan Sidwell <nathan@codesourcery.com>
7356
7357 * vec.cc: Include <new> and <exception>.
7358 (__cxa_vec_ctor): Use __cxa_vec_dtor for cleanup.
7359 (__cxa_vec_dtor): Catch dtor exceptions, and rethrow or
7360 terminate.
7361 (__cxa_vec_delete): Catch dtor exceptions.
7362
7363 2000-04-09 Nathan Sidwell <nathan@codesourcery.com>
7364
7365 Prepend __ to implementation defined names.
7366 * inc/typeinfo (type_info): Rename _name to __name.
7367 (type_info::type_info): Rename parameter.
7368 (type_info::operator==, type_info::operator!=,
7369 type_info::before): Likewise.
7370 (type_info::is_pointer_p, type_info::is_function_p,
7371 type_info::do_catch, type_info::do_upcast): Prepend __. Rename
7372 parameters.
7373 * inc/cxxabi.h
7374 (__fundamental_type_info::__fundamental_type_info) Rename parameters.
7375 (__pointer_type_info::__pointer_type_info): Likewise.
7376 (__pointer_type_info::is_pointer_p,
7377 __pointer_type_info::do_catch): Prepend __. Rename parameters.
7378 (__array_type_info::__array_type_info): Rename parameters.
7379 (__function_type_info::__function_type_info): Likewise.
7380 (__function_type_info::is_function_p): Prepend __.
7381 (__enum_type_info::__enum_type_info): Rename parameters.
7382 (__pointer_to_member_type_info::__pointer_to_member_type_info):
7383 Likewise.
7384 (__pointer_to_member_type_info::do_catch): Prepend __. Rename
7385 parameters.
7386 (__base_class_info::is_virtual_p, is_public_p, offset): Prepend __.
7387 (__class_type_info::__class_type_info): Rename parameters.
7388 (__class_type_info::sub_kind): Prepend __. Adjust member names.
7389 (__class_type_info::upcast_result,
7390 __class_type_info::dyncast_result): Prepend __. Move definition
7391 into tinfo.cc.
7392 (__class_type_info::do_upcast, __class_type_info::do_catch,
7393 __class_type_info::find_public_src,
7394 __class_type_info::do_dyncast,
7395 __class_type_info::do_find_public_src): Prepend __. Rename
7396 parameters.
7397 (__si_class_type_info::__si_class_type_info): Rename parameters.
7398 (__si_class_type_info::do_upcast, __si_class_type_info::do_dyncast,
7399 __si_class_type_info::do_find_public_src): Prepent __. Rename
7400 parameters.
7401 (__vmi_class_type_info::__vmi_class_type_info): Rename parameters.
7402 (__vmi_class_type_info::do_upcast, __vmi_class_type_info::do_dyncast,
7403 __vmi_class_type_info::do_find_public_src): Prepent __. Rename
7404 parameters.
7405 (__dynamic_cast): Rename parameters.
7406 * tinfo.cc (type_info::is_pointer_p, type_info::is_function_p,
7407 type_info::do_catch, type_info::do_upcast): Prepend __.
7408 (contained_p, public_p, virtual_p, contained_public_p,
7409 contained_nonpublic_p, contained_nonvirtual_p): Adjust.
7410 (__class_type_info::do_catch,
7411 __class_type_info::do_upcast): Prepend __. Adjust.
7412 (__class_type_info::__upcast_result,
7413 __class_type_info::__dyncast_result): Move from inc/cxxabi.h.
7414 Adjust.
7415 (__class_type_info::find_public_src): Prepend __. Adjust.
7416 (__class_type_info::do_find_public_src,
7417 __si_class_type_info::do_find_public_src,
7418 __vmi_class_type_info::do_find_public_src): Likewise.
7419 (__class_type_info::do_dyncast,
7420 __si_class_type_info::do_dyncast,
7421 __vmi_class_type_info::do_dyncast): Likewise.
7422 (__class_type_info::do_upcast,
7423 __si_class_type_info::do_upcast,
7424 __vmi_class_type_info::do_upcast): Likewise.
7425 (__dynamic_cast): Adjust.
7426 * tinfo2.cc (__pointer_type_info::is_pointer_p): Prepend __.
7427 (__function_type_info::is_function_p): Likewise.
7428 (__pointer_type_info::do_catch): Likewise. Adjust.
7429 (__pointer_to_member_type_info::do_catch): Likewise. Adjust.
7430 (__throw_type_match_rtti_2): Adjust.
7431 (__is_pointer): Adjust.
7432
7433 2000-04-08 Mark Mitchell <mark@codesourcery.com>
7434
7435 * cp-tree.h (cp_tree_index): Add CPTI_COMPLETE_CTOR_IDENTIFIER.
7436 (complete_ctor_identifier): New macro.
7437 (special_function_kind): Add sfk_copy_constructor and
7438 sfk_assignment_operator.
7439 (LOOKUP_HAS_IN_CHARGE): Remove.
7440 (cons_up_default_function): Rename to ...
7441 (implicitly_declare_fn): ... this.
7442 * call.c (build_new_method_call): Add in-charge parameters for
7443 constructors here.
7444 * class.c (add_implicitly_declared_members): Change parameter name
7445 from cant_have_assignment to cant_have_const_assignment.
7446 Replace calls to cons_up_default_function to implicitly_declare_fn.
7447 * cvt.c (ocp_convert): Use complete_ctor_identifier.
7448 * decl.c (initialize_predefined_identifiers): Initialize it.
7449 (start_function): Use DECL_CONSTRUCTOR_FOR_VBASE_P instead of
7450 complex expression.
7451 * init.c (expand_default_init): Don't calculate the in-charge
7452 parameter here.
7453 (build_new_1): Likewise.
7454 * lex.c (cons_up_default_function): Move to method.c.
7455 * method.c (synthesize_method): Use DECL_DESTRUCTOR_P.
7456 (implicitly_declare_fn): New function.
7457 * typeck.c (build_static_cast): Use complete_ctor_identifier.
7458 (build_modify_expr): Likewise.
7459 * typeck2.c (build_functional_cast): Likewise.
7460
7461 Under the new ABI, constructors don't return `this'.
7462 * cp-tree.h (warn_reorder): Declare.
7463 (special_function_kind): New enum.
7464 (global_base_init_list): Remove declaration.
7465 (emit_base_init): Don't return a value.
7466 (check_base_init): Don't declare.
7467 (is_aggr_typedef): Likewise.
7468 * decl.c (check_special_function_return_type): New function.
7469 (return_types): Remove.
7470 (grokdeclarator): Use check_special_function_return_type.
7471 (start_function): Don't initialize ctor_label under the new ABI.
7472 (finish_construtor_body): Don't create a corresponding LABEL_STMT.
7473 * init.c (begin_init_stmts): Move to top of file.
7474 (finish_init_stmts): Likewise.
7475 (warn_reorder): Don't declare.
7476 (emit_base_init): Don't create a STMT_EXPR here. Don't return a
7477 value.
7478 (check_base_init): Remove.
7479 (is_aggr_typedef): Likewise.
7480 (build_new_1): Don't use the return value of a constructor.
7481 * semantics.c (setup_vtbl_ptr): Don't use the return value
7482 of emit_base_init.
7483 * typeck.c (check_return_expr): Don't magically convert return
7484 statements into `return this' in constructors under the new ABI.
7485
7486 * cp-tree.h (cp_tree_index): Add CPTI_BASE_CTOR_IDENTIFIER,
7487 CPTI_BASE_DTOR_IDENTIFIER, and CPTI_DELETING_DTOR_IDENTIFIER.
7488 (base_ctor_identifier): New macro.
7489 (base_dtor_identifier): Likewise.
7490 (deleting_dtor_identifier): Likewise.
7491 * decl.c: Don't include obstack.h.
7492 (obstack_chunk_alloc): Don't define.
7493 (obstack_chunk_free): Likewise.
7494 (struct predefined_identifier): New type.
7495 (initialize_predefined_identifiers): New function.
7496 (init_decl_processing): Use it.
7497 (debug_temp_inits): Remove.
7498 (start_method): Don't call preserve_data.
7499 (hack_incomplete_structures): Update comment.
7500 * init.c (init_init_processing): Don't initialize
7501 nelts_identifier.
7502 (build_offset_rf): Remove dead code.
7503 (build_delete): Use CLASSTYPE_N_BASECLASSES.
7504 * search.c (init_search_processing): Don't initialize
7505 vptr_identifier.
7506
7507 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7508
7509 * typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to elide
7510 some sign_compare warnings.
7511
7512 2000-04-07 Nathan Sidwell <nathan@codesourcery.com>
7513
7514 Rename abi::__vmi_class_type_info members.
7515 * inc/cxxabi.h (__vmi_class_type_info): Rename details, n_bases,
7516 base_list, detail_masks members to vmi_flags, vmi_base_count,
7517 vmi_bases and vmi_flags_masks respectively.
7518 (__vmi_class_type_info::vmi_flags_masks): Rename
7519 details_unknown_mask to flags_unknown_mask.
7520 * tinfo.cc (__class_type_info::do_upcast): Adjust.
7521 (__vmi_class_type_info::do_find_public_src): Adjust.
7522 (__vmi_class_type_info::do_dyncast): Adjust.
7523 (__vmi_class_type_info::do_upcast): Adjust.
7524
7525 2000-04-07 Nathan Sidwell <nathan@codesourcery.com>
7526
7527 * tinfo.cc (convert_to_base): New function.
7528 (get_vbase_offset): Remove. Move into convert_to_base.
7529 (__vmi_class_type_info::do_find_public_src): Adjust.
7530 (__vmi_class_type_info::do_dyncast): Adjust.
7531 (__vmi_class_type_info::do_upcast): Adjust.
7532
7533 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
7534
7535 * tinfo.cc (operator=): Use __builtin_strcmp.
7536 * tinfo2.cc (before): Likewise.
7537
7538 2000-04-06 Mark Mitchell <mark@codesourcery.com>
7539
7540 * cp-tree.h (lang_decl_flags): Rename saved_inline to deferred.
7541 (DECL_SAVED_INLINE): Rename to ...
7542 (DECL_DEFERRED_FN): ... this.
7543 (in_function_p): Remove declaration.
7544 (mark_inline_for_output): Rename to ...
7545 (defer_fn): ... this.
7546 * decl.c (finish_function): Adjust call to mark_inline_for_output.
7547 (in_function_p): Remove definition.
7548 * decl2.c (saved_inlines): Rename to ...
7549 (deferred_fns): ... this.
7550 (saved_inlines_used): Rename to ...
7551 (deferred_fns_used): ... this.
7552 (mark_inline_for_output): Rename to ...
7553 (defer_fn): ... this.
7554 (finish_file): Adjust accordingly.
7555 (init_decl2): Likewise.
7556 * lex.c (cons_up_default_function): Likewise.
7557 * pt.c (mark_decl_instantiated): Likewise.
7558 (instantiate_decl): Don't set DECL_DEFER_OUTPUT under any
7559 circumstances.
7560 * rtti.c (get_tinfo_decl): Adjust call to mark_inline_for_output.
7561 * semantics.c (expand_body): Defer more functions.
7562
7563 2000-04-06 Nathan Sidwell <nathan@codesourcery.com>
7564
7565 * vec.cc: New file.
7566 * Make-lang.in (CXX_LIB2FUNCS): Add it.
7567 (vec.o): Build it.
7568 * inc/cxxabi.h (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
7569 __cxa_vec_delete): Declare.
7570
7571 2000-04-06 Nathan Sidwell <nathan@codesourcery.com>
7572
7573 * rtti.c (dfs_class_hint_mark): New static function.
7574 (dfs_class_hint_unmark): New static function.
7575 (class_hint_flags): Use them.
7576
7577 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
7578
7579 * decl2.c: Make flag_honor_std dependant on ENABLE_STD_NAMESPACE.
7580
7581 2000-04-05 Mark Mitchell <mark@codesourcery.com>
7582
7583 * cp-tree.h (instantiate_decl): Change prototype.
7584 * decl2.c (mark_used): Adjust call.
7585 * optimize.c (inlinable_function_p): Adjust handling of templates.
7586 * pt.c (do_decl_instantiation): Adjust call to instantiate_decl.
7587 (do_type_instantiation): Likewise.
7588 (instantiate_decl): Defer more templates.
7589 (instantiate_pending_templates): Adjust logic to handle inline
7590 friend functions.
7591
7592 * Makefile.in (GGC_H): New variable. Use it throughout in place
7593 of ggc.h.
7594
7595 * call.c: Don't include obstack.h. Include ggc.h.
7596 (obstack_chunk_alloc): Don't define.
7597 (obstack_chunk_free): Likewise.
7598 (add_candidate): Allocate the z_candidate with ggc_alloc_obj.
7599 * decl.c (push_switch): Use xmalloc to allocate the cp_switch.
7600 (pop_switch): Free it.
7601
7602 * decl2.c (grokclassfn): Set TREE_READONLY for PARM_DECLs.
7603
7604 * dump.c (dequeue_and_dump): Don't try to print the bit_position
7605 if we don't have a DECL_FIELD_OFFSET.
7606
7607 Wed Apr 5 15:12:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
7608
7609 * optimize.c (calls_setjmp_r): Use setjmp_call_p instead of
7610 special_function_p.
7611
7612 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7613
7614 * cfns.gperf (hash, libc_name_p): Prototype.
7615
7616 * rtti.c (build_dynamic_cast_1): Constification.
7617
7618 * search.c (dfs_debug_unmarkedp, dfs_debug_mark): Unhide prototypes.
7619
7620 * semantics.c (deferred_type_access_control): Prototype.
7621
7622 2000-04-04 Mark Mitchell <mark@codesourcery.com>
7623
7624 Correct many new ABI issues regarding vbase and vcall offset
7625 layout.
7626 * cp-tree.h (BINFO_VTABLE): Document.
7627 (struct lang_type): Tweak formatting.
7628 (BINFO_PRIMARY_BINFO): Add to documentation.
7629 (CLASSTYPE_VSIZE): Fix typo in comment.
7630 (CLASSTYPE_VBASECLASSES): Update documentation.
7631 (BINFO_VBASE_MARKED): Remove.
7632 (SET_BINFO_VBASE_MARKED): Likewise.
7633 (CLEAR_BINFO_VBASE_MARKED): Likewise.
7634 (BINFO_FIELDS_MARKED): Remove.
7635 (SET_BINFO_FIELDS_MARKED): Likewise.
7636 (CLEAR_BINFO_FIELDS_MARKED): Likewise.
7637 (enum access_kind): New enumeration.
7638 (num_extra_vtbl_entries): Remove declaration.
7639 (size_extra_vtbl_entries): Likewise.
7640 (get_vtbl_decl_for_binfo): New function.
7641 (dfs_vbase_unmark): Remove declaration.
7642 (mark_primary_bases): Likewise.
7643 * class.c (SAME_FN): Remove.
7644 (struct vcall_offset_data_s): Move definition.
7645 (build_vbase_pointer): Use `build', not `build_binary_op', to
7646 access the vbase pointer under the new ABI.
7647 (build_vtable_entry_ref): Use get_vtbl_decl_for_binfo.
7648 (build_primary_vtable): Likewise.
7649 (dfs_mark_primary_bases): Move here from search.c.
7650 (mark_primary_bases): Likewise.
7651 (determine_primary_bases): Under the new ABI, don't make a base
7652 class a primary base just because we don't yet have any virtual
7653 functions.
7654 (layout_vtable_decl): Use get_vtbl_decl_for_binfo.
7655 (num_vfun_entries): Remove.
7656 (dfs_count_virtuals): Likewise.
7657 (num_extra_vtbl_entries): Likewise.
7658 (size_extra_vtbl_entries): Likewise.
7659 (layout_virtual_bases): Iterate in inheritance graph order under
7660 the new ABI.
7661 (finish_struct_1): Use TYPE_VFIELD, not CLASSTYPE_VSIZE, to
7662 indicate that a vfield is present.
7663 (init_class_processing): Initialize access_public_node, etc., from
7664 ak_public, etc.
7665 (get_vtbl_decl_for_binfo): New function.
7666 (dump_class_hierarchy_r): Likewise.
7667 (dump_class_hierarchy): Use it.
7668 (finish_vtbls): Build the vtbls in inheritance graph order.
7669 (dfs_finish_vtbls): Adjust call to build_vtbl_initializer.
7670 (initialize_vtable): Use get_vtbl_decl_for_binfo.
7671 (accumulate_vtbl_inits): Add comments explaining why a pre-order
7672 walk is required.
7673 (dfs_accumulate_vtbl_inits): Set BINFO_VTABLE to the location
7674 where the vptr points, even for primary vtables.
7675 (build_vtbl_initializer): Adjust handling of vbase and vcall
7676 offsets.
7677 (build_vcall_and_vbase_vtable_entries): New function.
7678 (dfs_build_vbase_offset_vtbl_entries): Remove.
7679 (build_vbase_offset_vtbl_entries): Reimplement.
7680 (dfs_build_vcall_offset_vtbl_entries): Don't include virtuals that
7681 were already handled in a primary base class vtable.
7682 (build_vcall_offset_vtbl_entries): Adjust.
7683 (build_rtti_vtbl_entries): Adjust.
7684 * decl2.c (output_vtable_inherit): Use get_vtbl_decl_for_binfo.
7685 * init.c (expand_virtual_init): Simplify.
7686 * repo.c (repo_get_id): Use get_vtbl_decl_for_binfo.
7687 * rtti.c (create_pseudo_type_info): Adjust calculation of vptr.
7688 * search.c (BINFO_ACCESS): New macro.
7689 (SET_BINFO_ACCESS): Likewise.
7690 (dfs_access_in_type): Manipulate access_kinds, not access nodes.
7691 (access_in_type): Likewise.
7692 (dfs_accessible_p): Likewise.
7693 (protected_accessible_p): Likewise.
7694 (lookup_fnfields_1): Adjust documentation.
7695 (dfs_mark_primary_bases): Move to class.c
7696 (mark_primary_bases): Likewise.
7697 (dfs_vbase_unmark): Remove.
7698 (virtual_context): Use BINFO_FOR_VBASE.
7699 (dfs_get_vbase_types): Simplify.
7700 (dfs_build_inheritance_graph_order): New function.
7701 (get_vbase_types): Use it.
7702 * tree.c (debug_binfo): Use get_vtbl_decl_for_binfo.
7703
7704 * tinfo.cc (get_vbase_offset): New function.
7705 (__vmi_class_type_info::do_find_public_src): Use it.
7706 (__vmi_class_type_info::do_dyncast): Likewise.
7707 (__vmi_class_type_info::do_upcast): Likewise.
7708
7709 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
7710
7711 * lang-specs.h: Pass -fno-show-column to the preprocessor.
7712
7713 2000-03-30 Nathan Sidwell <nathan@codesourcery.com>
7714
7715 * rtti.c (class_hint_flags): Rename flags.
7716 (class_initializer): Remove flags.
7717 (synthesize_tinfo_var): Combine offset and flags. Add flags
7718 for __vmi_class_type_info.
7719 (create_tinfo_types): Remove flags from __class_type_info and
7720 __si_class_type_info. Merge flags and offset from
7721 base_class_type_info.
7722 * inc/cxxabi.h (__base_class_info): Merge offset and vmi_flags.
7723 (__base_class_info::is_virtual_p): Adjust.
7724 (__base_class_info::is_public_p): Adjust.
7725 (__base_class_info::offset): New accessor.
7726 (__class_type_info::details): Remove member.
7727 (__class_type_info::__class_type_info): Lose details.
7728 (__class_type_info::detail_masks): Remove.
7729 (__si_class_type_info::__si_class_type_info): Lose details.
7730 (__vmi_class_type_info::details): New member.
7731 (__vmi_class_type_info::__vmi_class_type_info): Adjust.
7732 (__vmi_class_type_info::detail_masks): New member.
7733 * tinfo.cc (__class_type_info::do_upcast): Initialize result
7734 with unknown_details_mask.
7735 (__vmi_class_type_info::do_find_public_src): Adjust
7736 (__vmi_class_type_info::do_dyncast): Adjust.
7737 (__vmi_class_type_info::do_upcast): Set result details, if
7738 needed. Adjust.
7739 (__dynamic_cast): Temporarily #if out optimization.
7740
7741 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
7742
7743 * rtti.c (get_tinfo_decl): Mark used.
7744 (emit_tinfo_decl): Don't optimize polymorphic type_info. Only
7745 mark as dealt with, if we output it.
7746
7747 2000-03-28 Mark Mitchell <mark@codesourcery.com>
7748
7749 * class.c: Reorganize to put virtual function table initialization
7750 machinery at the end of the file.
7751
7752 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
7753
7754 * class.c (finish_struct): Use bitsize_zero_node.
7755 * pt.c (instantiate_class_template): Likewise.
7756
7757 2000-03-28 Mark Mitchell <mark@codesourcery.com>
7758
7759 Put RTTI entries at negative offsets in new ABI.
7760 * class.c (dfs_build_vbase_offset_vtbl_entries): Put the first
7761 vbase offset at index -3, not -1.
7762 (build_vtabe_offset_vtbl_entries): Use unmarked_vtable_pathp, not
7763 dfs_vtable_path_unmarked_real_bases_queue_p to walk bases.
7764 (dfs_build_vcall_offset_vtbl_entries): Don't use skip_rtti_stuff.
7765 (build_rtti_vtbl_entries): New function.
7766 (set_rtti_entry): Remove.
7767 (build_primary_vtable): Don't use it.
7768 (build_secondary_vtable): Likewise.
7769 (start_vtable): Remove.
7770 (first_vfun_index): New function.
7771 (set_vindex): Likewise.
7772 (add_virtual_function): Don't call start_vtable. Do call
7773 set_vindex.
7774 (set_primary_base): Rename parameter.
7775 (determine_primary_base): Likewise.
7776 (num_vfun_entries): Don't use skip_rtti_stuff.
7777 (num_extra_vtbl_entries): Include RTTI information.
7778 (build_vtbl_initializer): Use build_rtti_vtbl_entries.
7779 (skip_rtti_stuff): Remove.
7780 (dfs_modify_vtables): Don't use it.
7781 (modify_all_vtables): Don't use start_vtable. Do use set_vindex.
7782 (layout_nonempty_base_or_field): Update size handling.
7783 (create_vtable_ptr): Tweak.
7784 (layout_class_type): Adjust parameter names.
7785 (finish_struct_1): Simplify.
7786 * cp-tree.h (CLASSTYPE_VSIZE): Tweak documentation.
7787 (skip_rtti_stuff): Remove.
7788 (first_vfun_index): New function.
7789 (dfs_vtable_path_unmarked_real_bases_queue_p): Remove.
7790 (dfs_vtable_path_marked_real_bases_queue_p): Remove.
7791 (marked_vtable_pathp): Declare.
7792 (unmarked_vtable_pathp): Likewise.
7793 * error.c (dump_expr): Use first_vfun_index to calculate vtable
7794 offsets.
7795 * rtti.c (build_headof): Look for RTTI at negative offsets.
7796 (get_tinfo_decl_dynamic): Likewise.
7797 (tinfo_base_init): Don't take the address of the TINFO_VTABLE_DECL
7798 here.
7799 (create_pseudo_type_info): Do it here instead. Adjust so that
7800 vptr points at first virtual function.
7801 * search.c (marked_vtable_pathp): Make it global.
7802 (unmarked_vtable_pathp): Likewise.
7803 (dfs_vtable_path_unmarked_real_bases_queue_p): Remove.
7804 (dfs_vtable_path_marked_real_bases_queue_p): Likewise.
7805 (dfs_get_pure_virtuals): Don't use skip_rtti_stuff.
7806 (get_pure_virtuals): Likewise.
7807 (expand_upcast_fixups): Likewise.
7808 * tree.c (debug_binfo): Likewise.
7809 * tinfo.cc (__dynamic_cast): Look for vtable_prefix at appropriate
7810 negative offset.
7811
7812 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7813
7814 * class.c (check_field_decl): Fix typo.
7815 (build_vtbl_or_vbase_field): Don't clear DECL_SAVED_INSNS.
7816 (check_methods): Likewise.
7817 (check_field_decls): Likewise.
7818 Use DECL_CONTEXT, not DECL_FIELD_CONTEXT.
7819 * cp-tree.h (DECL_SHADOWED_FOR_VAR, DECL_TEMPLATE_RESULT):
7820 Use DECL_RESULT_FLD, not DECL_RESULT.
7821 * decl.c (xref_tag): Use DECL_TEMPLATE_RESULT.
7822 * lex.c (identifier_type): Likewise.
7823 * pt.c (determine_specialization, lookup_template_class): Likewise.
7824 (tsubst_friend_function, tsubst_decl, instantiate_template): Likewise.
7825 (resolve_overloaded_unification, more_specialized): Likewise.
7826 * semantics.c (finish_member_declaration): Likewise.
7827 * typeck.c (build_x_function_call): Likewise.
7828
7829 2000-03-26 Mark Mitchell <mark@codesourcery.com>
7830
7831 * class.c (layout_empty_base): Handle empty bases with non-byte
7832 alignment.
7833 (build_base_field): Likewise.
7834 (layout_virtual_bases): Likewise.
7835
7836 * class.c (finish_struct_1): Fix typo in this change:
7837
7838 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7839
7840 2000-03-25 Mark Mitchell <mark@codesourcery.com>
7841
7842 * decl.c (grokdeclarator): Count partial specializations when
7843 keeping track of how many template classes have been seen.
7844
7845 * dump.c (dequeue_and_dump): Dump DECL_TEMPLATE_RESULT.
7846
7847 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7848
7849 * class.c (build_vbase_pointer_fields): layout_field now place_field.
7850 (get_vfield_offset): Use byte_position.
7851 (set_rtti_entry): Set OFFSET to ssizetype zero.
7852 (get_binfo_offset_as_int): Deleted.
7853 (dfs_record_base_offsets): Use tree_low_cst.
7854 (dfs_search_base_offsets): Likewise.
7855 (layout_nonempty_base_or_field): Reflect changes in RLI format
7856 and call byte_position.
7857 (layout_empty_base): Convert offset to ssizetype.
7858 (build_base_field): use rli_size_unit_so_far.
7859 (dfs_propagate_binfo_offsets): Do computation in proper type.
7860 (layout_virtual_bases): Pass ssizetype to propagate_binfo_offsets.
7861 (layout_class_type): Reflect changes in RLI names and fields.
7862 (finish_struct_1): Set DECL_FIELD_OFFSET.
7863 * dump.c (dequeue_and_dump): Call bit_position.
7864 * expr.c (cplus_expand_constant): Use byte_position.
7865 * rtti.c (expand_class_desc): Use bitsize_one_node.
7866 * typeck.c (build_component_addr): Use byte_position and don't
7867 special case for zero offset.
7868
7869 2000-03-24 Nathan Sidwell <nathan@codesourcery.com>
7870
7871 * decl.c (vtype_decl_p): Use TYPE_POLYMORPHIC_P.
7872
7873 * rtti.c (get_tinfo_decl): Set comdat linkage on new-abi
7874 tinfo object.
7875 (emit_tinfo_decl): Only emit polymorphic tinfo's when emitting
7876 vtable.
7877
7878 2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7879
7880 * call.c (check_dtor_name, build_new_method_call): Use TYPE_P and
7881 DECL_P macros.
7882 * decl.c (push_class_binding, poplevel, pushtag, lookup_namespace_name,
7883 make_typename_type, check_initializer, cp_finish_decl,
7884 xref_tag): Likewise.
7885 * decl2.c (grokfield, build_expr_from_tree, build_expr_from_tree,
7886 decl_namespace, arg_assoc_template_arg, arg_assoc,
7887 validate_nonmember_using_decl, do_class_using_decl): Likewise.
7888 * error.c (dump_template_argument, dump_expr, cp_file_of, cp_line_of,
7889 args_to_string): Likewise.
7890 * friend.c (is_friend): Likewise.
7891 * lex.c (note_got_semicolon, note_list_got_semicolon,
7892 is_global): Likewise.
7893 * method.c (build_overload_nested_name, build_overload_value,
7894 build_qualified_name, build_qualified_name, hack_identifier): Likewise.
7895 * parse.y (typename_sub, typename_sub1): Likewise.
7896 * pt.c (push_inline_template_parms_recursive, check_template_shadow,
7897 process_partial_specialization, convert_template_argument,
7898 template_args_equal, add_pending_template, lookup_template_class,
7899 for_each_template_parm_r, maybe_fold_nontype_arg,
7900 tsubst, instantiate_template, type_unification_real, unify,
7901 instantiate_pending_templates, set_mangled_name_for_template_decl):
7902 Likewise.
7903 * repo.c (repo_get_id, repo_template_used): Likewise.
7904 * search.c (lookup_field_1): Likewise.
7905 * tree.c (walk_tree, get_type_decl, cp_tree_equal, member_p): Likewise.
7906 * xref.c (classname): Likewise.
7907
7908 2000-03-22 Mark Mitchell <mark@codesourcery.com>
7909
7910 * cp-tree.h (BINFO_FOR_VBASE): Adjust documentation.
7911 (CANONICAL_BINFO): New macro.
7912 (BINFO_NEW_VTABLE_MARKED): Use it.
7913 (SET_BINFO_NEW_VTABLE_MARKED): Likewise.
7914 (CLEAR_BINFO_NEW_VTABLE_MARKED): Likewise.
7915 * class.c (dfs_build_vbase_offset_vtbl_entries): Use BINFO_TYPE,
7916 not TREE_TYPE.
7917 (build_primary_vtable): Adjust usage of BINFO_NEW_VTABLE_MARKED.
7918 (build_secondary_vtable): Likewise.
7919 (dfs_finish_vtbls): Likewise.
7920 (dfs_accumulate_vtbl_inits): Likewise.
7921 (accumulate_vtbl_inits): New function.
7922 (finish_vtbls): Make sure that virtual bases come after
7923 non-virtual bases in the vtable group.
7924 (record_base_offsets): Don't save and restore TREE_VIA_VIRTUAL.
7925 (finish_struct_1): Adjust usage of BINFO_NEW_VTABLE_MARKED.
7926 * search.c (struct vbase_info): Move definition.
7927 (marked_new_vtable_p): Adjust usage of BINFO_NEW_VTABLE_MARKED.
7928 (unmarked_new_vtable_p): Likewise.
7929 (dfs_mark_vtable_path): Remove.
7930 (dfs_mark_new_vtable): Remove.
7931 (dfs_unmark_new_vtable): Likewise.
7932 (dfs_clear_search_slot): Likewise.
7933 (dfs_find_vbases): Adjust usage of BINFO_NEW_VTABLE_MARKED.
7934 (dfs_clear_vbase_slots): Likewise.
7935 (init_vbase_pointers): LIkewise.
7936
7937 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7938
7939 * typeck.c (type_after_usual_arithmetic_conversions): Prefer a
7940 SIZETYPE to a non-SIZETYPE.
7941
7942 2000-03-21 Mark Mitchell <mark@codesourcery.com>
7943
7944 * class.c (layout_virtual_bases): Adjust names in conditionally
7945 compiled code.
7946
7947 * class.c (record_base_offsets): New function.
7948 (layout_conflict_p): Likewise.
7949 (layout_nonempty_base_or_field): Use it.
7950 (layout_empty_base): New function.
7951 (build_base_field): Use it.
7952 (build_base_fields): Update comment.
7953 (layout_virtual_bases): Fold in a little code form
7954 layout_basetypes. Use layout_empty_base.
7955 (layout_basetypes): Remove.
7956 (end_of_class): New function.
7957 (layout_class_type): Use it. Adjust.
7958
7959 * cp-tree.h (CLASSTYPE_VBASECLASSES): Fix typo in comment.
7960 (fntype_p): Remove.
7961 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Fix typo in
7962 comment.
7963 (dfs_skip_nonprimary_vbases_markedp): Likewise.
7964 * typeck.c (fntype_p): Remove.
7965
7966 * cp-tree.h (TI_SPEC_INFO): Remove.
7967 (CLASSTYPE_TI_SPEC_INFO): Likewise.
7968 * pt.c (process_partial_specialization): Likewise.
7969
7970 * class.c (build_base_field): Fix thinko in computation of binfo
7971 offsets.
7972
7973 * tree.c (mark_local_for_remap_p): Mark variables declared in
7974 TARGET_EXPRs as well.
7975
7976 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
7977
7978 * typeck.c (require_complete_type, complete_type,
7979 complete_type_or_else, c_sizeof, c_sizeof_nowarn,
7980 build_array_ref, convert_arguments, pointer_diff,
7981 build_x_unary_op, build_unary_op, build_c_cast,
7982 build_modify_expr): Use COMPLETE_TYPE_P etc.
7983 * call.c (is_complete, convert_like_real,
7984 build_new_method_call): Likewise.
7985 * class.c (build_vbase_pointer_fields, check_bases,
7986 build_base_field, finish_struct_1, pushclass): Likewise.
7987 * cvt.c (cp_convert_to_pointer, convert_to_void): Likewise.
7988 * decl.c (maybe_process_template_type_declaration, pushtag,
7989 pushdecl, redeclaration_error_message, start_decl, start_decl_1,
7990 layout_var_decl, check_initializer, cp_finish_decl,
7991 grokdeclarator, require_complete_types_for_parms,
7992 grok_op_properties, xref_tag, xref_basetypes,
7993 check_function_type): Likewise.
7994 * decl2.c (check_classfn, reparse_absdcl_as_casts): Likewise.
7995 * friend.c (do_friend): Likewise.
7996 * init.c (build_offset_ref): Likewise.
7997 * parse.y (structsp): Likewise.
7998 * pt.c (maybe_process_partial_specialization,
7999 tsubst_friend_function, instantiate_class_template, tsubst,
8000 do_type_instantiation, instantiate_pending_templates): Likewise.
8001 * repo.c (repo_get_id): Likewise.
8002 * rtti.c (build_typeid, get_typeid, build_dynamic_cast_1,
8003 synthesize_tinfo_var, emit_support_tinfos): Likewise.
8004 * search.c (lookup_fnfields_1, lookup_conversions): Likewise.
8005 * semantics.c (begin_class_definition): Likewise.
8006 * tree.c (build_cplus_method_type): Likewise.
8007 * typeck2.c (digest_init, build_functional_cast,
8008 add_exception_specifier): Likewise.
8009 * parse.h, parse.c: Regenerated.
8010
8011 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
8012
8013 * inc/cxxabi.h: New header file. Define new-abi entry points.
8014 (__pointer_type_info::target): Rename member to ...
8015 (__pointer_type_info::type): ... here.
8016 (__base_class_info::type): Rename member to ...
8017 (__base_class_info::base): ... here.
8018 * Make-lang.in (CXX_EXTRA_HEADERS): Add cxxabi.h
8019 * cp-tree.h (CPTI_ABI): New global tree enumeration.
8020 (abi_node): New global tree node.
8021 * decl.c (abi_node): Document.
8022 (init_decl_processing): Initialize abi_node.
8023 * rtti.c (build_dynamic_cast_1): Use abi_node for new-abi.
8024 (get_vmi_pseudo_type_info): Likewise.
8025 (create_tinfo_types): Likewise.
8026 (emit_support_tinfos): Likewise.
8027 * tinfo.h (cxxabi.h): Include for new-abi.
8028 Move rtti class definitions to new header file.
8029 * tinfo.cc (abi): Use the namespace.
8030 (std): Move new abi rtti classes from here ...
8031 (__cxxabiv1): ... to here.
8032 * tinfo2.cc (cxxabi.h): Include for new-abi.
8033 Move rtti class definitions to new header file.
8034 (std): Move new abi rtti classes from here ...
8035 (__cxxabiv1): ... to here.
8036 * inc/typeinfo (__class_type_info): Move into __cxxabiv1
8037 namespace.
8038
8039 2000-03-20 Jed Wing <jedwin@zloty.ugcs.caltech.edu>
8040 Jason Merrill <jason@casey.cygnus.com>
8041
8042 * method.c (build_overload_int): Use host_integerp.
8043
8044 2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8045
8046 * init.c (build_offset_ref): Handle the case of a templated member
8047 function.
8048
8049 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8050
8051 * except.c (expand_exception_blocks): Clear catch_clauses_last.
8052
8053 2000-03-18 Mark Mitchell <mark@codesourcery.com>
8054
8055 * cp-tree.h (CLEAR_DECL_C_BIT_FIELD): New macro.
8056 * class.c (check_bitfield_decl): Turn illegal bitfields into
8057 non-bitfields.
8058 (dfs_propagate_binfo_offsets): Adjust for new size_binop
8059 semantics.
8060 (dfs_offset_for_unshared_vbases): Likewise.
8061 * cvt.c (cp_convert_to_pointer): Convert NULL to a
8062 pointer-to-member correctly under the new ABI.
8063 * expr.c (cplus_expand_constant): Don't use cp_convert when
8064 turning an offset into a pointer-to-member.
8065 * init.c (resolve_offset_ref): Don't adjust pointers-to-members
8066 when dereferencing them under the new ABI.
8067 * typeck.c (get_member_function_from_ptrfunc): Tweak calculation
8068 of pointers-to-members under the new ABI.
8069
8070 * class.c (check_bitfield_decl): Remove restriction on really long
8071 bitfields.
8072 (layout_class_type): Implement new ABI handling of bitfields
8073 longer than their types.
8074
8075 2000-03-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8076
8077 * parse.y (extdefs): Call ggc_collect.
8078 * parse.c: Regenerated.
8079
8080 2000-03-18 Nathan Sidwell <nathan@codesourcery.com>
8081
8082 * class.c (build_base_field): Use TYPE_ALIGN to examine a type.
8083 (note_name_declared_in_class): Use OVL_CURRENT to get at a
8084 potential overload.
8085
8086 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8087
8088 * class.c (build_vbase_path): Use integer_zerop.
8089 (build_vtable_entry): Use tree_low_cst.
8090 (get_vfield_offset): Use bit_position.
8091 (dfs_modify_vtables): New variable vindex_val; `i' is HOST_WIDE_INT.
8092 Use tree_low_cst.
8093 (check_bitfield_decl): Set DECL_SIZE using convert.
8094 (build_base_field): Set DECL_SIZE and DECL_SIZE_UNIT using size_binop.
8095 (layout_virtual_bases): DSIZE is unsigned HOST_WIDE_INT.
8096 Use tree_low_cst.
8097 (finish_struct_1): Use bit_position.
8098 (dump_class_hierarchy): Use tree_low_cst.
8099 * cp-tree.h (min_precision): Add declaration.
8100 * decl.c (xref_tag, xref_basetypes): Use tree_low_cst.
8101 * error.c (dump_type_suffix): Use host_integerp and tree_low_cst.
8102 (dump_expr): Use integer_zerop, host_integerp, and tree_low_cst.
8103 * expr.c (cplus_expand_constant): Use bit_position.
8104 * init.c (build_vec_init): Use host_integerp and tree_low_cst.
8105 * rtti.c (get_base_offset): Use bit_position.
8106 * typeck.c (build_binary_op): Use integer_zerop, compare_tree_int,
8107 host_integerp, and tree_low_cst.
8108 (pointer_int_sum): Use integer_zerop.
8109 (build_component_addr): Use bit_position.
8110
8111 2000-03-17 Nathan Sidwell <nathan@codesourcery.com>
8112
8113 * typeck.c (require_complete_type): Don't assume size_zero_node.
8114 (complete_type_or_else): Likewise.
8115
8116 2000-03-16 Steven Grady <grady@digitaldeck.com>
8117 Jason Merrill <jason@casey.cygnus.com>
8118
8119 * rtti.c (build_dynamic_cast_1): Improve diagnostics.
8120
8121 2000-03-16 Nathan Sidwell <nathan@codesourcery.com>
8122
8123 * decl2.c (grokfield): Bail out if type is error_mark_node.
8124
8125 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
8126
8127 * tinfo2.cc (__ptr_to_member_data): Rename to ...
8128 (__pointer_to_member_data): ... here. Adjust.
8129 * rtti.c (create_tinfo_types): Adjust.
8130
8131 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
8132
8133 * cp-tree.h (CPTI_REF_DESC_TYPE, ref_desc_type_node): Remove.
8134 * decl.c (ref_desc_type_node): Undocument.
8135 * rtti.c (ptr_ref_initializer): Rename to ...
8136 (ptr_initializer): ... here. Adjust comments.
8137 (ptmd_initializer): Fix comment thinko.
8138 (synthesize_tinfo_var): Remove REFERENCE_TYPE case.
8139 (create_tinfo_types): Remove ref_desc_type_node init.
8140 * tinfo2.cc (__reference_type_info): Remove.
8141
8142 2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
8143
8144 * decl.c (cp_finish_decl): Remove obsolete comment.
8145
8146 * typeck.c (build_ptrmemfunc1): Kill uninitialized warning.
8147
8148 2000-03-14 Mark Mitchell <mark@codesourcery.com>
8149
8150 * cp-tree.h: Tweak documentation.
8151 * class.c (build_vbase_pointer_fields): Layout the fields, too.
8152 (avoid_overlap): Remove.
8153 (get_binfo_offset_as_int): New function.
8154 (dfs_serach_base_offsets): Likewise.
8155 (layout_nonempty_base_or_field): Likewise.
8156 (build_base_field): Layout fields here. Avoid placing two objects
8157 of the same type at the same address, under the new ABI.
8158 (build_base_fields): Adjust accordingly.
8159 (create_vtable_ptr): Return the new field, but don't attach it to
8160 TYPE_FIELDS.
8161 (remove_base_field): Remove.
8162 (remove_base_fields): Remove.
8163 (layout_basetypes): Adjust accordingly.
8164 (layout_class_type): Call layout_field for each field, rather than
8165 just making a wholesale call to layout_type.
8166
8167 2000-03-14 Jeff Sturm <jsturm@sigma6.com>
8168
8169 * except.c (expand_throw): Fix typo in _Jv_Sjlj_Throw.
8170
8171 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
8172
8173 * decl.c (grokfndecl): Set TREE_NOTHROW if TYPE_NOTHROW_P.
8174
8175 * except.c (dtor_nothrow): New fn.
8176 (do_pop_exception): Use it. Take type parm.
8177 (push_eh_cleanup): Take type parm.
8178 (expand_start_catch_block): Pass it.
8179 (build_eh_type_type_ref): Accept null type.
8180
8181 2000-03-12 Mark Mitchell <mark@codesourcery.com>
8182
8183 * cp-tree.h (revert_static_member_fn): Change prototype.
8184 * decl.c (grokfndecl): Adjust call to revert_static_member_fn.
8185 (grok_op_properties): Likewise.
8186 (start_function): Likewise.
8187 (revert_static_member_fn): Simplify.
8188 * pt.c (check_explicit_specialization): Adjust call to
8189 revert_static_member_fn.
8190
8191 2000-03-11 Mark Mitchell <mark@codesourcery.com>
8192
8193 * cp-tree.h (scope_kind): New type.
8194 (tmpl_spec_kind): Likewise.
8195 (declare_pseudo_global_level): Remove.
8196 (pseudo_global_level_p): Rename to template_parm_scope_p.
8197 (pushlevel): Remove declaration.
8198 (begin_scope): New function.
8199 (finish_scope): Likewise.
8200 (current_tmpl_spec_kind): Likewise.
8201 * decl.c (struct binding_level): Shorten parm_flag to 2 bits.
8202 Shorten keep to 2 bits. Rename pseudo_global to template_parms_p.
8203 Add template_spec_p.
8204 (toplevel_bindings_p): Adjust.
8205 (declare_pseudo_global_level): Remove.
8206 (pseudo_global_level_p): Rename to template_parm_scope_p.
8207 (current_tmpl_spec_kind): New function.
8208 (begin_scope): Likewise.
8209 (finish_scope): Likewise.
8210 (maybe_push_to_top_level): Adjust.
8211 (maybe_process_template_type_declaration): Likewise.
8212 (pushtag): Likewise.
8213 (pushdecl_nonclass_level): Likewise.
8214 (lookup_tag): Likewise.
8215 (grokfndecl): Handle member template specializations. Share
8216 constructor and non-constructor code.
8217 * decl2.c (check_classfn): Handle member template specializations.
8218 * pt.c (begin_template_parm_list): Use begin_scope.
8219 (begin_specialization): Likewise.
8220 (end_specialization): Likewise.
8221 (check_explicit_specialization): Use current_tmpl_spec_kind.
8222 Handle member template specializations.
8223 (end_template_decl): Use finish_scope. Remove call to
8224 get_pending_sizes.
8225 (push_template_decl_real): Remove bogus error message.
8226 (tsubst_decl): Fix typo in code contained in comment.
8227 (instantiate_template): Handle member template specializations.
8228 (most_general_template): Likewise.
8229
8230 2000-03-11 Gabriel Dos Reis <gdr@codesourcery.com>
8231
8232 * lex.c (whitespace_cr): Compress consecutive calls to warning().
8233 (do_identifier): Ditto for error().
8234
8235 * pt.c (convert_nontype_argument): Ditto for cp_error().
8236 (convert_template_argument): Ditto for cp_pedwarn().
8237
8238 2000-03-11 Jason Merrill <jason@casey.cygnus.com>
8239
8240 * exception.cc (__check_null_eh_spec): New fn.
8241 * except.c (expand_end_eh_spec): Call it if the spec is throw().
8242
8243 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
8244
8245 * decl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
8246 * except.c (expand_end_eh_spec): Add the return type.
8247 * rtti.c (throw_bad_cast): Add the parmtypes.
8248 (throw_bad_typeid): Likewise.
8249
8250 * semantics.c (expand_stmt): Only leave out rtl for unused
8251 artificials, and set DECL_IGNORED_P on them as well.
8252 * decl.c (wrapup_globals_for_namespace): Likewise.
8253
8254 2000-03-09 Nathan Sidwell <nathan@codesourcery.com>
8255
8256 * decl.c (maybe_commonize_var): Skip all artificial decls.
8257 * pt.c (tsubst_decl): Don't copy TREE_ASM_WRITTEN.
8258
8259 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
8260
8261 * lang-options.h, decl2.c: Add -fno-enforce-eh-specs.
8262 * cp-tree.h: Declare flag_enforce_eh_specs.
8263 * decl.c (store_parm_decls, finish_function): Check it.
8264
8265 C library functions don't throw.
8266 * Makefile.in (cfns.h): New target.
8267 (except.o): Depend on it.
8268 * Make-lang.in (cc1plus): Depend on cfns.gperf.
8269 * cfns.gperf: New file.
8270 * cfns.h: Generated.
8271 * except.c: Include it.
8272 (nothrow_libfn_p): New fn.
8273 * decl.c (grokfndecl): Use it.
8274 * cp-tree.h: Declare it.
8275
8276 * decl.c (push_overloaded_decl_1, auto_function,
8277 define_function): Lose.
8278 (build_library_fn_1): New static fn.
8279 (builtin_function): Use it.
8280 (get_atexit_node): Use build_library_fn_ptr.
8281 (build_library_fn, build_cp_library_fn, build_library_fn_ptr,
8282 build_cp_library_fn_ptr, push_library_fn, push_cp_library_fn,
8283 push_void_library_fn, push_throw_library_fn): New fns.
8284 * cp-tree.h: Declare them.
8285 (cp_tree_index): Remove CPTI_BAD_CAST, CPTI_BAD_TYPEID.
8286 (throw_bad_cast_node, throw_bad_typeid_node): Lose.
8287 * except.c (init_exception_processing, call_eh_info, do_pop_exception,
8288 (expand_end_eh_spec, alloc_eh_object, expand_throw): Use above fns.
8289 * rtti.c (build_runtime_decl): Lose.
8290 (throw_bad_cast, throw_bad_typeid, get_tinfo_decl,
8291 build_dynamic_cast_1, expand_si_desc, expand_class_desc,
8292 expand_ptr_desc, expand_attr_desc, expand_generic_desc): Use above fns.
8293
8294 * call.c (build_call): Remove result_type parm.
8295 Call mark_used on unused artificial fns.
8296 * init.c, method.c, typeck.c, except.c, rtti.c: Adjust.
8297
8298 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
8299
8300 * call.c (build_call): Set TREE_NOTHROW on the CALL_EXPR as
8301 appropriate.
8302 * decl.c (define_function): Set TREE_NOTHROW on the FUNCTION_DECL.
8303 * except.c (call_eh_info, alloc_eh_object, expand_throw): Set
8304 TREE_NOTHROW or TREE_THIS_VOLATILE on the function as appropriate.
8305 * rtti.c (build_runtime_decl, get_tinfo_decl, build_dynamic_cast_1,
8306 expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc,
8307 expand_generic_desc): Likewise.
8308
8309 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
8310
8311 * exception.cc (__cp_pop_exception): Cleanup the original object.
8312
8313 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
8314
8315 * decl.c (grok_op_properties): Merge conversion to void warning
8316 with other silly op warnings.
8317
8318 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
8319
8320 * typeck2.c (process_init_constructor): Set TREE_PURPOSE of
8321 array CONSTRUCTOR elements. Don't use expr_tree_cons.
8322
8323 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
8324
8325 * decl.c (cp_make_fname_decl): New function.
8326 (wrapup_globals_for_namespace): Don't emit unused static vars.
8327 (init_decl_processing): Remove comment about use of
8328 array_domain_type. Set make_fname_decl.
8329 (cp_finish_decl): Remove __FUNCTION__ nadgering.
8330 * semantics.c (begin_compound_stmt): Remove
8331 current_function_name_declared flagging.
8332 (expand_stmt): Don't emit unused local statics.
8333 * typeck.c (decay_conversion): Don't treat __FUNCTION__ decls
8334 specially.
8335
8336 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
8337
8338 * typeck.c (convert_for_assignment): Don't look at array
8339 initializer.
8340 * call.c (convert_like_real): Likewise.
8341
8342 2000-03-07 Jason Merrill <jason@casey.cygnus.com>
8343
8344 Add initial support for '\uNNNN' specifier.
8345 * lex.c (read_ucs): New fn.
8346 (readescape, skip_white_space): Call it.
8347 (is_extended_char, is_extended_char_1): New fns.
8348 (utf8_extend_token): New fn, #if 0'd out.
8349 (real_yylex): Treat extended chars like letters.
8350
8351 * search.c (note_debug_info_needed): Walk the bases even if we
8352 weren't deferring the type itself.
8353
8354 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8355
8356 * decl2.c (finish_objects): Constify a char*.
8357
8358 * method.c (emit_thunk): Likewise.
8359
8360 2000-03-06 Nathan Sidwell <nathan@codesourcery.com>
8361
8362 * typeck.c (dubious_conversion_warnings): Look through
8363 REFERENCE_TYPE.
8364
8365 Mon Mar 6 08:46:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8366
8367 * class.c (dfs_modify_vtables): I is now unsigned.
8368 (check_bitfield_decl): Use tree_int_cst_sgn and compare_tree_int.
8369 (build_base_field): Add casts of TREE_INT_CST_LOW to HOST_WIDE_INT.
8370 * error.c (dump_expr): Cast TREE_INT_CST_HIGH to unsigned.
8371 * init.c (build_vec_init): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
8372 * method.c (build_overload_int): Cast TREE_INT_CST_HIGH to unsigned.
8373 * typeck.c (build_binary_op, case TRUNC_DIV_EXPR):
8374 Call integer_all_onesp.
8375 * typeck2.c (process_init_constructor): Use compare_tree_int.
8376
8377 * lang-specs.h (as): Don't call if -syntax-only.
8378
8379 2000-03-06 Mark Mitchell <mark@codesourcery.com>
8380
8381 * expr.c (cplus_expand_expr, case STMT_EXPR): Don't set
8382 RTL_EXPR_HAS_NO_SCOPE after all.
8383
8384 2000-03-05 Mark Mitchell <mark@codesourcery.com>
8385
8386 * expr.c (cplus_expand_expr, case STMT_EXPR): Use
8387 expand_start_stmt_expr and expand_end_stmt_expr directly. Set
8388 RTL_EXPR_HAS_NO_SCOPE.
8389
8390 * pt.c (instantiate_decl): Clear TI_PENDING_TEMPLATE_FLAG a little
8391 later.
8392
8393 * dump.c (dequeue_and_dump): Dump SCOPE_NO_CLEANUPS_P.
8394
8395 2000-03-05 Nathan Sidwell <nathan@codesourcery.com>
8396
8397 * call.c (convert_like): Macrofy.
8398 (convert_like_with_context): New macro.
8399 (convert_like_real): Renamed from convert_like. Add calling
8400 context parameters, for diagnostics. Add recursive flag. Call
8401 dubious_conversion_warnings for outer conversion.
8402 (build_user_type_conversion): Use convert_like_with_context.
8403 (build_over_call): Likewise. Don't warn about dubious
8404 conversions here. Adjust convert_default_arg calls.
8405 (convert_default_arg): Add context parameters for diagnostics.
8406 Pass throught to convert_like_with_context.
8407 * cp-tree.h (convert_default_arg): Add context parameters.
8408 (dubious_conversion_warnings): Prototype new function.
8409 * typeck.c (convert_arguments): Adjust convert_default_arg call.
8410 (dubious_conversion_warnings): New function, broken
8411 out of convert_for_assignment.
8412 (convert_for_assignment): Adjust.
8413
8414 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
8415
8416 * decl2.c (key_method): Break out from...
8417 (import_export_vtable, import_export_class): ...here.
8418
8419 * decl.c (finish_function): Don't mess with flag_keep_inline_functions.
8420 * decl2.c (finish_vtable_vardecl): Don't check decl_function_context.
8421
8422 * search.c (note_debug_info_needed, dfs_debug_mark,
8423 dfs_debug_unmarkedp): Uncomment. Adjust for new scheme.
8424 * decl2.c (finish_vtable_vardecl): Call note_debug_info_needed.
8425
8426 2000-03-03 Nathan Sidwell <nathan@codesourcery.com>
8427
8428 * decl.c (cp_finish_decl): Remove obsolete obstack comments, fix
8429 typos.
8430
8431 2000-03-02 Mark Mitchell <mark@codesourcery.com>
8432
8433 * cp-tree.h (TYPE_NEEDS_DESTRUCTOR): Rename to ...
8434 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): ... this.
8435 (TYPE_HAS_TRIVIAL_DESTRUCTOR): New macro.
8436 (lang_type): Split gets_new into has_new and has_array_new.
8437 (TYPE_VEC_NEW_USES_COOKIE): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
8438 (TYPE_GETS_NEW): Split into ...
8439 (TYPE_HAS_NEW_OPERATOR): ... this, and ...
8440 (TYPE_HAS_ARRAY_NEW_OPERATOR): ... this.
8441 (DECL_ARRAY_DELETE_OPERATOR_P): New macro
8442 (build_op_new_call): Don't declare.
8443 (build_new_1): Likewise.
8444 * call.c (build_op_new_call): Remove.
8445 * class.c (check_bases): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR
8446 instead of TYPE_NEEDS_DESTRUCTOR.
8447 (finish_struct_bits): Likewise.
8448 (add_implicitly_declared_members): Likewise.
8449 (check_field_decl): Likewise.
8450 (check_methods): Set TYPE_VEC_DELETE_TAKES_SIZE here, and set it
8451 correctly under the new ABI.
8452 * decl.c (start_decl_1): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR
8453 instead of TYPE_NEEDS_DESTRUCTOR.
8454 (initialize_local_var): Likewise.
8455 (destroy_local_var): Likewise.
8456 (cp_finish_decl): Likewise.
8457 (register_dtor_fn): Likewise.
8458 (grok_op_properties): Set TYPE_HAS_NEW_OPERATOR and
8459 TYPE_HAS_ARRAY_NEW_OPERATOR, not TYPE_HAS_NEW. Don't set
8460 TYPE_VEC_DELETE_TAKES_SIZE here.
8461 (xref_basetypes): Set TYPE_HAS_NEW_OPERATOR and
8462 TYPE_HAS_ARRAY_NEW_OPERATOR, not TYPE_HAS_NEW.
8463 (store_parm_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
8464 (finish_destructor_body): Likewise.
8465 (maybe_build_cleanup_1): Likewise.
8466 * decl2.c (do_static_destruction): Likewise.
8467 * init.c (build_new_1): Make it static.
8468 (perform_member_init): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
8469 (expand_cleanup_for_base): Likewise.
8470 (get_cookie_size): New function.
8471 (build_new_1): Handle array-new cookies correctly under the new
8472 ABI.
8473 (build_vec_delete_1): Likewise.
8474 (build_vec_init): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
8475 (build_delete): Likewise.
8476 (build_vec_delete): Handle array-new cookies correctly under the new
8477 ABI.
8478 * lex.c (do_identifier): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
8479 * pt.c (instantiate_class_template): Set TYPE_HAS_NEW_OPERATOR and
8480 TYPE_HAS_ARRAY_NEW_OPERATOR.
8481 * ptree.c (print_lang_type): Check them.
8482 * search.c (context_for_name_lookup): Fix typo in comment.
8483 (tree_has_any_destructor_p): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
8484 * tree.c (break_out_cleanups): Likewise.
8485 (build_cplus_array_test_1): Likewise.
8486 (cp_build_qualified_type_real): Likewise.
8487 * typeck.c (complete_type): Likewise.
8488
8489 * g++spec.c (lang_specific_driver): Add -fnew-abi at the start of
8490 the command-line, not the end.
8491
8492 2000-03-01 Jason Merrill <jason@casey.cygnus.com>
8493
8494 * pt.c (instantiate_decl): Clear TI_PENDING_TEMPLATE_FLAG.
8495
8496 2000-03-02 Tom Tromey <tromey@cygnus.com>
8497
8498 * cp-tree.h (build_java_class_ref): Declare.
8499 * init.c (build_java_class_ref): No longer static.
8500 * except.c (expand_throw): Generate a Java-style `throw' if the
8501 thrown object is a "Java" object.
8502 (initialize_handler_parm): Generate a Java-style lookup of
8503 exception info if the caught object is a "Java" object.
8504 (catch_language, catch_language_init): New globals.
8505 (decl_is_java_type): New function.
8506 (expand_start_catch_block): Don't call push_eh_info() or
8507 push_eh_cleanup() when handling a Java-style "catch". Pass Java
8508 class reference to build_catch_block.
8509
8510 Thu Mar 2 13:32:01 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8511
8512 * typeck.c (comptypes): Treat sizetype like its language equivalent.
8513
8514 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
8515
8516 * typeck.c (maybe_warn_about_returning_address_of_local): Reorganize
8517 to merge reference/pointer code and fix incorrect warnings.
8518
8519 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
8520
8521 * search.c (protected_accessible_p): Use context_for_name_lookup.
8522
8523 * init.c (construct_virtual_bases): Fix thinko.
8524 * typeck.c (expand_ptrmemfunc_cst): Fix thinko.
8525
8526 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
8527
8528 * decl.c (current_function_decl): Move to toplev.c.
8529
8530 2000-02-29 Nathan Sidwell <nathan@codesourcery.com>
8531
8532 * pt.c (fn_type_unification): Unify return type, whenever
8533 provided.
8534 (get_bindings_real): Only pass return type when necessary.
8535 Remove explicit return type check.
8536 * class.c (resolve_address_of_overloaded_function): Pass desired
8537 return type to fn_type_unification.
8538
8539 Mon Feb 28 08:15:23 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8540
8541 * class.c (build_vtbl_or_vbase_field, check_methods): Don't clear
8542 DECL_FIELD_SIZE.
8543 (check_bitfield_decl, check_field_decls): Set DECL_SIZE, not
8544 DECL_FIELD_SIZE.
8545 * rtti.c (expand_class_desc): Likewise.
8546 * cp-tree.h (DECL_INIT_PRIORITY): Use underlying union name.
8547 (THUNK_VCALL_OFFSET): Likewise.
8548 (THUNK_DELTA): Reflect changes in ../tree.h.
8549
8550 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
8551
8552 * search.c (protected_accessible_p): Also allow the access if
8553 the member is public in DERIVED. Lose TYPE parm.
8554 (friend_accessible_p): Lose TYPE parm.
8555 (accessible_p): Adjust.
8556
8557 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8558
8559 * class.c (dfs_build_vtable_offset_vtbl_entries): Don't use size_binop
8560 on things that are not sizes; ssize_binop deleted.
8561 Call size_diffop when appropriate.
8562 (dfs_build_vcall_offset_vtbl_entries): Likewise.
8563 (build_primary_vtable, build_secondary_vtable): Likewise.
8564 (dfs_set_offset_for_unshared_vbases, dfs_modify_vtables): Likewise.
8565 Variable I is HOST_WIDE_INT.
8566 (get_vfield_offset): Pass proper types to size_binop.
8567 (size_extra_vtbl_entries, layout_virtual_bases): Likewise.
8568 (finish_struct_1): Likewise.
8569 (skip_rtti_stuff): Arg N is now pointer to signed.
8570 (layout_class_type): Use size_zero_node.
8571 * cp-tree.h (skip_rtti_stuff): Arg N is pointer to signed.
8572 * cvt.c (cp_convert_to_pointer): Pass proper types to size_binop.
8573 * decl.c (complete_arry_type): Pass proper types to size_binop.
8574 (xref_basetypes): BINFO_OFFSET is sizetype.
8575 * error.c (dump_expr): Don't use size_binop non-sizes.
8576 * expr.c (cplus_expand_constant): Pass proper types to size_binop.
8577 * init.c (construct_virtual_bases): Fix type error.
8578 (build_vec_delete_1): Pass proper type to size_binop and don't
8579 fold result.
8580 * lex.c (cp_make_lang_type): BINFO_OFFSET is sizetype.
8581 * rtti.c (get_base_offset): Pass proper type to size_binop.
8582 * search.c (dfs_find_vbases): Fix type error.
8583 (expand_upcast_fixups): Arg to skip_rtti_stuff is pointer to signed.
8584 (dfs_get_vbase_types): BINFO_OFFSET is sizetype.
8585 * tree.c (debug_binfo): Variable N is signed.
8586 Use HOST_WIDE_INT_PRINT_DEC.
8587 * typeck.c (comptypes): sizetype is same as equivalent integer type.
8588 (c_sizeof, c_sizeof_nowarn, expr_sizeof): Use TYPE_SIZE_UNIT,
8589 size_one_node and size_zero_node.
8590 (c_alignof): Use size_one_node.
8591 (build_component_addr): Pass proper types to size_binop.
8592 (expand_ptrmemfunc_cst): Don't use size_binop on non-sizes.
8593
8594 2000-02-26 Jason Merrill <jason@casey.cygnus.com>
8595
8596 Implement class scope using-declarations for functions.
8597 * class.c (handle_using_decl): Call add_method for used functions.
8598 Use IDENTIFIER_CLASS_VALUE to check for conflicts.
8599 (add_method): Used functions are hidden by local functions.
8600 (check_bases_and_members): Handle using-decls before finalizing
8601 CLASSTYPE_METHOD_VEC.
8602 * call.c (add_function_candidate): Add ctype parm; if non-zero,
8603 override the type of 'this' accordingly.
8604 (add_template_candidate, add_template_candidate_real): Add ctype parm.
8605 (convert_class_to_reference, build_user_type_conversion_1,
8606 build_new_function_call, build_object_call, build_new_op,
8607 build_new_method_call): Pass ctype parm.
8608
8609 * search.c (lookup_member): Put rval_binfo, not basetype_path, in
8610 the baselink.
8611 * call.c (convert_class_to_reference, build_user_type_conversion_1,
8612 build_new_function_call, build_object_call, build_new_op,
8613 build_new_method_call, build_op_delete_call): Don't get basetype_path
8614 from a baselink.
8615 * typeck.c (build_component_ref): Likewise.
8616 * init.c (build_offset_ref): Likewise.
8617 (resolve_offset_ref): Don't call enforce_access.
8618 Call build_scoped_ref.
8619 * typeck2.c (build_scoped_ref): Simplify. Do nothing if it
8620 would cause an error or if -pedantic.
8621 * class.c (alter_access): Lose binfo parm.
8622
8623 2000-02-26 Mark Mitchell <mark@codesourcery.com>
8624
8625 * semantics.c (simplify_aggr_init_exprs_p): Don't walk into
8626 types.
8627
8628 2000-02-25 Alfred Minarik <a8601248@unet.univie.ac.at>
8629
8630 * rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
8631 pseudo_type_info creation into the std namespace
8632
8633 2000-02-26 Mark Mitchell <mark@codesourcery.com>
8634
8635 * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF.
8636 (import_export_class): Remove declaration.
8637 * decl2.c (import_export_class): Make it static.
8638 * dump.c (dequeue_and_dump): Handle PREDECREMENT_EXPR,
8639 PREINCREMENT_EXPR, POSTDECREMENT_EXPR, POSTINCREMENT_EXPR,
8640 EXPR_WITH_FILE_LOCATION.
8641 * lex.c (check_newline): Tweak filename/lineno setting.
8642 * semantics.c (begin_while_stmt): Fix typo in comment.
8643
8644 Sat Feb 26 19:50:23 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8645
8646 * lang-options.h (-fmessage-length=): Add missing option.
8647
8648 * Make-lang.in (CXX_SRCS): Add .h files and sort list.
8649
8650 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
8651
8652 * Make-lang.in: Delete refs to LIBGCC2_DEPS.
8653
8654 Fri Feb 25 14:52:33 2000 Jim Wilson <wilson@cygnus.com>
8655
8656 * optimize.c (expand_call_inline): Emit the return label before
8657 evaluating the return value.
8658
8659 2000-02-24 Mark Mitchell <mark@codesourcery.com>
8660
8661 * lex.c (check_newline): Use push_srcloc and pop_srcloc, rather
8662 than duplicating functionality here.
8663 * optimize.c: Include input.h.
8664 (expand_call_inline): Use push_srcloc and pop_srcloc.
8665 * parse.y (maybe_cv_qualifier): Remove calls to emit_line_note.
8666 * parse.c: Regenerated.
8667 * Makefile.in (lex.o): Depend on input.h.
8668 (optimize.o): Likewise.
8669
8670 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
8671
8672 * decl.c (grokdeclarator): Diagnose qualifiers on non-member
8673 function type, rather than ICE.
8674
8675 2000-02-23 Jason Merrill <jason@casey.cygnus.com>
8676
8677 * decl.c (grokdeclarator): Call decl_type_access_control.
8678 * parse.y (parse_end_decl): Don't call decl_type_access_control if
8679 decl is null.
8680
8681 2000-02-23 Nathan Sidwell <nathan@codesourcery.com>
8682
8683 * decl.c (decls_match): Remove obsolete static member nadgering.
8684
8685 2000-02-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8686
8687 * decl.c (grokdeclarator): Change ANSI to ISO.
8688 * lex.c (consume_string, readescape, do_identifier): Likewise.
8689 (parse_float, real_yylex): Likewise.
8690 * parse.y (paren_expr_or_null, paren_cond_or_null): Likewise.
8691 (unary_expr, new_initializer, cast_expr, primary, primary_no_id,
8692 new_type_id, maybe_label_decls, simple_stmt,
8693 for.init.statement): Likewise.
8694 * pt.c (do_decl_instantiation, do_type_instantiation): Likewise.
8695 * semantics.c (finish_named_return_value): Likewise.
8696 * parse.c: Regenerate.
8697
8698 2000-02-21 Mark Mitchell <mark@codesourcery.com>
8699
8700 * cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
8701 (CPTI_CLASS_STAR_TYPE): Remove.
8702 (vtable_index_type): Likewise.
8703 (class_star_type_node): Remove.
8704 (TYPE_PTRMEMFUNC_FN_TYPE): Adjust for the new ABI.
8705 (build_binary_op_nodefault): Remove.
8706 * call.c (build_new_op): Use build_binary_op instead of
8707 build_binary_op_nodefault.
8708 * decl.c (init_decl_processing): Remove class_star_type_node
8709 initialization. Make delta_type_node ptrdiff_type_node under the
8710 new ABI. Initialize vtable_index_type.
8711 (build_ptrmemfunc_type): Build different structures for the new
8712 ABI.
8713 (build_enumerator): Use build_binary_op instead of
8714 build_binary_op_nodefault.
8715 * method.c (build_overload_value): Mangle pointers-to-members
8716 appropriately under the new ABI.
8717 * typeck.c (build_array_ref): Use build_binary_op instead of
8718 build_binary_op_nodefault.
8719 (get_member_function_from_ptrfunc): Adjust for the new ABI.
8720 (build_binary_op_nodefault): Rename to ...
8721 (build_binary_op): ... this. Remove old version. Adjust for
8722 pointer-to-member comparisons under the new ABI.
8723 (build_ptrmemfunc1): Remove dead code. Adjust for the new ABI.
8724 (build_ptrmemfunc): Adjust for the new ABI.
8725 (expand_ptrmemfunc_cst): Likewise.
8726 (delta2_from_ptrmemfunc): Assert that we're not using the new ABI.
8727 (pfn_from_ptrmemfunc): Adjust for the new ABI.
8728
8729 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
8730
8731 * call.c (build_object_call): Compress consecutive calls to
8732 cp_error.
8733 (build_conditional_expr): Say 'ISO C++' not 'ANSI C++'.
8734 (build_op_delete_call): Adjust message formatting.
8735
8736 * class.c (check_bases): Compress consecutive calls to
8737 cp_pedwarn.
8738 (finish_struct_anon): Say 'ISO C++'.
8739
8740 * decl.c (start_decl): Same here.
8741 (grok_reference_init): Likewise.
8742 (grokfndecl): Correct message formatting.
8743 (grokfndecl): Improve diagnostic.
8744 (check_static_variable_definition): Likewise. Say 'ISO C++'
8745 (compute_array_index_type): Say 'ISO C++'
8746 (create_array_type_for_decl): Compress consecutive calls to
8747 cp_error.
8748 (grokdeclarator): Say 'ISO C++'
8749 (grok_op_properties): Likewise.
8750
8751 * decl2.c (delete_sanity): Clairify diagnostic.
8752 (check_member_template): Same here.
8753 (grok_function_init): Use consistent terminology.
8754
8755 * expr.c (do_case): Say 'ISO C++'
8756
8757 * friend.c (do_friend): Compress consecutive calls to warning.
8758
8759 2000-02-20 Mark Mitchell <mark@codesourcery.com>
8760
8761 * cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
8762 * class.c (build_secondary_vtable): Reorganize. Don't create a
8763 new vtable under the new ABI.
8764 (layout_vtable_decl): Don't add num_extra_vtbl_entries when
8765 computing the size.
8766 (build_vtbl_initializer): Don't return a CONSTRUCTOR; just return
8767 the initializing elements.
8768 (initialize_vtable): New function.
8769 (dfs_finish_vtbls): Use it.
8770 (dfs_accumulate_vtbl_inits): New function.
8771 (finish_vtbls): Merge primary and secondary vtables under the new
8772 ABI.
8773 (finish_struct_1): Remove redundant call to layout_vtable_decl.
8774 * init.c (expand_virtual_init): Deal with BINFO_VTABLEs that
8775 aren't VAR_DECLs.
8776
8777 * class.c (build_vtable): New function, split out from ...
8778 (get_vtable_decl): ... here, and ...
8779 (build_secondary_vtable): ... here.
8780
8781 * pt.c (tsubst_decl): Fix formatting.
8782
8783 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8784
8785 * class.c (build_primary_vtable, layout_vtable_decl): Likewise.
8786 (avoid_overlap, build_base_field): Likewise.
8787 (build_base_field, build_base_fields, is_empty_class):
8788 Test DECL_SIZE with integer_zero.
8789 (layout_class_type): Set CLASSTYPE_SIZE_UNIT.
8790 * cp-tree.h (struct lang_type): New field size_unit.
8791 (CLASSTYPE_SIZE_UNIT): New macro.
8792 * decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
8793 (cp_finish_decl): Delete -Wlarger-than processing.
8794 * optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
8795 * pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
8796 * tree.c (make_binfo): binfo vector is one entry longer.
8797 (walk_tree): Walk DECL_SIZE_UNIT.
8798
8799 2000-02-19 Mark Mitchell <mark@codesourcery.com>
8800
8801 * class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in
8802 comment.
8803 (build_vtable_entry): Don't assume all vtable entries are
8804 functions.
8805 (build_vtbl_initializer): Adjust accordingly.
8806 (get_vtable_decl): Fix formatting.
8807
8808 2000-02-18 Jason Merrill <jason@casey.cygnus.com>
8809
8810 * semantics.c (deferred_type_access_control): Walk the entire
8811 type_lookups list.
8812 (save_type_access_control): Rename from
8813 initial_deferred_type_access_control. Just remember the value.
8814 (decl_type_access_control): New fn.
8815 (begin_function_definition): Use deferred_type_access_control, after
8816 we've started the function. Set type_lookups to error_mark_node.
8817 * parse.y (frob_specs, fn.def1): Adjust.
8818 (parse_decl0, parse_field, parse_field0, parse_bitfield): New fns.
8819 (parse_end_decl, parse_bitfield0, parse_method): New fns.
8820 (fn.def2, initdcl, initdcl0_innards, nomods_initdcl0): Use them.
8821 (after_type_component_declarator0): Likewise.
8822 (after_type_component_declarator): Likewise.
8823 (notype_component_declarator): Likewise.
8824 * cp-tree.h: Adjust.
8825
8826 * decl.c (redeclaration_error_message): Allow redeclaration of
8827 namespace-scope decls.
8828
8829 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
8830
8831 * typeck2.c (my_friendly_abort): Use GCCBUGURL.
8832
8833 2000-02-17 Mark Mitchell <mark@codesourcery.com>
8834
8835 * class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
8836 * decl2.c (grokclassfn): Likewise.
8837
8838 * ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
8839
8840 * decl2.c (lang_decode_option): Don't set default message length
8841 here.
8842 * lex.c (lang_init_options): Set it here.
8843
8844 2000-02-16 Mark Mitchell <mark@codesourcery.com>
8845
8846 Make DECL_CONTEXT mean the class in which a member function was
8847 declared, even for a virtual function.
8848 * cp-tree.h (DECL_CLASS_CONTEXT): Adjust.
8849 (DECL_FRIEND_CONTEXT): New macro.
8850 (DECL_REAL_CONTEXT): Remove.
8851 (SET_DECL_FRIEND_CONTEXT): Likewise.
8852 (DECL_VIRTUAL_CONTEXT): Adjust.
8853 (DECL_CLASS_SCOPE_P): Use TYPE_P.
8854 (add_friends): Remove.
8855 (hack_decl_function_context): Likewise.
8856 * call.c (build_new_function_call): Replace DECL_REAL_CONTEXT with
8857 CP_DECL_CONTEXT.
8858 (build_over_call): Fix indentation. Use DECL_CONTEXT
8859 instead of DECL_CLASS_CONTEXT.
8860 * class.c (dfs_build_vcall_offset_vtbl_entries): Likewise.
8861 (add_method): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
8862 (strictly_overrides): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
8863 (build_vtbl_or_vbase_field): Don't set DECL_CLASS_CONTEXT.
8864 (build_base_field): Likewise.
8865 (finish_struct_1): Likewise.
8866 (build_self_reference): Likewise.
8867 * decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
8868 DECL_REAL_CONTEXT.
8869 (pushtag): Use decl_function_context, not
8870 hack_decl_function_context.
8871 (decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
8872 (duplicate_decls): Use DECL_VIRTUAL_CONTEXT.
8873 (pushdecl): Remove bogus code.
8874 (start_decl): Use DECL_CONTEXT rather than DECL_CLASS_CONTEXT.
8875 (cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
8876 (grokfndecl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
8877 Use decl_function_context, nothack_decl_function_context.
8878 (grokvardecl): Don't set DECL_CLASS_CONTEXT.
8879 (grokdeclarator): Likewise. Use decl_function_context, not
8880 hack_decl_function_context.
8881 (copy_args_p): Document. Don't use DECL_CLASS_CONTEXT.
8882 (start_function): Use DECL_FRIEND_CONTEXT, not
8883 DECL_CLASS_CONTEXT. Use decl_function_context, not
8884 hack_decl_function_context.
8885 (finish_function): Use decl_function_context, not
8886 hack_decl_function_context.
8887 (maybe_retrofit_in_chrg): Use DECL_CONTEXT, not
8888 DECL_CLASS_CONTEXT.
8889 (grokclassfn): Set DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT.
8890 (finish_static_data_member_decl): Don't set DECL_CLASS_CONTEXT.
8891 (grokfield): Likewise.
8892 (finish_builtin_type): Likewise.
8893 (finish_vtable_vardec): Use decl_function_context, not
8894 hack_decl_function_context.
8895 (import_export_decl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
8896 (start_static_initialization_or_destruction): Likewise.
8897 (finish_static_initialization_or_destruction): Likewise.
8898 (mark_used): Adjust logic for deciding when to synthesize methods.
8899 * dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
8900 DECL_REAL_CONTEXT.
8901 * error.c (dump_function_decl): Use DECL_CONTEXT, not
8902 DECL_CLASS_CONTEXT.
8903 * friend.c (is_friend): Likewise.
8904 (add_friends): Remove.
8905 (do_friend): Use SET_DECL_FRIEND_CONTEXT.
8906 * lex.c (begin_definition_of_inclass_inline): Use
8907 decl_function_context, not hack_decl_function_context.
8908 (process_next_inline): Likewise.
8909 (do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
8910 * method.c (set_mangled_name_for_decl): Use DECL_CONTEXT, not
8911 DECL_CLASSS_CONTEXT.
8912 (hack_identifier): Likewise.
8913 (synthesize_method): Use decl_function_context, not
8914 hack_decl_function_context.
8915 * pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
8916 DECL_REAL_CONTEXT.
8917 (is_member_template): Use decl_function_context, not
8918 hack_decl_function_context. Use DECL_CONTEXT, not
8919 DECL_CLASS_CONTEXT.
8920 (build_template_decl): Set DECL_VIRTUAL_CONTEXT, not
8921 DECL_CLASS_CONTEXT.
8922 (check_default_tmpl_args): Use CP_DECL_CONTEXT, not
8923 DECL_REAL_CONTEXT.
8924 (push_template_decl_real): Likewise.
8925 (instantiate_class_template): Don't call add_friends.
8926 (tsubst_default_argument): Use DECL_CONTEXT, not
8927 DECL_REAL_CONTEXT.
8928 (tsubst_decl): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
8929 Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
8930 (set_meangled_name_for_template_decl): Use DECL_CONTEXT, not
8931 DECL_CLASS_CONTEXT.
8932 * repo.c (repo_inline_used): Likewise.
8933 * search.c (current_scope): Adjust for new _CONTEXT macros.
8934 (context_for_name_lookup): Use CP_DECL_CONTEXT, not
8935 DECL_REAL_CONTEXT.
8936 (friend_accessible_p): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
8937 (lookup_fnfields_here):Likewise.
8938 (check_final_overrider): Likewise.
8939 (init_vbase_pointers): Likewise.
8940 (virtual_context): Likewise.
8941 * semantics.c (finish_member_declaration): Just set DECL_CONTEXT.
8942 (expand_body): Use decl_function_context, not
8943 hack_decl_function_context.
8944 * tree.c (hack_decl_function_context): Remove.
8945 * typeck.c (build_x_function_call): Use DECL_CONTEXT, not
8946 DECL_CLASS_CONTEXT.
8947 * typeck2.c (error_not_base_type): Likewise.
8948
8949 2000-02-15 Jason Merrill <jason@casey.cygnus.com>
8950
8951 * decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.
8952
8953 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8954
8955 * Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
8956
8957 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
8958
8959 * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
8960
8961 2000-01-16 Gabriel Dos Reis <gdr@codesourcery.com>
8962
8963 * decl2.c (lang_decode_option): Enable automatic line wrapping.
8964
8965 2000-02-13 Jason Merrill <jason@casey.cygnus.com>
8966
8967 * parse.y (frob_specs): Split out...
8968 (parse_decl): From here.
8969 (fn.def2): Call initial_deferred_type_access_control.
8970 (after_type_component_declarator0): Call frob_specs.
8971 (notype_component_declarator0): Likewise.
8972 * search.c (friend_accessible_p): Nested classes are friends of their
8973 enclosing classes.
8974
8975 2000-02-10 Mark Mitchell <mark@codesourcery.com>
8976
8977 * ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be
8978 used to create an implicit temporary.
8979
8980 * class.c (dfs_modify_vtables): Tweak calculation of functions to
8981 override.
8982
8983 2000-02-08 Nathan Sidwell <nathan@acm.org>
8984
8985 * typeck.c (strip_all_pointer_quals): Use TYPE_MAIN_VARIANT, to
8986 strip array element qualifiers too.
8987
8988 2000-02-07 Mark Mitchell <mark@codesourcery.com>
8989
8990 * decl.c (store_parm_decls): Don't build cleanups for parameters
8991 while processing_template_decl.
8992
8993 2000-02-07 Jason Merrill <jason@casey.cygnus.com>
8994
8995 * cp-tree.h (struct saved_scope): Add incomplete field.
8996 (namespace_scope_incomplete): New macro.
8997 * decl.c (pushdecl): Use it.
8998 (hack_incomplete_structures): Use it. See through artificial
8999 binding levels.
9000 (mark_saved_scope): Mark it.
9001
9002 Implement access control for nested types.
9003 * search.c (type_access_control): New fn.
9004 (accessible_p): Now we do perform access control for types.
9005 * semantics.c (deferred_type_access_control): New fn.
9006 (initial_deferred_type_access_control): New fn.
9007 (begin_function_definition): Call it. Add lookups parm.
9008 * decl.c (struct binding_level): Add this_class field.
9009 (pushlevel_class): Set it.
9010 (mark_binding_level): Mark it.
9011 (lookup_name_real): Use it. Call type_access_control.
9012 (mark_saved_scope): Mark lookups field.
9013 * cp-tree.h (flagged_type_tree): Add lookups field.
9014 (struct saved_scope): Add lookups field.
9015 (type_lookups): New macro.
9016 * parse.y (declmods): Now <ftype>.
9017 (parse_decl): Add lookups parm. Call
9018 initial_deferred_type_access_control.
9019 (lang_extdef): Clear type_lookups.
9020 (typed_declspecs, declmods, typespec): Set lookups field.
9021 (initdcl): Call deferred_type_access_control.
9022 (fn.def1, fn.def2, typed_declspecs1, initdcl0_innards, nomods_initdcl0,
9023 component_decl_1, named_parm): Adjust.
9024 * friend.c (is_friend): Nested classes are friends of their
9025 enclosing classes.
9026
9027 * class.c (currently_open_derived_class): New fn.
9028 * method.c (hack_identifier): Use it.
9029
9030 * lex.c (do_identifier): Remove obsolete code.
9031
9032 * parse.y (typed_typespecs): Propagate new_type_flag properly.
9033
9034 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
9035
9036 * tinfo.h: Remove apostrophes from C++ comment (xgettext
9037 thinks this file is plain C).
9038
9039 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9040
9041 * Makefile.in (call.o): Depend on $(EXPR_H).
9042
9043 * call.c: Include "expr.h".
9044
9045 * class.c (dump_class_hierarchy): Add prototype.
9046
9047 * search.c (dfs_get_pure_virtuals): Likewise.
9048
9049 2000-02-1 Ulrich Drepper <drepper@redhat.com>
9050
9051 * parse.y (simple_stmt): Allow :: token in asm parameter list.
9052 * parse.c: Rebuilt.
9053
9054 Mon Jan 31 15:35:29 2000 Jim Wilson <wilson@cygnus.com>
9055
9056 * class.c (build_vtbl_or_vbase_field): New parameter fcontext.
9057 Store it in DECL_FCONTEXT.
9058 (build_vbase_pointer_fields, create_vtable_ptr): Fix callers.
9059
9060 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
9061
9062 * tinfo.h (old abi): #include "tconfig.h".
9063 * tinfo.cc (convert_to_base): Move into old abi section.
9064
9065 2000-01-31 Mark Mitchell <mark@codesourcery.com>
9066
9067 * cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
9068 (CLASSTYPE_PRIMARY_BINFO): Use BINFO_PRIMARY_BINFO.
9069 (BINFO_PRIMARY_BINFO): New macro.
9070 (BF_DELTA): Rename to ...
9071 (BV_DELTA): ... this.
9072 (BF_VCALL_INDEX): Rename to ...
9073 (BV_VCALL_INDEX): ... this.
9074 (BF_FN): Rename to ...
9075 (BV_FN): ... this.
9076 * class.c (build_vbase_path): Adjust for changes to reverse_path.
9077 (set_rtti_entry): Rename BF_ macros to BV_ variants.
9078 (modify_vtable_entry): Simplify.
9079 (add_virtual_function): Rename BF_ macros to BV_ variants.
9080 (build_vtable_initializer): Likewise.
9081 (get_class_offset_1): Remove.
9082 (dfs_get_class_offset): Likewise.
9083 (get_class_offset): Likewise.
9084 (dfs_find_final_overrider): New function.
9085 (find_final_overrider): Likewise.
9086 (modify_one_vtable): Remove.
9087 (dfs_find_base): New function.
9088 (dfs_modify_vtables): Fold modify_one_vtable in here. Use
9089 find_final_overrider.
9090 (modify_all_vtables): Adjust. Set BV_VCALL_INDEX on new
9091 virtuals.
9092 (dfs_fixup_vtable_deltas): Remove.
9093 (override_one_vtable): Remove.
9094 (merge_overrides): Likewise.
9095 (layout_virtual_bases): Make sure BINFO_OFFSET is set right for
9096 unreal chilren of virtual bases.
9097 (finish_struct_1): Don't use merge_overrides. Don't use
9098 dfs_fixup_vtable_deltas.
9099 * tree.c (reverse_path): Return a TREE_LIST, not a chain of
9100 BINFOs.
9101
9102 2000-01-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9103 Jason Merrill <jason@yorick.cygnus.com>
9104
9105 * tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
9106
9107 2000-01-31 Alfred Minarik <a8601248@unet.univie.ac.at>
9108
9109 * exception.cc (__throw_bad_typeid): Add missing std::.
9110
9111 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9112
9113 * cp-tree.h (make_thunk): PROTO -> PARAMS.
9114
9115 2000-01-31 Nathan Sidwell <sidwell@codesourcery.com>
9116
9117 * cp-tree.h (new_abi_rtti_p): Use flag_new_abi.
9118
9119 Runtime support for new-abi rtti.
9120 * inc/typeinfo (type_info::operator!=): Define in class.
9121 (type_info::before, type_info::name, type_info::operator==,
9122 type_info::operator!=): Define new ABI implementations.
9123 (type_info::is_pointer_p, type_info::is_function_p): Declare
9124 new virtual functions.
9125 (type_info::do_catch, type_info::do_upcast): Likewise.
9126
9127 * tinfo.h (__base_class_info): Define new class.
9128 (__class_type_info): Likewise.
9129 (__si_class_type_info): Likewise.
9130 (__vmi_class_type_info): Likewise.
9131 (__dynamic_cast): Prototype.
9132
9133 * tinfo.cc: Conditionalize old and new rtti mechanisms.
9134 (type_info::is_pointer_p): Define new function.
9135 (type_info::is_function_p): Likewise.
9136 (type_info::do_catch): Likewise.
9137 (type_info::do_upcast): Likewise.
9138 (vtable_prefix): New structure for vtable access.
9139 (adjust_pointer): Define new template function.
9140 (contained_p, public_p, virtual_p, contained_public_p,
9141 contained_nonpublic_p, contained_nonvirtual_p): Define new
9142 functions.
9143 (nonvirtual_base_type): New local variable.
9144 (__class_type_info::~__class_type_info): Define.
9145 (__si_class_type_info::~__si_class_type_info): Likewise.
9146 (__vmi_class_type_info::~__vmi_class_type_info): Likewise.
9147 (__class_type_info::do_catch): Define new function.
9148 (__class_type_info::do_upcast): Likewise.
9149 (__class_type_info::find_public_src): Likewise.
9150 (__class_type_info::do_find_public_src): Likewise.
9151 (__si_class_type_info::do_find_public_src): Likewise.
9152 (__vmi_class_type_info::do_find_public_src): Likewise.
9153 (__class_type_info::do_dyncast): Likewise.
9154 (__si_class_type_info::do_dyncast): Likewise.
9155 (__vmi_class_type_info::do_dyncast): Likewise.
9156 (__class_type_info::do_upcast): Likewise.
9157 (__si_class_type_info::do_upcast): Likewise.
9158 (__vmi_class_type_info::do_upcast): Likewise.
9159 (__dynamic_cast): Likewise.
9160
9161 * tinfo2.cc (__fundamental_type_info): Define new class.
9162 (__pointer_type_info): Likewise.
9163 (__reference_type_info): Likewise.
9164 (__array_type_info): Likewise.
9165 (__function_type_info): Likewise.
9166 (__enum_type_info): Likewise.
9167 (__ptr_to_member_type_info): Likewise.
9168 (__fundamental_type_info::~__fundamental_type_info): Define.
9169 (__pointer_type_info::~__pointer_type_info): Likewise.
9170 (__reference_type_info::~__reference_type_info): Likewise.
9171 (__array_type_info::~__array_type_info): Likewise.
9172 (__function_type_info::~__function_type_info): Likewise.
9173 (__enum_type_info::~__enum_type_info): Likewise.
9174 (__ptr_to_member_type_info::~__ptr_to_member_type_info): Likewise.
9175 (__pointer_type_info::do_catch): Define new function.
9176 (__ptr_to_member_type_info::do_catch): Define new function.
9177
9178 (__throw_type_match_rtti_2): Use new ABI interface, if enabled.
9179 (__is_pointer): Likewise.
9180
9181 * exception.cc (__cplus_type_matcher): Deal with new-abi rtti.
9182
9183 2000-01-30 Mark Mitchell <mark@codesourcery.com>
9184
9185 * cp/class.c (build_vtable): Rename to build_primary_vtable.
9186 (prepare_fresh_vtable): Rename to build_secondary_vtable.
9187 (make_new_vtable): New function.
9188 (modify_vtable_entry): Handle generation of new vtables correctly.
9189 (modify_one_vtable): Remove unused parameter.
9190 (dfs_fixup_vtable_deltas): Likewise.
9191 (override_one_vtable): Use build_secondary_vtable.
9192 (finish_struct_1): Use build_primary_vtable and
9193 build_secondary_vtable.
9194
9195 2000-01-28 Ulrich Drepper <drepper@redhat.com>
9196
9197 * cp/decl.c: Adjust variable names, comments, help strings.
9198
9199 2000-01-29 Nathan Sidwell <nathan@acm.org>
9200
9201 * new2.cc (operator delete[]): Use operator delete, don't assume
9202 implementation.
9203
9204 2000-01-29 Nathan Sidwell <sidwell@codesourcery.com>
9205
9206 * class.c (build_vtbl_initializer): Add argument to
9207 build_vtable_entry call.
9208
9209 2000-01-27 Mark Mitchell <mark@codesourcery.com>
9210
9211 * cp-tree.def (THUNK_DECL): Discuss vcall indices.
9212 * cp-tree.h (BINFO_VIRTUALS): Update documentation.
9213 (BF_DELTA): New macro.
9214 (BF_VCALL_INDEX): Likewise.
9215 (BF_FN): Likewise.
9216 (THUNK_VCALL_OFFSET): Likewise.
9217 (make_thunk): Change prototype.
9218 * class.c (build_vtable_entry): Integrate
9219 build_vtable_entry_for_fn. Handle vcall indices.
9220 (build_vtable_entry_for_fn): Remove.
9221 (set_rtti_entry): Handle vcall indices. Use BF_DELTA,
9222 BF_VCALL_INDEX, BF_FN.
9223 (modify_vtable_entry): Integrate common code from
9224 modify_one_vtable and dfs_fixup_vtable_deltas.
9225 (add_virtual_function): Set BF_VCALL_INDEX.
9226 (build_vtbl_initializer): Simplify. Use BF_DELTA, BF_VCALL_INDEX,
9227 and BF_FN.
9228 (modify_one_vtable): Simplify.
9229 (dfs_fixup_vtable_deltas): Likewise.
9230 (override_one_vtable): Use BF_DELTA, BF_VCALL_INDEX, BF_FN.
9231 * method.c (make_thunk): Handle vcall indices.
9232
9233 2000-01-28 Nathan Sidwell <sidwell@codesourcery.com>
9234
9235 Compiler side new abi rtti (not enabled).
9236 * cp-tree.h (new_abi_rtti_p): New macro.
9237 (emit_support_tinfos): Prototype new function.
9238 (tinfo_decl_p): Likewise.
9239 (emit_tinfo_decl): Likwise.
9240 * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL): New accessor
9241 macros.
9242 (doing_runtime): New local static.
9243 (init_rtti_processing): Add new-abi initializer.
9244 (get_tinfo_decl): Add new-abi logic.
9245 (tinfo_from_decl): Likewise.
9246 (build_dynamic_cast_1): Likewise.
9247 (qualifier_flags): New static function.
9248 (tinfo_base_init): Likewise.
9249 (generic_initializer): Likewise.
9250 (ptr_ref_initializer): Likewise.
9251 (ptmd_initializer): Likewise.
9252 (class_hint_flags): Likewise.
9253 (class_initializer): Likewise.
9254 (synthesize_tinfo_var): Likewise.
9255 (create_real_tinfo_var): Likewise.
9256 (create_pseudo_type_info): Likewise.
9257 (get_vmi_pseudo_type_info): Likewise.
9258 (create_tinfo_types): Likewise.
9259 (emit_support_tinfos): New global function.
9260 (tinfo_decl_p): New global predicate.
9261 (emit_tinfo_decl): New global function.
9262 * class.c (set_rtti_entry): Generalize for old and new rtti.
9263 (build_vtbl_initializer): Likewise.
9264 * decl2.c (finish_file): Likewise.
9265
9266 Thu Jan 27 20:53:36 2000 Jim Wilson <wilson@cygnus.com>
9267
9268 * optimize.c (remap_decl): Add walk_tree calls for DECL_SIZE (t)
9269 and TYPE_MAX_VALUE (TYPE_DOMAIN (TREE_TYPE (t))).
9270
9271 Thu Jan 27 13:54:12 2000 Mike Stump <mrs@wrs.com>
9272
9273 * decl.c (pushdecl): Fix up shadow warnings with respect to implicit
9274 for scopes.
9275
9276 2000-01-26 Jason Merrill <jason@casey.cygnus.com>
9277
9278 * pt.c (unify): Use fold, not maybe_fold_nontype_arg.
9279
9280 Wed Jan 26 22:19:14 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9281
9282 * optimize.c (calls_setjmp_r): Supply new argument
9283 to special_function_p.
9284
9285 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9286
9287 * call.c: PROTO -> PARAMS.
9288 * class.c: Likewise.
9289 * cp-tree.h: Likewise.
9290 * cvt.c: Likewise.
9291 * decl.c: Likewise.
9292 * decl.h: Likewise.
9293 * decl2.c: Likewise.
9294 * dump.c: Likewise.
9295 * errfn.c: Likewise.
9296 * error.c: Likewise.
9297 * except.c: Likewise.
9298 * expr.c: Likewise.
9299 * init.c: Likewise.
9300 * input.c: Likewise.
9301 * lex.c: Likewise.
9302 * lex.h: Likewise.
9303 * method.c: Likewise.
9304 * optimize.c: Likewise.
9305 * parse.y: Likewise.
9306 * pt.c: Likewise.
9307 * repo.c: Likewise.
9308 * rtti.c: Likewise.
9309 * search.c: Likewise.
9310 * semantics.c: Likewise.
9311 * spew.c: Likewise.
9312 * tree.c: Likewise.
9313 * typeck.c: Likewise.
9314 * typeck2.c: Likewise.
9315 * xref.c: Likewise.
9316
9317 2000-01-25 Richard Henderson <rth@cygnus.com>
9318
9319 * typeck.c (build_binary_op_nodefault): Remove UNNE_EXPR.
9320
9321 2000-01-25 Mark Mitchell <mark@codesourcery.com>
9322
9323 * cp-tree.h (vcall_offset_in_vtable_p): New macro.
9324 * class.c (build_vbase_offset_vtbl_entries): Fix typo in commment.
9325 (struct vcall_offset_data_s): New type.
9326 (dfs_vcall_offset_queue_p): New function.
9327 (dfs_build_vcall_offset_vtbl_entries): Likewise.
9328 (build_vcall_offset_vtbl_entries): Likewise.
9329 (layout_vtable_decl): Likewise.
9330 (num_vfun_entries): Likewise.
9331 (num_extra_vtbl_entries): Add the entries for vcall offsets.
9332 (build_vtbl_initializer): Likewise.
9333 (dfs_finish_vtabls): Use layout_vtable_decl.
9334 (modify_one_vtables): Always duplicate vtables under the new ABI.
9335 (finish_struct_1): Use layout_vtable_decl.
9336
9337 2000-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9338
9339 * decl.c (member_function_or_else): Change third arg from a format
9340 specifier to an `enum overload_flags'. Callers changed.
9341
9342 2000-01-25 Gabriel Dos Reis <gdr@codesourcery.com>
9343
9344 * typeck.c (composite_pointer_type, c_sizeof, expr_sizeof,
9345 build_binary_op_nodefault, build_unary_op, build_reinterpret_cast,
9346 build_const_cast, get_delta_difference, check_return_expr): Avoid
9347 ANSI string concatenation usage.
9348
9349 2000-01-24 Mark Mitchell <mark@codesourcery.com>
9350
9351 * class.c (layout_class_type): Put the fields required to make a
9352 class non-empty at the end, not the beginning, of the TYPE_FIELDs
9353 list.
9354
9355 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
9356
9357 * pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a
9358 template.
9359
9360 * decl2.c (mark_used): Do instantiate inlines that have been
9361 explicitly instantiated.
9362
9363 2000-01-24 Richard Henderson <rth@cygnus.com>
9364
9365 * call.c (build_over_call): Use expand_tree_builtin.
9366 * typeck.c (build_function_call_real): Likewise.
9367 (build_binary_op_nodefault): Handle unordered compares.
9368
9369 2000-01-24 Nathan Sidwell <sidwell@codesourcery.com>
9370
9371 * cp-tree.h (CPTI_BAD_CAST, CPTI_BAD_TYPEID, CPTI_DCAST): New
9372 cp_tree_index values.
9373 (throw_bad_cast_node, throw_bad_typeid_node, dynamic_cast_node):
9374 New global node #defines for them.
9375 * rtti.c (call_void_fn): Replace with ...
9376 (build_runtime_decl): ... new static function.
9377 (throw_bad_cast): Use throw_bad_cast_node and build_runtime_decl.
9378 (throw_bad_typeid): Use throw_bad_typeid_node and build_runtime_decl.
9379 (build_dynamic_cast_1): Always produce correctly typed result.
9380 Explicitly produce type_info addresses. Use dynamic_cast_node.
9381 * exception.cc (__throw_bad_cast): Return `void *'.
9382 (__throw_bad_typeid): Return `const type_info &'.
9383
9384 2000-01-24 Nathan Sidwell <sidwell@codesourcery.com>
9385
9386 * cp-tree.h (get_vtable_decl): Prototype new function.
9387 * class.c (get_vtable_decl): New function. Broken out from ...
9388 (build_vtable): ... here. Use it.
9389 * decl2.c (finish_vtable_vardecl): Ignore dummy vtables created
9390 by get_vtable_decl.
9391
9392 2000-01-24 Nathan Sidwell <sidwell@codesourcery.com>
9393
9394 * cp-tree.h (CPTI_TP_DESC_TYPE, CPTI_ACCESS_MODE_TYPE,
9395 CPTI_USER_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_ATTR_DESC_TYPE,
9396 CPTI_PTMF_DESC_TYPE): Remove cp_tree_index enumerations.
9397 (CPTI_TI_DESC_TYPE, CPTI_REF_DESC_TYPE, CPTI_ARY_DESC_TYPE,
9398 CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_SI_CLASS_DESC_TYPE,
9399 CPTI_VMI_CLASS_DESC_TYPE, CPTI_BASE_DESC_TYPE): New enumerations.
9400 (CPTI_TINFO_FN_ID, CPTI_TINFO_FN_TYPE): Rename to ...
9401 (CPTI_TINFO_DECL_ID, CPTI_TINFO_DECL_TYPE): ... here.
9402 (CPTI_TINFO_VAR_ID): New enumeration.
9403 (__tp_desc_type_node, __access_mode_type_node,
9404 __bltn_desc_type_node, __user_desc_type_node,
9405 __class_desc_type_node, __ptr_desc_type_node,
9406 __attr_desc_type_node, __func_desc_type_node,
9407 __ptmf_desc_type_node, __ptmd_desc_type_node): Remove #defines.
9408 (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
9409 ref_desc_type_node, ary_desc_type_node, func_desc_type_node,
9410 enum_desc_type_node, class_desc_type_node,
9411 si_class_desc_type_node, vmi_class_desc_type_node,
9412 ptmd_desc_type_node, base_desc_type_node): New #defines.
9413 (tinfo_fn_id, tinfo_fn_type): Rename to ...
9414 (tinfo_decl_id, tinfo_decl_type): ... here. Adjust.
9415 (tinfo_var_id): New enumeration.
9416 (DECL_TINFO_FN_P): Augment comment.
9417 * decl.c (cp_global_trees): Adjust documentation.
9418 * rtti.c (init_rtti_processing): Adjust for tinfo_decl_id,
9419 tinfo_decl_type and tinfo_var_id.
9420 (get_tinfo_decl_dynamic): Adjust for tinfo_decl_type.
9421 (build_typeid): Remove unused variable.
9422 (get_tinfo_var): Use tinfo_var_id.
9423 (tinfo_name): New static function.
9424 (get_tinfo_decl): Adjust for tinfo_decl_id and tinfo_decl_type.
9425 (tinfo_from_decl): Likewise.
9426 (get_base_offset): New static function, broken out of
9427 expand_class_desc.
9428 (expand_si_desc): Use tinfo_name.
9429 (expand_class_desc): Likewise. Lose local static variable.
9430 Use base_desc_type_node. Use get_base_offset.
9431 (expand_ptr_desc): Use tinfo_name.
9432 (expand_attr_desc): Likewise.
9433 (expand_generic_desc): Likewise.
9434
9435 * tinfo.cc (__GXX_ABI_VERSION): Test value and existance.
9436 * tinfo.h (__GXX_ABI_VERSION): Test value and existance.
9437
9438 2000-01-23 Mark Mitchell <mark@codesourcery.com>
9439
9440 * cp-tree.h (__eprintf): Remove declaration.
9441 * tree.c (__eprintf): Remove definition.
9442
9443 2000-01-23 Zack Weinberg <zack@rabi.columbia.edu>
9444 Mark Mitchell <mark@codesourcery.com>
9445
9446 * cp-tree.h (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N,
9447 CLEAR_CLASSTYPE_MARKED_N): Avoid signed vs. unsigned warnings.
9448
9449 2000-01-23 Brad Lucier <lucier@math.purdue.edu>
9450
9451 * class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly.
9452
9453 2000-01-23 Mark Mitchell <mark@codesourcery.com>
9454
9455 * cp-tree.h (register_dtor_fn): New function.
9456 * decl.c (destroy_local_static): Rename to ...
9457 (register_dtor_fn): ... this. Give it external linkage.
9458 (expand_static_init): Use it.
9459 * decl2.c (do_static_initialization): Likewise, if using
9460 __cxa_atexit.
9461 (do_static_destruction): Check that __cxa_atexit is not in use.
9462 (finish_file): Don't call do_static_destruction if using
9463 __cxa_atexit.
9464
9465 * typeck.c (convert_arguments): Restore two-message error
9466 reporting.
9467
9468 2000-01-20 Nathan Sidwell <sidwell@codesourcery.com>
9469
9470 Remap dynamic cast hint values to be consistent across ABIs.
9471 * search.c (dynamic_cast_base_recurse): Remap generated value.
9472 (get_dynamic_cast_base_type): Adjust documentation.
9473 * tinfo.h (__user_type_info::dyncast): Likewise.
9474 (__user_type_info::find_public_subobj): Remap BOFF meaning.
9475 * tinfo.cc (__si_type_info::do_dyncast): Remap BOFF meaning.
9476 (__class_type_info::do_dyncast): Likewise.
9477 (__class_type_info::do_find_public_subobj): Likewise.
9478 * tinfo2.cc (__dynamic_cast): Remap BOFF parameter.
9479
9480 2000-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
9481
9482 * typeck.c (build_unary_op): Use cp_pedwarn, not pedwarn.
9483
9484 * typeck2.c (incomplete_type_error): Restore previous
9485 cp_error and cp_error_at call sequence.
9486
9487 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
9488
9489 * class.c (dump_class_hierarchy): Make format agree with argument;
9490 cast pointer to unsigned long and print with %lx.
9491
9492 2000-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
9493
9494 * decl2.c (lang_decode_option): Set default line-wrap length to 72.
9495
9496 * typeck.c (composite_pointer_type, common_type,
9497 comp_target_parms, c_sizeof, expr_sizeof, build_array_ref,
9498 build_function_call_real, convert_arguments,
9499 build_binary_op_nodefault, pointer_int_sum, pointer_diff,
9500 build_unary_op, mark_addressable, build_compound_expr,
9501 build_static_cast, build_reinterpret_cast, build_const_cast,
9502 build_c_cast, build_modify_expr, get_delta_difference,
9503 build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
9504 'ISO C++'. Fusion consecutive calls to diagnotic message routines
9505 into a single one.
9506 * typeck2.c (readonly_error, abstract_virtuals_error,
9507 process_init_constructor, check_for_new_type): Likewise.
9508
9509 2000-01-19 Mark Mitchell <mark@codesourcery.com>
9510
9511 * tree.c (bot_manip): Set DECL_CONTEXT for newly created
9512 VAR_DECLs.
9513
9514 2000-01-18 Nathan Sidwell <sidwell@codesourcery.com>
9515
9516 * cp-tree.h (get_tinfo_fn_dynamic): Remove prototype.
9517 (build_x_typeid): Likewise.
9518 (get_tinfo_fn): Likewise.
9519 (get_tinfo_fn_unused): Rename to ...
9520 (get_tinfo_decl): ... here.
9521 * rtti.c (build_headof): Replace logic error with assertion.
9522 (get_tinfo_fn_dynamic): Rename to ...
9523 (get_tinfo_decl_dynamic): ... here. Make static. Use
9524 complete_type_or_else.
9525 (build_x_typeid): Move into ...
9526 (build_typeid): ... here. Adjust call to
9527 get_tinfo_decl_dynamic. Use tinfo_from_decl. Simplify
9528 throw_bad_typeid expression.
9529 (get_tinfo_fn_unused): Rename to ...
9530 (get_tinfo_decl): ... here. Adjust comment.
9531 (get_tinfo_fn): Delete.
9532 (tinfo_from_decl): New static function.
9533 (get_typeid_1): Call get_tinfo_decl and tinfo_from_decl.
9534 (get_typeid): Use complete_type_or_else.
9535 (build_dynamic_cast_1): Adjust calls to
9536 get_tinfo_decl_dynamic. Simplify throw_bad_cast expression.
9537 * parse.y (primary): Adjust call to build_typeid.
9538 * except.c (build_eh_type_type_ref): Adjust call to
9539 get_tinfo_decl. Mark as used.
9540 * class.c (set_rtti_entry): Adjust call to get_tinfo_decl.
9541 * decl2.c (build_expr_from_tree): Adjust call to build_typeid.
9542 * parse.c: Regenerated.
9543
9544 2000-01-17 Mark Mitchell <mark@codesourcery.com>
9545
9546 * class.c (fixed_type_or_null): Don't clear NONNULL. Document
9547 calling convention.
9548 (resolves_to_fixed_type_p): Document calling convention.
9549 * rtti.c (build_x_typeid): Initialize NONNULL.
9550
9551 * cp-tree.h (build_shared_int_cst): New function.
9552 * call.c (build_over_call): Use DECL_VIRTUAL_CONTEXT, for clarity.
9553 * class.c (modify_vtable_entry): Likewise.
9554 (add_virtual_function): Split out code to generated shared
9555 INTEGER_CSTs to build_share_int_cst.
9556 (modify_all_vtables): Handle all the overridden functions here.
9557 Add overridden functions from non-primary virtual bases to the
9558 primary vtable.
9559 (finish_struct_1): Adjust call to modify_all_vtables. Add
9560 overridden functions from non-primary bases to the vtable.
9561 * tree.c (build_shared_int_cst): New function.
9562
9563 * cp-tree.h (scratchalloc): Remove.
9564 (build_scratch_list): Likewise.
9565 * call.c (convert_class_to_reference): Replace build_scratch_list
9566 and build_expr_list with build_tree_list.
9567 (add_candidate): Replace scratchalloc with expralloc. Note memory
9568 leak.
9569 (build_user_type_conversion_1): Replace build_scratch_list
9570 and build_expr_list with build_tree_list.
9571 (build_new_op): Likewise.
9572 (build_op_delete_call): Likewise.
9573 (convert_like): Likewise.
9574 * cvt.c (ocp_convert): Likewise.
9575 * decl.c (start_decl): Likewise.
9576 (start_function): Likewise.
9577 (finish_destructor_body): Likewise.
9578 (maybe_build_cleanup_1): Likewise.
9579 * decl2.c (reparse_decl_as_expr): Likewise.
9580 * init.c (perform_member_init): Likewise.
9581 (expand_cleanup_for_base): Likewise.
9582 (build_builtin_delete_call): Likewise.
9583 (build_new_1): Likewise.
9584 (build_delete): Likewise.
9585 * method.c (do_build_assign_ref): Likewise.
9586 * parse.y (already_scoped_stmt): Likewise.
9587 (nontrivial_exprlist): Likewise.
9588 (net_initializer): Likewise.
9589 (initlist): Likewise.
9590 * parse.c: Regenerated.
9591 * rtti.c (build_x_typeid): Likewise.
9592 (build_dynamic_cast_1): Likewise.
9593 * typeck.c (build_x_compound_expr): Likewise.
9594 (build_static_cast): Likewise.
9595 (build_modify_expr): Likewise.
9596
9597 * cp-tree.h (DECL_VINDEX): Add documentation.
9598 * class.c (build_vtable_entry): Likewise.
9599 (start_vtable): Add comment.
9600 (add_virtual_function): Replace pending_hard_virtuals with
9601 overridden_virtuals and pending_virtuals with new_virtuals.
9602 Replace redundant assignments with assertions.
9603 (check_for_override): Add comment.
9604 (check_bases_and_members): Replace pending_hard_virtuals with
9605 overridden_virtuals and pending_virtuals with new_virtuals.
9606 (create_vtbl_ptr): Likewise.
9607 (layout_class_type): Likewise.
9608 (finish_struct_1): Likewise. Add comments.
9609
9610 2000-01-16 Mark Mitchell <mark@codesourcery.com>
9611
9612 * class.c (finish_struct_1): Replace redundant code with
9613 assertions.
9614
9615 * cp-tree.h (flag_new_abi): Move.
9616 (flag_use_cxa_atexit): Likewise.
9617 (flag_honor_std): Likewise.
9618 (flag_rtti): Likewise.
9619 (vbase_offsets_in_vtable_p): Define.
9620 (vptrs_present_everywhere_p): Likewise.
9621 (TYPE_CONTAINS_VPTR_P): Likewise.
9622 (dfs_walk_real): Declare.
9623 * class.c (build_vbase_pointer_fields): Check
9624 vbase_offsets_in_vtable_p.
9625 (dfs_build_vbase_offset_vtbl_entries): Record the vbase indices in
9626 BINFO_VPTR_FIELD.
9627 (build_vbase_offset_vtbl_entries): Simplify.
9628 (build_vbase_offset_vtbl_entries): Adjust.
9629 (build_vbase_pointer): Add ability to look up vbase offsets in
9630 vtable.
9631 (start_vtable): New function.
9632 (add_virtual_function): Use it.
9633 (determine_primary_base): Use TYPE_CONTAINS_VPTR_P.
9634 (num_extra_vtbl_entries): Use vbase_offsets_in_vtable_p.
9635 (build_vtbl_initializer): Take the type of the complete object as
9636 input. Use it to correctly calculate vbase offsets.
9637 (dfs_finish_vtbls): Pass the complete type to
9638 build_vtbl_initializer.
9639 (check_bases_and_members): Use TYPE_CONTAINS_VPTR_P.
9640 (create_vtable_ptr): Create a vtable even if there are no
9641 new virtual functions, under the new ABI.
9642 (finish_struct_1): Likewise.
9643 (get_vfield_name): Use TYPE_CONTAINS_VPTR_P.
9644 * decl.c (exapnd_static_init): Remove call to
9645 preserve_initializer.
9646 * decl2.c (mark_vtable_entries): Tweak to handle vbase offsets in
9647 vtables.
9648 * init.c (initialize_vtbl_ptrs): Initialize them in pre-order.
9649 (expand_virtual_init): Use vbase_offsets_in_vtable_p.
9650 (construct_virtual_bases): Don't initialize virtual base pointers
9651 under the new ABI.
9652 (build_aggr_init): Clean up comment.
9653 (expand_aggr_init_1): Likewise.
9654 * rtti.c (expand_class_desc): Store the virtual function table
9655 index where the vbase offset lives in the offset field.
9656 * search.c (dfs_walk_real): Make it global.
9657 (dfs_debug_mark): Use TYPE_CONTAINS_VPTR_P.
9658 * tree.c (make_binfo): Don't clear BINFO_VPTR_FIELD.
9659
9660 * tinfo.h (USItype): Make it signed under the new ABI.
9661 * tinfo.cc (convert_to_base): New function. Encapsulate base
9662 conversion logic here.
9663 (__class_type_info::do_upcast): Use it.
9664 (__class_type_info::do_dyncast): Likewise.
9665 (__class_type_info::do_find_public_subobj): Likewise.
9666
9667 * init.c (construct_virtual_bases): Don't look up the addresses of
9668 virtual bases at run-time.
9669
9670 * class.c (build_vbase_pointer): Relocate.
9671 (build_vbase_pointer_fields): Likewise.
9672 (dfs_build_vbase_offset_vtbl_entries): Likewise.
9673 (build_vbase_offset_vtbl_entries): Likewise.
9674
9675 * decl.c (init_decl_processing): Complain if -fnew-abi
9676 -fno-vtable-thunks is used.
9677
9678 * decl2.c (lang_decode_option): Don't couple flag_honor_std to
9679 flag_new_abi.
9680
9681 2000-01-15 Mark Mitchell <mark@codesourcery.com>
9682
9683 * cp-tree.h (num_extra_vtbl_entries): New function.
9684 (size_extra_vtbl_entries): Likewise.
9685 (dfs_vtable_path_unmark): Likewise.
9686 (dfs_vtable_path_unmarked_real_bases_queue_p): Likewise.
9687 (dfs_vtable_path_marked_real_bases_queue_p): Likewise.
9688 * class.c (num_extra_vtbl_entries): New function.
9689 (size_extra_vtbl_entries): Likewise.
9690 (dfs_build_vbase_offset_vtbl_entries): New function.
9691 (build_vbase_offset_vtbl_entries): Likewise.
9692 (build_vtbl_initializer): Use it.
9693 (finish_struct_1): Adjust vtable sizes (using
9694 num_extra_vtbl_entries).
9695 * expr.c (cplus_expand_expr): Assert that the DECL_RTL for a
9696 THUNK_DECL is non-NULL before expanding it.
9697 * init.c (expand_virtual_init): Adjust the vtable pointer by
9698 size_extra_vtbl_entries before storing it.
9699 * search.c (get_shared_vase_if_not_primary): Adjust prototype.
9700 Handle TREE_LIST parameters here, not in the dfs_* functions.
9701 (dfs_unmarked_real_bases_queue_p): Adjust.
9702 (dfs_marked_real_bases_queue_p): Likewise.
9703 (dfs_vtable_path_unmarked_real_bases_queue_p): New function.
9704 (dfs_vtable_path_marked_real_bases_queue_p): New function.
9705 (dfs_vtable_path_unmark): Likewise.
9706
9707 2000-01-14 Mark Mitchell <mark@codesourcery.com>
9708
9709 * optimize.c (copy_body_r): Clear the operand three of a
9710 TARGET_EXPR when copying it.
9711
9712 2000-01-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9713
9714 * method.c (build_decl_overload_real): Check whether we are in ::
9715 before returning __builtin_new/delete.
9716
9717 2000-01-13 Mark Mitchell <mark@codesourcery.com>
9718
9719 * pt.c (tsubst_friend_function): Improve comment.
9720 (instantiate_decl): Avoid crashing when a "nested" function is
9721 instantiated from the top level.
9722
9723 * dump.c (dqeueue_and_dump): Dump
9724 DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION.
9725
9726 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9727
9728 * call.c: If GATHER_STATISTICS, declare `n_build_method_call'.
9729
9730 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
9731
9732 * g++spec.c (lang_specific_driver): Add -fnew-abi if
9733 ENABLE_NEW_GXX_ABI defined.
9734 * Make-lang.in (tinfo.o, tinfo2.o, exception.o, new.o,
9735 opnew.o, opnewnt.o, opvnew.o, opvnewnt.o, opdel.o, opdelnt.o,
9736 opvdel.o, opvdelnt.o): Use GXX_ABI_FLAG switch.
9737
9738 2000-01-12 Mark Mitchell <mark@codesourcery.com>
9739
9740 * decl.c (start_cleanup_fn): Call pushdecl.
9741
9742 * call.c (convert_class_to_reference): Fix typos.
9743 (build_conditional_expr): Handle errors gracefully.
9744 * class.c (push_nested_class): Likewise.
9745 * cp-tree.h (VAR_FUNCTION_OR_PARM_DECL_CHECK): New macro.
9746 (DECL_THIS_EXTERN): Use it.
9747 (DECL_THIS_STATIC): Likewise.
9748 * cvt.c (convert_to_void): Handle errors gracefully.
9749 (build_expr_type_conversion): Likewise.
9750 * decl.c (maybe_push_decl): Likewise.
9751 (start_decl_1): Likewise.
9752 (require_complete_types_for_parms): Likewise.
9753 * parse.y (structsp): Likewise.
9754 (base_class): Likewise.
9755 * parse.c: Regenerated.
9756 * pt.c (finish_member_template_decl): Likewise.
9757 * typeck.c (decay_conversion): Likewise.
9758
9759 * cp-tree.h (dfs_skip_vbases): New function.
9760 (find_vbase_instance): Likewise.
9761 * class.c (determine_primary_base): Allow a nearly empty base to
9762 serve as a primary base class under the new ABI.
9763 (get_class_offset_1): Rename to ...
9764 (dfs_get_class_offset): ... this. Simplify. Don't issue error
9765 messages here.
9766 (get_class_offset): Use it. Issue error messages here.
9767 (dfs_modify_vtables): Rely on dfs_unmarked_real_bases_queue_p to
9768 find the right copies of virtual bases.
9769 (fixup_vtable_deltas1): Rename to ...
9770 (dfs_fixup_vtable_deltas): ... this. Adjust to handle virtual
9771 bases as primary bases.
9772 (fixup_vtable_deltas): Remove.
9773 (override_one_vtable): Handle virtual bases as primary bases.
9774 (merge_overrides): Likewise.
9775 (finish_struct_1): Likewise.
9776 (dump_class_hierarchy): Dump primary-ness of bases as well.
9777 * search.c (mark_primary_bases): Use a pre-order traversal to
9778 handle primary virtual bases.
9779 (dfs_skip_vbases): New fiunction.
9780 (expand_upcast_fixups): Adjust to handle primary virtual bases.
9781 (fixup_virtual_upcast_offsets): Likewise.
9782 (fixup_all_virtual_upcast_offsets): Likewise.
9783 (dfs_find_vbase_instances): New function.
9784 (find_vbase_instance): Likewise.
9785
9786 2000-01-11 Mumit Khan <khan@xraylith.wisc.edu>
9787
9788 * lex.c (DIR_SEPARATOR): Delete macro.
9789
9790 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
9791
9792 * decl2.c (lang_decode_option): Handle automatic line wrapping
9793 option.
9794
9795 2000-01-11 Mark Mitchell <mark@codesourcery.com>
9796
9797 * friend.c (do_friend): Don't resolve scopes when processing
9798 template declarations, even if the qualifying scope doesn't
9799 involve template parameters.
9800
9801 2000-01-10 Mark Mitchell <mitchell@dumbledore.codesourcery.com>
9802
9803 * class.c (dfs_modify_vtables_queue_p): Remove.
9804 (modify_all_vtables): Use dfs_unmarked_real_bases_queue_p
9805 and dfs_marked_real_bases_queue_p instead of
9806 dfs_modify_vtables_queue_p.
9807
9808 * class.c (build_vbase_path): Simplify.
9809 (dfs_propagate_binfo_offsets): New function.
9810 (propagate_binfo_offsets): Use it.
9811 (remove_base_field): Simplify.
9812 (dfs_set_offset_for_vbases): Remove.
9813 (dfs_set_offset_for_shared_vbases): New function.
9814 (dfs_set_offset_for_unshared_vbases): Likewise.
9815 (layout_virtual_bases): Use them.
9816 (layout_basetypes): Don't call propagate_binfo_offsets.
9817 * search.c (dfs_get_vbase_types): Clone completely fresh binfos
9818 for the vbases.
9819
9820 * class.c (build_base_field): New function, split out from ...
9821 (build_base_fields): ... here. Use it. Allocate primary bases
9822 first, under the new ABI.
9823 (get_vtable_entry): Remove.
9824 (remove_base_field): New function, split out from ...
9825 (remove_base_fields): ... here. Adjust since primary bases come
9826 first under the new ABI.
9827
9828 * cp-tree.h (expand_direct_vtbls_init): Remove declaration.
9829 (initialize_vtbl_ptrs): New function.
9830 (expand_indirect_vtbls_init): Change prototype.
9831 (convert_pointer_to_vbase): Declare.
9832 * init.c (expand_direct_vtbls_init): Remove.
9833 (dfs_initialize_vtbl_ptrs): New function.
9834 (initialize_vtbl_ptrs): Likewise.
9835 (emit_base_init): Use initialize_vtbl_ptrs.
9836 * search.c (convert_pointer_to_vbase): Make it global.
9837 (expand_indirect_vtbls_init): Remove vtable initialization code.
9838 * semantics.c (setup_vtbl_ptr): Use initialize_vtbl_ptrs.
9839
9840 * class.c (dfs_finish_vtbls): New function.
9841 (finish_vtbls): Use it.
9842 (dump_class_hierarchy): New function.
9843
9844 * cp-tree.h (BINFO_PRIMARY_MARKED_P): Change definition.
9845 (BINFO_VBASE_PRIMARY_P): New macro.
9846 (BINFO_VIRTUALS): Add to documentation.
9847 (SET_BINFO_PRIMARY_MARKED_P): Remove.
9848 (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
9849 (dfs_mark_primary_bases_queue_p): Likewise.
9850 (dfs_unmarked_real_bases_queue_p): New function.
9851 (dfs_marked_real_bases_queue_p): Likewise.
9852 * search.c (dfs_mark_primary_bases): Adjust.
9853 (mark_primary_bases): Likewise.
9854 (get_shared_vbase_if_not_primary): New function.
9855 (dfs_unmarked_real_bases_queue_p): Likewise.
9856 (dfs_marked_real_bases_queue_p): Likewise.
9857 (dfs_get_pure_virtuals): Simplify.
9858 (get_pure_virtuals): Likewise.
9859
9860 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9861
9862 * lex.c: Include tm_p.h.
9863
9864 2000-01-07 Nathan Sidwell <sidwell@codesourcery.com>
9865
9866 * lang-specs.h (__GXX_ABI_VERSION): New preprocessor macro.
9867
9868 2000-01-06 Jason Merrill <jason@casey.cygnus.com>
9869
9870 * decl2.c (comdat_linkage): Don't set DECL_DEFER_OUTPUT.
9871 * pt.c (instantiate_decl): Defer comdat templates that might not be
9872 needed.
9873
9874 * cp-tree.h (DECL_NEEDED_P): Also true if !DECL_COMDAT.
9875 * decl2.c (finish_vtable_vardecl): Don't check !DECL_COMDAT.
9876 (finish_file): Likewise.
9877
9878 * decl2.c (import_export_class): Undo 12/14 change.
9879
9880 * error.c (dump_decl): operator new, not operatornew.
9881
9882 * class.c (field_decl_cmp): A nontype is "greater" than a type.
9883 * search.c (lookup_field_1): Look for the last field with the
9884 desired name.
9885
9886 2000-01-05 Nathan Sidwell <nathan@acm.org>
9887
9888 * decl2.c (lookup_arg_dependent): Deal with FNS not being a
9889 FUNCTION_DECL.
9890
9891 2000-01-05 Nathan Sidwell <nathan@acm.org>
9892
9893 * typeck.c (build_static_cast): Don't strip target qualifiers
9894 when casting from a class.
9895
9896 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9897
9898 * class.c (warn_hidden): Initialize variable `fndecl'.
9899
9900 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
9901
9902 * decl.c (flag_isoc9x): New variable to be able to use code in
9903 c-common.c. For now always zero.
9904
9905 2000-01-03 Mark Mitchell <mark@codesourcery.com>
9906
9907 * cp-tree.h (CLASSTYPE_VBASECLASSES): Improve documentation.
9908 * class.c (layout_basetypes): Don't set BINFO_INHERITANCE_CHAIN
9909 or unshare_base_binfos for virtual bases here.
9910 * search.c (dfs_get_vbase_types): Do it here.
9911 (get_vbase_types): Adjust.
9912
9913 2000-01-02 Mark Mitchell <mark@codesourcery.com>
9914
9915 * cp-tree.h (CLASSTYPE_VFIELDS): Move definition.
9916 (BINFO_PRIMARY_MARKED_P): Use flag 5.
9917 (SET_BINFO_PRIMARY_MARKED_P): Likewise.
9918 (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
9919 (unmark_primary_bases): Remove declaration.
9920 (unmarkedp): Declare.
9921 (dfs_vbase_unmark): Likewise.
9922 * class.c (determine_primary_base): Return immediately if there
9923 are no base classes. Call mark_primary_bases here.
9924 (modify_all_direct_vtables): Remove.
9925 (modify_all_indirect_vtables): Remove.
9926 (dfs_modify_vtables_queue_p): New function.
9927 (dfs_modify_vtables): New function.
9928 (modify_all_vtables): Use them.
9929 (build_base_fields): Build FIELD_DECLs for primary virtual base
9930 classes.
9931 (create_vtable_ptr): Don't call determine_primary_base here.
9932 (dfs_mark_primary_bases_and_set_vbase_offsets): Rename to ...
9933 (dfs_set_offset_for_vbases): ... this.
9934 (layout_virtual_bases): Use it.
9935 (layout_class_type): Call determine_primary_base here.
9936 * search.c (unmarkedp): Make it global.
9937 (shared_marked_p): Simplify.
9938 (shared_unmarked_p): Likewise.
9939 (dfs_primary_bases_queue_p): Remove.
9940 (dfs_unmark_primary_bases): Likewise.
9941 (unmark_primary_bases): Likewise.
9942 (mark_primary_bases): Simplify.
9943 (get_pure_virtuals): Don't call mark_primary_bases here.
9944 (dfs_vbase_unmark): New function.
9945 (get_vbase_types): Simplify.
9946
9947 * class.c (struct base_info): Remove.
9948 (determine_primary_base): Take has_virtual_p rather than a
9949 base_info as input. Don't calculate max_has_virtual.
9950 (finish_struct_bits): Remove max_has_virtual argument.
9951 (create_vtable_ptr): Remove max_has_virtual_p argument.
9952 (layout_virtual_bases): Remove max argument.
9953 (layout_basetypes): Likewise.
9954 (layout_class_type): Remove max_has_virtual_p argument.
9955 (finish_struct_1): Remove max_has_virtual.
9956
9957 * cp-tree.h (dfs_mark_primary_bases_queue_p): New function.
9958 (layout_basetypes): Remove.
9959 * class.c (propagate_binfo_offsets): Moved here from tree.c.
9960 Update to handle primary virtual bases.
9961 (remove_base_fields): New function, split out from
9962 layout_basetypes.
9963 (dfs_mark_primary_bases_and_set_vbase_offsets): New function.
9964 (layout_virtual_bases): New function, split out from
9965 layout_basetypes. Update to handle primary virtual bases.
9966 (layout_basetypes): Moved here from tree.c. Use
9967 remove_base_fields and layout_virtual_bases.
9968 * search.c (dfs_mark_primary_bases_queue_p): New function.
9969 (mark_primary_bases): Use it.
9970 * tree.c (CEIL): Remove.
9971 (propagate_binfo_offsets): Remove.
9972 (layout_basetypes): Remove.
9973
9974 2000-01-01 Mark Mitchell <mark@codesourcery.com>
9975
9976 * cp-tree.h (CLASSTYPE_N_BASECLASSES): Use BINFO_N_BASETYPES.
9977 (BINFO_PRIMARY_MARKED_P): New macro.
9978 (SET_BINFO_PRIMARY_MARKED_P): Likewise.
9979 (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
9980 (mark_primary_bases): New function.
9981 (unmark_primary_bases): Likewise.
9982 * search.c (get_abstract_virtuals_1): Remove.
9983 (dfs_mark_primary_bases): New function.
9984 (mark_primary_bases): Likewise.
9985 (dfs_unmark_primary_bases): Likewise.
9986 (unmark_primary_bases): Likewise.
9987 (dfs_get_pure_virtuals): Likewise.
9988
9989 2000-01-01 Mark Mitchell <mark@codesourcery.com>
9990
9991 * cp-tree.h (skip_rtti_stuff): Adjust prototype.
9992 * class.c (skip_rtti_stuff): Reorganize parameters and return value.
9993 (modify_one_vtable): Adjust.
9994 (fixup_vtable_deltas1): Likewise.
9995 (override_one_vtable): Likewise.
9996 * search.c (get_abstract_virtuals_1): Likewise.
9997 (get_pure_virtuals): Likewise.
9998 (expand_upcast_fixups): Likewise.
9999 * tree.c (debug_binfo): Likewise.
10000
10001 * class.c (build_vtable): Don't return a value. Don't rebuild
10002 vtables for bases that have already been handled.
10003 (prepare_fresh_vtable): Don't rebuild vtables for bases that have
10004 already been handled.
10005 (modify_one_vtable): Adjust accordingly.
10006 (fixup_vtable_deltas1): Likewise.
10007 (finish_struct_1): Likewise.
10008
10009 2000-01-01 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10010
10011 * call.c (build_new_method_call): Also check destructors.