1. 13 Aug, 2008 4 commits
    • re PR c/15236 (pedantic switch modifies treatment of non-ISO compliant enumerations) · 85790e66
      2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR c/15236
      	* diagnostic.c (pedwarn_at): New.
      	* toplev.h (pedwarn_at): Declare.
      	* c-tree.h (build_enumerator): Update declaration.
      	* c-decl.c (finish_enum): Update comment.
      	(build_enumerator): Take a location parameter. Give a pedwarn but do
      	not perform any conversion.
      	* c-parser.c (c_parser_enum_specifier): Set correct location for
      	enumerator.
      testsuite/
      	* gcc.dg/pr15236.c: New.
      	* gcc.dg/torture/pr25183.c: Update.
      
      From-SVN: r139050
      Manuel López-Ibáñez committed
    • re PR c/35635 (-Wconversion problematic with bitfields) · 374035cb
      2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR 35635
      	* c-common.c (conversion_warning): Use a switch. Ignore boolean
      	expressions except for conversions to signed:1 bitfields. Handle
      	COND_EXPR with constant operands.
      testsuite/
      	* gcc.dg/pr35635.c: New.
      	* gcc.dg/Wconversion-integer.c: Update.
      	* gcc.dg/Wconversion-integer-no-sign.c: Update.
      	* gcc.dg/Wsign-conversion.c: Update.
      	* g++.dg/warn/pr35635.C: New.
      	* g++.dg/warn/Wconversion-integer.C: Update.
      	* g++.dg/warn/Wsign-conversion.C: Update.
      
      From-SVN: r139049
      Manuel López-Ibáñez committed
    • re PR tree-optimization/15255 ([tree-ssa] a * 2 + a * 2 is not converted to a * 4) · 25c6036a
      2008-08-13  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/15255
      	* tree-ssa-reassoc.c (linearize_expr_tree): Declare.
      	(struct oecount_s): New struct and VEC types.
      	(cvec): New global.
      	(oecount_hash): New function.
      	(oecount_eq): Likewise.
      	(oecount_cmp): Likewise.
      	(zero_one_operation): New function.
      	(build_and_add_sum): Likewise.
      	(undistribute_ops_list): Perform un-distribution of multiplication
      	and division on the chain of summands.
      	(should_break_up_subtract): Also break up subtracts for factors.
      	(reassociate_bb): Delete dead visited statements.
      	Call undistribute_ops_list.  Re-sort and optimize if it did something.
      	* passes.c (init_optimization_passes): Move DSE before
      	reassociation.
      	* tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
      	PHI nodes.
      
      	* gcc.dg/tree-ssa/reassoc-14.c: New testcase.
      	* gcc.dg/tree-ssa/reassoc-15.c: Likewise.
      	* gcc.dg/tree-ssa/reassoc-16.c: Likewise.
      	* gcc.dg/torture/reassoc-1.c: Likewise.
      	* gcc.dg/tree-ssa/recip-2.c: Adjust.
      	* gcc.dg/tree-ssa/recip-6.c: Likewise.
      	* gcc.dg/tree-ssa/recip-7.c: Likewise.
      	* gfortran.dg/reassoc_4.f: Likewise.
      
      From-SVN: r139048
      Richard Guenther committed
    • Daily bump. · 92464a8a
      From-SVN: r139045
      GCC Administrator committed
  2. 12 Aug, 2008 30 commits
  3. 11 Aug, 2008 6 commits