summaryrefslogtreecommitdiffstats
path: root/gcc/function.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-10-07 12:28:44 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-10-07 12:28:44 +0000
commitbabc13fade2a247852ed9957d474ea665d0951fa (patch)
tree53eb80dd34b56ccafeebf20b850527bbfdc09f3e /gcc/function.c
parenta71ba0b1475e44ac61ffcc77cdc47b3f594777fc (diff)
downloadppe42-gcc-babc13fade2a247852ed9957d474ea665d0951fa.tar.gz
ppe42-gcc-babc13fade2a247852ed9957d474ea665d0951fa.zip
(assign_stack_temp): Abort if SIZE == -1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8235 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c5
1 files changed, 5 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud