1. 20 Mar, 2013 13 commits
  2. 19 Mar, 2013 11 commits
  3. 18 Mar, 2013 16 commits
    • tree-ssa-structalias.c (find): Use gcc_checking_assert. · 6e55eda7
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-structalias.c (find): Use gcc_checking_assert.
      	(unite): Likewise.
      	(merge_node_constraints): Likewise.
      	(build_succ_graph): Likewise.
      	(valid_graph_edge): Inline into single caller.
      	(unify_nodes): Likewise.  Use bitmap_set_bit return value
      	and cache varinfo.
      	(scc_visit): Fix formatting and variable use.
      	(do_sd_constraint): Use gcc_checking_assert.
      	(do_ds_constraint): Likewise.
      	(do_complex_constraint): Likewise.
      	(condense_visit): Likewise.  Cleanup.
      	(dump_pred_graph): New function.
      	(perform_var_substitution): Dump the pred-graph before
      	variable substitution.
      	(find_equivalent_node): Use gcc_checking_assert.
      	(rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
      
      From-SVN: r196783
      Richard Biener committed
    • tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Remove… · 4bdd44c4
      tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Remove cond_expr_stmt_list argument and do not gimplify the built expression.
      
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
      	Remove cond_expr_stmt_list argument and do not gimplify the
      	built expression.
      	(vect_loop_versioning): Adjust.
      	* tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
      	Cleanup to use less temporaries.
      	(vect_create_data_ref_ptr): Cleanup.
      
      From-SVN: r196782
      Richard Biener committed
    • re PR tree-optimization/56635 (internal compiler error: in find_lattice_value,… · 38c56a5b
      re PR tree-optimization/56635 (internal compiler error: in find_lattice_value, at tree-complex.c:15)
      
      	PR tree-optimization/56635
      	* fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
      	require types_compatible_p types.
      
      	* g++.dg/torture/pr56635.C: New test.
      
      From-SVN: r196781
      Jakub Jelinek committed
    • stormy16.c (xstormy16_expand_prologue): Remove spurious backslash. · a6178a25
      	* config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
      	spurious backslash.
      
      From-SVN: r196779
      Nick Clifton committed
    • mn10300.c (mn10300_get_live_callee_saved_regs): Add missing line to comment describing function. · 20b2e6a0
      	* config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
      	Add missing line to comment describing function.
      
      From-SVN: r196778
      Nick Clifton committed
    • re PR tree-optimization/56210 (invalid -Warray-bounds warning) · 92608d0e
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/56210
      	* tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
      	Handle string / character search functions.
      	* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
      
      From-SVN: r196777
      Richard Biener committed
    • re PR middle-end/56483 (LTO issue with expanding GIMPLE_COND) · 31348d52
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/56483
      	* cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
      	and implement properly.
      	* gimple.h (gimple_cond_single_var_p): Remove.
      
      From-SVN: r196776
      Richard Biener committed
    • tree-data-ref.h (find_data_references_in_loop): Declare. · fcac74a1
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	* tree-data-ref.h (find_data_references_in_loop): Declare.
      	* tree-data-ref.c (get_references_in_stmt): Use a stack
      	vector pre-allocated in the callers.
      	(find_data_references_in_stmt): Adjust.
      	(graphite_find_data_references_in_stmt): Likewise.
      	(create_rdg_vertices): Likewise.
      	(find_data_references_in_loop): Export.
      	* tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
      	Compute dependences here...
      	(vect_analyze_data_refs): ...not here.  When we encounter
      	a non-vectorizable data reference in basic-block vectorization
      	truncate the data reference vector.  Do not bother to
      	fixup data-dependence information for gather loads.
      	* tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
      	of data references, as reported.
      
      From-SVN: r196775
      Richard Biener committed
    • PR libstdc++/55977 (partial, std::vector and std::deque bits) · ad6fdc19
      2013-03-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/55977 (partial, std::vector and std::deque bits)
      	* include/bits/stl_vector.h (_M_range_initialize(_InputIterator,
      	_InputIterator, std::input_iterator_tag)): Use emplace_back.
      	* include/bits/deque.tcc (_M_range_initialize(_InputIterator,
      	_InputIterator, std::input_iterator_tag)): Likewise.
      	* testsuite/23_containers/vector/cons/55977.cc: New.
      	* testsuite/23_containers/deque/cons/55977.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
      	Adjust dg-error line number.
      	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
      	Likewise.
      
      From-SVN: r196774
      Paolo Carlini committed
    • gfortran.h (gfc_option_t): Remove flag_whole_file. · 9fa52231
      2013-03-18  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.h (gfc_option_t): Remove flag_whole_file.
              * invoke.texi (-fno-whole-file): Remove.
              * lang.opt (fwhole-file): Change to Ignore.
              * options.c (gfc_init_options, gfc_post_options,
              gfc_handle_option): Remove !flag_whole_file handling
              * parse.c (resolve_all_program_units,
              * translate_all_program_units,
              gfc_parse_file): Ditto.
              * resolve.c (resolve_global_procedure): Ditto.
              * trans-decl.c (gfc_get_symbol_decl,
              * gfc_get_extern_function_decl,
              gfc_create_module_variable): Ditto.
              * trans-types.c (gfc_get_derived_type): Ditto.
      
      From-SVN: r196773
      Tobias Burnus committed
    • re PR tree-optimization/3713 (Pointers to functions or member functions are not folded or inlined) · 0d5a1b56
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/3713
      	* tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
      	has_constants and expr.
      	(stmt_has_constants): Properly valueize SSA names when deciding
      	whether the stmt has constants.
      
      	* g++.dg/ipa/devirt-12.C: New testcase.
      
      From-SVN: r196771
      Richard Biener committed
    • tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the whole function when… · 789c34e3
      tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the whole function when there is nothing to do.
      
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
      	whole function when there is nothing to do.
      	* tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
      	* tree-vectorizer.c (vectorize_loops): Update virtual and
      	loop-closed SSA once.
      	* tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
      
      From-SVN: r196770
      Richard Biener committed
    • re PR c/56113 (out of memory when compiling a function with many goto labels (50k > )) · 076b4605
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/56113
      	* domwalk.c (bb_postorder): New global static.
      	(cmp_bb_postorder): New function.
      	(walk_dominator_tree): Replace scheme imposing an order for
      	visiting dominator sons by one sorting them at the time they
      	are pushed on the stack.
      
      From-SVN: r196769
      Richard Biener committed
    • re PR middle-end/39326 (Segmentation fault with -O1, out of memory with -O2) · bdb01696
      2013-03-18  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/39326
      	* tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
      	(struct mem_ref): Replace mem member with ao_ref typed member.
      	(MEM_ANALYZABLE): Adjust.
      	(memref_eq): Likewise.
      	(mem_ref_alloc): Likewise.
      	(gather_mem_refs_stmt): Likewise.
      	(mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
      	(execute_sm_if_changed_flag_set): Adjust.
      	(execute_sm): Likewise.
      	(ref_always_accessed_p): Likewise.
      	(refs_independent_p): Likewise.
      	(can_sm_ref_p): Likewise.
      
      From-SVN: r196768
      Richard Biener committed
    • re PR c/56566 (bogus "is narrower than values of its type" warning) · 12d2dc5e
      	PR c/56566
      	* tree.c (tree_int_cst_min_precision): For integer_zerop (value)
      	return 1 even for !unsignedp.
      
      	* c-c++-common/pr56566.c: New test.
      
      From-SVN: r196767
      Jakub Jelinek committed
    • re PR c++/54359 ([C++0x] decltype in member function's trailing return type when… · 136357ac
      re PR c++/54359 ([C++0x] decltype in member function's trailing return type when defined outside of class)
      
      	PR c++/54359
      	PR c++/56639
      	* parser.c (cp_parser_direct_declarator): Bail if we see a
      	qualified-id not at namespace scope.
      
      From-SVN: r196765
      Jason Merrill committed