From b73a6056563470e5b99e79a0dc769c351e906e6e Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Sun, 28 Jan 2007 05:04:48 +0000 Subject: tree.c (tree_fold_gcd): Delete. * tree.c (tree_fold_gcd): Delete. * tree.h (tree_fold_gcd): Remove prototype. * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to test whether one constant integer is a multiple of another. Instead call int_const_binop with TRUNC_MOD_EXPR and test for a zero result. * fold-const.c (multiple_of_p): We've determined both TOP and BOTTOM are integer constants so we can call int_const_binop directly instead of the more generic const_binop. From-SVN: r121253 --- gcc/fold-const.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/fold-const.c') diff --git a/gcc/fold-const.c b/gcc/fold-const.c index b606587..34ff711 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -12527,8 +12527,8 @@ multiple_of_p (tree type, tree top, tree bottom) && (tree_int_cst_sgn (top) < 0 || tree_int_cst_sgn (bottom) < 0))) return 0; - return integer_zerop (const_binop (TRUNC_MOD_EXPR, - top, bottom, 0)); + return integer_zerop (int_const_binop (TRUNC_MOD_EXPR, + top, bottom, 0)); default: return 0; -- cgit v1.1