diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-10-07 12:28:44 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-10-07 12:28:44 +0000 |
commit | babc13fade2a247852ed9957d474ea665d0951fa (patch) | |
tree | 53eb80dd34b56ccafeebf20b850527bbfdc09f3e /gcc/function.c | |
parent | a71ba0b1475e44ac61ffcc77cdc47b3f594777fc (diff) | |
download | ppe42-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.c | 5 |
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) |