diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-07 08:28:44 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-07 08:28:44 -0400 |
commit | 303ec2aa60f39584971f33001fef1c8d80e138ac (patch) | |
tree | 53eb80dd34b56ccafeebf20b850527bbfdc09f3e /gcc | |
parent | 6676e72f969d58e2ff882ba1f6725101c74c69e7 (diff) | |
download | gcc-303ec2aa60f39584971f33001fef1c8d80e138ac.zip gcc-303ec2aa60f39584971f33001fef1c8d80e138ac.tar.gz gcc-303ec2aa60f39584971f33001fef1c8d80e138ac.tar.bz2 |
(assign_stack_temp): Abort if SIZE == -1.
From-SVN: r8235
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/function.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index acb042e..00801cd 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) |