projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c09be6c
)
(alloca): If malloc fails, just abort.
author
Karl Heuer
<kwzh@gnu.org>
Sun, 7 Jan 1996 07:00:56 +0000
(07:00 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Sun, 7 Jan 1996 07:00:56 +0000
(07:00 +0000)
From-SVN: r10949
gcc/alloca.c
patch
|
blob
|
history
diff --git
a/gcc/alloca.c
b/gcc/alloca.c
index
7020f32
..
7061cec
100644
(file)
--- a/
gcc/alloca.c
+++ b/
gcc/alloca.c
@@
-209,6
+209,9
@@
alloca (size)
register pointer new = malloc (sizeof (header) + size);
/* Address of header. */
+ if (new == 0)
+ abort();
+
((header *) new)->h.next = last_alloca_header;
((header *) new)->h.deep = depth;