PR tree-optimization/18431
commitfaab57e3cef4a6034b2336ac1a015b11733a370d
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Nov 2004 00:18:37 +0000 (15 00:18 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Nov 2004 00:18:37 +0000 (15 00:18 +0000)
tree8a20893a5c5c0b8de8fe5ddf927281ae604e7f1d
parent2eaea01e7a391c5d44b15592423011f1fd2b59e0
PR tree-optimization/18431
* fold-const.c (associate_trees): Do not produce x + 0.
(fold_widened_comparison, fold_sign_changed_comparison): New functions.
(fold): Use them.
* tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
Moved ...
* tree.c (upper_bound_in_type, lower_bound_in_type): Here.
* tree.h (upper_bound_in_type, lower_bound_in_type): Declare.

* testsuite/gcc.c-torture/execute/20041114-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90646 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20041114-1.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c
gcc/tree.c
gcc/tree.h