OSDN Git Service

PR c/39855
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 21:57:52 +0000 (21:57 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 21:57:52 +0000 (21:57 +0000)
commit4377e55fd9bda8d7e968204d62dd6c0bbb6cb542
tree9490a0f1996cc98864effb946df615d1062f9693
parenta7cf5bbf407b59635c3d7d7a6aceaedbadfe08c8
PR c/39855
* fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
into 0, use omit_one_operand.

* gcc.dg/torture/pr39855.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146617 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr39855.c [new file with mode: 0644]