aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-02-20 14:13:47 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-02-20 14:13:47 +0000
commit2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6 (patch)
treec5e05848bec7920261ee516331b46b45437148c4 /gcc/tree.h
parent1c8bd6a397365e8cc69507f8c311f1fda3d6ebec (diff)
downloadgcc-2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6.zip
gcc-2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6.tar.gz
gcc-2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6.tar.bz2
tree.h (fold_real_zero_addition_p): Declare.
2008-02-20 Richard Guenther <rguenther@suse.de> * 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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
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);