Mark ChangeLog
[official-gcc.git] / gcc / cp / ChangeLog
blob59c2dd5b4c9208a0571d2af76e8c68b94aeb6365
1 2002-11-18  Release Manager
3         * GCC 3.2.1 Released.
5 2002-11-11  Nathan Sidwell  <nathan@codesourcery.com>
7         PR c++/7788
8         * rtti.c (unemitted_tinfo_decl_p): Check it has a field.
10 2002-11-02  Zack Weinberg  <zack@codesourcery.com>
12         PR c/7353 redux
13         * decl2.c (grokfield): Reject TYPE_DECLs with initializers.
15 2002-11-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17         PR C++/2521
18         * typeck.c (build_x_unary_op): Handle pointer-to-member.
20 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
22         PR c++/8160
23         * typeck2.c (process_init_constructor): Call complete_array_type.
25         PR c++/8149
26         * decl.c (make_typename_type): Issue errors about invalid results.
28 2002-10-29  Mark Mitchell  <mark@codesourcery.com>
30         PR c++/8287
31         * decl.c (finish_destructor_body): Create the label to jump to
32         when returning from a destructor here.
33         (finish_function_body): Rather than here.
35         * semantics.c (finish_alignof): Call complete_type before calling
36         c_alignof.
37         * decl2.c (build_expr_from_tree): Use
38         finish_sizeof/finish_alignof.
40 2002-10-10  Jim Wilson  <wilson@redhat.com>
42         * decl.c (duplicate_decls): Don't call decl_attributes.
44 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
46         PR middle-end/6994
47         * cp-lang.c (cp_var_mod_type_p): New: C++ hook for
48         variably_modified_type_p.
49         * cp-tree.h: Remove prototype of variably_modified_type_p.
50         * tree.c (variably_modified_type_p): Remove; now implemented
51         in language-independent code.
53         PR c++/7266
54         * decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
55         SCOPE_REF is not null before dereferencing it.
57 2002-10-24  David Edelsohn  <edelsohn@gnu.org>
59         PR c++/7228
60         * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
61         lang_type structure exists before accessing field.
62         (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
63         (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
64         (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
65         * class.c (check_field_decls): Use new macros.
66         * typeck2.c (process_init_constructor): Remove redundant check for
67         existence of lang_type structure.
69 2002-10-23  Mark Mitchell  <mark@codesourcery.com>
71         PR c++/8067
72         * decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
73         related variables.
75 2002-10-23  Mark Mitchell  <mark@codesourcery.com>
77         PR c++/7679
78         * spew.c (next_token): Do not return an endless stream of
79         END_OF_SAVED_INPUT tokens.
80         (snarf_method): Add three END_OF_SAVED_INPUT tokens to the end of
81         the cached token stream.
82         (snarf_defarg): Likewise.
84 2002-10-22  Mark Mitchell  <mark@codesourcery.com>
86         PR c++/6579
87         * spew.c (snarf_parenthesized_expression): New function.
88         (snarf_block): Use it.
90 2002-10-21  Matthias Klose  <doko@debian.org>
92         * Backport, without whitespace change:
93         2002-06-19 Akim Demaille  <akim@epita.fr>
94         * parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
95         decl.h's TYPENAME.
96         * spew.c, lex.c: Adjust.
97         * parse.y (explicit_instantiation): Add empty action to override
98         the default $$ = $1 where it introduces a type clash.
100 2002-10-21  Mark Mitchell  <mark@codesourcery.com>
102         PR c++/8218
103         * cp-tree.h (lang_type_class): Add contains_empty_class_p.
104         (CLASSTYPE_CONTAINS_EMPTY_CLASS_P): New macro.
105         * class.c (check_bases): Update CLASSTYPE_CONTAINS_EMPTY_CLASS_P.
106         (check_field_decls): Likewise.
107         (layout_class_type): Likewise.
108         (finish_struct_1): Initialize it.
109         (walk_subobject_offsets): Use it to prune searches.
111 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
113         * decl.c (start_decl): Point users of the old initialized-
114         typedef extension at __typeof__.
116 2002-10-18  Nathan Sidwell  <nathan@codesourcery.com>
118         PR c++/7676
119         * class.c (add_method): Compare template parms too.
121 2002-10-17  Mark Mitchell  <mark@codesourcery.com>
123         * mangle.c (globals): Add entity and need_abi_warning.
124         (write_prefix): Likewise.
125         (write_template_prefix): Likewise.
126         (start_mangling): Add entity parameter.
127         (finish_mangling): Warn about names whose mangling will change.
128         (mangle_decl_string): Adjust.
129         (mangle_type_string): Likewise.
130         (mangle_special_for_type): Likewise.
131         (mangle_ctor_vtbl_for_type): Likewise.
132         (mangle_thunk): Likewise.
133         (mangle_guard_variable): Likewise.
134         (mangle_ref_init_variable): Likewise.
136         PR c++/7584
137         * class.c (handle_using_decl): Allow the declaration used to be
138         from an ambiguous base.
140 2002-10-16  Mark Mitchell  <mark@codesourcery.com>
142         PR c++/7478
143         * cvt.c (convert_to_reference): Allow references as the incoming
144         type.
146         PR c++/8134
147         * tree.c (zero_init_p): Always return 1.
149         PR c++/7524
150         * method.c (do_build_assign_ref): Use cp_build_qualified_type, not
151         build_qualified_type.
153 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
155         PR c++/7176
156         * lex.c (do_identifier): Add another option for the parsing
157         parameter.
158         * parse.y (do_id): Use it.
160 2002-10-11  Mark Mitchell  <mark@codesourcery.com>
162         PR c++/5661
163         * cp-tree.h (variably_modified_type_p): New function.
164         (grokdeclarator) Tighten check for variably modified types as
165         fields.
166         * pt.c (convert_template_argument): Do not allow variably modified
167         types as template arguments.
168         * tree.c (variably_modified_type_p): New function.
170 2002-10-11  Jason Molenda  <jmolenda@apple.com>
172         * init.c (build_field_list): Provide uses_unions_p with a default
173         value.
175 2002-10-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
177         PRs C++/6803, C++/7721 and C++/7803
178         * decl.c (grokdeclarator): Gracefully handle template-name as
179         decl-specifier.
181 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
183         PR c/7353
184         * decl.c (start_decl): Unconditionally issue error for
185         'typedef foo = bar'.
186         (cp_finish_decl): Remove special case for TYPE_DECL with initializer.
187         (grokdeclarator): Remove redundant error for 'typedef foo = bar'.
189 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
191         PR c++/7754
192         * decl2.c (finish_anon_union): Do not expand anonymous unions when
193         procesing template functions.
194         * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
195         type. Call layout_decl.
196         (tsubst_expr, case DECL_STMT): Handle anonymous unions.
198 2002-10-07  Richard Henderson  <rth@redhat.com>
200         * decl2.c: Complete reversion of c++/7754.
202 2002-10-06  Roger Sayle  <roger@eyesopen.com>
204         PR optimization/6627
205         * cp/cp-tree.h (enum ptrmemfunc_vbit_where_t): Delete definition
206         from here, and move it to tree.h.
207         * cp/decl.c (cxx_init_decl_processing): If storing the vbit
208         in function pointers, ensure that force_align_functions_log
209         is atleast one.
211 2002-10-04  H.J. Lu  (hjl@gnu.org)
213         * pt.c (tsubst_decl, case VAR_DECL): Back out the last change.
214         (tsubst_expr, case DECL_STMT): Likewise.
216 2002-10-02  Mark Mitchell  <mark@codesourcery.com>
218         PR c++/7754
219         * decl2.c (finish_anon_union): Do not expand anonymous unions when
220         procesing template functions.
221         * pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
222         type. Call layout_decl.
223         (tsubst_expr, case DECL_STMT): Handle anonymous unions.
225 2002-10-02  Mark Mitchell  <mark@codesourcery.com>
227         PR c++/7188.
228         * init.c (expand_member_init): Allow a FIELD_DECL to be passed in
229         directly.
230         * pt.c (tsubst_initializer_list): Use expand_member_init.
232 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
234         * decl.c (start_cleanup_fn): Clear interface_only before
235         start_function, restore it afterwards.
237 2002-09-01  Alexandre Oliva  <aoliva@redhat.com>
239         * parse.y (sizeof, alignof, typeof): New non-terminals to
240         increment skip_evaluation.  Replace terminals with them and
241         decrement skip_evaluation at the end of rules using them.
242         * decl2.c (mark_used): Don't assemble_external if
243         skipping evaluation.
245 2002-08-31  Jason Merrill  <jason@redhat.com>
247         * cp-lang.c (cp_expr_size): Don't abort.
249 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
251         * cp-tree.h (warn_abi): Declare it.
252         * decl.c (warn_abi): Define it.
253         (cxx_decode_option): Set it.
254         * class.c (layout_virtual_bases): Warn about bugs in G++ that
255         result in incorrect object layouts.
256         (layout_class_type): Likewise.
258 2002-08-22  Jason Merrill  <jason@redhat.com>
260         PR c++/5607
261         * search.c (check_final_overrider): No longer static.
262         * class.c (update_vtable_entry_for_fn): Call it.
263         * cp-tree.h: Adjust.
265         * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
266         (cp_expr_size): New fn.
267         * call.c (convert_arg_to_ellipsis): Promote non-POD warning to error.
268         * typeck.c (build_modify_expr): Don't use save_expr on an lvalue.
270 2002-08-14  Release Manager
272         * GCC 3.2 Released.
274 2002-08-03  Nathan Sidwell  <nathan@codesourcery.com>
276         PR 7470.
277         C++ ABI change - vfunc ordering.
278         * class.c (add_virtual_function): Remove.
279         (dfs_modify_all_vtables): Take list of all declared
280         virtuals. Assign all that are not in primary base.
281         (check_for_override): Adjust comments.
282         (create_vtable_ptr): Take single list of virtuals. Build chain
283         of declared virtuals here.
284         (layout_class_type): Take single list of virtuals. Adjust.
285         (finish_struct_1): Keep virtuals on single list. Adjust.
287 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
289         * lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c.
291 2002-07-17  Scott Snyder <snyder@fnal.gov>
293         PR c++/7320
294         * rtti.c (get_tinfo_decl): Set DECL_COMDAT.
296 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
298         Repair damage on weak-impared targets caused by my previous patch.
299         * cp-tree.h (import_export_tinfo): Add parameter.
300         * decl2.c (import_export_tinfo): Add parameter, post adjust
301         DECL_COMDAT.
302         * rtti.c (emit_tinfo_decl): DECL_COMDAT is (nearly) always setup by
303         import_export_tinfo.
305 2002-06-30  Nathan Sidwell  <nathan@codesourcery.com>
307         * cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
308         (CPTI_TYPE_INFO_PTR_TYPE): ... this.
309         (tinfo_decl_type): Replace with ...
310         (type_info_ptr_type): ... this.
311         (import_export_tinfo): Declare.
312         (tinfo_decl_p): Rename to ...
313         (unemitted_tinfo_decl_p): ... this.
314         * decl2.c (import_export_decl): Break out tinfo handling into ...
315         (import_export_tinfo): ... here. New function.
316         (finish_file): Adjust.
317         * rtti.c (TINFO_REAL_NAME): New macro.
318         (init_rtti_processing): Create the tinfo types.
319         (get_tinfo_decl_dynamic): Use type_info_ptr_type, get_tinfo_ptr.
320         (get_tinfo_decl): Adjust.
321         (get_tinfo_ptr): New function.
322         (get_type_id): Use it.
323         (tinfo_base_init): Create vtable decl here, if it doesn't exist.
324         (ptr_initializer): Use get_tinfo_ptr.
325         (ptm_initializer): Likewise.
326         (synthesize_tinfo_var): Break into ...
327         (get_pseudo_ti_init): ... this. Just create the initializer.
328         (get_pseudo_ti_desc): .. and this.
329         (create_real_tinfo_var): Remove.
330         (create_pseudo_type_info): Don't create the vtable decl here.
331         (get_vmi_pseudo_type_info): Remove.
332         (create_tinfo_types): Adjust.
333         (tinfo_decl_p): Rename to ...
334         (unemitted_tinfo_decl_p): ... here. Adjust.
335         (emit_tinfo_decl): Adjust. Create the initializer.
337 2002-06-14  Jason Merrill  <jason@redhat.com>
339         C++ ABI changes.
340         * class.c (build_base_field): Set DECL_PACKED.
341         (layout_class_type): Don't use tail padding of PODs.
342         * mangle.c (write_unqualified_name): Fix template conversion op
343         mangling.
345 2002-05-18  Jason Merrill  <jason@redhat.com>
347         PR c++/6611
348         * decl2.c (import_export_decl): If we clear
349         DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
351 2002-05-14  Jason Merrill  <jason@redhat.com>
353         * rtti.c (get_tinfo_decl): Don't call comdat_linkage.
354         Do set DECL_COMDAT.
355         (synthesize_tinfo_var): Take the public decl.
356         (create_real_tinfo_var): Likewise.  Check DECL_COMDAT.
357         (emit_tinfo_decl): Adjust.  Call import_export_decl.
358         * decl2.c (import_export_decl): Simplify tinfo decl handling.
360 2002-07-25  Release Manager
362         * GCC 3.1.1 Released.
364 2002-07-12  Mark Mitchell  <mark@codesourcery.com>
366         * class.c (add_method): Correct handling of conversion operators.
368 2002-07-11  Mark Mitchell  <mark@codesourcery.com>
370         PR c++/7224
371         * class.c (add_method): Simplify.
373 2002-07-11  Jason Merrill  <jason@redhat.com>
375         PR c++/7279
376         * tree.c (cp_copy_res_decl_for_inlining): Also copy
377         TREE_ADDRESSABLE.
379 2002-07-10  Jason Merrill  <jason@redhat.com>
381         PR c++/6255
382         * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
383         modifying the old one.
385 2002-07-08  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
387         * pt.c (can_complete_type_without_circularity): Add static to
388         function definition.
390 2002-07-05  Jim Wilson  <wilson@redhat.com>
392         * decl.c (mark_named_label_lists): Add missing & in call to
393         mark_binding_level.
395 2002-07-05  Jason Merrill  <jason@redhat.com>
397         * cvt.c (cp_convert_to_pointer): Call force_fit_type for null
398         pointers.
400         PR optimization/7145
401         * tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
403 2002-05-18  Jason Merrill  <jason@redhat.com>
405         PR c++/6611
406         * decl2.c (import_export_decl): If we clear
407         DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
409 2002-07-03  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
411         PR c++/6944
412         * init.c (build_aggr_init): Remove qualifiers of init before calling
413         build_vec_init.
414         (build_vec_init): Flatten multi-dimensional array during cleanup.
415         (build_vec_delete_1): Abort if the type of each element is array.
417 2002-07-02  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
419         PR c++/6716
420         * pt.c (can_complete_type_without_circularity): New function.
421         (instantiate_class_template): Use it.
422         * typeck2.c (incomplete_type_error): Improve error message
423         due to incomplete fields.
425 2002-07-01  Mark Mitchell  <mark@codesourcery.com>
427         PR c++/7112
428         * mangle.c (write_expression): Add mangling for sizeof when
429         applied to a type.
430         * operators.def: Remove stale comment.
432 2002-06-27  Mark Mitchell  <mark@codesourcery.com>
434         PR c++/6695
435         * pt.c (tsubst_friend_class): Substitute into the context of the
436         friend before using it.
438 2002-06-23  Matt Thomas  <matt@3am-software.com>
440         * decl.c (finish_function): Change "#ifdef VMS_TARGET" to
441         "#if VMS_TARGET".
443 2002-06-20  Richard Henderson  <rth@redhat.com>
445         PR c++/6747
446         * typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
447         Call put_var_into_stack.
449 2002-06-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
451         PR c++/6892
452         * pt.c (tsubst_expr): Handle FILE_STMT.
454 2002-06-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
456         PR c++/6723
457         * pt.c (lookup_template_class): Don't build complete argument of
458         BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
459         argument.
461 2002-06-16  Richard Henderson  <rth@redhat.com>
463         PR opt/6793
464         * tree.c (cp_cannot_inline_tree_fn): Don't short-circuit test
465         after template instantiation.
467 2002-06-07  H.J. Lu  (hjl@gnu.org)
469         * decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.
471 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
473         * cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
474         * cp-tree.h (cxx_post_options): Kill.
475         * cp-lex.c (cxx_post_options): Kill.
477 2002-05-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
479         * error.c (dump_type) [TYPEOF_TYPE]: Fix parenthesis printing.
481 2002-05-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
483         PR c++/186, DR 259
484         * pt.c (do_decl_instantiation): Don't complain explicit
485         instantiation after explicit specialization.
486         (do_type_instantiation): Likewise.
488 2002-05-09  Jason Merrill  <jason@redhat.com>
490         * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.
492 2002-05-15  Alexandre Oliva  <aoliva@redhat.com>
494         * cp-tree.h (struct lang_type): Added non_zero_init.
495         (CLASSTYPE_NON_ZERO_INIT_P): New macro.
496         (zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
497         * class.c (check_field_decls): Test non_zero_init.
498         * cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
499         zero-to-NULL conversions.
500         * decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
501         type that needs zero-initialization without zeros.
502         (check_initializer_decl): Compute zero-initializer for types
503         that require a non-trivial one.
504         * init.c (build_forced_zero_init): New function.
505         (build_default_init): Use it.
506         * tree.c (zero_init_p): New function.
507         * typeck2.c (force_store_init_value): New function.
508         (process_init_constructor): Create non-trivial zero-initializers
509         for array members and class fields.
511 2002-05-14  Release Manager
513         * GCC 3.1 Released.
515 2002-05-03  Jason Merrill  <jason@redhat.com>
517         * decl.c (BOOL_TYPE_SIZE): Move default to defaults.h.
519 2002-05-02  Mark Mitchell  <mark@codesourcery.com>
521         * init.c (perform_base_cleanups): Correct order of base class
522         cleanups.
524 2002-05-01  Mark Mitchell  <mark@codesourcery.com>
526         PR c++/6527
527         * init.c (perform_base_cleanups): Emit cleanups in reverse order
528         of construction.
530 2002-05-01  Gabriel Dos Reis  <gdr@codesourcery.com>
532         * error.c (dump_type): Be careful about implicit typenames.
534 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
536         ABI change, returning simple classes from functions.
537         * class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
538         TYPE_HAS_TRIVIAL_INIT_REF is false or
539         TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
541 2002-04-30  Jason Merrill  <jason@redhat.com>
543         PR debug/6436
544         * decl.c (grokdeclarator): Don't override TYPE_NAME of an
545         anonymous class with a typedef if there are attributes.
547 2002-04-29  Paul Eggert  <eggert@twinsun.com>
549         * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
551 2002-04-29  Jakub Jelinek  <jakub@redhat.com>
553         PR c++/6477
554         * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
555         non-NULL first.
557 2002-04-29  Mark Mitchell  <mark@codesourcery.com>
559         PR c++/6492
560         * pt.c (tsubst_friend_class): If the friend has an explicit scope,
561         enter that scope before name lookup.
563         PR c++/6486
564         * method.c (do_build_copy_constructor): Avoid building
565         cv-qualified reference types.
567 2002-04-29  Nathan Sidwell  <nathan@codesourcery.com>
569         PR c++/5719
570         * decl.c (grok_op_properties): Assignment ops don't have to return
571         by value. operator% should.
573 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
575         PR c/6343
576         * decl.c (duplicate_decls): Call merge_weak.
578 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
580         PR c++/6479
581         * method.c (do_build_assign_ref): Pass a derivation to
582         build_method_call when calling base class assignment operators.
584 2002-04-24  Mark Mitchell  <mark@codesourcery.com>
586         * mangle.c (write_type): Don't use TYPE_MAIN_VARIANT when writing
587         out an array type.
588         (write_CV_qualifiers_for_type): Use TYPE_QUALS, not cp_type_quals,
589         to determine qualifiers.
591         * cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
592         void.
594 2002-04-24  Jason Merrill  <jason@redhat.com>
596         PR c++/6331
597         * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
598         * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
599         The pedwarn for array assignment is now unconditional.
600         * tree.c (build_cplus_array_type_1): Still process simple array types
601         normally in templates.
603         PR c++/6395
604         * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
605         stuff for comdats.
607 2002-04-23  Jason Merrill  <jason@redhat.com>
609         PR c++/5504 - but re-breaks c++/411
610         * init.c (push_base_cleanups): Rename to perform_base_cleanups.
611         Expand base cleanups now rather than pushing them.
612         * decl.c (begin_destructor_body): Don't call push_base_cleanups.
613         (finish_destructor_body): Call perform_base_cleanups.
614         * cp-tree.h: Adjust prototype.
616 2002-04-23  Jakub Jelinek  <jakub@redhat.com>
618         * parse.y (check_class_key): Allow KEY to be union/enum/struct/class
619         node with attributes.
621 2002-2-23  David O'Brien  <obrien@FreeBSD.org>
623         * g++spec.c (MATH_LIBRARY_PROFILE, LIBSTDCXX_PROFILE): Add.
624         Use MATH_LIBRARY_PROFILE and LIBSTDCXX_PROFILE if profile flag given.
626 2002-04-23  Mark Mitchell  <mark@codesourcery.com>
628         PR c++/6256:
629         * pt.c (tsubst_friend_class): Handle templates with explicit
630         nested names.
632         PR c++/6331:
633         * typeck.c (merge_types): Remember the cv-qualification of pointer
634         types when merging them.
636 2002-04-18  Jason Merrill  <jason@redhat.com>
638         PR c++/5658
639         * search.c (setup_class_bindings): A class template qualifies as a
640         type binding.
642 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
644         PR c++/6316
645         * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
646         before expanding.
648 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
650         * init.c (begin_init_stmts): Remove commented out code.
651         (finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
652         * semantics.c (begin_gobal_stmt_expr): Adjust call to
653         expand_start_stmt_expr.
655 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
657         * decl.c (register_dtor_fn): Pass the address of dso_handle, not
658         dso_handle itself, to __cxa_atexit.
660 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
662         * class.c (layout_virtual_bases): Do all dsize computation on trees.
664 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
666         PR c++/5373.
667         * semantics.c (finish_expr_stmt): Remember the type of the
668         expression before any conversions are performed.
670         PR c++/5189.
671         * call.c (add_template_candidate_real): Do not treat member
672         templates as copy constructors.
674         * decl.c (duplicate_decls): Do not copy the RTL for a variable
675         declaration if the old variable had an incomplete type and the new
676         variable does not.
677         (complete_vars): Do not call layout_decl for completed variables.
679 2002-04-11  Andrew Haley  <aph@redhat.com>
681         * typeck.c (type_after_usual_arithmetic_conversions):
682         If two types have the same variant, return immediately.
683         When two floating-point operands are the same precision:
684           convert to float if one of the operands is float;
685           if neither operand is one of the standard types, return the type
686           of the first operand.
688 2002-04-12  Richard Sandiford  <rsandifo@redhat.com>
690         * decl.c (duplicate_decls): Don't try to unify an implicit typedef
691         with an explicit one.
692         (follow_tag_typedef): New.
693         (lookup_tag): Use it to extract the tag of an explicit typedef.
694         (xref_tag): Likewise.
696 2002-04-10  Nathan Sidwell  <nathan@codesourcery.com>
698         PR c++/5507
699         * decl.c (make_typename_type): Remove implicit typenameness.
701 2002-04-09  Jason Merrill  <jason@redhat.com>
703         PR optimization/6189
704         * semantics.c (genrtl_start_function): Don't free
705         DECL_SAVED_FUNCTION_DATA for inline functions.
707 2002-04-08  Paolo Carlini  <pcarlini@unitus.it>
709         * parse.y (namespace_qualifier, maybe_identifier,
710         begin_explicit_instantiation, end_explicit_instantiation,
711         apparent_template_type, .finish_template_type,
712         do_id, maybe_init, defarg_again, component_decl_1):
713         Add ending ';', in accordance with POSIX.
715 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
717         PR c++/5571
718         * class.c (layout_class_type): Remember incomplete static
719         variables.
720         (finish_struct_1): Call complete_vars, not
721         hack_incomplete_structures.
722         * cp-tree.h (hack_incomplete_structures): Rename to ...
723         (complete_vars): ... this.
724         (struct saved_scope): Remove incomplete.
725         (namespace_scope_incomplete): Remove.
726         * decl.c (struct binding_level): Remove incomplete.
727         (incomplete_vars): New variable.
728         (mark_binding_level): Don't mark incomplete.
729         (print_binding_level): Don't print it.
730         (mark_saved_scope): Don't mark incomplete.
731         (pushdecl): Use maybe_register_incopmlete_var.
732         (cxx_init_decl_processing): Register incomplete_vars for GC.
733         (start_decl_1): Clarify error message.
734         (hack_incomplete_vars): Remove.
735         (maybe_register_incomplete_var): New function.
736         (complete_vars): Likewise.
738 2002-04-06  Jason Merrill  <jason@redhat.com>
740         PR c++/4934
741         * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
742         set before checking it.
744         PR c++/6179
745         * method.c (implicitly_declare_fn): Pass unqualified type to
746         synthesize_exception_spec.
748 2002-04-03  Jason Merrill  <jason@redhat.com>
750         PR c++/525
751         * init.c (build_member_call): Convert to intermediate base even
752         with -pedantic.
754         PR c++/5636
755         * semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
756         cleanup for nrv.
758         PR c++/5104
759         * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
760         specifiers.
761         [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
763 2002-04-03  Roger Sayle  <roger@eyesopen.com>
765         PR c++/5998:
766         * decl.c (duplicate_decls): Don't mess with assembler names when
767         redeclaring builtin functions as static.
769 2002-04-01  Roger Sayle  <roger@eyesopen.com>
771         PR c++/5998:
772         * decl.c (duplicate_decls):  Overwrite the RTL when (and only
773         when) overwriting a built-in function.  Don't use COPY_DECL_RTL,
774         but follow the SET_DECL_RTL idiom used elsewhere in the function.
776 2002-03-28  Roger Sayle  <roger@eyesopen.com>
778         PR c++/5998:
779         * decl.c (cxx_init_decl_processing): Re-enable built-in functions
780         in the g++ front-end.
781         (duplicate_decl): Allow redefinition of anticipated built-ins.
782         Fix inlining problem by over-writing the old DECL_RTL.
783         (lookup_namespace_name): Fail to find an identifier in the
784         specified namespace if its still anticipated.
785         (builtin_function_1): New function split out from builtin_function
786         to create a builtin in the current namespace with given context.
787         (builtin_function): Call builtin_function_1 to define the
788         appropriate builtins in both the std and global namespaces.
789         (select_decl): Don't test for anticipated decls here.
790         (unqualified_namespace_lookup): Instead ignore them whilst
791         searching through scopes and namespaces.
792         * decl2.c (do_nonmember_using_decl): If a using declaration
793         specifies an anticipated built-in function, mark it as no longer
794         anticipated in that scope.
795         (ambiguous_decl):  Avoid resolving to an anticipated decl.
796         * lex.c (do_scoped_id): Fail to find an identifier in the global
797         namespace if its still anticipated.
799 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
801         PR c++/6073
802         * class.c (finish_struct_1): Update static field's DECL_MODE even
803         if its type is a variant of t.
805 2002-03-27  Mark Mitchell  <mark@codesourcery.com>
807         PR c++/4884
808         * call.c (build_op_delete_call): Allow for the fact the placement
809         may be a COMPOUND_EXPR.
811 2002-03-26  Nathan Sidwell  <nathan@codesourcery.com>
813         PR c++/5682
814         * cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
815         (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
816         (dfs_skip_nonprimary_vbases_markedp): Remove.
817         * search.c (get_shared_vbase_if_not_primary): Remove.
818         (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
819         (dfs_skip_nonprimary_vbases_markedp): Remove.
820         (dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
821         (dfs_marked_real_bases_queue_p): Likewise.
823 2002-03-26  Mark Mitchell  <mark@codesourcery.com>
825         PR c++/4884
826         * init.c (build_new_1): Allow for the fact the result of
827         build_function_call may be a COMPOUND_EXPR.
829 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
831         PR c++/6037
832         * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
834 2002-03-22  Jeff Knaggs  <jknaggs@redhat.com>
836         * typeck.c (expand_ptrmemfunc_cst): Scale idx down to an index
837         into the vtable_entry array regardless of
838         TARGET_PTRMEMFUNC_VBIT_LOCATION.
840 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
842         * tree.c (cp_cannot_inline_tree_fn): Same.
844 2002-03-20  Jason Merrill  <jason@redhat.com>
846         PR c++/2136
847         * init.c (build_delete): Check access for a member op delete here.
848         * decl2.c (delete_sanity): Not here.
850 2002-03-19  Jason Merrill  <jason@redhat.com>
852         PR c++/5118
853         * class.c (get_vfield_name): Use the constructor_name.
855 2002-03-18  Eric Botcazou  <ebotcazou@multimania.com>
857         PR c++/3882
858         * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
859         (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
860         only after recording the declaration.
862 2002-03-18  Ashif Harji  <asharji@uwaterloo.ca>
864         * lang-specs.h (compiler default_compilers): Add
865         -no-integrated-cpp flag to invoke an external cpp.
867 2002-03-18  Jason Merrill  <jason@redhat.com>
869         PR c++/2039
870         * init.c (resolve_offset_ref): Hand off to build_component_ref.
872         PR c++/4222, c++/5995
873         * call.c (build_over_call): Fix empty class logic.
875         PR c++/3870
876         * cp-tree.h (struct saved_scope): Add last_parms field.
877         * decl.c (maybe_push_to_top_level): Save last_function_parms.
878         (pop_from_top_level): Restore it.
880         PR c++/4377
881         * mangle.c (write_expression): Strip NOP_EXPRs sooner.  Also strip
882         NON_LVALUE_EXPRs.
884         PR c++/4003
885         * pt.c (tsubst_friend_function): Use decl_namespace_context.
887         PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
888         * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
889         type with a nontrivial destructor.
891 2002-03-17  Jason Merrill  <jason@redhat.com>
893         PR c++/4460
894         * class.c (build_base_path): Virtual base layout is fixed in
895         in-charge [cd]tors.
897         PR c++/5757
898         * init.c (build_new_1): Pass the right pointer to op delete.
900 2002-03-15  Richard Henderson  <rth@redhat.com>
902         * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
904 2002-03-15  Richard Henderson  <rth@redhat.com>
906         * decl.c (finish_function): Reapply accidentally reverted
907         2002-02-28 patch.
909 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
911         * cp-tree.h (CLEANUP_DECL): Remove.
912         (CLEANUP_EXPR): Likewise.
913         * decl.c (destroy_local_var): Simplify.
914         (maybe_build_cleanup): Tidy.
915         * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
916         * semantics.c (cp_expand_stmt): Likewise.
917         * cp/tree.c (cp_statement_code_p): Likewise.
919 2002-03-15  Richard Henderson  <rth@redhat.com>
921         * decl.c: Include c-pragma.h.
922         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
923         * Make-lang.in: Update dependencies.
925 2002-03-15  Jason Merrill  <jason@redhat.com>
927         PR c++/5857
928         * decl.c (duplicate_decls): Use merge_types instead of common_type.
929         * typeck.c (common_type): Just hand off to
930         type_after_usual_arithmetic_conversions and
931         composite_pointer_type.
932         (merge_types): New fn.
933         (commonparms): Use it instead of common_type.
934         (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
935         (composite_pointer_type): Also handle attributes.
936         * cp-tree.h: Declare merge_types.
938         * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
939         variables.
940         * decl2.c (maybe_make_one_only): Also mark the decl as needed.
942 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
944         PR c++/5908
945         * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
946         * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
948 2002-03-12  Richard Sandiford  <rsandifo@redhat.com>
950         * mangle.c (write_builtin_type): Handle 128-bit integers even if
951         they are not a standard integer type.
953 2002-03-12  Nathan Sidwell  <nathan@codesourcery.com>
955         PR c++/5659
956         * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
957         * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
958         definitions.
960 2002-03-11  Nathan Sidwell  <nathan@codesourcery.com>
962         Revert 2001-03-26  Nathan Sidwell  <nathan@codesourcery.com>,
963         DR209 is now not a defect.
964         * cp-tree.h (skip_type_access_control): Remove.
965         * decl.c (grokdeclarator): Do type access control for friend
966         declarations.
967         * semantics.c (decl_type_access_control): Don't reset
968         current_type_lookups.
969         (save_type_access_control): Always save the lookups.
970         (skip_type_access_control): Remove.
971         (finish_class_definition): Don't change type_lookups.
973 2002-03-11  Nathan Sidwell  <nathan@codesourcery.com>
975         Revert 2000-12-01  Nathan Sidwell  <nathan@codesourcery.com>,
976         It is incorrect.
977         * typeck.c (build_static_cast): Compare non-qualified types
978         with pointer to member conversions.
980 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
982         * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
983         conditional return void.
985 2002-03-02  Nathan Sidwell  <nathan@codesourcery.com>
987         PR c++/775
988         * decl.c (lookup_tag): Only reject enum/class mismatch, not
989         class/union mismatch.
990         * parse.y (check_class_key): New function.
991         (structsp): Call it.
993 2002-03-01  Michael Matz  <matz@suse.de>
995         * typeck.c (cp_pointer_int_sum): Complete inner type which is
996         used later by size_in_bytes().
998 2002-03-01  Phil Edwards  <pme@gcc.gnu.org>
1000         * cp-tree.h (build_init):  Remove prototype.
1002 2002-03-01  Phil Edwards  <pme@gcc.gnu.org>
1004         * cp-tree.h:  Require __GNUC__ to be #defined.
1005         (build_init):  Add missing prototype.
1007 2002-02-28  Jason Merrill  <jason@redhat.com>
1009         * search.c (lookup_base_r): Don't clear is_non_public just because
1010         we found a friendly scope.
1012         * decl.c (finish_function): Only warn about missing return
1013         statement with -Wreturn-type.
1015 2002-02-24 Craig Rodrigues  <rodrigc@gcc.gnu.org>
1017         PR c++/4093
1018         * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
1019         to void.
1021 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
1023         PR other/5746
1024         * semantics.c (finish_switch_cond): Don't call get_unwidened
1025         if error_mark_node.
1027 2002-02-22  Nathan Sidwell  <nathan@codesourcery.com>
1029         PR c++/2645, DR 295
1030         * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
1031         tf_keep_type_decl.
1032         (make_typename_type): Use tsubst_flags_t.
1033         * decl.c (make_typename_type): Adjust. Return non-artificial
1034         TYPE_DECLs, if required.
1035         (grokdeclarator): Simplify CVR qualification handling. Allow bad
1036         qualifiers on typedef types.
1037         * decl2.c (handle_class_head): Adjust make_typename_type call.
1038         * parse.y (nested_name_specifier): Likewise.
1039         (typename_sub0): Likewise.
1040         (typename_sub1): Likewise.
1041         * pt.c (convert_template_argument): Adjust make_typename_type
1042         return value.
1043         (tsubst): Adjust cp_build_qualified_type_real calls.
1044         (check_cv_quals_for_unify): Cope with alowing bad qualifications
1045         on template type parms.
1046         (instantiate_decl): Recheck substitutions to give warnings on bad
1047         qualifications.
1048         * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
1050 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
1052         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
1054         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
1055         unless DECL_ALWAYS_INLINE.
1057 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
1059         * typeck.c (cp_pointer_int_sum): Renamed from
1060         pointer_int_sum, call pointer_int_sum.
1062 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
1064         * decl.c (duplicate_decls): Return 0 if issued error about
1065         redeclaration.
1067 2002-02-19  Jason Merrill  <jason@redhat.com>
1069         ABI change: Mangle `void (A::*)() const' as
1070         M1AKFvvE, not MK1AFvvE.
1071         * mangle.c (write_function_type): Write cv-quals for member
1072         function type here.
1073         (write_pointer_to_member_type): Not here.
1075 2002-02-18  Jason Merrill  <jason@redhat.com>
1077         * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
1078         (do_decl_instantiation): Likewise.
1080 2002-02-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1082         PR c++/5685
1083         * decl.c (duplicate_decls): Make warning unconditional
1084         if duplicate default argument declarations are present.
1086 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
1088         * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1089         shortening.
1091 2002-02-15  Nathan Sidwell  <nathan@codesourcery.com>
1093         * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
1094         remove incorrect comment. Move #if 0'd code to common path. Use
1095         IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
1097 2002-02-13  Jason Merrill  <jason@redhat.com>
1099         * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
1100         (finish_function): Don't warn if current_function_returns_null.
1102         * typeck2.c (digest_init): Do handle values of vector type.
1104         * typeck2.c (digest_init, process_init_constructor): Treat vectors
1105         like arrays.
1107 2002-02-11  Jason Merrill  <jason@redhat.com>
1109         * parse.y (reserved_declspecs): Don't handle attributes.
1110         (reserved_typespecquals): Handle them here.
1111         * Make-lang.in (parse.c): Adjust expected conflicts.
1113 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
1115         * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
1116         instead of compstmt.
1117         (compstmt_or_stmtexpr): Renamed from compstmt.
1118         (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
1120 2002-02-07  Nathan Sidwell  <nathan@codesourcery.com>
1122         Rename instantiate_type_flags to tsubst_flags_t & expand use.
1123         * cp-tree.h (instantiate_type_flags): Rename to ...
1124         (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
1125         add tf_warning flag.
1126         (instantiate_type): Adjust prototype.
1127         (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
1128         do_type_instantiation, cp_build_qualified_type_real): Likewise.
1129         cp_build_qualified_type: Adjust.
1130         * class.c (instantiate_type): Adjust parameter. Rename itf_* to
1131         tf_*.
1132         * call.c (standard_conversion): Rename itf_* to tf_*.
1133         (reference_binding): Likewise.
1134         (convert_like_real): Likewise.
1135         * cvt.c (cp_convert_to_pointer): Likewise.
1136         (convert_to_reference): Likewise.
1137         * decl.c (lookup_namespace_name): Use tf_* flags.
1138         (make_typename_type): Likewise.
1139         (grokdeclarator): Likewise.
1140         * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
1141         (coerce_template_template_parms, convert_template_argument,
1142         coerce_template_parms, maybe_get_template_decl_from_type_decl,
1143         lookup_template_class, tsubst_friend_function, tsubst_friend_class,
1144         instantiate_class_template, tsubst_template_arg_vector,
1145         tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
1146         tsubst_decl, tsubst_arg_types, tsubst_function_type,
1147         tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
1148         instantiate_template, fn_type_unification,
1149         resolve_overloaded_unification, verify_class_unification,
1150         unify, get_bindings_real, do_type_instantiation,
1151         regenerate_decl_from_template, instantiate_decl,
1152         tsubst_initializer_list, tsubst_enum,
1153         get_mostly_instantiated_function_type,
1154         invalid_nontype_parm_type_p): Likewise.
1155         * tree.c (cp_build_qualified_type_real): Likewise.
1156         * typeck.c (build_binary_op): Rename itf_* to tf_*.
1157         (build_ptrmemfunc): Likewise.
1158         (convert_for_assignment): Likewise.
1160 2002-02-07  Nathan Sidwell  <nathan@codesourcery.com>
1162         PR c++/109
1163         * decl.c (grokdeclarator): Allow friend declarations from
1164         dependent types.
1165         * decl2.c (handle_class_head): Don't push into template parm contexts.
1166         * pt.c (push_template_decl_real): Template parm contexts are never
1167         being defined.
1169 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
1171         * class.c: Include target.h.
1172         (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
1173         BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
1174         bit-field layout.
1175         * Make-lang.in: Adjust deps.
1177 2002-02-05  Jason Merrill  <jason@redhat.com>
1179         * error.c (dump_type): Be more helpful about VECTOR_TYPE.
1181 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
1183         * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
1184         (finish_switch_cond): Set SWITCH_TYPE.
1186 2002-02-04  Richard Henderson  <rth@redhat.com>
1188         * method.c (use_thunk): Always initialize the block tree.  Reindent.
1189         * semantics.c (expand_body): Emit thunks after function, not before.
1191 2002-02-04  Jason Merrill  <jason@redhat.com>
1193         * decl.c (start_function): Call cplus_decl_attributes immediately
1194         after grokdeclarator.
1196         * decl.c (start_function): Combine DECL_RESULT handling code.
1198 2002-02-03  Jason Merrill  <jason@redhat.com>
1200         * xref.c: Remove.
1201         * Make-lang.in (CXX_OBJS): Remove cp/xref.o
1202         (cp/xref.o): Remove dependencies.
1203         * class.c (finish_struct_1, check_methods): Don't call xref fns.
1204         (finish_struct_1): Likewise.
1205         * friend.c (make_friend_class): Likewise.
1206         * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
1207         * spew.c (read_process_identifier): Likewise.
1209 2002-02-01  Jason Merrill  <jason@redhat.com>
1211         PR c++/4872
1212         * decl.c (finish_function): Warn about a non-void function with
1213         no return statement and no abnormal exit.
1214         * cp-tree.h (struct cp_language_function): Add returns_abnormally.
1215         (current_function_returns_abnormally): New macro.
1216         * call.c (build_call): Set it.
1218         * typeck.c (build_component_ref): Always complain about offsetof
1219         constructs on non-PODs.  Only make it an error for members of
1220         virtual bases.
1222         * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
1223         (dump_function_decl): Always dump parms.
1225         * decl2.c (finish_static_data_member_decl): Complain about a local
1226         class with a static data member.
1228         PR c++/4286
1229         * search.c (lookup_field_1): Don't xref a static data member
1230         just because we looked it up.
1232 2002-01-31  Jason Merrill  <jason@redhat.com>
1234         * Make-lang.in (parse.c): Handle .output file.
1236         PR c++/3395
1237         * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
1238         not TREE_TYPE.
1239         * semantics.c (finish_class_definition): Adjust.
1241         Allow attributes in parms and casts.
1242         * parse.y (named_parm): Don't strip attrs.
1243         (declmods): Remove 'attributes' production.
1244         (nonempty_cv_qualifiers): Accept attributes.
1245         (ATTRIBUTE): Give precedence.
1246         * decl.c (groktypename): Handle attributes.
1247         (grokparms): Likewise.
1249 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
1251         * decl2.c (cxx_decode_option): Pass 0 as last argument to
1252         cpp_handle_option.
1253         * lang-specs.h: Use cpp_unique_options instead of cpp_options
1254         when used together with cc1_options.
1256 2002-01-29  Nathan Sidwell  <nathan@codesourcery.com>
1258         PR c++/5132
1259         * typeck2.c (digest_init): Make sure non-array core type is
1260         instantiated.
1261         * decl2.c (reparse_absdcl_as_casts): Just store the type in the
1262         constructor, rather than build a new one.
1263         (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
1264         PURPOSE of constructor elts.
1266 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
1268         * Make-lang.in (parse.c): Adjust expected number of
1269         shift-reduce conflicts.
1270         (decl.o): Depend on diagnostic.h.
1271         * decl.c: Include diagnostic.h.
1272         (grokdeclarator): Check for null pointer.
1273         (finish_function): Don't abort when
1274         current_binding_level->parm_flag != 1, if errors have
1275         occurred; throw away the statement tree and extra binding
1276         levels, and continue.
1277         * lex.c (note_list_got_semicolon): Check for null pointer.
1278         * method.c (hack_identifier): Just return error_mark_node if
1279         value is error_mark_node.
1280         * parse.y (primary: TYPEID(type_id)): No need to use
1281         TYPE_MAIN_VARIANT here.
1282         (handler_seq): Accept an empty list of catch clauses and
1283         generate a fake handler block to avoid later crashes.
1284         (ansi_raise_identifier): Accept the error token too.
1285         * semantics.c (begin_class_definition,
1286         finish_class_definition): Check for error_mark_node.
1288 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
1290         * typeck2.c (friendly_abort): Delete definition.
1291         * cp-tree.h (friendly_abort): Don't prototype.
1292         (my_friendly_assert): Use fancy_abort.
1294 2002-01-23  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1296         * cp-tree.h (my_friendly_abort): Remove.
1298 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
1300         * spew.c (pending_inlines, pending_inlines_tail,
1301         processing_these_inlines): Make static.
1302         (mark_pending_inlines): Remove static.
1303         (begin_parsing_inclass_inline): If in function, save pi
1304         for GC to cp_function_chain->unparsed_inlines instead.
1305         (process_next_inline): Likewise.
1306         * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
1307         (mark_pending_inlines): Add prototype.
1308         * decl.c (spew_debug): Remove unused extern.
1309         (mark_lang_function): Call mark_pending_inlines.
1311 2002-01-23  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1313         * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
1314         init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
1315         semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
1316         Change my_fancy_abort() to abort().
1318 2002-01-23  Jason Merrill  <jason@redhat.com>
1320         PR c++/5453
1321         * class.c (fixed_type_or_null): Fix thinko.
1323         PR c++/3331
1324         * init.c (resolve_offset_ref): Use build_indirect_ref.
1326         * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
1328 2002-01-22  Jason Merrill  <jason@redhat.com>
1330         * parse.y (function_body): Suppress the block for the outermost
1331         curly braces.
1332         * decl.c (pushdecl): Don't try to skip it.
1333         (begin_function_body): Keep the block we create, not the next one.
1334         * init.c (emit_base_init): Don't mess with keep_next_level.
1336         * class.c (build_base_path): Tweak formatting.
1338 2002-01-19  Nathan Sidwell  <nathan@codesourcery.com>
1340         Fix regression introduced with patch for c++/775
1341         * parse.y (class_head_defn): Check for template specializations
1342         with a different class-key.
1344 2002-01-17  Jason Merrill  <jason@redhat.com>
1346         * decl.c (begin_constructor_body, begin_destructor_body): New fns.
1347         (begin_function_body): Call them and keep_next_level.
1348         * init.c (emit_base_init): Call keep_next_level.
1349         * semantics.c (setup_vtbl_ptr): Lose.
1350         * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
1351         (vtbls_set_up_p): Lose.
1352         * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
1353         * method.c (do_build_copy_constructor): Likewise.
1354         (synthesize_method): Call finish_mem_initializers.
1355         * parse.y (nodecls): Likewise.
1357         * error.c (dump_type_suffix): Print the exception specs before
1358         recursing.
1359         (dump_function_decl): Here, too.
1361         * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
1363 2002-01-10  Ira Ruben   <ira@apple.com>
1365         PR c++/907
1366         * decl.c (start_method): Handle attrlist.
1368 2002-01-10  Jakub Jelinek  <jakub@redhat.com>
1370         * decl2.c (max_tinst_depth): Increase default limit to 500.
1372 2002-01-10  Graham Stott  <grahams@redhat.com>
1374         * spew.c (YYCHAR): Uppercase macro parameter and add
1375         parenthesis.
1376         (YYCODE): Likewise.
1377         (NAME): Uppercase macro parameter.
1379 2002-01-09  Graham Stott  <grahams@redhat.com>
1381         * decl.h (grokdeclarator): Wrap long line.
1383         * semantics.c (FINISH_COND): Uppercase macro paramaters and
1384         add parenthesis.
1386 2002-01-08  Graham Stott  <grahams@redhat.com>
1388         * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
1389         (PALLOC): Uppercase macro parameter and whitespace.
1390         (SALLOC): Uppercase macro parameter.
1391         (SFREE): Uppercase macros parameter, add parenthese and
1392         whitespace.
1393         (STREQL): Uppercase macro parameter and whitespace.
1394         (STRNEQ): Likewise.
1395         (STRLSS): Likewise.
1396         (STRLEQ): Likewise.
1397         (STRGTR): Likewise.
1398         (STRGEQ): Likewise.
1400         * call.c (convert_like): Add parenthesis and wrap.
1401         (convert_like_with_context): Likewise.
1402         (ICS_RANK): Whitespace.
1403         (NEED_TEMPORARY_P): Remove parenthesis.
1405         * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
1406         whitespace.
1407         (VTT_MARKED_BINFO_P): Likewise.
1409         * decl.c (BINDING_LEVEL): Add parenthesis.
1410         (DEF_OPERATOR): Likewise.
1412         * mangle.c (MANGLE_TRACE): Add parenthesis.
1413         (MANGLE_TRACE_TREE): Likewise.
1414         (write_signed_number): Likewise.
1415         (write_unsigned_number): Likewise.
1417         * pt.c (ccat): Uppercase macro parameter.
1418         (cat): Likewise
1420         * search.c (SET_BINFO_ACCESS): Add parenthesis.
1422 2002-01-07  Jason Merrill  <jason@redhat.com>
1424         * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
1425         to pedwarn.
1427         PR c++/3536
1428         * method.c (make_thunk): If !flag_weak, give the thunk the
1429         function's linkage.
1430         (use_thunk): Here, too.
1432 2002-01-07  Graham Stott  <grahams@redhat.com>
1434         * error.c: Update copyright date.
1435         (print_scope_operator): Add parenthesis.
1436         (print_left_paren): Likewise.
1437         (print_right_paren): Likewise.
1438         (print_left_bracket): Likewise.
1439         (print_right_bracket): Likewise.
1440         (print_template_argument_list_start): Likewise.
1441         (print_template_argument_list_end): Likewise.
1442         (print_non_consecutive_character): Likewise.
1443         (print_tree_identifier): Likewise.
1444         (print_identifier): Likewise.
1445         (NEXT_CODE): Uppercase macro parameter.
1446         (ident_fndecl): Delete unused.
1447         (GLOBAL_THING): Likewise.
1449 2002-01-06  Graham Stott  <grahams@redhat.com>
1451         * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
1452         (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
1453         (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
1454         (RECORD_OR_UNION_TYPE_CHECK): Likewise.
1455         (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
1456         (C_IS_RESERVED_WORD): Uppercase macro parameter.
1457         (C_RID_YYCODE) Likewise.
1458         (ptrmem_cst): Use rtx.
1459         (LOCAL_BINDING_P): Add whitespace.
1460         (INHERITED_VALUE_BINDING_P): Likewise.
1461         (BINDING_SCOPE): Wrap long line.
1462         (BINDING_HAS_LEVEL_P): Remove parenthesis.
1463         (BINDING_VALUE): Wrap long line.
1464         (BINDING_TYPE): Whitespace.
1465         (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
1466         (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
1467         (IDENTIFIER_NAMESPACE_VALUE): Likewise.
1468         (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
1469         (same_type_p): Uppercase macro parameters.
1470         (same_type_ignoring_top_level_qualifiers_p): Likewise.
1471         (OVL_FUNCTION): Wrap long line.
1472         (OVL_CHAIN): Whitespace.
1473         (OVL_CURRENT): Add parenthesis and whitespace.
1474         (OVL_NEXT): Whitespace.
1475         (OVL_USED): Likewise.
1476         (IDENTIFIER_TYPE_VALUE): Likewise.
1477         (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
1478         (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
1479         (LANG_ID_FIELD): Whitespace.
1480         (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
1481         (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
1482         (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
1483         (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
1484         (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
1485         (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
1486         (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
1487         (IDENTIFIER_VIRTUAL_P): Likewise.
1488         (IDENTIFIER_OPNAME_P): Likewise.
1489         (IDENTIFIER_TYPENAME_P): Remove parenthesis.
1490         (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
1491         (C_SET_EXP_ORIGINAL_CODE): Likewise.
1492         (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
1493         (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
1494         (IS_AGGR_TYPE): Uppercase macro parameter.
1495         (CLASS_TYPE_P): Likewise.
1496         (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
1497         (IS_AGGR_TYPE_2): Whitespace.
1498         (TAGGED_TYPE_P): Uppercase macro parameter.
1499         (TYPE_BUILT_IN): Whitespace.
1500         (TYPE_FOR_JAVA): Likewise.
1501         (FUNCTION_ARG_CHAIN): Remove parenthesis.
1502         (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
1503         (FUNCTION_FIRST_USER_PARAM): Likewise.
1504         (PROMOTES_TO_AGGR_TYPE): Whitespace.
1505         (DERIVED_FROM_P): Add parenthesis and wrap.
1506         (UNIQUELY_DERIVED_FROM_P): Likewise.
1507         (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
1508         (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
1509         (CLASSTYPE_USE_TEMPLATE): Whitespace.
1510         (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
1511         (TYPE_GETS_DELETE): Add parenthesis.
1512         (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
1513         (TYPE_HAS_ASSIGN_REF): Likewise,
1514         (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
1515         (TYPE_HAS_INIT_REF): Likewise.
1516         (TYPE_HAS_CONST_INIT_REF): Likewise.
1517         (TYPE_BEING_DEFINED): Likewise.
1518         (TYPE_LANG_SPECIFIC): Likewise.
1519         (CLASSTYPE_RTTI): Likewise.
1520         (TYPE_OVERLOADS_CALL_EXPR): Likewise.
1521         (TYPE_OVERLOADS_ARRAY_REF): Likewise.
1522         (TYPE_OVERLOADS_ARROW): Likewise.
1523         (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
1524         (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
1525         (CLASSTYPE_METHOD_VEC): Likewise.
1526         (CLASSTYPE_MARKED_N): Likewise.
1527         (CLASSTYPE_MARKED): Likewise.
1528         (CLASSTYPE_MARKED2): Likewise.
1529         (CLASSTYPE_MARKED3): Likewise.
1530         (CLASSTYPE_MARKED4): Likewise.
1531         (CLASSTYPE_MARKED5): Likewise.
1532         (CLASSTYPE_MARKED6): Likewise.
1533         (SET_CLASSTYPE_MARKED): Whitespace.
1534         (CLEAR_CLASSTYPE_MARKED): Likewise.
1535         (SET_CLASSTYPE_MARKED2): Likewise.
1536         (CLEAR_CLASSTYPE_MARKED2): Likewise.
1537         (SET_CLASSTYPE_MARKED3): Likewise.
1538         (CLEAR_CLASSTYPE_MARKED3): Likewise.
1539         (SET_CLASSTYPE_MARKED4): Likewise.
1540         (CLEAR_CLASSTYPE_MARKED4): Likewise.
1541         (SET_CLASSTYPE_MARKED5): Likewise.
1542         (CLEAR_CLASSTYPE_MARKED5): Likewise.
1543         (SET_CLASSTYPE_MARKED6): Likewise.
1544         (CLEAR_CLASSTYPE_MARKED6): Likewise.
1545         (CLASSTYPE_TAGS): Likewise.
1546         (CLASSTYPE_VSIZE): Likewise.
1547         (CLASSTYPE_VBASECLASSES): Likewise.
1548         (CANONICAL_BINFO): Add parenthesis.
1549         (CLASSTYPE_SIZE(NODE): Likewise.
1550         (CLASSTYPE_SIZE_UNIT): Likewise.
1551         (CLASSTYPE_ALIGN(NODE): Likewise.
1552         (CLASSTYPE_USER_ALIGN): Likewise.
1553         (TYPE_JAVA_INTERFACE): Likewise.
1554         (CLASSTYPE_PURE_VIRTUALS): Likewise.
1555         (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
1556         (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
1557         (CLASSTYPE_HAS_MUTABLE): Likewise.
1558         (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
1559         (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
1560         (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
1561         (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
1562         (CLASSTYPE_INTERFACE_ONLY): Likewise.
1563         (CLASSTYPE_INTERFACE_KNOWN): Likewise.
1564         (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
1565         (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
1566         (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
1567         (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
1568         (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
1569         (BINFO_UNSHARED_MARKED): Whitespace.
1570         (BINFO_MARKED): Whitespace and wrap.
1571         (SET_BINFO_MARKED): Likewise.
1572         (CLEAR_BINFO_MARKED): Likewise.
1573         (BINFO_VTABLE_PATH_MARKED): Likewise.
1574         (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
1575         (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
1576         (BINFO_SUBVTT_INDEX): Remove parenthesis.
1577         (BINFO_VPTR_INDEX): Likewise.
1578         (BINFO_PRIMARY_BASE_OF): Likewise,
1579         (CLASSTYPE_VFIELDS): Whitespace.
1580         (VF_DERIVED_VALUE): Wrap long line.
1581         (NAMESPACE_LEVEL): Whitespace.
1582         (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
1583         (DEFARG_POINTER): Whitespace.
1584         (DECL_NEEDED_P): Remove parenthesis.
1585         (DECL_LANGUAGE): Whitespace.
1586         (SET_DECL_LANGUAGE): Add parenthesis.
1587         (DECL_CONSTRUCTOR_P): Whitespace and wrap.
1588         (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
1589         (DECL_IN_AGGR_P): Whitespace.
1590         (DECL_FRIEND_P): Likewise.
1591         (DECL_BEFRIENDING_CLASSES): Likewise.
1592         (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
1593         (DECL_NONCONVERTING_P): Whitespace.
1594         (DECL_PURE_VIRTUAL_P): Likewise.
1595         (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
1596         (DECL_PENDING_INLINE_INFO): Whitespace.
1597         (DECL_SORTED_FIELDS): Likewise.
1598         (DECL_DEFERRED_FN): Likewise.
1599         (DECL_TEMPLATE_INFO): Likewise.
1600         (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
1601         (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
1602         (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
1603         (TMPL_ARGS_LEVEL): Likewise.
1604         (SET_TMPL_ARGS_LEVEL): Likewise.
1605         (INNERMOST_TEMPLATE_PARMS): Whitespace.
1606         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
1607         (INTEGRAL_CODE_P(CODE): Add parenthesis.
1608         (CP_INTEGRAL_TYPE_P): Remove parenthesis.
1609         (TYPE_HAS_CONSTRUCTOR): Whitespace.
1610         (TREE_HAS_CONSTRUCTOR): Likewise.
1611         (TYPE_HAS_DESTRUCTOR): Likewise.
1612         (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
1613         (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
1614         (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
1615         (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
1616         (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
1617         (TYPE_PTRMEMFUNC_P): Likewise.
1618         (TYPE_PTRMEMFUNC_FLAG): Likewise.
1619         (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
1620         (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
1621         (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
1622         (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
1623         (DECL_ACCESS): Whitespace.
1624         (DECL_GLOBAL_CTOR_P): Remove parenthesis.
1625         (DECL_GLOBAL_DTOR_P): Likewise.
1626         (GLOBAL_INIT_PRIORITY): Likewise.
1627         (DECL_TEMPLATE_PARMS): Likewise.
1628         (DECL_TEMPLATE_RESULT): Likewise.
1629         (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
1630         (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
1631         (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
1632         (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
1633         (PRIMARY_TEMPLATE_P): Add parenthesis.
1634         (DECL_USE_TEMPLATE): Whitespace.
1635         (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
1636         (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
1637         (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
1638         (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
1639         (CALL_DECLARATOR_PARMS): Remove parenthesis.
1640         (CALL_DECLARATOR_QUALS): Likewise.
1641         (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
1642         (TEMP_NAME_P): Wrap.
1643         (VFIELD_NAME_P): Likewise.
1644         (B_SET): Uppercase macro parameters and add parenthesis.
1645         (B_CLR): Likewise.
1646         (B_TST): Likewise.
1647         (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
1648         (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
1649         (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
1650         (same_or_base_type_p): Likewise.
1651         (cp_deprecated): Likewise.
1653 2002-01-05  Richard Henderson  <rth@redhat.com>
1655         * semantics.c (expand_body): Revert last change.
1657 2002-01-04  Jason Merrill  <jason@redhat.com>
1659         PR c++/4122
1660         * class.c (update_vtable_entry_for_fn): Set delta to zero for a
1661         lost primary.
1663         * class.c (build_vtbl_initializer): Check for a lost primary
1664         before calculating the vtable entry to throw away.
1666 2002-01-02  Jason Merrill  <jason@redhat.com>
1668         * semantics.c (expand_body): Call outlining_inline_function when
1669         emitting an inline function out of line.
1671 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1673         PR c++/5116, c++/764 reversion
1674         * call.c (build_new_op): Revert the instantiations. They are
1675         incorrect.
1677 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1679         PR c++/5089
1680         * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
1682 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1684         PR c++/3716
1685         * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
1686         (tsubst, case POINTER_TYPE): Handle pmfs here.
1687         (tsubst, case OFFSET_TYPE): Check it is not an offset to
1688         reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
1690 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1692         PR c++/35
1693         * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
1694         (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
1695         * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
1696         PARM_DECL.
1697         (tsubst_template_parms): Break up loop statements.
1698         (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
1699         parm PARM_DECLs don't get promoted.
1701 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1703         PR c++/5123
1704         * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
1705         (build_x_function_call): Cope with a COMPONENT_REF containing a
1706         TEMPLATE_ID_EXPR.
1708 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1710         PR c++/5213
1711         * pt.c (convert_template_argument): Be more careful determining
1712         when RECORD_TYPE templates are or are not templates.
1714 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1716         PR c++/775
1717         * cp-tree.h (handle_class_head): Adjust prototype.
1718         * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
1719         parameters. Use for all class heads.
1720         * parse.y (named_class_head_sans_basetype, named_class_head,
1721         named_complex_class_head_sans_basetype,
1722         named_class_head_sans_basetype_defn,
1723         unnamed_class_head): Remove.
1724         (class_head, class_head_apparent_template): Recognize class heads
1725         (class_head_decl, class_head_defn): New reductions. Process class
1726         heads.
1727         (structsp): Adjust class definition and class declaration
1728         reductions.
1729         (maybe_base_class_list): Give diagnostic on empty list.
1731 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1733         PR c++/4379
1734         * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
1735         single non-static member.
1736         (unary_complex_lvalue): If it cannot be a pointer to member, don't
1737         make it so. Check it is not pointer to reference.
1739 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1741         PR c++/5132
1742         * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
1743         are processing a template decl.
1745 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1747         PR c++/5116, c++/764
1748         * call.c (build_new_op): Make sure template class operands are
1749         instantiated. Simplify arglist construction.
1751 2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
1753         * call.c (build_user_type_conversion_1): Use my_friendly_assert
1754         rather than if ... abort.
1755         * cvt.c (convert_to_reference): Likewise.
1756         * semantics.c (setup_vtbl_ptr): Likewise.
1757         * pt.c (lookup_template_class): Comment typo.
1759 2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
1761         PR c++/5125
1762         * pt.c (push_template_decl_real): Make sure DECL has
1763         DECL_LANG_SPECIFIC.
1765 2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
1767         PR c++/335
1768         * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
1769         for non-reference fields.
1770         * typeck.c (require_complete_type): Use resolve_offset_ref).
1772 2001-12-26  Nathan Sidwell  <nathan@codesourcery.com>
1774         PR c++/196
1775         * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
1777 2001-12-24  Nathan Sidwell  <nathan@codesourcery.com>
1779         PR c++/160
1780         * typeck.c (build_modify_expr): Remove old unreachable code & tidy
1781         up. Don't stabilize_references when initializing a reference.
1783 2001-12-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1785         * decl2.c (lang_f_options): Const-ify.
1787 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1789         * config-lang.in (diff_excludes): Remove.
1791 2001-12-19  Nathan Sidwell  <nathan@codesourcery.com>
1793         PR c++/90
1794         * typeck.c (build_function_call_real): Use original function
1795         expression for errors.
1797 2001-12-18  Jason Merrill  <jason@redhat.com>
1799         PR c++/3242
1800         * class.c (add_method): Do compare 'this' quals when trying to match a
1801         used function.  Don't defer to another used function.
1803 2001-12-18  Nathan Sidwell  <nathan@codesourcery.com>
1805         * pt.c (instantiate_clone): Remove, fold into ...
1806         (instantiate_template): ... here. Simplify by removing mutual
1807         recursion.
1808         * typeck2.c (build_m_component_ref): Don't cv qualify the function
1809         pointed to by a pointer to function.
1810         * class.c (delete_duplicate_fields_1): Typo.
1812 2001-12-18  Jason Merrill  <jason@redhat.com>
1814         C++ ABI change: destroy value arguments in caller.
1815         * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
1816         create an extra binding level for the parameters.
1817         * decl.c (store_parm_decls): Don't do parameter cleanups.
1819 2001-12-18  Nathan Sidwell  <nathan@codesourcery.com>
1821         * call.c (build_new_method_call): Use '%#V'.
1822         * error.c (cv_to_string): Use V parameter to determine padding.
1824 2001-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1826         * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
1827         spellings in messages.
1829 2001-12-17  Zack Weinberg  <zack@codesourcery.com>
1831         * cp-tree.h: Delete #defines for cp_error, cp_warning,
1832         cp_pedwarn, and cp_compiler_error.
1833         * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
1834         except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
1835         rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
1836         typeck2.c: Change calls to the above macros to use their
1837         language-independent equivalents: error, warning, pedwarn, and
1838         internal_error respectively.
1840 2001-12-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1842         * decl2.c (finish_file): Remove back_end_hook.
1844 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
1846         * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
1847         cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
1848         pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
1850 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
1852         * lang-options.h: Use American spelling in messages.
1854 2001-12-13  Jason Merrill  <jason@redhat.com>
1856         * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
1858         Use cleanups to run base and member destructors.
1859         * init.c (push_base_cleanups): New function, split out from...
1860         (build_delete): ...here.  Lose !TYPE_HAS_DESTRUCTOR code.
1861         * decl.c (finish_destructor_body): Move vbase destruction code to
1862         push_base_cleanups.
1863         (begin_function_body, finish_function_body): New fns.
1864         (finish_function): Move [cd]tor handling and call_poplevel to
1865         finish_function_body.
1866         (pushdecl): Skip the new level.
1867         * semantics.c (genrtl_try_block): Don't call end_protect_partials.
1868         (setup_vtbl_ptr): Call push_base_cleanups.
1869         * method.c (synthesize_method): Call {begin,end}_function_body.
1870         * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
1871         * cp-tree.h: Declare new fns.
1872         * parse.y (function_body, .begin_function_body): New nonterminals.
1873         (fndef, pending_inline, function_try_block): Use function_body.
1874         (ctor_initializer_opt, function_try_block): No longer has a value.
1875         (base_init): Remove .set_base_init token.
1876         (.set_base_init, compstmt_or_error): Remove.
1877         * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
1879         * optimize.c (maybe_clone_body): Fix parameter updating.
1881 2001-12-12  Jason Merrill  <jason@redhat.com>
1883         * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
1884         * semantics.c (genrtl_start_function): Don't pass
1885         parms_have_cleanups or push an extra binding level.
1886         (genrtl_finish_function): Lose cleanup_label cruft.
1888         * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
1889         (ctor_label): Remove.
1890         * semantics.c (finish_return_stmt): Lose ctor_label support.
1891         * decl.c (finish_constructor_body, mark_lang_function): Likewise.
1892         * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
1893         dtor_label.
1895         * call.c (build_new_method_call): Let resolves_to_fixed_type_p
1896         check for [cd]tors.
1897         * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
1899         * decl.c (finish_function): Check VMS_TARGET, not VMS.
1901         * decl.c (start_cleanup_fn): Remove redundant pushlevel.
1902         (end_cleanup_fn): And poplevel.
1904         * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
1905         if we're in a template.
1907 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
1909         * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
1910         ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
1911         THIS_NAME_P): Delete.
1912         * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
1913         THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
1914         with internal naming scheme.
1915         * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
1917 2001-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1919         * decl.c (grokdeclarator): Deprecated implicit typename use.
1921 2001-12-11  Nathan Sidwell  <nathan@codesourcery.com>
1923         PR g++/51
1924         * parse.y (frob_specs): Indicate it is a language linkage which
1925         contained the extern.
1926         * decl.c (grokdeclarator): Allow extern language linkage with
1927         other specifiers.
1929 2001-12-10  Nathan Sidwell  <nathan@codesourcery.com>
1931         PR g++/72
1932         * decl.c (add_binding): Don't reject duplicate typedefs involving
1933         template parameters.
1935 2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1937         * parse.y, semantics.c: Similarly.
1939 2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
1941         PR g++/87
1942         * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
1943         (copy_args_p): Rename to ...
1944         (copy_fn_p): ... here.
1945         (grok_special_member_properties): New function.
1946         (grok_op_properties): Lose VIRTUALP parameter.
1947         (copy_assignment_arg_p): Remove.
1948         * call.c (build_over_call): Use copy_fn_p.
1949         * decl.c (grokfndecl): Reformat. Adjust call to
1950         grok_op_properties.
1951         (copy_args_p): Rename to ...
1952         (copy_fn_p): ... here. Reject template functions. Check for pass
1953         by value.
1954         (grok_special_member_properties): Remember special functions.
1955         (grok_ctor_properties): Don't remember them here, just check.
1956         (grok_op_properties): Likewise.
1957         (start_method): Call grok_special_member_properties.
1958         * decl2.c (grokfield): Likewise.
1959         (copy_assignment_arg_p): Remove.
1960         (grok_function_init): Don't remember abstract assignment here.
1961         * pt.c (instantiate_class_template): Call
1962         grok_special_member_properties.
1963         (tsubst_decl): Adjust grok_op_properties call.
1965 2001-12-08  Aldy Hernandez  <aldyh@redhat.com>
1967         * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
1968         RID_TYPES_COMPATIBLE_P.
1970 2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1972         * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
1973         call to build_aggr_init.
1974         * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
1976 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1978         * parse.y: Replace uses of the string non-terminal with STRING.
1979         Don't perform string concatentaion here.
1980         (string): Remove non-terminal.
1981         * semantics.c (finish_asm_stmt): Don't concatenate strings here.
1983 2001-12-05  Jason Merrill  <jason@redhat.com>
1985         * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
1986         (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
1987         * tree.c (cp_start_inlining, cp_end_inlining): New fns.
1988         * pt.c (push_tinst_level): No longer static.
1989         * cp-tree.h: Declare them.
1991         * init.c (resolve_offset_ref): Don't check access for the base
1992         conversion to access a FIELD_DECL.
1994         * cp-tree.h (TYPE_REFFN_P): New macro.
1995         * decl.c (bad_specifiers): Check it, too.
1997         * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
1998         on the __*_type_info type if we haven't seen a definition.
2000 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2002         * decl.c: Include c-common.h.
2003         (shadow_warning): Move to c-common.c.
2005 Wed Dec  5 17:00:49 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2007         * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
2009 2001-12-04  Nathan Sidwell  <nathan@codesourcery.com>
2011         * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
2013 2001-12-04  Nathan Sidwell  <nathan@codesourcery.com>
2015         PR g++/164
2016         * init.c (sort_base_init): Allow binfos to be directly specified.
2017         * method.c (do_build_copy_constructor): Explicitly convert to the
2018         base instance.
2019         (do_build_assign_ref): Likewise.
2021 2001-12-03  Hans-Peter Nilsson  <hp@bitrange.com>
2023         * decl.c (xref_basetypes): Don't use C99 construct in tag_code
2024         declaration and initialization.
2026 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2028         * typeck2.c: Remove leading capital from diagnostic messages, as
2029         per GNU coding standards.
2031 2001-12-03  Mumit Khan  <khan@nanotech.wisc.edu>
2033         PR c++/3394
2034         * decl.c (xref_basetypes): Handle attributes between
2035         'class' and name.
2037 2001-12-03  Nathan Sidwell  <nathan@codesourcery.com>
2039         PR g++/3381
2040         * parse.y (named_complex_class_head_sans_basetype): Add new
2041         reduction.
2042         * Make-lang.in (parse.c): Adjust expected conflict count.
2044 2001-12-03  Jason Merrill  <jason@redhat.com>
2046         * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
2047         immediate binfos for our virtual bases.
2049 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2051         * call.c (build_java_interface_fn_ref): Similarly.
2052         * except.c (is_admissible_throw_operand): Similarly.
2053         * init.c (build_java_class_ref): Similarly.
2054         * xref.c (open_xref_file): Similarly.
2056 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2058         * class.c (finish_struct): Remove trailing periods from messages.
2059         * decl.c (check_tag_decl): Similarly.
2060         * lex.c (cxx_set_yydebug): Similarly.
2061         * typeck2.c (friendly_abort): Similarly.
2063 2001-11-29  Mark Mitchell  <mark@codesourcery.com>
2065         PR c++/3048
2066         * cp-tree.h (ovl_member): Remove.
2067         * decl2.c (merge_functions): Handle extern "C" functions
2068         specially.
2069         * tree.c (ovl_member): Remove.
2071 2001-11-29  Mark Mitchell  <mark@codesourcery.com>
2073         PR c++/4842
2074         * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
2075         FUNCTION_DECL, as input.
2076         (mark_overriders): Remove.
2077         (warn_hidden): Rework for the new ABI.
2079 2001-11-29  Mark Mitchell  <mark@codesourcery.com>
2081         PR c++/3471
2082         * call.c (convert_like_real): Do not build additional temporaries
2083         for rvalues of class type.
2085 2001-11-28  Nathan Sidwell  <nathan@codesourcery.com>
2087         * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
2088         (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
2089         (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
2090         (DERIVED_FROM_P): Likewise.
2091         (enum base_access): Renumber, add ba_quiet bit mask.
2092         (get_binfo): Remove.
2093         (get_base_distance): Remove.
2094         (binfo_value): Remove.
2095         (ACCESSIBLY_DERIVED_FROM_P): Remove.
2096         * call.c (standard_conversion): Use lookup_base.
2097         * class.c (strictly_overrides): Likewise.
2098         (layout_virtual_bases): Likewise.
2099         (warn_about_ambiguous_direct_bases): Likewise.
2100         (is_base_of_enclosing_class): Likewise.
2101         (add_vcall_offset_vtbl_entries_1): Likewise.
2102         * cvt.c (build_up_reference): Adjust comment.
2103         * init.c (build_member_call): Reformat.
2104         * search.c (get_binfo): Remove.
2105         (get_base_distance_recursive): Remove.
2106         (get_base_distance): Remove.
2107         (lookup_base_r): Tweak.
2108         (lookup_base): Add ba_quiet control. Complete the types here.
2109         (covariant_return_p): Use lookup_base.
2110         * tree.c (binfo_value): Remove.
2111         (maybe_dummy_object): Use lookup_base.
2112         * typeck.c (build_static_cast): Use lookup_base.
2113         (get_delta_difference): Likewise.
2114         * typeck2.c (binfo_or_else): Use lookup_base.
2115         (build_scoped_ref): Add back error_mark_check.
2116         (build_m_component_ref): Use lookup_base.
2118 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
2120         * Make-lang.in (c++.generated-manpages): New dummy target.
2122 Tue Nov 27 09:03:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2124         * Make-lang.in (cp-lang.o): Depends on c-common.h.
2125         * cp-lang.c (c-common.h): Include.
2126         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
2127         * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
2128         * expr.c (init_cplus_expand): Don't set lang_expand_constant.
2130 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2132         * decl2.c (c_language): Move to c-common.c.
2133         * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
2134         functions.
2135         (cxx_init): Update.
2137 2001-11-26  Jason Merrill  <jason@redhat.com>
2139         * call.c (joust): Remove COND_EXPR hack.
2141 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
2143         * search.c (lookup_base_r): Declare bk in variable declaration
2144         space.
2146 2001-11-25  Nathan Sidwell  <nathan@codesourcery.com>
2148         PR g++/3145
2149         * class.c (build_vbase_pointer): Remove.
2150         (build_vbase_path): Remove.
2151         (build_base_path): New function.
2152         * cp-tree.h (base_access, base_kind): New enumerations.
2153         (build_base_path): Declare.
2154         (convert_pointer_to_real): Remove.
2155         (convert_pointer_to): Remove.
2156         (lookup_base): Declare.
2157         (convert_pointer_to_vbase): Remove.
2158         * call.c (build_scoped_method_call): Use lookup_base &
2159         build_base_path instead of convert_pointer_to_real,
2160         get_base_distance & get_binfo.
2161         (build_over_call): Likewise.
2162         * cvt.c (cp_convert_to_pointer): Likewise.
2163         (convert_to_pointer_force): Likewise.
2164         (build_up_reference): Likewise.
2165         (convert_pointer_to_real): Remove.
2166         (convert_pointer_to): Remove.
2167         * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
2168         instead of convert_pointer_to_vbase & build_vbase_path.
2169         (emit_base_init): Use build_base_path instead of
2170         convert_pointer_to_real.
2171         (expand_virtual_init): Lose unrequired conversions.
2172         (resolve_offset_ref): Use lookup_base and build_base_path
2173         instead of convert_pointer_to.
2174         * rtti.c (build_dynamic_cast_1): Use lookup_base &
2175         build_base_path instead of get_base_distance & build_vbase_path.
2176         * search.c (get_vbase_1): Remove.
2177         (get_vbase): Remove.
2178         (convert_pointer_to_vbase): Remove.
2179         (lookup_base_recursive): New function.
2180         (lookup_base): New function.
2181         * typeck.c (require_complete_type): Use lookup_base &
2182         build_base_path instead of convert_pointer_to.
2183         (build_component_ref): Likewise.
2184         (build_x_function_call): Likewise.
2185         (get_member_function_from_ptrfunc): Likewise.
2186         (build_component_addr): Likewise.
2187         * typeck2.c (build_scoped_ref): Likewise.
2189 2001-11-22  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2191         * cp-tree.h (CP_TYPE_QUALS): Removed.
2192         * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
2193         * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
2194         LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
2195         * dump.c (cp_dump_tree): Use void* dump_info argument to match
2196         lang-hooks prototype.
2197         * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
2198         rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
2199         CP_TYPE_QUALS changed to cp_type_quals.
2200         * Make-lang.in: References to c-dump.h changed to tree-dump.h.
2201         (CXX_C_OBJS): Remove c-dump.o.
2203 2001-11-21  Mark Mitchell  <mark@codesourcery.com>
2205         PR c++/3637
2206         * pt.c (lookup_template_class): Ensure that all specializations
2207         are registered on the list corresponding to the most general
2208         template.
2210 2001-11-20  Mark Mitchell  <mark@codesourcery.com>
2212         * call.c (non_reference): Add documentation.
2213         (convert_class_to_reference): Do not strip reference types
2214         from conversion operators.
2215         (maybe_handle_ref_bind): Simplify.
2216         (compare_ics): Correct handling of references.
2218 2001-11-19  John Wilkinson <johnw@research.att.com>
2220         * dump.c (dump_op): New function.
2221         (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION.  Use
2222         dump_op.  Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
2223         DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
2225 2001-11-19  Mark Mitchell  <mark@codesourcery.com>
2227         PR4629
2228         * semantics.c (finish_sizeof): Make sure that expression created
2229         while processing a template do not have a type.
2230         (finish_alignof): Likewise.
2231         * typeck.c (c_sizeof): Likewise.
2232         (expr_sizeof): Likewise.
2234 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2236         * lex.c (cxx_finish): Call c_common_finish.
2237         (finish_parse): Remove.
2239 2001-11-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2241         * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
2242         when displaying error message about missing array bounds.
2244 2001-11-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2246         * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
2247         CONST_CAST_EXPR.
2248         * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
2250 2001-11-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2252         * cp-tree.h (print_class_statistics): Restore.
2254 2001-11-15  Jason Merrill  <jason@redhat.com>
2256         * method.c (use_thunk): Don't emit debugging information for thunks.
2258         * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
2259         * decl.c (make_typename_type): Handle getting a class template.
2260         * search.c (lookup_field_r): A class template is good enough for
2261         want_type.
2263         * call.c (convert_like_real): Only use cp_convert for the bad part.
2264         (standard_conversion): Also allow bad int->enum.
2265         * typeck.c (ptr_reasonably_similar): Also allow functions to
2266         interconvert.  Pointers to same-size integers are reasonably
2267         similar.
2269         * cvt.c (convert_to_void): If we build a new COND_EXPR, always
2270         give it void type.
2272 2001-11-15  Nathan Sidwell  <nathan@codesourcery.com>
2274         PR g++/3154
2275         * init.c (sort_base_init): Remove unreachable code.
2276         (expand_member_init): Adjust comment to reflect reality. Simplify
2277         and remove unreachable code.
2279 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2281         * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
2282         (cxx_init): Update prototype.
2283         * decl.c (init_decl_processing): Rename.  Move null node init
2284         to its creation time.
2285         * lex.c (cxx_init_options): Update.
2286         (cxx_init): Combine with old init_parse; also call
2287         cxx_init_decl_processing.
2289 2001-11-14  Richard Sandiford  <rsandifo@redhat.com>
2291         * decl.c (check_initializer): Try to complete the type of an
2292         array element before checking whether it's complete.  Don't
2293         complain about arrays with complete element types but an
2294         unknown size.
2295         (cp_finish_decl): Build the hierarchical constructor before
2296         calling maybe_deduce_size_from_array_init.
2298 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
2300         * Make-lang.in: Change all uses of $(manext) to $(man1ext).
2302 2001-11-13  Nathan Sidwell  <nathan@codesourcery.com>
2304         PR g++/4206
2305         * parse.y (already_scoped_stmt): Remove.
2306         (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
2308 2001-11-12  H.J. Lu <hjl@gnu.org>
2310         * cvt.c (ocp_convert): Don't warn the address of a weak
2311         function is always `true'.
2313 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2315         * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2316         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2317         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
2318         * cp-tree.h (print_class_statistics): Remove.
2319         (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
2320         cxx_print_identifier, cxx_set_yydebug): New.
2321         * lex.c (set_yydebug): Rename c_set_yydebug.
2322         * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
2323         lang_print_xnode): Rename.
2324         * tree.c (print_lang_statistics): Rename.
2326 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2328         * class.c (dump_array): Fix format specifier warning.
2330 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2332         * cp-lang.c (LANG_HOOKS_NAME): Override.
2333         (struct lang_hooks): Constify.
2334         * lex.c (cxx_init_options): Update.
2335         (lang_identify): Remove.
2336         * parse.y (language_string): Remove.
2338 2001-11-08  Andreas Franck  <afranck@gmx.de>
2340         * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
2341         DEMANGLER_CROSS_NAME): Handle program_transform_name the way
2342         suggested by autoconf.
2343         (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
2344         (c++.install-common): Use the transformed target alias names.
2346 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2348         * Make-lang.in: Update.
2349         * cp-lang.c: Include langhooks-def.h.
2351 2001-11-04  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2353         * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
2355 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2357         * lex.c (copy_lang_type): Add static prototype.
2359 2001-11-02  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2361         * pt.c (unify): Handle SCOPE_REF.
2363 2001-11-01  Jakub Jelinek  <jakub@redhat.com>
2365         * tree.c (cp_copy_res_decl_for_inlining): Adjust
2366         DECL_ABSTRACT_ORIGIN for the return variable.
2368 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
2370         *  Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
2372 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
2374         * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
2375         semantics.c, spew.c: Fix spelling errors.
2377 2001-10-27  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2379         * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
2381 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
2383         * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
2384         pop_everything.
2386 Tue Oct 23 14:00:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2388         * cp-lang.c (cxx_get_alias_set): New function.
2389         Point LANG_HOOKS_GET_ALIAS_SET to it.
2391 2001-10-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2393         * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
2394         * cp-tree.h (make_unbound_class_template): Prototype new function.
2395         * decl.c (make_unbound_class_template): New function.
2396         * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
2397         * error.c (dump_type): Likewise.
2398         * mangle.c (write_type): Likewise.
2399         * parse.y (template_parm): Likewise.
2400         (template_argument): Use make_unbound_class_template.
2401         * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
2402         (tsubst): Likewise.
2403         (tsubst_copy): Likewise.
2404         (unify): Likewise.
2405         * tree.c (walk_tree): Likewise.
2406         * typeck.c (comptypes): Likewise.
2408 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2410         * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
2411         extra calls into fewer ones.
2413 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
2415         * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
2416         Warn when merging inline with attribute noinline.
2417         (start_decl, start_function): Warn if inline and attribute
2418         noinline appear in the same declaration.
2420 2001-10-16  H.J. Lu <hjl@gnu.org>
2422         * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
2423         for tree checking disabled.
2425 2001-10-16  Hans-Peter Nilsson  <hp@axis.com>
2427         * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
2428         NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
2430 2001-10-15  Richard Sandiford  <rsandifo@redhat.com>
2432         * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
2433         (unify): Only handle MINUS_EXPR specially if the above flag is set
2434         and the subtracted constant is 1.  Clear the flag on recursive calls.
2435         Set it when unifying the maximum value in an INTEGER_TYPE's range.
2437 2001-10-15  Richard Sandiford  <rsandifo@redhat.com>
2439         * decl.c (bad_specifiers): Don't allow exception specifications
2440         on any typedefs.
2442 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2444         * cp/lex.c (init_cp_pragma): Similarly.
2446 2001-10-13  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2448         * pt.c (lookup_template_class): Build complete template arguments
2449         for BOUND_TEMPLATE_TEMPLATE_PARM.
2451 2001-10-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2453         * cp-tree.h (TYPE_BINFO): Update comment.
2454         (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
2455         (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
2456         (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
2457         (copy_type): Prototype new function.
2458         * lex.c (copy_lang_decl): Gather tree node statistics.
2459         (copy_lang_type): New function.
2460         (copy_type): Likewise.
2461         (cp_make_lang_type): Create lang_type for
2462         BOUND_TEMPLATE_TEMPLATE_PARM.  Set TYPE_BINFO for TYPENAME_TYPE
2463         and BOUND_TEMPLATE_TEMPLATE_PARM.
2464         * pt.c (tsubst): Use copy_type instead of copy_node.
2465         * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
2467 2001-10-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2469         * pt.c (determine_specialization): Ignore functions without
2470         DECL_TEMPLATE_INFO.
2472 2001-10-12  Nathan Sidwell  <nathan@codesourcery.com>
2474         PR g++/4476
2475         * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
2477 2001-10-11  Jason Merrill  <jason_merrill@redhat.com>
2479         * typeck2.c (store_init_value): Don't re-digest a bracketed
2480         initializer.
2482         * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
2483         ANON_AGGR_TYPE_P.
2485 2001-10-11  Richard Henderson  <rth@redhat.com>
2487         * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
2488         of an asm statement.
2489         (build_vtbl_ref_1): Split out from build_vtbl_ref.
2490         (build_vfn_ref): Use it to handle vtable descriptors before
2491         calling build_vtable_entry_ref.
2492         * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
2494 2001-10-10  Richard Henderson  <rth@redhat.com>
2496         * parse.y (asm_operand): Allow named operands.
2497         * semantics.c (finish_asm_stmt): Tweek for changed location
2498         of the operand constrant.
2500 2001-10-09  Jason Merrill  <jason_merrill@redhat.com>
2502         * call.c (standard_conversion): Add bad conversion between
2503         integers and pointers.
2504         (convert_like_real): Don't use convert_for_initialization for bad
2505         conversions; complain here and use cp_convert.
2506         (build_over_call): Don't handle bad conversions specially.
2507         (perform_implicit_conversion): Allow bad conversions.
2508         (can_convert_arg_bad): New fn.
2509         * cp-tree.h: Declare it.
2510         * typeck.c (convert_for_assignment): Use it.
2511         (ptr_reasonably_similar): Any target type is similar to void.
2513 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
2515         * Make-lang.in (CXX_OBJS): Added cp-lang.o.
2516         (cp/cp-lang.o): New rule.
2517         * cp-tree.h: Declare hooks.
2518         * tree.c: Make hooks non-static.
2519         (init_tree): Don't initialize hooks here.
2520         * lex.c: Likewise.  Move definition of lang_hooks to...
2521         * cp-lang.c: ... new file.
2523 2001-10-08  Richard Henderson  <rth@redhat.com>
2525         * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
2526         (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
2528 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2530         * class.c (build_vtable_entry_ref): Const-ify.
2531         * decl.c (predefined_identifier,
2532         initialize_predefined_identifiers): Likewise.
2533         * init.c (build_new_1): Likewise.
2534         * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
2535         Likewise.
2537 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
2539         * optimize.c (struct inline_data): Moved to ../tree-inline.c.
2540         (INSNS_PER_STMT): Likewise.
2541         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
2542         (copy_body, initialize_inlined_parameters): Likewise.
2543         (declare_return_variable, inlinable_function_p): Likewise.
2544         (expand_call_inline, expand_calls_inline): Likewise.
2545         (optimize_inline_calls, clone_body): Likewise.
2546         * tree.c (walk_tree): Moved to ../tree-inline.c.
2547         (walk_tree_without_duplicates): Likewise.
2548         (copy_tree_r, remap_save_expr): Likewise.
2550 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
2552         * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
2553         (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
2554         * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
2555         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
2556         (flag_inline_trees): Moved declaration to ../tree-inline.h.
2557         (walk_tree): Moved declaration to ../tree-inline.h.
2558         (walk_tree_without_duplicates, copy_tree_r): Likewise.
2559         (remap_save_expr): Likewise.
2560         * decl.c: Include tree-inline.h.
2561         (lang_mark_tree): Don't mark inlined_fns.
2562         * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
2563         * optimize.c: Include tree-inline.h.
2564         (optimize_inline_calls): Move declaration to ../tree.h, as
2565         non-static.
2566         (remap_decl): Use language-independent constructs and hooks.
2567         (remap_block, copy_body_r, declare_return_variable): Likewise.
2568         (inlinable_function_p): Likewise.  Don't test for
2569         DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
2570         no longer language-specific.
2571         (optimize_inline_calls): Likewise.  Make it non-static.  Moved
2572         call of dump_function to...
2573         (optimize_function): Here...
2574         (clone_body): New function, extracted from...
2575         (maybe_clone_body): ... here.  Build decl_map locally and pass
2576         it on to clone_body.
2577         * pt.c, semantics.c: Include tree-inline.h.
2578         * tree.c: Likewise.
2579         (cp_walk_subtrees): New language-specific hook for tree inlining.
2580         (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
2581         cp_is_overload_p, cp_auto_var_in_fn_p,
2582         cp_copy_res_decl_for_inlining): Likewise.
2583         (walk_tree): Move language-specific constructs into...
2584         (cp_walk_subtrees): this new function.
2585         (copy_tree_r): Use language-independent constructs and hooks.
2586         (init_tree): Initialize tree inlining hooks.
2587         (remap_save_expr): Adjust prototype so that the declaration
2588         does not require the definition of splay_tree.
2590 2001-10-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2592         * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
2593         to build the declaration instead of the declaration itself.
2595 2001-10-02  Jason Merrill  <jason_merrill@redhat.com>
2597         * decl2.c (cxx_decode_option): Add 'else'.
2599         * spew.c (end_input): No longer static.
2600         * cp-tree.h: Declare it.
2601         * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
2603 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2605         * call.c (build_over_call), typeck.c (build_function_call_real):
2606         Pass type attributes to check_function_format rather than name or
2607         assembler name.  Don't require there to be a name or assembler
2608         name to check formats.
2610 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2612         * decl.c (init_decl_processing): Don't call
2613         init_function_format_info.  Initialize lang_attribute_table
2614         earlier.
2615         (builtin_function): Call decl_attributes.
2616         (insert_default_attributes): New.
2618 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
2620         * decl.c (grokdeclarator): Copy array typedef handling from C
2621         frontend.
2623         * decl.c (grokdeclarator): Copy too-large array handling from C
2624         frontend.
2626 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
2628         * config-lang.in (target_libs): Added target-gperf, so that we
2629         don't try to build it if C++ is disabled.
2631 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
2633         * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
2634         (cp/errfn.o): Delete rule.
2635         (cp/error.o): Depend on flags.h.
2636         * errfn.c: Delete file.
2637         * cp-tree.h: Declare warn_deprecated.  Remove definitions of
2638         TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
2639         and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
2640         cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
2641         internal_error respectively.  Make cp_deprecated into a macro.
2642         Don't define cp_printer typedef or declare cp_printers.
2643         * error.c: Include flags.h.
2644         Delete: struct tree_formatting_info, print_function_argument_list,
2645         print_declaration, print_expression, print_function_declaration,
2646         print_function_parameter, print_type_id, print_cv_qualifier_seq,
2647         print_type_specifier_seq, print_simple_type_specifier,
2648         print_elaborated_type_specifier, print_rest_of_abstract_declarator,
2649         print_parameter_declaration_clause, print_exception_specification,
2650         print_nested_name_specifier, and definition of cp_printers.
2651         (locate_error): New function.
2652         (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
2653         rewritten in terms of locate_error and diagnostic.c.
2654         (cp_tree_printer): Rename cp_printer; wire up to *_to_string
2655         instead of deleted print_* routines.  Handle %C, %L, %O, %Q also.
2656         (init_error): Adjust to match.
2658 Sat Sep 22 09:15:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2660         * Make-lang.in (CXX_C_OBJS): Add attribs.o.
2662 2001-09-21  Richard Henderson  <rth@redhat.com>
2664         * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
2665         (build_vtbl_initializer): Likewise.
2666         (build_vfn_ref): New.
2667         * cp-tree.h: Declare it.
2668         * call.c (build_over_call): Use it.
2669         * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
2670         * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
2672 Fri Sep 21 08:16:19 2001  J"orn Rennecke <amylaar@redhat.com>
2674         * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
2676 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2678         Table-driven attributes.
2679         * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
2680         * decl2.c (cplus_decl_attributes): Only take one attributes
2681         parameter.
2682         * cp-tree.c (cplus_decl_attributes): Update prototype.
2683         * class.c (finish_struct), decl.c (start_decl, start_function),
2684         decl2.c (grokfield), friend.c (do_friend), parse.y
2685         (parse_bitfield): Update calls to cplus_decl_attributes.
2686         * decl.c (grokdeclarator): Take a pointer to a single ordinary
2687         attribute list.
2688         * decl.h (grokdeclarator): Update prototype.
2689         * decl2.c (grokfield): Take a single ordinary attribute list.
2690         * friend.c (do_friend): Likewise.
2691         * decl.c (shadow_tag, groktypename, start_decl,
2692         start_handler_parms, grokdeclarator, grokparms, start_function,
2693         start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
2694         parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
2695         (process_template_parm, do_decl_instantiation): Pass single
2696         ordinary attribute lists around.
2697         * decl.c (grokdeclarator): Correct handling of nested attributes.
2698         Revert the patch
2699         1998-10-18  Jason Merrill  <jason@yorick.cygnus.com>
2700                 * decl.c (grokdeclarator): Embedded attrs bind to the right,
2701                 not the left.
2702         .
2703         * cp-tree.h (cp_valid_lang_attribute): Remove declaration
2704         (cp_attribute_table): Declare.
2705         * decl.c (valid_lang_attribute): Don't define.
2706         (lang_attribute_table): Define.
2707         (init_decl_processing): Initialize lang_attribute_table instead of
2708         valid_lang_attribute.
2709         * tree.c (cp_valid_lang_attribute): Remove.
2710         (handle_java_interface_attribute, handle_com_interface_attribute,
2711         handle_init_priority_attribute): New functions.
2712         (cp_attribute_table): New array.
2713         * decl2.c (import_export_class): Don't use
2714         targetm.valid_type_attribute.
2716 2001-09-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2718         * Make-lang.in (cp/error.o): Depend on real.h
2719         * error.c: #include "real.h"
2721 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2723         * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
2724         xmalloc/strcpy/strcat.
2726 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2728         * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
2729         Const-ification.
2730         * pt.c (tsubst_decl): Likewise.
2732 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2734         * decl2.c (lang_f_options): Const-ification.
2735         * lex.c (cplus_tree_code_name): Likewise.
2736         * spew.c (yyerror): Likewise.
2738 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
2740         PR c++/3986
2741         * class.c (force_canonical_binfo_r): Check & move an indirect
2742         primary base first.
2743         (force_canonical_binfo): Check that it's not already
2744         canonical.
2745         (mark_primary_virtual_base): Remove BINFO parameter.
2746         (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
2748 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
2750         Remove TYPE_NONCOPIED_PARTS.
2751         * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
2752         CLASSTYPE_PURE_VIRTUALS.
2753         (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
2754         * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
2755         (layout_class_type): Don't call fixup_inline_methods here ...
2756         (finish_struct_1): ... call it here.
2758 2001-09-04  Mark Mitchell  <mark@codesourcery.com>
2760         * decl.c (duplicate_decls): Remove code deadling with
2761         DECL_SAVED_INSNS.
2762         * decl2.c (finish_file): Likewise.
2763         * pt.c (instantiate_decl): Likewise.
2764         * semantics.c (expand_body): Don't defer local functions if
2765         they wouldn't be deferred for some other reason.  Don't
2766         generate RTL for functions that will not be emitted.
2767         (genrtl_start_function): Remove code deadling with
2768         DECL_SAVED_INSNS.
2769         (genrtl_finish_function): Likewise.
2771 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
2773         PR c++/4203
2774         * call.c (build_over_call): Do not optimize any empty base
2775         construction.
2777 2001-08-31  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2779         * error.c (dump_template_decl): Output template parameters
2780         together with their specifiers.
2781         Output `class' prefix for template template parameter.
2782         (dump_decl): Fix formatting.
2784 2001-08-30  Kurt Garloff  <garloff@suse.de>
2786         * optimize.c (inlinable_function_p): Allow only smaller single
2787         functions. Halve inline limit after reaching recursive limit.
2789 2001-08-30  Joern Rennecke <amylaar@redhat.com>
2790             Jason Merrill  <jason_merrill@redhat.com>
2792         * class.c (build_vtable_entry_ref): Subtract in char*, not
2793         ptrdiff_t.
2795 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
2797         * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
2798         (build_cplus_array_type): Use cp_build_qualified_type, not
2799         TYPE_MAIN_VARIANT, to get an unqualified version.
2801         * decl2.c (grok_alignof): Lose.
2802         (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
2803         * typeck.c (c_alignof): Lose.
2804         * semantics.c (finish_sizeof, finish_alignof): New.
2805         * parse.y: Use them.
2806         * cp-tree.h: Declare them.
2808 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
2810         * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
2811         Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
2812         * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
2814 2001-08-19  Jakub Jelinek  <jakub@redhat.com>
2816         * typeck2.c (add_exception_specifier): Only require complete type if
2817         not in processing template declaration.
2819 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2821         * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
2822         GNU_xref_start_scope and GNU_xref_end_scope.
2824         * tree.c (TYPE_HASH): Moved to ../tree.h.
2826 2001-08-16  Mark Mitchell  <mark@codesourcery.com>
2828         * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
2829         on COMPOUND_EXPRs.
2831 2001-08-14  Richard Henderson  <rth@redhat.com>
2833         * class.c, cp-tree.h (build_vfn_ref): Remove.
2834         * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
2836 2001-08-13  Mark Mitchell  <mark@codesourcery.com>
2838         * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
2839         empty class assignment as having side-effects to avoid
2840         spurious warnings.
2842 2001-08-13  Zack Weinberg  <zackw@panix.com>
2844         * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
2845         * except.c: Include libfuncs.h.
2847 2001-08-11  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2849         * decl.c (grokdeclarator): Clarify diagnostic message.
2851 2001-08-13  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2853         * decl2.c (do_nonmember_using_decl): Replace using directive
2854         with using declaration in the error message.
2856 2001-08-11  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2858         * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
2859         criterion to avoid rebuilding expression tree instead of
2860         processing_template_decl.
2862 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
2864         Support named return value optimization for inlines, too.
2865         * decl.c (finish_function): Nullify returns here.
2866         * semantics.c (genrtl_start_function): Not here.
2867         (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
2868         (nullify_returns_r): No longer static.  Just clear RETURN_EXPR.
2869         Also nullify the CLEANUP_STMT for the nrv.
2870         * cp-tree.h: Declare it.
2871         * optimize.c (declare_return_variable): Replace the nrv with the
2872         return variable.
2873         * typeck.c (check_return_expr): Be more flexible on alignment check.
2874         Ignore cv-quals when checking for a matching type.
2876 2001-08-09  Richard Henderson  <rth@redhat.com>
2878         * decl2.c (finish_objects): Use target hooks instead of
2879         assemble_constructor and assemble_destructor.
2881 2001-08-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2883         * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
2885 2001-08-07  Nathan Sidwell  <nathan@codesourcery.com>
2887         PR c++/3820
2888         Stop using TYPE_NONCOPIED_PARTS.
2889         * call.c (build_over_call): Be careful when copy constructing
2890         or assigning to an empty class.
2891         * class.c (check_bases_and_members): It has a
2892         COMPLEX_ASSIGN_REF if it has a vptr.
2893         (layout_class_type): Don't add empty class padding to
2894         TYPE_NONCOPIED_PARTS.
2895         (finish_struct_1): Don't add the VFIELD either.
2896         * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
2897         initialization.
2899 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
2901         * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
2903 2001-08-06  Richard Henderson  <rth@redhat.com>
2905         * decl2.c (finish_objects): Pass a symbol_ref and priority to
2906         assemble_{constructor,destructor}.  Remove priority handling.
2908 2001-08-05  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2910         Don't allow template-id in using-declaration.
2911         * decl2.c (validate_nonmember_using_decl): Handle template-ids.
2912         (do_class_using_decl): Likewise.
2914 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2916         * cp/spew.c (read_token): No need to pop buffers.
2918 2001-08-02  Stan Shebs  <shebs@apple.com>
2920         * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
2921         (fnaddr_from_vtable_entry): Remove decl.
2922         * method.c (use_thunk): Update comment.
2924 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
2926         * repo.c (get_base_filename): Change return value to const char
2927         pointer.
2929 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
2931         Kill -fhonor-std.
2932         * NEWS: Document.
2933         * cp-tree.h (flag_honor_std): Remove.
2934         (CPTI_FAKE_STD): Remove.
2935         (std_node): Remove comment about it being NULL.
2936         (fake_std_node): Remove.
2937         * decl.c (in_fake_std): Remove.
2938         (walk_namespaces_r): Remove fake_std_node check.
2939         (push_namespace): Remove in_fake_std code.
2940         (pop_namespace): Likewise.
2941         (lookup_name_real): Remove fake_std_node check.
2942         (init_decl_processing): Always create std_node. Always add
2943         std:: things there.
2944         (builtin_function): Always put non '_' fns in std.
2945         * decl2.c (flag_honor_std): Remove.
2946         (lang_f_options): Remove honor-std.
2947         (unsupported_options): Add honor-std.
2948         (set_decl_namespace): Remove fake_std_node check.
2949         (validate_nonmember_using_decl): Likewise.
2950         (do_using_directive): Likewise.
2951         (handle_class_head): Likewise.
2952         * dump.c (cp_dump_tree): Likewise.
2953         * except.c (init_exception_processing): Adjust.
2954         * init.c (build_member_call): Remove fake_std_node check.
2955         (build_offset_ref): Likewise.
2956         * lang-options.h: Remove -fhonor-std, -fno-honor-std.
2957         * rtti.c (init_rtti_processing): Adjust.
2959 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
2961         * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
2962         operand while calling cp_tree_equal.
2964 2001-07-31  Nathan Sidwell  <nathan@codesourcery.com>
2966         The 3.0 ABI no longer has vbase pointer fields.
2967         * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
2968         FORMAT_VBASE_NAME): Remove.
2969         * method.c (do_build_copy_constructor): Adjust.
2970         (do_build_assign_ref): Adjust.
2971         * search.c (lookup_field_r): Adjust.
2972         * typeck.c (build_component_ref): Adjust.
2974         The 3.0 ABI always has a vtable pointer at the start of every
2975         polymorphic class.
2976         * rtti.c (build_headof_sub): Remove.
2977         (build_headof): Adjust.
2978         (get_tinfo_decl_dynamic): No need to check flag_rtti
2979         here. Adjust.
2980         (create_real_tinfo_var): Explain why we need a hidden name.
2982 2001-07-31  Nathan Sidwell  <nathan@codesourcery.com>
2984         PR c++/3631
2985         * class.c (update_vtable_entry_for_fn): The fixed adjustment
2986         of a virtual thunk should be from declaring base.
2988 2001-07-31  Nathan Sidwell  <nathan@codesourcery.com>
2990         * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
2991         the shared virtual base, so preserving inheritance graph order.
2993 2001-07-30  Andreas Jaeger  <aj@suse.de>
2995         * decl2.c: Remove unused var global_temp_name_counter.
2997 2001-07-28  Richard Henderson  <rth@redhat.com>
2999         * method.c (pending_inlines): Remove.
3001 2001-07-27  Nathan Sidwell  <nathan@codesourcery.com>
3003         * class.c (mark_primary_virtual_base): Don't adjust base
3004         offsets here.
3005         (dfs_unshared_virtual_bases): Adjust them here.
3006         (mark_primary_bases): Explain why we adjust at the end.
3008 2001-07-27  Nathan Sidwell  <nathan@codesourcery.com>
3010         * class.c (finish_struct_1): When copying the primary base's
3011         VFIELD, make sure we find it is at offset zero.
3013 2001-07-26  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3015         * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
3016         tsubst_expr for default template arguments.
3018 2001-07-26  Nathan Sidwell  <nathan@codesourcery.com>
3020         PR c++/3621
3021         * spew.c (yylex): Only copy the token's lineno, if it is
3022         non-zero.
3024 2001-07-26  Nathan Sidwell  <nathan@codesourcery.com>
3026         PR c++/3624
3027         * call.c (resolve_args): Simplify, call
3028         convert_from_reference.
3029         (build_new_op): Resolve and convert from reference ARG1
3030         earlier. Adjust ARG2 & ARG3 resolve and conversion.
3032 2001-07-26  Nathan Sidwell  <nathan@codesourcery.com>
3034         * decl.c (last_function_parm_tags): Remove.
3035         (current_function_parm_tags): Remove.
3036         (init_decl_processing): Adjust.
3037         (start_function): Adjust.
3038         (store_parm_decls): Adjust.
3040         PR c++/3152
3041         * decl.c (grokdeclarator): Detect when a function typedef is
3042         declaring a function, and create last_function_parms correctly.
3044 2001-07-25  Jason Merrill  <jason_merrill@redhat.com>
3046         * call.c (joust): Only prefer a non-builtin candidate to a builtin
3047         one if they have the same signature.
3049         * cvt.c (build_up_reference): Take DECL parm.  Check TREE_STATIC on
3050         it rather than toplevel_bindings_p.  Give it a mangled name if static.
3051         (convert_to_reference): Adjust.
3052         * decl2.c (get_temp_name): Lose.
3053         * mangle.c (mangle_ref_init_variable): New fn.
3054         (mangle_guard_variable): Strip the ref-init header.
3055         * cp-tree.h: Adjust.
3056         * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
3057         initializer.
3058         (grok_reference_init): Always use DECL_INITIAL.
3060 2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
3062         PR c++/3416
3063         * call.c (build_conditional_expr): Recheck args after
3064         conversions.
3065         * cp-tree.h (build_conditional_expr): Move to correct file.
3066         * typeck.c (decay_conversion): Diagnose any unknown types
3067         reaching here.
3068         (build_binary_op): Don't do initial decay or default
3069         conversions on overloaded functions.
3070         (build_static_cast): Don't do a decay conversion here.
3072 2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
3074         PR c++/3543
3075         * typeck.c (condition_conversion): Resolve an OFFSET_REF.
3076         * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
3078 2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
3080         * class.c (build_vtbl_or_vbase_field): Remove, move into ...
3081         (create_vtbl_ptr): ... here.
3083 2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
3085         * class.c (build_vbase_offset_vbtl_entries): Look for
3086         non-primary base of which we are a sub vtable.
3088 2001-07-24  Phil Edwards  <pme@sources.redhat.com>
3090         * semantics.c (finish_this_expr):  Remove unused code.
3092 2001-07-24  Nathan Sidwell  <nathan@codesourcery.com>
3094         Simplify rtti, now we've only one ABI.
3095         * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
3096         CPTI_TINFO_VAR_ID.
3097         (tinfo_decl_id, tinfo_var_id): Remove.
3098         (get_typeid_1): Remove.
3099         * rtti.c
3100         (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
3101         (typeid_ok_p): New function.
3102         (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
3103         (get_tinfo_decl): Remove old abi documentation.
3104         (tinfo_from_decl): Remove.
3105         (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
3106         (get_typeid_1): Remove.
3107         (get_base_offset): Remove.
3108         (synthesize_tinfo_var): Absorb get_base_offset.
3109         (create_real_tinfo_var): Don't use tinfo_decl_id.
3111 2001-07-23  Graham Stott  <grahams@redhat.com>
3113         * cp/class.c (type_requires_array_cookie): Fix use of uninitialised
3114         variable has_two_argument_delete_p.
3116 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
3118         Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
3119         * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
3120         (CPTI_INDEX_IDENTIFIER): Remove.
3121         (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
3122         (delta2_identifier): Remove.
3123         (index_identifier): Remove.
3124         (pfn_or_delta2_identifier): Remove.
3125         (flag_vtable_thunks): Remove.
3126         (VTABLE_DELTA2_NAME): Remove.
3127         (VTABLE_INDEX_NAME): Remove.
3128         (FNADDR_FROM_VTABLE_ENTRY): Adjust.
3129         (vfunc_ptr_type_node): Adjust.
3130         (VTABLE_NAME_PREFIX): Adjust.
3131         (build_vfn_ref): Lose first parameter.
3132         (fixup_all_virtual_upcast_offsets): Remove.
3133         * decl.c (initialize_predefined_identifiers): Remove
3134         delta2_identifier, index_identifier, pfn_or_delta2_identifier.
3135         (init_decl_processing): Remove no-vtable-thunk code.
3136         * decl2.c (flag_vtable_thunks): Remove.
3137         (mark_vtable_entries): Remove no-vtable-thunk code.
3138         * error.c (dump_decl): Remove no-vtable-thunk code.
3139         (dump_expr): Adjust ptr to member function code.
3140         * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
3141         code.
3142         * rtti.c (build_headof): Remove no-vtable-thunk code.
3143         (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
3144         * search.c (get_base_distance): Remove expand_upcast_fixups case.
3145         (virtual_context) Remove.
3146         (expand_upcast_fixups): Remove.
3147         (fixup_virtual_upcast_offsets): Remove.
3148         (fixup_all_virtual_upcast_offsets): Remove.
3149         * typeck.c (get_member_function_from_ptrfunc): Remove
3150         no-vtable-thunk code.
3151         * call.c (build_over_call): Adjust call to build_vfn_ref.
3152         * class.c (build_vfn_ref): Lose first parameter. Remove
3153         no-vtable-thunk code.
3154         (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
3155         (build_vtable_entry): Remove no-vtable-thunk code.
3157 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
3159         Remove old-abi remnants. Remove comments about old abi
3160         behaviour. Remove references to 'new-abi' in comments.
3161         * cp-tree.h: Adjust comments.
3162         (vbase_offsets_in_vtable_p): Delete.
3163         (vcall_offsets_in_vtable_p): Delete.
3164         (vptrs_present_everywhere_p): Delete.
3165         (all_overridden_vfuns_in_vtables_p): Delete.
3166         (merge_primary_and_secondary_vtables_p): Delete.
3167         (TYPE_CONTAINS_VPTR_P): Adjust.
3168         (VTT_NAME_PREFIX): Remove.
3169         (CTOR_VTBL_NAME_PREFIX): Remove.
3170         (init_vbase_pointers): Remove.
3171         * class.c: Adjust coments.
3172         (build_vbase_pointer_fields): Delete.
3173         (build_vbase_pointer): Remove old-abi code.
3174         (build_secondary_vtable): Likewise.
3175         (modify_all_vtables): Likewise.
3176         (create_vtable_ptr): Likewise.
3177         (layout_class_type): Likewise.
3178         (finish_struct_1): Likewise.
3179         (finish_vtbls): Likewise.
3180         (dfs_finish_vtbls): Delete.
3181         (build_vbase_offset_vtbl_entries): Remove old-abi code.
3182         * cvt.c: Adjust comments.
3183         * decl.c: Adjust comments.
3184         * decl2.c: Adjust comments.
3185         * init.c: Adjust comments.
3186         (construct_virtual_bases): Remove old-abi code.
3187         * lang-specs.h: Remove -fno-new-abi.
3188         * mangle.c: Adjust comments.
3189         * rtti.c: Adjust comments.
3190         (get_base_offset): Remove old-abi-code.
3191         * search.c: Adjust comments.
3192         (dfs_init_vbase_pointers): Remove.
3193         (dfs_vtable_path_unmark): Remove.
3194         (init_vbase_pointers): Remove.
3195         * semantics.c: Adjust comments.
3196         (emit_associated_thunks): Remove old-abi code.
3197         * typeck.c: Adjust comments.
3199 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
3201         * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
3202         params.h.
3204 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
3206         * class.c (finish_struct_anon): Forbid nested classes.
3208 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3210         * decl2.c: Don't include dwarfout.h and dwarf2out.h.
3211         * optimize.c: Include debug.h.
3212         (maybe_clone_body): Use debug hook.
3213         * semantics.c: Include debug.h.
3214         (expand_body): Use debug hook.
3216 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3218         * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
3220 2001-07-18  Mark Mitchell  <mark@codesourcery.com>
3222         * class.c (type_requires_array_cookie): New function.
3223         (check_methods): Don't try to figure out whether the type needs a
3224         cookie here.
3225         (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
3226         * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
3227         (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
3228         * pt.c (instantiate_class_template): Don't set
3229         TYPE_VEC_DELETE_TAKES_SIZE.
3230         * NEWS: Document ABI changes from GCC 3.0.
3232 2001-07-18  Xavier Delacour <xavier@fmaudio.net>,
3233             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3235         * NEWS (Changes in GCC 3.0): Fix typo.
3237 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
3239         * decl2.c (cplus_decl_attributes): Take a pointer to the node to
3240         which attributes are to be attached, and a flags argument.  Update
3241         call to decl_attributes.
3242         (grokfield): Update call to decl_attributes.
3243         * class.c (finish_struct): Update call to cplus_decl_attributes.
3244         * cp-tree.h (cplus_decl_attributes): Update prototype.
3245         * decl.c (start_decl, grokdeclarator, start_function): Update
3246         calls to decl_attributes and cplus_decl_attributes.
3247         * friend.c (do_friend): Update call to cplus_decl_attributes.
3248         * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
3250 2001-07-12  Mark Mitchell  <mark@codesourcery.com>
3252         * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
3253         for `register' variables with an asm-specification.
3255 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
3257         * semantics.c (finish_asm_stmt): Mark the output operands
3258         to an asm addressable, if necessary.
3260 2001-07-11  Ben Elliston  <bje@redhat.com>
3262         * Revert this change -- there is a subtle bug.
3264         PR c++/80
3265         * decl.c (finish_enum): New "attributes" argument; pass it to
3266         cplus_decl_attributes.  Use a narrower type if the enum is packed.
3267         * cp-tree.h (finish_enum): Adjust prototype.
3268         * parse.y (enum_head): New non-terminal.
3269         (structsp): Use it. Enums now may be preceded or followed by
3270         optional attributes -- pass their chained tree to finish_enum().
3271         * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
3273 2001-07-10  Mark Mitchell  <mark@codesourcery.com>
3275         * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
3276         variables.
3278 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
3280         * semantics.c (cp_expand_stmt): Fix for null
3281         current_function_return_value.
3283 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
3285         * call.c (build_op_delete_call): Initialize fn.
3286         (convert_like_real): Delete conditional.
3287         (joust): Initialize *w and *l.
3288         * class.c: Add prototype for binfo_ctor_vtable.
3289         (get_primary_binfo): Initialize result.
3290         * init.c (build_java_class_ref): Initialize name.
3292 2001-07-09  Erik Rozendaal  <dlr@acm.org>
3294         * typeck.c (unary_complex_lvalue): Do not duplicate the
3295         argument to modify, pre-, or post-increment when used as an
3296         lvalue and when the argument has side-effects.
3298 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3300         * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
3301         (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES.  Call
3302         cplus_decl_attributes even if attrs is NULL.
3303         * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
3305 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3307         * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
3308         calls to decl_attributes.
3310 2001-07-06  Ira Ruben   <ira@apple.com>
3312         * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
3313         be DECL_TEMPLATE_RESULT.
3315 2001-07-05  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3317         * cp-tree.h (copy_template_template_parm): Rename to ...
3318         (bind_template_template_parm): ... here.
3319         * tree.c (copy_template_template_parm): Rename to ...
3320         (bind_template_template_parm): ... here.  Remove the case when
3321         NEWARGS is NULL_TREE.
3322         (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
3323         BOUND_TEMPLATE_TEMPLATE_PARM.
3324         * pt.c (lookup_template_class): Adjust.
3326 2001-07-05  Jason Merrill  <jason_merrill@redhat.com>
3328         * cvt.c (convert_lvalue): New fn.
3329         * cp-tree.h: Declare it.
3330         * method.c (do_build_assign_ref): Use it.
3331         (do_build_copy_constructor): Convert parm to base types
3332         before calling base constructors.
3334         * typeck.c (check_return_expr): Check DECL_ALIGN instead of
3335         DECL_USER_ALIGN.  Check flag_elide_constructors instead of
3336         optimize.
3337         * semantics.c (cp_expand_stmt): Don't destroy the named return value.
3339 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3341         * optimize.c (optimize_inline_calls): New function, broken out
3342         of ...
3343         (optimize_function): ... here. Call it. Don't inline if it is
3344         a thunk.
3345         (dump_function): Print name of dump flag causing this dump.
3346         * semantics.c (expand_body): Move thunk inline check to
3347         optimize_function.
3349 2001-06-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3351         * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
3352         (comptypes): Use target.comp_type_attributes.
3354 2001-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3356         * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
3358 2001-06-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3360         * error.c (lang_print_error_function): Add a `diagnostic_context *'
3361         parameter. Tweak.
3363 2001-06-27  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3365         * decl2.c (import_export_class): Update.
3367 2001-06-26  Gabriel Dos Reis  <gdr@codesourcery.com>
3369         * error.c (init_error): Adjust settings.
3371 2001-06-26  Gabriel Dos Reis  <gdr@codesourcery.com>
3373         * error.c (init_error): Adjust settings.
3375 2001-06-19  Richard Sandiford  <rsandifo@redhat.com>
3377         * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
3378         return pointers to data members by reference rather than by value.
3380 2001-06-18  Jason Merrill  <jason_merrill@redhat.com>
3382         Implement the Named Return Value optimization.
3383         * cp-tree.h (struct cp_language_function): Add x_return_value.
3384         (current_function_return_value): Now a macro.
3385         * decl.c: Don't define it.
3386         (define_label, finish_case_label): Don't clear it.
3387         (init_decl_processing): Don't register it with GC.
3388         * semantics.c (genrtl_finish_function): Don't check it for
3389         no_return_label.  Copy the RTL from the return value to
3390         current_function_return_value and walk, calling...
3391         (nullify_returns_r): ...this new fn.
3392         * typeck.c (check_return_expr): Set current_function_return_value.
3394 2001-06-15  Jason Merrill  <jason_merrill@redhat.com>
3396         * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
3397         sharing a ctor vtable with.  Merge code for cases 1 and 2.
3398         (binfo_ctor_vtable): New fn.
3399         (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
3401 2001-06-14  Jason Merrill  <jason_merrill@redhat.com>
3403         * class.c (dfs_find_final_overrider): Fix logic.
3405         * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
3406         virtual thunk instead of non-virtual.
3407         (get_matching_virtual): Uncomment.
3409         * pt.c (unify): Don't recurse between the POINTER_TYPE and the
3410         OFFSET_TYPE.  If we're adding cv-quals, the extra ones would be on
3411         PARM, not ARG.
3413 2001-06-14  Nathan Sidwell  <nathan@codesourcery.com>
3415         * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
3416         we've not emerged from the hierarchy of RTTI_BINFO on reaching
3417         a non-virtual base.
3419 2001-06-13  Mark Mitchell  <mark@codesourcery.com>
3421         * NEWS: Update release number.
3423 2001-06-12  Nathan Sidwell  <nathan@codesourcery.com>
3425         PR c++/3130, c++/3131, c++/3132
3426         * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
3427         * class.c (force_canonical_binfo_r): Move
3428         BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
3429         virtual bases unless they're primary and what they're primary
3430         too has been moved.
3431         (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
3432         with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
3433         BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
3434         derived binfo.
3435         (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
3436         (layout_nonempty_base_or_field): Add most derived type
3437         parameter. Adjust.
3438         (layout_empty_base): Likewise.
3439         (build_base_field): Likewise.
3440         (build_base_fields): Likewise.
3441         (propagate_binfo_offsets): Add most derived type
3442         parameter. Skip non canonical virtual bases too.
3443         (dfs_set_offset_for_unshared_vbases): Don't skip primary
3444         bases. Do skip canonical bases.
3445         (layout_virtual_bases): Adjust.
3446         (layout_class_type): Adjust.
3447         (dfs_get_primary_binfo): Build list of virtual primary base
3448         candidates.
3449         (get_primary_binfo): Check that the shared virtual primary
3450         base candidate was found first.
3451         (accumulate_vtbl_inits): Don't do anything for non-vptr
3452         containing binfos. For case 1 primary virtual bases, keep
3453         checking that we've not emerged from the hierarchy of RTTI_BINFO.
3455 2001-06-12  Nathan Sidwell  <nathan@codesourcery.com>
3457         PR c++/3089
3458         * class.c (dfs_accumulate_vtbl_inits): Always walk down the
3459         hierarchy looking for primary bases for a ctor
3460         vtable. Recursively call oneself, if we meet our primary via
3461         this route and haven't met it yet via inheritance graph order.
3463 2001-06-11  Mark Mitchell  <mark@codesourcery.com>
3465         * lang-options.h: Emit documentation for -fno-honor-std, not
3466         -fhonor-std.
3468 2001-06-10  Alexandre Oliva  <aoliva@redhat.com>
3470         * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
3471         Don't clobber delta.
3472         (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
3474 2001-06-10  Mark Mitchell <mark@codesourcery.com>
3475             Gabriel Dos Reis  <gdr@codesourcery.com>
3477         * Make-lang.in (cp/call.o): Depend on diagnostic.h
3478         (cp/typeck.o): Depend on diagnostic.h
3479         (cp/typeck2.o): Depend on diagnostic.h
3480         (cp/repo.o): Depend on dignostic.h
3481         * typeck.c: #include diagnostic.h
3482         (convert_for_initialization): Remove extern declaration for
3483         warningcount and errorcount.
3485         * call.c: #include diagnostic.h
3486         (convert_like_real): Remove extern declaration for warnincount and
3487         errorcount.
3489         * repo.c: #include diagnostic.h
3490         * typeck2.c: #include diagnostic.h
3492 2001-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3494         * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
3495         in previous change.
3497 2001-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3499         PR c++/2929
3500         * friend.c (do_friend): Use push_decl_namespace for classes at
3501         namespace scope.
3503 2001-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3504             Jason Merrill <jason_merrill@redhat.com>
3506         PR c++/3061
3507         * class.c (build_secondary_vtable): Use assert, rather than an error
3508         message.
3509         (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
3510         (dfs_accumulate_vtbl_inits): A lost primary virtual base may
3511         be between ORIG_BINFO and RTTI_BINFO, but neither of them.
3512         Don't set BINFO_VTABLE for a primary virtual base.
3514 2001-06-07  Mark Mitchell  <mark@codesourcery.com>
3516         * decl.c (duplicate_decls): Update source position information
3517         when a template function is defined.
3519 2001-06-07  Phil Edwards  <pme@sources.redhat.com>
3521         * lang-specs.h:  Move -D_GNU_SOURCE to config/linux.h.
3523 2001-06-07  Nathan Sidwell  <nathan@codesourcery.com>
3525         PR c++/2914
3526         * decl.c (pushtag): Don't push into a complete type's scope.
3528 2001-06-06  Jason Merrill  <jason_merrill@redhat.com>
3530         * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
3531         (struct lang_decl_flags): Lose generate_with_vtable_p.
3532         (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
3533         * class.c (copy_virtuals): Adjust.
3534         * decl2.c (mark_vtable_entries): Adjust.
3535         * method.c (make_thunk, build_vtable_entry): Adjust.
3536         * class.c (update_vtable_entry_for_fn): Only look as far as the
3537         first defining class.
3538         (build_vtbl_initializer): Put nothing in the slot for a function only
3539         defined in a lost primary virtual base.
3540         (add_vcall_offset_vtbl_entries_1): Use the same code for
3541         the lost primary case and the normal case.
3542         (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
3543         (get_vfield_offset, get_derived_offset): Lose.
3544         (dfs_find_final_overrider): Use look_for_overrides_here.
3545         (get_matching_virtual): New fn.
3546         * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
3547         not BV_VCALL_INDEX.
3548         * search.c (look_for_overrides_here): Split out from...
3549         (look_for_overrides_r): Here.
3551         * class.c (find_final_overrider): Return error_mark_node on error.
3553         * decl2.c (key_method): #if 0 accidental change.
3555 2001-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3557         * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
3558         (build_over_call): Likewise.
3559         * decl.c (grokparms): Likewise.
3560         * pt.c (tsubst_decl): Likewise.
3561         * typeck.c (convert_arguments): Likewise.
3563 2001-06-05  Mark Mitchell  <mark@codesourcery.com>
3565         * semantics.c (begin_class_definition): Robustify.
3567         * pt.c (instantiate_decl): Tell the repository code about the
3568         clones, not the cloned functions.
3569         * repo.c (repo_template_used): Explicitly instantiate the cloned
3570         function, not the clones.
3572 2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
3574         * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
3575         ICS_BAD_FLAG on created conversion.
3576         (compare_ics): Break out rank.
3578 2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
3580         * decl.c (xref_tag): Remove extraneous %s on dependent name
3581         lookup warning.
3583 2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
3585         * class.c (layout_vtable_decl): Fix off by one error on
3586         build_index_type.
3587         (build_vtt): Likewise.
3588         (build_ctor_vtbl_group): Likewise.
3590 2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
3592         * class.c (maybe_indent_hierarchy): New function.
3593         (dump_class_hierarchy_r): Add flags. Dump extra binfo
3594         information, if enabled. Use maybe_indent_hierarchy. Adjust
3595         output format.
3596         (dump_class_hierarchy): Adjust prototype. Adjust output format.
3597         (dump_array, dump_vtable, dump_vtt): New functions.
3598         (finish_struct_1): Adjust hierarchy dumping.
3599         (initialize_vtable): Call dump_vtable.
3600         (build_vtt): Call dump_vtt.
3601         (build_ctor_vtbl_group): Call dump_vtable.
3602         * decl2.c (flag_dump_class_layout): Remove.
3603         (cxx_decode_option): Remove dump translation unit
3604         and dump class hierarchy check. Call dump_switch_p.
3605         (finish_file): Adjust dumping.
3606         (dump.c): Only dump base classes if not TDF_SLIM.
3607         Only dump namespace members if not TDF_SLIM.
3608         * optimize.c (dump_function): New function.
3609         (optimize_function): Call dump_function.
3610         * semantics.c (expand_body): Use dump_enabled_p.
3612 2001-06-01  Nathan Sidwell  <nathan@codesourcery.com>
3614         PR g++/2936
3615         Part missed from first commit
3616         * decl2.c (finish_anon_union): Copy context.
3618 2001-05-30  Nathan Sidwell  <nathan@codesourcery.com>
3620         PR g++/2936
3621         * optimize.c (remap_decl): Remap anonymous aggregate members too.
3623 2001-05-26  Nathan Sidwell  <nathan@codesourcery.com>
3625         PR g++/2823
3626         * semantics.c (expand_body): Don't optimize thunks.
3628 2001-05-25  Sam TH  <sam@uchicago.edu>
3630         * cp-tree.h lex.h: Fix header include guards.
3632 2001-05-25  Mark Mitchell <mark@codesourcery.com>
3634         * decl.c (init_decl_processing): Tweak.
3636 2001-05-24  Mark Mitchell  <mark@codesourcery.com>
3638         * decl.c (duplicate_decls): Tidy.
3639         (init_decl_processing): Always set flag_no_builtin.
3641 2001-05-24  Nathan Sidwell  <nathan@codesourcery.com>
3643         PR c++/2184
3644         * decl2.c (do_local_using_decl): Push the decls, even in a
3645         template.
3647 2001-05-22  Mark Mitchell  <mark@codesourcery.com>
3649         * optimize.c (initialize_inlined_parameters): Don't set
3650         TREE_READONLY for a VAR_DECL taking the place of an inlined
3651         PARM_DECL.
3653 2001-05-22  Jason Merrill  <jason_merrill@redhat.com>
3655         * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
3656         * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
3657         attribute.
3659 2001-05-22  Joseph S. Myers  <jsm28@cam.ac.uk>
3661         * parse.y: Refer to compound literals as such, not as
3662         constructor-expressions.
3664 2001-05-21  Mark Mitchell  <mark@codesourcery.com>
3666         * call.c (build_op_delete_call): Ignore exception-specifications
3667         when looking for matching delete operators.
3668         * init.c (build_new_1): Compute whether or not the allocation
3669         function used is a placement allocation function or not, and
3670         communicate this information to build_op_delete_call.
3672 2001-05-21  Jason Merrill  <jason_merrill@redhat.com>
3674         * class.c (build_vtable_entry_ref): Lose vtbl parm.  Fix for new abi.
3675         (build_vtbl_ref): Adjust.
3676         (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
3677         * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
3678         Re-add vtable-gc.
3679         (unsupported_options): Correspondingly.
3681         * decl2.c (maybe_make_one_only): Check flag_weak, not
3682         supports_one_only().
3684         * cp-tree.def (START_CATCH_STMT): Lose.
3685         * dump.c (cp_dump_tree): Don't dump it.  Do dump HANDLER_PARMS.
3686         * tree.c (cp_statement_code_p): Don't case it.
3687         * semantics.c (cp_expand_stmt): Likewise.
3688         * cp-tree.h (START_CATCH_TYPE): Lose.
3689         (HANDLER_TYPE): New.
3690         * except.c (expand_start_catch_block): Don't start any blocks.
3691         Return the type.
3692         (expand_end_catch_block): Don't end any blocks.
3693         * parse.y (handler): Don't pass anything from finish_handler_parms
3694         to finish_handler.
3695         * pt.c (tsubst_expr): Likewise.
3696         * semantics.c (begin_handler): Call note_level_for_catch here.
3697         (finish_handler_parms): Don't return anything.
3698         (genrtl_catch_block, begin_catch_block): Lose.
3699         (genrtl_handler): Call expand_start_catch here.
3701 2001-05-18  Jason Merrill  <jason_merrill@redhat.com>
3703         * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
3704         (get_vtable_decl, build_vtt): Not here.
3706 2001-05-20  Nathan Sidwell  <nathan@codesourcery.com>
3708         PR c++/2781
3709         * optimize.c (update_cloned_parm): Copy addressability and other
3710         flags.
3712 2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3714         * pt.c (determine_specialization): Ignore artificial functions.
3716 2001-05-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3718         * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
3719         (C_RID_CODE): Remove.
3720         * lex.c (cxx_init_options): Call set_identifier_size.  Update.
3721         (init_parse): Don't do it here.
3723 2001-05-18  Diego Novillo  <dnovillo@redhat.com>
3725         * decl2.c (finish_objects): Use the original SYMBOL_REF from the
3726         function declaration to avoid stripping the symbol's attributes.
3728 2001-05-18  Nathan Sidwell  <nathan@codesourcery.com>
3730         * decl.c (pushdecl): Adjust error string.
3731         (xref_tag): Adjust friend class injection warning. Remove the
3732         inherited name from the class shadowed scope.
3734 2001-05-17  Mark Mitchell  <mark@codesourcery.com>
3736         * except.c (cp_protect_cleanup_actions): New function.
3737         (init_exception_processing): Don't set protect_cleanup_actions
3738         here.  Do set lang_protect_cleanup_actions.
3740 2001-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3742         * spew.c (read_token): Call yyerror on all unexpected tokens.
3744 2001-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3746         * init.c (member_init_ok_or_else): Take a tree rather than
3747         string for name.
3748         (expand_member_init): Adjust.
3750 2001-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
3752         * decl.c (duplicate_decls): Suppress warning about duplicate
3753         decls if the first decl is a friend.
3755 2001-05-12  Zack Weinberg  <zackw@stanford.edu>
3757         * except.c (choose_personality_routine): Export.  Add
3758         explanatory comment.  Take an enum languages, not a boolean.
3759         (initialize_handler_parm): Adjust to match.
3760         * cp-tree.h: Prototype choose_personality_routine.
3761         * lex.c (handle_pragma_java_exceptions): New function.
3762         (init_cp_pragma): Register #pragma GCC java_exceptions.
3764 2001-05-12  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3766         * method.c (build_mangled_C99_name): Remove unused prototype.
3768 2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
3770         * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
3771         * typeck.c (get_member_function_from_ptrfunc,
3772         build_ptrmemfunc, expand_ptrmemfunc_cst): Take
3773         TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
3775         Reverted Geoff Keating's 2001-05-03's patch.
3777 2001-05-11  Ira Ruben   <ira@apple.com>
3779         * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
3781 2001-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3783         * cp-tree.h (finish_label_expr, lookup_label): Delete.
3784         * parse.y: Update for '&&'; don't issue warning here.
3785         * semantics.c (finish_label_expr): Delete.
3787 2001-05-07  Mark Mitchell  <mark@codesourcery.com>
3789         * splay-tree.h (splay_tree_max): New function.
3790         (splay_tree_min): Likewise.
3792 2001-05-03  Geoffrey Keating  <geoffk@redhat.com>
3794         * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
3795         (pfn_vflag_identifier): Define.
3796         Update comment about layout of pointer functions.
3797         (build_ptrmemfunc1): Update prototype.
3798         (expand_ptrmemfunc_cst): Update prototype.
3799         * decl.c (initialize_predefined_identifiers): Initialize
3800         pfn_vflag_identifier.
3801         (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
3802         an extra field to the type.
3803         * expr.c (cplus_expand_constant): Pass 'flag' between
3804         expand_ptrmemfunc_cst and build_ptrmemfunc1.
3805         * typeck.c (get_member_function_from_ptrfunc): When
3806         FUNCTION_BOUNDARY < 16, look at additional field to determine
3807         if a pointer-to-member is a real pointer or a vtable offset.
3808         (build_ptrmemfunc1): Add new parameter to contain extra field.
3809         (build_ptrmemfunc): Pass the extra field around.
3810         (expand_ptrmemfunc_cst): Add new parameter to return extra field.
3811         (pfn_from_ptrmemfunc): Ignore the extra field.
3813 2001-05-03  Mark Mitchell  <mark@codesourcery.com>
3815         * cp-tree.h (flag_inline_trees): Update documentation.
3816         * decl.c (init_decl_processing): Adjust handling of
3817         flag_inline_functions and flag_inline_trees to support -O3.
3818         (grokfndecl): Set DECL_INLINE on all functions if that's what
3819         the user requested.
3820         (save_function_data): Clear DECL_INLINE in
3821         current_function_cannot_inline is non-NULL.
3822         * decl2.c (flag_inline_trees): Update documentation.
3824 2001-05-03  Nathan Sidwell  <nathan@codesourcery.com>
3826         * dump.c (cp_dump_tree, USING_STMT case): New case.
3827         * tree.c (cp_statement_code_p): Add USING_STMT.
3828         * decl2.c (do_using_directive): Add the using directive statement.
3830         * tree.c (walk_tree): Reformat an if block.
3832 2001-05-02  Mark Mitchell  <mark@codesourcery.com>
3834         * decl.c (compute_array_index_type): Don't try to do anything with
3835         the indices when processing a template.
3837 2001-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3839         * call.c: NULL_PTR -> NULL.
3840         * class.c: Likewise.
3841         * cvt.c: Likewise.
3842         * decl.c: Likewise.
3843         * decl2.c: Likewise.
3844         * except.c: Likewise.
3845         * init.c: Likewise.
3846         * rtti.c: Likewise.
3847         * search.c: Likewise.
3848         * tree.c: Likewise.
3849         * typeck.c: Likewise.
3850         * typeck2.c: Likewise.
3852 2001-05-02  Mark Mitchell  <mark@codesourcery.com>
3854         * decl2.c (do_using_directive): Revert previous patch.
3856 2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
3858         * cp-tree.def (USING_STMT): New statement node.
3859         * cp-tree.h (USING_STMT_NAMESPACE): New macro.
3860         * decl2.c (do_using_directive): Add USING_STMT to statement
3861         tree. Don't emit errors when processing template decl.
3862         * pt.c (tsubst_expr, USING_STMT case): New case.
3863         * semantics.c (cp_expand_stmt, USING_STMT case): New case.
3865 2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
3867         * call.c (build_new_op): Convert args from reference here.
3868         (build_conditional_expr): Don't convert here.
3870 2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
3872         * spew.c (last_token_id): New static variable.
3873         (read_token): Set it here.
3874         (yyerror): Use it here.
3876 2001-04-30  Richard Henderson  <rth@redhat.com>
3878         * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
3879         * decl.c: Likewise.
3881 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
3883         * gxxint.texi: Remove.
3884         * Make-lang.in: Remove all traces of gxxint.texi.
3886 Mon Apr 30 16:14:10 2001  Mark P Mitchell  <mark@codesourcery.com>
3888         * decl2.c (start_static_initialization_or_destruction): Correct
3889         logic to handle the -fno-use-cxa-atexit case.
3891 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
3893         * optimize.c (update_cloned_parm): New function.
3894         (maybe_clone_body): Use it.  Update the `this' parameter too.
3896 2001-04-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3898         * decl2.c (unsupported_options): Add new-abi.
3899         * lang-options.h: Remove no longer supported options.
3901 2001-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3903         * except.c (can_convert_eh): Don't check template parms,
3904         typename types etc.
3906 2001-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3908         * optimize.c (maybe_clone_body): Copy parameter names and locations.
3910 2001-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3912         * cp-tree.h (adjust_clone_args): Prototype new function.
3913         * class.c (adjust_clone_args): New function.
3914         * decl.c (start_function): Call it for in charge ctors.
3916 2001-04-26  Mark Mitchell  <mark@codesourcery.com>
3918         * method.c (use_thunk): Make sure that thunks really are emitted
3919         when requested.
3921 2001-04-26  Nathan Sidwell <nathan@codesourcery.com>
3923         * mangle.c (write_chars): New macro.
3924         (hwint_to_ascii): New function
3925         (write_number): Use it.
3926         (write_integer_cst): Deal with really big numbers.
3928 2001-04-25  Mark Mitchell  <mark@codesourcery.com>
3930         * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
3931         the clone.
3933 2001-04-25  Nathan Sidwell  <nathan@codesourcery.com>
3935         * decl.c (grokdeclarator): Set context of namespace scope
3936         TYPE_DECLS.
3938 2001-04-24  Zack Weinberg  <zackw@stanford.edu>
3940         * cp/optimize.c: Include hashtab.h.
3941         (struct inline_data): Add tree_pruner.
3942         (expand_call_inline, expand_calls_inline): Use it when calling
3943         walk_tree.
3944         (optimize_function): Initialize and free tree_pruner.
3946 2001-04-24  Nathan Sidwell <nathan@codesourcery.com>
3948         Lazy __FUNCTION__ generation.
3949         * cp-tree.def (FUNCTION_NAME): Remove.
3950         * cp-tree.h (function_name_declared_p): Remove.
3951         (cp_fname_init): Prototype.
3952         * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
3953         don't call declare_function_name. Call start_fname_decls.
3954         (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
3955         clobber the line number.
3956         (cp_fname_init): New function.
3957         (start_function): Call start_fname_decls.
3958         (finish_function): Call finish_fname_decls.
3959         * lex.c (reswords): Add slots for __FUNCTION__ et al.
3960         (rid_to_yy): Add mappings for __FUNCTION__ et al.
3961         * optimize.c (maybe_clone_body): Remove function_name_declared_p.
3962         * parse.y (VAR_FUNC_NAME): New token.
3963         (primary): Add VAR_FUNC_NAME.
3964         * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
3965         generation.
3966         (tsubst, FUNCTION_NAME case): Remove.
3967         (tsubst_copy, FUNCTION_NAME case): Remove.
3968         (tsubst_expr, DECL_STMT case): Be careful with a
3969         DECL_PRETTY_FUNCTION_P.
3970         (instantiate_decl): Remove function_name_declared_p.
3971         * semantics.c (begin_compound_statement): Don't call
3972         declare_function_name here.
3973         (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
3974         (finish_translation_unit): Call finish_fname_decls.
3975         (expand_body): Remove function_name_declared_p.
3976         * typeck2.c (digest_init): Allow any ERROR_MARK.
3978 2001-04-24  Nathan Sidwell  <nathan@codesourcery.com>
3980         * pt.c (tsubst_decl): Use VOID_TYPE_P.
3981         * semantics.c: Fix some typos.
3983 2001-04-23  Phil Edwards  <pme@sources.redhat.com>
3985         * cp/decl2.c (flag_honor_std):  Always initialize to 1.
3987 2001-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3989         * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
3991 2001-04-23  Jason Merrill  <jason_merrill@redhat.com>
3993         * except.c (build_throw): Wrap the initialization of the exception
3994         object in a MUST_NOT_THROW_EXPR.
3995         (do_free_exception): #if 0.
3997 2001-04-20  Mark Mitchell  <mark@codesourcery.com>
3999         * cp-tree.h (finish_enum): Change prototype.
4000         * decl.c (finish_enum): Reorganize.
4001         * parse.y (structsp): Adjust calls to finish_enum.
4003 2001-04-20  Nathan Sidwell  <nathan@codesourcery.com>
4005         * tree.c (cp_tree_equal): Adjust final switch formatting. Add
4006         't' case.
4008 2001-04-20  Nathan Sidwell  <nathan@codesourcery.com>
4010         * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
4011         (layout_empty_base): Return at end flag.
4012         (build_base_field): Likewise.
4013         (build_base_fields): Likewise.
4014         (layout_virtual_bases): Don't add 1 to eoc value.
4015         (end_of_class): Use full size for empty bases.
4016         (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
4017         empty bases. Don't add 1 to eoc value. Only add trailing padding
4018         if we're an empty class with no empty bases.
4019         (dump_class_hierarchy): Dump size and alignment.
4021 2001-04-20  Jakub Jelinek  <jakub@redhat.com>
4023         * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
4024         ICS_BAD_FLAG.
4026 2001-04-20  Jakub Jelinek  <jakub@redhat.com>
4028         * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
4029         is found, look first if name does not match the structure name.
4031 2001-04-19  Mark Mitchell  <mark@codesourcery.com>
4033         * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
4034         set.
4035         (SET_DECL_LANGUAGE): New macro.
4036         * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
4037         (pushdecl): Likewise.
4038         (build_library_fn_1): Likewise.
4039         (build_cp_library_fn): Likewise.
4040         (grokfndecl): Likewise.
4041         (grokvardecl): Mark `extern "C"' variables as having C linkage.
4042         * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
4043         * lex.c (retrofit_lang_decl): Likewise.
4044         * mangle.c (mangle_decl_string): Don't mangle the names of
4045         variables declared with C language linkage.
4046         * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
4048 2001-04-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4050         * semantics.c (simplify_aggr_init_exprs_r): Don't restore
4051         flag_access_control from uninitialized storage.
4053 2001-04-15  Mark Mitchell  <mark@codesourcery.com>
4055         * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
4056         * mangle.c (write_pointer_to_member_type): Fix mangling of
4057         pointers to cv-qualified member function types.
4059         * init.c (build_delete): Create a SAVE_EXPR for the address if
4060         we're going to use it more than once.
4062 2001-04-13  Mark Mitchell  <mark@codesourcery.com>
4064         * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
4065         (expand_ptremfunc_cst): Change prototype.
4066         (delta2_from_ptrmemfunc): Remove.
4067         * expr.c (cplus_expand_constant): Adjust call to
4068         expand_ptrmemfunc_cst.
4069         * typeck.c (build_ptrmemfunc1): Simplify.
4070         (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
4071         results in a constant.
4072         (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
4073         (delta2_from_ptrmemfunc): Remove.
4074         (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
4076 2001-04-12  Jason Merrill  <jason_merrill@redhat.com>
4078         * cp-tree.h (decl_namespace_list): New macro.
4079         (struct saved_scope): Add decl_ns_list.
4080         * decl.c (mark_saved_scope): Mark it.
4081         * decl2.c: Lose static decl_namespace_list.
4082         (init_decl2): Don't save it.
4084 2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4086         * cp-tree.h (warn_return_type, yylex): Delete redundant
4087         declarations.
4089         * decl.c (current_class_depth, global_namespace): Likewise.
4091         * decl2.c (current_class_depth, flag_gnu_xref): Likewise
4093         * repo.c (flag_use_repository): Likewise.
4095 2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4097         * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
4098         set_block, pushdecl, getdecls, gettags, init_decl_processing,
4099         maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
4100         lvalue_or_else, print_lang_statistics, comp_target_types,
4101         unsigned_type, signed_type, signed_or_unsigned_type,
4102         build_function_call, mark_addressable, incomplete_type_error):
4103         Delete redundant declarations.
4105 2001-04-11  Jason Merrill  <jason_merrill@redhat.com>
4107         * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
4108         (TYPE_ANONYMOUS_P): New macro.
4109         (TAGGED_TYPE_P): New macro.
4110         * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
4111         (grokfndecl, grokvardecl, grokdeclarator): Likewise.
4112         * tree.c (no_linkage_helper): Likewise.
4113         * semantics.c (begin_class_definition): Likewise.
4114         * pt.c (convert_template_argument): Likewise.
4115         * lex.c (check_for_missing_semicolon): Likewise.
4117 2001-04-12  Nathan Sidwell  <nathan@codesourcery.com>
4119         * class.c (dfs_unshared_virtual_bases): New function.
4120         (mark_primary_bases): Call it.
4121         (check_bases): Ignore virtual bases when determining
4122         nearly-emptiness.
4124 2001-04-12  Nathan Sidwell  <nathan@codesourcery.com>
4126         * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
4128 2001-04-11  Mark Mitchell  <mark@codesourcery.com>
4130         * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
4131         cloned function to the clone.
4133 2001-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4135         * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
4137         * semantics.c: Include expr.h.
4139 2001-04-11  Nathan Sidwell  <nathan@codesourcery.com>
4141         * method.c (implicitly_declare_fn): Commonize code for copy ctor
4142         and assignment op. Set TREE_USED for parameter.
4144 2001-04-10  Mark Mitchell  <mark@codesourcery.com>
4146         * class.c (find_final_overrider_data): Add `candidates'.
4147         (dfs_find_final_overrider): Don't issue error messages
4148         prematurely.
4149         (find_final_overrider): Issue error messages here.
4150         (build_base_field): Don't warn about amgibuous direct bases here.
4151         (warn_about_ambiguous_direct_bases): New function.
4152         (layout_class_type): Use it.
4154 2001-04-10  Richard Henderson  <rth@redhat.com>
4156         * typeck.c (build_array_ref): Push the array reference inside
4157         COMPOUND_EXPR and COND_EXPR.
4159 2001-04-05  Mark Mitchell  <mark@codesourcery.com>
4161         * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
4162         * decl.c (duplicate_decls): Adjust accordingly.
4163         (maybe_commonize_var): Likewise.
4164         (grokfndecl): Likewise.
4165         (start_function): Likewise.
4166         (start_method): Likewise.
4167         * decl2.c (key_method): Likewise.
4168         (import_export_decl): Likewise.
4169         * method.c (implicitly_declare_fn): Likewise.
4170         * optimize.c (maybe_clone_body): Likewise.
4172 2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>
4174         * lang-specs.h: Add __DEPRECATED.
4176 Thu Apr  5 16:54:29 2001  J"orn Rennecke <amylaar@redhat.com>
4178         * search.c (get_dynamic_cast_base_type): When building a new
4179         constant, set its type to ssizetype.
4181 2001-04-04  Jakub Jelinek  <jakub@redhat.com>
4183         * optimize.c (expand_call_inline): Only add newly inlined statements
4184         into inlined_stmts.
4186 2001-04-03  Mark Mitchell  <mark@codesourcery.com>
4188         * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
4189         (OPERATOR_FORMAT): Likewise.
4190         (OPERATOR_TYPENAME_FORMAT): Likewise.
4191         * operators.def: Remove old name-mangling information.
4192         * decl.c (grok_op_properties): Adjust accordingly.
4193         * lex.c (init_operators): Likewise.
4194         * rtti.c (get_tinfo_decl): Issue error messages about types that
4195         have variable size.
4197 2001-04-03  Mark Mitchell  <mark@codesourcery.com>
4199         * decl2.c (import_export_decl): Don't call import_export_class
4200         when processing an inline member function.
4201         * semantics.c (expand_body): Call import_export_decl before
4202         emitting inline functions.
4204 2001-03-28  Richard Henderson  <rth@redhat.com>
4206         IA-64 ABI Exception Handling:
4207         * cp-tree.def (EH_SPEC_BLOCK): New.
4208         (MUST_NOT_THROW_EXPR): New.
4209         * cp-tree.h: Update changed function declarations.
4210         (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
4211         (CPTI_CALL_UNEXPECTED): New.
4212         (struct cp_language_function): Rename x_eh_spec_try_block
4213         to x_eh_spec_block.
4214         (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
4215         * decl.c (current_binding_level): If no current function
4216         bindings, revert to scope_chain.
4217         (initialize_predefined_identifiers): Remove __cp_push_exception.
4218         (store_parm_decls): Use begin_eh_spec_block.
4219         (finish_function): Use finish_eh_spec_block.
4220         (mark_lang_function): Update for name changes.
4221         * decl2.c (finish_file): No mark_all_runtime_matches.
4222         * dump.c (cp_dump_tree): Handle new tree codes.
4223         * error.c (dump_expr) [BIND_EXPR]: Fix typo.
4224         * except.c (catch_language_init, catch_language): Remove.
4225         (init_exception_processing): Don't set language code.
4226         Initialize call_unexpected_node, protect_cleanup_actions,
4227         eh_personality_libfunc, lang_eh_runtime_type.
4228         (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
4229         (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
4230         (prepare_eh_type): Split out type canonicalizations ...
4231         (build_eh_type_type): ... from here.
4232         (build_eh_type_type_ref): Remove.
4233         (mark_all_runtime_matches): Remove.
4234         (build_exc_ptr): New.
4235         (do_begin_catch, do_end_catch): New.
4236         (do_pop_exception): Remove.
4237         (build_terminate_handler): Remove.
4238         (choose_personality_routine): Split out language choice from ...
4239         (initialize_handler_parm): ... here.
4240         Use MUST_NOT_THROW_EXPR.
4241         (expand_start_catch_block): Use do_begin_catch.  Simplify Java
4242         exception object handling.
4243         (expand_start_eh_spec, expand_end_eh_spec): Remove.
4244         (expand_exception_blocks, alloc_eh_object): Remove.
4245         (begin_eh_spec_block, finish_eh_spec_block): New.
4246         (do_allocate_exception, do_free_exception): New.
4247         (expand_throw): Merge into ...
4248         (build_throw): ... here.  Update for abi.
4249         * expr.c (cplus_expand_expr): No expand_internal_throw.
4250         Handle MUST_NOT_THROW_EXPR.
4251         * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
4252         * semantics.c (*) Update for except.h name changes.
4253         (genrtl_try_block): No protect_with_terminate.
4254         (genrtl_eh_spec_block): New.
4255         (genrtl_handler): Don't emit the goto here.
4256         (cp_expand_stmt): Handle EH_SPEC_BLOCK.
4257         (genrtl_finish_function): Don't expand_exception_blocks.
4258         * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
4260 2001-03-28  Richard Henderson  <rth@redhat.com>
4262         * decl.c (struct named_label_list): Rename eh_region to
4263         in_try_scope, add in_catch_scope.
4264         (struct binding_level): Rename eh_region to is_try_scope,
4265         add is_catch_scope.
4266         (note_level_for_try): Rename from note_level_for_eh.
4267         (note_level_for_catch): New.
4268         (poplevel): Copy both is_try_scope and is_catch_scope to
4269         the named_label_list struct.
4270         (check_previous_goto_1): Don't check for catch block via
4271         DECL_ARTIFICIAL; use in_try_scope instead.
4272         (check_goto): Likewise.
4273         * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
4274         * except.c (expand_start_catch_block): Call note_level_for_catch.
4275         * semantics.c (begin_compound_stmt): Update for note_level_for_try.
4277 2001-03-27  Richard Henderson  <rth@redhat.com>
4279         * except.c: Use USING_SJLJ_EXCEPTIONS instead of
4280         exceptions_via_longjmp.
4282 2001-03-27  Phil Edwards  <pme@sources.redhat.com>
4284         * pt.c (check_default_tmpl_args):  Make error messages clearer.
4286 2001-03-26  Phil Edwards  <pme@sources.redhat.com>
4288         * error.c:  Also undefine 'A' macro used for cp_printers definition.
4290 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4292         * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
4294 2001-03-26  Mike Yang <yang@research.att.com>
4295             Mark Mitchell  <mark@codesourcery.com>
4297         * dump.c (dump_access): New function.
4298         (cp_dump_tree): Use it.  Dump basetype information for class
4299         types.
4301 2001-03-26  Mark Mitchell  <mark@codesourcery.com>
4303         * Makefile.in (optimize.o): Depend on params.h.
4304         (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
4305         (init_decl_processing): Set flag_no_inline when doing
4306         inlining-on-trees.
4307         * optimize.c: Include params.h.
4308         (struct inline_data): Improve documentation of FNS.  Add
4309         FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
4310         (INSNS_PER_STMT): New macro.
4311         (remap_block): Use CLONING_P.
4312         (inlinable_function_p): Don't inline big functions.
4313         (expand_call_inline): Keep track of how much inlining we've done.
4314         (optimize_function): Set FIRST_INLINED_FN.
4315         (maybe_clone_body): Set CLONING_P.
4316         * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
4317         tree nodes.
4318         (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
4319         rest_of_compilation.  Clear DECL_RTL for local variables
4320         afterwards.
4321         (clear_decl_rtl): New function.
4323 2001-03-26  Nathan Sidwell  <nathan@codesourcery.com>
4325         Implement DR 209
4326         * cp-tree.h (skip_type_access_control,
4327         reset_type_access_control): Prototype.
4328         * decl.c (grokdeclarator): Access of friends is not checked.
4329         * parse.y (component_decl_list): Reset type access control.
4330         * semantics.c (decl_type_access_control): Clear
4331         current_type_lookups.
4332         (save_type_access_control): Don't save if not deferring.
4333         (skip_type_access_control, reset_type_access_control): New
4334         functions.
4335         (begin_class_definition): Do type access control for basetypes.
4336         Start deferred access control.
4337         (finish_class_definition): Resume immediate access control if
4338         this is a local class.
4340 2001-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4342         * class.c (add_method): Use memcpy/memmove, not bcopy.
4344         * decl.c (duplicate_decls): Likewise.
4346 2001-03-23  Jakub Jelinek  <jakub@redhat.com>
4348         * mangle.c (write_discriminator): Use `_0' for discriminator 1,
4349         not `_'.
4351 2001-03-23  Jakub Jelinek  <jakub@redhat.com>
4353         * decl.c (local_names): Define.
4354         (push_local_name): New.
4355         (grok_reference_init): Return init if initializing static reference
4356         variable with non-constant instead of emitting it.
4357         Move expand_static_init call to cp_finish_decl.
4358         (layout_var_decl): Call push_local_name.
4359         (maybe_commonize_var): Allow inlining functions even if they have
4360         static local variables, use comdat_linkage for them if flag_weak.
4361         (check_initializer): Call obscure_complex_init if
4362         grok_reference_init returned non-zero.
4363         (save_function_data): Clear x_local_names.
4364         (pop_cp_function_context): Free x_local_names.
4365         (mark_inlined_fns): Remove.
4366         (mark_lang_function): Mark x_local_names.
4367         (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
4368         Mark inlined_fns as tree, remove call to mark_inlined_fns.
4369         * class.c (alter_access): Ensure DECL_ACCESS is never set if
4370         DECL_DISCRIMINATOR_P.
4371         * cp-tree.h (cp_language_function): Add x_local_names.
4372         (lang_decl_flags): Add discriminator into u2.
4373         (lang_decl_inlined_fns): Remove.
4374         (lang_decl): inlined_fns is now a TREE_VEC.
4375         (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
4376         * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
4377         TREE_VEC, not a custom structure.
4378         (optimize_function): Likewise.
4379         * mangle.c (discriminator_for_local_entity): Discriminate among
4380         VAR_DECL local entities.
4381         * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
4382         is not valid.
4384 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
4386         Add support for Java interface method calls.
4387         * cp-tree.h (struct lang_type): Add java_interface flag.
4388         (TYPE_JAVA_INTERFACE): New macro.
4389         * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
4390         by setting TYPE_JAVA_INTERFACE.
4391         * call.c (java_iface_lookup_fn): New static.
4392         (build_over_call): If calling a method declared in a
4393         TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
4394         expression which resolves the function address.
4395         (build_java_interface_fn_ref): New function.
4397 2001-03-22  Richard Henderson  <rth@redhat.com>
4399         * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
4400         * except.c: Don't include it.
4402 2001-03-22  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4403             based on an idea from Joe Buck <jbuck@synopsys.com>
4405         * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
4406         New nonterminals.
4407         (data_def, component_decl): Add reductions to bad_decl.
4409 2001-03-22  Jakub Jelinek  <jakub@redhat.com>
4411         * method.c (do_build_assign_ref): Don't use build_modify_expr for
4412         anonymous aggregates, since they don't have assignment operator
4413         method.
4414         * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
4415         assignment operators for anonymous structure fields.
4417 2001-03-21  Jason Merrill  <jason@redhat.com>
4419         * pt.c (instantiate_decl): Abort if we see a member constant
4420         instantiation that doesn't already have its initializer.
4421         Downgrade explicit instantiation without definition to pedwarn.
4423         * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
4424         * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
4425         (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
4427         * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
4428         (pending_vtables): Remove.
4429         * decl2.c (pending_vtables): Remove.
4430         (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
4431         CLASSTYPE_VTABLE_NEEDS_WRITING.
4432         (import_export_class): Likewise.
4433         (init_decl2): Don't mark pending_vtables.
4434         * lex.c (handle_pragma_vtable): Just sorry.
4435         * pt.c (instantiate_class_template): Don't mess with
4436         CLASSTYPE_VTABLE_NEEDS_WRITING.
4437         (mark_class_instantiated): Likewise.
4438         * ptree.c (print_lang_type): Don't print it.
4439         * semantics.c (begin_class_definition): Don't set it.
4441         * pt.c (template_tail): Replace with last_pending_template.
4442         (maybe_templates, maybe_template_tail): Remove.
4443         (add_pending_template): Adjust.
4444         (instantiate_pending_templates): Adjust.
4446         * cp-tree.h (struct saved_scope): Remove lang_stack field.
4447         (current_lang_stack): Remove.
4448         * decl.c (maybe_push_to_top_level): Don't initialize it.
4449         (duplicate_decls): Use current_lang_depth.
4450         (xref_basetypes): Likewise.
4451         * class.c (current_lang_depth): New fn.
4452         (push_lang_context): Use more varray functionality.
4453         (pop_lang_context): Likewise.
4455         * error.c (GLOBAL_THING): Always use '__'.
4457 2001-03-21  Mark Mitchell  <mark@codesourcery.com>
4459         * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
4461         * mangle.c (mangle_decl_string): Mangle the names of overloaded
4462         operators, even when they have `extern "C"' linkage.
4464 2001-03-19  Mark Mitchell  <mark@codesourcery.com>
4466         * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
4467         COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
4468         where it's not necessary.
4469         (add_method): Remove optimization involving comparison of
4470         DECL_ASSEMBLER_NAME.
4471         (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
4472         COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
4473         where it's not necessary.
4474         (check_methods): Likewise.
4475         (build_clone): Likewise.
4476         (built_vtt): Likewise.
4477         * cp-tree.h (DECL_NEEDED_P): Likewise.
4478         * decl.c (pushtag): Likewise.
4479         (duplicate_decls): Likewise.
4480         (pushdecl): Likewise.
4481         (builtin_function): Likewise.
4482         (build_library_fn_1): Set DECL_LANGUAGE for library functions.
4483         (build_cp_library_fn): Likewise.
4484         (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
4485         COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
4486         where it's not necessary.
4487         (make_rtl_for_nonlocal_decl): Likewise.
4488         (cp_finish_decl): Likewise.
4489         (grokfndecl): Likewise.
4490         (grokvardecl): Likewise.
4491         (grokdeclarator): Likewise.
4492         (start_function): Likewise.
4493         (cp_missing_return_ok_p): Likewise.
4494         * decl2.c (grokclassfn): Likewise.
4495         (check_classfn): Likewise.
4496         (finish_static_data_member_decl): Likewise.
4497         (grokfield): Likewise.
4498         * error.c (GLOBAL_IORD_P): Remove.
4499         (dump_global_iord): Improve output.
4500         (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
4501         * except.c (nothrow_libfn_p): Summarily reject any function not in
4502         namespace-scope.
4503         * init.c (build_java_class_ref): Don't explicitly set
4504         DECL_ASSEMBLER_NAME after calling mangle_decl.
4505         * mangle.c (mangle_decl_string): Handle extern "C" functions.
4506         (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
4507         * method.c (set_mangled_name_for_decl): Don't explicitly set
4508         DECL_ASSEMBLER_NAME after calling mangle_decl.
4509         (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
4510         IDENTIFIER_GLOBAL_VALUE for the thunk.
4511         * pt.c (set_mangled_name_for_template_decl): Remove.
4512         (check_explicit_specialization): Don't use it.
4513         (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
4514         (tsubst_friend_function): Likewise.
4515         (tsubst_decl): Likewise.
4516         (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
4517         * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
4518         COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
4519         where it's not necessary.
4520         (tinfo_base_init): Likewise.
4521         (create_real_tinfo_var): Likewise.
4522         * search.c (looup_field_1): Likewise.
4523         * semantics.c (finish_named_return_value): Likewise.
4524         * tree.c (init_tree): Set lang_set_decl_assembler_name.
4526 2001-03-15  Gabriel Dos Reis  <gdr@codesourcery.com>
4528         Correct semantics restrictions checking in throw-expression.
4529         * except.c (is_admissible_throw_operand): New function.
4530         (build_throw): Use it.
4532 2001-03-14  Mark Mitchell  <mark@codesourcery.com>
4534         * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
4535         and its ilk.
4537 2001-03-14  Mark Mitchell  <mark@codesourcery.com>
4539         * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
4540         * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
4541         * decl.c (duplicate_decls): Likewise.
4542         (builtin_function): Likewise.
4543         (build_library_fn): Likewise.
4544         (build_cp_library_fn): Likewise.
4545         (check_initializer): Likewise.
4546         (cp_finish_decl): Likewise.
4547         * decl2.c (grokfield): Likewise.
4548         (grok_function_init): Remove #if 0'd code.
4549         (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
4550         * friend.c (do_friend): Likewise.
4551         * init.c (get_temp_regvar): Likewise.
4552         * method.c (make_thunk): Likewise.
4553         * pt.c (tsubst_friend_function): Likewise.
4554         (tsubst_decl): Likewise.
4555         (regenerate_decl_from_template): Likewise.
4556         * semantics.c (genrtl_named_return_value): Likewise.
4557         (expand_body): Likewise.
4558         (genrtl_finish_function): Likewise.
4559         * tree.c (cp_tree_equal): Likewise.
4561 2001-03-12  Nathan Sidwell  <nathan@codesourcery.com>
4563         * call.c (convert_like_real): Add extra semantics to INNER
4564         parameter. Don't convert to temporary if a user conversion
4565         gives us an lvalue that we're about to bind to a reference.
4566         Set INNER to indicate pending reference binding on recursive
4567         calls.
4569 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4571         * cp/lex.c: Delete duplicate pending_lang_change.
4573 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4575         * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
4576         Similarly.
4577         * cp/repo.c (get_base_filename, open_repo_file): Similarly.
4578         * cp/cp-tree.h: Remove file_name_nondirectory prototype.
4580 2001-03-09  Zack Weinberg  <zackw@stanford.edu>
4582         * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
4584 2001-03-08  Stan Shebs  <shebs@apple.com>
4586         * cp-tree.h (set_identifier_local_value): Remove unused decl.
4588 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
4590         * spew.c: Remove references to CPP_OSTRING.
4592 2001-03-06  Andrew Haley  <aph@redhat.com>
4594         * typeck.c (convert_arguments): Check that we have an fndecl.
4596 2001-03-05  Andrew Haley  <aph@redhat.com>
4598         * typeck.c (convert_arguments): Don't do ellipsis conversion for
4599         __built_in_constant_p.
4601 2001-03-02  Nathan Sidwell  <nathan@codesourcery.com>
4603         * typeck.c (build_static_cast): Allow enum to enum conversions
4604         as per DR 128.
4606 2001-03-02  Nathan Sidwell  <nathan@codesourcery.com>
4608         * class.c (check_field_decls): Pointers to member do not a
4609         non-pod struct make, as per DR 148.
4611 2001-03-02  Nathan Sidwell  <nathan@codesourcery.com>
4613         * call.c (joust): cp_pedwarn when using gnu extension concerning
4614         worst conversion sequences.
4616 2001-03-01  Zack Weinberg  <zackw@stanford.edu>
4618         * decl.c: Replace all uses of 'boolean' with 'bool'.
4620 2001-03-01  Zack Weinberg  <zackw@stanford.edu>
4622         * lang-specs.h: Add zero initializer for cpp_spec field to
4623         all array elements that need one.  Don't put an #ifdef inside
4624         the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
4625         use it.
4627 2001-03-01  Nathan Sidwell  <nathan@codesourcery.com>
4629         Implement using decls inside template functions.
4630         * decl2.c (validate_nonmember_using_decl): Don't special case
4631         fake_std_node in the global namespace. Don't reject early when
4632         processing a template.
4633         (do_local_using_decl): Add to statement tree. Don't do further
4634         processing when building a template.
4635         * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
4637 2001-03-01  Nathan Sidwell  <nathan@codesourcery.com>
4639         * decl2.c (do_nonmember_using_decl): Don't complain if we find
4640         same function. Do complain about ambiguating extern "C"
4641         declarations.
4643 2001-02-28  Nathan Sidwell  <nathan@codesourcery.com>
4645         Remove floating point and complex type template constant parms.
4646         * pt.c (convert_nontype_argument): Remove REAL_TYPE and
4647         COMPLEX_TYPE extensions.
4648         (invalid_nontype_parm_type_p): Likewise.
4650 2001-02-27  Jeffrey Oldham  <oldham@codesourcery.com>
4652         * except.c (call_eh_info): Revert "match_function"'s type.
4654 2001-02-27  Nathan Sidwell  <nathan@codesourcery.com>
4656         Fix ctor vtable vcall offsets.
4657         * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
4658         (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
4659         (get_matching_base): Remove.
4660         (get_original_base): New function.
4661         (build_vtbl_initializer): Initialize vid.rtti_binfo.
4662         Use a virtual thunk for a ctor vtable with an index
4663         (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
4664         primary base within a constructor vtable. Only set
4665         BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
4666         when primary base has been lost.
4667         * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
4669 2001-02-26  Jeffrey Oldham  <oldham@codesourcery.com>
4671         * call.c (joust): Ensure more_specialized()'s argument length
4672         parameter has correct value for constructors.
4674 2001-02-26  Nathan Sidwell  <nathan@codesourcery.com>
4676         * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
4678         * decl.c (mark_inlined_fns): Prototype.
4680 2001-02-22  Mark Mitchell  <mark@codesourcery.com>
4682         * spew.c (yylex): Correct handling of friends.
4684 2001-02-22  Mark Mitchell  <mark@codesourcery.com>
4686         * mangle.c (write_encoding): Pass write_function_type the
4687         FUNCTION_DECL for the function being encoded.
4688         (write_function_type): Pass it along to write_bare_function_type.
4689         (write_bare_function_type): Pass it along to write_method_parms.
4690         (write_method_parms): Don't mangle the compiler-generated
4691         parameters to a constructor or destructor.
4693 2001-02-22  Andreas Jaeger  <aj@suse.de>
4695         * optimize.c: Include toplev.h for
4696         note_deferral_of_defined_inline_function prototype.
4698 2001-02-22  Jakub Jelinek  <jakub@redhat.com>
4700         * cp-tree.h (struct lang_decl_inlined_fns): New.
4701         (struct lang_decls): Add inlined_fns.
4702         (DECL_INLINED_FNS): New macro.
4703         * optimize.c (struct inline_data): Add inlined_fns.
4704         (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
4705         (inlinable_function_p): Likewise, fix typo in comment,
4706         function is not inlinable if it already inlined function currently
4707         being optimized.
4708         (expand_call_inline): Add fn to inlined_fns if necessary.
4709         (optimize_function): Initialize inlined_fns.
4710         Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
4711         * decl.c (mark_inlined_fns): New function.
4712         (lang_mark_tree): Call it.
4714 2001-02-21  Jason Merrill  <jason@redhat.com>
4716         * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
4717         (DECL_UNINLINABLE): Move to middle-end.
4719         * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
4720         * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
4721         * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
4722         * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
4723         parms and outer BLOCK.  note_deferral_of_defined_inline_function.
4725         * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
4726         second parm of op=.
4728 2001-02-19  Mark Mitchell  <mark@codesourcery.com>
4730         * decl2.c (set_decl_namespace): Allow explicit instantiations in
4731         any namespace.
4733 2001-02-18  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
4735         * optimize.c (expand_call_inline): Don't walk subtrees of type
4736         nodes.
4738 2001-02-18  Mark Mitchell  <mark@codesourcery.com>
4740         * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
4741         for a destructor.
4743 2001-02-18  Jason Merrill  <jason@redhat.com>
4745         Do put the VTT parameter in DECL_ARGUMENTS.
4746         * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
4747         (current_vtt_parm): New macro.
4748         (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
4749         (DECL_HAS_VTT_PARM_P): New macro.
4750         (DECL_VTT_PARM): Remove.
4751         (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
4752         * decl.c (duplicate_decls): Only copy the operator code if
4753         appropriate.
4754         (start_function): Set current_vtt_parm.
4755         (lang_mark_tree): Don't mark vtt_parm.
4756         * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
4757         DECL_ARGUMENTS.  Set DECL_HAS_VTT_PARM_P.
4758         * class.c (build_clone): Maybe remove the VTT parm.
4759         * optimize.c (maybe_clone_body): Set up the VTT parm.
4760         * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
4761         * call.c (build_over_call): Just allow the VTT arg.
4762         * method.c (make_thunk): Don't set DECL_VTT_PARM.
4763         (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
4764         (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
4765         * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
4766         * error.c (dump_function_decl): Likewise.
4767         * call.c (build_user_type_conversion_1, convert_like_real): Abort
4768         if we try to call a constructor with in-charge or VTT parms.
4769         * method.c (skip_artificial_parms_for): New fn.
4770         * call.c (add_function_candidate, build_over_call): Call it.
4771         * call.c (build_new_method_call): Use current_vtt_parm.
4772         * init.c (expand_virtual_init): Likewise.
4773         * class.c (same_signature_p): No longer static.
4774         * cp-tree.h: Declare it.
4775         * search.c (look_for_overrides_r): Use it.
4777 2001-02-17  Mark Mitchell  <mark@codesourcery.com>
4779         * cp-tree.h (new_abi_rtti_p): Remove.
4780         (name_mangling_version): Likewise.
4781         (flag_do_squangling): Likewise.
4782         * class.c (build_rtti_vtbl_entries): Remove old ABI support.
4783         * decl.c (grokfndecl): Likewise.
4784         * decl2.c (name_mangling_version): Remove.
4785         (flag_do_squangling): Likewise.
4786         (lang_f_options): Remove `squangle'.
4787         (unsupported_options): Add `squangle'.
4788         (cxx_decode_option): Issue a warning about uses of
4789         -fname-mangling-version.
4790         (finish_file): Remove old ABI support.
4791         * pt.c (check_explicit_specialization): Likewise.
4792         (tsubst_decl): Likewise.
4793         * rtti.c (init_rtti_processing): Likewise.
4794         (build_headof): Likewise.
4795         (get_tinfo_decl_dynamic): Likewise.
4796         (tinfo_from_decl): Likewise.
4797         (build_dynamic_cast_1): Likewise.
4798         (synthesize_tinfo_var): Likewise.
4799         * init.c (build_new): Allow enumeration types for the array-bounds
4800         in a direct-new-declarator.
4802         * semantics.c (finish_typeof): Resolve OFFSET_REFs.
4804         * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
4805         TREE_PROTECTED from the template being specialized.
4807 2001-02-17  Jason Merrill  <jason@redhat.com>
4809         * decl2.c (build_artificial_parm): Set TREE_READONLY.
4811         * decl.c (bad_specifiers): Allow throw specs on things with
4812         pointer-to-function or -member-function type.
4813         * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
4814         a pmf.
4816 2001-02-17  Mark Mitchell  <mark@codesourcery.com>
4818         * call.c (check_dtor_name): Handle template names correctly.
4820 2001-02-16  Jason Merrill  <jason@redhat.com>
4822         * cp-tree.h (DECL_USE_VTT_PARM): Remove.
4823         * decl2.c (maybe_retrofit_in_chrg): Don't create it.
4824         * optimize.c (maybe_clone_body): Don't substitute it.
4825         * call.c (build_new_method_call): Check in_chrg instead.
4826         * init.c (expand_virtual_init): Likewise.
4828 2001-02-16  Gabriel Dos Reis  <gdr@codesourcery.com>
4830         * decl.c (check_tag_decl): Make sure a typedef for an anonymous
4831         class-type introduces at least a type-name.
4833 2001-02-16  Jakub Jelinek  <jakub@redhat.com>
4835         * call.c (convert_like_real): Create a temporary for non-lvalue.
4837 2001-02-16  Jeffrey Oldham  <oldham@codesourcery.com>
4839         * cp-tree.h: Fix typos in comments.
4841 2001-02-16  Jason Merrill  <jason@redhat.com>
4843         * optimize.c (remap_block): If we're compiling a clone, pass the
4844         new block to insert_block.
4846 2001-02-16  Mark Mitchell  <mark@codesourcery.com>
4848         * semantics.c (finish_asm_stmt): Robustify.
4850 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
4852         * pt.c (push_template_decl_real): Don't remangle the name of a
4853         class template.
4855 2001-02-15  Jim Meyering  <meyering@lucent.com>
4857         * Make-lang.in (c++.install-common): Depend on installdirs.
4858         (c++.install-info): Likewise.
4859         (c++.install-man): Likewise.
4861 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
4863         * typeck2.c (build_m_component_ref): Robustify.
4865 2001-02-15  Alexandre Oliva  <aoliva@redhat.com>
4867         * friend.c (do_friend): Don't take the nested [template] class
4868         into account when deciding whether to warn about the friend
4869         function not referring to a template function.
4871 2001-02-14  Jakub Jelinek  <jakub@redhat.com>
4873         * typeck.c (build_unary_op): Clarify error message.
4875 2001-02-08  Aldy Hernandez  <aldyh@redhat.com>
4877         * parse.y (component_constructor_declarator): allow optional
4878         parentheses around constructor class name.
4880 2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
4882         * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
4883         section.
4884         * init.c (emit_base_init): Remove incorrect comment about
4885         virtual bases.
4886         * method.c (make_thunk): Fix comment alignment.
4888 2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
4890         Kill remnants of this is variable.
4891         * cp-tree.h (flag_this_is_variable): Remove.
4892         * decl2.c (flag_this_is_variable): Remove.
4893         * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
4894         (build_vbase_path): The path is non-static, even in a cdtor.
4895         (resolves_to_fixed_type_p): Add additional return value.
4896         * search.c (init_vbase_pointers): Adjust.
4897         * tree.c (lvalue_p_1): Adjust.
4898         * typeck.c (mark_addressable): Adjust.
4900 2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
4902         * pt.c (unify): Don't check cv quals of array types.
4904 2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
4906         * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
4907         check whether we already have the type.
4909 2001-02-13  Mark Mitchell  <mark@codesourcery.com>
4911         * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
4912         * call.c (build_op_delete_call): Simplify to remove duplicate
4913         code.
4914         * class.c (clone_function_decl): Don't build the deleting variant
4915         of a non-virtual destructor.
4916         * decl.c (finish_destructor_body): Don't call delete if this is a
4917         non-virtual destructor.
4918         * init.c (build_delete): Explicitly call `operator delete' when
4919         deleting an object with a non-virtual destructor.
4921 2001-02-13  Jason Merrill  <jason@redhat.com>
4923         * lang-specs.h: Add more __EXCEPTIONS.
4925 2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
4927         * typeck2.c (process_init_constructor): Check
4928         TREE_HAS_CONSTRUCTOR before issuing missing init warning.
4930 2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
4932         * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
4933         Remove spurious information in comment. Allow further
4934         adjustments of REFERENCE_TYPE args.
4936 2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
4938         * errfn.c (cp_deprecated): Tweak diagnostic text.
4939         * parse.y (new_initializer): Deprecate initializer lists
4940         extension.
4942 2001-02-12  Mark Mitchell  <mark@codesourcery.com>
4944         Remove old ABI support.
4946 2001-02-11  Mark Mitchell  <mark@codesourcery.com>
4948         * decl2.c (flag_vtable_thunks): Always set it to 1.
4949         (flag_new_abi): Likewise.
4950         * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
4952         * Makefile.in (g++spec.o): Fix typo.
4954 2001-02-09  Jason Merrill  <jason@redhat.com>
4956         * lang-specs.h: Restore definition of __EXCEPTIONS.
4958 2001-02-08  Jason Merrill  <jason@redhat.com>
4960         * search.c (shared_member_p): New function.
4961         (lookup_field_r): Use it.
4962         * cp-tree.h (SHARED_MEMBER_P): Remove.
4964         * method.c (process_overload_item): Handle template-dependent array
4965         bounds.
4966         * pt.c (type_unification_real): If we end up with undeduced nontype
4967         parms, try again.
4969         * decl.c (lookup_name_real): Tweak warning to refer to decls, not
4970         types.
4972         * typeck2.c (friendly_abort): Don't say anything if we have
4973         earlier errors or sorries.
4975         * decl.c (check_tag_decl): Notice attempts to redefine bool and
4976         wchar_t.  Ignore if in_system_header.
4978         * decl.c (maybe_push_cleanup_level): New fn...
4979         (start_decl_1): ...split out from here.
4980         * cvt.c (build_up_reference): Use it.
4981         * cp-tree.h: Declare it.
4983 2001-02-07  Mark Mitchell  <mark@codesourcery.com>
4985         * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
4986         spec.
4988 2001-02-06  Nathan Sidwell  <nathan@codesourcery.com>
4990         * pt.c (lookup_template_class): Make sure it's a primary
4991         template or template_template_parm when called from the parser.
4992         (instantiate_template_class): Add assertion.
4994 2001-02-05  Alexandre Oliva  <aoliva@redhat.com>
4996         * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
4997         from error_mark_node.
4999 2001-02-05  Nathan Sidwell  <nathan@codesourcery.com>
5001         Fix specification and implementation bugs in V3 ABI
5002         construction vtables.
5003         * cp-tree.h (flag_dump_class_layout): New flag.
5004         (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
5005         (BINFO_LOST_PRIMARY_P): New flag.
5006         (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
5007         (BINFO_PRIMARY_MARKED_P): Rename to ...
5008         (BINFO_PRIMARY_P): ... here.
5009         (binfo_via_virtual): New prototype.
5010         * decl2.c (flag_dump_class_layout): New flag.
5011         (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
5012         use `=' as a file name separator.
5013         * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
5014         bases.
5015         (build_vtbl_address): If this is a virtual primary base, then
5016         get the vtbl of what it is ultimately primary for.
5017         * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
5018         for BINFO_PRIMARY_P.
5019         (dfs_skip_nonprimary_vbases_markedp): Likewise.
5020         (get_shared_vbase_if_not_primary): Likewise.
5021         (dfs_get_pure_virtuals): Likewise.
5022         (expand_upcast_fixups): Likewise.
5023         (fixup_virtual_upcast_offsets): Likewise.
5024         (dfs_find_vbase_instance): Likewise.
5025         (find_vbase_instance): Likewise.
5026         (binfo_from_vbase): Adjust comment to reflect reality.
5027         (binfo_via_virtual): New function.
5028         * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
5029         for binfo walking during VTT construction.
5030         (dfs_mark_primary_bases): Remove.
5031         (force_canonical_binfo_r): New function.
5032         (force_canonical_binfo): New function.
5033         (mark_primary_virtual_base): New function.
5034         (mark_primary_bases): Walk in inheritance graph order, use
5035         mark_primary_virtual_base.
5036         (determine_primary_base): Use some more intermediate variables.
5037         (dfs_find_final_overrider): Don't check for overriding along a
5038         virtual path.
5039         (dfs_modify_vtables): Walk into primary virtual bases too.
5040         (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
5041         (build_base_fields): Likewise.
5042         (dfs_set_offset_for_unshared_vbases): Likewise.
5043         (layout_virtual_bases): Likewise.
5044         (end_of_class): Likewise.
5045         (finish_struct_1): Call dump_class_hierarchy, if requested.
5046         (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
5047         (dump_class_hierarchy_r): Add stream parameter. Emit more information.
5048         (dump_class_hierarchy): Add file parameter. Append to file, if
5049         required.
5050         (finish_vtbls): Adjust accumulate_vtbl_inits call.
5051         Use canonical base for virtual bases.
5052         (build_vtt): Add more comments. Adjust build_vtt_inits call.
5053         (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
5054         Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
5055         VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
5056         virtual VTTs.
5057         (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
5058         from DATA.  We want virtual primary bases and all bases via virtual.
5059         Only set BINFO_VPTR_INDEX for top level. Look up from a primary
5060         virtual base when not a construction vtable.
5061         (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
5062         (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
5063         Use canonical bases when processing virtual bases.
5064         (accumulate_vtbl_inits): We're interested in any base via a
5065         virtual path.
5066         (dfs_accumulate_vtbl_inits): If this is a primary virtual base
5067         within a construction vtable, determine what is being overridden.
5068         (build_vtbl_initializer): Add more comments
5069         (add_vcall_offset_vtbl_entries_1): Adjust comment.
5070         (build_rtti_vtbl_entries): Check if the base has lost its
5071         primary.
5073 2001-02-05  Mark Mitchell  <mark@codesourcery.com>
5075         * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
5077 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5079         * decl.c (pushdecl): Call abort instead of fatal.
5080         * except.c (decl_is_java_type): Call fatal_error instead of fatal.
5081         * init.c (build_new_1): Likewise.
5082         (build_java_class_ref): Call internal_error and fatal_error, not fatal.
5083         * decl.c (build_typename_type): hash_table_init now returns void.
5084         decl.c (init_decl_processing): Make an error non-fatal.
5086 2001-02-04  Mark Mitchell  <mark@codesourcery.com>
5088         * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
5089         Document.
5090         (CLASSTYPE_INTERFACE_KNOWN): Likewise.
5091         (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
5092         (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
5093         (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
5094         * decl.c (maybe_commonize_var): Use the new name-mangling where
5095         appropriate.
5096         * decl2.c (comdat_linkage): Enhance comments.  Make all
5097         compiler-generated things static, if COMDAT is not available.
5098         (get_tinfo_decl): Do not make typeinfo objects that belong in the
5099         library COMDAT.
5100         (tinfo_base_init): Use the correct mangled name for typeinfo
5101         strings, and push them into the global scope.
5102         (typeinfo_in_lib_p): New function.
5103         (synthesize_tinfo_var): Use it.
5104         (create_real_tinfo_var): Likewise.
5106 2001-02-03  Jakub Jelinek  <jakub@redhat.com>
5108         * decl.c (push_class_binding): Use context_for_name_lookup instead
5109         of CP_DECL_CONTEXT.
5110         * search.c (context_for_name_lookup): Remove static.  Check for NULL
5111         context in the loop.
5112         * cp-tree.h (context_for_name_lookup): Add prototype.
5114 2001-02-02  Jakub Jelinek  <jakub@redhat.com>
5116         * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
5117         * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
5118         Remove.
5119         * call.c (convert_class_to_reference, build_user_type_conversion_1,
5120         add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
5122 2001-02-02  Mark Mitchell  <mark@codesourcery.com>
5124         * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
5125         of macros used when compiling g++spec.c.
5126         * g++spec.c (lang_specific_driver): Link with the shared
5127         libgcc by default.
5129 2001-01-29  Joseph S. Myers  <jsm28@cam.ac.uk>
5131         * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
5132         make_reference_declarator, make_call_declarator), method.c
5133         (implicitly_declare_fn), parse.y (namespace_using_decl,
5134         notype_unqualified_id, expr_or_declarator, new_type_id,
5135         after_type_declarator, direct_after_type_declarator,
5136         notype_declarator, complex_notype_declarator,
5137         complex_direct_notype_declarator, qualified_id,
5138         notype_qualified_id, overqualified_id, direct_new_declarator,
5139         absdcl, direct_abstract_declarator, conversion_declarator), pt.c
5140         (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
5141         instead of build_parse_node.
5143 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5145         * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
5146         (minus_one_node): Moved to top level gcc directory.  Renamed
5147         to integer_minus_one_node.
5149         * init.c (init_init_processing): Don't set minus_one_node.
5150         (build_vec_init): Use integer_minus_one_node.
5152         * rtti.c (get_tinfo_decl_dynamic): Likewise.
5154 2001-01-28  Jakub Jelinek  <jakub@redhat.com>
5156         * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
5157         identical and they would be replaced with constant, remove
5158         MODIFY_EXPR from the tree.
5160 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5162         * Make-lang.in: Remove all dependencies on defaults.h.
5163         * call.c: Don't include defaults.h.
5164         * decl.c: Likewise.
5165         * decl2.c: Likewise.
5166         * except.c: Likewise.
5167         * pt.c: Likewise.
5168         * rtti.c: Likewise.
5169         * tree.c: Likewise.
5170         * typeck.c: Likewise.
5172 2001-01-25  Jakub Jelinek  <jakub@redhat.com>
5174         * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
5175         operators even in "C" linkage.
5176         * method.c (set_mangled_name_for_decl): Likewise.
5177         * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
5178         overloaded operators in "C" linkage.
5180 2001-01-24  Nathan Sidwell  <nathan@codesourcery.com>
5182         * pt.c (tsubst_decl): Remove IN_DECL parameter.
5183         (tsubst_arg_types): Check parameter is not void.
5184         (tsubst): Adjust tsubst_decl call.
5186 2001-01-24  Nathan Sidwell  <nathan@codesourcery.com>
5188         * call.c (add_builtin_candidate): Quote std properly, from
5189         previous change.
5191 2001-01-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5193         * pt.c (check_explicit_specialization): Clone constructors and
5194         destructors.
5196 2001-01-23  Nathan Sidwell  <nathan@codesourcery.com>
5198         * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
5199         indicates anything special about template depth. Make sure we
5200         only count the user visible template classes.
5202 2001-01-23  Nathan Sidwell  <nathan@codesourcery.com>
5204         * call.c (build_conv): Typo in comment.
5205         (add_builtin_candidate): Add more explanation.
5206         Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
5207         Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
5208         when we have enumeral types.
5209         (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
5210         candidates for relops and eqops.
5211         (joust): Simplify control flow. Allow a non-template user
5212         function to hide a builtin.
5214 2001-01-22  Nathan Sidwell  <nathan@codesourcery.com>
5216         * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
5217         (more_specialized): Add deduction parameter.
5218         * call.c (joust): Adjust more_specialized call.
5219         * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
5220         UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
5221         (get_bindings_order): Remove.
5222         (get_bindings_real): Add DEDUCE parameter.
5223         (maybe_adjust_types_for_deduction): Return extra unify flags. Do
5224         REFERENCE_TYPE jig for DEDUCE_ORDER.
5225         (type_unification_real): Deal with DEDUCE_ORDER. Use result of
5226         maybe_adjust_types_for_deduction.
5227         (more_specialized): Add DEDUCE parameter. Call get_bindings_real
5228         directly.
5229         (try_one_overload): Use result of maybe_adjust_types_for_deduction.
5230         (check_cv_quals_for_unify): Use new unify qualifier flags.
5231         (unify): Clear new unify qualifier flags.
5232         (get_bindings_real): Add DEDUCE parameter.
5233         (get_bindings): Adjust call to get_bindings_real.
5234         (get_bindings_overload): Likewise.
5235         (most_specialized_instantiation): Adjust call to
5236         more_specialized.
5238 2001-01-19  Jason Merrill  <jason@redhat.com>
5240         * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
5242         * decl.c (init_decl_processing): Just force -fvtable-thunks on if
5243         -fnew-abi.
5245 2001-01-19  Ute Pelkmann  <scope.muc@t-online.de>
5247         * decl2.c (arg_assoc_class): Fix double iteration logic.
5249 2001-01-19  Jason Merrill  <jason@redhat.com>
5251         * init.c (build_delete): Always call convert_force to strip cv-quals.
5253         * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
5254         * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
5255         * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
5257 2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
5259         * search.c (get_vbase_1): Count only virtual bases.
5261 2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
5263         * class.c (duplicate_tag_error): Robustify flag clearing.
5265 2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
5267         * cp-tree.h (lookup_template_class): Add complain parm.
5268         * decl.c (lookup_namespace_name): Adjust call to
5269         lookup_template_class.
5270         (make_typename_type): Likewise.
5271         * semantics.c (finish_template_type): Likewise.
5272         * pt.c (lookup_template_class): Add complain parm. Adjust.
5273         (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
5274         (tsubst): Likewise.
5276 2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
5278         * pt.c (copy_default_args_to_explicit_spec): Preserve
5279         object's CV quals. Reorganize.
5281 2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
5283         * typeck.c (build_modify_expr): Say `initialization' for
5284         INIT_EXPRs.
5285         * init.c (build_default_init): Convert to enumeral type, if
5286         needed.
5288 2001-01-18  Jakub Jelinek  <jakub@redhat.com>
5290         * parse.y (nomods_initdcl0): Properly set things up for
5291         initdcl0_innards.
5293 2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
5295         * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
5296         (type_unification_real): Set it.
5297         (unify): Use it.
5299 2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
5301         * decl.c (finish_destructor_body): Convert to vbase pointer here.
5303 2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
5305         * semantics.c (begin_class_definition): Check we're not inside a
5306         template parm list.
5308 2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
5310         * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
5311         BASELINK_P.
5313 2001-01-16  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5315         * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
5316         * call.c (build_over_call): Add comment.
5318 2001-01-16 Daniel Berlin <dberlin@redhat.com>
5320         * cvt.c (ocp_convert): Handle vector type conversion
5321         * typeck2.c (digest_init): Handle vector type initializations
5323 2001-01-16  Phil Edwards  <pme@sources.redhat.com>
5325         * g++spec.c:  Don't add libraries needlessly if -fsyntax-only
5326           was given.
5328 2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
5330         * pt.c (check_nontype_parm): Rename to ...
5331         (invalid_nontype_parm_type_p): ... here.
5332         (process_template_parm): Adjust.
5333         (convert_template_argument): Adjust.
5335 2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
5337         * pt.c (check_nontype_parm): New function.
5338         (process_template_parm): Use it.
5339         (convert_template_argument): Use it.
5340         (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
5341         member.
5343 2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>
5345         * tree.c: Add defaults.h
5346         (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
5347         * Make-lang.in (cp/tree.o): Add defaults.h.
5349 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
5351         * Make-lang.in (CXX_C_OBJS): Add c-format.o.
5353 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
5355         * g++.1: Change to be ".so man1/gcc.1".
5357 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
5359         * Make-lang.in (c++.info, c++.install-info): Build and install g++
5360         internals info.
5361         (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
5362         ($(srcdir)/cp/g++int.info): New target.
5363         * gxxint.texi: Add info directory entry.  Use @@ in email address.
5364         * .cvsignore: Update.
5366 2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
5368         * typeck.c (build_c_cast): Do template processing earlier.
5369         Always pedwarn on array casts.
5371 2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
5373         * friend.c (make_friend_class): Make sure a templated class is
5374         actually a template.
5376 2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
5378         * decl2.c (get_guard): Set linkage from guarded decl.
5380 2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
5382         * call.c (convert_default_arg): Check for unprocessed
5383         DEFAULT_ARG.
5384         * cp-tree.h (replace_defarg): Move to spew.c.
5385         (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
5386         spew.c, which is where they really are.
5387         (done_pending_defargs): Declare.
5388         (unprocessed_defarg_fn): Declare.
5389         * decl.c (replace_defarg): Move to spew.c
5390         * parse.y (structsp): Call done_pending_defargs.
5391         * spew.c (defarg_fns): Rearrange list structure.
5392         (defarg_fnsdone): New static variable.
5393         (defarg_depfns): New static variable.
5394         (init_spew): Adjust.
5395         (add_defarg_fn): Store the type in TREE_TYPE.
5396         (do_pending_defargs): Detect and deal with ordering constraints
5397         and circularity.
5398         (done_pending_defargs): New function.
5399         (unprocessed_defarg_fn): New function.
5400         (replace_defarg): Moved from decl.c. Robustify. Don't save
5401         if circularity detected.
5403 2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
5405         * pt.c (unify): Check array has a domain, before checking
5406         whether it is variable sized.
5408 2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
5410         * decl.c (grokparms): Unobfuscate and get correct diagnostic for
5411         parameters with pointers to arrays of unknown bound.
5413 2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
5415         * parse.y (template_parm_header, template_spec_header): New
5416         reductions. Split out from ...
5417         (template_header): ... here. Use them.
5418         (template_template_parm): Use template_parm_header.
5419         * semantics.c (finish_template_template_parm): Add assert.
5421 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
5423         * mangle.c (write_builtin_type): Fix thinko.
5425         * pt.c (copy_default_args_to_explicit_spec_1): New function.
5426         (copy_default_args_to_explicit_spec): Likewise.
5427         (check_explicit_specialization): Use it.
5429         * class.c (finish_struct_1):  Remove last argument in call to
5430         make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
5431         * decl.c (builtin_function): Likewise.
5432         (build_cp_library_fn): Likewise.
5433         (check_initializer): Likewise.
5434         (make_rtl_for_nonlocal_decl): Likewise.
5435         (cp_finish_decl): Likewise.
5436         (start_function): Likewise.
5437         * decl2.c (finish_anon_union): Likewise.
5438         * friend.c (do_friend): Likewise.
5439         * init.c (build_java_class_ref): Likewise.
5440         * method.c (make_thunk): Likewise.
5441         * pt.c (tsubst_friend_function): Likewise.
5442         * semantics.c (expand_body): Likewise.
5444 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
5446         * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
5447         looking at DECL_CLONED_FUNCTION for non-functions.
5449 2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
5451         * error.c (dump_template_parameter): Use parm to determine how
5452         to print default value.
5454 2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
5456         * class.c (duplicate_tag_error): Clear more flags.
5458 2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
5460         * call.c (build_new_method_call): Use binfo_for_vbase.
5462 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5464         * cp-tree.h (flag_cond_mismatch): Don't declare.
5465         * decl2.c (flag_cond_mismatch): Don't define.
5466         (lang_f_options): Remove cond-mismatch.
5467         (unsupported_options): Add cond-mismatch.
5469 2001-01-09  Nathan Sidwell  <nathan@codesourcery.com>
5471         * class.c (handle_using_decl): Reject using of constructor name
5472         of sourcing class. Allow injecting of a method with same name as
5473         nested class. Fixup error messages.
5475 2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5477         * decl2.c (lang_decode_option): Handle -Wformat=2.
5479 2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
5481         * cp-tree.h (lang_decl_flags): Rename defined_in_class to
5482         initialized_in_class.
5483         (DECL_DEFINED_IN_CLASS_P): Rename to ...
5484         (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
5485         * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
5486         (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
5487         * pt.c (check_default_tmpl_args): Adjust for
5488         DECL_INITIALIZED_IN_CLASS_P.
5489         (instantiate_class_template): Likewise.
5490         (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
5492         * class.c (finish_struct): Constify saved_filename.
5494 2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
5496         * class.c (duplicate_tag_error): Adjust diagnostic.
5497         (finish_struct): Locally set location to start of struct.
5498         * decl.c (fixup_anonymous_aggr): Use cp_error_at.
5500 2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
5502         * decl.c (struct binding_level): Adjust class_shadowed comments
5503         to reflect reality.
5504         (push_class_level_binding): Adjust comments to reflect reality.
5505         Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
5506         Don't set TREE_VALUE on the class_shadowed list.
5508 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5510         * decl2.c (acceptable_java_type): Allow references too.
5511         * init.c (build_java_class_ref): When using the new ABI, search
5512         `class$' and have it mangled with `mangle_decl.'
5513         * mangle.c (write_java_integer_type_codes): New function.
5514         (write_builtin_type): Detect and mangle Java integer and real
5515         types.
5517 2001-01-07  Mark Mitchell  <mark@codesourcery.com>
5519         * decl2.c (grokfield): Don't accept `asm' specifiers for
5520         non-static data members.
5522 2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5524         * expr.c (cplus_expand_expr): Don't reset `target'.
5526 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5528         * cp/decl2.c (cxx_post_options): Call cpp_post_options.
5530 2001-01-05  Nathan Sidwell  <nathan@codesourcery.com>
5532         * parse.y (template_datadef): Check for error_mark_node.
5534 2001-01-05  Nathan Sidwell  <nathan@codesourcery.com>
5536         * cp-tree.def (DEFAULT_ARG): Make `x' class.
5538 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5540         * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
5541         (record_builtin_type): Make non-static.
5542         (flag_short_double): Don't declare.
5543         (init_decl_processing): Remove the creation of many tree nodes now
5544         in c_common_nodes_and_builtins.
5545         (build_void_list_node): New function.
5546         * decl2.c (flag_short_double, flag_short_wchar): Don't define.
5547         * cp-tree.h (flag_short_wchar): Don't declare.
5549 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
5551         * call.c (build_conv): Don't use build1 for USER_CONV.
5552         * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
5554 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
5556         * lex.c (lang_init): Call c_common_lang_init.
5558 2001-01-03  Nathan Sidwell  <nathan@codesourcery.com>
5560         * search.c (lookup_fnfields_here): Remove.
5561         (look_for_overrides_r): Use lookup_fnfields_1.
5562         Ignore functions from using declarations.
5564 2001-01-03  Nathan Sidwell  <nathan@codesourcery.com>
5566         Implement exceptions specifiers for implicit member functions.
5567         * cp-tree.h (merge_exceptions_specifiers): Declare new function.
5568         * method.c (synthesize_exception_spec): New function.
5569         (locate_dtor, locate_ctor, locate_copy): New functions.
5570         (implicitly_declare_fn): Generate the exception spec too.
5571         * search.c (check_final_overrider): Check artificial functions
5572         too.
5573         * typeck2.c (merge_exception_specifiers): New function.
5575 2001-01-03  Jason Merrill  <jason@redhat.com>
5577         * init.c (build_default_init): New fn.
5578         (perform_member_init): Split out from here.
5579         (build_new_1): Use it.  Simplify initialization logic.
5580         (build_vec_init): Take an array, rather than a pointer and maxindex.
5581         Speed up simple initializations.  Don't clean up if we're assigning.
5582         * cp-tree.h: Adjust.
5583         * decl2.c (do_static_initialization): Remove TREE_VEC case.
5584         * parse.y (new_initializer): Return void_zero_node for ().
5585         * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
5586         * typeck2.c (digest_init): Only complain about user-written
5587         CONSTRUCTORs.
5589 2000-12-22  Mike Stump  <mrs@wrs.com>
5591         * decl2.c: (max_tinst_depth): Increase to 50.
5593 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
5595         * class.c (invalidate_class_lookup_cache): Zero the
5596         previous_class_values.
5597         * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
5598         TREE_INT_CST_HIGH.
5599         (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
5600         * decl.c (free_bindings): New variable.
5601         (push_binding): Don't create a new binding if we have one on the
5602         free list.
5603         (pop_binding): Put old bindings on the free list.
5604         (init_decl_processing): Use size_int, not build_int_2.
5605         Register free_bindings as a GC root.
5606         (cp_make_fname_decl): Use size_int, not build_int_2.
5607         (push_inline_template_parms_recursive): Likewise.
5608         (end_template_parm_list): Likewise.
5609         (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
5610         (tsubst_template_parms): Use size_int, not build_int_2.
5611         (tsubst): Likewise.
5612         * rtti.c (get_vmi_pseudo_type_info): Likewise.
5614 2001-01-02  Richard Henderson  <rth@redhat.com>
5616         * parse.y (asm): Set ASM_INPUT_P.
5618 2001-01-02  Jason Merrill  <jason@redhat.com>
5620         * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
5621         for v3 ABI.
5623         * typeck.c (cp_truthvalue_conversion): New fn.
5624         * cvt.c (ocp_convert): Use it.
5626         * cp-tree.h: Lose c-common.c decls.
5628         * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
5629         * cvt.c (convert_to_void): Use type_unknown_p.
5631         * typeck.c (strip_all_pointer_quals): Also strip quals from
5632         pointer-to-member types.
5634         * Make-lang.in (cp/TAGS): Use --no-globals.  Ignore parse.c, and treat
5635         parse.y as C.
5637         * call.c (build_new_method_call): Do evaluate the object parameter
5638         when accessing a static member.
5639         * typeck.c (build_component_ref): Likewise.
5641 2001-01-02  Andreas Jaeger  <aj@suse.de>
5643         * decl.c (cp_missing_noreturn_ok_p): New.
5644         (init_decl_processing): Set lang_missing_noreturn_ok_p.
5646 2000-12-29  Jakub Jelinek  <jakub@redhat.com>
5648         * decl.c (init_decl_processing): Fix sign of wchar_type_node.
5650 2000-12-29  Mark Mitchell  <mark@codesourcery.com>
5652         * class.c (pushclass): Remove #if 0'd code.
5653         * cp-tree.h (overload_template_name): Remove.
5654         * decl.c (store_bindings): Simplify.
5655         (pop_from_top_level): Likewise.
5656         * pt.c (overload_template_name): Remove.
5657         (instantiate_decl): Don't call push_to_top_level if it's not
5658         needed.
5660 2000-12-28  Mark Mitchell  <mark@codesourcery.com>
5662         * pt.c (register_local_specialization): Don't return a value.
5663         (lookup_template_class): Use move-to-front heuristic when looking
5664         up template instantiations.
5665         (instantiate_decl): Only push_to_top_level when we're actually
5666         going to instantiate the template.
5668 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
5670         * search.c (binfo_for_vtable): Return least derived class, not
5671         most.  Handle secondary vtables.
5673 2000-12-22  Jason Merrill  <jason@redhat.com>
5675         * pt.c (more_specialized): Don't optimize len==0.
5676         (fn_type_unification): If we're adding the return type, increase len.
5678         * typeck.c (build_binary_op): Fix pmf comparison logic.
5680         * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
5681         DECL_STATIC_FUNCTION_P.
5683         * semantics.c (genrtl_finish_function): Don't try to jump to
5684         return_label unless it exists.
5686         In partial ordering for a call, ignore parms for which we don't have
5687         a real argument.
5688         * call.c (joust): Pass len to more_specialized.
5689         (add_template_candidate_real): Strip 'this', pass len.
5690         * pt.c (more_specialized): Pass len down.  Lose explicit_args parm.
5691         (get_bindings_order): New fn.  Pass len down.
5692         (get_bindings_real): Strip 'this', pass len.
5693         (fn_type_unification): Likewise.
5694         (type_unification_real): Succeed after checking 'len' args.
5695         (most_specialized_instantiation): Lose explicit_args parm.
5696         * class.c (resolve_address_of_overloaded_function): Strip 'this',
5697         pass len.
5699 2000-12-21  Jason Merrill  <jason@redhat.com>
5701         * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
5702         DECL_TEMPLATE_RESULT.
5704         * search.c (lookup_field_r): Call lookup_fnfields_1, not
5705         lookup_fnfields_here.
5707         * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
5709         * call.c (build_object_call): Also allow conversions that return
5710         reference to pointer to function.
5711         (add_conv_candidate): Handle totype being ref to ptr to fn.
5712         (build_field_call): Also allow members of type reference to function.
5713         Lose support for calling pointer to METHOD_TYPE fields.
5715         * error.c (dump_expr): Handle *_CAST_EXPR.
5717         * typeck2.c (build_scoped_ref): Always convert to the naming class.
5719         * tree.c (break_out_cleanups): Lose.
5720         * cp-tree.h: Remove prototype.
5721         * typeck.c (build_component_ref): Don't break_out_cleanups.
5722         (build_compound_expr): Likewise.
5723         * semantics.c (finish_expr_stmt): Likewise.
5725 2000-12-20  Richard Henderson  <rth@redhat.com>
5727         * cp-tree.h: Update declarations.
5728         * decl.c (finish_case_label): Return the new stmt node.
5729         * semantics.c (finish_goto_stmt): Likewise.
5730         (finish_expr_stmt, finish_return_stmt): Likewise.
5731         (finish_break_stmt, finish_continue_stmt): Likewise.
5732         (finish_asm_stmt): Likewise.
5733         * parse.y (already_scoped_stmt): Set STMT_LINENO.
5734         (compstmt, implicitly_scoped_stmt, stmt): Likewise.
5735         (simple_if, simple_stmt): Return the new stmt node.
5736         (save_lineno): New.
5738 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
5740         * cp-tree.h: Don't declare warn_long_long.
5742 2000-12-15  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5744         * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
5745         IS_AGGR_TYPE.
5747 2000-12-15  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5749         * pt.c (unify): Handle when both ARG and PARM are
5750         BOUND_TEMPLATE_TEMPLATE_PARM.
5752 2000-12-15  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5754         * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
5755         DECL_TEMPLATE_PARM_P.
5757 2000-12-15  Jason Merrill  <jason@redhat.com>
5759         * init.c (build_new_1): Reorganize.  Now with 100% fewer SAVE_EXPRs!
5761         * init.c (build_new_1): Don't strip quals from type.
5763         * decl.c (pushdecl): Don't check for linkage on a non-decl.
5765         * call.c (build_op_delete_call): See through ARRAY_TYPEs.
5767         * call.c (build_new_function_call): Lose space before paren in
5768         error message.
5769         (build_new_method_call): Likewise.
5771         * typeck2.c (build_m_component_ref): Propagate quals from datum.
5773 2000-12-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5775         * pt.c (check_explicit_specialization): Propagate default
5776         function arguments to explicit specializations.
5778 2000-12-13  DJ Delorie  <dj@redhat.com>
5780         * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
5781         and <? operators.
5783 2000-12-08  Jason Merrill  <jason@redhat.com>
5785         * error.c (dump_function_name): Don't let the user see __comp_ctor.
5787         Clean up copy-initialization in overloading code.
5788         * call.c (build_user_type_conversion_1): Die if we are asked to
5789         convert to the same or a base type.
5790         (implicit_conversion): Avoid doing so.  Lose reference binding code.
5791         (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
5792         direct-initialization.  Also do direct-init part of copy-init.
5793         (build_user_type_conversion): Don't provide context to convert_like.
5794         * cvt.c (ocp_convert): build_user_type_conversion will now provide
5795         the constructor call for copy-init.
5797         * pt.c (tsubst_decl): Call clone_function_decl here if this is an
5798         instantiation of a member template.
5799         (do_decl_instantiation): Not here.
5801 2000-12-07  Nathan Sidwell  <nathan@codesourcery.com>
5803         * class.c (check_field_decls): Don't special case anonymous
5804         fields in error messages.
5805         (note_name_declared_in_class): Use %D on diagnostic.
5807         * tree.c (pod_type_p): Use strip_array_types.
5808         (cp_valid_lang_attribute): Likewise.
5809         * typeck.c (cp_type_quals): Strip arrays separately, to avoid
5810         multiple evaluations.
5811         (cp_has_mutable_p): Use strip_array_types.
5813 2000-12-07  Nathan Sidwell  <nathan@codesourcery.com>
5815         * cp-tree.h (sufficient_parms_p): Declare new function.
5816         * call.c (sufficient_parms_p): New function, broken out of ...
5817         (add_function_candidate): ... here. Use it.
5818         (add_conv_candidate): Use it.
5819         * decl.c (grok_ctor_properties): Use it.
5821 2000-12-07  Jakub Jelinek  <jakub@redhat.com>
5823         * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
5825 2000-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5827         * decl2.c (lang_decode_option): Handle -Wformat-security.
5829 2000-12-06  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5831         * pt.c (verify_class_unification): New function.
5832         (get_class_bindings): Use it.
5833         (try_class_unification): Tidy.
5834         (unify): Handle when argument of a template-id is not
5835         template parameter dependent.
5836         (template_args_equal): Handle when TREE_CODE's do not match.
5838 2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
5840         * lang-specs.h (c++): When invoking the stand-alone preprocessor
5841         for -save-temps, pass all relevant -Defines to it, and then don't
5842         pass them to cc1plus.
5844 2000-12-05  Will Cohen  <wcohen@redhat.com>
5846         * decl.c (finish_case_label): Cleared
5847         more_cleanups_ok in surrounding function scopes.
5848         (define_label): Likewise.
5850 2000-12-05  Nathan Sidwell  <nathan@codesourcery.com>
5852         * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
5853         (get_matching_virtual): Remove.
5854         (look_for_overrides): Declare new function.
5855         * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
5856         DECL_VINDEX here.
5857         * class.c (check_for_override): Move base class iteration code
5858         to look_for_overrides.
5859         * search.c (next_baselink): Remove.
5860         (get_virtuals_named_this): Remove.
5861         (get_virtual_destructor): Remove.
5862         (tree_has_any_destructors_p): Remove.
5863         (struct gvnt_info): Remove.
5864         (check_final_overrider): Remove `virtual' from error messages.
5865         (get_matching_virtuals): Remove. Move functionality to ...
5866         (look_for_overrides): ... here, and ...
5867         (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
5868         to be overriding.
5870 2000-12-05  Nathan Sidwell  <nathan@codesourcery.com>
5872         * typeck.c (get_delta_difference): If via a virtual base,
5873         return zero.
5874         * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
5875         adjustment.
5877 2000-12-04  Richard Henderson  <rth@redhat.com>
5879         * error.c (dump_tree): Use output_add_string not OB_PUTS.
5881 2000-12-04  Jason Merrill  <jason@redhat.com>
5883         * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
5884         (write_builtin_type): Pass intSI_type_node and the like through
5885         type_for_mode.
5886         * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
5887         Pass intSI_type_node and the like through type_for_mode.
5888         * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
5889         * pt.c (tsubst, unify): Likewise.
5890         * tree.c (walk_tree): Likewise.
5891         * error.c (dump_type): Likewise.
5892         (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
5894         * Make-lang.in: Tweak top comment for emacs.
5895         (cp/TAGS): Restore.
5897         * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
5899         * class.c (clone_function_decl): Robustify.
5901 2000-12-04  Michael Matz  <matzmich@cs.tu-berlin.de>
5903         * decl.c (store_bindings): Only search in the non modified
5904         old_bindings for duplicates.
5906 2000-12-04  Nathan Sidwell  <nathan@codesourcery.com>
5908         * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
5909         TYPE_POLYMORPHIC_P.
5911         * typeck.c (build_static_cast): Remove unused variable.
5913 2000-12-01  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5915         * pt.c: Fix typo in comment.
5917 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5919         * decl2.c (warn_format): Remove definition.
5920         (lang_decode_option): Handle -Wformat-nonliteral,
5921         -Wno-format-extra-args and -Wno-format-y2k.  Use set_Wformat.
5923 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5925         * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
5926         (init_decl_processing): Don't create string_type_node,
5927         const_string_type_node, wint_type_node, intmax_type_node,
5928         uintmax_type_node, default_function_type, ptrdiff_type_node and
5929         unsigned_ptrdiff_type_node.  Adjust position of call to
5930         c_common_nodes_and_builtins.
5931         (identifier_global_value): New function.
5933 2000-12-01  Nathan Sidwell  <nathan@codesourcery.com>
5935         * call.c (standard_conversion): Reject pointer to member
5936         conversions from ambiguous, inaccessible or virtual bases.
5937         * typeck.c (build_static_cast): Don't check pointers to members
5938         specially.
5940 2000-11-30  Nathan Sidwell  <nathan@codesourcery.com>
5942         * method.c (do_build_copy_constructor): Preserve cv
5943         qualifications when accessing source object members.
5944         (do_build_assign_ref): Likewise. Remove separate diagnostics for
5945         unnamed fields.
5947 2000-11-30  Nathan Sidwell  <nathan@codesourcery.com>
5949         * method.c (do_build_assign_ref): Construct appropriately
5950         CV-qualified base reference. Don't allow const casts in base
5951         conversion.
5953 2000-11-30  Nathan Sidwell  <nathan@codesourcery.com>
5955         * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
5956         incomplete return type.
5958 2000-11-28  Nathan Sidwell  <nathan@codesourcery.com>
5960         * parse.y (base_class.1): Produce a _TYPE not a _DECL.
5961         * semantics.c (finish_base_specifier): Accept a _TYPE not a
5962         _DECL.
5964 2000-11-28  Nathan Sidwell  <nathan@codesourcery.com>
5966         * spew.c (yyerror): Cope if yylval.ttype is NULL.
5968 2000-11-28  Nathan Sidwell  <nathan@codesourcery.com>
5970         * decl.c (grokdeclarator): Diagnose undefined template contexts.
5972 2000-11-28  Nathan Sidwell  <nathan@codesourcery.com>
5974         * decl.c (grokdeclarator): Do type access control on friend
5975         class.
5977 2000-11-27  Nathan Sidwell  <nathan@codesourcery.com>
5979         * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
5980         bison parser ickiness.
5981         * pt.c (tsubst_friend_function): Enter namespace scope when
5982         tsubsting the function name.
5983         * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
5985 2000-11-27  Nathan Sidwell  <nathan@codesourcery.com>
5987         * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
5988         * cvt.c (cp_convert_to_pointer): Add force parameter.
5989         Allow conversions via virtual base if forced.
5990         (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
5991         (ocp_convert): Likewise.
5992         * search.c (binfo_from_vbase): Return the virtual base's binfo.
5993         * typeck.c (get_delta_difference): Adjust handling of virtual
5994         bases.
5996 2000-11-26  Mark Mitchell  <mark@codesourcery.com>
5998         * tree.c (struct list_hash): Remove.
5999         (list_hash_table): Make it be an htab.
6000         (struct list_proxy): New type.
6001         (list_hash_eq): New function.
6002         (list_hash_pieces): Renamed from ...
6003         (list_hash): ... this.
6004         (list_hash_lookup): Remove.
6005         (list_hash_add): Remove.
6006         (hash_tree_cons): Use the generic hashtable.
6007         (mark_list_hash): Remove.
6008         (init_tree): Create the hashtable.
6010 2000-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
6012         * method.c (build_mangled_C9x_name): Rename to
6013         build_mangled_C99_name.  Change C9X references in comments to
6014         refer to C99.
6016 2000-11-24  Nathan Sidwell  <nathan@codesourcery.com>
6018         * parse.y (unary_expr): Move VA_ARG from here ...
6019         (primary): ... to here.
6021 2000-11-24  Nathan Sidwell  <nathan@codesourcery.com>
6023         * semantics.c (finish_id_expr): If type is error_mark, return
6024         error_mark.
6026 2000-11-23  Nathan Sidwell  <nathan@codesourcery.com>
6028         * pt.c (lookup_template_class): Simplify loop exit constructs.
6029         Cope when there is no partial instantiation of a template
6030         template member.
6032 Thu Nov 23 02:16:47 2000  J"orn Rennecke <amylaar@redhat.com>
6034         * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
6036 2000-11-22  Mark Mitchell  <mark@codesourcery.com>
6038         * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
6039         prefix.
6041         * pt.c (do_decl_instantiate): Explicitly clone constructors and
6042         destructors that haven't already been cloned.
6044 2000-11-20  Richard Henderson  <rth@redhat.com>
6046         * parse.y (yyparse_1): Rename the parser entry point.
6048 2000-11-20  Alex Samuel  <samuel@codesourcery.com>
6050         * mangle.c (write_name): Use <unscoped-name> for names directly in
6051         function scope.
6052         (write_unscoped_name): Accept names directly in function scope.
6054 2000-11-20  Nathan Sidwell  <nathan@codesourcery.com>
6056         * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
6057         * parse.y (extdef): Add EXPORT reduction.
6058         * spew.c (yylex): Don't skip export here.
6060 2000-11-19  Mark Mitchell  <mark@codesourcery.com>
6062         * decl.c (init_decl_processing): Correct name of pure virtual
6063         function under the new ABI.
6064         * rtti.c (throw_bad_cast): Likewise, for bad cast function.
6065         (throw_bad_typeid): Likewise for bad typeid function.
6067 2000-11-18  Mark Mitchell  <mark@codesourcery.com>
6069         * decl.c (grokparms): Don't even function types of `void' type,
6070         either.
6071         * mangle.c (write_type): Don't crash when confronted with the
6072         error_mark_node.
6074         * decl.c (grokparms): Don't create parameters of `void' type.
6076 2000-11-17  Zack Weinberg  <zack@wolery.stanford.edu>
6078         * lex.c (mark_impl_file_chain): Delete.
6079         (init_parse): Remove call to ggc_add_string_root.  No need to
6080         ggc_strdup a string constant.  Do not add impl_file_chain to GC
6081         roots.
6082         (handle_pragma_implementation): No need to ggc_strdup main_filename.
6084 2000-11-17  Nathan Sidwell  <nathan@codesourcery.com>
6086         * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
6088 2000-11-17  Nathan Sidwell  <nathan@codesourcery.com>
6090         * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
6091         * decl.c (grokdeclarator): Don't reject void parms here.
6092         (require_complete_types_for_parms): Simplify, use
6093         complete_type_or_else.
6094         (grokparms): Remove bitrot. Remove funcdef parm.
6095         Deal with ellipsis parm lists here.
6096         * semantics.c (finish_parmlist): Don't append void_list_node
6097         here. Set PARMLIST_ELLIPSIS_P.
6099 2000-11-17  Nathan Sidwell  <nathan@codesourcery.com>
6101         * typeck2.c (incomplete_type_error): Reorganise to avoid
6102         excessive diagnostics.
6104 2000-11-16  Zack Weinberg  <zack@wolery.stanford.edu>
6106         * lex.c (struct impl_files, internal_filename): Constify a char *.
6108 2000-11-16  Mark Mitchell  <mark@codesourcery.com>
6110         * mangle.c (write_special_name_constructor): Don't generate
6111         assembler junk when confronted with an old-style constructor.
6112         (write_special_name_destructor): Likewise.
6113         (mangle_decl_string): Do it here instead.
6115 2000-11-16  Nathan Sidwell  <nathan@codesourcery.com>
6117         * call.c (op_error): Make error messages clearer.
6119 2000-11-15  Mark Mitchell  <mark@codesourcery.com>
6121         * decl.c (wrapup_globals_for_namespace): Don't mark things
6122         TREE_ASM_WRITTEN when they're not.
6124 2000-11-15  Jason Merrill  <jason@redhat.com>
6126         * typeck2.c (friendly_abort): Uncount the error before handing
6127         off to fancy_abort.
6129 2000-11-15  Nathan Sidwell  <nathan@codesourcery.com>
6131         * typeck.c (lookup_anon_field): Cope with qv qualifiers.
6133 2000-11-14  Mark Mitchell  <mark@codesourcery.com>
6135         * class.c (build_vtbl_initializer): Fix typo in comment.
6136         * typeck.c (expr_sizeof): Don't crash on errors.
6138 2000-11-14  Jim Wilson  <wilson@redhat.com>
6140         * lang-specs.h: Add %2 after %(cc1_options).
6142 2000-11-14  Richard Henderson  <rth@redhat.com>
6144         * typeck.c (c_sizeof): Be strict about casting result value
6145         back to c_size_type_node.
6146         (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
6148 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
6150         * typeck.c (build_unary_op): Use boolean_increment from
6151         c-common.c, moving the relevant code there.
6153 2000-11-11  Jason Merrill  <jason@redhat.com>
6155         * typeck.c (mark_addressable): Don't call put_var_into_stack.
6157         * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
6158         in inlines.
6160 2000-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6162         * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
6163         * lex.c (copy_lang_decl): Likewise.
6165 2000-11-09  Mark Mitchell  <mark@codesourcery.com>
6167         * dump.c (cp_dump_tree): Don't dump function bodies here.
6169         * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
6170         (dump.o): Update dependency list.
6171         * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
6172         (flag_dump_translation_unit): Likewise.
6173         (CP_TYPE_QUALS): Adjust definition.
6174         (DECL_C_BIT_FIELD): Remove.
6175         (SET_DECL_C_BIT_FIELD): Likewise.
6176         (CLEAR_DECL_C_BIT_FIELD): Likewise.
6177         (add_maybe_template): Likewise.
6178         (strip_array_types): Likewise.
6179         (dump_node_to_file): Likewise.
6180         (cp_dump_tree): New function.
6181         * decl.c (init_decl_processing): Set lang_dump_tree.
6182         * decl2.c (flag_dump_translation_unit): Remove.
6183         * dump.c: Move most of it to ../c-dump.c.
6184         (cp_dump_tree): New function.
6185         * pt.c (add_maybe_template): Remove.
6186         * typeck.c (strip_array_types): Likewise.
6188 2000-11-07  Eric Christopher  <echristo@redhat.com>
6190         * decl.c (init_decl_processing): Change definition of
6191         __wchar_t to wchar_t.  Remove artificial declaration of
6192         wchar_t.
6193         * lex.c: Change instances of __wchar_t to wchar_t.
6195 2000-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6197         * lex.c (do_identifier): Don't lookup_name for operators.
6198         * parse.y (operator): Save looking_for_typename.
6199         (unoperator): Restore it.
6200         * spew.c (frob_opname): Use nth_token for lookahead.
6202 2000-11-08  Nathan Sidwell  <nathan@codesourcery.com>
6204         * decl.c (grok_op_properties): Always use coerce_new_type and
6205         coerce_delete_type.
6206         * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
6207         exception specification. Tidy up.
6208         (coerce_delete_type): Preserve exception specification. Tidy up.
6210 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6212         * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
6213         (push_binding_level), error.c (cp_tree_printer), pt.c
6214         (process_partial_specialization, tsubst_template_arg_vector),
6215         search.c (lookup_member): Use memset () instead of bzero ().
6217 2000-11-07  Nathan Sidwell  <nathan@codesourcery.com>
6219         * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
6221 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6223         * Make-lang.in (c++.distdir): Remove.
6225 2000-11-04  Mark Mitchell  <mark@codesourcery.com>
6227         * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
6228         declarations from different namespaces to be combined.
6230 2000-11-03  Zack Weinberg  <zack@wolery.stanford.edu>
6232         * decl.c: Include tm_p.h.
6234 2000-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
6236         * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
6238 2000-11-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6240         * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
6241         (build_overload_value), repo.c (open_repo_file), xref.c
6242         (open_xref_file): Use strchr () and strrchr () instead of index ()
6243         and rindex ().
6245 2000-11-01  Bernd Schmidt  <bernds@redhat.co.uk>
6247         * call.c (build_over_call): Call fold on the CALL_EXPR.
6249 2000-11-01  Gabriel Dos Reis  <gdr@codesourcery.com>
6251         * error.c (dump_template_decl): Separate template hearders with
6252         space not comma.
6254 2000-10-31  Gabriel Dos Reis  <gdr@codesourcery.com>
6256         * error.c: Move TFF_ macros into cp-tree.h.  Throughout, replace
6257         TS_* flags with corresponding TFF_*.  Adjust prototypes of
6258         functions (which used to take a tree_string_flags) to take an int.
6260         * cp-tree.h (enum tree_string_flags): Remove
6261         (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
6262         TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
6263         TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
6264         TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
6265         TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
6266         TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
6267         (type_as_string, decl_as_string, expr_as_string,
6268         context_as_string): Adjust prototype.
6270         * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
6271         instead of TS_PLAIN.
6273         * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
6274         instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
6275         plain `0'.
6277 2000-10-30  Mark Mitchell  <mark@codesourcery.com>
6279         * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
6280         (linkage_kind): New enumeration.
6281         (decl_linkage): New function.
6282         * decl2.c (comdat_linkage): Extend comment.
6283         * error.c (dump_function_decl): Print the arguments used to
6284         instantiate a template, even when not printing the type of the
6285         function.
6286         * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
6287         not TREE_PUBLIC, to test for external linkage.
6288         * tree.c (decl_linkage): New function.
6290 2000-10-28  Mark Mitchell  <mark@codesourcery.com>
6292         * pt.c (instantiate_decl): Always instantiate static data members
6293         initialized in-class.
6295 2000-10-27  Zack Weinberg  <zack@wolery.stanford.edu>
6297         * Make-lang.in: Move all build rules here from Makefile.in,
6298         adapt to new context.  Wrap all rules that change the current
6299         directory in parentheses.  Expunge all references to $(P).
6300         When one command depends on another and they're run all at
6301         once, use && to separate them, not ;.  Add OUTPUT_OPTION to
6302         all object-file generation rules.  Delete obsolete variables.
6304         * Makefile.in: Delete.
6305         * config-lang.in: Delete outputs= line.
6307 2000-10-26  Gabriel Dos Reis  <gdr@codesourcery.com>
6309         * error.c (dump_function_decl): Print no space between
6310         `ptr-operator' the `type-specifier' of the return type.
6311         (dump_type_prefix): Make sure we put space at the appropriate
6312         place.
6314 2000-10-23  Jason Merrill  <jason@redhat.com>
6316         * call.c (equal_functions): Also call decls_match for extern "C" fns.
6318 2000-10-22  Jason Merrill  <jason@redhat.com>
6320         * call.c (build_conditional_expr): Use ocp_convert to force
6321         rvalue conversion.
6323 2000-10-22  Mark Mitchell  <mark@codesourcery.com>
6325         * call.c (standard_conversion): Use RVALUE_CONVs for all
6326         expressions that satisfy lvalue_p, not just those that satisfy
6327         real_lvalue_p.
6329         * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
6331         * typeck.c (c_sizeof): Return an expression of `size_t' type,
6332         not one with TYPE_IS_SIZETYPE set.
6333         (dubious_conversion_warnings): Remove special-case code.
6335 2000-10-21  Geoffrey Keating  <geoffk@cygnus.com>
6337         * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
6338         * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
6339         (dump_type_prefix): Print vector-of-int as 'int vector'.
6340         (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
6341         * tree.c (walk_tree): Handle VECTOR_TYPE.
6343         * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
6345 2000-10-21  Jason Merrill  <jason@redhat.com>
6347         * parse.y (operator): Set got_object from got_scope.
6348         Set looking_for_typename.
6349         * decl.c (lookup_name_real): Clear val after setting from_obj.
6350         Reorganize diagnostic.
6352 2000-10-20  Jason Merrill  <jason@redhat.com>
6354         * tree.c (walk_tree): Don't walk into default args.
6356         * error.c (dump_expr): Use host_integerp.
6358 2000-10-20  David Edelsohn  <edelsohn@gnu.org>
6360         * typeck2.c (abstract_virtuals_error): Use "because" instead of
6361         "since" in error message.
6363 Fri Oct 20 13:54:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6365         * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
6367 2000-10-20  Jeffrey Oldham  <oldham@codesourcery.com>
6369         * decl.c (revert_static_member_fn): Fixed typo.
6371 2000-10-19  Mark Mitchell  <mark@codesourcery.com>
6373         * class.c (subobject_offset_fn): New type.
6374         (dfs_record_base_offsets): Remove.
6375         (record_base_offsets): Likewise.
6376         (dfs_search_base_offsets): Likewise.
6377         (record_subobject_offset): New function.
6378         (check_subobject_offset): Likewise.
6379         (walk_subobject_offsets): Likewise.
6380         (record_subobject_offsets): Likewise.
6381         (layout_conflict_p): Reimplement.
6382         (layout_nonempty_base_or_field): Correct handling of type
6383         conflicts during layout.
6384         (layout_empty_base): Likewise.
6385         (build_base_field): Adjust to handle new representation of empty
6386         base offset table.
6387         (build_base_fields): Likewise.
6388         (layout_virtual_bases): Likewise.
6389         (splay_tree_compare_integer_csts): New function.
6390         (layout_class_type): Use a splay_tree, rather than a varray, to
6391         represent the offsets of empty bases.
6393         * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
6394         * decl.c (select_decl): Don't return declarations that are
6395         DECL_ANTICIPATED.
6397 2000-10-18  Mark Mitchell  <mark@codesourcery.com>
6399         * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
6400         (fake_std_node): New macro.
6401         * decl.c (in_std): Rename to ...
6402         (in_fake_std): ... this.
6403         (flag_no_builtin): Remove.
6404         (flag_no_nonansi_builtin): Likewise.
6405         (walk_namespaces_r): Use fake_std_node.
6406         (push_namespace): Use std_identifier.
6407         (pop_namespace): Use in_fake_std.
6408         (lookup_name_real): Use fake_std_node.
6409         (init_decl_processing): When -fhonor-std, create the `std'
6410         namespace.  Don't create a dummy fake_std_node in that case.
6411         Adjust call to c_common_nodes_and_builtins.  Use std_identifier.
6412         (builtin_function): Put builtins whose names don't begin
6413         with `_' in the std namespace.
6414         * decl2.c (flag_no_builtin): Remove.
6415         (flag_no_nonansi_builtin): Likewise.
6416         (set_decl_namespace): Use fake_std_node.
6417         (validate_nonmember_using_decl): Likewise.
6418         (do_using_directive): Likewise.
6419         (handle_class_head): Likewise.
6420         * dump.c (dequeue_and_dump): Likewise.
6421         * except.c (init_exception_processing): Use std_identifier.
6422         * init.c (build_member_call): Use fake_std_node.
6423         * rtti.c (init_rtti_processing): Use std_identifier.
6425 2000-10-17  Mark Mitchell  <mark@codesourcery.com>
6427         * cp-tree.h (back_end_hook): Remove declaration.
6428         * decl2.c (back_end_hook): Remove definition.
6430         * dump.c (dequeue_and_dump): Dump TREE_USED.
6432 Tue Oct 17 20:19:06 2000  Brad Lucier <lucier@math.purdue.edu>
6434         * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
6436 2000-10-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6438         * decl.c (WINT_TYPE): Define.
6439         (init_decl_processing): Create types unsigned_ptrdiff_type_node,
6440         c_size_type_node, signed_size_type_node and wint_type_node.
6442 2000-10-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6444         * decl2.c (warn_missing_format_attribute): New variable.
6445         (lang_decode_option): Decode -Wmissing-format-attribute.
6447 2000-10-16  Mark Mitchell  <mark@codesourcery.com>
6449         * typeck.c (qualify_type): Remove.
6450         (composite_pointer_type): Fix handling of conversions to `cv void*'.
6452 2000-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6454         * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
6456 2000-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6458         * Makefile.in (parse.c, parse.h): Create atomically.
6460 2000-10-12  Mark Mitchell  <mark@codesourcery.com>
6462         * class.c (current_obstack): Remove.
6463         * decl.c (ggc_p): Remove.
6464         (start_decl): Don't use decl_tree_cons.
6465         (grokdeclarator): Don't use build_decl_list.
6466         (start_function): Don't use decl_tree_cons.
6467         (finish_function): Don't mess with obstacks.
6468         * decl2.c (grok_x_components): Don't use build_decl_list.
6469         * lex.c (make_call_declarator): Don't call decl_tree_cons.
6470         (implicitly_declare_fn): Don't call build_decl_list.
6471         * parse.y (frob_specs): Don't call build_decl_list or
6472         decl_tree_cons.
6473         (expr_or_declarator_intern): Don't call decl_tree_cons.
6474         (primary): Don't call build_decl_list.
6475         (fcast_or_absdcl): Likewise.
6476         (typed_declspecs): Don't call decl_tree_cons.
6477         (reserved_declspecs): Don't call build_decl_list.
6478         (declmods): Likewise.
6479         (reserved_typespecquals): Likewise.
6480         (aggr): Likewise.
6481         (new_type_id): Likewise.
6482         (cv_qualifiers): Likewise.
6483         (after_type_declarator_intern): Likewise.
6484         (notype_declarator_intern): Likewise.
6485         (absdcl_intern): Likewise.
6486         (named_parm): Likewise.
6487         * pt.c (most_specialized_class): Likewise.
6488         * repo.c (temporary_obstack): Make it a structure, not a pointer.
6489         (init_repo): Initialize it.
6490         * search.c (current_obstack): Remove.
6491         * typeck2.c (add_exception_specifier): Don't call build_decl_list.
6493 2000-10-09  Richard Henderson  <rth@cygnus.com>
6495         * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
6496         (c++ language support bits for libgcc): Remove.
6497         (c++.clean): Remove cplib2.txt cleanup.
6498         * config-lang.in (headers, lib2funcs): Remove.
6500         * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
6501         * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
6502         * inc/cxxabi.h, inc/exception, inc/new: Remove files.
6503         * inc/new.h, inc/typeinfo: Remove files.
6505 2000-10-08  Joseph S. Myers  <jsm28@cam.ac.uk>
6507         * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
6508         defined.
6509         (init_decl_processing): Initialize intmax_type_node and
6510         uintmax_type_node.
6512 2000-10-06  Richard Henderson  <rth@cygnus.com>
6514         * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
6515         (original_result_rtx): Remove.
6516         * decl.c (save_function_data): Don't clear x_result_rtx.
6517         (mark_lang_function): Don't mark it either.
6518         * expr.c (fixup_result_decl): Remove.
6519         * semantics.c (genrtl_named_return_value): Frob the return decl
6520         before calling emit_local_var.
6521         (genrtl_finish_function): Don't call fixup_result_decl.
6522         Always emit the jump to return_label.
6524 2000-10-06  Nathan Sidwell  <nathan@codesourcery.com>
6526         * pt.c (lookup_template_class): Set current access for enum.
6527         (tsubst_enum): Set file & line for enum decl.
6529         * spew.c (yylex): Remove unused variable.
6531 2000-10-05  Richard Henderson  <rth@cygnus.com>
6533         * semantics.c (genrtl_finish_function): Don't init or check
6534         can_reach_end; remove noreturn and return value checks.
6536 2000-10-05  Tom Tromey  <tromey@cygnus.com>
6538         * init.c (build_java_class_ref): Use `build_static_name' with a
6539         suffix, not a prefix, to build the class object's name.
6541 2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
6543         * cp-tree.h (access_kind): Fix comment typo.
6544         * decl2.c (grokfield): Fix diagnostic typo.
6545         * semantics.c (finish_template_type): Fix comment typo.
6546         (finish_qualified_object_call_expr): Likewise.
6548 2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
6550         * pt.c (tsubst_expr, DECL_STMT case): Don't process if
6551         tsubsting fails.
6553 2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
6555         * spew.c (frob_id): New static function.
6556         (frob_opname): Use it.
6557         (yylex): Use it.
6559 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
6561         * decl.c (lang_mark_false_label_stack): Remove.
6562         * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
6564 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
6566         * gxxint.texi: Use @email for formatting email addresses.
6568 2000-09-29  Gabriel Dos Reis  <gdr@codesourcery.com>
6570         * error.c: Remove direct obstack manipulation.  Replace with
6571         output_buffer-based formatting.  Adjust calls to removed macros.
6572         (obstack_chunk_alloc, obstack_chunk_free): Remove.
6573         (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
6574         OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
6576 2000-09-24  Mark Mitchell  <mark@codesourcery.com>
6578         * ir.texi: Move to ../c-tree.texi.
6580 2000-09-20  Jason Merrill  <jason@redhat.com>
6582         * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
6584 2000-09-21  Andreas Jaeger  <aj@suse.de>
6586         * errfn.c: Move declaration of cp_printer and cp_printers to ...
6587         * cp-tree.h: ... here.
6589         * error.c: Remove declaration of cp_printer.
6591 2000-09-20  Mark Mitchell  <mark@codesourcery.com>
6593         * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
6595 2000-09-20  Hans-Peter Nilsson  <hp@axis.com>
6597         * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
6598         users.
6600 2000-09-18  Mark Mitchell  <mark@codesourcery.com>
6602         * decl.c (start_function): Robustify.
6604 2000-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6606         * cp-tree.h (check_function_format): Accept a `status' parameter.
6608         * call.c, typeck.c: Updates calls to `check_function_format'.
6610 2000-09-17  Geoffrey Keating  <geoffk@cygnus.com>
6612         * decl2.c (handle_class_head): Always push some scope even
6613         in the error case.
6615 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
6617         * cp-tree.h (struct cp_language_function): Remove
6618         x_scope_stmt_stack and name_declared.
6619         (current_scope_stmt_stack): Remove.
6620         (function_name_declared_p): New macro.
6621         (struct lang_decl_flags): Use c_lang_decl as a base class.
6622         (context): Remove.
6623         (struct lang_decl): Replace saved_tree with context.
6624         (DECL_FRIEND_CONTEXT): Adjust accordingly.
6625         (SET_DECL_FRIEND_CONTEXT): Likewise.
6626         (DECL_VIRTUAL_CONTEXT): Likewise.
6627         (DECL_SAVED_TREE): Remove.
6628         (C_DECLARED_LABEL_FLAG): Likewise.
6629         (cplus_expand_expr_stmt): Don't declare.
6630         (add_decl_stmt): Likewise.
6631         (add_scope_stmt): Likewise.
6632         * decl.c (mark_stmt_tree): Remove.
6633         (case_compare): Likewise.
6634         (finish_case_label): Use c_add_case_label.
6635         (init_decl_processing): Set more language-specific hooks.
6636         (build_enumerator): Fix typo in comment.
6637         (cplus_expand_expr_stmt): Remove.
6638         (mark_lang_function): Use mark_c_language_function.
6639         (lang_mark_tree): Use c_mark_lang_decl.
6640         * decl2.c: Change order of inclusion.
6641         * except.c: Likewise.
6642         * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR.  Fall
6643         back on c_expand_expr.
6644         * friend.c: Include expr.h.
6645         * init.c: Change order of inclusion.
6646         * Makefile.in: Update dependencies.
6647         * lex.h (free_lang_decl_chain): Remove.
6648         * optimize.c (maybe_clone_body): Use function_name_declared_p.
6649         * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
6650         it doesn't exist.
6651         (instantiate_decl): Use function_name_declared_p.
6652         * semantics.c (lang_expand_expr_stmt): Remove.
6653         (set_current_function_name_declared): Likewise.
6654         (current_function_name_declared): Likewise.
6655         (begin_compound_stmt): Use function_name_declared_p.
6656         (add_decl_stmt): Remove.
6657         (setup_vtbl_ptr): Use function_name_declared_p.
6658         (add_scope_stmt): Remove.
6659         (current_scope_stmt_stack): New function.
6660         (cp_expand_stmt): Don't handle SCOPE_STMTs.
6661         (expand_body): Use function_name_declared_p.
6662         * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
6663         * typeck.c: Change order of includes.
6664         (convert_sequence): Remove.
6666 2000-09-14  Joseph S. Myers  <jsm28@cam.ac.uk>
6668         * lex.c (reswords): Add _Complex.
6670 Thu Sep 14 12:10:45 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6672         * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
6674 2000-09-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
6676         * init.c (begin_init_stmts): Don't use // comments.
6678 2000-09-12  Jason Merrill  <jason@redhat.com>
6680         * decl.c (maybe_deduce_size_from_array_init): Set do_default for
6681         all non-extern arrays.
6683         * decl.c (grokdeclarator): Complain about 'friend T' for implicit
6684         typenames, too.  Downgrade complaint to pedwarn.
6685         (xref_tag): Warn about surprising behavior of 'friend struct T'.
6686         * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
6687         'class This::Inherited'.
6689 2000-09-12  Mark Mitchell  <mark@codesourcery.com>
6691         * decl.c (finish_case_label): Given the LABEL_DECL a
6692         DECL_CONTEXT.
6694 2000-09-12  Gabriel Dos Reis  <gdr@codesourcery.com>
6696         * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
6697         TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
6698         TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
6699         TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
6700         TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
6701         New macros.
6702         (sorry_for_unsupported_tree, print_scope_operator,
6703         print_left_paren, print_right_paren, print_left_bracket,
6704         print_right_bracket, print_whitespace): Likewise.
6705         (aggr_variety): Rename to class_key_or_enum.
6706         (print_type): Rename to print_type_id.
6707         (print_type_specifier_seq, print_simple_type_specifier,
6708         print_elaborated_type_specifier,
6709         print_rest_of_abstract_declarator,
6710         print_parameter_declaration_clause, print_exception_specification,
6711         print_nested_name_specifier, print_template_id,
6712         typedef_original_name,  print_template_argument_list_start,
6713         print_template_argument_list_end): New functions.
6715 2000-09-11  Gabriel Dos Reis  <gdr@codesourcery.com>
6717         * ir.texi: Add more documentation.
6719 2000-09-11  Mark Mitchell  <mark@codesourcery.com>
6721         * cp-tree.h (struct saved_scope): Remove x_function_parms.
6722         (current_function_parms): Don't define.
6723         (struct cp_language_function): Remove parms_stored.
6724         (current_function_just_assigned_this): Don't define.
6725         (current_function_parms_stored): Likewise.
6726         (static_ctors): Declare.
6727         (static_dtors): Likewise.
6728         (SF_EXPAND): Don't define.
6729         (expand_start_early_try_stmts): Remove declaration.
6730         (store_parm_decls): Likewise.
6731         * decl.c (static_ctors): Don't declare.
6732         (static_dtors): Likewise.
6733         (struct binding_level): Remove this_block.
6734         (poplevel): Remove dead code.
6735         (set_block): Likewise.
6736         (mark_binding_level): Don't mark this_block.
6737         (mark_saved_scope): Don't mark x_function_parms.
6738         (init_decl_processing): Don't add current_function_parms as a GC
6739         root.
6740         (check_function_type): Change prototype.
6741         (start_function): Remove RTL-generation code.
6742         (expand_start_early_try_stmts): Remove.
6743         (store_parm_decls): Give it internal linkage.  Remove
6744         RTL-generation code.
6745         (finish_function): Remove RTL-generation code.
6746         * decl2.c (static_ctors): Fix formatting.
6747         (static_dtors): Likewise.
6748         * method.c (use_thunk): Don't call store_parm_decls.
6749         (synthesize_method): Likewise.
6750         * optimize.c (maybe_clone_body): Likewise.
6751         * parse.y (fn.def2): Likewise.
6752         (.set_base_init): Likewise.
6753         (nodecls): Likewise.
6754         * pt.c (instantiate_decl): Likewise.
6755         * rtti.c (synthesize_tinfo_fn): Likewise.
6756         * semantics.c (genrtl_try_block): Simplify.
6757         (expand_body): Use genrtl_start_function and
6758         genrtl_finish_function.
6759         (genrtl_start_function): New function.
6760         (genrtl_finish_function): Likewise.
6762 2000-09-11  Nathan Sidwell  <nathan@codesourcery.com>
6764         * error.c (cp_tree_printer, case 'P'): Append break.
6766 2000-09-11  Nathan Sidwell  <nathan@codesourcery.com>
6768         * cp-tree.h (frob_opname): Declare.
6769         * parse.y (saved_scopes): New static variable.
6770         (cp_parse_init): Adjust.
6771         (do_id): If lastiddecl is NULL, do do_identifier.
6772         (operator): Save scope information.
6773         (unoperator): New reduction. Restore scope information.
6774         (operator_name): Append unoperator. Call frob_opname.
6775         * spew.c (frob_opname): Define.
6777 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
6779         * decl.c, rtti.c: Include defaults.h if not already included.
6780         Don't define the *_TYPE_SIZE macros.
6782 2000-09-09  Mark Mitchell  <mark@codesourcery.com>
6784         * cp-tree.h (push_switch): Change prototype.
6785         (check_cp_case_value): Remove declaration.
6786         (decl_constant_value): Likewise.
6787         * decl.c (struct cp_switch): Add switch_stmt and cases.
6788         (case_compare): New function.
6789         (push_switch): Set switch_stmt.  Initialize cases.
6790         (pop_switch): Clean up cases.
6791         (define_case_label): Rename to ...
6792         (finish_case_label): ... this.  Do semantic analysis for case
6793         labels here.
6794         (start_function): Correct comment.
6795         * decl2.c (check_cp_case_value): Remove.
6796         * expr.c (do_case): Remove.
6797         * pt.c (tsubst_expr): Adjust call to finish_case_label.
6798         * semantics.c (genrtl_do_poplevel): Remove declaration.
6799         (RECHAIN_STMTS): Remove.
6800         (finish_break_stmt): Use build_break_stmt.
6801         (finish_continue_stmt): Use build_continue_stmt.
6802         (finish_switch_cond): Adjust condition here, rater than in
6803         c_expand_start_case.
6804         (finish_case_label): Remove.
6805         * typeck.c (c_expand_return): Remove.
6806         (c_expand_start_case): Likewise.
6808 2000-09-07  Gabriel Dos Reis  <gdr@codesourcery.com>
6810         * ir.texi: Document type nodes.
6812 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
6814         * cp-tree.h (init_cp_semantics): Declare.
6815         (genrtl_try_block): Don't declare.
6816         (genrtl_handler): Likewise.
6817         (genrtl_catch_block): Likewise.
6818         (genrtl_ctor_stmt): Likewise.
6819         (genrtl_subobject): Likewise.
6820         (genrtl_do_poplevel): Likewise.
6821         (genrtl_named_return_value): Likewise.
6822         * lex.c (init_parse): Call init_cp_semantics.
6823         * semantics.c (genrtl_try_block): Give it internal linkage.
6824         (genrtl_handler): Likewise.
6825         (genrtl_catch_block): Likewise.
6826         (genrtl_ctor_stmt): Likewise.
6827         (genrtl_subobject): Likewise.
6828         (genrtl_do_poplevel): Likewise.
6829         (genrtl_named_return_value): Likewise.
6830         (lang_expand_stmt): Rename to ...
6831         (cp_expand_stmt): ... this.  Only handle C++-specific nodes.
6832         (init_cp_semantics): Define.
6834         * decl.c (initialize_local_var): Remove RTL-generating code.
6835         * semantics.c (genrtl_try_block): Fix formatting.
6837         Move statement-tree facilities from C++ to C front-end.
6838         * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
6839         (void_zero_node): Remove.
6840         (stmt_tree): Likewise.
6841         (scope_chain): Adjust.
6842         (language_function): Rename to cp_language_function.
6843         (cp_function_chain): Adjust.
6844         (current_stmt_tree): Remove.
6845         (last_tree): Likewise.
6846         (last_expr_type): Likewise.
6847         (struct lang_decl): Adjust.
6848         (STMT_IS_FULL_EXPR_P): Remove.
6849         (add_tree): Remove.
6850         (begin_stmt_tree): Likewise.
6851         (finish_stmt_tree): Likewise.
6852         (walk_tree_fn): Likewise.
6853         (walk_stmt_tree): Likewise.
6854         * class.c (finish_struct): Replace use of add_tree with add_stmt.
6855         * decl.c (mark_stmt_tree): Adjust type.
6856         (init_decl_processing): Don't build void_zero_node.
6857         (initialize_local_var): Adjust usage of current_stmt_tree.
6858         (finish_enum): Use add_stmt, not add_tree.
6859         (save_function_data): Adjust use of language_function.
6860         (finish_constructor_body): Use add_stmt, not add_tree.
6861         (finish_destructor_body): Likewise.
6862         (push_cp_function_context): Adjust use of language_function.
6863         (pop_cp_function_context): Likewise.
6864         (mark_lang_function): Likewise.
6865         (mark_cp_function_context): Likewise.
6866         * init.c (build_aggr_init): Adjust use of current_stmt_tree.
6867         (build_vec_init): Likewise.
6868         * semantics.c (SET_LAST_STMT): Remove.
6869         (RECHAIN_STMTS): Don't use it.
6870         (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
6871         (current_stmt_tree): Define.
6872         (add_tree): Remove.
6873         (finish_goto_stmt): Use add_stmt, not add_tree.
6874         (finish_expr_stmt): Likewise.
6875         (begin_if_stmt): Likewise.
6876         (finish_then_clause): Likewise.
6877         (begin_while_stmt): Likewise.
6878         (begin_do_stmt): Likewise.
6879         (finish_return_stmt): Likewise.
6880         (begin_for_stmt): Likewise.
6881         (finish_break_stmt): Likewise.
6882         (finish_continue_stmt): Likewise.
6883         (begin_switch_stmt): Likewise.
6884         (finish_case_label): Likewise.
6885         (begin_try_block): Likewise.
6886         (begin_function_try_block): Likewise.
6887         (begin_handler): Likewise.
6888         (begin_catch_block): Likewise.
6889         (begin_compound_stmt): Likewise.
6890         (begin_asm_stmt): Likewise.
6891         (finish_asm_stmt): Likewise.
6892         (finish_label_stmt): Likewise.
6893         (add_decl_stmt): Likewise.
6894         (finish_subobject): Likewise.
6895         (finish_decl_cleanup): Likewise.
6896         (finish_named_return_value): Likewise.
6897         (setup_vtbl_ptr): Likewise.
6898         (add_scope_stmt): Likewise.
6899         (finish_stmt_expr): Likewise.
6900         (prune_unused_decls): Remove.
6901         (begin_stmt_tree): Likewise.
6902         (finish_stmt_tree): Likewise.
6903         (prep_stmt): Adjust use of current_stmt_tree.
6904         (lang_expand_stmt): Likewise.
6905         * tree.c (statement_code_p): Remove.
6906         (cp_statement_code_p): New function.
6907         (walk_stmt_tree): Remove.
6908         (init_tree): Set lang_statement_code_p.
6910 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
6912         Integrated preprocessor.
6914         * Make-lang.in, Makefile.in: Remove all references to input.c,
6915         gxx.gperf, and hash.h.  Add ../c-lex.o to C_OBJS.
6916         * gxx.gperf, hash.h, input.c: Delete.
6917         * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
6918         initialized properly.
6920         * class.c (fixup_pending_inline): Take a tree, not a
6921         struct pending_inline *.  All callers changed.
6922         (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
6923         RID_PROTECTED entries in ridpointers[] array here.
6924         * decl.c (duplicate_decls): Do not refer to struct
6925         pending_inline.
6926         (record_builtin_type, init_decl_processing): Use RID_MAX not
6927         CP_RID_MAX.
6928         (grokdeclarator): Use C_IS_RESERVED_WORD.
6929         * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
6930         cpplib.
6931         (grok_x_components): Do not inspect pending_inlines chain.
6933         * cp-tree.h (struct lang_identifier): Add rid_code entry.
6934         (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
6935         (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
6936         (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
6937         TIME_IDENTIFIER_FILEINFO): Kill.
6938         Update prototypes.
6939         * lex.h: Expunge cp_rid.  Rewrite RIDBIT macros to use just a
6940         single 32-bit word.
6941         * parse.y: Call do_pending_inlines unconditionally.
6942         reinit_parse_for_method is now snarf_method.  fn.defpen is no
6943         longer necessary.  Remove unnecessary <itype> annotation on
6944         SCOPE.  Do not refer to end_of_file or struct pending_inline.
6945         * semantics.c (begin_inline_definitions): Call
6946         do_pending_inlines unconditionally.
6948         * lex.c: Remove all code now shared with C front end.
6949         Initialize cpplib properly if USE_CPPLIB.  Put reserved words
6950         into the get_identifier table.  Rewrite pragma handling to
6951         work with the registry.  Move code to save tokens for later
6952         processing to spew.c.
6954         * spew.c: Rewrite everything in terms of token streams instead
6955         of text.  Move routines here from lex.c / input.c as
6956         appropriate.  GC-mark trees hanging off the pending inlines
6957         chain.
6959 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
6961         * NEWS: Mention that the named return value extension has been
6962         deprecated.
6963         * cp-tree.h (original_result_rtx): Define.
6964         (TREE_REFERENCE_EXPR): Remove.
6965         (DECL_VPARENT): Likewise.
6966         (pushdecl_nonclass_level): Likewise.
6967         (store_return_init): Likewise.
6968         (reinit_lang_specific): Likewise.
6969         (genrtl_named_return_value): Change prototype.
6970         * decl.c (original_result_rtx): Remove.
6971         (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
6972         Do not generate RTL for local variables here.
6973         (store_return_init): Remove.
6974         * semantics.c (genrtl_named_return_value): Simplify.  Fold in
6975         store_return_init.
6976         (finish_named_return_value): Adjust accordingly.  Warn that this
6977         extension is deprecated.
6978         (lang_expand_stmt): Adjust call to genrtl_named_return_value.
6980 2000-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6982         * pt.c (type_unification_real): Replace switch with if.
6983         (unify): Tsubst non-type parms before comparing.
6985 2000-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6987         * error.c (dump_typename): New function, broken out of ...
6988         (dump_type): ... here. Use it.
6989         * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
6991 2000-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6993         * init.c (build_offset_ref): Deal with namespace scoped
6994         TEMPLATE_ID_EXPRs.
6996 2000-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6998         * class.c (resolve_address_of_overloaded_function): Add
6999         explanation message.
7000         * decl.c (define_case_label): Reformat explanation.
7001         * decl2.c (finish_static_data_member_decl): Likewise.
7002         (grokfield): Likewise.
7003         * friend.c (do_friend): Likewise.
7005 2000-09-05  Zack Weinberg  <zack@wolery.cumb.org>
7007         * tree.c (walk_tree): Expose tail recursion.
7008         (walk_stmt_tree): New function.
7009         * cp-tree.h: Prototype walk_stmt_tree.
7010         * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
7011         the BLOCKs directly.  If a BLOCK has no variables after
7012         pruning, discard it.
7013         (finish_stmt_tree): Use walk_stmt_tree.  No need to save and
7014         restore the line number.
7016 2000-09-05  Mark Mitchell  <mark@codesourcery.com>
7018         * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
7019         (pt.o): Remove dependency on HTAB_H.
7020         * cp-tree.h: Include hashtab.h.
7021         (walk_tree): Change prototype.
7022         (walk_tree_without_duplicates): New function.
7023         * decl.c (check_default_argument): Use it.
7024         * optimize.c (remap_decl): Adjust calls to walk_tree.
7025         (copy_body): Likewise.
7026         (expand_calls_inline): Likewise.
7027         (calls_setjmp_p): Use walk_tree_without_duplicates.
7028         * pt.c: Don't include hashtab.h.
7029         (for_each_template_parm): Use walk_tree_without_duplicates.
7030         * semantics.c (finish-stmt_tree): Likewise.
7031         (expand_body): Likewise.
7032         * tree.c (walk_tree): Add additional parameter.
7033         (walk_tree_without_duplicates): New function.
7034         (count_trees): Use it.
7035         (verify_stmt_tree): Adjust call to walk_tree.
7036         (find_tree): Use walk_tree_without_duplicates.
7037         (no_linkage_check): Likewise.
7038         (break_out_target_exprs): Adjust call to walk_tree.
7039         (cp_unsave): Likewise.
7041 2000-09-04  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
7043         * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
7044         (TEMPLATE_TEMPLATE_PARM): Adjust comment.
7045         * cp-tree.h (TYPE_BINFO): Adjust comment.
7046         (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
7047         (TEMPLATE_TYPE_PARM_INDEX): Likewise.
7048         (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
7049         (TYPE_TEMPLATE_INFO): Likewise.
7050         (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
7051         * class.c (push_nested_class): Likewise.
7052         * decl.c (lookup_name_real): Likewise.
7053         (grokdeclarator): Likewise.
7054         (grok_op_properties): Likewise.
7055         (xref_tag): Likewise.
7056         (xref_basetypes): Likewise.
7057         * decl2.c (constructor_name_full): Likewise.
7058         (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
7059         (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
7060         * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
7061         (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7062         (dump_type_suffix): Likewise.
7063         * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
7064         instead.
7065         (get_aggr_from_typedef): Likewise.
7066         * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
7067         (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7068         (write_template_parm): Likewise.
7069         (write_template_template_parm): Check tree code instead of
7070         using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
7071         * method.c (build_overload_nested_name): Add
7072         BOUND_TEMPLATE_TEMPLATE_PARM.
7073         (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
7074         * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7075         * pt.c (convert_template_argument): Check tree code instead of
7076         using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
7077         (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
7078         (for_each_template_parm): Adjust comment.
7079         (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM.  Reorganize.
7080         (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7081         (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM.  Reorganize.  Use
7082         template_args_equal to compare template template parameter cases.
7083         * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7084         * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
7085         instead.
7086         * tree.c (copy_template_template_parm): Decide whether to create
7087         a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
7088         (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7089         (copy_tree_r): Likewise.
7090         * typeck.c (comptypes): Likewise.  Check tree code instead of
7091         using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
7093 2000-09-04  Mark Elbrecht  <snowball3@bigfoot.com>
7095         * decl.c (finish_function): Move the code for handling functions
7096         marked with the constructor and destructor attributes inside the
7097         expand_p block.
7099 2000-09-04  Nathan Sidwell  <nathan@codesourcery.com>
7101         * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
7103 2000-09-04  Nathan Sidwell  <nathan@codesourcery.com>
7105         * pt.c (lookup_template_class): Remove abort.
7106         * tree.c (get_type_decl): Allow error_mark_node.
7108 2000-09-04  Nathan Sidwell  <nathan@codesourcery.com>
7110         * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
7111         TEMPLATE_ID_EXPRs.
7113 2000-09-03  Mark Mitchell  <mark@codesourcery.com>
7115         * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
7116         new ABI mangling.
7118 2000-09-01  Nathan Sidwell  <nathan@codesourcery.com>
7120         * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
7121         union tag mismatch error reporting.
7123 2000-09-01  Nathan Sidwell  <nathan@codesourcery.com>
7125         * call.c (build_scoped_method_call): Check it is not a namespace.
7127 2000-08-30  Jason Merrill  <jason@redhat.com>
7129         * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
7131         * tree.c (bot_manip): Check TREE_CONSTANT rather than
7132         !TREE_SIDE_EFFECTS.  Call break_out_target_exprs and
7133         build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
7135         * decl.c (start_function): Always call make_function_rtl.
7137 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
7139         * semantics.c (prune_unused_decls): New function.
7140         (finish_stmt_tree): Call it via walk_tree.
7142 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
7144         * class.c (build_secondary_vtable): Constify a char *.
7145         * decl.c (init_decl_processing): Initialize function_id_node,
7146         pretty_function_id_node, and func_id_node.
7147         * input.c (struct input_source): Constify 'str'.
7148         (feed_input): Constify first argument.
7149         * mangle.c (write_identifier): Constify argument.
7150         * pt.c (mangle_class_name_for_template): Constify argument.
7152 2000-08-29  Mark Mitchell  <mark@codesourcery.com>
7154         * typeck.c (mark_addressable): Remove code that pokes around in
7155         RTL.
7157 2000-08-28  Jason Merrill  <jason@redhat.com>
7159         * lex.c (file_name_nondirectory): Move to toplev.c.
7161         * cp-tree.h (LOCAL_CLASS_P): New macro.
7162         * class.c (finish_struct_1): Use it.
7164 2000-08-27  Alex Samuel  <samuel@codesourcery.com>
7166         * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
7167         (write_encoding): Pass another argument to write_name.
7168         (write_name): Add ignore_local_scope parameter.  Fix handling of
7169         local names.
7170         (write_nested_name): Use write_unqualified_name.
7171         (write_prefix): Likewise.  Skip out on FUNCTION_DECLs.
7172         (write_template_prefix): Use write_unqualified_name.
7173         (write_component): Remove.
7174         (write_local_name): Add parameter.  Use direct local entity to
7175         discriminator calculation.
7176         (write_class_enum_type): Pass another argument to write_name.
7177         (write_template_template_arg): Likewise.
7178         (make_guard_variable): Likewise.
7180 2000-08-27  Jason Merrill  <jason@redhat.com>
7182         * decl.c (pushdecl): Matching decls for local externs are found in
7183         the current level.  Propagate linkage information from previous
7184         declarations.
7186 2000-08-26  Gabriel Dos Reis  <gdr@codesourcery.com>
7188         * ir.texi (Expressions): Fix typo.
7190 2000-08-25  Greg McGary  <greg@mcgary.org>
7192         * tree.c (init_tree): Use ARRAY_SIZE.
7194 2000-08-25  Gabriel Dos Reis  <gdr@codesourcery.com>
7196         * error.c (cp_tree_printer): Rework.
7198 2000-08-25  Mark Mitchell  <mark@codesourcery.com>
7200         * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
7201         dyn-string.o.
7202         (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
7203         (cp-demangle.o): Remove target.
7204         (dyn-string.o): Likewise.
7206         * decl.c (grokfndecl): Require that `main' return an `int'.
7207         * mangle.c (write_encoding): Don't mangle return types for
7208         conversion functions.
7210 2000-08-25  Gabriel Dos Reis  <gdr@codesourcery.com>
7212         * error.c (tree_formatting_info): New data type.
7213         (tree_being_formatted): New macro.
7214         (tree_formatting_flags): Likewise.
7215         (put_whitespace): Likewise.
7216         (print_tree_identifier): Likewise.
7217         (print_identifier): Likewise.
7218         (cp_tree_printer, print_function_argument_list, print_declaration,
7219         print_expression, print_function_declaration,
7220         print_function_parameter, print_type, print_cv_qualifier): New
7221         functions.
7222         (init_error): Initialize lang_printer.
7224 2000-08-24  Jason Merrill  <jason@redhat.com>
7226         * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
7227         adjustment necessary.
7229 2000-08-24  Greg McGary  <greg@mcgary.org>
7231         * cp-tree.h (MAIN_NAME_P): Remove macro.
7233 2000-08-24  Gabriel Dos Reis  <gdr@codesourcery.com>
7235         * error.c (print_instantiation_context): Don't forget to flush the
7236         buffer.
7238 2000-08-23  Jason Merrill  <jason@redhat.com>
7240         * typeck.c (build_ptrmemfunc): Save the input pmf.
7242         * method.c (process_modifiers): Use same_type_p.
7244 2000-08-23  Mark Mitchell  <mark@codesourcery.com>
7246         * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
7247         * mangle.c (write_function_type): Change prototype.
7248         (write_encoding): Don't mangle return types for
7249         constructors or destructors.
7250         (write_type): Adjust call to write_function_type.
7251         * pt.c (instantiate_template): Instantiate alternate entry points
7252         when instantiating the main function.
7254 2000-08-23  Gabriel Dos Reis  <gdr@codesourcery.com>
7256         * error.c (cp_print_error_function): Don't use embedded '\n' in
7257         output_printf.
7259 2000-08-23  Gabriel Dos Reis  <gdr@codesourcery.com>
7261         * decl.c (init_decl_processing): Remove bogus initialization.
7262         * error.c (lang_print_error_function): Restore here.
7263         (init_error): Initialize print_error_function.
7265 2000-08-22  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
7267         * decl2.c (arg_assoc): Revert my 2000-08-11 change.
7269 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
7271         * Makefile.in (error.o): Depends on diagnostic.h
7273         * cp-tree.h (problematic_instantiation_changed,
7274         record_last_problematic_instantiation, current_instantiation,
7275         print_instantiation_context): Declare.
7276         (maybe_print_template_context): Remove.
7278         * decl.c (init_decl_processing): Set print_error_function to NULL.
7279         (lang_print_error_function): Remove, since we're using a new
7280         machinery.
7282         * error.c: #include diagnostic.h
7283         (function_category): New function.
7284         (cp_diagnostic_starter): Likewise.
7285         (cp_diagnostic_finalizer): Likewise.
7286         (cp_print_error_function): Likewise.
7287         (maybe_print_instantiation_context): Likewise.
7288         (print_instantiation_full_context): Likewise.
7289         (print_instantiation_partial_context): Likewise.
7290         (print_instantiation_context): Define.
7291         (init_error): Initialize diagnostic pager and finalizer.
7293         * pt.c (problematic_instantiation_changed): Define.
7294         (record_last_problematic_instantiation): Likewise.
7295         (current_instantiation): Likewise.
7296         (maybe_print_template_context): Remove.
7297         (print_template_context): Likewise.
7298         (current_tinst_level): Make static to reflect Brendan Kehoe's
7299         change of 1995-04-13.
7300         (push_tinst_level): Call print_instantiation_context.
7302 2000-08-21  Nix  <nix@esperi.demon.co.uk>
7304         * lang-specs.h: Do not process -o or run the assembler if
7305         -fsyntax-only.
7307 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7309         * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
7310         variables.
7311         * decl2.c (lang_decode_option): Disable gettext attributes for
7312         -ansi.
7314 2000-08-21  Gabriel Dos Reis  <gdr@codesourcery.com>
7316         * lex.c (lang_init_options): Default diagnostic message maximum
7317         length to 80, when line-wrapping.
7319 2000-08-20  Mark Mitchell  <mark@codesourcery.com>
7321         * class.c (build_vtbl_initializer): Clear the entire
7322         vtbl_init_data.  Start keeping track of the functions for which we
7323         have created vcall offsets here.
7324         (dfs_build_vcall_offset_vtbl_entries): Remove.
7325         (build_vcall_offset_vtbl_entries): Reimplement.
7326         (add_vcall_offset_vtbl_entries_r): New function.
7327         (add_vcall_offset_vtbl_entries_1): Likewise.  Tweak logic for
7328         computing when vcall offsets are necessary.
7330 2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
7332         * decl.c (member_function_or_else): Use cp_error ... %T.
7333         (grokdeclarator): Likewise.
7334         (start_method): Likewise.
7335         * friend.c (make_friend_class): Use cp_pedwarn ... %T.
7337 2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
7339         * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
7340         TYPE_DECLs.
7342 2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
7344         * cp-tree.h (PTRMEM_OK_P): New macro.
7345         (itf_ptrmem_ok): New enumeration value.
7346         * class.c (resolve_address_of_overloaded_function): Add PTRMEM
7347         argument. Diagnose implicit pointer to member.
7348         (instantiate_type): Don't diagnose implicit pointer to member
7349         here. Pass itf_ptrmem_ok if ok. Adjust calls to
7350         resolve_address_of_overloaded_function.
7351         * init.c (build_offset_ref): Set PTRMEM_OK_P.
7352         (resolve_offset_ref): Don't diagnose implicit pointer to member here.
7353         * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
7354         * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
7355         (build_unary_op): Deal with single non-static member in
7356         microsoft-land.
7358 2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
7360         * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
7362 2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
7364         * cp-tree.h (enum_name_string): Remove prototype.
7365         (report_case_error): Remove prototype.
7366         * cp/typeck2.c (enum_name_string): Remove.
7367         (report_case_error): Remove.
7368         * error.c (dump_expr): Deal with enum values directly.
7369         Correctly negate integer constant.
7371 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7373         * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
7374         (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
7375         * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
7376         (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
7377         (__cxa_vec_new): Use __cxa_vec_new2.
7378         (__cxa_vec_delete): Use __cxa_vec_delete2.
7380 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7382         * vec.cc (__cxa_vec_new): Set "C" linkage.
7383         (__cxa_vec_ctor): Likewise.
7384         (__cxa_vec_cctor): Likewise.
7385         (__cxa_vec_dtor): Likewise.
7386         (__cxa_vec_delete): Likewise.
7387         * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
7388         (__cxa_vec_ctor): Likewise.
7389         (__cxa_vec_cctor): Likewise.
7390         (__cxa_vec_dtor): Likewise.
7391         (__cxa_vec_delete): Likewise.
7393 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7395         * class.c (instantiate_type): Reinstate local variable
7396         deleted in previous change.
7398         * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
7399         itf_no_attributes.
7401 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7403         * cp-tree.h (instantiate_type_flags): New enumeration.
7404         (instantiate_type): Change parameter.
7405         * class.c (instantiate_type): Adjust prototype. Adjust.
7406         * call.c (standard_conversion): Adjust instantiate_type call.
7407         (reference_binding): Likewise.
7408         (build_op_delete_call): Likewise.
7409         (convert_like_real): Likewise.
7410         * cvt.c (cp_convert_to_pointer): Likewise.
7411         (convert_to_reference): Likewise.
7412         * pt.c (convert_nontype_argument): Likewise.
7413         * typeck.c (build_binary_op): Likewise.
7414         (build_ptrmemfunc): Likewise.
7415         (convert_for_assignment): Likewise.
7417 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7419         * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
7420         (current_aggr): Define.
7421         * decl.c (grokdeclarator): Make sure a friend class is an
7422         elaborated type specifier.
7423         * parse.y (current_aggr): Remove static definition.
7424         (cp_parse_init): Adjust.
7425         (structsp): Clear and restore current_aggr.
7426         (component_decl_list): Clear current_aggr.
7428         * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
7429         aggregate tag on the typename's context.
7431         * pt.c (tsubst_friend_class): Return error_mark_node, if
7432         parms becomes NULL.
7433         (instantiate_class_template): Ignore error_mark_node friend types.
7435 2000-08-14  Nathan Sidwell  <nathan@codesourcery.com>
7437         * cvt.c (warn_ref_binding): New static function, broken out of ...
7438         (convert_to_reference): ... here. Use it.
7440 2000-08-11  Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
7442         * parse.y (template_arg): Add rule for template qualified with
7443         global scope.
7445 2000-08-11  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7447         * decl2.c (add_function): Reorganize.
7448         (arg_assoc): Do not consider function template decls.
7450 2000-08-11  Jason Merrill  <jason@redhat.com>
7452         * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
7453         looking inside.
7455 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
7457         * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
7458         (lookup_nested_tag): Likewise.
7460         * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
7461         can be produced.
7463 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
7465         * parse.y (named_complex_class_head_sans_basetype): Remove
7466         always true if.
7468 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
7470         * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
7471         explicit TEMPLATE_ID_EXPR args.
7472         (build_expr_from_tree, case CALL_EXPR): Likewise.
7474 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
7476         * decl.c (check_tag_decl): Diagnose typename's which don't
7477         declare anything.
7479 2000-08-10  Nathan Sidwell  <nathan@codesourcery.com>
7481         * init.c (build_aggr_init): Reject bogus array initializers
7482         early.
7484 2000-08-09  Nathan Sidwell  <nathan@codesourcery.com>
7486         * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
7487         runtime.
7488         * cp/tinfo.cc (__dynamic_cast): Likewise.
7489         * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7491 2000-08-09  Nathan Sidwell  <nathan@codesourcery.com>
7493         * cvt.c (convert_to_pointer_force): Fix error message when
7494         attempting to cast from ambiguous base.
7496 2000-08-08  Jason Merrill  <jason@redhat.com>
7498         * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
7499         (tsubst_template_arg_vector): Likewise.
7501         * decl2.c (build_anon_union_vars): Choose the largest field; don't
7502         assume that one will be as large as the union.
7504 2000-08-07  Kazu Hirata  <kazu@hxi.com>
7506         * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
7507         * decl.c (pop_labels): Likewise.
7509 2000-08-04  Jeffrey Oldham  <oldham@codesourcery.com>
7511         * inc/cxxabi.h (__pbase_type_info): Changed member names to match
7512         specifications.
7513         (__pointer_to_member_type_info): Likewise.
7514         (__base_class_info): Likewise.
7515         (__class_type_info): Likewise.
7516         (__si_class_type_info): Likewise.
7517         (__vmi_class_type_info): Likewise.
7518         * tinfo.cc (__si_class_type_info::__do_find_public_src):
7519         Changed member names to match specifications.
7520         (__vmi_class_type_info::__do_find_public_src): Likewise.
7521         (__si_class_type_info::__do_dyncast): Likewise.
7522         (__vmi_class_type_info::__do_dyncast): Likewise.
7523         (__si_class_type_info::__do_upcast): Likewise.
7524         (__vmi_class_type_info::__do_upcast): Likewise.
7525         * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
7526         (__pbase_type_info::__pointer_catch): Likewise.
7527         (__pointer_type_info::__pointer_catch): Likewise.
7528         (__pointer_to_member_type_info::__pointer_catch): Likewise.
7530 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
7532         * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
7533         * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
7534         (cc1plus): Link with $(BACKEND) and $(C_OBJS).
7536 2000-08-04  Mark Mitchell  <mark@codesourcery.com>
7538         * cp-tree.h (add_method): Change prototype.
7539         * class.c (add_method): Remove FIELDS parameter.  Add ERROR_P.
7540         Don't double the size of the method vector in the error case.
7541         (handle_using_decl): Adjust call to add_method.
7542         (add_implicitly_declared_members): Likewise.
7543         (clone_function_decl): Likewise.
7544         * decl2.c (check_classfn): Likewise.
7545         * semantics.c (finish_member_declaration): Likewise.
7547 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7549         * decl.c (flag_isoc94): New variable.
7551 2000-08-02  Jason Merrill  <jason@redhat.com>
7553         * pt.c (do_type_instantiation): Add complain parm; don't complain
7554         if called recursively.
7555         * cp-tree.h, parse.y: Adjust.
7557 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
7559         * decl2.c: Silently ignore -Wstrict-prototypes; warn about
7560         -Wno-strict-prototypes.
7562         * g++spec.c: Adjust type of second argument to
7563         lang_specific_driver, and update code as necessary.
7565         * cp-tree.h: Don't prototype min_precision here.
7566         (my_friendly_assert): Cast expression to void.
7567         * semantics.c (do_poplevel): Initialize scope_stmts.
7569 2000-08-02  Mark Mitchell  <mark@codesourcery.com>
7571         * cp-tree.h (DECL_NEEDED_P): Tweak.
7573 2000-07-28  Jason Merrill  <jason@redhat.com>
7575         * lang-specs.h: Use %i in rule for .ii files.
7577 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
7579         * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
7581 2000-07-30  Mark Mitchell  <mark@codesourcery.com>
7583         Allow indirect primary bases.
7584         * cp-tree.h (struct lang_type): Remove vfield_parent.  Add
7585         primary_base.
7586         (CLASSTYPE_VFIELD_PARENT): Remove.
7587         (CLASSTYPE_PRIMARY_BINFO): Reimplement.
7588         (BINFO_PRIMARY_BINFO): Remove.
7589         (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
7590         (BINFO_VBASE_PRIMARY_P): Likewise.
7591         (BINFO_PRIMARY_BASE_OF): New macro.
7592         (BINFO_INDIRECT_PRIMARY_P): Likewise.
7593         (get_primary_binfo): New function.
7594         * decl.c (lang_mark_tree): Make lang_type::primary_base.
7595         * class.c (vcall_offset_data_s): Rename to ...
7596         (vtbl_init_data_s): ... this.  Rename primary_p to primary_vtbl_p,
7597         and add ctor_vtbl_p.
7598         (get_derived_offset): Use get_primary_binfo.
7599         (dfs_mark_primary_bases): Adjust handling of virtual primary
7600         bases.
7601         (mark_primary_bases): Likewise.
7602         (set_primary_base): Take a binfo, not an integer, as a
7603         representation of the primary base.
7604         (indirect_primary_base_p): Remove.
7605         (determine_primary_base): Adjust for indirect primary bases.
7606         (dfs_find_final_overrider): Fix typo in coment.
7607         (update_vtable_entry_for_fn): Use get_primary_binfo.
7608         (layout_nonempty_base_or_field): Tweak.
7609         (build_base_fields): Adjust for new primary base semantics.
7610         (dfs_propagate_binfo_offsets): Remove.
7611         (propagate_binfo_offsets): Rewrite.
7612         (dfs_set_offset_for_shared_vbases): Remove.
7613         (layout_virtual_bases): Don't use it.
7614         (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
7615         ABI.
7616         (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
7617         CLASSTYPE_VFIELD_PARENT.
7618         (dfs_get_primary_binfo): New function.
7619         (get_primary_binfo): Likewise.
7620         (dump_class_hierarchy_r): Tweak printing of primary bases.
7621         (build_vtbl_initializer): Fix typo in comments.  Use
7622         vtbl_init_data.
7623         (build_vcall_and_vbase_vtbl_entries): Likewise.
7624         (build_vbaes_offset_vtbl_entries): Likewise.
7625         (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
7626         BV_VCALL_INDEX to handle indirect primary bases.
7627         (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
7628         (build_rtti_vtbl_entries): Likewise.
7629         * search.c (get_shared_vbase_if_not_primary): Tweak.
7630         (find_vbase_instance): Likewise.
7631         (binfo_for_vtable): Simplify.
7632         * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
7633         (make_binfo): Make it have 11 entries.
7635 2000-07-30  Alex Samuel  <samuel@codesourcery.com>
7637         * mangle.c (DECL_TEMPLATE_ID_P): Remove.
7638         (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
7639         ascertaining primaryness.
7640         (G): Remove template_args.
7641         (decl_is_template_id): New function.
7642         (write_encoding): Use decl_is_template_id.
7643         (write_name): Likewise.  Handle type_decls.  Get main variant of
7644         type decls.
7645         (write_nested_name): Likewise.
7646         (write_prefix): Likewise.
7647         (write_template_prefix): Likewise.
7648         (write_special_name_constructor): Remove defunct production from
7649         comment.
7650         (write_bare_function_type): Remove comment about absent parameter.
7651         (write_template_template_arg): Add missing grammar production to
7652         comment.
7654 2000-07-27  Jason Merrill  <jason@redhat.com>
7656         * decl.c (duplicate_decls): If common_type produces a non-typedef
7657         type for a typedef, just use the old type.
7659 2000-07-27  Mark Mitchell  <mark@codesourcery.com>
7661         * cp-tree.h (function_depth): Declare.
7662         (verify_stmt_tree): Likewise.
7663         (find_tree): Likewise.
7664         * decl.c (function_depth): Give it external linkage.
7665         * optimize.c (optimize_function): Increment and decrement it.
7666         * tree.c (verify_stmt_tree_r): New function.
7667         (verify_stmt_tree): Likewise.
7668         (find_tree_r): Likewise.
7669         (find_tree): Likewise.
7671 2000-07-27  Jason Merrill  <jason@redhat.com>
7673         * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
7674         TYPE_PTRMEMFUNC_P.
7675         * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
7677 2000-07-26  Mark Mitchell  <mark@codesourcery.com>
7679         * decl.c (start_cleanup_fn): Mark the function as `inline'.
7680         * decl2.c (get_guard): Call cp_finish_decl, not
7681         rest_of_decl_compilation, for local guards.
7682         * lex.c (do_identifier): Remove unused variable.
7684 Wed Jul 26 15:05:51 CEST 2000   Marc Espie <espie@cvs.openbsd.org>
7686         * parse.y:  Add missing ';'.
7688 2000-07-26  Mark Mitchell  <mark@codesourcery.com>
7690         * parse.y (empty_parms): Use `()', not `(...)', when in the scope
7691         of `extern "C++"'.
7693 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
7695         Kill strict_prototype. Backwards compatibility only for
7696         non NO_IMPLICIT_EXTERN_C systems.
7697         * cp-tree.h (flag_strict_prototype): Remove.
7698         (strict_prototype): Remove.
7699         (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
7700         * decl.c (maybe_push_to_top_level): Adjust.
7701         (pop_from_top_level): Adjust.
7702         (decls_match): Only allow sloppy parm matching for ancient
7703         system headers.
7704         (init_decl_processing): Adjust.
7705         (grokdeclarator): Adjust.
7706         * decl2.c (flag_strict_prototype): Remove.
7707         (strict_prototype): Remove.
7708         (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
7709         (lang_f_options): Remove "strict-prototype".
7710         (unsupported-options): Add "strict-prototype".
7711         * lex.c (do_identifier): Adjust.
7712         (do_scoped_id): Adjust.
7713         * parse.y (empty_parms): Adjust.
7714         * class.c (push_lang_context): Adjust.
7715         (pop_lang_context): Adjust.
7716         * typeck.c (comp_target_parms): Adjust.
7718 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
7720         * decl.c (poplevel): Deal with anonymous variables at for scope.
7721         (maybe_inject_for_scope_var): Likewise.
7723 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
7725         * decl.c: Remove all signal handling code, now done in toplev.c.
7727 2000-07-23  Mark Mitchell  <mark@codesourcery.com>
7729         * decl.c (make_rtl_for_nonlocal_decl): Rework.
7731         * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
7732         correctly.
7734 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
7736         * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
7737         Define my_friendly_assert and my_friendly_abort as macros
7738         which may call friendly_abort.  Prototype friendly abort, not
7739         my_friendly_abort or my_friendly_assert.
7740         * decl.c (signal_catch): Report the signal caught in the error
7741         message.  Call fatal directly.
7742         * typeck2.c (ack, my_friendly_assert): Delete.
7743         (my_friendly_abort): Rename to friendly_abort.  Expect file,
7744         line, and function parameters.  Report the abort code, then
7745         call fancy_abort.  Do not mask an abort if errors have
7746         already occurred.
7748 2000-07-18  Nathan Sidwell  <nathan@codesourcery.com>
7750         * typeck.c (comp_target_parms): Remove obsolete parameter.
7751         (comp_target_types): Adjust.
7753 2000-07-17  Jason Merrill  <jason@redhat.com>
7755         * typeck.c (mark_addressable): Never set TREE_USED.
7756         * call.c (build_call): Don't abort on calls to library functions
7757         that have been declared normally.
7759         * typeck.c (build_binary_op): Fix grammar in warning.
7761         * exception.cc (__eh_free): Fix prototype.
7763         * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
7765         * decl.c (pushdecl): Handle seeing an OVERLOAD in
7766         IDENTIFIER_NAMESPACE_VALUE.
7768 2000-07-16  Mark Mitchell  <mark@codesourcery.com>
7770         * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
7771         * method.c (use_thunk): Correct handling of vcall offsets.
7773 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
7775         * .cvsignore: parse.h and parse.c have no cp- prefix.
7777 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
7779         * .cvsignore: New file.
7781 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
7783         * lang-specs.h: Use the new named specs.  Remove unnecessary braces.
7785 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
7787         * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
7788         * parse.c: Remove.
7789         * parse.h: Likewise.
7791 2000-07-11  Mark Mitchell  <mark@codesourcery.com>
7793         * class.c (layout_class_type): Add pointers to virtual bases after
7794         base classes under the old ABI.
7796 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
7798         * semantics.c (finish_for_stmt): Remove call to emit_line_note.
7799         (finish_continue_stmt): Likewise.
7800         (begin_for_stmt): Remove call to note_level_for_for.
7801         (finish_goto_stmt): Change call from build_min_nt
7802         to build_stmt.
7803         (finish_expr_stmt): Likewise.
7804         (begin_if_stmt): Likewise.
7805         (begin_while_stmt): Likewise.
7806         (finish_while_stmt): Likewise.
7807         (finish_return_stmt): Likewise.
7808         (begin_for_stmt): Likewise.
7809         (finish_for_stmt): Likewise.
7810         (finish_break_stmt): Likewise.
7811         (begin_switch_stmt): Likewise.
7812         (finish_case_label): Likewise.
7813         (genrtl_try_block): Likewise.
7814         (begin_try_block): Likewise.
7815         (begin_handler): Likewise.
7816         (begin_compound_stmt): Likewise.
7817         (finish_asm_stmt): Likewise.
7818         (finish_label_stmt): Likewise.
7819         (add_decl_stmt): Likewise.
7820         (finish_subobject): Likewise.
7821         (finish_decl_cleanup): Likewise.
7822         (finish_named_return_value): Likewise.
7823         (setup_vtbl_ptr): Likewise.
7824         (add_scope_stmt): Likewise.
7825         * decl.c (finish_constructor_body): Likewise.
7826         (finish_destructor_body): Likewise.
7827         * optimize.c (copy_body_r): Likewise.
7828         (initialize_inlined_parameters): Likewise.
7829         (declare_return_variable): Likewise.
7830         (expand_call_inline): Likewise.
7832 2000-07-10  Jakub Jelinek  <jakub@redhat.com>
7834         * semantics.c (expand_body): Sync interface information
7835         at the end of function body expansion.
7837 2000-07-09  Jason Merrill  <jason@redhat.com>
7839         * init.c (build_new_1): Bail early if the call to new fails.
7841         * decl.c (compute_array_index_type): Check specifically for
7842         an INTEGER_CST, not just TREE_CONSTANT.
7844         * decl.c (duplicate_decls): Don't call duplicate_decls on
7845         the DECL_TEMPLATE_RESULT.
7846         (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
7847         codes.
7849         * error.c (dump_template_bindings): Don't crash if we had an
7850         invalid argument list.
7852         * typeck.c (c_expand_start_case): Do narrowing here.
7853         * semantics.c (finish_switch_cond): Not here.
7855 2000-07-09  Hidvegi Zoli  <hzoli@austin.ibm.com>
7857         * parse.y (asm_clobbers): Do string concatenation.
7859 2000-07-09  Mark Mitchell  <mark@codesourcery.com>
7861         * decl.c (pushtag): Don't put local classes in template functions
7862         on the local_classes list.
7864 2000-07-04  Scott Snyder  <snyder@fnal.gov>
7866         * decl2.c (get_guard): Add missing return for old ABI local
7867         variable case.
7869 2000-07-09  Mark Mitchell  <mark@codesourcery.com>
7871         * cp-tree.h (char_type_p): New function.
7872         * decl.c (init_decl_processing): Don't initialize
7873         signed_wchar_type_node or unsigned_wchar_type_node.
7874         (complete_array_type): Handle brace-enclosed string-constants.
7875         * rtti.c (emit_support_tinfos): Remove #if 0'd code.
7876         * tree.c (char_type_p): New function.
7877         * typeck2.c (digest_init): Use char_type_p.
7879 2000-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7881         * pt.c (tsubst): Don't layout type, if it's error_mark.
7883 2000-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7885         * pt.c (instantiate_pending_templates): Reset template level.
7887 2000-07-05  Jason Merrill  <jason@redhat.com>
7889         * call.c (joust): Don't complain about `operator char *()' beating
7890         `operator const char *() const'.
7892 2000-07-04  scott snyder  <snyder@fnal.gov>
7893             Jason Merrill  <jason@redhat.com>
7895         * repo.c (repo_get_id): Handle the case where a class with virtual
7896         bases has a null TYPE_BINFO_VTABLE.
7898 2000-07-04  Kevin Buhr  <buhr@stat.wisc.edu>
7899             Jason Merrill  <jason@redhat.com>
7901         * parse.y (member_init): Just pass in the type.
7902         * init.c (expand_member_init): Handle getting a type.
7904 2000-07-04  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7905             Jason Merrill  <jason@redhat.com>
7907         * decl.c (finish_function): Warn if a function has no return
7908         statement.
7909         Suggested by Andrew Koenig.
7910         * typeck.c (check_return_expr): Do set current_function_returns_value
7911         if we got an error_mark_node.
7913 2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
7915         * decl2.c (push_decl_namespace): Push the original namespace.
7917 2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
7919         * pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
7920         * semantics.c (begin_class_definition): Clear it.
7922 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
7924         * cp-tree.h (genrtl_goto_stmt): Remove declaration.
7925         (genrtl_expr_stmt): Likewise.
7926         (genrtl_decl_stmt): Likewise.
7927         (genrtl_if_stmt): Likewise.
7928         (genrtl_while_stmt): Likewise.
7929         (genrtl_do_stmt): Likewise.
7930         (genrtl_return_stmt): Likewise.
7931         (genrtl_for_stmt): Likewise.
7932         (genrtl_break_stmt): Likewise.
7933         (genrtl_continue_stmt): Likewise.
7934         (genrtl_scope_stmt): Likewise.
7935         (genrtl_switch_stmt): Likewise.
7936         (genrtl_case_label): Likewise.
7937         (genrtl_begin_compound_stmt): Likewise.
7938         (genrtl_finish_compound_stmt): Likewise.
7939         (genrtl_compound_stmt): Likewise.
7940         (genrtl_asm_stmt): Likewise.
7942         * init.c (begin_init_stmts): Remove call to
7943         genrtl_begin_compound_stmt.
7944         (finish_init_stmts): Remove call to genrtl_finish_compound_stmt.
7946         * semantics.c (lang_expand_stmt): Changed call to
7947         genrtl_compound_stmt to ignore return value.
7949 2000-07-02  Mark Mitchell  <mark@codesourcery.com>
7951         * mangle.c (canonicalize_for_substitution): Return the canonical
7952         variant of a type.
7954         * decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a
7955         TYPE_DECL.
7956         * typeck.c (commonparms): Remove obstack manipulations.
7958 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
7960         * Make-lang.in (cc1plus$(exeext)): Added c-semantics.o.
7962         * Makefile.in (OBJS): Added ../c-semantics.o.
7963         (OBJDEPS): Likewise.
7965         * cp-tree.h (TREE_LANG_FLAG_?): Moved common documentation to
7966         ../c-common.h.
7967         (struct stmt_tree): Added comment.
7968         (current_function_name_declared): Removed.
7969         (stmts_are_full_exprs_p): Likewise.
7970         (genrtl_do_pushlevel): Likewise.
7971         (genrtl_clear_out_block): Likewise.
7972         (COMPOUND_STMT_NO_SCOPE): Moved to ../c-common.h.
7973         (DECL_ANON_UNION_ELEMS): Likewise.
7974         (emit_local_var): Likewise.
7975         (make_rtl_for_local_static): Likewise.
7976         (do_case): Likewise.
7977         (expand_stmt): Likewise.
7978         (genrtl_decl_cleanup): Likewise.
7979         (c_expand_asm_operands): Likewise.
7980         (c_expand_return): Likewise.
7981         (c_expand_start_case): Likewise.
7983         * decl.c (make_rtl_for_local_static): Moved to c-semantics.c.
7984         (emit_local_var): Likewise.
7985         (initialize_local_var): Change reference to
7986         stmts_are_full_exprs_p to call to stmts_are_full_exprs_p().
7987         Change reference to stmts_are_full_exprs_p to
7988         current_stmt_tree->stmts_are_full_exprs_p.
7989         (push_cp_function_context): Likewise.
7991         * expect.c (expand_throw): Change reference to
7992         stmts_are_full_exprs_p.
7994         * init.c (build_aggr_init): Change reference to
7995         stmts_are_full_exprs_p.
7996         (build_vec_init): Likewise.
7998         * optimize.c (maybe_clone_body): Change reference to
7999         current_function_name_declared to
8000         cp_function_chain->name_declared.
8002         * pt.c (instantiate_decl): Change reference to
8003         current_function_name_declared to
8004         cp_function_chain->name_declared.
8006         * semantics.c (expand_cond): Moved declaration to c-common.h.
8007         (genrtl_do_pushlevel): Moved to c-semantics.c.
8008         (genrtl_clear_out_block): Likewise.
8009         (genrtl_goto_stmt): Likewise.
8010         (genrtl_expr_stmt): Likewise.
8011         (genrtl_decl_stmt): Likewise.
8012         (gerntl_if_stmt): Likewise.
8013         (genrtl_while_stmt): Likewise.
8014         (genrtl_do_stmt): Likewise.
8015         (genrtl_return_stmt): Likewise.
8016         (genrtl_for_stmt): Likewise.
8017         (genrtl_break_stmt): Likewise.
8018         (genrtl_continue_stmt): Likewise.
8019         (genrtl_scope_stmt): Likewise.
8020         (genrtl_switch_stmt): Likewise.
8021         (genrtl_case_label): Likewise.
8022         (genrtl_begin_compound_stmt): Likewise.
8023         (genrtl_finish_compound_stmt): Likewise.
8024         (genrtl_compound_stmt): Likewise.
8025         (genrtl_asm_stmt): Likewise.
8026         (genrtl_decl_cleanup): Likewise.
8027         (expand_cond): Likewise.
8028         (expand_stmt): Renamed to ...
8029         (lang_expand_stmt): ... this.
8030         (lang_expand_expr_stmt): Initialize.
8031         (set_current_function_name_declared): Likewise.
8032         (stmts_are_full_exprs_p): Likewise.
8033         (current_function_name_declared): Likewise.
8034         (anon_aggr_type_p): Likewise.
8035         (do_poplevel): Change reference to
8036         stmts_are_full_exprs_p to call to stmts_are_full_exprs_p().
8037         Change reference to stmts_are_full_exprs_p to
8038         current_stmt_tree->stmts_are_full_exprs_p.
8039         (add_tree): Likewise.
8040         (finish_expr_stmt): Likewise.
8041         (prep_stmt): Likewise.
8042         (lang_expand_stmt): Likewise.
8043         (begin_compound_stmt): Change reference to
8044         current_function_name_declared to
8045         cp_function_chain->name_declared and call to
8046         current_function_name_declared().
8047         (setup_vtbl_ptr): Likewise.
8048         (genrtl_do_poplevel): Removed.
8050 2000-06-30  Jason Merrill  <jason@redhat.com>
8052         * init.c (init_init_processing): Go back to aligning like
8053         double_type_node for old ABI.
8054         (get_cookie_size): Make cookie larger if we get a type that needs
8055         more alignment.
8056         (build_vec_delete): Call it.
8058         * typeck.c (qualify_type_recursive): New fn.
8059         (composite_pointer_type): Use it.
8060         (build_binary_op): Use composite_pointer_type.
8062 2000-06-24  Carlos O'Ryan  <coryan@cs.wustl.edu>
8063             Jason Merrill  <jason@redhat.com>
8065         * typeck.c (check_return_expr): Don't complain about returning
8066         NULL from operator new if -fcheck-new.
8067         * cp-tree.h: Declare flag_check_new here.
8068         * init.c: Not here.
8070 2000-06-28  Alex Samuel  <samuel@codesourcery.com>
8072         * mangle.c (find_substitution): Use same_type_p.
8073         (write_encoding): Don't check for substitutions.
8075 2000-06-30  Nathan Sidwell  <nathan@codesourcery.com>
8077         * parse.y (expr_no_comma_rangle): New non-terminal.
8078         (template_parm): Use it for default parameter case.
8079         (template_arg): Use it.
8080         (expr_no_commas): Remove commented out undefined extensions.
8081         * Makefile.in (CONFLICTS): Adjust to 33 s/r & 48 r/r.
8082         * parse.h, parse.c: Rebuilt.
8084 2000-06-30  Mark Mitchell  <mark@codesourcery.com>
8086         * semantics.c (genrtl_asm_stmt): Don't decay input operands here.
8087         (finish_asm_stmt): Do it here, instead.
8089         * cp-tree.h (ridpointers): Don't declare.
8090         * decl.c (record_builtin_type): Use CP_RID_MAX instead of RID_MAX.
8091         (record_builtin_java_type): Likewise.
8092         (init_decl_processing): Likewise.
8093         * lex.c: Move inclusion of lex.h.
8094         (ridpointers): Don't define.
8095         (init_parse): Initialize ripdointers.  Use CP_RID_MAX instead of
8096         RID_MAX.
8097         * lex.h (enum rid): Rename to ...
8098         (enum cp_rid): ... this.
8099         (ridpointers): Don't declare.
8100         * parse.y: Move inclusion of lex.h.
8101         * parse.c: Regenerated.
8102         * spew.c: Move inclusion of lex.h.
8104         * cp-tree.h (struct language_function): Remove temp_name_counter.
8105         (temp_name_counter): Remove.
8106         (get_temp_name): Change prototype.
8107         (get_guard): New function.
8108         (get_guard_cond): Likewise.
8109         (set_guard): Likewise.
8110         * cvt.c (build_up_reference): Adjust call to get_temp_name.
8111         * decl.c (expand_static_init): Use get_guard and friends to
8112         implement guard variables.
8113         * decl2.c (get_temp_name): Assume that the variables created are
8114         always static.
8115         (get_sentry): Rename to ...
8116         (get_guard): ... this.  Implement new ABI guard variables.
8117         (get_guard_bits): New function.
8118         (get_guard_cond): Likewise.
8119         (set_guard): Likewise.
8120         (start_static_initialization_or_destruction): Use them.
8121         (do_static_initialization): Replace sentry with guard throughout.
8122         (do_static_destruction): Likewise.
8123         * init.c (create_temporary_var): Add comment.
8125 2000-06-28  Alex Samuel  <samuel@codesourcery.com>
8127         * mangle.c (find_substitution): Use same_type_p.
8128         (write_encoding): Don't check for substitutions.
8130 2000-06-30  Nathan Sidwell  <nathan@codesourcery.com>
8132         * parse.y (expr_no_comma_rangle): New non-terminal.
8133         (template_parm): Use it for default parameter case.
8134         (template_arg): Use it.
8135         (expr_no_commas): Remove commented out undefined extensions.
8136         * Makefile.in (CONFLICTS): Adjust to 33 s/r & 48 r/r.
8137         * parse.h, parse.c: Rebuilt.
8139 2000-06-29  Mark Mitchell  <mark@codesourcery.com>
8141         * cp-tree.h (flag_const_strings): Remove.
8142         (warn_parentheses): Likewise.
8143         (warn_format): Likewise.
8144         (common_type): Likewise.
8145         (default_conversion): Likewise.
8146         (build_binary_op): Likewise.
8147         (cp_build_binary_op): New macro.
8148         * call.c (build_new_op): Use cp_build_binary_op instead of
8149         build_binary_op.
8150         * class.c (build_vtable_entry_ref): Likewise.
8151         * decl.c (expand_static_init): Likewise.
8152         (compute_array_index_type): Likewise.
8153         (build_enumerator): Likewise.
8154         * decl2.c (delete_sanity): Likewise.
8155         (start_static_initialization_or_destruction): Likewise.
8156         * error.c (dump_type_suffix): Likewise.
8157         * init.c (resolve_offset_ref): Likewise.
8158         (build_new): Likewise.
8159         (build_new_1): Likewise.
8160         (build_vec_delete_1): Likewise.
8161         (build_vec_init): Likewise.
8162         (build_delete): Likewise.
8163         * rtti.c (synthesize_tinfo_fn): Likewise.
8164         (synthesize_tinfo_var): Likewise.
8165         * search.c (expand_upcast_fixups): Likewise.
8166         (fixup_all_virtual_upcast_offsets): Likewise.
8167         * typeck.c (build_array_ref): Likewise.
8168         (get_member_function_from_ptrfunc): Likewise.
8169         (build_binary_op): Add parameter.
8170         (pointer_int_sum): Use cp_build_binary_op.
8171         (pointer_diff): Likewise.
8172         (build_modify_expr): Likewise.
8173         (get_delta_difference): Likewise.
8174         (build_ptrmemfunc): Likewise.
8176 2000-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8178         * cp-tree.h (SET_DECL_ARTIFICIAL): Remove.
8179         * decl.c (create_implicit_typedef): Adjust.
8180         * decl2.c (build_artificial_parm): Adjust.
8181         * method.c (implicitly_declare_fn): Adjust.
8182         * pt.c (push_inline_template_parms_recursive): Adjust.
8183         (process_template_parm): Adjust.
8184         (overloaded_template_name): Adjust.
8185         * semantics.c (finish_template_template_parm): Adjust.
8187 2000-06-28  Mark Mitchell  <mark@codesourcery.com>
8189         * cp-tree.h (CLEAR_BINFO_NEW_VTABLE_MARKED): Remove.
8190         * class.c (update_vtable_entry_for_fn): Correct logic for deciding
8191         where to emit thunks.
8192         (build_vtt): Adjust call to build_vtt_inits.
8193         (build_vtt_inits): Add parameter to indicate whether or not
8194         sub-VTTs for virtual bases should be included.  Adjust handling of
8195         construction vtables.
8196         (get_matching_base): New function.
8197         (dfs_build_vtt_inits): Rename to ...
8198         (dfs_build_secondary_vptr_vtt_inits): Adjust handling of
8199         construction vtables.
8200         (dfs_fixup_binfo_vtbls): Likewise.
8201         (build_ctor_vtbl_groups): Build construction vtables for virtual
8202         bases, too.
8203         (accumulate_vtbl_inits): Tweak logic for deciding whether or not
8204         to build construction vtbls.
8205         (dfs_accumulate_vtbl_inits): Adjust handling of
8206         construction vtables.
8208         * pt.c (tsubst, case TEMPLATE_TEMPLATE_PARM): Handle cv-qualified
8209         types correctly.
8211 2000-06-27  Mark Mitchell  <mark@codesourcery.com>
8213         * decl.c (grokfndecl): Set DECL_CONTEXT for static functions too.
8215 2000-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8217         * search.c (hides): Remove.
8218         (is_subobject_of_p): Add most_derived parameter. Use
8219         CANONICAL_BINFO.
8220         (lookup_field_queue_p): Adjust.
8221         (lookup_field_r): Adjust.
8223 2000-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8225         * decl2.c (handle_class_head): Bash typedefs to the type's main
8226         decl.
8228 2000-06-25  Mark Mitchell  <mark@codesourcery.com>
8230         * cp-tree.h (genrtl_begin_stmt_expr): Rename to ...
8231         (begin_global_stmt_expr): ... this.
8232         (genrtl_finish_stmt_expr): Rename to ...
8233         (finish_global_stmt_expr): ... this.
8234         * init.c (begin_init_stmts): Adjust calls.
8235         (finish_init_stmts): Likewise.
8236         * semantics.c (genrtl_begin_stmt_expr): Rename to ...
8237         (begin_global_stmt_expr): ... this.
8238         (genrtl_finish_stmt_expr): Rename to ...
8239         (finish_global_stmt_expr): ... this.
8241 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8243         * search.c (lookup_member): Fix typo in comment.
8245 2000-06-24  Jason Merrill  <jason@redhat.com>
8247         * decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace.
8248         (push_namespace): Set DECL_CONTEXT for a new NAMESPACE_DECL.
8250 2000-06-24  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8252         * parse.y (complex_direct_notype_declarator): Support global_scope.
8253         * Makefile.in: Adjust conflict count.
8255 2000-06-23  Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
8257         * parse.y (template_arg): Convert TEMPLATE_DECL
8258         that is a template template parameter to
8259         TEMPLATE_TEMPLATE_PARM here.
8261         * cp-tree.def (TEMPLATE_TEMPLATE_PARM): Adjust comment.
8262         * cp-tree.h (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): New macro.
8263         (copy_template_template_parm): Adjust prototype.
8264         * decl.c (grokdeclarator): Remove dead code.
8265         * pt.c (process_template_parm): Tidy.
8266         (lookup_template_class): Construct nodes in
8267         copy_template_template_parm.
8268         (tsubst): Pass TEMPLATE_DECL rather than IDENTIFIER_NODE to
8269         lookup_template_class.  Use TYPE_TI_TEMPLATE.
8270         * tree.c (copy_template_template_parm): Add NEWARGS
8271         parameter.
8272         (mapcar): Adjust call to copy_template_template_parm.
8273         * typeck.c (comptypes): Use TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL.
8274         * method.c (build_template_template_parm_names): Change error
8275         code to avoid compilation warning.
8277         * gxxint.texi: Document template template parameter
8278         name mangling.
8280 2000-06-21  Alex Samuel  <samuel@codesourcery.com>
8282         * Make-lang.in (CXX_LIB2FUNCS): Add cp-demangle.o and dyn-string.o.
8283         (CXX_LIB2SRCS): Add cp-demangle.c and dyn-string.c.
8284         (cp-demangle.o): New rule.
8285         (dyn-string.o): Likewise.
8286         * inc/cxxabi.h (__cxa_demangle): New declaration.
8288 2000-06-22  Mark Mitchell  <mark@codesourcery.com>
8290         * cp-tree.h (BV_USE_VCALL_INDEX_P): New macro.
8291         (BV_GENERATE_THUNK_WITH_VTABLE_P): Likewise.
8292         (lang_decl_flags): Add generate_with_vtable_p.  Make vcall_offset
8293         a tree, not an int.
8294         (THUNK_GENERATE_WITH_VTABLE_P): New macro.
8295         (make_thunk): Change prototype.
8296         (emit_thunk): Rename to use_thunk.
8297         (mangle_thunk): Change prototype.
8298         * class.c (get_derived_offset): Simplify.
8299         (copy_virtuals): Clear BV_USE_VCALL_INDEX_P and
8300         BV_GENERATE_THUNK_WITH_VTABLE_P.
8301         (build_primary_vtable): Simplify.
8302         (add_virtual_function): Use BV_FN, rather than TREE_VALUE.
8303         (dfs_find_base): Remove.
8304         (update_vtable_entry_for_fn): Correct bug in finding the base
8305         where a virtual function was first declared.  Figure out whether
8306         or not to emit a vcall-thunk with the vtables in which it appears.
8307         Correct logic for deciding whether to use an ordinary thunk, or a
8308         vcall thunk.
8309         (finish_struct_1): Remove unnecssary code.
8310         (build_vtbl_initializer): Use ssize_int for the running counter of
8311         negative indices.
8312         (build_vtbl_initializer): Only use vcall thunks where necessary.
8313         Mark thunks as needing to be emitted with their vtables, or not.
8314         (build_vbase_offset_vtbl_entries): Adjust for use of ssize_int in
8315         indices.  Use size_binop.
8316         (dfs_build_vcall_offset_vtbl_entries): Don't rely on
8317         BINFO_PRIMARY_MARKED_P here.  Use BV_FN consistently.  Use
8318         size_binop.
8319         (build_rtti_vtbl_entries): Adjust call to build_vtable_entry.
8320         (build_vtable_entry): Mark thunks as needing to be emitted with
8321         their vtables, or not.
8322         * decl.c (lang_mark_tree): Mark the vcall_offset in a thunk.
8323         * decl2.c (mark_vtable_entries): Use use_thunk instead of
8324         emit_thunk.
8325         * dump.c (dequeue_and_dump): Remove dead code.  Dump new thunk
8326         information.
8327         * error.c (dump_expr): Use BV_FN.
8328         * mangle.c (mangle_thunk): Adjust now that vcall_offset is a tree,
8329         not an int.
8330         * method.c (make_thunk): Likewise.
8331         (emit_thunk): Rename to use_thunk.  Allow callers to decide
8332         whether or not to actually emit the thunk.  Adjust for changes in
8333         representation of vcall offsets.
8334         * search.c (dfs_get_pure_virtuals): Use BV_FN.
8335         * semantics.c (emit_associated_thunks): New function.
8336         (expand_body): Use it.
8337         * ir.texi: Adjust decriptions of thunks.
8339 2000-06-22  Jason Merrill  <jason@redhat.com>
8341         * pt.c (tsubst_decl, case FUNCTION_DECL): Clear DECL_SAVED_TREE.
8342         (tsubst_friend_function): Copy it here.
8344         * decl.c (grok_op_properties): Fix typo.
8346         * decl2.c (delete_sanity): Clarify warning, avoid failure on
8347         deleting void*.
8349         * pt.c (check_explicit_specialization): Clarify error.
8351         * decl.c (pushdecl): Also pull out one of the FUNCTION_DECLs from
8352         an old OVERLOAD when we're declaring a non-function.
8353         (pushdecl, destroy_local_var): Check for error_mark_node.
8354         (warn_extern_redeclared_static): Also bail early if
8355         we're a CONST_DECL.
8356         (push_overloaded_decl): Ignore an old error_mark_node.
8358 2000-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8360         * call.c (build_x_va_arg): Check if in a template decl.
8361         * pt.c (tsubst_copy, case VA_ARG_EXPR): Use build_x_va_arg.
8363 2000-06-20  Alexandre Petit-Bianco  <apbianco@cygnus.com>
8365         * class.c (push_lang_context): TYPE_NAME gets you to the Java
8366         types DECLs.
8367         * decl.c (check_goto): Computed gotos assumed OK.
8369 2000-06-20  Jason Merrill  <jason@redhat.com>
8371         * pt.c (tsubst_decl, case TYPE_DECL): Fix test for TYPE_DECLs
8372         for which we don't need to look for instantiations.
8374 2000-06-21  Nathan Sidwell  <nathan@codesourcery.com>
8376         * parse.y (program): Always call finish_translation_unit.
8377         * parse.c, parse.h: Rebuilt.
8379 2000-06-20  Zack Weinberg  <zack@wolery.cumb.org>
8381         * method.c: Don't include hard-reg-set.h.
8383 2000-06-20  Nathan Sidwell  <nathan@codesourcery.com>
8385         * rtti.c (get_base_offset): Cope when vbase field is in a base.
8387 2000-06-20  Nathan Sidwell  <nathan@codesourcery.com>
8389         * call.c (build_conditional_expr): Use VOID_TYPE_P.
8390         * cvt.c (cp_convert_to_pointer): Likewise.
8391         (convert_to_void): Likewise.
8392         * error.c (dump_expr): Likewise.
8393         * except.c (complete_ptr_ref_or_void_ptr_p): Likewise.
8394         * init.c (build_delete): Likewise.
8395         * method.c (emit_thunk): Likewise.
8396         * optmize.c (declare_return_variable): Likewise.
8397         * rtti.c (get_tinfo_decl_dynamic): Likewise.
8398         (get_typeid): Likewise.
8399         (build_dynamic_cast_1): Likewise.
8400         * typeck.c (composite_pointer_type): Likewise.
8401         (common_type): Likewise.
8402         (build_indirect_ref): Likewise.
8403         (build_binary_op): Likewise.
8404         (build_x_compound_expr): Likewise.
8405         (check_return_expr): Likewise.
8406         * typeck2.c (add_exception_specifier): Likewise.
8408         * mangle.c (write_method_parms): Use direct comparison for end
8409         of parmlist.
8411 2000-06-19  Benjamin Chelf  <chelf@codesourcery.com>
8413         * cp-tree.h (genrtl_try_block): Declare function.
8414         (genrtl_handler): Likewise.
8415         (genrtl_catch_block): Likewise.
8416         (genrtl_ctor_stmt): Likewise.
8417         (genrtl_subobject): Likewise.
8418         (genrtl_decl_cleanup): Likewise.
8419         (genrtl_do_poplevel): Likewise.
8420         (genrtl_do_pushlevel): Likewise.
8421         (genrtl_clear_out_block): Likewise.
8422         (genrtl_goto_stmt): Likewise.
8423         (genrtl_expr_stmt): Likewise.
8424         (genrtl_decl_stmt): Likewise.
8425         (genrtl_if_stmt): Likewise.
8426         (genrtl_while_stmt): Likewise.
8427         (genrtl_do_stmt): Likewise.
8428         (genrtl_return_stmt): Likewise.
8429         (genrtl_for_stmt): Likewise.
8430         (genrtl_break_stmt): Likewise.
8431         (genrtl_continue_stmt): Likewise.
8432         (genrtl_scope_stmt): Likewise.
8433         (genrtl_switch_stmt): Likewise.
8434         (genrtl_case_label): Likewise.
8435         (genrtl_begin_compound_stmt): Likewise.
8436         (genrtl_finish_compound_stmt): Likewise.
8437         (genrtl_compound_stmt): Likewise.
8438         (genrtl_asm_stmt): Likewise.
8439         (genrtl_named_return_value): Likewise.
8440         (genrtl_begin_stmt_expr): Likewise.
8441         (genrtl_finish_stmt_expr): Likewise.
8442         (finish_for_stmt): Removed first argument.
8443         (finish_switch_stmt): Likewise.
8445         * semantics.c (genrtl_try_block): Define function.
8446         (genrtl_handler): Likewise.
8447         (genrtl_catch_block): Likewise.
8448         (genrtl_ctor_stmt): Likewise.
8449         (genrtl_subobject): Likewise.
8450         (genrtl_decl_cleanup): Likewise.
8451         (genrtl_do_poplevel): Likewise.
8452         (genrtl_do_pushlevel): Likewise.
8453         (genrtl_clear_out_block): Likewise.
8454         (genrtl_goto_stmt): Likewise.
8455         (genrtl_expr_stmt): Likewise.
8456         (genrtl_decl_stmt): Likewise.
8457         (genrtl_if_stmt): Likewise.
8458         (genrtl_while_stmt): Likewise.
8459         (genrtl_do_stmt): Likewise.
8460         (genrtl_return_stmt): Likewise.
8461         (genrtl_for_stmt): Likewise.
8462         (genrtl_break_stmt): Likewise.
8463         (genrtl_continue_stmt): Likewise.
8464         (genrtl_scope_stmt): Likewise.
8465         (genrtl_switch_stmt): Likewise.
8466         (genrtl_case_label): Likewise.
8467         (genrtl_begin_compound_stmt): Likewise.
8468         (genrtl_finish_compound_stmt): Likewise.
8469         (genrtl_compound_stmt): Likewise.
8470         (genrtl_asm_stmt): Likewise.
8471         (genrtl_named_return_value): Likewise.
8472         (genrtl_begin_stmt_expr): Likewise.
8473         (genrtl_finish_stmt_expr): Likewise.
8474         (finish_for_stmt): Removed first argument and generate rtl
8475         specific code.
8476         (finish_switch_stmt): Likewise.
8477         (do_poplevel): Removed generate rtl specific code.
8478         (do_pushlevel): Likewise.
8479         (add_tree): Likewise.
8480         (finish_goto_stmt): Likewise.
8481         (finish_expr_stmt): Likewise.
8482         (begin_if_stmt): Likewise.
8483         (finish_if_stmt_cond): Likewise.
8484         (finish_then_clause): Likewise.
8485         (begin_else_clause): Likewise.
8486         (finish_else_clause): Likewise.
8487         (finish_if_stmt): Likewise.
8488         (clear_out_block): Likewise.
8489         (begin_while_stmt): Likewise.
8490         (finish_while_stmt_cond): Likewise.
8491         (finish_while_stmt): Likewise.
8492         (begin_do_stmt): Likewise.
8493         (finish_do_body): Likewise.
8494         (finish_do_stmt): Likewise.
8495         (finish_return_stmt): Likewise.
8496         (begin_for_stmt): Likewise.
8497         (finish_for_init_stmt): Likewise.
8498         (finish_for_cond): Likewise.
8499         (finish_for_expr): Likewise.
8500         (finish_break_stmt): Likewise.
8501         (finish_continue_stmt): Likewise.
8502         (begin_switch_stmt): Likewise.
8503         (finish_switch_cond): Likewise.
8504         (finish_case_label): Likewise.
8505         (begin_try_block): Likewise.
8506         (begin_function_try_block): Likewise.
8507         (finish_try_block): Likewise.
8508         (finish_cleanup_try_block): Likewise.
8509         (finish_cleanup): Likewise.
8510         (finish_function_try_block): Likewise.
8511         (finish_handler_sequence): Likewise.
8512         (finish_function_handler_sequence): Likewise.
8513         (begin_handler): Likewise.
8514         (finish_handler_parms): Likewise.
8515         (begin_catch_block): Likewise.
8516         (finish_handler): Likewise.
8517         (begin_compound_stmt): Likewise.
8518         (finish_compound_stmt): Likewise.
8519         (finish_asm_stmt): Likewise.
8520         (finish_label_stmt): Likewise.
8521         (finish_label_decl): Likewise.
8522         (finish_subobject): Likewise.
8523         (finish_decl_cleanup): Likewise.
8524         (finish_named_return_value): Likewise.
8525         (begin_stmt_expr): Likewise.
8526         (finish_stmt_expr): Likewise.
8528         * decl.c (initialize_local_var): Changed call to finish_expr_stmt
8529         to call genrtl_expr_stmt when appropriate.
8531         * init.c (begin_init_stmts): Changed calls to begin_stmt_expr and
8532         begin_compound_expr to call genrtl_begin_stmt_expr and
8533         genrtl_begin_compound_expr when appropriate.
8534         (finish_init_stmts): Changed calls to finish_compound_expr and
8535         finish_stmt_expr to call genrtl_finish_compound_expr and
8536         genrtl_finish_stmt_expr when appropriate.
8537         (expand_default_init): Changed call to finish_expr_stmt to call
8538         genrtl_expr_stmt when appropriate.
8539         (build_vec_init): Likewise.
8541         * parse.y (simple_stmt): Removed first argument from call to
8542         finish_for_stmt. Removed first argument from call to
8543         finish_switch_stmt.
8545         * parse.c: Regenerated.
8547         * pt.c (tsubst_expr): Removed first argument from call to
8548         finish_for_stmt. Removed first argument from call to
8549         finish_switch_stmt.
8551 2000-06-16  Benjamin Chelf  <chelf@codesourcery.com>
8553         * cp-tree.h (enum cplus_tree_code): Changed __DUMMY to
8554         CP_DUMMY_TREE_CODE. Remove #include "c-common.def".
8556         * lex.c (cplus_tree_code_type[]): Removed #include "c-common.def".
8557         (cplus_tree_code_length[]): Likewise.
8558         (cplus_tree_code_name[]): Likewise.
8559         (init_parse): Added call to add_c_tree_codes. Changed
8560         LAST_AND_UNUSED_TREE_CODE to LAST_C_TREE_CODE.
8562 2000-06-16  Mark Mitchell  <mark@codesourcery.com>
8564         * cp-tree.h (finish_mem_initializers): Declare.
8565         (count_trees): Likewise.
8566         * parse.y (base_init): Use finish_mem_initializers.
8567         * semantics.c (finish_mem_initializers): New function.
8569         * tree.c (count_trees_r): Prototype.  Use DATA parameter to store
8570         the number of trees.
8571         (n_trees): Remove.
8572         (count_trees): Don't use it.
8574 2000-06-15  Jason Merrill  <jason@redhat.com>
8576         * tree.c (count_trees): New debugging function.
8578         * typeck.c (build_x_function_call): Use DECL_FUNCTION_TEMPLATE_P.
8579         * init.c (build_member_call): Pull out the name of a DECL.
8581         * Makefile.in (semantics.o, pt.o): Depend on TIMEVAR_H.
8582         * semantics.c (expand_body): Push to TV_INTEGRATION here.
8583         * optimize.c (optimize_function): Not here.
8584         * pt.c (instantiate_decl): Push to TV_PARSE.
8586 2000-06-15  Mark Mitchell  <mark@codesourcery.com>
8588         * cp-tree.h (struct language_function): Remove x_base_init_list
8589         and x_member_init_list.
8590         (current_base_init_list): Remove.
8591         (current_member_init_list): Likewise.
8592         (setup_vtbl_ptr): Change prototype.
8593         (emit_base_init): Likewise.
8594         (expand_member_init): Likewise.
8595         (reinit_parse_for_function): Remove.
8596         * decl.c (save_function_data): Don't clear x_base_init_list and
8597         x_member_init_list.
8598         (mark_language_function): Don't mark them.
8599         * init.c (perform_member_init): Tweak comment.
8600         (sort_member_init): Take the list of initializers as an argument.
8601         (sort_base_init): Likewise.
8602         (emit_base_init): Likewise.
8603         (expand_member_init): Return the initializer.  Don't use global
8604         variables.
8605         * lex.c (reinit_parse_for_function): Remove.
8606         * method.c (build_template_parm_names): Correct substitution.
8607         (do_build_copy_constructor): Don't use current_member_init_list
8608         and current_base_init_list.
8609         (synthesize_method): Likewise.
8610         * parse.y (base_init): Split mem-initializers into
8611         base-initializers and field-initializers.
8612         (member_init_list): Build up the list here.
8613         (member_init): Return the initializer.
8614         (fn.depfn): Don't use reinit_parse_for_function.
8615         * parse.c: Regenerated.
8616         * pt.c (convert_nontype_argument): Don't make an ADDR_EXPR of the
8617         ERROR_MARK.
8618         (tsubst_expr): Don't use current_member_init_list
8619         and current_base_init_list.
8620         (tsubst_expr_values): Rename to ...
8621         (tsubst_initializer_list): ... this.  Use convert_from_reference.
8622         * semantics.c (setup_vtbl_ptr): Don't use current_member_init_list
8623         and current_base_init_list.
8624         (begin_function_definition): Don't call reinit_parse_for_function.
8626         * dump.c (dequeue_and_dump): Use TREE_VEC_LENGTH with vectors.
8628         * error.c (dump_expr): Handle ADDR_EXPRs with REFERENCE_TYPE
8629         correctly.
8631         * cp-tree.h (DECL_PENDING_INLINE_P): Relax checking.
8633 2000-06-14  Benjamin Chelf  <chelf@codesourcery.com>
8635         * cp-tree.h (IF_COND): Move to c-common.h.
8636         (THEN_CLAUSE): Likewise.
8637         (ELSE_CLAUSE): Likewise.
8638         (WHILE_COND): Likewise.
8639         (WHILE_BODY): Likewise.
8640         (DO_COND): Likewise.
8641         (DO_BODY): Likewise.
8642         (RETURN_EXPR): Likewise.
8643         (EXPR_STMT_EXPR): Likewise.
8644         (FOR_INIT_STMT): Likewise.
8645         (FOR_COND): Likewise.
8646         (FOR_EXPR): Likewise.
8647         (FOR_BODY): Likewise.
8648         (SWITCH_COND): Likewise.
8649         (SWITCH_BODY): Likewise.
8650         (CASE_LOW): Likewise.
8651         (CASE_HIGH): Likewise.
8652         (GOTO_DESTINATION): Likewise.
8653         (COMPOUND_BODY): Likewise.
8654         (ASM_CV_QUAL): Likewise.
8655         (ASM_STRING): Likewise.
8656         (ASM_OUTPUTS): Likewise.
8657         (ASM_INPUTS): Likewise.
8658         (ASM_CLOBBERS): Likewise.
8659         (DECL_STMT_DECL): Likewise.
8660         (STMT_EXPR_STMT): Likewise.
8661         (LABEL_STMT_LABEL): Likewise.
8662         (SCOPE_BEGIN_P): Likewise.
8663         (SCOPE_END_P): Likewise.
8664         (SCOPE_STMT_BLOCK): Likewise.
8665         (SCOPE_NULLIFIED_P): Likewise.
8666         (SCOPE_NO_CLEANUPS_P): Likewise.
8667         (SCOPE_PARTIAL_P): Likewise.
8668         (ASM_VOLATILE_P): Likewise.
8669         (STMT_LINENO): Likewise.
8670         (STMT_LINENO_FOR_FN_P): Likewise.
8672         * cp-tree.def: Removed SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
8673         ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
8674         FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
8675         CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
8676         SCOPE_STMT, CASE_LABEL, STMT_EXPR.
8678         * Makefile.in (CXX_TREE_H): Added $(srcdir)/../c-common.def.
8680         * Make-lang.in (CXX_SRCS): Added $(srcdir)/c-common.def.
8681         (cc1plus$(exeext)): Added $(srcdir)/c-common.def.
8683         * lex.c (cplus_tree_code_type[]): Added '#include "c-common.def"'.
8684         (cplus_tree_code_length[]): Added '#include "c-common.def"'.
8685         (cplus_tree_code_name[]): Added '#include "c-common.def"'.
8687 2000-06-14  Mark Mitchell  <mark@codesourcery.com>
8689         * cp-tree.h (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH): New macro.
8690         * class.c (dfs_find_final_overrider): Set it appropriately.
8691         (dfs_built_vtt_inits): Check BINFO_OVERRIDE_ALONG_VIRTUAL_PATH to
8692         avoid unneeded secondary vptrs.
8694 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
8696         * class.c (build_secondary_vtable): Set DECL_USER_ALIGN.
8697         (check_bitfield_decl, check_field_decl): Likewise.
8698         (build_vtbl_or_vbase_field, build_base_field): Likewise.
8699         (layout_class_type): Set DECL_USER_ALIGN resp. CLASSTYPE_USER_ALIGN.
8700         * decl.c (record_unknown_type): Set TYPE_USER_ALIGN.
8701         (xfer_tag, finish_enum): Likewise.
8702         * decl2.c (finish_builtin_type): Likewise.
8703         * init.c (init_init_processing): Likewise.
8704         * pt.c (instantiate_class_template): Likewise.
8705         * rtti.c (get_tinfo_decl, synthesize_tinfo_fn): Set DECL_USER_ALIGN.
8706         * cp-tree.h (struct lang_type): Add user_align member.
8707         (CLASSTYPE_USER_ALIGN): Define.
8709 Tue Jun 13 15:48:03 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8711         * Make-lang.in (c++.install-common): Install g++-cross in
8712         $(gcc_tooldir)/bin as g++ and c++; g++ in $(bindir) as
8713         $(target_alias)-g++ and $(target_alias)-c++.
8715 2000-06-12  Mark Mitchell  <mark@codesourcery.com>
8717         * class.c (vcall_offset_data_s): Add last_init and fns.
8718         (overrides): Rename to same_signature_p.
8719         (dfs_find_final_overrider): Adjust accordingly.
8720         (mark_overriders): Likewise.
8721         (warn_hidden): Likewise.
8722         (build_vtbl_initializer): Reorganize machinery for building things
8723         at negative offsets.
8724         (build_vcall_and_vbase_vtbl_entries): Likewise.
8725         (build_vbase_offset_vtbl_entries): Likewise.
8726         (dfs_build_vcall_offset_vtbl_entries): Correct order of vcall
8727         offset entries.  Do not create two entries for functions with the
8728         same signature.
8729         (build_vcall_offset_vtbl_entries): Initialize vod->fns.
8730         (build_rtti_vtbl_entries): Reorganize machinery for building things
8731         at negative offsets.
8733         * optimize.c (expand_call_inline): Don't recurse into the code
8734         used to initialize the parameters more than once.
8736 2000-06-11  Mark Mitchell <mark@codesourcery.com>
8738         * mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment.
8739         (is_std_substitution): Don't check CLASSTYPE_USE_TEMPLATE here.
8740         (find_substitution): Only use the `Sa' substitution for
8741         std::allocator, not instantiations of it.
8742         (write_template_prefix): Move comment.  Only use a TREE_LIST to
8743         represent substitutions for a member template.
8744         (write_array_type): Mangle array dimensions correctly.
8745         * optimize.c (maybe_clone_body): Copy more information from the
8746         cloned function.
8747         * pt.c (regenerate_decl_from_template): Preserve DECL_USE_TEMPLATE
8748         on the regenerated declaration.
8750 2000-06-11  Chip Salzenberg  <chip@valinux.com>
8751             Mark Mitchell <mark@codesourcery.com>
8753         * class.c (build_vtable): Clarify comment.
8754         (build_ctor_vtbl_group): Pass the most derived type to
8755         build_vtable.
8757 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8759         * decl2.c (compare_options): Don't needlessly cast away const-ness.
8761 2000-06-10  Mark Mitchell  <mark@codesourcery.com>
8763         * decl.c (add_binding): Handle duplicate declarations of external
8764         variables.
8766 2000-06-09  Chip Salzenberg  <chip@valinux.com>
8767             Mark Mitchell <mark@codesourcery.com>
8769         * mangle.c (write_number): Take an unsigned HOST_WIDE_INT as an
8770         argument.
8771         (write_signed_number): New macro.
8772         (write_unsigned_number): Likewise.
8773         (write_source_name): Use them.
8774         (write_number): Handle signed and unsigned values.
8775         (write_integer_cst): Use tree_int_cst_sgn, and use
8776         write_unsigned_number or write_signed_number as appropriate.
8777         (write_discriminator): Use write_unsigned_number or
8778         write_signed_number as appropriate.
8779         (write_template_arg_literal): Likewise.
8780         (write_array_type): Use tree_low_cst.
8781         (write_template_parm):  Use write_unsigned_number or
8782         write_signed_number as appropriate.
8783         (write_substitution): Adjust call to write_number.
8784         (write_type): Get the TYPE_MAIN_VARIANT before mangling it.
8785         (write_expression): Handle non-type template arguments of
8786         reference type correctly.
8787         (mangle_thunk): Use write_signed_number.
8789 2000-06-09  Chip Salzenberg  <chip@valinux.com>
8791         * mangle.c (find_substition): Don't mangle objects with typename
8792         substitutions (e.g. "cin" as "Si").
8794 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
8796         * call.c (add_candidate): Use ggc_alloc_cleared.
8797         * decl.c (lookup_label): Likewise.
8798         * lex.c (retrofit_lang_decl): Likewise.
8800 2000-06-09  Jason Merrill  <jason@casey.soma.redhat.com>
8802         * semantics.c (expand_body): Push to TV_EXPAND.
8803         * optimize.c (optimize_function): Push to TV_INTEGRATION.
8804         * decl.c (start_function): Always call announce_function.
8806         * tinfo2.cc: Just declare abort.
8808 2000-06-09  Gabriel Dos Reis  <gdr@codesourcery.com>
8810         * lex.c (DEF_OPERATOR): Say `operator@' -not- `operator @'
8811         whenever @ is a symbolic name.
8813 2000-06-08  Jakub Jelinek  <jakub@redhat.com>
8815         * method.c (make_thunk): Clear DECL_VTT_PARM in thunk.
8817 2000-06-07  Mark Mitchell  <mark@codesourcery.com>
8819         * decl.c (pushdecl): Look up functions by DECL_NAME, not
8820         DECL_ASSEMBLER_NAME.
8822 2000-06-06  Mark Mitchell  <mark@codesourcery.com>
8824         * decl2.c (c_language): Define.
8826 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
8828         * lex.c (lang_init_options): Tweak.
8830         * decl2.c: Remove #inclusion of diagnostic.h
8831         (lang_decode_option): Move diagnostic formatting options to
8832         toplevel.
8834         * lang-options.h: Remove documentation for diagnostic options.
8836         * Makefile.in (lex.o): Depends upon diagnostic.h
8838 2000-06-06  Mark Mitchell  <mark@codesourcery.com>
8840         * decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have
8841         the same DECL_RESULT, it's not a redefinition.
8842         * pt.c (tsubst_decl): Remove code to handle illegal
8843         specializations.
8845 2000-06-06  Nathan Sidwell  <nathan@codesourcery.com>
8847         * exception.cc: (__eh_alloc, __eh_free): Moved to libgcc2.c
8849 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
8851         * search.c (maybe_suppress_debug_info): Don't check
8852         CLASSTYPE_INTERFACE_ONLY if CLASSTYPE_INTERFACE_KNOWN isn't set.
8854         * pt.c (mark_decl_instantiated): Do SET_DECL_EXPLICIT_INSTANTIATION
8855         here if extern_p.
8857         Remember instantiation context in deferred instantiations.
8858         * cp-tree.h (struct tinst_level): Remove.
8859         (TINST_DECL, TINST_LINE, TINST_FILE): New macros.
8860         * pt.c (current_tinst_level): Now a tree.
8861         (print_template_context, push_tinst_level, pop_tinst_level,
8862         tinst_for_decl): Adjust.
8863         (reopen_tinst_level): New fn.
8864         (init_pt): Register current_tinst_level as a root.
8865         (add_pending_template): Put current_tinst_level in TREE_PURPOSE
8866         of the pending templates list.
8867         (instantiate_pending_templates): Adjust.  Call reopen_tinst_level.
8868         * lex.c (extract_interface_info): Adjust.
8869         * decl2.c (warn_if_unknown_interface): Adjust.
8871 2000-06-05  Mark Mitchell  <mark@codesourcery.com>
8873         * class.c (indirect_primary_base_p): New function.
8874         (determine_primary_base): Use it.
8876 2000-06-05  Nathan Sidwell  <nathan@codesourcery.com>
8878         Update new-abi dynamic cast algorithm.
8879         * tinfo.cc (__class_type_info::__dyncast_result): Add
8880         whole_details. Adjust constructor.
8881         (__vmi_class_type_info::__do_dyncast): Adjust for vmi_flags.
8882         Avoid unnecessary searching.
8883         (__dynamic_cast): Adjust for __dyncast_result::whole_details.
8885 Mon Jun  5 06:48:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8887         * decl.c (init_decl_processing): Don't call record_component_aliases.
8888         * tree.c (build_cplus_array_type_1): Likewise.
8890 2000-06-04  Mark Mitchell  <mark@codesourcery.com>
8892         * ir.texi: Correct typo.
8893         * mangle.c (write_expression): Handle non-type template arguments
8894         with reference type.
8895         * method.c (build_overload_value): Likewise.
8896         * pt.c (convert_nontype_argument): Explicitly represent conversion
8897         to a reference with an ADDR_EXPR.
8898         (unify): Always unify arguments in left-to-right order.
8900 2000-06-03  Alex Samuel    <samuel@codesourcery.com>
8901             Mark Mitchell  <mark@codesourcery.com>
8903         * Make-lang.in (CXX_SRCS): Add mangle.c.
8904         * Makefile.in (CXX_OBJS): Add mangle.o.
8905         (mangle.o): New rule.
8907         * class.c (local_classes): New variable.
8908         * class.c (get_vtable_name): Use mangle_vtable_for_type for new ABI.
8909         (get_vtt_name): Use mangle_vtt_name for new ABI.
8910         (init_class_processing): Initialize local_classes.
8911         (build_ctor_vtbl_group): Use mangle_ctor_vtbl_for_type for new ABI.
8912         * cp-tree.h (cp_tree_index): Add CPTI_STD_IDENTIFIER.
8913         (std_identifier): New macro.
8914         (DECL_VOLATILE_MEMFUNC_P): New macro.
8915         (DECL_NAMESPACE_STD_P): Likewise.
8916         (local_classes): Declare.
8917         (get_mostly_instantiated_function_type): Declare.
8918         (init_mangle): Declare.
8919         (mangle_decl): Likewise.
8920         (mangle_type_string): Likewise.
8921         (mangle_type): Likewise.
8922         (mangle_typeinfo_for_type): Likewise.
8923         (mangle_typeinfo_string_for_type): Likewise.
8924         (mangle_vtbl_for_type): Likewise.
8925         (mangle_vtt_for_type): Likewise.
8926         (mangle_ctor_vtbl_for_type): Likewise.
8927         (mangle_thunk): Likewise.
8928         (mangle_conv_op_name_for_type): Likewise.
8929         (mangle_guard_variable): Likewise.
8930         * decl.c (pushtag): Keep track of local classes.
8931         (initialize_predefined_identifiers): Initialize std_identifier.
8932         (init_decl_processing): Use std_identifier.
8933         (start_decl): Don't treat instantiations as specializations.
8934         (grokdeclarator): Likewise.
8935         (grokvardecl): Call mangle_decl for new ABI.  Only set mangled
8936         name for fully-instantiated templates.
8937         * decl2.c (grokclassfn): Use set_mangled_name_for_decl for
8938         destructors with the new ABI.
8939         (finish_static_data_member_decl): Use mangle_decl under the new ABI.
8940         (grokfield): Use mangle_type for new ABI.
8941         (grokoptypename): Use mangle_conv_op_for_type for new ABI.
8942         (get_sentry): Use mangle_guard_variable for new ABI.
8943         (start_static_initialization_or_destruction): Likewise.
8944         * expr.c (extract_aggr_init): Remove.
8945         (extract_scalar_init): Likewise.
8946         (extract_init): Remove #if 0'd code.
8947         * mangle.c: New function.
8948         * method.c (build_mangled_name): Assert not flag_new_abi.
8949         (build_static_name): Likewise.
8950         (build_decl_overload_real): Likewise.
8951         (build_typename_overload): Likewise.
8952         (build_overload_with_type): Likewise.
8953         (build_overload_name): Likewise.
8954         (get_ctor_vtbl_name): Likewise.
8955         (start_squangling): Likewise.
8956         (get_id_2): Likewise.
8957         (set_mangled_name_for_decl): Call mangle_decl for new ABI.
8958         (init_method): Call init_mangle for new ABI.
8959         (make_thunk): Call mangle_thunk for new ABI.
8960         * operators.def: Correct new ABI manglings for the `%' operator.
8961         Add `::' operator.
8962         * pt.c (build_template_decl): Copy DECL_OVERLOADED_OPERATOR_P and
8963         DECL_ASSIGNMENT_OPERATOR_P to the TEMPLATE_DECL.
8964         (lookup_template_class): Call mangle_decl for new ABI.
8965         (get_mostly_instantiated_function_type): New function.
8966         (set_mangled_name_for_template_decl): Use it.
8967         (tsubst_decl): Use set_mangled_name_for_decl for destructors with
8968         the new ABI.  Use mangle_conv_op_name_for_type for instantiated
8969         conversion op names.
8970         * rtti.c (tinfo_name): Call mangle_type_string for new ABI.
8971         (get_tinfo_decl): Call mangle_typeinfo_for_type for new ABI.
8972         (tinfo_base_init):  Likewise.  Mangle typeinfo string name with
8973         mangle_typeinfo_string_for_type.
8975 2000-06-03  Mark Mitchell  <mark@codesourcery.com>
8977         * cp-tree.h (TMPL_ARGS_LEVEL): Clarify comment.
8978         (INNERMOST_TEMPLATE_ARGS): New macro.
8979         (innermost_args): Remove.
8980         (get_innermost_template_args): New function.
8981         * decl2.c (arg_assoc_class): Use INNERMOST_TEMPLATE_ARGS.
8982         * error.c (dump_function_decl): Be caution when using
8983         most_general_template.
8984         * method.c (build_template_parm_names):  Use
8985         INNERMOST_TEMPLATE_ARGS.
8986         * pt.c (add_to_template_args): Tidy comment
8987         (get_innermost_template_args): New function.
8988         (check_explicit_specialization): Clear DECL_INITIAL for a new
8989         specialization.
8990         (process_partial_specialization): Use INNERMOST_TEMPLATE_ARGS.
8991         Tidy.
8992         (push_template_decl): Always register specializations of the most
8993         general template.
8994         (convert_template_argument): Use INNERMOST_TEMPLATE_ARGS.
8995         (coerce_template_parms): Likewise.
8996         (lookup_template_class): Likewise.
8997         (innermost_args): Remove.
8998         (tsubst_decl): Use INNERMOST_TEMPLATE_ARGS.
8999         (tsubst_decl): Handle tricky specializations.  Use
9000         get_innermost_template_args.
9001         (instantiate_template): Simplify handling of partial
9002         instantiations.
9003         (get_class_bindings): Use INNERMOST_TEMPLATE_ARGS.
9004         (most_general_template): Reimplement, in a more straightforward
9005         manner.
9006         (regenerate_decl_from_template): Tweak formatting.  Use
9007         TMPL_ARGS_DEPTH for clarity.
9008         (set_mangled_name_for_template_decl): Use INNERMOST_ARGS.
9010         * dump.c (dequeue_and_dump): Dump information about thunks.
9012 2000-06-01  Richard Henderson  <rth@cygnus.com>
9014         * decl.c (init_decl_processing): Set lang_get_alias_set first thing.
9016 2000-06-01  Richard Henderson  <rth@cygnus.com>
9018         * decl2.c (unsupported_options): Fix typo, make const.
9019         (lang_decode_option): Fix bsearch argument order.
9021 2000-06-01  Mark Mitchell  <mark@codesourcery.com>
9023         * init.c (resolve_offset_ref): Remove check for TREE_ADDRESSABLE
9024         on FIELD_DECLs.
9026 Wed May 31 14:09:00 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9028         * cp-tree.h (c_get_alias_set): Deleted.
9029         * Makefile.in (decl.o): Include ../expr.h.
9030         * decl.c (expr.h): Include.
9031         (init_decl_processing): Call record_component_aliases for arrays.
9032         (grokdeclarator): Likewise.
9033         Set TREE_ADDRESSABLE for fields that aren't bitfields.
9034         * tree.c (build_cplus_array_type_1): Call record_component_aliases.
9036 2000-05-31  Mark Mitchell  <mark@codesourcery.com>
9038         Remove guiding declaration support.
9039         * cp/cp-tree.h (flag_dump_translation_unit): Make it const.
9040         (flag_guiding_decls): Remove.
9041         * call.c (build_user_type_conversion_1): Remove support for
9042         guiding decls.
9043         (build_new_function_call): Likewise.
9044         (build_new_op): Likewise.
9045         (build_new_method_call): Likewise.
9046         * decl.c (start_function): Likewise.
9047         * friend.c (is_friend): Likewise.
9048         (do_friend): Likewise.
9049         * decl2.c ((flag_dump_translation_unit): Make it const.
9050         (flag_guiding_decls): Remove.
9051         (unsupported_options): New variable
9052         (compare_options): New function.
9053         (lang_decode_option): Use them.
9055         * decl.c (build_cp_library_fn): Set DECL_CONTEXT.
9057         * method.c (mangle_expression): Adjust test for legal expression
9058         operators.
9060         * pt.c (instantiate_decl): Save and restore the local
9061         specializations list.
9063 2000-05-30  Jason Merrill  <jason@decepticon.cygnus.com>
9065         * decl.c (grok_reference_init): Pass LOOKUP_ONLYCONVERTING.
9067 2000-05-30  Mark Mitchell  <mark@codesourcery.com>
9069         * call.c (add_template_candidate_real): Handle member template
9070         constructors for classes with virtual bases.
9071         (build_user_type_conversion_1): Use in_charge_arg_for_name.
9072         (build_new_method_call): Use DECL_NONSTATIC_MEMBER_FUNCTION_P.
9074         * ir.texi: Update thunk documentation.
9076         * call.c (joust): Fix handling of overloaded builtin operators.
9078 2000-05-30  Zack Weinberg  <zack@wolery.cumb.org>
9080         * cp-tree.h (DECL_ANTICIPATED): New macro.
9081         Document new use of DECL_LANG_FLAG_7.
9082         * decl.c (builtin_function): Set DECL_ANTICIPATED on builtins
9083         in the user namespace.
9084         * lex.c (do_identifier): If the identifier's declaration has
9085         DECL_ANTICIPATED on, it has not yet been declared.  But do not
9086         replace it with an ordinary implicit declaration.
9088         * tinfo2.cc: Include stdlib.h.
9090 2000-05-29  Mark Mitchell  <mark@codesourcery.com>
9092         * cp-tree.h (CLASSTYPE_ALIGN_UNIT): New macro.
9093         * class.c (layout_empty_base): Use CLASSTYPE_ALIGN_UNIT, not
9094         CLASSTYPE_ALIGN.
9096 2000-05-28  Gabriel Dos Reis  <gdr@codesourcery.com>
9098         * decl2.c (lang_decode_option): Use skip_leading_substring instead
9099         of plain strncmp.
9101 2000-05-28  Alexandre Oliva  <aoliva@cygnus.com>
9103         * operators.def (<?): Duplicated, should have been...
9104         (>?): this.  Fixed.
9106 2000-05-27  Alex Samuel    <samuel@codesourcery.com>
9107             Mark Mitchell  <mark@codesourcery.com>
9109         * cp-tree.h (ansi_opname): Make it a macro.
9110         (ansi_assopname): Likewise.
9111         (struct lang_decl_flags): Add assignment_operator_p.
9112         (struct lang_decl): Add operator_code.
9113         (DECL_VTT_PARM): Adjust.
9114         (DECL_OVERLOADED_OPERATOR_P): Return the operator_code for an
9115         overloaded operator.
9116         (SET_OVERLOADED_OPERATOR_CODE): New macro.
9117         (DECL_ASSIGNMENT_OPERATOR_P): New macro.
9118         (DECL_ARRAY_DELETE_OPERATOR_P): Adjust.
9119         (opname_tab): Remove.
9120         (assignop_tab): Likewise.
9121         (operator_name_info_t): New type.
9122         (operator_name_info): New variable.
9123         (assignment_operator_name_info): Likewise.
9124         (build_cp_library_fn): Remove declaration.
9125         (push_cp_library_fn): Likewise.
9126         (operator_name_string): Likewise.
9127         (build_decl_overload): Likewise.
9128         * call.c (print_z_candidates): Simplify.
9129         (build_object_call): Adjust usage of ansi_opname.  Use
9130         DECL_OVERLOADED_OPERATOR_P.
9131         (op_error): Adjust operator name lookup.
9132         (build_conditional_expr): Adjust usage of ansi_opname.
9133         (build_new_op): Likewise.
9134         (build_op_delete_call): Likewise.
9135         (build_over_call): Likewise.
9136         (joust): Use DECL_OVERLOADED_OPERATOR_P.
9137         * decl.c (duplicate_decls): Copy operator_code.
9138         (init_decl_processing): Adjust parameters to push_cp_library_fn.
9139         (builtin_function): Adjust parameters to build_library_fn_1.
9140         (build_library_fn_1): Accept an overloaded operator code.
9141         (build_library_fn): Pass ERROR_MARK.
9142         (build_cp_library_fn): Accept an overloaded operator code.
9143         (push_cp_library_fn): Likewise.
9144         (grokfndecl): Tweak.
9145         (grokdeclarator): Simplify code to compute names of overloaded
9146         operators.  Adjust use of ansi_opname.
9147         (ambi_op_p): Work on tree_codes, not identifiers.
9148         (unary_op_p): Likewise.
9149         (grok_op_properties): Likewise.
9150         (start_function): Use DECL_OVERLOADED_OPERATOR_P.
9151         (lang_mark_tree): Don't try to mark the operator_code.
9152         * decl2.c (grok_function_init): Use DECL_OVERLOADED_OPERATOR_P.
9153         * error.c (dump_decl): Remove special handling for operator
9154         names.
9155         (dump_function_name): Likewise.
9156         (dump_expr): Adjust name lookup of operators.
9157         (op_to_string): Simplify.
9158         (assop_to_string): Likewise.
9159         * init.c (build_new_1): Adjust use of ansi_opname.
9160         * lex.c (opname_tab): Remove.
9161         (assignop_tab): Likewise.
9162         (ansi_opname): Likewise.
9163         (ansi_assopname): Likewise.
9164         (operator_name_string): Likewise.
9165         (reinit_lang_specific): Likewise.
9166         (operator_name_info): New variable.
9167         (assignment_operator_name_info): Likewise.
9168         (init_operators): New function.
9169         (init_parse): Use it.
9170         (do_identifier): Adjust use of ansi_opname.
9171         * method.c (mangle_expression): Don't use ansi_opname for
9172         mangling.
9173         (build_decl_overload_real): Use DECL_OVERLOADED_OPERATOR_P.
9174         (build_decl_overload): Remove.
9175         (build_typename_overload): Use OPERATOR_TYPENAME_FORMAT directly.
9176         (do_build_assign_ref): Adjust use of ansi_opname.
9177         (synthesize_method): Likewise.
9178         (implicitly_declare_fn): Likewise.
9179         * operators.def: New file.
9180         * parse.y (operator): Adjust use of ansi_opname.
9181         * pt.c (tsubst_decl): Use IDENTIFIER_OPNAME_P.
9182         (set_mangled_name_for_template_decl): Don't play games with
9183         current_namespace.
9184         (special_function_p): Adjust use of ansi_opname.
9185         * typeck.c (check_return_expr): Likewise.
9186         * Make-lang.in (cc1plus): Depend on operators.def.
9187         * Makefile.in (lex.o): Likewise.
9188         (decl.o): Likewise.
9190 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
9192         * Make-lang.in (cplib2.ready): Eradicate.
9194 Sat May 27 11:25:46 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9196         * method.c (mangle_expression): Use TREE_CODE_LENGTH.
9197         * tree.c (break_out_calls, build_min_nt): Use TREE_CODE_LENGTH.
9198         (built_min, cp_tree_equal): Likewise.
9200 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
9202         * class.c (layout_nonempty_base_or_field): Replace
9203         `record_layout_info' with `record_layout_info_s'.
9205 2000-05-26  Jason Merrill  <jason@casey.soma.redhat.com>
9207         Fix goto checking.
9208         * cp-tree.h (struct language_function): x_named_labels is now
9209         a struct named_label_list*.
9210         * decl.c (struct named_label_use_list): Renamed from...
9211         (struct named_label_list): ...this.  New struct.
9212         (push_binding_level): Don't set eh_region.
9213         (note_level_for_eh): New fn.
9214         (pop_label): Take label and old value directly.
9215         (pop_labels): Adjust for new named_labels format.
9216         (lookup_label): Likewise.
9217         (poplevel): Note characteristics of a binding level containing a
9218         named label.  Mess with named label lists earlier.
9219         (mark_named_label_lists): New fn.
9220         (mark_lang_function): Call it.
9221         (use_label): New fn, split out from...
9222         (make_label_decl): ...here.  Don't call it.
9223         (decl_jump_unsafe, check_previous_goto, check_previous_goto_1,
9224         check_previous_gotos): New fns, split out from...
9225         (define_label): ...here.
9226         (check_switch_goto): New fn.
9227         (define_case_label): Call it.
9228         (check_goto): New fn.
9229         * semantics.c (finish_goto_stmt): Call it and use_label.
9230         (begin_compound_stmt): If we're a try block, call note_level_for_eh.
9231         (expand_stmt): Never pass 1 as DONT_JUMP_IN to expand_end_bindings.
9233 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
9235         * class.c (build_vtable_entry_ref): Correct usage of
9236         get_vtbl_decl_for_binfo.
9238         * decl2.c (grokclassfn): Set DECL_LANGUAGE here.
9239         * method.c (implicitly_declare_fn): Not here.
9241 2000-05-26  Nathan Sidwell  <nathan@codesourcery.com>
9243         * cp-tree.h (CPTI_PTMD_DESC_TYPE): Rename to ...
9244         (CPTI_PTMD_DESC_TYPE): ... here.
9245         (ptmd_desc_type_node): Rename to ...
9246         (ptm_desc_type_node): ... here.
9247         * decl.c: Likewise.
9248         * rtti.c (ptmd_initializer): Rename to ...
9249         (ptm_initializer): ... here.
9250         (sythesize_tinfo_var): Adjust. Deal with pointer to member
9251         function.
9252         (create_tinfo_types): Adjust.
9254 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
9256         Finish implementation of VTTs.
9257         * cp-tree.h (cp_tree_index): Add CPTI_VTT_PARM_TYPE and
9258         CPTI_VTT_PARM_IDENTIFIER.
9259         (vtt_parm_identifier): New macro.
9260         (vtt_parm_type): Likewise.
9261         (BINFO_SUBVTT_INDEX): Likewise.
9262         (BINFO_VPTR_INDEX): Likewise.
9263         (struct lang_decl): Add vtt_parm.
9264         (DECL_VTT_PARM): New macro.
9265         (DECL_USE_VTT_PARM): Likewise.
9266         (DECL_NEEDS_VTT_PARM_P): Likewise.
9267         (get_vtt_name): Declare.
9268         (build_artificial_parm): Likewise.
9269         (fixup_all_virtual_upcast_offsets): Likewise.
9270         (expand_indirect_vtbls_init): Remove.
9271         * call.c (build_new_method_call): Pass the vtt to subobject
9272         constructors and destructors.
9273         * class.c (get_vtt_name): Give it external linkage.
9274         (build_clone): Handle the magic VTT parameters for clones.
9275         (clone_function_decl): Fix typo in comment.
9276         (build_vtt): Keep track of the indices in the VTTs where various
9277         entities are stored.
9278         (build_vtt_inits): Likewise.
9279         (dfs_build_vtt_inits): Likewise.
9280         (build_ctor_vtbl_group): Tweak type of construction vtables.
9281         (dfs_accumulate_vtbl_inits): Build vtables for all bases, even
9282         primary bases, when building construction vtables.
9283         * decl.c (duplicate_decls): Handle DECL_VTT_PARM.
9284         (initialize_predefined_identifiers): Add vtt_parm_identifier.
9285         (init_decl_processing): Initialize vtt_parm_type.
9286         (grokfndecl): Use DECL_OVERLOADED_OPERATOR_P.
9287         (lang_mark_tree): Make vtt_parm.
9288         * decl2.c (build_artificial_parm): New function.
9289         (maybe_retrofit_in_chrg): Use it.  Add VTT parameters.
9290         (grokclassfn): Use build_artificial_parm.
9291         * init.c (initialize_vtbl_ptrs): Call
9292         fixup_all_virtual_upcast_offsets directly.
9293         (perform_member_init): Use the complete subobject destructor for
9294         member cleanups.
9295         (build_vtbl_address): New function.
9296         (expand_virtual_init): Handle VTTs.
9297         * optimize (maybe_clone_body): Likewise.
9298         * search.c (fixup_all_virtual_upcast_offsets): Give it external
9299         linkage.
9300         (expand_indirect_vtbls_init): Remove.
9301         * semantics.c (setup_vtbl_ptr): Fix typos in comment.
9302         * tree.c (make_binfo): Make them bigger.
9304 2000-05-25  Nathan Sidwell  <nathan@codesourcery.com>
9306         * inc/cxxabi.h (__pbase_type_info): Define, based on
9307         __pointer_type_info.
9308         (__pointer_type_info): Derive from __pbase_type_info. Adjust.
9309         (__pointer_to_member_type_info): Likewise.
9310         * tinfo2.cc (__pbase_type_info::~__pbase_type_info): Implement.
9311         (__pointer_to_member_type_info::__is_pointer_p): Remove.
9312         (__pointer_type_info::__do_catch): Rename to ...
9313         (__pbase_type_info::__do_catch): ... here. Adjust.
9314         (__pbase_type_info::__pointer_catch): Implement.
9315         (__pointer_type_info::__pointer_catch): Adjust.
9316         (__pointer_to_member_type_info::__pointer_catch): Adjust.
9318 2000-05-25  Nathan Sidwell  <nathan@codesourcery.com>
9320         * tinfo.h (__user_type_info::contained_virtual_p): New
9321         predicate.
9322         * tinfo.cc (__user_type_info::do_upcast): Fix bug with diamond
9323         shaped hierarchy.
9324         (__vmi_class_type_info::__do_upcast): Fix bug with NULL pointer to
9325         diamond shaped hierarchy. Add early out for mixed diamond and
9326         duplicate shaped hierarchy.
9328 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
9330         * cp-tree.h (build_delete): Change prototype.
9331         (build_vec_delete): Likewise.
9332         * call.c (build_scoped_method_call): Use special_function_kind
9333         values to indicate the kind of destruction to be done.
9334         (build_method_call): Likewise.
9335         * decl.c (finish_destructor_body): Likewise.
9336         (maybe_build_cleanup_1): Likewise.  Rename to ...
9337         (maybe_build_cleanup): ... this.
9338         * decl2.c (delete_sanity): Use special_function_kind
9339         values to indicate the kind of destruction to be done.
9340         (build_cleanup): Likewise.
9341         * init.c (perform_member_init): Likewise.
9342         (build_vec_delete_1): Likewise.
9343         (build_dtor_call): Simplify.
9344         (build_delete): Use special_function_kind
9345         values to indicate the kind of destruction to be done.
9346         (build_vbase_delete): Likewise.
9347         (build_vec_delete): Likewise.
9349         * init.c (sort_member_init): Fix typo in error message generation
9350         code.
9352 Mon May 15 11:46:29 2000  Donald Lindsay  <dlindsay@cygnus.com>
9354         * semantics.c (begin_class_definition): make the packed
9355         attribute be sensitive to the "-fpack-struct" command line flag
9357 2000-05-24  Nathan Sidwell  <nathan@codesourcery.com>
9359         Update new-abi upcast algorithm.
9360         * inc/cxxabi.h (__class_type_info::__do_upcast): Change
9361         prototype and meaning of return value.
9362         (__si_class_type_info::__do_upcast): Likewise.
9363         (__vmi_class_type_info::__do_upcast): Likewise.
9364         * tinfo.cc (__class_type_info::__upcast_result): Replace
9365         whole2dst with part2dst. Adjust ctor.
9366         (__class_type_info::__do_upcast): Adjust call of worker function.
9367         (__class_type_info::__do_upcast): Adjust.
9368         (__si_class_type_info::__do_upcast): Adjust. Use parent's
9369         __do_upcast.
9370         (__vmi_class_type_info::__do_upcast): Likewise. Fix private
9371         virtual base in diamond hierarchy bug.
9373 2000-05-23  Mark Mitchell  <mark@codesourcery.com>
9375         * cp-tree.h (lang_decl_flags): Rename mutable_flag to uninlinable
9376         and bitfield to tinfo_fn_p.
9377         (DECL_TINFO_FN_P): Adjust.
9378         (SET_DECL_TINFO_FN_P): Likewise.
9379         (DECL_MUTABLE_P): Likewise.
9380         (DECL_C_BIT_FIELD): Likewise.
9381         (SET_DECL_C_BIT_FIELD): Likewise.
9382         (CLEAR_DECL_C_BIT_FIELD): Likewise.
9383         (DECL_UNINLINABLE): Likewise.
9384         * class.c (alter_access): Call retrofit_lang_decl if ncessary.
9385         (handle_using_decl): Remove assertion.
9386         (build_vtbl_or_vbase_field): Use build_decl, not build_lang_decl,
9387         to build FIELD_DECLs.
9388         (build_base_field): Likewise.
9389         (layout_class_type): Likewise.
9390         * decl.c (init_decl_processing): Likewise.
9391         (build_ptrmemfunc_type): Likewise.
9392         (grokdeclarator): Likewise.
9393         * decl2.c (grok_x_components): Likewise.
9394         * except.c (call_eh_info): Likewise.
9395         * init.c (init_init_processing): Likewise.
9396         * rtti.c (expand_class_desc): Likewise.
9397         (create_pseudo_type_info): Likewise.
9398         (get_vmi_pseudo_type_info): Likewise.
9399         (create_tinfo_types): Likewise.
9400         * ptree.c (print_lang_decl): Adjust.
9401         * typeck.c (build_component_ref): Don't check DECL_LANG_SPECIFIC
9402         before checking DECL_MUTABLE_P.
9404         * decl2.c (maybe_retrofit_in_chrg): Don't create in-charge
9405         parameters for template functions.
9406         * pt.c (tsubst_decl): Make sure we call maybe_retrofit_in_chrg for
9407         destructors as well as constructors.
9409 2000-05-22  Mark Mitchell  <mark@codesourcery.com>
9411         * class.c (build_ctor_vtbl_group): Set inits.
9412         * optimize.c (maybe_clone_body): Set DECL_INLINE and
9413         DECL_THIS_INLINE appropriately for clones.
9415         * cp-tree.h (IDENTIFIER_TYPENAME_P): Use a flag, not strncmp.
9416         (DECL_CONV_FN_P): Simplify.
9417         (DECL_OPERATOR): Remove.
9418         (language_to_string): Declare.
9419         * decl.c (duplicate_decls): Fix typo in comment.
9420         (grokdeclarator): Adjust use of IDENTIFIER_TYPENAME_P.
9421         (grok_op_properties): Use DECL_CONV_FN_P instead of
9422         IDENTIFIER_TYPENAME_P.
9423         * dump.c (dequeue_and_dump): Dump the language linkage of
9424         declarations.
9425         * error.c (language_to_string): Give it external linkage.
9426         * method.c (build_typename_overload): Set IDENTIFIER_TYPENAME_P.
9427         (implicitly_declare_fn): Set DECL_LANGUAGE.
9428         * pt.c (check_explicit_specialization): Use DECL_CONV_FN_P, not
9429         IDENTIFIER_TYPENAME_P.
9430         (tsubst_decl): Likewise.
9431         (tsubst_copy): Adjust use of IDENTIFIER_TYPENAME_P.
9432         * semantics.c (finish_member_declaration): Don't mark members of
9433         classes declared in an extern "C" region as extern "C".
9435 2000-05-22  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9437         * decl2.c (qualified_lookup_using_namespace): Look through
9438         namespace aliases.
9440         * decl.c (push_using_decl): Return the old decl on namespace level.
9442 2000-05-21  Mark Mitchell  <mark@codesourcery.com>
9444         * cp-tree.h (SET_BINFO_NEW_VTABLE_MARKED): Add sanity checks.
9445         (VTT_NAME_PREFIX): New macro.
9446         (CTOR_VTBL_NAME_PREFIX): Likewise.
9447         (get_ctor_vtbl_name): New function.
9448         * class.c (get_vtable_name): Simplify.
9449         (get_vtt_name): New function.
9450         (get_vtable_decl): Don't set IDENTIFIER_GLOBAL_VALUE.
9451         (dfs_mark_primary_bases): Update the CLASSTYPE_VBASECLASSES list
9452         when a virtual base becomes primary.
9453         (finish_struct_1): Set CLASSTYPE_VFIELDS a little earlier.  Build
9454         VTTs.
9455         (finish_vtbls): Adjust calls to accumulate_vtbl_inits to pass in
9456         additional parameters.
9457         (dfs_finish_vtbls): Don't clear BINFO_NEW_VTABLE_MARKED.
9458         (initialize_array): New function.
9459         (build_vtt): Likewise.
9460         (build_vtt_inits): Likewise.
9461         (dfs_build_vtt_inits): Likewise.
9462         (dfs_fixup_binfo_vtbls): Likewise.
9463         (build_ctor_vtbl_group): Likewise.
9464         (initialize_vtable): Use initialize_array.
9465         (accumulate_vtbl_inits): Reimplement to handle construction
9466         vtables.
9467         (dfs_accumulate_vtbl_inits): Likewise.
9468         (bulid_vtbl_initializer): Adjust parameter name.
9469         * method.c (build_typename_overload): Remove #if 0'd code.
9470         (get_ctor_vtbl_name): New function.
9471         * search.c (dfs_walk_real): Use BINFO_N_BASETYPES.
9472         (init_vbase_pointers): Don't mess with the TREE_CHAIN of a binfo.
9474         * cp-tree.h (struct lang_type): Remove search_slot.
9475         (CLASSTYPE_SEARCH_SLOT): Remove.
9476         (emit_base_init): Change prototype.
9477         (initialize_vtbl_ptrs): Likewise.
9478         (expand_indirect_vtbls_init): Likewise.
9479         (clear_search_slots): Remove.
9480         * decl.c (lang_mark_tree): Don't mark search_slot.
9481         * init.c (initialize_vtbl_ptrs): Simplify.
9482         (emit_base_init): Likewise.
9483         * search.c (struct vbase_info): Document decl_ptr.
9484         (convert_pointer_to_single_level): Remove.
9485         (dfs_find_vbases): Remove.
9486         (dfs_init_base_pointers): Simplify.
9487         (dfs_clear_vbase_slots): Remove.
9488         (dfs_vtable_path_unmark): New function.
9489         (init_vbase_pointers): Simplify.
9490         (expand_upcast_fixups): Don't rely on CLASSTYPE_SEARCH_SLOT.
9491         (expand_indirect_vtbls_init): Simplify.  Don't call
9492         mark_all_temps_used.
9493         * semantics.c (setup_vtbl_ptr): Adjust calls to emit_base_init and
9494         initialize_vtbl_ptrs.
9496 2000-05-20  Zack Weinberg  <zack@wolery.cumb.org>
9498         * except.c: Add static prototypes.
9500 2000-05-20  H.J. Lu  <hjl@gnu.org>
9502         * Make-lang.in (cplib2.ready): Also depend on cc1plus$(exeext).
9504 2000-05-19  Mark Mitchell  <mark@codesourcery.com>
9506         Don't create a separate copy of virtual bases for the
9507         CLASSTYPE_VBASECLASSES list.
9508         * cp-tree.h (CLASSTYPE_VBASECLASSES): Change documentation.
9509         (BINFO_FOR_VBASE): Remove.
9510         (CANONICAL_BINFO): Adjust.
9511         (binfo_for_vbase): New function.
9512         * class.c (build_vbase_pointer_fields): Use binfo_for_vbase
9513         instead of BINFO_FOR_VBASE.
9514         (build_vbase_pointer): Likewise.
9515         (build_secondary_vtable): Likewise.
9516         (dfs_mark_primary_bases): Likewise.
9517         (mark_primary_bases): Likewise.
9518         (layout_nonempty_base_or_field): Likewise.
9519         (dfs_set_offset_for_shared_vbases): Likewise.
9520         (dfs_set_offset_for_unshared_vbases): Likewise.
9521         (layout_virtual_bases): Likewise.  Adjust for changes to the
9522         CLASSTYPE_VBASECLASSES list.
9523         (dump_class_hierarchy_r): Use binfo_for_vbase
9524         instead of BINFO_FOR_VBASE.
9525         (dump_class_hierarchy): Likewise.
9526         (finish_vtbls): Likewise.
9527         (build_vtbl_initializer): Adjust for changes to the
9528         CLASSTYPE_VBASECLASSES list.
9529         (build_vbase_offset_vtbl_entries): Use binfo_for_vbase.
9530         * decl.c (finish_destructor_body): Adjust for changes to the
9531         CLASSTYPE_VBASECLASSES list.
9532         * init.c (sort_base_init): Use binfo_for_vbase.
9533         (construct_virtual_bases): Adjust for changes to the
9534         CLASSTYPE_VBASECLASSES list.
9535         (expand_member_init): Use binfo_for_vbase.
9536         (build_vbase_delete):  Adjust for changes to the
9537         CLASSTYPE_VBASECLASSES list.
9538         * method.c (do_build_copy_constructor): Likewise.
9539         * rtti.c (get_base_offset): Use binfo_for_vbase.
9540         (expand_class_desc): Remove #if 0'd code.
9541         * search.c (struct vbase_info): Remove vbase_types.
9542         (get_base_distance):  Use binfo_for_vbase.
9543         (lookup_field_queue_p): Use CANONICAL_BINFO.
9544         (get_shared_vbase_if_not_primary): Use binfo_for_vbase.
9545         (get_pure_virtuals): Adjust for changes to the
9546         CLASSTYPE_VBASECLASSES list.
9547         (dfs_find_vbases): Use binfo_for_vbase.
9548         (dfs_init_vbase_pointers): Likewise.
9549         (init_vbase_pointers): Don't initialize vi.vbase_types.
9550         (virtual_context): Use binfo_for_vbase.
9551         (fixup_all_virtual_upcast_offsets): Adjust for changes to the
9552         CLASSTYPE_VBASECLASSES list.
9553         (expand_indirect_vtbls_init): Simplify.
9554         (dfs_get_vbase_types): Don't replicate virtual bases.
9555         (find_vbase_instance): Use binfo_for_vbase.
9556         (binfo_for_vbase): New function.
9557         * typeck.c (get_delta_difference): Use binfo_for_vbase.
9559 2000-05-17  Mark Mitchell  <mark@codesourcery.com>
9561         * decl2.c (finish_anon_union): Generalize error messages to handle
9562         anonymous structures.
9563         * init.c (perform_member_init): Remove `name' parameter.
9564         (build_field_list): New function.
9565         (sort_member_init): Handle anonymous union initialization order
9566         correctly.  Check for multiple initializations of the same union.
9567         (emit_base_init): Don't look up fields by name here.
9568         (expand_member_init): Record the result of name lookup for future
9569         reference.
9570         * typeck.c (build_component_ref): Fix formatting.
9572 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
9574         * decl.c (pop_label): Replace warn_unused with warn_unused_label.
9575         * typeck.c (build_x_compound_expr): Replace warn_unused with
9576         warn_unused_value.
9578         * decl2.c (lang_decode_option): Update -Wall unused flags by
9579         calling set_Wunused.
9581 2000-05-16  Mark Mitchell  <mark@codesourcery.com>
9583         * cp-treeh (BINFO_NEW_VTABLE_MARKED): Update documentation.
9584         * init.c (dfs_vtable_path_unmark): Remove.
9585         * search.c (marked_new_vtable_p): Likewise.
9586         (unmarked_new_vtable_p): Likewise.
9587         (dfs_search_slot_nonempty_p): Likewise.
9588         (dfs_mark): Likewise.
9589         (dfs_vtable_path_unmark): Likewise.
9590         (dfs_find_vbases): Don't set BINFO_NEW_VTABLE_MARKED.
9591         (dfs_int_vbase_pointers): Don't clear BINFO_VTABLE_PATH_MARKED.
9592         (dfs_init_vbase_pointers): Remove special-case new ABI code.
9593         (dfs_clear_vbase_slots): Don't clear BINFO_NEW_VTABLE_MARKED.
9594         (init_vbase_pointers): Simplify.
9595         (expand_indirect_vtbls_init): Likewise.
9597         * class.c (copy_virtuals): New function.
9598         (build_primary_table): Use it.
9599         (build_secondary_vtable): Likewise.
9600         (modify_vtable_entry): Use NULL_TREE, not integer_zero_node, to
9601         indicate that no vcall offset is required.
9602         (add_virtual_function): Likewise.
9603         (modify_all_vtables): Likewise.
9604         (dfs_finish_vtbls): Adjust call to build_vtbl_initializer.
9605         (dfs_accumulate_vtbl_inits): Likewise.
9606         (build_vtbl_initializer): Make changes to handle construction
9607         vtables.
9608         (dfs_build_vcall_offset_vtbl_entries): Likewise.
9609         (build_rtti_vtbl_entries): Likewise.
9610         (build_vtable_entries): Handle a NULL vcall_index.
9612 2000-05-15  Gabriel Dos Reis  <gdr@codesourcery.com>
9614         * decl2.c (lang_decode_option): Fix thinko.
9616 2000-05-14  Jason Merrill  <jason@casey.cygnus.com>
9618         * except.c (check_handlers): New fn.
9619         * cp-tree.h: Declare it.
9620         * semantics.c (finish_handler_sequence): Call it.
9621         (finish_function_handler_sequence): Likewise.
9622         (finish_handler_parms): Set TREE_TYPE on the handler.
9623         * cp-tree.h (PUBLICLY_UNIQUELY_DERIVED_P): New macro.
9624         * search.c (get_base_distance_recursive): If protect>1, ignore
9625         special access.
9626         (get_base_distance): Don't reduce watch_access.
9628 2000-05-13  Gabriel Dos Reis <gdr@codesourcery.com>
9630         * lex.c: #include diagnostic.h.
9631         (lang_init_options): Set default prefixing rules.
9633         * lang-options.h: Add -fdiagnostics-show-location=.
9635         * decl2.c: #include diagnostic.h.
9636         (lang_decode_option): Handle -fdiagnostics-show-location=.
9638 2000-05-12  Nathan Sidwell  <nathan@codesourcery.com>
9640         * tinfo.cc: Revert my 2000-05-08 and 2000-05-07 changes.
9641         * vec.cc: Revert my 2000-05-07 change.
9643 2000-05-11  Jason Merrill  <jason@casey.cygnus.com>
9645         * class.c (check_field_decls): Complain about non-static data
9646         members with same name as class in class with constructor.
9648 2000-05-10  Jason Merrill  <jason@casey.cygnus.com>
9650         * decl.c (grokdeclarator): Allow non-static data members with
9651         same name as class.
9653 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
9655         * cp-tree.h: Constify tree_srcloc.filename, tinst_level.file,
9656         and pending_inline.filename.  Update prototypes.
9657         * decl.c (define_label): Constify filename parameter.
9658         * decl2.c (warn_if_unknown_interface): Constify local char *.
9659         * input.c Constify input_source.filename. Don't declare
9660         input_filename or lineno.  Constify filename parameter to feed_input.
9661         * lex.c (init_parse): Constify parameter and return value.
9662         (cp_pragma_interface, cp_pragma_implementation): Constify
9663         filename argument.
9664         (reinit_parse_for_method, reinit_parse_for_block,
9665         reinit_parse_for_expr, feed_defarg, handle_cp_pragma):
9666         Constify local char *.
9667         * pt.c: Don't declare lineno or input_filename.
9668         (print_template_context, tsubst_friend_function, tsubst_decl,
9669         tsubst, instantiate_decl): Constify local char *.
9670         * semantics.c (expand_body): Constify local char *.
9671         * tree.c (build_srcloc): Constify filename parameter.
9672         * typeck.c (c_expand_asm_operands): Constify filename
9673         parameter.
9675 2000-05-08  Nathan Sidwell  <nathan@codesourcery.com>
9677         * tinfo.cc (__dynamic_cast): Use a reinterpret_cast. Fix
9678         offsetof expansion.
9680 2000-05-08  Branko Cibej  <branko.cibej@hermes.si>
9682         * inc/cxxabi.h:  Fix typos in comment.
9683         (__base_class_info::__offset): Use a static_cast.
9685 2000-05-07  Nathan Sidwell  <nathan@codesourcery.com>
9687         * inc/cxxabi.h: Use __SIZE_TYPE_ and __PTRDIFF_TYPE__ in place
9688         of std::size_t and std::ptrdiff_t respectively.
9689         * tinfo.cc: Likewise.
9690         * vec.cc: Likewise.
9692 2000-05-06  Richard Henderson  <rth@cygnus.com>
9694         * typeck.c (build_c_cast): Don't warn integer->pointer size
9695         mismatch for constants.
9697 2000-05-06  Nathan Sidwell  <nathan@codesourcery.com>
9699         * rtti.c (ptmd_initializer): Set non-public, if class is
9700         incomplete.
9702         * inc/cxxabi.h (__dynamic_cast): Explicitly say extern "C++".
9703         (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
9704         __cxa_vec_delete): Likewise.
9705         * tinfo.cc (__dynamic_cast): Likewise.
9706         * vec.cc (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
9707         __cxa_vec_delete): Likewise.
9709 2000-05-04  Mark Mitchell  <mark@codesourcery.com>
9711         * cp-tree.h (DELTA_FROM_VTABLE_ENTRY): Remove.
9712         (SET_FNADDR_FROM_VTABLE_ENTRY): Likewise.
9713         (lang_decl_flags): Add vcall_offset.
9714         (THUNK_VCALL_OFFSET): Use it.
9715         * decl.c (lang_mark_tree): Don't mark DECL_ACCESS for a thunk.
9716         * method.c (make_thunk): Create the lang_decl here, not in
9717         emit_thunk.
9718         (emit_thunk): Make generic thunks into ordinary functions once
9719         they have been fed to expand_body.
9720         * semantics.c (expand_body): Set current_function_is_thunk here.
9722 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9724         * class.c (update_vtable_entry_for_fn): Prototype.
9726         * pt.c (tsubst_decl): Initialize variables `argvec', `gen_tmpl'
9727         and `tmpl'.
9729         * search.c (dfs_build_inheritance_graph_order): Prototype.
9731 2000-05-04  Mark Mitchell  <mark@codesourcery.com>
9733         * cp-tree.h (special_function_kind): Add various kinds of
9734         destructors.
9735         (special_function_p): New function.
9736         * class.c (overrides): Don't let one kind of destructor override
9737         another.
9738         * decl2.c (mark_used): Use DECL_NON_THUNK_FUNCTION_P when deciding
9739         whether or not to instantiate a template.
9740         * tree.c (special_function_p): Define.
9742 2000-05-03  Mark Mitchell  <mark@codesourcery.com>
9744         * cp-tree.def (THUNK_DECL): Remove.
9745         * cp-tree.h (DECL_THUNK_P): New macro.
9746         (DECL_NON_THUNK_FUNCTION_P): Likewise.
9747         (DECL_EXTERN_C_FUNCTION_P): Likewise.
9748         (SET_DECL_THUNK_P): Likewise.
9749         (DELTA_FROM_VTABLE_ENTRY): Use DECL_THUNK_P.
9750         (FNADDR_FROM_VTABLE_ENTRY): Likewise.
9751         (DECL_MAIN_P): Use DECL_EXTERN_C_FUNCTION_P.
9752         * decl.c (decls_match): Use DECL_EXTERN_C_P.
9753         (duplicate_decls): Likewise.
9754         (pushdecl): Likewise.  Adjust thunk handling.
9755         (grokfndecl): Use DECL_EXTERN_C_P.
9756         * decl2.c (mark_vtable_entries): Use DECL_THUNK_P.
9757         * dump.c (dequeue_and_dump): Remove THUNK_DECL handling.
9758         * except.c (nothrow_libfn_p): Use DECL_EXTERN_C_P.
9759         * expr.c (cplus_expand_expr): Remove THUNK_DECL handling.
9760         * method.c (make_thunk): Use SET_DECL_THUNK_P.  Set
9761         DECL_NO_STATIC_CHAIN.
9762         (emit_thunk): Don't play games with TREE_CODE on thunks.  Don't
9763         set DECL_DESTRUCTOR_P or DECL_CONSTRUCTOR_P on a thunk.
9764         * search.c (covariant_return_p): Remove THUNK_DECL handling.
9765         * ir.texi: Update.
9767 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
9769         * tree.c (walk_tree): Set lineno.
9771 2000-05-01  Mark Mitchell  <mark@codesourcery.com>
9773         * exception.cc: Update license notice.
9774         * new.cc: Likewise.
9775         * new1.cc: Likewise.
9776         * new2.cc: Likewise.
9777         * tinfo.cc: Likewise.
9778         * tinfo2.cc: Likewise.
9779         * vec.cc: Likewise.
9780         * inc/cxxabi.h: Likewise.
9781         * inc/exception: Likewise.
9782         * inc/new: Likewise.
9783         * inc/new.h: Likewise.
9784         * inc/typeinfo: Likewise.
9786 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
9788         * tree.c (build_target_expr_with_type): If we already have a
9789         TARGET_EXPR, just return it.
9791         * optimize.c (initialize_inlined_parameters): Don't generate an
9792         EXPR_STMT if we can just use DECL_INITIAL.
9793         * decl.c (emit_local_var): Only make the initialization a
9794         full-expression if stmts_are_full_exprs_p.
9796 2000-05-01  Mark Mitchell  <mark@codesourcery.com>
9798         * cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New
9799         macro.
9800         * call.c (standard_conversion): Use it.
9801         (direct_reference_binding): Likewise.
9802         (build_over_call): Likewise.
9803         (is_properly_derived_from): Likewise.
9804         (compare_ics): Likewise.
9805         * class.c (resolves_to_fixed_type_p): Likewise.
9806         * optimize.c (declare_return_variable): Likewise.
9807         * pt.c (is_specialization_of): Likewise.
9808         (unify): Likewise.
9809         * typeck.c (comp_target_parms): Likeiwse.
9810         (build_static_cast): Likewise.
9811         (build_reinterpret_cast): Likewise.
9812         (build_const_cast): Likewise.
9813         (comp_ptr_ttypes_real): Likewise.
9814         (comp_ptr_ttypes_const): Likewise.
9815         * typeck2.c (process_init_constructor): Likewise.
9817 2000-04-30  Scott Snyder <snyder@fnal.gov>
9819         * decl.c (finish_destructor_body): Use the base destructor when
9820         destroying virtual bases.
9822 2000-04-30  Mark Mitchell  <mark@codesourcery.com>
9824         * expr.c (cplus_expand_expr): Preserve temporaries when expanding
9825         STMT_EXPRs.
9826         * optimize.c (struct inline_data): Add target_exprs field.
9827         (declare_return_variable): When a function returns an aggregate,
9828         use the variable declared in the TARGET_EXPR as the remapped
9829         DECL_RESULT.
9830         (expand_call_inline): Update the pending target_exprs stack.
9831         (optimize_function): Initialize the stack.
9833         * decl2.c (finish_file): Fix typo in comment.
9835         * method.c (emit_thunk): Don't try to return a `void' value.
9837         * optimize.c (initialize_inlined_parameters): If the parameter is
9838         addressable, we need to make a new VAR_DECL, even if the
9839         initializer is constant.
9841 2000-04-28  Cosmin Truta  <cosmint@cs.ubbcluj.ro>
9843         * decl.c (grok_op_properties): Add an extra check of argtypes.
9845 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
9847         * optimize.c (copy_body_r): Use STRIP_TYPE_NOPS when copying
9848         variables.
9849         (initialize_inlined_parameters): Try to avoid creating new
9850         VAR_DECLs.
9852 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
9854         * lex.c (my_get_run_time): Remove.
9855         (init_filename_times): Use get_run_time instead of my_get_run_time.
9856         (check_newline): Likewise.
9857         (dump_time_statistics): Likewise.
9858         * decl2.c (finish_file): Push and pop timevar TV_VARCONST instead
9859         of computing elapsed time explicitly.
9861 2000-04-26  Mark Mitchell  <mark@codesourcery.com>
9863         * cp-tree.h (TREE_READONLY_DECL_P): Use DECL_P.
9864         * init.c (decl_constant_value): Check TREE_READONLY_DECL_P.
9865         * call.c (convert_like_real): Don't test TREE_READONLY_DECL_P
9866         before calling decl_constant_value.
9867         * class.c (check_bitfield_decl): Likewise.
9868         * cvt.c (ocp_convert): Likewise.
9869         (convert): Likewise.
9870         * decl.c (compute_array_index_type): Likewise.
9871         (build_enumerator): Likewise.
9872         * decl2.c (check_cp_case_value): Likewise.
9873         * pt.c (convert_nontype_argument): Likewise.
9874         (tsubst): Likewise.
9875         * typeck.c (decay_conversion): Likewise.
9876         (build_compound_expr): Likewise.
9877         (build_reinterpret_cast): Likewise.
9878         (build_c_cast): Likewise.
9879         (convert_for_assignment): Likewise.
9881 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
9883         * decl.c (finish_function): Don't play games with DECL_INLINE.
9885 2000-04-25  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
9887         * ir.texi: Correct typo.
9889 2000-04-25  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9891         * decl.c (grokdeclarator): Reject VLAs as members.
9893 2000-04-24  Gabriel Dos Reis  <gdr@codesourcery.com>
9895         * call.c (standard_conversion): Accept conversion between
9896         COMPLEX_TYPEs.
9898         * cvt.c (ocp_convert): Handle conversion to COMPLEX_TYPE.
9900 2000-04-24  Zack Weinberg  <zack@wolery.cumb.org>
9902         * decl2.c (finish_file): Remove double setup for accounting
9903         compile time.
9905 2000-04-24  Robert Lipe <robertlipe@usa.net>
9907         * cp-tree.h (lang_type): Member `language' now ENUM_BITFIELD.
9909 2000-04-23  Benjamin Kosnik  <bkoz@cygnus.com>
9911         * new.cc (set_new_handler): Needs to be in std::.
9913 2000-04-23  Mark Mitchell  <mark@codesourcery.com>
9915         * cp-tree.h (lang_decl): Remove pretty_function_p.
9916         (DECL_PRETTY_FUNCTION_P): Use TREE_LANG_FLAG_0, not a bit in the
9917         language-specific node.
9918         * decl.c (cp_make_fname_decl): Use build_decl, not
9919         build_lang_decl, to build the variables.
9920         (grokvardecl): Don't call build_lang_decl for local variables in
9921         templates.
9922         (grokdeclarator): Don't call build_lang_decl for local type
9923         declarations in templates.
9924         * lex.c (retrofit_lang_decl): Use ggc_alloc_obj to allocated
9925         zero'd memory, rather than calling memset.
9926         * pt.c: Include hashtab.h.
9927         (local_specializations): New variable.
9928         (retrieve_local_specialization): Use it.
9929         (register_local_specialization): Likewise.
9930         (tsubst_decl): Don't assume local variables have
9931         DECL_LANG_SPECIFIC.
9932         (instantiate_decl): Set up local_specializations.
9933         * Makefile.in (HTAB_H): New variable.
9935 2000-04-23  Richard Henderson  <rth@cygnus.com>
9937         * typeck.c (c_expand_asm_operands): Restore the original
9938         contents of the output list.
9940 2000-04-22  Gabriel Dos Reis <gdr@codesourcery.com>
9942         * ir.texi:  Document complex number representation.
9944 2000-04-20  Nathan Sidwell  <nathan@codesourcery.com>
9946         * rtti.c (init_rtti_processing): Set tinfo_var_id in new-abi.
9947         (target_incomplete_p): New function.
9948         (tinfo_base_init): Create comdat NTBS name variable.
9949         (ptr_initializer): Add non_public parameter. Calculate it.
9950         (ptmd_initializer): Likewise.
9951         (synthesize_tinfo_var): Adjust. Emit incomplete class tinfo.
9952         (create_real_tinfo_var): Add non_public parameter. Use it.
9953         Push proxy into global namespace.
9954         * inc/cxxabi.h (__pointer_type_info::incomplete_class_mask):
9955         New enumeration.
9956         * inc/typeinfo (type_info::before, type_info::operator==):
9957         Compare __name addresses.
9959         * tinfo2.cc: Remove new-abi builtins comment.
9961 2000-04-20  Jason Merrill  <jason@casey.cygnus.com>
9963         * typeck.c (build_x_function_call): Resolve an OFFSET_REF.
9965         * call.c (joust): Exit early if we get the same function, too.
9967         * decl2.c (key_method): Return NULL_TREE for template classes.
9968         (import_export_class): Don't need to check for template classes.
9970 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
9972         * lex.c: Remove references to cccp.c.
9974 2000-04-18  Mark Mitchell  <mark@codesourcery.com>
9976         * cp-tree.h (lang_decl_flags): Remove const_memfunc and
9977         volatile_memfunc.  Add destructor_attr.  Adjust dummy.
9978         (DECL_DESTRUCTOR_P): Use destructor_attr.
9979         (DECL_CONST_MEMFUNC_P): Reimplement.
9980         (DECL_VOLATILE_MEMFUNC_P): Remove.
9981         * class.c (finish_struct_methods): Use CLASSTYPE_DESTRUCTORS.
9982         (overrides): Use DECL_DESTRUCTOR_P.
9983         (check_for_override): Likewise.
9984         * decl.c (start_function): Likewise.
9985         * decl2.c (grokfclassfn): Likewise.
9986         (check_classfn): Likewise.
9987         (grok_function_init): Likewise.
9989 2000-04-17  Mark Mitchell  <mark@codesourcery.com>
9991         * decl2.c (grokfield): Issue error on illegal data member
9992         declaration.
9994 Mon Apr 17 17:11:16 2000  Mark P Mitchell  <mark@codesourcery.com>
9996         * method.c (make_thunk): Set DECL_CONTEXT for a THUNK_DECL.
9998 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
10000         * class.c (build_vtable_entry): Don't build thunks for type-info
10001         functions.
10003 2000-04-16  Jason Merrill  <jason@casey.cygnus.com>
10005         * decl.c (decls_match): Allow a redeclaration of a builtin to
10006         specify args while the builtin did not.
10008 2000-04-15  Mark Mitchell  <mark@codesourcery.com>
10010         * cp-tree.def (THUNK_DECL): Add to documentation.
10011         * cp-tree.h (flag_huge_objects): Declare.
10012         * class.c (modify_vtable_entry): Tidy.
10013         (update_vtable_entry_for_fn): Split out from dfs_modify_vtables.
10014         Calculate delta appropriately for the new ABI.
10015         (dfs_modify_vtables): Use it.
10016         (modify_all_vtables): Fix thinko in code to add overriding copies
10017         of functions to primary vtables.
10018         (build_clone): Fix typo in comment.
10019         (clone_function_decl): Correct order of destructors in vtable.
10020         (build_vbase_offset_vtbl_entries): Adjust comment.
10021         (dfs_vcall_offset_queue_p): Remove.
10022         (dfs_build_vcall_offset_vtbl_entries): Update BV_VCALL_INDEX.
10023         (build_vcall_offset_vtbl_entries): Juse use dfs_skip_vbases.
10024         (build_vtable_entry): Correct check for pure virtual functions.
10025         Don't declare flag_huge_objects.
10026         * decl.c (flag_huge_objects): Remove declaration.
10027         * method.c (make_thunk): Tweak mangling for vcall offset thunks.
10028         Use int_size_in_bytes.
10029         (emit_thunk): Handle vcall offset thunks.
10031 Sat Apr 15 16:00:01 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10033         * decl2.c (parse_time, varconst_time): Delete declarations.
10034         (finish_file): Delete LINENO declaration.
10035         START_TIME and THIS_TIME now long.
10037 2000-04-13  Nathan Sidwell  <nathan@codesourcery.com>
10039         * class.c (build_base_field): Reformat comment.
10041         * inc/cxxabi.h (stddef.h): Comment inclusion.
10042         (__base_class_info::__offset): Comment shift.
10044 2000-04-12  Mark Mitchell  <mark@codesourcery.com>
10046         * cp-tree.h (IDENTIFIER_CTOR_OR_DTOR_P): New macro.
10047         (cp_tree_index): Add CPTI_PUSH_EXCEPTION_IDENTIFIER.
10048         (cp_push_exception_identifier): New macro.
10049         (DECL_COMPLETE_DESTRUCTOR_P): New macro.
10050         (DECL_BASE_DESTRUCTOR_P): Likewise.
10051         (DECL_DELETING_DESTRUCTOR_P): Likewise.
10052         (get_vtbl_decl_for_binfo): Fix formatting.
10053         (in_charge_arg_for_name): New macro.
10054         (maybe_build_cleanup_and_delete): Remove declaration.
10055         * call.c (build_field_call): Use IDENTIFIER_CTOR_OR_DTOR_P.
10056         (in_charge_arg_for_name): New function.
10057         (build_new_method_call): Use it.  Handle cloned destructors.
10058         (build_clone): Don't make the base constructor virtual.
10059         Automatically defer generated functions.
10060         (clone_function_decl): Handle destructors, too.
10061         (clone_constructors_and_destructors): Likewise.
10062         (create_vtable_ptr): Don't create a vtable entry for a cloned
10063         function.
10064         * decl.c (predefined_identifier): Add ctor_or_dtor_p.
10065         (initialize_predefined_identifiers): Update appropriately.
10066         (finish_destructor_body): Simplify.
10067         (maybe_build_cleanup_and_delete): Remove.
10068         * except.c (expand_throw): Handle new-ABI destructors.
10069         * init.c (expand_cleanup_for_base): Use base_dtor_identifier.
10070         (build_dtor_call): New function.
10071         (build_delete): Use it.  Simplify.
10072         * optimize.c (maybe_clone_body): Handle destructors.
10073         * search.c (lookup_field_queue_p): Use IDENTIFIER_CTOR_OR_DTOR_P.
10075         * exception.cc (cleanup_fn): New typedef.
10076         (CALL_CLEANUP): New macro.
10077         (cp_eh_info): Use them.
10078         (__cp_push_exception): Likewise.
10079         (__cp_pop_exception): Likewise.
10081 2000-04-11  Mark Mitchell  <mark@codesourcery.com>
10083         * cp-tree.h (cp_tree_index): Add CPTI_DTOR_IDENTIFIER.
10084         (complete_dtor_identifier): New macro.
10085         (CLASSTYPE_FIRST_CONVERSION): Remove.
10086         (CLASSTYPE_CONSTRUCTOR_SLOT): New macro.
10087         (CLASSTYPE_DESTRUCTOR_SLOT): Likewise.
10088         (CLASSTYPE_FIRST_CONVERSION_SLOT): Likewise.
10089         (CLASSTYPE_CONSTRUCTORS): Likewise.
10090         (CLASSTYPE_DESTRUCTORS): Likewise.
10091         (lang_decl): Add cloned_function.
10092         (DECL_COMPLETE_CONSTRUCTOR_P): New macro.
10093         (DECL_BASE_CONSTRUCTOR_P): Likewise.
10094         (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P): Likewise.
10095         (DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P): Likewise.
10096         (DECL_CLONED_FUNCTION_P): Likewise.
10097         (DECL_CLONED_FUNCTION): Likewise.
10098         (clone_function_decl): Declare.
10099         (maybe_clone_body): Likewise.
10100         * call.c (build_user_type_conversion_1): Call complete object
10101         constructors in the new ABI.
10102         (build_new_method_call): Don't add in-charge parameters under the
10103         new ABI.
10104         * class.c (add_method): Use DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P,
10105         DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P, CLASSTYPE_CONSTRUCTOR_SLOT, and
10106         CLASSTYPE_DESTRUCTOR_SLOT.
10107         (build_clone): New function.
10108         (clone_function_decl): Likewise.
10109         (clone_constructors_and_destructors): Likewise.
10110         (check_bases_and_members): Use it.
10111         * decl.c (iniitialize_predefined_identifiers): Initialize
10112         complete_dtor_identifier.
10113         (finish_function): Don't add extra code to a clone.
10114         (lang_mark_tree): Mark cloned_function.
10115         * decl2.c (mark_used): Don't bother trying to instantiate things
10116         we synthesized.
10117         * dump.c (dequeue_and_dump): Don't dump CP_DECL_CONTEXT twice.
10118         * method.c (set_mangled_name_for_decl): Don't treat clones as
10119         constructors.
10120         (synthesize_method): Sythesize cloned functions, not the clones.
10121         * optimize.c (inline_data): Update comment on ret_label.
10122         (remap_block): Don't assume DECL_INITIAL exists.
10123         (copy_body_r): Allow ret_label to be NULL.
10124         (maybe_clone_body): Define.
10125         * pt.c (tsubst_decl): Handle clones.
10126         (instantiate_clone): New function.
10127         (instantiate_template): Use it.
10128         (set_mangled_name_for_template_decl): Don't treat clones as
10129         constructors.
10130         * search.c (lookup_fnfields_1): Use CLASSTYPE_CONSTRUCTOR_SLOT,
10131         CLASSTYPE_DESTRUCTOR_SLOT, and CLASSTYPE_FIRST_CONVERSION_SLOT.
10132         * semantics.c (expand_body): Clone function bodies as necessary.
10134         * optimize.c (remap_decl): Avoid sharing structure for arrays
10135         whose size is only known at run-time.
10136         * tree.c (copy_tree_r): Don't copy PARM_DECLs.
10138         * cp-tree.h (lang_decl_flags): Rename constructor_for_vbase_attr
10139         to has_in_charge_parm_p.
10140         (DECL_CONSTRUCTOR_FOR_VBASE_P): Rename to ...
10141         (DECL_HAS_IN_CHARGE_PARM_P): ... this.
10142         (DECL_COPY_CONSTRUCTOR_P): New macro.
10143         * call.c (add_function_candidate): Use DECL_HAS_IN_CHARGE_PARM_P.
10144         (build_user_type_conversion_1): Likewise.
10145         (convert_like_real): Likewise.
10146         (build_over_call): Likeiwse.  Use DECL_COPY_CONSTRUCTOR_P.
10147         * decl.c (grokdeclarator): Use DECL_HAS_IN_CHARGE_PARM_P.
10148         (copy_args_p): Likewise.
10149         (grok_ctor_properties): Likewise.
10150         (start_function): Likewise.
10151         * decl2.c (maybe_retrofit_in_charge): Likewise.  Set it.
10152         * error.c (dump_function_decl): Use DECL_HAS_IN_CHARGE_PARM_P.
10153         * init.c (emit_base_init): Use DECL_COPY_CONSTRUCTOR_P.
10154         * method.c (do_build_copy_constructor): Use
10155         DECL_HAS_IN_CHARGE_PARM_P.
10156         (synthesize_method): Likewise.
10157         * pt.c (instantiate_template): Remove goto.
10158         * tree.c (build_cplus_method_type): Remove mention of obstacks in
10159         comment.
10161         * cp-tre.h (finish_function): Change prototype.
10162         * decl.c (end_cleanup_fn): Adjust caller.
10163         (finish_function): Take only one parameter.
10164         * decl2.c (finish_objects): Adjust caller.
10165         (finish_static_storage_duration_function): Likewise.
10166         * method.c (emit_thunk): Likewise.
10167         * parse.y: Likewise.
10168         * parse.c: Regenerated.
10169         * pt.c (instantiate_decl): Likewise.
10170         * rtti.c (synthesize_tinfo_fn): Likewise.
10171         * semantics.c (expand_body): Likewise.
10173         * cp-tree.h (copy_decl): New function.
10174         * class.c (finish_struct_1): Use it.
10175         * lex.c (copy_decl): Define it.
10176         * pt.c (tsubst_decl): Likewise.
10177         * tree.c (copy_template_template_parm): Likewise.
10179         * cp-tree.h (lang_type): Remove has_nonpublic_ctor and
10180         has_nonpublic_assign_ref.
10181         (TYPE_HAS_NONPUBLIC_CTOR): Don't declare.
10182         (TYPE_HAS_NONPUBLIC_ASSIGN_REF): Likewise.
10183         * class.c (finish_struct_methods): Don't set
10184         TYPE_HAS_NONPUBLIC_CTOR or TYPE_HAS_NONPUBLIC_ASSIGN_REF.
10185         (interface_only): Don't declare.
10186         (interface_unknown): Likewise.
10188 2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10190         * tree.h (HAVE_TEMPLATES): Remove definition.
10191         * lang-options.h (-fthis-is-variable): Remove documentation.
10193 2000-04-10  Jason Merrill  <jason@casey.cygnus.com>
10195         * class.c (instantiate_type): Handle object-relative template-id.
10197         * semantics.c (finish_expr_stmt): Call convert_to_void here.
10198         * decl.c (cplus_expand_expr_stmt): Not here.
10200         * rtti.c (build_dynamic_cast_1): Call non_lvalue.
10201         Initialize exprtype earlier.
10203         * parse.y (fn.def1): Check for defining types in return types.
10205         * decl.c (check_tag_decl): Notice extra fundamental types.
10206         Diagnose empty decls in classes, too.
10208         * decl.c (grokdeclarator): Don't override an anonymous name if no
10209         declarator was given.
10211         * cvt.c (convert_to_void): Call resolve_offset_ref.
10213         * typeck.c (build_x_function_call): Abort if we get an OFFSET_REF.
10215         * decl2.c (decl_namespace): Handle getting a type.
10217         * typeck.c (build_c_cast): Re-enable warning for cast between
10218         pointer and integer of different size.
10220 2000-04-10  Nathan Sidwell  <nathan@codesourcery.com>
10222         * inc/cxxabi.h (__pointer_type_info): Add restrict and
10223         incomplete flags.
10224         (__pointer_type_info::__pointer_catch): New virtual function.
10225         (__pointer_to_member_type_info): Derive from
10226         __pointer_type_info. Adjust.
10227         (__pointer_to_member_type_info::__do_catch): Remove.
10228         (__pointer_to_member_type_info::__is_pointer_p): Declare.
10229         (__pointer_to_member_type_info::__pointer_catch): Declare.
10230         * rtti.c (qualifier_flags): Add restrict flag.
10231         (ptmd_initializer): Reorder members.
10232         (create_tinfo_types): Expand comments. Reorder
10233         ptmd_desc_type_node members.
10234         * tinfo2.cc (__pointer_to_member_type_info::__is_pointer_p):
10235         Implement.
10236         (__pointer_type_info::__do_catch): Move specific code into
10237         __pointer_catch. Call it.
10238         (__pointer_type_info::__pointer_catch): Non-pointer-to-member
10239         specific catch checking. Fix void conversion check.
10240         (__pointer_to_member_type_info::__do_catch): Remove.
10241         (__pointer_to_member_type_info::__pointer_catch): Implement.
10243 2000-04-10  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10245         * lex.c (init_parse): Remove traces of classof and headof.
10246         * decl2.c (flag_operator_names): Default to 1.
10247         (lang_decode_option): Do not set it for -ansi.
10249 2000-04-09  Mark Mitchell  <mark@codesourcery.com>
10251         * cp-tree.h (struct lang_decl): Remove main_decl_variant.
10252         (DECL_MAIN_VARIANT): Remove.
10253         * decl.c (duplicate_decls): Don't set it.
10254         (start_function): Likewise.
10255         (lang_mark_tree): Don't mark it.
10256         * decl2.c (defer_fn): Don't use it.
10257         * lex.c (retrofit_lang_decl): Don't set it.
10258         * pt.c (tsubst_decl): Likewise.
10259         * ptree.c (print_lang_decl): Don't print it.
10260         * typeck.c (mark_addressable): Don't use it.
10262 2000-04-09  Nathan Sidwell  <nathan@codesourcery.com>
10264         * vec.cc: Include <new> and <exception>.
10265         (__cxa_vec_ctor): Use __cxa_vec_dtor for cleanup.
10266         (__cxa_vec_dtor): Catch dtor exceptions, and rethrow or
10267         terminate.
10268         (__cxa_vec_delete): Catch dtor exceptions.
10270 2000-04-09  Nathan Sidwell  <nathan@codesourcery.com>
10272         Prepend __ to implementation defined names.
10273         * inc/typeinfo (type_info): Rename _name to __name.
10274         (type_info::type_info): Rename parameter.
10275         (type_info::operator==, type_info::operator!=,
10276         type_info::before): Likewise.
10277         (type_info::is_pointer_p, type_info::is_function_p,
10278         type_info::do_catch, type_info::do_upcast): Prepend __. Rename
10279         parameters.
10280         * inc/cxxabi.h
10281         (__fundamental_type_info::__fundamental_type_info) Rename parameters.
10282         (__pointer_type_info::__pointer_type_info): Likewise.
10283         (__pointer_type_info::is_pointer_p,
10284         __pointer_type_info::do_catch): Prepend __. Rename parameters.
10285         (__array_type_info::__array_type_info): Rename parameters.
10286         (__function_type_info::__function_type_info): Likewise.
10287         (__function_type_info::is_function_p): Prepend __.
10288         (__enum_type_info::__enum_type_info): Rename parameters.
10289         (__pointer_to_member_type_info::__pointer_to_member_type_info):
10290         Likewise.
10291         (__pointer_to_member_type_info::do_catch): Prepend __. Rename
10292         parameters.
10293         (__base_class_info::is_virtual_p, is_public_p, offset): Prepend __.
10294         (__class_type_info::__class_type_info): Rename parameters.
10295         (__class_type_info::sub_kind): Prepend __. Adjust member names.
10296         (__class_type_info::upcast_result,
10297         __class_type_info::dyncast_result): Prepend __. Move definition
10298         into tinfo.cc.
10299         (__class_type_info::do_upcast, __class_type_info::do_catch,
10300         __class_type_info::find_public_src,
10301         __class_type_info::do_dyncast,
10302         __class_type_info::do_find_public_src): Prepend __. Rename
10303         parameters.
10304         (__si_class_type_info::__si_class_type_info): Rename parameters.
10305         (__si_class_type_info::do_upcast, __si_class_type_info::do_dyncast,
10306         __si_class_type_info::do_find_public_src): Prepent __. Rename
10307         parameters.
10308         (__vmi_class_type_info::__vmi_class_type_info): Rename parameters.
10309         (__vmi_class_type_info::do_upcast, __vmi_class_type_info::do_dyncast,
10310         __vmi_class_type_info::do_find_public_src): Prepent __. Rename
10311         parameters.
10312         (__dynamic_cast): Rename parameters.
10313         * tinfo.cc (type_info::is_pointer_p, type_info::is_function_p,
10314         type_info::do_catch, type_info::do_upcast): Prepend __.
10315         (contained_p, public_p, virtual_p, contained_public_p,
10316         contained_nonpublic_p, contained_nonvirtual_p): Adjust.
10317         (__class_type_info::do_catch,
10318         __class_type_info::do_upcast): Prepend __. Adjust.
10319         (__class_type_info::__upcast_result,
10320         __class_type_info::__dyncast_result): Move from inc/cxxabi.h.
10321         Adjust.
10322         (__class_type_info::find_public_src): Prepend __. Adjust.
10323         (__class_type_info::do_find_public_src,
10324         __si_class_type_info::do_find_public_src,
10325         __vmi_class_type_info::do_find_public_src): Likewise.
10326         (__class_type_info::do_dyncast,
10327         __si_class_type_info::do_dyncast,
10328         __vmi_class_type_info::do_dyncast): Likewise.
10329         (__class_type_info::do_upcast,
10330         __si_class_type_info::do_upcast,
10331         __vmi_class_type_info::do_upcast): Likewise.
10332         (__dynamic_cast): Adjust.
10333         * tinfo2.cc (__pointer_type_info::is_pointer_p): Prepend __.
10334         (__function_type_info::is_function_p): Likewise.
10335         (__pointer_type_info::do_catch): Likewise. Adjust.
10336         (__pointer_to_member_type_info::do_catch): Likewise. Adjust.
10337         (__throw_type_match_rtti_2): Adjust.
10338         (__is_pointer): Adjust.
10340 2000-04-08  Mark Mitchell  <mark@codesourcery.com>
10342         * cp-tree.h (cp_tree_index): Add CPTI_COMPLETE_CTOR_IDENTIFIER.
10343         (complete_ctor_identifier): New macro.
10344         (special_function_kind): Add sfk_copy_constructor and
10345         sfk_assignment_operator.
10346         (LOOKUP_HAS_IN_CHARGE): Remove.
10347         (cons_up_default_function): Rename to ...
10348         (implicitly_declare_fn): ... this.
10349         * call.c (build_new_method_call): Add in-charge parameters for
10350         constructors here.
10351         * class.c (add_implicitly_declared_members): Change parameter name
10352         from cant_have_assignment to cant_have_const_assignment.
10353         Replace calls to cons_up_default_function to implicitly_declare_fn.
10354         * cvt.c (ocp_convert): Use complete_ctor_identifier.
10355         * decl.c (initialize_predefined_identifiers): Initialize it.
10356         (start_function): Use DECL_CONSTRUCTOR_FOR_VBASE_P instead of
10357         complex expression.
10358         * init.c (expand_default_init): Don't calculate the in-charge
10359         parameter here.
10360         (build_new_1): Likewise.
10361         * lex.c (cons_up_default_function): Move to method.c.
10362         * method.c (synthesize_method): Use DECL_DESTRUCTOR_P.
10363         (implicitly_declare_fn): New function.
10364         * typeck.c (build_static_cast): Use complete_ctor_identifier.
10365         (build_modify_expr): Likewise.
10366         * typeck2.c (build_functional_cast): Likewise.
10368         Under the new ABI, constructors don't return `this'.
10369         * cp-tree.h (warn_reorder): Declare.
10370         (special_function_kind): New enum.
10371         (global_base_init_list): Remove declaration.
10372         (emit_base_init): Don't return a value.
10373         (check_base_init): Don't declare.
10374         (is_aggr_typedef): Likewise.
10375         * decl.c (check_special_function_return_type): New function.
10376         (return_types): Remove.
10377         (grokdeclarator): Use check_special_function_return_type.
10378         (start_function): Don't initialize ctor_label under the new ABI.
10379         (finish_construtor_body): Don't create a corresponding LABEL_STMT.
10380         * init.c (begin_init_stmts): Move to top of file.
10381         (finish_init_stmts): Likewise.
10382         (warn_reorder): Don't declare.
10383         (emit_base_init): Don't create a STMT_EXPR here.  Don't return a
10384         value.
10385         (check_base_init): Remove.
10386         (is_aggr_typedef): Likewise.
10387         (build_new_1): Don't use the return value of a constructor.
10388         * semantics.c (setup_vtbl_ptr): Don't use the return value
10389         of emit_base_init.
10390         * typeck.c (check_return_expr): Don't magically convert return
10391         statements into `return this' in constructors under the new ABI.
10393         * cp-tree.h (cp_tree_index): Add CPTI_BASE_CTOR_IDENTIFIER,
10394         CPTI_BASE_DTOR_IDENTIFIER, and CPTI_DELETING_DTOR_IDENTIFIER.
10395         (base_ctor_identifier): New macro.
10396         (base_dtor_identifier): Likewise.
10397         (deleting_dtor_identifier): Likewise.
10398         * decl.c: Don't include obstack.h.
10399         (obstack_chunk_alloc): Don't define.
10400         (obstack_chunk_free): Likewise.
10401         (struct predefined_identifier): New type.
10402         (initialize_predefined_identifiers): New function.
10403         (init_decl_processing): Use it.
10404         (debug_temp_inits): Remove.
10405         (start_method): Don't call preserve_data.
10406         (hack_incomplete_structures): Update comment.
10407         * init.c (init_init_processing): Don't initialize
10408         nelts_identifier.
10409         (build_offset_rf): Remove dead code.
10410         (build_delete): Use CLASSTYPE_N_BASECLASSES.
10411         * search.c (init_search_processing): Don't initialize
10412         vptr_identifier.
10414 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10416         * typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to elide
10417         some sign_compare warnings.
10419 2000-04-07  Nathan Sidwell  <nathan@codesourcery.com>
10421         Rename abi::__vmi_class_type_info members.
10422         * inc/cxxabi.h (__vmi_class_type_info): Rename details, n_bases,
10423         base_list, detail_masks members to vmi_flags, vmi_base_count,
10424         vmi_bases and vmi_flags_masks respectively.
10425         (__vmi_class_type_info::vmi_flags_masks): Rename
10426         details_unknown_mask to flags_unknown_mask.
10427         * tinfo.cc (__class_type_info::do_upcast): Adjust.
10428         (__vmi_class_type_info::do_find_public_src): Adjust.
10429         (__vmi_class_type_info::do_dyncast): Adjust.
10430         (__vmi_class_type_info::do_upcast): Adjust.
10432 2000-04-07  Nathan Sidwell  <nathan@codesourcery.com>
10434         * tinfo.cc (convert_to_base): New function.
10435         (get_vbase_offset): Remove. Move into convert_to_base.
10436         (__vmi_class_type_info::do_find_public_src): Adjust.
10437         (__vmi_class_type_info::do_dyncast): Adjust.
10438         (__vmi_class_type_info::do_upcast): Adjust.
10440 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
10442         * tinfo.cc (operator=): Use __builtin_strcmp.
10443         * tinfo2.cc (before): Likewise.
10445 2000-04-06  Mark Mitchell  <mark@codesourcery.com>
10447         * cp-tree.h (lang_decl_flags): Rename saved_inline to deferred.
10448         (DECL_SAVED_INLINE): Rename to ...
10449         (DECL_DEFERRED_FN): ... this.
10450         (in_function_p): Remove declaration.
10451         (mark_inline_for_output): Rename to ...
10452         (defer_fn): ... this.
10453         * decl.c (finish_function): Adjust call to mark_inline_for_output.
10454         (in_function_p): Remove definition.
10455         * decl2.c (saved_inlines): Rename to ...
10456         (deferred_fns): ... this.
10457         (saved_inlines_used): Rename to ...
10458         (deferred_fns_used): ... this.
10459         (mark_inline_for_output): Rename to ...
10460         (defer_fn): ... this.
10461         (finish_file): Adjust accordingly.
10462         (init_decl2): Likewise.
10463         * lex.c (cons_up_default_function): Likewise.
10464         * pt.c (mark_decl_instantiated): Likewise.
10465         (instantiate_decl): Don't set DECL_DEFER_OUTPUT under any
10466         circumstances.
10467         * rtti.c (get_tinfo_decl): Adjust call to mark_inline_for_output.
10468         * semantics.c (expand_body): Defer more functions.
10470 2000-04-06  Nathan Sidwell  <nathan@codesourcery.com>
10472         * vec.cc: New file.
10473         * Make-lang.in (CXX_LIB2FUNCS): Add it.
10474         (vec.o): Build it.
10475         * inc/cxxabi.h (__cxa_vec_new, __cxa_vec_ctor, __cxa_vec_dtor,
10476         __cxa_vec_delete): Declare.
10478 2000-04-06  Nathan Sidwell  <nathan@codesourcery.com>
10480         * rtti.c (dfs_class_hint_mark): New static function.
10481         (dfs_class_hint_unmark): New static function.
10482         (class_hint_flags): Use them.
10484 2000-04-05  Benjamin Kosnik  <bkoz@cygnus.com>
10486         * decl2.c: Make flag_honor_std dependent on ENABLE_STD_NAMESPACE.
10488 2000-04-05  Mark Mitchell  <mark@codesourcery.com>
10490         * cp-tree.h (instantiate_decl): Change prototype.
10491         * decl2.c (mark_used): Adjust call.
10492         * optimize.c (inlinable_function_p): Adjust handling of templates.
10493         * pt.c (do_decl_instantiation): Adjust call to instantiate_decl.
10494         (do_type_instantiation): Likewise.
10495         (instantiate_decl): Defer more templates.
10496         (instantiate_pending_templates): Adjust logic to handle inline
10497         friend functions.
10499         * Makefile.in (GGC_H): New variable.  Use it throughout in place
10500         of ggc.h.
10502         * call.c: Don't include obstack.h.  Include ggc.h.
10503         (obstack_chunk_alloc): Don't define.
10504         (obstack_chunk_free): Likewise.
10505         (add_candidate): Allocate the z_candidate with ggc_alloc_obj.
10506         * decl.c (push_switch): Use xmalloc to allocate the cp_switch.
10507         (pop_switch): Free it.
10509         * decl2.c (grokclassfn): Set TREE_READONLY for PARM_DECLs.
10511         * dump.c (dequeue_and_dump): Don't try to print the bit_position
10512         if we don't have a DECL_FIELD_OFFSET.
10514 Wed Apr  5 15:12:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
10516         * optimize.c (calls_setjmp_r): Use setjmp_call_p instead of
10517         special_function_p.
10519 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10521         * cfns.gperf (hash, libc_name_p): Prototype.
10523         * rtti.c (build_dynamic_cast_1): Constification.
10525         * search.c (dfs_debug_unmarkedp, dfs_debug_mark): Unhide prototypes.
10527         * semantics.c (deferred_type_access_control): Prototype.
10529 2000-04-04  Mark Mitchell  <mark@codesourcery.com>
10531         Correct many new ABI issues regarding vbase and vcall offset
10532         layout.
10533         * cp-tree.h (BINFO_VTABLE): Document.
10534         (struct lang_type): Tweak formatting.
10535         (BINFO_PRIMARY_BINFO): Add to documentation.
10536         (CLASSTYPE_VSIZE): Fix typo in comment.
10537         (CLASSTYPE_VBASECLASSES): Update documentation.
10538         (BINFO_VBASE_MARKED): Remove.
10539         (SET_BINFO_VBASE_MARKED): Likewise.
10540         (CLEAR_BINFO_VBASE_MARKED): Likewise.
10541         (BINFO_FIELDS_MARKED): Remove.
10542         (SET_BINFO_FIELDS_MARKED): Likewise.
10543         (CLEAR_BINFO_FIELDS_MARKED): Likewise.
10544         (enum access_kind): New enumeration.
10545         (num_extra_vtbl_entries): Remove declaration.
10546         (size_extra_vtbl_entries): Likewise.
10547         (get_vtbl_decl_for_binfo): New function.
10548         (dfs_vbase_unmark): Remove declaration.
10549         (mark_primary_bases): Likewise.
10550         * class.c (SAME_FN): Remove.
10551         (struct vcall_offset_data_s): Move definition.
10552         (build_vbase_pointer): Use `build', not `build_binary_op', to
10553         access the vbase pointer under the new ABI.
10554         (build_vtable_entry_ref): Use get_vtbl_decl_for_binfo.
10555         (build_primary_vtable): Likewise.
10556         (dfs_mark_primary_bases): Move here from search.c.
10557         (mark_primary_bases): Likewise.
10558         (determine_primary_bases): Under the new ABI, don't make a base
10559         class a primary base just because we don't yet have any virtual
10560         functions.
10561         (layout_vtable_decl): Use get_vtbl_decl_for_binfo.
10562         (num_vfun_entries): Remove.
10563         (dfs_count_virtuals): Likewise.
10564         (num_extra_vtbl_entries): Likewise.
10565         (size_extra_vtbl_entries): Likewise.
10566         (layout_virtual_bases): Iterate in inheritance graph order under
10567         the new ABI.
10568         (finish_struct_1): Use TYPE_VFIELD, not CLASSTYPE_VSIZE, to
10569         indicate that a vfield is present.
10570         (init_class_processing): Initialize access_public_node, etc., from
10571         ak_public, etc.
10572         (get_vtbl_decl_for_binfo): New function.
10573         (dump_class_hierarchy_r): Likewise.
10574         (dump_class_hierarchy): Use it.
10575         (finish_vtbls): Build the vtbls in inheritance graph order.
10576         (dfs_finish_vtbls): Adjust call to build_vtbl_initializer.
10577         (initialize_vtable): Use get_vtbl_decl_for_binfo.
10578         (accumulate_vtbl_inits): Add comments explaining why a pre-order
10579         walk is required.
10580         (dfs_accumulate_vtbl_inits): Set BINFO_VTABLE to the location
10581         where the vptr points, even for primary vtables.
10582         (build_vtbl_initializer): Adjust handling of vbase and vcall
10583         offsets.
10584         (build_vcall_and_vbase_vtable_entries): New function.
10585         (dfs_build_vbase_offset_vtbl_entries): Remove.
10586         (build_vbase_offset_vtbl_entries): Reimplement.
10587         (dfs_build_vcall_offset_vtbl_entries): Don't include virtuals that
10588         were already handled in a primary base class vtable.
10589         (build_vcall_offset_vtbl_entries): Adjust.
10590         (build_rtti_vtbl_entries): Adjust.
10591         * decl2.c (output_vtable_inherit): Use get_vtbl_decl_for_binfo.
10592         * init.c (expand_virtual_init): Simplify.
10593         * repo.c (repo_get_id): Use get_vtbl_decl_for_binfo.
10594         * rtti.c (create_pseudo_type_info): Adjust calculation of vptr.
10595         * search.c (BINFO_ACCESS): New macro.
10596         (SET_BINFO_ACCESS): Likewise.
10597         (dfs_access_in_type): Manipulate access_kinds, not access nodes.
10598         (access_in_type): Likewise.
10599         (dfs_accessible_p): Likewise.
10600         (protected_accessible_p): Likewise.
10601         (lookup_fnfields_1): Adjust documentation.
10602         (dfs_mark_primary_bases): Move to class.c
10603         (mark_primary_bases): Likewise.
10604         (dfs_vbase_unmark): Remove.
10605         (virtual_context): Use BINFO_FOR_VBASE.
10606         (dfs_get_vbase_types): Simplify.
10607         (dfs_build_inheritance_graph_order): New function.
10608         (get_vbase_types): Use it.
10609         * tree.c (debug_binfo): Use get_vtbl_decl_for_binfo.
10611         * tinfo.cc (get_vbase_offset): New function.
10612         (__vmi_class_type_info::do_find_public_src): Use it.
10613         (__vmi_class_type_info::do_dyncast): Likewise.
10614         (__vmi_class_type_info::do_upcast): Likewise.
10616 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
10618         * lang-specs.h: Pass -fno-show-column to the preprocessor.
10620 2000-03-30  Nathan Sidwell  <nathan@codesourcery.com>
10622         * rtti.c (class_hint_flags): Rename flags.
10623         (class_initializer): Remove flags.
10624         (synthesize_tinfo_var): Combine offset and flags. Add flags
10625         for __vmi_class_type_info.
10626         (create_tinfo_types): Remove flags from __class_type_info and
10627         __si_class_type_info. Merge flags and offset from
10628         base_class_type_info.
10629         * inc/cxxabi.h (__base_class_info): Merge offset and vmi_flags.
10630         (__base_class_info::is_virtual_p): Adjust.
10631         (__base_class_info::is_public_p): Adjust.
10632         (__base_class_info::offset): New accessor.
10633         (__class_type_info::details): Remove member.
10634         (__class_type_info::__class_type_info): Lose details.
10635         (__class_type_info::detail_masks): Remove.
10636         (__si_class_type_info::__si_class_type_info): Lose details.
10637         (__vmi_class_type_info::details): New member.
10638         (__vmi_class_type_info::__vmi_class_type_info): Adjust.
10639         (__vmi_class_type_info::detail_masks): New member.
10640         * tinfo.cc (__class_type_info::do_upcast): Initialize result
10641         with unknown_details_mask.
10642         (__vmi_class_type_info::do_find_public_src): Adjust
10643         (__vmi_class_type_info::do_dyncast): Adjust.
10644         (__vmi_class_type_info::do_upcast): Set result details, if
10645         needed. Adjust.
10646         (__dynamic_cast): Temporarily #if out optimization.
10648 2000-03-29  Nathan Sidwell  <nathan@codesourcery.com>
10650         * rtti.c (get_tinfo_decl): Mark used.
10651         (emit_tinfo_decl): Don't optimize polymorphic type_info. Only
10652         mark as dealt with, if we output it.
10654 2000-03-28  Mark Mitchell  <mark@codesourcery.com>
10656         * class.c: Reorganize to put virtual function table initialization
10657         machinery at the end of the file.
10659 2000-03-28  Jason Merrill  <jason@casey.cygnus.com>
10661         * class.c (finish_struct): Use bitsize_zero_node.
10662         * pt.c (instantiate_class_template): Likewise.
10664 2000-03-28  Mark Mitchell  <mark@codesourcery.com>
10666         Put RTTI entries at negative offsets in new ABI.
10667         * class.c (dfs_build_vbase_offset_vtbl_entries): Put the first
10668         vbase offset at index -3, not -1.
10669         (build_vtabe_offset_vtbl_entries): Use unmarked_vtable_pathp, not
10670         dfs_vtable_path_unmarked_real_bases_queue_p to walk bases.
10671         (dfs_build_vcall_offset_vtbl_entries): Don't use skip_rtti_stuff.
10672         (build_rtti_vtbl_entries): New function.
10673         (set_rtti_entry): Remove.
10674         (build_primary_vtable): Don't use it.
10675         (build_secondary_vtable): Likewise.
10676         (start_vtable): Remove.
10677         (first_vfun_index): New function.
10678         (set_vindex): Likewise.
10679         (add_virtual_function): Don't call start_vtable.  Do call
10680         set_vindex.
10681         (set_primary_base): Rename parameter.
10682         (determine_primary_base): Likewise.
10683         (num_vfun_entries): Don't use skip_rtti_stuff.
10684         (num_extra_vtbl_entries): Include RTTI information.
10685         (build_vtbl_initializer): Use build_rtti_vtbl_entries.
10686         (skip_rtti_stuff): Remove.
10687         (dfs_modify_vtables): Don't use it.
10688         (modify_all_vtables): Don't use start_vtable.  Do use set_vindex.
10689         (layout_nonempty_base_or_field): Update size handling.
10690         (create_vtable_ptr): Tweak.
10691         (layout_class_type): Adjust parameter names.
10692         (finish_struct_1): Simplify.
10693         * cp-tree.h (CLASSTYPE_VSIZE): Tweak documentation.
10694         (skip_rtti_stuff): Remove.
10695         (first_vfun_index): New function.
10696         (dfs_vtable_path_unmarked_real_bases_queue_p): Remove.
10697         (dfs_vtable_path_marked_real_bases_queue_p): Remove.
10698         (marked_vtable_pathp): Declare.
10699         (unmarked_vtable_pathp): Likewise.
10700         * error.c (dump_expr): Use first_vfun_index to calculate vtable
10701         offsets.
10702         * rtti.c (build_headof): Look for RTTI at negative offsets.
10703         (get_tinfo_decl_dynamic): Likewise.
10704         (tinfo_base_init): Don't take the address of the TINFO_VTABLE_DECL
10705         here.
10706         (create_pseudo_type_info): Do it here instead.  Adjust so that
10707         vptr points at first virtual function.
10708         * search.c (marked_vtable_pathp): Make it global.
10709         (unmarked_vtable_pathp): Likewise.
10710         (dfs_vtable_path_unmarked_real_bases_queue_p): Remove.
10711         (dfs_vtable_path_marked_real_bases_queue_p): Likewise.
10712         (dfs_get_pure_virtuals): Don't use skip_rtti_stuff.
10713         (get_pure_virtuals): Likewise.
10714         (expand_upcast_fixups): Likewise.
10715         * tree.c (debug_binfo): Likewise.
10716         * tinfo.cc (__dynamic_cast): Look for vtable_prefix at appropriate
10717         negative offset.
10719 Sun Mar 26 20:15:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10721         * class.c (check_field_decl): Fix typo.
10722         (build_vtbl_or_vbase_field): Don't clear DECL_SAVED_INSNS.
10723         (check_methods): Likewise.
10724         (check_field_decls): Likewise.
10725         Use DECL_CONTEXT, not DECL_FIELD_CONTEXT.
10726         * cp-tree.h (DECL_SHADOWED_FOR_VAR, DECL_TEMPLATE_RESULT):
10727         Use DECL_RESULT_FLD, not DECL_RESULT.
10728         * decl.c (xref_tag): Use DECL_TEMPLATE_RESULT.
10729         * lex.c (identifier_type): Likewise.
10730         * pt.c (determine_specialization, lookup_template_class): Likewise.
10731         (tsubst_friend_function, tsubst_decl, instantiate_template): Likewise.
10732         (resolve_overloaded_unification, more_specialized): Likewise.
10733         * semantics.c (finish_member_declaration): Likewise.
10734         * typeck.c (build_x_function_call): Likewise.
10736 2000-03-26  Mark Mitchell  <mark@codesourcery.com>
10738         * class.c (layout_empty_base): Handle empty bases with non-byte
10739         alignment.
10740         (build_base_field): Likewise.
10741         (layout_virtual_bases): Likewise.
10743         * class.c (finish_struct_1): Fix typo in this change:
10745         Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10747 2000-03-25  Mark Mitchell  <mark@codesourcery.com>
10749         * decl.c (grokdeclarator): Count partial specializations when
10750         keeping track of how many template classes have been seen.
10752         * dump.c (dequeue_and_dump): Dump DECL_TEMPLATE_RESULT.
10754 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10756         * class.c (build_vbase_pointer_fields): layout_field now place_field.
10757         (get_vfield_offset): Use byte_position.
10758         (set_rtti_entry): Set OFFSET to ssizetype zero.
10759         (get_binfo_offset_as_int): Deleted.
10760         (dfs_record_base_offsets): Use tree_low_cst.
10761         (dfs_search_base_offsets): Likewise.
10762         (layout_nonempty_base_or_field): Reflect changes in RLI format
10763         and call byte_position.
10764         (layout_empty_base): Convert offset to ssizetype.
10765         (build_base_field): use rli_size_unit_so_far.
10766         (dfs_propagate_binfo_offsets): Do computation in proper type.
10767         (layout_virtual_bases): Pass ssizetype to propagate_binfo_offsets.
10768         (layout_class_type): Reflect changes in RLI names and fields.
10769         (finish_struct_1): Set DECL_FIELD_OFFSET.
10770         * dump.c (dequeue_and_dump): Call bit_position.
10771         * expr.c (cplus_expand_constant): Use byte_position.
10772         * rtti.c (expand_class_desc): Use bitsize_one_node.
10773         * typeck.c (build_component_addr): Use byte_position and don't
10774         special case for zero offset.
10776 2000-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10778         * decl.c (vtype_decl_p): Use TYPE_POLYMORPHIC_P.
10780         * rtti.c (get_tinfo_decl): Set comdat linkage on new-abi
10781         tinfo object.
10782         (emit_tinfo_decl): Only emit polymorphic tinfo's when emitting
10783         vtable.
10785 2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10787         * call.c (check_dtor_name, build_new_method_call): Use TYPE_P and
10788         DECL_P macros.
10789         * decl.c (push_class_binding, poplevel, pushtag, lookup_namespace_name,
10790         make_typename_type, check_initializer, cp_finish_decl,
10791         xref_tag): Likewise.
10792         * decl2.c (grokfield, build_expr_from_tree, build_expr_from_tree,
10793         decl_namespace, arg_assoc_template_arg, arg_assoc,
10794         validate_nonmember_using_decl, do_class_using_decl): Likewise.
10795         * error.c (dump_template_argument, dump_expr, cp_file_of, cp_line_of,
10796         args_to_string): Likewise.
10797         * friend.c (is_friend): Likewise.
10798         * lex.c (note_got_semicolon, note_list_got_semicolon,
10799         is_global): Likewise.
10800         * method.c (build_overload_nested_name, build_overload_value,
10801         build_qualified_name, build_qualified_name, hack_identifier): Likewise.
10802         * parse.y (typename_sub, typename_sub1): Likewise.
10803         * pt.c (push_inline_template_parms_recursive, check_template_shadow,
10804         process_partial_specialization, convert_template_argument,
10805         template_args_equal, add_pending_template, lookup_template_class,
10806         for_each_template_parm_r, maybe_fold_nontype_arg,
10807         tsubst, instantiate_template, type_unification_real, unify,
10808         instantiate_pending_templates, set_mangled_name_for_template_decl):
10809         Likewise.
10810         * repo.c (repo_get_id, repo_template_used): Likewise.
10811         * search.c (lookup_field_1): Likewise.
10812         * tree.c (walk_tree, get_type_decl, cp_tree_equal, member_p): Likewise.
10813         * xref.c (classname): Likewise.
10815 2000-03-22  Mark Mitchell  <mark@codesourcery.com>
10817         * cp-tree.h (BINFO_FOR_VBASE): Adjust documentation.
10818         (CANONICAL_BINFO): New macro.
10819         (BINFO_NEW_VTABLE_MARKED): Use it.
10820         (SET_BINFO_NEW_VTABLE_MARKED): Likewise.
10821         (CLEAR_BINFO_NEW_VTABLE_MARKED): Likewise.
10822         * class.c (dfs_build_vbase_offset_vtbl_entries): Use BINFO_TYPE,
10823         not TREE_TYPE.
10824         (build_primary_vtable): Adjust usage of BINFO_NEW_VTABLE_MARKED.
10825         (build_secondary_vtable): Likewise.
10826         (dfs_finish_vtbls): Likewise.
10827         (dfs_accumulate_vtbl_inits): Likewise.
10828         (accumulate_vtbl_inits): New function.
10829         (finish_vtbls): Make sure that virtual bases come after
10830         non-virtual bases in the vtable group.
10831         (record_base_offsets): Don't save and restore TREE_VIA_VIRTUAL.
10832         (finish_struct_1): Adjust usage of BINFO_NEW_VTABLE_MARKED.
10833         * search.c (struct vbase_info): Move definition.
10834         (marked_new_vtable_p): Adjust usage of BINFO_NEW_VTABLE_MARKED.
10835         (unmarked_new_vtable_p): Likewise.
10836         (dfs_mark_vtable_path): Remove.
10837         (dfs_mark_new_vtable): Remove.
10838         (dfs_unmark_new_vtable): Likewise.
10839         (dfs_clear_search_slot): Likewise.
10840         (dfs_find_vbases):  Adjust usage of BINFO_NEW_VTABLE_MARKED.
10841         (dfs_clear_vbase_slots): Likewise.
10842         (init_vbase_pointers): LIkewise.
10844 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
10846         * typeck.c (type_after_usual_arithmetic_conversions): Prefer a
10847         SIZETYPE to a non-SIZETYPE.
10849 2000-03-21  Mark Mitchell  <mark@codesourcery.com>
10851         * class.c (layout_virtual_bases): Adjust names in conditionally
10852         compiled code.
10854         * class.c (record_base_offsets): New function.
10855         (layout_conflict_p): Likewise.
10856         (layout_nonempty_base_or_field): Use it.
10857         (layout_empty_base): New function.
10858         (build_base_field): Use it.
10859         (build_base_fields): Update comment.
10860         (layout_virtual_bases): Fold in a little code form
10861         layout_basetypes.  Use layout_empty_base.
10862         (layout_basetypes): Remove.
10863         (end_of_class): New function.
10864         (layout_class_type): Use it.  Adjust.
10866         * cp-tree.h (CLASSTYPE_VBASECLASSES): Fix typo in comment.
10867         (fntype_p): Remove.
10868         * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Fix typo in
10869         comment.
10870         (dfs_skip_nonprimary_vbases_markedp): Likewise.
10871         * typeck.c (fntype_p): Remove.
10873         * cp-tree.h (TI_SPEC_INFO): Remove.
10874         (CLASSTYPE_TI_SPEC_INFO): Likewise.
10875         * pt.c (process_partial_specialization): Likewise.
10877         * class.c (build_base_field): Fix thinko in computation of binfo
10878         offsets.
10880         * tree.c (mark_local_for_remap_p): Mark variables declared in
10881         TARGET_EXPRs as well.
10883 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
10885         * typeck.c (require_complete_type, complete_type,
10886         complete_type_or_else, c_sizeof, c_sizeof_nowarn,
10887         build_array_ref, convert_arguments, pointer_diff,
10888         build_x_unary_op, build_unary_op, build_c_cast,
10889         build_modify_expr): Use COMPLETE_TYPE_P etc.
10890         * call.c (is_complete, convert_like_real,
10891         build_new_method_call): Likewise.
10892         * class.c (build_vbase_pointer_fields, check_bases,
10893         build_base_field, finish_struct_1, pushclass): Likewise.
10894         * cvt.c (cp_convert_to_pointer, convert_to_void): Likewise.
10895         * decl.c (maybe_process_template_type_declaration, pushtag,
10896         pushdecl, redeclaration_error_message, start_decl, start_decl_1,
10897         layout_var_decl, check_initializer, cp_finish_decl,
10898         grokdeclarator, require_complete_types_for_parms,
10899         grok_op_properties, xref_tag, xref_basetypes,
10900         check_function_type): Likewise.
10901         * decl2.c (check_classfn, reparse_absdcl_as_casts): Likewise.
10902         * friend.c (do_friend): Likewise.
10903         * init.c (build_offset_ref): Likewise.
10904         * parse.y (structsp): Likewise.
10905         * pt.c (maybe_process_partial_specialization,
10906         tsubst_friend_function, instantiate_class_template, tsubst,
10907         do_type_instantiation, instantiate_pending_templates): Likewise.
10908         * repo.c (repo_get_id): Likewise.
10909         * rtti.c (build_typeid, get_typeid, build_dynamic_cast_1,
10910         synthesize_tinfo_var, emit_support_tinfos): Likewise.
10911         * search.c (lookup_fnfields_1, lookup_conversions): Likewise.
10912         * semantics.c (begin_class_definition): Likewise.
10913         * tree.c (build_cplus_method_type): Likewise.
10914         * typeck2.c (digest_init, build_functional_cast,
10915         add_exception_specifier): Likewise.
10916         * parse.h, parse.c: Regenerated.
10918 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
10920         * inc/cxxabi.h: New header file. Define new-abi entry points.
10921         (__pointer_type_info::target): Rename member to ...
10922         (__pointer_type_info::type): ... here.
10923         (__base_class_info::type): Rename member to ...
10924         (__base_class_info::base): ... here.
10925         * Make-lang.in (CXX_EXTRA_HEADERS): Add cxxabi.h
10926         * cp-tree.h (CPTI_ABI): New global tree enumeration.
10927         (abi_node): New global tree node.
10928         * decl.c (abi_node): Document.
10929         (init_decl_processing): Initialize abi_node.
10930         * rtti.c (build_dynamic_cast_1): Use abi_node for new-abi.
10931         (get_vmi_pseudo_type_info): Likewise.
10932         (create_tinfo_types): Likewise.
10933         (emit_support_tinfos): Likewise.
10934         * tinfo.h (cxxabi.h): Include for new-abi.
10935         Move rtti class definitions to new header file.
10936         * tinfo.cc (abi): Use the namespace.
10937         (std): Move new abi rtti classes from here ...
10938         (__cxxabiv1): ... to here.
10939         * tinfo2.cc (cxxabi.h): Include for new-abi.
10940         Move rtti class definitions to new header file.
10941         (std): Move new abi rtti classes from here ...
10942         (__cxxabiv1): ... to here.
10943         * inc/typeinfo (__class_type_info): Move into __cxxabiv1
10944         namespace.
10946 2000-03-20  Jed Wing <jedwin@zloty.ugcs.caltech.edu>
10947             Jason Merrill  <jason@casey.cygnus.com>
10949         * method.c (build_overload_int): Use host_integerp.
10951 2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10953         * init.c (build_offset_ref): Handle the case of a templated member
10954         function.
10956 2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10958         * except.c (expand_exception_blocks): Clear catch_clauses_last.
10960 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
10962         * cp-tree.h (CLEAR_DECL_C_BIT_FIELD): New macro.
10963         * class.c (check_bitfield_decl): Turn illegal bitfields into
10964         non-bitfields.
10965         (dfs_propagate_binfo_offsets): Adjust for new size_binop
10966         semantics.
10967         (dfs_offset_for_unshared_vbases): Likewise.
10968         * cvt.c (cp_convert_to_pointer): Convert NULL to a
10969         pointer-to-member correctly under the new ABI.
10970         * expr.c (cplus_expand_constant): Don't use cp_convert when
10971         turning an offset into a pointer-to-member.
10972         * init.c (resolve_offset_ref): Don't adjust pointers-to-members
10973         when dereferencing them under the new ABI.
10974         * typeck.c (get_member_function_from_ptrfunc): Tweak calculation
10975         of pointers-to-members under the new ABI.
10977         * class.c (check_bitfield_decl): Remove restriction on really long
10978         bitfields.
10979         (layout_class_type): Implement new ABI handling of bitfields
10980         longer than their types.
10982 2000-03-18  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10984         * parse.y (extdefs): Call ggc_collect.
10985         * parse.c: Regenerated.
10987 2000-03-18  Nathan Sidwell  <nathan@codesourcery.com>
10989         * class.c (build_base_field): Use TYPE_ALIGN to examine a type.
10990         (note_name_declared_in_class): Use OVL_CURRENT to get at a
10991         potential overload.
10993 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10995         * class.c (build_vbase_path): Use integer_zerop.
10996         (build_vtable_entry): Use tree_low_cst.
10997         (get_vfield_offset): Use bit_position.
10998         (dfs_modify_vtables): New variable vindex_val; `i' is HOST_WIDE_INT.
10999         Use tree_low_cst.
11000         (check_bitfield_decl): Set DECL_SIZE using convert.
11001         (build_base_field): Set DECL_SIZE and DECL_SIZE_UNIT using size_binop.
11002         (layout_virtual_bases): DSIZE is unsigned HOST_WIDE_INT.
11003         Use tree_low_cst.
11004         (finish_struct_1): Use bit_position.
11005         (dump_class_hierarchy): Use tree_low_cst.
11006         * cp-tree.h (min_precision): Add declaration.
11007         * decl.c (xref_tag, xref_basetypes): Use tree_low_cst.
11008         * error.c (dump_type_suffix): Use host_integerp and tree_low_cst.
11009         (dump_expr): Use integer_zerop, host_integerp, and tree_low_cst.
11010         * expr.c (cplus_expand_constant): Use bit_position.
11011         * init.c (build_vec_init): Use host_integerp and tree_low_cst.
11012         * rtti.c (get_base_offset): Use bit_position.
11013         * typeck.c (build_binary_op): Use integer_zerop, compare_tree_int,
11014         host_integerp, and tree_low_cst.
11015         (pointer_int_sum): Use integer_zerop.
11016         (build_component_addr): Use bit_position.
11018 2000-03-17  Nathan Sidwell  <nathan@codesourcery.com>
11020         * typeck.c (require_complete_type): Don't assume size_zero_node.
11021         (complete_type_or_else): Likewise.
11023 2000-03-16  Steven Grady <grady@digitaldeck.com>
11024             Jason Merrill  <jason@casey.cygnus.com>
11026         * rtti.c (build_dynamic_cast_1): Improve diagnostics.
11028 2000-03-16  Nathan Sidwell  <nathan@codesourcery.com>
11030         * decl2.c (grokfield): Bail out if type is error_mark_node.
11032 2000-03-15  Nathan Sidwell  <nathan@codesourcery.com>
11034         * tinfo2.cc (__ptr_to_member_data): Rename to ...
11035         (__pointer_to_member_data): ... here. Adjust.
11036         * rtti.c (create_tinfo_types): Adjust.
11038 2000-03-15  Nathan Sidwell  <nathan@codesourcery.com>
11040         * cp-tree.h (CPTI_REF_DESC_TYPE, ref_desc_type_node): Remove.
11041         * decl.c (ref_desc_type_node): Undocument.
11042         * rtti.c (ptr_ref_initializer): Rename to ...
11043         (ptr_initializer): ... here. Adjust comments.
11044         (ptmd_initializer): Fix comment thinko.
11045         (synthesize_tinfo_var): Remove REFERENCE_TYPE case.
11046         (create_tinfo_types): Remove ref_desc_type_node init.
11047         * tinfo2.cc (__reference_type_info): Remove.
11049 2000-03-15  Nathan Sidwell  <nathan@codesourcery.com>
11051         * decl.c (cp_finish_decl): Remove obsolete comment.
11053         * typeck.c (build_ptrmemfunc1): Kill uninitialized warning.
11055 2000-03-14  Mark Mitchell  <mark@codesourcery.com>
11057         * cp-tree.h: Tweak documentation.
11058         * class.c (build_vbase_pointer_fields): Layout the fields, too.
11059         (avoid_overlap): Remove.
11060         (get_binfo_offset_as_int): New function.
11061         (dfs_serach_base_offsets): Likewise.
11062         (layout_nonempty_base_or_field): Likewise.
11063         (build_base_field): Layout fields here.  Avoid placing two objects
11064         of the same type at the same address, under the new ABI.
11065         (build_base_fields): Adjust accordingly.
11066         (create_vtable_ptr): Return the new field, but don't attach it to
11067         TYPE_FIELDS.
11068         (remove_base_field): Remove.
11069         (remove_base_fields): Remove.
11070         (layout_basetypes): Adjust accordingly.
11071         (layout_class_type): Call layout_field for each field, rather than
11072         just making a wholesale call to layout_type.
11074 2000-03-14  Jeff Sturm  <jsturm@sigma6.com>
11076         * except.c (expand_throw): Fix typo in _Jv_Sjlj_Throw.
11078 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
11080         * decl.c (grokfndecl): Set TREE_NOTHROW if TYPE_NOTHROW_P.
11082         * except.c (dtor_nothrow): New fn.
11083         (do_pop_exception): Use it.  Take type parm.
11084         (push_eh_cleanup): Take type parm.
11085         (expand_start_catch_block): Pass it.
11086         (build_eh_type_type_ref): Accept null type.
11088 2000-03-12  Mark Mitchell  <mark@codesourcery.com>
11090         * cp-tree.h (revert_static_member_fn): Change prototype.
11091         * decl.c (grokfndecl): Adjust call to revert_static_member_fn.
11092         (grok_op_properties): Likewise.
11093         (start_function): Likewise.
11094         (revert_static_member_fn): Simplify.
11095         * pt.c (check_explicit_specialization): Adjust call to
11096         revert_static_member_fn.
11098 2000-03-11  Mark Mitchell  <mark@codesourcery.com>
11100         * cp-tree.h (scope_kind): New type.
11101         (tmpl_spec_kind): Likewise.
11102         (declare_pseudo_global_level): Remove.
11103         (pseudo_global_level_p): Rename to template_parm_scope_p.
11104         (pushlevel): Remove declaration.
11105         (begin_scope): New function.
11106         (finish_scope): Likewise.
11107         (current_tmpl_spec_kind): Likewise.
11108         * decl.c (struct binding_level): Shorten parm_flag to 2 bits.
11109         Shorten keep to 2 bits.  Rename pseudo_global to template_parms_p.
11110         Add template_spec_p.
11111         (toplevel_bindings_p): Adjust.
11112         (declare_pseudo_global_level): Remove.
11113         (pseudo_global_level_p): Rename to template_parm_scope_p.
11114         (current_tmpl_spec_kind): New function.
11115         (begin_scope): Likewise.
11116         (finish_scope): Likewise.
11117         (maybe_push_to_top_level): Adjust.
11118         (maybe_process_template_type_declaration): Likewise.
11119         (pushtag): Likewise.
11120         (pushdecl_nonclass_level): Likewise.
11121         (lookup_tag): Likewise.
11122         (grokfndecl): Handle member template specializations.  Share
11123         constructor and non-constructor code.
11124         * decl2.c (check_classfn): Handle member template specializations.
11125         * pt.c (begin_template_parm_list): Use begin_scope.
11126         (begin_specialization): Likewise.
11127         (end_specialization): Likewise.
11128         (check_explicit_specialization): Use current_tmpl_spec_kind.
11129         Handle member template specializations.
11130         (end_template_decl): Use finish_scope.  Remove call to
11131         get_pending_sizes.
11132         (push_template_decl_real): Remove bogus error message.
11133         (tsubst_decl): Fix typo in code contained in comment.
11134         (instantiate_template): Handle member template specializations.
11135         (most_general_template): Likewise.
11137 2000-03-11  Gabriel Dos Reis  <gdr@codesourcery.com>
11139         * lex.c (whitespace_cr): Compress consecutive calls to warning().
11140         (do_identifier): Ditto for error().
11142         * pt.c (convert_nontype_argument): Ditto for cp_error().
11143         (convert_template_argument): Ditto for cp_pedwarn().
11145 2000-03-11  Jason Merrill  <jason@casey.cygnus.com>
11147         * exception.cc (__check_null_eh_spec): New fn.
11148         * except.c (expand_end_eh_spec): Call it if the spec is throw().
11150 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
11152         * decl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
11153         * except.c (expand_end_eh_spec): Add the return type.
11154         * rtti.c (throw_bad_cast): Add the parmtypes.
11155         (throw_bad_typeid): Likewise.
11157         * semantics.c (expand_stmt): Only leave out rtl for unused
11158         artificials, and set DECL_IGNORED_P on them as well.
11159         * decl.c (wrapup_globals_for_namespace): Likewise.
11161 2000-03-09  Nathan Sidwell  <nathan@codesourcery.com>
11163         * decl.c (maybe_commonize_var): Skip all artificial decls.
11164         * pt.c (tsubst_decl): Don't copy TREE_ASM_WRITTEN.
11166 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
11168         * lang-options.h, decl2.c: Add -fno-enforce-eh-specs.
11169         * cp-tree.h: Declare flag_enforce_eh_specs.
11170         * decl.c (store_parm_decls, finish_function): Check it.
11172         C library functions don't throw.
11173         * Makefile.in (cfns.h): New target.
11174         (except.o): Depend on it.
11175         * Make-lang.in (cc1plus): Depend on cfns.gperf.
11176         * cfns.gperf: New file.
11177         * cfns.h: Generated.
11178         * except.c: Include it.
11179         (nothrow_libfn_p): New fn.
11180         * decl.c (grokfndecl): Use it.
11181         * cp-tree.h: Declare it.
11183         * decl.c (push_overloaded_decl_1, auto_function,
11184         define_function): Lose.
11185         (build_library_fn_1): New static fn.
11186         (builtin_function): Use it.
11187         (get_atexit_node): Use build_library_fn_ptr.
11188         (build_library_fn, build_cp_library_fn, build_library_fn_ptr,
11189         build_cp_library_fn_ptr, push_library_fn, push_cp_library_fn,
11190         push_void_library_fn, push_throw_library_fn): New fns.
11191         * cp-tree.h: Declare them.
11192         (cp_tree_index): Remove CPTI_BAD_CAST, CPTI_BAD_TYPEID.
11193         (throw_bad_cast_node, throw_bad_typeid_node): Lose.
11194         * except.c (init_exception_processing, call_eh_info, do_pop_exception,
11195         (expand_end_eh_spec, alloc_eh_object, expand_throw): Use above fns.
11196         * rtti.c (build_runtime_decl): Lose.
11197         (throw_bad_cast, throw_bad_typeid, get_tinfo_decl,
11198         build_dynamic_cast_1, expand_si_desc, expand_class_desc,
11199         expand_ptr_desc, expand_attr_desc, expand_generic_desc): Use above fns.
11201         * call.c (build_call): Remove result_type parm.
11202         Call mark_used on unused artificial fns.
11203         * init.c, method.c, typeck.c, except.c, rtti.c: Adjust.
11205 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
11207         * call.c (build_call): Set TREE_NOTHROW on the CALL_EXPR as
11208         appropriate.
11209         * decl.c (define_function): Set TREE_NOTHROW on the FUNCTION_DECL.
11210         * except.c (call_eh_info, alloc_eh_object, expand_throw): Set
11211         TREE_NOTHROW or TREE_THIS_VOLATILE on the function as appropriate.
11212         * rtti.c (build_runtime_decl, get_tinfo_decl, build_dynamic_cast_1,
11213         expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc,
11214         expand_generic_desc): Likewise.
11216 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
11218         * exception.cc (__cp_pop_exception): Cleanup the original object.
11220 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
11222         * decl.c (grok_op_properties): Merge conversion to void warning
11223         with other silly op warnings.
11225 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
11227         * typeck2.c (process_init_constructor): Set TREE_PURPOSE of
11228         array CONSTRUCTOR elements.  Don't use expr_tree_cons.
11230 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
11232         * decl.c (cp_make_fname_decl): New function.
11233         (wrapup_globals_for_namespace): Don't emit unused static vars.
11234         (init_decl_processing): Remove comment about use of
11235         array_domain_type. Set make_fname_decl.
11236         (cp_finish_decl): Remove __FUNCTION__ nadgering.
11237         * semantics.c (begin_compound_stmt): Remove
11238         current_function_name_declared flagging.
11239         (expand_stmt): Don't emit unused local statics.
11240         * typeck.c (decay_conversion): Don't treat __FUNCTION__ decls
11241         specially.
11243 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
11245         * typeck.c (convert_for_assignment): Don't look at array
11246         initializer.
11247         * call.c (convert_like_real): Likewise.
11249 2000-03-07  Jason Merrill  <jason@casey.cygnus.com>
11251         Add initial support for '\uNNNN' specifier.
11252         * lex.c (read_ucs): New fn.
11253         (readescape, skip_white_space): Call it.
11254         (is_extended_char, is_extended_char_1): New fns.
11255         (utf8_extend_token): New fn, #if 0'd out.
11256         (real_yylex): Treat extended chars like letters.
11258         * search.c (note_debug_info_needed): Walk the bases even if we
11259         weren't deferring the type itself.
11261 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11263         * decl2.c (finish_objects): Constify a char*.
11265         * method.c (emit_thunk): Likewise.
11267 2000-03-06  Nathan Sidwell  <nathan@codesourcery.com>
11269         * typeck.c (dubious_conversion_warnings): Look through
11270         REFERENCE_TYPE.
11272 Mon Mar  6 08:46:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11274         * class.c (dfs_modify_vtables): I is now unsigned.
11275         (check_bitfield_decl): Use tree_int_cst_sgn and compare_tree_int.
11276         (build_base_field): Add casts of TREE_INT_CST_LOW to HOST_WIDE_INT.
11277         * error.c (dump_expr): Cast TREE_INT_CST_HIGH to unsigned.
11278         * init.c (build_vec_init): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
11279         * method.c (build_overload_int): Cast TREE_INT_CST_HIGH to unsigned.
11280         * typeck.c (build_binary_op, case TRUNC_DIV_EXPR):
11281         Call integer_all_onesp.
11282         * typeck2.c (process_init_constructor): Use compare_tree_int.
11284         * lang-specs.h (as): Don't call if -syntax-only.
11286 2000-03-06  Mark Mitchell  <mark@codesourcery.com>
11288         * expr.c (cplus_expand_expr, case STMT_EXPR): Don't set
11289         RTL_EXPR_HAS_NO_SCOPE after all.
11291 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11293         * expr.c (cplus_expand_expr, case STMT_EXPR): Use
11294         expand_start_stmt_expr and expand_end_stmt_expr directly.  Set
11295         RTL_EXPR_HAS_NO_SCOPE.
11297         * pt.c (instantiate_decl): Clear TI_PENDING_TEMPLATE_FLAG a little
11298         later.
11300         * dump.c (dequeue_and_dump): Dump SCOPE_NO_CLEANUPS_P.
11302 2000-03-05  Nathan Sidwell  <nathan@codesourcery.com>
11304         * call.c (convert_like): Macrofy.
11305         (convert_like_with_context): New macro.
11306         (convert_like_real): Renamed from convert_like.  Add calling
11307         context parameters, for diagnostics. Add recursive flag.  Call
11308         dubious_conversion_warnings for outer conversion.
11309         (build_user_type_conversion): Use convert_like_with_context.
11310         (build_over_call): Likewise. Don't warn about dubious
11311         conversions here. Adjust convert_default_arg calls.
11312         (convert_default_arg): Add context parameters for diagnostics.
11313         Pass through to convert_like_with_context.
11314         * cp-tree.h (convert_default_arg): Add context parameters.
11315         (dubious_conversion_warnings): Prototype new function.
11316         * typeck.c (convert_arguments): Adjust convert_default_arg call.
11317         (dubious_conversion_warnings): New function, broken
11318         out of convert_for_assignment.
11319         (convert_for_assignment): Adjust.
11321 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
11323         * decl2.c (key_method): Break out from...
11324         (import_export_vtable, import_export_class): ...here.
11326         * decl.c (finish_function): Don't mess with flag_keep_inline_functions.
11327         * decl2.c (finish_vtable_vardecl): Don't check decl_function_context.
11329         * search.c (note_debug_info_needed, dfs_debug_mark,
11330         dfs_debug_unmarkedp): Uncomment.  Adjust for new scheme.
11331         * decl2.c (finish_vtable_vardecl): Call note_debug_info_needed.
11333 2000-03-03  Nathan Sidwell  <nathan@codesourcery.com>
11335         * decl.c (cp_finish_decl): Remove obsolete obstack comments, fix
11336         typos.
11338 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
11340         * cp-tree.h (TYPE_NEEDS_DESTRUCTOR): Rename to ...
11341         (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): ... this.
11342         (TYPE_HAS_TRIVIAL_DESTRUCTOR): New macro.
11343         (lang_type): Split gets_new into has_new and has_array_new.
11344         (TYPE_VEC_NEW_USES_COOKIE): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
11345         (TYPE_GETS_NEW): Split into ...
11346         (TYPE_HAS_NEW_OPERATOR): ... this, and ...
11347         (TYPE_HAS_ARRAY_NEW_OPERATOR): ... this.
11348         (DECL_ARRAY_DELETE_OPERATOR_P): New macro
11349         (build_op_new_call): Don't declare.
11350         (build_new_1): Likewise.
11351         * call.c (build_op_new_call): Remove.
11352         * class.c (check_bases): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR
11353         instead of TYPE_NEEDS_DESTRUCTOR.
11354         (finish_struct_bits): Likewise.
11355         (add_implicitly_declared_members): Likewise.
11356         (check_field_decl): Likewise.
11357         (check_methods): Set TYPE_VEC_DELETE_TAKES_SIZE here, and set it
11358         correctly under the new ABI.
11359         * decl.c (start_decl_1): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR
11360         instead of TYPE_NEEDS_DESTRUCTOR.
11361         (initialize_local_var): Likewise.
11362         (destroy_local_var): Likewise.
11363         (cp_finish_decl): Likewise.
11364         (register_dtor_fn): Likewise.
11365         (grok_op_properties): Set TYPE_HAS_NEW_OPERATOR and
11366         TYPE_HAS_ARRAY_NEW_OPERATOR, not TYPE_HAS_NEW.  Don't set
11367         TYPE_VEC_DELETE_TAKES_SIZE here.
11368         (xref_basetypes): Set TYPE_HAS_NEW_OPERATOR and
11369         TYPE_HAS_ARRAY_NEW_OPERATOR, not TYPE_HAS_NEW.
11370         (store_parm_decls):  Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
11371         (finish_destructor_body): Likewise.
11372         (maybe_build_cleanup_1): Likewise.
11373         * decl2.c (do_static_destruction): Likewise.
11374         * init.c (build_new_1): Make it static.
11375         (perform_member_init): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
11376         (expand_cleanup_for_base): Likewise.
11377         (get_cookie_size): New function.
11378         (build_new_1): Handle array-new cookies correctly under the new
11379         ABI.
11380         (build_vec_delete_1): Likewise.
11381         (build_vec_init):  Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
11382         (build_delete): Likewise.
11383         (build_vec_delete): Handle array-new cookies correctly under the new
11384         ABI.
11385         * lex.c (do_identifier): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
11386         * pt.c (instantiate_class_template): Set TYPE_HAS_NEW_OPERATOR and
11387         TYPE_HAS_ARRAY_NEW_OPERATOR.
11388         * ptree.c (print_lang_type): Check them.
11389         * search.c (context_for_name_lookup): Fix typo in comment.
11390         (tree_has_any_destructor_p): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
11391         * tree.c (break_out_cleanups): Likewise.
11392         (build_cplus_array_test_1): Likewise.
11393         (cp_build_qualified_type_real): Likewise.
11394         * typeck.c (complete_type): Likewise.
11396         * g++spec.c (lang_specific_driver): Add -fnew-abi at the start of
11397         the command-line, not the end.
11399 2000-03-01  Jason Merrill  <jason@casey.cygnus.com>
11401         * pt.c (instantiate_decl): Clear TI_PENDING_TEMPLATE_FLAG.
11403 2000-03-02  Tom Tromey  <tromey@cygnus.com>
11405         * cp-tree.h (build_java_class_ref): Declare.
11406         * init.c (build_java_class_ref): No longer static.
11407         * except.c (expand_throw): Generate a Java-style `throw' if the
11408         thrown object is a "Java" object.
11409         (initialize_handler_parm): Generate a Java-style lookup of
11410         exception info if the caught object is a "Java" object.
11411         (catch_language, catch_language_init): New globals.
11412         (decl_is_java_type): New function.
11413         (expand_start_catch_block): Don't call push_eh_info() or
11414         push_eh_cleanup() when handling a Java-style "catch".  Pass Java
11415         class reference to build_catch_block.
11417 Thu Mar  2 13:32:01 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11419         * typeck.c (comptypes): Treat sizetype like its language equivalent.
11421 2000-03-01  Bernd Schmidt  <bernds@cygnus.co.uk>
11423         * typeck.c (maybe_warn_about_returning_address_of_local): Reorganize
11424         to merge reference/pointer code and fix incorrect warnings.
11426 2000-02-29  Jason Merrill  <jason@casey.cygnus.com>
11428         * search.c (protected_accessible_p): Use context_for_name_lookup.
11430         * init.c (construct_virtual_bases): Fix thinko.
11431         * typeck.c (expand_ptrmemfunc_cst): Fix thinko.
11433 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
11435         * decl.c (current_function_decl): Move to toplev.c.
11437 2000-02-29  Nathan Sidwell  <nathan@codesourcery.com>
11439         * pt.c (fn_type_unification): Unify return type, whenever
11440         provided.
11441         (get_bindings_real): Only pass return type when necessary.
11442         Remove explicit return type check.
11443         * class.c (resolve_address_of_overloaded_function): Pass desired
11444         return type to fn_type_unification.
11446 Mon Feb 28 08:15:23 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11448         * class.c (build_vtbl_or_vbase_field, check_methods): Don't clear
11449         DECL_FIELD_SIZE.
11450         (check_bitfield_decl, check_field_decls): Set DECL_SIZE, not
11451         DECL_FIELD_SIZE.
11452         * rtti.c (expand_class_desc): Likewise.
11453         * cp-tree.h (DECL_INIT_PRIORITY): Use underlying union name.
11454         (THUNK_VCALL_OFFSET): Likewise.
11455         (THUNK_DELTA): Reflect changes in ../tree.h.
11457 2000-02-28  Jason Merrill  <jason@casey.cygnus.com>
11459         * search.c (protected_accessible_p): Also allow the access if
11460         the member is public in DERIVED.  Lose TYPE parm.
11461         (friend_accessible_p): Lose TYPE parm.
11462         (accessible_p): Adjust.
11464 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11466         * class.c (dfs_build_vtable_offset_vtbl_entries): Don't use size_binop
11467         on things that are not sizes; ssize_binop deleted.
11468         Call size_diffop when appropriate.
11469         (dfs_build_vcall_offset_vtbl_entries): Likewise.
11470         (build_primary_vtable, build_secondary_vtable): Likewise.
11471         (dfs_set_offset_for_unshared_vbases, dfs_modify_vtables): Likewise.
11472         Variable I is HOST_WIDE_INT.
11473         (get_vfield_offset): Pass proper types to size_binop.
11474         (size_extra_vtbl_entries, layout_virtual_bases): Likewise.
11475         (finish_struct_1): Likewise.
11476         (skip_rtti_stuff): Arg N is now pointer to signed.
11477         (layout_class_type): Use size_zero_node.
11478         * cp-tree.h (skip_rtti_stuff): Arg N is pointer to signed.
11479         * cvt.c (cp_convert_to_pointer): Pass proper types to size_binop.
11480         * decl.c (complete_arry_type): Pass proper types to size_binop.
11481         (xref_basetypes): BINFO_OFFSET is sizetype.
11482         * error.c (dump_expr): Don't use size_binop non-sizes.
11483         * expr.c (cplus_expand_constant): Pass proper types to size_binop.
11484         * init.c (construct_virtual_bases): Fix type error.
11485         (build_vec_delete_1): Pass proper type to size_binop and don't
11486         fold result.
11487         * lex.c (cp_make_lang_type): BINFO_OFFSET is sizetype.
11488         * rtti.c (get_base_offset): Pass proper type to size_binop.
11489         * search.c (dfs_find_vbases): Fix type error.
11490         (expand_upcast_fixups): Arg to skip_rtti_stuff is pointer to signed.
11491         (dfs_get_vbase_types): BINFO_OFFSET is sizetype.
11492         * tree.c (debug_binfo): Variable N is signed.
11493         Use HOST_WIDE_INT_PRINT_DEC.
11494         * typeck.c (comptypes): sizetype is same as equivalent integer type.
11495         (c_sizeof, c_sizeof_nowarn, expr_sizeof): Use TYPE_SIZE_UNIT,
11496         size_one_node and size_zero_node.
11497         (c_alignof): Use size_one_node.
11498         (build_component_addr): Pass proper types to size_binop.
11499         (expand_ptrmemfunc_cst): Don't use size_binop on non-sizes.
11501 2000-02-26  Jason Merrill  <jason@casey.cygnus.com>
11503         Implement class scope using-declarations for functions.
11504         * class.c (handle_using_decl): Call add_method for used functions.
11505         Use IDENTIFIER_CLASS_VALUE to check for conflicts.
11506         (add_method): Used functions are hidden by local functions.
11507         (check_bases_and_members): Handle using-decls before finalizing
11508         CLASSTYPE_METHOD_VEC.
11509         * call.c (add_function_candidate): Add ctype parm; if non-zero,
11510         override the type of 'this' accordingly.
11511         (add_template_candidate, add_template_candidate_real): Add ctype parm.
11512         (convert_class_to_reference, build_user_type_conversion_1,
11513         build_new_function_call, build_object_call, build_new_op,
11514         build_new_method_call): Pass ctype parm.
11516         * search.c (lookup_member): Put rval_binfo, not basetype_path, in
11517         the baselink.
11518         * call.c (convert_class_to_reference, build_user_type_conversion_1,
11519         build_new_function_call, build_object_call, build_new_op,
11520         build_new_method_call, build_op_delete_call): Don't get basetype_path
11521         from a baselink.
11522         * typeck.c (build_component_ref): Likewise.
11523         * init.c (build_offset_ref): Likewise.
11524         (resolve_offset_ref): Don't call enforce_access.
11525         Call build_scoped_ref.
11526         * typeck2.c (build_scoped_ref): Simplify.  Do nothing if it
11527         would cause an error or if -pedantic.
11528         * class.c (alter_access): Lose binfo parm.
11530 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
11532         * semantics.c (simplify_aggr_init_exprs_p): Don't walk into
11533         types.
11535 2000-02-25  Alfred Minarik <a8601248@unet.univie.ac.at>
11537         * rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
11538         pseudo_type_info creation into the std namespace
11540 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
11542         * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF.
11543         (import_export_class): Remove declaration.
11544         * decl2.c (import_export_class): Make it static.
11545         * dump.c (dequeue_and_dump): Handle PREDECREMENT_EXPR,
11546         PREINCREMENT_EXPR, POSTDECREMENT_EXPR, POSTINCREMENT_EXPR,
11547         EXPR_WITH_FILE_LOCATION.
11548         * lex.c (check_newline): Tweak filename/lineno setting.
11549         * semantics.c (begin_while_stmt): Fix typo in comment.
11551 Sat Feb 26 19:50:23 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11553         * lang-options.h (-fmessage-length=): Add missing option.
11555         * Make-lang.in (CXX_SRCS): Add .h files and sort list.
11557 2000-02-26  Zack Weinberg  <zack@wolery.cumb.org>
11559         * Make-lang.in: Delete refs to LIBGCC2_DEPS.
11561 Fri Feb 25 14:52:33 2000  Jim Wilson  <wilson@cygnus.com>
11563         * optimize.c (expand_call_inline): Emit the return label before
11564         evaluating the return value.
11566 2000-02-24  Mark Mitchell  <mark@codesourcery.com>
11568         * lex.c (check_newline): Use push_srcloc and pop_srcloc, rather
11569         than duplicating functionality here.
11570         * optimize.c: Include input.h.
11571         (expand_call_inline): Use push_srcloc and pop_srcloc.
11572         * parse.y (maybe_cv_qualifier): Remove calls to emit_line_note.
11573         * parse.c: Regenerated.
11574         * Makefile.in (lex.o): Depend on input.h.
11575         (optimize.o): Likewise.
11577 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
11579         * decl.c (grokdeclarator): Diagnose qualifiers on non-member
11580         function type, rather than ICE.
11582 2000-02-23  Jason Merrill  <jason@casey.cygnus.com>
11584         * decl.c (grokdeclarator): Call decl_type_access_control.
11585         * parse.y (parse_end_decl): Don't call decl_type_access_control if
11586         decl is null.
11588 2000-02-23  Nathan Sidwell  <nathan@codesourcery.com>
11590         * decl.c (decls_match): Remove obsolete static member nadgering.
11592 2000-02-21  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
11594         * decl.c (grokdeclarator): Change ANSI to ISO.
11595         * lex.c (consume_string, readescape, do_identifier): Likewise.
11596         (parse_float, real_yylex): Likewise.
11597         * parse.y (paren_expr_or_null, paren_cond_or_null): Likewise.
11598         (unary_expr, new_initializer, cast_expr, primary, primary_no_id,
11599         new_type_id, maybe_label_decls, simple_stmt,
11600         for.init.statement): Likewise.
11601         * pt.c (do_decl_instantiation, do_type_instantiation): Likewise.
11602         * semantics.c (finish_named_return_value): Likewise.
11603         * parse.c: Regenerate.
11605 2000-02-21  Mark Mitchell  <mark@codesourcery.com>
11607         * cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
11608         (CPTI_CLASS_STAR_TYPE): Remove.
11609         (vtable_index_type): Likewise.
11610         (class_star_type_node): Remove.
11611         (TYPE_PTRMEMFUNC_FN_TYPE): Adjust for the new ABI.
11612         (build_binary_op_nodefault): Remove.
11613         * call.c (build_new_op): Use build_binary_op instead of
11614         build_binary_op_nodefault.
11615         * decl.c (init_decl_processing): Remove class_star_type_node
11616         initialization.  Make delta_type_node ptrdiff_type_node under the
11617         new ABI.  Initialize vtable_index_type.
11618         (build_ptrmemfunc_type): Build different structures for the new
11619         ABI.
11620         (build_enumerator): Use build_binary_op instead of
11621         build_binary_op_nodefault.
11622         * method.c (build_overload_value): Mangle pointers-to-members
11623         appropriately under the new ABI.
11624         * typeck.c (build_array_ref): Use build_binary_op instead of
11625         build_binary_op_nodefault.
11626         (get_member_function_from_ptrfunc): Adjust for the new ABI.
11627         (build_binary_op_nodefault): Rename to ...
11628         (build_binary_op): ... this.  Remove old version.  Adjust for
11629         pointer-to-member comparisons under the new ABI.
11630         (build_ptrmemfunc1): Remove dead code.  Adjust for the new ABI.
11631         (build_ptrmemfunc): Adjust for the new ABI.
11632         (expand_ptrmemfunc_cst): Likewise.
11633         (delta2_from_ptrmemfunc): Assert that we're not using the new ABI.
11634         (pfn_from_ptrmemfunc): Adjust for the new ABI.
11636 2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>
11638         * call.c (build_object_call): Compress consecutive calls to
11639         cp_error.
11640         (build_conditional_expr): Say 'ISO C++' not 'ANSI C++'.
11641         (build_op_delete_call): Adjust message formatting.
11643         * class.c (check_bases): Compress consecutive calls to
11644         cp_pedwarn.
11645         (finish_struct_anon): Say 'ISO C++'.
11647         * decl.c (start_decl): Same here.
11648         (grok_reference_init): Likewise.
11649         (grokfndecl): Correct message formatting.
11650         (grokfndecl): Improve diagnostic.
11651         (check_static_variable_definition): Likewise. Say 'ISO C++'
11652         (compute_array_index_type): Say 'ISO C++'
11653         (create_array_type_for_decl): Compress consecutive calls to
11654         cp_error.
11655         (grokdeclarator): Say 'ISO C++'
11656         (grok_op_properties): Likewise.
11658         * decl2.c (delete_sanity): Clairify diagnostic.
11659         (check_member_template): Same here.
11660         (grok_function_init): Use consistent terminology.
11662         * expr.c (do_case): Say 'ISO C++'
11664         * friend.c (do_friend): Compress consecutive calls to warning.
11666 2000-02-20  Mark Mitchell  <mark@codesourcery.com>
11668         * cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
11669         * class.c (build_secondary_vtable): Reorganize.  Don't create a
11670         new vtable under the new ABI.
11671         (layout_vtable_decl): Don't add num_extra_vtbl_entries when
11672         computing the size.
11673         (build_vtbl_initializer): Don't return a CONSTRUCTOR; just return
11674         the initializing elements.
11675         (initialize_vtable): New function.
11676         (dfs_finish_vtbls): Use it.
11677         (dfs_accumulate_vtbl_inits): New function.
11678         (finish_vtbls): Merge primary and secondary vtables under the new
11679         ABI.
11680         (finish_struct_1): Remove redundant call to layout_vtable_decl.
11681         * init.c (expand_virtual_init): Deal with BINFO_VTABLEs that
11682         aren't VAR_DECLs.
11684         * class.c (build_vtable): New function, split out from ...
11685         (get_vtable_decl): ... here, and ...
11686         (build_secondary_vtable): ... here.
11688         * pt.c (tsubst_decl): Fix formatting.
11690 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11692         * class.c (build_primary_vtable, layout_vtable_decl): Likewise.
11693         (avoid_overlap, build_base_field): Likewise.
11694         (build_base_field, build_base_fields, is_empty_class):
11695         Test DECL_SIZE with integer_zero.
11696         (layout_class_type): Set CLASSTYPE_SIZE_UNIT.
11697         * cp-tree.h (struct lang_type): New field size_unit.
11698         (CLASSTYPE_SIZE_UNIT): New macro.
11699         * decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
11700         (cp_finish_decl): Delete -Wlarger-than processing.
11701         * optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
11702         * pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
11703         * tree.c (make_binfo): binfo vector is one entry longer.
11704         (walk_tree): Walk DECL_SIZE_UNIT.
11706 2000-02-19  Mark Mitchell  <mark@codesourcery.com>
11708         * class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in
11709         comment.
11710         (build_vtable_entry): Don't assume all vtable entries are
11711         functions.
11712         (build_vtbl_initializer): Adjust accordingly.
11713         (get_vtable_decl): Fix formatting.
11715 2000-02-18  Jason Merrill  <jason@casey.cygnus.com>
11717         * semantics.c (deferred_type_access_control): Walk the entire
11718         type_lookups list.
11719         (save_type_access_control): Rename from
11720         initial_deferred_type_access_control.  Just remember the value.
11721         (decl_type_access_control): New fn.
11722         (begin_function_definition): Use deferred_type_access_control, after
11723         we've started the function.  Set type_lookups to error_mark_node.
11724         * parse.y (frob_specs, fn.def1): Adjust.
11725         (parse_decl0, parse_field, parse_field0, parse_bitfield): New fns.
11726         (parse_end_decl, parse_bitfield0, parse_method): New fns.
11727         (fn.def2, initdcl, initdcl0_innards, nomods_initdcl0): Use them.
11728         (after_type_component_declarator0): Likewise.
11729         (after_type_component_declarator): Likewise.
11730         (notype_component_declarator): Likewise.
11731         * cp-tree.h: Adjust.
11733         * decl.c (redeclaration_error_message): Allow redeclaration of
11734         namespace-scope decls.
11736 2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
11738         * typeck2.c (my_friendly_abort): Use GCCBUGURL.
11740 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
11742         * class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
11743         * decl2.c (grokclassfn): Likewise.
11745         * ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
11747         * decl2.c (lang_decode_option): Don't set default message length
11748         here.
11749         * lex.c (lang_init_options): Set it here.
11751 2000-02-16  Mark Mitchell  <mark@codesourcery.com>
11753         Make DECL_CONTEXT mean the class in which a member function was
11754         declared, even for a virtual function.
11755         * cp-tree.h (DECL_CLASS_CONTEXT): Adjust.
11756         (DECL_FRIEND_CONTEXT): New macro.
11757         (DECL_REAL_CONTEXT): Remove.
11758         (SET_DECL_FRIEND_CONTEXT): Likewise.
11759         (DECL_VIRTUAL_CONTEXT): Adjust.
11760         (DECL_CLASS_SCOPE_P): Use TYPE_P.
11761         (add_friends): Remove.
11762         (hack_decl_function_context): Likewise.
11763         * call.c (build_new_function_call): Replace DECL_REAL_CONTEXT with
11764         CP_DECL_CONTEXT.
11765         (build_over_call): Fix indentation.  Use DECL_CONTEXT
11766         instead of DECL_CLASS_CONTEXT.
11767         * class.c (dfs_build_vcall_offset_vtbl_entries): Likewise.
11768         (add_method): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
11769         (strictly_overrides): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
11770         (build_vtbl_or_vbase_field): Don't set DECL_CLASS_CONTEXT.
11771         (build_base_field): Likewise.
11772         (finish_struct_1): Likewise.
11773         (build_self_reference): Likewise.
11774         * decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
11775         DECL_REAL_CONTEXT.
11776         (pushtag): Use decl_function_context, not
11777         hack_decl_function_context.
11778         (decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
11779         (duplicate_decls): Use DECL_VIRTUAL_CONTEXT.
11780         (pushdecl): Remove bogus code.
11781         (start_decl): Use DECL_CONTEXT rather than DECL_CLASS_CONTEXT.
11782         (cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
11783         (grokfndecl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
11784         Use decl_function_context, nothack_decl_function_context.
11785         (grokvardecl): Don't set DECL_CLASS_CONTEXT.
11786         (grokdeclarator): Likewise.  Use decl_function_context, not
11787         hack_decl_function_context.
11788         (copy_args_p): Document.  Don't use DECL_CLASS_CONTEXT.
11789         (start_function): Use DECL_FRIEND_CONTEXT, not
11790         DECL_CLASS_CONTEXT.  Use decl_function_context, not
11791         hack_decl_function_context.
11792         (finish_function): Use decl_function_context, not
11793         hack_decl_function_context.
11794         (maybe_retrofit_in_chrg): Use DECL_CONTEXT, not
11795         DECL_CLASS_CONTEXT.
11796         (grokclassfn): Set DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT.
11797         (finish_static_data_member_decl): Don't set DECL_CLASS_CONTEXT.
11798         (grokfield): Likewise.
11799         (finish_builtin_type): Likewise.
11800         (finish_vtable_vardec): Use decl_function_context, not
11801         hack_decl_function_context.
11802         (import_export_decl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
11803         (start_static_initialization_or_destruction): Likewise.
11804         (finish_static_initialization_or_destruction): Likewise.
11805         (mark_used): Adjust logic for deciding when to synthesize methods.
11806         * dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
11807         DECL_REAL_CONTEXT.
11808         * error.c (dump_function_decl): Use DECL_CONTEXT, not
11809         DECL_CLASS_CONTEXT.
11810         * friend.c (is_friend): Likewise.
11811         (add_friends): Remove.
11812         (do_friend): Use SET_DECL_FRIEND_CONTEXT.
11813         * lex.c (begin_definition_of_inclass_inline): Use
11814         decl_function_context, not hack_decl_function_context.
11815         (process_next_inline): Likewise.
11816         (do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
11817         * method.c (set_mangled_name_for_decl): Use DECL_CONTEXT, not
11818         DECL_CLASSS_CONTEXT.
11819         (hack_identifier): Likewise.
11820         (synthesize_method):  Use decl_function_context, not
11821         hack_decl_function_context.
11822         * pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
11823         DECL_REAL_CONTEXT.
11824         (is_member_template): Use decl_function_context, not
11825         hack_decl_function_context.  Use DECL_CONTEXT, not
11826         DECL_CLASS_CONTEXT.
11827         (build_template_decl): Set DECL_VIRTUAL_CONTEXT, not
11828         DECL_CLASS_CONTEXT.
11829         (check_default_tmpl_args): Use CP_DECL_CONTEXT, not
11830         DECL_REAL_CONTEXT.
11831         (push_template_decl_real): Likewise.
11832         (instantiate_class_template): Don't call add_friends.
11833         (tsubst_default_argument): Use DECL_CONTEXT, not
11834         DECL_REAL_CONTEXT.
11835         (tsubst_decl): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
11836         Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
11837         (set_meangled_name_for_template_decl): Use DECL_CONTEXT, not
11838         DECL_CLASS_CONTEXT.
11839         * repo.c (repo_inline_used): Likewise.
11840         * search.c (current_scope): Adjust for new _CONTEXT macros.
11841         (context_for_name_lookup): Use CP_DECL_CONTEXT, not
11842         DECL_REAL_CONTEXT.
11843         (friend_accessible_p): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
11844         (lookup_fnfields_here):Likewise.
11845         (check_final_overrider): Likewise.
11846         (init_vbase_pointers): Likewise.
11847         (virtual_context): Likewise.
11848         * semantics.c (finish_member_declaration): Just set DECL_CONTEXT.
11849         (expand_body): Use decl_function_context, not
11850         hack_decl_function_context.
11851         * tree.c (hack_decl_function_context): Remove.
11852         * typeck.c (build_x_function_call): Use DECL_CONTEXT, not
11853         DECL_CLASS_CONTEXT.
11854         * typeck2.c (error_not_base_type): Likewise.
11856 2000-02-15  Jason Merrill  <jason@casey.cygnus.com>
11858         * decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.
11860 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11862         * Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
11864 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
11866         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
11868 2000-01-16  Gabriel Dos Reis  <gdr@codesourcery.com>
11870         * decl2.c (lang_decode_option): Enable automatic line wrapping.
11872 2000-02-13  Jason Merrill  <jason@casey.cygnus.com>
11874         * parse.y (frob_specs): Split out...
11875         (parse_decl): From here.
11876         (fn.def2): Call initial_deferred_type_access_control.
11877         (after_type_component_declarator0): Call frob_specs.
11878         (notype_component_declarator0): Likewise.
11879         * search.c (friend_accessible_p): Nested classes are friends of their
11880         enclosing classes.
11882 2000-02-10  Mark Mitchell  <mark@codesourcery.com>
11884         * ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be
11885         used to create an implicit temporary.
11887         * class.c (dfs_modify_vtables): Tweak calculation of functions to
11888         override.
11890 2000-02-08  Nathan Sidwell  <nathan@acm.org>
11892         * typeck.c (strip_all_pointer_quals): Use TYPE_MAIN_VARIANT, to
11893         strip array element qualifiers too.
11895 2000-02-07  Mark Mitchell  <mark@codesourcery.com>
11897         * decl.c (store_parm_decls): Don't build cleanups for parameters
11898         while processing_template_decl.
11900 2000-02-07  Jason Merrill  <jason@casey.cygnus.com>
11902         * cp-tree.h (struct saved_scope): Add incomplete field.
11903         (namespace_scope_incomplete): New macro.
11904         * decl.c (pushdecl): Use it.
11905         (hack_incomplete_structures): Use it.  See through artificial
11906         binding levels.
11907         (mark_saved_scope): Mark it.
11909         Implement access control for nested types.
11910         * search.c (type_access_control): New fn.
11911         (accessible_p): Now we do perform access control for types.
11912         * semantics.c (deferred_type_access_control): New fn.
11913         (initial_deferred_type_access_control): New fn.
11914         (begin_function_definition): Call it.  Add lookups parm.
11915         * decl.c (struct binding_level): Add this_class field.
11916         (pushlevel_class): Set it.
11917         (mark_binding_level): Mark it.
11918         (lookup_name_real): Use it.  Call type_access_control.
11919         (mark_saved_scope): Mark lookups field.
11920         * cp-tree.h (flagged_type_tree): Add lookups field.
11921         (struct saved_scope): Add lookups field.
11922         (type_lookups): New macro.
11923         * parse.y (declmods): Now <ftype>.
11924         (parse_decl): Add lookups parm.  Call
11925         initial_deferred_type_access_control.
11926         (lang_extdef): Clear type_lookups.
11927         (typed_declspecs, declmods, typespec): Set lookups field.
11928         (initdcl): Call deferred_type_access_control.
11929         (fn.def1, fn.def2, typed_declspecs1, initdcl0_innards, nomods_initdcl0,
11930         component_decl_1, named_parm): Adjust.
11931         * friend.c (is_friend): Nested classes are friends of their
11932         enclosing classes.
11934         * class.c (currently_open_derived_class): New fn.
11935         * method.c (hack_identifier): Use it.
11937         * lex.c (do_identifier): Remove obsolete code.
11939         * parse.y (typed_typespecs): Propagate new_type_flag properly.
11941 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
11943         * tinfo.h: Remove apostrophes from C++ comment (xgettext
11944         thinks this file is plain C).
11946 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11948         * Makefile.in (call.o): Depend on $(EXPR_H).
11950         * call.c: Include "expr.h".
11952         * class.c (dump_class_hierarchy): Add prototype.
11954         * search.c (dfs_get_pure_virtuals): Likewise.
11956 2000-02-1  Ulrich Drepper  <drepper@redhat.com>
11958         * parse.y (simple_stmt): Allow :: token in asm parameter list.
11959         * parse.c: Rebuilt.
11961 Mon Jan 31 15:35:29 2000  Jim Wilson  <wilson@cygnus.com>
11963         * class.c (build_vtbl_or_vbase_field): New parameter fcontext.
11964         Store it in DECL_FCONTEXT.
11965         (build_vbase_pointer_fields, create_vtable_ptr): Fix callers.
11967 2000-01-31  Jason Merrill  <jason@casey.cygnus.com>
11969         * tinfo.h (old abi): #include "tconfig.h".
11970         * tinfo.cc (convert_to_base): Move into old abi section.
11972 2000-01-31  Mark Mitchell  <mark@codesourcery.com>
11974         * cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
11975         (CLASSTYPE_PRIMARY_BINFO): Use BINFO_PRIMARY_BINFO.
11976         (BINFO_PRIMARY_BINFO): New macro.
11977         (BF_DELTA): Rename to ...
11978         (BV_DELTA): ... this.
11979         (BF_VCALL_INDEX): Rename to ...
11980         (BV_VCALL_INDEX): ... this.
11981         (BF_FN): Rename to ...
11982         (BV_FN): ... this.
11983         * class.c (build_vbase_path): Adjust for changes to reverse_path.
11984         (set_rtti_entry): Rename BF_ macros to BV_ variants.
11985         (modify_vtable_entry): Simplify.
11986         (add_virtual_function): Rename BF_ macros to BV_ variants.
11987         (build_vtable_initializer): Likewise.
11988         (get_class_offset_1): Remove.
11989         (dfs_get_class_offset): Likewise.
11990         (get_class_offset): Likewise.
11991         (dfs_find_final_overrider): New function.
11992         (find_final_overrider): Likewise.
11993         (modify_one_vtable): Remove.
11994         (dfs_find_base): New function.
11995         (dfs_modify_vtables): Fold modify_one_vtable in here.  Use
11996         find_final_overrider.
11997         (modify_all_vtables): Adjust.  Set BV_VCALL_INDEX on new
11998         virtuals.
11999         (dfs_fixup_vtable_deltas): Remove.
12000         (override_one_vtable): Remove.
12001         (merge_overrides): Likewise.
12002         (layout_virtual_bases): Make sure BINFO_OFFSET is set right for
12003         unreal chilren of virtual bases.
12004         (finish_struct_1): Don't use merge_overrides.  Don't use
12005         dfs_fixup_vtable_deltas.
12006         * tree.c (reverse_path): Return a TREE_LIST, not a chain of
12007         BINFOs.
12009 2000-01-31  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12010             Jason Merrill  <jason@yorick.cygnus.com>
12012         * tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
12014 2000-01-31  Alfred Minarik <a8601248@unet.univie.ac.at>
12016         * exception.cc (__throw_bad_typeid): Add missing std::.
12018 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12020         * cp-tree.h (make_thunk): PROTO -> PARAMS.
12022 2000-01-31  Nathan Sidwell  <sidwell@codesourcery.com>
12024         * cp-tree.h (new_abi_rtti_p): Use flag_new_abi.
12026         Runtime support for new-abi rtti.
12027         * inc/typeinfo (type_info::operator!=): Define in class.
12028         (type_info::before, type_info::name, type_info::operator==,
12029         type_info::operator!=): Define new ABI implementations.
12030         (type_info::is_pointer_p, type_info::is_function_p): Declare
12031         new virtual functions.
12032         (type_info::do_catch, type_info::do_upcast): Likewise.
12034         * tinfo.h (__base_class_info): Define new class.
12035         (__class_type_info): Likewise.
12036         (__si_class_type_info): Likewise.
12037         (__vmi_class_type_info): Likewise.
12038         (__dynamic_cast): Prototype.
12040         * tinfo.cc: Conditionalize old and new rtti mechanisms.
12041         (type_info::is_pointer_p): Define new function.
12042         (type_info::is_function_p): Likewise.
12043         (type_info::do_catch): Likewise.
12044         (type_info::do_upcast): Likewise.
12045         (vtable_prefix): New structure for vtable access.
12046         (adjust_pointer): Define new template function.
12047         (contained_p, public_p, virtual_p, contained_public_p,
12048         contained_nonpublic_p, contained_nonvirtual_p): Define new
12049         functions.
12050         (nonvirtual_base_type): New local variable.
12051         (__class_type_info::~__class_type_info): Define.
12052         (__si_class_type_info::~__si_class_type_info): Likewise.
12053         (__vmi_class_type_info::~__vmi_class_type_info): Likewise.
12054         (__class_type_info::do_catch): Define new function.
12055         (__class_type_info::do_upcast): Likewise.
12056         (__class_type_info::find_public_src): Likewise.
12057         (__class_type_info::do_find_public_src): Likewise.
12058         (__si_class_type_info::do_find_public_src): Likewise.
12059         (__vmi_class_type_info::do_find_public_src): Likewise.
12060         (__class_type_info::do_dyncast): Likewise.
12061         (__si_class_type_info::do_dyncast): Likewise.
12062         (__vmi_class_type_info::do_dyncast): Likewise.
12063         (__class_type_info::do_upcast): Likewise.
12064         (__si_class_type_info::do_upcast): Likewise.
12065         (__vmi_class_type_info::do_upcast): Likewise.
12066         (__dynamic_cast): Likewise.
12068         * tinfo2.cc (__fundamental_type_info): Define new class.
12069         (__pointer_type_info): Likewise.
12070         (__reference_type_info): Likewise.
12071         (__array_type_info): Likewise.
12072         (__function_type_info): Likewise.
12073         (__enum_type_info): Likewise.
12074         (__ptr_to_member_type_info): Likewise.
12075         (__fundamental_type_info::~__fundamental_type_info): Define.
12076         (__pointer_type_info::~__pointer_type_info): Likewise.
12077         (__reference_type_info::~__reference_type_info): Likewise.
12078         (__array_type_info::~__array_type_info): Likewise.
12079         (__function_type_info::~__function_type_info): Likewise.
12080         (__enum_type_info::~__enum_type_info): Likewise.
12081         (__ptr_to_member_type_info::~__ptr_to_member_type_info): Likewise.
12082         (__pointer_type_info::do_catch): Define new function.
12083         (__ptr_to_member_type_info::do_catch): Define new function.
12085         (__throw_type_match_rtti_2): Use new ABI interface, if enabled.
12086         (__is_pointer): Likewise.
12088         * exception.cc (__cplus_type_matcher): Deal with new-abi rtti.
12090 2000-01-30  Mark Mitchell  <mark@codesourcery.com>
12092         * cp/class.c (build_vtable): Rename to build_primary_vtable.
12093         (prepare_fresh_vtable): Rename to build_secondary_vtable.
12094         (make_new_vtable): New function.
12095         (modify_vtable_entry): Handle generation of new vtables correctly.
12096         (modify_one_vtable): Remove unused parameter.
12097         (dfs_fixup_vtable_deltas): Likewise.
12098         (override_one_vtable): Use build_secondary_vtable.
12099         (finish_struct_1): Use build_primary_vtable and
12100         build_secondary_vtable.
12102 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
12104         * cp/decl.c: Adjust variable names, comments, help strings.
12106 2000-01-29  Nathan Sidwell  <nathan@acm.org>
12108         * new2.cc (operator delete[]): Use operator delete, don't assume
12109         implementation.
12111 2000-01-29  Nathan Sidwell  <sidwell@codesourcery.com>
12113         * class.c (build_vtbl_initializer): Add argument to
12114         build_vtable_entry call.
12116 2000-01-27  Mark Mitchell  <mark@codesourcery.com>
12118         * cp-tree.def (THUNK_DECL): Discuss vcall indices.
12119         * cp-tree.h (BINFO_VIRTUALS): Update documentation.
12120         (BF_DELTA): New macro.
12121         (BF_VCALL_INDEX): Likewise.
12122         (BF_FN): Likewise.
12123         (THUNK_VCALL_OFFSET): Likewise.
12124         (make_thunk): Change prototype.
12125         * class.c (build_vtable_entry): Integrate
12126         build_vtable_entry_for_fn.  Handle vcall indices.
12127         (build_vtable_entry_for_fn): Remove.
12128         (set_rtti_entry): Handle vcall indices.  Use BF_DELTA,
12129         BF_VCALL_INDEX, BF_FN.
12130         (modify_vtable_entry): Integrate common code from
12131         modify_one_vtable and dfs_fixup_vtable_deltas.
12132         (add_virtual_function): Set BF_VCALL_INDEX.
12133         (build_vtbl_initializer): Simplify.  Use BF_DELTA, BF_VCALL_INDEX,
12134         and BF_FN.
12135         (modify_one_vtable): Simplify.
12136         (dfs_fixup_vtable_deltas): Likewise.
12137         (override_one_vtable): Use BF_DELTA, BF_VCALL_INDEX, BF_FN.
12138         * method.c (make_thunk): Handle vcall indices.
12140 2000-01-28  Nathan Sidwell  <sidwell@codesourcery.com>
12142         Compiler side new abi rtti (not enabled).
12143         * cp-tree.h (new_abi_rtti_p): New macro.
12144         (emit_support_tinfos): Prototype new function.
12145         (tinfo_decl_p): Likewise.
12146         (emit_tinfo_decl): Likwise.
12147         * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL): New accessor
12148         macros.
12149         (doing_runtime): New local static.
12150         (init_rtti_processing): Add new-abi initializer.
12151         (get_tinfo_decl): Add new-abi logic.
12152         (tinfo_from_decl): Likewise.
12153         (build_dynamic_cast_1): Likewise.
12154         (qualifier_flags): New static function.
12155         (tinfo_base_init): Likewise.
12156         (generic_initializer): Likewise.
12157         (ptr_ref_initializer): Likewise.
12158         (ptmd_initializer): Likewise.
12159         (class_hint_flags): Likewise.
12160         (class_initializer): Likewise.
12161         (synthesize_tinfo_var): Likewise.
12162         (create_real_tinfo_var): Likewise.
12163         (create_pseudo_type_info): Likewise.
12164         (get_vmi_pseudo_type_info): Likewise.
12165         (create_tinfo_types): Likewise.
12166         (emit_support_tinfos): New global function.
12167         (tinfo_decl_p): New global predicate.
12168         (emit_tinfo_decl): New global function.
12169         * class.c (set_rtti_entry): Generalize for old and new rtti.
12170         (build_vtbl_initializer): Likewise.
12171         * decl2.c (finish_file): Likewise.
12173 Thu Jan 27 20:53:36 2000  Jim Wilson  <wilson@cygnus.com>
12175         * optimize.c (remap_decl): Add walk_tree calls for DECL_SIZE (t)
12176         and TYPE_MAX_VALUE (TYPE_DOMAIN (TREE_TYPE (t))).
12178 Thu Jan 27 13:54:12 2000  Mike Stump  <mrs@wrs.com>
12180         * decl.c (pushdecl): Fix up shadow warnings with respect to implicit
12181         for scopes.
12183 2000-01-26  Jason Merrill  <jason@casey.cygnus.com>
12185         * pt.c (unify): Use fold, not maybe_fold_nontype_arg.
12187 Wed Jan 26 22:19:14 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12189         * optimize.c (calls_setjmp_r): Supply new argument
12190         to special_function_p.
12192 2000-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12194         * call.c: PROTO -> PARAMS.
12195         * class.c: Likewise.
12196         * cp-tree.h: Likewise.
12197         * cvt.c: Likewise.
12198         * decl.c: Likewise.
12199         * decl.h: Likewise.
12200         * decl2.c: Likewise.
12201         * dump.c: Likewise.
12202         * errfn.c: Likewise.
12203         * error.c: Likewise.
12204         * except.c: Likewise.
12205         * expr.c: Likewise.
12206         * init.c: Likewise.
12207         * input.c: Likewise.
12208         * lex.c: Likewise.
12209         * lex.h: Likewise.
12210         * method.c: Likewise.
12211         * optimize.c: Likewise.
12212         * parse.y: Likewise.
12213         * pt.c: Likewise.
12214         * repo.c: Likewise.
12215         * rtti.c: Likewise.
12216         * search.c: Likewise.
12217         * semantics.c: Likewise.
12218         * spew.c: Likewise.
12219         * tree.c: Likewise.
12220         * typeck.c: Likewise.
12221         * typeck2.c: Likewise.
12222         * xref.c: Likewise.
12224 2000-01-25  Richard Henderson  <rth@cygnus.com>
12226         * typeck.c (build_binary_op_nodefault): Remove UNNE_EXPR.
12228 2000-01-25  Mark Mitchell  <mark@codesourcery.com>
12230         * cp-tree.h (vcall_offset_in_vtable_p): New macro.
12231         * class.c (build_vbase_offset_vtbl_entries): Fix typo in commment.
12232         (struct vcall_offset_data_s): New type.
12233         (dfs_vcall_offset_queue_p): New function.
12234         (dfs_build_vcall_offset_vtbl_entries): Likewise.
12235         (build_vcall_offset_vtbl_entries): Likewise.
12236         (layout_vtable_decl): Likewise.
12237         (num_vfun_entries): Likewise.
12238         (num_extra_vtbl_entries): Add the entries for vcall offsets.
12239         (build_vtbl_initializer): Likewise.
12240         (dfs_finish_vtabls): Use layout_vtable_decl.
12241         (modify_one_vtables): Always duplicate vtables under the new ABI.
12242         (finish_struct_1): Use layout_vtable_decl.
12244 2000-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12246         * decl.c (member_function_or_else): Change third arg from a format
12247         specifier to an `enum overload_flags'.  Callers changed.
12249 2000-01-25  Gabriel Dos Reis  <gdr@codesourcery.com>
12251         * typeck.c (composite_pointer_type, c_sizeof, expr_sizeof,
12252         build_binary_op_nodefault, build_unary_op, build_reinterpret_cast,
12253         build_const_cast, get_delta_difference, check_return_expr): Avoid
12254         ANSI string concatenation usage.
12256 2000-01-24  Mark Mitchell  <mark@codesourcery.com>
12258         * class.c (layout_class_type): Put the fields required to make a
12259         class non-empty at the end, not the beginning, of the TYPE_FIELDs
12260         list.
12262 2000-01-24  Jason Merrill  <jason@casey.cygnus.com>
12264         * pt.c (maybe_fold_nontype_arg): Do nothing if we're not in a
12265         template.
12267         * decl2.c (mark_used): Do instantiate inlines that have been
12268         explicitly instantiated.
12270 2000-01-24  Richard Henderson  <rth@cygnus.com>
12272         * call.c (build_over_call): Use expand_tree_builtin.
12273         * typeck.c (build_function_call_real): Likewise.
12274         (build_binary_op_nodefault): Handle unordered compares.
12276 2000-01-24  Nathan Sidwell  <sidwell@codesourcery.com>
12278         * cp-tree.h (CPTI_BAD_CAST, CPTI_BAD_TYPEID, CPTI_DCAST): New
12279         cp_tree_index values.
12280         (throw_bad_cast_node, throw_bad_typeid_node, dynamic_cast_node):
12281         New global node #defines for them.
12282         * rtti.c (call_void_fn): Replace with ...
12283         (build_runtime_decl): ... new static function.
12284         (throw_bad_cast): Use throw_bad_cast_node and build_runtime_decl.
12285         (throw_bad_typeid): Use throw_bad_typeid_node and build_runtime_decl.
12286         (build_dynamic_cast_1): Always produce correctly typed result.
12287         Explicitly produce type_info addresses. Use dynamic_cast_node.
12288         * exception.cc (__throw_bad_cast): Return `void *'.
12289         (__throw_bad_typeid): Return `const type_info &'.
12291 2000-01-24  Nathan Sidwell  <sidwell@codesourcery.com>
12293         * cp-tree.h (get_vtable_decl): Prototype new function.
12294         * class.c (get_vtable_decl): New function. Broken out from ...
12295         (build_vtable): ... here. Use it.
12296         * decl2.c (finish_vtable_vardecl): Ignore dummy vtables created
12297         by get_vtable_decl.
12299 2000-01-24  Nathan Sidwell  <sidwell@codesourcery.com>
12301         * cp-tree.h (CPTI_TP_DESC_TYPE, CPTI_ACCESS_MODE_TYPE,
12302         CPTI_USER_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_ATTR_DESC_TYPE,
12303         CPTI_PTMF_DESC_TYPE): Remove cp_tree_index enumerations.
12304         (CPTI_TI_DESC_TYPE, CPTI_REF_DESC_TYPE, CPTI_ARY_DESC_TYPE,
12305         CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE, CPTI_SI_CLASS_DESC_TYPE,
12306         CPTI_VMI_CLASS_DESC_TYPE, CPTI_BASE_DESC_TYPE): New enumerations.
12307         (CPTI_TINFO_FN_ID, CPTI_TINFO_FN_TYPE): Rename to ...
12308         (CPTI_TINFO_DECL_ID, CPTI_TINFO_DECL_TYPE): ... here.
12309         (CPTI_TINFO_VAR_ID): New enumeration.
12310         (__tp_desc_type_node, __access_mode_type_node,
12311         __bltn_desc_type_node, __user_desc_type_node,
12312         __class_desc_type_node, __ptr_desc_type_node,
12313         __attr_desc_type_node, __func_desc_type_node,
12314         __ptmf_desc_type_node, __ptmd_desc_type_node): Remove #defines.
12315         (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
12316         ref_desc_type_node, ary_desc_type_node, func_desc_type_node,
12317         enum_desc_type_node, class_desc_type_node,
12318         si_class_desc_type_node, vmi_class_desc_type_node,
12319         ptmd_desc_type_node, base_desc_type_node): New #defines.
12320         (tinfo_fn_id, tinfo_fn_type): Rename to ...
12321         (tinfo_decl_id, tinfo_decl_type): ... here. Adjust.
12322         (tinfo_var_id): New enumeration.
12323         (DECL_TINFO_FN_P): Augment comment.
12324         * decl.c (cp_global_trees): Adjust documentation.
12325         * rtti.c (init_rtti_processing): Adjust for tinfo_decl_id,
12326         tinfo_decl_type and tinfo_var_id.
12327         (get_tinfo_decl_dynamic): Adjust for tinfo_decl_type.
12328         (build_typeid): Remove unused variable.
12329         (get_tinfo_var): Use tinfo_var_id.
12330         (tinfo_name): New static function.
12331         (get_tinfo_decl): Adjust for tinfo_decl_id and tinfo_decl_type.
12332         (tinfo_from_decl): Likewise.
12333         (get_base_offset): New static function, broken out of
12334         expand_class_desc.
12335         (expand_si_desc): Use tinfo_name.
12336         (expand_class_desc): Likewise. Lose local static variable.
12337         Use base_desc_type_node. Use get_base_offset.
12338         (expand_ptr_desc): Use tinfo_name.
12339         (expand_attr_desc): Likewise.
12340         (expand_generic_desc): Likewise.
12342         * tinfo.cc (__GXX_ABI_VERSION): Test value and existence.
12343         * tinfo.h (__GXX_ABI_VERSION): Test value and existence.
12345 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
12347         * cp-tree.h (__eprintf): Remove declaration.
12348         * tree.c (__eprintf): Remove definition.
12350 2000-01-23  Zack Weinberg  <zack@rabi.columbia.edu>
12351             Mark Mitchell  <mark@codesourcery.com>
12353         * cp-tree.h (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N,
12354         CLEAR_CLASSTYPE_MARKED_N): Avoid signed vs. unsigned warnings.
12356 2000-01-23  Brad Lucier  <lucier@math.purdue.edu>
12358         * class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly.
12360 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
12362         * cp-tree.h (register_dtor_fn): New function.
12363         * decl.c (destroy_local_static): Rename to ...
12364         (register_dtor_fn): ... this.  Give it external linkage.
12365         (expand_static_init): Use it.
12366         * decl2.c (do_static_initialization): Likewise, if using
12367         __cxa_atexit.
12368         (do_static_destruction): Check that __cxa_atexit is not in use.
12369         (finish_file): Don't call do_static_destruction if using
12370         __cxa_atexit.
12372         * typeck.c (convert_arguments): Restore two-message error
12373         reporting.
12375 2000-01-20  Nathan Sidwell  <sidwell@codesourcery.com>
12377         Remap dynamic cast hint values to be consistent across ABIs.
12378         * search.c (dynamic_cast_base_recurse): Remap generated value.
12379         (get_dynamic_cast_base_type): Adjust documentation.
12380         * tinfo.h (__user_type_info::dyncast): Likewise.
12381         (__user_type_info::find_public_subobj): Remap BOFF meaning.
12382         * tinfo.cc (__si_type_info::do_dyncast): Remap BOFF meaning.
12383         (__class_type_info::do_dyncast): Likewise.
12384         (__class_type_info::do_find_public_subobj): Likewise.
12385         * tinfo2.cc (__dynamic_cast): Remap BOFF parameter.
12387 2000-01-19  Gabriel Dos Reis  <gdr@codesourcery.com>
12389         * typeck.c (build_unary_op): Use cp_pedwarn, not pedwarn.
12391         * typeck2.c (incomplete_type_error): Restore previous
12392         cp_error and cp_error_at call sequence.
12394 2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
12396         * class.c (dump_class_hierarchy): Make format agree with argument;
12397         cast pointer to unsigned long and print with %lx.
12399 2000-01-19  Gabriel Dos Reis  <gdr@codesourcery.com>
12401         * decl2.c (lang_decode_option): Set default line-wrap length to 72.
12403         * typeck.c (composite_pointer_type, common_type,
12404         comp_target_parms, c_sizeof, expr_sizeof, build_array_ref,
12405         build_function_call_real, convert_arguments,
12406         build_binary_op_nodefault, pointer_int_sum, pointer_diff,
12407         build_unary_op, mark_addressable, build_compound_expr,
12408         build_static_cast, build_reinterpret_cast, build_const_cast,
12409         build_c_cast, build_modify_expr, get_delta_difference,
12410         build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
12411         'ISO C++'.  Fusion consecutive calls to diagnostic message routines
12412         into a single one.
12413         * typeck2.c (readonly_error, abstract_virtuals_error,
12414         process_init_constructor, check_for_new_type): Likewise.
12416 2000-01-19  Mark Mitchell  <mark@codesourcery.com>
12418         * tree.c (bot_manip): Set DECL_CONTEXT for newly created
12419         VAR_DECLs.
12421 2000-01-18  Nathan Sidwell  <sidwell@codesourcery.com>
12423         * cp-tree.h (get_tinfo_fn_dynamic): Remove prototype.
12424         (build_x_typeid): Likewise.
12425         (get_tinfo_fn): Likewise.
12426         (get_tinfo_fn_unused): Rename to ...
12427         (get_tinfo_decl): ... here.
12428         * rtti.c (build_headof): Replace logic error with assertion.
12429         (get_tinfo_fn_dynamic): Rename to ...
12430         (get_tinfo_decl_dynamic): ... here. Make static. Use
12431         complete_type_or_else.
12432         (build_x_typeid): Move into ...
12433         (build_typeid): ... here. Adjust call to
12434         get_tinfo_decl_dynamic. Use tinfo_from_decl. Simplify
12435         throw_bad_typeid expression.
12436         (get_tinfo_fn_unused): Rename to ...
12437         (get_tinfo_decl): ... here. Adjust comment.
12438         (get_tinfo_fn): Delete.
12439         (tinfo_from_decl): New static function.
12440         (get_typeid_1): Call get_tinfo_decl and tinfo_from_decl.
12441         (get_typeid): Use complete_type_or_else.
12442         (build_dynamic_cast_1): Adjust calls to
12443         get_tinfo_decl_dynamic. Simplify throw_bad_cast expression.
12444         * parse.y (primary): Adjust call to build_typeid.
12445         * except.c (build_eh_type_type_ref): Adjust call to
12446         get_tinfo_decl. Mark as used.
12447         * class.c (set_rtti_entry): Adjust call to get_tinfo_decl.
12448         * decl2.c (build_expr_from_tree): Adjust call to build_typeid.
12449         * parse.c: Regenerated.
12451 2000-01-17  Mark Mitchell  <mark@codesourcery.com>
12453         * class.c (fixed_type_or_null): Don't clear NONNULL.  Document
12454         calling convention.
12455         (resolves_to_fixed_type_p): Document calling convention.
12456         * rtti.c (build_x_typeid): Initialize NONNULL.
12458         * cp-tree.h (build_shared_int_cst): New function.
12459         * call.c (build_over_call): Use DECL_VIRTUAL_CONTEXT, for clarity.
12460         * class.c (modify_vtable_entry): Likewise.
12461         (add_virtual_function): Split out code to generated shared
12462         INTEGER_CSTs to build_share_int_cst.
12463         (modify_all_vtables): Handle all the overridden functions here.
12464         Add overridden functions from non-primary virtual bases to the
12465         primary vtable.
12466         (finish_struct_1): Adjust call to modify_all_vtables.  Add
12467         overridden functions from non-primary bases to the vtable.
12468         * tree.c (build_shared_int_cst): New function.
12470         * cp-tree.h (scratchalloc): Remove.
12471         (build_scratch_list): Likewise.
12472         * call.c (convert_class_to_reference): Replace build_scratch_list
12473         and build_expr_list with build_tree_list.
12474         (add_candidate): Replace scratchalloc with expralloc.  Note memory
12475         leak.
12476         (build_user_type_conversion_1):  Replace build_scratch_list
12477         and build_expr_list with build_tree_list.
12478         (build_new_op): Likewise.
12479         (build_op_delete_call): Likewise.
12480         (convert_like): Likewise.
12481         * cvt.c (ocp_convert): Likewise.
12482         * decl.c (start_decl): Likewise.
12483         (start_function): Likewise.
12484         (finish_destructor_body): Likewise.
12485         (maybe_build_cleanup_1): Likewise.
12486         * decl2.c (reparse_decl_as_expr): Likewise.
12487         * init.c (perform_member_init): Likewise.
12488         (expand_cleanup_for_base): Likewise.
12489         (build_builtin_delete_call): Likewise.
12490         (build_new_1): Likewise.
12491         (build_delete): Likewise.
12492         * method.c (do_build_assign_ref): Likewise.
12493         * parse.y (already_scoped_stmt): Likewise.
12494         (nontrivial_exprlist): Likewise.
12495         (net_initializer): Likewise.
12496         (initlist): Likewise.
12497         * parse.c: Regenerated.
12498         * rtti.c (build_x_typeid): Likewise.
12499         (build_dynamic_cast_1): Likewise.
12500         * typeck.c (build_x_compound_expr): Likewise.
12501         (build_static_cast): Likewise.
12502         (build_modify_expr): Likewise.
12504         * cp-tree.h (DECL_VINDEX): Add documentation.
12505         * class.c (build_vtable_entry): Likewise.
12506         (start_vtable): Add comment.
12507         (add_virtual_function): Replace pending_hard_virtuals with
12508         overridden_virtuals and pending_virtuals with new_virtuals.
12509         Replace redundant assignments with assertions.
12510         (check_for_override): Add comment.
12511         (check_bases_and_members): Replace pending_hard_virtuals with
12512         overridden_virtuals and pending_virtuals with new_virtuals.
12513         (create_vtbl_ptr): Likewise.
12514         (layout_class_type): Likewise.
12515         (finish_struct_1): Likewise.  Add comments.
12517 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
12519         * class.c (finish_struct_1): Replace redundant code with
12520         assertions.
12522         * cp-tree.h (flag_new_abi): Move.
12523         (flag_use_cxa_atexit): Likewise.
12524         (flag_honor_std): Likewise.
12525         (flag_rtti): Likewise.
12526         (vbase_offsets_in_vtable_p): Define.
12527         (vptrs_present_everywhere_p): Likewise.
12528         (TYPE_CONTAINS_VPTR_P): Likewise.
12529         (dfs_walk_real): Declare.
12530         * class.c (build_vbase_pointer_fields): Check
12531         vbase_offsets_in_vtable_p.
12532         (dfs_build_vbase_offset_vtbl_entries): Record the vbase indices in
12533         BINFO_VPTR_FIELD.
12534         (build_vbase_offset_vtbl_entries): Simplify.
12535         (build_vbase_offset_vtbl_entries): Adjust.
12536         (build_vbase_pointer): Add ability to look up vbase offsets in
12537         vtable.
12538         (start_vtable): New function.
12539         (add_virtual_function): Use it.
12540         (determine_primary_base): Use TYPE_CONTAINS_VPTR_P.
12541         (num_extra_vtbl_entries): Use vbase_offsets_in_vtable_p.
12542         (build_vtbl_initializer): Take the type of the complete object as
12543         input.  Use it to correctly calculate vbase offsets.
12544         (dfs_finish_vtbls): Pass the complete type to
12545         build_vtbl_initializer.
12546         (check_bases_and_members): Use TYPE_CONTAINS_VPTR_P.
12547         (create_vtable_ptr): Create a vtable even if there are no
12548         new virtual functions, under the new ABI.
12549         (finish_struct_1): Likewise.
12550         (get_vfield_name): Use TYPE_CONTAINS_VPTR_P.
12551         * decl.c (exapnd_static_init): Remove call to
12552         preserve_initializer.
12553         * decl2.c (mark_vtable_entries): Tweak to handle vbase offsets in
12554         vtables.
12555         * init.c (initialize_vtbl_ptrs): Initialize them in pre-order.
12556         (expand_virtual_init): Use vbase_offsets_in_vtable_p.
12557         (construct_virtual_bases): Don't initialize virtual base pointers
12558         under the new ABI.
12559         (build_aggr_init): Clean up comment.
12560         (expand_aggr_init_1): Likewise.
12561         * rtti.c (expand_class_desc): Store the virtual function table
12562         index where the vbase offset lives in the offset field.
12563         * search.c (dfs_walk_real): Make it global.
12564         (dfs_debug_mark): Use TYPE_CONTAINS_VPTR_P.
12565         * tree.c (make_binfo): Don't clear BINFO_VPTR_FIELD.
12567         * tinfo.h (USItype): Make it signed under the new ABI.
12568         * tinfo.cc (convert_to_base): New function.  Encapsulate base
12569         conversion logic here.
12570         (__class_type_info::do_upcast): Use it.
12571         (__class_type_info::do_dyncast): Likewise.
12572         (__class_type_info::do_find_public_subobj): Likewise.
12574         * init.c (construct_virtual_bases): Don't look up the addresses of
12575         virtual bases at run-time.
12577         * class.c (build_vbase_pointer): Relocate.
12578         (build_vbase_pointer_fields): Likewise.
12579         (dfs_build_vbase_offset_vtbl_entries): Likewise.
12580         (build_vbase_offset_vtbl_entries): Likewise.
12582         * decl.c (init_decl_processing): Complain if -fnew-abi
12583         -fno-vtable-thunks is used.
12585         * decl2.c (lang_decode_option): Don't couple flag_honor_std to
12586         flag_new_abi.
12588 2000-01-15  Mark Mitchell  <mark@codesourcery.com>
12590         * cp-tree.h (num_extra_vtbl_entries): New function.
12591         (size_extra_vtbl_entries): Likewise.
12592         (dfs_vtable_path_unmark): Likewise.
12593         (dfs_vtable_path_unmarked_real_bases_queue_p): Likewise.
12594         (dfs_vtable_path_marked_real_bases_queue_p): Likewise.
12595         * class.c (num_extra_vtbl_entries): New function.
12596         (size_extra_vtbl_entries): Likewise.
12597         (dfs_build_vbase_offset_vtbl_entries): New function.
12598         (build_vbase_offset_vtbl_entries): Likewise.
12599         (build_vtbl_initializer): Use it.
12600         (finish_struct_1): Adjust vtable sizes (using
12601         num_extra_vtbl_entries).
12602         * expr.c (cplus_expand_expr): Assert that the DECL_RTL for a
12603         THUNK_DECL is non-NULL before expanding it.
12604         * init.c (expand_virtual_init): Adjust the vtable pointer by
12605         size_extra_vtbl_entries before storing it.
12606         * search.c (get_shared_vase_if_not_primary): Adjust prototype.
12607         Handle TREE_LIST parameters here, not in the dfs_* functions.
12608         (dfs_unmarked_real_bases_queue_p): Adjust.
12609         (dfs_marked_real_bases_queue_p): Likewise.
12610         (dfs_vtable_path_unmarked_real_bases_queue_p): New function.
12611         (dfs_vtable_path_marked_real_bases_queue_p): New function.
12612         (dfs_vtable_path_unmark): Likewise.
12614 2000-01-14  Mark Mitchell  <mark@codesourcery.com>
12616         * optimize.c (copy_body_r): Clear the operand three of a
12617         TARGET_EXPR when copying it.
12619 2000-01-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
12621         * method.c (build_decl_overload_real): Check whether we are in ::
12622         before returning __builtin_new/delete.
12624 2000-01-13  Mark Mitchell  <mark@codesourcery.com>
12626         * pt.c (tsubst_friend_function): Improve comment.
12627         (instantiate_decl): Avoid crashing when a "nested" function is
12628         instantiated from the top level.
12630         * dump.c (dqeueue_and_dump): Dump
12631         DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION.
12633 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12635         * call.c: If GATHER_STATISTICS, declare `n_build_method_call'.
12637 2000-01-13  Nathan Sidwell  <sidwell@codesourcery.com>
12639         * g++spec.c (lang_specific_driver): Add -fnew-abi if
12640         ENABLE_NEW_GXX_ABI defined.
12641         * Make-lang.in (tinfo.o, tinfo2.o, exception.o, new.o,
12642         opnew.o, opnewnt.o, opvnew.o, opvnewnt.o, opdel.o, opdelnt.o,
12643         opvdel.o, opvdelnt.o): Use GXX_ABI_FLAG switch.
12645 2000-01-12  Mark Mitchell  <mark@codesourcery.com>
12647         * decl.c (start_cleanup_fn): Call pushdecl.
12649         * call.c (convert_class_to_reference): Fix typos.
12650         (build_conditional_expr): Handle errors gracefully.
12651         * class.c (push_nested_class): Likewise.
12652         * cp-tree.h (VAR_FUNCTION_OR_PARM_DECL_CHECK): New macro.
12653         (DECL_THIS_EXTERN): Use it.
12654         (DECL_THIS_STATIC): Likewise.
12655         * cvt.c (convert_to_void): Handle errors gracefully.
12656         (build_expr_type_conversion): Likewise.
12657         * decl.c (maybe_push_decl): Likewise.
12658         (start_decl_1): Likewise.
12659         (require_complete_types_for_parms): Likewise.
12660         * parse.y (structsp): Likewise.
12661         (base_class): Likewise.
12662         * parse.c: Regenerated.
12663         * pt.c (finish_member_template_decl): Likewise.
12664         * typeck.c (decay_conversion): Likewise.
12666         * cp-tree.h (dfs_skip_vbases): New function.
12667         (find_vbase_instance): Likewise.
12668         * class.c (determine_primary_base): Allow a nearly empty base to
12669         serve as a primary base class under the new ABI.
12670         (get_class_offset_1): Rename to ...
12671         (dfs_get_class_offset): ... this.  Simplify.  Don't issue error
12672         messages here.
12673         (get_class_offset): Use it.  Issue error messages here.
12674         (dfs_modify_vtables): Rely on dfs_unmarked_real_bases_queue_p to
12675         find the right copies of virtual bases.
12676         (fixup_vtable_deltas1): Rename to ...
12677         (dfs_fixup_vtable_deltas): ... this.  Adjust to handle virtual
12678         bases as primary bases.
12679         (fixup_vtable_deltas): Remove.
12680         (override_one_vtable): Handle virtual bases as primary bases.
12681         (merge_overrides): Likewise.
12682         (finish_struct_1): Likewise.
12683         (dump_class_hierarchy): Dump primary-ness of bases as well.
12684         * search.c (mark_primary_bases): Use a pre-order traversal to
12685         handle primary virtual bases.
12686         (dfs_skip_vbases): New fiunction.
12687         (expand_upcast_fixups): Adjust to handle primary virtual bases.
12688         (fixup_virtual_upcast_offsets): Likewise.
12689         (fixup_all_virtual_upcast_offsets): Likewise.
12690         (dfs_find_vbase_instances): New function.
12691         (find_vbase_instance): Likewise.
12693 2000-01-11  Mumit Khan  <khan@xraylith.wisc.edu>
12695         * lex.c (DIR_SEPARATOR): Delete macro.
12697 2000-01-12  Gabriel Dos Reis  <gdr@codesourcery.com>
12699        * decl2.c (lang_decode_option): Handle automatic line wrapping
12700        option.
12702 2000-01-11  Mark Mitchell  <mark@codesourcery.com>
12704         * friend.c (do_friend): Don't resolve scopes when processing
12705         template declarations, even if the qualifying scope doesn't
12706         involve template parameters.
12708 2000-01-10  Mark Mitchell  <mitchell@dumbledore.codesourcery.com>
12710         * class.c (dfs_modify_vtables_queue_p): Remove.
12711         (modify_all_vtables): Use dfs_unmarked_real_bases_queue_p
12712         and dfs_marked_real_bases_queue_p instead of
12713         dfs_modify_vtables_queue_p.
12715         * class.c (build_vbase_path): Simplify.
12716         (dfs_propagate_binfo_offsets): New function.
12717         (propagate_binfo_offsets): Use it.
12718         (remove_base_field): Simplify.
12719         (dfs_set_offset_for_vbases): Remove.
12720         (dfs_set_offset_for_shared_vbases): New function.
12721         (dfs_set_offset_for_unshared_vbases): Likewise.
12722         (layout_virtual_bases): Use them.
12723         (layout_basetypes): Don't call propagate_binfo_offsets.
12724         * search.c (dfs_get_vbase_types): Clone completely fresh binfos
12725         for the vbases.
12727         * class.c (build_base_field): New function, split out from ...
12728         (build_base_fields): ... here.  Use it.  Allocate primary bases
12729         first, under the new ABI.
12730         (get_vtable_entry): Remove.
12731         (remove_base_field): New function, split out from ...
12732         (remove_base_fields): ... here.  Adjust since primary bases come
12733         first under the new ABI.
12735         * cp-tree.h (expand_direct_vtbls_init): Remove declaration.
12736         (initialize_vtbl_ptrs): New function.
12737         (expand_indirect_vtbls_init): Change prototype.
12738         (convert_pointer_to_vbase): Declare.
12739         * init.c (expand_direct_vtbls_init): Remove.
12740         (dfs_initialize_vtbl_ptrs): New function.
12741         (initialize_vtbl_ptrs): Likewise.
12742         (emit_base_init): Use initialize_vtbl_ptrs.
12743         * search.c (convert_pointer_to_vbase): Make it global.
12744         (expand_indirect_vtbls_init): Remove vtable initialization code.
12745         * semantics.c (setup_vtbl_ptr): Use initialize_vtbl_ptrs.
12747         * class.c (dfs_finish_vtbls): New function.
12748         (finish_vtbls): Use it.
12749         (dump_class_hierarchy): New function.
12751         * cp-tree.h (BINFO_PRIMARY_MARKED_P): Change definition.
12752         (BINFO_VBASE_PRIMARY_P): New macro.
12753         (BINFO_VIRTUALS): Add to documentation.
12754         (SET_BINFO_PRIMARY_MARKED_P): Remove.
12755         (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
12756         (dfs_mark_primary_bases_queue_p): Likewise.
12757         (dfs_unmarked_real_bases_queue_p): New function.
12758         (dfs_marked_real_bases_queue_p): Likewise.
12759         * search.c (dfs_mark_primary_bases): Adjust.
12760         (mark_primary_bases): Likewise.
12761         (get_shared_vbase_if_not_primary): New function.
12762         (dfs_unmarked_real_bases_queue_p): Likewise.
12763         (dfs_marked_real_bases_queue_p): Likewise.
12764         (dfs_get_pure_virtuals): Simplify.
12765         (get_pure_virtuals): Likewise.
12767 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12769         * lex.c: Include tm_p.h.
12771 2000-01-07  Nathan Sidwell  <sidwell@codesourcery.com>
12773         * lang-specs.h (__GXX_ABI_VERSION): New preprocessor macro.
12775 2000-01-06  Jason Merrill  <jason@casey.cygnus.com>
12777         * decl2.c (comdat_linkage): Don't set DECL_DEFER_OUTPUT.
12778         * pt.c (instantiate_decl): Defer comdat templates that might not be
12779         needed.
12781         * cp-tree.h (DECL_NEEDED_P): Also true if !DECL_COMDAT.
12782         * decl2.c (finish_vtable_vardecl): Don't check !DECL_COMDAT.
12783         (finish_file): Likewise.
12785         * decl2.c (import_export_class): Undo 12/14 change.
12787         * error.c (dump_decl): operator new, not operatornew.
12789         * class.c (field_decl_cmp): A nontype is "greater" than a type.
12790         * search.c (lookup_field_1): Look for the last field with the
12791         desired name.
12793 2000-01-05  Nathan Sidwell  <nathan@acm.org>
12795         * decl2.c (lookup_arg_dependent): Deal with FNS not being a
12796         FUNCTION_DECL.
12798 2000-01-05  Nathan Sidwell  <nathan@acm.org>
12800         * typeck.c (build_static_cast): Don't strip target qualifiers
12801         when casting from a class.
12803 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12805         * class.c (warn_hidden): Initialize variable `fndecl'.
12807 2000-01-03  Ulrich Drepper  <drepper@cygnus.com>
12809         * decl.c (flag_isoc9x): New variable to be able to use code in
12810         c-common.c.  For now always zero.
12812 2000-01-03  Mark Mitchell  <mark@codesourcery.com>
12814         * cp-tree.h (CLASSTYPE_VBASECLASSES): Improve documentation.
12815         * class.c (layout_basetypes): Don't set BINFO_INHERITANCE_CHAIN
12816         or unshare_base_binfos for virtual bases here.
12817         * search.c (dfs_get_vbase_types): Do it here.
12818         (get_vbase_types): Adjust.
12820 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
12822         * cp-tree.h (CLASSTYPE_VFIELDS): Move definition.
12823         (BINFO_PRIMARY_MARKED_P): Use flag 5.
12824         (SET_BINFO_PRIMARY_MARKED_P): Likewise.
12825         (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
12826         (unmark_primary_bases): Remove declaration.
12827         (unmarkedp): Declare.
12828         (dfs_vbase_unmark): Likewise.
12829         * class.c (determine_primary_base): Return immediately if there
12830         are no base classes.  Call mark_primary_bases here.
12831         (modify_all_direct_vtables): Remove.
12832         (modify_all_indirect_vtables): Remove.
12833         (dfs_modify_vtables_queue_p): New function.
12834         (dfs_modify_vtables): New function.
12835         (modify_all_vtables): Use them.
12836         (build_base_fields): Build FIELD_DECLs for primary virtual base
12837         classes.
12838         (create_vtable_ptr): Don't call determine_primary_base here.
12839         (dfs_mark_primary_bases_and_set_vbase_offsets): Rename to ...
12840         (dfs_set_offset_for_vbases): ... this.
12841         (layout_virtual_bases): Use it.
12842         (layout_class_type): Call determine_primary_base here.
12843         * search.c (unmarkedp): Make it global.
12844         (shared_marked_p): Simplify.
12845         (shared_unmarked_p): Likewise.
12846         (dfs_primary_bases_queue_p): Remove.
12847         (dfs_unmark_primary_bases): Likewise.
12848         (unmark_primary_bases): Likewise.
12849         (mark_primary_bases): Simplify.
12850         (get_pure_virtuals): Don't call mark_primary_bases here.
12851         (dfs_vbase_unmark): New function.
12852         (get_vbase_types): Simplify.
12854         * class.c (struct base_info): Remove.
12855         (determine_primary_base): Take has_virtual_p rather than a
12856         base_info as input.  Don't calculate max_has_virtual.
12857         (finish_struct_bits): Remove max_has_virtual argument.
12858         (create_vtable_ptr): Remove max_has_virtual_p argument.
12859         (layout_virtual_bases): Remove max argument.
12860         (layout_basetypes): Likewise.
12861         (layout_class_type): Remove max_has_virtual_p argument.
12862         (finish_struct_1): Remove max_has_virtual.
12864         * cp-tree.h (dfs_mark_primary_bases_queue_p): New function.
12865         (layout_basetypes): Remove.
12866         * class.c (propagate_binfo_offsets): Moved here from tree.c.
12867         Update to handle primary virtual bases.
12868         (remove_base_fields): New function, split out from
12869         layout_basetypes.
12870         (dfs_mark_primary_bases_and_set_vbase_offsets): New function.
12871         (layout_virtual_bases): New function, split out from
12872         layout_basetypes.  Update to handle primary virtual bases.
12873         (layout_basetypes): Moved here from tree.c.  Use
12874         remove_base_fields and layout_virtual_bases.
12875         * search.c (dfs_mark_primary_bases_queue_p): New function.
12876         (mark_primary_bases): Use it.
12877         * tree.c (CEIL): Remove.
12878         (propagate_binfo_offsets): Remove.
12879         (layout_basetypes): Remove.
12881 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
12883         * cp-tree.h (CLASSTYPE_N_BASECLASSES): Use BINFO_N_BASETYPES.
12884         (BINFO_PRIMARY_MARKED_P): New macro.
12885         (SET_BINFO_PRIMARY_MARKED_P): Likewise.
12886         (CLEAR_BINFO_PRIMARY_MARKED_P): Likewise.
12887         (mark_primary_bases): New function.
12888         (unmark_primary_bases): Likewise.
12889         * search.c (get_abstract_virtuals_1): Remove.
12890         (dfs_mark_primary_bases): New function.
12891         (mark_primary_bases): Likewise.
12892         (dfs_unmark_primary_bases): Likewise.
12893         (unmark_primary_bases): Likewise.
12894         (dfs_get_pure_virtuals): Likewise.
12896 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
12898         * cp-tree.h (skip_rtti_stuff): Adjust prototype.
12899         * class.c (skip_rtti_stuff): Reorganize parameters and return value.
12900         (modify_one_vtable): Adjust.
12901         (fixup_vtable_deltas1): Likewise.
12902         (override_one_vtable): Likewise.
12903         * search.c (get_abstract_virtuals_1): Likewise.
12904         (get_pure_virtuals): Likewise.
12905         (expand_upcast_fixups): Likewise.
12906         * tree.c (debug_binfo): Likewise.
12908         * class.c (build_vtable): Don't return a value.  Don't rebuild
12909         vtables for bases that have already been handled.
12910         (prepare_fresh_vtable): Don't rebuild vtables for bases that have
12911         already been handled.
12912         (modify_one_vtable): Adjust accordingly.
12913         (fixup_vtable_deltas1): Likewise.
12914         (finish_struct_1): Likewise.
12916 2000-01-01  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
12918         * call.c (build_new_method_call): Also check destructors.