re PR tree-optimization/36008 (Function produces wrong results when inlined.)
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Apr 2008 16:08:11 +0000 (18:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 24 Apr 2008 16:08:11 +0000 (18:08 +0200)
commit194ac52ab4a35f22abafaec46ac22ac303a61ab8
treeca710a32b2afc2a6652c1ba80891b326e6c26420
parent9f9f72aa49dee36affe983b7791da8815a8125e3
re PR tree-optimization/36008 (Function produces wrong results when inlined.)

PR tree-optimization/36008
* fold-const.c (try_move_mult_to_index): If s == NULL, divide
the original op1, rather than delta by step.

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

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