re PR middle-end/23518 (some gcc optimizations do not take overflow into account...
authorKazu Hirata <kazu@codesourcery.com>
Thu, 22 Dec 2005 04:03:32 +0000 (04:03 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 22 Dec 2005 04:03:32 +0000 (04:03 +0000)
commitc078a43735c62e3f90ac80ba1ae01e6d0b83baba
tree66a616b689f118212742fb5cadb2a0578277dd95
parent8ad4c89538959cda77bcf90164c79b4b74f9f602
re PR middle-end/23518 (some gcc optimizations do not take overflow into account with -fwrapv)

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.

From-SVN: r108940
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr23518.c [new file with mode: 0644]