re PR tree-optimization/21088 (VRP passes fold the type of operands of a comparison)
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 23 Apr 2005 02:01:53 +0000 (02:01 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 23 Apr 2005 02:01:53 +0000 (02:01 +0000)
commit721425b6ada0661975ba11b6b4dfc83421150886
tree4d5c798a9511b850de0000a74818df18ef340983
parent84d658141e6b1d315b0eba5f19a3c57a7c51fd3f
re PR tree-optimization/21088 (VRP passes fold the type of operands of a comparison)

PR tree-optimization/21088
* fold-const.c (fold_unary, fold_binary, fold_ternary):
Export.
* tree-vrp.c (compare_values): Use fold_binary to compare
pointers.  Use boolean_type_node as the type of a comparison
expression being folded.
* tree.h: Add prototypes for fold_unary, fold_binary,
fold_ternary.

From-SVN: r98600
gcc/ChangeLog
gcc/fold-const.c
gcc/tree-vrp.c
gcc/tree.h