]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/ChangeLog
class.c (build_base_field): Mark fields for base classes with DECL_IGNORED_P.
[gcc.git] / gcc / cp / ChangeLog
CommitLineData
0f3a8219
MEC
12003-02-17 Michael Elizabeth Chastain <mec@shout.net>
2
3 * class.c (build_base_field): Mark fields for base classes with
4 DECL_IGNORED_P.
5
db77ef4c
KL
62003-02-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7
8 PR c++/9457
9 * pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Substitute
10 CONSTRUCTOR_ELTS only once.
11
0df4ae96
KL
122003-02-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
13
14 PR c++/9459
15 * error.c (dump_type_prefix): Handle TYPEOF_TYPE.
16 (dump_type_suffix): Likewise.
17
86ac0575
NS
182003-02-14 Nathan Sidwell <nathan@codesourcery.com>
19
20 * search.c: ANSIfy function declarations and definitions.
21 * cp-tree.h (lookup_field, lookup_member): Last parameter is a bool.
22 * call.c (build_method_call, resolve_scoped_fn_name,
23 build_java_interface_fn_ref): Adjust lookup_field, lookup_member
24 calls.
25 * class.c (handle_using_decl): Likewise.
26 * decl.c (make_typename_type, make_unmound_class_template,
27 start_decl, compute_array_index_type): Likewise.
28 * decl2.c (build_expr_from_tree, build_call_from_tree): Likewise.
29 * init.c (expand_member_init, build_member_call): Likewise.
30 * pt.c (tsubst_copy, tsubst_copy_and_build, do_decl_instantiation,
31 resolve_typename_type): Likewise.
32 * typeck.c (lookup_destructor, finish_class_member_access_exprm
33 build_prememfunc_access_expr): Likewise.
34
fd295cb2
GDR
352003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
36
37 * decl2.c: Include "timevar.h".
38 (namespace_ancestor): Time name lookup.
39 (add_using_namespace): Likewise.
40 (lookup_using_namespace): Likewise.
41 (qualified_lookup_using_namespace): Likewise.
42 (decl_namespace): Likewise.
43 (lookup_arg_dependent): Likewise.
44 * lex.c (do_identifier): Likewise.
45 (do_scoped_id): Likewise.
46 * pt.c (lookup_template_class): Likewise.
47
62ed060f
AP
482003-02-14 Andrew Pinski <pinskia@physics.uc.edu>
49
50 * decl.c: (define_label): Fix warning for return 0 instead of NULL.
51
22ffcc6f
GDR
522003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
53
54 * decl.c: Include "timevar.h".
55 (poplevel): Time name lookup.
56 (find_binding): Likewise.
57 (push_namespace): Likewise.
58 (pop_nested_namespace): Likewise.
59 (store_bindings): Likewise.
60 (maybe_push_to_top_level): Likewise.
61 (pop_from_top_level): Likewise.
62 (push_local_name): Likewise.
63 (pushtag): Likewise.
64 (pushdecl): Likewise.
65 (pushdecl_with_scope): Likewise.
66 (pushdecl_namespace_level): Likewise.
67 (pushdecl_top_level): Likewise.
68 (pushdecl_class_level): Likewise.
69 (push_class_level_binding): Likewise.
70 (push_using_decl): Likewise.
71 (push_using_directive): Likewise.
72 (push_overloaded_decl): Likewise.
73 (lookup_label): Likewise.
74 (define_label): Likewise.
75 (lookup_tag): Likewise.
76 (lookup_tag_reverse): Likewise.
77 (lookup_namespace_name): Likewise.
78 (select_decl): Likewise.
79 (unqualified_namespace_lookup): Likewise.
80 (lookup_name_real): Likewise.
81 (lookup_name_current_level): Likewise.
82 (lookup_type_current_level): Likewise.
83 (maybe_inject_for_scope_var): Likewise.
84 (xref_tag): Likewise.
85
86 * Make-lang.in (cp/decl.o): Add dependency on timevar.h
87
6a540f3c
PE
882003-02-12 Phil Edwards <pme@gcc.gnu.org>
89
90 * decl.c (build_enumerator): Remove unneeded test.
91
7a93f739
DN
922003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
93
94 * cp-tree.h (struct lang_type_header): Make all fields unsigned
95 char.
96
b80f8ef3
MM
972003-02-03 Mark Mitchell <mark@codesourcery.com>
98
99 PR c++/7129
100 * call.c (z_candidate): Add args.
101 (convert_class_to_reference): Set it.
102 (implicit_conversion): Tidy.
103 (add_candidate): Add args parameter.
104 (add_function_candidate): Adjust call to add_candidate.
105 (add_conv_candidate): Likewise.
106 (build_builtin_candidate): Likewise.
107 (build_user_type_conversion_1): Eliminate wasteful tree_cons
108 usage.
109 (build_new_function_call): Likewise.
110 (build_object_call): Likewise.
111 (add_candidates): New function.
112 (build_new_op): Use it.
113 (covert_like_real): Adjust call to build_over_call.
114 (build_over_call): Remove args parameter.
115 * operators.def: Add <?= and >?=.
116
271bd540
RS
1172003-02-01 Richard Sandiford <rsandifo@redhat.com>
118
119 * typeck.c (build_indirect_ref): Don't check flag_volatile.
120
db0f613d
KL
1212003-01-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
122
123 PR c++/8849
124 * pt.c (resolve_overloaded_unification): Handle FUNCTION_DECL.
125
1824b90d
NS
1262003-01-31 Nathan Sidwell <nathan@codesourcery.com>
127
128 * cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
129 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
130 (BINFO_LANG_ELTS): New #define.
131 * tree.c (make_binfo): Use BINFO_LANG_ELTS.
132
f099d360
GK
1332003-01-30 Geoffrey Keating <geoffk@apple.com>
134
135 * cp/Make-lang.in: Remove -Wno-error from cp/decl.o.
136
5552b43c
MM
1372003-01-30 Mark Mitchell <mark@codesourcery.com>
138
139 * class.c (check_field_decls): Only check C_TYPE_FIELDS_READONLY
140 for class types.
141 * cp-tree.h (C_TYPE_FIELDS_READONLY): Use a lang-specific bit
142 rather than TYPE_LANG_FLAG_0.
143 (TYPE_BUILT_IN): Remove.
144 (TYPE_DEPENDENT_P): New macro.
145 (TYPE_DEPENDENT_P_VALID): Likewise.
146 (lang_type_class): Add fields_readonly.
147 * decl.c (record_builtin_type): Don't set TYPE_BUILT_IN.
148 * pt.c (dependent_type_p_r): New function, split out from ...
149 (dependent_type_p): ... here. Memoize results.
150 * search.c (dependent_base_p): Use dependent_type_p, not
151 uses_template_parms.
152 * typeck.c (build_modify_expr): Only check C_TYPE_FIELDS_READONLY
153 for class types.
154
14d22dd6
MM
1552003-01-29 Mark Mitchell <mark@codesourcery.com>
156
157 * call.c (build_field_call): Use build_new_op, not build_opfncall.
158 (prep_operand): New function.
159 (build_new_op): Use it. Remove dead code.
160 * class.c (pushclass): Change "modify" parameter type from int to
161 bool.
162 (currently_open_class): Use same_type_p, not pointer equality.
163 (push_nested_class): Adjust calls to pushclass, remove modify
164 parameter.
165 * cp-tree.h (INTEGRAL_OR_ENUMERATION_TYPE_P): New macro.
166 (pushclass): Change prototype.
167 (push_nested_class): Likewise.
168 (grokoptypename): Remove.
169 (build_opfncall): Remove.
170 (value_dependent_expression_p): Declare.
171 (resolve_typename_type): Likewise.
172 (resolve_typename_type_in_current_instantiation): Likewise.
173 (enter_scope_of): Remove.
174 (tsubst): Remove.
175 (tsubst_expr): Likewise.
176 (tsubst_copy): Likewise.
177 (tsubst_copy_and_build): Likewise.
178 * decl.c (warn_about_implicit_typename_lookup): Remove.
179 (finish_case_label): Return error_mark_node for erroneous labels.
180 (start_decl): Adjust calls to push_nested_class.
181 (grokfndecl): Call push_scope/pop_scope around call to
182 duplicate_decls.
183 (grokdeclarator): Do not call tsubst.
184 (start_function): Adjust calls to push_nested_class.
185 * decl2.c (grok_array_decl): Use build_new_op, not build_opfncall.
186 (check_classfn): Use push_scope/pop_scope around type comparisions.
187 (grokoptypename): Remove.
188 (push_sscope): Adjust call to push_nested_class.
189 * error.c (dump_type): Show cv-qualification of typename types.
190 * init.c (build_member_call): Use build_new_op, not
191 build_opfncall.
192 * method.c (build_opfncall): Remove.
193 * parser.c (cp_parser): Add allow_non_constant_expression_p and
194 non_constant_expression_p.
195 (cp_parser_constant_expression): Adjust prototype.
196 (cp_parser_resolve_typename_type): Remove.
197 (cp_parser_non_constant_expression): New function.
198 (cp_parser_non_constant_id_expression): Likewise.
199 (cp_parser_new): Set allow_non_constant_expression_p and
200 non_constant_expression_p.
201 (cp_parser_primary_expression): Reject `this' and `va_arg' in
202 constant-expressions. Note that dependent names aren't really
203 constant.
204 (cp_parser_postfix_expression): Reject conversions to non-integral
205 types in constant-expressions. Neither are increments or
206 decrements.
207 (cp_parser_unary_expression): Reject increments and decrements in
208 constant-expressions.
209 (cp_parser_direct_new_declarator): Adjust call to
210 cp_parser_constant_expression.
211 (cp_parser_cast_expression): Reject conversions to non-integral
212 types in constant-expressions.
213 (cp_parser_assignment_expression): Rejects assignments in
214 constant-expressions.
215 (cp_parser_expression): Reject commas in constant-expressions.
216 (cp_parser_labeled_statement): Adjust call to
217 cp_parser_constant_expression.
218 (cp_parser_direct_declarator): Simplify array bounds, even in
219 templates, when they are non-dependent. Use
220 resolve_typename_type, not cp_parser_resolve_typename_type.
221 (cp_parser_class_head): Use resolve_typename_type, not
222 cp_parser_resolve_typename_type.
223 (cp_parser_member_declaration): Adjust call to
224 cp_parser_constant_expression.
225 (cp_parser_constant_initializer): Likewise.
226 (cp_parser_constructor_declarator): Use resolve_typename_type, not
227 cp_parser_resolve_typename_type.
228 (cp_parser_late_parsing_default_args): Adjust call to
229 push_nested_class.
230 * pt.c (tsubst): Give it internal linkage.
231 (tsubst_expr): Likewise.
232 (tsubst_copy): Likewise.
233 (tsubst_copy_and_build): Likewise.
234 (push_access_scope_real): Likewise.
235 (tsubst_friend_class): Likewise.
236 (instantiate_class_template): Adjust call to pushclass.
237 (value_dependent_expression_p): Give it external linkage.
238 Robustify.
239 (resolve_typename_type): New function.
240 * semantics.c (finish_call_expr): Use build_new_op, not
241 build_opfncall.
242 (begin_constructor_declarator): Remove.
243 (begin_class_definition): Adjust call to pushclass.
244 (enter_scope_of): Remove.
245 * typeck.c (comptypes): Resolve typename types as appropriate.
246 (build_x_indirect_ref): Use build_new_op, not build_opfncall.
247 (build_x_compound_expr): Likewise.
248 (build_modify_expr): Likewise.
249 (build_x_modify_expr): Likewise.
250 * typeck2.c (build_x_arrow): Likewise.
251
be5a07ac
FJ
2522003-01-29 Fariborz Jahanian <fjahanian@apple.com>
253
254 * pt.c (last_pending_template) Declare GTY().
255
710b73e6
KL
2562003-01-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
257
258 PR c++/8591
259 * parser.c (cp_parser_elaborated_type_specifier): Convert
260 TEMPLATE_DECL to TYPE_DECL only when processing template friends.
261 (cp_parser_maybe_treat_template_as_class): Remove redundant tests.
262
f2ce60b8
NS
2632003-01-28 Nathan Sidwell <nathan@codesourcery.com>
264
9ae58faf
NS
265 PR c++/9437
266 * pt.c (unify): Don't unify '*T' with 'U C::*'.
267
f2ce60b8
NS
268 PR c++/3902
269 * parser.c (cp_parser_decl_specifier_seq): Cannot have constructor
270 inside a declarator.
271
a2ddc397
NS
2722003-01-27 Nathan Sidwell <nathan@codesourcery.com>
273
274 * class.c (update_vtable_entry_for_fn): Add index parameter.
275 Generate vcall thunk for covariant overriding from a virtual
276 primary base.
277 (dfs_modify_vtables): Adjust.
278
bbaab916
NS
2792003-01-25 Nathan Sidwell <nathan@codesourcery.com>
280
281 PR c++/9403
282 * parser.c (cp_parser_class_or_namespace_name): Reject duplicate
283 template keyword.
284 (cp_parser_base_specifier): Look for and consume a
285 TEMPLATE keyword. Replace switch with array index.
286
287 PR c++/795
288 * semantics.c (finish_non_static_data_member): Remember the
289 field's type even in a template.
290
291 PR c++/9415
292 * pt.c (tsubst_copy_and_build, CALL_EXPR): BASELINK exprs are
293 already scoped.
294
295 PR c++/8545
296 * parser.c (cp_parser_cast_expression): Be more tentative.
297
fb8eab96
KL
2982003-01-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
299
300 * cp-tree.h (flagged_type_tree_s): Remove.
301 (check_for_new_type): Likewise.
302 * typeck2.c (check_for_new_type): Likewise.
303
c38e9817
NN
3042003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
305
ee42dd9d
NN
306 * dump.c: ANSIfy function declarations and definitions.
307
c38e9817
NN
308 * cp-tree.h, decl.h: Get rid of PARAMS. Again.
309
c006d942
MM
3102003-01-22 Mark Mitchell <mark@codesourcery.com>
311
312 PR c++/9354
313 * init.c (build_new): Set the type of the new-expression, even
314 when processing_templte_decl.
315
316 PR c++/9216
317 * parser.c (cp_parser_primary_expression): Improve error message
318 for templates used in an expression context.
319
320 PR c++/8696
321 * parser.c (cp_parser_decl_specifier_seq): Commit to tentative
322 parse when encountering "typedef".
323
94edc4ab
NN
3242003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
325
326 * class.c, parser.c: ANSIfy function definitions and declarations.
327
e0860732
MM
3282003-01-22 Mark Mitchell <mark@codesourcery.com>
329
65a5559b
MM
330 PR c++/9328
331 * error.c (dump_decl): For an OVERLOAD, just print the name of the
332 function; it doesn't make sense to try to print its type.
333 * semantics.c (finish_typeof): Issue errors about invalid uses.
334
e0860732
MM
335 PR c++/9298
336 * parser.c (cp_parser_consume_semicolon_at_end_of_statement): New
337 function.
338 (cp_parser_expression_statement): Use it.
339 (cp_parser_explicit_instantiation): Likewise.
340 * pt.c (do_decl_instantiation): Improve error handling logic.
341
1fb3244a
MM
3422003-01-22 Mark Mitchell <mark@codesourcery.com>
343
4eb6d609
MM
344 PR c++/9384
345 * parser.c (cp_parser_using_declaration): Issue error messages
346 about name resolution failures here.
347
1fb3244a
MM
348 PR c++/9388
349 * class.c (currently_open_derived_class): Use dependent_type_p.
350 * cp-tree.h (dependent_type_p): New function.
351 (dependent_template_arg_p): Likewise.
352 (dependent_template_p): Likewise.
353 (type_dependent_expression_p): Likewise.
354 * parser.c (cp_parser_dependent_type_p): Remove.
355 (cp_parser_value_dependent_type_p): Likewise.
356 (cp_parser_type_dependent_expression_p): Likewise.
357 (cp_parser_dependent_template_arg_p): Likewise.
358 (cp_parser_dependent_template_id_p): Likewise.
359 (cp_parser_dependent_template_p): Likewise.
360 (cp_parser_diagnose_invalid_type_name): Replace
361 cp_parser_dependent_type_p with dependent_type_p, etc.
362 (cp_parser_primary_expresion): Likewise.
363 (cp_parser_nested_name_specifier_opt): Likewise.
364 (cp_parser_postfix_expression): Likewise.
365 (cp_parser_unary_expression): Likewise.
366 (cp_parser_template_name): Likewise.
367 (cp_parser_class_name): Likewise.
368 (cp_parser_lookup_name): Likewise.
369 * pt.c (dependent_type_p): New function.
370 (value_dependent_expression_p): Likewise.
371 (type_dependent_expression_p): Likewise.
372 (dependent_template_arg_p): Likewise.
373 (dependent_template_id_p): Likewise.
374 (dependent_template_p): Likewise.
375
376 PR c++/9285
377 PR c++/9294
00b51d29
MM
378 * parser.c (cp_parser_simple_declaration): Return quickly when
379 encountering errors.
1fb3244a 380
dd859b8a
KG
3812003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
382
383 Make-lang.in (cp/decl.o-warn): Add -Wno-error.
384
753225c1
JM
3852003-01-17 Jason Merrill <jason@redhat.com>
386
387 PR c++/9167, c++/9358
388 * decl.c (require_complete_types_for_parms): Also update DECL_ARG_TYPE.
389
77b996cc
JM
3902003-01-17 Jason Merrill <jason@redhat.com>
391
392 PR c++/9342
393 * call.c (build_conditional_expr): Always do lvalue-rvalue
394 conversion.
395
5dae1114
MM
3962003-01-17 Mark Mitchell <mark@codesourcery.com>
397
398 PR c++/9294
399 * cp-tree.def (BASELINK): Make it class 'x', not class 'e'.
400 * cp-tree.h (BASELINK_BINFO): Adjust.
401 (BASELINK_FUNCTIONS): Likewise.
402 (BASELINK_ACCESS_BINFO): Likewise.
403 (tree_baselink): New structure.
404 (cp_tree_node_structure_enum): Add TS_CP_BASELINK.
405 (lang_tree_node): Add baselink.
406 * decl.c (cp_tree_node_structure): Add BASELINK case.
407 * search.c (build_baselink): Adjust.
408 * tree.c (cp_walk_subtrees): Add BASELINK case. Remove BASELINK_P
409 test from TREE_LIST case.
410
411 PR c++/9272
412 * parser.c (cp_parser_constructor_declarator_p): Do not assume
413 that a constructor cannot be declared outside of its own class.
414
415 * parser.c (cp_parser_resolve_typename_type): If the scope cannot
416 be resolved, neither can the qualified name.
417
418 * rtti.c (get_pseudo_ti_desc): Fix thinko.
419
a48cccea
JM
4202003-01-16 Jason Merrill <jason@redhat.com>
421
422 PR c++/8564
423 * init.c (build_vec_init): Re-add maxindex parm.
424 (perform_member_init, build_aggr_init): Pass it.
425 (build_new_1): Pass it. Use an incomplete array type for full_type.
426 * typeck.c (build_modify_expr): Pass it.
427 * cp-tree.h: Adjust.
428
cc23546e
JO
4292003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
430
431 * cp-tree.h (tsubst_copy_and_build): New declaration.
432 * pt.c (tsubst_copy): Remove 'build_expr_from_tree' from comment.
433 (tsubst_expr): Use 'tsubst_copy_and_build'. Update initial comment.
434 (tsubst_copy_and_build): New function.
435
8fbc5ae7
MM
4362003-01-16 Mark Mitchell <mark@codesourcery.com>
437
438 * cp-tree.h (lang_type_class): Remove is_partial_instantiation.
439 (PARTIAL_INSTANTIATION_P): Remove.
440 (IMPLICIT_TYPENAME_P): Likewise.
441 (IMPLICIT_TYPENAME_TYPE_DECL_P): Likewise.
442 (build_typename_type): Remove declaration.
443 (parmlist_is_exprlist): Likewise.
444 * decl.c (build_typename_type): Make it static, remove third
445 parameter.
446 (push_class_binding): Don't do implicit typename stuff.
447 (make_typename_type): Likewise.
448 (lookup_name_real): Likewise.
449 (grokdeclarator): Don't try to convert declarations into
450 initializations. Don't do implicit typename stuff.
451 (parmlist_is_exprlist): Remove.
452 (xref_basetypes): Simplify.
453 * decl2.c (grokfield): Don't try to convert declarations into
454 initializations.
455 (build_anon_union_vars): Do this while processing templates, too.
456 (finish_anon_union): Likewise.
457 * error.c (dump_type): Remove implicit typename handling.
458 * parser.c (cp_parser_diagnose_invalid_type_name): New method.
459 (cp_parser_primary_expression): Correct handling of names not
460 found by unqualified name lookup in templates.
461 (cp_parser_nested_name_specifier_opt): Avoid checking dependency
462 of types when possible.
463 (cp_parser_simple_declaration): Complain intelligently about some
464 invalid declarations.
465 (cp_parser_member_declaration): Likewise.
466 (cp_parser_constructor_declarator_p): Don't check when we're in a
467 function scope.
468 * pt.c (instantiate_class_template): Remove
469 PARTIAL_INSTANTIATION_P gunk.
470 * search.c (lookup_field_r): Don't build implicit typenames.
471 (marked_pushdecls_p): Don't enter dependent base types.
472 (unmarked_pushdecls_p): Likewise.
473 * semantics.c (begin_class_definition): Remove implicit typename
474 stuff.
475
712becab
NS
4762003-01-16 Nathan Sidwell <nathan@codesourcery.com>
477
478 PR c++/9212
479 * parser.c (cp_parser_direct_declarator): If accepting either
480 abstract or named, the name must be an unqualified-id.
481
fc555370
KG
4822003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
483
484 * class.c (layout_virtual_bases): Avoid signed/unsigned warning.
485
dd1b7476
KG
4862003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
487
488 * decl2.c (check_classfn): Fix uninitialized warning.
489 (build_anon_union_vars): Likewise.
490 * pt.c (tsubst_copy): Likewise.
491
a7189b49
JO
4922003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
493
494 Further conform g++'s __vmi_class_type_info to the C++ ABI
495 specification.
496 * rtti.c (dfs_class_hint_mark): Do not set hints not specified by
497 the specification.
498 (class_hint_flags): Likewise.
499
cf22909c
KL
5002003-01-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
501
502 * config-lang.in: Add semantics.c to gtfiles.
503 * cp-tree.h (flagged_type_tree_s): Remove lookups field.
504 (saved_scope): Likewise.
505 (type_lookups): Remove.
506 (deferred_access): New structure.
507 (type_access_control): Remove.
508 (save_type_access_control): Likewise.
509 (reset_type_access_control): Likewise.
510 (decl_type_access_control): Likewise.
511 (push_deferring_access_checks): Declare.
512 (resume_deferring_access_checks): Likewise.
513 (stop_deferring_access_checks): Likewise.
514 (pop_deferring_access_checks): Likewise.
515 (get_deferred_access_checks): Likewise.
516 (pop_to_parent_deferring_access_checks): Likewise.
517 (perform_deferred_access_checks): Likewise.
518 (perform_or_defer_access_check): Likewise.
519 * decl.c (make_typename_type): Use perform_or_defer_access_check.
520 (make_unbound_class_template): Likewise.
521 (grokdeclarator): Don't call decl_type_access_control.
522 * parser.c (cp_parser_context): Remove deferred_access_checks
523 and deferring_access_checks_p fields.
524 (cp_parser_context_new): Adjust.
525 (cp_parser): Remove access_checks_lists.
526 (cp_parser_defer_access_check): Remove.
527 (cp_parser_start_deferring_access_checks): Remove.
528 (cp_parser_stop_deferring_access_checks): Remove.
529 (cp_parser_perform_deferred_access_checks): Remove.
530 (cp_parser_nested_name_specifier_opt): Use new deferred access
531 functions.
532 (cp_parser_simple_declaration): Likewise.
533 (cp_parser_template_id): Likewise.
534 (cp_parser_function_definition): Likewise.
535 (cp_parser_class_specifier): Likewise.
536 (cp_parser_lookup_name): Likewise.
537 (cp_parser_single_declaration): Likewise.
538 (cp_parser_pre_parsed_nested_name_specifier): Likewise.
539 (cp_parser_parse_tentatively): Likewise.
540 (cp_parser_parse_definitely): Likewise.
541 (yyparse): Likewise.
542 (cp_parser_init_declarator): Remove access_checks parameter.
543 Use new deferred access functions.
544 (cp_parser_function_definition_from_specifiers_and_declarator):
545 Likewise.
546 (cp_parser_class_head): Remove deferring_access_checks_p and
547 saved_access_checks parameters. Use new deferred access functions.
548 (cp_parser_member_specification_opt): Don't call
549 reset_type_access_control.
550 * search.c (type_access_control): Remove.
551 * semantics.c: Include "gt-cp-semantics.h".
552 (deferred_type_access_control): Remove.
553 (deferred_access_stack): New variable.
554 (deferred_access_free_list): Likewise.
555 (push_deferring_access_checks): New function.
556 (resume_deferring_access_checks): Likewise.
557 (stop_deferring_access_checks): Likewise.
558 (pop_deferring_access_checks): Likewise.
559 (get_deferred_access_checks): Likewise.
560 (pop_to_parent_deferring_access_checks): Likewise.
561 (perform_deferred_access_checks): New function, adapted from
562 cp_parser_perform_deferred_access_checks.
563 (perform_or_defer_access_check): New function, adapted from
564 cp_parser_defer_access_check.
565 (current_type_lookups): Remove.
566 (deferred_type_access_control): Likewise.
567 (decl_type_access_control): Likewise.
568 (save_type_access_control): Likewise.
569 (reset_type_access_control): Likewise.
570 (begin_function_definition): Adjust.
571 (begin_class_definiton): Likewise.
572
f576dfc4
JM
5732003-01-13 Jason Merrill <jason@redhat.com>
574
575 PR c++/8748
576 * class.c (build_base_path): Take the address before calling save_expr.
577
578 * call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if
579 all the ambiguous conversions are bad.
580
581 * class.c (maybe_warn_about_overly_private_class): Don't stop
582 searching when we find a nonprivate method.
583
584 * typeck.c (build_class_member_access_expr): Use unary_complex_lvalue.
585
8fa1ad0e
MM
5862003-01-12 Mark Mitchell <mark@codesourcery.com>
587
588 * cp-tree.h (get_arglist_len_in_bytes): Remove.
589
590 PR c++/9264
591 * parser.c (cp_parser_elaborated_type_specifier): Handle erroneous
592 typeame types more robustly.
593
15d2cb19
PE
5942003-01-11 Phil Edwards <pme@gcc.gnu.org>
595
596 * parser.c: Fix comment typos.
597
a6f6052a
MM
5982003-01-10 Mark Mitchell <mark@codesourcery.com>
599
99152b95 600 PR c++/9099
a6f6052a
MM
601 * parser.c (cp_parser_scope_through_which_access_occurs): Handle
602 an object_type which is not a class type.
603
3466b292
GK
6042003-01-10 Geoffrey Keating <geoffk@apple.com>
605
606 * parser.c (cp_parser_late_parsing_for_member): Don't cast to void.
607 (cp_parser_late_parsing_default_args): Likewise.
608
b2f29cd9
NN
6092003-01-10 Nathanael Nerode <neroden@gcc.gnu.org>
610
611 * cfns.gperf: ANSIfy function declarations.
612 * cfns.h: Regenerate.
613 * cp-tree.h: ANSIfy function declarations.
614
2050a1bb
MM
6152003-01-10 Mark Mitchell <mark@codesourcery.com>
616
617 * cp-tree.h (reparse_absdcl_as_expr): Remove.
618 (reparse_absdcl_as_casts): Likewise.
619 (reparse_decl_as_expr): Likewise.
620 (finish_decl_parsing): Likewise.
621 * decl2.c (reparse_absdcl_as_expr): Remove.
622 (reparse_absdcl_as_casts): Likewise.
623 (repase_decl_as_expr): Likewise.
624 (finish_decl_parsing): Likewise.
625
626 PR c++/9128
627 PR c++/9153
628 PR c++/9171
629 * parser.c (cp_parser_pre_parsed_nested_name_specifier): New
630 function.
631 (cp_parser_nested_name_specifier_opt): Correct the
632 check_dependency_p false.
633 (cp_parser_postfix_expression): Fix formatting.
634 (cp_parser_decl_specifier_seq): Avoid looking for constructor
635 declarators when possible.
636 (cp_parser_template_id): Avoid performing name-lookup when
637 possible.
638 (cp_parser_class_head): Do not count specializations when counting
639 levels of templates.
640 (cp_parser_constructor_declarator_p): Return immediately if
641 there's no chance that the tokens form a constructor declarator.
642 * rtti.c (throw_bad_typeid): Add comment. Do not return an
643 expression with reference type.
644 (get_tinfo_decl_dynamic): Do not return an expression with
645 reference type.
646 (build_typeid): Add comment. Do not return an expression with
647 reference type.
648 * typeck.c (build_class_member_access_expr): Improve handling of
649 conditionals and comma-expressions as objects.
650
45225759
NN
6512003-01-09 Nathanael Nerode <neroden@gcc.gnu.org>
652
b2f29cd9
NN
653 * cfns.gperf: ANSIfy function declarations.
654 * cfns.h: Regenerate.
655 * cp-tree.h: ANSIfy function declarations.
656 * parser.c: ANSIfy function declarations & definitions.
657
45225759
NN
658 * decl.c (bad_specifiers): Fix parameter order error I introduced.
659
17211ab5
GK
6602003-01-09 Geoffrey Keating <geoffk@apple.com>
661
662 Merge from pch-branch:
663
664 2003-01-09 Geoffrey Keating <geoffk@apple.com>
665
666 Merge to tag pch-merge-20030102:
667
668 * semantics.c (finish_translation_unit): Don't call finish_file.
669 * parser.c: Don't include ggc.h.
670 (cp_lexer_new_main): Rename from cp_lexer_new, only create main lexer,
671 read first token here. Don't allow PCH files after the first
672 token is read.
673 (cp_lexer_new_from_tokens): Duplicate functionality from cp_lexer_new.
674 (cp_lexer_get_preprocessor_token): Allow LEXER to be NULL.
675 (cp_parser_new): Call cp_lexer_new_main before allocating GCed memory.
676 (cp_parser_late_parsing_for_member): Don't duplicate call to
677 cp_lexer_set_source_position_from_token.
678 (cp_parser_late_parsing_default_args): Likewise.
679 (yyparse): Call finish_file after clearing the_parser.
680
681 2002-12-11 Geoffrey Keating <geoffk@apple.com>
682
683 * Make-lang.in: Remove $(GGC_H) from all dependencies.
684 (CXX_TREE_H): Add $(GGC_H).
685 * class.c: Don't include ggc.h.
686 (field_decl_cmp): Make parameters be 'const void *' to match qsort.
687 (method_name_cmp): Likewise.
688 (resort_data): New variable.
689 (resort_field_decl_cmp): New.
690 (resort_method_name_cmp): New.
691 (resort_sorted_fields): New.
692 (resort_type_method_vec): New.
693 (finish_struct_methods): Delete cast.
694 (finish_struct_1): Delete cast.
695 * cp-tree.h: Include ggc.h.
696 (struct lang_type_class): Add reorder attribute to field `methods'.
697 (union lang_decl_u3): Add reorder attribute to field `sorted_fields'.
698 (resort_sorted_fields): New prototype.
699 (resort_type_method_vec): New prototype.
700 * call.c: Don't include ggc.h.
701 * decl.c: Likewise.
702 * decl2.c: Likewise.
703 * init.c: Likewise.
704 * lex.c: Likewise.
705 * method.c: Likewise.
706 * optimize.c: Likewise.
707 * parse.y: Likewise.
708 * pt.c: Likewise.
709 * repo.c: Likewise.
710 * search.c: Likewise.
711 * semantics.c: Likewise.
712 * spew.c: Likewise.
713 * tree.c: Likewise.
714
715 * lang-specs.h: Remove comment.
716
717 2002-12-03 Geoffrey Keating <geoffk@apple.com>
718
719 * cp-tree.h (struct operator_name_info_t): Mark for GTY machinery.
720 (operator_name_info): Mark to be saved for PCH, specify size.
721 (assignment_operator_name_info): Likewise.
722
723 2002-11-19 Geoffrey Keating <geoffk@apple.com>
724
725 * decl.c (anon_cnt): Mark to be saved for PCH.
726
727 2002-10-25 Geoffrey Keating <geoffk@apple.com>
728
729 * lex.c (init_reswords): Delete now-untrue comment.
730 Allocate ridpointers using GGC.
731
732 2002-10-04 Geoffrey Keating <geoffk@apple.com>
733
734 * cp-tree.h (union lang_decl_u2): Add tags to all fields.
735
736 * g++spec.c (lang_specific_driver): Don't include standard
737 libraries in `added'.
738
739 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
740
741 * decl2.c (finish_file): Call c_common_write_pch.
742 * Make-lang.in (CXX_C_OBJS): Add c-pch.o.
743
744 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
745
746 * g++spec.c (lang_specific_driver): Treat .h files as C++ header
747 files when using g++.
748 * lang-specs.h: Handle compiling C++ header files.
749
ca5dd8b7
JJ
7502003-01-09 Jakub Jelinek <jakub@redhat.com>
751
752 * decl.c (start_decl): Only check DECL_THREAD_LOCAL for VAR_DECLs.
753
0f399e5f
KL
7542003-01-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
755
756 * pt.c (push_access_scope_real): Call push_to_top_level for
757 function in namespace scope.
758 (pop_access_scope): Call pop_from_top_level for function in
759 namespace scope.
760
c456a45a
JJ
7612003-01-09 Jakub Jelinek <jakub@redhat.com>
762
763 * decl.c (start_decl): Don't set DECL_COMMON for __thread variables.
764
2c6ce97e
CC
7652003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
766
767 * Make-lang.in (c++.install-common, c++.install-man,
768 c++.uninstall): Prepend $(DESTDIR) to destination paths in
769 all (un)installation commands.
770 (c++.install-common): Rewrite $(LN) commands to support
771 DESTDIR with "ln" as well as with "ln -s".
772
f74dbcec
JM
7732003-01-08 Jason Merrill <jason@redhat.com>
774
775 * parser.c (cp_parser_primary_expression): See through explicitly
776 scoped ALIAS_DECLs, too.
777
11f6b451
NN
7782003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
779
1774f99d
NN
780 * decl.c: Remove some #if 0 code.
781
11f6b451
NN
782 * decl.c: ANSIfy function declarations.
783
8caf4c38
MM
7842003-01-07 Mark Mitchell <mark@codesourcery.com>
785
786 * parser.c (cp_parser_asm_definition): Correct handling of omitted
787 operands.
788
2b59fc25
KL
7892003-01-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
790
791 PR c++/9030
792 * decl.c (make_typename_type): Check access only when tf_error.
793 (make_unbound_class_template): Likewise.
794 * pt.c (saved_access_scope): New variable.
795 (push_access_scope_real): New function.
796 (push_access_scope): Likewise.
797 (pop_access_scope): Likewise.
798 (tsubst_default_argument): Use them.
799 (instantiate_template): Likewise.
800 (regenerate_decl_from_template): Likewise.
801 (instantiate_decl): Likewise.
802 (get_mostly_instantiated_function_type): Likewise.
803
3f7617e4
NN
8042003-01-07 Nathanael Nerode <neroden@gcc.gnu.org>
805
806 * tree.c: Delete bogus #if 0 code.
807
c9372112
AS
8082003-01-07 Andreas Schwab <schwab@suse.de>
809
810 * class.c (layout_class_type): Don't use
811 PCC_BITFIELD_TYPE_MATTERS if not defined.
812
8218bd34
MM
8132003-01-06 Mark Mitchell <mark@codesourcery.com>
814
c10cdb3d
MM
815 PR c++/9165
816 * decl2.c (build_cleanup): Mark the object as used.
817
69f794a7
MM
818 * pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
819 (hash_local_specialization): New function.
820 (register_local_specialization): Revert 2003-01-05 change.
821 (instantiate_decl): Use hash_local_specialization when creating
822 the local_specializations table.
823
4c4646b5
MM
824 * decl2.c (mark_used): Do not synthesize thunks.
825
63e5f567
MM
826 * class.c (layout_class_type): Correct handling of unnamed
827 bitfields wider than their types.
828
8218bd34
MM
829 PR c++/9189
830 * parser.c (cp_parser): Remove default_arg_types. Update
831 documentation for unparsed_functions_queues.
832 (cp_parser_late_parsing_default_args): Take a FUNCTION_DECL as the
833 parameter.
834 (cp_parser_new): Don't set parser->default_arg_types.
835 (cp_parser_function_definition): Adjust usage of
836 unparsed_funtions_queues.
837 (cp_parser_class_specifier): Don't mess with
838 parser->default_arg_types. Handle default argument processing in
839 a separate phase from function body processing.
840 (cp_parser_template_declaration_after_export): Adjust usage of
841 unparsed_functions_queues.
842 (cp_parser_late_parsing_for_member): Do not handle default
843 arguments.
844
62b8a44e
NS
8452003-01-06 Nathan Sidwell <nathan@codesourcery.com>
846
847 PR c++/9109
848 * parser.c (cp_parser_declarator_kind): New enum.
849 (cp_parser_declarator): Adjust.
850 (cp_parser_direct_declarator): Adjust. Allow for either named or
851 abstract declarator. Prefer abstract, if possible. Allow
852 parenthesized function name.
853 (cp_parser_condition): Adjust cp_parser_declarator call.
854 (cp_parser_explicit_instantiation): Likewise.
855 (cp_parser_init_declarator): Likewise.
856 (cp_parser_type_id): Likewise.
857 (cp_parser_function_definition): Likewise.
858 (cp_parser_member_declaration): Likewise.
859 (cp_parser_parameter_declaration): Use cp_parser_declarator to do
860 the tentative parsing.
861 (cp_parser_exception_declaration): Likewise.
862
ec194454
MM
8632003-01-05 Mark Mitchell <mark@codesourcery.com>
864
865 * parser.c (cp_parser_template_parameter): Adjust call to
866 cp_parser_parameter_declaration.
867 (cp_parser_parameter_declaration_list): Likewise.
868 (cp_parser_parameter_declaration): Replace
869 greater_than_is_operator_p with template_parm_p parameter. Do not
870 cache tokens for template default arguments.
871
872 * pt.c (retrieve_local_specialization): Use htab_find, not
873 htab_find_with_hash.
874 (register_local_specialization): Use htab_find_slot, not
875 htab_find_slot_with_hash.
876 (instantiate_decl): Pass a hash function to htab_create.
877
39b1af70
KG
8782003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
879
880 * parser.c (cp_parser_binary_expression,
881 cp_parser_multiplicative_expression,
882 cp_parser_additive_expression, cp_parser_shift_expression,
883 cp_parser_relational_expression, cp_parser_equality_expression,
884 cp_parser_and_expression, cp_parser_exclusive_or_expression,
885 cp_parser_inclusive_or_expression,
886 cp_parser_logical_and_expression, cp_parser_logical_or_expression,
887 cp_parser_binary_expression): Const-ify.
888
1bb2cc34
MM
8892003-01-04 Mark Mitchell <mark@codesourcery.com>
890
891 * method.c (use_thunk): Disable access control while building the
892 body of the thunk.
893
3fd5abcf
NN
8942003-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
895
896 * cvt.c, decl.c, decl2.c: This is the C++ front end, not the C
897 front end.
898
9aad8f83
MA
8992003-01-03 Matt Austern <austern@apple.com>
900
901 * cp-tree.h (struct lang_type_class): add field for key method
902 (cp_global_trees): rename dynamic_classes to keyed_classes
903 (key_method): add definition
904 * class.c (finish_struct_1): compute class's key method, and add
905 the class to keyed_classes list if there is no key method.
906 * decl.c (finish_function): add class to keyed_classes list if we
907 see a definition of the class's key method.
908 * pt.c (instantiate_class_template): add template specialization
909 of a dynamic class to keyed_classes list.
910 * decl2.c (key_method): remove
911 (finish_file): iterate only through keyed_classes list when
912 deciding whether to emit vtables, remove class from its list after
913 we do the emission.
914
6cce57b0
JM
9152003-01-02 Jason Merrill <jason@redhat.com>
916
4e8dca1c
JM
917 * call.c (build_conditional_expr): Stabilize lvalues properly.
918 * cvt.c (ocp_convert): Don't build NOP_EXPRs of class type.
919 * tree.c (lvalue_p_1): Don't allow sloppy NOP_EXPRs as lvalues.
920 Don't allow CALL_EXPR or VA_ARG_EXPR, either.
921
922 * call.c (convert_like_real): Call decl_constant_value for an
923 IDENTITY_CONV even if there are no more conversions.
924
925 * cvt.c (build_up_reference): Don't push unnamed temps.
926
927 * decl2.c (do_namespace_alias): Namespace aliases are DECL_EXTERNAL.
928
929 * dump.c (cp_dump_tree): Don't try to dump class-specific fields
930 for a backend struct.
931
932 * except.c (wrap_cleanups_r, build_throw): Make
933 MUST_NOT_THROW_EXPRs void.
934 * init.c (expand_default_init): Update to handle MUST_NOT_THROW_EXPR.
935
936 * init.c (build_vec_delete_1): Pre-evaluate the base address.
937
938 * init.c (get_temp_regvar): Simplify logic.
939
940 * tree.c (cp_copy_res_decl_for_inlining): Only do debug tweaks if
941 our replacement is a decl.
942
6cce57b0
JM
943 * decl.c (cp_make_fname_decl): Push the decls inside the
944 outermost scope.
945
31758337
NS
9462003-01-03 Nathan Sidwell <nathan@codesourcery.com>
947
948 PR c++/45, c++/3784
949 * tree.c (cp_tree_equal, TEMPLATE_PARM_INDEX): The types must be
950 the same too.
951
24c0ef37
GS
9522003-01-03 Graham Stott <graham.stott@btinternet.com>
953
954 * parser.c (struct cp_parser): Add access_checks_lists field
955 (cp_parser_simple_declaration): Use.
956 (cp_parser_init_declarator): Likewise.
957
5e8a153a
MM
9582003-01-02 Mark Mitchell <mark@codesourcery.com>
959
1092805d
MM
960 * parser.c (cp_parser_declaration): Accept the __extension__
961 keyword before the declaration.
962
4971227d
MM
963 PR c++/2843
964 * parser.c (cp_parser_parameter_declaration): Allow attributes to
965 appear after the declarator.
966
5e8a153a
MM
967 * call.c (build_new_method_call): Fix typo in message format
968 string.
969
3beb3abf
MM
9702003-01-02 Mark Mitchell <mark@codesourcery.com>
971
f7b5ecd9
MM
972 * parser.c (cp_lexer_next_token_is): Declare it inline.
973 (cp_lexer_set_source_position_from_token): Likewise.
974 (cp_lexer_debugging_p): Likewise.
975 (cp_parser_parsing_tentatively): Likewise.
976 (cp_parser_nested_name_specifier_opt): Reduce the number of calls
977 to the cp_lexer_peek_token.
1092805d 978
3beb3abf
MM
979 * parser.c (cp_parser_sizeof_operand): Do not evaluate the
980 expression.
981
43c6a96a
SB
9822003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
983
984 * cp/except.c, cp/expr.c, cp/friend.c, cp/g++spec.c,
985 cp/lang-options.h, cp/lang-specs.h, cp/lex.h, cp/ptree.c,
986 cp/repo.c: Fix copyright years.
987
c58b209a
NB
9882003-01-01 Neil Booth <neil@daikokuya.co.uk>
989
990 * lex.c: Remove superfluous include of cpplib.h.
991 (CONSTRAINT): Define without conditions.
992 (init_cp_pragma): Use c_register_pragma.
993
7347c2c5
NB
9942002-12-31 Neil Booth <neil@daikokuya.co.uk>
995
996 * .cvsignore: Remove.
997
f5adbb8d
SB
9982002-12-31 Steven Bosscher <s.bosscher@student.tudelft.nl>
999
1000 * call.c, class.c, cp-lang.c, cp-tree.h, cvt.c, dump.c, error.c,
1001 except.c, expr.c friend.c, g++spec.c, init.c, lang-options.h,
1002 lang-specs.h, lex.c, mangle.c, method.c, optimize.c, parser.c,
1003 pt.c, ptree.c, repo.c, rtti.c, search.c, semantics.c, tree.c,
1004 typeck.c, typeck2.c: Replace "GNU CC" with "GCC" in the
1005 copyright header.
1006 * lex.h: parse.y is dead, so don't mention it. Also replace the
1007 copyright header with the default GNU copyright header.
1008
f1aba0a5
MM
10092002-12-31 Mark Mitchell <mark@codesourcery.com>
1010
eea9800f
MM
1011 * cp-tree.h (LOOKUP_TEMPLATES_EXPECTED): Remove.
1012 (lookup_name_namespace_only): Likewise.
1013 (begin_only_namespace_names): Likewise.
1014 (end_only_namespace_names): Likewise.
1015 * decl.c (only_namespace_names): Remove.
1016 (qualify_lookup): Do not check LOOKUP_TEMPLATES_EXPECTED.
1017 (lookup_name_real): Do not check only_namespace_names.
1018 (lookup_name_namespace_only): Remove.
1019 (begin_only_namespace_names): Likewise.
1020 (end_only_namespace_names): Likewise.
1021 * parser.c (cp_parser_nested_name_specifier_opt): Handle erroneous
1022 nested-name-specifiers more gracefully.
1023 (cp_parser_class_or_namespace_name): Avoid looking up namespace
1024 names when they cannot possibly appear.
1025 (cp_parser_template_name): Adjust call to cp_parser_lookup_name.
1026 (cp_parser_elaborated_type_specifier): Likewise.
1027 (cp_parser_namespace_name): Only look for namespace names.
1028 (cp_parser_lookup_name): Add is_namespace parameter.
1029 (cp_parser_lookup_name_simple): Adjust call to
1030 cp_parser_lookup_name.
1031
f1aba0a5
MM
1032 * parser.c (cp_parser_dependent_type_p): Fix thinko.
1033
eea9800f
MM
10342002-12-31 Neil Booth <neil@daikokuya.co.uk>
1035
1036 * .cvsignore: Update.
1037
3cfabe60
NS
10382002-12-31 Nathan Sidwell <nathan@codesourcery.com>
1039
1040 * class.c (modify_vtable_entry): Remove unused variable.
1041 (get_vcall_index): Always expect a non-thunk.
1042 (update_vtable_entry_for_fn): Combine covariant adjustments, when
1043 overriding a thunk. Pass get_vcall_index a non-thunk.
1044
1045 * decl2.c (finish_file): Mark undefined inlines as extern.
1046
92bc1323
MM
10472002-12-31 Mark Mitchell <mark@codesourcery.com>
1048
1049 * cp-tree.def (RETURN_INIT): Remove.
1050 * cp-tree.h (DECL_IN_MEMORY_P): Remove.
1051 (scope_kind): Add sk_block, sk_try, sk_catch, sk_for.
1052 (note_level_for_for): Remove.
1053 (note_level_for_try): Likewise.
1054 (note_level_for_catch): Likewise.
1055 (finish_named_return_value): Likewise.
1056 (do_pushlevel): Change prototype.
1057 (pending_lang_change): Remove.
1058 * decl.c (begin_scope): Handle sk_block, sk_try, sk_catch,
1059 sk_for.
1060 (note_level_for_for): Remove.
1061 (note_level_for_try): Likewise.
1062 (note_level_for_catch): Likewise.
1063 (maybe_inject_for_scope_var): Remove use of DECL_IN_MEMORY_P.
1064 * parser.c (cp_parser_context_free_list): Make it "deletable".
1065 (cp_parser_template_argument): Remove misleading comment.
1066 * pt.c (tsubst_expr): Remove RETURN_INIT code.
1067 * semantics.c (genrtl_named_return_value): Remove.
1068 (do_pushlevel): Take a scope kind as an argument.
1069 (begin_if_stmt): Adjust.
1070 (begin_while_stmt): Likewise.
1071 (begin_for_stmt): Likewise.
1072 (finish_for_init_stmt): Likewise.
1073 (begin_switch_stmt): Likewise.
1074 (begin_handler): Likewise.
1075 (begin_compound_stmt): Likewise.
1076 (finish_named_return_value): Remove.
1077 (cp_expand_stmt): Remove RETURN_INIT case.
1078 * tree.c (cp_statement_code_p): Remove RETURN_INIT case.
43c6a96a 1079
abda8efe
MM
10802002-12-31 Mark Mitchell <mark@codesourcery.com>
1081
1082 PR c++/9112
1083 * parser.c (cp_parser_direct_declarator): Handle erroneous
1084 parenthesized declarators correctly.
1085
eddcae5a
GDR
10862002-12-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
1087
1088 * cp-tree.h (pending_lang_change): Declare.
1089
c838d82f
MM
10902002-12-30 Mark Mitchell <mark@codesourcery.com>
1091
e5976695
MM
1092 * parser.c (cp_parser_context_free_list): New variable.
1093 (cp_parser_context_new): Use it.
1094 (cp_parser_error): Check return code from
1095 cp_parser_simulate_error.
1096 (cp_parser_simulate_error): Return a value.
1097 (cp_parser_id_expression): Optimize common case.
1098 (cp_parser_class_name): Likewise.
1099 (cp_parser_class_specifier): Adjust call to
1100 cp_parser_late_parsing_default_args.
1101 (cp_parser_lookup_name): Optimize common case.
1102 (cp_parser_late_parsing_for_member): Adjust call to
1103 cp_parser_late_parsing_default_args.
1104 (cp_parser_late_parsing_default_args): Add scope parameter.
1105 (cp_parser_require): Avoid creating the error message unless it's
1106 needed.
1107 (cp_parser_parse_definitely): Place free'd contexts on the free
1108 list.
1109
c838d82f
MM
1110 * parser.c (cp_parser_declaration_seq_opt): Handle pending_lang_change.
1111
c73aecdf
DE
11122002-12-30 David Edelsohn <edelsohn@gnu.org>
1113
1114 * parser.c (cp_parser_parameter_declaration_clause): Treat system
1115 header as extern "C" if NO_IMPLICIT_EXTERN_C undefined.
1116
b599b135
NN
11172002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
1118
43c6a96a 1119 * config-lang.in, Make-lang.in, operators.def, cp-tree.def:
b599b135
NN
1120 GCC, not GNU CC.
1121
946d5e45
MM
11222002-12-30 Mark Mitchell <mark@codesourcery.com>
1123
afd9b9dd
MM
1124 * parse.y: Remove.
1125 * spew.c: Likewise.
1126 * Make-lang.in (gt-cp-spew.h): Remove.
1127 * cp-tree.h (do_pending_lang_change): Remove.
1128 (do_identifier): Change prototype.
1129 (finish_id_expr): Remove.
1130 * decl.c (lookup_name_real): Remove yylex variable.
1131 * decl2.c (build_expr_from_tree): Adjust call to do_identifier.
1132 * lex.c (init_cpp_parse): Remove.
1133 (reduce_cmp): Likewise.
1134 (token_cmp): Likewise.
1135 (yychar): Likewise.
1136 (lastiddecl): Likewise.
1137 (token_count): Likewise.
1138 (reduce_count): Likewise.
1139 (yyhook): Likewise.
1140 (print_parse_statistics): Likewise.
1141 (do_pending_lang_change): Likewise.
1142 (do_identifier): Remove parsing parameter.
1143 * lex.h (lastiddecl): Remove.
1144 (looking_for_typename): Remove.
1145 (looking_for_template): Likewise.
1146 (pending_lang_change): Likewise.
1147 (yylex): Likewise.
1148 * semantics.c (finish_id_expr): Remove.
43c6a96a 1149
946d5e45
MM
1150 * decl.c (grokdeclarator): Diagnost "extern thread" and "static
1151 thread" correctly.
1152
1c313945
NN
11532002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
1154
1155 * decl.c, decl2.c, decl.h: GCC, not GNU CC. This is the C++ front
1156 end, not the C front end.
1157
8e268f72
NS
11582002-12-30 Nathan Sidwell <nathan@codesourcery.com>
1159
1160 * cp-tree.h (THUNK_TARGET): New macro.
1161 (THUNK_VIRTUAL_OFFSET): For result thunks it is always a binfo.
1162 (finish_thunk): Remove offset parms.
1163 * class.c (find_final_overrider): Look through thunks.
1164 (get_vcall_index): Use THUNK_TARGET.
1165 (update_vtable_entry_for_fn): Look through thunks. Set covariant
1166 fixed offset here. Adjust finish_thunk call.
1167 (build_vtbl_initializer): Adjust finish_thunk calls.
1168 * mangle.c (mangle_call_offset): Remove superfluous if.
1169 (mangle_thunk): Adjust.
1170 * method.c (make_thunk): Adjust.
1171 (finish_thunk): Adjust.
1172 (thunk_adjust): Remove assert.
1173 (use_thunk): Use THUNK_TARGET
1174 * dump1.c (cp_dump_tree): Adjust thunk dumping.
1175
1176 PR c++/9054
1177 * class.c (layout_class_type): Set TYPE_CONTEXT of type for base.
1178 * dump.c (cp_dump_tree, RECORD_TYPE): Deal with type for base types.
1179
848eed92
GDR
11802002-12-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1181
1182 Remove traditional C constructs 4/n.
1183 * decl2.c (grok_method_quals, warn_if_unknown_interface,
1184 grok_x_components, cp_build_parm_decl, build_artificial_parm,
1185 maybe_retrofit_in_chrg, grokclassfn, grok_array_decl,
1186 delete_sanity, check_member_template, check_java_method,
1187 check_classfn, finish_static_data_member_decl, grokfield,
1188 grokbitfield, grokoptypename, grok_function_init,
1189 cplus_decl_attributes, constructor_name, defer_fn,
1190 build_anon_union_vars, finish_anon_union, coerce_new_type,
1191 coerce_delete_type, comdat_linkage, maybe_make_one_only,
1192 key_method, import_export_vtable, import_export_class,
1193 output_vtable_inherit, import_export_decl, import_export_tinfo,
1194 build_cleanup, get_guard, get_guard_bits, get_guard_cond,
1195 set_guard, start_objects, finish_objects,
1196 start_static_storage_duration_function,
1197 finish_static_storage_duration_function, get_priority_info,
1198 start_static_initialization_or_destruction,
1199 finish_static_initialization_or_destruction,
1200 do_static_initialization, do_static_destruction,
1201 prune_vars_needing_no_initialization, write_out_vars,
1202 reparse_decl_as_expr, finish_decl_parsing, namespace_ancestor,
1203 add_using_namespace, merge_functions, ambiguous_decl,
1204 lookup_using_namespace, lookup_using_namespace,
1205 qualified_lookup_using_namespace, set_decl_namespace,
1206 decl_namespace, current_decl_namespace, push_decl_namespace,
1207 pop_decl_namespace, push_scope, pop_scope, add_function,
1208 arg_assoc_namespace, arg_assoc_template_arg, arg_assoc,
1209 lookup_arg_dependent, do_namespace_alias,
1210 validate_nonmember_using_decl, do_nonmember_using_decl,
1211 do_toplevel_using_decl, do_local_using_decl,
1212 do_class_using_decl, do_using_directive, check_default_args,
1213 mark_used, handle_class_head): Use C90 prototypings. Use booleans.
1214 * parser.c (cp_parser_class_head): Use booleanss.
1215 * decl.c (walk_globals, walk_vtables): Likewise.
1216 * cp-tree.h (walk_globals_pred, walk_globals_fn, walk_vtables,
1217 walk_globals): Change return type from 'int' to 'bool'.
1218 * rtti.c (init_rtti_processing, build_headof, throw_bad_cast
1219 throw_bad_typeid, get_tinfo_decl_dynamic, typeid_ok_p,
1220 build_typeid, tinfo_name, get_tinfo_decl, get_tinfo_ptr,
1221 get_typeid, ifnonnull, build_dynamic_cast_1, build_dynamic_cast,
1222 qualifier_flags, tinfo_base_init, generic_initializer,
1223 ptr_initializer, dfs_class_hint_mark, ptm_initializer,
1224 dfs_class_hint_unmark, class_hint_flags, class_initializer,
1225 typeinfo_in_lib_p, get_pseudo_ti_init, create_pseudo_type_info,
1226 get_pseudo_ti_desc, create_tinfo_types, emit_support_tinfos,
1227 unemitted_tinfo_decl_p, emit_tinfo_decl): Likewise.
1228 * repo.c (repo_compile_flags, repo_template_declared,
1229 repo_template_defined, repo_class_defined, repo_get_id,
1230 repo_template_used, repo_vtable_used, repo_inline_used,
1231 repo_tinfo_used, repo_template_instantiated, extract_string,
1232 open_repo_file, afgets, init_repo, reopen_repo_file_for_write,
1233 finish_repo): Likewise.
1234 * ptree.c (cxx_print_decl, cxx_print_type, cxx_print_identifier,
1235 cxx_print_xnode): Likewise..
1236 * cp-lang.c (ok_to_generate_alias_set_for_type, cxx_get_alias_set,
1237 cxx_warn_unused_global_decl, cp_expr_size): Likewise.
1238 * cxxfilt.c (demangle_it, print_demangler_list, usage,
1239 standard_symbol_characters, hp_symbol_characters, main, fatal):
43c6a96a 1240 Likewise.
848eed92
GDR
1241 (strip_underscore): Change type from 'int' to 'bool'.
1242 (main): Use boolean constants.
1243
b746c5dc
GDR
12442002-12-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1245
1246 Remove traditional C constructs 3/n.
1247 * cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
1248 build_up_reference, warn_ref_binding, convert_to_reference,
1249 convert_from_reference, convert_lvalue, cp_convert, ocp_convert,
1250 convert_to_void, convert, convert_force, build_type_conversion,
1251 build_expr_type_conversion, type_promotes_to,
1252 perform_qualification_conversions): Use C90 prototyping style.
1253 * decl2.c (grok_array_decl): Use boolean constant.
1254 (delete_sanity): Likewise.
1255 * typeck.c (build_unary_op): Likewise.
1256 * semantics.c (finish_switch_cond): Likewise.
1257 * parser.c (cp_parser_direct_new_declarator): Likewise.
1258 * init.c (build_new): Likewise.
1259
a723baf1
MM
12602002-12-27 Mark Mitchell <mark@codesourcery.com>
1261
1262 * Make-lang.in (po-generated): Remove parse.c.
1263 (CXX_OBJS): Remove parse.o and spew.o. Add parser.o.
1264 ($(srcdir)/cp/parse.h): Remove target.
1265 ($(srcdir)/cp/parse.c): Likewise.
1266 (gt-cp-parse.h): Likewise.
1267 (gt-cp-parser.h): New target.
1268 (c++.distclean): Do not remove parse.output.
1269 (c++.maintainer-clean): Do not remove parse.c or parse.h.
1270 (cp/spew.o): Remove target.
1271 (cp/lex.o): Adjust dependencies.
1272 (cp/pt.o): Likewise.
1273 (cp/parse.o): Likewise.
1274 (cp/TAGS): Do not mention parse.c.
1275 (cp/parser.o): New target.
1276 * NEWS: Mention the new parser.
1277 * call.c (build_scoped_method_call): Simplify.
1278 (build_method_call): Likewise.
1279 (build_new_function_call): Adjust calls to add_function_candidate
1280 and add_template_candidate.
1281 (build_new_op): Improve handling of erroroneous operands.
1282 (convert_default_arg): Remove circular argument processing.
1283 (name_as_c_string): New function.
1284 (build_new_method_call): Use it.
1285 (perform_implicit_conversion): Use error_operand_p.
1286 * class.c (finish_struct_anon): Use constructor_name_p.
1287 (check_field_decls): Likewise.
1288 (pop_nested_class): Use OVL_NEXT, not OVL_CHAIN.
1289 (resolve_address_of_overloaded_function): Likewise.
1290 (instantiate_type): Tweak pointer-to-member handling.
1291 (get_primary_binfo): Remove incorrect assertion.
1292 * config-lang.in (gtfiles): Add parser.c, remove parse.c.
1293 * cp-tree.h (DEFARG_TOKENS): New macro.
1294 (default_arg): New structure.
1295 (cp_tree_node_structure_enum): Add TS_CP_DEFAULT_ARG.
1296 (lang_tree_node): Add default_arg.
1297 (cp_tree_index): Add CPTI_TYPE_INFO_REF_TYPE.
1298 (type_info_ref_type): New macro.
1299 (saved_scope): Make processing_explicit_instantiation a boolean.
1300 (check_access): New field.
1301 (unparsed_text): Remove.
1302 (language_function): Remove unparsed_inlines.
1303 (error_operand_p): New macro.
1304 (lang_decl): Adjust pending_inline_info.
1305 (DEFARG_POINTER): Remove.
1306 (tag_types): Add typenames.
1307 (lookup_ualified_name): Declare.
1308 (lookup_name_real): Likewise.
1309 (shadow_tag): Adjust prototype.
1310 (get_scope_of_declarator): Declare it.
1311 (process_next_inline): Remove it.
1312 (check_for_missing_semicolon): Likewise.
1313 (maybe_get_template_decl_from_type_decl): Declare it.
1314 (finish_label_stmt): Adjust prototype.
1315 (finish_non_static_data_meber): Declare it.
1316 (finish_pseudo_destructor_call_expr): Rename to ...
1317 (finish_pseudo_destructor_expr): ... this.
1318 (finish_compound_literal): Declare it.
1319 (begin_inline_definitions): Remove it.
1320 (init_spew): Remove.
1321 (peekyylex): Likewise.
1322 (arbitrate_lookup): Likewise.
1323 (frob_opname): Likewise.
1324 (maybe_snarf_defarg): Likewise.
1325 (add_defarg_fn): Likewise.
1326 (do_pending_defargs): Likewise.
1327 (done_pending_defargs): Likewise.
1328 (unprocessed_defarg_fn): Likewise.
1329 (replace_defarg): Likewise.
1330 (end_input): Likewise.
1331 (get_overloaded_fn): Likewise.
1332 * cvt.c (convert_to_reference): Improve error handling.
1333 * decl.c (lookup_name_real): Do not declare it static.
1334 (maybe_push_to_top_level): Set check_access.
1335 (identifier_type_value): Adjust call to lookup_name_real.
1336 (lookup_qualified_name): New method.
1337 (lookup_name_real): Remove special-case parsing code.
1338 (lookup_name-nonclass): Adjust call to lookup_name_real.
1339 (lookup_name_namespace_only): Likewise.
1340 (lookup_name): Likewise.
1341 (check_tag_decl): Return the type declared.
1342 (shadow_tag): Likewise.
1343 (register_dtor_fn): Tweak check_access.
1344 (grokfndecl): Use constructor_name_p.
1345 (get_scope_of_declarator): New function.
1346 (grokdeclarator): Obscure tweaks for slightly different declarator
1347 representations.
1348 (start_method): Return error_mark_node to indicate failure.
43c6a96a 1349 (cp_tree_node_structure_enum): Use TS_CP_DEFAULT_ARG for DEFAULT_ARGs.
a723baf1
MM
1350 * decl2.c (constructor_name_full): Simplify.
1351 (constructor_name): Use it.
1352 (build_expr_from_tree): Adjust for changes to do new parser.
1353 (push_scope): Improve robustness.
1354 (validate_nonmember_using_decl): Process declarations, not names.
1355 (do_class_using_decl): Likewise.
1356 (handle_class_head): Do not mess with CLASSTYPE_DECLARED_CLASS
1357 here.
1358 * error.c (dump_expr): Handle IDENTIFIER_NODEs and BASELINKs.
1359 * expr.c (cxx_expand_expr): Handle BASELINKs.
1360 * init.c (member_init_ok_or_else): Issue more errors.
1361 (build_offset_ref): Tweak handling of FUNCTION_DECLs.
1362 * lex.c: Do not include parse.h.
1363 (yypring): Do not declare.
1364 (yylval): Likewise.
1365 (make_reference_declarator): Remove error-generating code.
1366 (rid_to_yy): Remove.
1367 (cxx_init): Do not call init_spew.
1368 (yypring): Remove.
1369 (check_for_missing_semicolon): Remove.
1370 * lex.h (got_scope): Remove.
1371 (got_object): Remove.
1372 * method.c (hack_identifier): Use finish_non_static_data_member.
1373 (implicitly_declare_fn): Adjust use of constructor_name.
1374 * parser.c: New file.
1375 * pt.c (parse.h): Do not include it.
1376 (maybe_get_template_decl_from_template): Do not declare it.
1377 (finish_member_template_decl): Tweak.
1378 (begin_explicit_instantiation): Adjust for
1379 processing_explicit_instantiation being boolean.
1380 (end_explicit_instantiation): Likewise.
1381 (maybe_process_partial_specialization): Tighten specialization
1382 test.
1383 (retrieve_local_specialization): Adjust ue of hash table.
1384 (eq_local_specializations): New function.
1385 (register_local_specialization): Likewise.
1386 (push_template_decl_real): Remove unnecessary test.
1387 (maybe_get_template_decl_from_type_decl): Don't make it static.
1388 (for_each_template_parm_r): Handle TYPEOF_TYPE.
1389 (tsubst_copy): Use retrieive_local_specialization to handle
1390 PARM_DECL. Adjust handling of CONST_DECLs. Handle BASELINKs.
1391 Handle COMPONENT_REFs with pseudo-destructor-expressions.
1392 Simplify handling of CALL_EXPR and METHOD_CALL_EXPR.
1393 (tsubst_expr): Pass decls, not names, to do_local_using_decl.
1394 (unify): Tweak handling of CONST_DECLs.
1395 (regenerate_decl_from_template): Use push_nested_class.
1396 (template_for_substitution): New funciton.
1397 (instantiate_decl): Use it. Register parameters as local
1398 specializations.
1399 * rtti.c (init_rtti_processing): Set type_info_ref_type.
1400 (build_typeid): Use it.
1401 (get_typeid): Likeise.
1402 * search.c (accessible_p): Use check_access, not
1403 flag_access_control.
1404 (adjust_result_of_qualified_name_lookup): Pay attention to the
1405 context_class.
1406 * semantics.c (finish_asm_stmt): Adjust error handling.
1407 (finish_label_stmt): Return the statement.
1408 (finish_non_static_data_member): New function.
1409 (finish_class_expr): Handle BASELINKs.
1410 (finish_call_expr): Handle PSEUDO_DTOR_EXPR.
1411 (finish_object_call_expr): Simplify handling during templates.
1412 (finish_pseudo_destructor_call_expr): Rename to ...
1413 (finish_pseudo_dtor_expr): ... this.
1414 (finish_compound_literal): New function.
1415 (begin_inline_definitions): Remove.
1416 (finish_sizeof): Remove special template handling.
1417 * spew.c: Do not include parse.h.
1418 * tree.c (get_overloaded_fn): Remove.
1419 * typeck.c (build_class_member_access_expr): Handle
1420 PSEUDO_DTOR_EXPR. Adjust handling of static member functions.
1421 (lookup_destructor): New function.
1422 (finish_class_member_access_expr): Use it.
1423 (convert_arguments): Simplify.
1424 (build_unary_op): Handle BASELINKs.
43c6a96a 1425
aac1406f
NS
14262002-12-26 Nathan Sidwell <nathan@codesourcery.com>
1427
eab5474f
NS
1428 PR c++/4803
1429 * decl2.c (mark_used): Defer inline functions.
1430 (finish_file): Merge deferred_fns loops. Check all used
1431 inline functions have a definition.
1432 * method.c (make_thunk): Thunks are not inline.
1433
aac1406f
NS
1434 PR c++/5116, c++/764
1435 * call.c (build_new_op): Make sure template class operands are
1436 instantiated.
1437
b9201622
NS
14382002-12-24 Nathan Sidwell <nathan@codesourcery.com>
1439
3e14cd30
NS
1440 PR C++/7964
1441 * cp-tree.h (resolve_scoped_fn_name): Prototype.
1442 * call.c (resolve_scoped_fn_name): New function. Deal with
1443 more template expansion. Broken out of ...
1444 * parse.y (parse_finish_call_expr): ... here. Call it.
1445 * decl2.c (build_expr_from_tree, CALL_EXPR): Use
1446 resolve_scoped_fn_name and build_call_from_tree.
1447
b9201622
NS
1448 PR c++/9053
1449 * decl.c (duplicate_decls): Templates may be disambiguated by
1450 return type.
43c6a96a 1451
b9201622
NS
1452 PR c++/8702
1453 * decl2.c (check_classfn): Use lookup_fnfield_1. List all
1454 conversion operators on failure.
1455
94be8403
GDR
14562002-12-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1457
b746c5dc
GDR
1458 Remove traditional C constructs 2/n.
1459 * call.c (tourney, build_field_call, equal_functions, joust,
1460 compare_ics, build_over_call, build_java_interface_fn_ref,
1461 convert_like_real, op_error, build_object_call, resolve_args,
1462 build_vfield_ref, check_dtor_name, build_scoped_method_call,
1463 build_addr_func, build_call, build_method_call, null_ptr_cst_p,
1464 sufficient_parms_p, build_conv, non_reference, strip_top_quals,
1465 standard_conversion, reference_related_p,
1466 reference_compatible_p, convert_class_to_reference,
1467 direct_reference_binding, reference_binding,
1468 ,implicit_conversion, is_complete, promoted_arithmetic_type_p,
1469 add_template_conv_candidate, any_viable, any_strictly_viable,
1470 build_this, splice_viable, print_z_candidates,
1471 build_user_type_conversion, build_new_function_call,
1472 conditional_conversion, build_conditional_expr, build_new_op,
1473 build_op_delete_call, enforce_access, call_builtin_trap,
1474 convert_arg_to_ellipsis, build_x_va_arg, cxx_type_promotes_to,
1475 convert_default_arg, type_passed_as, convert_for_arg_passing,
1476 in_charge_arg_for_name, is_properly_derived_from,
1477 maybe_handle_implicit_object, maybe_handle_ref_bind,
1478 source_type, add_warning, can_convert, can_convert_arg,
1479 perform_implicit_conversion, can_convert_arg_bad,
1480 initialize_reference, add_conv_candidate,
1481 add_template_candidate_real, add_template_candidate): Ansify.
94be8403 1482
081cebb2
NS
14832002-12-22 Nathan Sidwell <nathan@codesourcery.com>
1484
1485 PR c++/8572
1486 * cp-tree.h (grokoptypename): Add SCOPE parameter.
1487 * decl2.c (grokoptypename): Add SCOPE parameter. tsubst the type
1488 if in a template scope.
1489 * parse.y (unoperator): Return the scope.
1490 (operator_name): Adjust grokoptypename call.
1491
4f09be91
KL
14922002-12-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1493
1494 * cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
1495 * decl.c (make_unbound_class_template): Adjust. Check for tf_error.
1496 * pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.
1497
4639c5c6
KH
14982002-12-20 Kazu Hirata <kazu@cs.umass.edu>
1499
1500 * ChangeLog: Fix a typo.
1501 * class.c: Fix comment typos.
1502 * cp-tree.h: Likewise.
1503
0ca7178c
JM
15042002-12-18 Jason Merrill <jason@redhat.com>
1505
1506 Handle anonymous unions at the tree level.
1507 C++ ABI change: Mangle anonymous unions using the name of their
1508 first named field (by depth-first search). Should not cause
1509 binary compatibility problems, though, as the compiler previously
1510 didn't emit anything for affected unions.
1511 * cp-tree.def (ALIAS_DECL): New tree code.
1512 * decl2.c (build_anon_union_vars): Build ALIAS_DECLs. Return the
1513 first field, not the largest.
1514 (finish_anon_union): Don't mess with RTL. Do set DECL_ASSEMBLER_NAME,
1515 push the decl, and write it out at namespace scope.
1516 * decl.c (lookup_name_real): See through an ALIAS_DECL.
1517 (pushdecl): Add namespace bindings for ALIAS_DECLs.
1518 * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
1519 of a decl which doesn't have one.
1520 * typeck.c (build_class_member_access_expr): Don't recurse if
1521 we already have the type we want.
1522
da9701a6
KL
15232002-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1524
1525 PR c++/8099
1526 * friend.c (make_friend_class): Allow partial specialization
1527 when declaration is not a template friend.
1528
cab7a9a3
KL
15292002-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1530
1531 PR c++/3663
1532 * pt.c (lookup_template_class): Copy TREE_PRIVATE and
1533 TREE_PROTECTED to created decl nodes.
1534
50cb9059
MM
15352002-12-18 Mark Mitchell <mark@codesourcery.com>
1536
1537 * class.c (build_base_field): Do not set DECL_PACKED on the
1538 FIELD_DECL.
1539
e220f0a4
GDR
15402002-12-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
1541
1542 * cp-tree.h (struct tree_srcloc): Use location_t.
1543 (SOURCE_LOCUS): New.
1544 (SRCLOC_FILE, SRCLOC_LINE): Adjust.
1545
efc7052d
JM
15462002-12-17 Jason Merrill <jason@redhat.com>
1547
1548 * decl.c (finish_function): Also complain about no return in
1549 templates.
43c6a96a 1550 * semantics.c (finish_return_stmt): Also call check_return_expr in
efc7052d
JM
1551 templates.
1552 * typeck.c (check_return_expr): In a template, just remember that we
1553 saw a return.
1554
9f175208
JM
15552002-12-16 Jason Merrill <jason@redhat.com>
1556
89ea02fb
JM
1557 * semantics.c (simplify_aggr_init_exprs_r): Don't change the type
1558 of the CALL_EXPR.
1559
9f175208
JM
1560 * semantics.c (do_pushlevel): Call pushlevel after adding the
1561 SCOPE_STMT.
1562 (do_poplevel): Call poplevel before adding the SCOPE_STMT.
1563 * parse.y (function_body): Go back to using compstmt.
1564 * decl.c (pushdecl): Skip another level to get to the parms level.
1565
1566 * call.c (build_new_method_call): Use is_dummy_object to determine
1567 whether or not to evaluate the object parameter to a static member
1568 function.
1569
4977bab6
ZW
15702002-12-14 Jason Merrill <jason@redhat.com>
1571
1572 * semantics.c (simplify_aggr_init_exprs_r): Also prepend the
1573 return slot for normal functions. Set CALL_EXPR_HAS_RETURN_SLOT_ADDR.
1574 * tree.c (build_cplus_new): If the type isn't TREE_ADDRESSABLE,
1575 don't bother with an AGGR_INIT_EXPR.
1576 (cp_copy_res_decl_for_inlining): If the type isn't TREE_ADDRESSABLE,
1577 just generate a new decl normally. Take return slot parm.
1578 * cp-tree.h: Adjust prototype.
1579
75c525d7
GDR
15802002-12-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1581
1582 PR C++/8031
43c6a96a 1583 * cvt.c (convert_to_pointer_force): Don't try comparing against
75c525d7
GDR
1584 erronous type.
1585
8c6ae51f
GK
15862002-12-13 Geoffrey Keating <geoffk@apple.com>
1587
1588 * cp-tree.h: Have the multiple-include guards around
1589 the entire file.
1590
4977bab6
ZW
15912002-12-10 David Edelsohn <edelsohn@gnu.org>
1592
1593 * cp/spew.c (feed_input): Change limit to last_pos and pos to cur_pos
1594 for SPEW_DEBUG.
1595 (snarf_method): Same.
1596 (snarf_defarg): Same.
1597
d23faea1
MM
15982002-12-10 Mark Mitchell <mark@codesourcery.com>
1599
1600 PR c++/8372
1601 * pt.c (tsubst_copy): Handle destructor names more correctly.
1602
3932057c 16032002-12-10 Matt Austern <austern@apple.com>
d23faea1 1604
3932057c 1605 * cp-tree.h: get rid of needs_virtual_reinit bit.
43c6a96a 1606
dcba9b0f
MM
16072002-12-09 Mark Mitchell <mark@codesourcery.com>
1608
43c6a96a 1609 * NEWS: Document removal of in-class initialization extension for
dcba9b0f
MM
1610 static data members of non-arithmetic, non-enumeration type.
1611 * decl.c (check_static_variable_definition): Do not allow that
1612 extension.
1613 * decl2.c (grokfield): Do not call digest_init when processing
1614 templates.
1615
42b99e03
KG
16162002-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1617
1618 * error.c (dump_expr): Fix format specifier warning.
1619
6c73ad72
GK
16202002-12-04 Geoffrey Keating <geoffk@apple.com>
1621
1622 * class.c (finish_struct_1): Correct comment.
1623 * cp-tree.c (DECL_SORTED_FIELDS): Likewise.
1624
8c048a52
GDR
16252002-12-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1626
1627 PR C++/8799
1628 * error.c (dump_expr): Don't ever try to dump a non-existent
43c6a96a 1629 expression.
8c048a52 1630
4977bab6
ZW
16312002-12-03 Nathan Sidwell <nathan@codesourcery.com>
1632
1633 Implement covariant returns.
1634 * cp-tree.h (IS_AGGR_TYPE_2): Remove.
1635 (struct lang_decl_flags): Add this_thunk_p flag.
1636 Rename vcall_offset to virtual_offset.
1637 (struct lang_decl): Rename delta to fixed_offset.
1638 (DECL_THIS_THUNK_P, DECL_RESULT_THUNK_P): New #defines.
1639 (SET_DECL_THUNK_P): Add THIS_ADJUSTING arg.
1640 (THUNK_DELTA, THUNK_VCALL_OFFSET): Rename to ...
1641 (THUNK_FIXED_OFFSET, THUNK_VIRTUAL_OFFSET): ... here.
1642 (make_thunk): Add this_adjusting arg.
1643 (finish_thunk): Declare.
1644 (mangle_thunk): Add this_adjusting arg.
1645 * class.c (get_vcall_index): Use base function for lookup.
1646 (update_vtable_entry_for_fn): Generate covariant thunk.
1647 (finish_struct_1): Set DECL_VINDEX to NULL for thunks.
1648 (build_vtbl_initializer): Use base function for lookup.
1649 Finish covariant thunk here. Adjust thunk generation.
1650 * dump.c (cp_dump_tree): Simplify DECL_GLOBAL_[CD]TOR_P handling.
1651 Adjust thunk dumping.
1652 * mangle.c (mangle_call_offset): New function.
1653 (mangle_thunk): Adjust for covariant thunks.
1654 * method.c (make_thunk): Adjust. Do not set name here.
1655 (finish_thunk): New function. Set name here.
1656 (use_thunk): Generate covariant thunks too.
1657 (thunk_adjust): New function.
1658 * search.c (covariant_return_p): Remove. Fold into ...
1659 (check_final_overrider): ... here. Simplify.
1660 * semantics.c (emit_associated_thunks): Walk covariant thunk lists.
1661
c203334d
JM
16622002-12-03 Jason Merrill <jason@redhat.com>
1663
c246c65d
JM
1664 PR c++/8674
1665 * call.c (build_over_call): Check specifically for TARGET_EXPR
1666 when eliding.
1667
1668 PR c++/8461, c++/8625
1669 * call.c (convert_for_arg_passing): Don't mess with error_mark_node.
1670 (cp_convert_parm_for_inlining): Remove.
43c6a96a 1671 * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
c246c65d
JM
1672 Remove.
1673 * cp-tree.h (ADDR_IS_INVISIREF): Remove.
1674 * except.c (stabilize_throw_expr): Remove ADDR_IS_INVISIREF code.
1675
c203334d
JM
1676 * call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on
1677 an ambiguous conversion.
1678
ee7ecb29
MM
16792002-12-03 Mark Mitchell <mark@codesourcery.com>
1680
1681 PR c++/8688
1682 * decl.c (reshape_init): Handle erroneous initializers.
1683
5089de93
MM
16842002-12-02 Mark Mitchell <mark@codesourcery.com>
1685
1686 PR c++/8720
1687 * spew.c (remove_last_token): Make sure that last_chunk is set
1688 correctly.
1689
1690 PR c++/8615
1691 * error.c (dump_expr): Handle character constants with
1692 TREE_OVERFLOW set.
43c6a96a 1693
218e0eb6
KL
16942002-12-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1695
1696 DR 180
1697 * decl.c (grokdeclarator): Require class-key for all friend class.
1698 Output the correct type and context in the error message.
1699
a82d6da5
MM
17002002-12-01 Mark Mitchell <mark@codesourcery.com>
1701
94fc547c
MM
1702 PR c++/5919
1703 * pt.c (unify): Use variably_modified_type_p to test validity of
1704 template argument types.
43c6a96a 1705
a82d6da5
MM
1706 PR c++/8727
1707 * cp-tree.h (lang_type_class): Add typeinfo_var.
1708 (CLASSTYPE_TYPEINFO_VAR): New macro.
1709 * rtti.c (get_tinfo_decl): Use it.
1710
1711 PR c++/8663
1712 * init.c (expand_member_init): Always get the main variant of a
1713 base class.
1714
c9f8536c
MM
17152002-12-01 Mark Mitchell <mark@codesourcery.com>
1716
1717 PR c++/8332
1718 PR c++/8493
1719 * decl.c (cxx_init_decl_processing): Use size_type_node, not
1720 c_size_type_node.
1721 * decl2.c (coerce_new_type): Likewise.
1722 * except.c (do_allocate_exception): Likewise.
1723
4977bab6
ZW
17242002-11-30 Zack Weinberg <zack@codesourcery.com>
1725
1726 * call.c, class.c, cp-lang.c, cvt.c, cxxfilt.c, decl.c, decl2.c,
1727 dump.c, error.c, except.c, expr.c, friend.c, g++spec.c, init.c,
1728 lex.c, mangle.c, method.c, optimize.c, parse.y, pt.c, ptree.c,
1729 repo.c, rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
1730 typeck2.c: Include coretypes.h and tm.h.
1731 * Make-lang.in: Update dependencies.
1732
c17707f1
MM
17332002-11-30 Mark Mitchell <mark@codesourcery.com>
1734
328de7c2
MM
1735 PR c++/8227
1736 * decl.c (layout_var_decl): Deal gracefully with erroneous types.
1737 (check_initializer): Validate the type of the initialized
1738 variable, even if the initializer is absent.
1739 * typeck.c (cp_type_quals): Deal gracefully with erroneous types.
43c6a96a 1740
c17707f1
MM
1741 PR c++/8214
1742 * typeck.c (convert_for_assignment): Do not use
1743 decl_constant_value on the operand.
1744
65f8b0fb
MM
1745 PR c++/8511
1746 * pt.c (instantiate_decl): Handle template friends defined outside
1747 of the class correctly.
1748
f6a83eb0
JB
17492002-11-29 Joe Buck <jbuck@synopsys.com>
1750
1751 * parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
1752 anonymous structs.
43c6a96a 1753
ff944b49
MM
17542002-11-29 Mark Mitchell <mark@codesourcery.com>
1755
1756 * class.c (walk_subobject_offsets): Recur on binfos as well as on
1757 types.
1758 (layout_nonempty_base_or_field): Pass it a binfo when processing a
1759 base class.
1760 (layout_empty_base): Likewise.
1761 (build_base_field): Likewise.
43c6a96a 1762
21b3d0ba
MM
17632002-11-27 Mark Mitchell <mark@codesourcery.com>
1764
1765 * class.c (build_base_field): Make sure we get the canonical base
1766 when descending through primary bases.
1767
a16f2357
GK
17682002-11-26 Geoffrey Keating <geoffk@apple.com>
1769
1770 * decl.c (check_initializer): Don't error on initialisation of
1771 a scalar with a brace-enclosed expression.
1772
688f6688
NS
17732002-11-26 Nathan Sidwell <nathan@codesourcery.com>
1774
1775 * cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
1776 (template_parms_equal): Remove prototype.
1777 * typeck.c (buuld_indirect_ref): Reformat.
1778
4977bab6
ZW
17792002-11-25 Jason Merrill <jason@redhat.com>
1780
1781 * init.c (build_vec_init): Use a FOR_STMT instead of an IF_STMT
1782 and a DO_STMT.
1783
b82ddab4
MM
17842002-11-25 Mark Mitchell <mark@codesourcery.com>
1785
2003cd37
MM
1786 * tree.c (cp_build_qualified_type_real): Correct handling of
1787 array types.
1788 * class.c (walk_subobject_offsets): Fix thinko.
1789 (build_base_field): Record offsets of empty bases in primary
1790 virtual bases.
1791 (layout_class_type): Record offsets of empty bases in fields.
43c6a96a 1792
b82ddab4
MM
1793 * search.c (is_subobject_of_p_1): Fix thinko.
1794 (lookup_field_queue_p): Likewise.
1795
8a874cb4
MM
17962002-11-24 Mark Mitchell <mark@codesourcery.com>
1797
1798 * class.c (layout_class_type): Reuse tail padding when laying out
1799 virtual bases.
1800
05abed76
MM
18012002-11-22 Mark Mitchell <mark@codesourcery.com>
1802
1803 * rtti.c (qualifier_flags): Fix thinko.
1804
4977bab6
ZW
18052002-11-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1806
1807 Remove traditional C constructs 1/n.
1808 * cp-tree.h (init_method, set_mangled_name_for_decl,
1809 build_opfncall, hack_identifier, make_thunk, use_thunk,
1810 synthesize_method, implicitly_declare_fn,
1811 skip_artificial_parms_for, optimize_function, calls_setjmp_p,
1812 maybe_clone_body): Remove use of PARAMS.
1813
1814 * method.c (do_build_assign_ref, do_build_copy_constructor,
1815 synthesize_exception_spec, locate_dtor, locate_ctor, locate_copy):
1816 Likewise.
1817 (synthesize_method): Use 'bool' type and constants instead of
1818 'int'.
1819 (locate_copy): Likewise.
1820 (implicitly_declare_fn): Likewise.
1821
1822 * optimize.c (calls_setjmp_r, update_cloned_parm, dump_function):
1823 Remove old-style declaration.
1824 (maybe_clone_body): Use 'bool' type and constants.
1825
1c83ea9f
GN
18262002-11-21 Glen Nakamura <glen@imodulo.com>
1827
1828 PR c++/8342
1829 * typeck.c (get_member_function_from_ptrfunc): Make sure that a
1830 SAVE_EXPR for instance_ptr doesn't get evaluated first inside one
1831 of the branches of a COND_EXPR.
1832
ad2ae3b2
MM
18332002-11-19 Mark Mitchell <mark@codesourcery.com>
1834
1835 * pt.c (for_each_template_parm): Free allocated memory.
1836 * search.c (is_subobject_of_p_1): New function.
1837 (is_subobject_of_p): Avoid walking virtual bases multiple times.
1838
f3226a90
JT
18392002-11-19 Jason Thorpe <thorpej@wasabisystems.com>
1840
1841 * g++spec.c (lang_specific_spec_functions): New.
1842
90024bdc
KH
18432002-11-15 Kazu Hirata <kazu@cs.umass.edu>
1844
1845 * ChangeLog: Follow spelling conventions.
1846 * class.c: Likewise.
1847 * decl2.c: Likewise.
1848
fa7b533b
ZW
18492002-11-14 Zack Weinberg <zack@codesourcery.com>
1850
1851 * search.c (dfs_push_decls): Do not try to reorder elements
1852 3..n of method_vec if method_vec has only two elements.
1853 Reverse order of two tests to avoid accessing unallocated
1854 memory.
1855
95675950
MM
18562002-11-14 Mark Mitchell <mark@codesourcery.com>
1857
1858 * class.c (dfs_find_final_overrider): Adjust so that the most
1859 derived object is a binfo, rather than a class type.
1860 (find_final_overrider): Likewise.
1861 (add_vcall_offset_vtbl_entries_1): Simplify accordingly.
1862 (add_vcall_offset): Likewise.
1863
5c74d5b0
KL
18642002-11-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1865
1866 PR c++/8389
1867 * pt.c (instantiate_template): Push class scope for member
1868 functions.
1869 (get_mostly_instantiated_function_type): Likewise. Don't call
1870 tsubst on context. Remove CONTEXTP and TPARMSP parameters.
1871 * cp-tree.h (get_mostly_instantiated_function_type): Adjust.
1872 * mangle.c (write_encoding, write_unqualified_name): Adjust.
1873
4f2c9d7e
MM
18742002-11-07 Mark Mitchell <mark@codesourcery.com>
1875
e6a66567
MM
1876 * class.c (add_vcall_offset_vtbl_entries_1): Correct ordering of
1877 vcall offfsets. Split out ...
1878 (add_vcall_offset): ... new function.
1879
4f2c9d7e
MM
1880 PR c++/8338
1881 * pt.c (for_each_template_parm): Add htab parameter.
1882 (process_partial_specialization): Adjust call.
1883 (push_template_decl_real): Likewise.
1884 (pair_fn_data): Add visited.
1885 (for_each_template_parm_r): Avoid walking duplicates more than
1886 once.
1887 (uses_template_parms): Adjust call to for_each_template_parm.
1888
f72ab53b
MM
18892002-11-07 Mark Mitchell <mark@codesourcery.com>
1890
1891 * class.c (add_implicitly_declared_members): Put implicitly
1892 declared functions at the end of TYPE_METHODs when -fabi-version
1893 is at least 2.
1894
0a288b9a
GK
18952002-11-05 Geoffrey Keating <geoffk@apple.com>
1896
1897 * decl2.c (finish_file): Correct spelling.
1898
548502d3
MM
18992002-11-03 Mark Mitchell <mark@codesourcery.com>
1900
1901 * call.c (build_special_member_call): Do not try to lookup VTTs by
1902 name.
1903 * class.c (vtbl_init_data): Add generate_vcall_entries.
1904 (get_vtable_decl): Do not look up virtual tables by name.
1905 (copy_virtuals): Do not use BV_USE_VCALL_INDEX_P.
1906 (set_primary_base): Do not set CLASSTYPE_RTTI.
1907 (determine_primary_base): Likewise.
1908 (get_matching_virtual): Remove.
1909 (get_vcall_index): New function.
1910 (update_vtable_entry_for_fn): Do not try to use virtual thunks
1911 when they are not required. Assign vcall indices at this point.
1912 (finish_struct_1): Do not set CLASSTYPE_NEEDS_VIRTUAL_REINIT.
1913 Do update dynamic_classes.
1914 (build_vtt): Do not add VTTs to the symbol table.
1915 (build_ctor_vtbl_group): Likewise.
1916 (build_vtbl_initializer): Simplify handling of vcall indices.
1917 (build_vcall_offset_vtbl_entries): Pretend to build vcall offsets
1918 for the most derived class.
1919 (add_vcall_offset_vtbl_entries_1): But do not actually add them to
1920 the vtable.
1921 * cp-tree.h (dynamic_classes): New macro.
1922 (lang_type_class): Remove rtti. Add vtables. Add vcall_indices.
1923 (CLASSTYPE_RTTI): Remove.
1924 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Remove.
1925 (CLASSTYPE_VCALL_INDICES): New macro.
1926 (CLASSTYPE_VTABLES): Likewise.
1927 (BV_USE_VCALL_INDEX_P): Remove.
1928 (build_vtable_path): Remove.
1929 * decl2.c (finish_vtable_vardecl): Remove.
1930 (key_method): Remove #if 0'd code.
1931 (finish_vtable_vardecl): Rename to ...
1932 (maybe_emit_vtables): ... this.
1933 (finish_file): Use it.
1934 * search.c (look_for_overrides_here): Update comment.
1935
04d57dd5
ZW
19362002-11-01 Zack Weinberg <zack@codesourcery.com>
1937
1938 PR c/7353 redux
1939 * decl2.c (grokfield): Reject TYPE_DECLs with initializers.
1940
bab076f7
JM
19412002-10-30 Jason Merrill <jason@redhat.com>
1942
1943 PR c++/8186
1944 * cp-tree.h (ADDR_IS_INVISIREF): New macro.
1945 * call.c (convert_for_arg_passing): Set it.
1946 * except.c (stabilize_throw_expr): Recurse for such an arg.
1947
14b4829d
MM
19482002-10-31 Mark Mitchell <mark@codesourcery.com>
1949
1950 * cp-tree.h (lang_decl_flags): Remove init_priority.
1951 (lang_decl): Add delta.
1952 (GLOBAL_INIT_PRIORITY): Remove.
1953 (THUNK_DELTA): Revise definition.
1954 * decl2.c (start_objects): Don't set GLOBAL_INIT_PRIORITY.
1955 * dump.c (cp_dump_tree): Don't dump it.
1956
8c081e84
MM
19572002-10-30 Mark Mitchell <mark@codesourcery.com>
1958
1959 PR c++/8160
1960 * typeck2.c (process_init_constructor): Call complete_array_type.
1961
1962 PR c++/8149
1963 * decl.c (make_typename_type): Issue errors about invalid results.
04d57dd5 1964
7088fca9
KL
19652002-10-30 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1966
1967 Core issue 287, PR c++/7639
1968 * cp-tree.h (lang_type_class): Add decl_list field.
1969 (CLASSTYPE_DECL_LIST): New macro.
1970 (maybe_add_class_template_decl_list): Add declaration.
1971 * class.c (duplicate_tag_error): Initialize CLASSTYPE_DECL_LIST.
1972 (unreverse_member_declarations): Reverse CLASSTYPE_DECL_LIST.
1973 (maybe_add_class_template_decl_list): New function.
1974 (add_implicitly_declared_members): Use it.
1975 * decl.c (maybe_process_template_type_declaration): Likewise.
1976 (pushtag): Likewise.
1977 * friend.c (add_friend): Likewise.
1978 (make_friend_class): Likewise.
1979 * semantics.c (finish_member_declaration): Likewise.
1980 (begin_class_definition): Initialize CLASSTYPE_DECL_LIST.
1981 * pt.c (instantiate_class_template): Use CLASSTYPE_DECL_LIST
1982 to process members and friends in the order of declaration.
1983
5633b37c
MM
19842002-10-29 Mark Mitchell <mark@codesourcery.com>
1985
1986 PR c++/8287
1987 * decl.c (finish_destructor_body): Create the label to jump to
1988 when returning from a destructor here.
1989 (finish_function_body): Rather than here.
1990
f65e1183
ZW
19912002-10-25 Zack Weinberg <zack@codesourcery.com>
1992
1993 PR c++/7266
1994 * decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
1995 SCOPE_REF is not null before dereferencing it.
1996
bb5e8a7f
MM
19972002-10-25 Mark Mitchell <mark@codesourcery.com>
1998
e93ee644
MM
1999 * call.c (build_over_call): Use DECL_CONTEXT, not
2000 DECL_VIRTUAL_CONTEXT.
2001 * class.c (modify_vtable_entry): Don't mess with
2002 DECL_VIRTUAL_CONTEXT.
2003 (set_vindex): Remove.
2004 (set_primary_base): Remove vfuns_p parameter.
2005 (determine_primary_base): Likewise.
2006 (modify_all_vtables): Likewise.
2007 (layout_class_type): Likewise. Adjust calls to other functions
2008 accordingly.
2009 (finish_struct_1): Adjust calls to modified functions. Set
2010 DECL_VINDEX here.
2011 * cp-tree.h (lang_type_class): Remove vsize.
2012 (CLASSTYPE_VSIZE): Remove.
2013 (lang_decl): Remove thunks.
2014 (DECL_THUNKS): Adjust.
2015 (DECL_VIRTUAL_CONTEXT): Remove.
2016 (duplicate_decls): Don't copy it.
2017 * pt.c (build_template_decl): Don't set it.
2018 (tsubst_decl): Likewise.
2019 * typeck.c (expand_ptrmemfunc_cst): Don't use it.
04d57dd5 2020
bb5e8a7f
MM
2021 * class.c (build_vtbl_initializer): Don't use build_vtable_entry.
2022 (build_vtable_entry): Remove.
2023 * cp-tree.h (BINFO_VIRTUALS): Expand documentation.
2024 (lang_decl): Add thunks.
2025 (DECL_THUNKS): New macro.
2026 * decl.c (duplicate_decls): Copy it.
2027 * method.c (make_thunk): Simplify, and add thunks to DECL_THUNKS.
2028 * semantics.c (emit_associated_thunks): Simplify.
f65e1183 2029
6eb35968
DE
20302002-10-24 David Edelsohn <edelsohn@gnu.org>
2031
2032 PR c++/7228
2033 * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
2034 lang_type structure exists before accessing field.
2035 (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
2036 (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
2037 (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
2038 * class.c (check_field_decls): Use new macros.
2039 * typeck2.c (process_init_constructor): Remove redundant check for
2040 existence of lang_type structure.
2041
0cee073d
MM
20422002-10-24 Mark Mitchell <mark@codesourcery.com>
2043
ba9a991f
MM
2044 * class.c (end_of_base): New method.
2045 (end_of_class): Use it. Check indirect virtual bases.
2046
0cee073d
MM
2047 * class.c (check_field_decls): Fix typo.
2048
e6f052b7
MM
20492002-10-23 Mark Mitchell <mark@codesourcery.com>
2050
6b607ffd
MM
2051 PR c++/8067
2052 * decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
2053 related variables.
2054
e6f052b7
MM
2055 PR c++/7679
2056 * spew.c (next_token): Do not return an endless stream of
2057 END_OF_SAVED_INPUT tokens.
2058 (snarf_method): Add three END_OF_SAVED_INPUT tokens to the end of
2059 the cached token stream.
2060 (snarf_defarg): Likewise.
2061
8bcefb43
ZW
20622002-10-23 Zack Weinberg <zack@codesourcery.com>
2063
2064 * cp-lang.c (cp_var_mod_type_p): New: C++ hook for
2065 variably_modified_type_p.
2066 * cp-tree.h: Remove prototype of variably_modified_type_p.
2067 * tree.c (variably_modified_type_p): Remove; now implemented
2068 in language-independent code.
2069
ad4f9910
MM
20702002-10-22 Mark Mitchell <mark@codesourcery.com>
2071
2072 PR c++/6579
2073 * spew.c (snarf_parenthesized_expression): New function.
2074 (snarf_block): Use it.
2075
3961e8fe
RH
20762002-10-22 Richard Henderson <rth@redhat.com>
2077
2078 * method.c (use_thunk): Always compute vcall_value; assert that
2079 it is not zero. Use can_output_mi_thunk; use output_mi_thunk
2080 for vcall thunks as well.
2081
5ec1192e
MM
20822002-10-21 Mark Mitchell <mark@codesourcery.com>
2083
7ba539c6
MM
2084 * class.c (empty_base_at_nonzero_offset_p): New function.
2085 (layout_nonempty_base_or_field): Do not check for conflicts when
2086 laying out a virtual base using the GCC 3.2 ABI.
2087 (build_base_field): Correct checking for presence of empty classes
90024bdc 2088 at nonzero offsets when clearing CLASSTYPE_NEARLY_EMPTY_P.
7ba539c6 2089
e3ccdd50
MM
2090 * class.c (include_empty_classes): Use normalize_rli.
2091 (layout_class_type): Likewise.
2092
42328048
MM
2093 * decl.c (reshape_init): Tweak handling of character arrays.
2094
5ec1192e
MM
2095 PR c++/8218
2096 * cp-tree.h (lang_type_class): Add contains_empty_class_p.
2097 (CLASSTYPE_CONTAINS_EMPTY_CLASS_P): New macro.
2098 * class.c (check_bases): Update CLASSTYPE_CONTAINS_EMPTY_CLASS_P.
2099 (check_field_decls): Likewise.
2100 (layout_class_type): Likewise.
2101 (finish_struct_1): Initialize it.
2102 (walk_subobject_offsets): Use it to prune searches.
2103
eb0424da
MM
21042002-10-20 Mark Mitchell <mark@codesourcery.com>
2105
2106 * method.c (use_thunk): Compute the vcall index as a HOST_WIDE_INT.
2107 * optimize.c (optimize_function): Replace ASM_OUTPUT_MI_THUNK with
2108 TARGET_ASM_OUTPUT_MI_THUNK in comments.
8bcefb43 2109
4a7510cb
ZW
21102002-10-18 Zack Weinberg <zack@codesourcery.com>
2111
2112 * decl.c (start_decl): Point users of the old initialized-
2113 typedef extension at __typeof__.
2114
483ab821
MM
21152002-10-18 Mark Mitchell <mark@codesourcery.com>
2116
2117 * Make-lang.in (method.o): Depend on TARGET_H.
2118 * method.c (target.h): Include it.
2119 (use_thunk): Use target hooks. Use vcall thunks, if available.
2120
e4f4feba
MM
21212002-10-18 Mark Mitchell <mark@codesourcery.com>
2122
2123 * class.c (base_derived_from): Make sure return value is a bool.
2124
9368208b
MM
21252002-10-18 Mark Mitchell <mark@codesourcery.com>
2126
2127 * class.c (find_final_overrider_data_s): Remove overriding_fn and
2128 overriding_base.
2129 (dfs_base_derived_from): New function.
2130 (base_derived_from): Likewise.
2131 (dfs_find_final_overrider): Use base_derived_from.
2132 (find_final_overrider): Adjust.
2133
5275f2bf
JM
21342002-10-18 Jason Merrill <jason@redhat.com>
2135
2136 PR c++/8080
2137 * semantics.c (finish_for_cond, finish_while_cond): Don't mess
2138 with condition decls in a template.
2139
8a188e24
NS
21402002-10-17 Nathan Sidwell <nathan@codesourcery.com>
2141
2142 * class.c (add_method): Compare template parms too.
2143
b216f69b
MM
21442002-10-17 Mark Mitchell <mark@codesourcery.com>
2145
982216be
MM
2146 PR c++/7584
2147 * class.c (handle_using_decl): Allow the declaration used to be
2148 from an ambiguous base.
2149
d768a589
MM
2150 * pt.c (convert_template_argument): Revert this change:
2151 2002-10-16 Mark Mitchell <mark@codesourcery.com>
2152 * pt.c (convert_template_argument): Do not fold non-type
2153 template rguments when inside a template.
2154
b216f69b
MM
2155 * init.c (expand_default_init): Handle brace-enclosed initializers
2156 correctly.
2157
2303a079
MM
21582002-10-16 Mark Mitchell <mark@codesourcery.com>
2159
d3133e68
MM
2160 * mangle.c (write_expression): Correct handling of enumeration
2161 constants.
2162 (write_template_arg): Likewise.
2163 * pt.c (convert_template_argument): Do not fold non-type template
2164 arguments when inside a template.
2165
2303a079
MM
2166 PR c++/7478
2167 * cvt.c (convert_to_reference): Allow references as the incoming
2168 type.
2169
451c0899
MM
21702002-10-16 Mark Mitchell <mark@codesourcery.com>
2171
2172 PR c++/7524
2173 * method.c (do_build_assign_ref): Use cp_build_qualified_type, not
2174 build_qualified_type.
2175
da6eec72
RH
21762002-10-15 Richard Henderson <rth@redhat.com>
2177
2178 * error.c (dump_expr): Use real_to_decimal directly, and with
2179 the new arguments.
2180
3fa3c4bd
MM
21812002-10-15 Mark Mitchell <mark@codesourcery.com>
2182
2183 * decl.c (reshape_init): Fix typo.
2184
2185 * cp-tree.h (operator_name_info_t): Add arity.
2186 * lex.c (init_operators): Initialize it.
2187 * mangle.c (write_conversion_operator_name): New function.
2188 (write_unqualified_name): Use it.
2189 (write_template_args): Accept template arguments as a TREE_LIST.
2190 (write_expression): Adjust handling of qualified names to match
2191 specification.
2192
1a55127d
JM
21932002-10-15 Jason Merrill <jason@redhat.com>
2194
2195 * call.c (call_builtin_trap): New fn.
2196 (convert_arg_to_ellipsis): Use it. Downgrade error to warning.
2197 (build_call): Don't set current_function_returns_abnormally outside
2198 a function.
2199
58731fd1
MM
22002002-10-14 Mark Mitchell <mark@codesourcery.com>
2201
2202 * class.c (check_field_decls): Remove empty_p parameter. Instead,
2203 clear CLASSTYPE_EMPTY_P.
2204 (build_base_field): Likewise.
2205 (build_base_fields): Likewise.
2206 (check_bases_and_members): Likewise.
2207 (create_vtbl_ptr): Likewise.
2208 (layout_class_type): Likewise. Ensure that empty classes have
2209 size zero when used as base classes in the 3.2 ABI.
2210 (finish_struct_1): Initialize CLASSTYPE_EMPTY_P and
2211 CLASSTYPE_NEARLY_EMPTY_P. Adjust calls to avoid passing empty_p
2212 parameter.
2213 (is_empty_class): Correct definition when using post-3.2 ABI.
2214 * cp-tree.h (lang_type_class): Add empty_p.
2215 (CLASSTYPE_EMPTY_P): New macro.
2216
6742d92b
NS
22172002-10-12 Nathan Sidwell <nathan@codesourcery.com>
2218
2219 * init.c (build_delete): Do not apply save_expr for arrays.
2220 (build_vec_delete): Likewise.
2221
77631fa7
MM
22222002-10-14 Mark Mitchell <mark@codesourcery.com>
2223
4a7510cb 2224 * decl.c (layout_var_decl): Call layout_decl even for variables
7de85f7e
MM
2225 whose type is an array with unspecified bounds.
2226
77631fa7
MM
2227 PR c++/7176
2228 * lex.c (do_identifier): Add another option for the parsing
2229 parameter.
2230 * parse.y (do_id): Use it.
2231
2ee366b5
GDR
22322002-10-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2233
2234 PRs C++/6803, C++/7721 and C++/7803
2235 * decl.c (grokdeclarator): Gracefully handle template-name as
2236 decl-specifier.
2237
01c3fb15
JM
22382002-10-11 Jason Molenda <jmolenda@apple.com>
2239
2240 * init.c (build_field_list): Provide uses_unions_p with a default
2241 value.
2242
8e3df2de
MM
22432002-10-11 Mark Mitchell <mark@codesourcery.com>
2244
dac45b5c
MM
2245 PR c++/5661
2246 * cp-tree.h (variably_modified_type_p): New function.
2247 (grokdeclarator) Tighten check for variably modified types as
2248 fields.
2249 * pt.c (convert_template_argument): Do not allow variably modified
2250 types as template arguments.
4a7510cb 2251 * tree.c (variably_modified_type_p): New function.
dac45b5c 2252
8e3df2de
MM
2253 * NEWS: Document removal of "new X = ..." extension.
2254 * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on
2255 brace-enclosed initializers.
2256 * cp-tree.h (CP_AGGREGATE_TYPE_P): New macro.
2257 (initialize_local_var): Remove declaration.
2258 (expand_static_init): Likewise.
2259 * decl.c (next_initializable_field): New function.
2260 (reshape_init): Likewise.
2261 (check_initializer): Use them. Build dynamic initializer for
2262 aggregates here too.
2263 (initialize_local_var): Simplify, and incorporate cleanup
2264 insertion code as well.
2265 (destroy_local_var): Remove.
2266 (cp_finish_decl): Tidy.
2267 (expand_static_init): Fold checks for whether or not a variable
2268 needs initialization into this function. Simplify.
2269 * decl2.c (do_static_initialization): Simplify.
2270 * init.c (build_init): Do not set TREE_SIDE_EFFECTS when it will
2271 be done for us automatically.
2272 (expand_default_init): Handle brace-enclosed initializers
2273 correctly.
2274 (expand_aggr_init_1): Remove RTL-generation code.
2275 (build_vec_init): Remove "new X = ..." support.
2276 * parse.y (new_initializer): Likewise.
2277 * rtti.c (get_pseudo_ti_init): Set TREE_HAS_CONSTRUCTOR on
2278 brace-enclosed initializer.
2279 (create_pseudo_type_info): Likewise.
2280 * typeck2.c (store_init_value): Don't try to handle digest_init
2281 being called more than once.
2282 (digest_init): Tidy handling of brace-enclosed initializers.
01c3fb15 2283
7bdfd72e
KG
22842002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2285
2286 * decl.c (typename_hash): Use htab_hash_pointer.
2287
e89fe41c
JW
22882002-10-10 Jim Wilson <wilson@redhat.com>
2289
2290 * decl.c (duplicate_decls): Don't call decl_attributes.
2291
95f79357
ZW
22922002-10-09 Zack Weinberg <zack@codesourcery.com>
2293
85cd7be8 2294 PR c/7353
95f79357
ZW
2295 * decl.c (start_decl): Unconditionally issue error for
2296 'typedef foo = bar'.
2297 (cp_finish_decl): Remove special case for TYPE_DECL with initializer.
2298 (grokdeclarator): Remove redundant error for 'typedef foo = bar'.
2299
10a38dba
KG
23002002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2301
2302 * decl2.c (prune_vtable_vardecl): Delete unused function.
2303
edebf865
MM
23042002-10-03 Mark Mitchell <mark@codesourcery.com>
2305
2306 PR c++/7754
2307 * decl2.c (finish_anon_union): Do not expand anonymous unions when
2308 procesing template functions.
2309 * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
2310 type. Call layout_decl.
2311 (tsubst_expr, case DECL_STMT): Handle anonymous unions.
2312
01f4137f
RH
23132002-10-07 Richard Henderson <rth@redhat.com>
2314
2315 * decl2.c, pt.c: Revert c++/7754 fix.
2316
eb55ce4b
KL
23172002-10-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2318
2319 PR c++/7804
2320 * error.c (dump_expr) [REAL_CST]: Output in decimal format.
2321
bd9bb3d2
MM
23222002-10-03 Mark Mitchell <mark@codesourcery.com>
2323
43c6a96a 2324 PR c++/7931
bd9bb3d2
MM
2325 * pt.c (for_each_template_parm_r): Handle BASELINKs.
2326
2327 PR c++/7754
2328 * decl2.c (finish_anon_union): Do not expand anonymous unions when
2329 procesing template functions.
2330 * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
2331 type. Call layout_decl.
2332 (tsubst_expr, case DECL_STMT): Handle anonymous unions.
2333
6397d80b
MM
23342002-10-03 Mark Mitchell <mark@codesourcery.com>
2335
2336 PR c++/8006
2337 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Handle instances of template
2338 template parameters.
2339 (globals): Add entity and need_abi_warning.
2340 (decl_is_template_id): Use TYPE_TEMPLATE_INFO, not
2341 CLASSTYPE_TEMPLATE_INFO.
2342 (is_std_substitution): Use CLASSTYPE_TI_TEMPLATE, not
2343 TYPE_TI_TEMPLATE.
2344 (write_prefix): Handle typename types correctly.
2345 (write_template_prefix): Handle template template parameters
2346 correctly.
2347 (start_mangling): Add entity parameter.
2348 (finish_mangling): Warn about names whose mangling will change.
2349 (mangle_decl_string): Adjust.
2350 (mangle_type_string): Likewise.
2351 (mangle_special_for_type): Likewise.
2352 (mangle_ctor_vtbl_for_type): Likewise.
2353 (mangle_thunk): Likewise.
2354 (mangle_guard_variable): Likewise.
2355 (mangle_ref_init_variable): Likewise.
2356
2282d28d
MM
23572002-10-02 Mark Mitchell <mark@codesourcery.com>
2358
2359 PR c++/7188.
2360 * cp-tree.def (CTOR_INITIALIZER): Use one slot, not two.
2361 * cp-tree.h (emit_base_init): Rename to ....
2362 (emit_mem_initializers): ... this.
2363 (expand_member_init): Change prototype.
2364 * init.c (perform_member_init): Compute explicit, rather than
2365 requiring it as a parameter.
2366 (sort_member_init): Rename to ...
2367 (sort_mem_initializers): ... this. Process bases and data members
2368 together.
2369 (sort_base_init): Remove.
2370 (emit_base_init): Rename to ...
2371 (emit_mem_initializers): ... this.
2372 (expand_aggr_vbase_init_1): Remove.
2373 (construct_virtual_bases): Rename to ...
2374 (construct_virtual_base): ... this.
2375 (expand_member_init): Rework handling of base initializers.
2376 * method.c (do_build_copy_constructor): Use
2377 finish_mem_initializers.
2378 * parse.y (member_init): Adjust calls to expand_member_init.
2379 * pt.c (tsubst_expr): Simplify CTOR_INITIALIZER case.
2380 (tsubst_initializer_list): Use expand_member_init.
2381 * semantics.c (finish_mem_intiailizers): Simplify.
69788039
MA
2382
23832002-10-02 Matt Austern <austern@apple.com>
2384 * decl.c (walk_vtables_r): Fixed typo that caused result to
2385 never get a nonzero value.
95f79357 2386
f963b5d9
RS
23872002-10-02 Roger Sayle <roger@eyesopen.com>
2388
2389 PR optimization/6627
2390 * cp-tree.h (enum ptrmemfunc_vbit_where_t): Delete definition
2391 from here, and move it to tree.h.
2392 * decl.c (cxx_init_decl_processing): If storing the vbit
2393 in function pointers, ensure that force_align_functions_log
2394 is atleast one.
2395
69788039
MA
23962002-10-02 Matt Austern <austern@apple.com>
2397
2398 * class.c (check_field_decls): Changed warning about const member
2399 variables so that it doesn't get issued for a class aggregate.
95f79357 2400
d881ff25
MM
24012002-10-01 Mark Mitchell <mark@codesourcery.com>
2402
2403 * decl.c (cp_finish_decl): Make sure array types are laid out,
2404 even if the array bounds are unknown.
2405
2e88ae22
SE
24062002-10-01 Steve Ellcey <sje@cup.hp.com>
2407
d881ff25 2408 * class.c (build_vtbl_initializer): Change build_c_cast
2e88ae22
SE
2409 to build1.
2410
b4c20e52
MM
24112002-10-01 Mark Mitchell <mark@codesourcery.com>
2412
d881ff25
MM
2413 * decl.c (cp_finish_decl): Make sure array types are laid out,
2414 even if the array bounds are unknown.
2415
b4c20e52
MM
2416 * decl.c (cp_finish_decl): Correct check for dynamic
2417 initialization of thread-local storage.
2418
5a9a1961
NS
24192002-09-30 Nathan Sidwell <nathan@codesourcery.com>
2420
2421 * tree.c (really_overloaded_fn): TEMPLATE_ID_EXPRs are also
2422 overloaded.
2423
7befdb9f
SE
24242002-09-30 Steve Ellcey <sje@cup.hp.com>
2425
2426 * class.c (build_vtbl_initializer): Add cast.
2427 (add_vcall_offset_vtbl_entries_1):
2428 Use TARGET_VTABLE_DATA_ENTRY_DISTANCE for offset.
2429
17bbb839
MM
24302002-09-30 Mark Mitchell <mark@codesourcery.com>
2431
2432 * class.c (walk_subobject_offsets): Correct the calculation of
2433 offsets for virtual bases. Correct the counting of array
2434 elements.
2435 (layout_nonempty_base_or_field): Simplify. Correct the
2436 calculation of offsets to be propagated through the binfo
2437 hierarchy.
2438 (build_base_field): Avoid creating a FIELD_DECL for empty bases.
2439 Add the FIELD_DECL to TYPE_FIELDS.
2440 (build_base_fields): Adjust accordingly.
2441 (layout_virtual_bases): Use build_base_field.
2442 (end_of_class): Return a tree, not an integer.
2443 (warn_about_ambiguous_direct_bases): Rename to ...
2444 (warn_about_ambiguous_bases): ... this.
2445 (include_empty_classes): New function.
2446 (layout_class_type): Create an alternative version of the type to
2447 be used when as a base class type. Do not call
2448 finish_record_layout until we are done laying out the class.
2449 * cp-tree.h (lang_type_class): Remove size, size_unit. Add
2450 as_base.
2451 (CLASSTYPE_SIZE): Reimplement.
2452 (CLASSTYPE_SIZE_UNIT): Likewise.
2453 (CLASSTYPE_ALIGN): Likweise.
2454 (CLASSTYPE_USER_ALIGN): Likewise.
2455 (CLASSTYPE_AS_BASE): New macro.
2456 (DECL_INITIALIZED_P): Likewise.
2457 (extract_init): Remove prototype.
2458 (build_forced_zero_init): Rename to ...
2459 (build_zero_init): ... this.
2460 (force_store_init_value): Remove.
2461 * decl.c (obscure_complex_init): Remove.
2462 (duplicate_decls): Copy DECL_INITIALIZED_P.
2463 (check_initializer): Do not leave junk in DECL_INITIAL.
2464 (cp_finish_decl): Handle zero-initialization of entities with
2465 static storage duration.
2466 * expr.c (extract_init): Remove.
2467 * init.c (build_forced_zero_init): Remove.
2468 (build_zero_init): New function.
2469 (build_default_init): Use it.
2470 (build_field_list): Skip FIELD_DECLs for base subobjects.
2471 (push_base_cleanups): Likewise.
2472 * method.c (do_build_assign_ref): Likewise.
2473 (synthesize_exception_spec): Likewise.
2474 * pt.c (tsubst_decl): Clear DECL_INITIALIZED_P.
2475 (regenerate_decl_from_template): To not set DECL_INITIAL for a
2476 static data member whose initialization took place in its class.
2477 (instantiate_decl): Do not pass an initializer to cp_finish_decl
2478 in that situation.
2479 * search.c (dfs_push_decls): Skip FIELD_DECLs for base subobjects.
2480 (dfs_unuse_fields): Likewise.
2481 * tree.c (pod_type_p): Handle error_mark_node.
2482 (zero_init_p): Likewise.
95f79357 2483 * typeck.c (lookup_anon_field): Skip FIELD_DECLs for base
17bbb839
MM
2484 subobjects.
2485 * typeck2.c (store_init_value): Remove #if 0'd code.
2486 (force_store_init_value): Remove.
2487 (process_init_constructor): Use build_zero_init.
95f79357 2488
03357c23
NS
24892002-09-29 Nathan Sidwell <nathan@codesourcery.com>
2490
2491 PR c++/7788
2492 * rtti.c (unemitted_tinfo_decl_p): Check it has a field.
2493
27631dae
KH
24942002-09-29 Kazu Hirata <kazu@cs.umass.edu>
2495
2496 * cp-tree.h: Fix comment typos.
2497 * decl.c: Likewise.
2498 * pt.c: Likewise.
2499
956d9305
MM
25002002-09-25 Mark Mitchell <mark@codesourcery.com>
2501
2502 * cp/class.c (contains_empty_class_p): New method.
2503 (walk_subobject_offsets): Correct computation of field offset.
2504 (layout_empty_base): Correct placement of emtpy base classes.
2505 (layout_class_type): Warn about ABI changes.
2506
2d3e278d
MM
25072002-09-23 Mark Mitchell <mark@codesourcery.com>
2508
2509 * cp/class.c (layout_virtual_bases): Do not round the size of the
2510 type to a multiple of the alignment before laying out virtual bases.
2511 (layout_class_type): Correct handling of bit-fields that are wider
2512 than their type inside unions. Round the size of the type to a
2513 even number of bytes when computing the size without virtual
2514 bases.
2515 * cp/cp-tree.h (abi_version_at_least): New macro.
95f79357 2516
838dfd8a
KH
25172002-09-21 Kazu Hirata <kazu@cs.umass.edu>
2518
2519 * ChangeLog: Follow spelling conventions.
2520 * ChangeLog.2: Likewise.
2521 * call.c: Likewise.
2522 * class.c: Likewise.
2523 * cp-tree.h: Likewise.
2524 * cvt.c: Likewise.
2525 * decl.c: Likewise.
2526 * decl2.c: Likewise.
2527 * except.c: Likewise.
2528 * friend.c: Likewise.
2529 * g++spec.c: Likewise.
2530 * init.c: Likewise.
2531 * lex.c: Likewise.
2532 * mangle.c: Likewise.
2533 * method.c: Likewise.
2534 * operators.def: Likewise.
2535 * optimize.c: Likewise.
2536 * pt.c: Likewise.
2537 * rtti.c: Likewise.
2538 * search.c: Likewise.
2539 * semantics.c: Likewise.
2540 * spew.c: Likewise.
2541 * tree.c: Likewise.
2542 * typeck.c: Likewise.
2543
9ced0328
DP
25442002-09-18 Devang Patel <dpatel@apple.com>
2545
2546 * cp/cp-tree.h: New prototype for walk_vtabls().
2547 * cp/decl.c (walk_vtables_r): New function.
2548 (struct cp_binding_level): Add new members, namespaces,
2549 names_size and vtables.
2550 (add_decl_to_level): Add decl in namespaces or vtables
2551 chain, if conditions match.
2552 (walk_vtables): New function.
2553 (walk_namespaces_r): Travers separate namespace chain
2554 for namespace decls.
2555 (wrapup_globals_for_namespace): Use names_size instead
2556 of list_length().
2557 * cp/decl2.c (finish_file): Use walk_vtables() instead of
2558 walk_globals() to walk vtable decls.
2559
dd29188b
NS
25602002-09-18 Nathan Sidwell <nathan@codesourcery.com>
2561
2562 * decl.c (grokdeclarator): Use assert, not internal_error. Don't
2563 ICE with invalid pointers & references.
2564
f989ed67
ZW
25652002-09-17 Zack Weinberg <zack@codesourcery.com>
2566
2567 * Make-lang.in: Remove all references to the demangler.
2568 * cxxfilt.c: Moved to binutils.
2569
171d2f50
NS
25702002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2571
3ec83083
NS
2572 PR c++/7718
2573 * pt.c (tsubst_decl): Remove assert.
2574
171d2f50
NS
2575 Remove DR 295 implementation.
2576 * pt.c (check_cv_quals_for_unify): Disable function & method cases.
2577 * tree.c (cp_build_qualified_type_real): Likewise. Don't warn
2578 about ignoring volatile qualifiers.
2579
2580 * search.c (lookup_member): Correct documentation.
2581
36a5eadd
GK
25822002-09-16 Geoffrey Keating <geoffk@apple.com>
2583
2584 * cp-tree.h (union lang_tree_node): Add chain_next option.
2585
28c56d25
NS
25862002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2587
7979434d
NS
2588 * parse.y (parse_finish_call_expr): Check lookup_member result.
2589
28c56d25
NS
2590 PR c++/7015
2591 * semantic.c (finish_asm_stmt): Fix operand/output_operands
2592 thinko.
2593 * typeck.c (c_expand_asm_operands): Protect from error_mark_node.
2594
3baab484
NS
25952002-09-15 Nathan Sidwell <nathan@codesourcery.com>
2596
2597 PR c++/7919
2598 * call.c (build_over_call): Convert this pointer for fns found by
2599 using decls.
2600
d30d6e7a
KH
26012002-09-15 Kazu Hirata <kazu@cs.umass.edu>
2602
2603 * ChangeLog: Follow spelling conventions.
2604 * ChangeLog.1: Likewise.
2605
c8460010
NS
26062002-09-14 Nathan Sidwell <nathan@codesourcery.com>
2607
2608 PR c++/7768
2609 * pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P.
2610
c6002625
KH
26112002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2612
2613 * error.c: Fix comment formatting.
2614 * except.c: Likewise.
2615 * expr.c: Likewise.
2616 * friend.c: Likewise.
2617 * g++spec.c: Likewise.
2618 * init.c: Likewise.
2619 * lex.c: Likewise.
2620 * mangle.c: Likewise.
2621 * method.c: Likewise.
2622 * optimize.c: Likewise.
2623 * pt.c: Likewise.
2624 * rtti.c: Likewise.
2625 * search.c: Likewise.
2626 * semantics.c: Likewise.
2627 * spew.c: Likewise.
2628 * tree.c: Likewise.
2629 * typeck.c: Likewise.
2630 * typeck2.c: Likewise.
2631
46dd3884
GDR
26322002-09-13 Matt Austern <austern@apple.com>
2633
4a7510cb 2634 PR C++/7828
46dd3884
GDR
2635 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
2636 * cp/call.c: Change call-by-const-reference mechanism to use
2637 non_cast_lvalue_p when deciding whether the create a temporary.
2638 We need a temporary when passing, e.g. (long) x by const ref.
2639
712467a4
NS
26402002-09-13 Nathan Sidwell <nathan@codesourcery.com>
2641
2642 * pt.c (unify, ARRAY_TYPE): Element type can be more qualified.
2643
a1c65f9f
KH
26442002-09-13 Kazu Hirata <kazu@cs.umass.edu>
2645
2646 * decl.c: Fix comment formatting.
2647 * decl2.c: Likewise.
2648
00a17e31
KH
26492002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2650
2651 * call.c: Fix comment formatting.
2652 * class.c: Likewise.
2653 * cp-lang.c: Likewise.
2654 * cp-tree.h: Likewise.
2655 * cvt.c: Likewise.
2656
3fd9d606
ZW
26572002-09-11 Zack Weinberg <zack@codesourcery.com>
2658
2659 * Make-lang.in: Build cp/cxxfilt.o from $(srcdir)/cp/cxxfilt.c,
2660 and c++filt from cxxfilt.o + version.o + $(LIBDEPS).
2661 * cxxfilt.c: New file: split from libiberty/cplus-dem.c, with
2662 minor adjustments (use version_string, eliminate yet another
2663 duplicate of xmalloc)
2664
2515a7ea
KG
26652002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2666
2667 * cp-tree.h (require_complete_eh_spec_types): Add prototype.
2668
5aa3396c
JM
26692002-09-05 Jason Merrill <jason@redhat.com>
2670
2671 * typeck2.c (add_exception_specifier): Only pedwarn for an
2672 incomplete type.
2673 (require_complete_eh_spec_types): New fn.
2674 (cxx_incomplete_type_diagnostic): Also support pedwarning.
2675 * typeck.c (complete_type_or_diagnostic): Likewise.
2676 * call.c (build_call): Call require_complete_eh_spec_types.
2677 * rtti.c (get_pseudo_ti_desc): Give an error rather than aborting
2678 on an incomplete type.
2679
23ccd1f3
JJ
26802002-09-04 Jakub Jelinek <jakub@redhat.com>
2681
2682 * decl.c (start_cleanup_fn): Clear interface_only before
2683 start_function, restore it afterwards.
2684
4977bab6
ZW
26852002-09-02 Nathan Sidwell <nathan@codesourcery.com>
2686
2687 * cp-tree.h (finish_builtin_type): Remove.
2688 * decl2.c (finish_builtin_type): Move to common code.
2689 * decl.c (build_ptrmemfunc_type): Adjust.
2690 * rtti.c (create_pseudo_type_info): Adjust.
2691 (create_tinfo_types): Adjust.
2692
d99f015c
JM
26932002-08-31 Jason Merrill <jason@redhat.com>
2694
2695 * cp-lang.c (cp_expr_size): Allow initialization from a
2696 CONSTRUCTOR.
2697
8a3c9180
RH
26982002-08-30 Richard Henderson <rth@redhat.com>
2699
c9989d09 2700 PR opt/7515
8a3c9180
RH
2701 * tree.c: Include target.h.
2702 (cp_cannot_inline_tree_fn): Don't auto-inline functions that
2703 don't bind locally.
2704 * Makefile.in (tree.o): Update.
2705
eca7f13c
MM
27062002-08-27 Mark Mitchell <mark@codesourcery.com>
2707
2708 * class.c (layout_virtual_bases): Warn about bugs in G++ that
2709 result in incorrect object layouts.
2710 (layout_class_type): Likewise.
f989ed67 2711
13d3f0b6
MA
27122002-08-24 Matt Austern <austern@apple.com>
2713
2714 * tree.c (lvalue_p_1): Add argument for whether casts of lvalues
2715 are allowable.
2716 (real_lvalue_p): Update caller.
2717 (lvalue_p): Ditto.
2718 (non_cast_lvalue_or_else): New.
2719 * tree.h: Declare it.
f989ed67 2720 * typeck.c (build_unary_op): Use non_cast_lvalue_or_else.
13d3f0b6 2721
5b770a96
MM
27222002-08-22 Mark Mitchell <mark@codesourcery.com>
2723
2724 * typeck.c (build_class_member_access_expr): Handle COMPOUND_EXPR
2725 and COND_EXPR specially; fix error message output.
2726
d65b1d77
JM
27272002-08-22 Jason Merrill <jason@redhat.com>
2728
2729 * pt.c (tsubst_expr): RETURN_EXPR is now RETURN_STMT_EXPR.
2730 * semantics.c (nullify_returns_r): Likewise.
2731
8a5f4379
GDR
27322002-08-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
2733
2734 Fix PR/7621
2735 * typeck.c (finish_class_member_access_expr): Diagnose cases where
2736 name lookup finds nothing.
2737
5d764395
JM
27382002-08-15 Jason Merrill <jason@redhat.com>
2739
2740 * semantics.c (finish_then_clause): Remove redundant assignment.
2741 (finish_if_stmt, begin_switch_stmt, finish_switch_stmt): Move the
2742 extra binding level outside the if/switch statement.
2743 (finish_while_cond, finish_for_cond): Rewrite complex condition
2744 into the loop body.
2745
c01b9ec8
AO
27462002-08-15 Alexandre Oliva <aoliva@redhat.com>
2747
2748 * parse.y (sizeof, alignof, typeof): New non-terminals to
2749 increment skip_evaluation. Replace terminals with them and
2750 decrement skip_evaluation at the end of rules using them.
2751 * decl2.c (mark_used): Don't assemble_external if
2752 skipping evaluation.
2753
e8fe46d4
GDR
27542002-08-15 Gabriel Dos Reis <gdr@nerim.net>
2755
2756 Fix PR/7504
2757 * parse.y (parse_finish_call_expr): Handle incomplete
2758 type used to name a scope.
2759
eac5ce6c
NS
27602002-08-15 Nathan Sidwell <nathan@codesourcery.com>
2761
2762 PR c++/7598
2763 * typeck.c (build_unary_op): Fold offsetof idiom. Fixes
2764 regression caused by my 2002-08-08 patch.
2765
22eadedb
MM
27662002-08-13 Mark Mitchell <mark@codesourcery.com>
2767
2768 * decl.c (pushdecl_class_level): Honor requests to bind names to
2769 OVERLOADs.
2770
e65e6212
KG
27712002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2772
2773 * decl2.c (build_call_from_tree): Fix uninitialized variable.
2774 * parse.y (parse_finish_call_expr): Likewise.
2775 * repo.c (old_args, old_dir, old_main): Const-ify.
2776
3e72ec9a
GDR
27772002-08-11 Gabriel Dos Reis <gdr@nerim.net>
2778
2779 * decl.c (duplicate_decls): Replace DECL_SOURCE_FILE +
2780 DECL_SOURCE_LINE with DECL_SOURCE_LOCATION.
2781 * optimize.c (maybe_clone_body): Likewise.
2782 * pt.c (tsubst_enum): Likewise.
2783 (lookup_template_class): Likewise.
2784 * tree.c (cp_copy_res_decl_for_inlining): Likewise.
2785
f749a36b
NB
27862002-08-10 Neil Booth <neil@daikokuya.co.uk>
2787
2788 * lang-specs.h: Remove -ansi.
2789
3ebf5204
NS
27902002-08-10 Nathan Sidwell <nathan@codesourcery.com>
2791
2792 * tree.c (maybe_dummy_object): Replace // with /* */
2793
9e259dd1
MM
27942002-08-09 Mark Mitchell <mark@codesourcery.com>
2795
2796 * call.c (standard_conversion): Use build_ptrmem_type.
2797 * cp-tree.h (build_ptrmem_type): New function.
2798 (adjust_result_of_qualified_name_lookup): Likewise.
2799 * decl.c (grokvardecl): Do not look for OFFSET_TYPEs to indicate
2800 static data members.
2801 (build_ptrmem_type): New function.
2802 (grokdeclarator): Do not use build_offset_type when encountering a
2803 qualified name.
2804 * parse.y (parse_finish_call_expr): Use
2805 adjust_result_of_qualified_name_lookup.
2806 * search.c (adjust_result_of_qualified_name_lookup): New function.
2807 * typeck.c (qualify_type_recursive): Use TYPE_PTRMEM_* rather than
2808 accessing OFFSET_TYPEs directly.
f989ed67 2809
0e339752
MS
28102002-08-08 Mike Stump <mrs@apple.com>
2811
2812 * call.c (add_builtin_candidate): legal -> valid, illegal -> invalid.
2813 (type_decays_to): Likewise.
2814 * class.c (find_final_overrider): Likewise.
2815 (maybe_note_name_used_in_class): Likewise.
2816 * decl.c (current_tmpl_spec_kind): Likewise.
2817 (add_binding): Likewise.
2818 (push_class_binding): Likewise.
2819 (duplicate_decls): Likewise.
2820 (layout_var_decl): Likewise.
2821 (grokfndecl): Likewise.
2822 (grokdeclarator): Likewise.
2823 (check_default_argument): Likewise.
2824 * decl2.c (handle_class_head): Likewise.
2825 * error.c (dump_template_decl): Likewise.
2826 * init.c (build_offset_ref): Likewise.
2827 * pt.c (check_specialization_scope): Likewise.
2828 (determine_specialization): Likewise.
2829 (check_explicit_specialization): Likewise.
2830 (maybe_check_template_type): Likewise.
2831 (process_partial_specialization): Likewise.
2832 (check_default_tmpl_args): Likewise.
2833 (push_template_decl_real): Likewise.
2834 (convert_template_argument): Likewise.
2835 (try_class_unification): Likewise.
2836 (get_bindings_real): Likewise.
2837 (do_decl_instantiation): Likewise.
2838 * semantics.c (begin_function_definition): Likewise.
2839 (finish_member_declaration): Likewise.
2840 (check_multiple_declarators): Likewise.
2841 * typeck.c (comp_array_types): Likewise.
2842 (comptypes): Likewise.
2843 (expr_sizeof): Likewise.
2844 (build_binary_op): Likewise.
2845 (dubious_conversion_warnings): Likewise.
2846 (check_return_expr): Likewise.
b6ce26ac 2847
a6f5b2d3
MM
28482002-08-08 Mark Mitchell <mark@codesourcery.com>
2849
2850 * typeck.c (build_class_member_access_expr): Do not return
2851 error_mark_node when no error has occurred.
b6ce26ac 2852
c93a26f5
NS
28532002-08-08 Nathan Sidwell <nathan@codesourcery.com>
2854
2855 * typeck.c (build_component_addr): Remove.
2856 (build_unary_op): Just check it's not a bitfield, and then build
2857 an ADDR_EXPR.
2858
5bfc90de
NS
28592002-08-08 Nathan Sidwell <nathan@codesourcery.com>
2860
2861 * class.c (convert_to_base): Correct check for error_mark_node.
2862 (create_vtable_ptr): Remove unused VFUNS_P parm.
2863
22aa533e
NS
28642002-08-08 Nathan Sidwell <nathan@codesourcery.com>
2865
2866 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
2867
50ad9642
MM
28682002-08-07 Mark Mitchell <mark@codesourcery.com>
2869
2870 Rework build_component_ref.
2871 * call.c (build_vfield_ref): Do not go through build_component_ref.
2872 (build_field_call): Use build_class_member_access_expr.
2873 (build_user_type_conversion_1): Use BASELINK_FUNCTIONS.
2874 (build_object_call): Likewise.
2875 * class.c (convert_to_base): New function.
2876 (type_requires_array_cookie): Use BASELINK_FUNCTIONS.
2877 (instantiate_type): Handle BASELINKs.
2878 * cp-tree.def (BASELINK): New tree code.
2879 * cp-tree.h (BASELINK_P): Reimplement.
2880 (SET_BASELINK_P): Remove.
2881 (BASELINK_BINFO): Reimplement.
2882 (BASELINK_FUNCTIONS): Likewise.
2883 (BASELINK_ACCESS_BINFO): Likewise.
2884 (BASELINK_OPTYPE): Likewise.
2885 (convert_to_base): New function.
2886 (name_p): Likewise.
2887 (build_object_ref): Remove.
2888 (build_component_ref_1): Likewise.
2889 (build_component_ref): Likewise.
2890 (build_x_component_ref): Likewise.
2891 (build_class_member_access_expr): New function.
2892 (finish_class_member_access_expr): Likewise.
2893 (build_ptrmemfunc_access_expr): Likewise.
2894 * decl.c (grokdeclarator): Handle BASELINKs.
2895 * decl2. (build_expr_from_tree): Handle COMPONENT_REFs by using
2896 finish_class_member_access_expr.
2897 (arg_assoc): Handle BASELINKs.
2898 (do_class_using_decl): Likewise.
2899 * error.c (dump_decl): Likewise.
2900 (dump_expr): Use build_ptrmemfunc_access_expr.
2901 * except.c (dtor_nothrow): Use CLASSTYPE_DESTRUCTORS to find
2902 destructors.
2903 (build_throw): Use BASELINK_FUNCTIONS.
2904 * init.c (perform_member_init): Use
2905 build_class_member_access_expr.
2906 (build_offset_ref): Handle BASELINKs. Use
2907 build_class_member_access_expr.
2908 * method.c (hack_identifier): Likewise.
2909 * parse.y (do_id): Use BASELINK, not TREE_LIST.
2910 (primary): Remove uses of build_object_ref.
2911 * pt.c (lookup_template_function): Handle BASELINKs.
2912 (resolve_overloaded_unification): Likewise.
2913 * search.c (build_baselink): Build a BASELINK, not a TREE_LIST.
2914 (lookup_field): Use BASELINK, not TREE_LIST.
2915 (lookup_fnfiels): Likewise.
2916 (setup_class_bindings): Likewise.
2917 * semantics.c (finish_object_call_expr): Do not use
2918 build_method_call when we already know what function is being
2919 called.
2920 * spew.c (identifier_type): Use BASELINK, not TREE_LIST.
2921 * tree.c (really_overloaded_fn): Use OVL_CHAIN for OVERLOADs, not
2922 TREE_CHAIN.
2923 (name_p): New function.
2924 * typeck.c (build_object_ref): Remove.
2925 (build_component_ref_1): Likewise.
2926 (build_x_component_ref): Likewise.
2927 (build_class_member_access_expr): New function.
2928 (finish_class_member_access_expr): Likewise.
2929 (build_ptrmemfunc_access_expr): Likewise.
2930 (get_member_function_from_ptrfunc): Use
2931 build_ptrmemfunc_access_expr.
2932 (build_binary_op): Likewise.
2933 (build_unary_op): Likewise.
2934 (build_ptrmemfunc): Likewise.
2935 (pfn_from_ptrmemfunc): Likewise.
2936 * typeck2.c (build_m_component_ref): Adjust comment.
b6ce26ac 2937
0b6f2917
NB
29382002-08-07 Neil Booth <neil@daikokuya.co.uk>
2939
2940 * Make-lang.in (CXX_C_OBJS): Update.
2941 * cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
2942 * cp-tree.h (cxx_decode_option): Remove.
2943 * decl2.c (compare_options, lang_f_options, unsupported_options,
2944 cxx_decode_option): Remove.
2945
1e14c7f0
GDR
29462002-08-06 Gabriel Dos Reis <gdr@nerim.net>
2947
2948 * typeck.c (build_x_unary_op): Handle pointer-to-member.
2949
b3426eb9
GK
29502002-08-05 Geoffrey Keating <geoffk@redhat.com>
2951
2952 * class.c: Don't include obstack.h.
b6ce26ac 2953 (popclass):
b3426eb9
GK
2954 * decl2.c: Delete bogus comment.
2955 * error.c: Don't include obstack.h.
2956 * except.c: Likewise.
2957 (dump_type): Correct comment.
2958 * method.c: Don't include obstack.h.
2959 * tree.c: Likewise.
2960
201fbb7f
GDR
29612002-08-04 Gabriel Dos Reis <gdr@nerim.net>
2962
2963 Fix PR/2213
2964 * cvt.c (cp_convert_to_pointer): Reject conversions from integral
2965 expressions to pointer-to-data-member of pointer-to-member-functions.
2966
6d9f628e
GK
29672002-08-04 Geoffrey Keating <geoffk@redhat.com>
2968
2969 * cvt.c (ocp_convert): Delete obsolete code.
2970 * parse.y (permanent_obstack): Delete declaration.
2971 * pt.c (permanent_obstack): Delete declaration.
2972 * repo.c (permanent_obstack): Delete declaration.
2973 (open_repo_file): Use xmalloc instead of permanent_obstack.
2974 (init_repo): Use xstrdup instead of permanent_obstack.
2975
dd98e14f
NS
29762002-08-04 Nathan Sidwell <nathan@codesourcery.com>
2977
2978 * cp-tree.h (VF_DERIVED_VALUE): Remove.
2979 * class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE.
2980
e6858a84
NS
29812002-08-03 Nathan Sidwell <nathan@codesourcery.com>
2982
2983 PR 7470.
2984 C++ ABI change - vfunc ordering.
2985 * class.c (add_virtual_function): Remove.
2986 (dfs_modify_all_vtables): Take list of all declared
2987 virtuals. Assign all that are not in primary base.
2988 (check_for_override): Adjust comments.
2989 (create_vtable_ptr): Take single list of virtuals. Build chain
2990 of declared virtuals here.
2991 (layout_class_type): Take single list of virtuals. Adjust.
2992 (finish_struct_1): Keep virtuals on single list. Adjust.
2993
55765de4
MM
29942002-08-02 Mark Mitchell <mark@codesourcery.com>
2995
2996 * init.c (build_member_call): Use build_new_method_call, not
2997 build_method_call.
2998
d0067571
KW
29992002-08-02 Krister Walfridsson <cato@df.lth.se>
3000
3001 * Make-lang.in (spew.o, lex.o, pt.o): Add path to parse.h dependencies.
3002
4a34e0e8
MM
30032002-08-02 Mark Mitchell <mark@codesourcery.com>
3004
3005 * call.c (build_method_call): Issue a more helpful error message
3006 about ambiguous method names.
3007
41ab2ae2
NS
30082002-08-02 Nathan Sidwell <nathan@codesourcery.com>
3009
3010 * tree.c (build_shared_int_cst): Make cache file scope, and
3011 GTY it.
3012
367aa585
JM
30132002-08-02 Jason Merrill <jason@redhat.com>
3014
a77a9a18
JM
3015 * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
3016 (cp_expr_size): New fn.
3017 * call.c (build_over_call): Lose empty class hackery.
3018 (convert_arg_to_ellipsis): Promote non-POD warning to error.
3019 * typeck.c (build_modify_expr): Don't use save_expr on an lvalue.
3020
367aa585
JM
3021 * semantics.c (expand_body): Do tree optimization in the function
3022 context, too.
3023
4078b403
NB
30242002-08-01 Neil Booth <neil@daikokuya.co.uk>
3025
3026 * cp-tree.h: Move all warning and flag declarations to c-common.h.
3027 * decl.c: Move all warning and flag variables to c-common.c.
3028 * decl2.c: Move all warning and flag variables to c-common.c.
3029 * lex.c (flag_digraphs): Remove.
3030 (warn_traditional): Now in c-common.c.
3031
4ba126e4
MM
30322002-07-31 Mark Mitchell <mark@codesourcery.com>
3033
3034 * call.c (build_field_call): Do not look up the field by name.
3035 (build_method_call): Simplify.
3036 (struct z_candidate): Add access_path and conversion_path. Remove
3037 basetype_path.
3038 (convert_class_to_reference): Adjust use of
3039 add_function_candidate.
3040 (add_candidate): Add conversion_path argument.
3041 (add_function_candidate): Use it.
3042 (add_conv_dndidate): Likewise.
3043 (build_builtin_candidate): Likewise.
3044 (add_template_candidate_real): Add conversion_path argument.
3045 (add_template_conv_candidate): Likewise.
3046 (add_template_candidate): Likewise.
3047 (build_user_type_conversion_1): Use it.
3048 (build_new_function_call): Remove name lookup code. Adjust use of
3049 add_template_candidate and add_function_candidate.
3050 (build_new_op): Likewise.
3051 (convert_like_real): Use build_special_member_call.
3052 (build_over_call): Use cand->conversion_path.
3053 (build_special_member_call): New method.
3054 (build_new_method_call): Remove name lookup code.
3055 * cp-tree.def (OFFSET_REF): Update documentation.
3056 (TEMPLATE_ID_EXPR): Likewise.
3057 * cp-tree.h (BASELINK_ACCESS_BINFO): New macro.
3058 (BASELINK_OPTYPE): Likewise.
3059 (build_new_method_call): Adjust prototype.
3060 (build_special_member_call): New method.
3061 (build_baselink): New method.
3062 (build_offset_ref_call_from_tree): Likewise.
3063 (build_call_from_tree): Likewise.
3064 (finish_qualified_call_expr): Remove.
3065 (finish_call_expr): Adjust prototype.
3066 (build_x_function_call): Remove.
3067 * cvt.c (ocp_convert): Use build_special_member_call.
3068 * decl2.c (reparse_absdcl_as_expr): Use finish_call_expr.
3069 (build_expr_from_tree): Adjust handling for TEMPLATE_ID_EXPR and
3070 CALL_EXPR.
3071 (build_offset_ref_call_from_tree): New function.
3072 (build_call_from_tree): Likewise.
3073 * init.c (expand_cleanup): Use build_special_member_call.
3074 (expand_default_init): Likewise.
3075 (build_member_call): Use finish_call_expr.
3076 (build_new_1): Use build_special_member_call.
3077 (push_base_cleanups): Likewise.
3078 * method.c (do_build_assign_ref): Likewise.
3079 * parse.y (template_id): Do not pass a COMPONENT_REF to
3080 lookup_template_function.
3081 (primary): Use parse_finish_call_epxr, not finish_call_expr.
3082 (parse_finish_call_expr): New function.
3083 * pt.c (lookup_template_function): Add assertions.
3084 * search.c (lookup_base): Allow T to be a binfo.
3085 (build_baselink): New function.
3086 (lookup_member): Use it.
3087 * semantics.c (finish_call_expr): Do not do name lookup.
3088 (finish_object_call_expr): Remove #if 0'd code.
3089 (finish_qualified_call_expr): Remove.
3090 * typeck.c (build_x_function_call): Remove.
3091 (build_static_case): Use build_special_member_call.
3092 * typeck2.c (build_functional_cast): Likewise.
b6ce26ac 3093
60b8aa94
FS
30942002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3095
3096 * lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c.
3097
8a4a7242
GDR
30982002-07-30 Gabriel Dos Reis <gdr@nerim.net>
3099
3100 * cp-tree.h (VF_DERIVED_VALUE): Restore from previous deletion.
3101
03fc215c
NS
31022002-07-30 Nathan Sidwell <nathan@codesourcery.com>
3103
3104 * cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more
3105 documentation.
3106
3f16a8f3
AM
31072002-07-29 Alan Modra <amodra@bigpond.net.au>
3108
3109 * cp-tree.h: Comment typo fix.
3110
c03d566f
RE
31112002-07-29 Richard Earnshaw <rearnsha@arm.com>
3112
3113 * spew.c (space_for_token): Allocate zeroed memory for a new token
3114 chunk.
3115
c2ef6d34
RS
31162002-07-27 Roger Sayle <roger@eyesopen.com>
3117
3118 * decl.c (builtin_function_1): No need to explicitly mark
3119 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
3120
a3926fe1
RS
31212002-07-27 Roger Sayle <roger@eyesopen.com>
3122
3123 * decl2.c (cxx_decode_option): Support -fno-builtin-foo.
3124
8e51619a
JM
31252002-07-26 Jason Merrill <jason@redhat.com>
3126
3127 * call.c (build_over_call): Likewise.
3128 (cp_convert_parm_for_inlining): New fn.
f989ed67
ZW
3129 (convert_for_arg_passing): New fn.
3130 (convert_default_arg, build_over_call): Use it.
8e51619a
JM
3131 (type_passed_as): New fn.
3132 * pt.c (tsubst_decl): Use it.
3133 * decl2.c (cp_build_parm_decl): New fn.
3134 (build_artificial_parm): Use it.
3135 (start_static_storage_duration_function): Likewise.
3136 * decl.c (start_cleanup_fn, grokdeclarater): Likewise.
3137 (grokparms): Don't mess with DECL_ARG_TYPE.
3138 * typeck.c (convert_arguments): Use convert_for_arg_passing.
3139 * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3140 Define.
3141 * cp-tree.h: Declare new fns.
b6ce26ac 3142
c372b0fa
NB
31432002-07-26 Neil Booth <neil@daikokuya.co.uk>
3144
3145 * cp-tree.h (flag_operator_names): Remove.
3146 * decl2.c (flag_operator_names): Remove.
3147 (lang_f_options): Remove operator-names.
3148 * lex.c (D_OPNAME): Remove.
3149 (reswords): Remove operator names.
3150 (rid_to_yy): Remove operator names.
3151 (init_reswords): No need to handle D_OPNAME.
3152 * spew.c (read_process_identifier): There are no operator
3153 names.
3154
558ee214
JM
31552002-07-26 Jason Merrill <jason@redhat.com>
3156
3157 * dump.c (cp_dump_tree): Call c_dump_tree.
3158 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
3159
81a1552d
NB
31602002-07-25 Neil Booth <neil@daikokuya.co.uk>
3161
3162 * error.c (print_whitespace): Remove.
3163 * g++spec.c (LIBUNWIND): Move.
3164 * mangle.c (mangled_position, write_signed_number): Remove.
3165
cad2c6b6
NB
31662002-07-25 Neil Booth <neil@daikokuya.co.uk>
3167
3168 * decl2.c (cxx_decode_option): Similarly.
3169
ea793912
GDR
31702002-07-25 Gabriel Dos Reis <gdr@nerim.net>
3171
3172 * cp-tree.h (cxx_sizeof_nowarn): Now a macro.
3173 (cxx_sizeof_or_alignof_type): Take a third argument.
3174 (cxx_sizeof): Adjust definition.
3175 (cxx_alignof): Likewise.
3176 * init.c (build_delete): Use cxx_sizeof_nowarn to reflect reality.
3177 * typeck.c (cxx_sizeof_or_alignof_type): Take a third argument for
3178 complaining.
3179 (c_sizeof_nowarn): Remove definition.
3180 (build_unary_op): Use cxx_sizeof_nowarn.
3181
3cfab7ec
GK
31822002-07-24 Geoffrey Keating <geoffk@redhat.com>
3183
3184 * tree.c (cp_build_qualified_type_real): When copying
3185 pointer-to-method types, unshare the record that holds
3186 the cached pointer-to-member-function type.
3187
c0667597
NB
31882002-07-23 Neil Booth <neil@daikokuya.co.uk>
3189
3190 * cp-tree.h (FILE_FUNCTION_PREFIX_LEN): Remove.
3191
fa72b064
GDR
31922002-07-23 Gabriel Dos Reis <gdr@nerim.net>
3193
3194 Fix PR/7363:
3195 * typeck.c (cxx_sizeof_or_alignof_type): New function.
3196 (c_sizeof): Remove definition.
3197 (expr_sizeof): Use cxx_sizeof.
3198 * decl2.c (build_expr_from_tree): Use cxx_sizeof_or_alignof_type.
3199 * decl.c (finish_destructor_body): Use cxx_sizeof.
3200 * semantics.c (finish_alignof): Likewise.
3201 (finish_alignof): Use cxx_alignof.
3202 * cp-tree.h (cxx_sizeof, cxx_alignof): New macros.
3203 (cxx_sizeof_or_alignof_type): Declare.
3204 (my_friendly_assert): Move to ../c-common.h.
3205
4fa31c2a
NB
32062002-07-23 Neil Booth <neil@daikokuya.co.uk>
3207
3208 * class.c, method.c, pt.c, search.c: Don't define obstack macros.
3209
0e902d98
KL
32102002-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3211
3212 PR c++/7347, c++/7348
3213 * cp-tree.h (tsubst_flags_t): Add tf_parsing.
3214 * decl.c (make_typename_type): Use it.
3215 (make_unbound_class_template): Likewise.
3216 (lookup_name_real): Don't call type_access_control if scope is
3217 template parameter dependent.
3218 * parse.y (template_arg): Call make_unbound_class_template with
3219 tf_parsing set.
3220 (nest_name_specifier): Call make_typename_type with tf_parsing set.
3221 (typename_sub0): Likewise.
3222 (typename_sub1): Likewise.
3223 (instantiate_decl): Push class scope.
3224 * pt.c (regenerate_decl_from_template): Call pushclass and popclass
3225 for both static variable and member function template.
3226 (instantiate_decl) Call pushclass and popclass when tsubst'ing type
3227 and arguments.
3228 * search.c (type_access_control): Do type access for TEMPLATE_DECL
3229 too.
3230
b886c620
RS
32312002-07-20 Roger Sayle <roger@eyesopen.com>
3232
3233 * decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
3234 test by using positive_option. Make whitespace consistent.
3235
7a561142
GDR
32362002-07-20 Gabriel Dos Reis <gdr@nerim.net>
3237
fa72b064 3238 * spew.c (struct unparsed_test): Replace 'filename' and 'lineno'
7a561142
GDR
3239 members with 'locus'. Adjust use throughout.
3240 (struct feed): Likewise.
3241 (alloc_unparsed_test): Change prototype, take a 'const location_t *'.
3242 Adjust use.
3243 (snarf_defarg): Use error(), not error_with_file_and_line().
3244
059ba716
CD
32452002-07-19 Chris Demetriou <cgd@broadcom.com>
3246
3247 * lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever
3248 cpp_options is included.
3249
d955f6ea
KL
32502002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3251
3252 PR c++/2862, c++/2863
3253 * pt.c (determine_specialization): Compare the length of
3254 TYPE_ARG_TYPES. Tidy.
3255
d03d18e8
KL
32562002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3257
3258 PR c++/3797
3259 * decl.c (duplicate_decls): Don't propagate inlining parameters from
b6ce26ac 3260 olddecl to newdecl when newdecl is a specialization of the
d03d18e8
KL
3261 instantiation olddecl.
3262
ba59df78
KL
32632002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3264
3265 PR c++/4802, c++/5387
3266 * decl.c (make_typename_type): Use enforce_access.
3267
58f05188
SS
32682002-07-17 Scott Snyder <snyder@fnal.gov>
3269
3270 PR c++/7320
3271 * rtti.c (get_tinfo_decl): Set DECL_COMDAT.
3272
04ec0065
MM
32732002-07-12 Mark Mitchell <mark@codesourcery.com>
3274
3275 * class.c (add_method): Correct handling of conversion operators.
3276
f0ab6bf2
MM
32772002-07-11 Mark Mitchell <mark@codesourcery.com>
3278
3279 PR c++/7224
3280 * class.c (add_method): Simplify.
3281
34902e16
JM
32822002-07-11 Jason Merrill <jason@redhat.com>
3283
3284 PR c++/7279
3285 * tree.c (cp_copy_res_decl_for_inlining): Also copy
3286 TREE_ADDRESSABLE.
3287
6e04241f
GS
32882002-07-10 Graham Stott <graham.stott@btinternet.com>
3289
3290 * pt.c (template_parm_this_level_p, push_template_decl_real):
b6ce26ac 3291 Pass depth as int pointer.
6e04241f 3292
8ac9d31f
TJ
32932002-07-11 Tim Josling <tej@melbpc.org.au>
3294
b6ce26ac 3295 Remove front end hard coding from gengtype.c.
8ac9d31f
TJ
3296
3297 * config-lang.in (gtfiles): Add files needed for this front end.
3298
15c7fb9c
MM
32992002-07-10 Mark Mitchell <mark@codesourcery.com>
3300
3301 * cp-tree.h (unqualified_name_lookup_error): Declare it.
3302 (begin_function_definition): Adjust prototype.
3303 * lex.c (unqualified_name_lookup_error): New function, split out
3304 from ...
3305 (do_identifier): ... here.
3306 * parse.y (parse_begin_function_definition): New function.
3307 (fn.def1): Use it.
3308 * semantics.c (begin_function_definition): Accept decl-specifiers
3309 and attributes as separate parameters.
3310
abf92e26
JM
33112002-07-10 Jason Merrill <jason@redhat.com>
3312
3313 PR c++/6255
3314 * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
3315 modifying the old one.
3316
8ba658ee
MM
33172002-07-09 Mark Mitchell <mark@codesourcery.com>
3318
3319 * cp-tree.h (constructor_name_p): Declare it.
3320 (check_template_template_default_arg): Likewise.
3321 * class.c (handle_using_decl): Use constructor_name_p.
3322 * decl.c (grokdeclarator): Likewise.
3323 * decl2.c (constructor_name_p): Define it.
3324 * init.c (build_member_call): Use constructor_name_p.
3325 * parse.y (template_parm): Use check_template_template_default_arg.
3326 * pt.c (check_explicit_specialization): Use constructor_name_p.
3327 * semantics.c (check_template_template_default_arg): New function.
b6ce26ac 3328
d5372501
KL
33292002-07-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3330
3331 * pt.c (can_complete_type_without_circularity): Add static to
3332 function definition.
3333
594bb0e7
MM
33342002-07-08 Mark Mitchell <mark@codesourcery.com>
3335
3336 * cp-tree.h (have_extern_spec): Declare it
3337 * decl.c (have_extern_spec): Define it.
3338 (start_decl): Eliminate use of used_extern_spec.
3339 (start_function): Likewise.
3340 * parse.y (have_extern_spec): Remove declaration.
3341 (used_extern_spec): Likewise.
3342 (frob_specs): Eliminate use of used_extern_spec.
3343 (.hush_warning): Likewise.
3344
eb8845be
MM
33452002-07-07 Mark Mitchell <mark@codesourcery.com>
3346
3347 * Make-lang.in (cp/parse.o): Depend on decl.h.
3348 * cp-tree.h (do_decl_instantiation): Change prototype.
3349 * parse.y: Include decl.h.
3350 (parse_decl_instantiation): New function.
3351 (explicit_instantiation): Use it.
3352 * pt.c (do_decl_instantiation): Accept a DECL, not a DECLARATOR
3353 and DECLSPECS.
b6ce26ac 3354
78abea27
RS
33552002-07-07 Roger Sayle <roger@eyesopen.com>
3356
3357 * error.c (dump_function_name): Use DECL_TEMPLATE_RESULT for
3358 constructor and destructor tests when passed a TEMPLATE_DECL.
3359
98c07d7b
JM
33602002-07-05 Jason Merrill <jason@redhat.com>
3361
212e17fd
JM
3362 * cvt.c (cp_convert_to_pointer): Call force_fit_type for null
3363 pointers.
3364
98c07d7b
JM
3365 PR optimization/7145
3366 * tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
3367
c6f553d1
NS
33682002-07-05 Nathan Sidwell <nathan@codesourcery.com>
3369
3370 Repair damage on weak-impared targets caused by my previous patch.
3371 * cp-tree.h (import_export_tinfo): Add parameter.
3372 * decl2.c (import_export_tinfo): Add parameter, post adjust
3373 DECL_COMDAT.
3374 * rtti.c (emit_tinfo_decl): DECL_COMDAT is (nearly) always setup by
3375 import_export_tinfo.
3376
b2153b98
KL
33772002-07-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3378
3379 PR c++/6944
3380 * init.c (build_aggr_init): Remove qualifiers of init before calling
3381 build_vec_init.
3382 (build_vec_init): Flatten multi-dimensional array during cleanup.
3383 (build_vec_delete_1): Abort if the type of each element is array.
3384
492ff760
GS
33852002-07-03 Graham Stott <graham.stott@btinternet.com>
3386
3387 * pt.c (instantiate_class_template): Fix typo.
3388
04c4491d
KL
33892002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3390
06728f70
KL
3391 * typeck2.c (cxx_incomplete_type_diagnostic): Fix typo caused
3392 by CVS conflict in my last patch.
04c4491d 3393
17f29637
KL
33942002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3395
3396 PR c++/6716
3397 * pt.c (can_complete_type_without_circularity): New function.
3398 (instantiate_class_template): Use it.
06728f70
KL
3399 * typeck2.c (cxx_incomplete_type_diagnostic): Improve error
3400 message due to incomplete fields.
17f29637 3401
5d69ba1f
MM
34022002-07-01 Mark Mitchell <mark@codesourcery.com>
3403
3404 PR c++/7112
3405 * mangle.c (write_expression): Add mangling for sizeof when
3406 applied to a type.
3407 * operators.def: Remove stale comment.
3408
d689a8f1
NS
34092002-06-30 Nathan Sidwell <nathan@codesourcery.com>
3410
3411 * cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
3412 (CPTI_TYPE_INFO_PTR_TYPE): ... this.
3413 (tinfo_decl_type): Replace with ...
3414 (type_info_ptr_type): ... this.
3415 (import_export_tinfo): Declare.
3416 (tinfo_decl_p): Rename to ...
3417 (unemitted_tinfo_decl_p): ... this.
3418 * decl2.c (import_export_decl): Break out tinfo handling into ...
3419 (import_export_tinfo): ... here. New function.
3420 (finish_file): Adjust.
3421 * rtti.c (TINFO_REAL_NAME): New macro.
3422 (init_rtti_processing): Create the tinfo types.
3423 (get_tinfo_decl_dynamic): Use type_info_ptr_type, get_tinfo_ptr.
3424 (get_tinfo_decl): Adjust.
3425 (get_tinfo_ptr): New function.
3426 (get_type_id): Use it.
3427 (tinfo_base_init): Create vtable decl here, if it doesn't exist.
3428 (ptr_initializer): Use get_tinfo_ptr.
3429 (ptm_initializer): Likewise.
3430 (synthesize_tinfo_var): Break into ...
3431 (get_pseudo_ti_init): ... this. Just create the initializer.
3432 (get_pseudo_ti_desc): .. and this.
3433 (create_real_tinfo_var): Remove.
3434 (create_pseudo_type_info): Don't create the vtable decl here.
3435 (get_vmi_pseudo_type_info): Remove.
3436 (create_tinfo_types): Adjust.
3437 (tinfo_decl_p): Rename to ...
3438 (unemitted_tinfo_decl_p): ... here. Adjust.
3439 (emit_tinfo_decl): Adjust. Create the initializer.
3440
5ce49b4b
MM
34412002-06-27 Mark Mitchell <mark@codesourcery.com>
3442
3443 PR c++/6695
3444 * pt.c (tsubst_friend_class): Substitute into the context of the
3445 friend before using it.
3446
88e5899c
MM
34472002-06-26 Mark Mitchell <mark@codesourcery.com>
3448
3449 * cp-tree.h (xref_tag): Change prototype.
3450 (handle_class_head): Likewise.
3451 (build_x_component_ref): Likewise.
3452 * decl.c (cxx_init_decl_processing): Adjust call to xref_tag.
3453 (xref_tag): Take attributes as a separate parameter.
3454 (xref_tag_from_type): Adjust call to xref_tag.
3455 * decl2.c (build_expr_from_tree): Adjust call to
3456 build_x_component_ref.
3457 (handle_class_head): Take attributes as a separate parameter.
3458 * parse.y (parse_xref_tag): New function.
3459 (parse_handle_class_head): Likewise.
3460 (primary): Use parse_xref_tag.
3461 (class_head_decl): Use parse_handle_class_head.
3462 (class_head_defn): Likewise.
3463 * rtti.c (init_rtti_processing): Adjust call to xref_tag.
3464 (build_dynamic_cast_1): Likewise.
3465 (create_pseudo_type_info): Likewise.
3466 (emit_support_tinfos): Likewise.
3467 * typeck.c (build_object_ref): Adjust call to
3468 build_x_component_ref.
3469 (build_x_component_ref): Remove protect parameter.
b6ce26ac 3470
da15dae6
MM
34712002-06-25 Mark Mitchell <mark@codesourcery.com>
3472
3473 * call.c (build_op_delete_call): Use BASELINK_FUNCTIONS.
3474 * class.c (handle_using_decl): Likewise.
3475 (instantiate_type): Likewise.
3476 * cp-tree.h (BASELINK_FUNCTIONS): New macro.
3477 (xref_basetypes): Change prototype.
3478 (begin_mem_initializers): New function.
3479 (get_overloaded_fn): Likewise.
3480 * decl.c (xref_basetypes): Simplify.
3481 * error.c (dump_expr): Use BASELINK_FUNCTIONS.
3482 * init.c (build_offset_ref): Likewise.
3483 * parse.y (base_init): Use begin_mem_initializers().
3484 (structsp): Adjust call to xref_basetypes.
3485 * pt.c (determine_specialization): Use BASELINK_FUNCTIONS.
3486 (instantiate_class_template): Adjust call to xref_basetypes.
3487 * semantics.c (begin_mem_initializers): New function.
3488 * tree.c (is_overloaded_fn): Use BASELINK_FUNCTIONS.
3489 (really_overlaoded_fn): Likewise.
3490 (get_overloaded_fn): New function.'
3491 (get_first_fn): USe BASELINK_FUNCTIONS.
b6ce26ac 3492
5f261ba9
MM
34932002-06-24 Mark Mitchell <mark@codesourcery.com>
3494
3495 * cp-tree.h (SCALAR_TYPE_P): New macro.
3496 (check_for_out_of_scope_variable): New function.
3497 (at_class_scope_p): Likewise.
3498 (finish_fname): Likewise.
3499 * class.c (finish_struct): Use at_function_scope_p.
3500 * decl.c (check_for_out_of_scope_variable): New function, split
3501 out from do_identifier.
3502 (finish_enum): Use at_function_scope_p.
3503 * lex.c (do_identifier): Use check_for_out_of_scope_variable.
3504 * parse.y (VAR_FUNC_NAME): Give it <ttype>. Use finish_fname.
3505 (primary): Use at_function_scope_p.
3506 * search.c (at_class_scope_p): New function.
3507 * semantics.c (finish_fname): Likewise.
3508 (check_multiple_declarators): Use at_function_scope_p.
b6ce26ac 3509
80b1331c
MM
35102002-06-23 Mark Mitchell <mark@codesourcery.com>
3511
3512 * parse.y (parse_scoped_id): New function.
3513 (primary): Use it.
3514 * cp-tree.h (do_scoped_id): Adjust declaration.
3515 * lex.c (do_scoped_id): Remove call to yylex.
3516 * decl2.c (build_expr_from_tree): Adjust use of do_scoped_id.
3517 * typeck2.c (add_exception_specifier): Use tree_cons, rather than
3518 expanding it inline.
b6ce26ac 3519
08c7ae5a
MT
35202002-06-23 Matt Thomas <matt@3am-software.com>
3521
3522 * decl.c (finish_function): Change "#ifdef VMS_TARGET" to
3523 "#if VMS_TARGET".
3524
eb6b51b9
KG
35252002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3526
3527 * mangle.c (integer_type_codes): Const-ify.
3528
aa8dea09
RH
35292002-06-20 Richard Henderson <rth@redhat.com>
3530
3531 PR c++/6747
f989ed67
ZW
3532 * typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
3533 Call put_var_into_stack.
aa8dea09 3534
62c71f4b
KG
35352002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3536
3537 * spew.c (remove_last_token): Use ARRAY_SIZE in lieu of explicit
3538 array size calculation.
3539
aa16c0fa
KL
35402002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3541
3542 PR c++/6892
3543 * pt.c (tsubst_expr): Handle FILE_STMT.
3544
342cea95
KL
35452002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3546
3547 PR c++/6723
3548 * pt.c (lookup_template_class): Don't build complete argument of
3549 BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
3550 argument.
3551
84d901be
AD
35522002-06-19 Akim Demaille <akim@epita.fr>
3553
3554 * parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
3555 decl.h's TYPENAME.
3556 * spew.c, lex.c: Adjust.
3557 * parse.y (explicit_instantiation): Add empty action to override
3558 the default $$ = $1 where it introduces a type clash.
3559
83b14b88
JM
35602002-06-14 Jason Merrill <jason@redhat.com>
3561
18ba380b
JM
3562 * semantics.c (begin_for_stmt): Push the 'for' scope before
3563 adding the FOR_STMT.
3564
83b14b88
JM
3565 C++ ABI changes.
3566 * class.c (build_base_field): Set DECL_PACKED.
3567 (layout_class_type): Don't use tail padding of PODs.
3568 * mangle.c (write_unqualified_name): Fix template conversion op
3569 mangling.
3570
fd852454
RH
35712002-06-16 Richard Henderson <rth@redhat.com>
3572
3573 PR opt/6793
3574 * tree.c (cp_cannot_inline_tree_fn): Don't short-circuit test
3575 after template instantiation.
3576
750491fc
RH
35772002-06-16 Richard Henderson <rth@redhat.com>
3578
3579 * cp-tree.h, decl2.c (flag_ms_extensions): Move to c-common.
3580
f7d3c5f0
GDR
35812002-06-15 Gabriel Dos Reis <gdr@codesourcery.com>
3582
3583 * cp-tree.h (compiler_error): Remove declaration.
3584 * lex.c (compiler_error): Remove definition.
3585
893a047c
SE
35862002-06-14 Steve Ellcey <sje@cup.hp.com>
3587
3588 * g++spec.c (LIBUNWIND): New.
3589 (lang_specific_driver): Add it if USE_UNWIND_EXCEPTIONS is set.
3590
a6f5e048
RH
35912002-06-13 Jessica Han <jessica@cup.hp.com>
3592
3593 * class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN.
3594 (build_vtbl_initializer): Honor TARGET_VTABLE_DATA_ENTRY_DISTANCE.
3595 (build_vbase_offset_vtbl_entries): Likewise.
3596 * rtti.c (build_headof): Likewise.
3597 (get_tinfo_decl_dynamic): Likewise.
3598 (create_pseudo_type_info): Likewise.
3599
e4dadd2a
SS
36002002-06-12 Stan Shebs <shebs@apple.com>
3601
3602 * mpw-config.in: Remove file, no longer used.
3603 * mpw-make.sed: Ditto.
3604
09e77dee
ZW
36052002-06-07 Zack Weinberg <zack@codesourcery.com>
3606
3607 * decl2.c: Update call to cpp_handle_option.
3608
4bafaa6f
L
36092002-06-07 H.J. Lu (hjl@gnu.org)
3610
3611 * decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.
3612
3cb8660c
GDR
36132002-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
3614
3615 * error.c (cp_error_at): Fix typo.
3616
47b69537
GDR
36172002-06-04 Gabriel Dos Reis <gdr@codesourcery.com>
3618
3619 * error.c (cp_diagnostic_starter): Adjust call.
3620 (maybe_print_instantiation_context): Change prototype to take a
3621 'diagnostic_info *'.
3622 (print_instantiation_full_context): Likewise.
3623 (print_instantiation_partial_context): Likewise.
3624 (cp_diagnostic_starter): Likewise.
3625 (cp_diagnostic_finalizer): Likewise.
3626 (cp_print_error_function): Likewise.
3627 (cp_printer): Take a secondary parameter as a 'text_info *'.
3628 Remove output_state savings. Adjust calls.
3629
e2500fed
GK
36302002-06-03 Geoffrey Keating <geoffk@redhat.com>
3631
3632 * pt.c (inline_parm_levels): Mark for GC.
3633
3634 * mangle.c (start_mangling): Allocate G.substitutions here...
3635 (init_mangle): ... rather than here.
3636 (finish_mangling): Clear the varray pointer when done with it.
84d901be
AD
3637 * spew.c (yylexstring): Don't use VARRAY_FREE.
3638 * search.c (bfs_walk): Don't use VARRAY_FREE.
e2500fed
GK
3639 * decl2.c (pending_statics): Use gengtype to mark.
3640 (deferred_fns): Likewise.
3641 (ssdf_decls): Likewise.
3642 (init_decl2): Delete.
3643 * decl.c (pop_from_top_level): Don't use VARRAY_FREE.
3644 (cxx_init_decl_processing): Don't call init_decl2.
3645 (cxx_pop_function_context): Don't use VARRAY_FREE.
3646 * cp-tree.h (struct saved_scope): No need for special marking
3647 of varrays.
3648 (struct language_function): Likewise.
3649 (local_classes): Use gengtype to mark.
3650 (init_decl2): Delete prototype.
3651 * class.c (init_class_processing): Don't use
3652 ggc_add_tree_varray_root.
3653 (build_vtbl_initializer): Don't use VARRAY_FREE.
3654
3655 * decl.c (typename_compare): Don't use same_type_p.
3656
3657 * decl.c: Include hashtab.h instead of hash.h.
3658 (typename_hash): Update to use htab_h.
3659 (typename_compare): Likewise.
3660 (typename_htab): Use gengtype to mark.
3661 (build_typename_type): Update to use htab_h.
3662 * Make-lang.in (cp/decl.o): Use HASHTAB_H instead of hash.h.
3663
3664 * Make-lang.in (gt-cp-tree.h): New rule.
3665 (cp/tree.o): Depend on gt-cp-tree.h.
3666 * config-lang.in (gtfiles): Add cp/tree.c.
3667 * tree.c: Include gt-cp-tree.h.
3668 (list_hash_table): Use gengtype to mark.
3669 (init_tree): Use gengtype to mark trees.
3670
3671 * Make-lang.in (cp/decl.o): Add debug.h dependency.
3672 * call.c (struct z_candidate): Use gengtype.
3673 (USER_CONV_CAND): Use WRAPPER_ZC.
3674 (convert_class_to_reference): Use build_zc_wrapper.
3675 (build_type_conversion_1): Likewise.
3676 (build_over_call): Use WRAPPER_ZC.
3677 (add_warning): Use build_zc_wrapper.
3678 * cp-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3679 * cp-tree.h (struct lang_identifier): Use gengtype.
3680 (struct template_parm_index_s): Likewise.
3681 (struct ptrmem_cst): Likewise.
3682 (struct tree_binding): Likewise.
3683 (struct tree_overload): Likewise.
3684 (struct tree_srcloc): Likewise.
3685 (struct tree_wrapper): Likewise. Also modify to have a pointer
3686 to struct z_candidate rather than void.
3687 (enum cp_tree_node_structure_enum): New.
3688 (union lang_tree_node): New.
3689 (cxx_mark_tree): Delete prototype.
3690 (cp_tree_node_structure): New prototype.
3691 (build_ptr_wrapper): Delete prototype.
3692 (build_int_wrapper): Delete prototype.
3693 (build_zc_wrapper): New prototype.
3694 * decl.c: Include debug.h
3695 (cxx_mark_tree): Delete.
3696 (cp_tree_node_structure): New.
3697 * tree.c (build_ptr_wrapper): Delete.
3698 (build_int_wrapper): Delete.
3699 (build_zc_wrapper): New.
3700
3701 * cp-tree.h [! ENABLE_TREE_CHECKING] (LANG_TYPE_PTRMEM_CHECK):
3702 Correct typo. Patch from k_fukui@highway.ne.jp.
3703
3704 * semantics.c (current_stmt_tree): Update for change to
3705 struct language_function.
3706 (finish_mem_initializers): Likewise.
3707 * decl.c (cxx_init_decl_processing): Don't set mark_lang_status.
3708 * cp-tree.h (struct language_function): Rename from
3709 cp_language_function. Change all uses.
3710 (cp_function_chain): Don't need to cast.
3711
3712 * class.c (duplicate_tag_error): Reset discriminator.
3713 (check_bases_and_members): Update for data structure changes.
3714 * cp-tree.h (struct lang_id2): Use gengtype.
3715 (flagged_type_tree): Likewise.
3716 (SET_LANG_ID): Use GGC on struct lang_id2.
3717 (struct cp_language_function): Use gengtype. Remove field
3718 'x_vcalls_possible_p'.
3719 (current_vcalls_possible_p): Delete.
3720 (struct lang_type_header): New.
3721 (struct lang_type_class): Rename from struct lang_type. Include
3722 struct lang_type_header.
3723 (struct lang_type_ptrmem): New.
3724 (struct lang_type): New.
3725 (LANG_TYPE_CLASS_CHECK): New. Use it in all the appropriate macros.
3726 (LANG_TYPE_PTRMEM_CHECK): New. Use it in all the appropriate macros.
3727 (TYPE_SET_PTRMEMFUNC_TYPE): Set discriminator, update for changes.
3728 (struct lang_decl_flags): Use gengtype. Add discriminators.
3729 (struct lang_decl): Use gengtype. Add and use discriminators.
3730 Update the macros that reference moved fields.
3731 (LANG_DECL_U2_CHECK): New function. Use it when appropriate.
3732 (SET_DECL_THUNK_P): Set discriminator too.
3733 (clear_inline_text_obstack): Delete prototype.
3734 (finish_inline_definitions): Delete prototype.
3735 (mark_pending_inlines): Delete prototype.
3736 (lang_check_failed): New prototype.
3737 * decl.c (struct named_label_use_list): Use gengtype.
3738 (struct named_label_list): Likewise.
3739 (mark_binding_level): Delete.
3740 (mark_named_label_lists): Delete.
3741 (push_local_name): Set discriminator on DECL_LANG_SPECIFIC.
3742 (cxx_init_decl_processing): Use generated marker routine.
3743 (begin_destructor_body): Delete dead set to
3744 current_vcalls_possible_p.
3745 (mark_lang_function): Delete.
3746 (mark_cp_function_context): Delete.
3747 (lang_mark_tree): Use generated marker routines.
3748 * decl2.c (start_objects): Set discriminator when setting
3749 GLOBAL_INIT_PRIORITY.
3750 * lex.c (retrofit_lang_decl): Set discriminators.
3751 (copy_lang_type): Update for changes to lang_type structure.
3752 (cp_make_lang_type): Set discriminator.
3753 * parse.y: Use gengtype on YYLVAL. Don't use dots in identifiers.
3754 * search.c: Include ggc.h.
3755 * semantics.c (anon_aggr_type_p): Use the macro, don't hand-code it.
3756 (finish_inline_definitions): Delete.
3757 * spew.c (struct token): Use gengtype.
3758 (struct token_chunk): New.
3759 (struct unparsed_text): Use gengtype. Store tokens in chunks.
3760 (struct feed): Use gengtype.
3761 (feed_obstack): Delete.
3762 (feed): Mark as GC root.
3763 (pending_inlines): Mark as GC root.
3764 (pending_inlines_tail): Likewise.
3765 (processing_these_inlines): Likewise.
3766 (token_obstack): Make static.
3767 (first_token): Likewise.
d30d6e7a 3768 (init_spew): Don't initialize deleted things; use gengtype for roots.
e2500fed
GK
3769 (clear_inline_text_obstack): Delete.
3770 (feed_input): Use GC for struct feed. Update for changes to
3771 struct unparsed_text.
3772 (mark_pending_inlines): Delete.
3773 (next_token): Rename from add_token. Change all callers. Update
3774 for changes to struct unparsed_text.
3775 (space_for_token): New.
3776 (remove_last_token): New.
3777 (alloc_unparsed_text): New.
3778 (snarf_block): Take an unparsed_text. Update for changes to struct
3779 unparsed_text.
3780 (snarf_method): Update for changes to struct unparsed_text.
3781 (snarf_defarg): Update for changes to struct unparsed_text.
3782 * tree.c (lang_check_failed): New.
3783
3784 * Make-lang.in (gt-cp-call.h gt-cp-decl2.h gt-cp-parse.h
3785 gt-cp-pt.h gt-cp-repo.h gt-cp-spew.h): New rules.
3786 (cp/spew.o): Add dependency on gt-<filename>.h.
3787 (cp/decl2.o): Add dependency on gt-<filename>.h.
3788 (cp/call.o): Add dependency on gt-<filename>.h.
3789 (cp/pt.o): Add dependency on gt-<filename>.h.
3790 (cp/repo.o): Add dependency on gt-<filename>.h.
3791 (cp/parse.o): Add dependency on gt-<filename>.h.
3792 * call.c: Use gengtype for roots.
3793 * config-lang.in (gtfiles): Add cp-tree.h decl.h lex.h call.c
3794 decl2.c parse.y pt.c repo.c spew.c.
3795 * cp-tree.h: Use gengtype for roots.
3796 (struct saved_scope): Use GGC, gengtype.
3797 (cp_parse_init): Delete prototype.
3798 (init_pt): Delete prototype.
3799 * decl.c: Use gengtype for roots.
3800 (mark_saved_scope): Delete.
3801 (cxx_init_decl_processing): Don't call deleted initilisation
3802 routines.
3803 (signed_size_zero_node): Delete, unused.
3804 * decl.h: Use gengtype for roots.
3805 * decl2.c: Use gengtype for roots.
3806 * lex.h: Use gengtype for roots.
3807 * parse.y: Use gengtype for roots.
3808 (cp_parse_init): Delete.
3809 * pt.c: Use gengtype for roots.
3810 (init_pt): Delete.
3811 * repo.c: Use gengtype for roots.
3812 * spew.c: Use gengtype for roots.
3813
3814 * Make-lang.in: Allow for filename changes. Add gtype-cp.h.
3815 (cp/decl.o): Add dependency on gtype-cp.h.
3816 * decl.c: Remove use of add_deletable_root, use GTY marker instead.
3817 Include gtype-cp.h. Allow for filename changes.
3818
3819 * Make-lang.in (cp/gt-decl.h): Generate using gengtype.
3820 (cp/decl.o): Add cp/gt-decl.h dependency.
3821 * config-lang.in (gtfiles): New.
3822 * tree.h: Rename struct binding_level to struct cp_binding_level.
3823 * decl.c: Rename struct binding_level to struct cp_binding_level.
3824 Include cp/gt-decl.h.
3825 (struct cp_binding_level): Use gengtype.
3826 (make_binding_level): Use GGC on struct cp_binding_level.
3827 (mark_binding_level): Use gt_ggc_m_cp_binding_level.
3828 (cxx_init_decl_processing): Mark free_binding_level as
3829 deletable.
3830
3831 * decl.c (mark_cp_function_context): Update calling sequence.
3832
3833 * decl.c (start_function): Don't free 'struct
3834 cp_language_function'.
3835 (pop_cp_function_context): Likewise.
3836 (save_function_data): Allocate it using GC.
3837 * semantics.c (genrtl_start_function): Don't free 'struct
3838 cp_language_function'.
3839
8b968bd1
MW
38402002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
3841
3842 * lang-specs.h: Use cpp_debug_options.
3843
11ad4784
ZW
38442002-05-28 Zack Weinberg <zack@codesourcery.com>
3845
3846 * mangle.c, tree.c: Include real.h.
3847 * Make-lang.in: Update dependency lists.
3848
81a75f0f
NB
38492002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3850
3851 * lex.c: Don't include c-lex.h.
3852 * parse.y, spew.c: Don't include c-lex.h; include c-pragma.h.
3853
a97d1398
NB
38542002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3855
3856 * spew.c (yyungetc, snarf_block): Remove indent_level handling.
3857
6f001fdf
RH
38582002-05-22 Richard Henderson <rth@redhat.com>
3859
3860 * decl.c (obscure_complex_init): Check for VAR_DECL
3861 before using DECL_THREAD_LOCAL.
3862
7a1f3f5f
RH
38632002-05-22 Richard Henderson <rth@redhat.com>
3864
3865 * decl.c (check_tag_decl): Handle RID_THREAD.
3866 (obscure_complex_init): Reject run-time init of tls.
3867 (grokvardecl, grokdeclarator): Handle RID_THREAD.
3868 * lex.c (reswords): Add __thread.
3869 (rid_to_yy): Map RID_THREAD to SCSPEC.
3870
e5f3b786
NB
38712002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3872
3873 * cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3874 * cp-tree.h (cxx_post_options): Kill.
3875 * cp-lex.c (cxx_post_options): Kill.
3876
3d78f2e9
RH
38772002-05-21 Richard Henderson <rth@redhat.com>
3878
3879 * lex.c (rid_to_yy): Add RID_THREAD.
3880
c8a3d889
AO
38812002-05-21 Alexandre Oliva <aoliva@redhat.com>
3882
3883 * init.c (build_vec_init): Test for trivial copy-assignment when
3884 copy-assigning arrays.
3885
500abaa8
AJ
38862002-05-20 Andreas Jaeger <aj@suse.de>
3887
3888 * init.c (build_default_init): Remove unused variable.
3889
ecc42c14
AO
38902002-05-20 Alexandre Oliva <aoliva@redhat.com>
3891
3892 * call.c (any_strictly_viable): New.
3893 (build_new_op): Use it for COMPOUND_EXPR and ADDR_EXPRs.
3894
4e664ef1
KL
38952002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3896
3897 * error.c (dump_type) [TYPEOF_TYPE]: Fix parenthesis printing.
3898
07782718
KL
38992002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3900
3901 PR c++/186, DR 259
3902 * pt.c (do_decl_instantiation): Don't complain explicit
3903 instantiation after explicit specialization.
3904 (do_type_instantiation): Likewise.
3905
23b4deba
AO
39062002-05-19 Alexandre Oliva <aoliva@redhat.com>
3907
3908 * cp-tree.h (complete_type_or_diagnostic): Changed prototype,
3909 renamed from...
3910 (complete_type_or_else): ... this. Redefined as macro.
3911 (cxx_incomplete_type_diagnostic): Declare.
3912 (cxx_incomplete_type_error): Define as macro.
3913 * init.c (build_delete): Warn about incomplete types other than
3914 void, and use the built-in operator delete for them.
3915 * typeck.c (complete_type_or_diagnostic): Renamed from
3916 complete_type_or_else. Added warn_only argument, passed to...
3917 * typeck2.c (cxx_incomplete_type_diagnostic): ... this. Print
3918 warnings or errors depending on new warn_only argument. Renamed
3919 from...
3920 (cxx_incomplete_type_error): ... this. New implementation in
3921 terms of cxx_incomplete_type_diagnostic.
3922
b41d214e
JM
39232002-05-18 Jason Merrill <jason@redhat.com>
3924
98c07d7b 3925 PR c++/6611
b41d214e
JM
3926 * decl2.c (import_export_decl): If we clear
3927 DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
3928
e2005c8d
KL
39292002-05-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3930
3931 PR c++/6620
3932 * pt.c (verify_class_unification): Don't check if PARM is template
3933 parameter dependent. Simplify.
3934 (unify) [TEMPLATE_PARM_INDEX]: Handle when ARG is a template
3935 parameter dependent expression.
3936
ff48be5c
JM
39372002-05-14 Jason Merrill <jason@redhat.com>
3938
3939 * rtti.c (get_tinfo_decl): Don't call comdat_linkage.
3940 Do set DECL_COMDAT.
3941 (synthesize_tinfo_var): Take the public decl.
3942 (create_real_tinfo_var): Likewise. Check DECL_COMDAT.
3943 (emit_tinfo_decl): Adjust. Call import_export_decl.
3944 * decl2.c (import_export_decl): Simplify tinfo decl handling.
3945
94e6e4c4
AO
39462002-05-14 Alexandre Oliva <aoliva@redhat.com>
3947
3948 * cp-tree.h (struct lang_type): Added non_zero_init.
0fe1cd70 3949 (CLASSTYPE_NON_ZERO_INIT_P): New macro.
94e6e4c4
AO
3950 (zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
3951 * class.c (check_field_decls): Test non_zero_init.
3952 * cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
3953 zero-to-NULL conversions.
3954 * decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
3955 type that needs zero-initialization without zeros.
3956 (check_initializer_decl): Compute zero-initializer for types
3957 that require a non-trivial one.
3958 * init.c (build_forced_zero_init): New function.
3959 (build_default_init): Use it.
3960 * tree.c (zero_init_p): New function.
3961 * typeck2.c (force_store_init_value): New function.
3962 (process_init_constructor): Create non-trivial zero-initializers
3963 for array members and class fields.
3964
e5f5feea
NB
39652002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3966
3967 * lang-specs.h: Remove redundant -lang-c++.
3968
f63ab951
JM
39692002-05-13 Jason Merrill <jason@redhat.com>
3970
3971 * class.c (build_vtbl_ref_1): Use fixed_type_or_null.
3972 (fixed_type_or_null): See through reference vars.
3973 (build_base_path): Vtable contents are constant.
3974 * typeck.c (get_member_function_from_ptrfunc): Likewise.
3975
0d08ea48
JM
39762002-05-12 Jason Merrill <jason@redhat.com>
3977
3978 * cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
3979 structs are safe.
3980
3df89291
NB
39812002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3982
3983 * cp-tree.h (flag_ansi): Remove.
3984 * decl2.c (flag_ansi): Remove.
3985 (cxx_decode_option): Set flag_iso and flag_undef.
3986
c87978aa
JM
39872002-05-09 Jason Merrill <jason@redhat.com>
3988
3989 * typeck.c (get_member_function_from_ptrfunc): Reorganize.
3990 Use subtraction rather than a bitmask to get the index.
3991 * cvt.c (cp_convert_to_pointer): Bail on an error_mark_node.
3992
3993 * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.
3994
a5a49440
NB
39952002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3996
3997 * Make-lang.in (decl2.o): Update.
3998 * cp-tree.h (warn_multichar): Remove.
3999 * decl2.c: Include c-common.h.
4000 (warn_multichar): Remove.
4001
609688f3
JM
40022002-05-03 Jason Merrill <jason@redhat.com>
4003
0abc082a
JM
4004 * tree.c (build_cplus_array_type): Only const and volatile get
4005 special handling.
4006
609688f3
JM
4007 * decl.c (BOOL_TYPE_SIZE): Move default to defaults.h.
4008
8b16faa2
MM
40092002-04-30 Mark Mitchell <mark@codesourcery.com>
4010
394ab947 4011 ABI change, returning simple classes from functions.
8b16faa2
MM
4012 * class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
4013 TYPE_HAS_TRIVIAL_INIT_REF is false or
4014 TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
4015
ac905924
JM
40162002-04-30 Jason Merrill <jason@redhat.com>
4017
2cb008af 4018 PR debug/6436
ac905924
JM
4019 * decl.c (grokdeclarator): Don't override TYPE_NAME of an
4020 anonymous class with a typedef if there are attributes.
4021
e6e81f1c 40222002-04-29 Paul Eggert <eggert@twinsun.com>
b819d9e0 4023
e6e81f1c 4024 * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
b819d9e0 4025
3a73bffb
JJ
40262002-04-29 Jakub Jelinek <jakub@redhat.com>
4027
4028 PR c++/6477
4029 * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
4030 non-NULL first.
4031
33dd07ee
MM
40322002-04-29 Mark Mitchell <mark@codesourcery.com>
4033
4034 PR c++/6492
4035 * pt.c (tsubst_friend_class): If the friend has an explicit scope,
4036 enter that scope before name lookup.
4037
4038 PR c++/6486
4039 * method.c (do_build_copy_constructor): Avoid building
4040 cv-qualified reference types.
500abaa8 4041
4bd7c270
NS
40422002-04-29 Nathan Sidwell <nathan@codesourcery.com>
4043
4044 PR c++/5719
500abaa8 4045 * decl.c (grok_op_properties): Assignment ops don't have to return
4bd7c270
NS
4046 by value. operator% should.
4047
45806a3f
FS
40482002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4049
4050 PR c/6343
4051 * decl.c (duplicate_decls): Call merge_weak.
4052
94a50397
RH
40532002-04-26 Richard Henderson <rth@redhat.com>
4054
4055 * parse.y (malloced_yyss, malloced_yyvs): New.
4056 (yyoverflow): Re-add. Set them.
4057 (free_parser_stacks): New.
4058
7d793e9b
MM
40592002-04-26 Mark Mitchell <mark@codesourcery.com>
4060
4061 PR c++/6497
4062 * method.c (do_build_assign_ref): Pass a derivation to
4063 build_method_call when calling base class assignment operators.
4064
bde3c0c0
RH
40652002-04-26 Richard Henderson <rth@redhat.com>
4066
4067 * parse.y (yyoverflow): Revert.
4068
b84a3874
RH
40692002-04-26 Richard Henderson <rth@redhat.com>
4070
4071 PR c/3581
4072 * parse.y (string): Remove. Update all uses to use STRING
4073 instead, and not call combine_strings.
4074 * rtti.c (tinfo_name): Use fix_string_type.
4075 * semantics.c (finish_asm_stmt): Don't call combine_strings.
4076 * spew.c (yylexstring): New.
4077 (read_token): Use it.
4078
6052bef0
RH
40792002-04-25 Richard Henderson <rth@redhat.com>
4080
4081 PR c/2161
4082 * parse.y (yyoverflow): New.
4083
8d1f0f67
JM
40842002-04-25 Jason Merrill <jason@redhat.com>
4085
4086 PR c++/5607
4087 * search.c (check_final_overrider): No longer static.
4088 * class.c (update_vtable_entry_for_fn): Call it.
4089 * cp-tree.h: Adjust.
4090
ff45c01e
NB
40912002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
4092
4093 * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
4094 * cp-tree.h (cxx_set_yydebug): Die.
4095 * lex.c (YYDEBUG): Get from c-lex.h.
4096 (cxx_set_yydebug): Remove.
4097 * parse.y: Include c-lex.h.
4098 (YYDEBUG): Get from c-lex.h.
4099
a62d375f
MM
41002002-04-24 Mark Mitchell <mark@codesourcery.com>
4101
4102 PR c++/6438.
4103 * cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
4104 void.
4105
349ae713
NB
41062002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
4107
4108 * cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4109 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
4110 Redefine.
4111 * cp-tree.h (cp_attribute_table): Rename.
4112 * decl.c (lang_attribute_table): Remove declaration.
4113 (cxx_init_decl_processing): Don't set it.
4114 * tree.c (cp_attribute_table): Rename.
4115
b602511f
JM
41162002-04-24 Jason Merrill <jason@redhat.com>
4117
985723ce
JM
4118 PR c++/6331
4119 * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
4120 * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
a49cfba8
JM
4121 The pedwarn for array assignment is now unconditional.
4122 * tree.c (build_cplus_array_type_1): Still process simple array types
4123 normally in templates.
985723ce 4124
b602511f
JM
4125 PR c++/6395
4126 * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
4127 stuff for comdats.
4128
29cece2e
JJ
41292002-04-23 Jakub Jelinek <jakub@redhat.com>
4130
4131 * parse.y (check_class_key): Allow KEY to be union/enum/struct/class
4132 node with attributes.
4133
515387dc
DB
41342002-2-23 David O'Brien <obrien@FreeBSD.org>
4135
4136 * g++spec.c (MATH_LIBRARY_PROFILE, LIBSTDCXX_PROFILE): Add.
4137 Use MATH_LIBRARY_PROFILE and LIBSTDCXX_PROFILE if profile flag given.
4138
77adef84
MM
41392002-04-23 Mark Mitchell <mark@codesourcery.com>
4140
4141 PR c++/6256:
4142 * pt.c (tsubst_friend_class): Handle templates with explicit
4143 nested names.
4144
4145 PR c++/6331:
4146 * typeck.c (merge_types): Remember the cv-qualification of pointer
4147 types when merging them.
4148
b03e38e1
NB
41492002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4150
4151 * cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
4152 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
4153 * cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
4154 cxx_mark_function_context): New.
4155 * decl.c (push_cp_function_context, pop_cp_function_context,
4156 mark_cp_function_context): Rename for consistency.
4157 (cxx_init_decl_processing): Don't set old hooks.
4158
ab393bf1
NB
41592002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
4160
4161 * call.c (convert_type_from_ellipsis): Rename, update.
4162 * cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4163 * cp-tree.h (convert_type_from_ellipsis): Rename.
4164 * decl.c (cxx_init_decl_processing): Don't set hook.
4165
7a228918
NB
41662002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4167
4168 * call.c (build_new_method_call): Update.
4169 * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4170 * cp-tree.h (cxx_incomplete_type_error): New.
4171 * decl.c (grokdeclarator, grokparms): Update.
4172 * decl2.c (check_classfn): Update.
4173 * pt.c (tsubst): Update.
4174 * typeck.c (complete_type_or_else, expr_sizeof,
4175 decay_conversion): Update.
4176 * typeck2.c (incomplete_type_error): Rename.
4177 (add_exception_specifier): Update.
4178
8152c320
JM
41792002-04-18 Jason Merrill <jason@redhat.com>
4180
4181 PR c++/5658
4182 * search.c (setup_class_bindings): A class template qualifies as a
4183 type binding.
4184
32121b96
JJ
41852002-04-17 Jakub Jelinek <jakub@redhat.com>
4186
4187 PR c++/6316
4188 * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
4189 before expanding.
4190
b2123dc0
MM
41912002-04-16 Mark Mitchell <mark@codesourcery.com>
4192
4193 * init.c (begin_init_stmts): Remove commented out code.
4194 (finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
4195 * semantics.c (begin_gobal_stmt_expr): Adjust call to
4196 expand_start_stmt_expr.
500abaa8 4197
0f268005
MM
41982002-04-15 Mark Mitchell <mark@codesourcery.com>
4199
4200 * decl.c (register_dtor_fn): Pass the address of dso_handle, not
4201 dso_handle itself, to __cxa_atexit.
4202
bd6bec6b
GDR
42032002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4204
4205 * error.c (cxx_print_error_function): Adjust call to macros.
4206
0f490a2b
JJ
42072002-04-14 Jakub Jelinek <jakub@redhat.com>
4208
4209 * class.c (layout_virtual_bases): Do all dsize computation on trees.
4210
85b7def6
JM
42112002-04-14 Jason Merrill <jason@redhat.com>
4212
4213 * typeck.c (get_member_function_from_ptrfunc): Don't do
4214 gratuitious division and multiplication on
4215 ptrmemfunc_vbit_in_delta targets.
4216
0481bc21
MM
42172002-04-12 Mark Mitchell <mark@codesourcery.com>
4218
4219 PR c++/5373.
4220 * semantics.c (finish_expr_stmt): Remember the type of the
4221 expression before any conversions are performed.
4222
9928a3d5
MM
42232002-04-12 Mark Mitchell <mark@codesourcery.com>
4224
4225 PR c++/5189.
4226 * call.c (add_template_candidate_real): Do not treat member
4227 templates as copy constructors.
4228
c740732f
MM
42292002-04-12 Mark Mitchell <mark@codesourcery.com>
4230
4231 * decl.c (duplicate_decls): Do not copy the RTL for a variable
4232 declaration if the old variable had an incomplete type and the new
4233 variable does not.
4234 (complete_vars): Do not call layout_decl for completed variables.
4235
4782bd5b
RS
42362002-04-12 Richard Sandiford <rsandifo@redhat.com>
4237
4238 * decl.c (duplicate_decls): Don't try to unify an implicit typedef
4239 with an explicit one.
4240 (follow_tag_typedef): New.
4241 (lookup_tag): Use it to extract the tag of an explicit typedef.
4242 (xref_tag): Likewise.
4243
2f4d058f
AH
42442002-04-11 Andrew Haley <aph@redhat.com>
4245
4246 * typeck.c (type_after_usual_arithmetic_conversions):
4247 If two types have the same variant, return immediately.
500abaa8 4248 When two floating-point operands are the same precision:
2f4d058f
AH
4249 convert to float if one of the operands is float;
4250 if neither operand is one of the standard types, return the type
4251 of the first operand.
500abaa8 4252
ba3307c0
NS
42532002-04-10 Nathan Sidwell <nathan@codesourcery.com>
4254
4255 PR c++/5507
4256 * decl.c (make_typename_type): Remove implicit typenameness.
4257
cd6af0c1
JM
42582002-04-09 Jason Merrill <jason@redhat.com>
4259
edf5cd1d
JM
4260 PR optimization/6189
4261 * semantics.c (genrtl_start_function): Don't free
4262 DECL_SAVED_FUNCTION_DATA for inline functions.
4263
cd6af0c1
JM
4264 * init.c (build_member_call): For now, don't convert to
4265 intermediate base if it would cause an error.
4266
224e6091
PC
42672002-04-08 Paolo Carlini <pcarlini@unitus.it>
4268
4269 * parse.y (namespace_qualifier, maybe_identifier,
4270 begin_explicit_instantiation, end_explicit_instantiation,
4271 apparent_template_type, .finish_template_type,
4272 do_id, maybe_init, defarg_again, component_decl_1):
4273 Add ending ';', in accordance with POSIX.
4274
0154eaa8
MM
42752002-04-06 Mark Mitchell <mark@codesourcery.com>
4276
4277 PR c++/5571
4278 * class.c (layout_class_type): Remember incomplete static
4279 variables.
4280 (finish_struct_1): Call complete_vars, not
4281 hack_incomplete_structures.
4282 * cp-tree.h (hack_incomplete_structures): Rename to ...
4283 (complete_vars): ... this.
4284 (struct saved_scope): Remove incomplete.
4285 (namespace_scope_incomplete): Remove.
4286 * decl.c (struct binding_level): Remove incomplete.
4287 (incomplete_vars): New variable.
4288 (mark_binding_level): Don't mark incomplete.
4289 (print_binding_level): Don't print it.
4290 (mark_saved_scope): Don't mark incomplete.
4291 (pushdecl): Use maybe_register_incopmlete_var.
4292 (cxx_init_decl_processing): Register incomplete_vars for GC.
4293 (start_decl_1): Clarify error message.
4294 (hack_incomplete_vars): Remove.
4295 (maybe_register_incomplete_var): New function.
4296 (complete_vars): Likewise.
4297
f62ea157
JM
42982002-04-06 Jason Merrill <jason@redhat.com>
4299
03da5286
JM
4300 PR c++/4934
4301 * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
4302 set before checking it.
4303
a29e1034
JM
4304 PR c++/525
4305 * init.c (build_member_call): Use build_scoped_ref.
4306 (resolve_offset_ref): Likewise.
4307 * call.c (build_scoped_method_call): Likewise.
500abaa8 4308 * tree.c (maybe_dummy_object): Kludge around current_class_type being
a29e1034
JM
4309 wrong.
4310 * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
4311 * cp-tree.h: Adjust.
500abaa8 4312
a29e1034
JM
4313 * init.c (push_base_cleanups): Just use build_scoped_method_call.
4314
f62ea157 4315 PR c++/6179
500abaa8 4316 * method.c (implicitly_declare_fn): Pass unqualified type to
f62ea157
JM
4317 synthesize_exception_spec.
4318
78ef5b89
NB
43192002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4320
4321 * cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4322 * cvt.c: Update comment.
4323 * init.c (expand_cleanup_for_base): Update.
4324 * semantics.c (finish_parenthesized_expr): Update.
4325 * typeck.c (cp_truthvalue_conversion): Update.
4326
dffa4176
JM
43272002-04-04 Jason Merrill <jason@redhat.com>
4328
659e5a7a
JM
4329 * semantics.c (finish_eh_cleanup): New fn.
4330 * cp-tree.h: Add prototype.
500abaa8 4331 * init.c (perform_member_init, expand_cleanup_for_base): Use
659e5a7a
JM
4332 finish_eh_cleanup.
4333 * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
4334 * cp-tree.h: Remove references.
4335 * decl.c (begin_constructor_body, end_constructor_body): Likewise.
4336 * dump.c (cp_dump_tree): Likewise.
4337 * pt.c (tsubst_expr): Likewise.
4338 * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
4339 (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
4340 * tree.c (cp_statement_code_p): Likewise.
4341
4342 * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
4343
4344 PR c++/5636
4345 * semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
4346 cleanup for nrv.
4347
dffa4176
JM
4348 PR c++/5104
4349 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
4350 specifiers.
4351 [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
4352
ef4f94ac
RH
43532002-04-03 Richard Henderson <rth@redhat.com>
4354
4355 * cp-lang.c (cxx_warn_unused_global_decl): New.
4356 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4357
599bba86
NB
43582002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4359
4360 * cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
4361 * tree.c (init_tree): Don't set hook.
4362
cba2004a
RS
43632002-04-03 Roger Sayle <roger@eyesopen.com>
4364
4365 PR c++/5998:
4366 * decl.c (duplicate_decls): Don't mess with assembler names when
4367 redeclaring builtin functions as static.
4368
dffd7eb6
NB
43692002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4370
4371 * call.c (build_addr_func): Update.
4372 * class.c (resolve_address_of_overloaded_function): Update.
4373 * cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4374 * cp-tree.h (cxx_mark_addressable): New.
4375 * decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update.
4376 * decl2.c (build_cleanup): Update.
4377 * except.c (build_throw): Update.
4378 * init.c (resolve_offset_ref): Update.
4379 * pt.c (convert_nontype_argument): Update.
4380 * semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update.
4381 * typeck.c (decay_conversion, build_array_ref, build_unary_op,
4382 unary_complex_lvalue): Update.
4383 (mark_addressable): Rename.
4384
04a9d080
RS
43852002-04-01 Roger Sayle <roger@eyesopen.com>
4386
4387 PR c++/5998:
4388 * decl.c (duplicate_decls): Overwrite the RTL when (and only
4389 when) overwriting a built-in function. Don't use COPY_DECL_RTL,
4390 but follow the SET_DECL_RTL idiom used elsewhere in the function.
4391
ceef8ce4
NB
43922002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4393
4394 * cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4395 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4396 * decl.c (grokdeclarator): Update.
4397 * mangle.c (write_integer_cst): Update.
4398 * typeck.c (build_binary_op): Update.
4399
48a7a235
NB
44002002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4401
4402 * cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4403 * lex.c (cxx_init): Don't set hook.
4404
7cb32822
NB
44052002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4406
4407 * Make-lang.in (error.o): Update.
4408 * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
4409 * cp-tree.h (struct diagnostic_context): Predeclare.
4410 (cxx_print_error_function): New.
4411 * error.c: Include langhooks-def.h.
4412 (lang_print_error_function): Rename. Update.
4413 (init_error): Don't set hook.
4414
b0c48229
NB
44152002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4416
4417 * cp-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4418 Redefine.
4419 * cvt.c (cp_convert_to_pointer, type_promotes_to): Use new hooks.
4420 * decl.c (finish_enum): Similarly.
4421 * error.c (dump_type): Similarly.
4422 * lex.c (cxx_init): Similarly.
4423 * mangle.c (write_builtin_type): Similarly.
4424 * typeck.c (comptypes): Similarly.
4425
d52e4867
RS
44262002-03-28 Roger Sayle <roger@eyesopen.com>
4427
4428 PR c++/5998:
4429 * decl.c (cxx_init_decl_processing): Re-enable built-in functions
4430 in the g++ front-end.
4431 (duplicate_decl): Allow redefinition of anticipated built-ins.
4432 Fix inlining problem by over-writing the old DECL_RTL.
4433 (lookup_namespace_name): Fail to find an identifier in the
4434 specified namespace if its still anticipated.
4435 (builtin_function_1): New function split out from builtin_function
4436 to create a builtin in the current namespace with given context.
4437 (builtin_function): Call builtin_function_1 to define the
4438 appropriate builtins in both the std and global namespaces.
4439 (select_decl): Don't test for anticipated decls here.
4440 (unqualified_namespace_lookup): Instead ignore them whilst
4441 searching through scopes and namespaces.
4442 * decl2.c (do_nonmember_using_decl): If a using declaration
4443 specifies an anticipated built-in function, mark it as no longer
4444 anticipated in that scope.
4445 (ambiguous_decl): Avoid resolving to an anticipated decl.
4446 * lex.c (do_scoped_id): Fail to find an identifier in the global
4447 namespace if its still anticipated.
4448
f1e639b1
NB
44492002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4450
4451 * cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine.
4452 * cp-tree.h (cp_make_lang_type): Rename.
4453 * lex.c (cp_make_lang_type): Rename.
4454 (make_aggr_type): Update.
4455 * tree.c (init_tree): Don't set make_lang_type_fn.
4456
c7f4981a
JJ
44572002-03-29 Jakub Jelinek <jakub@redhat.com>
4458
4459 PR c++/6073
4460 * class.c (finish_struct_1): Update static field's DECL_MODE even
4461 if its type is a variant of t.
4462
7ffb4fd2
NB
44632002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4464
4465 * cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4466 * cp-tree.h (cxx_insert_default_attributes): New.
4467 * decl.c (insert_default_attributes): Rename.
4468
cd4e8331
MM
44692002-03-27 Mark Mitchell <mark@codesourcery.com>
4470
4471 PR c++/4884
4472 * call.c (build_op_delete_call): Allow for the fact the placement
4473 may be a COMPOUND_EXPR.
500abaa8 4474
c9d892a8
NB
44752002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4476
4477 * cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4478 * cp-tree.h (init_cplus_expand): Remove.
4479 (cxx_expand_expr): New.
4480 * expr.c (cplus_expand_expr): Rename cxx_expand_expr,
4481 fix prototype.
4482 (init_cplus_expand): Remove.
4483 * lex.c (cxx_init): Don't call init_cplus_expand.
4484
46ff5047
MM
44852002-03-26 Mark Mitchell <mark@codesourcery.com>
4486
4487 PR c++/4884.
4488 * init.c (build_new_1): Allow for the fact the result of
4489 build_function_call may be a COMPOUND_EXPR.
4490
6d4c57a0
NS
44912002-03-26 Nathan Sidwell <nathan@codesourcery.com>
4492
4493 PR c++/5682
4494 * cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
4495 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
4496 (dfs_skip_nonprimary_vbases_markedp): Remove.
4497 * search.c (get_shared_vbase_if_not_primary): Remove.
4498 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
4499 (dfs_skip_nonprimary_vbases_markedp): Remove.
4500 (dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
4501 (dfs_marked_real_bases_queue_p): Likewise.
4502
4f0ade92
NB
45032002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
4504
4505 * cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4506 * cp-tree.h (cxx_mark_tree): New.
4507 * decl.c (lang_mark_tree): Rename cxx_mark_tree.
4508
c88770e9
NB
45092002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4510
4511 * cp-tree.h (cxx_maybe_build_cleanup): New.
4512 * decl.c (destroy_local_var, hack_incomplete_structures): Update.
4513 (maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
4514 * tree.c (build_target_expr): Update.
7b3e5198 4515 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
c88770e9 4516
aaf93206
NB
45172002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4518
4519 * decl2.c (cxx_decode_option): Handle -E.
4520 * lang-specs.h (default_compilers): Preprocess with cc1plus.
4521 * lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
4522
e756a7da
JJ
45232002-03-23 Jakub Jelinek <jakub@redhat.com>
4524
4525 PR c++/6037
4526 * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
4527
ea9264e9
GDR
45282002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4529
4530 * error.c (dump_type): Be careful about implicit typenames.
4531
acb044ee
GDR
45322002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4533
4534 PR C++/3656
4535 * semantics.c (finish_base_specifier): Handle erronous base
500abaa8 4536 classes.
acb044ee 4537
b216cd4a
ZW
45382002-03-22 Zack Weinberg <zack@codesourcery.com>
4539
4540 * error.c: Always use REAL_VALUE_TO_DECIMAL; don't test
4541 REAL_IS_NOT_DOUBLE.
4542
9181f8db
JK
45432002-03-22 Jeff Knaggs <jknaggs@redhat.com>
4544
cd6af0c1
JM
4545 * typeck.c (get_member_function_from_ptrfunc): Scale idx down to
4546 an index into the vtable_entry array regardless of
9181f8db
JK
4547 TARGET_PTRMEMFUNC_VBIT_LOCATION.
4548
e019cf95
AH
45492002-03-21 Aldy Hernandez <aldyh@redhat.com>
4550
84d901be 4551 * tree.c (cp_cannot_inline_tree_fn): Same.
e019cf95 4552
43577e6b
NB
45532002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4554
4555 * cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
4556 insert_block, getdecls, global_bindings_p): New.
4557
8c152bad
NS
45582002-03-20 Nathan Sidwell <nathan@codesourcery.com>
4559
4560 PR c++/4361
4561 * mangle.c (struct globals) Add internal_mangling_p member.
4562 (write_template_param): Do internal mangling, if needed.
4563 (mangle_conv_op_name_for_type): Request internal mangling.
4564
e3fe84e5
JM
45652002-03-20 Jason Merrill <jason@redhat.com>
4566
4567 PR c++/2136
4568 * init.c (build_delete): Check access for a member op delete here.
4569 * decl2.c (delete_sanity): Not here.
4570
ea122333
JM
45712002-03-19 Jason Merrill <jason@redhat.com>
4572
4573 PR c++/5118
4574 * class.c (get_vfield_name): Use the constructor_name.
4575
7afff7cf
NB
45762002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4577
4578 * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4579 * cp-tree.h (lang_printable_name): Rename.
4580 * error.c (lang_decl_name): Use new hook.
4581 * lex.c (cxx_init): Remove old hook.
4582 * pt.c (tsubst_decl): Use new hook.
4583 * tree.c (lang_printable_name): Rename.
4584
ff77ac85
EB
45852002-03-18 Eric Botcazou <ebotcazou@multimania.com>
4586
4587 PR c++/3882
4588 * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
4589 (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
4590 only after recording the declaration.
4591
ffd696af
JM
45922002-03-18 Jason Merrill <jason@redhat.com>
4593
097955f2
JM
4594 PR c++/2039
4595 * init.c (resolve_offset_ref): Hand off to build_component_ref.
4596
b663bcf3
JM
4597 PR c++/4222, c++/5995
4598 * call.c (build_over_call): Fix empty class logic.
4599
0f4237c2
JM
4600 PR c++/3870
4601 * cp-tree.h (struct saved_scope): Add last_parms field.
4602 * decl.c (maybe_push_to_top_level): Save last_function_parms.
4603 (pop_from_top_level): Restore it.
4604
001ad76c
JM
4605 PR c++/4377
4606 * mangle.c (write_expression): Strip NOP_EXPRs sooner. Also strip
4607 NON_LVALUE_EXPRs.
4608
4609 PR c++/4003
ed2fa432
JM
4610 * pt.c (tsubst_friend_function): Use decl_namespace_context.
4611
ffd696af
JM
4612 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
4613 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
4614 type with a nontrivial destructor.
4615
f2606a97
JM
46162002-03-17 Jason Merrill <jason@redhat.com>
4617
4618 PR c++/4460
4619 * class.c (build_base_path): Virtual base layout is fixed in
4620 in-charge [cd]tors.
4621
52dabb6c
NB
46222002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4623
4624 * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4625 * parse.y (yyparse): Remove macro.
4626
beb9c8a2
JM
46272002-03-17 Jason Merrill <jason@redhat.com>
4628
4629 PR c++/5757
4630 * init.c (build_new_1): Pass the right pointer to op delete.
4631
5dd236e2
NS
46322002-03-16 Nathan Sidwell <nathan@codesourcery.com>
4633
4634 PR c++/4361
4635 * cp-tree.h (CLASSTYPE_METHOD_VEC): Document where templated
4636 conversion operators go.
4637 (struct lang_decl_flags): Add template_conv_p and unused
4638 bitfields.
4639 (DECL_TEMPLATE_CONV_FN_P): New macro.
4640 * call.c (build_user_type_conversion_1): Don't check second type
4641 conversion of overload set first.
4642 * class.c (add_method): Make sure templated conversion operators
4643 all end up on slot 2.
4644 * lex.c (do_identifier): A conversion operator token might be
4645 satisfied by a templated conversion operator.
5dd236e2
NS
4646 * pt.c (check_explicit_specialization): Use
4647 CLASSTYPE_FIRST_CONVERSION_SLOT.
4648 (template_parm_this_level_p): New function.
4649 (push_template_decl_real): Determine DECL_TEMPLATE_CONV_FN_P.
8c152bad 4650 * search.c (lookup_fnfields_1): Template conversions will be on
5dd236e2
NS
4651 the first slot.
4652 * typeck.c (build_component_ref): Preserve the type of an
4653 conversion operator name on the overload type.
4654 (build_x_function_call): Retrieve the conversion operator name.
4655
0ba20759
RH
46562002-03-15 Richard Henderson <rth@redhat.com>
4657
4658 * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
4659
6e4ae815
MM
46602002-03-15 Mark Mitchell <mark@codesourcery.com>
4661
4662 * cp-tree.h (CLEANUP_DECL): Remove.
4663 (CLEANUP_EXPR): Likewise.
4664 * decl.c (destroy_local_var): Simplify.
4665 (maybe_build_cleanup): Tidy.
4666 * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
4667 * semantics.c (cp_expand_stmt): Likewise.
4668 * cp/tree.c (cp_statement_code_p): Likewise.
4669
5cc90635
JM
46702002-03-15 Jason Merrill <jason@redhat.com>
4671
6da794e8
JM
4672 PR c++/5857
4673 * decl.c (duplicate_decls): Use merge_types instead of common_type.
4674 * typeck.c (common_type): Just hand off to
4675 type_after_usual_arithmetic_conversions and
4676 composite_pointer_type.
4677 (merge_types): New fn.
4678 (commonparms): Use it instead of common_type.
4679 (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
4680 (composite_pointer_type): Also handle attributes.
4681 * cp-tree.h: Declare merge_types.
4682
5cc90635
JM
4683 * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
4684 variables.
4685 * decl2.c (maybe_make_one_only): Also mark the decl as needed.
4686
ecb0eece
RH
46872002-03-14 Richard Henderson <rth@redhat.com>
4688
4689 * decl.c: Include c-pragma.h.
4690 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4691 * Make-lang.in: Update dependencies.
4692
d3f129b3
JJ
46932002-03-14 Jakub Jelinek <jakub@redhat.com>
4694
f6562b37 4695 PR c++/5908
d3f129b3
JJ
4696 * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
4697 * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
4698
049e6879
RS
46992002-03-12 Richard Sandiford <rsandifo@redhat.com>
4700
4701 * mangle.c (write_builtin_type): Handle 128-bit integers even if
4702 they are not a standard integer type.
4703
872c9284
RS
47042002-03-12 Richard Sandiford <rsandifo@redhat.com>
4705
4706 * cp-tree.h (init_init_processing): Remove declaration.
4707 * init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
4708 * decl.c (cxx_init_decl_processing): Don't call init_init_processing.
4709
2f9834e8
KG
47102002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4711
4712 * cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
4713 Define.
4714 * decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
4715 tree_code_length.
4716 * lex.c (cplus_tree_code_type, cplus_tree_code_length,
4717 cplus_tree_code_name): Delete.
4718 (cxx_init): Don't call add_c_tree_codes, instead set
4719 lang_unsafe_for_reeval. Don't try to copy into the various
4720 tree_code arrays.
4721
df867456
NS
47222002-03-12 Nathan Sidwell <nathan@codesourcery.com>
4723
4724 PR c++/5659
4725 * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
4726 * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
4727 definitions.
4728
ab04e34b
NS
47292002-03-11 Nathan Sidwell <nathan@codesourcery.com>
4730
4731 Revert 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>,
4732 DR209 is now not a defect.
4733 * cp-tree.h (skip_type_access_control): Remove.
4734 * decl.c (grokdeclarator): Do type access control for friend
4735 declarations.
4736 * semantics.c (decl_type_access_control): Don't reset
4737 current_type_lookups.
4738 (save_type_access_control): Always save the lookups.
4739 (skip_type_access_control): Remove.
4740 (finish_class_definition): Don't change type_lookups.
4741
999cc24c
NS
47422002-03-11 Nathan Sidwell <nathan@codesourcery.com>
4743
4744 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>,
4745 It is incorrect.
4746 * typeck.c (build_static_cast): Compare non-qualified types
4747 with pointer to member conversions.
4748
61eece67
DN
47492002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4750 Daniel Berlin <dan@dberlin.org>
4751
4752 * cp-lang.c (ok_to_generate_alias_set_for_type): New function.
4753 (cxx_get_alias_set): Use it.
4754
644d28d4
KG
47552002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4756
4757 * cp-tree.h (stabilize_expr): Prototype.
4758
7e326356
CR
47592002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4760
4761 * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
4762 conditional return void.
4763
24965e7a
NB
47642002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4765
4766 * cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
4767 * cp-tree.h (cxx_unsave): New.
4768 * tree.c (cp_unsave): Rename cxx_unsave, update prototype.
4769 (init_tree): Update.
4770
ca7558fc
KG
47712002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4772
4773 * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of
4774 explicit sizeof/sizeof.
4775 * decl2.c (cxx_decode_option): Likewise.
4776 * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise.
4777
fd87b7a7
NS
47782002-03-02 Nathan Sidwell <nathan@codesourcery.com>
4779
4780 PR c++/775
4781 * decl.c (lookup_tag): Only reject enum/class mismatch, not
4782 class/union mismatch.
4783 * parse.y (check_class_key): New function.
4784 (structsp): Call it.
4785
bfba94bd
MM
47862002-03-01 Michael Matz <matz@suse.de>
4787
4788 * typeck.c (cp_pointer_int_sum): Complete inner type which is
4789 used later by size_in_bytes().
4790
fdc9bf29
PE
47912002-03-01 Phil Edwards <pme@gcc.gnu.org>
4792
4793 * cp-tree.h: Require __GNUC__ to be #defined.
4794 (build_init): Add missing prototype.
4795
6f30f1f1
JM
47962002-03-01 Jason Merrill <jason@redhat.com>
4797
4798 * except.c: Don't include decl.h or obstack.h. Do include
4799 tree-inline.h.
4800 (build_throw): Destroy temporaries from the thrown
500abaa8 4801 expression before calling __cxa_throw. Construct a thrown
6f30f1f1
JM
4802 temporary directly into the exception object.
4803 (stabilize_throw_expr): New function.
4804 (wrap_cleanups_r): New function.
4805 * tree.c (stabilize_expr): New function.
4806 * init.c (build_init): New function.
4807 * Make-lang.in (cp/except.o): Adjust .h deps.
4808
46cfb101
JM
48092002-02-28 Jason Merrill <jason@redhat.com>
4810
07f521fc
JM
4811 * search.c (lookup_base_r): Don't clear is_non_public just because
4812 we found a friendly scope.
4813
46cfb101
JM
4814 * decl.c (finish_function): Only warn about missing return
4815 statement with -Wreturn-type.
4816
63e1b1c4
NB
48172002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4818
4819 * class.c (build_clone): Update.
4820 * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4821 * cp-tree.h (cxx_dup_lang_specific_decl): New.
4822 * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
4823 (copy_decl): Update.
4824 * method.c (make_thunk): Update.
4825
f458d1d5
ZW
48262002-02-27 Zack Weinberg <zack@codesourcery.com>
4827
4828 * decl2.c: Delete traditional-mode-related code copied from
4829 the C front end but not used, or used only to permit the
4830 compiler to link.
4831
500abaa8 48322002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
3387d36e
CR
4833
4834 PR c++/4093
4835 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
4836 to void.
4837
25c8b645
JJ
48382002-02-22 Jakub Jelinek <jakub@redhat.com>
4839
4840 PR other/5746
4841 * semantics.c (finish_switch_cond): Don't call get_unwidened
4842 if error_mark_node.
4843
4f2b0fb2
NS
48442002-02-22 Nathan Sidwell <nathan@codesourcery.com>
4845
4846 PR c++/2645, DR 295
4847 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
4848 tf_keep_type_decl.
4849 (make_typename_type): Use tsubst_flags_t.
4850 * decl.c (make_typename_type): Adjust. Return non-artificial
4851 TYPE_DECLs, if required.
4852 (grokdeclarator): Simplify CVR qualification handling. Allow bad
4853 qualifiers on typedef types.
4854 * decl2.c (handle_class_head): Adjust make_typename_type call.
4855 * parse.y (nested_name_specifier): Likewise.
4856 (typename_sub0): Likewise.
4857 (typename_sub1): Likewise.
4858 * pt.c (convert_template_argument): Adjust make_typename_type
4859 return value.
4860 (tsubst): Adjust cp_build_qualified_type_real calls.
1a55127d 4861 (check_cv_quals_for_unify): Cope with allowing bad qualifications
4f2b0fb2
NS
4862 on template type parms.
4863 (instantiate_decl): Recheck substitutions to give warnings on bad
4864 qualifications.
4865 * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
4866
8fc2ba41
AH
48672002-02-21 Aldy Hernandez <aldyh@redhat.com>
4868
84d901be 4869 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8fc2ba41 4870
84d901be
AD
4871 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4872 unless DECL_ALWAYS_INLINE.
8fc2ba41 4873
7552da58
JJ
48742002-02-20 Jakub Jelinek <jakub@redhat.com>
4875
4876 * typeck.c (cp_pointer_int_sum): Renamed from
4877 pointer_int_sum, call pointer_int_sum.
4878
00fae85d
JJ
48792002-02-20 Jakub Jelinek <jakub@redhat.com>
4880
4881 * decl.c (duplicate_decls): Return 0 if issued error about
4882 redeclaration.
4883
6ea868b7
JM
48842002-02-19 Jason Merrill <jason@redhat.com>
4885
500abaa8 4886 ABI change: Mangle `void (A::*)() const' as
6ea868b7
JM
4887 M1AKFvvE, not MK1AFvvE.
4888 * mangle.c (write_function_type): Write cv-quals for member
4889 function type here.
4890 (write_pointer_to_member_type): Not here.
4891
c02f5e29
JM
48922002-02-18 Jason Merrill <jason@redhat.com>
4893
4894 * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
4895 (do_decl_instantiation): Likewise.
4896
624a5800
CR
48972002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
4898
4899 PR c++/5685
4900 * decl.c (duplicate_decls): Make warning unconditional
4901 if duplicate default argument declarations are present.
4902
f6f8ada3
JJ
49032002-02-17 Jakub Jelinek <jakub@redhat.com>
4904
4905 * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
4906 shortening.
4907
8d6e459d
NS
49082002-02-15 Nathan Sidwell <nathan@codesourcery.com>
4909
4910 * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
4911 remove incorrect comment. Move #if 0'd code to common path. Use
4912 IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
4913
ca4feb54
JM
49142002-02-13 Jason Merrill <jason@redhat.com>
4915
57d5032b
JM
4916 * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
4917 (finish_function): Don't warn if current_function_returns_null.
4918
bb26522d
JM
4919 * typeck2.c (digest_init): Do handle values of vector type.
4920
ca4feb54
JM
4921 * typeck2.c (digest_init, process_init_constructor): Treat vectors
4922 like arrays.
4923
e6b9638b
JM
49242002-02-11 Jason Merrill <jason@redhat.com>
4925
4926 * parse.y (reserved_declspecs): Don't handle attributes.
4927 (reserved_typespecquals): Handle them here.
4928 * Make-lang.in (parse.c): Adjust expected conflicts.
4929
1cf537c5
JJ
49302002-02-08 Jakub Jelinek <jakub@redhat.com>
4931
4932 * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
4933 instead of compstmt.
4934 (compstmt_or_stmtexpr): Renamed from compstmt.
4935 (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
4936
c2ea3a40
NS
49372002-02-07 Nathan Sidwell <nathan@codesourcery.com>
4938
4939 Rename instantiate_type_flags to tsubst_flags_t & expand use.
4940 * cp-tree.h (instantiate_type_flags): Rename to ...
4941 (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
4942 add tf_warning flag.
4943 (instantiate_type): Adjust prototype.
4944 (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
4945 do_type_instantiation, cp_build_qualified_type_real): Likewise.
4946 cp_build_qualified_type: Adjust.
4947 * class.c (instantiate_type): Adjust parameter. Rename itf_* to
4948 tf_*.
4949 * call.c (standard_conversion): Rename itf_* to tf_*.
4950 (reference_binding): Likewise.
4951 (convert_like_real): Likewise.
4952 * cvt.c (cp_convert_to_pointer): Likewise.
4953 (convert_to_reference): Likewise.
4954 * decl.c (lookup_namespace_name): Use tf_* flags.
4955 (make_typename_type): Likewise.
4956 (grokdeclarator): Likewise.
4957 * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
4958 (coerce_template_template_parms, convert_template_argument,
4959 coerce_template_parms, maybe_get_template_decl_from_type_decl,
4960 lookup_template_class, tsubst_friend_function, tsubst_friend_class,
500abaa8
AJ
4961 instantiate_class_template, tsubst_template_arg_vector,
4962 tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
c2ea3a40 4963 tsubst_decl, tsubst_arg_types, tsubst_function_type,
500abaa8 4964 tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
c2ea3a40 4965 instantiate_template, fn_type_unification,
500abaa8
AJ
4966 resolve_overloaded_unification, verify_class_unification,
4967 unify, get_bindings_real, do_type_instantiation,
4968 regenerate_decl_from_template, instantiate_decl,
c2ea3a40
NS
4969 tsubst_initializer_list, tsubst_enum,
4970 get_mostly_instantiated_function_type,
4971 invalid_nontype_parm_type_p): Likewise.
4972 * tree.c (cp_build_qualified_type_real): Likewise.
4973 * typeck.c (build_binary_op): Rename itf_* to tf_*.
4974 (build_ptrmemfunc): Likewise.
4975 (convert_for_assignment): Likewise.
4976
d5614afb
NS
49772002-02-07 Nathan Sidwell <nathan@codesourcery.com>
4978
4979 PR c++/109
4980 * decl.c (grokdeclarator): Allow friend declarations from
8d6e459d 4981 dependent types.
d5614afb
NS
4982 * decl2.c (handle_class_head): Don't push into template parm contexts.
4983 * pt.c (push_template_decl_real): Template parm contexts are never
4984 being defined.
4985
1af6141b
AO
49862002-02-05 Alexandre Oliva <aoliva@redhat.com>
4987
4988 * class.c: Include target.h.
4989 (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
4990 BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
4991 bit-field layout.
4992 * Make-lang.in: Adjust deps.
4993
d8a6f584
JM
49942002-02-05 Jason Merrill <jason@redhat.com>
4995
4996 * error.c (dump_type): Be more helpful about VECTOR_TYPE.
4997
6f9fdf4d
JJ
49982002-02-04 Jakub Jelinek <jakub@redhat.com>
4999
5000 * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
5001 (finish_switch_cond): Set SWITCH_TYPE.
5002
14691f8d
RH
50032002-02-04 Richard Henderson <rth@redhat.com>
5004
5005 * method.c (use_thunk): Always initialize the block tree. Reindent.
5006 * semantics.c (expand_body): Emit thunks after function, not before.
5007
e89a6075
JM
50082002-02-04 Jason Merrill <jason@redhat.com>
5009
5010 * decl.c (start_function): Call cplus_decl_attributes immediately
5011 after grokdeclarator.
5012
5013 * decl.c (start_function): Combine DECL_RESULT handling code.
5014
9780c24f
JM
50152002-02-03 Jason Merrill <jason@redhat.com>
5016
5017 * xref.c: Remove.
5018 * Make-lang.in (CXX_OBJS): Remove cp/xref.o
5019 (cp/xref.o): Remove dependencies.
5020 * class.c (finish_struct_1, check_methods): Don't call xref fns.
5021 (finish_struct_1): Likewise.
5022 * friend.c (make_friend_class): Likewise.
5023 * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
5024 * spew.c (read_process_identifier): Likewise.
5025
65f36ac8
JM
50262002-02-01 Jason Merrill <jason@redhat.com>
5027
efe49da0 5028 PR c++/4872
500abaa8 5029 * decl.c (finish_function): Warn about a non-void function with
efe49da0
JM
5030 no return statement and no abnormal exit.
5031 * cp-tree.h (struct cp_language_function): Add returns_abnormally.
5032 (current_function_returns_abnormally): New macro.
5033 * call.c (build_call): Set it.
5034
f2d9afec
JM
5035 * typeck.c (build_component_ref): Always complain about offsetof
5036 constructs on non-PODs. Only make it an error for members of
5037 virtual bases.
5038
65f36ac8
JM
5039 * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
5040 (dump_function_decl): Always dump parms.
5041
5042 * decl2.c (finish_static_data_member_decl): Complain about a local
5043 class with a static data member.
5044
5045 PR c++/4286
5046 * search.c (lookup_field_1): Don't xref a static data member
5047 just because we looked it up.
5048
98884b26
JM
50492002-01-31 Jason Merrill <jason@redhat.com>
5050
b88c0704
JM
5051 * Make-lang.in (parse.c): Handle .output file.
5052
a588fe25
JM
5053 PR c++/3395
5054 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
5055 not TREE_TYPE.
5056 * semantics.c (finish_class_definition): Adjust.
5057
98884b26
JM
5058 Allow attributes in parms and casts.
5059 * parse.y (named_parm): Don't strip attrs.
5060 (declmods): Remove 'attributes' production.
5061 (nonempty_cv_qualifiers): Accept attributes.
5062 (ATTRIBUTE): Give precedence.
5063 * decl.c (groktypename): Handle attributes.
5064 (grokparms): Likewise.
5065
ffdeea47
JJ
50662002-01-29 Jakub Jelinek <jakub@redhat.com>
5067
5068 * decl2.c (cxx_decode_option): Pass 0 as last argument to
5069 cpp_handle_option.
5070 * lang-specs.h: Use cpp_unique_options instead of cpp_options
5071 when used together with cc1_options.
5072
b8b98c66
NS
50732002-01-29 Nathan Sidwell <nathan@codesourcery.com>
5074
5075 PR c++/5132
5076 * typeck2.c (digest_init): Make sure non-array core type is
5077 instantiated.
5078 * decl2.c (reparse_absdcl_as_casts): Just store the type in the
5079 constructor, rather than build a new one.
5080 (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
5081 PURPOSE of constructor elts.
5082
7437519c
ZW
50832002-01-23 Zack Weinberg <zack@codesourcery.com>
5084
5085 * Make-lang.in (parse.c): Adjust expected number of
5086 shift-reduce conflicts.
5087 (decl.o): Depend on diagnostic.h.
5088 * decl.c: Include diagnostic.h.
5089 (grokdeclarator): Check for null pointer.
5090 (finish_function): Don't abort when
5091 current_binding_level->parm_flag != 1, if errors have
5092 occurred; throw away the statement tree and extra binding
5093 levels, and continue.
5094 * lex.c (note_list_got_semicolon): Check for null pointer.
5095 * method.c (hack_identifier): Just return error_mark_node if
5096 value is error_mark_node.
5097 * parse.y (primary: TYPEID(type_id)): No need to use
5098 TYPE_MAIN_VARIANT here.
5099 (handler_seq): Accept an empty list of catch clauses and
5100 generate a fake handler block to avoid later crashes.
5101 (ansi_raise_identifier): Accept the error token too.
5102 * semantics.c (begin_class_definition,
5103 finish_class_definition): Check for error_mark_node.
5104
c588e52b
ZW
51052002-01-23 Zack Weinberg <zack@codesourcery.com>
5106
5107 * typeck2.c (friendly_abort): Delete definition.
5108 * cp-tree.h (friendly_abort): Don't prototype.
5109 (my_friendly_assert): Use fancy_abort.
5110
d55ecaa4
CR
51112002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
5112
5113 * cp-tree.h (my_friendly_abort): Remove.
5114
0a01c261
JJ
51152002-01-23 Jakub Jelinek <jakub@redhat.com>
5116
5117 * spew.c (pending_inlines, pending_inlines_tail,
5118 processing_these_inlines): Make static.
5119 (mark_pending_inlines): Remove static.
5120 (begin_parsing_inclass_inline): If in function, save pi
5121 for GC to cp_function_chain->unparsed_inlines instead.
5122 (process_next_inline): Likewise.
5123 * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
5124 (mark_pending_inlines): Add prototype.
5125 * decl.c (spew_debug): Remove unused extern.
5126 (mark_lang_function): Call mark_pending_inlines.
5127
a98facb0
CR
51282002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
5129
c588e52b
ZW
5130 * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
5131 init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
5132 semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
a98facb0
CR
5133 Change my_fancy_abort() to abort().
5134
f893c16e
JM
51352002-01-23 Jason Merrill <jason@redhat.com>
5136
608afcc5
JM
5137 PR c++/5453
5138 * class.c (fixed_type_or_null): Fix thinko.
5139
f893c16e
JM
5140 PR c++/3331
5141 * init.c (resolve_offset_ref): Use build_indirect_ref.
6bc34b14 5142
b2115575
JM
5143 * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
5144
f893c16e
JM
51452002-01-22 Jason Merrill <jason@redhat.com>
5146
b5856475
JM
5147 * parse.y (function_body): Suppress the block for the outermost
5148 curly braces.
5149 * decl.c (pushdecl): Don't try to skip it.
5150 (begin_function_body): Keep the block we create, not the next one.
5151 * init.c (emit_base_init): Don't mess with keep_next_level.
5152
6bc34b14
JM
5153 * class.c (build_base_path): Tweak formatting.
5154
3807621a
NS
51552002-01-19 Nathan Sidwell <nathan@codesourcery.com>
5156
5157 Fix regression introduced with patch for c++/775
5158 * parse.y (class_head_defn): Check for template specializations
5159 with a different class-key.
5160
cdd2559c
JM
51612002-01-17 Jason Merrill <jason@redhat.com>
5162
5163 * decl.c (begin_constructor_body, begin_destructor_body): New fns.
5164 (begin_function_body): Call them and keep_next_level.
5165 * init.c (emit_base_init): Call keep_next_level.
5166 * semantics.c (setup_vtbl_ptr): Lose.
5167 * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
5168 (vtbls_set_up_p): Lose.
5169 * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
5170 * method.c (do_build_copy_constructor): Likewise.
5171 (synthesize_method): Call finish_mem_initializers.
5172 * parse.y (nodecls): Likewise.
ad6b1795
JM
5173
5174 * error.c (dump_type_suffix): Print the exception specs before
5175 recursing.
5176 (dump_function_decl): Here, too.
5177
5178 * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
5179
195a5def
IR
51802002-01-10 Ira Ruben <ira@apple.com>
5181
6bc34b14 5182 PR c++/907
195a5def
IR
5183 * decl.c (start_method): Handle attrlist.
5184
f21ee879
JJ
51852002-01-10 Jakub Jelinek <jakub@redhat.com>
5186
5187 * decl2.c (max_tinst_depth): Increase default limit to 500.
5188
51892002-01-10 Graham Stott <grahams@redhat.com>
8fabd4e2
GS
5190
5191 * spew.c (YYCHAR): Uppercase macro parameter and add
5192 parenthesis.
5193 (YYCODE): Likewise.
5194 (NAME): Uppercase macro parameter.
5195
c3af729a
GS
51962002-01-09 Graham Stott <grahams@redhat.com>
5197
6bc34b14 5198 * decl.h (grokdeclarator): Wrap long line.
5d8b4235 5199
c3af729a
GS
5200 * semantics.c (FINISH_COND): Uppercase macro paramaters and
5201 add parenthesis.
5202
91800747
GS
52032002-01-08 Graham Stott <grahams@redhat.com>
5204
5205 * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
5206 (PALLOC): Uppercase macro parameter and whitespace.
5207 (SALLOC): Uppercase macro parameter.
5208 (SFREE): Uppercase macros parameter, add parenthese and
5209 whitespace.
5210 (STREQL): Uppercase macro parameter and whitespace.
5211 (STRNEQ): Likewise.
5212 (STRLSS): Likewise.
5213 (STRLEQ): Likewise.
5214 (STRGTR): Likewise.
5215 (STRGEQ): Likewise.
5216
5217 * call.c (convert_like): Add parenthesis and wrap.
5218 (convert_like_with_context): Likewise.
5219 (ICS_RANK): Whitespace.
5220 (NEED_TEMPORARY_P): Remove parenthesis.
5221
5222 * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
5223 whitespace.
5224 (VTT_MARKED_BINFO_P): Likewise.
5225
5226 * decl.c (BINDING_LEVEL): Add parenthesis.
5227 (DEF_OPERATOR): Likewise.
5228
91800747
GS
5229 * mangle.c (MANGLE_TRACE): Add parenthesis.
5230 (MANGLE_TRACE_TREE): Likewise.
5231 (write_signed_number): Likewise.
5232 (write_unsigned_number): Likewise.
5233
5234 * pt.c (ccat): Uppercase macro parameter.
5235 (cat): Likewise
5236
5237 * search.c (SET_BINFO_ACCESS): Add parenthesis.
5238
15eb1e43
JM
52392002-01-07 Jason Merrill <jason@redhat.com>
5240
5241 * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
5242 to pedwarn.
5243
6bc34b14 5244 PR c++/3536
15eb1e43
JM
5245 * method.c (make_thunk): If !flag_weak, give the thunk the
5246 function's linkage.
5247 (use_thunk): Here, too.
5248
b34c06e3
GS
52492002-01-07 Graham Stott <grahams@redhat.com>
5250
6bc34b14
JM
5251 * error.c: Update copyright date.
5252 (print_scope_operator): Add parenthesis.
5253 (print_left_paren): Likewise.
5254 (print_right_paren): Likewise.
5255 (print_left_bracket): Likewise.
5256 (print_right_bracket): Likewise.
5257 (print_template_argument_list_start): Likewise.
5258 (print_template_argument_list_end): Likewise.
5259 (print_non_consecutive_character): Likewise.
5260 (print_tree_identifier): Likewise.
5261 (print_identifier): Likewise.
5262 (NEXT_CODE): Uppercase macro parameter.
5263 (ident_fndecl): Delete unused.
5264 (GLOBAL_THING): Likewise.
b34c06e3 5265
98e40e83
GS
52662002-01-06 Graham Stott <grahams@redhat.com>
5267
5268 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
5269 (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
5270 (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
5271 (RECORD_OR_UNION_TYPE_CHECK): Likewise.
5272 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
5273 (C_IS_RESERVED_WORD): Uppercase macro parameter.
5274 (C_RID_YYCODE) Likewise.
5275 (ptrmem_cst): Use rtx.
5276 (LOCAL_BINDING_P): Add whitespace.
5277 (INHERITED_VALUE_BINDING_P): Likewise.
5278 (BINDING_SCOPE): Wrap long line.
5279 (BINDING_HAS_LEVEL_P): Remove parenthesis.
5280 (BINDING_VALUE): Wrap long line.
5281 (BINDING_TYPE): Whitespace.
5282 (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
5283 (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
c588e52b 5284 (IDENTIFIER_NAMESPACE_VALUE): Likewise.
98e40e83
GS
5285 (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
5286 (same_type_p): Uppercase macro parameters.
5287 (same_type_ignoring_top_level_qualifiers_p): Likewise.
5288 (OVL_FUNCTION): Wrap long line.
5289 (OVL_CHAIN): Whitespace.
b34c06e3 5290 (OVL_CURRENT): Add parenthesis and whitespace.
98e40e83
GS
5291 (OVL_NEXT): Whitespace.
5292 (OVL_USED): Likewise.
5293 (IDENTIFIER_TYPE_VALUE): Likewise.
5294 (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
5295 (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
5296 (LANG_ID_FIELD): Whitespace.
5297 (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
5298 (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
5299 (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
5300 (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
5301 (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
5302 (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
5303 (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
5304 (IDENTIFIER_VIRTUAL_P): Likewise.
5305 (IDENTIFIER_OPNAME_P): Likewise.
5306 (IDENTIFIER_TYPENAME_P): Remove parenthesis.
5307 (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
5308 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5309 (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
5310 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
5311 (IS_AGGR_TYPE): Uppercase macro parameter.
5312 (CLASS_TYPE_P): Likewise.
5313 (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
5314 (IS_AGGR_TYPE_2): Whitespace.
5315 (TAGGED_TYPE_P): Uppercase macro parameter.
5316 (TYPE_BUILT_IN): Whitespace.
5317 (TYPE_FOR_JAVA): Likewise.
5318 (FUNCTION_ARG_CHAIN): Remove parenthesis.
5319 (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
5320 (FUNCTION_FIRST_USER_PARAM): Likewise.
5321 (PROMOTES_TO_AGGR_TYPE): Whitespace.
5322 (DERIVED_FROM_P): Add parenthesis and wrap.
5323 (UNIQUELY_DERIVED_FROM_P): Likewise.
5324 (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
5325 (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
5326 (CLASSTYPE_USE_TEMPLATE): Whitespace.
5327 (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
5328 (TYPE_GETS_DELETE): Add parenthesis.
5329 (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
5330 (TYPE_HAS_ASSIGN_REF): Likewise,
5331 (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
5332 (TYPE_HAS_INIT_REF): Likewise.
5333 (TYPE_HAS_CONST_INIT_REF): Likewise.
5334 (TYPE_BEING_DEFINED): Likewise.
5335 (TYPE_LANG_SPECIFIC): Likewise.
5336 (CLASSTYPE_RTTI): Likewise.
5337 (TYPE_OVERLOADS_CALL_EXPR): Likewise.
5338 (TYPE_OVERLOADS_ARRAY_REF): Likewise.
5339 (TYPE_OVERLOADS_ARROW): Likewise.
5340 (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
5341 (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
5342 (CLASSTYPE_METHOD_VEC): Likewise.
5343 (CLASSTYPE_MARKED_N): Likewise.
5344 (CLASSTYPE_MARKED): Likewise.
5345 (CLASSTYPE_MARKED2): Likewise.
5346 (CLASSTYPE_MARKED3): Likewise.
5347 (CLASSTYPE_MARKED4): Likewise.
5348 (CLASSTYPE_MARKED5): Likewise.
5349 (CLASSTYPE_MARKED6): Likewise.
5350 (SET_CLASSTYPE_MARKED): Whitespace.
5351 (CLEAR_CLASSTYPE_MARKED): Likewise.
5352 (SET_CLASSTYPE_MARKED2): Likewise.
5353 (CLEAR_CLASSTYPE_MARKED2): Likewise.
5354 (SET_CLASSTYPE_MARKED3): Likewise.
5355 (CLEAR_CLASSTYPE_MARKED3): Likewise.
5356 (SET_CLASSTYPE_MARKED4): Likewise.
5357 (CLEAR_CLASSTYPE_MARKED4): Likewise.
5358 (SET_CLASSTYPE_MARKED5): Likewise.
5359 (CLEAR_CLASSTYPE_MARKED5): Likewise.
5360 (SET_CLASSTYPE_MARKED6): Likewise.
5361 (CLEAR_CLASSTYPE_MARKED6): Likewise.
5362 (CLASSTYPE_TAGS): Likewise.
5363 (CLASSTYPE_VSIZE): Likewise.
5364 (CLASSTYPE_VBASECLASSES): Likewise.
5365 (CANONICAL_BINFO): Add parenthesis.
5366 (CLASSTYPE_SIZE(NODE): Likewise.
5367 (CLASSTYPE_SIZE_UNIT): Likewise.
5368 (CLASSTYPE_ALIGN(NODE): Likewise.
5369 (CLASSTYPE_USER_ALIGN): Likewise.
5370 (TYPE_JAVA_INTERFACE): Likewise.
5371 (CLASSTYPE_PURE_VIRTUALS): Likewise.
5372 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
5373 (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
5374 (CLASSTYPE_HAS_MUTABLE): Likewise.
5375 (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
5376 (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
5377 (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
5378 (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
5379 (CLASSTYPE_INTERFACE_ONLY): Likewise.
5380 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
5381 (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
5382 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
5383 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
5384 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
5385 (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
5386 (BINFO_UNSHARED_MARKED): Whitespace.
5387 (BINFO_MARKED): Whitespace and wrap.
5388 (SET_BINFO_MARKED): Likewise.
5389 (CLEAR_BINFO_MARKED): Likewise.
5390 (BINFO_VTABLE_PATH_MARKED): Likewise.
5391 (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
5392 (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
5393 (BINFO_SUBVTT_INDEX): Remove parenthesis.
5394 (BINFO_VPTR_INDEX): Likewise.
5395 (BINFO_PRIMARY_BASE_OF): Likewise,
5396 (CLASSTYPE_VFIELDS): Whitespace.
5397 (VF_DERIVED_VALUE): Wrap long line.
5398 (NAMESPACE_LEVEL): Whitespace.
6bc34b14
JM
5399 (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
5400 (DEFARG_POINTER): Whitespace.
5401 (DECL_NEEDED_P): Remove parenthesis.
5402 (DECL_LANGUAGE): Whitespace.
5403 (SET_DECL_LANGUAGE): Add parenthesis.
5404 (DECL_CONSTRUCTOR_P): Whitespace and wrap.
5405 (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
5406 (DECL_IN_AGGR_P): Whitespace.
5407 (DECL_FRIEND_P): Likewise.
5408 (DECL_BEFRIENDING_CLASSES): Likewise.
5409 (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
5410 (DECL_NONCONVERTING_P): Whitespace.
5411 (DECL_PURE_VIRTUAL_P): Likewise.
5412 (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
5413 (DECL_PENDING_INLINE_INFO): Whitespace.
5414 (DECL_SORTED_FIELDS): Likewise.
5415 (DECL_DEFERRED_FN): Likewise.
5416 (DECL_TEMPLATE_INFO): Likewise.
5417 (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
5418 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
5419 (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
5420 (TMPL_ARGS_LEVEL): Likewise.
5421 (SET_TMPL_ARGS_LEVEL): Likewise.
5422 (INNERMOST_TEMPLATE_PARMS): Whitespace.
5423 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
5424 (INTEGRAL_CODE_P(CODE): Add parenthesis.
5425 (CP_INTEGRAL_TYPE_P): Remove parenthesis.
5426 (TYPE_HAS_CONSTRUCTOR): Whitespace.
5427 (TREE_HAS_CONSTRUCTOR): Likewise.
5428 (TYPE_HAS_DESTRUCTOR): Likewise.
5429 (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
5430 (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
5431 (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
5432 (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
5433 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
5434 (TYPE_PTRMEMFUNC_P): Likewise.
5435 (TYPE_PTRMEMFUNC_FLAG): Likewise.
5436 (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
5437 (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
5438 (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
5439 (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
5440 (DECL_ACCESS): Whitespace.
5441 (DECL_GLOBAL_CTOR_P): Remove parenthesis.
5442 (DECL_GLOBAL_DTOR_P): Likewise.
5443 (GLOBAL_INIT_PRIORITY): Likewise.
98e40e83 5444 (DECL_TEMPLATE_PARMS): Likewise.
6bc34b14
JM
5445 (DECL_TEMPLATE_RESULT): Likewise.
5446 (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
5447 (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
5448 (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
5449 (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
5450 (PRIMARY_TEMPLATE_P): Add parenthesis.
5451 (DECL_USE_TEMPLATE): Whitespace.
5452 (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
5453 (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
5454 (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
5455 (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
5456 (CALL_DECLARATOR_PARMS): Remove parenthesis.
5457 (CALL_DECLARATOR_QUALS): Likewise.
5458 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
5459 (TEMP_NAME_P): Wrap.
5460 (VFIELD_NAME_P): Likewise.
5461 (B_SET): Uppercase macro parameters and add parenthesis.
5462 (B_CLR): Likewise.
5463 (B_TST): Likewise.
5464 (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
5465 (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
5466 (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
5467 (same_or_base_type_p): Likewise.
5468 (cp_deprecated): Likewise.
98e40e83 5469
c28abdf0
RH
54702002-01-05 Richard Henderson <rth@redhat.com>
5471
15eb1e43 5472 * semantics.c (expand_body): Revert last change.
c28abdf0 5473
f11ee281
JM
54742002-01-04 Jason Merrill <jason@redhat.com>
5475
195a5def 5476 PR c++/4122
f11ee281
JM
5477 * class.c (update_vtable_entry_for_fn): Set delta to zero for a
5478 lost primary.
5479
5480 * class.c (build_vtbl_initializer): Check for a lost primary
5481 before calculating the vtable entry to throw away.
5482
a4200657
JM
54832002-01-02 Jason Merrill <jason@redhat.com>
5484
5485 * semantics.c (expand_body): Call outlining_inline_function when
5486 emitting an inline function out of line.
5487
40e593d7
NS
54882002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5489
5490 PR c++/5116, c++/764 reversion
5491 * call.c (build_new_op): Revert the instantiations. They are
5492 incorrect.
c588e52b 5493
323728aa
NS
54942002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5495
5496 PR c++/5089
5497 * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
5498
46c895ac
NS
54992002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5500
5501 PR c++/3716
5502 * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
5503 (tsubst, case POINTER_TYPE): Handle pmfs here.
5504 (tsubst, case OFFSET_TYPE): Check it is not an offset to
5505 reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
5506
833aa4c4
NS
55072002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5508
5509 PR c++/35
5510 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
5511 (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
5512 * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
5513 PARM_DECL.
5514 (tsubst_template_parms): Break up loop statements.
5515 (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
5516 parm PARM_DECLs don't get promoted.
5517
18976b21
NS
55182002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5519
5520 PR c++/5123
5521 * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
5522 (build_x_function_call): Cope with a COMPONENT_REF containing a
5523 TEMPLATE_ID_EXPR.
5524
303d1c55
NS
55252002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5526
5527 PR c++/5213
5528 * pt.c (convert_template_argument): Be more careful determining
5529 when RECORD_TYPE templates are or are not templates.
5530
d46a33b3
NS
55312002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5532
5533 PR c++/775
5534 * cp-tree.h (handle_class_head): Adjust prototype.
5535 * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
5536 parameters. Use for all class heads.
5537 * parse.y (named_class_head_sans_basetype, named_class_head,
5538 named_complex_class_head_sans_basetype,
5539 named_class_head_sans_basetype_defn,
5540 unnamed_class_head): Remove.
5541 (class_head, class_head_apparent_template): Recognize class heads
5542 (class_head_decl, class_head_defn): New reductions. Process class
5543 heads.
5544 (structsp): Adjust class definition and class declaration
5545 reductions.
5546 (maybe_base_class_list): Give diagnostic on empty list.
5547
4542128e
NS
55482002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5549
5550 PR c++/4379
5551 * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
5552 single non-static member.
5553 (unary_complex_lvalue): If it cannot be a pointer to member, don't
5554 make it so. Check it is not pointer to reference.
5555
903c6234
NS
55562002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5557
5558 PR c++/5132
5559 * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
5560 are processing a template decl.
5561
477558bf
NS
55622002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5563
5564 PR c++/5116, c++/764
5565 * call.c (build_new_op): Make sure template class operands are
5566 instantiated. Simplify arglist construction.
5567
41f5d4b1
NS
55682001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5569
5570 * call.c (build_user_type_conversion_1): Use my_friendly_assert
5571 rather than if ... abort.
5572 * cvt.c (convert_to_reference): Likewise.
5573 * semantics.c (setup_vtbl_ptr): Likewise.
5574 * pt.c (lookup_template_class): Comment typo.
c588e52b 5575
f3368a90
NS
55762001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5577
5578 PR c++/5125
5579 * pt.c (push_template_decl_real): Make sure DECL has
5580 DECL_LANG_SPECIFIC.
5581
03c9c274
NS
55822001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5583
5584 PR c++/335
5585 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
5586 for non-reference fields.
5587 * typeck.c (require_complete_type): Use resolve_offset_ref).
5588
7d8e8369
NS
55892001-12-26 Nathan Sidwell <nathan@codesourcery.com>
5590
5591 PR c++/196
03c9c274 5592 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
7d8e8369 5593
a56ca899
NS
55942001-12-24 Nathan Sidwell <nathan@codesourcery.com>
5595
5596 PR c++/160
5597 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
5598 up. Don't stabilize_references when initializing a reference.
5599
0b5826ac
KG
56002001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5601
5602 * decl2.c (lang_f_options): Const-ify.
5603
38be19f6
JM
56042001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
5605
5606 * config-lang.in (diff_excludes): Remove.
5607
2e4cf9dc
NS
56082001-12-19 Nathan Sidwell <nathan@codesourcery.com>
5609
5610 PR c++/90
5611 * typeck.c (build_function_call_real): Use original function
5612 expression for errors.
5613
00e4119c
JM
56142001-12-18 Jason Merrill <jason@redhat.com>
5615
195a5def 5616 PR c++/3242
00e4119c
JM
5617 * class.c (add_method): Do compare 'this' quals when trying to match a
5618 used function. Don't defer to another used function.
5619
3ad97789
NS
56202001-12-18 Nathan Sidwell <nathan@codesourcery.com>
5621
5622 * pt.c (instantiate_clone): Remove, fold into ...
5623 (instantiate_template): ... here. Simplify by removing mutual
5624 recursion.
5625 * typeck2.c (build_m_component_ref): Don't cv qualify the function
5626 pointed to by a pointer to function.
5627 * class.c (delete_duplicate_fields_1): Typo.
5628
f21add07
JM
56292001-12-18 Jason Merrill <jason@redhat.com>
5630
5631 C++ ABI change: destroy value arguments in caller.
5632 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
5633 create an extra binding level for the parameters.
5634 * decl.c (store_parm_decls): Don't do parameter cleanups.
5635
ea50ad82
NS
56362001-12-18 Nathan Sidwell <nathan@codesourcery.com>
5637
5638 * call.c (build_new_method_call): Use '%#V'.
5639 * error.c (cv_to_string): Use V parameter to determine padding.
5640
3855d0d1
JM
56412001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
5642
5643 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
5644 spellings in messages.
5645
33bd39a2
ZW
56462001-12-17 Zack Weinberg <zack@codesourcery.com>
5647
5648 * cp-tree.h: Delete #defines for cp_error, cp_warning,
5649 cp_pedwarn, and cp_compiler_error.
5650 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
5651 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
5652 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
5653 typeck2.c: Change calls to the above macros to use their
5654 language-independent equivalents: error, warning, pedwarn, and
5655 internal_error respectively.
5656
317c26c3
NB
56572001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
5658
5659 * decl2.c (finish_file): Remove back_end_hook.
5660
aba649ba
JM
56612001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
5662
5663 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
5664 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
5665 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
5666
1737c953
JM
56672001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
5668
5669 * lang-options.h: Use American spelling in messages.
5670
4a90862e
JM
56712001-12-13 Jason Merrill <jason@redhat.com>
5672
ade3dc07
JM
5673 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
5674
5675 Use cleanups to run base and member destructors.
5676 * init.c (push_base_cleanups): New function, split out from...
5677 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
5678 * decl.c (finish_destructor_body): Move vbase destruction code to
5679 push_base_cleanups.
5680 (begin_function_body, finish_function_body): New fns.
5681 (finish_function): Move [cd]tor handling and call_poplevel to
5682 finish_function_body.
5683 (pushdecl): Skip the new level.
5684 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
5685 (setup_vtbl_ptr): Call push_base_cleanups.
5686 * method.c (synthesize_method): Call {begin,end}_function_body.
5687 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
5688 * cp-tree.h: Declare new fns.
5689 * parse.y (function_body, .begin_function_body): New nonterminals.
5690 (fndef, pending_inline, function_try_block): Use function_body.
5691 (ctor_initializer_opt, function_try_block): No longer has a value.
5692 (base_init): Remove .set_base_init token.
5693 (.set_base_init, compstmt_or_error): Remove.
5694 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
5695
4a90862e
JM
5696 * optimize.c (maybe_clone_body): Fix parameter updating.
5697
a0de9d20
JM
56982001-12-12 Jason Merrill <jason@redhat.com>
5699
5700 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
5701 * semantics.c (genrtl_start_function): Don't pass
5702 parms_have_cleanups or push an extra binding level.
5703 (genrtl_finish_function): Lose cleanup_label cruft.
5704
5705 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
5706 (ctor_label): Remove.
5707 * semantics.c (finish_return_stmt): Lose ctor_label support.
5708 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
33bd39a2 5709 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
a0de9d20
JM
5710 dtor_label.
5711
5712 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
5713 check for [cd]tors.
5714 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
5715
5716 * decl.c (finish_function): Check VMS_TARGET, not VMS.
5717
5718 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
5719 (end_cleanup_fn): And poplevel.
5720
5721 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
5722 if we're in a template.
5723
dc5c569a
JJ
57242001-12-12 Jakub Jelinek <jakub@redhat.com>
5725
5726 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
5727 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
5728 THIS_NAME_P): Delete.
5729 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
5730 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
5731 with internal naming scheme.
5732 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
5733
ad1a6d45
NS
57342001-12-12 Nathan Sidwell <nathan@codesourcery.com>
5735
5736 * decl.c (grokdeclarator): Deprecated implicit typename use.
5737
270d8c65
NS
57382001-12-11 Nathan Sidwell <nathan@codesourcery.com>
5739
5740 PR g++/51
5741 * parse.y (frob_specs): Indicate it is a language linkage which
5742 contained the extern.
5743 * decl.c (grokdeclarator): Allow extern language linkage with
5744 other specifiers.
5745
9aaceb4b
NS
57462001-12-10 Nathan Sidwell <nathan@codesourcery.com>
5747
5748 PR g++/72
5749 * decl.c (add_binding): Don't reject duplicate typedefs involving
5750 template parameters.
5751
a23c9413
NB
57522001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
5753
5754 * parse.y, semantics.c: Similarly.
5755
9aaceb4b 57562001-12-09 Nathan Sidwell <nathan@codesourcery.com>
271e6f02
NS
5757
5758 PR g++/87
5759 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
5760 (copy_args_p): Rename to ...
5761 (copy_fn_p): ... here.
5762 (grok_special_member_properties): New function.
5763 (grok_op_properties): Lose VIRTUALP parameter.
5764 (copy_assignment_arg_p): Remove.
5765 * call.c (build_over_call): Use copy_fn_p.
5766 * decl.c (grokfndecl): Reformat. Adjust call to
5767 grok_op_properties.
5768 (copy_args_p): Rename to ...
5769 (copy_fn_p): ... here. Reject template functions. Check for pass
5770 by value.
5771 (grok_special_member_properties): Remember special functions.
5772 (grok_ctor_properties): Don't remember them here, just check.
5773 (grok_op_properties): Likewise.
5774 (start_method): Call grok_special_member_properties.
5775 * decl2.c (grokfield): Likewise.
5776 (copy_assignment_arg_p): Remove.
5777 (grok_function_init): Don't remember abstract assignment here.
5778 * pt.c (instantiate_class_template): Call
5779 grok_special_member_properties.
5780 (tsubst_decl): Adjust grok_op_properties call.
5781
bdd8737f
AH
57822001-12-08 Aldy Hernandez <aldyh@redhat.com>
5783
33bd39a2
ZW
5784 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
5785 RID_TYPES_COMPATIBLE_P.
bdd8737f 5786
46af705a
JDA
57872001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5788
5789 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
5790 call to build_aggr_init.
5791 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
5792
cb97d97d
NB
57932001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
5794
5795 * parse.y: Replace uses of the string non-terminal with STRING.
5796 Don't perform string concatentaion here.
5797 (string): Remove non-terminal.
5798 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
5799
742a37d5
JM
58002001-12-05 Jason Merrill <jason@redhat.com>
5801
5802 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
5803 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
5804 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
5805 * pt.c (push_tinst_level): No longer static.
5806 * cp-tree.h: Declare them.
5807
5808 * init.c (resolve_offset_ref): Don't check access for the base
5809 conversion to access a FIELD_DECL.
5810
5811 * cp-tree.h (TYPE_REFFN_P): New macro.
5812 * decl.c (bad_specifiers): Check it, too.
5813
5814 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
5815 on the __*_type_info type if we haven't seen a definition.
5816
26f943fd
NB
58172001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
5818
5819 * decl.c: Include c-common.h.
5820 (shadow_warning): Move to c-common.c.
5821
37a08a29
RK
5822Wed Dec 5 17:00:49 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5823
5824 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
5825
9471d3e2
NS
58262001-12-04 Nathan Sidwell <nathan@codesourcery.com>
5827
5828 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
5829
713ccd0c
NS
58302001-12-04 Nathan Sidwell <nathan@codesourcery.com>
5831
5832 PR g++/164
5833 * init.c (sort_base_init): Allow binfos to be directly specified.
5834 * method.c (do_build_copy_constructor): Explicitly convert to the
5835 base instance.
5836 (do_build_assign_ref): Likewise.
5837
591382c4
HPN
58382001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
5839
5840 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
5841 declaration and initialization.
5842
c725bd79
NB
58432001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
5844
5845 * typeck2.c: Remove leading capital from diagnostic messages, as
5846 per GNU coding standards.
5847
a5d7c4a3
MK
58482001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
5849
5850 PR c++/3394
9fe038e8
HPN
5851 * decl.c (xref_basetypes): Handle attributes between
5852 'class' and name.
a5d7c4a3 5853
f1880e13
NS
58542001-12-03 Nathan Sidwell <nathan@codesourcery.com>
5855
5856 PR g++/3381
5857 * parse.y (named_complex_class_head_sans_basetype): Add new
5858 reduction.
5859 * Make-lang.in (parse.c): Adjust expected conflict count.
5860
ff668506
JM
58612001-12-03 Jason Merrill <jason@redhat.com>
5862
5863 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
5864 immediate binfos for our virtual bases.
5865
1f978f5f
NB
58662001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
5867
5868 * call.c (build_java_interface_fn_ref): Similarly.
5869 * except.c (is_admissible_throw_operand): Similarly.
5870 * init.c (build_java_class_ref): Similarly.
5871 * xref.c (open_xref_file): Similarly.
5872
357351e5
NB
58732001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
5874
5875 * class.c (finish_struct): Remove trailing periods from messages.
5876 * decl.c (check_tag_decl): Similarly.
5877 * lex.c (cxx_set_yydebug): Similarly.
5878 * typeck2.c (friendly_abort): Similarly.
5879
998979e6
MM
58802001-11-29 Mark Mitchell <mark@codesourcery.com>
5881
5882 PR c++/3048
5883 * cp-tree.h (ovl_member): Remove.
33bd39a2 5884 * decl2.c (merge_functions): Handle extern "C" functions
998979e6
MM
5885 specially.
5886 * tree.c (ovl_member): Remove.
5887
7d5b8b11
MM
58882001-11-29 Mark Mitchell <mark@codesourcery.com>
5889
5890 PR c++/4842
5891 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
5892 FUNCTION_DECL, as input.
5893 (mark_overriders): Remove.
5894 (warn_hidden): Rework for the new ABI.
5895
b67db529
MM
58962001-11-29 Mark Mitchell <mark@codesourcery.com>
5897
5898 PR c++/3471
5899 * call.c (convert_like_real): Do not build additional temporaries
5900 for rvalues of class type.
5901
2db1ab2d
NS
59022001-11-28 Nathan Sidwell <nathan@codesourcery.com>
5903
5904 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
5905 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
5906 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
5907 (DERIVED_FROM_P): Likewise.
5908 (enum base_access): Renumber, add ba_quiet bit mask.
5909 (get_binfo): Remove.
5910 (get_base_distance): Remove.
5911 (binfo_value): Remove.
5912 (ACCESSIBLY_DERIVED_FROM_P): Remove.
5913 * call.c (standard_conversion): Use lookup_base.
5914 * class.c (strictly_overrides): Likewise.
5915 (layout_virtual_bases): Likewise.
5916 (warn_about_ambiguous_direct_bases): Likewise.
5917 (is_base_of_enclosing_class): Likewise.
5918 (add_vcall_offset_vtbl_entries_1): Likewise.
5919 * cvt.c (build_up_reference): Adjust comment.
5920 * init.c (build_member_call): Reformat.
5921 * search.c (get_binfo): Remove.
5922 (get_base_distance_recursive): Remove.
5923 (get_base_distance): Remove.
5924 (lookup_base_r): Tweak.
5925 (lookup_base): Add ba_quiet control. Complete the types here.
5926 (covariant_return_p): Use lookup_base.
5927 * tree.c (binfo_value): Remove.
5928 (maybe_dummy_object): Use lookup_base.
5929 * typeck.c (build_static_cast): Use lookup_base.
5930 (get_delta_difference): Likewise.
5931 * typeck2.c (binfo_or_else): Use lookup_base.
5932 (build_scoped_ref): Add back error_mark_check.
5933 (build_m_component_ref): Use lookup_base.
5934
d3945f0a
JM
59352001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
5936
5937 * Make-lang.in (c++.generated-manpages): New dummy target.
5938
ac79cd5a
RK
5939Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5940
5941 * Make-lang.in (cp-lang.o): Depends on c-common.h.
5942 * cp-lang.c (c-common.h): Include.
5943 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
5944 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
5945 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
5946
4d6baafa
NB
59472001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
5948
5949 * decl2.c (c_language): Move to c-common.c.
5950 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
5951 functions.
5952 (cxx_init): Update.
5953
5b0c5896
JM
59542001-11-26 Jason Merrill <jason@redhat.com>
5955
5956 * call.c (joust): Remove COND_EXPR hack.
5957
4bdd26e6
AH
59582001-11-25 Aldy Hernandez <aldyh@redhat.com>
5959
195a5def 5960 * search.c (lookup_base_r): Declare bk in variable declaration
4bdd26e6 5961 space.
33bd39a2 5962
338d90b8
NS
59632001-11-25 Nathan Sidwell <nathan@codesourcery.com>
5964
5965 PR g++/3145
5966 * class.c (build_vbase_pointer): Remove.
5967 (build_vbase_path): Remove.
5968 (build_base_path): New function.
5969 * cp-tree.h (base_access, base_kind): New enumerations.
5970 (build_base_path): Declare.
5971 (convert_pointer_to_real): Remove.
5972 (convert_pointer_to): Remove.
5973 (lookup_base): Declare.
5974 (convert_pointer_to_vbase): Remove.
5975 * call.c (build_scoped_method_call): Use lookup_base &
5976 build_base_path instead of convert_pointer_to_real,
5977 get_base_distance & get_binfo.
5978 (build_over_call): Likewise.
5979 * cvt.c (cp_convert_to_pointer): Likewise.
5980 (convert_to_pointer_force): Likewise.
5981 (build_up_reference): Likewise.
5982 (convert_pointer_to_real): Remove.
5983 (convert_pointer_to): Remove.
5984 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
5985 instead of convert_pointer_to_vbase & build_vbase_path.
5986 (emit_base_init): Use build_base_path instead of
5987 convert_pointer_to_real.
5988 (expand_virtual_init): Lose unrequired conversions.
5989 (resolve_offset_ref): Use lookup_base and build_base_path
5990 instead of convert_pointer_to.
5991 * rtti.c (build_dynamic_cast_1): Use lookup_base &
5992 build_base_path instead of get_base_distance & build_vbase_path.
5993 * search.c (get_vbase_1): Remove.
5994 (get_vbase): Remove.
5995 (convert_pointer_to_vbase): Remove.
07f521fc 5996 (lookup_base_r): New function.
338d90b8
NS
5997 (lookup_base): New function.
5998 * typeck.c (require_complete_type): Use lookup_base &
5999 build_base_path instead of convert_pointer_to.
6000 (build_component_ref): Likewise.
6001 (build_x_function_call): Likewise.
6002 (get_member_function_from_ptrfunc): Likewise.
6003 (build_component_addr): Likewise.
6004 * typeck2.c (build_scoped_ref): Likewise.
6005
89d684bb
BM
60062001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6007
6008 * cp-tree.h (CP_TYPE_QUALS): Removed.
6009 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
33bd39a2 6010 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
89d684bb 6011 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
33bd39a2 6012 * dump.c (cp_dump_tree): Use void* dump_info argument to match
89d684bb
BM
6013 lang-hooks prototype.
6014 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
6015 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
6016 CP_TYPE_QUALS changed to cp_type_quals.
6017 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
6018 (CXX_C_OBJS): Remove c-dump.o.
6019
12eb9f93 60202001-11-21 Mark Mitchell <mark@codesourcery.com>
2d2e8123
MM
6021
6022 PR c++/3637
12eb9f93
MM
6023 * pt.c (lookup_template_class): Ensure that all specializations
6024 are registered on the list corresponding to the most general
6025 template.
6026
60272001-11-20 Mark Mitchell <mark@codesourcery.com>
6028
2d2e8123 6029 * call.c (non_reference): Add documentation.
33bd39a2 6030 (convert_class_to_reference): Do not strip reference types
2d2e8123
MM
6031 from conversion operators.
6032 (maybe_handle_ref_bind): Simplify.
6033 (compare_ics): Correct handling of references.
6034
78a40378
MM
60352001-11-19 John Wilkinson <johnw@research.att.com>
6036
6037 * dump.c (dump_op): New function.
6038 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
6039 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
6040 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
33bd39a2 6041
78a40378
MM
60422001-11-19 Mark Mitchell <mark@codesourcery.com>
6043
6044 PR4629
6045 * semantics.c (finish_sizeof): Make sure that expression created
6046 while processing a template do not have a type.
6047 (finish_alignof): Likewise.
6048 * typeck.c (c_sizeof): Likewise.
6049 (expr_sizeof): Likewise.
6050
22703ccc
NB
60512001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
6052
6053 * lex.c (cxx_finish): Call c_common_finish.
6054 (finish_parse): Remove.
6055
b3faacfd
KL
60562001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6057
6058 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
6059 when displaying error message about missing array bounds.
6060
873ff987
KL
60612001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6062
6063 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
6064 CONST_CAST_EXPR.
6065 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
6066
08f3a861
NB
60672001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
6068
6069 * cp-tree.h (print_class_statistics): Restore.
6070
8a2b77e7
JM
60712001-11-15 Jason Merrill <jason@redhat.com>
6072
3b1a4132
JM
6073 * method.c (use_thunk): Don't emit debugging information for thunks.
6074
8a2b77e7
JM
6075 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
6076 * decl.c (make_typename_type): Handle getting a class template.
6077 * search.c (lookup_field_r): A class template is good enough for
6078 want_type.
6079
6080 * call.c (convert_like_real): Only use cp_convert for the bad part.
6081 (standard_conversion): Also allow bad int->enum.
6082 * typeck.c (ptr_reasonably_similar): Also allow functions to
6083 interconvert. Pointers to same-size integers are reasonably
6084 similar.
6085
6086 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
6087 give it void type.
6088
36a68fe7
NS
60892001-11-15 Nathan Sidwell <nathan@codesourcery.com>
6090
6091 PR g++/3154
6092 * init.c (sort_base_init): Remove unreachable code.
6093 (expand_member_init): Adjust comment to reflect reality. Simplify
6094 and remove unreachable code.
6095
f5e99456
NB
60962001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
6097
6098 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
6099 (cxx_init): Update prototype.
6100 * decl.c (init_decl_processing): Rename. Move null node init
6101 to its creation time.
6102 * lex.c (cxx_init_options): Update.
6103 (cxx_init): Combine with old init_parse; also call
6104 cxx_init_decl_processing.
6105
fe5b6c1c
RS
61062001-11-14 Richard Sandiford <rsandifo@redhat.com>
6107
8a2b77e7
JM
6108 * decl.c (check_initializer): Try to complete the type of an
6109 array element before checking whether it's complete. Don't
6110 complain about arrays with complete element types but an
6111 unknown size.
6112 (cp_finish_decl): Build the hierarchical constructor before
6113 calling maybe_deduce_size_from_array_init.
fe5b6c1c 6114
77bd67cb
JM
61152001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
6116
6117 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
6118
b02922a4
NS
61192001-11-13 Nathan Sidwell <nathan@codesourcery.com>
6120
6121 PR g++/4206
6122 * parse.y (already_scoped_stmt): Remove.
6123 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
6124
abfc1ef6
L
61252001-11-12 H.J. Lu <hjl@gnu.org>
6126
195a5def 6127 * cvt.c (ocp_convert): Don't warn the address of a weak
abfc1ef6
L
6128 function is always `true'.
6129
5d69f816
NB
61302001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
6131
6132 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
6133 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
6134 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
6135 * cp-tree.h (print_class_statistics): Remove.
6136 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
6137 cxx_print_identifier, cxx_set_yydebug): New.
6138 * lex.c (set_yydebug): Rename c_set_yydebug.
6139 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
6140 lang_print_xnode): Rename.
6141 * tree.c (print_lang_statistics): Rename.
6142
4fdc14ca
KG
61432001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6144
6145 * class.c (dump_array): Fix format specifier warning.
6146
3ac88239
NB
61472001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
6148
6149 * cp-lang.c (LANG_HOOKS_NAME): Override.
6150 (struct lang_hooks): Constify.
6151 * lex.c (cxx_init_options): Update.
6152 (lang_identify): Remove.
33bd39a2 6153 * parse.y (language_string): Remove.
3ac88239 6154
b21d216c
AF
61552001-11-08 Andreas Franck <afranck@gmx.de>
6156
6157 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
6158 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
6159 suggested by autoconf.
6160 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
6161 (c++.install-common): Use the transformed target alias names.
6162
d23c55c2
NB
61632001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
6164
6165 * Make-lang.in: Update.
6166 * cp-lang.c: Include langhooks-def.h.
6167
2a2b1d56
KL
61682001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6169
6170 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
6171
76648a8b
KG
61722001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6173
6174 * lex.c (copy_lang_type): Add static prototype.
6175
fccef71e
KL
61762001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6177
6178 * pt.c (unify): Handle SCOPE_REF.
6179
19989812
JJ
61802001-11-01 Jakub Jelinek <jakub@redhat.com>
6181
6182 * tree.c (cp_copy_res_decl_for_inlining): Adjust
6183 DECL_ABSTRACT_ORIGIN for the return variable.
6184
5b7874aa
ZW
61852001-10-31 Zack Weinberg <zack@codesourcery.com>
6186
6187 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
6188
306ef644
JM
61892001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
6190
6191 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
6192 semantics.c, spew.c: Fix spelling errors.
6193
76543000
KL
61942001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6195
6196 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
6197
37207ee7
ZW
61982001-10-25 Zack Weinberg <zack@codesourcery.com>
6199
6200 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
6201 pop_everything.
6202
8ac61af7
RK
6203Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6204
6205 * cp-lang.c (cxx_get_alias_set): New function.
6206 Point LANG_HOOKS_GET_ALIAS_SET to it.
6207
f1e09fa2 62082001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
b8c6534b
KL
6209
6210 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
6211 * cp-tree.h (make_unbound_class_template): Prototype new function.
6212 * decl.c (make_unbound_class_template): New function.
6213 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
6214 * error.c (dump_type): Likewise.
6215 * mangle.c (write_type): Likewise.
6216 * parse.y (template_parm): Likewise.
6217 (template_argument): Use make_unbound_class_template.
6218 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
6219 (tsubst): Likewise.
6220 (tsubst_copy): Likewise.
6221 (unify): Likewise.
6222 * tree.c (walk_tree): Likewise.
6223 * typeck.c (comptypes): Likewise.
6224
0df6c2c7
KG
62252001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6226
6227 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
6228 extra calls into fewer ones.
6229
97055d5c
AO
62302001-10-18 Alexandre Oliva <aoliva@redhat.com>
6231
6232 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
6233 Warn when merging inline with attribute noinline.
6234 (start_decl, start_function): Warn if inline and attribute
6235 noinline appear in the same declaration.
6236
b5823a44
L
62372001-10-16 H.J. Lu <hjl@gnu.org>
6238
6239 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
6240 for tree checking disabled.
6241
dc8ad298
HPN
62422001-10-16 Hans-Peter Nilsson <hp@axis.com>
6243
6244 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
6245 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
6246
d9f818d9
RS
62472001-10-15 Richard Sandiford <rsandifo@redhat.com>
6248
6249 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
6250 (unify): Only handle MINUS_EXPR specially if the above flag is set
6251 and the subtracted constant is 1. Clear the flag on recursive calls.
6252 Set it when unifying the maximum value in an INTEGER_TYPE's range.
6253
e1be26f4
RS
62542001-10-15 Richard Sandiford <rsandifo@redhat.com>
6255
6256 * decl.c (bad_specifiers): Don't allow exception specifications
6257 on any typedefs.
6258
a5da89c6
NB
62592001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
6260
6261 * cp/lex.c (init_cp_pragma): Similarly.
6262
4f96ff63
KL
62632001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6264
6265 * pt.c (lookup_template_class): Build complete template arguments
6266 for BOUND_TEMPLATE_TEMPLATE_PARM.
6267
11e74ea6
KL
62682001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6269
6270 * cp-tree.h (TYPE_BINFO): Update comment.
6271 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
6272 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
6273 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
6274 (copy_type): Prototype new function.
6275 * lex.c (copy_lang_decl): Gather tree node statistics.
6276 (copy_lang_type): New function.
6277 (copy_type): Likewise.
6278 (cp_make_lang_type): Create lang_type for
6279 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
6280 and BOUND_TEMPLATE_TEMPLATE_PARM.
6281 * pt.c (tsubst): Use copy_type instead of copy_node.
6282 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
6283
f5d47abd
KL
62842001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6285
6286 * pt.c (determine_specialization): Ignore functions without
6287 DECL_TEMPLATE_INFO.
6288
e60505a5
NS
62892001-10-12 Nathan Sidwell <nathan@codesourcery.com>
6290
6291 PR g++/4476
6292 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
6293
6f32162a
JM
62942001-10-11 Jason Merrill <jason_merrill@redhat.com>
6295
6296 * typeck2.c (store_init_value): Don't re-digest a bracketed
6297 initializer.
6298
6299 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
6300 ANON_AGGR_TYPE_P.
6301
4a8d0c9c
RH
63022001-10-11 Richard Henderson <rth@redhat.com>
6303
6304 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
6305 of an asm statement.
6306 (build_vtbl_ref_1): Split out from build_vtbl_ref.
6307 (build_vfn_ref): Use it to handle vtable descriptors before
6308 calling build_vtable_entry_ref.
6309 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
6310
84b72302
RH
63112001-10-10 Richard Henderson <rth@redhat.com>
6312
37207ee7 6313 * parse.y (asm_operand): Allow named operands.
84b72302 6314 * semantics.c (finish_asm_stmt): Tweek for changed location
4639c5c6 6315 of the operand constraint.
84b72302 6316
48c8b0be 63172001-10-09 Jason Merrill <jason_merrill@redhat.com>
72a08131
JM
6318
6319 * call.c (standard_conversion): Add bad conversion between
6320 integers and pointers.
6321 (convert_like_real): Don't use convert_for_initialization for bad
6322 conversions; complain here and use cp_convert.
6323 (build_over_call): Don't handle bad conversions specially.
6324 (perform_implicit_conversion): Allow bad conversions.
6325 (can_convert_arg_bad): New fn.
6326 * cp-tree.h: Declare it.
6327 * typeck.c (convert_for_assignment): Use it.
6328 (ptr_reasonably_similar): Any target type is similar to void.
6329
19551f29
AO
63302001-10-08 Alexandre Oliva <aoliva@redhat.com>
6331
6332 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
6333 (cp/cp-lang.o): New rule.
6334 * cp-tree.h: Declare hooks.
6335 * tree.c: Make hooks non-static.
6336 (init_tree): Don't initialize hooks here.
6337 * lex.c: Likewise. Move definition of lang_hooks to...
6338 * cp-lang.c: ... new file.
6339
31ed8fea
RH
63402001-10-08 Richard Henderson <rth@redhat.com>
6341
6342 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
6343 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
6344
8b60264b
KG
63452001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6346
6347 * class.c (build_vtable_entry_ref): Const-ify.
6348 * decl.c (predefined_identifier,
37207ee7 6349 initialize_predefined_identifiers): Likewise.
8b60264b
KG
6350 * init.c (build_new_1): Likewise.
6351 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
6352 Likewise.
6353
bc4c7159
AO
63542001-10-05 Alexandre Oliva <aoliva@redhat.com>
6355
6356 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
6357 (INSNS_PER_STMT): Likewise.
6358 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
6359 (copy_body, initialize_inlined_parameters): Likewise.
6360 (declare_return_variable, inlinable_function_p): Likewise.
6361 (expand_call_inline, expand_calls_inline): Likewise.
6362 (optimize_inline_calls, clone_body): Likewise.
6363 * tree.c (walk_tree): Moved to ../tree-inline.c.
6364 (walk_tree_without_duplicates): Likewise.
6365 (copy_tree_r, remap_save_expr): Likewise.
6366
25af8512
AO
63672001-10-04 Alexandre Oliva <aoliva@redhat.com>
6368
6369 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
6370 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
6371 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
6372 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
6373 (flag_inline_trees): Moved declaration to ../tree-inline.h.
6374 (walk_tree): Moved declaration to ../tree-inline.h.
6375 (walk_tree_without_duplicates, copy_tree_r): Likewise.
6376 (remap_save_expr): Likewise.
6377 * decl.c: Include tree-inline.h.
6378 (lang_mark_tree): Don't mark inlined_fns.
6379 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
6380 * optimize.c: Include tree-inline.h.
6381 (optimize_inline_calls): Move declaration to ../tree.h, as
6382 non-static.
6383 (remap_decl): Use language-independent constructs and hooks.
6384 (remap_block, copy_body_r, declare_return_variable): Likewise.
6385 (inlinable_function_p): Likewise. Don't test for
6386 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
6387 no longer language-specific.
6388 (optimize_inline_calls): Likewise. Make it non-static. Moved
6389 call of dump_function to...
6390 (optimize_function): Here...
6391 (clone_body): New function, extracted from...
6392 (maybe_clone_body): ... here. Build decl_map locally and pass
6393 it on to clone_body.
6394 * pt.c, semantics.c: Include tree-inline.h.
6395 * tree.c: Likewise.
6396 (cp_walk_subtrees): New language-specific hook for tree inlining.
6397 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
6398 cp_is_overload_p, cp_auto_var_in_fn_p,
6399 cp_copy_res_decl_for_inlining): Likewise.
6400 (walk_tree): Move language-specific constructs into...
6401 (cp_walk_subtrees): this new function.
6402 (copy_tree_r): Use language-independent constructs and hooks.
6403 (init_tree): Initialize tree inlining hooks.
6404 (remap_save_expr): Adjust prototype so that the declaration
6405 does not require the definition of splay_tree.
6406
6a4af81f
JDA
64072001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6408
6409 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
6410 to build the declaration instead of the declaration itself.
6411
0caee1c6
JM
64122001-10-02 Jason Merrill <jason_merrill@redhat.com>
6413
48c8b0be
JM
6414 * decl2.c (cxx_decode_option): Add 'else'.
6415
0caee1c6
JM
6416 * spew.c (end_input): No longer static.
6417 * cp-tree.h: Declare it.
6418 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
6419
80a497e4
JM
64202001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6421
6422 * call.c (build_over_call), typeck.c (build_function_call_real):
6423 Pass type attributes to check_function_format rather than name or
6424 assembler name. Don't require there to be a name or assembler
6425 name to check formats.
6426
6431177a
JM
64272001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
6428
6429 * decl.c (init_decl_processing): Don't call
6430 init_function_format_info. Initialize lang_attribute_table
6431 earlier.
6432 (builtin_function): Call decl_attributes.
6433 (insert_default_attributes): New.
6434
55b3d665
JM
64352001-10-01 Jason Merrill <jason_merrill@redhat.com>
6436
6437 * decl.c (grokdeclarator): Copy array typedef handling from C
6438 frontend.
6439
6440 * decl.c (grokdeclarator): Copy too-large array handling from C
6441 frontend.
6442
9f57ca19
AO
64432001-09-29 Alexandre Oliva <aoliva@redhat.com>
6444
6445 * config-lang.in (target_libs): Added target-gperf, so that we
6446 don't try to build it if C++ is disabled.
6447
749ced52
ZW
64482001-09-23 Zack Weinberg <zack@codesourcery.com>
6449
6450 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
6451 (cp/errfn.o): Delete rule.
6452 (cp/error.o): Depend on flags.h.
6453 * errfn.c: Delete file.
6454 * cp-tree.h: Declare warn_deprecated. Remove definitions of
6455 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
6456 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
6457 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
6458 internal_error respectively. Make cp_deprecated into a macro.
6459 Don't define cp_printer typedef or declare cp_printers.
6460 * error.c: Include flags.h.
6461 Delete: struct tree_formatting_info, print_function_argument_list,
6462 print_declaration, print_expression, print_function_declaration,
6463 print_function_parameter, print_type_id, print_cv_qualifier_seq,
6464 print_type_specifier_seq, print_simple_type_specifier,
6465 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
6466 print_parameter_declaration_clause, print_exception_specification,
6467 print_nested_name_specifier, and definition of cp_printers.
6468 (locate_error): New function.
6469 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
6470 rewritten in terms of locate_error and diagnostic.c.
6471 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
6472 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
6473 (init_error): Adjust to match.
6474
bb9f8221
RK
6475Sat Sep 22 09:15:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6476
6477 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
6478
67231816
RH
64792001-09-21 Richard Henderson <rth@redhat.com>
6480
6481 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
6482 (build_vtbl_initializer): Likewise.
6483 (build_vfn_ref): New.
6484 * cp-tree.h: Declare it.
6485 * call.c (build_over_call): Use it.
6486 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
6487 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
6488
c9574c9f
R
6489Fri Sep 21 08:16:19 2001 J"orn Rennecke <amylaar@redhat.com>
6490
6491 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
6492
91d231cb
JM
64932001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
6494
6495 Table-driven attributes.
6496 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6497 * decl2.c (cplus_decl_attributes): Only take one attributes
6498 parameter.
6499 * cp-tree.c (cplus_decl_attributes): Update prototype.
6500 * class.c (finish_struct), decl.c (start_decl, start_function),
6501 decl2.c (grokfield), friend.c (do_friend), parse.y
6502 (parse_bitfield): Update calls to cplus_decl_attributes.
6503 * decl.c (grokdeclarator): Take a pointer to a single ordinary
6504 attribute list.
6505 * decl.h (grokdeclarator): Update prototype.
6506 * decl2.c (grokfield): Take a single ordinary attribute list.
6507 * friend.c (do_friend): Likewise.
6508 * decl.c (shadow_tag, groktypename, start_decl,
6509 start_handler_parms, grokdeclarator, grokparms, start_function,
6510 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
6511 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
6512 (process_template_parm, do_decl_instantiation): Pass single
6513 ordinary attribute lists around.
6514 * decl.c (grokdeclarator): Correct handling of nested attributes.
6515 Revert the patch
6516 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
6517 * decl.c (grokdeclarator): Embedded attrs bind to the right,
6518 not the left.
6519 .
6520 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
6521 (cp_attribute_table): Declare.
6522 * decl.c (valid_lang_attribute): Don't define.
6523 (lang_attribute_table): Define.
6524 (init_decl_processing): Initialize lang_attribute_table instead of
6525 valid_lang_attribute.
6526 * tree.c (cp_valid_lang_attribute): Remove.
6527 (handle_java_interface_attribute, handle_com_interface_attribute,
6528 handle_init_priority_attribute): New functions.
6529 (cp_attribute_table): New array.
6530 * decl2.c (import_export_class): Don't use
6531 targetm.valid_type_attribute.
6532
a1bda5f1
GDR
65332001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6534
e6b9638b
JM
6535 * Make-lang.in (cp/error.o): Depend on real.h
6536 * error.c: #include "real.h"
a1bda5f1 6537
cb6edbcb
KG
65382001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6539
6540 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
6541 xmalloc/strcpy/strcat.
6542
83182544
KG
65432001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6544
6545 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
6546 Const-ification.
6547 * pt.c (tsubst_decl): Likewise.
6548
40008eda
KG
65492001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6550
6551 * decl2.c (lang_f_options): Const-ification.
6552 * lex.c (cplus_tree_code_name): Likewise.
6553 * spew.c (yyerror): Likewise.
6554
39e78d8b
NS
65552001-09-06 Nathan Sidwell <nathan@codesourcery.com>
6556
6557 PR c++/3986
6558 * class.c (force_canonical_binfo_r): Check & move an indirect
6559 primary base first.
6560 (force_canonical_binfo): Check that it's not already
6561 canonical.
6562 (mark_primary_virtual_base): Remove BINFO parameter.
6563 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
6564
6d0a3f67
NS
65652001-09-06 Nathan Sidwell <nathan@codesourcery.com>
6566
6567 Remove TYPE_NONCOPIED_PARTS.
6568 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
6569 CLASSTYPE_PURE_VIRTUALS.
6570 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
6571 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
72a08131 6572 (layout_class_type): Don't call fixup_inline_methods here ...
6d0a3f67
NS
6573 (finish_struct_1): ... call it here.
6574
4f8e1232
MM
65752001-09-04 Mark Mitchell <mark@codesourcery.com>
6576
6577 * decl.c (duplicate_decls): Remove code deadling with
6578 DECL_SAVED_INSNS.
6579 * decl2.c (finish_file): Likewise.
6580 * pt.c (instantiate_decl): Likewise.
6581 * semantics.c (expand_body): Don't defer local functions if
6582 they wouldn't be deferred for some other reason. Don't
6583 generate RTL for functions that will not be emitted.
6584 (genrtl_start_function): Remove code deadling with
6585 DECL_SAVED_INSNS.
6586 (genrtl_finish_function): Likewise.
6587
da86f08f
NS
65882001-09-04 Nathan Sidwell <nathan@codesourcery.com>
6589
6590 PR c++/4203
6591 * call.c (build_over_call): Do not optimize any empty base
6592 construction.
6593
38066e83
KL
65942001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6595
6596 * error.c (dump_template_decl): Output template parameters
6597 together with their specifiers.
6598 Output `class' prefix for template template parameter.
6599 (dump_decl): Fix formatting.
6600
598e9ba5 66012001-08-30 Kurt Garloff <garloff@suse.de>
749ced52 6602
598e9ba5
KG
6603 * optimize.c (inlinable_function_p): Allow only smaller single
6604 functions. Halve inline limit after reaching recursive limit.
749ced52 6605
f232e4a5
JR
66062001-08-30 Joern Rennecke <amylaar@redhat.com>
6607 Jason Merrill <jason_merrill@redhat.com>
6608
6609 * class.c (build_vtable_entry_ref): Subtract in char*, not
6610 ptrdiff_t.
6611
0213a355
JM
66122001-08-23 Jason Merrill <jason_merrill@redhat.com>
6613
6614 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
6615 (build_cplus_array_type): Use cp_build_qualified_type, not
6616 TYPE_MAIN_VARIANT, to get an unqualified version.
6617
6618 * decl2.c (grok_alignof): Lose.
6619 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
6620 * typeck.c (c_alignof): Lose.
6621 * semantics.c (finish_sizeof, finish_alignof): New.
6622 * parse.y: Use them.
6623 * cp-tree.h: Declare them.
6624
fd10dd09
JM
66252001-08-22 Jason Merrill <jason_merrill@redhat.com>
6626
6627 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
6628 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
6629 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
6630
baeb4732
JJ
66312001-08-19 Jakub Jelinek <jakub@redhat.com>
6632
6633 * typeck2.c (add_exception_specifier): Only require complete type if
6634 not in processing template declaration.
6635
1c0cc57e
KG
66362001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6637
6638 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
6639 GNU_xref_start_scope and GNU_xref_end_scope.
6640
6641 * tree.c (TYPE_HASH): Moved to ../tree.h.
6642
9a52d09b
MM
66432001-08-16 Mark Mitchell <mark@codesourcery.com>
6644
6645 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
6646 on COMPOUND_EXPRs.
6647
b5d1cbd2
RH
66482001-08-14 Richard Henderson <rth@redhat.com>
6649
6650 * class.c, cp-tree.h (build_vfn_ref): Remove.
6651 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
6652
63d6f87a
MM
66532001-08-13 Mark Mitchell <mark@codesourcery.com>
6654
6655 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
6656 empty class assignment as having side-effects to avoid
6657 spurious warnings.
6658
e78d8e51
ZW
66592001-08-13 Zack Weinberg <zackw@panix.com>
6660
6661 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
6662 * except.c: Include libfuncs.h.
6663
a60af04a
GDR
66642001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6665
6666 * decl.c (grokdeclarator): Clarify diagnostic message.
6667
3605b283
KL
66682001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6669
6670 * decl2.c (do_nonmember_using_decl): Replace using directive
6671 with using declaration in the error message.
6672
4d5f3fbd
KL
66732001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6674
6675 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
6676 criterion to avoid rebuilding expression tree instead of
6677 processing_template_decl.
6678
07b2f2fd
JM
66792001-08-07 Jason Merrill <jason_merrill@redhat.com>
6680
6681 Support named return value optimization for inlines, too.
6682 * decl.c (finish_function): Nullify returns here.
6683 * semantics.c (genrtl_start_function): Not here.
6684 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
6685 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
6686 Also nullify the CLEANUP_STMT for the nrv.
6687 * cp-tree.h: Declare it.
6688 * optimize.c (declare_return_variable): Replace the nrv with the
6689 return variable.
6690 * typeck.c (check_return_expr): Be more flexible on alignment check.
6691 Ignore cv-quals when checking for a matching type.
6692
2cc07db4
RH
66932001-08-09 Richard Henderson <rth@redhat.com>
6694
6695 * decl2.c (finish_objects): Use target hooks instead of
6696 assemble_constructor and assemble_destructor.
6697
0ca179b2
JDA
66982001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6699
6700 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
6701
0830ae44
NS
67022001-08-07 Nathan Sidwell <nathan@codesourcery.com>
6703
6704 PR c++/3820
6705 Stop using TYPE_NONCOPIED_PARTS.
6706 * call.c (build_over_call): Be careful when copy constructing
6707 or assigning to an empty class.
6708 * class.c (check_bases_and_members): It has a
6709 COMPLEX_ASSIGN_REF if it has a vptr.
6710 (layout_class_type): Don't add empty class padding to
6711 TYPE_NONCOPIED_PARTS.
6712 (finish_struct_1): Don't add the VFIELD either.
6713 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
6714 initialization.
6715
59a13e0f
JM
67162001-08-07 Jason Merrill <jason_merrill@redhat.com>
6717
6718 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
6719
47907859
RH
67202001-08-06 Richard Henderson <rth@redhat.com>
6721
6722 * decl2.c (finish_objects): Pass a symbol_ref and priority to
6723 assemble_{constructor,destructor}. Remove priority handling.
6724
eac69b8a
GDR
67252001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6726
6727 Don't allow template-id in using-declaration.
6728 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
6729 (do_class_using_decl): Likewise.
6730
ef6e958a
NB
67312001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
6732
6733 * cp/spew.c (read_token): No need to pop buffers.
6734
dff94ad7
SS
67352001-08-02 Stan Shebs <shebs@apple.com>
6736
6737 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
6738 (fnaddr_from_vtable_entry): Remove decl.
6739 * method.c (use_thunk): Update comment.
6740
026c3f13
AC
67412001-08-01 Andrew Cagney <ac131313@redhat.com>
6742
6743 * repo.c (get_base_filename): Change return value to const char
6744 pointer.
6745
1dbb6023
NS
67462001-08-02 Nathan Sidwell <nathan@codesourcery.com>
6747
6748 Kill -fhonor-std.
6749 * NEWS: Document.
6750 * cp-tree.h (flag_honor_std): Remove.
6751 (CPTI_FAKE_STD): Remove.
6752 (std_node): Remove comment about it being NULL.
6753 (fake_std_node): Remove.
6754 * decl.c (in_fake_std): Remove.
6755 (walk_namespaces_r): Remove fake_std_node check.
6756 (push_namespace): Remove in_fake_std code.
6757 (pop_namespace): Likewise.
6758 (lookup_name_real): Remove fake_std_node check.
6759 (init_decl_processing): Always create std_node. Always add
6760 std:: things there.
6761 (builtin_function): Always put non '_' fns in std.
6762 * decl2.c (flag_honor_std): Remove.
6763 (lang_f_options): Remove honor-std.
6764 (unsupported_options): Add honor-std.
6765 (set_decl_namespace): Remove fake_std_node check.
6766 (validate_nonmember_using_decl): Likewise.
6767 (do_using_directive): Likewise.
6768 (handle_class_head): Likewise.
6769 * dump.c (cp_dump_tree): Likewise.
6770 * except.c (init_exception_processing): Adjust.
6771 * init.c (build_member_call): Remove fake_std_node check.
6772 (build_offset_ref): Likewise.
6773 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
6774 * rtti.c (init_rtti_processing): Adjust.
6775
6ad7895a
APB
67762001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
6777
6778 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
6779 operand while calling cp_tree_equal.
6780
befe7c61
NS
67812001-07-31 Nathan Sidwell <nathan@codesourcery.com>
6782
6783 The 3.0 ABI no longer has vbase pointer fields.
6784 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
6785 FORMAT_VBASE_NAME): Remove.
6786 * method.c (do_build_copy_constructor): Adjust.
6787 (do_build_assign_ref): Adjust.
6788 * search.c (lookup_field_r): Adjust.
6789 * typeck.c (build_component_ref): Adjust.
6790
6791 The 3.0 ABI always has a vtable pointer at the start of every
6792 polymorphic class.
6793 * rtti.c (build_headof_sub): Remove.
6794 (build_headof): Adjust.
6795 (get_tinfo_decl_dynamic): No need to check flag_rtti
6796 here. Adjust.
6797 (create_real_tinfo_var): Explain why we need a hidden name.
6798
20dde49d
NS
67992001-07-31 Nathan Sidwell <nathan@codesourcery.com>
6800
6801 PR c++/3631
6802 * class.c (update_vtable_entry_for_fn): The fixed adjustment
6803 of a virtual thunk should be from declaring base.
6804
b7ad2f8b
NS
68052001-07-31 Nathan Sidwell <nathan@codesourcery.com>
6806
6807 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
6808 the shared virtual base, so preserving inheritance graph order.
6809
57cb6d52
AJ
68102001-07-30 Andreas Jaeger <aj@suse.de>
6811
749ced52 6812 * decl2.c: Remove unused var global_temp_name_counter.
57cb6d52 6813
594280a3
RH
68142001-07-28 Richard Henderson <rth@redhat.com>
6815
6816 * method.c (pending_inlines): Remove.
6817
0ab142b0
NS
68182001-07-27 Nathan Sidwell <nathan@codesourcery.com>
6819
6820 * class.c (mark_primary_virtual_base): Don't adjust base
6821 offsets here.
6822 (dfs_unshared_virtual_bases): Adjust them here.
6823 (mark_primary_bases): Explain why we adjust at the end.
6824
d60d223b
NS
68252001-07-27 Nathan Sidwell <nathan@codesourcery.com>
6826
6827 * class.c (finish_struct_1): When copying the primary base's
6828 VFIELD, make sure we find it is at offset zero.
6829
db3ef87b
KL
68302001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6831
6832 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
6833 tsubst_expr for default template arguments.
6834
312b7c9d
NS
68352001-07-26 Nathan Sidwell <nathan@codesourcery.com>
6836
d60d223b 6837 PR c++/3621
312b7c9d 6838 * spew.c (yylex): Only copy the token's lineno, if it is
838dfd8a 6839 nonzero.
312b7c9d 6840
648c2206
NS
68412001-07-26 Nathan Sidwell <nathan@codesourcery.com>
6842
6843 PR c++/3624
6844 * call.c (resolve_args): Simplify, call
6845 convert_from_reference.
6846 (build_new_op): Resolve and convert from reference ARG1
6847 earlier. Adjust ARG2 & ARG3 resolve and conversion.
6848
969fd501
NS
68492001-07-26 Nathan Sidwell <nathan@codesourcery.com>
6850
6851 * decl.c (last_function_parm_tags): Remove.
6852 (current_function_parm_tags): Remove.
6853 (init_decl_processing): Adjust.
6854 (start_function): Adjust.
6855 (store_parm_decls): Adjust.
6856
6857 PR c++/3152
6858 * decl.c (grokdeclarator): Detect when a function typedef is
6859 declaring a function, and create last_function_parms correctly.
6860
08ac397c 68612001-07-25 Jason Merrill <jason_merrill@redhat.com>
749ced52 6862
08ac397c
JM
6863 * call.c (joust): Only prefer a non-builtin candidate to a builtin
6864 one if they have the same signature.
6865
6866 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
6867 it rather than toplevel_bindings_p. Give it a mangled name if static.
6868 (convert_to_reference): Adjust.
6869 * decl2.c (get_temp_name): Lose.
6870 * mangle.c (mangle_ref_init_variable): New fn.
6871 (mangle_guard_variable): Strip the ref-init header.
6872 * cp-tree.h: Adjust.
6873 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
6874 initializer.
6875 (grok_reference_init): Always use DECL_INITIAL.
6876
40260429
NS
68772001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6878
6879 PR c++/3416
6880 * call.c (build_conditional_expr): Recheck args after
6881 conversions.
6882 * cp-tree.h (build_conditional_expr): Move to correct file.
6883 * typeck.c (decay_conversion): Diagnose any unknown types
6884 reaching here.
6885 (build_binary_op): Don't do initial decay or default
6886 conversions on overloaded functions.
6887 (build_static_cast): Don't do a decay conversion here.
6888
ab085207
NS
68892001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6890
6891 PR c++/3543
6892 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
6893 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
6894
0abe00c5
NS
68952001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6896
6897 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
6898 (create_vtbl_ptr): ... here.
6899
90b1ca2f
NS
69002001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6901
6902 * class.c (build_vbase_offset_vbtl_entries): Look for
6903 non-primary base of which we are a sub vtable.
6904
cfe5dc31
PE
69052001-07-24 Phil Edwards <pme@sources.redhat.com>
6906
6907 * semantics.c (finish_this_expr): Remove unused code.
6908
7f54a851
NS
69092001-07-24 Nathan Sidwell <nathan@codesourcery.com>
6910
6911 Simplify rtti, now we've only one ABI.
6912 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
6913 CPTI_TINFO_VAR_ID.
6914 (tinfo_decl_id, tinfo_var_id): Remove.
6915 (get_typeid_1): Remove.
6916 * rtti.c
6917 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
6918 (typeid_ok_p): New function.
6919 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
6920 (get_tinfo_decl): Remove old abi documentation.
6921 (tinfo_from_decl): Remove.
6922 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
6923 (get_typeid_1): Remove.
6924 (get_base_offset): Remove.
6925 (synthesize_tinfo_var): Absorb get_base_offset.
6926 (create_real_tinfo_var): Don't use tinfo_decl_id.
6927
18fee3ee
GS
69282001-07-23 Graham Stott <grahams@redhat.com>
6929
d30d6e7a 6930 * cp/class.c (type_requires_array_cookie): Fix use of uninitialized
18fee3ee
GS
6931 variable has_two_argument_delete_p.
6932
c4372ef4
NS
69332001-07-21 Nathan Sidwell <nathan@codesourcery.com>
6934
6935 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
6936 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
6937 (CPTI_INDEX_IDENTIFIER): Remove.
6938 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
6939 (delta2_identifier): Remove.
6940 (index_identifier): Remove.
6941 (pfn_or_delta2_identifier): Remove.
6942 (flag_vtable_thunks): Remove.
6943 (VTABLE_DELTA2_NAME): Remove.
6944 (VTABLE_INDEX_NAME): Remove.
6945 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
6946 (vfunc_ptr_type_node): Adjust.
6947 (VTABLE_NAME_PREFIX): Adjust.
6948 (build_vfn_ref): Lose first parameter.
6949 (fixup_all_virtual_upcast_offsets): Remove.
6950 * decl.c (initialize_predefined_identifiers): Remove
6951 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
6952 (init_decl_processing): Remove no-vtable-thunk code.
6953 * decl2.c (flag_vtable_thunks): Remove.
6954 (mark_vtable_entries): Remove no-vtable-thunk code.
6955 * error.c (dump_decl): Remove no-vtable-thunk code.
6956 (dump_expr): Adjust ptr to member function code.
6957 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
6958 code.
6959 * rtti.c (build_headof): Remove no-vtable-thunk code.
6960 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
6961 * search.c (get_base_distance): Remove expand_upcast_fixups case.
6962 (virtual_context) Remove.
6963 (expand_upcast_fixups): Remove.
6964 (fixup_virtual_upcast_offsets): Remove.
6965 (fixup_all_virtual_upcast_offsets): Remove.
6966 * typeck.c (get_member_function_from_ptrfunc): Remove
6967 no-vtable-thunk code.
6968 * call.c (build_over_call): Adjust call to build_vfn_ref.
6969 * class.c (build_vfn_ref): Lose first parameter. Remove
6970 no-vtable-thunk code.
6971 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
6972 (build_vtable_entry): Remove no-vtable-thunk code.
6973
3461fba7
NS
69742001-07-20 Nathan Sidwell <nathan@codesourcery.com>
6975
6976 Remove old-abi remnants. Remove comments about old abi
838dfd8a 6977 behavior. Remove references to 'new-abi' in comments.
3461fba7
NS
6978 * cp-tree.h: Adjust comments.
6979 (vbase_offsets_in_vtable_p): Delete.
6980 (vcall_offsets_in_vtable_p): Delete.
6981 (vptrs_present_everywhere_p): Delete.
6982 (all_overridden_vfuns_in_vtables_p): Delete.
6983 (merge_primary_and_secondary_vtables_p): Delete.
6984 (TYPE_CONTAINS_VPTR_P): Adjust.
6985 (VTT_NAME_PREFIX): Remove.
6986 (CTOR_VTBL_NAME_PREFIX): Remove.
6987 (init_vbase_pointers): Remove.
6988 * class.c: Adjust coments.
6989 (build_vbase_pointer_fields): Delete.
6990 (build_vbase_pointer): Remove old-abi code.
6991 (build_secondary_vtable): Likewise.
6992 (modify_all_vtables): Likewise.
6993 (create_vtable_ptr): Likewise.
6994 (layout_class_type): Likewise.
6995 (finish_struct_1): Likewise.
6996 (finish_vtbls): Likewise.
6997 (dfs_finish_vtbls): Delete.
6998 (build_vbase_offset_vtbl_entries): Remove old-abi code.
6999 * cvt.c: Adjust comments.
7000 * decl.c: Adjust comments.
7001 * decl2.c: Adjust comments.
7002 * init.c: Adjust comments.
7003 (construct_virtual_bases): Remove old-abi code.
7004 * lang-specs.h: Remove -fno-new-abi.
7005 * mangle.c: Adjust comments.
7006 * rtti.c: Adjust comments.
7007 (get_base_offset): Remove old-abi-code.
7008 * search.c: Adjust comments.
7009 (dfs_init_vbase_pointers): Remove.
7010 (dfs_vtable_path_unmark): Remove.
7011 (init_vbase_pointers): Remove.
7012 * semantics.c: Adjust comments.
7013 (emit_associated_thunks): Remove old-abi code.
7014 * typeck.c: Adjust comments.
7015
1c432a87
DB
70162001-07-20 Daniel Berlin <dan@cgsoftware.com>
7017
7018 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
7019 params.h.
7020
b7076960
MM
70212001-07-19 Mark Mitchell <mark@codesourcery.com>
7022
7023 * class.c (finish_struct_anon): Forbid nested classes.
7024
2b85879e
NB
70252001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
7026
7027 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
7028 * optimize.c: Include debug.h.
7029 (maybe_clone_body): Use debug hook.
7030 * semantics.c: Include debug.h.
7031 (expand_body): Use debug hook.
7032
c60e94a7
NB
70332001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
7034
7035 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
7036
dbc957f1
MM
70372001-07-18 Mark Mitchell <mark@codesourcery.com>
7038
7039 * class.c (type_requires_array_cookie): New function.
7040 (check_methods): Don't try to figure out whether the type needs a
7041 cookie here.
7042 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
7043 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
7044 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
7045 * pt.c (instantiate_class_template): Don't set
7046 TYPE_VEC_DELETE_TAKES_SIZE.
7047 * NEWS: Document ABI changes from GCC 3.0.
57cb6d52 7048
7ba0b0f7 70492001-07-18 Xavier Delacour <xavier@fmaudio.net>,
749ced52 7050 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7ba0b0f7
XD
7051
7052 * NEWS (Changes in GCC 3.0): Fix typo.
7053
59387d2e
JM
70542001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
7055
7056 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
7057 which attributes are to be attached, and a flags argument. Update
7058 call to decl_attributes.
7059 (grokfield): Update call to decl_attributes.
7060 * class.c (finish_struct): Update call to cplus_decl_attributes.
7061 * cp-tree.h (cplus_decl_attributes): Update prototype.
7062 * decl.c (start_decl, grokdeclarator, start_function): Update
7063 calls to decl_attributes and cplus_decl_attributes.
7064 * friend.c (do_friend): Update call to cplus_decl_attributes.
7065 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
7066
7ed47c04
MM
70672001-07-12 Mark Mitchell <mark@codesourcery.com>
7068
7069 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
7070 for `register' variables with an asm-specification.
7071
40b18c0a
MM
70722001-07-11 Mark Mitchell <mark@codesourcery.com>
7073
7074 * semantics.c (finish_asm_stmt): Mark the output operands
7075 to an asm addressable, if necessary.
7076
517c3b80
BE
70772001-07-11 Ben Elliston <bje@redhat.com>
7078
219670f1
BE
7079 * Revert this change -- there is a subtle bug.
7080
517c3b80
BE
7081 PR c++/80
7082 * decl.c (finish_enum): New "attributes" argument; pass it to
7083 cplus_decl_attributes. Use a narrower type if the enum is packed.
7084 * cp-tree.h (finish_enum): Adjust prototype.
7085 * parse.y (enum_head): New non-terminal.
7086 (structsp): Use it. Enums now may be preceded or followed by
7087 optional attributes -- pass their chained tree to finish_enum().
7088 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
7089
2ba9c47e
MM
70902001-07-10 Mark Mitchell <mark@codesourcery.com>
7091
7092 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
7093 variables.
7094
35241192
JM
70952001-07-10 Jason Merrill <jason_merrill@redhat.com>
7096
7097 * semantics.c (cp_expand_stmt): Fix for null
7098 current_function_return_value.
7099
07167a18
JM
71002001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
7101
7102 * call.c (build_op_delete_call): Initialize fn.
7103 (convert_like_real): Delete conditional.
7104 (joust): Initialize *w and *l.
7105 * class.c: Add prototype for binfo_ctor_vtable.
7106 (get_primary_binfo): Initialize result.
7107 * init.c (build_java_class_ref): Initialize name.
ae818d3b 7108
35241192
JM
71092001-07-09 Erik Rozendaal <dlr@acm.org>
7110
ae818d3b
ER
7111 * typeck.c (unary_complex_lvalue): Do not duplicate the
7112 argument to modify, pre-, or post-increment when used as an
7113 lvalue and when the argument has side-effects.
7114
12a68f1f
JM
71152001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
7116
7117 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
7118 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
7119 cplus_decl_attributes even if attrs is NULL.
7120 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
7121
f7a4cec0
JM
71222001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
7123
7124 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
7125 calls to decl_attributes.
7126
c80106a4
IR
71272001-07-06 Ira Ruben <ira@apple.com>
7128
ae818d3b 7129 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
c80106a4
IR
7130 be DECL_TEMPLATE_RESULT.
7131
dac65501
KL
71322001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7133
7134 * cp-tree.h (copy_template_template_parm): Rename to ...
7135 (bind_template_template_parm): ... here.
7136 * tree.c (copy_template_template_parm): Rename to ...
7137 (bind_template_template_parm): ... here. Remove the case when
7138 NEWARGS is NULL_TREE.
7139 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
7140 BOUND_TEMPLATE_TEMPLATE_PARM.
7141 * pt.c (lookup_template_class): Adjust.
7142
01f9e964
JM
71432001-07-05 Jason Merrill <jason_merrill@redhat.com>
7144
7145 * cvt.c (convert_lvalue): New fn.
7146 * cp-tree.h: Declare it.
7147 * method.c (do_build_assign_ref): Use it.
7148 (do_build_copy_constructor): Convert parm to base types
7149 before calling base constructors.
7150
7151 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
7152 DECL_USER_ALIGN. Check flag_elide_constructors instead of
7153 optimize.
7154 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
7155
6be77748
NS
71562001-07-02 Nathan Sidwell <nathan@codesourcery.com>
7157
7158 * optimize.c (optimize_inline_calls): New function, broken out
7159 of ...
7160 (optimize_function): ... here. Call it. Don't inline if it is
7161 a thunk.
7162 (dump_function): Print name of dump flag causing this dump.
7163 * semantics.c (expand_body): Move thunk inline check to
7164 optimize_function.
7165
8d8e52be
JM
71662001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
7167
7168 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
7169 (comptypes): Use target.comp_type_attributes.
7170
5a0db193
NS
71712001-06-29 Nathan Sidwell <nathan@codesourcery.com>
7172
7173 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
7174
46f018e1
GDR
71752001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
7176
7177 * error.c (lang_print_error_function): Add a `diagnostic_context *'
7178 parameter. Tweak.
7179
501990bb
NB
71802001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
7181
7182 * decl2.c (import_export_class): Update.
7183
f68fc4db
GDR
71842001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
7185
7186 * error.c (init_error): Adjust settings.
7187
9596ddd6
GDR
71882001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
7189
7190 * error.c (init_error): Adjust settings.
7191
c93586fa
RS
71922001-06-19 Richard Sandiford <rsandifo@redhat.com>
7193
7194 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
7195 return pointers to data members by reference rather than by value.
7196
0d97bf4c
JM
71972001-06-18 Jason Merrill <jason_merrill@redhat.com>
7198
7199 Implement the Named Return Value optimization.
7200 * cp-tree.h (struct cp_language_function): Add x_return_value.
7201 (current_function_return_value): Now a macro.
7202 * decl.c: Don't define it.
7203 (define_label, finish_case_label): Don't clear it.
7204 (init_decl_processing): Don't register it with GC.
7205 * semantics.c (genrtl_finish_function): Don't check it for
7206 no_return_label. Copy the RTL from the return value to
7207 current_function_return_value and walk, calling...
7208 (nullify_returns_r): ...this new fn.
7209 * typeck.c (check_return_expr): Set current_function_return_value.
7210
13de7ec4
JM
72112001-06-15 Jason Merrill <jason_merrill@redhat.com>
7212
7213 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
7214 sharing a ctor vtable with. Merge code for cases 1 and 2.
7215 (binfo_ctor_vtable): New fn.
7216 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
7217
3ea099f1
JM
72182001-06-14 Jason Merrill <jason_merrill@redhat.com>
7219
7220 * class.c (dfs_find_final_overrider): Fix logic.
7221
7222 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
7223 virtual thunk instead of non-virtual.
7224 (get_matching_virtual): Uncomment.
7225
7226 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
7227 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
7228 PARM, not ARG.
7229
87326ba8
NS
72302001-06-14 Nathan Sidwell <nathan@codesourcery.com>
7231
7232 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
7233 we've not emerged from the hierarchy of RTTI_BINFO on reaching
7234 a non-virtual base.
7235
e065a36e
MM
72362001-06-13 Mark Mitchell <mark@codesourcery.com>
7237
7238 * NEWS: Update release number.
7239
623fe76a
NS
72402001-06-12 Nathan Sidwell <nathan@codesourcery.com>
7241
7242 PR c++/3130, c++/3131, c++/3132
7243 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
7244 * class.c (force_canonical_binfo_r): Move
7245 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
7246 virtual bases unless they're primary and what they're primary
7247 too has been moved.
7248 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
7249 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
7250 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
7251 derived binfo.
7252 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
7253 (layout_nonempty_base_or_field): Add most derived type
7254 parameter. Adjust.
7255 (layout_empty_base): Likewise.
7256 (build_base_field): Likewise.
7257 (build_base_fields): Likewise.
7258 (propagate_binfo_offsets): Add most derived type
7259 parameter. Skip non canonical virtual bases too.
7260 (dfs_set_offset_for_unshared_vbases): Don't skip primary
7261 bases. Do skip canonical bases.
7262 (layout_virtual_bases): Adjust.
7263 (layout_class_type): Adjust.
7264 (dfs_get_primary_binfo): Build list of virtual primary base
7265 candidates.
7266 (get_primary_binfo): Check that the shared virtual primary
7267 base candidate was found first.
7268 (accumulate_vtbl_inits): Don't do anything for non-vptr
7269 containing binfos. For case 1 primary virtual bases, keep
7270 checking that we've not emerged from the hierarchy of RTTI_BINFO.
7271
7bdcf888
NS
72722001-06-12 Nathan Sidwell <nathan@codesourcery.com>
7273
7274 PR c++/3089
7275 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
7276 hierarchy looking for primary bases for a ctor
7277 vtable. Recursively call oneself, if we meet our primary via
7278 this route and haven't met it yet via inheritance graph order.
7279
25b5b465
MM
72802001-06-11 Mark Mitchell <mark@codesourcery.com>
7281
7282 * lang-options.h: Emit documentation for -fno-honor-std, not
7283 -fhonor-std.
7284
eb2d0614
AO
72852001-06-10 Alexandre Oliva <aoliva@redhat.com>
7286
7287 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
7288 Don't clobber delta.
7289 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
7290
2a2b2d43
GDR
72912001-06-10 Mark Mitchell <mark@codesourcery.com>
7292 Gabriel Dos Reis <gdr@codesourcery.com>
7293
7294 * Make-lang.in (cp/call.o): Depend on diagnostic.h
7295 (cp/typeck.o): Depend on diagnostic.h
7296 (cp/typeck2.o): Depend on diagnostic.h
07167a18 7297 (cp/repo.o): Depend on dignostic.h
2a2b2d43
GDR
7298 * typeck.c: #include diagnostic.h
7299 (convert_for_initialization): Remove extern declaration for
7300 warningcount and errorcount.
7301
7302 * call.c: #include diagnostic.h
7303 (convert_like_real): Remove extern declaration for warnincount and
07167a18 7304 errorcount.
2a2b2d43
GDR
7305
7306 * repo.c: #include diagnostic.h
7307 * typeck2.c: #include diagnostic.h
7308
06d5e633
NS
73092001-06-08 Nathan Sidwell <nathan@codesourcery.com>
7310
7311 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
7312 in previous change.
7313
9ac1bd2e
NS
73142001-06-08 Nathan Sidwell <nathan@codesourcery.com>
7315
7316 PR c++/2929
7317 * friend.c (do_friend): Use push_decl_namespace for classes at
7318 namespace scope.
7319
85a9a0a2
NS
73202001-06-08 Nathan Sidwell <nathan@codesourcery.com>
7321 Jason Merrill <jason_merrill@redhat.com>
7322
7323 PR c++/3061
7324 * class.c (build_secondary_vtable): Use assert, rather than an error
7325 message.
7326 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
7327 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
7328 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
7329 Don't set BINFO_VTABLE for a primary virtual base.
7330
daa8df65
MM
73312001-06-07 Mark Mitchell <mark@codesourcery.com>
7332
7333 * decl.c (duplicate_decls): Update source position information
7334 when a template function is defined.
7335
37344b9b
PE
73362001-06-07 Phil Edwards <pme@sources.redhat.com>
7337
7338 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
7339
fcebb2dd
NS
73402001-06-07 Nathan Sidwell <nathan@codesourcery.com>
7341
7342 PR c++/2914
7343 * decl.c (pushtag): Don't push into a complete type's scope.
7344
d0cd8b44
JM
73452001-06-06 Jason Merrill <jason_merrill@redhat.com>
7346
7347 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
7348 (struct lang_decl_flags): Lose generate_with_vtable_p.
7349 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
7350 * class.c (copy_virtuals): Adjust.
7351 * decl2.c (mark_vtable_entries): Adjust.
7352 * method.c (make_thunk, build_vtable_entry): Adjust.
7353 * class.c (update_vtable_entry_for_fn): Only look as far as the
7354 first defining class.
07167a18 7355 (build_vtbl_initializer): Put nothing in the slot for a function only
d0cd8b44 7356 defined in a lost primary virtual base.
07167a18 7357 (add_vcall_offset_vtbl_entries_1): Use the same code for
d0cd8b44
JM
7358 the lost primary case and the normal case.
7359 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
7360 (get_vfield_offset, get_derived_offset): Lose.
7361 (dfs_find_final_overrider): Use look_for_overrides_here.
7362 (get_matching_virtual): New fn.
7363 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
7364 not BV_VCALL_INDEX.
7365 * search.c (look_for_overrides_here): Split out from...
7366 (look_for_overrides_r): Here.
7367
7368 * class.c (find_final_overrider): Return error_mark_node on error.
7369
7370 * decl2.c (key_method): #if 0 accidental change.
7371
acf97e0b
JDA
73722001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7373
7374 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
7375 (build_over_call): Likewise.
7376 * decl.c (grokparms): Likewise.
7377 * pt.c (tsubst_decl): Likewise.
7378 * typeck.c (convert_arguments): Likewise.
7379
7e9abee9
MM
73802001-06-05 Mark Mitchell <mark@codesourcery.com>
7381
47ee8904
MM
7382 * semantics.c (begin_class_definition): Robustify.
7383
7e9abee9
MM
7384 * pt.c (instantiate_decl): Tell the repository code about the
7385 clones, not the cloned functions.
7386 * repo.c (repo_template_used): Explicitly instantiate the cloned
7387 function, not the clones.
7388
bea09693
NS
73892001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7390
7391 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
7392 ICS_BAD_FLAG on created conversion.
7393 (compare_ics): Break out rank.
7394
8f7550ca
NS
73952001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7396
7397 * decl.c (xref_tag): Remove extraneous %s on dependent name
7398 lookup warning.
7399
442e01b6
NS
74002001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7401
7402 * class.c (layout_vtable_decl): Fix off by one error on
7403 build_index_type.
7404 (build_vtt): Likewise.
7405 (build_ctor_vtbl_group): Likewise.
7406
b7442fb5
NS
74072001-06-05 Nathan Sidwell <nathan@codesourcery.com>
7408
7409 * class.c (maybe_indent_hierarchy): New function.
7410 (dump_class_hierarchy_r): Add flags. Dump extra binfo
7411 information, if enabled. Use maybe_indent_hierarchy. Adjust
7412 output format.
7413 (dump_class_hierarchy): Adjust prototype. Adjust output format.
7414 (dump_array, dump_vtable, dump_vtt): New functions.
7415 (finish_struct_1): Adjust hierarchy dumping.
7416 (initialize_vtable): Call dump_vtable.
7417 (build_vtt): Call dump_vtt.
7418 (build_ctor_vtbl_group): Call dump_vtable.
7419 * decl2.c (flag_dump_class_layout): Remove.
7420 (cxx_decode_option): Remove dump translation unit
7421 and dump class hierarchy check. Call dump_switch_p.
7422 (finish_file): Adjust dumping.
7423 (dump.c): Only dump base classes if not TDF_SLIM.
7424 Only dump namespace members if not TDF_SLIM.
7425 * optimize.c (dump_function): New function.
7426 (optimize_function): Call dump_function.
7427 * semantics.c (expand_body): Use dump_enabled_p.
7428
e5410b32
NS
74292001-06-01 Nathan Sidwell <nathan@codesourcery.com>
7430
7431 PR g++/2936
7432 Part missed from first commit
7433 * decl2.c (finish_anon_union): Copy context.
7434
e97c9488
NS
74352001-05-30 Nathan Sidwell <nathan@codesourcery.com>
7436
7437 PR g++/2936
e97c9488
NS
7438 * optimize.c (remap_decl): Remap anonymous aggregate members too.
7439
87d9ac49
NS
74402001-05-26 Nathan Sidwell <nathan@codesourcery.com>
7441
7442 PR g++/2823
7443 * semantics.c (expand_body): Don't optimize thunks.
7444
88657302
RH
74452001-05-25 Sam TH <sam@uchicago.edu>
7446
7447 * cp-tree.h lex.h: Fix header include guards.
7448
74492001-05-25 Mark Mitchell <mark@codesourcery.com>
10841285
MM
7450
7451 * decl.c (init_decl_processing): Tweak.
7452
0b1161fc
MM
74532001-05-24 Mark Mitchell <mark@codesourcery.com>
7454
7455 * decl.c (duplicate_decls): Tidy.
7456 (init_decl_processing): Always set flag_no_builtin.
7457
6f56d925
NS
74582001-05-24 Nathan Sidwell <nathan@codesourcery.com>
7459
7460 PR c++/2184
7461 * decl2.c (do_local_using_decl): Push the decls, even in a
7462 template.
7463
39e0656d
MM
74642001-05-22 Mark Mitchell <mark@codesourcery.com>
7465
7466 * optimize.c (initialize_inlined_parameters): Don't set
7467 TREE_READONLY for a VAR_DECL taking the place of an inlined
7468 PARM_DECL.
7469
0401d499
JM
74702001-05-22 Jason Merrill <jason_merrill@redhat.com>
7471
7472 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
7473 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
7474 attribute.
7475
14fc3426
JM
74762001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
7477
7478 * parse.y: Refer to compound literals as such, not as
7479 constructor-expressions.
7480
3f41ffd8
MM
74812001-05-21 Mark Mitchell <mark@codesourcery.com>
7482
7483 * call.c (build_op_delete_call): Ignore exception-specifications
7484 when looking for matching delete operators.
7485 * init.c (build_new_1): Compute whether or not the allocation
7486 function used is a placement allocation function or not, and
7487 communicate this information to build_op_delete_call.
7488
1a6025b4
JM
74892001-05-21 Jason Merrill <jason_merrill@redhat.com>
7490
90ecce3e
JM
7491 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
7492 (build_vtbl_ref): Adjust.
7493 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
7494 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
7495 Re-add vtable-gc.
7496 (unsupported_options): Correspondingly.
7497
7498 * decl2.c (maybe_make_one_only): Check flag_weak, not
7499 supports_one_only().
7500
1a6025b4
JM
7501 * cp-tree.def (START_CATCH_STMT): Lose.
7502 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
7503 * tree.c (cp_statement_code_p): Don't case it.
7504 * semantics.c (cp_expand_stmt): Likewise.
7505 * cp-tree.h (START_CATCH_TYPE): Lose.
7506 (HANDLER_TYPE): New.
7507 * except.c (expand_start_catch_block): Don't start any blocks.
7508 Return the type.
7509 (expand_end_catch_block): Don't end any blocks.
7510 * parse.y (handler): Don't pass anything from finish_handler_parms
7511 to finish_handler.
7512 * pt.c (tsubst_expr): Likewise.
7513 * semantics.c (begin_handler): Call note_level_for_catch here.
7514 (finish_handler_parms): Don't return anything.
7515 (genrtl_catch_block, begin_catch_block): Lose.
7516 (genrtl_handler): Call expand_start_catch here.
7517
75182001-05-18 Jason Merrill <jason_merrill@redhat.com>
7519
7520 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
7521 (get_vtable_decl, build_vtt): Not here.
7522
d30a825a
NS
75232001-05-20 Nathan Sidwell <nathan@codesourcery.com>
7524
7525 PR c++/2781
7526 * optimize.c (update_cloned_parm): Copy addressability and other
7527 flags.
7528
3b82c249
KL
75292001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7530
7531 * pt.c (determine_specialization): Ignore artificial functions.
7532
2a967f3d
NB
75332001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
7534
7535 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
7536 (C_RID_CODE): Remove.
7537 * lex.c (cxx_init_options): Call set_identifier_size. Update.
7538 (init_parse): Don't do it here.
7539
f99df08e
DN
75402001-05-18 Diego Novillo <dnovillo@redhat.com>
7541
7542 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
7543 function declaration to avoid stripping the symbol's attributes.
7544
2b0cbc5d
NS
75452001-05-18 Nathan Sidwell <nathan@codesourcery.com>
7546
7547 * decl.c (pushdecl): Adjust error string.
7548 (xref_tag): Adjust friend class injection warning. Remove the
7549 inherited name from the class shadowed scope.
7550
e6855a2d
MM
75512001-05-17 Mark Mitchell <mark@codesourcery.com>
7552
7553 * except.c (cp_protect_cleanup_actions): New function.
07167a18 7554 (init_exception_processing): Don't set protect_cleanup_actions
e6855a2d
MM
7555 here. Do set lang_protect_cleanup_actions.
7556
cc469ee9
NS
75572001-05-16 Nathan Sidwell <nathan@codesourcery.com>
7558
7559 * spew.c (read_token): Call yyerror on all unexpected tokens.
7560
3f0a9b35
NS
75612001-05-16 Nathan Sidwell <nathan@codesourcery.com>
7562
7563 * init.c (member_init_ok_or_else): Take a tree rather than
7564 string for name.
7565 (expand_member_init): Adjust.
7566
8d0cb60d
NC
75672001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
7568
7569 * decl.c (duplicate_decls): Suppress warning about duplicate
749ced52 7570 decls if the first decl is a friend.
8d0cb60d 7571
1f730ff7
ZW
75722001-05-12 Zack Weinberg <zackw@stanford.edu>
7573
7574 * except.c (choose_personality_routine): Export. Add
7575 explanatory comment. Take an enum languages, not a boolean.
7576 (initialize_handler_parm): Adjust to match.
7577 * cp-tree.h: Prototype choose_personality_routine.
7578 * lex.c (handle_pragma_java_exceptions): New function.
7579 (init_cp_pragma): Register #pragma GCC java_exceptions.
7580
90e0c410
NB
75812001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
7582
7583 * method.c (build_mangled_C99_name): Remove unused prototype.
7584
cb7fdde2
AO
75852001-05-12 Alexandre Oliva <aoliva@redhat.com>
7586
7587 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
7588 * typeck.c (get_member_function_from_ptrfunc,
7589 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
7590 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
18ae7f63
AO
7591
7592 Reverted Geoff Keating's 2001-05-03's patch.
7593
401deb20
IR
75942001-05-11 Ira Ruben <ira@apple.com>
7595
7596 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
7597
8e93d446
NB
75982001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7599
7600 * cp-tree.h (finish_label_expr, lookup_label): Delete.
7601 * parse.y: Update for '&&'; don't issue warning here.
7602 * semantics.c (finish_label_expr): Delete.
7603
5cdba4ff
MM
76042001-05-07 Mark Mitchell <mark@codesourcery.com>
7605
7606 * splay-tree.h (splay_tree_max): New function.
7607 (splay_tree_min): Likewise.
7608
8e9eff6b
GK
76092001-05-03 Geoffrey Keating <geoffk@redhat.com>
7610
7611 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
7612 (pfn_vflag_identifier): Define.
7613 Update comment about layout of pointer functions.
7614 (build_ptrmemfunc1): Update prototype.
7615 (expand_ptrmemfunc_cst): Update prototype.
7616 * decl.c (initialize_predefined_identifiers): Initialize
7617 pfn_vflag_identifier.
7618 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
7619 an extra field to the type.
07167a18 7620 * expr.c (cplus_expand_constant): Pass 'flag' between
8e9eff6b
GK
7621 expand_ptrmemfunc_cst and build_ptrmemfunc1.
7622 * typeck.c (get_member_function_from_ptrfunc): When
7623 FUNCTION_BOUNDARY < 16, look at additional field to determine
7624 if a pointer-to-member is a real pointer or a vtable offset.
7625 (build_ptrmemfunc1): Add new parameter to contain extra field.
7626 (build_ptrmemfunc): Pass the extra field around.
7627 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
7628 (pfn_from_ptrmemfunc): Ignore the extra field.
7629
acc72c37
MM
76302001-05-03 Mark Mitchell <mark@codesourcery.com>
7631
7632 * cp-tree.h (flag_inline_trees): Update documentation.
7633 * decl.c (init_decl_processing): Adjust handling of
7634 flag_inline_functions and flag_inline_trees to support -O3.
7635 (grokfndecl): Set DECL_INLINE on all functions if that's what
7636 the user requested.
7637 (save_function_data): Clear DECL_INLINE in
7638 current_function_cannot_inline is non-NULL.
7639 * decl2.c (flag_inline_trees): Update documentation.
7640
5158d7ee
NS
76412001-05-03 Nathan Sidwell <nathan@codesourcery.com>
7642
7643 * dump.c (cp_dump_tree, USING_STMT case): New case.
7644 * tree.c (cp_statement_code_p): Add USING_STMT.
7645 * decl2.c (do_using_directive): Add the using directive statement.
7646
7647 * tree.c (walk_tree): Reformat an if block.
7648
80f5bb34
MM
76492001-05-02 Mark Mitchell <mark@codesourcery.com>
7650
7651 * decl.c (compute_array_index_type): Don't try to do anything with
7652 the indices when processing a template.
7653
3e411c3f
KG
76542001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7655
7656 * call.c: NULL_PTR -> NULL.
7657 * class.c: Likewise.
7658 * cvt.c: Likewise.
7659 * decl.c: Likewise.
7660 * decl2.c: Likewise.
7661 * except.c: Likewise.
7662 * init.c: Likewise.
7663 * rtti.c: Likewise.
7664 * search.c: Likewise.
7665 * tree.c: Likewise.
7666 * typeck.c: Likewise.
7667 * typeck2.c: Likewise.
7668
46188dca
MM
76692001-05-02 Mark Mitchell <mark@codesourcery.com>
7670
7671 * decl2.c (do_using_directive): Revert previous patch.
7672
9da99f7d
NS
76732001-05-01 Nathan Sidwell <nathan@codesourcery.com>
7674
7675 * cp-tree.def (USING_STMT): New statement node.
7676 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
7677 * decl2.c (do_using_directive): Add USING_STMT to statement
7678 tree. Don't emit errors when processing template decl.
7679 * pt.c (tsubst_expr, USING_STMT case): New case.
7680 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
7681
4b48a93e
NS
76822001-05-01 Nathan Sidwell <nathan@codesourcery.com>
7683
7684 * call.c (build_new_op): Convert args from reference here.
7685 (build_conditional_expr): Don't convert here.
7686
1bcea8d7
NS
76872001-05-01 Nathan Sidwell <nathan@codesourcery.com>
7688
7689 * spew.c (last_token_id): New static variable.
7690 (read_token): Set it here.
7691 (yyerror): Use it here.
7692
d72040f5
RH
76932001-04-30 Richard Henderson <rth@redhat.com>
7694
749ced52 7695 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
d72040f5
RH
7696 * decl.c: Likewise.
7697
c3aac512
MM
76982001-04-30 Mark Mitchell <mark@codesourcery.com>
7699
7700 * gxxint.texi: Remove.
7701 * Make-lang.in: Remove all traces of gxxint.texi.
7702
5fd893d5
MM
7703Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
7704
7705 * decl2.c (start_static_initialization_or_destruction): Correct
7706 logic to handle the -fno-use-cxa-atexit case.
7707
d60e5448
MM
77082001-04-30 Mark Mitchell <mark@codesourcery.com>
7709
7710 * optimize.c (update_cloned_parm): New function.
7711 (maybe_clone_body): Use it. Update the `this' parameter too.
7712
7200764f
JM
77132001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
7714
7715 * decl2.c (unsupported_options): Add new-abi.
7716 * lang-options.h: Remove no longer supported options.
7717
2d46ec83
NS
77182001-04-27 Nathan Sidwell <nathan@codesourcery.com>
7719
7720 * except.c (can_convert_eh): Don't check template parms,
7721 typename types etc.
7722
02a1a68c
NS
77232001-04-27 Nathan Sidwell <nathan@codesourcery.com>
7724
7725 * optimize.c (maybe_clone_body): Copy parameter names and locations.
7726
5f6eeeb3
NS
77272001-04-27 Nathan Sidwell <nathan@codesourcery.com>
7728
7729 * cp-tree.h (adjust_clone_args): Prototype new function.
7730 * class.c (adjust_clone_args): New function.
7731 * decl.c (start_function): Call it for in charge ctors.
7732
1b28d441
MM
77332001-04-26 Mark Mitchell <mark@codesourcery.com>
7734
7735 * method.c (use_thunk): Make sure that thunks really are emitted
7736 when requested.
7737
0576ec13
NS
77382001-04-26 Nathan Sidwell <nathan@codesourcery.com>
7739
7740 * mangle.c (write_chars): New macro.
7741 (hwint_to_ascii): New function
7742 (write_number): Use it.
7743 (write_integer_cst): Deal with really big numbers.
7744
b96ada87
MM
77452001-04-25 Mark Mitchell <mark@codesourcery.com>
7746
7747 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
7748 the clone.
7749
6bda7a5e
NS
77502001-04-25 Nathan Sidwell <nathan@codesourcery.com>
7751
7752 * decl.c (grokdeclarator): Set context of namespace scope
7753 TYPE_DECLS.
7754
11fe225a
ZW
77552001-04-24 Zack Weinberg <zackw@stanford.edu>
7756
7757 * cp/optimize.c: Include hashtab.h.
7758 (struct inline_data): Add tree_pruner.
7759 (expand_call_inline, expand_calls_inline): Use it when calling
7760 walk_tree.
7761 (optimize_function): Initialize and free tree_pruner.
7762
0ba8a114
NS
77632001-04-24 Nathan Sidwell <nathan@codesourcery.com>
7764
7765 Lazy __FUNCTION__ generation.
7766 * cp-tree.def (FUNCTION_NAME): Remove.
7767 * cp-tree.h (function_name_declared_p): Remove.
7768 (cp_fname_init): Prototype.
7769 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
7770 don't call declare_function_name. Call start_fname_decls.
7771 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
7772 clobber the line number.
7773 (cp_fname_init): New function.
7774 (start_function): Call start_fname_decls.
7775 (finish_function): Call finish_fname_decls.
7776 * lex.c (reswords): Add slots for __FUNCTION__ et al.
7777 (rid_to_yy): Add mappings for __FUNCTION__ et al.
7778 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
7779 * parse.y (VAR_FUNC_NAME): New token.
7780 (primary): Add VAR_FUNC_NAME.
7781 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
7782 generation.
7783 (tsubst, FUNCTION_NAME case): Remove.
7784 (tsubst_copy, FUNCTION_NAME case): Remove.
7785 (tsubst_expr, DECL_STMT case): Be careful with a
7786 DECL_PRETTY_FUNCTION_P.
7787 (instantiate_decl): Remove function_name_declared_p.
7788 * semantics.c (begin_compound_statement): Don't call
7789 declare_function_name here.
7790 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
7791 (finish_translation_unit): Call finish_fname_decls.
7792 (expand_body): Remove function_name_declared_p.
7793 * typeck2.c (digest_init): Allow any ERROR_MARK.
7794
dfbb4f34
NS
77952001-04-24 Nathan Sidwell <nathan@codesourcery.com>
7796
7797 * pt.c (tsubst_decl): Use VOID_TYPE_P.
7798 * semantics.c: Fix some typos.
7799
e2584c52
PE
78002001-04-23 Phil Edwards <pme@sources.redhat.com>
7801
7802 * cp/decl2.c (flag_honor_std): Always initialize to 1.
7803
d4c3ec27
KG
78042001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7805
7806 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
7807
2ac8a0f9
JM
78082001-04-23 Jason Merrill <jason_merrill@redhat.com>
7809
7810 * except.c (build_throw): Wrap the initialization of the exception
7811 object in a MUST_NOT_THROW_EXPR.
7812 (do_free_exception): #if 0.
7813
968b956a
MM
78142001-04-20 Mark Mitchell <mark@codesourcery.com>
7815
7816 * cp-tree.h (finish_enum): Change prototype.
7817 * decl.c (finish_enum): Reorganize.
7818 * parse.y (structsp): Adjust calls to finish_enum.
11fe225a 7819
aa1826e2
NS
78202001-04-20 Nathan Sidwell <nathan@codesourcery.com>
7821
7822 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
7823 't' case.
7824
06d9f09f
NS
78252001-04-20 Nathan Sidwell <nathan@codesourcery.com>
7826
7827 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
7828 (layout_empty_base): Return at end flag.
7829 (build_base_field): Likewise.
7830 (build_base_fields): Likewise.
7831 (layout_virtual_bases): Don't add 1 to eoc value.
7832 (end_of_class): Use full size for empty bases.
7833 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
7834 empty bases. Don't add 1 to eoc value. Only add trailing padding
7835 if we're an empty class with no empty bases.
7836 (dump_class_hierarchy): Dump size and alignment.
7837
351a0f00
JJ
78382001-04-20 Jakub Jelinek <jakub@redhat.com>
7839
7840 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
7841 ICS_BAD_FLAG.
7842
881cae05
JJ
78432001-04-20 Jakub Jelinek <jakub@redhat.com>
7844
7845 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
7846 is found, look first if name does not match the structure name.
7847
5d2ed28c
MM
78482001-04-19 Mark Mitchell <mark@codesourcery.com>
7849
7850 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
7851 set.
7852 (SET_DECL_LANGUAGE): New macro.
7853 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
7854 (pushdecl): Likewise.
7855 (build_library_fn_1): Likewise.
7856 (build_cp_library_fn): Likewise.
7857 (grokfndecl): Likewise.
7858 (grokvardecl): Mark `extern "C"' variables as having C linkage.
7859 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
7860 * lex.c (retrofit_lang_decl): Likewise.
7861 * mangle.c (mangle_decl_string): Don't mangle the names of
7862 variables declared with C language linkage.
7863 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
11fe225a 7864
41251458
JDA
78652001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
7866
7867 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
7868 flag_access_control from uninitialized storage.
7869
1b4a93f7
MM
78702001-04-15 Mark Mitchell <mark@codesourcery.com>
7871
24272dc0
MM
7872 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
7873 * mangle.c (write_pointer_to_member_type): Fix mangling of
7874 pointers to cv-qualified member function types.
7875
1b4a93f7
MM
7876 * init.c (build_delete): Create a SAVE_EXPR for the address if
7877 we're going to use it more than once.
7878
530ec96d
MM
78792001-04-13 Mark Mitchell <mark@codesourcery.com>
7880
7881 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
7882 (expand_ptremfunc_cst): Change prototype.
7883 (delta2_from_ptrmemfunc): Remove.
7884 * expr.c (cplus_expand_constant): Adjust call to
7885 expand_ptrmemfunc_cst.
7886 * typeck.c (build_ptrmemfunc1): Simplify.
7887 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
7888 results in a constant.
7889 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
7890 (delta2_from_ptrmemfunc): Remove.
7891 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
11fe225a 7892
ee8fc32b
JM
78932001-04-12 Jason Merrill <jason_merrill@redhat.com>
7894
7895 * cp-tree.h (decl_namespace_list): New macro.
7896 (struct saved_scope): Add decl_ns_list.
7897 * decl.c (mark_saved_scope): Mark it.
7898 * decl2.c: Lose static decl_namespace_list.
7899 (init_decl2): Don't save it.
7900
48857160
KG
79012001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7902
7903 * cp-tree.h (warn_return_type, yylex): Delete redundant
7904 declarations.
11fe225a 7905
48857160
KG
7906 * decl.c (current_class_depth, global_namespace): Likewise.
7907
7908 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
7909
7910 * repo.c (flag_use_repository): Likewise.
7911
845e14ed
KG
79122001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7913
7914 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
7915 set_block, pushdecl, getdecls, gettags, init_decl_processing,
7916 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
7917 lvalue_or_else, print_lang_statistics, comp_target_types,
7918 unsigned_type, signed_type, signed_or_unsigned_type,
7919 build_function_call, mark_addressable, incomplete_type_error):
7920 Delete redundant declarations.
7921
1951a1b6
JM
79222001-04-11 Jason Merrill <jason_merrill@redhat.com>
7923
7924 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
7925 (TYPE_ANONYMOUS_P): New macro.
7926 (TAGGED_TYPE_P): New macro.
7927 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
7928 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
7929 * tree.c (no_linkage_helper): Likewise.
7930 * semantics.c (begin_class_definition): Likewise.
7931 * pt.c (convert_template_argument): Likewise.
7932 * lex.c (check_for_missing_semicolon): Likewise.
7933
0fb3018c
NS
79342001-04-12 Nathan Sidwell <nathan@codesourcery.com>
7935
7936 * class.c (dfs_unshared_virtual_bases): New function.
7937 (mark_primary_bases): Call it.
7938 (check_bases): Ignore virtual bases when determining
7939 nearly-emptiness.
7940
bbb53468
NS
79412001-04-12 Nathan Sidwell <nathan@codesourcery.com>
7942
7943 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
7944
9b7949d5
MM
79452001-04-11 Mark Mitchell <mark@codesourcery.com>
7946
7947 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
7948 cloned function to the clone.
7949
d6684bc8
KG
79502001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7951
7952 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
7953
7954 * semantics.c: Include expr.h.
7955
a2095778
NS
79562001-04-11 Nathan Sidwell <nathan@codesourcery.com>
7957
7958 * method.c (implicitly_declare_fn): Commonize code for copy ctor
7959 and assignment op. Set TREE_USED for parameter.
7960
78b45a24
MM
79612001-04-10 Mark Mitchell <mark@codesourcery.com>
7962
7963 * class.c (find_final_overrider_data): Add `candidates'.
7964 (dfs_find_final_overrider): Don't issue error messages
7965 prematurely.
7966 (find_final_overrider): Issue error messages here.
7967 (build_base_field): Don't warn about amgibuous direct bases here.
7968 (warn_about_ambiguous_direct_bases): New function.
7969 (layout_class_type): Use it.
7970
0450d74d
RH
79712001-04-10 Richard Henderson <rth@redhat.com>
7972
7973 * typeck.c (build_array_ref): Push the array reference inside
7974 COMPOUND_EXPR and COND_EXPR.
7975
79065db2
MM
79762001-04-05 Mark Mitchell <mark@codesourcery.com>
7977
7978 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
7979 * decl.c (duplicate_decls): Adjust accordingly.
7980 (maybe_commonize_var): Likewise.
7981 (grokfndecl): Likewise.
7982 (start_function): Likewise.
7983 (start_method): Likewise.
7984 * decl2.c (key_method): Likewise.
7985 (import_export_decl): Likewise.
7986 * method.c (implicitly_declare_fn): Likewise.
7987 * optimize.c (maybe_clone_body): Likewise.
11fe225a 7988
fdecbf8a
BK
79892001-04-05 Benjamin Kosnik <bkoz@redhat.com>
7990
b03eced6 7991 * lang-specs.h: Add __DEPRECATED.
fdecbf8a 7992
0b4c1646
R
7993Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
7994
7995 * search.c (get_dynamic_cast_base_type): When building a new
7996 constant, set its type to ssizetype.
7997
e59d6709
JJ
79982001-04-04 Jakub Jelinek <jakub@redhat.com>
7999
8000 * optimize.c (expand_call_inline): Only add newly inlined statements
8001 into inlined_stmts.
8002
0c918ce5
MM
80032001-04-03 Mark Mitchell <mark@codesourcery.com>
8004
8005 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
8006 (OPERATOR_FORMAT): Likewise.
8007 (OPERATOR_TYPENAME_FORMAT): Likewise.
8008 * operators.def: Remove old name-mangling information.
8009 * decl.c (grok_op_properties): Adjust accordingly.
8010 * lex.c (init_operators): Likewise.
8011 * rtti.c (get_tinfo_decl): Issue error messages about types that
8012 have variable size.
8013
92788413
MM
80142001-04-03 Mark Mitchell <mark@codesourcery.com>
8015
11fe225a 8016 * decl2.c (import_export_decl): Don't call import_export_class
92788413
MM
8017 when processing an inline member function.
8018 * semantics.c (expand_body): Call import_export_decl before
8019 emitting inline functions.
8020
52a11cbf
RH
80212001-03-28 Richard Henderson <rth@redhat.com>
8022
8023 IA-64 ABI Exception Handling:
8024 * cp-tree.def (EH_SPEC_BLOCK): New.
8025 (MUST_NOT_THROW_EXPR): New.
8026 * cp-tree.h: Update changed function declarations.
8027 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
8028 (CPTI_CALL_UNEXPECTED): New.
8029 (struct cp_language_function): Rename x_eh_spec_try_block
8030 to x_eh_spec_block.
8031 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
11fe225a 8032 * decl.c (current_binding_level): If no current function
52a11cbf
RH
8033 bindings, revert to scope_chain.
8034 (initialize_predefined_identifiers): Remove __cp_push_exception.
8035 (store_parm_decls): Use begin_eh_spec_block.
8036 (finish_function): Use finish_eh_spec_block.
8037 (mark_lang_function): Update for name changes.
8038 * decl2.c (finish_file): No mark_all_runtime_matches.
8039 * dump.c (cp_dump_tree): Handle new tree codes.
8040 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
8041 * except.c (catch_language_init, catch_language): Remove.
8042 (init_exception_processing): Don't set language code.
8043 Initialize call_unexpected_node, protect_cleanup_actions,
8044 eh_personality_libfunc, lang_eh_runtime_type.
8045 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
8046 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
8047 (prepare_eh_type): Split out type canonicalizations ...
8048 (build_eh_type_type): ... from here.
8049 (build_eh_type_type_ref): Remove.
8050 (mark_all_runtime_matches): Remove.
8051 (build_exc_ptr): New.
8052 (do_begin_catch, do_end_catch): New.
8053 (do_pop_exception): Remove.
8054 (build_terminate_handler): Remove.
8055 (choose_personality_routine): Split out language choice from ...
8056 (initialize_handler_parm): ... here.
8057 Use MUST_NOT_THROW_EXPR.
8058 (expand_start_catch_block): Use do_begin_catch. Simplify Java
8059 exception object handling.
8060 (expand_start_eh_spec, expand_end_eh_spec): Remove.
8061 (expand_exception_blocks, alloc_eh_object): Remove.
8062 (begin_eh_spec_block, finish_eh_spec_block): New.
8063 (do_allocate_exception, do_free_exception): New.
8064 (expand_throw): Merge into ...
8065 (build_throw): ... here. Update for abi.
8066 * expr.c (cplus_expand_expr): No expand_internal_throw.
8067 Handle MUST_NOT_THROW_EXPR.
8068 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
8069 * semantics.c (*) Update for except.h name changes.
8070 (genrtl_try_block): No protect_with_terminate.
8071 (genrtl_eh_spec_block): New.
8072 (genrtl_handler): Don't emit the goto here.
8073 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
8074 (genrtl_finish_function): Don't expand_exception_blocks.
8075 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
8076
826840d9
RH
80772001-03-28 Richard Henderson <rth@redhat.com>
8078
8079 * decl.c (struct named_label_list): Rename eh_region to
8080 in_try_scope, add in_catch_scope.
8081 (struct binding_level): Rename eh_region to is_try_scope,
8082 add is_catch_scope.
8083 (note_level_for_try): Rename from note_level_for_eh.
8084 (note_level_for_catch): New.
8085 (poplevel): Copy both is_try_scope and is_catch_scope to
8086 the named_label_list struct.
8087 (check_previous_goto_1): Don't check for catch block via
8088 DECL_ARTIFICIAL; use in_try_scope instead.
8089 (check_goto): Likewise.
8090 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
8091 * except.c (expand_start_catch_block): Call note_level_for_catch.
8092 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
8093
531073e7
RH
80942001-03-27 Richard Henderson <rth@redhat.com>
8095
8096 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
8097 exceptions_via_longjmp.
8098
8653a2c3
PE
80992001-03-27 Phil Edwards <pme@sources.redhat.com>
8100
8101 * pt.c (check_default_tmpl_args): Make error messages clearer.
8102
81032001-03-26 Phil Edwards <pme@sources.redhat.com>
8104
8105 * error.c: Also undefine 'A' macro used for cp_printers definition.
8106
911e6107
KG
81072001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8108
8109 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
8110
005a5cb0
MY
81112001-03-26 Mike Yang <yang@research.att.com>
8112 Mark Mitchell <mark@codesourcery.com>
8113
8114 * dump.c (dump_access): New function.
8115 (cp_dump_tree): Use it. Dump basetype information for class
8116 types.
8117
b850de4f
MM
81182001-03-26 Mark Mitchell <mark@codesourcery.com>
8119
8120 * Makefile.in (optimize.o): Depend on params.h.
8121 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
8122 (init_decl_processing): Set flag_no_inline when doing
8123 inlining-on-trees.
8124 * optimize.c: Include params.h.
8125 (struct inline_data): Improve documentation of FNS. Add
8126 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
8127 (INSNS_PER_STMT): New macro.
8128 (remap_block): Use CLONING_P.
8129 (inlinable_function_p): Don't inline big functions.
8130 (expand_call_inline): Keep track of how much inlining we've done.
8131 (optimize_function): Set FIRST_INLINED_FN.
8132 (maybe_clone_body): Set CLONING_P.
8133 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
8134 tree nodes.
8135 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
8136 rest_of_compilation. Clear DECL_RTL for local variables
8137 afterwards.
8138 (clear_decl_rtl): New function.
11fe225a 8139
788bf0e3
NS
81402001-03-26 Nathan Sidwell <nathan@codesourcery.com>
8141
8142 Implement DR 209
8143 * cp-tree.h (skip_type_access_control,
8144 reset_type_access_control): Prototype.
8145 * decl.c (grokdeclarator): Access of friends is not checked.
8146 * parse.y (component_decl_list): Reset type access control.
8147 * semantics.c (decl_type_access_control): Clear
8148 current_type_lookups.
8149 (save_type_access_control): Don't save if not deferring.
8150 (skip_type_access_control, reset_type_access_control): New
8151 functions.
8152 (begin_class_definition): Do type access control for basetypes.
8153 Start deferred access control.
8154 (finish_class_definition): Resume immediate access control if
8155 this is a local class.
8156
730e1556
KG
81572001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8158
8159 * class.c (add_method): Use memcpy/memmove, not bcopy.
8160
8161 * decl.c (duplicate_decls): Likewise.
8162
f1a0345c
JJ
81632001-03-23 Jakub Jelinek <jakub@redhat.com>
8164
8165 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
8166 not `_'.
8167
8e4ce833
JJ
81682001-03-23 Jakub Jelinek <jakub@redhat.com>
8169
8170 * decl.c (local_names): Define.
8171 (push_local_name): New.
8172 (grok_reference_init): Return init if initializing static reference
8173 variable with non-constant instead of emitting it.
8174 Move expand_static_init call to cp_finish_decl.
8175 (layout_var_decl): Call push_local_name.
8176 (maybe_commonize_var): Allow inlining functions even if they have
8177 static local variables, use comdat_linkage for them if flag_weak.
8178 (check_initializer): Call obscure_complex_init if
838dfd8a 8179 grok_reference_init returned nonzero.
8e4ce833
JJ
8180 (save_function_data): Clear x_local_names.
8181 (pop_cp_function_context): Free x_local_names.
8182 (mark_inlined_fns): Remove.
8183 (mark_lang_function): Mark x_local_names.
8184 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
8185 Mark inlined_fns as tree, remove call to mark_inlined_fns.
8186 * class.c (alter_access): Ensure DECL_ACCESS is never set if
8187 DECL_DISCRIMINATOR_P.
8188 * cp-tree.h (cp_language_function): Add x_local_names.
8189 (lang_decl_flags): Add discriminator into u2.
8190 (lang_decl_inlined_fns): Remove.
8191 (lang_decl): inlined_fns is now a TREE_VEC.
8192 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
8193 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
8194 TREE_VEC, not a custom structure.
8195 (optimize_function): Likewise.
8196 * mangle.c (discriminator_for_local_entity): Discriminate among
8197 VAR_DECL local entities.
8198 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
8199 is not valid.
8200
60c87482
BM
82012001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
8202
8203 Add support for Java interface method calls.
8204 * cp-tree.h (struct lang_type): Add java_interface flag.
8205 (TYPE_JAVA_INTERFACE): New macro.
8206 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
8207 by setting TYPE_JAVA_INTERFACE.
8208 * call.c (java_iface_lookup_fn): New static.
11fe225a 8209 (build_over_call): If calling a method declared in a
60c87482
BM
8210 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
8211 expression which resolves the function address.
8212 (build_java_interface_fn_ref): New function.
8213
94c7f30b
RH
82142001-03-22 Richard Henderson <rth@redhat.com>
8215
8216 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
8217 * except.c: Don't include it.
8218
fd8b7a0e 82192001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
826840d9 8220 based on an idea from Joe Buck <jbuck@synopsys.com>
fd8b7a0e
GP
8221
8222 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
8223 New nonterminals.
8224 (data_def, component_decl): Add reductions to bad_decl.
8225
a1c2b86d
JJ
82262001-03-22 Jakub Jelinek <jakub@redhat.com>
8227
8228 * method.c (do_build_assign_ref): Don't use build_modify_expr for
8229 anonymous aggregates, since they don't have assignment operator
8230 method.
8231 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
8232 assignment operators for anonymous structure fields.
8233
46ccf50a
JM
82342001-03-21 Jason Merrill <jason@redhat.com>
8235
8236 * pt.c (instantiate_decl): Abort if we see a member constant
8237 instantiation that doesn't already have its initializer.
8238 Downgrade explicit instantiation without definition to pedwarn.
8239
8240 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
8241 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
8242 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
8243
8244 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
8245 (pending_vtables): Remove.
8246 * decl2.c (pending_vtables): Remove.
8247 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
8248 CLASSTYPE_VTABLE_NEEDS_WRITING.
8249 (import_export_class): Likewise.
8250 (init_decl2): Don't mark pending_vtables.
8251 * lex.c (handle_pragma_vtable): Just sorry.
8252 * pt.c (instantiate_class_template): Don't mess with
8253 CLASSTYPE_VTABLE_NEEDS_WRITING.
8254 (mark_class_instantiated): Likewise.
8255 * ptree.c (print_lang_type): Don't print it.
8256 * semantics.c (begin_class_definition): Don't set it.
8257
8258 * pt.c (template_tail): Replace with last_pending_template.
8259 (maybe_templates, maybe_template_tail): Remove.
8260 (add_pending_template): Adjust.
8261 (instantiate_pending_templates): Adjust.
8262
8263 * cp-tree.h (struct saved_scope): Remove lang_stack field.
8264 (current_lang_stack): Remove.
8265 * decl.c (maybe_push_to_top_level): Don't initialize it.
8266 (duplicate_decls): Use current_lang_depth.
8267 (xref_basetypes): Likewise.
8268 * class.c (current_lang_depth): New fn.
8269 (push_lang_context): Use more varray functionality.
8270 (pop_lang_context): Likewise.
64d9c3fe
JM
8271
8272 * error.c (GLOBAL_THING): Always use '__'.
8273
1c06710a
MM
82742001-03-21 Mark Mitchell <mark@codesourcery.com>
8275
71cb9286
MM
8276 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
8277
1c06710a
MM
8278 * mangle.c (mangle_decl_string): Mangle the names of overloaded
8279 operators, even when they have `extern "C"' linkage.
8280
92643fea
MM
82812001-03-19 Mark Mitchell <mark@codesourcery.com>
8282
8283 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
8284 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8285 where it's not necessary.
8286 (add_method): Remove optimization involving comparison of
8287 DECL_ASSEMBLER_NAME.
8288 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
8289 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8290 where it's not necessary.
8291 (check_methods): Likewise.
8292 (build_clone): Likewise.
8293 (built_vtt): Likewise.
8294 * cp-tree.h (DECL_NEEDED_P): Likewise.
8295 * decl.c (pushtag): Likewise.
8296 (duplicate_decls): Likewise.
8297 (pushdecl): Likewise.
8298 (builtin_function): Likewise.
8299 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
8300 (build_cp_library_fn): Likewise.
8301 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
8302 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8303 where it's not necessary.
8304 (make_rtl_for_nonlocal_decl): Likewise.
8305 (cp_finish_decl): Likewise.
8306 (grokfndecl): Likewise.
8307 (grokvardecl): Likewise.
8308 (grokdeclarator): Likewise.
8309 (start_function): Likewise.
8310 (cp_missing_return_ok_p): Likewise.
8311 * decl2.c (grokclassfn): Likewise.
8312 (check_classfn): Likewise.
8313 (finish_static_data_member_decl): Likewise.
8314 (grokfield): Likewise.
8315 * error.c (GLOBAL_IORD_P): Remove.
8316 (dump_global_iord): Improve output.
8317 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
8318 * except.c (nothrow_libfn_p): Summarily reject any function not in
8319 namespace-scope.
8320 * init.c (build_java_class_ref): Don't explicitly set
8321 DECL_ASSEMBLER_NAME after calling mangle_decl.
8322 * mangle.c (mangle_decl_string): Handle extern "C" functions.
8323 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
8324 * method.c (set_mangled_name_for_decl): Don't explicitly set
8325 DECL_ASSEMBLER_NAME after calling mangle_decl.
8326 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
8327 IDENTIFIER_GLOBAL_VALUE for the thunk.
8328 * pt.c (set_mangled_name_for_template_decl): Remove.
8329 (check_explicit_specialization): Don't use it.
8330 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
8331 (tsubst_friend_function): Likewise.
8332 (tsubst_decl): Likewise.
8333 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
8334 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
8335 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
8336 where it's not necessary.
8337 (tinfo_base_init): Likewise.
8338 (create_real_tinfo_var): Likewise.
8339 * search.c (looup_field_1): Likewise.
8340 * semantics.c (finish_named_return_value): Likewise.
8341 * tree.c (init_tree): Set lang_set_decl_assembler_name.
11fe225a 8342
d064d75a
GDR
83432001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
8344
8345 Correct semantics restrictions checking in throw-expression.
8346 * except.c (is_admissible_throw_operand): New function.
8347 (build_throw): Use it.
8348
a3eab619
MM
83492001-03-14 Mark Mitchell <mark@codesourcery.com>
8350
8351 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
8352 and its ilk.
8353
19e7881c
MM
83542001-03-14 Mark Mitchell <mark@codesourcery.com>
8355
8356 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
8357 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
8358 * decl.c (duplicate_decls): Likewise.
8359 (builtin_function): Likewise.
8360 (build_library_fn): Likewise.
8361 (build_cp_library_fn): Likewise.
8362 (check_initializer): Likewise.
8363 (cp_finish_decl): Likewise.
8364 * decl2.c (grokfield): Likewise.
8365 (grok_function_init): Remove #if 0'd code.
8366 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
8367 * friend.c (do_friend): Likewise.
8368 * init.c (get_temp_regvar): Likewise.
8369 * method.c (make_thunk): Likewise.
8370 * pt.c (tsubst_friend_function): Likewise.
8371 (tsubst_decl): Likewise.
8372 (regenerate_decl_from_template): Likewise.
8373 * semantics.c (genrtl_named_return_value): Likewise.
8374 (expand_body): Likewise.
8375 (genrtl_finish_function): Likewise.
8376 * tree.c (cp_tree_equal): Likewise.
11fe225a 8377
78fe06c2
NS
83782001-03-12 Nathan Sidwell <nathan@codesourcery.com>
8379
8380 * call.c (convert_like_real): Add extra semantics to INNER
8381 parameter. Don't convert to temporary if a user conversion
8382 gives us an lvalue that we're about to bind to a reference.
8383 Set INNER to indicate pending reference binding on recursive
8384 calls.
8385
b3e68a79
NB
83862001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8387
8388 * cp/lex.c: Delete duplicate pending_lang_change.
8389
83902001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8391
8392 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
8393 Similarly.
8394 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
8395 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
8396
11642c3a
ZW
83972001-03-09 Zack Weinberg <zackw@stanford.edu>
8398
8399 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
8400
bb6852eb 84012001-03-08 Stan Shebs <shebs@apple.com>
f7687817
SS
8402
8403 * cp-tree.h (set_identifier_local_value): Remove unused decl.
8404
cc937581
ZW
84052001-03-06 Zack Weinberg <zackw@stanford.edu>
8406
8407 * spew.c: Remove references to CPP_OSTRING.
8408
d1188d91
AH
84092001-03-06 Andrew Haley <aph@redhat.com>
8410
8411 * typeck.c (convert_arguments): Check that we have an fndecl.
8412
4eaf1d5b
AH
84132001-03-05 Andrew Haley <aph@redhat.com>
8414
8415 * typeck.c (convert_arguments): Don't do ellipsis conversion for
8416 __built_in_constant_p.
8417
7eeb553c
NS
84182001-03-02 Nathan Sidwell <nathan@codesourcery.com>
8419
8420 * typeck.c (build_static_cast): Allow enum to enum conversions
8421 as per DR 128.
8422
d282fcb2
NS
84232001-03-02 Nathan Sidwell <nathan@codesourcery.com>
8424
8425 * class.c (check_field_decls): Pointers to member do not a
8426 non-pod struct make, as per DR 148.
8427
f86fdf68
NS
84282001-03-02 Nathan Sidwell <nathan@codesourcery.com>
8429
8430 * call.c (joust): cp_pedwarn when using gnu extension concerning
8431 worst conversion sequences.
8432
d6edb99e
ZW
84332001-03-01 Zack Weinberg <zackw@stanford.edu>
8434
8435 * decl.c: Replace all uses of 'boolean' with 'bool'.
8436
f7143427
ZW
84372001-03-01 Zack Weinberg <zackw@stanford.edu>
8438
8439 * lang-specs.h: Add zero initializer for cpp_spec field to
8440 all array elements that need one. Don't put an #ifdef inside
8441 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
8442 use it.
8443
fbfe8c9e
NS
84442001-03-01 Nathan Sidwell <nathan@codesourcery.com>
8445
8446 Implement using decls inside template functions.
8447 * decl2.c (validate_nonmember_using_decl): Don't special case
8448 fake_std_node in the global namespace. Don't reject early when
8449 processing a template.
8450 (do_local_using_decl): Add to statement tree. Don't do further
8451 processing when building a template.
8452 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
8453
4d24a889
NS
84542001-03-01 Nathan Sidwell <nathan@codesourcery.com>
8455
8456 * decl2.c (do_nonmember_using_decl): Don't complain if we find
8457 same function. Do complain about ambiguating extern "C"
8458 declarations.
8459
e5844e6d
NS
84602001-02-28 Nathan Sidwell <nathan@codesourcery.com>
8461
8462 Remove floating point and complex type template constant parms.
8463 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
8464 COMPLEX_TYPE extensions.
8465 (invalid_nontype_parm_type_p): Likewise.
8466
788f238c
JO
84672001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
8468
8469 * except.c (call_eh_info): Revert "match_function"'s type.
8470
73ea87d7
NS
84712001-02-27 Nathan Sidwell <nathan@codesourcery.com>
8472
8473 Fix ctor vtable vcall offsets.
8474 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
8475 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
8476 (get_matching_base): Remove.
8477 (get_original_base): New function.
11fe225a 8478 (build_vtbl_initializer): Initialize vid.rtti_binfo.
73ea87d7
NS
8479 Use a virtual thunk for a ctor vtable with an index
8480 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
8481 primary base within a constructor vtable. Only set
8482 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
8483 when primary base has been lost.
8484 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
8485
fe730161
JO
84862001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
8487
8488 * call.c (joust): Ensure more_specialized()'s argument length
8489 parameter has correct value for constructors.
8490
e5dd4aad
NS
84912001-02-26 Nathan Sidwell <nathan@codesourcery.com>
8492
8493 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
11fe225a 8494
e5dd4aad
NS
8495 * decl.c (mark_inlined_fns): Prototype.
8496
25200ab2
MM
84972001-02-22 Mark Mitchell <mark@codesourcery.com>
8498
8499 * spew.c (yylex): Correct handling of friends.
8500
f58c04ac
MM
85012001-02-22 Mark Mitchell <mark@codesourcery.com>
8502
8503 * mangle.c (write_encoding): Pass write_function_type the
8504 FUNCTION_DECL for the function being encoded.
8505 (write_function_type): Pass it along to write_bare_function_type.
8506 (write_bare_function_type): Pass it along to write_method_parms.
8507 (write_method_parms): Don't mangle the compiler-generated
8508 parameters to a constructor or destructor.
8509
9c96f3f8
AJ
85102001-02-22 Andreas Jaeger <aj@suse.de>
8511
8512 * optimize.c: Include toplev.h for
8513 note_deferral_of_defined_inline_function prototype.
8514
b3bae5e2
JJ
85152001-02-22 Jakub Jelinek <jakub@redhat.com>
8516
8517 * cp-tree.h (struct lang_decl_inlined_fns): New.
8518 (struct lang_decls): Add inlined_fns.
8519 (DECL_INLINED_FNS): New macro.
8520 * optimize.c (struct inline_data): Add inlined_fns.
8521 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
8522 (inlinable_function_p): Likewise, fix typo in comment,
8523 function is not inlinable if it already inlined function currently
8524 being optimized.
306ef644 8525 (expand_call_inline): Add fn to inlined_fns if necessary.
b3bae5e2
JJ
8526 (optimize_function): Initialize inlined_fns.
8527 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
8528 * decl.c (mark_inlined_fns): New function.
8529 (lang_mark_tree): Call it.
8530
5daf7c0a
JM
85312001-02-21 Jason Merrill <jason@redhat.com>
8532
8533 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
8534 (DECL_UNINLINABLE): Move to middle-end.
8535
8536 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
8537 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
8538 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
8539 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
8540 parms and outer BLOCK. note_deferral_of_defined_inline_function.
8541
8542 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
8543 second parm of op=.
8544
2c0fc02d
MM
85452001-02-19 Mark Mitchell <mark@codesourcery.com>
8546
8547 * decl2.c (set_decl_namespace): Allow explicit instantiations in
8548 any namespace.
8549
612164eb
KL
85502001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8551
8552 * optimize.c (expand_call_inline): Don't walk subtrees of type
8553 nodes.
8554
69a59a49
MM
85552001-02-18 Mark Mitchell <mark@codesourcery.com>
8556
8557 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
8558 for a destructor.
8559
e0fff4b3
JM
85602001-02-18 Jason Merrill <jason@redhat.com>
8561
8562 Do put the VTT parameter in DECL_ARGUMENTS.
8563 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
8564 (current_vtt_parm): New macro.
8565 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
8566 (DECL_HAS_VTT_PARM_P): New macro.
8567 (DECL_VTT_PARM): Remove.
8568 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
8569 * decl.c (duplicate_decls): Only copy the operator code if
8570 appropriate.
8571 (start_function): Set current_vtt_parm.
8572 (lang_mark_tree): Don't mark vtt_parm.
9c96f3f8 8573 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
e0fff4b3
JM
8574 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
8575 * class.c (build_clone): Maybe remove the VTT parm.
8576 * optimize.c (maybe_clone_body): Set up the VTT parm.
8577 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
8578 * call.c (build_over_call): Just allow the VTT arg.
8579 * method.c (make_thunk): Don't set DECL_VTT_PARM.
8580 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
8581 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
8582 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
8583 * error.c (dump_function_decl): Likewise.
8584 * call.c (build_user_type_conversion_1, convert_like_real): Abort
8585 if we try to call a constructor with in-charge or VTT parms.
8586 * method.c (skip_artificial_parms_for): New fn.
8587 * call.c (add_function_candidate, build_over_call): Call it.
8588 * call.c (build_new_method_call): Use current_vtt_parm.
8589 * init.c (expand_virtual_init): Likewise.
8590 * class.c (same_signature_p): No longer static.
8591 * cp-tree.h: Declare it.
8592 * search.c (look_for_overrides_r): Use it.
8593
c750255c
MM
85942001-02-17 Mark Mitchell <mark@codesourcery.com>
8595
8fa33dfa
MM
8596 * cp-tree.h (new_abi_rtti_p): Remove.
8597 (name_mangling_version): Likewise.
8598 (flag_do_squangling): Likewise.
8599 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
8600 * decl.c (grokfndecl): Likewise.
8601 * decl2.c (name_mangling_version): Remove.
8602 (flag_do_squangling): Likewise.
8603 (lang_f_options): Remove `squangle'.
8604 (unsupported_options): Add `squangle'.
8605 (cxx_decode_option): Issue a warning about uses of
8606 -fname-mangling-version.
8607 (finish_file): Remove old ABI support.
8608 * pt.c (check_explicit_specialization): Likewise.
8609 (tsubst_decl): Likewise.
8610 * rtti.c (init_rtti_processing): Likewise.
8611 (build_headof): Likewise.
8612 (get_tinfo_decl_dynamic): Likewise.
8613 (tinfo_from_decl): Likewise.
8614 (build_dynamic_cast_1): Likewise.
8615 (synthesize_tinfo_var): Likewise.
12fa82db
MM
8616 * init.c (build_new): Allow enumeration types for the array-bounds
8617 in a direct-new-declarator.
8618
8619 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
8620
c750255c
MM
8621 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
8622 TREE_PROTECTED from the template being specialized.
8623
a714e5c5
JM
86242001-02-17 Jason Merrill <jason@redhat.com>
8625
8626 * decl2.c (build_artificial_parm): Set TREE_READONLY.
8627
9c96f3f8 8628 * decl.c (bad_specifiers): Allow throw specs on things with
a714e5c5
JM
8629 pointer-to-function or -member-function type.
8630 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
8631 a pmf.
8632
8084b91e
MM
86332001-02-17 Mark Mitchell <mark@codesourcery.com>
8634
8635 * call.c (check_dtor_name): Handle template names correctly.
8636
48f22ed2
JM
86372001-02-16 Jason Merrill <jason@redhat.com>
8638
8639 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
8640 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
8641 * optimize.c (maybe_clone_body): Don't substitute it.
8642 * call.c (build_new_method_call): Check in_chrg instead.
8643 * init.c (expand_virtual_init): Likewise.
8644
e8186ecf
GDR
86452001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
8646
8647 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
8648 class-type introduces at least a type-name.
8649
2c1be322
JJ
86502001-02-16 Jakub Jelinek <jakub@redhat.com>
8651
8652 * call.c (convert_like_real): Create a temporary for non-lvalue.
8653
aab8454a
JO
86542001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
8655
8656 * cp-tree.h: Fix typos in comments.
8657
a901fa64
JM
86582001-02-16 Jason Merrill <jason@redhat.com>
8659
8660 * optimize.c (remap_block): If we're compiling a clone, pass the
8661 new block to insert_block.
8662
8853373c
MM
86632001-02-16 Mark Mitchell <mark@codesourcery.com>
8664
8665 * semantics.c (finish_asm_stmt): Robustify.
8666
b60ecc04
MM
86672001-02-15 Mark Mitchell <mark@codesourcery.com>
8668
8669 * pt.c (push_template_decl_real): Don't remangle the name of a
8670 class template.
8671
e658449e
JM
86722001-02-15 Jim Meyering <meyering@lucent.com>
8673
fd48c9b5
DD
8674 * Make-lang.in (c++.install-common): Depend on installdirs.
8675 (c++.install-info): Likewise.
8676 (c++.install-man): Likewise.
e658449e 8677
f1a3f197
MM
86782001-02-15 Mark Mitchell <mark@codesourcery.com>
8679
8680 * typeck2.c (build_m_component_ref): Robustify.
8681
8826b15b
AO
86822001-02-15 Alexandre Oliva <aoliva@redhat.com>
8683
8684 * friend.c (do_friend): Don't take the nested [template] class
8685 into account when deciding whether to warn about the friend
8686 function not referring to a template function.
8687
7161c1a5
JJ
86882001-02-14 Jakub Jelinek <jakub@redhat.com>
8689
8690 * typeck.c (build_unary_op): Clarify error message.
8691
4806765e
AH
86922001-02-08 Aldy Hernandez <aldyh@redhat.com>
8693
a901fa64
JM
8694 * parse.y (component_constructor_declarator): allow optional
8695 parentheses around constructor class name.
4806765e 8696
bfc8e1e2
NS
86972001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8698
8699 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
8700 section.
8701 * init.c (emit_base_init): Remove incorrect comment about
8702 virtual bases.
8703 * method.c (make_thunk): Fix comment alignment.
8704
394fd776
NS
87052001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8706
8707 Kill remnants of this is variable.
8708 * cp-tree.h (flag_this_is_variable): Remove.
8709 * decl2.c (flag_this_is_variable): Remove.
8710 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
8711 (build_vbase_path): The path is non-static, even in a cdtor.
8712 (resolves_to_fixed_type_p): Add additional return value.
8713 * search.c (init_vbase_pointers): Adjust.
8714 * tree.c (lvalue_p_1): Adjust.
8715 * typeck.c (mark_addressable): Adjust.
8716
d0ab7624
NS
87172001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8718
8719 * pt.c (unify): Don't check cv quals of array types.
8720
7773899b
NS
87212001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8722
8723 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
8724 check whether we already have the type.
8725
52682a1b
MM
87262001-02-13 Mark Mitchell <mark@codesourcery.com>
8727
8728 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
8729 * call.c (build_op_delete_call): Simplify to remove duplicate
8730 code.
8731 * class.c (clone_function_decl): Don't build the deleting variant
8732 of a non-virtual destructor.
8733 * decl.c (finish_destructor_body): Don't call delete if this is a
8734 non-virtual destructor.
8735 * init.c (build_delete): Explicitly call `operator delete' when
8736 deleting an object with a non-virtual destructor.
9c96f3f8 8737
3b6bd115
JM
87382001-02-13 Jason Merrill <jason@redhat.com>
8739
8740 * lang-specs.h: Add more __EXCEPTIONS.
8741
45abaea8
NS
87422001-02-12 Nathan Sidwell <nathan@codesourcery.com>
8743
8744 * typeck2.c (process_init_constructor): Check
8745 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
8746
996065b4
NS
87472001-02-12 Nathan Sidwell <nathan@codesourcery.com>
8748
8749 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
8750 Remove spurious information in comment. Allow further
8751 adjustments of REFERENCE_TYPE args.
8752
82c18d5c
NS
87532001-02-12 Nathan Sidwell <nathan@codesourcery.com>
8754
8755 * errfn.c (cp_deprecated): Tweak diagnostic text.
8756 * parse.y (new_initializer): Deprecate initializer lists
8757 extension.
8758
1f84ec23
MM
87592001-02-12 Mark Mitchell <mark@codesourcery.com>
8760
8761 Remove old ABI support.
8762
8c310e3f
MM
87632001-02-11 Mark Mitchell <mark@codesourcery.com>
8764
b1012f1b
MM
8765 * decl2.c (flag_vtable_thunks): Always set it to 1.
8766 (flag_new_abi): Likewise.
8767 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9c96f3f8 8768
8c310e3f
MM
8769 * Makefile.in (g++spec.o): Fix typo.
8770
3b635dfc
JM
87712001-02-09 Jason Merrill <jason@redhat.com>
8772
8773 * lang-specs.h: Restore definition of __EXCEPTIONS.
8774
bd0d5d4a
JM
87752001-02-08 Jason Merrill <jason@redhat.com>
8776
8777 * search.c (shared_member_p): New function.
8778 (lookup_field_r): Use it.
8779 * cp-tree.h (SHARED_MEMBER_P): Remove.
8780
8781 * method.c (process_overload_item): Handle template-dependent array
8782 bounds.
8783 * pt.c (type_unification_real): If we end up with undeduced nontype
8784 parms, try again.
8785
8786 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
8787 types.
8788
8789 * typeck2.c (friendly_abort): Don't say anything if we have
8790 earlier errors or sorries.
8791
9c96f3f8 8792 * decl.c (check_tag_decl): Notice attempts to redefine bool and
bd0d5d4a
JM
8793 wchar_t. Ignore if in_system_header.
8794
8795 * decl.c (maybe_push_cleanup_level): New fn...
8796 (start_decl_1): ...split out from here.
8797 * cvt.c (build_up_reference): Use it.
8798 * cp-tree.h: Declare it.
8799
a9374841
MM
88002001-02-07 Mark Mitchell <mark@codesourcery.com>
8801
9c96f3f8 8802 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
a9374841
MM
8803 spec.
8804
a87b4257
NS
88052001-02-06 Nathan Sidwell <nathan@codesourcery.com>
8806
8807 * pt.c (lookup_template_class): Make sure it's a primary
8808 template or template_template_parm when called from the parser.
8809 (instantiate_template_class): Add assertion.
8810
518fed76
AO
88112001-02-05 Alexandre Oliva <aoliva@redhat.com>
8812
8813 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
8814 from error_mark_node.
8815
9965d119
NS
88162001-02-05 Nathan Sidwell <nathan@codesourcery.com>
8817
8818 Fix specification and implementation bugs in V3 ABI
8819 construction vtables.
8820 * cp-tree.h (flag_dump_class_layout): New flag.
8821 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
8822 (BINFO_LOST_PRIMARY_P): New flag.
8823 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
8824 (BINFO_PRIMARY_MARKED_P): Rename to ...
8825 (BINFO_PRIMARY_P): ... here.
8826 (binfo_via_virtual): New prototype.
8827 * decl2.c (flag_dump_class_layout): New flag.
8828 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
8829 use `=' as a file name separator.
8830 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
8831 bases.
8832 (build_vtbl_address): If this is a virtual primary base, then
8833 get the vtbl of what it is ultimately primary for.
8834 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
8835 for BINFO_PRIMARY_P.
8836 (dfs_skip_nonprimary_vbases_markedp): Likewise.
8837 (get_shared_vbase_if_not_primary): Likewise.
8838 (dfs_get_pure_virtuals): Likewise.
8839 (expand_upcast_fixups): Likewise.
8840 (fixup_virtual_upcast_offsets): Likewise.
8841 (dfs_find_vbase_instance): Likewise.
8842 (find_vbase_instance): Likewise.
8843 (binfo_from_vbase): Adjust comment to reflect reality.
8844 (binfo_via_virtual): New function.
8845 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
8846 for binfo walking during VTT construction.
8847 (dfs_mark_primary_bases): Remove.
8848 (force_canonical_binfo_r): New function.
8849 (force_canonical_binfo): New function.
8850 (mark_primary_virtual_base): New function.
8851 (mark_primary_bases): Walk in inheritance graph order, use
8852 mark_primary_virtual_base.
8853 (determine_primary_base): Use some more intermediate variables.
8854 (dfs_find_final_overrider): Don't check for overriding along a
8855 virtual path.
8856 (dfs_modify_vtables): Walk into primary virtual bases too.
8857 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
8858 (build_base_fields): Likewise.
8859 (dfs_set_offset_for_unshared_vbases): Likewise.
8860 (layout_virtual_bases): Likewise.
8861 (end_of_class): Likewise.
8862 (finish_struct_1): Call dump_class_hierarchy, if requested.
8863 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
8864 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
8865 (dump_class_hierarchy): Add file parameter. Append to file, if
8866 required.
8867 (finish_vtbls): Adjust accumulate_vtbl_inits call.
8868 Use canonical base for virtual bases.
8869 (build_vtt): Add more comments. Adjust build_vtt_inits call.
8870 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
8871 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
8872 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
8873 virtual VTTs.
8874 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
8875 from DATA. We want virtual primary bases and all bases via virtual.
8876 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
8877 virtual base when not a construction vtable.
8878 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
8879 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
8880 Use canonical bases when processing virtual bases.
8881 (accumulate_vtbl_inits): We're interested in any base via a
8882 virtual path.
8883 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
8884 within a construction vtable, determine what is being overridden.
8885 (build_vtbl_initializer): Add more comments
8886 (add_vcall_offset_vtbl_entries_1): Adjust comment.
8887 (build_rtti_vtbl_entries): Check if the base has lost its
8888 primary.
8889
39d6f2e8
MM
88902001-02-05 Mark Mitchell <mark@codesourcery.com>
8891
8892 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
8893
400500c4
RK
8894Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8895
8896 * decl.c (pushdecl): Call abort instead of fatal.
8897 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
8898 * init.c (build_new_1): Likewise.
8899 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
8900 * decl.c (build_typename_type): hash_table_init now returns void.
8901 decl.c (init_decl_processing): Make an error non-fatal.
8902
97458258
MM
89032001-02-04 Mark Mitchell <mark@codesourcery.com>
8904
8905 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
8906 Document.
8907 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
8908 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
8909 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
8910 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
8911 * decl.c (maybe_commonize_var): Use the new name-mangling where
8912 appropriate.
8913 * decl2.c (comdat_linkage): Enhance comments. Make all
8914 compiler-generated things static, if COMDAT is not available.
8915 (get_tinfo_decl): Do not make typeinfo objects that belong in the
8916 library COMDAT.
8917 (tinfo_base_init): Use the correct mangled name for typeinfo
8918 strings, and push them into the global scope.
8919 (typeinfo_in_lib_p): New function.
8920 (synthesize_tinfo_var): Use it.
8921 (create_real_tinfo_var): Likewise.
9c96f3f8 8922
55de1b66
JJ
89232001-02-03 Jakub Jelinek <jakub@redhat.com>
8924
8925 * decl.c (push_class_binding): Use context_for_name_lookup instead
8926 of CP_DECL_CONTEXT.
8927 * search.c (context_for_name_lookup): Remove static. Check for NULL
8928 context in the loop.
8929 * cp-tree.h (context_for_name_lookup): Add prototype.
8930
e92730aa
JJ
89312001-02-02 Jakub Jelinek <jakub@redhat.com>
8932
8933 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
8934 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
8935 Remove.
8936 * call.c (convert_class_to_reference, build_user_type_conversion_1,
8937 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
8938
049f6ec9
MM
89392001-02-02 Mark Mitchell <mark@codesourcery.com>
8940
8941 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
8942 of macros used when compiling g++spec.c.
8943 * g++spec.c (lang_specific_driver): Link with the shared
8944 libgcc by default.
8945
718b8ea5
JM
89462001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
8947
8948 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
8949 make_reference_declarator, make_call_declarator), method.c
8950 (implicitly_declare_fn), parse.y (namespace_using_decl,
8951 notype_unqualified_id, expr_or_declarator, new_type_id,
8952 after_type_declarator, direct_after_type_declarator,
8953 notype_declarator, complex_notype_declarator,
8954 complex_direct_notype_declarator, qualified_id,
8955 notype_qualified_id, overqualified_id, direct_new_declarator,
8956 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
8957 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
8958 instead of build_parse_node.
8959
f2d1f0ba
KG
89602001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8961
8962 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
8963 (minus_one_node): Moved to top level gcc directory. Renamed
8964 to integer_minus_one_node.
8965
8966 * init.c (init_init_processing): Don't set minus_one_node.
8967 (build_vec_init): Use integer_minus_one_node.
8968
8969 * rtti.c (get_tinfo_decl_dynamic): Likewise.
8970
6001735e
JJ
89712001-01-28 Jakub Jelinek <jakub@redhat.com>
8972
8973 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
8974 identical and they would be replaced with constant, remove
8975 MODIFY_EXPR from the tree.
8976
c913b6f1
KG
89772001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8978
8979 * Make-lang.in: Remove all dependencies on defaults.h.
8980 * call.c: Don't include defaults.h.
8981 * decl.c: Likewise.
8982 * decl2.c: Likewise.
8983 * except.c: Likewise.
8984 * pt.c: Likewise.
8985 * rtti.c: Likewise.
8986 * tree.c: Likewise.
8987 * typeck.c: Likewise.
8988
324ffb8c
JJ
89892001-01-25 Jakub Jelinek <jakub@redhat.com>
8990
8991 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
8992 operators even in "C" linkage.
8993 * method.c (set_mangled_name_for_decl): Likewise.
8994 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
8995 overloaded operators in "C" linkage.
8996
4b2811e9
NS
89972001-01-24 Nathan Sidwell <nathan@codesourcery.com>
8998
8999 * pt.c (tsubst_decl): Remove IN_DECL parameter.
9000 (tsubst_arg_types): Check parameter is not void.
9001 (tsubst): Adjust tsubst_decl call.
9002
d8caf48e
NS
90032001-01-24 Nathan Sidwell <nathan@codesourcery.com>
9004
9005 * call.c (add_builtin_candidate): Quote std properly, from
9006 previous change.
9007
08511114
KL
90082001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9009
9010 * pt.c (check_explicit_specialization): Clone constructors and
9011 destructors.
9012
92ecdfb7
NS
90132001-01-23 Nathan Sidwell <nathan@codesourcery.com>
9014
9015 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
9016 indicates anything special about template depth. Make sure we
9017 only count the user visible template classes.
9018
4cff6abe
NS
90192001-01-23 Nathan Sidwell <nathan@codesourcery.com>
9020
9021 * call.c (build_conv): Typo in comment.
9022 (add_builtin_candidate): Add more explanation.
9023 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
9024 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
9025 when we have enumeral types.
9026 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
9027 candidates for relops and eqops.
9028 (joust): Simplify control flow. Allow a non-template user
9029 function to hide a builtin.
9030
62e4a758
NS
90312001-01-22 Nathan Sidwell <nathan@codesourcery.com>
9032
9033 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
9034 (more_specialized): Add deduction parameter.
9035 * call.c (joust): Adjust more_specialized call.
9036 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
9037 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
9038 (get_bindings_order): Remove.
9039 (get_bindings_real): Add DEDUCE parameter.
9040 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
9041 REFERENCE_TYPE jig for DEDUCE_ORDER.
9042 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
9043 maybe_adjust_types_for_deduction.
9044 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
9045 directly.
9046 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
9047 (check_cv_quals_for_unify): Use new unify qualifier flags.
9048 (unify): Clear new unify qualifier flags.
9049 (get_bindings_real): Add DEDUCE parameter.
9050 (get_bindings): Adjust call to get_bindings_real.
9051 (get_bindings_overload): Likewise.
9052 (most_specialized_instantiation): Adjust call to
9053 more_specialized.
9054
2a2a9e5a
JM
90552001-01-19 Jason Merrill <jason@redhat.com>
9056
9057 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
9058
9059 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
9060 -fnew-abi.
9061
60696c53
JM
90622001-01-19 Ute Pelkmann <scope.muc@t-online.de>
9063
9064 * decl2.c (arg_assoc_class): Fix double iteration logic.
9065
90662001-01-19 Jason Merrill <jason@redhat.com>
9067
9068 * init.c (build_delete): Always call convert_force to strip cv-quals.
9069
9070 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
9071 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
9072 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
9073
1e00f18c
NS
90742001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9075
9076 * search.c (get_vbase_1): Count only virtual bases.
9077
e13bced2
NS
90782001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9079
9080 * class.c (duplicate_tag_error): Robustify flag clearing.
9081
f9c244b8
NS
90822001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9083
9084 * cp-tree.h (lookup_template_class): Add complain parm.
9085 * decl.c (lookup_namespace_name): Adjust call to
9086 lookup_template_class.
9087 (make_typename_type): Likewise.
9088 * semantics.c (finish_template_type): Likewise.
9089 * pt.c (lookup_template_class): Add complain parm. Adjust.
9090 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
9091 (tsubst): Likewise.
9092
08c2df0f
NS
90932001-01-19 Nathan Sidwell <nathan@codesourcery.com>
9094
9095 * pt.c (copy_default_args_to_explicit_spec): Preserve
9096 object's CV quals. Reorganize.
9097
f5ceeec8
NS
90982001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9099
9100 * typeck.c (build_modify_expr): Say `initialization' for
9101 INIT_EXPRs.
9102 * init.c (build_default_init): Convert to enumeral type, if
9103 needed.
9104
a1cfa434
JJ
91052001-01-18 Jakub Jelinek <jakub@redhat.com>
9106
9107 * parse.y (nomods_initdcl0): Properly set things up for
9108 initdcl0_innards.
9109
028d1f20
NS
91102001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9111
9112 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
9113 (type_unification_real): Set it.
9114 (unify): Use it.
9115
9f724b6a
NS
91162001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9117
9118 * decl.c (finish_destructor_body): Convert to vbase pointer here.
9119
522d6614
NS
91202001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9121
9122 * semantics.c (begin_class_definition): Check we're not inside a
9123 template parm list.
9124
7f805b8f
NS
91252001-01-18 Nathan Sidwell <nathan@codesourcery.com>
9126
9127 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
9128 BASELINK_P.
9129
dc3799c1
KL
91302001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9131
9132 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
9133 * call.c (build_over_call): Add comment.
9134
bb37c4a5
DB
91352001-01-16 Daniel Berlin <dberlin@redhat.com>
9136
826840d9
RH
9137 * cvt.c (ocp_convert): Handle vector type conversion
9138 * typeck2.c (digest_init): Handle vector type initializations
9c96f3f8 9139
a26e7fb5
PE
91402001-01-16 Phil Edwards <pme@sources.redhat.com>
9141
9142 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
9143 was given.
9144
11b810f1
NS
91452001-01-15 Nathan Sidwell <nathan@codesourcery.com>
9146
9147 * pt.c (check_nontype_parm): Rename to ...
9148 (invalid_nontype_parm_type_p): ... here.
9149 (process_template_parm): Adjust.
9150 (convert_template_argument): Adjust.
9151
db3f4e4e
NS
91522001-01-15 Nathan Sidwell <nathan@codesourcery.com>
9153
9154 * pt.c (check_nontype_parm): New function.
9155 (process_template_parm): Use it.
9156 (convert_template_argument): Use it.
9157 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
9158 member.
9159
ea4f1fce
JO
91602001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
9161
9162 * tree.c: Add defaults.h
9163 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
9164 * Make-lang.in (cp/tree.o): Add defaults.h.
9165
1312c143
JM
91662001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
9167
9168 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
9169
4bc1997b
JM
91702001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
9171
9172 * g++.1: Change to be ".so man1/gcc.1".
9173
23de1fbf
JM
91742001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
9175
9176 * Make-lang.in (c++.info, c++.install-info): Build and install g++
9177 internals info.
9178 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
9179 ($(srcdir)/cp/g++int.info): New target.
9180 * gxxint.texi: Add info directory entry. Use @@ in email address.
9181 * .cvsignore: Update.
9182
0949f723
NS
91832001-01-12 Nathan Sidwell <nathan@codesourcery.com>
9184
9185 * typeck.c (build_c_cast): Do template processing earlier.
9186 Always pedwarn on array casts.
9187
a8641661
NS
91882001-01-12 Nathan Sidwell <nathan@codesourcery.com>
9189
9190 * friend.c (make_friend_class): Make sure a templated class is
9191 actually a template.
9192
844511c8
NS
91932001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9194
9195 * decl2.c (get_guard): Set linkage from guarded decl.
9196
96a1e32d
NS
91972001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9198
9199 * call.c (convert_default_arg): Check for unprocessed
9200 DEFAULT_ARG.
9201 * cp-tree.h (replace_defarg): Move to spew.c.
9202 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
9203 spew.c, which is where they really are.
9204 (done_pending_defargs): Declare.
9205 (unprocessed_defarg_fn): Declare.
9206 * decl.c (replace_defarg): Move to spew.c
9207 * parse.y (structsp): Call done_pending_defargs.
9208 * spew.c (defarg_fns): Rearrange list structure.
9209 (defarg_fnsdone): New static variable.
9210 (defarg_depfns): New static variable.
9211 (init_spew): Adjust.
9212 (add_defarg_fn): Store the type in TREE_TYPE.
9213 (do_pending_defargs): Detect and deal with ordering constraints
9214 and circularity.
9215 (done_pending_defargs): New function.
9216 (unprocessed_defarg_fn): New function.
9217 (replace_defarg): Moved from decl.c. Robustify. Don't save
9218 if circularity detected.
9219
34e225a3
NS
92202001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9221
9222 * pt.c (unify): Check array has a domain, before checking
9223 whether it is variable sized.
9224
98979fe0
NS
92252001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9226
9227 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
9228 parameters with pointers to arrays of unknown bound.
9229
b37bf5bd
NS
92302001-01-11 Nathan Sidwell <nathan@codesourcery.com>
9231
9232 * parse.y (template_parm_header, template_spec_header): New
9233 reductions. Split out from ...
9234 (template_header): ... here. Use them.
9235 (template_template_parm): Use template_parm_header.
9236 * semantics.c (finish_template_template_parm): Add assert.
9237
6c418184
MM
92382001-01-10 Mark Mitchell <mark@codesourcery.com>
9239
792508b5
MM
9240 * mangle.c (write_builtin_type): Fix thinko.
9241
8afa707f
MM
9242 * pt.c (copy_default_args_to_explicit_spec_1): New function.
9243 (copy_default_args_to_explicit_spec): Likewise.
9244 (check_explicit_specialization): Use it.
9245
6c418184
MM
9246 * class.c (finish_struct_1): Remove last argument in call to
9247 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
9248 * decl.c (builtin_function): Likewise.
9249 (build_cp_library_fn): Likewise.
9250 (check_initializer): Likewise.
9251 (make_rtl_for_nonlocal_decl): Likewise.
9252 (cp_finish_decl): Likewise.
9253 (start_function): Likewise.
9254 * decl2.c (finish_anon_union): Likewise.
9255 * friend.c (do_friend): Likewise.
9256 * init.c (build_java_class_ref): Likewise.
9257 * method.c (make_thunk): Likewise.
9258 * pt.c (tsubst_friend_function): Likewise.
9259 * semantics.c (expand_body): Likewise.
9260
31d95fc6
MM
92612001-01-10 Mark Mitchell <mark@codesourcery.com>
9262
9263 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
9264 looking at DECL_CLONED_FUNCTION for non-functions.
9265
31bb3027
NS
92662001-01-10 Nathan Sidwell <nathan@codesourcery.com>
9267
9268 * error.c (dump_template_parameter): Use parm to determine how
9269 to print default value.
9270
fd3f43e7
NS
92712001-01-10 Nathan Sidwell <nathan@codesourcery.com>
9272
9273 * class.c (duplicate_tag_error): Clear more flags.
9274
042b4c4e
NS
92752001-01-10 Nathan Sidwell <nathan@codesourcery.com>
9276
9277 * call.c (build_new_method_call): Use binfo_for_vbase.
9278
a7537031
JM
92792001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9280
9281 * cp-tree.h (flag_cond_mismatch): Don't declare.
9282 * decl2.c (flag_cond_mismatch): Don't define.
9283 (lang_f_options): Remove cond-mismatch.
9284 (unsupported_options): Add cond-mismatch.
9285
186c0fbe
NS
92862001-01-09 Nathan Sidwell <nathan@codesourcery.com>
9287
9288 * class.c (handle_using_decl): Reject using of constructor name
9289 of sourcing class. Allow injecting of a method with same name as
9290 nested class. Fixup error messages.
9291
28ec8d6b
JM
92922001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
9293
9294 * decl2.c (lang_decode_option): Handle -Wformat=2.
9295
3febd123
NS
92962001-01-08 Nathan Sidwell <nathan@codesourcery.com>
9297
9298 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
9299 initialized_in_class.
9300 (DECL_DEFINED_IN_CLASS_P): Rename to ...
9301 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
9302 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
9303 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
9304 * pt.c (check_default_tmpl_args): Adjust for
9305 DECL_INITIALIZED_IN_CLASS_P.
9306 (instantiate_class_template): Likewise.
9307 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9c96f3f8 9308
3febd123
NS
9309 * class.c (finish_struct): Constify saved_filename.
9310
1f0d71c5
NS
93112001-01-08 Nathan Sidwell <nathan@codesourcery.com>
9312
9313 * class.c (duplicate_tag_error): Adjust diagnostic.
9314 (finish_struct): Locally set location to start of struct.
9315 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
9316
5bf15e84 93172001-01-08 Nathan Sidwell <nathan@codesourcery.com>
76191fdd
NS
9318
9319 * decl.c (struct binding_level): Adjust class_shadowed comments
9320 to reflect reality.
aba649ba 9321 (push_class_level_binding): Adjust comments to reflect reality.
76191fdd
NS
9322 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
9323 Don't set TREE_VALUE on the class_shadowed list.
9324
23d4e4cc 93252001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9c96f3f8
AJ
9326
9327 * decl2.c (acceptable_java_type): Allow references too.
23d4e4cc
APB
9328 * init.c (build_java_class_ref): When using the new ABI, search
9329 `class$' and have it mangled with `mangle_decl.'
9330 * mangle.c (write_java_integer_type_codes): New function.
9331 (write_builtin_type): Detect and mangle Java integer and real
9332 types.
9c96f3f8 9333
0c58da3e
MM
93342001-01-07 Mark Mitchell <mark@codesourcery.com>
9335
9336 * decl2.c (grokfield): Don't accept `asm' specifiers for
9337 non-static data members.
9338
45b8ddb4
KG
93392001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9340
9341 * expr.c (cplus_expand_expr): Don't reset `target'.
9342
96302433
NB
93432001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
9344
826840d9 9345 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
96302433 9346
220bce48
NS
93472001-01-05 Nathan Sidwell <nathan@codesourcery.com>
9348
9349 * parse.y (template_datadef): Check for error_mark_node.
9350
bfa2cb33
NS
93512001-01-05 Nathan Sidwell <nathan@codesourcery.com>
9352
9353 * cp-tree.def (DEFAULT_ARG): Make `x' class.
9354
eaa7c03f
JM
93552001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
9356
9357 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
9358 (record_builtin_type): Make non-static.
9359 (flag_short_double): Don't declare.
9360 (init_decl_processing): Remove the creation of many tree nodes now
9361 in c_common_nodes_and_builtins.
9362 (build_void_list_node): New function.
9363 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
9364 * cp-tree.h (flag_short_wchar): Don't declare.
9365
3af4c257
MM
93662001-01-04 Mark Mitchell <mark@codesourcery.com>
9367
9368 * call.c (build_conv): Don't use build1 for USER_CONV.
9369 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
9370
03dc0325
JM
93712001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
9372
9373 * lex.c (lang_init): Call c_common_lang_init.
9374
3c505507
NS
93752001-01-03 Nathan Sidwell <nathan@codesourcery.com>
9376
9377 * search.c (lookup_fnfields_here): Remove.
9378 (look_for_overrides_r): Use lookup_fnfields_1.
9379 Ignore functions from using declarations.
9380
03378143
NS
93812001-01-03 Nathan Sidwell <nathan@codesourcery.com>
9382
9383 Implement exceptions specifiers for implicit member functions.
9384 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
9385 * method.c (synthesize_exception_spec): New function.
9386 (locate_dtor, locate_ctor, locate_copy): New functions.
9387 (implicitly_declare_fn): Generate the exception spec too.
9388 * search.c (check_final_overrider): Check artificial functions
9389 too.
9c96f3f8 9390 * typeck2.c (merge_exception_specifiers): New function.
03378143 9391
f30efcb7
JM
93922001-01-03 Jason Merrill <jason@redhat.com>
9393
9394 * init.c (build_default_init): New fn.
9395 (perform_member_init): Split out from here.
9396 (build_new_1): Use it. Simplify initialization logic.
9397 (build_vec_init): Take an array, rather than a pointer and maxindex.
9398 Speed up simple initializations. Don't clean up if we're assigning.
9399 * cp-tree.h: Adjust.
9400 * decl2.c (do_static_initialization): Remove TREE_VEC case.
9401 * parse.y (new_initializer): Return void_zero_node for ().
9402 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
9403 * typeck2.c (digest_init): Only complain about user-written
9404 CONSTRUCTORs.
9405
a412bf75
MS
94062000-12-22 Mike Stump <mrs@wrs.com>
9407
9408 * decl2.c: (max_tinst_depth): Increase to 50.
9409
4890c2f4
MM
94102001-01-02 Mark Mitchell <mark@codesourcery.com>
9411
9412 * class.c (invalidate_class_lookup_cache): Zero the
9413 previous_class_values.
9414 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
9415 TREE_INT_CST_HIGH.
9416 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
9417 * decl.c (free_bindings): New variable.
9418 (push_binding): Don't create a new binding if we have one on the
9419 free list.
9420 (pop_binding): Put old bindings on the free list.
9421 (init_decl_processing): Use size_int, not build_int_2.
9422 Register free_bindings as a GC root.
9423 (cp_make_fname_decl): Use size_int, not build_int_2.
9424 (push_inline_template_parms_recursive): Likewise.
9425 (end_template_parm_list): Likewise.
688f6688 9426 (for_each_template_parm): Do not use walk_tree_without_duplicates.
4890c2f4
MM
9427 (tsubst_template_parms): Use size_int, not build_int_2.
9428 (tsubst): Likewise.
9429 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9c96f3f8 9430
4f78b9a8
RH
94312001-01-02 Richard Henderson <rth@redhat.com>
9432
9433 * parse.y (asm): Set ASM_INPUT_P.
9434
3c8c2a0a
JM
94352001-01-02 Jason Merrill <jason@redhat.com>
9436
96d6c610
JM
9437 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
9438 for v3 ABI.
9439
9440 * typeck.c (cp_truthvalue_conversion): New fn.
9441 * cvt.c (ocp_convert): Use it.
9442
9443 * cp-tree.h: Lose c-common.c decls.
9444
9445 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
9446 * cvt.c (convert_to_void): Use type_unknown_p.
9447
9c96f3f8 9448 * typeck.c (strip_all_pointer_quals): Also strip quals from
3c8c2a0a
JM
9449 pointer-to-member types.
9450
9451 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
9452 parse.y as C.
9453
9454 * call.c (build_new_method_call): Do evaluate the object parameter
9455 when accessing a static member.
9456 * typeck.c (build_component_ref): Likewise.
9457
d363e7bf
AJ
94582001-01-02 Andreas Jaeger <aj@suse.de>
9459
9460 * decl.c (cp_missing_noreturn_ok_p): New.
9461 (init_decl_processing): Set lang_missing_noreturn_ok_p.
9462
77f5250d
JJ
94632000-12-29 Jakub Jelinek <jakub@redhat.com>
9464
9465 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
9466
31a714f6
MM
94672000-12-29 Mark Mitchell <mark@codesourcery.com>
9468
9469 * class.c (pushclass): Remove #if 0'd code.
9470 * cp-tree.h (overload_template_name): Remove.
9471 * decl.c (store_bindings): Simplify.
9472 (pop_from_top_level): Likewise.
9473 * pt.c (overload_template_name): Remove.
d363e7bf 9474 (instantiate_decl): Don't call push_to_top_level if it's not
31a714f6
MM
9475 needed.
9476
414ea4aa
MM
94772000-12-28 Mark Mitchell <mark@codesourcery.com>
9478
9479 * pt.c (register_local_specialization): Don't return a value.
9480 (lookup_template_class): Use move-to-front heuristic when looking
9481 up template instantiations.
9482 (instantiate_decl): Only push_to_top_level when we're actually
9483 going to instantiate the template.
9484
6f18f7e9
HPN
94852000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
9486
9487 * search.c (binfo_for_vtable): Return least derived class, not
9488 most. Handle secondary vtables.
9489
e5214479
JM
94902000-12-22 Jason Merrill <jason@redhat.com>
9491
3c8c2a0a
JM
9492 * pt.c (more_specialized): Don't optimize len==0.
9493 (fn_type_unification): If we're adding the return type, increase len.
9494
ebb1abc3
JM
9495 * typeck.c (build_binary_op): Fix pmf comparison logic.
9496
c939ca5f
JM
9497 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
9498 DECL_STATIC_FUNCTION_P.
9499
e6fe680d
JM
9500 * semantics.c (genrtl_finish_function): Don't try to jump to
9501 return_label unless it exists.
9502
e5214479
JM
9503 In partial ordering for a call, ignore parms for which we don't have
9504 a real argument.
9505 * call.c (joust): Pass len to more_specialized.
9506 (add_template_candidate_real): Strip 'this', pass len.
9507 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
9508 (get_bindings_order): New fn. Pass len down.
9509 (get_bindings_real): Strip 'this', pass len.
9510 (fn_type_unification): Likewise.
9511 (type_unification_real): Succeed after checking 'len' args.
9512 (most_specialized_instantiation): Lose explicit_args parm.
d363e7bf 9513 * class.c (resolve_address_of_overloaded_function): Strip 'this',
e5214479
JM
9514 pass len.
9515
95162000-12-21 Jason Merrill <jason@redhat.com>
477f6664
JM
9517
9518 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
9519 DECL_TEMPLATE_RESULT.
9520
9521 * search.c (lookup_field_r): Call lookup_fnfields_1, not
9522 lookup_fnfields_here.
9523
9524 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
9525
9526 * call.c (build_object_call): Also allow conversions that return
9527 reference to pointer to function.
9528 (add_conv_candidate): Handle totype being ref to ptr to fn.
9529 (build_field_call): Also allow members of type reference to function.
9530 Lose support for calling pointer to METHOD_TYPE fields.
9531
9532 * error.c (dump_expr): Handle *_CAST_EXPR.
9533
9534 * typeck2.c (build_scoped_ref): Always convert to the naming class.
9535
9536 * tree.c (break_out_cleanups): Lose.
9537 * cp-tree.h: Remove prototype.
9538 * typeck.c (build_component_ref): Don't break_out_cleanups.
9539 (build_compound_expr): Likewise.
9540 * semantics.c (finish_expr_stmt): Likewise.
9541
3e4d04a1
RH
95422000-12-20 Richard Henderson <rth@redhat.com>
9543
9544 * cp-tree.h: Update declarations.
9545 * decl.c (finish_case_label): Return the new stmt node.
9546 * semantics.c (finish_goto_stmt): Likewise.
9547 (finish_expr_stmt, finish_return_stmt): Likewise.
9548 (finish_break_stmt, finish_continue_stmt): Likewise.
9549 (finish_asm_stmt): Likewise.
9550 * parse.y (already_scoped_stmt): Set STMT_LINENO.
9551 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
9552 (simple_if, simple_stmt): Return the new stmt node.
9553 (save_lineno): New.
9554
20d380b1
JM
95552000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
9556
9557 * cp-tree.h: Don't declare warn_long_long.
9558
221c7a7f
KL
95592000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9560
9561 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
9562 IS_AGGR_TYPE.
9563
b429fdf0
KL
95642000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9565
9566 * pt.c (unify): Handle when both ARG and PARM are
9567 BOUND_TEMPLATE_TEMPLATE_PARM.
9568
c2beae77
KL
95692000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9570
9571 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
9572 DECL_TEMPLATE_PARM_P.
9573
c3e899c1
JM
95742000-12-15 Jason Merrill <jason@redhat.com>
9575
96790071
JM
9576 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
9577
8d42565b
JM
9578 * init.c (build_new_1): Don't strip quals from type.
9579
fab09a24
JM
9580 * decl.c (pushdecl): Don't check for linkage on a non-decl.
9581
c3e899c1
JM
9582 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
9583
9584 * call.c (build_new_function_call): Lose space before paren in
9585 error message.
9586 (build_new_method_call): Likewise.
9587
9588 * typeck2.c (build_m_component_ref): Propagate quals from datum.
9589
edac124d
KL
95902000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9591
9592 * pt.c (check_explicit_specialization): Propagate default
9593 function arguments to explicit specializations.
9594
31750649 95952000-12-13 DJ Delorie <dj@redhat.com>
8d3b081e
DD
9596
9597 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
9598 and <? operators.
9599
5e818b93
JM
96002000-12-08 Jason Merrill <jason@redhat.com>
9601
9602 * error.c (dump_function_name): Don't let the user see __comp_ctor.
9603
9604 Clean up copy-initialization in overloading code.
9605 * call.c (build_user_type_conversion_1): Die if we are asked to
9606 convert to the same or a base type.
9607 (implicit_conversion): Avoid doing so. Lose reference binding code.
9608 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
9609 direct-initialization. Also do direct-init part of copy-init.
9610 (build_user_type_conversion): Don't provide context to convert_like.
9611 * cvt.c (ocp_convert): build_user_type_conversion will now provide
9612 the constructor call for copy-init.
9613
9614 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
9615 instantiation of a member template.
9616 (do_decl_instantiation): Not here.
9617
38da6039
NS
96182000-12-07 Nathan Sidwell <nathan@codesourcery.com>
9619
9620 * class.c (check_field_decls): Don't special case anonymous
9621 fields in error messages.
c9407e4c 9622 (note_name_declared_in_class): Use %D on diagnostic.
d363e7bf 9623
38da6039
NS
9624 * tree.c (pod_type_p): Use strip_array_types.
9625 (cp_valid_lang_attribute): Likewise.
9626 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
9627 multiple evaluations.
d363e7bf 9628 (cp_has_mutable_p): Use strip_array_types.
38da6039 9629
a11d04b5
NS
96302000-12-07 Nathan Sidwell <nathan@codesourcery.com>
9631
9632 * cp-tree.h (sufficient_parms_p): Declare new function.
9633 * call.c (sufficient_parms_p): New function, broken out of ...
9634 (add_function_candidate): ... here. Use it.
9635 (add_conv_candidate): Use it.
9636 * decl.c (grok_ctor_properties): Use it.
9637
5eec2847
JJ
96382000-12-07 Jakub Jelinek <jakub@redhat.com>
9639
9640 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
9641
c907e684
JM
96422000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
9643
9644 * decl2.c (lang_decode_option): Handle -Wformat-security.
9645
74601d7c
KL
96462000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9647
9648 * pt.c (verify_class_unification): New function.
9649 (get_class_bindings): Use it.
9650 (try_class_unification): Tidy.
9651 (unify): Handle when argument of a template-id is not
9652 template parameter dependent.
9653 (template_args_equal): Handle when TREE_CODE's do not match.
9654
8954e858
AO
96552000-12-06 Alexandre Oliva <aoliva@redhat.com>
9656
9657 * lang-specs.h (c++): When invoking the stand-alone preprocessor
9658 for -save-temps, pass all relevant -Defines to it, and then don't
9659 pass them to cc1plus.
9660
3dc9aec6
WC
96612000-12-05 Will Cohen <wcohen@redhat.com>
9662
9663 * decl.c (finish_case_label): Cleared
9664 more_cleanups_ok in surrounding function scopes.
9665 (define_label): Likewise.
9666
cbb40945
NS
96672000-12-05 Nathan Sidwell <nathan@codesourcery.com>
9668
9669 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
9670 (get_matching_virtual): Remove.
9671 (look_for_overrides): Declare new function.
9672 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
9673 DECL_VINDEX here.
9674 * class.c (check_for_override): Move base class iteration code
9675 to look_for_overrides.
9676 * search.c (next_baselink): Remove.
9677 (get_virtuals_named_this): Remove.
9678 (get_virtual_destructor): Remove.
9679 (tree_has_any_destructors_p): Remove.
9680 (struct gvnt_info): Remove.
9681 (check_final_overrider): Remove `virtual' from error messages.
9682 (get_matching_virtuals): Remove. Move functionality to ...
9683 (look_for_overrides): ... here, and ...
9684 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
9685 to be overriding.
9686
61402b80
NS
96872000-12-05 Nathan Sidwell <nathan@codesourcery.com>
9688
9689 * typeck.c (get_delta_difference): If via a virtual base,
9690 return zero.
9691 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
9692 adjustment.
9693
39abc9a6
RH
96942000-12-04 Richard Henderson <rth@redhat.com>
9695
9696 * error.c (dump_tree): Use output_add_string not OB_PUTS.
9697
c00996a3
JM
96982000-12-04 Jason Merrill <jason@redhat.com>
9699
9700 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
d363e7bf 9701 (write_builtin_type): Pass intSI_type_node and the like through
c00996a3
JM
9702 type_for_mode.
9703 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
9704 Pass intSI_type_node and the like through type_for_mode.
9705 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
9706 * pt.c (tsubst, unify): Likewise.
9707 * tree.c (walk_tree): Likewise.
9708 * error.c (dump_type): Likewise.
9709 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
d363e7bf 9710
c00996a3
JM
9711 * Make-lang.in: Tweak top comment for emacs.
9712 (cp/TAGS): Restore.
9713
9714 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
9715
c00996a3
JM
9716 * class.c (clone_function_decl): Robustify.
9717
97182000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
9719
9720 * decl.c (store_bindings): Only search in the non modified
9721 old_bindings for duplicates.
9722
00bb3dad
NS
97232000-12-04 Nathan Sidwell <nathan@codesourcery.com>
9724
9725 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
9726 TYPE_POLYMORPHIC_P.
d363e7bf 9727
00bb3dad
NS
9728 * typeck.c (build_static_cast): Remove unused variable.
9729
dc957d14
KL
97302000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9731
9732 * pt.c: Fix typo in comment.
9733
4d808927
JM
97342000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
9735
9736 * decl2.c (warn_format): Remove definition.
9737 (lang_decode_option): Handle -Wformat-nonliteral,
9738 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
9739
5fd8e536
JM
97402000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
9741
9742 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
9743 (init_decl_processing): Don't create string_type_node,
9744 const_string_type_node, wint_type_node, intmax_type_node,
9745 uintmax_type_node, default_function_type, ptrdiff_type_node and
9746 unsigned_ptrdiff_type_node. Adjust position of call to
9747 c_common_nodes_and_builtins.
9748 (identifier_global_value): New function.
9749
13f9714b
NS
97502000-12-01 Nathan Sidwell <nathan@codesourcery.com>
9751
9752 * call.c (standard_conversion): Reject pointer to member
9753 conversions from ambiguous, inaccessible or virtual bases.
9754 * typeck.c (build_static_cast): Don't check pointers to members
9755 specially.
9756
31b1b957
NS
97572000-11-30 Nathan Sidwell <nathan@codesourcery.com>
9758
9759 * method.c (do_build_copy_constructor): Preserve cv
9760 qualifications when accessing source object members.
9761 (do_build_assign_ref): Likewise. Remove separate diagnostics for
9762 unnamed fields.
9763
717e3f73
NS
97642000-11-30 Nathan Sidwell <nathan@codesourcery.com>
9765
9766 * method.c (do_build_assign_ref): Construct appropriately
9767 CV-qualified base reference. Don't allow const casts in base
9768 conversion.
9769
2c92b94d
NS
97702000-11-30 Nathan Sidwell <nathan@codesourcery.com>
9771
9772 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
9773 incomplete return type.
9774
bb92901d
NS
97752000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9776
9777 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
9778 * semantics.c (finish_base_specifier): Accept a _TYPE not a
9779 _DECL.
9780
2f3608c3
NS
97812000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9782
9783 * spew.c (yyerror): Cope if yylval.ttype is NULL.
9784
eeb75383
NS
97852000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9786
9787 * decl.c (grokdeclarator): Diagnose undefined template contexts.
9788
5ee4cc26
NS
97892000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9790
9791 * decl.c (grokdeclarator): Do type access control on friend
9792 class.
9793
76e57b45
NS
97942000-11-27 Nathan Sidwell <nathan@codesourcery.com>
9795
9796 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
9797 bison parser ickiness.
9798 * pt.c (tsubst_friend_function): Enter namespace scope when
9799 tsubsting the function name.
9800 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
9801
f9825168
NS
98022000-11-27 Nathan Sidwell <nathan@codesourcery.com>
9803
9804 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
9805 * cvt.c (cp_convert_to_pointer): Add force parameter.
9806 Allow conversions via virtual base if forced.
9807 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
9808 (ocp_convert): Likewise.
9809 * search.c (binfo_from_vbase): Return the virtual base's binfo.
9810 * typeck.c (get_delta_difference): Adjust handling of virtual
9811 bases.
9812
9ccb25d5
MM
98132000-11-26 Mark Mitchell <mark@codesourcery.com>
9814
9815 * tree.c (struct list_hash): Remove.
9816 (list_hash_table): Make it be an htab.
9817 (struct list_proxy): New type.
9818 (list_hash_eq): New function.
9819 (list_hash_pieces): Renamed from ...
9820 (list_hash): ... this.
9821 (list_hash_lookup): Remove.
9822 (list_hash_add): Remove.
9823 (hash_tree_cons): Use the generic hashtable.
9824 (mark_list_hash): Remove.
9825 (init_tree): Create the hashtable.
9826
9399bad3
JM
98272000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
9828
9829 * method.c (build_mangled_C9x_name): Rename to
9830 build_mangled_C99_name. Change C9X references in comments to
9831 refer to C99.
9832
2f401cc8
NS
98332000-11-24 Nathan Sidwell <nathan@codesourcery.com>
9834
9835 * parse.y (unary_expr): Move VA_ARG from here ...
9836 (primary): ... to here.
9837
3d7e9ba4
NS
98382000-11-24 Nathan Sidwell <nathan@codesourcery.com>
9839
9840 * semantics.c (finish_id_expr): If type is error_mark, return
9841 error_mark.
9842
ab097535
NS
98432000-11-23 Nathan Sidwell <nathan@codesourcery.com>
9844
9845 * pt.c (lookup_template_class): Simplify loop exit constructs.
9846 Cope when there is no partial instantiation of a template
9847 template member.
9848
9196ece5
R
9849Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
9850
9851 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
9852
cac78ea2
MM
98532000-11-22 Mark Mitchell <mark@codesourcery.com>
9854
6e1b44bc
MM
9855 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
9856 prefix.
9857
cac78ea2
MM
9858 * pt.c (do_decl_instantiate): Explicitly clone constructors and
9859 destructors that haven't already been cloned.
9860
3aac38d7
RH
98612000-11-20 Richard Henderson <rth@redhat.com>
9862
9863 * parse.y (yyparse_1): Rename the parser entry point.
9864
98652000-11-20 Alex Samuel <samuel@codesourcery.com>
beac9b93
AS
9866
9867 * mangle.c (write_name): Use <unscoped-name> for names directly in
9868 function scope.
9869 (write_unscoped_name): Accept names directly in function scope.
d363e7bf 9870
447306fa
NS
98712000-11-20 Nathan Sidwell <nathan@codesourcery.com>
9872
9873 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
9874 * parse.y (extdef): Add EXPORT reduction.
9875 * spew.c (yylex): Don't skip export here.
9876
2650255a
MM
98772000-11-19 Mark Mitchell <mark@codesourcery.com>
9878
9879 * decl.c (init_decl_processing): Correct name of pure virtual
9880 function under the new ABI.
9881 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
9882 (throw_bad_typeid): Likewise for bad typeid function.
9883
0657c69c
MM
98842000-11-18 Mark Mitchell <mark@codesourcery.com>
9885
04f3dc2b
MM
9886 * decl.c (grokparms): Don't even function types of `void' type,
9887 either.
9888 * mangle.c (write_type): Don't crash when confronted with the
9889 error_mark_node.
9890
0657c69c
MM
9891 * decl.c (grokparms): Don't create parameters of `void' type.
9892
a8a05998
ZW
98932000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
9894
9895 * lex.c (mark_impl_file_chain): Delete.
9896 (init_parse): Remove call to ggc_add_string_root. No need to
9897 ggc_strdup a string constant. Do not add impl_file_chain to GC
9898 roots.
9899 (handle_pragma_implementation): No need to ggc_strdup main_filename.
9900
35728a80
NS
99012000-11-17 Nathan Sidwell <nathan@codesourcery.com>
9902
9903 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
9904
5cce22b6
NS
99052000-11-17 Nathan Sidwell <nathan@codesourcery.com>
9906
9907 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
9908 * decl.c (grokdeclarator): Don't reject void parms here.
9909 (require_complete_types_for_parms): Simplify, use
9910 complete_type_or_else.
9911 (grokparms): Remove bitrot. Remove funcdef parm.
9912 Deal with ellipsis parm lists here.
9913 * semantics.c (finish_parmlist): Don't append void_list_node
9914 here. Set PARMLIST_ELLIPSIS_P.
9915
146c8d60
NS
99162000-11-17 Nathan Sidwell <nathan@codesourcery.com>
9917
d30d6e7a 9918 * typeck2.c (incomplete_type_error): Reorganize to avoid
146c8d60
NS
9919 excessive diagnostics.
9920
520a57c8
ZW
99212000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
9922
9923 * lex.c (struct impl_files, internal_filename): Constify a char *.
9924
43048a06
MM
99252000-11-16 Mark Mitchell <mark@codesourcery.com>
9926
9927 * mangle.c (write_special_name_constructor): Don't generate
9928 assembler junk when confronted with an old-style constructor.
9929 (write_special_name_destructor): Likewise.
9930 (mangle_decl_string): Do it here instead.
9931
cdb71673
NS
99322000-11-16 Nathan Sidwell <nathan@codesourcery.com>
9933
9934 * call.c (op_error): Make error messages clearer.
9935
62136084
MM
99362000-11-15 Mark Mitchell <mark@codesourcery.com>
9937
9938 * decl.c (wrapup_globals_for_namespace): Don't mark things
9939 TREE_ASM_WRITTEN when they're not.
9940
ee3400e8
JM
99412000-11-15 Jason Merrill <jason@redhat.com>
9942
9943 * typeck2.c (friendly_abort): Uncount the error before handing
9944 off to fancy_abort.
9945
71631a1f
NS
99462000-11-15 Nathan Sidwell <nathan@codesourcery.com>
9947
9948 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
9949
79cda2d1
MM
99502000-11-14 Mark Mitchell <mark@codesourcery.com>
9951
9952 * class.c (build_vtbl_initializer): Fix typo in comment.
9953 * typeck.c (expr_sizeof): Don't crash on errors.
9954
2567bc56
JW
99552000-11-14 Jim Wilson <wilson@redhat.com>
9956
9957 * lang-specs.h: Add %2 after %(cc1_options).
9958
8422942c
RH
99592000-11-14 Richard Henderson <rth@redhat.com>
9960
9961 * typeck.c (c_sizeof): Be strict about casting result value
9962 back to c_size_type_node.
9963 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
9964
19552aa5
JM
99652000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
9966
9967 * typeck.c (build_unary_op): Use boolean_increment from
9968 c-common.c, moving the relevant code there.
9969
d96a6d1a
JM
99702000-11-11 Jason Merrill <jason@redhat.com>
9971
9972 * typeck.c (mark_addressable): Don't call put_var_into_stack.
492cca24
JM
9973
9974 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
9975 in inlines.
9976
4e135bdd
KG
99772000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9978
9979 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
9980 * lex.c (copy_lang_decl): Likewise.
9981
0a7394bc
MM
99822000-11-09 Mark Mitchell <mark@codesourcery.com>
9983
13507bd8
MM
9984 * dump.c (cp_dump_tree): Don't dump function bodies here.
9985
0a7394bc
MM
9986 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
9987 (dump.o): Update dependency list.
9988 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
9989 (flag_dump_translation_unit): Likewise.
9990 (CP_TYPE_QUALS): Adjust definition.
9991 (DECL_C_BIT_FIELD): Remove.
9992 (SET_DECL_C_BIT_FIELD): Likewise.
9993 (CLEAR_DECL_C_BIT_FIELD): Likewise.
9994 (add_maybe_template): Likewise.
9995 (strip_array_types): Likewise.
9996 (dump_node_to_file): Likewise.
9997 (cp_dump_tree): New function.
9998 * decl.c (init_decl_processing): Set lang_dump_tree.
9999 * decl2.c (flag_dump_translation_unit): Remove.
10000 * dump.c: Move most of it to ../c-dump.c.
10001 (cp_dump_tree): New function.
10002 * pt.c (add_maybe_template): Remove.
10003 * typeck.c (strip_array_types): Likewise.
a8a05998 10004
5362b086
EC
100052000-11-07 Eric Christopher <echristo@redhat.com>
10006
492cca24
JM
10007 * decl.c (init_decl_processing): Change definition of
10008 __wchar_t to wchar_t. Remove artificial declaration of
10009 wchar_t.
10010 * lex.c: Change instances of __wchar_t to wchar_t.
5362b086 10011
5361cbb7
NS
100122000-11-09 Nathan Sidwell <nathan@codesourcery.com>
10013
10014 * lex.c (do_identifier): Don't lookup_name for operators.
10015 * parse.y (operator): Save looking_for_typename.
10016 (unoperator): Restore it.
10017 * spew.c (frob_opname): Use nth_token for lookahead.
10018
36791f1e
NS
100192000-11-08 Nathan Sidwell <nathan@codesourcery.com>
10020
10021 * decl.c (grok_op_properties): Always use coerce_new_type and
10022 coerce_delete_type.
10023 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
10024 exception specification. Tidy up.
10025 (coerce_delete_type): Preserve exception specification. Tidy up.
10026
961192e1
JM
100272000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
10028
10029 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
10030 (push_binding_level), error.c (cp_tree_printer), pt.c
10031 (process_partial_specialization, tsubst_template_arg_vector),
10032 search.c (lookup_member): Use memset () instead of bzero ().
10033
d48ebde1
NS
100342000-11-07 Nathan Sidwell <nathan@codesourcery.com>
10035
10036 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
10037
436a88a6
JM
100382000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
10039
10040 * Make-lang.in (c++.distdir): Remove.
10041
7a4e5091
MM
100422000-11-04 Mark Mitchell <mark@codesourcery.com>
10043
10044 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
10045 declarations from different namespaces to be combined.
10046
0e9295cf
ZW
100472000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
10048
10049 * decl.c: Include tm_p.h.
10050
da61dec9
JM
100512000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
10052
10053 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
10054
9473c522
JM
100552000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
10056
10057 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
10058 (build_overload_value), repo.c (open_repo_file), xref.c
10059 (open_xref_file): Use strchr () and strrchr () instead of index ()
10060 and rindex ().
10061
b0b3afb2
BS
100622000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
10063
10064 * call.c (build_over_call): Call fold on the CALL_EXPR.
10065
faafaee6
GDR
100662000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
10067
10068 * error.c (dump_template_decl): Separate template hearders with
10069 space not comma.
10070
761f0855
GDR
100712000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
10072
10073 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
10074 TS_* flags with corresponding TFF_*. Adjust prototypes of
10075 functions (which used to take a tree_string_flags) to take an int.
10076
10077 * cp-tree.h (enum tree_string_flags): Remove
10078 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
10079 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
10080 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
10081 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
10082 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
10083 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
10084 (type_as_string, decl_as_string, expr_as_string,
10085 context_as_string): Adjust prototype.
10086
10087 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
10088 instead of TS_PLAIN.
10089
10090 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
10091 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
10092 plain `0'.
10093
ad50e811
MM
100942000-10-30 Mark Mitchell <mark@codesourcery.com>
10095
10096 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
10097 (linkage_kind): New enumeration.
10098 (decl_linkage): New function.
10099 * decl2.c (comdat_linkage): Extend comment.
10100 * error.c (dump_function_decl): Print the arguments used to
10101 instantiate a template, even when not printing the type of the
10102 function.
10103 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
10104 not TREE_PUBLIC, to test for external linkage.
10105 * tree.c (decl_linkage): New function.
10106
930cd796
MM
101072000-10-28 Mark Mitchell <mark@codesourcery.com>
10108
10109 * pt.c (instantiate_decl): Always instantiate static data members
10110 initialized in-class.
10111
b8dad04b
ZW
101122000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
10113
10114 * Make-lang.in: Move all build rules here from Makefile.in,
10115 adapt to new context. Wrap all rules that change the current
10116 directory in parentheses. Expunge all references to $(P).
10117 When one command depends on another and they're run all at
10118 once, use && to separate them, not ;. Add OUTPUT_OPTION to
10119 all object-file generation rules. Delete obsolete variables.
10120
10121 * Makefile.in: Delete.
10122 * config-lang.in: Delete outputs= line.
10123
5f9cd837
GDR
101242000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
10125
10126 * error.c (dump_function_decl): Print no space between
10127 `ptr-operator' the `type-specifier' of the return type.
10128 (dump_type_prefix): Make sure we put space at the appropriate
5362b086 10129 place.
5f9cd837 10130
6c6ed0ef
JM
101312000-10-23 Jason Merrill <jason@redhat.com>
10132
10133 * call.c (equal_functions): Also call decls_match for extern "C" fns.
10134
101352000-10-22 Jason Merrill <jason@redhat.com>
10136
10137 * call.c (build_conditional_expr): Use ocp_convert to force
10138 rvalue conversion.
10139
e36308b0
MM
101402000-10-22 Mark Mitchell <mark@codesourcery.com>
10141
583ca5a0
MM
10142 * call.c (standard_conversion): Use RVALUE_CONVs for all
10143 expressions that satisfy lvalue_p, not just those that satisfy
10144 real_lvalue_p.
10145
f9808f81
MM
10146 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
10147
5362b086 10148 * typeck.c (c_sizeof): Return an expression of `size_t' type,
e36308b0
MM
10149 not one with TYPE_IS_SIZETYPE set.
10150 (dubious_conversion_warnings): Remove special-case code.
10151
3b9ae6f0
GK
101522000-10-21 Geoffrey Keating <geoffk@cygnus.com>
10153
7a0f14e5
GK
10154 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
10155 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
10156 (dump_type_prefix): Print vector-of-int as 'int vector'.
10157 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
10158 * tree.c (walk_tree): Handle VECTOR_TYPE.
10159
3b9ae6f0 10160 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
5362b086 10161
aca77bd1
JM
101622000-10-21 Jason Merrill <jason@redhat.com>
10163
10164 * parse.y (operator): Set got_object from got_scope.
10165 Set looking_for_typename.
10166 * decl.c (lookup_name_real): Clear val after setting from_obj.
10167 Reorganize diagnostic.
10168
ba523395
JM
101692000-10-20 Jason Merrill <jason@redhat.com>
10170
10171 * tree.c (walk_tree): Don't walk into default args.
10172
10173 * error.c (dump_expr): Use host_integerp.
10174
2e44948d
DE
101752000-10-20 David Edelsohn <edelsohn@gnu.org>
10176
10177 * typeck2.c (abstract_virtuals_error): Use "because" instead of
10178 "since" in error message.
10179
44475138
RK
10180Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10181
10182 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
10183
11306230
JO
101842000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
10185
10186 * decl.c (revert_static_member_fn): Fixed typo.
10187
97ba1e3c
MM
101882000-10-19 Mark Mitchell <mark@codesourcery.com>
10189
c20118a8
MM
10190 * class.c (subobject_offset_fn): New type.
10191 (dfs_record_base_offsets): Remove.
10192 (record_base_offsets): Likewise.
10193 (dfs_search_base_offsets): Likewise.
10194 (record_subobject_offset): New function.
10195 (check_subobject_offset): Likewise.
10196 (walk_subobject_offsets): Likewise.
10197 (record_subobject_offsets): Likewise.
10198 (layout_conflict_p): Reimplement.
10199 (layout_nonempty_base_or_field): Correct handling of type
10200 conflicts during layout.
10201 (layout_empty_base): Likewise.
10202 (build_base_field): Adjust to handle new representation of empty
10203 base offset table.
10204 (build_base_fields): Likewise.
10205 (layout_virtual_bases): Likewise.
10206 (splay_tree_compare_integer_csts): New function.
10207 (layout_class_type): Use a splay_tree, rather than a varray, to
10208 represent the offsets of empty bases.
5362b086 10209
97ba1e3c
MM
10210 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
10211 * decl.c (select_decl): Don't return declarations that are
10212 DECL_ANTICIPATED.
10213
6bcedb4e
MM
102142000-10-18 Mark Mitchell <mark@codesourcery.com>
10215
10216 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
10217 (fake_std_node): New macro.
10218 * decl.c (in_std): Rename to ...
10219 (in_fake_std): ... this.
10220 (flag_no_builtin): Remove.
10221 (flag_no_nonansi_builtin): Likewise.
10222 (walk_namespaces_r): Use fake_std_node.
10223 (push_namespace): Use std_identifier.
10224 (pop_namespace): Use in_fake_std.
10225 (lookup_name_real): Use fake_std_node.
10226 (init_decl_processing): When -fhonor-std, create the `std'
10227 namespace. Don't create a dummy fake_std_node in that case.
10228 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
10229 (builtin_function): Put builtins whose names don't begin
10230 with `_' in the std namespace.
10231 * decl2.c (flag_no_builtin): Remove.
10232 (flag_no_nonansi_builtin): Likewise.
10233 (set_decl_namespace): Use fake_std_node.
10234 (validate_nonmember_using_decl): Likewise.
10235 (do_using_directive): Likewise.
10236 (handle_class_head): Likewise.
10237 * dump.c (dequeue_and_dump): Likewise.
10238 * except.c (init_exception_processing): Use std_identifier.
10239 * init.c (build_member_call): Use fake_std_node.
10240 * rtti.c (init_rtti_processing): Use std_identifier.
5362b086 10241
67673f5c
MM
102422000-10-17 Mark Mitchell <mark@codesourcery.com>
10243
10244 * cp-tree.h (back_end_hook): Remove declaration.
10245 * decl2.c (back_end_hook): Remove definition.
10246
10247 * dump.c (dequeue_and_dump): Dump TREE_USED.
10248
8fef2e47
BL
10249Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
10250
10251 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
10252
652469d0
JM
102532000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
10254
10255 * decl.c (WINT_TYPE): Define.
10256 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
10257 c_size_type_node, signed_size_type_node and wint_type_node.
10258
74ff4629
JM
102592000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
10260
10261 * decl2.c (warn_missing_format_attribute): New variable.
10262 (lang_decode_option): Decode -Wmissing-format-attribute.
10263
634790f4
MM
102642000-10-16 Mark Mitchell <mark@codesourcery.com>
10265
10266 * typeck.c (qualify_type): Remove.
10267 (composite_pointer_type): Fix handling of conversions to `cv void*'.
10268
bb12da9d
KG
102692000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10270
10271 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
10272
4b945402
KG
102732000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10274
10275 * Makefile.in (parse.c, parse.h): Create atomically.
10276
1f8f4a0b
MM
102772000-10-12 Mark Mitchell <mark@codesourcery.com>
10278
10279 * class.c (current_obstack): Remove.
10280 * decl.c (ggc_p): Remove.
10281 (start_decl): Don't use decl_tree_cons.
10282 (grokdeclarator): Don't use build_decl_list.
10283 (start_function): Don't use decl_tree_cons.
10284 (finish_function): Don't mess with obstacks.
10285 * decl2.c (grok_x_components): Don't use build_decl_list.
10286 * lex.c (make_call_declarator): Don't call decl_tree_cons.
10287 (implicitly_declare_fn): Don't call build_decl_list.
10288 * parse.y (frob_specs): Don't call build_decl_list or
10289 decl_tree_cons.
10290 (expr_or_declarator_intern): Don't call decl_tree_cons.
10291 (primary): Don't call build_decl_list.
10292 (fcast_or_absdcl): Likewise.
10293 (typed_declspecs): Don't call decl_tree_cons.
10294 (reserved_declspecs): Don't call build_decl_list.
10295 (declmods): Likewise.
10296 (reserved_typespecquals): Likewise.
10297 (aggr): Likewise.
10298 (new_type_id): Likewise.
10299 (cv_qualifiers): Likewise.
10300 (after_type_declarator_intern): Likewise.
10301 (notype_declarator_intern): Likewise.
10302 (absdcl_intern): Likewise.
10303 (named_parm): Likewise.
10304 * pt.c (most_specialized_class): Likewise.
10305 * repo.c (temporary_obstack): Make it a structure, not a pointer.
10306 (init_repo): Initialize it.
10307 * search.c (current_obstack): Remove.
10308 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
5362b086 10309
8dc54971
RH
103102000-10-09 Richard Henderson <rth@cygnus.com>
10311
10312 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
10313 (c++ language support bits for libgcc): Remove.
10314 (c++.clean): Remove cplib2.txt cleanup.
10315 * config-lang.in (headers, lib2funcs): Remove.
10316
10317 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
10318 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
10319 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
10320 * inc/new.h, inc/typeinfo: Remove files.
10321
b15ad712
JM
103222000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
10323
10324 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
10325 defined.
10326 (init_decl_processing): Initialize intmax_type_node and
10327 uintmax_type_node.
10328
156ce211
RH
103292000-10-06 Richard Henderson <rth@cygnus.com>
10330
10331 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
10332 (original_result_rtx): Remove.
10333 * decl.c (save_function_data): Don't clear x_result_rtx.
10334 (mark_lang_function): Don't mark it either.
10335 * expr.c (fixup_result_decl): Remove.
10336 * semantics.c (genrtl_named_return_value): Frob the return decl
10337 before calling emit_local_var.
10338 (genrtl_finish_function): Don't call fixup_result_decl.
10339 Always emit the jump to return_label.
10340
92777ce4
NS
103412000-10-06 Nathan Sidwell <nathan@codesourcery.com>
10342
10343 * pt.c (lookup_template_class): Set current access for enum.
10344 (tsubst_enum): Set file & line for enum decl.
5362b086 10345
92777ce4
NS
10346 * spew.c (yylex): Remove unused variable.
10347
63c16fc5
RH
103482000-10-05 Richard Henderson <rth@cygnus.com>
10349
10350 * semantics.c (genrtl_finish_function): Don't init or check
10351 can_reach_end; remove noreturn and return value checks.
10352
d1a458c4
TT
103532000-10-05 Tom Tromey <tromey@cygnus.com>
10354
10355 * init.c (build_java_class_ref): Use `build_static_name' with a
10356 suffix, not a prefix, to build the class object's name.
10357
509fc277
NS
103582000-10-05 Nathan Sidwell <nathan@codesourcery.com>
10359
10360 * cp-tree.h (access_kind): Fix comment typo.
10361 * decl2.c (grokfield): Fix diagnostic typo.
10362 * semantics.c (finish_template_type): Fix comment typo.
10363 (finish_qualified_object_call_expr): Likewise.
10364
ce2e5191
NS
103652000-10-05 Nathan Sidwell <nathan@codesourcery.com>
10366
10367 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
5362b086 10368 tsubsting fails.
ce2e5191 10369
79cc5312
NS
103702000-10-05 Nathan Sidwell <nathan@codesourcery.com>
10371
10372 * spew.c (frob_id): New static function.
10373 (frob_opname): Use it.
10374 (yylex): Use it.
10375
f15b9af9
MM
103762000-10-01 Mark Mitchell <mark@codesourcery.com>
10377
10378 * decl.c (lang_mark_false_label_stack): Remove.
10379 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
5362b086 10380
28e6b1c2
JM
103812000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
10382
10383 * gxxint.texi: Use @email for formatting email addresses.
10384
99885b3f
GDR
103852000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
10386
10387 * error.c: Remove direct obstack manipulation. Replace with
10388 output_buffer-based formatting. Adjust calls to removed macros.
10389 (obstack_chunk_alloc, obstack_chunk_free): Remove.
10390 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
10391 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
10392
c06aa51e
MM
103932000-09-24 Mark Mitchell <mark@codesourcery.com>
10394
10395 * ir.texi: Move to ../c-tree.texi.
10396
99fada40
JM
103972000-09-20 Jason Merrill <jason@redhat.com>
10398
10399 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
10400
bb20cc46
AJ
104012000-09-21 Andreas Jaeger <aj@suse.de>
10402
10403 * errfn.c: Move declaration of cp_printer and cp_printers to ...
10404 * cp-tree.h: ... here.
10405
10406 * error.c: Remove declaration of cp_printer.
10407
fab701da
MM
104082000-09-20 Mark Mitchell <mark@codesourcery.com>
10409
10410 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
10411
0370fea1
HPN
104122000-09-20 Hans-Peter Nilsson <hp@axis.com>
10413
10414 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
10415 users.
10416
78c120b5
MM
104172000-09-18 Mark Mitchell <mark@codesourcery.com>
10418
10419 * decl.c (start_function): Robustify.
10420
3f80e6ac
KG
104212000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10422
10423 * cp-tree.h (check_function_format): Accept a `status' parameter.
bb20cc46 10424
3f80e6ac
KG
10425 * call.c, typeck.c: Updates calls to `check_function_format'.
10426
fc928afe
GK
104272000-09-17 Geoffrey Keating <geoffk@cygnus.com>
10428
10429 * decl2.c (handle_class_head): Always push some scope even
10430 in the error case.
10431
8f17b5c5
MM
104322000-09-16 Mark Mitchell <mark@codesourcery.com>
10433
10434 * cp-tree.h (struct cp_language_function): Remove
10435 x_scope_stmt_stack and name_declared.
10436 (current_scope_stmt_stack): Remove.
10437 (function_name_declared_p): New macro.
10438 (struct lang_decl_flags): Use c_lang_decl as a base class.
10439 (context): Remove.
10440 (struct lang_decl): Replace saved_tree with context.
10441 (DECL_FRIEND_CONTEXT): Adjust accordingly.
10442 (SET_DECL_FRIEND_CONTEXT): Likewise.
10443 (DECL_VIRTUAL_CONTEXT): Likewise.
10444 (DECL_SAVED_TREE): Remove.
10445 (C_DECLARED_LABEL_FLAG): Likewise.
10446 (cplus_expand_expr_stmt): Don't declare.
10447 (add_decl_stmt): Likewise.
10448 (add_scope_stmt): Likewise.
10449 * decl.c (mark_stmt_tree): Remove.
10450 (case_compare): Likewise.
10451 (finish_case_label): Use c_add_case_label.
10452 (init_decl_processing): Set more language-specific hooks.
10453 (build_enumerator): Fix typo in comment.
10454 (cplus_expand_expr_stmt): Remove.
10455 (mark_lang_function): Use mark_c_language_function.
10456 (lang_mark_tree): Use c_mark_lang_decl.
10457 * decl2.c: Change order of inclusion.
10458 * except.c: Likewise.
10459 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
10460 back on c_expand_expr.
10461 * friend.c: Include expr.h.
10462 * init.c: Change order of inclusion.
10463 * Makefile.in: Update dependencies.
10464 * lex.h (free_lang_decl_chain): Remove.
10465 * optimize.c (maybe_clone_body): Use function_name_declared_p.
10466 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
10467 it doesn't exist.
10468 (instantiate_decl): Use function_name_declared_p.
10469 * semantics.c (lang_expand_expr_stmt): Remove.
10470 (set_current_function_name_declared): Likewise.
10471 (current_function_name_declared): Likewise.
10472 (begin_compound_stmt): Use function_name_declared_p.
10473 (add_decl_stmt): Remove.
10474 (setup_vtbl_ptr): Use function_name_declared_p.
10475 (add_scope_stmt): Remove.
10476 (current_scope_stmt_stack): New function.
10477 (cp_expand_stmt): Don't handle SCOPE_STMTs.
10478 (expand_body): Use function_name_declared_p.
10479 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
10480 * typeck.c: Change order of includes.
10481 (convert_sequence): Remove.
bb20cc46 10482
d9dbd9b1
JM
104832000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
10484
10485 * lex.c (reswords): Add _Complex.
10486
9985f210
RK
10487Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10488
10489 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
10490
f903ebb1
DA
104912000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10492
10493 * init.c (begin_init_stmts): Don't use // comments.
10494
f2ae0c45
JM
104952000-09-12 Jason Merrill <jason@redhat.com>
10496
10497 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
10498 all non-extern arrays.
10499
10500 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
10501 typenames, too. Downgrade complaint to pedwarn.
10502 (xref_tag): Warn about surprising behavior of 'friend struct T'.
10503 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
10504 'class This::Inherited'.
10505
71ad4a16
MM
105062000-09-12 Mark Mitchell <mark@codesourcery.com>
10507
10508 * decl.c (finish_case_label): Given the LABEL_DECL a
10509 DECL_CONTEXT.
10510
c3e76028
GDR
105112000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
10512
10513 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
10514 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
10515 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
10516 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
10517 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
10518 New macros.
10519 (sorry_for_unsupported_tree, print_scope_operator,
10520 print_left_paren, print_right_paren, print_left_bracket,
10521 print_right_bracket, print_whitespace): Likewise.
10522 (aggr_variety): Rename to class_key_or_enum.
10523 (print_type): Rename to print_type_id.
10524 (print_type_specifier_seq, print_simple_type_specifier,
10525 print_elaborated_type_specifier,
10526 print_rest_of_abstract_declarator,
10527 print_parameter_declaration_clause, print_exception_specification,
10528 print_nested_name_specifier, print_template_id,
10529 typedef_original_name, print_template_argument_list_start,
10530 print_template_argument_list_end): New functions.
10531
eb50138b
GDR
105322000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
10533
a8a05998 10534 * ir.texi: Add more documentation.
eb50138b 10535
f444e36b
MM
105362000-09-11 Mark Mitchell <mark@codesourcery.com>
10537
10538 * cp-tree.h (struct saved_scope): Remove x_function_parms.
10539 (current_function_parms): Don't define.
10540 (struct cp_language_function): Remove parms_stored.
10541 (current_function_just_assigned_this): Don't define.
10542 (current_function_parms_stored): Likewise.
10543 (static_ctors): Declare.
10544 (static_dtors): Likewise.
10545 (SF_EXPAND): Don't define.
10546 (expand_start_early_try_stmts): Remove declaration.
10547 (store_parm_decls): Likewise.
10548 * decl.c (static_ctors): Don't declare.
10549 (static_dtors): Likewise.
10550 (struct binding_level): Remove this_block.
10551 (poplevel): Remove dead code.
10552 (set_block): Likewise.
10553 (mark_binding_level): Don't mark this_block.
10554 (mark_saved_scope): Don't mark x_function_parms.
10555 (init_decl_processing): Don't add current_function_parms as a GC
10556 root.
10557 (check_function_type): Change prototype.
10558 (start_function): Remove RTL-generation code.
10559 (expand_start_early_try_stmts): Remove.
10560 (store_parm_decls): Give it internal linkage. Remove
10561 RTL-generation code.
10562 (finish_function): Remove RTL-generation code.
10563 * decl2.c (static_ctors): Fix formatting.
10564 (static_dtors): Likewise.
10565 * method.c (use_thunk): Don't call store_parm_decls.
10566 (synthesize_method): Likewise.
10567 * optimize.c (maybe_clone_body): Likewise.
10568 * parse.y (fn.def2): Likewise.
10569 (.set_base_init): Likewise.
10570 (nodecls): Likewise.
10571 * pt.c (instantiate_decl): Likewise.
10572 * rtti.c (synthesize_tinfo_fn): Likewise.
10573 * semantics.c (genrtl_try_block): Simplify.
10574 (expand_body): Use genrtl_start_function and
10575 genrtl_finish_function.
10576 (genrtl_start_function): New function.
10577 (genrtl_finish_function): Likewise.
10578
181d2ba0
NS
105792000-09-11 Nathan Sidwell <nathan@codesourcery.com>
10580
10581 * error.c (cp_tree_printer, case 'P'): Append break.
10582
f2d71db6
NS
105832000-09-11 Nathan Sidwell <nathan@codesourcery.com>
10584
10585 * cp-tree.h (frob_opname): Declare.
10586 * parse.y (saved_scopes): New static variable.
10587 (cp_parse_init): Adjust.
10588 (do_id): If lastiddecl is NULL, do do_identifier.
10589 (operator): Save scope information.
aca77bd1 10590 (unoperator): New reduction. Restore scope information.
f2d71db6
NS
10591 (operator_name): Append unoperator. Call frob_opname.
10592 * spew.c (frob_opname): Define.
10593
d8ea8f28
ZW
105942000-09-10 Zack Weinberg <zack@wolery.cumb.org>
10595
10596 * decl.c, rtti.c: Include defaults.h if not already included.
10597 Don't define the *_TYPE_SIZE macros.
10598
56cb9733
MM
105992000-09-09 Mark Mitchell <mark@codesourcery.com>
10600
10601 * cp-tree.h (push_switch): Change prototype.
10602 (check_cp_case_value): Remove declaration.
10603 (decl_constant_value): Likewise.
10604 * decl.c (struct cp_switch): Add switch_stmt and cases.
10605 (case_compare): New function.
10606 (push_switch): Set switch_stmt. Initialize cases.
10607 (pop_switch): Clean up cases.
10608 (define_case_label): Rename to ...
10609 (finish_case_label): ... this. Do semantic analysis for case
10610 labels here.
10611 (start_function): Correct comment.
10612 * decl2.c (check_cp_case_value): Remove.
10613 * expr.c (do_case): Remove.
10614 * pt.c (tsubst_expr): Adjust call to finish_case_label.
10615 * semantics.c (genrtl_do_poplevel): Remove declaration.
10616 (RECHAIN_STMTS): Remove.
10617 (finish_break_stmt): Use build_break_stmt.
10618 (finish_continue_stmt): Use build_continue_stmt.
10619 (finish_switch_cond): Adjust condition here, rater than in
10620 c_expand_start_case.
10621 (finish_case_label): Remove.
10622 * typeck.c (c_expand_return): Remove.
10623 (c_expand_start_case): Likewise.
bb20cc46 10624
990a9693
GDR
106252000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
10626
10627 * ir.texi: Document type nodes.
10628
ae499cce
MM
106292000-09-06 Mark Mitchell <mark@codesourcery.com>
10630
54f7877c
MM
10631 * cp-tree.h (init_cp_semantics): Declare.
10632 (genrtl_try_block): Don't declare.
10633 (genrtl_handler): Likewise.
10634 (genrtl_catch_block): Likewise.
10635 (genrtl_ctor_stmt): Likewise.
10636 (genrtl_subobject): Likewise.
10637 (genrtl_do_poplevel): Likewise.
10638 (genrtl_named_return_value): Likewise.
10639 * lex.c (init_parse): Call init_cp_semantics.
10640 * semantics.c (genrtl_try_block): Give it internal linkage.
10641 (genrtl_handler): Likewise.
10642 (genrtl_catch_block): Likewise.
10643 (genrtl_ctor_stmt): Likewise.
10644 (genrtl_subobject): Likewise.
10645 (genrtl_do_poplevel): Likewise.
10646 (genrtl_named_return_value): Likewise.
10647 (lang_expand_stmt): Rename to ...
10648 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
10649 (init_cp_semantics): Define.
10650
3a0d3e1e
MM
10651 * decl.c (initialize_local_var): Remove RTL-generating code.
10652 * semantics.c (genrtl_try_block): Fix formatting.
10653
ae499cce
MM
10654 Move statement-tree facilities from C++ to C front-end.
10655 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
10656 (void_zero_node): Remove.
10657 (stmt_tree): Likewise.
10658 (scope_chain): Adjust.
10659 (language_function): Rename to cp_language_function.
10660 (cp_function_chain): Adjust.
10661 (current_stmt_tree): Remove.
10662 (last_tree): Likewise.
10663 (last_expr_type): Likewise.
10664 (struct lang_decl): Adjust.
10665 (STMT_IS_FULL_EXPR_P): Remove.
10666 (add_tree): Remove.
10667 (begin_stmt_tree): Likewise.
10668 (finish_stmt_tree): Likewise.
10669 (walk_tree_fn): Likewise.
10670 (walk_stmt_tree): Likewise.
10671 * class.c (finish_struct): Replace use of add_tree with add_stmt.
10672 * decl.c (mark_stmt_tree): Adjust type.
10673 (init_decl_processing): Don't build void_zero_node.
10674 (initialize_local_var): Adjust usage of current_stmt_tree.
10675 (finish_enum): Use add_stmt, not add_tree.
10676 (save_function_data): Adjust use of language_function.
10677 (finish_constructor_body): Use add_stmt, not add_tree.
10678 (finish_destructor_body): Likewise.
10679 (push_cp_function_context): Adjust use of language_function.
10680 (pop_cp_function_context): Likewise.
10681 (mark_lang_function): Likewise.
10682 (mark_cp_function_context): Likewise.
10683 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
10684 (build_vec_init): Likewise.
10685 * semantics.c (SET_LAST_STMT): Remove.
10686 (RECHAIN_STMTS): Don't use it.
10687 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
10688 (current_stmt_tree): Define.
10689 (add_tree): Remove.
10690 (finish_goto_stmt): Use add_stmt, not add_tree.
10691 (finish_expr_stmt): Likewise.
10692 (begin_if_stmt): Likewise.
10693 (finish_then_clause): Likewise.
10694 (begin_while_stmt): Likewise.
10695 (begin_do_stmt): Likewise.
10696 (finish_return_stmt): Likewise.
10697 (begin_for_stmt): Likewise.
10698 (finish_break_stmt): Likewise.
10699 (finish_continue_stmt): Likewise.
10700 (begin_switch_stmt): Likewise.
10701 (finish_case_label): Likewise.
10702 (begin_try_block): Likewise.
10703 (begin_function_try_block): Likewise.
10704 (begin_handler): Likewise.
10705 (begin_catch_block): Likewise.
10706 (begin_compound_stmt): Likewise.
10707 (begin_asm_stmt): Likewise.
10708 (finish_asm_stmt): Likewise.
10709 (finish_label_stmt): Likewise.
10710 (add_decl_stmt): Likewise.
10711 (finish_subobject): Likewise.
10712 (finish_decl_cleanup): Likewise.
10713 (finish_named_return_value): Likewise.
10714 (setup_vtbl_ptr): Likewise.
10715 (add_scope_stmt): Likewise.
10716 (finish_stmt_expr): Likewise.
10717 (prune_unused_decls): Remove.
10718 (begin_stmt_tree): Likewise.
10719 (finish_stmt_tree): Likewise.
10720 (prep_stmt): Adjust use of current_stmt_tree.
10721 (lang_expand_stmt): Likewise.
10722 * tree.c (statement_code_p): Remove.
10723 (cp_statement_code_p): New function.
10724 (walk_stmt_tree): Remove.
10725 (init_tree): Set lang_statement_code_p.
bb20cc46 10726
0e5921e8
ZW
107272000-09-06 Zack Weinberg <zack@wolery.cumb.org>
10728
10729 Integrated preprocessor.
10730
10731 * Make-lang.in, Makefile.in: Remove all references to input.c,
10732 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
10733 * gxx.gperf, hash.h, input.c: Delete.
10734 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
10735 initialized properly.
10736
10737 * class.c (fixup_pending_inline): Take a tree, not a
10738 struct pending_inline *. All callers changed.
10739 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
10740 RID_PROTECTED entries in ridpointers[] array here.
10741 * decl.c (duplicate_decls): Do not refer to struct
10742 pending_inline.
10743 (record_builtin_type, init_decl_processing): Use RID_MAX not
10744 CP_RID_MAX.
10745 (grokdeclarator): Use C_IS_RESERVED_WORD.
10746 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
10747 cpplib.
10748 (grok_x_components): Do not inspect pending_inlines chain.
10749
10750 * cp-tree.h (struct lang_identifier): Add rid_code entry.
10751 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
10752 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
10753 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
10754 TIME_IDENTIFIER_FILEINFO): Kill.
10755 Update prototypes.
10756 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
10757 single 32-bit word.
10758 * parse.y: Call do_pending_inlines unconditionally.
10759 reinit_parse_for_method is now snarf_method. fn.defpen is no
10760 longer necessary. Remove unnecessary <itype> annotation on
10761 SCOPE. Do not refer to end_of_file or struct pending_inline.
10762 * semantics.c (begin_inline_definitions): Call
10763 do_pending_inlines unconditionally.
10764
10765 * lex.c: Remove all code now shared with C front end.
10766 Initialize cpplib properly if USE_CPPLIB. Put reserved words
10767 into the get_identifier table. Rewrite pragma handling to
10768 work with the registry. Move code to save tokens for later
10769 processing to spew.c.
10770
10771 * spew.c: Rewrite everything in terms of token streams instead
10772 of text. Move routines here from lex.c / input.c as
10773 appropriate. GC-mark trees hanging off the pending inlines
10774 chain.
10775
44835fdd
MM
107762000-09-06 Mark Mitchell <mark@codesourcery.com>
10777
10778 * NEWS: Mention that the named return value extension has been
10779 deprecated.
10780 * cp-tree.h (original_result_rtx): Define.
10781 (TREE_REFERENCE_EXPR): Remove.
10782 (DECL_VPARENT): Likewise.
10783 (pushdecl_nonclass_level): Likewise.
10784 (store_return_init): Likewise.
10785 (reinit_lang_specific): Likewise.
10786 (genrtl_named_return_value): Change prototype.
10787 * decl.c (original_result_rtx): Remove.
10788 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
10789 Do not generate RTL for local variables here.
10790 (store_return_init): Remove.
10791 * semantics.c (genrtl_named_return_value): Simplify. Fold in
10792 store_return_init.
10793 (finish_named_return_value): Adjust accordingly. Warn that this
10794 extension is deprecated.
10795 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
10796
d7c4edd0
NS
107972000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10798
10799 * pt.c (type_unification_real): Replace switch with if.
10800 (unify): Tsubst non-type parms before comparing.
10801
46e2747c
NS
108022000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10803
10804 * error.c (dump_typename): New function, broken out of ...
10805 (dump_type): ... here. Use it.
10806 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
10807
c833d2be
NS
108082000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10809
10810 * init.c (build_offset_ref): Deal with namespace scoped
10811 TEMPLATE_ID_EXPRs.
10812
b1ce3eb2
NS
108132000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10814
10815 * class.c (resolve_address_of_overloaded_function): Add
10816 explanation message.
10817 * decl.c (define_case_label): Reformat explanation.
10818 * decl2.c (finish_static_data_member_decl): Likewise.
10819 (grokfield): Likewise.
10820 * friend.c (do_friend): Likewise.
10821
11f53b6a
ZW
108222000-09-05 Zack Weinberg <zack@wolery.cumb.org>
10823
10824 * tree.c (walk_tree): Expose tail recursion.
10825 (walk_stmt_tree): New function.
10826 * cp-tree.h: Prototype walk_stmt_tree.
10827 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
10828 the BLOCKs directly. If a BLOCK has no variables after
10829 pruning, discard it.
10830 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
10831 restore the line number.
10832
ee94fce6
MM
108332000-09-05 Mark Mitchell <mark@codesourcery.com>
10834
10835 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
10836 (pt.o): Remove dependency on HTAB_H.
10837 * cp-tree.h: Include hashtab.h.
10838 (walk_tree): Change prototype.
10839 (walk_tree_without_duplicates): New function.
10840 * decl.c (check_default_argument): Use it.
10841 * optimize.c (remap_decl): Adjust calls to walk_tree.
10842 (copy_body): Likewise.
10843 (expand_calls_inline): Likewise.
10844 (calls_setjmp_p): Use walk_tree_without_duplicates.
10845 * pt.c: Don't include hashtab.h.
10846 (for_each_template_parm): Use walk_tree_without_duplicates.
10847 * semantics.c (finish-stmt_tree): Likewise.
10848 (expand_body): Likewise.
10849 * tree.c (walk_tree): Add additional parameter.
10850 (walk_tree_without_duplicates): New function.
10851 (count_trees): Use it.
10852 (verify_stmt_tree): Adjust call to walk_tree.
10853 (find_tree): Use walk_tree_without_duplicates.
10854 (no_linkage_check): Likewise.
10855 (break_out_target_exprs): Adjust call to walk_tree.
10856 (cp_unsave): Likewise.
10857
a1281f45
KL
108582000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10859
10860 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
10861 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
10862 * cp-tree.h (TYPE_BINFO): Adjust comment.
10863 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
10864 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
10865 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
10866 (TYPE_TEMPLATE_INFO): Likewise.
10867 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
10868 * class.c (push_nested_class): Likewise.
10869 * decl.c (lookup_name_real): Likewise.
10870 (grokdeclarator): Likewise.
10871 (grok_op_properties): Likewise.
10872 (xref_tag): Likewise.
10873 (xref_basetypes): Likewise.
10874 * decl2.c (constructor_name_full): Likewise.
10875 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
10876 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
10877 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
10878 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10879 (dump_type_suffix): Likewise.
10880 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
10881 instead.
10882 (get_aggr_from_typedef): Likewise.
10883 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
10884 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10885 (write_template_parm): Likewise.
10886 (write_template_template_parm): Check tree code instead of
10887 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
0e5921e8 10888 * method.c (build_overload_nested_name): Add
a1281f45
KL
10889 BOUND_TEMPLATE_TEMPLATE_PARM.
10890 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
10891 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10892 * pt.c (convert_template_argument): Check tree code instead of
10893 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
10894 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
10895 (for_each_template_parm): Adjust comment.
10896 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
10897 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10898 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
10899 template_args_equal to compare template template parameter cases.
10900 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10901 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
10902 instead.
10903 * tree.c (copy_template_template_parm): Decide whether to create
10904 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
10905 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10906 (copy_tree_r): Likewise.
10907 * typeck.c (comptypes): Likewise. Check tree code instead of
10908 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
10909
c9672d45
ME
109102000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
10911
10912 * decl.c (finish_function): Move the code for handling functions
10913 marked with the constructor and destructor attributes inside the
10914 expand_p block.
10915
67804825
NS
109162000-09-04 Nathan Sidwell <nathan@codesourcery.com>
10917
10918 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
10919
1bc0793e
NS
109202000-09-04 Nathan Sidwell <nathan@codesourcery.com>
10921
10922 * pt.c (lookup_template_class): Remove abort.
10923 * tree.c (get_type_decl): Allow error_mark_node.
10924
3338663b
NS
109252000-09-04 Nathan Sidwell <nathan@codesourcery.com>
10926
10927 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
10928 TEMPLATE_ID_EXPRs.
10929
1b84dc37
MM
109302000-09-03 Mark Mitchell <mark@codesourcery.com>
10931
10932 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
c9672d45 10933 new ABI mangling.
1b84dc37 10934
9687f8f4
NS
109352000-09-01 Nathan Sidwell <nathan@codesourcery.com>
10936
10937 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
c9672d45 10938 union tag mismatch error reporting.
9687f8f4 10939
4f8025eb
NS
109402000-09-01 Nathan Sidwell <nathan@codesourcery.com>
10941
c9672d45 10942 * call.c (build_scoped_method_call): Check it is not a namespace.
4f8025eb 10943
495d26d6
JM
109442000-08-30 Jason Merrill <jason@redhat.com>
10945
10946 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
10947
10948 * tree.c (bot_manip): Check TREE_CONSTANT rather than
10949 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
10950 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
10951
10952 * decl.c (start_function): Always call make_function_rtl.
10953
7efcf466
ZW
109542000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10955
495d26d6 10956 * semantics.c (prune_unused_decls): New function.
7efcf466
ZW
10957 (finish_stmt_tree): Call it via walk_tree.
10958
63ad61ed
ZW
109592000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10960
10961 * class.c (build_secondary_vtable): Constify a char *.
10962 * decl.c (init_decl_processing): Initialize function_id_node,
10963 pretty_function_id_node, and func_id_node.
10964 * input.c (struct input_source): Constify 'str'.
10965 (feed_input): Constify first argument.
10966 * mangle.c (write_identifier): Constify argument.
10967 * pt.c (mangle_class_name_for_template): Constify argument.
10968
4361b41d
MM
109692000-08-29 Mark Mitchell <mark@codesourcery.com>
10970
10971 * typeck.c (mark_addressable): Remove code that pokes around in
10972 RTL.
10973
881c6935
JM
109742000-08-28 Jason Merrill <jason@redhat.com>
10975
10976 * lex.c (file_name_nondirectory): Move to toplev.c.
10977
10978 * cp-tree.h (LOCAL_CLASS_P): New macro.
10979 * class.c (finish_struct_1): Use it.
10980
f0f33848
AS
109812000-08-27 Alex Samuel <samuel@codesourcery.com>
10982
10983 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
10984 (write_encoding): Pass another argument to write_name.
10985 (write_name): Add ignore_local_scope parameter. Fix handling of
10986 local names.
10987 (write_nested_name): Use write_unqualified_name.
10988 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
10989 (write_template_prefix): Use write_unqualified_name.
10990 (write_component): Remove.
10991 (write_local_name): Add parameter. Use direct local entity to
10992 discriminator calculation.
0e5921e8 10993 (write_class_enum_type): Pass another argument to write_name.
f0f33848
AS
10994 (write_template_template_arg): Likewise.
10995 (make_guard_variable): Likewise.
0e5921e8 10996
94dfccd1
JM
109972000-08-27 Jason Merrill <jason@redhat.com>
10998
10999 * decl.c (pushdecl): Matching decls for local externs are found in
11000 the current level. Propagate linkage information from previous
11001 declarations.
11002
14fdf4b6
GDR
110032000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
11004
11005 * ir.texi (Expressions): Fix typo.
11006
b5232c64
GM
110072000-08-25 Greg McGary <greg@mcgary.org>
11008
11009 * tree.c (init_tree): Use ARRAY_SIZE.
11010
22a4158c
GDR
110112000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
11012
11013 * error.c (cp_tree_printer): Rework.
11014
f22967f3
MM
110152000-08-25 Mark Mitchell <mark@codesourcery.com>
11016
a0c182fe
MM
11017 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
11018 dyn-string.o.
11019 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
11020 (cp-demangle.o): Remove target.
11021 (dyn-string.o): Likewise.
11022
f22967f3
MM
11023 * decl.c (grokfndecl): Require that `main' return an `int'.
11024 * mangle.c (write_encoding): Don't mangle return types for
11025 conversion functions.
11026
a1066c99
GDR
110272000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
11028
11029 * error.c (tree_formatting_info): New data type.
11030 (tree_being_formatted): New macro.
11031 (tree_formatting_flags): Likewise.
11032 (put_whitespace): Likewise.
11033 (print_tree_identifier): Likewise.
11034 (print_identifier): Likewise.
11035 (cp_tree_printer, print_function_argument_list, print_declaration,
11036 print_expression, print_function_declaration,
11037 print_function_parameter, print_type, print_cv_qualifier): New
0e5921e8 11038 functions.
a1066c99
GDR
11039 (init_error): Initialize lang_printer.
11040
3f2b640a
JM
110412000-08-24 Jason Merrill <jason@redhat.com>
11042
11043 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
11044 adjustment necessary.
11045
7ec09bf7
GM
110462000-08-24 Greg McGary <greg@mcgary.org>
11047
11048 * cp-tree.h (MAIN_NAME_P): Remove macro.
11049
2ab99c46
GDR
110502000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
11051
11052 * error.c (print_instantiation_context): Don't forget to flush the
11053 buffer.
11054
7def1251
JM
110552000-08-23 Jason Merrill <jason@redhat.com>
11056
11057 * typeck.c (build_ptrmemfunc): Save the input pmf.
11058
11059 * method.c (process_modifiers): Use same_type_p.
11060
94350948
MM
110612000-08-23 Mark Mitchell <mark@codesourcery.com>
11062
11063 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
11064 * mangle.c (write_function_type): Change prototype.
11065 (write_encoding): Don't mangle return types for
11066 constructors or destructors.
11067 (write_type): Adjust call to write_function_type.
11068 * pt.c (instantiate_template): Instantiate alternate entry points
11069 when instantiating the main function.
0e5921e8 11070
a64e7329
GDR
110712000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
11072
11073 * error.c (cp_print_error_function): Don't use embedded '\n' in
0e5921e8 11074 output_printf.
a64e7329 11075
a72462a4
GDR
110762000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
11077
11078 * decl.c (init_decl_processing): Remove bogus initialization.
11079 * error.c (lang_print_error_function): Restore here.
0e5921e8
ZW
11080 (init_error): Initialize print_error_function.
11081
3add6264
TP
110822000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11083
11084 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
11085
cb753e49
GDR
110862000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
11087
11088 * Makefile.in (error.o): Depends on diagnostic.h
11089
11090 * cp-tree.h (problematic_instantiation_changed,
11091 record_last_problematic_instantiation, current_instantiation,
11092 print_instantiation_context): Declare.
11093 (maybe_print_template_context): Remove.
11094
11095 * decl.c (init_decl_processing): Set print_error_function to NULL.
11096 (lang_print_error_function): Remove, since we're using a new
11097 machinery.
11098
11099 * error.c: #include diagnostic.h
11100 (function_category): New function.
11101 (cp_diagnostic_starter): Likewise.
11102 (cp_diagnostic_finalizer): Likewise.
11103 (cp_print_error_function): Likewise.
11104 (maybe_print_instantiation_context): Likewise.
11105 (print_instantiation_full_context): Likewise.
11106 (print_instantiation_partial_context): Likewise.
11107 (print_instantiation_context): Define.
11108 (init_error): Initialize diagnostic pager and finalizer.
11109
11110 * pt.c (problematic_instantiation_changed): Define.
11111 (record_last_problematic_instantiation): Likewise.
11112 (current_instantiation): Likewise.
11113 (maybe_print_template_context): Remove.
11114 (print_template_context): Likewise.
11115 (current_tinst_level): Make static to reflect Brendan Kehoe's
11116 change of 1995-04-13.
0e5921e8
ZW
11117 (push_tinst_level): Call print_instantiation_context.
11118
05a3d06e 111192000-08-21 Nix <nix@esperi.demon.co.uk>
0e5921e8 11120
05a3d06e
N
11121 * lang-specs.h: Do not process -o or run the assembler if
11122 -fsyntax-only.
11123
93e2382f
JM
111242000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11125
11126 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
11127 variables.
11128 * decl2.c (lang_decode_option): Disable gettext attributes for
11129 -ansi.
11130
24805e80
GDR
111312000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
11132
11133 * lex.c (lang_init_options): Default diagnostic message maximum
11134 length to 80, when line-wrapping.
11135
b485e15b
MM
111362000-08-20 Mark Mitchell <mark@codesourcery.com>
11137
11138 * class.c (build_vtbl_initializer): Clear the entire
11139 vtbl_init_data. Start keeping track of the functions for which we
11140 have created vcall offsets here.
11141 (dfs_build_vcall_offset_vtbl_entries): Remove.
11142 (build_vcall_offset_vtbl_entries): Reimplement.
11143 (add_vcall_offset_vtbl_entries_r): New function.
11144 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
11145 computing when vcall offsets are necessary.
11146
2ae7bada
NS
111472000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11148
11149 * decl.c (member_function_or_else): Use cp_error ... %T.
11150 (grokdeclarator): Likewise.
11151 (start_method): Likewise.
0e5921e8 11152 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
2ae7bada 11153
7a8b1375
NS
111542000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11155
11156 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
0e5921e8 11157 TYPE_DECLs.
7a8b1375 11158
19420d00
NS
111592000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11160
11161 * cp-tree.h (PTRMEM_OK_P): New macro.
11162 (itf_ptrmem_ok): New enumeration value.
11163 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
11164 argument. Diagnose implicit pointer to member.
11165 (instantiate_type): Don't diagnose implicit pointer to member
11166 here. Pass itf_ptrmem_ok if ok. Adjust calls to
11167 resolve_address_of_overloaded_function.
11168 * init.c (build_offset_ref): Set PTRMEM_OK_P.
11169 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
11170 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
11171 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
11172 (build_unary_op): Deal with single non-static member in
11173 microsoft-land.
11174
66081283
NS
111752000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11176
11177 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
11178
fa40aa12
NS
111792000-08-18 Nathan Sidwell <nathan@codesourcery.com>
11180
11181 * cp-tree.h (enum_name_string): Remove prototype.
11182 (report_case_error): Remove prototype.
11183 * cp/typeck2.c (enum_name_string): Remove.
11184 (report_case_error): Remove.
11185 * error.c (dump_expr): Deal with enum values directly.
11186 Correctly negate integer constant.
11187
d13b34e9
NS
111882000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11189
11190 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
11191 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
11192 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
11193 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
11194 (__cxa_vec_new): Use __cxa_vec_new2.
11195 (__cxa_vec_delete): Use __cxa_vec_delete2.
11196
2f1b80af
NS
111972000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11198
11199 * vec.cc (__cxa_vec_new): Set "C" linkage.
11200 (__cxa_vec_ctor): Likewise.
11201 (__cxa_vec_cctor): Likewise.
11202 (__cxa_vec_dtor): Likewise.
11203 (__cxa_vec_delete): Likewise.
11204 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
11205 (__cxa_vec_ctor): Likewise.
11206 (__cxa_vec_cctor): Likewise.
11207 (__cxa_vec_dtor): Likewise.
11208 (__cxa_vec_delete): Likewise.
11209
105d8e1f
NS
112102000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11211
11212 * class.c (instantiate_type): Reinstate local variable
11213 deleted in previous change.
0e5921e8 11214
f1819d9a
NS
11215 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
11216 itf_no_attributes.
105d8e1f 11217
5e76004e
NS
112182000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11219
11220 * cp-tree.h (instantiate_type_flags): New enumeration.
11221 (instantiate_type): Change parameter.
11222 * class.c (instantiate_type): Adjust prototype. Adjust.
11223 * call.c (standard_conversion): Adjust instantiate_type call.
11224 (reference_binding): Likewise.
11225 (build_op_delete_call): Likewise.
11226 (convert_like_real): Likewise.
11227 * cvt.c (cp_convert_to_pointer): Likewise.
11228 (convert_to_reference): Likewise.
11229 * pt.c (convert_nontype_argument): Likewise.
11230 * typeck.c (build_binary_op): Likewise.
11231 (build_ptrmemfunc): Likewise.
11232 (convert_for_assignment): Likewise.
11233
4b054b80
NS
112342000-08-17 Nathan Sidwell <nathan@codesourcery.com>
11235
11236 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
11237 (current_aggr): Define.
11238 * decl.c (grokdeclarator): Make sure a friend class is an
11239 elaborated type specifier.
11240 * parse.y (current_aggr): Remove static definition.
11241 (cp_parse_init): Adjust.
11242 (structsp): Clear and restore current_aggr.
11243 (component_decl_list): Clear current_aggr.
0e5921e8 11244
4b054b80
NS
11245 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
11246 aggregate tag on the typename's context.
0e5921e8 11247
321cba97
NS
11248 * pt.c (tsubst_friend_class): Return error_mark_node, if
11249 parms becomes NULL.
11250 (instantiate_class_template): Ignore error_mark_node friend types.
4b054b80 11251
08aead78
NS
112522000-08-14 Nathan Sidwell <nathan@codesourcery.com>
11253
11254 * cvt.c (warn_ref_binding): New static function, broken out of ...
0e5921e8 11255 (convert_to_reference): ... here. Use it.
08aead78 11256
fa1f3ebc
KL
112572000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
11258
11259 * parse.y (template_arg): Add rule for template qualified with
11260 global scope.
11261
9845b52b
TP
112622000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11263
11264 * decl2.c (add_function): Reorganize.
11265 (arg_assoc): Do not consider function template decls.
11266
e69c8072
JM
112672000-08-11 Jason Merrill <jason@redhat.com>
11268
11269 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
11270 looking inside.
11271
5c1e5476
NS
112722000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11273
11274 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
11275 (lookup_nested_tag): Likewise.
0e5921e8 11276
5c1e5476
NS
11277 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
11278 can be produced.
11279
5426aa7f
NS
112802000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11281
11282 * parse.y (named_complex_class_head_sans_basetype): Remove
11283 always true if.
11284
fd037e0d
NS
112852000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11286
11287 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
11288 explicit TEMPLATE_ID_EXPR args.
11289 (build_expr_from_tree, case CALL_EXPR): Likewise.
11290
73ae5c34
NS
112912000-08-11 Nathan Sidwell <nathan@codesourcery.com>
11292
11293 * decl.c (check_tag_decl): Diagnose typename's which don't
11294 declare anything.
11295
aa54df09
NS
112962000-08-10 Nathan Sidwell <nathan@codesourcery.com>
11297
11298 * init.c (build_aggr_init): Reject bogus array initializers
11299 early.
11300
7e8dad18
NS
113012000-08-09 Nathan Sidwell <nathan@codesourcery.com>
11302
11303 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
11304 runtime.
11305 * cp/tinfo.cc (__dynamic_cast): Likewise.
0e5921e8 11306 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7e8dad18 11307
0f586b9b
NS
113082000-08-09 Nathan Sidwell <nathan@codesourcery.com>
11309
11310 * cvt.c (convert_to_pointer_force): Fix error message when
0e5921e8 11311 attempting to cast from ambiguous base.
0f586b9b 11312
08e72a19
JM
113132000-08-08 Jason Merrill <jason@redhat.com>
11314
11315 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
11316 (tsubst_template_arg_vector): Likewise.
11317
11318 * decl2.c (build_anon_union_vars): Choose the largest field; don't
11319 assume that one will be as large as the union.
11320
0811ea8f
KH
113212000-08-07 Kazu Hirata <kazu@hxi.com>
11322
11323 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
11324 * decl.c (pop_labels): Likewise.
11325
f9fcf62b
JO
113262000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
11327
11328 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
11329 specifications.
11330 (__pointer_to_member_type_info): Likewise.
11331 (__base_class_info): Likewise.
11332 (__class_type_info): Likewise.
11333 (__si_class_type_info): Likewise.
11334 (__vmi_class_type_info): Likewise.
11335 * tinfo.cc (__si_class_type_info::__do_find_public_src):
11336 Changed member names to match specifications.
11337 (__vmi_class_type_info::__do_find_public_src): Likewise.
11338 (__si_class_type_info::__do_dyncast): Likewise.
11339 (__vmi_class_type_info::__do_dyncast): Likewise.
11340 (__si_class_type_info::__do_upcast): Likewise.
11341 (__vmi_class_type_info::__do_upcast): Likewise.
11342 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
11343 (__pbase_type_info::__pointer_catch): Likewise.
11344 (__pointer_type_info::__pointer_catch): Likewise.
11345 (__pointer_to_member_type_info::__pointer_catch): Likewise.
11346
a36556a8
ZW
113472000-08-04 Zack Weinberg <zack@wolery.cumb.org>
11348
0e5921e8
ZW
11349 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
11350 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
11351 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
a36556a8 11352
452a394b
MM
113532000-08-04 Mark Mitchell <mark@codesourcery.com>
11354
11355 * cp-tree.h (add_method): Change prototype.
11356 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
11357 Don't double the size of the method vector in the error case.
11358 (handle_using_decl): Adjust call to add_method.
11359 (add_implicitly_declared_members): Likewise.
11360 (clone_function_decl): Likewise.
11361 * decl2.c (check_classfn): Likewise.
11362 * semantics.c (finish_member_declaration): Likewise.
0e5921e8 11363
b8458e3e
JM
113642000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
11365
11366 * decl.c (flag_isoc94): New variable.
11367
a1bcc528
JM
113682000-08-02 Jason Merrill <jason@redhat.com>
11369
11370 * pt.c (do_type_instantiation): Add complain parm; don't complain
11371 if called recursively.
11372 * cp-tree.h, parse.y: Adjust.
11373
50e60bc3
ZW
113742000-08-02 Zack Weinberg <zack@wolery.cumb.org>
11375
eae51189
ZW
11376 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
11377 -Wno-strict-prototypes.
11378
37620334
ZW
11379 * g++spec.c: Adjust type of second argument to
11380 lang_specific_driver, and update code as necessary.
11381
50e60bc3
ZW
11382 * cp-tree.h: Don't prototype min_precision here.
11383 (my_friendly_assert): Cast expression to void.
11384 * semantics.c (do_poplevel): Initialize scope_stmts.
11385
3f954fc3
MM
113862000-08-02 Mark Mitchell <mark@codesourcery.com>
11387
11388 * cp-tree.h (DECL_NEEDED_P): Tweak.
11389
ab4fa7ed
JM
113902000-07-28 Jason Merrill <jason@redhat.com>
11391
11392 * lang-specs.h: Use %i in rule for .ii files.
11393
4871239e
ZW
113942000-07-31 Zack Weinberg <zack@wolery.cumb.org>
11395
11396 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
11397
911a71a7
MM
113982000-07-30 Mark Mitchell <mark@codesourcery.com>
11399
11400 Allow indirect primary bases.
11401 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
11402 primary_base.
11403 (CLASSTYPE_VFIELD_PARENT): Remove.
11404 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
11405 (BINFO_PRIMARY_BINFO): Remove.
11406 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
11407 (BINFO_VBASE_PRIMARY_P): Likewise.
11408 (BINFO_PRIMARY_BASE_OF): New macro.
11409 (BINFO_INDIRECT_PRIMARY_P): Likewise.
11410 (get_primary_binfo): New function.
11411 * decl.c (lang_mark_tree): Make lang_type::primary_base.
11412 * class.c (vcall_offset_data_s): Rename to ...
11413 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
11414 and add ctor_vtbl_p.
11415 (get_derived_offset): Use get_primary_binfo.
11416 (dfs_mark_primary_bases): Adjust handling of virtual primary
11417 bases.
11418 (mark_primary_bases): Likewise.
11419 (set_primary_base): Take a binfo, not an integer, as a
11420 representation of the primary base.
11421 (indirect_primary_base_p): Remove.
11422 (determine_primary_base): Adjust for indirect primary bases.
11423 (dfs_find_final_overrider): Fix typo in coment.
11424 (update_vtable_entry_for_fn): Use get_primary_binfo.
11425 (layout_nonempty_base_or_field): Tweak.
11426 (build_base_fields): Adjust for new primary base semantics.
11427 (dfs_propagate_binfo_offsets): Remove.
11428 (propagate_binfo_offsets): Rewrite.
11429 (dfs_set_offset_for_shared_vbases): Remove.
11430 (layout_virtual_bases): Don't use it.
11431 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
11432 ABI.
11433 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
11434 CLASSTYPE_VFIELD_PARENT.
11435 (dfs_get_primary_binfo): New function.
11436 (get_primary_binfo): Likewise.
11437 (dump_class_hierarchy_r): Tweak printing of primary bases.
11438 (build_vtbl_initializer): Fix typo in comments. Use
11439 vtbl_init_data.
11440 (build_vcall_and_vbase_vtbl_entries): Likewise.
11441 (build_vbaes_offset_vtbl_entries): Likewise.
11442 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
11443 BV_VCALL_INDEX to handle indirect primary bases.
11444 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
11445 (build_rtti_vtbl_entries): Likewise.
11446 * search.c (get_shared_vbase_if_not_primary): Tweak.
11447 (find_vbase_instance): Likewise.
11448 (binfo_for_vtable): Simplify.
11449 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
11450 (make_binfo): Make it have 11 entries.
0e5921e8 11451
722bed0f
AS
114522000-07-30 Alex Samuel <samuel@codesourcery.com>
11453
11454 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
11455 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
11456 ascertaining primaryness.
11457 (G): Remove template_args.
11458 (decl_is_template_id): New function.
11459 (write_encoding): Use decl_is_template_id.
11460 (write_name): Likewise. Handle type_decls. Get main variant of
11461 type decls.
11462 (write_nested_name): Likewise.
11463 (write_prefix): Likewise.
11464 (write_template_prefix): Likewise.
11465 (write_special_name_constructor): Remove defunct production from
11466 comment.
11467 (write_bare_function_type): Remove comment about absent parameter.
11468 (write_template_template_arg): Add missing grammar production to
11469 comment.
11470
9076e292
JM
114712000-07-27 Jason Merrill <jason@redhat.com>
11472
11473 * decl.c (duplicate_decls): If common_type produces a non-typedef
11474 type for a typedef, just use the old type.
11475
b2244c65
MM
114762000-07-27 Mark Mitchell <mark@codesourcery.com>
11477
11478 * cp-tree.h (function_depth): Declare.
11479 (verify_stmt_tree): Likewise.
11480 (find_tree): Likewise.
11481 * decl.c (function_depth): Give it external linkage.
11482 * optimize.c (optimize_function): Increment and decrement it.
11483 * tree.c (verify_stmt_tree_r): New function.
11484 (verify_stmt_tree): Likewise.
11485 (find_tree_r): Likewise.
11486 (find_tree): Likewise.
11487
62e3bf54
JM
114882000-07-27 Jason Merrill <jason@redhat.com>
11489
9076e292
JM
11490 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
11491 TYPE_PTRMEMFUNC_P.
11492 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
62e3bf54 11493
5a728aca
MM
114942000-07-26 Mark Mitchell <mark@codesourcery.com>
11495
11496 * decl.c (start_cleanup_fn): Mark the function as `inline'.
11497 * decl2.c (get_guard): Call cp_finish_decl, not
11498 rest_of_decl_compilation, for local guards.
11499 * lex.c (do_identifier): Remove unused variable.
11500
6a1fa5f9
ME
11501Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
11502
11503 * parse.y: Add missing ';'.
11504
0c10a805
MM
115052000-07-26 Mark Mitchell <mark@codesourcery.com>
11506
11507 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
11508 of `extern "C++"'.
11509
8b27e9ef
NS
115102000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11511
11512 Kill strict_prototype. Backwards compatibility only for
11513 non NO_IMPLICIT_EXTERN_C systems.
11514 * cp-tree.h (flag_strict_prototype): Remove.
11515 (strict_prototype): Remove.
11516 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
11517 * decl.c (maybe_push_to_top_level): Adjust.
11518 (pop_from_top_level): Adjust.
11519 (decls_match): Only allow sloppy parm matching for ancient
11520 system headers.
11521 (init_decl_processing): Adjust.
11522 (grokdeclarator): Adjust.
11523 * decl2.c (flag_strict_prototype): Remove.
11524 (strict_prototype): Remove.
11525 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
11526 (lang_f_options): Remove "strict-prototype".
11527 (unsupported-options): Add "strict-prototype".
11528 * lex.c (do_identifier): Adjust.
11529 (do_scoped_id): Adjust.
11530 * parse.y (empty_parms): Adjust.
11531 * class.c (push_lang_context): Adjust.
11532 (pop_lang_context): Adjust.
11533 * typeck.c (comp_target_parms): Adjust.
11534
c3783399
NS
115352000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11536
11537 * decl.c (poplevel): Deal with anonymous variables at for scope.
11538 (maybe_inject_for_scope_var): Likewise.
11539
a7023245
ZW
115402000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11541
11542 * decl.c: Remove all signal handling code, now done in toplev.c.
11543
95ee998c
MM
115442000-07-23 Mark Mitchell <mark@codesourcery.com>
11545
11546 * decl.c (make_rtl_for_nonlocal_decl): Rework.
11547
11548 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
11549 correctly.
11550
1b493b81
ZW
115512000-07-20 Zack Weinberg <zack@wolery.cumb.org>
11552
11553 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
11554 Define my_friendly_assert and my_friendly_abort as macros
11555 which may call friendly_abort. Prototype friendly abort, not
11556 my_friendly_abort or my_friendly_assert.
11557 * decl.c (signal_catch): Report the signal caught in the error
11558 message. Call fatal directly.
11559 * typeck2.c (ack, my_friendly_assert): Delete.
11560 (my_friendly_abort): Rename to friendly_abort. Expect file,
11561 line, and function parameters. Report the abort code, then
11562 call fancy_abort. Do not mask an abort if errors have
11563 already occurred.
11564
a306451c
NS
115652000-07-18 Nathan Sidwell <nathan@codesourcery.com>
11566
11567 * typeck.c (comp_target_parms): Remove obsolete parameter.
11568 (comp_target_types): Adjust.
11569
f49fad00
JM
115702000-07-17 Jason Merrill <jason@redhat.com>
11571
11572 * typeck.c (mark_addressable): Never set TREE_USED.
11573 * call.c (build_call): Don't abort on calls to library functions
11574 that have been declared normally.
11575
11576 * typeck.c (build_binary_op): Fix grammar in warning.
11577
11578 * exception.cc (__eh_free): Fix prototype.
11579
11580 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
11581
0e5921e8 11582 * decl.c (pushdecl): Handle seeing an OVERLOAD in
f49fad00
JM
11583 IDENTIFIER_NAMESPACE_VALUE.
11584
69690d98
MM
115852000-07-16 Mark Mitchell <mark@codesourcery.com>
11586
11587 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
11588 * method.c (use_thunk): Correct handling of vcall offsets.
11589
bfbbc080
ZW
115902000-07-14 Zack Weinberg <zack@wolery.cumb.org>
11591
11592 * .cvsignore: parse.h and parse.c have no cp- prefix.
11593
83a90717
MM
115942000-07-13 Mark Mitchell <mark@codesourcery.com>
11595
11596 * .cvsignore: New file.
11597
ea414c97
ZW
115982000-07-13 Zack Weinberg <zack@wolery.cumb.org>
11599
11600 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
11601
792abd35
MM
116022000-07-12 Mark Mitchell <mark@codesourcery.com>
11603
11604 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
11605 * parse.c: Remove.
11606 * parse.h: Likewise.
11607
72a50ab0
MM
116082000-07-11 Mark Mitchell <mark@codesourcery.com>
11609
11610 * class.c (layout_class_type): Add pointers to virtual bases after
11611 base classes under the old ABI.
11612
0dfdeca6
BC
116132000-07-10 Benjamin Chelf <chelf@codesourcery.com>
11614
11615 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
11616 (finish_continue_stmt): Likewise.
11617 (begin_for_stmt): Remove call to note_level_for_for.
11618 (finish_goto_stmt): Change call from build_min_nt
11619 to build_stmt.
11620 (finish_expr_stmt): Likewise.
11621 (begin_if_stmt): Likewise.
11622 (begin_while_stmt): Likewise.
11623 (finish_while_stmt): Likewise.
11624 (finish_return_stmt): Likewise.
11625 (begin_for_stmt): Likewise.
11626 (finish_for_stmt): Likewise.
11627 (finish_break_stmt): Likewise.
11628 (begin_switch_stmt): Likewise.
11629 (finish_case_label): Likewise.
11630 (genrtl_try_block): Likewise.
11631 (begin_try_block): Likewise.
11632 (begin_handler): Likewise.
11633 (begin_compound_stmt): Likewise.
11634 (finish_asm_stmt): Likewise.
11635 (finish_label_stmt): Likewise.
11636 (add_decl_stmt): Likewise.
11637 (finish_subobject): Likewise.
11638 (finish_decl_cleanup): Likewise.
11639 (finish_named_return_value): Likewise.
11640 (setup_vtbl_ptr): Likewise.
11641 (add_scope_stmt): Likewise.
11642 * decl.c (finish_constructor_body): Likewise.
11643 (finish_destructor_body): Likewise.
11644 * optimize.c (copy_body_r): Likewise.
11645 (initialize_inlined_parameters): Likewise.
11646 (declare_return_variable): Likewise.
11647 (expand_call_inline): Likewise.
0e5921e8 11648
f12eef58
JJ
116492000-07-10 Jakub Jelinek <jakub@redhat.com>
11650
11651 * semantics.c (expand_body): Sync interface information
11652 at the end of function body expansion.
11653
2bb5d995
JM
116542000-07-09 Jason Merrill <jason@redhat.com>
11655
11656 * init.c (build_new_1): Bail early if the call to new fails.
11657
0e5921e8 11658 * decl.c (compute_array_index_type): Check specifically for
2bb5d995
JM
11659 an INTEGER_CST, not just TREE_CONSTANT.
11660
0e5921e8 11661 * decl.c (duplicate_decls): Don't call duplicate_decls on
2bb5d995
JM
11662 the DECL_TEMPLATE_RESULT.
11663 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
11664 codes.
11665
11666 * error.c (dump_template_bindings): Don't crash if we had an
11667 invalid argument list.
11668
11669 * typeck.c (c_expand_start_case): Do narrowing here.
11670 * semantics.c (finish_switch_cond): Not here.
11671
116722000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
11673
11674 * parse.y (asm_clobbers): Do string concatenation.
11675
089acd57
MM
116762000-07-09 Mark Mitchell <mark@codesourcery.com>
11677
11678 * decl.c (pushtag): Don't put local classes in template functions
11679 on the local_classes list.
11680
116812000-07-04 Scott Snyder <snyder@fnal.gov>
11682
11683 * decl2.c (get_guard): Add missing return for old ABI local
11684 variable case.
11685
7b019c19
MM
116862000-07-09 Mark Mitchell <mark@codesourcery.com>
11687
11688 * cp-tree.h (char_type_p): New function.
11689 * decl.c (init_decl_processing): Don't initialize
11690 signed_wchar_type_node or unsigned_wchar_type_node.
11691 (complete_array_type): Handle brace-enclosed string-constants.
11692 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
11693 * tree.c (char_type_p): New function.
11694 * typeck2.c (digest_init): Use char_type_p.
11695
a5f1c5f8
NS
116962000-07-06 Nathan Sidwell <nathan@codesourcery.com>
11697
11698 * pt.c (tsubst): Don't layout type, if it's error_mark.
11699
84e5ca0f
NS
117002000-07-06 Nathan Sidwell <nathan@codesourcery.com>
11701
11702 * pt.c (instantiate_pending_templates): Reset template level.
11703
ab785305
JM
117042000-07-05 Jason Merrill <jason@redhat.com>
11705
11706 * call.c (joust): Don't complain about `operator char *()' beating
11707 `operator const char *() const'.
11708
90418208
JM
117092000-07-04 scott snyder <snyder@fnal.gov>
11710 Jason Merrill <jason@redhat.com>
11711
0e5921e8 11712 * repo.c (repo_get_id): Handle the case where a class with virtual
90418208
JM
11713 bases has a null TYPE_BINFO_VTABLE.
11714
117152000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
11716 Jason Merrill <jason@redhat.com>
11717
11718 * parse.y (member_init): Just pass in the type.
11719 * init.c (expand_member_init): Handle getting a type.
11720
11721