re PR tree-optimization/56899 (Wrong constant folding)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Apr 2013 07:30:20 +0000 (09:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Apr 2013 07:30:20 +0000 (09:30 +0200)
commit146b8692e33b78872476435d084d5062a243a200
treecfb012f8c9037ad4b63ec4f3e82cbc88f9a21773
parentb8578ff77f8ea4d23fa5edc2805e1f3625b46c14
re PR tree-optimization/56899 (Wrong constant folding)

PR tree-optimization/56899
* fold-const.c (extract_muldiv_1): Apply distributive law
only if TYPE_OVERFLOW_WRAPS (ctype).

* gcc.c-torture/execute/pr56899.c: New test.

From-SVN: r197692
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr56899.c [new file with mode: 0644]