(assign_stack_temp): Abort if SIZE == -1.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 7 Oct 1994 12:28:44 +0000 (08:28 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 7 Oct 1994 12:28:44 +0000 (08:28 -0400)
From-SVN: r8235

gcc/function.c

index acb042e1f0c1ba989d92d7fa47801e8e957125e8..00801cd4edc25fc91b74a1430b7f789c2a627864 100644 (file)
@@ -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)