mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 18:37:36 +08:00
(expand_decl): If stack checking, use alloca for large vars.
From-SVN: r14472
This commit is contained in:
parent
76e0d2113d
commit
5e4ef18a2b
@ -3573,7 +3573,11 @@ expand_decl (decl)
|
||||
/ BITS_PER_UNIT));
|
||||
}
|
||||
|
||||
else if (TREE_CODE (DECL_SIZE (decl)) == INTEGER_CST)
|
||||
else if (TREE_CODE (DECL_SIZE (decl)) == INTEGER_CST
|
||||
&& ! (flag_stack_check && ! STACK_CHECK_BUILTIN
|
||||
&& (TREE_INT_CST_HIGH (DECL_SIZE (decl)) != 0
|
||||
|| (TREE_INT_CST_LOW (DECL_SIZE (decl))
|
||||
> STACK_CHECK_MAX_VAR_SIZE * BITS_PER_UNIT))))
|
||||
{
|
||||
/* Variable of fixed size that goes on the stack. */
|
||||
rtx oldaddr = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user