fold-const.c (fold_widened_comparison): Do not allow sign-changes that change the...
authorRichard Guenther <rguenther@suse.de>
Tue, 8 Apr 2008 21:57:43 +0000 (21:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 8 Apr 2008 21:57:43 +0000 (21:57 +0000)
commit02765a37a16527a510600c206bb0fe176d255525
tree07a7d78fde26b05761a85a44a2199eb920893518
parenta0f3928210c3b652eb7804144f59db9f8fe98334
fold-const.c (fold_widened_comparison): Do not allow sign-changes that change the result.

2008-04-08  Richard Guenther  <rguenther@suse.de>

* fold-const.c (fold_widened_comparison): Do not allow
sign-changes that change the result.

* gcc.c-torture/execute/20080408-1.c: New testcase.

From-SVN: r134108
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20080408-1.c [new file with mode: 0644]