re PR rtl-optimization/24899 (loop.c miscompiles libgnomecanvas)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Dec 2005 12:12:41 +0000 (13:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Dec 2005 12:12:41 +0000 (13:12 +0100)
commita1615718f5f7eae8acb173637725808d02bb9c00
treeac8e1c720ac8e73c2f5c6adefd286fbc5483c5be
parent0c8c236b7ac9f111048741b57339eee2e72a0a3e
re PR rtl-optimization/24899 (loop.c miscompiles libgnomecanvas)

PR rtl-optimization/24899
* loop.c (strength_reduce): Don't reduce giv that is not always
computable and where add_val or mult_val can trap.

* gcc.c-torture/execute/20051215-1.c: New test.

From-SVN: r108642
gcc/ChangeLog
gcc/loop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20051215-1.c [new file with mode: 0644]