1. 13 Aug, 2008 9 commits
    • tree.h (maybe_fold_offset_to_address): Declare. · 99f536cc
      2008-08-13  Richard Guenther  <rguenther@suse.de>
      
      	* tree.h (maybe_fold_offset_to_address): Declare.
      	* tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
      	(ccp_fold): Handle pointer conversions the same as fold_stmt.
      	Likewise for POINTER_PLUS_EXPR.
      	(maybe_fold_offset_to_reference): Enable disabled code.
      	(maybe_fold_offset_to_address): New function.
      	(fold_stmt_r): Use it.
      	(fold_gimple_assign): Likewise.
      	* gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
      	(gimplify_expr): Likewise.
      
      	* gcc.dg/tree-ssa/ssa-ccp-21.c: New testcase.
      	* gcc.dg/tree-ssa/ssa-ccp-22.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-ccp-23.c: Likewise.
      
      From-SVN: r139061
      Richard Guenther committed
    • toplev.h (pedwarn_at): Fix declaration. · e3f05c4e
      2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	* toplev.h (pedwarn_at): Fix declaration.
      
      From-SVN: r139054
      Manuel López-Ibáñez committed
    • linux64.h (LINK_ARCH32_SPEC, [...]): Use %R in -Y P argument. · c71cfaaf
      	* config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
      	LINK_SPEC): Use %R in -Y P argument.
      
      From-SVN: r139053
      Joseph Myers committed
    • new file · 1da5099e
      From-SVN: r139052
      Aldy Hernandez committed
    • re PR ada/36777 (Protected type cannot have access taken from its body.) · 2d14501c
          gcc/ada/
      	PR ada/36777
      	* sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
      	* sem_attr.adb (Check_Type): The current instance of a protected
      	object is not a type name.
      	(Analyze_Access_Attribute): Accept instances of protected objects.
      	(Analyze_Attribute, Attribute_Address clause): Ditto.
      	* exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
      	the prefix as being the current instance if needed.
      
          gcc/testsuite/
      	PR ada/36777
      	* gnat.dg/protected_self_ref1.adb, gnat.dg/protected_self_ref2.adb:
      	New.
      
      From-SVN: r139051
      Samuel Tardieu committed
    • 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 1 commit