OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index cc5e063..db8b3eb 100644 (file)
@@ -1,3 +1,110 @@
+2007-09-06  Tom Tromey  <tromey@redhat.com>
+
+       * decl.c (finish_function): Put return's location on line zero of
+       file.
+
+2007-09-05  Jason Merrill  <jason@redhat.com>
+
+       PR c++/15745
+       * except.c (prepare_eh_type): Use type_decays_to.
+
+       PR c++/15097
+       * init.c (build_delete): Use build_headof to get the address of the
+       complete object if we aren't using the deleting destructor.
+       * rtti.c (build_headof): No longer static.
+       * cp-tree.h: Declare it.
+
+2007-09-06  Jakub Jelinek  <jakub@redhat.com>
+
+       * decl.c (duplicate_decls): Set TREE_NOTHROW on __builtin_XX
+       decl if a prototype for XX is provided with throw().
+
+       PR c++/33289
+       * decl.c (builtin_function_1): Set DECL_ANTICIPATED also
+       on __*_chk non-__builtin_* decls.
+
+2007-09-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR c++/30302
+       * semantics.c (finish_id_expression): Use context_for_name_lookup
+       insted of DECL_CONTEXT, to see through anonymous structs and unions.
+       * class.c (finish_struct_anon): Deal correctly with anonymous
+       structs (vs unions, as GNU extension) in error messages.
+
+2007-09-05  Jan Hubicka  <jh@suse.cz>
+
+       * cp/sematics.c (expand_body): Remove unnecesary import_export_decl
+       call, DECL_EXTERNAL checks and current_function_decl saving.
+
+2007-09-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR c++/29731 (again)
+       * parser.c (cp_parser_primary_expression): Return error_mark_node
+       when a statement-expression is found in a template-argument list.
+
+2007-09-04  Jason Merrill  <jason@redhat.com>
+
+       * except.c (initialize_handler_parm): Use
+       fold_build_cleanup_point_expr.
+
+       PR c++/31419
+       * call.c (reference_binding): Don't look for user-defined conversions
+       to the same type.
+
+       PR c++/31411
+       * except.c (initialize_handler_parm): Put a CLEANUP_POINT_EXPR inside
+       the MUST_NOT_THROW_EXPR.
+
+2007-09-04  Richard Sandiford  <richard@codesourcery.com>
+
+       * decl.c (cp_finish_decl): Call determine_visibility before
+       make_rtl_for_nonlocal_decl.
+
+2007-09-04  Jason Merrill  <jason@redhat.com>
+
+       PR c++/14032
+       * pt.c (most_specialized_class): Substitute outer template
+       arguments into the arguments of a member template partial
+       specialization.
+       (strip_innermost_template_args): New fn.
+
+2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Make-lang.in (g++spec.o): Remove SHLIB_MULTILIB.
+
+2007-09-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * call.c (name_as_c_string): Supply a TYPE for CONST_CAST.
+       * decl.c (cp_make_fname_decl): Likewise,
+       * parser.c (cp_parser_string_literal): Likewise,
+       * tree.c (pod_type_p, zero_init_p): Use CONST_CAST_TREE.
+       * typeck.c (cp_type_quals, cp_type_readonly, cp_has_mutable_p):
+       Likewise,
+
+2007-09-02  Paolo Carlini  <pcarlini@suse.de>
+
+       PR c++/33208
+       * typeck.c (build_unary_op): Fix error message for
+       Boolean expression as operand to operator--.
+
+2007-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * tree.c (pod_type_p, zero_init_p): Use strip_array_types.
+       * typeck.c (cp_type_quals, cp_type_readonly, cp_has_mutable_p):
+       Likewise.
+
+2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
+
+       PR c++/32597
+       * init.c (build_default_init): Make extern.
+       * cp-tree.h (build_default_init): Declare here.
+       * pt.c (tsubst_expr): When the instantiation of the initializer of
+       a variable results in an empty list, default-initialize the
+       variable.
+       (tsubst_copy_and_build): When the instantiation of the initializer
+       in a new expression results in an empty initializer list,
+       default-initialize it.
+
 2007-08-31  Douglas Gregor  <doug.gregor@gmail.com>
 
        * mangle.c (write_type): Change mangling of rvalue reference from
        (get_delta_difference_1): New function.
        (get_delta_difference): Refactor to call get_delta_difference_1.
 
->>>>>>> .r127998
+2007-08-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * decl.c (start_preparsed_function): Set
+       DECL_DISREGARD_INLINE_LIMITS for GNU_INLINE_P functions.
+
 2007-08-28  Paolo Carlini  <pcarlini@suse.de>
 
        PR c++/33209
 2007-08-06  Paolo Carlini  <pcarlini@suse.de>
 
        PR c++/19532
-       * pt.c (template_class_depth): Fix comment; change return type
+       * pt.c (inline_needs_template_parms): Fix comment; change return type
        to bool.
 
 2007-08-05  Volker Reichelt  <v.reichelt@netcologne.de>