aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-05-06 13:44:56 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-05-06 13:44:56 -0400
commit1ee86d15987799b9142cdb32e8e07c500681a76e (patch)
treec90a90c63d280fe87df7b5af79bde713640db5ed
parent15fc002672d643fd9d93d220027b5cd2aefc632c (diff)
downloadgcc-1ee86d15987799b9142cdb32e8e07c500681a76e.zip
gcc-1ee86d15987799b9142cdb32e8e07c500681a76e.tar.gz
gcc-1ee86d15987799b9142cdb32e8e07c500681a76e.tar.bz2
(expand_builtin...
(expand_builtin, case BUILT_IN_ALLOCA): Don't set current_function_calls_alloca here nor record new stack level for nonlocal gotos. From-SVN: r7230
-rw-r--r--gcc/expr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 2716b08..ddebff2 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7080,17 +7080,12 @@ expand_builtin (exp, target, subtarget, mode, ignore)
/* Arg could be non-integer if user redeclared this fcn wrong. */
|| TREE_CODE (TREE_TYPE (TREE_VALUE (arglist))) != INTEGER_TYPE)
break;
- current_function_calls_alloca = 1;
+
/* Compute the argument. */
op0 = expand_expr (TREE_VALUE (arglist), NULL_RTX, VOIDmode, 0);
/* Allocate the desired space. */
- target = allocate_dynamic_stack_space (op0, target, BITS_PER_UNIT);
-
- /* Record the new stack level for nonlocal gotos. */
- if (nonlocal_goto_handler_slot != 0)
- emit_stack_save (SAVE_NONLOCAL, &nonlocal_goto_stack_level, NULL_RTX);
- return target;
+ return allocate_dynamic_stack_space (op0, target, BITS_PER_UNIT);
case BUILT_IN_FFS:
/* If not optimizing, call the library function. */