OSDN Git Service

2003-06-16 Jens-Michael Hoffmann <jensmh@gmx.de>
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 5226756..d74a2b5 100644 (file)
+2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       2003-06-16  Jens-Michael Hoffmann  <jensmh@gmx.de>
+       * mangle.c: Convert to ISO C.
+
+2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
+       macro.
+
+2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * tree.c: Convert to ISO C.
+
+2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * cp-tree.h: Follow spelling conventions.
+       * mangle.c: Likewise.
+       * method.c: Likewise.
+       * parser.c: Likewise.
+
+2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (start_function): Adjust init_function_start call.
+       * method.c (use_thunk): Likewise.
+       * semantics.c (genrtl_start_function): Likewise.
+
+2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Make-lang.in: Remove c-options.o.
+
+2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * lex.c: Convert to ISO C.
+
+       2003-05-19  Jens-Michael Hoffmann  <jensmh@gmx.de>
+       * init.c: removes use of PARAMS macro.  Use ISO style function
+       declarations.  (Not copyright-significant change.)
+
+       * rtti.c: Remove PARAMS.
+
+       * typeck2.c: Convert to ISO C.
+
+2003-06-12  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/10635
+       * typeck.c (build_c_cast): Check that the destination type is
+       complete.
+
+2003-06-11  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/10432
+       * cp-tree.h (finish_declarator): Remove.
+       * decl.c (cp_finish_decl): Make sure to pop_nested_class even for
+       erroneous declarations.
+       * semantics.c (finish_declarator): Remove.
+
+2003-06-11  Roger Sayle  <roger@eyesopen.com>
+
+       * decl2.c (generate_ctor_or_dtor_function): Avoid expanding a 
+       global static constructor/destructor if it will be empty, i.e.
+       either doesn't call any ctors/dtors or only calls pure or const
+       ctors/dtors.
+
+2003-06-11  Mark Mitchell  <mark@codesourcery.com>
+
+       * mangle.c (tm_p.h): Include it.
+       * Make-lang.in (cp/mangle.o): Depend on $(TM_P_H).
+
+       PR c++/11131
+       * tree.c (cp_cannot_inline_fn): Check for "inline" before
+       instantiation.
+
+2003-06-10  Jason Merrill  <jason@redhat.com>
+
+       PR c++/10968
+       * pt.c (mark_decl_instantiated): Clear DECL_COMDAT.
+
+2003-06-10  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * decl.c (start_cleanup_fn): Move static 'counter' out, mark with GTY.
+       (start_cleanup_cnt): New.
+
+2003-06-10  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/11131
+       * cp-tree.h (template_for_substitution): Declare.
+       * decl2.c (mark_used): Use it when figuring out whether or not a
+       function is inline.
+       * pt.c (template_for_substitution): Give it external linkage.
+       * tree.c (cp_cannot_inline_tree_fn): Instantiate as early as
+       possible.
+
+2003-06-09  Zack Weinberg  <zack@codesourcery.com>
+
+       PR 8861
+       * mangle.c (write_real_cst): New function.  Implement
+       ABI-compliant mangling of floating-point literals when
+       -fabi-version>=2; provide backward compatibility with 3.3 when
+       -fabi-version=1 (with warning).  Clarify commentary.
+       (write_template_arg_literal): Use write_real_cst.
+
+2003-06-07  Andreas Jaeger  <aj@suse.de>
+
+       * cp/decl.c (xref_tag): Remove undefined macro NONNESTED_CLASSES.
+
+2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cp-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
+       (LANG_HOOKS_HANDLE_OPTION): Override.
+       * cp-tree.h (cxx_init_options): Update.
+       * lex.c (cxx_init_options): Update.
+
+Thu Jun  5 18:33:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       * Make-lang.in:  Add support for stageprofile and stagefeedback
+
+2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * decl.c (grokdeclarator): Error_mark_node in, error_mark_node out.
+
+2003-06-04  Andreas Jaeger  <aj@suse.de>
+
+       * g++spec.c (lang_specific_driver): Remove ALT_LIBM usage.
+
+2003-06-03  Jason Merrill  <jason@redhat.com>
+
+       * cp/cp-tree.h (CP_AGGREGATE_TYPE_P): Accept vectors.
+
+       * cp/decl.c (reshape_init): Handle vectors.
+
+       * testsuite/g++.dg/init/array10.C: New.
+
+2003-06-03  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/10940
+       * pt.c (check_explicit_specialization): Check for 'static'
+       earlier.
+
+2003-05-31  Diego Novillo  <dnovillo@redhat.com>
+
+       * class.c (dump_array): Call CONSTRUCTOR_ELTS to access
+       the operand of a CONSTRUCTOR node.
+
+2003-05-31  Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+       * decl.c (cp_binding_level::this_entity): Rename from this_class.
+       (cxx_scope_descriptor): New function.
+       (cxx_scope_debug): Likewise.
+       (push_binding_level): Use it.
+       (pop_binding_level): Likewise.
+       (suspend_binding_level): Likewise.
+       (resume_binding_level): Likewise.
+       (pushlevel_class): Adjust use of this_class.
+       (pushtag): Likewise.
+       (lookup_name_real): Likewise.
+       (global_scope_name): New variable.
+       (initialize_predefined_identifiers): Initialize it.
+       (push_namespace): Use it.
+       (make_cxx_scope): New function.
+       (pushlevel): Use it.
+       (pushlevel_class): Likewise.
+       (push_binding_level): Simplify.  Loose the last two arguments.
+       (make_binding_level): Remove.
+       (initial_push__namespace_scope): New function.
+       (push_namespace): Use it.  Simplify.
+       (cxx_init_decl_processing): Likewise.
+       (declare_namespace_level): Remove.
+
+2003-05-31  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/10956
+       * pt.c (instantiate_decl): Don't use full template arguments if
+       we are dealing with specializations.
+
+2003-05-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * decl.c (ENABLE_SCOPE_CHECKING): Rename from DEBUG_BINDING_LEVELS.
+       (binding_depth): Unconditionally define.
+       (is_class_level): Likewise.
+       (indent): Likewise.  Take an indenting parameter.
+       (push_binding_level): Remove conditional definittion.
+       (pop_binding_level): Likewise.
+       (suspend_binding_level): Likewise.
+       (resume_binding_level): Likewise.
+       (pushlevel): Likewise.
+       (pushlevel_class): Likewise.
+       (poplevel_class): Likewise.
+       (pop_everything): Likewise.
+
+2003-05-27  Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+       * name-lookup.h (global_scope_p): New macro.
+       * decl.c (pop_binding_level): Use it.  Don't refer directly to
+       global_binding_level.
+       (suspend_binding_level): Likewise.
+       (global_bindings_p): Likewise.
+       (print_other_binding_stack): Likewise.
+       (print_binding_stack): Likewise.
+       (maybe_push_to_top_level): Likewise.
+       (pushdecl_namespace_level): Likewise.
+       (cxx_init_decl_processing): Likewise.
+       (start_decl): Likewise.
+       (cp_finish_decl): Likewise.
+       (start_function): Likewise.
+       (global_binding_level): Remove.
+
+2003-05-25  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * parser.c (cp_parser_explicit_instantiation): Restore old
+       access before template instantiation.
+
+2003-05-23  Geoffrey Keating  <geoffk@apple.com>
+
+       * lang-specs.h: Use -o to specify preprocessor's output file.
+       Make -no-integrated-cpp work when building PCH files.
+
+2003-05-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/10682
+       * pt.c (instantiate_class_template): Use DECL_ARTIFICIAL to
+       check for implicitly created typedef to an enum.
+
+2003-05-21  Jason Merrill  <jason@redhat.com>
+
+       * init.c (build_vec_delete): Copy the address into a temporary
+       variable before calling build_vec_delete_1.
+       * decl2.c (delete_sanity): Don't call stabilize_reference.
+
+2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (register_specialization): Update the decl's location,
+       if necessary.
+       (check_explicit_specialization): Likewise.
+
+2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * error.c (dump_expr): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX.
+
+2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       PR c++/9738
+       * decl.c (duplicate_decls): Re-invoke make_decl_rtl
+       if the old decl had instantiated DECL_RTL.
+       (Base on Richard Henderson 2003-05-13 patch to c-decl.c).
+
+2003-05-19  Matt Austern  <austern@apple.com>
+
+       * lang-options.h: Document -Wno-invalid-offsetof
+       * typeck.c (build_class_member_access_expr): Don't complain about
+       (Foo *)p->x for non-POD Foo if warn_invalid_offset is zero.
+
+2003-05-18 Andrew Pinski <pinskia@physics.uc.edu>
+
+       * name-lookup.c (free_binding_entry): fix where the GTY markers are.
+       (binding_entry_make): Make entry->chain NULL after getting an entry.
+       fix the spelling of chain in a comment.
+       (binding_table_free): speed up by having temporary variable.
+       (binding_table_new): set table->chain to be NULL after allocating
+       a table.
+       (cxx_binding_make): use gcc_alloc instead of ggc_alloc_cleared and set
+       binding->previous to NULL after getting an binding for speed.
+
 2003-05-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * cp-tree.h (struct lang_type_class): Replace data member tags
        with hash-table nested_udts.
        (CLASSTYPE_NESTED_UTDS): Rename from CLASSTYPE_TAGS.
        * class.c (unreverse_member_declarations): Don't touch
-       CLASSTYPE_TAGS. 
+       CLASSTYPE_TAGS.
        (pushclass): Use cxx_remember_type_decls.
        * decl.c (struct cp_binding_level): Replace data member tags with
        hash-table type_decls.
        * ptree.c (cxx_print_type, cxx_print_xnode): Use string
        concatentation on HOST_WIDE_INT_PRINT_* format specifier to
        collapse multiple function calls into one.
-       * tree.c (debug_binfo): Likewise.       
+       * tree.c (debug_binfo): Likewise.
 
 2003-05-15  Jason Merrill  <jason@redhat.com>
 
        PR c++/5388
        * call.c (conditional_conversion): Don't consider implicit
-       conversions if T2 is a base of T1. 
+       conversions if T2 is a base of T1.
        * cp-tree.h (DERIVED_FROM_P, UNIQUELY_DERIVED_FROM_P): Make boolean.
        (ACCESSIBLY_UNIQUELY_DERIVED_P, PUBLICLY_UNIQUELY_DERIVED_P): Likewise.