re PR tree-optimization/18431 (Code for arrays and pointers are not the same)
authorZdenek Dvorak <dvorakz@suse.cz>
Mon, 15 Nov 2004 00:18:37 +0000 (01:18 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Mon, 15 Nov 2004 00:18:37 +0000 (00:18 +0000)
commit18522563e0d346db259fc6404b54c95e4155ae48
tree8a20893a5c5c0b8de8fe5ddf927281ae604e7f1d
parent4d6079e03d5291b4a7e1aae7fd836661c2331fed
re PR tree-optimization/18431 (Code for arrays and pointers are not the same)

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.

From-SVN: r90646
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