From 9439e9a1a4aed9382d459eab247958671ea5a30d Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 18 Nov 2013 14:52:03 +0000 Subject: c-common.c, [...]: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/c-family/ * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/c/ * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/cp/ * class.c, dump.c, error.c, init.c, method.c, parser.c, semantics.c: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/go/ * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/java/ * class.c, expr.c: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/objc/ * objc-next-runtime-abi-02.c: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. gcc/ * builtins.c, cilk-common.c, config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md, config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c, coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h, fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c, predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c, tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c, tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c: Replace tree_low_cst (..., 0) with tree_to_shwi throughout. From-SVN: r204959 --- gcc/c-family/c-format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/c-family/c-format.c') diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c index d0c07e41354..b3e1e399353 100644 --- a/gcc/c-family/c-format.c +++ b/gcc/c-family/c-format.c @@ -1460,7 +1460,7 @@ check_format_arg (void *ctx, tree format_tree, return; } if (!tree_fits_shwi_p (arg1) - || (offset = tree_low_cst (arg1, 0)) < 0) + || (offset = tree_to_shwi (arg1)) < 0) { res->number_non_literal++; return; @@ -1507,7 +1507,7 @@ check_format_arg (void *ctx, tree format_tree, } if (TREE_CODE (format_tree) == ARRAY_REF && tree_fits_shwi_p (TREE_OPERAND (format_tree, 1)) - && (offset += tree_low_cst (TREE_OPERAND (format_tree, 1), 0)) >= 0) + && (offset += tree_to_shwi (TREE_OPERAND (format_tree, 1))) >= 0) format_tree = TREE_OPERAND (format_tree, 0); if (TREE_CODE (format_tree) == VAR_DECL && TREE_CODE (TREE_TYPE (format_tree)) == ARRAY_TYPE -- cgit v1.2.1