From 2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 20 Feb 2008 14:13:47 +0000 Subject: tree.h (fold_real_zero_addition_p): Declare. 2008-02-20 Richard Guenther * tree.h (fold_real_zero_addition_p): Declare. * fold-const.c (fold_real_zero_addition_p): Export. * tree-ssa-reassoc.c (eliminate_using_constants): Also handle floating-point operations with zero and one. * gcc.dg/tree-ssa/reassoc-13.c: New testcase. From-SVN: r132480 --- gcc/tree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/tree.h') diff --git a/gcc/tree.h b/gcc/tree.h index 99c4aea..f98afe9 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4851,6 +4851,8 @@ extern enum tree_code invert_tree_comparison (enum tree_code, bool); extern bool tree_expr_nonzero_p (tree); extern bool tree_expr_nonzero_warnv_p (tree, bool *); +extern bool fold_real_zero_addition_p (const_tree, const_tree, int); + /* In builtins.c */ extern tree fold_call_expr (tree, bool); extern tree fold_builtin_fputs (tree, tree, bool, bool, tree); -- cgit v1.1