OSDN Git Service

* tree-ssa-ifcombine.c (get_name_for_bit_test): Use
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index b348c0d..6fe0199 100644 (file)
@@ -1,3 +1,189 @@
+2008-06-02  Tomas Bily  <tbily@suse.cz>
+
+        * typeck.c (is_bitfield_expr_with_lowered_type): Use CASE_CONVERT.
+        (cp_build_unary_op): Likewise.
+        (cp_build_indirect_ref): Use CONVERT_EXPR_P.
+        (maybe_warn_about_returning_address_of_local): Likewise.
+
+2008-05-29  Paolo Carlini  <paolo.carlini@oracle.com>
+
+        PR c++/35243
+        * pt.c (tsubst_initializer_list): Consistently check the tree
+        returned by tsubst_pack_expansion for error_mark_node.
+
+2008-05-27  Michael Matz  <matz@suse.de>
+
+       PR c++/27975
+       * call.c (build_new_op): Make warning conditional on
+       OPT_Wenum_compare.
+
+2008-05-27  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR c++/35909
+       * call.c (convert_like_real): Convert bitfield to desired type
+       before creating temporary.
+
+2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
+
+       * Makefile.in: Adjusted dependencies on c-incpath.o.
+
+2008-05-23  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/36237
+       * cp-gimplify.c (cxx_omp_clause_apply_fn): Call
+       fold_build_cleanup_point_expr on build_call_a results.
+
+       PR c++/36308
+       * semantics.c (omp_clause_info_fndecl): New function.
+       (finish_omp_clauses): Use it.
+
+2008-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/36023
+       * cp-tree.h (check_array_initializer): New prototype.
+       * decl.c (check_array_initializer): New function.
+       (check_initializer): Call it.
+       * semantics.c (finish_compound_literal): Call it for ARRAY_TYPEs.
+
+2008-05-21  Tom Tromey  <tromey@redhat.com>
+
+       * mangle.c (save_partially_mangled_name): Remove.
+       (restore_partially_mangled_name): Likewise.
+       (write_encoding): Update.
+       (write_unqualified_name): Likewise.
+       (start_mangling): Always use name_obstack.  Remove 'ident_p'
+       argument.
+       (get_identifier_nocopy): Remove.
+       (finish_mangling_internal): Rename from finish_mangling.
+       (finish_mangling): New function.
+       (finish_mangling_get_identifier): Likewise.
+       (partially_mangled_name, partially_mangled_name_len): Remove.
+       (mangle_decl_string): Change return type.  Update.
+       (mangle_decl, mangle_type_string, mangle_special_for_type,
+       mangle_ctor_vtbl_for_type, mangle_thunk, mangle_guard_variable,
+       mangle_ref_init_variable): Update.
+
+2008-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
+
+        PR c++/35331
+        * semantics.c (begin_class_definition): Extend checks on the first
+       argument.
+
+2008-05-12  Tomas Bily  <tbily@suse.cz>
+
+        * typeck2.c (digest_init): Use CONVERT_EXPR_P.
+        * call.c (build_over_call): Likewise.
+        * error.c (dump_expr): Use CASE_CONVERT.
+        * class.c (fixed_type_or_null): Likewise.
+
+2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
+
+       * parser.c (cp_parser_omp_clause_reduction): Add missing "expected"
+       in error message.
+       (cp_parser_omp_clause_schedule): Remove superfluous "expected"
+       in error message.
+
+2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
+
+       * decl.c (duplicate_decls): Merge in DECL_PURE_P, TREE_READONLY,
+       DECL_LOOPING_CONST_OR_PURE_P attributes.
+       * rtti.c (build_dynamic_cast_1): Rename DECL_IS_PURE to
+       DECL_PURE_P.
+
+2008-05-02  Simon Baldwin  <simonb@google.com>
+
+       PR bootstrap/36108
+       * typeck.c (build_array_ref): Remove warn_array_subscript_range.
+
+2008-05-01  Simon Baldwin  <simonb@google.com>
+
+       * typeck.c (build_array_ref): Call warn_array_subscript_range.
+
+2008-04-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/35986
+       * pt.c (more_specialized_fn): Stop the loop even if there are no
+       arguments before ellipsis.
+
+2008-04-29  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/35650
+       * parser.c (cp_parser_lookup_name): Look through single function
+       OVERLOAD.
+
+       PR c++/35987
+       * typeck.c (cp_build_modify_expr) <case PREINCREMENT_EXPR>: Don't build
+       COMPOUND_EXPR if the second argument would be error_mark_node.
+
+2008-04-28  Jason Merrill  <jason@redhat.com>
+           Liu Guanwei <liu_gw@163.com>
+
+       PR c++/57
+       * parser.c (cp_parser_parameter_declaration): Handle < ambiguity
+       in default arguments.
+
+2008-04-25  Jan Hubicka  <jh@suse.cz>
+
+       * typeck.c (check_return_expr): Update.
+       * decl.c (start_preparsed_function): Update.
+       * method.c (use_thunk): Update.
+
+2008-04-24  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/35758
+       * cp-tree.h (cp_reconstruct_complex_type): New prototype.
+       * cp-objcp-common.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
+       * decl2.c (is_late_template_attribute): Only make vector_size
+       late tmpl attribute if argument is type or value dependent.
+       (cp_reconstruct_complex_type): New function.
+
+2008-04-24  Richard Guenther  <rguenther@suse.de>
+
+       * typeck.c (cp_build_function_call): Call
+       check_builtin_function_arguments.
+
+2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
+
+       * typeck.c (get_member_function_from_ptrfunc): Don't set TREE_INVARIANT.
+       (build_ptrmemfunc1): Don't set TREE_INVARIANT.
+       * init.c (build_zero_init): Don't set TREE_INVARIANT.
+       * class.c (build_base_path): Don't set TREE_INVARIANT.
+       (build_vtbl_ref_1): Don't set TREE_INVARIANT.
+       (build_vtbl_initializer): Don't set TREE_INVARIANT.
+       * decl.c (build_enumerator): Don't set TREE_INVARIANT.
+       * rtti.c (tinfo_base_init): Don't set TREE_INVARIANT.
+       (generic_initializer): Don't set TREE_INVARIANT.
+       (ptr_initializer): Don't set TREE_INVARIANT.
+       (ptm_initializer): Don't set TREE_INVARIANT.
+       (class_initializer): Don't set TREE_INVARIANT.
+       * typeck2.c (process_init_constructor): Don't set TREE_INVARIANT.
+       * pt.c (push_inline_template_parms_recursive): Don't set TREE_INVARIANT.
+       (build_template_parm_index): Don't set TREE_INVARIANT.
+       (reduce_template_parm_level): Don't set TREE_INVARIANT.
+       (process_template_parm): Don't set TREE_INVARIANT.
+
+2008-04-22  Jason Merrill  <jason@redhat.com>
+
+       PR c++/35316
+       * semantics.c (finish_decltype_type): Check DECL_BIT_FIELD_TYPE
+       to see if DECL_BIT_FIELD_TYPE should be used, not some other flag.
+       * typeck.c (is_bitfield_expr_with_lowered_type): Likewise.
+
+2008-04-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/35747
+       * semantics.c (finish_stmt_expr): Call pop_stmt_list even if the stmt
+       expression is errorneous.
+
+2008-04-21  Jason Merrill  <jason@redhat.com>
+
+       PR c++/35325
+       * tree.c (cp_tree_equal): Handle FIXED_CST.
+
+       PR c++/35678
+       * pt.c (template_template_parm_bindings_ok_p): Set 
+       processing_template_decl while in this function.
+
 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
 
        * cvt.c (type_promotes_to): Support char16_t and char32_t.