OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index bee60d6..c020cfa 100644 (file)
@@ -1,3 +1,264 @@
+2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * semantics.c (begin_class_definition): Check we're not inside a
+       template parm list.
+
+2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
+       BASELINK_P.
+
+2001-01-16  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
+       * call.c (build_over_call): Add comment.
+
+2001-01-16 Daniel Berlin <dberlin@redhat.com>
+
+        * cvt.c (ocp_convert): Handle vector type conversion
+        * typeck2.c (digest_init): Handle vector type initializations
+               
+2001-01-16  Phil Edwards  <pme@sources.redhat.com>
+
+       * g++spec.c:  Don't add libraries needlessly if -fsyntax-only
+         was given.
+
+2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (check_nontype_parm): Rename to ...
+       (invalid_nontype_parm_type_p): ... here.
+       (process_template_parm): Adjust.
+       (convert_template_argument): Adjust.
+
+2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (check_nontype_parm): New function.
+       (process_template_parm): Use it.
+       (convert_template_argument): Use it.
+       (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
+       member.
+
+2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>
+
+       * tree.c: Add defaults.h
+       (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
+       * Make-lang.in (cp/tree.o): Add defaults.h.
+
+2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * Make-lang.in (CXX_C_OBJS): Add c-format.o.
+
+2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * g++.1: Change to be ".so man1/gcc.1".
+
+2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * Make-lang.in (c++.info, c++.install-info): Build and install g++
+       internals info.
+       (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
+       ($(srcdir)/cp/g++int.info): New target.
+       * gxxint.texi: Add info directory entry.  Use @@ in email address.
+       * .cvsignore: Update.
+
+2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * typeck.c (build_c_cast): Do template processing earlier.
+       Always pedwarn on array casts.
+
+2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * friend.c (make_friend_class): Make sure a templated class is
+       actually a template.
+
+2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl2.c (get_guard): Set linkage from guarded decl.
+
+2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * call.c (convert_default_arg): Check for unprocessed
+       DEFAULT_ARG.
+       * cp-tree.h (replace_defarg): Move to spew.c.
+       (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
+       spew.c, which is where they really are.
+       (done_pending_defargs): Declare.
+       (unprocessed_defarg_fn): Declare.
+       * decl.c (replace_defarg): Move to spew.c
+       * parse.y (structsp): Call done_pending_defargs.
+       * spew.c (defarg_fns): Rearrange list structure.
+       (defarg_fnsdone): New static variable.
+       (defarg_depfns): New static variable.
+       (init_spew): Adjust.
+       (add_defarg_fn): Store the type in TREE_TYPE.
+       (do_pending_defargs): Detect and deal with ordering constraints
+       and circularity.
+       (done_pending_defargs): New function.
+       (unprocessed_defarg_fn): New function.
+       (replace_defarg): Moved from decl.c. Robustify. Don't save
+       if circularity detected.
+
+2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (unify): Check array has a domain, before checking
+       whether it is variable sized.
+
+2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (grokparms): Unobfuscate and get correct diagnostic for
+       parameters with pointers to arrays of unknown bound.
+
+2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * parse.y (template_parm_header, template_spec_header): New
+       reductions. Split out from ...
+       (template_header): ... here. Use them.
+       (template_template_parm): Use template_parm_header.
+       * semantics.c (finish_template_template_parm): Add assert.
+
+2001-01-10  Mark Mitchell  <mark@codesourcery.com>
+
+       * mangle.c (write_builtin_type): Fix thinko.
+
+       * pt.c (copy_default_args_to_explicit_spec_1): New function.
+       (copy_default_args_to_explicit_spec): Likewise.
+       (check_explicit_specialization): Use it.
+
+       * class.c (finish_struct_1):  Remove last argument in call to
+       make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
+       * decl.c (builtin_function): Likewise.
+       (build_cp_library_fn): Likewise.
+       (check_initializer): Likewise.
+       (make_rtl_for_nonlocal_decl): Likewise.
+       (cp_finish_decl): Likewise.
+       (start_function): Likewise.
+       * decl2.c (finish_anon_union): Likewise.
+       * friend.c (do_friend): Likewise.
+       * init.c (build_java_class_ref): Likewise.
+       * method.c (make_thunk): Likewise.
+       * pt.c (tsubst_friend_function): Likewise.
+       * semantics.c (expand_body): Likewise.
+
+2001-01-10  Mark Mitchell  <mark@codesourcery.com>
+
+       * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
+       looking at DECL_CLONED_FUNCTION for non-functions.
+
+2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * error.c (dump_template_parameter): Use parm to determine how
+       to print default value.
+
+2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * class.c (duplicate_tag_error): Clear more flags.
+
+2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * call.c (build_new_method_call): Use binfo_for_vbase.
+
+2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * cp-tree.h (flag_cond_mismatch): Don't declare.
+       * decl2.c (flag_cond_mismatch): Don't define.
+       (lang_f_options): Remove cond-mismatch.
+       (unsupported_options): Add cond-mismatch.
+
+2001-01-09  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * class.c (handle_using_decl): Reject using of constructor name
+       of sourcing class. Allow injecting of a method with same name as
+       nested class. Fixup error messages.
+
+2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * decl2.c (lang_decode_option): Handle -Wformat=2.
+
+2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * cp-tree.h (lang_decl_flags): Rename defined_in_class to
+       initialized_in_class.
+       (DECL_DEFINED_IN_CLASS_P): Rename to ...
+       (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
+       * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
+       (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
+       * pt.c (check_default_tmpl_args): Adjust for
+       DECL_INITIALIZED_IN_CLASS_P.
+       (instantiate_class_template): Likewise.
+       (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
+       
+       * class.c (finish_struct): Constify saved_filename.
+
+2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * class.c (duplicate_tag_error): Adjust diagnostic.
+       (finish_struct): Locally set location to start of struct.
+       * decl.c (fixup_anonymous_aggr): Use cp_error_at.
+
+2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (struct binding_level): Adjust class_shadowed comments
+       to reflect reality.
+       (push_class_level_binding): Ajust comments to reflect reality.
+       Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
+       Don't set TREE_VALUE on the class_shadowed list.
+
+2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+       * decl2.c (acceptable_java_type): Allow references too. 
+       * init.c (build_java_class_ref): When using the new ABI, search
+       `class$' and have it mangled with `mangle_decl.'
+       * mangle.c (write_java_integer_type_codes): New function.
+       (write_builtin_type): Detect and mangle Java integer and real
+       types.
+2001-01-07  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl2.c (grokfield): Don't accept `asm' specifiers for
+       non-static data members.
+
+2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * expr.c (cplus_expand_expr): Don't reset `target'.
+
+2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+        * cp/decl2.c (cxx_post_options): Call cpp_post_options.
+
+2001-01-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * parse.y (template_datadef): Check for error_mark_node.
+
+2001-01-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * cp-tree.def (DEFAULT_ARG): Make `x' class.
+
+2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
+       (record_builtin_type): Make non-static.
+       (flag_short_double): Don't declare.
+       (init_decl_processing): Remove the creation of many tree nodes now
+       in c_common_nodes_and_builtins.
+       (build_void_list_node): New function.
+       * decl2.c (flag_short_double, flag_short_wchar): Don't define.
+       * cp-tree.h (flag_short_wchar): Don't declare.
+
+2001-01-04  Mark Mitchell  <mark@codesourcery.com>
+
+       * call.c (build_conv): Don't use build1 for USER_CONV.
+       * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
+
+2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * lex.c (lang_init): Call c_common_lang_init.
+
+2001-01-03  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * search.c (lookup_fnfields_here): Remove.
+       (look_for_overrides_r): Use lookup_fnfields_1.
+       Ignore functions from using declarations.
+
 2001-01-03  Nathan Sidwell  <nathan@codesourcery.com>
 
        Implement exceptions specifiers for implicit member functions.