+2004-06-30 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * call.c (build_over_call), typeck.c (build_function_call): Update
+ calls to check_function_format.
+
+2004-06-30 Richard Henderson <rth@redhat.com>
+
+ * call.c (build_over_call): Use __builtin_memcpy for copying
+ CLASS_AS_BASE rather than funny casting.
+
+2004-06-30 Richard Henderson <rth@redhat.com>
+
+ * init.c (build_new_1): Fill in TYPE_DOMAIN, TYPE_SIZE and
+ TYPE_SIZE_UNIT of full_type.
+
+2004-06-30 Per Bothner <per@bothner.com>
+
+ Conditionally compile support for --enable-mapped_location.
+ * decl.c (pop_label): Handle (imperfectly) USE_MAPPED_LOCATION case.
+ * decl2.c: If USE_MAPPED_LOCATION, don't do some line number
+ adjustments - which I don't understand.
+ * error.c (dump_decl): Rename "<interrnal>" to "<built-in>".
+ * error.c: Use LOCATION_FILE and EXPR_LOCATION macros.
+ (print_instantiation_partial_context): Use expand_location.
+ * decl.c (duplicate_decl): Use new DECL_IS_BUILTIN macro.
+ * name-lookup.c: Likewise.
+ * lex.c (cxx_init): Likewise. Also use BUILTINS_LOCATION.
+ * name-lookup.c: Use input_line macro.
+ * parser.c (cp_lexer_get_preprocessor_token): Use UNKNOWN_LOCATION.
+ (cp_parser_statement): Rename locaal variable statement_locus to
+ statement_location and use SET_EXPR_LOCATION macro.
+ * pt.c: Handle USE_MAPPED_LOCATION case. Use new macros.
+ * tree.c (cp_walk_subtrees): Likewise.
+
+2004-06-29 Per Bothner <per@bothner.com>
+
+ * tree.c (build_min_nt, build_min, build_min_non_dep):
+ Don't set TREE_COMPLEXITY from input_line.
+
+2004-06-29 Paul Brook <paul@codesourcery.com>
+
+ * init.c: Include target.h.
+ (get_cookie_size): Remove and replace with target hook.
+ Update callers.
+ (build_new_1): Store the element size in the cookie.
+
+2004-06-29 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/16260
+ * parser.c (cp_parser_template_declaration_after_export): Disable
+ access checks here ...
+ (cp_parser_class_specifier): ... not here.
+
+2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK,
+ VAR_FUNCTION_OR_PARM_DECL_CHECK, RECORD_OR_UNION_TYPE_CHECK,
+ BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Use appropriate
+ TREE_CHECK macro.
+
+2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ * cp-tree.h (struct deferred_access): Move to ...
+ * semantics.c (struct deferred_access): ... here. Adjust.
+ (deferred_access_stack): Make a VEC(deferred_access),
+ (deferred_access_free_list): Remove.
+ (deferred_access_no_check): New.
+ (push_deferring_access_checks, resume_deferring_access_checks,
+ stop_deferring_access_checks, pop_deferring_access_checks,
+ get_deferred_access_checks, pop_to_parent_deferring_access_checks,
+ perform_deferred_access_checks, perform_or_defer_access_check): Adjust.
+
+2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/16174
+ * call.c (build_temp): Declare.
+ (check_constructor_callable): New.
+ (reference_binding): Only set CHECK_COPY_CONSTRUCTOR if not for
+ CONSTRUCTOR_CALLABLE.
+ (convert_like_real, initialize_reference): Use
+ check_constructor_callable.
+ * cp-tree.h (LOOKUP_CONSTRUCTOR_CALLABLE): New.
+ (LOOKUP_*): Renumber.
+
+2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ * friend.c (add_friend): Only perform access checks when context
+ is a class.
+ * lex.c (cxx_make_type): Only create a binfo for aggregate types.
+ * parser.c (cp_parser_class_specifier): Disable access checks here
+ when parsing the body of a templated class.
+ * semantics.c (perform_or_defer_access_checks): Reorder to allow
+ NULL binfos when not checking access.
+
+2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ Use vector API for vbase list.
+ * cp-tree.h: Include vec.h
+ (DEF_VEC_P (tree)): New type.
+ (struct lang_type_class): Change vbase's member type.
+ (binfo_for_vbase): Declare.
+ * class.c (determine_primary_base, base_derived_from,
+ update_vtable_entry_for_fn, walk_subobject_offsets, end_of_class,
+ warn_about_ambiguous_bases, dfs_accumulate_vtbl_inits,
+ build_vtbl_initializer): Adjust.
+ * decl.c (xref_basetypes): Adjust, accumulate upper bound of
+ vbases.
+ * init.c (sort_mem_initializers, expand_member_init,
+ push_base_cleanups): Adjust.
+ * method.c (do_build_copy_constructor): Adjust.
+ * search.c (get_pure_virtuals, copied_binfo, original_binfo): Adjust.
+ (binfo_for_vbase): New.
+ * tree.c (copy_base_binfos): Adjust.
+
+2004-06-28 Mark Mitchell <mark@codesourcery.com>
+
+ * parser.c (cp_parser_set_decl_spec_type): Fix thinko.
+
+2004-06-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ PR c++/14123
+ * cxx-pretty-print.c (pp_cxx_ptr_operator): Properly put
+ paranthesis in case of pointers to array members.
+ * error.c (dump_type_prefix): Likewise.
+ (dump_type_suffix): Maybe issue a whitespace when printing
+ ARRAY_TYPE.
+
+2004-06-27 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/16193
+ * parser.c (cp_parser_set_decl_spec_type): Refine test for
+ redefinition of built-in types.
+
+2004-06-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * error.c (pp_template_argument_list_start): Remove.
+ (pp_template_argument_list_end): Likewise.
+ (pp_separate_with_comma): Use pp_cxx_separate_with.
+ (reinit_global_formatting_buffer): Remove.
+ (pp_non_consecutive_character): Likewise.
+ (dump_scope): Use pp_cxx_colon_colon.
+ (dump_template_parameter): Use pp_cxx_identifier,
+ pp_cxx_tree_identifier and pp_cxx_whitespace.
+ (dump_templat_bindings): Replace use of pp_string with sequence
+ of pp_cxx_whitespace and pp_equal.
+ (dump_type): Use pp_cxx_identifier, pp_cxx_tree_identifier,
+ pp_cxx_colon_colon, pp_cxx_whitespace throughout. Don't set
+ padding here.
+ (dump_aggr_type): Use pp_cxx_identifier amd pp_cxx_tree_identifier.
+ (dump_type_prefix): Don't set padding. Use pp_cxx_whitespace,
+ pp_cxx_left_parent, pp_cxx_colon_colon and pp_cxx_star troughout.
+ (dump_type_suffix): Use pp_cxx_right_paren, pp_cxx_left_bracket,
+ pp_cxx_right_bracket, pp_cxx_identifier throughout,
+ (dump_decl): Likewise.
+ (dump_template_decl): Likewise.
+ (dump_function_decl): Likewise. Set padding as appropriate.
+ (dump_parameters): Use pp_cxx_left_paren, pp_cxx_identifier and
+ pp_cxx_right_paren.
+ (dump_exception_spec): Likewise.
+ (dump_function_name): Use pp_cxx_tree_identifier and
+ pp_cxx_identifier.
+ (dump_template_parms): Use pp_cxx_begin_template_argument_list and
+ pp_cxx_end_template_argument_list.
+ (dump_expr): Use pp_cxx_left_paren, pp_cxx_right_paren,
+ pp_cxx_colon_colon, pp_cxx_identifier, pp_cxx_tree_identifier and
+ pp_cxx_whitespace throughout.
+ (dump_binary_op): Use pp_cxx_whitespace, pp_cxx_left_paren and
+ pp_cxx_right_paren.
+ (dump_unary_op): Likewise.
+ (reinit_cxx_pp): New function.
+ (type_as_string); Use it.
+ (expr_as_string): Likewise.
+ (decl_as_string); Likewise.
+ (context_as_string): Likewise.
+ (lang_decl_name): Likewise.
+ (decl_to_string): Likewise.
+ (expr_to_string): Likewise.
+ (parm_to_string): Likewise.
+ (type_to_string): Likewise.
+ (args_to_string): Likewise.
+ (cv_to_string): Likewise.
+
+2004-06-26 Mark Mitchell <mark@codesourcery.com>
+
+ * cp-tree.h (cp_cv_quals): New type.
+ (cp_declarator): Use it instead of "tree" as appropriate.
+ (grok_method_quals): Adjust prototype.
+ (grokclassfn): Likewise.
+ (do_friend): Likewise.
+ * decl.c (grokfndecl): Use cp_cv_quals, not tree.
+ (grokdeclarator): Likewise.
+ * decl2.c (grok_method_quals): Likewise.
+ (grokclassfn): Likewise.
+ * friend.c (do_friend): Likewise.
+ * method.c (implicitly_declare_fn): Adjust call to grokclassfn.
+ * parser.c (make_call_declarator): Use cp_cv_quals, not tree.
+ (make_pointer_declarator): Likewise.
+ (make_reference_declarator): Likewise.
+ (make_ptrmem_declarator): Likewise.
+ (cp_parser_ptr_operator): Likewise.
+ (cp_parser_cv_qualifier_seq_opt): Likewise.
+ (cp_parser_cv_qualifier_opt): Remove.
+ (cp_parser_new_declarator_opt): Adjust call to
+ cp_parser_ptr_operator.
+ (cp_parser_conversion_declaration_opt): Likewise.
+ (cp_parser_declarator): Use cp_cv_quals, not tree.
+ (cp_parser_direct_declarator): Likewise.
+
+2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * call.c, cp-tree.h, cxx-pretty-print.c, decl.c, decl2.c:
+ Rename DECL_STMT to DECL_EXPR.
+ * init.c, name-lookup.c, parser.c, pt.c, semantics.c: Likewise.
+ * cp-lang.c (LANG_HOOKS_SAFE_FROM_P): Deleted.
+ * tree.c (cp_walk_subtrees): Don't call c_walk_subtrees.
+
+2004-06-26 Jan Hubicka <jh@suse.cz>
+
+ PR C++/14865
+ * decl2.c (maybe_emit_vtables): Always import_export_vtable for the
+ reachability analysis.
+
+2004-06-25 Mark Mitchell <mark@codesourcery.com>
+
+ * cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
+ 2004-06-23 change.
+
+2004-06-25 Paul Brook <paul@codesourcery.com>
+
+ * decl2.c (get_guard): Call targetm.cxx.guard_type.
+ (get_guard_bits, get_guard_cond): Call targetm.cxx.guard_mask_bit.
+
+2004-06-24 Mark Mitchell <mark@codesourcery.com>
+
+ * decl.c (grokdeclarator): Restore error messages about __thread.
+ * parser.c (cp_parser_decl_specifier_seq): Likewise.
+
+2004-06-24 Jason Merrill <jason@redhat.com>
+
+ PR c++/16115
+ * decl.c (grokparms): Give the PARM_DECL reference type if the
+ parameter is passed by invisible reference.
+
+2004-06-24 Andreas Schwab <schwab@suse.de>
+
+ * cp-tree.h (enum cp_storage_class): Remove trailing comma.
+
+2004-06-23 Mark Mitchell <mark@codesourcery.com>
+
+ * Make-lang.in (cp/lex.o): Do not depend on cp/lex.h.
+ (cp/decl.o): Likewise.
+ (cp/decl2.o): Likewise.
+ (cp/pt.o): Likewise.
+ (cp/semantics.o): Likewise.
+ * config-lang.in (gtfiles): Do not reference cp/lex.h.
+ * class.c: Do not include lex.h.
+ (add_implicitly_declared_members): Do not use
+ adding_implicit_members.
+ (check_bases_and_members): Do not talk about grok_x_components.
+ * cp/cp-tree.h (adding_implicit_members): Remove.
+ (cp_storage_class): New type.
+ (cp_decl_spec): Likewise.
+ (cp_decl_specifier_seq): Likewise.
+ (cp_parameter_declarator): Use it for the decl_specifiers field.
+ (check_tag_decl): Adjust prototype.
+ (shadow_tag): Likewise.
+ (groktypename): Likewise.
+ (start_decl): Likewise.
+ (start_function): Likewise.
+ (start_method): Likewise.
+ (grok_x_components): Remove.
+ (grokfield): Adjust prototype.
+ (grokbitfield): Likewise.
+ (finish_member_class_template): Remove.
+ * decl.c: Do not include lex.h.
+ (adding_implicit_members): Do not define.
+ (check_tag_decl): Do not use trees to represent decl-specifiers.
+ (shadow_tag): Likewise.
+ (groktypename): Likewise.
+ (start_decl): Likewise.
+ (grokvardecl): Likewise.
+ (grokdeclarator): Likewise.
+ (grokparms): Likewise.
+ (start_function): Likewise.
+ (start_method): Likewise.
+ * decl.h (grokdeclarator): Adjust prototype.
+ * decl2.c: Do not include lex.h.
+ (grok_x_components): Remove.
+ (grokfield): Do not use trees to represent decl-specifiers.
+ (grokbitfield): Likewise.
+ * lex.c: Do not include lex.h.
+ * lex.h: Remove.
+ * parser.c: Include target.h.
+ (clear_decl_specs): New function.
+ (cp_parser_translation_unit): Do not use trees to represent
+ decl-specifiers.
+ (cp_parser_postfix_expression): Likewise.
+ (cp_parser_new_type_id): Likewise.
+ (cp_parser_condition): Likewise.
+ (cp_parser_simple_declaration): Likewise.
+ (cp_parser_decl_specifier_seq): Likewise.
+ (cp_parser_function_specifier_opt): Likewise.
+ (cp_parser_conversion_type_id): Likewise.
+ (cp_parser_template_parameter): Likewise.
+ (cp_parser_explicit_instantiation): Likewise.
+ (cp_parser_type_specifier): Likewise.
+ (cp_parser_simple_type_specifier): Likewise.
+ (cp_parser_init_declarator): Likewise.
+ (cp_parser_type_id): Likewise.
+ (cp_parser_type_specifier_seq): Likewise.
+ (cp_parser_parameter_declaration): Likewise.
+ (cp_parser_member_declaration): Likewise.
+ (cp_parser_exception_declaration): Likewise.
+ (cp_parser_function_definition_from_specifiers_and_declarator):
+ Likewise.
+ (cp_parser_single_declaration): Likewise.
+ (cp_parser_save_member_function_body): Likewise.
+ (cp_parser_friend_p): Likewise.
+ (cp_parser_set_storage_class): New function.
+ (cp_parser_set_decl_spec_type): Likewise.
+ * pt.c: Do not include lex.h.
+ * semantics.c: Likewise.
+ (finish_member_class_template): Remove.
+
2004-06-23 Roger Sayle <roger@eyesopen.com>
* call.c (build_cxx_call): Don't call expand_tree_builtin. No