]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/ChangeLog
class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if TYPE_HAS_TRIVIAL_INIT_REF...
[gcc.git] / gcc / cp / ChangeLog
CommitLineData
8b16faa2
MM
12002-04-30 Mark Mitchell <mark@codesourcery.com>
2
3 * class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
4 TYPE_HAS_TRIVIAL_INIT_REF is false or
5 TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
6
ac905924
JM
72002-04-30 Jason Merrill <jason@redhat.com>
8
9 * decl.c (grokdeclarator): Don't override TYPE_NAME of an
10 anonymous class with a typedef if there are attributes.
11
e6e81f1c 122002-04-29 Paul Eggert <eggert@twinsun.com>
b819d9e0 13
e6e81f1c 14 * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
b819d9e0 15
3a73bffb
JJ
162002-04-29 Jakub Jelinek <jakub@redhat.com>
17
18 PR c++/6477
19 * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
20 non-NULL first.
21
33dd07ee
MM
222002-04-29 Mark Mitchell <mark@codesourcery.com>
23
24 PR c++/6492
25 * pt.c (tsubst_friend_class): If the friend has an explicit scope,
26 enter that scope before name lookup.
27
28 PR c++/6486
29 * method.c (do_build_copy_constructor): Avoid building
30 cv-qualified reference types.
31
4bd7c270
NS
322002-04-29 Nathan Sidwell <nathan@codesourcery.com>
33
34 PR c++/5719
35 * decl.c (grok_op_properties): Assignment ops don't have to return
36 by value. operator% should.
37
45806a3f
FS
382002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
39
40 PR c/6343
41 * decl.c (duplicate_decls): Call merge_weak.
42
94a50397
RH
432002-04-26 Richard Henderson <rth@redhat.com>
44
45 * parse.y (malloced_yyss, malloced_yyvs): New.
46 (yyoverflow): Re-add. Set them.
47 (free_parser_stacks): New.
48
7d793e9b
MM
492002-04-26 Mark Mitchell <mark@codesourcery.com>
50
51 PR c++/6497
52 * method.c (do_build_assign_ref): Pass a derivation to
53 build_method_call when calling base class assignment operators.
54
bde3c0c0
RH
552002-04-26 Richard Henderson <rth@redhat.com>
56
57 * parse.y (yyoverflow): Revert.
58
b84a3874
RH
592002-04-26 Richard Henderson <rth@redhat.com>
60
61 PR c/3581
62 * parse.y (string): Remove. Update all uses to use STRING
63 instead, and not call combine_strings.
64 * rtti.c (tinfo_name): Use fix_string_type.
65 * semantics.c (finish_asm_stmt): Don't call combine_strings.
66 * spew.c (yylexstring): New.
67 (read_token): Use it.
68
6052bef0
RH
692002-04-25 Richard Henderson <rth@redhat.com>
70
71 PR c/2161
72 * parse.y (yyoverflow): New.
73
8d1f0f67
JM
742002-04-25 Jason Merrill <jason@redhat.com>
75
76 PR c++/5607
77 * search.c (check_final_overrider): No longer static.
78 * class.c (update_vtable_entry_for_fn): Call it.
79 * cp-tree.h: Adjust.
80
ff45c01e
NB
812002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
82
83 * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
84 * cp-tree.h (cxx_set_yydebug): Die.
85 * lex.c (YYDEBUG): Get from c-lex.h.
86 (cxx_set_yydebug): Remove.
87 * parse.y: Include c-lex.h.
88 (YYDEBUG): Get from c-lex.h.
89
a62d375f
MM
902002-04-24 Mark Mitchell <mark@codesourcery.com>
91
92 PR c++/6438.
93 * cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
94 void.
95
349ae713
NB
962002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
97
98 * cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
99 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
100 Redefine.
101 * cp-tree.h (cp_attribute_table): Rename.
102 * decl.c (lang_attribute_table): Remove declaration.
103 (cxx_init_decl_processing): Don't set it.
104 * tree.c (cp_attribute_table): Rename.
105
b602511f
JM
1062002-04-24 Jason Merrill <jason@redhat.com>
107
985723ce
JM
108 PR c++/6331
109 * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
110 * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
a49cfba8
JM
111 The pedwarn for array assignment is now unconditional.
112 * tree.c (build_cplus_array_type_1): Still process simple array types
113 normally in templates.
985723ce 114
b602511f
JM
115 PR c++/6395
116 * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
117 stuff for comdats.
118
29cece2e
JJ
1192002-04-23 Jakub Jelinek <jakub@redhat.com>
120
121 * parse.y (check_class_key): Allow KEY to be union/enum/struct/class
122 node with attributes.
123
515387dc
DB
1242002-2-23 David O'Brien <obrien@FreeBSD.org>
125
126 * g++spec.c (MATH_LIBRARY_PROFILE, LIBSTDCXX_PROFILE): Add.
127 Use MATH_LIBRARY_PROFILE and LIBSTDCXX_PROFILE if profile flag given.
128
77adef84
MM
1292002-04-23 Mark Mitchell <mark@codesourcery.com>
130
131 PR c++/6256:
132 * pt.c (tsubst_friend_class): Handle templates with explicit
133 nested names.
134
135 PR c++/6331:
136 * typeck.c (merge_types): Remember the cv-qualification of pointer
137 types when merging them.
138
b03e38e1
NB
1392002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
140
141 * cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
142 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
143 * cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
144 cxx_mark_function_context): New.
145 * decl.c (push_cp_function_context, pop_cp_function_context,
146 mark_cp_function_context): Rename for consistency.
147 (cxx_init_decl_processing): Don't set old hooks.
148
ab393bf1
NB
1492002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
150
151 * call.c (convert_type_from_ellipsis): Rename, update.
152 * cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
153 * cp-tree.h (convert_type_from_ellipsis): Rename.
154 * decl.c (cxx_init_decl_processing): Don't set hook.
155
7a228918
NB
1562002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
157
158 * call.c (build_new_method_call): Update.
159 * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
160 * cp-tree.h (cxx_incomplete_type_error): New.
161 * decl.c (grokdeclarator, grokparms): Update.
162 * decl2.c (check_classfn): Update.
163 * pt.c (tsubst): Update.
164 * typeck.c (complete_type_or_else, expr_sizeof,
165 decay_conversion): Update.
166 * typeck2.c (incomplete_type_error): Rename.
167 (add_exception_specifier): Update.
168
8152c320
JM
1692002-04-18 Jason Merrill <jason@redhat.com>
170
171 PR c++/5658
172 * search.c (setup_class_bindings): A class template qualifies as a
173 type binding.
174
32121b96
JJ
1752002-04-17 Jakub Jelinek <jakub@redhat.com>
176
177 PR c++/6316
178 * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
179 before expanding.
180
b2123dc0
MM
1812002-04-16 Mark Mitchell <mark@codesourcery.com>
182
183 * init.c (begin_init_stmts): Remove commented out code.
184 (finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
185 * semantics.c (begin_gobal_stmt_expr): Adjust call to
186 expand_start_stmt_expr.
187
0f268005
MM
1882002-04-15 Mark Mitchell <mark@codesourcery.com>
189
190 * decl.c (register_dtor_fn): Pass the address of dso_handle, not
191 dso_handle itself, to __cxa_atexit.
192
bd6bec6b
GDR
1932002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
194
195 * error.c (cxx_print_error_function): Adjust call to macros.
196
0f490a2b
JJ
1972002-04-14 Jakub Jelinek <jakub@redhat.com>
198
199 * class.c (layout_virtual_bases): Do all dsize computation on trees.
200
85b7def6
JM
2012002-04-14 Jason Merrill <jason@redhat.com>
202
203 * typeck.c (get_member_function_from_ptrfunc): Don't do
204 gratuitious division and multiplication on
205 ptrmemfunc_vbit_in_delta targets.
206
0481bc21
MM
2072002-04-12 Mark Mitchell <mark@codesourcery.com>
208
209 PR c++/5373.
210 * semantics.c (finish_expr_stmt): Remember the type of the
211 expression before any conversions are performed.
212
9928a3d5
MM
2132002-04-12 Mark Mitchell <mark@codesourcery.com>
214
215 PR c++/5189.
216 * call.c (add_template_candidate_real): Do not treat member
217 templates as copy constructors.
218
c740732f
MM
2192002-04-12 Mark Mitchell <mark@codesourcery.com>
220
221 * decl.c (duplicate_decls): Do not copy the RTL for a variable
222 declaration if the old variable had an incomplete type and the new
223 variable does not.
224 (complete_vars): Do not call layout_decl for completed variables.
225
4782bd5b
RS
2262002-04-12 Richard Sandiford <rsandifo@redhat.com>
227
228 * decl.c (duplicate_decls): Don't try to unify an implicit typedef
229 with an explicit one.
230 (follow_tag_typedef): New.
231 (lookup_tag): Use it to extract the tag of an explicit typedef.
232 (xref_tag): Likewise.
233
2f4d058f
AH
2342002-04-11 Andrew Haley <aph@redhat.com>
235
236 * typeck.c (type_after_usual_arithmetic_conversions):
237 If two types have the same variant, return immediately.
238 When two floating-point operands are the same precision:
239 convert to float if one of the operands is float;
240 if neither operand is one of the standard types, return the type
241 of the first operand.
242
ba3307c0
NS
2432002-04-10 Nathan Sidwell <nathan@codesourcery.com>
244
245 PR c++/5507
246 * decl.c (make_typename_type): Remove implicit typenameness.
247
cd6af0c1
JM
2482002-04-09 Jason Merrill <jason@redhat.com>
249
edf5cd1d
JM
250 PR optimization/6189
251 * semantics.c (genrtl_start_function): Don't free
252 DECL_SAVED_FUNCTION_DATA for inline functions.
253
cd6af0c1
JM
254 * init.c (build_member_call): For now, don't convert to
255 intermediate base if it would cause an error.
256
224e6091
PC
2572002-04-08 Paolo Carlini <pcarlini@unitus.it>
258
259 * parse.y (namespace_qualifier, maybe_identifier,
260 begin_explicit_instantiation, end_explicit_instantiation,
261 apparent_template_type, .finish_template_type,
262 do_id, maybe_init, defarg_again, component_decl_1):
263 Add ending ';', in accordance with POSIX.
264
0154eaa8
MM
2652002-04-06 Mark Mitchell <mark@codesourcery.com>
266
267 PR c++/5571
268 * class.c (layout_class_type): Remember incomplete static
269 variables.
270 (finish_struct_1): Call complete_vars, not
271 hack_incomplete_structures.
272 * cp-tree.h (hack_incomplete_structures): Rename to ...
273 (complete_vars): ... this.
274 (struct saved_scope): Remove incomplete.
275 (namespace_scope_incomplete): Remove.
276 * decl.c (struct binding_level): Remove incomplete.
277 (incomplete_vars): New variable.
278 (mark_binding_level): Don't mark incomplete.
279 (print_binding_level): Don't print it.
280 (mark_saved_scope): Don't mark incomplete.
281 (pushdecl): Use maybe_register_incopmlete_var.
282 (cxx_init_decl_processing): Register incomplete_vars for GC.
283 (start_decl_1): Clarify error message.
284 (hack_incomplete_vars): Remove.
285 (maybe_register_incomplete_var): New function.
286 (complete_vars): Likewise.
287
f62ea157
JM
2882002-04-06 Jason Merrill <jason@redhat.com>
289
03da5286
JM
290 PR c++/4934
291 * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
292 set before checking it.
293
a29e1034
JM
294 PR c++/525
295 * init.c (build_member_call): Use build_scoped_ref.
296 (resolve_offset_ref): Likewise.
297 * call.c (build_scoped_method_call): Likewise.
298 * tree.c (maybe_dummy_object): Kludge around current_class_type being
299 wrong.
300 * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
301 * cp-tree.h: Adjust.
302
303 * init.c (push_base_cleanups): Just use build_scoped_method_call.
304
f62ea157
JM
305 PR c++/6179
306 * method.c (implicitly_declare_fn): Pass unqualified type to
307 synthesize_exception_spec.
308
78ef5b89
NB
3092002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
310
311 * cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
312 * cvt.c: Update comment.
313 * init.c (expand_cleanup_for_base): Update.
314 * semantics.c (finish_parenthesized_expr): Update.
315 * typeck.c (cp_truthvalue_conversion): Update.
316
dffa4176
JM
3172002-04-04 Jason Merrill <jason@redhat.com>
318
659e5a7a
JM
319 * semantics.c (finish_eh_cleanup): New fn.
320 * cp-tree.h: Add prototype.
321 * init.c (perform_member_init, expand_cleanup_for_base): Use
322 finish_eh_cleanup.
323 * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
324 * cp-tree.h: Remove references.
325 * decl.c (begin_constructor_body, end_constructor_body): Likewise.
326 * dump.c (cp_dump_tree): Likewise.
327 * pt.c (tsubst_expr): Likewise.
328 * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
329 (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
330 * tree.c (cp_statement_code_p): Likewise.
331
332 * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
333
334 PR c++/5636
335 * semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
336 cleanup for nrv.
337
dffa4176
JM
338 PR c++/5104
339 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
340 specifiers.
341 [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
342
ef4f94ac
RH
3432002-04-03 Richard Henderson <rth@redhat.com>
344
345 * cp-lang.c (cxx_warn_unused_global_decl): New.
346 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
347
599bba86
NB
3482002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
349
350 * cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
351 * tree.c (init_tree): Don't set hook.
352
cba2004a
RS
3532002-04-03 Roger Sayle <roger@eyesopen.com>
354
355 PR c++/5998:
356 * decl.c (duplicate_decls): Don't mess with assembler names when
357 redeclaring builtin functions as static.
358
dffd7eb6
NB
3592002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
360
361 * call.c (build_addr_func): Update.
362 * class.c (resolve_address_of_overloaded_function): Update.
363 * cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
364 * cp-tree.h (cxx_mark_addressable): New.
365 * decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update.
366 * decl2.c (build_cleanup): Update.
367 * except.c (build_throw): Update.
368 * init.c (resolve_offset_ref): Update.
369 * pt.c (convert_nontype_argument): Update.
370 * semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update.
371 * typeck.c (decay_conversion, build_array_ref, build_unary_op,
372 unary_complex_lvalue): Update.
373 (mark_addressable): Rename.
374
04a9d080
RS
3752002-04-01 Roger Sayle <roger@eyesopen.com>
376
377 PR c++/5998:
378 * decl.c (duplicate_decls): Overwrite the RTL when (and only
379 when) overwriting a built-in function. Don't use COPY_DECL_RTL,
380 but follow the SET_DECL_RTL idiom used elsewhere in the function.
381
ceef8ce4
NB
3822002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
383
384 * cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
385 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
386 * decl.c (grokdeclarator): Update.
387 * mangle.c (write_integer_cst): Update.
388 * typeck.c (build_binary_op): Update.
389
48a7a235
NB
3902002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
391
392 * cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
393 * lex.c (cxx_init): Don't set hook.
394
7cb32822
NB
3952002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
396
397 * Make-lang.in (error.o): Update.
398 * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
399 * cp-tree.h (struct diagnostic_context): Predeclare.
400 (cxx_print_error_function): New.
401 * error.c: Include langhooks-def.h.
402 (lang_print_error_function): Rename. Update.
403 (init_error): Don't set hook.
404
b0c48229
NB
4052002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
406
407 * cp-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
408 Redefine.
409 * cvt.c (cp_convert_to_pointer, type_promotes_to): Use new hooks.
410 * decl.c (finish_enum): Similarly.
411 * error.c (dump_type): Similarly.
412 * lex.c (cxx_init): Similarly.
413 * mangle.c (write_builtin_type): Similarly.
414 * typeck.c (comptypes): Similarly.
415
d52e4867
RS
4162002-03-28 Roger Sayle <roger@eyesopen.com>
417
418 PR c++/5998:
419 * decl.c (cxx_init_decl_processing): Re-enable built-in functions
420 in the g++ front-end.
421 (duplicate_decl): Allow redefinition of anticipated built-ins.
422 Fix inlining problem by over-writing the old DECL_RTL.
423 (lookup_namespace_name): Fail to find an identifier in the
424 specified namespace if its still anticipated.
425 (builtin_function_1): New function split out from builtin_function
426 to create a builtin in the current namespace with given context.
427 (builtin_function): Call builtin_function_1 to define the
428 appropriate builtins in both the std and global namespaces.
429 (select_decl): Don't test for anticipated decls here.
430 (unqualified_namespace_lookup): Instead ignore them whilst
431 searching through scopes and namespaces.
432 * decl2.c (do_nonmember_using_decl): If a using declaration
433 specifies an anticipated built-in function, mark it as no longer
434 anticipated in that scope.
435 (ambiguous_decl): Avoid resolving to an anticipated decl.
436 * lex.c (do_scoped_id): Fail to find an identifier in the global
437 namespace if its still anticipated.
438
f1e639b1
NB
4392002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
440
441 * cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine.
442 * cp-tree.h (cp_make_lang_type): Rename.
443 * lex.c (cp_make_lang_type): Rename.
444 (make_aggr_type): Update.
445 * tree.c (init_tree): Don't set make_lang_type_fn.
446
c7f4981a
JJ
4472002-03-29 Jakub Jelinek <jakub@redhat.com>
448
449 PR c++/6073
450 * class.c (finish_struct_1): Update static field's DECL_MODE even
451 if its type is a variant of t.
452
7ffb4fd2
NB
4532002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
454
455 * cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
456 * cp-tree.h (cxx_insert_default_attributes): New.
457 * decl.c (insert_default_attributes): Rename.
458
cd4e8331
MM
4592002-03-27 Mark Mitchell <mark@codesourcery.com>
460
461 PR c++/4884
462 * call.c (build_op_delete_call): Allow for the fact the placement
463 may be a COMPOUND_EXPR.
464
c9d892a8
NB
4652002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
466
467 * cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
468 * cp-tree.h (init_cplus_expand): Remove.
469 (cxx_expand_expr): New.
470 * expr.c (cplus_expand_expr): Rename cxx_expand_expr,
471 fix prototype.
472 (init_cplus_expand): Remove.
473 * lex.c (cxx_init): Don't call init_cplus_expand.
474
46ff5047
MM
4752002-03-26 Mark Mitchell <mark@codesourcery.com>
476
477 PR c++/4884.
478 * init.c (build_new_1): Allow for the fact the result of
479 build_function_call may be a COMPOUND_EXPR.
480
6d4c57a0
NS
4812002-03-26 Nathan Sidwell <nathan@codesourcery.com>
482
483 PR c++/5682
484 * cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
485 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
486 (dfs_skip_nonprimary_vbases_markedp): Remove.
487 * search.c (get_shared_vbase_if_not_primary): Remove.
488 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
489 (dfs_skip_nonprimary_vbases_markedp): Remove.
490 (dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
491 (dfs_marked_real_bases_queue_p): Likewise.
492
4f0ade92
NB
4932002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
494
495 * cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
496 * cp-tree.h (cxx_mark_tree): New.
497 * decl.c (lang_mark_tree): Rename cxx_mark_tree.
498
c88770e9
NB
4992002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
500
501 * cp-tree.h (cxx_maybe_build_cleanup): New.
502 * decl.c (destroy_local_var, hack_incomplete_structures): Update.
503 (maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
504 * tree.c (build_target_expr): Update.
7b3e5198 505 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
c88770e9 506
aaf93206
NB
5072002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
508
509 * decl2.c (cxx_decode_option): Handle -E.
510 * lang-specs.h (default_compilers): Preprocess with cc1plus.
511 * lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
512
e756a7da
JJ
5132002-03-23 Jakub Jelinek <jakub@redhat.com>
514
515 PR c++/6037
516 * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
517
ea9264e9
GDR
5182002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
519
520 * error.c (dump_type): Be careful about implicit typenames.
521
acb044ee
GDR
5222002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
523
524 PR C++/3656
525 * semantics.c (finish_base_specifier): Handle erronous base
526 classes.
527
b216cd4a
ZW
5282002-03-22 Zack Weinberg <zack@codesourcery.com>
529
530 * error.c: Always use REAL_VALUE_TO_DECIMAL; don't test
531 REAL_IS_NOT_DOUBLE.
532
9181f8db
JK
5332002-03-22 Jeff Knaggs <jknaggs@redhat.com>
534
cd6af0c1
JM
535 * typeck.c (get_member_function_from_ptrfunc): Scale idx down to
536 an index into the vtable_entry array regardless of
9181f8db
JK
537 TARGET_PTRMEMFUNC_VBIT_LOCATION.
538
e019cf95
AH
5392002-03-21 Aldy Hernandez <aldyh@redhat.com>
540
541 * tree.c (cp_cannot_inline_tree_fn): Same.
542
43577e6b
NB
5432002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
544
545 * cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
546 insert_block, getdecls, global_bindings_p): New.
547
8c152bad
NS
5482002-03-20 Nathan Sidwell <nathan@codesourcery.com>
549
550 PR c++/4361
551 * mangle.c (struct globals) Add internal_mangling_p member.
552 (write_template_param): Do internal mangling, if needed.
553 (mangle_conv_op_name_for_type): Request internal mangling.
554
e3fe84e5
JM
5552002-03-20 Jason Merrill <jason@redhat.com>
556
557 PR c++/2136
558 * init.c (build_delete): Check access for a member op delete here.
559 * decl2.c (delete_sanity): Not here.
560
ea122333
JM
5612002-03-19 Jason Merrill <jason@redhat.com>
562
563 PR c++/5118
564 * class.c (get_vfield_name): Use the constructor_name.
565
7afff7cf
NB
5662002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
567
568 * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
569 * cp-tree.h (lang_printable_name): Rename.
570 * error.c (lang_decl_name): Use new hook.
571 * lex.c (cxx_init): Remove old hook.
572 * pt.c (tsubst_decl): Use new hook.
573 * tree.c (lang_printable_name): Rename.
574
ff77ac85
EB
5752002-03-18 Eric Botcazou <ebotcazou@multimania.com>
576
577 PR c++/3882
578 * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
579 (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
580 only after recording the declaration.
581
ffd696af
JM
5822002-03-18 Jason Merrill <jason@redhat.com>
583
097955f2
JM
584 PR c++/2039
585 * init.c (resolve_offset_ref): Hand off to build_component_ref.
586
b663bcf3
JM
587 PR c++/4222, c++/5995
588 * call.c (build_over_call): Fix empty class logic.
589
0f4237c2
JM
590 PR c++/3870
591 * cp-tree.h (struct saved_scope): Add last_parms field.
592 * decl.c (maybe_push_to_top_level): Save last_function_parms.
593 (pop_from_top_level): Restore it.
594
001ad76c
JM
595 PR c++/4377
596 * mangle.c (write_expression): Strip NOP_EXPRs sooner. Also strip
597 NON_LVALUE_EXPRs.
598
599 PR c++/4003
ed2fa432
JM
600 * pt.c (tsubst_friend_function): Use decl_namespace_context.
601
ffd696af
JM
602 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
603 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
604 type with a nontrivial destructor.
605
f2606a97
JM
6062002-03-17 Jason Merrill <jason@redhat.com>
607
608 PR c++/4460
609 * class.c (build_base_path): Virtual base layout is fixed in
610 in-charge [cd]tors.
611
52dabb6c
NB
6122002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
613
614 * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
615 * parse.y (yyparse): Remove macro.
616
beb9c8a2
JM
6172002-03-17 Jason Merrill <jason@redhat.com>
618
619 PR c++/5757
620 * init.c (build_new_1): Pass the right pointer to op delete.
621
5dd236e2
NS
6222002-03-16 Nathan Sidwell <nathan@codesourcery.com>
623
624 PR c++/4361
625 * cp-tree.h (CLASSTYPE_METHOD_VEC): Document where templated
626 conversion operators go.
627 (struct lang_decl_flags): Add template_conv_p and unused
628 bitfields.
629 (DECL_TEMPLATE_CONV_FN_P): New macro.
630 * call.c (build_user_type_conversion_1): Don't check second type
631 conversion of overload set first.
632 * class.c (add_method): Make sure templated conversion operators
633 all end up on slot 2.
634 * lex.c (do_identifier): A conversion operator token might be
635 satisfied by a templated conversion operator.
5dd236e2
NS
636 * pt.c (check_explicit_specialization): Use
637 CLASSTYPE_FIRST_CONVERSION_SLOT.
638 (template_parm_this_level_p): New function.
639 (push_template_decl_real): Determine DECL_TEMPLATE_CONV_FN_P.
8c152bad 640 * search.c (lookup_fnfields_1): Template conversions will be on
5dd236e2
NS
641 the first slot.
642 * typeck.c (build_component_ref): Preserve the type of an
643 conversion operator name on the overload type.
644 (build_x_function_call): Retrieve the conversion operator name.
645
0ba20759
RH
6462002-03-15 Richard Henderson <rth@redhat.com>
647
648 * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
649
6e4ae815
MM
6502002-03-15 Mark Mitchell <mark@codesourcery.com>
651
652 * cp-tree.h (CLEANUP_DECL): Remove.
653 (CLEANUP_EXPR): Likewise.
654 * decl.c (destroy_local_var): Simplify.
655 (maybe_build_cleanup): Tidy.
656 * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
657 * semantics.c (cp_expand_stmt): Likewise.
658 * cp/tree.c (cp_statement_code_p): Likewise.
659
5cc90635
JM
6602002-03-15 Jason Merrill <jason@redhat.com>
661
6da794e8
JM
662 PR c++/5857
663 * decl.c (duplicate_decls): Use merge_types instead of common_type.
664 * typeck.c (common_type): Just hand off to
665 type_after_usual_arithmetic_conversions and
666 composite_pointer_type.
667 (merge_types): New fn.
668 (commonparms): Use it instead of common_type.
669 (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
670 (composite_pointer_type): Also handle attributes.
671 * cp-tree.h: Declare merge_types.
672
5cc90635
JM
673 * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
674 variables.
675 * decl2.c (maybe_make_one_only): Also mark the decl as needed.
676
ecb0eece
RH
6772002-03-14 Richard Henderson <rth@redhat.com>
678
679 * decl.c: Include c-pragma.h.
680 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
681 * Make-lang.in: Update dependencies.
682
d3f129b3
JJ
6832002-03-14 Jakub Jelinek <jakub@redhat.com>
684
f6562b37 685 PR c++/5908
d3f129b3
JJ
686 * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
687 * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
688
049e6879
RS
6892002-03-12 Richard Sandiford <rsandifo@redhat.com>
690
691 * mangle.c (write_builtin_type): Handle 128-bit integers even if
692 they are not a standard integer type.
693
872c9284
RS
6942002-03-12 Richard Sandiford <rsandifo@redhat.com>
695
696 * cp-tree.h (init_init_processing): Remove declaration.
697 * init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
698 * decl.c (cxx_init_decl_processing): Don't call init_init_processing.
699
2f9834e8
KG
7002002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
701
702 * cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
703 Define.
704 * decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
705 tree_code_length.
706 * lex.c (cplus_tree_code_type, cplus_tree_code_length,
707 cplus_tree_code_name): Delete.
708 (cxx_init): Don't call add_c_tree_codes, instead set
709 lang_unsafe_for_reeval. Don't try to copy into the various
710 tree_code arrays.
711
df867456
NS
7122002-03-12 Nathan Sidwell <nathan@codesourcery.com>
713
714 PR c++/5659
715 * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
716 * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
717 definitions.
718
ab04e34b
NS
7192002-03-11 Nathan Sidwell <nathan@codesourcery.com>
720
721 Revert 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>,
722 DR209 is now not a defect.
723 * cp-tree.h (skip_type_access_control): Remove.
724 * decl.c (grokdeclarator): Do type access control for friend
725 declarations.
726 * semantics.c (decl_type_access_control): Don't reset
727 current_type_lookups.
728 (save_type_access_control): Always save the lookups.
729 (skip_type_access_control): Remove.
730 (finish_class_definition): Don't change type_lookups.
731
999cc24c
NS
7322002-03-11 Nathan Sidwell <nathan@codesourcery.com>
733
734 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>,
735 It is incorrect.
736 * typeck.c (build_static_cast): Compare non-qualified types
737 with pointer to member conversions.
738
61eece67
DN
7392002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
740 Daniel Berlin <dan@dberlin.org>
741
742 * cp-lang.c (ok_to_generate_alias_set_for_type): New function.
743 (cxx_get_alias_set): Use it.
744
644d28d4
KG
7452002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
746
747 * cp-tree.h (stabilize_expr): Prototype.
748
7e326356
CR
7492002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
750
751 * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
752 conditional return void.
753
24965e7a
NB
7542002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
755
756 * cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
757 * cp-tree.h (cxx_unsave): New.
758 * tree.c (cp_unsave): Rename cxx_unsave, update prototype.
759 (init_tree): Update.
760
ca7558fc
KG
7612002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
762
763 * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of
764 explicit sizeof/sizeof.
765 * decl2.c (cxx_decode_option): Likewise.
766 * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise.
767
fd87b7a7
NS
7682002-03-02 Nathan Sidwell <nathan@codesourcery.com>
769
770 PR c++/775
771 * decl.c (lookup_tag): Only reject enum/class mismatch, not
772 class/union mismatch.
773 * parse.y (check_class_key): New function.
774 (structsp): Call it.
775
bfba94bd
MM
7762002-03-01 Michael Matz <matz@suse.de>
777
778 * typeck.c (cp_pointer_int_sum): Complete inner type which is
779 used later by size_in_bytes().
780
fdc9bf29
PE
7812002-03-01 Phil Edwards <pme@gcc.gnu.org>
782
783 * cp-tree.h: Require __GNUC__ to be #defined.
784 (build_init): Add missing prototype.
785
6f30f1f1
JM
7862002-03-01 Jason Merrill <jason@redhat.com>
787
788 * except.c: Don't include decl.h or obstack.h. Do include
789 tree-inline.h.
790 (build_throw): Destroy temporaries from the thrown
791 expression before calling __cxa_throw. Construct a thrown
792 temporary directly into the exception object.
793 (stabilize_throw_expr): New function.
794 (wrap_cleanups_r): New function.
795 * tree.c (stabilize_expr): New function.
796 * init.c (build_init): New function.
797 * Make-lang.in (cp/except.o): Adjust .h deps.
798
46cfb101
JM
7992002-02-28 Jason Merrill <jason@redhat.com>
800
07f521fc
JM
801 * search.c (lookup_base_r): Don't clear is_non_public just because
802 we found a friendly scope.
803
46cfb101
JM
804 * decl.c (finish_function): Only warn about missing return
805 statement with -Wreturn-type.
806
63e1b1c4
NB
8072002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
808
809 * class.c (build_clone): Update.
810 * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
811 * cp-tree.h (cxx_dup_lang_specific_decl): New.
812 * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
813 (copy_decl): Update.
814 * method.c (make_thunk): Update.
815
f458d1d5
ZW
8162002-02-27 Zack Weinberg <zack@codesourcery.com>
817
818 * decl2.c: Delete traditional-mode-related code copied from
819 the C front end but not used, or used only to permit the
820 compiler to link.
821
3387d36e
CR
8222002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
823
824 PR c++/4093
825 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
826 to void.
827
25c8b645
JJ
8282002-02-22 Jakub Jelinek <jakub@redhat.com>
829
830 PR other/5746
831 * semantics.c (finish_switch_cond): Don't call get_unwidened
832 if error_mark_node.
833
4f2b0fb2
NS
8342002-02-22 Nathan Sidwell <nathan@codesourcery.com>
835
836 PR c++/2645, DR 295
837 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
838 tf_keep_type_decl.
839 (make_typename_type): Use tsubst_flags_t.
840 * decl.c (make_typename_type): Adjust. Return non-artificial
841 TYPE_DECLs, if required.
842 (grokdeclarator): Simplify CVR qualification handling. Allow bad
843 qualifiers on typedef types.
844 * decl2.c (handle_class_head): Adjust make_typename_type call.
845 * parse.y (nested_name_specifier): Likewise.
846 (typename_sub0): Likewise.
847 (typename_sub1): Likewise.
848 * pt.c (convert_template_argument): Adjust make_typename_type
849 return value.
850 (tsubst): Adjust cp_build_qualified_type_real calls.
851 (check_cv_quals_for_unify): Cope with alowing bad qualifications
852 on template type parms.
853 (instantiate_decl): Recheck substitutions to give warnings on bad
854 qualifications.
855 * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
856
8fc2ba41
AH
8572002-02-21 Aldy Hernandez <aldyh@redhat.com>
858
859 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
860
861 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
862 unless DECL_ALWAYS_INLINE.
863
7552da58
JJ
8642002-02-20 Jakub Jelinek <jakub@redhat.com>
865
866 * typeck.c (cp_pointer_int_sum): Renamed from
867 pointer_int_sum, call pointer_int_sum.
868
00fae85d
JJ
8692002-02-20 Jakub Jelinek <jakub@redhat.com>
870
871 * decl.c (duplicate_decls): Return 0 if issued error about
872 redeclaration.
873
6ea868b7
JM
8742002-02-19 Jason Merrill <jason@redhat.com>
875
876 ABI change: Mangle `void (A::*)() const' as
877 M1AKFvvE, not MK1AFvvE.
878 * mangle.c (write_function_type): Write cv-quals for member
879 function type here.
880 (write_pointer_to_member_type): Not here.
881
c02f5e29
JM
8822002-02-18 Jason Merrill <jason@redhat.com>
883
884 * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
885 (do_decl_instantiation): Likewise.
886
624a5800
CR
8872002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
888
889 PR c++/5685
890 * decl.c (duplicate_decls): Make warning unconditional
891 if duplicate default argument declarations are present.
892
f6f8ada3
JJ
8932002-02-17 Jakub Jelinek <jakub@redhat.com>
894
895 * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
896 shortening.
897
8d6e459d
NS
8982002-02-15 Nathan Sidwell <nathan@codesourcery.com>
899
900 * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
901 remove incorrect comment. Move #if 0'd code to common path. Use
902 IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
903
ca4feb54
JM
9042002-02-13 Jason Merrill <jason@redhat.com>
905
57d5032b
JM
906 * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
907 (finish_function): Don't warn if current_function_returns_null.
908
bb26522d
JM
909 * typeck2.c (digest_init): Do handle values of vector type.
910
ca4feb54
JM
911 * typeck2.c (digest_init, process_init_constructor): Treat vectors
912 like arrays.
913
e6b9638b
JM
9142002-02-11 Jason Merrill <jason@redhat.com>
915
916 * parse.y (reserved_declspecs): Don't handle attributes.
917 (reserved_typespecquals): Handle them here.
918 * Make-lang.in (parse.c): Adjust expected conflicts.
919
1cf537c5
JJ
9202002-02-08 Jakub Jelinek <jakub@redhat.com>
921
922 * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
923 instead of compstmt.
924 (compstmt_or_stmtexpr): Renamed from compstmt.
925 (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
926
c2ea3a40
NS
9272002-02-07 Nathan Sidwell <nathan@codesourcery.com>
928
929 Rename instantiate_type_flags to tsubst_flags_t & expand use.
930 * cp-tree.h (instantiate_type_flags): Rename to ...
931 (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
932 add tf_warning flag.
933 (instantiate_type): Adjust prototype.
934 (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
935 do_type_instantiation, cp_build_qualified_type_real): Likewise.
936 cp_build_qualified_type: Adjust.
937 * class.c (instantiate_type): Adjust parameter. Rename itf_* to
938 tf_*.
939 * call.c (standard_conversion): Rename itf_* to tf_*.
940 (reference_binding): Likewise.
941 (convert_like_real): Likewise.
942 * cvt.c (cp_convert_to_pointer): Likewise.
943 (convert_to_reference): Likewise.
944 * decl.c (lookup_namespace_name): Use tf_* flags.
945 (make_typename_type): Likewise.
946 (grokdeclarator): Likewise.
947 * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
948 (coerce_template_template_parms, convert_template_argument,
949 coerce_template_parms, maybe_get_template_decl_from_type_decl,
950 lookup_template_class, tsubst_friend_function, tsubst_friend_class,
951 instantiate_class_template, tsubst_template_arg_vector,
952 tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
953 tsubst_decl, tsubst_arg_types, tsubst_function_type,
954 tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
955 instantiate_template, fn_type_unification,
956 resolve_overloaded_unification, verify_class_unification,
957 unify, get_bindings_real, do_type_instantiation,
958 regenerate_decl_from_template, instantiate_decl,
959 tsubst_initializer_list, tsubst_enum,
960 get_mostly_instantiated_function_type,
961 invalid_nontype_parm_type_p): Likewise.
962 * tree.c (cp_build_qualified_type_real): Likewise.
963 * typeck.c (build_binary_op): Rename itf_* to tf_*.
964 (build_ptrmemfunc): Likewise.
965 (convert_for_assignment): Likewise.
966
d5614afb
NS
9672002-02-07 Nathan Sidwell <nathan@codesourcery.com>
968
969 PR c++/109
970 * decl.c (grokdeclarator): Allow friend declarations from
8d6e459d 971 dependent types.
d5614afb
NS
972 * decl2.c (handle_class_head): Don't push into template parm contexts.
973 * pt.c (push_template_decl_real): Template parm contexts are never
974 being defined.
975
1af6141b
AO
9762002-02-05 Alexandre Oliva <aoliva@redhat.com>
977
978 * class.c: Include target.h.
979 (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
980 BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
981 bit-field layout.
982 * Make-lang.in: Adjust deps.
983
d8a6f584
JM
9842002-02-05 Jason Merrill <jason@redhat.com>
985
986 * error.c (dump_type): Be more helpful about VECTOR_TYPE.
987
6f9fdf4d
JJ
9882002-02-04 Jakub Jelinek <jakub@redhat.com>
989
990 * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
991 (finish_switch_cond): Set SWITCH_TYPE.
992
14691f8d
RH
9932002-02-04 Richard Henderson <rth@redhat.com>
994
995 * method.c (use_thunk): Always initialize the block tree. Reindent.
996 * semantics.c (expand_body): Emit thunks after function, not before.
997
e89a6075
JM
9982002-02-04 Jason Merrill <jason@redhat.com>
999
1000 * decl.c (start_function): Call cplus_decl_attributes immediately
1001 after grokdeclarator.
1002
1003 * decl.c (start_function): Combine DECL_RESULT handling code.
1004
9780c24f
JM
10052002-02-03 Jason Merrill <jason@redhat.com>
1006
1007 * xref.c: Remove.
1008 * Make-lang.in (CXX_OBJS): Remove cp/xref.o
1009 (cp/xref.o): Remove dependencies.
1010 * class.c (finish_struct_1, check_methods): Don't call xref fns.
1011 (finish_struct_1): Likewise.
1012 * friend.c (make_friend_class): Likewise.
1013 * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
1014 * spew.c (read_process_identifier): Likewise.
1015
65f36ac8
JM
10162002-02-01 Jason Merrill <jason@redhat.com>
1017
efe49da0
JM
1018 PR c++/4872
1019 * decl.c (finish_function): Warn about a non-void function with
1020 no return statement and no abnormal exit.
1021 * cp-tree.h (struct cp_language_function): Add returns_abnormally.
1022 (current_function_returns_abnormally): New macro.
1023 * call.c (build_call): Set it.
1024
f2d9afec
JM
1025 * typeck.c (build_component_ref): Always complain about offsetof
1026 constructs on non-PODs. Only make it an error for members of
1027 virtual bases.
1028
65f36ac8
JM
1029 * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
1030 (dump_function_decl): Always dump parms.
1031
1032 * decl2.c (finish_static_data_member_decl): Complain about a local
1033 class with a static data member.
1034
1035 PR c++/4286
1036 * search.c (lookup_field_1): Don't xref a static data member
1037 just because we looked it up.
1038
98884b26
JM
10392002-01-31 Jason Merrill <jason@redhat.com>
1040
b88c0704
JM
1041 * Make-lang.in (parse.c): Handle .output file.
1042
a588fe25
JM
1043 PR c++/3395
1044 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
1045 not TREE_TYPE.
1046 * semantics.c (finish_class_definition): Adjust.
1047
98884b26
JM
1048 Allow attributes in parms and casts.
1049 * parse.y (named_parm): Don't strip attrs.
1050 (declmods): Remove 'attributes' production.
1051 (nonempty_cv_qualifiers): Accept attributes.
1052 (ATTRIBUTE): Give precedence.
1053 * decl.c (groktypename): Handle attributes.
1054 (grokparms): Likewise.
1055
ffdeea47
JJ
10562002-01-29 Jakub Jelinek <jakub@redhat.com>
1057
1058 * decl2.c (cxx_decode_option): Pass 0 as last argument to
1059 cpp_handle_option.
1060 * lang-specs.h: Use cpp_unique_options instead of cpp_options
1061 when used together with cc1_options.
1062
b8b98c66
NS
10632002-01-29 Nathan Sidwell <nathan@codesourcery.com>
1064
1065 PR c++/5132
1066 * typeck2.c (digest_init): Make sure non-array core type is
1067 instantiated.
1068 * decl2.c (reparse_absdcl_as_casts): Just store the type in the
1069 constructor, rather than build a new one.
1070 (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
1071 PURPOSE of constructor elts.
1072
7437519c
ZW
10732002-01-23 Zack Weinberg <zack@codesourcery.com>
1074
1075 * Make-lang.in (parse.c): Adjust expected number of
1076 shift-reduce conflicts.
1077 (decl.o): Depend on diagnostic.h.
1078 * decl.c: Include diagnostic.h.
1079 (grokdeclarator): Check for null pointer.
1080 (finish_function): Don't abort when
1081 current_binding_level->parm_flag != 1, if errors have
1082 occurred; throw away the statement tree and extra binding
1083 levels, and continue.
1084 * lex.c (note_list_got_semicolon): Check for null pointer.
1085 * method.c (hack_identifier): Just return error_mark_node if
1086 value is error_mark_node.
1087 * parse.y (primary: TYPEID(type_id)): No need to use
1088 TYPE_MAIN_VARIANT here.
1089 (handler_seq): Accept an empty list of catch clauses and
1090 generate a fake handler block to avoid later crashes.
1091 (ansi_raise_identifier): Accept the error token too.
1092 * semantics.c (begin_class_definition,
1093 finish_class_definition): Check for error_mark_node.
1094
c588e52b
ZW
10952002-01-23 Zack Weinberg <zack@codesourcery.com>
1096
1097 * typeck2.c (friendly_abort): Delete definition.
1098 * cp-tree.h (friendly_abort): Don't prototype.
1099 (my_friendly_assert): Use fancy_abort.
1100
d55ecaa4
CR
11012002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
1102
1103 * cp-tree.h (my_friendly_abort): Remove.
1104
0a01c261
JJ
11052002-01-23 Jakub Jelinek <jakub@redhat.com>
1106
1107 * spew.c (pending_inlines, pending_inlines_tail,
1108 processing_these_inlines): Make static.
1109 (mark_pending_inlines): Remove static.
1110 (begin_parsing_inclass_inline): If in function, save pi
1111 for GC to cp_function_chain->unparsed_inlines instead.
1112 (process_next_inline): Likewise.
1113 * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
1114 (mark_pending_inlines): Add prototype.
1115 * decl.c (spew_debug): Remove unused extern.
1116 (mark_lang_function): Call mark_pending_inlines.
1117
a98facb0
CR
11182002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
1119
c588e52b
ZW
1120 * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
1121 init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
1122 semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
a98facb0
CR
1123 Change my_fancy_abort() to abort().
1124
f893c16e
JM
11252002-01-23 Jason Merrill <jason@redhat.com>
1126
608afcc5
JM
1127 PR c++/5453
1128 * class.c (fixed_type_or_null): Fix thinko.
1129
f893c16e
JM
1130 PR c++/3331
1131 * init.c (resolve_offset_ref): Use build_indirect_ref.
6bc34b14 1132
b2115575
JM
1133 * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
1134
f893c16e
JM
11352002-01-22 Jason Merrill <jason@redhat.com>
1136
b5856475
JM
1137 * parse.y (function_body): Suppress the block for the outermost
1138 curly braces.
1139 * decl.c (pushdecl): Don't try to skip it.
1140 (begin_function_body): Keep the block we create, not the next one.
1141 * init.c (emit_base_init): Don't mess with keep_next_level.
1142
6bc34b14
JM
1143 * class.c (build_base_path): Tweak formatting.
1144
3807621a
NS
11452002-01-19 Nathan Sidwell <nathan@codesourcery.com>
1146
1147 Fix regression introduced with patch for c++/775
1148 * parse.y (class_head_defn): Check for template specializations
1149 with a different class-key.
1150
cdd2559c
JM
11512002-01-17 Jason Merrill <jason@redhat.com>
1152
1153 * decl.c (begin_constructor_body, begin_destructor_body): New fns.
1154 (begin_function_body): Call them and keep_next_level.
1155 * init.c (emit_base_init): Call keep_next_level.
1156 * semantics.c (setup_vtbl_ptr): Lose.
1157 * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
1158 (vtbls_set_up_p): Lose.
1159 * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
1160 * method.c (do_build_copy_constructor): Likewise.
1161 (synthesize_method): Call finish_mem_initializers.
1162 * parse.y (nodecls): Likewise.
ad6b1795
JM
1163
1164 * error.c (dump_type_suffix): Print the exception specs before
1165 recursing.
1166 (dump_function_decl): Here, too.
1167
1168 * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
1169
195a5def
IR
11702002-01-10 Ira Ruben <ira@apple.com>
1171
6bc34b14 1172 PR c++/907
195a5def
IR
1173 * decl.c (start_method): Handle attrlist.
1174
f21ee879
JJ
11752002-01-10 Jakub Jelinek <jakub@redhat.com>
1176
1177 * decl2.c (max_tinst_depth): Increase default limit to 500.
1178
11792002-01-10 Graham Stott <grahams@redhat.com>
8fabd4e2
GS
1180
1181 * spew.c (YYCHAR): Uppercase macro parameter and add
1182 parenthesis.
1183 (YYCODE): Likewise.
1184 (NAME): Uppercase macro parameter.
1185
c3af729a
GS
11862002-01-09 Graham Stott <grahams@redhat.com>
1187
6bc34b14 1188 * decl.h (grokdeclarator): Wrap long line.
5d8b4235 1189
c3af729a
GS
1190 * semantics.c (FINISH_COND): Uppercase macro paramaters and
1191 add parenthesis.
1192
91800747
GS
11932002-01-08 Graham Stott <grahams@redhat.com>
1194
1195 * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
1196 (PALLOC): Uppercase macro parameter and whitespace.
1197 (SALLOC): Uppercase macro parameter.
1198 (SFREE): Uppercase macros parameter, add parenthese and
1199 whitespace.
1200 (STREQL): Uppercase macro parameter and whitespace.
1201 (STRNEQ): Likewise.
1202 (STRLSS): Likewise.
1203 (STRLEQ): Likewise.
1204 (STRGTR): Likewise.
1205 (STRGEQ): Likewise.
1206
1207 * call.c (convert_like): Add parenthesis and wrap.
1208 (convert_like_with_context): Likewise.
1209 (ICS_RANK): Whitespace.
1210 (NEED_TEMPORARY_P): Remove parenthesis.
1211
1212 * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
1213 whitespace.
1214 (VTT_MARKED_BINFO_P): Likewise.
1215
1216 * decl.c (BINDING_LEVEL): Add parenthesis.
1217 (DEF_OPERATOR): Likewise.
1218
91800747
GS
1219 * mangle.c (MANGLE_TRACE): Add parenthesis.
1220 (MANGLE_TRACE_TREE): Likewise.
1221 (write_signed_number): Likewise.
1222 (write_unsigned_number): Likewise.
1223
1224 * pt.c (ccat): Uppercase macro parameter.
1225 (cat): Likewise
1226
1227 * search.c (SET_BINFO_ACCESS): Add parenthesis.
1228
15eb1e43
JM
12292002-01-07 Jason Merrill <jason@redhat.com>
1230
1231 * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
1232 to pedwarn.
1233
6bc34b14 1234 PR c++/3536
15eb1e43
JM
1235 * method.c (make_thunk): If !flag_weak, give the thunk the
1236 function's linkage.
1237 (use_thunk): Here, too.
1238
b34c06e3
GS
12392002-01-07 Graham Stott <grahams@redhat.com>
1240
6bc34b14
JM
1241 * error.c: Update copyright date.
1242 (print_scope_operator): Add parenthesis.
1243 (print_left_paren): Likewise.
1244 (print_right_paren): Likewise.
1245 (print_left_bracket): Likewise.
1246 (print_right_bracket): Likewise.
1247 (print_template_argument_list_start): Likewise.
1248 (print_template_argument_list_end): Likewise.
1249 (print_non_consecutive_character): Likewise.
1250 (print_tree_identifier): Likewise.
1251 (print_identifier): Likewise.
1252 (NEXT_CODE): Uppercase macro parameter.
1253 (ident_fndecl): Delete unused.
1254 (GLOBAL_THING): Likewise.
b34c06e3 1255
98e40e83
GS
12562002-01-06 Graham Stott <grahams@redhat.com>
1257
1258 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
1259 (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
1260 (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
1261 (RECORD_OR_UNION_TYPE_CHECK): Likewise.
1262 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
1263 (C_IS_RESERVED_WORD): Uppercase macro parameter.
1264 (C_RID_YYCODE) Likewise.
1265 (ptrmem_cst): Use rtx.
1266 (LOCAL_BINDING_P): Add whitespace.
1267 (INHERITED_VALUE_BINDING_P): Likewise.
1268 (BINDING_SCOPE): Wrap long line.
1269 (BINDING_HAS_LEVEL_P): Remove parenthesis.
1270 (BINDING_VALUE): Wrap long line.
1271 (BINDING_TYPE): Whitespace.
1272 (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
1273 (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
c588e52b 1274 (IDENTIFIER_NAMESPACE_VALUE): Likewise.
98e40e83
GS
1275 (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
1276 (same_type_p): Uppercase macro parameters.
1277 (same_type_ignoring_top_level_qualifiers_p): Likewise.
1278 (OVL_FUNCTION): Wrap long line.
1279 (OVL_CHAIN): Whitespace.
b34c06e3 1280 (OVL_CURRENT): Add parenthesis and whitespace.
98e40e83
GS
1281 (OVL_NEXT): Whitespace.
1282 (OVL_USED): Likewise.
1283 (IDENTIFIER_TYPE_VALUE): Likewise.
1284 (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
1285 (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
1286 (LANG_ID_FIELD): Whitespace.
1287 (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
1288 (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
1289 (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
1290 (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
1291 (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
1292 (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
1293 (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
1294 (IDENTIFIER_VIRTUAL_P): Likewise.
1295 (IDENTIFIER_OPNAME_P): Likewise.
1296 (IDENTIFIER_TYPENAME_P): Remove parenthesis.
1297 (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
1298 (C_SET_EXP_ORIGINAL_CODE): Likewise.
1299 (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
1300 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
1301 (IS_AGGR_TYPE): Uppercase macro parameter.
1302 (CLASS_TYPE_P): Likewise.
1303 (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
1304 (IS_AGGR_TYPE_2): Whitespace.
1305 (TAGGED_TYPE_P): Uppercase macro parameter.
1306 (TYPE_BUILT_IN): Whitespace.
1307 (TYPE_FOR_JAVA): Likewise.
1308 (FUNCTION_ARG_CHAIN): Remove parenthesis.
1309 (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
1310 (FUNCTION_FIRST_USER_PARAM): Likewise.
1311 (PROMOTES_TO_AGGR_TYPE): Whitespace.
1312 (DERIVED_FROM_P): Add parenthesis and wrap.
1313 (UNIQUELY_DERIVED_FROM_P): Likewise.
1314 (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
1315 (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
1316 (CLASSTYPE_USE_TEMPLATE): Whitespace.
1317 (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
1318 (TYPE_GETS_DELETE): Add parenthesis.
1319 (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
1320 (TYPE_HAS_ASSIGN_REF): Likewise,
1321 (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
1322 (TYPE_HAS_INIT_REF): Likewise.
1323 (TYPE_HAS_CONST_INIT_REF): Likewise.
1324 (TYPE_BEING_DEFINED): Likewise.
1325 (TYPE_LANG_SPECIFIC): Likewise.
1326 (CLASSTYPE_RTTI): Likewise.
1327 (TYPE_OVERLOADS_CALL_EXPR): Likewise.
1328 (TYPE_OVERLOADS_ARRAY_REF): Likewise.
1329 (TYPE_OVERLOADS_ARROW): Likewise.
1330 (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
1331 (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
1332 (CLASSTYPE_METHOD_VEC): Likewise.
1333 (CLASSTYPE_MARKED_N): Likewise.
1334 (CLASSTYPE_MARKED): Likewise.
1335 (CLASSTYPE_MARKED2): Likewise.
1336 (CLASSTYPE_MARKED3): Likewise.
1337 (CLASSTYPE_MARKED4): Likewise.
1338 (CLASSTYPE_MARKED5): Likewise.
1339 (CLASSTYPE_MARKED6): Likewise.
1340 (SET_CLASSTYPE_MARKED): Whitespace.
1341 (CLEAR_CLASSTYPE_MARKED): Likewise.
1342 (SET_CLASSTYPE_MARKED2): Likewise.
1343 (CLEAR_CLASSTYPE_MARKED2): Likewise.
1344 (SET_CLASSTYPE_MARKED3): Likewise.
1345 (CLEAR_CLASSTYPE_MARKED3): Likewise.
1346 (SET_CLASSTYPE_MARKED4): Likewise.
1347 (CLEAR_CLASSTYPE_MARKED4): Likewise.
1348 (SET_CLASSTYPE_MARKED5): Likewise.
1349 (CLEAR_CLASSTYPE_MARKED5): Likewise.
1350 (SET_CLASSTYPE_MARKED6): Likewise.
1351 (CLEAR_CLASSTYPE_MARKED6): Likewise.
1352 (CLASSTYPE_TAGS): Likewise.
1353 (CLASSTYPE_VSIZE): Likewise.
1354 (CLASSTYPE_VBASECLASSES): Likewise.
1355 (CANONICAL_BINFO): Add parenthesis.
1356 (CLASSTYPE_SIZE(NODE): Likewise.
1357 (CLASSTYPE_SIZE_UNIT): Likewise.
1358 (CLASSTYPE_ALIGN(NODE): Likewise.
1359 (CLASSTYPE_USER_ALIGN): Likewise.
1360 (TYPE_JAVA_INTERFACE): Likewise.
1361 (CLASSTYPE_PURE_VIRTUALS): Likewise.
1362 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
1363 (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
1364 (CLASSTYPE_HAS_MUTABLE): Likewise.
1365 (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
1366 (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
1367 (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
1368 (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
1369 (CLASSTYPE_INTERFACE_ONLY): Likewise.
1370 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
1371 (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
1372 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
1373 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
1374 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
1375 (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
1376 (BINFO_UNSHARED_MARKED): Whitespace.
1377 (BINFO_MARKED): Whitespace and wrap.
1378 (SET_BINFO_MARKED): Likewise.
1379 (CLEAR_BINFO_MARKED): Likewise.
1380 (BINFO_VTABLE_PATH_MARKED): Likewise.
1381 (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
1382 (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
1383 (BINFO_SUBVTT_INDEX): Remove parenthesis.
1384 (BINFO_VPTR_INDEX): Likewise.
1385 (BINFO_PRIMARY_BASE_OF): Likewise,
1386 (CLASSTYPE_VFIELDS): Whitespace.
1387 (VF_DERIVED_VALUE): Wrap long line.
1388 (NAMESPACE_LEVEL): Whitespace.
6bc34b14
JM
1389 (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
1390 (DEFARG_POINTER): Whitespace.
1391 (DECL_NEEDED_P): Remove parenthesis.
1392 (DECL_LANGUAGE): Whitespace.
1393 (SET_DECL_LANGUAGE): Add parenthesis.
1394 (DECL_CONSTRUCTOR_P): Whitespace and wrap.
1395 (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
1396 (DECL_IN_AGGR_P): Whitespace.
1397 (DECL_FRIEND_P): Likewise.
1398 (DECL_BEFRIENDING_CLASSES): Likewise.
1399 (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
1400 (DECL_NONCONVERTING_P): Whitespace.
1401 (DECL_PURE_VIRTUAL_P): Likewise.
1402 (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
1403 (DECL_PENDING_INLINE_INFO): Whitespace.
1404 (DECL_SORTED_FIELDS): Likewise.
1405 (DECL_DEFERRED_FN): Likewise.
1406 (DECL_TEMPLATE_INFO): Likewise.
1407 (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
1408 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
1409 (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
1410 (TMPL_ARGS_LEVEL): Likewise.
1411 (SET_TMPL_ARGS_LEVEL): Likewise.
1412 (INNERMOST_TEMPLATE_PARMS): Whitespace.
1413 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
1414 (INTEGRAL_CODE_P(CODE): Add parenthesis.
1415 (CP_INTEGRAL_TYPE_P): Remove parenthesis.
1416 (TYPE_HAS_CONSTRUCTOR): Whitespace.
1417 (TREE_HAS_CONSTRUCTOR): Likewise.
1418 (TYPE_HAS_DESTRUCTOR): Likewise.
1419 (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
1420 (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
1421 (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
1422 (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
1423 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
1424 (TYPE_PTRMEMFUNC_P): Likewise.
1425 (TYPE_PTRMEMFUNC_FLAG): Likewise.
1426 (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
1427 (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
1428 (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
1429 (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
1430 (DECL_ACCESS): Whitespace.
1431 (DECL_GLOBAL_CTOR_P): Remove parenthesis.
1432 (DECL_GLOBAL_DTOR_P): Likewise.
1433 (GLOBAL_INIT_PRIORITY): Likewise.
98e40e83 1434 (DECL_TEMPLATE_PARMS): Likewise.
6bc34b14
JM
1435 (DECL_TEMPLATE_RESULT): Likewise.
1436 (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
1437 (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
1438 (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
1439 (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
1440 (PRIMARY_TEMPLATE_P): Add parenthesis.
1441 (DECL_USE_TEMPLATE): Whitespace.
1442 (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
1443 (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
1444 (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
1445 (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
1446 (CALL_DECLARATOR_PARMS): Remove parenthesis.
1447 (CALL_DECLARATOR_QUALS): Likewise.
1448 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
1449 (TEMP_NAME_P): Wrap.
1450 (VFIELD_NAME_P): Likewise.
1451 (B_SET): Uppercase macro parameters and add parenthesis.
1452 (B_CLR): Likewise.
1453 (B_TST): Likewise.
1454 (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
1455 (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
1456 (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
1457 (same_or_base_type_p): Likewise.
1458 (cp_deprecated): Likewise.
98e40e83 1459
c28abdf0
RH
14602002-01-05 Richard Henderson <rth@redhat.com>
1461
15eb1e43 1462 * semantics.c (expand_body): Revert last change.
c28abdf0 1463
f11ee281
JM
14642002-01-04 Jason Merrill <jason@redhat.com>
1465
195a5def 1466 PR c++/4122
f11ee281
JM
1467 * class.c (update_vtable_entry_for_fn): Set delta to zero for a
1468 lost primary.
1469
1470 * class.c (build_vtbl_initializer): Check for a lost primary
1471 before calculating the vtable entry to throw away.
1472
a4200657
JM
14732002-01-02 Jason Merrill <jason@redhat.com>
1474
1475 * semantics.c (expand_body): Call outlining_inline_function when
1476 emitting an inline function out of line.
1477
40e593d7
NS
14782002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1479
1480 PR c++/5116, c++/764 reversion
1481 * call.c (build_new_op): Revert the instantiations. They are
1482 incorrect.
c588e52b 1483
323728aa
NS
14842002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1485
1486 PR c++/5089
1487 * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
1488
46c895ac
NS
14892002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1490
1491 PR c++/3716
1492 * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
1493 (tsubst, case POINTER_TYPE): Handle pmfs here.
1494 (tsubst, case OFFSET_TYPE): Check it is not an offset to
1495 reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
1496
833aa4c4
NS
14972002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1498
1499 PR c++/35
1500 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
1501 (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
1502 * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
1503 PARM_DECL.
1504 (tsubst_template_parms): Break up loop statements.
1505 (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
1506 parm PARM_DECLs don't get promoted.
1507
18976b21
NS
15082002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1509
1510 PR c++/5123
1511 * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
1512 (build_x_function_call): Cope with a COMPONENT_REF containing a
1513 TEMPLATE_ID_EXPR.
1514
303d1c55
NS
15152002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1516
1517 PR c++/5213
1518 * pt.c (convert_template_argument): Be more careful determining
1519 when RECORD_TYPE templates are or are not templates.
1520
d46a33b3
NS
15212002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1522
1523 PR c++/775
1524 * cp-tree.h (handle_class_head): Adjust prototype.
1525 * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
1526 parameters. Use for all class heads.
1527 * parse.y (named_class_head_sans_basetype, named_class_head,
1528 named_complex_class_head_sans_basetype,
1529 named_class_head_sans_basetype_defn,
1530 unnamed_class_head): Remove.
1531 (class_head, class_head_apparent_template): Recognize class heads
1532 (class_head_decl, class_head_defn): New reductions. Process class
1533 heads.
1534 (structsp): Adjust class definition and class declaration
1535 reductions.
1536 (maybe_base_class_list): Give diagnostic on empty list.
1537
4542128e
NS
15382002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1539
1540 PR c++/4379
1541 * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
1542 single non-static member.
1543 (unary_complex_lvalue): If it cannot be a pointer to member, don't
1544 make it so. Check it is not pointer to reference.
1545
903c6234
NS
15462002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1547
1548 PR c++/5132
1549 * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
1550 are processing a template decl.
1551
477558bf
NS
15522002-01-02 Nathan Sidwell <nathan@codesourcery.com>
1553
1554 PR c++/5116, c++/764
1555 * call.c (build_new_op): Make sure template class operands are
1556 instantiated. Simplify arglist construction.
1557
41f5d4b1
NS
15582001-12-29 Nathan Sidwell <nathan@codesourcery.com>
1559
1560 * call.c (build_user_type_conversion_1): Use my_friendly_assert
1561 rather than if ... abort.
1562 * cvt.c (convert_to_reference): Likewise.
1563 * semantics.c (setup_vtbl_ptr): Likewise.
1564 * pt.c (lookup_template_class): Comment typo.
c588e52b 1565
f3368a90
NS
15662001-12-29 Nathan Sidwell <nathan@codesourcery.com>
1567
1568 PR c++/5125
1569 * pt.c (push_template_decl_real): Make sure DECL has
1570 DECL_LANG_SPECIFIC.
1571
03c9c274
NS
15722001-12-29 Nathan Sidwell <nathan@codesourcery.com>
1573
1574 PR c++/335
1575 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
1576 for non-reference fields.
1577 * typeck.c (require_complete_type): Use resolve_offset_ref).
1578
7d8e8369
NS
15792001-12-26 Nathan Sidwell <nathan@codesourcery.com>
1580
1581 PR c++/196
03c9c274 1582 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
7d8e8369 1583
a56ca899
NS
15842001-12-24 Nathan Sidwell <nathan@codesourcery.com>
1585
1586 PR c++/160
1587 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
1588 up. Don't stabilize_references when initializing a reference.
1589
0b5826ac
KG
15902001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1591
1592 * decl2.c (lang_f_options): Const-ify.
1593
38be19f6
JM
15942001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
1595
1596 * config-lang.in (diff_excludes): Remove.
1597
2e4cf9dc
NS
15982001-12-19 Nathan Sidwell <nathan@codesourcery.com>
1599
1600 PR c++/90
1601 * typeck.c (build_function_call_real): Use original function
1602 expression for errors.
1603
00e4119c
JM
16042001-12-18 Jason Merrill <jason@redhat.com>
1605
195a5def 1606 PR c++/3242
00e4119c
JM
1607 * class.c (add_method): Do compare 'this' quals when trying to match a
1608 used function. Don't defer to another used function.
1609
3ad97789
NS
16102001-12-18 Nathan Sidwell <nathan@codesourcery.com>
1611
1612 * pt.c (instantiate_clone): Remove, fold into ...
1613 (instantiate_template): ... here. Simplify by removing mutual
1614 recursion.
1615 * typeck2.c (build_m_component_ref): Don't cv qualify the function
1616 pointed to by a pointer to function.
1617 * class.c (delete_duplicate_fields_1): Typo.
1618
f21add07
JM
16192001-12-18 Jason Merrill <jason@redhat.com>
1620
1621 C++ ABI change: destroy value arguments in caller.
1622 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
1623 create an extra binding level for the parameters.
1624 * decl.c (store_parm_decls): Don't do parameter cleanups.
1625
ea50ad82
NS
16262001-12-18 Nathan Sidwell <nathan@codesourcery.com>
1627
1628 * call.c (build_new_method_call): Use '%#V'.
1629 * error.c (cv_to_string): Use V parameter to determine padding.
1630
3855d0d1
JM
16312001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1632
1633 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
1634 spellings in messages.
1635
33bd39a2
ZW
16362001-12-17 Zack Weinberg <zack@codesourcery.com>
1637
1638 * cp-tree.h: Delete #defines for cp_error, cp_warning,
1639 cp_pedwarn, and cp_compiler_error.
1640 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
1641 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
1642 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
1643 typeck2.c: Change calls to the above macros to use their
1644 language-independent equivalents: error, warning, pedwarn, and
1645 internal_error respectively.
1646
317c26c3
NB
16472001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
1648
1649 * decl2.c (finish_file): Remove back_end_hook.
1650
aba649ba
JM
16512001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
1652
1653 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
1654 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
1655 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
1656
1737c953
JM
16572001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
1658
1659 * lang-options.h: Use American spelling in messages.
1660
4a90862e
JM
16612001-12-13 Jason Merrill <jason@redhat.com>
1662
ade3dc07
JM
1663 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
1664
1665 Use cleanups to run base and member destructors.
1666 * init.c (push_base_cleanups): New function, split out from...
1667 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
1668 * decl.c (finish_destructor_body): Move vbase destruction code to
1669 push_base_cleanups.
1670 (begin_function_body, finish_function_body): New fns.
1671 (finish_function): Move [cd]tor handling and call_poplevel to
1672 finish_function_body.
1673 (pushdecl): Skip the new level.
1674 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
1675 (setup_vtbl_ptr): Call push_base_cleanups.
1676 * method.c (synthesize_method): Call {begin,end}_function_body.
1677 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
1678 * cp-tree.h: Declare new fns.
1679 * parse.y (function_body, .begin_function_body): New nonterminals.
1680 (fndef, pending_inline, function_try_block): Use function_body.
1681 (ctor_initializer_opt, function_try_block): No longer has a value.
1682 (base_init): Remove .set_base_init token.
1683 (.set_base_init, compstmt_or_error): Remove.
1684 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
1685
4a90862e
JM
1686 * optimize.c (maybe_clone_body): Fix parameter updating.
1687
a0de9d20
JM
16882001-12-12 Jason Merrill <jason@redhat.com>
1689
1690 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
1691 * semantics.c (genrtl_start_function): Don't pass
1692 parms_have_cleanups or push an extra binding level.
1693 (genrtl_finish_function): Lose cleanup_label cruft.
1694
1695 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
1696 (ctor_label): Remove.
1697 * semantics.c (finish_return_stmt): Lose ctor_label support.
1698 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
33bd39a2 1699 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
a0de9d20
JM
1700 dtor_label.
1701
1702 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
1703 check for [cd]tors.
1704 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
1705
1706 * decl.c (finish_function): Check VMS_TARGET, not VMS.
1707
1708 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
1709 (end_cleanup_fn): And poplevel.
1710
1711 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
1712 if we're in a template.
1713
dc5c569a
JJ
17142001-12-12 Jakub Jelinek <jakub@redhat.com>
1715
1716 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
1717 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
1718 THIS_NAME_P): Delete.
1719 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
1720 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
1721 with internal naming scheme.
1722 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
1723
ad1a6d45
NS
17242001-12-12 Nathan Sidwell <nathan@codesourcery.com>
1725
1726 * decl.c (grokdeclarator): Deprecated implicit typename use.
1727
270d8c65
NS
17282001-12-11 Nathan Sidwell <nathan@codesourcery.com>
1729
1730 PR g++/51
1731 * parse.y (frob_specs): Indicate it is a language linkage which
1732 contained the extern.
1733 * decl.c (grokdeclarator): Allow extern language linkage with
1734 other specifiers.
1735
9aaceb4b
NS
17362001-12-10 Nathan Sidwell <nathan@codesourcery.com>
1737
1738 PR g++/72
1739 * decl.c (add_binding): Don't reject duplicate typedefs involving
1740 template parameters.
1741
a23c9413
NB
17422001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
1743
1744 * parse.y, semantics.c: Similarly.
1745
9aaceb4b 17462001-12-09 Nathan Sidwell <nathan@codesourcery.com>
271e6f02
NS
1747
1748 PR g++/87
1749 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
1750 (copy_args_p): Rename to ...
1751 (copy_fn_p): ... here.
1752 (grok_special_member_properties): New function.
1753 (grok_op_properties): Lose VIRTUALP parameter.
1754 (copy_assignment_arg_p): Remove.
1755 * call.c (build_over_call): Use copy_fn_p.
1756 * decl.c (grokfndecl): Reformat. Adjust call to
1757 grok_op_properties.
1758 (copy_args_p): Rename to ...
1759 (copy_fn_p): ... here. Reject template functions. Check for pass
1760 by value.
1761 (grok_special_member_properties): Remember special functions.
1762 (grok_ctor_properties): Don't remember them here, just check.
1763 (grok_op_properties): Likewise.
1764 (start_method): Call grok_special_member_properties.
1765 * decl2.c (grokfield): Likewise.
1766 (copy_assignment_arg_p): Remove.
1767 (grok_function_init): Don't remember abstract assignment here.
1768 * pt.c (instantiate_class_template): Call
1769 grok_special_member_properties.
1770 (tsubst_decl): Adjust grok_op_properties call.
1771
bdd8737f
AH
17722001-12-08 Aldy Hernandez <aldyh@redhat.com>
1773
33bd39a2
ZW
1774 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
1775 RID_TYPES_COMPATIBLE_P.
bdd8737f 1776
46af705a
JDA
17772001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1778
1779 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
1780 call to build_aggr_init.
1781 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
1782
cb97d97d
NB
17832001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
1784
1785 * parse.y: Replace uses of the string non-terminal with STRING.
1786 Don't perform string concatentaion here.
1787 (string): Remove non-terminal.
1788 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
1789
742a37d5
JM
17902001-12-05 Jason Merrill <jason@redhat.com>
1791
1792 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
1793 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
1794 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
1795 * pt.c (push_tinst_level): No longer static.
1796 * cp-tree.h: Declare them.
1797
1798 * init.c (resolve_offset_ref): Don't check access for the base
1799 conversion to access a FIELD_DECL.
1800
1801 * cp-tree.h (TYPE_REFFN_P): New macro.
1802 * decl.c (bad_specifiers): Check it, too.
1803
1804 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
1805 on the __*_type_info type if we haven't seen a definition.
1806
26f943fd
NB
18072001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
1808
1809 * decl.c: Include c-common.h.
1810 (shadow_warning): Move to c-common.c.
1811
37a08a29
RK
1812Wed Dec 5 17:00:49 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1813
1814 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
1815
9471d3e2
NS
18162001-12-04 Nathan Sidwell <nathan@codesourcery.com>
1817
1818 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
1819
713ccd0c
NS
18202001-12-04 Nathan Sidwell <nathan@codesourcery.com>
1821
1822 PR g++/164
1823 * init.c (sort_base_init): Allow binfos to be directly specified.
1824 * method.c (do_build_copy_constructor): Explicitly convert to the
1825 base instance.
1826 (do_build_assign_ref): Likewise.
1827
591382c4
HPN
18282001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
1829
1830 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
1831 declaration and initialization.
1832
c725bd79
NB
18332001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
1834
1835 * typeck2.c: Remove leading capital from diagnostic messages, as
1836 per GNU coding standards.
1837
a5d7c4a3
MK
18382001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
1839
1840 PR c++/3394
9fe038e8
HPN
1841 * decl.c (xref_basetypes): Handle attributes between
1842 'class' and name.
a5d7c4a3 1843
f1880e13
NS
18442001-12-03 Nathan Sidwell <nathan@codesourcery.com>
1845
1846 PR g++/3381
1847 * parse.y (named_complex_class_head_sans_basetype): Add new
1848 reduction.
1849 * Make-lang.in (parse.c): Adjust expected conflict count.
1850
ff668506
JM
18512001-12-03 Jason Merrill <jason@redhat.com>
1852
1853 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
1854 immediate binfos for our virtual bases.
1855
1f978f5f
NB
18562001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
1857
1858 * call.c (build_java_interface_fn_ref): Similarly.
1859 * except.c (is_admissible_throw_operand): Similarly.
1860 * init.c (build_java_class_ref): Similarly.
1861 * xref.c (open_xref_file): Similarly.
1862
357351e5
NB
18632001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
1864
1865 * class.c (finish_struct): Remove trailing periods from messages.
1866 * decl.c (check_tag_decl): Similarly.
1867 * lex.c (cxx_set_yydebug): Similarly.
1868 * typeck2.c (friendly_abort): Similarly.
1869
998979e6
MM
18702001-11-29 Mark Mitchell <mark@codesourcery.com>
1871
1872 PR c++/3048
1873 * cp-tree.h (ovl_member): Remove.
33bd39a2 1874 * decl2.c (merge_functions): Handle extern "C" functions
998979e6
MM
1875 specially.
1876 * tree.c (ovl_member): Remove.
1877
7d5b8b11
MM
18782001-11-29 Mark Mitchell <mark@codesourcery.com>
1879
1880 PR c++/4842
1881 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
1882 FUNCTION_DECL, as input.
1883 (mark_overriders): Remove.
1884 (warn_hidden): Rework for the new ABI.
1885
b67db529
MM
18862001-11-29 Mark Mitchell <mark@codesourcery.com>
1887
1888 PR c++/3471
1889 * call.c (convert_like_real): Do not build additional temporaries
1890 for rvalues of class type.
1891
2db1ab2d
NS
18922001-11-28 Nathan Sidwell <nathan@codesourcery.com>
1893
1894 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
1895 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
1896 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
1897 (DERIVED_FROM_P): Likewise.
1898 (enum base_access): Renumber, add ba_quiet bit mask.
1899 (get_binfo): Remove.
1900 (get_base_distance): Remove.
1901 (binfo_value): Remove.
1902 (ACCESSIBLY_DERIVED_FROM_P): Remove.
1903 * call.c (standard_conversion): Use lookup_base.
1904 * class.c (strictly_overrides): Likewise.
1905 (layout_virtual_bases): Likewise.
1906 (warn_about_ambiguous_direct_bases): Likewise.
1907 (is_base_of_enclosing_class): Likewise.
1908 (add_vcall_offset_vtbl_entries_1): Likewise.
1909 * cvt.c (build_up_reference): Adjust comment.
1910 * init.c (build_member_call): Reformat.
1911 * search.c (get_binfo): Remove.
1912 (get_base_distance_recursive): Remove.
1913 (get_base_distance): Remove.
1914 (lookup_base_r): Tweak.
1915 (lookup_base): Add ba_quiet control. Complete the types here.
1916 (covariant_return_p): Use lookup_base.
1917 * tree.c (binfo_value): Remove.
1918 (maybe_dummy_object): Use lookup_base.
1919 * typeck.c (build_static_cast): Use lookup_base.
1920 (get_delta_difference): Likewise.
1921 * typeck2.c (binfo_or_else): Use lookup_base.
1922 (build_scoped_ref): Add back error_mark_check.
1923 (build_m_component_ref): Use lookup_base.
1924
d3945f0a
JM
19252001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
1926
1927 * Make-lang.in (c++.generated-manpages): New dummy target.
1928
ac79cd5a
RK
1929Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1930
1931 * Make-lang.in (cp-lang.o): Depends on c-common.h.
1932 * cp-lang.c (c-common.h): Include.
1933 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
1934 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
1935 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
1936
4d6baafa
NB
19372001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
1938
1939 * decl2.c (c_language): Move to c-common.c.
1940 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
1941 functions.
1942 (cxx_init): Update.
1943
5b0c5896
JM
19442001-11-26 Jason Merrill <jason@redhat.com>
1945
1946 * call.c (joust): Remove COND_EXPR hack.
1947
4bdd26e6
AH
19482001-11-25 Aldy Hernandez <aldyh@redhat.com>
1949
195a5def 1950 * search.c (lookup_base_r): Declare bk in variable declaration
4bdd26e6 1951 space.
33bd39a2 1952
338d90b8
NS
19532001-11-25 Nathan Sidwell <nathan@codesourcery.com>
1954
1955 PR g++/3145
1956 * class.c (build_vbase_pointer): Remove.
1957 (build_vbase_path): Remove.
1958 (build_base_path): New function.
1959 * cp-tree.h (base_access, base_kind): New enumerations.
1960 (build_base_path): Declare.
1961 (convert_pointer_to_real): Remove.
1962 (convert_pointer_to): Remove.
1963 (lookup_base): Declare.
1964 (convert_pointer_to_vbase): Remove.
1965 * call.c (build_scoped_method_call): Use lookup_base &
1966 build_base_path instead of convert_pointer_to_real,
1967 get_base_distance & get_binfo.
1968 (build_over_call): Likewise.
1969 * cvt.c (cp_convert_to_pointer): Likewise.
1970 (convert_to_pointer_force): Likewise.
1971 (build_up_reference): Likewise.
1972 (convert_pointer_to_real): Remove.
1973 (convert_pointer_to): Remove.
1974 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
1975 instead of convert_pointer_to_vbase & build_vbase_path.
1976 (emit_base_init): Use build_base_path instead of
1977 convert_pointer_to_real.
1978 (expand_virtual_init): Lose unrequired conversions.
1979 (resolve_offset_ref): Use lookup_base and build_base_path
1980 instead of convert_pointer_to.
1981 * rtti.c (build_dynamic_cast_1): Use lookup_base &
1982 build_base_path instead of get_base_distance & build_vbase_path.
1983 * search.c (get_vbase_1): Remove.
1984 (get_vbase): Remove.
1985 (convert_pointer_to_vbase): Remove.
07f521fc 1986 (lookup_base_r): New function.
338d90b8
NS
1987 (lookup_base): New function.
1988 * typeck.c (require_complete_type): Use lookup_base &
1989 build_base_path instead of convert_pointer_to.
1990 (build_component_ref): Likewise.
1991 (build_x_function_call): Likewise.
1992 (get_member_function_from_ptrfunc): Likewise.
1993 (build_component_addr): Likewise.
1994 * typeck2.c (build_scoped_ref): Likewise.
1995
89d684bb
BM
19962001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1997
1998 * cp-tree.h (CP_TYPE_QUALS): Removed.
1999 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
33bd39a2 2000 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
89d684bb 2001 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
33bd39a2 2002 * dump.c (cp_dump_tree): Use void* dump_info argument to match
89d684bb
BM
2003 lang-hooks prototype.
2004 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
2005 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
2006 CP_TYPE_QUALS changed to cp_type_quals.
2007 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
2008 (CXX_C_OBJS): Remove c-dump.o.
2009
12eb9f93 20102001-11-21 Mark Mitchell <mark@codesourcery.com>
2d2e8123
MM
2011
2012 PR c++/3637
12eb9f93
MM
2013 * pt.c (lookup_template_class): Ensure that all specializations
2014 are registered on the list corresponding to the most general
2015 template.
2016
20172001-11-20 Mark Mitchell <mark@codesourcery.com>
2018
2d2e8123 2019 * call.c (non_reference): Add documentation.
33bd39a2 2020 (convert_class_to_reference): Do not strip reference types
2d2e8123
MM
2021 from conversion operators.
2022 (maybe_handle_ref_bind): Simplify.
2023 (compare_ics): Correct handling of references.
2024
78a40378
MM
20252001-11-19 John Wilkinson <johnw@research.att.com>
2026
2027 * dump.c (dump_op): New function.
2028 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
2029 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
2030 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
33bd39a2 2031
78a40378
MM
20322001-11-19 Mark Mitchell <mark@codesourcery.com>
2033
2034 PR4629
2035 * semantics.c (finish_sizeof): Make sure that expression created
2036 while processing a template do not have a type.
2037 (finish_alignof): Likewise.
2038 * typeck.c (c_sizeof): Likewise.
2039 (expr_sizeof): Likewise.
2040
22703ccc
NB
20412001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
2042
2043 * lex.c (cxx_finish): Call c_common_finish.
2044 (finish_parse): Remove.
2045
b3faacfd
KL
20462001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2047
2048 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
2049 when displaying error message about missing array bounds.
2050
873ff987
KL
20512001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2052
2053 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
2054 CONST_CAST_EXPR.
2055 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
2056
08f3a861
NB
20572001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
2058
2059 * cp-tree.h (print_class_statistics): Restore.
2060
8a2b77e7
JM
20612001-11-15 Jason Merrill <jason@redhat.com>
2062
3b1a4132
JM
2063 * method.c (use_thunk): Don't emit debugging information for thunks.
2064
8a2b77e7
JM
2065 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
2066 * decl.c (make_typename_type): Handle getting a class template.
2067 * search.c (lookup_field_r): A class template is good enough for
2068 want_type.
2069
2070 * call.c (convert_like_real): Only use cp_convert for the bad part.
2071 (standard_conversion): Also allow bad int->enum.
2072 * typeck.c (ptr_reasonably_similar): Also allow functions to
2073 interconvert. Pointers to same-size integers are reasonably
2074 similar.
2075
2076 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
2077 give it void type.
2078
36a68fe7
NS
20792001-11-15 Nathan Sidwell <nathan@codesourcery.com>
2080
2081 PR g++/3154
2082 * init.c (sort_base_init): Remove unreachable code.
2083 (expand_member_init): Adjust comment to reflect reality. Simplify
2084 and remove unreachable code.
2085
f5e99456
NB
20862001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
2087
2088 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
2089 (cxx_init): Update prototype.
2090 * decl.c (init_decl_processing): Rename. Move null node init
2091 to its creation time.
2092 * lex.c (cxx_init_options): Update.
2093 (cxx_init): Combine with old init_parse; also call
2094 cxx_init_decl_processing.
2095
fe5b6c1c
RS
20962001-11-14 Richard Sandiford <rsandifo@redhat.com>
2097
8a2b77e7
JM
2098 * decl.c (check_initializer): Try to complete the type of an
2099 array element before checking whether it's complete. Don't
2100 complain about arrays with complete element types but an
2101 unknown size.
2102 (cp_finish_decl): Build the hierarchical constructor before
2103 calling maybe_deduce_size_from_array_init.
fe5b6c1c 2104
77bd67cb
JM
21052001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
2106
2107 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
2108
b02922a4
NS
21092001-11-13 Nathan Sidwell <nathan@codesourcery.com>
2110
2111 PR g++/4206
2112 * parse.y (already_scoped_stmt): Remove.
2113 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
2114
abfc1ef6
L
21152001-11-12 H.J. Lu <hjl@gnu.org>
2116
195a5def 2117 * cvt.c (ocp_convert): Don't warn the address of a weak
abfc1ef6
L
2118 function is always `true'.
2119
5d69f816
NB
21202001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2121
2122 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2123 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2124 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
2125 * cp-tree.h (print_class_statistics): Remove.
2126 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
2127 cxx_print_identifier, cxx_set_yydebug): New.
2128 * lex.c (set_yydebug): Rename c_set_yydebug.
2129 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
2130 lang_print_xnode): Rename.
2131 * tree.c (print_lang_statistics): Rename.
2132
4fdc14ca
KG
21332001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2134
2135 * class.c (dump_array): Fix format specifier warning.
2136
3ac88239
NB
21372001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2138
2139 * cp-lang.c (LANG_HOOKS_NAME): Override.
2140 (struct lang_hooks): Constify.
2141 * lex.c (cxx_init_options): Update.
2142 (lang_identify): Remove.
33bd39a2 2143 * parse.y (language_string): Remove.
3ac88239 2144
b21d216c
AF
21452001-11-08 Andreas Franck <afranck@gmx.de>
2146
2147 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
2148 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
2149 suggested by autoconf.
2150 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
2151 (c++.install-common): Use the transformed target alias names.
2152
d23c55c2
NB
21532001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2154
2155 * Make-lang.in: Update.
2156 * cp-lang.c: Include langhooks-def.h.
2157
2a2b1d56
KL
21582001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2159
2160 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
2161
76648a8b
KG
21622001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2163
2164 * lex.c (copy_lang_type): Add static prototype.
2165
fccef71e
KL
21662001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2167
2168 * pt.c (unify): Handle SCOPE_REF.
2169
19989812
JJ
21702001-11-01 Jakub Jelinek <jakub@redhat.com>
2171
2172 * tree.c (cp_copy_res_decl_for_inlining): Adjust
2173 DECL_ABSTRACT_ORIGIN for the return variable.
2174
5b7874aa
ZW
21752001-10-31 Zack Weinberg <zack@codesourcery.com>
2176
2177 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
2178
306ef644
JM
21792001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
2180
2181 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
2182 semantics.c, spew.c: Fix spelling errors.
2183
76543000
KL
21842001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2185
2186 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
2187
37207ee7
ZW
21882001-10-25 Zack Weinberg <zack@codesourcery.com>
2189
2190 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
2191 pop_everything.
2192
8ac61af7
RK
2193Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2194
2195 * cp-lang.c (cxx_get_alias_set): New function.
2196 Point LANG_HOOKS_GET_ALIAS_SET to it.
2197
f1e09fa2 21982001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
b8c6534b
KL
2199
2200 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
2201 * cp-tree.h (make_unbound_class_template): Prototype new function.
2202 * decl.c (make_unbound_class_template): New function.
2203 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
2204 * error.c (dump_type): Likewise.
2205 * mangle.c (write_type): Likewise.
2206 * parse.y (template_parm): Likewise.
2207 (template_argument): Use make_unbound_class_template.
2208 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
2209 (tsubst): Likewise.
2210 (tsubst_copy): Likewise.
2211 (unify): Likewise.
2212 * tree.c (walk_tree): Likewise.
2213 * typeck.c (comptypes): Likewise.
2214
0df6c2c7
KG
22152001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2216
2217 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
2218 extra calls into fewer ones.
2219
97055d5c
AO
22202001-10-18 Alexandre Oliva <aoliva@redhat.com>
2221
2222 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
2223 Warn when merging inline with attribute noinline.
2224 (start_decl, start_function): Warn if inline and attribute
2225 noinline appear in the same declaration.
2226
b5823a44
L
22272001-10-16 H.J. Lu <hjl@gnu.org>
2228
2229 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
2230 for tree checking disabled.
2231
dc8ad298
HPN
22322001-10-16 Hans-Peter Nilsson <hp@axis.com>
2233
2234 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
2235 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
2236
d9f818d9
RS
22372001-10-15 Richard Sandiford <rsandifo@redhat.com>
2238
2239 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
2240 (unify): Only handle MINUS_EXPR specially if the above flag is set
2241 and the subtracted constant is 1. Clear the flag on recursive calls.
2242 Set it when unifying the maximum value in an INTEGER_TYPE's range.
2243
e1be26f4
RS
22442001-10-15 Richard Sandiford <rsandifo@redhat.com>
2245
2246 * decl.c (bad_specifiers): Don't allow exception specifications
2247 on any typedefs.
2248
a5da89c6
NB
22492001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
2250
2251 * cp/lex.c (init_cp_pragma): Similarly.
2252
4f96ff63
KL
22532001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2254
2255 * pt.c (lookup_template_class): Build complete template arguments
2256 for BOUND_TEMPLATE_TEMPLATE_PARM.
2257
11e74ea6
KL
22582001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2259
2260 * cp-tree.h (TYPE_BINFO): Update comment.
2261 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
2262 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
2263 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
2264 (copy_type): Prototype new function.
2265 * lex.c (copy_lang_decl): Gather tree node statistics.
2266 (copy_lang_type): New function.
2267 (copy_type): Likewise.
2268 (cp_make_lang_type): Create lang_type for
2269 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
2270 and BOUND_TEMPLATE_TEMPLATE_PARM.
2271 * pt.c (tsubst): Use copy_type instead of copy_node.
2272 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
2273
f5d47abd
KL
22742001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2275
2276 * pt.c (determine_specialization): Ignore functions without
2277 DECL_TEMPLATE_INFO.
2278
e60505a5
NS
22792001-10-12 Nathan Sidwell <nathan@codesourcery.com>
2280
2281 PR g++/4476
2282 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
2283
6f32162a
JM
22842001-10-11 Jason Merrill <jason_merrill@redhat.com>
2285
2286 * typeck2.c (store_init_value): Don't re-digest a bracketed
2287 initializer.
2288
2289 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
2290 ANON_AGGR_TYPE_P.
2291
4a8d0c9c
RH
22922001-10-11 Richard Henderson <rth@redhat.com>
2293
2294 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
2295 of an asm statement.
2296 (build_vtbl_ref_1): Split out from build_vtbl_ref.
2297 (build_vfn_ref): Use it to handle vtable descriptors before
2298 calling build_vtable_entry_ref.
2299 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
2300
84b72302
RH
23012001-10-10 Richard Henderson <rth@redhat.com>
2302
37207ee7 2303 * parse.y (asm_operand): Allow named operands.
84b72302
RH
2304 * semantics.c (finish_asm_stmt): Tweek for changed location
2305 of the operand constrant.
2306
48c8b0be 23072001-10-09 Jason Merrill <jason_merrill@redhat.com>
72a08131
JM
2308
2309 * call.c (standard_conversion): Add bad conversion between
2310 integers and pointers.
2311 (convert_like_real): Don't use convert_for_initialization for bad
2312 conversions; complain here and use cp_convert.
2313 (build_over_call): Don't handle bad conversions specially.
2314 (perform_implicit_conversion): Allow bad conversions.
2315 (can_convert_arg_bad): New fn.
2316 * cp-tree.h: Declare it.
2317 * typeck.c (convert_for_assignment): Use it.
2318 (ptr_reasonably_similar): Any target type is similar to void.
2319
19551f29
AO
23202001-10-08 Alexandre Oliva <aoliva@redhat.com>
2321
2322 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
2323 (cp/cp-lang.o): New rule.
2324 * cp-tree.h: Declare hooks.
2325 * tree.c: Make hooks non-static.
2326 (init_tree): Don't initialize hooks here.
2327 * lex.c: Likewise. Move definition of lang_hooks to...
2328 * cp-lang.c: ... new file.
2329
31ed8fea
RH
23302001-10-08 Richard Henderson <rth@redhat.com>
2331
2332 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
2333 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
2334
8b60264b
KG
23352001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2336
2337 * class.c (build_vtable_entry_ref): Const-ify.
2338 * decl.c (predefined_identifier,
37207ee7 2339 initialize_predefined_identifiers): Likewise.
8b60264b
KG
2340 * init.c (build_new_1): Likewise.
2341 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
2342 Likewise.
2343
bc4c7159
AO
23442001-10-05 Alexandre Oliva <aoliva@redhat.com>
2345
2346 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
2347 (INSNS_PER_STMT): Likewise.
2348 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
2349 (copy_body, initialize_inlined_parameters): Likewise.
2350 (declare_return_variable, inlinable_function_p): Likewise.
2351 (expand_call_inline, expand_calls_inline): Likewise.
2352 (optimize_inline_calls, clone_body): Likewise.
2353 * tree.c (walk_tree): Moved to ../tree-inline.c.
2354 (walk_tree_without_duplicates): Likewise.
2355 (copy_tree_r, remap_save_expr): Likewise.
2356
25af8512
AO
23572001-10-04 Alexandre Oliva <aoliva@redhat.com>
2358
2359 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
2360 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
2361 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
2362 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
2363 (flag_inline_trees): Moved declaration to ../tree-inline.h.
2364 (walk_tree): Moved declaration to ../tree-inline.h.
2365 (walk_tree_without_duplicates, copy_tree_r): Likewise.
2366 (remap_save_expr): Likewise.
2367 * decl.c: Include tree-inline.h.
2368 (lang_mark_tree): Don't mark inlined_fns.
2369 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
2370 * optimize.c: Include tree-inline.h.
2371 (optimize_inline_calls): Move declaration to ../tree.h, as
2372 non-static.
2373 (remap_decl): Use language-independent constructs and hooks.
2374 (remap_block, copy_body_r, declare_return_variable): Likewise.
2375 (inlinable_function_p): Likewise. Don't test for
2376 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
2377 no longer language-specific.
2378 (optimize_inline_calls): Likewise. Make it non-static. Moved
2379 call of dump_function to...
2380 (optimize_function): Here...
2381 (clone_body): New function, extracted from...
2382 (maybe_clone_body): ... here. Build decl_map locally and pass
2383 it on to clone_body.
2384 * pt.c, semantics.c: Include tree-inline.h.
2385 * tree.c: Likewise.
2386 (cp_walk_subtrees): New language-specific hook for tree inlining.
2387 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
2388 cp_is_overload_p, cp_auto_var_in_fn_p,
2389 cp_copy_res_decl_for_inlining): Likewise.
2390 (walk_tree): Move language-specific constructs into...
2391 (cp_walk_subtrees): this new function.
2392 (copy_tree_r): Use language-independent constructs and hooks.
2393 (init_tree): Initialize tree inlining hooks.
2394 (remap_save_expr): Adjust prototype so that the declaration
2395 does not require the definition of splay_tree.
2396
6a4af81f
JDA
23972001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2398
2399 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
2400 to build the declaration instead of the declaration itself.
2401
0caee1c6
JM
24022001-10-02 Jason Merrill <jason_merrill@redhat.com>
2403
48c8b0be
JM
2404 * decl2.c (cxx_decode_option): Add 'else'.
2405
0caee1c6
JM
2406 * spew.c (end_input): No longer static.
2407 * cp-tree.h: Declare it.
2408 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
2409
80a497e4
JM
24102001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
2411
2412 * call.c (build_over_call), typeck.c (build_function_call_real):
2413 Pass type attributes to check_function_format rather than name or
2414 assembler name. Don't require there to be a name or assembler
2415 name to check formats.
2416
6431177a
JM
24172001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
2418
2419 * decl.c (init_decl_processing): Don't call
2420 init_function_format_info. Initialize lang_attribute_table
2421 earlier.
2422 (builtin_function): Call decl_attributes.
2423 (insert_default_attributes): New.
2424
55b3d665
JM
24252001-10-01 Jason Merrill <jason_merrill@redhat.com>
2426
2427 * decl.c (grokdeclarator): Copy array typedef handling from C
2428 frontend.
2429
2430 * decl.c (grokdeclarator): Copy too-large array handling from C
2431 frontend.
2432
9f57ca19
AO
24332001-09-29 Alexandre Oliva <aoliva@redhat.com>
2434
2435 * config-lang.in (target_libs): Added target-gperf, so that we
2436 don't try to build it if C++ is disabled.
2437
749ced52
ZW
24382001-09-23 Zack Weinberg <zack@codesourcery.com>
2439
2440 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
2441 (cp/errfn.o): Delete rule.
2442 (cp/error.o): Depend on flags.h.
2443 * errfn.c: Delete file.
2444 * cp-tree.h: Declare warn_deprecated. Remove definitions of
2445 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
2446 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
2447 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
2448 internal_error respectively. Make cp_deprecated into a macro.
2449 Don't define cp_printer typedef or declare cp_printers.
2450 * error.c: Include flags.h.
2451 Delete: struct tree_formatting_info, print_function_argument_list,
2452 print_declaration, print_expression, print_function_declaration,
2453 print_function_parameter, print_type_id, print_cv_qualifier_seq,
2454 print_type_specifier_seq, print_simple_type_specifier,
2455 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
2456 print_parameter_declaration_clause, print_exception_specification,
2457 print_nested_name_specifier, and definition of cp_printers.
2458 (locate_error): New function.
2459 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
2460 rewritten in terms of locate_error and diagnostic.c.
2461 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
2462 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
2463 (init_error): Adjust to match.
2464
bb9f8221
RK
2465Sat Sep 22 09:15:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2466
2467 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
2468
67231816
RH
24692001-09-21 Richard Henderson <rth@redhat.com>
2470
2471 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
2472 (build_vtbl_initializer): Likewise.
2473 (build_vfn_ref): New.
2474 * cp-tree.h: Declare it.
2475 * call.c (build_over_call): Use it.
2476 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
2477 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
2478
c9574c9f
R
2479Fri Sep 21 08:16:19 2001 J"orn Rennecke <amylaar@redhat.com>
2480
2481 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
2482
91d231cb
JM
24832001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
2484
2485 Table-driven attributes.
2486 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
2487 * decl2.c (cplus_decl_attributes): Only take one attributes
2488 parameter.
2489 * cp-tree.c (cplus_decl_attributes): Update prototype.
2490 * class.c (finish_struct), decl.c (start_decl, start_function),
2491 decl2.c (grokfield), friend.c (do_friend), parse.y
2492 (parse_bitfield): Update calls to cplus_decl_attributes.
2493 * decl.c (grokdeclarator): Take a pointer to a single ordinary
2494 attribute list.
2495 * decl.h (grokdeclarator): Update prototype.
2496 * decl2.c (grokfield): Take a single ordinary attribute list.
2497 * friend.c (do_friend): Likewise.
2498 * decl.c (shadow_tag, groktypename, start_decl,
2499 start_handler_parms, grokdeclarator, grokparms, start_function,
2500 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
2501 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
2502 (process_template_parm, do_decl_instantiation): Pass single
2503 ordinary attribute lists around.
2504 * decl.c (grokdeclarator): Correct handling of nested attributes.
2505 Revert the patch
2506 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
2507 * decl.c (grokdeclarator): Embedded attrs bind to the right,
2508 not the left.
2509 .
2510 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
2511 (cp_attribute_table): Declare.
2512 * decl.c (valid_lang_attribute): Don't define.
2513 (lang_attribute_table): Define.
2514 (init_decl_processing): Initialize lang_attribute_table instead of
2515 valid_lang_attribute.
2516 * tree.c (cp_valid_lang_attribute): Remove.
2517 (handle_java_interface_attribute, handle_com_interface_attribute,
2518 handle_init_priority_attribute): New functions.
2519 (cp_attribute_table): New array.
2520 * decl2.c (import_export_class): Don't use
2521 targetm.valid_type_attribute.
2522
a1bda5f1
GDR
25232001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2524
e6b9638b
JM
2525 * Make-lang.in (cp/error.o): Depend on real.h
2526 * error.c: #include "real.h"
a1bda5f1 2527
cb6edbcb
KG
25282001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2529
2530 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
2531 xmalloc/strcpy/strcat.
2532
83182544
KG
25332001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2534
2535 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
2536 Const-ification.
2537 * pt.c (tsubst_decl): Likewise.
2538
40008eda
KG
25392001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2540
2541 * decl2.c (lang_f_options): Const-ification.
2542 * lex.c (cplus_tree_code_name): Likewise.
2543 * spew.c (yyerror): Likewise.
2544
39e78d8b
NS
25452001-09-06 Nathan Sidwell <nathan@codesourcery.com>
2546
2547 PR c++/3986
2548 * class.c (force_canonical_binfo_r): Check & move an indirect
2549 primary base first.
2550 (force_canonical_binfo): Check that it's not already
2551 canonical.
2552 (mark_primary_virtual_base): Remove BINFO parameter.
2553 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
2554
6d0a3f67
NS
25552001-09-06 Nathan Sidwell <nathan@codesourcery.com>
2556
2557 Remove TYPE_NONCOPIED_PARTS.
2558 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
2559 CLASSTYPE_PURE_VIRTUALS.
2560 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
2561 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
72a08131 2562 (layout_class_type): Don't call fixup_inline_methods here ...
6d0a3f67
NS
2563 (finish_struct_1): ... call it here.
2564
4f8e1232
MM
25652001-09-04 Mark Mitchell <mark@codesourcery.com>
2566
2567 * decl.c (duplicate_decls): Remove code deadling with
2568 DECL_SAVED_INSNS.
2569 * decl2.c (finish_file): Likewise.
2570 * pt.c (instantiate_decl): Likewise.
2571 * semantics.c (expand_body): Don't defer local functions if
2572 they wouldn't be deferred for some other reason. Don't
2573 generate RTL for functions that will not be emitted.
2574 (genrtl_start_function): Remove code deadling with
2575 DECL_SAVED_INSNS.
2576 (genrtl_finish_function): Likewise.
2577
da86f08f
NS
25782001-09-04 Nathan Sidwell <nathan@codesourcery.com>
2579
2580 PR c++/4203
2581 * call.c (build_over_call): Do not optimize any empty base
2582 construction.
2583
38066e83
KL
25842001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2585
2586 * error.c (dump_template_decl): Output template parameters
2587 together with their specifiers.
2588 Output `class' prefix for template template parameter.
2589 (dump_decl): Fix formatting.
2590
598e9ba5 25912001-08-30 Kurt Garloff <garloff@suse.de>
749ced52 2592
598e9ba5
KG
2593 * optimize.c (inlinable_function_p): Allow only smaller single
2594 functions. Halve inline limit after reaching recursive limit.
749ced52 2595
f232e4a5
JR
25962001-08-30 Joern Rennecke <amylaar@redhat.com>
2597 Jason Merrill <jason_merrill@redhat.com>
2598
2599 * class.c (build_vtable_entry_ref): Subtract in char*, not
2600 ptrdiff_t.
2601
0213a355
JM
26022001-08-23 Jason Merrill <jason_merrill@redhat.com>
2603
2604 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
2605 (build_cplus_array_type): Use cp_build_qualified_type, not
2606 TYPE_MAIN_VARIANT, to get an unqualified version.
2607
2608 * decl2.c (grok_alignof): Lose.
2609 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
2610 * typeck.c (c_alignof): Lose.
2611 * semantics.c (finish_sizeof, finish_alignof): New.
2612 * parse.y: Use them.
2613 * cp-tree.h: Declare them.
2614
fd10dd09
JM
26152001-08-22 Jason Merrill <jason_merrill@redhat.com>
2616
2617 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
2618 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
2619 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
2620
baeb4732
JJ
26212001-08-19 Jakub Jelinek <jakub@redhat.com>
2622
2623 * typeck2.c (add_exception_specifier): Only require complete type if
2624 not in processing template declaration.
2625
1c0cc57e
KG
26262001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2627
2628 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
2629 GNU_xref_start_scope and GNU_xref_end_scope.
2630
2631 * tree.c (TYPE_HASH): Moved to ../tree.h.
2632
9a52d09b
MM
26332001-08-16 Mark Mitchell <mark@codesourcery.com>
2634
2635 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
2636 on COMPOUND_EXPRs.
2637
b5d1cbd2
RH
26382001-08-14 Richard Henderson <rth@redhat.com>
2639
2640 * class.c, cp-tree.h (build_vfn_ref): Remove.
2641 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
2642
63d6f87a
MM
26432001-08-13 Mark Mitchell <mark@codesourcery.com>
2644
2645 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
2646 empty class assignment as having side-effects to avoid
2647 spurious warnings.
2648
e78d8e51
ZW
26492001-08-13 Zack Weinberg <zackw@panix.com>
2650
2651 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
2652 * except.c: Include libfuncs.h.
2653
a60af04a
GDR
26542001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2655
2656 * decl.c (grokdeclarator): Clarify diagnostic message.
2657
3605b283
KL
26582001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2659
2660 * decl2.c (do_nonmember_using_decl): Replace using directive
2661 with using declaration in the error message.
2662
4d5f3fbd
KL
26632001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2664
2665 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
2666 criterion to avoid rebuilding expression tree instead of
2667 processing_template_decl.
2668
07b2f2fd
JM
26692001-08-07 Jason Merrill <jason_merrill@redhat.com>
2670
2671 Support named return value optimization for inlines, too.
2672 * decl.c (finish_function): Nullify returns here.
2673 * semantics.c (genrtl_start_function): Not here.
2674 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
2675 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
2676 Also nullify the CLEANUP_STMT for the nrv.
2677 * cp-tree.h: Declare it.
2678 * optimize.c (declare_return_variable): Replace the nrv with the
2679 return variable.
2680 * typeck.c (check_return_expr): Be more flexible on alignment check.
2681 Ignore cv-quals when checking for a matching type.
2682
2cc07db4
RH
26832001-08-09 Richard Henderson <rth@redhat.com>
2684
2685 * decl2.c (finish_objects): Use target hooks instead of
2686 assemble_constructor and assemble_destructor.
2687
0ca179b2
JDA
26882001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2689
2690 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
2691
0830ae44
NS
26922001-08-07 Nathan Sidwell <nathan@codesourcery.com>
2693
2694 PR c++/3820
2695 Stop using TYPE_NONCOPIED_PARTS.
2696 * call.c (build_over_call): Be careful when copy constructing
2697 or assigning to an empty class.
2698 * class.c (check_bases_and_members): It has a
2699 COMPLEX_ASSIGN_REF if it has a vptr.
2700 (layout_class_type): Don't add empty class padding to
2701 TYPE_NONCOPIED_PARTS.
2702 (finish_struct_1): Don't add the VFIELD either.
2703 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
2704 initialization.
2705
59a13e0f
JM
27062001-08-07 Jason Merrill <jason_merrill@redhat.com>
2707
2708 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
2709
47907859
RH
27102001-08-06 Richard Henderson <rth@redhat.com>
2711
2712 * decl2.c (finish_objects): Pass a symbol_ref and priority to
2713 assemble_{constructor,destructor}. Remove priority handling.
2714
eac69b8a
GDR
27152001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2716
2717 Don't allow template-id in using-declaration.
2718 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
2719 (do_class_using_decl): Likewise.
2720
ef6e958a
NB
27212001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2722
2723 * cp/spew.c (read_token): No need to pop buffers.
2724
dff94ad7
SS
27252001-08-02 Stan Shebs <shebs@apple.com>
2726
2727 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
2728 (fnaddr_from_vtable_entry): Remove decl.
2729 * method.c (use_thunk): Update comment.
2730
026c3f13
AC
27312001-08-01 Andrew Cagney <ac131313@redhat.com>
2732
2733 * repo.c (get_base_filename): Change return value to const char
2734 pointer.
2735
1dbb6023
NS
27362001-08-02 Nathan Sidwell <nathan@codesourcery.com>
2737
2738 Kill -fhonor-std.
2739 * NEWS: Document.
2740 * cp-tree.h (flag_honor_std): Remove.
2741 (CPTI_FAKE_STD): Remove.
2742 (std_node): Remove comment about it being NULL.
2743 (fake_std_node): Remove.
2744 * decl.c (in_fake_std): Remove.
2745 (walk_namespaces_r): Remove fake_std_node check.
2746 (push_namespace): Remove in_fake_std code.
2747 (pop_namespace): Likewise.
2748 (lookup_name_real): Remove fake_std_node check.
2749 (init_decl_processing): Always create std_node. Always add
2750 std:: things there.
2751 (builtin_function): Always put non '_' fns in std.
2752 * decl2.c (flag_honor_std): Remove.
2753 (lang_f_options): Remove honor-std.
2754 (unsupported_options): Add honor-std.
2755 (set_decl_namespace): Remove fake_std_node check.
2756 (validate_nonmember_using_decl): Likewise.
2757 (do_using_directive): Likewise.
2758 (handle_class_head): Likewise.
2759 * dump.c (cp_dump_tree): Likewise.
2760 * except.c (init_exception_processing): Adjust.
2761 * init.c (build_member_call): Remove fake_std_node check.
2762 (build_offset_ref): Likewise.
2763 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
2764 * rtti.c (init_rtti_processing): Adjust.
2765
6ad7895a
APB
27662001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
2767
2768 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
2769 operand while calling cp_tree_equal.
2770
befe7c61
NS
27712001-07-31 Nathan Sidwell <nathan@codesourcery.com>
2772
2773 The 3.0 ABI no longer has vbase pointer fields.
2774 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
2775 FORMAT_VBASE_NAME): Remove.
2776 * method.c (do_build_copy_constructor): Adjust.
2777 (do_build_assign_ref): Adjust.
2778 * search.c (lookup_field_r): Adjust.
2779 * typeck.c (build_component_ref): Adjust.
2780
2781 The 3.0 ABI always has a vtable pointer at the start of every
2782 polymorphic class.
2783 * rtti.c (build_headof_sub): Remove.
2784 (build_headof): Adjust.
2785 (get_tinfo_decl_dynamic): No need to check flag_rtti
2786 here. Adjust.
2787 (create_real_tinfo_var): Explain why we need a hidden name.
2788
20dde49d
NS
27892001-07-31 Nathan Sidwell <nathan@codesourcery.com>
2790
2791 PR c++/3631
2792 * class.c (update_vtable_entry_for_fn): The fixed adjustment
2793 of a virtual thunk should be from declaring base.
2794
b7ad2f8b
NS
27952001-07-31 Nathan Sidwell <nathan@codesourcery.com>
2796
2797 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
2798 the shared virtual base, so preserving inheritance graph order.
2799
57cb6d52
AJ
28002001-07-30 Andreas Jaeger <aj@suse.de>
2801
749ced52 2802 * decl2.c: Remove unused var global_temp_name_counter.
57cb6d52 2803
594280a3
RH
28042001-07-28 Richard Henderson <rth@redhat.com>
2805
2806 * method.c (pending_inlines): Remove.
2807
0ab142b0
NS
28082001-07-27 Nathan Sidwell <nathan@codesourcery.com>
2809
2810 * class.c (mark_primary_virtual_base): Don't adjust base
2811 offsets here.
2812 (dfs_unshared_virtual_bases): Adjust them here.
2813 (mark_primary_bases): Explain why we adjust at the end.
2814
d60d223b
NS
28152001-07-27 Nathan Sidwell <nathan@codesourcery.com>
2816
2817 * class.c (finish_struct_1): When copying the primary base's
2818 VFIELD, make sure we find it is at offset zero.
2819
db3ef87b
KL
28202001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2821
2822 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
2823 tsubst_expr for default template arguments.
2824
312b7c9d
NS
28252001-07-26 Nathan Sidwell <nathan@codesourcery.com>
2826
d60d223b 2827 PR c++/3621
312b7c9d
NS
2828 * spew.c (yylex): Only copy the token's lineno, if it is
2829 non-zero.
2830
648c2206
NS
28312001-07-26 Nathan Sidwell <nathan@codesourcery.com>
2832
2833 PR c++/3624
2834 * call.c (resolve_args): Simplify, call
2835 convert_from_reference.
2836 (build_new_op): Resolve and convert from reference ARG1
2837 earlier. Adjust ARG2 & ARG3 resolve and conversion.
2838
969fd501
NS
28392001-07-26 Nathan Sidwell <nathan@codesourcery.com>
2840
2841 * decl.c (last_function_parm_tags): Remove.
2842 (current_function_parm_tags): Remove.
2843 (init_decl_processing): Adjust.
2844 (start_function): Adjust.
2845 (store_parm_decls): Adjust.
2846
2847 PR c++/3152
2848 * decl.c (grokdeclarator): Detect when a function typedef is
2849 declaring a function, and create last_function_parms correctly.
2850
08ac397c 28512001-07-25 Jason Merrill <jason_merrill@redhat.com>
749ced52 2852
08ac397c
JM
2853 * call.c (joust): Only prefer a non-builtin candidate to a builtin
2854 one if they have the same signature.
2855
2856 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
2857 it rather than toplevel_bindings_p. Give it a mangled name if static.
2858 (convert_to_reference): Adjust.
2859 * decl2.c (get_temp_name): Lose.
2860 * mangle.c (mangle_ref_init_variable): New fn.
2861 (mangle_guard_variable): Strip the ref-init header.
2862 * cp-tree.h: Adjust.
2863 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
2864 initializer.
2865 (grok_reference_init): Always use DECL_INITIAL.
2866
40260429
NS
28672001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2868
2869 PR c++/3416
2870 * call.c (build_conditional_expr): Recheck args after
2871 conversions.
2872 * cp-tree.h (build_conditional_expr): Move to correct file.
2873 * typeck.c (decay_conversion): Diagnose any unknown types
2874 reaching here.
2875 (build_binary_op): Don't do initial decay or default
2876 conversions on overloaded functions.
2877 (build_static_cast): Don't do a decay conversion here.
2878
ab085207
NS
28792001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2880
2881 PR c++/3543
2882 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
2883 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
2884
0abe00c5
NS
28852001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2886
2887 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
2888 (create_vtbl_ptr): ... here.
2889
90b1ca2f
NS
28902001-07-25 Nathan Sidwell <nathan@codesourcery.com>
2891
2892 * class.c (build_vbase_offset_vbtl_entries): Look for
2893 non-primary base of which we are a sub vtable.
2894
cfe5dc31
PE
28952001-07-24 Phil Edwards <pme@sources.redhat.com>
2896
2897 * semantics.c (finish_this_expr): Remove unused code.
2898
7f54a851
NS
28992001-07-24 Nathan Sidwell <nathan@codesourcery.com>
2900
2901 Simplify rtti, now we've only one ABI.
2902 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
2903 CPTI_TINFO_VAR_ID.
2904 (tinfo_decl_id, tinfo_var_id): Remove.
2905 (get_typeid_1): Remove.
2906 * rtti.c
2907 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
2908 (typeid_ok_p): New function.
2909 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
2910 (get_tinfo_decl): Remove old abi documentation.
2911 (tinfo_from_decl): Remove.
2912 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
2913 (get_typeid_1): Remove.
2914 (get_base_offset): Remove.
2915 (synthesize_tinfo_var): Absorb get_base_offset.
2916 (create_real_tinfo_var): Don't use tinfo_decl_id.
2917
18fee3ee
GS
29182001-07-23 Graham Stott <grahams@redhat.com>
2919
2920 * cp/class.c (type_requires_array_cookie): Fix use of uninitialised
2921 variable has_two_argument_delete_p.
2922
c4372ef4
NS
29232001-07-21 Nathan Sidwell <nathan@codesourcery.com>
2924
2925 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
2926 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
2927 (CPTI_INDEX_IDENTIFIER): Remove.
2928 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
2929 (delta2_identifier): Remove.
2930 (index_identifier): Remove.
2931 (pfn_or_delta2_identifier): Remove.
2932 (flag_vtable_thunks): Remove.
2933 (VTABLE_DELTA2_NAME): Remove.
2934 (VTABLE_INDEX_NAME): Remove.
2935 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
2936 (vfunc_ptr_type_node): Adjust.
2937 (VTABLE_NAME_PREFIX): Adjust.
2938 (build_vfn_ref): Lose first parameter.
2939 (fixup_all_virtual_upcast_offsets): Remove.
2940 * decl.c (initialize_predefined_identifiers): Remove
2941 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
2942 (init_decl_processing): Remove no-vtable-thunk code.
2943 * decl2.c (flag_vtable_thunks): Remove.
2944 (mark_vtable_entries): Remove no-vtable-thunk code.
2945 * error.c (dump_decl): Remove no-vtable-thunk code.
2946 (dump_expr): Adjust ptr to member function code.
2947 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
2948 code.
2949 * rtti.c (build_headof): Remove no-vtable-thunk code.
2950 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
2951 * search.c (get_base_distance): Remove expand_upcast_fixups case.
2952 (virtual_context) Remove.
2953 (expand_upcast_fixups): Remove.
2954 (fixup_virtual_upcast_offsets): Remove.
2955 (fixup_all_virtual_upcast_offsets): Remove.
2956 * typeck.c (get_member_function_from_ptrfunc): Remove
2957 no-vtable-thunk code.
2958 * call.c (build_over_call): Adjust call to build_vfn_ref.
2959 * class.c (build_vfn_ref): Lose first parameter. Remove
2960 no-vtable-thunk code.
2961 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
2962 (build_vtable_entry): Remove no-vtable-thunk code.
2963
3461fba7
NS
29642001-07-20 Nathan Sidwell <nathan@codesourcery.com>
2965
2966 Remove old-abi remnants. Remove comments about old abi
aba649ba 2967 behaviour. Remove references to 'new-abi' in comments.
3461fba7
NS
2968 * cp-tree.h: Adjust comments.
2969 (vbase_offsets_in_vtable_p): Delete.
2970 (vcall_offsets_in_vtable_p): Delete.
2971 (vptrs_present_everywhere_p): Delete.
2972 (all_overridden_vfuns_in_vtables_p): Delete.
2973 (merge_primary_and_secondary_vtables_p): Delete.
2974 (TYPE_CONTAINS_VPTR_P): Adjust.
2975 (VTT_NAME_PREFIX): Remove.
2976 (CTOR_VTBL_NAME_PREFIX): Remove.
2977 (init_vbase_pointers): Remove.
2978 * class.c: Adjust coments.
2979 (build_vbase_pointer_fields): Delete.
2980 (build_vbase_pointer): Remove old-abi code.
2981 (build_secondary_vtable): Likewise.
2982 (modify_all_vtables): Likewise.
2983 (create_vtable_ptr): Likewise.
2984 (layout_class_type): Likewise.
2985 (finish_struct_1): Likewise.
2986 (finish_vtbls): Likewise.
2987 (dfs_finish_vtbls): Delete.
2988 (build_vbase_offset_vtbl_entries): Remove old-abi code.
2989 * cvt.c: Adjust comments.
2990 * decl.c: Adjust comments.
2991 * decl2.c: Adjust comments.
2992 * init.c: Adjust comments.
2993 (construct_virtual_bases): Remove old-abi code.
2994 * lang-specs.h: Remove -fno-new-abi.
2995 * mangle.c: Adjust comments.
2996 * rtti.c: Adjust comments.
2997 (get_base_offset): Remove old-abi-code.
2998 * search.c: Adjust comments.
2999 (dfs_init_vbase_pointers): Remove.
3000 (dfs_vtable_path_unmark): Remove.
3001 (init_vbase_pointers): Remove.
3002 * semantics.c: Adjust comments.
3003 (emit_associated_thunks): Remove old-abi code.
3004 * typeck.c: Adjust comments.
3005
1c432a87
DB
30062001-07-20 Daniel Berlin <dan@cgsoftware.com>
3007
3008 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
3009 params.h.
3010
b7076960
MM
30112001-07-19 Mark Mitchell <mark@codesourcery.com>
3012
3013 * class.c (finish_struct_anon): Forbid nested classes.
3014
2b85879e
NB
30152001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3016
3017 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
3018 * optimize.c: Include debug.h.
3019 (maybe_clone_body): Use debug hook.
3020 * semantics.c: Include debug.h.
3021 (expand_body): Use debug hook.
3022
c60e94a7
NB
30232001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3024
3025 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
3026
dbc957f1
MM
30272001-07-18 Mark Mitchell <mark@codesourcery.com>
3028
3029 * class.c (type_requires_array_cookie): New function.
3030 (check_methods): Don't try to figure out whether the type needs a
3031 cookie here.
3032 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
3033 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
3034 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
3035 * pt.c (instantiate_class_template): Don't set
3036 TYPE_VEC_DELETE_TAKES_SIZE.
3037 * NEWS: Document ABI changes from GCC 3.0.
57cb6d52 3038
7ba0b0f7 30392001-07-18 Xavier Delacour <xavier@fmaudio.net>,
749ced52 3040 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7ba0b0f7
XD
3041
3042 * NEWS (Changes in GCC 3.0): Fix typo.
3043
59387d2e
JM
30442001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
3045
3046 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
3047 which attributes are to be attached, and a flags argument. Update
3048 call to decl_attributes.
3049 (grokfield): Update call to decl_attributes.
3050 * class.c (finish_struct): Update call to cplus_decl_attributes.
3051 * cp-tree.h (cplus_decl_attributes): Update prototype.
3052 * decl.c (start_decl, grokdeclarator, start_function): Update
3053 calls to decl_attributes and cplus_decl_attributes.
3054 * friend.c (do_friend): Update call to cplus_decl_attributes.
3055 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
3056
7ed47c04
MM
30572001-07-12 Mark Mitchell <mark@codesourcery.com>
3058
3059 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
3060 for `register' variables with an asm-specification.
3061
40b18c0a
MM
30622001-07-11 Mark Mitchell <mark@codesourcery.com>
3063
3064 * semantics.c (finish_asm_stmt): Mark the output operands
3065 to an asm addressable, if necessary.
3066
517c3b80
BE
30672001-07-11 Ben Elliston <bje@redhat.com>
3068
219670f1
BE
3069 * Revert this change -- there is a subtle bug.
3070
517c3b80
BE
3071 PR c++/80
3072 * decl.c (finish_enum): New "attributes" argument; pass it to
3073 cplus_decl_attributes. Use a narrower type if the enum is packed.
3074 * cp-tree.h (finish_enum): Adjust prototype.
3075 * parse.y (enum_head): New non-terminal.
3076 (structsp): Use it. Enums now may be preceded or followed by
3077 optional attributes -- pass their chained tree to finish_enum().
3078 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
3079
2ba9c47e
MM
30802001-07-10 Mark Mitchell <mark@codesourcery.com>
3081
3082 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
3083 variables.
3084
35241192
JM
30852001-07-10 Jason Merrill <jason_merrill@redhat.com>
3086
3087 * semantics.c (cp_expand_stmt): Fix for null
3088 current_function_return_value.
3089
07167a18
JM
30902001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
3091
3092 * call.c (build_op_delete_call): Initialize fn.
3093 (convert_like_real): Delete conditional.
3094 (joust): Initialize *w and *l.
3095 * class.c: Add prototype for binfo_ctor_vtable.
3096 (get_primary_binfo): Initialize result.
3097 * init.c (build_java_class_ref): Initialize name.
ae818d3b 3098
35241192
JM
30992001-07-09 Erik Rozendaal <dlr@acm.org>
3100
ae818d3b
ER
3101 * typeck.c (unary_complex_lvalue): Do not duplicate the
3102 argument to modify, pre-, or post-increment when used as an
3103 lvalue and when the argument has side-effects.
3104
12a68f1f
JM
31052001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3106
3107 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
3108 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
3109 cplus_decl_attributes even if attrs is NULL.
3110 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
3111
f7a4cec0
JM
31122001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3113
3114 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
3115 calls to decl_attributes.
3116
c80106a4
IR
31172001-07-06 Ira Ruben <ira@apple.com>
3118
ae818d3b 3119 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
c80106a4
IR
3120 be DECL_TEMPLATE_RESULT.
3121
dac65501
KL
31222001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3123
3124 * cp-tree.h (copy_template_template_parm): Rename to ...
3125 (bind_template_template_parm): ... here.
3126 * tree.c (copy_template_template_parm): Rename to ...
3127 (bind_template_template_parm): ... here. Remove the case when
3128 NEWARGS is NULL_TREE.
3129 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
3130 BOUND_TEMPLATE_TEMPLATE_PARM.
3131 * pt.c (lookup_template_class): Adjust.
3132
01f9e964
JM
31332001-07-05 Jason Merrill <jason_merrill@redhat.com>
3134
3135 * cvt.c (convert_lvalue): New fn.
3136 * cp-tree.h: Declare it.
3137 * method.c (do_build_assign_ref): Use it.
3138 (do_build_copy_constructor): Convert parm to base types
3139 before calling base constructors.
3140
3141 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
3142 DECL_USER_ALIGN. Check flag_elide_constructors instead of
3143 optimize.
3144 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
3145
6be77748
NS
31462001-07-02 Nathan Sidwell <nathan@codesourcery.com>
3147
3148 * optimize.c (optimize_inline_calls): New function, broken out
3149 of ...
3150 (optimize_function): ... here. Call it. Don't inline if it is
3151 a thunk.
3152 (dump_function): Print name of dump flag causing this dump.
3153 * semantics.c (expand_body): Move thunk inline check to
3154 optimize_function.
3155
8d8e52be
JM
31562001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
3157
3158 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
3159 (comptypes): Use target.comp_type_attributes.
3160
5a0db193
NS
31612001-06-29 Nathan Sidwell <nathan@codesourcery.com>
3162
3163 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
3164
46f018e1
GDR
31652001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3166
3167 * error.c (lang_print_error_function): Add a `diagnostic_context *'
3168 parameter. Tweak.
3169
501990bb
NB
31702001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3171
3172 * decl2.c (import_export_class): Update.
3173
f68fc4db
GDR
31742001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
3175
3176 * error.c (init_error): Adjust settings.
3177
9596ddd6
GDR
31782001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
3179
3180 * error.c (init_error): Adjust settings.
3181
c93586fa
RS
31822001-06-19 Richard Sandiford <rsandifo@redhat.com>
3183
3184 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
3185 return pointers to data members by reference rather than by value.
3186
0d97bf4c
JM
31872001-06-18 Jason Merrill <jason_merrill@redhat.com>
3188
3189 Implement the Named Return Value optimization.
3190 * cp-tree.h (struct cp_language_function): Add x_return_value.
3191 (current_function_return_value): Now a macro.
3192 * decl.c: Don't define it.
3193 (define_label, finish_case_label): Don't clear it.
3194 (init_decl_processing): Don't register it with GC.
3195 * semantics.c (genrtl_finish_function): Don't check it for
3196 no_return_label. Copy the RTL from the return value to
3197 current_function_return_value and walk, calling...
3198 (nullify_returns_r): ...this new fn.
3199 * typeck.c (check_return_expr): Set current_function_return_value.
3200
13de7ec4
JM
32012001-06-15 Jason Merrill <jason_merrill@redhat.com>
3202
3203 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
3204 sharing a ctor vtable with. Merge code for cases 1 and 2.
3205 (binfo_ctor_vtable): New fn.
3206 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
3207
3ea099f1
JM
32082001-06-14 Jason Merrill <jason_merrill@redhat.com>
3209
3210 * class.c (dfs_find_final_overrider): Fix logic.
3211
3212 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
3213 virtual thunk instead of non-virtual.
3214 (get_matching_virtual): Uncomment.
3215
3216 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
3217 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
3218 PARM, not ARG.
3219
87326ba8
NS
32202001-06-14 Nathan Sidwell <nathan@codesourcery.com>
3221
3222 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
3223 we've not emerged from the hierarchy of RTTI_BINFO on reaching
3224 a non-virtual base.
3225
e065a36e
MM
32262001-06-13 Mark Mitchell <mark@codesourcery.com>
3227
3228 * NEWS: Update release number.
3229
623fe76a
NS
32302001-06-12 Nathan Sidwell <nathan@codesourcery.com>
3231
3232 PR c++/3130, c++/3131, c++/3132
3233 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
3234 * class.c (force_canonical_binfo_r): Move
3235 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
3236 virtual bases unless they're primary and what they're primary
3237 too has been moved.
3238 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
3239 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
3240 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
3241 derived binfo.
3242 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
3243 (layout_nonempty_base_or_field): Add most derived type
3244 parameter. Adjust.
3245 (layout_empty_base): Likewise.
3246 (build_base_field): Likewise.
3247 (build_base_fields): Likewise.
3248 (propagate_binfo_offsets): Add most derived type
3249 parameter. Skip non canonical virtual bases too.
3250 (dfs_set_offset_for_unshared_vbases): Don't skip primary
3251 bases. Do skip canonical bases.
3252 (layout_virtual_bases): Adjust.
3253 (layout_class_type): Adjust.
3254 (dfs_get_primary_binfo): Build list of virtual primary base
3255 candidates.
3256 (get_primary_binfo): Check that the shared virtual primary
3257 base candidate was found first.
3258 (accumulate_vtbl_inits): Don't do anything for non-vptr
3259 containing binfos. For case 1 primary virtual bases, keep
3260 checking that we've not emerged from the hierarchy of RTTI_BINFO.
3261
7bdcf888
NS
32622001-06-12 Nathan Sidwell <nathan@codesourcery.com>
3263
3264 PR c++/3089
3265 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
3266 hierarchy looking for primary bases for a ctor
3267 vtable. Recursively call oneself, if we meet our primary via
3268 this route and haven't met it yet via inheritance graph order.
3269
25b5b465
MM
32702001-06-11 Mark Mitchell <mark@codesourcery.com>
3271
3272 * lang-options.h: Emit documentation for -fno-honor-std, not
3273 -fhonor-std.
3274
eb2d0614
AO
32752001-06-10 Alexandre Oliva <aoliva@redhat.com>
3276
3277 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
3278 Don't clobber delta.
3279 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
3280
2a2b2d43
GDR
32812001-06-10 Mark Mitchell <mark@codesourcery.com>
3282 Gabriel Dos Reis <gdr@codesourcery.com>
3283
3284 * Make-lang.in (cp/call.o): Depend on diagnostic.h
3285 (cp/typeck.o): Depend on diagnostic.h
3286 (cp/typeck2.o): Depend on diagnostic.h
07167a18 3287 (cp/repo.o): Depend on dignostic.h
2a2b2d43
GDR
3288 * typeck.c: #include diagnostic.h
3289 (convert_for_initialization): Remove extern declaration for
3290 warningcount and errorcount.
3291
3292 * call.c: #include diagnostic.h
3293 (convert_like_real): Remove extern declaration for warnincount and
07167a18 3294 errorcount.
2a2b2d43
GDR
3295
3296 * repo.c: #include diagnostic.h
3297 * typeck2.c: #include diagnostic.h
3298
06d5e633
NS
32992001-06-08 Nathan Sidwell <nathan@codesourcery.com>
3300
3301 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
3302 in previous change.
3303
9ac1bd2e
NS
33042001-06-08 Nathan Sidwell <nathan@codesourcery.com>
3305
3306 PR c++/2929
3307 * friend.c (do_friend): Use push_decl_namespace for classes at
3308 namespace scope.
3309
85a9a0a2
NS
33102001-06-08 Nathan Sidwell <nathan@codesourcery.com>
3311 Jason Merrill <jason_merrill@redhat.com>
3312
3313 PR c++/3061
3314 * class.c (build_secondary_vtable): Use assert, rather than an error
3315 message.
3316 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
3317 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
3318 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
3319 Don't set BINFO_VTABLE for a primary virtual base.
3320
daa8df65
MM
33212001-06-07 Mark Mitchell <mark@codesourcery.com>
3322
3323 * decl.c (duplicate_decls): Update source position information
3324 when a template function is defined.
3325
37344b9b
PE
33262001-06-07 Phil Edwards <pme@sources.redhat.com>
3327
3328 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
3329
fcebb2dd
NS
33302001-06-07 Nathan Sidwell <nathan@codesourcery.com>
3331
3332 PR c++/2914
3333 * decl.c (pushtag): Don't push into a complete type's scope.
3334
d0cd8b44
JM
33352001-06-06 Jason Merrill <jason_merrill@redhat.com>
3336
3337 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
3338 (struct lang_decl_flags): Lose generate_with_vtable_p.
3339 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
3340 * class.c (copy_virtuals): Adjust.
3341 * decl2.c (mark_vtable_entries): Adjust.
3342 * method.c (make_thunk, build_vtable_entry): Adjust.
3343 * class.c (update_vtable_entry_for_fn): Only look as far as the
3344 first defining class.
07167a18 3345 (build_vtbl_initializer): Put nothing in the slot for a function only
d0cd8b44 3346 defined in a lost primary virtual base.
07167a18 3347 (add_vcall_offset_vtbl_entries_1): Use the same code for
d0cd8b44
JM
3348 the lost primary case and the normal case.
3349 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
3350 (get_vfield_offset, get_derived_offset): Lose.
3351 (dfs_find_final_overrider): Use look_for_overrides_here.
3352 (get_matching_virtual): New fn.
3353 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
3354 not BV_VCALL_INDEX.
3355 * search.c (look_for_overrides_here): Split out from...
3356 (look_for_overrides_r): Here.
3357
3358 * class.c (find_final_overrider): Return error_mark_node on error.
3359
3360 * decl2.c (key_method): #if 0 accidental change.
3361
acf97e0b
JDA
33622001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3363
3364 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
3365 (build_over_call): Likewise.
3366 * decl.c (grokparms): Likewise.
3367 * pt.c (tsubst_decl): Likewise.
3368 * typeck.c (convert_arguments): Likewise.
3369
7e9abee9
MM
33702001-06-05 Mark Mitchell <mark@codesourcery.com>
3371
47ee8904
MM
3372 * semantics.c (begin_class_definition): Robustify.
3373
7e9abee9
MM
3374 * pt.c (instantiate_decl): Tell the repository code about the
3375 clones, not the cloned functions.
3376 * repo.c (repo_template_used): Explicitly instantiate the cloned
3377 function, not the clones.
3378
bea09693
NS
33792001-06-05 Nathan Sidwell <nathan@codesourcery.com>
3380
3381 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
3382 ICS_BAD_FLAG on created conversion.
3383 (compare_ics): Break out rank.
3384
8f7550ca
NS
33852001-06-05 Nathan Sidwell <nathan@codesourcery.com>
3386
3387 * decl.c (xref_tag): Remove extraneous %s on dependent name
3388 lookup warning.
3389
442e01b6
NS
33902001-06-05 Nathan Sidwell <nathan@codesourcery.com>
3391
3392 * class.c (layout_vtable_decl): Fix off by one error on
3393 build_index_type.
3394 (build_vtt): Likewise.
3395 (build_ctor_vtbl_group): Likewise.
3396
b7442fb5
NS
33972001-06-05 Nathan Sidwell <nathan@codesourcery.com>
3398
3399 * class.c (maybe_indent_hierarchy): New function.
3400 (dump_class_hierarchy_r): Add flags. Dump extra binfo
3401 information, if enabled. Use maybe_indent_hierarchy. Adjust
3402 output format.
3403 (dump_class_hierarchy): Adjust prototype. Adjust output format.
3404 (dump_array, dump_vtable, dump_vtt): New functions.
3405 (finish_struct_1): Adjust hierarchy dumping.
3406 (initialize_vtable): Call dump_vtable.
3407 (build_vtt): Call dump_vtt.
3408 (build_ctor_vtbl_group): Call dump_vtable.
3409 * decl2.c (flag_dump_class_layout): Remove.
3410 (cxx_decode_option): Remove dump translation unit
3411 and dump class hierarchy check. Call dump_switch_p.
3412 (finish_file): Adjust dumping.
3413 (dump.c): Only dump base classes if not TDF_SLIM.
3414 Only dump namespace members if not TDF_SLIM.
3415 * optimize.c (dump_function): New function.
3416 (optimize_function): Call dump_function.
3417 * semantics.c (expand_body): Use dump_enabled_p.
3418
e5410b32
NS
34192001-06-01 Nathan Sidwell <nathan@codesourcery.com>
3420
3421 PR g++/2936
3422 Part missed from first commit
3423 * decl2.c (finish_anon_union): Copy context.
3424
e97c9488
NS
34252001-05-30 Nathan Sidwell <nathan@codesourcery.com>
3426
3427 PR g++/2936
e97c9488
NS
3428 * optimize.c (remap_decl): Remap anonymous aggregate members too.
3429
87d9ac49
NS
34302001-05-26 Nathan Sidwell <nathan@codesourcery.com>
3431
3432 PR g++/2823
3433 * semantics.c (expand_body): Don't optimize thunks.
3434
88657302
RH
34352001-05-25 Sam TH <sam@uchicago.edu>
3436
3437 * cp-tree.h lex.h: Fix header include guards.
3438
34392001-05-25 Mark Mitchell <mark@codesourcery.com>
10841285
MM
3440
3441 * decl.c (init_decl_processing): Tweak.
3442
0b1161fc
MM
34432001-05-24 Mark Mitchell <mark@codesourcery.com>
3444
3445 * decl.c (duplicate_decls): Tidy.
3446 (init_decl_processing): Always set flag_no_builtin.
3447
6f56d925
NS
34482001-05-24 Nathan Sidwell <nathan@codesourcery.com>
3449
3450 PR c++/2184
3451 * decl2.c (do_local_using_decl): Push the decls, even in a
3452 template.
3453
39e0656d
MM
34542001-05-22 Mark Mitchell <mark@codesourcery.com>
3455
3456 * optimize.c (initialize_inlined_parameters): Don't set
3457 TREE_READONLY for a VAR_DECL taking the place of an inlined
3458 PARM_DECL.
3459
0401d499
JM
34602001-05-22 Jason Merrill <jason_merrill@redhat.com>
3461
3462 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
3463 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
3464 attribute.
3465
14fc3426
JM
34662001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
3467
3468 * parse.y: Refer to compound literals as such, not as
3469 constructor-expressions.
3470
3f41ffd8
MM
34712001-05-21 Mark Mitchell <mark@codesourcery.com>
3472
3473 * call.c (build_op_delete_call): Ignore exception-specifications
3474 when looking for matching delete operators.
3475 * init.c (build_new_1): Compute whether or not the allocation
3476 function used is a placement allocation function or not, and
3477 communicate this information to build_op_delete_call.
3478
1a6025b4
JM
34792001-05-21 Jason Merrill <jason_merrill@redhat.com>
3480
90ecce3e
JM
3481 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
3482 (build_vtbl_ref): Adjust.
3483 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
3484 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
3485 Re-add vtable-gc.
3486 (unsupported_options): Correspondingly.
3487
3488 * decl2.c (maybe_make_one_only): Check flag_weak, not
3489 supports_one_only().
3490
1a6025b4
JM
3491 * cp-tree.def (START_CATCH_STMT): Lose.
3492 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
3493 * tree.c (cp_statement_code_p): Don't case it.
3494 * semantics.c (cp_expand_stmt): Likewise.
3495 * cp-tree.h (START_CATCH_TYPE): Lose.
3496 (HANDLER_TYPE): New.
3497 * except.c (expand_start_catch_block): Don't start any blocks.
3498 Return the type.
3499 (expand_end_catch_block): Don't end any blocks.
3500 * parse.y (handler): Don't pass anything from finish_handler_parms
3501 to finish_handler.
3502 * pt.c (tsubst_expr): Likewise.
3503 * semantics.c (begin_handler): Call note_level_for_catch here.
3504 (finish_handler_parms): Don't return anything.
3505 (genrtl_catch_block, begin_catch_block): Lose.
3506 (genrtl_handler): Call expand_start_catch here.
3507
35082001-05-18 Jason Merrill <jason_merrill@redhat.com>
3509
3510 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
3511 (get_vtable_decl, build_vtt): Not here.
3512
d30a825a
NS
35132001-05-20 Nathan Sidwell <nathan@codesourcery.com>
3514
3515 PR c++/2781
3516 * optimize.c (update_cloned_parm): Copy addressability and other
3517 flags.
3518
3b82c249
KL
35192001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3520
3521 * pt.c (determine_specialization): Ignore artificial functions.
3522
2a967f3d
NB
35232001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
3524
3525 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
3526 (C_RID_CODE): Remove.
3527 * lex.c (cxx_init_options): Call set_identifier_size. Update.
3528 (init_parse): Don't do it here.
3529
f99df08e
DN
35302001-05-18 Diego Novillo <dnovillo@redhat.com>
3531
3532 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
3533 function declaration to avoid stripping the symbol's attributes.
3534
2b0cbc5d
NS
35352001-05-18 Nathan Sidwell <nathan@codesourcery.com>
3536
3537 * decl.c (pushdecl): Adjust error string.
3538 (xref_tag): Adjust friend class injection warning. Remove the
3539 inherited name from the class shadowed scope.
3540
e6855a2d
MM
35412001-05-17 Mark Mitchell <mark@codesourcery.com>
3542
3543 * except.c (cp_protect_cleanup_actions): New function.
07167a18 3544 (init_exception_processing): Don't set protect_cleanup_actions
e6855a2d
MM
3545 here. Do set lang_protect_cleanup_actions.
3546
cc469ee9
NS
35472001-05-16 Nathan Sidwell <nathan@codesourcery.com>
3548
3549 * spew.c (read_token): Call yyerror on all unexpected tokens.
3550
3f0a9b35
NS
35512001-05-16 Nathan Sidwell <nathan@codesourcery.com>
3552
3553 * init.c (member_init_ok_or_else): Take a tree rather than
3554 string for name.
3555 (expand_member_init): Adjust.
3556
8d0cb60d
NC
35572001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3558
3559 * decl.c (duplicate_decls): Suppress warning about duplicate
749ced52 3560 decls if the first decl is a friend.
8d0cb60d 3561
1f730ff7
ZW
35622001-05-12 Zack Weinberg <zackw@stanford.edu>
3563
3564 * except.c (choose_personality_routine): Export. Add
3565 explanatory comment. Take an enum languages, not a boolean.
3566 (initialize_handler_parm): Adjust to match.
3567 * cp-tree.h: Prototype choose_personality_routine.
3568 * lex.c (handle_pragma_java_exceptions): New function.
3569 (init_cp_pragma): Register #pragma GCC java_exceptions.
3570
90e0c410
NB
35712001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3572
3573 * method.c (build_mangled_C99_name): Remove unused prototype.
3574
cb7fdde2
AO
35752001-05-12 Alexandre Oliva <aoliva@redhat.com>
3576
3577 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
3578 * typeck.c (get_member_function_from_ptrfunc,
3579 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
3580 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
18ae7f63
AO
3581
3582 Reverted Geoff Keating's 2001-05-03's patch.
3583
401deb20
IR
35842001-05-11 Ira Ruben <ira@apple.com>
3585
3586 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
3587
8e93d446
NB
35882001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3589
3590 * cp-tree.h (finish_label_expr, lookup_label): Delete.
3591 * parse.y: Update for '&&'; don't issue warning here.
3592 * semantics.c (finish_label_expr): Delete.
3593
5cdba4ff
MM
35942001-05-07 Mark Mitchell <mark@codesourcery.com>
3595
3596 * splay-tree.h (splay_tree_max): New function.
3597 (splay_tree_min): Likewise.
3598
8e9eff6b
GK
35992001-05-03 Geoffrey Keating <geoffk@redhat.com>
3600
3601 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
3602 (pfn_vflag_identifier): Define.
3603 Update comment about layout of pointer functions.
3604 (build_ptrmemfunc1): Update prototype.
3605 (expand_ptrmemfunc_cst): Update prototype.
3606 * decl.c (initialize_predefined_identifiers): Initialize
3607 pfn_vflag_identifier.
3608 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
3609 an extra field to the type.
07167a18 3610 * expr.c (cplus_expand_constant): Pass 'flag' between
8e9eff6b
GK
3611 expand_ptrmemfunc_cst and build_ptrmemfunc1.
3612 * typeck.c (get_member_function_from_ptrfunc): When
3613 FUNCTION_BOUNDARY < 16, look at additional field to determine
3614 if a pointer-to-member is a real pointer or a vtable offset.
3615 (build_ptrmemfunc1): Add new parameter to contain extra field.
3616 (build_ptrmemfunc): Pass the extra field around.
3617 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
3618 (pfn_from_ptrmemfunc): Ignore the extra field.
3619
acc72c37
MM
36202001-05-03 Mark Mitchell <mark@codesourcery.com>
3621
3622 * cp-tree.h (flag_inline_trees): Update documentation.
3623 * decl.c (init_decl_processing): Adjust handling of
3624 flag_inline_functions and flag_inline_trees to support -O3.
3625 (grokfndecl): Set DECL_INLINE on all functions if that's what
3626 the user requested.
3627 (save_function_data): Clear DECL_INLINE in
3628 current_function_cannot_inline is non-NULL.
3629 * decl2.c (flag_inline_trees): Update documentation.
3630
5158d7ee
NS
36312001-05-03 Nathan Sidwell <nathan@codesourcery.com>
3632
3633 * dump.c (cp_dump_tree, USING_STMT case): New case.
3634 * tree.c (cp_statement_code_p): Add USING_STMT.
3635 * decl2.c (do_using_directive): Add the using directive statement.
3636
3637 * tree.c (walk_tree): Reformat an if block.
3638
80f5bb34
MM
36392001-05-02 Mark Mitchell <mark@codesourcery.com>
3640
3641 * decl.c (compute_array_index_type): Don't try to do anything with
3642 the indices when processing a template.
3643
3e411c3f
KG
36442001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3645
3646 * call.c: NULL_PTR -> NULL.
3647 * class.c: Likewise.
3648 * cvt.c: Likewise.
3649 * decl.c: Likewise.
3650 * decl2.c: Likewise.
3651 * except.c: Likewise.
3652 * init.c: Likewise.
3653 * rtti.c: Likewise.
3654 * search.c: Likewise.
3655 * tree.c: Likewise.
3656 * typeck.c: Likewise.
3657 * typeck2.c: Likewise.
3658
46188dca
MM
36592001-05-02 Mark Mitchell <mark@codesourcery.com>
3660
3661 * decl2.c (do_using_directive): Revert previous patch.
3662
9da99f7d
NS
36632001-05-01 Nathan Sidwell <nathan@codesourcery.com>
3664
3665 * cp-tree.def (USING_STMT): New statement node.
3666 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
3667 * decl2.c (do_using_directive): Add USING_STMT to statement
3668 tree. Don't emit errors when processing template decl.
3669 * pt.c (tsubst_expr, USING_STMT case): New case.
3670 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
3671
4b48a93e
NS
36722001-05-01 Nathan Sidwell <nathan@codesourcery.com>
3673
3674 * call.c (build_new_op): Convert args from reference here.
3675 (build_conditional_expr): Don't convert here.
3676
1bcea8d7
NS
36772001-05-01 Nathan Sidwell <nathan@codesourcery.com>
3678
3679 * spew.c (last_token_id): New static variable.
3680 (read_token): Set it here.
3681 (yyerror): Use it here.
3682
d72040f5
RH
36832001-04-30 Richard Henderson <rth@redhat.com>
3684
749ced52 3685 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
d72040f5
RH
3686 * decl.c: Likewise.
3687
c3aac512
MM
36882001-04-30 Mark Mitchell <mark@codesourcery.com>
3689
3690 * gxxint.texi: Remove.
3691 * Make-lang.in: Remove all traces of gxxint.texi.
3692
5fd893d5
MM
3693Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
3694
3695 * decl2.c (start_static_initialization_or_destruction): Correct
3696 logic to handle the -fno-use-cxa-atexit case.
3697
d60e5448
MM
36982001-04-30 Mark Mitchell <mark@codesourcery.com>
3699
3700 * optimize.c (update_cloned_parm): New function.
3701 (maybe_clone_body): Use it. Update the `this' parameter too.
3702
7200764f
JM
37032001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
3704
3705 * decl2.c (unsupported_options): Add new-abi.
3706 * lang-options.h: Remove no longer supported options.
3707
2d46ec83
NS
37082001-04-27 Nathan Sidwell <nathan@codesourcery.com>
3709
3710 * except.c (can_convert_eh): Don't check template parms,
3711 typename types etc.
3712
02a1a68c
NS
37132001-04-27 Nathan Sidwell <nathan@codesourcery.com>
3714
3715 * optimize.c (maybe_clone_body): Copy parameter names and locations.
3716
5f6eeeb3
NS
37172001-04-27 Nathan Sidwell <nathan@codesourcery.com>
3718
3719 * cp-tree.h (adjust_clone_args): Prototype new function.
3720 * class.c (adjust_clone_args): New function.
3721 * decl.c (start_function): Call it for in charge ctors.
3722
1b28d441
MM
37232001-04-26 Mark Mitchell <mark@codesourcery.com>
3724
3725 * method.c (use_thunk): Make sure that thunks really are emitted
3726 when requested.
3727
0576ec13
NS
37282001-04-26 Nathan Sidwell <nathan@codesourcery.com>
3729
3730 * mangle.c (write_chars): New macro.
3731 (hwint_to_ascii): New function
3732 (write_number): Use it.
3733 (write_integer_cst): Deal with really big numbers.
3734
b96ada87
MM
37352001-04-25 Mark Mitchell <mark@codesourcery.com>
3736
3737 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
3738 the clone.
3739
6bda7a5e
NS
37402001-04-25 Nathan Sidwell <nathan@codesourcery.com>
3741
3742 * decl.c (grokdeclarator): Set context of namespace scope
3743 TYPE_DECLS.
3744
11fe225a
ZW
37452001-04-24 Zack Weinberg <zackw@stanford.edu>
3746
3747 * cp/optimize.c: Include hashtab.h.
3748 (struct inline_data): Add tree_pruner.
3749 (expand_call_inline, expand_calls_inline): Use it when calling
3750 walk_tree.
3751 (optimize_function): Initialize and free tree_pruner.
3752
0ba8a114
NS
37532001-04-24 Nathan Sidwell <nathan@codesourcery.com>
3754
3755 Lazy __FUNCTION__ generation.
3756 * cp-tree.def (FUNCTION_NAME): Remove.
3757 * cp-tree.h (function_name_declared_p): Remove.
3758 (cp_fname_init): Prototype.
3759 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
3760 don't call declare_function_name. Call start_fname_decls.
3761 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
3762 clobber the line number.
3763 (cp_fname_init): New function.
3764 (start_function): Call start_fname_decls.
3765 (finish_function): Call finish_fname_decls.
3766 * lex.c (reswords): Add slots for __FUNCTION__ et al.
3767 (rid_to_yy): Add mappings for __FUNCTION__ et al.
3768 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
3769 * parse.y (VAR_FUNC_NAME): New token.
3770 (primary): Add VAR_FUNC_NAME.
3771 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
3772 generation.
3773 (tsubst, FUNCTION_NAME case): Remove.
3774 (tsubst_copy, FUNCTION_NAME case): Remove.
3775 (tsubst_expr, DECL_STMT case): Be careful with a
3776 DECL_PRETTY_FUNCTION_P.
3777 (instantiate_decl): Remove function_name_declared_p.
3778 * semantics.c (begin_compound_statement): Don't call
3779 declare_function_name here.
3780 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
3781 (finish_translation_unit): Call finish_fname_decls.
3782 (expand_body): Remove function_name_declared_p.
3783 * typeck2.c (digest_init): Allow any ERROR_MARK.
3784
dfbb4f34
NS
37852001-04-24 Nathan Sidwell <nathan@codesourcery.com>
3786
3787 * pt.c (tsubst_decl): Use VOID_TYPE_P.
3788 * semantics.c: Fix some typos.
3789
e2584c52
PE
37902001-04-23 Phil Edwards <pme@sources.redhat.com>
3791
3792 * cp/decl2.c (flag_honor_std): Always initialize to 1.
3793
d4c3ec27
KG
37942001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3795
3796 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
3797
2ac8a0f9
JM
37982001-04-23 Jason Merrill <jason_merrill@redhat.com>
3799
3800 * except.c (build_throw): Wrap the initialization of the exception
3801 object in a MUST_NOT_THROW_EXPR.
3802 (do_free_exception): #if 0.
3803
968b956a
MM
38042001-04-20 Mark Mitchell <mark@codesourcery.com>
3805
3806 * cp-tree.h (finish_enum): Change prototype.
3807 * decl.c (finish_enum): Reorganize.
3808 * parse.y (structsp): Adjust calls to finish_enum.
11fe225a 3809
aa1826e2
NS
38102001-04-20 Nathan Sidwell <nathan@codesourcery.com>
3811
3812 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
3813 't' case.
3814
06d9f09f
NS
38152001-04-20 Nathan Sidwell <nathan@codesourcery.com>
3816
3817 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
3818 (layout_empty_base): Return at end flag.
3819 (build_base_field): Likewise.
3820 (build_base_fields): Likewise.
3821 (layout_virtual_bases): Don't add 1 to eoc value.
3822 (end_of_class): Use full size for empty bases.
3823 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
3824 empty bases. Don't add 1 to eoc value. Only add trailing padding
3825 if we're an empty class with no empty bases.
3826 (dump_class_hierarchy): Dump size and alignment.
3827
351a0f00
JJ
38282001-04-20 Jakub Jelinek <jakub@redhat.com>
3829
3830 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
3831 ICS_BAD_FLAG.
3832
881cae05
JJ
38332001-04-20 Jakub Jelinek <jakub@redhat.com>
3834
3835 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
3836 is found, look first if name does not match the structure name.
3837
5d2ed28c
MM
38382001-04-19 Mark Mitchell <mark@codesourcery.com>
3839
3840 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
3841 set.
3842 (SET_DECL_LANGUAGE): New macro.
3843 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
3844 (pushdecl): Likewise.
3845 (build_library_fn_1): Likewise.
3846 (build_cp_library_fn): Likewise.
3847 (grokfndecl): Likewise.
3848 (grokvardecl): Mark `extern "C"' variables as having C linkage.
3849 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
3850 * lex.c (retrofit_lang_decl): Likewise.
3851 * mangle.c (mangle_decl_string): Don't mangle the names of
3852 variables declared with C language linkage.
3853 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
11fe225a 3854
41251458
JDA
38552001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
3856
3857 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
3858 flag_access_control from uninitialized storage.
3859
1b4a93f7
MM
38602001-04-15 Mark Mitchell <mark@codesourcery.com>
3861
24272dc0
MM
3862 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
3863 * mangle.c (write_pointer_to_member_type): Fix mangling of
3864 pointers to cv-qualified member function types.
3865
1b4a93f7
MM
3866 * init.c (build_delete): Create a SAVE_EXPR for the address if
3867 we're going to use it more than once.
3868
530ec96d
MM
38692001-04-13 Mark Mitchell <mark@codesourcery.com>
3870
3871 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
3872 (expand_ptremfunc_cst): Change prototype.
3873 (delta2_from_ptrmemfunc): Remove.
3874 * expr.c (cplus_expand_constant): Adjust call to
3875 expand_ptrmemfunc_cst.
3876 * typeck.c (build_ptrmemfunc1): Simplify.
3877 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
3878 results in a constant.
3879 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
3880 (delta2_from_ptrmemfunc): Remove.
3881 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
11fe225a 3882
ee8fc32b
JM
38832001-04-12 Jason Merrill <jason_merrill@redhat.com>
3884
3885 * cp-tree.h (decl_namespace_list): New macro.
3886 (struct saved_scope): Add decl_ns_list.
3887 * decl.c (mark_saved_scope): Mark it.
3888 * decl2.c: Lose static decl_namespace_list.
3889 (init_decl2): Don't save it.
3890
48857160
KG
38912001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3892
3893 * cp-tree.h (warn_return_type, yylex): Delete redundant
3894 declarations.
11fe225a 3895
48857160
KG
3896 * decl.c (current_class_depth, global_namespace): Likewise.
3897
3898 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
3899
3900 * repo.c (flag_use_repository): Likewise.
3901
845e14ed
KG
39022001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3903
3904 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
3905 set_block, pushdecl, getdecls, gettags, init_decl_processing,
3906 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
3907 lvalue_or_else, print_lang_statistics, comp_target_types,
3908 unsigned_type, signed_type, signed_or_unsigned_type,
3909 build_function_call, mark_addressable, incomplete_type_error):
3910 Delete redundant declarations.
3911
1951a1b6
JM
39122001-04-11 Jason Merrill <jason_merrill@redhat.com>
3913
3914 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
3915 (TYPE_ANONYMOUS_P): New macro.
3916 (TAGGED_TYPE_P): New macro.
3917 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
3918 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
3919 * tree.c (no_linkage_helper): Likewise.
3920 * semantics.c (begin_class_definition): Likewise.
3921 * pt.c (convert_template_argument): Likewise.
3922 * lex.c (check_for_missing_semicolon): Likewise.
3923
0fb3018c
NS
39242001-04-12 Nathan Sidwell <nathan@codesourcery.com>
3925
3926 * class.c (dfs_unshared_virtual_bases): New function.
3927 (mark_primary_bases): Call it.
3928 (check_bases): Ignore virtual bases when determining
3929 nearly-emptiness.
3930
bbb53468
NS
39312001-04-12 Nathan Sidwell <nathan@codesourcery.com>
3932
3933 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
3934
9b7949d5
MM
39352001-04-11 Mark Mitchell <mark@codesourcery.com>
3936
3937 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
3938 cloned function to the clone.
3939
d6684bc8
KG
39402001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3941
3942 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
3943
3944 * semantics.c: Include expr.h.
3945
a2095778
NS
39462001-04-11 Nathan Sidwell <nathan@codesourcery.com>
3947
3948 * method.c (implicitly_declare_fn): Commonize code for copy ctor
3949 and assignment op. Set TREE_USED for parameter.
3950
78b45a24
MM
39512001-04-10 Mark Mitchell <mark@codesourcery.com>
3952
3953 * class.c (find_final_overrider_data): Add `candidates'.
3954 (dfs_find_final_overrider): Don't issue error messages
3955 prematurely.
3956 (find_final_overrider): Issue error messages here.
3957 (build_base_field): Don't warn about amgibuous direct bases here.
3958 (warn_about_ambiguous_direct_bases): New function.
3959 (layout_class_type): Use it.
3960
0450d74d
RH
39612001-04-10 Richard Henderson <rth@redhat.com>
3962
3963 * typeck.c (build_array_ref): Push the array reference inside
3964 COMPOUND_EXPR and COND_EXPR.
3965
79065db2
MM
39662001-04-05 Mark Mitchell <mark@codesourcery.com>
3967
3968 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
3969 * decl.c (duplicate_decls): Adjust accordingly.
3970 (maybe_commonize_var): Likewise.
3971 (grokfndecl): Likewise.
3972 (start_function): Likewise.
3973 (start_method): Likewise.
3974 * decl2.c (key_method): Likewise.
3975 (import_export_decl): Likewise.
3976 * method.c (implicitly_declare_fn): Likewise.
3977 * optimize.c (maybe_clone_body): Likewise.
11fe225a 3978
fdecbf8a
BK
39792001-04-05 Benjamin Kosnik <bkoz@redhat.com>
3980
b03eced6 3981 * lang-specs.h: Add __DEPRECATED.
fdecbf8a 3982
0b4c1646
R
3983Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
3984
3985 * search.c (get_dynamic_cast_base_type): When building a new
3986 constant, set its type to ssizetype.
3987
e59d6709
JJ
39882001-04-04 Jakub Jelinek <jakub@redhat.com>
3989
3990 * optimize.c (expand_call_inline): Only add newly inlined statements
3991 into inlined_stmts.
3992
0c918ce5
MM
39932001-04-03 Mark Mitchell <mark@codesourcery.com>
3994
3995 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
3996 (OPERATOR_FORMAT): Likewise.
3997 (OPERATOR_TYPENAME_FORMAT): Likewise.
3998 * operators.def: Remove old name-mangling information.
3999 * decl.c (grok_op_properties): Adjust accordingly.
4000 * lex.c (init_operators): Likewise.
4001 * rtti.c (get_tinfo_decl): Issue error messages about types that
4002 have variable size.
4003
92788413
MM
40042001-04-03 Mark Mitchell <mark@codesourcery.com>
4005
11fe225a 4006 * decl2.c (import_export_decl): Don't call import_export_class
92788413
MM
4007 when processing an inline member function.
4008 * semantics.c (expand_body): Call import_export_decl before
4009 emitting inline functions.
4010
52a11cbf
RH
40112001-03-28 Richard Henderson <rth@redhat.com>
4012
4013 IA-64 ABI Exception Handling:
4014 * cp-tree.def (EH_SPEC_BLOCK): New.
4015 (MUST_NOT_THROW_EXPR): New.
4016 * cp-tree.h: Update changed function declarations.
4017 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
4018 (CPTI_CALL_UNEXPECTED): New.
4019 (struct cp_language_function): Rename x_eh_spec_try_block
4020 to x_eh_spec_block.
4021 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
11fe225a 4022 * decl.c (current_binding_level): If no current function
52a11cbf
RH
4023 bindings, revert to scope_chain.
4024 (initialize_predefined_identifiers): Remove __cp_push_exception.
4025 (store_parm_decls): Use begin_eh_spec_block.
4026 (finish_function): Use finish_eh_spec_block.
4027 (mark_lang_function): Update for name changes.
4028 * decl2.c (finish_file): No mark_all_runtime_matches.
4029 * dump.c (cp_dump_tree): Handle new tree codes.
4030 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
4031 * except.c (catch_language_init, catch_language): Remove.
4032 (init_exception_processing): Don't set language code.
4033 Initialize call_unexpected_node, protect_cleanup_actions,
4034 eh_personality_libfunc, lang_eh_runtime_type.
4035 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
4036 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
4037 (prepare_eh_type): Split out type canonicalizations ...
4038 (build_eh_type_type): ... from here.
4039 (build_eh_type_type_ref): Remove.
4040 (mark_all_runtime_matches): Remove.
4041 (build_exc_ptr): New.
4042 (do_begin_catch, do_end_catch): New.
4043 (do_pop_exception): Remove.
4044 (build_terminate_handler): Remove.
4045 (choose_personality_routine): Split out language choice from ...
4046 (initialize_handler_parm): ... here.
4047 Use MUST_NOT_THROW_EXPR.
4048 (expand_start_catch_block): Use do_begin_catch. Simplify Java
4049 exception object handling.
4050 (expand_start_eh_spec, expand_end_eh_spec): Remove.
4051 (expand_exception_blocks, alloc_eh_object): Remove.
4052 (begin_eh_spec_block, finish_eh_spec_block): New.
4053 (do_allocate_exception, do_free_exception): New.
4054 (expand_throw): Merge into ...
4055 (build_throw): ... here. Update for abi.
4056 * expr.c (cplus_expand_expr): No expand_internal_throw.
4057 Handle MUST_NOT_THROW_EXPR.
4058 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
4059 * semantics.c (*) Update for except.h name changes.
4060 (genrtl_try_block): No protect_with_terminate.
4061 (genrtl_eh_spec_block): New.
4062 (genrtl_handler): Don't emit the goto here.
4063 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
4064 (genrtl_finish_function): Don't expand_exception_blocks.
4065 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
4066
826840d9
RH
40672001-03-28 Richard Henderson <rth@redhat.com>
4068
4069 * decl.c (struct named_label_list): Rename eh_region to
4070 in_try_scope, add in_catch_scope.
4071 (struct binding_level): Rename eh_region to is_try_scope,
4072 add is_catch_scope.
4073 (note_level_for_try): Rename from note_level_for_eh.
4074 (note_level_for_catch): New.
4075 (poplevel): Copy both is_try_scope and is_catch_scope to
4076 the named_label_list struct.
4077 (check_previous_goto_1): Don't check for catch block via
4078 DECL_ARTIFICIAL; use in_try_scope instead.
4079 (check_goto): Likewise.
4080 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
4081 * except.c (expand_start_catch_block): Call note_level_for_catch.
4082 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
4083
531073e7
RH
40842001-03-27 Richard Henderson <rth@redhat.com>
4085
4086 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
4087 exceptions_via_longjmp.
4088
8653a2c3
PE
40892001-03-27 Phil Edwards <pme@sources.redhat.com>
4090
4091 * pt.c (check_default_tmpl_args): Make error messages clearer.
4092
40932001-03-26 Phil Edwards <pme@sources.redhat.com>
4094
4095 * error.c: Also undefine 'A' macro used for cp_printers definition.
4096
911e6107
KG
40972001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4098
4099 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
4100
005a5cb0
MY
41012001-03-26 Mike Yang <yang@research.att.com>
4102 Mark Mitchell <mark@codesourcery.com>
4103
4104 * dump.c (dump_access): New function.
4105 (cp_dump_tree): Use it. Dump basetype information for class
4106 types.
4107
b850de4f
MM
41082001-03-26 Mark Mitchell <mark@codesourcery.com>
4109
4110 * Makefile.in (optimize.o): Depend on params.h.
4111 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
4112 (init_decl_processing): Set flag_no_inline when doing
4113 inlining-on-trees.
4114 * optimize.c: Include params.h.
4115 (struct inline_data): Improve documentation of FNS. Add
4116 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
4117 (INSNS_PER_STMT): New macro.
4118 (remap_block): Use CLONING_P.
4119 (inlinable_function_p): Don't inline big functions.
4120 (expand_call_inline): Keep track of how much inlining we've done.
4121 (optimize_function): Set FIRST_INLINED_FN.
4122 (maybe_clone_body): Set CLONING_P.
4123 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
4124 tree nodes.
4125 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
4126 rest_of_compilation. Clear DECL_RTL for local variables
4127 afterwards.
4128 (clear_decl_rtl): New function.
11fe225a 4129
788bf0e3
NS
41302001-03-26 Nathan Sidwell <nathan@codesourcery.com>
4131
4132 Implement DR 209
4133 * cp-tree.h (skip_type_access_control,
4134 reset_type_access_control): Prototype.
4135 * decl.c (grokdeclarator): Access of friends is not checked.
4136 * parse.y (component_decl_list): Reset type access control.
4137 * semantics.c (decl_type_access_control): Clear
4138 current_type_lookups.
4139 (save_type_access_control): Don't save if not deferring.
4140 (skip_type_access_control, reset_type_access_control): New
4141 functions.
4142 (begin_class_definition): Do type access control for basetypes.
4143 Start deferred access control.
4144 (finish_class_definition): Resume immediate access control if
4145 this is a local class.
4146
730e1556
KG
41472001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4148
4149 * class.c (add_method): Use memcpy/memmove, not bcopy.
4150
4151 * decl.c (duplicate_decls): Likewise.
4152
f1a0345c
JJ
41532001-03-23 Jakub Jelinek <jakub@redhat.com>
4154
4155 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
4156 not `_'.
4157
8e4ce833
JJ
41582001-03-23 Jakub Jelinek <jakub@redhat.com>
4159
4160 * decl.c (local_names): Define.
4161 (push_local_name): New.
4162 (grok_reference_init): Return init if initializing static reference
4163 variable with non-constant instead of emitting it.
4164 Move expand_static_init call to cp_finish_decl.
4165 (layout_var_decl): Call push_local_name.
4166 (maybe_commonize_var): Allow inlining functions even if they have
4167 static local variables, use comdat_linkage for them if flag_weak.
4168 (check_initializer): Call obscure_complex_init if
4169 grok_reference_init returned non-zero.
4170 (save_function_data): Clear x_local_names.
4171 (pop_cp_function_context): Free x_local_names.
4172 (mark_inlined_fns): Remove.
4173 (mark_lang_function): Mark x_local_names.
4174 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
4175 Mark inlined_fns as tree, remove call to mark_inlined_fns.
4176 * class.c (alter_access): Ensure DECL_ACCESS is never set if
4177 DECL_DISCRIMINATOR_P.
4178 * cp-tree.h (cp_language_function): Add x_local_names.
4179 (lang_decl_flags): Add discriminator into u2.
4180 (lang_decl_inlined_fns): Remove.
4181 (lang_decl): inlined_fns is now a TREE_VEC.
4182 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
4183 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
4184 TREE_VEC, not a custom structure.
4185 (optimize_function): Likewise.
4186 * mangle.c (discriminator_for_local_entity): Discriminate among
4187 VAR_DECL local entities.
4188 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
4189 is not valid.
4190
60c87482
BM
41912001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
4192
4193 Add support for Java interface method calls.
4194 * cp-tree.h (struct lang_type): Add java_interface flag.
4195 (TYPE_JAVA_INTERFACE): New macro.
4196 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
4197 by setting TYPE_JAVA_INTERFACE.
4198 * call.c (java_iface_lookup_fn): New static.
11fe225a 4199 (build_over_call): If calling a method declared in a
60c87482
BM
4200 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
4201 expression which resolves the function address.
4202 (build_java_interface_fn_ref): New function.
4203
94c7f30b
RH
42042001-03-22 Richard Henderson <rth@redhat.com>
4205
4206 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
4207 * except.c: Don't include it.
4208
fd8b7a0e 42092001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
826840d9 4210 based on an idea from Joe Buck <jbuck@synopsys.com>
fd8b7a0e
GP
4211
4212 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
4213 New nonterminals.
4214 (data_def, component_decl): Add reductions to bad_decl.
4215
a1c2b86d
JJ
42162001-03-22 Jakub Jelinek <jakub@redhat.com>
4217
4218 * method.c (do_build_assign_ref): Don't use build_modify_expr for
4219 anonymous aggregates, since they don't have assignment operator
4220 method.
4221 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
4222 assignment operators for anonymous structure fields.
4223
46ccf50a
JM
42242001-03-21 Jason Merrill <jason@redhat.com>
4225
4226 * pt.c (instantiate_decl): Abort if we see a member constant
4227 instantiation that doesn't already have its initializer.
4228 Downgrade explicit instantiation without definition to pedwarn.
4229
4230 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
4231 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
4232 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
4233
4234 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
4235 (pending_vtables): Remove.
4236 * decl2.c (pending_vtables): Remove.
4237 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
4238 CLASSTYPE_VTABLE_NEEDS_WRITING.
4239 (import_export_class): Likewise.
4240 (init_decl2): Don't mark pending_vtables.
4241 * lex.c (handle_pragma_vtable): Just sorry.
4242 * pt.c (instantiate_class_template): Don't mess with
4243 CLASSTYPE_VTABLE_NEEDS_WRITING.
4244 (mark_class_instantiated): Likewise.
4245 * ptree.c (print_lang_type): Don't print it.
4246 * semantics.c (begin_class_definition): Don't set it.
4247
4248 * pt.c (template_tail): Replace with last_pending_template.
4249 (maybe_templates, maybe_template_tail): Remove.
4250 (add_pending_template): Adjust.
4251 (instantiate_pending_templates): Adjust.
4252
4253 * cp-tree.h (struct saved_scope): Remove lang_stack field.
4254 (current_lang_stack): Remove.
4255 * decl.c (maybe_push_to_top_level): Don't initialize it.
4256 (duplicate_decls): Use current_lang_depth.
4257 (xref_basetypes): Likewise.
4258 * class.c (current_lang_depth): New fn.
4259 (push_lang_context): Use more varray functionality.
4260 (pop_lang_context): Likewise.
64d9c3fe
JM
4261
4262 * error.c (GLOBAL_THING): Always use '__'.
4263
1c06710a
MM
42642001-03-21 Mark Mitchell <mark@codesourcery.com>
4265
71cb9286
MM
4266 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
4267
1c06710a
MM
4268 * mangle.c (mangle_decl_string): Mangle the names of overloaded
4269 operators, even when they have `extern "C"' linkage.
4270
92643fea
MM
42712001-03-19 Mark Mitchell <mark@codesourcery.com>
4272
4273 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
4274 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4275 where it's not necessary.
4276 (add_method): Remove optimization involving comparison of
4277 DECL_ASSEMBLER_NAME.
4278 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
4279 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4280 where it's not necessary.
4281 (check_methods): Likewise.
4282 (build_clone): Likewise.
4283 (built_vtt): Likewise.
4284 * cp-tree.h (DECL_NEEDED_P): Likewise.
4285 * decl.c (pushtag): Likewise.
4286 (duplicate_decls): Likewise.
4287 (pushdecl): Likewise.
4288 (builtin_function): Likewise.
4289 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
4290 (build_cp_library_fn): Likewise.
4291 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
4292 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4293 where it's not necessary.
4294 (make_rtl_for_nonlocal_decl): Likewise.
4295 (cp_finish_decl): Likewise.
4296 (grokfndecl): Likewise.
4297 (grokvardecl): Likewise.
4298 (grokdeclarator): Likewise.
4299 (start_function): Likewise.
4300 (cp_missing_return_ok_p): Likewise.
4301 * decl2.c (grokclassfn): Likewise.
4302 (check_classfn): Likewise.
4303 (finish_static_data_member_decl): Likewise.
4304 (grokfield): Likewise.
4305 * error.c (GLOBAL_IORD_P): Remove.
4306 (dump_global_iord): Improve output.
4307 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
4308 * except.c (nothrow_libfn_p): Summarily reject any function not in
4309 namespace-scope.
4310 * init.c (build_java_class_ref): Don't explicitly set
4311 DECL_ASSEMBLER_NAME after calling mangle_decl.
4312 * mangle.c (mangle_decl_string): Handle extern "C" functions.
4313 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
4314 * method.c (set_mangled_name_for_decl): Don't explicitly set
4315 DECL_ASSEMBLER_NAME after calling mangle_decl.
4316 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
4317 IDENTIFIER_GLOBAL_VALUE for the thunk.
4318 * pt.c (set_mangled_name_for_template_decl): Remove.
4319 (check_explicit_specialization): Don't use it.
4320 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
4321 (tsubst_friend_function): Likewise.
4322 (tsubst_decl): Likewise.
4323 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
4324 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
4325 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4326 where it's not necessary.
4327 (tinfo_base_init): Likewise.
4328 (create_real_tinfo_var): Likewise.
4329 * search.c (looup_field_1): Likewise.
4330 * semantics.c (finish_named_return_value): Likewise.
4331 * tree.c (init_tree): Set lang_set_decl_assembler_name.
11fe225a 4332
d064d75a
GDR
43332001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
4334
4335 Correct semantics restrictions checking in throw-expression.
4336 * except.c (is_admissible_throw_operand): New function.
4337 (build_throw): Use it.
4338
a3eab619
MM
43392001-03-14 Mark Mitchell <mark@codesourcery.com>
4340
4341 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
4342 and its ilk.
4343
19e7881c
MM
43442001-03-14 Mark Mitchell <mark@codesourcery.com>
4345
4346 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
4347 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
4348 * decl.c (duplicate_decls): Likewise.
4349 (builtin_function): Likewise.
4350 (build_library_fn): Likewise.
4351 (build_cp_library_fn): Likewise.
4352 (check_initializer): Likewise.
4353 (cp_finish_decl): Likewise.
4354 * decl2.c (grokfield): Likewise.
4355 (grok_function_init): Remove #if 0'd code.
4356 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
4357 * friend.c (do_friend): Likewise.
4358 * init.c (get_temp_regvar): Likewise.
4359 * method.c (make_thunk): Likewise.
4360 * pt.c (tsubst_friend_function): Likewise.
4361 (tsubst_decl): Likewise.
4362 (regenerate_decl_from_template): Likewise.
4363 * semantics.c (genrtl_named_return_value): Likewise.
4364 (expand_body): Likewise.
4365 (genrtl_finish_function): Likewise.
4366 * tree.c (cp_tree_equal): Likewise.
11fe225a 4367
78fe06c2
NS
43682001-03-12 Nathan Sidwell <nathan@codesourcery.com>
4369
4370 * call.c (convert_like_real): Add extra semantics to INNER
4371 parameter. Don't convert to temporary if a user conversion
4372 gives us an lvalue that we're about to bind to a reference.
4373 Set INNER to indicate pending reference binding on recursive
4374 calls.
4375
b3e68a79
NB
43762001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4377
4378 * cp/lex.c: Delete duplicate pending_lang_change.
4379
43802001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4381
4382 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
4383 Similarly.
4384 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
4385 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
4386
11642c3a
ZW
43872001-03-09 Zack Weinberg <zackw@stanford.edu>
4388
4389 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
4390
bb6852eb 43912001-03-08 Stan Shebs <shebs@apple.com>
f7687817
SS
4392
4393 * cp-tree.h (set_identifier_local_value): Remove unused decl.
4394
cc937581
ZW
43952001-03-06 Zack Weinberg <zackw@stanford.edu>
4396
4397 * spew.c: Remove references to CPP_OSTRING.
4398
d1188d91
AH
43992001-03-06 Andrew Haley <aph@redhat.com>
4400
4401 * typeck.c (convert_arguments): Check that we have an fndecl.
4402
4eaf1d5b
AH
44032001-03-05 Andrew Haley <aph@redhat.com>
4404
4405 * typeck.c (convert_arguments): Don't do ellipsis conversion for
4406 __built_in_constant_p.
4407
7eeb553c
NS
44082001-03-02 Nathan Sidwell <nathan@codesourcery.com>
4409
4410 * typeck.c (build_static_cast): Allow enum to enum conversions
4411 as per DR 128.
4412
d282fcb2
NS
44132001-03-02 Nathan Sidwell <nathan@codesourcery.com>
4414
4415 * class.c (check_field_decls): Pointers to member do not a
4416 non-pod struct make, as per DR 148.
4417
f86fdf68
NS
44182001-03-02 Nathan Sidwell <nathan@codesourcery.com>
4419
4420 * call.c (joust): cp_pedwarn when using gnu extension concerning
4421 worst conversion sequences.
4422
d6edb99e
ZW
44232001-03-01 Zack Weinberg <zackw@stanford.edu>
4424
4425 * decl.c: Replace all uses of 'boolean' with 'bool'.
4426
f7143427
ZW
44272001-03-01 Zack Weinberg <zackw@stanford.edu>
4428
4429 * lang-specs.h: Add zero initializer for cpp_spec field to
4430 all array elements that need one. Don't put an #ifdef inside
4431 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
4432 use it.
4433
fbfe8c9e
NS
44342001-03-01 Nathan Sidwell <nathan@codesourcery.com>
4435
4436 Implement using decls inside template functions.
4437 * decl2.c (validate_nonmember_using_decl): Don't special case
4438 fake_std_node in the global namespace. Don't reject early when
4439 processing a template.
4440 (do_local_using_decl): Add to statement tree. Don't do further
4441 processing when building a template.
4442 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
4443
4d24a889
NS
44442001-03-01 Nathan Sidwell <nathan@codesourcery.com>
4445
4446 * decl2.c (do_nonmember_using_decl): Don't complain if we find
4447 same function. Do complain about ambiguating extern "C"
4448 declarations.
4449
e5844e6d
NS
44502001-02-28 Nathan Sidwell <nathan@codesourcery.com>
4451
4452 Remove floating point and complex type template constant parms.
4453 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
4454 COMPLEX_TYPE extensions.
4455 (invalid_nontype_parm_type_p): Likewise.
4456
788f238c
JO
44572001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
4458
4459 * except.c (call_eh_info): Revert "match_function"'s type.
4460
73ea87d7
NS
44612001-02-27 Nathan Sidwell <nathan@codesourcery.com>
4462
4463 Fix ctor vtable vcall offsets.
4464 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
4465 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
4466 (get_matching_base): Remove.
4467 (get_original_base): New function.
11fe225a 4468 (build_vtbl_initializer): Initialize vid.rtti_binfo.
73ea87d7
NS
4469 Use a virtual thunk for a ctor vtable with an index
4470 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
4471 primary base within a constructor vtable. Only set
4472 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
4473 when primary base has been lost.
4474 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
4475
fe730161
JO
44762001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
4477
4478 * call.c (joust): Ensure more_specialized()'s argument length
4479 parameter has correct value for constructors.
4480
e5dd4aad
NS
44812001-02-26 Nathan Sidwell <nathan@codesourcery.com>
4482
4483 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
11fe225a 4484
e5dd4aad
NS
4485 * decl.c (mark_inlined_fns): Prototype.
4486
25200ab2
MM
44872001-02-22 Mark Mitchell <mark@codesourcery.com>
4488
4489 * spew.c (yylex): Correct handling of friends.
4490
f58c04ac
MM
44912001-02-22 Mark Mitchell <mark@codesourcery.com>
4492
4493 * mangle.c (write_encoding): Pass write_function_type the
4494 FUNCTION_DECL for the function being encoded.
4495 (write_function_type): Pass it along to write_bare_function_type.
4496 (write_bare_function_type): Pass it along to write_method_parms.
4497 (write_method_parms): Don't mangle the compiler-generated
4498 parameters to a constructor or destructor.
4499
9c96f3f8
AJ
45002001-02-22 Andreas Jaeger <aj@suse.de>
4501
4502 * optimize.c: Include toplev.h for
4503 note_deferral_of_defined_inline_function prototype.
4504
b3bae5e2
JJ
45052001-02-22 Jakub Jelinek <jakub@redhat.com>
4506
4507 * cp-tree.h (struct lang_decl_inlined_fns): New.
4508 (struct lang_decls): Add inlined_fns.
4509 (DECL_INLINED_FNS): New macro.
4510 * optimize.c (struct inline_data): Add inlined_fns.
4511 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
4512 (inlinable_function_p): Likewise, fix typo in comment,
4513 function is not inlinable if it already inlined function currently
4514 being optimized.
306ef644 4515 (expand_call_inline): Add fn to inlined_fns if necessary.
b3bae5e2
JJ
4516 (optimize_function): Initialize inlined_fns.
4517 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
4518 * decl.c (mark_inlined_fns): New function.
4519 (lang_mark_tree): Call it.
4520
5daf7c0a
JM
45212001-02-21 Jason Merrill <jason@redhat.com>
4522
4523 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
4524 (DECL_UNINLINABLE): Move to middle-end.
4525
4526 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
4527 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
4528 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
4529 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
4530 parms and outer BLOCK. note_deferral_of_defined_inline_function.
4531
4532 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
4533 second parm of op=.
4534
2c0fc02d
MM
45352001-02-19 Mark Mitchell <mark@codesourcery.com>
4536
4537 * decl2.c (set_decl_namespace): Allow explicit instantiations in
4538 any namespace.
4539
612164eb
KL
45402001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4541
4542 * optimize.c (expand_call_inline): Don't walk subtrees of type
4543 nodes.
4544
69a59a49
MM
45452001-02-18 Mark Mitchell <mark@codesourcery.com>
4546
4547 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
4548 for a destructor.
4549
e0fff4b3
JM
45502001-02-18 Jason Merrill <jason@redhat.com>
4551
4552 Do put the VTT parameter in DECL_ARGUMENTS.
4553 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
4554 (current_vtt_parm): New macro.
4555 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
4556 (DECL_HAS_VTT_PARM_P): New macro.
4557 (DECL_VTT_PARM): Remove.
4558 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
4559 * decl.c (duplicate_decls): Only copy the operator code if
4560 appropriate.
4561 (start_function): Set current_vtt_parm.
4562 (lang_mark_tree): Don't mark vtt_parm.
9c96f3f8 4563 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
e0fff4b3
JM
4564 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
4565 * class.c (build_clone): Maybe remove the VTT parm.
4566 * optimize.c (maybe_clone_body): Set up the VTT parm.
4567 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
4568 * call.c (build_over_call): Just allow the VTT arg.
4569 * method.c (make_thunk): Don't set DECL_VTT_PARM.
4570 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
4571 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
4572 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
4573 * error.c (dump_function_decl): Likewise.
4574 * call.c (build_user_type_conversion_1, convert_like_real): Abort
4575 if we try to call a constructor with in-charge or VTT parms.
4576 * method.c (skip_artificial_parms_for): New fn.
4577 * call.c (add_function_candidate, build_over_call): Call it.
4578 * call.c (build_new_method_call): Use current_vtt_parm.
4579 * init.c (expand_virtual_init): Likewise.
4580 * class.c (same_signature_p): No longer static.
4581 * cp-tree.h: Declare it.
4582 * search.c (look_for_overrides_r): Use it.
4583
c750255c
MM
45842001-02-17 Mark Mitchell <mark@codesourcery.com>
4585
8fa33dfa
MM
4586 * cp-tree.h (new_abi_rtti_p): Remove.
4587 (name_mangling_version): Likewise.
4588 (flag_do_squangling): Likewise.
4589 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
4590 * decl.c (grokfndecl): Likewise.
4591 * decl2.c (name_mangling_version): Remove.
4592 (flag_do_squangling): Likewise.
4593 (lang_f_options): Remove `squangle'.
4594 (unsupported_options): Add `squangle'.
4595 (cxx_decode_option): Issue a warning about uses of
4596 -fname-mangling-version.
4597 (finish_file): Remove old ABI support.
4598 * pt.c (check_explicit_specialization): Likewise.
4599 (tsubst_decl): Likewise.
4600 * rtti.c (init_rtti_processing): Likewise.
4601 (build_headof): Likewise.
4602 (get_tinfo_decl_dynamic): Likewise.
4603 (tinfo_from_decl): Likewise.
4604 (build_dynamic_cast_1): Likewise.
4605 (synthesize_tinfo_var): Likewise.
12fa82db
MM
4606 * init.c (build_new): Allow enumeration types for the array-bounds
4607 in a direct-new-declarator.
4608
4609 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
4610
c750255c
MM
4611 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
4612 TREE_PROTECTED from the template being specialized.
4613
a714e5c5
JM
46142001-02-17 Jason Merrill <jason@redhat.com>
4615
4616 * decl2.c (build_artificial_parm): Set TREE_READONLY.
4617
9c96f3f8 4618 * decl.c (bad_specifiers): Allow throw specs on things with
a714e5c5
JM
4619 pointer-to-function or -member-function type.
4620 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
4621 a pmf.
4622
8084b91e
MM
46232001-02-17 Mark Mitchell <mark@codesourcery.com>
4624
4625 * call.c (check_dtor_name): Handle template names correctly.
4626
48f22ed2
JM
46272001-02-16 Jason Merrill <jason@redhat.com>
4628
4629 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
4630 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
4631 * optimize.c (maybe_clone_body): Don't substitute it.
4632 * call.c (build_new_method_call): Check in_chrg instead.
4633 * init.c (expand_virtual_init): Likewise.
4634
e8186ecf
GDR
46352001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
4636
4637 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
4638 class-type introduces at least a type-name.
4639
2c1be322
JJ
46402001-02-16 Jakub Jelinek <jakub@redhat.com>
4641
4642 * call.c (convert_like_real): Create a temporary for non-lvalue.
4643
aab8454a
JO
46442001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
4645
4646 * cp-tree.h: Fix typos in comments.
4647
a901fa64
JM
46482001-02-16 Jason Merrill <jason@redhat.com>
4649
4650 * optimize.c (remap_block): If we're compiling a clone, pass the
4651 new block to insert_block.
4652
8853373c
MM
46532001-02-16 Mark Mitchell <mark@codesourcery.com>
4654
4655 * semantics.c (finish_asm_stmt): Robustify.
4656
b60ecc04
MM
46572001-02-15 Mark Mitchell <mark@codesourcery.com>
4658
4659 * pt.c (push_template_decl_real): Don't remangle the name of a
4660 class template.
4661
e658449e
JM
46622001-02-15 Jim Meyering <meyering@lucent.com>
4663
fd48c9b5
DD
4664 * Make-lang.in (c++.install-common): Depend on installdirs.
4665 (c++.install-info): Likewise.
4666 (c++.install-man): Likewise.
e658449e 4667
f1a3f197
MM
46682001-02-15 Mark Mitchell <mark@codesourcery.com>
4669
4670 * typeck2.c (build_m_component_ref): Robustify.
4671
8826b15b
AO
46722001-02-15 Alexandre Oliva <aoliva@redhat.com>
4673
4674 * friend.c (do_friend): Don't take the nested [template] class
4675 into account when deciding whether to warn about the friend
4676 function not referring to a template function.
4677
7161c1a5
JJ
46782001-02-14 Jakub Jelinek <jakub@redhat.com>
4679
4680 * typeck.c (build_unary_op): Clarify error message.
4681
4806765e
AH
46822001-02-08 Aldy Hernandez <aldyh@redhat.com>
4683
a901fa64
JM
4684 * parse.y (component_constructor_declarator): allow optional
4685 parentheses around constructor class name.
4806765e 4686
bfc8e1e2
NS
46872001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4688
4689 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
4690 section.
4691 * init.c (emit_base_init): Remove incorrect comment about
4692 virtual bases.
4693 * method.c (make_thunk): Fix comment alignment.
4694
394fd776
NS
46952001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4696
4697 Kill remnants of this is variable.
4698 * cp-tree.h (flag_this_is_variable): Remove.
4699 * decl2.c (flag_this_is_variable): Remove.
4700 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
4701 (build_vbase_path): The path is non-static, even in a cdtor.
4702 (resolves_to_fixed_type_p): Add additional return value.
4703 * search.c (init_vbase_pointers): Adjust.
4704 * tree.c (lvalue_p_1): Adjust.
4705 * typeck.c (mark_addressable): Adjust.
4706
d0ab7624
NS
47072001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4708
4709 * pt.c (unify): Don't check cv quals of array types.
4710
7773899b
NS
47112001-02-14 Nathan Sidwell <nathan@codesourcery.com>
4712
4713 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
4714 check whether we already have the type.
4715
52682a1b
MM
47162001-02-13 Mark Mitchell <mark@codesourcery.com>
4717
4718 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
4719 * call.c (build_op_delete_call): Simplify to remove duplicate
4720 code.
4721 * class.c (clone_function_decl): Don't build the deleting variant
4722 of a non-virtual destructor.
4723 * decl.c (finish_destructor_body): Don't call delete if this is a
4724 non-virtual destructor.
4725 * init.c (build_delete): Explicitly call `operator delete' when
4726 deleting an object with a non-virtual destructor.
9c96f3f8 4727
3b6bd115
JM
47282001-02-13 Jason Merrill <jason@redhat.com>
4729
4730 * lang-specs.h: Add more __EXCEPTIONS.
4731
45abaea8
NS
47322001-02-12 Nathan Sidwell <nathan@codesourcery.com>
4733
4734 * typeck2.c (process_init_constructor): Check
4735 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
4736
996065b4
NS
47372001-02-12 Nathan Sidwell <nathan@codesourcery.com>
4738
4739 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
4740 Remove spurious information in comment. Allow further
4741 adjustments of REFERENCE_TYPE args.
4742
82c18d5c
NS
47432001-02-12 Nathan Sidwell <nathan@codesourcery.com>
4744
4745 * errfn.c (cp_deprecated): Tweak diagnostic text.
4746 * parse.y (new_initializer): Deprecate initializer lists
4747 extension.
4748
1f84ec23
MM
47492001-02-12 Mark Mitchell <mark@codesourcery.com>
4750
4751 Remove old ABI support.
4752
8c310e3f
MM
47532001-02-11 Mark Mitchell <mark@codesourcery.com>
4754
b1012f1b
MM
4755 * decl2.c (flag_vtable_thunks): Always set it to 1.
4756 (flag_new_abi): Likewise.
4757 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9c96f3f8 4758
8c310e3f
MM
4759 * Makefile.in (g++spec.o): Fix typo.
4760
3b635dfc
JM
47612001-02-09 Jason Merrill <jason@redhat.com>
4762
4763 * lang-specs.h: Restore definition of __EXCEPTIONS.
4764
bd0d5d4a
JM
47652001-02-08 Jason Merrill <jason@redhat.com>
4766
4767 * search.c (shared_member_p): New function.
4768 (lookup_field_r): Use it.
4769 * cp-tree.h (SHARED_MEMBER_P): Remove.
4770
4771 * method.c (process_overload_item): Handle template-dependent array
4772 bounds.
4773 * pt.c (type_unification_real): If we end up with undeduced nontype
4774 parms, try again.
4775
4776 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
4777 types.
4778
4779 * typeck2.c (friendly_abort): Don't say anything if we have
4780 earlier errors or sorries.
4781
9c96f3f8 4782 * decl.c (check_tag_decl): Notice attempts to redefine bool and
bd0d5d4a
JM
4783 wchar_t. Ignore if in_system_header.
4784
4785 * decl.c (maybe_push_cleanup_level): New fn...
4786 (start_decl_1): ...split out from here.
4787 * cvt.c (build_up_reference): Use it.
4788 * cp-tree.h: Declare it.
4789
a9374841
MM
47902001-02-07 Mark Mitchell <mark@codesourcery.com>
4791
9c96f3f8 4792 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
a9374841
MM
4793 spec.
4794
a87b4257
NS
47952001-02-06 Nathan Sidwell <nathan@codesourcery.com>
4796
4797 * pt.c (lookup_template_class): Make sure it's a primary
4798 template or template_template_parm when called from the parser.
4799 (instantiate_template_class): Add assertion.
4800
518fed76
AO
48012001-02-05 Alexandre Oliva <aoliva@redhat.com>
4802
4803 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
4804 from error_mark_node.
4805
9965d119
NS
48062001-02-05 Nathan Sidwell <nathan@codesourcery.com>
4807
4808 Fix specification and implementation bugs in V3 ABI
4809 construction vtables.
4810 * cp-tree.h (flag_dump_class_layout): New flag.
4811 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
4812 (BINFO_LOST_PRIMARY_P): New flag.
4813 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
4814 (BINFO_PRIMARY_MARKED_P): Rename to ...
4815 (BINFO_PRIMARY_P): ... here.
4816 (binfo_via_virtual): New prototype.
4817 * decl2.c (flag_dump_class_layout): New flag.
4818 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
4819 use `=' as a file name separator.
4820 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
4821 bases.
4822 (build_vtbl_address): If this is a virtual primary base, then
4823 get the vtbl of what it is ultimately primary for.
4824 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
4825 for BINFO_PRIMARY_P.
4826 (dfs_skip_nonprimary_vbases_markedp): Likewise.
4827 (get_shared_vbase_if_not_primary): Likewise.
4828 (dfs_get_pure_virtuals): Likewise.
4829 (expand_upcast_fixups): Likewise.
4830 (fixup_virtual_upcast_offsets): Likewise.
4831 (dfs_find_vbase_instance): Likewise.
4832 (find_vbase_instance): Likewise.
4833 (binfo_from_vbase): Adjust comment to reflect reality.
4834 (binfo_via_virtual): New function.
4835 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
4836 for binfo walking during VTT construction.
4837 (dfs_mark_primary_bases): Remove.
4838 (force_canonical_binfo_r): New function.
4839 (force_canonical_binfo): New function.
4840 (mark_primary_virtual_base): New function.
4841 (mark_primary_bases): Walk in inheritance graph order, use
4842 mark_primary_virtual_base.
4843 (determine_primary_base): Use some more intermediate variables.
4844 (dfs_find_final_overrider): Don't check for overriding along a
4845 virtual path.
4846 (dfs_modify_vtables): Walk into primary virtual bases too.
4847 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
4848 (build_base_fields): Likewise.
4849 (dfs_set_offset_for_unshared_vbases): Likewise.
4850 (layout_virtual_bases): Likewise.
4851 (end_of_class): Likewise.
4852 (finish_struct_1): Call dump_class_hierarchy, if requested.
4853 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
4854 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
4855 (dump_class_hierarchy): Add file parameter. Append to file, if
4856 required.
4857 (finish_vtbls): Adjust accumulate_vtbl_inits call.
4858 Use canonical base for virtual bases.
4859 (build_vtt): Add more comments. Adjust build_vtt_inits call.
4860 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
4861 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
4862 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
4863 virtual VTTs.
4864 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
4865 from DATA. We want virtual primary bases and all bases via virtual.
4866 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
4867 virtual base when not a construction vtable.
4868 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
4869 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
4870 Use canonical bases when processing virtual bases.
4871 (accumulate_vtbl_inits): We're interested in any base via a
4872 virtual path.
4873 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
4874 within a construction vtable, determine what is being overridden.
4875 (build_vtbl_initializer): Add more comments
4876 (add_vcall_offset_vtbl_entries_1): Adjust comment.
4877 (build_rtti_vtbl_entries): Check if the base has lost its
4878 primary.
4879
39d6f2e8
MM
48802001-02-05 Mark Mitchell <mark@codesourcery.com>
4881
4882 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
4883
400500c4
RK
4884Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4885
4886 * decl.c (pushdecl): Call abort instead of fatal.
4887 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
4888 * init.c (build_new_1): Likewise.
4889 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
4890 * decl.c (build_typename_type): hash_table_init now returns void.
4891 decl.c (init_decl_processing): Make an error non-fatal.
4892
97458258
MM
48932001-02-04 Mark Mitchell <mark@codesourcery.com>
4894
4895 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
4896 Document.
4897 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
4898 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
4899 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
4900 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
4901 * decl.c (maybe_commonize_var): Use the new name-mangling where
4902 appropriate.
4903 * decl2.c (comdat_linkage): Enhance comments. Make all
4904 compiler-generated things static, if COMDAT is not available.
4905 (get_tinfo_decl): Do not make typeinfo objects that belong in the
4906 library COMDAT.
4907 (tinfo_base_init): Use the correct mangled name for typeinfo
4908 strings, and push them into the global scope.
4909 (typeinfo_in_lib_p): New function.
4910 (synthesize_tinfo_var): Use it.
4911 (create_real_tinfo_var): Likewise.
9c96f3f8 4912
55de1b66
JJ
49132001-02-03 Jakub Jelinek <jakub@redhat.com>
4914
4915 * decl.c (push_class_binding): Use context_for_name_lookup instead
4916 of CP_DECL_CONTEXT.
4917 * search.c (context_for_name_lookup): Remove static. Check for NULL
4918 context in the loop.
4919 * cp-tree.h (context_for_name_lookup): Add prototype.
4920
e92730aa
JJ
49212001-02-02 Jakub Jelinek <jakub@redhat.com>
4922
4923 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
4924 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
4925 Remove.
4926 * call.c (convert_class_to_reference, build_user_type_conversion_1,
4927 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
4928
049f6ec9
MM
49292001-02-02 Mark Mitchell <mark@codesourcery.com>
4930
4931 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
4932 of macros used when compiling g++spec.c.
4933 * g++spec.c (lang_specific_driver): Link with the shared
4934 libgcc by default.
4935
718b8ea5
JM
49362001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
4937
4938 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
4939 make_reference_declarator, make_call_declarator), method.c
4940 (implicitly_declare_fn), parse.y (namespace_using_decl,
4941 notype_unqualified_id, expr_or_declarator, new_type_id,
4942 after_type_declarator, direct_after_type_declarator,
4943 notype_declarator, complex_notype_declarator,
4944 complex_direct_notype_declarator, qualified_id,
4945 notype_qualified_id, overqualified_id, direct_new_declarator,
4946 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
4947 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
4948 instead of build_parse_node.
4949
f2d1f0ba
KG
49502001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4951
4952 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
4953 (minus_one_node): Moved to top level gcc directory. Renamed
4954 to integer_minus_one_node.
4955
4956 * init.c (init_init_processing): Don't set minus_one_node.
4957 (build_vec_init): Use integer_minus_one_node.
4958
4959 * rtti.c (get_tinfo_decl_dynamic): Likewise.
4960
6001735e
JJ
49612001-01-28 Jakub Jelinek <jakub@redhat.com>
4962
4963 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
4964 identical and they would be replaced with constant, remove
4965 MODIFY_EXPR from the tree.
4966
c913b6f1
KG
49672001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4968
4969 * Make-lang.in: Remove all dependencies on defaults.h.
4970 * call.c: Don't include defaults.h.
4971 * decl.c: Likewise.
4972 * decl2.c: Likewise.
4973 * except.c: Likewise.
4974 * pt.c: Likewise.
4975 * rtti.c: Likewise.
4976 * tree.c: Likewise.
4977 * typeck.c: Likewise.
4978
324ffb8c
JJ
49792001-01-25 Jakub Jelinek <jakub@redhat.com>
4980
4981 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
4982 operators even in "C" linkage.
4983 * method.c (set_mangled_name_for_decl): Likewise.
4984 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
4985 overloaded operators in "C" linkage.
4986
4b2811e9
NS
49872001-01-24 Nathan Sidwell <nathan@codesourcery.com>
4988
4989 * pt.c (tsubst_decl): Remove IN_DECL parameter.
4990 (tsubst_arg_types): Check parameter is not void.
4991 (tsubst): Adjust tsubst_decl call.
4992
d8caf48e
NS
49932001-01-24 Nathan Sidwell <nathan@codesourcery.com>
4994
4995 * call.c (add_builtin_candidate): Quote std properly, from
4996 previous change.
4997
08511114
KL
49982001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4999
5000 * pt.c (check_explicit_specialization): Clone constructors and
5001 destructors.
5002
92ecdfb7
NS
50032001-01-23 Nathan Sidwell <nathan@codesourcery.com>
5004
5005 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
5006 indicates anything special about template depth. Make sure we
5007 only count the user visible template classes.
5008
4cff6abe
NS
50092001-01-23 Nathan Sidwell <nathan@codesourcery.com>
5010
5011 * call.c (build_conv): Typo in comment.
5012 (add_builtin_candidate): Add more explanation.
5013 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
5014 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
5015 when we have enumeral types.
5016 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
5017 candidates for relops and eqops.
5018 (joust): Simplify control flow. Allow a non-template user
5019 function to hide a builtin.
5020
62e4a758
NS
50212001-01-22 Nathan Sidwell <nathan@codesourcery.com>
5022
5023 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
5024 (more_specialized): Add deduction parameter.
5025 * call.c (joust): Adjust more_specialized call.
5026 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
5027 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
5028 (get_bindings_order): Remove.
5029 (get_bindings_real): Add DEDUCE parameter.
5030 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
5031 REFERENCE_TYPE jig for DEDUCE_ORDER.
5032 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
5033 maybe_adjust_types_for_deduction.
5034 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
5035 directly.
5036 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
5037 (check_cv_quals_for_unify): Use new unify qualifier flags.
5038 (unify): Clear new unify qualifier flags.
5039 (get_bindings_real): Add DEDUCE parameter.
5040 (get_bindings): Adjust call to get_bindings_real.
5041 (get_bindings_overload): Likewise.
5042 (most_specialized_instantiation): Adjust call to
5043 more_specialized.
5044
2a2a9e5a
JM
50452001-01-19 Jason Merrill <jason@redhat.com>
5046
5047 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
5048
5049 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
5050 -fnew-abi.
5051
60696c53
JM
50522001-01-19 Ute Pelkmann <scope.muc@t-online.de>
5053
5054 * decl2.c (arg_assoc_class): Fix double iteration logic.
5055
50562001-01-19 Jason Merrill <jason@redhat.com>
5057
5058 * init.c (build_delete): Always call convert_force to strip cv-quals.
5059
5060 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
5061 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
5062 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
5063
1e00f18c
NS
50642001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5065
5066 * search.c (get_vbase_1): Count only virtual bases.
5067
e13bced2
NS
50682001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5069
5070 * class.c (duplicate_tag_error): Robustify flag clearing.
5071
f9c244b8
NS
50722001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5073
5074 * cp-tree.h (lookup_template_class): Add complain parm.
5075 * decl.c (lookup_namespace_name): Adjust call to
5076 lookup_template_class.
5077 (make_typename_type): Likewise.
5078 * semantics.c (finish_template_type): Likewise.
5079 * pt.c (lookup_template_class): Add complain parm. Adjust.
5080 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
5081 (tsubst): Likewise.
5082
08c2df0f
NS
50832001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5084
5085 * pt.c (copy_default_args_to_explicit_spec): Preserve
5086 object's CV quals. Reorganize.
5087
f5ceeec8
NS
50882001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5089
5090 * typeck.c (build_modify_expr): Say `initialization' for
5091 INIT_EXPRs.
5092 * init.c (build_default_init): Convert to enumeral type, if
5093 needed.
5094
a1cfa434
JJ
50952001-01-18 Jakub Jelinek <jakub@redhat.com>
5096
5097 * parse.y (nomods_initdcl0): Properly set things up for
5098 initdcl0_innards.
5099
028d1f20
NS
51002001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5101
5102 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
5103 (type_unification_real): Set it.
5104 (unify): Use it.
5105
9f724b6a
NS
51062001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5107
5108 * decl.c (finish_destructor_body): Convert to vbase pointer here.
5109
522d6614
NS
51102001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5111
5112 * semantics.c (begin_class_definition): Check we're not inside a
5113 template parm list.
5114
7f805b8f
NS
51152001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5116
5117 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
5118 BASELINK_P.
5119
dc3799c1
KL
51202001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5121
5122 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
5123 * call.c (build_over_call): Add comment.
5124
bb37c4a5
DB
51252001-01-16 Daniel Berlin <dberlin@redhat.com>
5126
826840d9
RH
5127 * cvt.c (ocp_convert): Handle vector type conversion
5128 * typeck2.c (digest_init): Handle vector type initializations
9c96f3f8 5129
a26e7fb5
PE
51302001-01-16 Phil Edwards <pme@sources.redhat.com>
5131
5132 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
5133 was given.
5134
11b810f1
NS
51352001-01-15 Nathan Sidwell <nathan@codesourcery.com>
5136
5137 * pt.c (check_nontype_parm): Rename to ...
5138 (invalid_nontype_parm_type_p): ... here.
5139 (process_template_parm): Adjust.
5140 (convert_template_argument): Adjust.
5141
db3f4e4e
NS
51422001-01-15 Nathan Sidwell <nathan@codesourcery.com>
5143
5144 * pt.c (check_nontype_parm): New function.
5145 (process_template_parm): Use it.
5146 (convert_template_argument): Use it.
5147 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
5148 member.
5149
ea4f1fce
JO
51502001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
5151
5152 * tree.c: Add defaults.h
5153 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
5154 * Make-lang.in (cp/tree.o): Add defaults.h.
5155
1312c143
JM
51562001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
5157
5158 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
5159
4bc1997b
JM
51602001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
5161
5162 * g++.1: Change to be ".so man1/gcc.1".
5163
23de1fbf
JM
51642001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
5165
5166 * Make-lang.in (c++.info, c++.install-info): Build and install g++
5167 internals info.
5168 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
5169 ($(srcdir)/cp/g++int.info): New target.
5170 * gxxint.texi: Add info directory entry. Use @@ in email address.
5171 * .cvsignore: Update.
5172
0949f723
NS
51732001-01-12 Nathan Sidwell <nathan@codesourcery.com>
5174
5175 * typeck.c (build_c_cast): Do template processing earlier.
5176 Always pedwarn on array casts.
5177
a8641661
NS
51782001-01-12 Nathan Sidwell <nathan@codesourcery.com>
5179
5180 * friend.c (make_friend_class): Make sure a templated class is
5181 actually a template.
5182
844511c8
NS
51832001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5184
5185 * decl2.c (get_guard): Set linkage from guarded decl.
5186
96a1e32d
NS
51872001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5188
5189 * call.c (convert_default_arg): Check for unprocessed
5190 DEFAULT_ARG.
5191 * cp-tree.h (replace_defarg): Move to spew.c.
5192 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
5193 spew.c, which is where they really are.
5194 (done_pending_defargs): Declare.
5195 (unprocessed_defarg_fn): Declare.
5196 * decl.c (replace_defarg): Move to spew.c
5197 * parse.y (structsp): Call done_pending_defargs.
5198 * spew.c (defarg_fns): Rearrange list structure.
5199 (defarg_fnsdone): New static variable.
5200 (defarg_depfns): New static variable.
5201 (init_spew): Adjust.
5202 (add_defarg_fn): Store the type in TREE_TYPE.
5203 (do_pending_defargs): Detect and deal with ordering constraints
5204 and circularity.
5205 (done_pending_defargs): New function.
5206 (unprocessed_defarg_fn): New function.
5207 (replace_defarg): Moved from decl.c. Robustify. Don't save
5208 if circularity detected.
5209
34e225a3
NS
52102001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5211
5212 * pt.c (unify): Check array has a domain, before checking
5213 whether it is variable sized.
5214
98979fe0
NS
52152001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5216
5217 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
5218 parameters with pointers to arrays of unknown bound.
5219
b37bf5bd
NS
52202001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5221
5222 * parse.y (template_parm_header, template_spec_header): New
5223 reductions. Split out from ...
5224 (template_header): ... here. Use them.
5225 (template_template_parm): Use template_parm_header.
5226 * semantics.c (finish_template_template_parm): Add assert.
5227
6c418184
MM
52282001-01-10 Mark Mitchell <mark@codesourcery.com>
5229
792508b5
MM
5230 * mangle.c (write_builtin_type): Fix thinko.
5231
8afa707f
MM
5232 * pt.c (copy_default_args_to_explicit_spec_1): New function.
5233 (copy_default_args_to_explicit_spec): Likewise.
5234 (check_explicit_specialization): Use it.
5235
6c418184
MM
5236 * class.c (finish_struct_1): Remove last argument in call to
5237 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
5238 * decl.c (builtin_function): Likewise.
5239 (build_cp_library_fn): Likewise.
5240 (check_initializer): Likewise.
5241 (make_rtl_for_nonlocal_decl): Likewise.
5242 (cp_finish_decl): Likewise.
5243 (start_function): Likewise.
5244 * decl2.c (finish_anon_union): Likewise.
5245 * friend.c (do_friend): Likewise.
5246 * init.c (build_java_class_ref): Likewise.
5247 * method.c (make_thunk): Likewise.
5248 * pt.c (tsubst_friend_function): Likewise.
5249 * semantics.c (expand_body): Likewise.
5250
31d95fc6
MM
52512001-01-10 Mark Mitchell <mark@codesourcery.com>
5252
5253 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
5254 looking at DECL_CLONED_FUNCTION for non-functions.
5255
31bb3027
NS
52562001-01-10 Nathan Sidwell <nathan@codesourcery.com>
5257
5258 * error.c (dump_template_parameter): Use parm to determine how
5259 to print default value.
5260
fd3f43e7
NS
52612001-01-10 Nathan Sidwell <nathan@codesourcery.com>
5262
5263 * class.c (duplicate_tag_error): Clear more flags.
5264
042b4c4e
NS
52652001-01-10 Nathan Sidwell <nathan@codesourcery.com>
5266
5267 * call.c (build_new_method_call): Use binfo_for_vbase.
5268
a7537031
JM
52692001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5270
5271 * cp-tree.h (flag_cond_mismatch): Don't declare.
5272 * decl2.c (flag_cond_mismatch): Don't define.
5273 (lang_f_options): Remove cond-mismatch.
5274 (unsupported_options): Add cond-mismatch.
5275
186c0fbe
NS
52762001-01-09 Nathan Sidwell <nathan@codesourcery.com>
5277
5278 * class.c (handle_using_decl): Reject using of constructor name
5279 of sourcing class. Allow injecting of a method with same name as
5280 nested class. Fixup error messages.
5281
28ec8d6b
JM
52822001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
5283
5284 * decl2.c (lang_decode_option): Handle -Wformat=2.
5285
3febd123
NS
52862001-01-08 Nathan Sidwell <nathan@codesourcery.com>
5287
5288 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
5289 initialized_in_class.
5290 (DECL_DEFINED_IN_CLASS_P): Rename to ...
5291 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
5292 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
5293 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
5294 * pt.c (check_default_tmpl_args): Adjust for
5295 DECL_INITIALIZED_IN_CLASS_P.
5296 (instantiate_class_template): Likewise.
5297 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9c96f3f8 5298
3febd123
NS
5299 * class.c (finish_struct): Constify saved_filename.
5300
1f0d71c5
NS
53012001-01-08 Nathan Sidwell <nathan@codesourcery.com>
5302
5303 * class.c (duplicate_tag_error): Adjust diagnostic.
5304 (finish_struct): Locally set location to start of struct.
5305 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
5306
5bf15e84 53072001-01-08 Nathan Sidwell <nathan@codesourcery.com>
76191fdd
NS
5308
5309 * decl.c (struct binding_level): Adjust class_shadowed comments
5310 to reflect reality.
aba649ba 5311 (push_class_level_binding): Adjust comments to reflect reality.
76191fdd
NS
5312 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
5313 Don't set TREE_VALUE on the class_shadowed list.
5314
23d4e4cc 53152001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9c96f3f8
AJ
5316
5317 * decl2.c (acceptable_java_type): Allow references too.
23d4e4cc
APB
5318 * init.c (build_java_class_ref): When using the new ABI, search
5319 `class$' and have it mangled with `mangle_decl.'
5320 * mangle.c (write_java_integer_type_codes): New function.
5321 (write_builtin_type): Detect and mangle Java integer and real
5322 types.
9c96f3f8 5323
0c58da3e
MM
53242001-01-07 Mark Mitchell <mark@codesourcery.com>
5325
5326 * decl2.c (grokfield): Don't accept `asm' specifiers for
5327 non-static data members.
5328
45b8ddb4
KG
53292001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5330
5331 * expr.c (cplus_expand_expr): Don't reset `target'.
5332
96302433
NB
53332001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
5334
826840d9 5335 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
96302433 5336
220bce48
NS
53372001-01-05 Nathan Sidwell <nathan@codesourcery.com>
5338
5339 * parse.y (template_datadef): Check for error_mark_node.
5340
bfa2cb33
NS
53412001-01-05 Nathan Sidwell <nathan@codesourcery.com>
5342
5343 * cp-tree.def (DEFAULT_ARG): Make `x' class.
5344
eaa7c03f
JM
53452001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
5346
5347 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
5348 (record_builtin_type): Make non-static.
5349 (flag_short_double): Don't declare.
5350 (init_decl_processing): Remove the creation of many tree nodes now
5351 in c_common_nodes_and_builtins.
5352 (build_void_list_node): New function.
5353 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
5354 * cp-tree.h (flag_short_wchar): Don't declare.
5355
3af4c257
MM
53562001-01-04 Mark Mitchell <mark@codesourcery.com>
5357
5358 * call.c (build_conv): Don't use build1 for USER_CONV.
5359 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
5360
03dc0325
JM
53612001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
5362
5363 * lex.c (lang_init): Call c_common_lang_init.
5364
3c505507
NS
53652001-01-03 Nathan Sidwell <nathan@codesourcery.com>
5366
5367 * search.c (lookup_fnfields_here): Remove.
5368 (look_for_overrides_r): Use lookup_fnfields_1.
5369 Ignore functions from using declarations.
5370
03378143
NS
53712001-01-03 Nathan Sidwell <nathan@codesourcery.com>
5372
5373 Implement exceptions specifiers for implicit member functions.
5374 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
5375 * method.c (synthesize_exception_spec): New function.
5376 (locate_dtor, locate_ctor, locate_copy): New functions.
5377 (implicitly_declare_fn): Generate the exception spec too.
5378 * search.c (check_final_overrider): Check artificial functions
5379 too.
9c96f3f8 5380 * typeck2.c (merge_exception_specifiers): New function.
03378143 5381
f30efcb7
JM
53822001-01-03 Jason Merrill <jason@redhat.com>
5383
5384 * init.c (build_default_init): New fn.
5385 (perform_member_init): Split out from here.
5386 (build_new_1): Use it. Simplify initialization logic.
5387 (build_vec_init): Take an array, rather than a pointer and maxindex.
5388 Speed up simple initializations. Don't clean up if we're assigning.
5389 * cp-tree.h: Adjust.
5390 * decl2.c (do_static_initialization): Remove TREE_VEC case.
5391 * parse.y (new_initializer): Return void_zero_node for ().
5392 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
5393 * typeck2.c (digest_init): Only complain about user-written
5394 CONSTRUCTORs.
5395
a412bf75
MS
53962000-12-22 Mike Stump <mrs@wrs.com>
5397
5398 * decl2.c: (max_tinst_depth): Increase to 50.
5399
4890c2f4
MM
54002001-01-02 Mark Mitchell <mark@codesourcery.com>
5401
5402 * class.c (invalidate_class_lookup_cache): Zero the
5403 previous_class_values.
5404 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
5405 TREE_INT_CST_HIGH.
5406 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
5407 * decl.c (free_bindings): New variable.
5408 (push_binding): Don't create a new binding if we have one on the
5409 free list.
5410 (pop_binding): Put old bindings on the free list.
5411 (init_decl_processing): Use size_int, not build_int_2.
5412 Register free_bindings as a GC root.
5413 (cp_make_fname_decl): Use size_int, not build_int_2.
5414 (push_inline_template_parms_recursive): Likewise.
5415 (end_template_parm_list): Likewise.
5416 (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
5417 (tsubst_template_parms): Use size_int, not build_int_2.
5418 (tsubst): Likewise.
5419 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9c96f3f8 5420
4f78b9a8
RH
54212001-01-02 Richard Henderson <rth@redhat.com>
5422
5423 * parse.y (asm): Set ASM_INPUT_P.
5424
3c8c2a0a
JM
54252001-01-02 Jason Merrill <jason@redhat.com>
5426
96d6c610
JM
5427 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
5428 for v3 ABI.
5429
5430 * typeck.c (cp_truthvalue_conversion): New fn.
5431 * cvt.c (ocp_convert): Use it.
5432
5433 * cp-tree.h: Lose c-common.c decls.
5434
5435 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
5436 * cvt.c (convert_to_void): Use type_unknown_p.
5437
9c96f3f8 5438 * typeck.c (strip_all_pointer_quals): Also strip quals from
3c8c2a0a
JM
5439 pointer-to-member types.
5440
5441 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
5442 parse.y as C.
5443
5444 * call.c (build_new_method_call): Do evaluate the object parameter
5445 when accessing a static member.
5446 * typeck.c (build_component_ref): Likewise.
5447
d363e7bf
AJ
54482001-01-02 Andreas Jaeger <aj@suse.de>
5449
5450 * decl.c (cp_missing_noreturn_ok_p): New.
5451 (init_decl_processing): Set lang_missing_noreturn_ok_p.
5452
77f5250d
JJ
54532000-12-29 Jakub Jelinek <jakub@redhat.com>
5454
5455 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
5456
31a714f6
MM
54572000-12-29 Mark Mitchell <mark@codesourcery.com>
5458
5459 * class.c (pushclass): Remove #if 0'd code.
5460 * cp-tree.h (overload_template_name): Remove.
5461 * decl.c (store_bindings): Simplify.
5462 (pop_from_top_level): Likewise.
5463 * pt.c (overload_template_name): Remove.
d363e7bf 5464 (instantiate_decl): Don't call push_to_top_level if it's not
31a714f6
MM
5465 needed.
5466
414ea4aa
MM
54672000-12-28 Mark Mitchell <mark@codesourcery.com>
5468
5469 * pt.c (register_local_specialization): Don't return a value.
5470 (lookup_template_class): Use move-to-front heuristic when looking
5471 up template instantiations.
5472 (instantiate_decl): Only push_to_top_level when we're actually
5473 going to instantiate the template.
5474
6f18f7e9
HPN
54752000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
5476
5477 * search.c (binfo_for_vtable): Return least derived class, not
5478 most. Handle secondary vtables.
5479
e5214479
JM
54802000-12-22 Jason Merrill <jason@redhat.com>
5481
3c8c2a0a
JM
5482 * pt.c (more_specialized): Don't optimize len==0.
5483 (fn_type_unification): If we're adding the return type, increase len.
5484
ebb1abc3
JM
5485 * typeck.c (build_binary_op): Fix pmf comparison logic.
5486
c939ca5f
JM
5487 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
5488 DECL_STATIC_FUNCTION_P.
5489
e6fe680d
JM
5490 * semantics.c (genrtl_finish_function): Don't try to jump to
5491 return_label unless it exists.
5492
e5214479
JM
5493 In partial ordering for a call, ignore parms for which we don't have
5494 a real argument.
5495 * call.c (joust): Pass len to more_specialized.
5496 (add_template_candidate_real): Strip 'this', pass len.
5497 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
5498 (get_bindings_order): New fn. Pass len down.
5499 (get_bindings_real): Strip 'this', pass len.
5500 (fn_type_unification): Likewise.
5501 (type_unification_real): Succeed after checking 'len' args.
5502 (most_specialized_instantiation): Lose explicit_args parm.
d363e7bf 5503 * class.c (resolve_address_of_overloaded_function): Strip 'this',
e5214479
JM
5504 pass len.
5505
55062000-12-21 Jason Merrill <jason@redhat.com>
477f6664
JM
5507
5508 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
5509 DECL_TEMPLATE_RESULT.
5510
5511 * search.c (lookup_field_r): Call lookup_fnfields_1, not
5512 lookup_fnfields_here.
5513
5514 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
5515
5516 * call.c (build_object_call): Also allow conversions that return
5517 reference to pointer to function.
5518 (add_conv_candidate): Handle totype being ref to ptr to fn.
5519 (build_field_call): Also allow members of type reference to function.
5520 Lose support for calling pointer to METHOD_TYPE fields.
5521
5522 * error.c (dump_expr): Handle *_CAST_EXPR.
5523
5524 * typeck2.c (build_scoped_ref): Always convert to the naming class.
5525
5526 * tree.c (break_out_cleanups): Lose.
5527 * cp-tree.h: Remove prototype.
5528 * typeck.c (build_component_ref): Don't break_out_cleanups.
5529 (build_compound_expr): Likewise.
5530 * semantics.c (finish_expr_stmt): Likewise.
5531
3e4d04a1
RH
55322000-12-20 Richard Henderson <rth@redhat.com>
5533
5534 * cp-tree.h: Update declarations.
5535 * decl.c (finish_case_label): Return the new stmt node.
5536 * semantics.c (finish_goto_stmt): Likewise.
5537 (finish_expr_stmt, finish_return_stmt): Likewise.
5538 (finish_break_stmt, finish_continue_stmt): Likewise.
5539 (finish_asm_stmt): Likewise.
5540 * parse.y (already_scoped_stmt): Set STMT_LINENO.
5541 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
5542 (simple_if, simple_stmt): Return the new stmt node.
5543 (save_lineno): New.
5544
20d380b1
JM
55452000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
5546
5547 * cp-tree.h: Don't declare warn_long_long.
5548
221c7a7f
KL
55492000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5550
5551 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
5552 IS_AGGR_TYPE.
5553
b429fdf0
KL
55542000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5555
5556 * pt.c (unify): Handle when both ARG and PARM are
5557 BOUND_TEMPLATE_TEMPLATE_PARM.
5558
c2beae77
KL
55592000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5560
5561 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
5562 DECL_TEMPLATE_PARM_P.
5563
c3e899c1
JM
55642000-12-15 Jason Merrill <jason@redhat.com>
5565
96790071
JM
5566 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
5567
8d42565b
JM
5568 * init.c (build_new_1): Don't strip quals from type.
5569
fab09a24
JM
5570 * decl.c (pushdecl): Don't check for linkage on a non-decl.
5571
c3e899c1
JM
5572 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
5573
5574 * call.c (build_new_function_call): Lose space before paren in
5575 error message.
5576 (build_new_method_call): Likewise.
5577
5578 * typeck2.c (build_m_component_ref): Propagate quals from datum.
5579
edac124d
KL
55802000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5581
5582 * pt.c (check_explicit_specialization): Propagate default
5583 function arguments to explicit specializations.
5584
31750649 55852000-12-13 DJ Delorie <dj@redhat.com>
8d3b081e
DD
5586
5587 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
5588 and <? operators.
5589
5e818b93
JM
55902000-12-08 Jason Merrill <jason@redhat.com>
5591
5592 * error.c (dump_function_name): Don't let the user see __comp_ctor.
5593
5594 Clean up copy-initialization in overloading code.
5595 * call.c (build_user_type_conversion_1): Die if we are asked to
5596 convert to the same or a base type.
5597 (implicit_conversion): Avoid doing so. Lose reference binding code.
5598 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
5599 direct-initialization. Also do direct-init part of copy-init.
5600 (build_user_type_conversion): Don't provide context to convert_like.
5601 * cvt.c (ocp_convert): build_user_type_conversion will now provide
5602 the constructor call for copy-init.
5603
5604 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
5605 instantiation of a member template.
5606 (do_decl_instantiation): Not here.
5607
38da6039
NS
56082000-12-07 Nathan Sidwell <nathan@codesourcery.com>
5609
5610 * class.c (check_field_decls): Don't special case anonymous
5611 fields in error messages.
c9407e4c 5612 (note_name_declared_in_class): Use %D on diagnostic.
d363e7bf 5613
38da6039
NS
5614 * tree.c (pod_type_p): Use strip_array_types.
5615 (cp_valid_lang_attribute): Likewise.
5616 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
5617 multiple evaluations.
d363e7bf 5618 (cp_has_mutable_p): Use strip_array_types.
38da6039 5619
a11d04b5
NS
56202000-12-07 Nathan Sidwell <nathan@codesourcery.com>
5621
5622 * cp-tree.h (sufficient_parms_p): Declare new function.
5623 * call.c (sufficient_parms_p): New function, broken out of ...
5624 (add_function_candidate): ... here. Use it.
5625 (add_conv_candidate): Use it.
5626 * decl.c (grok_ctor_properties): Use it.
5627
5eec2847
JJ
56282000-12-07 Jakub Jelinek <jakub@redhat.com>
5629
5630 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
5631
c907e684
JM
56322000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
5633
5634 * decl2.c (lang_decode_option): Handle -Wformat-security.
5635
74601d7c
KL
56362000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5637
5638 * pt.c (verify_class_unification): New function.
5639 (get_class_bindings): Use it.
5640 (try_class_unification): Tidy.
5641 (unify): Handle when argument of a template-id is not
5642 template parameter dependent.
5643 (template_args_equal): Handle when TREE_CODE's do not match.
5644
8954e858
AO
56452000-12-06 Alexandre Oliva <aoliva@redhat.com>
5646
5647 * lang-specs.h (c++): When invoking the stand-alone preprocessor
5648 for -save-temps, pass all relevant -Defines to it, and then don't
5649 pass them to cc1plus.
5650
3dc9aec6
WC
56512000-12-05 Will Cohen <wcohen@redhat.com>
5652
5653 * decl.c (finish_case_label): Cleared
5654 more_cleanups_ok in surrounding function scopes.
5655 (define_label): Likewise.
5656
cbb40945
NS
56572000-12-05 Nathan Sidwell <nathan@codesourcery.com>
5658
5659 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
5660 (get_matching_virtual): Remove.
5661 (look_for_overrides): Declare new function.
5662 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
5663 DECL_VINDEX here.
5664 * class.c (check_for_override): Move base class iteration code
5665 to look_for_overrides.
5666 * search.c (next_baselink): Remove.
5667 (get_virtuals_named_this): Remove.
5668 (get_virtual_destructor): Remove.
5669 (tree_has_any_destructors_p): Remove.
5670 (struct gvnt_info): Remove.
5671 (check_final_overrider): Remove `virtual' from error messages.
5672 (get_matching_virtuals): Remove. Move functionality to ...
5673 (look_for_overrides): ... here, and ...
5674 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
5675 to be overriding.
5676
61402b80
NS
56772000-12-05 Nathan Sidwell <nathan@codesourcery.com>
5678
5679 * typeck.c (get_delta_difference): If via a virtual base,
5680 return zero.
5681 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
5682 adjustment.
5683
39abc9a6
RH
56842000-12-04 Richard Henderson <rth@redhat.com>
5685
5686 * error.c (dump_tree): Use output_add_string not OB_PUTS.
5687
c00996a3
JM
56882000-12-04 Jason Merrill <jason@redhat.com>
5689
5690 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
d363e7bf 5691 (write_builtin_type): Pass intSI_type_node and the like through
c00996a3
JM
5692 type_for_mode.
5693 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
5694 Pass intSI_type_node and the like through type_for_mode.
5695 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
5696 * pt.c (tsubst, unify): Likewise.
5697 * tree.c (walk_tree): Likewise.
5698 * error.c (dump_type): Likewise.
5699 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
d363e7bf 5700
c00996a3
JM
5701 * Make-lang.in: Tweak top comment for emacs.
5702 (cp/TAGS): Restore.
5703
5704 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
5705
c00996a3
JM
5706 * class.c (clone_function_decl): Robustify.
5707
57082000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
5709
5710 * decl.c (store_bindings): Only search in the non modified
5711 old_bindings for duplicates.
5712
00bb3dad
NS
57132000-12-04 Nathan Sidwell <nathan@codesourcery.com>
5714
5715 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
5716 TYPE_POLYMORPHIC_P.
d363e7bf 5717
00bb3dad
NS
5718 * typeck.c (build_static_cast): Remove unused variable.
5719
dc957d14
KL
57202000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5721
5722 * pt.c: Fix typo in comment.
5723
4d808927
JM
57242000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
5725
5726 * decl2.c (warn_format): Remove definition.
5727 (lang_decode_option): Handle -Wformat-nonliteral,
5728 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
5729
5fd8e536
JM
57302000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
5731
5732 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
5733 (init_decl_processing): Don't create string_type_node,
5734 const_string_type_node, wint_type_node, intmax_type_node,
5735 uintmax_type_node, default_function_type, ptrdiff_type_node and
5736 unsigned_ptrdiff_type_node. Adjust position of call to
5737 c_common_nodes_and_builtins.
5738 (identifier_global_value): New function.
5739
13f9714b
NS
57402000-12-01 Nathan Sidwell <nathan@codesourcery.com>
5741
5742 * call.c (standard_conversion): Reject pointer to member
5743 conversions from ambiguous, inaccessible or virtual bases.
5744 * typeck.c (build_static_cast): Don't check pointers to members
5745 specially.
5746
31b1b957
NS
57472000-11-30 Nathan Sidwell <nathan@codesourcery.com>
5748
5749 * method.c (do_build_copy_constructor): Preserve cv
5750 qualifications when accessing source object members.
5751 (do_build_assign_ref): Likewise. Remove separate diagnostics for
5752 unnamed fields.
5753
717e3f73
NS
57542000-11-30 Nathan Sidwell <nathan@codesourcery.com>
5755
5756 * method.c (do_build_assign_ref): Construct appropriately
5757 CV-qualified base reference. Don't allow const casts in base
5758 conversion.
5759
2c92b94d
NS
57602000-11-30 Nathan Sidwell <nathan@codesourcery.com>
5761
5762 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
5763 incomplete return type.
5764
bb92901d
NS
57652000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5766
5767 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
5768 * semantics.c (finish_base_specifier): Accept a _TYPE not a
5769 _DECL.
5770
2f3608c3
NS
57712000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5772
5773 * spew.c (yyerror): Cope if yylval.ttype is NULL.
5774
eeb75383
NS
57752000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5776
5777 * decl.c (grokdeclarator): Diagnose undefined template contexts.
5778
5ee4cc26
NS
57792000-11-28 Nathan Sidwell <nathan@codesourcery.com>
5780
5781 * decl.c (grokdeclarator): Do type access control on friend
5782 class.
5783
76e57b45
NS
57842000-11-27 Nathan Sidwell <nathan@codesourcery.com>
5785
5786 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
5787 bison parser ickiness.
5788 * pt.c (tsubst_friend_function): Enter namespace scope when
5789 tsubsting the function name.
5790 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
5791
f9825168
NS
57922000-11-27 Nathan Sidwell <nathan@codesourcery.com>
5793
5794 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
5795 * cvt.c (cp_convert_to_pointer): Add force parameter.
5796 Allow conversions via virtual base if forced.
5797 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
5798 (ocp_convert): Likewise.
5799 * search.c (binfo_from_vbase): Return the virtual base's binfo.
5800 * typeck.c (get_delta_difference): Adjust handling of virtual
5801 bases.
5802
9ccb25d5
MM
58032000-11-26 Mark Mitchell <mark@codesourcery.com>
5804
5805 * tree.c (struct list_hash): Remove.
5806 (list_hash_table): Make it be an htab.
5807 (struct list_proxy): New type.
5808 (list_hash_eq): New function.
5809 (list_hash_pieces): Renamed from ...
5810 (list_hash): ... this.
5811 (list_hash_lookup): Remove.
5812 (list_hash_add): Remove.
5813 (hash_tree_cons): Use the generic hashtable.
5814 (mark_list_hash): Remove.
5815 (init_tree): Create the hashtable.
5816
9399bad3
JM
58172000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
5818
5819 * method.c (build_mangled_C9x_name): Rename to
5820 build_mangled_C99_name. Change C9X references in comments to
5821 refer to C99.
5822
2f401cc8
NS
58232000-11-24 Nathan Sidwell <nathan@codesourcery.com>
5824
5825 * parse.y (unary_expr): Move VA_ARG from here ...
5826 (primary): ... to here.
5827
3d7e9ba4
NS
58282000-11-24 Nathan Sidwell <nathan@codesourcery.com>
5829
5830 * semantics.c (finish_id_expr): If type is error_mark, return
5831 error_mark.
5832
ab097535
NS
58332000-11-23 Nathan Sidwell <nathan@codesourcery.com>
5834
5835 * pt.c (lookup_template_class): Simplify loop exit constructs.
5836 Cope when there is no partial instantiation of a template
5837 template member.
5838
9196ece5
R
5839Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
5840
5841 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
5842
cac78ea2
MM
58432000-11-22 Mark Mitchell <mark@codesourcery.com>
5844
6e1b44bc
MM
5845 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
5846 prefix.
5847
cac78ea2
MM
5848 * pt.c (do_decl_instantiate): Explicitly clone constructors and
5849 destructors that haven't already been cloned.
5850
3aac38d7
RH
58512000-11-20 Richard Henderson <rth@redhat.com>
5852
5853 * parse.y (yyparse_1): Rename the parser entry point.
5854
58552000-11-20 Alex Samuel <samuel@codesourcery.com>
beac9b93
AS
5856
5857 * mangle.c (write_name): Use <unscoped-name> for names directly in
5858 function scope.
5859 (write_unscoped_name): Accept names directly in function scope.
d363e7bf 5860
447306fa
NS
58612000-11-20 Nathan Sidwell <nathan@codesourcery.com>
5862
5863 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
5864 * parse.y (extdef): Add EXPORT reduction.
5865 * spew.c (yylex): Don't skip export here.
5866
2650255a
MM
58672000-11-19 Mark Mitchell <mark@codesourcery.com>
5868
5869 * decl.c (init_decl_processing): Correct name of pure virtual
5870 function under the new ABI.
5871 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
5872 (throw_bad_typeid): Likewise for bad typeid function.
5873
0657c69c
MM
58742000-11-18 Mark Mitchell <mark@codesourcery.com>
5875
04f3dc2b
MM
5876 * decl.c (grokparms): Don't even function types of `void' type,
5877 either.
5878 * mangle.c (write_type): Don't crash when confronted with the
5879 error_mark_node.
5880
0657c69c
MM
5881 * decl.c (grokparms): Don't create parameters of `void' type.
5882
a8a05998
ZW
58832000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
5884
5885 * lex.c (mark_impl_file_chain): Delete.
5886 (init_parse): Remove call to ggc_add_string_root. No need to
5887 ggc_strdup a string constant. Do not add impl_file_chain to GC
5888 roots.
5889 (handle_pragma_implementation): No need to ggc_strdup main_filename.
5890
35728a80
NS
58912000-11-17 Nathan Sidwell <nathan@codesourcery.com>
5892
5893 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
5894
5cce22b6
NS
58952000-11-17 Nathan Sidwell <nathan@codesourcery.com>
5896
5897 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
5898 * decl.c (grokdeclarator): Don't reject void parms here.
5899 (require_complete_types_for_parms): Simplify, use
5900 complete_type_or_else.
5901 (grokparms): Remove bitrot. Remove funcdef parm.
5902 Deal with ellipsis parm lists here.
5903 * semantics.c (finish_parmlist): Don't append void_list_node
5904 here. Set PARMLIST_ELLIPSIS_P.
5905
146c8d60
NS
59062000-11-17 Nathan Sidwell <nathan@codesourcery.com>
5907
5908 * typeck2.c (incomplete_type_error): Reorganise to avoid
5909 excessive diagnostics.
5910
520a57c8
ZW
59112000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
5912
5913 * lex.c (struct impl_files, internal_filename): Constify a char *.
5914
43048a06
MM
59152000-11-16 Mark Mitchell <mark@codesourcery.com>
5916
5917 * mangle.c (write_special_name_constructor): Don't generate
5918 assembler junk when confronted with an old-style constructor.
5919 (write_special_name_destructor): Likewise.
5920 (mangle_decl_string): Do it here instead.
5921
cdb71673
NS
59222000-11-16 Nathan Sidwell <nathan@codesourcery.com>
5923
5924 * call.c (op_error): Make error messages clearer.
5925
62136084
MM
59262000-11-15 Mark Mitchell <mark@codesourcery.com>
5927
5928 * decl.c (wrapup_globals_for_namespace): Don't mark things
5929 TREE_ASM_WRITTEN when they're not.
5930
ee3400e8
JM
59312000-11-15 Jason Merrill <jason@redhat.com>
5932
5933 * typeck2.c (friendly_abort): Uncount the error before handing
5934 off to fancy_abort.
5935
71631a1f
NS
59362000-11-15 Nathan Sidwell <nathan@codesourcery.com>
5937
5938 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
5939
79cda2d1
MM
59402000-11-14 Mark Mitchell <mark@codesourcery.com>
5941
5942 * class.c (build_vtbl_initializer): Fix typo in comment.
5943 * typeck.c (expr_sizeof): Don't crash on errors.
5944
2567bc56
JW
59452000-11-14 Jim Wilson <wilson@redhat.com>
5946
5947 * lang-specs.h: Add %2 after %(cc1_options).
5948
8422942c
RH
59492000-11-14 Richard Henderson <rth@redhat.com>
5950
5951 * typeck.c (c_sizeof): Be strict about casting result value
5952 back to c_size_type_node.
5953 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
5954
19552aa5
JM
59552000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5956
5957 * typeck.c (build_unary_op): Use boolean_increment from
5958 c-common.c, moving the relevant code there.
5959
d96a6d1a
JM
59602000-11-11 Jason Merrill <jason@redhat.com>
5961
5962 * typeck.c (mark_addressable): Don't call put_var_into_stack.
492cca24
JM
5963
5964 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
5965 in inlines.
5966
4e135bdd
KG
59672000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5968
5969 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
5970 * lex.c (copy_lang_decl): Likewise.
5971
0a7394bc
MM
59722000-11-09 Mark Mitchell <mark@codesourcery.com>
5973
13507bd8
MM
5974 * dump.c (cp_dump_tree): Don't dump function bodies here.
5975
0a7394bc
MM
5976 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
5977 (dump.o): Update dependency list.
5978 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
5979 (flag_dump_translation_unit): Likewise.
5980 (CP_TYPE_QUALS): Adjust definition.
5981 (DECL_C_BIT_FIELD): Remove.
5982 (SET_DECL_C_BIT_FIELD): Likewise.
5983 (CLEAR_DECL_C_BIT_FIELD): Likewise.
5984 (add_maybe_template): Likewise.
5985 (strip_array_types): Likewise.
5986 (dump_node_to_file): Likewise.
5987 (cp_dump_tree): New function.
5988 * decl.c (init_decl_processing): Set lang_dump_tree.
5989 * decl2.c (flag_dump_translation_unit): Remove.
5990 * dump.c: Move most of it to ../c-dump.c.
5991 (cp_dump_tree): New function.
5992 * pt.c (add_maybe_template): Remove.
5993 * typeck.c (strip_array_types): Likewise.
a8a05998 5994
5362b086
EC
59952000-11-07 Eric Christopher <echristo@redhat.com>
5996
492cca24
JM
5997 * decl.c (init_decl_processing): Change definition of
5998 __wchar_t to wchar_t. Remove artificial declaration of
5999 wchar_t.
6000 * lex.c: Change instances of __wchar_t to wchar_t.
5362b086 6001
5361cbb7
NS
60022000-11-09 Nathan Sidwell <nathan@codesourcery.com>
6003
6004 * lex.c (do_identifier): Don't lookup_name for operators.
6005 * parse.y (operator): Save looking_for_typename.
6006 (unoperator): Restore it.
6007 * spew.c (frob_opname): Use nth_token for lookahead.
6008
36791f1e
NS
60092000-11-08 Nathan Sidwell <nathan@codesourcery.com>
6010
6011 * decl.c (grok_op_properties): Always use coerce_new_type and
6012 coerce_delete_type.
6013 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
6014 exception specification. Tidy up.
6015 (coerce_delete_type): Preserve exception specification. Tidy up.
6016
961192e1
JM
60172000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
6018
6019 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
6020 (push_binding_level), error.c (cp_tree_printer), pt.c
6021 (process_partial_specialization, tsubst_template_arg_vector),
6022 search.c (lookup_member): Use memset () instead of bzero ().
6023
d48ebde1
NS
60242000-11-07 Nathan Sidwell <nathan@codesourcery.com>
6025
6026 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
6027
436a88a6
JM
60282000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
6029
6030 * Make-lang.in (c++.distdir): Remove.
6031
7a4e5091
MM
60322000-11-04 Mark Mitchell <mark@codesourcery.com>
6033
6034 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
6035 declarations from different namespaces to be combined.
6036
0e9295cf
ZW
60372000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
6038
6039 * decl.c: Include tm_p.h.
6040
da61dec9
JM
60412000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
6042
6043 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
6044
9473c522
JM
60452000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
6046
6047 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
6048 (build_overload_value), repo.c (open_repo_file), xref.c
6049 (open_xref_file): Use strchr () and strrchr () instead of index ()
6050 and rindex ().
6051
b0b3afb2
BS
60522000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
6053
6054 * call.c (build_over_call): Call fold on the CALL_EXPR.
6055
faafaee6
GDR
60562000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
6057
6058 * error.c (dump_template_decl): Separate template hearders with
6059 space not comma.
6060
761f0855
GDR
60612000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
6062
6063 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
6064 TS_* flags with corresponding TFF_*. Adjust prototypes of
6065 functions (which used to take a tree_string_flags) to take an int.
6066
6067 * cp-tree.h (enum tree_string_flags): Remove
6068 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
6069 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
6070 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
6071 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
6072 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
6073 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
6074 (type_as_string, decl_as_string, expr_as_string,
6075 context_as_string): Adjust prototype.
6076
6077 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
6078 instead of TS_PLAIN.
6079
6080 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
6081 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
6082 plain `0'.
6083
ad50e811
MM
60842000-10-30 Mark Mitchell <mark@codesourcery.com>
6085
6086 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
6087 (linkage_kind): New enumeration.
6088 (decl_linkage): New function.
6089 * decl2.c (comdat_linkage): Extend comment.
6090 * error.c (dump_function_decl): Print the arguments used to
6091 instantiate a template, even when not printing the type of the
6092 function.
6093 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
6094 not TREE_PUBLIC, to test for external linkage.
6095 * tree.c (decl_linkage): New function.
6096
930cd796
MM
60972000-10-28 Mark Mitchell <mark@codesourcery.com>
6098
6099 * pt.c (instantiate_decl): Always instantiate static data members
6100 initialized in-class.
6101
b8dad04b
ZW
61022000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
6103
6104 * Make-lang.in: Move all build rules here from Makefile.in,
6105 adapt to new context. Wrap all rules that change the current
6106 directory in parentheses. Expunge all references to $(P).
6107 When one command depends on another and they're run all at
6108 once, use && to separate them, not ;. Add OUTPUT_OPTION to
6109 all object-file generation rules. Delete obsolete variables.
6110
6111 * Makefile.in: Delete.
6112 * config-lang.in: Delete outputs= line.
6113
5f9cd837
GDR
61142000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
6115
6116 * error.c (dump_function_decl): Print no space between
6117 `ptr-operator' the `type-specifier' of the return type.
6118 (dump_type_prefix): Make sure we put space at the appropriate
5362b086 6119 place.
5f9cd837 6120
6c6ed0ef
JM
61212000-10-23 Jason Merrill <jason@redhat.com>
6122
6123 * call.c (equal_functions): Also call decls_match for extern "C" fns.
6124
61252000-10-22 Jason Merrill <jason@redhat.com>
6126
6127 * call.c (build_conditional_expr): Use ocp_convert to force
6128 rvalue conversion.
6129
e36308b0
MM
61302000-10-22 Mark Mitchell <mark@codesourcery.com>
6131
583ca5a0
MM
6132 * call.c (standard_conversion): Use RVALUE_CONVs for all
6133 expressions that satisfy lvalue_p, not just those that satisfy
6134 real_lvalue_p.
6135
f9808f81
MM
6136 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
6137
5362b086 6138 * typeck.c (c_sizeof): Return an expression of `size_t' type,
e36308b0
MM
6139 not one with TYPE_IS_SIZETYPE set.
6140 (dubious_conversion_warnings): Remove special-case code.
6141
3b9ae6f0
GK
61422000-10-21 Geoffrey Keating <geoffk@cygnus.com>
6143
7a0f14e5
GK
6144 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
6145 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
6146 (dump_type_prefix): Print vector-of-int as 'int vector'.
6147 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
6148 * tree.c (walk_tree): Handle VECTOR_TYPE.
6149
3b9ae6f0 6150 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
5362b086 6151
aca77bd1
JM
61522000-10-21 Jason Merrill <jason@redhat.com>
6153
6154 * parse.y (operator): Set got_object from got_scope.
6155 Set looking_for_typename.
6156 * decl.c (lookup_name_real): Clear val after setting from_obj.
6157 Reorganize diagnostic.
6158
ba523395
JM
61592000-10-20 Jason Merrill <jason@redhat.com>
6160
6161 * tree.c (walk_tree): Don't walk into default args.
6162
6163 * error.c (dump_expr): Use host_integerp.
6164
2e44948d
DE
61652000-10-20 David Edelsohn <edelsohn@gnu.org>
6166
6167 * typeck2.c (abstract_virtuals_error): Use "because" instead of
6168 "since" in error message.
6169
44475138
RK
6170Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6171
6172 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
6173
11306230
JO
61742000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
6175
6176 * decl.c (revert_static_member_fn): Fixed typo.
6177
97ba1e3c
MM
61782000-10-19 Mark Mitchell <mark@codesourcery.com>
6179
c20118a8
MM
6180 * class.c (subobject_offset_fn): New type.
6181 (dfs_record_base_offsets): Remove.
6182 (record_base_offsets): Likewise.
6183 (dfs_search_base_offsets): Likewise.
6184 (record_subobject_offset): New function.
6185 (check_subobject_offset): Likewise.
6186 (walk_subobject_offsets): Likewise.
6187 (record_subobject_offsets): Likewise.
6188 (layout_conflict_p): Reimplement.
6189 (layout_nonempty_base_or_field): Correct handling of type
6190 conflicts during layout.
6191 (layout_empty_base): Likewise.
6192 (build_base_field): Adjust to handle new representation of empty
6193 base offset table.
6194 (build_base_fields): Likewise.
6195 (layout_virtual_bases): Likewise.
6196 (splay_tree_compare_integer_csts): New function.
6197 (layout_class_type): Use a splay_tree, rather than a varray, to
6198 represent the offsets of empty bases.
5362b086 6199
97ba1e3c
MM
6200 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
6201 * decl.c (select_decl): Don't return declarations that are
6202 DECL_ANTICIPATED.
6203
6bcedb4e
MM
62042000-10-18 Mark Mitchell <mark@codesourcery.com>
6205
6206 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
6207 (fake_std_node): New macro.
6208 * decl.c (in_std): Rename to ...
6209 (in_fake_std): ... this.
6210 (flag_no_builtin): Remove.
6211 (flag_no_nonansi_builtin): Likewise.
6212 (walk_namespaces_r): Use fake_std_node.
6213 (push_namespace): Use std_identifier.
6214 (pop_namespace): Use in_fake_std.
6215 (lookup_name_real): Use fake_std_node.
6216 (init_decl_processing): When -fhonor-std, create the `std'
6217 namespace. Don't create a dummy fake_std_node in that case.
6218 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
6219 (builtin_function): Put builtins whose names don't begin
6220 with `_' in the std namespace.
6221 * decl2.c (flag_no_builtin): Remove.
6222 (flag_no_nonansi_builtin): Likewise.
6223 (set_decl_namespace): Use fake_std_node.
6224 (validate_nonmember_using_decl): Likewise.
6225 (do_using_directive): Likewise.
6226 (handle_class_head): Likewise.
6227 * dump.c (dequeue_and_dump): Likewise.
6228 * except.c (init_exception_processing): Use std_identifier.
6229 * init.c (build_member_call): Use fake_std_node.
6230 * rtti.c (init_rtti_processing): Use std_identifier.
5362b086 6231
67673f5c
MM
62322000-10-17 Mark Mitchell <mark@codesourcery.com>
6233
6234 * cp-tree.h (back_end_hook): Remove declaration.
6235 * decl2.c (back_end_hook): Remove definition.
6236
6237 * dump.c (dequeue_and_dump): Dump TREE_USED.
6238
8fef2e47
BL
6239Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
6240
6241 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
6242
652469d0
JM
62432000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6244
6245 * decl.c (WINT_TYPE): Define.
6246 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
6247 c_size_type_node, signed_size_type_node and wint_type_node.
6248
74ff4629
JM
62492000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6250
6251 * decl2.c (warn_missing_format_attribute): New variable.
6252 (lang_decode_option): Decode -Wmissing-format-attribute.
6253
634790f4
MM
62542000-10-16 Mark Mitchell <mark@codesourcery.com>
6255
6256 * typeck.c (qualify_type): Remove.
6257 (composite_pointer_type): Fix handling of conversions to `cv void*'.
6258
bb12da9d
KG
62592000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6260
6261 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
6262
4b945402
KG
62632000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6264
6265 * Makefile.in (parse.c, parse.h): Create atomically.
6266
1f8f4a0b
MM
62672000-10-12 Mark Mitchell <mark@codesourcery.com>
6268
6269 * class.c (current_obstack): Remove.
6270 * decl.c (ggc_p): Remove.
6271 (start_decl): Don't use decl_tree_cons.
6272 (grokdeclarator): Don't use build_decl_list.
6273 (start_function): Don't use decl_tree_cons.
6274 (finish_function): Don't mess with obstacks.
6275 * decl2.c (grok_x_components): Don't use build_decl_list.
6276 * lex.c (make_call_declarator): Don't call decl_tree_cons.
6277 (implicitly_declare_fn): Don't call build_decl_list.
6278 * parse.y (frob_specs): Don't call build_decl_list or
6279 decl_tree_cons.
6280 (expr_or_declarator_intern): Don't call decl_tree_cons.
6281 (primary): Don't call build_decl_list.
6282 (fcast_or_absdcl): Likewise.
6283 (typed_declspecs): Don't call decl_tree_cons.
6284 (reserved_declspecs): Don't call build_decl_list.
6285 (declmods): Likewise.
6286 (reserved_typespecquals): Likewise.
6287 (aggr): Likewise.
6288 (new_type_id): Likewise.
6289 (cv_qualifiers): Likewise.
6290 (after_type_declarator_intern): Likewise.
6291 (notype_declarator_intern): Likewise.
6292 (absdcl_intern): Likewise.
6293 (named_parm): Likewise.
6294 * pt.c (most_specialized_class): Likewise.
6295 * repo.c (temporary_obstack): Make it a structure, not a pointer.
6296 (init_repo): Initialize it.
6297 * search.c (current_obstack): Remove.
6298 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
5362b086 6299
8dc54971
RH
63002000-10-09 Richard Henderson <rth@cygnus.com>
6301
6302 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
6303 (c++ language support bits for libgcc): Remove.
6304 (c++.clean): Remove cplib2.txt cleanup.
6305 * config-lang.in (headers, lib2funcs): Remove.
6306
6307 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
6308 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
6309 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
6310 * inc/new.h, inc/typeinfo: Remove files.
6311
b15ad712
JM
63122000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
6313
6314 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
6315 defined.
6316 (init_decl_processing): Initialize intmax_type_node and
6317 uintmax_type_node.
6318
156ce211
RH
63192000-10-06 Richard Henderson <rth@cygnus.com>
6320
6321 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
6322 (original_result_rtx): Remove.
6323 * decl.c (save_function_data): Don't clear x_result_rtx.
6324 (mark_lang_function): Don't mark it either.
6325 * expr.c (fixup_result_decl): Remove.
6326 * semantics.c (genrtl_named_return_value): Frob the return decl
6327 before calling emit_local_var.
6328 (genrtl_finish_function): Don't call fixup_result_decl.
6329 Always emit the jump to return_label.
6330
92777ce4
NS
63312000-10-06 Nathan Sidwell <nathan@codesourcery.com>
6332
6333 * pt.c (lookup_template_class): Set current access for enum.
6334 (tsubst_enum): Set file & line for enum decl.
5362b086 6335
92777ce4
NS
6336 * spew.c (yylex): Remove unused variable.
6337
63c16fc5
RH
63382000-10-05 Richard Henderson <rth@cygnus.com>
6339
6340 * semantics.c (genrtl_finish_function): Don't init or check
6341 can_reach_end; remove noreturn and return value checks.
6342
d1a458c4
TT
63432000-10-05 Tom Tromey <tromey@cygnus.com>
6344
6345 * init.c (build_java_class_ref): Use `build_static_name' with a
6346 suffix, not a prefix, to build the class object's name.
6347
509fc277
NS
63482000-10-05 Nathan Sidwell <nathan@codesourcery.com>
6349
6350 * cp-tree.h (access_kind): Fix comment typo.
6351 * decl2.c (grokfield): Fix diagnostic typo.
6352 * semantics.c (finish_template_type): Fix comment typo.
6353 (finish_qualified_object_call_expr): Likewise.
6354
ce2e5191
NS
63552000-10-05 Nathan Sidwell <nathan@codesourcery.com>
6356
6357 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
5362b086 6358 tsubsting fails.
ce2e5191 6359
79cc5312
NS
63602000-10-05 Nathan Sidwell <nathan@codesourcery.com>
6361
6362 * spew.c (frob_id): New static function.
6363 (frob_opname): Use it.
6364 (yylex): Use it.
6365
f15b9af9
MM
63662000-10-01 Mark Mitchell <mark@codesourcery.com>
6367
6368 * decl.c (lang_mark_false_label_stack): Remove.
6369 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
5362b086 6370
28e6b1c2
JM
63712000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
6372
6373 * gxxint.texi: Use @email for formatting email addresses.
6374
99885b3f
GDR
63752000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
6376
6377 * error.c: Remove direct obstack manipulation. Replace with
6378 output_buffer-based formatting. Adjust calls to removed macros.
6379 (obstack_chunk_alloc, obstack_chunk_free): Remove.
6380 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
6381 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
6382
c06aa51e
MM
63832000-09-24 Mark Mitchell <mark@codesourcery.com>
6384
6385 * ir.texi: Move to ../c-tree.texi.
6386
99fada40
JM
63872000-09-20 Jason Merrill <jason@redhat.com>
6388
6389 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
6390
bb20cc46
AJ
63912000-09-21 Andreas Jaeger <aj@suse.de>
6392
6393 * errfn.c: Move declaration of cp_printer and cp_printers to ...
6394 * cp-tree.h: ... here.
6395
6396 * error.c: Remove declaration of cp_printer.
6397
fab701da
MM
63982000-09-20 Mark Mitchell <mark@codesourcery.com>
6399
6400 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
6401
0370fea1
HPN
64022000-09-20 Hans-Peter Nilsson <hp@axis.com>
6403
6404 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
6405 users.
6406
78c120b5
MM
64072000-09-18 Mark Mitchell <mark@codesourcery.com>
6408
6409 * decl.c (start_function): Robustify.
6410
3f80e6ac
KG
64112000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6412
6413 * cp-tree.h (check_function_format): Accept a `status' parameter.
bb20cc46 6414
3f80e6ac
KG
6415 * call.c, typeck.c: Updates calls to `check_function_format'.
6416
fc928afe
GK
64172000-09-17 Geoffrey Keating <geoffk@cygnus.com>
6418
6419 * decl2.c (handle_class_head): Always push some scope even
6420 in the error case.
6421
8f17b5c5
MM
64222000-09-16 Mark Mitchell <mark@codesourcery.com>
6423
6424 * cp-tree.h (struct cp_language_function): Remove
6425 x_scope_stmt_stack and name_declared.
6426 (current_scope_stmt_stack): Remove.
6427 (function_name_declared_p): New macro.
6428 (struct lang_decl_flags): Use c_lang_decl as a base class.
6429 (context): Remove.
6430 (struct lang_decl): Replace saved_tree with context.
6431 (DECL_FRIEND_CONTEXT): Adjust accordingly.
6432 (SET_DECL_FRIEND_CONTEXT): Likewise.
6433 (DECL_VIRTUAL_CONTEXT): Likewise.
6434 (DECL_SAVED_TREE): Remove.
6435 (C_DECLARED_LABEL_FLAG): Likewise.
6436 (cplus_expand_expr_stmt): Don't declare.
6437 (add_decl_stmt): Likewise.
6438 (add_scope_stmt): Likewise.
6439 * decl.c (mark_stmt_tree): Remove.
6440 (case_compare): Likewise.
6441 (finish_case_label): Use c_add_case_label.
6442 (init_decl_processing): Set more language-specific hooks.
6443 (build_enumerator): Fix typo in comment.
6444 (cplus_expand_expr_stmt): Remove.
6445 (mark_lang_function): Use mark_c_language_function.
6446 (lang_mark_tree): Use c_mark_lang_decl.
6447 * decl2.c: Change order of inclusion.
6448 * except.c: Likewise.
6449 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
6450 back on c_expand_expr.
6451 * friend.c: Include expr.h.
6452 * init.c: Change order of inclusion.
6453 * Makefile.in: Update dependencies.
6454 * lex.h (free_lang_decl_chain): Remove.
6455 * optimize.c (maybe_clone_body): Use function_name_declared_p.
6456 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
6457 it doesn't exist.
6458 (instantiate_decl): Use function_name_declared_p.
6459 * semantics.c (lang_expand_expr_stmt): Remove.
6460 (set_current_function_name_declared): Likewise.
6461 (current_function_name_declared): Likewise.
6462 (begin_compound_stmt): Use function_name_declared_p.
6463 (add_decl_stmt): Remove.
6464 (setup_vtbl_ptr): Use function_name_declared_p.
6465 (add_scope_stmt): Remove.
6466 (current_scope_stmt_stack): New function.
6467 (cp_expand_stmt): Don't handle SCOPE_STMTs.
6468 (expand_body): Use function_name_declared_p.
6469 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
6470 * typeck.c: Change order of includes.
6471 (convert_sequence): Remove.
bb20cc46 6472
d9dbd9b1
JM
64732000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
6474
6475 * lex.c (reswords): Add _Complex.
6476
9985f210
RK
6477Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6478
6479 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
6480
f903ebb1
DA
64812000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6482
6483 * init.c (begin_init_stmts): Don't use // comments.
6484
f2ae0c45
JM
64852000-09-12 Jason Merrill <jason@redhat.com>
6486
6487 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
6488 all non-extern arrays.
6489
6490 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
6491 typenames, too. Downgrade complaint to pedwarn.
6492 (xref_tag): Warn about surprising behavior of 'friend struct T'.
6493 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
6494 'class This::Inherited'.
6495
71ad4a16
MM
64962000-09-12 Mark Mitchell <mark@codesourcery.com>
6497
6498 * decl.c (finish_case_label): Given the LABEL_DECL a
6499 DECL_CONTEXT.
6500
c3e76028
GDR
65012000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
6502
6503 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
6504 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
6505 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
6506 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
6507 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
6508 New macros.
6509 (sorry_for_unsupported_tree, print_scope_operator,
6510 print_left_paren, print_right_paren, print_left_bracket,
6511 print_right_bracket, print_whitespace): Likewise.
6512 (aggr_variety): Rename to class_key_or_enum.
6513 (print_type): Rename to print_type_id.
6514 (print_type_specifier_seq, print_simple_type_specifier,
6515 print_elaborated_type_specifier,
6516 print_rest_of_abstract_declarator,
6517 print_parameter_declaration_clause, print_exception_specification,
6518 print_nested_name_specifier, print_template_id,
6519 typedef_original_name, print_template_argument_list_start,
6520 print_template_argument_list_end): New functions.
6521
eb50138b
GDR
65222000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
6523
a8a05998 6524 * ir.texi: Add more documentation.
eb50138b 6525
f444e36b
MM
65262000-09-11 Mark Mitchell <mark@codesourcery.com>
6527
6528 * cp-tree.h (struct saved_scope): Remove x_function_parms.
6529 (current_function_parms): Don't define.
6530 (struct cp_language_function): Remove parms_stored.
6531 (current_function_just_assigned_this): Don't define.
6532 (current_function_parms_stored): Likewise.
6533 (static_ctors): Declare.
6534 (static_dtors): Likewise.
6535 (SF_EXPAND): Don't define.
6536 (expand_start_early_try_stmts): Remove declaration.
6537 (store_parm_decls): Likewise.
6538 * decl.c (static_ctors): Don't declare.
6539 (static_dtors): Likewise.
6540 (struct binding_level): Remove this_block.
6541 (poplevel): Remove dead code.
6542 (set_block): Likewise.
6543 (mark_binding_level): Don't mark this_block.
6544 (mark_saved_scope): Don't mark x_function_parms.
6545 (init_decl_processing): Don't add current_function_parms as a GC
6546 root.
6547 (check_function_type): Change prototype.
6548 (start_function): Remove RTL-generation code.
6549 (expand_start_early_try_stmts): Remove.
6550 (store_parm_decls): Give it internal linkage. Remove
6551 RTL-generation code.
6552 (finish_function): Remove RTL-generation code.
6553 * decl2.c (static_ctors): Fix formatting.
6554 (static_dtors): Likewise.
6555 * method.c (use_thunk): Don't call store_parm_decls.
6556 (synthesize_method): Likewise.
6557 * optimize.c (maybe_clone_body): Likewise.
6558 * parse.y (fn.def2): Likewise.
6559 (.set_base_init): Likewise.
6560 (nodecls): Likewise.
6561 * pt.c (instantiate_decl): Likewise.
6562 * rtti.c (synthesize_tinfo_fn): Likewise.
6563 * semantics.c (genrtl_try_block): Simplify.
6564 (expand_body): Use genrtl_start_function and
6565 genrtl_finish_function.
6566 (genrtl_start_function): New function.
6567 (genrtl_finish_function): Likewise.
6568
181d2ba0
NS
65692000-09-11 Nathan Sidwell <nathan@codesourcery.com>
6570
6571 * error.c (cp_tree_printer, case 'P'): Append break.
6572
f2d71db6
NS
65732000-09-11 Nathan Sidwell <nathan@codesourcery.com>
6574
6575 * cp-tree.h (frob_opname): Declare.
6576 * parse.y (saved_scopes): New static variable.
6577 (cp_parse_init): Adjust.
6578 (do_id): If lastiddecl is NULL, do do_identifier.
6579 (operator): Save scope information.
aca77bd1 6580 (unoperator): New reduction. Restore scope information.
f2d71db6
NS
6581 (operator_name): Append unoperator. Call frob_opname.
6582 * spew.c (frob_opname): Define.
6583
d8ea8f28
ZW
65842000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6585
6586 * decl.c, rtti.c: Include defaults.h if not already included.
6587 Don't define the *_TYPE_SIZE macros.
6588
56cb9733
MM
65892000-09-09 Mark Mitchell <mark@codesourcery.com>
6590
6591 * cp-tree.h (push_switch): Change prototype.
6592 (check_cp_case_value): Remove declaration.
6593 (decl_constant_value): Likewise.
6594 * decl.c (struct cp_switch): Add switch_stmt and cases.
6595 (case_compare): New function.
6596 (push_switch): Set switch_stmt. Initialize cases.
6597 (pop_switch): Clean up cases.
6598 (define_case_label): Rename to ...
6599 (finish_case_label): ... this. Do semantic analysis for case
6600 labels here.
6601 (start_function): Correct comment.
6602 * decl2.c (check_cp_case_value): Remove.
6603 * expr.c (do_case): Remove.
6604 * pt.c (tsubst_expr): Adjust call to finish_case_label.
6605 * semantics.c (genrtl_do_poplevel): Remove declaration.
6606 (RECHAIN_STMTS): Remove.
6607 (finish_break_stmt): Use build_break_stmt.
6608 (finish_continue_stmt): Use build_continue_stmt.
6609 (finish_switch_cond): Adjust condition here, rater than in
6610 c_expand_start_case.
6611 (finish_case_label): Remove.
6612 * typeck.c (c_expand_return): Remove.
6613 (c_expand_start_case): Likewise.
bb20cc46 6614
990a9693
GDR
66152000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
6616
6617 * ir.texi: Document type nodes.
6618
ae499cce
MM
66192000-09-06 Mark Mitchell <mark@codesourcery.com>
6620
54f7877c
MM
6621 * cp-tree.h (init_cp_semantics): Declare.
6622 (genrtl_try_block): Don't declare.
6623 (genrtl_handler): Likewise.
6624 (genrtl_catch_block): Likewise.
6625 (genrtl_ctor_stmt): Likewise.
6626 (genrtl_subobject): Likewise.
6627 (genrtl_do_poplevel): Likewise.
6628 (genrtl_named_return_value): Likewise.
6629 * lex.c (init_parse): Call init_cp_semantics.
6630 * semantics.c (genrtl_try_block): Give it internal linkage.
6631 (genrtl_handler): Likewise.
6632 (genrtl_catch_block): Likewise.
6633 (genrtl_ctor_stmt): Likewise.
6634 (genrtl_subobject): Likewise.
6635 (genrtl_do_poplevel): Likewise.
6636 (genrtl_named_return_value): Likewise.
6637 (lang_expand_stmt): Rename to ...
6638 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
6639 (init_cp_semantics): Define.
6640
3a0d3e1e
MM
6641 * decl.c (initialize_local_var): Remove RTL-generating code.
6642 * semantics.c (genrtl_try_block): Fix formatting.
6643
ae499cce
MM
6644 Move statement-tree facilities from C++ to C front-end.
6645 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
6646 (void_zero_node): Remove.
6647 (stmt_tree): Likewise.
6648 (scope_chain): Adjust.
6649 (language_function): Rename to cp_language_function.
6650 (cp_function_chain): Adjust.
6651 (current_stmt_tree): Remove.
6652 (last_tree): Likewise.
6653 (last_expr_type): Likewise.
6654 (struct lang_decl): Adjust.
6655 (STMT_IS_FULL_EXPR_P): Remove.
6656 (add_tree): Remove.
6657 (begin_stmt_tree): Likewise.
6658 (finish_stmt_tree): Likewise.
6659 (walk_tree_fn): Likewise.
6660 (walk_stmt_tree): Likewise.
6661 * class.c (finish_struct): Replace use of add_tree with add_stmt.
6662 * decl.c (mark_stmt_tree): Adjust type.
6663 (init_decl_processing): Don't build void_zero_node.
6664 (initialize_local_var): Adjust usage of current_stmt_tree.
6665 (finish_enum): Use add_stmt, not add_tree.
6666 (save_function_data): Adjust use of language_function.
6667 (finish_constructor_body): Use add_stmt, not add_tree.
6668 (finish_destructor_body): Likewise.
6669 (push_cp_function_context): Adjust use of language_function.
6670 (pop_cp_function_context): Likewise.
6671 (mark_lang_function): Likewise.
6672 (mark_cp_function_context): Likewise.
6673 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
6674 (build_vec_init): Likewise.
6675 * semantics.c (SET_LAST_STMT): Remove.
6676 (RECHAIN_STMTS): Don't use it.
6677 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
6678 (current_stmt_tree): Define.
6679 (add_tree): Remove.
6680 (finish_goto_stmt): Use add_stmt, not add_tree.
6681 (finish_expr_stmt): Likewise.
6682 (begin_if_stmt): Likewise.
6683 (finish_then_clause): Likewise.
6684 (begin_while_stmt): Likewise.
6685 (begin_do_stmt): Likewise.
6686 (finish_return_stmt): Likewise.
6687 (begin_for_stmt): Likewise.
6688 (finish_break_stmt): Likewise.
6689 (finish_continue_stmt): Likewise.
6690 (begin_switch_stmt): Likewise.
6691 (finish_case_label): Likewise.
6692 (begin_try_block): Likewise.
6693 (begin_function_try_block): Likewise.
6694 (begin_handler): Likewise.
6695 (begin_catch_block): Likewise.
6696 (begin_compound_stmt): Likewise.
6697 (begin_asm_stmt): Likewise.
6698 (finish_asm_stmt): Likewise.
6699 (finish_label_stmt): Likewise.
6700 (add_decl_stmt): Likewise.
6701 (finish_subobject): Likewise.
6702 (finish_decl_cleanup): Likewise.
6703 (finish_named_return_value): Likewise.
6704 (setup_vtbl_ptr): Likewise.
6705 (add_scope_stmt): Likewise.
6706 (finish_stmt_expr): Likewise.
6707 (prune_unused_decls): Remove.
6708 (begin_stmt_tree): Likewise.
6709 (finish_stmt_tree): Likewise.
6710 (prep_stmt): Adjust use of current_stmt_tree.
6711 (lang_expand_stmt): Likewise.
6712 * tree.c (statement_code_p): Remove.
6713 (cp_statement_code_p): New function.
6714 (walk_stmt_tree): Remove.
6715 (init_tree): Set lang_statement_code_p.
bb20cc46 6716
0e5921e8
ZW
67172000-09-06 Zack Weinberg <zack@wolery.cumb.org>
6718
6719 Integrated preprocessor.
6720
6721 * Make-lang.in, Makefile.in: Remove all references to input.c,
6722 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
6723 * gxx.gperf, hash.h, input.c: Delete.
6724 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
6725 initialized properly.
6726
6727 * class.c (fixup_pending_inline): Take a tree, not a
6728 struct pending_inline *. All callers changed.
6729 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
6730 RID_PROTECTED entries in ridpointers[] array here.
6731 * decl.c (duplicate_decls): Do not refer to struct
6732 pending_inline.
6733 (record_builtin_type, init_decl_processing): Use RID_MAX not
6734 CP_RID_MAX.
6735 (grokdeclarator): Use C_IS_RESERVED_WORD.
6736 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
6737 cpplib.
6738 (grok_x_components): Do not inspect pending_inlines chain.
6739
6740 * cp-tree.h (struct lang_identifier): Add rid_code entry.
6741 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
6742 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
6743 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
6744 TIME_IDENTIFIER_FILEINFO): Kill.
6745 Update prototypes.
6746 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
6747 single 32-bit word.
6748 * parse.y: Call do_pending_inlines unconditionally.
6749 reinit_parse_for_method is now snarf_method. fn.defpen is no
6750 longer necessary. Remove unnecessary <itype> annotation on
6751 SCOPE. Do not refer to end_of_file or struct pending_inline.
6752 * semantics.c (begin_inline_definitions): Call
6753 do_pending_inlines unconditionally.
6754
6755 * lex.c: Remove all code now shared with C front end.
6756 Initialize cpplib properly if USE_CPPLIB. Put reserved words
6757 into the get_identifier table. Rewrite pragma handling to
6758 work with the registry. Move code to save tokens for later
6759 processing to spew.c.
6760
6761 * spew.c: Rewrite everything in terms of token streams instead
6762 of text. Move routines here from lex.c / input.c as
6763 appropriate. GC-mark trees hanging off the pending inlines
6764 chain.
6765
44835fdd
MM
67662000-09-06 Mark Mitchell <mark@codesourcery.com>
6767
6768 * NEWS: Mention that the named return value extension has been
6769 deprecated.
6770 * cp-tree.h (original_result_rtx): Define.
6771 (TREE_REFERENCE_EXPR): Remove.
6772 (DECL_VPARENT): Likewise.
6773 (pushdecl_nonclass_level): Likewise.
6774 (store_return_init): Likewise.
6775 (reinit_lang_specific): Likewise.
6776 (genrtl_named_return_value): Change prototype.
6777 * decl.c (original_result_rtx): Remove.
6778 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
6779 Do not generate RTL for local variables here.
6780 (store_return_init): Remove.
6781 * semantics.c (genrtl_named_return_value): Simplify. Fold in
6782 store_return_init.
6783 (finish_named_return_value): Adjust accordingly. Warn that this
6784 extension is deprecated.
6785 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
6786
d7c4edd0
NS
67872000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6788
6789 * pt.c (type_unification_real): Replace switch with if.
6790 (unify): Tsubst non-type parms before comparing.
6791
46e2747c
NS
67922000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6793
6794 * error.c (dump_typename): New function, broken out of ...
6795 (dump_type): ... here. Use it.
6796 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
6797
c833d2be
NS
67982000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6799
6800 * init.c (build_offset_ref): Deal with namespace scoped
6801 TEMPLATE_ID_EXPRs.
6802
b1ce3eb2
NS
68032000-09-06 Nathan Sidwell <nathan@codesourcery.com>
6804
6805 * class.c (resolve_address_of_overloaded_function): Add
6806 explanation message.
6807 * decl.c (define_case_label): Reformat explanation.
6808 * decl2.c (finish_static_data_member_decl): Likewise.
6809 (grokfield): Likewise.
6810 * friend.c (do_friend): Likewise.
6811
11f53b6a
ZW
68122000-09-05 Zack Weinberg <zack@wolery.cumb.org>
6813
6814 * tree.c (walk_tree): Expose tail recursion.
6815 (walk_stmt_tree): New function.
6816 * cp-tree.h: Prototype walk_stmt_tree.
6817 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
6818 the BLOCKs directly. If a BLOCK has no variables after
6819 pruning, discard it.
6820 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
6821 restore the line number.
6822
ee94fce6
MM
68232000-09-05 Mark Mitchell <mark@codesourcery.com>
6824
6825 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
6826 (pt.o): Remove dependency on HTAB_H.
6827 * cp-tree.h: Include hashtab.h.
6828 (walk_tree): Change prototype.
6829 (walk_tree_without_duplicates): New function.
6830 * decl.c (check_default_argument): Use it.
6831 * optimize.c (remap_decl): Adjust calls to walk_tree.
6832 (copy_body): Likewise.
6833 (expand_calls_inline): Likewise.
6834 (calls_setjmp_p): Use walk_tree_without_duplicates.
6835 * pt.c: Don't include hashtab.h.
6836 (for_each_template_parm): Use walk_tree_without_duplicates.
6837 * semantics.c (finish-stmt_tree): Likewise.
6838 (expand_body): Likewise.
6839 * tree.c (walk_tree): Add additional parameter.
6840 (walk_tree_without_duplicates): New function.
6841 (count_trees): Use it.
6842 (verify_stmt_tree): Adjust call to walk_tree.
6843 (find_tree): Use walk_tree_without_duplicates.
6844 (no_linkage_check): Likewise.
6845 (break_out_target_exprs): Adjust call to walk_tree.
6846 (cp_unsave): Likewise.
6847
a1281f45
KL
68482000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6849
6850 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
6851 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
6852 * cp-tree.h (TYPE_BINFO): Adjust comment.
6853 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
6854 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
6855 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
6856 (TYPE_TEMPLATE_INFO): Likewise.
6857 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
6858 * class.c (push_nested_class): Likewise.
6859 * decl.c (lookup_name_real): Likewise.
6860 (grokdeclarator): Likewise.
6861 (grok_op_properties): Likewise.
6862 (xref_tag): Likewise.
6863 (xref_basetypes): Likewise.
6864 * decl2.c (constructor_name_full): Likewise.
6865 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
6866 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
6867 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
6868 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6869 (dump_type_suffix): Likewise.
6870 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
6871 instead.
6872 (get_aggr_from_typedef): Likewise.
6873 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
6874 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6875 (write_template_parm): Likewise.
6876 (write_template_template_parm): Check tree code instead of
6877 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
0e5921e8 6878 * method.c (build_overload_nested_name): Add
a1281f45
KL
6879 BOUND_TEMPLATE_TEMPLATE_PARM.
6880 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
6881 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6882 * pt.c (convert_template_argument): Check tree code instead of
6883 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
6884 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
6885 (for_each_template_parm): Adjust comment.
6886 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
6887 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6888 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
6889 template_args_equal to compare template template parameter cases.
6890 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6891 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
6892 instead.
6893 * tree.c (copy_template_template_parm): Decide whether to create
6894 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
6895 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
6896 (copy_tree_r): Likewise.
6897 * typeck.c (comptypes): Likewise. Check tree code instead of
6898 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
6899
c9672d45
ME
69002000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
6901
6902 * decl.c (finish_function): Move the code for handling functions
6903 marked with the constructor and destructor attributes inside the
6904 expand_p block.
6905
67804825
NS
69062000-09-04 Nathan Sidwell <nathan@codesourcery.com>
6907
6908 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
6909
1bc0793e
NS
69102000-09-04 Nathan Sidwell <nathan@codesourcery.com>
6911
6912 * pt.c (lookup_template_class): Remove abort.
6913 * tree.c (get_type_decl): Allow error_mark_node.
6914
3338663b
NS
69152000-09-04 Nathan Sidwell <nathan@codesourcery.com>
6916
6917 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
6918 TEMPLATE_ID_EXPRs.
6919
1b84dc37
MM
69202000-09-03 Mark Mitchell <mark@codesourcery.com>
6921
6922 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
c9672d45 6923 new ABI mangling.
1b84dc37 6924
9687f8f4
NS
69252000-09-01 Nathan Sidwell <nathan@codesourcery.com>
6926
6927 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
c9672d45 6928 union tag mismatch error reporting.
9687f8f4 6929
4f8025eb
NS
69302000-09-01 Nathan Sidwell <nathan@codesourcery.com>
6931
c9672d45 6932 * call.c (build_scoped_method_call): Check it is not a namespace.
4f8025eb 6933
495d26d6
JM
69342000-08-30 Jason Merrill <jason@redhat.com>
6935
6936 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
6937
6938 * tree.c (bot_manip): Check TREE_CONSTANT rather than
6939 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
6940 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
6941
6942 * decl.c (start_function): Always call make_function_rtl.
6943
7efcf466
ZW
69442000-08-29 Zack Weinberg <zack@wolery.cumb.org>
6945
495d26d6 6946 * semantics.c (prune_unused_decls): New function.
7efcf466
ZW
6947 (finish_stmt_tree): Call it via walk_tree.
6948
63ad61ed
ZW
69492000-08-29 Zack Weinberg <zack@wolery.cumb.org>
6950
6951 * class.c (build_secondary_vtable): Constify a char *.
6952 * decl.c (init_decl_processing): Initialize function_id_node,
6953 pretty_function_id_node, and func_id_node.
6954 * input.c (struct input_source): Constify 'str'.
6955 (feed_input): Constify first argument.
6956 * mangle.c (write_identifier): Constify argument.
6957 * pt.c (mangle_class_name_for_template): Constify argument.
6958
4361b41d
MM
69592000-08-29 Mark Mitchell <mark@codesourcery.com>
6960
6961 * typeck.c (mark_addressable): Remove code that pokes around in
6962 RTL.
6963
881c6935
JM
69642000-08-28 Jason Merrill <jason@redhat.com>
6965
6966 * lex.c (file_name_nondirectory): Move to toplev.c.
6967
6968 * cp-tree.h (LOCAL_CLASS_P): New macro.
6969 * class.c (finish_struct_1): Use it.
6970
f0f33848
AS
69712000-08-27 Alex Samuel <samuel@codesourcery.com>
6972
6973 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
6974 (write_encoding): Pass another argument to write_name.
6975 (write_name): Add ignore_local_scope parameter. Fix handling of
6976 local names.
6977 (write_nested_name): Use write_unqualified_name.
6978 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
6979 (write_template_prefix): Use write_unqualified_name.
6980 (write_component): Remove.
6981 (write_local_name): Add parameter. Use direct local entity to
6982 discriminator calculation.
0e5921e8 6983 (write_class_enum_type): Pass another argument to write_name.
f0f33848
AS
6984 (write_template_template_arg): Likewise.
6985 (make_guard_variable): Likewise.
0e5921e8 6986
94dfccd1
JM
69872000-08-27 Jason Merrill <jason@redhat.com>
6988
6989 * decl.c (pushdecl): Matching decls for local externs are found in
6990 the current level. Propagate linkage information from previous
6991 declarations.
6992
14fdf4b6
GDR
69932000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
6994
6995 * ir.texi (Expressions): Fix typo.
6996
b5232c64
GM
69972000-08-25 Greg McGary <greg@mcgary.org>
6998
6999 * tree.c (init_tree): Use ARRAY_SIZE.
7000
22a4158c
GDR
70012000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
7002
7003 * error.c (cp_tree_printer): Rework.
7004
f22967f3
MM
70052000-08-25 Mark Mitchell <mark@codesourcery.com>
7006
a0c182fe
MM
7007 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
7008 dyn-string.o.
7009 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
7010 (cp-demangle.o): Remove target.
7011 (dyn-string.o): Likewise.
7012
f22967f3
MM
7013 * decl.c (grokfndecl): Require that `main' return an `int'.
7014 * mangle.c (write_encoding): Don't mangle return types for
7015 conversion functions.
7016
a1066c99
GDR
70172000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
7018
7019 * error.c (tree_formatting_info): New data type.
7020 (tree_being_formatted): New macro.
7021 (tree_formatting_flags): Likewise.
7022 (put_whitespace): Likewise.
7023 (print_tree_identifier): Likewise.
7024 (print_identifier): Likewise.
7025 (cp_tree_printer, print_function_argument_list, print_declaration,
7026 print_expression, print_function_declaration,
7027 print_function_parameter, print_type, print_cv_qualifier): New
0e5921e8 7028 functions.
a1066c99
GDR
7029 (init_error): Initialize lang_printer.
7030
3f2b640a
JM
70312000-08-24 Jason Merrill <jason@redhat.com>
7032
7033 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
7034 adjustment necessary.
7035
7ec09bf7
GM
70362000-08-24 Greg McGary <greg@mcgary.org>
7037
7038 * cp-tree.h (MAIN_NAME_P): Remove macro.
7039
2ab99c46
GDR
70402000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
7041
7042 * error.c (print_instantiation_context): Don't forget to flush the
7043 buffer.
7044
7def1251
JM
70452000-08-23 Jason Merrill <jason@redhat.com>
7046
7047 * typeck.c (build_ptrmemfunc): Save the input pmf.
7048
7049 * method.c (process_modifiers): Use same_type_p.
7050
94350948
MM
70512000-08-23 Mark Mitchell <mark@codesourcery.com>
7052
7053 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
7054 * mangle.c (write_function_type): Change prototype.
7055 (write_encoding): Don't mangle return types for
7056 constructors or destructors.
7057 (write_type): Adjust call to write_function_type.
7058 * pt.c (instantiate_template): Instantiate alternate entry points
7059 when instantiating the main function.
0e5921e8 7060
a64e7329
GDR
70612000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
7062
7063 * error.c (cp_print_error_function): Don't use embedded '\n' in
0e5921e8 7064 output_printf.
a64e7329 7065
a72462a4
GDR
70662000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
7067
7068 * decl.c (init_decl_processing): Remove bogus initialization.
7069 * error.c (lang_print_error_function): Restore here.
0e5921e8
ZW
7070 (init_error): Initialize print_error_function.
7071
3add6264
TP
70722000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7073
7074 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
7075
cb753e49
GDR
70762000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
7077
7078 * Makefile.in (error.o): Depends on diagnostic.h
7079
7080 * cp-tree.h (problematic_instantiation_changed,
7081 record_last_problematic_instantiation, current_instantiation,
7082 print_instantiation_context): Declare.
7083 (maybe_print_template_context): Remove.
7084
7085 * decl.c (init_decl_processing): Set print_error_function to NULL.
7086 (lang_print_error_function): Remove, since we're using a new
7087 machinery.
7088
7089 * error.c: #include diagnostic.h
7090 (function_category): New function.
7091 (cp_diagnostic_starter): Likewise.
7092 (cp_diagnostic_finalizer): Likewise.
7093 (cp_print_error_function): Likewise.
7094 (maybe_print_instantiation_context): Likewise.
7095 (print_instantiation_full_context): Likewise.
7096 (print_instantiation_partial_context): Likewise.
7097 (print_instantiation_context): Define.
7098 (init_error): Initialize diagnostic pager and finalizer.
7099
7100 * pt.c (problematic_instantiation_changed): Define.
7101 (record_last_problematic_instantiation): Likewise.
7102 (current_instantiation): Likewise.
7103 (maybe_print_template_context): Remove.
7104 (print_template_context): Likewise.
7105 (current_tinst_level): Make static to reflect Brendan Kehoe's
7106 change of 1995-04-13.
0e5921e8
ZW
7107 (push_tinst_level): Call print_instantiation_context.
7108
05a3d06e 71092000-08-21 Nix <nix@esperi.demon.co.uk>
0e5921e8 7110
05a3d06e
N
7111 * lang-specs.h: Do not process -o or run the assembler if
7112 -fsyntax-only.
7113
93e2382f
JM
71142000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
7115
7116 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
7117 variables.
7118 * decl2.c (lang_decode_option): Disable gettext attributes for
7119 -ansi.
7120
24805e80
GDR
71212000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
7122
7123 * lex.c (lang_init_options): Default diagnostic message maximum
7124 length to 80, when line-wrapping.
7125
b485e15b
MM
71262000-08-20 Mark Mitchell <mark@codesourcery.com>
7127
7128 * class.c (build_vtbl_initializer): Clear the entire
7129 vtbl_init_data. Start keeping track of the functions for which we
7130 have created vcall offsets here.
7131 (dfs_build_vcall_offset_vtbl_entries): Remove.
7132 (build_vcall_offset_vtbl_entries): Reimplement.
7133 (add_vcall_offset_vtbl_entries_r): New function.
7134 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
7135 computing when vcall offsets are necessary.
7136
2ae7bada
NS
71372000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7138
7139 * decl.c (member_function_or_else): Use cp_error ... %T.
7140 (grokdeclarator): Likewise.
7141 (start_method): Likewise.
0e5921e8 7142 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
2ae7bada 7143
7a8b1375
NS
71442000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7145
7146 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
0e5921e8 7147 TYPE_DECLs.
7a8b1375 7148
19420d00
NS
71492000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7150
7151 * cp-tree.h (PTRMEM_OK_P): New macro.
7152 (itf_ptrmem_ok): New enumeration value.
7153 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
7154 argument. Diagnose implicit pointer to member.
7155 (instantiate_type): Don't diagnose implicit pointer to member
7156 here. Pass itf_ptrmem_ok if ok. Adjust calls to
7157 resolve_address_of_overloaded_function.
7158 * init.c (build_offset_ref): Set PTRMEM_OK_P.
7159 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
7160 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
7161 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
7162 (build_unary_op): Deal with single non-static member in
7163 microsoft-land.
7164
66081283
NS
71652000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7166
7167 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
7168
fa40aa12
NS
71692000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7170
7171 * cp-tree.h (enum_name_string): Remove prototype.
7172 (report_case_error): Remove prototype.
7173 * cp/typeck2.c (enum_name_string): Remove.
7174 (report_case_error): Remove.
7175 * error.c (dump_expr): Deal with enum values directly.
7176 Correctly negate integer constant.
7177
d13b34e9
NS
71782000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7179
7180 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
7181 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
7182 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
7183 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
7184 (__cxa_vec_new): Use __cxa_vec_new2.
7185 (__cxa_vec_delete): Use __cxa_vec_delete2.
7186
2f1b80af
NS
71872000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7188
7189 * vec.cc (__cxa_vec_new): Set "C" linkage.
7190 (__cxa_vec_ctor): Likewise.
7191 (__cxa_vec_cctor): Likewise.
7192 (__cxa_vec_dtor): Likewise.
7193 (__cxa_vec_delete): Likewise.
7194 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
7195 (__cxa_vec_ctor): Likewise.
7196 (__cxa_vec_cctor): Likewise.
7197 (__cxa_vec_dtor): Likewise.
7198 (__cxa_vec_delete): Likewise.
7199
105d8e1f
NS
72002000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7201
7202 * class.c (instantiate_type): Reinstate local variable
7203 deleted in previous change.
0e5921e8 7204
f1819d9a
NS
7205 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
7206 itf_no_attributes.
105d8e1f 7207
5e76004e
NS
72082000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7209
7210 * cp-tree.h (instantiate_type_flags): New enumeration.
7211 (instantiate_type): Change parameter.
7212 * class.c (instantiate_type): Adjust prototype. Adjust.
7213 * call.c (standard_conversion): Adjust instantiate_type call.
7214 (reference_binding): Likewise.
7215 (build_op_delete_call): Likewise.
7216 (convert_like_real): Likewise.
7217 * cvt.c (cp_convert_to_pointer): Likewise.
7218 (convert_to_reference): Likewise.
7219 * pt.c (convert_nontype_argument): Likewise.
7220 * typeck.c (build_binary_op): Likewise.
7221 (build_ptrmemfunc): Likewise.
7222 (convert_for_assignment): Likewise.
7223
4b054b80
NS
72242000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7225
7226 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
7227 (current_aggr): Define.
7228 * decl.c (grokdeclarator): Make sure a friend class is an
7229 elaborated type specifier.
7230 * parse.y (current_aggr): Remove static definition.
7231 (cp_parse_init): Adjust.
7232 (structsp): Clear and restore current_aggr.
7233 (component_decl_list): Clear current_aggr.
0e5921e8 7234
4b054b80
NS
7235 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
7236 aggregate tag on the typename's context.
0e5921e8 7237
321cba97
NS
7238 * pt.c (tsubst_friend_class): Return error_mark_node, if
7239 parms becomes NULL.
7240 (instantiate_class_template): Ignore error_mark_node friend types.
4b054b80 7241
08aead78
NS
72422000-08-14 Nathan Sidwell <nathan@codesourcery.com>
7243
7244 * cvt.c (warn_ref_binding): New static function, broken out of ...
0e5921e8 7245 (convert_to_reference): ... here. Use it.
08aead78 7246
fa1f3ebc
KL
72472000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
7248
7249 * parse.y (template_arg): Add rule for template qualified with
7250 global scope.
7251
9845b52b
TP
72522000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7253
7254 * decl2.c (add_function): Reorganize.
7255 (arg_assoc): Do not consider function template decls.
7256
e69c8072
JM
72572000-08-11 Jason Merrill <jason@redhat.com>
7258
7259 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
7260 looking inside.
7261
5c1e5476
NS
72622000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7263
7264 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
7265 (lookup_nested_tag): Likewise.
0e5921e8 7266
5c1e5476
NS
7267 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
7268 can be produced.
7269
5426aa7f
NS
72702000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7271
7272 * parse.y (named_complex_class_head_sans_basetype): Remove
7273 always true if.
7274
fd037e0d
NS
72752000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7276
7277 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
7278 explicit TEMPLATE_ID_EXPR args.
7279 (build_expr_from_tree, case CALL_EXPR): Likewise.
7280
73ae5c34
NS
72812000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7282
7283 * decl.c (check_tag_decl): Diagnose typename's which don't
7284 declare anything.
7285
aa54df09
NS
72862000-08-10 Nathan Sidwell <nathan@codesourcery.com>
7287
7288 * init.c (build_aggr_init): Reject bogus array initializers
7289 early.
7290
7e8dad18
NS
72912000-08-09 Nathan Sidwell <nathan@codesourcery.com>
7292
7293 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
7294 runtime.
7295 * cp/tinfo.cc (__dynamic_cast): Likewise.
0e5921e8 7296 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7e8dad18 7297
0f586b9b
NS
72982000-08-09 Nathan Sidwell <nathan@codesourcery.com>
7299
7300 * cvt.c (convert_to_pointer_force): Fix error message when
0e5921e8 7301 attempting to cast from ambiguous base.
0f586b9b 7302
08e72a19
JM
73032000-08-08 Jason Merrill <jason@redhat.com>
7304
7305 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
7306 (tsubst_template_arg_vector): Likewise.
7307
7308 * decl2.c (build_anon_union_vars): Choose the largest field; don't
7309 assume that one will be as large as the union.
7310
0811ea8f
KH
73112000-08-07 Kazu Hirata <kazu@hxi.com>
7312
7313 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
7314 * decl.c (pop_labels): Likewise.
7315
f9fcf62b
JO
73162000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
7317
7318 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
7319 specifications.
7320 (__pointer_to_member_type_info): Likewise.
7321 (__base_class_info): Likewise.
7322 (__class_type_info): Likewise.
7323 (__si_class_type_info): Likewise.
7324 (__vmi_class_type_info): Likewise.
7325 * tinfo.cc (__si_class_type_info::__do_find_public_src):
7326 Changed member names to match specifications.
7327 (__vmi_class_type_info::__do_find_public_src): Likewise.
7328 (__si_class_type_info::__do_dyncast): Likewise.
7329 (__vmi_class_type_info::__do_dyncast): Likewise.
7330 (__si_class_type_info::__do_upcast): Likewise.
7331 (__vmi_class_type_info::__do_upcast): Likewise.
7332 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
7333 (__pbase_type_info::__pointer_catch): Likewise.
7334 (__pointer_type_info::__pointer_catch): Likewise.
7335 (__pointer_to_member_type_info::__pointer_catch): Likewise.
7336
a36556a8
ZW
73372000-08-04 Zack Weinberg <zack@wolery.cumb.org>
7338
0e5921e8
ZW
7339 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
7340 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
7341 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
a36556a8 7342
452a394b
MM
73432000-08-04 Mark Mitchell <mark@codesourcery.com>
7344
7345 * cp-tree.h (add_method): Change prototype.
7346 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
7347 Don't double the size of the method vector in the error case.
7348 (handle_using_decl): Adjust call to add_method.
7349 (add_implicitly_declared_members): Likewise.
7350 (clone_function_decl): Likewise.
7351 * decl2.c (check_classfn): Likewise.
7352 * semantics.c (finish_member_declaration): Likewise.
0e5921e8 7353
b8458e3e
JM
73542000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7355
7356 * decl.c (flag_isoc94): New variable.
7357
a1bcc528
JM
73582000-08-02 Jason Merrill <jason@redhat.com>
7359
7360 * pt.c (do_type_instantiation): Add complain parm; don't complain
7361 if called recursively.
7362 * cp-tree.h, parse.y: Adjust.
7363
50e60bc3
ZW
73642000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7365
eae51189
ZW
7366 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
7367 -Wno-strict-prototypes.
7368
37620334
ZW
7369 * g++spec.c: Adjust type of second argument to
7370 lang_specific_driver, and update code as necessary.
7371
50e60bc3
ZW
7372 * cp-tree.h: Don't prototype min_precision here.
7373 (my_friendly_assert): Cast expression to void.
7374 * semantics.c (do_poplevel): Initialize scope_stmts.
7375
3f954fc3
MM
73762000-08-02 Mark Mitchell <mark@codesourcery.com>
7377
7378 * cp-tree.h (DECL_NEEDED_P): Tweak.
7379
ab4fa7ed
JM
73802000-07-28 Jason Merrill <jason@redhat.com>
7381
7382 * lang-specs.h: Use %i in rule for .ii files.
7383
4871239e
ZW
73842000-07-31 Zack Weinberg <zack@wolery.cumb.org>
7385
7386 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
7387
911a71a7
MM
73882000-07-30 Mark Mitchell <mark@codesourcery.com>
7389
7390 Allow indirect primary bases.
7391 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
7392 primary_base.
7393 (CLASSTYPE_VFIELD_PARENT): Remove.
7394 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
7395 (BINFO_PRIMARY_BINFO): Remove.
7396 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
7397 (BINFO_VBASE_PRIMARY_P): Likewise.
7398 (BINFO_PRIMARY_BASE_OF): New macro.
7399 (BINFO_INDIRECT_PRIMARY_P): Likewise.
7400 (get_primary_binfo): New function.
7401 * decl.c (lang_mark_tree): Make lang_type::primary_base.
7402 * class.c (vcall_offset_data_s): Rename to ...
7403 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
7404 and add ctor_vtbl_p.
7405 (get_derived_offset): Use get_primary_binfo.
7406 (dfs_mark_primary_bases): Adjust handling of virtual primary
7407 bases.
7408 (mark_primary_bases): Likewise.
7409 (set_primary_base): Take a binfo, not an integer, as a
7410 representation of the primary base.
7411 (indirect_primary_base_p): Remove.
7412 (determine_primary_base): Adjust for indirect primary bases.
7413 (dfs_find_final_overrider): Fix typo in coment.
7414 (update_vtable_entry_for_fn): Use get_primary_binfo.
7415 (layout_nonempty_base_or_field): Tweak.
7416 (build_base_fields): Adjust for new primary base semantics.
7417 (dfs_propagate_binfo_offsets): Remove.
7418 (propagate_binfo_offsets): Rewrite.
7419 (dfs_set_offset_for_shared_vbases): Remove.
7420 (layout_virtual_bases): Don't use it.
7421 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
7422 ABI.
7423 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
7424 CLASSTYPE_VFIELD_PARENT.
7425 (dfs_get_primary_binfo): New function.
7426 (get_primary_binfo): Likewise.
7427 (dump_class_hierarchy_r): Tweak printing of primary bases.
7428 (build_vtbl_initializer): Fix typo in comments. Use
7429 vtbl_init_data.
7430 (build_vcall_and_vbase_vtbl_entries): Likewise.
7431 (build_vbaes_offset_vtbl_entries): Likewise.
7432 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
7433 BV_VCALL_INDEX to handle indirect primary bases.
7434 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
7435 (build_rtti_vtbl_entries): Likewise.
7436 * search.c (get_shared_vbase_if_not_primary): Tweak.
7437 (find_vbase_instance): Likewise.
7438 (binfo_for_vtable): Simplify.
7439 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
7440 (make_binfo): Make it have 11 entries.
0e5921e8 7441
722bed0f
AS
74422000-07-30 Alex Samuel <samuel@codesourcery.com>
7443
7444 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
7445 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
7446 ascertaining primaryness.
7447 (G): Remove template_args.
7448 (decl_is_template_id): New function.
7449 (write_encoding): Use decl_is_template_id.
7450 (write_name): Likewise. Handle type_decls. Get main variant of
7451 type decls.
7452 (write_nested_name): Likewise.
7453 (write_prefix): Likewise.
7454 (write_template_prefix): Likewise.
7455 (write_special_name_constructor): Remove defunct production from
7456 comment.
7457 (write_bare_function_type): Remove comment about absent parameter.
7458 (write_template_template_arg): Add missing grammar production to
7459 comment.
7460
9076e292
JM
74612000-07-27 Jason Merrill <jason@redhat.com>
7462
7463 * decl.c (duplicate_decls): If common_type produces a non-typedef
7464 type for a typedef, just use the old type.
7465
b2244c65
MM
74662000-07-27 Mark Mitchell <mark@codesourcery.com>
7467
7468 * cp-tree.h (function_depth): Declare.
7469 (verify_stmt_tree): Likewise.
7470 (find_tree): Likewise.
7471 * decl.c (function_depth): Give it external linkage.
7472 * optimize.c (optimize_function): Increment and decrement it.
7473 * tree.c (verify_stmt_tree_r): New function.
7474 (verify_stmt_tree): Likewise.
7475 (find_tree_r): Likewise.
7476 (find_tree): Likewise.
7477
62e3bf54
JM
74782000-07-27 Jason Merrill <jason@redhat.com>
7479
9076e292
JM
7480 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
7481 TYPE_PTRMEMFUNC_P.
7482 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
62e3bf54 7483
5a728aca
MM
74842000-07-26 Mark Mitchell <mark@codesourcery.com>
7485
7486 * decl.c (start_cleanup_fn): Mark the function as `inline'.
7487 * decl2.c (get_guard): Call cp_finish_decl, not
7488 rest_of_decl_compilation, for local guards.
7489 * lex.c (do_identifier): Remove unused variable.
7490
6a1fa5f9
ME
7491Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
7492
7493 * parse.y: Add missing ';'.
7494
0c10a805
MM
74952000-07-26 Mark Mitchell <mark@codesourcery.com>
7496
7497 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
7498 of `extern "C++"'.
7499
8b27e9ef
NS
75002000-07-25 Nathan Sidwell <nathan@codesourcery.com>
7501
7502 Kill strict_prototype. Backwards compatibility only for
7503 non NO_IMPLICIT_EXTERN_C systems.
7504 * cp-tree.h (flag_strict_prototype): Remove.
7505 (strict_prototype): Remove.
7506 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
7507 * decl.c (maybe_push_to_top_level): Adjust.
7508 (pop_from_top_level): Adjust.
7509 (decls_match): Only allow sloppy parm matching for ancient
7510 system headers.
7511 (init_decl_processing): Adjust.
7512 (grokdeclarator): Adjust.
7513 * decl2.c (flag_strict_prototype): Remove.
7514 (strict_prototype): Remove.
7515 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
7516 (lang_f_options): Remove "strict-prototype".
7517 (unsupported-options): Add "strict-prototype".
7518 * lex.c (do_identifier): Adjust.
7519 (do_scoped_id): Adjust.
7520 * parse.y (empty_parms): Adjust.
7521 * class.c (push_lang_context): Adjust.
7522 (pop_lang_context): Adjust.
7523 * typeck.c (comp_target_parms): Adjust.
7524
c3783399
NS
75252000-07-25 Nathan Sidwell <nathan@codesourcery.com>
7526
7527 * decl.c (poplevel): Deal with anonymous variables at for scope.
7528 (maybe_inject_for_scope_var): Likewise.
7529
a7023245
ZW
75302000-07-25 Zack Weinberg <zack@wolery.cumb.org>
7531
7532 * decl.c: Remove all signal handling code, now done in toplev.c.
7533
95ee998c
MM
75342000-07-23 Mark Mitchell <mark@codesourcery.com>
7535
7536 * decl.c (make_rtl_for_nonlocal_decl): Rework.
7537
7538 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
7539 correctly.
7540
1b493b81
ZW
75412000-07-20 Zack Weinberg <zack@wolery.cumb.org>
7542
7543 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
7544 Define my_friendly_assert and my_friendly_abort as macros
7545 which may call friendly_abort. Prototype friendly abort, not
7546 my_friendly_abort or my_friendly_assert.
7547 * decl.c (signal_catch): Report the signal caught in the error
7548 message. Call fatal directly.
7549 * typeck2.c (ack, my_friendly_assert): Delete.
7550 (my_friendly_abort): Rename to friendly_abort. Expect file,
7551 line, and function parameters. Report the abort code, then
7552 call fancy_abort. Do not mask an abort if errors have
7553 already occurred.
7554
a306451c
NS
75552000-07-18 Nathan Sidwell <nathan@codesourcery.com>
7556
7557 * typeck.c (comp_target_parms): Remove obsolete parameter.
7558 (comp_target_types): Adjust.
7559
f49fad00
JM
75602000-07-17 Jason Merrill <jason@redhat.com>
7561
7562 * typeck.c (mark_addressable): Never set TREE_USED.
7563 * call.c (build_call): Don't abort on calls to library functions
7564 that have been declared normally.
7565
7566 * typeck.c (build_binary_op): Fix grammar in warning.
7567
7568 * exception.cc (__eh_free): Fix prototype.
7569
7570 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
7571
0e5921e8 7572 * decl.c (pushdecl): Handle seeing an OVERLOAD in
f49fad00
JM
7573 IDENTIFIER_NAMESPACE_VALUE.
7574
69690d98
MM
75752000-07-16 Mark Mitchell <mark@codesourcery.com>
7576
7577 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
7578 * method.c (use_thunk): Correct handling of vcall offsets.
7579
bfbbc080
ZW
75802000-07-14 Zack Weinberg <zack@wolery.cumb.org>
7581
7582 * .cvsignore: parse.h and parse.c have no cp- prefix.
7583
83a90717
MM
75842000-07-13 Mark Mitchell <mark@codesourcery.com>
7585
7586 * .cvsignore: New file.
7587
ea414c97
ZW
75882000-07-13 Zack Weinberg <zack@wolery.cumb.org>
7589
7590 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
7591
792abd35
MM
75922000-07-12 Mark Mitchell <mark@codesourcery.com>
7593
7594 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
7595 * parse.c: Remove.
7596 * parse.h: Likewise.
7597
72a50ab0
MM
75982000-07-11 Mark Mitchell <mark@codesourcery.com>
7599
7600 * class.c (layout_class_type): Add pointers to virtual bases after
7601 base classes under the old ABI.
7602
0dfdeca6
BC
76032000-07-10 Benjamin Chelf <chelf@codesourcery.com>
7604
7605 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
7606 (finish_continue_stmt): Likewise.
7607 (begin_for_stmt): Remove call to note_level_for_for.
7608 (finish_goto_stmt): Change call from build_min_nt
7609 to build_stmt.
7610 (finish_expr_stmt): Likewise.
7611 (begin_if_stmt): Likewise.
7612 (begin_while_stmt): Likewise.
7613 (finish_while_stmt): Likewise.
7614 (finish_return_stmt): Likewise.
7615 (begin_for_stmt): Likewise.
7616 (finish_for_stmt): Likewise.
7617 (finish_break_stmt): Likewise.
7618 (begin_switch_stmt): Likewise.
7619 (finish_case_label): Likewise.
7620 (genrtl_try_block): Likewise.
7621 (begin_try_block): Likewise.
7622 (begin_handler): Likewise.
7623 (begin_compound_stmt): Likewise.
7624 (finish_asm_stmt): Likewise.
7625 (finish_label_stmt): Likewise.
7626 (add_decl_stmt): Likewise.
7627 (finish_subobject): Likewise.
7628 (finish_decl_cleanup): Likewise.
7629 (finish_named_return_value): Likewise.
7630 (setup_vtbl_ptr): Likewise.
7631 (add_scope_stmt): Likewise.
7632 * decl.c (finish_constructor_body): Likewise.
7633 (finish_destructor_body): Likewise.
7634 * optimize.c (copy_body_r): Likewise.
7635 (initialize_inlined_parameters): Likewise.
7636 (declare_return_variable): Likewise.
7637 (expand_call_inline): Likewise.
0e5921e8 7638
f12eef58
JJ
76392000-07-10 Jakub Jelinek <jakub@redhat.com>
7640
7641 * semantics.c (expand_body): Sync interface information
7642 at the end of function body expansion.
7643
2bb5d995
JM
76442000-07-09 Jason Merrill <jason@redhat.com>
7645
7646 * init.c (build_new_1): Bail early if the call to new fails.
7647
0e5921e8 7648 * decl.c (compute_array_index_type): Check specifically for
2bb5d995
JM
7649 an INTEGER_CST, not just TREE_CONSTANT.
7650
0e5921e8 7651 * decl.c (duplicate_decls): Don't call duplicate_decls on
2bb5d995
JM
7652 the DECL_TEMPLATE_RESULT.
7653 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
7654 codes.
7655
7656 * error.c (dump_template_bindings): Don't crash if we had an
7657 invalid argument list.
7658
7659 * typeck.c (c_expand_start_case): Do narrowing here.
7660 * semantics.c (finish_switch_cond): Not here.
7661
76622000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
7663
7664 * parse.y (asm_clobbers): Do string concatenation.
7665
089acd57
MM
76662000-07-09 Mark Mitchell <mark@codesourcery.com>
7667
7668 * decl.c (pushtag): Don't put local classes in template functions
7669 on the local_classes list.
7670
76712000-07-04 Scott Snyder <snyder@fnal.gov>
7672
7673 * decl2.c (get_guard): Add missing return for old ABI local
7674 variable case.
7675
7b019c19
MM
76762000-07-09 Mark Mitchell <mark@codesourcery.com>
7677
7678 * cp-tree.h (char_type_p): New function.
7679 * decl.c (init_decl_processing): Don't initialize
7680 signed_wchar_type_node or unsigned_wchar_type_node.
7681 (complete_array_type): Handle brace-enclosed string-constants.
7682 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
7683 * tree.c (char_type_p): New function.
7684 * typeck2.c (digest_init): Use char_type_p.
7685
a5f1c5f8
NS
76862000-07-06 Nathan Sidwell <nathan@codesourcery.com>
7687
7688 * pt.c (tsubst): Don't layout type, if it's error_mark.
7689
84e5ca0f
NS
76902000-07-06 Nathan Sidwell <nathan@codesourcery.com>
7691
7692 * pt.c (instantiate_pending_templates): Reset template level.
7693
ab785305
JM
76942000-07-05 Jason Merrill <jason@redhat.com>
7695
7696 * call.c (joust): Don't complain about `operator char *()' beating
7697 `operator const char *() const'.
7698
90418208
JM
76992000-07-04 scott snyder <snyder@fnal.gov>
7700 Jason Merrill <jason@redhat.com>
7701
0e5921e8 7702 * repo.c (repo_get_id): Handle the case where a class with virtual
90418208
JM
7703 bases has a null TYPE_BINFO_VTABLE.
7704
77052000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
7706 Jason Merrill <jason@redhat.com>
7707
7708 * parse.y (member_init): Just pass in the type.
7709 * init.c (expand_member_init): Handle getting a type.
7710
7711