diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2004-11-15 01:18:37 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-11-15 00:18:37 +0000 |
commit | 18522563e0d346db259fc6404b54c95e4155ae48 (patch) | |
tree | 8a20893a5c5c0b8de8fe5ddf927281ae604e7f1d /gcc/tree.h | |
parent | 4d6079e03d5291b4a7e1aae7fd836661c2331fed (diff) | |
download | gcc-18522563e0d346db259fc6404b54c95e4155ae48.zip gcc-18522563e0d346db259fc6404b54c95e4155ae48.tar.gz gcc-18522563e0d346db259fc6404b54c95e4155ae48.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3464,7 +3464,8 @@ extern int type_num_arguments (tree); extern bool associative_tree_code (enum tree_code); extern bool commutative_tree_code (enum tree_code); extern tree get_case_label (tree); - +extern tree upper_bound_in_type (tree, tree); +extern tree lower_bound_in_type (tree, tree); /* In stmt.c */ |