summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 4c155c276e..7c95959ea6 100644
--- a/eval.c
+++ b/eval.c
@@ -10879,7 +10879,10 @@ static void
stack_extend(rb_thread_t th, int exit)
{
#define STACK_PAD_SIZE 1024
- volatile VALUE space[STACK_PAD_SIZE], *sp = space;
+ volatile VALUE space[STACK_PAD_SIZE];
+#ifdef HAVE_ALLOCA
+ volatile VALUE *sp = space;
+#endif
#if !STACK_GROW_DIRECTION
if (space < rb_gc_stack_start) {