From 303ec2aa60f39584971f33001fef1c8d80e138ac Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 7 Oct 1994 08:28:44 -0400 Subject: [PATCH] (assign_stack_temp): Abort if SIZE == -1. From-SVN: r8235 --- gcc/function.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/function.c b/gcc/function.c index acb042e1f0c..00801cd4edc 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -801,6 +801,11 @@ assign_stack_temp (mode, size, keep) { struct temp_slot *p, *best_p = 0; + /* If SIZE is -1 it means that somebody tried to allocate a temporary + of a variable size. */ + if (size == -1) + abort (); + /* First try to find an available, already-allocated temporary that is the exact size we require. */ for (p = temp_slots; p; p = p->next) -- 2.30.2