OSDN Git Service

* cp/cp-tree.h (struct cp_language_function): Remove x_result_rtx.
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index e5db96e..e7fdace 100644 (file)
@@ -1,3 +1,180 @@
+2000-10-06  Richard Henderson  <rth@cygnus.com>
+
+       * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
+       (original_result_rtx): Remove.
+       * decl.c (save_function_data): Don't clear x_result_rtx.
+       (mark_lang_function): Don't mark it either.
+       * expr.c (fixup_result_decl): Remove.
+       * semantics.c (genrtl_named_return_value): Frob the return decl
+       before calling emit_local_var.
+       (genrtl_finish_function): Don't call fixup_result_decl.
+       Always emit the jump to return_label.
+
+2000-10-06  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (lookup_template_class): Set current access for enum.
+       (tsubst_enum): Set file & line for enum decl.
+       
+       * spew.c (yylex): Remove unused variable.
+
+2000-10-05  Richard Henderson  <rth@cygnus.com>
+
+       * semantics.c (genrtl_finish_function): Don't init or check
+       can_reach_end; remove noreturn and return value checks.
+
+2000-10-05  Tom Tromey  <tromey@cygnus.com>
+
+       * init.c (build_java_class_ref): Use `build_static_name' with a
+       suffix, not a prefix, to build the class object's name.
+
+2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * cp-tree.h (access_kind): Fix comment typo.
+       * decl2.c (grokfield): Fix diagnostic typo.
+       * semantics.c (finish_template_type): Fix comment typo.
+       (finish_qualified_object_call_expr): Likewise.
+
+2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (tsubst_expr, DECL_STMT case): Don't process if
+       tsubsting fails.        
+
+2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * spew.c (frob_id): New static function.
+       (frob_opname): Use it.
+       (yylex): Use it.
+
+2000-10-01  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl.c (lang_mark_false_label_stack): Remove.
+       * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
+       
+2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * gxxint.texi: Use @email for formatting email addresses.
+
+2000-09-29  Gabriel Dos Reis  <gdr@codesourcery.com>
+
+       * error.c: Remove direct obstack manipulation.  Replace with
+       output_buffer-based formatting.  Adjust calls to removed macros.
+       (obstack_chunk_alloc, obstack_chunk_free): Remove.
+       (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
+       OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
+
+2000-09-24  Mark Mitchell  <mark@codesourcery.com>
+
+       * ir.texi: Move to ../c-tree.texi.
+
+2000-09-20  Jason Merrill  <jason@redhat.com>
+
+       * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
+
+2000-09-21  Andreas Jaeger  <aj@suse.de>
+
+       * errfn.c: Move declaration of cp_printer and cp_printers to ...
+       * cp-tree.h: ... here.
+
+       * error.c: Remove declaration of cp_printer.
+
+2000-09-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
+
+2000-09-20  Hans-Peter Nilsson  <hp@axis.com>
+
+       * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
+       users.
+
+2000-09-18  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl.c (start_function): Robustify.
+
+2000-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cp-tree.h (check_function_format): Accept a `status' parameter.
+
+       * call.c, typeck.c: Updates calls to `check_function_format'.
+
+2000-09-17  Geoffrey Keating  <geoffk@cygnus.com>
+
+       * decl2.c (handle_class_head): Always push some scope even
+       in the error case.
+
+2000-09-16  Mark Mitchell  <mark@codesourcery.com>
+
+       * cp-tree.h (struct cp_language_function): Remove
+       x_scope_stmt_stack and name_declared.
+       (current_scope_stmt_stack): Remove.
+       (function_name_declared_p): New macro.
+       (struct lang_decl_flags): Use c_lang_decl as a base class.
+       (context): Remove.
+       (struct lang_decl): Replace saved_tree with context.
+       (DECL_FRIEND_CONTEXT): Adjust accordingly.
+       (SET_DECL_FRIEND_CONTEXT): Likewise.
+       (DECL_VIRTUAL_CONTEXT): Likewise.
+       (DECL_SAVED_TREE): Remove.
+       (C_DECLARED_LABEL_FLAG): Likewise.
+       (cplus_expand_expr_stmt): Don't declare.
+       (add_decl_stmt): Likewise.
+       (add_scope_stmt): Likewise.
+       * decl.c (mark_stmt_tree): Remove.
+       (case_compare): Likewise.
+       (finish_case_label): Use c_add_case_label.
+       (init_decl_processing): Set more language-specific hooks.
+       (build_enumerator): Fix typo in comment.
+       (cplus_expand_expr_stmt): Remove.
+       (mark_lang_function): Use mark_c_language_function.
+       (lang_mark_tree): Use c_mark_lang_decl.
+       * decl2.c: Change order of inclusion.
+       * except.c: Likewise.
+       * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR.  Fall
+       back on c_expand_expr.
+       * friend.c: Include expr.h.
+       * init.c: Change order of inclusion.
+       * Makefile.in: Update dependencies.
+       * lex.h (free_lang_decl_chain): Remove.
+       * optimize.c (maybe_clone_body): Use function_name_declared_p.
+       * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
+       it doesn't exist.
+       (instantiate_decl): Use function_name_declared_p.
+       * semantics.c (lang_expand_expr_stmt): Remove.
+       (set_current_function_name_declared): Likewise.
+       (current_function_name_declared): Likewise.
+       (begin_compound_stmt): Use function_name_declared_p.
+       (add_decl_stmt): Remove.
+       (setup_vtbl_ptr): Use function_name_declared_p.
+       (add_scope_stmt): Remove.
+       (current_scope_stmt_stack): New function.
+       (cp_expand_stmt): Don't handle SCOPE_STMTs.
+       (expand_body): Use function_name_declared_p.
+       * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
+       * typeck.c: Change order of includes.
+       (convert_sequence): Remove.
+
+2000-09-14  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * lex.c (reswords): Add _Complex.
+
+Thu Sep 14 12:10:45 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
+
+2000-09-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * init.c (begin_init_stmts): Don't use // comments.
+
+2000-09-12  Jason Merrill  <jason@redhat.com>
+
+       * decl.c (maybe_deduce_size_from_array_init): Set do_default for
+       all non-extern arrays.
+
+       * decl.c (grokdeclarator): Complain about 'friend T' for implicit
+       typenames, too.  Downgrade complaint to pedwarn.
+       (xref_tag): Warn about surprising behavior of 'friend struct T'.
+       * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
+       'class This::Inherited'.
+
 2000-09-12  Mark Mitchell  <mark@codesourcery.com>
 
        * decl.c (finish_case_label): Given the LABEL_DECL a
        (finish_case_label): Remove.
        * typeck.c (c_expand_return): Remove.
        (c_expand_start_case): Likewise.
-       
+
 2000-09-07  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * ir.texi: Document type nodes.
        (cp_statement_code_p): New function.
        (walk_stmt_tree): Remove.
        (init_tree): Set lang_statement_code_p.
-       
+
 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
 
        Integrated preprocessor.
@@ -2885,11 +3062,11 @@ Mon May 15 11:46:29 2000  Donald Lindsay  <dlindsay@cygnus.com>
 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * decl.c (pop_label): Replace warn_unused with warn_unused_label.
-       * typeck.c (build_x_compound_expr): Replace warn_unused with
-       warn_unused_value.
+       * typeck.c (build_x_compound_expr): Replace warn_unused with
+       warn_unused_value.
 
        * decl2.c (lang_decode_option): Update -Wall unused flags by
-       calling set_Wunused.
+       calling set_Wunused.
 
 2000-05-16  Mark Mitchell  <mark@codesourcery.com>
 
@@ -6229,4 +6406,3 @@ Wed Jan 26 22:19:14 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
 2000-01-01  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
 
        * call.c (build_new_method_call): Also check destructors.
-