]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/ChangeLog
2003-01-14 Michael Koch <konqueror@gmx.de>
[gcc.git] / gcc / cp / ChangeLog
CommitLineData
a7189b49
JO
12003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
2
3 Further conform g++'s __vmi_class_type_info to the C++ ABI
4 specification.
5 * rtti.c (dfs_class_hint_mark): Do not set hints not specified by
6 the specification.
7 (class_hint_flags): Likewise.
8
cf22909c
KL
92003-01-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10
11 * config-lang.in: Add semantics.c to gtfiles.
12 * cp-tree.h (flagged_type_tree_s): Remove lookups field.
13 (saved_scope): Likewise.
14 (type_lookups): Remove.
15 (deferred_access): New structure.
16 (type_access_control): Remove.
17 (save_type_access_control): Likewise.
18 (reset_type_access_control): Likewise.
19 (decl_type_access_control): Likewise.
20 (push_deferring_access_checks): Declare.
21 (resume_deferring_access_checks): Likewise.
22 (stop_deferring_access_checks): Likewise.
23 (pop_deferring_access_checks): Likewise.
24 (get_deferred_access_checks): Likewise.
25 (pop_to_parent_deferring_access_checks): Likewise.
26 (perform_deferred_access_checks): Likewise.
27 (perform_or_defer_access_check): Likewise.
28 * decl.c (make_typename_type): Use perform_or_defer_access_check.
29 (make_unbound_class_template): Likewise.
30 (grokdeclarator): Don't call decl_type_access_control.
31 * parser.c (cp_parser_context): Remove deferred_access_checks
32 and deferring_access_checks_p fields.
33 (cp_parser_context_new): Adjust.
34 (cp_parser): Remove access_checks_lists.
35 (cp_parser_defer_access_check): Remove.
36 (cp_parser_start_deferring_access_checks): Remove.
37 (cp_parser_stop_deferring_access_checks): Remove.
38 (cp_parser_perform_deferred_access_checks): Remove.
39 (cp_parser_nested_name_specifier_opt): Use new deferred access
40 functions.
41 (cp_parser_simple_declaration): Likewise.
42 (cp_parser_template_id): Likewise.
43 (cp_parser_function_definition): Likewise.
44 (cp_parser_class_specifier): Likewise.
45 (cp_parser_lookup_name): Likewise.
46 (cp_parser_single_declaration): Likewise.
47 (cp_parser_pre_parsed_nested_name_specifier): Likewise.
48 (cp_parser_parse_tentatively): Likewise.
49 (cp_parser_parse_definitely): Likewise.
50 (yyparse): Likewise.
51 (cp_parser_init_declarator): Remove access_checks parameter.
52 Use new deferred access functions.
53 (cp_parser_function_definition_from_specifiers_and_declarator):
54 Likewise.
55 (cp_parser_class_head): Remove deferring_access_checks_p and
56 saved_access_checks parameters. Use new deferred access functions.
57 (cp_parser_member_specification_opt): Don't call
58 reset_type_access_control.
59 * search.c (type_access_control): Remove.
60 * semantics.c: Include "gt-cp-semantics.h".
61 (deferred_type_access_control): Remove.
62 (deferred_access_stack): New variable.
63 (deferred_access_free_list): Likewise.
64 (push_deferring_access_checks): New function.
65 (resume_deferring_access_checks): Likewise.
66 (stop_deferring_access_checks): Likewise.
67 (pop_deferring_access_checks): Likewise.
68 (get_deferred_access_checks): Likewise.
69 (pop_to_parent_deferring_access_checks): Likewise.
70 (perform_deferred_access_checks): New function, adapted from
71 cp_parser_perform_deferred_access_checks.
72 (perform_or_defer_access_check): New function, adapted from
73 cp_parser_defer_access_check.
74 (current_type_lookups): Remove.
75 (deferred_type_access_control): Likewise.
76 (decl_type_access_control): Likewise.
77 (save_type_access_control): Likewise.
78 (reset_type_access_control): Likewise.
79 (begin_function_definition): Adjust.
80 (begin_class_definiton): Likewise.
81
f576dfc4
JM
822003-01-13 Jason Merrill <jason@redhat.com>
83
84 PR c++/8748
85 * class.c (build_base_path): Take the address before calling save_expr.
86
87 * call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if
88 all the ambiguous conversions are bad.
89
90 * class.c (maybe_warn_about_overly_private_class): Don't stop
91 searching when we find a nonprivate method.
92
93 * typeck.c (build_class_member_access_expr): Use unary_complex_lvalue.
94
8fa1ad0e
MM
952003-01-12 Mark Mitchell <mark@codesourcery.com>
96
97 * cp-tree.h (get_arglist_len_in_bytes): Remove.
98
99 PR c++/9264
100 * parser.c (cp_parser_elaborated_type_specifier): Handle erroneous
101 typeame types more robustly.
102
15d2cb19
PE
1032003-01-11 Phil Edwards <pme@gcc.gnu.org>
104
105 * parser.c: Fix comment typos.
106
a6f6052a
MM
1072003-01-10 Mark Mitchell <mark@codesourcery.com>
108
99152b95 109 PR c++/9099
a6f6052a
MM
110 * parser.c (cp_parser_scope_through_which_access_occurs): Handle
111 an object_type which is not a class type.
112
3466b292
GK
1132003-01-10 Geoffrey Keating <geoffk@apple.com>
114
115 * parser.c (cp_parser_late_parsing_for_member): Don't cast to void.
116 (cp_parser_late_parsing_default_args): Likewise.
117
b2f29cd9
NN
1182003-01-10 Nathanael Nerode <neroden@gcc.gnu.org>
119
120 * cfns.gperf: ANSIfy function declarations.
121 * cfns.h: Regenerate.
122 * cp-tree.h: ANSIfy function declarations.
123
2050a1bb
MM
1242003-01-10 Mark Mitchell <mark@codesourcery.com>
125
126 * cp-tree.h (reparse_absdcl_as_expr): Remove.
127 (reparse_absdcl_as_casts): Likewise.
128 (reparse_decl_as_expr): Likewise.
129 (finish_decl_parsing): Likewise.
130 * decl2.c (reparse_absdcl_as_expr): Remove.
131 (reparse_absdcl_as_casts): Likewise.
132 (repase_decl_as_expr): Likewise.
133 (finish_decl_parsing): Likewise.
134
135 PR c++/9128
136 PR c++/9153
137 PR c++/9171
138 * parser.c (cp_parser_pre_parsed_nested_name_specifier): New
139 function.
140 (cp_parser_nested_name_specifier_opt): Correct the
141 check_dependency_p false.
142 (cp_parser_postfix_expression): Fix formatting.
143 (cp_parser_decl_specifier_seq): Avoid looking for constructor
144 declarators when possible.
145 (cp_parser_template_id): Avoid performing name-lookup when
146 possible.
147 (cp_parser_class_head): Do not count specializations when counting
148 levels of templates.
149 (cp_parser_constructor_declarator_p): Return immediately if
150 there's no chance that the tokens form a constructor declarator.
151 * rtti.c (throw_bad_typeid): Add comment. Do not return an
152 expression with reference type.
153 (get_tinfo_decl_dynamic): Do not return an expression with
154 reference type.
155 (build_typeid): Add comment. Do not return an expression with
156 reference type.
157 * typeck.c (build_class_member_access_expr): Improve handling of
158 conditionals and comma-expressions as objects.
159
45225759
NN
1602003-01-09 Nathanael Nerode <neroden@gcc.gnu.org>
161
b2f29cd9
NN
162 * cfns.gperf: ANSIfy function declarations.
163 * cfns.h: Regenerate.
164 * cp-tree.h: ANSIfy function declarations.
165 * parser.c: ANSIfy function declarations & definitions.
166
45225759
NN
167 * decl.c (bad_specifiers): Fix parameter order error I introduced.
168
17211ab5
GK
1692003-01-09 Geoffrey Keating <geoffk@apple.com>
170
171 Merge from pch-branch:
172
173 2003-01-09 Geoffrey Keating <geoffk@apple.com>
174
175 Merge to tag pch-merge-20030102:
176
177 * semantics.c (finish_translation_unit): Don't call finish_file.
178 * parser.c: Don't include ggc.h.
179 (cp_lexer_new_main): Rename from cp_lexer_new, only create main lexer,
180 read first token here. Don't allow PCH files after the first
181 token is read.
182 (cp_lexer_new_from_tokens): Duplicate functionality from cp_lexer_new.
183 (cp_lexer_get_preprocessor_token): Allow LEXER to be NULL.
184 (cp_parser_new): Call cp_lexer_new_main before allocating GCed memory.
185 (cp_parser_late_parsing_for_member): Don't duplicate call to
186 cp_lexer_set_source_position_from_token.
187 (cp_parser_late_parsing_default_args): Likewise.
188 (yyparse): Call finish_file after clearing the_parser.
189
190 2002-12-11 Geoffrey Keating <geoffk@apple.com>
191
192 * Make-lang.in: Remove $(GGC_H) from all dependencies.
193 (CXX_TREE_H): Add $(GGC_H).
194 * class.c: Don't include ggc.h.
195 (field_decl_cmp): Make parameters be 'const void *' to match qsort.
196 (method_name_cmp): Likewise.
197 (resort_data): New variable.
198 (resort_field_decl_cmp): New.
199 (resort_method_name_cmp): New.
200 (resort_sorted_fields): New.
201 (resort_type_method_vec): New.
202 (finish_struct_methods): Delete cast.
203 (finish_struct_1): Delete cast.
204 * cp-tree.h: Include ggc.h.
205 (struct lang_type_class): Add reorder attribute to field `methods'.
206 (union lang_decl_u3): Add reorder attribute to field `sorted_fields'.
207 (resort_sorted_fields): New prototype.
208 (resort_type_method_vec): New prototype.
209 * call.c: Don't include ggc.h.
210 * decl.c: Likewise.
211 * decl2.c: Likewise.
212 * init.c: Likewise.
213 * lex.c: Likewise.
214 * method.c: Likewise.
215 * optimize.c: Likewise.
216 * parse.y: Likewise.
217 * pt.c: Likewise.
218 * repo.c: Likewise.
219 * search.c: Likewise.
220 * semantics.c: Likewise.
221 * spew.c: Likewise.
222 * tree.c: Likewise.
223
224 * lang-specs.h: Remove comment.
225
226 2002-12-03 Geoffrey Keating <geoffk@apple.com>
227
228 * cp-tree.h (struct operator_name_info_t): Mark for GTY machinery.
229 (operator_name_info): Mark to be saved for PCH, specify size.
230 (assignment_operator_name_info): Likewise.
231
232 2002-11-19 Geoffrey Keating <geoffk@apple.com>
233
234 * decl.c (anon_cnt): Mark to be saved for PCH.
235
236 2002-10-25 Geoffrey Keating <geoffk@apple.com>
237
238 * lex.c (init_reswords): Delete now-untrue comment.
239 Allocate ridpointers using GGC.
240
241 2002-10-04 Geoffrey Keating <geoffk@apple.com>
242
243 * cp-tree.h (union lang_decl_u2): Add tags to all fields.
244
245 * g++spec.c (lang_specific_driver): Don't include standard
246 libraries in `added'.
247
248 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
249
250 * decl2.c (finish_file): Call c_common_write_pch.
251 * Make-lang.in (CXX_C_OBJS): Add c-pch.o.
252
253 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
254
255 * g++spec.c (lang_specific_driver): Treat .h files as C++ header
256 files when using g++.
257 * lang-specs.h: Handle compiling C++ header files.
258
ca5dd8b7
JJ
2592003-01-09 Jakub Jelinek <jakub@redhat.com>
260
261 * decl.c (start_decl): Only check DECL_THREAD_LOCAL for VAR_DECLs.
262
0f399e5f
KL
2632003-01-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
264
265 * pt.c (push_access_scope_real): Call push_to_top_level for
266 function in namespace scope.
267 (pop_access_scope): Call pop_from_top_level for function in
268 namespace scope.
269
c456a45a
JJ
2702003-01-09 Jakub Jelinek <jakub@redhat.com>
271
272 * decl.c (start_decl): Don't set DECL_COMMON for __thread variables.
273
2c6ce97e
CC
2742003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
275
276 * Make-lang.in (c++.install-common, c++.install-man,
277 c++.uninstall): Prepend $(DESTDIR) to destination paths in
278 all (un)installation commands.
279 (c++.install-common): Rewrite $(LN) commands to support
280 DESTDIR with "ln" as well as with "ln -s".
281
f74dbcec
JM
2822003-01-08 Jason Merrill <jason@redhat.com>
283
284 * parser.c (cp_parser_primary_expression): See through explicitly
285 scoped ALIAS_DECLs, too.
286
11f6b451
NN
2872003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
288
1774f99d
NN
289 * decl.c: Remove some #if 0 code.
290
11f6b451
NN
291 * decl.c: ANSIfy function declarations.
292
8caf4c38
MM
2932003-01-07 Mark Mitchell <mark@codesourcery.com>
294
295 * parser.c (cp_parser_asm_definition): Correct handling of omitted
296 operands.
297
2b59fc25
KL
2982003-01-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
299
300 PR c++/9030
301 * decl.c (make_typename_type): Check access only when tf_error.
302 (make_unbound_class_template): Likewise.
303 * pt.c (saved_access_scope): New variable.
304 (push_access_scope_real): New function.
305 (push_access_scope): Likewise.
306 (pop_access_scope): Likewise.
307 (tsubst_default_argument): Use them.
308 (instantiate_template): Likewise.
309 (regenerate_decl_from_template): Likewise.
310 (instantiate_decl): Likewise.
311 (get_mostly_instantiated_function_type): Likewise.
312
3f7617e4
NN
3132003-01-07 Nathanael Nerode <neroden@gcc.gnu.org>
314
315 * tree.c: Delete bogus #if 0 code.
316
c9372112
AS
3172003-01-07 Andreas Schwab <schwab@suse.de>
318
319 * class.c (layout_class_type): Don't use
320 PCC_BITFIELD_TYPE_MATTERS if not defined.
321
8218bd34
MM
3222003-01-06 Mark Mitchell <mark@codesourcery.com>
323
c10cdb3d
MM
324 PR c++/9165
325 * decl2.c (build_cleanup): Mark the object as used.
326
69f794a7
MM
327 * pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
328 (hash_local_specialization): New function.
329 (register_local_specialization): Revert 2003-01-05 change.
330 (instantiate_decl): Use hash_local_specialization when creating
331 the local_specializations table.
332
4c4646b5
MM
333 * decl2.c (mark_used): Do not synthesize thunks.
334
63e5f567
MM
335 * class.c (layout_class_type): Correct handling of unnamed
336 bitfields wider than their types.
337
8218bd34
MM
338 PR c++/9189
339 * parser.c (cp_parser): Remove default_arg_types. Update
340 documentation for unparsed_functions_queues.
341 (cp_parser_late_parsing_default_args): Take a FUNCTION_DECL as the
342 parameter.
343 (cp_parser_new): Don't set parser->default_arg_types.
344 (cp_parser_function_definition): Adjust usage of
345 unparsed_funtions_queues.
346 (cp_parser_class_specifier): Don't mess with
347 parser->default_arg_types. Handle default argument processing in
348 a separate phase from function body processing.
349 (cp_parser_template_declaration_after_export): Adjust usage of
350 unparsed_functions_queues.
351 (cp_parser_late_parsing_for_member): Do not handle default
352 arguments.
353
62b8a44e
NS
3542003-01-06 Nathan Sidwell <nathan@codesourcery.com>
355
356 PR c++/9109
357 * parser.c (cp_parser_declarator_kind): New enum.
358 (cp_parser_declarator): Adjust.
359 (cp_parser_direct_declarator): Adjust. Allow for either named or
360 abstract declarator. Prefer abstract, if possible. Allow
361 parenthesized function name.
362 (cp_parser_condition): Adjust cp_parser_declarator call.
363 (cp_parser_explicit_instantiation): Likewise.
364 (cp_parser_init_declarator): Likewise.
365 (cp_parser_type_id): Likewise.
366 (cp_parser_function_definition): Likewise.
367 (cp_parser_member_declaration): Likewise.
368 (cp_parser_parameter_declaration): Use cp_parser_declarator to do
369 the tentative parsing.
370 (cp_parser_exception_declaration): Likewise.
371
ec194454
MM
3722003-01-05 Mark Mitchell <mark@codesourcery.com>
373
374 * parser.c (cp_parser_template_parameter): Adjust call to
375 cp_parser_parameter_declaration.
376 (cp_parser_parameter_declaration_list): Likewise.
377 (cp_parser_parameter_declaration): Replace
378 greater_than_is_operator_p with template_parm_p parameter. Do not
379 cache tokens for template default arguments.
380
381 * pt.c (retrieve_local_specialization): Use htab_find, not
382 htab_find_with_hash.
383 (register_local_specialization): Use htab_find_slot, not
384 htab_find_slot_with_hash.
385 (instantiate_decl): Pass a hash function to htab_create.
386
39b1af70
KG
3872003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
388
389 * parser.c (cp_parser_binary_expression,
390 cp_parser_multiplicative_expression,
391 cp_parser_additive_expression, cp_parser_shift_expression,
392 cp_parser_relational_expression, cp_parser_equality_expression,
393 cp_parser_and_expression, cp_parser_exclusive_or_expression,
394 cp_parser_inclusive_or_expression,
395 cp_parser_logical_and_expression, cp_parser_logical_or_expression,
396 cp_parser_binary_expression): Const-ify.
397
1bb2cc34
MM
3982003-01-04 Mark Mitchell <mark@codesourcery.com>
399
400 * method.c (use_thunk): Disable access control while building the
401 body of the thunk.
402
3fd5abcf
NN
4032003-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
404
405 * cvt.c, decl.c, decl2.c: This is the C++ front end, not the C
406 front end.
407
9aad8f83
MA
4082003-01-03 Matt Austern <austern@apple.com>
409
410 * cp-tree.h (struct lang_type_class): add field for key method
411 (cp_global_trees): rename dynamic_classes to keyed_classes
412 (key_method): add definition
413 * class.c (finish_struct_1): compute class's key method, and add
414 the class to keyed_classes list if there is no key method.
415 * decl.c (finish_function): add class to keyed_classes list if we
416 see a definition of the class's key method.
417 * pt.c (instantiate_class_template): add template specialization
418 of a dynamic class to keyed_classes list.
419 * decl2.c (key_method): remove
420 (finish_file): iterate only through keyed_classes list when
421 deciding whether to emit vtables, remove class from its list after
422 we do the emission.
423
6cce57b0
JM
4242003-01-02 Jason Merrill <jason@redhat.com>
425
4e8dca1c
JM
426 * call.c (build_conditional_expr): Stabilize lvalues properly.
427 * cvt.c (ocp_convert): Don't build NOP_EXPRs of class type.
428 * tree.c (lvalue_p_1): Don't allow sloppy NOP_EXPRs as lvalues.
429 Don't allow CALL_EXPR or VA_ARG_EXPR, either.
430
431 * call.c (convert_like_real): Call decl_constant_value for an
432 IDENTITY_CONV even if there are no more conversions.
433
434 * cvt.c (build_up_reference): Don't push unnamed temps.
435
436 * decl2.c (do_namespace_alias): Namespace aliases are DECL_EXTERNAL.
437
438 * dump.c (cp_dump_tree): Don't try to dump class-specific fields
439 for a backend struct.
440
441 * except.c (wrap_cleanups_r, build_throw): Make
442 MUST_NOT_THROW_EXPRs void.
443 * init.c (expand_default_init): Update to handle MUST_NOT_THROW_EXPR.
444
445 * init.c (build_vec_delete_1): Pre-evaluate the base address.
446
447 * init.c (get_temp_regvar): Simplify logic.
448
449 * tree.c (cp_copy_res_decl_for_inlining): Only do debug tweaks if
450 our replacement is a decl.
451
6cce57b0
JM
452 * decl.c (cp_make_fname_decl): Push the decls inside the
453 outermost scope.
454
31758337
NS
4552003-01-03 Nathan Sidwell <nathan@codesourcery.com>
456
457 PR c++/45, c++/3784
458 * tree.c (cp_tree_equal, TEMPLATE_PARM_INDEX): The types must be
459 the same too.
460
24c0ef37
GS
4612003-01-03 Graham Stott <graham.stott@btinternet.com>
462
463 * parser.c (struct cp_parser): Add access_checks_lists field
464 (cp_parser_simple_declaration): Use.
465 (cp_parser_init_declarator): Likewise.
466
5e8a153a
MM
4672003-01-02 Mark Mitchell <mark@codesourcery.com>
468
1092805d
MM
469 * parser.c (cp_parser_declaration): Accept the __extension__
470 keyword before the declaration.
471
4971227d
MM
472 PR c++/2843
473 * parser.c (cp_parser_parameter_declaration): Allow attributes to
474 appear after the declarator.
475
5e8a153a
MM
476 * call.c (build_new_method_call): Fix typo in message format
477 string.
478
3beb3abf
MM
4792003-01-02 Mark Mitchell <mark@codesourcery.com>
480
f7b5ecd9
MM
481 * parser.c (cp_lexer_next_token_is): Declare it inline.
482 (cp_lexer_set_source_position_from_token): Likewise.
483 (cp_lexer_debugging_p): Likewise.
484 (cp_parser_parsing_tentatively): Likewise.
485 (cp_parser_nested_name_specifier_opt): Reduce the number of calls
486 to the cp_lexer_peek_token.
1092805d 487
3beb3abf
MM
488 * parser.c (cp_parser_sizeof_operand): Do not evaluate the
489 expression.
490
43c6a96a
SB
4912003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
492
493 * cp/except.c, cp/expr.c, cp/friend.c, cp/g++spec.c,
494 cp/lang-options.h, cp/lang-specs.h, cp/lex.h, cp/ptree.c,
495 cp/repo.c: Fix copyright years.
496
c58b209a
NB
4972003-01-01 Neil Booth <neil@daikokuya.co.uk>
498
499 * lex.c: Remove superfluous include of cpplib.h.
500 (CONSTRAINT): Define without conditions.
501 (init_cp_pragma): Use c_register_pragma.
502
7347c2c5
NB
5032002-12-31 Neil Booth <neil@daikokuya.co.uk>
504
505 * .cvsignore: Remove.
506
f5adbb8d
SB
5072002-12-31 Steven Bosscher <s.bosscher@student.tudelft.nl>
508
509 * call.c, class.c, cp-lang.c, cp-tree.h, cvt.c, dump.c, error.c,
510 except.c, expr.c friend.c, g++spec.c, init.c, lang-options.h,
511 lang-specs.h, lex.c, mangle.c, method.c, optimize.c, parser.c,
512 pt.c, ptree.c, repo.c, rtti.c, search.c, semantics.c, tree.c,
513 typeck.c, typeck2.c: Replace "GNU CC" with "GCC" in the
514 copyright header.
515 * lex.h: parse.y is dead, so don't mention it. Also replace the
516 copyright header with the default GNU copyright header.
517
f1aba0a5
MM
5182002-12-31 Mark Mitchell <mark@codesourcery.com>
519
eea9800f
MM
520 * cp-tree.h (LOOKUP_TEMPLATES_EXPECTED): Remove.
521 (lookup_name_namespace_only): Likewise.
522 (begin_only_namespace_names): Likewise.
523 (end_only_namespace_names): Likewise.
524 * decl.c (only_namespace_names): Remove.
525 (qualify_lookup): Do not check LOOKUP_TEMPLATES_EXPECTED.
526 (lookup_name_real): Do not check only_namespace_names.
527 (lookup_name_namespace_only): Remove.
528 (begin_only_namespace_names): Likewise.
529 (end_only_namespace_names): Likewise.
530 * parser.c (cp_parser_nested_name_specifier_opt): Handle erroneous
531 nested-name-specifiers more gracefully.
532 (cp_parser_class_or_namespace_name): Avoid looking up namespace
533 names when they cannot possibly appear.
534 (cp_parser_template_name): Adjust call to cp_parser_lookup_name.
535 (cp_parser_elaborated_type_specifier): Likewise.
536 (cp_parser_namespace_name): Only look for namespace names.
537 (cp_parser_lookup_name): Add is_namespace parameter.
538 (cp_parser_lookup_name_simple): Adjust call to
539 cp_parser_lookup_name.
540
f1aba0a5
MM
541 * parser.c (cp_parser_dependent_type_p): Fix thinko.
542
eea9800f
MM
5432002-12-31 Neil Booth <neil@daikokuya.co.uk>
544
545 * .cvsignore: Update.
546
3cfabe60
NS
5472002-12-31 Nathan Sidwell <nathan@codesourcery.com>
548
549 * class.c (modify_vtable_entry): Remove unused variable.
550 (get_vcall_index): Always expect a non-thunk.
551 (update_vtable_entry_for_fn): Combine covariant adjustments, when
552 overriding a thunk. Pass get_vcall_index a non-thunk.
553
554 * decl2.c (finish_file): Mark undefined inlines as extern.
555
92bc1323
MM
5562002-12-31 Mark Mitchell <mark@codesourcery.com>
557
558 * cp-tree.def (RETURN_INIT): Remove.
559 * cp-tree.h (DECL_IN_MEMORY_P): Remove.
560 (scope_kind): Add sk_block, sk_try, sk_catch, sk_for.
561 (note_level_for_for): Remove.
562 (note_level_for_try): Likewise.
563 (note_level_for_catch): Likewise.
564 (finish_named_return_value): Likewise.
565 (do_pushlevel): Change prototype.
566 (pending_lang_change): Remove.
567 * decl.c (begin_scope): Handle sk_block, sk_try, sk_catch,
568 sk_for.
569 (note_level_for_for): Remove.
570 (note_level_for_try): Likewise.
571 (note_level_for_catch): Likewise.
572 (maybe_inject_for_scope_var): Remove use of DECL_IN_MEMORY_P.
573 * parser.c (cp_parser_context_free_list): Make it "deletable".
574 (cp_parser_template_argument): Remove misleading comment.
575 * pt.c (tsubst_expr): Remove RETURN_INIT code.
576 * semantics.c (genrtl_named_return_value): Remove.
577 (do_pushlevel): Take a scope kind as an argument.
578 (begin_if_stmt): Adjust.
579 (begin_while_stmt): Likewise.
580 (begin_for_stmt): Likewise.
581 (finish_for_init_stmt): Likewise.
582 (begin_switch_stmt): Likewise.
583 (begin_handler): Likewise.
584 (begin_compound_stmt): Likewise.
585 (finish_named_return_value): Remove.
586 (cp_expand_stmt): Remove RETURN_INIT case.
587 * tree.c (cp_statement_code_p): Remove RETURN_INIT case.
43c6a96a 588
abda8efe
MM
5892002-12-31 Mark Mitchell <mark@codesourcery.com>
590
591 PR c++/9112
592 * parser.c (cp_parser_direct_declarator): Handle erroneous
593 parenthesized declarators correctly.
594
eddcae5a
GDR
5952002-12-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
596
597 * cp-tree.h (pending_lang_change): Declare.
598
c838d82f
MM
5992002-12-30 Mark Mitchell <mark@codesourcery.com>
600
e5976695
MM
601 * parser.c (cp_parser_context_free_list): New variable.
602 (cp_parser_context_new): Use it.
603 (cp_parser_error): Check return code from
604 cp_parser_simulate_error.
605 (cp_parser_simulate_error): Return a value.
606 (cp_parser_id_expression): Optimize common case.
607 (cp_parser_class_name): Likewise.
608 (cp_parser_class_specifier): Adjust call to
609 cp_parser_late_parsing_default_args.
610 (cp_parser_lookup_name): Optimize common case.
611 (cp_parser_late_parsing_for_member): Adjust call to
612 cp_parser_late_parsing_default_args.
613 (cp_parser_late_parsing_default_args): Add scope parameter.
614 (cp_parser_require): Avoid creating the error message unless it's
615 needed.
616 (cp_parser_parse_definitely): Place free'd contexts on the free
617 list.
618
c838d82f
MM
619 * parser.c (cp_parser_declaration_seq_opt): Handle pending_lang_change.
620
c73aecdf
DE
6212002-12-30 David Edelsohn <edelsohn@gnu.org>
622
623 * parser.c (cp_parser_parameter_declaration_clause): Treat system
624 header as extern "C" if NO_IMPLICIT_EXTERN_C undefined.
625
b599b135
NN
6262002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
627
43c6a96a 628 * config-lang.in, Make-lang.in, operators.def, cp-tree.def:
b599b135
NN
629 GCC, not GNU CC.
630
946d5e45
MM
6312002-12-30 Mark Mitchell <mark@codesourcery.com>
632
afd9b9dd
MM
633 * parse.y: Remove.
634 * spew.c: Likewise.
635 * Make-lang.in (gt-cp-spew.h): Remove.
636 * cp-tree.h (do_pending_lang_change): Remove.
637 (do_identifier): Change prototype.
638 (finish_id_expr): Remove.
639 * decl.c (lookup_name_real): Remove yylex variable.
640 * decl2.c (build_expr_from_tree): Adjust call to do_identifier.
641 * lex.c (init_cpp_parse): Remove.
642 (reduce_cmp): Likewise.
643 (token_cmp): Likewise.
644 (yychar): Likewise.
645 (lastiddecl): Likewise.
646 (token_count): Likewise.
647 (reduce_count): Likewise.
648 (yyhook): Likewise.
649 (print_parse_statistics): Likewise.
650 (do_pending_lang_change): Likewise.
651 (do_identifier): Remove parsing parameter.
652 * lex.h (lastiddecl): Remove.
653 (looking_for_typename): Remove.
654 (looking_for_template): Likewise.
655 (pending_lang_change): Likewise.
656 (yylex): Likewise.
657 * semantics.c (finish_id_expr): Remove.
43c6a96a 658
946d5e45
MM
659 * decl.c (grokdeclarator): Diagnost "extern thread" and "static
660 thread" correctly.
661
1c313945
NN
6622002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
663
664 * decl.c, decl2.c, decl.h: GCC, not GNU CC. This is the C++ front
665 end, not the C front end.
666
8e268f72
NS
6672002-12-30 Nathan Sidwell <nathan@codesourcery.com>
668
669 * cp-tree.h (THUNK_TARGET): New macro.
670 (THUNK_VIRTUAL_OFFSET): For result thunks it is always a binfo.
671 (finish_thunk): Remove offset parms.
672 * class.c (find_final_overrider): Look through thunks.
673 (get_vcall_index): Use THUNK_TARGET.
674 (update_vtable_entry_for_fn): Look through thunks. Set covariant
675 fixed offset here. Adjust finish_thunk call.
676 (build_vtbl_initializer): Adjust finish_thunk calls.
677 * mangle.c (mangle_call_offset): Remove superfluous if.
678 (mangle_thunk): Adjust.
679 * method.c (make_thunk): Adjust.
680 (finish_thunk): Adjust.
681 (thunk_adjust): Remove assert.
682 (use_thunk): Use THUNK_TARGET
683 * dump1.c (cp_dump_tree): Adjust thunk dumping.
684
685 PR c++/9054
686 * class.c (layout_class_type): Set TYPE_CONTEXT of type for base.
687 * dump.c (cp_dump_tree, RECORD_TYPE): Deal with type for base types.
688
848eed92
GDR
6892002-12-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
690
691 Remove traditional C constructs 4/n.
692 * decl2.c (grok_method_quals, warn_if_unknown_interface,
693 grok_x_components, cp_build_parm_decl, build_artificial_parm,
694 maybe_retrofit_in_chrg, grokclassfn, grok_array_decl,
695 delete_sanity, check_member_template, check_java_method,
696 check_classfn, finish_static_data_member_decl, grokfield,
697 grokbitfield, grokoptypename, grok_function_init,
698 cplus_decl_attributes, constructor_name, defer_fn,
699 build_anon_union_vars, finish_anon_union, coerce_new_type,
700 coerce_delete_type, comdat_linkage, maybe_make_one_only,
701 key_method, import_export_vtable, import_export_class,
702 output_vtable_inherit, import_export_decl, import_export_tinfo,
703 build_cleanup, get_guard, get_guard_bits, get_guard_cond,
704 set_guard, start_objects, finish_objects,
705 start_static_storage_duration_function,
706 finish_static_storage_duration_function, get_priority_info,
707 start_static_initialization_or_destruction,
708 finish_static_initialization_or_destruction,
709 do_static_initialization, do_static_destruction,
710 prune_vars_needing_no_initialization, write_out_vars,
711 reparse_decl_as_expr, finish_decl_parsing, namespace_ancestor,
712 add_using_namespace, merge_functions, ambiguous_decl,
713 lookup_using_namespace, lookup_using_namespace,
714 qualified_lookup_using_namespace, set_decl_namespace,
715 decl_namespace, current_decl_namespace, push_decl_namespace,
716 pop_decl_namespace, push_scope, pop_scope, add_function,
717 arg_assoc_namespace, arg_assoc_template_arg, arg_assoc,
718 lookup_arg_dependent, do_namespace_alias,
719 validate_nonmember_using_decl, do_nonmember_using_decl,
720 do_toplevel_using_decl, do_local_using_decl,
721 do_class_using_decl, do_using_directive, check_default_args,
722 mark_used, handle_class_head): Use C90 prototypings. Use booleans.
723 * parser.c (cp_parser_class_head): Use booleanss.
724 * decl.c (walk_globals, walk_vtables): Likewise.
725 * cp-tree.h (walk_globals_pred, walk_globals_fn, walk_vtables,
726 walk_globals): Change return type from 'int' to 'bool'.
727 * rtti.c (init_rtti_processing, build_headof, throw_bad_cast
728 throw_bad_typeid, get_tinfo_decl_dynamic, typeid_ok_p,
729 build_typeid, tinfo_name, get_tinfo_decl, get_tinfo_ptr,
730 get_typeid, ifnonnull, build_dynamic_cast_1, build_dynamic_cast,
731 qualifier_flags, tinfo_base_init, generic_initializer,
732 ptr_initializer, dfs_class_hint_mark, ptm_initializer,
733 dfs_class_hint_unmark, class_hint_flags, class_initializer,
734 typeinfo_in_lib_p, get_pseudo_ti_init, create_pseudo_type_info,
735 get_pseudo_ti_desc, create_tinfo_types, emit_support_tinfos,
736 unemitted_tinfo_decl_p, emit_tinfo_decl): Likewise.
737 * repo.c (repo_compile_flags, repo_template_declared,
738 repo_template_defined, repo_class_defined, repo_get_id,
739 repo_template_used, repo_vtable_used, repo_inline_used,
740 repo_tinfo_used, repo_template_instantiated, extract_string,
741 open_repo_file, afgets, init_repo, reopen_repo_file_for_write,
742 finish_repo): Likewise.
743 * ptree.c (cxx_print_decl, cxx_print_type, cxx_print_identifier,
744 cxx_print_xnode): Likewise..
745 * cp-lang.c (ok_to_generate_alias_set_for_type, cxx_get_alias_set,
746 cxx_warn_unused_global_decl, cp_expr_size): Likewise.
747 * cxxfilt.c (demangle_it, print_demangler_list, usage,
748 standard_symbol_characters, hp_symbol_characters, main, fatal):
43c6a96a 749 Likewise.
848eed92
GDR
750 (strip_underscore): Change type from 'int' to 'bool'.
751 (main): Use boolean constants.
752
b746c5dc
GDR
7532002-12-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
754
755 Remove traditional C constructs 3/n.
756 * cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
757 build_up_reference, warn_ref_binding, convert_to_reference,
758 convert_from_reference, convert_lvalue, cp_convert, ocp_convert,
759 convert_to_void, convert, convert_force, build_type_conversion,
760 build_expr_type_conversion, type_promotes_to,
761 perform_qualification_conversions): Use C90 prototyping style.
762 * decl2.c (grok_array_decl): Use boolean constant.
763 (delete_sanity): Likewise.
764 * typeck.c (build_unary_op): Likewise.
765 * semantics.c (finish_switch_cond): Likewise.
766 * parser.c (cp_parser_direct_new_declarator): Likewise.
767 * init.c (build_new): Likewise.
768
a723baf1
MM
7692002-12-27 Mark Mitchell <mark@codesourcery.com>
770
771 * Make-lang.in (po-generated): Remove parse.c.
772 (CXX_OBJS): Remove parse.o and spew.o. Add parser.o.
773 ($(srcdir)/cp/parse.h): Remove target.
774 ($(srcdir)/cp/parse.c): Likewise.
775 (gt-cp-parse.h): Likewise.
776 (gt-cp-parser.h): New target.
777 (c++.distclean): Do not remove parse.output.
778 (c++.maintainer-clean): Do not remove parse.c or parse.h.
779 (cp/spew.o): Remove target.
780 (cp/lex.o): Adjust dependencies.
781 (cp/pt.o): Likewise.
782 (cp/parse.o): Likewise.
783 (cp/TAGS): Do not mention parse.c.
784 (cp/parser.o): New target.
785 * NEWS: Mention the new parser.
786 * call.c (build_scoped_method_call): Simplify.
787 (build_method_call): Likewise.
788 (build_new_function_call): Adjust calls to add_function_candidate
789 and add_template_candidate.
790 (build_new_op): Improve handling of erroroneous operands.
791 (convert_default_arg): Remove circular argument processing.
792 (name_as_c_string): New function.
793 (build_new_method_call): Use it.
794 (perform_implicit_conversion): Use error_operand_p.
795 * class.c (finish_struct_anon): Use constructor_name_p.
796 (check_field_decls): Likewise.
797 (pop_nested_class): Use OVL_NEXT, not OVL_CHAIN.
798 (resolve_address_of_overloaded_function): Likewise.
799 (instantiate_type): Tweak pointer-to-member handling.
800 (get_primary_binfo): Remove incorrect assertion.
801 * config-lang.in (gtfiles): Add parser.c, remove parse.c.
802 * cp-tree.h (DEFARG_TOKENS): New macro.
803 (default_arg): New structure.
804 (cp_tree_node_structure_enum): Add TS_CP_DEFAULT_ARG.
805 (lang_tree_node): Add default_arg.
806 (cp_tree_index): Add CPTI_TYPE_INFO_REF_TYPE.
807 (type_info_ref_type): New macro.
808 (saved_scope): Make processing_explicit_instantiation a boolean.
809 (check_access): New field.
810 (unparsed_text): Remove.
811 (language_function): Remove unparsed_inlines.
812 (error_operand_p): New macro.
813 (lang_decl): Adjust pending_inline_info.
814 (DEFARG_POINTER): Remove.
815 (tag_types): Add typenames.
816 (lookup_ualified_name): Declare.
817 (lookup_name_real): Likewise.
818 (shadow_tag): Adjust prototype.
819 (get_scope_of_declarator): Declare it.
820 (process_next_inline): Remove it.
821 (check_for_missing_semicolon): Likewise.
822 (maybe_get_template_decl_from_type_decl): Declare it.
823 (finish_label_stmt): Adjust prototype.
824 (finish_non_static_data_meber): Declare it.
825 (finish_pseudo_destructor_call_expr): Rename to ...
826 (finish_pseudo_destructor_expr): ... this.
827 (finish_compound_literal): Declare it.
828 (begin_inline_definitions): Remove it.
829 (init_spew): Remove.
830 (peekyylex): Likewise.
831 (arbitrate_lookup): Likewise.
832 (frob_opname): Likewise.
833 (maybe_snarf_defarg): Likewise.
834 (add_defarg_fn): Likewise.
835 (do_pending_defargs): Likewise.
836 (done_pending_defargs): Likewise.
837 (unprocessed_defarg_fn): Likewise.
838 (replace_defarg): Likewise.
839 (end_input): Likewise.
840 (get_overloaded_fn): Likewise.
841 * cvt.c (convert_to_reference): Improve error handling.
842 * decl.c (lookup_name_real): Do not declare it static.
843 (maybe_push_to_top_level): Set check_access.
844 (identifier_type_value): Adjust call to lookup_name_real.
845 (lookup_qualified_name): New method.
846 (lookup_name_real): Remove special-case parsing code.
847 (lookup_name-nonclass): Adjust call to lookup_name_real.
848 (lookup_name_namespace_only): Likewise.
849 (lookup_name): Likewise.
850 (check_tag_decl): Return the type declared.
851 (shadow_tag): Likewise.
852 (register_dtor_fn): Tweak check_access.
853 (grokfndecl): Use constructor_name_p.
854 (get_scope_of_declarator): New function.
855 (grokdeclarator): Obscure tweaks for slightly different declarator
856 representations.
857 (start_method): Return error_mark_node to indicate failure.
43c6a96a 858 (cp_tree_node_structure_enum): Use TS_CP_DEFAULT_ARG for DEFAULT_ARGs.
a723baf1
MM
859 * decl2.c (constructor_name_full): Simplify.
860 (constructor_name): Use it.
861 (build_expr_from_tree): Adjust for changes to do new parser.
862 (push_scope): Improve robustness.
863 (validate_nonmember_using_decl): Process declarations, not names.
864 (do_class_using_decl): Likewise.
865 (handle_class_head): Do not mess with CLASSTYPE_DECLARED_CLASS
866 here.
867 * error.c (dump_expr): Handle IDENTIFIER_NODEs and BASELINKs.
868 * expr.c (cxx_expand_expr): Handle BASELINKs.
869 * init.c (member_init_ok_or_else): Issue more errors.
870 (build_offset_ref): Tweak handling of FUNCTION_DECLs.
871 * lex.c: Do not include parse.h.
872 (yypring): Do not declare.
873 (yylval): Likewise.
874 (make_reference_declarator): Remove error-generating code.
875 (rid_to_yy): Remove.
876 (cxx_init): Do not call init_spew.
877 (yypring): Remove.
878 (check_for_missing_semicolon): Remove.
879 * lex.h (got_scope): Remove.
880 (got_object): Remove.
881 * method.c (hack_identifier): Use finish_non_static_data_member.
882 (implicitly_declare_fn): Adjust use of constructor_name.
883 * parser.c: New file.
884 * pt.c (parse.h): Do not include it.
885 (maybe_get_template_decl_from_template): Do not declare it.
886 (finish_member_template_decl): Tweak.
887 (begin_explicit_instantiation): Adjust for
888 processing_explicit_instantiation being boolean.
889 (end_explicit_instantiation): Likewise.
890 (maybe_process_partial_specialization): Tighten specialization
891 test.
892 (retrieve_local_specialization): Adjust ue of hash table.
893 (eq_local_specializations): New function.
894 (register_local_specialization): Likewise.
895 (push_template_decl_real): Remove unnecessary test.
896 (maybe_get_template_decl_from_type_decl): Don't make it static.
897 (for_each_template_parm_r): Handle TYPEOF_TYPE.
898 (tsubst_copy): Use retrieive_local_specialization to handle
899 PARM_DECL. Adjust handling of CONST_DECLs. Handle BASELINKs.
900 Handle COMPONENT_REFs with pseudo-destructor-expressions.
901 Simplify handling of CALL_EXPR and METHOD_CALL_EXPR.
902 (tsubst_expr): Pass decls, not names, to do_local_using_decl.
903 (unify): Tweak handling of CONST_DECLs.
904 (regenerate_decl_from_template): Use push_nested_class.
905 (template_for_substitution): New funciton.
906 (instantiate_decl): Use it. Register parameters as local
907 specializations.
908 * rtti.c (init_rtti_processing): Set type_info_ref_type.
909 (build_typeid): Use it.
910 (get_typeid): Likeise.
911 * search.c (accessible_p): Use check_access, not
912 flag_access_control.
913 (adjust_result_of_qualified_name_lookup): Pay attention to the
914 context_class.
915 * semantics.c (finish_asm_stmt): Adjust error handling.
916 (finish_label_stmt): Return the statement.
917 (finish_non_static_data_member): New function.
918 (finish_class_expr): Handle BASELINKs.
919 (finish_call_expr): Handle PSEUDO_DTOR_EXPR.
920 (finish_object_call_expr): Simplify handling during templates.
921 (finish_pseudo_destructor_call_expr): Rename to ...
922 (finish_pseudo_dtor_expr): ... this.
923 (finish_compound_literal): New function.
924 (begin_inline_definitions): Remove.
925 (finish_sizeof): Remove special template handling.
926 * spew.c: Do not include parse.h.
927 * tree.c (get_overloaded_fn): Remove.
928 * typeck.c (build_class_member_access_expr): Handle
929 PSEUDO_DTOR_EXPR. Adjust handling of static member functions.
930 (lookup_destructor): New function.
931 (finish_class_member_access_expr): Use it.
932 (convert_arguments): Simplify.
933 (build_unary_op): Handle BASELINKs.
43c6a96a 934
aac1406f
NS
9352002-12-26 Nathan Sidwell <nathan@codesourcery.com>
936
eab5474f
NS
937 PR c++/4803
938 * decl2.c (mark_used): Defer inline functions.
939 (finish_file): Merge deferred_fns loops. Check all used
940 inline functions have a definition.
941 * method.c (make_thunk): Thunks are not inline.
942
aac1406f
NS
943 PR c++/5116, c++/764
944 * call.c (build_new_op): Make sure template class operands are
945 instantiated.
946
b9201622
NS
9472002-12-24 Nathan Sidwell <nathan@codesourcery.com>
948
3e14cd30
NS
949 PR C++/7964
950 * cp-tree.h (resolve_scoped_fn_name): Prototype.
951 * call.c (resolve_scoped_fn_name): New function. Deal with
952 more template expansion. Broken out of ...
953 * parse.y (parse_finish_call_expr): ... here. Call it.
954 * decl2.c (build_expr_from_tree, CALL_EXPR): Use
955 resolve_scoped_fn_name and build_call_from_tree.
956
b9201622
NS
957 PR c++/9053
958 * decl.c (duplicate_decls): Templates may be disambiguated by
959 return type.
43c6a96a 960
b9201622
NS
961 PR c++/8702
962 * decl2.c (check_classfn): Use lookup_fnfield_1. List all
963 conversion operators on failure.
964
94be8403
GDR
9652002-12-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
966
b746c5dc
GDR
967 Remove traditional C constructs 2/n.
968 * call.c (tourney, build_field_call, equal_functions, joust,
969 compare_ics, build_over_call, build_java_interface_fn_ref,
970 convert_like_real, op_error, build_object_call, resolve_args,
971 build_vfield_ref, check_dtor_name, build_scoped_method_call,
972 build_addr_func, build_call, build_method_call, null_ptr_cst_p,
973 sufficient_parms_p, build_conv, non_reference, strip_top_quals,
974 standard_conversion, reference_related_p,
975 reference_compatible_p, convert_class_to_reference,
976 direct_reference_binding, reference_binding,
977 ,implicit_conversion, is_complete, promoted_arithmetic_type_p,
978 add_template_conv_candidate, any_viable, any_strictly_viable,
979 build_this, splice_viable, print_z_candidates,
980 build_user_type_conversion, build_new_function_call,
981 conditional_conversion, build_conditional_expr, build_new_op,
982 build_op_delete_call, enforce_access, call_builtin_trap,
983 convert_arg_to_ellipsis, build_x_va_arg, cxx_type_promotes_to,
984 convert_default_arg, type_passed_as, convert_for_arg_passing,
985 in_charge_arg_for_name, is_properly_derived_from,
986 maybe_handle_implicit_object, maybe_handle_ref_bind,
987 source_type, add_warning, can_convert, can_convert_arg,
988 perform_implicit_conversion, can_convert_arg_bad,
989 initialize_reference, add_conv_candidate,
990 add_template_candidate_real, add_template_candidate): Ansify.
94be8403 991
081cebb2
NS
9922002-12-22 Nathan Sidwell <nathan@codesourcery.com>
993
994 PR c++/8572
995 * cp-tree.h (grokoptypename): Add SCOPE parameter.
996 * decl2.c (grokoptypename): Add SCOPE parameter. tsubst the type
997 if in a template scope.
998 * parse.y (unoperator): Return the scope.
999 (operator_name): Adjust grokoptypename call.
1000
4f09be91
KL
10012002-12-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1002
1003 * cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
1004 * decl.c (make_unbound_class_template): Adjust. Check for tf_error.
1005 * pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.
1006
4639c5c6
KH
10072002-12-20 Kazu Hirata <kazu@cs.umass.edu>
1008
1009 * ChangeLog: Fix a typo.
1010 * class.c: Fix comment typos.
1011 * cp-tree.h: Likewise.
1012
0ca7178c
JM
10132002-12-18 Jason Merrill <jason@redhat.com>
1014
1015 Handle anonymous unions at the tree level.
1016 C++ ABI change: Mangle anonymous unions using the name of their
1017 first named field (by depth-first search). Should not cause
1018 binary compatibility problems, though, as the compiler previously
1019 didn't emit anything for affected unions.
1020 * cp-tree.def (ALIAS_DECL): New tree code.
1021 * decl2.c (build_anon_union_vars): Build ALIAS_DECLs. Return the
1022 first field, not the largest.
1023 (finish_anon_union): Don't mess with RTL. Do set DECL_ASSEMBLER_NAME,
1024 push the decl, and write it out at namespace scope.
1025 * decl.c (lookup_name_real): See through an ALIAS_DECL.
1026 (pushdecl): Add namespace bindings for ALIAS_DECLs.
1027 * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
1028 of a decl which doesn't have one.
1029 * typeck.c (build_class_member_access_expr): Don't recurse if
1030 we already have the type we want.
1031
da9701a6
KL
10322002-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1033
1034 PR c++/8099
1035 * friend.c (make_friend_class): Allow partial specialization
1036 when declaration is not a template friend.
1037
cab7a9a3
KL
10382002-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1039
1040 PR c++/3663
1041 * pt.c (lookup_template_class): Copy TREE_PRIVATE and
1042 TREE_PROTECTED to created decl nodes.
1043
50cb9059
MM
10442002-12-18 Mark Mitchell <mark@codesourcery.com>
1045
1046 * class.c (build_base_field): Do not set DECL_PACKED on the
1047 FIELD_DECL.
1048
e220f0a4
GDR
10492002-12-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
1050
1051 * cp-tree.h (struct tree_srcloc): Use location_t.
1052 (SOURCE_LOCUS): New.
1053 (SRCLOC_FILE, SRCLOC_LINE): Adjust.
1054
efc7052d
JM
10552002-12-17 Jason Merrill <jason@redhat.com>
1056
1057 * decl.c (finish_function): Also complain about no return in
1058 templates.
43c6a96a 1059 * semantics.c (finish_return_stmt): Also call check_return_expr in
efc7052d
JM
1060 templates.
1061 * typeck.c (check_return_expr): In a template, just remember that we
1062 saw a return.
1063
9f175208
JM
10642002-12-16 Jason Merrill <jason@redhat.com>
1065
89ea02fb
JM
1066 * semantics.c (simplify_aggr_init_exprs_r): Don't change the type
1067 of the CALL_EXPR.
1068
9f175208
JM
1069 * semantics.c (do_pushlevel): Call pushlevel after adding the
1070 SCOPE_STMT.
1071 (do_poplevel): Call poplevel before adding the SCOPE_STMT.
1072 * parse.y (function_body): Go back to using compstmt.
1073 * decl.c (pushdecl): Skip another level to get to the parms level.
1074
1075 * call.c (build_new_method_call): Use is_dummy_object to determine
1076 whether or not to evaluate the object parameter to a static member
1077 function.
1078
4977bab6
ZW
10792002-12-14 Jason Merrill <jason@redhat.com>
1080
1081 * semantics.c (simplify_aggr_init_exprs_r): Also prepend the
1082 return slot for normal functions. Set CALL_EXPR_HAS_RETURN_SLOT_ADDR.
1083 * tree.c (build_cplus_new): If the type isn't TREE_ADDRESSABLE,
1084 don't bother with an AGGR_INIT_EXPR.
1085 (cp_copy_res_decl_for_inlining): If the type isn't TREE_ADDRESSABLE,
1086 just generate a new decl normally. Take return slot parm.
1087 * cp-tree.h: Adjust prototype.
1088
75c525d7
GDR
10892002-12-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1090
1091 PR C++/8031
43c6a96a 1092 * cvt.c (convert_to_pointer_force): Don't try comparing against
75c525d7
GDR
1093 erronous type.
1094
8c6ae51f
GK
10952002-12-13 Geoffrey Keating <geoffk@apple.com>
1096
1097 * cp-tree.h: Have the multiple-include guards around
1098 the entire file.
1099
4977bab6
ZW
11002002-12-10 David Edelsohn <edelsohn@gnu.org>
1101
1102 * cp/spew.c (feed_input): Change limit to last_pos and pos to cur_pos
1103 for SPEW_DEBUG.
1104 (snarf_method): Same.
1105 (snarf_defarg): Same.
1106
d23faea1
MM
11072002-12-10 Mark Mitchell <mark@codesourcery.com>
1108
1109 PR c++/8372
1110 * pt.c (tsubst_copy): Handle destructor names more correctly.
1111
3932057c 11122002-12-10 Matt Austern <austern@apple.com>
d23faea1 1113
3932057c 1114 * cp-tree.h: get rid of needs_virtual_reinit bit.
43c6a96a 1115
dcba9b0f
MM
11162002-12-09 Mark Mitchell <mark@codesourcery.com>
1117
43c6a96a 1118 * NEWS: Document removal of in-class initialization extension for
dcba9b0f
MM
1119 static data members of non-arithmetic, non-enumeration type.
1120 * decl.c (check_static_variable_definition): Do not allow that
1121 extension.
1122 * decl2.c (grokfield): Do not call digest_init when processing
1123 templates.
1124
42b99e03
KG
11252002-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1126
1127 * error.c (dump_expr): Fix format specifier warning.
1128
6c73ad72
GK
11292002-12-04 Geoffrey Keating <geoffk@apple.com>
1130
1131 * class.c (finish_struct_1): Correct comment.
1132 * cp-tree.c (DECL_SORTED_FIELDS): Likewise.
1133
8c048a52
GDR
11342002-12-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1135
1136 PR C++/8799
1137 * error.c (dump_expr): Don't ever try to dump a non-existent
43c6a96a 1138 expression.
8c048a52 1139
4977bab6
ZW
11402002-12-03 Nathan Sidwell <nathan@codesourcery.com>
1141
1142 Implement covariant returns.
1143 * cp-tree.h (IS_AGGR_TYPE_2): Remove.
1144 (struct lang_decl_flags): Add this_thunk_p flag.
1145 Rename vcall_offset to virtual_offset.
1146 (struct lang_decl): Rename delta to fixed_offset.
1147 (DECL_THIS_THUNK_P, DECL_RESULT_THUNK_P): New #defines.
1148 (SET_DECL_THUNK_P): Add THIS_ADJUSTING arg.
1149 (THUNK_DELTA, THUNK_VCALL_OFFSET): Rename to ...
1150 (THUNK_FIXED_OFFSET, THUNK_VIRTUAL_OFFSET): ... here.
1151 (make_thunk): Add this_adjusting arg.
1152 (finish_thunk): Declare.
1153 (mangle_thunk): Add this_adjusting arg.
1154 * class.c (get_vcall_index): Use base function for lookup.
1155 (update_vtable_entry_for_fn): Generate covariant thunk.
1156 (finish_struct_1): Set DECL_VINDEX to NULL for thunks.
1157 (build_vtbl_initializer): Use base function for lookup.
1158 Finish covariant thunk here. Adjust thunk generation.
1159 * dump.c (cp_dump_tree): Simplify DECL_GLOBAL_[CD]TOR_P handling.
1160 Adjust thunk dumping.
1161 * mangle.c (mangle_call_offset): New function.
1162 (mangle_thunk): Adjust for covariant thunks.
1163 * method.c (make_thunk): Adjust. Do not set name here.
1164 (finish_thunk): New function. Set name here.
1165 (use_thunk): Generate covariant thunks too.
1166 (thunk_adjust): New function.
1167 * search.c (covariant_return_p): Remove. Fold into ...
1168 (check_final_overrider): ... here. Simplify.
1169 * semantics.c (emit_associated_thunks): Walk covariant thunk lists.
1170
c203334d
JM
11712002-12-03 Jason Merrill <jason@redhat.com>
1172
c246c65d
JM
1173 PR c++/8674
1174 * call.c (build_over_call): Check specifically for TARGET_EXPR
1175 when eliding.
1176
1177 PR c++/8461, c++/8625
1178 * call.c (convert_for_arg_passing): Don't mess with error_mark_node.
1179 (cp_convert_parm_for_inlining): Remove.
43c6a96a 1180 * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
c246c65d
JM
1181 Remove.
1182 * cp-tree.h (ADDR_IS_INVISIREF): Remove.
1183 * except.c (stabilize_throw_expr): Remove ADDR_IS_INVISIREF code.
1184
c203334d
JM
1185 * call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on
1186 an ambiguous conversion.
1187
ee7ecb29
MM
11882002-12-03 Mark Mitchell <mark@codesourcery.com>
1189
1190 PR c++/8688
1191 * decl.c (reshape_init): Handle erroneous initializers.
1192
5089de93
MM
11932002-12-02 Mark Mitchell <mark@codesourcery.com>
1194
1195 PR c++/8720
1196 * spew.c (remove_last_token): Make sure that last_chunk is set
1197 correctly.
1198
1199 PR c++/8615
1200 * error.c (dump_expr): Handle character constants with
1201 TREE_OVERFLOW set.
43c6a96a 1202
218e0eb6
KL
12032002-12-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1204
1205 DR 180
1206 * decl.c (grokdeclarator): Require class-key for all friend class.
1207 Output the correct type and context in the error message.
1208
a82d6da5
MM
12092002-12-01 Mark Mitchell <mark@codesourcery.com>
1210
94fc547c
MM
1211 PR c++/5919
1212 * pt.c (unify): Use variably_modified_type_p to test validity of
1213 template argument types.
43c6a96a 1214
a82d6da5
MM
1215 PR c++/8727
1216 * cp-tree.h (lang_type_class): Add typeinfo_var.
1217 (CLASSTYPE_TYPEINFO_VAR): New macro.
1218 * rtti.c (get_tinfo_decl): Use it.
1219
1220 PR c++/8663
1221 * init.c (expand_member_init): Always get the main variant of a
1222 base class.
1223
c9f8536c
MM
12242002-12-01 Mark Mitchell <mark@codesourcery.com>
1225
1226 PR c++/8332
1227 PR c++/8493
1228 * decl.c (cxx_init_decl_processing): Use size_type_node, not
1229 c_size_type_node.
1230 * decl2.c (coerce_new_type): Likewise.
1231 * except.c (do_allocate_exception): Likewise.
1232
4977bab6
ZW
12332002-11-30 Zack Weinberg <zack@codesourcery.com>
1234
1235 * call.c, class.c, cp-lang.c, cvt.c, cxxfilt.c, decl.c, decl2.c,
1236 dump.c, error.c, except.c, expr.c, friend.c, g++spec.c, init.c,
1237 lex.c, mangle.c, method.c, optimize.c, parse.y, pt.c, ptree.c,
1238 repo.c, rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
1239 typeck2.c: Include coretypes.h and tm.h.
1240 * Make-lang.in: Update dependencies.
1241
c17707f1
MM
12422002-11-30 Mark Mitchell <mark@codesourcery.com>
1243
328de7c2
MM
1244 PR c++/8227
1245 * decl.c (layout_var_decl): Deal gracefully with erroneous types.
1246 (check_initializer): Validate the type of the initialized
1247 variable, even if the initializer is absent.
1248 * typeck.c (cp_type_quals): Deal gracefully with erroneous types.
43c6a96a 1249
c17707f1
MM
1250 PR c++/8214
1251 * typeck.c (convert_for_assignment): Do not use
1252 decl_constant_value on the operand.
1253
65f8b0fb
MM
1254 PR c++/8511
1255 * pt.c (instantiate_decl): Handle template friends defined outside
1256 of the class correctly.
1257
f6a83eb0
JB
12582002-11-29 Joe Buck <jbuck@synopsys.com>
1259
1260 * parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
1261 anonymous structs.
43c6a96a 1262
ff944b49
MM
12632002-11-29 Mark Mitchell <mark@codesourcery.com>
1264
1265 * class.c (walk_subobject_offsets): Recur on binfos as well as on
1266 types.
1267 (layout_nonempty_base_or_field): Pass it a binfo when processing a
1268 base class.
1269 (layout_empty_base): Likewise.
1270 (build_base_field): Likewise.
43c6a96a 1271
21b3d0ba
MM
12722002-11-27 Mark Mitchell <mark@codesourcery.com>
1273
1274 * class.c (build_base_field): Make sure we get the canonical base
1275 when descending through primary bases.
1276
a16f2357
GK
12772002-11-26 Geoffrey Keating <geoffk@apple.com>
1278
1279 * decl.c (check_initializer): Don't error on initialisation of
1280 a scalar with a brace-enclosed expression.
1281
688f6688
NS
12822002-11-26 Nathan Sidwell <nathan@codesourcery.com>
1283
1284 * cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
1285 (template_parms_equal): Remove prototype.
1286 * typeck.c (buuld_indirect_ref): Reformat.
1287
4977bab6
ZW
12882002-11-25 Jason Merrill <jason@redhat.com>
1289
1290 * init.c (build_vec_init): Use a FOR_STMT instead of an IF_STMT
1291 and a DO_STMT.
1292
b82ddab4
MM
12932002-11-25 Mark Mitchell <mark@codesourcery.com>
1294
2003cd37
MM
1295 * tree.c (cp_build_qualified_type_real): Correct handling of
1296 array types.
1297 * class.c (walk_subobject_offsets): Fix thinko.
1298 (build_base_field): Record offsets of empty bases in primary
1299 virtual bases.
1300 (layout_class_type): Record offsets of empty bases in fields.
43c6a96a 1301
b82ddab4
MM
1302 * search.c (is_subobject_of_p_1): Fix thinko.
1303 (lookup_field_queue_p): Likewise.
1304
8a874cb4
MM
13052002-11-24 Mark Mitchell <mark@codesourcery.com>
1306
1307 * class.c (layout_class_type): Reuse tail padding when laying out
1308 virtual bases.
1309
05abed76
MM
13102002-11-22 Mark Mitchell <mark@codesourcery.com>
1311
1312 * rtti.c (qualifier_flags): Fix thinko.
1313
4977bab6
ZW
13142002-11-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1315
1316 Remove traditional C constructs 1/n.
1317 * cp-tree.h (init_method, set_mangled_name_for_decl,
1318 build_opfncall, hack_identifier, make_thunk, use_thunk,
1319 synthesize_method, implicitly_declare_fn,
1320 skip_artificial_parms_for, optimize_function, calls_setjmp_p,
1321 maybe_clone_body): Remove use of PARAMS.
1322
1323 * method.c (do_build_assign_ref, do_build_copy_constructor,
1324 synthesize_exception_spec, locate_dtor, locate_ctor, locate_copy):
1325 Likewise.
1326 (synthesize_method): Use 'bool' type and constants instead of
1327 'int'.
1328 (locate_copy): Likewise.
1329 (implicitly_declare_fn): Likewise.
1330
1331 * optimize.c (calls_setjmp_r, update_cloned_parm, dump_function):
1332 Remove old-style declaration.
1333 (maybe_clone_body): Use 'bool' type and constants.
1334
1c83ea9f
GN
13352002-11-21 Glen Nakamura <glen@imodulo.com>
1336
1337 PR c++/8342
1338 * typeck.c (get_member_function_from_ptrfunc): Make sure that a
1339 SAVE_EXPR for instance_ptr doesn't get evaluated first inside one
1340 of the branches of a COND_EXPR.
1341
ad2ae3b2
MM
13422002-11-19 Mark Mitchell <mark@codesourcery.com>
1343
1344 * pt.c (for_each_template_parm): Free allocated memory.
1345 * search.c (is_subobject_of_p_1): New function.
1346 (is_subobject_of_p): Avoid walking virtual bases multiple times.
1347
f3226a90
JT
13482002-11-19 Jason Thorpe <thorpej@wasabisystems.com>
1349
1350 * g++spec.c (lang_specific_spec_functions): New.
1351
90024bdc
KH
13522002-11-15 Kazu Hirata <kazu@cs.umass.edu>
1353
1354 * ChangeLog: Follow spelling conventions.
1355 * class.c: Likewise.
1356 * decl2.c: Likewise.
1357
fa7b533b
ZW
13582002-11-14 Zack Weinberg <zack@codesourcery.com>
1359
1360 * search.c (dfs_push_decls): Do not try to reorder elements
1361 3..n of method_vec if method_vec has only two elements.
1362 Reverse order of two tests to avoid accessing unallocated
1363 memory.
1364
95675950
MM
13652002-11-14 Mark Mitchell <mark@codesourcery.com>
1366
1367 * class.c (dfs_find_final_overrider): Adjust so that the most
1368 derived object is a binfo, rather than a class type.
1369 (find_final_overrider): Likewise.
1370 (add_vcall_offset_vtbl_entries_1): Simplify accordingly.
1371 (add_vcall_offset): Likewise.
1372
5c74d5b0
KL
13732002-11-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1374
1375 PR c++/8389
1376 * pt.c (instantiate_template): Push class scope for member
1377 functions.
1378 (get_mostly_instantiated_function_type): Likewise. Don't call
1379 tsubst on context. Remove CONTEXTP and TPARMSP parameters.
1380 * cp-tree.h (get_mostly_instantiated_function_type): Adjust.
1381 * mangle.c (write_encoding, write_unqualified_name): Adjust.
1382
4f2c9d7e
MM
13832002-11-07 Mark Mitchell <mark@codesourcery.com>
1384
e6a66567
MM
1385 * class.c (add_vcall_offset_vtbl_entries_1): Correct ordering of
1386 vcall offfsets. Split out ...
1387 (add_vcall_offset): ... new function.
1388
4f2c9d7e
MM
1389 PR c++/8338
1390 * pt.c (for_each_template_parm): Add htab parameter.
1391 (process_partial_specialization): Adjust call.
1392 (push_template_decl_real): Likewise.
1393 (pair_fn_data): Add visited.
1394 (for_each_template_parm_r): Avoid walking duplicates more than
1395 once.
1396 (uses_template_parms): Adjust call to for_each_template_parm.
1397
f72ab53b
MM
13982002-11-07 Mark Mitchell <mark@codesourcery.com>
1399
1400 * class.c (add_implicitly_declared_members): Put implicitly
1401 declared functions at the end of TYPE_METHODs when -fabi-version
1402 is at least 2.
1403
0a288b9a
GK
14042002-11-05 Geoffrey Keating <geoffk@apple.com>
1405
1406 * decl2.c (finish_file): Correct spelling.
1407
548502d3
MM
14082002-11-03 Mark Mitchell <mark@codesourcery.com>
1409
1410 * call.c (build_special_member_call): Do not try to lookup VTTs by
1411 name.
1412 * class.c (vtbl_init_data): Add generate_vcall_entries.
1413 (get_vtable_decl): Do not look up virtual tables by name.
1414 (copy_virtuals): Do not use BV_USE_VCALL_INDEX_P.
1415 (set_primary_base): Do not set CLASSTYPE_RTTI.
1416 (determine_primary_base): Likewise.
1417 (get_matching_virtual): Remove.
1418 (get_vcall_index): New function.
1419 (update_vtable_entry_for_fn): Do not try to use virtual thunks
1420 when they are not required. Assign vcall indices at this point.
1421 (finish_struct_1): Do not set CLASSTYPE_NEEDS_VIRTUAL_REINIT.
1422 Do update dynamic_classes.
1423 (build_vtt): Do not add VTTs to the symbol table.
1424 (build_ctor_vtbl_group): Likewise.
1425 (build_vtbl_initializer): Simplify handling of vcall indices.
1426 (build_vcall_offset_vtbl_entries): Pretend to build vcall offsets
1427 for the most derived class.
1428 (add_vcall_offset_vtbl_entries_1): But do not actually add them to
1429 the vtable.
1430 * cp-tree.h (dynamic_classes): New macro.
1431 (lang_type_class): Remove rtti. Add vtables. Add vcall_indices.
1432 (CLASSTYPE_RTTI): Remove.
1433 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Remove.
1434 (CLASSTYPE_VCALL_INDICES): New macro.
1435 (CLASSTYPE_VTABLES): Likewise.
1436 (BV_USE_VCALL_INDEX_P): Remove.
1437 (build_vtable_path): Remove.
1438 * decl2.c (finish_vtable_vardecl): Remove.
1439 (key_method): Remove #if 0'd code.
1440 (finish_vtable_vardecl): Rename to ...
1441 (maybe_emit_vtables): ... this.
1442 (finish_file): Use it.
1443 * search.c (look_for_overrides_here): Update comment.
1444
04d57dd5
ZW
14452002-11-01 Zack Weinberg <zack@codesourcery.com>
1446
1447 PR c/7353 redux
1448 * decl2.c (grokfield): Reject TYPE_DECLs with initializers.
1449
bab076f7
JM
14502002-10-30 Jason Merrill <jason@redhat.com>
1451
1452 PR c++/8186
1453 * cp-tree.h (ADDR_IS_INVISIREF): New macro.
1454 * call.c (convert_for_arg_passing): Set it.
1455 * except.c (stabilize_throw_expr): Recurse for such an arg.
1456
14b4829d
MM
14572002-10-31 Mark Mitchell <mark@codesourcery.com>
1458
1459 * cp-tree.h (lang_decl_flags): Remove init_priority.
1460 (lang_decl): Add delta.
1461 (GLOBAL_INIT_PRIORITY): Remove.
1462 (THUNK_DELTA): Revise definition.
1463 * decl2.c (start_objects): Don't set GLOBAL_INIT_PRIORITY.
1464 * dump.c (cp_dump_tree): Don't dump it.
1465
8c081e84
MM
14662002-10-30 Mark Mitchell <mark@codesourcery.com>
1467
1468 PR c++/8160
1469 * typeck2.c (process_init_constructor): Call complete_array_type.
1470
1471 PR c++/8149
1472 * decl.c (make_typename_type): Issue errors about invalid results.
04d57dd5 1473
7088fca9
KL
14742002-10-30 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1475
1476 Core issue 287, PR c++/7639
1477 * cp-tree.h (lang_type_class): Add decl_list field.
1478 (CLASSTYPE_DECL_LIST): New macro.
1479 (maybe_add_class_template_decl_list): Add declaration.
1480 * class.c (duplicate_tag_error): Initialize CLASSTYPE_DECL_LIST.
1481 (unreverse_member_declarations): Reverse CLASSTYPE_DECL_LIST.
1482 (maybe_add_class_template_decl_list): New function.
1483 (add_implicitly_declared_members): Use it.
1484 * decl.c (maybe_process_template_type_declaration): Likewise.
1485 (pushtag): Likewise.
1486 * friend.c (add_friend): Likewise.
1487 (make_friend_class): Likewise.
1488 * semantics.c (finish_member_declaration): Likewise.
1489 (begin_class_definition): Initialize CLASSTYPE_DECL_LIST.
1490 * pt.c (instantiate_class_template): Use CLASSTYPE_DECL_LIST
1491 to process members and friends in the order of declaration.
1492
5633b37c
MM
14932002-10-29 Mark Mitchell <mark@codesourcery.com>
1494
1495 PR c++/8287
1496 * decl.c (finish_destructor_body): Create the label to jump to
1497 when returning from a destructor here.
1498 (finish_function_body): Rather than here.
1499
f65e1183
ZW
15002002-10-25 Zack Weinberg <zack@codesourcery.com>
1501
1502 PR c++/7266
1503 * decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
1504 SCOPE_REF is not null before dereferencing it.
1505
bb5e8a7f
MM
15062002-10-25 Mark Mitchell <mark@codesourcery.com>
1507
e93ee644
MM
1508 * call.c (build_over_call): Use DECL_CONTEXT, not
1509 DECL_VIRTUAL_CONTEXT.
1510 * class.c (modify_vtable_entry): Don't mess with
1511 DECL_VIRTUAL_CONTEXT.
1512 (set_vindex): Remove.
1513 (set_primary_base): Remove vfuns_p parameter.
1514 (determine_primary_base): Likewise.
1515 (modify_all_vtables): Likewise.
1516 (layout_class_type): Likewise. Adjust calls to other functions
1517 accordingly.
1518 (finish_struct_1): Adjust calls to modified functions. Set
1519 DECL_VINDEX here.
1520 * cp-tree.h (lang_type_class): Remove vsize.
1521 (CLASSTYPE_VSIZE): Remove.
1522 (lang_decl): Remove thunks.
1523 (DECL_THUNKS): Adjust.
1524 (DECL_VIRTUAL_CONTEXT): Remove.
1525 (duplicate_decls): Don't copy it.
1526 * pt.c (build_template_decl): Don't set it.
1527 (tsubst_decl): Likewise.
1528 * typeck.c (expand_ptrmemfunc_cst): Don't use it.
04d57dd5 1529
bb5e8a7f
MM
1530 * class.c (build_vtbl_initializer): Don't use build_vtable_entry.
1531 (build_vtable_entry): Remove.
1532 * cp-tree.h (BINFO_VIRTUALS): Expand documentation.
1533 (lang_decl): Add thunks.
1534 (DECL_THUNKS): New macro.
1535 * decl.c (duplicate_decls): Copy it.
1536 * method.c (make_thunk): Simplify, and add thunks to DECL_THUNKS.
1537 * semantics.c (emit_associated_thunks): Simplify.
f65e1183 1538
6eb35968
DE
15392002-10-24 David Edelsohn <edelsohn@gnu.org>
1540
1541 PR c++/7228
1542 * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
1543 lang_type structure exists before accessing field.
1544 (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
1545 (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
1546 (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
1547 * class.c (check_field_decls): Use new macros.
1548 * typeck2.c (process_init_constructor): Remove redundant check for
1549 existence of lang_type structure.
1550
0cee073d
MM
15512002-10-24 Mark Mitchell <mark@codesourcery.com>
1552
ba9a991f
MM
1553 * class.c (end_of_base): New method.
1554 (end_of_class): Use it. Check indirect virtual bases.
1555
0cee073d
MM
1556 * class.c (check_field_decls): Fix typo.
1557
e6f052b7
MM
15582002-10-23 Mark Mitchell <mark@codesourcery.com>
1559
6b607ffd
MM
1560 PR c++/8067
1561 * decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
1562 related variables.
1563
e6f052b7
MM
1564 PR c++/7679
1565 * spew.c (next_token): Do not return an endless stream of
1566 END_OF_SAVED_INPUT tokens.
1567 (snarf_method): Add three END_OF_SAVED_INPUT tokens to the end of
1568 the cached token stream.
1569 (snarf_defarg): Likewise.
1570
8bcefb43
ZW
15712002-10-23 Zack Weinberg <zack@codesourcery.com>
1572
1573 * cp-lang.c (cp_var_mod_type_p): New: C++ hook for
1574 variably_modified_type_p.
1575 * cp-tree.h: Remove prototype of variably_modified_type_p.
1576 * tree.c (variably_modified_type_p): Remove; now implemented
1577 in language-independent code.
1578
ad4f9910
MM
15792002-10-22 Mark Mitchell <mark@codesourcery.com>
1580
1581 PR c++/6579
1582 * spew.c (snarf_parenthesized_expression): New function.
1583 (snarf_block): Use it.
1584
3961e8fe
RH
15852002-10-22 Richard Henderson <rth@redhat.com>
1586
1587 * method.c (use_thunk): Always compute vcall_value; assert that
1588 it is not zero. Use can_output_mi_thunk; use output_mi_thunk
1589 for vcall thunks as well.
1590
5ec1192e
MM
15912002-10-21 Mark Mitchell <mark@codesourcery.com>
1592
7ba539c6
MM
1593 * class.c (empty_base_at_nonzero_offset_p): New function.
1594 (layout_nonempty_base_or_field): Do not check for conflicts when
1595 laying out a virtual base using the GCC 3.2 ABI.
1596 (build_base_field): Correct checking for presence of empty classes
90024bdc 1597 at nonzero offsets when clearing CLASSTYPE_NEARLY_EMPTY_P.
7ba539c6 1598
e3ccdd50
MM
1599 * class.c (include_empty_classes): Use normalize_rli.
1600 (layout_class_type): Likewise.
1601
42328048
MM
1602 * decl.c (reshape_init): Tweak handling of character arrays.
1603
5ec1192e
MM
1604 PR c++/8218
1605 * cp-tree.h (lang_type_class): Add contains_empty_class_p.
1606 (CLASSTYPE_CONTAINS_EMPTY_CLASS_P): New macro.
1607 * class.c (check_bases): Update CLASSTYPE_CONTAINS_EMPTY_CLASS_P.
1608 (check_field_decls): Likewise.
1609 (layout_class_type): Likewise.
1610 (finish_struct_1): Initialize it.
1611 (walk_subobject_offsets): Use it to prune searches.
1612
eb0424da
MM
16132002-10-20 Mark Mitchell <mark@codesourcery.com>
1614
1615 * method.c (use_thunk): Compute the vcall index as a HOST_WIDE_INT.
1616 * optimize.c (optimize_function): Replace ASM_OUTPUT_MI_THUNK with
1617 TARGET_ASM_OUTPUT_MI_THUNK in comments.
8bcefb43 1618
4a7510cb
ZW
16192002-10-18 Zack Weinberg <zack@codesourcery.com>
1620
1621 * decl.c (start_decl): Point users of the old initialized-
1622 typedef extension at __typeof__.
1623
483ab821
MM
16242002-10-18 Mark Mitchell <mark@codesourcery.com>
1625
1626 * Make-lang.in (method.o): Depend on TARGET_H.
1627 * method.c (target.h): Include it.
1628 (use_thunk): Use target hooks. Use vcall thunks, if available.
1629
e4f4feba
MM
16302002-10-18 Mark Mitchell <mark@codesourcery.com>
1631
1632 * class.c (base_derived_from): Make sure return value is a bool.
1633
9368208b
MM
16342002-10-18 Mark Mitchell <mark@codesourcery.com>
1635
1636 * class.c (find_final_overrider_data_s): Remove overriding_fn and
1637 overriding_base.
1638 (dfs_base_derived_from): New function.
1639 (base_derived_from): Likewise.
1640 (dfs_find_final_overrider): Use base_derived_from.
1641 (find_final_overrider): Adjust.
1642
5275f2bf
JM
16432002-10-18 Jason Merrill <jason@redhat.com>
1644
1645 PR c++/8080
1646 * semantics.c (finish_for_cond, finish_while_cond): Don't mess
1647 with condition decls in a template.
1648
8a188e24
NS
16492002-10-17 Nathan Sidwell <nathan@codesourcery.com>
1650
1651 * class.c (add_method): Compare template parms too.
1652
b216f69b
MM
16532002-10-17 Mark Mitchell <mark@codesourcery.com>
1654
982216be
MM
1655 PR c++/7584
1656 * class.c (handle_using_decl): Allow the declaration used to be
1657 from an ambiguous base.
1658
d768a589
MM
1659 * pt.c (convert_template_argument): Revert this change:
1660 2002-10-16 Mark Mitchell <mark@codesourcery.com>
1661 * pt.c (convert_template_argument): Do not fold non-type
1662 template rguments when inside a template.
1663
b216f69b
MM
1664 * init.c (expand_default_init): Handle brace-enclosed initializers
1665 correctly.
1666
2303a079
MM
16672002-10-16 Mark Mitchell <mark@codesourcery.com>
1668
d3133e68
MM
1669 * mangle.c (write_expression): Correct handling of enumeration
1670 constants.
1671 (write_template_arg): Likewise.
1672 * pt.c (convert_template_argument): Do not fold non-type template
1673 arguments when inside a template.
1674
2303a079
MM
1675 PR c++/7478
1676 * cvt.c (convert_to_reference): Allow references as the incoming
1677 type.
1678
451c0899
MM
16792002-10-16 Mark Mitchell <mark@codesourcery.com>
1680
1681 PR c++/7524
1682 * method.c (do_build_assign_ref): Use cp_build_qualified_type, not
1683 build_qualified_type.
1684
da6eec72
RH
16852002-10-15 Richard Henderson <rth@redhat.com>
1686
1687 * error.c (dump_expr): Use real_to_decimal directly, and with
1688 the new arguments.
1689
3fa3c4bd
MM
16902002-10-15 Mark Mitchell <mark@codesourcery.com>
1691
1692 * decl.c (reshape_init): Fix typo.
1693
1694 * cp-tree.h (operator_name_info_t): Add arity.
1695 * lex.c (init_operators): Initialize it.
1696 * mangle.c (write_conversion_operator_name): New function.
1697 (write_unqualified_name): Use it.
1698 (write_template_args): Accept template arguments as a TREE_LIST.
1699 (write_expression): Adjust handling of qualified names to match
1700 specification.
1701
1a55127d
JM
17022002-10-15 Jason Merrill <jason@redhat.com>
1703
1704 * call.c (call_builtin_trap): New fn.
1705 (convert_arg_to_ellipsis): Use it. Downgrade error to warning.
1706 (build_call): Don't set current_function_returns_abnormally outside
1707 a function.
1708
58731fd1
MM
17092002-10-14 Mark Mitchell <mark@codesourcery.com>
1710
1711 * class.c (check_field_decls): Remove empty_p parameter. Instead,
1712 clear CLASSTYPE_EMPTY_P.
1713 (build_base_field): Likewise.
1714 (build_base_fields): Likewise.
1715 (check_bases_and_members): Likewise.
1716 (create_vtbl_ptr): Likewise.
1717 (layout_class_type): Likewise. Ensure that empty classes have
1718 size zero when used as base classes in the 3.2 ABI.
1719 (finish_struct_1): Initialize CLASSTYPE_EMPTY_P and
1720 CLASSTYPE_NEARLY_EMPTY_P. Adjust calls to avoid passing empty_p
1721 parameter.
1722 (is_empty_class): Correct definition when using post-3.2 ABI.
1723 * cp-tree.h (lang_type_class): Add empty_p.
1724 (CLASSTYPE_EMPTY_P): New macro.
1725
6742d92b
NS
17262002-10-12 Nathan Sidwell <nathan@codesourcery.com>
1727
1728 * init.c (build_delete): Do not apply save_expr for arrays.
1729 (build_vec_delete): Likewise.
1730
77631fa7
MM
17312002-10-14 Mark Mitchell <mark@codesourcery.com>
1732
4a7510cb 1733 * decl.c (layout_var_decl): Call layout_decl even for variables
7de85f7e
MM
1734 whose type is an array with unspecified bounds.
1735
77631fa7
MM
1736 PR c++/7176
1737 * lex.c (do_identifier): Add another option for the parsing
1738 parameter.
1739 * parse.y (do_id): Use it.
1740
2ee366b5
GDR
17412002-10-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
1742
1743 PRs C++/6803, C++/7721 and C++/7803
1744 * decl.c (grokdeclarator): Gracefully handle template-name as
1745 decl-specifier.
1746
01c3fb15
JM
17472002-10-11 Jason Molenda <jmolenda@apple.com>
1748
1749 * init.c (build_field_list): Provide uses_unions_p with a default
1750 value.
1751
8e3df2de
MM
17522002-10-11 Mark Mitchell <mark@codesourcery.com>
1753
dac45b5c
MM
1754 PR c++/5661
1755 * cp-tree.h (variably_modified_type_p): New function.
1756 (grokdeclarator) Tighten check for variably modified types as
1757 fields.
1758 * pt.c (convert_template_argument): Do not allow variably modified
1759 types as template arguments.
4a7510cb 1760 * tree.c (variably_modified_type_p): New function.
dac45b5c 1761
8e3df2de
MM
1762 * NEWS: Document removal of "new X = ..." extension.
1763 * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on
1764 brace-enclosed initializers.
1765 * cp-tree.h (CP_AGGREGATE_TYPE_P): New macro.
1766 (initialize_local_var): Remove declaration.
1767 (expand_static_init): Likewise.
1768 * decl.c (next_initializable_field): New function.
1769 (reshape_init): Likewise.
1770 (check_initializer): Use them. Build dynamic initializer for
1771 aggregates here too.
1772 (initialize_local_var): Simplify, and incorporate cleanup
1773 insertion code as well.
1774 (destroy_local_var): Remove.
1775 (cp_finish_decl): Tidy.
1776 (expand_static_init): Fold checks for whether or not a variable
1777 needs initialization into this function. Simplify.
1778 * decl2.c (do_static_initialization): Simplify.
1779 * init.c (build_init): Do not set TREE_SIDE_EFFECTS when it will
1780 be done for us automatically.
1781 (expand_default_init): Handle brace-enclosed initializers
1782 correctly.
1783 (expand_aggr_init_1): Remove RTL-generation code.
1784 (build_vec_init): Remove "new X = ..." support.
1785 * parse.y (new_initializer): Likewise.
1786 * rtti.c (get_pseudo_ti_init): Set TREE_HAS_CONSTRUCTOR on
1787 brace-enclosed initializer.
1788 (create_pseudo_type_info): Likewise.
1789 * typeck2.c (store_init_value): Don't try to handle digest_init
1790 being called more than once.
1791 (digest_init): Tidy handling of brace-enclosed initializers.
01c3fb15 1792
7bdfd72e
KG
17932002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1794
1795 * decl.c (typename_hash): Use htab_hash_pointer.
1796
e89fe41c
JW
17972002-10-10 Jim Wilson <wilson@redhat.com>
1798
1799 * decl.c (duplicate_decls): Don't call decl_attributes.
1800
95f79357
ZW
18012002-10-09 Zack Weinberg <zack@codesourcery.com>
1802
85cd7be8 1803 PR c/7353
95f79357
ZW
1804 * decl.c (start_decl): Unconditionally issue error for
1805 'typedef foo = bar'.
1806 (cp_finish_decl): Remove special case for TYPE_DECL with initializer.
1807 (grokdeclarator): Remove redundant error for 'typedef foo = bar'.
1808
10a38dba
KG
18092002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1810
1811 * decl2.c (prune_vtable_vardecl): Delete unused function.
1812
edebf865
MM
18132002-10-03 Mark Mitchell <mark@codesourcery.com>
1814
1815 PR c++/7754
1816 * decl2.c (finish_anon_union): Do not expand anonymous unions when
1817 procesing template functions.
1818 * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
1819 type. Call layout_decl.
1820 (tsubst_expr, case DECL_STMT): Handle anonymous unions.
1821
01f4137f
RH
18222002-10-07 Richard Henderson <rth@redhat.com>
1823
1824 * decl2.c, pt.c: Revert c++/7754 fix.
1825
eb55ce4b
KL
18262002-10-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1827
1828 PR c++/7804
1829 * error.c (dump_expr) [REAL_CST]: Output in decimal format.
1830
bd9bb3d2
MM
18312002-10-03 Mark Mitchell <mark@codesourcery.com>
1832
43c6a96a 1833 PR c++/7931
bd9bb3d2
MM
1834 * pt.c (for_each_template_parm_r): Handle BASELINKs.
1835
1836 PR c++/7754
1837 * decl2.c (finish_anon_union): Do not expand anonymous unions when
1838 procesing template functions.
1839 * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
1840 type. Call layout_decl.
1841 (tsubst_expr, case DECL_STMT): Handle anonymous unions.
1842
6397d80b
MM
18432002-10-03 Mark Mitchell <mark@codesourcery.com>
1844
1845 PR c++/8006
1846 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Handle instances of template
1847 template parameters.
1848 (globals): Add entity and need_abi_warning.
1849 (decl_is_template_id): Use TYPE_TEMPLATE_INFO, not
1850 CLASSTYPE_TEMPLATE_INFO.
1851 (is_std_substitution): Use CLASSTYPE_TI_TEMPLATE, not
1852 TYPE_TI_TEMPLATE.
1853 (write_prefix): Handle typename types correctly.
1854 (write_template_prefix): Handle template template parameters
1855 correctly.
1856 (start_mangling): Add entity parameter.
1857 (finish_mangling): Warn about names whose mangling will change.
1858 (mangle_decl_string): Adjust.
1859 (mangle_type_string): Likewise.
1860 (mangle_special_for_type): Likewise.
1861 (mangle_ctor_vtbl_for_type): Likewise.
1862 (mangle_thunk): Likewise.
1863 (mangle_guard_variable): Likewise.
1864 (mangle_ref_init_variable): Likewise.
1865
2282d28d
MM
18662002-10-02 Mark Mitchell <mark@codesourcery.com>
1867
1868 PR c++/7188.
1869 * cp-tree.def (CTOR_INITIALIZER): Use one slot, not two.
1870 * cp-tree.h (emit_base_init): Rename to ....
1871 (emit_mem_initializers): ... this.
1872 (expand_member_init): Change prototype.
1873 * init.c (perform_member_init): Compute explicit, rather than
1874 requiring it as a parameter.
1875 (sort_member_init): Rename to ...
1876 (sort_mem_initializers): ... this. Process bases and data members
1877 together.
1878 (sort_base_init): Remove.
1879 (emit_base_init): Rename to ...
1880 (emit_mem_initializers): ... this.
1881 (expand_aggr_vbase_init_1): Remove.
1882 (construct_virtual_bases): Rename to ...
1883 (construct_virtual_base): ... this.
1884 (expand_member_init): Rework handling of base initializers.
1885 * method.c (do_build_copy_constructor): Use
1886 finish_mem_initializers.
1887 * parse.y (member_init): Adjust calls to expand_member_init.
1888 * pt.c (tsubst_expr): Simplify CTOR_INITIALIZER case.
1889 (tsubst_initializer_list): Use expand_member_init.
1890 * semantics.c (finish_mem_intiailizers): Simplify.
69788039
MA
1891
18922002-10-02 Matt Austern <austern@apple.com>
1893 * decl.c (walk_vtables_r): Fixed typo that caused result to
1894 never get a nonzero value.
95f79357 1895
f963b5d9
RS
18962002-10-02 Roger Sayle <roger@eyesopen.com>
1897
1898 PR optimization/6627
1899 * cp-tree.h (enum ptrmemfunc_vbit_where_t): Delete definition
1900 from here, and move it to tree.h.
1901 * decl.c (cxx_init_decl_processing): If storing the vbit
1902 in function pointers, ensure that force_align_functions_log
1903 is atleast one.
1904
69788039
MA
19052002-10-02 Matt Austern <austern@apple.com>
1906
1907 * class.c (check_field_decls): Changed warning about const member
1908 variables so that it doesn't get issued for a class aggregate.
95f79357 1909
d881ff25
MM
19102002-10-01 Mark Mitchell <mark@codesourcery.com>
1911
1912 * decl.c (cp_finish_decl): Make sure array types are laid out,
1913 even if the array bounds are unknown.
1914
2e88ae22
SE
19152002-10-01 Steve Ellcey <sje@cup.hp.com>
1916
d881ff25 1917 * class.c (build_vtbl_initializer): Change build_c_cast
2e88ae22
SE
1918 to build1.
1919
b4c20e52
MM
19202002-10-01 Mark Mitchell <mark@codesourcery.com>
1921
d881ff25
MM
1922 * decl.c (cp_finish_decl): Make sure array types are laid out,
1923 even if the array bounds are unknown.
1924
b4c20e52
MM
1925 * decl.c (cp_finish_decl): Correct check for dynamic
1926 initialization of thread-local storage.
1927
5a9a1961
NS
19282002-09-30 Nathan Sidwell <nathan@codesourcery.com>
1929
1930 * tree.c (really_overloaded_fn): TEMPLATE_ID_EXPRs are also
1931 overloaded.
1932
7befdb9f
SE
19332002-09-30 Steve Ellcey <sje@cup.hp.com>
1934
1935 * class.c (build_vtbl_initializer): Add cast.
1936 (add_vcall_offset_vtbl_entries_1):
1937 Use TARGET_VTABLE_DATA_ENTRY_DISTANCE for offset.
1938
17bbb839
MM
19392002-09-30 Mark Mitchell <mark@codesourcery.com>
1940
1941 * class.c (walk_subobject_offsets): Correct the calculation of
1942 offsets for virtual bases. Correct the counting of array
1943 elements.
1944 (layout_nonempty_base_or_field): Simplify. Correct the
1945 calculation of offsets to be propagated through the binfo
1946 hierarchy.
1947 (build_base_field): Avoid creating a FIELD_DECL for empty bases.
1948 Add the FIELD_DECL to TYPE_FIELDS.
1949 (build_base_fields): Adjust accordingly.
1950 (layout_virtual_bases): Use build_base_field.
1951 (end_of_class): Return a tree, not an integer.
1952 (warn_about_ambiguous_direct_bases): Rename to ...
1953 (warn_about_ambiguous_bases): ... this.
1954 (include_empty_classes): New function.
1955 (layout_class_type): Create an alternative version of the type to
1956 be used when as a base class type. Do not call
1957 finish_record_layout until we are done laying out the class.
1958 * cp-tree.h (lang_type_class): Remove size, size_unit. Add
1959 as_base.
1960 (CLASSTYPE_SIZE): Reimplement.
1961 (CLASSTYPE_SIZE_UNIT): Likewise.
1962 (CLASSTYPE_ALIGN): Likweise.
1963 (CLASSTYPE_USER_ALIGN): Likewise.
1964 (CLASSTYPE_AS_BASE): New macro.
1965 (DECL_INITIALIZED_P): Likewise.
1966 (extract_init): Remove prototype.
1967 (build_forced_zero_init): Rename to ...
1968 (build_zero_init): ... this.
1969 (force_store_init_value): Remove.
1970 * decl.c (obscure_complex_init): Remove.
1971 (duplicate_decls): Copy DECL_INITIALIZED_P.
1972 (check_initializer): Do not leave junk in DECL_INITIAL.
1973 (cp_finish_decl): Handle zero-initialization of entities with
1974 static storage duration.
1975 * expr.c (extract_init): Remove.
1976 * init.c (build_forced_zero_init): Remove.
1977 (build_zero_init): New function.
1978 (build_default_init): Use it.
1979 (build_field_list): Skip FIELD_DECLs for base subobjects.
1980 (push_base_cleanups): Likewise.
1981 * method.c (do_build_assign_ref): Likewise.
1982 (synthesize_exception_spec): Likewise.
1983 * pt.c (tsubst_decl): Clear DECL_INITIALIZED_P.
1984 (regenerate_decl_from_template): To not set DECL_INITIAL for a
1985 static data member whose initialization took place in its class.
1986 (instantiate_decl): Do not pass an initializer to cp_finish_decl
1987 in that situation.
1988 * search.c (dfs_push_decls): Skip FIELD_DECLs for base subobjects.
1989 (dfs_unuse_fields): Likewise.
1990 * tree.c (pod_type_p): Handle error_mark_node.
1991 (zero_init_p): Likewise.
95f79357 1992 * typeck.c (lookup_anon_field): Skip FIELD_DECLs for base
17bbb839
MM
1993 subobjects.
1994 * typeck2.c (store_init_value): Remove #if 0'd code.
1995 (force_store_init_value): Remove.
1996 (process_init_constructor): Use build_zero_init.
95f79357 1997
03357c23
NS
19982002-09-29 Nathan Sidwell <nathan@codesourcery.com>
1999
2000 PR c++/7788
2001 * rtti.c (unemitted_tinfo_decl_p): Check it has a field.
2002
27631dae
KH
20032002-09-29 Kazu Hirata <kazu@cs.umass.edu>
2004
2005 * cp-tree.h: Fix comment typos.
2006 * decl.c: Likewise.
2007 * pt.c: Likewise.
2008
956d9305
MM
20092002-09-25 Mark Mitchell <mark@codesourcery.com>
2010
2011 * cp/class.c (contains_empty_class_p): New method.
2012 (walk_subobject_offsets): Correct computation of field offset.
2013 (layout_empty_base): Correct placement of emtpy base classes.
2014 (layout_class_type): Warn about ABI changes.
2015
2d3e278d
MM
20162002-09-23 Mark Mitchell <mark@codesourcery.com>
2017
2018 * cp/class.c (layout_virtual_bases): Do not round the size of the
2019 type to a multiple of the alignment before laying out virtual bases.
2020 (layout_class_type): Correct handling of bit-fields that are wider
2021 than their type inside unions. Round the size of the type to a
2022 even number of bytes when computing the size without virtual
2023 bases.
2024 * cp/cp-tree.h (abi_version_at_least): New macro.
95f79357 2025
838dfd8a
KH
20262002-09-21 Kazu Hirata <kazu@cs.umass.edu>
2027
2028 * ChangeLog: Follow spelling conventions.
2029 * ChangeLog.2: Likewise.
2030 * call.c: Likewise.
2031 * class.c: Likewise.
2032 * cp-tree.h: Likewise.
2033 * cvt.c: Likewise.
2034 * decl.c: Likewise.
2035 * decl2.c: Likewise.
2036 * except.c: Likewise.
2037 * friend.c: Likewise.
2038 * g++spec.c: Likewise.
2039 * init.c: Likewise.
2040 * lex.c: Likewise.
2041 * mangle.c: Likewise.
2042 * method.c: Likewise.
2043 * operators.def: Likewise.
2044 * optimize.c: Likewise.
2045 * pt.c: Likewise.
2046 * rtti.c: Likewise.
2047 * search.c: Likewise.
2048 * semantics.c: Likewise.
2049 * spew.c: Likewise.
2050 * tree.c: Likewise.
2051 * typeck.c: Likewise.
2052
9ced0328
DP
20532002-09-18 Devang Patel <dpatel@apple.com>
2054
2055 * cp/cp-tree.h: New prototype for walk_vtabls().
2056 * cp/decl.c (walk_vtables_r): New function.
2057 (struct cp_binding_level): Add new members, namespaces,
2058 names_size and vtables.
2059 (add_decl_to_level): Add decl in namespaces or vtables
2060 chain, if conditions match.
2061 (walk_vtables): New function.
2062 (walk_namespaces_r): Travers separate namespace chain
2063 for namespace decls.
2064 (wrapup_globals_for_namespace): Use names_size instead
2065 of list_length().
2066 * cp/decl2.c (finish_file): Use walk_vtables() instead of
2067 walk_globals() to walk vtable decls.
2068
dd29188b
NS
20692002-09-18 Nathan Sidwell <nathan@codesourcery.com>
2070
2071 * decl.c (grokdeclarator): Use assert, not internal_error. Don't
2072 ICE with invalid pointers & references.
2073
f989ed67
ZW
20742002-09-17 Zack Weinberg <zack@codesourcery.com>
2075
2076 * Make-lang.in: Remove all references to the demangler.
2077 * cxxfilt.c: Moved to binutils.
2078
171d2f50
NS
20792002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2080
3ec83083
NS
2081 PR c++/7718
2082 * pt.c (tsubst_decl): Remove assert.
2083
171d2f50
NS
2084 Remove DR 295 implementation.
2085 * pt.c (check_cv_quals_for_unify): Disable function & method cases.
2086 * tree.c (cp_build_qualified_type_real): Likewise. Don't warn
2087 about ignoring volatile qualifiers.
2088
2089 * search.c (lookup_member): Correct documentation.
2090
36a5eadd
GK
20912002-09-16 Geoffrey Keating <geoffk@apple.com>
2092
2093 * cp-tree.h (union lang_tree_node): Add chain_next option.
2094
28c56d25
NS
20952002-09-16 Nathan Sidwell <nathan@codesourcery.com>
2096
7979434d
NS
2097 * parse.y (parse_finish_call_expr): Check lookup_member result.
2098
28c56d25
NS
2099 PR c++/7015
2100 * semantic.c (finish_asm_stmt): Fix operand/output_operands
2101 thinko.
2102 * typeck.c (c_expand_asm_operands): Protect from error_mark_node.
2103
3baab484
NS
21042002-09-15 Nathan Sidwell <nathan@codesourcery.com>
2105
2106 PR c++/7919
2107 * call.c (build_over_call): Convert this pointer for fns found by
2108 using decls.
2109
d30d6e7a
KH
21102002-09-15 Kazu Hirata <kazu@cs.umass.edu>
2111
2112 * ChangeLog: Follow spelling conventions.
2113 * ChangeLog.1: Likewise.
2114
c8460010
NS
21152002-09-14 Nathan Sidwell <nathan@codesourcery.com>
2116
2117 PR c++/7768
2118 * pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P.
2119
c6002625
KH
21202002-09-14 Kazu Hirata <kazu@cs.umass.edu>
2121
2122 * error.c: Fix comment formatting.
2123 * except.c: Likewise.
2124 * expr.c: Likewise.
2125 * friend.c: Likewise.
2126 * g++spec.c: Likewise.
2127 * init.c: Likewise.
2128 * lex.c: Likewise.
2129 * mangle.c: Likewise.
2130 * method.c: Likewise.
2131 * optimize.c: Likewise.
2132 * pt.c: Likewise.
2133 * rtti.c: Likewise.
2134 * search.c: Likewise.
2135 * semantics.c: Likewise.
2136 * spew.c: Likewise.
2137 * tree.c: Likewise.
2138 * typeck.c: Likewise.
2139 * typeck2.c: Likewise.
2140
46dd3884
GDR
21412002-09-13 Matt Austern <austern@apple.com>
2142
4a7510cb 2143 PR C++/7828
46dd3884
GDR
2144 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
2145 * cp/call.c: Change call-by-const-reference mechanism to use
2146 non_cast_lvalue_p when deciding whether the create a temporary.
2147 We need a temporary when passing, e.g. (long) x by const ref.
2148
712467a4
NS
21492002-09-13 Nathan Sidwell <nathan@codesourcery.com>
2150
2151 * pt.c (unify, ARRAY_TYPE): Element type can be more qualified.
2152
a1c65f9f
KH
21532002-09-13 Kazu Hirata <kazu@cs.umass.edu>
2154
2155 * decl.c: Fix comment formatting.
2156 * decl2.c: Likewise.
2157
00a17e31
KH
21582002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2159
2160 * call.c: Fix comment formatting.
2161 * class.c: Likewise.
2162 * cp-lang.c: Likewise.
2163 * cp-tree.h: Likewise.
2164 * cvt.c: Likewise.
2165
3fd9d606
ZW
21662002-09-11 Zack Weinberg <zack@codesourcery.com>
2167
2168 * Make-lang.in: Build cp/cxxfilt.o from $(srcdir)/cp/cxxfilt.c,
2169 and c++filt from cxxfilt.o + version.o + $(LIBDEPS).
2170 * cxxfilt.c: New file: split from libiberty/cplus-dem.c, with
2171 minor adjustments (use version_string, eliminate yet another
2172 duplicate of xmalloc)
2173
2515a7ea
KG
21742002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2175
2176 * cp-tree.h (require_complete_eh_spec_types): Add prototype.
2177
5aa3396c
JM
21782002-09-05 Jason Merrill <jason@redhat.com>
2179
2180 * typeck2.c (add_exception_specifier): Only pedwarn for an
2181 incomplete type.
2182 (require_complete_eh_spec_types): New fn.
2183 (cxx_incomplete_type_diagnostic): Also support pedwarning.
2184 * typeck.c (complete_type_or_diagnostic): Likewise.
2185 * call.c (build_call): Call require_complete_eh_spec_types.
2186 * rtti.c (get_pseudo_ti_desc): Give an error rather than aborting
2187 on an incomplete type.
2188
23ccd1f3
JJ
21892002-09-04 Jakub Jelinek <jakub@redhat.com>
2190
2191 * decl.c (start_cleanup_fn): Clear interface_only before
2192 start_function, restore it afterwards.
2193
4977bab6
ZW
21942002-09-02 Nathan Sidwell <nathan@codesourcery.com>
2195
2196 * cp-tree.h (finish_builtin_type): Remove.
2197 * decl2.c (finish_builtin_type): Move to common code.
2198 * decl.c (build_ptrmemfunc_type): Adjust.
2199 * rtti.c (create_pseudo_type_info): Adjust.
2200 (create_tinfo_types): Adjust.
2201
d99f015c
JM
22022002-08-31 Jason Merrill <jason@redhat.com>
2203
2204 * cp-lang.c (cp_expr_size): Allow initialization from a
2205 CONSTRUCTOR.
2206
8a3c9180
RH
22072002-08-30 Richard Henderson <rth@redhat.com>
2208
c9989d09 2209 PR opt/7515
8a3c9180
RH
2210 * tree.c: Include target.h.
2211 (cp_cannot_inline_tree_fn): Don't auto-inline functions that
2212 don't bind locally.
2213 * Makefile.in (tree.o): Update.
2214
eca7f13c
MM
22152002-08-27 Mark Mitchell <mark@codesourcery.com>
2216
2217 * class.c (layout_virtual_bases): Warn about bugs in G++ that
2218 result in incorrect object layouts.
2219 (layout_class_type): Likewise.
f989ed67 2220
13d3f0b6
MA
22212002-08-24 Matt Austern <austern@apple.com>
2222
2223 * tree.c (lvalue_p_1): Add argument for whether casts of lvalues
2224 are allowable.
2225 (real_lvalue_p): Update caller.
2226 (lvalue_p): Ditto.
2227 (non_cast_lvalue_or_else): New.
2228 * tree.h: Declare it.
f989ed67 2229 * typeck.c (build_unary_op): Use non_cast_lvalue_or_else.
13d3f0b6 2230
5b770a96
MM
22312002-08-22 Mark Mitchell <mark@codesourcery.com>
2232
2233 * typeck.c (build_class_member_access_expr): Handle COMPOUND_EXPR
2234 and COND_EXPR specially; fix error message output.
2235
d65b1d77
JM
22362002-08-22 Jason Merrill <jason@redhat.com>
2237
2238 * pt.c (tsubst_expr): RETURN_EXPR is now RETURN_STMT_EXPR.
2239 * semantics.c (nullify_returns_r): Likewise.
2240
8a5f4379
GDR
22412002-08-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
2242
2243 Fix PR/7621
2244 * typeck.c (finish_class_member_access_expr): Diagnose cases where
2245 name lookup finds nothing.
2246
5d764395
JM
22472002-08-15 Jason Merrill <jason@redhat.com>
2248
2249 * semantics.c (finish_then_clause): Remove redundant assignment.
2250 (finish_if_stmt, begin_switch_stmt, finish_switch_stmt): Move the
2251 extra binding level outside the if/switch statement.
2252 (finish_while_cond, finish_for_cond): Rewrite complex condition
2253 into the loop body.
2254
c01b9ec8
AO
22552002-08-15 Alexandre Oliva <aoliva@redhat.com>
2256
2257 * parse.y (sizeof, alignof, typeof): New non-terminals to
2258 increment skip_evaluation. Replace terminals with them and
2259 decrement skip_evaluation at the end of rules using them.
2260 * decl2.c (mark_used): Don't assemble_external if
2261 skipping evaluation.
2262
e8fe46d4
GDR
22632002-08-15 Gabriel Dos Reis <gdr@nerim.net>
2264
2265 Fix PR/7504
2266 * parse.y (parse_finish_call_expr): Handle incomplete
2267 type used to name a scope.
2268
eac5ce6c
NS
22692002-08-15 Nathan Sidwell <nathan@codesourcery.com>
2270
2271 PR c++/7598
2272 * typeck.c (build_unary_op): Fold offsetof idiom. Fixes
2273 regression caused by my 2002-08-08 patch.
2274
22eadedb
MM
22752002-08-13 Mark Mitchell <mark@codesourcery.com>
2276
2277 * decl.c (pushdecl_class_level): Honor requests to bind names to
2278 OVERLOADs.
2279
e65e6212
KG
22802002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2281
2282 * decl2.c (build_call_from_tree): Fix uninitialized variable.
2283 * parse.y (parse_finish_call_expr): Likewise.
2284 * repo.c (old_args, old_dir, old_main): Const-ify.
2285
3e72ec9a
GDR
22862002-08-11 Gabriel Dos Reis <gdr@nerim.net>
2287
2288 * decl.c (duplicate_decls): Replace DECL_SOURCE_FILE +
2289 DECL_SOURCE_LINE with DECL_SOURCE_LOCATION.
2290 * optimize.c (maybe_clone_body): Likewise.
2291 * pt.c (tsubst_enum): Likewise.
2292 (lookup_template_class): Likewise.
2293 * tree.c (cp_copy_res_decl_for_inlining): Likewise.
2294
f749a36b
NB
22952002-08-10 Neil Booth <neil@daikokuya.co.uk>
2296
2297 * lang-specs.h: Remove -ansi.
2298
3ebf5204
NS
22992002-08-10 Nathan Sidwell <nathan@codesourcery.com>
2300
2301 * tree.c (maybe_dummy_object): Replace // with /* */
2302
9e259dd1
MM
23032002-08-09 Mark Mitchell <mark@codesourcery.com>
2304
2305 * call.c (standard_conversion): Use build_ptrmem_type.
2306 * cp-tree.h (build_ptrmem_type): New function.
2307 (adjust_result_of_qualified_name_lookup): Likewise.
2308 * decl.c (grokvardecl): Do not look for OFFSET_TYPEs to indicate
2309 static data members.
2310 (build_ptrmem_type): New function.
2311 (grokdeclarator): Do not use build_offset_type when encountering a
2312 qualified name.
2313 * parse.y (parse_finish_call_expr): Use
2314 adjust_result_of_qualified_name_lookup.
2315 * search.c (adjust_result_of_qualified_name_lookup): New function.
2316 * typeck.c (qualify_type_recursive): Use TYPE_PTRMEM_* rather than
2317 accessing OFFSET_TYPEs directly.
f989ed67 2318
0e339752
MS
23192002-08-08 Mike Stump <mrs@apple.com>
2320
2321 * call.c (add_builtin_candidate): legal -> valid, illegal -> invalid.
2322 (type_decays_to): Likewise.
2323 * class.c (find_final_overrider): Likewise.
2324 (maybe_note_name_used_in_class): Likewise.
2325 * decl.c (current_tmpl_spec_kind): Likewise.
2326 (add_binding): Likewise.
2327 (push_class_binding): Likewise.
2328 (duplicate_decls): Likewise.
2329 (layout_var_decl): Likewise.
2330 (grokfndecl): Likewise.
2331 (grokdeclarator): Likewise.
2332 (check_default_argument): Likewise.
2333 * decl2.c (handle_class_head): Likewise.
2334 * error.c (dump_template_decl): Likewise.
2335 * init.c (build_offset_ref): Likewise.
2336 * pt.c (check_specialization_scope): Likewise.
2337 (determine_specialization): Likewise.
2338 (check_explicit_specialization): Likewise.
2339 (maybe_check_template_type): Likewise.
2340 (process_partial_specialization): Likewise.
2341 (check_default_tmpl_args): Likewise.
2342 (push_template_decl_real): Likewise.
2343 (convert_template_argument): Likewise.
2344 (try_class_unification): Likewise.
2345 (get_bindings_real): Likewise.
2346 (do_decl_instantiation): Likewise.
2347 * semantics.c (begin_function_definition): Likewise.
2348 (finish_member_declaration): Likewise.
2349 (check_multiple_declarators): Likewise.
2350 * typeck.c (comp_array_types): Likewise.
2351 (comptypes): Likewise.
2352 (expr_sizeof): Likewise.
2353 (build_binary_op): Likewise.
2354 (dubious_conversion_warnings): Likewise.
2355 (check_return_expr): Likewise.
b6ce26ac 2356
a6f5b2d3
MM
23572002-08-08 Mark Mitchell <mark@codesourcery.com>
2358
2359 * typeck.c (build_class_member_access_expr): Do not return
2360 error_mark_node when no error has occurred.
b6ce26ac 2361
c93a26f5
NS
23622002-08-08 Nathan Sidwell <nathan@codesourcery.com>
2363
2364 * typeck.c (build_component_addr): Remove.
2365 (build_unary_op): Just check it's not a bitfield, and then build
2366 an ADDR_EXPR.
2367
5bfc90de
NS
23682002-08-08 Nathan Sidwell <nathan@codesourcery.com>
2369
2370 * class.c (convert_to_base): Correct check for error_mark_node.
2371 (create_vtable_ptr): Remove unused VFUNS_P parm.
2372
22aa533e
NS
23732002-08-08 Nathan Sidwell <nathan@codesourcery.com>
2374
2375 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
2376
50ad9642
MM
23772002-08-07 Mark Mitchell <mark@codesourcery.com>
2378
2379 Rework build_component_ref.
2380 * call.c (build_vfield_ref): Do not go through build_component_ref.
2381 (build_field_call): Use build_class_member_access_expr.
2382 (build_user_type_conversion_1): Use BASELINK_FUNCTIONS.
2383 (build_object_call): Likewise.
2384 * class.c (convert_to_base): New function.
2385 (type_requires_array_cookie): Use BASELINK_FUNCTIONS.
2386 (instantiate_type): Handle BASELINKs.
2387 * cp-tree.def (BASELINK): New tree code.
2388 * cp-tree.h (BASELINK_P): Reimplement.
2389 (SET_BASELINK_P): Remove.
2390 (BASELINK_BINFO): Reimplement.
2391 (BASELINK_FUNCTIONS): Likewise.
2392 (BASELINK_ACCESS_BINFO): Likewise.
2393 (BASELINK_OPTYPE): Likewise.
2394 (convert_to_base): New function.
2395 (name_p): Likewise.
2396 (build_object_ref): Remove.
2397 (build_component_ref_1): Likewise.
2398 (build_component_ref): Likewise.
2399 (build_x_component_ref): Likewise.
2400 (build_class_member_access_expr): New function.
2401 (finish_class_member_access_expr): Likewise.
2402 (build_ptrmemfunc_access_expr): Likewise.
2403 * decl.c (grokdeclarator): Handle BASELINKs.
2404 * decl2. (build_expr_from_tree): Handle COMPONENT_REFs by using
2405 finish_class_member_access_expr.
2406 (arg_assoc): Handle BASELINKs.
2407 (do_class_using_decl): Likewise.
2408 * error.c (dump_decl): Likewise.
2409 (dump_expr): Use build_ptrmemfunc_access_expr.
2410 * except.c (dtor_nothrow): Use CLASSTYPE_DESTRUCTORS to find
2411 destructors.
2412 (build_throw): Use BASELINK_FUNCTIONS.
2413 * init.c (perform_member_init): Use
2414 build_class_member_access_expr.
2415 (build_offset_ref): Handle BASELINKs. Use
2416 build_class_member_access_expr.
2417 * method.c (hack_identifier): Likewise.
2418 * parse.y (do_id): Use BASELINK, not TREE_LIST.
2419 (primary): Remove uses of build_object_ref.
2420 * pt.c (lookup_template_function): Handle BASELINKs.
2421 (resolve_overloaded_unification): Likewise.
2422 * search.c (build_baselink): Build a BASELINK, not a TREE_LIST.
2423 (lookup_field): Use BASELINK, not TREE_LIST.
2424 (lookup_fnfiels): Likewise.
2425 (setup_class_bindings): Likewise.
2426 * semantics.c (finish_object_call_expr): Do not use
2427 build_method_call when we already know what function is being
2428 called.
2429 * spew.c (identifier_type): Use BASELINK, not TREE_LIST.
2430 * tree.c (really_overloaded_fn): Use OVL_CHAIN for OVERLOADs, not
2431 TREE_CHAIN.
2432 (name_p): New function.
2433 * typeck.c (build_object_ref): Remove.
2434 (build_component_ref_1): Likewise.
2435 (build_x_component_ref): Likewise.
2436 (build_class_member_access_expr): New function.
2437 (finish_class_member_access_expr): Likewise.
2438 (build_ptrmemfunc_access_expr): Likewise.
2439 (get_member_function_from_ptrfunc): Use
2440 build_ptrmemfunc_access_expr.
2441 (build_binary_op): Likewise.
2442 (build_unary_op): Likewise.
2443 (build_ptrmemfunc): Likewise.
2444 (pfn_from_ptrmemfunc): Likewise.
2445 * typeck2.c (build_m_component_ref): Adjust comment.
b6ce26ac 2446
0b6f2917
NB
24472002-08-07 Neil Booth <neil@daikokuya.co.uk>
2448
2449 * Make-lang.in (CXX_C_OBJS): Update.
2450 * cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
2451 * cp-tree.h (cxx_decode_option): Remove.
2452 * decl2.c (compare_options, lang_f_options, unsupported_options,
2453 cxx_decode_option): Remove.
2454
1e14c7f0
GDR
24552002-08-06 Gabriel Dos Reis <gdr@nerim.net>
2456
2457 * typeck.c (build_x_unary_op): Handle pointer-to-member.
2458
b3426eb9
GK
24592002-08-05 Geoffrey Keating <geoffk@redhat.com>
2460
2461 * class.c: Don't include obstack.h.
b6ce26ac 2462 (popclass):
b3426eb9
GK
2463 * decl2.c: Delete bogus comment.
2464 * error.c: Don't include obstack.h.
2465 * except.c: Likewise.
2466 (dump_type): Correct comment.
2467 * method.c: Don't include obstack.h.
2468 * tree.c: Likewise.
2469
201fbb7f
GDR
24702002-08-04 Gabriel Dos Reis <gdr@nerim.net>
2471
2472 Fix PR/2213
2473 * cvt.c (cp_convert_to_pointer): Reject conversions from integral
2474 expressions to pointer-to-data-member of pointer-to-member-functions.
2475
6d9f628e
GK
24762002-08-04 Geoffrey Keating <geoffk@redhat.com>
2477
2478 * cvt.c (ocp_convert): Delete obsolete code.
2479 * parse.y (permanent_obstack): Delete declaration.
2480 * pt.c (permanent_obstack): Delete declaration.
2481 * repo.c (permanent_obstack): Delete declaration.
2482 (open_repo_file): Use xmalloc instead of permanent_obstack.
2483 (init_repo): Use xstrdup instead of permanent_obstack.
2484
dd98e14f
NS
24852002-08-04 Nathan Sidwell <nathan@codesourcery.com>
2486
2487 * cp-tree.h (VF_DERIVED_VALUE): Remove.
2488 * class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE.
2489
e6858a84
NS
24902002-08-03 Nathan Sidwell <nathan@codesourcery.com>
2491
2492 PR 7470.
2493 C++ ABI change - vfunc ordering.
2494 * class.c (add_virtual_function): Remove.
2495 (dfs_modify_all_vtables): Take list of all declared
2496 virtuals. Assign all that are not in primary base.
2497 (check_for_override): Adjust comments.
2498 (create_vtable_ptr): Take single list of virtuals. Build chain
2499 of declared virtuals here.
2500 (layout_class_type): Take single list of virtuals. Adjust.
2501 (finish_struct_1): Keep virtuals on single list. Adjust.
2502
55765de4
MM
25032002-08-02 Mark Mitchell <mark@codesourcery.com>
2504
2505 * init.c (build_member_call): Use build_new_method_call, not
2506 build_method_call.
2507
d0067571
KW
25082002-08-02 Krister Walfridsson <cato@df.lth.se>
2509
2510 * Make-lang.in (spew.o, lex.o, pt.o): Add path to parse.h dependencies.
2511
4a34e0e8
MM
25122002-08-02 Mark Mitchell <mark@codesourcery.com>
2513
2514 * call.c (build_method_call): Issue a more helpful error message
2515 about ambiguous method names.
2516
41ab2ae2
NS
25172002-08-02 Nathan Sidwell <nathan@codesourcery.com>
2518
2519 * tree.c (build_shared_int_cst): Make cache file scope, and
2520 GTY it.
2521
367aa585
JM
25222002-08-02 Jason Merrill <jason@redhat.com>
2523
a77a9a18
JM
2524 * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
2525 (cp_expr_size): New fn.
2526 * call.c (build_over_call): Lose empty class hackery.
2527 (convert_arg_to_ellipsis): Promote non-POD warning to error.
2528 * typeck.c (build_modify_expr): Don't use save_expr on an lvalue.
2529
367aa585
JM
2530 * semantics.c (expand_body): Do tree optimization in the function
2531 context, too.
2532
4078b403
NB
25332002-08-01 Neil Booth <neil@daikokuya.co.uk>
2534
2535 * cp-tree.h: Move all warning and flag declarations to c-common.h.
2536 * decl.c: Move all warning and flag variables to c-common.c.
2537 * decl2.c: Move all warning and flag variables to c-common.c.
2538 * lex.c (flag_digraphs): Remove.
2539 (warn_traditional): Now in c-common.c.
2540
4ba126e4
MM
25412002-07-31 Mark Mitchell <mark@codesourcery.com>
2542
2543 * call.c (build_field_call): Do not look up the field by name.
2544 (build_method_call): Simplify.
2545 (struct z_candidate): Add access_path and conversion_path. Remove
2546 basetype_path.
2547 (convert_class_to_reference): Adjust use of
2548 add_function_candidate.
2549 (add_candidate): Add conversion_path argument.
2550 (add_function_candidate): Use it.
2551 (add_conv_dndidate): Likewise.
2552 (build_builtin_candidate): Likewise.
2553 (add_template_candidate_real): Add conversion_path argument.
2554 (add_template_conv_candidate): Likewise.
2555 (add_template_candidate): Likewise.
2556 (build_user_type_conversion_1): Use it.
2557 (build_new_function_call): Remove name lookup code. Adjust use of
2558 add_template_candidate and add_function_candidate.
2559 (build_new_op): Likewise.
2560 (convert_like_real): Use build_special_member_call.
2561 (build_over_call): Use cand->conversion_path.
2562 (build_special_member_call): New method.
2563 (build_new_method_call): Remove name lookup code.
2564 * cp-tree.def (OFFSET_REF): Update documentation.
2565 (TEMPLATE_ID_EXPR): Likewise.
2566 * cp-tree.h (BASELINK_ACCESS_BINFO): New macro.
2567 (BASELINK_OPTYPE): Likewise.
2568 (build_new_method_call): Adjust prototype.
2569 (build_special_member_call): New method.
2570 (build_baselink): New method.
2571 (build_offset_ref_call_from_tree): Likewise.
2572 (build_call_from_tree): Likewise.
2573 (finish_qualified_call_expr): Remove.
2574 (finish_call_expr): Adjust prototype.
2575 (build_x_function_call): Remove.
2576 * cvt.c (ocp_convert): Use build_special_member_call.
2577 * decl2.c (reparse_absdcl_as_expr): Use finish_call_expr.
2578 (build_expr_from_tree): Adjust handling for TEMPLATE_ID_EXPR and
2579 CALL_EXPR.
2580 (build_offset_ref_call_from_tree): New function.
2581 (build_call_from_tree): Likewise.
2582 * init.c (expand_cleanup): Use build_special_member_call.
2583 (expand_default_init): Likewise.
2584 (build_member_call): Use finish_call_expr.
2585 (build_new_1): Use build_special_member_call.
2586 (push_base_cleanups): Likewise.
2587 * method.c (do_build_assign_ref): Likewise.
2588 * parse.y (template_id): Do not pass a COMPONENT_REF to
2589 lookup_template_function.
2590 (primary): Use parse_finish_call_epxr, not finish_call_expr.
2591 (parse_finish_call_expr): New function.
2592 * pt.c (lookup_template_function): Add assertions.
2593 * search.c (lookup_base): Allow T to be a binfo.
2594 (build_baselink): New function.
2595 (lookup_member): Use it.
2596 * semantics.c (finish_call_expr): Do not do name lookup.
2597 (finish_object_call_expr): Remove #if 0'd code.
2598 (finish_qualified_call_expr): Remove.
2599 * typeck.c (build_x_function_call): Remove.
2600 (build_static_case): Use build_special_member_call.
2601 * typeck2.c (build_functional_cast): Likewise.
b6ce26ac 2602
60b8aa94
FS
26032002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2604
2605 * lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c.
2606
8a4a7242
GDR
26072002-07-30 Gabriel Dos Reis <gdr@nerim.net>
2608
2609 * cp-tree.h (VF_DERIVED_VALUE): Restore from previous deletion.
2610
03fc215c
NS
26112002-07-30 Nathan Sidwell <nathan@codesourcery.com>
2612
2613 * cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more
2614 documentation.
2615
3f16a8f3
AM
26162002-07-29 Alan Modra <amodra@bigpond.net.au>
2617
2618 * cp-tree.h: Comment typo fix.
2619
c03d566f
RE
26202002-07-29 Richard Earnshaw <rearnsha@arm.com>
2621
2622 * spew.c (space_for_token): Allocate zeroed memory for a new token
2623 chunk.
2624
c2ef6d34
RS
26252002-07-27 Roger Sayle <roger@eyesopen.com>
2626
2627 * decl.c (builtin_function_1): No need to explicitly mark
2628 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
2629
a3926fe1
RS
26302002-07-27 Roger Sayle <roger@eyesopen.com>
2631
2632 * decl2.c (cxx_decode_option): Support -fno-builtin-foo.
2633
8e51619a
JM
26342002-07-26 Jason Merrill <jason@redhat.com>
2635
2636 * call.c (build_over_call): Likewise.
2637 (cp_convert_parm_for_inlining): New fn.
f989ed67
ZW
2638 (convert_for_arg_passing): New fn.
2639 (convert_default_arg, build_over_call): Use it.
8e51619a
JM
2640 (type_passed_as): New fn.
2641 * pt.c (tsubst_decl): Use it.
2642 * decl2.c (cp_build_parm_decl): New fn.
2643 (build_artificial_parm): Use it.
2644 (start_static_storage_duration_function): Likewise.
2645 * decl.c (start_cleanup_fn, grokdeclarater): Likewise.
2646 (grokparms): Don't mess with DECL_ARG_TYPE.
2647 * typeck.c (convert_arguments): Use convert_for_arg_passing.
2648 * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2649 Define.
2650 * cp-tree.h: Declare new fns.
b6ce26ac 2651
c372b0fa
NB
26522002-07-26 Neil Booth <neil@daikokuya.co.uk>
2653
2654 * cp-tree.h (flag_operator_names): Remove.
2655 * decl2.c (flag_operator_names): Remove.
2656 (lang_f_options): Remove operator-names.
2657 * lex.c (D_OPNAME): Remove.
2658 (reswords): Remove operator names.
2659 (rid_to_yy): Remove operator names.
2660 (init_reswords): No need to handle D_OPNAME.
2661 * spew.c (read_process_identifier): There are no operator
2662 names.
2663
558ee214
JM
26642002-07-26 Jason Merrill <jason@redhat.com>
2665
2666 * dump.c (cp_dump_tree): Call c_dump_tree.
2667 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
2668
81a1552d
NB
26692002-07-25 Neil Booth <neil@daikokuya.co.uk>
2670
2671 * error.c (print_whitespace): Remove.
2672 * g++spec.c (LIBUNWIND): Move.
2673 * mangle.c (mangled_position, write_signed_number): Remove.
2674
cad2c6b6
NB
26752002-07-25 Neil Booth <neil@daikokuya.co.uk>
2676
2677 * decl2.c (cxx_decode_option): Similarly.
2678
ea793912
GDR
26792002-07-25 Gabriel Dos Reis <gdr@nerim.net>
2680
2681 * cp-tree.h (cxx_sizeof_nowarn): Now a macro.
2682 (cxx_sizeof_or_alignof_type): Take a third argument.
2683 (cxx_sizeof): Adjust definition.
2684 (cxx_alignof): Likewise.
2685 * init.c (build_delete): Use cxx_sizeof_nowarn to reflect reality.
2686 * typeck.c (cxx_sizeof_or_alignof_type): Take a third argument for
2687 complaining.
2688 (c_sizeof_nowarn): Remove definition.
2689 (build_unary_op): Use cxx_sizeof_nowarn.
2690
3cfab7ec
GK
26912002-07-24 Geoffrey Keating <geoffk@redhat.com>
2692
2693 * tree.c (cp_build_qualified_type_real): When copying
2694 pointer-to-method types, unshare the record that holds
2695 the cached pointer-to-member-function type.
2696
c0667597
NB
26972002-07-23 Neil Booth <neil@daikokuya.co.uk>
2698
2699 * cp-tree.h (FILE_FUNCTION_PREFIX_LEN): Remove.
2700
fa72b064
GDR
27012002-07-23 Gabriel Dos Reis <gdr@nerim.net>
2702
2703 Fix PR/7363:
2704 * typeck.c (cxx_sizeof_or_alignof_type): New function.
2705 (c_sizeof): Remove definition.
2706 (expr_sizeof): Use cxx_sizeof.
2707 * decl2.c (build_expr_from_tree): Use cxx_sizeof_or_alignof_type.
2708 * decl.c (finish_destructor_body): Use cxx_sizeof.
2709 * semantics.c (finish_alignof): Likewise.
2710 (finish_alignof): Use cxx_alignof.
2711 * cp-tree.h (cxx_sizeof, cxx_alignof): New macros.
2712 (cxx_sizeof_or_alignof_type): Declare.
2713 (my_friendly_assert): Move to ../c-common.h.
2714
4fa31c2a
NB
27152002-07-23 Neil Booth <neil@daikokuya.co.uk>
2716
2717 * class.c, method.c, pt.c, search.c: Don't define obstack macros.
2718
0e902d98
KL
27192002-07-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2720
2721 PR c++/7347, c++/7348
2722 * cp-tree.h (tsubst_flags_t): Add tf_parsing.
2723 * decl.c (make_typename_type): Use it.
2724 (make_unbound_class_template): Likewise.
2725 (lookup_name_real): Don't call type_access_control if scope is
2726 template parameter dependent.
2727 * parse.y (template_arg): Call make_unbound_class_template with
2728 tf_parsing set.
2729 (nest_name_specifier): Call make_typename_type with tf_parsing set.
2730 (typename_sub0): Likewise.
2731 (typename_sub1): Likewise.
2732 (instantiate_decl): Push class scope.
2733 * pt.c (regenerate_decl_from_template): Call pushclass and popclass
2734 for both static variable and member function template.
2735 (instantiate_decl) Call pushclass and popclass when tsubst'ing type
2736 and arguments.
2737 * search.c (type_access_control): Do type access for TEMPLATE_DECL
2738 too.
2739
b886c620
RS
27402002-07-20 Roger Sayle <roger@eyesopen.com>
2741
2742 * decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
2743 test by using positive_option. Make whitespace consistent.
2744
7a561142
GDR
27452002-07-20 Gabriel Dos Reis <gdr@nerim.net>
2746
fa72b064 2747 * spew.c (struct unparsed_test): Replace 'filename' and 'lineno'
7a561142
GDR
2748 members with 'locus'. Adjust use throughout.
2749 (struct feed): Likewise.
2750 (alloc_unparsed_test): Change prototype, take a 'const location_t *'.
2751 Adjust use.
2752 (snarf_defarg): Use error(), not error_with_file_and_line().
2753
059ba716
CD
27542002-07-19 Chris Demetriou <cgd@broadcom.com>
2755
2756 * lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever
2757 cpp_options is included.
2758
d955f6ea
KL
27592002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2760
2761 PR c++/2862, c++/2863
2762 * pt.c (determine_specialization): Compare the length of
2763 TYPE_ARG_TYPES. Tidy.
2764
d03d18e8
KL
27652002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2766
2767 PR c++/3797
2768 * decl.c (duplicate_decls): Don't propagate inlining parameters from
b6ce26ac 2769 olddecl to newdecl when newdecl is a specialization of the
d03d18e8
KL
2770 instantiation olddecl.
2771
ba59df78
KL
27722002-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2773
2774 PR c++/4802, c++/5387
2775 * decl.c (make_typename_type): Use enforce_access.
2776
58f05188
SS
27772002-07-17 Scott Snyder <snyder@fnal.gov>
2778
2779 PR c++/7320
2780 * rtti.c (get_tinfo_decl): Set DECL_COMDAT.
2781
04ec0065
MM
27822002-07-12 Mark Mitchell <mark@codesourcery.com>
2783
2784 * class.c (add_method): Correct handling of conversion operators.
2785
f0ab6bf2
MM
27862002-07-11 Mark Mitchell <mark@codesourcery.com>
2787
2788 PR c++/7224
2789 * class.c (add_method): Simplify.
2790
34902e16
JM
27912002-07-11 Jason Merrill <jason@redhat.com>
2792
2793 PR c++/7279
2794 * tree.c (cp_copy_res_decl_for_inlining): Also copy
2795 TREE_ADDRESSABLE.
2796
6e04241f
GS
27972002-07-10 Graham Stott <graham.stott@btinternet.com>
2798
2799 * pt.c (template_parm_this_level_p, push_template_decl_real):
b6ce26ac 2800 Pass depth as int pointer.
6e04241f 2801
8ac9d31f
TJ
28022002-07-11 Tim Josling <tej@melbpc.org.au>
2803
b6ce26ac 2804 Remove front end hard coding from gengtype.c.
8ac9d31f
TJ
2805
2806 * config-lang.in (gtfiles): Add files needed for this front end.
2807
15c7fb9c
MM
28082002-07-10 Mark Mitchell <mark@codesourcery.com>
2809
2810 * cp-tree.h (unqualified_name_lookup_error): Declare it.
2811 (begin_function_definition): Adjust prototype.
2812 * lex.c (unqualified_name_lookup_error): New function, split out
2813 from ...
2814 (do_identifier): ... here.
2815 * parse.y (parse_begin_function_definition): New function.
2816 (fn.def1): Use it.
2817 * semantics.c (begin_function_definition): Accept decl-specifiers
2818 and attributes as separate parameters.
2819
abf92e26
JM
28202002-07-10 Jason Merrill <jason@redhat.com>
2821
2822 PR c++/6255
2823 * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
2824 modifying the old one.
2825
8ba658ee
MM
28262002-07-09 Mark Mitchell <mark@codesourcery.com>
2827
2828 * cp-tree.h (constructor_name_p): Declare it.
2829 (check_template_template_default_arg): Likewise.
2830 * class.c (handle_using_decl): Use constructor_name_p.
2831 * decl.c (grokdeclarator): Likewise.
2832 * decl2.c (constructor_name_p): Define it.
2833 * init.c (build_member_call): Use constructor_name_p.
2834 * parse.y (template_parm): Use check_template_template_default_arg.
2835 * pt.c (check_explicit_specialization): Use constructor_name_p.
2836 * semantics.c (check_template_template_default_arg): New function.
b6ce26ac 2837
d5372501
KL
28382002-07-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2839
2840 * pt.c (can_complete_type_without_circularity): Add static to
2841 function definition.
2842
594bb0e7
MM
28432002-07-08 Mark Mitchell <mark@codesourcery.com>
2844
2845 * cp-tree.h (have_extern_spec): Declare it
2846 * decl.c (have_extern_spec): Define it.
2847 (start_decl): Eliminate use of used_extern_spec.
2848 (start_function): Likewise.
2849 * parse.y (have_extern_spec): Remove declaration.
2850 (used_extern_spec): Likewise.
2851 (frob_specs): Eliminate use of used_extern_spec.
2852 (.hush_warning): Likewise.
2853
eb8845be
MM
28542002-07-07 Mark Mitchell <mark@codesourcery.com>
2855
2856 * Make-lang.in (cp/parse.o): Depend on decl.h.
2857 * cp-tree.h (do_decl_instantiation): Change prototype.
2858 * parse.y: Include decl.h.
2859 (parse_decl_instantiation): New function.
2860 (explicit_instantiation): Use it.
2861 * pt.c (do_decl_instantiation): Accept a DECL, not a DECLARATOR
2862 and DECLSPECS.
b6ce26ac 2863
78abea27
RS
28642002-07-07 Roger Sayle <roger@eyesopen.com>
2865
2866 * error.c (dump_function_name): Use DECL_TEMPLATE_RESULT for
2867 constructor and destructor tests when passed a TEMPLATE_DECL.
2868
98c07d7b
JM
28692002-07-05 Jason Merrill <jason@redhat.com>
2870
212e17fd
JM
2871 * cvt.c (cp_convert_to_pointer): Call force_fit_type for null
2872 pointers.
2873
98c07d7b
JM
2874 PR optimization/7145
2875 * tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
2876
c6f553d1
NS
28772002-07-05 Nathan Sidwell <nathan@codesourcery.com>
2878
2879 Repair damage on weak-impared targets caused by my previous patch.
2880 * cp-tree.h (import_export_tinfo): Add parameter.
2881 * decl2.c (import_export_tinfo): Add parameter, post adjust
2882 DECL_COMDAT.
2883 * rtti.c (emit_tinfo_decl): DECL_COMDAT is (nearly) always setup by
2884 import_export_tinfo.
2885
b2153b98
KL
28862002-07-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2887
2888 PR c++/6944
2889 * init.c (build_aggr_init): Remove qualifiers of init before calling
2890 build_vec_init.
2891 (build_vec_init): Flatten multi-dimensional array during cleanup.
2892 (build_vec_delete_1): Abort if the type of each element is array.
2893
492ff760
GS
28942002-07-03 Graham Stott <graham.stott@btinternet.com>
2895
2896 * pt.c (instantiate_class_template): Fix typo.
2897
04c4491d
KL
28982002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2899
06728f70
KL
2900 * typeck2.c (cxx_incomplete_type_diagnostic): Fix typo caused
2901 by CVS conflict in my last patch.
04c4491d 2902
17f29637
KL
29032002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2904
2905 PR c++/6716
2906 * pt.c (can_complete_type_without_circularity): New function.
2907 (instantiate_class_template): Use it.
06728f70
KL
2908 * typeck2.c (cxx_incomplete_type_diagnostic): Improve error
2909 message due to incomplete fields.
17f29637 2910
5d69ba1f
MM
29112002-07-01 Mark Mitchell <mark@codesourcery.com>
2912
2913 PR c++/7112
2914 * mangle.c (write_expression): Add mangling for sizeof when
2915 applied to a type.
2916 * operators.def: Remove stale comment.
2917
d689a8f1
NS
29182002-06-30 Nathan Sidwell <nathan@codesourcery.com>
2919
2920 * cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
2921 (CPTI_TYPE_INFO_PTR_TYPE): ... this.
2922 (tinfo_decl_type): Replace with ...
2923 (type_info_ptr_type): ... this.
2924 (import_export_tinfo): Declare.
2925 (tinfo_decl_p): Rename to ...
2926 (unemitted_tinfo_decl_p): ... this.
2927 * decl2.c (import_export_decl): Break out tinfo handling into ...
2928 (import_export_tinfo): ... here. New function.
2929 (finish_file): Adjust.
2930 * rtti.c (TINFO_REAL_NAME): New macro.
2931 (init_rtti_processing): Create the tinfo types.
2932 (get_tinfo_decl_dynamic): Use type_info_ptr_type, get_tinfo_ptr.
2933 (get_tinfo_decl): Adjust.
2934 (get_tinfo_ptr): New function.
2935 (get_type_id): Use it.
2936 (tinfo_base_init): Create vtable decl here, if it doesn't exist.
2937 (ptr_initializer): Use get_tinfo_ptr.
2938 (ptm_initializer): Likewise.
2939 (synthesize_tinfo_var): Break into ...
2940 (get_pseudo_ti_init): ... this. Just create the initializer.
2941 (get_pseudo_ti_desc): .. and this.
2942 (create_real_tinfo_var): Remove.
2943 (create_pseudo_type_info): Don't create the vtable decl here.
2944 (get_vmi_pseudo_type_info): Remove.
2945 (create_tinfo_types): Adjust.
2946 (tinfo_decl_p): Rename to ...
2947 (unemitted_tinfo_decl_p): ... here. Adjust.
2948 (emit_tinfo_decl): Adjust. Create the initializer.
2949
5ce49b4b
MM
29502002-06-27 Mark Mitchell <mark@codesourcery.com>
2951
2952 PR c++/6695
2953 * pt.c (tsubst_friend_class): Substitute into the context of the
2954 friend before using it.
2955
88e5899c
MM
29562002-06-26 Mark Mitchell <mark@codesourcery.com>
2957
2958 * cp-tree.h (xref_tag): Change prototype.
2959 (handle_class_head): Likewise.
2960 (build_x_component_ref): Likewise.
2961 * decl.c (cxx_init_decl_processing): Adjust call to xref_tag.
2962 (xref_tag): Take attributes as a separate parameter.
2963 (xref_tag_from_type): Adjust call to xref_tag.
2964 * decl2.c (build_expr_from_tree): Adjust call to
2965 build_x_component_ref.
2966 (handle_class_head): Take attributes as a separate parameter.
2967 * parse.y (parse_xref_tag): New function.
2968 (parse_handle_class_head): Likewise.
2969 (primary): Use parse_xref_tag.
2970 (class_head_decl): Use parse_handle_class_head.
2971 (class_head_defn): Likewise.
2972 * rtti.c (init_rtti_processing): Adjust call to xref_tag.
2973 (build_dynamic_cast_1): Likewise.
2974 (create_pseudo_type_info): Likewise.
2975 (emit_support_tinfos): Likewise.
2976 * typeck.c (build_object_ref): Adjust call to
2977 build_x_component_ref.
2978 (build_x_component_ref): Remove protect parameter.
b6ce26ac 2979
da15dae6
MM
29802002-06-25 Mark Mitchell <mark@codesourcery.com>
2981
2982 * call.c (build_op_delete_call): Use BASELINK_FUNCTIONS.
2983 * class.c (handle_using_decl): Likewise.
2984 (instantiate_type): Likewise.
2985 * cp-tree.h (BASELINK_FUNCTIONS): New macro.
2986 (xref_basetypes): Change prototype.
2987 (begin_mem_initializers): New function.
2988 (get_overloaded_fn): Likewise.
2989 * decl.c (xref_basetypes): Simplify.
2990 * error.c (dump_expr): Use BASELINK_FUNCTIONS.
2991 * init.c (build_offset_ref): Likewise.
2992 * parse.y (base_init): Use begin_mem_initializers().
2993 (structsp): Adjust call to xref_basetypes.
2994 * pt.c (determine_specialization): Use BASELINK_FUNCTIONS.
2995 (instantiate_class_template): Adjust call to xref_basetypes.
2996 * semantics.c (begin_mem_initializers): New function.
2997 * tree.c (is_overloaded_fn): Use BASELINK_FUNCTIONS.
2998 (really_overlaoded_fn): Likewise.
2999 (get_overloaded_fn): New function.'
3000 (get_first_fn): USe BASELINK_FUNCTIONS.
b6ce26ac 3001
5f261ba9
MM
30022002-06-24 Mark Mitchell <mark@codesourcery.com>
3003
3004 * cp-tree.h (SCALAR_TYPE_P): New macro.
3005 (check_for_out_of_scope_variable): New function.
3006 (at_class_scope_p): Likewise.
3007 (finish_fname): Likewise.
3008 * class.c (finish_struct): Use at_function_scope_p.
3009 * decl.c (check_for_out_of_scope_variable): New function, split
3010 out from do_identifier.
3011 (finish_enum): Use at_function_scope_p.
3012 * lex.c (do_identifier): Use check_for_out_of_scope_variable.
3013 * parse.y (VAR_FUNC_NAME): Give it <ttype>. Use finish_fname.
3014 (primary): Use at_function_scope_p.
3015 * search.c (at_class_scope_p): New function.
3016 * semantics.c (finish_fname): Likewise.
3017 (check_multiple_declarators): Use at_function_scope_p.
b6ce26ac 3018
80b1331c
MM
30192002-06-23 Mark Mitchell <mark@codesourcery.com>
3020
3021 * parse.y (parse_scoped_id): New function.
3022 (primary): Use it.
3023 * cp-tree.h (do_scoped_id): Adjust declaration.
3024 * lex.c (do_scoped_id): Remove call to yylex.
3025 * decl2.c (build_expr_from_tree): Adjust use of do_scoped_id.
3026 * typeck2.c (add_exception_specifier): Use tree_cons, rather than
3027 expanding it inline.
b6ce26ac 3028
08c7ae5a
MT
30292002-06-23 Matt Thomas <matt@3am-software.com>
3030
3031 * decl.c (finish_function): Change "#ifdef VMS_TARGET" to
3032 "#if VMS_TARGET".
3033
eb6b51b9
KG
30342002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3035
3036 * mangle.c (integer_type_codes): Const-ify.
3037
aa8dea09
RH
30382002-06-20 Richard Henderson <rth@redhat.com>
3039
3040 PR c++/6747
f989ed67
ZW
3041 * typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
3042 Call put_var_into_stack.
aa8dea09 3043
62c71f4b
KG
30442002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3045
3046 * spew.c (remove_last_token): Use ARRAY_SIZE in lieu of explicit
3047 array size calculation.
3048
aa16c0fa
KL
30492002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3050
3051 PR c++/6892
3052 * pt.c (tsubst_expr): Handle FILE_STMT.
3053
342cea95
KL
30542002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3055
3056 PR c++/6723
3057 * pt.c (lookup_template_class): Don't build complete argument of
3058 BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
3059 argument.
3060
84d901be
AD
30612002-06-19 Akim Demaille <akim@epita.fr>
3062
3063 * parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
3064 decl.h's TYPENAME.
3065 * spew.c, lex.c: Adjust.
3066 * parse.y (explicit_instantiation): Add empty action to override
3067 the default $$ = $1 where it introduces a type clash.
3068
83b14b88
JM
30692002-06-14 Jason Merrill <jason@redhat.com>
3070
18ba380b
JM
3071 * semantics.c (begin_for_stmt): Push the 'for' scope before
3072 adding the FOR_STMT.
3073
83b14b88
JM
3074 C++ ABI changes.
3075 * class.c (build_base_field): Set DECL_PACKED.
3076 (layout_class_type): Don't use tail padding of PODs.
3077 * mangle.c (write_unqualified_name): Fix template conversion op
3078 mangling.
3079
fd852454
RH
30802002-06-16 Richard Henderson <rth@redhat.com>
3081
3082 PR opt/6793
3083 * tree.c (cp_cannot_inline_tree_fn): Don't short-circuit test
3084 after template instantiation.
3085
750491fc
RH
30862002-06-16 Richard Henderson <rth@redhat.com>
3087
3088 * cp-tree.h, decl2.c (flag_ms_extensions): Move to c-common.
3089
f7d3c5f0
GDR
30902002-06-15 Gabriel Dos Reis <gdr@codesourcery.com>
3091
3092 * cp-tree.h (compiler_error): Remove declaration.
3093 * lex.c (compiler_error): Remove definition.
3094
893a047c
SE
30952002-06-14 Steve Ellcey <sje@cup.hp.com>
3096
3097 * g++spec.c (LIBUNWIND): New.
3098 (lang_specific_driver): Add it if USE_UNWIND_EXCEPTIONS is set.
3099
a6f5e048
RH
31002002-06-13 Jessica Han <jessica@cup.hp.com>
3101
3102 * class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN.
3103 (build_vtbl_initializer): Honor TARGET_VTABLE_DATA_ENTRY_DISTANCE.
3104 (build_vbase_offset_vtbl_entries): Likewise.
3105 * rtti.c (build_headof): Likewise.
3106 (get_tinfo_decl_dynamic): Likewise.
3107 (create_pseudo_type_info): Likewise.
3108
e4dadd2a
SS
31092002-06-12 Stan Shebs <shebs@apple.com>
3110
3111 * mpw-config.in: Remove file, no longer used.
3112 * mpw-make.sed: Ditto.
3113
09e77dee
ZW
31142002-06-07 Zack Weinberg <zack@codesourcery.com>
3115
3116 * decl2.c: Update call to cpp_handle_option.
3117
4bafaa6f
L
31182002-06-07 H.J. Lu (hjl@gnu.org)
3119
3120 * decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.
3121
3cb8660c
GDR
31222002-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
3123
3124 * error.c (cp_error_at): Fix typo.
3125
47b69537
GDR
31262002-06-04 Gabriel Dos Reis <gdr@codesourcery.com>
3127
3128 * error.c (cp_diagnostic_starter): Adjust call.
3129 (maybe_print_instantiation_context): Change prototype to take a
3130 'diagnostic_info *'.
3131 (print_instantiation_full_context): Likewise.
3132 (print_instantiation_partial_context): Likewise.
3133 (cp_diagnostic_starter): Likewise.
3134 (cp_diagnostic_finalizer): Likewise.
3135 (cp_print_error_function): Likewise.
3136 (cp_printer): Take a secondary parameter as a 'text_info *'.
3137 Remove output_state savings. Adjust calls.
3138
e2500fed
GK
31392002-06-03 Geoffrey Keating <geoffk@redhat.com>
3140
3141 * pt.c (inline_parm_levels): Mark for GC.
3142
3143 * mangle.c (start_mangling): Allocate G.substitutions here...
3144 (init_mangle): ... rather than here.
3145 (finish_mangling): Clear the varray pointer when done with it.
84d901be
AD
3146 * spew.c (yylexstring): Don't use VARRAY_FREE.
3147 * search.c (bfs_walk): Don't use VARRAY_FREE.
e2500fed
GK
3148 * decl2.c (pending_statics): Use gengtype to mark.
3149 (deferred_fns): Likewise.
3150 (ssdf_decls): Likewise.
3151 (init_decl2): Delete.
3152 * decl.c (pop_from_top_level): Don't use VARRAY_FREE.
3153 (cxx_init_decl_processing): Don't call init_decl2.
3154 (cxx_pop_function_context): Don't use VARRAY_FREE.
3155 * cp-tree.h (struct saved_scope): No need for special marking
3156 of varrays.
3157 (struct language_function): Likewise.
3158 (local_classes): Use gengtype to mark.
3159 (init_decl2): Delete prototype.
3160 * class.c (init_class_processing): Don't use
3161 ggc_add_tree_varray_root.
3162 (build_vtbl_initializer): Don't use VARRAY_FREE.
3163
3164 * decl.c (typename_compare): Don't use same_type_p.
3165
3166 * decl.c: Include hashtab.h instead of hash.h.
3167 (typename_hash): Update to use htab_h.
3168 (typename_compare): Likewise.
3169 (typename_htab): Use gengtype to mark.
3170 (build_typename_type): Update to use htab_h.
3171 * Make-lang.in (cp/decl.o): Use HASHTAB_H instead of hash.h.
3172
3173 * Make-lang.in (gt-cp-tree.h): New rule.
3174 (cp/tree.o): Depend on gt-cp-tree.h.
3175 * config-lang.in (gtfiles): Add cp/tree.c.
3176 * tree.c: Include gt-cp-tree.h.
3177 (list_hash_table): Use gengtype to mark.
3178 (init_tree): Use gengtype to mark trees.
3179
3180 * Make-lang.in (cp/decl.o): Add debug.h dependency.
3181 * call.c (struct z_candidate): Use gengtype.
3182 (USER_CONV_CAND): Use WRAPPER_ZC.
3183 (convert_class_to_reference): Use build_zc_wrapper.
3184 (build_type_conversion_1): Likewise.
3185 (build_over_call): Use WRAPPER_ZC.
3186 (add_warning): Use build_zc_wrapper.
3187 * cp-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3188 * cp-tree.h (struct lang_identifier): Use gengtype.
3189 (struct template_parm_index_s): Likewise.
3190 (struct ptrmem_cst): Likewise.
3191 (struct tree_binding): Likewise.
3192 (struct tree_overload): Likewise.
3193 (struct tree_srcloc): Likewise.
3194 (struct tree_wrapper): Likewise. Also modify to have a pointer
3195 to struct z_candidate rather than void.
3196 (enum cp_tree_node_structure_enum): New.
3197 (union lang_tree_node): New.
3198 (cxx_mark_tree): Delete prototype.
3199 (cp_tree_node_structure): New prototype.
3200 (build_ptr_wrapper): Delete prototype.
3201 (build_int_wrapper): Delete prototype.
3202 (build_zc_wrapper): New prototype.
3203 * decl.c: Include debug.h
3204 (cxx_mark_tree): Delete.
3205 (cp_tree_node_structure): New.
3206 * tree.c (build_ptr_wrapper): Delete.
3207 (build_int_wrapper): Delete.
3208 (build_zc_wrapper): New.
3209
3210 * cp-tree.h [! ENABLE_TREE_CHECKING] (LANG_TYPE_PTRMEM_CHECK):
3211 Correct typo. Patch from k_fukui@highway.ne.jp.
3212
3213 * semantics.c (current_stmt_tree): Update for change to
3214 struct language_function.
3215 (finish_mem_initializers): Likewise.
3216 * decl.c (cxx_init_decl_processing): Don't set mark_lang_status.
3217 * cp-tree.h (struct language_function): Rename from
3218 cp_language_function. Change all uses.
3219 (cp_function_chain): Don't need to cast.
3220
3221 * class.c (duplicate_tag_error): Reset discriminator.
3222 (check_bases_and_members): Update for data structure changes.
3223 * cp-tree.h (struct lang_id2): Use gengtype.
3224 (flagged_type_tree): Likewise.
3225 (SET_LANG_ID): Use GGC on struct lang_id2.
3226 (struct cp_language_function): Use gengtype. Remove field
3227 'x_vcalls_possible_p'.
3228 (current_vcalls_possible_p): Delete.
3229 (struct lang_type_header): New.
3230 (struct lang_type_class): Rename from struct lang_type. Include
3231 struct lang_type_header.
3232 (struct lang_type_ptrmem): New.
3233 (struct lang_type): New.
3234 (LANG_TYPE_CLASS_CHECK): New. Use it in all the appropriate macros.
3235 (LANG_TYPE_PTRMEM_CHECK): New. Use it in all the appropriate macros.
3236 (TYPE_SET_PTRMEMFUNC_TYPE): Set discriminator, update for changes.
3237 (struct lang_decl_flags): Use gengtype. Add discriminators.
3238 (struct lang_decl): Use gengtype. Add and use discriminators.
3239 Update the macros that reference moved fields.
3240 (LANG_DECL_U2_CHECK): New function. Use it when appropriate.
3241 (SET_DECL_THUNK_P): Set discriminator too.
3242 (clear_inline_text_obstack): Delete prototype.
3243 (finish_inline_definitions): Delete prototype.
3244 (mark_pending_inlines): Delete prototype.
3245 (lang_check_failed): New prototype.
3246 * decl.c (struct named_label_use_list): Use gengtype.
3247 (struct named_label_list): Likewise.
3248 (mark_binding_level): Delete.
3249 (mark_named_label_lists): Delete.
3250 (push_local_name): Set discriminator on DECL_LANG_SPECIFIC.
3251 (cxx_init_decl_processing): Use generated marker routine.
3252 (begin_destructor_body): Delete dead set to
3253 current_vcalls_possible_p.
3254 (mark_lang_function): Delete.
3255 (mark_cp_function_context): Delete.
3256 (lang_mark_tree): Use generated marker routines.
3257 * decl2.c (start_objects): Set discriminator when setting
3258 GLOBAL_INIT_PRIORITY.
3259 * lex.c (retrofit_lang_decl): Set discriminators.
3260 (copy_lang_type): Update for changes to lang_type structure.
3261 (cp_make_lang_type): Set discriminator.
3262 * parse.y: Use gengtype on YYLVAL. Don't use dots in identifiers.
3263 * search.c: Include ggc.h.
3264 * semantics.c (anon_aggr_type_p): Use the macro, don't hand-code it.
3265 (finish_inline_definitions): Delete.
3266 * spew.c (struct token): Use gengtype.
3267 (struct token_chunk): New.
3268 (struct unparsed_text): Use gengtype. Store tokens in chunks.
3269 (struct feed): Use gengtype.
3270 (feed_obstack): Delete.
3271 (feed): Mark as GC root.
3272 (pending_inlines): Mark as GC root.
3273 (pending_inlines_tail): Likewise.
3274 (processing_these_inlines): Likewise.
3275 (token_obstack): Make static.
3276 (first_token): Likewise.
d30d6e7a 3277 (init_spew): Don't initialize deleted things; use gengtype for roots.
e2500fed
GK
3278 (clear_inline_text_obstack): Delete.
3279 (feed_input): Use GC for struct feed. Update for changes to
3280 struct unparsed_text.
3281 (mark_pending_inlines): Delete.
3282 (next_token): Rename from add_token. Change all callers. Update
3283 for changes to struct unparsed_text.
3284 (space_for_token): New.
3285 (remove_last_token): New.
3286 (alloc_unparsed_text): New.
3287 (snarf_block): Take an unparsed_text. Update for changes to struct
3288 unparsed_text.
3289 (snarf_method): Update for changes to struct unparsed_text.
3290 (snarf_defarg): Update for changes to struct unparsed_text.
3291 * tree.c (lang_check_failed): New.
3292
3293 * Make-lang.in (gt-cp-call.h gt-cp-decl2.h gt-cp-parse.h
3294 gt-cp-pt.h gt-cp-repo.h gt-cp-spew.h): New rules.
3295 (cp/spew.o): Add dependency on gt-<filename>.h.
3296 (cp/decl2.o): Add dependency on gt-<filename>.h.
3297 (cp/call.o): Add dependency on gt-<filename>.h.
3298 (cp/pt.o): Add dependency on gt-<filename>.h.
3299 (cp/repo.o): Add dependency on gt-<filename>.h.
3300 (cp/parse.o): Add dependency on gt-<filename>.h.
3301 * call.c: Use gengtype for roots.
3302 * config-lang.in (gtfiles): Add cp-tree.h decl.h lex.h call.c
3303 decl2.c parse.y pt.c repo.c spew.c.
3304 * cp-tree.h: Use gengtype for roots.
3305 (struct saved_scope): Use GGC, gengtype.
3306 (cp_parse_init): Delete prototype.
3307 (init_pt): Delete prototype.
3308 * decl.c: Use gengtype for roots.
3309 (mark_saved_scope): Delete.
3310 (cxx_init_decl_processing): Don't call deleted initilisation
3311 routines.
3312 (signed_size_zero_node): Delete, unused.
3313 * decl.h: Use gengtype for roots.
3314 * decl2.c: Use gengtype for roots.
3315 * lex.h: Use gengtype for roots.
3316 * parse.y: Use gengtype for roots.
3317 (cp_parse_init): Delete.
3318 * pt.c: Use gengtype for roots.
3319 (init_pt): Delete.
3320 * repo.c: Use gengtype for roots.
3321 * spew.c: Use gengtype for roots.
3322
3323 * Make-lang.in: Allow for filename changes. Add gtype-cp.h.
3324 (cp/decl.o): Add dependency on gtype-cp.h.
3325 * decl.c: Remove use of add_deletable_root, use GTY marker instead.
3326 Include gtype-cp.h. Allow for filename changes.
3327
3328 * Make-lang.in (cp/gt-decl.h): Generate using gengtype.
3329 (cp/decl.o): Add cp/gt-decl.h dependency.
3330 * config-lang.in (gtfiles): New.
3331 * tree.h: Rename struct binding_level to struct cp_binding_level.
3332 * decl.c: Rename struct binding_level to struct cp_binding_level.
3333 Include cp/gt-decl.h.
3334 (struct cp_binding_level): Use gengtype.
3335 (make_binding_level): Use GGC on struct cp_binding_level.
3336 (mark_binding_level): Use gt_ggc_m_cp_binding_level.
3337 (cxx_init_decl_processing): Mark free_binding_level as
3338 deletable.
3339
3340 * decl.c (mark_cp_function_context): Update calling sequence.
3341
3342 * decl.c (start_function): Don't free 'struct
3343 cp_language_function'.
3344 (pop_cp_function_context): Likewise.
3345 (save_function_data): Allocate it using GC.
3346 * semantics.c (genrtl_start_function): Don't free 'struct
3347 cp_language_function'.
3348
8b968bd1
MW
33492002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
3350
3351 * lang-specs.h: Use cpp_debug_options.
3352
11ad4784
ZW
33532002-05-28 Zack Weinberg <zack@codesourcery.com>
3354
3355 * mangle.c, tree.c: Include real.h.
3356 * Make-lang.in: Update dependency lists.
3357
81a75f0f
NB
33582002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3359
3360 * lex.c: Don't include c-lex.h.
3361 * parse.y, spew.c: Don't include c-lex.h; include c-pragma.h.
3362
a97d1398
NB
33632002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3364
3365 * spew.c (yyungetc, snarf_block): Remove indent_level handling.
3366
6f001fdf
RH
33672002-05-22 Richard Henderson <rth@redhat.com>
3368
3369 * decl.c (obscure_complex_init): Check for VAR_DECL
3370 before using DECL_THREAD_LOCAL.
3371
7a1f3f5f
RH
33722002-05-22 Richard Henderson <rth@redhat.com>
3373
3374 * decl.c (check_tag_decl): Handle RID_THREAD.
3375 (obscure_complex_init): Reject run-time init of tls.
3376 (grokvardecl, grokdeclarator): Handle RID_THREAD.
3377 * lex.c (reswords): Add __thread.
3378 (rid_to_yy): Map RID_THREAD to SCSPEC.
3379
e5f3b786
NB
33802002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3381
3382 * cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3383 * cp-tree.h (cxx_post_options): Kill.
3384 * cp-lex.c (cxx_post_options): Kill.
3385
3d78f2e9
RH
33862002-05-21 Richard Henderson <rth@redhat.com>
3387
3388 * lex.c (rid_to_yy): Add RID_THREAD.
3389
c8a3d889
AO
33902002-05-21 Alexandre Oliva <aoliva@redhat.com>
3391
3392 * init.c (build_vec_init): Test for trivial copy-assignment when
3393 copy-assigning arrays.
3394
500abaa8
AJ
33952002-05-20 Andreas Jaeger <aj@suse.de>
3396
3397 * init.c (build_default_init): Remove unused variable.
3398
ecc42c14
AO
33992002-05-20 Alexandre Oliva <aoliva@redhat.com>
3400
3401 * call.c (any_strictly_viable): New.
3402 (build_new_op): Use it for COMPOUND_EXPR and ADDR_EXPRs.
3403
4e664ef1
KL
34042002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3405
3406 * error.c (dump_type) [TYPEOF_TYPE]: Fix parenthesis printing.
3407
07782718
KL
34082002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3409
3410 PR c++/186, DR 259
3411 * pt.c (do_decl_instantiation): Don't complain explicit
3412 instantiation after explicit specialization.
3413 (do_type_instantiation): Likewise.
3414
23b4deba
AO
34152002-05-19 Alexandre Oliva <aoliva@redhat.com>
3416
3417 * cp-tree.h (complete_type_or_diagnostic): Changed prototype,
3418 renamed from...
3419 (complete_type_or_else): ... this. Redefined as macro.
3420 (cxx_incomplete_type_diagnostic): Declare.
3421 (cxx_incomplete_type_error): Define as macro.
3422 * init.c (build_delete): Warn about incomplete types other than
3423 void, and use the built-in operator delete for them.
3424 * typeck.c (complete_type_or_diagnostic): Renamed from
3425 complete_type_or_else. Added warn_only argument, passed to...
3426 * typeck2.c (cxx_incomplete_type_diagnostic): ... this. Print
3427 warnings or errors depending on new warn_only argument. Renamed
3428 from...
3429 (cxx_incomplete_type_error): ... this. New implementation in
3430 terms of cxx_incomplete_type_diagnostic.
3431
b41d214e
JM
34322002-05-18 Jason Merrill <jason@redhat.com>
3433
98c07d7b 3434 PR c++/6611
b41d214e
JM
3435 * decl2.c (import_export_decl): If we clear
3436 DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
3437
e2005c8d
KL
34382002-05-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3439
3440 PR c++/6620
3441 * pt.c (verify_class_unification): Don't check if PARM is template
3442 parameter dependent. Simplify.
3443 (unify) [TEMPLATE_PARM_INDEX]: Handle when ARG is a template
3444 parameter dependent expression.
3445
ff48be5c
JM
34462002-05-14 Jason Merrill <jason@redhat.com>
3447
3448 * rtti.c (get_tinfo_decl): Don't call comdat_linkage.
3449 Do set DECL_COMDAT.
3450 (synthesize_tinfo_var): Take the public decl.
3451 (create_real_tinfo_var): Likewise. Check DECL_COMDAT.
3452 (emit_tinfo_decl): Adjust. Call import_export_decl.
3453 * decl2.c (import_export_decl): Simplify tinfo decl handling.
3454
94e6e4c4
AO
34552002-05-14 Alexandre Oliva <aoliva@redhat.com>
3456
3457 * cp-tree.h (struct lang_type): Added non_zero_init.
0fe1cd70 3458 (CLASSTYPE_NON_ZERO_INIT_P): New macro.
94e6e4c4
AO
3459 (zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
3460 * class.c (check_field_decls): Test non_zero_init.
3461 * cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
3462 zero-to-NULL conversions.
3463 * decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
3464 type that needs zero-initialization without zeros.
3465 (check_initializer_decl): Compute zero-initializer for types
3466 that require a non-trivial one.
3467 * init.c (build_forced_zero_init): New function.
3468 (build_default_init): Use it.
3469 * tree.c (zero_init_p): New function.
3470 * typeck2.c (force_store_init_value): New function.
3471 (process_init_constructor): Create non-trivial zero-initializers
3472 for array members and class fields.
3473
e5f5feea
NB
34742002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3475
3476 * lang-specs.h: Remove redundant -lang-c++.
3477
f63ab951
JM
34782002-05-13 Jason Merrill <jason@redhat.com>
3479
3480 * class.c (build_vtbl_ref_1): Use fixed_type_or_null.
3481 (fixed_type_or_null): See through reference vars.
3482 (build_base_path): Vtable contents are constant.
3483 * typeck.c (get_member_function_from_ptrfunc): Likewise.
3484
0d08ea48
JM
34852002-05-12 Jason Merrill <jason@redhat.com>
3486
3487 * cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
3488 structs are safe.
3489
3df89291
NB
34902002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3491
3492 * cp-tree.h (flag_ansi): Remove.
3493 * decl2.c (flag_ansi): Remove.
3494 (cxx_decode_option): Set flag_iso and flag_undef.
3495
c87978aa
JM
34962002-05-09 Jason Merrill <jason@redhat.com>
3497
3498 * typeck.c (get_member_function_from_ptrfunc): Reorganize.
3499 Use subtraction rather than a bitmask to get the index.
3500 * cvt.c (cp_convert_to_pointer): Bail on an error_mark_node.
3501
3502 * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.
3503
a5a49440
NB
35042002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3505
3506 * Make-lang.in (decl2.o): Update.
3507 * cp-tree.h (warn_multichar): Remove.
3508 * decl2.c: Include c-common.h.
3509 (warn_multichar): Remove.
3510
609688f3
JM
35112002-05-03 Jason Merrill <jason@redhat.com>
3512
0abc082a
JM
3513 * tree.c (build_cplus_array_type): Only const and volatile get
3514 special handling.
3515
609688f3
JM
3516 * decl.c (BOOL_TYPE_SIZE): Move default to defaults.h.
3517
8b16faa2
MM
35182002-04-30 Mark Mitchell <mark@codesourcery.com>
3519
394ab947 3520 ABI change, returning simple classes from functions.
8b16faa2
MM
3521 * class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
3522 TYPE_HAS_TRIVIAL_INIT_REF is false or
3523 TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
3524
ac905924
JM
35252002-04-30 Jason Merrill <jason@redhat.com>
3526
2cb008af 3527 PR debug/6436
ac905924
JM
3528 * decl.c (grokdeclarator): Don't override TYPE_NAME of an
3529 anonymous class with a typedef if there are attributes.
3530
e6e81f1c 35312002-04-29 Paul Eggert <eggert@twinsun.com>
b819d9e0 3532
e6e81f1c 3533 * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
b819d9e0 3534
3a73bffb
JJ
35352002-04-29 Jakub Jelinek <jakub@redhat.com>
3536
3537 PR c++/6477
3538 * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
3539 non-NULL first.
3540
33dd07ee
MM
35412002-04-29 Mark Mitchell <mark@codesourcery.com>
3542
3543 PR c++/6492
3544 * pt.c (tsubst_friend_class): If the friend has an explicit scope,
3545 enter that scope before name lookup.
3546
3547 PR c++/6486
3548 * method.c (do_build_copy_constructor): Avoid building
3549 cv-qualified reference types.
500abaa8 3550
4bd7c270
NS
35512002-04-29 Nathan Sidwell <nathan@codesourcery.com>
3552
3553 PR c++/5719
500abaa8 3554 * decl.c (grok_op_properties): Assignment ops don't have to return
4bd7c270
NS
3555 by value. operator% should.
3556
45806a3f
FS
35572002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3558
3559 PR c/6343
3560 * decl.c (duplicate_decls): Call merge_weak.
3561
94a50397
RH
35622002-04-26 Richard Henderson <rth@redhat.com>
3563
3564 * parse.y (malloced_yyss, malloced_yyvs): New.
3565 (yyoverflow): Re-add. Set them.
3566 (free_parser_stacks): New.
3567
7d793e9b
MM
35682002-04-26 Mark Mitchell <mark@codesourcery.com>
3569
3570 PR c++/6497
3571 * method.c (do_build_assign_ref): Pass a derivation to
3572 build_method_call when calling base class assignment operators.
3573
bde3c0c0
RH
35742002-04-26 Richard Henderson <rth@redhat.com>
3575
3576 * parse.y (yyoverflow): Revert.
3577
b84a3874
RH
35782002-04-26 Richard Henderson <rth@redhat.com>
3579
3580 PR c/3581
3581 * parse.y (string): Remove. Update all uses to use STRING
3582 instead, and not call combine_strings.
3583 * rtti.c (tinfo_name): Use fix_string_type.
3584 * semantics.c (finish_asm_stmt): Don't call combine_strings.
3585 * spew.c (yylexstring): New.
3586 (read_token): Use it.
3587
6052bef0
RH
35882002-04-25 Richard Henderson <rth@redhat.com>
3589
3590 PR c/2161
3591 * parse.y (yyoverflow): New.
3592
8d1f0f67
JM
35932002-04-25 Jason Merrill <jason@redhat.com>
3594
3595 PR c++/5607
3596 * search.c (check_final_overrider): No longer static.
3597 * class.c (update_vtable_entry_for_fn): Call it.
3598 * cp-tree.h: Adjust.
3599
ff45c01e
NB
36002002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3601
3602 * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3603 * cp-tree.h (cxx_set_yydebug): Die.
3604 * lex.c (YYDEBUG): Get from c-lex.h.
3605 (cxx_set_yydebug): Remove.
3606 * parse.y: Include c-lex.h.
3607 (YYDEBUG): Get from c-lex.h.
3608
a62d375f
MM
36092002-04-24 Mark Mitchell <mark@codesourcery.com>
3610
3611 PR c++/6438.
3612 * cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
3613 void.
3614
349ae713
NB
36152002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3616
3617 * cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3618 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
3619 Redefine.
3620 * cp-tree.h (cp_attribute_table): Rename.
3621 * decl.c (lang_attribute_table): Remove declaration.
3622 (cxx_init_decl_processing): Don't set it.
3623 * tree.c (cp_attribute_table): Rename.
3624
b602511f
JM
36252002-04-24 Jason Merrill <jason@redhat.com>
3626
985723ce
JM
3627 PR c++/6331
3628 * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
3629 * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
a49cfba8
JM
3630 The pedwarn for array assignment is now unconditional.
3631 * tree.c (build_cplus_array_type_1): Still process simple array types
3632 normally in templates.
985723ce 3633
b602511f
JM
3634 PR c++/6395
3635 * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
3636 stuff for comdats.
3637
29cece2e
JJ
36382002-04-23 Jakub Jelinek <jakub@redhat.com>
3639
3640 * parse.y (check_class_key): Allow KEY to be union/enum/struct/class
3641 node with attributes.
3642
515387dc
DB
36432002-2-23 David O'Brien <obrien@FreeBSD.org>
3644
3645 * g++spec.c (MATH_LIBRARY_PROFILE, LIBSTDCXX_PROFILE): Add.
3646 Use MATH_LIBRARY_PROFILE and LIBSTDCXX_PROFILE if profile flag given.
3647
77adef84
MM
36482002-04-23 Mark Mitchell <mark@codesourcery.com>
3649
3650 PR c++/6256:
3651 * pt.c (tsubst_friend_class): Handle templates with explicit
3652 nested names.
3653
3654 PR c++/6331:
3655 * typeck.c (merge_types): Remember the cv-qualification of pointer
3656 types when merging them.
3657
b03e38e1
NB
36582002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3659
3660 * cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
3661 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
3662 * cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
3663 cxx_mark_function_context): New.
3664 * decl.c (push_cp_function_context, pop_cp_function_context,
3665 mark_cp_function_context): Rename for consistency.
3666 (cxx_init_decl_processing): Don't set old hooks.
3667
ab393bf1
NB
36682002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3669
3670 * call.c (convert_type_from_ellipsis): Rename, update.
3671 * cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3672 * cp-tree.h (convert_type_from_ellipsis): Rename.
3673 * decl.c (cxx_init_decl_processing): Don't set hook.
3674
7a228918
NB
36752002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3676
3677 * call.c (build_new_method_call): Update.
3678 * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3679 * cp-tree.h (cxx_incomplete_type_error): New.
3680 * decl.c (grokdeclarator, grokparms): Update.
3681 * decl2.c (check_classfn): Update.
3682 * pt.c (tsubst): Update.
3683 * typeck.c (complete_type_or_else, expr_sizeof,
3684 decay_conversion): Update.
3685 * typeck2.c (incomplete_type_error): Rename.
3686 (add_exception_specifier): Update.
3687
8152c320
JM
36882002-04-18 Jason Merrill <jason@redhat.com>
3689
3690 PR c++/5658
3691 * search.c (setup_class_bindings): A class template qualifies as a
3692 type binding.
3693
32121b96
JJ
36942002-04-17 Jakub Jelinek <jakub@redhat.com>
3695
3696 PR c++/6316
3697 * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
3698 before expanding.
3699
b2123dc0
MM
37002002-04-16 Mark Mitchell <mark@codesourcery.com>
3701
3702 * init.c (begin_init_stmts): Remove commented out code.
3703 (finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
3704 * semantics.c (begin_gobal_stmt_expr): Adjust call to
3705 expand_start_stmt_expr.
500abaa8 3706
0f268005
MM
37072002-04-15 Mark Mitchell <mark@codesourcery.com>
3708
3709 * decl.c (register_dtor_fn): Pass the address of dso_handle, not
3710 dso_handle itself, to __cxa_atexit.
3711
bd6bec6b
GDR
37122002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3713
3714 * error.c (cxx_print_error_function): Adjust call to macros.
3715
0f490a2b
JJ
37162002-04-14 Jakub Jelinek <jakub@redhat.com>
3717
3718 * class.c (layout_virtual_bases): Do all dsize computation on trees.
3719
85b7def6
JM
37202002-04-14 Jason Merrill <jason@redhat.com>
3721
3722 * typeck.c (get_member_function_from_ptrfunc): Don't do
3723 gratuitious division and multiplication on
3724 ptrmemfunc_vbit_in_delta targets.
3725
0481bc21
MM
37262002-04-12 Mark Mitchell <mark@codesourcery.com>
3727
3728 PR c++/5373.
3729 * semantics.c (finish_expr_stmt): Remember the type of the
3730 expression before any conversions are performed.
3731
9928a3d5
MM
37322002-04-12 Mark Mitchell <mark@codesourcery.com>
3733
3734 PR c++/5189.
3735 * call.c (add_template_candidate_real): Do not treat member
3736 templates as copy constructors.
3737
c740732f
MM
37382002-04-12 Mark Mitchell <mark@codesourcery.com>
3739
3740 * decl.c (duplicate_decls): Do not copy the RTL for a variable
3741 declaration if the old variable had an incomplete type and the new
3742 variable does not.
3743 (complete_vars): Do not call layout_decl for completed variables.
3744
4782bd5b
RS
37452002-04-12 Richard Sandiford <rsandifo@redhat.com>
3746
3747 * decl.c (duplicate_decls): Don't try to unify an implicit typedef
3748 with an explicit one.
3749 (follow_tag_typedef): New.
3750 (lookup_tag): Use it to extract the tag of an explicit typedef.
3751 (xref_tag): Likewise.
3752
2f4d058f
AH
37532002-04-11 Andrew Haley <aph@redhat.com>
3754
3755 * typeck.c (type_after_usual_arithmetic_conversions):
3756 If two types have the same variant, return immediately.
500abaa8 3757 When two floating-point operands are the same precision:
2f4d058f
AH
3758 convert to float if one of the operands is float;
3759 if neither operand is one of the standard types, return the type
3760 of the first operand.
500abaa8 3761
ba3307c0
NS
37622002-04-10 Nathan Sidwell <nathan@codesourcery.com>
3763
3764 PR c++/5507
3765 * decl.c (make_typename_type): Remove implicit typenameness.
3766
cd6af0c1
JM
37672002-04-09 Jason Merrill <jason@redhat.com>
3768
edf5cd1d
JM
3769 PR optimization/6189
3770 * semantics.c (genrtl_start_function): Don't free
3771 DECL_SAVED_FUNCTION_DATA for inline functions.
3772
cd6af0c1
JM
3773 * init.c (build_member_call): For now, don't convert to
3774 intermediate base if it would cause an error.
3775
224e6091
PC
37762002-04-08 Paolo Carlini <pcarlini@unitus.it>
3777
3778 * parse.y (namespace_qualifier, maybe_identifier,
3779 begin_explicit_instantiation, end_explicit_instantiation,
3780 apparent_template_type, .finish_template_type,
3781 do_id, maybe_init, defarg_again, component_decl_1):
3782 Add ending ';', in accordance with POSIX.
3783
0154eaa8
MM
37842002-04-06 Mark Mitchell <mark@codesourcery.com>
3785
3786 PR c++/5571
3787 * class.c (layout_class_type): Remember incomplete static
3788 variables.
3789 (finish_struct_1): Call complete_vars, not
3790 hack_incomplete_structures.
3791 * cp-tree.h (hack_incomplete_structures): Rename to ...
3792 (complete_vars): ... this.
3793 (struct saved_scope): Remove incomplete.
3794 (namespace_scope_incomplete): Remove.
3795 * decl.c (struct binding_level): Remove incomplete.
3796 (incomplete_vars): New variable.
3797 (mark_binding_level): Don't mark incomplete.
3798 (print_binding_level): Don't print it.
3799 (mark_saved_scope): Don't mark incomplete.
3800 (pushdecl): Use maybe_register_incopmlete_var.
3801 (cxx_init_decl_processing): Register incomplete_vars for GC.
3802 (start_decl_1): Clarify error message.
3803 (hack_incomplete_vars): Remove.
3804 (maybe_register_incomplete_var): New function.
3805 (complete_vars): Likewise.
3806
f62ea157
JM
38072002-04-06 Jason Merrill <jason@redhat.com>
3808
03da5286
JM
3809 PR c++/4934
3810 * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
3811 set before checking it.
3812
a29e1034
JM
3813 PR c++/525
3814 * init.c (build_member_call): Use build_scoped_ref.
3815 (resolve_offset_ref): Likewise.
3816 * call.c (build_scoped_method_call): Likewise.
500abaa8 3817 * tree.c (maybe_dummy_object): Kludge around current_class_type being
a29e1034
JM
3818 wrong.
3819 * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
3820 * cp-tree.h: Adjust.
500abaa8 3821
a29e1034
JM
3822 * init.c (push_base_cleanups): Just use build_scoped_method_call.
3823
f62ea157 3824 PR c++/6179
500abaa8 3825 * method.c (implicitly_declare_fn): Pass unqualified type to
f62ea157
JM
3826 synthesize_exception_spec.
3827
78ef5b89
NB
38282002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
3829
3830 * cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3831 * cvt.c: Update comment.
3832 * init.c (expand_cleanup_for_base): Update.
3833 * semantics.c (finish_parenthesized_expr): Update.
3834 * typeck.c (cp_truthvalue_conversion): Update.
3835
dffa4176
JM
38362002-04-04 Jason Merrill <jason@redhat.com>
3837
659e5a7a
JM
3838 * semantics.c (finish_eh_cleanup): New fn.
3839 * cp-tree.h: Add prototype.
500abaa8 3840 * init.c (perform_member_init, expand_cleanup_for_base): Use
659e5a7a
JM
3841 finish_eh_cleanup.
3842 * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
3843 * cp-tree.h: Remove references.
3844 * decl.c (begin_constructor_body, end_constructor_body): Likewise.
3845 * dump.c (cp_dump_tree): Likewise.
3846 * pt.c (tsubst_expr): Likewise.
3847 * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
3848 (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
3849 * tree.c (cp_statement_code_p): Likewise.
3850
3851 * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
3852
3853 PR c++/5636
3854 * semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
3855 cleanup for nrv.
3856
dffa4176
JM
3857 PR c++/5104
3858 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
3859 specifiers.
3860 [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
3861
ef4f94ac
RH
38622002-04-03 Richard Henderson <rth@redhat.com>
3863
3864 * cp-lang.c (cxx_warn_unused_global_decl): New.
3865 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3866
599bba86
NB
38672002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
3868
3869 * cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
3870 * tree.c (init_tree): Don't set hook.
3871
cba2004a
RS
38722002-04-03 Roger Sayle <roger@eyesopen.com>
3873
3874 PR c++/5998:
3875 * decl.c (duplicate_decls): Don't mess with assembler names when
3876 redeclaring builtin functions as static.
3877
dffd7eb6
NB
38782002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3879
3880 * call.c (build_addr_func): Update.
3881 * class.c (resolve_address_of_overloaded_function): Update.
3882 * cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3883 * cp-tree.h (cxx_mark_addressable): New.
3884 * decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update.
3885 * decl2.c (build_cleanup): Update.
3886 * except.c (build_throw): Update.
3887 * init.c (resolve_offset_ref): Update.
3888 * pt.c (convert_nontype_argument): Update.
3889 * semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update.
3890 * typeck.c (decay_conversion, build_array_ref, build_unary_op,
3891 unary_complex_lvalue): Update.
3892 (mark_addressable): Rename.
3893
04a9d080
RS
38942002-04-01 Roger Sayle <roger@eyesopen.com>
3895
3896 PR c++/5998:
3897 * decl.c (duplicate_decls): Overwrite the RTL when (and only
3898 when) overwriting a built-in function. Don't use COPY_DECL_RTL,
3899 but follow the SET_DECL_RTL idiom used elsewhere in the function.
3900
ceef8ce4
NB
39012002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3902
3903 * cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3904 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3905 * decl.c (grokdeclarator): Update.
3906 * mangle.c (write_integer_cst): Update.
3907 * typeck.c (build_binary_op): Update.
3908
48a7a235
NB
39092002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3910
3911 * cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3912 * lex.c (cxx_init): Don't set hook.
3913
7cb32822
NB
39142002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3915
3916 * Make-lang.in (error.o): Update.
3917 * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
3918 * cp-tree.h (struct diagnostic_context): Predeclare.
3919 (cxx_print_error_function): New.
3920 * error.c: Include langhooks-def.h.
3921 (lang_print_error_function): Rename. Update.
3922 (init_error): Don't set hook.
3923
b0c48229
NB
39242002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3925
3926 * cp-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3927 Redefine.
3928 * cvt.c (cp_convert_to_pointer, type_promotes_to): Use new hooks.
3929 * decl.c (finish_enum): Similarly.
3930 * error.c (dump_type): Similarly.
3931 * lex.c (cxx_init): Similarly.
3932 * mangle.c (write_builtin_type): Similarly.
3933 * typeck.c (comptypes): Similarly.
3934
d52e4867
RS
39352002-03-28 Roger Sayle <roger@eyesopen.com>
3936
3937 PR c++/5998:
3938 * decl.c (cxx_init_decl_processing): Re-enable built-in functions
3939 in the g++ front-end.
3940 (duplicate_decl): Allow redefinition of anticipated built-ins.
3941 Fix inlining problem by over-writing the old DECL_RTL.
3942 (lookup_namespace_name): Fail to find an identifier in the
3943 specified namespace if its still anticipated.
3944 (builtin_function_1): New function split out from builtin_function
3945 to create a builtin in the current namespace with given context.
3946 (builtin_function): Call builtin_function_1 to define the
3947 appropriate builtins in both the std and global namespaces.
3948 (select_decl): Don't test for anticipated decls here.
3949 (unqualified_namespace_lookup): Instead ignore them whilst
3950 searching through scopes and namespaces.
3951 * decl2.c (do_nonmember_using_decl): If a using declaration
3952 specifies an anticipated built-in function, mark it as no longer
3953 anticipated in that scope.
3954 (ambiguous_decl): Avoid resolving to an anticipated decl.
3955 * lex.c (do_scoped_id): Fail to find an identifier in the global
3956 namespace if its still anticipated.
3957
f1e639b1
NB
39582002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3959
3960 * cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine.
3961 * cp-tree.h (cp_make_lang_type): Rename.
3962 * lex.c (cp_make_lang_type): Rename.
3963 (make_aggr_type): Update.
3964 * tree.c (init_tree): Don't set make_lang_type_fn.
3965
c7f4981a
JJ
39662002-03-29 Jakub Jelinek <jakub@redhat.com>
3967
3968 PR c++/6073
3969 * class.c (finish_struct_1): Update static field's DECL_MODE even
3970 if its type is a variant of t.
3971
7ffb4fd2
NB
39722002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3973
3974 * cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3975 * cp-tree.h (cxx_insert_default_attributes): New.
3976 * decl.c (insert_default_attributes): Rename.
3977
cd4e8331
MM
39782002-03-27 Mark Mitchell <mark@codesourcery.com>
3979
3980 PR c++/4884
3981 * call.c (build_op_delete_call): Allow for the fact the placement
3982 may be a COMPOUND_EXPR.
500abaa8 3983
c9d892a8
NB
39842002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3985
3986 * cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3987 * cp-tree.h (init_cplus_expand): Remove.
3988 (cxx_expand_expr): New.
3989 * expr.c (cplus_expand_expr): Rename cxx_expand_expr,
3990 fix prototype.
3991 (init_cplus_expand): Remove.
3992 * lex.c (cxx_init): Don't call init_cplus_expand.
3993
46ff5047
MM
39942002-03-26 Mark Mitchell <mark@codesourcery.com>
3995
3996 PR c++/4884.
3997 * init.c (build_new_1): Allow for the fact the result of
3998 build_function_call may be a COMPOUND_EXPR.
3999
6d4c57a0
NS
40002002-03-26 Nathan Sidwell <nathan@codesourcery.com>
4001
4002 PR c++/5682
4003 * cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
4004 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
4005 (dfs_skip_nonprimary_vbases_markedp): Remove.
4006 * search.c (get_shared_vbase_if_not_primary): Remove.
4007 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
4008 (dfs_skip_nonprimary_vbases_markedp): Remove.
4009 (dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
4010 (dfs_marked_real_bases_queue_p): Likewise.
4011
4f0ade92
NB
40122002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
4013
4014 * cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4015 * cp-tree.h (cxx_mark_tree): New.
4016 * decl.c (lang_mark_tree): Rename cxx_mark_tree.
4017
c88770e9
NB
40182002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4019
4020 * cp-tree.h (cxx_maybe_build_cleanup): New.
4021 * decl.c (destroy_local_var, hack_incomplete_structures): Update.
4022 (maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
4023 * tree.c (build_target_expr): Update.
7b3e5198 4024 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
c88770e9 4025
aaf93206
NB
40262002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4027
4028 * decl2.c (cxx_decode_option): Handle -E.
4029 * lang-specs.h (default_compilers): Preprocess with cc1plus.
4030 * lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
4031
e756a7da
JJ
40322002-03-23 Jakub Jelinek <jakub@redhat.com>
4033
4034 PR c++/6037
4035 * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
4036
ea9264e9
GDR
40372002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4038
4039 * error.c (dump_type): Be careful about implicit typenames.
4040
acb044ee
GDR
40412002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4042
4043 PR C++/3656
4044 * semantics.c (finish_base_specifier): Handle erronous base
500abaa8 4045 classes.
acb044ee 4046
b216cd4a
ZW
40472002-03-22 Zack Weinberg <zack@codesourcery.com>
4048
4049 * error.c: Always use REAL_VALUE_TO_DECIMAL; don't test
4050 REAL_IS_NOT_DOUBLE.
4051
9181f8db
JK
40522002-03-22 Jeff Knaggs <jknaggs@redhat.com>
4053
cd6af0c1
JM
4054 * typeck.c (get_member_function_from_ptrfunc): Scale idx down to
4055 an index into the vtable_entry array regardless of
9181f8db
JK
4056 TARGET_PTRMEMFUNC_VBIT_LOCATION.
4057
e019cf95
AH
40582002-03-21 Aldy Hernandez <aldyh@redhat.com>
4059
84d901be 4060 * tree.c (cp_cannot_inline_tree_fn): Same.
e019cf95 4061
43577e6b
NB
40622002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4063
4064 * cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
4065 insert_block, getdecls, global_bindings_p): New.
4066
8c152bad
NS
40672002-03-20 Nathan Sidwell <nathan@codesourcery.com>
4068
4069 PR c++/4361
4070 * mangle.c (struct globals) Add internal_mangling_p member.
4071 (write_template_param): Do internal mangling, if needed.
4072 (mangle_conv_op_name_for_type): Request internal mangling.
4073
e3fe84e5
JM
40742002-03-20 Jason Merrill <jason@redhat.com>
4075
4076 PR c++/2136
4077 * init.c (build_delete): Check access for a member op delete here.
4078 * decl2.c (delete_sanity): Not here.
4079
ea122333
JM
40802002-03-19 Jason Merrill <jason@redhat.com>
4081
4082 PR c++/5118
4083 * class.c (get_vfield_name): Use the constructor_name.
4084
7afff7cf
NB
40852002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4086
4087 * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4088 * cp-tree.h (lang_printable_name): Rename.
4089 * error.c (lang_decl_name): Use new hook.
4090 * lex.c (cxx_init): Remove old hook.
4091 * pt.c (tsubst_decl): Use new hook.
4092 * tree.c (lang_printable_name): Rename.
4093
ff77ac85
EB
40942002-03-18 Eric Botcazou <ebotcazou@multimania.com>
4095
4096 PR c++/3882
4097 * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
4098 (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
4099 only after recording the declaration.
4100
ffd696af
JM
41012002-03-18 Jason Merrill <jason@redhat.com>
4102
097955f2
JM
4103 PR c++/2039
4104 * init.c (resolve_offset_ref): Hand off to build_component_ref.
4105
b663bcf3
JM
4106 PR c++/4222, c++/5995
4107 * call.c (build_over_call): Fix empty class logic.
4108
0f4237c2
JM
4109 PR c++/3870
4110 * cp-tree.h (struct saved_scope): Add last_parms field.
4111 * decl.c (maybe_push_to_top_level): Save last_function_parms.
4112 (pop_from_top_level): Restore it.
4113
001ad76c
JM
4114 PR c++/4377
4115 * mangle.c (write_expression): Strip NOP_EXPRs sooner. Also strip
4116 NON_LVALUE_EXPRs.
4117
4118 PR c++/4003
ed2fa432
JM
4119 * pt.c (tsubst_friend_function): Use decl_namespace_context.
4120
ffd696af
JM
4121 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
4122 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
4123 type with a nontrivial destructor.
4124
f2606a97
JM
41252002-03-17 Jason Merrill <jason@redhat.com>
4126
4127 PR c++/4460
4128 * class.c (build_base_path): Virtual base layout is fixed in
4129 in-charge [cd]tors.
4130
52dabb6c
NB
41312002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4132
4133 * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4134 * parse.y (yyparse): Remove macro.
4135
beb9c8a2
JM
41362002-03-17 Jason Merrill <jason@redhat.com>
4137
4138 PR c++/5757
4139 * init.c (build_new_1): Pass the right pointer to op delete.
4140
5dd236e2
NS
41412002-03-16 Nathan Sidwell <nathan@codesourcery.com>
4142
4143 PR c++/4361
4144 * cp-tree.h (CLASSTYPE_METHOD_VEC): Document where templated
4145 conversion operators go.
4146 (struct lang_decl_flags): Add template_conv_p and unused
4147 bitfields.
4148 (DECL_TEMPLATE_CONV_FN_P): New macro.
4149 * call.c (build_user_type_conversion_1): Don't check second type
4150 conversion of overload set first.
4151 * class.c (add_method): Make sure templated conversion operators
4152 all end up on slot 2.
4153 * lex.c (do_identifier): A conversion operator token might be
4154 satisfied by a templated conversion operator.
5dd236e2
NS
4155 * pt.c (check_explicit_specialization): Use
4156 CLASSTYPE_FIRST_CONVERSION_SLOT.
4157 (template_parm_this_level_p): New function.
4158 (push_template_decl_real): Determine DECL_TEMPLATE_CONV_FN_P.
8c152bad 4159 * search.c (lookup_fnfields_1): Template conversions will be on
5dd236e2
NS
4160 the first slot.
4161 * typeck.c (build_component_ref): Preserve the type of an
4162 conversion operator name on the overload type.
4163 (build_x_function_call): Retrieve the conversion operator name.
4164
0ba20759
RH
41652002-03-15 Richard Henderson <rth@redhat.com>
4166
4167 * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
4168
6e4ae815
MM
41692002-03-15 Mark Mitchell <mark@codesourcery.com>
4170
4171 * cp-tree.h (CLEANUP_DECL): Remove.
4172 (CLEANUP_EXPR): Likewise.
4173 * decl.c (destroy_local_var): Simplify.
4174 (maybe_build_cleanup): Tidy.
4175 * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
4176 * semantics.c (cp_expand_stmt): Likewise.
4177 * cp/tree.c (cp_statement_code_p): Likewise.
4178
5cc90635
JM
41792002-03-15 Jason Merrill <jason@redhat.com>
4180
6da794e8
JM
4181 PR c++/5857
4182 * decl.c (duplicate_decls): Use merge_types instead of common_type.
4183 * typeck.c (common_type): Just hand off to
4184 type_after_usual_arithmetic_conversions and
4185 composite_pointer_type.
4186 (merge_types): New fn.
4187 (commonparms): Use it instead of common_type.
4188 (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
4189 (composite_pointer_type): Also handle attributes.
4190 * cp-tree.h: Declare merge_types.
4191
5cc90635
JM
4192 * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
4193 variables.
4194 * decl2.c (maybe_make_one_only): Also mark the decl as needed.
4195
ecb0eece
RH
41962002-03-14 Richard Henderson <rth@redhat.com>
4197
4198 * decl.c: Include c-pragma.h.
4199 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4200 * Make-lang.in: Update dependencies.
4201
d3f129b3
JJ
42022002-03-14 Jakub Jelinek <jakub@redhat.com>
4203
f6562b37 4204 PR c++/5908
d3f129b3
JJ
4205 * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
4206 * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
4207
049e6879
RS
42082002-03-12 Richard Sandiford <rsandifo@redhat.com>
4209
4210 * mangle.c (write_builtin_type): Handle 128-bit integers even if
4211 they are not a standard integer type.
4212
872c9284
RS
42132002-03-12 Richard Sandiford <rsandifo@redhat.com>
4214
4215 * cp-tree.h (init_init_processing): Remove declaration.
4216 * init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
4217 * decl.c (cxx_init_decl_processing): Don't call init_init_processing.
4218
2f9834e8
KG
42192002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4220
4221 * cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
4222 Define.
4223 * decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
4224 tree_code_length.
4225 * lex.c (cplus_tree_code_type, cplus_tree_code_length,
4226 cplus_tree_code_name): Delete.
4227 (cxx_init): Don't call add_c_tree_codes, instead set
4228 lang_unsafe_for_reeval. Don't try to copy into the various
4229 tree_code arrays.
4230
df867456
NS
42312002-03-12 Nathan Sidwell <nathan@codesourcery.com>
4232
4233 PR c++/5659
4234 * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
4235 * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
4236 definitions.
4237
ab04e34b
NS
42382002-03-11 Nathan Sidwell <nathan@codesourcery.com>
4239
4240 Revert 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>,
4241 DR209 is now not a defect.
4242 * cp-tree.h (skip_type_access_control): Remove.
4243 * decl.c (grokdeclarator): Do type access control for friend
4244 declarations.
4245 * semantics.c (decl_type_access_control): Don't reset
4246 current_type_lookups.
4247 (save_type_access_control): Always save the lookups.
4248 (skip_type_access_control): Remove.
4249 (finish_class_definition): Don't change type_lookups.
4250
999cc24c
NS
42512002-03-11 Nathan Sidwell <nathan@codesourcery.com>
4252
4253 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>,
4254 It is incorrect.
4255 * typeck.c (build_static_cast): Compare non-qualified types
4256 with pointer to member conversions.
4257
61eece67
DN
42582002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4259 Daniel Berlin <dan@dberlin.org>
4260
4261 * cp-lang.c (ok_to_generate_alias_set_for_type): New function.
4262 (cxx_get_alias_set): Use it.
4263
644d28d4
KG
42642002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4265
4266 * cp-tree.h (stabilize_expr): Prototype.
4267
7e326356
CR
42682002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4269
4270 * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
4271 conditional return void.
4272
24965e7a
NB
42732002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4274
4275 * cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
4276 * cp-tree.h (cxx_unsave): New.
4277 * tree.c (cp_unsave): Rename cxx_unsave, update prototype.
4278 (init_tree): Update.
4279
ca7558fc
KG
42802002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4281
4282 * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of
4283 explicit sizeof/sizeof.
4284 * decl2.c (cxx_decode_option): Likewise.
4285 * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise.
4286
fd87b7a7
NS
42872002-03-02 Nathan Sidwell <nathan@codesourcery.com>
4288
4289 PR c++/775
4290 * decl.c (lookup_tag): Only reject enum/class mismatch, not
4291 class/union mismatch.
4292 * parse.y (check_class_key): New function.
4293 (structsp): Call it.
4294
bfba94bd
MM
42952002-03-01 Michael Matz <matz@suse.de>
4296
4297 * typeck.c (cp_pointer_int_sum): Complete inner type which is
4298 used later by size_in_bytes().
4299
fdc9bf29
PE
43002002-03-01 Phil Edwards <pme@gcc.gnu.org>
4301
4302 * cp-tree.h: Require __GNUC__ to be #defined.
4303 (build_init): Add missing prototype.
4304
6f30f1f1
JM
43052002-03-01 Jason Merrill <jason@redhat.com>
4306
4307 * except.c: Don't include decl.h or obstack.h. Do include
4308 tree-inline.h.
4309 (build_throw): Destroy temporaries from the thrown
500abaa8 4310 expression before calling __cxa_throw. Construct a thrown
6f30f1f1
JM
4311 temporary directly into the exception object.
4312 (stabilize_throw_expr): New function.
4313 (wrap_cleanups_r): New function.
4314 * tree.c (stabilize_expr): New function.
4315 * init.c (build_init): New function.
4316 * Make-lang.in (cp/except.o): Adjust .h deps.
4317
46cfb101
JM
43182002-02-28 Jason Merrill <jason@redhat.com>
4319
07f521fc
JM
4320 * search.c (lookup_base_r): Don't clear is_non_public just because
4321 we found a friendly scope.
4322
46cfb101
JM
4323 * decl.c (finish_function): Only warn about missing return
4324 statement with -Wreturn-type.
4325
63e1b1c4
NB
43262002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4327
4328 * class.c (build_clone): Update.
4329 * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4330 * cp-tree.h (cxx_dup_lang_specific_decl): New.
4331 * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
4332 (copy_decl): Update.
4333 * method.c (make_thunk): Update.
4334
f458d1d5
ZW
43352002-02-27 Zack Weinberg <zack@codesourcery.com>
4336
4337 * decl2.c: Delete traditional-mode-related code copied from
4338 the C front end but not used, or used only to permit the
4339 compiler to link.
4340
500abaa8 43412002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
3387d36e
CR
4342
4343 PR c++/4093
4344 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
4345 to void.
4346
25c8b645
JJ
43472002-02-22 Jakub Jelinek <jakub@redhat.com>
4348
4349 PR other/5746
4350 * semantics.c (finish_switch_cond): Don't call get_unwidened
4351 if error_mark_node.
4352
4f2b0fb2
NS
43532002-02-22 Nathan Sidwell <nathan@codesourcery.com>
4354
4355 PR c++/2645, DR 295
4356 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
4357 tf_keep_type_decl.
4358 (make_typename_type): Use tsubst_flags_t.
4359 * decl.c (make_typename_type): Adjust. Return non-artificial
4360 TYPE_DECLs, if required.
4361 (grokdeclarator): Simplify CVR qualification handling. Allow bad
4362 qualifiers on typedef types.
4363 * decl2.c (handle_class_head): Adjust make_typename_type call.
4364 * parse.y (nested_name_specifier): Likewise.
4365 (typename_sub0): Likewise.
4366 (typename_sub1): Likewise.
4367 * pt.c (convert_template_argument): Adjust make_typename_type
4368 return value.
4369 (tsubst): Adjust cp_build_qualified_type_real calls.
1a55127d 4370 (check_cv_quals_for_unify): Cope with allowing bad qualifications
4f2b0fb2
NS
4371 on template type parms.
4372 (instantiate_decl): Recheck substitutions to give warnings on bad
4373 qualifications.
4374 * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
4375
8fc2ba41
AH
43762002-02-21 Aldy Hernandez <aldyh@redhat.com>
4377
84d901be 4378 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8fc2ba41 4379
84d901be
AD
4380 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4381 unless DECL_ALWAYS_INLINE.
8fc2ba41 4382
7552da58
JJ
43832002-02-20 Jakub Jelinek <jakub@redhat.com>
4384
4385 * typeck.c (cp_pointer_int_sum): Renamed from
4386 pointer_int_sum, call pointer_int_sum.
4387
00fae85d
JJ
43882002-02-20 Jakub Jelinek <jakub@redhat.com>
4389
4390 * decl.c (duplicate_decls): Return 0 if issued error about
4391 redeclaration.
4392
6ea868b7
JM
43932002-02-19 Jason Merrill <jason@redhat.com>
4394
500abaa8 4395 ABI change: Mangle `void (A::*)() const' as
6ea868b7
JM
4396 M1AKFvvE, not MK1AFvvE.
4397 * mangle.c (write_function_type): Write cv-quals for member
4398 function type here.
4399 (write_pointer_to_member_type): Not here.
4400
c02f5e29
JM
44012002-02-18 Jason Merrill <jason@redhat.com>
4402
4403 * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
4404 (do_decl_instantiation): Likewise.
4405
624a5800
CR
44062002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
4407
4408 PR c++/5685
4409 * decl.c (duplicate_decls): Make warning unconditional
4410 if duplicate default argument declarations are present.
4411
f6f8ada3
JJ
44122002-02-17 Jakub Jelinek <jakub@redhat.com>
4413
4414 * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
4415 shortening.
4416
8d6e459d
NS
44172002-02-15 Nathan Sidwell <nathan@codesourcery.com>
4418
4419 * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
4420 remove incorrect comment. Move #if 0'd code to common path. Use
4421 IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
4422
ca4feb54
JM
44232002-02-13 Jason Merrill <jason@redhat.com>
4424
57d5032b
JM
4425 * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
4426 (finish_function): Don't warn if current_function_returns_null.
4427
bb26522d
JM
4428 * typeck2.c (digest_init): Do handle values of vector type.
4429
ca4feb54
JM
4430 * typeck2.c (digest_init, process_init_constructor): Treat vectors
4431 like arrays.
4432
e6b9638b
JM
44332002-02-11 Jason Merrill <jason@redhat.com>
4434
4435 * parse.y (reserved_declspecs): Don't handle attributes.
4436 (reserved_typespecquals): Handle them here.
4437 * Make-lang.in (parse.c): Adjust expected conflicts.
4438
1cf537c5
JJ
44392002-02-08 Jakub Jelinek <jakub@redhat.com>
4440
4441 * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
4442 instead of compstmt.
4443 (compstmt_or_stmtexpr): Renamed from compstmt.
4444 (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
4445
c2ea3a40
NS
44462002-02-07 Nathan Sidwell <nathan@codesourcery.com>
4447
4448 Rename instantiate_type_flags to tsubst_flags_t & expand use.
4449 * cp-tree.h (instantiate_type_flags): Rename to ...
4450 (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
4451 add tf_warning flag.
4452 (instantiate_type): Adjust prototype.
4453 (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
4454 do_type_instantiation, cp_build_qualified_type_real): Likewise.
4455 cp_build_qualified_type: Adjust.
4456 * class.c (instantiate_type): Adjust parameter. Rename itf_* to
4457 tf_*.
4458 * call.c (standard_conversion): Rename itf_* to tf_*.
4459 (reference_binding): Likewise.
4460 (convert_like_real): Likewise.
4461 * cvt.c (cp_convert_to_pointer): Likewise.
4462 (convert_to_reference): Likewise.
4463 * decl.c (lookup_namespace_name): Use tf_* flags.
4464 (make_typename_type): Likewise.
4465 (grokdeclarator): Likewise.
4466 * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
4467 (coerce_template_template_parms, convert_template_argument,
4468 coerce_template_parms, maybe_get_template_decl_from_type_decl,
4469 lookup_template_class, tsubst_friend_function, tsubst_friend_class,
500abaa8
AJ
4470 instantiate_class_template, tsubst_template_arg_vector,
4471 tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
c2ea3a40 4472 tsubst_decl, tsubst_arg_types, tsubst_function_type,
500abaa8 4473 tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
c2ea3a40 4474 instantiate_template, fn_type_unification,
500abaa8
AJ
4475 resolve_overloaded_unification, verify_class_unification,
4476 unify, get_bindings_real, do_type_instantiation,
4477 regenerate_decl_from_template, instantiate_decl,
c2ea3a40
NS
4478 tsubst_initializer_list, tsubst_enum,
4479 get_mostly_instantiated_function_type,
4480 invalid_nontype_parm_type_p): Likewise.
4481 * tree.c (cp_build_qualified_type_real): Likewise.
4482 * typeck.c (build_binary_op): Rename itf_* to tf_*.
4483 (build_ptrmemfunc): Likewise.
4484 (convert_for_assignment): Likewise.
4485
d5614afb
NS
44862002-02-07 Nathan Sidwell <nathan@codesourcery.com>
4487
4488 PR c++/109
4489 * decl.c (grokdeclarator): Allow friend declarations from
8d6e459d 4490 dependent types.
d5614afb
NS
4491 * decl2.c (handle_class_head): Don't push into template parm contexts.
4492 * pt.c (push_template_decl_real): Template parm contexts are never
4493 being defined.
4494
1af6141b
AO
44952002-02-05 Alexandre Oliva <aoliva@redhat.com>
4496
4497 * class.c: Include target.h.
4498 (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
4499 BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
4500 bit-field layout.
4501 * Make-lang.in: Adjust deps.
4502
d8a6f584
JM
45032002-02-05 Jason Merrill <jason@redhat.com>
4504
4505 * error.c (dump_type): Be more helpful about VECTOR_TYPE.
4506
6f9fdf4d
JJ
45072002-02-04 Jakub Jelinek <jakub@redhat.com>
4508
4509 * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
4510 (finish_switch_cond): Set SWITCH_TYPE.
4511
14691f8d
RH
45122002-02-04 Richard Henderson <rth@redhat.com>
4513
4514 * method.c (use_thunk): Always initialize the block tree. Reindent.
4515 * semantics.c (expand_body): Emit thunks after function, not before.
4516
e89a6075
JM
45172002-02-04 Jason Merrill <jason@redhat.com>
4518
4519 * decl.c (start_function): Call cplus_decl_attributes immediately
4520 after grokdeclarator.
4521
4522 * decl.c (start_function): Combine DECL_RESULT handling code.
4523
9780c24f
JM
45242002-02-03 Jason Merrill <jason@redhat.com>
4525
4526 * xref.c: Remove.
4527 * Make-lang.in (CXX_OBJS): Remove cp/xref.o
4528 (cp/xref.o): Remove dependencies.
4529 * class.c (finish_struct_1, check_methods): Don't call xref fns.
4530 (finish_struct_1): Likewise.
4531 * friend.c (make_friend_class): Likewise.
4532 * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
4533 * spew.c (read_process_identifier): Likewise.
4534
65f36ac8
JM
45352002-02-01 Jason Merrill <jason@redhat.com>
4536
efe49da0 4537 PR c++/4872
500abaa8 4538 * decl.c (finish_function): Warn about a non-void function with
efe49da0
JM
4539 no return statement and no abnormal exit.
4540 * cp-tree.h (struct cp_language_function): Add returns_abnormally.
4541 (current_function_returns_abnormally): New macro.
4542 * call.c (build_call): Set it.
4543
f2d9afec
JM
4544 * typeck.c (build_component_ref): Always complain about offsetof
4545 constructs on non-PODs. Only make it an error for members of
4546 virtual bases.
4547
65f36ac8
JM
4548 * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
4549 (dump_function_decl): Always dump parms.
4550
4551 * decl2.c (finish_static_data_member_decl): Complain about a local
4552 class with a static data member.
4553
4554 PR c++/4286
4555 * search.c (lookup_field_1): Don't xref a static data member
4556 just because we looked it up.
4557
98884b26
JM
45582002-01-31 Jason Merrill <jason@redhat.com>
4559
b88c0704
JM
4560 * Make-lang.in (parse.c): Handle .output file.
4561
a588fe25
JM
4562 PR c++/3395
4563 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
4564 not TREE_TYPE.
4565 * semantics.c (finish_class_definition): Adjust.
4566
98884b26
JM
4567 Allow attributes in parms and casts.
4568 * parse.y (named_parm): Don't strip attrs.
4569 (declmods): Remove 'attributes' production.
4570 (nonempty_cv_qualifiers): Accept attributes.
4571 (ATTRIBUTE): Give precedence.
4572 * decl.c (groktypename): Handle attributes.
4573 (grokparms): Likewise.
4574
ffdeea47
JJ
45752002-01-29 Jakub Jelinek <jakub@redhat.com>
4576
4577 * decl2.c (cxx_decode_option): Pass 0 as last argument to
4578 cpp_handle_option.
4579 * lang-specs.h: Use cpp_unique_options instead of cpp_options
4580 when used together with cc1_options.
4581
b8b98c66
NS
45822002-01-29 Nathan Sidwell <nathan@codesourcery.com>
4583
4584 PR c++/5132
4585 * typeck2.c (digest_init): Make sure non-array core type is
4586 instantiated.
4587 * decl2.c (reparse_absdcl_as_casts): Just store the type in the
4588 constructor, rather than build a new one.
4589 (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
4590 PURPOSE of constructor elts.
4591
7437519c
ZW
45922002-01-23 Zack Weinberg <zack@codesourcery.com>
4593
4594 * Make-lang.in (parse.c): Adjust expected number of
4595 shift-reduce conflicts.
4596 (decl.o): Depend on diagnostic.h.
4597 * decl.c: Include diagnostic.h.
4598 (grokdeclarator): Check for null pointer.
4599 (finish_function): Don't abort when
4600 current_binding_level->parm_flag != 1, if errors have
4601 occurred; throw away the statement tree and extra binding
4602 levels, and continue.
4603 * lex.c (note_list_got_semicolon): Check for null pointer.
4604 * method.c (hack_identifier): Just return error_mark_node if
4605 value is error_mark_node.
4606 * parse.y (primary: TYPEID(type_id)): No need to use
4607 TYPE_MAIN_VARIANT here.
4608 (handler_seq): Accept an empty list of catch clauses and
4609 generate a fake handler block to avoid later crashes.
4610 (ansi_raise_identifier): Accept the error token too.
4611 * semantics.c (begin_class_definition,
4612 finish_class_definition): Check for error_mark_node.
4613
c588e52b
ZW
46142002-01-23 Zack Weinberg <zack@codesourcery.com>
4615
4616 * typeck2.c (friendly_abort): Delete definition.
4617 * cp-tree.h (friendly_abort): Don't prototype.
4618 (my_friendly_assert): Use fancy_abort.
4619
d55ecaa4
CR
46202002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
4621
4622 * cp-tree.h (my_friendly_abort): Remove.
4623
0a01c261
JJ
46242002-01-23 Jakub Jelinek <jakub@redhat.com>
4625
4626 * spew.c (pending_inlines, pending_inlines_tail,
4627 processing_these_inlines): Make static.
4628 (mark_pending_inlines): Remove static.
4629 (begin_parsing_inclass_inline): If in function, save pi
4630 for GC to cp_function_chain->unparsed_inlines instead.
4631 (process_next_inline): Likewise.
4632 * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
4633 (mark_pending_inlines): Add prototype.
4634 * decl.c (spew_debug): Remove unused extern.
4635 (mark_lang_function): Call mark_pending_inlines.
4636
a98facb0
CR
46372002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
4638
c588e52b
ZW
4639 * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
4640 init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
4641 semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
a98facb0
CR
4642 Change my_fancy_abort() to abort().
4643
f893c16e
JM
46442002-01-23 Jason Merrill <jason@redhat.com>
4645
608afcc5
JM
4646 PR c++/5453
4647 * class.c (fixed_type_or_null): Fix thinko.
4648
f893c16e
JM
4649 PR c++/3331
4650 * init.c (resolve_offset_ref): Use build_indirect_ref.
6bc34b14 4651
b2115575
JM
4652 * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
4653
f893c16e
JM
46542002-01-22 Jason Merrill <jason@redhat.com>
4655
b5856475
JM
4656 * parse.y (function_body): Suppress the block for the outermost
4657 curly braces.
4658 * decl.c (pushdecl): Don't try to skip it.
4659 (begin_function_body): Keep the block we create, not the next one.
4660 * init.c (emit_base_init): Don't mess with keep_next_level.
4661
6bc34b14
JM
4662 * class.c (build_base_path): Tweak formatting.
4663
3807621a
NS
46642002-01-19 Nathan Sidwell <nathan@codesourcery.com>
4665
4666 Fix regression introduced with patch for c++/775
4667 * parse.y (class_head_defn): Check for template specializations
4668 with a different class-key.
4669
cdd2559c
JM
46702002-01-17 Jason Merrill <jason@redhat.com>
4671
4672 * decl.c (begin_constructor_body, begin_destructor_body): New fns.
4673 (begin_function_body): Call them and keep_next_level.
4674 * init.c (emit_base_init): Call keep_next_level.
4675 * semantics.c (setup_vtbl_ptr): Lose.
4676 * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
4677 (vtbls_set_up_p): Lose.
4678 * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
4679 * method.c (do_build_copy_constructor): Likewise.
4680 (synthesize_method): Call finish_mem_initializers.
4681 * parse.y (nodecls): Likewise.
ad6b1795
JM
4682
4683 * error.c (dump_type_suffix): Print the exception specs before
4684 recursing.
4685 (dump_function_decl): Here, too.
4686
4687 * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
4688
195a5def
IR
46892002-01-10 Ira Ruben <ira@apple.com>
4690
6bc34b14 4691 PR c++/907
195a5def
IR
4692 * decl.c (start_method): Handle attrlist.
4693
f21ee879
JJ
46942002-01-10 Jakub Jelinek <jakub@redhat.com>
4695
4696 * decl2.c (max_tinst_depth): Increase default limit to 500.
4697
46982002-01-10 Graham Stott <grahams@redhat.com>
8fabd4e2
GS
4699
4700 * spew.c (YYCHAR): Uppercase macro parameter and add
4701 parenthesis.
4702 (YYCODE): Likewise.
4703 (NAME): Uppercase macro parameter.
4704
c3af729a
GS
47052002-01-09 Graham Stott <grahams@redhat.com>
4706
6bc34b14 4707 * decl.h (grokdeclarator): Wrap long line.
5d8b4235 4708
c3af729a
GS
4709 * semantics.c (FINISH_COND): Uppercase macro paramaters and
4710 add parenthesis.
4711
91800747
GS
47122002-01-08 Graham Stott <grahams@redhat.com>
4713
4714 * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
4715 (PALLOC): Uppercase macro parameter and whitespace.
4716 (SALLOC): Uppercase macro parameter.
4717 (SFREE): Uppercase macros parameter, add parenthese and
4718 whitespace.
4719 (STREQL): Uppercase macro parameter and whitespace.
4720 (STRNEQ): Likewise.
4721 (STRLSS): Likewise.
4722 (STRLEQ): Likewise.
4723 (STRGTR): Likewise.
4724 (STRGEQ): Likewise.
4725
4726 * call.c (convert_like): Add parenthesis and wrap.
4727 (convert_like_with_context): Likewise.
4728 (ICS_RANK): Whitespace.
4729 (NEED_TEMPORARY_P): Remove parenthesis.
4730
4731 * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
4732 whitespace.
4733 (VTT_MARKED_BINFO_P): Likewise.
4734
4735 * decl.c (BINDING_LEVEL): Add parenthesis.
4736 (DEF_OPERATOR): Likewise.
4737
91800747
GS
4738 * mangle.c (MANGLE_TRACE): Add parenthesis.
4739 (MANGLE_TRACE_TREE): Likewise.
4740 (write_signed_number): Likewise.
4741 (write_unsigned_number): Likewise.
4742
4743 * pt.c (ccat): Uppercase macro parameter.
4744 (cat): Likewise
4745
4746 * search.c (SET_BINFO_ACCESS): Add parenthesis.
4747
15eb1e43
JM
47482002-01-07 Jason Merrill <jason@redhat.com>
4749
4750 * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
4751 to pedwarn.
4752
6bc34b14 4753 PR c++/3536
15eb1e43
JM
4754 * method.c (make_thunk): If !flag_weak, give the thunk the
4755 function's linkage.
4756 (use_thunk): Here, too.
4757
b34c06e3
GS
47582002-01-07 Graham Stott <grahams@redhat.com>
4759
6bc34b14
JM
4760 * error.c: Update copyright date.
4761 (print_scope_operator): Add parenthesis.
4762 (print_left_paren): Likewise.
4763 (print_right_paren): Likewise.
4764 (print_left_bracket): Likewise.
4765 (print_right_bracket): Likewise.
4766 (print_template_argument_list_start): Likewise.
4767 (print_template_argument_list_end): Likewise.
4768 (print_non_consecutive_character): Likewise.
4769 (print_tree_identifier): Likewise.
4770 (print_identifier): Likewise.
4771 (NEXT_CODE): Uppercase macro parameter.
4772 (ident_fndecl): Delete unused.
4773 (GLOBAL_THING): Likewise.
b34c06e3 4774
98e40e83
GS
47752002-01-06 Graham Stott <grahams@redhat.com>
4776
4777 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
4778 (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
4779 (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
4780 (RECORD_OR_UNION_TYPE_CHECK): Likewise.
4781 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
4782 (C_IS_RESERVED_WORD): Uppercase macro parameter.
4783 (C_RID_YYCODE) Likewise.
4784 (ptrmem_cst): Use rtx.
4785 (LOCAL_BINDING_P): Add whitespace.
4786 (INHERITED_VALUE_BINDING_P): Likewise.
4787 (BINDING_SCOPE): Wrap long line.
4788 (BINDING_HAS_LEVEL_P): Remove parenthesis.
4789 (BINDING_VALUE): Wrap long line.
4790 (BINDING_TYPE): Whitespace.
4791 (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
4792 (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
c588e52b 4793 (IDENTIFIER_NAMESPACE_VALUE): Likewise.
98e40e83
GS
4794 (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
4795 (same_type_p): Uppercase macro parameters.
4796 (same_type_ignoring_top_level_qualifiers_p): Likewise.
4797 (OVL_FUNCTION): Wrap long line.
4798 (OVL_CHAIN): Whitespace.
b34c06e3 4799 (OVL_CURRENT): Add parenthesis and whitespace.
98e40e83
GS
4800 (OVL_NEXT): Whitespace.
4801 (OVL_USED): Likewise.
4802 (IDENTIFIER_TYPE_VALUE): Likewise.
4803 (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
4804 (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
4805 (LANG_ID_FIELD): Whitespace.
4806 (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
4807 (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
4808 (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
4809 (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
4810 (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
4811 (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
4812 (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
4813 (IDENTIFIER_VIRTUAL_P): Likewise.
4814 (IDENTIFIER_OPNAME_P): Likewise.
4815 (IDENTIFIER_TYPENAME_P): Remove parenthesis.
4816 (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
4817 (C_SET_EXP_ORIGINAL_CODE): Likewise.
4818 (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
4819 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
4820 (IS_AGGR_TYPE): Uppercase macro parameter.
4821 (CLASS_TYPE_P): Likewise.
4822 (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
4823 (IS_AGGR_TYPE_2): Whitespace.
4824 (TAGGED_TYPE_P): Uppercase macro parameter.
4825 (TYPE_BUILT_IN): Whitespace.
4826 (TYPE_FOR_JAVA): Likewise.
4827 (FUNCTION_ARG_CHAIN): Remove parenthesis.
4828 (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
4829 (FUNCTION_FIRST_USER_PARAM): Likewise.
4830 (PROMOTES_TO_AGGR_TYPE): Whitespace.
4831 (DERIVED_FROM_P): Add parenthesis and wrap.
4832 (UNIQUELY_DERIVED_FROM_P): Likewise.
4833 (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
4834 (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
4835 (CLASSTYPE_USE_TEMPLATE): Whitespace.
4836 (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
4837 (TYPE_GETS_DELETE): Add parenthesis.
4838 (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
4839 (TYPE_HAS_ASSIGN_REF): Likewise,
4840 (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
4841 (TYPE_HAS_INIT_REF): Likewise.
4842 (TYPE_HAS_CONST_INIT_REF): Likewise.
4843 (TYPE_BEING_DEFINED): Likewise.
4844 (TYPE_LANG_SPECIFIC): Likewise.
4845 (CLASSTYPE_RTTI): Likewise.
4846 (TYPE_OVERLOADS_CALL_EXPR): Likewise.
4847 (TYPE_OVERLOADS_ARRAY_REF): Likewise.
4848 (TYPE_OVERLOADS_ARROW): Likewise.
4849 (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
4850 (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
4851 (CLASSTYPE_METHOD_VEC): Likewise.
4852 (CLASSTYPE_MARKED_N): Likewise.
4853 (CLASSTYPE_MARKED): Likewise.
4854 (CLASSTYPE_MARKED2): Likewise.
4855 (CLASSTYPE_MARKED3): Likewise.
4856 (CLASSTYPE_MARKED4): Likewise.
4857 (CLASSTYPE_MARKED5): Likewise.
4858 (CLASSTYPE_MARKED6): Likewise.
4859 (SET_CLASSTYPE_MARKED): Whitespace.
4860 (CLEAR_CLASSTYPE_MARKED): Likewise.
4861 (SET_CLASSTYPE_MARKED2): Likewise.
4862 (CLEAR_CLASSTYPE_MARKED2): Likewise.
4863 (SET_CLASSTYPE_MARKED3): Likewise.
4864 (CLEAR_CLASSTYPE_MARKED3): Likewise.
4865 (SET_CLASSTYPE_MARKED4): Likewise.
4866 (CLEAR_CLASSTYPE_MARKED4): Likewise.
4867 (SET_CLASSTYPE_MARKED5): Likewise.
4868 (CLEAR_CLASSTYPE_MARKED5): Likewise.
4869 (SET_CLASSTYPE_MARKED6): Likewise.
4870 (CLEAR_CLASSTYPE_MARKED6): Likewise.
4871 (CLASSTYPE_TAGS): Likewise.
4872 (CLASSTYPE_VSIZE): Likewise.
4873 (CLASSTYPE_VBASECLASSES): Likewise.
4874 (CANONICAL_BINFO): Add parenthesis.
4875 (CLASSTYPE_SIZE(NODE): Likewise.
4876 (CLASSTYPE_SIZE_UNIT): Likewise.
4877 (CLASSTYPE_ALIGN(NODE): Likewise.
4878 (CLASSTYPE_USER_ALIGN): Likewise.
4879 (TYPE_JAVA_INTERFACE): Likewise.
4880 (CLASSTYPE_PURE_VIRTUALS): Likewise.
4881 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
4882 (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
4883 (CLASSTYPE_HAS_MUTABLE): Likewise.
4884 (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
4885 (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
4886 (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
4887 (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
4888 (CLASSTYPE_INTERFACE_ONLY): Likewise.
4889 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
4890 (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
4891 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
4892 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
4893 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
4894 (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
4895 (BINFO_UNSHARED_MARKED): Whitespace.
4896 (BINFO_MARKED): Whitespace and wrap.
4897 (SET_BINFO_MARKED): Likewise.
4898 (CLEAR_BINFO_MARKED): Likewise.
4899 (BINFO_VTABLE_PATH_MARKED): Likewise.
4900 (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
4901 (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
4902 (BINFO_SUBVTT_INDEX): Remove parenthesis.
4903 (BINFO_VPTR_INDEX): Likewise.
4904 (BINFO_PRIMARY_BASE_OF): Likewise,
4905 (CLASSTYPE_VFIELDS): Whitespace.
4906 (VF_DERIVED_VALUE): Wrap long line.
4907 (NAMESPACE_LEVEL): Whitespace.
6bc34b14
JM
4908 (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
4909 (DEFARG_POINTER): Whitespace.
4910 (DECL_NEEDED_P): Remove parenthesis.
4911 (DECL_LANGUAGE): Whitespace.
4912 (SET_DECL_LANGUAGE): Add parenthesis.
4913 (DECL_CONSTRUCTOR_P): Whitespace and wrap.
4914 (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
4915 (DECL_IN_AGGR_P): Whitespace.
4916 (DECL_FRIEND_P): Likewise.
4917 (DECL_BEFRIENDING_CLASSES): Likewise.
4918 (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
4919 (DECL_NONCONVERTING_P): Whitespace.
4920 (DECL_PURE_VIRTUAL_P): Likewise.
4921 (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
4922 (DECL_PENDING_INLINE_INFO): Whitespace.
4923 (DECL_SORTED_FIELDS): Likewise.
4924 (DECL_DEFERRED_FN): Likewise.
4925 (DECL_TEMPLATE_INFO): Likewise.
4926 (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
4927 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
4928 (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
4929 (TMPL_ARGS_LEVEL): Likewise.
4930 (SET_TMPL_ARGS_LEVEL): Likewise.
4931 (INNERMOST_TEMPLATE_PARMS): Whitespace.
4932 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
4933 (INTEGRAL_CODE_P(CODE): Add parenthesis.
4934 (CP_INTEGRAL_TYPE_P): Remove parenthesis.
4935 (TYPE_HAS_CONSTRUCTOR): Whitespace.
4936 (TREE_HAS_CONSTRUCTOR): Likewise.
4937 (TYPE_HAS_DESTRUCTOR): Likewise.
4938 (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
4939 (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
4940 (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
4941 (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
4942 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
4943 (TYPE_PTRMEMFUNC_P): Likewise.
4944 (TYPE_PTRMEMFUNC_FLAG): Likewise.
4945 (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
4946 (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
4947 (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
4948 (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
4949 (DECL_ACCESS): Whitespace.
4950 (DECL_GLOBAL_CTOR_P): Remove parenthesis.
4951 (DECL_GLOBAL_DTOR_P): Likewise.
4952 (GLOBAL_INIT_PRIORITY): Likewise.
98e40e83 4953 (DECL_TEMPLATE_PARMS): Likewise.
6bc34b14
JM
4954 (DECL_TEMPLATE_RESULT): Likewise.
4955 (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
4956 (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
4957 (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
4958 (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
4959 (PRIMARY_TEMPLATE_P): Add parenthesis.
4960 (DECL_USE_TEMPLATE): Whitespace.
4961 (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
4962 (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
4963 (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
4964 (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
4965 (CALL_DECLARATOR_PARMS): Remove parenthesis.
4966 (CALL_DECLARATOR_QUALS): Likewise.
4967 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
4968 (TEMP_NAME_P): Wrap.
4969 (VFIELD_NAME_P): Likewise.
4970 (B_SET): Uppercase macro parameters and add parenthesis.
4971 (B_CLR): Likewise.
4972 (B_TST): Likewise.
4973 (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
4974 (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
4975 (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
4976 (same_or_base_type_p): Likewise.
4977 (cp_deprecated): Likewise.
98e40e83 4978
c28abdf0
RH
49792002-01-05 Richard Henderson <rth@redhat.com>
4980
15eb1e43 4981 * semantics.c (expand_body): Revert last change.
c28abdf0 4982
f11ee281
JM
49832002-01-04 Jason Merrill <jason@redhat.com>
4984
195a5def 4985 PR c++/4122
f11ee281
JM
4986 * class.c (update_vtable_entry_for_fn): Set delta to zero for a
4987 lost primary.
4988
4989 * class.c (build_vtbl_initializer): Check for a lost primary
4990 before calculating the vtable entry to throw away.
4991
a4200657
JM
49922002-01-02 Jason Merrill <jason@redhat.com>
4993
4994 * semantics.c (expand_body): Call outlining_inline_function when
4995 emitting an inline function out of line.
4996
40e593d7
NS
49972002-01-02 Nathan Sidwell <nathan@codesourcery.com>
4998
4999 PR c++/5116, c++/764 reversion
5000 * call.c (build_new_op): Revert the instantiations. They are
5001 incorrect.
c588e52b 5002
323728aa
NS
50032002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5004
5005 PR c++/5089
5006 * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
5007
46c895ac
NS
50082002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5009
5010 PR c++/3716
5011 * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
5012 (tsubst, case POINTER_TYPE): Handle pmfs here.
5013 (tsubst, case OFFSET_TYPE): Check it is not an offset to
5014 reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
5015
833aa4c4
NS
50162002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5017
5018 PR c++/35
5019 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
5020 (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
5021 * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
5022 PARM_DECL.
5023 (tsubst_template_parms): Break up loop statements.
5024 (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
5025 parm PARM_DECLs don't get promoted.
5026
18976b21
NS
50272002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5028
5029 PR c++/5123
5030 * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
5031 (build_x_function_call): Cope with a COMPONENT_REF containing a
5032 TEMPLATE_ID_EXPR.
5033
303d1c55
NS
50342002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5035
5036 PR c++/5213
5037 * pt.c (convert_template_argument): Be more careful determining
5038 when RECORD_TYPE templates are or are not templates.
5039
d46a33b3
NS
50402002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5041
5042 PR c++/775
5043 * cp-tree.h (handle_class_head): Adjust prototype.
5044 * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
5045 parameters. Use for all class heads.
5046 * parse.y (named_class_head_sans_basetype, named_class_head,
5047 named_complex_class_head_sans_basetype,
5048 named_class_head_sans_basetype_defn,
5049 unnamed_class_head): Remove.
5050 (class_head, class_head_apparent_template): Recognize class heads
5051 (class_head_decl, class_head_defn): New reductions. Process class
5052 heads.
5053 (structsp): Adjust class definition and class declaration
5054 reductions.
5055 (maybe_base_class_list): Give diagnostic on empty list.
5056
4542128e
NS
50572002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5058
5059 PR c++/4379
5060 * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
5061 single non-static member.
5062 (unary_complex_lvalue): If it cannot be a pointer to member, don't
5063 make it so. Check it is not pointer to reference.
5064
903c6234
NS
50652002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5066
5067 PR c++/5132
5068 * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
5069 are processing a template decl.
5070
477558bf
NS
50712002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5072
5073 PR c++/5116, c++/764
5074 * call.c (build_new_op): Make sure template class operands are
5075 instantiated. Simplify arglist construction.
5076
41f5d4b1
NS
50772001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5078
5079 * call.c (build_user_type_conversion_1): Use my_friendly_assert
5080 rather than if ... abort.
5081 * cvt.c (convert_to_reference): Likewise.
5082 * semantics.c (setup_vtbl_ptr): Likewise.
5083 * pt.c (lookup_template_class): Comment typo.
c588e52b 5084
f3368a90
NS
50852001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5086
5087 PR c++/5125
5088 * pt.c (push_template_decl_real): Make sure DECL has
5089 DECL_LANG_SPECIFIC.
5090
03c9c274
NS
50912001-12-29 Nathan Sidwell <nathan@codesourcery.com>
5092
5093 PR c++/335
5094 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
5095 for non-reference fields.
5096 * typeck.c (require_complete_type): Use resolve_offset_ref).
5097
7d8e8369
NS
50982001-12-26 Nathan Sidwell <nathan@codesourcery.com>
5099
5100 PR c++/196
03c9c274 5101 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
7d8e8369 5102
a56ca899
NS
51032001-12-24 Nathan Sidwell <nathan@codesourcery.com>
5104
5105 PR c++/160
5106 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
5107 up. Don't stabilize_references when initializing a reference.
5108
0b5826ac
KG
51092001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5110
5111 * decl2.c (lang_f_options): Const-ify.
5112
38be19f6
JM
51132001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
5114
5115 * config-lang.in (diff_excludes): Remove.
5116
2e4cf9dc
NS
51172001-12-19 Nathan Sidwell <nathan@codesourcery.com>
5118
5119 PR c++/90
5120 * typeck.c (build_function_call_real): Use original function
5121 expression for errors.
5122
00e4119c
JM
51232001-12-18 Jason Merrill <jason@redhat.com>
5124
195a5def 5125 PR c++/3242
00e4119c
JM
5126 * class.c (add_method): Do compare 'this' quals when trying to match a
5127 used function. Don't defer to another used function.
5128
3ad97789
NS
51292001-12-18 Nathan Sidwell <nathan@codesourcery.com>
5130
5131 * pt.c (instantiate_clone): Remove, fold into ...
5132 (instantiate_template): ... here. Simplify by removing mutual
5133 recursion.
5134 * typeck2.c (build_m_component_ref): Don't cv qualify the function
5135 pointed to by a pointer to function.
5136 * class.c (delete_duplicate_fields_1): Typo.
5137
f21add07
JM
51382001-12-18 Jason Merrill <jason@redhat.com>
5139
5140 C++ ABI change: destroy value arguments in caller.
5141 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
5142 create an extra binding level for the parameters.
5143 * decl.c (store_parm_decls): Don't do parameter cleanups.
5144
ea50ad82
NS
51452001-12-18 Nathan Sidwell <nathan@codesourcery.com>
5146
5147 * call.c (build_new_method_call): Use '%#V'.
5148 * error.c (cv_to_string): Use V parameter to determine padding.
5149
3855d0d1
JM
51502001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
5151
5152 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
5153 spellings in messages.
5154
33bd39a2
ZW
51552001-12-17 Zack Weinberg <zack@codesourcery.com>
5156
5157 * cp-tree.h: Delete #defines for cp_error, cp_warning,
5158 cp_pedwarn, and cp_compiler_error.
5159 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
5160 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
5161 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
5162 typeck2.c: Change calls to the above macros to use their
5163 language-independent equivalents: error, warning, pedwarn, and
5164 internal_error respectively.
5165
317c26c3
NB
51662001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
5167
5168 * decl2.c (finish_file): Remove back_end_hook.
5169
aba649ba
JM
51702001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
5171
5172 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
5173 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
5174 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
5175
1737c953
JM
51762001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
5177
5178 * lang-options.h: Use American spelling in messages.
5179
4a90862e
JM
51802001-12-13 Jason Merrill <jason@redhat.com>
5181
ade3dc07
JM
5182 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
5183
5184 Use cleanups to run base and member destructors.
5185 * init.c (push_base_cleanups): New function, split out from...
5186 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
5187 * decl.c (finish_destructor_body): Move vbase destruction code to
5188 push_base_cleanups.
5189 (begin_function_body, finish_function_body): New fns.
5190 (finish_function): Move [cd]tor handling and call_poplevel to
5191 finish_function_body.
5192 (pushdecl): Skip the new level.
5193 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
5194 (setup_vtbl_ptr): Call push_base_cleanups.
5195 * method.c (synthesize_method): Call {begin,end}_function_body.
5196 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
5197 * cp-tree.h: Declare new fns.
5198 * parse.y (function_body, .begin_function_body): New nonterminals.
5199 (fndef, pending_inline, function_try_block): Use function_body.
5200 (ctor_initializer_opt, function_try_block): No longer has a value.
5201 (base_init): Remove .set_base_init token.
5202 (.set_base_init, compstmt_or_error): Remove.
5203 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
5204
4a90862e
JM
5205 * optimize.c (maybe_clone_body): Fix parameter updating.
5206
a0de9d20
JM
52072001-12-12 Jason Merrill <jason@redhat.com>
5208
5209 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
5210 * semantics.c (genrtl_start_function): Don't pass
5211 parms_have_cleanups or push an extra binding level.
5212 (genrtl_finish_function): Lose cleanup_label cruft.
5213
5214 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
5215 (ctor_label): Remove.
5216 * semantics.c (finish_return_stmt): Lose ctor_label support.
5217 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
33bd39a2 5218 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
a0de9d20
JM
5219 dtor_label.
5220
5221 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
5222 check for [cd]tors.
5223 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
5224
5225 * decl.c (finish_function): Check VMS_TARGET, not VMS.
5226
5227 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
5228 (end_cleanup_fn): And poplevel.
5229
5230 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
5231 if we're in a template.
5232
dc5c569a
JJ
52332001-12-12 Jakub Jelinek <jakub@redhat.com>
5234
5235 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
5236 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
5237 THIS_NAME_P): Delete.
5238 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
5239 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
5240 with internal naming scheme.
5241 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
5242
ad1a6d45
NS
52432001-12-12 Nathan Sidwell <nathan@codesourcery.com>
5244
5245 * decl.c (grokdeclarator): Deprecated implicit typename use.
5246
270d8c65
NS
52472001-12-11 Nathan Sidwell <nathan@codesourcery.com>
5248
5249 PR g++/51
5250 * parse.y (frob_specs): Indicate it is a language linkage which
5251 contained the extern.
5252 * decl.c (grokdeclarator): Allow extern language linkage with
5253 other specifiers.
5254
9aaceb4b
NS
52552001-12-10 Nathan Sidwell <nathan@codesourcery.com>
5256
5257 PR g++/72
5258 * decl.c (add_binding): Don't reject duplicate typedefs involving
5259 template parameters.
5260
a23c9413
NB
52612001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
5262
5263 * parse.y, semantics.c: Similarly.
5264
9aaceb4b 52652001-12-09 Nathan Sidwell <nathan@codesourcery.com>
271e6f02
NS
5266
5267 PR g++/87
5268 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
5269 (copy_args_p): Rename to ...
5270 (copy_fn_p): ... here.
5271 (grok_special_member_properties): New function.
5272 (grok_op_properties): Lose VIRTUALP parameter.
5273 (copy_assignment_arg_p): Remove.
5274 * call.c (build_over_call): Use copy_fn_p.
5275 * decl.c (grokfndecl): Reformat. Adjust call to
5276 grok_op_properties.
5277 (copy_args_p): Rename to ...
5278 (copy_fn_p): ... here. Reject template functions. Check for pass
5279 by value.
5280 (grok_special_member_properties): Remember special functions.
5281 (grok_ctor_properties): Don't remember them here, just check.
5282 (grok_op_properties): Likewise.
5283 (start_method): Call grok_special_member_properties.
5284 * decl2.c (grokfield): Likewise.
5285 (copy_assignment_arg_p): Remove.
5286 (grok_function_init): Don't remember abstract assignment here.
5287 * pt.c (instantiate_class_template): Call
5288 grok_special_member_properties.
5289 (tsubst_decl): Adjust grok_op_properties call.
5290
bdd8737f
AH
52912001-12-08 Aldy Hernandez <aldyh@redhat.com>
5292
33bd39a2
ZW
5293 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
5294 RID_TYPES_COMPATIBLE_P.
bdd8737f 5295
46af705a
JDA
52962001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5297
5298 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
5299 call to build_aggr_init.
5300 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
5301
cb97d97d
NB
53022001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
5303
5304 * parse.y: Replace uses of the string non-terminal with STRING.
5305 Don't perform string concatentaion here.
5306 (string): Remove non-terminal.
5307 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
5308
742a37d5
JM
53092001-12-05 Jason Merrill <jason@redhat.com>
5310
5311 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
5312 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
5313 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
5314 * pt.c (push_tinst_level): No longer static.
5315 * cp-tree.h: Declare them.
5316
5317 * init.c (resolve_offset_ref): Don't check access for the base
5318 conversion to access a FIELD_DECL.
5319
5320 * cp-tree.h (TYPE_REFFN_P): New macro.
5321 * decl.c (bad_specifiers): Check it, too.
5322
5323 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
5324 on the __*_type_info type if we haven't seen a definition.
5325
26f943fd
NB
53262001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
5327
5328 * decl.c: Include c-common.h.
5329 (shadow_warning): Move to c-common.c.
5330
37a08a29
RK
5331Wed Dec 5 17:00:49 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5332
5333 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
5334
9471d3e2
NS
53352001-12-04 Nathan Sidwell <nathan@codesourcery.com>
5336
5337 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
5338
713ccd0c
NS
53392001-12-04 Nathan Sidwell <nathan@codesourcery.com>
5340
5341 PR g++/164
5342 * init.c (sort_base_init): Allow binfos to be directly specified.
5343 * method.c (do_build_copy_constructor): Explicitly convert to the
5344 base instance.
5345 (do_build_assign_ref): Likewise.
5346
591382c4
HPN
53472001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
5348
5349 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
5350 declaration and initialization.
5351
c725bd79
NB
53522001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
5353
5354 * typeck2.c: Remove leading capital from diagnostic messages, as
5355 per GNU coding standards.
5356
a5d7c4a3
MK
53572001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
5358
5359 PR c++/3394
9fe038e8
HPN
5360 * decl.c (xref_basetypes): Handle attributes between
5361 'class' and name.
a5d7c4a3 5362
f1880e13
NS
53632001-12-03 Nathan Sidwell <nathan@codesourcery.com>
5364
5365 PR g++/3381
5366 * parse.y (named_complex_class_head_sans_basetype): Add new
5367 reduction.
5368 * Make-lang.in (parse.c): Adjust expected conflict count.
5369
ff668506
JM
53702001-12-03 Jason Merrill <jason@redhat.com>
5371
5372 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
5373 immediate binfos for our virtual bases.
5374
1f978f5f
NB
53752001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
5376
5377 * call.c (build_java_interface_fn_ref): Similarly.
5378 * except.c (is_admissible_throw_operand): Similarly.
5379 * init.c (build_java_class_ref): Similarly.
5380 * xref.c (open_xref_file): Similarly.
5381
357351e5
NB
53822001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
5383
5384 * class.c (finish_struct): Remove trailing periods from messages.
5385 * decl.c (check_tag_decl): Similarly.
5386 * lex.c (cxx_set_yydebug): Similarly.
5387 * typeck2.c (friendly_abort): Similarly.
5388
998979e6
MM
53892001-11-29 Mark Mitchell <mark@codesourcery.com>
5390
5391 PR c++/3048
5392 * cp-tree.h (ovl_member): Remove.
33bd39a2 5393 * decl2.c (merge_functions): Handle extern "C" functions
998979e6
MM
5394 specially.
5395 * tree.c (ovl_member): Remove.
5396
7d5b8b11
MM
53972001-11-29 Mark Mitchell <mark@codesourcery.com>
5398
5399 PR c++/4842
5400 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
5401 FUNCTION_DECL, as input.
5402 (mark_overriders): Remove.
5403 (warn_hidden): Rework for the new ABI.
5404
b67db529
MM
54052001-11-29 Mark Mitchell <mark@codesourcery.com>
5406
5407 PR c++/3471
5408 * call.c (convert_like_real): Do not build additional temporaries
5409 for rvalues of class type.
5410
2db1ab2d
NS
54112001-11-28 Nathan Sidwell <nathan@codesourcery.com>
5412
5413 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
5414 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
5415 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
5416 (DERIVED_FROM_P): Likewise.
5417 (enum base_access): Renumber, add ba_quiet bit mask.
5418 (get_binfo): Remove.
5419 (get_base_distance): Remove.
5420 (binfo_value): Remove.
5421 (ACCESSIBLY_DERIVED_FROM_P): Remove.
5422 * call.c (standard_conversion): Use lookup_base.
5423 * class.c (strictly_overrides): Likewise.
5424 (layout_virtual_bases): Likewise.
5425 (warn_about_ambiguous_direct_bases): Likewise.
5426 (is_base_of_enclosing_class): Likewise.
5427 (add_vcall_offset_vtbl_entries_1): Likewise.
5428 * cvt.c (build_up_reference): Adjust comment.
5429 * init.c (build_member_call): Reformat.
5430 * search.c (get_binfo): Remove.
5431 (get_base_distance_recursive): Remove.
5432 (get_base_distance): Remove.
5433 (lookup_base_r): Tweak.
5434 (lookup_base): Add ba_quiet control. Complete the types here.
5435 (covariant_return_p): Use lookup_base.
5436 * tree.c (binfo_value): Remove.
5437 (maybe_dummy_object): Use lookup_base.
5438 * typeck.c (build_static_cast): Use lookup_base.
5439 (get_delta_difference): Likewise.
5440 * typeck2.c (binfo_or_else): Use lookup_base.
5441 (build_scoped_ref): Add back error_mark_check.
5442 (build_m_component_ref): Use lookup_base.
5443
d3945f0a
JM
54442001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
5445
5446 * Make-lang.in (c++.generated-manpages): New dummy target.
5447
ac79cd5a
RK
5448Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5449
5450 * Make-lang.in (cp-lang.o): Depends on c-common.h.
5451 * cp-lang.c (c-common.h): Include.
5452 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
5453 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
5454 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
5455
4d6baafa
NB
54562001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
5457
5458 * decl2.c (c_language): Move to c-common.c.
5459 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
5460 functions.
5461 (cxx_init): Update.
5462
5b0c5896
JM
54632001-11-26 Jason Merrill <jason@redhat.com>
5464
5465 * call.c (joust): Remove COND_EXPR hack.
5466
4bdd26e6
AH
54672001-11-25 Aldy Hernandez <aldyh@redhat.com>
5468
195a5def 5469 * search.c (lookup_base_r): Declare bk in variable declaration
4bdd26e6 5470 space.
33bd39a2 5471
338d90b8
NS
54722001-11-25 Nathan Sidwell <nathan@codesourcery.com>
5473
5474 PR g++/3145
5475 * class.c (build_vbase_pointer): Remove.
5476 (build_vbase_path): Remove.
5477 (build_base_path): New function.
5478 * cp-tree.h (base_access, base_kind): New enumerations.
5479 (build_base_path): Declare.
5480 (convert_pointer_to_real): Remove.
5481 (convert_pointer_to): Remove.
5482 (lookup_base): Declare.
5483 (convert_pointer_to_vbase): Remove.
5484 * call.c (build_scoped_method_call): Use lookup_base &
5485 build_base_path instead of convert_pointer_to_real,
5486 get_base_distance & get_binfo.
5487 (build_over_call): Likewise.
5488 * cvt.c (cp_convert_to_pointer): Likewise.
5489 (convert_to_pointer_force): Likewise.
5490 (build_up_reference): Likewise.
5491 (convert_pointer_to_real): Remove.
5492 (convert_pointer_to): Remove.
5493 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
5494 instead of convert_pointer_to_vbase & build_vbase_path.
5495 (emit_base_init): Use build_base_path instead of
5496 convert_pointer_to_real.
5497 (expand_virtual_init): Lose unrequired conversions.
5498 (resolve_offset_ref): Use lookup_base and build_base_path
5499 instead of convert_pointer_to.
5500 * rtti.c (build_dynamic_cast_1): Use lookup_base &
5501 build_base_path instead of get_base_distance & build_vbase_path.
5502 * search.c (get_vbase_1): Remove.
5503 (get_vbase): Remove.
5504 (convert_pointer_to_vbase): Remove.
07f521fc 5505 (lookup_base_r): New function.
338d90b8
NS
5506 (lookup_base): New function.
5507 * typeck.c (require_complete_type): Use lookup_base &
5508 build_base_path instead of convert_pointer_to.
5509 (build_component_ref): Likewise.
5510 (build_x_function_call): Likewise.
5511 (get_member_function_from_ptrfunc): Likewise.
5512 (build_component_addr): Likewise.
5513 * typeck2.c (build_scoped_ref): Likewise.
5514
89d684bb
BM
55152001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5516
5517 * cp-tree.h (CP_TYPE_QUALS): Removed.
5518 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
33bd39a2 5519 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
89d684bb 5520 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
33bd39a2 5521 * dump.c (cp_dump_tree): Use void* dump_info argument to match
89d684bb
BM
5522 lang-hooks prototype.
5523 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
5524 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
5525 CP_TYPE_QUALS changed to cp_type_quals.
5526 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
5527 (CXX_C_OBJS): Remove c-dump.o.
5528
12eb9f93 55292001-11-21 Mark Mitchell <mark@codesourcery.com>
2d2e8123
MM
5530
5531 PR c++/3637
12eb9f93
MM
5532 * pt.c (lookup_template_class): Ensure that all specializations
5533 are registered on the list corresponding to the most general
5534 template.
5535
55362001-11-20 Mark Mitchell <mark@codesourcery.com>
5537
2d2e8123 5538 * call.c (non_reference): Add documentation.
33bd39a2 5539 (convert_class_to_reference): Do not strip reference types
2d2e8123
MM
5540 from conversion operators.
5541 (maybe_handle_ref_bind): Simplify.
5542 (compare_ics): Correct handling of references.
5543
78a40378
MM
55442001-11-19 John Wilkinson <johnw@research.att.com>
5545
5546 * dump.c (dump_op): New function.
5547 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
5548 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
5549 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
33bd39a2 5550
78a40378
MM
55512001-11-19 Mark Mitchell <mark@codesourcery.com>
5552
5553 PR4629
5554 * semantics.c (finish_sizeof): Make sure that expression created
5555 while processing a template do not have a type.
5556 (finish_alignof): Likewise.
5557 * typeck.c (c_sizeof): Likewise.
5558 (expr_sizeof): Likewise.
5559
22703ccc
NB
55602001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
5561
5562 * lex.c (cxx_finish): Call c_common_finish.
5563 (finish_parse): Remove.
5564
b3faacfd
KL
55652001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5566
5567 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
5568 when displaying error message about missing array bounds.
5569
873ff987
KL
55702001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5571
5572 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
5573 CONST_CAST_EXPR.
5574 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
5575
08f3a861
NB
55762001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
5577
5578 * cp-tree.h (print_class_statistics): Restore.
5579
8a2b77e7
JM
55802001-11-15 Jason Merrill <jason@redhat.com>
5581
3b1a4132
JM
5582 * method.c (use_thunk): Don't emit debugging information for thunks.
5583
8a2b77e7
JM
5584 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
5585 * decl.c (make_typename_type): Handle getting a class template.
5586 * search.c (lookup_field_r): A class template is good enough for
5587 want_type.
5588
5589 * call.c (convert_like_real): Only use cp_convert for the bad part.
5590 (standard_conversion): Also allow bad int->enum.
5591 * typeck.c (ptr_reasonably_similar): Also allow functions to
5592 interconvert. Pointers to same-size integers are reasonably
5593 similar.
5594
5595 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
5596 give it void type.
5597
36a68fe7
NS
55982001-11-15 Nathan Sidwell <nathan@codesourcery.com>
5599
5600 PR g++/3154
5601 * init.c (sort_base_init): Remove unreachable code.
5602 (expand_member_init): Adjust comment to reflect reality. Simplify
5603 and remove unreachable code.
5604
f5e99456
NB
56052001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
5606
5607 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
5608 (cxx_init): Update prototype.
5609 * decl.c (init_decl_processing): Rename. Move null node init
5610 to its creation time.
5611 * lex.c (cxx_init_options): Update.
5612 (cxx_init): Combine with old init_parse; also call
5613 cxx_init_decl_processing.
5614
fe5b6c1c
RS
56152001-11-14 Richard Sandiford <rsandifo@redhat.com>
5616
8a2b77e7
JM
5617 * decl.c (check_initializer): Try to complete the type of an
5618 array element before checking whether it's complete. Don't
5619 complain about arrays with complete element types but an
5620 unknown size.
5621 (cp_finish_decl): Build the hierarchical constructor before
5622 calling maybe_deduce_size_from_array_init.
fe5b6c1c 5623
77bd67cb
JM
56242001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
5625
5626 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
5627
b02922a4
NS
56282001-11-13 Nathan Sidwell <nathan@codesourcery.com>
5629
5630 PR g++/4206
5631 * parse.y (already_scoped_stmt): Remove.
5632 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
5633
abfc1ef6
L
56342001-11-12 H.J. Lu <hjl@gnu.org>
5635
195a5def 5636 * cvt.c (ocp_convert): Don't warn the address of a weak
abfc1ef6
L
5637 function is always `true'.
5638
5d69f816
NB
56392001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
5640
5641 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
5642 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
5643 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
5644 * cp-tree.h (print_class_statistics): Remove.
5645 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
5646 cxx_print_identifier, cxx_set_yydebug): New.
5647 * lex.c (set_yydebug): Rename c_set_yydebug.
5648 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
5649 lang_print_xnode): Rename.
5650 * tree.c (print_lang_statistics): Rename.
5651
4fdc14ca
KG
56522001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5653
5654 * class.c (dump_array): Fix format specifier warning.
5655
3ac88239
NB
56562001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
5657
5658 * cp-lang.c (LANG_HOOKS_NAME): Override.
5659 (struct lang_hooks): Constify.
5660 * lex.c (cxx_init_options): Update.
5661 (lang_identify): Remove.
33bd39a2 5662 * parse.y (language_string): Remove.
3ac88239 5663
b21d216c
AF
56642001-11-08 Andreas Franck <afranck@gmx.de>
5665
5666 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
5667 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
5668 suggested by autoconf.
5669 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
5670 (c++.install-common): Use the transformed target alias names.
5671
d23c55c2
NB
56722001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5673
5674 * Make-lang.in: Update.
5675 * cp-lang.c: Include langhooks-def.h.
5676
2a2b1d56
KL
56772001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5678
5679 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
5680
76648a8b
KG
56812001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5682
5683 * lex.c (copy_lang_type): Add static prototype.
5684
fccef71e
KL
56852001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5686
5687 * pt.c (unify): Handle SCOPE_REF.
5688
19989812
JJ
56892001-11-01 Jakub Jelinek <jakub@redhat.com>
5690
5691 * tree.c (cp_copy_res_decl_for_inlining): Adjust
5692 DECL_ABSTRACT_ORIGIN for the return variable.
5693
5b7874aa
ZW
56942001-10-31 Zack Weinberg <zack@codesourcery.com>
5695
5696 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
5697
306ef644
JM
56982001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
5699
5700 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
5701 semantics.c, spew.c: Fix spelling errors.
5702
76543000
KL
57032001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5704
5705 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
5706
37207ee7
ZW
57072001-10-25 Zack Weinberg <zack@codesourcery.com>
5708
5709 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
5710 pop_everything.
5711
8ac61af7
RK
5712Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5713
5714 * cp-lang.c (cxx_get_alias_set): New function.
5715 Point LANG_HOOKS_GET_ALIAS_SET to it.
5716
f1e09fa2 57172001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
b8c6534b
KL
5718
5719 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
5720 * cp-tree.h (make_unbound_class_template): Prototype new function.
5721 * decl.c (make_unbound_class_template): New function.
5722 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
5723 * error.c (dump_type): Likewise.
5724 * mangle.c (write_type): Likewise.
5725 * parse.y (template_parm): Likewise.
5726 (template_argument): Use make_unbound_class_template.
5727 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
5728 (tsubst): Likewise.
5729 (tsubst_copy): Likewise.
5730 (unify): Likewise.
5731 * tree.c (walk_tree): Likewise.
5732 * typeck.c (comptypes): Likewise.
5733
0df6c2c7
KG
57342001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5735
5736 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
5737 extra calls into fewer ones.
5738
97055d5c
AO
57392001-10-18 Alexandre Oliva <aoliva@redhat.com>
5740
5741 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
5742 Warn when merging inline with attribute noinline.
5743 (start_decl, start_function): Warn if inline and attribute
5744 noinline appear in the same declaration.
5745
b5823a44
L
57462001-10-16 H.J. Lu <hjl@gnu.org>
5747
5748 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
5749 for tree checking disabled.
5750
dc8ad298
HPN
57512001-10-16 Hans-Peter Nilsson <hp@axis.com>
5752
5753 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
5754 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
5755
d9f818d9
RS
57562001-10-15 Richard Sandiford <rsandifo@redhat.com>
5757
5758 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
5759 (unify): Only handle MINUS_EXPR specially if the above flag is set
5760 and the subtracted constant is 1. Clear the flag on recursive calls.
5761 Set it when unifying the maximum value in an INTEGER_TYPE's range.
5762
e1be26f4
RS
57632001-10-15 Richard Sandiford <rsandifo@redhat.com>
5764
5765 * decl.c (bad_specifiers): Don't allow exception specifications
5766 on any typedefs.
5767
a5da89c6
NB
57682001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
5769
5770 * cp/lex.c (init_cp_pragma): Similarly.
5771
4f96ff63
KL
57722001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5773
5774 * pt.c (lookup_template_class): Build complete template arguments
5775 for BOUND_TEMPLATE_TEMPLATE_PARM.
5776
11e74ea6
KL
57772001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5778
5779 * cp-tree.h (TYPE_BINFO): Update comment.
5780 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
5781 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
5782 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
5783 (copy_type): Prototype new function.
5784 * lex.c (copy_lang_decl): Gather tree node statistics.
5785 (copy_lang_type): New function.
5786 (copy_type): Likewise.
5787 (cp_make_lang_type): Create lang_type for
5788 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
5789 and BOUND_TEMPLATE_TEMPLATE_PARM.
5790 * pt.c (tsubst): Use copy_type instead of copy_node.
5791 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
5792
f5d47abd
KL
57932001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5794
5795 * pt.c (determine_specialization): Ignore functions without
5796 DECL_TEMPLATE_INFO.
5797
e60505a5
NS
57982001-10-12 Nathan Sidwell <nathan@codesourcery.com>
5799
5800 PR g++/4476
5801 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
5802
6f32162a
JM
58032001-10-11 Jason Merrill <jason_merrill@redhat.com>
5804
5805 * typeck2.c (store_init_value): Don't re-digest a bracketed
5806 initializer.
5807
5808 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
5809 ANON_AGGR_TYPE_P.
5810
4a8d0c9c
RH
58112001-10-11 Richard Henderson <rth@redhat.com>
5812
5813 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
5814 of an asm statement.
5815 (build_vtbl_ref_1): Split out from build_vtbl_ref.
5816 (build_vfn_ref): Use it to handle vtable descriptors before
5817 calling build_vtable_entry_ref.
5818 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
5819
84b72302
RH
58202001-10-10 Richard Henderson <rth@redhat.com>
5821
37207ee7 5822 * parse.y (asm_operand): Allow named operands.
84b72302 5823 * semantics.c (finish_asm_stmt): Tweek for changed location
4639c5c6 5824 of the operand constraint.
84b72302 5825
48c8b0be 58262001-10-09 Jason Merrill <jason_merrill@redhat.com>
72a08131
JM
5827
5828 * call.c (standard_conversion): Add bad conversion between
5829 integers and pointers.
5830 (convert_like_real): Don't use convert_for_initialization for bad
5831 conversions; complain here and use cp_convert.
5832 (build_over_call): Don't handle bad conversions specially.
5833 (perform_implicit_conversion): Allow bad conversions.
5834 (can_convert_arg_bad): New fn.
5835 * cp-tree.h: Declare it.
5836 * typeck.c (convert_for_assignment): Use it.
5837 (ptr_reasonably_similar): Any target type is similar to void.
5838
19551f29
AO
58392001-10-08 Alexandre Oliva <aoliva@redhat.com>
5840
5841 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
5842 (cp/cp-lang.o): New rule.
5843 * cp-tree.h: Declare hooks.
5844 * tree.c: Make hooks non-static.
5845 (init_tree): Don't initialize hooks here.
5846 * lex.c: Likewise. Move definition of lang_hooks to...
5847 * cp-lang.c: ... new file.
5848
31ed8fea
RH
58492001-10-08 Richard Henderson <rth@redhat.com>
5850
5851 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
5852 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
5853
8b60264b
KG
58542001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5855
5856 * class.c (build_vtable_entry_ref): Const-ify.
5857 * decl.c (predefined_identifier,
37207ee7 5858 initialize_predefined_identifiers): Likewise.
8b60264b
KG
5859 * init.c (build_new_1): Likewise.
5860 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
5861 Likewise.
5862
bc4c7159
AO
58632001-10-05 Alexandre Oliva <aoliva@redhat.com>
5864
5865 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
5866 (INSNS_PER_STMT): Likewise.
5867 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5868 (copy_body, initialize_inlined_parameters): Likewise.
5869 (declare_return_variable, inlinable_function_p): Likewise.
5870 (expand_call_inline, expand_calls_inline): Likewise.
5871 (optimize_inline_calls, clone_body): Likewise.
5872 * tree.c (walk_tree): Moved to ../tree-inline.c.
5873 (walk_tree_without_duplicates): Likewise.
5874 (copy_tree_r, remap_save_expr): Likewise.
5875
25af8512
AO
58762001-10-04 Alexandre Oliva <aoliva@redhat.com>
5877
5878 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
5879 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
5880 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
5881 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
5882 (flag_inline_trees): Moved declaration to ../tree-inline.h.
5883 (walk_tree): Moved declaration to ../tree-inline.h.
5884 (walk_tree_without_duplicates, copy_tree_r): Likewise.
5885 (remap_save_expr): Likewise.
5886 * decl.c: Include tree-inline.h.
5887 (lang_mark_tree): Don't mark inlined_fns.
5888 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
5889 * optimize.c: Include tree-inline.h.
5890 (optimize_inline_calls): Move declaration to ../tree.h, as
5891 non-static.
5892 (remap_decl): Use language-independent constructs and hooks.
5893 (remap_block, copy_body_r, declare_return_variable): Likewise.
5894 (inlinable_function_p): Likewise. Don't test for
5895 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
5896 no longer language-specific.
5897 (optimize_inline_calls): Likewise. Make it non-static. Moved
5898 call of dump_function to...
5899 (optimize_function): Here...
5900 (clone_body): New function, extracted from...
5901 (maybe_clone_body): ... here. Build decl_map locally and pass
5902 it on to clone_body.
5903 * pt.c, semantics.c: Include tree-inline.h.
5904 * tree.c: Likewise.
5905 (cp_walk_subtrees): New language-specific hook for tree inlining.
5906 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
5907 cp_is_overload_p, cp_auto_var_in_fn_p,
5908 cp_copy_res_decl_for_inlining): Likewise.
5909 (walk_tree): Move language-specific constructs into...
5910 (cp_walk_subtrees): this new function.
5911 (copy_tree_r): Use language-independent constructs and hooks.
5912 (init_tree): Initialize tree inlining hooks.
5913 (remap_save_expr): Adjust prototype so that the declaration
5914 does not require the definition of splay_tree.
5915
6a4af81f
JDA
59162001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5917
5918 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
5919 to build the declaration instead of the declaration itself.
5920
0caee1c6
JM
59212001-10-02 Jason Merrill <jason_merrill@redhat.com>
5922
48c8b0be
JM
5923 * decl2.c (cxx_decode_option): Add 'else'.
5924
0caee1c6
JM
5925 * spew.c (end_input): No longer static.
5926 * cp-tree.h: Declare it.
5927 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
5928
80a497e4
JM
59292001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5930
5931 * call.c (build_over_call), typeck.c (build_function_call_real):
5932 Pass type attributes to check_function_format rather than name or
5933 assembler name. Don't require there to be a name or assembler
5934 name to check formats.
5935
6431177a
JM
59362001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5937
5938 * decl.c (init_decl_processing): Don't call
5939 init_function_format_info. Initialize lang_attribute_table
5940 earlier.
5941 (builtin_function): Call decl_attributes.
5942 (insert_default_attributes): New.
5943
55b3d665
JM
59442001-10-01 Jason Merrill <jason_merrill@redhat.com>
5945
5946 * decl.c (grokdeclarator): Copy array typedef handling from C
5947 frontend.
5948
5949 * decl.c (grokdeclarator): Copy too-large array handling from C
5950 frontend.
5951
9f57ca19
AO
59522001-09-29 Alexandre Oliva <aoliva@redhat.com>
5953
5954 * config-lang.in (target_libs): Added target-gperf, so that we
5955 don't try to build it if C++ is disabled.
5956
749ced52
ZW
59572001-09-23 Zack Weinberg <zack@codesourcery.com>
5958
5959 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
5960 (cp/errfn.o): Delete rule.
5961 (cp/error.o): Depend on flags.h.
5962 * errfn.c: Delete file.
5963 * cp-tree.h: Declare warn_deprecated. Remove definitions of
5964 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
5965 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
5966 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
5967 internal_error respectively. Make cp_deprecated into a macro.
5968 Don't define cp_printer typedef or declare cp_printers.
5969 * error.c: Include flags.h.
5970 Delete: struct tree_formatting_info, print_function_argument_list,
5971 print_declaration, print_expression, print_function_declaration,
5972 print_function_parameter, print_type_id, print_cv_qualifier_seq,
5973 print_type_specifier_seq, print_simple_type_specifier,
5974 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
5975 print_parameter_declaration_clause, print_exception_specification,
5976 print_nested_name_specifier, and definition of cp_printers.
5977 (locate_error): New function.
5978 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
5979 rewritten in terms of locate_error and diagnostic.c.
5980 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
5981 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
5982 (init_error): Adjust to match.
5983
bb9f8221
RK
5984Sat Sep 22 09:15:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5985
5986 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
5987
67231816
RH
59882001-09-21 Richard Henderson <rth@redhat.com>
5989
5990 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
5991 (build_vtbl_initializer): Likewise.
5992 (build_vfn_ref): New.
5993 * cp-tree.h: Declare it.
5994 * call.c (build_over_call): Use it.
5995 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
5996 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
5997
c9574c9f
R
5998Fri Sep 21 08:16:19 2001 J"orn Rennecke <amylaar@redhat.com>
5999
6000 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
6001
91d231cb
JM
60022001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
6003
6004 Table-driven attributes.
6005 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6006 * decl2.c (cplus_decl_attributes): Only take one attributes
6007 parameter.
6008 * cp-tree.c (cplus_decl_attributes): Update prototype.
6009 * class.c (finish_struct), decl.c (start_decl, start_function),
6010 decl2.c (grokfield), friend.c (do_friend), parse.y
6011 (parse_bitfield): Update calls to cplus_decl_attributes.
6012 * decl.c (grokdeclarator): Take a pointer to a single ordinary
6013 attribute list.
6014 * decl.h (grokdeclarator): Update prototype.
6015 * decl2.c (grokfield): Take a single ordinary attribute list.
6016 * friend.c (do_friend): Likewise.
6017 * decl.c (shadow_tag, groktypename, start_decl,
6018 start_handler_parms, grokdeclarator, grokparms, start_function,
6019 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
6020 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
6021 (process_template_parm, do_decl_instantiation): Pass single
6022 ordinary attribute lists around.
6023 * decl.c (grokdeclarator): Correct handling of nested attributes.
6024 Revert the patch
6025 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
6026 * decl.c (grokdeclarator): Embedded attrs bind to the right,
6027 not the left.
6028 .
6029 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
6030 (cp_attribute_table): Declare.
6031 * decl.c (valid_lang_attribute): Don't define.
6032 (lang_attribute_table): Define.
6033 (init_decl_processing): Initialize lang_attribute_table instead of
6034 valid_lang_attribute.
6035 * tree.c (cp_valid_lang_attribute): Remove.
6036 (handle_java_interface_attribute, handle_com_interface_attribute,
6037 handle_init_priority_attribute): New functions.
6038 (cp_attribute_table): New array.
6039 * decl2.c (import_export_class): Don't use
6040 targetm.valid_type_attribute.
6041
a1bda5f1
GDR
60422001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6043
e6b9638b
JM
6044 * Make-lang.in (cp/error.o): Depend on real.h
6045 * error.c: #include "real.h"
a1bda5f1 6046
cb6edbcb
KG
60472001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6048
6049 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
6050 xmalloc/strcpy/strcat.
6051
83182544
KG
60522001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6053
6054 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
6055 Const-ification.
6056 * pt.c (tsubst_decl): Likewise.
6057
40008eda
KG
60582001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6059
6060 * decl2.c (lang_f_options): Const-ification.
6061 * lex.c (cplus_tree_code_name): Likewise.
6062 * spew.c (yyerror): Likewise.
6063
39e78d8b
NS
60642001-09-06 Nathan Sidwell <nathan@codesourcery.com>
6065
6066 PR c++/3986
6067 * class.c (force_canonical_binfo_r): Check & move an indirect
6068 primary base first.
6069 (force_canonical_binfo): Check that it's not already
6070 canonical.
6071 (mark_primary_virtual_base): Remove BINFO parameter.
6072 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
6073
6d0a3f67
NS
60742001-09-06 Nathan Sidwell <nathan@codesourcery.com>
6075
6076 Remove TYPE_NONCOPIED_PARTS.
6077 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
6078 CLASSTYPE_PURE_VIRTUALS.
6079 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
6080 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
72a08131 6081 (layout_class_type): Don't call fixup_inline_methods here ...
6d0a3f67
NS
6082 (finish_struct_1): ... call it here.
6083
4f8e1232
MM
60842001-09-04 Mark Mitchell <mark@codesourcery.com>
6085
6086 * decl.c (duplicate_decls): Remove code deadling with
6087 DECL_SAVED_INSNS.
6088 * decl2.c (finish_file): Likewise.
6089 * pt.c (instantiate_decl): Likewise.
6090 * semantics.c (expand_body): Don't defer local functions if
6091 they wouldn't be deferred for some other reason. Don't
6092 generate RTL for functions that will not be emitted.
6093 (genrtl_start_function): Remove code deadling with
6094 DECL_SAVED_INSNS.
6095 (genrtl_finish_function): Likewise.
6096
da86f08f
NS
60972001-09-04 Nathan Sidwell <nathan@codesourcery.com>
6098
6099 PR c++/4203
6100 * call.c (build_over_call): Do not optimize any empty base
6101 construction.
6102
38066e83
KL
61032001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6104
6105 * error.c (dump_template_decl): Output template parameters
6106 together with their specifiers.
6107 Output `class' prefix for template template parameter.
6108 (dump_decl): Fix formatting.
6109
598e9ba5 61102001-08-30 Kurt Garloff <garloff@suse.de>
749ced52 6111
598e9ba5
KG
6112 * optimize.c (inlinable_function_p): Allow only smaller single
6113 functions. Halve inline limit after reaching recursive limit.
749ced52 6114
f232e4a5
JR
61152001-08-30 Joern Rennecke <amylaar@redhat.com>
6116 Jason Merrill <jason_merrill@redhat.com>
6117
6118 * class.c (build_vtable_entry_ref): Subtract in char*, not
6119 ptrdiff_t.
6120
0213a355
JM
61212001-08-23 Jason Merrill <jason_merrill@redhat.com>
6122
6123 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
6124 (build_cplus_array_type): Use cp_build_qualified_type, not
6125 TYPE_MAIN_VARIANT, to get an unqualified version.
6126
6127 * decl2.c (grok_alignof): Lose.
6128 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
6129 * typeck.c (c_alignof): Lose.
6130 * semantics.c (finish_sizeof, finish_alignof): New.
6131 * parse.y: Use them.
6132 * cp-tree.h: Declare them.
6133
fd10dd09
JM
61342001-08-22 Jason Merrill <jason_merrill@redhat.com>
6135
6136 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
6137 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
6138 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
6139
baeb4732
JJ
61402001-08-19 Jakub Jelinek <jakub@redhat.com>
6141
6142 * typeck2.c (add_exception_specifier): Only require complete type if
6143 not in processing template declaration.
6144
1c0cc57e
KG
61452001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6146
6147 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
6148 GNU_xref_start_scope and GNU_xref_end_scope.
6149
6150 * tree.c (TYPE_HASH): Moved to ../tree.h.
6151
9a52d09b
MM
61522001-08-16 Mark Mitchell <mark@codesourcery.com>
6153
6154 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
6155 on COMPOUND_EXPRs.
6156
b5d1cbd2
RH
61572001-08-14 Richard Henderson <rth@redhat.com>
6158
6159 * class.c, cp-tree.h (build_vfn_ref): Remove.
6160 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
6161
63d6f87a
MM
61622001-08-13 Mark Mitchell <mark@codesourcery.com>
6163
6164 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
6165 empty class assignment as having side-effects to avoid
6166 spurious warnings.
6167
e78d8e51
ZW
61682001-08-13 Zack Weinberg <zackw@panix.com>
6169
6170 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
6171 * except.c: Include libfuncs.h.
6172
a60af04a
GDR
61732001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6174
6175 * decl.c (grokdeclarator): Clarify diagnostic message.
6176
3605b283
KL
61772001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6178
6179 * decl2.c (do_nonmember_using_decl): Replace using directive
6180 with using declaration in the error message.
6181
4d5f3fbd
KL
61822001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6183
6184 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
6185 criterion to avoid rebuilding expression tree instead of
6186 processing_template_decl.
6187
07b2f2fd
JM
61882001-08-07 Jason Merrill <jason_merrill@redhat.com>
6189
6190 Support named return value optimization for inlines, too.
6191 * decl.c (finish_function): Nullify returns here.
6192 * semantics.c (genrtl_start_function): Not here.
6193 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
6194 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
6195 Also nullify the CLEANUP_STMT for the nrv.
6196 * cp-tree.h: Declare it.
6197 * optimize.c (declare_return_variable): Replace the nrv with the
6198 return variable.
6199 * typeck.c (check_return_expr): Be more flexible on alignment check.
6200 Ignore cv-quals when checking for a matching type.
6201
2cc07db4
RH
62022001-08-09 Richard Henderson <rth@redhat.com>
6203
6204 * decl2.c (finish_objects): Use target hooks instead of
6205 assemble_constructor and assemble_destructor.
6206
0ca179b2
JDA
62072001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6208
6209 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
6210
0830ae44
NS
62112001-08-07 Nathan Sidwell <nathan@codesourcery.com>
6212
6213 PR c++/3820
6214 Stop using TYPE_NONCOPIED_PARTS.
6215 * call.c (build_over_call): Be careful when copy constructing
6216 or assigning to an empty class.
6217 * class.c (check_bases_and_members): It has a
6218 COMPLEX_ASSIGN_REF if it has a vptr.
6219 (layout_class_type): Don't add empty class padding to
6220 TYPE_NONCOPIED_PARTS.
6221 (finish_struct_1): Don't add the VFIELD either.
6222 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
6223 initialization.
6224
59a13e0f
JM
62252001-08-07 Jason Merrill <jason_merrill@redhat.com>
6226
6227 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
6228
47907859
RH
62292001-08-06 Richard Henderson <rth@redhat.com>
6230
6231 * decl2.c (finish_objects): Pass a symbol_ref and priority to
6232 assemble_{constructor,destructor}. Remove priority handling.
6233
eac69b8a
GDR
62342001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6235
6236 Don't allow template-id in using-declaration.
6237 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
6238 (do_class_using_decl): Likewise.
6239
ef6e958a
NB
62402001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
6241
6242 * cp/spew.c (read_token): No need to pop buffers.
6243
dff94ad7
SS
62442001-08-02 Stan Shebs <shebs@apple.com>
6245
6246 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
6247 (fnaddr_from_vtable_entry): Remove decl.
6248 * method.c (use_thunk): Update comment.
6249
026c3f13
AC
62502001-08-01 Andrew Cagney <ac131313@redhat.com>
6251
6252 * repo.c (get_base_filename): Change return value to const char
6253 pointer.
6254
1dbb6023
NS
62552001-08-02 Nathan Sidwell <nathan@codesourcery.com>
6256
6257 Kill -fhonor-std.
6258 * NEWS: Document.
6259 * cp-tree.h (flag_honor_std): Remove.
6260 (CPTI_FAKE_STD): Remove.
6261 (std_node): Remove comment about it being NULL.
6262 (fake_std_node): Remove.
6263 * decl.c (in_fake_std): Remove.
6264 (walk_namespaces_r): Remove fake_std_node check.
6265 (push_namespace): Remove in_fake_std code.
6266 (pop_namespace): Likewise.
6267 (lookup_name_real): Remove fake_std_node check.
6268 (init_decl_processing): Always create std_node. Always add
6269 std:: things there.
6270 (builtin_function): Always put non '_' fns in std.
6271 * decl2.c (flag_honor_std): Remove.
6272 (lang_f_options): Remove honor-std.
6273 (unsupported_options): Add honor-std.
6274 (set_decl_namespace): Remove fake_std_node check.
6275 (validate_nonmember_using_decl): Likewise.
6276 (do_using_directive): Likewise.
6277 (handle_class_head): Likewise.
6278 * dump.c (cp_dump_tree): Likewise.
6279 * except.c (init_exception_processing): Adjust.
6280 * init.c (build_member_call): Remove fake_std_node check.
6281 (build_offset_ref): Likewise.
6282 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
6283 * rtti.c (init_rtti_processing): Adjust.
6284
6ad7895a
APB
62852001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
6286
6287 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
6288 operand while calling cp_tree_equal.
6289
befe7c61
NS
62902001-07-31 Nathan Sidwell <nathan@codesourcery.com>
6291
6292 The 3.0 ABI no longer has vbase pointer fields.
6293 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
6294 FORMAT_VBASE_NAME): Remove.
6295 * method.c (do_build_copy_constructor): Adjust.
6296 (do_build_assign_ref): Adjust.
6297 * search.c (lookup_field_r): Adjust.
6298 * typeck.c (build_component_ref): Adjust.
6299
6300 The 3.0 ABI always has a vtable pointer at the start of every
6301 polymorphic class.
6302 * rtti.c (build_headof_sub): Remove.
6303 (build_headof): Adjust.
6304 (get_tinfo_decl_dynamic): No need to check flag_rtti
6305 here. Adjust.
6306 (create_real_tinfo_var): Explain why we need a hidden name.
6307
20dde49d
NS
63082001-07-31 Nathan Sidwell <nathan@codesourcery.com>
6309
6310 PR c++/3631
6311 * class.c (update_vtable_entry_for_fn): The fixed adjustment
6312 of a virtual thunk should be from declaring base.
6313
b7ad2f8b
NS
63142001-07-31 Nathan Sidwell <nathan@codesourcery.com>
6315
6316 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
6317 the shared virtual base, so preserving inheritance graph order.
6318
57cb6d52
AJ
63192001-07-30 Andreas Jaeger <aj@suse.de>
6320
749ced52 6321 * decl2.c: Remove unused var global_temp_name_counter.
57cb6d52 6322
594280a3
RH
63232001-07-28 Richard Henderson <rth@redhat.com>
6324
6325 * method.c (pending_inlines): Remove.
6326
0ab142b0
NS
63272001-07-27 Nathan Sidwell <nathan@codesourcery.com>
6328
6329 * class.c (mark_primary_virtual_base): Don't adjust base
6330 offsets here.
6331 (dfs_unshared_virtual_bases): Adjust them here.
6332 (mark_primary_bases): Explain why we adjust at the end.
6333
d60d223b
NS
63342001-07-27 Nathan Sidwell <nathan@codesourcery.com>
6335
6336 * class.c (finish_struct_1): When copying the primary base's
6337 VFIELD, make sure we find it is at offset zero.
6338
db3ef87b
KL
63392001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6340
6341 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
6342 tsubst_expr for default template arguments.
6343
312b7c9d
NS
63442001-07-26 Nathan Sidwell <nathan@codesourcery.com>
6345
d60d223b 6346 PR c++/3621
312b7c9d 6347 * spew.c (yylex): Only copy the token's lineno, if it is
838dfd8a 6348 nonzero.
312b7c9d 6349
648c2206
NS
63502001-07-26 Nathan Sidwell <nathan@codesourcery.com>
6351
6352 PR c++/3624
6353 * call.c (resolve_args): Simplify, call
6354 convert_from_reference.
6355 (build_new_op): Resolve and convert from reference ARG1
6356 earlier. Adjust ARG2 & ARG3 resolve and conversion.
6357
969fd501
NS
63582001-07-26 Nathan Sidwell <nathan@codesourcery.com>
6359
6360 * decl.c (last_function_parm_tags): Remove.
6361 (current_function_parm_tags): Remove.
6362 (init_decl_processing): Adjust.
6363 (start_function): Adjust.
6364 (store_parm_decls): Adjust.
6365
6366 PR c++/3152
6367 * decl.c (grokdeclarator): Detect when a function typedef is
6368 declaring a function, and create last_function_parms correctly.
6369
08ac397c 63702001-07-25 Jason Merrill <jason_merrill@redhat.com>
749ced52 6371
08ac397c
JM
6372 * call.c (joust): Only prefer a non-builtin candidate to a builtin
6373 one if they have the same signature.
6374
6375 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
6376 it rather than toplevel_bindings_p. Give it a mangled name if static.
6377 (convert_to_reference): Adjust.
6378 * decl2.c (get_temp_name): Lose.
6379 * mangle.c (mangle_ref_init_variable): New fn.
6380 (mangle_guard_variable): Strip the ref-init header.
6381 * cp-tree.h: Adjust.
6382 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
6383 initializer.
6384 (grok_reference_init): Always use DECL_INITIAL.
6385
40260429
NS
63862001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6387
6388 PR c++/3416
6389 * call.c (build_conditional_expr): Recheck args after
6390 conversions.
6391 * cp-tree.h (build_conditional_expr): Move to correct file.
6392 * typeck.c (decay_conversion): Diagnose any unknown types
6393 reaching here.
6394 (build_binary_op): Don't do initial decay or default
6395 conversions on overloaded functions.
6396 (build_static_cast): Don't do a decay conversion here.
6397
ab085207
NS
63982001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6399
6400 PR c++/3543
6401 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
6402 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
6403
0abe00c5
NS
64042001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6405
6406 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
6407 (create_vtbl_ptr): ... here.
6408
90b1ca2f
NS
64092001-07-25 Nathan Sidwell <nathan@codesourcery.com>
6410
6411 * class.c (build_vbase_offset_vbtl_entries): Look for
6412 non-primary base of which we are a sub vtable.
6413
cfe5dc31
PE
64142001-07-24 Phil Edwards <pme@sources.redhat.com>
6415
6416 * semantics.c (finish_this_expr): Remove unused code.
6417
7f54a851
NS
64182001-07-24 Nathan Sidwell <nathan@codesourcery.com>
6419
6420 Simplify rtti, now we've only one ABI.
6421 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
6422 CPTI_TINFO_VAR_ID.
6423 (tinfo_decl_id, tinfo_var_id): Remove.
6424 (get_typeid_1): Remove.
6425 * rtti.c
6426 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
6427 (typeid_ok_p): New function.
6428 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
6429 (get_tinfo_decl): Remove old abi documentation.
6430 (tinfo_from_decl): Remove.
6431 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
6432 (get_typeid_1): Remove.
6433 (get_base_offset): Remove.
6434 (synthesize_tinfo_var): Absorb get_base_offset.
6435 (create_real_tinfo_var): Don't use tinfo_decl_id.
6436
18fee3ee
GS
64372001-07-23 Graham Stott <grahams@redhat.com>
6438
d30d6e7a 6439 * cp/class.c (type_requires_array_cookie): Fix use of uninitialized
18fee3ee
GS
6440 variable has_two_argument_delete_p.
6441
c4372ef4
NS
64422001-07-21 Nathan Sidwell <nathan@codesourcery.com>
6443
6444 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
6445 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
6446 (CPTI_INDEX_IDENTIFIER): Remove.
6447 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
6448 (delta2_identifier): Remove.
6449 (index_identifier): Remove.
6450 (pfn_or_delta2_identifier): Remove.
6451 (flag_vtable_thunks): Remove.
6452 (VTABLE_DELTA2_NAME): Remove.
6453 (VTABLE_INDEX_NAME): Remove.
6454 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
6455 (vfunc_ptr_type_node): Adjust.
6456 (VTABLE_NAME_PREFIX): Adjust.
6457 (build_vfn_ref): Lose first parameter.
6458 (fixup_all_virtual_upcast_offsets): Remove.
6459 * decl.c (initialize_predefined_identifiers): Remove
6460 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
6461 (init_decl_processing): Remove no-vtable-thunk code.
6462 * decl2.c (flag_vtable_thunks): Remove.
6463 (mark_vtable_entries): Remove no-vtable-thunk code.
6464 * error.c (dump_decl): Remove no-vtable-thunk code.
6465 (dump_expr): Adjust ptr to member function code.
6466 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
6467 code.
6468 * rtti.c (build_headof): Remove no-vtable-thunk code.
6469 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
6470 * search.c (get_base_distance): Remove expand_upcast_fixups case.
6471 (virtual_context) Remove.
6472 (expand_upcast_fixups): Remove.
6473 (fixup_virtual_upcast_offsets): Remove.
6474 (fixup_all_virtual_upcast_offsets): Remove.
6475 * typeck.c (get_member_function_from_ptrfunc): Remove
6476 no-vtable-thunk code.
6477 * call.c (build_over_call): Adjust call to build_vfn_ref.
6478 * class.c (build_vfn_ref): Lose first parameter. Remove
6479 no-vtable-thunk code.
6480 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
6481 (build_vtable_entry): Remove no-vtable-thunk code.
6482
3461fba7
NS
64832001-07-20 Nathan Sidwell <nathan@codesourcery.com>
6484
6485 Remove old-abi remnants. Remove comments about old abi
838dfd8a 6486 behavior. Remove references to 'new-abi' in comments.
3461fba7
NS
6487 * cp-tree.h: Adjust comments.
6488 (vbase_offsets_in_vtable_p): Delete.
6489 (vcall_offsets_in_vtable_p): Delete.
6490 (vptrs_present_everywhere_p): Delete.
6491 (all_overridden_vfuns_in_vtables_p): Delete.
6492 (merge_primary_and_secondary_vtables_p): Delete.
6493 (TYPE_CONTAINS_VPTR_P): Adjust.
6494 (VTT_NAME_PREFIX): Remove.
6495 (CTOR_VTBL_NAME_PREFIX): Remove.
6496 (init_vbase_pointers): Remove.
6497 * class.c: Adjust coments.
6498 (build_vbase_pointer_fields): Delete.
6499 (build_vbase_pointer): Remove old-abi code.
6500 (build_secondary_vtable): Likewise.
6501 (modify_all_vtables): Likewise.
6502 (create_vtable_ptr): Likewise.
6503 (layout_class_type): Likewise.
6504 (finish_struct_1): Likewise.
6505 (finish_vtbls): Likewise.
6506 (dfs_finish_vtbls): Delete.
6507 (build_vbase_offset_vtbl_entries): Remove old-abi code.
6508 * cvt.c: Adjust comments.
6509 * decl.c: Adjust comments.
6510 * decl2.c: Adjust comments.
6511 * init.c: Adjust comments.
6512 (construct_virtual_bases): Remove old-abi code.
6513 * lang-specs.h: Remove -fno-new-abi.
6514 * mangle.c: Adjust comments.
6515 * rtti.c: Adjust comments.
6516 (get_base_offset): Remove old-abi-code.
6517 * search.c: Adjust comments.
6518 (dfs_init_vbase_pointers): Remove.
6519 (dfs_vtable_path_unmark): Remove.
6520 (init_vbase_pointers): Remove.
6521 * semantics.c: Adjust comments.
6522 (emit_associated_thunks): Remove old-abi code.
6523 * typeck.c: Adjust comments.
6524
1c432a87
DB
65252001-07-20 Daniel Berlin <dan@cgsoftware.com>
6526
6527 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
6528 params.h.
6529
b7076960
MM
65302001-07-19 Mark Mitchell <mark@codesourcery.com>
6531
6532 * class.c (finish_struct_anon): Forbid nested classes.
6533
2b85879e
NB
65342001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
6535
6536 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
6537 * optimize.c: Include debug.h.
6538 (maybe_clone_body): Use debug hook.
6539 * semantics.c: Include debug.h.
6540 (expand_body): Use debug hook.
6541
c60e94a7
NB
65422001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
6543
6544 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
6545
dbc957f1
MM
65462001-07-18 Mark Mitchell <mark@codesourcery.com>
6547
6548 * class.c (type_requires_array_cookie): New function.
6549 (check_methods): Don't try to figure out whether the type needs a
6550 cookie here.
6551 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
6552 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
6553 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
6554 * pt.c (instantiate_class_template): Don't set
6555 TYPE_VEC_DELETE_TAKES_SIZE.
6556 * NEWS: Document ABI changes from GCC 3.0.
57cb6d52 6557
7ba0b0f7 65582001-07-18 Xavier Delacour <xavier@fmaudio.net>,
749ced52 6559 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7ba0b0f7
XD
6560
6561 * NEWS (Changes in GCC 3.0): Fix typo.
6562
59387d2e
JM
65632001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
6564
6565 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
6566 which attributes are to be attached, and a flags argument. Update
6567 call to decl_attributes.
6568 (grokfield): Update call to decl_attributes.
6569 * class.c (finish_struct): Update call to cplus_decl_attributes.
6570 * cp-tree.h (cplus_decl_attributes): Update prototype.
6571 * decl.c (start_decl, grokdeclarator, start_function): Update
6572 calls to decl_attributes and cplus_decl_attributes.
6573 * friend.c (do_friend): Update call to cplus_decl_attributes.
6574 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
6575
7ed47c04
MM
65762001-07-12 Mark Mitchell <mark@codesourcery.com>
6577
6578 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
6579 for `register' variables with an asm-specification.
6580
40b18c0a
MM
65812001-07-11 Mark Mitchell <mark@codesourcery.com>
6582
6583 * semantics.c (finish_asm_stmt): Mark the output operands
6584 to an asm addressable, if necessary.
6585
517c3b80
BE
65862001-07-11 Ben Elliston <bje@redhat.com>
6587
219670f1
BE
6588 * Revert this change -- there is a subtle bug.
6589
517c3b80
BE
6590 PR c++/80
6591 * decl.c (finish_enum): New "attributes" argument; pass it to
6592 cplus_decl_attributes. Use a narrower type if the enum is packed.
6593 * cp-tree.h (finish_enum): Adjust prototype.
6594 * parse.y (enum_head): New non-terminal.
6595 (structsp): Use it. Enums now may be preceded or followed by
6596 optional attributes -- pass their chained tree to finish_enum().
6597 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
6598
2ba9c47e
MM
65992001-07-10 Mark Mitchell <mark@codesourcery.com>
6600
6601 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
6602 variables.
6603
35241192
JM
66042001-07-10 Jason Merrill <jason_merrill@redhat.com>
6605
6606 * semantics.c (cp_expand_stmt): Fix for null
6607 current_function_return_value.
6608
07167a18
JM
66092001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
6610
6611 * call.c (build_op_delete_call): Initialize fn.
6612 (convert_like_real): Delete conditional.
6613 (joust): Initialize *w and *l.
6614 * class.c: Add prototype for binfo_ctor_vtable.
6615 (get_primary_binfo): Initialize result.
6616 * init.c (build_java_class_ref): Initialize name.
ae818d3b 6617
35241192
JM
66182001-07-09 Erik Rozendaal <dlr@acm.org>
6619
ae818d3b
ER
6620 * typeck.c (unary_complex_lvalue): Do not duplicate the
6621 argument to modify, pre-, or post-increment when used as an
6622 lvalue and when the argument has side-effects.
6623
12a68f1f
JM
66242001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6625
6626 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
6627 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
6628 cplus_decl_attributes even if attrs is NULL.
6629 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
6630
f7a4cec0
JM
66312001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6632
6633 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
6634 calls to decl_attributes.
6635
c80106a4
IR
66362001-07-06 Ira Ruben <ira@apple.com>
6637
ae818d3b 6638 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
c80106a4
IR
6639 be DECL_TEMPLATE_RESULT.
6640
dac65501
KL
66412001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6642
6643 * cp-tree.h (copy_template_template_parm): Rename to ...
6644 (bind_template_template_parm): ... here.
6645 * tree.c (copy_template_template_parm): Rename to ...
6646 (bind_template_template_parm): ... here. Remove the case when
6647 NEWARGS is NULL_TREE.
6648 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
6649 BOUND_TEMPLATE_TEMPLATE_PARM.
6650 * pt.c (lookup_template_class): Adjust.
6651
01f9e964
JM
66522001-07-05 Jason Merrill <jason_merrill@redhat.com>
6653
6654 * cvt.c (convert_lvalue): New fn.
6655 * cp-tree.h: Declare it.
6656 * method.c (do_build_assign_ref): Use it.
6657 (do_build_copy_constructor): Convert parm to base types
6658 before calling base constructors.
6659
6660 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
6661 DECL_USER_ALIGN. Check flag_elide_constructors instead of
6662 optimize.
6663 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
6664
6be77748
NS
66652001-07-02 Nathan Sidwell <nathan@codesourcery.com>
6666
6667 * optimize.c (optimize_inline_calls): New function, broken out
6668 of ...
6669 (optimize_function): ... here. Call it. Don't inline if it is
6670 a thunk.
6671 (dump_function): Print name of dump flag causing this dump.
6672 * semantics.c (expand_body): Move thunk inline check to
6673 optimize_function.
6674
8d8e52be
JM
66752001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
6676
6677 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
6678 (comptypes): Use target.comp_type_attributes.
6679
5a0db193
NS
66802001-06-29 Nathan Sidwell <nathan@codesourcery.com>
6681
6682 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
6683
46f018e1
GDR
66842001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6685
6686 * error.c (lang_print_error_function): Add a `diagnostic_context *'
6687 parameter. Tweak.
6688
501990bb
NB
66892001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
6690
6691 * decl2.c (import_export_class): Update.
6692
f68fc4db
GDR
66932001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
6694
6695 * error.c (init_error): Adjust settings.
6696
9596ddd6
GDR
66972001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
6698
6699 * error.c (init_error): Adjust settings.
6700
c93586fa
RS
67012001-06-19 Richard Sandiford <rsandifo@redhat.com>
6702
6703 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
6704 return pointers to data members by reference rather than by value.
6705
0d97bf4c
JM
67062001-06-18 Jason Merrill <jason_merrill@redhat.com>
6707
6708 Implement the Named Return Value optimization.
6709 * cp-tree.h (struct cp_language_function): Add x_return_value.
6710 (current_function_return_value): Now a macro.
6711 * decl.c: Don't define it.
6712 (define_label, finish_case_label): Don't clear it.
6713 (init_decl_processing): Don't register it with GC.
6714 * semantics.c (genrtl_finish_function): Don't check it for
6715 no_return_label. Copy the RTL from the return value to
6716 current_function_return_value and walk, calling...
6717 (nullify_returns_r): ...this new fn.
6718 * typeck.c (check_return_expr): Set current_function_return_value.
6719
13de7ec4
JM
67202001-06-15 Jason Merrill <jason_merrill@redhat.com>
6721
6722 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
6723 sharing a ctor vtable with. Merge code for cases 1 and 2.
6724 (binfo_ctor_vtable): New fn.
6725 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
6726
3ea099f1
JM
67272001-06-14 Jason Merrill <jason_merrill@redhat.com>
6728
6729 * class.c (dfs_find_final_overrider): Fix logic.
6730
6731 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
6732 virtual thunk instead of non-virtual.
6733 (get_matching_virtual): Uncomment.
6734
6735 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
6736 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
6737 PARM, not ARG.
6738
87326ba8
NS
67392001-06-14 Nathan Sidwell <nathan@codesourcery.com>
6740
6741 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
6742 we've not emerged from the hierarchy of RTTI_BINFO on reaching
6743 a non-virtual base.
6744
e065a36e
MM
67452001-06-13 Mark Mitchell <mark@codesourcery.com>
6746
6747 * NEWS: Update release number.
6748
623fe76a
NS
67492001-06-12 Nathan Sidwell <nathan@codesourcery.com>
6750
6751 PR c++/3130, c++/3131, c++/3132
6752 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
6753 * class.c (force_canonical_binfo_r): Move
6754 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
6755 virtual bases unless they're primary and what they're primary
6756 too has been moved.
6757 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
6758 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
6759 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
6760 derived binfo.
6761 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
6762 (layout_nonempty_base_or_field): Add most derived type
6763 parameter. Adjust.
6764 (layout_empty_base): Likewise.
6765 (build_base_field): Likewise.
6766 (build_base_fields): Likewise.
6767 (propagate_binfo_offsets): Add most derived type
6768 parameter. Skip non canonical virtual bases too.
6769 (dfs_set_offset_for_unshared_vbases): Don't skip primary
6770 bases. Do skip canonical bases.
6771 (layout_virtual_bases): Adjust.
6772 (layout_class_type): Adjust.
6773 (dfs_get_primary_binfo): Build list of virtual primary base
6774 candidates.
6775 (get_primary_binfo): Check that the shared virtual primary
6776 base candidate was found first.
6777 (accumulate_vtbl_inits): Don't do anything for non-vptr
6778 containing binfos. For case 1 primary virtual bases, keep
6779 checking that we've not emerged from the hierarchy of RTTI_BINFO.
6780
7bdcf888
NS
67812001-06-12 Nathan Sidwell <nathan@codesourcery.com>
6782
6783 PR c++/3089
6784 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
6785 hierarchy looking for primary bases for a ctor
6786 vtable. Recursively call oneself, if we meet our primary via
6787 this route and haven't met it yet via inheritance graph order.
6788
25b5b465
MM
67892001-06-11 Mark Mitchell <mark@codesourcery.com>
6790
6791 * lang-options.h: Emit documentation for -fno-honor-std, not
6792 -fhonor-std.
6793
eb2d0614
AO
67942001-06-10 Alexandre Oliva <aoliva@redhat.com>
6795
6796 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
6797 Don't clobber delta.
6798 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
6799
2a2b2d43
GDR
68002001-06-10 Mark Mitchell <mark@codesourcery.com>
6801 Gabriel Dos Reis <gdr@codesourcery.com>
6802
6803 * Make-lang.in (cp/call.o): Depend on diagnostic.h
6804 (cp/typeck.o): Depend on diagnostic.h
6805 (cp/typeck2.o): Depend on diagnostic.h
07167a18 6806 (cp/repo.o): Depend on dignostic.h
2a2b2d43
GDR
6807 * typeck.c: #include diagnostic.h
6808 (convert_for_initialization): Remove extern declaration for
6809 warningcount and errorcount.
6810
6811 * call.c: #include diagnostic.h
6812 (convert_like_real): Remove extern declaration for warnincount and
07167a18 6813 errorcount.
2a2b2d43
GDR
6814
6815 * repo.c: #include diagnostic.h
6816 * typeck2.c: #include diagnostic.h
6817
06d5e633
NS
68182001-06-08 Nathan Sidwell <nathan@codesourcery.com>
6819
6820 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
6821 in previous change.
6822
9ac1bd2e
NS
68232001-06-08 Nathan Sidwell <nathan@codesourcery.com>
6824
6825 PR c++/2929
6826 * friend.c (do_friend): Use push_decl_namespace for classes at
6827 namespace scope.
6828
85a9a0a2
NS
68292001-06-08 Nathan Sidwell <nathan@codesourcery.com>
6830 Jason Merrill <jason_merrill@redhat.com>
6831
6832 PR c++/3061
6833 * class.c (build_secondary_vtable): Use assert, rather than an error
6834 message.
6835 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
6836 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
6837 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
6838 Don't set BINFO_VTABLE for a primary virtual base.
6839
daa8df65
MM
68402001-06-07 Mark Mitchell <mark@codesourcery.com>
6841
6842 * decl.c (duplicate_decls): Update source position information
6843 when a template function is defined.
6844
37344b9b
PE
68452001-06-07 Phil Edwards <pme@sources.redhat.com>
6846
6847 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
6848
fcebb2dd
NS
68492001-06-07 Nathan Sidwell <nathan@codesourcery.com>
6850
6851 PR c++/2914
6852 * decl.c (pushtag): Don't push into a complete type's scope.
6853
d0cd8b44
JM
68542001-06-06 Jason Merrill <jason_merrill@redhat.com>
6855
6856 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
6857 (struct lang_decl_flags): Lose generate_with_vtable_p.
6858 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
6859 * class.c (copy_virtuals): Adjust.
6860 * decl2.c (mark_vtable_entries): Adjust.
6861 * method.c (make_thunk, build_vtable_entry): Adjust.
6862 * class.c (update_vtable_entry_for_fn): Only look as far as the
6863 first defining class.
07167a18 6864 (build_vtbl_initializer): Put nothing in the slot for a function only
d0cd8b44 6865 defined in a lost primary virtual base.
07167a18 6866 (add_vcall_offset_vtbl_entries_1): Use the same code for
d0cd8b44
JM
6867 the lost primary case and the normal case.
6868 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
6869 (get_vfield_offset, get_derived_offset): Lose.
6870 (dfs_find_final_overrider): Use look_for_overrides_here.
6871 (get_matching_virtual): New fn.
6872 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
6873 not BV_VCALL_INDEX.
6874 * search.c (look_for_overrides_here): Split out from...
6875 (look_for_overrides_r): Here.
6876
6877 * class.c (find_final_overrider): Return error_mark_node on error.
6878
6879 * decl2.c (key_method): #if 0 accidental change.
6880
acf97e0b
JDA
68812001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6882
6883 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
6884 (build_over_call): Likewise.
6885 * decl.c (grokparms): Likewise.
6886 * pt.c (tsubst_decl): Likewise.
6887 * typeck.c (convert_arguments): Likewise.
6888
7e9abee9
MM
68892001-06-05 Mark Mitchell <mark@codesourcery.com>
6890
47ee8904
MM
6891 * semantics.c (begin_class_definition): Robustify.
6892
7e9abee9
MM
6893 * pt.c (instantiate_decl): Tell the repository code about the
6894 clones, not the cloned functions.
6895 * repo.c (repo_template_used): Explicitly instantiate the cloned
6896 function, not the clones.
6897
bea09693
NS
68982001-06-05 Nathan Sidwell <nathan@codesourcery.com>
6899
6900 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
6901 ICS_BAD_FLAG on created conversion.
6902 (compare_ics): Break out rank.
6903
8f7550ca
NS
69042001-06-05 Nathan Sidwell <nathan@codesourcery.com>
6905
6906 * decl.c (xref_tag): Remove extraneous %s on dependent name
6907 lookup warning.
6908
442e01b6
NS
69092001-06-05 Nathan Sidwell <nathan@codesourcery.com>
6910
6911 * class.c (layout_vtable_decl): Fix off by one error on
6912 build_index_type.
6913 (build_vtt): Likewise.
6914 (build_ctor_vtbl_group): Likewise.
6915
b7442fb5
NS
69162001-06-05 Nathan Sidwell <nathan@codesourcery.com>
6917
6918 * class.c (maybe_indent_hierarchy): New function.
6919 (dump_class_hierarchy_r): Add flags. Dump extra binfo
6920 information, if enabled. Use maybe_indent_hierarchy. Adjust
6921 output format.
6922 (dump_class_hierarchy): Adjust prototype. Adjust output format.
6923 (dump_array, dump_vtable, dump_vtt): New functions.
6924 (finish_struct_1): Adjust hierarchy dumping.
6925 (initialize_vtable): Call dump_vtable.
6926 (build_vtt): Call dump_vtt.
6927 (build_ctor_vtbl_group): Call dump_vtable.
6928 * decl2.c (flag_dump_class_layout): Remove.
6929 (cxx_decode_option): Remove dump translation unit
6930 and dump class hierarchy check. Call dump_switch_p.
6931 (finish_file): Adjust dumping.
6932 (dump.c): Only dump base classes if not TDF_SLIM.
6933 Only dump namespace members if not TDF_SLIM.
6934 * optimize.c (dump_function): New function.
6935 (optimize_function): Call dump_function.
6936 * semantics.c (expand_body): Use dump_enabled_p.
6937
e5410b32
NS
69382001-06-01 Nathan Sidwell <nathan@codesourcery.com>
6939
6940 PR g++/2936
6941 Part missed from first commit
6942 * decl2.c (finish_anon_union): Copy context.
6943
e97c9488
NS
69442001-05-30 Nathan Sidwell <nathan@codesourcery.com>
6945
6946 PR g++/2936
e97c9488
NS
6947 * optimize.c (remap_decl): Remap anonymous aggregate members too.
6948
87d9ac49
NS
69492001-05-26 Nathan Sidwell <nathan@codesourcery.com>
6950
6951 PR g++/2823
6952 * semantics.c (expand_body): Don't optimize thunks.
6953
88657302
RH
69542001-05-25 Sam TH <sam@uchicago.edu>
6955
6956 * cp-tree.h lex.h: Fix header include guards.
6957
69582001-05-25 Mark Mitchell <mark@codesourcery.com>
10841285
MM
6959
6960 * decl.c (init_decl_processing): Tweak.
6961
0b1161fc
MM
69622001-05-24 Mark Mitchell <mark@codesourcery.com>
6963
6964 * decl.c (duplicate_decls): Tidy.
6965 (init_decl_processing): Always set flag_no_builtin.
6966
6f56d925
NS
69672001-05-24 Nathan Sidwell <nathan@codesourcery.com>
6968
6969 PR c++/2184
6970 * decl2.c (do_local_using_decl): Push the decls, even in a
6971 template.
6972
39e0656d
MM
69732001-05-22 Mark Mitchell <mark@codesourcery.com>
6974
6975 * optimize.c (initialize_inlined_parameters): Don't set
6976 TREE_READONLY for a VAR_DECL taking the place of an inlined
6977 PARM_DECL.
6978
0401d499
JM
69792001-05-22 Jason Merrill <jason_merrill@redhat.com>
6980
6981 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
6982 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
6983 attribute.
6984
14fc3426
JM
69852001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
6986
6987 * parse.y: Refer to compound literals as such, not as
6988 constructor-expressions.
6989
3f41ffd8
MM
69902001-05-21 Mark Mitchell <mark@codesourcery.com>
6991
6992 * call.c (build_op_delete_call): Ignore exception-specifications
6993 when looking for matching delete operators.
6994 * init.c (build_new_1): Compute whether or not the allocation
6995 function used is a placement allocation function or not, and
6996 communicate this information to build_op_delete_call.
6997
1a6025b4
JM
69982001-05-21 Jason Merrill <jason_merrill@redhat.com>
6999
90ecce3e
JM
7000 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
7001 (build_vtbl_ref): Adjust.
7002 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
7003 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
7004 Re-add vtable-gc.
7005 (unsupported_options): Correspondingly.
7006
7007 * decl2.c (maybe_make_one_only): Check flag_weak, not
7008 supports_one_only().
7009
1a6025b4
JM
7010 * cp-tree.def (START_CATCH_STMT): Lose.
7011 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
7012 * tree.c (cp_statement_code_p): Don't case it.
7013 * semantics.c (cp_expand_stmt): Likewise.
7014 * cp-tree.h (START_CATCH_TYPE): Lose.
7015 (HANDLER_TYPE): New.
7016 * except.c (expand_start_catch_block): Don't start any blocks.
7017 Return the type.
7018 (expand_end_catch_block): Don't end any blocks.
7019 * parse.y (handler): Don't pass anything from finish_handler_parms
7020 to finish_handler.
7021 * pt.c (tsubst_expr): Likewise.
7022 * semantics.c (begin_handler): Call note_level_for_catch here.
7023 (finish_handler_parms): Don't return anything.
7024 (genrtl_catch_block, begin_catch_block): Lose.
7025 (genrtl_handler): Call expand_start_catch here.
7026
70272001-05-18 Jason Merrill <jason_merrill@redhat.com>
7028
7029 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
7030 (get_vtable_decl, build_vtt): Not here.
7031
d30a825a
NS
70322001-05-20 Nathan Sidwell <nathan@codesourcery.com>
7033
7034 PR c++/2781
7035 * optimize.c (update_cloned_parm): Copy addressability and other
7036 flags.
7037
3b82c249
KL
70382001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7039
7040 * pt.c (determine_specialization): Ignore artificial functions.
7041
2a967f3d
NB
70422001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
7043
7044 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
7045 (C_RID_CODE): Remove.
7046 * lex.c (cxx_init_options): Call set_identifier_size. Update.
7047 (init_parse): Don't do it here.
7048
f99df08e
DN
70492001-05-18 Diego Novillo <dnovillo@redhat.com>
7050
7051 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
7052 function declaration to avoid stripping the symbol's attributes.
7053
2b0cbc5d
NS
70542001-05-18 Nathan Sidwell <nathan@codesourcery.com>
7055
7056 * decl.c (pushdecl): Adjust error string.
7057 (xref_tag): Adjust friend class injection warning. Remove the
7058 inherited name from the class shadowed scope.
7059
e6855a2d
MM
70602001-05-17 Mark Mitchell <mark@codesourcery.com>
7061
7062 * except.c (cp_protect_cleanup_actions): New function.
07167a18 7063 (init_exception_processing): Don't set protect_cleanup_actions
e6855a2d
MM
7064 here. Do set lang_protect_cleanup_actions.
7065
cc469ee9
NS
70662001-05-16 Nathan Sidwell <nathan@codesourcery.com>
7067
7068 * spew.c (read_token): Call yyerror on all unexpected tokens.
7069
3f0a9b35
NS
70702001-05-16 Nathan Sidwell <nathan@codesourcery.com>
7071
7072 * init.c (member_init_ok_or_else): Take a tree rather than
7073 string for name.
7074 (expand_member_init): Adjust.
7075
8d0cb60d
NC
70762001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
7077
7078 * decl.c (duplicate_decls): Suppress warning about duplicate
749ced52 7079 decls if the first decl is a friend.
8d0cb60d 7080
1f730ff7
ZW
70812001-05-12 Zack Weinberg <zackw@stanford.edu>
7082
7083 * except.c (choose_personality_routine): Export. Add
7084 explanatory comment. Take an enum languages, not a boolean.
7085 (initialize_handler_parm): Adjust to match.
7086 * cp-tree.h: Prototype choose_personality_routine.
7087 * lex.c (handle_pragma_java_exceptions): New function.
7088 (init_cp_pragma): Register #pragma GCC java_exceptions.
7089
90e0c410
NB
70902001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
7091
7092 * method.c (build_mangled_C99_name): Remove unused prototype.
7093
cb7fdde2
AO
70942001-05-12 Alexandre Oliva <aoliva@redhat.com>
7095
7096 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
7097 * typeck.c (get_member_function_from_ptrfunc,
7098 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
7099 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
18ae7f63
AO
7100
7101 Reverted Geoff Keating's 2001-05-03's patch.
7102
401deb20
IR
71032001-05-11 Ira Ruben <ira@apple.com>
7104
7105 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
7106
8e93d446
NB
71072001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7108
7109 * cp-tree.h (finish_label_expr, lookup_label): Delete.
7110 * parse.y: Update for '&&'; don't issue warning here.
7111 * semantics.c (finish_label_expr): Delete.
7112
5cdba4ff
MM
71132001-05-07 Mark Mitchell <mark@codesourcery.com>
7114
7115 * splay-tree.h (splay_tree_max): New function.
7116 (splay_tree_min): Likewise.
7117
8e9eff6b
GK
71182001-05-03 Geoffrey Keating <geoffk@redhat.com>
7119
7120 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
7121 (pfn_vflag_identifier): Define.
7122 Update comment about layout of pointer functions.
7123 (build_ptrmemfunc1): Update prototype.
7124 (expand_ptrmemfunc_cst): Update prototype.
7125 * decl.c (initialize_predefined_identifiers): Initialize
7126 pfn_vflag_identifier.
7127 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
7128 an extra field to the type.
07167a18 7129 * expr.c (cplus_expand_constant): Pass 'flag' between
8e9eff6b
GK
7130 expand_ptrmemfunc_cst and build_ptrmemfunc1.
7131 * typeck.c (get_member_function_from_ptrfunc): When
7132 FUNCTION_BOUNDARY < 16, look at additional field to determine
7133 if a pointer-to-member is a real pointer or a vtable offset.
7134 (build_ptrmemfunc1): Add new parameter to contain extra field.
7135 (build_ptrmemfunc): Pass the extra field around.
7136 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
7137 (pfn_from_ptrmemfunc): Ignore the extra field.
7138
acc72c37
MM
71392001-05-03 Mark Mitchell <mark@codesourcery.com>
7140
7141 * cp-tree.h (flag_inline_trees): Update documentation.
7142 * decl.c (init_decl_processing): Adjust handling of
7143 flag_inline_functions and flag_inline_trees to support -O3.
7144 (grokfndecl): Set DECL_INLINE on all functions if that's what
7145 the user requested.
7146 (save_function_data): Clear DECL_INLINE in
7147 current_function_cannot_inline is non-NULL.
7148 * decl2.c (flag_inline_trees): Update documentation.
7149
5158d7ee
NS
71502001-05-03 Nathan Sidwell <nathan@codesourcery.com>
7151
7152 * dump.c (cp_dump_tree, USING_STMT case): New case.
7153 * tree.c (cp_statement_code_p): Add USING_STMT.
7154 * decl2.c (do_using_directive): Add the using directive statement.
7155
7156 * tree.c (walk_tree): Reformat an if block.
7157
80f5bb34
MM
71582001-05-02 Mark Mitchell <mark@codesourcery.com>
7159
7160 * decl.c (compute_array_index_type): Don't try to do anything with
7161 the indices when processing a template.
7162
3e411c3f
KG
71632001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7164
7165 * call.c: NULL_PTR -> NULL.
7166 * class.c: Likewise.
7167 * cvt.c: Likewise.
7168 * decl.c: Likewise.
7169 * decl2.c: Likewise.
7170 * except.c: Likewise.
7171 * init.c: Likewise.
7172 * rtti.c: Likewise.
7173 * search.c: Likewise.
7174 * tree.c: Likewise.
7175 * typeck.c: Likewise.
7176 * typeck2.c: Likewise.
7177
46188dca
MM
71782001-05-02 Mark Mitchell <mark@codesourcery.com>
7179
7180 * decl2.c (do_using_directive): Revert previous patch.
7181
9da99f7d
NS
71822001-05-01 Nathan Sidwell <nathan@codesourcery.com>
7183
7184 * cp-tree.def (USING_STMT): New statement node.
7185 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
7186 * decl2.c (do_using_directive): Add USING_STMT to statement
7187 tree. Don't emit errors when processing template decl.
7188 * pt.c (tsubst_expr, USING_STMT case): New case.
7189 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
7190
4b48a93e
NS
71912001-05-01 Nathan Sidwell <nathan@codesourcery.com>
7192
7193 * call.c (build_new_op): Convert args from reference here.
7194 (build_conditional_expr): Don't convert here.
7195
1bcea8d7
NS
71962001-05-01 Nathan Sidwell <nathan@codesourcery.com>
7197
7198 * spew.c (last_token_id): New static variable.
7199 (read_token): Set it here.
7200 (yyerror): Use it here.
7201
d72040f5
RH
72022001-04-30 Richard Henderson <rth@redhat.com>
7203
749ced52 7204 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
d72040f5
RH
7205 * decl.c: Likewise.
7206
c3aac512
MM
72072001-04-30 Mark Mitchell <mark@codesourcery.com>
7208
7209 * gxxint.texi: Remove.
7210 * Make-lang.in: Remove all traces of gxxint.texi.
7211
5fd893d5
MM
7212Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
7213
7214 * decl2.c (start_static_initialization_or_destruction): Correct
7215 logic to handle the -fno-use-cxa-atexit case.
7216
d60e5448
MM
72172001-04-30 Mark Mitchell <mark@codesourcery.com>
7218
7219 * optimize.c (update_cloned_parm): New function.
7220 (maybe_clone_body): Use it. Update the `this' parameter too.
7221
7200764f
JM
72222001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
7223
7224 * decl2.c (unsupported_options): Add new-abi.
7225 * lang-options.h: Remove no longer supported options.
7226
2d46ec83
NS
72272001-04-27 Nathan Sidwell <nathan@codesourcery.com>
7228
7229 * except.c (can_convert_eh): Don't check template parms,
7230 typename types etc.
7231
02a1a68c
NS
72322001-04-27 Nathan Sidwell <nathan@codesourcery.com>
7233
7234 * optimize.c (maybe_clone_body): Copy parameter names and locations.
7235
5f6eeeb3
NS
72362001-04-27 Nathan Sidwell <nathan@codesourcery.com>
7237
7238 * cp-tree.h (adjust_clone_args): Prototype new function.
7239 * class.c (adjust_clone_args): New function.
7240 * decl.c (start_function): Call it for in charge ctors.
7241
1b28d441
MM
72422001-04-26 Mark Mitchell <mark@codesourcery.com>
7243
7244 * method.c (use_thunk): Make sure that thunks really are emitted
7245 when requested.
7246
0576ec13
NS
72472001-04-26 Nathan Sidwell <nathan@codesourcery.com>
7248
7249 * mangle.c (write_chars): New macro.
7250 (hwint_to_ascii): New function
7251 (write_number): Use it.
7252 (write_integer_cst): Deal with really big numbers.
7253
b96ada87
MM
72542001-04-25 Mark Mitchell <mark@codesourcery.com>
7255
7256 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
7257 the clone.
7258
6bda7a5e
NS
72592001-04-25 Nathan Sidwell <nathan@codesourcery.com>
7260
7261 * decl.c (grokdeclarator): Set context of namespace scope
7262 TYPE_DECLS.
7263
11fe225a
ZW
72642001-04-24 Zack Weinberg <zackw@stanford.edu>
7265
7266 * cp/optimize.c: Include hashtab.h.
7267 (struct inline_data): Add tree_pruner.
7268 (expand_call_inline, expand_calls_inline): Use it when calling
7269 walk_tree.
7270 (optimize_function): Initialize and free tree_pruner.
7271
0ba8a114
NS
72722001-04-24 Nathan Sidwell <nathan@codesourcery.com>
7273
7274 Lazy __FUNCTION__ generation.
7275 * cp-tree.def (FUNCTION_NAME): Remove.
7276 * cp-tree.h (function_name_declared_p): Remove.
7277 (cp_fname_init): Prototype.
7278 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
7279 don't call declare_function_name. Call start_fname_decls.
7280 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
7281 clobber the line number.
7282 (cp_fname_init): New function.
7283 (start_function): Call start_fname_decls.
7284 (finish_function): Call finish_fname_decls.
7285 * lex.c (reswords): Add slots for __FUNCTION__ et al.
7286 (rid_to_yy): Add mappings for __FUNCTION__ et al.
7287 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
7288 * parse.y (VAR_FUNC_NAME): New token.
7289 (primary): Add VAR_FUNC_NAME.
7290 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
7291 generation.
7292 (tsubst, FUNCTION_NAME case): Remove.
7293 (tsubst_copy, FUNCTION_NAME case): Remove.
7294 (tsubst_expr, DECL_STMT case): Be careful with a
7295 DECL_PRETTY_FUNCTION_P.
7296 (instantiate_decl): Remove function_name_declared_p.
7297 * semantics.c (begin_compound_statement): Don't call
7298 declare_function_name here.
7299 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
7300 (finish_translation_unit): Call finish_fname_decls.
7301 (expand_body): Remove function_name_declared_p.
7302 * typeck2.c (digest_init): Allow any ERROR_MARK.
7303
dfbb4f34
NS
73042001-04-24 Nathan Sidwell <nathan@codesourcery.com>
7305
7306 * pt.c (tsubst_decl): Use VOID_TYPE_P.
7307 * semantics.c: Fix some typos.
7308
e2584c52
PE
73092001-04-23 Phil Edwards <pme@sources.redhat.com>
7310
7311 * cp/decl2.c (flag_honor_std): Always initialize to 1.
7312
d4c3ec27
KG
73132001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7314
7315 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
7316
2ac8a0f9
JM
73172001-04-23 Jason Merrill <jason_merrill@redhat.com>
7318
7319 * except.c (build_throw): Wrap the initialization of the exception
7320 object in a MUST_NOT_THROW_EXPR.
7321 (do_free_exception): #if 0.
7322
968b956a
MM
73232001-04-20 Mark Mitchell <mark@codesourcery.com>
7324
7325 * cp-tree.h (finish_enum): Change prototype.
7326 * decl.c (finish_enum): Reorganize.
7327 * parse.y (structsp): Adjust calls to finish_enum.
11fe225a 7328
aa1826e2
NS
73292001-04-20 Nathan Sidwell <nathan@codesourcery.com>
7330
7331 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
7332 't' case.
7333
06d9f09f
NS
73342001-04-20 Nathan Sidwell <nathan@codesourcery.com>
7335
7336 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
7337 (layout_empty_base): Return at end flag.
7338 (build_base_field): Likewise.
7339 (build_base_fields): Likewise.
7340 (layout_virtual_bases): Don't add 1 to eoc value.
7341 (end_of_class): Use full size for empty bases.
7342 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
7343 empty bases. Don't add 1 to eoc value. Only add trailing padding
7344 if we're an empty class with no empty bases.
7345 (dump_class_hierarchy): Dump size and alignment.
7346
351a0f00
JJ
73472001-04-20 Jakub Jelinek <jakub@redhat.com>
7348
7349 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
7350 ICS_BAD_FLAG.
7351
881cae05
JJ
73522001-04-20 Jakub Jelinek <jakub@redhat.com>
7353
7354 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
7355 is found, look first if name does not match the structure name.
7356
5d2ed28c
MM
73572001-04-19 Mark Mitchell <mark@codesourcery.com>
7358
7359 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
7360 set.
7361 (SET_DECL_LANGUAGE): New macro.
7362 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
7363 (pushdecl): Likewise.
7364 (build_library_fn_1): Likewise.
7365 (build_cp_library_fn): Likewise.
7366 (grokfndecl): Likewise.
7367 (grokvardecl): Mark `extern "C"' variables as having C linkage.
7368 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
7369 * lex.c (retrofit_lang_decl): Likewise.
7370 * mangle.c (mangle_decl_string): Don't mangle the names of
7371 variables declared with C language linkage.
7372 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
11fe225a 7373
41251458
JDA
73742001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
7375
7376 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
7377 flag_access_control from uninitialized storage.
7378
1b4a93f7
MM
73792001-04-15 Mark Mitchell <mark@codesourcery.com>
7380
24272dc0
MM
7381 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
7382 * mangle.c (write_pointer_to_member_type): Fix mangling of
7383 pointers to cv-qualified member function types.
7384
1b4a93f7
MM
7385 * init.c (build_delete): Create a SAVE_EXPR for the address if
7386 we're going to use it more than once.
7387
530ec96d
MM
73882001-04-13 Mark Mitchell <mark@codesourcery.com>
7389
7390 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
7391 (expand_ptremfunc_cst): Change prototype.
7392 (delta2_from_ptrmemfunc): Remove.
7393 * expr.c (cplus_expand_constant): Adjust call to
7394 expand_ptrmemfunc_cst.
7395 * typeck.c (build_ptrmemfunc1): Simplify.
7396 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
7397 results in a constant.
7398 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
7399 (delta2_from_ptrmemfunc): Remove.
7400 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
11fe225a 7401
ee8fc32b
JM
74022001-04-12 Jason Merrill <jason_merrill@redhat.com>
7403
7404 * cp-tree.h (decl_namespace_list): New macro.
7405 (struct saved_scope): Add decl_ns_list.
7406 * decl.c (mark_saved_scope): Mark it.
7407 * decl2.c: Lose static decl_namespace_list.
7408 (init_decl2): Don't save it.
7409
48857160
KG
74102001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7411
7412 * cp-tree.h (warn_return_type, yylex): Delete redundant
7413 declarations.
11fe225a 7414
48857160
KG
7415 * decl.c (current_class_depth, global_namespace): Likewise.
7416
7417 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
7418
7419 * repo.c (flag_use_repository): Likewise.
7420
845e14ed
KG
74212001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7422
7423 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
7424 set_block, pushdecl, getdecls, gettags, init_decl_processing,
7425 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
7426 lvalue_or_else, print_lang_statistics, comp_target_types,
7427 unsigned_type, signed_type, signed_or_unsigned_type,
7428 build_function_call, mark_addressable, incomplete_type_error):
7429 Delete redundant declarations.
7430
1951a1b6
JM
74312001-04-11 Jason Merrill <jason_merrill@redhat.com>
7432
7433 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
7434 (TYPE_ANONYMOUS_P): New macro.
7435 (TAGGED_TYPE_P): New macro.
7436 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
7437 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
7438 * tree.c (no_linkage_helper): Likewise.
7439 * semantics.c (begin_class_definition): Likewise.
7440 * pt.c (convert_template_argument): Likewise.
7441 * lex.c (check_for_missing_semicolon): Likewise.
7442
0fb3018c
NS
74432001-04-12 Nathan Sidwell <nathan@codesourcery.com>
7444
7445 * class.c (dfs_unshared_virtual_bases): New function.
7446 (mark_primary_bases): Call it.
7447 (check_bases): Ignore virtual bases when determining
7448 nearly-emptiness.
7449
bbb53468
NS
74502001-04-12 Nathan Sidwell <nathan@codesourcery.com>
7451
7452 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
7453
9b7949d5
MM
74542001-04-11 Mark Mitchell <mark@codesourcery.com>
7455
7456 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
7457 cloned function to the clone.
7458
d6684bc8
KG
74592001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7460
7461 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
7462
7463 * semantics.c: Include expr.h.
7464
a2095778
NS
74652001-04-11 Nathan Sidwell <nathan@codesourcery.com>
7466
7467 * method.c (implicitly_declare_fn): Commonize code for copy ctor
7468 and assignment op. Set TREE_USED for parameter.
7469
78b45a24
MM
74702001-04-10 Mark Mitchell <mark@codesourcery.com>
7471
7472 * class.c (find_final_overrider_data): Add `candidates'.
7473 (dfs_find_final_overrider): Don't issue error messages
7474 prematurely.
7475 (find_final_overrider): Issue error messages here.
7476 (build_base_field): Don't warn about amgibuous direct bases here.
7477 (warn_about_ambiguous_direct_bases): New function.
7478 (layout_class_type): Use it.
7479
0450d74d
RH
74802001-04-10 Richard Henderson <rth@redhat.com>
7481
7482 * typeck.c (build_array_ref): Push the array reference inside
7483 COMPOUND_EXPR and COND_EXPR.
7484
79065db2
MM
74852001-04-05 Mark Mitchell <mark@codesourcery.com>
7486
7487 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
7488 * decl.c (duplicate_decls): Adjust accordingly.
7489 (maybe_commonize_var): Likewise.
7490 (grokfndecl): Likewise.
7491 (start_function): Likewise.
7492 (start_method): Likewise.
7493 * decl2.c (key_method): Likewise.
7494 (import_export_decl): Likewise.
7495 * method.c (implicitly_declare_fn): Likewise.
7496 * optimize.c (maybe_clone_body): Likewise.
11fe225a 7497
fdecbf8a
BK
74982001-04-05 Benjamin Kosnik <bkoz@redhat.com>
7499
b03eced6 7500 * lang-specs.h: Add __DEPRECATED.
fdecbf8a 7501
0b4c1646
R
7502Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
7503
7504 * search.c (get_dynamic_cast_base_type): When building a new
7505 constant, set its type to ssizetype.
7506
e59d6709
JJ
75072001-04-04 Jakub Jelinek <jakub@redhat.com>
7508
7509 * optimize.c (expand_call_inline): Only add newly inlined statements
7510 into inlined_stmts.
7511
0c918ce5
MM
75122001-04-03 Mark Mitchell <mark@codesourcery.com>
7513
7514 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
7515 (OPERATOR_FORMAT): Likewise.
7516 (OPERATOR_TYPENAME_FORMAT): Likewise.
7517 * operators.def: Remove old name-mangling information.
7518 * decl.c (grok_op_properties): Adjust accordingly.
7519 * lex.c (init_operators): Likewise.
7520 * rtti.c (get_tinfo_decl): Issue error messages about types that
7521 have variable size.
7522
92788413
MM
75232001-04-03 Mark Mitchell <mark@codesourcery.com>
7524
11fe225a 7525 * decl2.c (import_export_decl): Don't call import_export_class
92788413
MM
7526 when processing an inline member function.
7527 * semantics.c (expand_body): Call import_export_decl before
7528 emitting inline functions.
7529
52a11cbf
RH
75302001-03-28 Richard Henderson <rth@redhat.com>
7531
7532 IA-64 ABI Exception Handling:
7533 * cp-tree.def (EH_SPEC_BLOCK): New.
7534 (MUST_NOT_THROW_EXPR): New.
7535 * cp-tree.h: Update changed function declarations.
7536 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
7537 (CPTI_CALL_UNEXPECTED): New.
7538 (struct cp_language_function): Rename x_eh_spec_try_block
7539 to x_eh_spec_block.
7540 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
11fe225a 7541 * decl.c (current_binding_level): If no current function
52a11cbf
RH
7542 bindings, revert to scope_chain.
7543 (initialize_predefined_identifiers): Remove __cp_push_exception.
7544 (store_parm_decls): Use begin_eh_spec_block.
7545 (finish_function): Use finish_eh_spec_block.
7546 (mark_lang_function): Update for name changes.
7547 * decl2.c (finish_file): No mark_all_runtime_matches.
7548 * dump.c (cp_dump_tree): Handle new tree codes.
7549 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
7550 * except.c (catch_language_init, catch_language): Remove.
7551 (init_exception_processing): Don't set language code.
7552 Initialize call_unexpected_node, protect_cleanup_actions,
7553 eh_personality_libfunc, lang_eh_runtime_type.
7554 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
7555 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
7556 (prepare_eh_type): Split out type canonicalizations ...
7557 (build_eh_type_type): ... from here.
7558 (build_eh_type_type_ref): Remove.
7559 (mark_all_runtime_matches): Remove.
7560 (build_exc_ptr): New.
7561 (do_begin_catch, do_end_catch): New.
7562 (do_pop_exception): Remove.
7563 (build_terminate_handler): Remove.
7564 (choose_personality_routine): Split out language choice from ...
7565 (initialize_handler_parm): ... here.
7566 Use MUST_NOT_THROW_EXPR.
7567 (expand_start_catch_block): Use do_begin_catch. Simplify Java
7568 exception object handling.
7569 (expand_start_eh_spec, expand_end_eh_spec): Remove.
7570 (expand_exception_blocks, alloc_eh_object): Remove.
7571 (begin_eh_spec_block, finish_eh_spec_block): New.
7572 (do_allocate_exception, do_free_exception): New.
7573 (expand_throw): Merge into ...
7574 (build_throw): ... here. Update for abi.
7575 * expr.c (cplus_expand_expr): No expand_internal_throw.
7576 Handle MUST_NOT_THROW_EXPR.
7577 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
7578 * semantics.c (*) Update for except.h name changes.
7579 (genrtl_try_block): No protect_with_terminate.
7580 (genrtl_eh_spec_block): New.
7581 (genrtl_handler): Don't emit the goto here.
7582 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
7583 (genrtl_finish_function): Don't expand_exception_blocks.
7584 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
7585
826840d9
RH
75862001-03-28 Richard Henderson <rth@redhat.com>
7587
7588 * decl.c (struct named_label_list): Rename eh_region to
7589 in_try_scope, add in_catch_scope.
7590 (struct binding_level): Rename eh_region to is_try_scope,
7591 add is_catch_scope.
7592 (note_level_for_try): Rename from note_level_for_eh.
7593 (note_level_for_catch): New.
7594 (poplevel): Copy both is_try_scope and is_catch_scope to
7595 the named_label_list struct.
7596 (check_previous_goto_1): Don't check for catch block via
7597 DECL_ARTIFICIAL; use in_try_scope instead.
7598 (check_goto): Likewise.
7599 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
7600 * except.c (expand_start_catch_block): Call note_level_for_catch.
7601 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
7602
531073e7
RH
76032001-03-27 Richard Henderson <rth@redhat.com>
7604
7605 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
7606 exceptions_via_longjmp.
7607
8653a2c3
PE
76082001-03-27 Phil Edwards <pme@sources.redhat.com>
7609
7610 * pt.c (check_default_tmpl_args): Make error messages clearer.
7611
76122001-03-26 Phil Edwards <pme@sources.redhat.com>
7613
7614 * error.c: Also undefine 'A' macro used for cp_printers definition.
7615
911e6107
KG
76162001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7617
7618 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
7619
005a5cb0
MY
76202001-03-26 Mike Yang <yang@research.att.com>
7621 Mark Mitchell <mark@codesourcery.com>
7622
7623 * dump.c (dump_access): New function.
7624 (cp_dump_tree): Use it. Dump basetype information for class
7625 types.
7626
b850de4f
MM
76272001-03-26 Mark Mitchell <mark@codesourcery.com>
7628
7629 * Makefile.in (optimize.o): Depend on params.h.
7630 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
7631 (init_decl_processing): Set flag_no_inline when doing
7632 inlining-on-trees.
7633 * optimize.c: Include params.h.
7634 (struct inline_data): Improve documentation of FNS. Add
7635 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
7636 (INSNS_PER_STMT): New macro.
7637 (remap_block): Use CLONING_P.
7638 (inlinable_function_p): Don't inline big functions.
7639 (expand_call_inline): Keep track of how much inlining we've done.
7640 (optimize_function): Set FIRST_INLINED_FN.
7641 (maybe_clone_body): Set CLONING_P.
7642 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
7643 tree nodes.
7644 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
7645 rest_of_compilation. Clear DECL_RTL for local variables
7646 afterwards.
7647 (clear_decl_rtl): New function.
11fe225a 7648
788bf0e3
NS
76492001-03-26 Nathan Sidwell <nathan@codesourcery.com>
7650
7651 Implement DR 209
7652 * cp-tree.h (skip_type_access_control,
7653 reset_type_access_control): Prototype.
7654 * decl.c (grokdeclarator): Access of friends is not checked.
7655 * parse.y (component_decl_list): Reset type access control.
7656 * semantics.c (decl_type_access_control): Clear
7657 current_type_lookups.
7658 (save_type_access_control): Don't save if not deferring.
7659 (skip_type_access_control, reset_type_access_control): New
7660 functions.
7661 (begin_class_definition): Do type access control for basetypes.
7662 Start deferred access control.
7663 (finish_class_definition): Resume immediate access control if
7664 this is a local class.
7665
730e1556
KG
76662001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7667
7668 * class.c (add_method): Use memcpy/memmove, not bcopy.
7669
7670 * decl.c (duplicate_decls): Likewise.
7671
f1a0345c
JJ
76722001-03-23 Jakub Jelinek <jakub@redhat.com>
7673
7674 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
7675 not `_'.
7676
8e4ce833
JJ
76772001-03-23 Jakub Jelinek <jakub@redhat.com>
7678
7679 * decl.c (local_names): Define.
7680 (push_local_name): New.
7681 (grok_reference_init): Return init if initializing static reference
7682 variable with non-constant instead of emitting it.
7683 Move expand_static_init call to cp_finish_decl.
7684 (layout_var_decl): Call push_local_name.
7685 (maybe_commonize_var): Allow inlining functions even if they have
7686 static local variables, use comdat_linkage for them if flag_weak.
7687 (check_initializer): Call obscure_complex_init if
838dfd8a 7688 grok_reference_init returned nonzero.
8e4ce833
JJ
7689 (save_function_data): Clear x_local_names.
7690 (pop_cp_function_context): Free x_local_names.
7691 (mark_inlined_fns): Remove.
7692 (mark_lang_function): Mark x_local_names.
7693 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
7694 Mark inlined_fns as tree, remove call to mark_inlined_fns.
7695 * class.c (alter_access): Ensure DECL_ACCESS is never set if
7696 DECL_DISCRIMINATOR_P.
7697 * cp-tree.h (cp_language_function): Add x_local_names.
7698 (lang_decl_flags): Add discriminator into u2.
7699 (lang_decl_inlined_fns): Remove.
7700 (lang_decl): inlined_fns is now a TREE_VEC.
7701 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
7702 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
7703 TREE_VEC, not a custom structure.
7704 (optimize_function): Likewise.
7705 * mangle.c (discriminator_for_local_entity): Discriminate among
7706 VAR_DECL local entities.
7707 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
7708 is not valid.
7709
60c87482
BM
77102001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
7711
7712 Add support for Java interface method calls.
7713 * cp-tree.h (struct lang_type): Add java_interface flag.
7714 (TYPE_JAVA_INTERFACE): New macro.
7715 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
7716 by setting TYPE_JAVA_INTERFACE.
7717 * call.c (java_iface_lookup_fn): New static.
11fe225a 7718 (build_over_call): If calling a method declared in a
60c87482
BM
7719 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
7720 expression which resolves the function address.
7721 (build_java_interface_fn_ref): New function.
7722
94c7f30b
RH
77232001-03-22 Richard Henderson <rth@redhat.com>
7724
7725 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
7726 * except.c: Don't include it.
7727
fd8b7a0e 77282001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
826840d9 7729 based on an idea from Joe Buck <jbuck@synopsys.com>
fd8b7a0e
GP
7730
7731 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
7732 New nonterminals.
7733 (data_def, component_decl): Add reductions to bad_decl.
7734
a1c2b86d
JJ
77352001-03-22 Jakub Jelinek <jakub@redhat.com>
7736
7737 * method.c (do_build_assign_ref): Don't use build_modify_expr for
7738 anonymous aggregates, since they don't have assignment operator
7739 method.
7740 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
7741 assignment operators for anonymous structure fields.
7742
46ccf50a
JM
77432001-03-21 Jason Merrill <jason@redhat.com>
7744
7745 * pt.c (instantiate_decl): Abort if we see a member constant
7746 instantiation that doesn't already have its initializer.
7747 Downgrade explicit instantiation without definition to pedwarn.
7748
7749 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
7750 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
7751 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
7752
7753 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
7754 (pending_vtables): Remove.
7755 * decl2.c (pending_vtables): Remove.
7756 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
7757 CLASSTYPE_VTABLE_NEEDS_WRITING.
7758 (import_export_class): Likewise.
7759 (init_decl2): Don't mark pending_vtables.
7760 * lex.c (handle_pragma_vtable): Just sorry.
7761 * pt.c (instantiate_class_template): Don't mess with
7762 CLASSTYPE_VTABLE_NEEDS_WRITING.
7763 (mark_class_instantiated): Likewise.
7764 * ptree.c (print_lang_type): Don't print it.
7765 * semantics.c (begin_class_definition): Don't set it.
7766
7767 * pt.c (template_tail): Replace with last_pending_template.
7768 (maybe_templates, maybe_template_tail): Remove.
7769 (add_pending_template): Adjust.
7770 (instantiate_pending_templates): Adjust.
7771
7772 * cp-tree.h (struct saved_scope): Remove lang_stack field.
7773 (current_lang_stack): Remove.
7774 * decl.c (maybe_push_to_top_level): Don't initialize it.
7775 (duplicate_decls): Use current_lang_depth.
7776 (xref_basetypes): Likewise.
7777 * class.c (current_lang_depth): New fn.
7778 (push_lang_context): Use more varray functionality.
7779 (pop_lang_context): Likewise.
64d9c3fe
JM
7780
7781 * error.c (GLOBAL_THING): Always use '__'.
7782
1c06710a
MM
77832001-03-21 Mark Mitchell <mark@codesourcery.com>
7784
71cb9286
MM
7785 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
7786
1c06710a
MM
7787 * mangle.c (mangle_decl_string): Mangle the names of overloaded
7788 operators, even when they have `extern "C"' linkage.
7789
92643fea
MM
77902001-03-19 Mark Mitchell <mark@codesourcery.com>
7791
7792 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
7793 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
7794 where it's not necessary.
7795 (add_method): Remove optimization involving comparison of
7796 DECL_ASSEMBLER_NAME.
7797 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
7798 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
7799 where it's not necessary.
7800 (check_methods): Likewise.
7801 (build_clone): Likewise.
7802 (built_vtt): Likewise.
7803 * cp-tree.h (DECL_NEEDED_P): Likewise.
7804 * decl.c (pushtag): Likewise.
7805 (duplicate_decls): Likewise.
7806 (pushdecl): Likewise.
7807 (builtin_function): Likewise.
7808 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
7809 (build_cp_library_fn): Likewise.
7810 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
7811 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
7812 where it's not necessary.
7813 (make_rtl_for_nonlocal_decl): Likewise.
7814 (cp_finish_decl): Likewise.
7815 (grokfndecl): Likewise.
7816 (grokvardecl): Likewise.
7817 (grokdeclarator): Likewise.
7818 (start_function): Likewise.
7819 (cp_missing_return_ok_p): Likewise.
7820 * decl2.c (grokclassfn): Likewise.
7821 (check_classfn): Likewise.
7822 (finish_static_data_member_decl): Likewise.
7823 (grokfield): Likewise.
7824 * error.c (GLOBAL_IORD_P): Remove.
7825 (dump_global_iord): Improve output.
7826 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
7827 * except.c (nothrow_libfn_p): Summarily reject any function not in
7828 namespace-scope.
7829 * init.c (build_java_class_ref): Don't explicitly set
7830 DECL_ASSEMBLER_NAME after calling mangle_decl.
7831 * mangle.c (mangle_decl_string): Handle extern "C" functions.
7832 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
7833 * method.c (set_mangled_name_for_decl): Don't explicitly set
7834 DECL_ASSEMBLER_NAME after calling mangle_decl.
7835 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
7836 IDENTIFIER_GLOBAL_VALUE for the thunk.
7837 * pt.c (set_mangled_name_for_template_decl): Remove.
7838 (check_explicit_specialization): Don't use it.
7839 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
7840 (tsubst_friend_function): Likewise.
7841 (tsubst_decl): Likewise.
7842 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
7843 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
7844 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
7845 where it's not necessary.
7846 (tinfo_base_init): Likewise.
7847 (create_real_tinfo_var): Likewise.
7848 * search.c (looup_field_1): Likewise.
7849 * semantics.c (finish_named_return_value): Likewise.
7850 * tree.c (init_tree): Set lang_set_decl_assembler_name.
11fe225a 7851
d064d75a
GDR
78522001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
7853
7854 Correct semantics restrictions checking in throw-expression.
7855 * except.c (is_admissible_throw_operand): New function.
7856 (build_throw): Use it.
7857
a3eab619
MM
78582001-03-14 Mark Mitchell <mark@codesourcery.com>
7859
7860 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
7861 and its ilk.
7862
19e7881c
MM
78632001-03-14 Mark Mitchell <mark@codesourcery.com>
7864
7865 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
7866 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
7867 * decl.c (duplicate_decls): Likewise.
7868 (builtin_function): Likewise.
7869 (build_library_fn): Likewise.
7870 (build_cp_library_fn): Likewise.
7871 (check_initializer): Likewise.
7872 (cp_finish_decl): Likewise.
7873 * decl2.c (grokfield): Likewise.
7874 (grok_function_init): Remove #if 0'd code.
7875 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
7876 * friend.c (do_friend): Likewise.
7877 * init.c (get_temp_regvar): Likewise.
7878 * method.c (make_thunk): Likewise.
7879 * pt.c (tsubst_friend_function): Likewise.
7880 (tsubst_decl): Likewise.
7881 (regenerate_decl_from_template): Likewise.
7882 * semantics.c (genrtl_named_return_value): Likewise.
7883 (expand_body): Likewise.
7884 (genrtl_finish_function): Likewise.
7885 * tree.c (cp_tree_equal): Likewise.
11fe225a 7886
78fe06c2
NS
78872001-03-12 Nathan Sidwell <nathan@codesourcery.com>
7888
7889 * call.c (convert_like_real): Add extra semantics to INNER
7890 parameter. Don't convert to temporary if a user conversion
7891 gives us an lvalue that we're about to bind to a reference.
7892 Set INNER to indicate pending reference binding on recursive
7893 calls.
7894
b3e68a79
NB
78952001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7896
7897 * cp/lex.c: Delete duplicate pending_lang_change.
7898
78992001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7900
7901 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
7902 Similarly.
7903 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
7904 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
7905
11642c3a
ZW
79062001-03-09 Zack Weinberg <zackw@stanford.edu>
7907
7908 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
7909
bb6852eb 79102001-03-08 Stan Shebs <shebs@apple.com>
f7687817
SS
7911
7912 * cp-tree.h (set_identifier_local_value): Remove unused decl.
7913
cc937581
ZW
79142001-03-06 Zack Weinberg <zackw@stanford.edu>
7915
7916 * spew.c: Remove references to CPP_OSTRING.
7917
d1188d91
AH
79182001-03-06 Andrew Haley <aph@redhat.com>
7919
7920 * typeck.c (convert_arguments): Check that we have an fndecl.
7921
4eaf1d5b
AH
79222001-03-05 Andrew Haley <aph@redhat.com>
7923
7924 * typeck.c (convert_arguments): Don't do ellipsis conversion for
7925 __built_in_constant_p.
7926
7eeb553c
NS
79272001-03-02 Nathan Sidwell <nathan@codesourcery.com>
7928
7929 * typeck.c (build_static_cast): Allow enum to enum conversions
7930 as per DR 128.
7931
d282fcb2
NS
79322001-03-02 Nathan Sidwell <nathan@codesourcery.com>
7933
7934 * class.c (check_field_decls): Pointers to member do not a
7935 non-pod struct make, as per DR 148.
7936
f86fdf68
NS
79372001-03-02 Nathan Sidwell <nathan@codesourcery.com>
7938
7939 * call.c (joust): cp_pedwarn when using gnu extension concerning
7940 worst conversion sequences.
7941
d6edb99e
ZW
79422001-03-01 Zack Weinberg <zackw@stanford.edu>
7943
7944 * decl.c: Replace all uses of 'boolean' with 'bool'.
7945
f7143427
ZW
79462001-03-01 Zack Weinberg <zackw@stanford.edu>
7947
7948 * lang-specs.h: Add zero initializer for cpp_spec field to
7949 all array elements that need one. Don't put an #ifdef inside
7950 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
7951 use it.
7952
fbfe8c9e
NS
79532001-03-01 Nathan Sidwell <nathan@codesourcery.com>
7954
7955 Implement using decls inside template functions.
7956 * decl2.c (validate_nonmember_using_decl): Don't special case
7957 fake_std_node in the global namespace. Don't reject early when
7958 processing a template.
7959 (do_local_using_decl): Add to statement tree. Don't do further
7960 processing when building a template.
7961 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
7962
4d24a889
NS
79632001-03-01 Nathan Sidwell <nathan@codesourcery.com>
7964
7965 * decl2.c (do_nonmember_using_decl): Don't complain if we find
7966 same function. Do complain about ambiguating extern "C"
7967 declarations.
7968
e5844e6d
NS
79692001-02-28 Nathan Sidwell <nathan@codesourcery.com>
7970
7971 Remove floating point and complex type template constant parms.
7972 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
7973 COMPLEX_TYPE extensions.
7974 (invalid_nontype_parm_type_p): Likewise.
7975
788f238c
JO
79762001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
7977
7978 * except.c (call_eh_info): Revert "match_function"'s type.
7979
73ea87d7
NS
79802001-02-27 Nathan Sidwell <nathan@codesourcery.com>
7981
7982 Fix ctor vtable vcall offsets.
7983 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
7984 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
7985 (get_matching_base): Remove.
7986 (get_original_base): New function.
11fe225a 7987 (build_vtbl_initializer): Initialize vid.rtti_binfo.
73ea87d7
NS
7988 Use a virtual thunk for a ctor vtable with an index
7989 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
7990 primary base within a constructor vtable. Only set
7991 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
7992 when primary base has been lost.
7993 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
7994
fe730161
JO
79952001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
7996
7997 * call.c (joust): Ensure more_specialized()'s argument length
7998 parameter has correct value for constructors.
7999
e5dd4aad
NS
80002001-02-26 Nathan Sidwell <nathan@codesourcery.com>
8001
8002 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
11fe225a 8003
e5dd4aad
NS
8004 * decl.c (mark_inlined_fns): Prototype.
8005
25200ab2
MM
80062001-02-22 Mark Mitchell <mark@codesourcery.com>
8007
8008 * spew.c (yylex): Correct handling of friends.
8009
f58c04ac
MM
80102001-02-22 Mark Mitchell <mark@codesourcery.com>
8011
8012 * mangle.c (write_encoding): Pass write_function_type the
8013 FUNCTION_DECL for the function being encoded.
8014 (write_function_type): Pass it along to write_bare_function_type.
8015 (write_bare_function_type): Pass it along to write_method_parms.
8016 (write_method_parms): Don't mangle the compiler-generated
8017 parameters to a constructor or destructor.
8018
9c96f3f8
AJ
80192001-02-22 Andreas Jaeger <aj@suse.de>
8020
8021 * optimize.c: Include toplev.h for
8022 note_deferral_of_defined_inline_function prototype.
8023
b3bae5e2
JJ
80242001-02-22 Jakub Jelinek <jakub@redhat.com>
8025
8026 * cp-tree.h (struct lang_decl_inlined_fns): New.
8027 (struct lang_decls): Add inlined_fns.
8028 (DECL_INLINED_FNS): New macro.
8029 * optimize.c (struct inline_data): Add inlined_fns.
8030 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
8031 (inlinable_function_p): Likewise, fix typo in comment,
8032 function is not inlinable if it already inlined function currently
8033 being optimized.
306ef644 8034 (expand_call_inline): Add fn to inlined_fns if necessary.
b3bae5e2
JJ
8035 (optimize_function): Initialize inlined_fns.
8036 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
8037 * decl.c (mark_inlined_fns): New function.
8038 (lang_mark_tree): Call it.
8039
5daf7c0a
JM
80402001-02-21 Jason Merrill <jason@redhat.com>
8041
8042 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
8043 (DECL_UNINLINABLE): Move to middle-end.
8044
8045 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
8046 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
8047 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
8048 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
8049 parms and outer BLOCK. note_deferral_of_defined_inline_function.
8050
8051 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
8052 second parm of op=.
8053
2c0fc02d
MM
80542001-02-19 Mark Mitchell <mark@codesourcery.com>
8055
8056 * decl2.c (set_decl_namespace): Allow explicit instantiations in
8057 any namespace.
8058
612164eb
KL
80592001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8060
8061 * optimize.c (expand_call_inline): Don't walk subtrees of type
8062 nodes.
8063
69a59a49
MM
80642001-02-18 Mark Mitchell <mark@codesourcery.com>
8065
8066 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
8067 for a destructor.
8068
e0fff4b3
JM
80692001-02-18 Jason Merrill <jason@redhat.com>
8070
8071 Do put the VTT parameter in DECL_ARGUMENTS.
8072 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
8073 (current_vtt_parm): New macro.
8074 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
8075 (DECL_HAS_VTT_PARM_P): New macro.
8076 (DECL_VTT_PARM): Remove.
8077 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
8078 * decl.c (duplicate_decls): Only copy the operator code if
8079 appropriate.
8080 (start_function): Set current_vtt_parm.
8081 (lang_mark_tree): Don't mark vtt_parm.
9c96f3f8 8082 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
e0fff4b3
JM
8083 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
8084 * class.c (build_clone): Maybe remove the VTT parm.
8085 * optimize.c (maybe_clone_body): Set up the VTT parm.
8086 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
8087 * call.c (build_over_call): Just allow the VTT arg.
8088 * method.c (make_thunk): Don't set DECL_VTT_PARM.
8089 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
8090 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
8091 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
8092 * error.c (dump_function_decl): Likewise.
8093 * call.c (build_user_type_conversion_1, convert_like_real): Abort
8094 if we try to call a constructor with in-charge or VTT parms.
8095 * method.c (skip_artificial_parms_for): New fn.
8096 * call.c (add_function_candidate, build_over_call): Call it.
8097 * call.c (build_new_method_call): Use current_vtt_parm.
8098 * init.c (expand_virtual_init): Likewise.
8099 * class.c (same_signature_p): No longer static.
8100 * cp-tree.h: Declare it.
8101 * search.c (look_for_overrides_r): Use it.
8102
c750255c
MM
81032001-02-17 Mark Mitchell <mark@codesourcery.com>
8104
8fa33dfa
MM
8105 * cp-tree.h (new_abi_rtti_p): Remove.
8106 (name_mangling_version): Likewise.
8107 (flag_do_squangling): Likewise.
8108 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
8109 * decl.c (grokfndecl): Likewise.
8110 * decl2.c (name_mangling_version): Remove.
8111 (flag_do_squangling): Likewise.
8112 (lang_f_options): Remove `squangle'.
8113 (unsupported_options): Add `squangle'.
8114 (cxx_decode_option): Issue a warning about uses of
8115 -fname-mangling-version.
8116 (finish_file): Remove old ABI support.
8117 * pt.c (check_explicit_specialization): Likewise.
8118 (tsubst_decl): Likewise.
8119 * rtti.c (init_rtti_processing): Likewise.
8120 (build_headof): Likewise.
8121 (get_tinfo_decl_dynamic): Likewise.
8122 (tinfo_from_decl): Likewise.
8123 (build_dynamic_cast_1): Likewise.
8124 (synthesize_tinfo_var): Likewise.
12fa82db
MM
8125 * init.c (build_new): Allow enumeration types for the array-bounds
8126 in a direct-new-declarator.
8127
8128 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
8129
c750255c
MM
8130 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
8131 TREE_PROTECTED from the template being specialized.
8132
a714e5c5
JM
81332001-02-17 Jason Merrill <jason@redhat.com>
8134
8135 * decl2.c (build_artificial_parm): Set TREE_READONLY.
8136
9c96f3f8 8137 * decl.c (bad_specifiers): Allow throw specs on things with
a714e5c5
JM
8138 pointer-to-function or -member-function type.
8139 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
8140 a pmf.
8141
8084b91e
MM
81422001-02-17 Mark Mitchell <mark@codesourcery.com>
8143
8144 * call.c (check_dtor_name): Handle template names correctly.
8145
48f22ed2
JM
81462001-02-16 Jason Merrill <jason@redhat.com>
8147
8148 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
8149 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
8150 * optimize.c (maybe_clone_body): Don't substitute it.
8151 * call.c (build_new_method_call): Check in_chrg instead.
8152 * init.c (expand_virtual_init): Likewise.
8153
e8186ecf
GDR
81542001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
8155
8156 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
8157 class-type introduces at least a type-name.
8158
2c1be322
JJ
81592001-02-16 Jakub Jelinek <jakub@redhat.com>
8160
8161 * call.c (convert_like_real): Create a temporary for non-lvalue.
8162
aab8454a
JO
81632001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
8164
8165 * cp-tree.h: Fix typos in comments.
8166
a901fa64
JM
81672001-02-16 Jason Merrill <jason@redhat.com>
8168
8169 * optimize.c (remap_block): If we're compiling a clone, pass the
8170 new block to insert_block.
8171
8853373c
MM
81722001-02-16 Mark Mitchell <mark@codesourcery.com>
8173
8174 * semantics.c (finish_asm_stmt): Robustify.
8175
b60ecc04
MM
81762001-02-15 Mark Mitchell <mark@codesourcery.com>
8177
8178 * pt.c (push_template_decl_real): Don't remangle the name of a
8179 class template.
8180
e658449e
JM
81812001-02-15 Jim Meyering <meyering@lucent.com>
8182
fd48c9b5
DD
8183 * Make-lang.in (c++.install-common): Depend on installdirs.
8184 (c++.install-info): Likewise.
8185 (c++.install-man): Likewise.
e658449e 8186
f1a3f197
MM
81872001-02-15 Mark Mitchell <mark@codesourcery.com>
8188
8189 * typeck2.c (build_m_component_ref): Robustify.
8190
8826b15b
AO
81912001-02-15 Alexandre Oliva <aoliva@redhat.com>
8192
8193 * friend.c (do_friend): Don't take the nested [template] class
8194 into account when deciding whether to warn about the friend
8195 function not referring to a template function.
8196
7161c1a5
JJ
81972001-02-14 Jakub Jelinek <jakub@redhat.com>
8198
8199 * typeck.c (build_unary_op): Clarify error message.
8200
4806765e
AH
82012001-02-08 Aldy Hernandez <aldyh@redhat.com>
8202
a901fa64
JM
8203 * parse.y (component_constructor_declarator): allow optional
8204 parentheses around constructor class name.
4806765e 8205
bfc8e1e2
NS
82062001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8207
8208 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
8209 section.
8210 * init.c (emit_base_init): Remove incorrect comment about
8211 virtual bases.
8212 * method.c (make_thunk): Fix comment alignment.
8213
394fd776
NS
82142001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8215
8216 Kill remnants of this is variable.
8217 * cp-tree.h (flag_this_is_variable): Remove.
8218 * decl2.c (flag_this_is_variable): Remove.
8219 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
8220 (build_vbase_path): The path is non-static, even in a cdtor.
8221 (resolves_to_fixed_type_p): Add additional return value.
8222 * search.c (init_vbase_pointers): Adjust.
8223 * tree.c (lvalue_p_1): Adjust.
8224 * typeck.c (mark_addressable): Adjust.
8225
d0ab7624
NS
82262001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8227
8228 * pt.c (unify): Don't check cv quals of array types.
8229
7773899b
NS
82302001-02-14 Nathan Sidwell <nathan@codesourcery.com>
8231
8232 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
8233 check whether we already have the type.
8234
52682a1b
MM
82352001-02-13 Mark Mitchell <mark@codesourcery.com>
8236
8237 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
8238 * call.c (build_op_delete_call): Simplify to remove duplicate
8239 code.
8240 * class.c (clone_function_decl): Don't build the deleting variant
8241 of a non-virtual destructor.
8242 * decl.c (finish_destructor_body): Don't call delete if this is a
8243 non-virtual destructor.
8244 * init.c (build_delete): Explicitly call `operator delete' when
8245 deleting an object with a non-virtual destructor.
9c96f3f8 8246
3b6bd115
JM
82472001-02-13 Jason Merrill <jason@redhat.com>
8248
8249 * lang-specs.h: Add more __EXCEPTIONS.
8250
45abaea8
NS
82512001-02-12 Nathan Sidwell <nathan@codesourcery.com>
8252
8253 * typeck2.c (process_init_constructor): Check
8254 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
8255
996065b4
NS
82562001-02-12 Nathan Sidwell <nathan@codesourcery.com>
8257
8258 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
8259 Remove spurious information in comment. Allow further
8260 adjustments of REFERENCE_TYPE args.
8261
82c18d5c
NS
82622001-02-12 Nathan Sidwell <nathan@codesourcery.com>
8263
8264 * errfn.c (cp_deprecated): Tweak diagnostic text.
8265 * parse.y (new_initializer): Deprecate initializer lists
8266 extension.
8267
1f84ec23
MM
82682001-02-12 Mark Mitchell <mark@codesourcery.com>
8269
8270 Remove old ABI support.
8271
8c310e3f
MM
82722001-02-11 Mark Mitchell <mark@codesourcery.com>
8273
b1012f1b
MM
8274 * decl2.c (flag_vtable_thunks): Always set it to 1.
8275 (flag_new_abi): Likewise.
8276 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9c96f3f8 8277
8c310e3f
MM
8278 * Makefile.in (g++spec.o): Fix typo.
8279
3b635dfc
JM
82802001-02-09 Jason Merrill <jason@redhat.com>
8281
8282 * lang-specs.h: Restore definition of __EXCEPTIONS.
8283
bd0d5d4a
JM
82842001-02-08 Jason Merrill <jason@redhat.com>
8285
8286 * search.c (shared_member_p): New function.
8287 (lookup_field_r): Use it.
8288 * cp-tree.h (SHARED_MEMBER_P): Remove.
8289
8290 * method.c (process_overload_item): Handle template-dependent array
8291 bounds.
8292 * pt.c (type_unification_real): If we end up with undeduced nontype
8293 parms, try again.
8294
8295 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
8296 types.
8297
8298 * typeck2.c (friendly_abort): Don't say anything if we have
8299 earlier errors or sorries.
8300
9c96f3f8 8301 * decl.c (check_tag_decl): Notice attempts to redefine bool and
bd0d5d4a
JM
8302 wchar_t. Ignore if in_system_header.
8303
8304 * decl.c (maybe_push_cleanup_level): New fn...
8305 (start_decl_1): ...split out from here.
8306 * cvt.c (build_up_reference): Use it.
8307 * cp-tree.h: Declare it.
8308
a9374841
MM
83092001-02-07 Mark Mitchell <mark@codesourcery.com>
8310
9c96f3f8 8311 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
a9374841
MM
8312 spec.
8313
a87b4257
NS
83142001-02-06 Nathan Sidwell <nathan@codesourcery.com>
8315
8316 * pt.c (lookup_template_class): Make sure it's a primary
8317 template or template_template_parm when called from the parser.
8318 (instantiate_template_class): Add assertion.
8319
518fed76
AO
83202001-02-05 Alexandre Oliva <aoliva@redhat.com>
8321
8322 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
8323 from error_mark_node.
8324
9965d119
NS
83252001-02-05 Nathan Sidwell <nathan@codesourcery.com>
8326
8327 Fix specification and implementation bugs in V3 ABI
8328 construction vtables.
8329 * cp-tree.h (flag_dump_class_layout): New flag.
8330 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
8331 (BINFO_LOST_PRIMARY_P): New flag.
8332 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
8333 (BINFO_PRIMARY_MARKED_P): Rename to ...
8334 (BINFO_PRIMARY_P): ... here.
8335 (binfo_via_virtual): New prototype.
8336 * decl2.c (flag_dump_class_layout): New flag.
8337 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
8338 use `=' as a file name separator.
8339 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
8340 bases.
8341 (build_vtbl_address): If this is a virtual primary base, then
8342 get the vtbl of what it is ultimately primary for.
8343 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
8344 for BINFO_PRIMARY_P.
8345 (dfs_skip_nonprimary_vbases_markedp): Likewise.
8346 (get_shared_vbase_if_not_primary): Likewise.
8347 (dfs_get_pure_virtuals): Likewise.
8348 (expand_upcast_fixups): Likewise.
8349 (fixup_virtual_upcast_offsets): Likewise.
8350 (dfs_find_vbase_instance): Likewise.
8351 (find_vbase_instance): Likewise.
8352 (binfo_from_vbase): Adjust comment to reflect reality.
8353 (binfo_via_virtual): New function.
8354 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
8355 for binfo walking during VTT construction.
8356 (dfs_mark_primary_bases): Remove.
8357 (force_canonical_binfo_r): New function.
8358 (force_canonical_binfo): New function.
8359 (mark_primary_virtual_base): New function.
8360 (mark_primary_bases): Walk in inheritance graph order, use
8361 mark_primary_virtual_base.
8362 (determine_primary_base): Use some more intermediate variables.
8363 (dfs_find_final_overrider): Don't check for overriding along a
8364 virtual path.
8365 (dfs_modify_vtables): Walk into primary virtual bases too.
8366 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
8367 (build_base_fields): Likewise.
8368 (dfs_set_offset_for_unshared_vbases): Likewise.
8369 (layout_virtual_bases): Likewise.
8370 (end_of_class): Likewise.
8371 (finish_struct_1): Call dump_class_hierarchy, if requested.
8372 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
8373 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
8374 (dump_class_hierarchy): Add file parameter. Append to file, if
8375 required.
8376 (finish_vtbls): Adjust accumulate_vtbl_inits call.
8377 Use canonical base for virtual bases.
8378 (build_vtt): Add more comments. Adjust build_vtt_inits call.
8379 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
8380 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
8381 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
8382 virtual VTTs.
8383 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
8384 from DATA. We want virtual primary bases and all bases via virtual.
8385 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
8386 virtual base when not a construction vtable.
8387 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
8388 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
8389 Use canonical bases when processing virtual bases.
8390 (accumulate_vtbl_inits): We're interested in any base via a
8391 virtual path.
8392 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
8393 within a construction vtable, determine what is being overridden.
8394 (build_vtbl_initializer): Add more comments
8395 (add_vcall_offset_vtbl_entries_1): Adjust comment.
8396 (build_rtti_vtbl_entries): Check if the base has lost its
8397 primary.
8398
39d6f2e8
MM
83992001-02-05 Mark Mitchell <mark@codesourcery.com>
8400
8401 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
8402
400500c4
RK
8403Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8404
8405 * decl.c (pushdecl): Call abort instead of fatal.
8406 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
8407 * init.c (build_new_1): Likewise.
8408 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
8409 * decl.c (build_typename_type): hash_table_init now returns void.
8410 decl.c (init_decl_processing): Make an error non-fatal.
8411
97458258
MM
84122001-02-04 Mark Mitchell <mark@codesourcery.com>
8413
8414 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
8415 Document.
8416 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
8417 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
8418 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
8419 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
8420 * decl.c (maybe_commonize_var): Use the new name-mangling where
8421 appropriate.
8422 * decl2.c (comdat_linkage): Enhance comments. Make all
8423 compiler-generated things static, if COMDAT is not available.
8424 (get_tinfo_decl): Do not make typeinfo objects that belong in the
8425 library COMDAT.
8426 (tinfo_base_init): Use the correct mangled name for typeinfo
8427 strings, and push them into the global scope.
8428 (typeinfo_in_lib_p): New function.
8429 (synthesize_tinfo_var): Use it.
8430 (create_real_tinfo_var): Likewise.
9c96f3f8 8431
55de1b66
JJ
84322001-02-03 Jakub Jelinek <jakub@redhat.com>
8433
8434 * decl.c (push_class_binding): Use context_for_name_lookup instead
8435 of CP_DECL_CONTEXT.
8436 * search.c (context_for_name_lookup): Remove static. Check for NULL
8437 context in the loop.
8438 * cp-tree.h (context_for_name_lookup): Add prototype.
8439
e92730aa
JJ
84402001-02-02 Jakub Jelinek <jakub@redhat.com>
8441
8442 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
8443 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
8444 Remove.
8445 * call.c (convert_class_to_reference, build_user_type_conversion_1,
8446 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
8447
049f6ec9
MM
84482001-02-02 Mark Mitchell <mark@codesourcery.com>
8449
8450 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
8451 of macros used when compiling g++spec.c.
8452 * g++spec.c (lang_specific_driver): Link with the shared
8453 libgcc by default.
8454
718b8ea5
JM
84552001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
8456
8457 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
8458 make_reference_declarator, make_call_declarator), method.c
8459 (implicitly_declare_fn), parse.y (namespace_using_decl,
8460 notype_unqualified_id, expr_or_declarator, new_type_id,
8461 after_type_declarator, direct_after_type_declarator,
8462 notype_declarator, complex_notype_declarator,
8463 complex_direct_notype_declarator, qualified_id,
8464 notype_qualified_id, overqualified_id, direct_new_declarator,
8465 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
8466 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
8467 instead of build_parse_node.
8468
f2d1f0ba
KG
84692001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8470
8471 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
8472 (minus_one_node): Moved to top level gcc directory. Renamed
8473 to integer_minus_one_node.
8474
8475 * init.c (init_init_processing): Don't set minus_one_node.
8476 (build_vec_init): Use integer_minus_one_node.
8477
8478 * rtti.c (get_tinfo_decl_dynamic): Likewise.
8479
6001735e
JJ
84802001-01-28 Jakub Jelinek <jakub@redhat.com>
8481
8482 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
8483 identical and they would be replaced with constant, remove
8484 MODIFY_EXPR from the tree.
8485
c913b6f1
KG
84862001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8487
8488 * Make-lang.in: Remove all dependencies on defaults.h.
8489 * call.c: Don't include defaults.h.
8490 * decl.c: Likewise.
8491 * decl2.c: Likewise.
8492 * except.c: Likewise.
8493 * pt.c: Likewise.
8494 * rtti.c: Likewise.
8495 * tree.c: Likewise.
8496 * typeck.c: Likewise.
8497
324ffb8c
JJ
84982001-01-25 Jakub Jelinek <jakub@redhat.com>
8499
8500 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
8501 operators even in "C" linkage.
8502 * method.c (set_mangled_name_for_decl): Likewise.
8503 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
8504 overloaded operators in "C" linkage.
8505
4b2811e9
NS
85062001-01-24 Nathan Sidwell <nathan@codesourcery.com>
8507
8508 * pt.c (tsubst_decl): Remove IN_DECL parameter.
8509 (tsubst_arg_types): Check parameter is not void.
8510 (tsubst): Adjust tsubst_decl call.
8511
d8caf48e
NS
85122001-01-24 Nathan Sidwell <nathan@codesourcery.com>
8513
8514 * call.c (add_builtin_candidate): Quote std properly, from
8515 previous change.
8516
08511114
KL
85172001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8518
8519 * pt.c (check_explicit_specialization): Clone constructors and
8520 destructors.
8521
92ecdfb7
NS
85222001-01-23 Nathan Sidwell <nathan@codesourcery.com>
8523
8524 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
8525 indicates anything special about template depth. Make sure we
8526 only count the user visible template classes.
8527
4cff6abe
NS
85282001-01-23 Nathan Sidwell <nathan@codesourcery.com>
8529
8530 * call.c (build_conv): Typo in comment.
8531 (add_builtin_candidate): Add more explanation.
8532 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
8533 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
8534 when we have enumeral types.
8535 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
8536 candidates for relops and eqops.
8537 (joust): Simplify control flow. Allow a non-template user
8538 function to hide a builtin.
8539
62e4a758
NS
85402001-01-22 Nathan Sidwell <nathan@codesourcery.com>
8541
8542 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
8543 (more_specialized): Add deduction parameter.
8544 * call.c (joust): Adjust more_specialized call.
8545 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
8546 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
8547 (get_bindings_order): Remove.
8548 (get_bindings_real): Add DEDUCE parameter.
8549 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
8550 REFERENCE_TYPE jig for DEDUCE_ORDER.
8551 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
8552 maybe_adjust_types_for_deduction.
8553 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
8554 directly.
8555 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
8556 (check_cv_quals_for_unify): Use new unify qualifier flags.
8557 (unify): Clear new unify qualifier flags.
8558 (get_bindings_real): Add DEDUCE parameter.
8559 (get_bindings): Adjust call to get_bindings_real.
8560 (get_bindings_overload): Likewise.
8561 (most_specialized_instantiation): Adjust call to
8562 more_specialized.
8563
2a2a9e5a
JM
85642001-01-19 Jason Merrill <jason@redhat.com>
8565
8566 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
8567
8568 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
8569 -fnew-abi.
8570
60696c53
JM
85712001-01-19 Ute Pelkmann <scope.muc@t-online.de>
8572
8573 * decl2.c (arg_assoc_class): Fix double iteration logic.
8574
85752001-01-19 Jason Merrill <jason@redhat.com>
8576
8577 * init.c (build_delete): Always call convert_force to strip cv-quals.
8578
8579 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
8580 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
8581 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
8582
1e00f18c
NS
85832001-01-19 Nathan Sidwell <nathan@codesourcery.com>
8584
8585 * search.c (get_vbase_1): Count only virtual bases.
8586
e13bced2
NS
85872001-01-19 Nathan Sidwell <nathan@codesourcery.com>
8588
8589 * class.c (duplicate_tag_error): Robustify flag clearing.
8590
f9c244b8
NS
85912001-01-19 Nathan Sidwell <nathan@codesourcery.com>
8592
8593 * cp-tree.h (lookup_template_class): Add complain parm.
8594 * decl.c (lookup_namespace_name): Adjust call to
8595 lookup_template_class.
8596 (make_typename_type): Likewise.
8597 * semantics.c (finish_template_type): Likewise.
8598 * pt.c (lookup_template_class): Add complain parm. Adjust.
8599 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
8600 (tsubst): Likewise.
8601
08c2df0f
NS
86022001-01-19 Nathan Sidwell <nathan@codesourcery.com>
8603
8604 * pt.c (copy_default_args_to_explicit_spec): Preserve
8605 object's CV quals. Reorganize.
8606
f5ceeec8
NS
86072001-01-18 Nathan Sidwell <nathan@codesourcery.com>
8608
8609 * typeck.c (build_modify_expr): Say `initialization' for
8610 INIT_EXPRs.
8611 * init.c (build_default_init): Convert to enumeral type, if
8612 needed.
8613
a1cfa434
JJ
86142001-01-18 Jakub Jelinek <jakub@redhat.com>
8615
8616 * parse.y (nomods_initdcl0): Properly set things up for
8617 initdcl0_innards.
8618
028d1f20
NS
86192001-01-18 Nathan Sidwell <nathan@codesourcery.com>
8620
8621 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
8622 (type_unification_real): Set it.
8623 (unify): Use it.
8624
9f724b6a
NS
86252001-01-18 Nathan Sidwell <nathan@codesourcery.com>
8626
8627 * decl.c (finish_destructor_body): Convert to vbase pointer here.
8628
522d6614
NS
86292001-01-18 Nathan Sidwell <nathan@codesourcery.com>
8630
8631 * semantics.c (begin_class_definition): Check we're not inside a
8632 template parm list.
8633
7f805b8f
NS
86342001-01-18 Nathan Sidwell <nathan@codesourcery.com>
8635
8636 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
8637 BASELINK_P.
8638
dc3799c1
KL
86392001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8640
8641 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
8642 * call.c (build_over_call): Add comment.
8643
bb37c4a5
DB
86442001-01-16 Daniel Berlin <dberlin@redhat.com>
8645
826840d9
RH
8646 * cvt.c (ocp_convert): Handle vector type conversion
8647 * typeck2.c (digest_init): Handle vector type initializations
9c96f3f8 8648
a26e7fb5
PE
86492001-01-16 Phil Edwards <pme@sources.redhat.com>
8650
8651 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
8652 was given.
8653
11b810f1
NS
86542001-01-15 Nathan Sidwell <nathan@codesourcery.com>
8655
8656 * pt.c (check_nontype_parm): Rename to ...
8657 (invalid_nontype_parm_type_p): ... here.
8658 (process_template_parm): Adjust.
8659 (convert_template_argument): Adjust.
8660
db3f4e4e
NS
86612001-01-15 Nathan Sidwell <nathan@codesourcery.com>
8662
8663 * pt.c (check_nontype_parm): New function.
8664 (process_template_parm): Use it.
8665 (convert_template_argument): Use it.
8666 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
8667 member.
8668
ea4f1fce
JO
86692001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
8670
8671 * tree.c: Add defaults.h
8672 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
8673 * Make-lang.in (cp/tree.o): Add defaults.h.
8674
1312c143
JM
86752001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
8676
8677 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
8678
4bc1997b
JM
86792001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
8680
8681 * g++.1: Change to be ".so man1/gcc.1".
8682
23de1fbf
JM
86832001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
8684
8685 * Make-lang.in (c++.info, c++.install-info): Build and install g++
8686 internals info.
8687 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
8688 ($(srcdir)/cp/g++int.info): New target.
8689 * gxxint.texi: Add info directory entry. Use @@ in email address.
8690 * .cvsignore: Update.
8691
0949f723
NS
86922001-01-12 Nathan Sidwell <nathan@codesourcery.com>
8693
8694 * typeck.c (build_c_cast): Do template processing earlier.
8695 Always pedwarn on array casts.
8696
a8641661
NS
86972001-01-12 Nathan Sidwell <nathan@codesourcery.com>
8698
8699 * friend.c (make_friend_class): Make sure a templated class is
8700 actually a template.
8701
844511c8
NS
87022001-01-11 Nathan Sidwell <nathan@codesourcery.com>
8703
8704 * decl2.c (get_guard): Set linkage from guarded decl.
8705
96a1e32d
NS
87062001-01-11 Nathan Sidwell <nathan@codesourcery.com>
8707
8708 * call.c (convert_default_arg): Check for unprocessed
8709 DEFAULT_ARG.
8710 * cp-tree.h (replace_defarg): Move to spew.c.
8711 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
8712 spew.c, which is where they really are.
8713 (done_pending_defargs): Declare.
8714 (unprocessed_defarg_fn): Declare.
8715 * decl.c (replace_defarg): Move to spew.c
8716 * parse.y (structsp): Call done_pending_defargs.
8717 * spew.c (defarg_fns): Rearrange list structure.
8718 (defarg_fnsdone): New static variable.
8719 (defarg_depfns): New static variable.
8720 (init_spew): Adjust.
8721 (add_defarg_fn): Store the type in TREE_TYPE.
8722 (do_pending_defargs): Detect and deal with ordering constraints
8723 and circularity.
8724 (done_pending_defargs): New function.
8725 (unprocessed_defarg_fn): New function.
8726 (replace_defarg): Moved from decl.c. Robustify. Don't save
8727 if circularity detected.
8728
34e225a3
NS
87292001-01-11 Nathan Sidwell <nathan@codesourcery.com>
8730
8731 * pt.c (unify): Check array has a domain, before checking
8732 whether it is variable sized.
8733
98979fe0
NS
87342001-01-11 Nathan Sidwell <nathan@codesourcery.com>
8735
8736 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
8737 parameters with pointers to arrays of unknown bound.
8738
b37bf5bd
NS
87392001-01-11 Nathan Sidwell <nathan@codesourcery.com>
8740
8741 * parse.y (template_parm_header, template_spec_header): New
8742 reductions. Split out from ...
8743 (template_header): ... here. Use them.
8744 (template_template_parm): Use template_parm_header.
8745 * semantics.c (finish_template_template_parm): Add assert.
8746
6c418184
MM
87472001-01-10 Mark Mitchell <mark@codesourcery.com>
8748
792508b5
MM
8749 * mangle.c (write_builtin_type): Fix thinko.
8750
8afa707f
MM
8751 * pt.c (copy_default_args_to_explicit_spec_1): New function.
8752 (copy_default_args_to_explicit_spec): Likewise.
8753 (check_explicit_specialization): Use it.
8754
6c418184
MM
8755 * class.c (finish_struct_1): Remove last argument in call to
8756 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
8757 * decl.c (builtin_function): Likewise.
8758 (build_cp_library_fn): Likewise.
8759 (check_initializer): Likewise.
8760 (make_rtl_for_nonlocal_decl): Likewise.
8761 (cp_finish_decl): Likewise.
8762 (start_function): Likewise.
8763 * decl2.c (finish_anon_union): Likewise.
8764 * friend.c (do_friend): Likewise.
8765 * init.c (build_java_class_ref): Likewise.
8766 * method.c (make_thunk): Likewise.
8767 * pt.c (tsubst_friend_function): Likewise.
8768 * semantics.c (expand_body): Likewise.
8769
31d95fc6
MM
87702001-01-10 Mark Mitchell <mark@codesourcery.com>
8771
8772 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
8773 looking at DECL_CLONED_FUNCTION for non-functions.
8774
31bb3027
NS
87752001-01-10 Nathan Sidwell <nathan@codesourcery.com>
8776
8777 * error.c (dump_template_parameter): Use parm to determine how
8778 to print default value.
8779
fd3f43e7
NS
87802001-01-10 Nathan Sidwell <nathan@codesourcery.com>
8781
8782 * class.c (duplicate_tag_error): Clear more flags.
8783
042b4c4e
NS
87842001-01-10 Nathan Sidwell <nathan@codesourcery.com>
8785
8786 * call.c (build_new_method_call): Use binfo_for_vbase.
8787
a7537031
JM
87882001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8789
8790 * cp-tree.h (flag_cond_mismatch): Don't declare.
8791 * decl2.c (flag_cond_mismatch): Don't define.
8792 (lang_f_options): Remove cond-mismatch.
8793 (unsupported_options): Add cond-mismatch.
8794
186c0fbe
NS
87952001-01-09 Nathan Sidwell <nathan@codesourcery.com>
8796
8797 * class.c (handle_using_decl): Reject using of constructor name
8798 of sourcing class. Allow injecting of a method with same name as
8799 nested class. Fixup error messages.
8800
28ec8d6b
JM
88012001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
8802
8803 * decl2.c (lang_decode_option): Handle -Wformat=2.
8804
3febd123
NS
88052001-01-08 Nathan Sidwell <nathan@codesourcery.com>
8806
8807 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
8808 initialized_in_class.
8809 (DECL_DEFINED_IN_CLASS_P): Rename to ...
8810 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
8811 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
8812 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
8813 * pt.c (check_default_tmpl_args): Adjust for
8814 DECL_INITIALIZED_IN_CLASS_P.
8815 (instantiate_class_template): Likewise.
8816 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9c96f3f8 8817
3febd123
NS
8818 * class.c (finish_struct): Constify saved_filename.
8819
1f0d71c5
NS
88202001-01-08 Nathan Sidwell <nathan@codesourcery.com>
8821
8822 * class.c (duplicate_tag_error): Adjust diagnostic.
8823 (finish_struct): Locally set location to start of struct.
8824 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
8825
5bf15e84 88262001-01-08 Nathan Sidwell <nathan@codesourcery.com>
76191fdd
NS
8827
8828 * decl.c (struct binding_level): Adjust class_shadowed comments
8829 to reflect reality.
aba649ba 8830 (push_class_level_binding): Adjust comments to reflect reality.
76191fdd
NS
8831 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
8832 Don't set TREE_VALUE on the class_shadowed list.
8833
23d4e4cc 88342001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9c96f3f8
AJ
8835
8836 * decl2.c (acceptable_java_type): Allow references too.
23d4e4cc
APB
8837 * init.c (build_java_class_ref): When using the new ABI, search
8838 `class$' and have it mangled with `mangle_decl.'
8839 * mangle.c (write_java_integer_type_codes): New function.
8840 (write_builtin_type): Detect and mangle Java integer and real
8841 types.
9c96f3f8 8842
0c58da3e
MM
88432001-01-07 Mark Mitchell <mark@codesourcery.com>
8844
8845 * decl2.c (grokfield): Don't accept `asm' specifiers for
8846 non-static data members.
8847
45b8ddb4
KG
88482001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8849
8850 * expr.c (cplus_expand_expr): Don't reset `target'.
8851
96302433
NB
88522001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
8853
826840d9 8854 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
96302433 8855
220bce48
NS
88562001-01-05 Nathan Sidwell <nathan@codesourcery.com>
8857
8858 * parse.y (template_datadef): Check for error_mark_node.
8859
bfa2cb33
NS
88602001-01-05 Nathan Sidwell <nathan@codesourcery.com>
8861
8862 * cp-tree.def (DEFAULT_ARG): Make `x' class.
8863
eaa7c03f
JM
88642001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
8865
8866 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
8867 (record_builtin_type): Make non-static.
8868 (flag_short_double): Don't declare.
8869 (init_decl_processing): Remove the creation of many tree nodes now
8870 in c_common_nodes_and_builtins.
8871 (build_void_list_node): New function.
8872 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
8873 * cp-tree.h (flag_short_wchar): Don't declare.
8874
3af4c257
MM
88752001-01-04 Mark Mitchell <mark@codesourcery.com>
8876
8877 * call.c (build_conv): Don't use build1 for USER_CONV.
8878 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
8879
03dc0325
JM
88802001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
8881
8882 * lex.c (lang_init): Call c_common_lang_init.
8883
3c505507
NS
88842001-01-03 Nathan Sidwell <nathan@codesourcery.com>
8885
8886 * search.c (lookup_fnfields_here): Remove.
8887 (look_for_overrides_r): Use lookup_fnfields_1.
8888 Ignore functions from using declarations.
8889
03378143
NS
88902001-01-03 Nathan Sidwell <nathan@codesourcery.com>
8891
8892 Implement exceptions specifiers for implicit member functions.
8893 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
8894 * method.c (synthesize_exception_spec): New function.
8895 (locate_dtor, locate_ctor, locate_copy): New functions.
8896 (implicitly_declare_fn): Generate the exception spec too.
8897 * search.c (check_final_overrider): Check artificial functions
8898 too.
9c96f3f8 8899 * typeck2.c (merge_exception_specifiers): New function.
03378143 8900
f30efcb7
JM
89012001-01-03 Jason Merrill <jason@redhat.com>
8902
8903 * init.c (build_default_init): New fn.
8904 (perform_member_init): Split out from here.
8905 (build_new_1): Use it. Simplify initialization logic.
8906 (build_vec_init): Take an array, rather than a pointer and maxindex.
8907 Speed up simple initializations. Don't clean up if we're assigning.
8908 * cp-tree.h: Adjust.
8909 * decl2.c (do_static_initialization): Remove TREE_VEC case.
8910 * parse.y (new_initializer): Return void_zero_node for ().
8911 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
8912 * typeck2.c (digest_init): Only complain about user-written
8913 CONSTRUCTORs.
8914
a412bf75
MS
89152000-12-22 Mike Stump <mrs@wrs.com>
8916
8917 * decl2.c: (max_tinst_depth): Increase to 50.
8918
4890c2f4
MM
89192001-01-02 Mark Mitchell <mark@codesourcery.com>
8920
8921 * class.c (invalidate_class_lookup_cache): Zero the
8922 previous_class_values.
8923 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
8924 TREE_INT_CST_HIGH.
8925 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
8926 * decl.c (free_bindings): New variable.
8927 (push_binding): Don't create a new binding if we have one on the
8928 free list.
8929 (pop_binding): Put old bindings on the free list.
8930 (init_decl_processing): Use size_int, not build_int_2.
8931 Register free_bindings as a GC root.
8932 (cp_make_fname_decl): Use size_int, not build_int_2.
8933 (push_inline_template_parms_recursive): Likewise.
8934 (end_template_parm_list): Likewise.
688f6688 8935 (for_each_template_parm): Do not use walk_tree_without_duplicates.
4890c2f4
MM
8936 (tsubst_template_parms): Use size_int, not build_int_2.
8937 (tsubst): Likewise.
8938 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9c96f3f8 8939
4f78b9a8
RH
89402001-01-02 Richard Henderson <rth@redhat.com>
8941
8942 * parse.y (asm): Set ASM_INPUT_P.
8943
3c8c2a0a
JM
89442001-01-02 Jason Merrill <jason@redhat.com>
8945
96d6c610
JM
8946 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
8947 for v3 ABI.
8948
8949 * typeck.c (cp_truthvalue_conversion): New fn.
8950 * cvt.c (ocp_convert): Use it.
8951
8952 * cp-tree.h: Lose c-common.c decls.
8953
8954 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
8955 * cvt.c (convert_to_void): Use type_unknown_p.
8956
9c96f3f8 8957 * typeck.c (strip_all_pointer_quals): Also strip quals from
3c8c2a0a
JM
8958 pointer-to-member types.
8959
8960 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
8961 parse.y as C.
8962
8963 * call.c (build_new_method_call): Do evaluate the object parameter
8964 when accessing a static member.
8965 * typeck.c (build_component_ref): Likewise.
8966
d363e7bf
AJ
89672001-01-02 Andreas Jaeger <aj@suse.de>
8968
8969 * decl.c (cp_missing_noreturn_ok_p): New.
8970 (init_decl_processing): Set lang_missing_noreturn_ok_p.
8971
77f5250d
JJ
89722000-12-29 Jakub Jelinek <jakub@redhat.com>
8973
8974 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
8975
31a714f6
MM
89762000-12-29 Mark Mitchell <mark@codesourcery.com>
8977
8978 * class.c (pushclass): Remove #if 0'd code.
8979 * cp-tree.h (overload_template_name): Remove.
8980 * decl.c (store_bindings): Simplify.
8981 (pop_from_top_level): Likewise.
8982 * pt.c (overload_template_name): Remove.
d363e7bf 8983 (instantiate_decl): Don't call push_to_top_level if it's not
31a714f6
MM
8984 needed.
8985
414ea4aa
MM
89862000-12-28 Mark Mitchell <mark@codesourcery.com>
8987
8988 * pt.c (register_local_specialization): Don't return a value.
8989 (lookup_template_class): Use move-to-front heuristic when looking
8990 up template instantiations.
8991 (instantiate_decl): Only push_to_top_level when we're actually
8992 going to instantiate the template.
8993
6f18f7e9
HPN
89942000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
8995
8996 * search.c (binfo_for_vtable): Return least derived class, not
8997 most. Handle secondary vtables.
8998
e5214479
JM
89992000-12-22 Jason Merrill <jason@redhat.com>
9000
3c8c2a0a
JM
9001 * pt.c (more_specialized): Don't optimize len==0.
9002 (fn_type_unification): If we're adding the return type, increase len.
9003
ebb1abc3
JM
9004 * typeck.c (build_binary_op): Fix pmf comparison logic.
9005
c939ca5f
JM
9006 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
9007 DECL_STATIC_FUNCTION_P.
9008
e6fe680d
JM
9009 * semantics.c (genrtl_finish_function): Don't try to jump to
9010 return_label unless it exists.
9011
e5214479
JM
9012 In partial ordering for a call, ignore parms for which we don't have
9013 a real argument.
9014 * call.c (joust): Pass len to more_specialized.
9015 (add_template_candidate_real): Strip 'this', pass len.
9016 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
9017 (get_bindings_order): New fn. Pass len down.
9018 (get_bindings_real): Strip 'this', pass len.
9019 (fn_type_unification): Likewise.
9020 (type_unification_real): Succeed after checking 'len' args.
9021 (most_specialized_instantiation): Lose explicit_args parm.
d363e7bf 9022 * class.c (resolve_address_of_overloaded_function): Strip 'this',
e5214479
JM
9023 pass len.
9024
90252000-12-21 Jason Merrill <jason@redhat.com>
477f6664
JM
9026
9027 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
9028 DECL_TEMPLATE_RESULT.
9029
9030 * search.c (lookup_field_r): Call lookup_fnfields_1, not
9031 lookup_fnfields_here.
9032
9033 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
9034
9035 * call.c (build_object_call): Also allow conversions that return
9036 reference to pointer to function.
9037 (add_conv_candidate): Handle totype being ref to ptr to fn.
9038 (build_field_call): Also allow members of type reference to function.
9039 Lose support for calling pointer to METHOD_TYPE fields.
9040
9041 * error.c (dump_expr): Handle *_CAST_EXPR.
9042
9043 * typeck2.c (build_scoped_ref): Always convert to the naming class.
9044
9045 * tree.c (break_out_cleanups): Lose.
9046 * cp-tree.h: Remove prototype.
9047 * typeck.c (build_component_ref): Don't break_out_cleanups.
9048 (build_compound_expr): Likewise.
9049 * semantics.c (finish_expr_stmt): Likewise.
9050
3e4d04a1
RH
90512000-12-20 Richard Henderson <rth@redhat.com>
9052
9053 * cp-tree.h: Update declarations.
9054 * decl.c (finish_case_label): Return the new stmt node.
9055 * semantics.c (finish_goto_stmt): Likewise.
9056 (finish_expr_stmt, finish_return_stmt): Likewise.
9057 (finish_break_stmt, finish_continue_stmt): Likewise.
9058 (finish_asm_stmt): Likewise.
9059 * parse.y (already_scoped_stmt): Set STMT_LINENO.
9060 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
9061 (simple_if, simple_stmt): Return the new stmt node.
9062 (save_lineno): New.
9063
20d380b1
JM
90642000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
9065
9066 * cp-tree.h: Don't declare warn_long_long.
9067
221c7a7f
KL
90682000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9069
9070 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
9071 IS_AGGR_TYPE.
9072
b429fdf0
KL
90732000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9074
9075 * pt.c (unify): Handle when both ARG and PARM are
9076 BOUND_TEMPLATE_TEMPLATE_PARM.
9077
c2beae77
KL
90782000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9079
9080 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
9081 DECL_TEMPLATE_PARM_P.
9082
c3e899c1
JM
90832000-12-15 Jason Merrill <jason@redhat.com>
9084
96790071
JM
9085 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
9086
8d42565b
JM
9087 * init.c (build_new_1): Don't strip quals from type.
9088
fab09a24
JM
9089 * decl.c (pushdecl): Don't check for linkage on a non-decl.
9090
c3e899c1
JM
9091 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
9092
9093 * call.c (build_new_function_call): Lose space before paren in
9094 error message.
9095 (build_new_method_call): Likewise.
9096
9097 * typeck2.c (build_m_component_ref): Propagate quals from datum.
9098
edac124d
KL
90992000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9100
9101 * pt.c (check_explicit_specialization): Propagate default
9102 function arguments to explicit specializations.
9103
31750649 91042000-12-13 DJ Delorie <dj@redhat.com>
8d3b081e
DD
9105
9106 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
9107 and <? operators.
9108
5e818b93
JM
91092000-12-08 Jason Merrill <jason@redhat.com>
9110
9111 * error.c (dump_function_name): Don't let the user see __comp_ctor.
9112
9113 Clean up copy-initialization in overloading code.
9114 * call.c (build_user_type_conversion_1): Die if we are asked to
9115 convert to the same or a base type.
9116 (implicit_conversion): Avoid doing so. Lose reference binding code.
9117 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
9118 direct-initialization. Also do direct-init part of copy-init.
9119 (build_user_type_conversion): Don't provide context to convert_like.
9120 * cvt.c (ocp_convert): build_user_type_conversion will now provide
9121 the constructor call for copy-init.
9122
9123 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
9124 instantiation of a member template.
9125 (do_decl_instantiation): Not here.
9126
38da6039
NS
91272000-12-07 Nathan Sidwell <nathan@codesourcery.com>
9128
9129 * class.c (check_field_decls): Don't special case anonymous
9130 fields in error messages.
c9407e4c 9131 (note_name_declared_in_class): Use %D on diagnostic.
d363e7bf 9132
38da6039
NS
9133 * tree.c (pod_type_p): Use strip_array_types.
9134 (cp_valid_lang_attribute): Likewise.
9135 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
9136 multiple evaluations.
d363e7bf 9137 (cp_has_mutable_p): Use strip_array_types.
38da6039 9138
a11d04b5
NS
91392000-12-07 Nathan Sidwell <nathan@codesourcery.com>
9140
9141 * cp-tree.h (sufficient_parms_p): Declare new function.
9142 * call.c (sufficient_parms_p): New function, broken out of ...
9143 (add_function_candidate): ... here. Use it.
9144 (add_conv_candidate): Use it.
9145 * decl.c (grok_ctor_properties): Use it.
9146
5eec2847
JJ
91472000-12-07 Jakub Jelinek <jakub@redhat.com>
9148
9149 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
9150
c907e684
JM
91512000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
9152
9153 * decl2.c (lang_decode_option): Handle -Wformat-security.
9154
74601d7c
KL
91552000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9156
9157 * pt.c (verify_class_unification): New function.
9158 (get_class_bindings): Use it.
9159 (try_class_unification): Tidy.
9160 (unify): Handle when argument of a template-id is not
9161 template parameter dependent.
9162 (template_args_equal): Handle when TREE_CODE's do not match.
9163
8954e858
AO
91642000-12-06 Alexandre Oliva <aoliva@redhat.com>
9165
9166 * lang-specs.h (c++): When invoking the stand-alone preprocessor
9167 for -save-temps, pass all relevant -Defines to it, and then don't
9168 pass them to cc1plus.
9169
3dc9aec6
WC
91702000-12-05 Will Cohen <wcohen@redhat.com>
9171
9172 * decl.c (finish_case_label): Cleared
9173 more_cleanups_ok in surrounding function scopes.
9174 (define_label): Likewise.
9175
cbb40945
NS
91762000-12-05 Nathan Sidwell <nathan@codesourcery.com>
9177
9178 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
9179 (get_matching_virtual): Remove.
9180 (look_for_overrides): Declare new function.
9181 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
9182 DECL_VINDEX here.
9183 * class.c (check_for_override): Move base class iteration code
9184 to look_for_overrides.
9185 * search.c (next_baselink): Remove.
9186 (get_virtuals_named_this): Remove.
9187 (get_virtual_destructor): Remove.
9188 (tree_has_any_destructors_p): Remove.
9189 (struct gvnt_info): Remove.
9190 (check_final_overrider): Remove `virtual' from error messages.
9191 (get_matching_virtuals): Remove. Move functionality to ...
9192 (look_for_overrides): ... here, and ...
9193 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
9194 to be overriding.
9195
61402b80
NS
91962000-12-05 Nathan Sidwell <nathan@codesourcery.com>
9197
9198 * typeck.c (get_delta_difference): If via a virtual base,
9199 return zero.
9200 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
9201 adjustment.
9202
39abc9a6
RH
92032000-12-04 Richard Henderson <rth@redhat.com>
9204
9205 * error.c (dump_tree): Use output_add_string not OB_PUTS.
9206
c00996a3
JM
92072000-12-04 Jason Merrill <jason@redhat.com>
9208
9209 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
d363e7bf 9210 (write_builtin_type): Pass intSI_type_node and the like through
c00996a3
JM
9211 type_for_mode.
9212 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
9213 Pass intSI_type_node and the like through type_for_mode.
9214 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
9215 * pt.c (tsubst, unify): Likewise.
9216 * tree.c (walk_tree): Likewise.
9217 * error.c (dump_type): Likewise.
9218 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
d363e7bf 9219
c00996a3
JM
9220 * Make-lang.in: Tweak top comment for emacs.
9221 (cp/TAGS): Restore.
9222
9223 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
9224
c00996a3
JM
9225 * class.c (clone_function_decl): Robustify.
9226
92272000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
9228
9229 * decl.c (store_bindings): Only search in the non modified
9230 old_bindings for duplicates.
9231
00bb3dad
NS
92322000-12-04 Nathan Sidwell <nathan@codesourcery.com>
9233
9234 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
9235 TYPE_POLYMORPHIC_P.
d363e7bf 9236
00bb3dad
NS
9237 * typeck.c (build_static_cast): Remove unused variable.
9238
dc957d14
KL
92392000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9240
9241 * pt.c: Fix typo in comment.
9242
4d808927
JM
92432000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
9244
9245 * decl2.c (warn_format): Remove definition.
9246 (lang_decode_option): Handle -Wformat-nonliteral,
9247 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
9248
5fd8e536
JM
92492000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
9250
9251 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
9252 (init_decl_processing): Don't create string_type_node,
9253 const_string_type_node, wint_type_node, intmax_type_node,
9254 uintmax_type_node, default_function_type, ptrdiff_type_node and
9255 unsigned_ptrdiff_type_node. Adjust position of call to
9256 c_common_nodes_and_builtins.
9257 (identifier_global_value): New function.
9258
13f9714b
NS
92592000-12-01 Nathan Sidwell <nathan@codesourcery.com>
9260
9261 * call.c (standard_conversion): Reject pointer to member
9262 conversions from ambiguous, inaccessible or virtual bases.
9263 * typeck.c (build_static_cast): Don't check pointers to members
9264 specially.
9265
31b1b957
NS
92662000-11-30 Nathan Sidwell <nathan@codesourcery.com>
9267
9268 * method.c (do_build_copy_constructor): Preserve cv
9269 qualifications when accessing source object members.
9270 (do_build_assign_ref): Likewise. Remove separate diagnostics for
9271 unnamed fields.
9272
717e3f73
NS
92732000-11-30 Nathan Sidwell <nathan@codesourcery.com>
9274
9275 * method.c (do_build_assign_ref): Construct appropriately
9276 CV-qualified base reference. Don't allow const casts in base
9277 conversion.
9278
2c92b94d
NS
92792000-11-30 Nathan Sidwell <nathan@codesourcery.com>
9280
9281 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
9282 incomplete return type.
9283
bb92901d
NS
92842000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9285
9286 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
9287 * semantics.c (finish_base_specifier): Accept a _TYPE not a
9288 _DECL.
9289
2f3608c3
NS
92902000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9291
9292 * spew.c (yyerror): Cope if yylval.ttype is NULL.
9293
eeb75383
NS
92942000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9295
9296 * decl.c (grokdeclarator): Diagnose undefined template contexts.
9297
5ee4cc26
NS
92982000-11-28 Nathan Sidwell <nathan@codesourcery.com>
9299
9300 * decl.c (grokdeclarator): Do type access control on friend
9301 class.
9302
76e57b45
NS
93032000-11-27 Nathan Sidwell <nathan@codesourcery.com>
9304
9305 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
9306 bison parser ickiness.
9307 * pt.c (tsubst_friend_function): Enter namespace scope when
9308 tsubsting the function name.
9309 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
9310
f9825168
NS
93112000-11-27 Nathan Sidwell <nathan@codesourcery.com>
9312
9313 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
9314 * cvt.c (cp_convert_to_pointer): Add force parameter.
9315 Allow conversions via virtual base if forced.
9316 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
9317 (ocp_convert): Likewise.
9318 * search.c (binfo_from_vbase): Return the virtual base's binfo.
9319 * typeck.c (get_delta_difference): Adjust handling of virtual
9320 bases.
9321
9ccb25d5
MM
93222000-11-26 Mark Mitchell <mark@codesourcery.com>
9323
9324 * tree.c (struct list_hash): Remove.
9325 (list_hash_table): Make it be an htab.
9326 (struct list_proxy): New type.
9327 (list_hash_eq): New function.
9328 (list_hash_pieces): Renamed from ...
9329 (list_hash): ... this.
9330 (list_hash_lookup): Remove.
9331 (list_hash_add): Remove.
9332 (hash_tree_cons): Use the generic hashtable.
9333 (mark_list_hash): Remove.
9334 (init_tree): Create the hashtable.
9335
9399bad3
JM
93362000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
9337
9338 * method.c (build_mangled_C9x_name): Rename to
9339 build_mangled_C99_name. Change C9X references in comments to
9340 refer to C99.
9341
2f401cc8
NS
93422000-11-24 Nathan Sidwell <nathan@codesourcery.com>
9343
9344 * parse.y (unary_expr): Move VA_ARG from here ...
9345 (primary): ... to here.
9346
3d7e9ba4
NS
93472000-11-24 Nathan Sidwell <nathan@codesourcery.com>
9348
9349 * semantics.c (finish_id_expr): If type is error_mark, return
9350 error_mark.
9351
ab097535
NS
93522000-11-23 Nathan Sidwell <nathan@codesourcery.com>
9353
9354 * pt.c (lookup_template_class): Simplify loop exit constructs.
9355 Cope when there is no partial instantiation of a template
9356 template member.
9357
9196ece5
R
9358Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
9359
9360 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
9361
cac78ea2
MM
93622000-11-22 Mark Mitchell <mark@codesourcery.com>
9363
6e1b44bc
MM
9364 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
9365 prefix.
9366
cac78ea2
MM
9367 * pt.c (do_decl_instantiate): Explicitly clone constructors and
9368 destructors that haven't already been cloned.
9369
3aac38d7
RH
93702000-11-20 Richard Henderson <rth@redhat.com>
9371
9372 * parse.y (yyparse_1): Rename the parser entry point.
9373
93742000-11-20 Alex Samuel <samuel@codesourcery.com>
beac9b93
AS
9375
9376 * mangle.c (write_name): Use <unscoped-name> for names directly in
9377 function scope.
9378 (write_unscoped_name): Accept names directly in function scope.
d363e7bf 9379
447306fa
NS
93802000-11-20 Nathan Sidwell <nathan@codesourcery.com>
9381
9382 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
9383 * parse.y (extdef): Add EXPORT reduction.
9384 * spew.c (yylex): Don't skip export here.
9385
2650255a
MM
93862000-11-19 Mark Mitchell <mark@codesourcery.com>
9387
9388 * decl.c (init_decl_processing): Correct name of pure virtual
9389 function under the new ABI.
9390 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
9391 (throw_bad_typeid): Likewise for bad typeid function.
9392
0657c69c
MM
93932000-11-18 Mark Mitchell <mark@codesourcery.com>
9394
04f3dc2b
MM
9395 * decl.c (grokparms): Don't even function types of `void' type,
9396 either.
9397 * mangle.c (write_type): Don't crash when confronted with the
9398 error_mark_node.
9399
0657c69c
MM
9400 * decl.c (grokparms): Don't create parameters of `void' type.
9401
a8a05998
ZW
94022000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
9403
9404 * lex.c (mark_impl_file_chain): Delete.
9405 (init_parse): Remove call to ggc_add_string_root. No need to
9406 ggc_strdup a string constant. Do not add impl_file_chain to GC
9407 roots.
9408 (handle_pragma_implementation): No need to ggc_strdup main_filename.
9409
35728a80
NS
94102000-11-17 Nathan Sidwell <nathan@codesourcery.com>
9411
9412 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
9413
5cce22b6
NS
94142000-11-17 Nathan Sidwell <nathan@codesourcery.com>
9415
9416 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
9417 * decl.c (grokdeclarator): Don't reject void parms here.
9418 (require_complete_types_for_parms): Simplify, use
9419 complete_type_or_else.
9420 (grokparms): Remove bitrot. Remove funcdef parm.
9421 Deal with ellipsis parm lists here.
9422 * semantics.c (finish_parmlist): Don't append void_list_node
9423 here. Set PARMLIST_ELLIPSIS_P.
9424
146c8d60
NS
94252000-11-17 Nathan Sidwell <nathan@codesourcery.com>
9426
d30d6e7a 9427 * typeck2.c (incomplete_type_error): Reorganize to avoid
146c8d60
NS
9428 excessive diagnostics.
9429
520a57c8
ZW
94302000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
9431
9432 * lex.c (struct impl_files, internal_filename): Constify a char *.
9433
43048a06
MM
94342000-11-16 Mark Mitchell <mark@codesourcery.com>
9435
9436 * mangle.c (write_special_name_constructor): Don't generate
9437 assembler junk when confronted with an old-style constructor.
9438 (write_special_name_destructor): Likewise.
9439 (mangle_decl_string): Do it here instead.
9440
cdb71673
NS
94412000-11-16 Nathan Sidwell <nathan@codesourcery.com>
9442
9443 * call.c (op_error): Make error messages clearer.
9444
62136084
MM
94452000-11-15 Mark Mitchell <mark@codesourcery.com>
9446
9447 * decl.c (wrapup_globals_for_namespace): Don't mark things
9448 TREE_ASM_WRITTEN when they're not.
9449
ee3400e8
JM
94502000-11-15 Jason Merrill <jason@redhat.com>
9451
9452 * typeck2.c (friendly_abort): Uncount the error before handing
9453 off to fancy_abort.
9454
71631a1f
NS
94552000-11-15 Nathan Sidwell <nathan@codesourcery.com>
9456
9457 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
9458
79cda2d1
MM
94592000-11-14 Mark Mitchell <mark@codesourcery.com>
9460
9461 * class.c (build_vtbl_initializer): Fix typo in comment.
9462 * typeck.c (expr_sizeof): Don't crash on errors.
9463
2567bc56
JW
94642000-11-14 Jim Wilson <wilson@redhat.com>
9465
9466 * lang-specs.h: Add %2 after %(cc1_options).
9467
8422942c
RH
94682000-11-14 Richard Henderson <rth@redhat.com>
9469
9470 * typeck.c (c_sizeof): Be strict about casting result value
9471 back to c_size_type_node.
9472 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
9473
19552aa5
JM
94742000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
9475
9476 * typeck.c (build_unary_op): Use boolean_increment from
9477 c-common.c, moving the relevant code there.
9478
d96a6d1a
JM
94792000-11-11 Jason Merrill <jason@redhat.com>
9480
9481 * typeck.c (mark_addressable): Don't call put_var_into_stack.
492cca24
JM
9482
9483 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
9484 in inlines.
9485
4e135bdd
KG
94862000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9487
9488 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
9489 * lex.c (copy_lang_decl): Likewise.
9490
0a7394bc
MM
94912000-11-09 Mark Mitchell <mark@codesourcery.com>
9492
13507bd8
MM
9493 * dump.c (cp_dump_tree): Don't dump function bodies here.
9494
0a7394bc
MM
9495 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
9496 (dump.o): Update dependency list.
9497 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
9498 (flag_dump_translation_unit): Likewise.
9499 (CP_TYPE_QUALS): Adjust definition.
9500 (DECL_C_BIT_FIELD): Remove.
9501 (SET_DECL_C_BIT_FIELD): Likewise.
9502 (CLEAR_DECL_C_BIT_FIELD): Likewise.
9503 (add_maybe_template): Likewise.
9504 (strip_array_types): Likewise.
9505 (dump_node_to_file): Likewise.
9506 (cp_dump_tree): New function.
9507 * decl.c (init_decl_processing): Set lang_dump_tree.
9508 * decl2.c (flag_dump_translation_unit): Remove.
9509 * dump.c: Move most of it to ../c-dump.c.
9510 (cp_dump_tree): New function.
9511 * pt.c (add_maybe_template): Remove.
9512 * typeck.c (strip_array_types): Likewise.
a8a05998 9513
5362b086
EC
95142000-11-07 Eric Christopher <echristo@redhat.com>
9515
492cca24
JM
9516 * decl.c (init_decl_processing): Change definition of
9517 __wchar_t to wchar_t. Remove artificial declaration of
9518 wchar_t.
9519 * lex.c: Change instances of __wchar_t to wchar_t.
5362b086 9520
5361cbb7
NS
95212000-11-09 Nathan Sidwell <nathan@codesourcery.com>
9522
9523 * lex.c (do_identifier): Don't lookup_name for operators.
9524 * parse.y (operator): Save looking_for_typename.
9525 (unoperator): Restore it.
9526 * spew.c (frob_opname): Use nth_token for lookahead.
9527
36791f1e
NS
95282000-11-08 Nathan Sidwell <nathan@codesourcery.com>
9529
9530 * decl.c (grok_op_properties): Always use coerce_new_type and
9531 coerce_delete_type.
9532 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
9533 exception specification. Tidy up.
9534 (coerce_delete_type): Preserve exception specification. Tidy up.
9535
961192e1
JM
95362000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
9537
9538 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
9539 (push_binding_level), error.c (cp_tree_printer), pt.c
9540 (process_partial_specialization, tsubst_template_arg_vector),
9541 search.c (lookup_member): Use memset () instead of bzero ().
9542
d48ebde1
NS
95432000-11-07 Nathan Sidwell <nathan@codesourcery.com>
9544
9545 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
9546
436a88a6
JM
95472000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
9548
9549 * Make-lang.in (c++.distdir): Remove.
9550
7a4e5091
MM
95512000-11-04 Mark Mitchell <mark@codesourcery.com>
9552
9553 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
9554 declarations from different namespaces to be combined.
9555
0e9295cf
ZW
95562000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
9557
9558 * decl.c: Include tm_p.h.
9559
da61dec9
JM
95602000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
9561
9562 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
9563
9473c522
JM
95642000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
9565
9566 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
9567 (build_overload_value), repo.c (open_repo_file), xref.c
9568 (open_xref_file): Use strchr () and strrchr () instead of index ()
9569 and rindex ().
9570
b0b3afb2
BS
95712000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
9572
9573 * call.c (build_over_call): Call fold on the CALL_EXPR.
9574
faafaee6
GDR
95752000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
9576
9577 * error.c (dump_template_decl): Separate template hearders with
9578 space not comma.
9579
761f0855
GDR
95802000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
9581
9582 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
9583 TS_* flags with corresponding TFF_*. Adjust prototypes of
9584 functions (which used to take a tree_string_flags) to take an int.
9585
9586 * cp-tree.h (enum tree_string_flags): Remove
9587 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
9588 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
9589 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
9590 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
9591 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
9592 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
9593 (type_as_string, decl_as_string, expr_as_string,
9594 context_as_string): Adjust prototype.
9595
9596 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
9597 instead of TS_PLAIN.
9598
9599 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
9600 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
9601 plain `0'.
9602
ad50e811
MM
96032000-10-30 Mark Mitchell <mark@codesourcery.com>
9604
9605 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
9606 (linkage_kind): New enumeration.
9607 (decl_linkage): New function.
9608 * decl2.c (comdat_linkage): Extend comment.
9609 * error.c (dump_function_decl): Print the arguments used to
9610 instantiate a template, even when not printing the type of the
9611 function.
9612 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
9613 not TREE_PUBLIC, to test for external linkage.
9614 * tree.c (decl_linkage): New function.
9615
930cd796
MM
96162000-10-28 Mark Mitchell <mark@codesourcery.com>
9617
9618 * pt.c (instantiate_decl): Always instantiate static data members
9619 initialized in-class.
9620
b8dad04b
ZW
96212000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
9622
9623 * Make-lang.in: Move all build rules here from Makefile.in,
9624 adapt to new context. Wrap all rules that change the current
9625 directory in parentheses. Expunge all references to $(P).
9626 When one command depends on another and they're run all at
9627 once, use && to separate them, not ;. Add OUTPUT_OPTION to
9628 all object-file generation rules. Delete obsolete variables.
9629
9630 * Makefile.in: Delete.
9631 * config-lang.in: Delete outputs= line.
9632
5f9cd837
GDR
96332000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
9634
9635 * error.c (dump_function_decl): Print no space between
9636 `ptr-operator' the `type-specifier' of the return type.
9637 (dump_type_prefix): Make sure we put space at the appropriate
5362b086 9638 place.
5f9cd837 9639
6c6ed0ef
JM
96402000-10-23 Jason Merrill <jason@redhat.com>
9641
9642 * call.c (equal_functions): Also call decls_match for extern "C" fns.
9643
96442000-10-22 Jason Merrill <jason@redhat.com>
9645
9646 * call.c (build_conditional_expr): Use ocp_convert to force
9647 rvalue conversion.
9648
e36308b0
MM
96492000-10-22 Mark Mitchell <mark@codesourcery.com>
9650
583ca5a0
MM
9651 * call.c (standard_conversion): Use RVALUE_CONVs for all
9652 expressions that satisfy lvalue_p, not just those that satisfy
9653 real_lvalue_p.
9654
f9808f81
MM
9655 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
9656
5362b086 9657 * typeck.c (c_sizeof): Return an expression of `size_t' type,
e36308b0
MM
9658 not one with TYPE_IS_SIZETYPE set.
9659 (dubious_conversion_warnings): Remove special-case code.
9660
3b9ae6f0
GK
96612000-10-21 Geoffrey Keating <geoffk@cygnus.com>
9662
7a0f14e5
GK
9663 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
9664 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
9665 (dump_type_prefix): Print vector-of-int as 'int vector'.
9666 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
9667 * tree.c (walk_tree): Handle VECTOR_TYPE.
9668
3b9ae6f0 9669 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
5362b086 9670
aca77bd1
JM
96712000-10-21 Jason Merrill <jason@redhat.com>
9672
9673 * parse.y (operator): Set got_object from got_scope.
9674 Set looking_for_typename.
9675 * decl.c (lookup_name_real): Clear val after setting from_obj.
9676 Reorganize diagnostic.
9677
ba523395
JM
96782000-10-20 Jason Merrill <jason@redhat.com>
9679
9680 * tree.c (walk_tree): Don't walk into default args.
9681
9682 * error.c (dump_expr): Use host_integerp.
9683
2e44948d
DE
96842000-10-20 David Edelsohn <edelsohn@gnu.org>
9685
9686 * typeck2.c (abstract_virtuals_error): Use "because" instead of
9687 "since" in error message.
9688
44475138
RK
9689Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9690
9691 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
9692
11306230
JO
96932000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
9694
9695 * decl.c (revert_static_member_fn): Fixed typo.
9696
97ba1e3c
MM
96972000-10-19 Mark Mitchell <mark@codesourcery.com>
9698
c20118a8
MM
9699 * class.c (subobject_offset_fn): New type.
9700 (dfs_record_base_offsets): Remove.
9701 (record_base_offsets): Likewise.
9702 (dfs_search_base_offsets): Likewise.
9703 (record_subobject_offset): New function.
9704 (check_subobject_offset): Likewise.
9705 (walk_subobject_offsets): Likewise.
9706 (record_subobject_offsets): Likewise.
9707 (layout_conflict_p): Reimplement.
9708 (layout_nonempty_base_or_field): Correct handling of type
9709 conflicts during layout.
9710 (layout_empty_base): Likewise.
9711 (build_base_field): Adjust to handle new representation of empty
9712 base offset table.
9713 (build_base_fields): Likewise.
9714 (layout_virtual_bases): Likewise.
9715 (splay_tree_compare_integer_csts): New function.
9716 (layout_class_type): Use a splay_tree, rather than a varray, to
9717 represent the offsets of empty bases.
5362b086 9718
97ba1e3c
MM
9719 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
9720 * decl.c (select_decl): Don't return declarations that are
9721 DECL_ANTICIPATED.
9722
6bcedb4e
MM
97232000-10-18 Mark Mitchell <mark@codesourcery.com>
9724
9725 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
9726 (fake_std_node): New macro.
9727 * decl.c (in_std): Rename to ...
9728 (in_fake_std): ... this.
9729 (flag_no_builtin): Remove.
9730 (flag_no_nonansi_builtin): Likewise.
9731 (walk_namespaces_r): Use fake_std_node.
9732 (push_namespace): Use std_identifier.
9733 (pop_namespace): Use in_fake_std.
9734 (lookup_name_real): Use fake_std_node.
9735 (init_decl_processing): When -fhonor-std, create the `std'
9736 namespace. Don't create a dummy fake_std_node in that case.
9737 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
9738 (builtin_function): Put builtins whose names don't begin
9739 with `_' in the std namespace.
9740 * decl2.c (flag_no_builtin): Remove.
9741 (flag_no_nonansi_builtin): Likewise.
9742 (set_decl_namespace): Use fake_std_node.
9743 (validate_nonmember_using_decl): Likewise.
9744 (do_using_directive): Likewise.
9745 (handle_class_head): Likewise.
9746 * dump.c (dequeue_and_dump): Likewise.
9747 * except.c (init_exception_processing): Use std_identifier.
9748 * init.c (build_member_call): Use fake_std_node.
9749 * rtti.c (init_rtti_processing): Use std_identifier.
5362b086 9750
67673f5c
MM
97512000-10-17 Mark Mitchell <mark@codesourcery.com>
9752
9753 * cp-tree.h (back_end_hook): Remove declaration.
9754 * decl2.c (back_end_hook): Remove definition.
9755
9756 * dump.c (dequeue_and_dump): Dump TREE_USED.
9757
8fef2e47
BL
9758Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
9759
9760 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
9761
652469d0
JM
97622000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
9763
9764 * decl.c (WINT_TYPE): Define.
9765 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
9766 c_size_type_node, signed_size_type_node and wint_type_node.
9767
74ff4629
JM
97682000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
9769
9770 * decl2.c (warn_missing_format_attribute): New variable.
9771 (lang_decode_option): Decode -Wmissing-format-attribute.
9772
634790f4
MM
97732000-10-16 Mark Mitchell <mark@codesourcery.com>
9774
9775 * typeck.c (qualify_type): Remove.
9776 (composite_pointer_type): Fix handling of conversions to `cv void*'.
9777
bb12da9d
KG
97782000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9779
9780 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
9781
4b945402
KG
97822000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9783
9784 * Makefile.in (parse.c, parse.h): Create atomically.
9785
1f8f4a0b
MM
97862000-10-12 Mark Mitchell <mark@codesourcery.com>
9787
9788 * class.c (current_obstack): Remove.
9789 * decl.c (ggc_p): Remove.
9790 (start_decl): Don't use decl_tree_cons.
9791 (grokdeclarator): Don't use build_decl_list.
9792 (start_function): Don't use decl_tree_cons.
9793 (finish_function): Don't mess with obstacks.
9794 * decl2.c (grok_x_components): Don't use build_decl_list.
9795 * lex.c (make_call_declarator): Don't call decl_tree_cons.
9796 (implicitly_declare_fn): Don't call build_decl_list.
9797 * parse.y (frob_specs): Don't call build_decl_list or
9798 decl_tree_cons.
9799 (expr_or_declarator_intern): Don't call decl_tree_cons.
9800 (primary): Don't call build_decl_list.
9801 (fcast_or_absdcl): Likewise.
9802 (typed_declspecs): Don't call decl_tree_cons.
9803 (reserved_declspecs): Don't call build_decl_list.
9804 (declmods): Likewise.
9805 (reserved_typespecquals): Likewise.
9806 (aggr): Likewise.
9807 (new_type_id): Likewise.
9808 (cv_qualifiers): Likewise.
9809 (after_type_declarator_intern): Likewise.
9810 (notype_declarator_intern): Likewise.
9811 (absdcl_intern): Likewise.
9812 (named_parm): Likewise.
9813 * pt.c (most_specialized_class): Likewise.
9814 * repo.c (temporary_obstack): Make it a structure, not a pointer.
9815 (init_repo): Initialize it.
9816 * search.c (current_obstack): Remove.
9817 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
5362b086 9818
8dc54971
RH
98192000-10-09 Richard Henderson <rth@cygnus.com>
9820
9821 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
9822 (c++ language support bits for libgcc): Remove.
9823 (c++.clean): Remove cplib2.txt cleanup.
9824 * config-lang.in (headers, lib2funcs): Remove.
9825
9826 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
9827 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
9828 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
9829 * inc/new.h, inc/typeinfo: Remove files.
9830
b15ad712
JM
98312000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
9832
9833 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
9834 defined.
9835 (init_decl_processing): Initialize intmax_type_node and
9836 uintmax_type_node.
9837
156ce211
RH
98382000-10-06 Richard Henderson <rth@cygnus.com>
9839
9840 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
9841 (original_result_rtx): Remove.
9842 * decl.c (save_function_data): Don't clear x_result_rtx.
9843 (mark_lang_function): Don't mark it either.
9844 * expr.c (fixup_result_decl): Remove.
9845 * semantics.c (genrtl_named_return_value): Frob the return decl
9846 before calling emit_local_var.
9847 (genrtl_finish_function): Don't call fixup_result_decl.
9848 Always emit the jump to return_label.
9849
92777ce4
NS
98502000-10-06 Nathan Sidwell <nathan@codesourcery.com>
9851
9852 * pt.c (lookup_template_class): Set current access for enum.
9853 (tsubst_enum): Set file & line for enum decl.
5362b086 9854
92777ce4
NS
9855 * spew.c (yylex): Remove unused variable.
9856
63c16fc5
RH
98572000-10-05 Richard Henderson <rth@cygnus.com>
9858
9859 * semantics.c (genrtl_finish_function): Don't init or check
9860 can_reach_end; remove noreturn and return value checks.
9861
d1a458c4
TT
98622000-10-05 Tom Tromey <tromey@cygnus.com>
9863
9864 * init.c (build_java_class_ref): Use `build_static_name' with a
9865 suffix, not a prefix, to build the class object's name.
9866
509fc277
NS
98672000-10-05 Nathan Sidwell <nathan@codesourcery.com>
9868
9869 * cp-tree.h (access_kind): Fix comment typo.
9870 * decl2.c (grokfield): Fix diagnostic typo.
9871 * semantics.c (finish_template_type): Fix comment typo.
9872 (finish_qualified_object_call_expr): Likewise.
9873
ce2e5191
NS
98742000-10-05 Nathan Sidwell <nathan@codesourcery.com>
9875
9876 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
5362b086 9877 tsubsting fails.
ce2e5191 9878
79cc5312
NS
98792000-10-05 Nathan Sidwell <nathan@codesourcery.com>
9880
9881 * spew.c (frob_id): New static function.
9882 (frob_opname): Use it.
9883 (yylex): Use it.
9884
f15b9af9
MM
98852000-10-01 Mark Mitchell <mark@codesourcery.com>
9886
9887 * decl.c (lang_mark_false_label_stack): Remove.
9888 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
5362b086 9889
28e6b1c2
JM
98902000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
9891
9892 * gxxint.texi: Use @email for formatting email addresses.
9893
99885b3f
GDR
98942000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
9895
9896 * error.c: Remove direct obstack manipulation. Replace with
9897 output_buffer-based formatting. Adjust calls to removed macros.
9898 (obstack_chunk_alloc, obstack_chunk_free): Remove.
9899 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
9900 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
9901
c06aa51e
MM
99022000-09-24 Mark Mitchell <mark@codesourcery.com>
9903
9904 * ir.texi: Move to ../c-tree.texi.
9905
99fada40
JM
99062000-09-20 Jason Merrill <jason@redhat.com>
9907
9908 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
9909
bb20cc46
AJ
99102000-09-21 Andreas Jaeger <aj@suse.de>
9911
9912 * errfn.c: Move declaration of cp_printer and cp_printers to ...
9913 * cp-tree.h: ... here.
9914
9915 * error.c: Remove declaration of cp_printer.
9916
fab701da
MM
99172000-09-20 Mark Mitchell <mark@codesourcery.com>
9918
9919 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
9920
0370fea1
HPN
99212000-09-20 Hans-Peter Nilsson <hp@axis.com>
9922
9923 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
9924 users.
9925
78c120b5
MM
99262000-09-18 Mark Mitchell <mark@codesourcery.com>
9927
9928 * decl.c (start_function): Robustify.
9929
3f80e6ac
KG
99302000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9931
9932 * cp-tree.h (check_function_format): Accept a `status' parameter.
bb20cc46 9933
3f80e6ac
KG
9934 * call.c, typeck.c: Updates calls to `check_function_format'.
9935
fc928afe
GK
99362000-09-17 Geoffrey Keating <geoffk@cygnus.com>
9937
9938 * decl2.c (handle_class_head): Always push some scope even
9939 in the error case.
9940
8f17b5c5
MM
99412000-09-16 Mark Mitchell <mark@codesourcery.com>
9942
9943 * cp-tree.h (struct cp_language_function): Remove
9944 x_scope_stmt_stack and name_declared.
9945 (current_scope_stmt_stack): Remove.
9946 (function_name_declared_p): New macro.
9947 (struct lang_decl_flags): Use c_lang_decl as a base class.
9948 (context): Remove.
9949 (struct lang_decl): Replace saved_tree with context.
9950 (DECL_FRIEND_CONTEXT): Adjust accordingly.
9951 (SET_DECL_FRIEND_CONTEXT): Likewise.
9952 (DECL_VIRTUAL_CONTEXT): Likewise.
9953 (DECL_SAVED_TREE): Remove.
9954 (C_DECLARED_LABEL_FLAG): Likewise.
9955 (cplus_expand_expr_stmt): Don't declare.
9956 (add_decl_stmt): Likewise.
9957 (add_scope_stmt): Likewise.
9958 * decl.c (mark_stmt_tree): Remove.
9959 (case_compare): Likewise.
9960 (finish_case_label): Use c_add_case_label.
9961 (init_decl_processing): Set more language-specific hooks.
9962 (build_enumerator): Fix typo in comment.
9963 (cplus_expand_expr_stmt): Remove.
9964 (mark_lang_function): Use mark_c_language_function.
9965 (lang_mark_tree): Use c_mark_lang_decl.
9966 * decl2.c: Change order of inclusion.
9967 * except.c: Likewise.
9968 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
9969 back on c_expand_expr.
9970 * friend.c: Include expr.h.
9971 * init.c: Change order of inclusion.
9972 * Makefile.in: Update dependencies.
9973 * lex.h (free_lang_decl_chain): Remove.
9974 * optimize.c (maybe_clone_body): Use function_name_declared_p.
9975 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
9976 it doesn't exist.
9977 (instantiate_decl): Use function_name_declared_p.
9978 * semantics.c (lang_expand_expr_stmt): Remove.
9979 (set_current_function_name_declared): Likewise.
9980 (current_function_name_declared): Likewise.
9981 (begin_compound_stmt): Use function_name_declared_p.
9982 (add_decl_stmt): Remove.
9983 (setup_vtbl_ptr): Use function_name_declared_p.
9984 (add_scope_stmt): Remove.
9985 (current_scope_stmt_stack): New function.
9986 (cp_expand_stmt): Don't handle SCOPE_STMTs.
9987 (expand_body): Use function_name_declared_p.
9988 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
9989 * typeck.c: Change order of includes.
9990 (convert_sequence): Remove.
bb20cc46 9991
d9dbd9b1
JM
99922000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
9993
9994 * lex.c (reswords): Add _Complex.
9995
9985f210
RK
9996Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9997
9998 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
9999
f903ebb1
DA
100002000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10001
10002 * init.c (begin_init_stmts): Don't use // comments.
10003
f2ae0c45
JM
100042000-09-12 Jason Merrill <jason@redhat.com>
10005
10006 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
10007 all non-extern arrays.
10008
10009 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
10010 typenames, too. Downgrade complaint to pedwarn.
10011 (xref_tag): Warn about surprising behavior of 'friend struct T'.
10012 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
10013 'class This::Inherited'.
10014
71ad4a16
MM
100152000-09-12 Mark Mitchell <mark@codesourcery.com>
10016
10017 * decl.c (finish_case_label): Given the LABEL_DECL a
10018 DECL_CONTEXT.
10019
c3e76028
GDR
100202000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
10021
10022 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
10023 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
10024 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
10025 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
10026 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
10027 New macros.
10028 (sorry_for_unsupported_tree, print_scope_operator,
10029 print_left_paren, print_right_paren, print_left_bracket,
10030 print_right_bracket, print_whitespace): Likewise.
10031 (aggr_variety): Rename to class_key_or_enum.
10032 (print_type): Rename to print_type_id.
10033 (print_type_specifier_seq, print_simple_type_specifier,
10034 print_elaborated_type_specifier,
10035 print_rest_of_abstract_declarator,
10036 print_parameter_declaration_clause, print_exception_specification,
10037 print_nested_name_specifier, print_template_id,
10038 typedef_original_name, print_template_argument_list_start,
10039 print_template_argument_list_end): New functions.
10040
eb50138b
GDR
100412000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
10042
a8a05998 10043 * ir.texi: Add more documentation.
eb50138b 10044
f444e36b
MM
100452000-09-11 Mark Mitchell <mark@codesourcery.com>
10046
10047 * cp-tree.h (struct saved_scope): Remove x_function_parms.
10048 (current_function_parms): Don't define.
10049 (struct cp_language_function): Remove parms_stored.
10050 (current_function_just_assigned_this): Don't define.
10051 (current_function_parms_stored): Likewise.
10052 (static_ctors): Declare.
10053 (static_dtors): Likewise.
10054 (SF_EXPAND): Don't define.
10055 (expand_start_early_try_stmts): Remove declaration.
10056 (store_parm_decls): Likewise.
10057 * decl.c (static_ctors): Don't declare.
10058 (static_dtors): Likewise.
10059 (struct binding_level): Remove this_block.
10060 (poplevel): Remove dead code.
10061 (set_block): Likewise.
10062 (mark_binding_level): Don't mark this_block.
10063 (mark_saved_scope): Don't mark x_function_parms.
10064 (init_decl_processing): Don't add current_function_parms as a GC
10065 root.
10066 (check_function_type): Change prototype.
10067 (start_function): Remove RTL-generation code.
10068 (expand_start_early_try_stmts): Remove.
10069 (store_parm_decls): Give it internal linkage. Remove
10070 RTL-generation code.
10071 (finish_function): Remove RTL-generation code.
10072 * decl2.c (static_ctors): Fix formatting.
10073 (static_dtors): Likewise.
10074 * method.c (use_thunk): Don't call store_parm_decls.
10075 (synthesize_method): Likewise.
10076 * optimize.c (maybe_clone_body): Likewise.
10077 * parse.y (fn.def2): Likewise.
10078 (.set_base_init): Likewise.
10079 (nodecls): Likewise.
10080 * pt.c (instantiate_decl): Likewise.
10081 * rtti.c (synthesize_tinfo_fn): Likewise.
10082 * semantics.c (genrtl_try_block): Simplify.
10083 (expand_body): Use genrtl_start_function and
10084 genrtl_finish_function.
10085 (genrtl_start_function): New function.
10086 (genrtl_finish_function): Likewise.
10087
181d2ba0
NS
100882000-09-11 Nathan Sidwell <nathan@codesourcery.com>
10089
10090 * error.c (cp_tree_printer, case 'P'): Append break.
10091
f2d71db6
NS
100922000-09-11 Nathan Sidwell <nathan@codesourcery.com>
10093
10094 * cp-tree.h (frob_opname): Declare.
10095 * parse.y (saved_scopes): New static variable.
10096 (cp_parse_init): Adjust.
10097 (do_id): If lastiddecl is NULL, do do_identifier.
10098 (operator): Save scope information.
aca77bd1 10099 (unoperator): New reduction. Restore scope information.
f2d71db6
NS
10100 (operator_name): Append unoperator. Call frob_opname.
10101 * spew.c (frob_opname): Define.
10102
d8ea8f28
ZW
101032000-09-10 Zack Weinberg <zack@wolery.cumb.org>
10104
10105 * decl.c, rtti.c: Include defaults.h if not already included.
10106 Don't define the *_TYPE_SIZE macros.
10107
56cb9733
MM
101082000-09-09 Mark Mitchell <mark@codesourcery.com>
10109
10110 * cp-tree.h (push_switch): Change prototype.
10111 (check_cp_case_value): Remove declaration.
10112 (decl_constant_value): Likewise.
10113 * decl.c (struct cp_switch): Add switch_stmt and cases.
10114 (case_compare): New function.
10115 (push_switch): Set switch_stmt. Initialize cases.
10116 (pop_switch): Clean up cases.
10117 (define_case_label): Rename to ...
10118 (finish_case_label): ... this. Do semantic analysis for case
10119 labels here.
10120 (start_function): Correct comment.
10121 * decl2.c (check_cp_case_value): Remove.
10122 * expr.c (do_case): Remove.
10123 * pt.c (tsubst_expr): Adjust call to finish_case_label.
10124 * semantics.c (genrtl_do_poplevel): Remove declaration.
10125 (RECHAIN_STMTS): Remove.
10126 (finish_break_stmt): Use build_break_stmt.
10127 (finish_continue_stmt): Use build_continue_stmt.
10128 (finish_switch_cond): Adjust condition here, rater than in
10129 c_expand_start_case.
10130 (finish_case_label): Remove.
10131 * typeck.c (c_expand_return): Remove.
10132 (c_expand_start_case): Likewise.
bb20cc46 10133
990a9693
GDR
101342000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
10135
10136 * ir.texi: Document type nodes.
10137
ae499cce
MM
101382000-09-06 Mark Mitchell <mark@codesourcery.com>
10139
54f7877c
MM
10140 * cp-tree.h (init_cp_semantics): Declare.
10141 (genrtl_try_block): Don't declare.
10142 (genrtl_handler): Likewise.
10143 (genrtl_catch_block): Likewise.
10144 (genrtl_ctor_stmt): Likewise.
10145 (genrtl_subobject): Likewise.
10146 (genrtl_do_poplevel): Likewise.
10147 (genrtl_named_return_value): Likewise.
10148 * lex.c (init_parse): Call init_cp_semantics.
10149 * semantics.c (genrtl_try_block): Give it internal linkage.
10150 (genrtl_handler): Likewise.
10151 (genrtl_catch_block): Likewise.
10152 (genrtl_ctor_stmt): Likewise.
10153 (genrtl_subobject): Likewise.
10154 (genrtl_do_poplevel): Likewise.
10155 (genrtl_named_return_value): Likewise.
10156 (lang_expand_stmt): Rename to ...
10157 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
10158 (init_cp_semantics): Define.
10159
3a0d3e1e
MM
10160 * decl.c (initialize_local_var): Remove RTL-generating code.
10161 * semantics.c (genrtl_try_block): Fix formatting.
10162
ae499cce
MM
10163 Move statement-tree facilities from C++ to C front-end.
10164 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
10165 (void_zero_node): Remove.
10166 (stmt_tree): Likewise.
10167 (scope_chain): Adjust.
10168 (language_function): Rename to cp_language_function.
10169 (cp_function_chain): Adjust.
10170 (current_stmt_tree): Remove.
10171 (last_tree): Likewise.
10172 (last_expr_type): Likewise.
10173 (struct lang_decl): Adjust.
10174 (STMT_IS_FULL_EXPR_P): Remove.
10175 (add_tree): Remove.
10176 (begin_stmt_tree): Likewise.
10177 (finish_stmt_tree): Likewise.
10178 (walk_tree_fn): Likewise.
10179 (walk_stmt_tree): Likewise.
10180 * class.c (finish_struct): Replace use of add_tree with add_stmt.
10181 * decl.c (mark_stmt_tree): Adjust type.
10182 (init_decl_processing): Don't build void_zero_node.
10183 (initialize_local_var): Adjust usage of current_stmt_tree.
10184 (finish_enum): Use add_stmt, not add_tree.
10185 (save_function_data): Adjust use of language_function.
10186 (finish_constructor_body): Use add_stmt, not add_tree.
10187 (finish_destructor_body): Likewise.
10188 (push_cp_function_context): Adjust use of language_function.
10189 (pop_cp_function_context): Likewise.
10190 (mark_lang_function): Likewise.
10191 (mark_cp_function_context): Likewise.
10192 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
10193 (build_vec_init): Likewise.
10194 * semantics.c (SET_LAST_STMT): Remove.
10195 (RECHAIN_STMTS): Don't use it.
10196 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
10197 (current_stmt_tree): Define.
10198 (add_tree): Remove.
10199 (finish_goto_stmt): Use add_stmt, not add_tree.
10200 (finish_expr_stmt): Likewise.
10201 (begin_if_stmt): Likewise.
10202 (finish_then_clause): Likewise.
10203 (begin_while_stmt): Likewise.
10204 (begin_do_stmt): Likewise.
10205 (finish_return_stmt): Likewise.
10206 (begin_for_stmt): Likewise.
10207 (finish_break_stmt): Likewise.
10208 (finish_continue_stmt): Likewise.
10209 (begin_switch_stmt): Likewise.
10210 (finish_case_label): Likewise.
10211 (begin_try_block): Likewise.
10212 (begin_function_try_block): Likewise.
10213 (begin_handler): Likewise.
10214 (begin_catch_block): Likewise.
10215 (begin_compound_stmt): Likewise.
10216 (begin_asm_stmt): Likewise.
10217 (finish_asm_stmt): Likewise.
10218 (finish_label_stmt): Likewise.
10219 (add_decl_stmt): Likewise.
10220 (finish_subobject): Likewise.
10221 (finish_decl_cleanup): Likewise.
10222 (finish_named_return_value): Likewise.
10223 (setup_vtbl_ptr): Likewise.
10224 (add_scope_stmt): Likewise.
10225 (finish_stmt_expr): Likewise.
10226 (prune_unused_decls): Remove.
10227 (begin_stmt_tree): Likewise.
10228 (finish_stmt_tree): Likewise.
10229 (prep_stmt): Adjust use of current_stmt_tree.
10230 (lang_expand_stmt): Likewise.
10231 * tree.c (statement_code_p): Remove.
10232 (cp_statement_code_p): New function.
10233 (walk_stmt_tree): Remove.
10234 (init_tree): Set lang_statement_code_p.
bb20cc46 10235
0e5921e8
ZW
102362000-09-06 Zack Weinberg <zack@wolery.cumb.org>
10237
10238 Integrated preprocessor.
10239
10240 * Make-lang.in, Makefile.in: Remove all references to input.c,
10241 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
10242 * gxx.gperf, hash.h, input.c: Delete.
10243 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
10244 initialized properly.
10245
10246 * class.c (fixup_pending_inline): Take a tree, not a
10247 struct pending_inline *. All callers changed.
10248 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
10249 RID_PROTECTED entries in ridpointers[] array here.
10250 * decl.c (duplicate_decls): Do not refer to struct
10251 pending_inline.
10252 (record_builtin_type, init_decl_processing): Use RID_MAX not
10253 CP_RID_MAX.
10254 (grokdeclarator): Use C_IS_RESERVED_WORD.
10255 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
10256 cpplib.
10257 (grok_x_components): Do not inspect pending_inlines chain.
10258
10259 * cp-tree.h (struct lang_identifier): Add rid_code entry.
10260 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
10261 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
10262 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
10263 TIME_IDENTIFIER_FILEINFO): Kill.
10264 Update prototypes.
10265 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
10266 single 32-bit word.
10267 * parse.y: Call do_pending_inlines unconditionally.
10268 reinit_parse_for_method is now snarf_method. fn.defpen is no
10269 longer necessary. Remove unnecessary <itype> annotation on
10270 SCOPE. Do not refer to end_of_file or struct pending_inline.
10271 * semantics.c (begin_inline_definitions): Call
10272 do_pending_inlines unconditionally.
10273
10274 * lex.c: Remove all code now shared with C front end.
10275 Initialize cpplib properly if USE_CPPLIB. Put reserved words
10276 into the get_identifier table. Rewrite pragma handling to
10277 work with the registry. Move code to save tokens for later
10278 processing to spew.c.
10279
10280 * spew.c: Rewrite everything in terms of token streams instead
10281 of text. Move routines here from lex.c / input.c as
10282 appropriate. GC-mark trees hanging off the pending inlines
10283 chain.
10284
44835fdd
MM
102852000-09-06 Mark Mitchell <mark@codesourcery.com>
10286
10287 * NEWS: Mention that the named return value extension has been
10288 deprecated.
10289 * cp-tree.h (original_result_rtx): Define.
10290 (TREE_REFERENCE_EXPR): Remove.
10291 (DECL_VPARENT): Likewise.
10292 (pushdecl_nonclass_level): Likewise.
10293 (store_return_init): Likewise.
10294 (reinit_lang_specific): Likewise.
10295 (genrtl_named_return_value): Change prototype.
10296 * decl.c (original_result_rtx): Remove.
10297 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
10298 Do not generate RTL for local variables here.
10299 (store_return_init): Remove.
10300 * semantics.c (genrtl_named_return_value): Simplify. Fold in
10301 store_return_init.
10302 (finish_named_return_value): Adjust accordingly. Warn that this
10303 extension is deprecated.
10304 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
10305
d7c4edd0
NS
103062000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10307
10308 * pt.c (type_unification_real): Replace switch with if.
10309 (unify): Tsubst non-type parms before comparing.
10310
46e2747c
NS
103112000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10312
10313 * error.c (dump_typename): New function, broken out of ...
10314 (dump_type): ... here. Use it.
10315 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
10316
c833d2be
NS
103172000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10318
10319 * init.c (build_offset_ref): Deal with namespace scoped
10320 TEMPLATE_ID_EXPRs.
10321
b1ce3eb2
NS
103222000-09-06 Nathan Sidwell <nathan@codesourcery.com>
10323
10324 * class.c (resolve_address_of_overloaded_function): Add
10325 explanation message.
10326 * decl.c (define_case_label): Reformat explanation.
10327 * decl2.c (finish_static_data_member_decl): Likewise.
10328 (grokfield): Likewise.
10329 * friend.c (do_friend): Likewise.
10330
11f53b6a
ZW
103312000-09-05 Zack Weinberg <zack@wolery.cumb.org>
10332
10333 * tree.c (walk_tree): Expose tail recursion.
10334 (walk_stmt_tree): New function.
10335 * cp-tree.h: Prototype walk_stmt_tree.
10336 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
10337 the BLOCKs directly. If a BLOCK has no variables after
10338 pruning, discard it.
10339 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
10340 restore the line number.
10341
ee94fce6
MM
103422000-09-05 Mark Mitchell <mark@codesourcery.com>
10343
10344 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
10345 (pt.o): Remove dependency on HTAB_H.
10346 * cp-tree.h: Include hashtab.h.
10347 (walk_tree): Change prototype.
10348 (walk_tree_without_duplicates): New function.
10349 * decl.c (check_default_argument): Use it.
10350 * optimize.c (remap_decl): Adjust calls to walk_tree.
10351 (copy_body): Likewise.
10352 (expand_calls_inline): Likewise.
10353 (calls_setjmp_p): Use walk_tree_without_duplicates.
10354 * pt.c: Don't include hashtab.h.
10355 (for_each_template_parm): Use walk_tree_without_duplicates.
10356 * semantics.c (finish-stmt_tree): Likewise.
10357 (expand_body): Likewise.
10358 * tree.c (walk_tree): Add additional parameter.
10359 (walk_tree_without_duplicates): New function.
10360 (count_trees): Use it.
10361 (verify_stmt_tree): Adjust call to walk_tree.
10362 (find_tree): Use walk_tree_without_duplicates.
10363 (no_linkage_check): Likewise.
10364 (break_out_target_exprs): Adjust call to walk_tree.
10365 (cp_unsave): Likewise.
10366
a1281f45
KL
103672000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10368
10369 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
10370 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
10371 * cp-tree.h (TYPE_BINFO): Adjust comment.
10372 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
10373 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
10374 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
10375 (TYPE_TEMPLATE_INFO): Likewise.
10376 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
10377 * class.c (push_nested_class): Likewise.
10378 * decl.c (lookup_name_real): Likewise.
10379 (grokdeclarator): Likewise.
10380 (grok_op_properties): Likewise.
10381 (xref_tag): Likewise.
10382 (xref_basetypes): Likewise.
10383 * decl2.c (constructor_name_full): Likewise.
10384 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
10385 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
10386 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
10387 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10388 (dump_type_suffix): Likewise.
10389 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
10390 instead.
10391 (get_aggr_from_typedef): Likewise.
10392 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
10393 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10394 (write_template_parm): Likewise.
10395 (write_template_template_parm): Check tree code instead of
10396 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
0e5921e8 10397 * method.c (build_overload_nested_name): Add
a1281f45
KL
10398 BOUND_TEMPLATE_TEMPLATE_PARM.
10399 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
10400 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10401 * pt.c (convert_template_argument): Check tree code instead of
10402 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
10403 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
10404 (for_each_template_parm): Adjust comment.
10405 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
10406 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10407 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
10408 template_args_equal to compare template template parameter cases.
10409 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10410 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
10411 instead.
10412 * tree.c (copy_template_template_parm): Decide whether to create
10413 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
10414 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
10415 (copy_tree_r): Likewise.
10416 * typeck.c (comptypes): Likewise. Check tree code instead of
10417 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
10418
c9672d45
ME
104192000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
10420
10421 * decl.c (finish_function): Move the code for handling functions
10422 marked with the constructor and destructor attributes inside the
10423 expand_p block.
10424
67804825
NS
104252000-09-04 Nathan Sidwell <nathan@codesourcery.com>
10426
10427 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
10428
1bc0793e
NS
104292000-09-04 Nathan Sidwell <nathan@codesourcery.com>
10430
10431 * pt.c (lookup_template_class): Remove abort.
10432 * tree.c (get_type_decl): Allow error_mark_node.
10433
3338663b
NS
104342000-09-04 Nathan Sidwell <nathan@codesourcery.com>
10435
10436 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
10437 TEMPLATE_ID_EXPRs.
10438
1b84dc37
MM
104392000-09-03 Mark Mitchell <mark@codesourcery.com>
10440
10441 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
c9672d45 10442 new ABI mangling.
1b84dc37 10443
9687f8f4
NS
104442000-09-01 Nathan Sidwell <nathan@codesourcery.com>
10445
10446 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
c9672d45 10447 union tag mismatch error reporting.
9687f8f4 10448
4f8025eb
NS
104492000-09-01 Nathan Sidwell <nathan@codesourcery.com>
10450
c9672d45 10451 * call.c (build_scoped_method_call): Check it is not a namespace.
4f8025eb 10452
495d26d6
JM
104532000-08-30 Jason Merrill <jason@redhat.com>
10454
10455 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
10456
10457 * tree.c (bot_manip): Check TREE_CONSTANT rather than
10458 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
10459 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
10460
10461 * decl.c (start_function): Always call make_function_rtl.
10462
7efcf466
ZW
104632000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10464
495d26d6 10465 * semantics.c (prune_unused_decls): New function.
7efcf466
ZW
10466 (finish_stmt_tree): Call it via walk_tree.
10467
63ad61ed
ZW
104682000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10469
10470 * class.c (build_secondary_vtable): Constify a char *.
10471 * decl.c (init_decl_processing): Initialize function_id_node,
10472 pretty_function_id_node, and func_id_node.
10473 * input.c (struct input_source): Constify 'str'.
10474 (feed_input): Constify first argument.
10475 * mangle.c (write_identifier): Constify argument.
10476 * pt.c (mangle_class_name_for_template): Constify argument.
10477
4361b41d
MM
104782000-08-29 Mark Mitchell <mark@codesourcery.com>
10479
10480 * typeck.c (mark_addressable): Remove code that pokes around in
10481 RTL.
10482
881c6935
JM
104832000-08-28 Jason Merrill <jason@redhat.com>
10484
10485 * lex.c (file_name_nondirectory): Move to toplev.c.
10486
10487 * cp-tree.h (LOCAL_CLASS_P): New macro.
10488 * class.c (finish_struct_1): Use it.
10489
f0f33848
AS
104902000-08-27 Alex Samuel <samuel@codesourcery.com>
10491
10492 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
10493 (write_encoding): Pass another argument to write_name.
10494 (write_name): Add ignore_local_scope parameter. Fix handling of
10495 local names.
10496 (write_nested_name): Use write_unqualified_name.
10497 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
10498 (write_template_prefix): Use write_unqualified_name.
10499 (write_component): Remove.
10500 (write_local_name): Add parameter. Use direct local entity to
10501 discriminator calculation.
0e5921e8 10502 (write_class_enum_type): Pass another argument to write_name.
f0f33848
AS
10503 (write_template_template_arg): Likewise.
10504 (make_guard_variable): Likewise.
0e5921e8 10505
94dfccd1
JM
105062000-08-27 Jason Merrill <jason@redhat.com>
10507
10508 * decl.c (pushdecl): Matching decls for local externs are found in
10509 the current level. Propagate linkage information from previous
10510 declarations.
10511
14fdf4b6
GDR
105122000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
10513
10514 * ir.texi (Expressions): Fix typo.
10515
b5232c64
GM
105162000-08-25 Greg McGary <greg@mcgary.org>
10517
10518 * tree.c (init_tree): Use ARRAY_SIZE.
10519
22a4158c
GDR
105202000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
10521
10522 * error.c (cp_tree_printer): Rework.
10523
f22967f3
MM
105242000-08-25 Mark Mitchell <mark@codesourcery.com>
10525
a0c182fe
MM
10526 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
10527 dyn-string.o.
10528 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
10529 (cp-demangle.o): Remove target.
10530 (dyn-string.o): Likewise.
10531
f22967f3
MM
10532 * decl.c (grokfndecl): Require that `main' return an `int'.
10533 * mangle.c (write_encoding): Don't mangle return types for
10534 conversion functions.
10535
a1066c99
GDR
105362000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
10537
10538 * error.c (tree_formatting_info): New data type.
10539 (tree_being_formatted): New macro.
10540 (tree_formatting_flags): Likewise.
10541 (put_whitespace): Likewise.
10542 (print_tree_identifier): Likewise.
10543 (print_identifier): Likewise.
10544 (cp_tree_printer, print_function_argument_list, print_declaration,
10545 print_expression, print_function_declaration,
10546 print_function_parameter, print_type, print_cv_qualifier): New
0e5921e8 10547 functions.
a1066c99
GDR
10548 (init_error): Initialize lang_printer.
10549
3f2b640a
JM
105502000-08-24 Jason Merrill <jason@redhat.com>
10551
10552 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
10553 adjustment necessary.
10554
7ec09bf7
GM
105552000-08-24 Greg McGary <greg@mcgary.org>
10556
10557 * cp-tree.h (MAIN_NAME_P): Remove macro.
10558
2ab99c46
GDR
105592000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
10560
10561 * error.c (print_instantiation_context): Don't forget to flush the
10562 buffer.
10563
7def1251
JM
105642000-08-23 Jason Merrill <jason@redhat.com>
10565
10566 * typeck.c (build_ptrmemfunc): Save the input pmf.
10567
10568 * method.c (process_modifiers): Use same_type_p.
10569
94350948
MM
105702000-08-23 Mark Mitchell <mark@codesourcery.com>
10571
10572 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
10573 * mangle.c (write_function_type): Change prototype.
10574 (write_encoding): Don't mangle return types for
10575 constructors or destructors.
10576 (write_type): Adjust call to write_function_type.
10577 * pt.c (instantiate_template): Instantiate alternate entry points
10578 when instantiating the main function.
0e5921e8 10579
a64e7329
GDR
105802000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
10581
10582 * error.c (cp_print_error_function): Don't use embedded '\n' in
0e5921e8 10583 output_printf.
a64e7329 10584
a72462a4
GDR
105852000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
10586
10587 * decl.c (init_decl_processing): Remove bogus initialization.
10588 * error.c (lang_print_error_function): Restore here.
0e5921e8
ZW
10589 (init_error): Initialize print_error_function.
10590
3add6264
TP
105912000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10592
10593 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
10594
cb753e49
GDR
105952000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
10596
10597 * Makefile.in (error.o): Depends on diagnostic.h
10598
10599 * cp-tree.h (problematic_instantiation_changed,
10600 record_last_problematic_instantiation, current_instantiation,
10601 print_instantiation_context): Declare.
10602 (maybe_print_template_context): Remove.
10603
10604 * decl.c (init_decl_processing): Set print_error_function to NULL.
10605 (lang_print_error_function): Remove, since we're using a new
10606 machinery.
10607
10608 * error.c: #include diagnostic.h
10609 (function_category): New function.
10610 (cp_diagnostic_starter): Likewise.
10611 (cp_diagnostic_finalizer): Likewise.
10612 (cp_print_error_function): Likewise.
10613 (maybe_print_instantiation_context): Likewise.
10614 (print_instantiation_full_context): Likewise.
10615 (print_instantiation_partial_context): Likewise.
10616 (print_instantiation_context): Define.
10617 (init_error): Initialize diagnostic pager and finalizer.
10618
10619 * pt.c (problematic_instantiation_changed): Define.
10620 (record_last_problematic_instantiation): Likewise.
10621 (current_instantiation): Likewise.
10622 (maybe_print_template_context): Remove.
10623 (print_template_context): Likewise.
10624 (current_tinst_level): Make static to reflect Brendan Kehoe's
10625 change of 1995-04-13.
0e5921e8
ZW
10626 (push_tinst_level): Call print_instantiation_context.
10627
05a3d06e 106282000-08-21 Nix <nix@esperi.demon.co.uk>
0e5921e8 10629
05a3d06e
N
10630 * lang-specs.h: Do not process -o or run the assembler if
10631 -fsyntax-only.
10632
93e2382f
JM
106332000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
10634
10635 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
10636 variables.
10637 * decl2.c (lang_decode_option): Disable gettext attributes for
10638 -ansi.
10639
24805e80
GDR
106402000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
10641
10642 * lex.c (lang_init_options): Default diagnostic message maximum
10643 length to 80, when line-wrapping.
10644
b485e15b
MM
106452000-08-20 Mark Mitchell <mark@codesourcery.com>
10646
10647 * class.c (build_vtbl_initializer): Clear the entire
10648 vtbl_init_data. Start keeping track of the functions for which we
10649 have created vcall offsets here.
10650 (dfs_build_vcall_offset_vtbl_entries): Remove.
10651 (build_vcall_offset_vtbl_entries): Reimplement.
10652 (add_vcall_offset_vtbl_entries_r): New function.
10653 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
10654 computing when vcall offsets are necessary.
10655
2ae7bada
NS
106562000-08-18 Nathan Sidwell <nathan@codesourcery.com>
10657
10658 * decl.c (member_function_or_else): Use cp_error ... %T.
10659 (grokdeclarator): Likewise.
10660 (start_method): Likewise.
0e5921e8 10661 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
2ae7bada 10662
7a8b1375
NS
106632000-08-18 Nathan Sidwell <nathan@codesourcery.com>
10664
10665 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
0e5921e8 10666 TYPE_DECLs.
7a8b1375 10667
19420d00
NS
106682000-08-18 Nathan Sidwell <nathan@codesourcery.com>
10669
10670 * cp-tree.h (PTRMEM_OK_P): New macro.
10671 (itf_ptrmem_ok): New enumeration value.
10672 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
10673 argument. Diagnose implicit pointer to member.
10674 (instantiate_type): Don't diagnose implicit pointer to member
10675 here. Pass itf_ptrmem_ok if ok. Adjust calls to
10676 resolve_address_of_overloaded_function.
10677 * init.c (build_offset_ref): Set PTRMEM_OK_P.
10678 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
10679 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
10680 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
10681 (build_unary_op): Deal with single non-static member in
10682 microsoft-land.
10683
66081283
NS
106842000-08-18 Nathan Sidwell <nathan@codesourcery.com>
10685
10686 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
10687
fa40aa12
NS
106882000-08-18 Nathan Sidwell <nathan@codesourcery.com>
10689
10690 * cp-tree.h (enum_name_string): Remove prototype.
10691 (report_case_error): Remove prototype.
10692 * cp/typeck2.c (enum_name_string): Remove.
10693 (report_case_error): Remove.
10694 * error.c (dump_expr): Deal with enum values directly.
10695 Correctly negate integer constant.
10696
d13b34e9
NS
106972000-08-17 Nathan Sidwell <nathan@codesourcery.com>
10698
10699 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
10700 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
10701 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
10702 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
10703 (__cxa_vec_new): Use __cxa_vec_new2.
10704 (__cxa_vec_delete): Use __cxa_vec_delete2.
10705
2f1b80af
NS
107062000-08-17 Nathan Sidwell <nathan@codesourcery.com>
10707
10708 * vec.cc (__cxa_vec_new): Set "C" linkage.
10709 (__cxa_vec_ctor): Likewise.
10710 (__cxa_vec_cctor): Likewise.
10711 (__cxa_vec_dtor): Likewise.
10712 (__cxa_vec_delete): Likewise.
10713 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
10714 (__cxa_vec_ctor): Likewise.
10715 (__cxa_vec_cctor): Likewise.
10716 (__cxa_vec_dtor): Likewise.
10717 (__cxa_vec_delete): Likewise.
10718
105d8e1f
NS
107192000-08-17 Nathan Sidwell <nathan@codesourcery.com>
10720
10721 * class.c (instantiate_type): Reinstate local variable
10722 deleted in previous change.
0e5921e8 10723
f1819d9a
NS
10724 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
10725 itf_no_attributes.
105d8e1f 10726
5e76004e
NS
107272000-08-17 Nathan Sidwell <nathan@codesourcery.com>
10728
10729 * cp-tree.h (instantiate_type_flags): New enumeration.
10730 (instantiate_type): Change parameter.
10731 * class.c (instantiate_type): Adjust prototype. Adjust.
10732 * call.c (standard_conversion): Adjust instantiate_type call.
10733 (reference_binding): Likewise.
10734 (build_op_delete_call): Likewise.
10735 (convert_like_real): Likewise.
10736 * cvt.c (cp_convert_to_pointer): Likewise.
10737 (convert_to_reference): Likewise.
10738 * pt.c (convert_nontype_argument): Likewise.
10739 * typeck.c (build_binary_op): Likewise.
10740 (build_ptrmemfunc): Likewise.
10741 (convert_for_assignment): Likewise.
10742
4b054b80
NS
107432000-08-17 Nathan Sidwell <nathan@codesourcery.com>
10744
10745 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
10746 (current_aggr): Define.
10747 * decl.c (grokdeclarator): Make sure a friend class is an
10748 elaborated type specifier.
10749 * parse.y (current_aggr): Remove static definition.
10750 (cp_parse_init): Adjust.
10751 (structsp): Clear and restore current_aggr.
10752 (component_decl_list): Clear current_aggr.
0e5921e8 10753
4b054b80
NS
10754 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
10755 aggregate tag on the typename's context.
0e5921e8 10756
321cba97
NS
10757 * pt.c (tsubst_friend_class): Return error_mark_node, if
10758 parms becomes NULL.
10759 (instantiate_class_template): Ignore error_mark_node friend types.
4b054b80 10760
08aead78
NS
107612000-08-14 Nathan Sidwell <nathan@codesourcery.com>
10762
10763 * cvt.c (warn_ref_binding): New static function, broken out of ...
0e5921e8 10764 (convert_to_reference): ... here. Use it.
08aead78 10765
fa1f3ebc
KL
107662000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
10767
10768 * parse.y (template_arg): Add rule for template qualified with
10769 global scope.
10770
9845b52b
TP
107712000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10772
10773 * decl2.c (add_function): Reorganize.
10774 (arg_assoc): Do not consider function template decls.
10775
e69c8072
JM
107762000-08-11 Jason Merrill <jason@redhat.com>
10777
10778 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
10779 looking inside.
10780
5c1e5476
NS
107812000-08-11 Nathan Sidwell <nathan@codesourcery.com>
10782
10783 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
10784 (lookup_nested_tag): Likewise.
0e5921e8 10785
5c1e5476
NS
10786 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
10787 can be produced.
10788
5426aa7f
NS
107892000-08-11 Nathan Sidwell <nathan@codesourcery.com>
10790
10791 * parse.y (named_complex_class_head_sans_basetype): Remove
10792 always true if.
10793
fd037e0d
NS
107942000-08-11 Nathan Sidwell <nathan@codesourcery.com>
10795
10796 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
10797 explicit TEMPLATE_ID_EXPR args.
10798 (build_expr_from_tree, case CALL_EXPR): Likewise.
10799
73ae5c34
NS
108002000-08-11 Nathan Sidwell <nathan@codesourcery.com>
10801
10802 * decl.c (check_tag_decl): Diagnose typename's which don't
10803 declare anything.
10804
aa54df09
NS
108052000-08-10 Nathan Sidwell <nathan@codesourcery.com>
10806
10807 * init.c (build_aggr_init): Reject bogus array initializers
10808 early.
10809
7e8dad18
NS
108102000-08-09 Nathan Sidwell <nathan@codesourcery.com>
10811
10812 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
10813 runtime.
10814 * cp/tinfo.cc (__dynamic_cast): Likewise.
0e5921e8 10815 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7e8dad18 10816
0f586b9b
NS
108172000-08-09 Nathan Sidwell <nathan@codesourcery.com>
10818
10819 * cvt.c (convert_to_pointer_force): Fix error message when
0e5921e8 10820 attempting to cast from ambiguous base.
0f586b9b 10821
08e72a19
JM
108222000-08-08 Jason Merrill <jason@redhat.com>
10823
10824 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
10825 (tsubst_template_arg_vector): Likewise.
10826
10827 * decl2.c (build_anon_union_vars): Choose the largest field; don't
10828 assume that one will be as large as the union.
10829
0811ea8f
KH
108302000-08-07 Kazu Hirata <kazu@hxi.com>
10831
10832 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
10833 * decl.c (pop_labels): Likewise.
10834
f9fcf62b
JO
108352000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
10836
10837 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
10838 specifications.
10839 (__pointer_to_member_type_info): Likewise.
10840 (__base_class_info): Likewise.
10841 (__class_type_info): Likewise.
10842 (__si_class_type_info): Likewise.
10843 (__vmi_class_type_info): Likewise.
10844 * tinfo.cc (__si_class_type_info::__do_find_public_src):
10845 Changed member names to match specifications.
10846 (__vmi_class_type_info::__do_find_public_src): Likewise.
10847 (__si_class_type_info::__do_dyncast): Likewise.
10848 (__vmi_class_type_info::__do_dyncast): Likewise.
10849 (__si_class_type_info::__do_upcast): Likewise.
10850 (__vmi_class_type_info::__do_upcast): Likewise.
10851 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
10852 (__pbase_type_info::__pointer_catch): Likewise.
10853 (__pointer_type_info::__pointer_catch): Likewise.
10854 (__pointer_to_member_type_info::__pointer_catch): Likewise.
10855
a36556a8
ZW
108562000-08-04 Zack Weinberg <zack@wolery.cumb.org>
10857
0e5921e8
ZW
10858 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
10859 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
10860 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
a36556a8 10861
452a394b
MM
108622000-08-04 Mark Mitchell <mark@codesourcery.com>
10863
10864 * cp-tree.h (add_method): Change prototype.
10865 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
10866 Don't double the size of the method vector in the error case.
10867 (handle_using_decl): Adjust call to add_method.
10868 (add_implicitly_declared_members): Likewise.
10869 (clone_function_decl): Likewise.
10870 * decl2.c (check_classfn): Likewise.
10871 * semantics.c (finish_member_declaration): Likewise.
0e5921e8 10872
b8458e3e
JM
108732000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
10874
10875 * decl.c (flag_isoc94): New variable.
10876
a1bcc528
JM
108772000-08-02 Jason Merrill <jason@redhat.com>
10878
10879 * pt.c (do_type_instantiation): Add complain parm; don't complain
10880 if called recursively.
10881 * cp-tree.h, parse.y: Adjust.
10882
50e60bc3
ZW
108832000-08-02 Zack Weinberg <zack@wolery.cumb.org>
10884
eae51189
ZW
10885 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
10886 -Wno-strict-prototypes.
10887
37620334
ZW
10888 * g++spec.c: Adjust type of second argument to
10889 lang_specific_driver, and update code as necessary.
10890
50e60bc3
ZW
10891 * cp-tree.h: Don't prototype min_precision here.
10892 (my_friendly_assert): Cast expression to void.
10893 * semantics.c (do_poplevel): Initialize scope_stmts.
10894
3f954fc3
MM
108952000-08-02 Mark Mitchell <mark@codesourcery.com>
10896
10897 * cp-tree.h (DECL_NEEDED_P): Tweak.
10898
ab4fa7ed
JM
108992000-07-28 Jason Merrill <jason@redhat.com>
10900
10901 * lang-specs.h: Use %i in rule for .ii files.
10902
4871239e
ZW
109032000-07-31 Zack Weinberg <zack@wolery.cumb.org>
10904
10905 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
10906
911a71a7
MM
109072000-07-30 Mark Mitchell <mark@codesourcery.com>
10908
10909 Allow indirect primary bases.
10910 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
10911 primary_base.
10912 (CLASSTYPE_VFIELD_PARENT): Remove.
10913 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
10914 (BINFO_PRIMARY_BINFO): Remove.
10915 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
10916 (BINFO_VBASE_PRIMARY_P): Likewise.
10917 (BINFO_PRIMARY_BASE_OF): New macro.
10918 (BINFO_INDIRECT_PRIMARY_P): Likewise.
10919 (get_primary_binfo): New function.
10920 * decl.c (lang_mark_tree): Make lang_type::primary_base.
10921 * class.c (vcall_offset_data_s): Rename to ...
10922 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
10923 and add ctor_vtbl_p.
10924 (get_derived_offset): Use get_primary_binfo.
10925 (dfs_mark_primary_bases): Adjust handling of virtual primary
10926 bases.
10927 (mark_primary_bases): Likewise.
10928 (set_primary_base): Take a binfo, not an integer, as a
10929 representation of the primary base.
10930 (indirect_primary_base_p): Remove.
10931 (determine_primary_base): Adjust for indirect primary bases.
10932 (dfs_find_final_overrider): Fix typo in coment.
10933 (update_vtable_entry_for_fn): Use get_primary_binfo.
10934 (layout_nonempty_base_or_field): Tweak.
10935 (build_base_fields): Adjust for new primary base semantics.
10936 (dfs_propagate_binfo_offsets): Remove.
10937 (propagate_binfo_offsets): Rewrite.
10938 (dfs_set_offset_for_shared_vbases): Remove.
10939 (layout_virtual_bases): Don't use it.
10940 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
10941 ABI.
10942 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
10943 CLASSTYPE_VFIELD_PARENT.
10944 (dfs_get_primary_binfo): New function.
10945 (get_primary_binfo): Likewise.
10946 (dump_class_hierarchy_r): Tweak printing of primary bases.
10947 (build_vtbl_initializer): Fix typo in comments. Use
10948 vtbl_init_data.
10949 (build_vcall_and_vbase_vtbl_entries): Likewise.
10950 (build_vbaes_offset_vtbl_entries): Likewise.
10951 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
10952 BV_VCALL_INDEX to handle indirect primary bases.
10953 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
10954 (build_rtti_vtbl_entries): Likewise.
10955 * search.c (get_shared_vbase_if_not_primary): Tweak.
10956 (find_vbase_instance): Likewise.
10957 (binfo_for_vtable): Simplify.
10958 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
10959 (make_binfo): Make it have 11 entries.
0e5921e8 10960
722bed0f
AS
109612000-07-30 Alex Samuel <samuel@codesourcery.com>
10962
10963 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
10964 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
10965 ascertaining primaryness.
10966 (G): Remove template_args.
10967 (decl_is_template_id): New function.
10968 (write_encoding): Use decl_is_template_id.
10969 (write_name): Likewise. Handle type_decls. Get main variant of
10970 type decls.
10971 (write_nested_name): Likewise.
10972 (write_prefix): Likewise.
10973 (write_template_prefix): Likewise.
10974 (write_special_name_constructor): Remove defunct production from
10975 comment.
10976 (write_bare_function_type): Remove comment about absent parameter.
10977 (write_template_template_arg): Add missing grammar production to
10978 comment.
10979
9076e292
JM
109802000-07-27 Jason Merrill <jason@redhat.com>
10981
10982 * decl.c (duplicate_decls): If common_type produces a non-typedef
10983 type for a typedef, just use the old type.
10984
b2244c65
MM
109852000-07-27 Mark Mitchell <mark@codesourcery.com>
10986
10987 * cp-tree.h (function_depth): Declare.
10988 (verify_stmt_tree): Likewise.
10989 (find_tree): Likewise.
10990 * decl.c (function_depth): Give it external linkage.
10991 * optimize.c (optimize_function): Increment and decrement it.
10992 * tree.c (verify_stmt_tree_r): New function.
10993 (verify_stmt_tree): Likewise.
10994 (find_tree_r): Likewise.
10995 (find_tree): Likewise.
10996
62e3bf54
JM
109972000-07-27 Jason Merrill <jason@redhat.com>
10998
9076e292
JM
10999 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
11000 TYPE_PTRMEMFUNC_P.
11001 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
62e3bf54 11002
5a728aca
MM
110032000-07-26 Mark Mitchell <mark@codesourcery.com>
11004
11005 * decl.c (start_cleanup_fn): Mark the function as `inline'.
11006 * decl2.c (get_guard): Call cp_finish_decl, not
11007 rest_of_decl_compilation, for local guards.
11008 * lex.c (do_identifier): Remove unused variable.
11009
6a1fa5f9
ME
11010Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
11011
11012 * parse.y: Add missing ';'.
11013
0c10a805
MM
110142000-07-26 Mark Mitchell <mark@codesourcery.com>
11015
11016 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
11017 of `extern "C++"'.
11018
8b27e9ef
NS
110192000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11020
11021 Kill strict_prototype. Backwards compatibility only for
11022 non NO_IMPLICIT_EXTERN_C systems.
11023 * cp-tree.h (flag_strict_prototype): Remove.
11024 (strict_prototype): Remove.
11025 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
11026 * decl.c (maybe_push_to_top_level): Adjust.
11027 (pop_from_top_level): Adjust.
11028 (decls_match): Only allow sloppy parm matching for ancient
11029 system headers.
11030 (init_decl_processing): Adjust.
11031 (grokdeclarator): Adjust.
11032 * decl2.c (flag_strict_prototype): Remove.
11033 (strict_prototype): Remove.
11034 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
11035 (lang_f_options): Remove "strict-prototype".
11036 (unsupported-options): Add "strict-prototype".
11037 * lex.c (do_identifier): Adjust.
11038 (do_scoped_id): Adjust.
11039 * parse.y (empty_parms): Adjust.
11040 * class.c (push_lang_context): Adjust.
11041 (pop_lang_context): Adjust.
11042 * typeck.c (comp_target_parms): Adjust.
11043
c3783399
NS
110442000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11045
11046 * decl.c (poplevel): Deal with anonymous variables at for scope.
11047 (maybe_inject_for_scope_var): Likewise.
11048
a7023245
ZW
110492000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11050
11051 * decl.c: Remove all signal handling code, now done in toplev.c.
11052
95ee998c
MM
110532000-07-23 Mark Mitchell <mark@codesourcery.com>
11054
11055 * decl.c (make_rtl_for_nonlocal_decl): Rework.
11056
11057 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
11058 correctly.
11059
1b493b81
ZW
110602000-07-20 Zack Weinberg <zack@wolery.cumb.org>
11061
11062 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
11063 Define my_friendly_assert and my_friendly_abort as macros
11064 which may call friendly_abort. Prototype friendly abort, not
11065 my_friendly_abort or my_friendly_assert.
11066 * decl.c (signal_catch): Report the signal caught in the error
11067 message. Call fatal directly.
11068 * typeck2.c (ack, my_friendly_assert): Delete.
11069 (my_friendly_abort): Rename to friendly_abort. Expect file,
11070 line, and function parameters. Report the abort code, then
11071 call fancy_abort. Do not mask an abort if errors have
11072 already occurred.
11073
a306451c
NS
110742000-07-18 Nathan Sidwell <nathan@codesourcery.com>
11075
11076 * typeck.c (comp_target_parms): Remove obsolete parameter.
11077 (comp_target_types): Adjust.
11078
f49fad00
JM
110792000-07-17 Jason Merrill <jason@redhat.com>
11080
11081 * typeck.c (mark_addressable): Never set TREE_USED.
11082 * call.c (build_call): Don't abort on calls to library functions
11083 that have been declared normally.
11084
11085 * typeck.c (build_binary_op): Fix grammar in warning.
11086
11087 * exception.cc (__eh_free): Fix prototype.
11088
11089 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
11090
0e5921e8 11091 * decl.c (pushdecl): Handle seeing an OVERLOAD in
f49fad00
JM
11092 IDENTIFIER_NAMESPACE_VALUE.
11093
69690d98
MM
110942000-07-16 Mark Mitchell <mark@codesourcery.com>
11095
11096 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
11097 * method.c (use_thunk): Correct handling of vcall offsets.
11098
bfbbc080
ZW
110992000-07-14 Zack Weinberg <zack@wolery.cumb.org>
11100
11101 * .cvsignore: parse.h and parse.c have no cp- prefix.
11102
83a90717
MM
111032000-07-13 Mark Mitchell <mark@codesourcery.com>
11104
11105 * .cvsignore: New file.
11106
ea414c97
ZW
111072000-07-13 Zack Weinberg <zack@wolery.cumb.org>
11108
11109 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
11110
792abd35
MM
111112000-07-12 Mark Mitchell <mark@codesourcery.com>
11112
11113 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
11114 * parse.c: Remove.
11115 * parse.h: Likewise.
11116
72a50ab0
MM
111172000-07-11 Mark Mitchell <mark@codesourcery.com>
11118
11119 * class.c (layout_class_type): Add pointers to virtual bases after
11120 base classes under the old ABI.
11121
0dfdeca6
BC
111222000-07-10 Benjamin Chelf <chelf@codesourcery.com>
11123
11124 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
11125 (finish_continue_stmt): Likewise.
11126 (begin_for_stmt): Remove call to note_level_for_for.
11127 (finish_goto_stmt): Change call from build_min_nt
11128 to build_stmt.
11129 (finish_expr_stmt): Likewise.
11130 (begin_if_stmt): Likewise.
11131 (begin_while_stmt): Likewise.
11132 (finish_while_stmt): Likewise.
11133 (finish_return_stmt): Likewise.
11134 (begin_for_stmt): Likewise.
11135 (finish_for_stmt): Likewise.
11136 (finish_break_stmt): Likewise.
11137 (begin_switch_stmt): Likewise.
11138 (finish_case_label): Likewise.
11139 (genrtl_try_block): Likewise.
11140 (begin_try_block): Likewise.
11141 (begin_handler): Likewise.
11142 (begin_compound_stmt): Likewise.
11143 (finish_asm_stmt): Likewise.
11144 (finish_label_stmt): Likewise.
11145 (add_decl_stmt): Likewise.
11146 (finish_subobject): Likewise.
11147 (finish_decl_cleanup): Likewise.
11148 (finish_named_return_value): Likewise.
11149 (setup_vtbl_ptr): Likewise.
11150 (add_scope_stmt): Likewise.
11151 * decl.c (finish_constructor_body): Likewise.
11152 (finish_destructor_body): Likewise.
11153 * optimize.c (copy_body_r): Likewise.
11154 (initialize_inlined_parameters): Likewise.
11155 (declare_return_variable): Likewise.
11156 (expand_call_inline): Likewise.
0e5921e8 11157
f12eef58
JJ
111582000-07-10 Jakub Jelinek <jakub@redhat.com>
11159
11160 * semantics.c (expand_body): Sync interface information
11161 at the end of function body expansion.
11162
2bb5d995
JM
111632000-07-09 Jason Merrill <jason@redhat.com>
11164
11165 * init.c (build_new_1): Bail early if the call to new fails.
11166
0e5921e8 11167 * decl.c (compute_array_index_type): Check specifically for
2bb5d995
JM
11168 an INTEGER_CST, not just TREE_CONSTANT.
11169
0e5921e8 11170 * decl.c (duplicate_decls): Don't call duplicate_decls on
2bb5d995
JM
11171 the DECL_TEMPLATE_RESULT.
11172 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
11173 codes.
11174
11175 * error.c (dump_template_bindings): Don't crash if we had an
11176 invalid argument list.
11177
11178 * typeck.c (c_expand_start_case): Do narrowing here.
11179 * semantics.c (finish_switch_cond): Not here.
11180
111812000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
11182
11183 * parse.y (asm_clobbers): Do string concatenation.
11184
089acd57
MM
111852000-07-09 Mark Mitchell <mark@codesourcery.com>
11186
11187 * decl.c (pushtag): Don't put local classes in template functions
11188 on the local_classes list.
11189
111902000-07-04 Scott Snyder <snyder@fnal.gov>
11191
11192 * decl2.c (get_guard): Add missing return for old ABI local
11193 variable case.
11194
7b019c19
MM
111952000-07-09 Mark Mitchell <mark@codesourcery.com>
11196
11197 * cp-tree.h (char_type_p): New function.
11198 * decl.c (init_decl_processing): Don't initialize
11199 signed_wchar_type_node or unsigned_wchar_type_node.
11200 (complete_array_type): Handle brace-enclosed string-constants.
11201 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
11202 * tree.c (char_type_p): New function.
11203 * typeck2.c (digest_init): Use char_type_p.
11204
a5f1c5f8
NS
112052000-07-06 Nathan Sidwell <nathan@codesourcery.com>
11206
11207 * pt.c (tsubst): Don't layout type, if it's error_mark.
11208
84e5ca0f
NS
112092000-07-06 Nathan Sidwell <nathan@codesourcery.com>
11210
11211 * pt.c (instantiate_pending_templates): Reset template level.
11212
ab785305
JM
112132000-07-05 Jason Merrill <jason@redhat.com>
11214
11215 * call.c (joust): Don't complain about `operator char *()' beating
11216 `operator const char *() const'.
11217
90418208
JM
112182000-07-04 scott snyder <snyder@fnal.gov>
11219 Jason Merrill <jason@redhat.com>
11220
0e5921e8 11221 * repo.c (repo_get_id): Handle the case where a class with virtual
90418208
JM
11222 bases has a null TYPE_BINFO_VTABLE.
11223
112242000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
11225 Jason Merrill <jason@redhat.com>
11226
11227 * parse.y (member_init): Just pass in the type.
11228 * init.c (expand_member_init): Handle getting a type.
11229
11230