fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
authorRafael Avila de Espindola <espindola@google.com>
Fri, 28 Mar 2008 13:15:00 +0000 (13:15 +0000)
committerRafael Espindola <espindola@gcc.gnu.org>
Fri, 28 Mar 2008 13:15:00 +0000 (13:15 +0000)
commit2d3cd5d5abceef93e032b7d9cd782b740194ae0e
treefa5450ccea2db5d27ae7d3c89e75865a446bf5d8
parent2ab8dbf48ee7c2eba910ee25ee37afd40e259738
fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.

2008-03-28  Rafael Espindola  <espindola@google.com>

* fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
(tree_binary_nonnegative_warnv_p): Make it public.
(tree_single_nonnegative_warnv_p): Make it public.
(tree_invalid_nonnegative_warnv_p): Make it public.
(tree_unary_nonzero_warnv_p): Make it public.
(tree_binary_nonzero_warnv_p): Make it public
(tree_single_nonzero_warnv_p): Make it public.
* tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
(extract_range_from_binary_expr): Split the expr argument.
(extract_range_from_unary_expr): Split the expr argument.
(extract_range_from_comparison): Split the expr argument.
(extract_range_from_expr): Use the new aux functions.
(vrp_evaluate_conditional_warnv): Use
vrp_evaluate_conditional_warnv_with_ops.
* tree.h (tree_unary_nonzero_warnv_p): Declare.
(tree_binary_nonzero_warnv_p): Declare.
(tree_single_nonzero_warnv_p): Declare.
(tree_expr_nonzero_warnv_p): Declare.
(tree_unary_nonnegative_warnv_p): Declare.
(tree_binary_nonnegative_warnv_p): Declare.
(tree_single_nonnegative_warnv_p): Declare.
(tree_invalid_nonnegative_warnv_p): Declare.

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