diff options
author | Michael Matz <matz@suse.de> | 2011-04-15 19:48:25 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2011-04-15 19:48:25 +0000 |
commit | 63d2a3533fb013061b3a20ddcc26233d6368de32 (patch) | |
tree | 2ca8a4769f794f0a8bad0116318e591f72ee7e8e /gcc/builtins.c | |
parent | dee74c343634bec2e6909f197ce0b669820acc56 (diff) | |
download | gcc-63d2a3533fb013061b3a20ddcc26233d6368de32.zip gcc-63d2a3533fb013061b3a20ddcc26233d6368de32.tar.gz gcc-63d2a3533fb013061b3a20ddcc26233d6368de32.tar.bz2 |
tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
* tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
* builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
* function.c (gimplify_parameters): Ditto.
* gimplify.c (gimplify_vla_decl): Ditto.
* gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
(gimple_call_set_alloca_for_var): New inline function.
(gimple_call_alloca_for_var_p): Ditto.
* gimple.c (gimple_build_call_from_tree): Remember CALL_ALLOCA_FOR_VAR_P
state.
* cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
* tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
calls if they were for VLA objects.
From-SVN: r172516
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 81f7ec6..b2534ce 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -6025,7 +6025,7 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode, case BUILT_IN_ALLOCA: /* If the allocation stems from the declaration of a variable-sized object, it cannot accumulate. */ - target = expand_builtin_alloca (exp, ALLOCA_FOR_VAR_P (exp)); + target = expand_builtin_alloca (exp, CALL_ALLOCA_FOR_VAR_P (exp)); if (target) return target; break; |