fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
authorMarek Polacek <polacek@redhat.com>
Thu, 11 Dec 2014 11:07:58 +0000 (11:07 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 11 Dec 2014 11:07:58 +0000 (11:07 +0000)
commit20bd649ae4d750de74647a354c856d05de2acb0c
tree22c03e8da3a902dc6f9f55eeee02c2dfeda09227
parentf63950e56178b03d3adffc818b247eb6e1c6d340
fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.

* fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
(extract_muldiv_1): Likewise.
(maybe_canonicalize_comparison_1): Likewise.
(fold_comparison): Likewise.
(tree_binary_nonnegative_warnv_p): Likewise.
(tree_binary_nonzero_warnv_p): Likewise.
* gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
* tree-scalar-evolution.c (simple_iv): Likewise.
(scev_const_prop): Likewise.
* tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
* tree-vect-generic.c (expand_vector_operation): Likewise.
* tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
(ANY_INTEGRAL_TYPE_P): Define.
(TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
Add ANY_INTEGRAL_TYPE_CHECK.
(any_integral_type_check): New function.

From-SVN: r218621
gcc/ChangeLog
gcc/fold-const.c
gcc/gimple-ssa-strength-reduction.c
gcc/tree-scalar-evolution.c
gcc/tree-ssa-loop-niter.c
gcc/tree-vect-generic.c
gcc/tree.h