http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143
--- Comment #32 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Nov 18 15:13:14 2013 New Revision: 204965 URL: http://gcc.gnu.org/viewcvs?rev=204965&root=gcc&view=rev Log: 2013-11-18 Richard Biener <rguent...@suse.de> Backport from mainline 2013-10-21 Richard Biener <rguent...@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. 2013-10-21 Richard Biener <rguent...@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. 2013-11-06 Richard Biener <rguent...@suse.de> PR tree-optimization/58653 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF. (prepare_initializers_chain): Adjust. * gcc.dg/tree-ssa/predcom-6.c: New testcase. * gcc.dg/tree-ssa/predcom-7.c: Likewise. PR tree-optimization/59047 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly. * gcc.dg/torture/pr59047.c: New testcase. 2013-10-15 Richard Biener <rguent...@suse.de> PR tree-optimization/58143 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow): New function. (rewrite_to_defined_overflow): Likewise. (move_computations_dom_walker::before_dom): Rewrite stmts with undefined signed overflow that are not always executed into unsigned arithmetic. * gcc.dg/torture/pr58143-1.c: New testcase. * gcc.dg/torture/pr58143-2.c: Likewise. * gcc.dg/torture/pr58143-3.c: Likewise. Added: branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/fold-divmul-1.c branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/torture/pr58794-1.c branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/torture/pr58794-2.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr58143-1.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr58143-2.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr58143-3.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr59047.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/tree-ssa/predcom-6.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/tree-ssa/predcom-7.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/fold-const.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/tree-predcom.c branches/gcc-4_8-branch/gcc/tree-ssa-loop-im.c