fold-const.c (tree_expr_nonzero_p): Add function prototype.
authorRoger Sayle <roger@eyesopen.com>
Mon, 19 Jul 2004 12:45:44 +0000 (12:45 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 19 Jul 2004 12:45:44 +0000 (12:45 +0000)
commitadb8e07e68e65f801a4fafc491c55dfe30af66ed
tree2f13610dabbc475f272664de4371618b18cd0cda
parent3c95eb0ebf6acc1de5ae0d37967103effd787071
fold-const.c (tree_expr_nonzero_p): Add function prototype.

* fold-const.c (tree_expr_nonzero_p): Add function prototype.
(fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
(fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
(fold_relational_const): Tidy up handling of floating point
comparisons by calling real_compare.  Remove tree_expr_nonzero_p
transformation; fold_relational_const assumes constant operands.

From-SVN: r84916
gcc/ChangeLog
gcc/fold-const.c