projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6676e72
)
(assign_stack_temp): Abort if SIZE == -1.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 7 Oct 1994 12:28:44 +0000
(08:28 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 7 Oct 1994 12:28:44 +0000
(08:28 -0400)
From-SVN: r8235
gcc/function.c
patch
|
blob
|
history
diff --git
a/gcc/function.c
b/gcc/function.c
index acb042e1f0c1ba989d92d7fa47801e8e957125e8..00801cd4edc25fc91b74a1430b7f789c2a627864 100644
(file)
--- 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)