Amend previous changelog PR g++/2936 Part missed from first commit
[gcc.git] / gcc / cp / ChangeLog
index c3b8cf0267d4ea9be5207287685fe6fa82bf9c13..8f49fc685d500829d3c714781eb792ded0f798f9 100644 (file)
@@ -1,3 +1,247 @@
+2001-06-01  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR g++/2936
+       Part missed from first commit
+       * decl2.c (finish_anon_union): Copy context.
+
+2001-05-30  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR g++/2936
+       * optimize.c (remap_decl): Remap anonymous aggregate members too.
+
+2001-05-26  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR g++/2823
+       * semantics.c (expand_body): Don't optimize thunks.
+
+2001-05-25  Sam TH  <sam@uchicago.edu>
+
+       * cp-tree.h lex.h: Fix header include guards.
+
+2001-05-25  Mark Mitchell <mark@codesourcery.com>
+
+       * decl.c (init_decl_processing): Tweak.
+
+2001-05-24  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl.c (duplicate_decls): Tidy.
+       (init_decl_processing): Always set flag_no_builtin.
+
+2001-05-24  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/2184
+       * decl2.c (do_local_using_decl): Push the decls, even in a
+       template.
+
+2001-05-22  Mark Mitchell  <mark@codesourcery.com>
+
+       * optimize.c (initialize_inlined_parameters): Don't set
+       TREE_READONLY for a VAR_DECL taking the place of an inlined
+       PARM_DECL.
+
+2001-05-22  Jason Merrill  <jason_merrill@redhat.com>
+
+       * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
+       * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
+       attribute.
+
+2001-05-22  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * parse.y: Refer to compound literals as such, not as
+       constructor-expressions.
+
+2001-05-21  Mark Mitchell  <mark@codesourcery.com>
+
+       * call.c (build_op_delete_call): Ignore exception-specifications
+       when looking for matching delete operators.
+       * init.c (build_new_1): Compute whether or not the allocation
+       function used is a placement allocation function or not, and
+       communicate this information to build_op_delete_call.
+
+2001-05-21  Jason Merrill  <jason_merrill@redhat.com>
+
+       * class.c (build_vtable_entry_ref): Lose vtbl parm.  Fix for new abi.
+       (build_vtbl_ref): Adjust.
+       (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
+       * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
+       Re-add vtable-gc.
+       (unsupported_options): Correspondingly.
+
+       * decl2.c (maybe_make_one_only): Check flag_weak, not
+       supports_one_only().
+
+       * cp-tree.def (START_CATCH_STMT): Lose.
+       * dump.c (cp_dump_tree): Don't dump it.  Do dump HANDLER_PARMS.
+       * tree.c (cp_statement_code_p): Don't case it.
+       * semantics.c (cp_expand_stmt): Likewise.
+       * cp-tree.h (START_CATCH_TYPE): Lose.
+       (HANDLER_TYPE): New.
+       * except.c (expand_start_catch_block): Don't start any blocks.
+       Return the type.
+       (expand_end_catch_block): Don't end any blocks.
+       * parse.y (handler): Don't pass anything from finish_handler_parms
+       to finish_handler.
+       * pt.c (tsubst_expr): Likewise.
+       * semantics.c (begin_handler): Call note_level_for_catch here.
+       (finish_handler_parms): Don't return anything.
+       (genrtl_catch_block, begin_catch_block): Lose.
+       (genrtl_handler): Call expand_start_catch here.
+
+2001-05-18  Jason Merrill  <jason_merrill@redhat.com>
+
+       * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
+       (get_vtable_decl, build_vtt): Not here.
+
+2001-05-20  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/2781
+       * optimize.c (update_cloned_parm): Copy addressability and other
+       flags.
+
+2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * pt.c (determine_specialization): Ignore artificial functions.
+
+2001-05-20  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
+       (C_RID_CODE): Remove.
+       * lex.c (cxx_init_options): Call set_identifier_size.  Update.
+       (init_parse): Don't do it here.
+
+2001-05-18  Diego Novillo  <dnovillo@redhat.com>
+
+       * decl2.c (finish_objects): Use the original SYMBOL_REF from the
+       function declaration to avoid stripping the symbol's attributes.
+
+2001-05-18  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (pushdecl): Adjust error string.
+       (xref_tag): Adjust friend class injection warning. Remove the
+       inherited name from the class shadowed scope.
+
+2001-05-17  Mark Mitchell  <mark@codesourcery.com>
+
+       * except.c (cp_protect_cleanup_actions): New function.
+       (init_exception_processing): Don't set protect_cleanup_actions 
+       here.  Do set lang_protect_cleanup_actions.
+
+2001-05-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * spew.c (read_token): Call yyerror on all unexpected tokens.
+
+2001-05-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * init.c (member_init_ok_or_else): Take a tree rather than
+       string for name.
+       (expand_member_init): Adjust.
+
+2001-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * decl.c (duplicate_decls): Suppress warning about duplicate
+        decls if the first decl is a friend.
+
+2001-05-12  Zack Weinberg  <zackw@stanford.edu>
+
+       * except.c (choose_personality_routine): Export.  Add
+       explanatory comment.  Take an enum languages, not a boolean.
+       (initialize_handler_parm): Adjust to match.
+       * cp-tree.h: Prototype choose_personality_routine.
+       * lex.c (handle_pragma_java_exceptions): New function.
+       (init_cp_pragma): Register #pragma GCC java_exceptions.
+
+2001-05-12  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
+
+       * method.c (build_mangled_C99_name): Remove unused prototype.
+
+2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
+
+       * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
+       * typeck.c (get_member_function_from_ptrfunc,
+       build_ptrmemfunc, expand_ptrmemfunc_cst): Take
+       TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
+
+       Reverted Geoff Keating's 2001-05-03's patch.
+
+2001-05-11  Ira Ruben  <ira@apple.com>
+
+       * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
+
+2001-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cp-tree.h (finish_label_expr, lookup_label): Delete.
+       * parse.y: Update for '&&'; don't issue warning here.
+       * semantics.c (finish_label_expr): Delete.
+
+2001-05-07  Mark Mitchell  <mark@codesourcery.com>
+
+       * splay-tree.h (splay_tree_max): New function.
+       (splay_tree_min): Likewise.
+
+2001-05-03  Geoffrey Keating  <geoffk@redhat.com>
+
+       * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
+       (pfn_vflag_identifier): Define.
+       Update comment about layout of pointer functions.
+       (build_ptrmemfunc1): Update prototype.
+       (expand_ptrmemfunc_cst): Update prototype.
+       * decl.c (initialize_predefined_identifiers): Initialize
+       pfn_vflag_identifier.
+       (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
+       an extra field to the type.
+       * expr.c (cplus_expand_constant): Pass 'flag' between 
+       expand_ptrmemfunc_cst and build_ptrmemfunc1.
+       * typeck.c (get_member_function_from_ptrfunc): When
+       FUNCTION_BOUNDARY < 16, look at additional field to determine
+       if a pointer-to-member is a real pointer or a vtable offset.
+       (build_ptrmemfunc1): Add new parameter to contain extra field.
+       (build_ptrmemfunc): Pass the extra field around.
+       (expand_ptrmemfunc_cst): Add new parameter to return extra field.
+       (pfn_from_ptrmemfunc): Ignore the extra field.
+
+2001-05-03  Mark Mitchell  <mark@codesourcery.com>
+
+       * cp-tree.h (flag_inline_trees): Update documentation.
+       * decl.c (init_decl_processing): Adjust handling of
+       flag_inline_functions and flag_inline_trees to support -O3.
+       (grokfndecl): Set DECL_INLINE on all functions if that's what
+       the user requested.
+       (save_function_data): Clear DECL_INLINE in
+       current_function_cannot_inline is non-NULL.
+       * decl2.c (flag_inline_trees): Update documentation.
+
+2001-05-03  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * dump.c (cp_dump_tree, USING_STMT case): New case.
+       * tree.c (cp_statement_code_p): Add USING_STMT.
+       * decl2.c (do_using_directive): Add the using directive statement.
+
+       * tree.c (walk_tree): Reformat an if block.
+
+2001-05-02  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl.c (compute_array_index_type): Don't try to do anything with
+       the indices when processing a template.
+
+2001-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * call.c: NULL_PTR -> NULL.
+       * class.c: Likewise.
+       * cvt.c: Likewise.
+       * decl.c: Likewise.
+       * decl2.c: Likewise.
+       * except.c: Likewise.
+       * init.c: Likewise.
+       * rtti.c: Likewise.
+       * search.c: Likewise.
+       * tree.c: Likewise.
+       * typeck.c: Likewise.
+       * typeck2.c: Likewise.
+
+2001-05-02  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl2.c (do_using_directive): Revert previous patch.
+
 2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
 
        * cp-tree.def (USING_STMT): New statement node.