diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-11-18 14:52:19 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-11-18 14:52:19 +0000 |
commit | ae7e9dddb860567a40d7c84736522242236a3355 (patch) | |
tree | 586ec6bfb385ba75fc95f0a7d521c0b51c136124 /gcc/cfgexpand.c | |
parent | 9439e9a1a4aed9382d459eab247958671ea5a30d (diff) | |
download | gcc-ae7e9dddb860567a40d7c84736522242236a3355.zip gcc-ae7e9dddb860567a40d7c84736522242236a3355.tar.gz gcc-ae7e9dddb860567a40d7c84736522242236a3355.tar.bz2 |
decl.c, [...]: Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
gcc/ada/
* gcc-interface/decl.c, gcc-interface/utils.c, gcc-interface/utils2.c:
Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
gcc/c-family/
* c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
tree_to_uhwi throughout.
gcc/c/
* c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
tree_to_uhwi throughout.
gcc/cp/
* call.c, class.c, decl.c, error.c: Replace tree_low_cst (..., 1) with
tree_to_uhwi throughout.
gcc/objc/
* objc-encoding.c: Replace tree_low_cst (..., 1) with tree_to_uhwi
throughout.
gcc/
* alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
config/aarch64/aarch64.c, config/alpha/predicates.md,
config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
config/mep/mep-pragma.c, config/mips/mips.c,
config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
From-SVN: r204961
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index ab4c444..7732b09 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -293,7 +293,7 @@ add_stack_var (tree decl) * (size_t *)pointer_map_insert (decl_to_stack_part, decl) = stack_vars_num; v->decl = decl; - v->size = tree_low_cst (DECL_SIZE_UNIT (SSAVAR (decl)), 1); + v->size = tree_to_uhwi (DECL_SIZE_UNIT (SSAVAR (decl))); /* Ensure that all variables have size, so that &a != &b for any two variables that are simultaneously live. */ if (v->size == 0) @@ -1057,7 +1057,7 @@ expand_one_stack_var (tree var) HOST_WIDE_INT size, offset; unsigned byte_align; - size = tree_low_cst (DECL_SIZE_UNIT (SSAVAR (var)), 1); + size = tree_to_uhwi (DECL_SIZE_UNIT (SSAVAR (var))); byte_align = align_local_variable (SSAVAR (var)); /* We handle highly aligned variables in expand_stack_vars. */ @@ -1133,7 +1133,7 @@ defer_stack_allocation (tree var, bool toplevel) /* Whether the variable is small enough for immediate allocation not to be a problem with regard to the frame size. */ bool smallish - = (tree_low_cst (DECL_SIZE_UNIT (var), 1) + = (tree_to_uhwi (DECL_SIZE_UNIT (var)) < PARAM_VALUE (PARAM_MIN_SIZE_FOR_STACK_SHARING)); /* If stack protection is enabled, *all* stack variables must be deferred, @@ -1281,7 +1281,7 @@ expand_one_var (tree var, bool toplevel, bool really_expand) { if (really_expand) expand_one_stack_var (origvar); - return tree_low_cst (DECL_SIZE_UNIT (var), 1); + return tree_to_uhwi (DECL_SIZE_UNIT (var)); } return 0; } @@ -1361,7 +1361,7 @@ stack_protect_classify_type (tree type) || !tree_fits_uhwi_p (TYPE_SIZE_UNIT (type))) len = max; else - len = tree_low_cst (TYPE_SIZE_UNIT (type), 1); + len = tree_to_uhwi (TYPE_SIZE_UNIT (type)); if (len < max) ret = SPCT_HAS_SMALL_CHAR_ARRAY | SPCT_HAS_ARRAY; |