diff options
author | Easwaran Raman <eraman@google.com> | 2013-10-09 21:07:54 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@gcc.gnu.org> | 2013-10-09 21:07:54 +0000 |
commit | 4d5b5e9f2c37500cb85e18ce685be3bdd6ba549d (patch) | |
tree | ad4a66df6d3b6cda0eaca95d0828d6b2e9c64305 /gcc/cfgexpand.c | |
parent | c9ef86a1717dd66f185aff6578cf4744771b39e4 (diff) | |
download | gcc-4d5b5e9f2c37500cb85e18ce685be3bdd6ba549d.zip gcc-4d5b5e9f2c37500cb85e18ce685be3bdd6ba549d.tar.gz gcc-4d5b5e9f2c37500cb85e18ce685be3bdd6ba549d.tar.bz2 |
params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
2013-10-09 Easwaran Raman <eraman@google.com>
* params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
* cfgexpand.c (defer_stack_allocation): ...use here
* doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
From-SVN: r203330
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index afb02a0..7ed29f5 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1131,7 +1131,9 @@ defer_stack_allocation (tree var, bool toplevel) other hand, we don't want the function's stack frame size to get completely out of hand. So we avoid adding scalars and "small" aggregates to the list at all. */ - if (optimize == 0 && tree_low_cst (DECL_SIZE_UNIT (var), 1) < 32) + if (optimize == 0 + && (tree_low_cst (DECL_SIZE_UNIT (var), 1) + < PARAM_VALUE (PARAM_MIN_SIZE_FOR_STACK_SHARING))) return false; return true; |