PR rtl-optimization/28636
commit7bb0bd010747ea3893c4c475534f3950e059ce6d
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Sep 2006 21:27:36 +0000 (10 21:27 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Sep 2006 21:27:36 +0000 (10 21:27 +0000)
treed3c5020c21152292317e1a64bd9a4574e3d04193
parent32acc84a1f344f5ebfb5c81ed6665542c56c2880
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116827 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20060910-1.c [new file with mode: 0644]