]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/ChangeLog
configure.in, configure: enable dwarf2-exception-style exception handling on IA-64.
[gcc.git] / gcc / cp / ChangeLog
CommitLineData
c88770e9
NB
12002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
2
3 * cp-tree.h (cxx_maybe_build_cleanup): New.
4 * decl.c (destroy_local_var, hack_incomplete_structures): Update.
5 (maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
6 * tree.c (build_target_expr): Update.
7b3e5198 7 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
c88770e9 8
aaf93206
NB
92002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10
11 * decl2.c (cxx_decode_option): Handle -E.
12 * lang-specs.h (default_compilers): Preprocess with cc1plus.
13 * lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
14
e756a7da
JJ
152002-03-23 Jakub Jelinek <jakub@redhat.com>
16
17 PR c++/6037
18 * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
19
ea9264e9
GDR
202002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
21
22 * error.c (dump_type): Be careful about implicit typenames.
23
acb044ee
GDR
242002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
25
26 PR C++/3656
27 * semantics.c (finish_base_specifier): Handle erronous base
28 classes.
29
b216cd4a
ZW
302002-03-22 Zack Weinberg <zack@codesourcery.com>
31
32 * error.c: Always use REAL_VALUE_TO_DECIMAL; don't test
33 REAL_IS_NOT_DOUBLE.
34
9181f8db
JK
352002-03-22 Jeff Knaggs <jknaggs@redhat.com>
36
37 * typeck.c (expand_ptrmemfunc_cst): Scale idx down to an index
38 into the vtable_entry array regardless of
39 TARGET_PTRMEMFUNC_VBIT_LOCATION.
40
e019cf95
AH
412002-03-21 Aldy Hernandez <aldyh@redhat.com>
42
43 * tree.c (cp_cannot_inline_tree_fn): Same.
44
43577e6b
NB
452002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
46
47 * cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
48 insert_block, getdecls, global_bindings_p): New.
49
8c152bad
NS
502002-03-20 Nathan Sidwell <nathan@codesourcery.com>
51
52 PR c++/4361
53 * mangle.c (struct globals) Add internal_mangling_p member.
54 (write_template_param): Do internal mangling, if needed.
55 (mangle_conv_op_name_for_type): Request internal mangling.
56
e3fe84e5
JM
572002-03-20 Jason Merrill <jason@redhat.com>
58
59 PR c++/2136
60 * init.c (build_delete): Check access for a member op delete here.
61 * decl2.c (delete_sanity): Not here.
62
ea122333
JM
632002-03-19 Jason Merrill <jason@redhat.com>
64
65 PR c++/5118
66 * class.c (get_vfield_name): Use the constructor_name.
67
7afff7cf
NB
682002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
69
70 * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
71 * cp-tree.h (lang_printable_name): Rename.
72 * error.c (lang_decl_name): Use new hook.
73 * lex.c (cxx_init): Remove old hook.
74 * pt.c (tsubst_decl): Use new hook.
75 * tree.c (lang_printable_name): Rename.
76
ff77ac85
EB
772002-03-18 Eric Botcazou <ebotcazou@multimania.com>
78
79 PR c++/3882
80 * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
81 (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
82 only after recording the declaration.
83
ffd696af
JM
842002-03-18 Jason Merrill <jason@redhat.com>
85
097955f2
JM
86 PR c++/2039
87 * init.c (resolve_offset_ref): Hand off to build_component_ref.
88
b663bcf3
JM
89 PR c++/4222, c++/5995
90 * call.c (build_over_call): Fix empty class logic.
91
0f4237c2
JM
92 PR c++/3870
93 * cp-tree.h (struct saved_scope): Add last_parms field.
94 * decl.c (maybe_push_to_top_level): Save last_function_parms.
95 (pop_from_top_level): Restore it.
96
001ad76c
JM
97 PR c++/4377
98 * mangle.c (write_expression): Strip NOP_EXPRs sooner. Also strip
99 NON_LVALUE_EXPRs.
100
101 PR c++/4003
ed2fa432
JM
102 * pt.c (tsubst_friend_function): Use decl_namespace_context.
103
ffd696af
JM
104 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
105 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
106 type with a nontrivial destructor.
107
f2606a97
JM
1082002-03-17 Jason Merrill <jason@redhat.com>
109
110 PR c++/4460
111 * class.c (build_base_path): Virtual base layout is fixed in
112 in-charge [cd]tors.
113
52dabb6c
NB
1142002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
115
116 * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
117 * parse.y (yyparse): Remove macro.
118
beb9c8a2
JM
1192002-03-17 Jason Merrill <jason@redhat.com>
120
121 PR c++/5757
122 * init.c (build_new_1): Pass the right pointer to op delete.
123
5dd236e2
NS
1242002-03-16 Nathan Sidwell <nathan@codesourcery.com>
125
126 PR c++/4361
127 * cp-tree.h (CLASSTYPE_METHOD_VEC): Document where templated
128 conversion operators go.
129 (struct lang_decl_flags): Add template_conv_p and unused
130 bitfields.
131 (DECL_TEMPLATE_CONV_FN_P): New macro.
132 * call.c (build_user_type_conversion_1): Don't check second type
133 conversion of overload set first.
134 * class.c (add_method): Make sure templated conversion operators
135 all end up on slot 2.
136 * lex.c (do_identifier): A conversion operator token might be
137 satisfied by a templated conversion operator.
5dd236e2
NS
138 * pt.c (check_explicit_specialization): Use
139 CLASSTYPE_FIRST_CONVERSION_SLOT.
140 (template_parm_this_level_p): New function.
141 (push_template_decl_real): Determine DECL_TEMPLATE_CONV_FN_P.
8c152bad 142 * search.c (lookup_fnfields_1): Template conversions will be on
5dd236e2
NS
143 the first slot.
144 * typeck.c (build_component_ref): Preserve the type of an
145 conversion operator name on the overload type.
146 (build_x_function_call): Retrieve the conversion operator name.
147
0ba20759
RH
1482002-03-15 Richard Henderson <rth@redhat.com>
149
150 * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
151
6e4ae815
MM
1522002-03-15 Mark Mitchell <mark@codesourcery.com>
153
154 * cp-tree.h (CLEANUP_DECL): Remove.
155 (CLEANUP_EXPR): Likewise.
156 * decl.c (destroy_local_var): Simplify.
157 (maybe_build_cleanup): Tidy.
158 * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
159 * semantics.c (cp_expand_stmt): Likewise.
160 * cp/tree.c (cp_statement_code_p): Likewise.
161
5cc90635
JM
1622002-03-15 Jason Merrill <jason@redhat.com>
163
6da794e8
JM
164 PR c++/5857
165 * decl.c (duplicate_decls): Use merge_types instead of common_type.
166 * typeck.c (common_type): Just hand off to
167 type_after_usual_arithmetic_conversions and
168 composite_pointer_type.
169 (merge_types): New fn.
170 (commonparms): Use it instead of common_type.
171 (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
172 (composite_pointer_type): Also handle attributes.
173 * cp-tree.h: Declare merge_types.
174
5cc90635
JM
175 * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
176 variables.
177 * decl2.c (maybe_make_one_only): Also mark the decl as needed.
178
ecb0eece
RH
1792002-03-14 Richard Henderson <rth@redhat.com>
180
181 * decl.c: Include c-pragma.h.
182 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
183 * Make-lang.in: Update dependencies.
184
d3f129b3
JJ
1852002-03-14 Jakub Jelinek <jakub@redhat.com>
186
f6562b37 187 PR c++/5908
d3f129b3
JJ
188 * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
189 * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
190
049e6879
RS
1912002-03-12 Richard Sandiford <rsandifo@redhat.com>
192
193 * mangle.c (write_builtin_type): Handle 128-bit integers even if
194 they are not a standard integer type.
195
872c9284
RS
1962002-03-12 Richard Sandiford <rsandifo@redhat.com>
197
198 * cp-tree.h (init_init_processing): Remove declaration.
199 * init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
200 * decl.c (cxx_init_decl_processing): Don't call init_init_processing.
201
2f9834e8
KG
2022002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
203
204 * cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
205 Define.
206 * decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
207 tree_code_length.
208 * lex.c (cplus_tree_code_type, cplus_tree_code_length,
209 cplus_tree_code_name): Delete.
210 (cxx_init): Don't call add_c_tree_codes, instead set
211 lang_unsafe_for_reeval. Don't try to copy into the various
212 tree_code arrays.
213
df867456
NS
2142002-03-12 Nathan Sidwell <nathan@codesourcery.com>
215
216 PR c++/5659
217 * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
218 * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
219 definitions.
220
ab04e34b
NS
2212002-03-11 Nathan Sidwell <nathan@codesourcery.com>
222
223 Revert 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>,
224 DR209 is now not a defect.
225 * cp-tree.h (skip_type_access_control): Remove.
226 * decl.c (grokdeclarator): Do type access control for friend
227 declarations.
228 * semantics.c (decl_type_access_control): Don't reset
229 current_type_lookups.
230 (save_type_access_control): Always save the lookups.
231 (skip_type_access_control): Remove.
232 (finish_class_definition): Don't change type_lookups.
233
999cc24c
NS
2342002-03-11 Nathan Sidwell <nathan@codesourcery.com>
235
236 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>,
237 It is incorrect.
238 * typeck.c (build_static_cast): Compare non-qualified types
239 with pointer to member conversions.
240
61eece67
DN
2412002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
242 Daniel Berlin <dan@dberlin.org>
243
244 * cp-lang.c (ok_to_generate_alias_set_for_type): New function.
245 (cxx_get_alias_set): Use it.
246
644d28d4
KG
2472002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
248
249 * cp-tree.h (stabilize_expr): Prototype.
250
7e326356
CR
2512002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
252
253 * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
254 conditional return void.
255
24965e7a
NB
2562002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
257
258 * cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
259 * cp-tree.h (cxx_unsave): New.
260 * tree.c (cp_unsave): Rename cxx_unsave, update prototype.
261 (init_tree): Update.
262
ca7558fc
KG
2632002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
264
265 * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of
266 explicit sizeof/sizeof.
267 * decl2.c (cxx_decode_option): Likewise.
268 * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise.
269
fd87b7a7
NS
2702002-03-02 Nathan Sidwell <nathan@codesourcery.com>
271
272 PR c++/775
273 * decl.c (lookup_tag): Only reject enum/class mismatch, not
274 class/union mismatch.
275 * parse.y (check_class_key): New function.
276 (structsp): Call it.
277
bfba94bd
MM
2782002-03-01 Michael Matz <matz@suse.de>
279
280 * typeck.c (cp_pointer_int_sum): Complete inner type which is
281 used later by size_in_bytes().
282
fdc9bf29
PE
2832002-03-01 Phil Edwards <pme@gcc.gnu.org>
284
285 * cp-tree.h: Require __GNUC__ to be #defined.
286 (build_init): Add missing prototype.
287
6f30f1f1
JM
2882002-03-01 Jason Merrill <jason@redhat.com>
289
290 * except.c: Don't include decl.h or obstack.h. Do include
291 tree-inline.h.
292 (build_throw): Destroy temporaries from the thrown
293 expression before calling __cxa_throw. Construct a thrown
294 temporary directly into the exception object.
295 (stabilize_throw_expr): New function.
296 (wrap_cleanups_r): New function.
297 * tree.c (stabilize_expr): New function.
298 * init.c (build_init): New function.
299 * Make-lang.in (cp/except.o): Adjust .h deps.
300
46cfb101
JM
3012002-02-28 Jason Merrill <jason@redhat.com>
302
07f521fc
JM
303 * search.c (lookup_base_r): Don't clear is_non_public just because
304 we found a friendly scope.
305
46cfb101
JM
306 * decl.c (finish_function): Only warn about missing return
307 statement with -Wreturn-type.
308
63e1b1c4
NB
3092002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
310
311 * class.c (build_clone): Update.
312 * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
313 * cp-tree.h (cxx_dup_lang_specific_decl): New.
314 * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
315 (copy_decl): Update.
316 * method.c (make_thunk): Update.
317
f458d1d5
ZW
3182002-02-27 Zack Weinberg <zack@codesourcery.com>
319
320 * decl2.c: Delete traditional-mode-related code copied from
321 the C front end but not used, or used only to permit the
322 compiler to link.
323
3387d36e
CR
3242002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
325
326 PR c++/4093
327 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
328 to void.
329
25c8b645
JJ
3302002-02-22 Jakub Jelinek <jakub@redhat.com>
331
332 PR other/5746
333 * semantics.c (finish_switch_cond): Don't call get_unwidened
334 if error_mark_node.
335
4f2b0fb2
NS
3362002-02-22 Nathan Sidwell <nathan@codesourcery.com>
337
338 PR c++/2645, DR 295
339 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
340 tf_keep_type_decl.
341 (make_typename_type): Use tsubst_flags_t.
342 * decl.c (make_typename_type): Adjust. Return non-artificial
343 TYPE_DECLs, if required.
344 (grokdeclarator): Simplify CVR qualification handling. Allow bad
345 qualifiers on typedef types.
346 * decl2.c (handle_class_head): Adjust make_typename_type call.
347 * parse.y (nested_name_specifier): Likewise.
348 (typename_sub0): Likewise.
349 (typename_sub1): Likewise.
350 * pt.c (convert_template_argument): Adjust make_typename_type
351 return value.
352 (tsubst): Adjust cp_build_qualified_type_real calls.
353 (check_cv_quals_for_unify): Cope with alowing bad qualifications
354 on template type parms.
355 (instantiate_decl): Recheck substitutions to give warnings on bad
356 qualifications.
357 * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
358
8fc2ba41
AH
3592002-02-21 Aldy Hernandez <aldyh@redhat.com>
360
361 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
362
363 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
364 unless DECL_ALWAYS_INLINE.
365
7552da58
JJ
3662002-02-20 Jakub Jelinek <jakub@redhat.com>
367
368 * typeck.c (cp_pointer_int_sum): Renamed from
369 pointer_int_sum, call pointer_int_sum.
370
00fae85d
JJ
3712002-02-20 Jakub Jelinek <jakub@redhat.com>
372
373 * decl.c (duplicate_decls): Return 0 if issued error about
374 redeclaration.
375
6ea868b7
JM
3762002-02-19 Jason Merrill <jason@redhat.com>
377
378 ABI change: Mangle `void (A::*)() const' as
379 M1AKFvvE, not MK1AFvvE.
380 * mangle.c (write_function_type): Write cv-quals for member
381 function type here.
382 (write_pointer_to_member_type): Not here.
383
c02f5e29
JM
3842002-02-18 Jason Merrill <jason@redhat.com>
385
386 * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
387 (do_decl_instantiation): Likewise.
388
624a5800
CR
3892002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
390
391 PR c++/5685
392 * decl.c (duplicate_decls): Make warning unconditional
393 if duplicate default argument declarations are present.
394
f6f8ada3
JJ
3952002-02-17 Jakub Jelinek <jakub@redhat.com>
396
397 * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
398 shortening.
399
8d6e459d
NS
4002002-02-15 Nathan Sidwell <nathan@codesourcery.com>
401
402 * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
403 remove incorrect comment. Move #if 0'd code to common path. Use
404 IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
405
ca4feb54
JM
4062002-02-13 Jason Merrill <jason@redhat.com>
407
57d5032b
JM
408 * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
409 (finish_function): Don't warn if current_function_returns_null.
410
bb26522d
JM
411 * typeck2.c (digest_init): Do handle values of vector type.
412
ca4feb54
JM
413 * typeck2.c (digest_init, process_init_constructor): Treat vectors
414 like arrays.
415
e6b9638b
JM
4162002-02-11 Jason Merrill <jason@redhat.com>
417
418 * parse.y (reserved_declspecs): Don't handle attributes.
419 (reserved_typespecquals): Handle them here.
420 * Make-lang.in (parse.c): Adjust expected conflicts.
421
1cf537c5
JJ
4222002-02-08 Jakub Jelinek <jakub@redhat.com>
423
424 * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
425 instead of compstmt.
426 (compstmt_or_stmtexpr): Renamed from compstmt.
427 (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
428
c2ea3a40
NS
4292002-02-07 Nathan Sidwell <nathan@codesourcery.com>
430
431 Rename instantiate_type_flags to tsubst_flags_t & expand use.
432 * cp-tree.h (instantiate_type_flags): Rename to ...
433 (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
434 add tf_warning flag.
435 (instantiate_type): Adjust prototype.
436 (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
437 do_type_instantiation, cp_build_qualified_type_real): Likewise.
438 cp_build_qualified_type: Adjust.
439 * class.c (instantiate_type): Adjust parameter. Rename itf_* to
440 tf_*.
441 * call.c (standard_conversion): Rename itf_* to tf_*.
442 (reference_binding): Likewise.
443 (convert_like_real): Likewise.
444 * cvt.c (cp_convert_to_pointer): Likewise.
445 (convert_to_reference): Likewise.
446 * decl.c (lookup_namespace_name): Use tf_* flags.
447 (make_typename_type): Likewise.
448 (grokdeclarator): Likewise.
449 * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
450 (coerce_template_template_parms, convert_template_argument,
451 coerce_template_parms, maybe_get_template_decl_from_type_decl,
452 lookup_template_class, tsubst_friend_function, tsubst_friend_class,
453 instantiate_class_template, tsubst_template_arg_vector,
454 tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
455 tsubst_decl, tsubst_arg_types, tsubst_function_type,
456 tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
457 instantiate_template, fn_type_unification,
458 resolve_overloaded_unification, verify_class_unification,
459 unify, get_bindings_real, do_type_instantiation,
460 regenerate_decl_from_template, instantiate_decl,
461 tsubst_initializer_list, tsubst_enum,
462 get_mostly_instantiated_function_type,
463 invalid_nontype_parm_type_p): Likewise.
464 * tree.c (cp_build_qualified_type_real): Likewise.
465 * typeck.c (build_binary_op): Rename itf_* to tf_*.
466 (build_ptrmemfunc): Likewise.
467 (convert_for_assignment): Likewise.
468
d5614afb
NS
4692002-02-07 Nathan Sidwell <nathan@codesourcery.com>
470
471 PR c++/109
472 * decl.c (grokdeclarator): Allow friend declarations from
8d6e459d 473 dependent types.
d5614afb
NS
474 * decl2.c (handle_class_head): Don't push into template parm contexts.
475 * pt.c (push_template_decl_real): Template parm contexts are never
476 being defined.
477
1af6141b
AO
4782002-02-05 Alexandre Oliva <aoliva@redhat.com>
479
480 * class.c: Include target.h.
481 (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
482 BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
483 bit-field layout.
484 * Make-lang.in: Adjust deps.
485
d8a6f584
JM
4862002-02-05 Jason Merrill <jason@redhat.com>
487
488 * error.c (dump_type): Be more helpful about VECTOR_TYPE.
489
6f9fdf4d
JJ
4902002-02-04 Jakub Jelinek <jakub@redhat.com>
491
492 * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
493 (finish_switch_cond): Set SWITCH_TYPE.
494
14691f8d
RH
4952002-02-04 Richard Henderson <rth@redhat.com>
496
497 * method.c (use_thunk): Always initialize the block tree. Reindent.
498 * semantics.c (expand_body): Emit thunks after function, not before.
499
e89a6075
JM
5002002-02-04 Jason Merrill <jason@redhat.com>
501
502 * decl.c (start_function): Call cplus_decl_attributes immediately
503 after grokdeclarator.
504
505 * decl.c (start_function): Combine DECL_RESULT handling code.
506
9780c24f
JM
5072002-02-03 Jason Merrill <jason@redhat.com>
508
509 * xref.c: Remove.
510 * Make-lang.in (CXX_OBJS): Remove cp/xref.o
511 (cp/xref.o): Remove dependencies.
512 * class.c (finish_struct_1, check_methods): Don't call xref fns.
513 (finish_struct_1): Likewise.
514 * friend.c (make_friend_class): Likewise.
515 * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
516 * spew.c (read_process_identifier): Likewise.
517
65f36ac8
JM
5182002-02-01 Jason Merrill <jason@redhat.com>
519
efe49da0
JM
520 PR c++/4872
521 * decl.c (finish_function): Warn about a non-void function with
522 no return statement and no abnormal exit.
523 * cp-tree.h (struct cp_language_function): Add returns_abnormally.
524 (current_function_returns_abnormally): New macro.
525 * call.c (build_call): Set it.
526
f2d9afec
JM
527 * typeck.c (build_component_ref): Always complain about offsetof
528 constructs on non-PODs. Only make it an error for members of
529 virtual bases.
530
65f36ac8
JM
531 * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
532 (dump_function_decl): Always dump parms.
533
534 * decl2.c (finish_static_data_member_decl): Complain about a local
535 class with a static data member.
536
537 PR c++/4286
538 * search.c (lookup_field_1): Don't xref a static data member
539 just because we looked it up.
540
98884b26
JM
5412002-01-31 Jason Merrill <jason@redhat.com>
542
b88c0704
JM
543 * Make-lang.in (parse.c): Handle .output file.
544
a588fe25
JM
545 PR c++/3395
546 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
547 not TREE_TYPE.
548 * semantics.c (finish_class_definition): Adjust.
549
98884b26
JM
550 Allow attributes in parms and casts.
551 * parse.y (named_parm): Don't strip attrs.
552 (declmods): Remove 'attributes' production.
553 (nonempty_cv_qualifiers): Accept attributes.
554 (ATTRIBUTE): Give precedence.
555 * decl.c (groktypename): Handle attributes.
556 (grokparms): Likewise.
557
ffdeea47
JJ
5582002-01-29 Jakub Jelinek <jakub@redhat.com>
559
560 * decl2.c (cxx_decode_option): Pass 0 as last argument to
561 cpp_handle_option.
562 * lang-specs.h: Use cpp_unique_options instead of cpp_options
563 when used together with cc1_options.
564
b8b98c66
NS
5652002-01-29 Nathan Sidwell <nathan@codesourcery.com>
566
567 PR c++/5132
568 * typeck2.c (digest_init): Make sure non-array core type is
569 instantiated.
570 * decl2.c (reparse_absdcl_as_casts): Just store the type in the
571 constructor, rather than build a new one.
572 (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
573 PURPOSE of constructor elts.
574
7437519c
ZW
5752002-01-23 Zack Weinberg <zack@codesourcery.com>
576
577 * Make-lang.in (parse.c): Adjust expected number of
578 shift-reduce conflicts.
579 (decl.o): Depend on diagnostic.h.
580 * decl.c: Include diagnostic.h.
581 (grokdeclarator): Check for null pointer.
582 (finish_function): Don't abort when
583 current_binding_level->parm_flag != 1, if errors have
584 occurred; throw away the statement tree and extra binding
585 levels, and continue.
586 * lex.c (note_list_got_semicolon): Check for null pointer.
587 * method.c (hack_identifier): Just return error_mark_node if
588 value is error_mark_node.
589 * parse.y (primary: TYPEID(type_id)): No need to use
590 TYPE_MAIN_VARIANT here.
591 (handler_seq): Accept an empty list of catch clauses and
592 generate a fake handler block to avoid later crashes.
593 (ansi_raise_identifier): Accept the error token too.
594 * semantics.c (begin_class_definition,
595 finish_class_definition): Check for error_mark_node.
596
c588e52b
ZW
5972002-01-23 Zack Weinberg <zack@codesourcery.com>
598
599 * typeck2.c (friendly_abort): Delete definition.
600 * cp-tree.h (friendly_abort): Don't prototype.
601 (my_friendly_assert): Use fancy_abort.
602
d55ecaa4
CR
6032002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
604
605 * cp-tree.h (my_friendly_abort): Remove.
606
0a01c261
JJ
6072002-01-23 Jakub Jelinek <jakub@redhat.com>
608
609 * spew.c (pending_inlines, pending_inlines_tail,
610 processing_these_inlines): Make static.
611 (mark_pending_inlines): Remove static.
612 (begin_parsing_inclass_inline): If in function, save pi
613 for GC to cp_function_chain->unparsed_inlines instead.
614 (process_next_inline): Likewise.
615 * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
616 (mark_pending_inlines): Add prototype.
617 * decl.c (spew_debug): Remove unused extern.
618 (mark_lang_function): Call mark_pending_inlines.
619
a98facb0
CR
6202002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
621
c588e52b
ZW
622 * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
623 init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
624 semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
a98facb0
CR
625 Change my_fancy_abort() to abort().
626
f893c16e
JM
6272002-01-23 Jason Merrill <jason@redhat.com>
628
608afcc5
JM
629 PR c++/5453
630 * class.c (fixed_type_or_null): Fix thinko.
631
f893c16e
JM
632 PR c++/3331
633 * init.c (resolve_offset_ref): Use build_indirect_ref.
6bc34b14 634
b2115575
JM
635 * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
636
f893c16e
JM
6372002-01-22 Jason Merrill <jason@redhat.com>
638
b5856475
JM
639 * parse.y (function_body): Suppress the block for the outermost
640 curly braces.
641 * decl.c (pushdecl): Don't try to skip it.
642 (begin_function_body): Keep the block we create, not the next one.
643 * init.c (emit_base_init): Don't mess with keep_next_level.
644
6bc34b14
JM
645 * class.c (build_base_path): Tweak formatting.
646
3807621a
NS
6472002-01-19 Nathan Sidwell <nathan@codesourcery.com>
648
649 Fix regression introduced with patch for c++/775
650 * parse.y (class_head_defn): Check for template specializations
651 with a different class-key.
652
cdd2559c
JM
6532002-01-17 Jason Merrill <jason@redhat.com>
654
655 * decl.c (begin_constructor_body, begin_destructor_body): New fns.
656 (begin_function_body): Call them and keep_next_level.
657 * init.c (emit_base_init): Call keep_next_level.
658 * semantics.c (setup_vtbl_ptr): Lose.
659 * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
660 (vtbls_set_up_p): Lose.
661 * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
662 * method.c (do_build_copy_constructor): Likewise.
663 (synthesize_method): Call finish_mem_initializers.
664 * parse.y (nodecls): Likewise.
ad6b1795
JM
665
666 * error.c (dump_type_suffix): Print the exception specs before
667 recursing.
668 (dump_function_decl): Here, too.
669
670 * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
671
195a5def
IR
6722002-01-10 Ira Ruben <ira@apple.com>
673
6bc34b14 674 PR c++/907
195a5def
IR
675 * decl.c (start_method): Handle attrlist.
676
f21ee879
JJ
6772002-01-10 Jakub Jelinek <jakub@redhat.com>
678
679 * decl2.c (max_tinst_depth): Increase default limit to 500.
680
6812002-01-10 Graham Stott <grahams@redhat.com>
8fabd4e2
GS
682
683 * spew.c (YYCHAR): Uppercase macro parameter and add
684 parenthesis.
685 (YYCODE): Likewise.
686 (NAME): Uppercase macro parameter.
687
c3af729a
GS
6882002-01-09 Graham Stott <grahams@redhat.com>
689
6bc34b14 690 * decl.h (grokdeclarator): Wrap long line.
5d8b4235 691
c3af729a
GS
692 * semantics.c (FINISH_COND): Uppercase macro paramaters and
693 add parenthesis.
694
91800747
GS
6952002-01-08 Graham Stott <grahams@redhat.com>
696
697 * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
698 (PALLOC): Uppercase macro parameter and whitespace.
699 (SALLOC): Uppercase macro parameter.
700 (SFREE): Uppercase macros parameter, add parenthese and
701 whitespace.
702 (STREQL): Uppercase macro parameter and whitespace.
703 (STRNEQ): Likewise.
704 (STRLSS): Likewise.
705 (STRLEQ): Likewise.
706 (STRGTR): Likewise.
707 (STRGEQ): Likewise.
708
709 * call.c (convert_like): Add parenthesis and wrap.
710 (convert_like_with_context): Likewise.
711 (ICS_RANK): Whitespace.
712 (NEED_TEMPORARY_P): Remove parenthesis.
713
714 * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
715 whitespace.
716 (VTT_MARKED_BINFO_P): Likewise.
717
718 * decl.c (BINDING_LEVEL): Add parenthesis.
719 (DEF_OPERATOR): Likewise.
720
91800747
GS
721 * mangle.c (MANGLE_TRACE): Add parenthesis.
722 (MANGLE_TRACE_TREE): Likewise.
723 (write_signed_number): Likewise.
724 (write_unsigned_number): Likewise.
725
726 * pt.c (ccat): Uppercase macro parameter.
727 (cat): Likewise
728
729 * search.c (SET_BINFO_ACCESS): Add parenthesis.
730
15eb1e43
JM
7312002-01-07 Jason Merrill <jason@redhat.com>
732
733 * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
734 to pedwarn.
735
6bc34b14 736 PR c++/3536
15eb1e43
JM
737 * method.c (make_thunk): If !flag_weak, give the thunk the
738 function's linkage.
739 (use_thunk): Here, too.
740
b34c06e3
GS
7412002-01-07 Graham Stott <grahams@redhat.com>
742
6bc34b14
JM
743 * error.c: Update copyright date.
744 (print_scope_operator): Add parenthesis.
745 (print_left_paren): Likewise.
746 (print_right_paren): Likewise.
747 (print_left_bracket): Likewise.
748 (print_right_bracket): Likewise.
749 (print_template_argument_list_start): Likewise.
750 (print_template_argument_list_end): Likewise.
751 (print_non_consecutive_character): Likewise.
752 (print_tree_identifier): Likewise.
753 (print_identifier): Likewise.
754 (NEXT_CODE): Uppercase macro parameter.
755 (ident_fndecl): Delete unused.
756 (GLOBAL_THING): Likewise.
b34c06e3 757
98e40e83
GS
7582002-01-06 Graham Stott <grahams@redhat.com>
759
760 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
761 (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
762 (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
763 (RECORD_OR_UNION_TYPE_CHECK): Likewise.
764 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
765 (C_IS_RESERVED_WORD): Uppercase macro parameter.
766 (C_RID_YYCODE) Likewise.
767 (ptrmem_cst): Use rtx.
768 (LOCAL_BINDING_P): Add whitespace.
769 (INHERITED_VALUE_BINDING_P): Likewise.
770 (BINDING_SCOPE): Wrap long line.
771 (BINDING_HAS_LEVEL_P): Remove parenthesis.
772 (BINDING_VALUE): Wrap long line.
773 (BINDING_TYPE): Whitespace.
774 (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
775 (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
c588e52b 776 (IDENTIFIER_NAMESPACE_VALUE): Likewise.
98e40e83
GS
777 (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
778 (same_type_p): Uppercase macro parameters.
779 (same_type_ignoring_top_level_qualifiers_p): Likewise.
780 (OVL_FUNCTION): Wrap long line.
781 (OVL_CHAIN): Whitespace.
b34c06e3 782 (OVL_CURRENT): Add parenthesis and whitespace.
98e40e83
GS
783 (OVL_NEXT): Whitespace.
784 (OVL_USED): Likewise.
785 (IDENTIFIER_TYPE_VALUE): Likewise.
786 (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
787 (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
788 (LANG_ID_FIELD): Whitespace.
789 (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
790 (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
791 (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
792 (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
793 (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
794 (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
795 (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
796 (IDENTIFIER_VIRTUAL_P): Likewise.
797 (IDENTIFIER_OPNAME_P): Likewise.
798 (IDENTIFIER_TYPENAME_P): Remove parenthesis.
799 (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
800 (C_SET_EXP_ORIGINAL_CODE): Likewise.
801 (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
802 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
803 (IS_AGGR_TYPE): Uppercase macro parameter.
804 (CLASS_TYPE_P): Likewise.
805 (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
806 (IS_AGGR_TYPE_2): Whitespace.
807 (TAGGED_TYPE_P): Uppercase macro parameter.
808 (TYPE_BUILT_IN): Whitespace.
809 (TYPE_FOR_JAVA): Likewise.
810 (FUNCTION_ARG_CHAIN): Remove parenthesis.
811 (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
812 (FUNCTION_FIRST_USER_PARAM): Likewise.
813 (PROMOTES_TO_AGGR_TYPE): Whitespace.
814 (DERIVED_FROM_P): Add parenthesis and wrap.
815 (UNIQUELY_DERIVED_FROM_P): Likewise.
816 (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
817 (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
818 (CLASSTYPE_USE_TEMPLATE): Whitespace.
819 (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
820 (TYPE_GETS_DELETE): Add parenthesis.
821 (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
822 (TYPE_HAS_ASSIGN_REF): Likewise,
823 (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
824 (TYPE_HAS_INIT_REF): Likewise.
825 (TYPE_HAS_CONST_INIT_REF): Likewise.
826 (TYPE_BEING_DEFINED): Likewise.
827 (TYPE_LANG_SPECIFIC): Likewise.
828 (CLASSTYPE_RTTI): Likewise.
829 (TYPE_OVERLOADS_CALL_EXPR): Likewise.
830 (TYPE_OVERLOADS_ARRAY_REF): Likewise.
831 (TYPE_OVERLOADS_ARROW): Likewise.
832 (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
833 (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
834 (CLASSTYPE_METHOD_VEC): Likewise.
835 (CLASSTYPE_MARKED_N): Likewise.
836 (CLASSTYPE_MARKED): Likewise.
837 (CLASSTYPE_MARKED2): Likewise.
838 (CLASSTYPE_MARKED3): Likewise.
839 (CLASSTYPE_MARKED4): Likewise.
840 (CLASSTYPE_MARKED5): Likewise.
841 (CLASSTYPE_MARKED6): Likewise.
842 (SET_CLASSTYPE_MARKED): Whitespace.
843 (CLEAR_CLASSTYPE_MARKED): Likewise.
844 (SET_CLASSTYPE_MARKED2): Likewise.
845 (CLEAR_CLASSTYPE_MARKED2): Likewise.
846 (SET_CLASSTYPE_MARKED3): Likewise.
847 (CLEAR_CLASSTYPE_MARKED3): Likewise.
848 (SET_CLASSTYPE_MARKED4): Likewise.
849 (CLEAR_CLASSTYPE_MARKED4): Likewise.
850 (SET_CLASSTYPE_MARKED5): Likewise.
851 (CLEAR_CLASSTYPE_MARKED5): Likewise.
852 (SET_CLASSTYPE_MARKED6): Likewise.
853 (CLEAR_CLASSTYPE_MARKED6): Likewise.
854 (CLASSTYPE_TAGS): Likewise.
855 (CLASSTYPE_VSIZE): Likewise.
856 (CLASSTYPE_VBASECLASSES): Likewise.
857 (CANONICAL_BINFO): Add parenthesis.
858 (CLASSTYPE_SIZE(NODE): Likewise.
859 (CLASSTYPE_SIZE_UNIT): Likewise.
860 (CLASSTYPE_ALIGN(NODE): Likewise.
861 (CLASSTYPE_USER_ALIGN): Likewise.
862 (TYPE_JAVA_INTERFACE): Likewise.
863 (CLASSTYPE_PURE_VIRTUALS): Likewise.
864 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
865 (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
866 (CLASSTYPE_HAS_MUTABLE): Likewise.
867 (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
868 (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
869 (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
870 (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
871 (CLASSTYPE_INTERFACE_ONLY): Likewise.
872 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
873 (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
874 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
875 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
876 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
877 (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
878 (BINFO_UNSHARED_MARKED): Whitespace.
879 (BINFO_MARKED): Whitespace and wrap.
880 (SET_BINFO_MARKED): Likewise.
881 (CLEAR_BINFO_MARKED): Likewise.
882 (BINFO_VTABLE_PATH_MARKED): Likewise.
883 (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
884 (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
885 (BINFO_SUBVTT_INDEX): Remove parenthesis.
886 (BINFO_VPTR_INDEX): Likewise.
887 (BINFO_PRIMARY_BASE_OF): Likewise,
888 (CLASSTYPE_VFIELDS): Whitespace.
889 (VF_DERIVED_VALUE): Wrap long line.
890 (NAMESPACE_LEVEL): Whitespace.
6bc34b14
JM
891 (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
892 (DEFARG_POINTER): Whitespace.
893 (DECL_NEEDED_P): Remove parenthesis.
894 (DECL_LANGUAGE): Whitespace.
895 (SET_DECL_LANGUAGE): Add parenthesis.
896 (DECL_CONSTRUCTOR_P): Whitespace and wrap.
897 (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
898 (DECL_IN_AGGR_P): Whitespace.
899 (DECL_FRIEND_P): Likewise.
900 (DECL_BEFRIENDING_CLASSES): Likewise.
901 (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
902 (DECL_NONCONVERTING_P): Whitespace.
903 (DECL_PURE_VIRTUAL_P): Likewise.
904 (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
905 (DECL_PENDING_INLINE_INFO): Whitespace.
906 (DECL_SORTED_FIELDS): Likewise.
907 (DECL_DEFERRED_FN): Likewise.
908 (DECL_TEMPLATE_INFO): Likewise.
909 (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
910 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
911 (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
912 (TMPL_ARGS_LEVEL): Likewise.
913 (SET_TMPL_ARGS_LEVEL): Likewise.
914 (INNERMOST_TEMPLATE_PARMS): Whitespace.
915 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
916 (INTEGRAL_CODE_P(CODE): Add parenthesis.
917 (CP_INTEGRAL_TYPE_P): Remove parenthesis.
918 (TYPE_HAS_CONSTRUCTOR): Whitespace.
919 (TREE_HAS_CONSTRUCTOR): Likewise.
920 (TYPE_HAS_DESTRUCTOR): Likewise.
921 (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
922 (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
923 (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
924 (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
925 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
926 (TYPE_PTRMEMFUNC_P): Likewise.
927 (TYPE_PTRMEMFUNC_FLAG): Likewise.
928 (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
929 (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
930 (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
931 (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
932 (DECL_ACCESS): Whitespace.
933 (DECL_GLOBAL_CTOR_P): Remove parenthesis.
934 (DECL_GLOBAL_DTOR_P): Likewise.
935 (GLOBAL_INIT_PRIORITY): Likewise.
98e40e83 936 (DECL_TEMPLATE_PARMS): Likewise.
6bc34b14
JM
937 (DECL_TEMPLATE_RESULT): Likewise.
938 (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
939 (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
940 (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
941 (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
942 (PRIMARY_TEMPLATE_P): Add parenthesis.
943 (DECL_USE_TEMPLATE): Whitespace.
944 (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
945 (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
946 (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
947 (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
948 (CALL_DECLARATOR_PARMS): Remove parenthesis.
949 (CALL_DECLARATOR_QUALS): Likewise.
950 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
951 (TEMP_NAME_P): Wrap.
952 (VFIELD_NAME_P): Likewise.
953 (B_SET): Uppercase macro parameters and add parenthesis.
954 (B_CLR): Likewise.
955 (B_TST): Likewise.
956 (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
957 (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
958 (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
959 (same_or_base_type_p): Likewise.
960 (cp_deprecated): Likewise.
98e40e83 961
c28abdf0
RH
9622002-01-05 Richard Henderson <rth@redhat.com>
963
15eb1e43 964 * semantics.c (expand_body): Revert last change.
c28abdf0 965
f11ee281
JM
9662002-01-04 Jason Merrill <jason@redhat.com>
967
195a5def 968 PR c++/4122
f11ee281
JM
969 * class.c (update_vtable_entry_for_fn): Set delta to zero for a
970 lost primary.
971
972 * class.c (build_vtbl_initializer): Check for a lost primary
973 before calculating the vtable entry to throw away.
974
a4200657
JM
9752002-01-02 Jason Merrill <jason@redhat.com>
976
977 * semantics.c (expand_body): Call outlining_inline_function when
978 emitting an inline function out of line.
979
40e593d7
NS
9802002-01-02 Nathan Sidwell <nathan@codesourcery.com>
981
982 PR c++/5116, c++/764 reversion
983 * call.c (build_new_op): Revert the instantiations. They are
984 incorrect.
c588e52b 985
323728aa
NS
9862002-01-02 Nathan Sidwell <nathan@codesourcery.com>
987
988 PR c++/5089
989 * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
990
46c895ac
NS
9912002-01-02 Nathan Sidwell <nathan@codesourcery.com>
992
993 PR c++/3716
994 * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
995 (tsubst, case POINTER_TYPE): Handle pmfs here.
996 (tsubst, case OFFSET_TYPE): Check it is not an offset to
997 reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
998
833aa4c4
NS
9992002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1000
1001 PR c++/35
1002 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
1003 (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
1004 * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
1005 PARM_DECL.
1006 (tsubst_template_parms): Break up loop statements.
1007 (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
1008 parm PARM_DECLs don't get promoted.
1009
18976b21
NS
10102002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1011
1012 PR c++/5123
1013 * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
1014 (build_x_function_call): Cope with a COMPONENT_REF containing a
1015 TEMPLATE_ID_EXPR.
1016
303d1c55
NS
10172002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1018
1019 PR c++/5213
1020 * pt.c (convert_template_argument): Be more careful determining
1021 when RECORD_TYPE templates are or are not templates.
1022
d46a33b3
NS
10232002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1024
1025 PR c++/775
1026 * cp-tree.h (handle_class_head): Adjust prototype.
1027 * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
1028 parameters. Use for all class heads.
1029 * parse.y (named_class_head_sans_basetype, named_class_head,
1030 named_complex_class_head_sans_basetype,
1031 named_class_head_sans_basetype_defn,
1032 unnamed_class_head): Remove.
1033 (class_head, class_head_apparent_template): Recognize class heads
1034 (class_head_decl, class_head_defn): New reductions. Process class
1035 heads.
1036 (structsp): Adjust class definition and class declaration
1037 reductions.
1038 (maybe_base_class_list): Give diagnostic on empty list.
1039
4542128e
NS
10402002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1041
1042 PR c++/4379
1043 * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
1044 single non-static member.
1045 (unary_complex_lvalue): If it cannot be a pointer to member, don't
1046 make it so. Check it is not pointer to reference.
1047
903c6234
NS
10482002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1049
1050 PR c++/5132
1051 * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
1052 are processing a template decl.
1053
477558bf
NS
10542002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1055
1056 PR c++/5116, c++/764
1057 * call.c (build_new_op): Make sure template class operands are
1058 instantiated. Simplify arglist construction.
1059
41f5d4b1
NS
10602001-12-29 Nathan Sidwell <nathan@codesourcery.com>
1061
1062 * call.c (build_user_type_conversion_1): Use my_friendly_assert
1063 rather than if ... abort.
1064 * cvt.c (convert_to_reference): Likewise.
1065 * semantics.c (setup_vtbl_ptr): Likewise.
1066 * pt.c (lookup_template_class): Comment typo.
c588e52b 1067
f3368a90
NS
10682001-12-29 Nathan Sidwell <nathan@codesourcery.com>
1069
1070 PR c++/5125
1071 * pt.c (push_template_decl_real): Make sure DECL has
1072 DECL_LANG_SPECIFIC.
1073
03c9c274
NS
10742001-12-29 Nathan Sidwell <nathan@codesourcery.com>
1075
1076 PR c++/335
1077 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
1078 for non-reference fields.
1079 * typeck.c (require_complete_type): Use resolve_offset_ref).
1080
7d8e8369
NS
10812001-12-26 Nathan Sidwell <nathan@codesourcery.com>
1082
1083 PR c++/196
03c9c274 1084 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
7d8e8369 1085
a56ca899
NS
10862001-12-24 Nathan Sidwell <nathan@codesourcery.com>
1087
1088 PR c++/160
1089 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
1090 up. Don't stabilize_references when initializing a reference.
1091
0b5826ac
KG
10922001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1093
1094 * decl2.c (lang_f_options): Const-ify.
1095
38be19f6
JM
10962001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
1097
1098 * config-lang.in (diff_excludes): Remove.
1099
2e4cf9dc
NS
11002001-12-19 Nathan Sidwell <nathan@codesourcery.com>
1101
1102 PR c++/90
1103 * typeck.c (build_function_call_real): Use original function
1104 expression for errors.
1105
00e4119c
JM
11062001-12-18 Jason Merrill <jason@redhat.com>
1107
195a5def 1108 PR c++/3242
00e4119c
JM
1109 * class.c (add_method): Do compare 'this' quals when trying to match a
1110 used function. Don't defer to another used function.
1111
3ad97789
NS
11122001-12-18 Nathan Sidwell <nathan@codesourcery.com>
1113
1114 * pt.c (instantiate_clone): Remove, fold into ...
1115 (instantiate_template): ... here. Simplify by removing mutual
1116 recursion.
1117 * typeck2.c (build_m_component_ref): Don't cv qualify the function
1118 pointed to by a pointer to function.
1119 * class.c (delete_duplicate_fields_1): Typo.
1120
f21add07
JM
11212001-12-18 Jason Merrill <jason@redhat.com>
1122
1123 C++ ABI change: destroy value arguments in caller.
1124 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
1125 create an extra binding level for the parameters.
1126 * decl.c (store_parm_decls): Don't do parameter cleanups.
1127
ea50ad82
NS
11282001-12-18 Nathan Sidwell <nathan@codesourcery.com>
1129
1130 * call.c (build_new_method_call): Use '%#V'.
1131 * error.c (cv_to_string): Use V parameter to determine padding.
1132
3855d0d1
JM
11332001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1134
1135 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
1136 spellings in messages.
1137
33bd39a2
ZW
11382001-12-17 Zack Weinberg <zack@codesourcery.com>
1139
1140 * cp-tree.h: Delete #defines for cp_error, cp_warning,
1141 cp_pedwarn, and cp_compiler_error.
1142 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
1143 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
1144 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
1145 typeck2.c: Change calls to the above macros to use their
1146 language-independent equivalents: error, warning, pedwarn, and
1147 internal_error respectively.
1148
317c26c3
NB
11492001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
1150
1151 * decl2.c (finish_file): Remove back_end_hook.
1152
aba649ba
JM
11532001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
1154
1155 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
1156 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
1157 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
1158
1737c953
JM
11592001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
1160
1161 * lang-options.h: Use American spelling in messages.
1162
4a90862e
JM
11632001-12-13 Jason Merrill <jason@redhat.com>
1164
ade3dc07
JM
1165 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
1166
1167 Use cleanups to run base and member destructors.
1168 * init.c (push_base_cleanups): New function, split out from...
1169 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
1170 * decl.c (finish_destructor_body): Move vbase destruction code to
1171 push_base_cleanups.
1172 (begin_function_body, finish_function_body): New fns.
1173 (finish_function): Move [cd]tor handling and call_poplevel to
1174 finish_function_body.
1175 (pushdecl): Skip the new level.
1176 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
1177 (setup_vtbl_ptr): Call push_base_cleanups.
1178 * method.c (synthesize_method): Call {begin,end}_function_body.
1179 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
1180 * cp-tree.h: Declare new fns.
1181 * parse.y (function_body, .begin_function_body): New nonterminals.
1182 (fndef, pending_inline, function_try_block): Use function_body.
1183 (ctor_initializer_opt, function_try_block): No longer has a value.
1184 (base_init): Remove .set_base_init token.
1185 (.set_base_init, compstmt_or_error): Remove.
1186 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
1187
4a90862e
JM
1188 * optimize.c (maybe_clone_body): Fix parameter updating.
1189
a0de9d20
JM
11902001-12-12 Jason Merrill <jason@redhat.com>
1191
1192 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
1193 * semantics.c (genrtl_start_function): Don't pass
1194 parms_have_cleanups or push an extra binding level.
1195 (genrtl_finish_function): Lose cleanup_label cruft.
1196
1197 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
1198 (ctor_label): Remove.
1199 * semantics.c (finish_return_stmt): Lose ctor_label support.
1200 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
33bd39a2 1201 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
a0de9d20
JM
1202 dtor_label.
1203
1204 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
1205 check for [cd]tors.
1206 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
1207
1208 * decl.c (finish_function): Check VMS_TARGET, not VMS.
1209
1210 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
1211 (end_cleanup_fn): And poplevel.
1212
1213 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
1214 if we're in a template.
1215
dc5c569a
JJ
12162001-12-12 Jakub Jelinek <jakub@redhat.com>
1217
1218 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
1219 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
1220 THIS_NAME_P): Delete.
1221 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
1222 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
1223 with internal naming scheme.
1224 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
1225
ad1a6d45
NS
12262001-12-12 Nathan Sidwell <nathan@codesourcery.com>
1227
1228 * decl.c (grokdeclarator): Deprecated implicit typename use.
1229
270d8c65
NS
12302001-12-11 Nathan Sidwell <nathan@codesourcery.com>
1231
1232 PR g++/51
1233 * parse.y (frob_specs): Indicate it is a language linkage which
1234 contained the extern.
1235 * decl.c (grokdeclarator): Allow extern language linkage with
1236 other specifiers.
1237
9aaceb4b
NS
12382001-12-10 Nathan Sidwell <nathan@codesourcery.com>
1239
1240 PR g++/72
1241 * decl.c (add_binding): Don't reject duplicate typedefs involving
1242 template parameters.
1243
a23c9413
NB
12442001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
1245
1246 * parse.y, semantics.c: Similarly.
1247
9aaceb4b 12482001-12-09 Nathan Sidwell <nathan@codesourcery.com>
271e6f02
NS
1249
1250 PR g++/87
1251 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
1252 (copy_args_p): Rename to ...
1253 (copy_fn_p): ... here.
1254 (grok_special_member_properties): New function.
1255 (grok_op_properties): Lose VIRTUALP parameter.
1256 (copy_assignment_arg_p): Remove.
1257 * call.c (build_over_call): Use copy_fn_p.
1258 * decl.c (grokfndecl): Reformat. Adjust call to
1259 grok_op_properties.
1260 (copy_args_p): Rename to ...
1261 (copy_fn_p): ... here. Reject template functions. Check for pass
1262 by value.
1263 (grok_special_member_properties): Remember special functions.
1264 (grok_ctor_properties): Don't remember them here, just check.
1265 (grok_op_properties): Likewise.
1266 (start_method): Call grok_special_member_properties.
1267 * decl2.c (grokfield): Likewise.
1268 (copy_assignment_arg_p): Remove.
1269 (grok_function_init): Don't remember abstract assignment here.
1270 * pt.c (instantiate_class_template): Call
1271 grok_special_member_properties.
1272 (tsubst_decl): Adjust grok_op_properties call.
1273
bdd8737f
AH
12742001-12-08 Aldy Hernandez <aldyh@redhat.com>
1275
33bd39a2
ZW
1276 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
1277 RID_TYPES_COMPATIBLE_P.
bdd8737f 1278
46af705a
JDA
12792001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1280
1281 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
1282 call to build_aggr_init.
1283 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
1284
cb97d97d
NB
12852001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
1286
1287 * parse.y: Replace uses of the string non-terminal with STRING.
1288 Don't perform string concatentaion here.
1289 (string): Remove non-terminal.
1290 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
1291
742a37d5
JM
12922001-12-05 Jason Merrill <jason@redhat.com>
1293
1294 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
1295 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
1296 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
1297 * pt.c (push_tinst_level): No longer static.
1298 * cp-tree.h: Declare them.
1299
1300 * init.c (resolve_offset_ref): Don't check access for the base
1301 conversion to access a FIELD_DECL.
1302
1303 * cp-tree.h (TYPE_REFFN_P): New macro.
1304 * decl.c (bad_specifiers): Check it, too.
1305
1306 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
1307 on the __*_type_info type if we haven't seen a definition.
1308
26f943fd
NB
13092001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
1310
1311 * decl.c: Include c-common.h.
1312 (shadow_warning): Move to c-common.c.
1313
37a08a29
RK
1314Wed Dec 5 17:00:49 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1315
1316 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
1317
9471d3e2
NS
13182001-12-04 Nathan Sidwell <nathan@codesourcery.com>
1319
1320 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
1321
713ccd0c
NS
13222001-12-04 Nathan Sidwell <nathan@codesourcery.com>
1323
1324 PR g++/164
1325 * init.c (sort_base_init): Allow binfos to be directly specified.
1326 * method.c (do_build_copy_constructor): Explicitly convert to the
1327 base instance.
1328 (do_build_assign_ref): Likewise.
1329
591382c4
HPN
13302001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
1331
1332 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
1333 declaration and initialization.
1334
c725bd79
NB
13352001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
1336
1337 * typeck2.c: Remove leading capital from diagnostic messages, as
1338 per GNU coding standards.
1339
a5d7c4a3
MK
13402001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
1341
1342 PR c++/3394
9fe038e8
HPN
1343 * decl.c (xref_basetypes): Handle attributes between
1344 'class' and name.
a5d7c4a3 1345
f1880e13
NS
13462001-12-03 Nathan Sidwell <nathan@codesourcery.com>
1347
1348 PR g++/3381
1349 * parse.y (named_complex_class_head_sans_basetype): Add new
1350 reduction.
1351 * Make-lang.in (parse.c): Adjust expected conflict count.
1352
ff668506
JM
13532001-12-03 Jason Merrill <jason@redhat.com>
1354
1355 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
1356 immediate binfos for our virtual bases.
1357
1f978f5f
NB
13582001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
1359
1360 * call.c (build_java_interface_fn_ref): Similarly.
1361 * except.c (is_admissible_throw_operand): Similarly.
1362 * init.c (build_java_class_ref): Similarly.
1363 * xref.c (open_xref_file): Similarly.
1364
357351e5
NB
13652001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
1366
1367 * class.c (finish_struct): Remove trailing periods from messages.
1368 * decl.c (check_tag_decl): Similarly.
1369 * lex.c (cxx_set_yydebug): Similarly.
1370 * typeck2.c (friendly_abort): Similarly.
1371
998979e6
MM
13722001-11-29 Mark Mitchell <mark@codesourcery.com>
1373
1374 PR c++/3048
1375 * cp-tree.h (ovl_member): Remove.
33bd39a2 1376 * decl2.c (merge_functions): Handle extern "C" functions
998979e6
MM
1377 specially.
1378 * tree.c (ovl_member): Remove.
1379
7d5b8b11
MM
13802001-11-29 Mark Mitchell <mark@codesourcery.com>
1381
1382 PR c++/4842
1383 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
1384 FUNCTION_DECL, as input.
1385 (mark_overriders): Remove.
1386 (warn_hidden): Rework for the new ABI.
1387
b67db529
MM
13882001-11-29 Mark Mitchell <mark@codesourcery.com>
1389
1390 PR c++/3471
1391 * call.c (convert_like_real): Do not build additional temporaries
1392 for rvalues of class type.
1393
2db1ab2d
NS
13942001-11-28 Nathan Sidwell <nathan@codesourcery.com>
1395
1396 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
1397 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
1398 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
1399 (DERIVED_FROM_P): Likewise.
1400 (enum base_access): Renumber, add ba_quiet bit mask.
1401 (get_binfo): Remove.
1402 (get_base_distance): Remove.
1403 (binfo_value): Remove.
1404 (ACCESSIBLY_DERIVED_FROM_P): Remove.
1405 * call.c (standard_conversion): Use lookup_base.
1406 * class.c (strictly_overrides): Likewise.
1407 (layout_virtual_bases): Likewise.
1408 (warn_about_ambiguous_direct_bases): Likewise.
1409 (is_base_of_enclosing_class): Likewise.
1410 (add_vcall_offset_vtbl_entries_1): Likewise.
1411 * cvt.c (build_up_reference): Adjust comment.
1412 * init.c (build_member_call): Reformat.
1413 * search.c (get_binfo): Remove.
1414 (get_base_distance_recursive): Remove.
1415 (get_base_distance): Remove.
1416 (lookup_base_r): Tweak.
1417 (lookup_base): Add ba_quiet control. Complete the types here.
1418 (covariant_return_p): Use lookup_base.
1419 * tree.c (binfo_value): Remove.
1420 (maybe_dummy_object): Use lookup_base.
1421 * typeck.c (build_static_cast): Use lookup_base.
1422 (get_delta_difference): Likewise.
1423 * typeck2.c (binfo_or_else): Use lookup_base.
1424 (build_scoped_ref): Add back error_mark_check.
1425 (build_m_component_ref): Use lookup_base.
1426
d3945f0a
JM
14272001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
1428
1429 * Make-lang.in (c++.generated-manpages): New dummy target.
1430
ac79cd5a
RK
1431Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1432
1433 * Make-lang.in (cp-lang.o): Depends on c-common.h.
1434 * cp-lang.c (c-common.h): Include.
1435 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
1436 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
1437 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
1438
4d6baafa
NB
14392001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
1440
1441 * decl2.c (c_language): Move to c-common.c.
1442 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
1443 functions.
1444 (cxx_init): Update.
1445
5b0c5896
JM
14462001-11-26 Jason Merrill <jason@redhat.com>
1447
1448 * call.c (joust): Remove COND_EXPR hack.
1449
4bdd26e6
AH
14502001-11-25 Aldy Hernandez <aldyh@redhat.com>
1451
195a5def 1452 * search.c (lookup_base_r): Declare bk in variable declaration
4bdd26e6 1453 space.
33bd39a2 1454
338d90b8
NS
14552001-11-25 Nathan Sidwell <nathan@codesourcery.com>
1456
1457 PR g++/3145
1458 * class.c (build_vbase_pointer): Remove.
1459 (build_vbase_path): Remove.
1460 (build_base_path): New function.
1461 * cp-tree.h (base_access, base_kind): New enumerations.
1462 (build_base_path): Declare.
1463 (convert_pointer_to_real): Remove.
1464 (convert_pointer_to): Remove.
1465 (lookup_base): Declare.
1466 (convert_pointer_to_vbase): Remove.
1467 * call.c (build_scoped_method_call): Use lookup_base &
1468 build_base_path instead of convert_pointer_to_real,
1469 get_base_distance & get_binfo.
1470 (build_over_call): Likewise.
1471 * cvt.c (cp_convert_to_pointer): Likewise.
1472 (convert_to_pointer_force): Likewise.
1473 (build_up_reference): Likewise.
1474 (convert_pointer_to_real): Remove.
1475 (convert_pointer_to): Remove.
1476 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
1477 instead of convert_pointer_to_vbase & build_vbase_path.
1478 (emit_base_init): Use build_base_path instead of
1479 convert_pointer_to_real.
1480 (expand_virtual_init): Lose unrequired conversions.
1481 (resolve_offset_ref): Use lookup_base and build_base_path
1482 instead of convert_pointer_to.
1483 * rtti.c (build_dynamic_cast_1): Use lookup_base &
1484 build_base_path instead of get_base_distance & build_vbase_path.
1485 * search.c (get_vbase_1): Remove.
1486 (get_vbase): Remove.
1487 (convert_pointer_to_vbase): Remove.
07f521fc 1488 (lookup_base_r): New function.
338d90b8
NS
1489 (lookup_base): New function.
1490 * typeck.c (require_complete_type): Use lookup_base &
1491 build_base_path instead of convert_pointer_to.
1492 (build_component_ref): Likewise.
1493 (build_x_function_call): Likewise.
1494 (get_member_function_from_ptrfunc): Likewise.
1495 (build_component_addr): Likewise.
1496 * typeck2.c (build_scoped_ref): Likewise.
1497
89d684bb
BM
14982001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1499
1500 * cp-tree.h (CP_TYPE_QUALS): Removed.
1501 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
33bd39a2 1502 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
89d684bb 1503 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
33bd39a2 1504 * dump.c (cp_dump_tree): Use void* dump_info argument to match
89d684bb
BM
1505 lang-hooks prototype.
1506 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
1507 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
1508 CP_TYPE_QUALS changed to cp_type_quals.
1509 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
1510 (CXX_C_OBJS): Remove c-dump.o.
1511
12eb9f93 15122001-11-21 Mark Mitchell <mark@codesourcery.com>
2d2e8123
MM
1513
1514 PR c++/3637
12eb9f93
MM
1515 * pt.c (lookup_template_class): Ensure that all specializations
1516 are registered on the list corresponding to the most general
1517 template.
1518
15192001-11-20 Mark Mitchell <mark@codesourcery.com>
1520
2d2e8123 1521 * call.c (non_reference): Add documentation.
33bd39a2 1522 (convert_class_to_reference): Do not strip reference types
2d2e8123
MM
1523 from conversion operators.
1524 (maybe_handle_ref_bind): Simplify.
1525 (compare_ics): Correct handling of references.
1526
78a40378
MM
15272001-11-19 John Wilkinson <johnw@research.att.com>
1528
1529 * dump.c (dump_op): New function.
1530 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
1531 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
1532 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
33bd39a2 1533
78a40378
MM
15342001-11-19 Mark Mitchell <mark@codesourcery.com>
1535
1536 PR4629
1537 * semantics.c (finish_sizeof): Make sure that expression created
1538 while processing a template do not have a type.
1539 (finish_alignof): Likewise.
1540 * typeck.c (c_sizeof): Likewise.
1541 (expr_sizeof): Likewise.
1542
22703ccc
NB
15432001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
1544
1545 * lex.c (cxx_finish): Call c_common_finish.
1546 (finish_parse): Remove.
1547
b3faacfd
KL
15482001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1549
1550 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
1551 when displaying error message about missing array bounds.
1552
873ff987
KL
15532001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1554
1555 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
1556 CONST_CAST_EXPR.
1557 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
1558
08f3a861
NB
15592001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
1560
1561 * cp-tree.h (print_class_statistics): Restore.
1562
8a2b77e7
JM
15632001-11-15 Jason Merrill <jason@redhat.com>
1564
3b1a4132
JM
1565 * method.c (use_thunk): Don't emit debugging information for thunks.
1566
8a2b77e7
JM
1567 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
1568 * decl.c (make_typename_type): Handle getting a class template.
1569 * search.c (lookup_field_r): A class template is good enough for
1570 want_type.
1571
1572 * call.c (convert_like_real): Only use cp_convert for the bad part.
1573 (standard_conversion): Also allow bad int->enum.
1574 * typeck.c (ptr_reasonably_similar): Also allow functions to
1575 interconvert. Pointers to same-size integers are reasonably
1576 similar.
1577
1578 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
1579 give it void type.
1580
36a68fe7
NS
15812001-11-15 Nathan Sidwell <nathan@codesourcery.com>
1582
1583 PR g++/3154
1584 * init.c (sort_base_init): Remove unreachable code.
1585 (expand_member_init): Adjust comment to reflect reality. Simplify
1586 and remove unreachable code.
1587
f5e99456
NB
15882001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1589
1590 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
1591 (cxx_init): Update prototype.
1592 * decl.c (init_decl_processing): Rename. Move null node init
1593 to its creation time.
1594 * lex.c (cxx_init_options): Update.
1595 (cxx_init): Combine with old init_parse; also call
1596 cxx_init_decl_processing.
1597
fe5b6c1c
RS
15982001-11-14 Richard Sandiford <rsandifo@redhat.com>
1599
8a2b77e7
JM
1600 * decl.c (check_initializer): Try to complete the type of an
1601 array element before checking whether it's complete. Don't
1602 complain about arrays with complete element types but an
1603 unknown size.
1604 (cp_finish_decl): Build the hierarchical constructor before
1605 calling maybe_deduce_size_from_array_init.
fe5b6c1c 1606
77bd67cb
JM
16072001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
1608
1609 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
1610
b02922a4
NS
16112001-11-13 Nathan Sidwell <nathan@codesourcery.com>
1612
1613 PR g++/4206
1614 * parse.y (already_scoped_stmt): Remove.
1615 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
1616
abfc1ef6
L
16172001-11-12 H.J. Lu <hjl@gnu.org>
1618
195a5def 1619 * cvt.c (ocp_convert): Don't warn the address of a weak
abfc1ef6
L
1620 function is always `true'.
1621
5d69f816
NB
16222001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
1623
1624 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
1625 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
1626 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
1627 * cp-tree.h (print_class_statistics): Remove.
1628 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
1629 cxx_print_identifier, cxx_set_yydebug): New.
1630 * lex.c (set_yydebug): Rename c_set_yydebug.
1631 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
1632 lang_print_xnode): Rename.
1633 * tree.c (print_lang_statistics): Rename.
1634
4fdc14ca
KG
16352001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1636
1637 * class.c (dump_array): Fix format specifier warning.
1638
3ac88239
NB
16392001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
1640
1641 * cp-lang.c (LANG_HOOKS_NAME): Override.
1642 (struct lang_hooks): Constify.
1643 * lex.c (cxx_init_options): Update.
1644 (lang_identify): Remove.
33bd39a2 1645 * parse.y (language_string): Remove.
3ac88239 1646
b21d216c
AF
16472001-11-08 Andreas Franck <afranck@gmx.de>
1648
1649 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
1650 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
1651 suggested by autoconf.
1652 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
1653 (c++.install-common): Use the transformed target alias names.
1654
d23c55c2
NB
16552001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1656
1657 * Make-lang.in: Update.
1658 * cp-lang.c: Include langhooks-def.h.
1659
2a2b1d56
KL
16602001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1661
1662 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
1663
76648a8b
KG
16642001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1665
1666 * lex.c (copy_lang_type): Add static prototype.
1667
fccef71e
KL
16682001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1669
1670 * pt.c (unify): Handle SCOPE_REF.
1671
19989812
JJ
16722001-11-01 Jakub Jelinek <jakub@redhat.com>
1673
1674 * tree.c (cp_copy_res_decl_for_inlining): Adjust
1675 DECL_ABSTRACT_ORIGIN for the return variable.
1676
5b7874aa
ZW
16772001-10-31 Zack Weinberg <zack@codesourcery.com>
1678
1679 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
1680
306ef644
JM
16812001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
1682
1683 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
1684 semantics.c, spew.c: Fix spelling errors.
1685
76543000
KL
16862001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1687
1688 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
1689
37207ee7
ZW
16902001-10-25 Zack Weinberg <zack@codesourcery.com>
1691
1692 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
1693 pop_everything.
1694
8ac61af7
RK
1695Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1696
1697 * cp-lang.c (cxx_get_alias_set): New function.
1698 Point LANG_HOOKS_GET_ALIAS_SET to it.
1699
f1e09fa2 17002001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
b8c6534b
KL
1701
1702 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
1703 * cp-tree.h (make_unbound_class_template): Prototype new function.
1704 * decl.c (make_unbound_class_template): New function.
1705 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
1706 * error.c (dump_type): Likewise.
1707 * mangle.c (write_type): Likewise.
1708 * parse.y (template_parm): Likewise.
1709 (template_argument): Use make_unbound_class_template.
1710 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
1711 (tsubst): Likewise.
1712 (tsubst_copy): Likewise.
1713 (unify): Likewise.
1714 * tree.c (walk_tree): Likewise.
1715 * typeck.c (comptypes): Likewise.
1716
0df6c2c7
KG
17172001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1718
1719 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
1720 extra calls into fewer ones.
1721
97055d5c
AO
17222001-10-18 Alexandre Oliva <aoliva@redhat.com>
1723
1724 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
1725 Warn when merging inline with attribute noinline.
1726 (start_decl, start_function): Warn if inline and attribute
1727 noinline appear in the same declaration.
1728
b5823a44
L
17292001-10-16 H.J. Lu <hjl@gnu.org>
1730
1731 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
1732 for tree checking disabled.
1733
dc8ad298
HPN
17342001-10-16 Hans-Peter Nilsson <hp@axis.com>
1735
1736 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
1737 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
1738
d9f818d9
RS
17392001-10-15 Richard Sandiford <rsandifo@redhat.com>
1740
1741 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
1742 (unify): Only handle MINUS_EXPR specially if the above flag is set
1743 and the subtracted constant is 1. Clear the flag on recursive calls.
1744 Set it when unifying the maximum value in an INTEGER_TYPE's range.
1745
e1be26f4
RS
17462001-10-15 Richard Sandiford <rsandifo@redhat.com>
1747
1748 * decl.c (bad_specifiers): Don't allow exception specifications
1749 on any typedefs.
1750
a5da89c6
NB
17512001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
1752
1753 * cp/lex.c (init_cp_pragma): Similarly.
1754
4f96ff63
KL
17552001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1756
1757 * pt.c (lookup_template_class): Build complete template arguments
1758 for BOUND_TEMPLATE_TEMPLATE_PARM.
1759
11e74ea6
KL
17602001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1761
1762 * cp-tree.h (TYPE_BINFO): Update comment.
1763 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
1764 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
1765 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
1766 (copy_type): Prototype new function.
1767 * lex.c (copy_lang_decl): Gather tree node statistics.
1768 (copy_lang_type): New function.
1769 (copy_type): Likewise.
1770 (cp_make_lang_type): Create lang_type for
1771 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
1772 and BOUND_TEMPLATE_TEMPLATE_PARM.
1773 * pt.c (tsubst): Use copy_type instead of copy_node.
1774 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
1775
f5d47abd
KL
17762001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1777
1778 * pt.c (determine_specialization): Ignore functions without
1779 DECL_TEMPLATE_INFO.
1780
e60505a5
NS
17812001-10-12 Nathan Sidwell <nathan@codesourcery.com>
1782
1783 PR g++/4476
1784 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
1785
6f32162a
JM
17862001-10-11 Jason Merrill <jason_merrill@redhat.com>
1787
1788 * typeck2.c (store_init_value): Don't re-digest a bracketed
1789 initializer.
1790
1791 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
1792 ANON_AGGR_TYPE_P.
1793
4a8d0c9c
RH
17942001-10-11 Richard Henderson <rth@redhat.com>
1795
1796 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
1797 of an asm statement.
1798 (build_vtbl_ref_1): Split out from build_vtbl_ref.
1799 (build_vfn_ref): Use it to handle vtable descriptors before
1800 calling build_vtable_entry_ref.
1801 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
1802
84b72302
RH
18032001-10-10 Richard Henderson <rth@redhat.com>
1804
37207ee7 1805 * parse.y (asm_operand): Allow named operands.
84b72302
RH
1806 * semantics.c (finish_asm_stmt): Tweek for changed location
1807 of the operand constrant.
1808
48c8b0be 18092001-10-09 Jason Merrill <jason_merrill@redhat.com>
72a08131
JM
1810
1811 * call.c (standard_conversion): Add bad conversion between
1812 integers and pointers.
1813 (convert_like_real): Don't use convert_for_initialization for bad
1814 conversions; complain here and use cp_convert.
1815 (build_over_call): Don't handle bad conversions specially.
1816 (perform_implicit_conversion): Allow bad conversions.
1817 (can_convert_arg_bad): New fn.
1818 * cp-tree.h: Declare it.
1819 * typeck.c (convert_for_assignment): Use it.
1820 (ptr_reasonably_similar): Any target type is similar to void.
1821
19551f29
AO
18222001-10-08 Alexandre Oliva <aoliva@redhat.com>
1823
1824 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
1825 (cp/cp-lang.o): New rule.
1826 * cp-tree.h: Declare hooks.
1827 * tree.c: Make hooks non-static.
1828 (init_tree): Don't initialize hooks here.
1829 * lex.c: Likewise. Move definition of lang_hooks to...
1830 * cp-lang.c: ... new file.
1831
31ed8fea
RH
18322001-10-08 Richard Henderson <rth@redhat.com>
1833
1834 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
1835 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
1836
8b60264b
KG
18372001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1838
1839 * class.c (build_vtable_entry_ref): Const-ify.
1840 * decl.c (predefined_identifier,
37207ee7 1841 initialize_predefined_identifiers): Likewise.
8b60264b
KG
1842 * init.c (build_new_1): Likewise.
1843 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
1844 Likewise.
1845
bc4c7159
AO
18462001-10-05 Alexandre Oliva <aoliva@redhat.com>
1847
1848 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
1849 (INSNS_PER_STMT): Likewise.
1850 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
1851 (copy_body, initialize_inlined_parameters): Likewise.
1852 (declare_return_variable, inlinable_function_p): Likewise.
1853 (expand_call_inline, expand_calls_inline): Likewise.
1854 (optimize_inline_calls, clone_body): Likewise.
1855 * tree.c (walk_tree): Moved to ../tree-inline.c.
1856 (walk_tree_without_duplicates): Likewise.
1857 (copy_tree_r, remap_save_expr): Likewise.
1858
25af8512
AO
18592001-10-04 Alexandre Oliva <aoliva@redhat.com>
1860
1861 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
1862 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
1863 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
1864 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
1865 (flag_inline_trees): Moved declaration to ../tree-inline.h.
1866 (walk_tree): Moved declaration to ../tree-inline.h.
1867 (walk_tree_without_duplicates, copy_tree_r): Likewise.
1868 (remap_save_expr): Likewise.
1869 * decl.c: Include tree-inline.h.
1870 (lang_mark_tree): Don't mark inlined_fns.
1871 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
1872 * optimize.c: Include tree-inline.h.
1873 (optimize_inline_calls): Move declaration to ../tree.h, as
1874 non-static.
1875 (remap_decl): Use language-independent constructs and hooks.
1876 (remap_block, copy_body_r, declare_return_variable): Likewise.
1877 (inlinable_function_p): Likewise. Don't test for
1878 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
1879 no longer language-specific.
1880 (optimize_inline_calls): Likewise. Make it non-static. Moved
1881 call of dump_function to...
1882 (optimize_function): Here...
1883 (clone_body): New function, extracted from...
1884 (maybe_clone_body): ... here. Build decl_map locally and pass
1885 it on to clone_body.
1886 * pt.c, semantics.c: Include tree-inline.h.
1887 * tree.c: Likewise.
1888 (cp_walk_subtrees): New language-specific hook for tree inlining.
1889 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
1890 cp_is_overload_p, cp_auto_var_in_fn_p,
1891 cp_copy_res_decl_for_inlining): Likewise.
1892 (walk_tree): Move language-specific constructs into...
1893 (cp_walk_subtrees): this new function.
1894 (copy_tree_r): Use language-independent constructs and hooks.
1895 (init_tree): Initialize tree inlining hooks.
1896 (remap_save_expr): Adjust prototype so that the declaration
1897 does not require the definition of splay_tree.
1898
6a4af81f
JDA
18992001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1900
1901 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
1902 to build the declaration instead of the declaration itself.
1903
0caee1c6
JM
19042001-10-02 Jason Merrill <jason_merrill@redhat.com>
1905
48c8b0be
JM
1906 * decl2.c (cxx_decode_option): Add 'else'.
1907
0caee1c6
JM
1908 * spew.c (end_input): No longer static.
1909 * cp-tree.h: Declare it.
1910 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
1911
80a497e4
JM
19122001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
1913
1914 * call.c (build_over_call), typeck.c (build_function_call_real):
1915 Pass type attributes to check_function_format rather than name or
1916 assembler name. Don't require there to be a name or assembler
1917 name to check formats.
1918
6431177a
JM
19192001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
1920
1921 * decl.c (init_decl_processing): Don't call
1922 init_function_format_info. Initialize lang_attribute_table
1923 earlier.
1924 (builtin_function): Call decl_attributes.
1925 (insert_default_attributes): New.
1926
55b3d665
JM
19272001-10-01 Jason Merrill <jason_merrill@redhat.com>
1928
1929 * decl.c (grokdeclarator): Copy array typedef handling from C
1930 frontend.
1931
1932 * decl.c (grokdeclarator): Copy too-large array handling from C
1933 frontend.
1934
9f57ca19
AO
19352001-09-29 Alexandre Oliva <aoliva@redhat.com>
1936
1937 * config-lang.in (target_libs): Added target-gperf, so that we
1938 don't try to build it if C++ is disabled.
1939
749ced52
ZW
19402001-09-23 Zack Weinberg <zack@codesourcery.com>
1941
1942 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
1943 (cp/errfn.o): Delete rule.
1944 (cp/error.o): Depend on flags.h.
1945 * errfn.c: Delete file.
1946 * cp-tree.h: Declare warn_deprecated. Remove definitions of
1947 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
1948 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
1949 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
1950 internal_error respectively. Make cp_deprecated into a macro.
1951 Don't define cp_printer typedef or declare cp_printers.
1952 * error.c: Include flags.h.
1953 Delete: struct tree_formatting_info, print_function_argument_list,
1954 print_declaration, print_expression, print_function_declaration,
1955 print_function_parameter, print_type_id, print_cv_qualifier_seq,
1956 print_type_specifier_seq, print_simple_type_specifier,
1957 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
1958 print_parameter_declaration_clause, print_exception_specification,
1959 print_nested_name_specifier, and definition of cp_printers.
1960 (locate_error): New function.
1961 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
1962 rewritten in terms of locate_error and diagnostic.c.
1963 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
1964 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
1965 (init_error): Adjust to match.
1966
bb9f8221
RK
1967Sat Sep 22 09:15:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1968
1969 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
1970
67231816
RH
19712001-09-21 Richard Henderson <rth@redhat.com>
1972
1973 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
1974 (build_vtbl_initializer): Likewise.
1975 (build_vfn_ref): New.
1976 * cp-tree.h: Declare it.
1977 * call.c (build_over_call): Use it.
1978 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
1979 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
1980
c9574c9f
R
1981Fri Sep 21 08:16:19 2001 J"orn Rennecke <amylaar@redhat.com>
1982
1983 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
1984
91d231cb
JM
19852001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
1986
1987 Table-driven attributes.
1988 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
1989 * decl2.c (cplus_decl_attributes): Only take one attributes
1990 parameter.
1991 * cp-tree.c (cplus_decl_attributes): Update prototype.
1992 * class.c (finish_struct), decl.c (start_decl, start_function),
1993 decl2.c (grokfield), friend.c (do_friend), parse.y
1994 (parse_bitfield): Update calls to cplus_decl_attributes.
1995 * decl.c (grokdeclarator): Take a pointer to a single ordinary
1996 attribute list.
1997 * decl.h (grokdeclarator): Update prototype.
1998 * decl2.c (grokfield): Take a single ordinary attribute list.
1999 * friend.c (do_friend): Likewise.
2000 * decl.c (shadow_tag, groktypename, start_decl,
2001 start_handler_parms, grokdeclarator, grokparms, start_function,
2002 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
2003 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
2004 (process_template_parm, do_decl_instantiation): Pass single
2005 ordinary attribute lists around.
2006 * decl.c (grokdeclarator): Correct handling of nested attributes.
2007 Revert the patch
2008 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
2009 * decl.c (grokdeclarator): Embedded attrs bind to the right,
2010 not the left.
2011 .
2012 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
2013 (cp_attribute_table): Declare.
2014 * decl.c (valid_lang_attribute): Don't define.
2015 (lang_attribute_table): Define.
2016 (init_decl_processing): Initialize lang_attribute_table instead of
2017 valid_lang_attribute.
2018 * tree.c (cp_valid_lang_attribute): Remove.
2019 (handle_java_interface_attribute, handle_com_interface_attribute,
2020 handle_init_priority_attribute): New functions.
2021 (cp_attribute_table): New array.
2022 * decl2.c (import_export_class): Don't use
2023 targetm.valid_type_attribute.
2024
a1bda5f1
GDR
20252001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2026
e6b9638b
JM
2027 * Make-lang.in (cp/error.o): Depend on real.h
2028 * error.c: #include "real.h"
a1bda5f1 2029
cb6edbcb
KG
20302001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2031
2032 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
2033 xmalloc/strcpy/strcat.
2034
83182544
KG
20352001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2036
2037 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
2038 Const-ification.
2039 * pt.c (tsubst_decl): Likewise.
2040
40008eda
KG
20412001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2042
2043 * decl2.c (lang_f_options): Const-ification.
2044 * lex.c (cplus_tree_code_name): Likewise.
2045 * spew.c (yyerror): Likewise.
2046
39e78d8b
NS
20472001-09-06 Nathan Sidwell <nathan@codesourcery.com>
2048
2049 PR c++/3986
2050 * class.c (force_canonical_binfo_r): Check & move an indirect
2051 primary base first.
2052 (force_canonical_binfo): Check that it's not already
2053 canonical.
2054 (mark_primary_virtual_base): Remove BINFO parameter.
2055 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
2056
6d0a3f67
NS
20572001-09-06 Nathan Sidwell <nathan@codesourcery.com>
2058
2059 Remove TYPE_NONCOPIED_PARTS.
2060 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
2061 CLASSTYPE_PURE_VIRTUALS.
2062 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
2063 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
72a08131 2064 (layout_class_type): Don't call fixup_inline_methods here ...
6d0a3f67
NS
2065 (finish_struct_1): ... call it here.
2066
4f8e1232
MM
20672001-09-04 Mark Mitchell <mark@codesourcery.com>
2068
2069 * decl.c (duplicate_decls): Remove code deadling with
2070 DECL_SAVED_INSNS.
2071 * decl2.c (finish_file): Likewise.
2072 * pt.c (instantiate_decl): Likewise.
2073 * semantics.c (expand_body): Don't defer local functions if
2074 they wouldn't be deferred for some other reason. Don't
2075 generate RTL for functions that will not be emitted.
2076 (genrtl_start_function): Remove code deadling with
2077 DECL_SAVED_INSNS.
2078 (genrtl_finish_function): Likewise.
2079
da86f08f
NS
20802001-09-04 Nathan Sidwell <nathan@codesourcery.com>
2081
2082 PR c++/4203
2083 * call.c (build_over_call): Do not optimize any empty base
2084 construction.
2085
38066e83
KL
20862001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2087
2088 * error.c (dump_template_decl): Output template parameters
2089 together with their specifiers.
2090 Output `class' prefix for template template parameter.
2091 (dump_decl): Fix formatting.
2092
598e9ba5 20932001-08-30 Kurt Garloff <garloff@suse.de>
749ced52 2094
598e9ba5
KG
2095 * optimize.c (inlinable_function_p): Allow only smaller single
2096 functions. Halve inline limit after reaching recursive limit.
749ced52 2097
f232e4a5
JR
20982001-08-30 Joern Rennecke <amylaar@redhat.com>
2099 Jason Merrill <jason_merrill@redhat.com>
2100
2101 * class.c (build_vtable_entry_ref): Subtract in char*, not
2102 ptrdiff_t.
2103
0213a355
JM
21042001-08-23 Jason Merrill <jason_merrill@redhat.com>
2105
2106 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
2107 (build_cplus_array_type): Use cp_build_qualified_type, not
2108 TYPE_MAIN_VARIANT, to get an unqualified version.
2109
2110 * decl2.c (grok_alignof): Lose.
2111 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
2112 * typeck.c (c_alignof): Lose.
2113 * semantics.c (finish_sizeof, finish_alignof): New.
2114 * parse.y: Use them.
2115 * cp-tree.h: Declare them.
2116
fd10dd09
JM
21172001-08-22 Jason Merrill <jason_merrill@redhat.com>
2118
2119 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
2120 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
2121 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
2122
baeb4732
JJ
21232001-08-19 Jakub Jelinek <jakub@redhat.com>
2124
2125 * typeck2.c (add_exception_specifier): Only require complete type if
2126 not in processing template declaration.
2127
1c0cc57e
KG
21282001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2129
2130 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
2131 GNU_xref_start_scope and GNU_xref_end_scope.
2132
2133 * tree.c (TYPE_HASH): Moved to ../tree.h.
2134
9a52d09b
MM
21352001-08-16 Mark Mitchell <mark@codesourcery.com>
2136
2137 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
2138 on COMPOUND_EXPRs.
2139
b5d1cbd2
RH
21402001-08-14 Richard Henderson <rth@redhat.com>
2141
2142 * class.c, cp-tree.h (build_vfn_ref): Remove.
2143 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
2144
63d6f87a
MM
21452001-08-13 Mark Mitchell <mark@codesourcery.com>
2146
2147 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
2148 empty class assignment as having side-effects to avoid
2149 spurious warnings.
2150
e78d8e51
ZW
21512001-08-13 Zack Weinberg <zackw@panix.com>
2152
2153 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
2154 * except.c: Include libfuncs.h.
2155
a60af04a
GDR
21562001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2157
2158 * decl.c (grokdeclarator): Clarify diagnostic message.
2159
3605b283
KL
21602001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2161
2162 * decl2.c (do_nonmember_using_decl): Replace using directive
2163 with using declaration in the error message.
2164
4d5f3fbd
KL
21652001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2166
2167 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
2168 criterion to avoid rebuilding expression tree instead of
2169 processing_template_decl.
2170
07b2f2fd
JM
21712001-08-07 Jason Merrill <jason_merrill@redhat.com>
2172
2173 Support named return value optimization for inlines, too.
2174 * decl.c (finish_function): Nullify returns here.
2175 * semantics.c (genrtl_start_function): Not here.
2176 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
2177 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
2178 Also nullify the CLEANUP_STMT for the nrv.
2179 * cp-tree.h: Declare it.
2180 * optimize.c (declare_return_variable): Replace the nrv with the
2181 return variable.
2182 * typeck.c (check_return_expr): Be more flexible on alignment check.
2183 Ignore cv-quals when checking for a matching type.
2184
2cc07db4
RH
21852001-08-09 Richard Henderson <rth@redhat.com>
2186
2187 * decl2.c (finish_objects): Use target hooks instead of
2188 assemble_constructor and assemble_destructor.
2189
0ca179b2
JDA
21902001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2191
2192 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
2193
0830ae44
NS
21942001-08-07 Nathan Sidwell <nathan@codesourcery.com>
2195
2196 PR c++/3820
2197 Stop using TYPE_NONCOPIED_PARTS.
2198 * call.c (build_over_call): Be careful when copy constructing
2199 or assigning to an empty class.
2200 * class.c (check_bases_and_members): It has a
2201 COMPLEX_ASSIGN_REF if it has a vptr.
2202 (layout_class_type): Don't add empty class padding to
2203 TYPE_NONCOPIED_PARTS.
2204 (finish_struct_1): Don't add the VFIELD either.
2205 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
2206 initialization.
2207
59a13e0f
JM
22082001-08-07 Jason Merrill <jason_merrill@redhat.com>
2209
2210 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
2211
47907859
RH
22122001-08-06 Richard Henderson <rth@redhat.com>
2213
2214 * decl2.c (finish_objects): Pass a symbol_ref and priority to
2215 assemble_{constructor,destructor}. Remove priority handling.
2216
eac69b8a
GDR
22172001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2218
2219 Don't allow template-id in using-declaration.
2220 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
2221 (do_class_using_decl): Likewise.
2222
ef6e958a
NB
22232001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2224
2225 * cp/spew.c (read_token): No need to pop buffers.
2226
dff94ad7
SS
22272001-08-02 Stan Shebs <shebs@apple.com>
2228
2229 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
2230 (fnaddr_from_vtable_entry): Remove decl.
2231 * method.c (use_thunk): Update comment.
2232
026c3f13
AC
22332001-08-01 Andrew Cagney <ac131313@redhat.com>
2234
2235 * repo.c (get_base_filename): Change return value to const char
2236 pointer.
2237
1dbb6023
NS
22382001-08-02 Nathan Sidwell <nathan@codesourcery.com>
2239
2240 Kill -fhonor-std.
2241 * NEWS: Document.
2242 * cp-tree.h (flag_honor_std): Remove.
2243 (CPTI_FAKE_STD): Remove.
2244 (std_node): Remove comment about it being NULL.
2245 (fake_std_node): Remove.
2246 * decl.c (in_fake_std): Remove.
2247 (walk_namespaces_r): Remove fake_std_node check.
2248 (push_namespace): Remove in_fake_std code.
2249 (pop_namespace): Likewise.
2250 (lookup_name_real): Remove fake_std_node check.
2251 (init_decl_processing): Always create std_node. Always add
2252 std:: things there.
2253 (builtin_function): Always put non '_' fns in std.
2254 * decl2.c (flag_honor_std): Remove.
2255 (lang_f_options): Remove honor-std.
2256 (unsupported_options): Add honor-std.
2257 (set_decl_namespace): Remove fake_std_node check.
2258 (validate_nonmember_using_decl): Likewise.
2259 (do_using_directive): Likewise.
2260 (handle_class_head): Likewise.
2261 * dump.c (cp_dump_tree): Likewise.
2262 * except.c (init_exception_processing): Adjust.
2263 * init.c (build_member_call): Remove fake_std_node check.
2264 (build_offset_ref): Likewise.
2265 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
2266 * rtti.c (init_rtti_processing): Adjust.
2267
6ad7895a
APB
22682001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
2269
2270 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
2271 operand while calling cp_tree_equal.
2272
befe7c61
NS
22732001-07-31 Nathan Sidwell <nathan@codesourcery.com>
2274
2275 The 3.0 ABI no longer has vbase pointer fields.
2276 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
2277 FORMAT_VBASE_NAME): Remove.
2278 * method.c (do_build_copy_constructor): Adjust.
2279 (do_build_assign_ref): Adjust.
2280 * search.c (lookup_field_r): Adjust.
2281 * typeck.c (build_component_ref): Adjust.
2282
2283 The 3.0 ABI always has a vtable pointer at the start of every
2284 polymorphic class.
2285 * rtti.c (build_headof_sub): Remove.
2286 (build_headof): Adjust.
2287 (get_tinfo_decl_dynamic): No need to check flag_rtti
2288 here. Adjust.
2289 (create_real_tinfo_var): Explain why we need a hidden name.
2290
20dde49d
NS
22912001-07-31 Nathan Sidwell <nathan@codesourcery.com>
2292
2293 PR c++/3631
2294 * class.c (update_vtable_entry_for_fn): The fixed adjustment
2295 of a virtual thunk should be from declaring base.
2296
b7ad2f8b
NS
22972001-07-31 Nathan Sidwell <nathan@codesourcery.com>
2298
2299 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
2300 the shared virtual base, so preserving inheritance graph order.
2301
57cb6d52
AJ
23022001-07-30 Andreas Jaeger <aj@suse.de>
2303
749ced52 2304 * decl2.c: Remove unused var global_temp_name_counter.
57cb6d52 2305
594280a3
RH
23062001-07-28 Richard Henderson <rth@redhat.com>
2307
2308 * method.c (pending_inlines): Remove.
2309
0ab142b0
NS
23102001-07-27 Nathan Sidwell <nathan@codesourcery.com>
2311
2312 * class.c (mark_primary_virtual_base): Don't adjust base
2313 offsets here.
2314 (dfs_unshared_virtual_bases): Adjust them here.
2315 (mark_primary_bases): Explain why we adjust at the end.
2316
d60d223b
NS
23172001-07-27 Nathan Sidwell <nathan@codesourcery.com>
2318
2319 * class.c (finish_struct_1): When copying the primary base's
2320 VFIELD, make sure we find it is at offset zero.
2321
db3ef87b
KL
23222001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2323
2324 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
2325 tsubst_expr for default template arguments.
2326
312b7c9d
NS
23272001-07-26 Nathan Sidwell <nathan@codesourcery.com>
2328
d60d223b 2329 PR c++/3621
312b7c9d
NS
2330 * spew.c (yylex): Only copy the token's lineno, if it is
2331 non-zero.
2332
648c2206
NS
23332001-07-26 Nathan Sidwell <nathan@codesourcery.com>
2334
2335 PR c++/3624
2336 * call.c (resolve_args): Simplify, call
2337 convert_from_reference.
2338 (build_new_op): Resolve and convert from reference ARG1
2339 earlier. Adjust ARG2 & ARG3 resolve and conversion.
2340
969fd501
NS
23412001-07-26 Nathan Sidwell <nathan@codesourcery.com>
2342
2343 * decl.c (last_function_parm_tags): Remove.
2344 (current_function_parm_tags): Remove.
2345 (init_decl_processing): Adjust.
2346 (start_function): Adjust.
2347 (store_parm_decls): Adjust.
2348
2349 PR c++/3152
2350 * decl.c (grokdeclarator): Detect when a function typedef is
2351 declaring a function, and create last_function_parms correctly.
2352
08ac397c 23532001-07-25 Jason Merrill <jason_merrill@redhat.com>
749ced52 2354
08ac397c
JM
2355 * call.c (joust): Only prefer a non-builtin candidate to a builtin
2356 one if they have the same signature.
2357
2358 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
2359 it rather than toplevel_bindings_p. Give it a mangled name if static.
2360 (convert_to_reference): Adjust.
2361 * decl2.c (get_temp_name): Lose.
2362 * mangle.c (mangle_ref_init_variable): New fn.
2363 (mangle_guard_variable): Strip the ref-init header.
2364 * cp-tree.h: Adjust.
2365 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
2366 initializer.
2367 (grok_reference_init): Always use DECL_INITIAL.
2368
40260429
NS
23692001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2370
2371 PR c++/3416
2372 * call.c (build_conditional_expr): Recheck args after
2373 conversions.
2374 * cp-tree.h (build_conditional_expr): Move to correct file.
2375 * typeck.c (decay_conversion): Diagnose any unknown types
2376 reaching here.
2377 (build_binary_op): Don't do initial decay or default
2378 conversions on overloaded functions.
2379 (build_static_cast): Don't do a decay conversion here.
2380
ab085207
NS
23812001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2382
2383 PR c++/3543
2384 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
2385 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
2386
0abe00c5
NS
23872001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2388
2389 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
2390 (create_vtbl_ptr): ... here.
2391
90b1ca2f
NS
23922001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2393
2394 * class.c (build_vbase_offset_vbtl_entries): Look for
2395 non-primary base of which we are a sub vtable.
2396
cfe5dc31
PE
23972001-07-24 Phil Edwards <pme@sources.redhat.com>
2398
2399 * semantics.c (finish_this_expr): Remove unused code.
2400
7f54a851
NS
24012001-07-24 Nathan Sidwell <nathan@codesourcery.com>
2402
2403 Simplify rtti, now we've only one ABI.
2404 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
2405 CPTI_TINFO_VAR_ID.
2406 (tinfo_decl_id, tinfo_var_id): Remove.
2407 (get_typeid_1): Remove.
2408 * rtti.c
2409 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
2410 (typeid_ok_p): New function.
2411 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
2412 (get_tinfo_decl): Remove old abi documentation.
2413 (tinfo_from_decl): Remove.
2414 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
2415 (get_typeid_1): Remove.
2416 (get_base_offset): Remove.
2417 (synthesize_tinfo_var): Absorb get_base_offset.
2418 (create_real_tinfo_var): Don't use tinfo_decl_id.
2419
18fee3ee
GS
24202001-07-23 Graham Stott <grahams@redhat.com>
2421
2422 * cp/class.c (type_requires_array_cookie): Fix use of uninitialised
2423 variable has_two_argument_delete_p.
2424
c4372ef4
NS
24252001-07-21 Nathan Sidwell <nathan@codesourcery.com>
2426
2427 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
2428 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
2429 (CPTI_INDEX_IDENTIFIER): Remove.
2430 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
2431 (delta2_identifier): Remove.
2432 (index_identifier): Remove.
2433 (pfn_or_delta2_identifier): Remove.
2434 (flag_vtable_thunks): Remove.
2435 (VTABLE_DELTA2_NAME): Remove.
2436 (VTABLE_INDEX_NAME): Remove.
2437 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
2438 (vfunc_ptr_type_node): Adjust.
2439 (VTABLE_NAME_PREFIX): Adjust.
2440 (build_vfn_ref): Lose first parameter.
2441 (fixup_all_virtual_upcast_offsets): Remove.
2442 * decl.c (initialize_predefined_identifiers): Remove
2443 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
2444 (init_decl_processing): Remove no-vtable-thunk code.
2445 * decl2.c (flag_vtable_thunks): Remove.
2446 (mark_vtable_entries): Remove no-vtable-thunk code.
2447 * error.c (dump_decl): Remove no-vtable-thunk code.
2448 (dump_expr): Adjust ptr to member function code.
2449 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
2450 code.
2451 * rtti.c (build_headof): Remove no-vtable-thunk code.
2452 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
2453 * search.c (get_base_distance): Remove expand_upcast_fixups case.
2454 (virtual_context) Remove.
2455 (expand_upcast_fixups): Remove.
2456 (fixup_virtual_upcast_offsets): Remove.
2457 (fixup_all_virtual_upcast_offsets): Remove.
2458 * typeck.c (get_member_function_from_ptrfunc): Remove
2459 no-vtable-thunk code.
2460 * call.c (build_over_call): Adjust call to build_vfn_ref.
2461 * class.c (build_vfn_ref): Lose first parameter. Remove
2462 no-vtable-thunk code.
2463 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
2464 (build_vtable_entry): Remove no-vtable-thunk code.
2465
3461fba7
NS
24662001-07-20 Nathan Sidwell <nathan@codesourcery.com>
2467
2468 Remove old-abi remnants. Remove comments about old abi
aba649ba 2469 behaviour. Remove references to 'new-abi' in comments.
3461fba7
NS
2470 * cp-tree.h: Adjust comments.
2471 (vbase_offsets_in_vtable_p): Delete.
2472 (vcall_offsets_in_vtable_p): Delete.
2473 (vptrs_present_everywhere_p): Delete.
2474 (all_overridden_vfuns_in_vtables_p): Delete.
2475 (merge_primary_and_secondary_vtables_p): Delete.
2476 (TYPE_CONTAINS_VPTR_P): Adjust.
2477 (VTT_NAME_PREFIX): Remove.
2478 (CTOR_VTBL_NAME_PREFIX): Remove.
2479 (init_vbase_pointers): Remove.
2480 * class.c: Adjust coments.
2481 (build_vbase_pointer_fields): Delete.
2482 (build_vbase_pointer): Remove old-abi code.
2483 (build_secondary_vtable): Likewise.
2484 (modify_all_vtables): Likewise.
2485 (create_vtable_ptr): Likewise.
2486 (layout_class_type): Likewise.
2487 (finish_struct_1): Likewise.
2488 (finish_vtbls): Likewise.
2489 (dfs_finish_vtbls): Delete.
2490 (build_vbase_offset_vtbl_entries): Remove old-abi code.
2491 * cvt.c: Adjust comments.
2492 * decl.c: Adjust comments.
2493 * decl2.c: Adjust comments.
2494 * init.c: Adjust comments.
2495 (construct_virtual_bases): Remove old-abi code.
2496 * lang-specs.h: Remove -fno-new-abi.
2497 * mangle.c: Adjust comments.
2498 * rtti.c: Adjust comments.
2499 (get_base_offset): Remove old-abi-code.
2500 * search.c: Adjust comments.
2501 (dfs_init_vbase_pointers): Remove.
2502 (dfs_vtable_path_unmark): Remove.
2503 (init_vbase_pointers): Remove.
2504 * semantics.c: Adjust comments.
2505 (emit_associated_thunks): Remove old-abi code.
2506 * typeck.c: Adjust comments.
2507
1c432a87
DB
25082001-07-20 Daniel Berlin <dan@cgsoftware.com>
2509
2510 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
2511 params.h.
2512
b7076960
MM
25132001-07-19 Mark Mitchell <mark@codesourcery.com>
2514
2515 * class.c (finish_struct_anon): Forbid nested classes.
2516
2b85879e
NB
25172001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
2518
2519 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
2520 * optimize.c: Include debug.h.
2521 (maybe_clone_body): Use debug hook.
2522 * semantics.c: Include debug.h.
2523 (expand_body): Use debug hook.
2524
c60e94a7
NB
25252001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
2526
2527 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
2528
dbc957f1
MM
25292001-07-18 Mark Mitchell <mark@codesourcery.com>
2530
2531 * class.c (type_requires_array_cookie): New function.
2532 (check_methods): Don't try to figure out whether the type needs a
2533 cookie here.
2534 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
2535 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
2536 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
2537 * pt.c (instantiate_class_template): Don't set
2538 TYPE_VEC_DELETE_TAKES_SIZE.
2539 * NEWS: Document ABI changes from GCC 3.0.
57cb6d52 2540
7ba0b0f7 25412001-07-18 Xavier Delacour <xavier@fmaudio.net>,
749ced52 2542 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7ba0b0f7
XD
2543
2544 * NEWS (Changes in GCC 3.0): Fix typo.
2545
59387d2e
JM
25462001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
2547
2548 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
2549 which attributes are to be attached, and a flags argument. Update
2550 call to decl_attributes.
2551 (grokfield): Update call to decl_attributes.
2552 * class.c (finish_struct): Update call to cplus_decl_attributes.
2553 * cp-tree.h (cplus_decl_attributes): Update prototype.
2554 * decl.c (start_decl, grokdeclarator, start_function): Update
2555 calls to decl_attributes and cplus_decl_attributes.
2556 * friend.c (do_friend): Update call to cplus_decl_attributes.
2557 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
2558
7ed47c04
MM
25592001-07-12 Mark Mitchell <mark@codesourcery.com>
2560
2561 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
2562 for `register' variables with an asm-specification.
2563
40b18c0a
MM
25642001-07-11 Mark Mitchell <mark@codesourcery.com>
2565
2566 * semantics.c (finish_asm_stmt): Mark the output operands
2567 to an asm addressable, if necessary.
2568
517c3b80
BE
25692001-07-11 Ben Elliston <bje@redhat.com>
2570
219670f1
BE
2571 * Revert this change -- there is a subtle bug.
2572
517c3b80
BE
2573 PR c++/80
2574 * decl.c (finish_enum): New "attributes" argument; pass it to
2575 cplus_decl_attributes. Use a narrower type if the enum is packed.
2576 * cp-tree.h (finish_enum): Adjust prototype.
2577 * parse.y (enum_head): New non-terminal.
2578 (structsp): Use it. Enums now may be preceded or followed by
2579 optional attributes -- pass their chained tree to finish_enum().
2580 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
2581
2ba9c47e
MM
25822001-07-10 Mark Mitchell <mark@codesourcery.com>
2583
2584 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
2585 variables.
2586
35241192
JM
25872001-07-10 Jason Merrill <jason_merrill@redhat.com>
2588
2589 * semantics.c (cp_expand_stmt): Fix for null
2590 current_function_return_value.
2591
07167a18
JM
25922001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
2593
2594 * call.c (build_op_delete_call): Initialize fn.
2595 (convert_like_real): Delete conditional.
2596 (joust): Initialize *w and *l.
2597 * class.c: Add prototype for binfo_ctor_vtable.
2598 (get_primary_binfo): Initialize result.
2599 * init.c (build_java_class_ref): Initialize name.
ae818d3b 2600
35241192
JM
26012001-07-09 Erik Rozendaal <dlr@acm.org>
2602
ae818d3b
ER
2603 * typeck.c (unary_complex_lvalue): Do not duplicate the
2604 argument to modify, pre-, or post-increment when used as an
2605 lvalue and when the argument has side-effects.
2606
12a68f1f
JM
26072001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
2608
2609 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
2610 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
2611 cplus_decl_attributes even if attrs is NULL.
2612 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
2613
f7a4cec0
JM
26142001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
2615
2616 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
2617 calls to decl_attributes.
2618
c80106a4
IR
26192001-07-06 Ira Ruben <ira@apple.com>
2620
ae818d3b 2621 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
c80106a4
IR
2622 be DECL_TEMPLATE_RESULT.
2623
dac65501
KL
26242001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2625
2626 * cp-tree.h (copy_template_template_parm): Rename to ...
2627 (bind_template_template_parm): ... here.
2628 * tree.c (copy_template_template_parm): Rename to ...
2629 (bind_template_template_parm): ... here. Remove the case when
2630 NEWARGS is NULL_TREE.
2631 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
2632 BOUND_TEMPLATE_TEMPLATE_PARM.
2633 * pt.c (lookup_template_class): Adjust.
2634
01f9e964
JM
26352001-07-05 Jason Merrill <jason_merrill@redhat.com>
2636
2637 * cvt.c (convert_lvalue): New fn.
2638 * cp-tree.h: Declare it.
2639 * method.c (do_build_assign_ref): Use it.
2640 (do_build_copy_constructor): Convert parm to base types
2641 before calling base constructors.
2642
2643 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
2644 DECL_USER_ALIGN. Check flag_elide_constructors instead of
2645 optimize.
2646 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
2647
6be77748
NS
26482001-07-02 Nathan Sidwell <nathan@codesourcery.com>
2649
2650 * optimize.c (optimize_inline_calls): New function, broken out
2651 of ...
2652 (optimize_function): ... here. Call it. Don't inline if it is
2653 a thunk.
2654 (dump_function): Print name of dump flag causing this dump.
2655 * semantics.c (expand_body): Move thunk inline check to
2656 optimize_function.
2657
8d8e52be
JM
26582001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
2659
2660 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
2661 (comptypes): Use target.comp_type_attributes.
2662
5a0db193
NS
26632001-06-29 Nathan Sidwell <nathan@codesourcery.com>
2664
2665 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
2666
46f018e1
GDR
26672001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2668
2669 * error.c (lang_print_error_function): Add a `diagnostic_context *'
2670 parameter. Tweak.
2671
501990bb
NB
26722001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2673
2674 * decl2.c (import_export_class): Update.
2675
f68fc4db
GDR
26762001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
2677
2678 * error.c (init_error): Adjust settings.
2679
9596ddd6
GDR
26802001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
2681
2682 * error.c (init_error): Adjust settings.
2683
c93586fa
RS
26842001-06-19 Richard Sandiford <rsandifo@redhat.com>
2685
2686 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
2687 return pointers to data members by reference rather than by value.
2688
0d97bf4c
JM
26892001-06-18 Jason Merrill <jason_merrill@redhat.com>
2690
2691 Implement the Named Return Value optimization.
2692 * cp-tree.h (struct cp_language_function): Add x_return_value.
2693 (current_function_return_value): Now a macro.
2694 * decl.c: Don't define it.
2695 (define_label, finish_case_label): Don't clear it.
2696 (init_decl_processing): Don't register it with GC.
2697 * semantics.c (genrtl_finish_function): Don't check it for
2698 no_return_label. Copy the RTL from the return value to
2699 current_function_return_value and walk, calling...
2700 (nullify_returns_r): ...this new fn.
2701 * typeck.c (check_return_expr): Set current_function_return_value.
2702
13de7ec4
JM
27032001-06-15 Jason Merrill <jason_merrill@redhat.com>
2704
2705 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
2706 sharing a ctor vtable with. Merge code for cases 1 and 2.
2707 (binfo_ctor_vtable): New fn.
2708 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
2709
3ea099f1
JM
27102001-06-14 Jason Merrill <jason_merrill@redhat.com>
2711
2712 * class.c (dfs_find_final_overrider): Fix logic.
2713
2714 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
2715 virtual thunk instead of non-virtual.
2716 (get_matching_virtual): Uncomment.
2717
2718 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
2719 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
2720 PARM, not ARG.
2721
87326ba8
NS
27222001-06-14 Nathan Sidwell <nathan@codesourcery.com>
2723
2724 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
2725 we've not emerged from the hierarchy of RTTI_BINFO on reaching
2726 a non-virtual base.
2727
e065a36e
MM
27282001-06-13 Mark Mitchell <mark@codesourcery.com>
2729
2730 * NEWS: Update release number.
2731
623fe76a
NS
27322001-06-12 Nathan Sidwell <nathan@codesourcery.com>
2733
2734 PR c++/3130, c++/3131, c++/3132
2735 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
2736 * class.c (force_canonical_binfo_r): Move
2737 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
2738 virtual bases unless they're primary and what they're primary
2739 too has been moved.
2740 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
2741 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
2742 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
2743 derived binfo.
2744 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
2745 (layout_nonempty_base_or_field): Add most derived type
2746 parameter. Adjust.
2747 (layout_empty_base): Likewise.
2748 (build_base_field): Likewise.
2749 (build_base_fields): Likewise.
2750 (propagate_binfo_offsets): Add most derived type
2751 parameter. Skip non canonical virtual bases too.
2752 (dfs_set_offset_for_unshared_vbases): Don't skip primary
2753 bases. Do skip canonical bases.
2754 (layout_virtual_bases): Adjust.
2755 (layout_class_type): Adjust.
2756 (dfs_get_primary_binfo): Build list of virtual primary base
2757 candidates.
2758 (get_primary_binfo): Check that the shared virtual primary
2759 base candidate was found first.
2760 (accumulate_vtbl_inits): Don't do anything for non-vptr
2761 containing binfos. For case 1 primary virtual bases, keep
2762 checking that we've not emerged from the hierarchy of RTTI_BINFO.
2763
7bdcf888
NS
27642001-06-12 Nathan Sidwell <nathan@codesourcery.com>
2765
2766 PR c++/3089
2767 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
2768 hierarchy looking for primary bases for a ctor
2769 vtable. Recursively call oneself, if we meet our primary via
2770 this route and haven't met it yet via inheritance graph order.
2771
25b5b465
MM
27722001-06-11 Mark Mitchell <mark@codesourcery.com>
2773
2774 * lang-options.h: Emit documentation for -fno-honor-std, not
2775 -fhonor-std.
2776
eb2d0614
AO
27772001-06-10 Alexandre Oliva <aoliva@redhat.com>
2778
2779 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
2780 Don't clobber delta.
2781 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
2782
2a2b2d43
GDR
27832001-06-10 Mark Mitchell <mark@codesourcery.com>
2784 Gabriel Dos Reis <gdr@codesourcery.com>
2785
2786 * Make-lang.in (cp/call.o): Depend on diagnostic.h
2787 (cp/typeck.o): Depend on diagnostic.h
2788 (cp/typeck2.o): Depend on diagnostic.h
07167a18 2789 (cp/repo.o): Depend on dignostic.h
2a2b2d43
GDR
2790 * typeck.c: #include diagnostic.h
2791 (convert_for_initialization): Remove extern declaration for
2792 warningcount and errorcount.
2793
2794 * call.c: #include diagnostic.h
2795 (convert_like_real): Remove extern declaration for warnincount and
07167a18 2796 errorcount.
2a2b2d43
GDR
2797
2798 * repo.c: #include diagnostic.h
2799 * typeck2.c: #include diagnostic.h
2800
06d5e633
NS
28012001-06-08 Nathan Sidwell <nathan@codesourcery.com>
2802
2803 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
2804 in previous change.
2805
9ac1bd2e
NS
28062001-06-08 Nathan Sidwell <nathan@codesourcery.com>
2807
2808 PR c++/2929
2809 * friend.c (do_friend): Use push_decl_namespace for classes at
2810 namespace scope.
2811
85a9a0a2
NS
28122001-06-08 Nathan Sidwell <nathan@codesourcery.com>
2813 Jason Merrill <jason_merrill@redhat.com>
2814
2815 PR c++/3061
2816 * class.c (build_secondary_vtable): Use assert, rather than an error
2817 message.
2818 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
2819 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
2820 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
2821 Don't set BINFO_VTABLE for a primary virtual base.
2822
daa8df65
MM
28232001-06-07 Mark Mitchell <mark@codesourcery.com>
2824
2825 * decl.c (duplicate_decls): Update source position information
2826 when a template function is defined.
2827
37344b9b
PE
28282001-06-07 Phil Edwards <pme@sources.redhat.com>
2829
2830 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
2831
fcebb2dd
NS
28322001-06-07 Nathan Sidwell <nathan@codesourcery.com>
2833
2834 PR c++/2914
2835 * decl.c (pushtag): Don't push into a complete type's scope.
2836
d0cd8b44
JM
28372001-06-06 Jason Merrill <jason_merrill@redhat.com>
2838
2839 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
2840 (struct lang_decl_flags): Lose generate_with_vtable_p.
2841 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
2842 * class.c (copy_virtuals): Adjust.
2843 * decl2.c (mark_vtable_entries): Adjust.
2844 * method.c (make_thunk, build_vtable_entry): Adjust.
2845 * class.c (update_vtable_entry_for_fn): Only look as far as the
2846 first defining class.
07167a18 2847 (build_vtbl_initializer): Put nothing in the slot for a function only
d0cd8b44 2848 defined in a lost primary virtual base.
07167a18 2849 (add_vcall_offset_vtbl_entries_1): Use the same code for
d0cd8b44
JM
2850 the lost primary case and the normal case.
2851 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
2852 (get_vfield_offset, get_derived_offset): Lose.
2853 (dfs_find_final_overrider): Use look_for_overrides_here.
2854 (get_matching_virtual): New fn.
2855 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
2856 not BV_VCALL_INDEX.
2857 * search.c (look_for_overrides_here): Split out from...
2858 (look_for_overrides_r): Here.
2859
2860 * class.c (find_final_overrider): Return error_mark_node on error.
2861
2862 * decl2.c (key_method): #if 0 accidental change.
2863
acf97e0b
JDA
28642001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2865
2866 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
2867 (build_over_call): Likewise.
2868 * decl.c (grokparms): Likewise.
2869 * pt.c (tsubst_decl): Likewise.
2870 * typeck.c (convert_arguments): Likewise.
2871
7e9abee9
MM
28722001-06-05 Mark Mitchell <mark@codesourcery.com>
2873
47ee8904
MM
2874 * semantics.c (begin_class_definition): Robustify.
2875
7e9abee9
MM
2876 * pt.c (instantiate_decl): Tell the repository code about the
2877 clones, not the cloned functions.
2878 * repo.c (repo_template_used): Explicitly instantiate the cloned
2879 function, not the clones.
2880
bea09693
NS
28812001-06-05 Nathan Sidwell <nathan@codesourcery.com>
2882
2883 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
2884 ICS_BAD_FLAG on created conversion.
2885 (compare_ics): Break out rank.
2886
8f7550ca
NS
28872001-06-05 Nathan Sidwell <nathan@codesourcery.com>
2888
2889 * decl.c (xref_tag): Remove extraneous %s on dependent name
2890 lookup warning.
2891
442e01b6
NS
28922001-06-05 Nathan Sidwell <nathan@codesourcery.com>
2893
2894 * class.c (layout_vtable_decl): Fix off by one error on
2895 build_index_type.
2896 (build_vtt): Likewise.
2897 (build_ctor_vtbl_group): Likewise.
2898
b7442fb5
NS
28992001-06-05 Nathan Sidwell <nathan@codesourcery.com>
2900
2901 * class.c (maybe_indent_hierarchy): New function.
2902 (dump_class_hierarchy_r): Add flags. Dump extra binfo
2903 information, if enabled. Use maybe_indent_hierarchy. Adjust
2904 output format.
2905 (dump_class_hierarchy): Adjust prototype. Adjust output format.
2906 (dump_array, dump_vtable, dump_vtt): New functions.
2907 (finish_struct_1): Adjust hierarchy dumping.
2908 (initialize_vtable): Call dump_vtable.
2909 (build_vtt): Call dump_vtt.
2910 (build_ctor_vtbl_group): Call dump_vtable.
2911 * decl2.c (flag_dump_class_layout): Remove.
2912 (cxx_decode_option): Remove dump translation unit
2913 and dump class hierarchy check. Call dump_switch_p.
2914 (finish_file): Adjust dumping.
2915 (dump.c): Only dump base classes if not TDF_SLIM.
2916 Only dump namespace members if not TDF_SLIM.
2917 * optimize.c (dump_function): New function.
2918 (optimize_function): Call dump_function.
2919 * semantics.c (expand_body): Use dump_enabled_p.
2920
e5410b32
NS
29212001-06-01 Nathan Sidwell <nathan@codesourcery.com>
2922
2923 PR g++/2936
2924 Part missed from first commit
2925 * decl2.c (finish_anon_union): Copy context.
2926
e97c9488
NS
29272001-05-30 Nathan Sidwell <nathan@codesourcery.com>
2928
2929 PR g++/2936
e97c9488
NS
2930 * optimize.c (remap_decl): Remap anonymous aggregate members too.
2931
87d9ac49
NS
29322001-05-26 Nathan Sidwell <nathan@codesourcery.com>
2933
2934 PR g++/2823
2935 * semantics.c (expand_body): Don't optimize thunks.
2936
88657302
RH
29372001-05-25 Sam TH <sam@uchicago.edu>
2938
2939 * cp-tree.h lex.h: Fix header include guards.
2940
29412001-05-25 Mark Mitchell <mark@codesourcery.com>
10841285
MM
2942
2943 * decl.c (init_decl_processing): Tweak.
2944
0b1161fc
MM
29452001-05-24 Mark Mitchell <mark@codesourcery.com>
2946
2947 * decl.c (duplicate_decls): Tidy.
2948 (init_decl_processing): Always set flag_no_builtin.
2949
6f56d925
NS
29502001-05-24 Nathan Sidwell <nathan@codesourcery.com>
2951
2952 PR c++/2184
2953 * decl2.c (do_local_using_decl): Push the decls, even in a
2954 template.
2955
39e0656d
MM
29562001-05-22 Mark Mitchell <mark@codesourcery.com>
2957
2958 * optimize.c (initialize_inlined_parameters): Don't set
2959 TREE_READONLY for a VAR_DECL taking the place of an inlined
2960 PARM_DECL.
2961
0401d499
JM
29622001-05-22 Jason Merrill <jason_merrill@redhat.com>
2963
2964 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
2965 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
2966 attribute.
2967
14fc3426
JM
29682001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
2969
2970 * parse.y: Refer to compound literals as such, not as
2971 constructor-expressions.
2972
3f41ffd8
MM
29732001-05-21 Mark Mitchell <mark@codesourcery.com>
2974
2975 * call.c (build_op_delete_call): Ignore exception-specifications
2976 when looking for matching delete operators.
2977 * init.c (build_new_1): Compute whether or not the allocation
2978 function used is a placement allocation function or not, and
2979 communicate this information to build_op_delete_call.
2980
1a6025b4
JM
29812001-05-21 Jason Merrill <jason_merrill@redhat.com>
2982
90ecce3e
JM
2983 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
2984 (build_vtbl_ref): Adjust.
2985 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
2986 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
2987 Re-add vtable-gc.
2988 (unsupported_options): Correspondingly.
2989
2990 * decl2.c (maybe_make_one_only): Check flag_weak, not
2991 supports_one_only().
2992
1a6025b4
JM
2993 * cp-tree.def (START_CATCH_STMT): Lose.
2994 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
2995 * tree.c (cp_statement_code_p): Don't case it.
2996 * semantics.c (cp_expand_stmt): Likewise.
2997 * cp-tree.h (START_CATCH_TYPE): Lose.
2998 (HANDLER_TYPE): New.
2999 * except.c (expand_start_catch_block): Don't start any blocks.
3000 Return the type.
3001 (expand_end_catch_block): Don't end any blocks.
3002 * parse.y (handler): Don't pass anything from finish_handler_parms
3003 to finish_handler.
3004 * pt.c (tsubst_expr): Likewise.
3005 * semantics.c (begin_handler): Call note_level_for_catch here.
3006 (finish_handler_parms): Don't return anything.
3007 (genrtl_catch_block, begin_catch_block): Lose.
3008 (genrtl_handler): Call expand_start_catch here.
3009
30102001-05-18 Jason Merrill <jason_merrill@redhat.com>
3011
3012 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
3013 (get_vtable_decl, build_vtt): Not here.
3014
d30a825a
NS
30152001-05-20 Nathan Sidwell <nathan@codesourcery.com>
3016
3017 PR c++/2781
3018 * optimize.c (update_cloned_parm): Copy addressability and other
3019 flags.
3020
3b82c249
KL
30212001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3022
3023 * pt.c (determine_specialization): Ignore artificial functions.
3024
2a967f3d
NB
30252001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
3026
3027 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
3028 (C_RID_CODE): Remove.
3029 * lex.c (cxx_init_options): Call set_identifier_size. Update.
3030 (init_parse): Don't do it here.
3031
f99df08e
DN
30322001-05-18 Diego Novillo <dnovillo@redhat.com>
3033
3034 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
3035 function declaration to avoid stripping the symbol's attributes.
3036
2b0cbc5d
NS
30372001-05-18 Nathan Sidwell <nathan@codesourcery.com>
3038
3039 * decl.c (pushdecl): Adjust error string.
3040 (xref_tag): Adjust friend class injection warning. Remove the
3041 inherited name from the class shadowed scope.
3042
e6855a2d
MM
30432001-05-17 Mark Mitchell <mark@codesourcery.com>
3044
3045 * except.c (cp_protect_cleanup_actions): New function.
07167a18 3046 (init_exception_processing): Don't set protect_cleanup_actions
e6855a2d
MM
3047 here. Do set lang_protect_cleanup_actions.
3048
cc469ee9
NS
30492001-05-16 Nathan Sidwell <nathan@codesourcery.com>
3050
3051 * spew.c (read_token): Call yyerror on all unexpected tokens.
3052
3f0a9b35
NS
30532001-05-16 Nathan Sidwell <nathan@codesourcery.com>
3054
3055 * init.c (member_init_ok_or_else): Take a tree rather than
3056 string for name.
3057 (expand_member_init): Adjust.
3058
8d0cb60d
NC
30592001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3060
3061 * decl.c (duplicate_decls): Suppress warning about duplicate
749ced52 3062 decls if the first decl is a friend.
8d0cb60d 3063
1f730ff7
ZW
30642001-05-12 Zack Weinberg <zackw@stanford.edu>
3065
3066 * except.c (choose_personality_routine): Export. Add
3067 explanatory comment. Take an enum languages, not a boolean.
3068 (initialize_handler_parm): Adjust to match.
3069 * cp-tree.h: Prototype choose_personality_routine.
3070 * lex.c (handle_pragma_java_exceptions): New function.
3071 (init_cp_pragma): Register #pragma GCC java_exceptions.
3072
90e0c410
NB
30732001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3074
3075 * method.c (build_mangled_C99_name): Remove unused prototype.
3076
cb7fdde2
AO
30772001-05-12 Alexandre Oliva <aoliva@redhat.com>
3078
3079 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
3080 * typeck.c (get_member_function_from_ptrfunc,
3081 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
3082 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
18ae7f63
AO
3083
3084 Reverted Geoff Keating's 2001-05-03's patch.
3085
401deb20
IR
30862001-05-11 Ira Ruben <ira@apple.com>
3087
3088 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
3089
8e93d446
NB
30902001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3091
3092 * cp-tree.h (finish_label_expr, lookup_label): Delete.
3093 * parse.y: Update for '&&'; don't issue warning here.
3094 * semantics.c (finish_label_expr): Delete.
3095
5cdba4ff
MM
30962001-05-07 Mark Mitchell <mark@codesourcery.com>
3097
3098 * splay-tree.h (splay_tree_max): New function.
3099 (splay_tree_min): Likewise.
3100
8e9eff6b
GK
31012001-05-03 Geoffrey Keating <geoffk@redhat.com>
3102
3103 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
3104 (pfn_vflag_identifier): Define.
3105 Update comment about layout of pointer functions.
3106 (build_ptrmemfunc1): Update prototype.
3107 (expand_ptrmemfunc_cst): Update prototype.
3108 * decl.c (initialize_predefined_identifiers): Initialize
3109 pfn_vflag_identifier.
3110 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
3111 an extra field to the type.
07167a18 3112 * expr.c (cplus_expand_constant): Pass 'flag' between
8e9eff6b
GK
3113 expand_ptrmemfunc_cst and build_ptrmemfunc1.
3114 * typeck.c (get_member_function_from_ptrfunc): When
3115 FUNCTION_BOUNDARY < 16, look at additional field to determine
3116 if a pointer-to-member is a real pointer or a vtable offset.
3117 (build_ptrmemfunc1): Add new parameter to contain extra field.
3118 (build_ptrmemfunc): Pass the extra field around.
3119 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
3120 (pfn_from_ptrmemfunc): Ignore the extra field.
3121
acc72c37
MM
31222001-05-03 Mark Mitchell <mark@codesourcery.com>
3123
3124 * cp-tree.h (flag_inline_trees): Update documentation.
3125 * decl.c (init_decl_processing): Adjust handling of
3126 flag_inline_functions and flag_inline_trees to support -O3.
3127 (grokfndecl): Set DECL_INLINE on all functions if that's what
3128 the user requested.
3129 (save_function_data): Clear DECL_INLINE in
3130 current_function_cannot_inline is non-NULL.
3131 * decl2.c (flag_inline_trees): Update documentation.
3132
5158d7ee
NS
31332001-05-03 Nathan Sidwell <nathan@codesourcery.com>
3134
3135 * dump.c (cp_dump_tree, USING_STMT case): New case.
3136 * tree.c (cp_statement_code_p): Add USING_STMT.
3137 * decl2.c (do_using_directive): Add the using directive statement.
3138
3139 * tree.c (walk_tree): Reformat an if block.
3140
80f5bb34
MM
31412001-05-02 Mark Mitchell <mark@codesourcery.com>
3142
3143 * decl.c (compute_array_index_type): Don't try to do anything with
3144 the indices when processing a template.
3145
3e411c3f
KG
31462001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3147
3148 * call.c: NULL_PTR -> NULL.
3149 * class.c: Likewise.
3150 * cvt.c: Likewise.
3151 * decl.c: Likewise.
3152 * decl2.c: Likewise.
3153 * except.c: Likewise.
3154 * init.c: Likewise.
3155 * rtti.c: Likewise.
3156 * search.c: Likewise.
3157 * tree.c: Likewise.
3158 * typeck.c: Likewise.
3159 * typeck2.c: Likewise.
3160
46188dca
MM
31612001-05-02 Mark Mitchell <mark@codesourcery.com>
3162
3163 * decl2.c (do_using_directive): Revert previous patch.
3164
9da99f7d
NS
31652001-05-01 Nathan Sidwell <nathan@codesourcery.com>
3166
3167 * cp-tree.def (USING_STMT): New statement node.
3168 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
3169 * decl2.c (do_using_directive): Add USING_STMT to statement
3170 tree. Don't emit errors when processing template decl.
3171 * pt.c (tsubst_expr, USING_STMT case): New case.
3172 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
3173
4b48a93e
NS
31742001-05-01 Nathan Sidwell <nathan@codesourcery.com>
3175
3176 * call.c (build_new_op): Convert args from reference here.
3177 (build_conditional_expr): Don't convert here.
3178
1bcea8d7
NS
31792001-05-01 Nathan Sidwell <nathan@codesourcery.com>
3180
3181 * spew.c (last_token_id): New static variable.
3182 (read_token): Set it here.
3183 (yyerror): Use it here.
3184
d72040f5
RH
31852001-04-30 Richard Henderson <rth@redhat.com>
3186
749ced52 3187 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
d72040f5
RH
3188 * decl.c: Likewise.
3189
c3aac512
MM
31902001-04-30 Mark Mitchell <mark@codesourcery.com>
3191
3192 * gxxint.texi: Remove.
3193 * Make-lang.in: Remove all traces of gxxint.texi.
3194
5fd893d5
MM
3195Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
3196
3197 * decl2.c (start_static_initialization_or_destruction): Correct
3198 logic to handle the -fno-use-cxa-atexit case.
3199
d60e5448
MM
32002001-04-30 Mark Mitchell <mark@codesourcery.com>
3201
3202 * optimize.c (update_cloned_parm): New function.
3203 (maybe_clone_body): Use it. Update the `this' parameter too.
3204
7200764f
JM
32052001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
3206
3207 * decl2.c (unsupported_options): Add new-abi.
3208 * lang-options.h: Remove no longer supported options.
3209
2d46ec83
NS
32102001-04-27 Nathan Sidwell <nathan@codesourcery.com>
3211
3212 * except.c (can_convert_eh): Don't check template parms,
3213 typename types etc.
3214
02a1a68c
NS
32152001-04-27 Nathan Sidwell <nathan@codesourcery.com>
3216
3217 * optimize.c (maybe_clone_body): Copy parameter names and locations.
3218
5f6eeeb3
NS
32192001-04-27 Nathan Sidwell <nathan@codesourcery.com>
3220
3221 * cp-tree.h (adjust_clone_args): Prototype new function.
3222 * class.c (adjust_clone_args): New function.
3223 * decl.c (start_function): Call it for in charge ctors.
3224
1b28d441
MM
32252001-04-26 Mark Mitchell <mark@codesourcery.com>
3226
3227 * method.c (use_thunk): Make sure that thunks really are emitted
3228 when requested.
3229
0576ec13
NS
32302001-04-26 Nathan Sidwell <nathan@codesourcery.com>
3231
3232 * mangle.c (write_chars): New macro.
3233 (hwint_to_ascii): New function
3234 (write_number): Use it.
3235 (write_integer_cst): Deal with really big numbers.
3236
b96ada87
MM
32372001-04-25 Mark Mitchell <mark@codesourcery.com>
3238
3239 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
3240 the clone.
3241
6bda7a5e
NS
32422001-04-25 Nathan Sidwell <nathan@codesourcery.com>
3243
3244 * decl.c (grokdeclarator): Set context of namespace scope
3245 TYPE_DECLS.
3246
11fe225a
ZW
32472001-04-24 Zack Weinberg <zackw@stanford.edu>
3248
3249 * cp/optimize.c: Include hashtab.h.
3250 (struct inline_data): Add tree_pruner.
3251 (expand_call_inline, expand_calls_inline): Use it when calling
3252 walk_tree.
3253 (optimize_function): Initialize and free tree_pruner.
3254
0ba8a114
NS
32552001-04-24 Nathan Sidwell <nathan@codesourcery.com>
3256
3257 Lazy __FUNCTION__ generation.
3258 * cp-tree.def (FUNCTION_NAME): Remove.
3259 * cp-tree.h (function_name_declared_p): Remove.
3260 (cp_fname_init): Prototype.
3261 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
3262 don't call declare_function_name. Call start_fname_decls.
3263 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
3264 clobber the line number.
3265 (cp_fname_init): New function.
3266 (start_function): Call start_fname_decls.
3267 (finish_function): Call finish_fname_decls.
3268 * lex.c (reswords): Add slots for __FUNCTION__ et al.
3269 (rid_to_yy): Add mappings for __FUNCTION__ et al.
3270 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
3271 * parse.y (VAR_FUNC_NAME): New token.
3272 (primary): Add VAR_FUNC_NAME.
3273 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
3274 generation.
3275 (tsubst, FUNCTION_NAME case): Remove.
3276 (tsubst_copy, FUNCTION_NAME case): Remove.
3277 (tsubst_expr, DECL_STMT case): Be careful with a
3278 DECL_PRETTY_FUNCTION_P.
3279 (instantiate_decl): Remove function_name_declared_p.
3280 * semantics.c (begin_compound_statement): Don't call
3281 declare_function_name here.
3282 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
3283 (finish_translation_unit): Call finish_fname_decls.
3284 (expand_body): Remove function_name_declared_p.
3285 * typeck2.c (digest_init): Allow any ERROR_MARK.
3286
dfbb4f34
NS
32872001-04-24 Nathan Sidwell <nathan@codesourcery.com>
3288
3289 * pt.c (tsubst_decl): Use VOID_TYPE_P.
3290 * semantics.c: Fix some typos.
3291
e2584c52
PE
32922001-04-23 Phil Edwards <pme@sources.redhat.com>
3293
3294 * cp/decl2.c (flag_honor_std): Always initialize to 1.
3295
d4c3ec27
KG
32962001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3297
3298 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
3299
2ac8a0f9
JM
33002001-04-23 Jason Merrill <jason_merrill@redhat.com>
3301
3302 * except.c (build_throw): Wrap the initialization of the exception
3303 object in a MUST_NOT_THROW_EXPR.
3304 (do_free_exception): #if 0.
3305
968b956a
MM
33062001-04-20 Mark Mitchell <mark@codesourcery.com>
3307
3308 * cp-tree.h (finish_enum): Change prototype.
3309 * decl.c (finish_enum): Reorganize.
3310 * parse.y (structsp): Adjust calls to finish_enum.
11fe225a 3311
aa1826e2
NS
33122001-04-20 Nathan Sidwell <nathan@codesourcery.com>
3313
3314 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
3315 't' case.
3316
06d9f09f
NS
33172001-04-20 Nathan Sidwell <nathan@codesourcery.com>
3318
3319 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
3320 (layout_empty_base): Return at end flag.
3321 (build_base_field): Likewise.
3322 (build_base_fields): Likewise.
3323 (layout_virtual_bases): Don't add 1 to eoc value.
3324 (end_of_class): Use full size for empty bases.
3325 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
3326 empty bases. Don't add 1 to eoc value. Only add trailing padding
3327 if we're an empty class with no empty bases.
3328 (dump_class_hierarchy): Dump size and alignment.
3329
351a0f00
JJ
33302001-04-20 Jakub Jelinek <jakub@redhat.com>
3331
3332 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
3333 ICS_BAD_FLAG.
3334
881cae05
JJ
33352001-04-20 Jakub Jelinek <jakub@redhat.com>
3336
3337 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
3338 is found, look first if name does not match the structure name.
3339
5d2ed28c
MM
33402001-04-19 Mark Mitchell <mark@codesourcery.com>
3341
3342 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
3343 set.
3344 (SET_DECL_LANGUAGE): New macro.
3345 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
3346 (pushdecl): Likewise.
3347 (build_library_fn_1): Likewise.
3348 (build_cp_library_fn): Likewise.
3349 (grokfndecl): Likewise.
3350 (grokvardecl): Mark `extern "C"' variables as having C linkage.
3351 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
3352 * lex.c (retrofit_lang_decl): Likewise.
3353 * mangle.c (mangle_decl_string): Don't mangle the names of
3354 variables declared with C language linkage.
3355 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
11fe225a 3356
41251458
JDA
33572001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
3358
3359 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
3360 flag_access_control from uninitialized storage.
3361
1b4a93f7
MM
33622001-04-15 Mark Mitchell <mark@codesourcery.com>
3363
24272dc0
MM
3364 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
3365 * mangle.c (write_pointer_to_member_type): Fix mangling of
3366 pointers to cv-qualified member function types.
3367
1b4a93f7
MM
3368 * init.c (build_delete): Create a SAVE_EXPR for the address if
3369 we're going to use it more than once.
3370
530ec96d
MM
33712001-04-13 Mark Mitchell <mark@codesourcery.com>
3372
3373 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
3374 (expand_ptremfunc_cst): Change prototype.
3375 (delta2_from_ptrmemfunc): Remove.
3376 * expr.c (cplus_expand_constant): Adjust call to
3377 expand_ptrmemfunc_cst.
3378 * typeck.c (build_ptrmemfunc1): Simplify.
3379 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
3380 results in a constant.
3381 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
3382 (delta2_from_ptrmemfunc): Remove.
3383 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
11fe225a 3384
ee8fc32b
JM
33852001-04-12 Jason Merrill <jason_merrill@redhat.com>
3386
3387 * cp-tree.h (decl_namespace_list): New macro.
3388 (struct saved_scope): Add decl_ns_list.
3389 * decl.c (mark_saved_scope): Mark it.
3390 * decl2.c: Lose static decl_namespace_list.
3391 (init_decl2): Don't save it.
3392
48857160
KG
33932001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3394
3395 * cp-tree.h (warn_return_type, yylex): Delete redundant
3396 declarations.
11fe225a 3397
48857160
KG
3398 * decl.c (current_class_depth, global_namespace): Likewise.
3399
3400 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
3401
3402 * repo.c (flag_use_repository): Likewise.
3403
845e14ed
KG
34042001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3405
3406 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
3407 set_block, pushdecl, getdecls, gettags, init_decl_processing,
3408 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
3409 lvalue_or_else, print_lang_statistics, comp_target_types,
3410 unsigned_type, signed_type, signed_or_unsigned_type,
3411 build_function_call, mark_addressable, incomplete_type_error):
3412 Delete redundant declarations.
3413
1951a1b6
JM
34142001-04-11 Jason Merrill <jason_merrill@redhat.com>
3415
3416 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
3417 (TYPE_ANONYMOUS_P): New macro.
3418 (TAGGED_TYPE_P): New macro.
3419 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
3420 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
3421 * tree.c (no_linkage_helper): Likewise.
3422 * semantics.c (begin_class_definition): Likewise.
3423 * pt.c (convert_template_argument): Likewise.
3424 * lex.c (check_for_missing_semicolon): Likewise.
3425
0fb3018c
NS
34262001-04-12 Nathan Sidwell <nathan@codesourcery.com>
3427
3428 * class.c (dfs_unshared_virtual_bases): New function.
3429 (mark_primary_bases): Call it.
3430 (check_bases): Ignore virtual bases when determining
3431 nearly-emptiness.
3432
bbb53468
NS
34332001-04-12 Nathan Sidwell <nathan@codesourcery.com>
3434
3435 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
3436
9b7949d5
MM
34372001-04-11 Mark Mitchell <mark@codesourcery.com>
3438
3439 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
3440 cloned function to the clone.
3441
d6684bc8
KG
34422001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3443
3444 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
3445
3446 * semantics.c: Include expr.h.
3447
a2095778
NS
34482001-04-11 Nathan Sidwell <nathan@codesourcery.com>
3449
3450 * method.c (implicitly_declare_fn): Commonize code for copy ctor
3451 and assignment op. Set TREE_USED for parameter.
3452
78b45a24
MM
34532001-04-10 Mark Mitchell <mark@codesourcery.com>
3454
3455 * class.c (find_final_overrider_data): Add `candidates'.
3456 (dfs_find_final_overrider): Don't issue error messages
3457 prematurely.
3458 (find_final_overrider): Issue error messages here.
3459 (build_base_field): Don't warn about amgibuous direct bases here.
3460 (warn_about_ambiguous_direct_bases): New function.
3461 (layout_class_type): Use it.
3462
0450d74d
RH
34632001-04-10 Richard Henderson <rth@redhat.com>
3464
3465 * typeck.c (build_array_ref): Push the array reference inside
3466 COMPOUND_EXPR and COND_EXPR.
3467
79065db2
MM
34682001-04-05 Mark Mitchell <mark@codesourcery.com>
3469
3470 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
3471 * decl.c (duplicate_decls): Adjust accordingly.
3472 (maybe_commonize_var): Likewise.
3473 (grokfndecl): Likewise.
3474 (start_function): Likewise.
3475 (start_method): Likewise.
3476 * decl2.c (key_method): Likewise.
3477 (import_export_decl): Likewise.
3478 * method.c (implicitly_declare_fn): Likewise.
3479 * optimize.c (maybe_clone_body): Likewise.
11fe225a 3480
fdecbf8a
BK
34812001-04-05 Benjamin Kosnik <bkoz@redhat.com>
3482
b03eced6 3483 * lang-specs.h: Add __DEPRECATED.
fdecbf8a 3484
0b4c1646
R
3485Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
3486
3487 * search.c (get_dynamic_cast_base_type): When building a new
3488 constant, set its type to ssizetype.
3489
e59d6709
JJ
34902001-04-04 Jakub Jelinek <jakub@redhat.com>
3491
3492 * optimize.c (expand_call_inline): Only add newly inlined statements
3493 into inlined_stmts.
3494
0c918ce5
MM
34952001-04-03 Mark Mitchell <mark@codesourcery.com>
3496
3497 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
3498 (OPERATOR_FORMAT): Likewise.
3499 (OPERATOR_TYPENAME_FORMAT): Likewise.
3500 * operators.def: Remove old name-mangling information.
3501 * decl.c (grok_op_properties): Adjust accordingly.
3502 * lex.c (init_operators): Likewise.
3503 * rtti.c (get_tinfo_decl): Issue error messages about types that
3504 have variable size.
3505
92788413
MM
35062001-04-03 Mark Mitchell <mark@codesourcery.com>
3507
11fe225a 3508 * decl2.c (import_export_decl): Don't call import_export_class
92788413
MM
3509 when processing an inline member function.
3510 * semantics.c (expand_body): Call import_export_decl before
3511 emitting inline functions.
3512
52a11cbf
RH
35132001-03-28 Richard Henderson <rth@redhat.com>
3514
3515 IA-64 ABI Exception Handling:
3516 * cp-tree.def (EH_SPEC_BLOCK): New.
3517 (MUST_NOT_THROW_EXPR): New.
3518 * cp-tree.h: Update changed function declarations.
3519 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
3520 (CPTI_CALL_UNEXPECTED): New.
3521 (struct cp_language_function): Rename x_eh_spec_try_block
3522 to x_eh_spec_block.
3523 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
11fe225a 3524 * decl.c (current_binding_level): If no current function
52a11cbf
RH
3525 bindings, revert to scope_chain.
3526 (initialize_predefined_identifiers): Remove __cp_push_exception.
3527 (store_parm_decls): Use begin_eh_spec_block.
3528 (finish_function): Use finish_eh_spec_block.
3529 (mark_lang_function): Update for name changes.
3530 * decl2.c (finish_file): No mark_all_runtime_matches.
3531 * dump.c (cp_dump_tree): Handle new tree codes.
3532 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
3533 * except.c (catch_language_init, catch_language): Remove.
3534 (init_exception_processing): Don't set language code.
3535 Initialize call_unexpected_node, protect_cleanup_actions,
3536 eh_personality_libfunc, lang_eh_runtime_type.
3537 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
3538 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
3539 (prepare_eh_type): Split out type canonicalizations ...
3540 (build_eh_type_type): ... from here.
3541 (build_eh_type_type_ref): Remove.
3542 (mark_all_runtime_matches): Remove.
3543 (build_exc_ptr): New.
3544 (do_begin_catch, do_end_catch): New.
3545 (do_pop_exception): Remove.
3546 (build_terminate_handler): Remove.
3547 (choose_personality_routine): Split out language choice from ...
3548 (initialize_handler_parm): ... here.
3549 Use MUST_NOT_THROW_EXPR.
3550 (expand_start_catch_block): Use do_begin_catch. Simplify Java
3551 exception object handling.
3552 (expand_start_eh_spec, expand_end_eh_spec): Remove.
3553 (expand_exception_blocks, alloc_eh_object): Remove.
3554 (begin_eh_spec_block, finish_eh_spec_block): New.
3555 (do_allocate_exception, do_free_exception): New.
3556 (expand_throw): Merge into ...
3557 (build_throw): ... here. Update for abi.
3558 * expr.c (cplus_expand_expr): No expand_internal_throw.
3559 Handle MUST_NOT_THROW_EXPR.
3560 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
3561 * semantics.c (*) Update for except.h name changes.
3562 (genrtl_try_block): No protect_with_terminate.
3563 (genrtl_eh_spec_block): New.
3564 (genrtl_handler): Don't emit the goto here.
3565 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
3566 (genrtl_finish_function): Don't expand_exception_blocks.
3567 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
3568
826840d9
RH
35692001-03-28 Richard Henderson <rth@redhat.com>
3570
3571 * decl.c (struct named_label_list): Rename eh_region to
3572 in_try_scope, add in_catch_scope.
3573 (struct binding_level): Rename eh_region to is_try_scope,
3574 add is_catch_scope.
3575 (note_level_for_try): Rename from note_level_for_eh.
3576 (note_level_for_catch): New.
3577 (poplevel): Copy both is_try_scope and is_catch_scope to
3578 the named_label_list struct.
3579 (check_previous_goto_1): Don't check for catch block via
3580 DECL_ARTIFICIAL; use in_try_scope instead.
3581 (check_goto): Likewise.
3582 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
3583 * except.c (expand_start_catch_block): Call note_level_for_catch.
3584 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
3585
531073e7
RH
35862001-03-27 Richard Henderson <rth@redhat.com>
3587
3588 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
3589 exceptions_via_longjmp.
3590
8653a2c3
PE
35912001-03-27 Phil Edwards <pme@sources.redhat.com>
3592
3593 * pt.c (check_default_tmpl_args): Make error messages clearer.
3594
35952001-03-26 Phil Edwards <pme@sources.redhat.com>
3596
3597 * error.c: Also undefine 'A' macro used for cp_printers definition.
3598
911e6107
KG
35992001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3600
3601 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
3602
005a5cb0
MY
36032001-03-26 Mike Yang <yang@research.att.com>
3604 Mark Mitchell <mark@codesourcery.com>
3605
3606 * dump.c (dump_access): New function.
3607 (cp_dump_tree): Use it. Dump basetype information for class
3608 types.
3609
b850de4f
MM
36102001-03-26 Mark Mitchell <mark@codesourcery.com>
3611
3612 * Makefile.in (optimize.o): Depend on params.h.
3613 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
3614 (init_decl_processing): Set flag_no_inline when doing
3615 inlining-on-trees.
3616 * optimize.c: Include params.h.
3617 (struct inline_data): Improve documentation of FNS. Add
3618 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
3619 (INSNS_PER_STMT): New macro.
3620 (remap_block): Use CLONING_P.
3621 (inlinable_function_p): Don't inline big functions.
3622 (expand_call_inline): Keep track of how much inlining we've done.
3623 (optimize_function): Set FIRST_INLINED_FN.
3624 (maybe_clone_body): Set CLONING_P.
3625 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
3626 tree nodes.
3627 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
3628 rest_of_compilation. Clear DECL_RTL for local variables
3629 afterwards.
3630 (clear_decl_rtl): New function.
11fe225a 3631
788bf0e3
NS
36322001-03-26 Nathan Sidwell <nathan@codesourcery.com>
3633
3634 Implement DR 209
3635 * cp-tree.h (skip_type_access_control,
3636 reset_type_access_control): Prototype.
3637 * decl.c (grokdeclarator): Access of friends is not checked.
3638 * parse.y (component_decl_list): Reset type access control.
3639 * semantics.c (decl_type_access_control): Clear
3640 current_type_lookups.
3641 (save_type_access_control): Don't save if not deferring.
3642 (skip_type_access_control, reset_type_access_control): New
3643 functions.
3644 (begin_class_definition): Do type access control for basetypes.
3645 Start deferred access control.
3646 (finish_class_definition): Resume immediate access control if
3647 this is a local class.
3648
730e1556
KG
36492001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3650
3651 * class.c (add_method): Use memcpy/memmove, not bcopy.
3652
3653 * decl.c (duplicate_decls): Likewise.
3654
f1a0345c
JJ
36552001-03-23 Jakub Jelinek <jakub@redhat.com>
3656
3657 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
3658 not `_'.
3659
8e4ce833
JJ
36602001-03-23 Jakub Jelinek <jakub@redhat.com>
3661
3662 * decl.c (local_names): Define.
3663 (push_local_name): New.
3664 (grok_reference_init): Return init if initializing static reference
3665 variable with non-constant instead of emitting it.
3666 Move expand_static_init call to cp_finish_decl.
3667 (layout_var_decl): Call push_local_name.
3668 (maybe_commonize_var): Allow inlining functions even if they have
3669 static local variables, use comdat_linkage for them if flag_weak.
3670 (check_initializer): Call obscure_complex_init if
3671 grok_reference_init returned non-zero.
3672 (save_function_data): Clear x_local_names.
3673 (pop_cp_function_context): Free x_local_names.
3674 (mark_inlined_fns): Remove.
3675 (mark_lang_function): Mark x_local_names.
3676 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
3677 Mark inlined_fns as tree, remove call to mark_inlined_fns.
3678 * class.c (alter_access): Ensure DECL_ACCESS is never set if
3679 DECL_DISCRIMINATOR_P.
3680 * cp-tree.h (cp_language_function): Add x_local_names.
3681 (lang_decl_flags): Add discriminator into u2.
3682 (lang_decl_inlined_fns): Remove.
3683 (lang_decl): inlined_fns is now a TREE_VEC.
3684 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
3685 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
3686 TREE_VEC, not a custom structure.
3687 (optimize_function): Likewise.
3688 * mangle.c (discriminator_for_local_entity): Discriminate among
3689 VAR_DECL local entities.
3690 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
3691 is not valid.
3692
60c87482
BM
36932001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
3694
3695 Add support for Java interface method calls.
3696 * cp-tree.h (struct lang_type): Add java_interface flag.
3697 (TYPE_JAVA_INTERFACE): New macro.
3698 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
3699 by setting TYPE_JAVA_INTERFACE.
3700 * call.c (java_iface_lookup_fn): New static.
11fe225a 3701 (build_over_call): If calling a method declared in a
60c87482
BM
3702 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
3703 expression which resolves the function address.
3704 (build_java_interface_fn_ref): New function.
3705
94c7f30b
RH
37062001-03-22 Richard Henderson <rth@redhat.com>
3707
3708 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
3709 * except.c: Don't include it.
3710
fd8b7a0e 37112001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
826840d9 3712 based on an idea from Joe Buck <jbuck@synopsys.com>
fd8b7a0e
GP
3713
3714 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
3715 New nonterminals.
3716 (data_def, component_decl): Add reductions to bad_decl.
3717
a1c2b86d
JJ
37182001-03-22 Jakub Jelinek <jakub@redhat.com>
3719
3720 * method.c (do_build_assign_ref): Don't use build_modify_expr for
3721 anonymous aggregates, since they don't have assignment operator
3722 method.
3723 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
3724 assignment operators for anonymous structure fields.
3725
46ccf50a
JM
37262001-03-21 Jason Merrill <jason@redhat.com>
3727
3728 * pt.c (instantiate_decl): Abort if we see a member constant
3729 instantiation that doesn't already have its initializer.
3730 Downgrade explicit instantiation without definition to pedwarn.
3731
3732 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
3733 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
3734 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
3735
3736 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
3737 (pending_vtables): Remove.
3738 * decl2.c (pending_vtables): Remove.
3739 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
3740 CLASSTYPE_VTABLE_NEEDS_WRITING.
3741 (import_export_class): Likewise.
3742 (init_decl2): Don't mark pending_vtables.
3743 * lex.c (handle_pragma_vtable): Just sorry.
3744 * pt.c (instantiate_class_template): Don't mess with
3745 CLASSTYPE_VTABLE_NEEDS_WRITING.
3746 (mark_class_instantiated): Likewise.
3747 * ptree.c (print_lang_type): Don't print it.
3748 * semantics.c (begin_class_definition): Don't set it.
3749
3750 * pt.c (template_tail): Replace with last_pending_template.
3751 (maybe_templates, maybe_template_tail): Remove.
3752 (add_pending_template): Adjust.
3753 (instantiate_pending_templates): Adjust.
3754
3755 * cp-tree.h (struct saved_scope): Remove lang_stack field.
3756 (current_lang_stack): Remove.
3757 * decl.c (maybe_push_to_top_level): Don't initialize it.
3758 (duplicate_decls): Use current_lang_depth.
3759 (xref_basetypes): Likewise.
3760 * class.c (current_lang_depth): New fn.
3761 (push_lang_context): Use more varray functionality.
3762 (pop_lang_context): Likewise.
64d9c3fe
JM
3763
3764 * error.c (GLOBAL_THING): Always use '__'.
3765
1c06710a
MM
37662001-03-21 Mark Mitchell <mark@codesourcery.com>
3767
71cb9286
MM
3768 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
3769
1c06710a
MM
3770 * mangle.c (mangle_decl_string): Mangle the names of overloaded
3771 operators, even when they have `extern "C"' linkage.
3772
92643fea
MM
37732001-03-19 Mark Mitchell <mark@codesourcery.com>
3774
3775 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
3776 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
3777 where it's not necessary.
3778 (add_method): Remove optimization involving comparison of
3779 DECL_ASSEMBLER_NAME.
3780 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
3781 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
3782 where it's not necessary.
3783 (check_methods): Likewise.
3784 (build_clone): Likewise.
3785 (built_vtt): Likewise.
3786 * cp-tree.h (DECL_NEEDED_P): Likewise.
3787 * decl.c (pushtag): Likewise.
3788 (duplicate_decls): Likewise.
3789 (pushdecl): Likewise.
3790 (builtin_function): Likewise.
3791 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
3792 (build_cp_library_fn): Likewise.
3793 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
3794 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
3795 where it's not necessary.
3796 (make_rtl_for_nonlocal_decl): Likewise.
3797 (cp_finish_decl): Likewise.
3798 (grokfndecl): Likewise.
3799 (grokvardecl): Likewise.
3800 (grokdeclarator): Likewise.
3801 (start_function): Likewise.
3802 (cp_missing_return_ok_p): Likewise.
3803 * decl2.c (grokclassfn): Likewise.
3804 (check_classfn): Likewise.
3805 (finish_static_data_member_decl): Likewise.
3806 (grokfield): Likewise.
3807 * error.c (GLOBAL_IORD_P): Remove.
3808 (dump_global_iord): Improve output.
3809 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
3810 * except.c (nothrow_libfn_p): Summarily reject any function not in
3811 namespace-scope.
3812 * init.c (build_java_class_ref): Don't explicitly set
3813 DECL_ASSEMBLER_NAME after calling mangle_decl.
3814 * mangle.c (mangle_decl_string): Handle extern "C" functions.
3815 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
3816 * method.c (set_mangled_name_for_decl): Don't explicitly set
3817 DECL_ASSEMBLER_NAME after calling mangle_decl.
3818 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
3819 IDENTIFIER_GLOBAL_VALUE for the thunk.
3820 * pt.c (set_mangled_name_for_template_decl): Remove.
3821 (check_explicit_specialization): Don't use it.
3822 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
3823 (tsubst_friend_function): Likewise.
3824 (tsubst_decl): Likewise.
3825 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
3826 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
3827 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
3828 where it's not necessary.
3829 (tinfo_base_init): Likewise.
3830 (create_real_tinfo_var): Likewise.
3831 * search.c (looup_field_1): Likewise.
3832 * semantics.c (finish_named_return_value): Likewise.
3833 * tree.c (init_tree): Set lang_set_decl_assembler_name.
11fe225a 3834
d064d75a
GDR
38352001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
3836
3837 Correct semantics restrictions checking in throw-expression.
3838 * except.c (is_admissible_throw_operand): New function.
3839 (build_throw): Use it.
3840
a3eab619
MM
38412001-03-14 Mark Mitchell <mark@codesourcery.com>
3842
3843 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
3844 and its ilk.
3845
19e7881c
MM
38462001-03-14 Mark Mitchell <mark@codesourcery.com>
3847
3848 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
3849 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
3850 * decl.c (duplicate_decls): Likewise.
3851 (builtin_function): Likewise.
3852 (build_library_fn): Likewise.
3853 (build_cp_library_fn): Likewise.
3854 (check_initializer): Likewise.
3855 (cp_finish_decl): Likewise.
3856 * decl2.c (grokfield): Likewise.
3857 (grok_function_init): Remove #if 0'd code.
3858 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
3859 * friend.c (do_friend): Likewise.
3860 * init.c (get_temp_regvar): Likewise.
3861 * method.c (make_thunk): Likewise.
3862 * pt.c (tsubst_friend_function): Likewise.
3863 (tsubst_decl): Likewise.
3864 (regenerate_decl_from_template): Likewise.
3865 * semantics.c (genrtl_named_return_value): Likewise.
3866 (expand_body): Likewise.
3867 (genrtl_finish_function): Likewise.
3868 * tree.c (cp_tree_equal): Likewise.
11fe225a 3869
78fe06c2
NS
38702001-03-12 Nathan Sidwell <nathan@codesourcery.com>
3871
3872 * call.c (convert_like_real): Add extra semantics to INNER
3873 parameter. Don't convert to temporary if a user conversion
3874 gives us an lvalue that we're about to bind to a reference.
3875 Set INNER to indicate pending reference binding on recursive
3876 calls.
3877
b3e68a79
NB
38782001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3879
3880 * cp/lex.c: Delete duplicate pending_lang_change.
3881
38822001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3883
3884 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
3885 Similarly.
3886 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
3887 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
3888
11642c3a
ZW
38892001-03-09 Zack Weinberg <zackw@stanford.edu>
3890
3891 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
3892
bb6852eb 38932001-03-08 Stan Shebs <shebs@apple.com>
f7687817
SS
3894
3895 * cp-tree.h (set_identifier_local_value): Remove unused decl.
3896
cc937581
ZW
38972001-03-06 Zack Weinberg <zackw@stanford.edu>
3898
3899 * spew.c: Remove references to CPP_OSTRING.
3900
d1188d91
AH
39012001-03-06 Andrew Haley <aph@redhat.com>
3902
3903 * typeck.c (convert_arguments): Check that we have an fndecl.
3904
4eaf1d5b
AH
39052001-03-05 Andrew Haley <aph@redhat.com>
3906
3907 * typeck.c (convert_arguments): Don't do ellipsis conversion for
3908 __built_in_constant_p.
3909
7eeb553c
NS
39102001-03-02 Nathan Sidwell <nathan@codesourcery.com>
3911
3912 * typeck.c (build_static_cast): Allow enum to enum conversions
3913 as per DR 128.
3914
d282fcb2
NS
39152001-03-02 Nathan Sidwell <nathan@codesourcery.com>
3916
3917 * class.c (check_field_decls): Pointers to member do not a
3918 non-pod struct make, as per DR 148.
3919
f86fdf68
NS
39202001-03-02 Nathan Sidwell <nathan@codesourcery.com>
3921
3922 * call.c (joust): cp_pedwarn when using gnu extension concerning
3923 worst conversion sequences.
3924
d6edb99e
ZW
39252001-03-01 Zack Weinberg <zackw@stanford.edu>
3926
3927 * decl.c: Replace all uses of 'boolean' with 'bool'.
3928
f7143427
ZW
39292001-03-01 Zack Weinberg <zackw@stanford.edu>
3930
3931 * lang-specs.h: Add zero initializer for cpp_spec field to
3932 all array elements that need one. Don't put an #ifdef inside
3933 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
3934 use it.
3935
fbfe8c9e
NS
39362001-03-01 Nathan Sidwell <nathan@codesourcery.com>
3937
3938 Implement using decls inside template functions.
3939 * decl2.c (validate_nonmember_using_decl): Don't special case
3940 fake_std_node in the global namespace. Don't reject early when
3941 processing a template.
3942 (do_local_using_decl): Add to statement tree. Don't do further
3943 processing when building a template.
3944 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
3945
4d24a889
NS
39462001-03-01 Nathan Sidwell <nathan@codesourcery.com>
3947
3948 * decl2.c (do_nonmember_using_decl): Don't complain if we find
3949 same function. Do complain about ambiguating extern "C"
3950 declarations.
3951
e5844e6d
NS
39522001-02-28 Nathan Sidwell <nathan@codesourcery.com>
3953
3954 Remove floating point and complex type template constant parms.
3955 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
3956 COMPLEX_TYPE extensions.
3957 (invalid_nontype_parm_type_p): Likewise.
3958
788f238c
JO
39592001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
3960
3961 * except.c (call_eh_info): Revert "match_function"'s type.
3962
73ea87d7
NS
39632001-02-27 Nathan Sidwell <nathan@codesourcery.com>
3964
3965 Fix ctor vtable vcall offsets.
3966 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
3967 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
3968 (get_matching_base): Remove.
3969 (get_original_base): New function.
11fe225a 3970 (build_vtbl_initializer): Initialize vid.rtti_binfo.
73ea87d7
NS
3971 Use a virtual thunk for a ctor vtable with an index
3972 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
3973 primary base within a constructor vtable. Only set
3974 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
3975 when primary base has been lost.
3976 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
3977
fe730161
JO
39782001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
3979
3980 * call.c (joust): Ensure more_specialized()'s argument length
3981 parameter has correct value for constructors.
3982
e5dd4aad
NS
39832001-02-26 Nathan Sidwell <nathan@codesourcery.com>
3984
3985 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
11fe225a 3986
e5dd4aad
NS
3987 * decl.c (mark_inlined_fns): Prototype.
3988
25200ab2
MM
39892001-02-22 Mark Mitchell <mark@codesourcery.com>
3990
3991 * spew.c (yylex): Correct handling of friends.
3992
f58c04ac
MM
39932001-02-22 Mark Mitchell <mark@codesourcery.com>
3994
3995 * mangle.c (write_encoding): Pass write_function_type the
3996 FUNCTION_DECL for the function being encoded.
3997 (write_function_type): Pass it along to write_bare_function_type.
3998 (write_bare_function_type): Pass it along to write_method_parms.
3999 (write_method_parms): Don't mangle the compiler-generated
4000 parameters to a constructor or destructor.
4001
9c96f3f8
AJ
40022001-02-22 Andreas Jaeger <aj@suse.de>
4003
4004 * optimize.c: Include toplev.h for
4005 note_deferral_of_defined_inline_function prototype.
4006
b3bae5e2
JJ
40072001-02-22 Jakub Jelinek <jakub@redhat.com>
4008
4009 * cp-tree.h (struct lang_decl_inlined_fns): New.
4010 (struct lang_decls): Add inlined_fns.
4011 (DECL_INLINED_FNS): New macro.
4012 * optimize.c (struct inline_data): Add inlined_fns.
4013 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
4014 (inlinable_function_p): Likewise, fix typo in comment,
4015 function is not inlinable if it already inlined function currently
4016 being optimized.
306ef644 4017 (expand_call_inline): Add fn to inlined_fns if necessary.
b3bae5e2
JJ
4018 (optimize_function): Initialize inlined_fns.
4019 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
4020 * decl.c (mark_inlined_fns): New function.
4021 (lang_mark_tree): Call it.
4022
5daf7c0a
JM
40232001-02-21 Jason Merrill <jason@redhat.com>
4024
4025 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
4026 (DECL_UNINLINABLE): Move to middle-end.
4027
4028 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
4029 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
4030 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
4031 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
4032 parms and outer BLOCK. note_deferral_of_defined_inline_function.
4033
4034 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
4035 second parm of op=.
4036
2c0fc02d
MM
40372001-02-19 Mark Mitchell <mark@codesourcery.com>
4038
4039 * decl2.c (set_decl_namespace): Allow explicit instantiations in
4040 any namespace.
4041
612164eb
KL
40422001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4043
4044 * optimize.c (expand_call_inline): Don't walk subtrees of type
4045 nodes.
4046
69a59a49
MM
40472001-02-18 Mark Mitchell <mark@codesourcery.com>
4048
4049 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
4050 for a destructor.
4051
e0fff4b3
JM
40522001-02-18 Jason Merrill <jason@redhat.com>
4053
4054 Do put the VTT parameter in DECL_ARGUMENTS.
4055 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
4056 (current_vtt_parm): New macro.
4057 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
4058 (DECL_HAS_VTT_PARM_P): New macro.
4059 (DECL_VTT_PARM): Remove.
4060 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
4061 * decl.c (duplicate_decls): Only copy the operator code if
4062 appropriate.
4063 (start_function): Set current_vtt_parm.
4064 (lang_mark_tree): Don't mark vtt_parm.
9c96f3f8 4065 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
e0fff4b3
JM
4066 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
4067 * class.c (build_clone): Maybe remove the VTT parm.
4068 * optimize.c (maybe_clone_body): Set up the VTT parm.
4069 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
4070 * call.c (build_over_call): Just allow the VTT arg.
4071 * method.c (make_thunk): Don't set DECL_VTT_PARM.
4072 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
4073 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
4074 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
4075 * error.c (dump_function_decl): Likewise.
4076 * call.c (build_user_type_conversion_1, convert_like_real): Abort
4077 if we try to call a constructor with in-charge or VTT parms.
4078 * method.c (skip_artificial_parms_for): New fn.
4079 * call.c (add_function_candidate, build_over_call): Call it.
4080 * call.c (build_new_method_call): Use current_vtt_parm.
4081 * init.c (expand_virtual_init): Likewise.
4082 * class.c (same_signature_p): No longer static.
4083 * cp-tree.h: Declare it.
4084 * search.c (look_for_overrides_r): Use it.
4085
c750255c
MM
40862001-02-17 Mark Mitchell <mark@codesourcery.com>
4087
8fa33dfa
MM
4088 * cp-tree.h (new_abi_rtti_p): Remove.
4089 (name_mangling_version): Likewise.
4090 (flag_do_squangling): Likewise.
4091 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
4092 * decl.c (grokfndecl): Likewise.
4093 * decl2.c (name_mangling_version): Remove.
4094 (flag_do_squangling): Likewise.
4095 (lang_f_options): Remove `squangle'.
4096 (unsupported_options): Add `squangle'.
4097 (cxx_decode_option): Issue a warning about uses of
4098 -fname-mangling-version.
4099 (finish_file): Remove old ABI support.
4100 * pt.c (check_explicit_specialization): Likewise.
4101 (tsubst_decl): Likewise.
4102 * rtti.c (init_rtti_processing): Likewise.
4103 (build_headof): Likewise.
4104 (get_tinfo_decl_dynamic): Likewise.
4105 (tinfo_from_decl): Likewise.
4106 (build_dynamic_cast_1): Likewise.
4107 (synthesize_tinfo_var): Likewise.
12fa82db
MM
4108 * init.c (build_new): Allow enumeration types for the array-bounds
4109 in a direct-new-declarator.
4110
4111 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
4112
c750255c
MM
4113 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
4114 TREE_PROTECTED from the template being specialized.
4115
a714e5c5
JM
41162001-02-17 Jason Merrill <jason@redhat.com>
4117
4118 * decl2.c (build_artificial_parm): Set TREE_READONLY.
4119
9c96f3f8 4120 * decl.c (bad_specifiers): Allow throw specs on things with
a714e5c5
JM
4121 pointer-to-function or -member-function type.
4122 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
4123 a pmf.
4124
8084b91e
MM
41252001-02-17 Mark Mitchell <mark@codesourcery.com>
4126
4127 * call.c (check_dtor_name): Handle template names correctly.
4128
48f22ed2
JM
41292001-02-16 Jason Merrill <jason@redhat.com>
4130
4131 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
4132 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
4133 * optimize.c (maybe_clone_body): Don't substitute it.
4134 * call.c (build_new_method_call): Check in_chrg instead.
4135 * init.c (expand_virtual_init): Likewise.
4136
e8186ecf
GDR
41372001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
4138
4139 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
4140 class-type introduces at least a type-name.
4141
2c1be322
JJ
41422001-02-16 Jakub Jelinek <jakub@redhat.com>
4143
4144 * call.c (convert_like_real): Create a temporary for non-lvalue.
4145
aab8454a
JO
41462001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
4147
4148 * cp-tree.h: Fix typos in comments.
4149
a901fa64
JM
41502001-02-16 Jason Merrill <jason@redhat.com>
4151
4152 * optimize.c (remap_block): If we're compiling a clone, pass the
4153 new block to insert_block.
4154
8853373c
MM
41552001-02-16 Mark Mitchell <mark@codesourcery.com>
4156
4157 * semantics.c (finish_asm_stmt): Robustify.
4158
b60ecc04
MM
41592001-02-15 Mark Mitchell <mark@codesourcery.com>
4160
4161 * pt.c (push_template_decl_real): Don't remangle the name of a
4162 class template.
4163
e658449e
JM
41642001-02-15 Jim Meyering <meyering@lucent.com>
4165
fd48c9b5
DD
4166 * Make-lang.in (c++.install-common): Depend on installdirs.
4167 (c++.install-info): Likewise.
4168 (c++.install-man): Likewise.
e658449e 4169
f1a3f197
MM
41702001-02-15 Mark Mitchell <mark@codesourcery.com>
4171
4172 * typeck2.c (build_m_component_ref): Robustify.
4173
8826b15b
AO
41742001-02-15 Alexandre Oliva <aoliva@redhat.com>
4175
4176 * friend.c (do_friend): Don't take the nested [template] class
4177 into account when deciding whether to warn about the friend
4178 function not referring to a template function.
4179
7161c1a5
JJ
41802001-02-14 Jakub Jelinek <jakub@redhat.com>
4181
4182 * typeck.c (build_unary_op): Clarify error message.
4183
4806765e
AH
41842001-02-08 Aldy Hernandez <aldyh@redhat.com>
4185
a901fa64
JM
4186 * parse.y (component_constructor_declarator): allow optional
4187 parentheses around constructor class name.
4806765e 4188
bfc8e1e2
NS
41892001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4190
4191 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
4192 section.
4193 * init.c (emit_base_init): Remove incorrect comment about
4194 virtual bases.
4195 * method.c (make_thunk): Fix comment alignment.
4196
394fd776
NS
41972001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4198
4199 Kill remnants of this is variable.
4200 * cp-tree.h (flag_this_is_variable): Remove.
4201 * decl2.c (flag_this_is_variable): Remove.
4202 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
4203 (build_vbase_path): The path is non-static, even in a cdtor.
4204 (resolves_to_fixed_type_p): Add additional return value.
4205 * search.c (init_vbase_pointers): Adjust.
4206 * tree.c (lvalue_p_1): Adjust.
4207 * typeck.c (mark_addressable): Adjust.
4208
d0ab7624
NS
42092001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4210
4211 * pt.c (unify): Don't check cv quals of array types.
4212
7773899b
NS
42132001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4214
4215 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
4216 check whether we already have the type.
4217
52682a1b
MM
42182001-02-13 Mark Mitchell <mark@codesourcery.com>
4219
4220 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
4221 * call.c (build_op_delete_call): Simplify to remove duplicate
4222 code.
4223 * class.c (clone_function_decl): Don't build the deleting variant
4224 of a non-virtual destructor.
4225 * decl.c (finish_destructor_body): Don't call delete if this is a
4226 non-virtual destructor.
4227 * init.c (build_delete): Explicitly call `operator delete' when
4228 deleting an object with a non-virtual destructor.
9c96f3f8 4229
3b6bd115
JM
42302001-02-13 Jason Merrill <jason@redhat.com>
4231
4232 * lang-specs.h: Add more __EXCEPTIONS.
4233
45abaea8
NS
42342001-02-12 Nathan Sidwell <nathan@codesourcery.com>
4235
4236 * typeck2.c (process_init_constructor): Check
4237 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
4238
996065b4
NS
42392001-02-12 Nathan Sidwell <nathan@codesourcery.com>
4240
4241 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
4242 Remove spurious information in comment. Allow further
4243 adjustments of REFERENCE_TYPE args.
4244
82c18d5c
NS
42452001-02-12 Nathan Sidwell <nathan@codesourcery.com>
4246
4247 * errfn.c (cp_deprecated): Tweak diagnostic text.
4248 * parse.y (new_initializer): Deprecate initializer lists
4249 extension.
4250
1f84ec23
MM
42512001-02-12 Mark Mitchell <mark@codesourcery.com>
4252
4253 Remove old ABI support.
4254
8c310e3f
MM
42552001-02-11 Mark Mitchell <mark@codesourcery.com>
4256
b1012f1b
MM
4257 * decl2.c (flag_vtable_thunks): Always set it to 1.
4258 (flag_new_abi): Likewise.
4259 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9c96f3f8 4260
8c310e3f
MM
4261 * Makefile.in (g++spec.o): Fix typo.
4262
3b635dfc
JM
42632001-02-09 Jason Merrill <jason@redhat.com>
4264
4265 * lang-specs.h: Restore definition of __EXCEPTIONS.
4266
bd0d5d4a
JM
42672001-02-08 Jason Merrill <jason@redhat.com>
4268
4269 * search.c (shared_member_p): New function.
4270 (lookup_field_r): Use it.
4271 * cp-tree.h (SHARED_MEMBER_P): Remove.
4272
4273 * method.c (process_overload_item): Handle template-dependent array
4274 bounds.
4275 * pt.c (type_unification_real): If we end up with undeduced nontype
4276 parms, try again.
4277
4278 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
4279 types.
4280
4281 * typeck2.c (friendly_abort): Don't say anything if we have
4282 earlier errors or sorries.
4283
9c96f3f8 4284 * decl.c (check_tag_decl): Notice attempts to redefine bool and
bd0d5d4a
JM
4285 wchar_t. Ignore if in_system_header.
4286
4287 * decl.c (maybe_push_cleanup_level): New fn...
4288 (start_decl_1): ...split out from here.
4289 * cvt.c (build_up_reference): Use it.
4290 * cp-tree.h: Declare it.
4291
a9374841
MM
42922001-02-07 Mark Mitchell <mark@codesourcery.com>
4293
9c96f3f8 4294 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
a9374841
MM
4295 spec.
4296
a87b4257
NS
42972001-02-06 Nathan Sidwell <nathan@codesourcery.com>
4298
4299 * pt.c (lookup_template_class): Make sure it's a primary
4300 template or template_template_parm when called from the parser.
4301 (instantiate_template_class): Add assertion.
4302
518fed76
AO
43032001-02-05 Alexandre Oliva <aoliva@redhat.com>
4304
4305 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
4306 from error_mark_node.
4307
9965d119
NS
43082001-02-05 Nathan Sidwell <nathan@codesourcery.com>
4309
4310 Fix specification and implementation bugs in V3 ABI
4311 construction vtables.
4312 * cp-tree.h (flag_dump_class_layout): New flag.
4313 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
4314 (BINFO_LOST_PRIMARY_P): New flag.
4315 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
4316 (BINFO_PRIMARY_MARKED_P): Rename to ...
4317 (BINFO_PRIMARY_P): ... here.
4318 (binfo_via_virtual): New prototype.
4319 * decl2.c (flag_dump_class_layout): New flag.
4320 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
4321 use `=' as a file name separator.
4322 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
4323 bases.
4324 (build_vtbl_address): If this is a virtual primary base, then
4325 get the vtbl of what it is ultimately primary for.
4326 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
4327 for BINFO_PRIMARY_P.
4328 (dfs_skip_nonprimary_vbases_markedp): Likewise.
4329 (get_shared_vbase_if_not_primary): Likewise.
4330 (dfs_get_pure_virtuals): Likewise.
4331 (expand_upcast_fixups): Likewise.
4332 (fixup_virtual_upcast_offsets): Likewise.
4333 (dfs_find_vbase_instance): Likewise.
4334 (find_vbase_instance): Likewise.
4335 (binfo_from_vbase): Adjust comment to reflect reality.
4336 (binfo_via_virtual): New function.
4337 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
4338 for binfo walking during VTT construction.
4339 (dfs_mark_primary_bases): Remove.
4340 (force_canonical_binfo_r): New function.
4341 (force_canonical_binfo): New function.
4342 (mark_primary_virtual_base): New function.
4343 (mark_primary_bases): Walk in inheritance graph order, use
4344 mark_primary_virtual_base.
4345 (determine_primary_base): Use some more intermediate variables.
4346 (dfs_find_final_overrider): Don't check for overriding along a
4347 virtual path.
4348 (dfs_modify_vtables): Walk into primary virtual bases too.
4349 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
4350 (build_base_fields): Likewise.
4351 (dfs_set_offset_for_unshared_vbases): Likewise.
4352 (layout_virtual_bases): Likewise.
4353 (end_of_class): Likewise.
4354 (finish_struct_1): Call dump_class_hierarchy, if requested.
4355 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
4356 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
4357 (dump_class_hierarchy): Add file parameter. Append to file, if
4358 required.
4359 (finish_vtbls): Adjust accumulate_vtbl_inits call.
4360 Use canonical base for virtual bases.
4361 (build_vtt): Add more comments. Adjust build_vtt_inits call.
4362 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
4363 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
4364 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
4365 virtual VTTs.
4366 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
4367 from DATA. We want virtual primary bases and all bases via virtual.
4368 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
4369 virtual base when not a construction vtable.
4370 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
4371 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
4372 Use canonical bases when processing virtual bases.
4373 (accumulate_vtbl_inits): We're interested in any base via a
4374 virtual path.
4375 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
4376 within a construction vtable, determine what is being overridden.
4377 (build_vtbl_initializer): Add more comments
4378 (add_vcall_offset_vtbl_entries_1): Adjust comment.
4379 (build_rtti_vtbl_entries): Check if the base has lost its
4380 primary.
4381
39d6f2e8
MM
43822001-02-05 Mark Mitchell <mark@codesourcery.com>
4383
4384 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
4385
400500c4
RK
4386Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4387
4388 * decl.c (pushdecl): Call abort instead of fatal.
4389 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
4390 * init.c (build_new_1): Likewise.
4391 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
4392 * decl.c (build_typename_type): hash_table_init now returns void.
4393 decl.c (init_decl_processing): Make an error non-fatal.
4394
97458258
MM
43952001-02-04 Mark Mitchell <mark@codesourcery.com>
4396
4397 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
4398 Document.
4399 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
4400 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
4401 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
4402 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
4403 * decl.c (maybe_commonize_var): Use the new name-mangling where
4404 appropriate.
4405 * decl2.c (comdat_linkage): Enhance comments. Make all
4406 compiler-generated things static, if COMDAT is not available.
4407 (get_tinfo_decl): Do not make typeinfo objects that belong in the
4408 library COMDAT.
4409 (tinfo_base_init): Use the correct mangled name for typeinfo
4410 strings, and push them into the global scope.
4411 (typeinfo_in_lib_p): New function.
4412 (synthesize_tinfo_var): Use it.
4413 (create_real_tinfo_var): Likewise.
9c96f3f8 4414
55de1b66
JJ
44152001-02-03 Jakub Jelinek <jakub@redhat.com>
4416
4417 * decl.c (push_class_binding): Use context_for_name_lookup instead
4418 of CP_DECL_CONTEXT.
4419 * search.c (context_for_name_lookup): Remove static. Check for NULL
4420 context in the loop.
4421 * cp-tree.h (context_for_name_lookup): Add prototype.
4422
e92730aa
JJ
44232001-02-02 Jakub Jelinek <jakub@redhat.com>
4424
4425 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
4426 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
4427 Remove.
4428 * call.c (convert_class_to_reference, build_user_type_conversion_1,
4429 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
4430
049f6ec9
MM
44312001-02-02 Mark Mitchell <mark@codesourcery.com>
4432
4433 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
4434 of macros used when compiling g++spec.c.
4435 * g++spec.c (lang_specific_driver): Link with the shared
4436 libgcc by default.
4437
718b8ea5
JM
44382001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
4439
4440 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
4441 make_reference_declarator, make_call_declarator), method.c
4442 (implicitly_declare_fn), parse.y (namespace_using_decl,
4443 notype_unqualified_id, expr_or_declarator, new_type_id,
4444 after_type_declarator, direct_after_type_declarator,
4445 notype_declarator, complex_notype_declarator,
4446 complex_direct_notype_declarator, qualified_id,
4447 notype_qualified_id, overqualified_id, direct_new_declarator,
4448 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
4449 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
4450 instead of build_parse_node.
4451
f2d1f0ba
KG
44522001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4453
4454 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
4455 (minus_one_node): Moved to top level gcc directory. Renamed
4456 to integer_minus_one_node.
4457
4458 * init.c (init_init_processing): Don't set minus_one_node.
4459 (build_vec_init): Use integer_minus_one_node.
4460
4461 * rtti.c (get_tinfo_decl_dynamic): Likewise.
4462
6001735e
JJ
44632001-01-28 Jakub Jelinek <jakub@redhat.com>
4464
4465 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
4466 identical and they would be replaced with constant, remove
4467 MODIFY_EXPR from the tree.
4468
c913b6f1
KG
44692001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4470
4471 * Make-lang.in: Remove all dependencies on defaults.h.
4472 * call.c: Don't include defaults.h.
4473 * decl.c: Likewise.
4474 * decl2.c: Likewise.
4475 * except.c: Likewise.
4476 * pt.c: Likewise.
4477 * rtti.c: Likewise.
4478 * tree.c: Likewise.
4479 * typeck.c: Likewise.
4480
324ffb8c
JJ
44812001-01-25 Jakub Jelinek <jakub@redhat.com>
4482
4483 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
4484 operators even in "C" linkage.
4485 * method.c (set_mangled_name_for_decl): Likewise.
4486 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
4487 overloaded operators in "C" linkage.
4488
4b2811e9
NS
44892001-01-24 Nathan Sidwell <nathan@codesourcery.com>
4490
4491 * pt.c (tsubst_decl): Remove IN_DECL parameter.
4492 (tsubst_arg_types): Check parameter is not void.
4493 (tsubst): Adjust tsubst_decl call.
4494
d8caf48e
NS
44952001-01-24 Nathan Sidwell <nathan@codesourcery.com>
4496
4497 * call.c (add_builtin_candidate): Quote std properly, from
4498 previous change.
4499
08511114
KL
45002001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4501
4502 * pt.c (check_explicit_specialization): Clone constructors and
4503 destructors.
4504
92ecdfb7
NS
45052001-01-23 Nathan Sidwell <nathan@codesourcery.com>
4506
4507 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
4508 indicates anything special about template depth. Make sure we
4509 only count the user visible template classes.
4510
4cff6abe
NS
45112001-01-23 Nathan Sidwell <nathan@codesourcery.com>
4512
4513 * call.c (build_conv): Typo in comment.
4514 (add_builtin_candidate): Add more explanation.
4515 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
4516 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
4517 when we have enumeral types.
4518 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
4519 candidates for relops and eqops.
4520 (joust): Simplify control flow. Allow a non-template user
4521 function to hide a builtin.
4522
62e4a758
NS
45232001-01-22 Nathan Sidwell <nathan@codesourcery.com>
4524
4525 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
4526 (more_specialized): Add deduction parameter.
4527 * call.c (joust): Adjust more_specialized call.
4528 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
4529 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
4530 (get_bindings_order): Remove.
4531 (get_bindings_real): Add DEDUCE parameter.
4532 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
4533 REFERENCE_TYPE jig for DEDUCE_ORDER.
4534 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
4535 maybe_adjust_types_for_deduction.
4536 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
4537 directly.
4538 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
4539 (check_cv_quals_for_unify): Use new unify qualifier flags.
4540 (unify): Clear new unify qualifier flags.
4541 (get_bindings_real): Add DEDUCE parameter.
4542 (get_bindings): Adjust call to get_bindings_real.
4543 (get_bindings_overload): Likewise.
4544 (most_specialized_instantiation): Adjust call to
4545 more_specialized.
4546
2a2a9e5a
JM
45472001-01-19 Jason Merrill <jason@redhat.com>
4548
4549 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
4550
4551 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
4552 -fnew-abi.
4553
60696c53
JM
45542001-01-19 Ute Pelkmann <scope.muc@t-online.de>
4555
4556 * decl2.c (arg_assoc_class): Fix double iteration logic.
4557
45582001-01-19 Jason Merrill <jason@redhat.com>
4559
4560 * init.c (build_delete): Always call convert_force to strip cv-quals.
4561
4562 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
4563 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
4564 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
4565
1e00f18c
NS
45662001-01-19 Nathan Sidwell <nathan@codesourcery.com>
4567
4568 * search.c (get_vbase_1): Count only virtual bases.
4569
e13bced2
NS
45702001-01-19 Nathan Sidwell <nathan@codesourcery.com>
4571
4572 * class.c (duplicate_tag_error): Robustify flag clearing.
4573
f9c244b8
NS
45742001-01-19 Nathan Sidwell <nathan@codesourcery.com>
4575
4576 * cp-tree.h (lookup_template_class): Add complain parm.
4577 * decl.c (lookup_namespace_name): Adjust call to
4578 lookup_template_class.
4579 (make_typename_type): Likewise.
4580 * semantics.c (finish_template_type): Likewise.
4581 * pt.c (lookup_template_class): Add complain parm. Adjust.
4582 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
4583 (tsubst): Likewise.
4584
08c2df0f
NS
45852001-01-19 Nathan Sidwell <nathan@codesourcery.com>
4586
4587 * pt.c (copy_default_args_to_explicit_spec): Preserve
4588 object's CV quals. Reorganize.
4589
f5ceeec8
NS
45902001-01-18 Nathan Sidwell <nathan@codesourcery.com>
4591
4592 * typeck.c (build_modify_expr): Say `initialization' for
4593 INIT_EXPRs.
4594 * init.c (build_default_init): Convert to enumeral type, if
4595 needed.
4596
a1cfa434
JJ
45972001-01-18 Jakub Jelinek <jakub@redhat.com>
4598
4599 * parse.y (nomods_initdcl0): Properly set things up for
4600 initdcl0_innards.
4601
028d1f20
NS
46022001-01-18 Nathan Sidwell <nathan@codesourcery.com>
4603
4604 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
4605 (type_unification_real): Set it.
4606 (unify): Use it.
4607
9f724b6a
NS
46082001-01-18 Nathan Sidwell <nathan@codesourcery.com>
4609
4610 * decl.c (finish_destructor_body): Convert to vbase pointer here.
4611
522d6614
NS
46122001-01-18 Nathan Sidwell <nathan@codesourcery.com>
4613
4614 * semantics.c (begin_class_definition): Check we're not inside a
4615 template parm list.
4616
7f805b8f
NS
46172001-01-18 Nathan Sidwell <nathan@codesourcery.com>
4618
4619 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
4620 BASELINK_P.
4621
dc3799c1
KL
46222001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4623
4624 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
4625 * call.c (build_over_call): Add comment.
4626
bb37c4a5
DB
46272001-01-16 Daniel Berlin <dberlin@redhat.com>
4628
826840d9
RH
4629 * cvt.c (ocp_convert): Handle vector type conversion
4630 * typeck2.c (digest_init): Handle vector type initializations
9c96f3f8 4631
a26e7fb5
PE
46322001-01-16 Phil Edwards <pme@sources.redhat.com>
4633
4634 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
4635 was given.
4636
11b810f1
NS
46372001-01-15 Nathan Sidwell <nathan@codesourcery.com>
4638
4639 * pt.c (check_nontype_parm): Rename to ...
4640 (invalid_nontype_parm_type_p): ... here.
4641 (process_template_parm): Adjust.
4642 (convert_template_argument): Adjust.
4643
db3f4e4e
NS
46442001-01-15 Nathan Sidwell <nathan@codesourcery.com>
4645
4646 * pt.c (check_nontype_parm): New function.
4647 (process_template_parm): Use it.
4648 (convert_template_argument): Use it.
4649 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
4650 member.
4651
ea4f1fce
JO
46522001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
4653
4654 * tree.c: Add defaults.h
4655 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
4656 * Make-lang.in (cp/tree.o): Add defaults.h.
4657
1312c143
JM
46582001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
4659
4660 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
4661
4bc1997b
JM
46622001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
4663
4664 * g++.1: Change to be ".so man1/gcc.1".
4665
23de1fbf
JM
46662001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
4667
4668 * Make-lang.in (c++.info, c++.install-info): Build and install g++
4669 internals info.
4670 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
4671 ($(srcdir)/cp/g++int.info): New target.
4672 * gxxint.texi: Add info directory entry. Use @@ in email address.
4673 * .cvsignore: Update.
4674
0949f723
NS
46752001-01-12 Nathan Sidwell <nathan@codesourcery.com>
4676
4677 * typeck.c (build_c_cast): Do template processing earlier.
4678 Always pedwarn on array casts.
4679
a8641661
NS
46802001-01-12 Nathan Sidwell <nathan@codesourcery.com>
4681
4682 * friend.c (make_friend_class): Make sure a templated class is
4683 actually a template.
4684
844511c8
NS
46852001-01-11 Nathan Sidwell <nathan@codesourcery.com>
4686
4687 * decl2.c (get_guard): Set linkage from guarded decl.
4688
96a1e32d
NS
46892001-01-11 Nathan Sidwell <nathan@codesourcery.com>
4690
4691 * call.c (convert_default_arg): Check for unprocessed
4692 DEFAULT_ARG.
4693 * cp-tree.h (replace_defarg): Move to spew.c.
4694 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
4695 spew.c, which is where they really are.
4696 (done_pending_defargs): Declare.
4697 (unprocessed_defarg_fn): Declare.
4698 * decl.c (replace_defarg): Move to spew.c
4699 * parse.y (structsp): Call done_pending_defargs.
4700 * spew.c (defarg_fns): Rearrange list structure.
4701 (defarg_fnsdone): New static variable.
4702 (defarg_depfns): New static variable.
4703 (init_spew): Adjust.
4704 (add_defarg_fn): Store the type in TREE_TYPE.
4705 (do_pending_defargs): Detect and deal with ordering constraints
4706 and circularity.
4707 (done_pending_defargs): New function.
4708 (unprocessed_defarg_fn): New function.
4709 (replace_defarg): Moved from decl.c. Robustify. Don't save
4710 if circularity detected.
4711
34e225a3
NS
47122001-01-11 Nathan Sidwell <nathan@codesourcery.com>
4713
4714 * pt.c (unify): Check array has a domain, before checking
4715 whether it is variable sized.
4716
98979fe0
NS
47172001-01-11 Nathan Sidwell <nathan@codesourcery.com>
4718
4719 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
4720 parameters with pointers to arrays of unknown bound.
4721
b37bf5bd
NS
47222001-01-11 Nathan Sidwell <nathan@codesourcery.com>
4723
4724 * parse.y (template_parm_header, template_spec_header): New
4725 reductions. Split out from ...
4726 (template_header): ... here. Use them.
4727 (template_template_parm): Use template_parm_header.
4728 * semantics.c (finish_template_template_parm): Add assert.
4729
6c418184
MM
47302001-01-10 Mark Mitchell <mark@codesourcery.com>
4731
792508b5
MM
4732 * mangle.c (write_builtin_type): Fix thinko.
4733
8afa707f
MM
4734 * pt.c (copy_default_args_to_explicit_spec_1): New function.
4735 (copy_default_args_to_explicit_spec): Likewise.
4736 (check_explicit_specialization): Use it.
4737
6c418184
MM
4738 * class.c (finish_struct_1): Remove last argument in call to
4739 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
4740 * decl.c (builtin_function): Likewise.
4741 (build_cp_library_fn): Likewise.
4742 (check_initializer): Likewise.
4743 (make_rtl_for_nonlocal_decl): Likewise.
4744 (cp_finish_decl): Likewise.
4745 (start_function): Likewise.
4746 * decl2.c (finish_anon_union): Likewise.
4747 * friend.c (do_friend): Likewise.
4748 * init.c (build_java_class_ref): Likewise.
4749 * method.c (make_thunk): Likewise.
4750 * pt.c (tsubst_friend_function): Likewise.
4751 * semantics.c (expand_body): Likewise.
4752
31d95fc6
MM
47532001-01-10 Mark Mitchell <mark@codesourcery.com>
4754
4755 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
4756 looking at DECL_CLONED_FUNCTION for non-functions.
4757
31bb3027
NS
47582001-01-10 Nathan Sidwell <nathan@codesourcery.com>
4759
4760 * error.c (dump_template_parameter): Use parm to determine how
4761 to print default value.
4762
fd3f43e7
NS
47632001-01-10 Nathan Sidwell <nathan@codesourcery.com>
4764
4765 * class.c (duplicate_tag_error): Clear more flags.
4766
042b4c4e
NS
47672001-01-10 Nathan Sidwell <nathan@codesourcery.com>
4768
4769 * call.c (build_new_method_call): Use binfo_for_vbase.
4770
a7537031
JM
47712001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4772
4773 * cp-tree.h (flag_cond_mismatch): Don't declare.
4774 * decl2.c (flag_cond_mismatch): Don't define.
4775 (lang_f_options): Remove cond-mismatch.
4776 (unsupported_options): Add cond-mismatch.
4777
186c0fbe
NS
47782001-01-09 Nathan Sidwell <nathan@codesourcery.com>
4779
4780 * class.c (handle_using_decl): Reject using of constructor name
4781 of sourcing class. Allow injecting of a method with same name as
4782 nested class. Fixup error messages.
4783
28ec8d6b
JM
47842001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
4785
4786 * decl2.c (lang_decode_option): Handle -Wformat=2.
4787
3febd123
NS
47882001-01-08 Nathan Sidwell <nathan@codesourcery.com>
4789
4790 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
4791 initialized_in_class.
4792 (DECL_DEFINED_IN_CLASS_P): Rename to ...
4793 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
4794 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
4795 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
4796 * pt.c (check_default_tmpl_args): Adjust for
4797 DECL_INITIALIZED_IN_CLASS_P.
4798 (instantiate_class_template): Likewise.
4799 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9c96f3f8 4800
3febd123
NS
4801 * class.c (finish_struct): Constify saved_filename.
4802
1f0d71c5
NS
48032001-01-08 Nathan Sidwell <nathan@codesourcery.com>
4804
4805 * class.c (duplicate_tag_error): Adjust diagnostic.
4806 (finish_struct): Locally set location to start of struct.
4807 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
4808
5bf15e84 48092001-01-08 Nathan Sidwell <nathan@codesourcery.com>
76191fdd
NS
4810
4811 * decl.c (struct binding_level): Adjust class_shadowed comments
4812 to reflect reality.
aba649ba 4813 (push_class_level_binding): Adjust comments to reflect reality.
76191fdd
NS
4814 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
4815 Don't set TREE_VALUE on the class_shadowed list.
4816
23d4e4cc 48172001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9c96f3f8
AJ
4818
4819 * decl2.c (acceptable_java_type): Allow references too.
23d4e4cc
APB
4820 * init.c (build_java_class_ref): When using the new ABI, search
4821 `class$' and have it mangled with `mangle_decl.'
4822 * mangle.c (write_java_integer_type_codes): New function.
4823 (write_builtin_type): Detect and mangle Java integer and real
4824 types.
9c96f3f8 4825
0c58da3e
MM
48262001-01-07 Mark Mitchell <mark@codesourcery.com>
4827
4828 * decl2.c (grokfield): Don't accept `asm' specifiers for
4829 non-static data members.
4830
45b8ddb4
KG
48312001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4832
4833 * expr.c (cplus_expand_expr): Don't reset `target'.
4834
96302433
NB
48352001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
4836
826840d9 4837 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
96302433 4838
220bce48
NS
48392001-01-05 Nathan Sidwell <nathan@codesourcery.com>
4840
4841 * parse.y (template_datadef): Check for error_mark_node.
4842
bfa2cb33
NS
48432001-01-05 Nathan Sidwell <nathan@codesourcery.com>
4844
4845 * cp-tree.def (DEFAULT_ARG): Make `x' class.
4846
eaa7c03f
JM
48472001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
4848
4849 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
4850 (record_builtin_type): Make non-static.
4851 (flag_short_double): Don't declare.
4852 (init_decl_processing): Remove the creation of many tree nodes now
4853 in c_common_nodes_and_builtins.
4854 (build_void_list_node): New function.
4855 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
4856 * cp-tree.h (flag_short_wchar): Don't declare.
4857
3af4c257
MM
48582001-01-04 Mark Mitchell <mark@codesourcery.com>
4859
4860 * call.c (build_conv): Don't use build1 for USER_CONV.
4861 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
4862
03dc0325
JM
48632001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
4864
4865 * lex.c (lang_init): Call c_common_lang_init.
4866
3c505507
NS
48672001-01-03 Nathan Sidwell <nathan@codesourcery.com>
4868
4869 * search.c (lookup_fnfields_here): Remove.
4870 (look_for_overrides_r): Use lookup_fnfields_1.
4871 Ignore functions from using declarations.
4872
03378143
NS
48732001-01-03 Nathan Sidwell <nathan@codesourcery.com>
4874
4875 Implement exceptions specifiers for implicit member functions.
4876 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
4877 * method.c (synthesize_exception_spec): New function.
4878 (locate_dtor, locate_ctor, locate_copy): New functions.
4879 (implicitly_declare_fn): Generate the exception spec too.
4880 * search.c (check_final_overrider): Check artificial functions
4881 too.
9c96f3f8 4882 * typeck2.c (merge_exception_specifiers): New function.
03378143 4883
f30efcb7
JM
48842001-01-03 Jason Merrill <jason@redhat.com>
4885
4886 * init.c (build_default_init): New fn.
4887 (perform_member_init): Split out from here.
4888 (build_new_1): Use it. Simplify initialization logic.
4889 (build_vec_init): Take an array, rather than a pointer and maxindex.
4890 Speed up simple initializations. Don't clean up if we're assigning.
4891 * cp-tree.h: Adjust.
4892 * decl2.c (do_static_initialization): Remove TREE_VEC case.
4893 * parse.y (new_initializer): Return void_zero_node for ().
4894 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
4895 * typeck2.c (digest_init): Only complain about user-written
4896 CONSTRUCTORs.
4897
a412bf75
MS
48982000-12-22 Mike Stump <mrs@wrs.com>
4899
4900 * decl2.c: (max_tinst_depth): Increase to 50.
4901
4890c2f4
MM
49022001-01-02 Mark Mitchell <mark@codesourcery.com>
4903
4904 * class.c (invalidate_class_lookup_cache): Zero the
4905 previous_class_values.
4906 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
4907 TREE_INT_CST_HIGH.
4908 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
4909 * decl.c (free_bindings): New variable.
4910 (push_binding): Don't create a new binding if we have one on the
4911 free list.
4912 (pop_binding): Put old bindings on the free list.
4913 (init_decl_processing): Use size_int, not build_int_2.
4914 Register free_bindings as a GC root.
4915 (cp_make_fname_decl): Use size_int, not build_int_2.
4916 (push_inline_template_parms_recursive): Likewise.
4917 (end_template_parm_list): Likewise.
4918 (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
4919 (tsubst_template_parms): Use size_int, not build_int_2.
4920 (tsubst): Likewise.
4921 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9c96f3f8 4922
4f78b9a8
RH
49232001-01-02 Richard Henderson <rth@redhat.com>
4924
4925 * parse.y (asm): Set ASM_INPUT_P.
4926
3c8c2a0a
JM
49272001-01-02 Jason Merrill <jason@redhat.com>
4928
96d6c610
JM
4929 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
4930 for v3 ABI.
4931
4932 * typeck.c (cp_truthvalue_conversion): New fn.
4933 * cvt.c (ocp_convert): Use it.
4934
4935 * cp-tree.h: Lose c-common.c decls.
4936
4937 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
4938 * cvt.c (convert_to_void): Use type_unknown_p.
4939
9c96f3f8 4940 * typeck.c (strip_all_pointer_quals): Also strip quals from
3c8c2a0a
JM
4941 pointer-to-member types.
4942
4943 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
4944 parse.y as C.
4945
4946 * call.c (build_new_method_call): Do evaluate the object parameter
4947 when accessing a static member.
4948 * typeck.c (build_component_ref): Likewise.
4949
d363e7bf
AJ
49502001-01-02 Andreas Jaeger <aj@suse.de>
4951
4952 * decl.c (cp_missing_noreturn_ok_p): New.
4953 (init_decl_processing): Set lang_missing_noreturn_ok_p.
4954
77f5250d
JJ
49552000-12-29 Jakub Jelinek <jakub@redhat.com>
4956
4957 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
4958
31a714f6
MM
49592000-12-29 Mark Mitchell <mark@codesourcery.com>
4960
4961 * class.c (pushclass): Remove #if 0'd code.
4962 * cp-tree.h (overload_template_name): Remove.
4963 * decl.c (store_bindings): Simplify.
4964 (pop_from_top_level): Likewise.
4965 * pt.c (overload_template_name): Remove.
d363e7bf 4966 (instantiate_decl): Don't call push_to_top_level if it's not
31a714f6
MM
4967 needed.
4968
414ea4aa
MM
49692000-12-28 Mark Mitchell <mark@codesourcery.com>
4970
4971 * pt.c (register_local_specialization): Don't return a value.
4972 (lookup_template_class): Use move-to-front heuristic when looking
4973 up template instantiations.
4974 (instantiate_decl): Only push_to_top_level when we're actually
4975 going to instantiate the template.
4976
6f18f7e9
HPN
49772000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4978
4979 * search.c (binfo_for_vtable): Return least derived class, not
4980 most. Handle secondary vtables.
4981
e5214479
JM
49822000-12-22 Jason Merrill <jason@redhat.com>
4983
3c8c2a0a
JM
4984 * pt.c (more_specialized): Don't optimize len==0.
4985 (fn_type_unification): If we're adding the return type, increase len.
4986
ebb1abc3
JM
4987 * typeck.c (build_binary_op): Fix pmf comparison logic.
4988
c939ca5f
JM
4989 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
4990 DECL_STATIC_FUNCTION_P.
4991
e6fe680d
JM
4992 * semantics.c (genrtl_finish_function): Don't try to jump to
4993 return_label unless it exists.
4994
e5214479
JM
4995 In partial ordering for a call, ignore parms for which we don't have
4996 a real argument.
4997 * call.c (joust): Pass len to more_specialized.
4998 (add_template_candidate_real): Strip 'this', pass len.
4999 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
5000 (get_bindings_order): New fn. Pass len down.
5001 (get_bindings_real): Strip 'this', pass len.
5002 (fn_type_unification): Likewise.
5003 (type_unification_real): Succeed after checking 'len' args.
5004 (most_specialized_instantiation): Lose explicit_args parm.
d363e7bf 5005 * class.c (resolve_address_of_overloaded_function): Strip 'this',
e5214479
JM
5006 pass len.
5007
50082000-12-21 Jason Merrill <jason@redhat.com>
477f6664
JM
5009
5010 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
5011 DECL_TEMPLATE_RESULT.
5012
5013 * search.c (lookup_field_r): Call lookup_fnfields_1, not
5014 lookup_fnfields_here.
5015
5016 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
5017
5018 * call.c (build_object_call): Also allow conversions that return
5019 reference to pointer to function.
5020 (add_conv_candidate): Handle totype being ref to ptr to fn.
5021 (build_field_call): Also allow members of type reference to function.
5022 Lose support for calling pointer to METHOD_TYPE fields.
5023
5024 * error.c (dump_expr): Handle *_CAST_EXPR.
5025
5026 * typeck2.c (build_scoped_ref): Always convert to the naming class.
5027
5028 * tree.c (break_out_cleanups): Lose.
5029 * cp-tree.h: Remove prototype.
5030 * typeck.c (build_component_ref): Don't break_out_cleanups.
5031 (build_compound_expr): Likewise.
5032 * semantics.c (finish_expr_stmt): Likewise.
5033
3e4d04a1
RH
50342000-12-20 Richard Henderson <rth@redhat.com>
5035
5036 * cp-tree.h: Update declarations.
5037 * decl.c (finish_case_label): Return the new stmt node.
5038 * semantics.c (finish_goto_stmt): Likewise.
5039 (finish_expr_stmt, finish_return_stmt): Likewise.
5040 (finish_break_stmt, finish_continue_stmt): Likewise.
5041 (finish_asm_stmt): Likewise.
5042 * parse.y (already_scoped_stmt): Set STMT_LINENO.
5043 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
5044 (simple_if, simple_stmt): Return the new stmt node.
5045 (save_lineno): New.
5046
20d380b1
JM
50472000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
5048
5049 * cp-tree.h: Don't declare warn_long_long.
5050
221c7a7f
KL
50512000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5052
5053 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
5054 IS_AGGR_TYPE.
5055
b429fdf0
KL
50562000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5057
5058 * pt.c (unify): Handle when both ARG and PARM are
5059 BOUND_TEMPLATE_TEMPLATE_PARM.
5060
c2beae77
KL
50612000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5062
5063 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
5064 DECL_TEMPLATE_PARM_P.
5065
c3e899c1
JM
50662000-12-15 Jason Merrill <jason@redhat.com>
5067
96790071
JM
5068 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
5069
8d42565b
JM
5070 * init.c (build_new_1): Don't strip quals from type.
5071
fab09a24
JM
5072 * decl.c (pushdecl): Don't check for linkage on a non-decl.
5073
c3e899c1
JM
5074 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
5075
5076 * call.c (build_new_function_call): Lose space before paren in
5077 error message.
5078 (build_new_method_call): Likewise.
5079
5080 * typeck2.c (build_m_component_ref): Propagate quals from datum.
5081
edac124d
KL
50822000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5083
5084 * pt.c (check_explicit_specialization): Propagate default
5085 function arguments to explicit specializations.
5086
31750649 50872000-12-13 DJ Delorie <dj@redhat.com>
8d3b081e
DD
5088
5089 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
5090 and <? operators.
5091
5e818b93
JM
50922000-12-08 Jason Merrill <jason@redhat.com>
5093
5094 * error.c (dump_function_name): Don't let the user see __comp_ctor.
5095
5096 Clean up copy-initialization in overloading code.
5097 * call.c (build_user_type_conversion_1): Die if we are asked to
5098 convert to the same or a base type.
5099 (implicit_conversion): Avoid doing so. Lose reference binding code.
5100 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
5101 direct-initialization. Also do direct-init part of copy-init.
5102 (build_user_type_conversion): Don't provide context to convert_like.
5103 * cvt.c (ocp_convert): build_user_type_conversion will now provide
5104 the constructor call for copy-init.
5105
5106 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
5107 instantiation of a member template.
5108 (do_decl_instantiation): Not here.
5109
38da6039
NS
51102000-12-07 Nathan Sidwell <nathan@codesourcery.com>
5111
5112 * class.c (check_field_decls): Don't special case anonymous
5113 fields in error messages.
c9407e4c 5114 (note_name_declared_in_class): Use %D on diagnostic.
d363e7bf 5115
38da6039
NS
5116 * tree.c (pod_type_p): Use strip_array_types.
5117 (cp_valid_lang_attribute): Likewise.
5118 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
5119 multiple evaluations.
d363e7bf 5120 (cp_has_mutable_p): Use strip_array_types.
38da6039 5121
a11d04b5
NS
51222000-12-07 Nathan Sidwell <nathan@codesourcery.com>
5123
5124 * cp-tree.h (sufficient_parms_p): Declare new function.
5125 * call.c (sufficient_parms_p): New function, broken out of ...
5126 (add_function_candidate): ... here. Use it.
5127 (add_conv_candidate): Use it.
5128 * decl.c (grok_ctor_properties): Use it.
5129
5eec2847
JJ
51302000-12-07 Jakub Jelinek <jakub@redhat.com>
5131
5132 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
5133
c907e684
JM
51342000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
5135
5136 * decl2.c (lang_decode_option): Handle -Wformat-security.
5137
74601d7c
KL
51382000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5139
5140 * pt.c (verify_class_unification): New function.
5141 (get_class_bindings): Use it.
5142 (try_class_unification): Tidy.
5143 (unify): Handle when argument of a template-id is not
5144 template parameter dependent.
5145 (template_args_equal): Handle when TREE_CODE's do not match.
5146
8954e858
AO
51472000-12-06 Alexandre Oliva <aoliva@redhat.com>
5148
5149 * lang-specs.h (c++): When invoking the stand-alone preprocessor
5150 for -save-temps, pass all relevant -Defines to it, and then don't
5151 pass them to cc1plus.
5152
3dc9aec6
WC
51532000-12-05 Will Cohen <wcohen@redhat.com>
5154
5155 * decl.c (finish_case_label): Cleared
5156 more_cleanups_ok in surrounding function scopes.
5157 (define_label): Likewise.
5158
cbb40945
NS
51592000-12-05 Nathan Sidwell <nathan@codesourcery.com>
5160
5161 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
5162 (get_matching_virtual): Remove.
5163 (look_for_overrides): Declare new function.
5164 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
5165 DECL_VINDEX here.
5166 * class.c (check_for_override): Move base class iteration code
5167 to look_for_overrides.
5168 * search.c (next_baselink): Remove.
5169 (get_virtuals_named_this): Remove.
5170 (get_virtual_destructor): Remove.
5171 (tree_has_any_destructors_p): Remove.
5172 (struct gvnt_info): Remove.
5173 (check_final_overrider): Remove `virtual' from error messages.
5174 (get_matching_virtuals): Remove. Move functionality to ...
5175 (look_for_overrides): ... here, and ...
5176 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
5177 to be overriding.
5178
61402b80
NS
51792000-12-05 Nathan Sidwell <nathan@codesourcery.com>
5180
5181 * typeck.c (get_delta_difference): If via a virtual base,
5182 return zero.
5183 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
5184 adjustment.
5185
39abc9a6
RH
51862000-12-04 Richard Henderson <rth@redhat.com>
5187
5188 * error.c (dump_tree): Use output_add_string not OB_PUTS.
5189
c00996a3
JM
51902000-12-04 Jason Merrill <jason@redhat.com>
5191
5192 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
d363e7bf 5193 (write_builtin_type): Pass intSI_type_node and the like through
c00996a3
JM
5194 type_for_mode.
5195 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
5196 Pass intSI_type_node and the like through type_for_mode.
5197 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
5198 * pt.c (tsubst, unify): Likewise.
5199 * tree.c (walk_tree): Likewise.
5200 * error.c (dump_type): Likewise.
5201 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
d363e7bf 5202
c00996a3
JM
5203 * Make-lang.in: Tweak top comment for emacs.
5204 (cp/TAGS): Restore.
5205
5206 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
5207
c00996a3
JM
5208 * class.c (clone_function_decl): Robustify.
5209
52102000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
5211
5212 * decl.c (store_bindings): Only search in the non modified
5213 old_bindings for duplicates.
5214
00bb3dad
NS
52152000-12-04 Nathan Sidwell <nathan@codesourcery.com>
5216
5217 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
5218 TYPE_POLYMORPHIC_P.
d363e7bf 5219
00bb3dad
NS
5220 * typeck.c (build_static_cast): Remove unused variable.
5221
dc957d14
KL
52222000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5223
5224 * pt.c: Fix typo in comment.
5225
4d808927
JM
52262000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
5227
5228 * decl2.c (warn_format): Remove definition.
5229 (lang_decode_option): Handle -Wformat-nonliteral,
5230 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
5231
5fd8e536
JM
52322000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
5233
5234 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
5235 (init_decl_processing): Don't create string_type_node,
5236 const_string_type_node, wint_type_node, intmax_type_node,
5237 uintmax_type_node, default_function_type, ptrdiff_type_node and
5238 unsigned_ptrdiff_type_node. Adjust position of call to
5239 c_common_nodes_and_builtins.
5240 (identifier_global_value): New function.
5241
13f9714b
NS
52422000-12-01 Nathan Sidwell <nathan@codesourcery.com>
5243
5244 * call.c (standard_conversion): Reject pointer to member
5245 conversions from ambiguous, inaccessible or virtual bases.
5246 * typeck.c (build_static_cast): Don't check pointers to members
5247 specially.
5248
31b1b957
NS
52492000-11-30 Nathan Sidwell <nathan@codesourcery.com>
5250
5251 * method.c (do_build_copy_constructor): Preserve cv
5252 qualifications when accessing source object members.
5253 (do_build_assign_ref): Likewise. Remove separate diagnostics for
5254 unnamed fields.
5255
717e3f73
NS
52562000-11-30 Nathan Sidwell <nathan@codesourcery.com>
5257
5258 * method.c (do_build_assign_ref): Construct appropriately
5259 CV-qualified base reference. Don't allow const casts in base
5260 conversion.
5261
2c92b94d
NS
52622000-11-30 Nathan Sidwell <nathan@codesourcery.com>
5263
5264 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
5265 incomplete return type.
5266
bb92901d
NS
52672000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5268
5269 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
5270 * semantics.c (finish_base_specifier): Accept a _TYPE not a
5271 _DECL.
5272
2f3608c3
NS
52732000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5274
5275 * spew.c (yyerror): Cope if yylval.ttype is NULL.
5276
eeb75383
NS
52772000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5278
5279 * decl.c (grokdeclarator): Diagnose undefined template contexts.
5280
5ee4cc26
NS
52812000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5282
5283 * decl.c (grokdeclarator): Do type access control on friend
5284 class.
5285
76e57b45
NS
52862000-11-27 Nathan Sidwell <nathan@codesourcery.com>
5287
5288 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
5289 bison parser ickiness.
5290 * pt.c (tsubst_friend_function): Enter namespace scope when
5291 tsubsting the function name.
5292 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
5293
f9825168
NS
52942000-11-27 Nathan Sidwell <nathan@codesourcery.com>
5295
5296 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
5297 * cvt.c (cp_convert_to_pointer): Add force parameter.
5298 Allow conversions via virtual base if forced.
5299 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
5300 (ocp_convert): Likewise.
5301 * search.c (binfo_from_vbase): Return the virtual base's binfo.
5302 * typeck.c (get_delta_difference): Adjust handling of virtual
5303 bases.
5304
9ccb25d5
MM
53052000-11-26 Mark Mitchell <mark@codesourcery.com>
5306
5307 * tree.c (struct list_hash): Remove.
5308 (list_hash_table): Make it be an htab.
5309 (struct list_proxy): New type.
5310 (list_hash_eq): New function.
5311 (list_hash_pieces): Renamed from ...
5312 (list_hash): ... this.
5313 (list_hash_lookup): Remove.
5314 (list_hash_add): Remove.
5315 (hash_tree_cons): Use the generic hashtable.
5316 (mark_list_hash): Remove.
5317 (init_tree): Create the hashtable.
5318
9399bad3
JM
53192000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
5320
5321 * method.c (build_mangled_C9x_name): Rename to
5322 build_mangled_C99_name. Change C9X references in comments to
5323 refer to C99.
5324
2f401cc8
NS
53252000-11-24 Nathan Sidwell <nathan@codesourcery.com>
5326
5327 * parse.y (unary_expr): Move VA_ARG from here ...
5328 (primary): ... to here.
5329
3d7e9ba4
NS
53302000-11-24 Nathan Sidwell <nathan@codesourcery.com>
5331
5332 * semantics.c (finish_id_expr): If type is error_mark, return
5333 error_mark.
5334
ab097535
NS
53352000-11-23 Nathan Sidwell <nathan@codesourcery.com>
5336
5337 * pt.c (lookup_template_class): Simplify loop exit constructs.
5338 Cope when there is no partial instantiation of a template
5339 template member.
5340
9196ece5
R
5341Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
5342
5343 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
5344
cac78ea2
MM
53452000-11-22 Mark Mitchell <mark@codesourcery.com>
5346
6e1b44bc
MM
5347 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
5348 prefix.
5349
cac78ea2
MM
5350 * pt.c (do_decl_instantiate): Explicitly clone constructors and
5351 destructors that haven't already been cloned.
5352
3aac38d7
RH
53532000-11-20 Richard Henderson <rth@redhat.com>
5354
5355 * parse.y (yyparse_1): Rename the parser entry point.
5356
53572000-11-20 Alex Samuel <samuel@codesourcery.com>
beac9b93
AS
5358
5359 * mangle.c (write_name): Use <unscoped-name> for names directly in
5360 function scope.
5361 (write_unscoped_name): Accept names directly in function scope.
d363e7bf 5362
447306fa
NS
53632000-11-20 Nathan Sidwell <nathan@codesourcery.com>
5364
5365 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
5366 * parse.y (extdef): Add EXPORT reduction.
5367 * spew.c (yylex): Don't skip export here.
5368
2650255a
MM
53692000-11-19 Mark Mitchell <mark@codesourcery.com>
5370
5371 * decl.c (init_decl_processing): Correct name of pure virtual
5372 function under the new ABI.
5373 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
5374 (throw_bad_typeid): Likewise for bad typeid function.
5375
0657c69c
MM
53762000-11-18 Mark Mitchell <mark@codesourcery.com>
5377
04f3dc2b
MM
5378 * decl.c (grokparms): Don't even function types of `void' type,
5379 either.
5380 * mangle.c (write_type): Don't crash when confronted with the
5381 error_mark_node.
5382
0657c69c
MM
5383 * decl.c (grokparms): Don't create parameters of `void' type.
5384
a8a05998
ZW
53852000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
5386
5387 * lex.c (mark_impl_file_chain): Delete.
5388 (init_parse): Remove call to ggc_add_string_root. No need to
5389 ggc_strdup a string constant. Do not add impl_file_chain to GC
5390 roots.
5391 (handle_pragma_implementation): No need to ggc_strdup main_filename.
5392
35728a80
NS
53932000-11-17 Nathan Sidwell <nathan@codesourcery.com>
5394
5395 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
5396
5cce22b6
NS
53972000-11-17 Nathan Sidwell <nathan@codesourcery.com>
5398
5399 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
5400 * decl.c (grokdeclarator): Don't reject void parms here.
5401 (require_complete_types_for_parms): Simplify, use
5402 complete_type_or_else.
5403 (grokparms): Remove bitrot. Remove funcdef parm.
5404 Deal with ellipsis parm lists here.
5405 * semantics.c (finish_parmlist): Don't append void_list_node
5406 here. Set PARMLIST_ELLIPSIS_P.
5407
146c8d60
NS
54082000-11-17 Nathan Sidwell <nathan@codesourcery.com>
5409
5410 * typeck2.c (incomplete_type_error): Reorganise to avoid
5411 excessive diagnostics.
5412
520a57c8
ZW
54132000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
5414
5415 * lex.c (struct impl_files, internal_filename): Constify a char *.
5416
43048a06
MM
54172000-11-16 Mark Mitchell <mark@codesourcery.com>
5418
5419 * mangle.c (write_special_name_constructor): Don't generate
5420 assembler junk when confronted with an old-style constructor.
5421 (write_special_name_destructor): Likewise.
5422 (mangle_decl_string): Do it here instead.
5423
cdb71673
NS
54242000-11-16 Nathan Sidwell <nathan@codesourcery.com>
5425
5426 * call.c (op_error): Make error messages clearer.
5427
62136084
MM
54282000-11-15 Mark Mitchell <mark@codesourcery.com>
5429
5430 * decl.c (wrapup_globals_for_namespace): Don't mark things
5431 TREE_ASM_WRITTEN when they're not.
5432
ee3400e8
JM
54332000-11-15 Jason Merrill <jason@redhat.com>
5434
5435 * typeck2.c (friendly_abort): Uncount the error before handing
5436 off to fancy_abort.
5437
71631a1f
NS
54382000-11-15 Nathan Sidwell <nathan@codesourcery.com>
5439
5440 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
5441
79cda2d1
MM
54422000-11-14 Mark Mitchell <mark@codesourcery.com>
5443
5444 * class.c (build_vtbl_initializer): Fix typo in comment.
5445 * typeck.c (expr_sizeof): Don't crash on errors.
5446
2567bc56
JW
54472000-11-14 Jim Wilson <wilson@redhat.com>
5448
5449 * lang-specs.h: Add %2 after %(cc1_options).
5450
8422942c
RH
54512000-11-14 Richard Henderson <rth@redhat.com>
5452
5453 * typeck.c (c_sizeof): Be strict about casting result value
5454 back to c_size_type_node.
5455 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
5456
19552aa5
JM
54572000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5458
5459 * typeck.c (build_unary_op): Use boolean_increment from
5460 c-common.c, moving the relevant code there.
5461
d96a6d1a
JM
54622000-11-11 Jason Merrill <jason@redhat.com>
5463
5464 * typeck.c (mark_addressable): Don't call put_var_into_stack.
492cca24
JM
5465
5466 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
5467 in inlines.
5468
4e135bdd
KG
54692000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5470
5471 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
5472 * lex.c (copy_lang_decl): Likewise.
5473
0a7394bc
MM
54742000-11-09 Mark Mitchell <mark@codesourcery.com>
5475
13507bd8
MM
5476 * dump.c (cp_dump_tree): Don't dump function bodies here.
5477
0a7394bc
MM
5478 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
5479 (dump.o): Update dependency list.
5480 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
5481 (flag_dump_translation_unit): Likewise.
5482 (CP_TYPE_QUALS): Adjust definition.
5483 (DECL_C_BIT_FIELD): Remove.
5484 (SET_DECL_C_BIT_FIELD): Likewise.
5485 (CLEAR_DECL_C_BIT_FIELD): Likewise.
5486 (add_maybe_template): Likewise.
5487 (strip_array_types): Likewise.
5488 (dump_node_to_file): Likewise.
5489 (cp_dump_tree): New function.
5490 * decl.c (init_decl_processing): Set lang_dump_tree.
5491 * decl2.c (flag_dump_translation_unit): Remove.
5492 * dump.c: Move most of it to ../c-dump.c.
5493 (cp_dump_tree): New function.
5494 * pt.c (add_maybe_template): Remove.
5495 * typeck.c (strip_array_types): Likewise.
a8a05998 5496
5362b086
EC
54972000-11-07 Eric Christopher <echristo@redhat.com>
5498
492cca24
JM
5499 * decl.c (init_decl_processing): Change definition of
5500 __wchar_t to wchar_t. Remove artificial declaration of
5501 wchar_t.
5502 * lex.c: Change instances of __wchar_t to wchar_t.
5362b086 5503
5361cbb7
NS
55042000-11-09 Nathan Sidwell <nathan@codesourcery.com>
5505
5506 * lex.c (do_identifier): Don't lookup_name for operators.
5507 * parse.y (operator): Save looking_for_typename.
5508 (unoperator): Restore it.
5509 * spew.c (frob_opname): Use nth_token for lookahead.
5510
36791f1e
NS
55112000-11-08 Nathan Sidwell <nathan@codesourcery.com>
5512
5513 * decl.c (grok_op_properties): Always use coerce_new_type and
5514 coerce_delete_type.
5515 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
5516 exception specification. Tidy up.
5517 (coerce_delete_type): Preserve exception specification. Tidy up.
5518
961192e1
JM
55192000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
5520
5521 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
5522 (push_binding_level), error.c (cp_tree_printer), pt.c
5523 (process_partial_specialization, tsubst_template_arg_vector),
5524 search.c (lookup_member): Use memset () instead of bzero ().
5525
d48ebde1
NS
55262000-11-07 Nathan Sidwell <nathan@codesourcery.com>
5527
5528 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
5529
436a88a6
JM
55302000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
5531
5532 * Make-lang.in (c++.distdir): Remove.
5533
7a4e5091
MM
55342000-11-04 Mark Mitchell <mark@codesourcery.com>
5535
5536 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
5537 declarations from different namespaces to be combined.
5538
0e9295cf
ZW
55392000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
5540
5541 * decl.c: Include tm_p.h.
5542
da61dec9
JM
55432000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
5544
5545 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
5546
9473c522
JM
55472000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
5548
5549 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
5550 (build_overload_value), repo.c (open_repo_file), xref.c
5551 (open_xref_file): Use strchr () and strrchr () instead of index ()
5552 and rindex ().
5553
b0b3afb2
BS
55542000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
5555
5556 * call.c (build_over_call): Call fold on the CALL_EXPR.
5557
faafaee6
GDR
55582000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
5559
5560 * error.c (dump_template_decl): Separate template hearders with
5561 space not comma.
5562
761f0855
GDR
55632000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
5564
5565 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
5566 TS_* flags with corresponding TFF_*. Adjust prototypes of
5567 functions (which used to take a tree_string_flags) to take an int.
5568
5569 * cp-tree.h (enum tree_string_flags): Remove
5570 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
5571 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
5572 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
5573 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
5574 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
5575 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
5576 (type_as_string, decl_as_string, expr_as_string,
5577 context_as_string): Adjust prototype.
5578
5579 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
5580 instead of TS_PLAIN.
5581
5582 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
5583 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
5584 plain `0'.
5585
ad50e811
MM
55862000-10-30 Mark Mitchell <mark@codesourcery.com>
5587
5588 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
5589 (linkage_kind): New enumeration.
5590 (decl_linkage): New function.
5591 * decl2.c (comdat_linkage): Extend comment.
5592 * error.c (dump_function_decl): Print the arguments used to
5593 instantiate a template, even when not printing the type of the
5594 function.
5595 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
5596 not TREE_PUBLIC, to test for external linkage.
5597 * tree.c (decl_linkage): New function.
5598
930cd796
MM
55992000-10-28 Mark Mitchell <mark@codesourcery.com>
5600
5601 * pt.c (instantiate_decl): Always instantiate static data members
5602 initialized in-class.
5603
b8dad04b
ZW
56042000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
5605
5606 * Make-lang.in: Move all build rules here from Makefile.in,
5607 adapt to new context. Wrap all rules that change the current
5608 directory in parentheses. Expunge all references to $(P).
5609 When one command depends on another and they're run all at
5610 once, use && to separate them, not ;. Add OUTPUT_OPTION to
5611 all object-file generation rules. Delete obsolete variables.
5612
5613 * Makefile.in: Delete.
5614 * config-lang.in: Delete outputs= line.
5615
5f9cd837
GDR
56162000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
5617
5618 * error.c (dump_function_decl): Print no space between
5619 `ptr-operator' the `type-specifier' of the return type.
5620 (dump_type_prefix): Make sure we put space at the appropriate
5362b086 5621 place.
5f9cd837 5622
6c6ed0ef
JM
56232000-10-23 Jason Merrill <jason@redhat.com>
5624
5625 * call.c (equal_functions): Also call decls_match for extern "C" fns.
5626
56272000-10-22 Jason Merrill <jason@redhat.com>
5628
5629 * call.c (build_conditional_expr): Use ocp_convert to force
5630 rvalue conversion.
5631
e36308b0
MM
56322000-10-22 Mark Mitchell <mark@codesourcery.com>
5633
583ca5a0
MM
5634 * call.c (standard_conversion): Use RVALUE_CONVs for all
5635 expressions that satisfy lvalue_p, not just those that satisfy
5636 real_lvalue_p.
5637
f9808f81
MM
5638 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
5639
5362b086 5640 * typeck.c (c_sizeof): Return an expression of `size_t' type,
e36308b0
MM
5641 not one with TYPE_IS_SIZETYPE set.
5642 (dubious_conversion_warnings): Remove special-case code.
5643
3b9ae6f0
GK
56442000-10-21 Geoffrey Keating <geoffk@cygnus.com>
5645
7a0f14e5
GK
5646 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
5647 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
5648 (dump_type_prefix): Print vector-of-int as 'int vector'.
5649 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
5650 * tree.c (walk_tree): Handle VECTOR_TYPE.
5651
3b9ae6f0 5652 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
5362b086 5653
aca77bd1
JM
56542000-10-21 Jason Merrill <jason@redhat.com>
5655
5656 * parse.y (operator): Set got_object from got_scope.
5657 Set looking_for_typename.
5658 * decl.c (lookup_name_real): Clear val after setting from_obj.
5659 Reorganize diagnostic.
5660
ba523395
JM
56612000-10-20 Jason Merrill <jason@redhat.com>
5662
5663 * tree.c (walk_tree): Don't walk into default args.
5664
5665 * error.c (dump_expr): Use host_integerp.
5666
2e44948d
DE
56672000-10-20 David Edelsohn <edelsohn@gnu.org>
5668
5669 * typeck2.c (abstract_virtuals_error): Use "because" instead of
5670 "since" in error message.
5671
44475138
RK
5672Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5673
5674 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
5675
11306230
JO
56762000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
5677
5678 * decl.c (revert_static_member_fn): Fixed typo.
5679
97ba1e3c
MM
56802000-10-19 Mark Mitchell <mark@codesourcery.com>
5681
c20118a8
MM
5682 * class.c (subobject_offset_fn): New type.
5683 (dfs_record_base_offsets): Remove.
5684 (record_base_offsets): Likewise.
5685 (dfs_search_base_offsets): Likewise.
5686 (record_subobject_offset): New function.
5687 (check_subobject_offset): Likewise.
5688 (walk_subobject_offsets): Likewise.
5689 (record_subobject_offsets): Likewise.
5690 (layout_conflict_p): Reimplement.
5691 (layout_nonempty_base_or_field): Correct handling of type
5692 conflicts during layout.
5693 (layout_empty_base): Likewise.
5694 (build_base_field): Adjust to handle new representation of empty
5695 base offset table.
5696 (build_base_fields): Likewise.
5697 (layout_virtual_bases): Likewise.
5698 (splay_tree_compare_integer_csts): New function.
5699 (layout_class_type): Use a splay_tree, rather than a varray, to
5700 represent the offsets of empty bases.
5362b086 5701
97ba1e3c
MM
5702 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
5703 * decl.c (select_decl): Don't return declarations that are
5704 DECL_ANTICIPATED.
5705
6bcedb4e
MM
57062000-10-18 Mark Mitchell <mark@codesourcery.com>
5707
5708 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
5709 (fake_std_node): New macro.
5710 * decl.c (in_std): Rename to ...
5711 (in_fake_std): ... this.
5712 (flag_no_builtin): Remove.
5713 (flag_no_nonansi_builtin): Likewise.
5714 (walk_namespaces_r): Use fake_std_node.
5715 (push_namespace): Use std_identifier.
5716 (pop_namespace): Use in_fake_std.
5717 (lookup_name_real): Use fake_std_node.
5718 (init_decl_processing): When -fhonor-std, create the `std'
5719 namespace. Don't create a dummy fake_std_node in that case.
5720 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
5721 (builtin_function): Put builtins whose names don't begin
5722 with `_' in the std namespace.
5723 * decl2.c (flag_no_builtin): Remove.
5724 (flag_no_nonansi_builtin): Likewise.
5725 (set_decl_namespace): Use fake_std_node.
5726 (validate_nonmember_using_decl): Likewise.
5727 (do_using_directive): Likewise.
5728 (handle_class_head): Likewise.
5729 * dump.c (dequeue_and_dump): Likewise.
5730 * except.c (init_exception_processing): Use std_identifier.
5731 * init.c (build_member_call): Use fake_std_node.
5732 * rtti.c (init_rtti_processing): Use std_identifier.
5362b086 5733
67673f5c
MM
57342000-10-17 Mark Mitchell <mark@codesourcery.com>
5735
5736 * cp-tree.h (back_end_hook): Remove declaration.
5737 * decl2.c (back_end_hook): Remove definition.
5738
5739 * dump.c (dequeue_and_dump): Dump TREE_USED.
5740
8fef2e47
BL
5741Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
5742
5743 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
5744
652469d0
JM
57452000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
5746
5747 * decl.c (WINT_TYPE): Define.
5748 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
5749 c_size_type_node, signed_size_type_node and wint_type_node.
5750
74ff4629
JM
57512000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
5752
5753 * decl2.c (warn_missing_format_attribute): New variable.
5754 (lang_decode_option): Decode -Wmissing-format-attribute.
5755
634790f4
MM
57562000-10-16 Mark Mitchell <mark@codesourcery.com>
5757
5758 * typeck.c (qualify_type): Remove.
5759 (composite_pointer_type): Fix handling of conversions to `cv void*'.
5760
bb12da9d
KG
57612000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5762
5763 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
5764
4b945402
KG
57652000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5766
5767 * Makefile.in (parse.c, parse.h): Create atomically.
5768
1f8f4a0b
MM
57692000-10-12 Mark Mitchell <mark@codesourcery.com>
5770
5771 * class.c (current_obstack): Remove.
5772 * decl.c (ggc_p): Remove.
5773 (start_decl): Don't use decl_tree_cons.
5774 (grokdeclarator): Don't use build_decl_list.
5775 (start_function): Don't use decl_tree_cons.
5776 (finish_function): Don't mess with obstacks.
5777 * decl2.c (grok_x_components): Don't use build_decl_list.
5778 * lex.c (make_call_declarator): Don't call decl_tree_cons.
5779 (implicitly_declare_fn): Don't call build_decl_list.
5780 * parse.y (frob_specs): Don't call build_decl_list or
5781 decl_tree_cons.
5782 (expr_or_declarator_intern): Don't call decl_tree_cons.
5783 (primary): Don't call build_decl_list.
5784 (fcast_or_absdcl): Likewise.
5785 (typed_declspecs): Don't call decl_tree_cons.
5786 (reserved_declspecs): Don't call build_decl_list.
5787 (declmods): Likewise.
5788 (reserved_typespecquals): Likewise.
5789 (aggr): Likewise.
5790 (new_type_id): Likewise.
5791 (cv_qualifiers): Likewise.
5792 (after_type_declarator_intern): Likewise.
5793 (notype_declarator_intern): Likewise.
5794 (absdcl_intern): Likewise.
5795 (named_parm): Likewise.
5796 * pt.c (most_specialized_class): Likewise.
5797 * repo.c (temporary_obstack): Make it a structure, not a pointer.
5798 (init_repo): Initialize it.
5799 * search.c (current_obstack): Remove.
5800 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
5362b086 5801
8dc54971
RH
58022000-10-09 Richard Henderson <rth@cygnus.com>
5803
5804 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
5805 (c++ language support bits for libgcc): Remove.
5806 (c++.clean): Remove cplib2.txt cleanup.
5807 * config-lang.in (headers, lib2funcs): Remove.
5808
5809 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
5810 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
5811 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
5812 * inc/new.h, inc/typeinfo: Remove files.
5813
b15ad712
JM
58142000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
5815
5816 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
5817 defined.
5818 (init_decl_processing): Initialize intmax_type_node and
5819 uintmax_type_node.
5820
156ce211
RH
58212000-10-06 Richard Henderson <rth@cygnus.com>
5822
5823 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
5824 (original_result_rtx): Remove.
5825 * decl.c (save_function_data): Don't clear x_result_rtx.
5826 (mark_lang_function): Don't mark it either.
5827 * expr.c (fixup_result_decl): Remove.
5828 * semantics.c (genrtl_named_return_value): Frob the return decl
5829 before calling emit_local_var.
5830 (genrtl_finish_function): Don't call fixup_result_decl.
5831 Always emit the jump to return_label.
5832
92777ce4
NS
58332000-10-06 Nathan Sidwell <nathan@codesourcery.com>
5834
5835 * pt.c (lookup_template_class): Set current access for enum.
5836 (tsubst_enum): Set file & line for enum decl.
5362b086 5837
92777ce4
NS
5838 * spew.c (yylex): Remove unused variable.
5839
63c16fc5
RH
58402000-10-05 Richard Henderson <rth@cygnus.com>
5841
5842 * semantics.c (genrtl_finish_function): Don't init or check
5843 can_reach_end; remove noreturn and return value checks.
5844
d1a458c4
TT
58452000-10-05 Tom Tromey <tromey@cygnus.com>
5846
5847 * init.c (build_java_class_ref): Use `build_static_name' with a
5848 suffix, not a prefix, to build the class object's name.
5849
509fc277
NS
58502000-10-05 Nathan Sidwell <nathan@codesourcery.com>
5851
5852 * cp-tree.h (access_kind): Fix comment typo.
5853 * decl2.c (grokfield): Fix diagnostic typo.
5854 * semantics.c (finish_template_type): Fix comment typo.
5855 (finish_qualified_object_call_expr): Likewise.
5856
ce2e5191
NS
58572000-10-05 Nathan Sidwell <nathan@codesourcery.com>
5858
5859 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
5362b086 5860 tsubsting fails.
ce2e5191 5861
79cc5312
NS
58622000-10-05 Nathan Sidwell <nathan@codesourcery.com>
5863
5864 * spew.c (frob_id): New static function.
5865 (frob_opname): Use it.
5866 (yylex): Use it.
5867
f15b9af9
MM
58682000-10-01 Mark Mitchell <mark@codesourcery.com>
5869
5870 * decl.c (lang_mark_false_label_stack): Remove.
5871 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
5362b086 5872
28e6b1c2
JM
58732000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
5874
5875 * gxxint.texi: Use @email for formatting email addresses.
5876
99885b3f
GDR
58772000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
5878
5879 * error.c: Remove direct obstack manipulation. Replace with
5880 output_buffer-based formatting. Adjust calls to removed macros.
5881 (obstack_chunk_alloc, obstack_chunk_free): Remove.
5882 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
5883 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
5884
c06aa51e
MM
58852000-09-24 Mark Mitchell <mark@codesourcery.com>
5886
5887 * ir.texi: Move to ../c-tree.texi.
5888
99fada40
JM
58892000-09-20 Jason Merrill <jason@redhat.com>
5890
5891 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
5892
bb20cc46
AJ
58932000-09-21 Andreas Jaeger <aj@suse.de>
5894
5895 * errfn.c: Move declaration of cp_printer and cp_printers to ...
5896 * cp-tree.h: ... here.
5897
5898 * error.c: Remove declaration of cp_printer.
5899
fab701da
MM
59002000-09-20 Mark Mitchell <mark@codesourcery.com>
5901
5902 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
5903
0370fea1
HPN
59042000-09-20 Hans-Peter Nilsson <hp@axis.com>
5905
5906 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
5907 users.
5908
78c120b5
MM
59092000-09-18 Mark Mitchell <mark@codesourcery.com>
5910
5911 * decl.c (start_function): Robustify.
5912
3f80e6ac
KG
59132000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5914
5915 * cp-tree.h (check_function_format): Accept a `status' parameter.
bb20cc46 5916
3f80e6ac
KG
5917 * call.c, typeck.c: Updates calls to `check_function_format'.
5918
fc928afe
GK
59192000-09-17 Geoffrey Keating <geoffk@cygnus.com>
5920
5921 * decl2.c (handle_class_head): Always push some scope even
5922 in the error case.
5923
8f17b5c5
MM
59242000-09-16 Mark Mitchell <mark@codesourcery.com>
5925
5926 * cp-tree.h (struct cp_language_function): Remove
5927 x_scope_stmt_stack and name_declared.
5928 (current_scope_stmt_stack): Remove.
5929 (function_name_declared_p): New macro.
5930 (struct lang_decl_flags): Use c_lang_decl as a base class.
5931 (context): Remove.
5932 (struct lang_decl): Replace saved_tree with context.
5933 (DECL_FRIEND_CONTEXT): Adjust accordingly.
5934 (SET_DECL_FRIEND_CONTEXT): Likewise.
5935 (DECL_VIRTUAL_CONTEXT): Likewise.
5936 (DECL_SAVED_TREE): Remove.
5937 (C_DECLARED_LABEL_FLAG): Likewise.
5938 (cplus_expand_expr_stmt): Don't declare.
5939 (add_decl_stmt): Likewise.
5940 (add_scope_stmt): Likewise.
5941 * decl.c (mark_stmt_tree): Remove.
5942 (case_compare): Likewise.
5943 (finish_case_label): Use c_add_case_label.
5944 (init_decl_processing): Set more language-specific hooks.
5945 (build_enumerator): Fix typo in comment.
5946 (cplus_expand_expr_stmt): Remove.
5947 (mark_lang_function): Use mark_c_language_function.
5948 (lang_mark_tree): Use c_mark_lang_decl.
5949 * decl2.c: Change order of inclusion.
5950 * except.c: Likewise.
5951 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
5952 back on c_expand_expr.
5953 * friend.c: Include expr.h.
5954 * init.c: Change order of inclusion.
5955 * Makefile.in: Update dependencies.
5956 * lex.h (free_lang_decl_chain): Remove.
5957 * optimize.c (maybe_clone_body): Use function_name_declared_p.
5958 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
5959 it doesn't exist.
5960 (instantiate_decl): Use function_name_declared_p.
5961 * semantics.c (lang_expand_expr_stmt): Remove.
5962 (set_current_function_name_declared): Likewise.
5963 (current_function_name_declared): Likewise.
5964 (begin_compound_stmt): Use function_name_declared_p.
5965 (add_decl_stmt): Remove.
5966 (setup_vtbl_ptr): Use function_name_declared_p.
5967 (add_scope_stmt): Remove.
5968 (current_scope_stmt_stack): New function.
5969 (cp_expand_stmt): Don't handle SCOPE_STMTs.
5970 (expand_body): Use function_name_declared_p.
5971 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
5972 * typeck.c: Change order of includes.
5973 (convert_sequence): Remove.
bb20cc46 5974
d9dbd9b1
JM
59752000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
5976
5977 * lex.c (reswords): Add _Complex.
5978
9985f210
RK
5979Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5980
5981 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
5982
f903ebb1
DA
59832000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5984
5985 * init.c (begin_init_stmts): Don't use // comments.
5986
f2ae0c45
JM
59872000-09-12 Jason Merrill <jason@redhat.com>
5988
5989 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
5990 all non-extern arrays.
5991
5992 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
5993 typenames, too. Downgrade complaint to pedwarn.
5994 (xref_tag): Warn about surprising behavior of 'friend struct T'.
5995 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
5996 'class This::Inherited'.
5997
71ad4a16
MM
59982000-09-12 Mark Mitchell <mark@codesourcery.com>
5999
6000 * decl.c (finish_case_label): Given the LABEL_DECL a
6001 DECL_CONTEXT.
6002
c3e76028
GDR
60032000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
6004
6005 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
6006 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
6007 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
6008 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
6009 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
6010 New macros.
6011 (sorry_for_unsupported_tree, print_scope_operator,
6012 print_left_paren, print_right_paren, print_left_bracket,
6013 print_right_bracket, print_whitespace): Likewise.
6014 (aggr_variety): Rename to class_key_or_enum.
6015 (print_type): Rename to print_type_id.
6016 (print_type_specifier_seq, print_simple_type_specifier,
6017 print_elaborated_type_specifier,
6018 print_rest_of_abstract_declarator,
6019 print_parameter_declaration_clause, print_exception_specification,
6020 print_nested_name_specifier, print_template_id,
6021 typedef_original_name, print_template_argument_list_start,
6022 print_template_argument_list_end): New functions.
6023
eb50138b
GDR
60242000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
6025
a8a05998 6026 * ir.texi: Add more documentation.
eb50138b 6027
f444e36b
MM
60282000-09-11 Mark Mitchell <mark@codesourcery.com>
6029
6030 * cp-tree.h (struct saved_scope): Remove x_function_parms.
6031 (current_function_parms): Don't define.
6032 (struct cp_language_function): Remove parms_stored.
6033 (current_function_just_assigned_this): Don't define.
6034 (current_function_parms_stored): Likewise.
6035 (static_ctors): Declare.
6036 (static_dtors): Likewise.
6037 (SF_EXPAND): Don't define.
6038 (expand_start_early_try_stmts): Remove declaration.
6039 (store_parm_decls): Likewise.
6040 * decl.c (static_ctors): Don't declare.
6041 (static_dtors): Likewise.
6042 (struct binding_level): Remove this_block.
6043 (poplevel): Remove dead code.
6044 (set_block): Likewise.
6045 (mark_binding_level): Don't mark this_block.
6046 (mark_saved_scope): Don't mark x_function_parms.
6047 (init_decl_processing): Don't add current_function_parms as a GC
6048 root.
6049 (check_function_type): Change prototype.
6050 (start_function): Remove RTL-generation code.
6051 (expand_start_early_try_stmts): Remove.
6052 (store_parm_decls): Give it internal linkage. Remove
6053 RTL-generation code.
6054 (finish_function): Remove RTL-generation code.
6055 * decl2.c (static_ctors): Fix formatting.
6056 (static_dtors): Likewise.
6057 * method.c (use_thunk): Don't call store_parm_decls.
6058 (synthesize_method): Likewise.
6059 * optimize.c (maybe_clone_body): Likewise.
6060 * parse.y (fn.def2): Likewise.
6061 (.set_base_init): Likewise.
6062 (nodecls): Likewise.
6063 * pt.c (instantiate_decl): Likewise.
6064 * rtti.c (synthesize_tinfo_fn): Likewise.
6065 * semantics.c (genrtl_try_block): Simplify.
6066 (expand_body): Use genrtl_start_function and
6067 genrtl_finish_function.
6068 (genrtl_start_function): New function.
6069 (genrtl_finish_function): Likewise.
6070
181d2ba0
NS
60712000-09-11 Nathan Sidwell <nathan@codesourcery.com>
6072
6073 * error.c (cp_tree_printer, case 'P'): Append break.
6074
f2d71db6
NS
60752000-09-11 Nathan Sidwell <nathan@codesourcery.com>
6076
6077 * cp-tree.h (frob_opname): Declare.
6078 * parse.y (saved_scopes): New static variable.
6079 (cp_parse_init): Adjust.
6080 (do_id): If lastiddecl is NULL, do do_identifier.
6081 (operator): Save scope information.
aca77bd1 6082 (unoperator): New reduction. Restore scope information.
f2d71db6
NS
6083 (operator_name): Append unoperator. Call frob_opname.
6084 * spew.c (frob_opname): Define.
6085
d8ea8f28
ZW
60862000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6087
6088 * decl.c, rtti.c: Include defaults.h if not already included.
6089 Don't define the *_TYPE_SIZE macros.
6090
56cb9733
MM
60912000-09-09 Mark Mitchell <mark@codesourcery.com>
6092
6093 * cp-tree.h (push_switch): Change prototype.
6094 (check_cp_case_value): Remove declaration.
6095 (decl_constant_value): Likewise.
6096 * decl.c (struct cp_switch): Add switch_stmt and cases.
6097 (case_compare): New function.
6098 (push_switch): Set switch_stmt. Initialize cases.
6099 (pop_switch): Clean up cases.
6100 (define_case_label): Rename to ...
6101 (finish_case_label): ... this. Do semantic analysis for case
6102 labels here.
6103 (start_function): Correct comment.
6104 * decl2.c (check_cp_case_value): Remove.
6105 * expr.c (do_case): Remove.
6106 * pt.c (tsubst_expr): Adjust call to finish_case_label.
6107 * semantics.c (genrtl_do_poplevel): Remove declaration.
6108 (RECHAIN_STMTS): Remove.
6109 (finish_break_stmt): Use build_break_stmt.
6110 (finish_continue_stmt): Use build_continue_stmt.
6111 (finish_switch_cond): Adjust condition here, rater than in
6112 c_expand_start_case.
6113 (finish_case_label): Remove.
6114 * typeck.c (c_expand_return): Remove.
6115 (c_expand_start_case): Likewise.
bb20cc46 6116
990a9693
GDR
61172000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
6118
6119 * ir.texi: Document type nodes.
6120
ae499cce
MM
61212000-09-06 Mark Mitchell <mark@codesourcery.com>
6122
54f7877c
MM
6123 * cp-tree.h (init_cp_semantics): Declare.
6124 (genrtl_try_block): Don't declare.
6125 (genrtl_handler): Likewise.
6126 (genrtl_catch_block): Likewise.
6127 (genrtl_ctor_stmt): Likewise.
6128 (genrtl_subobject): Likewise.
6129 (genrtl_do_poplevel): Likewise.
6130 (genrtl_named_return_value): Likewise.
6131 * lex.c (init_parse): Call init_cp_semantics.
6132 * semantics.c (genrtl_try_block): Give it internal linkage.
6133 (genrtl_handler): Likewise.
6134 (genrtl_catch_block): Likewise.
6135 (genrtl_ctor_stmt): Likewise.
6136 (genrtl_subobject): Likewise.
6137 (genrtl_do_poplevel): Likewise.
6138 (genrtl_named_return_value): Likewise.
6139 (lang_expand_stmt): Rename to ...
6140 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
6141 (init_cp_semantics): Define.
6142
3a0d3e1e
MM
6143 * decl.c (initialize_local_var): Remove RTL-generating code.
6144 * semantics.c (genrtl_try_block): Fix formatting.
6145
ae499cce
MM
6146 Move statement-tree facilities from C++ to C front-end.
6147 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
6148 (void_zero_node): Remove.
6149 (stmt_tree): Likewise.
6150 (scope_chain): Adjust.
6151 (language_function): Rename to cp_language_function.
6152 (cp_function_chain): Adjust.
6153 (current_stmt_tree): Remove.
6154 (last_tree): Likewise.
6155 (last_expr_type): Likewise.
6156 (struct lang_decl): Adjust.
6157 (STMT_IS_FULL_EXPR_P): Remove.
6158 (add_tree): Remove.
6159 (begin_stmt_tree): Likewise.
6160 (finish_stmt_tree): Likewise.
6161 (walk_tree_fn): Likewise.
6162 (walk_stmt_tree): Likewise.
6163 * class.c (finish_struct): Replace use of add_tree with add_stmt.
6164 * decl.c (mark_stmt_tree): Adjust type.
6165 (init_decl_processing): Don't build void_zero_node.
6166 (initialize_local_var): Adjust usage of current_stmt_tree.
6167 (finish_enum): Use add_stmt, not add_tree.
6168 (save_function_data): Adjust use of language_function.
6169 (finish_constructor_body): Use add_stmt, not add_tree.
6170 (finish_destructor_body): Likewise.
6171 (push_cp_function_context): Adjust use of language_function.
6172 (pop_cp_function_context): Likewise.
6173 (mark_lang_function): Likewise.
6174 (mark_cp_function_context): Likewise.
6175 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
6176 (build_vec_init): Likewise.
6177 * semantics.c (SET_LAST_STMT): Remove.
6178 (RECHAIN_STMTS): Don't use it.
6179 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
6180 (current_stmt_tree): Define.
6181 (add_tree): Remove.
6182 (finish_goto_stmt): Use add_stmt, not add_tree.
6183 (finish_expr_stmt): Likewise.
6184 (begin_if_stmt): Likewise.
6185 (finish_then_clause): Likewise.
6186 (begin_while_stmt): Likewise.
6187 (begin_do_stmt): Likewise.
6188 (finish_return_stmt): Likewise.
6189 (begin_for_stmt): Likewise.
6190 (finish_break_stmt): Likewise.
6191 (finish_continue_stmt): Likewise.
6192 (begin_switch_stmt): Likewise.
6193 (finish_case_label): Likewise.
6194 (begin_try_block): Likewise.
6195 (begin_function_try_block): Likewise.
6196 (begin_handler): Likewise.
6197 (begin_catch_block): Likewise.
6198 (begin_compound_stmt): Likewise.
6199 (begin_asm_stmt): Likewise.
6200 (finish_asm_stmt): Likewise.
6201 (finish_label_stmt): Likewise.
6202 (add_decl_stmt): Likewise.
6203 (finish_subobject): Likewise.
6204 (finish_decl_cleanup): Likewise.
6205 (finish_named_return_value): Likewise.
6206 (setup_vtbl_ptr): Likewise.
6207 (add_scope_stmt): Likewise.
6208 (finish_stmt_expr): Likewise.
6209 (prune_unused_decls): Remove.
6210 (begin_stmt_tree): Likewise.
6211 (finish_stmt_tree): Likewise.
6212 (prep_stmt): Adjust use of current_stmt_tree.
6213 (lang_expand_stmt): Likewise.
6214 * tree.c (statement_code_p): Remove.
6215 (cp_statement_code_p): New function.
6216 (walk_stmt_tree): Remove.
6217 (init_tree): Set lang_statement_code_p.
bb20cc46 6218
0e5921e8
ZW
62192000-09-06 Zack Weinberg <zack@wolery.cumb.org>
6220
6221 Integrated preprocessor.
6222
6223 * Make-lang.in, Makefile.in: Remove all references to input.c,
6224 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
6225 * gxx.gperf, hash.h, input.c: Delete.
6226 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
6227 initialized properly.
6228
6229 * class.c (fixup_pending_inline): Take a tree, not a
6230 struct pending_inline *. All callers changed.
6231 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
6232 RID_PROTECTED entries in ridpointers[] array here.
6233 * decl.c (duplicate_decls): Do not refer to struct
6234 pending_inline.
6235 (record_builtin_type, init_decl_processing): Use RID_MAX not
6236 CP_RID_MAX.
6237 (grokdeclarator): Use C_IS_RESERVED_WORD.
6238 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
6239 cpplib.
6240 (grok_x_components): Do not inspect pending_inlines chain.
6241
6242 * cp-tree.h (struct lang_identifier): Add rid_code entry.
6243 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
6244 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
6245 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
6246 TIME_IDENTIFIER_FILEINFO): Kill.
6247 Update prototypes.
6248 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
6249 single 32-bit word.
6250 * parse.y: Call do_pending_inlines unconditionally.
6251 reinit_parse_for_method is now snarf_method. fn.defpen is no
6252 longer necessary. Remove unnecessary <itype> annotation on
6253 SCOPE. Do not refer to end_of_file or struct pending_inline.
6254 * semantics.c (begin_inline_definitions): Call
6255 do_pending_inlines unconditionally.
6256
6257 * lex.c: Remove all code now shared with C front end.
6258 Initialize cpplib properly if USE_CPPLIB. Put reserved words
6259 into the get_identifier table. Rewrite pragma handling to
6260 work with the registry. Move code to save tokens for later
6261 processing to spew.c.
6262
6263 * spew.c: Rewrite everything in terms of token streams instead
6264 of text. Move routines here from lex.c / input.c as
6265 appropriate. GC-mark trees hanging off the pending inlines
6266 chain.
6267
44835fdd
MM
62682000-09-06 Mark Mitchell <mark@codesourcery.com>
6269
6270 * NEWS: Mention that the named return value extension has been
6271 deprecated.
6272 * cp-tree.h (original_result_rtx): Define.
6273 (TREE_REFERENCE_EXPR): Remove.
6274 (DECL_VPARENT): Likewise.
6275 (pushdecl_nonclass_level): Likewise.
6276 (store_return_init): Likewise.
6277 (reinit_lang_specific): Likewise.
6278 (genrtl_named_return_value): Change prototype.
6279 * decl.c (original_result_rtx): Remove.
6280 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
6281 Do not generate RTL for local variables here.
6282 (store_return_init): Remove.
6283 * semantics.c (genrtl_named_return_value): Simplify. Fold in
6284 store_return_init.
6285 (finish_named_return_value): Adjust accordingly. Warn that this
6286 extension is deprecated.
6287 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
6288
d7c4edd0
NS
62892000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6290
6291 * pt.c (type_unification_real): Replace switch with if.
6292 (unify): Tsubst non-type parms before comparing.
6293
46e2747c
NS
62942000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6295
6296 * error.c (dump_typename): New function, broken out of ...
6297 (dump_type): ... here. Use it.
6298 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
6299
c833d2be
NS
63002000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6301
6302 * init.c (build_offset_ref): Deal with namespace scoped
6303 TEMPLATE_ID_EXPRs.
6304
b1ce3eb2
NS
63052000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6306
6307 * class.c (resolve_address_of_overloaded_function): Add
6308 explanation message.
6309 * decl.c (define_case_label): Reformat explanation.
6310 * decl2.c (finish_static_data_member_decl): Likewise.
6311 (grokfield): Likewise.
6312 * friend.c (do_friend): Likewise.
6313
11f53b6a
ZW
63142000-09-05 Zack Weinberg <zack@wolery.cumb.org>
6315
6316 * tree.c (walk_tree): Expose tail recursion.
6317 (walk_stmt_tree): New function.
6318 * cp-tree.h: Prototype walk_stmt_tree.
6319 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
6320 the BLOCKs directly. If a BLOCK has no variables after
6321 pruning, discard it.
6322 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
6323 restore the line number.
6324
ee94fce6
MM
63252000-09-05 Mark Mitchell <mark@codesourcery.com>
6326
6327 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
6328 (pt.o): Remove dependency on HTAB_H.
6329 * cp-tree.h: Include hashtab.h.
6330 (walk_tree): Change prototype.
6331 (walk_tree_without_duplicates): New function.
6332 * decl.c (check_default_argument): Use it.
6333 * optimize.c (remap_decl): Adjust calls to walk_tree.
6334 (copy_body): Likewise.
6335 (expand_calls_inline): Likewise.
6336 (calls_setjmp_p): Use walk_tree_without_duplicates.
6337 * pt.c: Don't include hashtab.h.
6338 (for_each_template_parm): Use walk_tree_without_duplicates.
6339 * semantics.c (finish-stmt_tree): Likewise.
6340 (expand_body): Likewise.
6341 * tree.c (walk_tree): Add additional parameter.
6342 (walk_tree_without_duplicates): New function.
6343 (count_trees): Use it.
6344 (verify_stmt_tree): Adjust call to walk_tree.
6345 (find_tree): Use walk_tree_without_duplicates.
6346 (no_linkage_check): Likewise.
6347 (break_out_target_exprs): Adjust call to walk_tree.
6348 (cp_unsave): Likewise.
6349
a1281f45
KL
63502000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6351
6352 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
6353 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
6354 * cp-tree.h (TYPE_BINFO): Adjust comment.
6355 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
6356 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
6357 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
6358 (TYPE_TEMPLATE_INFO): Likewise.
6359 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
6360 * class.c (push_nested_class): Likewise.
6361 * decl.c (lookup_name_real): Likewise.
6362 (grokdeclarator): Likewise.
6363 (grok_op_properties): Likewise.
6364 (xref_tag): Likewise.
6365 (xref_basetypes): Likewise.
6366 * decl2.c (constructor_name_full): Likewise.
6367 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
6368 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
6369 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
6370 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6371 (dump_type_suffix): Likewise.
6372 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
6373 instead.
6374 (get_aggr_from_typedef): Likewise.
6375 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
6376 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6377 (write_template_parm): Likewise.
6378 (write_template_template_parm): Check tree code instead of
6379 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
0e5921e8 6380 * method.c (build_overload_nested_name): Add
a1281f45
KL
6381 BOUND_TEMPLATE_TEMPLATE_PARM.
6382 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
6383 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6384 * pt.c (convert_template_argument): Check tree code instead of
6385 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
6386 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
6387 (for_each_template_parm): Adjust comment.
6388 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
6389 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6390 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
6391 template_args_equal to compare template template parameter cases.
6392 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6393 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
6394 instead.
6395 * tree.c (copy_template_template_parm): Decide whether to create
6396 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
6397 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6398 (copy_tree_r): Likewise.
6399 * typeck.c (comptypes): Likewise. Check tree code instead of
6400 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
6401
c9672d45
ME
64022000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
6403
6404 * decl.c (finish_function): Move the code for handling functions
6405 marked with the constructor and destructor attributes inside the
6406 expand_p block.
6407
67804825
NS
64082000-09-04 Nathan Sidwell <nathan@codesourcery.com>
6409
6410 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
6411
1bc0793e
NS
64122000-09-04 Nathan Sidwell <nathan@codesourcery.com>
6413
6414 * pt.c (lookup_template_class): Remove abort.
6415 * tree.c (get_type_decl): Allow error_mark_node.
6416
3338663b
NS
64172000-09-04 Nathan Sidwell <nathan@codesourcery.com>
6418
6419 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
6420 TEMPLATE_ID_EXPRs.
6421
1b84dc37
MM
64222000-09-03 Mark Mitchell <mark@codesourcery.com>
6423
6424 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
c9672d45 6425 new ABI mangling.
1b84dc37 6426
9687f8f4
NS
64272000-09-01 Nathan Sidwell <nathan@codesourcery.com>
6428
6429 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
c9672d45 6430 union tag mismatch error reporting.
9687f8f4 6431
4f8025eb
NS
64322000-09-01 Nathan Sidwell <nathan@codesourcery.com>
6433
c9672d45 6434 * call.c (build_scoped_method_call): Check it is not a namespace.
4f8025eb 6435
495d26d6
JM
64362000-08-30 Jason Merrill <jason@redhat.com>
6437
6438 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
6439
6440 * tree.c (bot_manip): Check TREE_CONSTANT rather than
6441 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
6442 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
6443
6444 * decl.c (start_function): Always call make_function_rtl.
6445
7efcf466
ZW
64462000-08-29 Zack Weinberg <zack@wolery.cumb.org>
6447
495d26d6 6448 * semantics.c (prune_unused_decls): New function.
7efcf466
ZW
6449 (finish_stmt_tree): Call it via walk_tree.
6450
63ad61ed
ZW
64512000-08-29 Zack Weinberg <zack@wolery.cumb.org>
6452
6453 * class.c (build_secondary_vtable): Constify a char *.
6454 * decl.c (init_decl_processing): Initialize function_id_node,
6455 pretty_function_id_node, and func_id_node.
6456 * input.c (struct input_source): Constify 'str'.
6457 (feed_input): Constify first argument.
6458 * mangle.c (write_identifier): Constify argument.
6459 * pt.c (mangle_class_name_for_template): Constify argument.
6460
4361b41d
MM
64612000-08-29 Mark Mitchell <mark@codesourcery.com>
6462
6463 * typeck.c (mark_addressable): Remove code that pokes around in
6464 RTL.
6465
881c6935
JM
64662000-08-28 Jason Merrill <jason@redhat.com>
6467
6468 * lex.c (file_name_nondirectory): Move to toplev.c.
6469
6470 * cp-tree.h (LOCAL_CLASS_P): New macro.
6471 * class.c (finish_struct_1): Use it.
6472
f0f33848
AS
64732000-08-27 Alex Samuel <samuel@codesourcery.com>
6474
6475 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
6476 (write_encoding): Pass another argument to write_name.
6477 (write_name): Add ignore_local_scope parameter. Fix handling of
6478 local names.
6479 (write_nested_name): Use write_unqualified_name.
6480 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
6481 (write_template_prefix): Use write_unqualified_name.
6482 (write_component): Remove.
6483 (write_local_name): Add parameter. Use direct local entity to
6484 discriminator calculation.
0e5921e8 6485 (write_class_enum_type): Pass another argument to write_name.
f0f33848
AS
6486 (write_template_template_arg): Likewise.
6487 (make_guard_variable): Likewise.
0e5921e8 6488
94dfccd1
JM
64892000-08-27 Jason Merrill <jason@redhat.com>
6490
6491 * decl.c (pushdecl): Matching decls for local externs are found in
6492 the current level. Propagate linkage information from previous
6493 declarations.
6494
14fdf4b6
GDR
64952000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
6496
6497 * ir.texi (Expressions): Fix typo.
6498
b5232c64
GM
64992000-08-25 Greg McGary <greg@mcgary.org>
6500
6501 * tree.c (init_tree): Use ARRAY_SIZE.
6502
22a4158c
GDR
65032000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
6504
6505 * error.c (cp_tree_printer): Rework.
6506
f22967f3
MM
65072000-08-25 Mark Mitchell <mark@codesourcery.com>
6508
a0c182fe
MM
6509 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
6510 dyn-string.o.
6511 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
6512 (cp-demangle.o): Remove target.
6513 (dyn-string.o): Likewise.
6514
f22967f3
MM
6515 * decl.c (grokfndecl): Require that `main' return an `int'.
6516 * mangle.c (write_encoding): Don't mangle return types for
6517 conversion functions.
6518
a1066c99
GDR
65192000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
6520
6521 * error.c (tree_formatting_info): New data type.
6522 (tree_being_formatted): New macro.
6523 (tree_formatting_flags): Likewise.
6524 (put_whitespace): Likewise.
6525 (print_tree_identifier): Likewise.
6526 (print_identifier): Likewise.
6527 (cp_tree_printer, print_function_argument_list, print_declaration,
6528 print_expression, print_function_declaration,
6529 print_function_parameter, print_type, print_cv_qualifier): New
0e5921e8 6530 functions.
a1066c99
GDR
6531 (init_error): Initialize lang_printer.
6532
3f2b640a
JM
65332000-08-24 Jason Merrill <jason@redhat.com>
6534
6535 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
6536 adjustment necessary.
6537
7ec09bf7
GM
65382000-08-24 Greg McGary <greg@mcgary.org>
6539
6540 * cp-tree.h (MAIN_NAME_P): Remove macro.
6541
2ab99c46
GDR
65422000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
6543
6544 * error.c (print_instantiation_context): Don't forget to flush the
6545 buffer.
6546
7def1251
JM
65472000-08-23 Jason Merrill <jason@redhat.com>
6548
6549 * typeck.c (build_ptrmemfunc): Save the input pmf.
6550
6551 * method.c (process_modifiers): Use same_type_p.
6552
94350948
MM
65532000-08-23 Mark Mitchell <mark@codesourcery.com>
6554
6555 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
6556 * mangle.c (write_function_type): Change prototype.
6557 (write_encoding): Don't mangle return types for
6558 constructors or destructors.
6559 (write_type): Adjust call to write_function_type.
6560 * pt.c (instantiate_template): Instantiate alternate entry points
6561 when instantiating the main function.
0e5921e8 6562
a64e7329
GDR
65632000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
6564
6565 * error.c (cp_print_error_function): Don't use embedded '\n' in
0e5921e8 6566 output_printf.
a64e7329 6567
a72462a4
GDR
65682000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
6569
6570 * decl.c (init_decl_processing): Remove bogus initialization.
6571 * error.c (lang_print_error_function): Restore here.
0e5921e8
ZW
6572 (init_error): Initialize print_error_function.
6573
3add6264
TP
65742000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6575
6576 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
6577
cb753e49
GDR
65782000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
6579
6580 * Makefile.in (error.o): Depends on diagnostic.h
6581
6582 * cp-tree.h (problematic_instantiation_changed,
6583 record_last_problematic_instantiation, current_instantiation,
6584 print_instantiation_context): Declare.
6585 (maybe_print_template_context): Remove.
6586
6587 * decl.c (init_decl_processing): Set print_error_function to NULL.
6588 (lang_print_error_function): Remove, since we're using a new
6589 machinery.
6590
6591 * error.c: #include diagnostic.h
6592 (function_category): New function.
6593 (cp_diagnostic_starter): Likewise.
6594 (cp_diagnostic_finalizer): Likewise.
6595 (cp_print_error_function): Likewise.
6596 (maybe_print_instantiation_context): Likewise.
6597 (print_instantiation_full_context): Likewise.
6598 (print_instantiation_partial_context): Likewise.
6599 (print_instantiation_context): Define.
6600 (init_error): Initialize diagnostic pager and finalizer.
6601
6602 * pt.c (problematic_instantiation_changed): Define.
6603 (record_last_problematic_instantiation): Likewise.
6604 (current_instantiation): Likewise.
6605 (maybe_print_template_context): Remove.
6606 (print_template_context): Likewise.
6607 (current_tinst_level): Make static to reflect Brendan Kehoe's
6608 change of 1995-04-13.
0e5921e8
ZW
6609 (push_tinst_level): Call print_instantiation_context.
6610
05a3d06e 66112000-08-21 Nix <nix@esperi.demon.co.uk>
0e5921e8 6612
05a3d06e
N
6613 * lang-specs.h: Do not process -o or run the assembler if
6614 -fsyntax-only.
6615
93e2382f
JM
66162000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6617
6618 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
6619 variables.
6620 * decl2.c (lang_decode_option): Disable gettext attributes for
6621 -ansi.
6622
24805e80
GDR
66232000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
6624
6625 * lex.c (lang_init_options): Default diagnostic message maximum
6626 length to 80, when line-wrapping.
6627
b485e15b
MM
66282000-08-20 Mark Mitchell <mark@codesourcery.com>
6629
6630 * class.c (build_vtbl_initializer): Clear the entire
6631 vtbl_init_data. Start keeping track of the functions for which we
6632 have created vcall offsets here.
6633 (dfs_build_vcall_offset_vtbl_entries): Remove.
6634 (build_vcall_offset_vtbl_entries): Reimplement.
6635 (add_vcall_offset_vtbl_entries_r): New function.
6636 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
6637 computing when vcall offsets are necessary.
6638
2ae7bada
NS
66392000-08-18 Nathan Sidwell <nathan@codesourcery.com>
6640
6641 * decl.c (member_function_or_else): Use cp_error ... %T.
6642 (grokdeclarator): Likewise.
6643 (start_method): Likewise.
0e5921e8 6644 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
2ae7bada 6645
7a8b1375
NS
66462000-08-18 Nathan Sidwell <nathan@codesourcery.com>
6647
6648 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
0e5921e8 6649 TYPE_DECLs.
7a8b1375 6650
19420d00
NS
66512000-08-18 Nathan Sidwell <nathan@codesourcery.com>
6652
6653 * cp-tree.h (PTRMEM_OK_P): New macro.
6654 (itf_ptrmem_ok): New enumeration value.
6655 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
6656 argument. Diagnose implicit pointer to member.
6657 (instantiate_type): Don't diagnose implicit pointer to member
6658 here. Pass itf_ptrmem_ok if ok. Adjust calls to
6659 resolve_address_of_overloaded_function.
6660 * init.c (build_offset_ref): Set PTRMEM_OK_P.
6661 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
6662 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
6663 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
6664 (build_unary_op): Deal with single non-static member in
6665 microsoft-land.
6666
66081283
NS
66672000-08-18 Nathan Sidwell <nathan@codesourcery.com>
6668
6669 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
6670
fa40aa12
NS
66712000-08-18 Nathan Sidwell <nathan@codesourcery.com>
6672
6673 * cp-tree.h (enum_name_string): Remove prototype.
6674 (report_case_error): Remove prototype.
6675 * cp/typeck2.c (enum_name_string): Remove.
6676 (report_case_error): Remove.
6677 * error.c (dump_expr): Deal with enum values directly.
6678 Correctly negate integer constant.
6679
d13b34e9
NS
66802000-08-17 Nathan Sidwell <nathan@codesourcery.com>
6681
6682 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
6683 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
6684 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
6685 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
6686 (__cxa_vec_new): Use __cxa_vec_new2.
6687 (__cxa_vec_delete): Use __cxa_vec_delete2.
6688
2f1b80af
NS
66892000-08-17 Nathan Sidwell <nathan@codesourcery.com>
6690
6691 * vec.cc (__cxa_vec_new): Set "C" linkage.
6692 (__cxa_vec_ctor): Likewise.
6693 (__cxa_vec_cctor): Likewise.
6694 (__cxa_vec_dtor): Likewise.
6695 (__cxa_vec_delete): Likewise.
6696 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
6697 (__cxa_vec_ctor): Likewise.
6698 (__cxa_vec_cctor): Likewise.
6699 (__cxa_vec_dtor): Likewise.
6700 (__cxa_vec_delete): Likewise.
6701
105d8e1f
NS
67022000-08-17 Nathan Sidwell <nathan@codesourcery.com>
6703
6704 * class.c (instantiate_type): Reinstate local variable
6705 deleted in previous change.
0e5921e8 6706
f1819d9a
NS
6707 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
6708 itf_no_attributes.
105d8e1f 6709
5e76004e
NS
67102000-08-17 Nathan Sidwell <nathan@codesourcery.com>
6711
6712 * cp-tree.h (instantiate_type_flags): New enumeration.
6713 (instantiate_type): Change parameter.
6714 * class.c (instantiate_type): Adjust prototype. Adjust.
6715 * call.c (standard_conversion): Adjust instantiate_type call.
6716 (reference_binding): Likewise.
6717 (build_op_delete_call): Likewise.
6718 (convert_like_real): Likewise.
6719 * cvt.c (cp_convert_to_pointer): Likewise.
6720 (convert_to_reference): Likewise.
6721 * pt.c (convert_nontype_argument): Likewise.
6722 * typeck.c (build_binary_op): Likewise.
6723 (build_ptrmemfunc): Likewise.
6724 (convert_for_assignment): Likewise.
6725
4b054b80
NS
67262000-08-17 Nathan Sidwell <nathan@codesourcery.com>
6727
6728 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
6729 (current_aggr): Define.
6730 * decl.c (grokdeclarator): Make sure a friend class is an
6731 elaborated type specifier.
6732 * parse.y (current_aggr): Remove static definition.
6733 (cp_parse_init): Adjust.
6734 (structsp): Clear and restore current_aggr.
6735 (component_decl_list): Clear current_aggr.
0e5921e8 6736
4b054b80
NS
6737 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
6738 aggregate tag on the typename's context.
0e5921e8 6739
321cba97
NS
6740 * pt.c (tsubst_friend_class): Return error_mark_node, if
6741 parms becomes NULL.
6742 (instantiate_class_template): Ignore error_mark_node friend types.
4b054b80 6743
08aead78
NS
67442000-08-14 Nathan Sidwell <nathan@codesourcery.com>
6745
6746 * cvt.c (warn_ref_binding): New static function, broken out of ...
0e5921e8 6747 (convert_to_reference): ... here. Use it.
08aead78 6748
fa1f3ebc
KL
67492000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
6750
6751 * parse.y (template_arg): Add rule for template qualified with
6752 global scope.
6753
9845b52b
TP
67542000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6755
6756 * decl2.c (add_function): Reorganize.
6757 (arg_assoc): Do not consider function template decls.
6758
e69c8072
JM
67592000-08-11 Jason Merrill <jason@redhat.com>
6760
6761 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
6762 looking inside.
6763
5c1e5476
NS
67642000-08-11 Nathan Sidwell <nathan@codesourcery.com>
6765
6766 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
6767 (lookup_nested_tag): Likewise.
0e5921e8 6768
5c1e5476
NS
6769 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
6770 can be produced.
6771
5426aa7f
NS
67722000-08-11 Nathan Sidwell <nathan@codesourcery.com>
6773
6774 * parse.y (named_complex_class_head_sans_basetype): Remove
6775 always true if.
6776
fd037e0d
NS
67772000-08-11 Nathan Sidwell <nathan@codesourcery.com>
6778
6779 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
6780 explicit TEMPLATE_ID_EXPR args.
6781 (build_expr_from_tree, case CALL_EXPR): Likewise.
6782
73ae5c34
NS
67832000-08-11 Nathan Sidwell <nathan@codesourcery.com>
6784
6785 * decl.c (check_tag_decl): Diagnose typename's which don't
6786 declare anything.
6787
aa54df09
NS
67882000-08-10 Nathan Sidwell <nathan@codesourcery.com>
6789
6790 * init.c (build_aggr_init): Reject bogus array initializers
6791 early.
6792
7e8dad18
NS
67932000-08-09 Nathan Sidwell <nathan@codesourcery.com>
6794
6795 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
6796 runtime.
6797 * cp/tinfo.cc (__dynamic_cast): Likewise.
0e5921e8 6798 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7e8dad18 6799
0f586b9b
NS
68002000-08-09 Nathan Sidwell <nathan@codesourcery.com>
6801
6802 * cvt.c (convert_to_pointer_force): Fix error message when
0e5921e8 6803 attempting to cast from ambiguous base.
0f586b9b 6804
08e72a19
JM
68052000-08-08 Jason Merrill <jason@redhat.com>
6806
6807 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
6808 (tsubst_template_arg_vector): Likewise.
6809
6810 * decl2.c (build_anon_union_vars): Choose the largest field; don't
6811 assume that one will be as large as the union.
6812
0811ea8f
KH
68132000-08-07 Kazu Hirata <kazu@hxi.com>
6814
6815 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
6816 * decl.c (pop_labels): Likewise.
6817
f9fcf62b
JO
68182000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
6819
6820 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
6821 specifications.
6822 (__pointer_to_member_type_info): Likewise.
6823 (__base_class_info): Likewise.
6824 (__class_type_info): Likewise.
6825 (__si_class_type_info): Likewise.
6826 (__vmi_class_type_info): Likewise.
6827 * tinfo.cc (__si_class_type_info::__do_find_public_src):
6828 Changed member names to match specifications.
6829 (__vmi_class_type_info::__do_find_public_src): Likewise.
6830 (__si_class_type_info::__do_dyncast): Likewise.
6831 (__vmi_class_type_info::__do_dyncast): Likewise.
6832 (__si_class_type_info::__do_upcast): Likewise.
6833 (__vmi_class_type_info::__do_upcast): Likewise.
6834 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
6835 (__pbase_type_info::__pointer_catch): Likewise.
6836 (__pointer_type_info::__pointer_catch): Likewise.
6837 (__pointer_to_member_type_info::__pointer_catch): Likewise.
6838
a36556a8
ZW
68392000-08-04 Zack Weinberg <zack@wolery.cumb.org>
6840
0e5921e8
ZW
6841 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
6842 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
6843 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
a36556a8 6844
452a394b
MM
68452000-08-04 Mark Mitchell <mark@codesourcery.com>
6846
6847 * cp-tree.h (add_method): Change prototype.
6848 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
6849 Don't double the size of the method vector in the error case.
6850 (handle_using_decl): Adjust call to add_method.
6851 (add_implicitly_declared_members): Likewise.
6852 (clone_function_decl): Likewise.
6853 * decl2.c (check_classfn): Likewise.
6854 * semantics.c (finish_member_declaration): Likewise.
0e5921e8 6855
b8458e3e
JM
68562000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
6857
6858 * decl.c (flag_isoc94): New variable.
6859
a1bcc528
JM
68602000-08-02 Jason Merrill <jason@redhat.com>
6861
6862 * pt.c (do_type_instantiation): Add complain parm; don't complain
6863 if called recursively.
6864 * cp-tree.h, parse.y: Adjust.
6865
50e60bc3
ZW
68662000-08-02 Zack Weinberg <zack@wolery.cumb.org>
6867
eae51189
ZW
6868 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
6869 -Wno-strict-prototypes.
6870
37620334
ZW
6871 * g++spec.c: Adjust type of second argument to
6872 lang_specific_driver, and update code as necessary.
6873
50e60bc3
ZW
6874 * cp-tree.h: Don't prototype min_precision here.
6875 (my_friendly_assert): Cast expression to void.
6876 * semantics.c (do_poplevel): Initialize scope_stmts.
6877
3f954fc3
MM
68782000-08-02 Mark Mitchell <mark@codesourcery.com>
6879
6880 * cp-tree.h (DECL_NEEDED_P): Tweak.
6881
ab4fa7ed
JM
68822000-07-28 Jason Merrill <jason@redhat.com>
6883
6884 * lang-specs.h: Use %i in rule for .ii files.
6885
4871239e
ZW
68862000-07-31 Zack Weinberg <zack@wolery.cumb.org>
6887
6888 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
6889
911a71a7
MM
68902000-07-30 Mark Mitchell <mark@codesourcery.com>
6891
6892 Allow indirect primary bases.
6893 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
6894 primary_base.
6895 (CLASSTYPE_VFIELD_PARENT): Remove.
6896 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
6897 (BINFO_PRIMARY_BINFO): Remove.
6898 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
6899 (BINFO_VBASE_PRIMARY_P): Likewise.
6900 (BINFO_PRIMARY_BASE_OF): New macro.
6901 (BINFO_INDIRECT_PRIMARY_P): Likewise.
6902 (get_primary_binfo): New function.
6903 * decl.c (lang_mark_tree): Make lang_type::primary_base.
6904 * class.c (vcall_offset_data_s): Rename to ...
6905 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
6906 and add ctor_vtbl_p.
6907 (get_derived_offset): Use get_primary_binfo.
6908 (dfs_mark_primary_bases): Adjust handling of virtual primary
6909 bases.
6910 (mark_primary_bases): Likewise.
6911 (set_primary_base): Take a binfo, not an integer, as a
6912 representation of the primary base.
6913 (indirect_primary_base_p): Remove.
6914 (determine_primary_base): Adjust for indirect primary bases.
6915 (dfs_find_final_overrider): Fix typo in coment.
6916 (update_vtable_entry_for_fn): Use get_primary_binfo.
6917 (layout_nonempty_base_or_field): Tweak.
6918 (build_base_fields): Adjust for new primary base semantics.
6919 (dfs_propagate_binfo_offsets): Remove.
6920 (propagate_binfo_offsets): Rewrite.
6921 (dfs_set_offset_for_shared_vbases): Remove.
6922 (layout_virtual_bases): Don't use it.
6923 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
6924 ABI.
6925 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
6926 CLASSTYPE_VFIELD_PARENT.
6927 (dfs_get_primary_binfo): New function.
6928 (get_primary_binfo): Likewise.
6929 (dump_class_hierarchy_r): Tweak printing of primary bases.
6930 (build_vtbl_initializer): Fix typo in comments. Use
6931 vtbl_init_data.
6932 (build_vcall_and_vbase_vtbl_entries): Likewise.
6933 (build_vbaes_offset_vtbl_entries): Likewise.
6934 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
6935 BV_VCALL_INDEX to handle indirect primary bases.
6936 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
6937 (build_rtti_vtbl_entries): Likewise.
6938 * search.c (get_shared_vbase_if_not_primary): Tweak.
6939 (find_vbase_instance): Likewise.
6940 (binfo_for_vtable): Simplify.
6941 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
6942 (make_binfo): Make it have 11 entries.
0e5921e8 6943
722bed0f
AS
69442000-07-30 Alex Samuel <samuel@codesourcery.com>
6945
6946 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
6947 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
6948 ascertaining primaryness.
6949 (G): Remove template_args.
6950 (decl_is_template_id): New function.
6951 (write_encoding): Use decl_is_template_id.
6952 (write_name): Likewise. Handle type_decls. Get main variant of
6953 type decls.
6954 (write_nested_name): Likewise.
6955 (write_prefix): Likewise.
6956 (write_template_prefix): Likewise.
6957 (write_special_name_constructor): Remove defunct production from
6958 comment.
6959 (write_bare_function_type): Remove comment about absent parameter.
6960 (write_template_template_arg): Add missing grammar production to
6961 comment.
6962
9076e292
JM
69632000-07-27 Jason Merrill <jason@redhat.com>
6964
6965 * decl.c (duplicate_decls): If common_type produces a non-typedef
6966 type for a typedef, just use the old type.
6967
b2244c65
MM
69682000-07-27 Mark Mitchell <mark@codesourcery.com>
6969
6970 * cp-tree.h (function_depth): Declare.
6971 (verify_stmt_tree): Likewise.
6972 (find_tree): Likewise.
6973 * decl.c (function_depth): Give it external linkage.
6974 * optimize.c (optimize_function): Increment and decrement it.
6975 * tree.c (verify_stmt_tree_r): New function.
6976 (verify_stmt_tree): Likewise.
6977 (find_tree_r): Likewise.
6978 (find_tree): Likewise.
6979
62e3bf54
JM
69802000-07-27 Jason Merrill <jason@redhat.com>
6981
9076e292
JM
6982 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
6983 TYPE_PTRMEMFUNC_P.
6984 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
62e3bf54 6985
5a728aca
MM
69862000-07-26 Mark Mitchell <mark@codesourcery.com>
6987
6988 * decl.c (start_cleanup_fn): Mark the function as `inline'.
6989 * decl2.c (get_guard): Call cp_finish_decl, not
6990 rest_of_decl_compilation, for local guards.
6991 * lex.c (do_identifier): Remove unused variable.
6992
6a1fa5f9
ME
6993Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
6994
6995 * parse.y: Add missing ';'.
6996
0c10a805
MM
69972000-07-26 Mark Mitchell <mark@codesourcery.com>
6998
6999 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
7000 of `extern "C++"'.
7001
8b27e9ef
NS
70022000-07-25 Nathan Sidwell <nathan@codesourcery.com>
7003
7004 Kill strict_prototype. Backwards compatibility only for
7005 non NO_IMPLICIT_EXTERN_C systems.
7006 * cp-tree.h (flag_strict_prototype): Remove.
7007 (strict_prototype): Remove.
7008 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
7009 * decl.c (maybe_push_to_top_level): Adjust.
7010 (pop_from_top_level): Adjust.
7011 (decls_match): Only allow sloppy parm matching for ancient
7012 system headers.
7013 (init_decl_processing): Adjust.
7014 (grokdeclarator): Adjust.
7015 * decl2.c (flag_strict_prototype): Remove.
7016 (strict_prototype): Remove.
7017 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
7018 (lang_f_options): Remove "strict-prototype".
7019 (unsupported-options): Add "strict-prototype".
7020 * lex.c (do_identifier): Adjust.
7021 (do_scoped_id): Adjust.
7022 * parse.y (empty_parms): Adjust.
7023 * class.c (push_lang_context): Adjust.
7024 (pop_lang_context): Adjust.
7025 * typeck.c (comp_target_parms): Adjust.
7026
c3783399
NS
70272000-07-25 Nathan Sidwell <nathan@codesourcery.com>
7028
7029 * decl.c (poplevel): Deal with anonymous variables at for scope.
7030 (maybe_inject_for_scope_var): Likewise.
7031
a7023245
ZW
70322000-07-25 Zack Weinberg <zack@wolery.cumb.org>
7033
7034 * decl.c: Remove all signal handling code, now done in toplev.c.
7035
95ee998c
MM
70362000-07-23 Mark Mitchell <mark@codesourcery.com>
7037
7038 * decl.c (make_rtl_for_nonlocal_decl): Rework.
7039
7040 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
7041 correctly.
7042
1b493b81
ZW
70432000-07-20 Zack Weinberg <zack@wolery.cumb.org>
7044
7045 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
7046 Define my_friendly_assert and my_friendly_abort as macros
7047 which may call friendly_abort. Prototype friendly abort, not
7048 my_friendly_abort or my_friendly_assert.
7049 * decl.c (signal_catch): Report the signal caught in the error
7050 message. Call fatal directly.
7051 * typeck2.c (ack, my_friendly_assert): Delete.
7052 (my_friendly_abort): Rename to friendly_abort. Expect file,
7053 line, and function parameters. Report the abort code, then
7054 call fancy_abort. Do not mask an abort if errors have
7055 already occurred.
7056
a306451c
NS
70572000-07-18 Nathan Sidwell <nathan@codesourcery.com>
7058
7059 * typeck.c (comp_target_parms): Remove obsolete parameter.
7060 (comp_target_types): Adjust.
7061
f49fad00
JM
70622000-07-17 Jason Merrill <jason@redhat.com>
7063
7064 * typeck.c (mark_addressable): Never set TREE_USED.
7065 * call.c (build_call): Don't abort on calls to library functions
7066 that have been declared normally.
7067
7068 * typeck.c (build_binary_op): Fix grammar in warning.
7069
7070 * exception.cc (__eh_free): Fix prototype.
7071
7072 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
7073
0e5921e8 7074 * decl.c (pushdecl): Handle seeing an OVERLOAD in
f49fad00
JM
7075 IDENTIFIER_NAMESPACE_VALUE.
7076
69690d98
MM
70772000-07-16 Mark Mitchell <mark@codesourcery.com>
7078
7079 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
7080 * method.c (use_thunk): Correct handling of vcall offsets.
7081
bfbbc080
ZW
70822000-07-14 Zack Weinberg <zack@wolery.cumb.org>
7083
7084 * .cvsignore: parse.h and parse.c have no cp- prefix.
7085
83a90717
MM
70862000-07-13 Mark Mitchell <mark@codesourcery.com>
7087
7088 * .cvsignore: New file.
7089
ea414c97
ZW
70902000-07-13 Zack Weinberg <zack@wolery.cumb.org>
7091
7092 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
7093
792abd35
MM
70942000-07-12 Mark Mitchell <mark@codesourcery.com>
7095
7096 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
7097 * parse.c: Remove.
7098 * parse.h: Likewise.
7099
72a50ab0
MM
71002000-07-11 Mark Mitchell <mark@codesourcery.com>
7101
7102 * class.c (layout_class_type): Add pointers to virtual bases after
7103 base classes under the old ABI.
7104
0dfdeca6
BC
71052000-07-10 Benjamin Chelf <chelf@codesourcery.com>
7106
7107 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
7108 (finish_continue_stmt): Likewise.
7109 (begin_for_stmt): Remove call to note_level_for_for.
7110 (finish_goto_stmt): Change call from build_min_nt
7111 to build_stmt.
7112 (finish_expr_stmt): Likewise.
7113 (begin_if_stmt): Likewise.
7114 (begin_while_stmt): Likewise.
7115 (finish_while_stmt): Likewise.
7116 (finish_return_stmt): Likewise.
7117 (begin_for_stmt): Likewise.
7118 (finish_for_stmt): Likewise.
7119 (finish_break_stmt): Likewise.
7120 (begin_switch_stmt): Likewise.
7121 (finish_case_label): Likewise.
7122 (genrtl_try_block): Likewise.
7123 (begin_try_block): Likewise.
7124 (begin_handler): Likewise.
7125 (begin_compound_stmt): Likewise.
7126 (finish_asm_stmt): Likewise.
7127 (finish_label_stmt): Likewise.
7128 (add_decl_stmt): Likewise.
7129 (finish_subobject): Likewise.
7130 (finish_decl_cleanup): Likewise.
7131 (finish_named_return_value): Likewise.
7132 (setup_vtbl_ptr): Likewise.
7133 (add_scope_stmt): Likewise.
7134 * decl.c (finish_constructor_body): Likewise.
7135 (finish_destructor_body): Likewise.
7136 * optimize.c (copy_body_r): Likewise.
7137 (initialize_inlined_parameters): Likewise.
7138 (declare_return_variable): Likewise.
7139 (expand_call_inline): Likewise.
0e5921e8 7140
f12eef58
JJ
71412000-07-10 Jakub Jelinek <jakub@redhat.com>
7142
7143 * semantics.c (expand_body): Sync interface information
7144 at the end of function body expansion.
7145
2bb5d995
JM
71462000-07-09 Jason Merrill <jason@redhat.com>
7147
7148 * init.c (build_new_1): Bail early if the call to new fails.
7149
0e5921e8 7150 * decl.c (compute_array_index_type): Check specifically for
2bb5d995
JM
7151 an INTEGER_CST, not just TREE_CONSTANT.
7152
0e5921e8 7153 * decl.c (duplicate_decls): Don't call duplicate_decls on
2bb5d995
JM
7154 the DECL_TEMPLATE_RESULT.
7155 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
7156 codes.
7157
7158 * error.c (dump_template_bindings): Don't crash if we had an
7159 invalid argument list.
7160
7161 * typeck.c (c_expand_start_case): Do narrowing here.
7162 * semantics.c (finish_switch_cond): Not here.
7163
71642000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
7165
7166 * parse.y (asm_clobbers): Do string concatenation.
7167
089acd57
MM
71682000-07-09 Mark Mitchell <mark@codesourcery.com>
7169
7170 * decl.c (pushtag): Don't put local classes in template functions
7171 on the local_classes list.
7172
71732000-07-04 Scott Snyder <snyder@fnal.gov>
7174
7175 * decl2.c (get_guard): Add missing return for old ABI local
7176 variable case.
7177
7b019c19
MM
71782000-07-09 Mark Mitchell <mark@codesourcery.com>
7179
7180 * cp-tree.h (char_type_p): New function.
7181 * decl.c (init_decl_processing): Don't initialize
7182 signed_wchar_type_node or unsigned_wchar_type_node.
7183 (complete_array_type): Handle brace-enclosed string-constants.
7184 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
7185 * tree.c (char_type_p): New function.
7186 * typeck2.c (digest_init): Use char_type_p.
7187
a5f1c5f8
NS
71882000-07-06 Nathan Sidwell <nathan@codesourcery.com>
7189
7190 * pt.c (tsubst): Don't layout type, if it's error_mark.
7191
84e5ca0f
NS
71922000-07-06 Nathan Sidwell <nathan@codesourcery.com>
7193
7194 * pt.c (instantiate_pending_templates): Reset template level.
7195
ab785305
JM
71962000-07-05 Jason Merrill <jason@redhat.com>
7197
7198 * call.c (joust): Don't complain about `operator char *()' beating
7199 `operator const char *() const'.
7200
90418208
JM
72012000-07-04 scott snyder <snyder@fnal.gov>
7202 Jason Merrill <jason@redhat.com>
7203
0e5921e8 7204 * repo.c (repo_get_id): Handle the case where a class with virtual
90418208
JM
7205 bases has a null TYPE_BINFO_VTABLE.
7206
72072000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
7208 Jason Merrill <jason@redhat.com>
7209
7210 * parse.y (member_init): Just pass in the type.
7211 * init.c (expand_member_init): Handle getting a type.
7212
7213