re PR rtl-optimization/28636 (Miscompiled loop)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sun, 10 Sep 2006 21:27:36 +0000 (23:27 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 10 Sep 2006 21:27:36 +0000 (21:27 +0000)
commitde097a3b99ba39804410a1a1c06412cd2dd9f1d1
treed3c5020c21152292317e1a64bd9a4574e3d04193
parent4fe337f67a76d1b8288a3c63dec86dbaed77da4c
re PR rtl-optimization/28636 (Miscompiled loop)

PR rtl-optimization/28636
* combine.c (force_to_mode): Test for side-effects before
substituting by zero.
(simplify_shift_const): Likewise for zero or other constants.

From-SVN: r116827
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20060910-1.c [new file with mode: 0644]