1. 21 Oct, 2013 6 commits
    • re PR tree-optimization/58794 (ICE in set_lattice_value, at tree-ssa-ccp.c:455… · 2445aeac
      re PR tree-optimization/58794 (ICE in set_lattice_value, at tree-ssa-ccp.c:455 on x86_64-linux-gnu (at -O1, -O2, and -O3))
      
      2013-10-21  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58794
      	* fold-const.c (operand_equal_p): Compare FIELD_DECL operand
      	of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
      
      	* c-c++-common/torture/pr58794-1.c: New testcase.
      	* c-c++-common/torture/pr58794-2.c: Likewise.
      
      From-SVN: r203891
      Richard Biener committed
    • re PR middle-end/58742 (pointer arithmetic simplification) · d480e6a5
      2013-10-21  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/58742
      	* fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
      	to (T) X for sign-changing conversions (or no conversion).
      
      	* c-c++-common/fold-divmul-1.c: New testcase.
      
      From-SVN: r203890
      Richard Biener committed
    • i386.md (kxnor<mode>): Add FLAGS_REG clobber. · 54f9aba0
      	* config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
      
      From-SVN: r203889
      Uros Bizjak committed
    • i386.c (expand_set_or_movmem_via_loop): Add issetmem argument. · d606b917
              * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
              argument.  Update function comment.
              (expand_set_or_movmem_via_rep): New function combining
              expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
              (expand_movmem_via_rep_mov): Remove.
              expand_setmem_via_rep_stos): Remove.
              (expand_movmem_epilogue): Update calls correspondingly.
              (expand_setmem_epilogue_via_loop): Likewise.
              (emit_memset): New.
              (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
              (expand_set_or_movmem_prologue): New function combining
              expand_movmem_prologue and expand_setmem_prologue.
              (expand_movmem_prologue): Remove.
              (expand_setmem_prologue): Remove.
              (expand_set_or_movmem_constant_prologue): New function combining
              expand_constant_movmem_prologue and expand_constant_setmem_prologue.
              (expand_constant_movmem_prologue): Remove.
              (expand_constant_setmem_prologue): Remove.
              (promote_duplicated_reg): Allow vector-const0 value.
              (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
              and ix86_expand_setmem.
              (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
              (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
      
      
      testsuite/
              * gcc.target/i386/memset-vector_loop-1.c: New test.
              * gcc.target/i386/memset-vector_loop-2.c: New test.
      
      From-SVN: r203886
      Michael Zolotukhin committed
    • Daily bump. · 057f1817
      From-SVN: r203884
      GCC Administrator committed
  2. 20 Oct, 2013 7 commits
  3. 19 Oct, 2013 16 commits
  4. 18 Oct, 2013 11 commits
    • re PR c++/58466 (ICE in cxx_eval_constant_expression) · 6e62a2b4
      /cp
      2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58466
      	* pt.c (most_specialized_class): Bump processing_template_decl for
      	get_class_bindings.
      
      /testsuite
      2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58466
      	* g++.dg/cpp0x/variadic145.C: New.
      
      From-SVN: r203836
      Paolo Carlini committed
    • tree-ssa.h: Don't include gimple-low.h... · 4484a35a
      
      	* tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h, sbitmap.h,
      	tree-ssa-threadedge.h, tree-ssa-dom.h, and tree-cfgcleanup.h.
      	* gimple-low.c (gimple_check_call_arg,
      	gimple_check_call_matching_types): Move to cgraph.c.
      	* gimple-low.h: Remove prototype.
      	* cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
      	Relocate from gimple-low.c.
      	* cgraph.h: Add prototype.  Don't include basic-block.h.
      	* gimplify.c: Add gimple-low to include list.
      	* omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
      	* tree-eh.c: Add gimple-low to include list.
      	* tree-nested.c: Likewise.
      	* cfgexpand.c: Add tree-ssa-address.h to include list.
      	* expr.c: Likewise.
      	* gimple-fold.c: Likewise.
      	* gimple-ssa-strength-reduction.c: Likewise.
      	* trans-mem.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
      	(degenerate_phi_result): Move to tree-phinodes.c.
      	* tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree-phinodes.c (degenerate_phi_result): Relocate here.
      	* tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
      	* tree-phinodes.h (degenerate_phi_result): Add prototype.
      	* tree-ssa-copy.c: Include tree-ssa-dom.h.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
      	pass_data_cleanup_cfg_post_optimizing,
      	make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
      	* tree-optimize.c: Delete File.
      	* graphite.c: Include tree-cfgcleanup.h.
      	* passes.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-ssa-dse.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-switch-conversion.c: Don't include tree-ssa-operands.h.
      	* tree-outof-ssa.c: Include sbitmap.h.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-stdarg.c: Likewise.
      	* Makefile.in (OBJS): Delete tree-optimize.o.
      	* basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
      	* coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
      	* varasm.c: Include basic-block.h.
      	* cfgloop.h: Include function.h instead of basic-block.h
      	(bb_loop_depth): Move to cfgloop.c.
      	* cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
      
      From-SVN: r203833
      Andrew MacLeod committed
    • predict.c (probably_never_executed): Compare frequency-based count to number of training runs. · bfaa17c1
      2013-10-18  Teresa Johnson  <tejohnson@google.com>
      
      	* predict.c (probably_never_executed): Compare frequency-based
      	count to number of training runs.
      	* params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
      
      From-SVN: r203830
      Teresa Johnson committed
    • arm.c (cortexa9_extra_costs): New table. · f58883bd
      [gcc/]
      2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* config/arm/arm.c (cortexa9_extra_costs): New table.
      	(arm_cortex_a9_tune): Use cortexa9_extra_costs.
      
      From-SVN: r203828
      Kyrylo Tkachov committed
    • regex_scanner.tcc: (_Scanner<>::_M_scan_normal... · 79488388
      2013-10-18  Tim Shen  <timshen91@gmail.com>
      
      	* include/bits/regex_scanner.tcc: (_Scanner<>::_M_scan_normal,
      	_Scanner<>::_M_eat_escape_ecma, _Scanner<>::_M_eat_escape_posix,
      	_Scanner<>::_M_eat_escape_awk): Narrow character before finding in maps.
      	* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc:
      	New.
      
      From-SVN: r203827
      Tim Shen committed
    • tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h". · 01e127b1
             * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
      
              * tree-ssa-threadupdate.c: Include "dbgcnt.h".
              (register_jump_thread): Add "registered_jump_thread" debug counter support.
              * dbgcnt.def (registered_jump_thread): New debug counter.
      
      From-SVN: r203825
      Jeff Law committed
    • rs6000.c: Include cgraph.h. · f41b8848
      
      	* config/rs6000/rs6000.c: Include cgraph.h.
      
      From-SVN: r203824
      Andrew MacLeod committed
    • tree-ssa-tail-merge.c (replace_block_by): Update edge weights during merging. · adc7a812
      2013-10-18  Teresa Johnson  <tejohnson@google.com>
      
      	* tree-ssa-tail-merge.c (replace_block_by): Update edge
      	weights during merging.
      
      From-SVN: r203823
      Teresa Johnson committed
    • parser.c (cp_parser_lookup_name): Tidy. · 4db45577
      2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* parser.c (cp_parser_lookup_name): Tidy.
      
      From-SVN: r203822
      Paolo Carlini committed
    • runtime: Fix typo in dup3 fallback implementation. · 134e6225
      From Uros Bizjak.
      
      From-SVN: r203820
      Ian Lance Taylor committed
    • tree-cfg.h: Rename from tree-flow.h. · 377d9792
      
      	* tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
      	* tree-ssa.h: Relocate required #includes from tree-cfg.h.
      	* tree-ssa-operands.h: Remove prototype.
      	* tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
      	* gimple.c (virtual_operand_p): Relocate from gimple.c.
      	* gimple.h: Add prototype.
      	* gimple-ssa.h: Include tree-ssa-operands.h.
      	* tree-dump.c: Add tree-cfg.h to include list.
      	* tree-ssa-alias.c: Add ipa-reference.h to include list.
      	* config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
      	* config/i386/i386.c: Don't include tree-flow.h.
      	* config/rs6000/rs6000.c: Likewise.
      
      	* lto/lto.c: Remove tree-flow.h from include list.
      
      	* testsuite/g++.dg/plugin/header_plugin.c: Don't include tree-flow.h.
      
      From-SVN: r203817
      Andrew Macleod committed