gcc/
commit0a8b4135c2b1b0d9954a8f302367f88550eb126a
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Dec 2005 04:03:32 +0000 (22 04:03 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Dec 2005 04:03:32 +0000 (22 04:03 +0000)
tree66a616b689f118212742fb5cadb2a0578277dd95
parent8e2f5b513754d33ac323d85001ac663820b328ee
gcc/
PR tree-optimization/23518
* fold-const.c (make_range): Don't move a constant to the
other side of the comparison if the type is signed and -fwrapv
is given.

gcc/testsuite/
PR tree-optimization/23518
* testsuite/gcc.dg/pr23518.c: New.

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