Commit 1ee86d15 by Richard Kenner

(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
parent 15fc0026
...@@ -7080,17 +7080,12 @@ expand_builtin (exp, target, subtarget, mode, ignore) ...@@ -7080,17 +7080,12 @@ expand_builtin (exp, target, subtarget, mode, ignore)
/* Arg could be non-integer if user redeclared this fcn wrong. */ /* Arg could be non-integer if user redeclared this fcn wrong. */
|| TREE_CODE (TREE_TYPE (TREE_VALUE (arglist))) != INTEGER_TYPE) || TREE_CODE (TREE_TYPE (TREE_VALUE (arglist))) != INTEGER_TYPE)
break; break;
current_function_calls_alloca = 1;
/* Compute the argument. */ /* Compute the argument. */
op0 = expand_expr (TREE_VALUE (arglist), NULL_RTX, VOIDmode, 0); op0 = expand_expr (TREE_VALUE (arglist), NULL_RTX, VOIDmode, 0);
/* Allocate the desired space. */ /* Allocate the desired space. */
target = allocate_dynamic_stack_space (op0, target, BITS_PER_UNIT); return 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;
case BUILT_IN_FFS: case BUILT_IN_FFS:
/* If not optimizing, call the library function. */ /* If not optimizing, call the library function. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment