]> gcc.gnu.org Git - gcc.git/commit
re PR tree-optimization/63665 (wrong code with signed overflow even with -fwrapv)
authorRichard Biener <rguenther@suse.de>
Tue, 28 Oct 2014 11:42:43 +0000 (11:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 28 Oct 2014 11:42:43 +0000 (11:42 +0000)
commit9ccaac1188959d2b35cfa820c46277ebef5f75e0
treedfad2841958e84ccd1eaf6859b533ff386a916aa
parente29dfbf07d93e89e92d8b95bef247fc95a8024ef
re PR tree-optimization/63665 (wrong code with signed overflow even with -fwrapv)

2014-10-28  Richard Biener  <rguenther@suse.de>

PR middle-end/63665
* fold-const.c (fold_comparison): Properly guard simplifying
against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.

* gcc.dg/pr63665.c: New testcase.

From-SVN: r216781
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr63665.c [new file with mode: 0644]
This page took 0.054468 seconds and 5 git commands to generate.