1. 21 Oct, 2010 3 commits
  2. 20 Oct, 2010 3 commits
    • ro's avatar
      fixincludes: · 166b4e81
      ro authored
      	PR c++/46024
      	* inclhack.def (solaris_sys_va_list): New fix.
      	* fixincl.x: Regenerate.
      	* tests/base/sys/va_list.h: New test.
      
      	gcc/testsuite:
      	PR c++/46024
      	* g++.dg/warn/miss-format-1.C: Enclose dg-error target list in braces.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165731 138bc75d-0d04-0410-961f-82ee72b054a4
      166b4e81
    • jason's avatar
      PR c++/46056 · 936983bf
      jason authored
      	* parser.c (cp_convert_range_for): Call cp_finish_decl
      	instead of finish_expr_stmt.
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165726 138bc75d-0d04-0410-961f-82ee72b054a4
      936983bf
    • rguenth's avatar
      2010-10-20 Richard Guenther <rguenther@suse.de> · 491dbbe1
      rguenth authored
      	PR lto/45667
      	* lto-streamer-out.c (output_gimple_stmt): Fix typo.
      	* tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
      	(verify_gimple_assign_single): Disable ADDR_EXPR type check
      	when in LTO.
      
      	* g++.dg/lto/20101020-1_0.h: New testcase.
      	* g++.dg/lto/20101020-1_0.C: Likewise.
      	* g++.dg/lto/20101020-1_1.C: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165725 138bc75d-0d04-0410-961f-82ee72b054a4
      491dbbe1
  3. 19 Oct, 2010 1 commit
    • paolo's avatar
      /cp · 7a38812e
      paolo authored
      2010-10-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/46046
      	* pt.c (add_to_template_args): Check extra_args for error_mark_node.
      	(coerce_template_parms): Likewise for args.
      
      /testsuite
      2010-10-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/46046
      	* g++.dg/template/crash104.C: New.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165708 138bc75d-0d04-0410-961f-82ee72b054a4
      7a38812e
  4. 18 Oct, 2010 1 commit
  5. 16 Oct, 2010 1 commit
  6. 15 Oct, 2010 6 commits
  7. 14 Oct, 2010 3 commits
    • rguenth's avatar
      2010-10-14 Richard Guenther <rguenther@suse.de> · 8a91b6a6
      rguenth authored
      	PR lto/45382
      	* g++.dg/lto/20101014-2_0.C: New testcase.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165471 138bc75d-0d04-0410-961f-82ee72b054a4
      8a91b6a6
    • rguenth's avatar
      2010-10-14 Richard Guenther <rguenther@suse.de> · fa67d8e8
      rguenth authored
      	PR lto/44561
      	* tree.def (NULLPTR_TYPE): New tree code.
      	* dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
      	* dwarf2out.c (is_base_type): Likewise.
      	(gen_type_die_with_usage): Likewise.
      	* sdbout.c (plain_type_1): Likewise.
      	* tree.c (build_int_cst_wide): Likewise.
      	* gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types
      	are equal.
      
      	cp/
      	* cp-tree.h (NULLPTR_TYPE_P): Adjust.
      	* decl.c (cxx_init_decl_processing): Build a NULLPTR_TYPE node,
      	use build_int_cst.
      	* error.c (dump_type): Handle NULLPTR_TYPE.
      	(dump_type_prefix): Likewise.
      	(dump_type_suffix): Likewise.
      	* mangle.c (write_type): Likewise.
      	* name-lookup.c (arg_assoc_type): Likewise.
      	* rtti.c (typeinfo_in_lib_p): Likewise.
      	* pt.c (tsubst): Likewise.
      
      	* g++.dg/lto/20101010-3_0.C: New testcase.
      	* g++.dg/lto/20101010-4_0.C: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165462 138bc75d-0d04-0410-961f-82ee72b054a4
      fa67d8e8
    • jason's avatar
      PR c++/45984 · 63448886
      jason authored
      	* class.c (fixup_attribute_variants): New fn.
      	* cp-tree.h: Declare it.
      	* pt.c (instantiate_class_template): Call it.
      	* semantics.c (begin_class_definition): Call it.
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165443 138bc75d-0d04-0410-961f-82ee72b054a4
      63448886
  8. 13 Oct, 2010 2 commits
  9. 12 Oct, 2010 1 commit
  10. 11 Oct, 2010 2 commits
  11. 10 Oct, 2010 2 commits
  12. 09 Oct, 2010 1 commit
  13. 06 Oct, 2010 1 commit
  14. 05 Oct, 2010 2 commits
    • rguenth's avatar
      2010-10-05 Richard Guenther <rguenther@suse.de> · 85344eeb
      rguenth authored
      	* value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
      	(gimple_mod_pow2): Likewise.
      	(gimple_mod_subtract): Likewise.
      	(gimple_ic): Likewise.
      	(gimple_stringop_fixed_value): Likewise.
      	* tree-profile.c (tree_init_edge_profiler): Mark profile
      	functions nothrow and leaf.
      	(add_abnormal_goto_call_edges): Remove.
      	(tree_gen_edge_profiler): Work on SSA form.
      	(tree_gen_ic_profiler): Likewise.  Simplify.
      	(do_tree_profiling): Update SSA form.
      	(pass_tree_profile): Remove.
      	(do_tree_profiling): Likewise.
      	(gate_tree_profile_ipa): New function.
      	(pass_ipa_tree_profile): New.
      	(tree_profiling): Re-write as IPA pass.  Properly drop const/pure
      	state of instrumented functions.
      	* passes.c (init_optimization_passes): Remove early non-SSA
      	inlining.  Move profiling after early optimizations.
      	* ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
      	(pass_ipa_early_inline): Likewise.
      	* tree-pass.h (pass_ipa_early_inline): Remove.
      	(pass_tree_profile): Likewise.
      	(pass_ipa_tree_profile): Declare.
      
      	* gcc.dg/tree-prof/val-prof-1.c: Adjust.
      	* gcc.dg/tree-prof/val-prof-2.c: Likewise.
      	* gcc.dg/tree-prof/val-prof-3.c: Likewise.
      	* gcc.dg/tree-prof/val-prof-4.c: Likewise.
      	* gcc.dg/tree-prof/val-prof-5.c: Likewise.
      	* gcc.dg/tree-prof/val-prof-7.c: Likewise.
      	* gcc.dg/tree-prof/stringop-1.c: Likewise.
      	* gcc.dg/tree-prof/stringop-2.c: Likewise.
      	* gcc.dg/tree-prof/ic-misattribution-1.c: Likewise.
      	* gcc.dg/tree-prof/indir-call-prof.c: Likewise.
      	* gcc.dg/tree-prof/update-loopch.c: Likewise.
      	* g++.dg/tree-prof/indir-call-prof.C: Likewise.
      	* g++.dg/tree-prof/inline_mismatch_args.C: Likewise.
      	* gcc.dg/tree-prof/tracer-1.c: Likewise.
      	* gcc.dg/tree-ssa/inline-4.c: Likewise.
      	* gcc.dg/tree-ssa/inline-3.c: Likewise.
      	* gcc.dg/tree-ssa/20080530.c: Likewise.
      	* g++.dg/tree-ssa/inline-3.C: Likewise.
      	* g++.dg/tree-ssa/inline-1.C: Likewise.
      	* g++.dg/tree-ssa/inline-2.C: Likewise.
      	* gcc.dg/profile-dir-1.c: Likewise.
      	* gcc.dg/profile-dir-2.c: Likewise.
      	* gcc.dg/profile-dir-3.c: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164986 138bc75d-0d04-0410-961f-82ee72b054a4
      85344eeb
    • rguenth's avatar
      2010-10-05 Richard Guenther <rguenther@suse.de> · a3087021
      rguenth authored
      	PR middle-end/45877
      	* gimple-fold.c (gimplify_and_update_call_from_tree): Handle
      	case where gimplification optimizes away the stmt.
      
      	* g++.dg/torture/pr45877.C: New testcase.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164984 138bc75d-0d04-0410-961f-82ee72b054a4
      a3087021
  15. 04 Oct, 2010 1 commit
    • jamborm's avatar
      2010-10-04 Martin Jambor <mjambor@suse.cz> · 4d701526
      jamborm authored
      	PR tree-optimization/45572
      	* ipa-prop.c (ipa_make_edge_direct_to_target): Call
      	ipa_check_create_node_params.
      	* ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
      
      	* testsuite/g++.dg/ipa/pr45572-1.C: New test.
      	* testsuite/g++.dg/ipa/pr45572-2.C: Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164930 138bc75d-0d04-0410-961f-82ee72b054a4
      4d701526
  16. 03 Oct, 2010 3 commits
    • hjl's avatar
      Revert revision 164914. · 1aa22f27
      hjl authored
      gcc/
      
      2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
      	revision 164914.
      	(vect_create_data_ref_ptr): Likewise.
      	* tree-vect-stmts.c (vectorizable_store): Likewise.
      	(perm_mask_for_reverse): Likewise.
      	(reverse_vec_elements): Likewise.
      	(vectorizable_load): Likewise.
      
      gcc/testsuite/
      
      2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* g++.dg/torture/pr45764.C: Revert revision 164914.
      	* gcc.dg/vect/pr43432.c: Likewise.
      	* gcc.dg/vect/vect-114.c: Likewise.
      	* gcc.dg/vect/vect-15.c: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164919 138bc75d-0d04-0410-961f-82ee72b054a4
      1aa22f27
    • jason's avatar
      * typeck.c (require_complete_type_sfinae): Add complain parm to... · dba1ea2f
      jason authored
      	(require_complete_type): ...this function.
      	(cp_build_array_ref, convert_arguments): Use it.
      	(convert_for_initialization, cp_build_modify_expr): Likewise.
      	* cp-tree.h: Declare it.
      	* call.c (build_over_call): Use it.
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164918 138bc75d-0d04-0410-961f-82ee72b054a4
      dba1ea2f
    • hjl's avatar
      Disallow negative steps in vectorizer. · 3055f3ce
      hjl authored
      gcc/
      
      2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR tree-optimization/45720
      	PR tree-optimization/45764
      	* tree-vect-data-refs.c (vect_analyze_data_ref_access):
      	Don't accept backwards consecutive accesses.
      	(vect_create_data_ref_ptr): Disallow negative steps.
      
      	* tree-vect-stmts.c (vectorizable_store): Allow negative steps.
      	(perm_mask_for_reverse): Removed.
      	(reverse_vec_elements): Likewise.
      	(vectorizable_load): Don't hanle negative steps.
      
      gcc/testsuite/
      
      2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR tree-optimization/45720
      	PR tree-optimization/45764
      	* g++.dg/torture/pr45764.C: New.
      
      	* gcc.dg/vect/pr43432.c: Xfail.
      	* gcc.dg/vect/vect-114.c: Likewise.
      	* gcc.dg/vect/vect-15.c: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164914 138bc75d-0d04-0410-961f-82ee72b054a4
      3055f3ce
  17. 01 Oct, 2010 1 commit
  18. 30 Sep, 2010 1 commit
  19. 28 Sep, 2010 1 commit
  20. 27 Sep, 2010 1 commit
    • jason's avatar
      Require lvalues as specified by the standard. · d6fbd579
      jason authored
      	* typeck.c (lvalue_or_else): Use real_lvalue_p.
      	(cp_build_addr_expr_1): Split out of cp_build_unary_op.
      	(cp_build_addr_expr, cp_build_addr_expr_strict): Interfaces.
      	(decay_conversion, get_member_function_from_ptrfunc): Adjust.
      	(build_x_unary_op, build_reinterpret_cast_1): Adjust.
      	(build_const_cast_1): Adjust.
      	* cp-tree.h: Declare new fns.
      	* call.c (build_this, convert_like_real, build_over_call): Adjust.
      	(initialize_reference): Adjust.
      	* class.c (build_base_path, convert_to_base_statically): Adjust.
      	(build_vfn_ref, resolve_address_of_overloaded_function): Adjust.
      	* cvt.c (build_up_reference, convert_to_reference): Adjust.
      	* decl.c (register_dtor_fn): Adjust.
      	* decl2.c (build_offset_ref_call_from_tree): Adjust.
      	* except.c (initialize_handler_parm): Adjust.
      	* init.c (build_offset_ref, build_delete, build_vec_delete): Adjust.
      	* rtti.c (build_dynamic_cast_1, tinfo_base_init): Adjust.
      	* tree.c (stabilize_expr): Adjust.
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164666 138bc75d-0d04-0410-961f-82ee72b054a4
      d6fbd579
  21. 24 Sep, 2010 2 commits
  22. 23 Sep, 2010 1 commit