1. 16 Jan, 2006 24 commits
  2. 15 Jan, 2006 11 commits
  3. 14 Jan, 2006 5 commits
    • testsuite_tr1.h: Add missing include; use std::__are_same. · ab44b018
      2006-01-14  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/testsuite_tr1.h: Add missing include; use std::__are_same.
      
      From-SVN: r109705
      Paolo Carlini committed
    • re PR tree-optimization/25485 (VRP misses an "if" with TRUTH_AND_EXPR statement… · 9b61327b
      re PR tree-optimization/25485 (VRP misses an "if" with TRUTH_AND_EXPR statement that could be optimized away)
      
      gcc/
      	PR tree-optimization/25485
      	* tree-vrp.c (extract_range_from_binary_expr): Handle cases
      	where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
      	is known to be false and true, respectively.
      
      gcc/testsuite/
      	PR tree-optimization/25485
      	* gcc.dg/tree-ssa/pr25485.c: New.
      
      From-SVN: r109704
      Kazu Hirata committed
    • re PR tree-optimization/22548 (Aliasing can not tell array members apart) · a916f21d
      2006-01-14  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/22548
      	PR tree-optimization/22555
      	PR tree-optimization/22501
      	* Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
      	* params.def (salias-max-array-elements): New parameter.
      	* params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
      	* doc/invoke.texi (salias-max-array-elements): Document.
      	* tree-flow-inline.h (var_can_have_subvars): We also handle
      	arrays now.
      	* tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
      	COMPONENT_REF.
      	* tree-ssa-structalias.c (params.h): Include.
      	(push_fields_onto_fieldstack): Handle ARRAY_TYPE.
      	(find_func_aliases): Handle multiple constraints from ARRAY_REF.
      	(get_constraint_for): For ADDR_EXPR operating on something
      	containing an ARRAY_REF, add all subvars to the solution.
      	(handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
      	* tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
      	for creating MUST_DEFs.
      	(get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
      
      	* gcc.dg/tree-ssa/alias-4.c: New testcase.
      	* gcc.dg/tree-ssa/alias-5.c: Likewise.
      	* gcc.dg/tree-ssa/alias-6.c: Likewise.
      	* gcc.dg/tree-ssa/alias-7.c: Likewise.
      	* gcc.dg/tree-ssa/alias-8.c: Likewise.
      	* gcc.dg/tree-ssa/alias-9.c: Likewise.
      	* gcc.dg/tree-ssa/alias-10.c: Likewise.
      	* gcc.dg/tree-ssa/alias-11.c: Likewise.
      	* gcc.dg/tree-ssa/alias-12.c: Likewise.
      
      From-SVN: r109703
      Richard Guenther committed
    • tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several functions. · 7f17528a
      	* tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
      	functions.
      	(number_of_iterations_ne, number_of_iterations_lt_to_ne,
      	assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
      	number_of_iterations_le): New functions.
      	(number_of_iterations_special): Removed.
      	(number_of_iterations_exit): Do not use number_of_iterations_special.
      	* tree.c (unsigned_type_for): Always return integer type.
      
      	* gcc.dg/tree-ssa/pr19210-1.c: Update outcome.  Add new test loop.
      	* gcc.dg/tree-ssa/pr19210-2.c: Ditto.
      
      From-SVN: r109702
      Zdenek Dvorak committed
    • re PR rtl-optimization/24257 (ICE: in extract_insn with -O -fgcse -fgcse-sm) · 26fb114d
      2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
      	Richard Guenther  <rguenther@suse.de>
      
      	PR rtl-optimization/24257
      	* gcse.c (find_moveable_store): Only consider a store movable
      	when the SET_SRC of the insn can be assigned to a register.
      
      	* gcc.dg/torture/pr24257.c: New testcase.
      
      Co-Authored-By: Richard Guenther <rguenther@suse.de>
      
      From-SVN: r109701
      Steven Bosscher committed