http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58088

--- Comment #11 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Tue Sep 17 13:59:42 2013
New Revision: 202653

URL: http://gcc.gnu.org/viewcvs?rev=202653&root=gcc&view=rev
Log:
[gcc/]
2013-09-17  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>

    PR tree-optimization/58088
    * fold-const.c (mask_with_trailing_zeros): New function.
    (fold_binary_loc): Make sure we don't recurse infinitely
    when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
    Use mask_with_trailing_zeros where appropriate.

[gcc/testsuite/]
2013-09-17  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>

    PR tree-optimization/58088
    * gcc.c-torture/compile/pr58088.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/compile/pr58088.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

Reply via email to